@crestal/nation-sdk 0.8.93 → 0.8.97

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/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.8.93
5
+ * The version of the OpenAPI document: 0.8.97
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.93
8
+ * The version of the OpenAPI document: 0.8.97
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
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.8.93
5
+ * The version of the OpenAPI document: 0.8.97
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,6 +23,12 @@ export declare const setBasicAuthToObject: (object: any, configuration?: Configu
23
23
  export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
24
24
  export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
25
25
  export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
26
+ /**
27
+ * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
28
+ * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
29
+ * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
30
+ */
31
+ export declare const replaceWithSerializableTypeIfNeeded: (key: any, value: any) => any;
26
32
  export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
27
33
  export declare const toPathString: (url: URL) => string;
28
34
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
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.93
8
+ * The version of the OpenAPI document: 0.8.97
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -60,7 +60,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
60
60
  }
61
61
  };
62
62
  Object.defineProperty(exports, "__esModule", { value: true });
63
- exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
63
+ exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
64
64
  var base_1 = require("./base");
65
65
  exports.DUMMY_BASE_URL = 'https://example.com';
66
66
  /**
@@ -162,7 +162,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key) {
162
162
  if (parameter == null)
163
163
  return;
164
164
  if (typeof parameter === "object") {
165
- if (Array.isArray(parameter)) {
165
+ if (Array.isArray(parameter) || parameter instanceof Set) {
166
166
  parameter.forEach(function (item) { return setFlattenedQueryParams(urlSearchParams, item, key); });
167
167
  }
168
168
  else {
@@ -190,13 +190,27 @@ var setSearchParams = function (url) {
190
190
  url.search = searchParams.toString();
191
191
  };
192
192
  exports.setSearchParams = setSearchParams;
193
+ /**
194
+ * JSON serialization helper function which replaces instances of unserializable types with serializable ones.
195
+ * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
196
+ * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
197
+ */
198
+ var replaceWithSerializableTypeIfNeeded = function (key, value) {
199
+ if (value instanceof Set) {
200
+ return Array.from(value);
201
+ }
202
+ else {
203
+ return value;
204
+ }
205
+ };
206
+ exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
193
207
  var serializeDataIfNeeded = function (value, requestOptions, configuration) {
194
208
  var nonString = typeof value !== 'string';
195
209
  var needsSerialization = nonString && configuration && configuration.isJsonMime
196
210
  ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
197
211
  : nonString;
198
212
  return needsSerialization
199
- ? JSON.stringify(value !== undefined ? value : {})
213
+ ? JSON.stringify(value !== undefined ? value : {}, exports.replaceWithSerializableTypeIfNeeded)
200
214
  : (value || "");
201
215
  };
202
216
  exports.serializeDataIfNeeded = serializeDataIfNeeded;
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.8.93
5
+ * The version of the OpenAPI document: 0.8.97
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.8.93
7
+ * The version of the OpenAPI document: 0.8.97
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.8.93
5
+ * The version of the OpenAPI document: 0.8.97
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.93
8
+ * The version of the OpenAPI document: 0.8.97
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/Agent.md CHANGED
@@ -27,12 +27,13 @@ Name | Type | Description | Notes
27
27
  **temperature** | **number** | | [optional] [default to undefined]
28
28
  **frequency_penalty** | **number** | | [optional] [default to undefined]
29
29
  **presence_penalty** | **number** | | [optional] [default to undefined]
30
+ **short_term_memory_strategy** | **string** | | [optional] [default to undefined]
30
31
  **wallet_provider** | **string** | | [optional] [default to undefined]
31
- **readonly_wallet_address** | **string** | | [optional] [default to undefined]
32
32
  **network_id** | **string** | | [optional] [default to undefined]
33
33
  **skills** | **{ [key: string]: any; }** | | [optional] [default to undefined]
34
- **short_term_memory_strategy** | **string** | | [optional] [default to undefined]
35
- **autonomous** | [**Array&lt;AgentAutonomous&gt;**](AgentAutonomous.md) | | [optional] [default to undefined]
34
+ **readonly_wallet_address** | **string** | | [optional] [default to undefined]
35
+ **weekly_spending_limit** | **number** | | [optional] [default to undefined]
36
+ **autonomous** | [**Array&lt;AgentAutonomousOutput&gt;**](AgentAutonomousOutput.md) | | [optional] [default to undefined]
36
37
  **telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
37
38
  **telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
38
39
  **telegram_config** | **{ [key: string]: any; }** | | [optional] [default to undefined]
