@crestal/nation-sdk 0.7.33 → 0.7.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -0
- package/README.md +5 -2
- package/api.ts +199 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +154 -1
- package/dist/api.js +100 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/CreditApi.md +56 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/TopupRecord.md +47 -0
- package/docs/TopupRecordsResponse.md +25 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @crestal/nation-sdk@0.7.
|
|
1
|
+
## @crestal/nation-sdk@0.7.34
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @crestal/nation-sdk@0.7.
|
|
39
|
+
npm install @crestal/nation-sdk@0.7.34 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -83,6 +83,7 @@ Class | Method | HTTP request | Description
|
|
|
83
83
|
*CreditApi* | [**fetchCreditEvent**](docs/CreditApi.md#fetchcreditevent) | **GET** /credit/events/{event_id} | Credit Event
|
|
84
84
|
*CreditApi* | [**getUserAccount**](docs/CreditApi.md#getuseraccount) | **GET** /credit/user/account | Get User Account
|
|
85
85
|
*CreditApi* | [**listAgentIncomeEvents**](docs/CreditApi.md#listagentincomeevents) | **GET** /credit/agents/{agent_id}/events | List Agent Income
|
|
86
|
+
*CreditApi* | [**listTopupRecords**](docs/CreditApi.md#listtopuprecords) | **GET** /credit/topup/records | List Top-up Records
|
|
86
87
|
*CreditApi* | [**listUserEvents**](docs/CreditApi.md#listuserevents) | **GET** /credit/user/events | List User Events
|
|
87
88
|
*CreditApi* | [**listUserTransactions**](docs/CreditApi.md#listusertransactions) | **GET** /credit/user/transactions | List User Transactions
|
|
88
89
|
*DraftApi* | [**createAgentDraft**](docs/DraftApi.md#createagentdraft) | **POST** /agent/draft | Create Agent Draft
|
|
@@ -164,6 +165,8 @@ Class | Method | HTTP request | Description
|
|
|
164
165
|
- [Skill](docs/Skill.md)
|
|
165
166
|
- [SystemMessageType](docs/SystemMessageType.md)
|
|
166
167
|
- [Tag](docs/Tag.md)
|
|
168
|
+
- [TopupRecord](docs/TopupRecord.md)
|
|
169
|
+
- [TopupRecordsResponse](docs/TopupRecordsResponse.md)
|
|
167
170
|
- [TransactionType](docs/TransactionType.md)
|
|
168
171
|
- [TwitterAuthResponse](docs/TwitterAuthResponse.md)
|
|
169
172
|
- [UpstreamType](docs/UpstreamType.md)
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Nation IntentKit API
|
|
5
5
|
* API for Nation IntentKit services
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.7.
|
|
7
|
+
* The version of the OpenAPI document: 0.7.34
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3601,6 +3601,122 @@ export interface Tag {
|
|
|
3601
3601
|
*/
|
|
3602
3602
|
'category'?: string | null;
|
|
3603
3603
|
}
|
|
3604
|
+
/**
|
|
3605
|
+
* Top-up record fetched from Supabase.
|
|
3606
|
+
* @export
|
|
3607
|
+
* @interface TopupRecord
|
|
3608
|
+
*/
|
|
3609
|
+
export interface TopupRecord {
|
|
3610
|
+
/**
|
|
3611
|
+
* Transaction hash of the top-up
|
|
3612
|
+
* @type {string}
|
|
3613
|
+
* @memberof TopupRecord
|
|
3614
|
+
*/
|
|
3615
|
+
'tx_hash': string;
|
|
3616
|
+
/**
|
|
3617
|
+
* Log index within the transaction
|
|
3618
|
+
* @type {number}
|
|
3619
|
+
* @memberof TopupRecord
|
|
3620
|
+
*/
|
|
3621
|
+
'log_index': number;
|
|
3622
|
+
/**
|
|
3623
|
+
* Blockchain network identifier
|
|
3624
|
+
* @type {number}
|
|
3625
|
+
* @memberof TopupRecord
|
|
3626
|
+
*/
|
|
3627
|
+
'chain_id': number;
|
|
3628
|
+
/**
|
|
3629
|
+
* Block number containing the top-up
|
|
3630
|
+
* @type {number}
|
|
3631
|
+
* @memberof TopupRecord
|
|
3632
|
+
*/
|
|
3633
|
+
'block_number': number;
|
|
3634
|
+
/**
|
|
3635
|
+
*
|
|
3636
|
+
* @type {string}
|
|
3637
|
+
* @memberof TopupRecord
|
|
3638
|
+
*/
|
|
3639
|
+
'block_time'?: string | null;
|
|
3640
|
+
/**
|
|
3641
|
+
* Address that initiated the top-up
|
|
3642
|
+
* @type {string}
|
|
3643
|
+
* @memberof TopupRecord
|
|
3644
|
+
*/
|
|
3645
|
+
'payer_address': string;
|
|
3646
|
+
/**
|
|
3647
|
+
* Beneficiary address for the top-up
|
|
3648
|
+
* @type {string}
|
|
3649
|
+
* @memberof TopupRecord
|
|
3650
|
+
*/
|
|
3651
|
+
'to_address': string;
|
|
3652
|
+
/**
|
|
3653
|
+
* Token contract used for the top-up
|
|
3654
|
+
* @type {string}
|
|
3655
|
+
* @memberof TopupRecord
|
|
3656
|
+
*/
|
|
3657
|
+
'token_address': string;
|
|
3658
|
+
/**
|
|
3659
|
+
* Token amount in raw units
|
|
3660
|
+
* @type {string}
|
|
3661
|
+
* @memberof TopupRecord
|
|
3662
|
+
*/
|
|
3663
|
+
'amount': string;
|
|
3664
|
+
/**
|
|
3665
|
+
*
|
|
3666
|
+
* @type {string}
|
|
3667
|
+
* @memberof TopupRecord
|
|
3668
|
+
*/
|
|
3669
|
+
'contract_address'?: string | null;
|
|
3670
|
+
/**
|
|
3671
|
+
*
|
|
3672
|
+
* @type {string}
|
|
3673
|
+
* @memberof TopupRecord
|
|
3674
|
+
*/
|
|
3675
|
+
'inserted_at'?: string | null;
|
|
3676
|
+
/**
|
|
3677
|
+
*
|
|
3678
|
+
* @type {string}
|
|
3679
|
+
* @memberof TopupRecord
|
|
3680
|
+
*/
|
|
3681
|
+
'credit_event_id'?: string | null;
|
|
3682
|
+
/**
|
|
3683
|
+
*
|
|
3684
|
+
* @type {string}
|
|
3685
|
+
* @memberof TopupRecord
|
|
3686
|
+
*/
|
|
3687
|
+
'credit_event_at'?: string | null;
|
|
3688
|
+
/**
|
|
3689
|
+
*
|
|
3690
|
+
* @type {string}
|
|
3691
|
+
* @memberof TopupRecord
|
|
3692
|
+
*/
|
|
3693
|
+
'credit_amount'?: string | null;
|
|
3694
|
+
}
|
|
3695
|
+
/**
|
|
3696
|
+
* Paginated response model for Supabase top-up records.
|
|
3697
|
+
* @export
|
|
3698
|
+
* @interface TopupRecordsResponse
|
|
3699
|
+
*/
|
|
3700
|
+
export interface TopupRecordsResponse {
|
|
3701
|
+
/**
|
|
3702
|
+
* List of top-up records
|
|
3703
|
+
* @type {Array<TopupRecord>}
|
|
3704
|
+
* @memberof TopupRecordsResponse
|
|
3705
|
+
*/
|
|
3706
|
+
'data': Array<TopupRecord>;
|
|
3707
|
+
/**
|
|
3708
|
+
* Indicates if there are more records available
|
|
3709
|
+
* @type {boolean}
|
|
3710
|
+
* @memberof TopupRecordsResponse
|
|
3711
|
+
*/
|
|
3712
|
+
'has_more': boolean;
|
|
3713
|
+
/**
|
|
3714
|
+
*
|
|
3715
|
+
* @type {string}
|
|
3716
|
+
* @memberof TopupRecordsResponse
|
|
3717
|
+
*/
|
|
3718
|
+
'next_cursor'?: string | null;
|
|
3719
|
+
}
|
|
3604
3720
|
/**
|
|
3605
3721
|
* Type of credit transaction.
|
|
3606
3722
|
* @export
|
|
@@ -6235,6 +6351,50 @@ export const CreditApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
6235
6351
|
|
|
6236
6352
|
|
|
6237
6353
|
|
|
6354
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6355
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6356
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6357
|
+
|
|
6358
|
+
return {
|
|
6359
|
+
url: toPathString(localVarUrlObj),
|
|
6360
|
+
options: localVarRequestOptions,
|
|
6361
|
+
};
|
|
6362
|
+
},
|
|
6363
|
+
/**
|
|
6364
|
+
* Retrieve on-chain recharge records for the current user in reverse chronological order. This endpoint queries Supabase directly, so transient Supabase errors may surface as HTTP 500 responses. Possible errors: InvalidCursor (400) when the cursor is not a non-negative integer.
|
|
6365
|
+
* @summary List Top-up Records
|
|
6366
|
+
* @param {string | null} [cursor] Offset cursor returned by previous requests
|
|
6367
|
+
* @param {number} [limit] Maximum number of records to return
|
|
6368
|
+
* @param {*} [options] Override http request option.
|
|
6369
|
+
* @throws {RequiredError}
|
|
6370
|
+
*/
|
|
6371
|
+
listTopupRecords: async (cursor?: string | null, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6372
|
+
const localVarPath = `/credit/topup/records`;
|
|
6373
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6374
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6375
|
+
let baseOptions;
|
|
6376
|
+
if (configuration) {
|
|
6377
|
+
baseOptions = configuration.baseOptions;
|
|
6378
|
+
}
|
|
6379
|
+
|
|
6380
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6381
|
+
const localVarHeaderParameter = {} as any;
|
|
6382
|
+
const localVarQueryParameter = {} as any;
|
|
6383
|
+
|
|
6384
|
+
// authentication HTTPBearer required
|
|
6385
|
+
// http bearer authentication required
|
|
6386
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6387
|
+
|
|
6388
|
+
if (cursor !== undefined) {
|
|
6389
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
6390
|
+
}
|
|
6391
|
+
|
|
6392
|
+
if (limit !== undefined) {
|
|
6393
|
+
localVarQueryParameter['limit'] = limit;
|
|
6394
|
+
}
|
|
6395
|
+
|
|
6396
|
+
|
|
6397
|
+
|
|
6238
6398
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6239
6399
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6240
6400
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -6402,6 +6562,20 @@ export const CreditApiFp = function(configuration?: Configuration) {
|
|
|
6402
6562
|
const localVarOperationServerBasePath = operationServerMap['CreditApi.listAgentIncomeEvents']?.[localVarOperationServerIndex]?.url;
|
|
6403
6563
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6404
6564
|
},
|
|
6565
|
+
/**
|
|
6566
|
+
* Retrieve on-chain recharge records for the current user in reverse chronological order. This endpoint queries Supabase directly, so transient Supabase errors may surface as HTTP 500 responses. Possible errors: InvalidCursor (400) when the cursor is not a non-negative integer.
|
|
6567
|
+
* @summary List Top-up Records
|
|
6568
|
+
* @param {string | null} [cursor] Offset cursor returned by previous requests
|
|
6569
|
+
* @param {number} [limit] Maximum number of records to return
|
|
6570
|
+
* @param {*} [options] Override http request option.
|
|
6571
|
+
* @throws {RequiredError}
|
|
6572
|
+
*/
|
|
6573
|
+
async listTopupRecords(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TopupRecordsResponse>> {
|
|
6574
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTopupRecords(cursor, limit, options);
|
|
6575
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6576
|
+
const localVarOperationServerBasePath = operationServerMap['CreditApi.listTopupRecords']?.[localVarOperationServerIndex]?.url;
|
|
6577
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6578
|
+
},
|
|
6405
6579
|
/**
|
|
6406
6580
|
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
6407
6581
|
* @summary List User Events
|
|
@@ -6475,6 +6649,17 @@ export const CreditApiFactory = function (configuration?: Configuration, basePat
|
|
|
6475
6649
|
listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<CreditEventsResponse> {
|
|
6476
6650
|
return localVarFp.listAgentIncomeEvents(agentId, cursor, limit, options).then((request) => request(axios, basePath));
|
|
6477
6651
|
},
|
|
6652
|
+
/**
|
|
6653
|
+
* Retrieve on-chain recharge records for the current user in reverse chronological order. This endpoint queries Supabase directly, so transient Supabase errors may surface as HTTP 500 responses. Possible errors: InvalidCursor (400) when the cursor is not a non-negative integer.
|
|
6654
|
+
* @summary List Top-up Records
|
|
6655
|
+
* @param {string | null} [cursor] Offset cursor returned by previous requests
|
|
6656
|
+
* @param {number} [limit] Maximum number of records to return
|
|
6657
|
+
* @param {*} [options] Override http request option.
|
|
6658
|
+
* @throws {RequiredError}
|
|
6659
|
+
*/
|
|
6660
|
+
listTopupRecords(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<TopupRecordsResponse> {
|
|
6661
|
+
return localVarFp.listTopupRecords(cursor, limit, options).then((request) => request(axios, basePath));
|
|
6662
|
+
},
|
|
6478
6663
|
/**
|
|
6479
6664
|
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
6480
6665
|
* @summary List User Events
|
|
@@ -6548,6 +6733,19 @@ export class CreditApi extends BaseAPI {
|
|
|
6548
6733
|
return CreditApiFp(this.configuration).listAgentIncomeEvents(agentId, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
6549
6734
|
}
|
|
6550
6735
|
|
|
6736
|
+
/**
|
|
6737
|
+
* Retrieve on-chain recharge records for the current user in reverse chronological order. This endpoint queries Supabase directly, so transient Supabase errors may surface as HTTP 500 responses. Possible errors: InvalidCursor (400) when the cursor is not a non-negative integer.
|
|
6738
|
+
* @summary List Top-up Records
|
|
6739
|
+
* @param {string | null} [cursor] Offset cursor returned by previous requests
|
|
6740
|
+
* @param {number} [limit] Maximum number of records to return
|
|
6741
|
+
* @param {*} [options] Override http request option.
|
|
6742
|
+
* @throws {RequiredError}
|
|
6743
|
+
* @memberof CreditApi
|
|
6744
|
+
*/
|
|
6745
|
+
public listTopupRecords(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
6746
|
+
return CreditApiFp(this.configuration).listTopupRecords(cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
6747
|
+
}
|
|
6748
|
+
|
|
6551
6749
|
/**
|
|
6552
6750
|
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
6553
6751
|
* @summary List User Events
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Nation IntentKit API
|
|
3
3
|
* API for Nation IntentKit services
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.7.
|
|
5
|
+
* The version of the OpenAPI document: 0.7.34
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3505,6 +3505,122 @@ export interface Tag {
|
|
|
3505
3505
|
*/
|
|
3506
3506
|
'category'?: string | null;
|
|
3507
3507
|
}
|
|
3508
|
+
/**
|
|
3509
|
+
* Top-up record fetched from Supabase.
|
|
3510
|
+
* @export
|
|
3511
|
+
* @interface TopupRecord
|
|
3512
|
+
*/
|
|
3513
|
+
export interface TopupRecord {
|
|
3514
|
+
/**
|
|
3515
|
+
* Transaction hash of the top-up
|
|
3516
|
+
* @type {string}
|
|
3517
|
+
* @memberof TopupRecord
|
|
3518
|
+
*/
|
|
3519
|
+
'tx_hash': string;
|
|
3520
|
+
/**
|
|
3521
|
+
* Log index within the transaction
|
|
3522
|
+
* @type {number}
|
|
3523
|
+
* @memberof TopupRecord
|
|
3524
|
+
*/
|
|
3525
|
+
'log_index': number;
|
|
3526
|
+
/**
|
|
3527
|
+
* Blockchain network identifier
|
|
3528
|
+
* @type {number}
|
|
3529
|
+
* @memberof TopupRecord
|
|
3530
|
+
*/
|
|
3531
|
+
'chain_id': number;
|
|
3532
|
+
/**
|
|
3533
|
+
* Block number containing the top-up
|
|
3534
|
+
* @type {number}
|
|
3535
|
+
* @memberof TopupRecord
|
|
3536
|
+
*/
|
|
3537
|
+
'block_number': number;
|
|
3538
|
+
/**
|
|
3539
|
+
*
|
|
3540
|
+
* @type {string}
|
|
3541
|
+
* @memberof TopupRecord
|
|
3542
|
+
*/
|
|
3543
|
+
'block_time'?: string | null;
|
|
3544
|
+
/**
|
|
3545
|
+
* Address that initiated the top-up
|
|
3546
|
+
* @type {string}
|
|
3547
|
+
* @memberof TopupRecord
|
|
3548
|
+
*/
|
|
3549
|
+
'payer_address': string;
|
|
3550
|
+
/**
|
|
3551
|
+
* Beneficiary address for the top-up
|
|
3552
|
+
* @type {string}
|
|
3553
|
+
* @memberof TopupRecord
|
|
3554
|
+
*/
|
|
3555
|
+
'to_address': string;
|
|
3556
|
+
/**
|
|
3557
|
+
* Token contract used for the top-up
|
|
3558
|
+
* @type {string}
|
|
3559
|
+
* @memberof TopupRecord
|
|
3560
|
+
*/
|
|
3561
|
+
'token_address': string;
|
|
3562
|
+
/**
|
|
3563
|
+
* Token amount in raw units
|
|
3564
|
+
* @type {string}
|
|
3565
|
+
* @memberof TopupRecord
|
|
3566
|
+
*/
|
|
3567
|
+
'amount': string;
|
|
3568
|
+
/**
|
|
3569
|
+
*
|
|
3570
|
+
* @type {string}
|
|
3571
|
+
* @memberof TopupRecord
|
|
3572
|
+
*/
|
|
3573
|
+
'contract_address'?: string | null;
|
|
3574
|
+
/**
|
|
3575
|
+
*
|
|
3576
|
+
* @type {string}
|
|
3577
|
+
* @memberof TopupRecord
|
|
3578
|
+
*/
|
|
3579
|
+
'inserted_at'?: string | null;
|
|
3580
|
+
/**
|
|
3581
|
+
*
|
|
3582
|
+
* @type {string}
|
|
3583
|
+
* @memberof TopupRecord
|
|
3584
|
+
*/
|
|
3585
|
+
'credit_event_id'?: string | null;
|
|
3586
|
+
/**
|
|
3587
|
+
*
|
|
3588
|
+
* @type {string}
|
|
3589
|
+
* @memberof TopupRecord
|
|
3590
|
+
*/
|
|
3591
|
+
'credit_event_at'?: string | null;
|
|
3592
|
+
/**
|
|
3593
|
+
*
|
|
3594
|
+
* @type {string}
|
|
3595
|
+
* @memberof TopupRecord
|
|
3596
|
+
*/
|
|
3597
|
+
'credit_amount'?: string | null;
|
|
3598
|
+
}
|
|
3599
|
+
/**
|
|
3600
|
+
* Paginated response model for Supabase top-up records.
|
|
3601
|
+
* @export
|
|
3602
|
+
* @interface TopupRecordsResponse
|
|
3603
|
+
*/
|
|
3604
|
+
export interface TopupRecordsResponse {
|
|
3605
|
+
/**
|
|
3606
|
+
* List of top-up records
|
|
3607
|
+
* @type {Array<TopupRecord>}
|
|
3608
|
+
* @memberof TopupRecordsResponse
|
|
3609
|
+
*/
|
|
3610
|
+
'data': Array<TopupRecord>;
|
|
3611
|
+
/**
|
|
3612
|
+
* Indicates if there are more records available
|
|
3613
|
+
* @type {boolean}
|
|
3614
|
+
* @memberof TopupRecordsResponse
|
|
3615
|
+
*/
|
|
3616
|
+
'has_more': boolean;
|
|
3617
|
+
/**
|
|
3618
|
+
*
|
|
3619
|
+
* @type {string}
|
|
3620
|
+
* @memberof TopupRecordsResponse
|
|
3621
|
+
*/
|
|
3622
|
+
'next_cursor'?: string | null;
|
|
3623
|
+
}
|
|
3508
3624
|
/**
|
|
3509
3625
|
* Type of credit transaction.
|
|
3510
3626
|
* @export
|
|
@@ -4761,6 +4877,15 @@ export declare const CreditApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4761
4877
|
* @throws {RequiredError}
|
|
4762
4878
|
*/
|
|
4763
4879
|
listAgentIncomeEvents: (agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4880
|
+
/**
|
|
4881
|
+
* Retrieve on-chain recharge records for the current user in reverse chronological order. This endpoint queries Supabase directly, so transient Supabase errors may surface as HTTP 500 responses. Possible errors: InvalidCursor (400) when the cursor is not a non-negative integer.
|
|
4882
|
+
* @summary List Top-up Records
|
|
4883
|
+
* @param {string | null} [cursor] Offset cursor returned by previous requests
|
|
4884
|
+
* @param {number} [limit] Maximum number of records to return
|
|
4885
|
+
* @param {*} [options] Override http request option.
|
|
4886
|
+
* @throws {RequiredError}
|
|
4887
|
+
*/
|
|
4888
|
+
listTopupRecords: (cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4764
4889
|
/**
|
|
4765
4890
|
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
4766
4891
|
* @summary List User Events
|
|
@@ -4814,6 +4939,15 @@ export declare const CreditApiFp: (configuration?: Configuration) => {
|
|
|
4814
4939
|
* @throws {RequiredError}
|
|
4815
4940
|
*/
|
|
4816
4941
|
listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditEventsResponse>>;
|
|
4942
|
+
/**
|
|
4943
|
+
* Retrieve on-chain recharge records for the current user in reverse chronological order. This endpoint queries Supabase directly, so transient Supabase errors may surface as HTTP 500 responses. Possible errors: InvalidCursor (400) when the cursor is not a non-negative integer.
|
|
4944
|
+
* @summary List Top-up Records
|
|
4945
|
+
* @param {string | null} [cursor] Offset cursor returned by previous requests
|
|
4946
|
+
* @param {number} [limit] Maximum number of records to return
|
|
4947
|
+
* @param {*} [options] Override http request option.
|
|
4948
|
+
* @throws {RequiredError}
|
|
4949
|
+
*/
|
|
4950
|
+
listTopupRecords(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TopupRecordsResponse>>;
|
|
4817
4951
|
/**
|
|
4818
4952
|
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
4819
4953
|
* @summary List User Events
|
|
@@ -4867,6 +5001,15 @@ export declare const CreditApiFactory: (configuration?: Configuration, basePath?
|
|
|
4867
5001
|
* @throws {RequiredError}
|
|
4868
5002
|
*/
|
|
4869
5003
|
listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<CreditEventsResponse>;
|
|
5004
|
+
/**
|
|
5005
|
+
* Retrieve on-chain recharge records for the current user in reverse chronological order. This endpoint queries Supabase directly, so transient Supabase errors may surface as HTTP 500 responses. Possible errors: InvalidCursor (400) when the cursor is not a non-negative integer.
|
|
5006
|
+
* @summary List Top-up Records
|
|
5007
|
+
* @param {string | null} [cursor] Offset cursor returned by previous requests
|
|
5008
|
+
* @param {number} [limit] Maximum number of records to return
|
|
5009
|
+
* @param {*} [options] Override http request option.
|
|
5010
|
+
* @throws {RequiredError}
|
|
5011
|
+
*/
|
|
5012
|
+
listTopupRecords(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<TopupRecordsResponse>;
|
|
4870
5013
|
/**
|
|
4871
5014
|
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
4872
5015
|
* @summary List User Events
|
|
@@ -4925,6 +5068,16 @@ export declare class CreditApi extends BaseAPI {
|
|
|
4925
5068
|
* @memberof CreditApi
|
|
4926
5069
|
*/
|
|
4927
5070
|
listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEventsResponse, any, {}>>;
|
|
5071
|
+
/**
|
|
5072
|
+
* Retrieve on-chain recharge records for the current user in reverse chronological order. This endpoint queries Supabase directly, so transient Supabase errors may surface as HTTP 500 responses. Possible errors: InvalidCursor (400) when the cursor is not a non-negative integer.
|
|
5073
|
+
* @summary List Top-up Records
|
|
5074
|
+
* @param {string | null} [cursor] Offset cursor returned by previous requests
|
|
5075
|
+
* @param {number} [limit] Maximum number of records to return
|
|
5076
|
+
* @param {*} [options] Override http request option.
|
|
5077
|
+
* @throws {RequiredError}
|
|
5078
|
+
* @memberof CreditApi
|
|
5079
|
+
*/
|
|
5080
|
+
listTopupRecords(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TopupRecordsResponse, any, {}>>;
|
|
4928
5081
|
/**
|
|
4929
5082
|
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
4930
5083
|
* @summary List User Events
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.7.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.34
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3461,6 +3461,57 @@ var CreditApiAxiosParamCreator = function (configuration) {
|
|
|
3461
3461
|
});
|
|
3462
3462
|
});
|
|
3463
3463
|
},
|
|
3464
|
+
/**
|
|
3465
|
+
* Retrieve on-chain recharge records for the current user in reverse chronological order. This endpoint queries Supabase directly, so transient Supabase errors may surface as HTTP 500 responses. Possible errors: InvalidCursor (400) when the cursor is not a non-negative integer.
|
|
3466
|
+
* @summary List Top-up Records
|
|
3467
|
+
* @param {string | null} [cursor] Offset cursor returned by previous requests
|
|
3468
|
+
* @param {number} [limit] Maximum number of records to return
|
|
3469
|
+
* @param {*} [options] Override http request option.
|
|
3470
|
+
* @throws {RequiredError}
|
|
3471
|
+
*/
|
|
3472
|
+
listTopupRecords: function (cursor_1, limit_1) {
|
|
3473
|
+
var args_1 = [];
|
|
3474
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
3475
|
+
args_1[_i - 2] = arguments[_i];
|
|
3476
|
+
}
|
|
3477
|
+
return __awaiter(_this, __spreadArray([cursor_1, limit_1], args_1, true), void 0, function (cursor, limit, options) {
|
|
3478
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3479
|
+
if (options === void 0) { options = {}; }
|
|
3480
|
+
return __generator(this, function (_a) {
|
|
3481
|
+
switch (_a.label) {
|
|
3482
|
+
case 0:
|
|
3483
|
+
localVarPath = "/credit/topup/records";
|
|
3484
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3485
|
+
if (configuration) {
|
|
3486
|
+
baseOptions = configuration.baseOptions;
|
|
3487
|
+
}
|
|
3488
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
3489
|
+
localVarHeaderParameter = {};
|
|
3490
|
+
localVarQueryParameter = {};
|
|
3491
|
+
// authentication HTTPBearer required
|
|
3492
|
+
// http bearer authentication required
|
|
3493
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
3494
|
+
case 1:
|
|
3495
|
+
// authentication HTTPBearer required
|
|
3496
|
+
// http bearer authentication required
|
|
3497
|
+
_a.sent();
|
|
3498
|
+
if (cursor !== undefined) {
|
|
3499
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
3500
|
+
}
|
|
3501
|
+
if (limit !== undefined) {
|
|
3502
|
+
localVarQueryParameter['limit'] = limit;
|
|
3503
|
+
}
|
|
3504
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3505
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3506
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3507
|
+
return [2 /*return*/, {
|
|
3508
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3509
|
+
options: localVarRequestOptions,
|
|
3510
|
+
}];
|
|
3511
|
+
}
|
|
3512
|
+
});
|
|
3513
|
+
});
|
|
3514
|
+
},
|
|
3464
3515
|
/**
|
|
3465
3516
|
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
3466
3517
|
* @summary List User Events
|
|
@@ -3659,6 +3710,30 @@ var CreditApiFp = function (configuration) {
|
|
|
3659
3710
|
});
|
|
3660
3711
|
});
|
|
3661
3712
|
},
|
|
3713
|
+
/**
|
|
3714
|
+
* Retrieve on-chain recharge records for the current user in reverse chronological order. This endpoint queries Supabase directly, so transient Supabase errors may surface as HTTP 500 responses. Possible errors: InvalidCursor (400) when the cursor is not a non-negative integer.
|
|
3715
|
+
* @summary List Top-up Records
|
|
3716
|
+
* @param {string | null} [cursor] Offset cursor returned by previous requests
|
|
3717
|
+
* @param {number} [limit] Maximum number of records to return
|
|
3718
|
+
* @param {*} [options] Override http request option.
|
|
3719
|
+
* @throws {RequiredError}
|
|
3720
|
+
*/
|
|
3721
|
+
listTopupRecords: function (cursor, limit, options) {
|
|
3722
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3723
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3724
|
+
var _a, _b, _c;
|
|
3725
|
+
return __generator(this, function (_d) {
|
|
3726
|
+
switch (_d.label) {
|
|
3727
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTopupRecords(cursor, limit, options)];
|
|
3728
|
+
case 1:
|
|
3729
|
+
localVarAxiosArgs = _d.sent();
|
|
3730
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3731
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CreditApi.listTopupRecords']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3732
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3733
|
+
}
|
|
3734
|
+
});
|
|
3735
|
+
});
|
|
3736
|
+
},
|
|
3662
3737
|
/**
|
|
3663
3738
|
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
3664
3739
|
* @summary List User Events
|
|
@@ -3752,6 +3827,17 @@ var CreditApiFactory = function (configuration, basePath, axios) {
|
|
|
3752
3827
|
listAgentIncomeEvents: function (agentId, cursor, limit, options) {
|
|
3753
3828
|
return localVarFp.listAgentIncomeEvents(agentId, cursor, limit, options).then(function (request) { return request(axios, basePath); });
|
|
3754
3829
|
},
|
|
3830
|
+
/**
|
|
3831
|
+
* Retrieve on-chain recharge records for the current user in reverse chronological order. This endpoint queries Supabase directly, so transient Supabase errors may surface as HTTP 500 responses. Possible errors: InvalidCursor (400) when the cursor is not a non-negative integer.
|
|
3832
|
+
* @summary List Top-up Records
|
|
3833
|
+
* @param {string | null} [cursor] Offset cursor returned by previous requests
|
|
3834
|
+
* @param {number} [limit] Maximum number of records to return
|
|
3835
|
+
* @param {*} [options] Override http request option.
|
|
3836
|
+
* @throws {RequiredError}
|
|
3837
|
+
*/
|
|
3838
|
+
listTopupRecords: function (cursor, limit, options) {
|
|
3839
|
+
return localVarFp.listTopupRecords(cursor, limit, options).then(function (request) { return request(axios, basePath); });
|
|
3840
|
+
},
|
|
3755
3841
|
/**
|
|
3756
3842
|
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
3757
3843
|
* @summary List User Events
|
|
@@ -3829,6 +3915,19 @@ var CreditApi = /** @class */ (function (_super) {
|
|
|
3829
3915
|
var _this = this;
|
|
3830
3916
|
return (0, exports.CreditApiFp)(this.configuration).listAgentIncomeEvents(agentId, cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3831
3917
|
};
|
|
3918
|
+
/**
|
|
3919
|
+
* Retrieve on-chain recharge records for the current user in reverse chronological order. This endpoint queries Supabase directly, so transient Supabase errors may surface as HTTP 500 responses. Possible errors: InvalidCursor (400) when the cursor is not a non-negative integer.
|
|
3920
|
+
* @summary List Top-up Records
|
|
3921
|
+
* @param {string | null} [cursor] Offset cursor returned by previous requests
|
|
3922
|
+
* @param {number} [limit] Maximum number of records to return
|
|
3923
|
+
* @param {*} [options] Override http request option.
|
|
3924
|
+
* @throws {RequiredError}
|
|
3925
|
+
* @memberof CreditApi
|
|
3926
|
+
*/
|
|
3927
|
+
CreditApi.prototype.listTopupRecords = function (cursor, limit, options) {
|
|
3928
|
+
var _this = this;
|
|
3929
|
+
return (0, exports.CreditApiFp)(this.configuration).listTopupRecords(cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3930
|
+
};
|
|
3832
3931
|
/**
|
|
3833
3932
|
* List all credit events for a user account, with optional filtering by event types and direction. Returns a paginated list of events for the user.
|
|
3834
3933
|
* @summary List User Events
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.7.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.34
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.7.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.34
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.7.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.34
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.7.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.34
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/CreditApi.md
CHANGED
|
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost*
|
|
|
7
7
|
|[**fetchCreditEvent**](#fetchcreditevent) | **GET** /credit/events/{event_id} | Credit Event|
|
|
8
8
|
|[**getUserAccount**](#getuseraccount) | **GET** /credit/user/account | Get User Account|
|
|
9
9
|
|[**listAgentIncomeEvents**](#listagentincomeevents) | **GET** /credit/agents/{agent_id}/events | List Agent Income|
|
|
10
|
+
|[**listTopupRecords**](#listtopuprecords) | **GET** /credit/topup/records | List Top-up Records|
|
|
10
11
|
|[**listUserEvents**](#listuserevents) | **GET** /credit/user/events | List User Events|
|
|
11
12
|
|[**listUserTransactions**](#listusertransactions) | **GET** /credit/user/transactions | List User Transactions|
|
|
12
13
|
|
|
@@ -158,6 +159,61 @@ const { status, data } = await apiInstance.listAgentIncomeEvents(
|
|
|
158
159
|
- **Accept**: application/json
|
|
159
160
|
|
|
160
161
|
|
|
162
|
+
### HTTP response details
|
|
163
|
+
| Status code | Description | Response headers |
|
|
164
|
+
|-------------|-------------|------------------|
|
|
165
|
+
|**200** | Successful Response | - |
|
|
166
|
+
|**422** | Validation Error | - |
|
|
167
|
+
|
|
168
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
169
|
+
|
|
170
|
+
# **listTopupRecords**
|
|
171
|
+
> TopupRecordsResponse listTopupRecords()
|
|
172
|
+
|
|
173
|
+
Retrieve on-chain recharge records for the current user in reverse chronological order. This endpoint queries Supabase directly, so transient Supabase errors may surface as HTTP 500 responses. Possible errors: InvalidCursor (400) when the cursor is not a non-negative integer.
|
|
174
|
+
|
|
175
|
+
### Example
|
|
176
|
+
|
|
177
|
+
```typescript
|
|
178
|
+
import {
|
|
179
|
+
CreditApi,
|
|
180
|
+
Configuration
|
|
181
|
+
} from '@crestal/nation-sdk';
|
|
182
|
+
|
|
183
|
+
const configuration = new Configuration();
|
|
184
|
+
const apiInstance = new CreditApi(configuration);
|
|
185
|
+
|
|
186
|
+
let cursor: string; //Offset cursor returned by previous requests (optional) (default to undefined)
|
|
187
|
+
let limit: number; //Maximum number of records to return (optional) (default to 20)
|
|
188
|
+
|
|
189
|
+
const { status, data } = await apiInstance.listTopupRecords(
|
|
190
|
+
cursor,
|
|
191
|
+
limit
|
|
192
|
+
);
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### Parameters
|
|
196
|
+
|
|
197
|
+
|Name | Type | Description | Notes|
|
|
198
|
+
|------------- | ------------- | ------------- | -------------|
|
|
199
|
+
| **cursor** | [**string**] | Offset cursor returned by previous requests | (optional) defaults to undefined|
|
|
200
|
+
| **limit** | [**number**] | Maximum number of records to return | (optional) defaults to 20|
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### Return type
|
|
204
|
+
|
|
205
|
+
**TopupRecordsResponse**
|
|
206
|
+
|
|
207
|
+
### Authorization
|
|
208
|
+
|
|
209
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
210
|
+
|
|
211
|
+
### HTTP request headers
|
|
212
|
+
|
|
213
|
+
- **Content-Type**: Not defined
|
|
214
|
+
- **Accept**: application/json
|
|
215
|
+
|
|
216
|
+
|
|
161
217
|
### HTTP response details
|
|
162
218
|
| Status code | Description | Response headers |
|
|
163
219
|
|-------------|-------------|------------------|
|
|
@@ -27,8 +27,8 @@ Name | Type | Description | Notes
|
|
|
27
27
|
**supports_presence_penalty** | **boolean** | | [optional] [default to true]
|
|
28
28
|
**api_base** | **string** | | [optional] [default to undefined]
|
|
29
29
|
**timeout** | **number** | | [optional] [default to 180]
|
|
30
|
-
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-09T12:41:52.278+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-09T12:41:52.278+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# TopupRecord
|
|
2
|
+
|
|
3
|
+
Top-up record fetched from Supabase.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**tx_hash** | **string** | Transaction hash of the top-up | [default to undefined]
|
|
10
|
+
**log_index** | **number** | Log index within the transaction | [default to undefined]
|
|
11
|
+
**chain_id** | **number** | Blockchain network identifier | [default to undefined]
|
|
12
|
+
**block_number** | **number** | Block number containing the top-up | [default to undefined]
|
|
13
|
+
**block_time** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**payer_address** | **string** | Address that initiated the top-up | [default to undefined]
|
|
15
|
+
**to_address** | **string** | Beneficiary address for the top-up | [default to undefined]
|
|
16
|
+
**token_address** | **string** | Token contract used for the top-up | [default to undefined]
|
|
17
|
+
**amount** | **string** | Token amount in raw units | [default to undefined]
|
|
18
|
+
**contract_address** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**inserted_at** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**credit_event_id** | **string** | | [optional] [default to undefined]
|
|
21
|
+
**credit_event_at** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**credit_amount** | **string** | | [optional] [default to undefined]
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { TopupRecord } from '@crestal/nation-sdk';
|
|
28
|
+
|
|
29
|
+
const instance: TopupRecord = {
|
|
30
|
+
tx_hash,
|
|
31
|
+
log_index,
|
|
32
|
+
chain_id,
|
|
33
|
+
block_number,
|
|
34
|
+
block_time,
|
|
35
|
+
payer_address,
|
|
36
|
+
to_address,
|
|
37
|
+
token_address,
|
|
38
|
+
amount,
|
|
39
|
+
contract_address,
|
|
40
|
+
inserted_at,
|
|
41
|
+
credit_event_id,
|
|
42
|
+
credit_event_at,
|
|
43
|
+
credit_amount,
|
|
44
|
+
};
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# TopupRecordsResponse
|
|
2
|
+
|
|
3
|
+
Paginated response model for Supabase top-up records.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**data** | [**Array<TopupRecord>**](TopupRecord.md) | List of top-up records | [default to undefined]
|
|
10
|
+
**has_more** | **boolean** | Indicates if there are more records available | [default to undefined]
|
|
11
|
+
**next_cursor** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { TopupRecordsResponse } from '@crestal/nation-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: TopupRecordsResponse = {
|
|
19
|
+
data,
|
|
20
|
+
has_more,
|
|
21
|
+
next_cursor,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED