@crestal/nation-sdk 0.2.34 → 0.6.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/VERSION +1 -1
- package/README.md +3 -3
- package/api.ts +6 -1742
- package/base.ts +1 -25
- package/common.ts +1 -38
- package/configuration.ts +1 -18
- package/dist/api.d.ts +5 -1737
- package/dist/api.js +22 -150
- package/dist/base.d.ts +1 -25
- package/dist/base.js +1 -20
- package/dist/common.d.ts +1 -38
- package/dist/common.js +1 -38
- package/dist/configuration.d.ts +1 -18
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/Agent.md +3 -3
- package/docs/AgentApi.md +2 -2
- package/docs/AgentUpdate.md +3 -3
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
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.
|
|
7
|
+
* The version of the OpenAPI document: 0.6.22
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -25,236 +25,56 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerM
|
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Agent model.
|
|
28
|
-
* @export
|
|
29
|
-
* @interface Agent
|
|
30
28
|
*/
|
|
31
29
|
export interface Agent {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof Agent
|
|
36
|
-
*/
|
|
37
30
|
'name': string | null;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof Agent
|
|
42
|
-
*/
|
|
43
31
|
'slug'?: string | null;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof Agent
|
|
48
|
-
*/
|
|
49
32
|
'description'?: string | null;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof Agent
|
|
54
|
-
*/
|
|
55
33
|
'external_website'?: string | null;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof Agent
|
|
60
|
-
*/
|
|
61
34
|
'picture'?: string | null;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof Agent
|
|
66
|
-
*/
|
|
67
35
|
'ticker'?: string | null;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof Agent
|
|
72
|
-
*/
|
|
73
36
|
'token_address'?: string | null;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {string}
|
|
77
|
-
* @memberof Agent
|
|
78
|
-
*/
|
|
79
37
|
'token_pool'?: string | null;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {string}
|
|
83
|
-
* @memberof Agent
|
|
84
|
-
*/
|
|
85
38
|
'mode'?: AgentModeEnum | null;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @type {string}
|
|
89
|
-
* @memberof Agent
|
|
90
|
-
*/
|
|
91
39
|
'fee_percentage'?: string | null;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @type {string}
|
|
95
|
-
* @memberof Agent
|
|
96
|
-
*/
|
|
97
40
|
'purpose': string | null;
|
|
98
|
-
/**
|
|
99
|
-
*
|
|
100
|
-
* @type {string}
|
|
101
|
-
* @memberof Agent
|
|
102
|
-
*/
|
|
103
41
|
'personality': string | null;
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @type {string}
|
|
107
|
-
* @memberof Agent
|
|
108
|
-
*/
|
|
109
42
|
'principles': string | null;
|
|
110
|
-
/**
|
|
111
|
-
*
|
|
112
|
-
* @type {string}
|
|
113
|
-
* @memberof Agent
|
|
114
|
-
*/
|
|
115
43
|
'owner'?: string | null;
|
|
116
|
-
/**
|
|
117
|
-
*
|
|
118
|
-
* @type {string}
|
|
119
|
-
* @memberof Agent
|
|
120
|
-
*/
|
|
121
44
|
'upstream_id'?: string | null;
|
|
122
|
-
/**
|
|
123
|
-
*
|
|
124
|
-
* @type {object}
|
|
125
|
-
* @memberof Agent
|
|
126
|
-
*/
|
|
127
45
|
'upstream_extra'?: object | null;
|
|
128
46
|
/**
|
|
129
47
|
* AI model identifier to be used by this agent for processing requests.
|
|
130
|
-
* @type {string}
|
|
131
|
-
* @memberof Agent
|
|
132
48
|
*/
|
|
133
49
|
'model'?: string;
|
|
134
|
-
/**
|
|
135
|
-
*
|
|
136
|
-
* @type {string}
|
|
137
|
-
* @memberof Agent
|
|
138
|
-
*/
|
|
139
50
|
'prompt'?: string | null;
|
|
140
|
-
/**
|
|
141
|
-
*
|
|
142
|
-
* @type {string}
|
|
143
|
-
* @memberof Agent
|
|
144
|
-
*/
|
|
145
51
|
'prompt_append'?: string | null;
|
|
146
|
-
/**
|
|
147
|
-
*
|
|
148
|
-
* @type {number}
|
|
149
|
-
* @memberof Agent
|
|
150
|
-
*/
|
|
151
52
|
'temperature'?: number | null;
|
|
152
|
-
/**
|
|
153
|
-
*
|
|
154
|
-
* @type {number}
|
|
155
|
-
* @memberof Agent
|
|
156
|
-
*/
|
|
157
53
|
'frequency_penalty'?: number | null;
|
|
158
|
-
/**
|
|
159
|
-
*
|
|
160
|
-
* @type {number}
|
|
161
|
-
* @memberof Agent
|
|
162
|
-
*/
|
|
163
54
|
'presence_penalty'?: number | null;
|
|
164
|
-
/**
|
|
165
|
-
*
|
|
166
|
-
* @type {string}
|
|
167
|
-
* @memberof Agent
|
|
168
|
-
*/
|
|
169
55
|
'short_term_memory_strategy'?: AgentShortTermMemoryStrategyEnum | null;
|
|
170
|
-
/**
|
|
171
|
-
*
|
|
172
|
-
* @type {Array<AgentAutonomous>}
|
|
173
|
-
* @memberof Agent
|
|
174
|
-
*/
|
|
175
56
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
176
|
-
/**
|
|
177
|
-
*
|
|
178
|
-
* @type {string}
|
|
179
|
-
* @memberof Agent
|
|
180
|
-
*/
|
|
181
57
|
'example_intro'?: string | null;
|
|
182
|
-
/**
|
|
183
|
-
*
|
|
184
|
-
* @type {Array<AgentExample>}
|
|
185
|
-
* @memberof Agent
|
|
186
|
-
*/
|
|
187
58
|
'examples'?: Array<AgentExample> | null;
|
|
188
|
-
/**
|
|
189
|
-
*
|
|
190
|
-
* @type {object}
|
|
191
|
-
* @memberof Agent
|
|
192
|
-
*/
|
|
193
59
|
'skills'?: object | null;
|
|
194
|
-
/**
|
|
195
|
-
*
|
|
196
|
-
* @type {string}
|
|
197
|
-
* @memberof Agent
|
|
198
|
-
*/
|
|
199
60
|
'wallet_provider'?: AgentWalletProviderEnum | null;
|
|
200
|
-
/**
|
|
201
|
-
*
|
|
202
|
-
* @type {string}
|
|
203
|
-
* @memberof Agent
|
|
204
|
-
*/
|
|
205
61
|
'readonly_wallet_address'?: string | null;
|
|
206
|
-
/**
|
|
207
|
-
*
|
|
208
|
-
* @type {string}
|
|
209
|
-
* @memberof Agent
|
|
210
|
-
*/
|
|
211
62
|
'network_id'?: AgentNetworkIdEnum | null;
|
|
212
|
-
/**
|
|
213
|
-
*
|
|
214
|
-
* @type {string}
|
|
215
|
-
* @memberof Agent
|
|
216
|
-
*/
|
|
217
63
|
'cdp_network_id'?: AgentCdpNetworkIdEnum | null;
|
|
218
|
-
/**
|
|
219
|
-
*
|
|
220
|
-
* @type {boolean}
|
|
221
|
-
* @memberof Agent
|
|
222
|
-
*/
|
|
223
64
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
224
|
-
/**
|
|
225
|
-
*
|
|
226
|
-
* @type {string}
|
|
227
|
-
* @memberof Agent
|
|
228
|
-
*/
|
|
229
65
|
'telegram_entrypoint_prompt'?: string | null;
|
|
230
|
-
/**
|
|
231
|
-
*
|
|
232
|
-
* @type {object}
|
|
233
|
-
* @memberof Agent
|
|
234
|
-
*/
|
|
235
66
|
'telegram_config'?: object | null;
|
|
236
|
-
/**
|
|
237
|
-
*
|
|
238
|
-
* @type {string}
|
|
239
|
-
* @memberof Agent
|
|
240
|
-
*/
|
|
241
67
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
242
68
|
/**
|
|
243
69
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
244
|
-
* @type {string}
|
|
245
|
-
* @memberof Agent
|
|
246
70
|
*/
|
|
247
71
|
'id'?: string;
|
|
248
72
|
/**
|
|
249
73
|
* Timestamp when the agent was created, will ignore when importing
|
|
250
|
-
* @type {string}
|
|
251
|
-
* @memberof Agent
|
|
252
74
|
*/
|
|
253
75
|
'created_at'?: string;
|
|
254
76
|
/**
|
|
255
77
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
256
|
-
* @type {string}
|
|
257
|
-
* @memberof Agent
|
|
258
78
|
*/
|
|
259
79
|
'updated_at'?: string;
|
|
260
80
|
}
|
|
@@ -309,489 +129,206 @@ export type AgentCdpNetworkIdEnum = typeof AgentCdpNetworkIdEnum[keyof typeof Ag
|
|
|
309
129
|
|
|
310
130
|
/**
|
|
311
131
|
* Response model for agent API key generation.
|
|
312
|
-
* @export
|
|
313
|
-
* @interface AgentApiKeyResponse
|
|
314
132
|
*/
|
|
315
133
|
export interface AgentApiKeyResponse {
|
|
316
134
|
/**
|
|
317
135
|
* The private API key for the agent (sk-)
|
|
318
|
-
* @type {string}
|
|
319
|
-
* @memberof AgentApiKeyResponse
|
|
320
136
|
*/
|
|
321
137
|
'api_key': string;
|
|
322
138
|
/**
|
|
323
139
|
* The public API key for the agent (pk-)
|
|
324
|
-
* @type {string}
|
|
325
|
-
* @memberof AgentApiKeyResponse
|
|
326
140
|
*/
|
|
327
141
|
'api_key_public': string;
|
|
328
142
|
/**
|
|
329
143
|
* The base URL for the API
|
|
330
|
-
* @type {string}
|
|
331
|
-
* @memberof AgentApiKeyResponse
|
|
332
144
|
*/
|
|
333
145
|
'base_url': string;
|
|
334
146
|
/**
|
|
335
147
|
* API documentation URL
|
|
336
|
-
* @type {string}
|
|
337
|
-
* @memberof AgentApiKeyResponse
|
|
338
148
|
*/
|
|
339
149
|
'api_doc': string;
|
|
340
150
|
/**
|
|
341
151
|
* OpenAPI JSON URL for AI integration
|
|
342
|
-
* @type {string}
|
|
343
|
-
* @memberof AgentApiKeyResponse
|
|
344
152
|
*/
|
|
345
153
|
'doc_for_ai': string;
|
|
346
154
|
}
|
|
347
155
|
/**
|
|
348
156
|
* Response model for agent assets.
|
|
349
|
-
* @export
|
|
350
|
-
* @interface AgentAssetsResponse
|
|
351
157
|
*/
|
|
352
158
|
export interface AgentAssetsResponse {
|
|
353
159
|
/**
|
|
354
160
|
* ID of the agent
|
|
355
|
-
* @type {string}
|
|
356
|
-
* @memberof AgentAssetsResponse
|
|
357
161
|
*/
|
|
358
162
|
'agent_id': string;
|
|
359
|
-
/**
|
|
360
|
-
*
|
|
361
|
-
* @type {string}
|
|
362
|
-
* @memberof AgentAssetsResponse
|
|
363
|
-
*/
|
|
364
163
|
'network_id': string | null;
|
|
365
|
-
/**
|
|
366
|
-
*
|
|
367
|
-
* @type {string}
|
|
368
|
-
* @memberof AgentAssetsResponse
|
|
369
|
-
*/
|
|
370
164
|
'wallet_address': string | null;
|
|
371
|
-
/**
|
|
372
|
-
*
|
|
373
|
-
* @type {string}
|
|
374
|
-
* @memberof AgentAssetsResponse
|
|
375
|
-
*/
|
|
376
165
|
'ticker': string | null;
|
|
377
|
-
/**
|
|
378
|
-
*
|
|
379
|
-
* @type {string}
|
|
380
|
-
* @memberof AgentAssetsResponse
|
|
381
|
-
*/
|
|
382
166
|
'token_address': string | null;
|
|
383
|
-
/**
|
|
384
|
-
*
|
|
385
|
-
* @type {string}
|
|
386
|
-
* @memberof AgentAssetsResponse
|
|
387
|
-
*/
|
|
388
167
|
'token_pool': string | null;
|
|
389
168
|
/**
|
|
390
169
|
* Total value locked, set to 0 for this version
|
|
391
|
-
* @type {string}
|
|
392
|
-
* @memberof AgentAssetsResponse
|
|
393
170
|
*/
|
|
394
171
|
'tvl'?: string;
|
|
395
172
|
/**
|
|
396
173
|
* List of assets with symbol and balance
|
|
397
|
-
* @type {Array<Asset>}
|
|
398
|
-
* @memberof AgentAssetsResponse
|
|
399
174
|
*/
|
|
400
175
|
'assets': Array<Asset>;
|
|
401
176
|
}
|
|
402
177
|
/**
|
|
403
178
|
* Autonomous agent configuration.
|
|
404
|
-
* @export
|
|
405
|
-
* @interface AgentAutonomous
|
|
406
179
|
*/
|
|
407
180
|
export interface AgentAutonomous {
|
|
408
181
|
/**
|
|
409
182
|
* Unique identifier for the autonomous configuration
|
|
410
|
-
* @type {string}
|
|
411
|
-
* @memberof AgentAutonomous
|
|
412
183
|
*/
|
|
413
184
|
'id'?: string;
|
|
414
|
-
/**
|
|
415
|
-
*
|
|
416
|
-
* @type {string}
|
|
417
|
-
* @memberof AgentAutonomous
|
|
418
|
-
*/
|
|
419
185
|
'name'?: string | null;
|
|
420
|
-
/**
|
|
421
|
-
*
|
|
422
|
-
* @type {string}
|
|
423
|
-
* @memberof AgentAutonomous
|
|
424
|
-
*/
|
|
425
186
|
'description'?: string | null;
|
|
426
|
-
/**
|
|
427
|
-
*
|
|
428
|
-
* @type {number}
|
|
429
|
-
* @memberof AgentAutonomous
|
|
430
|
-
*/
|
|
431
187
|
'minutes'?: number | null;
|
|
432
|
-
/**
|
|
433
|
-
*
|
|
434
|
-
* @type {string}
|
|
435
|
-
* @memberof AgentAutonomous
|
|
436
|
-
*/
|
|
437
188
|
'cron'?: string | null;
|
|
438
189
|
/**
|
|
439
190
|
* Special prompt used during autonomous operation
|
|
440
|
-
* @type {string}
|
|
441
|
-
* @memberof AgentAutonomous
|
|
442
191
|
*/
|
|
443
192
|
'prompt': string;
|
|
444
|
-
/**
|
|
445
|
-
*
|
|
446
|
-
* @type {boolean}
|
|
447
|
-
* @memberof AgentAutonomous
|
|
448
|
-
*/
|
|
449
193
|
'enabled'?: boolean | null;
|
|
450
194
|
}
|
|
451
195
|
/**
|
|
452
196
|
* Agent example configuration.
|
|
453
|
-
* @export
|
|
454
|
-
* @interface AgentExample
|
|
455
197
|
*/
|
|
456
198
|
export interface AgentExample {
|
|
457
199
|
/**
|
|
458
200
|
* Name of the example
|
|
459
|
-
* @type {string}
|
|
460
|
-
* @memberof AgentExample
|
|
461
201
|
*/
|
|
462
202
|
'name': string;
|
|
463
203
|
/**
|
|
464
204
|
* Description of the example
|
|
465
|
-
* @type {string}
|
|
466
|
-
* @memberof AgentExample
|
|
467
205
|
*/
|
|
468
206
|
'description': string;
|
|
469
207
|
/**
|
|
470
208
|
* Example prompt
|
|
471
|
-
* @type {string}
|
|
472
|
-
* @memberof AgentExample
|
|
473
209
|
*/
|
|
474
210
|
'prompt': string;
|
|
475
211
|
}
|
|
476
212
|
/**
|
|
477
213
|
* Request model for agent generation.
|
|
478
|
-
* @export
|
|
479
|
-
* @interface AgentGenerateRequest
|
|
480
214
|
*/
|
|
481
215
|
export interface AgentGenerateRequest {
|
|
482
216
|
/**
|
|
483
217
|
* Natural language description of the agent\'s desired capabilities
|
|
484
|
-
* @type {string}
|
|
485
|
-
* @memberof AgentGenerateRequest
|
|
486
218
|
*/
|
|
487
219
|
'prompt': string;
|
|
488
|
-
/**
|
|
489
|
-
*
|
|
490
|
-
* @type {AgentUpdate}
|
|
491
|
-
* @memberof AgentGenerateRequest
|
|
492
|
-
*/
|
|
493
220
|
'existing_agent'?: AgentUpdate | null;
|
|
494
|
-
/**
|
|
495
|
-
*
|
|
496
|
-
* @type {string}
|
|
497
|
-
* @memberof AgentGenerateRequest
|
|
498
|
-
*/
|
|
499
221
|
'project_id'?: string | null;
|
|
500
222
|
}
|
|
501
223
|
/**
|
|
502
224
|
* Response model for agent generation.
|
|
503
|
-
* @export
|
|
504
|
-
* @interface AgentGenerateResponse
|
|
505
225
|
*/
|
|
506
226
|
export interface AgentGenerateResponse {
|
|
507
227
|
/**
|
|
508
228
|
* The generated agent schema
|
|
509
|
-
* @type {object}
|
|
510
|
-
* @memberof AgentGenerateResponse
|
|
511
229
|
*/
|
|
512
230
|
'agent': object;
|
|
513
231
|
/**
|
|
514
232
|
* Project ID for this conversation session
|
|
515
|
-
* @type {string}
|
|
516
|
-
* @memberof AgentGenerateResponse
|
|
517
233
|
*/
|
|
518
234
|
'project_id': string;
|
|
519
235
|
/**
|
|
520
236
|
* Human-readable summary of the generated agent
|
|
521
|
-
* @type {string}
|
|
522
|
-
* @memberof AgentGenerateResponse
|
|
523
237
|
*/
|
|
524
238
|
'summary': string;
|
|
525
239
|
/**
|
|
526
240
|
* Generated tags for the agent as ID objects: [{\'id\': 1}, {\'id\': 2}]
|
|
527
|
-
* @type {Array<{ [key: string]: number; }>}
|
|
528
|
-
* @memberof AgentGenerateResponse
|
|
529
241
|
*/
|
|
530
242
|
'tags'?: Array<{ [key: string]: number; }>;
|
|
531
243
|
/**
|
|
532
244
|
* List of autonomous tasks generated for the agent
|
|
533
|
-
* @type {Array<object>}
|
|
534
|
-
* @memberof AgentGenerateResponse
|
|
535
245
|
*/
|
|
536
246
|
'autonomous_tasks'?: Array<object>;
|
|
537
247
|
/**
|
|
538
248
|
* List of skills that were activated based on the prompt
|
|
539
|
-
* @type {Array<string>}
|
|
540
|
-
* @memberof AgentGenerateResponse
|
|
541
249
|
*/
|
|
542
250
|
'activated_skills'?: Array<string>;
|
|
543
251
|
}
|
|
544
252
|
/**
|
|
545
253
|
* 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
254
|
*/
|
|
549
255
|
export interface AgentListResponse {
|
|
550
256
|
/**
|
|
551
257
|
* List of agents
|
|
552
|
-
* @type {Array<AgentResponse>}
|
|
553
|
-
* @memberof AgentListResponse
|
|
554
258
|
*/
|
|
555
259
|
'data': Array<AgentResponse>;
|
|
556
260
|
/**
|
|
557
261
|
* Indicates if there are more items
|
|
558
|
-
* @type {boolean}
|
|
559
|
-
* @memberof AgentListResponse
|
|
560
262
|
*/
|
|
561
263
|
'has_more': boolean;
|
|
562
|
-
/**
|
|
563
|
-
*
|
|
564
|
-
* @type {string}
|
|
565
|
-
* @memberof AgentListResponse
|
|
566
|
-
*/
|
|
567
264
|
'next_cursor'?: string | null;
|
|
568
265
|
}
|
|
569
266
|
/**
|
|
570
267
|
* Response model for Agent API.
|
|
571
|
-
* @export
|
|
572
|
-
* @interface AgentResponse
|
|
573
268
|
*/
|
|
574
269
|
export interface AgentResponse {
|
|
575
270
|
/**
|
|
576
271
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
577
|
-
* @type {string}
|
|
578
|
-
* @memberof AgentResponse
|
|
579
272
|
*/
|
|
580
273
|
'id': string;
|
|
581
274
|
/**
|
|
582
275
|
* Timestamp when the agent was created, will ignore when importing
|
|
583
|
-
* @type {string}
|
|
584
|
-
* @memberof AgentResponse
|
|
585
276
|
*/
|
|
586
277
|
'created_at': string;
|
|
587
278
|
/**
|
|
588
279
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
589
|
-
* @type {string}
|
|
590
|
-
* @memberof AgentResponse
|
|
591
280
|
*/
|
|
592
281
|
'updated_at': string;
|
|
593
|
-
/**
|
|
594
|
-
*
|
|
595
|
-
* @type {string}
|
|
596
|
-
* @memberof AgentResponse
|
|
597
|
-
*/
|
|
598
282
|
'name'?: string | null;
|
|
599
|
-
/**
|
|
600
|
-
*
|
|
601
|
-
* @type {string}
|
|
602
|
-
* @memberof AgentResponse
|
|
603
|
-
*/
|
|
604
283
|
'slug'?: string | null;
|
|
605
|
-
/**
|
|
606
|
-
*
|
|
607
|
-
* @type {string}
|
|
608
|
-
* @memberof AgentResponse
|
|
609
|
-
*/
|
|
610
284
|
'description'?: string | null;
|
|
611
|
-
/**
|
|
612
|
-
*
|
|
613
|
-
* @type {string}
|
|
614
|
-
* @memberof AgentResponse
|
|
615
|
-
*/
|
|
616
285
|
'external_website'?: string | null;
|
|
617
|
-
/**
|
|
618
|
-
*
|
|
619
|
-
* @type {string}
|
|
620
|
-
* @memberof AgentResponse
|
|
621
|
-
*/
|
|
622
286
|
'picture'?: string | null;
|
|
623
|
-
/**
|
|
624
|
-
*
|
|
625
|
-
* @type {string}
|
|
626
|
-
* @memberof AgentResponse
|
|
627
|
-
*/
|
|
628
287
|
'ticker'?: string | null;
|
|
629
|
-
/**
|
|
630
|
-
*
|
|
631
|
-
* @type {string}
|
|
632
|
-
* @memberof AgentResponse
|
|
633
|
-
*/
|
|
634
288
|
'token_address'?: string | null;
|
|
635
|
-
/**
|
|
636
|
-
*
|
|
637
|
-
* @type {string}
|
|
638
|
-
* @memberof AgentResponse
|
|
639
|
-
*/
|
|
640
289
|
'token_pool'?: string | null;
|
|
641
|
-
/**
|
|
642
|
-
*
|
|
643
|
-
* @type {string}
|
|
644
|
-
* @memberof AgentResponse
|
|
645
|
-
*/
|
|
646
290
|
'mode'?: AgentResponseModeEnum | null;
|
|
647
|
-
/**
|
|
648
|
-
*
|
|
649
|
-
* @type {string}
|
|
650
|
-
* @memberof AgentResponse
|
|
651
|
-
*/
|
|
652
291
|
'fee_percentage'?: string | null;
|
|
653
|
-
/**
|
|
654
|
-
*
|
|
655
|
-
* @type {string}
|
|
656
|
-
* @memberof AgentResponse
|
|
657
|
-
*/
|
|
658
292
|
'owner'?: string | null;
|
|
659
|
-
/**
|
|
660
|
-
*
|
|
661
|
-
* @type {string}
|
|
662
|
-
* @memberof AgentResponse
|
|
663
|
-
*/
|
|
664
293
|
'upstream_id'?: string | null;
|
|
665
|
-
/**
|
|
666
|
-
*
|
|
667
|
-
* @type {object}
|
|
668
|
-
* @memberof AgentResponse
|
|
669
|
-
*/
|
|
670
294
|
'upstream_extra'?: object | null;
|
|
671
295
|
/**
|
|
672
296
|
* AI model identifier to be used by this agent for processing requests. Available models: gpt-4o, gpt-4o-mini, deepseek-chat, deepseek-reasoner, grok-2, eternalai, reigent
|
|
673
|
-
* @type {string}
|
|
674
|
-
* @memberof AgentResponse
|
|
675
297
|
*/
|
|
676
298
|
'model': string;
|
|
677
|
-
/**
|
|
678
|
-
*
|
|
679
|
-
* @type {Array<object>}
|
|
680
|
-
* @memberof AgentResponse
|
|
681
|
-
*/
|
|
682
299
|
'autonomous'?: Array<object> | null;
|
|
683
|
-
/**
|
|
684
|
-
*
|
|
685
|
-
* @type {string}
|
|
686
|
-
* @memberof AgentResponse
|
|
687
|
-
*/
|
|
688
300
|
'example_intro'?: string | null;
|
|
689
|
-
/**
|
|
690
|
-
*
|
|
691
|
-
* @type {Array<AgentExample>}
|
|
692
|
-
* @memberof AgentResponse
|
|
693
|
-
*/
|
|
694
301
|
'examples'?: Array<AgentExample> | null;
|
|
695
|
-
/**
|
|
696
|
-
*
|
|
697
|
-
* @type {object}
|
|
698
|
-
* @memberof AgentResponse
|
|
699
|
-
*/
|
|
700
302
|
'skills'?: object | null;
|
|
701
|
-
/**
|
|
702
|
-
*
|
|
703
|
-
* @type {string}
|
|
704
|
-
* @memberof AgentResponse
|
|
705
|
-
*/
|
|
706
303
|
'wallet_provider'?: AgentResponseWalletProviderEnum | null;
|
|
707
|
-
/**
|
|
708
|
-
*
|
|
709
|
-
* @type {string}
|
|
710
|
-
* @memberof AgentResponse
|
|
711
|
-
*/
|
|
712
304
|
'network_id'?: string | null;
|
|
713
|
-
/**
|
|
714
|
-
*
|
|
715
|
-
* @type {string}
|
|
716
|
-
* @memberof AgentResponse
|
|
717
|
-
*/
|
|
718
305
|
'cdp_network_id'?: string | null;
|
|
719
|
-
/**
|
|
720
|
-
*
|
|
721
|
-
* @type {boolean}
|
|
722
|
-
* @memberof AgentResponse
|
|
723
|
-
*/
|
|
724
306
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
725
|
-
/**
|
|
726
|
-
*
|
|
727
|
-
* @type {string}
|
|
728
|
-
* @memberof AgentResponse
|
|
729
|
-
*/
|
|
730
307
|
'cdp_wallet_address': string | null;
|
|
731
|
-
/**
|
|
732
|
-
*
|
|
733
|
-
* @type {string}
|
|
734
|
-
* @memberof AgentResponse
|
|
735
|
-
*/
|
|
736
308
|
'evm_wallet_address': string | null;
|
|
737
|
-
/**
|
|
738
|
-
*
|
|
739
|
-
* @type {string}
|
|
740
|
-
* @memberof AgentResponse
|
|
741
|
-
*/
|
|
742
309
|
'solana_wallet_address': string | null;
|
|
743
310
|
/**
|
|
744
311
|
* Whether the agent has linked their Twitter account
|
|
745
|
-
* @type {boolean}
|
|
746
|
-
* @memberof AgentResponse
|
|
747
312
|
*/
|
|
748
313
|
'has_twitter_linked': boolean;
|
|
749
|
-
/**
|
|
750
|
-
*
|
|
751
|
-
* @type {string}
|
|
752
|
-
* @memberof AgentResponse
|
|
753
|
-
*/
|
|
754
314
|
'linked_twitter_username': string | null;
|
|
755
|
-
/**
|
|
756
|
-
*
|
|
757
|
-
* @type {string}
|
|
758
|
-
* @memberof AgentResponse
|
|
759
|
-
*/
|
|
760
315
|
'linked_twitter_name': string | null;
|
|
761
316
|
/**
|
|
762
317
|
* Whether the agent has self-keyed their Twitter account
|
|
763
|
-
* @type {boolean}
|
|
764
|
-
* @memberof AgentResponse
|
|
765
318
|
*/
|
|
766
319
|
'has_twitter_self_key': boolean;
|
|
767
320
|
/**
|
|
768
321
|
* Whether the agent has self-keyed their Telegram account
|
|
769
|
-
* @type {boolean}
|
|
770
|
-
* @memberof AgentResponse
|
|
771
322
|
*/
|
|
772
323
|
'has_telegram_self_key': boolean;
|
|
773
|
-
/**
|
|
774
|
-
*
|
|
775
|
-
* @type {string}
|
|
776
|
-
* @memberof AgentResponse
|
|
777
|
-
*/
|
|
778
324
|
'linked_telegram_username': string | null;
|
|
779
|
-
/**
|
|
780
|
-
*
|
|
781
|
-
* @type {string}
|
|
782
|
-
* @memberof AgentResponse
|
|
783
|
-
*/
|
|
784
325
|
'linked_telegram_name': string | null;
|
|
785
326
|
/**
|
|
786
327
|
* Whether the agent accepts image inputs in public mode
|
|
787
|
-
* @type {boolean}
|
|
788
|
-
* @memberof AgentResponse
|
|
789
328
|
*/
|
|
790
329
|
'accept_image_input': boolean;
|
|
791
330
|
/**
|
|
792
331
|
* Whether the agent accepts image inputs in private mode
|
|
793
|
-
* @type {boolean}
|
|
794
|
-
* @memberof AgentResponse
|
|
795
332
|
*/
|
|
796
333
|
'accept_image_input_private': boolean;
|
|
797
334
|
}
|
|
@@ -811,8 +348,6 @@ export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProvider
|
|
|
811
348
|
|
|
812
349
|
/**
|
|
813
350
|
* Sort options for agents list.
|
|
814
|
-
* @export
|
|
815
|
-
* @enum {string}
|
|
816
351
|
*/
|
|
817
352
|
|
|
818
353
|
export const AgentSortOption = {
|
|
@@ -826,316 +361,110 @@ export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOptio
|
|
|
826
361
|
|
|
827
362
|
/**
|
|
828
363
|
* Response model for agent statistics.
|
|
829
|
-
* @export
|
|
830
|
-
* @interface AgentStatisticsResponse
|
|
831
364
|
*/
|
|
832
365
|
export interface AgentStatisticsResponse {
|
|
833
366
|
/**
|
|
834
367
|
* ID of the agent
|
|
835
|
-
* @type {string}
|
|
836
|
-
* @memberof AgentStatisticsResponse
|
|
837
368
|
*/
|
|
838
369
|
'agent_id': string;
|
|
839
370
|
/**
|
|
840
371
|
* ID of the agent\'s credit account
|
|
841
|
-
* @type {string}
|
|
842
|
-
* @memberof AgentStatisticsResponse
|
|
843
372
|
*/
|
|
844
373
|
'account_id': string;
|
|
845
374
|
/**
|
|
846
375
|
* Total balance of the agent\'s account
|
|
847
|
-
* @type {string}
|
|
848
|
-
* @memberof AgentStatisticsResponse
|
|
849
376
|
*/
|
|
850
377
|
'balance': string;
|
|
851
378
|
/**
|
|
852
379
|
* Total income from all credit events
|
|
853
|
-
* @type {string}
|
|
854
|
-
* @memberof AgentStatisticsResponse
|
|
855
380
|
*/
|
|
856
381
|
'total_income': string;
|
|
857
382
|
/**
|
|
858
383
|
* Net income from all credit events
|
|
859
|
-
* @type {string}
|
|
860
|
-
* @memberof AgentStatisticsResponse
|
|
861
384
|
*/
|
|
862
385
|
'net_income': string;
|
|
863
386
|
/**
|
|
864
387
|
* Permanent income from all credit events
|
|
865
|
-
* @type {string}
|
|
866
|
-
* @memberof AgentStatisticsResponse
|
|
867
388
|
*/
|
|
868
389
|
'permanent_income': string;
|
|
869
390
|
/**
|
|
870
391
|
* Permanent profit from all credit events
|
|
871
|
-
* @type {string}
|
|
872
|
-
* @memberof AgentStatisticsResponse
|
|
873
392
|
*/
|
|
874
393
|
'permanent_profit': string;
|
|
875
394
|
/**
|
|
876
395
|
* Income from last 24 hours
|
|
877
|
-
* @type {string}
|
|
878
|
-
* @memberof AgentStatisticsResponse
|
|
879
396
|
*/
|
|
880
397
|
'last_24h_income': string;
|
|
881
398
|
/**
|
|
882
399
|
* Permanent income from last 24 hours
|
|
883
|
-
* @type {string}
|
|
884
|
-
* @memberof AgentStatisticsResponse
|
|
885
400
|
*/
|
|
886
401
|
'last_24h_permanent_income': string;
|
|
887
402
|
/**
|
|
888
403
|
* Average action cost
|
|
889
|
-
* @type {string}
|
|
890
|
-
* @memberof AgentStatisticsResponse
|
|
891
404
|
*/
|
|
892
405
|
'avg_action_cost': string;
|
|
893
406
|
/**
|
|
894
407
|
* Minimum action cost
|
|
895
|
-
* @type {string}
|
|
896
|
-
* @memberof AgentStatisticsResponse
|
|
897
408
|
*/
|
|
898
409
|
'min_action_cost': string;
|
|
899
410
|
/**
|
|
900
411
|
* Maximum action cost
|
|
901
|
-
* @type {string}
|
|
902
|
-
* @memberof AgentStatisticsResponse
|
|
903
412
|
*/
|
|
904
413
|
'max_action_cost': string;
|
|
905
414
|
/**
|
|
906
415
|
* Low action cost
|
|
907
|
-
* @type {string}
|
|
908
|
-
* @memberof AgentStatisticsResponse
|
|
909
416
|
*/
|
|
910
417
|
'low_action_cost': string;
|
|
911
418
|
/**
|
|
912
419
|
* Medium action cost
|
|
913
|
-
* @type {string}
|
|
914
|
-
* @memberof AgentStatisticsResponse
|
|
915
420
|
*/
|
|
916
421
|
'medium_action_cost': string;
|
|
917
422
|
/**
|
|
918
423
|
* High action cost
|
|
919
|
-
* @type {string}
|
|
920
|
-
* @memberof AgentStatisticsResponse
|
|
921
424
|
*/
|
|
922
425
|
'high_action_cost': string;
|
|
923
426
|
}
|
|
924
427
|
/**
|
|
925
428
|
* Agent update model.
|
|
926
|
-
* @export
|
|
927
|
-
* @interface AgentUpdate
|
|
928
429
|
*/
|
|
929
430
|
export interface AgentUpdate {
|
|
930
|
-
/**
|
|
931
|
-
*
|
|
932
|
-
* @type {string}
|
|
933
|
-
* @memberof AgentUpdate
|
|
934
|
-
*/
|
|
935
431
|
'name': string | null;
|
|
936
|
-
/**
|
|
937
|
-
*
|
|
938
|
-
* @type {string}
|
|
939
|
-
* @memberof AgentUpdate
|
|
940
|
-
*/
|
|
941
432
|
'slug'?: string | null;
|
|
942
|
-
/**
|
|
943
|
-
*
|
|
944
|
-
* @type {string}
|
|
945
|
-
* @memberof AgentUpdate
|
|
946
|
-
*/
|
|
947
433
|
'description'?: string | null;
|
|
948
|
-
/**
|
|
949
|
-
*
|
|
950
|
-
* @type {string}
|
|
951
|
-
* @memberof AgentUpdate
|
|
952
|
-
*/
|
|
953
434
|
'external_website'?: string | null;
|
|
954
|
-
/**
|
|
955
|
-
*
|
|
956
|
-
* @type {string}
|
|
957
|
-
* @memberof AgentUpdate
|
|
958
|
-
*/
|
|
959
435
|
'picture'?: string | null;
|
|
960
|
-
/**
|
|
961
|
-
*
|
|
962
|
-
* @type {string}
|
|
963
|
-
* @memberof AgentUpdate
|
|
964
|
-
*/
|
|
965
436
|
'ticker'?: string | null;
|
|
966
|
-
/**
|
|
967
|
-
*
|
|
968
|
-
* @type {string}
|
|
969
|
-
* @memberof AgentUpdate
|
|
970
|
-
*/
|
|
971
437
|
'token_address'?: string | null;
|
|
972
|
-
/**
|
|
973
|
-
*
|
|
974
|
-
* @type {string}
|
|
975
|
-
* @memberof AgentUpdate
|
|
976
|
-
*/
|
|
977
438
|
'token_pool'?: string | null;
|
|
978
|
-
/**
|
|
979
|
-
*
|
|
980
|
-
* @type {string}
|
|
981
|
-
* @memberof AgentUpdate
|
|
982
|
-
*/
|
|
983
439
|
'mode'?: AgentUpdateModeEnum | null;
|
|
984
|
-
/**
|
|
985
|
-
*
|
|
986
|
-
* @type {FeePercentage}
|
|
987
|
-
* @memberof AgentUpdate
|
|
988
|
-
*/
|
|
989
440
|
'fee_percentage'?: FeePercentage | null;
|
|
990
|
-
/**
|
|
991
|
-
*
|
|
992
|
-
* @type {string}
|
|
993
|
-
* @memberof AgentUpdate
|
|
994
|
-
*/
|
|
995
441
|
'purpose': string | null;
|
|
996
|
-
/**
|
|
997
|
-
*
|
|
998
|
-
* @type {string}
|
|
999
|
-
* @memberof AgentUpdate
|
|
1000
|
-
*/
|
|
1001
442
|
'personality': string | null;
|
|
1002
|
-
/**
|
|
1003
|
-
*
|
|
1004
|
-
* @type {string}
|
|
1005
|
-
* @memberof AgentUpdate
|
|
1006
|
-
*/
|
|
1007
443
|
'principles': string | null;
|
|
1008
|
-
/**
|
|
1009
|
-
*
|
|
1010
|
-
* @type {string}
|
|
1011
|
-
* @memberof AgentUpdate
|
|
1012
|
-
*/
|
|
1013
444
|
'owner'?: string | null;
|
|
1014
|
-
/**
|
|
1015
|
-
*
|
|
1016
|
-
* @type {string}
|
|
1017
|
-
* @memberof AgentUpdate
|
|
1018
|
-
*/
|
|
1019
445
|
'upstream_id'?: string | null;
|
|
1020
|
-
/**
|
|
1021
|
-
*
|
|
1022
|
-
* @type {object}
|
|
1023
|
-
* @memberof AgentUpdate
|
|
1024
|
-
*/
|
|
1025
446
|
'upstream_extra'?: object | null;
|
|
1026
447
|
/**
|
|
1027
448
|
* AI model identifier to be used by this agent for processing requests.
|
|
1028
|
-
* @type {string}
|
|
1029
|
-
* @memberof AgentUpdate
|
|
1030
449
|
*/
|
|
1031
450
|
'model'?: string;
|
|
1032
|
-
/**
|
|
1033
|
-
*
|
|
1034
|
-
* @type {string}
|
|
1035
|
-
* @memberof AgentUpdate
|
|
1036
|
-
*/
|
|
1037
451
|
'prompt'?: string | null;
|
|
1038
|
-
/**
|
|
1039
|
-
*
|
|
1040
|
-
* @type {string}
|
|
1041
|
-
* @memberof AgentUpdate
|
|
1042
|
-
*/
|
|
1043
452
|
'prompt_append'?: string | null;
|
|
1044
|
-
/**
|
|
1045
|
-
*
|
|
1046
|
-
* @type {number}
|
|
1047
|
-
* @memberof AgentUpdate
|
|
1048
|
-
*/
|
|
1049
453
|
'temperature'?: number | null;
|
|
1050
|
-
/**
|
|
1051
|
-
*
|
|
1052
|
-
* @type {number}
|
|
1053
|
-
* @memberof AgentUpdate
|
|
1054
|
-
*/
|
|
1055
454
|
'frequency_penalty'?: number | null;
|
|
1056
|
-
/**
|
|
1057
|
-
*
|
|
1058
|
-
* @type {number}
|
|
1059
|
-
* @memberof AgentUpdate
|
|
1060
|
-
*/
|
|
1061
455
|
'presence_penalty'?: number | null;
|
|
1062
|
-
/**
|
|
1063
|
-
*
|
|
1064
|
-
* @type {string}
|
|
1065
|
-
* @memberof AgentUpdate
|
|
1066
|
-
*/
|
|
1067
456
|
'short_term_memory_strategy'?: AgentUpdateShortTermMemoryStrategyEnum | null;
|
|
1068
|
-
/**
|
|
1069
|
-
*
|
|
1070
|
-
* @type {Array<AgentAutonomous>}
|
|
1071
|
-
* @memberof AgentUpdate
|
|
1072
|
-
*/
|
|
1073
457
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1074
|
-
/**
|
|
1075
|
-
*
|
|
1076
|
-
* @type {string}
|
|
1077
|
-
* @memberof AgentUpdate
|
|
1078
|
-
*/
|
|
1079
458
|
'example_intro'?: string | null;
|
|
1080
|
-
/**
|
|
1081
|
-
*
|
|
1082
|
-
* @type {Array<AgentExample>}
|
|
1083
|
-
* @memberof AgentUpdate
|
|
1084
|
-
*/
|
|
1085
459
|
'examples'?: Array<AgentExample> | null;
|
|
1086
|
-
/**
|
|
1087
|
-
*
|
|
1088
|
-
* @type {object}
|
|
1089
|
-
* @memberof AgentUpdate
|
|
1090
|
-
*/
|
|
1091
460
|
'skills'?: object | null;
|
|
1092
|
-
/**
|
|
1093
|
-
*
|
|
1094
|
-
* @type {string}
|
|
1095
|
-
* @memberof AgentUpdate
|
|
1096
|
-
*/
|
|
1097
461
|
'wallet_provider'?: AgentUpdateWalletProviderEnum | null;
|
|
1098
|
-
/**
|
|
1099
|
-
*
|
|
1100
|
-
* @type {string}
|
|
1101
|
-
* @memberof AgentUpdate
|
|
1102
|
-
*/
|
|
1103
462
|
'readonly_wallet_address'?: string | null;
|
|
1104
|
-
/**
|
|
1105
|
-
*
|
|
1106
|
-
* @type {string}
|
|
1107
|
-
* @memberof AgentUpdate
|
|
1108
|
-
*/
|
|
1109
463
|
'network_id'?: AgentUpdateNetworkIdEnum | null;
|
|
1110
|
-
/**
|
|
1111
|
-
*
|
|
1112
|
-
* @type {string}
|
|
1113
|
-
* @memberof AgentUpdate
|
|
1114
|
-
*/
|
|
1115
464
|
'cdp_network_id'?: AgentUpdateCdpNetworkIdEnum | null;
|
|
1116
|
-
/**
|
|
1117
|
-
*
|
|
1118
|
-
* @type {boolean}
|
|
1119
|
-
* @memberof AgentUpdate
|
|
1120
|
-
*/
|
|
1121
465
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1122
|
-
/**
|
|
1123
|
-
*
|
|
1124
|
-
* @type {string}
|
|
1125
|
-
* @memberof AgentUpdate
|
|
1126
|
-
*/
|
|
1127
466
|
'telegram_entrypoint_prompt'?: string | null;
|
|
1128
|
-
/**
|
|
1129
|
-
*
|
|
1130
|
-
* @type {object}
|
|
1131
|
-
* @memberof AgentUpdate
|
|
1132
|
-
*/
|
|
1133
467
|
'telegram_config'?: object | null;
|
|
1134
|
-
/**
|
|
1135
|
-
*
|
|
1136
|
-
* @type {string}
|
|
1137
|
-
* @memberof AgentUpdate
|
|
1138
|
-
*/
|
|
1139
468
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
1140
469
|
}
|
|
1141
470
|
|
|
@@ -1189,27 +518,19 @@ export type AgentUpdateCdpNetworkIdEnum = typeof AgentUpdateCdpNetworkIdEnum[key
|
|
|
1189
518
|
|
|
1190
519
|
/**
|
|
1191
520
|
* Model for individual asset with symbol and balance.
|
|
1192
|
-
* @export
|
|
1193
|
-
* @interface Asset
|
|
1194
521
|
*/
|
|
1195
522
|
export interface Asset {
|
|
1196
523
|
/**
|
|
1197
524
|
* Asset symbol (e.g., ETH, USDC, NATION)
|
|
1198
|
-
* @type {string}
|
|
1199
|
-
* @memberof Asset
|
|
1200
525
|
*/
|
|
1201
526
|
'symbol': string;
|
|
1202
527
|
/**
|
|
1203
528
|
* Asset balance as decimal
|
|
1204
|
-
* @type {string}
|
|
1205
|
-
* @memberof Asset
|
|
1206
529
|
*/
|
|
1207
530
|
'balance': string;
|
|
1208
531
|
}
|
|
1209
532
|
/**
|
|
1210
533
|
* Type of message author.
|
|
1211
|
-
* @export
|
|
1212
|
-
* @enum {string}
|
|
1213
534
|
*/
|
|
1214
535
|
|
|
1215
536
|
export const AuthorType = {
|
|
@@ -1229,195 +550,95 @@ export type AuthorType = typeof AuthorType[keyof typeof AuthorType];
|
|
|
1229
550
|
|
|
1230
551
|
/**
|
|
1231
552
|
* Chat model with all fields including server-generated ones.
|
|
1232
|
-
* @export
|
|
1233
|
-
* @interface Chat
|
|
1234
553
|
*/
|
|
1235
554
|
export interface Chat {
|
|
1236
555
|
/**
|
|
1237
556
|
* Unique identifier for the chat
|
|
1238
|
-
* @type {string}
|
|
1239
|
-
* @memberof Chat
|
|
1240
557
|
*/
|
|
1241
558
|
'id'?: string;
|
|
1242
559
|
/**
|
|
1243
560
|
* ID of the agent this chat belongs to
|
|
1244
|
-
* @type {string}
|
|
1245
|
-
* @memberof Chat
|
|
1246
561
|
*/
|
|
1247
562
|
'agent_id': string;
|
|
1248
563
|
/**
|
|
1249
564
|
* User ID of the chat
|
|
1250
|
-
* @type {string}
|
|
1251
|
-
* @memberof Chat
|
|
1252
565
|
*/
|
|
1253
566
|
'user_id': string;
|
|
1254
567
|
/**
|
|
1255
568
|
* Summary of the chat
|
|
1256
|
-
* @type {string}
|
|
1257
|
-
* @memberof Chat
|
|
1258
569
|
*/
|
|
1259
570
|
'summary'?: string;
|
|
1260
571
|
/**
|
|
1261
572
|
* Number of rounds in the chat
|
|
1262
|
-
* @type {number}
|
|
1263
|
-
* @memberof Chat
|
|
1264
573
|
*/
|
|
1265
574
|
'rounds'?: number;
|
|
1266
575
|
/**
|
|
1267
576
|
* Timestamp when this chat was created
|
|
1268
|
-
* @type {string}
|
|
1269
|
-
* @memberof Chat
|
|
1270
577
|
*/
|
|
1271
578
|
'created_at': string;
|
|
1272
579
|
/**
|
|
1273
580
|
* Timestamp when this chat was updated
|
|
1274
|
-
* @type {string}
|
|
1275
|
-
* @memberof Chat
|
|
1276
581
|
*/
|
|
1277
582
|
'updated_at': string;
|
|
1278
583
|
}
|
|
1279
584
|
/**
|
|
1280
585
|
* Chat message model with all fields including server-generated ones.
|
|
1281
|
-
* @export
|
|
1282
|
-
* @interface ChatMessage
|
|
1283
586
|
*/
|
|
1284
587
|
export interface ChatMessage {
|
|
1285
588
|
/**
|
|
1286
589
|
* Unique identifier for the chat message
|
|
1287
|
-
* @type {string}
|
|
1288
|
-
* @memberof ChatMessage
|
|
1289
590
|
*/
|
|
1290
591
|
'id'?: string;
|
|
1291
592
|
/**
|
|
1292
593
|
* ID of the agent this message belongs to
|
|
1293
|
-
* @type {string}
|
|
1294
|
-
* @memberof ChatMessage
|
|
1295
594
|
*/
|
|
1296
595
|
'agent_id': string;
|
|
1297
596
|
/**
|
|
1298
597
|
* ID of the chat this message belongs to
|
|
1299
|
-
* @type {string}
|
|
1300
|
-
* @memberof ChatMessage
|
|
1301
598
|
*/
|
|
1302
599
|
'chat_id': string;
|
|
1303
|
-
/**
|
|
1304
|
-
*
|
|
1305
|
-
* @type {string}
|
|
1306
|
-
* @memberof ChatMessage
|
|
1307
|
-
*/
|
|
1308
600
|
'user_id': string | null;
|
|
1309
601
|
/**
|
|
1310
602
|
* ID of the message author
|
|
1311
|
-
* @type {string}
|
|
1312
|
-
* @memberof ChatMessage
|
|
1313
603
|
*/
|
|
1314
604
|
'author_id': string;
|
|
1315
605
|
/**
|
|
1316
606
|
* Type of the message author
|
|
1317
|
-
* @type {AuthorType}
|
|
1318
|
-
* @memberof ChatMessage
|
|
1319
607
|
*/
|
|
1320
608
|
'author_type': AuthorType;
|
|
1321
|
-
/**
|
|
1322
|
-
*
|
|
1323
|
-
* @type {string}
|
|
1324
|
-
* @memberof ChatMessage
|
|
1325
|
-
*/
|
|
1326
609
|
'model'?: string | null;
|
|
1327
|
-
/**
|
|
1328
|
-
*
|
|
1329
|
-
* @type {AuthorType}
|
|
1330
|
-
* @memberof ChatMessage
|
|
1331
|
-
*/
|
|
1332
610
|
'thread_type'?: AuthorType | null;
|
|
1333
|
-
/**
|
|
1334
|
-
*
|
|
1335
|
-
* @type {string}
|
|
1336
|
-
* @memberof ChatMessage
|
|
1337
|
-
*/
|
|
1338
611
|
'reply_to'?: string | null;
|
|
1339
612
|
/**
|
|
1340
613
|
* Content of the message
|
|
1341
|
-
* @type {string}
|
|
1342
|
-
* @memberof ChatMessage
|
|
1343
614
|
*/
|
|
1344
615
|
'message': string;
|
|
1345
|
-
/**
|
|
1346
|
-
*
|
|
1347
|
-
* @type {Array<ChatMessageAttachment>}
|
|
1348
|
-
* @memberof ChatMessage
|
|
1349
|
-
*/
|
|
1350
616
|
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
1351
|
-
/**
|
|
1352
|
-
*
|
|
1353
|
-
* @type {Array<ChatMessageSkillCall>}
|
|
1354
|
-
* @memberof ChatMessage
|
|
1355
|
-
*/
|
|
1356
617
|
'skill_calls'?: Array<ChatMessageSkillCall> | null;
|
|
1357
618
|
/**
|
|
1358
619
|
* Number of tokens in the input message
|
|
1359
|
-
* @type {number}
|
|
1360
|
-
* @memberof ChatMessage
|
|
1361
620
|
*/
|
|
1362
621
|
'input_tokens'?: number;
|
|
1363
622
|
/**
|
|
1364
623
|
* Number of tokens in the output message
|
|
1365
|
-
* @type {number}
|
|
1366
|
-
* @memberof ChatMessage
|
|
1367
624
|
*/
|
|
1368
625
|
'output_tokens'?: number;
|
|
1369
626
|
/**
|
|
1370
627
|
* Time cost for the message in seconds
|
|
1371
|
-
* @type {number}
|
|
1372
|
-
* @memberof ChatMessage
|
|
1373
628
|
*/
|
|
1374
629
|
'time_cost'?: number;
|
|
1375
|
-
/**
|
|
1376
|
-
*
|
|
1377
|
-
* @type {string}
|
|
1378
|
-
* @memberof ChatMessage
|
|
1379
|
-
*/
|
|
1380
630
|
'credit_event_id'?: string | null;
|
|
1381
|
-
/**
|
|
1382
|
-
*
|
|
1383
|
-
* @type {string}
|
|
1384
|
-
* @memberof ChatMessage
|
|
1385
|
-
*/
|
|
1386
631
|
'credit_cost'?: string | null;
|
|
1387
632
|
/**
|
|
1388
633
|
* Cost for the cold start of the message in seconds
|
|
1389
|
-
* @type {number}
|
|
1390
|
-
* @memberof ChatMessage
|
|
1391
634
|
*/
|
|
1392
635
|
'cold_start_cost'?: number;
|
|
1393
|
-
/**
|
|
1394
|
-
*
|
|
1395
|
-
* @type {string}
|
|
1396
|
-
* @memberof ChatMessage
|
|
1397
|
-
*/
|
|
1398
636
|
'app_id'?: string | null;
|
|
1399
|
-
/**
|
|
1400
|
-
*
|
|
1401
|
-
* @type {boolean}
|
|
1402
|
-
* @memberof ChatMessage
|
|
1403
|
-
*/
|
|
1404
637
|
'search_mode'?: boolean | null;
|
|
1405
|
-
/**
|
|
1406
|
-
*
|
|
1407
|
-
* @type {boolean}
|
|
1408
|
-
* @memberof ChatMessage
|
|
1409
|
-
*/
|
|
1410
638
|
'super_mode'?: boolean | null;
|
|
1411
|
-
/**
|
|
1412
|
-
*
|
|
1413
|
-
* @type {SystemMessageType}
|
|
1414
|
-
* @memberof ChatMessage
|
|
1415
|
-
*/
|
|
1416
639
|
'error_type'?: SystemMessageType | null;
|
|
1417
640
|
/**
|
|
1418
641
|
* Timestamp when this message was created
|
|
1419
|
-
* @type {string}
|
|
1420
|
-
* @memberof ChatMessage
|
|
1421
642
|
*/
|
|
1422
643
|
'created_at': string;
|
|
1423
644
|
}
|
|
@@ -1425,35 +646,19 @@ export interface ChatMessage {
|
|
|
1425
646
|
|
|
1426
647
|
/**
|
|
1427
648
|
* Chat message attachment model. An attachment can be a link, image, or file that is associated with a chat message.
|
|
1428
|
-
* @export
|
|
1429
|
-
* @interface ChatMessageAttachment
|
|
1430
649
|
*/
|
|
1431
650
|
export interface ChatMessageAttachment {
|
|
1432
651
|
/**
|
|
1433
652
|
* Type of the attachment (link, image, or file)
|
|
1434
|
-
* @type {ChatMessageAttachmentType}
|
|
1435
|
-
* @memberof ChatMessageAttachment
|
|
1436
653
|
*/
|
|
1437
654
|
'type': ChatMessageAttachmentType;
|
|
1438
|
-
/**
|
|
1439
|
-
*
|
|
1440
|
-
* @type {string}
|
|
1441
|
-
* @memberof ChatMessageAttachment
|
|
1442
|
-
*/
|
|
1443
655
|
'url': string | null;
|
|
1444
|
-
/**
|
|
1445
|
-
*
|
|
1446
|
-
* @type {object}
|
|
1447
|
-
* @memberof ChatMessageAttachment
|
|
1448
|
-
*/
|
|
1449
656
|
'json'?: object | null;
|
|
1450
657
|
}
|
|
1451
658
|
|
|
1452
659
|
|
|
1453
660
|
/**
|
|
1454
661
|
* Type of chat message attachment.
|
|
1455
|
-
* @export
|
|
1456
|
-
* @enum {string}
|
|
1457
662
|
*/
|
|
1458
663
|
|
|
1459
664
|
export const ChatMessageAttachmentType = {
|
|
@@ -1468,222 +673,93 @@ export type ChatMessageAttachmentType = typeof ChatMessageAttachmentType[keyof t
|
|
|
1468
673
|
|
|
1469
674
|
/**
|
|
1470
675
|
* Request model for chat messages. This model represents the request body for creating a new chat message. It contains the necessary fields to identify the chat context and message content, along with optional attachments. The user ID is obtained from authentication and not included in the request body.
|
|
1471
|
-
* @export
|
|
1472
|
-
* @interface ChatMessageRequest
|
|
1473
676
|
*/
|
|
1474
677
|
export interface ChatMessageRequest {
|
|
1475
|
-
/**
|
|
1476
|
-
*
|
|
1477
|
-
* @type {string}
|
|
1478
|
-
* @memberof ChatMessageRequest
|
|
1479
|
-
*/
|
|
1480
678
|
'app_id'?: string | null;
|
|
1481
679
|
/**
|
|
1482
680
|
* Content of the message
|
|
1483
|
-
* @type {string}
|
|
1484
|
-
* @memberof ChatMessageRequest
|
|
1485
681
|
*/
|
|
1486
682
|
'message': string;
|
|
1487
|
-
/**
|
|
1488
|
-
*
|
|
1489
|
-
* @type {boolean}
|
|
1490
|
-
* @memberof ChatMessageRequest
|
|
1491
|
-
*/
|
|
1492
683
|
'stream'?: boolean | null;
|
|
1493
|
-
/**
|
|
1494
|
-
*
|
|
1495
|
-
* @type {boolean}
|
|
1496
|
-
* @memberof ChatMessageRequest
|
|
1497
|
-
*/
|
|
1498
684
|
'search_mode'?: boolean | null;
|
|
1499
|
-
/**
|
|
1500
|
-
*
|
|
1501
|
-
* @type {boolean}
|
|
1502
|
-
* @memberof ChatMessageRequest
|
|
1503
|
-
*/
|
|
1504
685
|
'super_mode'?: boolean | null;
|
|
1505
|
-
/**
|
|
1506
|
-
*
|
|
1507
|
-
* @type {Array<ChatMessageAttachment>}
|
|
1508
|
-
* @memberof ChatMessageRequest
|
|
1509
|
-
*/
|
|
1510
686
|
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
1511
687
|
}
|
|
1512
688
|
/**
|
|
1513
689
|
* TypedDict for skill call details.
|
|
1514
|
-
* @export
|
|
1515
|
-
* @interface ChatMessageSkillCall
|
|
1516
690
|
*/
|
|
1517
691
|
export interface ChatMessageSkillCall {
|
|
1518
|
-
/**
|
|
1519
|
-
*
|
|
1520
|
-
* @type {string}
|
|
1521
|
-
* @memberof ChatMessageSkillCall
|
|
1522
|
-
*/
|
|
1523
692
|
'id'?: string;
|
|
1524
|
-
/**
|
|
1525
|
-
*
|
|
1526
|
-
* @type {string}
|
|
1527
|
-
* @memberof ChatMessageSkillCall
|
|
1528
|
-
*/
|
|
1529
693
|
'name': string;
|
|
1530
|
-
/**
|
|
1531
|
-
*
|
|
1532
|
-
* @type {object}
|
|
1533
|
-
* @memberof ChatMessageSkillCall
|
|
1534
|
-
*/
|
|
1535
694
|
'parameters': object;
|
|
1536
|
-
/**
|
|
1537
|
-
*
|
|
1538
|
-
* @type {boolean}
|
|
1539
|
-
* @memberof ChatMessageSkillCall
|
|
1540
|
-
*/
|
|
1541
695
|
'success': boolean;
|
|
1542
|
-
/**
|
|
1543
|
-
*
|
|
1544
|
-
* @type {string}
|
|
1545
|
-
* @memberof ChatMessageSkillCall
|
|
1546
|
-
*/
|
|
1547
696
|
'response'?: string;
|
|
1548
|
-
/**
|
|
1549
|
-
*
|
|
1550
|
-
* @type {string}
|
|
1551
|
-
* @memberof ChatMessageSkillCall
|
|
1552
|
-
*/
|
|
1553
697
|
'error_message'?: string;
|
|
1554
|
-
|
|
1555
|
-
*
|
|
1556
|
-
* @type {string}
|
|
1557
|
-
* @memberof ChatMessageSkillCall
|
|
1558
|
-
*/
|
|
1559
|
-
'credit_event_id'?: string;
|
|
1560
|
-
/**
|
|
1561
|
-
*
|
|
1562
|
-
* @type {string}
|
|
1563
|
-
* @memberof ChatMessageSkillCall
|
|
1564
|
-
*/
|
|
698
|
+
'credit_event_id'?: string;
|
|
1565
699
|
'credit_cost'?: string;
|
|
1566
700
|
}
|
|
1567
701
|
/**
|
|
1568
702
|
* Response model for chat messages with pagination.
|
|
1569
|
-
* @export
|
|
1570
|
-
* @interface ChatMessagesResponse
|
|
1571
703
|
*/
|
|
1572
704
|
export interface ChatMessagesResponse {
|
|
1573
|
-
/**
|
|
1574
|
-
*
|
|
1575
|
-
* @type {Array<ChatMessage>}
|
|
1576
|
-
* @memberof ChatMessagesResponse
|
|
1577
|
-
*/
|
|
1578
705
|
'data': Array<ChatMessage>;
|
|
1579
|
-
/**
|
|
1580
|
-
*
|
|
1581
|
-
* @type {boolean}
|
|
1582
|
-
* @memberof ChatMessagesResponse
|
|
1583
|
-
*/
|
|
1584
706
|
'has_more'?: boolean;
|
|
1585
|
-
/**
|
|
1586
|
-
*
|
|
1587
|
-
* @type {string}
|
|
1588
|
-
* @memberof ChatMessagesResponse
|
|
1589
|
-
*/
|
|
1590
707
|
'next_cursor'?: string | null;
|
|
1591
708
|
}
|
|
1592
709
|
/**
|
|
1593
710
|
* Request model for updating a chat thread.
|
|
1594
|
-
* @export
|
|
1595
|
-
* @interface ChatUpdateRequest
|
|
1596
711
|
*/
|
|
1597
712
|
export interface ChatUpdateRequest {
|
|
1598
713
|
/**
|
|
1599
714
|
* Updated summary for the chat thread
|
|
1600
|
-
* @type {string}
|
|
1601
|
-
* @memberof ChatUpdateRequest
|
|
1602
715
|
*/
|
|
1603
716
|
'summary': string;
|
|
1604
717
|
}
|
|
1605
718
|
/**
|
|
1606
719
|
* Credit account model with all fields.
|
|
1607
|
-
* @export
|
|
1608
|
-
* @interface CreditAccount
|
|
1609
720
|
*/
|
|
1610
721
|
export interface CreditAccount {
|
|
1611
722
|
/**
|
|
1612
723
|
* Unique identifier for the credit account
|
|
1613
|
-
* @type {string}
|
|
1614
|
-
* @memberof CreditAccount
|
|
1615
724
|
*/
|
|
1616
725
|
'id'?: string;
|
|
1617
726
|
/**
|
|
1618
727
|
* Type of the account owner
|
|
1619
|
-
* @type {OwnerType}
|
|
1620
|
-
* @memberof CreditAccount
|
|
1621
728
|
*/
|
|
1622
729
|
'owner_type': OwnerType;
|
|
1623
730
|
/**
|
|
1624
731
|
* ID of the account owner
|
|
1625
|
-
* @type {string}
|
|
1626
|
-
* @memberof CreditAccount
|
|
1627
732
|
*/
|
|
1628
733
|
'owner_id': string;
|
|
1629
734
|
/**
|
|
1630
735
|
* Daily credit quota that resets each day
|
|
1631
|
-
* @type {string}
|
|
1632
|
-
* @memberof CreditAccount
|
|
1633
736
|
*/
|
|
1634
737
|
'free_quota'?: string;
|
|
1635
738
|
/**
|
|
1636
739
|
* Amount to refill hourly, not exceeding free_quota
|
|
1637
|
-
* @type {string}
|
|
1638
|
-
* @memberof CreditAccount
|
|
1639
740
|
*/
|
|
1640
741
|
'refill_amount'?: string;
|
|
1641
742
|
/**
|
|
1642
743
|
* Current available daily credits
|
|
1643
|
-
* @type {string}
|
|
1644
|
-
* @memberof CreditAccount
|
|
1645
744
|
*/
|
|
1646
745
|
'free_credits'?: string;
|
|
1647
746
|
/**
|
|
1648
747
|
* Reward credits earned through rewards
|
|
1649
|
-
* @type {string}
|
|
1650
|
-
* @memberof CreditAccount
|
|
1651
748
|
*/
|
|
1652
749
|
'reward_credits'?: string;
|
|
1653
750
|
/**
|
|
1654
751
|
* Credits added through top-ups
|
|
1655
|
-
* @type {string}
|
|
1656
|
-
* @memberof CreditAccount
|
|
1657
752
|
*/
|
|
1658
753
|
'credits'?: string;
|
|
1659
|
-
/**
|
|
1660
|
-
*
|
|
1661
|
-
* @type {string}
|
|
1662
|
-
* @memberof CreditAccount
|
|
1663
|
-
*/
|
|
1664
754
|
'income_at'?: string | null;
|
|
1665
|
-
/**
|
|
1666
|
-
*
|
|
1667
|
-
* @type {string}
|
|
1668
|
-
* @memberof CreditAccount
|
|
1669
|
-
*/
|
|
1670
755
|
'expense_at'?: string | null;
|
|
1671
|
-
/**
|
|
1672
|
-
*
|
|
1673
|
-
* @type {string}
|
|
1674
|
-
* @memberof CreditAccount
|
|
1675
|
-
*/
|
|
1676
756
|
'last_event_id'?: string | null;
|
|
1677
757
|
/**
|
|
1678
758
|
* Timestamp when this account was created
|
|
1679
|
-
* @type {string}
|
|
1680
|
-
* @memberof CreditAccount
|
|
1681
759
|
*/
|
|
1682
760
|
'created_at': string;
|
|
1683
761
|
/**
|
|
1684
762
|
* Timestamp when this account was last updated
|
|
1685
|
-
* @type {string}
|
|
1686
|
-
* @memberof CreditAccount
|
|
1687
763
|
*/
|
|
1688
764
|
'updated_at': string;
|
|
1689
765
|
}
|
|
@@ -1691,8 +767,6 @@ export interface CreditAccount {
|
|
|
1691
767
|
|
|
1692
768
|
/**
|
|
1693
769
|
* Credit or debit transaction.
|
|
1694
|
-
* @export
|
|
1695
|
-
* @enum {string}
|
|
1696
770
|
*/
|
|
1697
771
|
|
|
1698
772
|
export const CreditDebit = {
|
|
@@ -1705,278 +779,81 @@ export type CreditDebit = typeof CreditDebit[keyof typeof CreditDebit];
|
|
|
1705
779
|
|
|
1706
780
|
/**
|
|
1707
781
|
* Credit event model with all fields.
|
|
1708
|
-
* @export
|
|
1709
|
-
* @interface CreditEvent
|
|
1710
782
|
*/
|
|
1711
783
|
export interface CreditEvent {
|
|
1712
784
|
/**
|
|
1713
785
|
* Unique identifier for the credit event
|
|
1714
|
-
* @type {string}
|
|
1715
|
-
* @memberof CreditEvent
|
|
1716
786
|
*/
|
|
1717
787
|
'id'?: string;
|
|
1718
788
|
/**
|
|
1719
789
|
* Account ID from which credits flow
|
|
1720
|
-
* @type {string}
|
|
1721
|
-
* @memberof CreditEvent
|
|
1722
790
|
*/
|
|
1723
791
|
'account_id'?: string;
|
|
1724
792
|
/**
|
|
1725
793
|
* Type of the event
|
|
1726
|
-
* @type {EventType}
|
|
1727
|
-
* @memberof CreditEvent
|
|
1728
794
|
*/
|
|
1729
795
|
'event_type': EventType;
|
|
1730
|
-
/**
|
|
1731
|
-
*
|
|
1732
|
-
* @type {string}
|
|
1733
|
-
* @memberof CreditEvent
|
|
1734
|
-
*/
|
|
1735
796
|
'user_id'?: string | null;
|
|
1736
797
|
/**
|
|
1737
798
|
* Type of upstream transaction
|
|
1738
|
-
* @type {UpstreamType}
|
|
1739
|
-
* @memberof CreditEvent
|
|
1740
799
|
*/
|
|
1741
800
|
'upstream_type': UpstreamType;
|
|
1742
801
|
/**
|
|
1743
802
|
* Upstream transaction ID if any
|
|
1744
|
-
* @type {string}
|
|
1745
|
-
* @memberof CreditEvent
|
|
1746
803
|
*/
|
|
1747
804
|
'upstream_tx_id': string;
|
|
1748
|
-
/**
|
|
1749
|
-
*
|
|
1750
|
-
* @type {string}
|
|
1751
|
-
* @memberof CreditEvent
|
|
1752
|
-
*/
|
|
1753
805
|
'agent_id'?: string | null;
|
|
1754
|
-
/**
|
|
1755
|
-
*
|
|
1756
|
-
* @type {string}
|
|
1757
|
-
* @memberof CreditEvent
|
|
1758
|
-
*/
|
|
1759
806
|
'agent_wallet_address'?: string | null;
|
|
1760
|
-
/**
|
|
1761
|
-
*
|
|
1762
|
-
* @type {string}
|
|
1763
|
-
* @memberof CreditEvent
|
|
1764
|
-
*/
|
|
1765
807
|
'start_message_id'?: string | null;
|
|
1766
|
-
/**
|
|
1767
|
-
*
|
|
1768
|
-
* @type {string}
|
|
1769
|
-
* @memberof CreditEvent
|
|
1770
|
-
*/
|
|
1771
808
|
'message_id'?: string | null;
|
|
1772
|
-
/**
|
|
1773
|
-
*
|
|
1774
|
-
* @type {string}
|
|
1775
|
-
* @memberof CreditEvent
|
|
1776
|
-
*/
|
|
1777
809
|
'model'?: string | null;
|
|
1778
|
-
/**
|
|
1779
|
-
*
|
|
1780
|
-
* @type {string}
|
|
1781
|
-
* @memberof CreditEvent
|
|
1782
|
-
*/
|
|
1783
810
|
'skill_call_id'?: string | null;
|
|
1784
|
-
/**
|
|
1785
|
-
*
|
|
1786
|
-
* @type {string}
|
|
1787
|
-
* @memberof CreditEvent
|
|
1788
|
-
*/
|
|
1789
811
|
'skill_name'?: string | null;
|
|
1790
812
|
/**
|
|
1791
813
|
* Direction of the credit flow
|
|
1792
|
-
* @type {Direction}
|
|
1793
|
-
* @memberof CreditEvent
|
|
1794
814
|
*/
|
|
1795
815
|
'direction': Direction;
|
|
1796
816
|
/**
|
|
1797
817
|
* Total amount (after discount) of credits involved
|
|
1798
|
-
* @type {string}
|
|
1799
|
-
* @memberof CreditEvent
|
|
1800
818
|
*/
|
|
1801
819
|
'total_amount'?: string;
|
|
1802
820
|
/**
|
|
1803
821
|
* Type of credits involved
|
|
1804
|
-
* @type {CreditType}
|
|
1805
|
-
* @memberof CreditEvent
|
|
1806
822
|
*/
|
|
1807
823
|
'credit_type': CreditType;
|
|
1808
|
-
/**
|
|
1809
|
-
*
|
|
1810
|
-
* @type {Array<CreditType>}
|
|
1811
|
-
* @memberof CreditEvent
|
|
1812
|
-
*/
|
|
1813
824
|
'credit_types'?: Array<CreditType> | null;
|
|
1814
|
-
/**
|
|
1815
|
-
*
|
|
1816
|
-
* @type {string}
|
|
1817
|
-
* @memberof CreditEvent
|
|
1818
|
-
*/
|
|
1819
825
|
'balance_after'?: string | null;
|
|
1820
826
|
/**
|
|
1821
827
|
* Base amount of credits involved
|
|
1822
|
-
* @type {string}
|
|
1823
|
-
* @memberof CreditEvent
|
|
1824
828
|
*/
|
|
1825
829
|
'base_amount'?: string;
|
|
1826
|
-
/**
|
|
1827
|
-
*
|
|
1828
|
-
* @type {string}
|
|
1829
|
-
* @memberof CreditEvent
|
|
1830
|
-
*/
|
|
1831
830
|
'base_discount_amount'?: string | null;
|
|
1832
|
-
/**
|
|
1833
|
-
*
|
|
1834
|
-
* @type {string}
|
|
1835
|
-
* @memberof CreditEvent
|
|
1836
|
-
*/
|
|
1837
831
|
'base_original_amount'?: string | null;
|
|
1838
|
-
/**
|
|
1839
|
-
*
|
|
1840
|
-
* @type {string}
|
|
1841
|
-
* @memberof CreditEvent
|
|
1842
|
-
*/
|
|
1843
832
|
'base_llm_amount'?: string | null;
|
|
1844
|
-
/**
|
|
1845
|
-
*
|
|
1846
|
-
* @type {string}
|
|
1847
|
-
* @memberof CreditEvent
|
|
1848
|
-
*/
|
|
1849
833
|
'base_skill_amount'?: string | null;
|
|
1850
|
-
/**
|
|
1851
|
-
*
|
|
1852
|
-
* @type {string}
|
|
1853
|
-
* @memberof CreditEvent
|
|
1854
|
-
*/
|
|
1855
834
|
'base_free_amount'?: string | null;
|
|
1856
|
-
/**
|
|
1857
|
-
*
|
|
1858
|
-
* @type {string}
|
|
1859
|
-
* @memberof CreditEvent
|
|
1860
|
-
*/
|
|
1861
835
|
'base_reward_amount'?: string | null;
|
|
1862
|
-
/**
|
|
1863
|
-
*
|
|
1864
|
-
* @type {string}
|
|
1865
|
-
* @memberof CreditEvent
|
|
1866
|
-
*/
|
|
1867
836
|
'base_permanent_amount'?: string | null;
|
|
1868
|
-
/**
|
|
1869
|
-
*
|
|
1870
|
-
* @type {string}
|
|
1871
|
-
* @memberof CreditEvent
|
|
1872
|
-
*/
|
|
1873
837
|
'fee_platform_amount'?: string | null;
|
|
1874
|
-
/**
|
|
1875
|
-
*
|
|
1876
|
-
* @type {string}
|
|
1877
|
-
* @memberof CreditEvent
|
|
1878
|
-
*/
|
|
1879
838
|
'fee_platform_free_amount'?: string | null;
|
|
1880
|
-
/**
|
|
1881
|
-
*
|
|
1882
|
-
* @type {string}
|
|
1883
|
-
* @memberof CreditEvent
|
|
1884
|
-
*/
|
|
1885
839
|
'fee_platform_reward_amount'?: string | null;
|
|
1886
|
-
/**
|
|
1887
|
-
*
|
|
1888
|
-
* @type {string}
|
|
1889
|
-
* @memberof CreditEvent
|
|
1890
|
-
*/
|
|
1891
840
|
'fee_platform_permanent_amount'?: string | null;
|
|
1892
|
-
/**
|
|
1893
|
-
*
|
|
1894
|
-
* @type {string}
|
|
1895
|
-
* @memberof CreditEvent
|
|
1896
|
-
*/
|
|
1897
841
|
'fee_dev_account'?: string | null;
|
|
1898
|
-
/**
|
|
1899
|
-
*
|
|
1900
|
-
* @type {string}
|
|
1901
|
-
* @memberof CreditEvent
|
|
1902
|
-
*/
|
|
1903
842
|
'fee_dev_amount'?: string | null;
|
|
1904
|
-
/**
|
|
1905
|
-
*
|
|
1906
|
-
* @type {string}
|
|
1907
|
-
* @memberof CreditEvent
|
|
1908
|
-
*/
|
|
1909
843
|
'fee_dev_free_amount'?: string | null;
|
|
1910
|
-
/**
|
|
1911
|
-
*
|
|
1912
|
-
* @type {string}
|
|
1913
|
-
* @memberof CreditEvent
|
|
1914
|
-
*/
|
|
1915
844
|
'fee_dev_reward_amount'?: string | null;
|
|
1916
|
-
/**
|
|
1917
|
-
*
|
|
1918
|
-
* @type {string}
|
|
1919
|
-
* @memberof CreditEvent
|
|
1920
|
-
*/
|
|
1921
845
|
'fee_dev_permanent_amount'?: string | null;
|
|
1922
|
-
/**
|
|
1923
|
-
*
|
|
1924
|
-
* @type {string}
|
|
1925
|
-
* @memberof CreditEvent
|
|
1926
|
-
*/
|
|
1927
846
|
'fee_agent_account'?: string | null;
|
|
1928
|
-
/**
|
|
1929
|
-
*
|
|
1930
|
-
* @type {string}
|
|
1931
|
-
* @memberof CreditEvent
|
|
1932
|
-
*/
|
|
1933
847
|
'fee_agent_amount'?: string | null;
|
|
1934
|
-
/**
|
|
1935
|
-
*
|
|
1936
|
-
* @type {string}
|
|
1937
|
-
* @memberof CreditEvent
|
|
1938
|
-
*/
|
|
1939
848
|
'fee_agent_free_amount'?: string | null;
|
|
1940
|
-
/**
|
|
1941
|
-
*
|
|
1942
|
-
* @type {string}
|
|
1943
|
-
* @memberof CreditEvent
|
|
1944
|
-
*/
|
|
1945
849
|
'fee_agent_reward_amount'?: string | null;
|
|
1946
|
-
/**
|
|
1947
|
-
*
|
|
1948
|
-
* @type {string}
|
|
1949
|
-
* @memberof CreditEvent
|
|
1950
|
-
*/
|
|
1951
850
|
'fee_agent_permanent_amount'?: string | null;
|
|
1952
|
-
/**
|
|
1953
|
-
*
|
|
1954
|
-
* @type {string}
|
|
1955
|
-
* @memberof CreditEvent
|
|
1956
|
-
*/
|
|
1957
851
|
'free_amount'?: string | null;
|
|
1958
|
-
/**
|
|
1959
|
-
*
|
|
1960
|
-
* @type {string}
|
|
1961
|
-
* @memberof CreditEvent
|
|
1962
|
-
*/
|
|
1963
852
|
'reward_amount'?: string | null;
|
|
1964
|
-
/**
|
|
1965
|
-
*
|
|
1966
|
-
* @type {string}
|
|
1967
|
-
* @memberof CreditEvent
|
|
1968
|
-
*/
|
|
1969
853
|
'permanent_amount'?: string | null;
|
|
1970
|
-
/**
|
|
1971
|
-
*
|
|
1972
|
-
* @type {string}
|
|
1973
|
-
* @memberof CreditEvent
|
|
1974
|
-
*/
|
|
1975
854
|
'note'?: string | null;
|
|
1976
855
|
/**
|
|
1977
856
|
* Timestamp when this event was created
|
|
1978
|
-
* @type {string}
|
|
1979
|
-
* @memberof CreditEvent
|
|
1980
857
|
*/
|
|
1981
858
|
'created_at': string;
|
|
1982
859
|
}
|
|
@@ -1984,424 +861,169 @@ export interface CreditEvent {
|
|
|
1984
861
|
|
|
1985
862
|
/**
|
|
1986
863
|
* Credit event response model with agent name. Extends CreditEvent to include the agent name for better user experience.
|
|
1987
|
-
* @export
|
|
1988
|
-
* @interface CreditEventWithAgent
|
|
1989
864
|
*/
|
|
1990
865
|
export interface CreditEventWithAgent {
|
|
1991
866
|
/**
|
|
1992
867
|
* Unique identifier for the credit event
|
|
1993
|
-
* @type {string}
|
|
1994
|
-
* @memberof CreditEventWithAgent
|
|
1995
868
|
*/
|
|
1996
869
|
'id'?: string;
|
|
1997
870
|
/**
|
|
1998
871
|
* Account ID from which credits flow
|
|
1999
|
-
* @type {string}
|
|
2000
|
-
* @memberof CreditEventWithAgent
|
|
2001
872
|
*/
|
|
2002
873
|
'account_id'?: string;
|
|
2003
874
|
/**
|
|
2004
875
|
* Type of the event
|
|
2005
|
-
* @type {EventType}
|
|
2006
|
-
* @memberof CreditEventWithAgent
|
|
2007
876
|
*/
|
|
2008
877
|
'event_type': EventType;
|
|
2009
|
-
/**
|
|
2010
|
-
*
|
|
2011
|
-
* @type {string}
|
|
2012
|
-
* @memberof CreditEventWithAgent
|
|
2013
|
-
*/
|
|
2014
878
|
'user_id'?: string | null;
|
|
2015
879
|
/**
|
|
2016
880
|
* Type of upstream transaction
|
|
2017
|
-
* @type {UpstreamType}
|
|
2018
|
-
* @memberof CreditEventWithAgent
|
|
2019
881
|
*/
|
|
2020
882
|
'upstream_type': UpstreamType;
|
|
2021
883
|
/**
|
|
2022
884
|
* Upstream transaction ID if any
|
|
2023
|
-
* @type {string}
|
|
2024
|
-
* @memberof CreditEventWithAgent
|
|
2025
885
|
*/
|
|
2026
886
|
'upstream_tx_id': string;
|
|
2027
|
-
/**
|
|
2028
|
-
*
|
|
2029
|
-
* @type {string}
|
|
2030
|
-
* @memberof CreditEventWithAgent
|
|
2031
|
-
*/
|
|
2032
887
|
'agent_id'?: string | null;
|
|
2033
|
-
/**
|
|
2034
|
-
*
|
|
2035
|
-
* @type {string}
|
|
2036
|
-
* @memberof CreditEventWithAgent
|
|
2037
|
-
*/
|
|
2038
888
|
'agent_wallet_address'?: string | null;
|
|
2039
|
-
/**
|
|
2040
|
-
*
|
|
2041
|
-
* @type {string}
|
|
2042
|
-
* @memberof CreditEventWithAgent
|
|
2043
|
-
*/
|
|
2044
889
|
'start_message_id'?: string | null;
|
|
2045
|
-
/**
|
|
2046
|
-
*
|
|
2047
|
-
* @type {string}
|
|
2048
|
-
* @memberof CreditEventWithAgent
|
|
2049
|
-
*/
|
|
2050
890
|
'message_id'?: string | null;
|
|
2051
|
-
/**
|
|
2052
|
-
*
|
|
2053
|
-
* @type {string}
|
|
2054
|
-
* @memberof CreditEventWithAgent
|
|
2055
|
-
*/
|
|
2056
891
|
'model'?: string | null;
|
|
2057
|
-
/**
|
|
2058
|
-
*
|
|
2059
|
-
* @type {string}
|
|
2060
|
-
* @memberof CreditEventWithAgent
|
|
2061
|
-
*/
|
|
2062
892
|
'skill_call_id'?: string | null;
|
|
2063
|
-
/**
|
|
2064
|
-
*
|
|
2065
|
-
* @type {string}
|
|
2066
|
-
* @memberof CreditEventWithAgent
|
|
2067
|
-
*/
|
|
2068
893
|
'skill_name'?: string | null;
|
|
2069
894
|
/**
|
|
2070
895
|
* Direction of the credit flow
|
|
2071
|
-
* @type {Direction}
|
|
2072
|
-
* @memberof CreditEventWithAgent
|
|
2073
896
|
*/
|
|
2074
897
|
'direction': Direction;
|
|
2075
898
|
/**
|
|
2076
899
|
* Total amount (after discount) of credits involved
|
|
2077
|
-
* @type {string}
|
|
2078
|
-
* @memberof CreditEventWithAgent
|
|
2079
900
|
*/
|
|
2080
901
|
'total_amount'?: string;
|
|
2081
902
|
/**
|
|
2082
903
|
* Type of credits involved
|
|
2083
|
-
* @type {CreditType}
|
|
2084
|
-
* @memberof CreditEventWithAgent
|
|
2085
904
|
*/
|
|
2086
905
|
'credit_type': CreditType;
|
|
2087
|
-
/**
|
|
2088
|
-
*
|
|
2089
|
-
* @type {Array<CreditType>}
|
|
2090
|
-
* @memberof CreditEventWithAgent
|
|
2091
|
-
*/
|
|
2092
906
|
'credit_types'?: Array<CreditType> | null;
|
|
2093
|
-
/**
|
|
2094
|
-
*
|
|
2095
|
-
* @type {string}
|
|
2096
|
-
* @memberof CreditEventWithAgent
|
|
2097
|
-
*/
|
|
2098
907
|
'balance_after'?: string | null;
|
|
2099
908
|
/**
|
|
2100
909
|
* Base amount of credits involved
|
|
2101
|
-
* @type {string}
|
|
2102
|
-
* @memberof CreditEventWithAgent
|
|
2103
910
|
*/
|
|
2104
911
|
'base_amount'?: string;
|
|
2105
|
-
/**
|
|
2106
|
-
*
|
|
2107
|
-
* @type {string}
|
|
2108
|
-
* @memberof CreditEventWithAgent
|
|
2109
|
-
*/
|
|
2110
912
|
'base_discount_amount'?: string | null;
|
|
2111
|
-
/**
|
|
2112
|
-
*
|
|
2113
|
-
* @type {string}
|
|
2114
|
-
* @memberof CreditEventWithAgent
|
|
2115
|
-
*/
|
|
2116
913
|
'base_original_amount'?: string | null;
|
|
2117
|
-
/**
|
|
2118
|
-
*
|
|
2119
|
-
* @type {string}
|
|
2120
|
-
* @memberof CreditEventWithAgent
|
|
2121
|
-
*/
|
|
2122
914
|
'base_llm_amount'?: string | null;
|
|
2123
|
-
/**
|
|
2124
|
-
*
|
|
2125
|
-
* @type {string}
|
|
2126
|
-
* @memberof CreditEventWithAgent
|
|
2127
|
-
*/
|
|
2128
915
|
'base_skill_amount'?: string | null;
|
|
2129
|
-
/**
|
|
2130
|
-
*
|
|
2131
|
-
* @type {string}
|
|
2132
|
-
* @memberof CreditEventWithAgent
|
|
2133
|
-
*/
|
|
2134
916
|
'base_free_amount'?: string | null;
|
|
2135
|
-
/**
|
|
2136
|
-
*
|
|
2137
|
-
* @type {string}
|
|
2138
|
-
* @memberof CreditEventWithAgent
|
|
2139
|
-
*/
|
|
2140
917
|
'base_reward_amount'?: string | null;
|
|
2141
|
-
/**
|
|
2142
|
-
*
|
|
2143
|
-
* @type {string}
|
|
2144
|
-
* @memberof CreditEventWithAgent
|
|
2145
|
-
*/
|
|
2146
918
|
'base_permanent_amount'?: string | null;
|
|
2147
|
-
/**
|
|
2148
|
-
*
|
|
2149
|
-
* @type {string}
|
|
2150
|
-
* @memberof CreditEventWithAgent
|
|
2151
|
-
*/
|
|
2152
919
|
'fee_platform_amount'?: string | null;
|
|
2153
|
-
/**
|
|
2154
|
-
*
|
|
2155
|
-
* @type {string}
|
|
2156
|
-
* @memberof CreditEventWithAgent
|
|
2157
|
-
*/
|
|
2158
920
|
'fee_platform_free_amount'?: string | null;
|
|
2159
|
-
/**
|
|
2160
|
-
*
|
|
2161
|
-
* @type {string}
|
|
2162
|
-
* @memberof CreditEventWithAgent
|
|
2163
|
-
*/
|
|
2164
921
|
'fee_platform_reward_amount'?: string | null;
|
|
2165
|
-
/**
|
|
2166
|
-
*
|
|
2167
|
-
* @type {string}
|
|
2168
|
-
* @memberof CreditEventWithAgent
|
|
2169
|
-
*/
|
|
2170
922
|
'fee_platform_permanent_amount'?: string | null;
|
|
2171
|
-
/**
|
|
2172
|
-
*
|
|
2173
|
-
* @type {string}
|
|
2174
|
-
* @memberof CreditEventWithAgent
|
|
2175
|
-
*/
|
|
2176
923
|
'fee_dev_account'?: string | null;
|
|
2177
|
-
/**
|
|
2178
|
-
*
|
|
2179
|
-
* @type {string}
|
|
2180
|
-
* @memberof CreditEventWithAgent
|
|
2181
|
-
*/
|
|
2182
924
|
'fee_dev_amount'?: string | null;
|
|
2183
|
-
/**
|
|
2184
|
-
*
|
|
2185
|
-
* @type {string}
|
|
2186
|
-
* @memberof CreditEventWithAgent
|
|
2187
|
-
*/
|
|
2188
925
|
'fee_dev_free_amount'?: string | null;
|
|
2189
|
-
/**
|
|
2190
|
-
*
|
|
2191
|
-
* @type {string}
|
|
2192
|
-
* @memberof CreditEventWithAgent
|
|
2193
|
-
*/
|
|
2194
926
|
'fee_dev_reward_amount'?: string | null;
|
|
2195
|
-
/**
|
|
2196
|
-
*
|
|
2197
|
-
* @type {string}
|
|
2198
|
-
* @memberof CreditEventWithAgent
|
|
2199
|
-
*/
|
|
2200
927
|
'fee_dev_permanent_amount'?: string | null;
|
|
2201
|
-
/**
|
|
2202
|
-
*
|
|
2203
|
-
* @type {string}
|
|
2204
|
-
* @memberof CreditEventWithAgent
|
|
2205
|
-
*/
|
|
2206
928
|
'fee_agent_account'?: string | null;
|
|
2207
|
-
/**
|
|
2208
|
-
*
|
|
2209
|
-
* @type {string}
|
|
2210
|
-
* @memberof CreditEventWithAgent
|
|
2211
|
-
*/
|
|
2212
929
|
'fee_agent_amount'?: string | null;
|
|
2213
|
-
/**
|
|
2214
|
-
*
|
|
2215
|
-
* @type {string}
|
|
2216
|
-
* @memberof CreditEventWithAgent
|
|
2217
|
-
*/
|
|
2218
930
|
'fee_agent_free_amount'?: string | null;
|
|
2219
|
-
/**
|
|
2220
|
-
*
|
|
2221
|
-
* @type {string}
|
|
2222
|
-
* @memberof CreditEventWithAgent
|
|
2223
|
-
*/
|
|
2224
931
|
'fee_agent_reward_amount'?: string | null;
|
|
2225
|
-
/**
|
|
2226
|
-
*
|
|
2227
|
-
* @type {string}
|
|
2228
|
-
* @memberof CreditEventWithAgent
|
|
2229
|
-
*/
|
|
2230
932
|
'fee_agent_permanent_amount'?: string | null;
|
|
2231
|
-
/**
|
|
2232
|
-
*
|
|
2233
|
-
* @type {string}
|
|
2234
|
-
* @memberof CreditEventWithAgent
|
|
2235
|
-
*/
|
|
2236
933
|
'free_amount'?: string | null;
|
|
2237
|
-
/**
|
|
2238
|
-
*
|
|
2239
|
-
* @type {string}
|
|
2240
|
-
* @memberof CreditEventWithAgent
|
|
2241
|
-
*/
|
|
2242
934
|
'reward_amount'?: string | null;
|
|
2243
|
-
/**
|
|
2244
|
-
*
|
|
2245
|
-
* @type {string}
|
|
2246
|
-
* @memberof CreditEventWithAgent
|
|
2247
|
-
*/
|
|
2248
935
|
'permanent_amount'?: string | null;
|
|
2249
|
-
/**
|
|
2250
|
-
*
|
|
2251
|
-
* @type {string}
|
|
2252
|
-
* @memberof CreditEventWithAgent
|
|
2253
|
-
*/
|
|
2254
936
|
'note'?: string | null;
|
|
2255
937
|
/**
|
|
2256
938
|
* Timestamp when this event was created
|
|
2257
|
-
* @type {string}
|
|
2258
|
-
* @memberof CreditEventWithAgent
|
|
2259
939
|
*/
|
|
2260
940
|
'created_at': string;
|
|
2261
|
-
/**
|
|
2262
|
-
*
|
|
2263
|
-
* @type {string}
|
|
2264
|
-
* @memberof CreditEventWithAgent
|
|
2265
|
-
*/
|
|
2266
941
|
'agent_name'?: string | null;
|
|
2267
942
|
}
|
|
2268
943
|
|
|
2269
944
|
|
|
2270
945
|
/**
|
|
2271
946
|
* Paginated response model for credit events. Contains a list of credit events, a flag indicating if more items are available, and a cursor for pagination.
|
|
2272
|
-
* @export
|
|
2273
|
-
* @interface CreditEventsResponse
|
|
2274
947
|
*/
|
|
2275
948
|
export interface CreditEventsResponse {
|
|
2276
949
|
/**
|
|
2277
950
|
* List of credit events with agent names
|
|
2278
|
-
* @type {Array<CreditEventWithAgent>}
|
|
2279
|
-
* @memberof CreditEventsResponse
|
|
2280
951
|
*/
|
|
2281
952
|
'data': Array<CreditEventWithAgent>;
|
|
2282
953
|
/**
|
|
2283
954
|
* Indicates if there are more items
|
|
2284
|
-
* @type {boolean}
|
|
2285
|
-
* @memberof CreditEventsResponse
|
|
2286
955
|
*/
|
|
2287
956
|
'has_more': boolean;
|
|
2288
|
-
/**
|
|
2289
|
-
*
|
|
2290
|
-
* @type {string}
|
|
2291
|
-
* @memberof CreditEventsResponse
|
|
2292
|
-
*/
|
|
2293
957
|
'next_cursor'?: string | null;
|
|
2294
958
|
}
|
|
2295
959
|
/**
|
|
2296
960
|
* Credit transaction response model with associated event data. Extends CreditTransaction to include the related CreditEvent if available.
|
|
2297
|
-
* @export
|
|
2298
|
-
* @interface CreditTransactionResp
|
|
2299
961
|
*/
|
|
2300
962
|
export interface CreditTransactionResp {
|
|
2301
963
|
/**
|
|
2302
964
|
* Unique identifier for the credit transaction
|
|
2303
|
-
* @type {string}
|
|
2304
|
-
* @memberof CreditTransactionResp
|
|
2305
965
|
*/
|
|
2306
966
|
'id'?: string;
|
|
2307
967
|
/**
|
|
2308
968
|
* ID of the account this transaction belongs to
|
|
2309
|
-
* @type {string}
|
|
2310
|
-
* @memberof CreditTransactionResp
|
|
2311
969
|
*/
|
|
2312
970
|
'account_id': string;
|
|
2313
971
|
/**
|
|
2314
972
|
* ID of the event that triggered this transaction
|
|
2315
|
-
* @type {string}
|
|
2316
|
-
* @memberof CreditTransactionResp
|
|
2317
973
|
*/
|
|
2318
974
|
'event_id': string;
|
|
2319
975
|
/**
|
|
2320
976
|
* Type of the transaction
|
|
2321
|
-
* @type {TransactionType}
|
|
2322
|
-
* @memberof CreditTransactionResp
|
|
2323
977
|
*/
|
|
2324
978
|
'tx_type': TransactionType;
|
|
2325
979
|
/**
|
|
2326
980
|
* Whether this is a credit or debit transaction
|
|
2327
|
-
* @type {CreditDebit}
|
|
2328
|
-
* @memberof CreditTransactionResp
|
|
2329
981
|
*/
|
|
2330
982
|
'credit_debit': CreditDebit;
|
|
2331
983
|
/**
|
|
2332
984
|
* Amount of credits changed
|
|
2333
|
-
* @type {string}
|
|
2334
|
-
* @memberof CreditTransactionResp
|
|
2335
985
|
*/
|
|
2336
986
|
'change_amount'?: string;
|
|
2337
987
|
/**
|
|
2338
988
|
* Amount of free credits changed
|
|
2339
|
-
* @type {string}
|
|
2340
|
-
* @memberof CreditTransactionResp
|
|
2341
989
|
*/
|
|
2342
990
|
'free_amount'?: string;
|
|
2343
991
|
/**
|
|
2344
992
|
* Amount of reward credits changed
|
|
2345
|
-
* @type {string}
|
|
2346
|
-
* @memberof CreditTransactionResp
|
|
2347
993
|
*/
|
|
2348
994
|
'reward_amount'?: string;
|
|
2349
995
|
/**
|
|
2350
996
|
* Amount of permanent credits changed
|
|
2351
|
-
* @type {string}
|
|
2352
|
-
* @memberof CreditTransactionResp
|
|
2353
997
|
*/
|
|
2354
998
|
'permanent_amount'?: string;
|
|
2355
999
|
/**
|
|
2356
1000
|
* Type of credits involved
|
|
2357
|
-
* @type {CreditType}
|
|
2358
|
-
* @memberof CreditTransactionResp
|
|
2359
1001
|
*/
|
|
2360
1002
|
'credit_type': CreditType;
|
|
2361
1003
|
/**
|
|
2362
1004
|
* Timestamp when this transaction was created
|
|
2363
|
-
* @type {string}
|
|
2364
|
-
* @memberof CreditTransactionResp
|
|
2365
1005
|
*/
|
|
2366
1006
|
'created_at': string;
|
|
2367
|
-
/**
|
|
2368
|
-
*
|
|
2369
|
-
* @type {CreditEvent}
|
|
2370
|
-
* @memberof CreditTransactionResp
|
|
2371
|
-
*/
|
|
2372
1007
|
'event'?: CreditEvent | null;
|
|
2373
1008
|
}
|
|
2374
1009
|
|
|
2375
1010
|
|
|
2376
1011
|
/**
|
|
2377
1012
|
* Paginated response model for credit transactions. Contains a list of credit transactions (with event data), a flag for more items, and a pagination cursor.
|
|
2378
|
-
* @export
|
|
2379
|
-
* @interface CreditTransactionsResponse
|
|
2380
1013
|
*/
|
|
2381
1014
|
export interface CreditTransactionsResponse {
|
|
2382
1015
|
/**
|
|
2383
1016
|
* List of credit transactions
|
|
2384
|
-
* @type {Array<CreditTransactionResp>}
|
|
2385
|
-
* @memberof CreditTransactionsResponse
|
|
2386
1017
|
*/
|
|
2387
1018
|
'data': Array<CreditTransactionResp>;
|
|
2388
1019
|
/**
|
|
2389
1020
|
* Indicates if there are more items
|
|
2390
|
-
* @type {boolean}
|
|
2391
|
-
* @memberof CreditTransactionsResponse
|
|
2392
1021
|
*/
|
|
2393
1022
|
'has_more': boolean;
|
|
2394
|
-
/**
|
|
2395
|
-
*
|
|
2396
|
-
* @type {string}
|
|
2397
|
-
* @memberof CreditTransactionsResponse
|
|
2398
|
-
*/
|
|
2399
1023
|
'next_cursor'?: string | null;
|
|
2400
1024
|
}
|
|
2401
1025
|
/**
|
|
2402
1026
|
* Credit type is used in db column names, do not change it.
|
|
2403
|
-
* @export
|
|
2404
|
-
* @enum {string}
|
|
2405
1027
|
*/
|
|
2406
1028
|
|
|
2407
1029
|
export const CreditType = {
|
|
@@ -2415,8 +1037,6 @@ export type CreditType = typeof CreditType[keyof typeof CreditType];
|
|
|
2415
1037
|
|
|
2416
1038
|
/**
|
|
2417
1039
|
* Direction of credit flow.
|
|
2418
|
-
* @export
|
|
2419
|
-
* @enum {string}
|
|
2420
1040
|
*/
|
|
2421
1041
|
|
|
2422
1042
|
export const Direction = {
|
|
@@ -2429,8 +1049,6 @@ export type Direction = typeof Direction[keyof typeof Direction];
|
|
|
2429
1049
|
|
|
2430
1050
|
/**
|
|
2431
1051
|
* Type of credit event.
|
|
2432
|
-
* @export
|
|
2433
|
-
* @enum {string}
|
|
2434
1052
|
*/
|
|
2435
1053
|
|
|
2436
1054
|
export const EventType = {
|
|
@@ -2453,250 +1071,80 @@ export type EventType = typeof EventType[keyof typeof EventType];
|
|
|
2453
1071
|
|
|
2454
1072
|
/**
|
|
2455
1073
|
* Fee percentage of the agent
|
|
2456
|
-
* @export
|
|
2457
|
-
* @interface FeePercentage
|
|
2458
1074
|
*/
|
|
2459
1075
|
export interface FeePercentage {
|
|
2460
1076
|
}
|
|
2461
1077
|
/**
|
|
2462
1078
|
* Response model for single generation detail.
|
|
2463
|
-
* @export
|
|
2464
|
-
* @interface GenerationDetailResponse
|
|
2465
1079
|
*/
|
|
2466
1080
|
export interface GenerationDetailResponse {
|
|
2467
1081
|
/**
|
|
2468
1082
|
* Project ID
|
|
2469
|
-
* @type {string}
|
|
2470
|
-
* @memberof GenerationDetailResponse
|
|
2471
1083
|
*/
|
|
2472
1084
|
'project_id': string;
|
|
2473
|
-
/**
|
|
2474
|
-
*
|
|
2475
|
-
* @type {string}
|
|
2476
|
-
* @memberof GenerationDetailResponse
|
|
2477
|
-
*/
|
|
2478
1085
|
'user_id'?: string | null;
|
|
2479
|
-
/**
|
|
2480
|
-
*
|
|
2481
|
-
* @type {string}
|
|
2482
|
-
* @memberof GenerationDetailResponse
|
|
2483
|
-
*/
|
|
2484
1086
|
'created_at'?: string | null;
|
|
2485
|
-
/**
|
|
2486
|
-
*
|
|
2487
|
-
* @type {string}
|
|
2488
|
-
* @memberof GenerationDetailResponse
|
|
2489
|
-
*/
|
|
2490
1087
|
'last_activity'?: string | null;
|
|
2491
1088
|
/**
|
|
2492
1089
|
* Number of messages in conversation
|
|
2493
|
-
* @type {number}
|
|
2494
|
-
* @memberof GenerationDetailResponse
|
|
2495
1090
|
*/
|
|
2496
1091
|
'message_count': number;
|
|
2497
|
-
/**
|
|
2498
|
-
*
|
|
2499
|
-
* @type {object}
|
|
2500
|
-
* @memberof GenerationDetailResponse
|
|
2501
|
-
*/
|
|
2502
1092
|
'last_message'?: object | null;
|
|
2503
|
-
/**
|
|
2504
|
-
*
|
|
2505
|
-
* @type {object}
|
|
2506
|
-
* @memberof GenerationDetailResponse
|
|
2507
|
-
*/
|
|
2508
1093
|
'first_message'?: object | null;
|
|
2509
1094
|
/**
|
|
2510
1095
|
* Full conversation history
|
|
2511
|
-
* @type {Array<object>}
|
|
2512
|
-
* @memberof GenerationDetailResponse
|
|
2513
1096
|
*/
|
|
2514
1097
|
'conversation_history': Array<object>;
|
|
2515
1098
|
}
|
|
2516
1099
|
/**
|
|
2517
1100
|
* Response model for generations list.
|
|
2518
|
-
* @export
|
|
2519
|
-
* @interface GenerationsListResponse
|
|
2520
1101
|
*/
|
|
2521
1102
|
export interface GenerationsListResponse {
|
|
2522
1103
|
/**
|
|
2523
1104
|
* List of recent projects with their conversation history
|
|
2524
|
-
* @type {Array<object>}
|
|
2525
|
-
* @memberof GenerationsListResponse
|
|
2526
1105
|
*/
|
|
2527
1106
|
'projects': Array<object>;
|
|
2528
1107
|
}
|
|
2529
|
-
/**
|
|
2530
|
-
*
|
|
2531
|
-
* @export
|
|
2532
|
-
* @interface HTTPValidationError
|
|
2533
|
-
*/
|
|
2534
1108
|
export interface HTTPValidationError {
|
|
2535
|
-
/**
|
|
2536
|
-
*
|
|
2537
|
-
* @type {Array<ValidationError>}
|
|
2538
|
-
* @memberof HTTPValidationError
|
|
2539
|
-
*/
|
|
2540
1109
|
'detail'?: Array<ValidationError>;
|
|
2541
1110
|
}
|
|
2542
1111
|
/**
|
|
2543
1112
|
* LLM model information with provider display name.
|
|
2544
|
-
* @export
|
|
2545
|
-
* @interface LLMModelInfoWithProviderName
|
|
2546
1113
|
*/
|
|
2547
1114
|
export interface LLMModelInfoWithProviderName {
|
|
2548
|
-
/**
|
|
2549
|
-
*
|
|
2550
|
-
* @type {string}
|
|
2551
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2552
|
-
*/
|
|
2553
1115
|
'id': string;
|
|
2554
|
-
/**
|
|
2555
|
-
*
|
|
2556
|
-
* @type {string}
|
|
2557
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2558
|
-
*/
|
|
2559
1116
|
'name': string;
|
|
2560
|
-
/**
|
|
2561
|
-
*
|
|
2562
|
-
* @type {LLMProvider}
|
|
2563
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2564
|
-
*/
|
|
2565
1117
|
'provider': LLMProvider;
|
|
2566
|
-
/**
|
|
2567
|
-
*
|
|
2568
|
-
* @type {boolean}
|
|
2569
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2570
|
-
*/
|
|
2571
1118
|
'enabled'?: boolean;
|
|
2572
|
-
/**
|
|
2573
|
-
*
|
|
2574
|
-
* @type {string}
|
|
2575
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2576
|
-
*/
|
|
2577
1119
|
'input_price': string;
|
|
2578
|
-
/**
|
|
2579
|
-
*
|
|
2580
|
-
* @type {string}
|
|
2581
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2582
|
-
*/
|
|
2583
1120
|
'output_price': string;
|
|
2584
|
-
/**
|
|
2585
|
-
*
|
|
2586
|
-
* @type {number}
|
|
2587
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2588
|
-
*/
|
|
2589
1121
|
'price_level'?: number | null;
|
|
2590
|
-
/**
|
|
2591
|
-
*
|
|
2592
|
-
* @type {number}
|
|
2593
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2594
|
-
*/
|
|
2595
1122
|
'context_length': number;
|
|
2596
|
-
/**
|
|
2597
|
-
*
|
|
2598
|
-
* @type {number}
|
|
2599
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2600
|
-
*/
|
|
2601
1123
|
'output_length': number;
|
|
2602
|
-
/**
|
|
2603
|
-
*
|
|
2604
|
-
* @type {number}
|
|
2605
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2606
|
-
*/
|
|
2607
1124
|
'intelligence': number;
|
|
2608
|
-
/**
|
|
2609
|
-
*
|
|
2610
|
-
* @type {number}
|
|
2611
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2612
|
-
*/
|
|
2613
1125
|
'speed': number;
|
|
2614
|
-
/**
|
|
2615
|
-
*
|
|
2616
|
-
* @type {boolean}
|
|
2617
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2618
|
-
*/
|
|
2619
1126
|
'supports_image_input'?: boolean;
|
|
2620
|
-
/**
|
|
2621
|
-
*
|
|
2622
|
-
* @type {boolean}
|
|
2623
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2624
|
-
*/
|
|
2625
1127
|
'supports_skill_calls'?: boolean;
|
|
2626
|
-
/**
|
|
2627
|
-
*
|
|
2628
|
-
* @type {boolean}
|
|
2629
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2630
|
-
*/
|
|
2631
1128
|
'supports_structured_output'?: boolean;
|
|
2632
|
-
/**
|
|
2633
|
-
*
|
|
2634
|
-
* @type {boolean}
|
|
2635
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2636
|
-
*/
|
|
2637
1129
|
'has_reasoning'?: boolean;
|
|
2638
|
-
/**
|
|
2639
|
-
*
|
|
2640
|
-
* @type {boolean}
|
|
2641
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2642
|
-
*/
|
|
2643
1130
|
'supports_search'?: boolean;
|
|
2644
|
-
/**
|
|
2645
|
-
*
|
|
2646
|
-
* @type {boolean}
|
|
2647
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2648
|
-
*/
|
|
2649
1131
|
'supports_temperature'?: boolean;
|
|
2650
|
-
/**
|
|
2651
|
-
*
|
|
2652
|
-
* @type {boolean}
|
|
2653
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2654
|
-
*/
|
|
2655
1132
|
'supports_frequency_penalty'?: boolean;
|
|
2656
|
-
/**
|
|
2657
|
-
*
|
|
2658
|
-
* @type {boolean}
|
|
2659
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2660
|
-
*/
|
|
2661
1133
|
'supports_presence_penalty'?: boolean;
|
|
2662
|
-
/**
|
|
2663
|
-
*
|
|
2664
|
-
* @type {string}
|
|
2665
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2666
|
-
*/
|
|
2667
1134
|
'api_base'?: string | null;
|
|
2668
|
-
/**
|
|
2669
|
-
*
|
|
2670
|
-
* @type {number}
|
|
2671
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2672
|
-
*/
|
|
2673
1135
|
'timeout'?: number;
|
|
2674
1136
|
/**
|
|
2675
1137
|
* Timestamp when this data was created
|
|
2676
|
-
* @type {string}
|
|
2677
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2678
1138
|
*/
|
|
2679
1139
|
'created_at'?: string;
|
|
2680
1140
|
/**
|
|
2681
1141
|
* Timestamp when this data was updated
|
|
2682
|
-
* @type {string}
|
|
2683
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2684
1142
|
*/
|
|
2685
1143
|
'updated_at'?: string;
|
|
2686
|
-
/**
|
|
2687
|
-
*
|
|
2688
|
-
* @type {string}
|
|
2689
|
-
* @memberof LLMModelInfoWithProviderName
|
|
2690
|
-
*/
|
|
2691
1144
|
'provider_name': string;
|
|
2692
1145
|
}
|
|
2693
1146
|
|
|
2694
1147
|
|
|
2695
|
-
/**
|
|
2696
|
-
*
|
|
2697
|
-
* @export
|
|
2698
|
-
* @enum {string}
|
|
2699
|
-
*/
|
|
2700
1148
|
|
|
2701
1149
|
export const LLMProvider = {
|
|
2702
1150
|
Openai: 'openai',
|
|
@@ -2712,8 +1160,6 @@ export type LLMProvider = typeof LLMProvider[keyof typeof LLMProvider];
|
|
|
2712
1160
|
|
|
2713
1161
|
/**
|
|
2714
1162
|
* Type of credit account owner.
|
|
2715
|
-
* @export
|
|
2716
|
-
* @enum {string}
|
|
2717
1163
|
*/
|
|
2718
1164
|
|
|
2719
1165
|
export const OwnerType = {
|
|
@@ -2727,87 +1173,44 @@ export type OwnerType = typeof OwnerType[keyof typeof OwnerType];
|
|
|
2727
1173
|
|
|
2728
1174
|
/**
|
|
2729
1175
|
* Pydantic model for Skill.
|
|
2730
|
-
* @export
|
|
2731
|
-
* @interface Skill
|
|
2732
1176
|
*/
|
|
2733
1177
|
export interface Skill {
|
|
2734
1178
|
/**
|
|
2735
1179
|
* Name of the skill
|
|
2736
|
-
* @type {string}
|
|
2737
|
-
* @memberof Skill
|
|
2738
1180
|
*/
|
|
2739
1181
|
'name': string;
|
|
2740
1182
|
/**
|
|
2741
1183
|
* Is this skill enabled?
|
|
2742
|
-
* @type {boolean}
|
|
2743
|
-
* @memberof Skill
|
|
2744
1184
|
*/
|
|
2745
1185
|
'enabled': boolean;
|
|
2746
1186
|
/**
|
|
2747
1187
|
* Category of the skill
|
|
2748
|
-
* @type {string}
|
|
2749
|
-
* @memberof Skill
|
|
2750
1188
|
*/
|
|
2751
1189
|
'category': string;
|
|
2752
|
-
/**
|
|
2753
|
-
*
|
|
2754
|
-
* @type {string}
|
|
2755
|
-
* @memberof Skill
|
|
2756
|
-
*/
|
|
2757
1190
|
'config_name': string | null;
|
|
2758
|
-
/**
|
|
2759
|
-
*
|
|
2760
|
-
* @type {number}
|
|
2761
|
-
* @memberof Skill
|
|
2762
|
-
*/
|
|
2763
1191
|
'price_level': number | null;
|
|
2764
1192
|
/**
|
|
2765
1193
|
* Price for this skill
|
|
2766
|
-
* @type {string}
|
|
2767
|
-
* @memberof Skill
|
|
2768
1194
|
*/
|
|
2769
1195
|
'price'?: string;
|
|
2770
1196
|
/**
|
|
2771
1197
|
* Price for this skill with self key
|
|
2772
|
-
* @type {string}
|
|
2773
|
-
* @memberof Skill
|
|
2774
1198
|
*/
|
|
2775
1199
|
'price_self_key'?: string;
|
|
2776
|
-
/**
|
|
2777
|
-
*
|
|
2778
|
-
* @type {number}
|
|
2779
|
-
* @memberof Skill
|
|
2780
|
-
*/
|
|
2781
1200
|
'rate_limit_count': number | null;
|
|
2782
|
-
/**
|
|
2783
|
-
*
|
|
2784
|
-
* @type {number}
|
|
2785
|
-
* @memberof Skill
|
|
2786
|
-
*/
|
|
2787
1201
|
'rate_limit_minutes': number | null;
|
|
2788
|
-
/**
|
|
2789
|
-
*
|
|
2790
|
-
* @type {string}
|
|
2791
|
-
* @memberof Skill
|
|
2792
|
-
*/
|
|
2793
1202
|
'author': string | null;
|
|
2794
1203
|
/**
|
|
2795
1204
|
* Timestamp when this record was created
|
|
2796
|
-
* @type {string}
|
|
2797
|
-
* @memberof Skill
|
|
2798
1205
|
*/
|
|
2799
1206
|
'created_at': string;
|
|
2800
1207
|
/**
|
|
2801
1208
|
* Timestamp when this record was last updated
|
|
2802
|
-
* @type {string}
|
|
2803
|
-
* @memberof Skill
|
|
2804
1209
|
*/
|
|
2805
1210
|
'updated_at': string;
|
|
2806
1211
|
}
|
|
2807
1212
|
/**
|
|
2808
1213
|
* Type of system message.
|
|
2809
|
-
* @export
|
|
2810
|
-
* @enum {string}
|
|
2811
1214
|
*/
|
|
2812
1215
|
|
|
2813
1216
|
export const SystemMessageType = {
|
|
@@ -2824,8 +1227,6 @@ export type SystemMessageType = typeof SystemMessageType[keyof typeof SystemMess
|
|
|
2824
1227
|
|
|
2825
1228
|
/**
|
|
2826
1229
|
* Type of credit transaction.
|
|
2827
|
-
* @export
|
|
2828
|
-
* @enum {string}
|
|
2829
1230
|
*/
|
|
2830
1231
|
|
|
2831
1232
|
export const TransactionType = {
|
|
@@ -2850,29 +1251,12 @@ export const TransactionType = {
|
|
|
2850
1251
|
export type TransactionType = typeof TransactionType[keyof typeof TransactionType];
|
|
2851
1252
|
|
|
2852
1253
|
|
|
2853
|
-
/**
|
|
2854
|
-
*
|
|
2855
|
-
* @export
|
|
2856
|
-
* @interface TwitterAuthResponse
|
|
2857
|
-
*/
|
|
2858
1254
|
export interface TwitterAuthResponse {
|
|
2859
|
-
/**
|
|
2860
|
-
*
|
|
2861
|
-
* @type {string}
|
|
2862
|
-
* @memberof TwitterAuthResponse
|
|
2863
|
-
*/
|
|
2864
1255
|
'agent_id': string;
|
|
2865
|
-
/**
|
|
2866
|
-
*
|
|
2867
|
-
* @type {string}
|
|
2868
|
-
* @memberof TwitterAuthResponse
|
|
2869
|
-
*/
|
|
2870
1256
|
'url': string;
|
|
2871
1257
|
}
|
|
2872
1258
|
/**
|
|
2873
1259
|
* Type of upstream transaction.
|
|
2874
|
-
* @export
|
|
2875
|
-
* @enum {string}
|
|
2876
1260
|
*/
|
|
2877
1261
|
|
|
2878
1262
|
export const UpstreamType = {
|
|
@@ -2885,42 +1269,16 @@ export const UpstreamType = {
|
|
|
2885
1269
|
export type UpstreamType = typeof UpstreamType[keyof typeof UpstreamType];
|
|
2886
1270
|
|
|
2887
1271
|
|
|
2888
|
-
/**
|
|
2889
|
-
*
|
|
2890
|
-
* @export
|
|
2891
|
-
* @interface ValidationError
|
|
2892
|
-
*/
|
|
2893
1272
|
export interface ValidationError {
|
|
2894
|
-
/**
|
|
2895
|
-
*
|
|
2896
|
-
* @type {Array<ValidationErrorLocInner>}
|
|
2897
|
-
* @memberof ValidationError
|
|
2898
|
-
*/
|
|
2899
1273
|
'loc': Array<ValidationErrorLocInner>;
|
|
2900
|
-
/**
|
|
2901
|
-
*
|
|
2902
|
-
* @type {string}
|
|
2903
|
-
* @memberof ValidationError
|
|
2904
|
-
*/
|
|
2905
1274
|
'msg': string;
|
|
2906
|
-
/**
|
|
2907
|
-
*
|
|
2908
|
-
* @type {string}
|
|
2909
|
-
* @memberof ValidationError
|
|
2910
|
-
*/
|
|
2911
1275
|
'type': string;
|
|
2912
1276
|
}
|
|
2913
|
-
/**
|
|
2914
|
-
*
|
|
2915
|
-
* @export
|
|
2916
|
-
* @interface ValidationErrorLocInner
|
|
2917
|
-
*/
|
|
2918
1277
|
export interface ValidationErrorLocInner {
|
|
2919
1278
|
}
|
|
2920
1279
|
|
|
2921
1280
|
/**
|
|
2922
1281
|
* AgentApi - axios parameter creator
|
|
2923
|
-
* @export
|
|
2924
1282
|
*/
|
|
2925
1283
|
export const AgentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2926
1284
|
return {
|
|
@@ -3074,7 +1432,7 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3074
1432
|
},
|
|
3075
1433
|
/**
|
|
3076
1434
|
* Get the assets and balances for an agent\'s wallet
|
|
3077
|
-
* @summary Get
|
|
1435
|
+
* @summary Get Agent Assets
|
|
3078
1436
|
* @param {string} agentId ID of the agent
|
|
3079
1437
|
* @param {*} [options] Override http request option.
|
|
3080
1438
|
* @throws {RequiredError}
|
|
@@ -3095,10 +1453,6 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3095
1453
|
const localVarHeaderParameter = {} as any;
|
|
3096
1454
|
const localVarQueryParameter = {} as any;
|
|
3097
1455
|
|
|
3098
|
-
// authentication HTTPBearer required
|
|
3099
|
-
// http bearer authentication required
|
|
3100
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3101
|
-
|
|
3102
1456
|
|
|
3103
1457
|
|
|
3104
1458
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -3493,7 +1847,6 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3493
1847
|
|
|
3494
1848
|
/**
|
|
3495
1849
|
* AgentApi - functional programming interface
|
|
3496
|
-
* @export
|
|
3497
1850
|
*/
|
|
3498
1851
|
export const AgentApiFp = function(configuration?: Configuration) {
|
|
3499
1852
|
const localVarAxiosParamCreator = AgentApiAxiosParamCreator(configuration)
|
|
@@ -3552,7 +1905,7 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
3552
1905
|
},
|
|
3553
1906
|
/**
|
|
3554
1907
|
* Get the assets and balances for an agent\'s wallet
|
|
3555
|
-
* @summary Get
|
|
1908
|
+
* @summary Get Agent Assets
|
|
3556
1909
|
* @param {string} agentId ID of the agent
|
|
3557
1910
|
* @param {*} [options] Override http request option.
|
|
3558
1911
|
* @throws {RequiredError}
|
|
@@ -3693,7 +2046,6 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
3693
2046
|
|
|
3694
2047
|
/**
|
|
3695
2048
|
* AgentApi - factory interface
|
|
3696
|
-
* @export
|
|
3697
2049
|
*/
|
|
3698
2050
|
export const AgentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3699
2051
|
const localVarFp = AgentApiFp(configuration)
|
|
@@ -3740,7 +2092,7 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
3740
2092
|
},
|
|
3741
2093
|
/**
|
|
3742
2094
|
* Get the assets and balances for an agent\'s wallet
|
|
3743
|
-
* @summary Get
|
|
2095
|
+
* @summary Get Agent Assets
|
|
3744
2096
|
* @param {string} agentId ID of the agent
|
|
3745
2097
|
* @param {*} [options] Override http request option.
|
|
3746
2098
|
* @throws {RequiredError}
|
|
@@ -3851,9 +2203,6 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
3851
2203
|
|
|
3852
2204
|
/**
|
|
3853
2205
|
* AgentApi - object-oriented interface
|
|
3854
|
-
* @export
|
|
3855
|
-
* @class AgentApi
|
|
3856
|
-
* @extends {BaseAPI}
|
|
3857
2206
|
*/
|
|
3858
2207
|
export class AgentApi extends BaseAPI {
|
|
3859
2208
|
/**
|
|
@@ -3862,7 +2211,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3862
2211
|
* @param {AgentUpdate} [agentUpdate]
|
|
3863
2212
|
* @param {*} [options] Override http request option.
|
|
3864
2213
|
* @throws {RequiredError}
|
|
3865
|
-
* @memberof AgentApi
|
|
3866
2214
|
*/
|
|
3867
2215
|
public createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
3868
2216
|
return AgentApiFp(this.configuration).createAgent(agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3874,7 +2222,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3874
2222
|
* @param {string} agentId ID of the agent to export
|
|
3875
2223
|
* @param {*} [options] Override http request option.
|
|
3876
2224
|
* @throws {RequiredError}
|
|
3877
|
-
* @memberof AgentApi
|
|
3878
2225
|
*/
|
|
3879
2226
|
public exportAgent(agentId: string, options?: RawAxiosRequestConfig) {
|
|
3880
2227
|
return AgentApiFp(this.configuration).exportAgent(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3886,7 +2233,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3886
2233
|
* @param {string} agentId ID of the agent to retrieve
|
|
3887
2234
|
* @param {*} [options] Override http request option.
|
|
3888
2235
|
* @throws {RequiredError}
|
|
3889
|
-
* @memberof AgentApi
|
|
3890
2236
|
*/
|
|
3891
2237
|
public getAgent(agentId: string, options?: RawAxiosRequestConfig) {
|
|
3892
2238
|
return AgentApiFp(this.configuration).getAgent(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3898,7 +2244,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3898
2244
|
* @param {string} agentId ID of the agent
|
|
3899
2245
|
* @param {*} [options] Override http request option.
|
|
3900
2246
|
* @throws {RequiredError}
|
|
3901
|
-
* @memberof AgentApi
|
|
3902
2247
|
*/
|
|
3903
2248
|
public getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig) {
|
|
3904
2249
|
return AgentApiFp(this.configuration).getAgentApiKey(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3906,11 +2251,10 @@ export class AgentApi extends BaseAPI {
|
|
|
3906
2251
|
|
|
3907
2252
|
/**
|
|
3908
2253
|
* Get the assets and balances for an agent\'s wallet
|
|
3909
|
-
* @summary Get
|
|
2254
|
+
* @summary Get Agent Assets
|
|
3910
2255
|
* @param {string} agentId ID of the agent
|
|
3911
2256
|
* @param {*} [options] Override http request option.
|
|
3912
2257
|
* @throws {RequiredError}
|
|
3913
|
-
* @memberof AgentApi
|
|
3914
2258
|
*/
|
|
3915
2259
|
public getAgentAssets(agentId: string, options?: RawAxiosRequestConfig) {
|
|
3916
2260
|
return AgentApiFp(this.configuration).getAgentAssets(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3922,7 +2266,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3922
2266
|
* @param {string} aid ID of the agent
|
|
3923
2267
|
* @param {*} [options] Override http request option.
|
|
3924
2268
|
* @throws {RequiredError}
|
|
3925
|
-
* @memberof AgentApi
|
|
3926
2269
|
*/
|
|
3927
2270
|
public getAgentStatistics(aid: string, options?: RawAxiosRequestConfig) {
|
|
3928
2271
|
return AgentApiFp(this.configuration).getAgentStatistics(aid, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3936,7 +2279,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3936
2279
|
* @param {number} [limit] Maximum number of agents to return
|
|
3937
2280
|
* @param {*} [options] Override http request option.
|
|
3938
2281
|
* @throws {RequiredError}
|
|
3939
|
-
* @memberof AgentApi
|
|
3940
2282
|
*/
|
|
3941
2283
|
public getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3942
2284
|
return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3950,7 +2292,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3950
2292
|
* @param {number} [limit] Maximum number of messages to return
|
|
3951
2293
|
* @param {*} [options] Override http request option.
|
|
3952
2294
|
* @throws {RequiredError}
|
|
3953
|
-
* @memberof AgentApi
|
|
3954
2295
|
*/
|
|
3955
2296
|
public getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3956
2297
|
return AgentApiFp(this.configuration).getSkillHistory(aid, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3963,7 +2304,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3963
2304
|
* @param {File} file YAML file containing agent configuration
|
|
3964
2305
|
* @param {*} [options] Override http request option.
|
|
3965
2306
|
* @throws {RequiredError}
|
|
3966
|
-
* @memberof AgentApi
|
|
3967
2307
|
*/
|
|
3968
2308
|
public importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig) {
|
|
3969
2309
|
return AgentApiFp(this.configuration).importAgent(agentId, file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3976,7 +2316,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3976
2316
|
* @param {AgentUpdate} [agentUpdate]
|
|
3977
2317
|
* @param {*} [options] Override http request option.
|
|
3978
2318
|
* @throws {RequiredError}
|
|
3979
|
-
* @memberof AgentApi
|
|
3980
2319
|
*/
|
|
3981
2320
|
public overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
3982
2321
|
return AgentApiFp(this.configuration).overrideAgent(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3988,7 +2327,6 @@ export class AgentApi extends BaseAPI {
|
|
|
3988
2327
|
* @param {string} agentId ID of the agent
|
|
3989
2328
|
* @param {*} [options] Override http request option.
|
|
3990
2329
|
* @throws {RequiredError}
|
|
3991
|
-
* @memberof AgentApi
|
|
3992
2330
|
*/
|
|
3993
2331
|
public resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig) {
|
|
3994
2332
|
return AgentApiFp(this.configuration).resetAgentApiKey(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4001,7 +2339,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4001
2339
|
* @param {AgentUpdate} [agentUpdate]
|
|
4002
2340
|
* @param {*} [options] Override http request option.
|
|
4003
2341
|
* @throws {RequiredError}
|
|
4004
|
-
* @memberof AgentApi
|
|
4005
2342
|
*/
|
|
4006
2343
|
public updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
4007
2344
|
return AgentApiFp(this.configuration).updateAgent(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4013,7 +2350,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4013
2350
|
* @param {AgentUpdate} [agentUpdate]
|
|
4014
2351
|
* @param {*} [options] Override http request option.
|
|
4015
2352
|
* @throws {RequiredError}
|
|
4016
|
-
* @memberof AgentApi
|
|
4017
2353
|
*/
|
|
4018
2354
|
public validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
4019
2355
|
return AgentApiFp(this.configuration).validateAgentCreate(agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4026,7 +2362,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4026
2362
|
* @param {AgentUpdate} [agentUpdate]
|
|
4027
2363
|
* @param {*} [options] Override http request option.
|
|
4028
2364
|
* @throws {RequiredError}
|
|
4029
|
-
* @memberof AgentApi
|
|
4030
2365
|
*/
|
|
4031
2366
|
public validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
4032
2367
|
return AgentApiFp(this.configuration).validateAgentUpdate(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4037,7 +2372,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4037
2372
|
|
|
4038
2373
|
/**
|
|
4039
2374
|
* ChatApi - axios parameter creator
|
|
4040
|
-
* @export
|
|
4041
2375
|
*/
|
|
4042
2376
|
export const ChatApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4043
2377
|
return {
|
|
@@ -4482,7 +2816,6 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
4482
2816
|
|
|
4483
2817
|
/**
|
|
4484
2818
|
* ChatApi - functional programming interface
|
|
4485
|
-
* @export
|
|
4486
2819
|
*/
|
|
4487
2820
|
export const ChatApiFp = function(configuration?: Configuration) {
|
|
4488
2821
|
const localVarAxiosParamCreator = ChatApiAxiosParamCreator(configuration)
|
|
@@ -4634,7 +2967,6 @@ export const ChatApiFp = function(configuration?: Configuration) {
|
|
|
4634
2967
|
|
|
4635
2968
|
/**
|
|
4636
2969
|
* ChatApi - factory interface
|
|
4637
|
-
* @export
|
|
4638
2970
|
*/
|
|
4639
2971
|
export const ChatApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4640
2972
|
const localVarFp = ChatApiFp(configuration)
|
|
@@ -4756,9 +3088,6 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
|
|
|
4756
3088
|
|
|
4757
3089
|
/**
|
|
4758
3090
|
* ChatApi - object-oriented interface
|
|
4759
|
-
* @export
|
|
4760
|
-
* @class ChatApi
|
|
4761
|
-
* @extends {BaseAPI}
|
|
4762
3091
|
*/
|
|
4763
3092
|
export class ChatApi extends BaseAPI {
|
|
4764
3093
|
/**
|
|
@@ -4767,7 +3096,6 @@ export class ChatApi extends BaseAPI {
|
|
|
4767
3096
|
* @param {string} aid Agent ID
|
|
4768
3097
|
* @param {*} [options] Override http request option.
|
|
4769
3098
|
* @throws {RequiredError}
|
|
4770
|
-
* @memberof ChatApi
|
|
4771
3099
|
*/
|
|
4772
3100
|
public createChatThread(aid: string, options?: RawAxiosRequestConfig) {
|
|
4773
3101
|
return ChatApiFp(this.configuration).createChatThread(aid, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4780,7 +3108,6 @@ export class ChatApi extends BaseAPI {
|
|
|
4780
3108
|
* @param {string} chatId Chat ID
|
|
4781
3109
|
* @param {*} [options] Override http request option.
|
|
4782
3110
|
* @throws {RequiredError}
|
|
4783
|
-
* @memberof ChatApi
|
|
4784
3111
|
*/
|
|
4785
3112
|
public deleteChatThread(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
4786
3113
|
return ChatApiFp(this.configuration).deleteChatThread(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4793,7 +3120,6 @@ export class ChatApi extends BaseAPI {
|
|
|
4793
3120
|
* @param {string} chatId Chat ID
|
|
4794
3121
|
* @param {*} [options] Override http request option.
|
|
4795
3122
|
* @throws {RequiredError}
|
|
4796
|
-
* @memberof ChatApi
|
|
4797
3123
|
*/
|
|
4798
3124
|
public getChatThreadById(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
4799
3125
|
return ChatApiFp(this.configuration).getChatThreadById(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4805,7 +3131,6 @@ export class ChatApi extends BaseAPI {
|
|
|
4805
3131
|
* @param {string} messageId Message ID
|
|
4806
3132
|
* @param {*} [options] Override http request option.
|
|
4807
3133
|
* @throws {RequiredError}
|
|
4808
|
-
* @memberof ChatApi
|
|
4809
3134
|
*/
|
|
4810
3135
|
public getMessageById(messageId: string, options?: RawAxiosRequestConfig) {
|
|
4811
3136
|
return ChatApiFp(this.configuration).getMessageById(messageId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4819,7 +3144,6 @@ export class ChatApi extends BaseAPI {
|
|
|
4819
3144
|
* @param {number} [limit] Maximum number of messages to return
|
|
4820
3145
|
* @param {*} [options] Override http request option.
|
|
4821
3146
|
* @throws {RequiredError}
|
|
4822
|
-
* @memberof ChatApi
|
|
4823
3147
|
*/
|
|
4824
3148
|
public getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
4825
3149
|
return ChatApiFp(this.configuration).getSkillHistory(aid, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4831,7 +3155,6 @@ export class ChatApi extends BaseAPI {
|
|
|
4831
3155
|
* @param {string} aid Agent ID
|
|
4832
3156
|
* @param {*} [options] Override http request option.
|
|
4833
3157
|
* @throws {RequiredError}
|
|
4834
|
-
* @memberof ChatApi
|
|
4835
3158
|
*/
|
|
4836
3159
|
public listChatsForAgent(aid: string, options?: RawAxiosRequestConfig) {
|
|
4837
3160
|
return ChatApiFp(this.configuration).listChatsForAgent(aid, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4846,7 +3169,6 @@ export class ChatApi extends BaseAPI {
|
|
|
4846
3169
|
* @param {number} [limit] Maximum number of messages to return
|
|
4847
3170
|
* @param {*} [options] Override http request option.
|
|
4848
3171
|
* @throws {RequiredError}
|
|
4849
|
-
* @memberof ChatApi
|
|
4850
3172
|
*/
|
|
4851
3173
|
public listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
4852
3174
|
return ChatApiFp(this.configuration).listMessagesInChat(aid, chatId, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4859,7 +3181,6 @@ export class ChatApi extends BaseAPI {
|
|
|
4859
3181
|
* @param {string} chatId Chat ID
|
|
4860
3182
|
* @param {*} [options] Override http request option.
|
|
4861
3183
|
* @throws {RequiredError}
|
|
4862
|
-
* @memberof ChatApi
|
|
4863
3184
|
*/
|
|
4864
3185
|
public retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
4865
3186
|
return ChatApiFp(this.configuration).retryMessageInChat(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4873,7 +3194,6 @@ export class ChatApi extends BaseAPI {
|
|
|
4873
3194
|
* @param {ChatMessageRequest} chatMessageRequest
|
|
4874
3195
|
* @param {*} [options] Override http request option.
|
|
4875
3196
|
* @throws {RequiredError}
|
|
4876
|
-
* @memberof ChatApi
|
|
4877
3197
|
*/
|
|
4878
3198
|
public sendMessageToChat(aid: string, chatId: string, chatMessageRequest: ChatMessageRequest, options?: RawAxiosRequestConfig) {
|
|
4879
3199
|
return ChatApiFp(this.configuration).sendMessageToChat(aid, chatId, chatMessageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4887,7 +3207,6 @@ export class ChatApi extends BaseAPI {
|
|
|
4887
3207
|
* @param {ChatUpdateRequest} chatUpdateRequest
|
|
4888
3208
|
* @param {*} [options] Override http request option.
|
|
4889
3209
|
* @throws {RequiredError}
|
|
4890
|
-
* @memberof ChatApi
|
|
4891
3210
|
*/
|
|
4892
3211
|
public updateChatThread(aid: string, chatId: string, chatUpdateRequest: ChatUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
4893
3212
|
return ChatApiFp(this.configuration).updateChatThread(aid, chatId, chatUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4898,7 +3217,6 @@ export class ChatApi extends BaseAPI {
|
|
|
4898
3217
|
|
|
4899
3218
|
/**
|
|
4900
3219
|
* CreditApi - axios parameter creator
|
|
4901
|
-
* @export
|
|
4902
3220
|
*/
|
|
4903
3221
|
export const CreditApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4904
3222
|
return {
|
|
@@ -5135,7 +3453,6 @@ export const CreditApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
5135
3453
|
|
|
5136
3454
|
/**
|
|
5137
3455
|
* CreditApi - functional programming interface
|
|
5138
|
-
* @export
|
|
5139
3456
|
*/
|
|
5140
3457
|
export const CreditApiFp = function(configuration?: Configuration) {
|
|
5141
3458
|
const localVarAxiosParamCreator = CreditApiAxiosParamCreator(configuration)
|
|
@@ -5217,7 +3534,6 @@ export const CreditApiFp = function(configuration?: Configuration) {
|
|
|
5217
3534
|
|
|
5218
3535
|
/**
|
|
5219
3536
|
* CreditApi - factory interface
|
|
5220
|
-
* @export
|
|
5221
3537
|
*/
|
|
5222
3538
|
export const CreditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5223
3539
|
const localVarFp = CreditApiFp(configuration)
|
|
@@ -5284,9 +3600,6 @@ export const CreditApiFactory = function (configuration?: Configuration, basePat
|
|
|
5284
3600
|
|
|
5285
3601
|
/**
|
|
5286
3602
|
* CreditApi - object-oriented interface
|
|
5287
|
-
* @export
|
|
5288
|
-
* @class CreditApi
|
|
5289
|
-
* @extends {BaseAPI}
|
|
5290
3603
|
*/
|
|
5291
3604
|
export class CreditApi extends BaseAPI {
|
|
5292
3605
|
/**
|
|
@@ -5295,7 +3608,6 @@ export class CreditApi extends BaseAPI {
|
|
|
5295
3608
|
* @param {string} eventId Credit event ID
|
|
5296
3609
|
* @param {*} [options] Override http request option.
|
|
5297
3610
|
* @throws {RequiredError}
|
|
5298
|
-
* @memberof CreditApi
|
|
5299
3611
|
*/
|
|
5300
3612
|
public fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig) {
|
|
5301
3613
|
return CreditApiFp(this.configuration).fetchCreditEvent(eventId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5306,7 +3618,6 @@ export class CreditApi extends BaseAPI {
|
|
|
5306
3618
|
* @summary Get User Account
|
|
5307
3619
|
* @param {*} [options] Override http request option.
|
|
5308
3620
|
* @throws {RequiredError}
|
|
5309
|
-
* @memberof CreditApi
|
|
5310
3621
|
*/
|
|
5311
3622
|
public getUserAccount(options?: RawAxiosRequestConfig) {
|
|
5312
3623
|
return CreditApiFp(this.configuration).getUserAccount(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5320,7 +3631,6 @@ export class CreditApi extends BaseAPI {
|
|
|
5320
3631
|
* @param {number} [limit] Maximum number of events to return
|
|
5321
3632
|
* @param {*} [options] Override http request option.
|
|
5322
3633
|
* @throws {RequiredError}
|
|
5323
|
-
* @memberof CreditApi
|
|
5324
3634
|
*/
|
|
5325
3635
|
public listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
5326
3636
|
return CreditApiFp(this.configuration).listAgentIncomeEvents(agentId, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5335,7 +3645,6 @@ export class CreditApi extends BaseAPI {
|
|
|
5335
3645
|
* @param {number} [limit] Maximum number of events to return
|
|
5336
3646
|
* @param {*} [options] Override http request option.
|
|
5337
3647
|
* @throws {RequiredError}
|
|
5338
|
-
* @memberof CreditApi
|
|
5339
3648
|
*/
|
|
5340
3649
|
public listUserEvents(eventType?: Array<EventType> | null, direction?: Direction | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
5341
3650
|
return CreditApiFp(this.configuration).listUserEvents(eventType, direction, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5350,7 +3659,6 @@ export class CreditApi extends BaseAPI {
|
|
|
5350
3659
|
* @param {number} [limit] Maximum number of transactions to return
|
|
5351
3660
|
* @param {*} [options] Override http request option.
|
|
5352
3661
|
* @throws {RequiredError}
|
|
5353
|
-
* @memberof CreditApi
|
|
5354
3662
|
*/
|
|
5355
3663
|
public listUserTransactions(txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
5356
3664
|
return CreditApiFp(this.configuration).listUserTransactions(txType, creditDebit, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5361,7 +3669,6 @@ export class CreditApi extends BaseAPI {
|
|
|
5361
3669
|
|
|
5362
3670
|
/**
|
|
5363
3671
|
* GeneratorApi - axios parameter creator
|
|
5364
|
-
* @export
|
|
5365
3672
|
*/
|
|
5366
3673
|
export const GeneratorApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5367
3674
|
return {
|
|
@@ -5487,7 +3794,6 @@ export const GeneratorApiAxiosParamCreator = function (configuration?: Configura
|
|
|
5487
3794
|
|
|
5488
3795
|
/**
|
|
5489
3796
|
* GeneratorApi - functional programming interface
|
|
5490
|
-
* @export
|
|
5491
3797
|
*/
|
|
5492
3798
|
export const GeneratorApiFp = function(configuration?: Configuration) {
|
|
5493
3799
|
const localVarAxiosParamCreator = GeneratorApiAxiosParamCreator(configuration)
|
|
@@ -5536,7 +3842,6 @@ export const GeneratorApiFp = function(configuration?: Configuration) {
|
|
|
5536
3842
|
|
|
5537
3843
|
/**
|
|
5538
3844
|
* GeneratorApi - factory interface
|
|
5539
|
-
* @export
|
|
5540
3845
|
*/
|
|
5541
3846
|
export const GeneratorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5542
3847
|
const localVarFp = GeneratorApiFp(configuration)
|
|
@@ -5576,9 +3881,6 @@ export const GeneratorApiFactory = function (configuration?: Configuration, base
|
|
|
5576
3881
|
|
|
5577
3882
|
/**
|
|
5578
3883
|
* GeneratorApi - object-oriented interface
|
|
5579
|
-
* @export
|
|
5580
|
-
* @class GeneratorApi
|
|
5581
|
-
* @extends {BaseAPI}
|
|
5582
3884
|
*/
|
|
5583
3885
|
export class GeneratorApi extends BaseAPI {
|
|
5584
3886
|
/**
|
|
@@ -5587,7 +3889,6 @@ export class GeneratorApi extends BaseAPI {
|
|
|
5587
3889
|
* @param {AgentGenerateRequest} agentGenerateRequest
|
|
5588
3890
|
* @param {*} [options] Override http request option.
|
|
5589
3891
|
* @throws {RequiredError}
|
|
5590
|
-
* @memberof GeneratorApi
|
|
5591
3892
|
*/
|
|
5592
3893
|
public generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig) {
|
|
5593
3894
|
return GeneratorApiFp(this.configuration).generateAgent(agentGenerateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5599,7 +3900,6 @@ export class GeneratorApi extends BaseAPI {
|
|
|
5599
3900
|
* @param {string} projectId
|
|
5600
3901
|
* @param {*} [options] Override http request option.
|
|
5601
3902
|
* @throws {RequiredError}
|
|
5602
|
-
* @memberof GeneratorApi
|
|
5603
3903
|
*/
|
|
5604
3904
|
public getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig) {
|
|
5605
3905
|
return GeneratorApiFp(this.configuration).getGenerationHistory(projectId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5611,7 +3911,6 @@ export class GeneratorApi extends BaseAPI {
|
|
|
5611
3911
|
* @param {number} [limit]
|
|
5612
3912
|
* @param {*} [options] Override http request option.
|
|
5613
3913
|
* @throws {RequiredError}
|
|
5614
|
-
* @memberof GeneratorApi
|
|
5615
3914
|
*/
|
|
5616
3915
|
public getGenerations(limit?: number, options?: RawAxiosRequestConfig) {
|
|
5617
3916
|
return GeneratorApiFp(this.configuration).getGenerations(limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5622,7 +3921,6 @@ export class GeneratorApi extends BaseAPI {
|
|
|
5622
3921
|
|
|
5623
3922
|
/**
|
|
5624
3923
|
* HealthApi - axios parameter creator
|
|
5625
|
-
* @export
|
|
5626
3924
|
*/
|
|
5627
3925
|
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5628
3926
|
return {
|
|
@@ -5661,7 +3959,6 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
5661
3959
|
|
|
5662
3960
|
/**
|
|
5663
3961
|
* HealthApi - functional programming interface
|
|
5664
|
-
* @export
|
|
5665
3962
|
*/
|
|
5666
3963
|
export const HealthApiFp = function(configuration?: Configuration) {
|
|
5667
3964
|
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
@@ -5683,7 +3980,6 @@ export const HealthApiFp = function(configuration?: Configuration) {
|
|
|
5683
3980
|
|
|
5684
3981
|
/**
|
|
5685
3982
|
* HealthApi - factory interface
|
|
5686
|
-
* @export
|
|
5687
3983
|
*/
|
|
5688
3984
|
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5689
3985
|
const localVarFp = HealthApiFp(configuration)
|
|
@@ -5702,9 +3998,6 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
|
|
|
5702
3998
|
|
|
5703
3999
|
/**
|
|
5704
4000
|
* HealthApi - object-oriented interface
|
|
5705
|
-
* @export
|
|
5706
|
-
* @class HealthApi
|
|
5707
|
-
* @extends {BaseAPI}
|
|
5708
4001
|
*/
|
|
5709
4002
|
export class HealthApi extends BaseAPI {
|
|
5710
4003
|
/**
|
|
@@ -5712,7 +4005,6 @@ export class HealthApi extends BaseAPI {
|
|
|
5712
4005
|
* @summary Health check endpoint
|
|
5713
4006
|
* @param {*} [options] Override http request option.
|
|
5714
4007
|
* @throws {RequiredError}
|
|
5715
|
-
* @memberof HealthApi
|
|
5716
4008
|
*/
|
|
5717
4009
|
public healthCheck(options?: RawAxiosRequestConfig) {
|
|
5718
4010
|
return HealthApiFp(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5723,7 +4015,6 @@ export class HealthApi extends BaseAPI {
|
|
|
5723
4015
|
|
|
5724
4016
|
/**
|
|
5725
4017
|
* MetadataApi - axios parameter creator
|
|
5726
|
-
* @export
|
|
5727
4018
|
*/
|
|
5728
4019
|
export const MetadataApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5729
4020
|
return {
|
|
@@ -5898,7 +4189,6 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5898
4189
|
|
|
5899
4190
|
/**
|
|
5900
4191
|
* MetadataApi - functional programming interface
|
|
5901
|
-
* @export
|
|
5902
4192
|
*/
|
|
5903
4193
|
export const MetadataApiFp = function(configuration?: Configuration) {
|
|
5904
4194
|
const localVarAxiosParamCreator = MetadataApiAxiosParamCreator(configuration)
|
|
@@ -5972,7 +4262,6 @@ export const MetadataApiFp = function(configuration?: Configuration) {
|
|
|
5972
4262
|
|
|
5973
4263
|
/**
|
|
5974
4264
|
* MetadataApi - factory interface
|
|
5975
|
-
* @export
|
|
5976
4265
|
*/
|
|
5977
4266
|
export const MetadataApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5978
4267
|
const localVarFp = MetadataApiFp(configuration)
|
|
@@ -6031,9 +4320,6 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
|
|
|
6031
4320
|
|
|
6032
4321
|
/**
|
|
6033
4322
|
* MetadataApi - object-oriented interface
|
|
6034
|
-
* @export
|
|
6035
|
-
* @class MetadataApi
|
|
6036
|
-
* @extends {BaseAPI}
|
|
6037
4323
|
*/
|
|
6038
4324
|
export class MetadataApi extends BaseAPI {
|
|
6039
4325
|
/**
|
|
@@ -6041,7 +4327,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
6041
4327
|
* @summary Get agent schema
|
|
6042
4328
|
* @param {*} [options] Override http request option.
|
|
6043
4329
|
* @throws {RequiredError}
|
|
6044
|
-
* @memberof MetadataApi
|
|
6045
4330
|
*/
|
|
6046
4331
|
public getAgentSchema(options?: RawAxiosRequestConfig) {
|
|
6047
4332
|
return MetadataApiFp(this.configuration).getAgentSchema(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6052,7 +4337,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
6052
4337
|
* @summary Get all LLM models
|
|
6053
4338
|
* @param {*} [options] Override http request option.
|
|
6054
4339
|
* @throws {RequiredError}
|
|
6055
|
-
* @memberof MetadataApi
|
|
6056
4340
|
*/
|
|
6057
4341
|
public getLlms(options?: RawAxiosRequestConfig) {
|
|
6058
4342
|
return MetadataApiFp(this.configuration).getLlms(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6066,7 +4350,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
6066
4350
|
* @param {string} ext Icon file extension
|
|
6067
4351
|
* @param {*} [options] Override http request option.
|
|
6068
4352
|
* @throws {RequiredError}
|
|
6069
|
-
* @memberof MetadataApi
|
|
6070
4353
|
*/
|
|
6071
4354
|
public getSkillIcon(skill: string, iconName: string, ext: string, options?: RawAxiosRequestConfig) {
|
|
6072
4355
|
return MetadataApiFp(this.configuration).getSkillIcon(skill, iconName, ext, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6078,7 +4361,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
6078
4361
|
* @param {string} skill Skill name
|
|
6079
4362
|
* @param {*} [options] Override http request option.
|
|
6080
4363
|
* @throws {RequiredError}
|
|
6081
|
-
* @memberof MetadataApi
|
|
6082
4364
|
*/
|
|
6083
4365
|
public getSkillSchema(skill: string, options?: RawAxiosRequestConfig) {
|
|
6084
4366
|
return MetadataApiFp(this.configuration).getSkillSchema(skill, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6089,7 +4371,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
6089
4371
|
* @summary Get all skills
|
|
6090
4372
|
* @param {*} [options] Override http request option.
|
|
6091
4373
|
* @throws {RequiredError}
|
|
6092
|
-
* @memberof MetadataApi
|
|
6093
4374
|
*/
|
|
6094
4375
|
public getSkills(options?: RawAxiosRequestConfig) {
|
|
6095
4376
|
return MetadataApiFp(this.configuration).getSkills(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6100,7 +4381,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
6100
4381
|
|
|
6101
4382
|
/**
|
|
6102
4383
|
* OAuthApi - axios parameter creator
|
|
6103
|
-
* @export
|
|
6104
4384
|
*/
|
|
6105
4385
|
export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6106
4386
|
return {
|
|
@@ -6245,7 +4525,6 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6245
4525
|
|
|
6246
4526
|
/**
|
|
6247
4527
|
* OAuthApi - functional programming interface
|
|
6248
|
-
* @export
|
|
6249
4528
|
*/
|
|
6250
4529
|
export const OAuthApiFp = function(configuration?: Configuration) {
|
|
6251
4530
|
const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
|
|
@@ -6297,7 +4576,6 @@ export const OAuthApiFp = function(configuration?: Configuration) {
|
|
|
6297
4576
|
|
|
6298
4577
|
/**
|
|
6299
4578
|
* OAuthApi - factory interface
|
|
6300
|
-
* @export
|
|
6301
4579
|
*/
|
|
6302
4580
|
export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6303
4581
|
const localVarFp = OAuthApiFp(configuration)
|
|
@@ -6340,9 +4618,6 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
|
|
|
6340
4618
|
|
|
6341
4619
|
/**
|
|
6342
4620
|
* OAuthApi - object-oriented interface
|
|
6343
|
-
* @export
|
|
6344
|
-
* @class OAuthApi
|
|
6345
|
-
* @extends {BaseAPI}
|
|
6346
4621
|
*/
|
|
6347
4622
|
export class OAuthApi extends BaseAPI {
|
|
6348
4623
|
/**
|
|
@@ -6352,7 +4627,6 @@ export class OAuthApi extends BaseAPI {
|
|
|
6352
4627
|
* @param {string} redirectUri
|
|
6353
4628
|
* @param {*} [options] Override http request option.
|
|
6354
4629
|
* @throws {RequiredError}
|
|
6355
|
-
* @memberof OAuthApi
|
|
6356
4630
|
*/
|
|
6357
4631
|
public getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig) {
|
|
6358
4632
|
return OAuthApiFp(this.configuration).getTwitterAuthUrl(agentId, redirectUri, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6366,7 +4640,6 @@ export class OAuthApi extends BaseAPI {
|
|
|
6366
4640
|
* @param {string | null} [error]
|
|
6367
4641
|
* @param {*} [options] Override http request option.
|
|
6368
4642
|
* @throws {RequiredError}
|
|
6369
|
-
* @memberof OAuthApi
|
|
6370
4643
|
*/
|
|
6371
4644
|
public twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig) {
|
|
6372
4645
|
return OAuthApiFp(this.configuration).twitterOauthCallback(state, code, error, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6378,7 +4651,6 @@ export class OAuthApi extends BaseAPI {
|
|
|
6378
4651
|
* @param {string} agentId ID of the agent to unlink from X
|
|
6379
4652
|
* @param {*} [options] Override http request option.
|
|
6380
4653
|
* @throws {RequiredError}
|
|
6381
|
-
* @memberof OAuthApi
|
|
6382
4654
|
*/
|
|
6383
4655
|
public unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig) {
|
|
6384
4656
|
return OAuthApiFp(this.configuration).unlinkTwitter(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6389,7 +4661,6 @@ export class OAuthApi extends BaseAPI {
|
|
|
6389
4661
|
|
|
6390
4662
|
/**
|
|
6391
4663
|
* UserApi - axios parameter creator
|
|
6392
|
-
* @export
|
|
6393
4664
|
*/
|
|
6394
4665
|
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6395
4666
|
return {
|
|
@@ -6480,7 +4751,6 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
6480
4751
|
|
|
6481
4752
|
/**
|
|
6482
4753
|
* UserApi - functional programming interface
|
|
6483
|
-
* @export
|
|
6484
4754
|
*/
|
|
6485
4755
|
export const UserApiFp = function(configuration?: Configuration) {
|
|
6486
4756
|
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
|
|
@@ -6517,7 +4787,6 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
6517
4787
|
|
|
6518
4788
|
/**
|
|
6519
4789
|
* UserApi - factory interface
|
|
6520
|
-
* @export
|
|
6521
4790
|
*/
|
|
6522
4791
|
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6523
4792
|
const localVarFp = UserApiFp(configuration)
|
|
@@ -6548,9 +4817,6 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
6548
4817
|
|
|
6549
4818
|
/**
|
|
6550
4819
|
* UserApi - object-oriented interface
|
|
6551
|
-
* @export
|
|
6552
|
-
* @class UserApi
|
|
6553
|
-
* @extends {BaseAPI}
|
|
6554
4820
|
*/
|
|
6555
4821
|
export class UserApi extends BaseAPI {
|
|
6556
4822
|
/**
|
|
@@ -6559,7 +4825,6 @@ export class UserApi extends BaseAPI {
|
|
|
6559
4825
|
* @param {string} agentId Agent ID
|
|
6560
4826
|
* @param {*} [options] Override http request option.
|
|
6561
4827
|
* @throws {RequiredError}
|
|
6562
|
-
* @memberof UserApi
|
|
6563
4828
|
*/
|
|
6564
4829
|
public getUserAgentById(agentId: string, options?: RawAxiosRequestConfig) {
|
|
6565
4830
|
return UserApiFp(this.configuration).getUserAgentById(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6572,7 +4837,6 @@ export class UserApi extends BaseAPI {
|
|
|
6572
4837
|
* @param {number} [limit] Maximum number of agents to return
|
|
6573
4838
|
* @param {*} [options] Override http request option.
|
|
6574
4839
|
* @throws {RequiredError}
|
|
6575
|
-
* @memberof UserApi
|
|
6576
4840
|
*/
|
|
6577
4841
|
public getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
6578
4842
|
return UserApiFp(this.configuration).getUserAgents(cursor, limit, options).then((request) => request(this.axios, this.basePath));
|