@crestal/nation-sdk 0.6.25 → 0.6.26

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.25
8
+ * The version of the OpenAPI document: 0.6.26
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -84,27 +84,27 @@ 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.OAuthApiFp = exports.OAuthApiAxiosParamCreator = exports.MetadataApi = exports.MetadataApiFactory = exports.MetadataApiFp = 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.AgentCdpNetworkIdEnum = exports.AgentNetworkIdEnum = exports.AgentWalletProviderEnum = exports.AgentShortTermMemoryStrategyEnum = exports.AgentModeEnum = void 0;
88
- exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.OAuthApi = exports.OAuthApiFactory = 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.AgentOutputCdpNetworkIdEnum = exports.AgentOutputNetworkIdEnum = exports.AgentOutputWalletProviderEnum = exports.AgentOutputShortTermMemoryStrategyEnum = exports.AgentOutputModeEnum = exports.AgentInputCdpNetworkIdEnum = exports.AgentInputNetworkIdEnum = exports.AgentInputWalletProviderEnum = exports.AgentInputShortTermMemoryStrategyEnum = exports.AgentInputModeEnum = void 0;
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
91
91
  // @ts-ignore
92
92
  var common_1 = require("./common");
93
93
  // @ts-ignore
94
94
  var base_1 = require("./base");
