import { AuthentiqID , Error } from "./data-contracts" ; import { HttpClient , RequestParams } from "./http-client" ; export class Key < SecurityDataType = unknown > extends HttpClient < SecurityDataType > { description tags name request keyRevokeNosecret = ( query , params = { } ) => this . request < { status ? : string ; } , Error > ( { path : `/key` , method : "DELETE" , query : query , format : "json" , ... params , } ) ; description tags name request keyRegister = ( body , params = { } ) => this . request < { secret ? : string ; status ? : string ; } , Error > ( { path : `/key` , method : "POST" , body : body , format : "json" , ... params , } ) ; description tags name request keyRevoke = ( pk , query , params = { } ) => this . request < { status ? : string ; } , Error > ( { path : `/key/${ pk }` , method : "DELETE" , query : query , format : "json" , ... params , } ) ; description tags name request getKey = ( pk , params = { } ) => this . request < { since ? : string ; status ? : string ; sub ? : string ; } , Error > ( { path : `/key/${ pk }` , method : "GET" , format : "json" , ... params , } ) ; description tags name request headKey = ( pk , params = { } ) => this . request < void , Error > ( { path : `/key/${ pk }` , method : "HEAD" , ... params , } ) ; description tags name request keyUpdate = ( pk , body , params = { } ) => this . request < { status ? : string ; } , Error > ( { path : `/key/${ pk }` , method : "POST" , body : body , format : "json" , ... params , } ) ; description tags name request keyBind = ( pk , body , params = { } ) => this . request < { status ? : string ; } , Error > ( { path : `/key/${ pk }` , method : "PUT" , body : body , format : "json" , ... params , } ) ; }