@crestal/nation-sdk 0.6.30 → 0.6.31

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.
@@ -7,40 +7,28 @@ Agent update model.
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
9
  **name** | **string** | | [default to undefined]
10
- **slug** | **string** | | [optional] [default to undefined]
11
- **description** | **string** | | [optional] [default to undefined]
12
- **external_website** | **string** | | [optional] [default to undefined]
13
10
  **picture** | **string** | | [optional] [default to undefined]
14
- **ticker** | **string** | | [optional] [default to undefined]
15
- **token_address** | **string** | | [optional] [default to undefined]
16
- **token_pool** | **string** | | [optional] [default to undefined]
17
- **mode** | **string** | | [optional] [default to undefined]
18
- **fee_percentage** | [**FeePercentage**](FeePercentage.md) | | [optional] [default to undefined]
19
- **purpose** | **string** | | [default to undefined]
20
- **personality** | **string** | | [default to undefined]
21
- **principles** | **string** | | [default to undefined]
22
- **owner** | **string** | | [optional] [default to undefined]
23
- **upstream_id** | **string** | | [optional] [default to undefined]
24
- **upstream_extra** | **object** | | [optional] [default to undefined]
11
+ **purpose** | **string** | | [optional] [default to undefined]
12
+ **personality** | **string** | | [optional] [default to undefined]
13
+ **principles** | **string** | | [optional] [default to undefined]
25
14
  **model** | **string** | AI model identifier to be used by this agent for processing requests. | [optional] [default to 'gpt-5-mini']
26
15
  **prompt** | **string** | | [optional] [default to undefined]
27
16
  **prompt_append** | **string** | | [optional] [default to undefined]
28
17
  **temperature** | **number** | | [optional] [default to undefined]
29
18
  **frequency_penalty** | **number** | | [optional] [default to undefined]
30
19
  **presence_penalty** | **number** | | [optional] [default to undefined]
31
- **short_term_memory_strategy** | **string** | | [optional] [default to undefined]
32
- **autonomous** | [**Array<AgentAutonomous>**](AgentAutonomous.md) | | [optional] [default to undefined]
33
- **example_intro** | **string** | | [optional] [default to undefined]
34
- **examples** | [**Array<AgentExample>**](AgentExample.md) | | [optional] [default to undefined]
35
- **skills** | **object** | | [optional] [default to undefined]
36
20
  **wallet_provider** | **string** | | [optional] [default to undefined]
37
21
  **readonly_wallet_address** | **string** | | [optional] [default to undefined]
38
22
  **network_id** | **string** | | [optional] [default to undefined]
39
- **cdp_network_id** | **string** | | [optional] [default to undefined]
23
+ **skills** | **object** | | [optional] [default to undefined]
24
+ **short_term_memory_strategy** | **string** | | [optional] [default to undefined]
25
+ **autonomous** | [**Array<AgentAutonomous>**](AgentAutonomous.md) | | [optional] [default to undefined]
40
26
  **telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
41
27
  **telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
42
28
  **telegram_config** | **object** | | [optional] [default to undefined]
43
29
  **xmtp_entrypoint_prompt** | **string** | | [optional] [default to undefined]
30
+ **upstream_id** | **string** | | [optional] [default to undefined]
31
+ **upstream_extra** | **object** | | [optional] [default to undefined]
44
32
 
45
33
  ## Example
46
34
 
@@ -49,40 +37,28 @@ import { AgentUpdate } from '@crestal/nation-sdk';
49
37
 
