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