@@ -41,9 +42,13 @@ Name | Type | Description | Notes
41
42
  **xmtp_entrypoint_prompt** | **string** | | [optional] [default to undefined]
42
43
  **upstream_id** | **string** | | [optional] [default to undefined]
43
44
  **upstream_extra** | **{ [key: string]: any; }** | | [optional] [default to undefined]
45
+ **extra_prompt** | **string** | | [optional] [default to undefined]
46
+ **visibility** | [**AgentVisibility**](AgentVisibility.md) | | [optional] [default to undefined]
47
+ **archived_at** | **string** | | [optional] [default to undefined]
44
48
  **id** | **string** | Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens | [optional] [default to undefined]
45
49
  **owner** | **string** | | [optional] [default to undefined]
46
50
  **team_id** | **string** | | [optional] [default to undefined]
51
+ **template_id** | **string** | | [optional] [default to undefined]
47
52
  **slug** | **string** | | [optional] [default to undefined]
48
53
  **version** | **string** | | [optional] [default to undefined]
49
54
  **statistics** | **{ [key: string]: any; }** | | [optional] [default to undefined]
@@ -82,11 +87,12 @@ const instance: Agent = {
82
87
  temperature,
83
88
  frequency_penalty,
84
89
  presence_penalty,
90
+ short_term_memory_strategy,
85
91
  wallet_provider,
86
- readonly_wallet_address,
87
92
  network_id,
88
93
  skills,
89
- short_term_memory_strategy,
94
+ readonly_wallet_address,
95
+ weekly_spending_limit,
90
96
  autonomous,
91
97
  telegram_entrypoint_enabled,
92
98
  telegram_entrypoint_prompt,
@@ -96,9 +102,13 @@ const instance: Agent = {
96
102
  xmtp_entrypoint_prompt,
97
103
  upstream_id,
98
104
  upstream_extra,
105
+ extra_prompt,
106
+ visibility,
107
+ archived_at,
99
108
  id,
100
109
  owner,
101
110
  team_id,
111
+ template_id,
102
112
  slug,
103
113
  version,
104
114
  statistics,
package/docs/AgentApi.md CHANGED
@@ -461,7 +461,7 @@ No authorization required
461
461
  [[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)
462
462
 
463
463
  # **getSkillHistory**
464
- > AppManagerRouterChatMessagesResponse getSkillHistory()
464
+ > ChatMessagesResponse getSkillHistory()
465
465
 
466
466
  Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
467
467
 
@@ -498,7 +498,7 @@ const { status, data } = await apiInstance.getSkillHistory(
498
498
 
499
499
  ### Return type
500
500
 
501
- **AppManagerRouterChatMessagesResponse**
501
+ **ChatMessagesResponse**
502
502
 
503
503
  ### Authorization
504
504
 
@@ -1,4 +1,4 @@
1
- # AgentAutonomous
1
+ # AgentAutonomousInput
2
2
 
3
3
  Autonomous agent configuration.
4
4
 
@@ -13,13 +13,16 @@ Name | Type | Description | Notes
13
13
  **cron** | **string** | | [optional] [default to undefined]
14
14
  **prompt** | **string** | Special prompt used during autonomous operation | [default to undefined]
15
15
  **enabled** | **boolean** | | [optional] [default to undefined]
16
+ **has_memory** | **boolean** | | [optional] [default to undefined]
17
+ **status** | [**AgentAutonomousStatus**](AgentAutonomousStatus.md) | | [optional] [default to undefined]
18
+ **next_run_time** | **string** | | [optional] [default to undefined]
16
19
 
17
20
  ## Example
18
21
 
19
22
  ```typescript
20
- import { AgentAutonomous } from '@crestal/nation-sdk';
23
+ import { AgentAutonomousInput } from '@crestal/nation-sdk';
21
24
 
22
- const instance: AgentAutonomous = {
25
+ const instance: AgentAutonomousInput = {
23
26
  id,
24
27
  name,
25
28
  description,
@@ -27,6 +30,9 @@ const instance: AgentAutonomous = {
27
30
  cron,
28
31
  prompt,
29
32
  enabled,
33
+ has_memory,
34
+ status,
35
+ next_run_time,
30
36
  };
31
37
  ```
32
38
 
@@ -0,0 +1,39 @@
1
+ # AgentAutonomousOutput
2
+
3
+ Autonomous agent configuration.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | Unique identifier for the autonomous configuration | [optional] [default to undefined]
10
+ **name** | **string** | | [optional] [default to undefined]
11
+ **description** | **string** | | [optional] [default to undefined]
12
+ **minutes** | **number** | | [optional] [default to undefined]
13
+ **cron** | **string** | | [optional] [default to undefined]
14
+ **prompt** | **string** | Special prompt used during autonomous operation | [default to undefined]
15
+ **enabled** | **boolean** | | [optional] [default to undefined]
16
+ **has_memory** | **boolean** | | [optional] [default to undefined]
17
+ **status** | [**AgentAutonomousStatus**](AgentAutonomousStatus.md) | | [optional] [default to undefined]
18
+ **next_run_time** | **string** | | [optional] [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { AgentAutonomousOutput } from '@crestal/nation-sdk';
24
+
25
+ const instance: AgentAutonomousOutput = {
26
+ id,
27
+ name,
28
+ description,
29
+ minutes,
30
+ cron,
31
+ prompt,
32
+ enabled,
33
+ has_memory,
34
+ status,
35
+ next_run_time,
36
+ };
37
+ ```
38
+
39
+ [[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,13 @@
1
+ # AgentAutonomousStatus
2
+
3
+ Autonomous task execution status.
4
+
5
+ ## Enum
6
+
7
+ * `Waiting` (value: `'waiting'`)
8
+
9
+ * `Running` (value: `'running'`)
10
+
11
+ * `Error` (value: `'error'`)
12
+
13
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -17,12 +17,13 @@ Name | Type | Description | Notes
17
17
  **temperature** | **number** | | [optional] [default to undefined]
18
18
  **frequency_penalty** | **number** | | [optional] [default to undefined]
19
19
  **presence_penalty** | **number** | | [optional] [default to undefined]
20
+ **short_term_memory_strategy** | **string** | | [optional] [default to undefined]
20
21
  **wallet_provider** | **string** | | [optional] [default to undefined]
21
- **readonly_wallet_address** | **string** | | [optional] [default to undefined]
22
22
  **network_id** | **string** | | [optional] [default to undefined]
23
23
  **skills** | **{ [key: string]: any; }** | | [optional] [default to undefined]
24
- **short_term_memory_strategy** | **string** | | [optional] [default to undefined]
25
- **autonomous** | [**Array&lt;AgentAutonomous&gt;**](AgentAutonomous.md) | | [optional] [default to undefined]
24
+ **readonly_wallet_address** | **string** | | [optional] [default to undefined]
25
+ **weekly_spending_limit** | **number** | | [optional] [default to undefined]
26
+ **autonomous** | [**Array&lt;AgentAutonomousOutput&gt;**](AgentAutonomousOutput.md) | | [optional] [default to undefined]
26
27
  **telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
27
28
  **telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
28
29
  **telegram_config** | **{ [key: string]: any; }** | | [optional] [default to undefined]
@@ -57,11 +58,12 @@ const instance: AgentDraft = {
57
58
  temperature,
58
59
  frequency_penalty,
59
60
  presence_penalty,
61
+ short_term_memory_strategy,
60
62
  wallet_provider,
61
- readonly_wallet_address,
62
63
  network_id,
63
64
  skills,
64
- short_term_memory_strategy,
65
+ readonly_wallet_address,
66
+ weekly_spending_limit,
65
67
  autonomous,
66
68
  telegram_entrypoint_enabled,
67
69
  telegram_entrypoint_prompt,
@@ -20,19 +20,24 @@ Name | Type | Description | Notes
20
20
  **picture** | **string** | | [optional] [default to undefined]
21
21
  **model** | **string** | LLM of the agent | [optional] [default to 'gpt-5-mini']
22
22
  **presence_penalty** | **number** | | [optional] [default to undefined]
23
+ **short_term_memory_strategy** | **string** | | [optional] [default to undefined]
23
24
  **wallet_provider** | **string** | | [optional] [default to undefined]
24
- **readonly_wallet_address** | **string** | | [optional] [default to undefined]
25
25
  **network_id** | **string** | | [optional] [default to undefined]
26
26
  **skills** | **{ [key: string]: any; }** | | [optional] [default to undefined]
27
- **short_term_memory_strategy** | **string** | | [optional] [default to undefined]
28
- **autonomous** | [**Array&lt;AgentAutonomous&gt;**](AgentAutonomous.md) | | [optional] [default to undefined]
27
+ **readonly_wallet_address** | **string** | | [optional] [default to undefined]
28
+ **weekly_spending_limit** | **number** | | [optional] [default to undefined]
29
+ **autonomous** | [**Array&lt;AgentAutonomousOutput&gt;**](AgentAutonomousOutput.md) | | [optional] [default to undefined]
29
30
  **telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
30
31
  **discord_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
31
32
  **upstream_id** | **string** | | [optional] [default to undefined]
32
33
  **upstream_extra** | **{ [key: string]: any; }** | | [optional] [default to undefined]
34
+ **extra_prompt** | **string** | | [optional] [default to undefined]
35
+ **visibility** | [**AgentVisibility**](AgentVisibility.md) | | [optional] [default to undefined]
36
+ **archived_at** | **string** | | [optional] [default to undefined]
33
37
  **id** | **string** | Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens | [optional] [default to undefined]
34
38
  **owner** | **string** | | [optional] [default to undefined]
35
39
  **team_id** | **string** | | [optional] [default to undefined]
40
+ **template_id** | **string** | | [optional] [default to undefined]
36
41
  **slug** | **string** | | [optional] [default to undefined]
37
42
  **version** | **string** | | [optional] [default to undefined]
38
43
  **statistics** | **{ [key: string]: any; }** | | [optional] [default to undefined]
@@ -76,19 +81,24 @@ const instance: AgentResponse = {
76
81
  picture,
77
82
  model,
78
83
  presence_penalty,
84
+ short_term_memory_strategy,
79
85
  wallet_provider,
80
- readonly_wallet_address,
81
86
  network_id,
82
87
  skills,
83
- short_term_memory_strategy,
88
+ readonly_wallet_address,
89
+ weekly_spending_limit,
84
90
  autonomous,
85
91
  telegram_entrypoint_enabled,
86
92
  discord_entrypoint_enabled,
87
93
  upstream_id,
88
94
  upstream_extra,
95
+ extra_prompt,
96
+ visibility,
97
+ archived_at,
89
98
  id,
90
99
  owner,
91
100
  team_id,
101
+ template_id,
92
102
  slug,
93
103
  version,
94
104
  statistics,
@@ -17,12 +17,13 @@ Name | Type | Description | Notes
17
17
  **temperature** | **number** | | [optional] [default to undefined]
18
18
  **frequency_penalty** | **number** | | [optional] [default to undefined]
19
19
  **presence_penalty** | **number** | | [optional] [default to undefined]
20
+ **short_term_memory_strategy** | **string** | | [optional] [default to undefined]
20
21
  **wallet_provider** | **string** | | [optional] [default to undefined]
21
- **readonly_wallet_address** | **string** | | [optional] [default to undefined]
22
22
  **network_id** | **string** | | [optional] [default to undefined]
23
23
  **skills** | **{ [key: string]: any; }** | | [optional] [default to undefined]
24
- **short_term_memory_strategy** | **string** | | [optional] [default to undefined]
25
- **autonomous** | [**Array&lt;AgentAutonomous&gt;**](AgentAutonomous.md) | | [optional] [default to undefined]
24
+ **readonly_wallet_address** | **string** | | [optional] [default to undefined]
25
+ **weekly_spending_limit** | **number** | | [optional] [default to undefined]
26
+ **autonomous** | [**Array&lt;AgentAutonomousInput&gt;**](AgentAutonomousInput.md) | | [optional] [default to undefined]
26
27
  **telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
27
28
  **telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
28
29
  **telegram_config** | **{ [key: string]: any; }** | | [optional] [default to undefined]
@@ -31,6 +32,9 @@ Name | Type | Description | Notes
31
32
  **xmtp_entrypoint_prompt** | **string** | | [optional] [default to undefined]
32
33
  **upstream_id** | **string** | | [optional] [default to undefined]
33
34
  **upstream_extra** | **{ [key: string]: any; }** | | [optional] [default to undefined]
35
+ **extra_prompt** | **string** | | [optional] [default to undefined]
36
+ **visibility** | [**AgentVisibility**](AgentVisibility.md) | | [optional] [default to undefined]
37
+ **archived_at** | **string** | | [optional] [default to undefined]
34
38
 
35
39
  ## Example
36
40
 
@@ -49,11 +53,12 @@ const instance: AgentUpdate = {
49
53
  temperature,
50
54
  frequency_penalty,
51
55
  presence_penalty,
56
+ short_term_memory_strategy,
52
57
  wallet_provider,
53
- readonly_wallet_address,
54
58
  network_id,
55
59
  skills,
56
- short_term_memory_strategy,
60
+ readonly_wallet_address,
61
+ weekly_spending_limit,
57
62
  autonomous,
58
63
  telegram_entrypoint_enabled,
59
64
  telegram_entrypoint_prompt,
@@ -63,6 +68,9 @@ const instance: AgentUpdate = {
63
68
  xmtp_entrypoint_prompt,
64
69
  upstream_id,
65
70
  upstream_extra,
71
+ extra_prompt,
72
+ visibility,
73
+ archived_at,
66
74
  };
67
75
  ```
68
76
 
@@ -17,12 +17,13 @@ Name | Type | Description | Notes
17
17
  **temperature** | **number** | | [optional] [default to undefined]
18
18
  **frequency_penalty** | **number** | | [optional] [default to undefined]
19
19
  **presence_penalty** | **number** | | [optional] [default to undefined]
20
+ **short_term_memory_strategy** | **string** | | [optional] [default to undefined]
20
21
  **wallet_provider** | **string** | | [optional] [default to undefined]
21
- **readonly_wallet_address** | **string** | | [optional] [default to undefined]
22
22
  **network_id** | **string** | | [optional] [default to undefined]
23
23
  **skills** | **{ [key: string]: any; }** | | [optional] [default to undefined]
24
- **short_term_memory_strategy** | **string** | | [optional] [default to undefined]
25
- **autonomous** | [**Array&lt;AgentAutonomous&gt;**](AgentAutonomous.md) | | [optional] [default to undefined]
24
+ **readonly_wallet_address** | **string** | | [optional] [default to undefined]
25
+ **weekly_spending_limit** | **number** | | [optional] [default to undefined]
26
+ **autonomous** | [**Array&lt;AgentAutonomousInput&gt;**](AgentAutonomousInput.md) | | [optional] [default to undefined]
26
27
  **telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
27
28
  **telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
28
29
  **telegram_config** | **{ [key: string]: any; }** | | [optional] [default to undefined]
@@ -47,11 +48,12 @@ const instance: AgentUserInput = {
47
48
  temperature,
48
49
  frequency_penalty,
49
50
  presence_penalty,
51
+ short_term_memory_strategy,
50
52
  wallet_provider,
51
- readonly_wallet_address,
52
53
  network_id,
53
54
  skills,
54
- short_term_memory_strategy,
55
+ readonly_wallet_address,
56
+ weekly_spending_limit,
55
57
  autonomous,
56
58
  telegram_entrypoint_enabled,
57
59
  telegram_entrypoint_prompt,
@@ -0,0 +1,13 @@
1
+ # AgentVisibility
2
+
3
+ Agent visibility levels with hierarchical ordering. Higher values indicate broader visibility: - PRIVATE (0): Only visible to owner - TEAM (10): Visible to team members - PUBLIC (20): Visible to everyone
4
+
5
+ ## Enum
6
+
7
+ * `NUMBER_0` (value: `0`)
8
+
9
+ * `NUMBER_10` (value: `10`)
10
+
11
+ * `NUMBER_20` (value: `20`)
12
+
13
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -6,10 +6,12 @@ Type of message author.
6
6
 
7
7
  * `Agent` (value: `'agent'`)
8
8
 
9
- * `Trigger` (value: `'trigger'`)
10
-
11
9
  * `Skill` (value: `'skill'`)
12
10
 
11
+ * `System` (value: `'system'`)
12
+
13
+ * `Trigger` (value: `'trigger'`)
14
+
13
15
  * `Telegram` (value: `'telegram'`)
14
16
 
15
17
  * `Twitter` (value: `'twitter'`)
@@ -18,12 +20,12 @@ Type of message author.
18
20
 
19
21
  * `Web` (value: `'web'`)
20
22
 
21
- * `System` (value: `'system'`)
22
-
23
23
  * `Api` (value: `'api'`)
24
24
 
25
25
  * `Xmtp` (value: `'xmtp'`)
26
26
 
27
27
  * `X402` (value: `'x402'`)
28
28
 
29
+ * `Internal` (value: `'internal'`)
30
+
29
31
  [[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/ChatApi.md CHANGED
@@ -288,7 +288,7 @@ const { status, data } = await apiInstance.getMessageById(
288
288
  [[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)
289
289
 
290
290
  # **getSkillHistory**
291
- > AppManagerRouterChatMessagesResponse getSkillHistory()
291
+ > ChatMessagesResponse getSkillHistory()
292
292
 
293
293
  Get skill messages for a specific agent with cursor-based pagination. **Path Parameters:** * `aid` - Agent ID **Query Parameters:** * `cursor` - Optional cursor for pagination based on message ID * `limit` - Maximum number of messages to return (1-100, default: 20) **Returns:** * `ChatMessagesResponse` - Paginated list of skill messages with metadata **Raises:** * `404` - Agent not found
294
294
 
@@ -325,7 +325,7 @@ const { status, data } = await apiInstance.getSkillHistory(
325
325
 
326
326
  ### Return type
327
327
 
328
- **AppManagerRouterChatMessagesResponse**
328
+ **ChatMessagesResponse**
329
329
 
330
330
  ### Authorization
331
331
 
@@ -398,7 +398,7 @@ const { status, data } = await apiInstance.listChatsForAgent(
398
398
  [[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)
399
399
 
400
400
  # **listMessagesInChat**
401
- > AppManagerRouterChatMessagesResponse listMessagesInChat()
401
+ > ChatMessagesResponse listMessagesInChat()
402
402
 
403
403
  Retrieve the message history for a specific chat thread with cursor-based pagination.
404
404
 
@@ -438,7 +438,7 @@ const { status, data } = await apiInstance.listMessagesInChat(
438
438
 
439
439
  ### Return type
440
440
 
441
- **AppManagerRouterChatMessagesResponse**
441
+ **ChatMessagesResponse**
442
442
 
443
443
  ### Authorization
444
444
 
@@ -459,7 +459,7 @@ const { status, data } = await apiInstance.listMessagesInChat(
459
459
  [[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)
460
460
 
461
461
  # **listMessagesInDraft**
462
- > AppManagerRouterChatMessagesResponse listMessagesInDraft()
462
+ > ChatMessagesResponse listMessagesInDraft()
463
463
 
464
464
  Retrieve the message history for the draft chat session of an agent with cursor-based pagination.
465
465
 
@@ -496,7 +496,7 @@ const { status, data } = await apiInstance.listMessagesInDraft(
496
496
 
497
497
  ### Return type
498
498
 
499
- **AppManagerRouterChatMessagesResponse**
499
+ **ChatMessagesResponse**
500
500
 
501
501
  ### Authorization
502
502
 
@@ -1,4 +1,4 @@
1
- # AppManagerRouterChatMessagesResponse
1
+ # ChatMessagesResponse
2
2
 
3
3
  Response model for chat messages with pagination.
4
4
 
@@ -13,9 +13,9 @@ Name | Type | Description | Notes
13
13
  ## Example
14
14
 
15
15
  ```typescript
16
- import { AppManagerRouterChatMessagesResponse } from '@crestal/nation-sdk';
16
+ import { ChatMessagesResponse } from '@crestal/nation-sdk';
17
17
 
18
- const instance: AppManagerRouterChatMessagesResponse = {
18
+ const instance: ChatMessagesResponse = {
19
19
  data,
20
20
  has_more,
21
21
  next_cursor,
@@ -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-12-12T05:55:46.084+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-12-12T05:55:46.084+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2026-01-29T08:33:12.609+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2026-01-29T08:33:12.609+00:00]
32
32
  **provider_name** | **string** | | [default to undefined]
33
33
 
34
34
  ## Example
@@ -1,4 +1,4 @@
1
- # ValidationErrorLocInner
1
+ # LocationInner
2
2
 
3
3
 
4
4
  ## Properties
@@ -9,9 +9,9 @@ Name | Type | Description | Notes
9
9
  ## Example
10
10
 
11
11
  ```typescript
12
- import { ValidationErrorLocInner } from '@crestal/nation-sdk';
12
+ import { LocationInner } from '@crestal/nation-sdk';
13
13
 
14
- const instance: ValidationErrorLocInner = {
14
+ const instance: LocationInner = {
15
15
  };
16
16
  ```
17
17
 
@@ -8,7 +8,7 @@ All URIs are relative to *http://localhost*
8
8
  |[**sendManagerMessage**](#sendmanagermessage) | **POST** /agents/{aid}/manager/messages | Chat with Agent Manager|
9
9
 
10
10
  # **getManagerMessages**
11
- > AppManagerRouterChatMessagesResponse getManagerMessages()
11
+ > ChatMessagesResponse getManagerMessages()
12
12
 
13
13
  Get the message history for an agent\'s manager chat session.
14
14
 
@@ -45,7 +45,7 @@ const { status, data } = await apiInstance.getManagerMessages(
45
45
 
46
46
  ### Return type
47
47
 
48
- **AppManagerRouterChatMessagesResponse**
48
+ **ChatMessagesResponse**
49
49
 
50
50
  ### Authorization
51
51