@crestal/nation-sdk 0.6.24 → 0.6.25
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 +2 -2
- package/api.ts +1733 -1
- package/base.ts +25 -1
- package/common.ts +38 -1
- package/configuration.ts +18 -1
- package/dist/api.d.ts +1733 -1
- package/dist/api.js +119 -1
- package/dist/base.d.ts +25 -1
- package/dist/base.js +20 -1
- package/dist/common.d.ts +38 -1
- package/dist/common.js +38 -1
- package/dist/configuration.d.ts +18 -1
- 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/AgentUpdate.md +3 -3
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Nation IntentKit API
|
|
3
3
|
* API for Nation IntentKit services
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.6.
|
|
5
|
+
* The version of the OpenAPI document: 0.6.25
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -15,56 +15,236 @@ import type { RequestArgs } from './base';
|
|
|
15
15
|
import { BaseAPI } from './base';
|
|
16
16
|
/**
|
|
17
17
|
* Agent model.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Agent
|
|
18
20
|
*/
|
|
19
21
|
export interface Agent {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Agent
|
|
26
|
+
*/
|
|
20
27
|
'name': string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Agent
|
|
32
|
+
*/
|
|
21
33
|
'slug'?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Agent
|
|
38
|
+
*/
|
|
22
39
|
'description'?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Agent
|
|
44
|
+
*/
|
|
23
45
|
'external_website'?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof Agent
|
|
50
|
+
*/
|
|
24
51
|
'picture'?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof Agent
|
|
56
|
+
*/
|
|
25
57
|
'ticker'?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof Agent
|
|
62
|
+
*/
|
|
26
63
|
'token_address'?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof Agent
|
|
68
|
+
*/
|
|
27
69
|
'token_pool'?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof Agent
|
|
74
|
+
*/
|
|
28
75
|
'mode'?: AgentModeEnum | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof Agent
|
|
80
|
+
*/
|
|
29
81
|
'fee_percentage'?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof Agent
|
|
86
|
+
*/
|
|
30
87
|
'purpose': string | null;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof Agent
|
|
92
|
+
*/
|
|
31
93
|
'personality': string | null;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof Agent
|
|
98
|
+
*/
|
|
32
99
|
'principles': string | null;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof Agent
|
|
104
|
+
*/
|
|
33
105
|
'owner'?: string | null;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof Agent
|
|
110
|
+
*/
|
|
34
111
|
'upstream_id'?: string | null;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {object}
|
|
115
|
+
* @memberof Agent
|
|
116
|
+
*/
|
|
35
117
|
'upstream_extra'?: object | null;
|
|
36
118
|
/**
|
|
37
119
|
* AI model identifier to be used by this agent for processing requests.
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof Agent
|
|
38
122
|
*/
|
|
39
123
|
'model'?: string;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof Agent
|
|
128
|
+
*/
|
|
40
129
|
'prompt'?: string | null;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof Agent
|
|
134
|
+
*/
|
|
41
135
|
'prompt_append'?: string | null;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {number}
|
|
139
|
+
* @memberof Agent
|
|
140
|
+
*/
|
|
42
141
|
'temperature'?: number | null;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {number}
|
|
145
|
+
* @memberof Agent
|
|
146
|
+
*/
|
|
43
147
|
'frequency_penalty'?: number | null;
|
|
148
|
+
/**
|
|
149
|
+
*
|
|
150
|
+
* @type {number}
|
|
151
|
+
* @memberof Agent
|
|
152
|
+
*/
|
|
44
153
|
'presence_penalty'?: number | null;
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof Agent
|
|
158
|
+
*/
|
|
45
159
|
'short_term_memory_strategy'?: AgentShortTermMemoryStrategyEnum | null;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @type {Array<AgentAutonomous>}
|
|
163
|
+
* @memberof Agent
|
|
164
|
+
*/
|
|
46
165
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @type {string}
|
|
169
|
+
* @memberof Agent
|
|
170
|
+
*/
|
|
47
171
|
'example_intro'?: string | null;
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @type {Array<AgentExample>}
|
|
175
|
+
* @memberof Agent
|
|
176
|
+
*/
|
|
48
177
|
'examples'?: Array<AgentExample> | null;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @type {object}
|
|
181
|
+
* @memberof Agent
|
|
182
|
+
*/
|
|
49
183
|
'skills'?: object | null;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @type {string}
|
|
187
|
+
* @memberof Agent
|
|
188
|
+
*/
|
|
50
189
|
'wallet_provider'?: AgentWalletProviderEnum | null;
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @type {string}
|
|
193
|
+
* @memberof Agent
|
|
194
|
+
*/
|
|
51
195
|
'readonly_wallet_address'?: string | null;
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @type {string}
|
|
199
|
+
* @memberof Agent
|
|
200
|
+
*/
|
|
52
201
|
'network_id'?: AgentNetworkIdEnum | null;
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @type {string}
|
|
205
|
+
* @memberof Agent
|
|
206
|
+
*/
|
|
53
207
|
'cdp_network_id'?: AgentCdpNetworkIdEnum | null;
|
|
208
|
+
/**
|
|
209
|
+
*
|
|
210
|
+
* @type {boolean}
|
|
211
|
+
* @memberof Agent
|
|
212
|
+
*/
|
|
54
213
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @type {string}
|
|
217
|
+
* @memberof Agent
|
|
218
|
+
*/
|
|
55
219
|
'telegram_entrypoint_prompt'?: string | null;
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @type {object}
|
|
223
|
+
* @memberof Agent
|
|
224
|
+
*/
|
|
56
225
|
'telegram_config'?: object | null;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @type {string}
|
|
229
|
+
* @memberof Agent
|
|
230
|
+
*/
|
|
57
231
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
58
232
|
/**
|
|
59
233
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
234
|
+
* @type {string}
|
|
235
|
+
* @memberof Agent
|
|
60
236
|
*/
|
|
61
237
|
'id'?: string;
|
|
62
238
|
/**
|
|
63
239
|
* Timestamp when the agent was created, will ignore when importing
|
|
240
|
+
* @type {string}
|
|
241
|
+
* @memberof Agent
|
|
64
242
|
*/
|
|
65
243
|
'created_at'?: string;
|
|
66
244
|
/**
|
|
67
245
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
246
|
+
* @type {string}
|
|
247
|
+
* @memberof Agent
|
|
68
248
|
*/
|
|
69
249
|
'updated_at'?: string;
|
|
70
250
|
}
|
|
@@ -112,208 +292,491 @@ export declare const AgentCdpNetworkIdEnum: {
|
|
|
112
292
|
export type AgentCdpNetworkIdEnum = typeof AgentCdpNetworkIdEnum[keyof typeof AgentCdpNetworkIdEnum];
|
|
113
293
|
/**
|
|
114
294
|
* Response model for agent API key generation.
|
|
295
|
+
* @export
|
|
296
|
+
* @interface AgentApiKeyResponse
|
|
115
297
|
*/
|
|
116
298
|
export interface AgentApiKeyResponse {
|
|
117
299
|
/**
|
|
118
300
|
* The private API key for the agent (sk-)
|
|
301
|
+
* @type {string}
|
|
302
|
+
* @memberof AgentApiKeyResponse
|
|
119
303
|
*/
|
|
120
304
|
'api_key': string;
|
|
121
305
|
/**
|
|
122
306
|
* The public API key for the agent (pk-)
|
|
307
|
+
* @type {string}
|
|
308
|
+
* @memberof AgentApiKeyResponse
|
|
123
309
|
*/
|
|
124
310
|
'api_key_public': string;
|
|
125
311
|
/**
|
|
126
312
|
* The base URL for the API
|
|
313
|
+
* @type {string}
|
|
314
|
+
* @memberof AgentApiKeyResponse
|
|
127
315
|
*/
|
|
128
316
|
'base_url': string;
|
|
129
317
|
/**
|
|
130
318
|
* API documentation URL
|
|
319
|
+
* @type {string}
|
|
320
|
+
* @memberof AgentApiKeyResponse
|
|
131
321
|
*/
|
|
132
322
|
'api_doc': string;
|
|
133
323
|
/**
|
|
134
324
|
* OpenAPI JSON URL for AI integration
|
|
325
|
+
* @type {string}
|
|
326
|
+
* @memberof AgentApiKeyResponse
|
|
135
327
|
*/
|
|
136
328
|
'doc_for_ai': string;
|
|
137
329
|
}
|
|
138
330
|
/**
|
|
139
331
|
* Response model for agent assets.
|
|
332
|
+
* @export
|
|
333
|
+
* @interface AgentAssetsResponse
|
|
140
334
|
*/
|
|
141
335
|
export interface AgentAssetsResponse {
|
|
142
336
|
/**
|
|
143
337
|
* ID of the agent
|
|
338
|
+
* @type {string}
|
|
339
|
+
* @memberof AgentAssetsResponse
|
|
144
340
|
*/
|
|
145
341
|
'agent_id': string;
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @type {string}
|
|
345
|
+
* @memberof AgentAssetsResponse
|
|
346
|
+
*/
|
|
146
347
|
'network_id': string | null;
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* @type {string}
|
|
351
|
+
* @memberof AgentAssetsResponse
|
|
352
|
+
*/
|
|
147
353
|
'wallet_address': string | null;
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
* @type {string}
|
|
357
|
+
* @memberof AgentAssetsResponse
|
|
358
|
+
*/
|
|
148
359
|
'ticker': string | null;
|
|
360
|
+
/**
|
|
361
|
+
*
|
|
362
|
+
* @type {string}
|
|
363
|
+
* @memberof AgentAssetsResponse
|
|
364
|
+
*/
|
|
149
365
|
'token_address': string | null;
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @type {string}
|
|
369
|
+
* @memberof AgentAssetsResponse
|
|
370
|
+
*/
|
|
150
371
|
'token_pool': string | null;
|
|
151
372
|
/**
|
|
152
373
|
* Total value locked, set to 0 for this version
|
|
374
|
+
* @type {string}
|
|
375
|
+
* @memberof AgentAssetsResponse
|
|
153
376
|
*/
|
|
154
377
|
'tvl'?: string;
|
|
155
378
|
/**
|
|
156
379
|
* List of assets with symbol and balance
|
|
380
|
+
* @type {Array<Asset>}
|
|
381
|
+
* @memberof AgentAssetsResponse
|
|
157
382
|
*/
|
|
158
383
|
'assets': Array<Asset>;
|
|
159
384
|
}
|
|
160
385
|
/**
|
|
161
386
|
* Autonomous agent configuration.
|
|
387
|
+
* @export
|
|
388
|
+
* @interface AgentAutonomous
|
|
162
389
|
*/
|
|
163
390
|
export interface AgentAutonomous {
|
|
164
391
|
/**
|
|
165
392
|
* Unique identifier for the autonomous configuration
|
|
393
|
+
* @type {string}
|
|
394
|
+
* @memberof AgentAutonomous
|
|
166
395
|
*/
|
|
167
396
|
'id'?: string;
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @type {string}
|
|
400
|
+
* @memberof AgentAutonomous
|
|
401
|
+
*/
|
|
168
402
|
'name'?: string | null;
|
|
403
|
+
/**
|
|
404
|
+
*
|
|
405
|
+
* @type {string}
|
|
406
|
+
* @memberof AgentAutonomous
|
|
407
|
+
*/
|
|
169
408
|
'description'?: string | null;
|
|
409
|
+
/**
|
|
410
|
+
*
|
|
411
|
+
* @type {number}
|
|
412
|
+
* @memberof AgentAutonomous
|
|
413
|
+
*/
|
|
170
414
|
'minutes'?: number | null;
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* @type {string}
|
|
418
|
+
* @memberof AgentAutonomous
|
|
419
|
+
*/
|
|
171
420
|
'cron'?: string | null;
|
|
172
421
|
/**
|
|
173
422
|
* Special prompt used during autonomous operation
|
|
423
|
+
* @type {string}
|
|
424
|
+
* @memberof AgentAutonomous
|
|
174
425
|
*/
|
|
175
426
|
'prompt': string;
|
|
427
|
+
/**
|
|
428
|
+
*
|
|
429
|
+
* @type {boolean}
|
|
430
|
+
* @memberof AgentAutonomous
|
|
431
|
+
*/
|
|
176
432
|
'enabled'?: boolean | null;
|
|
177
433
|
}
|
|
178
434
|
/**
|
|
179
435
|
* Agent example configuration.
|
|
436
|
+
* @export
|
|
437
|
+
* @interface AgentExample
|
|
180
438
|
*/
|
|
181
439
|
export interface AgentExample {
|
|
182
440
|
/**
|
|
183
441
|
* Name of the example
|
|
442
|
+
* @type {string}
|
|
443
|
+
* @memberof AgentExample
|
|
184
444
|
*/
|
|
185
445
|
'name': string;
|
|
186
446
|
/**
|
|
187
447
|
* Description of the example
|
|
448
|
+
* @type {string}
|
|
449
|
+
* @memberof AgentExample
|
|
188
450
|
*/
|
|
189
451
|
'description': string;
|
|
190
452
|
/**
|
|
191
453
|
* Example prompt
|
|
454
|
+
* @type {string}
|
|
455
|
+
* @memberof AgentExample
|
|
192
456
|
*/
|
|
193
457
|
'prompt': string;
|
|
194
458
|
}
|
|
195
459
|
/**
|
|
196
460
|
* Request model for agent generation.
|
|
461
|
+
* @export
|
|
462
|
+
* @interface AgentGenerateRequest
|
|
197
463
|
*/
|
|
198
464
|
export interface AgentGenerateRequest {
|
|
199
465
|
/**
|
|
200
466
|
* Natural language description of the agent\'s desired capabilities
|
|
467
|
+
* @type {string}
|
|
468
|
+
* @memberof AgentGenerateRequest
|
|
201
469
|
*/
|
|
202
470
|
'prompt': string;
|
|
471
|
+
/**
|
|
472
|
+
*
|
|
473
|
+
* @type {AgentUpdate}
|
|
474
|
+
* @memberof AgentGenerateRequest
|
|
475
|
+
*/
|
|
203
476
|
'existing_agent'?: AgentUpdate | null;
|
|
477
|
+
/**
|
|
478
|
+
*
|
|
479
|
+
* @type {string}
|
|
480
|
+
* @memberof AgentGenerateRequest
|
|
481
|
+
*/
|
|
204
482
|
'project_id'?: string | null;
|
|
205
483
|
}
|
|
206
484
|
/**
|
|
207
485
|
* Response model for agent generation.
|
|
486
|
+
* @export
|
|
487
|
+
* @interface AgentGenerateResponse
|
|
208
488
|
*/
|
|
209
489
|
export interface AgentGenerateResponse {
|
|
210
490
|
/**
|
|
211
491
|
* The generated agent schema
|
|
492
|
+
* @type {object}
|
|
493
|
+
* @memberof AgentGenerateResponse
|
|
212
494
|
*/
|
|
213
495
|
'agent': object;
|
|
214
496
|
/**
|
|
215
497
|
* Project ID for this conversation session
|
|
498
|
+
* @type {string}
|
|
499
|
+
* @memberof AgentGenerateResponse
|
|
216
500
|
*/
|
|
217
501
|
'project_id': string;
|
|
218
502
|
/**
|
|
219
503
|
* Human-readable summary of the generated agent
|
|
504
|
+
* @type {string}
|
|
505
|
+
* @memberof AgentGenerateResponse
|
|
220
506
|
*/
|
|
221
507
|
'summary': string;
|
|
222
508
|
/**
|
|
223
509
|
* Generated tags for the agent as ID objects: [{\'id\': 1}, {\'id\': 2}]
|
|
510
|
+
* @type {Array<{ [key: string]: number; }>}
|
|
511
|
+
* @memberof AgentGenerateResponse
|
|
224
512
|
*/
|
|
225
513
|
'tags'?: Array<{
|
|
226
514
|
[key: string]: number;
|
|
227
515
|
}>;
|
|
228
516
|
/**
|
|
229
517
|
* List of autonomous tasks generated for the agent
|
|
518
|
+
* @type {Array<object>}
|
|
519
|
+
* @memberof AgentGenerateResponse
|
|
230
520
|
*/
|
|
231
521
|
'autonomous_tasks'?: Array<object>;
|
|
232
522
|
/**
|
|
233
523
|
* List of skills that were activated based on the prompt
|
|
524
|
+
* @type {Array<string>}
|
|
525
|
+
* @memberof AgentGenerateResponse
|
|
234
526
|
*/
|
|
235
527
|
'activated_skills'?: Array<string>;
|
|
236
528
|
}
|
|
237
529
|
/**
|
|
238
530
|
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
531
|
+
* @export
|
|
532
|
+
* @interface AgentListResponse
|
|
239
533
|
*/
|
|
240
534
|
export interface AgentListResponse {
|
|
241
535
|
/**
|
|
242
536
|
* List of agents
|
|
537
|
+
* @type {Array<AgentResponse>}
|
|
538
|
+
* @memberof AgentListResponse
|
|
243
539
|
*/
|
|
244
540
|
'data': Array<AgentResponse>;
|
|
245
541
|
/**
|
|
246
542
|
* Indicates if there are more items
|
|
543
|
+
* @type {boolean}
|
|
544
|
+
* @memberof AgentListResponse
|
|
247
545
|
*/
|
|
248
546
|
'has_more': boolean;
|
|
547
|
+
/**
|
|
548
|
+
*
|
|
549
|
+
* @type {string}
|
|
550
|
+
* @memberof AgentListResponse
|
|
551
|
+
*/
|
|
249
552
|
'next_cursor'?: string | null;
|
|
250
553
|
}
|
|
251
554
|
/**
|
|
252
555
|
* Response model for Agent API.
|
|
556
|
+
* @export
|
|
557
|
+
* @interface AgentResponse
|
|
253
558
|
*/
|
|
254
559
|
export interface AgentResponse {
|
|
255
560
|
/**
|
|
256
561
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
562
|
+
* @type {string}
|
|
563
|
+
* @memberof AgentResponse
|
|
257
564
|
*/
|
|
258
565
|
'id': string;
|
|
259
566
|
/**
|
|
260
567
|
* Timestamp when the agent was created, will ignore when importing
|
|
568
|
+
* @type {string}
|
|
569
|
+
* @memberof AgentResponse
|
|
261
570
|
*/
|
|
262
571
|
'created_at': string;
|
|
263
572
|
/**
|
|
264
573
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
574
|
+
* @type {string}
|
|
575
|
+
* @memberof AgentResponse
|
|
265
576
|
*/
|
|
266
577
|
'updated_at': string;
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @type {string}
|
|
581
|
+
* @memberof AgentResponse
|
|
582
|
+
*/
|
|
267
583
|
'name'?: string | null;
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @type {string}
|
|
587
|
+
* @memberof AgentResponse
|
|
588
|
+
*/
|
|
268
589
|
'slug'?: string | null;
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @type {string}
|
|
593
|
+
* @memberof AgentResponse
|
|
594
|
+
*/
|
|
269
595
|
'description'?: string | null;
|
|
596
|
+
/**
|
|
597
|
+
*
|
|
598
|
+
* @type {string}
|
|
599
|
+
* @memberof AgentResponse
|
|
600
|
+
*/
|
|
270
601
|
'external_website'?: string | null;
|
|
602
|
+
/**
|
|
603
|
+
*
|
|
604
|
+
* @type {string}
|
|
605
|
+
* @memberof AgentResponse
|
|
606
|
+
*/
|
|
271
607
|
'picture'?: string | null;
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @type {string}
|
|
611
|
+
* @memberof AgentResponse
|
|
612
|
+
*/
|
|
272
613
|
'ticker'?: string | null;
|
|
614
|
+
/**
|
|
615
|
+
*
|
|
616
|
+
* @type {string}
|
|
617
|
+
* @memberof AgentResponse
|
|
618
|
+
*/
|
|
273
619
|
'token_address'?: string | null;
|
|
620
|
+
/**
|
|
621
|
+
*
|
|
622
|
+
* @type {string}
|
|
623
|
+
* @memberof AgentResponse
|
|
624
|
+
*/
|
|
274
625
|
'token_pool'?: string | null;
|
|
626
|
+
/**
|
|
627
|
+
*
|
|
628
|
+
* @type {string}
|
|
629
|
+
* @memberof AgentResponse
|
|
630
|
+
*/
|
|
275
631
|
'mode'?: AgentResponseModeEnum | null;
|
|
632
|
+
/**
|
|
633
|
+
*
|
|
634
|
+
* @type {string}
|
|
635
|
+
* @memberof AgentResponse
|
|
636
|
+
*/
|
|
276
637
|
'fee_percentage'?: string | null;
|
|
638
|
+
/**
|
|
639
|
+
*
|
|
640
|
+
* @type {string}
|
|
641
|
+
* @memberof AgentResponse
|
|
642
|
+
*/
|
|
277
643
|
'owner'?: string | null;
|
|
644
|
+
/**
|
|
645
|
+
*
|
|
646
|
+
* @type {string}
|
|
647
|
+
* @memberof AgentResponse
|
|
648
|
+
*/
|
|
278
649
|
'upstream_id'?: string | null;
|
|
650
|
+
/**
|
|
651
|
+
*
|
|
652
|
+
* @type {object}
|
|
653
|
+
* @memberof AgentResponse
|
|
654
|
+
*/
|
|
279
655
|
'upstream_extra'?: object | null;
|
|
280
656
|
/**
|
|
281
657
|
* 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
|
|
658
|
+
* @type {string}
|
|
659
|
+
* @memberof AgentResponse
|
|
282
660
|
*/
|
|
283
661
|
'model': string;
|
|
662
|
+
/**
|
|
663
|
+
*
|
|
664
|
+
* @type {Array<object>}
|
|
665
|
+
* @memberof AgentResponse
|
|
666
|
+
*/
|
|
284
667
|
'autonomous'?: Array<object> | null;
|
|
668
|
+
/**
|
|
669
|
+
*
|
|
670
|
+
* @type {string}
|
|
671
|
+
* @memberof AgentResponse
|
|
672
|
+
*/
|
|
285
673
|
'example_intro'?: string | null;
|
|
674
|
+
/**
|
|
675
|
+
*
|
|
676
|
+
* @type {Array<AgentExample>}
|
|
677
|
+
* @memberof AgentResponse
|
|
678
|
+
*/
|
|
286
679
|
'examples'?: Array<AgentExample> | null;
|
|
680
|
+
/**
|
|
681
|
+
*
|
|
682
|
+
* @type {object}
|
|
683
|
+
* @memberof AgentResponse
|
|
684
|
+
*/
|
|
287
685
|
'skills'?: object | null;
|
|
686
|
+
/**
|
|
687
|
+
*
|
|
688
|
+
* @type {string}
|
|
689
|
+
* @memberof AgentResponse
|
|
690
|
+
*/
|
|
288
691
|
'wallet_provider'?: AgentResponseWalletProviderEnum | null;
|
|
692
|
+
/**
|
|
693
|
+
*
|
|
694
|
+
* @type {string}
|
|
695
|
+
* @memberof AgentResponse
|
|
696
|
+
*/
|
|
289
697
|
'network_id'?: string | null;
|
|
698
|
+
/**
|
|
699
|
+
*
|
|
700
|
+
* @type {string}
|
|
701
|
+
* @memberof AgentResponse
|
|
702
|
+
*/
|
|
290
703
|
'cdp_network_id'?: string | null;
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @type {boolean}
|
|
707
|
+
* @memberof AgentResponse
|
|
708
|
+
*/
|
|
291
709
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @type {string}
|
|
713
|
+
* @memberof AgentResponse
|
|
714
|
+
*/
|
|
292
715
|
'cdp_wallet_address': string | null;
|
|
716
|
+
/**
|
|
717
|
+
*
|
|
718
|
+
* @type {string}
|
|
719
|
+
* @memberof AgentResponse
|
|
720
|
+
*/
|
|
293
721
|
'evm_wallet_address': string | null;
|
|
722
|
+
/**
|
|
723
|
+
*
|
|
724
|
+
* @type {string}
|
|
725
|
+
* @memberof AgentResponse
|
|
726
|
+
*/
|
|
294
727
|
'solana_wallet_address': string | null;
|
|
295
728
|
/**
|
|
296
729
|
* Whether the agent has linked their Twitter account
|
|
730
|
+
* @type {boolean}
|
|
731
|
+
* @memberof AgentResponse
|
|
297
732
|
*/
|
|
298
733
|
'has_twitter_linked': boolean;
|
|
734
|
+
/**
|
|
735
|
+
*
|
|
736
|
+
* @type {string}
|
|
737
|
+
* @memberof AgentResponse
|
|
738
|
+
*/
|
|
299
739
|
'linked_twitter_username': string | null;
|
|
740
|
+
/**
|
|
741
|
+
*
|
|
742
|
+
* @type {string}
|
|
743
|
+
* @memberof AgentResponse
|
|
744
|
+
*/
|
|
300
745
|
'linked_twitter_name': string | null;
|
|
301
746
|
/**
|
|
302
747
|
* Whether the agent has self-keyed their Twitter account
|
|
748
|
+
* @type {boolean}
|
|
749
|
+
* @memberof AgentResponse
|
|
303
750
|
*/
|
|
304
751
|
'has_twitter_self_key': boolean;
|
|
305
752
|
/**
|
|
306
753
|
* Whether the agent has self-keyed their Telegram account
|
|
754
|
+
* @type {boolean}
|
|
755
|
+
* @memberof AgentResponse
|
|
307
756
|
*/
|
|
308
757
|
'has_telegram_self_key': boolean;
|
|
758
|
+
/**
|
|
759
|
+
*
|
|
760
|
+
* @type {string}
|
|
761
|
+
* @memberof AgentResponse
|
|
762
|
+
*/
|
|
309
763
|
'linked_telegram_username': string | null;
|
|
764
|
+
/**
|
|
765
|
+
*
|
|
766
|
+
* @type {string}
|
|
767
|
+
* @memberof AgentResponse
|
|
768
|
+
*/
|
|
310
769
|
'linked_telegram_name': string | null;
|
|
311
770
|
/**
|
|
312
771
|
* Whether the agent accepts image inputs in public mode
|
|
772
|
+
* @type {boolean}
|
|
773
|
+
* @memberof AgentResponse
|
|
313
774
|
*/
|
|
314
775
|
'accept_image_input': boolean;
|
|
315
776
|
/**
|
|
316
777
|
* Whether the agent accepts image inputs in private mode
|
|
778
|
+
* @type {boolean}
|
|
779
|
+
* @memberof AgentResponse
|
|
317
780
|
*/
|
|
318
781
|
'accept_image_input_private': boolean;
|
|
319
782
|
}
|
|
@@ -329,6 +792,8 @@ export declare const AgentResponseWalletProviderEnum: {
|
|
|
329
792
|
export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProviderEnum[keyof typeof AgentResponseWalletProviderEnum];
|
|
330
793
|
/**
|
|
331
794
|
* Sort options for agents list.
|
|
795
|
+
* @export
|
|
796
|
+
* @enum {string}
|
|
332
797
|
*/
|
|
333
798
|
export declare const AgentSortOption: {
|
|
334
799
|
readonly CreatedAtDesc: "created_at desc";
|
|
@@ -338,110 +803,316 @@ export declare const AgentSortOption: {
|
|
|
338
803
|
export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOption];
|
|
339
804
|
/**
|
|
340
805
|
* Response model for agent statistics.
|
|
806
|
+
* @export
|
|
807
|
+
* @interface AgentStatisticsResponse
|
|
341
808
|
*/
|
|
342
809
|
export interface AgentStatisticsResponse {
|
|
343
810
|
/**
|
|
344
811
|
* ID of the agent
|
|
812
|
+
* @type {string}
|
|
813
|
+
* @memberof AgentStatisticsResponse
|
|
345
814
|
*/
|
|
346
815
|
'agent_id': string;
|
|
347
816
|
/**
|
|
348
817
|
* ID of the agent\'s credit account
|
|
818
|
+
* @type {string}
|
|
819
|
+
* @memberof AgentStatisticsResponse
|
|
349
820
|
*/
|
|
350
821
|
'account_id': string;
|
|
351
822
|
/**
|
|
352
823
|
* Total balance of the agent\'s account
|
|
824
|
+
* @type {string}
|
|
825
|
+
* @memberof AgentStatisticsResponse
|
|
353
826
|
*/
|
|
354
827
|
'balance': string;
|
|
355
828
|
/**
|
|
356
829
|
* Total income from all credit events
|
|
830
|
+
* @type {string}
|
|
831
|
+
* @memberof AgentStatisticsResponse
|
|
357
832
|
*/
|
|
358
833
|
'total_income': string;
|
|
359
834
|
/**
|
|
360
835
|
* Net income from all credit events
|
|
836
|
+
* @type {string}
|
|
837
|
+
* @memberof AgentStatisticsResponse
|
|
361
838
|
*/
|
|
362
839
|
'net_income': string;
|
|
363
840
|
/**
|
|
364
841
|
* Permanent income from all credit events
|
|
842
|
+
* @type {string}
|
|
843
|
+
* @memberof AgentStatisticsResponse
|
|
365
844
|
*/
|
|
366
845
|
'permanent_income': string;
|
|
367
846
|
/**
|
|
368
847
|
* Permanent profit from all credit events
|
|
848
|
+
* @type {string}
|
|
849
|
+
* @memberof AgentStatisticsResponse
|
|
369
850
|
*/
|
|
370
851
|
'permanent_profit': string;
|
|
371
852
|
/**
|
|
372
853
|
* Income from last 24 hours
|
|
854
|
+
* @type {string}
|
|
855
|
+
* @memberof AgentStatisticsResponse
|
|
373
856
|
*/
|
|
374
857
|
'last_24h_income': string;
|
|
375
858
|
/**
|
|
376
859
|
* Permanent income from last 24 hours
|
|
860
|
+
* @type {string}
|
|
861
|
+
* @memberof AgentStatisticsResponse
|
|
377
862
|
*/
|
|
378
863
|
'last_24h_permanent_income': string;
|
|
379
864
|
/**
|
|
380
865
|
* Average action cost
|
|
866
|
+
* @type {string}
|
|
867
|
+
* @memberof AgentStatisticsResponse
|
|
381
868
|
*/
|
|
382
869
|
'avg_action_cost': string;
|
|
383
870
|
/**
|
|
384
871
|
* Minimum action cost
|
|
872
|
+
* @type {string}
|
|
873
|
+
* @memberof AgentStatisticsResponse
|
|
385
874
|
*/
|
|
386
875
|
'min_action_cost': string;
|
|
387
876
|
/**
|
|
388
877
|
* Maximum action cost
|
|
878
|
+
* @type {string}
|
|
879
|
+
* @memberof AgentStatisticsResponse
|
|
389
880
|
*/
|
|
390
881
|
'max_action_cost': string;
|
|
391
882
|
/**
|
|
392
883
|
* Low action cost
|
|
884
|
+
* @type {string}
|
|
885
|
+
* @memberof AgentStatisticsResponse
|
|
393
886
|
*/
|
|
394
887
|
'low_action_cost': string;
|
|
395
888
|
/**
|
|
396
889
|
* Medium action cost
|
|
890
|
+
* @type {string}
|
|
891
|
+
* @memberof AgentStatisticsResponse
|
|
397
892
|
*/
|
|
398
893
|
'medium_action_cost': string;
|
|
399
894
|
/**
|
|
400
895
|
* High action cost
|
|
896
|
+
* @type {string}
|
|
897
|
+
* @memberof AgentStatisticsResponse
|
|
401
898
|
*/
|
|
402
899
|
'high_action_cost': string;
|
|
403
900
|
}
|
|
404
901
|
/**
|
|
405
902
|
* Agent update model.
|
|
903
|
+
* @export
|
|
904
|
+
* @interface AgentUpdate
|
|
406
905
|
*/
|
|
407
906
|
export interface AgentUpdate {
|
|
907
|
+
/**
|
|
908
|
+
*
|
|
909
|
+
* @type {string}
|
|
910
|
+
* @memberof AgentUpdate
|
|
911
|
+
*/
|
|
408
912
|
'name': string | null;
|
|
913
|
+
/**
|
|
914
|
+
*
|
|
915
|
+
* @type {string}
|
|
916
|
+
* @memberof AgentUpdate
|
|
917
|
+
*/
|
|
409
918
|
'slug'?: string | null;
|
|
919
|
+
/**
|
|
920
|
+
*
|
|
921
|
+
* @type {string}
|
|
922
|
+
* @memberof AgentUpdate
|
|
923
|
+
*/
|
|
410
924
|
'description'?: string | null;
|
|
925
|
+
/**
|
|
926
|
+
*
|
|
927
|
+
* @type {string}
|
|
928
|
+
* @memberof AgentUpdate
|
|
929
|
+
*/
|
|
411
930
|
'external_website'?: string | null;
|
|
931
|
+
/**
|
|
932
|
+
*
|
|
933
|
+
* @type {string}
|
|
934
|
+
* @memberof AgentUpdate
|
|
935
|
+
*/
|
|
412
936
|
'picture'?: string | null;
|
|
937
|
+
/**
|
|
938
|
+
*
|
|
939
|
+
* @type {string}
|
|
940
|
+
* @memberof AgentUpdate
|
|
941
|
+
*/
|
|
413
942
|
'ticker'?: string | null;
|
|
943
|
+
/**
|
|
944
|
+
*
|
|
945
|
+
* @type {string}
|
|
946
|
+
* @memberof AgentUpdate
|
|
947
|
+
*/
|
|
414
948
|
'token_address'?: string | null;
|
|
949
|
+
/**
|
|
950
|
+
*
|
|
951
|
+
* @type {string}
|
|
952
|
+
* @memberof AgentUpdate
|
|
953
|
+
*/
|
|
415
954
|
'token_pool'?: string | null;
|
|
955
|
+
/**
|
|
956
|
+
*
|
|
957
|
+
* @type {string}
|
|
958
|
+
* @memberof AgentUpdate
|
|
959
|
+
*/
|
|
416
960
|
'mode'?: AgentUpdateModeEnum | null;
|
|
961
|
+
/**
|
|
962
|
+
*
|
|
963
|
+
* @type {FeePercentage}
|
|
964
|
+
* @memberof AgentUpdate
|
|
965
|
+
*/
|
|
417
966
|
'fee_percentage'?: FeePercentage | null;
|
|
967
|
+
/**
|
|
968
|
+
*
|
|
969
|
+
* @type {string}
|
|
970
|
+
* @memberof AgentUpdate
|
|
971
|
+
*/
|
|
418
972
|
'purpose': string | null;
|
|
973
|
+
/**
|
|
974
|
+
*
|
|
975
|
+
* @type {string}
|
|
976
|
+
* @memberof AgentUpdate
|
|
977
|
+
*/
|
|
419
978
|
'personality': string | null;
|
|
979
|
+
/**
|
|
980
|
+
*
|
|
981
|
+
* @type {string}
|
|
982
|
+
* @memberof AgentUpdate
|
|
983
|
+
*/
|
|
420
984
|
'principles': string | null;
|
|
985
|
+
/**
|
|
986
|
+
*
|
|
987
|
+
* @type {string}
|
|
988
|
+
* @memberof AgentUpdate
|
|
989
|
+
*/
|
|
421
990
|
'owner'?: string | null;
|
|
991
|
+
/**
|
|
992
|
+
*
|
|
993
|
+
* @type {string}
|
|
994
|
+
* @memberof AgentUpdate
|
|
995
|
+
*/
|
|
422
996
|
'upstream_id'?: string | null;
|
|
997
|
+
/**
|
|
998
|
+
*
|
|
999
|
+
* @type {object}
|
|
1000
|
+
* @memberof AgentUpdate
|
|
1001
|
+
*/
|
|
423
1002
|
'upstream_extra'?: object | null;
|
|
424
1003
|
/**
|
|
425
1004
|
* AI model identifier to be used by this agent for processing requests.
|
|
1005
|
+
* @type {string}
|
|
1006
|
+
* @memberof AgentUpdate
|
|
426
1007
|
*/
|
|
427
1008
|
'model'?: string;
|
|
1009
|
+
/**
|
|
1010
|
+
*
|
|
1011
|
+
* @type {string}
|
|
1012
|
+
* @memberof AgentUpdate
|
|
1013
|
+
*/
|
|
428
1014
|
'prompt'?: string | null;
|
|
1015
|
+
/**
|
|
1016
|
+
*
|
|
1017
|
+
* @type {string}
|
|
1018
|
+
* @memberof AgentUpdate
|
|
1019
|
+
*/
|
|
429
1020
|
'prompt_append'?: string | null;
|
|
1021
|
+
/**
|
|
1022
|
+
*
|
|
1023
|
+
* @type {number}
|
|
1024
|
+
* @memberof AgentUpdate
|
|
1025
|
+
*/
|
|
430
1026
|
'temperature'?: number | null;
|
|
1027
|
+
/**
|
|
1028
|
+
*
|
|
1029
|
+
* @type {number}
|
|
1030
|
+
* @memberof AgentUpdate
|
|
1031
|
+
*/
|
|
431
1032
|
'frequency_penalty'?: number | null;
|
|
1033
|
+
/**
|
|
1034
|
+
*
|
|
1035
|
+
* @type {number}
|
|
1036
|
+
* @memberof AgentUpdate
|
|
1037
|
+
*/
|
|
432
1038
|
'presence_penalty'?: number | null;
|
|
1039
|
+
/**
|
|
1040
|
+
*
|
|
1041
|
+
* @type {string}
|
|
1042
|
+
* @memberof AgentUpdate
|
|
1043
|
+
*/
|
|
433
1044
|
'short_term_memory_strategy'?: AgentUpdateShortTermMemoryStrategyEnum | null;
|
|
1045
|
+
/**
|
|
1046
|
+
*
|
|
1047
|
+
* @type {Array<AgentAutonomous>}
|
|
1048
|
+
* @memberof AgentUpdate
|
|
1049
|
+
*/
|
|
434
1050
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1051
|
+
/**
|
|
1052
|
+
*
|
|
1053
|
+
* @type {string}
|
|
1054
|
+
* @memberof AgentUpdate
|
|
1055
|
+
*/
|
|
435
1056
|
'example_intro'?: string | null;
|
|
1057
|
+
/**
|
|
1058
|
+
*
|
|
1059
|
+
* @type {Array<AgentExample>}
|
|
1060
|
+
* @memberof AgentUpdate
|
|
1061
|
+
*/
|
|
436
1062
|
'examples'?: Array<AgentExample> | null;
|
|
1063
|
+
/**
|
|
1064
|
+
*
|
|
1065
|
+
* @type {object}
|
|
1066
|
+
* @memberof AgentUpdate
|
|
1067
|
+
*/
|
|
437
1068
|
'skills'?: object | null;
|
|
1069
|
+
/**
|
|
1070
|
+
*
|
|
1071
|
+
* @type {string}
|
|
1072
|
+
* @memberof AgentUpdate
|
|
1073
|
+
*/
|
|
438
1074
|
'wallet_provider'?: AgentUpdateWalletProviderEnum | null;
|
|
1075
|
+
/**
|
|
1076
|
+
*
|
|
1077
|
+
* @type {string}
|
|
1078
|
+
* @memberof AgentUpdate
|
|
1079
|
+
*/
|
|
439
1080
|
'readonly_wallet_address'?: string | null;
|
|
1081
|
+
/**
|
|
1082
|
+
*
|
|
1083
|
+
* @type {string}
|
|
1084
|
+
* @memberof AgentUpdate
|
|
1085
|
+
*/
|
|
440
1086
|
'network_id'?: AgentUpdateNetworkIdEnum | null;
|
|
1087
|
+
/**
|
|
1088
|
+
*
|
|
1089
|
+
* @type {string}
|
|
1090
|
+
* @memberof AgentUpdate
|
|
1091
|
+
*/
|
|
441
1092
|
'cdp_network_id'?: AgentUpdateCdpNetworkIdEnum | null;
|
|
1093
|
+
/**
|
|
1094
|
+
*
|
|
1095
|
+
* @type {boolean}
|
|
1096
|
+
* @memberof AgentUpdate
|
|
1097
|
+
*/
|
|
442
1098
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1099
|
+
/**
|
|
1100
|
+
*
|
|
1101
|
+
* @type {string}
|
|
1102
|
+
* @memberof AgentUpdate
|
|
1103
|
+
*/
|
|
443
1104
|
'telegram_entrypoint_prompt'?: string | null;
|
|
1105
|
+
/**
|
|
1106
|
+
*
|
|
1107
|
+
* @type {object}
|
|
1108
|
+
* @memberof AgentUpdate
|
|
1109
|
+
*/
|
|
444
1110
|
'telegram_config'?: object | null;
|
|
1111
|
+
/**
|
|
1112
|
+
*
|
|
1113
|
+
* @type {string}
|
|
1114
|
+
* @memberof AgentUpdate
|
|
1115
|
+
*/
|
|
445
1116
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
446
1117
|
}
|
|
447
1118
|
export declare const AgentUpdateModeEnum: {
|
|
@@ -488,19 +1159,27 @@ export declare const AgentUpdateCdpNetworkIdEnum: {
|
|
|
488
1159
|
export type AgentUpdateCdpNetworkIdEnum = typeof AgentUpdateCdpNetworkIdEnum[keyof typeof AgentUpdateCdpNetworkIdEnum];
|
|
489
1160
|
/**
|
|
490
1161
|
* Model for individual asset with symbol and balance.
|
|
1162
|
+
* @export
|
|
1163
|
+
* @interface Asset
|
|
491
1164
|
*/
|
|
492
1165
|
export interface Asset {
|
|
493
1166
|
/**
|
|
494
1167
|
* Asset symbol (e.g., ETH, USDC, NATION)
|
|
1168
|
+
* @type {string}
|
|
1169
|
+
* @memberof Asset
|
|
495
1170
|
*/
|
|
496
1171
|
'symbol': string;
|
|
497
1172
|
/**
|
|
498
1173
|
* Asset balance as decimal
|
|
1174
|
+
* @type {string}
|
|
1175
|
+
* @memberof Asset
|
|
499
1176
|
*/
|
|
500
1177
|
'balance': string;
|
|
501
1178
|
}
|
|
502
1179
|
/**
|
|
503
1180
|
* Type of message author.
|
|
1181
|
+
* @export
|
|
1182
|
+
* @enum {string}
|
|
504
1183
|
*/
|
|
505
1184
|
export declare const AuthorType: {
|
|
506
1185
|
readonly Agent: "agent";
|
|
@@ -516,111 +1195,227 @@ export declare const AuthorType: {
|
|
|
516
1195
|
export type AuthorType = typeof AuthorType[keyof typeof AuthorType];
|
|
517
1196
|
/**
|
|
518
1197
|
* Chat model with all fields including server-generated ones.
|
|
1198
|
+
* @export
|
|
1199
|
+
* @interface Chat
|
|
519
1200
|
*/
|
|
520
1201
|
export interface Chat {
|
|
521
1202
|
/**
|
|
522
1203
|
* Unique identifier for the chat
|
|
1204
|
+
* @type {string}
|
|
1205
|
+
* @memberof Chat
|
|
523
1206
|
*/
|
|
524
1207
|
'id'?: string;
|
|
525
1208
|
/**
|
|
526
1209
|
* ID of the agent this chat belongs to
|
|
1210
|
+
* @type {string}
|
|
1211
|
+
* @memberof Chat
|
|
527
1212
|
*/
|
|
528
1213
|
'agent_id': string;
|
|
529
1214
|
/**
|
|
530
1215
|
* User ID of the chat
|
|
1216
|
+
* @type {string}
|
|
1217
|
+
* @memberof Chat
|
|
531
1218
|
*/
|
|
532
1219
|
'user_id': string;
|
|
533
1220
|
/**
|
|
534
1221
|
* Summary of the chat
|
|
1222
|
+
* @type {string}
|
|
1223
|
+
* @memberof Chat
|
|
535
1224
|
*/
|
|
536
1225
|
'summary'?: string;
|
|
537
1226
|
/**
|
|
538
1227
|
* Number of rounds in the chat
|
|
1228
|
+
* @type {number}
|
|
1229
|
+
* @memberof Chat
|
|
539
1230
|
*/
|
|
540
1231
|
'rounds'?: number;
|
|
541
1232
|
/**
|
|
542
1233
|
* Timestamp when this chat was created
|
|
1234
|
+
* @type {string}
|
|
1235
|
+
* @memberof Chat
|
|
543
1236
|
*/
|
|
544
1237
|
'created_at': string;
|
|
545
1238
|
/**
|
|
546
1239
|
* Timestamp when this chat was updated
|
|
1240
|
+
* @type {string}
|
|
1241
|
+
* @memberof Chat
|
|
547
1242
|
*/
|
|
548
1243
|
'updated_at': string;
|
|
549
1244
|
}
|
|
550
1245
|
/**
|
|
551
1246
|
* Chat message model with all fields including server-generated ones.
|
|
1247
|
+
* @export
|
|
1248
|
+
* @interface ChatMessage
|
|
552
1249
|
*/
|
|
553
1250
|
export interface ChatMessage {
|
|
554
1251
|
/**
|
|
555
1252
|
* Unique identifier for the chat message
|
|
1253
|
+
* @type {string}
|
|
1254
|
+
* @memberof ChatMessage
|
|
556
1255
|
*/
|
|
557
1256
|
'id'?: string;
|
|
558
1257
|
/**
|
|
559
1258
|
* ID of the agent this message belongs to
|
|
1259
|
+
* @type {string}
|
|
1260
|
+
* @memberof ChatMessage
|
|
560
1261
|
*/
|
|
561
1262
|
'agent_id': string;
|
|
562
1263
|
/**
|
|
563
1264
|
* ID of the chat this message belongs to
|
|
1265
|
+
* @type {string}
|
|
1266
|
+
* @memberof ChatMessage
|
|
564
1267
|
*/
|
|
565
1268
|
'chat_id': string;
|
|
1269
|
+
/**
|
|
1270
|
+
*
|
|
1271
|
+
* @type {string}
|
|
1272
|
+
* @memberof ChatMessage
|
|
1273
|
+
*/
|
|
566
1274
|
'user_id': string | null;
|
|
567
1275
|
/**
|
|
568
1276
|
* ID of the message author
|
|
1277
|
+
* @type {string}
|
|
1278
|
+
* @memberof ChatMessage
|
|
569
1279
|
*/
|
|
570
1280
|
'author_id': string;
|
|
571
1281
|
/**
|
|
572
1282
|
* Type of the message author
|
|
1283
|
+
* @type {AuthorType}
|
|
1284
|
+
* @memberof ChatMessage
|
|
573
1285
|
*/
|
|
574
1286
|
'author_type': AuthorType;
|
|
1287
|
+
/**
|
|
1288
|
+
*
|
|
1289
|
+
* @type {string}
|
|
1290
|
+
* @memberof ChatMessage
|
|
1291
|
+
*/
|
|
575
1292
|
'model'?: string | null;
|
|
1293
|
+
/**
|
|
1294
|
+
*
|
|
1295
|
+
* @type {AuthorType}
|
|
1296
|
+
* @memberof ChatMessage
|
|
1297
|
+
*/
|
|
576
1298
|
'thread_type'?: AuthorType | null;
|
|
1299
|
+
/**
|
|
1300
|
+
*
|
|
1301
|
+
* @type {string}
|
|
1302
|
+
* @memberof ChatMessage
|
|
1303
|
+
*/
|
|
577
1304
|
'reply_to'?: string | null;
|
|
578
1305
|
/**
|
|
579
1306
|
* Content of the message
|
|
1307
|
+
* @type {string}
|
|
1308
|
+
* @memberof ChatMessage
|
|
580
1309
|
*/
|
|
581
1310
|
'message': string;
|
|
1311
|
+
/**
|
|
1312
|
+
*
|
|
1313
|
+
* @type {Array<ChatMessageAttachment>}
|
|
1314
|
+
* @memberof ChatMessage
|
|
1315
|
+
*/
|
|
582
1316
|
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
1317
|
+
/**
|
|
1318
|
+
*
|
|
1319
|
+
* @type {Array<ChatMessageSkillCall>}
|
|
1320
|
+
* @memberof ChatMessage
|
|
1321
|
+
*/
|
|
583
1322
|
'skill_calls'?: Array<ChatMessageSkillCall> | null;
|
|
584
1323
|
/**
|
|
585
1324
|
* Number of tokens in the input message
|
|
1325
|
+
* @type {number}
|
|
1326
|
+
* @memberof ChatMessage
|
|
586
1327
|
*/
|
|
587
1328
|
'input_tokens'?: number;
|
|
588
1329
|
/**
|
|
589
1330
|
* Number of tokens in the output message
|
|
1331
|
+
* @type {number}
|
|
1332
|
+
* @memberof ChatMessage
|
|
590
1333
|
*/
|
|
591
1334
|
'output_tokens'?: number;
|
|
592
1335
|
/**
|
|
593
1336
|
* Time cost for the message in seconds
|
|
1337
|
+
* @type {number}
|
|
1338
|
+
* @memberof ChatMessage
|
|
594
1339
|
*/
|
|
595
1340
|
'time_cost'?: number;
|
|
1341
|
+
/**
|
|
1342
|
+
*
|
|
1343
|
+
* @type {string}
|
|
1344
|
+
* @memberof ChatMessage
|
|
1345
|
+
*/
|
|
596
1346
|
'credit_event_id'?: string | null;
|
|
1347
|
+
/**
|
|
1348
|
+
*
|
|
1349
|
+
* @type {string}
|
|
1350
|
+
* @memberof ChatMessage
|
|
1351
|
+
*/
|
|
597
1352
|
'credit_cost'?: string | null;
|
|
598
1353
|
/**
|
|
599
1354
|
* Cost for the cold start of the message in seconds
|
|
1355
|
+
* @type {number}
|
|
1356
|
+
* @memberof ChatMessage
|
|
600
1357
|
*/
|
|
601
1358
|
'cold_start_cost'?: number;
|
|
1359
|
+
/**
|
|
1360
|
+
*
|
|
1361
|
+
* @type {string}
|
|
1362
|
+
* @memberof ChatMessage
|
|
1363
|
+
*/
|
|
602
1364
|
'app_id'?: string | null;
|
|
1365
|
+
/**
|
|
1366
|
+
*
|
|
1367
|
+
* @type {boolean}
|
|
1368
|
+
* @memberof ChatMessage
|
|
1369
|
+
*/
|
|
603
1370
|
'search_mode'?: boolean | null;
|
|
1371
|
+
/**
|
|
1372
|
+
*
|
|
1373
|
+
* @type {boolean}
|
|
1374
|
+
* @memberof ChatMessage
|
|
1375
|
+
*/
|
|
604
1376
|
'super_mode'?: boolean | null;
|
|
1377
|
+
/**
|
|
1378
|
+
*
|
|
1379
|
+
* @type {SystemMessageType}
|
|
1380
|
+
* @memberof ChatMessage
|
|
1381
|
+
*/
|
|
605
1382
|
'error_type'?: SystemMessageType | null;
|
|
606
1383
|
/**
|
|
607
1384
|
* Timestamp when this message was created
|
|
1385
|
+
* @type {string}
|
|
1386
|
+
* @memberof ChatMessage
|
|
608
1387
|
*/
|
|
609
1388
|
'created_at': string;
|
|
610
1389
|
}
|
|
611
1390
|
/**
|
|
612
1391
|
* Chat message attachment model. An attachment can be a link, image, or file that is associated with a chat message.
|
|
1392
|
+
* @export
|
|
1393
|
+
* @interface ChatMessageAttachment
|
|
613
1394
|
*/
|
|
614
1395
|
export interface ChatMessageAttachment {
|
|
615
1396
|
/**
|
|
616
1397
|
* Type of the attachment (link, image, or file)
|
|
1398
|
+
* @type {ChatMessageAttachmentType}
|
|
1399
|
+
* @memberof ChatMessageAttachment
|
|
617
1400
|
*/
|
|
618
1401
|
'type': ChatMessageAttachmentType;
|
|
1402
|
+
/**
|
|
1403
|
+
*
|
|
1404
|
+
* @type {string}
|
|
1405
|
+
* @memberof ChatMessageAttachment
|
|
1406
|
+
*/
|
|
619
1407
|
'url': string | null;
|
|
1408
|
+
/**
|
|
1409
|
+
*
|
|
1410
|
+
* @type {object}
|
|
1411
|
+
* @memberof ChatMessageAttachment
|
|
1412
|
+
*/
|
|
620
1413
|
'json'?: object | null;
|
|
621
1414
|
}
|
|
622
1415
|
/**
|
|
623
1416
|
* Type of chat message attachment.
|
|
1417
|
+
* @export
|
|
1418
|
+
* @enum {string}
|
|
624
1419
|
*/
|
|
625
1420
|
export declare const ChatMessageAttachmentType: {
|
|
626
1421
|
readonly Link: "link";
|
|
@@ -631,98 +1426,229 @@ export declare const ChatMessageAttachmentType: {
|
|
|
631
1426
|
export type ChatMessageAttachmentType = typeof ChatMessageAttachmentType[keyof typeof ChatMessageAttachmentType];
|
|
632
1427
|
/**
|
|
633
1428
|
* 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.
|
|
1429
|
+
* @export
|
|
1430
|
+
* @interface ChatMessageRequest
|
|
634
1431
|
*/
|
|
635
1432
|
export interface ChatMessageRequest {
|
|
1433
|
+
/**
|
|
1434
|
+
*
|
|
1435
|
+
* @type {string}
|
|
1436
|
+
* @memberof ChatMessageRequest
|
|
1437
|
+
*/
|
|
636
1438
|
'app_id'?: string | null;
|
|
637
1439
|
/**
|
|
638
1440
|
* Content of the message
|
|
1441
|
+
* @type {string}
|
|
1442
|
+
* @memberof ChatMessageRequest
|
|
639
1443
|
*/
|
|
640
1444
|
'message': string;
|
|
1445
|
+
/**
|
|
1446
|
+
*
|
|
1447
|
+
* @type {boolean}
|
|
1448
|
+
* @memberof ChatMessageRequest
|
|
1449
|
+
*/
|
|
641
1450
|
'stream'?: boolean | null;
|
|
1451
|
+
/**
|
|
1452
|
+
*
|
|
1453
|
+
* @type {boolean}
|
|
1454
|
+
* @memberof ChatMessageRequest
|
|
1455
|
+
*/
|
|
642
1456
|
'search_mode'?: boolean | null;
|
|
1457
|
+
/**
|
|
1458
|
+
*
|
|
1459
|
+
* @type {boolean}
|
|
1460
|
+
* @memberof ChatMessageRequest
|
|
1461
|
+
*/
|
|
643
1462
|
'super_mode'?: boolean | null;
|
|
1463
|
+
/**
|
|
1464
|
+
*
|
|
1465
|
+
* @type {Array<ChatMessageAttachment>}
|
|
1466
|
+
* @memberof ChatMessageRequest
|
|
1467
|
+
*/
|
|
644
1468
|
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
645
1469
|
}
|
|
646
1470
|
/**
|
|
647
1471
|
* TypedDict for skill call details.
|
|
1472
|
+
* @export
|
|
1473
|
+
* @interface ChatMessageSkillCall
|
|
648
1474
|
*/
|
|
649
1475
|
export interface ChatMessageSkillCall {
|
|
1476
|
+
/**
|
|
1477
|
+
*
|
|
1478
|
+
* @type {string}
|
|
1479
|
+
* @memberof ChatMessageSkillCall
|
|
1480
|
+
*/
|
|
650
1481
|
'id'?: string;
|
|
1482
|
+
/**
|
|
1483
|
+
*
|
|
1484
|
+
* @type {string}
|
|
1485
|
+
* @memberof ChatMessageSkillCall
|
|
1486
|
+
*/
|
|
651
1487
|
'name': string;
|
|
1488
|
+
/**
|
|
1489
|
+
*
|
|
1490
|
+
* @type {object}
|
|
1491
|
+
* @memberof ChatMessageSkillCall
|
|
1492
|
+
*/
|
|
652
1493
|
'parameters': object;
|
|
1494
|
+
/**
|
|
1495
|
+
*
|
|
1496
|
+
* @type {boolean}
|
|
1497
|
+
* @memberof ChatMessageSkillCall
|
|
1498
|
+
*/
|
|
653
1499
|
'success': boolean;
|
|
1500
|
+
/**
|
|
1501
|
+
*
|
|
1502
|
+
* @type {string}
|
|
1503
|
+
* @memberof ChatMessageSkillCall
|
|
1504
|
+
*/
|
|
654
1505
|
'response'?: string;
|
|
1506
|
+
/**
|
|
1507
|
+
*
|
|
1508
|
+
* @type {string}
|
|
1509
|
+
* @memberof ChatMessageSkillCall
|
|
1510
|
+
*/
|
|
655
1511
|
'error_message'?: string;
|
|
1512
|
+
/**
|
|
1513
|
+
*
|
|
1514
|
+
* @type {string}
|
|
1515
|
+
* @memberof ChatMessageSkillCall
|
|
1516
|
+
*/
|
|
656
1517
|
'credit_event_id'?: string;
|
|
1518
|
+
/**
|
|
1519
|
+
*
|
|
1520
|
+
* @type {string}
|
|
1521
|
+
* @memberof ChatMessageSkillCall
|
|
1522
|
+
*/
|
|
657
1523
|
'credit_cost'?: string;
|
|
658
1524
|
}
|
|
659
1525
|
/**
|
|
660
1526
|
* Response model for chat messages with pagination.
|
|
1527
|
+
* @export
|
|
1528
|
+
* @interface ChatMessagesResponse
|
|
661
1529
|
*/
|
|
662
1530
|
export interface ChatMessagesResponse {
|
|
1531
|
+
/**
|
|
1532
|
+
*
|
|
1533
|
+
* @type {Array<ChatMessage>}
|
|
1534
|
+
* @memberof ChatMessagesResponse
|
|
1535
|
+
*/
|
|
663
1536
|
'data': Array<ChatMessage>;
|
|
1537
|
+
/**
|
|
1538
|
+
*
|
|
1539
|
+
* @type {boolean}
|
|
1540
|
+
* @memberof ChatMessagesResponse
|
|
1541
|
+
*/
|
|
664
1542
|
'has_more'?: boolean;
|
|
1543
|
+
/**
|
|
1544
|
+
*
|
|
1545
|
+
* @type {string}
|
|
1546
|
+
* @memberof ChatMessagesResponse
|
|
1547
|
+
*/
|
|
665
1548
|
'next_cursor'?: string | null;
|
|
666
1549
|
}
|
|
667
1550
|
/**
|
|
668
1551
|
* Request model for updating a chat thread.
|
|
1552
|
+
* @export
|
|
1553
|
+
* @interface ChatUpdateRequest
|
|
669
1554
|
*/
|
|
670
1555
|
export interface ChatUpdateRequest {
|
|
671
1556
|
/**
|
|
672
1557
|
* Updated summary for the chat thread
|
|
1558
|
+
* @type {string}
|
|
1559
|
+
* @memberof ChatUpdateRequest
|
|
673
1560
|
*/
|
|
674
1561
|
'summary': string;
|
|
675
1562
|
}
|
|
676
1563
|
/**
|
|
677
1564
|
* Credit account model with all fields.
|
|
1565
|
+
* @export
|
|
1566
|
+
* @interface CreditAccount
|
|
678
1567
|
*/
|
|
679
1568
|
export interface CreditAccount {
|
|
680
1569
|
/**
|
|
681
1570
|
* Unique identifier for the credit account
|
|
1571
|
+
* @type {string}
|
|
1572
|
+
* @memberof CreditAccount
|
|
682
1573
|
*/
|
|
683
1574
|
'id'?: string;
|
|
684
1575
|
/**
|
|
685
1576
|
* Type of the account owner
|
|
1577
|
+
* @type {OwnerType}
|
|
1578
|
+
* @memberof CreditAccount
|
|
686
1579
|
*/
|
|
687
1580
|
'owner_type': OwnerType;
|
|
688
1581
|
/**
|
|
689
1582
|
* ID of the account owner
|
|
1583
|
+
* @type {string}
|
|
1584
|
+
* @memberof CreditAccount
|
|
690
1585
|
*/
|
|
691
1586
|
'owner_id': string;
|
|
692
1587
|
/**
|
|
693
1588
|
* Daily credit quota that resets each day
|
|
1589
|
+
* @type {string}
|
|
1590
|
+
* @memberof CreditAccount
|
|
694
1591
|
*/
|
|
695
1592
|
'free_quota'?: string;
|
|
696
1593
|
/**
|
|
697
1594
|
* Amount to refill hourly, not exceeding free_quota
|
|
1595
|
+
* @type {string}
|
|
1596
|
+
* @memberof CreditAccount
|
|
698
1597
|
*/
|
|
699
1598
|
'refill_amount'?: string;
|
|
700
1599
|
/**
|
|
701
1600
|
* Current available daily credits
|
|
1601
|
+
* @type {string}
|
|
1602
|
+
* @memberof CreditAccount
|
|
702
1603
|
*/
|
|
703
1604
|
'free_credits'?: string;
|
|
704
1605
|
/**
|
|
705
1606
|
* Reward credits earned through rewards
|
|
1607
|
+
* @type {string}
|
|
1608
|
+
* @memberof CreditAccount
|
|
706
1609
|
*/
|
|
707
1610
|
'reward_credits'?: string;
|
|
708
1611
|
/**
|
|
709
1612
|
* Credits added through top-ups
|
|
1613
|
+
* @type {string}
|
|
1614
|
+
* @memberof CreditAccount
|
|
710
1615
|
*/
|
|
711
1616
|
'credits'?: string;
|
|
1617
|
+
/**
|
|
1618
|
+
*
|
|
1619
|
+
* @type {string}
|
|
1620
|
+
* @memberof CreditAccount
|
|
1621
|
+
*/
|
|
712
1622
|
'income_at'?: string | null;
|
|
1623
|
+
/**
|
|
1624
|
+
*
|
|
1625
|
+
* @type {string}
|
|
1626
|
+
* @memberof CreditAccount
|
|
1627
|
+
*/
|
|
713
1628
|
'expense_at'?: string | null;
|
|
1629
|
+
/**
|
|
1630
|
+
*
|
|
1631
|
+
* @type {string}
|
|
1632
|
+
* @memberof CreditAccount
|
|
1633
|
+
*/
|
|
714
1634
|
'last_event_id'?: string | null;
|
|
715
1635
|
/**
|
|
716
1636
|
* Timestamp when this account was created
|
|
1637
|
+
* @type {string}
|
|
1638
|
+
* @memberof CreditAccount
|
|
717
1639
|
*/
|
|
718
1640
|
'created_at': string;
|
|
719
1641
|
/**
|
|
720
1642
|
* Timestamp when this account was last updated
|
|
1643
|
+
* @type {string}
|
|
1644
|
+
* @memberof CreditAccount
|
|
721
1645
|
*/
|
|
722
1646
|
'updated_at': string;
|
|
723
1647
|
}
|
|
724
1648
|
/**
|
|
725
1649
|
* Credit or debit transaction.
|
|
1650
|
+
* @export
|
|
1651
|
+
* @enum {string}
|
|
726
1652
|
*/
|
|
727
1653
|
export declare const CreditDebit: {
|
|
728
1654
|
readonly Credit: "credit";
|
|
@@ -731,245 +1657,697 @@ export declare const CreditDebit: {
|
|
|
731
1657
|
export type CreditDebit = typeof CreditDebit[keyof typeof CreditDebit];
|
|
732
1658
|
/**
|
|
733
1659
|
* Credit event model with all fields.
|
|
1660
|
+
* @export
|
|
1661
|
+
* @interface CreditEvent
|
|
734
1662
|
*/
|
|
735
1663
|
export interface CreditEvent {
|
|
736
1664
|
/**
|
|
737
1665
|
* Unique identifier for the credit event
|
|
1666
|
+
* @type {string}
|
|
1667
|
+
* @memberof CreditEvent
|
|
738
1668
|
*/
|
|
739
1669
|
'id'?: string;
|
|
740
1670
|
/**
|
|
741
1671
|
* Account ID from which credits flow
|
|
1672
|
+
* @type {string}
|
|
1673
|
+
* @memberof CreditEvent
|
|
742
1674
|
*/
|
|
743
1675
|
'account_id'?: string;
|
|
744
1676
|
/**
|
|
745
1677
|
* Type of the event
|
|
1678
|
+
* @type {EventType}
|
|
1679
|
+
* @memberof CreditEvent
|
|
746
1680
|
*/
|
|
747
1681
|
'event_type': EventType;
|
|
1682
|
+
/**
|
|
1683
|
+
*
|
|
1684
|
+
* @type {string}
|
|
1685
|
+
* @memberof CreditEvent
|
|
1686
|
+
*/
|
|
748
1687
|
'user_id'?: string | null;
|
|
749
1688
|
/**
|
|
750
1689
|
* Type of upstream transaction
|
|
1690
|
+
* @type {UpstreamType}
|
|
1691
|
+
* @memberof CreditEvent
|
|
751
1692
|
*/
|
|
752
1693
|
'upstream_type': UpstreamType;
|
|
753
1694
|
/**
|
|
754
1695
|
* Upstream transaction ID if any
|
|
1696
|
+
* @type {string}
|
|
1697
|
+
* @memberof CreditEvent
|
|
755
1698
|
*/
|
|
756
1699
|
'upstream_tx_id': string;
|
|
1700
|
+
/**
|
|
1701
|
+
*
|
|
1702
|
+
* @type {string}
|
|
1703
|
+
* @memberof CreditEvent
|
|
1704
|
+
*/
|
|
757
1705
|
'agent_id'?: string | null;
|
|
1706
|
+
/**
|
|
1707
|
+
*
|
|
1708
|
+
* @type {string}
|
|
1709
|
+
* @memberof CreditEvent
|
|
1710
|
+
*/
|
|
758
1711
|
'agent_wallet_address'?: string | null;
|
|
1712
|
+
/**
|
|
1713
|
+
*
|
|
1714
|
+
* @type {string}
|
|
1715
|
+
* @memberof CreditEvent
|
|
1716
|
+
*/
|
|
759
1717
|
'start_message_id'?: string | null;
|
|
1718
|
+
/**
|
|
1719
|
+
*
|
|
1720
|
+
* @type {string}
|
|
1721
|
+
* @memberof CreditEvent
|
|
1722
|
+
*/
|
|
760
1723
|
'message_id'?: string | null;
|
|
1724
|
+
/**
|
|
1725
|
+
*
|
|
1726
|
+
* @type {string}
|
|
1727
|
+
* @memberof CreditEvent
|
|
1728
|
+
*/
|
|
761
1729
|
'model'?: string | null;
|
|
1730
|
+
/**
|
|
1731
|
+
*
|
|
1732
|
+
* @type {string}
|
|
1733
|
+
* @memberof CreditEvent
|
|
1734
|
+
*/
|
|
762
1735
|
'skill_call_id'?: string | null;
|
|
1736
|
+
/**
|
|
1737
|
+
*
|
|
1738
|
+
* @type {string}
|
|
1739
|
+
* @memberof CreditEvent
|
|
1740
|
+
*/
|
|
763
1741
|
'skill_name'?: string | null;
|
|
764
1742
|
/**
|
|
765
1743
|
* Direction of the credit flow
|
|
1744
|
+
* @type {Direction}
|
|
1745
|
+
* @memberof CreditEvent
|
|
766
1746
|
*/
|
|
767
1747
|
'direction': Direction;
|
|
768
1748
|
/**
|
|
769
1749
|
* Total amount (after discount) of credits involved
|
|
1750
|
+
* @type {string}
|
|
1751
|
+
* @memberof CreditEvent
|
|
770
1752
|
*/
|
|
771
1753
|
'total_amount'?: string;
|
|
772
1754
|
/**
|
|
773
1755
|
* Type of credits involved
|
|
1756
|
+
* @type {CreditType}
|
|
1757
|
+
* @memberof CreditEvent
|
|
774
1758
|
*/
|
|
775
1759
|
'credit_type': CreditType;
|
|
1760
|
+
/**
|
|
1761
|
+
*
|
|
1762
|
+
* @type {Array<CreditType>}
|
|
1763
|
+
* @memberof CreditEvent
|
|
1764
|
+
*/
|
|
776
1765
|
'credit_types'?: Array<CreditType> | null;
|
|
1766
|
+
/**
|
|
1767
|
+
*
|
|
1768
|
+
* @type {string}
|
|
1769
|
+
* @memberof CreditEvent
|
|
1770
|
+
*/
|
|
777
1771
|
'balance_after'?: string | null;
|
|
778
1772
|
/**
|
|
779
1773
|
* Base amount of credits involved
|
|
1774
|
+
* @type {string}
|
|
1775
|
+
* @memberof CreditEvent
|
|
780
1776
|
*/
|
|
781
1777
|
'base_amount'?: string;
|
|
1778
|
+
/**
|
|
1779
|
+
*
|
|
1780
|
+
* @type {string}
|
|
1781
|
+
* @memberof CreditEvent
|
|
1782
|
+
*/
|
|
782
1783
|
'base_discount_amount'?: string | null;
|
|
1784
|
+
/**
|
|
1785
|
+
*
|
|
1786
|
+
* @type {string}
|
|
1787
|
+
* @memberof CreditEvent
|
|
1788
|
+
*/
|
|
783
1789
|
'base_original_amount'?: string | null;
|
|
1790
|
+
/**
|
|
1791
|
+
*
|
|
1792
|
+
* @type {string}
|
|
1793
|
+
* @memberof CreditEvent
|
|
1794
|
+
*/
|
|
784
1795
|
'base_llm_amount'?: string | null;
|
|
1796
|
+
/**
|
|
1797
|
+
*
|
|
1798
|
+
* @type {string}
|
|
1799
|
+
* @memberof CreditEvent
|
|
1800
|
+
*/
|
|
785
1801
|
'base_skill_amount'?: string | null;
|
|
1802
|
+
/**
|
|
1803
|
+
*
|
|
1804
|
+
* @type {string}
|
|
1805
|
+
* @memberof CreditEvent
|
|
1806
|
+
*/
|
|
786
1807
|
'base_free_amount'?: string | null;
|
|
1808
|
+
/**
|
|
1809
|
+
*
|
|
1810
|
+
* @type {string}
|
|
1811
|
+
* @memberof CreditEvent
|
|
1812
|
+
*/
|
|
787
1813
|
'base_reward_amount'?: string | null;
|
|
1814
|
+
/**
|
|
1815
|
+
*
|
|
1816
|
+
* @type {string}
|
|
1817
|
+
* @memberof CreditEvent
|
|
1818
|
+
*/
|
|
788
1819
|
'base_permanent_amount'?: string | null;
|
|
1820
|
+
/**
|
|
1821
|
+
*
|
|
1822
|
+
* @type {string}
|
|
1823
|
+
* @memberof CreditEvent
|
|
1824
|
+
*/
|
|
789
1825
|
'fee_platform_amount'?: string | null;
|
|
1826
|
+
/**
|
|
1827
|
+
*
|
|
1828
|
+
* @type {string}
|
|
1829
|
+
* @memberof CreditEvent
|
|
1830
|
+
*/
|
|
790
1831
|
'fee_platform_free_amount'?: string | null;
|
|
1832
|
+
/**
|
|
1833
|
+
*
|
|
1834
|
+
* @type {string}
|
|
1835
|
+
* @memberof CreditEvent
|
|
1836
|
+
*/
|
|
791
1837
|
'fee_platform_reward_amount'?: string | null;
|
|
1838
|
+
/**
|
|
1839
|
+
*
|
|
1840
|
+
* @type {string}
|
|
1841
|
+
* @memberof CreditEvent
|
|
1842
|
+
*/
|
|
792
1843
|
'fee_platform_permanent_amount'?: string | null;
|
|
1844
|
+
/**
|
|
1845
|
+
*
|
|
1846
|
+
* @type {string}
|
|
1847
|
+
* @memberof CreditEvent
|
|
1848
|
+
*/
|
|
793
1849
|
'fee_dev_account'?: string | null;
|
|
1850
|
+
/**
|
|
1851
|
+
*
|
|
1852
|
+
* @type {string}
|
|
1853
|
+
* @memberof CreditEvent
|
|
1854
|
+
*/
|
|
794
1855
|
'fee_dev_amount'?: string | null;
|
|
1856
|
+
/**
|
|
1857
|
+
*
|
|
1858
|
+
* @type {string}
|
|
1859
|
+
* @memberof CreditEvent
|
|
1860
|
+
*/
|
|
795
1861
|
'fee_dev_free_amount'?: string | null;
|
|
1862
|
+
/**
|
|
1863
|
+
*
|
|
1864
|
+
* @type {string}
|
|
1865
|
+
* @memberof CreditEvent
|
|
1866
|
+
*/
|
|
796
1867
|
'fee_dev_reward_amount'?: string | null;
|
|
1868
|
+
/**
|
|
1869
|
+
*
|
|
1870
|
+
* @type {string}
|
|
1871
|
+
* @memberof CreditEvent
|
|
1872
|
+
*/
|
|
797
1873
|
'fee_dev_permanent_amount'?: string | null;
|
|
1874
|
+
/**
|
|
1875
|
+
*
|
|
1876
|
+
* @type {string}
|
|
1877
|
+
* @memberof CreditEvent
|
|
1878
|
+
*/
|
|
798
1879
|
'fee_agent_account'?: string | null;
|
|
1880
|
+
/**
|
|
1881
|
+
*
|
|
1882
|
+
* @type {string}
|
|
1883
|
+
* @memberof CreditEvent
|
|
1884
|
+
*/
|
|
799
1885
|
'fee_agent_amount'?: string | null;
|
|
1886
|
+
/**
|
|
1887
|
+
*
|
|
1888
|
+
* @type {string}
|
|
1889
|
+
* @memberof CreditEvent
|
|
1890
|
+
*/
|
|
800
1891
|
'fee_agent_free_amount'?: string | null;
|
|
1892
|
+
/**
|
|
1893
|
+
*
|
|
1894
|
+
* @type {string}
|
|
1895
|
+
* @memberof CreditEvent
|
|
1896
|
+
*/
|
|
801
1897
|
'fee_agent_reward_amount'?: string | null;
|
|
1898
|
+
/**
|
|
1899
|
+
*
|
|
1900
|
+
* @type {string}
|
|
1901
|
+
* @memberof CreditEvent
|
|
1902
|
+
*/
|
|
802
1903
|
'fee_agent_permanent_amount'?: string | null;
|
|
1904
|
+
/**
|
|
1905
|
+
*
|
|
1906
|
+
* @type {string}
|
|
1907
|
+
* @memberof CreditEvent
|
|
1908
|
+
*/
|
|
803
1909
|
'free_amount'?: string | null;
|
|
1910
|
+
/**
|
|
1911
|
+
*
|
|
1912
|
+
* @type {string}
|
|
1913
|
+
* @memberof CreditEvent
|
|
1914
|
+
*/
|
|
804
1915
|
'reward_amount'?: string | null;
|
|
1916
|
+
/**
|
|
1917
|
+
*
|
|
1918
|
+
* @type {string}
|
|
1919
|
+
* @memberof CreditEvent
|
|
1920
|
+
*/
|
|
805
1921
|
'permanent_amount'?: string | null;
|
|
1922
|
+
/**
|
|
1923
|
+
*
|
|
1924
|
+
* @type {string}
|
|
1925
|
+
* @memberof CreditEvent
|
|
1926
|
+
*/
|
|
806
1927
|
'note'?: string | null;
|
|
807
1928
|
/**
|
|
808
1929
|
* Timestamp when this event was created
|
|
1930
|
+
* @type {string}
|
|
1931
|
+
* @memberof CreditEvent
|
|
809
1932
|
*/
|
|
810
1933
|
'created_at': string;
|
|
811
1934
|
}
|
|
812
1935
|
/**
|
|
813
1936
|
* Credit event response model with agent name. Extends CreditEvent to include the agent name for better user experience.
|
|
1937
|
+
* @export
|
|
1938
|
+
* @interface CreditEventWithAgent
|
|
814
1939
|
*/
|
|
815
1940
|
export interface CreditEventWithAgent {
|
|
816
1941
|
/**
|
|
817
1942
|
* Unique identifier for the credit event
|
|
1943
|
+
* @type {string}
|
|
1944
|
+
* @memberof CreditEventWithAgent
|
|
818
1945
|
*/
|
|
819
1946
|
'id'?: string;
|
|
820
1947
|
/**
|
|
821
1948
|
* Account ID from which credits flow
|
|
1949
|
+
* @type {string}
|
|
1950
|
+
* @memberof CreditEventWithAgent
|
|
822
1951
|
*/
|
|
823
1952
|
'account_id'?: string;
|
|
824
1953
|
/**
|
|
825
1954
|
* Type of the event
|
|
1955
|
+
* @type {EventType}
|
|
1956
|
+
* @memberof CreditEventWithAgent
|
|
826
1957
|
*/
|
|
827
1958
|
'event_type': EventType;
|
|
1959
|
+
/**
|
|
1960
|
+
*
|
|
1961
|
+
* @type {string}
|
|
1962
|
+
* @memberof CreditEventWithAgent
|
|
1963
|
+
*/
|
|
828
1964
|
'user_id'?: string | null;
|
|
829
1965
|
/**
|
|
830
1966
|
* Type of upstream transaction
|
|
1967
|
+
* @type {UpstreamType}
|
|
1968
|
+
* @memberof CreditEventWithAgent
|
|
831
1969
|
*/
|
|
832
1970
|
'upstream_type': UpstreamType;
|
|
833
1971
|
/**
|
|
834
1972
|
* Upstream transaction ID if any
|
|
1973
|
+
* @type {string}
|
|
1974
|
+
* @memberof CreditEventWithAgent
|
|
835
1975
|
*/
|
|
836
1976
|
'upstream_tx_id': string;
|
|
1977
|
+
/**
|
|
1978
|
+
*
|
|
1979
|
+
* @type {string}
|
|
1980
|
+
* @memberof CreditEventWithAgent
|
|
1981
|
+
*/
|
|
837
1982
|
'agent_id'?: string | null;
|
|
1983
|
+
/**
|
|
1984
|
+
*
|
|
1985
|
+
* @type {string}
|
|
1986
|
+
* @memberof CreditEventWithAgent
|
|
1987
|
+
*/
|
|
838
1988
|
'agent_wallet_address'?: string | null;
|
|
1989
|
+
/**
|
|
1990
|
+
*
|
|
1991
|
+
* @type {string}
|
|
1992
|
+
* @memberof CreditEventWithAgent
|
|
1993
|
+
*/
|
|
839
1994
|
'start_message_id'?: string | null;
|
|
1995
|
+
/**
|
|
1996
|
+
*
|
|
1997
|
+
* @type {string}
|
|
1998
|
+
* @memberof CreditEventWithAgent
|
|
1999
|
+
*/
|
|
840
2000
|
'message_id'?: string | null;
|
|
2001
|
+
/**
|
|
2002
|
+
*
|
|
2003
|
+
* @type {string}
|
|
2004
|
+
* @memberof CreditEventWithAgent
|
|
2005
|
+
*/
|
|
841
2006
|
'model'?: string | null;
|
|
2007
|
+
/**
|
|
2008
|
+
*
|
|
2009
|
+
* @type {string}
|
|
2010
|
+
* @memberof CreditEventWithAgent
|
|
2011
|
+
*/
|
|
842
2012
|
'skill_call_id'?: string | null;
|
|
2013
|
+
/**
|
|
2014
|
+
*
|
|
2015
|
+
* @type {string}
|
|
2016
|
+
* @memberof CreditEventWithAgent
|
|
2017
|
+
*/
|
|
843
2018
|
'skill_name'?: string | null;
|
|
844
2019
|
/**
|
|
845
2020
|
* Direction of the credit flow
|
|
2021
|
+
* @type {Direction}
|
|
2022
|
+
* @memberof CreditEventWithAgent
|
|
846
2023
|
*/
|
|
847
2024
|
'direction': Direction;
|
|
848
2025
|
/**
|
|
849
2026
|
* Total amount (after discount) of credits involved
|
|
2027
|
+
* @type {string}
|
|
2028
|
+
* @memberof CreditEventWithAgent
|
|
850
2029
|
*/
|
|
851
2030
|
'total_amount'?: string;
|
|
852
2031
|
/**
|
|
853
2032
|
* Type of credits involved
|
|
2033
|
+
* @type {CreditType}
|
|
2034
|
+
* @memberof CreditEventWithAgent
|
|
854
2035
|
*/
|
|
855
2036
|
'credit_type': CreditType;
|
|
2037
|
+
/**
|
|
2038
|
+
*
|
|
2039
|
+
* @type {Array<CreditType>}
|
|
2040
|
+
* @memberof CreditEventWithAgent
|
|
2041
|
+
*/
|
|
856
2042
|
'credit_types'?: Array<CreditType> | null;
|
|
2043
|
+
/**
|
|
2044
|
+
*
|
|
2045
|
+
* @type {string}
|
|
2046
|
+
* @memberof CreditEventWithAgent
|
|
2047
|
+
*/
|
|
857
2048
|
'balance_after'?: string | null;
|
|
858
2049
|
/**
|
|
859
2050
|
* Base amount of credits involved
|
|
2051
|
+
* @type {string}
|
|
2052
|
+
* @memberof CreditEventWithAgent
|
|
860
2053
|
*/
|
|
861
2054
|
'base_amount'?: string;
|
|
2055
|
+
/**
|
|
2056
|
+
*
|
|
2057
|
+
* @type {string}
|
|
2058
|
+
* @memberof CreditEventWithAgent
|
|
2059
|
+
*/
|
|
862
2060
|
'base_discount_amount'?: string | null;
|
|
2061
|
+
/**
|
|
2062
|
+
*
|
|
2063
|
+
* @type {string}
|
|
2064
|
+
* @memberof CreditEventWithAgent
|
|
2065
|
+
*/
|
|
863
2066
|
'base_original_amount'?: string | null;
|
|
2067
|
+
/**
|
|
2068
|
+
*
|
|
2069
|
+
* @type {string}
|
|
2070
|
+
* @memberof CreditEventWithAgent
|
|
2071
|
+
*/
|
|
864
2072
|
'base_llm_amount'?: string | null;
|
|
2073
|
+
/**
|
|
2074
|
+
*
|
|
2075
|
+
* @type {string}
|
|
2076
|
+
* @memberof CreditEventWithAgent
|
|
2077
|
+
*/
|
|
865
2078
|
'base_skill_amount'?: string | null;
|
|
2079
|
+
/**
|
|
2080
|
+
*
|
|
2081
|
+
* @type {string}
|
|
2082
|
+
* @memberof CreditEventWithAgent
|
|
2083
|
+
*/
|
|
866
2084
|
'base_free_amount'?: string | null;
|
|
2085
|
+
/**
|
|
2086
|
+
*
|
|
2087
|
+
* @type {string}
|
|
2088
|
+
* @memberof CreditEventWithAgent
|
|
2089
|
+
*/
|
|
867
2090
|
'base_reward_amount'?: string | null;
|
|
2091
|
+
/**
|
|
2092
|
+
*
|
|
2093
|
+
* @type {string}
|
|
2094
|
+
* @memberof CreditEventWithAgent
|
|
2095
|
+
*/
|
|
868
2096
|
'base_permanent_amount'?: string | null;
|
|
2097
|
+
/**
|
|
2098
|
+
*
|
|
2099
|
+
* @type {string}
|
|
2100
|
+
* @memberof CreditEventWithAgent
|
|
2101
|
+
*/
|
|
869
2102
|
'fee_platform_amount'?: string | null;
|
|
2103
|
+
/**
|
|
2104
|
+
*
|
|
2105
|
+
* @type {string}
|
|
2106
|
+
* @memberof CreditEventWithAgent
|
|
2107
|
+
*/
|
|
870
2108
|
'fee_platform_free_amount'?: string | null;
|
|
2109
|
+
/**
|
|
2110
|
+
*
|
|
2111
|
+
* @type {string}
|
|
2112
|
+
* @memberof CreditEventWithAgent
|
|
2113
|
+
*/
|
|
871
2114
|
'fee_platform_reward_amount'?: string | null;
|
|
2115
|
+
/**
|
|
2116
|
+
*
|
|
2117
|
+
* @type {string}
|
|
2118
|
+
* @memberof CreditEventWithAgent
|
|
2119
|
+
*/
|
|
872
2120
|
'fee_platform_permanent_amount'?: string | null;
|
|
2121
|
+
/**
|
|
2122
|
+
*
|
|
2123
|
+
* @type {string}
|
|
2124
|
+
* @memberof CreditEventWithAgent
|
|
2125
|
+
*/
|
|
873
2126
|
'fee_dev_account'?: string | null;
|
|
2127
|
+
/**
|
|
2128
|
+
*
|
|
2129
|
+
* @type {string}
|
|
2130
|
+
* @memberof CreditEventWithAgent
|
|
2131
|
+
*/
|
|
874
2132
|
'fee_dev_amount'?: string | null;
|
|
2133
|
+
/**
|
|
2134
|
+
*
|
|
2135
|
+
* @type {string}
|
|
2136
|
+
* @memberof CreditEventWithAgent
|
|
2137
|
+
*/
|
|
875
2138
|
'fee_dev_free_amount'?: string | null;
|
|
2139
|
+
/**
|
|
2140
|
+
*
|
|
2141
|
+
* @type {string}
|
|
2142
|
+
* @memberof CreditEventWithAgent
|
|
2143
|
+
*/
|
|
876
2144
|
'fee_dev_reward_amount'?: string | null;
|
|
2145
|
+
/**
|
|
2146
|
+
*
|
|
2147
|
+
* @type {string}
|
|
2148
|
+
* @memberof CreditEventWithAgent
|
|
2149
|
+
*/
|
|
877
2150
|
'fee_dev_permanent_amount'?: string | null;
|
|
2151
|
+
/**
|
|
2152
|
+
*
|
|
2153
|
+
* @type {string}
|
|
2154
|
+
* @memberof CreditEventWithAgent
|
|
2155
|
+
*/
|
|
878
2156
|
'fee_agent_account'?: string | null;
|
|
2157
|
+
/**
|
|
2158
|
+
*
|
|
2159
|
+
* @type {string}
|
|
2160
|
+
* @memberof CreditEventWithAgent
|
|
2161
|
+
*/
|
|
879
2162
|
'fee_agent_amount'?: string | null;
|
|
2163
|
+
/**
|
|
2164
|
+
*
|
|
2165
|
+
* @type {string}
|
|
2166
|
+
* @memberof CreditEventWithAgent
|
|
2167
|
+
*/
|
|
880
2168
|
'fee_agent_free_amount'?: string | null;
|
|
2169
|
+
/**
|
|
2170
|
+
*
|
|
2171
|
+
* @type {string}
|
|
2172
|
+
* @memberof CreditEventWithAgent
|
|
2173
|
+
*/
|
|
881
2174
|
'fee_agent_reward_amount'?: string | null;
|
|
2175
|
+
/**
|
|
2176
|
+
*
|
|
2177
|
+
* @type {string}
|
|
2178
|
+
* @memberof CreditEventWithAgent
|
|
2179
|
+
*/
|
|
882
2180
|
'fee_agent_permanent_amount'?: string | null;
|
|
2181
|
+
/**
|
|
2182
|
+
*
|
|
2183
|
+
* @type {string}
|
|
2184
|
+
* @memberof CreditEventWithAgent
|
|
2185
|
+
*/
|
|
883
2186
|
'free_amount'?: string | null;
|
|
2187
|
+
/**
|
|
2188
|
+
*
|
|
2189
|
+
* @type {string}
|
|
2190
|
+
* @memberof CreditEventWithAgent
|
|
2191
|
+
*/
|
|
884
2192
|
'reward_amount'?: string | null;
|
|
2193
|
+
/**
|
|
2194
|
+
*
|
|
2195
|
+
* @type {string}
|
|
2196
|
+
* @memberof CreditEventWithAgent
|
|
2197
|
+
*/
|
|
885
2198
|
'permanent_amount'?: string | null;
|
|
2199
|
+
/**
|
|
2200
|
+
*
|
|
2201
|
+
* @type {string}
|
|
2202
|
+
* @memberof CreditEventWithAgent
|
|
2203
|
+
*/
|
|
886
2204
|
'note'?: string | null;
|
|
887
2205
|
/**
|
|
888
2206
|
* Timestamp when this event was created
|
|
2207
|
+
* @type {string}
|
|
2208
|
+
* @memberof CreditEventWithAgent
|
|
889
2209
|
*/
|
|
890
2210
|
'created_at': string;
|
|
2211
|
+
/**
|
|
2212
|
+
*
|
|
2213
|
+
* @type {string}
|
|
2214
|
+
* @memberof CreditEventWithAgent
|
|
2215
|
+
*/
|
|
891
2216
|
'agent_name'?: string | null;
|
|
892
2217
|
}
|
|
893
2218
|
/**
|
|
894
2219
|
* 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.
|
|
2220
|
+
* @export
|
|
2221
|
+
* @interface CreditEventsResponse
|
|
895
2222
|
*/
|
|
896
2223
|
export interface CreditEventsResponse {
|
|
897
2224
|
/**
|
|
898
2225
|
* List of credit events with agent names
|
|
2226
|
+
* @type {Array<CreditEventWithAgent>}
|
|
2227
|
+
* @memberof CreditEventsResponse
|
|
899
2228
|
*/
|
|
900
2229
|
'data': Array<CreditEventWithAgent>;
|
|
901
2230
|
/**
|
|
902
2231
|
* Indicates if there are more items
|
|
2232
|
+
* @type {boolean}
|
|
2233
|
+
* @memberof CreditEventsResponse
|
|
903
2234
|
*/
|
|
904
2235
|
'has_more': boolean;
|
|
2236
|
+
/**
|
|
2237
|
+
*
|
|
2238
|
+
* @type {string}
|
|
2239
|
+
* @memberof CreditEventsResponse
|
|
2240
|
+
*/
|
|
905
2241
|
'next_cursor'?: string | null;
|
|
906
2242
|
}
|
|
907
2243
|
/**
|
|
908
2244
|
* Credit transaction response model with associated event data. Extends CreditTransaction to include the related CreditEvent if available.
|
|
2245
|
+
* @export
|
|
2246
|
+
* @interface CreditTransactionResp
|
|
909
2247
|
*/
|
|
910
2248
|
export interface CreditTransactionResp {
|
|
911
2249
|
/**
|
|
912
2250
|
* Unique identifier for the credit transaction
|
|
2251
|
+
* @type {string}
|
|
2252
|
+
* @memberof CreditTransactionResp
|
|
913
2253
|
*/
|
|
914
2254
|
'id'?: string;
|
|
915
2255
|
/**
|
|
916
2256
|
* ID of the account this transaction belongs to
|
|
2257
|
+
* @type {string}
|
|
2258
|
+
* @memberof CreditTransactionResp
|
|
917
2259
|
*/
|
|
918
2260
|
'account_id': string;
|
|
919
2261
|
/**
|
|
920
2262
|
* ID of the event that triggered this transaction
|
|
2263
|
+
* @type {string}
|
|
2264
|
+
* @memberof CreditTransactionResp
|
|
921
2265
|
*/
|
|
922
2266
|
'event_id': string;
|
|
923
2267
|
/**
|
|
924
2268
|
* Type of the transaction
|
|
2269
|
+
* @type {TransactionType}
|
|
2270
|
+
* @memberof CreditTransactionResp
|
|
925
2271
|
*/
|
|
926
2272
|
'tx_type': TransactionType;
|
|
927
2273
|
/**
|
|
928
2274
|
* Whether this is a credit or debit transaction
|
|
2275
|
+
* @type {CreditDebit}
|
|
2276
|
+
* @memberof CreditTransactionResp
|
|
929
2277
|
*/
|
|
930
2278
|
'credit_debit': CreditDebit;
|
|
931
2279
|
/**
|
|
932
2280
|
* Amount of credits changed
|
|
2281
|
+
* @type {string}
|
|
2282
|
+
* @memberof CreditTransactionResp
|
|
933
2283
|
*/
|
|
934
2284
|
'change_amount'?: string;
|
|
935
2285
|
/**
|
|
936
2286
|
* Amount of free credits changed
|
|
2287
|
+
* @type {string}
|
|
2288
|
+
* @memberof CreditTransactionResp
|
|
937
2289
|
*/
|
|
938
2290
|
'free_amount'?: string;
|
|
939
2291
|
/**
|
|
940
2292
|
* Amount of reward credits changed
|
|
2293
|
+
* @type {string}
|
|
2294
|
+
* @memberof CreditTransactionResp
|
|
941
2295
|
*/
|
|
942
2296
|
'reward_amount'?: string;
|
|
943
2297
|
/**
|
|
944
2298
|
* Amount of permanent credits changed
|
|
2299
|
+
* @type {string}
|
|
2300
|
+
* @memberof CreditTransactionResp
|
|
945
2301
|
*/
|
|
946
2302
|
'permanent_amount'?: string;
|
|
947
2303
|
/**
|
|
948
2304
|
* Type of credits involved
|
|
2305
|
+
* @type {CreditType}
|
|
2306
|
+
* @memberof CreditTransactionResp
|
|
949
2307
|
*/
|
|
950
2308
|
'credit_type': CreditType;
|
|
951
2309
|
/**
|
|
952
2310
|
* Timestamp when this transaction was created
|
|
2311
|
+
* @type {string}
|
|
2312
|
+
* @memberof CreditTransactionResp
|
|
953
2313
|
*/
|
|
954
2314
|
'created_at': string;
|
|
2315
|
+
/**
|
|
2316
|
+
*
|
|
2317
|
+
* @type {CreditEvent}
|
|
2318
|
+
* @memberof CreditTransactionResp
|
|
2319
|
+
*/
|
|
955
2320
|
'event'?: CreditEvent | null;
|
|
956
2321
|
}
|
|
957
2322
|
/**
|
|
958
2323
|
* Paginated response model for credit transactions. Contains a list of credit transactions (with event data), a flag for more items, and a pagination cursor.
|
|
2324
|
+
* @export
|
|
2325
|
+
* @interface CreditTransactionsResponse
|
|
959
2326
|
*/
|
|
960
2327
|
export interface CreditTransactionsResponse {
|
|
961
2328
|
/**
|
|
962
2329
|
* List of credit transactions
|
|
2330
|
+
* @type {Array<CreditTransactionResp>}
|
|
2331
|
+
* @memberof CreditTransactionsResponse
|
|
963
2332
|
*/
|
|
964
2333
|
'data': Array<CreditTransactionResp>;
|
|
965
2334
|
/**
|
|
966
2335
|
* Indicates if there are more items
|
|
2336
|
+
* @type {boolean}
|
|
2337
|
+
* @memberof CreditTransactionsResponse
|
|
967
2338
|
*/
|
|
968
2339
|
'has_more': boolean;
|
|
2340
|
+
/**
|
|
2341
|
+
*
|
|
2342
|
+
* @type {string}
|
|
2343
|
+
* @memberof CreditTransactionsResponse
|
|
2344
|
+
*/
|
|
969
2345
|
'next_cursor'?: string | null;
|
|
970
2346
|
}
|
|
971
2347
|
/**
|
|
972
2348
|
* Credit type is used in db column names, do not change it.
|
|
2349
|
+
* @export
|
|
2350
|
+
* @enum {string}
|
|
973
2351
|
*/
|
|
974
2352
|
export declare const CreditType: {
|
|
975
2353
|
readonly FreeCredits: "free_credits";
|
|
@@ -979,6 +2357,8 @@ export declare const CreditType: {
|
|
|
979
2357
|
export type CreditType = typeof CreditType[keyof typeof CreditType];
|
|
980
2358
|
/**
|
|
981
2359
|
* Direction of credit flow.
|
|
2360
|
+
* @export
|
|
2361
|
+
* @enum {string}
|
|
982
2362
|
*/
|
|
983
2363
|
export declare const Direction: {
|
|
984
2364
|
readonly Income: "income";
|
|
@@ -987,6 +2367,8 @@ export declare const Direction: {
|
|
|
987
2367
|
export type Direction = typeof Direction[keyof typeof Direction];
|
|
988
2368
|
/**
|
|
989
2369
|
* Type of credit event.
|
|
2370
|
+
* @export
|
|
2371
|
+
* @enum {string}
|
|
990
2372
|
*/
|
|
991
2373
|
export declare const EventType: {
|
|
992
2374
|
readonly Memory: "memory";
|
|
@@ -1005,78 +2387,248 @@ export declare const EventType: {
|
|
|
1005
2387
|
export type EventType = typeof EventType[keyof typeof EventType];
|
|
1006
2388
|
/**
|
|
1007
2389
|
* Fee percentage of the agent
|
|
2390
|
+
* @export
|
|
2391
|
+
* @interface FeePercentage
|
|
1008
2392
|
*/
|
|
1009
2393
|
export interface FeePercentage {
|
|
1010
2394
|
}
|
|
1011
2395
|
/**
|
|
1012
2396
|
* Response model for single generation detail.
|
|
2397
|
+
* @export
|
|
2398
|
+
* @interface GenerationDetailResponse
|
|
1013
2399
|
*/
|
|
1014
2400
|
export interface GenerationDetailResponse {
|
|
1015
2401
|
/**
|
|
1016
2402
|
* Project ID
|
|
2403
|
+
* @type {string}
|
|
2404
|
+
* @memberof GenerationDetailResponse
|
|
1017
2405
|
*/
|
|
1018
2406
|
'project_id': string;
|
|
2407
|
+
/**
|
|
2408
|
+
*
|
|
2409
|
+
* @type {string}
|
|
2410
|
+
* @memberof GenerationDetailResponse
|
|
2411
|
+
*/
|
|
1019
2412
|
'user_id'?: string | null;
|
|
2413
|
+
/**
|
|
2414
|
+
*
|
|
2415
|
+
* @type {string}
|
|
2416
|
+
* @memberof GenerationDetailResponse
|
|
2417
|
+
*/
|
|
1020
2418
|
'created_at'?: string | null;
|
|
2419
|
+
/**
|
|
2420
|
+
*
|
|
2421
|
+
* @type {string}
|
|
2422
|
+
* @memberof GenerationDetailResponse
|
|
2423
|
+
*/
|
|
1021
2424
|
'last_activity'?: string | null;
|
|
1022
2425
|
/**
|
|
1023
2426
|
* Number of messages in conversation
|
|
2427
|
+
* @type {number}
|
|
2428
|
+
* @memberof GenerationDetailResponse
|
|
1024
2429
|
*/
|
|
1025
2430
|
'message_count': number;
|
|
2431
|
+
/**
|
|
2432
|
+
*
|
|
2433
|
+
* @type {object}
|
|
2434
|
+
* @memberof GenerationDetailResponse
|
|
2435
|
+
*/
|
|
1026
2436
|
'last_message'?: object | null;
|
|
2437
|
+
/**
|
|
2438
|
+
*
|
|
2439
|
+
* @type {object}
|
|
2440
|
+
* @memberof GenerationDetailResponse
|
|
2441
|
+
*/
|
|
1027
2442
|
'first_message'?: object | null;
|
|
1028
2443
|
/**
|
|
1029
2444
|
* Full conversation history
|
|
2445
|
+
* @type {Array<object>}
|
|
2446
|
+
* @memberof GenerationDetailResponse
|
|
1030
2447
|
*/
|
|
1031
2448
|
'conversation_history': Array<object>;
|
|
1032
2449
|
}
|
|
1033
2450
|
/**
|
|
1034
2451
|
* Response model for generations list.
|
|
2452
|
+
* @export
|
|
2453
|
+
* @interface GenerationsListResponse
|
|
1035
2454
|
*/
|
|
1036
2455
|
export interface GenerationsListResponse {
|
|
1037
2456
|
/**
|
|
1038
2457
|
* List of recent projects with their conversation history
|
|
2458
|
+
* @type {Array<object>}
|
|
2459
|
+
* @memberof GenerationsListResponse
|
|
1039
2460
|
*/
|
|
1040
2461
|
'projects': Array<object>;
|
|
1041
2462
|
}
|
|
2463
|
+
/**
|
|
2464
|
+
*
|
|
2465
|
+
* @export
|
|
2466
|
+
* @interface HTTPValidationError
|
|
2467
|
+
*/
|
|
1042
2468
|
export interface HTTPValidationError {
|
|
2469
|
+
/**
|
|
2470
|
+
*
|
|
2471
|
+
* @type {Array<ValidationError>}
|
|
2472
|
+
* @memberof HTTPValidationError
|
|
2473
|
+
*/
|
|
1043
2474
|
'detail'?: Array<ValidationError>;
|
|
1044
2475
|
}
|
|
1045
2476
|
/**
|
|
1046
2477
|
* LLM model information with provider display name.
|
|
2478
|
+
* @export
|
|
2479
|
+
* @interface LLMModelInfoWithProviderName
|
|
1047
2480
|
*/
|
|
1048
2481
|
export interface LLMModelInfoWithProviderName {
|
|
2482
|
+
/**
|
|
2483
|
+
*
|
|
2484
|
+
* @type {string}
|
|
2485
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2486
|
+
*/
|
|
1049
2487
|
'id': string;
|
|
2488
|
+
/**
|
|
2489
|
+
*
|
|
2490
|
+
* @type {string}
|
|
2491
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2492
|
+
*/
|
|
1050
2493
|
'name': string;
|
|
2494
|
+
/**
|
|
2495
|
+
*
|
|
2496
|
+
* @type {LLMProvider}
|
|
2497
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2498
|
+
*/
|
|
1051
2499
|
'provider': LLMProvider;
|
|
2500
|
+
/**
|
|
2501
|
+
*
|
|
2502
|
+
* @type {boolean}
|
|
2503
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2504
|
+
*/
|
|
1052
2505
|
'enabled'?: boolean;
|
|
2506
|
+
/**
|
|
2507
|
+
*
|
|
2508
|
+
* @type {string}
|
|
2509
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2510
|
+
*/
|
|
1053
2511
|
'input_price': string;
|
|
2512
|
+
/**
|
|
2513
|
+
*
|
|
2514
|
+
* @type {string}
|
|
2515
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2516
|
+
*/
|
|
1054
2517
|
'output_price': string;
|
|
2518
|
+
/**
|
|
2519
|
+
*
|
|
2520
|
+
* @type {number}
|
|
2521
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2522
|
+
*/
|
|
1055
2523
|
'price_level'?: number | null;
|
|
2524
|
+
/**
|
|
2525
|
+
*
|
|
2526
|
+
* @type {number}
|
|
2527
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2528
|
+
*/
|
|
1056
2529
|
'context_length': number;
|
|
2530
|
+
/**
|
|
2531
|
+
*
|
|
2532
|
+
* @type {number}
|
|
2533
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2534
|
+
*/
|
|
1057
2535
|
'output_length': number;
|
|
2536
|
+
/**
|
|
2537
|
+
*
|
|
2538
|
+
* @type {number}
|
|
2539
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2540
|
+
*/
|
|
1058
2541
|
'intelligence': number;
|
|
2542
|
+
/**
|
|
2543
|
+
*
|
|
2544
|
+
* @type {number}
|
|
2545
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2546
|
+
*/
|
|
1059
2547
|
'speed': number;
|
|
2548
|
+
/**
|
|
2549
|
+
*
|
|
2550
|
+
* @type {boolean}
|
|
2551
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2552
|
+
*/
|
|
1060
2553
|
'supports_image_input'?: boolean;
|
|
2554
|
+
/**
|
|
2555
|
+
*
|
|
2556
|
+
* @type {boolean}
|
|
2557
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2558
|
+
*/
|
|
1061
2559
|
'supports_skill_calls'?: boolean;
|
|
2560
|
+
/**
|
|
2561
|
+
*
|
|
2562
|
+
* @type {boolean}
|
|
2563
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2564
|
+
*/
|
|
1062
2565
|
'supports_structured_output'?: boolean;
|
|
2566
|
+
/**
|
|
2567
|
+
*
|
|
2568
|
+
* @type {boolean}
|
|
2569
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2570
|
+
*/
|
|
1063
2571
|
'has_reasoning'?: boolean;
|
|
2572
|
+
/**
|
|
2573
|
+
*
|
|
2574
|
+
* @type {boolean}
|
|
2575
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2576
|
+
*/
|
|
1064
2577
|
'supports_search'?: boolean;
|
|
2578
|
+
/**
|
|
2579
|
+
*
|
|
2580
|
+
* @type {boolean}
|
|
2581
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2582
|
+
*/
|
|
1065
2583
|
'supports_temperature'?: boolean;
|
|
2584
|
+
/**
|
|
2585
|
+
*
|
|
2586
|
+
* @type {boolean}
|
|
2587
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2588
|
+
*/
|
|
1066
2589
|
'supports_frequency_penalty'?: boolean;
|
|
2590
|
+
/**
|
|
2591
|
+
*
|
|
2592
|
+
* @type {boolean}
|
|
2593
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2594
|
+
*/
|
|
1067
2595
|
'supports_presence_penalty'?: boolean;
|
|
2596
|
+
/**
|
|
2597
|
+
*
|
|
2598
|
+
* @type {string}
|
|
2599
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2600
|
+
*/
|
|
1068
2601
|
'api_base'?: string | null;
|
|
2602
|
+
/**
|
|
2603
|
+
*
|
|
2604
|
+
* @type {number}
|
|
2605
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2606
|
+
*/
|
|
1069
2607
|
'timeout'?: number;
|
|
1070
2608
|
/**
|
|
1071
2609
|
* Timestamp when this data was created
|
|
2610
|
+
* @type {string}
|
|
2611
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1072
2612
|
*/
|
|
1073
2613
|
'created_at'?: string;
|
|
1074
2614
|
/**
|
|
1075
2615
|
* Timestamp when this data was updated
|
|
2616
|
+
* @type {string}
|
|
2617
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1076
2618
|
*/
|
|
1077
2619
|
'updated_at'?: string;
|
|
2620
|
+
/**
|
|
2621
|
+
*
|
|
2622
|
+
* @type {string}
|
|
2623
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2624
|
+
*/
|
|
1078
2625
|
'provider_name': string;
|
|
1079
2626
|
}
|
|
2627
|
+
/**
|
|
2628
|
+
*
|
|
2629
|
+
* @export
|
|
2630
|
+
* @enum {string}
|
|
2631
|
+
*/
|
|
1080
2632
|
export declare const LLMProvider: {
|
|
1081
2633
|
readonly Openai: "openai";
|
|
1082
2634
|
readonly Deepseek: "deepseek";
|
|
@@ -1088,6 +2640,8 @@ export declare const LLMProvider: {
|
|
|
1088
2640
|
export type LLMProvider = typeof LLMProvider[keyof typeof LLMProvider];
|
|
1089
2641
|
/**
|
|
1090
2642
|
* Type of credit account owner.
|
|
2643
|
+
* @export
|
|
2644
|
+
* @enum {string}
|
|
1091
2645
|
*/
|
|
1092
2646
|
export declare const OwnerType: {
|
|
1093
2647
|
readonly User: "user";
|
|
@@ -1097,44 +2651,87 @@ export declare const OwnerType: {
|
|
|
1097
2651
|
export type OwnerType = typeof OwnerType[keyof typeof OwnerType];
|
|
1098
2652
|
/**
|
|
1099
2653
|
* Pydantic model for Skill.
|
|
2654
|
+
* @export
|
|
2655
|
+
* @interface Skill
|
|
1100
2656
|
*/
|
|
1101
2657
|
export interface Skill {
|
|
1102
2658
|
/**
|
|
1103
2659
|
* Name of the skill
|
|
2660
|
+
* @type {string}
|
|
2661
|
+
* @memberof Skill
|
|
1104
2662
|
*/
|
|
1105
2663
|
'name': string;
|
|
1106
2664
|
/**
|
|
1107
2665
|
* Is this skill enabled?
|
|
2666
|
+
* @type {boolean}
|
|
2667
|
+
* @memberof Skill
|
|
1108
2668
|
*/
|
|
1109
2669
|
'enabled': boolean;
|
|
1110
2670
|
/**
|
|
1111
2671
|
* Category of the skill
|
|
2672
|
+
* @type {string}
|
|
2673
|
+
* @memberof Skill
|
|
1112
2674
|
*/
|
|
1113
2675
|
'category': string;
|
|
2676
|
+
/**
|
|
2677
|
+
*
|
|
2678
|
+
* @type {string}
|
|
2679
|
+
* @memberof Skill
|
|
2680
|
+
*/
|
|
1114
2681
|
'config_name': string | null;
|
|
2682
|
+
/**
|
|
2683
|
+
*
|
|
2684
|
+
* @type {number}
|
|
2685
|
+
* @memberof Skill
|
|
2686
|
+
*/
|
|
1115
2687
|
'price_level': number | null;
|
|
1116
2688
|
/**
|
|
1117
2689
|
* Price for this skill
|
|
2690
|
+
* @type {string}
|
|
2691
|
+
* @memberof Skill
|
|
1118
2692
|
*/
|
|
1119
2693
|
'price'?: string;
|
|
1120
2694
|
/**
|
|
1121
2695
|
* Price for this skill with self key
|
|
2696
|
+
* @type {string}
|
|
2697
|
+
* @memberof Skill
|
|
1122
2698
|
*/
|
|
1123
2699
|
'price_self_key'?: string;
|
|
2700
|
+
/**
|
|
2701
|
+
*
|
|
2702
|
+
* @type {number}
|
|
2703
|
+
* @memberof Skill
|
|
2704
|
+
*/
|
|
1124
2705
|
'rate_limit_count': number | null;
|
|
2706
|
+
/**
|
|
2707
|
+
*
|
|
2708
|
+
* @type {number}
|
|
2709
|
+
* @memberof Skill
|
|
2710
|
+
*/
|
|
1125
2711
|
'rate_limit_minutes': number | null;
|
|
2712
|
+
/**
|
|
2713
|
+
*
|
|
2714
|
+
* @type {string}
|
|
2715
|
+
* @memberof Skill
|
|
2716
|
+
*/
|
|
1126
2717
|
'author': string | null;
|
|
1127
2718
|
/**
|
|
1128
2719
|
* Timestamp when this record was created
|
|
2720
|
+
* @type {string}
|
|
2721
|
+
* @memberof Skill
|
|
1129
2722
|
*/
|
|
1130
2723
|
'created_at': string;
|
|
1131
2724
|
/**
|
|
1132
2725
|
* Timestamp when this record was last updated
|
|
2726
|
+
* @type {string}
|
|
2727
|
+
* @memberof Skill
|
|
1133
2728
|
*/
|
|
1134
2729
|
'updated_at': string;
|
|
1135
2730
|
}
|
|
1136
2731
|
/**
|
|
1137
2732
|
* Type of system message.
|
|
2733
|
+
* @export
|
|
2734
|
+
* @enum {string}
|
|
1138
2735
|
*/
|
|
1139
2736
|
export declare const SystemMessageType: {
|
|
1140
2737
|
readonly ServiceFeeError: "service_fee_error";
|
|
@@ -1147,6 +2744,8 @@ export declare const SystemMessageType: {
|
|
|
1147
2744
|
export type SystemMessageType = typeof SystemMessageType[keyof typeof SystemMessageType];
|
|
1148
2745
|
/**
|
|
1149
2746
|
* Type of credit transaction.
|
|
2747
|
+
* @export
|
|
2748
|
+
* @enum {string}
|
|
1150
2749
|
*/
|
|
1151
2750
|
export declare const TransactionType: {
|
|
1152
2751
|
readonly Pay: "pay";
|
|
@@ -1167,12 +2766,29 @@ export declare const TransactionType: {
|
|
|
1167
2766
|
readonly RechargeBonus: "recharge_bonus";
|
|
1168
2767
|
};
|
|
1169
2768
|
export type TransactionType = typeof TransactionType[keyof typeof TransactionType];
|
|
2769
|
+
/**
|
|
2770
|
+
*
|
|
2771
|
+
* @export
|
|
2772
|
+
* @interface TwitterAuthResponse
|
|
2773
|
+
*/
|
|
1170
2774
|
export interface TwitterAuthResponse {
|
|
2775
|
+
/**
|
|
2776
|
+
*
|
|
2777
|
+
* @type {string}
|
|
2778
|
+
* @memberof TwitterAuthResponse
|
|
2779
|
+
*/
|
|
1171
2780
|
'agent_id': string;
|
|
2781
|
+
/**
|
|
2782
|
+
*
|
|
2783
|
+
* @type {string}
|
|
2784
|
+
* @memberof TwitterAuthResponse
|
|
2785
|
+
*/
|
|
1172
2786
|
'url': string;
|
|
1173
2787
|
}
|
|
1174
2788
|
/**
|
|
1175
2789
|
* Type of upstream transaction.
|
|
2790
|
+
* @export
|
|
2791
|
+
* @enum {string}
|
|
1176
2792
|
*/
|
|
1177
2793
|
export declare const UpstreamType: {
|
|
1178
2794
|
readonly Api: "api";
|
|
@@ -1181,15 +2797,41 @@ export declare const UpstreamType: {
|
|
|
1181
2797
|
readonly Initializer: "initializer";
|
|
1182
2798
|
};
|
|
1183
2799
|
export type UpstreamType = typeof UpstreamType[keyof typeof UpstreamType];
|
|
2800
|
+
/**
|
|
2801
|
+
*
|
|
2802
|
+
* @export
|
|
2803
|
+
* @interface ValidationError
|
|
2804
|
+
*/
|
|
1184
2805
|
export interface ValidationError {
|
|
2806
|
+
/**
|
|
2807
|
+
*
|
|
2808
|
+
* @type {Array<ValidationErrorLocInner>}
|
|
2809
|
+
* @memberof ValidationError
|
|
2810
|
+
*/
|
|
1185
2811
|
'loc': Array<ValidationErrorLocInner>;
|
|
2812
|
+
/**
|
|
2813
|
+
*
|
|
2814
|
+
* @type {string}
|
|
2815
|
+
* @memberof ValidationError
|
|
2816
|
+
*/
|
|
1186
2817
|
'msg': string;
|
|
2818
|
+
/**
|
|
2819
|
+
*
|
|
2820
|
+
* @type {string}
|
|
2821
|
+
* @memberof ValidationError
|
|
2822
|
+
*/
|
|
1187
2823
|
'type': string;
|
|
1188
2824
|
}
|
|
2825
|
+
/**
|
|
2826
|
+
*
|
|
2827
|
+
* @export
|
|
2828
|
+
* @interface ValidationErrorLocInner
|
|
2829
|
+
*/
|
|
1189
2830
|
export interface ValidationErrorLocInner {
|
|
1190
2831
|
}
|
|
1191
2832
|
/**
|
|
1192
2833
|
* AgentApi - axios parameter creator
|
|
2834
|
+
* @export
|
|
1193
2835
|
*/
|
|
1194
2836
|
export declare const AgentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1195
2837
|
/**
|
|
@@ -1315,6 +2957,7 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
1315
2957
|
};
|
|
1316
2958
|
/**
|
|
1317
2959
|
* AgentApi - functional programming interface
|
|
2960
|
+
* @export
|
|
1318
2961
|
*/
|
|
1319
2962
|
export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
1320
2963
|
/**
|
|
@@ -1440,6 +3083,7 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
1440
3083
|
};
|
|
1441
3084
|
/**
|
|
1442
3085
|
* AgentApi - factory interface
|
|
3086
|
+
* @export
|
|
1443
3087
|
*/
|
|
1444
3088
|
export declare const AgentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1445
3089
|
/**
|
|
@@ -1565,6 +3209,9 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
1565
3209
|
};
|
|
1566
3210
|
/**
|
|
1567
3211
|
* AgentApi - object-oriented interface
|
|
3212
|
+
* @export
|
|
3213
|
+
* @class AgentApi
|
|
3214
|
+
* @extends {BaseAPI}
|
|
1568
3215
|
*/
|
|
1569
3216
|
export declare class AgentApi extends BaseAPI {
|
|
1570
3217
|
/**
|
|
@@ -1573,6 +3220,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1573
3220
|
* @param {AgentUpdate} [agentUpdate]
|
|
1574
3221
|
* @param {*} [options] Override http request option.
|
|
1575
3222
|
* @throws {RequiredError}
|
|
3223
|
+
* @memberof AgentApi
|
|
1576
3224
|
*/
|
|
1577
3225
|
createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentResponse, any>>;
|
|
1578
3226
|
/**
|
|
@@ -1581,6 +3229,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1581
3229
|
* @param {string} agentId ID of the agent to export
|
|
1582
3230
|
* @param {*} [options] Override http request option.
|
|
1583
3231
|
* @throws {RequiredError}
|
|
3232
|
+
* @memberof AgentApi
|
|
1584
3233
|
*/
|
|
1585
3234
|
exportAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
1586
3235
|
/**
|
|
@@ -1589,6 +3238,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1589
3238
|
* @param {string} agentId ID of the agent to retrieve
|
|
1590
3239
|
* @param {*} [options] Override http request option.
|
|
1591
3240
|
* @throws {RequiredError}
|
|
3241
|
+
* @memberof AgentApi
|
|
1592
3242
|
*/
|
|
1593
3243
|
getAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
1594
3244
|
/**
|
|
@@ -1597,6 +3247,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1597
3247
|
* @param {string} agentId ID of the agent
|
|
1598
3248
|
* @param {*} [options] Override http request option.
|
|
1599
3249
|
* @throws {RequiredError}
|
|
3250
|
+
* @memberof AgentApi
|
|
1600
3251
|
*/
|
|
1601
3252
|
getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentApiKeyResponse, any>>;
|
|
1602
3253
|
/**
|
|
@@ -1605,6 +3256,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1605
3256
|
* @param {string} agentId ID of the agent
|
|
1606
3257
|
* @param {*} [options] Override http request option.
|
|
1607
3258
|
* @throws {RequiredError}
|
|
3259
|
+
* @memberof AgentApi
|
|
1608
3260
|
*/
|
|
1609
3261
|
getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentAssetsResponse, any>>;
|
|
1610
3262
|
/**
|
|
@@ -1613,6 +3265,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1613
3265
|
* @param {string} aid ID of the agent
|
|
1614
3266
|
* @param {*} [options] Override http request option.
|
|
1615
3267
|
* @throws {RequiredError}
|
|
3268
|
+
* @memberof AgentApi
|
|
1616
3269
|
*/
|
|
1617
3270
|
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentStatisticsResponse, any>>;
|
|
1618
3271
|
/**
|
|
@@ -1623,6 +3276,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1623
3276
|
* @param {number} [limit] Maximum number of agents to return
|
|
1624
3277
|
* @param {*} [options] Override http request option.
|
|
1625
3278
|
* @throws {RequiredError}
|
|
3279
|
+
* @memberof AgentApi
|
|
1626
3280
|
*/
|
|
1627
3281
|
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any>>;
|
|
1628
3282
|
/**
|
|
@@ -1633,6 +3287,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1633
3287
|
* @param {number} [limit] Maximum number of messages to return
|
|
1634
3288
|
* @param {*} [options] Override http request option.
|
|
1635
3289
|
* @throws {RequiredError}
|
|
3290
|
+
* @memberof AgentApi
|
|
1636
3291
|
*/
|
|
1637
3292
|
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any>>;
|
|
1638
3293
|
/**
|
|
@@ -1642,6 +3297,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1642
3297
|
* @param {File} file YAML file containing agent configuration
|
|
1643
3298
|
* @param {*} [options] Override http request option.
|
|
1644
3299
|
* @throws {RequiredError}
|
|
3300
|
+
* @memberof AgentApi
|
|
1645
3301
|
*/
|
|
1646
3302
|
importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
1647
3303
|
/**
|
|
@@ -1651,6 +3307,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1651
3307
|
* @param {AgentUpdate} [agentUpdate]
|
|
1652
3308
|
* @param {*} [options] Override http request option.
|
|
1653
3309
|
* @throws {RequiredError}
|
|
3310
|
+
* @memberof AgentApi
|
|
1654
3311
|
*/
|
|
1655
3312
|
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
1656
3313
|
/**
|
|
@@ -1659,6 +3316,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1659
3316
|
* @param {string} agentId ID of the agent
|
|
1660
3317
|
* @param {*} [options] Override http request option.
|
|
1661
3318
|
* @throws {RequiredError}
|
|
3319
|
+
* @memberof AgentApi
|
|
1662
3320
|
*/
|
|
1663
3321
|
resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentApiKeyResponse, any>>;
|
|
1664
3322
|
/**
|
|
@@ -1668,6 +3326,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1668
3326
|
* @param {AgentUpdate} [agentUpdate]
|
|
1669
3327
|
* @param {*} [options] Override http request option.
|
|
1670
3328
|
* @throws {RequiredError}
|
|
3329
|
+
* @memberof AgentApi
|
|
1671
3330
|
*/
|
|
1672
3331
|
updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
1673
3332
|
/**
|
|
@@ -1676,6 +3335,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1676
3335
|
* @param {AgentUpdate} [agentUpdate]
|
|
1677
3336
|
* @param {*} [options] Override http request option.
|
|
1678
3337
|
* @throws {RequiredError}
|
|
3338
|
+
* @memberof AgentApi
|
|
1679
3339
|
*/
|
|
1680
3340
|
validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1681
3341
|
/**
|
|
@@ -1685,11 +3345,13 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1685
3345
|
* @param {AgentUpdate} [agentUpdate]
|
|
1686
3346
|
* @param {*} [options] Override http request option.
|
|
1687
3347
|
* @throws {RequiredError}
|
|
3348
|
+
* @memberof AgentApi
|
|
1688
3349
|
*/
|
|
1689
3350
|
validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1690
3351
|
}
|
|
1691
3352
|
/**
|
|
1692
3353
|
* ChatApi - axios parameter creator
|
|
3354
|
+
* @export
|
|
1693
3355
|
*/
|
|
1694
3356
|
export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1695
3357
|
/**
|
|
@@ -1787,6 +3449,7 @@ export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
1787
3449
|
};
|
|
1788
3450
|
/**
|
|
1789
3451
|
* ChatApi - functional programming interface
|
|
3452
|
+
* @export
|
|
1790
3453
|
*/
|
|
1791
3454
|
export declare const ChatApiFp: (configuration?: Configuration) => {
|
|
1792
3455
|
/**
|
|
@@ -1884,6 +3547,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
|
|
|
1884
3547
|
};
|
|
1885
3548
|
/**
|
|
1886
3549
|
* ChatApi - factory interface
|
|
3550
|
+
* @export
|
|
1887
3551
|
*/
|
|
1888
3552
|
export declare const ChatApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1889
3553
|
/**
|
|
@@ -1981,6 +3645,9 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
|
|
|
1981
3645
|
};
|
|
1982
3646
|
/**
|
|
1983
3647
|
* ChatApi - object-oriented interface
|
|
3648
|
+
* @export
|
|
3649
|
+
* @class ChatApi
|
|
3650
|
+
* @extends {BaseAPI}
|
|
1984
3651
|
*/
|
|
1985
3652
|
export declare class ChatApi extends BaseAPI {
|
|
1986
3653
|
/**
|
|
@@ -1989,6 +3656,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
1989
3656
|
* @param {string} aid Agent ID
|
|
1990
3657
|
* @param {*} [options] Override http request option.
|
|
1991
3658
|
* @throws {RequiredError}
|
|
3659
|
+
* @memberof ChatApi
|
|
1992
3660
|
*/
|
|
1993
3661
|
createChatThread(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat, any>>;
|
|
1994
3662
|
/**
|
|
@@ -1998,6 +3666,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
1998
3666
|
* @param {string} chatId Chat ID
|
|
1999
3667
|
* @param {*} [options] Override http request option.
|
|
2000
3668
|
* @throws {RequiredError}
|
|
3669
|
+
* @memberof ChatApi
|
|
2001
3670
|
*/
|
|
2002
3671
|
deleteChatThread(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2003
3672
|
/**
|
|
@@ -2007,6 +3676,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2007
3676
|
* @param {string} chatId Chat ID
|
|
2008
3677
|
* @param {*} [options] Override http request option.
|
|
2009
3678
|
* @throws {RequiredError}
|
|
3679
|
+
* @memberof ChatApi
|
|
2010
3680
|
*/
|
|
2011
3681
|
getChatThreadById(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat, any>>;
|
|
2012
3682
|
/**
|
|
@@ -2015,6 +3685,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2015
3685
|
* @param {string} messageId Message ID
|
|
2016
3686
|
* @param {*} [options] Override http request option.
|
|
2017
3687
|
* @throws {RequiredError}
|
|
3688
|
+
* @memberof ChatApi
|
|
2018
3689
|
*/
|
|
2019
3690
|
getMessageById(messageId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage, any>>;
|
|
2020
3691
|
/**
|
|
@@ -2025,6 +3696,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2025
3696
|
* @param {number} [limit] Maximum number of messages to return
|
|
2026
3697
|
* @param {*} [options] Override http request option.
|
|
2027
3698
|
* @throws {RequiredError}
|
|
3699
|
+
* @memberof ChatApi
|
|
2028
3700
|
*/
|
|
2029
3701
|
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any>>;
|
|
2030
3702
|
/**
|
|
@@ -2033,6 +3705,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2033
3705
|
* @param {string} aid Agent ID
|
|
2034
3706
|
* @param {*} [options] Override http request option.
|
|
2035
3707
|
* @throws {RequiredError}
|
|
3708
|
+
* @memberof ChatApi
|
|
2036
3709
|
*/
|
|
2037
3710
|
listChatsForAgent(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat[], any>>;
|
|
2038
3711
|
/**
|
|
@@ -2044,6 +3717,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2044
3717
|
* @param {number} [limit] Maximum number of messages to return
|
|
2045
3718
|
* @param {*} [options] Override http request option.
|
|
2046
3719
|
* @throws {RequiredError}
|
|
3720
|
+
* @memberof ChatApi
|
|
2047
3721
|
*/
|
|
2048
3722
|
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any>>;
|
|
2049
3723
|
/**
|
|
@@ -2053,6 +3727,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2053
3727
|
* @param {string} chatId Chat ID
|
|
2054
3728
|
* @param {*} [options] Override http request option.
|
|
2055
3729
|
* @throws {RequiredError}
|
|
3730
|
+
* @memberof ChatApi
|
|
2056
3731
|
*/
|
|
2057
3732
|
retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage[], any>>;
|
|
2058
3733
|
/**
|
|
@@ -2063,6 +3738,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2063
3738
|
* @param {ChatMessageRequest} chatMessageRequest
|
|
2064
3739
|
* @param {*} [options] Override http request option.
|
|
2065
3740
|
* @throws {RequiredError}
|
|
3741
|
+
* @memberof ChatApi
|
|
2066
3742
|
*/
|
|
2067
3743
|
sendMessageToChat(aid: string, chatId: string, chatMessageRequest: ChatMessageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage[], any>>;
|
|
2068
3744
|
/**
|
|
@@ -2073,11 +3749,13 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2073
3749
|
* @param {ChatUpdateRequest} chatUpdateRequest
|
|
2074
3750
|
* @param {*} [options] Override http request option.
|
|
2075
3751
|
* @throws {RequiredError}
|
|
3752
|
+
* @memberof ChatApi
|
|
2076
3753
|
*/
|
|
2077
3754
|
updateChatThread(aid: string, chatId: string, chatUpdateRequest: ChatUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat, any>>;
|
|
2078
3755
|
}
|
|
2079
3756
|
/**
|
|
2080
3757
|
* CreditApi - axios parameter creator
|
|
3758
|
+
* @export
|
|
2081
3759
|
*/
|
|
2082
3760
|
export declare const CreditApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2083
3761
|
/**
|
|
@@ -2130,6 +3808,7 @@ export declare const CreditApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2130
3808
|
};
|
|
2131
3809
|
/**
|
|
2132
3810
|
* CreditApi - functional programming interface
|
|
3811
|
+
* @export
|
|
2133
3812
|
*/
|
|
2134
3813
|
export declare const CreditApiFp: (configuration?: Configuration) => {
|
|
2135
3814
|
/**
|
|
@@ -2182,6 +3861,7 @@ export declare const CreditApiFp: (configuration?: Configuration) => {
|
|
|
2182
3861
|
};
|
|
2183
3862
|
/**
|
|
2184
3863
|
* CreditApi - factory interface
|
|
3864
|
+
* @export
|
|
2185
3865
|
*/
|
|
2186
3866
|
export declare const CreditApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2187
3867
|
/**
|
|
@@ -2234,6 +3914,9 @@ export declare const CreditApiFactory: (configuration?: Configuration, basePath?
|
|
|
2234
3914
|
};
|
|
2235
3915
|
/**
|
|
2236
3916
|
* CreditApi - object-oriented interface
|
|
3917
|
+
* @export
|
|
3918
|
+
* @class CreditApi
|
|
3919
|
+
* @extends {BaseAPI}
|
|
2237
3920
|
*/
|
|
2238
3921
|
export declare class CreditApi extends BaseAPI {
|
|
2239
3922
|
/**
|
|
@@ -2242,6 +3925,7 @@ export declare class CreditApi extends BaseAPI {
|
|
|
2242
3925
|
* @param {string} eventId Credit event ID
|
|
2243
3926
|
* @param {*} [options] Override http request option.
|
|
2244
3927
|
* @throws {RequiredError}
|
|
3928
|
+
* @memberof CreditApi
|
|
2245
3929
|
*/
|
|
2246
3930
|
fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEvent, any>>;
|
|
2247
3931
|
/**
|
|
@@ -2249,6 +3933,7 @@ export declare class CreditApi extends BaseAPI {
|
|
|
2249
3933
|
* @summary Get User Account
|
|
2250
3934
|
* @param {*} [options] Override http request option.
|
|
2251
3935
|
* @throws {RequiredError}
|
|
3936
|
+
* @memberof CreditApi
|
|
2252
3937
|
*/
|
|
2253
3938
|
getUserAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditAccount, any>>;
|
|
2254
3939
|
/**
|
|
@@ -2259,6 +3944,7 @@ export declare class CreditApi extends BaseAPI {
|
|
|
2259
3944
|
* @param {number} [limit] Maximum number of events to return
|
|
2260
3945
|
* @param {*} [options] Override http request option.
|
|
2261
3946
|
* @throws {RequiredError}
|
|
3947
|
+
* @memberof CreditApi
|
|
2262
3948
|
*/
|
|
2263
3949
|
listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEventsResponse, any>>;
|
|
2264
3950
|
/**
|
|
@@ -2270,6 +3956,7 @@ export declare class CreditApi extends BaseAPI {
|
|
|
2270
3956
|
* @param {number} [limit] Maximum number of events to return
|
|
2271
3957
|
* @param {*} [options] Override http request option.
|
|
2272
3958
|
* @throws {RequiredError}
|
|
3959
|
+
* @memberof CreditApi
|
|
2273
3960
|
*/
|
|
2274
3961
|
listUserEvents(eventType?: Array<EventType> | null, direction?: Direction | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEventsResponse, any>>;
|
|
2275
3962
|
/**
|
|
@@ -2281,11 +3968,13 @@ export declare class CreditApi extends BaseAPI {
|
|
|
2281
3968
|
* @param {number} [limit] Maximum number of transactions to return
|
|
2282
3969
|
* @param {*} [options] Override http request option.
|
|
2283
3970
|
* @throws {RequiredError}
|
|
3971
|
+
* @memberof CreditApi
|
|
2284
3972
|
*/
|
|
2285
3973
|
listUserTransactions(txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditTransactionsResponse, any>>;
|
|
2286
3974
|
}
|
|
2287
3975
|
/**
|
|
2288
3976
|
* GeneratorApi - axios parameter creator
|
|
3977
|
+
* @export
|
|
2289
3978
|
*/
|
|
2290
3979
|
export declare const GeneratorApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2291
3980
|
/**
|
|
@@ -2315,6 +4004,7 @@ export declare const GeneratorApiAxiosParamCreator: (configuration?: Configurati
|
|
|
2315
4004
|
};
|
|
2316
4005
|
/**
|
|
2317
4006
|
* GeneratorApi - functional programming interface
|
|
4007
|
+
* @export
|
|
2318
4008
|
*/
|
|
2319
4009
|
export declare const GeneratorApiFp: (configuration?: Configuration) => {
|
|
2320
4010
|
/**
|
|
@@ -2344,6 +4034,7 @@ export declare const GeneratorApiFp: (configuration?: Configuration) => {
|
|
|
2344
4034
|
};
|
|
2345
4035
|
/**
|
|
2346
4036
|
* GeneratorApi - factory interface
|
|
4037
|
+
* @export
|
|
2347
4038
|
*/
|
|
2348
4039
|
export declare const GeneratorApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2349
4040
|
/**
|
|
@@ -2373,6 +4064,9 @@ export declare const GeneratorApiFactory: (configuration?: Configuration, basePa
|
|
|
2373
4064
|
};
|
|
2374
4065
|
/**
|
|
2375
4066
|
* GeneratorApi - object-oriented interface
|
|
4067
|
+
* @export
|
|
4068
|
+
* @class GeneratorApi
|
|
4069
|
+
* @extends {BaseAPI}
|
|
2376
4070
|
*/
|
|
2377
4071
|
export declare class GeneratorApi extends BaseAPI {
|
|
2378
4072
|
/**
|
|
@@ -2381,6 +4075,7 @@ export declare class GeneratorApi extends BaseAPI {
|
|
|
2381
4075
|
* @param {AgentGenerateRequest} agentGenerateRequest
|
|
2382
4076
|
* @param {*} [options] Override http request option.
|
|
2383
4077
|
* @throws {RequiredError}
|
|
4078
|
+
* @memberof GeneratorApi
|
|
2384
4079
|
*/
|
|
2385
4080
|
generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentGenerateResponse, any>>;
|
|
2386
4081
|
/**
|
|
@@ -2389,6 +4084,7 @@ export declare class GeneratorApi extends BaseAPI {
|
|
|
2389
4084
|
* @param {string} projectId
|
|
2390
4085
|
* @param {*} [options] Override http request option.
|
|
2391
4086
|
* @throws {RequiredError}
|
|
4087
|
+
* @memberof GeneratorApi
|
|
2392
4088
|
*/
|
|
2393
4089
|
getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerationDetailResponse, any>>;
|
|
2394
4090
|
/**
|
|
@@ -2397,11 +4093,13 @@ export declare class GeneratorApi extends BaseAPI {
|
|
|
2397
4093
|
* @param {number} [limit]
|
|
2398
4094
|
* @param {*} [options] Override http request option.
|
|
2399
4095
|
* @throws {RequiredError}
|
|
4096
|
+
* @memberof GeneratorApi
|
|
2400
4097
|
*/
|
|
2401
4098
|
getGenerations(limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerationsListResponse, any>>;
|
|
2402
4099
|
}
|
|
2403
4100
|
/**
|
|
2404
4101
|
* HealthApi - axios parameter creator
|
|
4102
|
+
* @export
|
|
2405
4103
|
*/
|
|
2406
4104
|
export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2407
4105
|
/**
|
|
@@ -2414,6 +4112,7 @@ export declare const HealthApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2414
4112
|
};
|
|
2415
4113
|
/**
|
|
2416
4114
|
* HealthApi - functional programming interface
|
|
4115
|
+
* @export
|
|
2417
4116
|
*/
|
|
2418
4117
|
export declare const HealthApiFp: (configuration?: Configuration) => {
|
|
2419
4118
|
/**
|
|
@@ -2426,6 +4125,7 @@ export declare const HealthApiFp: (configuration?: Configuration) => {
|
|
|
2426
4125
|
};
|
|
2427
4126
|
/**
|
|
2428
4127
|
* HealthApi - factory interface
|
|
4128
|
+
* @export
|
|
2429
4129
|
*/
|
|
2430
4130
|
export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2431
4131
|
/**
|
|
@@ -2438,6 +4138,9 @@ export declare const HealthApiFactory: (configuration?: Configuration, basePath?
|
|
|
2438
4138
|
};
|
|
2439
4139
|
/**
|
|
2440
4140
|
* HealthApi - object-oriented interface
|
|
4141
|
+
* @export
|
|
4142
|
+
* @class HealthApi
|
|
4143
|
+
* @extends {BaseAPI}
|
|
2441
4144
|
*/
|
|
2442
4145
|
export declare class HealthApi extends BaseAPI {
|
|
2443
4146
|
/**
|
|
@@ -2445,11 +4148,13 @@ export declare class HealthApi extends BaseAPI {
|
|
|
2445
4148
|
* @summary Health check endpoint
|
|
2446
4149
|
* @param {*} [options] Override http request option.
|
|
2447
4150
|
* @throws {RequiredError}
|
|
4151
|
+
* @memberof HealthApi
|
|
2448
4152
|
*/
|
|
2449
4153
|
healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2450
4154
|
}
|
|
2451
4155
|
/**
|
|
2452
4156
|
* MetadataApi - axios parameter creator
|
|
4157
|
+
* @export
|
|
2453
4158
|
*/
|
|
2454
4159
|
export declare const MetadataApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2455
4160
|
/**
|
|
@@ -2494,6 +4199,7 @@ export declare const MetadataApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2494
4199
|
};
|
|
2495
4200
|
/**
|
|
2496
4201
|
* MetadataApi - functional programming interface
|
|
4202
|
+
* @export
|
|
2497
4203
|
*/
|
|
2498
4204
|
export declare const MetadataApiFp: (configuration?: Configuration) => {
|
|
2499
4205
|
/**
|
|
@@ -2538,6 +4244,7 @@ export declare const MetadataApiFp: (configuration?: Configuration) => {
|
|
|
2538
4244
|
};
|
|
2539
4245
|
/**
|
|
2540
4246
|
* MetadataApi - factory interface
|
|
4247
|
+
* @export
|
|
2541
4248
|
*/
|
|
2542
4249
|
export declare const MetadataApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2543
4250
|
/**
|
|
@@ -2582,6 +4289,9 @@ export declare const MetadataApiFactory: (configuration?: Configuration, basePat
|
|
|
2582
4289
|
};
|
|
2583
4290
|
/**
|
|
2584
4291
|
* MetadataApi - object-oriented interface
|
|
4292
|
+
* @export
|
|
4293
|
+
* @class MetadataApi
|
|
4294
|
+
* @extends {BaseAPI}
|
|
2585
4295
|
*/
|
|
2586
4296
|
export declare class MetadataApi extends BaseAPI {
|
|
2587
4297
|
/**
|
|
@@ -2589,6 +4299,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
2589
4299
|
* @summary Get agent schema
|
|
2590
4300
|
* @param {*} [options] Override http request option.
|
|
2591
4301
|
* @throws {RequiredError}
|
|
4302
|
+
* @memberof MetadataApi
|
|
2592
4303
|
*/
|
|
2593
4304
|
getAgentSchema(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2594
4305
|
/**
|
|
@@ -2596,6 +4307,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
2596
4307
|
* @summary Get all LLM models
|
|
2597
4308
|
* @param {*} [options] Override http request option.
|
|
2598
4309
|
* @throws {RequiredError}
|
|
4310
|
+
* @memberof MetadataApi
|
|
2599
4311
|
*/
|
|
2600
4312
|
getLlms(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LLMModelInfoWithProviderName[], any>>;
|
|
2601
4313
|
/**
|
|
@@ -2606,6 +4318,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
2606
4318
|
* @param {string} ext Icon file extension
|
|
2607
4319
|
* @param {*} [options] Override http request option.
|
|
2608
4320
|
* @throws {RequiredError}
|
|
4321
|
+
* @memberof MetadataApi
|
|
2609
4322
|
*/
|
|
2610
4323
|
getSkillIcon(skill: string, iconName: string, ext: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2611
4324
|
/**
|
|
@@ -2614,6 +4327,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
2614
4327
|
* @param {string} skill Skill name
|
|
2615
4328
|
* @param {*} [options] Override http request option.
|
|
2616
4329
|
* @throws {RequiredError}
|
|
4330
|
+
* @memberof MetadataApi
|
|
2617
4331
|
*/
|
|
2618
4332
|
getSkillSchema(skill: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2619
4333
|
/**
|
|
@@ -2621,11 +4335,13 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
2621
4335
|
* @summary Get all skills
|
|
2622
4336
|
* @param {*} [options] Override http request option.
|
|
2623
4337
|
* @throws {RequiredError}
|
|
4338
|
+
* @memberof MetadataApi
|
|
2624
4339
|
*/
|
|
2625
4340
|
getSkills(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Skill[], any>>;
|
|
2626
4341
|
}
|
|
2627
4342
|
/**
|
|
2628
4343
|
* OAuthApi - axios parameter creator
|
|
4344
|
+
* @export
|
|
2629
4345
|
*/
|
|
2630
4346
|
export declare const OAuthApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2631
4347
|
/**
|
|
@@ -2658,6 +4374,7 @@ export declare const OAuthApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2658
4374
|
};
|
|
2659
4375
|
/**
|
|
2660
4376
|
* OAuthApi - functional programming interface
|
|
4377
|
+
* @export
|
|
2661
4378
|
*/
|
|
2662
4379
|
export declare const OAuthApiFp: (configuration?: Configuration) => {
|
|
2663
4380
|
/**
|
|
@@ -2690,6 +4407,7 @@ export declare const OAuthApiFp: (configuration?: Configuration) => {
|
|
|
2690
4407
|
};
|
|
2691
4408
|
/**
|
|
2692
4409
|
* OAuthApi - factory interface
|
|
4410
|
+
* @export
|
|
2693
4411
|
*/
|
|
2694
4412
|
export declare const OAuthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2695
4413
|
/**
|
|
@@ -2722,6 +4440,9 @@ export declare const OAuthApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2722
4440
|
};
|
|
2723
4441
|
/**
|
|
2724
4442
|
* OAuthApi - object-oriented interface
|
|
4443
|
+
* @export
|
|
4444
|
+
* @class OAuthApi
|
|
4445
|
+
* @extends {BaseAPI}
|
|
2725
4446
|
*/
|
|
2726
4447
|
export declare class OAuthApi extends BaseAPI {
|
|
2727
4448
|
/**
|
|
@@ -2731,6 +4452,7 @@ export declare class OAuthApi extends BaseAPI {
|
|
|
2731
4452
|
* @param {string} redirectUri
|
|
2732
4453
|
* @param {*} [options] Override http request option.
|
|
2733
4454
|
* @throws {RequiredError}
|
|
4455
|
+
* @memberof OAuthApi
|
|
2734
4456
|
*/
|
|
2735
4457
|
getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TwitterAuthResponse, any>>;
|
|
2736
4458
|
/**
|
|
@@ -2741,6 +4463,7 @@ export declare class OAuthApi extends BaseAPI {
|
|
|
2741
4463
|
* @param {string | null} [error]
|
|
2742
4464
|
* @param {*} [options] Override http request option.
|
|
2743
4465
|
* @throws {RequiredError}
|
|
4466
|
+
* @memberof OAuthApi
|
|
2744
4467
|
*/
|
|
2745
4468
|
twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2746
4469
|
/**
|
|
@@ -2749,11 +4472,13 @@ export declare class OAuthApi extends BaseAPI {
|
|
|
2749
4472
|
* @param {string} agentId ID of the agent to unlink from X
|
|
2750
4473
|
* @param {*} [options] Override http request option.
|
|
2751
4474
|
* @throws {RequiredError}
|
|
4475
|
+
* @memberof OAuthApi
|
|
2752
4476
|
*/
|
|
2753
4477
|
unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2754
4478
|
}
|
|
2755
4479
|
/**
|
|
2756
4480
|
* UserApi - axios parameter creator
|
|
4481
|
+
* @export
|
|
2757
4482
|
*/
|
|
2758
4483
|
export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2759
4484
|
/**
|
|
@@ -2776,6 +4501,7 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
2776
4501
|
};
|
|
2777
4502
|
/**
|
|
2778
4503
|
* UserApi - functional programming interface
|
|
4504
|
+
* @export
|
|
2779
4505
|
*/
|
|
2780
4506
|
export declare const UserApiFp: (configuration?: Configuration) => {
|
|
2781
4507
|
/**
|
|
@@ -2798,6 +4524,7 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
2798
4524
|
};
|
|
2799
4525
|
/**
|
|
2800
4526
|
* UserApi - factory interface
|
|
4527
|
+
* @export
|
|
2801
4528
|
*/
|
|
2802
4529
|
export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2803
4530
|
/**
|
|
@@ -2820,6 +4547,9 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2820
4547
|
};
|
|
2821
4548
|
/**
|
|
2822
4549
|
* UserApi - object-oriented interface
|
|
4550
|
+
* @export
|
|
4551
|
+
* @class UserApi
|
|
4552
|
+
* @extends {BaseAPI}
|
|
2823
4553
|
*/
|
|
2824
4554
|
export declare class UserApi extends BaseAPI {
|
|
2825
4555
|
/**
|
|
@@ -2828,6 +4558,7 @@ export declare class UserApi extends BaseAPI {
|
|
|
2828
4558
|
* @param {string} agentId Agent ID
|
|
2829
4559
|
* @param {*} [options] Override http request option.
|
|
2830
4560
|
* @throws {RequiredError}
|
|
4561
|
+
* @memberof UserApi
|
|
2831
4562
|
*/
|
|
2832
4563
|
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Agent, any>>;
|
|
2833
4564
|
/**
|
|
@@ -2837,6 +4568,7 @@ export declare class UserApi extends BaseAPI {
|
|
|
2837
4568
|
* @param {number} [limit] Maximum number of agents to return
|
|
2838
4569
|
* @param {*} [options] Override http request option.
|
|
2839
4570
|
* @throws {RequiredError}
|
|
4571
|
+
* @memberof UserApi
|
|
2840
4572
|
*/
|
|
2841
4573
|
getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any>>;
|
|
2842
4574
|
}
|