@crestal/nation-sdk 0.6.28 → 0.6.30

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/api.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.6.28
8
+ * The version of the OpenAPI document: 0.6.30
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -84,7 +84,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
84
84
  return to.concat(ar || Array.prototype.slice.call(from));
85
85
  };
86
86
  Object.defineProperty(exports, "__esModule", { value: true });
87
- exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.GeneratorApi = exports.GeneratorApiFactory = exports.GeneratorApiFp = exports.GeneratorApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.ChatApi = exports.ChatApiFactory = exports.ChatApiFp = exports.ChatApiAxiosParamCreator = exports.AgentApi = exports.AgentApiFactory = exports.AgentApiFp = exports.AgentApiAxiosParamCreator = exports.UpstreamType = exports.TransactionType = exports.SystemMessageType = exports.OwnerType = exports.LLMProvider = exports.EventType = exports.Direction = exports.CreditType = exports.CreditDebit = exports.ChatMessageAttachmentType = exports.AuthorType = exports.AgentUpdateCdpNetworkIdEnum = exports.AgentUpdateNetworkIdEnum = exports.AgentUpdateWalletProviderEnum = exports.AgentUpdateShortTermMemoryStrategyEnum = exports.AgentUpdateModeEnum = exports.AgentSortOption = exports.AgentResponseWalletProviderEnum = exports.AgentResponseModeEnum = exports.AgentOutputCdpNetworkIdEnum = exports.AgentOutputNetworkIdEnum = exports.AgentOutputWalletProviderEnum = exports.AgentOutputShortTermMemoryStrategyEnum = exports.AgentOutputModeEnum = exports.AgentInputCdpNetworkIdEnum = exports.AgentInputNetworkIdEnum = exports.AgentInputWalletProviderEnum = exports.AgentInputShortTermMemoryStrategyEnum = exports.AgentInputModeEnum = void 0;
87
+ exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.GeneratorApi = exports.GeneratorApiFactory = exports.GeneratorApiFp = exports.GeneratorApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.ChatApi = exports.ChatApiFactory = exports.ChatApiFp = exports.ChatApiAxiosParamCreator = exports.AgentApi = exports.AgentApiFactory = exports.AgentApiFp = exports.AgentApiAxiosParamCreator = exports.UpstreamType = exports.TransactionType = exports.SystemMessageType = exports.OwnerType = exports.LLMProvider = exports.EventType = exports.Direction = exports.CreditType = exports.CreditDebit = exports.ChatMessageAttachmentType = exports.AuthorType = exports.AgentUpdateCdpNetworkIdEnum = exports.AgentUpdateNetworkIdEnum = exports.AgentUpdateWalletProviderEnum = exports.AgentUpdateShortTermMemoryStrategyEnum = exports.AgentUpdateModeEnum = exports.AgentSortOption = exports.AgentResponseWalletProviderEnum = exports.AgentResponseModeEnum = exports.AgentCreateCdpNetworkIdEnum = exports.AgentCreateNetworkIdEnum = exports.AgentCreateWalletProviderEnum = exports.AgentCreateShortTermMemoryStrategyEnum = exports.AgentCreateModeEnum = exports.AgentCdpNetworkIdEnum = exports.AgentNetworkIdEnum = exports.AgentWalletProviderEnum = exports.AgentShortTermMemoryStrategyEnum = exports.AgentModeEnum = void 0;
88
88
  exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.OAuthApi = exports.OAuthApiFactory = exports.OAuthApiFp = exports.OAuthApiAxiosParamCreator = exports.MetadataApi = exports.MetadataApiFactory = exports.MetadataApiFp = void 0;
89
89
  var axios_1 = require("axios");
90
90
  // Some imports not used depending on template conditions
@@ -92,19 +92,19 @@ var axios_1 = require("axios");
92
92
  var common_1 = require("./common");
93
93
  // @ts-ignore
94
94
  var base_1 = require("./base");