95
- exports.AgentModeEnum = {
95
+ exports.AgentInputModeEnum = {
96
96
  Public: 'public',
97
97
  Private: 'private'
98
98
  };
99
- exports.AgentShortTermMemoryStrategyEnum = {
99
+ exports.AgentInputShortTermMemoryStrategyEnum = {
100
100
  Trim: 'trim',
101
101
  Summarize: 'summarize'
102
102
  };
103
- exports.AgentWalletProviderEnum = {
103
+ exports.AgentInputWalletProviderEnum = {
104
104
  Cdp: 'cdp',
105
105
  Readonly: 'readonly'
106
106
  };
107
- exports.AgentNetworkIdEnum = {
107
+ exports.AgentInputNetworkIdEnum = {
108
108
  EthereumMainnet: 'ethereum-mainnet',
109
109
  EthereumSepolia: 'ethereum-sepolia',
110
110
  PolygonMainnet: 'polygon-mainnet',
@@ -117,7 +117,44 @@ exports.AgentNetworkIdEnum = {
117
117
  OptimismSepolia: 'optimism-sepolia',
118
118
  Solana: 'solana'
119
119
  };
120
- exports.AgentCdpNetworkIdEnum = {
120
+ exports.AgentInputCdpNetworkIdEnum = {
121
+ EthereumMainnet: 'ethereum-mainnet',
122
+ EthereumSepolia: 'ethereum-sepolia',
123
+ PolygonMainnet: 'polygon-mainnet',
124
+ PolygonMumbai: 'polygon-mumbai',
125
+ BaseMainnet: 'base-mainnet',
126
+ BaseSepolia: 'base-sepolia',
127
+ ArbitrumMainnet: 'arbitrum-mainnet',
128
+ ArbitrumSepolia: 'arbitrum-sepolia',
129
+ OptimismMainnet: 'optimism-mainnet',
130
+ OptimismSepolia: 'optimism-sepolia'
131
+ };
132
+ exports.AgentOutputModeEnum = {
133
+ Public: 'public',
134
+ Private: 'private'
135
+ };
136
+ exports.AgentOutputShortTermMemoryStrategyEnum = {
137
+ Trim: 'trim',
138
+ Summarize: 'summarize'
139
+ };
140
+ exports.AgentOutputWalletProviderEnum = {
141
+ Cdp: 'cdp',
142
+ Readonly: 'readonly'
143
+ };
144
+ exports.AgentOutputNetworkIdEnum = {
145
+ EthereumMainnet: 'ethereum-mainnet',
146
+ EthereumSepolia: 'ethereum-sepolia',
147
+ PolygonMainnet: 'polygon-mainnet',
148
+ PolygonMumbai: 'polygon-mumbai',
149
+ BaseMainnet: 'base-mainnet',
150
+ BaseSepolia: 'base-sepolia',
151
+ ArbitrumMainnet: 'arbitrum-mainnet',
152
+ ArbitrumSepolia: 'arbitrum-sepolia',
153
+ OptimismMainnet: 'optimism-mainnet',
154
+ OptimismSepolia: 'optimism-sepolia',
155
+ Solana: 'solana'
156
+ };
157
+ exports.AgentOutputCdpNetworkIdEnum = {
121
158
  EthereumMainnet: 'ethereum-mainnet',
122
159
  EthereumSepolia: 'ethereum-sepolia',
123
160
  PolygonMainnet: 'polygon-mainnet',
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.25
5
+ * The version of the OpenAPI document: 0.6.26
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.25
8
+ * The version of the OpenAPI document: 0.6.26
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.25
5
+ * The version of the OpenAPI document: 0.6.26
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.25
8
+ * The version of the OpenAPI document: 0.6.26
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.25
5
+ * The version of the OpenAPI document: 0.6.26
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.25
8
+ * The version of the OpenAPI document: 0.6.26
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.25
5
+ * The version of the OpenAPI document: 0.6.26
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.25
8
+ * The version of the OpenAPI document: 0.6.26
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -7,8 +7,9 @@ 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** | [**AgentUpdate**](AgentUpdate.md) | | [optional] [default to undefined]
10
+ **existing_agent** | [**AgentInput**](AgentInput.md) | | [optional] [default to undefined]
11
11
  **project_id** | **string** | | [optional] [default to undefined]
12
+ **deploy** | **boolean** | | [optional] [default to undefined]
12
13
 
13
14
  ## Example
14
15
 
@@ -19,6 +20,7 @@ const instance: AgentGenerateRequest = {
19
20
  prompt,
20
21
  existing_agent,
21
22
  project_id,
23
+ deploy,
22
24
  };
23
25
  ```
24
26
 
@@ -10,8 +10,8 @@ Name | Type | Description | Notes
10
10
  **project_id** | **string** | Project ID for this conversation session | [default to undefined]
11
11
  **summary** | **string** | Human-readable summary of the generated agent | [default to undefined]
12
12
  **tags** | **Array<{ [key: string]: number; }>** | Generated tags for the agent as ID objects: [{\'id\': 1}, {\'id\': 2}] | [optional] [default to undefined]
13
- **autonomous_tasks** | **Array<object>** | List of autonomous tasks generated for the agent | [optional] [default to undefined]
14
- **activated_skills** | **Array<string>** | List of skills that were activated based on the prompt | [optional] [default to undefined]
13
+ **autonomous_tasks** | **Array<object>** | | [optional] [default to undefined]
14
+ **activated_skills** | **Array<string>** | | [optional] [default to undefined]
15
15
 
16
16
  ## Example
17
17
 
@@ -0,0 +1,95 @@
1
+ # AgentInput
2
+
3
+ Agent model.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
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
+ **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]
25
+ **model** | **string** | AI model identifier to be used by this agent for processing requests. | [optional] [default to 'gpt-5-mini']
26
+ **prompt** | **string** | | [optional] [default to undefined]
27
+ **prompt_append** | **string** | | [optional] [default to undefined]
28
+ **temperature** | **number** | | [optional] [default to undefined]
29
+ **frequency_penalty** | **number** | | [optional] [default to undefined]
30
+ **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
+ **wallet_provider** | **string** | | [optional] [default to undefined]
37
+ **readonly_wallet_address** | **string** | | [optional] [default to undefined]
38
+ **network_id** | **string** | | [optional] [default to undefined]
39
+ **cdp_network_id** | **string** | | [optional] [default to undefined]
40
+ **telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
41
+ **telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
42
+ **telegram_config** | **object** | | [optional] [default to undefined]
43
+ **xmtp_entrypoint_prompt** | **string** | | [optional] [default to undefined]
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
+
48
+ ## Example
49
+
50
+ ```typescript
51
+ import { AgentInput } from '@crestal/nation-sdk';
52
+
53
+ const instance: AgentInput = {
54
+ name,
55
+ slug,
56
+ description,
57
+ external_website,
58
+ picture,
59
+ ticker,
60
+ token_address,
61
+ token_pool,
62
+ mode,
63
+ fee_percentage,
64
+ purpose,
65
+ personality,
66
+ principles,
67
+ owner,
68
+ upstream_id,
69
+ upstream_extra,
70
+ model,
71
+ prompt,
72
+ prompt_append,
73
+ temperature,
74
+ frequency_penalty,
75
+ presence_penalty,
76
+ short_term_memory_strategy,
77
+ autonomous,
78
+ example_intro,
79
+ examples,
80
+ skills,
81
+ wallet_provider,
82
+ readonly_wallet_address,
83
+ network_id,
84
+ cdp_network_id,
85
+ telegram_entrypoint_enabled,
86
+ telegram_entrypoint_prompt,
87
+ telegram_config,
88
+ xmtp_entrypoint_prompt,
89
+ id,
90
+ created_at,
91
+ updated_at,
92
+ };
93
+ ```
94
+
95
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,4 +1,4 @@
1
- # Agent
1
+ # AgentOutput
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 { Agent } from '@crestal/nation-sdk';
51
+ import { AgentOutput } from '@crestal/nation-sdk';
52
52
 
53
- const instance: Agent = {
53
+ const instance: AgentOutput = {
54
54
  name,
55
55
  slug,
56
56
  description,
@@ -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-04T16:58:42.357+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-04T16:58:42.357+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-09-06T11:12:10.613+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-06T11:12:10.613+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
- > Agent getUserAgentById()
11
+ > AgentOutput 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
- **Agent**
42
+ **AgentOutput**
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.25
7
+ * The version of the OpenAPI document: 0.6.26
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.25",
3
+ "version": "0.6.26",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {