@crestal/nation-sdk 0.7.40 → 0.7.41
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 +50 -7
- package/.openapi-generator/VERSION +1 -1
- package/README.md +52 -9
- package/api.ts +481 -2349
- package/base.ts +1 -25
- package/common.ts +1 -38
- package/configuration.ts +1 -18
- package/dist/api.d.ts +476 -2352
- package/dist/api.js +1 -146
- package/dist/base.d.ts +1 -25
- package/dist/base.js +1 -20
- package/dist/common.d.ts +1 -38
- package/dist/common.js +1 -38
- package/dist/configuration.d.ts +1 -18
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentAssetsResponse.md +1 -1
- package/docs/Amount.md +19 -0
- package/docs/AssetInput.md +23 -0
- package/docs/{Asset.md → AssetOutput.md} +3 -3
- package/docs/Balance.md +19 -0
- package/docs/BalanceAfter.md +19 -0
- package/docs/BaseAmount.md +19 -0
- package/docs/BaseDiscountAmount.md +19 -0
- package/docs/BaseFreeAmount.md +19 -0
- package/docs/BaseLlmAmount.md +19 -0
- package/docs/BaseOriginalAmount.md +19 -0
- package/docs/BasePermanentAmount.md +19 -0
- package/docs/BaseRewardAmount.md +19 -0
- package/docs/BaseSkillAmount.md +19 -0
- package/docs/ChangeAmount.md +19 -0
- package/docs/CreditAmount.md +19 -0
- package/docs/CreditApi.md +2 -2
- package/docs/CreditEventInput.md +109 -0
- package/docs/{CreditEvent.md → CreditEventOutput.md} +3 -3
- package/docs/CreditEventWithAgentInput.md +111 -0
- package/docs/{CreditEventWithAgent.md → CreditEventWithAgentOutput.md} +3 -3
- package/docs/CreditEventsResponse.md +1 -1
- package/docs/CreditTransactionRespInput.md +43 -0
- package/docs/{CreditTransactionResp.md → CreditTransactionRespOutput.md} +4 -4
- package/docs/CreditTransactionsResponse.md +1 -1
- package/docs/FeeAgentAmount.md +19 -0
- package/docs/FeeAgentFreeAmount.md +19 -0
- package/docs/FeeAgentPermanentAmount.md +19 -0
- package/docs/FeeAgentRewardAmount.md +19 -0
- package/docs/FeeDevAmount.md +19 -0
- package/docs/FeeDevFreeAmount.md +19 -0
- package/docs/FeeDevPermanentAmount.md +19 -0
- package/docs/FeeDevRewardAmount.md +19 -0
- package/docs/FeePlatformAmount.md +19 -0
- package/docs/FeePlatformFreeAmount.md +19 -0
- package/docs/FeePlatformPermanentAmount.md +19 -0
- package/docs/FeePlatformRewardAmount.md +19 -0
- package/docs/FreeAmount.md +19 -0
- package/docs/FreeAmount1.md +19 -0
- package/docs/InputPrice.md +18 -0
- package/docs/LLMModelInfoWithProviderNameInput.md +67 -0
- package/docs/{LLMModelInfoWithProviderName.md → LLMModelInfoWithProviderNameOutput.md} +5 -5
- package/docs/MetadataApi.md +4 -4
- package/docs/OutputPrice.md +18 -0
- package/docs/PermanentAmount.md +19 -0
- package/docs/PermanentAmount1.md +19 -0
- package/docs/Price.md +19 -0
- package/docs/PriceSelfKey.md +19 -0
- package/docs/RewardAmount.md +19 -0
- package/docs/RewardAmount1.md +19 -0
- package/docs/SkillInput.md +43 -0
- package/docs/{Skill.md → SkillOutput.md} +3 -3
- package/docs/TopupRecordInput.md +47 -0
- package/docs/{TopupRecord.md → TopupRecordOutput.md} +3 -3
- package/docs/TopupRecordsResponse.md +1 -1
- package/docs/TotalAmount.md +19 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# InputPrice
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { InputPrice } from '@crestal/nation-sdk';
|
|
13
|
+
|
|
14
|
+
const instance: InputPrice = {
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
[[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,67 @@
|
|
|
1
|
+
# LLMModelInfoWithProviderNameInput
|
|
2
|
+
|
|
3
|
+
LLM model information with provider display name.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | | [default to undefined]
|
|
10
|
+
**name** | **string** | | [default to undefined]
|
|
11
|
+
**provider** | [**LLMProvider**](LLMProvider.md) | | [default to undefined]
|
|
12
|
+
**enabled** | **boolean** | | [optional] [default to true]
|
|
13
|
+
**input_price** | [**InputPrice**](InputPrice.md) | | [default to undefined]
|
|
14
|
+
**output_price** | [**OutputPrice**](OutputPrice.md) | | [default to undefined]
|
|
15
|
+
**price_level** | **number** | | [optional] [default to undefined]
|
|
16
|
+
**context_length** | **number** | | [default to undefined]
|
|
17
|
+
**output_length** | **number** | | [default to undefined]
|
|
18
|
+
**intelligence** | **number** | | [default to undefined]
|
|
19
|
+
**speed** | **number** | | [default to undefined]
|
|
20
|
+
**supports_image_input** | **boolean** | | [optional] [default to false]
|
|
21
|
+
**supports_skill_calls** | **boolean** | | [optional] [default to false]
|
|
22
|
+
**supports_structured_output** | **boolean** | | [optional] [default to false]
|
|
23
|
+
**has_reasoning** | **boolean** | | [optional] [default to false]
|
|
24
|
+
**supports_search** | **boolean** | | [optional] [default to false]
|
|
25
|
+
**supports_temperature** | **boolean** | | [optional] [default to true]
|
|
26
|
+
**supports_frequency_penalty** | **boolean** | | [optional] [default to true]
|
|
27
|
+
**supports_presence_penalty** | **boolean** | | [optional] [default to true]
|
|
28
|
+
**api_base** | **string** | | [optional] [default to undefined]
|
|
29
|
+
**timeout** | **number** | | [optional] [default to 180]
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-12T15:14:44.642+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-12T15:14:44.642+00:00]
|
|
32
|
+
**provider_name** | **string** | | [default to undefined]
|
|
33
|
+
|
|
34
|
+
## Example
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { LLMModelInfoWithProviderNameInput } from '@crestal/nation-sdk';
|
|
38
|
+
|
|
39
|
+
const instance: LLMModelInfoWithProviderNameInput = {
|
|
40
|
+
id,
|
|
41
|
+
name,
|
|
42
|
+
provider,
|
|
43
|
+
enabled,
|
|
44
|
+
input_price,
|
|
45
|
+
output_price,
|
|
46
|
+
price_level,
|
|
47
|
+
context_length,
|
|
48
|
+
output_length,
|
|
49
|
+
intelligence,
|
|
50
|
+
speed,
|
|
51
|
+
supports_image_input,
|
|
52
|
+
supports_skill_calls,
|
|
53
|
+
supports_structured_output,
|
|
54
|
+
has_reasoning,
|
|
55
|
+
supports_search,
|
|
56
|
+
supports_temperature,
|
|
57
|
+
supports_frequency_penalty,
|
|
58
|
+
supports_presence_penalty,
|
|
59
|
+
api_base,
|
|
60
|
+
timeout,
|
|
61
|
+
created_at,
|
|
62
|
+
updated_at,
|
|
63
|
+
provider_name,
|
|
64
|
+
};
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
[[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,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# LLMModelInfoWithProviderNameOutput
|
|
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-12T15:14:44.642+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-12T15:14:44.642+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
|
35
35
|
|
|
36
36
|
```typescript
|
|
37
|
-
import {
|
|
37
|
+
import { LLMModelInfoWithProviderNameOutput } from '@crestal/nation-sdk';
|
|
38
38
|
|
|
39
|
-
const instance:
|
|
39
|
+
const instance: LLMModelInfoWithProviderNameOutput = {
|
|
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<LLMModelInfoWithProviderNameOutput> 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<LLMModelInfoWithProviderNameOutput>**
|
|
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<SkillOutput> 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<SkillOutput>**
|
|
376
376
|
|
|
377
377
|
### Authorization
|
|
378
378
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# OutputPrice
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { OutputPrice } from '@crestal/nation-sdk';
|
|
13
|
+
|
|
14
|
+
const instance: OutputPrice = {
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
[[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,19 @@
|
|
|
1
|
+
# PermanentAmount
|
|
2
|
+
|
|
3
|
+
Permanent credit amount involved
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { PermanentAmount } from '@crestal/nation-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: PermanentAmount = {
|
|
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)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# PermanentAmount1
|
|
2
|
+
|
|
3
|
+
Amount of permanent credits changed
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { PermanentAmount1 } from '@crestal/nation-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: PermanentAmount1 = {
|
|
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/Price.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Price
|
|
2
|
+
|
|
3
|
+
Price for this skill
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { Price } from '@crestal/nation-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: Price = {
|
|
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)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# PriceSelfKey
|
|
2
|
+
|
|
3
|
+
Price for this skill with self key
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { PriceSelfKey } from '@crestal/nation-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: PriceSelfKey = {
|
|
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)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# RewardAmount
|
|
2
|
+
|
|
3
|
+
Reward credit amount involved
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { RewardAmount } from '@crestal/nation-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: RewardAmount = {
|
|
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)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# RewardAmount1
|
|
2
|
+
|
|
3
|
+
Amount of reward credits changed
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { RewardAmount1 } from '@crestal/nation-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: RewardAmount1 = {
|
|
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)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# SkillInput
|
|
2
|
+
|
|
3
|
+
Pydantic model for Skill.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**name** | **string** | Name of the skill | [default to undefined]
|
|
10
|
+
**enabled** | **boolean** | Is this skill enabled? | [default to undefined]
|
|
11
|
+
**category** | **string** | Category of the skill | [default to undefined]
|
|
12
|
+
**config_name** | **string** | | [default to undefined]
|
|
13
|
+
**price_level** | **number** | | [default to undefined]
|
|
14
|
+
**price** | [**Price**](Price.md) | | [optional] [default to undefined]
|
|
15
|
+
**price_self_key** | [**PriceSelfKey**](PriceSelfKey.md) | | [optional] [default to undefined]
|
|
16
|
+
**rate_limit_count** | **number** | | [default to undefined]
|
|
17
|
+
**rate_limit_minutes** | **number** | | [default to undefined]
|
|
18
|
+
**author** | **string** | | [default to undefined]
|
|
19
|
+
**created_at** | **string** | Timestamp when this record was created | [default to undefined]
|
|
20
|
+
**updated_at** | **string** | Timestamp when this record was last updated | [default to undefined]
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { SkillInput } from '@crestal/nation-sdk';
|
|
26
|
+
|
|
27
|
+
const instance: SkillInput = {
|
|
28
|
+
name,
|
|
29
|
+
enabled,
|
|
30
|
+
category,
|
|
31
|
+
config_name,
|
|
32
|
+
price_level,
|
|
33
|
+
price,
|
|
34
|
+
price_self_key,
|
|
35
|
+
rate_limit_count,
|
|
36
|
+
rate_limit_minutes,
|
|
37
|
+
author,
|
|
38
|
+
created_at,
|
|
39
|
+
updated_at,
|
|
40
|
+
};
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
[[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,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# SkillOutput
|
|
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 { SkillOutput } from '@crestal/nation-sdk';
|
|
26
26
|
|
|
27
|
-
const instance:
|
|
27
|
+
const instance: SkillOutput = {
|
|
28
28
|
name,
|
|
29
29
|
enabled,
|
|
30
30
|
category,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# TopupRecordInput
|
|
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** | [**Amount**](Amount.md) | | [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** | [**CreditAmount**](CreditAmount.md) | | [optional] [default to undefined]
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { TopupRecordInput } from '@crestal/nation-sdk';
|
|
28
|
+
|
|
29
|
+
const instance: TopupRecordInput = {
|
|
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)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# TopupRecordOutput
|
|
2
2
|
|
|
3
3
|
Top-up record fetched from Supabase.
|
|
4
4
|
|
|
@@ -24,9 +24,9 @@ Name | Type | Description | Notes
|
|
|
24
24
|
## Example
|
|
25
25
|
|
|
26
26
|
```typescript
|
|
27
|
-
import {
|
|
27
|
+
import { TopupRecordOutput } from '@crestal/nation-sdk';
|
|
28
28
|
|
|
29
|
-
const instance:
|
|
29
|
+
const instance: TopupRecordOutput = {
|
|
30
30
|
tx_hash,
|
|
31
31
|
log_index,
|
|
32
32
|
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<TopupRecordOutput>**](TopupRecordOutput.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
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# TotalAmount
|
|
2
|
+
|
|
3
|
+
Total amount (after discount) of credits involved
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { TotalAmount } from '@crestal/nation-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: TotalAmount = {
|
|
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/index.ts
CHANGED