@crestal/nation-sdk 0.6.29 → 0.6.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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.6.29
7
+ * The version of the OpenAPI document: 0.6.30
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -24,815 +24,679 @@ import type { RequestArgs } from './base';
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
26
  /**
27
- * Response model for agent API key generation.
28
- * @export
29
- * @interface AgentApiKeyResponse
30
- */
31
- export interface AgentApiKeyResponse {
32
- /**
33
- * The private API key for the agent (sk-)
34
- * @type {string}
35
- * @memberof AgentApiKeyResponse
36
- */
37
- 'api_key': string;
38
- /**
39
- * The public API key for the agent (pk-)
40
- * @type {string}
41
- * @memberof AgentApiKeyResponse
42
- */
43
- 'api_key_public': string;
44
- /**
45
- * The base URL for the API
46
- * @type {string}
47
- * @memberof AgentApiKeyResponse
48
- */
49
- 'base_url': string;
50
- /**
51
- * API documentation URL
52
- * @type {string}
53
- * @memberof AgentApiKeyResponse
54
- */
55
- 'api_doc': string;
56
- /**
57
- * OpenAPI JSON URL for AI integration
58
- * @type {string}
59
- * @memberof AgentApiKeyResponse
60
- */
61
- 'doc_for_ai': string;
62
- }
63
- /**
64
- * Response model for agent assets.
27
+ * Agent model.
65
28
  * @export
66
- * @interface AgentAssetsResponse
29
+ * @interface Agent
67
30
  */
