@crestal/nation-sdk 0.7.43 → 0.7.45
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/README.md +2 -2
- package/api.ts +39 -42
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +105 -42
- package/dist/api.js +5 -5
- 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 +7 -7
- package/docs/AgentCreate.md +3 -3
- package/docs/AgentDeployRequest.md +1 -1
- package/docs/AgentDraft.md +2 -2
- package/docs/AgentGenerateResponse.md +2 -2
- package/docs/AgentPublicInfo.md +1 -1
- package/docs/AgentResponse.md +6 -6
- package/docs/AgentUpdate.md +3 -3
- package/docs/AgentUserInput.md +2 -2
- package/docs/ChatMessageAttachment.md +1 -1
- package/docs/ChatMessageSkillCall.md +1 -1
- package/docs/DraftApi.md +1 -1
- package/docs/GenerationDetailResponse.md +3 -3
- package/docs/GenerationsListResponse.md +1 -1
- package/docs/LLMModelInfoWithProviderNameInput.md +2 -2
- package/docs/LLMModelInfoWithProviderNameOutput.md +2 -2
- package/docs/User.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @crestal/nation-sdk@0.7.
|
|
1
|
+
## @crestal/nation-sdk@0.7.45
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @crestal/nation-sdk@0.7.
|
|
39
|
+
npm install @crestal/nation-sdk@0.7.45 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.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.7.
|
|
7
|
+
* The version of the OpenAPI document: 0.7.45
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -35,7 +35,7 @@ export interface Agent {
|
|
|
35
35
|
'fee_percentage'?: string | null;
|
|
36
36
|
'example_intro'?: string | null;
|
|
37
37
|
'examples'?: Array<AgentExample> | null;
|
|
38
|
-
'public_extra'?:
|
|
38
|
+
'public_extra'?: { [key: string]: any; } | null;
|
|
39
39
|
'name': string | null;
|
|
40
40
|
'picture'?: string | null;
|
|
41
41
|
'purpose'?: string | null;
|
|
@@ -53,15 +53,15 @@ export interface Agent {
|
|
|
53
53
|
'wallet_provider'?: AgentWalletProviderEnum | null;
|
|
54
54
|
'readonly_wallet_address'?: string | null;
|
|
55
55
|
'network_id'?: AgentNetworkIdEnum | null;
|
|
56
|
-
'skills'?:
|
|
56
|
+
'skills'?: { [key: string]: any; } | null;
|
|
57
57
|
'short_term_memory_strategy'?: AgentShortTermMemoryStrategyEnum | null;
|
|
58
58
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
59
59
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
60
60
|
'telegram_entrypoint_prompt'?: string | null;
|
|
61
|
-
'telegram_config'?:
|
|
61
|
+
'telegram_config'?: { [key: string]: any; } | null;
|
|
62
62
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
63
63
|
'upstream_id'?: string | null;
|
|
64
|
-
'upstream_extra'?:
|
|
64
|
+
'upstream_extra'?: { [key: string]: any; } | null;
|
|
65
65
|
/**
|
|
66
66
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
67
67
|
*/
|
|
@@ -69,10 +69,10 @@ export interface Agent {
|
|
|
69
69
|
'owner'?: string | null;
|
|
70
70
|
'slug'?: string | null;
|
|
71
71
|
'version'?: string | null;
|
|
72
|
-
'statistics'?:
|
|
73
|
-
'assets'?:
|
|
72
|
+
'statistics'?: { [key: string]: any; } | null;
|
|
73
|
+
'assets'?: { [key: string]: any; } | null;
|
|
74
74
|
'account_snapshot'?: CreditAccount | null;
|
|
75
|
-
'extra'?:
|
|
75
|
+
'extra'?: { [key: string]: any; } | null;
|
|
76
76
|
'deployed_at'?: string | null;
|
|
77
77
|
'public_info_updated_at'?: string | null;
|
|
78
78
|
/**
|
|
@@ -204,15 +204,15 @@ export interface AgentCreate {
|
|
|
204
204
|
'wallet_provider'?: AgentCreateWalletProviderEnum | null;
|
|
205
205
|
'readonly_wallet_address'?: string | null;
|
|
206
206
|
'network_id'?: AgentCreateNetworkIdEnum | null;
|
|
207
|
-
'skills'?:
|
|
207
|
+
'skills'?: { [key: string]: any; } | null;
|
|
208
208
|
'short_term_memory_strategy'?: AgentCreateShortTermMemoryStrategyEnum | null;
|
|
209
209
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
210
210
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
211
211
|
'telegram_entrypoint_prompt'?: string | null;
|
|
212
|
-
'telegram_config'?:
|
|
212
|
+
'telegram_config'?: { [key: string]: any; } | null;
|
|
213
213
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
214
214
|
'upstream_id'?: string | null;
|
|
215
|
-
'upstream_extra'?:
|
|
215
|
+
'upstream_extra'?: { [key: string]: any; } | null;
|
|
216
216
|
/**
|
|
217
217
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
218
218
|
*/
|
|
@@ -261,10 +261,7 @@ export interface AgentDeployRequest {
|
|
|
261
261
|
* Draft ID to deploy
|
|
262
262
|
*/
|
|
263
263
|
'draft_id': string;
|
|
264
|
-
|
|
265
|
-
* Transaction ID for upstream tracking
|
|
266
|
-
*/
|
|
267
|
-
'tx_id': string;
|
|
264
|
+
'tx_id'?: string | null;
|
|
268
265
|
}
|
|
269
266
|
/**
|
|
270
267
|
* Agent draft model.
|
|
@@ -287,12 +284,12 @@ export interface AgentDraft {
|
|
|
287
284
|
'wallet_provider'?: AgentDraftWalletProviderEnum | null;
|
|
288
285
|
'readonly_wallet_address'?: string | null;
|
|
289
286
|
'network_id'?: AgentDraftNetworkIdEnum | null;
|
|
290
|
-
'skills'?:
|
|
287
|
+
'skills'?: { [key: string]: any; } | null;
|
|
291
288
|
'short_term_memory_strategy'?: AgentDraftShortTermMemoryStrategyEnum | null;
|
|
292
289
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
293
290
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
294
291
|
'telegram_entrypoint_prompt'?: string | null;
|
|
295
|
-
'telegram_config'?:
|
|
292
|
+
'telegram_config'?: { [key: string]: any; } | null;
|
|
296
293
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
297
294
|
/**
|
|
298
295
|
* Unique identifier for the draft
|
|
@@ -382,7 +379,7 @@ export interface AgentGenerateResponse {
|
|
|
382
379
|
/**
|
|
383
380
|
* The generated agent schema
|
|
384
381
|
*/
|
|
385
|
-
'agent':
|
|
382
|
+
'agent': { [key: string]: any; };
|
|
386
383
|
/**
|
|
387
384
|
* Project ID for this conversation session
|
|
388
385
|
*/
|
|
@@ -395,7 +392,7 @@ export interface AgentGenerateResponse {
|
|
|
395
392
|
* Generated tags for the agent as ID objects: [{\'id\': 1}, {\'id\': 2}]
|
|
396
393
|
*/
|
|
397
394
|
'tags'?: Array<{ [key: string]: number; }>;
|
|
398
|
-
'autonomous_tasks'?: Array<
|
|
395
|
+
'autonomous_tasks'?: Array<{ [key: string]: any; }> | null;
|
|
399
396
|
'activated_skills'?: Array<string> | null;
|
|
400
397
|
}
|
|
401
398
|
/**
|
|
@@ -428,7 +425,7 @@ export interface AgentPublicInfo {
|
|
|
428
425
|
'fee_percentage'?: FeePercentage | null;
|
|
429
426
|
'example_intro'?: string | null;
|
|
430
427
|
'examples'?: Array<AgentExample> | null;
|
|
431
|
-
'public_extra'?:
|
|
428
|
+
'public_extra'?: { [key: string]: any; } | null;
|
|
432
429
|
}
|
|
433
430
|
/**
|
|
434
431
|
* Agent response model that excludes sensitive fields from JSON output and schema.
|
|
@@ -442,7 +439,7 @@ export interface AgentResponse {
|
|
|
442
439
|
'fee_percentage'?: string | null;
|
|
443
440
|
'example_intro'?: string | null;
|
|
444
441
|
'examples'?: Array<AgentExample> | null;
|
|
445
|
-
'public_extra'?:
|
|
442
|
+
'public_extra'?: { [key: string]: any; } | null;
|
|
446
443
|
'name': string | null;
|
|
447
444
|
'picture'?: string | null;
|
|
448
445
|
/**
|
|
@@ -453,12 +450,12 @@ export interface AgentResponse {
|
|
|
453
450
|
'wallet_provider'?: AgentResponseWalletProviderEnum | null;
|
|
454
451
|
'readonly_wallet_address'?: string | null;
|
|
455
452
|
'network_id'?: AgentResponseNetworkIdEnum | null;
|
|
456
|
-
'skills'?:
|
|
453
|
+
'skills'?: { [key: string]: any; } | null;
|
|
457
454
|
'short_term_memory_strategy'?: AgentResponseShortTermMemoryStrategyEnum | null;
|
|
458
455
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
459
456
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
460
457
|
'upstream_id'?: string | null;
|
|
461
|
-
'upstream_extra'?:
|
|
458
|
+
'upstream_extra'?: { [key: string]: any; } | null;
|
|
462
459
|
/**
|
|
463
460
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
464
461
|
*/
|
|
@@ -466,10 +463,10 @@ export interface AgentResponse {
|
|
|
466
463
|
'owner'?: string | null;
|
|
467
464
|
'slug'?: string | null;
|
|
468
465
|
'version'?: string | null;
|
|
469
|
-
'statistics'?:
|
|
470
|
-
'assets'?:
|
|
466
|
+
'statistics'?: { [key: string]: any; } | null;
|
|
467
|
+
'assets'?: { [key: string]: any; } | null;
|
|
471
468
|
'account_snapshot'?: CreditAccount | null;
|
|
472
|
-
'extra'?:
|
|
469
|
+
'extra'?: { [key: string]: any; } | null;
|
|
473
470
|
'deployed_at'?: string | null;
|
|
474
471
|
'public_info_updated_at'?: string | null;
|
|
475
472
|
/**
|
|
@@ -653,15 +650,15 @@ export interface AgentUpdate {
|
|
|
653
650
|
'wallet_provider'?: AgentUpdateWalletProviderEnum | null;
|
|
654
651
|
'readonly_wallet_address'?: string | null;
|
|
655
652
|
'network_id'?: AgentUpdateNetworkIdEnum | null;
|
|
656
|
-
'skills'?:
|
|
653
|
+
'skills'?: { [key: string]: any; } | null;
|
|
657
654
|
'short_term_memory_strategy'?: AgentUpdateShortTermMemoryStrategyEnum | null;
|
|
658
655
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
659
656
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
660
657
|
'telegram_entrypoint_prompt'?: string | null;
|
|
661
|
-
'telegram_config'?:
|
|
658
|
+
'telegram_config'?: { [key: string]: any; } | null;
|
|
662
659
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
663
660
|
'upstream_id'?: string | null;
|
|
664
|
-
'upstream_extra'?:
|
|
661
|
+
'upstream_extra'?: { [key: string]: any; } | null;
|
|
665
662
|
}
|
|
666
663
|
|
|
667
664
|
export const AgentUpdateWalletProviderEnum = {
|
|
@@ -714,12 +711,12 @@ export interface AgentUserInput {
|
|
|
714
711
|
'wallet_provider'?: AgentUserInputWalletProviderEnum | null;
|
|
715
712
|
'readonly_wallet_address'?: string | null;
|
|
716
713
|
'network_id'?: AgentUserInputNetworkIdEnum | null;
|
|
717
|
-
'skills'?:
|
|
714
|
+
'skills'?: { [key: string]: any; } | null;
|
|
718
715
|
'short_term_memory_strategy'?: AgentUserInputShortTermMemoryStrategyEnum | null;
|
|
719
716
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
720
717
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
721
718
|
'telegram_entrypoint_prompt'?: string | null;
|
|
722
|
-
'telegram_config'?:
|
|
719
|
+
'telegram_config'?: { [key: string]: any; } | null;
|
|
723
720
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
724
721
|
}
|
|
725
722
|
|
|
@@ -959,7 +956,7 @@ export interface ChatMessageAttachment {
|
|
|
959
956
|
*/
|
|
960
957
|
'type': ChatMessageAttachmentType;
|
|
961
958
|
'url': string | null;
|
|
962
|
-
'json'?:
|
|
959
|
+
'json'?: { [key: string]: any; } | null;
|
|
963
960
|
}
|
|
964
961
|
|
|
965
962
|
|
|
@@ -997,7 +994,7 @@ export interface ChatMessageRequest {
|
|
|
997
994
|
export interface ChatMessageSkillCall {
|
|
998
995
|
'id'?: string;
|
|
999
996
|
'name': string;
|
|
1000
|
-
'parameters':
|
|
997
|
+
'parameters': { [key: string]: any; };
|
|
1001
998
|
'success': boolean;
|
|
1002
999
|
'response'?: string;
|
|
1003
1000
|
'error_message'?: string;
|
|
@@ -1709,12 +1706,12 @@ export interface GenerationDetailResponse {
|
|
|
1709
1706
|
* Number of messages in conversation
|
|
1710
1707
|
*/
|
|
1711
1708
|
'message_count': number;
|
|
1712
|
-
'last_message'?:
|
|
1713
|
-
'first_message'?:
|
|
1709
|
+
'last_message'?: { [key: string]: any; } | null;
|
|
1710
|
+
'first_message'?: { [key: string]: any; } | null;
|
|
1714
1711
|
/**
|
|
1715
1712
|
* Full conversation history
|
|
1716
1713
|
*/
|
|
1717
|
-
'conversation_history': Array<
|
|
1714
|
+
'conversation_history': Array<{ [key: string]: any; }>;
|
|
1718
1715
|
}
|
|
1719
1716
|
/**
|
|
1720
1717
|
* Response model for generations list.
|
|
@@ -1723,7 +1720,7 @@ export interface GenerationsListResponse {
|
|
|
1723
1720
|
/**
|
|
1724
1721
|
* List of recent projects with their conversation history
|
|
1725
1722
|
*/
|
|
1726
|
-
'projects': Array<
|
|
1723
|
+
'projects': Array<{ [key: string]: any; }>;
|
|
1727
1724
|
}
|
|
1728
1725
|
export interface HTTPValidationError {
|
|
1729
1726
|
'detail'?: Array<ValidationError>;
|
|
@@ -2121,7 +2118,7 @@ export interface User {
|
|
|
2121
2118
|
'x_username'?: string | null;
|
|
2122
2119
|
'github_username'?: string | null;
|
|
2123
2120
|
'telegram_username'?: string | null;
|
|
2124
|
-
'extra'?:
|
|
2121
|
+
'extra'?: { [key: string]: any; } | null;
|
|
2125
2122
|
/**
|
|
2126
2123
|
* Unique identifier for the user
|
|
2127
2124
|
*/
|
|
@@ -5132,7 +5129,7 @@ export const DraftApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
5132
5129
|
};
|
|
5133
5130
|
},
|
|
5134
5131
|
/**
|
|
5135
|
-
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration.
|
|
5132
|
+
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. When provided, the upstream_id is set to the tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
5136
5133
|
* @summary Deploy Agent From Draft
|
|
5137
5134
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
5138
5135
|
* @param {*} [options] Override http request option.
|
|
@@ -5408,7 +5405,7 @@ export const DraftApiFp = function(configuration?: Configuration) {
|
|
|
5408
5405
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5409
5406
|
},
|
|
5410
5407
|
/**
|
|
5411
|
-
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration.
|
|
5408
|
+
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. When provided, the upstream_id is set to the tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
5412
5409
|
* @summary Deploy Agent From Draft
|
|
5413
5410
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
5414
5411
|
* @param {*} [options] Override http request option.
|
|
@@ -5517,7 +5514,7 @@ export const DraftApiFactory = function (configuration?: Configuration, basePath
|
|
|
5517
5514
|
return localVarFp.deleteAgentDraft(draftId, options).then((request) => request(axios, basePath));
|
|
5518
5515
|
},
|
|
5519
5516
|
/**
|
|
5520
|
-
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration.
|
|
5517
|
+
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. When provided, the upstream_id is set to the tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
5521
5518
|
* @summary Deploy Agent From Draft
|
|
5522
5519
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
5523
5520
|
* @param {*} [options] Override http request option.
|
|
@@ -5608,7 +5605,7 @@ export class DraftApi extends BaseAPI {
|
|
|
5608
5605
|
}
|
|
5609
5606
|
|
|
5610
5607
|
/**
|
|
5611
|
-
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration.
|
|
5608
|
+
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. When provided, the upstream_id is set to the tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
5612
5609
|
* @summary Deploy Agent From Draft
|
|
5613
5610
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
5614
5611
|
* @param {*} [options] Override http request option.
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.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.7.
|
|
5
|
+
* The version of the OpenAPI document: 0.7.45
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -25,7 +25,9 @@ export interface Agent {
|
|
|
25
25
|
'fee_percentage'?: string | null;
|
|
26
26
|
'example_intro'?: string | null;
|
|
27
27
|
'examples'?: Array<AgentExample> | null;
|
|
28
|
-
'public_extra'?:
|
|
28
|
+
'public_extra'?: {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
} | null;
|
|
29
31
|
'name': string | null;
|
|
30
32
|
'picture'?: string | null;
|
|
31
33
|
'purpose'?: string | null;
|
|
@@ -43,15 +45,21 @@ export interface Agent {
|
|
|
43
45
|
'wallet_provider'?: AgentWalletProviderEnum | null;
|
|
44
46
|
'readonly_wallet_address'?: string | null;
|
|
45
47
|
'network_id'?: AgentNetworkIdEnum | null;
|
|
46
|
-
'skills'?:
|
|
48
|
+
'skills'?: {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
} | null;
|
|
47
51
|
'short_term_memory_strategy'?: AgentShortTermMemoryStrategyEnum | null;
|
|
48
52
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
49
53
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
50
54
|
'telegram_entrypoint_prompt'?: string | null;
|
|
51
|
-
'telegram_config'?:
|
|
55
|
+
'telegram_config'?: {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
} | null;
|
|
52
58
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
53
59
|
'upstream_id'?: string | null;
|
|
54
|
-
'upstream_extra'?:
|
|
60
|
+
'upstream_extra'?: {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
} | null;
|
|
55
63
|
/**
|
|
56
64
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
57
65
|
*/
|
|
@@ -59,10 +67,16 @@ export interface Agent {
|
|
|
59
67
|
'owner'?: string | null;
|
|
60
68
|
'slug'?: string | null;
|
|
61
69
|
'version'?: string | null;
|
|
62
|
-
'statistics'?:
|
|
63
|
-
|
|
70
|
+
'statistics'?: {
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
} | null;
|
|
73
|
+
'assets'?: {
|
|
74
|
+
[key: string]: any;
|
|
75
|
+
} | null;
|
|
64
76
|
'account_snapshot'?: CreditAccount | null;
|
|
65
|
-
'extra'?:
|
|
77
|
+
'extra'?: {
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
} | null;
|
|
66
80
|
'deployed_at'?: string | null;
|
|
67
81
|
'public_info_updated_at'?: string | null;
|
|
68
82
|
/**
|
|
@@ -189,15 +203,21 @@ export interface AgentCreate {
|
|
|
189
203
|
'wallet_provider'?: AgentCreateWalletProviderEnum | null;
|
|
190
204
|
'readonly_wallet_address'?: string | null;
|
|
191
205
|
'network_id'?: AgentCreateNetworkIdEnum | null;
|
|
192
|
-
'skills'?:
|
|
206
|
+
'skills'?: {
|
|
207
|
+
[key: string]: any;
|
|
208
|
+
} | null;
|
|
193
209
|
'short_term_memory_strategy'?: AgentCreateShortTermMemoryStrategyEnum | null;
|
|
194
210
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
195
211
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
196
212
|
'telegram_entrypoint_prompt'?: string | null;
|
|
197
|
-
'telegram_config'?:
|
|
213
|
+
'telegram_config'?: {
|
|
214
|
+
[key: string]: any;
|
|
215
|
+
} | null;
|
|
198
216
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
199
217
|
'upstream_id'?: string | null;
|
|
200
|
-
'upstream_extra'?:
|
|
218
|
+
'upstream_extra'?: {
|
|
219
|
+
[key: string]: any;
|
|
220
|
+
} | null;
|
|
201
221
|
/**
|
|
202
222
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
203
223
|
*/
|
|
@@ -241,10 +261,7 @@ export interface AgentDeployRequest {
|
|
|
241
261
|
* Draft ID to deploy
|
|
242
262
|
*/
|
|
243
263
|
'draft_id': string;
|
|
244
|
-
|
|
245
|
-
* Transaction ID for upstream tracking
|
|
246
|
-
*/
|
|
247
|
-
'tx_id': string;
|
|
264
|
+
'tx_id'?: string | null;
|
|
248
265
|
}
|
|
249
266
|
/**
|
|
250
267
|
* Agent draft model.
|
|
@@ -267,12 +284,16 @@ export interface AgentDraft {
|
|
|
267
284
|
'wallet_provider'?: AgentDraftWalletProviderEnum | null;
|
|
268
285
|
'readonly_wallet_address'?: string | null;
|
|
269
286
|
'network_id'?: AgentDraftNetworkIdEnum | null;
|
|
270
|
-
'skills'?:
|
|
287
|
+
'skills'?: {
|
|
288
|
+
[key: string]: any;
|
|
289
|
+
} | null;
|
|
271
290
|
'short_term_memory_strategy'?: AgentDraftShortTermMemoryStrategyEnum | null;
|
|
272
291
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
273
292
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
274
293
|
'telegram_entrypoint_prompt'?: string | null;
|
|
275
|
-
'telegram_config'?:
|
|
294
|
+
'telegram_config'?: {
|
|
295
|
+
[key: string]: any;
|
|
296
|
+
} | null;
|
|
276
297
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
277
298
|
/**
|
|
278
299
|
* Unique identifier for the draft
|
|
@@ -357,7 +378,9 @@ export interface AgentGenerateResponse {
|
|
|
357
378
|
/**
|
|
358
379
|
* The generated agent schema
|
|
359
380
|
*/
|
|
360
|
-
'agent':
|
|
381
|
+
'agent': {
|
|
382
|
+
[key: string]: any;
|
|
383
|
+
};
|
|
361
384
|
/**
|
|
362
385
|
* Project ID for this conversation session
|
|
363
386
|
*/
|
|
@@ -372,7 +395,9 @@ export interface AgentGenerateResponse {
|
|
|
372
395
|
'tags'?: Array<{
|
|
373
396
|
[key: string]: number;
|
|
374
397
|
}>;
|
|
375
|
-
'autonomous_tasks'?: Array<
|
|
398
|
+
'autonomous_tasks'?: Array<{
|
|
399
|
+
[key: string]: any;
|
|
400
|
+
}> | null;
|
|
376
401
|
'activated_skills'?: Array<string> | null;
|
|
377
402
|
}
|
|
378
403
|
/**
|
|
@@ -405,7 +430,9 @@ export interface AgentPublicInfo {
|
|
|
405
430
|
'fee_percentage'?: FeePercentage | null;
|
|
406
431
|
'example_intro'?: string | null;
|
|
407
432
|
'examples'?: Array<AgentExample> | null;
|
|
408
|
-
'public_extra'?:
|
|
433
|
+
'public_extra'?: {
|
|
434
|
+
[key: string]: any;
|
|
435
|
+
} | null;
|
|
409
436
|
}
|
|
410
437
|
/**
|
|
411
438
|
* Agent response model that excludes sensitive fields from JSON output and schema.
|
|
@@ -419,7 +446,9 @@ export interface AgentResponse {
|
|
|
419
446
|
'fee_percentage'?: string | null;
|
|
420
447
|
'example_intro'?: string | null;
|
|
421
448
|
'examples'?: Array<AgentExample> | null;
|
|
422
|
-
'public_extra'?:
|
|
449
|
+
'public_extra'?: {
|
|
450
|
+
[key: string]: any;
|
|
451
|
+
} | null;
|
|
423
452
|
'name': string | null;
|
|
424
453
|
'picture'?: string | null;
|
|
425
454
|
/**
|
|
@@ -430,12 +459,16 @@ export interface AgentResponse {
|
|
|
430
459
|
'wallet_provider'?: AgentResponseWalletProviderEnum | null;
|
|
431
460
|
'readonly_wallet_address'?: string | null;
|
|
432
461
|
'network_id'?: AgentResponseNetworkIdEnum | null;
|
|
433
|
-
'skills'?:
|
|
462
|
+
'skills'?: {
|
|
463
|
+
[key: string]: any;
|
|
464
|
+
} | null;
|
|
434
465
|
'short_term_memory_strategy'?: AgentResponseShortTermMemoryStrategyEnum | null;
|
|
435
466
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
436
467
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
437
468
|
'upstream_id'?: string | null;
|
|
438
|
-
'upstream_extra'?:
|
|
469
|
+
'upstream_extra'?: {
|
|
470
|
+
[key: string]: any;
|
|
471
|
+
} | null;
|
|
439
472
|
/**
|
|
440
473
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
441
474
|
*/
|
|
@@ -443,10 +476,16 @@ export interface AgentResponse {
|
|
|
443
476
|
'owner'?: string | null;
|
|
444
477
|
'slug'?: string | null;
|
|
445
478
|
'version'?: string | null;
|
|
446
|
-
'statistics'?:
|
|
447
|
-
|
|
479
|
+
'statistics'?: {
|
|
480
|
+
[key: string]: any;
|
|
481
|
+
} | null;
|
|
482
|
+
'assets'?: {
|
|
483
|
+
[key: string]: any;
|
|
484
|
+
} | null;
|
|
448
485
|
'account_snapshot'?: CreditAccount | null;
|
|
449
|
-
'extra'?:
|
|
486
|
+
'extra'?: {
|
|
487
|
+
[key: string]: any;
|
|
488
|
+
} | null;
|
|
450
489
|
'deployed_at'?: string | null;
|
|
451
490
|
'public_info_updated_at'?: string | null;
|
|
452
491
|
/**
|
|
@@ -617,15 +656,21 @@ export interface AgentUpdate {
|
|
|
617
656
|
'wallet_provider'?: AgentUpdateWalletProviderEnum | null;
|
|
618
657
|
'readonly_wallet_address'?: string | null;
|
|
619
658
|
'network_id'?: AgentUpdateNetworkIdEnum | null;
|
|
620
|
-
'skills'?:
|
|
659
|
+
'skills'?: {
|
|
660
|
+
[key: string]: any;
|
|
661
|
+
} | null;
|
|
621
662
|
'short_term_memory_strategy'?: AgentUpdateShortTermMemoryStrategyEnum | null;
|
|
622
663
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
623
664
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
624
665
|
'telegram_entrypoint_prompt'?: string | null;
|
|
625
|
-
'telegram_config'?:
|
|
666
|
+
'telegram_config'?: {
|
|
667
|
+
[key: string]: any;
|
|
668
|
+
} | null;
|
|
626
669
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
627
670
|
'upstream_id'?: string | null;
|
|
628
|
-
'upstream_extra'?:
|
|
671
|
+
'upstream_extra'?: {
|
|
672
|
+
[key: string]: any;
|
|
673
|
+
} | null;
|
|
629
674
|
}
|
|
630
675
|
export declare const AgentUpdateWalletProviderEnum: {
|
|
631
676
|
readonly Cdp: "cdp";
|
|
@@ -673,12 +718,16 @@ export interface AgentUserInput {
|
|
|
673
718
|
'wallet_provider'?: AgentUserInputWalletProviderEnum | null;
|
|
674
719
|
'readonly_wallet_address'?: string | null;
|
|
675
720
|
'network_id'?: AgentUserInputNetworkIdEnum | null;
|
|
676
|
-
'skills'?:
|
|
721
|
+
'skills'?: {
|
|
722
|
+
[key: string]: any;
|
|
723
|
+
} | null;
|
|
677
724
|
'short_term_memory_strategy'?: AgentUserInputShortTermMemoryStrategyEnum | null;
|
|
678
725
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
679
726
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
680
727
|
'telegram_entrypoint_prompt'?: string | null;
|
|
681
|
-
'telegram_config'?:
|
|
728
|
+
'telegram_config'?: {
|
|
729
|
+
[key: string]: any;
|
|
730
|
+
} | null;
|
|
682
731
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
683
732
|
}
|
|
684
733
|
export declare const AgentUserInputWalletProviderEnum: {
|
|
@@ -907,7 +956,9 @@ export interface ChatMessageAttachment {
|
|
|
907
956
|
*/
|
|
908
957
|
'type': ChatMessageAttachmentType;
|
|
909
958
|
'url': string | null;
|
|
910
|
-
'json'?:
|
|
959
|
+
'json'?: {
|
|
960
|
+
[key: string]: any;
|
|
961
|
+
} | null;
|
|
911
962
|
}
|
|
912
963
|
/**
|
|
913
964
|
* Type of chat message attachment.
|
|
@@ -939,7 +990,9 @@ export interface ChatMessageRequest {
|
|
|
939
990
|
export interface ChatMessageSkillCall {
|
|
940
991
|
'id'?: string;
|
|
941
992
|
'name': string;
|
|
942
|
-
'parameters':
|
|
993
|
+
'parameters': {
|
|
994
|
+
[key: string]: any;
|
|
995
|
+
};
|
|
943
996
|
'success': boolean;
|
|
944
997
|
'response'?: string;
|
|
945
998
|
'error_message'?: string;
|
|
@@ -1621,12 +1674,18 @@ export interface GenerationDetailResponse {
|
|
|
1621
1674
|
* Number of messages in conversation
|
|
1622
1675
|
*/
|
|
1623
1676
|
'message_count': number;
|
|
1624
|
-
'last_message'?:
|
|
1625
|
-
|
|
1677
|
+
'last_message'?: {
|
|
1678
|
+
[key: string]: any;
|
|
1679
|
+
} | null;
|
|
1680
|
+
'first_message'?: {
|
|
1681
|
+
[key: string]: any;
|
|
1682
|
+
} | null;
|
|
1626
1683
|
/**
|
|
1627
1684
|
* Full conversation history
|
|
1628
1685
|
*/
|
|
1629
|
-
'conversation_history': Array<
|
|
1686
|
+
'conversation_history': Array<{
|
|
1687
|
+
[key: string]: any;
|
|
1688
|
+
}>;
|
|
1630
1689
|
}
|
|
1631
1690
|
/**
|
|
1632
1691
|
* Response model for generations list.
|
|
@@ -1635,7 +1694,9 @@ export interface GenerationsListResponse {
|
|
|
1635
1694
|
/**
|
|
1636
1695
|
* List of recent projects with their conversation history
|
|
1637
1696
|
*/
|
|
1638
|
-
'projects': Array<
|
|
1697
|
+
'projects': Array<{
|
|
1698
|
+
[key: string]: any;
|
|
1699
|
+
}>;
|
|
1639
1700
|
}
|
|
1640
1701
|
export interface HTTPValidationError {
|
|
1641
1702
|
'detail'?: Array<ValidationError>;
|
|
@@ -2009,7 +2070,9 @@ export interface User {
|
|
|
2009
2070
|
'x_username'?: string | null;
|
|
2010
2071
|
'github_username'?: string | null;
|
|
2011
2072
|
'telegram_username'?: string | null;
|
|
2012
|
-
'extra'?:
|
|
2073
|
+
'extra'?: {
|
|
2074
|
+
[key: string]: any;
|
|
2075
|
+
} | null;
|
|
2013
2076
|
/**
|
|
2014
2077
|
* Unique identifier for the user
|
|
2015
2078
|
*/
|
|
@@ -3385,7 +3448,7 @@ export declare const DraftApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
3385
3448
|
*/
|
|
3386
3449
|
deleteAgentDraft: (draftId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3387
3450
|
/**
|
|
3388
|
-
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration.
|
|
3451
|
+
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. When provided, the upstream_id is set to the tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
3389
3452
|
* @summary Deploy Agent From Draft
|
|
3390
3453
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
3391
3454
|
* @param {*} [options] Override http request option.
|
|
@@ -3456,7 +3519,7 @@ export declare const DraftApiFp: (configuration?: Configuration) => {
|
|
|
3456
3519
|
*/
|
|
3457
3520
|
deleteAgentDraft(draftId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
3458
3521
|
/**
|
|
3459
|
-
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration.
|
|
3522
|
+
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. When provided, the upstream_id is set to the tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
3460
3523
|
* @summary Deploy Agent From Draft
|
|
3461
3524
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
3462
3525
|
* @param {*} [options] Override http request option.
|
|
@@ -3527,7 +3590,7 @@ export declare const DraftApiFactory: (configuration?: Configuration, basePath?:
|
|
|
3527
3590
|
*/
|
|
3528
3591
|
deleteAgentDraft(draftId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
3529
3592
|
/**
|
|
3530
|
-
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration.
|
|
3593
|
+
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. When provided, the upstream_id is set to the tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
3531
3594
|
* @summary Deploy Agent From Draft
|
|
3532
3595
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
3533
3596
|
* @param {*} [options] Override http request option.
|
|
@@ -3598,7 +3661,7 @@ export declare class DraftApi extends BaseAPI {
|
|
|
3598
3661
|
*/
|
|
3599
3662
|
deleteAgentDraft(draftId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
3600
3663
|
/**
|
|
3601
|
-
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration.
|
|
3664
|
+
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. When provided, the upstream_id is set to the tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
3602
3665
|
* @summary Deploy Agent From Draft
|
|
3603
3666
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
3604
3667
|
* @param {*} [options] Override http request option.
|
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.7.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.45
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3987,7 +3987,7 @@ var DraftApiAxiosParamCreator = function (configuration) {
|
|
|
3987
3987
|
});
|
|
3988
3988
|
},
|
|
3989
3989
|
/**
|
|
3990
|
-
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration.
|
|
3990
|
+
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. When provided, the upstream_id is set to the tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
3991
3991
|
* @summary Deploy Agent From Draft
|
|
3992
3992
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
3993
3993
|
* @param {*} [options] Override http request option.
|
|
@@ -4334,7 +4334,7 @@ var DraftApiFp = function (configuration) {
|
|
|
4334
4334
|
});
|
|
4335
4335
|
},
|
|
4336
4336
|
/**
|
|
4337
|
-
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration.
|
|
4337
|
+
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. When provided, the upstream_id is set to the tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
4338
4338
|
* @summary Deploy Agent From Draft
|
|
4339
4339
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
4340
4340
|
* @param {*} [options] Override http request option.
|
|
@@ -4503,7 +4503,7 @@ var DraftApiFactory = function (configuration, basePath, axios) {
|
|
|
4503
4503
|
return localVarFp.deleteAgentDraft(draftId, options).then(function (request) { return request(axios, basePath); });
|
|
4504
4504
|
},
|
|
4505
4505
|
/**
|
|
4506
|
-
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration.
|
|
4506
|
+
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. When provided, the upstream_id is set to the tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
4507
4507
|
* @summary Deploy Agent From Draft
|
|
4508
4508
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
4509
4509
|
* @param {*} [options] Override http request option.
|
|
@@ -4598,7 +4598,7 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
4598
4598
|
return (0, exports.DraftApiFp)(this.configuration).deleteAgentDraft(draftId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4599
4599
|
};
|
|
4600
4600
|
/**
|
|
4601
|
-
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration.
|
|
4601
|
+
* Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. When provided, the upstream_id is set to the tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
4602
4602
|
* @summary Deploy Agent From Draft
|
|
4603
4603
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
4604
4604
|
* @param {*} [options] Override http request option.
|
package/dist/base.d.ts
CHANGED
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.7.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.45
|
|
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
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.7.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.45
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.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.7.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.45
|
|
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
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.7.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.45
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/Agent.md
CHANGED
|
@@ -14,7 +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** | **
|
|
17
|
+
**public_extra** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
18
18
|
**name** | **string** | | [default to undefined]
|
|
19
19
|
**picture** | **string** | | [optional] [default to undefined]
|
|
20
20
|
**purpose** | **string** | | [optional] [default to undefined]
|
|
@@ -29,23 +29,23 @@ Name | Type | Description | Notes
|
|
|
29
29
|
**wallet_provider** | **string** | | [optional] [default to undefined]
|
|
30
30
|
**readonly_wallet_address** | **string** | | [optional] [default to undefined]
|
|
31
31
|
**network_id** | **string** | | [optional] [default to undefined]
|
|
32
|
-
**skills** | **
|
|
32
|
+
**skills** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
33
33
|
**short_term_memory_strategy** | **string** | | [optional] [default to undefined]
|
|
34
34
|
**autonomous** | [**Array<AgentAutonomous>**](AgentAutonomous.md) | | [optional] [default to undefined]
|
|
35
35
|
**telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
|
|
36
36
|
**telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
37
|
-
**telegram_config** | **
|
|
37
|
+
**telegram_config** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
38
38
|
**xmtp_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
39
39
|
**upstream_id** | **string** | | [optional] [default to undefined]
|
|
40
|
-
**upstream_extra** | **
|
|
40
|
+
**upstream_extra** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
41
41
|
**id** | **string** | Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens | [optional] [default to undefined]
|
|
42
42
|
**owner** | **string** | | [optional] [default to undefined]
|
|
43
43
|
**slug** | **string** | | [optional] [default to undefined]
|
|
44
44
|
**version** | **string** | | [optional] [default to undefined]
|
|
45
|
-
**statistics** | **
|
|
46
|
-
**assets** | **
|
|
45
|
+
**statistics** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
46
|
+
**assets** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
47
47
|
**account_snapshot** | [**CreditAccount**](CreditAccount.md) | | [optional] [default to undefined]
|
|
48
|
-
**extra** | **
|
|
48
|
+
**extra** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
49
49
|
**deployed_at** | **string** | | [optional] [default to undefined]
|
|
50
50
|
**public_info_updated_at** | **string** | | [optional] [default to undefined]
|
|
51
51
|
**created_at** | **string** | Timestamp when the agent was created, will ignore when importing | [optional] [default to undefined]
|
package/docs/AgentCreate.md
CHANGED
|
@@ -20,15 +20,15 @@ Name | Type | Description | Notes
|
|
|
20
20
|
**wallet_provider** | **string** | | [optional] [default to undefined]
|
|
21
21
|
**readonly_wallet_address** | **string** | | [optional] [default to undefined]
|
|
22
22
|
**network_id** | **string** | | [optional] [default to undefined]
|
|
23
|
-
**skills** | **
|
|
23
|
+
**skills** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
24
24
|
**short_term_memory_strategy** | **string** | | [optional] [default to undefined]
|
|
25
25
|
**autonomous** | [**Array<AgentAutonomous>**](AgentAutonomous.md) | | [optional] [default to undefined]
|
|
26
26
|
**telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
|
|
27
27
|
**telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
28
|
-
**telegram_config** | **
|
|
28
|
+
**telegram_config** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
29
29
|
**xmtp_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
30
30
|
**upstream_id** | **string** | | [optional] [default to undefined]
|
|
31
|
-
**upstream_extra** | **
|
|
31
|
+
**upstream_extra** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
32
32
|
**id** | **string** | Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens | [optional] [default to undefined]
|
|
33
33
|
**owner** | **string** | | [optional] [default to undefined]
|
|
34
34
|
|
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**agent_id** | **string** | Agent ID to deploy | [default to undefined]
|
|
10
10
|
**draft_id** | **string** | Draft ID to deploy | [default to undefined]
|
|
11
|
-
**tx_id** | **string** |
|
|
11
|
+
**tx_id** | **string** | | [optional] [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
package/docs/AgentDraft.md
CHANGED
|
@@ -20,12 +20,12 @@ Name | Type | Description | Notes
|
|
|
20
20
|
**wallet_provider** | **string** | | [optional] [default to undefined]
|
|
21
21
|
**readonly_wallet_address** | **string** | | [optional] [default to undefined]
|
|
22
22
|
**network_id** | **string** | | [optional] [default to undefined]
|
|
23
|
-
**skills** | **
|
|
23
|
+
**skills** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
24
24
|
**short_term_memory_strategy** | **string** | | [optional] [default to undefined]
|
|
25
25
|
**autonomous** | [**Array<AgentAutonomous>**](AgentAutonomous.md) | | [optional] [default to undefined]
|
|
26
26
|
**telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
|
|
27
27
|
**telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
28
|
-
**telegram_config** | **
|
|
28
|
+
**telegram_config** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
29
29
|
**xmtp_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
30
30
|
**id** | **string** | Unique identifier for the draft | [optional] [default to undefined]
|
|
31
31
|
**agent_id** | **string** | Agent id | [optional] [default to undefined]
|
|
@@ -6,11 +6,11 @@ Response model for agent generation.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**agent** | **
|
|
9
|
+
**agent** | **{ [key: string]: any; }** | The generated agent schema | [default to undefined]
|
|
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<
|
|
13
|
+
**autonomous_tasks** | **Array<{ [key: string]: any; }>** | | [optional] [default to undefined]
|
|
14
14
|
**activated_skills** | **Array<string>** | | [optional] [default to undefined]
|
|
15
15
|
|
|
16
16
|
## Example
|
package/docs/AgentPublicInfo.md
CHANGED
|
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**fee_percentage** | [**FeePercentage**](FeePercentage.md) | | [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** | **
|
|
17
|
+
**public_extra** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
18
18
|
|
|
19
19
|
## Example
|
|
20
20
|
|
package/docs/AgentResponse.md
CHANGED
|
@@ -14,7 +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** | **
|
|
17
|
+
**public_extra** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
18
18
|
**name** | **string** | | [default to undefined]
|
|
19
19
|
**picture** | **string** | | [optional] [default to undefined]
|
|
20
20
|
**model** | **string** | AI model identifier to be used by this agent for processing requests. | [optional] [default to 'gpt-5-mini']
|
|
@@ -22,20 +22,20 @@ Name | Type | Description | Notes
|
|
|
22
22
|
**wallet_provider** | **string** | | [optional] [default to undefined]
|
|
23
23
|
**readonly_wallet_address** | **string** | | [optional] [default to undefined]
|
|
24
24
|
**network_id** | **string** | | [optional] [default to undefined]
|
|
25
|
-
**skills** | **
|
|
25
|
+
**skills** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
26
26
|
**short_term_memory_strategy** | **string** | | [optional] [default to undefined]
|
|
27
27
|
**autonomous** | [**Array<AgentAutonomous>**](AgentAutonomous.md) | | [optional] [default to undefined]
|
|
28
28
|
**telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
|
|
29
29
|
**upstream_id** | **string** | | [optional] [default to undefined]
|
|
30
|
-
**upstream_extra** | **
|
|
30
|
+
**upstream_extra** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
31
31
|
**id** | **string** | Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens | [optional] [default to undefined]
|
|
32
32
|
**owner** | **string** | | [optional] [default to undefined]
|
|
33
33
|
**slug** | **string** | | [optional] [default to undefined]
|
|
34
34
|
**version** | **string** | | [optional] [default to undefined]
|
|
35
|
-
**statistics** | **
|
|
36
|
-
**assets** | **
|
|
35
|
+
**statistics** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
36
|
+
**assets** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
37
37
|
**account_snapshot** | [**CreditAccount**](CreditAccount.md) | | [optional] [default to undefined]
|
|
38
|
-
**extra** | **
|
|
38
|
+
**extra** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
39
39
|
**deployed_at** | **string** | | [optional] [default to undefined]
|
|
40
40
|
**public_info_updated_at** | **string** | | [optional] [default to undefined]
|
|
41
41
|
**created_at** | **string** | Timestamp when the agent was created, will ignore when importing | [optional] [default to undefined]
|
package/docs/AgentUpdate.md
CHANGED
|
@@ -20,15 +20,15 @@ Name | Type | Description | Notes
|
|
|
20
20
|
**wallet_provider** | **string** | | [optional] [default to undefined]
|
|
21
21
|
**readonly_wallet_address** | **string** | | [optional] [default to undefined]
|
|
22
22
|
**network_id** | **string** | | [optional] [default to undefined]
|
|
23
|
-
**skills** | **
|
|
23
|
+
**skills** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
24
24
|
**short_term_memory_strategy** | **string** | | [optional] [default to undefined]
|
|
25
25
|
**autonomous** | [**Array<AgentAutonomous>**](AgentAutonomous.md) | | [optional] [default to undefined]
|
|
26
26
|
**telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
|
|
27
27
|
**telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
28
|
-
**telegram_config** | **
|
|
28
|
+
**telegram_config** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
29
29
|
**xmtp_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
30
30
|
**upstream_id** | **string** | | [optional] [default to undefined]
|
|
31
|
-
**upstream_extra** | **
|
|
31
|
+
**upstream_extra** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
32
32
|
|
|
33
33
|
## Example
|
|
34
34
|
|
package/docs/AgentUserInput.md
CHANGED
|
@@ -20,12 +20,12 @@ Name | Type | Description | Notes
|
|
|
20
20
|
**wallet_provider** | **string** | | [optional] [default to undefined]
|
|
21
21
|
**readonly_wallet_address** | **string** | | [optional] [default to undefined]
|
|
22
22
|
**network_id** | **string** | | [optional] [default to undefined]
|
|
23
|
-
**skills** | **
|
|
23
|
+
**skills** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
24
24
|
**short_term_memory_strategy** | **string** | | [optional] [default to undefined]
|
|
25
25
|
**autonomous** | [**Array<AgentAutonomous>**](AgentAutonomous.md) | | [optional] [default to undefined]
|
|
26
26
|
**telegram_entrypoint_enabled** | **boolean** | | [optional] [default to undefined]
|
|
27
27
|
**telegram_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
28
|
-
**telegram_config** | **
|
|
28
|
+
**telegram_config** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
29
29
|
**xmtp_entrypoint_prompt** | **string** | | [optional] [default to undefined]
|
|
30
30
|
|
|
31
31
|
## Example
|
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**type** | [**ChatMessageAttachmentType**](ChatMessageAttachmentType.md) | Type of the attachment (link, image, or file) | [default to undefined]
|
|
10
10
|
**url** | **string** | | [default to undefined]
|
|
11
|
-
**json** | **
|
|
11
|
+
**json** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**id** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**name** | **string** | | [default to undefined]
|
|
11
|
-
**parameters** | **
|
|
11
|
+
**parameters** | **{ [key: string]: any; }** | | [default to undefined]
|
|
12
12
|
**success** | **boolean** | | [default to undefined]
|
|
13
13
|
**response** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**error_message** | **string** | | [optional] [default to undefined]
|
package/docs/DraftApi.md
CHANGED
|
@@ -121,7 +121,7 @@ void (empty response body)
|
|
|
121
121
|
# **deployAgentFromDraft**
|
|
122
122
|
> Agent deployAgentFromDraft(agentDeployRequest)
|
|
123
123
|
|
|
124
|
-
Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration.
|
|
124
|
+
Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. When provided, the upstream_id is set to the tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
|
|
125
125
|
|
|
126
126
|
### Example
|
|
127
127
|
|
|
@@ -11,9 +11,9 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**created_at** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**last_activity** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**message_count** | **number** | Number of messages in conversation | [default to undefined]
|
|
14
|
-
**last_message** | **
|
|
15
|
-
**first_message** | **
|
|
16
|
-
**conversation_history** | **Array<
|
|
14
|
+
**last_message** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
15
|
+
**first_message** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
16
|
+
**conversation_history** | **Array<{ [key: string]: any; }>** | Full conversation history | [default to undefined]
|
|
17
17
|
|
|
18
18
|
## Example
|
|
19
19
|
|
|
@@ -6,7 +6,7 @@ Response model for generations list.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**projects** | **Array<
|
|
9
|
+
**projects** | **Array<{ [key: string]: any; }>** | List of recent projects with their conversation history | [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
@@ -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-10-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-13T13:30:53.241+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-13T13:30:53.241+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
|
@@ -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-10-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-13T13:30:53.241+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-13T13:30:53.241+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
package/docs/User.md
CHANGED
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**x_username** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**github_username** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**telegram_username** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**extra** | **
|
|
14
|
+
**extra** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
15
15
|
**id** | **string** | Unique identifier for the user | [default to undefined]
|
|
16
16
|
**created_at** | **string** | Timestamp when this user was created | [default to undefined]
|
|
17
17
|
**updated_at** | **string** | Timestamp when this user was last updated | [default to undefined]
|
package/index.ts
CHANGED