50
38
  const instance: AgentUpdate = {
51
39
  name,
52
- slug,
53
- description,
54
- external_website,
55
40
  picture,
56
- ticker,
57
- token_address,
58
- token_pool,
59
- mode,
60
- fee_percentage,
61
41
  purpose,
62
42
  personality,
63
43
  principles,
64
- owner,
65
- upstream_id,
66
- upstream_extra,
67
44
  model,
68
45
  prompt,
69
46
  prompt_append,
70
47
  temperature,
71
48
  frequency_penalty,
72
49
  presence_penalty,
73
- short_term_memory_strategy,
74
- autonomous,
75
- example_intro,
76
- examples,
77
- skills,
78
50
  wallet_provider,
79
51
  readonly_wallet_address,
80
52
  network_id,
81
- cdp_network_id,
53
+ skills,
54
+ short_term_memory_strategy,
55
+ autonomous,
82
56
  telegram_entrypoint_enabled,
83
57
  telegram_entrypoint_prompt,
84
58
  telegram_config,
85
59
  xmtp_entrypoint_prompt,
60
+ upstream_id,
61
+ upstream_extra,
86
62
  };
87
63
  ```
88
64
 
@@ -0,0 +1,61 @@
1
+ # AgentUserInput
2
+
3
+ Agent update model.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | | [default to undefined]
10
+ **picture** | **string** | | [optional] [default to undefined]
11
+ **purpose** | **string** | | [optional] [default to undefined]
12
+ **personality** | **string** | | [optional] [default to undefined]
13
+ **principles** | **string** | | [optional] [default to undefined]
14
+ **model** | **string** | AI model identifier to be used by this agent for processing requests. | [optional] [default to 'gpt-5-mini']
15
+ **prompt** | **string** | | [optional] [default to undefined]
16
+ **prompt_append** | **string** | | [optional] [default to undefined]
17
+ **temperature** | **number** | | [optional] [default to undefined]
18
+ **frequency_penalty** | **number** | | [optional] [default to undefined]
19
+ **presence_penalty** | **number** | | [optional] [default to undefined]
20
+ **wallet_provider** | **string** | | [optional] [default to undefined]
21
+ **readonly_wallet_address** | **string** | | [optional] [default to undefined]
22
+ **network_id** | **string** | | [optional] [default to undefined]
23
+ **skills** | **object** | | [optional] [default to undefined]
24
+ **short_term_memory_strategy** | **string** | | [optional] [default to undefined]
25
+ **autonomous** | [**Array<AgentAutonomous>**](AgentAutonomous.md) | | [optional] [default to undefined]
26
+ **telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
27
+ **telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
28
+ **telegram_config** | **object** | | [optional] [default to undefined]
29
+ **xmtp_entrypoint_prompt** | **string** | | [optional] [default to undefined]
30
+
31
+ ## Example
32
+
33
+ ```typescript
34
+ import { AgentUserInput } from '@crestal/nation-sdk';
35
+
36
+ const instance: AgentUserInput = {
37
+ name,
38
+ picture,
39
+ purpose,
40
+ personality,
41
+ principles,
42
+ model,
43
+ prompt,
44
+ prompt_append,
45
+ temperature,
46
+ frequency_penalty,
47
+ presence_penalty,
48
+ wallet_provider,
49
+ readonly_wallet_address,
50
+ network_id,
51
+ skills,
52
+ short_term_memory_strategy,
53
+ autonomous,
54
+ telegram_entrypoint_enabled,
55
+ telegram_entrypoint_prompt,
56
+ telegram_config,
57
+ xmtp_entrypoint_prompt,
58
+ };
59
+ ```
60
+
61
+ [[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,280 @@
1
+ # DraftApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createAgentDraft**](#createagentdraft) | **POST** /agent/draft | Create Agent Draft|
8
+ |[**getAgentDraftById**](#getagentdraftbyid) | **GET** /agents/{agent_id}/drafts/{draft_id} | Get Agent Draft By Id|
9
+ |[**getAgentDrafts**](#getagentdrafts) | **GET** /agents/{agent_id}/drafts | Get Agent Drafts|
10
+ |[**getAgentLatestDraft**](#getagentlatestdraft) | **GET** /agents/{agent_id}/draft/latest | Get Agent Latest Draft|
11
+ |[**updateAgentDraft**](#updateagentdraft) | **PUT** /agents/{agent_id}/draft | Update Agent Draft|
12
+
13
+ # **createAgentDraft**
14
+ > AgentDraft createAgentDraft(agentUserInput)
15
+
16
+ Create a new agent draft. Creates a new draft with the provided agent configuration. The draft will be assigned a unique ID and agent ID, with the current user as the owner. The version is calculated as a hash of the input configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 500: Internal server error
17
+
18
+ ### Example
19
+
20
+ ```typescript
21
+ import {
22
+ DraftApi,
23
+ Configuration,
24
+ AgentUserInput
25
+ } from '@crestal/nation-sdk';
26
+
27
+ const configuration = new Configuration();
28
+ const apiInstance = new DraftApi(configuration);
29
+
30
+ let agentUserInput: AgentUserInput; //
31
+
32
+ const { status, data } = await apiInstance.createAgentDraft(
33
+ agentUserInput
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **agentUserInput** | **AgentUserInput**| | |
42
+
43
+
44
+ ### Return type
45
+
46
+ **AgentDraft**
47
+
48
+ ### Authorization
49
+
50
+ [HTTPBearer](../README.md#HTTPBearer)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: application/json
55
+ - **Accept**: application/json
56
+
57
+
58
+ ### HTTP response details
59
+ | Status code | Description | Response headers |
60
+ |-------------|-------------|------------------|
61
+ |**201** | Successful Response | - |
62
+ |**422** | Validation Error | - |
63
+
64
+ [[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)
65
+
66
+ # **getAgentDraftById**
67
+ > AgentDraft getAgentDraftById()
68
+
69
+ Get a specific draft by ID. Retrieves a specific draft for the given agent and draft ID. This endpoint is useful for viewing detailed information about a particular draft version. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found or user doesn\'t have access to this draft - 500: Internal server error
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ DraftApi,
76
+ Configuration
77
+ } from '@crestal/nation-sdk';
78
+
79
+ const configuration = new Configuration();
80
+ const apiInstance = new DraftApi(configuration);
81
+
82
+ let agentId: string; //Agent ID (default to undefined)
83
+ let draftId: string; //Draft ID (default to undefined)
84
+
85
+ const { status, data } = await apiInstance.getAgentDraftById(
86
+ agentId,
87
+ draftId
88
+ );
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ |Name | Type | Description | Notes|
94
+ |------------- | ------------- | ------------- | -------------|
95
+ | **agentId** | [**string**] | Agent ID | defaults to undefined|
96
+ | **draftId** | [**string**] | Draft ID | defaults to undefined|
97
+
98
+
99
+ ### Return type
100
+
101
+ **AgentDraft**
102
+
103
+ ### Authorization
104
+
105
+ [HTTPBearer](../README.md#HTTPBearer)
106
+
107
+ ### HTTP request headers
108
+
109
+ - **Content-Type**: Not defined
110
+ - **Accept**: application/json
111
+
112
+
113
+ ### HTTP response details
114
+ | Status code | Description | Response headers |
115
+ |-------------|-------------|------------------|
116
+ |**200** | Successful Response | - |
117
+ |**422** | Validation Error | - |
118
+
119
+ [[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)
120
+
121
+ # **getAgentDrafts**
122
+ > Array<AgentDraft> getAgentDrafts()
123
+
124
+ Get drafts for an agent. Retrieves the latest 10 drafts for the specified agent, ordered by creation time (most recent first). This endpoint is useful for viewing draft history and finding rollback targets. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
125
+
126
+ ### Example
127
+
128
+ ```typescript
129
+ import {
130
+ DraftApi,
131
+ Configuration
132
+ } from '@crestal/nation-sdk';
133
+
134
+ const configuration = new Configuration();
135
+ const apiInstance = new DraftApi(configuration);
136
+
137
+ let agentId: string; //Agent ID (default to undefined)
138
+
139
+ const { status, data } = await apiInstance.getAgentDrafts(
140
+ agentId
141
+ );
142
+ ```
143
+
144
+ ### Parameters
145
+
146
+ |Name | Type | Description | Notes|
147
+ |------------- | ------------- | ------------- | -------------|
148
+ | **agentId** | [**string**] | Agent ID | defaults to undefined|
149
+
150
+
151
+ ### Return type
152
+
153
+ **Array<AgentDraft>**
154
+
155
+ ### Authorization
156
+
157
+ [HTTPBearer](../README.md#HTTPBearer)
158
+
159
+ ### HTTP request headers
160
+
161
+ - **Content-Type**: Not defined
162
+ - **Accept**: application/json
163
+
164
+
165
+ ### HTTP response details
166
+ | Status code | Description | Response headers |
167
+ |-------------|-------------|------------------|
168
+ |**200** | Successful Response | - |
169
+ |**422** | Validation Error | - |
170
+
171
+ [[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)
172
+
173
+ # **getAgentLatestDraft**
174
+ > AgentDraft getAgentLatestDraft()
175
+
176
+ Get the latest draft for an agent. Retrieves the most recent draft for the specified agent. The draft is ordered by creation time, with the most recent draft returned. Possible HTTP errors: - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
177
+
178
+ ### Example
179
+
180
+ ```typescript
181
+ import {
182
+ DraftApi,
183
+ Configuration
184
+ } from '@crestal/nation-sdk';
185
+
186
+ const configuration = new Configuration();
187
+ const apiInstance = new DraftApi(configuration);
188
+
189
+ let agentId: string; //Agent ID (default to undefined)
190
+
191
+ const { status, data } = await apiInstance.getAgentLatestDraft(
192
+ agentId
193
+ );
194
+ ```
195
+
196
+ ### Parameters
197
+
198
+ |Name | Type | Description | Notes|
199
+ |------------- | ------------- | ------------- | -------------|
200
+ | **agentId** | [**string**] | Agent ID | defaults to undefined|
201
+
202
+
203
+ ### Return type
204
+
205
+ **AgentDraft**
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
+
217
+ ### HTTP response details
218
+ | Status code | Description | Response headers |
219
+ |-------------|-------------|------------------|
220
+ |**200** | Successful Response | - |
221
+ |**422** | Validation Error | - |
222
+
223
+ [[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)
224
+
225
+ # **updateAgentDraft**
226
+ > AgentDraft updateAgentDraft(agentUserInput)
227
+
228
+ Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
229
+
230
+ ### Example
231
+
232
+ ```typescript
233
+ import {
234
+ DraftApi,
235
+ Configuration,
236
+ AgentUserInput
237
+ } from '@crestal/nation-sdk';
238
+
239
+ const configuration = new Configuration();
240
+ const apiInstance = new DraftApi(configuration);
241
+
242
+ let agentId: string; //Agent ID (default to undefined)
243
+ let agentUserInput: AgentUserInput; //
244
+
245
+ const { status, data } = await apiInstance.updateAgentDraft(
246
+ agentId,
247
+ agentUserInput
248
+ );
249
+ ```
250
+
251
+ ### Parameters
252
+
253
+ |Name | Type | Description | Notes|
254
+ |------------- | ------------- | ------------- | -------------|
255
+ | **agentUserInput** | **AgentUserInput**| | |
256
+ | **agentId** | [**string**] | Agent ID | defaults to undefined|
257
+
258
+
259
+ ### Return type
260
+
261
+ **AgentDraft**
262
+
263
+ ### Authorization
264
+
265
+ [HTTPBearer](../README.md#HTTPBearer)
266
+
267
+ ### HTTP request headers
268
+
269
+ - **Content-Type**: application/json
270
+ - **Accept**: application/json
271
+
272
+
273
+ ### HTTP response details
274
+ | Status code | Description | Response headers |
275
+ |-------------|-------------|------------------|
276
+ |**200** | Successful Response | - |
277
+ |**422** | Validation Error | - |
278
+
279
+ [[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)
280
+
@@ -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-11T07:04:12.906+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-11T07:04:12.906+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-09-17T10:01:21.725+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-17T10:01:21.725+00:00]
32
32
  **provider_name** | **string** | | [default to undefined]
33
33
 
34
34
  ## Example
package/index.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.6.30
7
+ * The version of the OpenAPI document: 0.6.31
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crestal/nation-sdk",
3
- "version": "0.6.30",
3
+ "version": "0.6.31",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -1,19 +0,0 @@
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)