@crestal/nation-sdk 0.7.12 → 0.7.14
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 +8 -2
- package/api.ts +390 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +233 -1
- package/dist/api.js +361 -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/Agent.md +6 -0
- package/docs/AgentApi.md +110 -0
- package/docs/AgentPublicInfo.md +37 -0
- package/docs/AgentResponse.md +6 -0
- package/docs/FeePercentage.md +19 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/MetadataApi.md +90 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# AgentPublicInfo
|
|
2
|
+
|
|
3
|
+
Public information of the agent.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**external_website** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**ticker** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**token_address** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**token_pool** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**fee_percentage** | [**FeePercentage**](FeePercentage.md) | | [optional] [default to undefined]
|
|
15
|
+
**example_intro** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**examples** | [**Array<AgentExample>**](AgentExample.md) | | [optional] [default to undefined]
|
|
17
|
+
**public_extra** | **object** | | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { AgentPublicInfo } from '@crestal/nation-sdk';
|
|
23
|
+
|
|
24
|
+
const instance: AgentPublicInfo = {
|
|
25
|
+
description,
|
|
26
|
+
external_website,
|
|
27
|
+
ticker,
|
|
28
|
+
token_address,
|
|
29
|
+
token_pool,
|
|
30
|
+
fee_percentage,
|
|
31
|
+
example_intro,
|
|
32
|
+
examples,
|
|
33
|
+
public_extra,
|
|
34
|
+
};
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[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/AgentResponse.md
CHANGED
|
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**fee_percentage** | **string** | | [optional] [default to undefined]
|
|
15
15
|
**example_intro** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**examples** | [**Array<AgentExample>**](AgentExample.md) | | [optional] [default to undefined]
|
|
17
|
+
**public_extra** | **object** | | [optional] [default to undefined]
|
|
17
18
|
**name** | **string** | | [default to undefined]
|
|
18
19
|
**picture** | **string** | | [optional] [default to undefined]
|
|
19
20
|
**model** | **string** | AI model identifier to be used by this agent for processing requests. | [optional] [default to 'gpt-5-mini']
|
|
@@ -35,6 +36,8 @@ Name | Type | Description | Notes
|
|
|
35
36
|
**assets** | **object** | | [optional] [default to undefined]
|
|
36
37
|
**account_snapshot** | [**CreditAccount**](CreditAccount.md) | | [optional] [default to undefined]
|
|
37
38
|
**extra** | **object** | | [optional] [default to undefined]
|
|
39
|
+
**deployed_at** | **string** | | [optional] [default to undefined]
|
|
40
|
+
**public_info_updated_at** | **string** | | [optional] [default to undefined]
|
|
38
41
|
**created_at** | **string** | Timestamp when the agent was created, will ignore when importing | [optional] [default to undefined]
|
|
39
42
|
**updated_at** | **string** | Timestamp when the agent was last updated, will ignore when importing | [optional] [default to undefined]
|
|
40
43
|
**cdp_wallet_address** | **string** | | [optional] [default to undefined]
|
|
@@ -64,6 +67,7 @@ const instance: AgentResponse = {
|
|
|
64
67
|
fee_percentage,
|
|
65
68
|
example_intro,
|
|
66
69
|
examples,
|
|
70
|
+
public_extra,
|
|
67
71
|
name,
|
|
68
72
|
picture,
|
|
69
73
|
model,
|
|
@@ -85,6 +89,8 @@ const instance: AgentResponse = {
|
|
|
85
89
|
assets,
|
|
86
90
|
account_snapshot,
|
|
87
91
|
extra,
|
|
92
|
+
deployed_at,
|
|
93
|
+
public_info_updated_at,
|
|
88
94
|
created_at,
|
|
89
95
|
updated_at,
|
|
90
96
|
cdp_wallet_address,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# FeePercentage
|
|
2
|
+
|
|
3
|
+
Fee percentage of the agent
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { FeePercentage } from '@crestal/nation-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: FeePercentage = {
|
|
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)
|
|
@@ -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-09-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-09-23T18:13:41.714+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-23T18:13:41.714+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
package/docs/MetadataApi.md
CHANGED
|
@@ -4,12 +4,102 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getAgentPublicSchema**](#getagentpublicschema) | **GET** /metadata/agent/public.json | Get public agent schema|
|
|
8
|
+
|[**getAgentPublicStrictSchema**](#getagentpublicstrictschema) | **GET** /metadata/agent/public-strict.json | Get strict public agent schema|
|
|
7
9
|
|[**getAgentSchema**](#getagentschema) | **GET** /metadata/agent/schema.json | Get agent schema|
|
|
8
10
|
|[**getLlms**](#getllms) | **GET** /metadata/llms | Get all LLM models|
|
|
9
11
|
|[**getSkillIcon**](#getskillicon) | **GET** /metadata/skills/{skill}/{icon_name}.{ext} | Get skill icon|
|
|
10
12
|
|[**getSkillSchema**](#getskillschema) | **GET** /metadata/skills/{skill}/schema.json | Get skill schema|
|
|
11
13
|
|[**getSkills**](#getskills) | **GET** /metadata/skills | Get all skills|
|
|
12
14
|
|
|
15
|
+
# **getAgentPublicSchema**
|
|
16
|
+
> any getAgentPublicSchema()
|
|
17
|
+
|
|
18
|
+
Get the JSON schema for AgentPublicInfo with custom adjustments
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import {
|
|
24
|
+
MetadataApi,
|
|
25
|
+
Configuration
|
|
26
|
+
} from '@crestal/nation-sdk';
|
|
27
|
+
|
|
28
|
+
const configuration = new Configuration();
|
|
29
|
+
const apiInstance = new MetadataApi(configuration);
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.getAgentPublicSchema();
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
This endpoint does not have any parameters.
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Return type
|
|
39
|
+
|
|
40
|
+
**any**
|
|
41
|
+
|
|
42
|
+
### Authorization
|
|
43
|
+
|
|
44
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
45
|
+
|
|
46
|
+
### HTTP request headers
|
|
47
|
+
|
|
48
|
+
- **Content-Type**: Not defined
|
|
49
|
+
- **Accept**: application/json
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### HTTP response details
|
|
53
|
+
| Status code | Description | Response headers |
|
|
54
|
+
|-------------|-------------|------------------|
|
|
55
|
+
|**200** | Successful Response | - |
|
|
56
|
+
|
|
57
|
+
[[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)
|
|
58
|
+
|
|
59
|
+
# **getAgentPublicStrictSchema**
|
|
60
|
+
> any getAgentPublicStrictSchema()
|
|
61
|
+
|
|
62
|
+
Get the JSON schema for AgentPublicInfo with strict field requirements
|
|
63
|
+
|
|
64
|
+
### Example
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
67
|
+
import {
|
|
68
|
+
MetadataApi,
|
|
69
|
+
Configuration
|
|
70
|
+
} from '@crestal/nation-sdk';
|
|
71
|
+
|
|
72
|
+
const configuration = new Configuration();
|
|
73
|
+
const apiInstance = new MetadataApi(configuration);
|
|
74
|
+
|
|
75
|
+
const { status, data } = await apiInstance.getAgentPublicStrictSchema();
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Parameters
|
|
79
|
+
This endpoint does not have any parameters.
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### Return type
|
|
83
|
+
|
|
84
|
+
**any**
|
|
85
|
+
|
|
86
|
+
### Authorization
|
|
87
|
+
|
|
88
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
89
|
+
|
|
90
|
+
### HTTP request headers
|
|
91
|
+
|
|
92
|
+
- **Content-Type**: Not defined
|
|
93
|
+
- **Accept**: application/json
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### HTTP response details
|
|
97
|
+
| Status code | Description | Response headers |
|
|
98
|
+
|-------------|-------------|------------------|
|
|
99
|
+
|**200** | Successful Response | - |
|
|
100
|
+
|
|
101
|
+
[[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)
|
|
102
|
+
|
|
13
103
|
# **getAgentSchema**
|
|
14
104
|
> any getAgentSchema()
|
|
15
105
|
|
package/index.ts
CHANGED