@crestal/nation-sdk 0.8.33 → 0.8.35
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 +7 -51
- package/.openapi-generator/VERSION +1 -1
- package/README.md +9 -53
- package/api.ts +19 -511
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +25 -2
- package/dist/api.d.ts +22 -506
- package/dist/api.js +1 -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 +25 -1
- package/dist/configuration.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentAssetsResponse.md +1 -1
- package/docs/{AssetOutput.md → Asset.md} +3 -3
- package/docs/CreditApi.md +2 -2
- package/docs/{CreditEventOutput.md → CreditEvent.md} +3 -3
- package/docs/{CreditEventWithAgentOutput.md → CreditEventWithAgent.md} +3 -3
- package/docs/CreditEventsResponse.md +1 -1
- package/docs/{CreditTransactionRespOutput.md → CreditTransactionResp.md} +4 -4
- package/docs/CreditTransactionsResponse.md +1 -1
- package/docs/{LLMModelInfoWithProviderNameOutput.md → LLMModelInfoWithProviderName.md} +5 -5
- package/docs/MetadataApi.md +4 -4
- package/docs/{SkillOutput.md → Skill.md} +3 -3
- package/docs/{TopupRecordOutput.md → TopupRecord.md} +3 -3
- package/docs/TopupRecordsResponse.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/Amount.md +0 -19
- package/docs/AssetInput.md +0 -23
- package/docs/Balance.md +0 -19
- package/docs/BalanceAfter.md +0 -19
- package/docs/BaseAmount.md +0 -19
- package/docs/BaseDiscountAmount.md +0 -19
- package/docs/BaseFreeAmount.md +0 -19
- package/docs/BaseLlmAmount.md +0 -19
- package/docs/BaseOriginalAmount.md +0 -19
- package/docs/BasePermanentAmount.md +0 -19
- package/docs/BaseRewardAmount.md +0 -19
- package/docs/BaseSkillAmount.md +0 -19
- package/docs/ChangeAmount.md +0 -19
- package/docs/CreditAmount.md +0 -19
- package/docs/CreditEventInput.md +0 -109
- package/docs/CreditEventWithAgentInput.md +0 -111
- package/docs/CreditTransactionRespInput.md +0 -43
- package/docs/FeeAgentAmount.md +0 -19
- package/docs/FeeAgentFreeAmount.md +0 -19
- package/docs/FeeAgentPermanentAmount.md +0 -19
- package/docs/FeeAgentRewardAmount.md +0 -19
- package/docs/FeeDevAmount.md +0 -19
- package/docs/FeeDevFreeAmount.md +0 -19
- package/docs/FeeDevPermanentAmount.md +0 -19
- package/docs/FeeDevRewardAmount.md +0 -19
- package/docs/FeePlatformAmount.md +0 -19
- package/docs/FeePlatformFreeAmount.md +0 -19
- package/docs/FeePlatformPermanentAmount.md +0 -19
- package/docs/FeePlatformRewardAmount.md +0 -19
- package/docs/FreeAmount.md +0 -19
- package/docs/FreeAmount1.md +0 -19
- package/docs/InputPrice.md +0 -18
- package/docs/LLMModelInfoWithProviderNameInput.md +0 -67
- package/docs/OutputPrice.md +0 -18
- package/docs/PermanentAmount.md +0 -19
- package/docs/PermanentAmount1.md +0 -19
- package/docs/Price.md +0 -19
- package/docs/PriceSelfKey.md +0 -19
- package/docs/RewardAmount.md +0 -19
- package/docs/RewardAmount1.md +0 -19
- package/docs/SkillInput.md +0 -43
- package/docs/TokenAmount.md +0 -19
- package/docs/TopupRecordInput.md +0 -49
- package/docs/TotalAmount.md +0 -19
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.8.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.35
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
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.8.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.35
|
|
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.8.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.35
|
|
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
|
@@ -2,18 +2,30 @@
|
|
|
2
2
|
* Nation IntentKit API
|
|
3
3
|
* API for Nation IntentKit services
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.8.
|
|
5
|
+
* The version of the OpenAPI document: 0.8.35
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
interface AWSv4Configuration {
|
|
13
|
+
options?: {
|
|
14
|
+
region?: string;
|
|
15
|
+
service?: string;
|
|
16
|
+
};
|
|
17
|
+
credentials?: {
|
|
18
|
+
accessKeyId?: string;
|
|
19
|
+
secretAccessKey?: string;
|
|
20
|
+
sessionToken?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
12
23
|
export interface ConfigurationParameters {
|
|
13
24
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
25
|
username?: string;
|
|
15
26
|
password?: string;
|
|
16
27
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
28
|
+
awsv4?: AWSv4Configuration;
|
|
17
29
|
basePath?: string;
|
|
18
30
|
serverIndex?: number;
|
|
19
31
|
baseOptions?: any;
|
|
@@ -39,6 +51,17 @@ export declare class Configuration {
|
|
|
39
51
|
* @param scopes oauth2 scope
|
|
40
52
|
*/
|
|
41
53
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
54
|
+
/**
|
|
55
|
+
* parameter for aws4 signature security
|
|
56
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
57
|
+
* @param {string} options.region - aws region
|
|
58
|
+
* @param {string} options.service - name of the service.
|
|
59
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
60
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
61
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
62
|
+
* @memberof Configuration
|
|
63
|
+
*/
|
|
64
|
+
awsv4?: AWSv4Configuration;
|
|
42
65
|
/**
|
|
43
66
|
* override base path
|
|
44
67
|
*/
|
|
@@ -72,3 +95,4 @@ export declare class Configuration {
|
|
|
72
95
|
*/
|
|
73
96
|
isJsonMime(mime: string): boolean;
|
|
74
97
|
}
|
|
98
|
+
export {};
|
package/dist/configuration.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
3
|
/**
|
|
5
4
|
* Nation IntentKit API
|
|
6
5
|
* API for Nation IntentKit services
|
|
7
6
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.8.
|
|
7
|
+
* The version of the OpenAPI document: 0.8.35
|
|
9
8
|
*
|
|
10
9
|
*
|
|
11
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -33,6 +32,7 @@ var Configuration = /** @class */ (function () {
|
|
|
33
32
|
this.username = param.username;
|
|
34
33
|
this.password = param.password;
|
|
35
34
|
this.accessToken = param.accessToken;
|
|
35
|
+
this.awsv4 = param.awsv4;
|
|
36
36
|
this.basePath = param.basePath;
|
|
37
37
|
this.serverIndex = param.serverIndex;
|
|
38
38
|
this.baseOptions = __assign(__assign({}, param.baseOptions), { headers: __assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
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.8.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.35
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**token_address** | **string** | | [default to undefined]
|
|
14
14
|
**token_pool** | **string** | | [default to undefined]
|
|
15
15
|
**tvl** | **string** | Total value locked, set to 0 for this version | [optional] [default to '0']
|
|
16
|
-
**assets** | [**Array<
|
|
16
|
+
**assets** | [**Array<Asset>**](Asset.md) | List of assets with symbol and balance | [default to undefined]
|
|
17
17
|
**account** | [**CreditAccount**](CreditAccount.md) | Credit account information | [default to undefined]
|
|
18
18
|
|
|
19
19
|
## Example
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Asset
|
|
2
2
|
|
|
3
3
|
Model for individual asset with symbol and balance.
|
|
4
4
|
|
|
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import {
|
|
15
|
+
import { Asset } from '@crestal/nation-sdk';
|
|
16
16
|
|
|
17
|
-
const instance:
|
|
17
|
+
const instance: Asset = {
|
|
18
18
|
symbol,
|
|
19
19
|
balance,
|
|
20
20
|
};
|
package/docs/CreditApi.md
CHANGED
|
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost*
|
|
|
12
12
|
|[**listUserTransactions**](#listusertransactions) | **GET** /credit/user/transactions | List User Transactions|
|
|
13
13
|
|
|
14
14
|
# **fetchCreditEvent**
|
|
15
|
-
>
|
|
15
|
+
> CreditEvent fetchCreditEvent()
|
|
16
16
|
|
|
17
17
|
Fetch a credit event by its ID, with authorization check. Returns the credit event if it exists and belongs to the user, otherwise raises an HTTP error.
|
|
18
18
|
|
|
@@ -43,7 +43,7 @@ const { status, data } = await apiInstance.fetchCreditEvent(
|
|
|
43
43
|
|
|
44
44
|
### Return type
|
|
45
45
|
|
|
46
|
-
**
|
|
46
|
+
**CreditEvent**
|
|
47
47
|
|
|
48
48
|
### Authorization
|
|
49
49
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CreditEvent
|
|
2
2
|
|
|
3
3
|
Credit event model with all fields.
|
|
4
4
|
|
|
@@ -55,9 +55,9 @@ Name | Type | Description | Notes
|
|
|
55
55
|
## Example
|
|
56
56
|
|
|
57
57
|
```typescript
|
|
58
|
-
import {
|
|
58
|
+
import { CreditEvent } from '@crestal/nation-sdk';
|
|
59
59
|
|
|
60
|
-
const instance:
|
|
60
|
+
const instance: CreditEvent = {
|
|
61
61
|
id,
|
|
62
62
|
account_id,
|
|
63
63
|
event_type,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CreditEventWithAgent
|
|
2
2
|
|
|
3
3
|
Credit event response model with agent name. Extends CreditEvent to include the agent name for better user experience.
|
|
4
4
|
|
|
@@ -56,9 +56,9 @@ Name | Type | Description | Notes
|
|
|
56
56
|
## Example
|
|
57
57
|
|
|
58
58
|
```typescript
|
|
59
|
-
import {
|
|
59
|
+
import { CreditEventWithAgent } from '@crestal/nation-sdk';
|
|
60
60
|
|
|
61
|
-
const instance:
|
|
61
|
+
const instance: CreditEventWithAgent = {
|
|
62
62
|
id,
|
|
63
63
|
account_id,
|
|
64
64
|
event_type,
|
|
@@ -6,7 +6,7 @@ Paginated response model for credit events. Contains a list of credit events, a
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**data** | [**Array<
|
|
9
|
+
**data** | [**Array<CreditEventWithAgent>**](CreditEventWithAgent.md) | List of credit events with agent names | [default to undefined]
|
|
10
10
|
**has_more** | **boolean** | Indicates if there are more items | [default to undefined]
|
|
11
11
|
**next_cursor** | **string** | | [optional] [default to undefined]
|
|
12
12
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CreditTransactionResp
|
|
2
2
|
|
|
3
3
|
Credit transaction response model with associated event data. Extends CreditTransaction to include the related CreditEvent if available.
|
|
4
4
|
|
|
@@ -17,14 +17,14 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**permanent_amount** | **string** | Amount of permanent credits changed | [optional] [default to '0']
|
|
18
18
|
**credit_type** | [**CreditType**](CreditType.md) | Type of credits involved | [default to undefined]
|
|
19
19
|
**created_at** | **string** | Timestamp when this transaction was created | [default to undefined]
|
|
20
|
-
**event** | [**
|
|
20
|
+
**event** | [**CreditEvent**](CreditEvent.md) | | [optional] [default to undefined]
|
|
21
21
|
|
|
22
22
|
## Example
|
|
23
23
|
|
|
24
24
|
```typescript
|
|
25
|
-
import {
|
|
25
|
+
import { CreditTransactionResp } from '@crestal/nation-sdk';
|
|
26
26
|
|
|
27
|
-
const instance:
|
|
27
|
+
const instance: CreditTransactionResp = {
|
|
28
28
|
id,
|
|
29
29
|
account_id,
|
|
30
30
|
event_id,
|
|
@@ -6,7 +6,7 @@ Paginated response model for credit transactions. Contains a list of credit tra
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**data** | [**Array<
|
|
9
|
+
**data** | [**Array<CreditTransactionResp>**](CreditTransactionResp.md) | List of credit transactions | [default to undefined]
|
|
10
10
|
**has_more** | **boolean** | Indicates if there are more items | [default to undefined]
|
|
11
11
|
**next_cursor** | **string** | | [optional] [default to undefined]
|
|
12
12
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# LLMModelInfoWithProviderName
|
|
2
2
|
|
|
3
3
|
LLM model information with provider display name.
|
|
4
4
|
|
|
@@ -27,16 +27,16 @@ 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-29T17:26:40.395+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-29T17:26:40.395+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
|
35
35
|
|
|
36
36
|
```typescript
|
|
37
|
-
import {
|
|
37
|
+
import { LLMModelInfoWithProviderName } from '@crestal/nation-sdk';
|
|
38
38
|
|
|
39
|
-
const instance:
|
|
39
|
+
const instance: LLMModelInfoWithProviderName = {
|
|
40
40
|
id,
|
|
41
41
|
name,
|
|
42
42
|
provider,
|
package/docs/MetadataApi.md
CHANGED
|
@@ -146,7 +146,7 @@ No authorization required
|
|
|
146
146
|
[[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)
|
|
147
147
|
|
|
148
148
|
# **getLlms**
|
|
149
|
-
> Array<
|
|
149
|
+
> Array<LLMModelInfoWithProviderName> getLlms()
|
|
150
150
|
|
|
151
151
|
Returns a list of all available LLM models in the system
|
|
152
152
|
|
|
@@ -170,7 +170,7 @@ This endpoint does not have any parameters.
|
|
|
170
170
|
|
|
171
171
|
### Return type
|
|
172
172
|
|
|
173
|
-
**Array<
|
|
173
|
+
**Array<LLMModelInfoWithProviderName>**
|
|
174
174
|
|
|
175
175
|
### Authorization
|
|
176
176
|
|
|
@@ -348,7 +348,7 @@ No authorization required
|
|
|
348
348
|
[[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)
|
|
349
349
|
|
|
350
350
|
# **getSkills**
|
|
351
|
-
> Array<
|
|
351
|
+
> Array<Skill> getSkills()
|
|
352
352
|
|
|
353
353
|
Returns a list of all available skills in the system
|
|
354
354
|
|
|
@@ -372,7 +372,7 @@ This endpoint does not have any parameters.
|
|
|
372
372
|
|
|
373
373
|
### Return type
|
|
374
374
|
|
|
375
|
-
**Array<
|
|
375
|
+
**Array<Skill>**
|
|
376
376
|
|
|
377
377
|
### Authorization
|
|
378
378
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Skill
|
|
2
2
|
|
|
3
3
|
Pydantic model for Skill.
|
|
4
4
|
|
|
@@ -22,9 +22,9 @@ Name | Type | Description | Notes
|
|
|
22
22
|
## Example
|
|
23
23
|
|
|
24
24
|
```typescript
|
|
25
|
-
import {
|
|
25
|
+
import { Skill } from '@crestal/nation-sdk';
|
|
26
26
|
|
|
27
|
-
const instance:
|
|
27
|
+
const instance: Skill = {
|
|
28
28
|
name,
|
|
29
29
|
enabled,
|
|
30
30
|
category,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# TopupRecord
|
|
2
2
|
|
|
3
3
|
Top-up record fetched from Supabase.
|
|
4
4
|
|
|
@@ -25,9 +25,9 @@ Name | Type | Description | Notes
|
|
|
25
25
|
## Example
|
|
26
26
|
|
|
27
27
|
```typescript
|
|
28
|
-
import {
|
|
28
|
+
import { TopupRecord } from '@crestal/nation-sdk';
|
|
29
29
|
|
|
30
|
-
const instance:
|
|
30
|
+
const instance: TopupRecord = {
|
|
31
31
|
tx_hash,
|
|
32
32
|
log_index,
|
|
33
33
|
chain_id,
|
|
@@ -6,7 +6,7 @@ Paginated response model for Supabase top-up records.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**data** | [**Array<
|
|
9
|
+
**data** | [**Array<TopupRecord>**](TopupRecord.md) | List of top-up records | [default to undefined]
|
|
10
10
|
**has_more** | **boolean** | Indicates if there are more records available | [default to undefined]
|
|
11
11
|
**next_cursor** | **string** | | [optional] [default to undefined]
|
|
12
12
|
|
package/index.ts
CHANGED
package/package.json
CHANGED
package/docs/Amount.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Amount
|
|
2
|
-
|
|
3
|
-
Token amount in raw units
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { Amount } from '@crestal/nation-sdk';
|
|
14
|
-
|
|
15
|
-
const instance: Amount = {
|
|
16
|
-
};
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
[[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/docs/AssetInput.md
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# AssetInput
|
|
2
|
-
|
|
3
|
-
Model for individual asset with symbol and balance.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**symbol** | **string** | Asset symbol (e.g., ETH, USDC, NATION) | [default to undefined]
|
|
10
|
-
**balance** | [**Balance**](Balance.md) | | [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { AssetInput } from '@crestal/nation-sdk';
|
|
16
|
-
|
|
17
|
-
const instance: AssetInput = {
|
|
18
|
-
symbol,
|
|
19
|
-
balance,
|
|
20
|
-
};
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
[[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/docs/Balance.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Balance
|
|
2
|
-
|
|
3
|
-
Asset balance as decimal
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { Balance } from '@crestal/nation-sdk';
|
|
14
|
-
|
|
15
|
-
const instance: Balance = {
|
|
16
|
-
};
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
[[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/docs/BalanceAfter.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# BalanceAfter
|
|
2
|
-
|
|
3
|
-
Account total balance after the transaction
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { BalanceAfter } from '@crestal/nation-sdk';
|
|
14
|
-
|
|
15
|
-
const instance: BalanceAfter = {
|
|
16
|
-
};
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
[[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/docs/BaseAmount.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# BaseAmount
|
|
2
|
-
|
|
3
|
-
Base amount of credits involved
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { BaseAmount } from '@crestal/nation-sdk';
|
|
14
|
-
|
|
15
|
-
const instance: BaseAmount = {
|
|
16
|
-
};
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# BaseDiscountAmount
|
|
2
|
-
|
|
3
|
-
Base discount amount
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { BaseDiscountAmount } from '@crestal/nation-sdk';
|
|
14
|
-
|
|
15
|
-
const instance: BaseDiscountAmount = {
|
|
16
|
-
};
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
[[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/docs/BaseFreeAmount.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# BaseFreeAmount
|
|
2
|
-
|
|
3
|
-
Base free credit amount
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { BaseFreeAmount } from '@crestal/nation-sdk';
|
|
14
|
-
|
|
15
|
-
const instance: BaseFreeAmount = {
|
|
16
|
-
};
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
[[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/docs/BaseLlmAmount.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# BaseLlmAmount
|
|
2
|
-
|
|
3
|
-
Base LLM cost amount
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { BaseLlmAmount } from '@crestal/nation-sdk';
|
|
14
|
-
|
|
15
|
-
const instance: BaseLlmAmount = {
|
|
16
|
-
};
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# BaseOriginalAmount
|
|
2
|
-
|
|
3
|
-
Base original amount
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { BaseOriginalAmount } from '@crestal/nation-sdk';
|
|
14
|
-
|
|
15
|
-
const instance: BaseOriginalAmount = {
|
|
16
|
-
};
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# BasePermanentAmount
|
|
2
|
-
|
|
3
|
-
Base permanent credit amount
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { BasePermanentAmount } from '@crestal/nation-sdk';
|
|
14
|
-
|
|
15
|
-
const instance: BasePermanentAmount = {
|
|
16
|
-
};
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
[[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/docs/BaseRewardAmount.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# BaseRewardAmount
|
|
2
|
-
|
|
3
|
-
Base reward credit amount
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { BaseRewardAmount } from '@crestal/nation-sdk';
|
|
14
|
-
|
|
15
|
-
const instance: BaseRewardAmount = {
|
|
16
|
-
};
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
[[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/docs/BaseSkillAmount.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# BaseSkillAmount
|
|
2
|
-
|
|
3
|
-
Base skill cost amount
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { BaseSkillAmount } from '@crestal/nation-sdk';
|
|
14
|
-
|
|
15
|
-
const instance: BaseSkillAmount = {
|
|
16
|
-
};
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|