68
- export interface AgentAssetsResponse {
69
- /**
70
- * ID of the agent
71
- * @type {string}
72
- * @memberof AgentAssetsResponse
73
- */
74
- 'agent_id': string;
31
+ export interface Agent {
75
32
  /**
76
33
  *
77
34
  * @type {string}
78
- * @memberof AgentAssetsResponse
35
+ * @memberof Agent
79
36
  */
80
- 'network_id': string | null;
37
+ 'name': string | null;
81
38
  /**
82
39
  *
83
40
  * @type {string}
84
- * @memberof AgentAssetsResponse
41
+ * @memberof Agent
85
42
  */
86
- 'wallet_address': string | null;
43
+ 'slug'?: string | null;
87
44
  /**
88
45
  *
89
46
  * @type {string}
90
- * @memberof AgentAssetsResponse
47
+ * @memberof Agent
91
48
  */
92
- 'ticker': string | null;
49
+ 'description'?: string | null;
93
50
  /**
94
51
  *
95
52
  * @type {string}
96
- * @memberof AgentAssetsResponse
53
+ * @memberof Agent
97
54
  */
98
- 'token_address': string | null;
55
+ 'external_website'?: string | null;
99
56
  /**
100
57
  *
101
58
  * @type {string}
102
- * @memberof AgentAssetsResponse
103
- */
104
- 'token_pool': string | null;
105
- /**
106
- * Total value locked, set to 0 for this version
107
- * @type {string}
108
- * @memberof AgentAssetsResponse
59
+ * @memberof Agent
109
60
  */
110
- 'tvl'?: string;
111
- /**
112
- * List of assets with symbol and balance
113
- * @type {Array<Asset>}
114
- * @memberof AgentAssetsResponse
115
- */
116
- 'assets': Array<Asset>;
117
- /**
118
- * Credit account information
119
- * @type {CreditAccount}
120
- * @memberof AgentAssetsResponse
121
- */
122
- 'account': CreditAccount;
123
- }
124
- /**
125
- * Autonomous agent configuration.
126
- * @export
127
- * @interface AgentAutonomous
128
- */
129
- export interface AgentAutonomous {
61
+ 'picture'?: string | null;
130
62
  /**
131
- * Unique identifier for the autonomous configuration
63
+ *
132
64
  * @type {string}
133
- * @memberof AgentAutonomous
65
+ * @memberof Agent
134
66
  */
135
- 'id'?: string;
67
+ 'ticker'?: string | null;
136
68
  /**
137
69
  *
138
70
  * @type {string}
139
- * @memberof AgentAutonomous
71
+ * @memberof Agent
140
72
  */
141
- 'name'?: string | null;
73
+ 'token_address'?: string | null;
142
74
  /**
143
75
  *
144
76
  * @type {string}
145
- * @memberof AgentAutonomous
77
+ * @memberof Agent
146
78
  */
147
- 'description'?: string | null;
79
+ 'token_pool'?: string | null;
148
80
  /**
149
81
  *
150
- * @type {number}
151
- * @memberof AgentAutonomous
82
+ * @type {string}
83
+ * @memberof Agent
152
84
  */
153
- 'minutes'?: number | null;
85
+ 'mode'?: AgentModeEnum | null;
154
86
  /**
155
87
  *
156
88
  * @type {string}
157
- * @memberof AgentAutonomous
89
+ * @memberof Agent
158
90
  */
159
- 'cron'?: string | null;
91
+ 'fee_percentage'?: string | null;
160
92
  /**
161
- * Special prompt used during autonomous operation
93
+ *
162
94
  * @type {string}
163
- * @memberof AgentAutonomous
95
+ * @memberof Agent
164
96
  */
165
- 'prompt': string;
97
+ 'purpose': string | null;
166
98
  /**
167
99
  *
168
- * @type {boolean}
169
- * @memberof AgentAutonomous
170
- */
171
- 'enabled'?: boolean | null;
172
- }
173
- /**
174
- * Agent example configuration.
175
- * @export
176
- * @interface AgentExample
177
- */
178
- export interface AgentExample {
179
- /**
180
- * Name of the example
181
100
  * @type {string}
182
- * @memberof AgentExample
101
+ * @memberof Agent
183
102
  */
184
- 'name': string;
103
+ 'personality': string | null;
185
104
  /**
186
- * Description of the example
105
+ *
187
106
  * @type {string}
188
- * @memberof AgentExample
107
+ * @memberof Agent
189
108
  */
190
- 'description': string;
109
+ 'principles': string | null;
191
110
  /**
192
- * Example prompt
111
+ *
193
112
  * @type {string}
194
- * @memberof AgentExample
113
+ * @memberof Agent
195
114
  */
196
- 'prompt': string;
197
- }
198
- /**
199
- * Request model for agent generation.
200
- * @export
201
- * @interface AgentGenerateRequest
202
- */
203
- export interface AgentGenerateRequest {
115
+ 'owner'?: string | null;
204
116
  /**
205
- * Natural language description of the agent\'s desired capabilities
117
+ *
206
118
  * @type {string}
207
- * @memberof AgentGenerateRequest
119
+ * @memberof Agent
208
120
  */
209
- 'prompt': string;
121
+ 'upstream_id'?: string | null;
210
122
  /**
211
123
  *
212
- * @type {AgentInput}
213
- * @memberof AgentGenerateRequest
124
+ * @type {object}
125
+ * @memberof Agent
214
126
  */
215
- 'existing_agent'?: AgentInput | null;
127
+ 'upstream_extra'?: object | null;
216
128
  /**
217
- *
129
+ * AI model identifier to be used by this agent for processing requests.
218
130
  * @type {string}
219
- * @memberof AgentGenerateRequest
131
+ * @memberof Agent
220
132
  */
221
- 'project_id'?: string | null;
133
+ 'model'?: string;
222
134
  /**
223
135
  *
224
- * @type {boolean}
225
- * @memberof AgentGenerateRequest
226
- */
227
- 'deploy'?: boolean | null;
228
- }
229
- /**
230
- * Response model for agent generation.
231
- * @export
232
- * @interface AgentGenerateResponse
233
- */
234
- export interface AgentGenerateResponse {
235
- /**
236
- * The generated agent schema
237
- * @type {object}
238
- * @memberof AgentGenerateResponse
239
- */
240
- 'agent': object;
241
- /**
242
- * Project ID for this conversation session
243
136
  * @type {string}
244
- * @memberof AgentGenerateResponse
137
+ * @memberof Agent
245
138
  */
246
- 'project_id': string;
139
+ 'prompt'?: string | null;
247
140
  /**
248
- * Human-readable summary of the generated agent
141
+ *
249
142
  * @type {string}
250
- * @memberof AgentGenerateResponse
143
+ * @memberof Agent
251
144
  */
252
- 'summary': string;
145
+ 'prompt_append'?: string | null;
253
146
  /**
254
- * Generated tags for the agent as ID objects: [{\'id\': 1}, {\'id\': 2}]
255
- * @type {Array<{ [key: string]: number; }>}
256
- * @memberof AgentGenerateResponse
147
+ *
148
+ * @type {number}
149
+ * @memberof Agent
257
150
  */
258
- 'tags'?: Array<{ [key: string]: number; }>;
151
+ 'temperature'?: number | null;
259
152
  /**
260
153
  *
261
- * @type {Array<object>}
262
- * @memberof AgentGenerateResponse
154
+ * @type {number}
155
+ * @memberof Agent
263
156
  */
264
- 'autonomous_tasks'?: Array<object> | null;
157
+ 'frequency_penalty'?: number | null;
265
158
  /**
266
159
  *
267
- * @type {Array<string>}
268
- * @memberof AgentGenerateResponse
160
+ * @type {number}
161
+ * @memberof Agent
269
162
  */
270
- 'activated_skills'?: Array<string> | null;
271
- }
272
- /**
273
- * Agent model.
274
- * @export
275
- * @interface AgentInput
276
- */
277
- export interface AgentInput {
163
+ 'presence_penalty'?: number | null;
278
164
  /**
279
165
  *
280
166
  * @type {string}
281
- * @memberof AgentInput
167
+ * @memberof Agent
282
168
  */
283
- 'name': string | null;
169
+ 'short_term_memory_strategy'?: AgentShortTermMemoryStrategyEnum | null;
284
170
  /**
285
171
  *
286
- * @type {string}
287
- * @memberof AgentInput
172
+ * @type {Array<AgentAutonomous>}
173
+ * @memberof Agent
288
174
  */
289
- 'slug'?: string | null;
175
+ 'autonomous'?: Array<AgentAutonomous> | null;
290
176
  /**
291
177
  *
292
178
  * @type {string}
293
- * @memberof AgentInput
179
+ * @memberof Agent
294
180
  */
295
- 'description'?: string | null;
181
+ 'example_intro'?: string | null;
296
182
  /**
297
183
  *
298
- * @type {string}
299
- * @memberof AgentInput
184
+ * @type {Array<AgentExample>}
185
+ * @memberof Agent
300
186
  */
301
- 'external_website'?: string | null;
187
+ 'examples'?: Array<AgentExample> | null;
302
188
  /**
303
189
  *
304
- * @type {string}
305
- * @memberof AgentInput
190
+ * @type {object}
191
+ * @memberof Agent
306
192
  */
307
- 'picture'?: string | null;
193
+ 'skills'?: object | null;
308
194
  /**
309
195
  *
310
196
  * @type {string}
311
- * @memberof AgentInput
197
+ * @memberof Agent
312
198
  */
313
- 'ticker'?: string | null;
199
+ 'wallet_provider'?: AgentWalletProviderEnum | null;
314
200
  /**
315
201
  *
316
202
  * @type {string}
317
- * @memberof AgentInput
203
+ * @memberof Agent
318
204
  */
319
- 'token_address'?: string | null;
205
+ 'readonly_wallet_address'?: string | null;
320
206
  /**
321
207
  *
322
208
  * @type {string}
323
- * @memberof AgentInput
209
+ * @memberof Agent
324
210
  */
325
- 'token_pool'?: string | null;
211
+ 'network_id'?: AgentNetworkIdEnum | null;
326
212
  /**
327
213
  *
328
214
  * @type {string}
329
- * @memberof AgentInput
215
+ * @memberof Agent
330
216
  */
331
- 'mode'?: AgentInputModeEnum | null;
217
+ 'cdp_network_id'?: AgentCdpNetworkIdEnum | null;
332
218
  /**
333
219
  *
334
- * @type {FeePercentage}
335
- * @memberof AgentInput
220
+ * @type {boolean}
221
+ * @memberof Agent
336
222
  */
337
- 'fee_percentage'?: FeePercentage | null;
223
+ 'telegram_entrypoint_enabled'?: boolean | null;
338
224
  /**
339
225
  *
340
226
  * @type {string}
341
- * @memberof AgentInput
227
+ * @memberof Agent
342
228
  */
343
- 'purpose': string | null;
229
+ 'telegram_entrypoint_prompt'?: string | null;
344
230
  /**
345
231
  *
346
- * @type {string}
347
- * @memberof AgentInput
232
+ * @type {object}
233
+ * @memberof Agent
348
234
  */
349
- 'personality': string | null;
235
+ 'telegram_config'?: object | null;
350
236
  /**
351
237
  *
352
238
  * @type {string}
353
- * @memberof AgentInput
239
+ * @memberof Agent
354
240
  */
355
- 'principles': string | null;
241
+ 'xmtp_entrypoint_prompt'?: string | null;
356
242
  /**
357
- *
243
+ * Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
358
244
  * @type {string}
359
- * @memberof AgentInput
245
+ * @memberof Agent
360
246
  */
361
- 'owner'?: string | null;
247
+ 'id'?: string;
362
248
  /**
363
- *
249
+ * Timestamp when the agent was created, will ignore when importing
364
250
  * @type {string}
365
- * @memberof AgentInput
251
+ * @memberof Agent
366
252
  */
367
- 'upstream_id'?: string | null;
368
- /**
369
- *
370
- * @type {object}
371
- * @memberof AgentInput
372
- */
373
- 'upstream_extra'?: object | null;
253
+ 'created_at'?: string;
374
254
  /**
375
- * AI model identifier to be used by this agent for processing requests.
255
+ * Timestamp when the agent was last updated, will ignore when importing
376
256
  * @type {string}
377
- * @memberof AgentInput
257
+ * @memberof Agent
378
258
  */
379
- 'model'?: string;
259
+ 'updated_at'?: string;
260
+ }
261
+
262
+ export const AgentModeEnum = {
263
+ Public: 'public',
264
+ Private: 'private'
265
+ } as const;
266
+
267
+ export type AgentModeEnum = typeof AgentModeEnum[keyof typeof AgentModeEnum];
268
+ export const AgentShortTermMemoryStrategyEnum = {
269
+ Trim: 'trim',
270
+ Summarize: 'summarize'
271
+ } as const;
272
+
273
+ export type AgentShortTermMemoryStrategyEnum = typeof AgentShortTermMemoryStrategyEnum[keyof typeof AgentShortTermMemoryStrategyEnum];
274
+ export const AgentWalletProviderEnum = {
275
+ Cdp: 'cdp',
276
+ Readonly: 'readonly'
277
+ } as const;
278
+
279
+ export type AgentWalletProviderEnum = typeof AgentWalletProviderEnum[keyof typeof AgentWalletProviderEnum];
280
+ export const AgentNetworkIdEnum = {
281
+ EthereumMainnet: 'ethereum-mainnet',
282
+ EthereumSepolia: 'ethereum-sepolia',
283
+ PolygonMainnet: 'polygon-mainnet',
284
+ PolygonMumbai: 'polygon-mumbai',
285
+ BaseMainnet: 'base-mainnet',
286
+ BaseSepolia: 'base-sepolia',
287
+ ArbitrumMainnet: 'arbitrum-mainnet',
288
+ ArbitrumSepolia: 'arbitrum-sepolia',
289
+ OptimismMainnet: 'optimism-mainnet',
290
+ OptimismSepolia: 'optimism-sepolia',
291
+ Solana: 'solana'
292
+ } as const;
293
+
294
+ export type AgentNetworkIdEnum = typeof AgentNetworkIdEnum[keyof typeof AgentNetworkIdEnum];
295
+ export const AgentCdpNetworkIdEnum = {
296
+ EthereumMainnet: 'ethereum-mainnet',
297
+ EthereumSepolia: 'ethereum-sepolia',
298
+ PolygonMainnet: 'polygon-mainnet',
299
+ PolygonMumbai: 'polygon-mumbai',
300
+ BaseMainnet: 'base-mainnet',
301
+ BaseSepolia: 'base-sepolia',
302
+ ArbitrumMainnet: 'arbitrum-mainnet',
303
+ ArbitrumSepolia: 'arbitrum-sepolia',
304
+ OptimismMainnet: 'optimism-mainnet',
305
+ OptimismSepolia: 'optimism-sepolia'
306
+ } as const;
307
+
308
+ export type AgentCdpNetworkIdEnum = typeof AgentCdpNetworkIdEnum[keyof typeof AgentCdpNetworkIdEnum];
309
+
310
+ /**
311
+ * Response model for agent API key generation.
312
+ * @export
313
+ * @interface AgentApiKeyResponse
314
+ */
315
+ export interface AgentApiKeyResponse {
380
316
  /**
381
- *
317
+ * The private API key for the agent (sk-)
382
318
  * @type {string}
383
- * @memberof AgentInput
319
+ * @memberof AgentApiKeyResponse
384
320
  */
385
- 'prompt'?: string | null;
321
+ 'api_key': string;
386
322
  /**
387
- *
323
+ * The public API key for the agent (pk-)
388
324
  * @type {string}
389
- * @memberof AgentInput
390
- */
391
- 'prompt_append'?: string | null;
392
- /**
393
- *
394
- * @type {number}
395
- * @memberof AgentInput
396
- */
397
- 'temperature'?: number | null;
398
- /**
399
- *
400
- * @type {number}
401
- * @memberof AgentInput
402
- */
403
- 'frequency_penalty'?: number | null;
404
- /**
405
- *
406
- * @type {number}
407
- * @memberof AgentInput
325
+ * @memberof AgentApiKeyResponse
408
326
  */
409
- 'presence_penalty'?: number | null;
327
+ 'api_key_public': string;
410
328
  /**
411
- *
329
+ * The base URL for the API
412
330
  * @type {string}
413
- * @memberof AgentInput
414
- */
415
- 'short_term_memory_strategy'?: AgentInputShortTermMemoryStrategyEnum | null;
416
- /**
417
- *
418
- * @type {Array<AgentAutonomous>}
419
- * @memberof AgentInput
331
+ * @memberof AgentApiKeyResponse
420
332
  */
421
- 'autonomous'?: Array<AgentAutonomous> | null;
333
+ 'base_url': string;
422
334
  /**
423
- *
335
+ * API documentation URL
424
336
  * @type {string}
425
- * @memberof AgentInput
426
- */
427
- 'example_intro'?: string | null;
428
- /**
429
- *
430
- * @type {Array<AgentExample>}
431
- * @memberof AgentInput
432
- */
433
- 'examples'?: Array<AgentExample> | null;
434
- /**
435
- *
436
- * @type {object}
437
- * @memberof AgentInput
337
+ * @memberof AgentApiKeyResponse
438
338
  */
439
- 'skills'?: object | null;
339
+ 'api_doc': string;
440
340
  /**
441
- *
341
+ * OpenAPI JSON URL for AI integration
442
342
  * @type {string}
443
- * @memberof AgentInput
343
+ * @memberof AgentApiKeyResponse
444
344
  */
445
- 'wallet_provider'?: AgentInputWalletProviderEnum | null;
345
+ 'doc_for_ai': string;
346
+ }
347
+ /**
348
+ * Response model for agent assets.
349
+ * @export
350
+ * @interface AgentAssetsResponse
351
+ */
352
+ export interface AgentAssetsResponse {
446
353
  /**
447
- *
354
+ * ID of the agent
448
355
  * @type {string}
449
- * @memberof AgentInput
356
+ * @memberof AgentAssetsResponse
450
357
  */
451
- 'readonly_wallet_address'?: string | null;
358
+ 'agent_id': string;
452
359
  /**
453
360
  *
454
361
  * @type {string}
455
- * @memberof AgentInput
362
+ * @memberof AgentAssetsResponse
456
363
  */
457
- 'network_id'?: AgentInputNetworkIdEnum | null;
364
+ 'network_id': string | null;
458
365
  /**
459
366
  *
460
367
  * @type {string}
461
- * @memberof AgentInput
462
- */
463
- 'cdp_network_id'?: AgentInputCdpNetworkIdEnum | null;
464
- /**
465
- *
466
- * @type {boolean}
467
- * @memberof AgentInput
368
+ * @memberof AgentAssetsResponse
468
369
  */
469
- 'telegram_entrypoint_enabled'?: boolean | null;
370
+ 'wallet_address': string | null;
470
371
  /**
471
372
  *
472
373
  * @type {string}
473
- * @memberof AgentInput
374
+ * @memberof AgentAssetsResponse
474
375
  */
475
- 'telegram_entrypoint_prompt'?: string | null;
376
+ 'ticker': string | null;
476
377
  /**
477
378
  *
478
- * @type {object}
479
- * @memberof AgentInput
379
+ * @type {string}
380
+ * @memberof AgentAssetsResponse
480
381
  */
481
- 'telegram_config'?: object | null;
382
+ 'token_address': string | null;
482
383
  /**
483
384
  *
484
385
  * @type {string}
485
- * @memberof AgentInput
386
+ * @memberof AgentAssetsResponse
486
387
  */
487
- 'xmtp_entrypoint_prompt'?: string | null;
388
+ 'token_pool': string | null;
488
389
  /**
489
- * Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
390
+ * Total value locked, set to 0 for this version
490
391
  * @type {string}
491
- * @memberof AgentInput
392
+ * @memberof AgentAssetsResponse
492
393
  */
493
- 'id'?: string;
394
+ 'tvl'?: string;
494
395
  /**
495
- * Timestamp when the agent was created, will ignore when importing
496
- * @type {string}
497
- * @memberof AgentInput
396
+ * List of assets with symbol and balance
397
+ * @type {Array<Asset>}
398
+ * @memberof AgentAssetsResponse
498
399
  */
499
- 'created_at'?: string;
400
+ 'assets': Array<Asset>;
500
401
  /**
501
- * Timestamp when the agent was last updated, will ignore when importing
502
- * @type {string}
503
- * @memberof AgentInput
402
+ * Credit account information
403
+ * @type {CreditAccount}
404
+ * @memberof AgentAssetsResponse
504
405
  */
505
- 'updated_at'?: string;
406
+ 'account': CreditAccount;
506
407
  }
507
-
508
- export const AgentInputModeEnum = {
509
- Public: 'public',
510
- Private: 'private'
511
- } as const;
512
-
513
- export type AgentInputModeEnum = typeof AgentInputModeEnum[keyof typeof AgentInputModeEnum];
514
- export const AgentInputShortTermMemoryStrategyEnum = {
515
- Trim: 'trim',
516
- Summarize: 'summarize'
517
- } as const;
518
-
519
- export type AgentInputShortTermMemoryStrategyEnum = typeof AgentInputShortTermMemoryStrategyEnum[keyof typeof AgentInputShortTermMemoryStrategyEnum];
520
- export const AgentInputWalletProviderEnum = {
521
- Cdp: 'cdp',
522
- Readonly: 'readonly'
523
- } as const;
524
-
525
- export type AgentInputWalletProviderEnum = typeof AgentInputWalletProviderEnum[keyof typeof AgentInputWalletProviderEnum];
526
- export const AgentInputNetworkIdEnum = {
527
- EthereumMainnet: 'ethereum-mainnet',
528
- EthereumSepolia: 'ethereum-sepolia',
529
- PolygonMainnet: 'polygon-mainnet',
530
- PolygonMumbai: 'polygon-mumbai',
531
- BaseMainnet: 'base-mainnet',
532
- BaseSepolia: 'base-sepolia',
533
- ArbitrumMainnet: 'arbitrum-mainnet',
534
- ArbitrumSepolia: 'arbitrum-sepolia',
535
- OptimismMainnet: 'optimism-mainnet',
536
- OptimismSepolia: 'optimism-sepolia',
537
- Solana: 'solana'
538
- } as const;
539
-
540
- export type AgentInputNetworkIdEnum = typeof AgentInputNetworkIdEnum[keyof typeof AgentInputNetworkIdEnum];
541
- export const AgentInputCdpNetworkIdEnum = {
542
- EthereumMainnet: 'ethereum-mainnet',
543
- EthereumSepolia: 'ethereum-sepolia',
544
- PolygonMainnet: 'polygon-mainnet',
545
- PolygonMumbai: 'polygon-mumbai',
546
- BaseMainnet: 'base-mainnet',
547
- BaseSepolia: 'base-sepolia',
548
- ArbitrumMainnet: 'arbitrum-mainnet',
549
- ArbitrumSepolia: 'arbitrum-sepolia',
550
- OptimismMainnet: 'optimism-mainnet',
551
- OptimismSepolia: 'optimism-sepolia'
552
- } as const;
553
-
554
- export type AgentInputCdpNetworkIdEnum = typeof AgentInputCdpNetworkIdEnum[keyof typeof AgentInputCdpNetworkIdEnum];
555
-
556
408
  /**
557
- * Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
409
+ * Autonomous agent configuration.
558
410
  * @export
559
- * @interface AgentListResponse
411
+ * @interface AgentAutonomous
560
412
  */
561
- export interface AgentListResponse {
413
+ export interface AgentAutonomous {
562
414
  /**
563
- * List of agents
564
- * @type {Array<AgentResponse>}
565
- * @memberof AgentListResponse
415
+ * Unique identifier for the autonomous configuration
416
+ * @type {string}
417
+ * @memberof AgentAutonomous
566
418
  */
567
- 'data': Array<AgentResponse>;
419
+ 'id'?: string;
568
420
  /**
569
- * Indicates if there are more items
570
- * @type {boolean}
571
- * @memberof AgentListResponse
421
+ *
422
+ * @type {string}
423
+ * @memberof AgentAutonomous
572
424
  */
573
- 'has_more': boolean;
425
+ 'name'?: string | null;
574
426
  /**
575
427
  *
576
428
  * @type {string}
577
- * @memberof AgentListResponse
429
+ * @memberof AgentAutonomous
578
430
  */
579
- 'next_cursor'?: string | null;
431
+ 'description'?: string | null;
432
+ /**
433
+ *
434
+ * @type {number}
435
+ * @memberof AgentAutonomous
436
+ */
437
+ 'minutes'?: number | null;
438
+ /**
439
+ *
440
+ * @type {string}
441
+ * @memberof AgentAutonomous
442
+ */
443
+ 'cron'?: string | null;
444
+ /**
445
+ * Special prompt used during autonomous operation
446
+ * @type {string}
447
+ * @memberof AgentAutonomous
448
+ */
449
+ 'prompt': string;
450
+ /**
451
+ *
452
+ * @type {boolean}
453
+ * @memberof AgentAutonomous
454
+ */
455
+ 'enabled'?: boolean | null;
580
456
  }
581
457
  /**
582
- * Agent model.
458
+ * Agent create model.
583
459
  * @export
584
- * @interface AgentOutput
460
+ * @interface AgentCreate
585
461
  */
586
- export interface AgentOutput {
462
+ export interface AgentCreate {
587
463
  /**
588
464
  *
589
465
  * @type {string}
590
- * @memberof AgentOutput
466
+ * @memberof AgentCreate
591
467
  */
592
468
  'name': string | null;
593
469
  /**
594
470
  *
595
471
  * @type {string}
596
- * @memberof AgentOutput
472
+ * @memberof AgentCreate
597
473
  */
598
474
  'slug'?: string | null;
599
475
  /**
600
476
  *
601
477
  * @type {string}
602
- * @memberof AgentOutput
478
+ * @memberof AgentCreate
603
479
  */
604
480
  'description'?: string | null;
605
481
  /**
606
482
  *
607
483
  * @type {string}
608
- * @memberof AgentOutput
484
+ * @memberof AgentCreate
609
485
  */
610
486
  'external_website'?: string | null;
611
487
  /**
612
488
  *
613
489
  * @type {string}
614
- * @memberof AgentOutput
490
+ * @memberof AgentCreate
615
491
  */
616
492
  'picture'?: string | null;
617
493
  /**
618
494
  *
619
495
  * @type {string}
620
- * @memberof AgentOutput
496
+ * @memberof AgentCreate
621
497
  */
622
498
  'ticker'?: string | null;
623
499
  /**
624
500
  *
625
501
  * @type {string}
626
- * @memberof AgentOutput
502
+ * @memberof AgentCreate
627
503
  */
628
504
  'token_address'?: string | null;
629
505
  /**
630
506
  *
631
507
  * @type {string}
632
- * @memberof AgentOutput
508
+ * @memberof AgentCreate
633
509
  */
634
510
  'token_pool'?: string | null;
635
511
  /**
636
512
  *
637
513
  * @type {string}
638
- * @memberof AgentOutput
514
+ * @memberof AgentCreate
639
515
  */
640
- 'mode'?: AgentOutputModeEnum | null;
516
+ 'mode'?: AgentCreateModeEnum | null;
641
517
  /**
642
518
  *
643
- * @type {string}
644
- * @memberof AgentOutput
519
+ * @type {FeePercentage}
520
+ * @memberof AgentCreate
645
521
  */
646
- 'fee_percentage'?: string | null;
522
+ 'fee_percentage'?: FeePercentage | null;
647
523
  /**
648
524
  *
649
525
  * @type {string}
650
- * @memberof AgentOutput
526
+ * @memberof AgentCreate
651
527
  */
652
528
  'purpose': string | null;
653
529
  /**
654
530
  *
655
531
  * @type {string}
656
- * @memberof AgentOutput
532
+ * @memberof AgentCreate
657
533
  */
658
534
  'personality': string | null;
659
535
  /**
660
536
  *
661
537
  * @type {string}
662
- * @memberof AgentOutput
538
+ * @memberof AgentCreate
663
539
  */
664
540
  'principles': string | null;
665
541
  /**
666
542
  *
667
543
  * @type {string}
668
- * @memberof AgentOutput
544
+ * @memberof AgentCreate
669
545
  */
670
546
  'owner'?: string | null;
671
547
  /**
672
548
  *
673
549
  * @type {string}
674
- * @memberof AgentOutput
550
+ * @memberof AgentCreate
675
551
  */
676
552
  'upstream_id'?: string | null;
677
553
  /**
678
554
  *
679
555
  * @type {object}
680
- * @memberof AgentOutput
556
+ * @memberof AgentCreate
681
557
  */
682
558
  'upstream_extra'?: object | null;
683
559
  /**
684
560
  * AI model identifier to be used by this agent for processing requests.
685
561
  * @type {string}
686
- * @memberof AgentOutput
562
+ * @memberof AgentCreate
687
563
  */
688
564
  'model'?: string;
689
565
  /**
690
566
  *
691
567
  * @type {string}
692
- * @memberof AgentOutput
568
+ * @memberof AgentCreate
693
569
  */
694
570
  'prompt'?: string | null;
695
571
  /**
696
572
  *
697
573
  * @type {string}
698
- * @memberof AgentOutput
574
+ * @memberof AgentCreate
699
575
  */
700
576
  'prompt_append'?: string | null;
701
577
  /**
702
578
  *
703
579
  * @type {number}
704
- * @memberof AgentOutput
580
+ * @memberof AgentCreate
705
581
  */
706
582
  'temperature'?: number | null;
707
583
  /**
708
584
  *
709
585
  * @type {number}
710
- * @memberof AgentOutput
586
+ * @memberof AgentCreate
711
587
  */
712
588
  'frequency_penalty'?: number | null;
713
589
  /**
714
590
  *
715
591
  * @type {number}
716
- * @memberof AgentOutput
592
+ * @memberof AgentCreate
717
593
  */
718
594
  'presence_penalty'?: number | null;
719
595
  /**
720
596
  *
721
597
  * @type {string}
722
- * @memberof AgentOutput
598
+ * @memberof AgentCreate
723
599
  */
724
- 'short_term_memory_strategy'?: AgentOutputShortTermMemoryStrategyEnum | null;
600
+ 'short_term_memory_strategy'?: AgentCreateShortTermMemoryStrategyEnum | null;
725
601
  /**
726
602
  *
727
603
  * @type {Array<AgentAutonomous>}
728
- * @memberof AgentOutput
604
+ * @memberof AgentCreate
729
605
  */
730
606
  'autonomous'?: Array<AgentAutonomous> | null;
731
607
  /**
732
608
  *
733
609
  * @type {string}
734
- * @memberof AgentOutput
610
+ * @memberof AgentCreate
735
611
  */
736
612
  'example_intro'?: string | null;
737
613
  /**
738
614
  *
739
615
  * @type {Array<AgentExample>}
740
- * @memberof AgentOutput
616
+ * @memberof AgentCreate
741
617
  */
742
618
  'examples'?: Array<AgentExample> | null;
743
619
  /**
744
620
  *
745
621
  * @type {object}
746
- * @memberof AgentOutput
622
+ * @memberof AgentCreate
747
623
  */
748
624
  'skills'?: object | null;
749
625
  /**
750
626
  *
751
627
  * @type {string}
752
- * @memberof AgentOutput
628
+ * @memberof AgentCreate
753
629
  */
754
- 'wallet_provider'?: AgentOutputWalletProviderEnum | null;
630
+ 'wallet_provider'?: AgentCreateWalletProviderEnum | null;
755
631
  /**
756
632
  *
757
633
  * @type {string}
758
- * @memberof AgentOutput
634
+ * @memberof AgentCreate
759
635
  */
760
636
  'readonly_wallet_address'?: string | null;
761
637
  /**
762
638
  *
763
639
  * @type {string}
764
- * @memberof AgentOutput
640
+ * @memberof AgentCreate
765
641
  */
766
- 'network_id'?: AgentOutputNetworkIdEnum | null;
642
+ 'network_id'?: AgentCreateNetworkIdEnum | null;
767
643
  /**
768
644
  *
769
645
  * @type {string}
770
- * @memberof AgentOutput
646
+ * @memberof AgentCreate
771
647
  */
772
- 'cdp_network_id'?: AgentOutputCdpNetworkIdEnum | null;
648
+ 'cdp_network_id'?: AgentCreateCdpNetworkIdEnum | null;
773
649
  /**
774
650
  *
775
651
  * @type {boolean}
776
- * @memberof AgentOutput
652
+ * @memberof AgentCreate
777
653
  */
778
654
  'telegram_entrypoint_enabled'?: boolean | null;
779
655
  /**
780
656
  *
781
657
  * @type {string}
782
- * @memberof AgentOutput
658
+ * @memberof AgentCreate
783
659
  */
784
660
  'telegram_entrypoint_prompt'?: string | null;
785
661
  /**
786
662
  *
787
663
  * @type {object}
788
- * @memberof AgentOutput
664
+ * @memberof AgentCreate
789
665
  */
790
666
  'telegram_config'?: object | null;
791
667
  /**
792
668
  *
793
669
  * @type {string}
794
- * @memberof AgentOutput
670
+ * @memberof AgentCreate
795
671
  */
796
672
  'xmtp_entrypoint_prompt'?: string | null;
797
673
  /**
798
674
  * Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
799
675
  * @type {string}
800
- * @memberof AgentOutput
676
+ * @memberof AgentCreate
801
677
  */
802
678
  'id'?: string;
803
- /**
804
- * Timestamp when the agent was created, will ignore when importing
805
- * @type {string}
806
- * @memberof AgentOutput
807
- */
808
- 'created_at'?: string;
809
- /**
810
- * Timestamp when the agent was last updated, will ignore when importing
811
- * @type {string}
812
- * @memberof AgentOutput
813
- */
814
- 'updated_at'?: string;
815
679
  }
816
680
 
817
- export const AgentOutputModeEnum = {
681
+ export const AgentCreateModeEnum = {
818
682
  Public: 'public',
819
683
  Private: 'private'
820
684
  } as const;
821
685
 
822
- export type AgentOutputModeEnum = typeof AgentOutputModeEnum[keyof typeof AgentOutputModeEnum];
823
- export const AgentOutputShortTermMemoryStrategyEnum = {
686
+ export type AgentCreateModeEnum = typeof AgentCreateModeEnum[keyof typeof AgentCreateModeEnum];
687
+ export const AgentCreateShortTermMemoryStrategyEnum = {
824
688
  Trim: 'trim',
825
689
  Summarize: 'summarize'
826
690
  } as const;
827
691
 
828
- export type AgentOutputShortTermMemoryStrategyEnum = typeof AgentOutputShortTermMemoryStrategyEnum[keyof typeof AgentOutputShortTermMemoryStrategyEnum];
829
- export const AgentOutputWalletProviderEnum = {
692
+ export type AgentCreateShortTermMemoryStrategyEnum = typeof AgentCreateShortTermMemoryStrategyEnum[keyof typeof AgentCreateShortTermMemoryStrategyEnum];
693
+ export const AgentCreateWalletProviderEnum = {
830
694
  Cdp: 'cdp',
831
695
  Readonly: 'readonly'
832
696
  } as const;
833
697
 
834
- export type AgentOutputWalletProviderEnum = typeof AgentOutputWalletProviderEnum[keyof typeof AgentOutputWalletProviderEnum];
835
- export const AgentOutputNetworkIdEnum = {
698
+ export type AgentCreateWalletProviderEnum = typeof AgentCreateWalletProviderEnum[keyof typeof AgentCreateWalletProviderEnum];
699
+ export const AgentCreateNetworkIdEnum = {
836
700
  EthereumMainnet: 'ethereum-mainnet',
837
701
  EthereumSepolia: 'ethereum-sepolia',
838
702
  PolygonMainnet: 'polygon-mainnet',
@@ -846,8 +710,8 @@ export const AgentOutputNetworkIdEnum = {
846
710
  Solana: 'solana'
847
711
  } as const;
848
712
 
849
- export type AgentOutputNetworkIdEnum = typeof AgentOutputNetworkIdEnum[keyof typeof AgentOutputNetworkIdEnum];
850
- export const AgentOutputCdpNetworkIdEnum = {
713
+ export type AgentCreateNetworkIdEnum = typeof AgentCreateNetworkIdEnum[keyof typeof AgentCreateNetworkIdEnum];
714
+ export const AgentCreateCdpNetworkIdEnum = {
851
715
  EthereumMainnet: 'ethereum-mainnet',
852
716
  EthereumSepolia: 'ethereum-sepolia',
853
717
  PolygonMainnet: 'polygon-mainnet',
@@ -860,8 +724,132 @@ export const AgentOutputCdpNetworkIdEnum = {
860
724
  OptimismSepolia: 'optimism-sepolia'
861
725
  } as const;
862
726
 
863
- export type AgentOutputCdpNetworkIdEnum = typeof AgentOutputCdpNetworkIdEnum[keyof typeof AgentOutputCdpNetworkIdEnum];
727
+ export type AgentCreateCdpNetworkIdEnum = typeof AgentCreateCdpNetworkIdEnum[keyof typeof AgentCreateCdpNetworkIdEnum];
864
728
 
729
+ /**
730
+ * Agent example configuration.
731
+ * @export
732
+ * @interface AgentExample
733
+ */
734
+ export interface AgentExample {
735
+ /**
736
+ * Name of the example
737
+ * @type {string}
738
+ * @memberof AgentExample
739
+ */
740
+ 'name': string;
741
+ /**
742
+ * Description of the example
743
+ * @type {string}
744
+ * @memberof AgentExample
745
+ */
746
+ 'description': string;
747
+ /**
748
+ * Example prompt
749
+ * @type {string}
750
+ * @memberof AgentExample
751
+ */
752
+ 'prompt': string;
753
+ }
754
+ /**
755
+ * Request model for agent generation.
756
+ * @export
757
+ * @interface AgentGenerateRequest
758
+ */
759
+ export interface AgentGenerateRequest {
760
+ /**
761
+ * Natural language description of the agent\'s desired capabilities
762
+ * @type {string}
763
+ * @memberof AgentGenerateRequest
764
+ */
765
+ 'prompt': string;
766
+ /**
767
+ *
768
+ * @type {AgentCreate}
769
+ * @memberof AgentGenerateRequest
770
+ */
771
+ 'existing_agent'?: AgentCreate | null;
772
+ /**
773
+ *
774
+ * @type {string}
775
+ * @memberof AgentGenerateRequest
776
+ */
777
+ 'project_id'?: string | null;
778
+ /**
779
+ *
780
+ * @type {boolean}
781
+ * @memberof AgentGenerateRequest
782
+ */
783
+ 'deploy'?: boolean | null;
784
+ }
785
+ /**
786
+ * Response model for agent generation.
787
+ * @export
788
+ * @interface AgentGenerateResponse
789
+ */
790
+ export interface AgentGenerateResponse {
791
+ /**
792
+ * The generated agent schema
793
+ * @type {object}
794
+ * @memberof AgentGenerateResponse
795
+ */
796
+ 'agent': object;
797
+ /**
798
+ * Project ID for this conversation session
799
+ * @type {string}
800
+ * @memberof AgentGenerateResponse
801
+ */
802
+ 'project_id': string;
803
+ /**
804
+ * Human-readable summary of the generated agent
805
+ * @type {string}
806
+ * @memberof AgentGenerateResponse
807
+ */
808
+ 'summary': string;
809
+ /**
810
+ * Generated tags for the agent as ID objects: [{\'id\': 1}, {\'id\': 2}]
811
+ * @type {Array<{ [key: string]: number; }>}
812
+ * @memberof AgentGenerateResponse
813
+ */
814
+ 'tags'?: Array<{ [key: string]: number; }>;
815
+ /**
816
+ *
817
+ * @type {Array<object>}
818
+ * @memberof AgentGenerateResponse
819
+ */
820
+ 'autonomous_tasks'?: Array<object> | null;
821
+ /**
822
+ *
823
+ * @type {Array<string>}
824
+ * @memberof AgentGenerateResponse
825
+ */
826
+ 'activated_skills'?: Array<string> | null;
827
+ }
828
+ /**
829
+ * Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
830
+ * @export
831
+ * @interface AgentListResponse
832
+ */
833
+ export interface AgentListResponse {
834
+ /**
835
+ * List of agents
836
+ * @type {Array<AgentResponse>}
837
+ * @memberof AgentListResponse
838
+ */
839
+ 'data': Array<AgentResponse>;
840
+ /**
841
+ * Indicates if there are more items
842
+ * @type {boolean}
843
+ * @memberof AgentListResponse
844
+ */
845
+ 'has_more': boolean;
846
+ /**
847
+ *
848
+ * @type {string}
849
+ * @memberof AgentListResponse
850
+ */
851
+ 'next_cursor'?: string | null;
852
+ }
865
853
  /**
866
854
  * Response model for Agent API.
867
855
  * @export
@@ -6834,7 +6822,7 @@ export const UserApiFp = function(configuration?: Configuration) {
6834
6822
  * @param {*} [options] Override http request option.
6835
6823
  * @throws {RequiredError}
6836
6824
  */
6837
- async getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentOutput>> {
6825
+ async getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Agent>> {
6838
6826
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAgentById(agentId, options);
6839
6827
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6840
6828
  const localVarOperationServerBasePath = operationServerMap['UserApi.getUserAgentById']?.[localVarOperationServerIndex]?.url;
@@ -6871,7 +6859,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
6871
6859
  * @param {*} [options] Override http request option.
6872
6860
  * @throws {RequiredError}
6873
6861
  */
6874
- getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentOutput> {
6862
+ getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Agent> {
6875
6863
  return localVarFp.getUserAgentById(agentId, options).then((request) => request(axios, basePath));
6876
6864
  },
6877
6865
  /**