@crestal/nation-sdk 0.8.93 → 0.8.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +6 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +8 -5
- package/api.ts +233 -155
- package/base.ts +1 -1
- package/common.ts +16 -3
- package/configuration.ts +1 -1
- package/dist/api.d.ts +148 -68
- package/dist/api.js +122 -21
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +7 -1
- package/dist/common.js +18 -4
- 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 +15 -5
- package/docs/AgentApi.md +2 -2
- package/docs/{AgentAutonomous.md → AgentAutonomousInput.md} +9 -3
- package/docs/AgentAutonomousOutput.md +39 -0
- package/docs/AgentAutonomousStatus.md +13 -0
- package/docs/AgentDraft.md +7 -5
- package/docs/AgentResponse.md +15 -5
- package/docs/AgentUpdate.md +13 -5
- package/docs/AgentUserInput.md +7 -5
- package/docs/AgentVisibility.md +13 -0
- package/docs/AuthorType.md +6 -4
- package/docs/ChatApi.md +6 -6
- package/docs/{AppManagerRouterChatMessagesResponse.md → ChatMessagesResponse.md} +3 -3
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/{ValidationErrorLocInner.md → LocationInner.md} +3 -3
- package/docs/ManagerApi.md +2 -2
- package/docs/User.md +2 -0
- package/docs/ValidationError.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/base.ts
CHANGED
package/common.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.8.
|
|
7
|
+
* The version of the OpenAPI document: 0.8.97
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -66,7 +66,7 @@ export const setOAuthToObject = async function (object: any, name: string, scope
|
|
|
66
66
|
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
|
67
67
|
if (parameter == null) return;
|
|
68
68
|
if (typeof parameter === "object") {
|
|
69
|
-
if (Array.isArray(parameter)) {
|
|
69
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
70
70
|
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
71
71
|
}
|
|
72
72
|
else {
|
|
@@ -91,13 +91,26 @@ export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
|
91
91
|
url.search = searchParams.toString();
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
/**
|
|
95
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
96
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
97
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
98
|
+
*/
|
|
99
|
+
export const replaceWithSerializableTypeIfNeeded = function(key: any, value: any) {
|
|
100
|
+
if (value instanceof Set) {
|
|
101
|
+
return Array.from(value);
|
|
102
|
+
} else {
|
|
103
|
+
return value;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
94
107
|
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
|
|
95
108
|
const nonString = typeof value !== 'string';
|
|
96
109
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
97
110
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
98
111
|
: nonString;
|
|
99
112
|
return needsSerialization
|
|
100
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
113
|
+
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
101
114
|
: (value || "");
|
|
102
115
|
}
|
|
103
116
|
|
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.8.
|
|
5
|
+
* The version of the OpenAPI document: 0.8.97
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -43,14 +43,15 @@ export interface Agent {
|
|
|
43
43
|
'temperature'?: number | null;
|
|
44
44
|
'frequency_penalty'?: number | null;
|
|
45
45
|
'presence_penalty'?: number | null;
|
|
46
|
+
'short_term_memory_strategy'?: AgentShortTermMemoryStrategyEnum | null;
|
|
46
47
|
'wallet_provider'?: AgentWalletProviderEnum | null;
|
|
47
|
-
'readonly_wallet_address'?: string | null;
|
|
48
48
|
'network_id'?: AgentNetworkIdEnum | null;
|
|
49
49
|
'skills'?: {
|
|
50
50
|
[key: string]: any;
|
|
51
51
|
} | null;
|
|
52
|
-
'
|
|
53
|
-
'
|
|
52
|
+
'readonly_wallet_address'?: string | null;
|
|
53
|
+
'weekly_spending_limit'?: number | null;
|
|
54
|
+
'autonomous'?: Array<AgentAutonomousOutput> | null;
|
|
54
55
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
55
56
|
'telegram_entrypoint_prompt'?: string | null;
|
|
56
57
|
'telegram_config'?: {
|
|
@@ -65,12 +66,16 @@ export interface Agent {
|
|
|
65
66
|
'upstream_extra'?: {
|
|
66
67
|
[key: string]: any;
|
|
67
68
|
} | null;
|
|
69
|
+
'extra_prompt'?: string | null;
|
|
70
|
+
'visibility'?: AgentVisibility | null;
|
|
71
|
+
'archived_at'?: string | null;
|
|
68
72
|
/**
|
|
69
73
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
70
74
|
*/
|
|
71
75
|
'id'?: string;
|
|
72
76
|
'owner'?: string | null;
|
|
73
77
|
'team_id'?: string | null;
|
|
78
|
+
'template_id'?: string | null;
|
|
74
79
|
'slug'?: string | null;
|
|
75
80
|
'version'?: string | null;
|
|
76
81
|
'statistics'?: {
|
|
@@ -94,9 +99,16 @@ export interface Agent {
|
|
|
94
99
|
*/
|
|
95
100
|
'updated_at'?: string;
|
|
96
101
|
}
|
|
102
|
+
export declare const AgentShortTermMemoryStrategyEnum: {
|
|
103
|
+
readonly Trim: "trim";
|
|
104
|
+
readonly Summarize: "summarize";
|
|
105
|
+
};
|
|
106
|
+
export type AgentShortTermMemoryStrategyEnum = typeof AgentShortTermMemoryStrategyEnum[keyof typeof AgentShortTermMemoryStrategyEnum];
|
|
97
107
|
export declare const AgentWalletProviderEnum: {
|
|
98
108
|
readonly Cdp: "cdp";
|
|
99
109
|
readonly Readonly: "readonly";
|
|
110
|
+
readonly Safe: "safe";
|
|
111
|
+
readonly Privy: "privy";
|
|
100
112
|
readonly None: "none";
|
|
101
113
|
};
|
|
102
114
|
export type AgentWalletProviderEnum = typeof AgentWalletProviderEnum[keyof typeof AgentWalletProviderEnum];
|
|
@@ -106,14 +118,11 @@ export declare const AgentNetworkIdEnum: {
|
|
|
106
118
|
readonly PolygonMainnet: "polygon-mainnet";
|
|
107
119
|
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
108
120
|
readonly OptimismMainnet: "optimism-mainnet";
|
|
121
|
+
readonly BnbMainnet: "bnb-mainnet";
|
|
109
122
|
readonly Solana: "solana";
|
|
123
|
+
readonly BaseSepolia: "base-sepolia";
|
|
110
124
|
};
|
|
111
125
|
export type AgentNetworkIdEnum = typeof AgentNetworkIdEnum[keyof typeof AgentNetworkIdEnum];
|
|
112
|
-
export declare const AgentShortTermMemoryStrategyEnum: {
|
|
113
|
-
readonly Trim: "trim";
|
|
114
|
-
readonly Summarize: "summarize";
|
|
115
|
-
};
|
|
116
|
-
export type AgentShortTermMemoryStrategyEnum = typeof AgentShortTermMemoryStrategyEnum[keyof typeof AgentShortTermMemoryStrategyEnum];
|
|
117
126
|
/**
|
|
118
127
|
* Response model for agent API key generation.
|
|
119
128
|
*/
|
|
@@ -168,7 +177,7 @@ export interface AgentAssetsResponse {
|
|
|
168
177
|
/**
|
|
169
178
|
* Autonomous agent configuration.
|
|
170
179
|
*/
|
|
171
|
-
export interface
|
|
180
|
+
export interface AgentAutonomousInput {
|
|
172
181
|
/**
|
|
173
182
|
* Unique identifier for the autonomous configuration
|
|
174
183
|
*/
|
|
@@ -182,7 +191,40 @@ export interface AgentAutonomous {
|
|
|
182
191
|
*/
|
|
183
192
|
'prompt': string;
|
|
184
193
|
'enabled'?: boolean | null;
|
|
194
|
+
'has_memory'?: boolean | null;
|
|
195
|
+
'status'?: AgentAutonomousStatus | null;
|
|
196
|
+
'next_run_time'?: string | null;
|
|
185
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* Autonomous agent configuration.
|
|
200
|
+
*/
|
|
201
|
+
export interface AgentAutonomousOutput {
|
|
202
|
+
/**
|
|
203
|
+
* Unique identifier for the autonomous configuration
|
|
204
|
+
*/
|
|
205
|
+
'id'?: string;
|
|
206
|
+
'name'?: string | null;
|
|
207
|
+
'description'?: string | null;
|
|
208
|
+
'minutes'?: number | null;
|
|
209
|
+
'cron'?: string | null;
|
|
210
|
+
/**
|
|
211
|
+
* Special prompt used during autonomous operation
|
|
212
|
+
*/
|
|
213
|
+
'prompt': string;
|
|
214
|
+
'enabled'?: boolean | null;
|
|
215
|
+
'has_memory'?: boolean | null;
|
|
216
|
+
'status'?: AgentAutonomousStatus | null;
|
|
217
|
+
'next_run_time'?: string | null;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Autonomous task execution status.
|
|
221
|
+
*/
|
|
222
|
+
export declare const AgentAutonomousStatus: {
|
|
223
|
+
readonly Waiting: "waiting";
|
|
224
|
+
readonly Running: "running";
|
|
225
|
+
readonly Error: "error";
|
|
226
|
+
};
|
|
227
|
+
export type AgentAutonomousStatus = typeof AgentAutonomousStatus[keyof typeof AgentAutonomousStatus];
|
|
186
228
|
/**
|
|
187
229
|
* Request model for agent deployment.
|
|
188
230
|
*/
|
|
@@ -215,14 +257,15 @@ export interface AgentDraft {
|
|
|
215
257
|
'temperature'?: number | null;
|
|
216
258
|
'frequency_penalty'?: number | null;
|
|
217
259
|
'presence_penalty'?: number | null;
|
|
260
|
+
'short_term_memory_strategy'?: AgentDraftShortTermMemoryStrategyEnum | null;
|
|
218
261
|
'wallet_provider'?: AgentDraftWalletProviderEnum | null;
|
|
219
|
-
'readonly_wallet_address'?: string | null;
|
|
220
262
|
'network_id'?: AgentDraftNetworkIdEnum | null;
|
|
221
263
|
'skills'?: {
|
|
222
264
|
[key: string]: any;
|
|
223
265
|
} | null;
|
|
224
|
-
'
|
|
225
|
-
'
|
|
266
|
+
'readonly_wallet_address'?: string | null;
|
|
267
|
+
'weekly_spending_limit'?: number | null;
|
|
268
|
+
'autonomous'?: Array<AgentAutonomousOutput> | null;
|
|
226
269
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
227
270
|
'telegram_entrypoint_prompt'?: string | null;
|
|
228
271
|
'telegram_config'?: {
|
|
@@ -256,9 +299,16 @@ export interface AgentDraft {
|
|
|
256
299
|
*/
|
|
257
300
|
'updated_at'?: string;
|
|
258
301
|
}
|
|
302
|
+
export declare const AgentDraftShortTermMemoryStrategyEnum: {
|
|
303
|
+
readonly Trim: "trim";
|
|
304
|
+
readonly Summarize: "summarize";
|
|
305
|
+
};
|
|
306
|
+
export type AgentDraftShortTermMemoryStrategyEnum = typeof AgentDraftShortTermMemoryStrategyEnum[keyof typeof AgentDraftShortTermMemoryStrategyEnum];
|
|
259
307
|
export declare const AgentDraftWalletProviderEnum: {
|
|
260
308
|
readonly Cdp: "cdp";
|
|
261
309
|
readonly Readonly: "readonly";
|
|
310
|
+
readonly Safe: "safe";
|
|
311
|
+
readonly Privy: "privy";
|
|
262
312
|
readonly None: "none";
|
|
263
313
|
};
|
|
264
314
|
export type AgentDraftWalletProviderEnum = typeof AgentDraftWalletProviderEnum[keyof typeof AgentDraftWalletProviderEnum];
|
|
@@ -268,14 +318,11 @@ export declare const AgentDraftNetworkIdEnum: {
|
|
|
268
318
|
readonly PolygonMainnet: "polygon-mainnet";
|
|
269
319
|
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
270
320
|
readonly OptimismMainnet: "optimism-mainnet";
|
|
321
|
+
readonly BnbMainnet: "bnb-mainnet";
|
|
271
322
|
readonly Solana: "solana";
|
|
323
|
+
readonly BaseSepolia: "base-sepolia";
|
|
272
324
|
};
|
|
273
325
|
export type AgentDraftNetworkIdEnum = typeof AgentDraftNetworkIdEnum[keyof typeof AgentDraftNetworkIdEnum];
|
|
274
|
-
export declare const AgentDraftShortTermMemoryStrategyEnum: {
|
|
275
|
-
readonly Trim: "trim";
|
|
276
|
-
readonly Summarize: "summarize";
|
|
277
|
-
};
|
|
278
|
-
export type AgentDraftShortTermMemoryStrategyEnum = typeof AgentDraftShortTermMemoryStrategyEnum[keyof typeof AgentDraftShortTermMemoryStrategyEnum];
|
|
279
326
|
/**
|
|
280
327
|
* Agent example configuration.
|
|
281
328
|
*/
|
|
@@ -374,26 +421,31 @@ export interface AgentResponse {
|
|
|
374
421
|
*/
|
|
375
422
|
'model'?: string;
|
|
376
423
|
'presence_penalty'?: number | null;
|
|
424
|
+
'short_term_memory_strategy'?: AgentResponseShortTermMemoryStrategyEnum | null;
|
|
377
425
|
'wallet_provider'?: AgentResponseWalletProviderEnum | null;
|
|
378
|
-
'readonly_wallet_address'?: string | null;
|
|
379
426
|
'network_id'?: AgentResponseNetworkIdEnum | null;
|
|
380
427
|
'skills'?: {
|
|
381
428
|
[key: string]: any;
|
|
382
429
|
} | null;
|
|
383
|
-
'
|
|
384
|
-
'
|
|
430
|
+
'readonly_wallet_address'?: string | null;
|
|
431
|
+
'weekly_spending_limit'?: number | null;
|
|
432
|
+
'autonomous'?: Array<AgentAutonomousOutput> | null;
|
|
385
433
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
386
434
|
'discord_entrypoint_enabled'?: boolean | null;
|
|
387
435
|
'upstream_id'?: string | null;
|
|
388
436
|
'upstream_extra'?: {
|
|
389
437
|
[key: string]: any;
|
|
390
438
|
} | null;
|
|
439
|
+
'extra_prompt'?: string | null;
|
|
440
|
+
'visibility'?: AgentVisibility | null;
|
|
441
|
+
'archived_at'?: string | null;
|
|
391
442
|
/**
|
|
392
443
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
393
444
|
*/
|
|
394
445
|
'id'?: string;
|
|
395
446
|
'owner'?: string | null;
|
|
396
447
|
'team_id'?: string | null;
|
|
448
|
+
'template_id'?: string | null;
|
|
397
449
|
'slug'?: string | null;
|
|
398
450
|
'version'?: string | null;
|
|
399
451
|
'statistics'?: {
|
|
@@ -444,9 +496,16 @@ export interface AgentResponse {
|
|
|
444
496
|
*/
|
|
445
497
|
'accept_image_input_private'?: boolean;
|
|
446
498
|
}
|
|
499
|
+
export declare const AgentResponseShortTermMemoryStrategyEnum: {
|
|
500
|
+
readonly Trim: "trim";
|
|
501
|
+
readonly Summarize: "summarize";
|
|
502
|
+
};
|
|
503
|
+
export type AgentResponseShortTermMemoryStrategyEnum = typeof AgentResponseShortTermMemoryStrategyEnum[keyof typeof AgentResponseShortTermMemoryStrategyEnum];
|
|
447
504
|
export declare const AgentResponseWalletProviderEnum: {
|
|
448
505
|
readonly Cdp: "cdp";
|
|
449
506
|
readonly Readonly: "readonly";
|
|
507
|
+
readonly Safe: "safe";
|
|
508
|
+
readonly Privy: "privy";
|
|
450
509
|
readonly None: "none";
|
|
451
510
|
};
|
|
452
511
|
export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProviderEnum[keyof typeof AgentResponseWalletProviderEnum];
|
|
@@ -456,14 +515,11 @@ export declare const AgentResponseNetworkIdEnum: {
|
|
|
456
515
|
readonly PolygonMainnet: "polygon-mainnet";
|
|
457
516
|
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
458
517
|
readonly OptimismMainnet: "optimism-mainnet";
|
|
518
|
+
readonly BnbMainnet: "bnb-mainnet";
|
|
459
519
|
readonly Solana: "solana";
|
|
520
|
+
readonly BaseSepolia: "base-sepolia";
|
|
460
521
|
};
|
|
461
522
|
export type AgentResponseNetworkIdEnum = typeof AgentResponseNetworkIdEnum[keyof typeof AgentResponseNetworkIdEnum];
|
|
462
|
-
export declare const AgentResponseShortTermMemoryStrategyEnum: {
|
|
463
|
-
readonly Trim: "trim";
|
|
464
|
-
readonly Summarize: "summarize";
|
|
465
|
-
};
|
|
466
|
-
export type AgentResponseShortTermMemoryStrategyEnum = typeof AgentResponseShortTermMemoryStrategyEnum[keyof typeof AgentResponseShortTermMemoryStrategyEnum];
|
|
467
523
|
/**
|
|
468
524
|
* Sort options for agents list.
|
|
469
525
|
*/
|
|
@@ -569,14 +625,15 @@ export interface AgentUpdate {
|
|
|
569
625
|
'temperature'?: number | null;
|
|
570
626
|
'frequency_penalty'?: number | null;
|
|
571
627
|
'presence_penalty'?: number | null;
|
|
628
|
+
'short_term_memory_strategy'?: AgentUpdateShortTermMemoryStrategyEnum | null;
|
|
572
629
|
'wallet_provider'?: AgentUpdateWalletProviderEnum | null;
|
|
573
|
-
'readonly_wallet_address'?: string | null;
|
|
574
630
|
'network_id'?: AgentUpdateNetworkIdEnum | null;
|
|
575
631
|
'skills'?: {
|
|
576
632
|
[key: string]: any;
|
|
577
633
|
} | null;
|
|
578
|
-
'
|
|
579
|
-
'
|
|
634
|
+
'readonly_wallet_address'?: string | null;
|
|
635
|
+
'weekly_spending_limit'?: number | null;
|
|
636
|
+
'autonomous'?: Array<AgentAutonomousInput> | null;
|
|
580
637
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
581
638
|
'telegram_entrypoint_prompt'?: string | null;
|
|
582
639
|
'telegram_config'?: {
|
|
@@ -591,10 +648,20 @@ export interface AgentUpdate {
|
|
|
591
648
|
'upstream_extra'?: {
|
|
592
649
|
[key: string]: any;
|
|
593
650
|
} | null;
|
|
651
|
+
'extra_prompt'?: string | null;
|
|
652
|
+
'visibility'?: AgentVisibility | null;
|
|
653
|
+
'archived_at'?: string | null;
|
|
594
654
|
}
|
|
655
|
+
export declare const AgentUpdateShortTermMemoryStrategyEnum: {
|
|
656
|
+
readonly Trim: "trim";
|
|
657
|
+
readonly Summarize: "summarize";
|
|
658
|
+
};
|
|
659
|
+
export type AgentUpdateShortTermMemoryStrategyEnum = typeof AgentUpdateShortTermMemoryStrategyEnum[keyof typeof AgentUpdateShortTermMemoryStrategyEnum];
|
|
595
660
|
export declare const AgentUpdateWalletProviderEnum: {
|
|
596
661
|
readonly Cdp: "cdp";
|
|
597
662
|
readonly Readonly: "readonly";
|
|
663
|
+
readonly Safe: "safe";
|
|
664
|
+
readonly Privy: "privy";
|
|
598
665
|
readonly None: "none";
|
|
599
666
|
};
|
|
600
667
|
export type AgentUpdateWalletProviderEnum = typeof AgentUpdateWalletProviderEnum[keyof typeof AgentUpdateWalletProviderEnum];
|
|
@@ -604,14 +671,11 @@ export declare const AgentUpdateNetworkIdEnum: {
|
|
|
604
671
|
readonly PolygonMainnet: "polygon-mainnet";
|
|
605
672
|
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
606
673
|
readonly OptimismMainnet: "optimism-mainnet";
|
|
674
|
+
readonly BnbMainnet: "bnb-mainnet";
|
|
607
675
|
readonly Solana: "solana";
|
|
676
|
+
readonly BaseSepolia: "base-sepolia";
|
|
608
677
|
};
|
|
609
678
|
export type AgentUpdateNetworkIdEnum = typeof AgentUpdateNetworkIdEnum[keyof typeof AgentUpdateNetworkIdEnum];
|
|
610
|
-
export declare const AgentUpdateShortTermMemoryStrategyEnum: {
|
|
611
|
-
readonly Trim: "trim";
|
|
612
|
-
readonly Summarize: "summarize";
|
|
613
|
-
};
|
|
614
|
-
export type AgentUpdateShortTermMemoryStrategyEnum = typeof AgentUpdateShortTermMemoryStrategyEnum[keyof typeof AgentUpdateShortTermMemoryStrategyEnum];
|
|
615
679
|
/**
|
|
616
680
|
* Agent update model.
|
|
617
681
|
*/
|
|
@@ -630,14 +694,15 @@ export interface AgentUserInput {
|
|
|
630
694
|
'temperature'?: number | null;
|
|
631
695
|
'frequency_penalty'?: number | null;
|
|
632
696
|
'presence_penalty'?: number | null;
|
|
697
|
+
'short_term_memory_strategy'?: AgentUserInputShortTermMemoryStrategyEnum | null;
|
|
633
698
|
'wallet_provider'?: AgentUserInputWalletProviderEnum | null;
|
|
634
|
-
'readonly_wallet_address'?: string | null;
|
|
635
699
|
'network_id'?: AgentUserInputNetworkIdEnum | null;
|
|
636
700
|
'skills'?: {
|
|
637
701
|
[key: string]: any;
|
|
638
702
|
} | null;
|
|
639
|
-
'
|
|
640
|
-
'
|
|
703
|
+
'readonly_wallet_address'?: string | null;
|
|
704
|
+
'weekly_spending_limit'?: number | null;
|
|
705
|
+
'autonomous'?: Array<AgentAutonomousInput> | null;
|
|
641
706
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
642
707
|
'telegram_entrypoint_prompt'?: string | null;
|
|
643
708
|
'telegram_config'?: {
|
|
@@ -649,9 +714,16 @@ export interface AgentUserInput {
|
|
|
649
714
|
} | null;
|
|
650
715
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
651
716
|
}
|
|
717
|
+
export declare const AgentUserInputShortTermMemoryStrategyEnum: {
|
|
718
|
+
readonly Trim: "trim";
|
|
719
|
+
readonly Summarize: "summarize";
|
|
720
|
+
};
|
|
721
|
+
export type AgentUserInputShortTermMemoryStrategyEnum = typeof AgentUserInputShortTermMemoryStrategyEnum[keyof typeof AgentUserInputShortTermMemoryStrategyEnum];
|
|
652
722
|
export declare const AgentUserInputWalletProviderEnum: {
|
|
653
723
|
readonly Cdp: "cdp";
|
|
654
724
|
readonly Readonly: "readonly";
|
|
725
|
+
readonly Safe: "safe";
|
|
726
|
+
readonly Privy: "privy";
|
|
655
727
|
readonly None: "none";
|
|
656
728
|
};
|
|
657
729
|
export type AgentUserInputWalletProviderEnum = typeof AgentUserInputWalletProviderEnum[keyof typeof AgentUserInputWalletProviderEnum];
|
|
@@ -661,22 +733,20 @@ export declare const AgentUserInputNetworkIdEnum: {
|
|
|
661
733
|
readonly PolygonMainnet: "polygon-mainnet";
|
|
662
734
|
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
663
735
|
readonly OptimismMainnet: "optimism-mainnet";
|
|
736
|
+
readonly BnbMainnet: "bnb-mainnet";
|
|
664
737
|
readonly Solana: "solana";
|
|
738
|
+
readonly BaseSepolia: "base-sepolia";
|
|
665
739
|
};
|
|
666
740
|
export type AgentUserInputNetworkIdEnum = typeof AgentUserInputNetworkIdEnum[keyof typeof AgentUserInputNetworkIdEnum];
|
|
667
|
-
export declare const AgentUserInputShortTermMemoryStrategyEnum: {
|
|
668
|
-
readonly Trim: "trim";
|
|
669
|
-
readonly Summarize: "summarize";
|
|
670
|
-
};
|
|
671
|
-
export type AgentUserInputShortTermMemoryStrategyEnum = typeof AgentUserInputShortTermMemoryStrategyEnum[keyof typeof AgentUserInputShortTermMemoryStrategyEnum];
|
|
672
741
|
/**
|
|
673
|
-
*
|
|
742
|
+
* Agent visibility levels with hierarchical ordering. Higher values indicate broader visibility: - PRIVATE (0): Only visible to owner - TEAM (10): Visible to team members - PUBLIC (20): Visible to everyone
|
|
674
743
|
*/
|
|
675
|
-
export
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
744
|
+
export declare const AgentVisibility: {
|
|
745
|
+
readonly NUMBER_0: 0;
|
|
746
|
+
readonly NUMBER_10: 10;
|
|
747
|
+
readonly NUMBER_20: 20;
|
|
748
|
+
};
|
|
749
|
+
export type AgentVisibility = typeof AgentVisibility[keyof typeof AgentVisibility];
|
|
680
750
|
/**
|
|
681
751
|
* Model for individual asset with symbol and balance.
|
|
682
752
|
*/
|
|
@@ -695,16 +765,17 @@ export interface Asset {
|
|
|
695
765
|
*/
|
|
696
766
|
export declare const AuthorType: {
|
|
697
767
|
readonly Agent: "agent";
|
|
698
|
-
readonly Trigger: "trigger";
|
|
699
768
|
readonly Skill: "skill";
|
|
769
|
+
readonly System: "system";
|
|
770
|
+
readonly Trigger: "trigger";
|
|
700
771
|
readonly Telegram: "telegram";
|
|
701
772
|
readonly Twitter: "twitter";
|
|
702
773
|
readonly Discord: "discord";
|
|
703
774
|
readonly Web: "web";
|
|
704
|
-
readonly System: "system";
|
|
705
775
|
readonly Api: "api";
|
|
706
776
|
readonly Xmtp: "xmtp";
|
|
707
777
|
readonly X402: "x402";
|
|
778
|
+
readonly Internal: "internal";
|
|
708
779
|
};
|
|
709
780
|
export type AuthorType = typeof AuthorType[keyof typeof AuthorType];
|
|
710
781
|
/**
|
|
@@ -853,6 +924,14 @@ export interface ChatMessageSkillCall {
|
|
|
853
924
|
'credit_event_id'?: string;
|
|
854
925
|
'credit_cost'?: string;
|
|
855
926
|
}
|
|
927
|
+
/**
|
|
928
|
+
* Response model for chat messages with pagination.
|
|
929
|
+
*/
|
|
930
|
+
export interface ChatMessagesResponse {
|
|
931
|
+
'data': Array<ChatMessage>;
|
|
932
|
+
'has_more'?: boolean;
|
|
933
|
+
'next_cursor'?: string | null;
|
|
934
|
+
}
|
|
856
935
|
/**
|
|
857
936
|
* Request model for updating a chat thread.
|
|
858
937
|
*/
|
|
@@ -1295,6 +1374,8 @@ export declare const LLMProvider: {
|
|
|
1295
1374
|
readonly Ollama: "ollama";
|
|
1296
1375
|
};
|
|
1297
1376
|
export type LLMProvider = typeof LLMProvider[keyof typeof LLMProvider];
|
|
1377
|
+
export interface LocationInner {
|
|
1378
|
+
}
|
|
1298
1379
|
/**
|
|
1299
1380
|
* Request payload for manager agent messages.
|
|
1300
1381
|
*/
|
|
@@ -1491,6 +1572,7 @@ export interface User {
|
|
|
1491
1572
|
} | null;
|
|
1492
1573
|
'evm_wallet_address'?: string | null;
|
|
1493
1574
|
'solana_wallet_address'?: string | null;
|
|
1575
|
+
'server_wallet_address'?: string | null;
|
|
1494
1576
|
'linked_accounts'?: {
|
|
1495
1577
|
[key: string]: any;
|
|
1496
1578
|
} | null;
|
|
@@ -1526,12 +1608,10 @@ export interface UserAgentListResponse {
|
|
|
1526
1608
|
'next_cursor'?: string | null;
|
|
1527
1609
|
}
|
|
1528
1610
|
export interface ValidationError {
|
|
1529
|
-
'loc': Array<
|
|
1611
|
+
'loc': Array<LocationInner>;
|
|
1530
1612
|
'msg': string;
|
|
1531
1613
|
'type': string;
|
|
1532
1614
|
}
|
|
1533
|
-
export interface ValidationErrorLocInner {
|
|
1534
|
-
}
|
|
1535
1615
|
/**
|
|
1536
1616
|
* Response payload for x402 top-up requests.
|
|
1537
1617
|
*/
|
|
@@ -1783,7 +1863,7 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
1783
1863
|
* @param {*} [options] Override http request option.
|
|
1784
1864
|
* @throws {RequiredError}
|
|
1785
1865
|
*/
|
|
1786
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1866
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>>;
|
|
1787
1867
|
/**
|
|
1788
1868
|
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
1789
1869
|
* @summary Import Agent
|
|
@@ -1935,7 +2015,7 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
1935
2015
|
* @param {*} [options] Override http request option.
|
|
1936
2016
|
* @throws {RequiredError}
|
|
1937
2017
|
*/
|
|
1938
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2018
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse>;
|
|
1939
2019
|
/**
|
|
1940
2020
|
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
1941
2021
|
* @summary Import Agent
|
|
@@ -2087,7 +2167,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
2087
2167
|
* @param {*} [options] Override http request option.
|
|
2088
2168
|
* @throws {RequiredError}
|
|
2089
2169
|
*/
|
|
2090
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
2170
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any, {}>>;
|
|
2091
2171
|
/**
|
|
2092
2172
|
* Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
|
|
2093
2173
|
* @summary Import Agent
|
|
@@ -2338,7 +2418,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
|
|
|
2338
2418
|
* @param {*} [options] Override http request option.
|
|
2339
2419
|
* @throws {RequiredError}
|
|
2340
2420
|
*/
|
|
2341
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2421
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>>;
|
|
2342
2422
|
/**
|
|
2343
2423
|
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
2344
2424
|
* @summary List chat threads for an agent
|
|
@@ -2357,7 +2437,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
|
|
|
2357
2437
|
* @param {*} [options] Override http request option.
|
|
2358
2438
|
* @throws {RequiredError}
|
|
2359
2439
|
*/
|
|
2360
|
-
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2440
|
+
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>>;
|
|
2361
2441
|
/**
|
|
2362
2442
|
* Retrieve the message history for the draft chat session of an agent with cursor-based pagination.
|
|
2363
2443
|
* @summary List messages in an agent draft session
|
|
@@ -2367,7 +2447,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
|
|
|
2367
2447
|
* @param {*} [options] Override http request option.
|
|
2368
2448
|
* @throws {RequiredError}
|
|
2369
2449
|
*/
|
|
2370
|
-
listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
2450
|
+
listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>>;
|
|
2371
2451
|
/**
|
|
2372
2452
|
* Retry sending the last message in a specific chat thread. If the last message is from an agent/system, returns all messages after the last user message. If the last message is from a user, generates a new agent response. Only works with non-streaming mode.
|
|
2373
2453
|
* @summary Retry a message in a chat thread
|
|
@@ -2463,7 +2543,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2463
2543
|
* @param {*} [options] Override http request option.
|
|
2464
2544
|
* @throws {RequiredError}
|
|
2465
2545
|
*/
|
|
2466
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2546
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse>;
|
|
2467
2547
|
/**
|
|
2468
2548
|
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
2469
2549
|
* @summary List chat threads for an agent
|
|
@@ -2482,7 +2562,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2482
2562
|
* @param {*} [options] Override http request option.
|
|
2483
2563
|
* @throws {RequiredError}
|
|
2484
2564
|
*/
|
|
2485
|
-
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2565
|
+
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse>;
|
|
2486
2566
|
/**
|
|
2487
2567
|
* Retrieve the message history for the draft chat session of an agent with cursor-based pagination.
|
|
2488
2568
|
* @summary List messages in an agent draft session
|
|
@@ -2492,7 +2572,7 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2492
2572
|
* @param {*} [options] Override http request option.
|
|
2493
2573
|
* @throws {RequiredError}
|
|
2494
2574
|
*/
|
|
2495
|
-
listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
2575
|
+
listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse>;
|
|
2496
2576
|
/**
|
|
2497
2577
|
* Retry sending the last message in a specific chat thread. If the last message is from an agent/system, returns all messages after the last user message. If the last message is from a user, generates a new agent response. Only works with non-streaming mode.
|
|
2498
2578
|
* @summary Retry a message in a chat thread
|
|
@@ -2588,7 +2668,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2588
2668
|
* @param {*} [options] Override http request option.
|
|
2589
2669
|
* @throws {RequiredError}
|
|
2590
2670
|
*/
|
|
2591
|
-
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
2671
|
+
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any, {}>>;
|
|
2592
2672
|
/**
|
|
2593
2673
|
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
2594
2674
|
* @summary List chat threads for an agent
|
|
@@ -2607,7 +2687,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2607
2687
|
* @param {*} [options] Override http request option.
|
|
2608
2688
|
* @throws {RequiredError}
|
|
2609
2689
|
*/
|
|
2610
|
-
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
2690
|
+
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any, {}>>;
|
|
2611
2691
|
/**
|
|
2612
2692
|
* Retrieve the message history for the draft chat session of an agent with cursor-based pagination.
|
|
2613
2693
|
* @summary List messages in an agent draft session
|
|
@@ -2617,7 +2697,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2617
2697
|
* @param {*} [options] Override http request option.
|
|
2618
2698
|
* @throws {RequiredError}
|
|
2619
2699
|
*/
|
|
2620
|
-
listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
2700
|
+
listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any, {}>>;
|
|
2621
2701
|
/**
|
|
2622
2702
|
* Retry sending the last message in a specific chat thread. If the last message is from an agent/system, returns all messages after the last user message. If the last message is from a user, generates a new agent response. Only works with non-streaming mode.
|
|
2623
2703
|
* @summary Retry a message in a chat thread
|
|
@@ -3270,7 +3350,7 @@ export declare const ManagerApiFp: (configuration?: Configuration) => {
|
|
|
3270
3350
|
* @param {*} [options] Override http request option.
|
|
3271
3351
|
* @throws {RequiredError}
|
|
3272
3352
|
*/
|
|
3273
|
-
getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3353
|
+
getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatMessagesResponse>>;
|
|
3274
3354
|
/**
|
|
3275
3355
|
* Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
3276
3356
|
* @summary Chat with Agent Manager
|
|
@@ -3294,7 +3374,7 @@ export declare const ManagerApiFactory: (configuration?: Configuration, basePath
|
|
|
3294
3374
|
* @param {*} [options] Override http request option.
|
|
3295
3375
|
* @throws {RequiredError}
|
|
3296
3376
|
*/
|
|
3297
|
-
getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3377
|
+
getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessagesResponse>;
|
|
3298
3378
|
/**
|
|
3299
3379
|
* Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
3300
3380
|
* @summary Chat with Agent Manager
|
|
@@ -3318,7 +3398,7 @@ export declare class ManagerApi extends BaseAPI {
|
|
|
3318
3398
|
* @param {*} [options] Override http request option.
|
|
3319
3399
|
* @throws {RequiredError}
|
|
3320
3400
|
*/
|
|
3321
|
-
getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
3401
|
+
getManagerMessages(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any, {}>>;
|
|
3322
3402
|
/**
|
|
3323
3403
|
* Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
3324
3404
|
* @summary Chat with Agent Manager
|