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