import { Claims , Error } from "./data-contracts" ; import { ContentType , HttpClient , RequestParams } from "./http-client" ; export class Scope < SecurityDataType = unknown > extends HttpClient < SecurityDataType > { description tags name request signRequest = ( body , query ? , params = { } ) => this . request < { job ? : string ; status ? : string ; } , Error > ( { path : `/scope` , method : "POST" , query : query , body : body , format : "json" , ... params , } ) ; description tags name request signDelete = ( job , params = { } ) => this . request < { status ? : string ; } , Error > ( { path : `/scope/${ job }` , method : "DELETE" , format : "json" , ... params , } ) ; description tags name request signRetrieve = ( job , params = { } ) => this . request < { exp ? : number ; field ? : string ; sub ? : string ; } , Error > ( { path : `/scope/${ job }` , method : "GET" , format : "json" , ... params , } ) ; description tags name request signRetrieveHead = ( job , params = { } ) => this . request < void , Error > ( { path : `/scope/${ job }` , method : "HEAD" , ... params , } ) ; description tags name request signConfirm = ( job , params = { } ) => this . request < { status ? : string ; } , Error > ( { path : `/scope/${ job }` , method : "POST" , type : ContentType . Json , format : "json" , ... params , } ) ; description tags name request signUpdate = ( job , params = { } ) => this . request < { jwt ? : string ; status ? : string ; } , Error > ( { path : `/scope/${ job }` , method : "PUT" , ... params , } ) ; }