Skip to content

Commit 1dfffa6

Browse files
committed
Add initial types for request to mint
1 parent c0e195c commit 1dfffa6

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

src/generated/client/sdk.gen.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is auto-generated by @hey-api/openapi-ts
22

33
import type { Options as ClientOptions, TDataShape, Client } from '@hey-api/client-fetch';
4-
import type { ListQuotesData, ListQuotesResponse, ListPendingQuotesData, ListPendingQuotesResponse, AdminLookupQuoteData, AdminLookupQuoteResponse, AdminUpdateQuoteData, AdminUpdateQuoteResponse, ResolveOfferData, EnquireQuoteData, EnquireQuoteResponse, LookupQuoteData, LookupQuoteResponse, ActivateKeysetData, ActivateKeysetResponse, DebitData, CreditData, ECashBalance, OnChainBalanceData, OnChainData, KeysetInfoData, KeySetInfo} from './types.gen';
4+
import type { ListQuotesData, ListQuotesResponse, ListPendingQuotesData, ListPendingQuotesResponse, AdminLookupQuoteData, AdminLookupQuoteResponse, AdminUpdateQuoteData, AdminUpdateQuoteResponse, ResolveOfferData, EnquireQuoteData, EnquireQuoteResponse, LookupQuoteData, LookupQuoteResponse, ActivateKeysetData, ActivateKeysetResponse, DebitData, CreditData, ECashBalance, OnChainBalanceData, OnChainData, KeysetInfoData, KeySetInfo, RequestToMintData, RequestToMintResponse} from './types.gen';
55
import { client as _heyApiClient } from './client.gen';
66

77
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
@@ -136,3 +136,18 @@ export const keysetInfo = <ThrowOnError extends boolean = false>(options: Option
136136
...options
137137
});
138138
};
139+
140+
/**
141+
* --------------------------- RequestMint
142+
*/
143+
144+
export const requestToMint = <ThrowOnError extends boolean = false>(options: Options<RequestToMintData, ThrowOnError>) => {
145+
return (options.client ?? _heyApiClient).post<RequestToMintResponse, unknown, ThrowOnError>({
146+
url: '/v1/admin/treasury/debit/request_to_mint_from_ebill',
147+
...options,
148+
headers: {
149+
'Content-Type': 'application/json',
150+
...options?.headers
151+
}
152+
});
153+
};

src/generated/client/types.gen.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,3 +496,38 @@ export type KeysetInfoData = {
496496
query?: never;
497497
url: '/v1/admin/keysets/{keyset_id}';
498498
};
499+
500+
/**
501+
* Request Mint
502+
*/
503+
504+
// pub struct RequestToMintFromEBillRequest {
505+
// pub ebill_id: String,
506+
// pub amount: Amount,
507+
// }
508+
509+
export type RequestToMintRequest = {
510+
id: string;
511+
amount: number;
512+
};
513+
514+
export type RequestToMintResponseInfo = {
515+
request_id: string;
516+
request: string;
517+
};
518+
519+
export type RequestToMintResponse = {
520+
/**
521+
* Successful response
522+
*/
523+
200: RequestToMintResponseInfo;
524+
};
525+
526+
export type RequestToMintData = {
527+
body?: never;
528+
path: {
529+
keyset_id: string;
530+
};
531+
query?: never;
532+
url: '/v1/admin/treasury/debit/request_to_mint_from_ebill'
533+
};

0 commit comments

Comments
 (0)