@crestal/nation-sdk 0.6.25 → 0.6.27

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