95
- exports.AgentInputModeEnum = {
95
+ exports.AgentModeEnum = {
96
96
  Public: 'public',
97
97
  Private: 'private'
98
98
  };
99
- exports.AgentInputShortTermMemoryStrategyEnum = {
99
+ exports.AgentShortTermMemoryStrategyEnum = {
100
100
  Trim: 'trim',
101
101
  Summarize: 'summarize'
102
102
  };
103
- exports.AgentInputWalletProviderEnum = {
103
+ exports.AgentWalletProviderEnum = {
104
104
  Cdp: 'cdp',
105
105
  Readonly: 'readonly'
106
106
  };
107
- exports.AgentInputNetworkIdEnum = {
107
+ exports.AgentNetworkIdEnum = {
108
108
  EthereumMainnet: 'ethereum-mainnet',
109
109
  EthereumSepolia: 'ethereum-sepolia',
110
110
  PolygonMainnet: 'polygon-mainnet',
@@ -117,7 +117,7 @@ exports.AgentInputNetworkIdEnum = {
117
117
  OptimismSepolia: 'optimism-sepolia',
118
118
  Solana: 'solana'
119
119
  };
120
- exports.AgentInputCdpNetworkIdEnum = {
120
+ exports.AgentCdpNetworkIdEnum = {
121
121
  EthereumMainnet: 'ethereum-mainnet',
122
122
  EthereumSepolia: 'ethereum-sepolia',
123
123
  PolygonMainnet: 'polygon-mainnet',
@@ -129,19 +129,19 @@ exports.AgentInputCdpNetworkIdEnum = {
129
129
  OptimismMainnet: 'optimism-mainnet',
130
130
  OptimismSepolia: 'optimism-sepolia'
131
131
  };
132
- exports.AgentOutputModeEnum = {
132
+ exports.AgentCreateModeEnum = {
133
133
  Public: 'public',
134
134
  Private: 'private'
135
135
  };
136
- exports.AgentOutputShortTermMemoryStrategyEnum = {
136
+ exports.AgentCreateShortTermMemoryStrategyEnum = {
137
137
  Trim: 'trim',
138
138
  Summarize: 'summarize'
139
139
  };
140
- exports.AgentOutputWalletProviderEnum = {
140
+ exports.AgentCreateWalletProviderEnum = {
141
141
  Cdp: 'cdp',
142
142
  Readonly: 'readonly'
143
143
  };
144
- exports.AgentOutputNetworkIdEnum = {
144
+ exports.AgentCreateNetworkIdEnum = {
145
145
  EthereumMainnet: 'ethereum-mainnet',
146
146
  EthereumSepolia: 'ethereum-sepolia',
147
147
  PolygonMainnet: 'polygon-mainnet',
@@ -154,7 +154,7 @@ exports.AgentOutputNetworkIdEnum = {
154
154
  OptimismSepolia: 'optimism-sepolia',
155
155
  Solana: 'solana'
156
156
  };
157
- exports.AgentOutputCdpNetworkIdEnum = {
157
+ exports.AgentCreateCdpNetworkIdEnum = {
158
158
  EthereumMainnet: 'ethereum-mainnet',
159
159
  EthereumSepolia: 'ethereum-sepolia',
160
160
  PolygonMainnet: 'polygon-mainnet',
@@ -421,7 +421,7 @@ var AgentApiAxiosParamCreator = function (configuration) {
421
421
  });
422
422
  },
423
423
  /**
424
- * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
424
+ * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found - 403: Not authorized to access this agent
425
425
  * @summary Export Agent
426
426
  * @param {string} agentId ID of the agent to export
427
427
  * @param {*} [options] Override http request option.
@@ -1058,7 +1058,7 @@ var AgentApiFp = function (configuration) {
1058
1058
  });
1059
1059
  },
1060
1060
  /**
1061
- * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
1061
+ * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found - 403: Not authorized to access this agent
1062
1062
  * @summary Export Agent
1063
1063
  * @param {string} agentId ID of the agent to export
1064
1064
  * @param {*} [options] Override http request option.
@@ -1385,7 +1385,7 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1385
1385
  return localVarFp.createAgent(agentUpdate, options).then(function (request) { return request(axios, basePath); });
1386
1386
  },
1387
1387
  /**
1388
- * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
1388
+ * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found - 403: Not authorized to access this agent
1389
1389
  * @summary Export Agent
1390
1390
  * @param {string} agentId ID of the agent to export
1391
1391
  * @param {*} [options] Override http request option.
@@ -1549,7 +1549,7 @@ var AgentApi = /** @class */ (function (_super) {
1549
1549
  return (0, exports.AgentApiFp)(this.configuration).createAgent(agentUpdate, options).then(function (request) { return request(_this.axios, _this.basePath); });
1550
1550
  };
1551
1551
  /**
1552
- * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
1552
+ * Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found - 403: Not authorized to access this agent
1553
1553
  * @summary Export Agent
1554
1554
  * @param {string} agentId ID of the agent to export
1555
1555
  * @param {*} [options] Override http request option.
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.6.28
5
+ * The version of the OpenAPI document: 0.6.30
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.6.28
8
+ * The version of the OpenAPI document: 0.6.30
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.6.28
5
+ * The version of the OpenAPI document: 0.6.30
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.6.28
8
+ * The version of the OpenAPI document: 0.6.30
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.6.28
5
+ * The version of the OpenAPI document: 0.6.30
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.6.28
8
+ * The version of the OpenAPI document: 0.6.30
9
9
  *
10
10
  *
11
11
  * 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.6.28
5
+ * The version of the OpenAPI document: 0.6.30
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.6.28
8
+ * The version of the OpenAPI document: 0.6.30
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,4 +1,4 @@
1
- # AgentOutput
1
+ # Agent
2
2
 
3
3
  Agent model.
4
4
 
@@ -48,9 +48,9 @@ Name | Type | Description | Notes
48
48
  ## Example
49
49
 
50
50
  ```typescript
51
- import { AgentOutput } from '@crestal/nation-sdk';
51
+ import { Agent } from '@crestal/nation-sdk';
52
52
 
53
- const instance: AgentOutput = {
53
+ const instance: Agent = {
54
54
  name,
55
55
  slug,
56
56
  description,
package/docs/AgentApi.md CHANGED
@@ -78,7 +78,7 @@ const { status, data } = await apiInstance.createAgent(
78
78
  # **exportAgent**
79
79
  > any exportAgent()
80
80
 
81
- Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found
81
+ Export agent configuration as YAML. **Path Parameters:** * `agent_id` - ID of the agent to export **Returns:** * `str` - YAML configuration of the agent **Raises:** * `HTTPException`: - 404: Agent not found - 403: Not authorized to access this agent
82
82
 
83
83
  ### Example
84
84
 
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
14
14
  **token_pool** | **string** | | [default to undefined]
15
15
  **tvl** | **string** | Total value locked, set to 0 for this version | [optional] [default to '0']
16
16
  **assets** | [**Array<Asset>**](Asset.md) | List of assets with symbol and balance | [default to undefined]
17
+ **account** | [**CreditAccount**](CreditAccount.md) | Credit account information | [default to undefined]
17
18
 
18
19
  ## Example
19
20
 
@@ -29,6 +30,7 @@ const instance: AgentAssetsResponse = {
29
30
  token_pool,
30
31
  tvl,
31
32
  assets,
33
+ account,
32
34
  };
33
35
  ```
34
36
 
@@ -1,6 +1,6 @@
1
- # AgentInput
1
+ # AgentCreate
2
2
 
3
- Agent model.
3
+ Agent create model.
4
4
 
5
5
  ## Properties
6
6
 
@@ -42,15 +42,13 @@ Name | Type | Description | Notes
42
42
  **telegram_config** | **object** | | [optional] [default to undefined]
43
43
  **xmtp_entrypoint_prompt** | **string** | | [optional] [default to undefined]
44
44
  **id** | **string** | Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens | [optional] [default to undefined]
45
- **created_at** | **string** | Timestamp when the agent was created, will ignore when importing | [optional] [default to undefined]
46
- **updated_at** | **string** | Timestamp when the agent was last updated, will ignore when importing | [optional] [default to undefined]
47
45
 
48
46
  ## Example
49
47
 
50
48
  ```typescript
51
- import { AgentInput } from '@crestal/nation-sdk';
49
+ import { AgentCreate } from '@crestal/nation-sdk';
52
50
 
53
- const instance: AgentInput = {
51
+ const instance: AgentCreate = {
54
52
  name,
55
53
  slug,
56
54
  description,
@@ -87,8 +85,6 @@ const instance: AgentInput = {
87
85
  telegram_config,
88
86
  xmtp_entrypoint_prompt,
89
87
  id,
90
- created_at,
91
- updated_at,
92
88
  };
93
89
  ```
94
90
 
@@ -7,7 +7,7 @@ Request model for agent generation.
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
9
  **prompt** | **string** | Natural language description of the agent\'s desired capabilities | [default to undefined]
10
- **existing_agent** | [**AgentInput**](AgentInput.md) | | [optional] [default to undefined]
10
+ **existing_agent** | [**AgentCreate**](AgentCreate.md) | | [optional] [default to undefined]
11
11
  **project_id** | **string** | | [optional] [default to undefined]
12
12
  **deploy** | **boolean** | | [optional] [default to undefined]
13
13
 
@@ -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-10T13:42:15.459+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-10T13:42:15.459+00:00]
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]
32
32
  **provider_name** | **string** | | [default to undefined]
33
33
 
34
34
  ## Example
package/docs/UserApi.md CHANGED
@@ -8,7 +8,7 @@ All URIs are relative to *http://localhost*
8
8
  |[**getUserAgents**](#getuseragents) | **GET** /user/agents | Get User Agents|
9
9
 
10
10
  # **getUserAgentById**
11
- > AgentOutput getUserAgentById()
11
+ > Agent getUserAgentById()
12
12
 
13
13
  Get a specific agent owned by the authenticated user. **Path Parameters:** * `agent_id` - The ID of the agent to retrieve **Returns:** * `Agent` - The agent object **Raises:** * `404` - Agent not found or not owned by the user
14
14
 
@@ -39,7 +39,7 @@ const { status, data } = await apiInstance.getUserAgentById(
39
39
 
40
40
  ### Return type
41
41
 
42
- **AgentOutput**
42
+ **Agent**
43
43
 
44
44
  ### Authorization
45
45
 
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.28
7
+ * The version of the OpenAPI document: 0.6.30
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.28",
3
+ "version": "0.6.30",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {