@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
|
@@ -1,67 +0,0 @@
|
|
|
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-29T12:45:51.654+00:00]
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-29T12:45:51.654+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)
|
package/docs/OutputPrice.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
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)
|
package/docs/PermanentAmount.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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)
|
package/docs/PermanentAmount1.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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)
|
package/docs/PriceSelfKey.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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)
|
package/docs/RewardAmount.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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)
|
package/docs/RewardAmount1.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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)
|
package/docs/SkillInput.md
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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)
|
package/docs/TokenAmount.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# TokenAmount
|
|
2
|
-
|
|
3
|
-
Token amount converted to token units
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { TokenAmount } from '@crestal/nation-sdk';
|
|
14
|
-
|
|
15
|
-
const instance: TokenAmount = {
|
|
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/TopupRecordInput.md
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
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
|
-
**token_amount** | [**TokenAmount**](TokenAmount.md) | | [optional] [default to undefined]
|
|
19
|
-
**contract_address** | **string** | | [optional] [default to undefined]
|
|
20
|
-
**inserted_at** | **string** | | [optional] [default to undefined]
|
|
21
|
-
**credit_event_id** | **string** | | [optional] [default to undefined]
|
|
22
|
-
**credit_event_at** | **string** | | [optional] [default to undefined]
|
|
23
|
-
**credit_amount** | [**CreditAmount**](CreditAmount.md) | | [optional] [default to undefined]
|
|
24
|
-
|
|
25
|
-
## Example
|
|
26
|
-
|
|
27
|
-
```typescript
|
|
28
|
-
import { TopupRecordInput } from '@crestal/nation-sdk';
|
|
29
|
-
|
|
30
|
-
const instance: TopupRecordInput = {
|
|
31
|
-
tx_hash,
|
|
32
|
-
log_index,
|
|
33
|
-
chain_id,
|
|
34
|
-
block_number,
|
|
35
|
-
block_time,
|
|
36
|
-
payer_address,
|
|
37
|
-
to_address,
|
|
38
|
-
token_address,
|
|
39
|
-
amount,
|
|
40
|
-
token_amount,
|
|
41
|
-
contract_address,
|
|
42
|
-
inserted_at,
|
|
43
|
-
credit_event_id,
|
|
44
|
-
credit_event_at,
|
|
45
|
-
credit_amount,
|
|
46
|
-
};
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
[[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/TotalAmount.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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)
|