@crestal/nation-sdk 0.7.2 → 0.7.3
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/FILES +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +4 -2
- package/api.ts +94 -2117
- package/base.ts +1 -25
- package/common.ts +1 -38
- package/configuration.ts +1 -18
- package/dist/api.d.ts +46 -2116
- package/dist/api.js +97 -130
- package/dist/base.d.ts +1 -25
- package/dist/base.js +1 -20
- package/dist/common.d.ts +1 -38
- package/dist/common.js +1 -38
- package/dist/configuration.d.ts +1 -18
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/Agent.md +2 -2
- package/docs/AgentResponse.md +2 -2
- package/docs/FileUploadResponse.md +23 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/UserApi.md +53 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Nation IntentKit API
|
|
5
5
|
* API for Nation IntentKit services
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.7.
|
|
7
|
+
* The version of the OpenAPI document: 0.7.3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -25,254 +25,59 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerM
|
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Agent model.
|
|
28
|
-
* @export
|
|
29
|
-
* @interface Agent
|
|
30
28
|
*/
|
|
31
29
|
export interface Agent {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof Agent
|
|
36
|
-
*/
|
|
37
30
|
'description'?: string | null;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof Agent
|
|
42
|
-
*/
|
|
43
31
|
'external_website'?: string | null;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof Agent
|
|
48
|
-
*/
|
|
49
32
|
'ticker'?: string | null;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof Agent
|
|
54
|
-
*/
|
|
55
33
|
'token_address'?: string | null;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof Agent
|
|
60
|
-
*/
|
|
61
34
|
'token_pool'?: string | null;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof Agent
|
|
66
|
-
*/
|
|
67
35
|
'fee_percentage'?: string | null;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof Agent
|
|
72
|
-
*/
|
|
73
36
|
'example_intro'?: string | null;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {Array<AgentExample>}
|
|
77
|
-
* @memberof Agent
|
|
78
|
-
*/
|
|
79
37
|
'examples'?: Array<AgentExample> | null;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {string}
|
|
83
|
-
* @memberof Agent
|
|
84
|
-
*/
|
|
85
38
|
'name': string | null;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @type {string}
|
|
89
|
-
* @memberof Agent
|
|
90
|
-
*/
|
|
91
39
|
'picture'?: string | null;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @type {string}
|
|
95
|
-
* @memberof Agent
|
|
96
|
-
*/
|
|
97
40
|
'purpose'?: string | null;
|
|
98
|
-
/**
|
|
99
|
-
*
|
|
100
|
-
* @type {string}
|
|
101
|
-
* @memberof Agent
|
|
102
|
-
*/
|
|
103
41
|
'personality'?: string | null;
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @type {string}
|
|
107
|
-
* @memberof Agent
|
|
108
|
-
*/
|
|
109
42
|
'principles'?: string | null;
|
|
110
43
|
/**
|
|
111
44
|
* AI model identifier to be used by this agent for processing requests.
|
|
112
|
-
* @type {string}
|
|
113
|
-
* @memberof Agent
|
|
114
45
|
*/
|
|
115
46
|
'model'?: string;
|
|
116
|
-
/**
|
|
117
|
-
*
|
|
118
|
-
* @type {string}
|
|
119
|
-
* @memberof Agent
|
|
120
|
-
*/
|
|
121
47
|
'prompt'?: string | null;
|
|
122
|
-
/**
|
|
123
|
-
*
|
|
124
|
-
* @type {string}
|
|
125
|
-
* @memberof Agent
|
|
126
|
-
*/
|
|
127
48
|
'prompt_append'?: string | null;
|
|
128
|
-
/**
|
|
129
|
-
*
|
|
130
|
-
* @type {number}
|
|
131
|
-
* @memberof Agent
|
|
132
|
-
*/
|
|
133
49
|
'temperature'?: number | null;
|
|
134
|
-
/**
|
|
135
|
-
*
|
|
136
|
-
* @type {number}
|
|
137
|
-
* @memberof Agent
|
|
138
|
-
*/
|
|
139
50
|
'frequency_penalty'?: number | null;
|
|
140
|
-
/**
|
|
141
|
-
*
|
|
142
|
-
* @type {number}
|
|
143
|
-
* @memberof Agent
|
|
144
|
-
*/
|
|
145
51
|
'presence_penalty'?: number | null;
|
|
146
|
-
/**
|
|
147
|
-
*
|
|
148
|
-
* @type {string}
|
|
149
|
-
* @memberof Agent
|
|
150
|
-
*/
|
|
151
52
|
'wallet_provider'?: AgentWalletProviderEnum | null;
|
|
152
|
-
/**
|
|
153
|
-
*
|
|
154
|
-
* @type {string}
|
|
155
|
-
* @memberof Agent
|
|
156
|
-
*/
|
|
157
53
|
'readonly_wallet_address'?: string | null;
|
|
158
|
-
/**
|
|
159
|
-
*
|
|
160
|
-
* @type {string}
|
|
161
|
-
* @memberof Agent
|
|
162
|
-
*/
|
|
163
54
|
'network_id'?: AgentNetworkIdEnum | null;
|
|
164
|
-
/**
|
|
165
|
-
*
|
|
166
|
-
* @type {object}
|
|
167
|
-
* @memberof Agent
|
|
168
|
-
*/
|
|
169
55
|
'skills'?: object | null;
|
|
170
|
-
/**
|
|
171
|
-
*
|
|
172
|
-
* @type {string}
|
|
173
|
-
* @memberof Agent
|
|
174
|
-
*/
|
|
175
56
|
'short_term_memory_strategy'?: AgentShortTermMemoryStrategyEnum | null;
|
|
176
|
-
/**
|
|
177
|
-
*
|
|
178
|
-
* @type {Array<AgentAutonomous>}
|
|
179
|
-
* @memberof Agent
|
|
180
|
-
*/
|
|
181
57
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
182
|
-
/**
|
|
183
|
-
*
|
|
184
|
-
* @type {boolean}
|
|
185
|
-
* @memberof Agent
|
|
186
|
-
*/
|
|
187
58
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
188
|
-
/**
|
|
189
|
-
*
|
|
190
|
-
* @type {string}
|
|
191
|
-
* @memberof Agent
|
|
192
|
-
*/
|
|
193
59
|
'telegram_entrypoint_prompt'?: string | null;
|
|
194
|
-
/**
|
|
195
|
-
*
|
|
196
|
-
* @type {object}
|
|
197
|
-
* @memberof Agent
|
|
198
|
-
*/
|
|
199
60
|
'telegram_config'?: object | null;
|
|
200
|
-
/**
|
|
201
|
-
*
|
|
202
|
-
* @type {string}
|
|
203
|
-
* @memberof Agent
|
|
204
|
-
*/
|
|
205
61
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
206
|
-
/**
|
|
207
|
-
*
|
|
208
|
-
* @type {string}
|
|
209
|
-
* @memberof Agent
|
|
210
|
-
*/
|
|
211
62
|
'upstream_id'?: string | null;
|
|
212
|
-
/**
|
|
213
|
-
*
|
|
214
|
-
* @type {object}
|
|
215
|
-
* @memberof Agent
|
|
216
|
-
*/
|
|
217
63
|
'upstream_extra'?: object | null;
|
|
218
64
|
/**
|
|
219
65
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
220
|
-
* @type {string}
|
|
221
|
-
* @memberof Agent
|
|
222
66
|
*/
|
|
223
67
|
'id'?: string;
|
|
224
|
-
/**
|
|
225
|
-
*
|
|
226
|
-
* @type {string}
|
|
227
|
-
* @memberof Agent
|
|
228
|
-
*/
|
|
229
68
|
'owner'?: string | null;
|
|
230
|
-
/**
|
|
231
|
-
*
|
|
232
|
-
* @type {string}
|
|
233
|
-
* @memberof Agent
|
|
234
|
-
*/
|
|
235
69
|
'slug'?: string | null;
|
|
236
|
-
/**
|
|
237
|
-
*
|
|
238
|
-
* @type {string}
|
|
239
|
-
* @memberof Agent
|
|
240
|
-
*/
|
|
241
70
|
'version'?: string | null;
|
|
242
|
-
/**
|
|
243
|
-
*
|
|
244
|
-
* @type {object}
|
|
245
|
-
* @memberof Agent
|
|
246
|
-
*/
|
|
247
71
|
'statistics'?: object | null;
|
|
248
|
-
/**
|
|
249
|
-
*
|
|
250
|
-
* @type {object}
|
|
251
|
-
* @memberof Agent
|
|
252
|
-
*/
|
|
253
72
|
'assets'?: object | null;
|
|
254
|
-
/**
|
|
255
|
-
*
|
|
256
|
-
* @type {CreditAccount}
|
|
257
|
-
* @memberof Agent
|
|
258
|
-
*/
|
|
259
73
|
'account_snapshot'?: CreditAccount | null;
|
|
260
|
-
/**
|
|
261
|
-
*
|
|
262
|
-
* @type {object}
|
|
263
|
-
* @memberof Agent
|
|
264
|
-
*/
|
|
265
74
|
'extra'?: object | null;
|
|
266
75
|
/**
|
|
267
76
|
* Timestamp when the agent was created, will ignore when importing
|
|
268
|
-
* @type {string}
|
|
269
|
-
* @memberof Agent
|
|
270
77
|
*/
|
|
271
78
|
'created_at'?: string;
|
|
272
79
|
/**
|
|
273
80
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
274
|
-
* @type {string}
|
|
275
|
-
* @memberof Agent
|
|
276
81
|
*/
|
|
277
82
|
'updated_at'?: string;
|
|
278
83
|
}
|
|
@@ -307,306 +112,107 @@ export type AgentShortTermMemoryStrategyEnum = typeof AgentShortTermMemoryStrate
|
|
|
307
112
|
|
|
308
113
|
/**
|
|
309
114
|
* Response model for agent API key generation.
|
|
310
|
-
* @export
|
|
311
|
-
* @interface AgentApiKeyResponse
|
|
312
115
|
*/
|
|
313
116
|
export interface AgentApiKeyResponse {
|
|
314
117
|
/**
|
|
315
118
|
* The private API key for the agent (sk-)
|
|
316
|
-
* @type {string}
|
|
317
|
-
* @memberof AgentApiKeyResponse
|
|
318
119
|
*/
|
|
319
120
|
'api_key': string;
|
|
320
121
|
/**
|
|
321
122
|
* The public API key for the agent (pk-)
|
|
322
|
-
* @type {string}
|
|
323
|
-
* @memberof AgentApiKeyResponse
|
|
324
123
|
*/
|
|
325
124
|
'api_key_public': string;
|
|
326
125
|
/**
|
|
327
126
|
* The base URL for the API
|
|
328
|
-
* @type {string}
|
|
329
|
-
* @memberof AgentApiKeyResponse
|
|
330
127
|
*/
|
|
331
128
|
'base_url': string;
|
|
332
129
|
/**
|
|
333
130
|
* API documentation URL
|
|
334
|
-
* @type {string}
|
|
335
|
-
* @memberof AgentApiKeyResponse
|
|
336
131
|
*/
|
|
337
132
|
'api_doc': string;
|
|
338
133
|
/**
|
|
339
134
|
* OpenAPI JSON URL for AI integration
|
|
340
|
-
* @type {string}
|
|
341
|
-
* @memberof AgentApiKeyResponse
|
|
342
135
|
*/
|
|
343
136
|
'doc_for_ai': string;
|
|
344
137
|
}
|
|
345
138
|
/**
|
|
346
139
|
* Response model for agent assets.
|
|
347
|
-
* @export
|
|
348
|
-
* @interface AgentAssetsResponse
|
|
349
140
|
*/
|
|
350
141
|
export interface AgentAssetsResponse {
|
|
351
142
|
/**
|
|
352
143
|
* ID of the agent
|
|
353
|
-
* @type {string}
|
|
354
|
-
* @memberof AgentAssetsResponse
|
|
355
144
|
*/
|
|
356
145
|
'agent_id': string;
|
|
357
|
-
/**
|
|
358
|
-
*
|
|
359
|
-
* @type {string}
|
|
360
|
-
* @memberof AgentAssetsResponse
|
|
361
|
-
*/
|
|
362
146
|
'network_id': string | null;
|
|
363
|
-
/**
|
|
364
|
-
*
|
|
365
|
-
* @type {string}
|
|
366
|
-
* @memberof AgentAssetsResponse
|
|
367
|
-
*/
|
|
368
147
|
'wallet_address': string | null;
|
|
369
|
-
/**
|
|
370
|
-
*
|
|
371
|
-
* @type {string}
|
|
372
|
-
* @memberof AgentAssetsResponse
|
|
373
|
-
*/
|
|
374
148
|
'ticker': string | null;
|
|
375
|
-
/**
|
|
376
|
-
*
|
|
377
|
-
* @type {string}
|
|
378
|
-
* @memberof AgentAssetsResponse
|
|
379
|
-
*/
|
|
380
149
|
'token_address': string | null;
|
|
381
|
-
/**
|
|
382
|
-
*
|
|
383
|
-
* @type {string}
|
|
384
|
-
* @memberof AgentAssetsResponse
|
|
385
|
-
*/
|
|
386
150
|
'token_pool': string | null;
|
|
387
151
|
/**
|
|
388
152
|
* Total value locked, set to 0 for this version
|
|
389
|
-
* @type {string}
|
|
390
|
-
* @memberof AgentAssetsResponse
|
|
391
153
|
*/
|
|
392
154
|
'tvl'?: string;
|
|
393
155
|
/**
|
|
394
156
|
* List of assets with symbol and balance
|
|
395
|
-
* @type {Array<Asset>}
|
|
396
|
-
* @memberof AgentAssetsResponse
|
|
397
157
|
*/
|
|
398
158
|
'assets': Array<Asset>;
|
|
399
159
|
/**
|
|
400
160
|
* Credit account information
|
|
401
|
-
* @type {CreditAccount}
|
|
402
|
-
* @memberof AgentAssetsResponse
|
|
403
161
|
*/
|
|
404
162
|
'account': CreditAccount;
|
|
405
163
|
}
|
|
406
164
|
/**
|
|
407
165
|
* Autonomous agent configuration.
|
|
408
|
-
* @export
|
|
409
|
-
* @interface AgentAutonomous
|
|
410
166
|
*/
|
|
411
167
|
export interface AgentAutonomous {
|
|
412
168
|
/**
|
|
413
169
|
* Unique identifier for the autonomous configuration
|
|
414
|
-
* @type {string}
|
|
415
|
-
* @memberof AgentAutonomous
|
|
416
170
|
*/
|
|
417
171
|
'id'?: string;
|
|
418
|
-
/**
|
|
419
|
-
*
|
|
420
|
-
* @type {string}
|
|
421
|
-
* @memberof AgentAutonomous
|
|
422
|
-
*/
|
|
423
172
|
'name'?: string | null;
|
|
424
|
-
/**
|
|
425
|
-
*
|
|
426
|
-
* @type {string}
|
|
427
|
-
* @memberof AgentAutonomous
|
|
428
|
-
*/
|
|
429
173
|
'description'?: string | null;
|
|
430
|
-
/**
|
|
431
|
-
*
|
|
432
|
-
* @type {number}
|
|
433
|
-
* @memberof AgentAutonomous
|
|
434
|
-
*/
|
|
435
174
|
'minutes'?: number | null;
|
|
436
|
-
/**
|
|
437
|
-
*
|
|
438
|
-
* @type {string}
|
|
439
|
-
* @memberof AgentAutonomous
|
|
440
|
-
*/
|
|
441
175
|
'cron'?: string | null;
|
|
442
176
|
/**
|
|
443
177
|
* Special prompt used during autonomous operation
|
|
444
|
-
* @type {string}
|
|
445
|
-
* @memberof AgentAutonomous
|
|
446
178
|
*/
|
|
447
179
|
'prompt': string;
|
|
448
|
-
/**
|
|
449
|
-
*
|
|
450
|
-
* @type {boolean}
|
|
451
|
-
* @memberof AgentAutonomous
|
|
452
|
-
*/
|
|
453
180
|
'enabled'?: boolean | null;
|
|
454
181
|
}
|
|
455
182
|
/**
|
|
456
183
|
* Agent create model.
|
|
457
|
-
* @export
|
|
458
|
-
* @interface AgentCreate
|
|
459
184
|
*/
|
|
460
185
|
export interface AgentCreate {
|
|
461
|
-
/**
|
|
462
|
-
*
|
|
463
|
-
* @type {string}
|
|
464
|
-
* @memberof AgentCreate
|
|
465
|
-
*/
|
|
466
186
|
'name': string | null;
|
|
467
|
-
/**
|
|
468
|
-
*
|
|
469
|
-
* @type {string}
|
|
470
|
-
* @memberof AgentCreate
|
|
471
|
-
*/
|
|
472
187
|
'picture'?: string | null;
|
|
473
|
-
/**
|
|
474
|
-
*
|
|
475
|
-
* @type {string}
|
|
476
|
-
* @memberof AgentCreate
|
|
477
|
-
*/
|
|
478
188
|
'purpose'?: string | null;
|
|
479
|
-
/**
|
|
480
|
-
*
|
|
481
|
-
* @type {string}
|
|
482
|
-
* @memberof AgentCreate
|
|
483
|
-
*/
|
|
484
189
|
'personality'?: string | null;
|
|
485
|
-
/**
|
|
486
|
-
*
|
|
487
|
-
* @type {string}
|
|
488
|
-
* @memberof AgentCreate
|
|
489
|
-
*/
|
|
490
190
|
'principles'?: string | null;
|
|
491
191
|
/**
|
|
492
192
|
* AI model identifier to be used by this agent for processing requests.
|
|
493
|
-
* @type {string}
|
|
494
|
-
* @memberof AgentCreate
|
|
495
193
|
*/
|
|
496
194
|
'model'?: string;
|
|
497
|
-
/**
|
|
498
|
-
*
|
|
499
|
-
* @type {string}
|
|
500
|
-
* @memberof AgentCreate
|
|
501
|
-
*/
|
|
502
195
|
'prompt'?: string | null;
|
|
503
|
-
/**
|
|
504
|
-
*
|
|
505
|
-
* @type {string}
|
|
506
|
-
* @memberof AgentCreate
|
|
507
|
-
*/
|
|
508
196
|
'prompt_append'?: string | null;
|
|
509
|
-
/**
|
|
510
|
-
*
|
|
511
|
-
* @type {number}
|
|
512
|
-
* @memberof AgentCreate
|
|
513
|
-
*/
|
|
514
197
|
'temperature'?: number | null;
|
|
515
|
-
/**
|
|
516
|
-
*
|
|
517
|
-
* @type {number}
|
|
518
|
-
* @memberof AgentCreate
|
|
519
|
-
*/
|
|
520
198
|
'frequency_penalty'?: number | null;
|
|
521
|
-
/**
|
|
522
|
-
*
|
|
523
|
-
* @type {number}
|
|
524
|
-
* @memberof AgentCreate
|
|
525
|
-
*/
|
|
526
199
|
'presence_penalty'?: number | null;
|
|
527
|
-
/**
|
|
528
|
-
*
|
|
529
|
-
* @type {string}
|
|
530
|
-
* @memberof AgentCreate
|
|
531
|
-
*/
|
|
532
200
|
'wallet_provider'?: AgentCreateWalletProviderEnum | null;
|
|
533
|
-
/**
|
|
534
|
-
*
|
|
535
|
-
* @type {string}
|
|
536
|
-
* @memberof AgentCreate
|
|
537
|
-
*/
|
|
538
201
|
'readonly_wallet_address'?: string | null;
|
|
539
|
-
/**
|
|
540
|
-
*
|
|
541
|
-
* @type {string}
|
|
542
|
-
* @memberof AgentCreate
|
|
543
|
-
*/
|
|
544
202
|
'network_id'?: AgentCreateNetworkIdEnum | null;
|
|
545
|
-
/**
|
|
546
|
-
*
|
|
547
|
-
* @type {object}
|
|
548
|
-
* @memberof AgentCreate
|
|
549
|
-
*/
|
|
550
203
|
'skills'?: object | null;
|
|
551
|
-
/**
|
|
552
|
-
*
|
|
553
|
-
* @type {string}
|
|
554
|
-
* @memberof AgentCreate
|
|
555
|
-
*/
|
|
556
204
|
'short_term_memory_strategy'?: AgentCreateShortTermMemoryStrategyEnum | null;
|
|
557
|
-
/**
|
|
558
|
-
*
|
|
559
|
-
* @type {Array<AgentAutonomous>}
|
|
560
|
-
* @memberof AgentCreate
|
|
561
|
-
*/
|
|
562
205
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
563
|
-
/**
|
|
564
|
-
*
|
|
565
|
-
* @type {boolean}
|
|
566
|
-
* @memberof AgentCreate
|
|
567
|
-
*/
|
|
568
206
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
569
|
-
/**
|
|
570
|
-
*
|
|
571
|
-
* @type {string}
|
|
572
|
-
* @memberof AgentCreate
|
|
573
|
-
*/
|
|
574
207
|
'telegram_entrypoint_prompt'?: string | null;
|
|
575
|
-
/**
|
|
576
|
-
*
|
|
577
|
-
* @type {object}
|
|
578
|
-
* @memberof AgentCreate
|
|
579
|
-
*/
|
|
580
208
|
'telegram_config'?: object | null;
|
|
581
|
-
/**
|
|
582
|
-
*
|
|
583
|
-
* @type {string}
|
|
584
|
-
* @memberof AgentCreate
|
|
585
|
-
*/
|
|
586
209
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
587
|
-
/**
|
|
588
|
-
*
|
|
589
|
-
* @type {string}
|
|
590
|
-
* @memberof AgentCreate
|
|
591
|
-
*/
|
|
592
210
|
'upstream_id'?: string | null;
|
|
593
|
-
/**
|
|
594
|
-
*
|
|
595
|
-
* @type {object}
|
|
596
|
-
* @memberof AgentCreate
|
|
597
|
-
*/
|
|
598
211
|
'upstream_extra'?: object | null;
|
|
599
212
|
/**
|
|
600
213
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
601
|
-
* @type {string}
|
|
602
|
-
* @memberof AgentCreate
|
|
603
214
|
*/
|
|
604
215
|
'id'?: string;
|
|
605
|
-
/**
|
|
606
|
-
*
|
|
607
|
-
* @type {string}
|
|
608
|
-
* @memberof AgentCreate
|
|
609
|
-
*/
|
|
610
216
|
'owner'?: string | null;
|
|
611
217
|
}
|
|
612
218
|
|
|
@@ -640,201 +246,66 @@ export type AgentCreateShortTermMemoryStrategyEnum = typeof AgentCreateShortTerm
|
|
|
640
246
|
|
|
641
247
|
/**
|
|
642
248
|
* Request model for agent deployment.
|
|
643
|
-
* @export
|
|
644
|
-
* @interface AgentDeployRequest
|
|
645
249
|
*/
|
|
646
250
|
export interface AgentDeployRequest {
|
|
647
251
|
/**
|
|
648
252
|
* Agent ID to deploy
|
|
649
|
-
* @type {string}
|
|
650
|
-
* @memberof AgentDeployRequest
|
|
651
253
|
*/
|
|
652
254
|
'agent_id': string;
|
|
653
255
|
/**
|
|
654
256
|
* Draft ID to deploy
|
|
655
|
-
* @type {string}
|
|
656
|
-
* @memberof AgentDeployRequest
|
|
657
257
|
*/
|
|
658
258
|
'draft_id': string;
|
|
659
259
|
/**
|
|
660
260
|
* Transaction ID for upstream tracking
|
|
661
|
-
* @type {string}
|
|
662
|
-
* @memberof AgentDeployRequest
|
|
663
261
|
*/
|
|
664
262
|
'tx_id': string;
|
|
665
263
|
}
|
|
666
264
|
/**
|
|
667
265
|
* Agent draft model.
|
|
668
|
-
* @export
|
|
669
|
-
* @interface AgentDraft
|
|
670
266
|
*/
|
|
671
267
|
export interface AgentDraft {
|
|
672
|
-
/**
|
|
673
|
-
*
|
|
674
|
-
* @type {string}
|
|
675
|
-
* @memberof AgentDraft
|
|
676
|
-
*/
|
|
677
268
|
'name': string | null;
|
|
678
|
-
/**
|
|
679
|
-
*
|
|
680
|
-
* @type {string}
|
|
681
|
-
* @memberof AgentDraft
|
|
682
|
-
*/
|
|
683
269
|
'picture'?: string | null;
|
|
684
|
-
/**
|
|
685
|
-
*
|
|
686
|
-
* @type {string}
|
|
687
|
-
* @memberof AgentDraft
|
|
688
|
-
*/
|
|
689
270
|
'purpose'?: string | null;
|
|
690
|
-
/**
|
|
691
|
-
*
|
|
692
|
-
* @type {string}
|
|
693
|
-
* @memberof AgentDraft
|
|
694
|
-
*/
|
|
695
271
|
'personality'?: string | null;
|
|
696
|
-
/**
|
|
697
|
-
*
|
|
698
|
-
* @type {string}
|
|
699
|
-
* @memberof AgentDraft
|
|
700
|
-
*/
|
|
701
272
|
'principles'?: string | null;
|
|
702
273
|
/**
|
|
703
274
|
* AI model identifier to be used by this agent for processing requests.
|
|
704
|
-
* @type {string}
|
|
705
|
-
* @memberof AgentDraft
|
|
706
275
|
*/
|
|
707
276
|
'model'?: string;
|
|
708
|
-
/**
|
|
709
|
-
*
|
|
710
|
-
* @type {string}
|
|
711
|
-
* @memberof AgentDraft
|
|
712
|
-
*/
|
|
713
277
|
'prompt'?: string | null;
|
|
714
|
-
/**
|
|
715
|
-
*
|
|
716
|
-
* @type {string}
|
|
717
|
-
* @memberof AgentDraft
|
|
718
|
-
*/
|
|
719
278
|
'prompt_append'?: string | null;
|
|
720
|
-
/**
|
|
721
|
-
*
|
|
722
|
-
* @type {number}
|
|
723
|
-
* @memberof AgentDraft
|
|
724
|
-
*/
|
|
725
279
|
'temperature'?: number | null;
|
|
726
|
-
/**
|
|
727
|
-
*
|
|
728
|
-
* @type {number}
|
|
729
|
-
* @memberof AgentDraft
|
|
730
|
-
*/
|
|
731
280
|
'frequency_penalty'?: number | null;
|
|
732
|
-
/**
|
|
733
|
-
*
|
|
734
|
-
* @type {number}
|
|
735
|
-
* @memberof AgentDraft
|
|
736
|
-
*/
|
|
737
281
|
'presence_penalty'?: number | null;
|
|
738
|
-
/**
|
|
739
|
-
*
|
|
740
|
-
* @type {string}
|
|
741
|
-
* @memberof AgentDraft
|
|
742
|
-
*/
|
|
743
282
|
'wallet_provider'?: AgentDraftWalletProviderEnum | null;
|
|
744
|
-
/**
|
|
745
|
-
*
|
|
746
|
-
* @type {string}
|
|
747
|
-
* @memberof AgentDraft
|
|
748
|
-
*/
|
|
749
283
|
'readonly_wallet_address'?: string | null;
|
|
750
|
-
/**
|
|
751
|
-
*
|
|
752
|
-
* @type {string}
|
|
753
|
-
* @memberof AgentDraft
|
|
754
|
-
*/
|
|
755
284
|
'network_id'?: AgentDraftNetworkIdEnum | null;
|
|
756
|
-
/**
|
|
757
|
-
*
|
|
758
|
-
* @type {object}
|
|
759
|
-
* @memberof AgentDraft
|
|
760
|
-
*/
|
|
761
285
|
'skills'?: object | null;
|
|
762
|
-
/**
|
|
763
|
-
*
|
|
764
|
-
* @type {string}
|
|
765
|
-
* @memberof AgentDraft
|
|
766
|
-
*/
|
|
767
286
|
'short_term_memory_strategy'?: AgentDraftShortTermMemoryStrategyEnum | null;
|
|
768
|
-
/**
|
|
769
|
-
*
|
|
770
|
-
* @type {Array<AgentAutonomous>}
|
|
771
|
-
* @memberof AgentDraft
|
|
772
|
-
*/
|
|
773
287
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
774
|
-
/**
|
|
775
|
-
*
|
|
776
|
-
* @type {boolean}
|
|
777
|
-
* @memberof AgentDraft
|
|
778
|
-
*/
|
|
779
288
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
780
|
-
/**
|
|
781
|
-
*
|
|
782
|
-
* @type {string}
|
|
783
|
-
* @memberof AgentDraft
|
|
784
|
-
*/
|
|
785
289
|
'telegram_entrypoint_prompt'?: string | null;
|
|
786
|
-
/**
|
|
787
|
-
*
|
|
788
|
-
* @type {object}
|
|
789
|
-
* @memberof AgentDraft
|
|
790
|
-
*/
|
|
791
290
|
'telegram_config'?: object | null;
|
|
792
|
-
/**
|
|
793
|
-
*
|
|
794
|
-
* @type {string}
|
|
795
|
-
* @memberof AgentDraft
|
|
796
|
-
*/
|
|
797
291
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
798
292
|
/**
|
|
799
293
|
* Unique identifier for the draft
|
|
800
|
-
* @type {string}
|
|
801
|
-
* @memberof AgentDraft
|
|
802
294
|
*/
|
|
803
295
|
'id'?: string;
|
|
804
296
|
/**
|
|
805
297
|
* Agent id
|
|
806
|
-
* @type {string}
|
|
807
|
-
* @memberof AgentDraft
|
|
808
298
|
*/
|
|
809
299
|
'agent_id'?: string;
|
|
810
|
-
/**
|
|
811
|
-
*
|
|
812
|
-
* @type {string}
|
|
813
|
-
* @memberof AgentDraft
|
|
814
|
-
*/
|
|
815
300
|
'owner'?: string | null;
|
|
816
|
-
/**
|
|
817
|
-
*
|
|
818
|
-
* @type {string}
|
|
819
|
-
* @memberof AgentDraft
|
|
820
|
-
*/
|
|
821
301
|
'version'?: string | null;
|
|
822
|
-
/**
|
|
823
|
-
*
|
|
824
|
-
* @type {string}
|
|
825
|
-
* @memberof AgentDraft
|
|
826
|
-
*/
|
|
827
302
|
'deployed_at'?: string | null;
|
|
828
303
|
/**
|
|
829
304
|
* Timestamp when the agent was created, will ignore when importing
|
|
830
|
-
* @type {string}
|
|
831
|
-
* @memberof AgentDraft
|
|
832
305
|
*/
|
|
833
306
|
'created_at'?: string;
|
|
834
307
|
/**
|
|
835
308
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
836
|
-
* @type {string}
|
|
837
|
-
* @memberof AgentDraft
|
|
838
309
|
*/
|
|
839
310
|
'updated_at'?: string;
|
|
840
311
|
}
|
|
@@ -869,390 +340,142 @@ export type AgentDraftShortTermMemoryStrategyEnum = typeof AgentDraftShortTermMe
|
|
|
869
340
|
|
|
870
341
|
/**
|
|
871
342
|
* Agent example configuration.
|
|
872
|
-
* @export
|
|
873
|
-
* @interface AgentExample
|
|
874
343
|
*/
|
|
875
344
|
export interface AgentExample {
|
|
876
345
|
/**
|
|
877
346
|
* Name of the example
|
|
878
|
-
* @type {string}
|
|
879
|
-
* @memberof AgentExample
|
|
880
347
|
*/
|
|
881
348
|
'name': string;
|
|
882
349
|
/**
|
|
883
350
|
* Description of the example
|
|
884
|
-
* @type {string}
|
|
885
|
-
* @memberof AgentExample
|
|
886
351
|
*/
|
|
887
352
|
'description': string;
|
|
888
353
|
/**
|
|
889
354
|
* Example prompt
|
|
890
|
-
* @type {string}
|
|
891
|
-
* @memberof AgentExample
|
|
892
355
|
*/
|
|
893
356
|
'prompt': string;
|
|
894
357
|
}
|
|
895
358
|
/**
|
|
896
359
|
* Request model for agent generation.
|
|
897
|
-
* @export
|
|
898
|
-
* @interface AgentGenerateRequest
|
|
899
360
|
*/
|
|
900
361
|
export interface AgentGenerateRequest {
|
|
901
362
|
/**
|
|
902
363
|
* Natural language description of the agent\'s desired capabilities
|
|
903
|
-
* @type {string}
|
|
904
|
-
* @memberof AgentGenerateRequest
|
|
905
364
|
*/
|
|
906
365
|
'prompt': string;
|
|
907
|
-
/**
|
|
908
|
-
*
|
|
909
|
-
* @type {AgentCreate}
|
|
910
|
-
* @memberof AgentGenerateRequest
|
|
911
|
-
*/
|
|
912
366
|
'existing_agent'?: AgentCreate | null;
|
|
913
|
-
/**
|
|
914
|
-
*
|
|
915
|
-
* @type {string}
|
|
916
|
-
* @memberof AgentGenerateRequest
|
|
917
|
-
*/
|
|
918
367
|
'project_id'?: string | null;
|
|
919
|
-
/**
|
|
920
|
-
*
|
|
921
|
-
* @type {boolean}
|
|
922
|
-
* @memberof AgentGenerateRequest
|
|
923
|
-
*/
|
|
924
368
|
'deploy'?: boolean | null;
|
|
925
369
|
}
|
|
926
370
|
/**
|
|
927
371
|
* Response model for agent generation.
|
|
928
|
-
* @export
|
|
929
|
-
* @interface AgentGenerateResponse
|
|
930
372
|
*/
|
|
931
373
|
export interface AgentGenerateResponse {
|
|
932
374
|
/**
|
|
933
375
|
* The generated agent schema
|
|
934
|
-
* @type {object}
|
|
935
|
-
* @memberof AgentGenerateResponse
|
|
936
376
|
*/
|
|
937
377
|
'agent': object;
|
|
938
378
|
/**
|
|
939
379
|
* Project ID for this conversation session
|
|
940
|
-
* @type {string}
|
|
941
|
-
* @memberof AgentGenerateResponse
|
|
942
380
|
*/
|
|
943
381
|
'project_id': string;
|
|
944
382
|
/**
|
|
945
383
|
* Human-readable summary of the generated agent
|
|
946
|
-
* @type {string}
|
|
947
|
-
* @memberof AgentGenerateResponse
|
|
948
384
|
*/
|
|
949
385
|
'summary': string;
|
|
950
386
|
/**
|
|
951
387
|
* Generated tags for the agent as ID objects: [{\'id\': 1}, {\'id\': 2}]
|
|
952
|
-
* @type {Array<{ [key: string]: number; }>}
|
|
953
|
-
* @memberof AgentGenerateResponse
|
|
954
388
|
*/
|
|
955
389
|
'tags'?: Array<{ [key: string]: number; }>;
|
|
956
|
-
/**
|
|
957
|
-
*
|
|
958
|
-
* @type {Array<object>}
|
|
959
|
-
* @memberof AgentGenerateResponse
|
|
960
|
-
*/
|
|
961
390
|
'autonomous_tasks'?: Array<object> | null;
|
|
962
|
-
/**
|
|
963
|
-
*
|
|
964
|
-
* @type {Array<string>}
|
|
965
|
-
* @memberof AgentGenerateResponse
|
|
966
|
-
*/
|
|
967
391
|
'activated_skills'?: Array<string> | null;
|
|
968
392
|
}
|
|
969
393
|
/**
|
|
970
394
|
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
971
|
-
* @export
|
|
972
|
-
* @interface AgentListResponse
|
|
973
395
|
*/
|
|
974
396
|
export interface AgentListResponse {
|
|
975
397
|
/**
|
|
976
398
|
* List of agents
|
|
977
|
-
* @type {Array<AgentResponse>}
|
|
978
|
-
* @memberof AgentListResponse
|
|
979
399
|
*/
|
|
980
400
|
'data': Array<AgentResponse>;
|
|
981
401
|
/**
|
|
982
402
|
* Indicates if there are more items
|
|
983
|
-
* @type {boolean}
|
|
984
|
-
* @memberof AgentListResponse
|
|
985
403
|
*/
|
|
986
404
|
'has_more': boolean;
|
|
987
|
-
/**
|
|
988
|
-
*
|
|
989
|
-
* @type {string}
|
|
990
|
-
* @memberof AgentListResponse
|
|
991
|
-
*/
|
|
992
405
|
'next_cursor'?: string | null;
|
|
993
406
|
}
|
|
994
407
|
/**
|
|
995
408
|
* Agent response model that excludes sensitive fields from JSON output and schema.
|
|
996
|
-
* @export
|
|
997
|
-
* @interface AgentResponse
|
|
998
409
|
*/
|
|
999
410
|
export interface AgentResponse {
|
|
1000
|
-
/**
|
|
1001
|
-
*
|
|
1002
|
-
* @type {string}
|
|
1003
|
-
* @memberof AgentResponse
|
|
1004
|
-
*/
|
|
1005
411
|
'description'?: string | null;
|
|
1006
|
-
/**
|
|
1007
|
-
*
|
|
1008
|
-
* @type {string}
|
|
1009
|
-
* @memberof AgentResponse
|
|
1010
|
-
*/
|
|
1011
412
|
'external_website'?: string | null;
|
|
1012
|
-
/**
|
|
1013
|
-
*
|
|
1014
|
-
* @type {string}
|
|
1015
|
-
* @memberof AgentResponse
|
|
1016
|
-
*/
|
|
1017
413
|
'ticker'?: string | null;
|
|
1018
|
-
/**
|
|
1019
|
-
*
|
|
1020
|
-
* @type {string}
|
|
1021
|
-
* @memberof AgentResponse
|
|
1022
|
-
*/
|
|
1023
414
|
'token_address'?: string | null;
|
|
1024
|
-
/**
|
|
1025
|
-
*
|
|
1026
|
-
* @type {string}
|
|
1027
|
-
* @memberof AgentResponse
|
|
1028
|
-
*/
|
|
1029
415
|
'token_pool'?: string | null;
|
|
1030
|
-
/**
|
|
1031
|
-
*
|
|
1032
|
-
* @type {string}
|
|
1033
|
-
* @memberof AgentResponse
|
|
1034
|
-
*/
|
|
1035
416
|
'fee_percentage'?: string | null;
|
|
1036
|
-
/**
|
|
1037
|
-
*
|
|
1038
|
-
* @type {string}
|
|
1039
|
-
* @memberof AgentResponse
|
|
1040
|
-
*/
|
|
1041
417
|
'example_intro'?: string | null;
|
|
1042
|
-
/**
|
|
1043
|
-
*
|
|
1044
|
-
* @type {Array<AgentExample>}
|
|
1045
|
-
* @memberof AgentResponse
|
|
1046
|
-
*/
|
|
1047
418
|
'examples'?: Array<AgentExample> | null;
|
|
1048
|
-
/**
|
|
1049
|
-
*
|
|
1050
|
-
* @type {string}
|
|
1051
|
-
* @memberof AgentResponse
|
|
1052
|
-
*/
|
|
1053
419
|
'name': string | null;
|
|
1054
|
-
/**
|
|
1055
|
-
*
|
|
1056
|
-
* @type {string}
|
|
1057
|
-
* @memberof AgentResponse
|
|
1058
|
-
*/
|
|
1059
420
|
'picture'?: string | null;
|
|
1060
421
|
/**
|
|
1061
422
|
* AI model identifier to be used by this agent for processing requests.
|
|
1062
|
-
* @type {string}
|
|
1063
|
-
* @memberof AgentResponse
|
|
1064
423
|
*/
|
|
1065
424
|
'model'?: string;
|
|
1066
|
-
/**
|
|
1067
|
-
*
|
|
1068
|
-
* @type {number}
|
|
1069
|
-
* @memberof AgentResponse
|
|
1070
|
-
*/
|
|
1071
425
|
'presence_penalty'?: number | null;
|
|
1072
|
-
/**
|
|
1073
|
-
*
|
|
1074
|
-
* @type {string}
|
|
1075
|
-
* @memberof AgentResponse
|
|
1076
|
-
*/
|
|
1077
426
|
'wallet_provider'?: AgentResponseWalletProviderEnum | null;
|
|
1078
|
-
/**
|
|
1079
|
-
*
|
|
1080
|
-
* @type {string}
|
|
1081
|
-
* @memberof AgentResponse
|
|
1082
|
-
*/
|
|
1083
427
|
'readonly_wallet_address'?: string | null;
|
|
1084
|
-
/**
|
|
1085
|
-
*
|
|
1086
|
-
* @type {string}
|
|
1087
|
-
* @memberof AgentResponse
|
|
1088
|
-
*/
|
|
1089
428
|
'network_id'?: AgentResponseNetworkIdEnum | null;
|
|
1090
|
-
/**
|
|
1091
|
-
*
|
|
1092
|
-
* @type {object}
|
|
1093
|
-
* @memberof AgentResponse
|
|
1094
|
-
*/
|
|
1095
429
|
'skills'?: object | null;
|
|
1096
|
-
/**
|
|
1097
|
-
*
|
|
1098
|
-
* @type {string}
|
|
1099
|
-
* @memberof AgentResponse
|
|
1100
|
-
*/
|
|
1101
430
|
'short_term_memory_strategy'?: AgentResponseShortTermMemoryStrategyEnum | null;
|
|
1102
|
-
/**
|
|
1103
|
-
*
|
|
1104
|
-
* @type {Array<AgentAutonomous>}
|
|
1105
|
-
* @memberof AgentResponse
|
|
1106
|
-
*/
|
|
1107
431
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1108
|
-
/**
|
|
1109
|
-
*
|
|
1110
|
-
* @type {boolean}
|
|
1111
|
-
* @memberof AgentResponse
|
|
1112
|
-
*/
|
|
1113
432
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1114
|
-
/**
|
|
1115
|
-
*
|
|
1116
|
-
* @type {string}
|
|
1117
|
-
* @memberof AgentResponse
|
|
1118
|
-
*/
|
|
1119
433
|
'upstream_id'?: string | null;
|
|
1120
|
-
/**
|
|
1121
|
-
*
|
|
1122
|
-
* @type {object}
|
|
1123
|
-
* @memberof AgentResponse
|
|
1124
|
-
*/
|
|
1125
434
|
'upstream_extra'?: object | null;
|
|
1126
435
|
/**
|
|
1127
436
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
1128
|
-
* @type {string}
|
|
1129
|
-
* @memberof AgentResponse
|
|
1130
437
|
*/
|
|
1131
438
|
'id'?: string;
|
|
1132
|
-
/**
|
|
1133
|
-
*
|
|
1134
|
-
* @type {string}
|
|
1135
|
-
* @memberof AgentResponse
|
|
1136
|
-
*/
|
|
1137
439
|
'owner'?: string | null;
|
|
1138
|
-
/**
|
|
1139
|
-
*
|
|
1140
|
-
* @type {string}
|
|
1141
|
-
* @memberof AgentResponse
|
|
1142
|
-
*/
|
|
1143
440
|
'slug'?: string | null;
|
|
1144
|
-
/**
|
|
1145
|
-
*
|
|
1146
|
-
* @type {string}
|
|
1147
|
-
* @memberof AgentResponse
|
|
1148
|
-
*/
|
|
1149
441
|
'version'?: string | null;
|
|
1150
|
-
/**
|
|
1151
|
-
*
|
|
1152
|
-
* @type {object}
|
|
1153
|
-
* @memberof AgentResponse
|
|
1154
|
-
*/
|
|
1155
442
|
'statistics'?: object | null;
|
|
1156
|
-
/**
|
|
1157
|
-
*
|
|
1158
|
-
* @type {object}
|
|
1159
|
-
* @memberof AgentResponse
|
|
1160
|
-
*/
|
|
1161
443
|
'assets'?: object | null;
|
|
1162
|
-
/**
|
|
1163
|
-
*
|
|
1164
|
-
* @type {CreditAccount}
|
|
1165
|
-
* @memberof AgentResponse
|
|
1166
|
-
*/
|
|
1167
444
|
'account_snapshot'?: CreditAccount | null;
|
|
1168
|
-
/**
|
|
1169
|
-
*
|
|
1170
|
-
* @type {object}
|
|
1171
|
-
* @memberof AgentResponse
|
|
1172
|
-
*/
|
|
1173
445
|
'extra'?: object | null;
|
|
1174
446
|
/**
|
|
1175
447
|
* Timestamp when the agent was created, will ignore when importing
|
|
1176
|
-
* @type {string}
|
|
1177
|
-
* @memberof AgentResponse
|
|
1178
448
|
*/
|
|
1179
449
|
'created_at'?: string;
|
|
1180
450
|
/**
|
|
1181
451
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
1182
|
-
* @type {string}
|
|
1183
|
-
* @memberof AgentResponse
|
|
1184
452
|
*/
|
|
1185
453
|
'updated_at'?: string;
|
|
1186
|
-
/**
|
|
1187
|
-
*
|
|
1188
|
-
* @type {string}
|
|
1189
|
-
* @memberof AgentResponse
|
|
1190
|
-
*/
|
|
1191
454
|
'cdp_wallet_address'?: string | null;
|
|
1192
|
-
/**
|
|
1193
|
-
*
|
|
1194
|
-
* @type {string}
|
|
1195
|
-
* @memberof AgentResponse
|
|
1196
|
-
*/
|
|
1197
455
|
'evm_wallet_address'?: string | null;
|
|
1198
|
-
/**
|
|
1199
|
-
*
|
|
1200
|
-
* @type {string}
|
|
1201
|
-
* @memberof AgentResponse
|
|
1202
|
-
*/
|
|
1203
456
|
'solana_wallet_address'?: string | null;
|
|
1204
457
|
/**
|
|
1205
458
|
* Whether the agent has Twitter linked
|
|
1206
|
-
* @type {boolean}
|
|
1207
|
-
* @memberof AgentResponse
|
|
1208
459
|
*/
|
|
1209
460
|
'has_twitter_linked'?: boolean;
|
|
1210
|
-
/**
|
|
1211
|
-
*
|
|
1212
|
-
* @type {string}
|
|
1213
|
-
* @memberof AgentResponse
|
|
1214
|
-
*/
|
|
1215
461
|
'linked_twitter_username'?: string | null;
|
|
1216
|
-
/**
|
|
1217
|
-
*
|
|
1218
|
-
* @type {string}
|
|
1219
|
-
* @memberof AgentResponse
|
|
1220
|
-
*/
|
|
1221
462
|
'linked_twitter_name'?: string | null;
|
|
1222
463
|
/**
|
|
1223
464
|
* Whether the agent has Twitter self key
|
|
1224
|
-
* @type {boolean}
|
|
1225
|
-
* @memberof AgentResponse
|
|
1226
465
|
*/
|
|
1227
466
|
'has_twitter_self_key'?: boolean;
|
|
1228
467
|
/**
|
|
1229
468
|
* Whether the agent has Telegram self key
|
|
1230
|
-
* @type {boolean}
|
|
1231
|
-
* @memberof AgentResponse
|
|
1232
469
|
*/
|
|
1233
470
|
'has_telegram_self_key'?: boolean;
|
|
1234
|
-
/**
|
|
1235
|
-
*
|
|
1236
|
-
* @type {string}
|
|
1237
|
-
* @memberof AgentResponse
|
|
1238
|
-
*/
|
|
1239
471
|
'linked_telegram_username'?: string | null;
|
|
1240
|
-
/**
|
|
1241
|
-
*
|
|
1242
|
-
* @type {string}
|
|
1243
|
-
* @memberof AgentResponse
|
|
1244
|
-
*/
|
|
1245
472
|
'linked_telegram_name'?: string | null;
|
|
1246
473
|
/**
|
|
1247
474
|
* Whether the agent accepts image input
|
|
1248
|
-
* @type {boolean}
|
|
1249
|
-
* @memberof AgentResponse
|
|
1250
475
|
*/
|
|
1251
476
|
'accept_image_input'?: boolean;
|
|
1252
477
|
/**
|
|
1253
478
|
* Whether the agent accepts image input in private mode
|
|
1254
|
-
* @type {boolean}
|
|
1255
|
-
* @memberof AgentResponse
|
|
1256
479
|
*/
|
|
1257
480
|
'accept_image_input_private'?: boolean;
|
|
1258
481
|
}
|
|
@@ -1287,8 +510,6 @@ export type AgentResponseShortTermMemoryStrategyEnum = typeof AgentResponseShort
|
|
|
1287
510
|
|
|
1288
511
|
/**
|
|
1289
512
|
* Sort options for agents list.
|
|
1290
|
-
* @export
|
|
1291
|
-
* @enum {string}
|
|
1292
513
|
*/
|
|
1293
514
|
|
|
1294
515
|
export const AgentSortOption = {
|
|
@@ -1302,244 +523,98 @@ export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOptio
|
|
|
1302
523
|
|
|
1303
524
|
/**
|
|
1304
525
|
* Response model for agent statistics.
|
|
1305
|
-
* @export
|
|
1306
|
-
* @interface AgentStatisticsResponse
|
|
1307
526
|
*/
|
|
1308
527
|
export interface AgentStatisticsResponse {
|
|
1309
528
|
/**
|
|
1310
529
|
* ID of the agent
|
|
1311
|
-
* @type {string}
|
|
1312
|
-
* @memberof AgentStatisticsResponse
|
|
1313
530
|
*/
|
|
1314
531
|
'agent_id': string;
|
|
1315
532
|
/**
|
|
1316
533
|
* ID of the agent\'s credit account
|
|
1317
|
-
* @type {string}
|
|
1318
|
-
* @memberof AgentStatisticsResponse
|
|
1319
534
|
*/
|
|
1320
535
|
'account_id': string;
|
|
1321
536
|
/**
|
|
1322
537
|
* Total balance of the agent\'s account
|
|
1323
|
-
* @type {string}
|
|
1324
|
-
* @memberof AgentStatisticsResponse
|
|
1325
538
|
*/
|
|
1326
539
|
'balance': string;
|
|
1327
540
|
/**
|
|
1328
541
|
* Total income from all credit events
|
|
1329
|
-
* @type {string}
|
|
1330
|
-
* @memberof AgentStatisticsResponse
|
|
1331
542
|
*/
|
|
1332
543
|
'total_income': string;
|
|
1333
544
|
/**
|
|
1334
545
|
* Net income from all credit events
|
|
1335
|
-
* @type {string}
|
|
1336
|
-
* @memberof AgentStatisticsResponse
|
|
1337
546
|
*/
|
|
1338
547
|
'net_income': string;
|
|
1339
548
|
/**
|
|
1340
549
|
* Permanent income from all credit events
|
|
1341
|
-
* @type {string}
|
|
1342
|
-
* @memberof AgentStatisticsResponse
|
|
1343
550
|
*/
|
|
1344
551
|
'permanent_income': string;
|
|
1345
552
|
/**
|
|
1346
553
|
* Permanent profit from all credit events
|
|
1347
|
-
* @type {string}
|
|
1348
|
-
* @memberof AgentStatisticsResponse
|
|
1349
554
|
*/
|
|
1350
555
|
'permanent_profit': string;
|
|
1351
556
|
/**
|
|
1352
557
|
* Income from last 24 hours
|
|
1353
|
-
* @type {string}
|
|
1354
|
-
* @memberof AgentStatisticsResponse
|
|
1355
558
|
*/
|
|
1356
559
|
'last_24h_income': string;
|
|
1357
560
|
/**
|
|
1358
561
|
* Permanent income from last 24 hours
|
|
1359
|
-
* @type {string}
|
|
1360
|
-
* @memberof AgentStatisticsResponse
|
|
1361
562
|
*/
|
|
1362
563
|
'last_24h_permanent_income': string;
|
|
1363
564
|
/**
|
|
1364
565
|
* Average action cost
|
|
1365
|
-
* @type {string}
|
|
1366
|
-
* @memberof AgentStatisticsResponse
|
|
1367
566
|
*/
|
|
1368
567
|
'avg_action_cost': string;
|
|
1369
568
|
/**
|
|
1370
569
|
* Minimum action cost
|
|
1371
|
-
* @type {string}
|
|
1372
|
-
* @memberof AgentStatisticsResponse
|
|
1373
570
|
*/
|
|
1374
571
|
'min_action_cost': string;
|
|
1375
572
|
/**
|
|
1376
573
|
* Maximum action cost
|
|
1377
|
-
* @type {string}
|
|
1378
|
-
* @memberof AgentStatisticsResponse
|
|
1379
574
|
*/
|
|
1380
575
|
'max_action_cost': string;
|
|
1381
576
|
/**
|
|
1382
577
|
* Low action cost
|
|
1383
|
-
* @type {string}
|
|
1384
|
-
* @memberof AgentStatisticsResponse
|
|
1385
578
|
*/
|
|
1386
579
|
'low_action_cost': string;
|
|
1387
580
|
/**
|
|
1388
581
|
* Medium action cost
|
|
1389
|
-
* @type {string}
|
|
1390
|
-
* @memberof AgentStatisticsResponse
|
|
1391
582
|
*/
|
|
1392
583
|
'medium_action_cost': string;
|
|
1393
584
|
/**
|
|
1394
585
|
* High action cost
|
|
1395
|
-
* @type {string}
|
|
1396
|
-
* @memberof AgentStatisticsResponse
|
|
1397
586
|
*/
|
|
1398
587
|
'high_action_cost': string;
|
|
1399
588
|
}
|
|
1400
589
|
/**
|
|
1401
590
|
* Agent update model.
|
|
1402
|
-
* @export
|
|
1403
|
-
* @interface AgentUpdate
|
|
1404
591
|
*/
|
|
1405
592
|
export interface AgentUpdate {
|
|
1406
|
-
/**
|
|
1407
|
-
*
|
|
1408
|
-
* @type {string}
|
|
1409
|
-
* @memberof AgentUpdate
|
|
1410
|
-
*/
|
|
1411
593
|
'name': string | null;
|
|
1412
|
-
/**
|
|
1413
|
-
*
|
|
1414
|
-
* @type {string}
|
|
1415
|
-
* @memberof AgentUpdate
|
|
1416
|
-
*/
|
|
1417
594
|
'picture'?: string | null;
|
|
1418
|
-
/**
|
|
1419
|
-
*
|
|
1420
|
-
* @type {string}
|
|
1421
|
-
* @memberof AgentUpdate
|
|
1422
|
-
*/
|
|
1423
595
|
'purpose'?: string | null;
|
|
1424
|
-
/**
|
|
1425
|
-
*
|
|
1426
|
-
* @type {string}
|
|
1427
|
-
* @memberof AgentUpdate
|
|
1428
|
-
*/
|
|
1429
596
|
'personality'?: string | null;
|
|
1430
|
-
/**
|
|
1431
|
-
*
|
|
1432
|
-
* @type {string}
|
|
1433
|
-
* @memberof AgentUpdate
|
|
1434
|
-
*/
|
|
1435
597
|
'principles'?: string | null;
|
|
1436
598
|
/**
|
|
1437
599
|
* AI model identifier to be used by this agent for processing requests.
|
|
1438
|
-
* @type {string}
|
|
1439
|
-
* @memberof AgentUpdate
|
|
1440
600
|
*/
|
|
1441
601
|
'model'?: string;
|
|
1442
|
-
/**
|
|
1443
|
-
*
|
|
1444
|
-
* @type {string}
|
|
1445
|
-
* @memberof AgentUpdate
|
|
1446
|
-
*/
|
|
1447
602
|
'prompt'?: string | null;
|
|
1448
|
-
/**
|
|
1449
|
-
*
|
|
1450
|
-
* @type {string}
|
|
1451
|
-
* @memberof AgentUpdate
|
|
1452
|
-
*/
|
|
1453
603
|
'prompt_append'?: string | null;
|
|
1454
|
-
/**
|
|
1455
|
-
*
|
|
1456
|
-
* @type {number}
|
|
1457
|
-
* @memberof AgentUpdate
|
|
1458
|
-
*/
|
|
1459
604
|
'temperature'?: number | null;
|
|
1460
|
-
/**
|
|
1461
|
-
*
|
|
1462
|
-
* @type {number}
|
|
1463
|
-
* @memberof AgentUpdate
|
|
1464
|
-
*/
|
|
1465
605
|
'frequency_penalty'?: number | null;
|
|
1466
|
-
/**
|
|
1467
|
-
*
|
|
1468
|
-
* @type {number}
|
|
1469
|
-
* @memberof AgentUpdate
|
|
1470
|
-
*/
|
|
1471
606
|
'presence_penalty'?: number | null;
|
|
1472
|
-
/**
|
|
1473
|
-
*
|
|
1474
|
-
* @type {string}
|
|
1475
|
-
* @memberof AgentUpdate
|
|
1476
|
-
*/
|
|
1477
607
|
'wallet_provider'?: AgentUpdateWalletProviderEnum | null;
|
|
1478
|
-
/**
|
|
1479
|
-
*
|
|
1480
|
-
* @type {string}
|
|
1481
|
-
* @memberof AgentUpdate
|
|
1482
|
-
*/
|
|
1483
608
|
'readonly_wallet_address'?: string | null;
|
|
1484
|
-
/**
|
|
1485
|
-
*
|
|
1486
|
-
* @type {string}
|
|
1487
|
-
* @memberof AgentUpdate
|
|
1488
|
-
*/
|
|
1489
609
|
'network_id'?: AgentUpdateNetworkIdEnum | null;
|
|
1490
|
-
/**
|
|
1491
|
-
*
|
|
1492
|
-
* @type {object}
|
|
1493
|
-
* @memberof AgentUpdate
|
|
1494
|
-
*/
|
|
1495
610
|
'skills'?: object | null;
|
|
1496
|
-
/**
|
|
1497
|
-
*
|
|
1498
|
-
* @type {string}
|
|
1499
|
-
* @memberof AgentUpdate
|
|
1500
|
-
*/
|
|
1501
611
|
'short_term_memory_strategy'?: AgentUpdateShortTermMemoryStrategyEnum | null;
|
|
1502
|
-
/**
|
|
1503
|
-
*
|
|
1504
|
-
* @type {Array<AgentAutonomous>}
|
|
1505
|
-
* @memberof AgentUpdate
|
|
1506
|
-
*/
|
|
1507
612
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1508
|
-
/**
|
|
1509
|
-
*
|
|
1510
|
-
* @type {boolean}
|
|
1511
|
-
* @memberof AgentUpdate
|
|
1512
|
-
*/
|
|
1513
613
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1514
|
-
/**
|
|
1515
|
-
*
|
|
1516
|
-
* @type {string}
|
|
1517
|
-
* @memberof AgentUpdate
|
|
1518
|
-
*/
|
|
1519
614
|
'telegram_entrypoint_prompt'?: string | null;
|
|
1520
|
-
/**
|
|
1521
|
-
*
|
|
1522
|
-
* @type {object}
|
|
1523
|
-
* @memberof AgentUpdate
|
|
1524
|
-
*/
|
|
1525
615
|
'telegram_config'?: object | null;
|
|
1526
|
-
/**
|
|
1527
|
-
*
|
|
1528
|
-
* @type {string}
|
|
1529
|
-
* @memberof AgentUpdate
|
|
1530
|
-
*/
|
|
1531
616
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
1532
|
-
/**
|
|
1533
|
-
*
|
|
1534
|
-
* @type {string}
|
|
1535
|
-
* @memberof AgentUpdate
|
|
1536
|
-
*/
|
|
1537
617
|
'upstream_id'?: string | null;
|
|
1538
|
-
/**
|
|
1539
|
-
*
|
|
1540
|
-
* @type {object}
|
|
1541
|
-
* @memberof AgentUpdate
|
|
1542
|
-
*/
|
|
1543
618
|
'upstream_extra'?: object | null;
|
|
1544
619
|
}
|
|
1545
620
|
|
|
@@ -1573,135 +648,31 @@ export type AgentUpdateShortTermMemoryStrategyEnum = typeof AgentUpdateShortTerm
|
|
|
1573
648
|
|
|
1574
649
|
/**
|
|
1575
650
|
* Agent update model.
|
|
1576
|
-
* @export
|
|
1577
|
-
* @interface AgentUserInput
|
|
1578
651
|
*/
|
|
1579
652
|
export interface AgentUserInput {
|
|
1580
|
-
/**
|
|
1581
|
-
*
|
|
1582
|
-
* @type {string}
|
|
1583
|
-
* @memberof AgentUserInput
|
|
1584
|
-
*/
|
|
1585
653
|
'name': string | null;
|
|
1586
|
-
/**
|
|
1587
|
-
*
|
|
1588
|
-
* @type {string}
|
|
1589
|
-
* @memberof AgentUserInput
|
|
1590
|
-
*/
|
|
1591
654
|
'picture'?: string | null;
|
|
1592
|
-
/**
|
|
1593
|
-
*
|
|
1594
|
-
* @type {string}
|
|
1595
|
-
* @memberof AgentUserInput
|
|
1596
|
-
*/
|
|
1597
655
|
'purpose'?: string | null;
|
|
1598
|
-
/**
|
|
1599
|
-
*
|
|
1600
|
-
* @type {string}
|
|
1601
|
-
* @memberof AgentUserInput
|
|
1602
|
-
*/
|
|
1603
656
|
'personality'?: string | null;
|
|
1604
|
-
/**
|
|
1605
|
-
*
|
|
1606
|
-
* @type {string}
|
|
1607
|
-
* @memberof AgentUserInput
|
|
1608
|
-
*/
|
|
1609
657
|
'principles'?: string | null;
|
|
1610
658
|
/**
|
|
1611
659
|
* AI model identifier to be used by this agent for processing requests.
|
|
1612
|
-
* @type {string}
|
|
1613
|
-
* @memberof AgentUserInput
|
|
1614
660
|
*/
|
|
1615
661
|
'model'?: string;
|
|
1616
|
-
/**
|
|
1617
|
-
*
|
|
1618
|
-
* @type {string}
|
|
1619
|
-
* @memberof AgentUserInput
|
|
1620
|
-
*/
|
|
1621
662
|
'prompt'?: string | null;
|
|
1622
|
-
/**
|
|
1623
|
-
*
|
|
1624
|
-
* @type {string}
|
|
1625
|
-
* @memberof AgentUserInput
|
|
1626
|
-
*/
|
|
1627
663
|
'prompt_append'?: string | null;
|
|
1628
|
-
/**
|
|
1629
|
-
*
|
|
1630
|
-
* @type {number}
|
|
1631
|
-
* @memberof AgentUserInput
|
|
1632
|
-
*/
|
|
1633
664
|
'temperature'?: number | null;
|
|
1634
|
-
/**
|
|
1635
|
-
*
|
|
1636
|
-
* @type {number}
|
|
1637
|
-
* @memberof AgentUserInput
|
|
1638
|
-
*/
|
|
1639
665
|
'frequency_penalty'?: number | null;
|
|
1640
|
-
/**
|
|
1641
|
-
*
|
|
1642
|
-
* @type {number}
|
|
1643
|
-
* @memberof AgentUserInput
|
|
1644
|
-
*/
|
|
1645
666
|
'presence_penalty'?: number | null;
|
|
1646
|
-
/**
|
|
1647
|
-
*
|
|
1648
|
-
* @type {string}
|
|
1649
|
-
* @memberof AgentUserInput
|
|
1650
|
-
*/
|
|
1651
667
|
'wallet_provider'?: AgentUserInputWalletProviderEnum | null;
|
|
1652
|
-
/**
|
|
1653
|
-
*
|
|
1654
|
-
* @type {string}
|
|
1655
|
-
* @memberof AgentUserInput
|
|
1656
|
-
*/
|
|
1657
668
|
'readonly_wallet_address'?: string | null;
|
|
1658
|
-
/**
|
|
1659
|
-
*
|
|
1660
|
-
* @type {string}
|
|
1661
|
-
* @memberof AgentUserInput
|
|
1662
|
-
*/
|
|
1663
669
|
'network_id'?: AgentUserInputNetworkIdEnum | null;
|
|
1664
|
-
/**
|
|
1665
|
-
*
|
|
1666
|
-
* @type {object}
|
|
1667
|
-
* @memberof AgentUserInput
|
|
1668
|
-
*/
|
|
1669
670
|
'skills'?: object | null;
|
|
1670
|
-
/**
|
|
1671
|
-
*
|
|
1672
|
-
* @type {string}
|
|
1673
|
-
* @memberof AgentUserInput
|
|
1674
|
-
*/
|
|
1675
671
|
'short_term_memory_strategy'?: AgentUserInputShortTermMemoryStrategyEnum | null;
|
|
1676
|
-
/**
|
|
1677
|
-
*
|
|
1678
|
-
* @type {Array<AgentAutonomous>}
|
|
1679
|
-
* @memberof AgentUserInput
|
|
1680
|
-
*/
|
|
1681
672
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1682
|
-
/**
|
|
1683
|
-
*
|
|
1684
|
-
* @type {boolean}
|
|
1685
|
-
* @memberof AgentUserInput
|
|
1686
|
-
*/
|
|
1687
673
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1688
|
-
/**
|
|
1689
|
-
*
|
|
1690
|
-
* @type {string}
|
|
1691
|
-
* @memberof AgentUserInput
|
|
1692
|
-
*/
|
|
1693
674
|
'telegram_entrypoint_prompt'?: string | null;
|
|
1694
|
-
/**
|
|
1695
|
-
*
|
|
1696
|
-
* @type {object}
|
|
1697
|
-
* @memberof AgentUserInput
|
|
1698
|
-
*/
|
|
1699
675
|
'telegram_config'?: object | null;
|
|
1700
|
-
/**
|
|
1701
|
-
*
|
|
1702
|
-
* @type {string}
|
|
1703
|
-
* @memberof AgentUserInput
|
|
1704
|
-
*/
|
|
1705
676
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
1706
677
|
}
|
|
1707
678
|
|
|
@@ -1735,27 +706,19 @@ export type AgentUserInputShortTermMemoryStrategyEnum = typeof AgentUserInputSho
|
|
|
1735
706
|
|
|
1736
707
|
/**
|
|
1737
708
|
* Model for individual asset with symbol and balance.
|
|
1738
|
-
* @export
|
|
1739
|
-
* @interface Asset
|
|
1740
709
|
*/
|
|
1741
710
|
export interface Asset {
|
|
1742
711
|
/**
|
|
1743
712
|
* Asset symbol (e.g., ETH, USDC, NATION)
|
|
1744
|
-
* @type {string}
|
|
1745
|
-
* @memberof Asset
|
|
1746
713
|
*/
|
|
1747
714
|
'symbol': string;
|
|
1748
715
|
/**
|
|
1749
716
|
* Asset balance as decimal
|
|
1750
|
-
* @type {string}
|
|
1751
|
-
* @memberof Asset
|
|
1752
717
|
*/
|
|
1753
718
|
'balance': string;
|
|
1754
719
|
}
|
|
1755
720
|
/**
|
|
1756
721
|
* Type of message author.
|
|
1757
|
-
* @export
|
|
1758
|
-
* @enum {string}
|
|
1759
722
|
*/
|
|
1760
723
|
|
|
1761
724
|
export const AuthorType = {
|
|
@@ -1775,195 +738,95 @@ export type AuthorType = typeof AuthorType[keyof typeof AuthorType];
|
|
|
1775
738
|
|
|
1776
739
|
/**
|
|
1777
740
|
* Chat model with all fields including server-generated ones.
|
|
1778
|
-
* @export
|
|
1779
|
-
* @interface Chat
|
|
1780
741
|
*/
|
|
1781
742
|
export interface Chat {
|
|
1782
743
|
/**
|
|
1783
744
|
* Unique identifier for the chat
|
|
1784
|
-
* @type {string}
|
|
1785
|
-
* @memberof Chat
|
|
1786
745
|
*/
|
|
1787
746
|
'id'?: string;
|
|
1788
747
|
/**
|
|
1789
748
|
* ID of the agent this chat belongs to
|
|
1790
|
-
* @type {string}
|
|
1791
|
-
* @memberof Chat
|
|
1792
749
|
*/
|
|
1793
750
|
'agent_id': string;
|
|
1794
751
|
/**
|
|
1795
752
|
* User ID of the chat
|
|
1796
|
-
* @type {string}
|
|
1797
|
-
* @memberof Chat
|
|
1798
753
|
*/
|
|
1799
754
|
'user_id': string;
|
|
1800
755
|
/**
|
|
1801
756
|
* Summary of the chat
|
|
1802
|
-
* @type {string}
|
|
1803
|
-
* @memberof Chat
|
|
1804
757
|
*/
|
|
1805
758
|
'summary'?: string;
|
|
1806
759
|
/**
|
|
1807
760
|
* Number of rounds in the chat
|
|
1808
|
-
* @type {number}
|
|
1809
|
-
* @memberof Chat
|
|
1810
761
|
*/
|
|
1811
762
|
'rounds'?: number;
|
|
1812
763
|
/**
|
|
1813
764
|
* Timestamp when this chat was created
|
|
1814
|
-
* @type {string}
|
|
1815
|
-
* @memberof Chat
|
|
1816
765
|
*/
|
|
1817
766
|
'created_at': string;
|
|
1818
767
|
/**
|
|
1819
768
|
* Timestamp when this chat was updated
|
|
1820
|
-
* @type {string}
|
|
1821
|
-
* @memberof Chat
|
|
1822
769
|
*/
|
|
1823
770
|
'updated_at': string;
|
|
1824
771
|
}
|
|
1825
772
|
/**
|
|
1826
773
|
* Chat message model with all fields including server-generated ones.
|
|
1827
|
-
* @export
|
|
1828
|
-
* @interface ChatMessage
|
|
1829
774
|
*/
|
|
1830
775
|
export interface ChatMessage {
|
|
1831
776
|
/**
|
|
1832
777
|
* Unique identifier for the chat message
|
|
1833
|
-
* @type {string}
|
|
1834
|
-
* @memberof ChatMessage
|
|
1835
778
|
*/
|
|
1836
779
|
'id'?: string;
|
|
1837
780
|
/**
|
|
1838
781
|
* ID of the agent this message belongs to
|
|
1839
|
-
* @type {string}
|
|
1840
|
-
* @memberof ChatMessage
|
|
1841
782
|
*/
|
|
1842
783
|
'agent_id': string;
|
|
1843
784
|
/**
|
|
1844
785
|
* ID of the chat this message belongs to
|
|
1845
|
-
* @type {string}
|
|
1846
|
-
* @memberof ChatMessage
|
|
1847
786
|
*/
|
|
1848
787
|
'chat_id': string;
|
|
1849
|
-
/**
|
|
1850
|
-
*
|
|
1851
|
-
* @type {string}
|
|
1852
|
-
* @memberof ChatMessage
|
|
1853
|
-
*/
|
|
1854
788
|
'user_id': string | null;
|
|
1855
789
|
/**
|
|
1856
790
|
* ID of the message author
|
|
1857
|
-
* @type {string}
|
|
1858
|
-
* @memberof ChatMessage
|
|
1859
791
|
*/
|
|
1860
792
|
'author_id': string;
|
|
1861
793
|
/**
|
|
1862
794
|
* Type of the message author
|
|
1863
|
-
* @type {AuthorType}
|
|
1864
|
-
* @memberof ChatMessage
|
|
1865
795
|
*/
|
|
1866
796
|
'author_type': AuthorType;
|
|
1867
|
-
/**
|
|
1868
|
-
*
|
|
1869
|
-
* @type {string}
|
|
1870
|
-
* @memberof ChatMessage
|
|
1871
|
-
*/
|
|
1872
797
|
'model'?: string | null;
|
|
1873
|
-
/**
|
|
1874
|
-
*
|
|
1875
|
-
* @type {AuthorType}
|
|
1876
|
-
* @memberof ChatMessage
|
|
1877
|
-
*/
|
|
1878
798
|
'thread_type'?: AuthorType | null;
|
|
1879
|
-
/**
|
|
1880
|
-
*
|
|
1881
|
-
* @type {string}
|
|
1882
|
-
* @memberof ChatMessage
|
|
1883
|
-
*/
|
|
1884
799
|
'reply_to'?: string | null;
|
|
1885
800
|
/**
|
|
1886
801
|
* Content of the message
|
|
1887
|
-
* @type {string}
|
|
1888
|
-
* @memberof ChatMessage
|
|
1889
802
|
*/
|
|
1890
803
|
'message': string;
|
|
1891
|
-
/**
|
|
1892
|
-
*
|
|
1893
|
-
* @type {Array<ChatMessageAttachment>}
|
|
1894
|
-
* @memberof ChatMessage
|
|
1895
|
-
*/
|
|
1896
804
|
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
1897
|
-
/**
|
|
1898
|
-
*
|
|
1899
|
-
* @type {Array<ChatMessageSkillCall>}
|
|
1900
|
-
* @memberof ChatMessage
|
|
1901
|
-
*/
|
|
1902
805
|
'skill_calls'?: Array<ChatMessageSkillCall> | null;
|
|
1903
806
|
/**
|
|
1904
807
|
* Number of tokens in the input message
|
|
1905
|
-
* @type {number}
|
|
1906
|
-
* @memberof ChatMessage
|
|
1907
808
|
*/
|
|
1908
809
|
'input_tokens'?: number;
|
|
1909
810
|
/**
|
|
1910
811
|
* Number of tokens in the output message
|
|
1911
|
-
* @type {number}
|
|
1912
|
-
* @memberof ChatMessage
|
|
1913
812
|
*/
|
|
1914
813
|
'output_tokens'?: number;
|
|
1915
814
|
/**
|
|
1916
815
|
* Time cost for the message in seconds
|
|
1917
|
-
* @type {number}
|
|
1918
|
-
* @memberof ChatMessage
|
|
1919
816
|
*/
|
|
1920
817
|
'time_cost'?: number;
|
|
1921
|
-
/**
|
|
1922
|
-
*
|
|
1923
|
-
* @type {string}
|
|
1924
|
-
* @memberof ChatMessage
|
|
1925
|
-
*/
|
|
1926
818
|
'credit_event_id'?: string | null;
|
|
1927
|
-
/**
|
|
1928
|
-
*
|
|
1929
|
-
* @type {string}
|
|
1930
|
-
* @memberof ChatMessage
|
|
1931
|
-
*/
|
|
1932
819
|
'credit_cost'?: string | null;
|
|
1933
820
|
/**
|
|
1934
821
|
* Cost for the cold start of the message in seconds
|
|
1935
|
-
* @type {number}
|
|
1936
|
-
* @memberof ChatMessage
|
|
1937
822
|
*/
|
|
1938
823
|
'cold_start_cost'?: number;
|
|
1939
|
-
/**
|
|
1940
|
-
*
|
|
1941
|
-
* @type {string}
|
|
1942
|
-
* @memberof ChatMessage
|
|
1943
|
-
*/
|
|
1944
824
|
'app_id'?: string | null;
|
|
1945
|
-
/**
|
|
1946
|
-
*
|
|
1947
|
-
* @type {boolean}
|
|
1948
|
-
* @memberof ChatMessage
|
|
1949
|
-
*/
|
|
1950
825
|
'search_mode'?: boolean | null;
|
|
1951
|
-
/**
|
|
1952
|
-
*
|
|
1953
|
-
* @type {boolean}
|
|
1954
|
-
* @memberof ChatMessage
|
|
1955
|
-
*/
|
|
1956
826
|
'super_mode'?: boolean | null;
|
|
1957
|
-
/**
|
|
1958
|
-
*
|
|
1959
|
-
* @type {SystemMessageType}
|
|
1960
|
-
* @memberof ChatMessage
|
|
1961
|
-
*/
|
|
1962
827
|
'error_type'?: SystemMessageType | null;
|
|
1963
828
|
/**
|
|
1964
829
|
* Timestamp when this message was created
|
|
1965
|
-
* @type {string}
|
|
1966
|
-
* @memberof ChatMessage
|
|
1967
830
|
*/
|
|
1968
831
|
'created_at': string;
|
|
1969
832
|
}
|
|
@@ -1971,35 +834,19 @@ export interface ChatMessage {
|
|
|
1971
834
|
|
|
1972
835
|
/**
|
|
1973
836
|
* Chat message attachment model. An attachment can be a link, image, or file that is associated with a chat message.
|
|
1974
|
-
* @export
|
|
1975
|
-
* @interface ChatMessageAttachment
|
|
1976
837
|
*/
|
|
1977
838
|
export interface ChatMessageAttachment {
|
|
1978
839
|
/**
|
|
1979
840
|
* Type of the attachment (link, image, or file)
|
|
1980
|
-
* @type {ChatMessageAttachmentType}
|
|
1981
|
-
* @memberof ChatMessageAttachment
|
|
1982
841
|
*/
|
|
1983
842
|
'type': ChatMessageAttachmentType;
|
|
1984
|
-
/**
|
|
1985
|
-
*
|
|
1986
|
-
* @type {string}
|
|
1987
|
-
* @memberof ChatMessageAttachment
|
|
1988
|
-
*/
|
|
1989
843
|
'url': string | null;
|
|
1990
|
-
/**
|
|
1991
|
-
*
|
|
1992
|
-
* @type {object}
|
|
1993
|
-
* @memberof ChatMessageAttachment
|
|
1994
|
-
*/
|
|
1995
844
|
'json'?: object | null;
|
|
1996
845
|
}
|
|
1997
846
|
|
|
1998
847
|
|
|
1999
848
|
/**
|
|
2000
849
|
* Type of chat message attachment.
|
|
2001
|
-
* @export
|
|
2002
|
-
* @enum {string}
|
|
2003
850
|
*/
|
|
2004
851
|
|
|
2005
852
|
export const ChatMessageAttachmentType = {
|
|
@@ -2014,270 +861,125 @@ export type ChatMessageAttachmentType = typeof ChatMessageAttachmentType[keyof t
|
|
|
2014
861
|
|
|
2015
862
|
/**
|
|
2016
863
|
* 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.
|
|
2017
|
-
* @export
|
|
2018
|
-
* @interface ChatMessageRequest
|
|
2019
864
|
*/
|
|
2020
865
|
export interface ChatMessageRequest {
|
|
2021
|
-
/**
|
|
2022
|
-
*
|
|
2023
|
-
* @type {string}
|
|
2024
|
-
* @memberof ChatMessageRequest
|
|
2025
|
-
*/
|
|
2026
866
|
'app_id'?: string | null;
|
|
2027
867
|
/**
|
|
2028
868
|
* Content of the message
|
|
2029
|
-
* @type {string}
|
|
2030
|
-
* @memberof ChatMessageRequest
|
|
2031
869
|
*/
|
|
2032
870
|
'message': string;
|
|
2033
|
-
/**
|
|
2034
|
-
*
|
|
2035
|
-
* @type {boolean}
|
|
2036
|
-
* @memberof ChatMessageRequest
|
|
2037
|
-
*/
|
|
2038
871
|
'stream'?: boolean | null;
|
|
2039
|
-
/**
|
|
2040
|
-
*
|
|
2041
|
-
* @type {boolean}
|
|
2042
|
-
* @memberof ChatMessageRequest
|
|
2043
|
-
*/
|
|
2044
872
|
'search_mode'?: boolean | null;
|
|
2045
|
-
/**
|
|
2046
|
-
*
|
|
2047
|
-
* @type {boolean}
|
|
2048
|
-
* @memberof ChatMessageRequest
|
|
2049
|
-
*/
|
|
2050
873
|
'super_mode'?: boolean | null;
|
|
2051
|
-
/**
|
|
2052
|
-
*
|
|
2053
|
-
* @type {Array<ChatMessageAttachment>}
|
|
2054
|
-
* @memberof ChatMessageRequest
|
|
2055
|
-
*/
|
|
2056
874
|
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
2057
875
|
}
|
|
2058
876
|
/**
|
|
2059
877
|
* TypedDict for skill call details.
|
|
2060
|
-
* @export
|
|
2061
|
-
* @interface ChatMessageSkillCall
|
|
2062
878
|
*/
|
|
2063
879
|
export interface ChatMessageSkillCall {
|
|
2064
|
-
/**
|
|
2065
|
-
*
|
|
2066
|
-
* @type {string}
|
|
2067
|
-
* @memberof ChatMessageSkillCall
|
|
2068
|
-
*/
|
|
2069
880
|
'id'?: string;
|
|
2070
|
-
/**
|
|
2071
|
-
*
|
|
2072
|
-
* @type {string}
|
|
2073
|
-
* @memberof ChatMessageSkillCall
|
|
2074
|
-
*/
|
|
2075
881
|
'name': string;
|
|
2076
|
-
/**
|
|
2077
|
-
*
|
|
2078
|
-
* @type {object}
|
|
2079
|
-
* @memberof ChatMessageSkillCall
|
|
2080
|
-
*/
|
|
2081
882
|
'parameters': object;
|
|
2082
|
-
/**
|
|
2083
|
-
*
|
|
2084
|
-
* @type {boolean}
|
|
2085
|
-
* @memberof ChatMessageSkillCall
|
|
2086
|
-
*/
|
|
2087
883
|
'success': boolean;
|
|
2088
|
-
/**
|
|
2089
|
-
*
|
|
2090
|
-
* @type {string}
|
|
2091
|
-
* @memberof ChatMessageSkillCall
|
|
2092
|
-
*/
|
|
2093
884
|
'response'?: string;
|
|
2094
|
-
/**
|
|
2095
|
-
*
|
|
2096
|
-
* @type {string}
|
|
2097
|
-
* @memberof ChatMessageSkillCall
|
|
2098
|
-
*/
|
|
2099
885
|
'error_message'?: string;
|
|
2100
|
-
/**
|
|
2101
|
-
*
|
|
2102
|
-
* @type {string}
|
|
2103
|
-
* @memberof ChatMessageSkillCall
|
|
2104
|
-
*/
|
|
2105
886
|
'credit_event_id'?: string;
|
|
2106
|
-
/**
|
|
2107
|
-
*
|
|
2108
|
-
* @type {string}
|
|
2109
|
-
* @memberof ChatMessageSkillCall
|
|
2110
|
-
*/
|
|
2111
887
|
'credit_cost'?: string;
|
|
2112
888
|
}
|
|
2113
889
|
/**
|
|
2114
890
|
* Response model for chat messages with pagination.
|
|
2115
|
-
* @export
|
|
2116
|
-
* @interface ChatMessagesResponse
|
|
2117
891
|
*/
|
|
2118
892
|
export interface ChatMessagesResponse {
|
|
2119
|
-
/**
|
|
2120
|
-
*
|
|
2121
|
-
* @type {Array<ChatMessage>}
|
|
2122
|
-
* @memberof ChatMessagesResponse
|
|
2123
|
-
*/
|
|
2124
893
|
'data': Array<ChatMessage>;
|
|
2125
|
-
/**
|
|
2126
|
-
*
|
|
2127
|
-
* @type {boolean}
|
|
2128
|
-
* @memberof ChatMessagesResponse
|
|
2129
|
-
*/
|
|
2130
894
|
'has_more'?: boolean;
|
|
2131
|
-
/**
|
|
2132
|
-
*
|
|
2133
|
-
* @type {string}
|
|
2134
|
-
* @memberof ChatMessagesResponse
|
|
2135
|
-
*/
|
|
2136
895
|
'next_cursor'?: string | null;
|
|
2137
896
|
}
|
|
2138
897
|
/**
|
|
2139
898
|
* Request model for updating a chat thread.
|
|
2140
|
-
* @export
|
|
2141
|
-
* @interface ChatUpdateRequest
|
|
2142
899
|
*/
|
|
2143
900
|
export interface ChatUpdateRequest {
|
|
2144
901
|
/**
|
|
2145
902
|
* Updated summary for the chat thread
|
|
2146
|
-
* @type {string}
|
|
2147
|
-
* @memberof ChatUpdateRequest
|
|
2148
903
|
*/
|
|
2149
904
|
'summary': string;
|
|
2150
905
|
}
|
|
2151
906
|
/**
|
|
2152
907
|
* Credit account model with all fields.
|
|
2153
|
-
* @export
|
|
2154
|
-
* @interface CreditAccount
|
|
2155
908
|
*/
|
|
2156
909
|
export interface CreditAccount {
|
|
2157
910
|
/**
|
|
2158
911
|
* Unique identifier for the credit account
|
|
2159
|
-
* @type {string}
|
|
2160
|
-
* @memberof CreditAccount
|
|
2161
912
|
*/
|
|
2162
913
|
'id'?: string;
|
|
2163
914
|
/**
|
|
2164
915
|
* Type of the account owner
|
|
2165
|
-
* @type {OwnerType}
|
|
2166
|
-
* @memberof CreditAccount
|
|
2167
916
|
*/
|
|
2168
917
|
'owner_type': OwnerType;
|
|
2169
918
|
/**
|
|
2170
919
|
* ID of the account owner
|
|
2171
|
-
* @type {string}
|
|
2172
|
-
* @memberof CreditAccount
|
|
2173
920
|
*/
|
|
2174
921
|
'owner_id': string;
|
|
2175
922
|
/**
|
|
2176
923
|
* Daily credit quota that resets each day
|
|
2177
|
-
* @type {string}
|
|
2178
|
-
* @memberof CreditAccount
|
|
2179
924
|
*/
|
|
2180
925
|
'free_quota'?: string;
|
|
2181
926
|
/**
|
|
2182
927
|
* Amount to refill hourly, not exceeding free_quota
|
|
2183
|
-
* @type {string}
|
|
2184
|
-
* @memberof CreditAccount
|
|
2185
928
|
*/
|
|
2186
929
|
'refill_amount'?: string;
|
|
2187
930
|
/**
|
|
2188
931
|
* Current available daily credits
|
|
2189
|
-
* @type {string}
|
|
2190
|
-
* @memberof CreditAccount
|
|
2191
932
|
*/
|
|
2192
933
|
'free_credits'?: string;
|
|
2193
934
|
/**
|
|
2194
935
|
* Reward credits earned through rewards
|
|
2195
|
-
* @type {string}
|
|
2196
|
-
* @memberof CreditAccount
|
|
2197
936
|
*/
|
|
2198
937
|
'reward_credits'?: string;
|
|
2199
938
|
/**
|
|
2200
939
|
* Credits added through top-ups
|
|
2201
|
-
* @type {string}
|
|
2202
|
-
* @memberof CreditAccount
|
|
2203
940
|
*/
|
|
2204
941
|
'credits'?: string;
|
|
2205
|
-
/**
|
|
2206
|
-
*
|
|
2207
|
-
* @type {string}
|
|
2208
|
-
* @memberof CreditAccount
|
|
2209
|
-
*/
|
|
2210
942
|
'income_at'?: string | null;
|
|
2211
|
-
/**
|
|
2212
|
-
*
|
|
2213
|
-
* @type {string}
|
|
2214
|
-
* @memberof CreditAccount
|
|
2215
|
-
*/
|
|
2216
943
|
'expense_at'?: string | null;
|
|
2217
|
-
/**
|
|
2218
|
-
*
|
|
2219
|
-
* @type {string}
|
|
2220
|
-
* @memberof CreditAccount
|
|
2221
|
-
*/
|
|
2222
944
|
'last_event_id'?: string | null;
|
|
2223
945
|
/**
|
|
2224
946
|
* Total income from all credit transactions
|
|
2225
|
-
* @type {string}
|
|
2226
|
-
* @memberof CreditAccount
|
|
2227
947
|
*/
|
|
2228
948
|
'total_income'?: string;
|
|
2229
949
|
/**
|
|
2230
950
|
* Total income from free credit transactions
|
|
2231
|
-
* @type {string}
|
|
2232
|
-
* @memberof CreditAccount
|
|
2233
951
|
*/
|
|
2234
952
|
'total_free_income'?: string;
|
|
2235
953
|
/**
|
|
2236
954
|
* Total income from reward credit transactions
|
|
2237
|
-
* @type {string}
|
|
2238
|
-
* @memberof CreditAccount
|
|
2239
955
|
*/
|
|
2240
956
|
'total_reward_income'?: string;
|
|
2241
957
|
/**
|
|
2242
958
|
* Total income from permanent credit transactions
|
|
2243
|
-
* @type {string}
|
|
2244
|
-
* @memberof CreditAccount
|
|
2245
959
|
*/
|
|
2246
960
|
'total_permanent_income'?: string;
|
|
2247
961
|
/**
|
|
2248
962
|
* Total expense from all credit transactions
|
|
2249
|
-
* @type {string}
|
|
2250
|
-
* @memberof CreditAccount
|
|
2251
963
|
*/
|
|
2252
964
|
'total_expense'?: string;
|
|
2253
965
|
/**
|
|
2254
966
|
* Total expense from free credit transactions
|
|
2255
|
-
* @type {string}
|
|
2256
|
-
* @memberof CreditAccount
|
|
2257
967
|
*/
|
|
2258
968
|
'total_free_expense'?: string;
|
|
2259
969
|
/**
|
|
2260
970
|
* Total expense from reward credit transactions
|
|
2261
|
-
* @type {string}
|
|
2262
|
-
* @memberof CreditAccount
|
|
2263
971
|
*/
|
|
2264
972
|
'total_reward_expense'?: string;
|
|
2265
973
|
/**
|
|
2266
974
|
* Total expense from permanent credit transactions
|
|
2267
|
-
* @type {string}
|
|
2268
|
-
* @memberof CreditAccount
|
|
2269
975
|
*/
|
|
2270
976
|
'total_permanent_expense'?: string;
|
|
2271
977
|
/**
|
|
2272
978
|
* Timestamp when this account was created
|
|
2273
|
-
* @type {string}
|
|
2274
|
-
* @memberof CreditAccount
|
|
2275
979
|
*/
|
|
2276
980
|
'created_at': string;
|
|
2277
981
|
/**
|
|
2278
982
|
* Timestamp when this account was last updated
|
|
2279
|
-
* @type {string}
|
|
2280
|
-
* @memberof CreditAccount
|
|
2281
983
|
*/
|
|
2282
984
|
'updated_at': string;
|
|
2283
985
|
}
|
|
@@ -2285,8 +987,6 @@ export interface CreditAccount {
|
|
|
2285
987
|
|
|
2286
988
|
/**
|
|
2287
989
|
* Credit or debit transaction.
|
|
2288
|
-
* @export
|
|
2289
|
-
* @enum {string}
|
|
2290
990
|
*/
|
|
2291
991
|
|
|
2292
992
|
export const CreditDebit = {
|
|
@@ -2299,278 +999,81 @@ export type CreditDebit = typeof CreditDebit[keyof typeof CreditDebit];
|
|
|
2299
999
|
|
|
2300
1000
|
/**
|
|
2301
1001
|
* Credit event model with all fields.
|
|
2302
|
-
* @export
|
|
2303
|
-
* @interface CreditEvent
|
|
2304
1002
|
*/
|
|
2305
1003
|
export interface CreditEvent {
|
|
2306
1004
|
/**
|
|
2307
1005
|
* Unique identifier for the credit event
|
|
2308
|
-
* @type {string}
|
|
2309
|
-
* @memberof CreditEvent
|
|
2310
1006
|
*/
|
|
2311
1007
|
'id'?: string;
|
|
2312
1008
|
/**
|
|
2313
1009
|
* Account ID from which credits flow
|
|
2314
|
-
* @type {string}
|
|
2315
|
-
* @memberof CreditEvent
|
|
2316
1010
|
*/
|
|
2317
1011
|
'account_id'?: string;
|
|
2318
1012
|
/**
|
|
2319
1013
|
* Type of the event
|
|
2320
|
-
* @type {EventType}
|
|
2321
|
-
* @memberof CreditEvent
|
|
2322
1014
|
*/
|
|
2323
1015
|
'event_type': EventType;
|
|
2324
|
-
/**
|
|
2325
|
-
*
|
|
2326
|
-
* @type {string}
|
|
2327
|
-
* @memberof CreditEvent
|
|
2328
|
-
*/
|
|
2329
1016
|
'user_id'?: string | null;
|
|
2330
1017
|
/**
|
|
2331
1018
|
* Type of upstream transaction
|
|
2332
|
-
* @type {UpstreamType}
|
|
2333
|
-
* @memberof CreditEvent
|
|
2334
1019
|
*/
|
|
2335
1020
|
'upstream_type': UpstreamType;
|
|
2336
1021
|
/**
|
|
2337
1022
|
* Upstream transaction ID if any
|
|
2338
|
-
* @type {string}
|
|
2339
|
-
* @memberof CreditEvent
|
|
2340
1023
|
*/
|
|
2341
1024
|
'upstream_tx_id': string;
|
|
2342
|
-
/**
|
|
2343
|
-
*
|
|
2344
|
-
* @type {string}
|
|
2345
|
-
* @memberof CreditEvent
|
|
2346
|
-
*/
|
|
2347
1025
|
'agent_id'?: string | null;
|
|
2348
|
-
/**
|
|
2349
|
-
*
|
|
2350
|
-
* @type {string}
|
|
2351
|
-
* @memberof CreditEvent
|
|
2352
|
-
*/
|
|
2353
1026
|
'agent_wallet_address'?: string | null;
|
|
2354
|
-
/**
|
|
2355
|
-
*
|
|
2356
|
-
* @type {string}
|
|
2357
|
-
* @memberof CreditEvent
|
|
2358
|
-
*/
|
|
2359
1027
|
'start_message_id'?: string | null;
|
|
2360
|
-
/**
|
|
2361
|
-
*
|
|
2362
|
-
* @type {string}
|
|
2363
|
-
* @memberof CreditEvent
|
|
2364
|
-
*/
|
|
2365
1028
|
'message_id'?: string | null;
|
|
2366
|
-
/**
|
|
2367
|
-
*
|
|
2368
|
-
* @type {string}
|
|
2369
|
-
* @memberof CreditEvent
|
|
2370
|
-
*/
|
|
2371
1029
|
'model'?: string | null;
|
|
2372
|
-
/**
|
|
2373
|
-
*
|
|
2374
|
-
* @type {string}
|
|
2375
|
-
* @memberof CreditEvent
|
|
2376
|
-
*/
|
|
2377
1030
|
'skill_call_id'?: string | null;
|
|
2378
|
-
/**
|
|
2379
|
-
*
|
|
2380
|
-
* @type {string}
|
|
2381
|
-
* @memberof CreditEvent
|
|
2382
|
-
*/
|
|
2383
1031
|
'skill_name'?: string | null;
|
|
2384
1032
|
/**
|
|
2385
1033
|
* Direction of the credit flow
|
|
2386
|
-
* @type {Direction}
|
|
2387
|
-
* @memberof CreditEvent
|
|
2388
1034
|
*/
|
|
2389
1035
|
'direction': Direction;
|
|
2390
1036
|
/**
|
|
2391
1037
|
* Total amount (after discount) of credits involved
|
|
2392
|
-
* @type {string}
|
|
2393
|
-
* @memberof CreditEvent
|
|
2394
1038
|
*/
|
|
2395
1039
|
'total_amount'?: string;
|
|
2396
1040
|
/**
|
|
2397
1041
|
* Type of credits involved
|
|
2398
|
-
* @type {CreditType}
|
|
2399
|
-
* @memberof CreditEvent
|
|
2400
1042
|
*/
|
|
2401
1043
|
'credit_type': CreditType;
|
|
2402
|
-
/**
|
|
2403
|
-
*
|
|
2404
|
-
* @type {Array<CreditType>}
|
|
2405
|
-
* @memberof CreditEvent
|
|
2406
|
-
*/
|
|
2407
1044
|
'credit_types'?: Array<CreditType> | null;
|
|
2408
|
-
/**
|
|
2409
|
-
*
|
|
2410
|
-
* @type {string}
|
|
2411
|
-
* @memberof CreditEvent
|
|
2412
|
-
*/
|
|
2413
1045
|
'balance_after'?: string | null;
|
|
2414
1046
|
/**
|
|
2415
1047
|
* Base amount of credits involved
|
|
2416
|
-
* @type {string}
|
|
2417
|
-
* @memberof CreditEvent
|
|
2418
1048
|
*/
|
|
2419
1049
|
'base_amount'?: string;
|
|
2420
|
-
/**
|
|
2421
|
-
*
|
|
2422
|
-
* @type {string}
|
|
2423
|
-
* @memberof CreditEvent
|
|
2424
|
-
*/
|
|
2425
1050
|
'base_discount_amount'?: string | null;
|
|
2426
|
-
/**
|
|
2427
|
-
*
|
|
2428
|
-
* @type {string}
|
|
2429
|
-
* @memberof CreditEvent
|
|
2430
|
-
*/
|
|
2431
1051
|
'base_original_amount'?: string | null;
|
|
2432
|
-
/**
|
|
2433
|
-
*
|
|
2434
|
-
* @type {string}
|
|
2435
|
-
* @memberof CreditEvent
|
|
2436
|
-
*/
|
|
2437
1052
|
'base_llm_amount'?: string | null;
|
|
2438
|
-
/**
|
|
2439
|
-
*
|
|
2440
|
-
* @type {string}
|
|
2441
|
-
* @memberof CreditEvent
|
|
2442
|
-
*/
|
|
2443
1053
|
'base_skill_amount'?: string | null;
|
|
2444
|
-
/**
|
|
2445
|
-
*
|
|
2446
|
-
* @type {string}
|
|
2447
|
-
* @memberof CreditEvent
|
|
2448
|
-
*/
|
|
2449
1054
|
'base_free_amount'?: string | null;
|
|
2450
|
-
/**
|
|
2451
|
-
*
|
|
2452
|
-
* @type {string}
|
|
2453
|
-
* @memberof CreditEvent
|
|
2454
|
-
*/
|
|
2455
1055
|
'base_reward_amount'?: string | null;
|
|
2456
|
-
/**
|
|
2457
|
-
*
|
|
2458
|
-
* @type {string}
|
|
2459
|
-
* @memberof CreditEvent
|
|
2460
|
-
*/
|
|
2461
1056
|
'base_permanent_amount'?: string | null;
|
|
2462
|
-
/**
|
|
2463
|
-
*
|
|
2464
|
-
* @type {string}
|
|
2465
|
-
* @memberof CreditEvent
|
|
2466
|
-
*/
|
|
2467
1057
|
'fee_platform_amount'?: string | null;
|
|
2468
|
-
/**
|
|
2469
|
-
*
|
|
2470
|
-
* @type {string}
|
|
2471
|
-
* @memberof CreditEvent
|
|
2472
|
-
*/
|
|
2473
1058
|
'fee_platform_free_amount'?: string | null;
|
|
2474
|
-
/**
|
|
2475
|
-
*
|
|
2476
|
-
* @type {string}
|
|
2477
|
-
* @memberof CreditEvent
|
|
2478
|
-
*/
|
|
2479
1059
|
'fee_platform_reward_amount'?: string | null;
|
|
2480
|
-
/**
|
|
2481
|
-
*
|
|
2482
|
-
* @type {string}
|
|
2483
|
-
* @memberof CreditEvent
|
|
2484
|
-
*/
|
|
2485
1060
|
'fee_platform_permanent_amount'?: string | null;
|
|
2486
|
-
/**
|
|
2487
|
-
*
|
|
2488
|
-
* @type {string}
|
|
2489
|
-
* @memberof CreditEvent
|
|
2490
|
-
*/
|
|
2491
1061
|
'fee_dev_account'?: string | null;
|
|
2492
|
-
|
|
2493
|
-
*
|
|
2494
|
-
* @type {string}
|
|
2495
|
-
* @memberof CreditEvent
|
|
2496
|
-
*/
|
|
2497
|
-
'fee_dev_amount'?: string | null;
|
|
2498
|
-
/**
|
|
2499
|
-
*
|
|
2500
|
-
* @type {string}
|
|
2501
|
-
* @memberof CreditEvent
|
|
2502
|
-
*/
|
|
1062
|
+
'fee_dev_amount'?: string | null;
|
|
2503
1063
|
'fee_dev_free_amount'?: string | null;
|
|
2504
|
-
/**
|
|
2505
|
-
*
|
|
2506
|
-
* @type {string}
|
|
2507
|
-
* @memberof CreditEvent
|
|
2508
|
-
*/
|
|
2509
1064
|
'fee_dev_reward_amount'?: string | null;
|
|
2510
|
-
/**
|
|
2511
|
-
*
|
|
2512
|
-
* @type {string}
|
|
2513
|
-
* @memberof CreditEvent
|
|
2514
|
-
*/
|
|
2515
1065
|
'fee_dev_permanent_amount'?: string | null;
|
|
2516
|
-
/**
|
|
2517
|
-
*
|
|
2518
|
-
* @type {string}
|
|
2519
|
-
* @memberof CreditEvent
|
|
2520
|
-
*/
|
|
2521
1066
|
'fee_agent_account'?: string | null;
|
|
2522
|
-
/**
|
|
2523
|
-
*
|
|
2524
|
-
* @type {string}
|
|
2525
|
-
* @memberof CreditEvent
|
|
2526
|
-
*/
|
|
2527
1067
|
'fee_agent_amount'?: string | null;
|
|
2528
|
-
/**
|
|
2529
|
-
*
|
|
2530
|
-
* @type {string}
|
|
2531
|
-
* @memberof CreditEvent
|
|
2532
|
-
*/
|
|
2533
1068
|
'fee_agent_free_amount'?: string | null;
|
|
2534
|
-
/**
|
|
2535
|
-
*
|
|
2536
|
-
* @type {string}
|
|
2537
|
-
* @memberof CreditEvent
|
|
2538
|
-
*/
|
|
2539
1069
|
'fee_agent_reward_amount'?: string | null;
|
|
2540
|
-
/**
|
|
2541
|
-
*
|
|
2542
|
-
* @type {string}
|
|
2543
|
-
* @memberof CreditEvent
|
|
2544
|
-
*/
|
|
2545
1070
|
'fee_agent_permanent_amount'?: string | null;
|
|
2546
|
-
/**
|
|
2547
|
-
*
|
|
2548
|
-
* @type {string}
|
|
2549
|
-
* @memberof CreditEvent
|
|
2550
|
-
*/
|
|
2551
1071
|
'free_amount'?: string | null;
|
|
2552
|
-
/**
|
|
2553
|
-
*
|
|
2554
|
-
* @type {string}
|
|
2555
|
-
* @memberof CreditEvent
|
|
2556
|
-
*/
|
|
2557
1072
|
'reward_amount'?: string | null;
|
|
2558
|
-
/**
|
|
2559
|
-
*
|
|
2560
|
-
* @type {string}
|
|
2561
|
-
* @memberof CreditEvent
|
|
2562
|
-
*/
|
|
2563
1073
|
'permanent_amount'?: string | null;
|
|
2564
|
-
/**
|
|
2565
|
-
*
|
|
2566
|
-
* @type {string}
|
|
2567
|
-
* @memberof CreditEvent
|
|
2568
|
-
*/
|
|
2569
1074
|
'note'?: string | null;
|
|
2570
1075
|
/**
|
|
2571
1076
|
* Timestamp when this event was created
|
|
2572
|
-
* @type {string}
|
|
2573
|
-
* @memberof CreditEvent
|
|
2574
1077
|
*/
|
|
2575
1078
|
'created_at': string;
|
|
2576
1079
|
}
|
|
@@ -2578,424 +1081,169 @@ export interface CreditEvent {
|
|
|
2578
1081
|
|
|
2579
1082
|
/**
|
|
2580
1083
|
* Credit event response model with agent name. Extends CreditEvent to include the agent name for better user experience.
|
|
2581
|
-
* @export
|
|
2582
|
-
* @interface CreditEventWithAgent
|
|
2583
1084
|
*/
|
|
2584
1085
|
export interface CreditEventWithAgent {
|
|
2585
1086
|
/**
|
|
2586
1087
|
* Unique identifier for the credit event
|
|
2587
|
-
* @type {string}
|
|
2588
|
-
* @memberof CreditEventWithAgent
|
|
2589
1088
|
*/
|
|
2590
1089
|
'id'?: string;
|
|
2591
1090
|
/**
|
|
2592
1091
|
* Account ID from which credits flow
|
|
2593
|
-
* @type {string}
|
|
2594
|
-
* @memberof CreditEventWithAgent
|
|
2595
1092
|
*/
|
|
2596
1093
|
'account_id'?: string;
|
|
2597
1094
|
/**
|
|
2598
1095
|
* Type of the event
|
|
2599
|
-
* @type {EventType}
|
|
2600
|
-
* @memberof CreditEventWithAgent
|
|
2601
1096
|
*/
|
|
2602
1097
|
'event_type': EventType;
|
|
2603
|
-
/**
|
|
2604
|
-
*
|
|
2605
|
-
* @type {string}
|
|
2606
|
-
* @memberof CreditEventWithAgent
|
|
2607
|
-
*/
|
|
2608
1098
|
'user_id'?: string | null;
|
|
2609
1099
|
/**
|
|
2610
1100
|
* Type of upstream transaction
|
|
2611
|
-
* @type {UpstreamType}
|
|
2612
|
-
* @memberof CreditEventWithAgent
|
|
2613
1101
|
*/
|
|
2614
1102
|
'upstream_type': UpstreamType;
|
|
2615
1103
|
/**
|
|
2616
1104
|
* Upstream transaction ID if any
|
|
2617
|
-
* @type {string}
|
|
2618
|
-
* @memberof CreditEventWithAgent
|
|
2619
1105
|
*/
|
|
2620
1106
|
'upstream_tx_id': string;
|
|
2621
|
-
/**
|
|
2622
|
-
*
|
|
2623
|
-
* @type {string}
|
|
2624
|
-
* @memberof CreditEventWithAgent
|
|
2625
|
-
*/
|
|
2626
1107
|
'agent_id'?: string | null;
|
|
2627
|
-
/**
|
|
2628
|
-
*
|
|
2629
|
-
* @type {string}
|
|
2630
|
-
* @memberof CreditEventWithAgent
|
|
2631
|
-
*/
|
|
2632
1108
|
'agent_wallet_address'?: string | null;
|
|
2633
|
-
/**
|
|
2634
|
-
*
|
|
2635
|
-
* @type {string}
|
|
2636
|
-
* @memberof CreditEventWithAgent
|
|
2637
|
-
*/
|
|
2638
1109
|
'start_message_id'?: string | null;
|
|
2639
|
-
/**
|
|
2640
|
-
*
|
|
2641
|
-
* @type {string}
|
|
2642
|
-
* @memberof CreditEventWithAgent
|
|
2643
|
-
*/
|
|
2644
1110
|
'message_id'?: string | null;
|
|
2645
|
-
/**
|
|
2646
|
-
*
|
|
2647
|
-
* @type {string}
|
|
2648
|
-
* @memberof CreditEventWithAgent
|
|
2649
|
-
*/
|
|
2650
1111
|
'model'?: string | null;
|
|
2651
|
-
/**
|
|
2652
|
-
*
|
|
2653
|
-
* @type {string}
|
|
2654
|
-
* @memberof CreditEventWithAgent
|
|
2655
|
-
*/
|
|
2656
1112
|
'skill_call_id'?: string | null;
|
|
2657
|
-
/**
|
|
2658
|
-
*
|
|
2659
|
-
* @type {string}
|
|
2660
|
-
* @memberof CreditEventWithAgent
|
|
2661
|
-
*/
|
|
2662
1113
|
'skill_name'?: string | null;
|
|
2663
1114
|
/**
|
|
2664
1115
|
* Direction of the credit flow
|
|
2665
|
-
* @type {Direction}
|
|
2666
|
-
* @memberof CreditEventWithAgent
|
|
2667
1116
|
*/
|
|
2668
1117
|
'direction': Direction;
|
|
2669
1118
|
/**
|
|
2670
1119
|
* Total amount (after discount) of credits involved
|
|
2671
|
-
* @type {string}
|
|
2672
|
-
* @memberof CreditEventWithAgent
|
|
2673
1120
|
*/
|
|
2674
1121
|
'total_amount'?: string;
|
|
2675
1122
|
/**
|
|
2676
1123
|
* Type of credits involved
|
|
2677
|
-
* @type {CreditType}
|
|
2678
|
-
* @memberof CreditEventWithAgent
|
|
2679
1124
|
*/
|
|
2680
1125
|
'credit_type': CreditType;
|
|
2681
|
-
/**
|
|
2682
|
-
*
|
|
2683
|
-
* @type {Array<CreditType>}
|
|
2684
|
-
* @memberof CreditEventWithAgent
|
|
2685
|
-
*/
|
|
2686
1126
|
'credit_types'?: Array<CreditType> | null;
|
|
2687
|
-
/**
|
|
2688
|
-
*
|
|
2689
|
-
* @type {string}
|
|
2690
|
-
* @memberof CreditEventWithAgent
|
|
2691
|
-
*/
|
|
2692
1127
|
'balance_after'?: string | null;
|
|
2693
1128
|
/**
|
|
2694
1129
|
* Base amount of credits involved
|
|
2695
|
-
* @type {string}
|
|
2696
|
-
* @memberof CreditEventWithAgent
|
|
2697
1130
|
*/
|
|
2698
1131
|
'base_amount'?: string;
|
|
2699
|
-
/**
|
|
2700
|
-
*
|
|
2701
|
-
* @type {string}
|
|
2702
|
-
* @memberof CreditEventWithAgent
|
|
2703
|
-
*/
|
|
2704
1132
|
'base_discount_amount'?: string | null;
|
|
2705
|
-
/**
|
|
2706
|
-
*
|
|
2707
|
-
* @type {string}
|
|
2708
|
-
* @memberof CreditEventWithAgent
|
|
2709
|
-
*/
|
|
2710
1133
|
'base_original_amount'?: string | null;
|
|
2711
|
-
/**
|
|
2712
|
-
*
|
|
2713
|
-
* @type {string}
|
|
2714
|
-
* @memberof CreditEventWithAgent
|
|
2715
|
-
*/
|
|
2716
1134
|
'base_llm_amount'?: string | null;
|
|
2717
|
-
/**
|
|
2718
|
-
*
|
|
2719
|
-
* @type {string}
|
|
2720
|
-
* @memberof CreditEventWithAgent
|
|
2721
|
-
*/
|
|
2722
1135
|
'base_skill_amount'?: string | null;
|
|
2723
|
-
/**
|
|
2724
|
-
*
|
|
2725
|
-
* @type {string}
|
|
2726
|
-
* @memberof CreditEventWithAgent
|
|
2727
|
-
*/
|
|
2728
1136
|
'base_free_amount'?: string | null;
|
|
2729
|
-
/**
|
|
2730
|
-
*
|
|
2731
|
-
* @type {string}
|
|
2732
|
-
* @memberof CreditEventWithAgent
|
|
2733
|
-
*/
|
|
2734
1137
|
'base_reward_amount'?: string | null;
|
|
2735
|
-
/**
|
|
2736
|
-
*
|
|
2737
|
-
* @type {string}
|
|
2738
|
-
* @memberof CreditEventWithAgent
|
|
2739
|
-
*/
|
|
2740
1138
|
'base_permanent_amount'?: string | null;
|
|
2741
|
-
/**
|
|
2742
|
-
*
|
|
2743
|
-
* @type {string}
|
|
2744
|
-
* @memberof CreditEventWithAgent
|
|
2745
|
-
*/
|
|
2746
1139
|
'fee_platform_amount'?: string | null;
|
|
2747
|
-
/**
|
|
2748
|
-
*
|
|
2749
|
-
* @type {string}
|
|
2750
|
-
* @memberof CreditEventWithAgent
|
|
2751
|
-
*/
|
|
2752
1140
|
'fee_platform_free_amount'?: string | null;
|
|
2753
|
-
/**
|
|
2754
|
-
*
|
|
2755
|
-
* @type {string}
|
|
2756
|
-
* @memberof CreditEventWithAgent
|
|
2757
|
-
*/
|
|
2758
1141
|
'fee_platform_reward_amount'?: string | null;
|
|
2759
|
-
/**
|
|
2760
|
-
*
|
|
2761
|
-
* @type {string}
|
|
2762
|
-
* @memberof CreditEventWithAgent
|
|
2763
|
-
*/
|
|
2764
1142
|
'fee_platform_permanent_amount'?: string | null;
|
|
2765
|
-
/**
|
|
2766
|
-
*
|
|
2767
|
-
* @type {string}
|
|
2768
|
-
* @memberof CreditEventWithAgent
|
|
2769
|
-
*/
|
|
2770
1143
|
'fee_dev_account'?: string | null;
|
|
2771
|
-
/**
|
|
2772
|
-
*
|
|
2773
|
-
* @type {string}
|
|
2774
|
-
* @memberof CreditEventWithAgent
|
|
2775
|
-
*/
|
|
2776
1144
|
'fee_dev_amount'?: string | null;
|
|
2777
|
-
/**
|
|
2778
|
-
*
|
|
2779
|
-
* @type {string}
|
|
2780
|
-
* @memberof CreditEventWithAgent
|
|
2781
|
-
*/
|
|
2782
1145
|
'fee_dev_free_amount'?: string | null;
|
|
2783
|
-
/**
|
|
2784
|
-
*
|
|
2785
|
-
* @type {string}
|
|
2786
|
-
* @memberof CreditEventWithAgent
|
|
2787
|
-
*/
|
|
2788
1146
|
'fee_dev_reward_amount'?: string | null;
|
|
2789
|
-
/**
|
|
2790
|
-
*
|
|
2791
|
-
* @type {string}
|
|
2792
|
-
* @memberof CreditEventWithAgent
|
|
2793
|
-
*/
|
|
2794
1147
|
'fee_dev_permanent_amount'?: string | null;
|
|
2795
|
-
/**
|
|
2796
|
-
*
|
|
2797
|
-
* @type {string}
|
|
2798
|
-
* @memberof CreditEventWithAgent
|
|
2799
|
-
*/
|
|
2800
1148
|
'fee_agent_account'?: string | null;
|
|
2801
|
-
/**
|
|
2802
|
-
*
|
|
2803
|
-
* @type {string}
|
|
2804
|
-
* @memberof CreditEventWithAgent
|
|
2805
|
-
*/
|
|
2806
1149
|
'fee_agent_amount'?: string | null;
|
|
2807
|
-
/**
|
|
2808
|
-
*
|
|
2809
|
-
* @type {string}
|
|
2810
|
-
* @memberof CreditEventWithAgent
|
|
2811
|
-
*/
|
|
2812
1150
|
'fee_agent_free_amount'?: string | null;
|
|
2813
|
-
/**
|
|
2814
|
-
*
|
|
2815
|
-
* @type {string}
|
|
2816
|
-
* @memberof CreditEventWithAgent
|
|
2817
|
-
*/
|
|
2818
1151
|
'fee_agent_reward_amount'?: string | null;
|
|
2819
|
-
/**
|
|
2820
|
-
*
|
|
2821
|
-
* @type {string}
|
|
2822
|
-
* @memberof CreditEventWithAgent
|
|
2823
|
-
*/
|
|
2824
1152
|
'fee_agent_permanent_amount'?: string | null;
|
|
2825
|
-
/**
|
|
2826
|
-
*
|
|
2827
|
-
* @type {string}
|
|
2828
|
-
* @memberof CreditEventWithAgent
|
|
2829
|
-
*/
|
|
2830
1153
|
'free_amount'?: string | null;
|
|
2831
|
-
/**
|
|
2832
|
-
*
|
|
2833
|
-
* @type {string}
|
|
2834
|
-
* @memberof CreditEventWithAgent
|
|
2835
|
-
*/
|
|
2836
1154
|
'reward_amount'?: string | null;
|
|
2837
|
-
/**
|
|
2838
|
-
*
|
|
2839
|
-
* @type {string}
|
|
2840
|
-
* @memberof CreditEventWithAgent
|
|
2841
|
-
*/
|
|
2842
1155
|
'permanent_amount'?: string | null;
|
|
2843
|
-
/**
|
|
2844
|
-
*
|
|
2845
|
-
* @type {string}
|
|
2846
|
-
* @memberof CreditEventWithAgent
|
|
2847
|
-
*/
|
|
2848
1156
|
'note'?: string | null;
|
|
2849
1157
|
/**
|
|
2850
1158
|
* Timestamp when this event was created
|
|
2851
|
-
* @type {string}
|
|
2852
|
-
* @memberof CreditEventWithAgent
|
|
2853
1159
|
*/
|
|
2854
1160
|
'created_at': string;
|
|
2855
|
-
/**
|
|
2856
|
-
*
|
|
2857
|
-
* @type {string}
|
|
2858
|
-
* @memberof CreditEventWithAgent
|
|
2859
|
-
*/
|
|
2860
1161
|
'agent_name'?: string | null;
|
|
2861
1162
|
}
|
|
2862
1163
|
|
|
2863
1164
|
|
|
2864
1165
|
/**
|
|
2865
1166
|
* 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.
|
|
2866
|
-
* @export
|
|
2867
|
-
* @interface CreditEventsResponse
|
|
2868
1167
|
*/
|
|
2869
1168
|
export interface CreditEventsResponse {
|
|
2870
1169
|
/**
|
|
2871
1170
|
* List of credit events with agent names
|
|
2872
|
-
* @type {Array<CreditEventWithAgent>}
|
|
2873
|
-
* @memberof CreditEventsResponse
|
|
2874
1171
|
*/
|
|
2875
1172
|
'data': Array<CreditEventWithAgent>;
|
|
2876
1173
|
/**
|
|
2877
1174
|
* Indicates if there are more items
|
|
2878
|
-
* @type {boolean}
|
|
2879
|
-
* @memberof CreditEventsResponse
|
|
2880
1175
|
*/
|
|
2881
1176
|
'has_more': boolean;
|
|
2882
|
-
/**
|
|
2883
|
-
*
|
|
2884
|
-
* @type {string}
|
|
2885
|
-
* @memberof CreditEventsResponse
|
|
2886
|
-
*/
|
|
2887
1177
|
'next_cursor'?: string | null;
|
|
2888
1178
|
}
|
|
2889
1179
|
/**
|
|
2890
1180
|
* Credit transaction response model with associated event data. Extends CreditTransaction to include the related CreditEvent if available.
|
|
2891
|
-
* @export
|
|
2892
|
-
* @interface CreditTransactionResp
|
|
2893
1181
|
*/
|
|
2894
1182
|
export interface CreditTransactionResp {
|
|
2895
1183
|
/**
|
|
2896
1184
|
* Unique identifier for the credit transaction
|
|
2897
|
-
* @type {string}
|
|
2898
|
-
* @memberof CreditTransactionResp
|
|
2899
1185
|
*/
|
|
2900
1186
|
'id'?: string;
|
|
2901
1187
|
/**
|
|
2902
1188
|
* ID of the account this transaction belongs to
|
|
2903
|
-
* @type {string}
|
|
2904
|
-
* @memberof CreditTransactionResp
|
|
2905
1189
|
*/
|
|
2906
1190
|
'account_id': string;
|
|
2907
1191
|
/**
|
|
2908
1192
|
* ID of the event that triggered this transaction
|
|
2909
|
-
* @type {string}
|
|
2910
|
-
* @memberof CreditTransactionResp
|
|
2911
1193
|
*/
|
|
2912
1194
|
'event_id': string;
|
|
2913
1195
|
/**
|
|
2914
1196
|
* Type of the transaction
|
|
2915
|
-
* @type {TransactionType}
|
|
2916
|
-
* @memberof CreditTransactionResp
|
|
2917
1197
|
*/
|
|
2918
1198
|
'tx_type': TransactionType;
|
|
2919
1199
|
/**
|
|
2920
1200
|
* Whether this is a credit or debit transaction
|
|
2921
|
-
* @type {CreditDebit}
|
|
2922
|
-
* @memberof CreditTransactionResp
|
|
2923
1201
|
*/
|
|
2924
1202
|
'credit_debit': CreditDebit;
|
|
2925
1203
|
/**
|
|
2926
1204
|
* Amount of credits changed
|
|
2927
|
-
* @type {string}
|
|
2928
|
-
* @memberof CreditTransactionResp
|
|
2929
1205
|
*/
|
|
2930
1206
|
'change_amount'?: string;
|
|
2931
1207
|
/**
|
|
2932
1208
|
* Amount of free credits changed
|
|
2933
|
-
* @type {string}
|
|
2934
|
-
* @memberof CreditTransactionResp
|
|
2935
1209
|
*/
|
|
2936
1210
|
'free_amount'?: string;
|
|
2937
1211
|
/**
|
|
2938
1212
|
* Amount of reward credits changed
|
|
2939
|
-
* @type {string}
|
|
2940
|
-
* @memberof CreditTransactionResp
|
|
2941
1213
|
*/
|
|
2942
1214
|
'reward_amount'?: string;
|
|
2943
1215
|
/**
|
|
2944
1216
|
* Amount of permanent credits changed
|
|
2945
|
-
* @type {string}
|
|
2946
|
-
* @memberof CreditTransactionResp
|
|
2947
1217
|
*/
|
|
2948
1218
|
'permanent_amount'?: string;
|
|
2949
1219
|
/**
|
|
2950
1220
|
* Type of credits involved
|
|
2951
|
-
* @type {CreditType}
|
|
2952
|
-
* @memberof CreditTransactionResp
|
|
2953
1221
|
*/
|
|
2954
1222
|
'credit_type': CreditType;
|
|
2955
1223
|
/**
|
|
2956
1224
|
* Timestamp when this transaction was created
|
|
2957
|
-
* @type {string}
|
|
2958
|
-
* @memberof CreditTransactionResp
|
|
2959
1225
|
*/
|
|
2960
1226
|
'created_at': string;
|
|
2961
|
-
/**
|
|
2962
|
-
*
|
|
2963
|
-
* @type {CreditEvent}
|
|
2964
|
-
* @memberof CreditTransactionResp
|
|
2965
|
-
*/
|
|
2966
1227
|
'event'?: CreditEvent | null;
|
|
2967
1228
|
}
|
|
2968
1229
|
|
|
2969
1230
|
|
|
2970
1231
|
/**
|
|
2971
1232
|
* Paginated response model for credit transactions. Contains a list of credit transactions (with event data), a flag for more items, and a pagination cursor.
|
|
2972
|
-
* @export
|
|
2973
|
-
* @interface CreditTransactionsResponse
|
|
2974
1233
|
*/
|
|
2975
1234
|
export interface CreditTransactionsResponse {
|
|
2976
1235
|
/**
|
|
2977
1236
|
* List of credit transactions
|
|
2978
|
-
* @type {Array<CreditTransactionResp>}
|
|
2979
|
-
* @memberof CreditTransactionsResponse
|
|
2980
1237
|
*/
|
|
2981
1238
|
'data': Array<CreditTransactionResp>;
|
|
2982
1239
|
/**
|
|
2983
1240
|
* Indicates if there are more items
|
|
2984
|
-
* @type {boolean}
|
|
2985
|
-
* @memberof CreditTransactionsResponse
|
|
2986
1241
|
*/
|
|
2987
1242
|
'has_more': boolean;
|
|
2988
|
-
/**
|
|
2989
|
-
*
|
|
2990
|
-
* @type {string}
|
|
2991
|
-
* @memberof CreditTransactionsResponse
|
|
2992
|
-
*/
|
|
2993
1243
|
'next_cursor'?: string | null;
|
|
2994
1244
|
}
|
|
2995
1245
|
/**
|
|
2996
1246
|
* Credit type is used in db column names, do not change it.
|
|
2997
|
-
* @export
|
|
2998
|
-
* @enum {string}
|
|
2999
1247
|
*/
|
|
3000
1248
|
|
|
3001
1249
|
export const CreditType = {
|
|
@@ -3009,8 +1257,6 @@ export type CreditType = typeof CreditType[keyof typeof CreditType];
|
|
|
3009
1257
|
|
|
3010
1258
|
/**
|
|
3011
1259
|
* Direction of credit flow.
|
|
3012
|
-
* @export
|
|
3013
|
-
* @enum {string}
|
|
3014
1260
|
*/
|
|
3015
1261
|
|
|
3016
1262
|
export const Direction = {
|
|
@@ -3023,8 +1269,6 @@ export type Direction = typeof Direction[keyof typeof Direction];
|
|
|
3023
1269
|
|
|
3024
1270
|
/**
|
|
3025
1271
|
* Type of credit event.
|
|
3026
|
-
* @export
|
|
3027
|
-
* @enum {string}
|
|
3028
1272
|
*/
|
|
3029
1273
|
|
|
3030
1274
|
export const EventType = {
|
|
@@ -3046,245 +1290,90 @@ export const EventType = {
|
|
|
3046
1290
|
export type EventType = typeof EventType[keyof typeof EventType];
|
|
3047
1291
|
|
|
3048
1292
|
|
|
1293
|
+
/**
|
|
1294
|
+
* Response model for file upload.
|
|
1295
|
+
*/
|
|
1296
|
+
export interface FileUploadResponse {
|
|
1297
|
+
/**
|
|
1298
|
+
* CDN URL of the uploaded file
|
|
1299
|
+
*/
|
|
1300
|
+
'file_url': string;
|
|
1301
|
+
/**
|
|
1302
|
+
* Unique identifier for the uploaded file
|
|
1303
|
+
*/
|
|
1304
|
+
'file_id': string;
|
|
1305
|
+
}
|
|
3049
1306
|
/**
|
|
3050
1307
|
* Response model for single generation detail.
|
|
3051
|
-
* @export
|
|
3052
|
-
* @interface GenerationDetailResponse
|
|
3053
1308
|
*/
|
|
3054
1309
|
export interface GenerationDetailResponse {
|
|
3055
1310
|
/**
|
|
3056
1311
|
* Project ID
|
|
3057
|
-
* @type {string}
|
|
3058
|
-
* @memberof GenerationDetailResponse
|
|
3059
1312
|
*/
|
|
3060
1313
|
'project_id': string;
|
|
3061
|
-
/**
|
|
3062
|
-
*
|
|
3063
|
-
* @type {string}
|
|
3064
|
-
* @memberof GenerationDetailResponse
|
|
3065
|
-
*/
|
|
3066
1314
|
'user_id'?: string | null;
|
|
3067
|
-
/**
|
|
3068
|
-
*
|
|
3069
|
-
* @type {string}
|
|
3070
|
-
* @memberof GenerationDetailResponse
|
|
3071
|
-
*/
|
|
3072
1315
|
'created_at'?: string | null;
|
|
3073
|
-
/**
|
|
3074
|
-
*
|
|
3075
|
-
* @type {string}
|
|
3076
|
-
* @memberof GenerationDetailResponse
|
|
3077
|
-
*/
|
|
3078
1316
|
'last_activity'?: string | null;
|
|
3079
1317
|
/**
|
|
3080
1318
|
* Number of messages in conversation
|
|
3081
|
-
* @type {number}
|
|
3082
|
-
* @memberof GenerationDetailResponse
|
|
3083
1319
|
*/
|
|
3084
1320
|
'message_count': number;
|
|
3085
|
-
/**
|
|
3086
|
-
*
|
|
3087
|
-
* @type {object}
|
|
3088
|
-
* @memberof GenerationDetailResponse
|
|
3089
|
-
*/
|
|
3090
1321
|
'last_message'?: object | null;
|
|
3091
|
-
/**
|
|
3092
|
-
*
|
|
3093
|
-
* @type {object}
|
|
3094
|
-
* @memberof GenerationDetailResponse
|
|
3095
|
-
*/
|
|
3096
1322
|
'first_message'?: object | null;
|
|
3097
1323
|
/**
|
|
3098
1324
|
* Full conversation history
|
|
3099
|
-
* @type {Array<object>}
|
|
3100
|
-
* @memberof GenerationDetailResponse
|
|
3101
1325
|
*/
|
|
3102
1326
|
'conversation_history': Array<object>;
|
|
3103
1327
|
}
|
|
3104
1328
|
/**
|
|
3105
1329
|
* Response model for generations list.
|
|
3106
|
-
* @export
|
|
3107
|
-
* @interface GenerationsListResponse
|
|
3108
1330
|
*/
|
|
3109
1331
|
export interface GenerationsListResponse {
|
|
3110
1332
|
/**
|
|
3111
1333
|
* List of recent projects with their conversation history
|
|
3112
|
-
* @type {Array<object>}
|
|
3113
|
-
* @memberof GenerationsListResponse
|
|
3114
1334
|
*/
|
|
3115
1335
|
'projects': Array<object>;
|
|
3116
1336
|
}
|
|
3117
|
-
/**
|
|
3118
|
-
*
|
|
3119
|
-
* @export
|
|
3120
|
-
* @interface HTTPValidationError
|
|
3121
|
-
*/
|
|
3122
1337
|
export interface HTTPValidationError {
|
|
3123
|
-
/**
|
|
3124
|
-
*
|
|
3125
|
-
* @type {Array<ValidationError>}
|
|
3126
|
-
* @memberof HTTPValidationError
|
|
3127
|
-
*/
|
|
3128
1338
|
'detail'?: Array<ValidationError>;
|
|
3129
1339
|
}
|
|
3130
1340
|
/**
|
|
3131
1341
|
* LLM model information with provider display name.
|
|
3132
|
-
* @export
|
|
3133
|
-
* @interface LLMModelInfoWithProviderName
|
|
3134
1342
|
*/
|
|
3135
1343
|
export interface LLMModelInfoWithProviderName {
|
|
3136
|
-
/**
|
|
3137
|
-
*
|
|
3138
|
-
* @type {string}
|
|
3139
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3140
|
-
*/
|
|
3141
1344
|
'id': string;
|
|
3142
|
-
/**
|
|
3143
|
-
*
|
|
3144
|
-
* @type {string}
|
|
3145
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3146
|
-
*/
|
|
3147
1345
|
'name': string;
|
|
3148
|
-
/**
|
|
3149
|
-
*
|
|
3150
|
-
* @type {LLMProvider}
|
|
3151
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3152
|
-
*/
|
|
3153
1346
|
'provider': LLMProvider;
|
|
3154
|
-
/**
|
|
3155
|
-
*
|
|
3156
|
-
* @type {boolean}
|
|
3157
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3158
|
-
*/
|
|
3159
1347
|
'enabled'?: boolean;
|
|
3160
|
-
/**
|
|
3161
|
-
*
|
|
3162
|
-
* @type {string}
|
|
3163
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3164
|
-
*/
|
|
3165
1348
|
'input_price': string;
|
|
3166
|
-
/**
|
|
3167
|
-
*
|
|
3168
|
-
* @type {string}
|
|
3169
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3170
|
-
*/
|
|
3171
1349
|
'output_price': string;
|
|
3172
|
-
/**
|
|
3173
|
-
*
|
|
3174
|
-
* @type {number}
|
|
3175
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3176
|
-
*/
|
|
3177
1350
|
'price_level'?: number | null;
|
|
3178
|
-
/**
|
|
3179
|
-
*
|
|
3180
|
-
* @type {number}
|
|
3181
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3182
|
-
*/
|
|
3183
1351
|
'context_length': number;
|
|
3184
|
-
/**
|
|
3185
|
-
*
|
|
3186
|
-
* @type {number}
|
|
3187
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3188
|
-
*/
|
|
3189
1352
|
'output_length': number;
|
|
3190
|
-
/**
|
|
3191
|
-
*
|
|
3192
|
-
* @type {number}
|
|
3193
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3194
|
-
*/
|
|
3195
1353
|
'intelligence': number;
|
|
3196
|
-
/**
|
|
3197
|
-
*
|
|
3198
|
-
* @type {number}
|
|
3199
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3200
|
-
*/
|
|
3201
1354
|
'speed': number;
|
|
3202
|
-
/**
|
|
3203
|
-
*
|
|
3204
|
-
* @type {boolean}
|
|
3205
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3206
|
-
*/
|
|
3207
1355
|
'supports_image_input'?: boolean;
|
|
3208
|
-
/**
|
|
3209
|
-
*
|
|
3210
|
-
* @type {boolean}
|
|
3211
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3212
|
-
*/
|
|
3213
1356
|
'supports_skill_calls'?: boolean;
|
|
3214
|
-
/**
|
|
3215
|
-
*
|
|
3216
|
-
* @type {boolean}
|
|
3217
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3218
|
-
*/
|
|
3219
1357
|
'supports_structured_output'?: boolean;
|
|
3220
|
-
/**
|
|
3221
|
-
*
|
|
3222
|
-
* @type {boolean}
|
|
3223
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3224
|
-
*/
|
|
3225
1358
|
'has_reasoning'?: boolean;
|
|
3226
|
-
/**
|
|
3227
|
-
*
|
|
3228
|
-
* @type {boolean}
|
|
3229
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3230
|
-
*/
|
|
3231
1359
|
'supports_search'?: boolean;
|
|
3232
|
-
/**
|
|
3233
|
-
*
|
|
3234
|
-
* @type {boolean}
|
|
3235
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3236
|
-
*/
|
|
3237
1360
|
'supports_temperature'?: boolean;
|
|
3238
|
-
/**
|
|
3239
|
-
*
|
|
3240
|
-
* @type {boolean}
|
|
3241
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3242
|
-
*/
|
|
3243
1361
|
'supports_frequency_penalty'?: boolean;
|
|
3244
|
-
/**
|
|
3245
|
-
*
|
|
3246
|
-
* @type {boolean}
|
|
3247
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3248
|
-
*/
|
|
3249
1362
|
'supports_presence_penalty'?: boolean;
|
|
3250
|
-
/**
|
|
3251
|
-
*
|
|
3252
|
-
* @type {string}
|
|
3253
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3254
|
-
*/
|
|
3255
1363
|
'api_base'?: string | null;
|
|
3256
|
-
/**
|
|
3257
|
-
*
|
|
3258
|
-
* @type {number}
|
|
3259
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3260
|
-
*/
|
|
3261
1364
|
'timeout'?: number;
|
|
3262
1365
|
/**
|
|
3263
1366
|
* Timestamp when this data was created
|
|
3264
|
-
* @type {string}
|
|
3265
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3266
1367
|
*/
|
|
3267
1368
|
'created_at'?: string;
|
|
3268
1369
|
/**
|
|
3269
1370
|
* Timestamp when this data was updated
|
|
3270
|
-
* @type {string}
|
|
3271
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3272
1371
|
*/
|
|
3273
1372
|
'updated_at'?: string;
|
|
3274
|
-
/**
|
|
3275
|
-
*
|
|
3276
|
-
* @type {string}
|
|
3277
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3278
|
-
*/
|
|
3279
1373
|
'provider_name': string;
|
|
3280
1374
|
}
|
|
3281
1375
|
|
|
3282
1376
|
|
|
3283
|
-
/**
|
|
3284
|
-
*
|
|
3285
|
-
* @export
|
|
3286
|
-
* @enum {string}
|
|
3287
|
-
*/
|
|
3288
1377
|
|
|
3289
1378
|
export const LLMProvider = {
|
|
3290
1379
|
Openai: 'openai',
|
|
@@ -3300,8 +1389,6 @@ export type LLMProvider = typeof LLMProvider[keyof typeof LLMProvider];
|
|
|
3300
1389
|
|
|
3301
1390
|
/**
|
|
3302
1391
|
* Type of credit account owner.
|
|
3303
|
-
* @export
|
|
3304
|
-
* @enum {string}
|
|
3305
1392
|
*/
|
|
3306
1393
|
|
|
3307
1394
|
export const OwnerType = {
|
|
@@ -3315,87 +1402,44 @@ export type OwnerType = typeof OwnerType[keyof typeof OwnerType];
|
|
|
3315
1402
|
|
|
3316
1403
|
/**
|
|
3317
1404
|
* Pydantic model for Skill.
|
|
3318
|
-
* @export
|
|
3319
|
-
* @interface Skill
|
|
3320
1405
|
*/
|
|
3321
1406
|
export interface Skill {
|
|
3322
1407
|
/**
|
|
3323
1408
|
* Name of the skill
|
|
3324
|
-
* @type {string}
|
|
3325
|
-
* @memberof Skill
|
|
3326
1409
|
*/
|
|
3327
1410
|
'name': string;
|
|
3328
1411
|
/**
|
|
3329
1412
|
* Is this skill enabled?
|
|
3330
|
-
* @type {boolean}
|
|
3331
|
-
* @memberof Skill
|
|
3332
1413
|
*/
|
|
3333
1414
|
'enabled': boolean;
|
|
3334
1415
|
/**
|
|
3335
1416
|
* Category of the skill
|
|
3336
|
-
* @type {string}
|
|
3337
|
-
* @memberof Skill
|
|
3338
1417
|
*/
|
|
3339
1418
|
'category': string;
|
|
3340
|
-
/**
|
|
3341
|
-
*
|
|
3342
|
-
* @type {string}
|
|
3343
|
-
* @memberof Skill
|
|
3344
|
-
*/
|
|
3345
1419
|
'config_name': string | null;
|
|
3346
|
-
/**
|
|
3347
|
-
*
|
|
3348
|
-
* @type {number}
|
|
3349
|
-
* @memberof Skill
|
|
3350
|
-
*/
|
|
3351
1420
|
'price_level': number | null;
|
|
3352
1421
|
/**
|
|
3353
1422
|
* Price for this skill
|
|
3354
|
-
* @type {string}
|
|
3355
|
-
* @memberof Skill
|
|
3356
1423
|
*/
|
|
3357
1424
|
'price'?: string;
|
|
3358
1425
|
/**
|
|
3359
1426
|
* Price for this skill with self key
|
|
3360
|
-
* @type {string}
|
|
3361
|
-
* @memberof Skill
|
|
3362
1427
|
*/
|
|
3363
1428
|
'price_self_key'?: string;
|
|
3364
|
-
/**
|
|
3365
|
-
*
|
|
3366
|
-
* @type {number}
|
|
3367
|
-
* @memberof Skill
|
|
3368
|
-
*/
|
|
3369
1429
|
'rate_limit_count': number | null;
|
|
3370
|
-
/**
|
|
3371
|
-
*
|
|
3372
|
-
* @type {number}
|
|
3373
|
-
* @memberof Skill
|
|
3374
|
-
*/
|
|
3375
1430
|
'rate_limit_minutes': number | null;
|
|
3376
|
-
/**
|
|
3377
|
-
*
|
|
3378
|
-
* @type {string}
|
|
3379
|
-
* @memberof Skill
|
|
3380
|
-
*/
|
|
3381
1431
|
'author': string | null;
|
|
3382
1432
|
/**
|
|
3383
1433
|
* Timestamp when this record was created
|
|
3384
|
-
* @type {string}
|
|
3385
|
-
* @memberof Skill
|
|
3386
1434
|
*/
|
|
3387
1435
|
'created_at': string;
|
|
3388
1436
|
/**
|
|
3389
1437
|
* Timestamp when this record was last updated
|
|
3390
|
-
* @type {string}
|
|
3391
|
-
* @memberof Skill
|
|
3392
1438
|
*/
|
|
3393
1439
|
'updated_at': string;
|
|
3394
1440
|
}
|
|
3395
1441
|
/**
|
|
3396
1442
|
* Type of system message.
|
|
3397
|
-
* @export
|
|
3398
|
-
* @enum {string}
|
|
3399
1443
|
*/
|
|
3400
1444
|
|
|
3401
1445
|
export const SystemMessageType = {
|
|
@@ -3412,8 +1456,6 @@ export type SystemMessageType = typeof SystemMessageType[keyof typeof SystemMess
|
|
|
3412
1456
|
|
|
3413
1457
|
/**
|
|
3414
1458
|
* Type of credit transaction.
|
|
3415
|
-
* @export
|
|
3416
|
-
* @enum {string}
|
|
3417
1459
|
*/
|
|
3418
1460
|
|
|
3419
1461
|
export const TransactionType = {
|
|
@@ -3439,29 +1481,12 @@ export const TransactionType = {
|
|
|
3439
1481
|
export type TransactionType = typeof TransactionType[keyof typeof TransactionType];
|
|
3440
1482
|
|
|
3441
1483
|
|
|
3442
|
-
/**
|
|
3443
|
-
*
|
|
3444
|
-
* @export
|
|
3445
|
-
* @interface TwitterAuthResponse
|
|
3446
|
-
*/
|
|
3447
1484
|
export interface TwitterAuthResponse {
|
|
3448
|
-
/**
|
|
3449
|
-
*
|
|
3450
|
-
* @type {string}
|
|
3451
|
-
* @memberof TwitterAuthResponse
|
|
3452
|
-
*/
|
|
3453
1485
|
'agent_id': string;
|
|
3454
|
-
/**
|
|
3455
|
-
*
|
|
3456
|
-
* @type {string}
|
|
3457
|
-
* @memberof TwitterAuthResponse
|
|
3458
|
-
*/
|
|
3459
1486
|
'url': string;
|
|
3460
1487
|
}
|
|
3461
1488
|
/**
|
|
3462
1489
|
* Type of upstream transaction.
|
|
3463
|
-
* @export
|
|
3464
|
-
* @enum {string}
|
|
3465
1490
|
*/
|
|
3466
1491
|
|
|
3467
1492
|
export const UpstreamType = {
|
|
@@ -3474,42 +1499,16 @@ export const UpstreamType = {
|
|
|
3474
1499
|
export type UpstreamType = typeof UpstreamType[keyof typeof UpstreamType];
|
|
3475
1500
|
|
|
3476
1501
|
|
|
3477
|
-
/**
|
|
3478
|
-
*
|
|
3479
|
-
* @export
|
|
3480
|
-
* @interface ValidationError
|
|
3481
|
-
*/
|
|
3482
1502
|
export interface ValidationError {
|
|
3483
|
-
/**
|
|
3484
|
-
*
|
|
3485
|
-
* @type {Array<ValidationErrorLocInner>}
|
|
3486
|
-
* @memberof ValidationError
|
|
3487
|
-
*/
|
|
3488
1503
|
'loc': Array<ValidationErrorLocInner>;
|
|
3489
|
-
/**
|
|
3490
|
-
*
|
|
3491
|
-
* @type {string}
|
|
3492
|
-
* @memberof ValidationError
|
|
3493
|
-
*/
|
|
3494
1504
|
'msg': string;
|
|
3495
|
-
/**
|
|
3496
|
-
*
|
|
3497
|
-
* @type {string}
|
|
3498
|
-
* @memberof ValidationError
|
|
3499
|
-
*/
|
|
3500
1505
|
'type': string;
|
|
3501
1506
|
}
|
|
3502
|
-
/**
|
|
3503
|
-
*
|
|
3504
|
-
* @export
|
|
3505
|
-
* @interface ValidationErrorLocInner
|
|
3506
|
-
*/
|
|
3507
1507
|
export interface ValidationErrorLocInner {
|
|
3508
1508
|
}
|
|
3509
1509
|
|
|
3510
1510
|
/**
|
|
3511
1511
|
* AgentApi - axios parameter creator
|
|
3512
|
-
* @export
|
|
3513
1512
|
*/
|
|
3514
1513
|
export const AgentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3515
1514
|
return {
|
|
@@ -4036,7 +2035,6 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
4036
2035
|
|
|
4037
2036
|
/**
|
|
4038
2037
|
* AgentApi - functional programming interface
|
|
4039
|
-
* @export
|
|
4040
2038
|
*/
|
|
4041
2039
|
export const AgentApiFp = function(configuration?: Configuration) {
|
|
4042
2040
|
const localVarAxiosParamCreator = AgentApiAxiosParamCreator(configuration)
|
|
@@ -4222,7 +2220,6 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
4222
2220
|
|
|
4223
2221
|
/**
|
|
4224
2222
|
* AgentApi - factory interface
|
|
4225
|
-
* @export
|
|
4226
2223
|
*/
|
|
4227
2224
|
export const AgentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4228
2225
|
const localVarFp = AgentApiFp(configuration)
|
|
@@ -4369,9 +2366,6 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
4369
2366
|
|
|
4370
2367
|
/**
|
|
4371
2368
|
* AgentApi - object-oriented interface
|
|
4372
|
-
* @export
|
|
4373
|
-
* @class AgentApi
|
|
4374
|
-
* @extends {BaseAPI}
|
|
4375
2369
|
*/
|
|
4376
2370
|
export class AgentApi extends BaseAPI {
|
|
4377
2371
|
/**
|
|
@@ -4380,7 +2374,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4380
2374
|
* @param {AgentUpdate} [agentUpdate]
|
|
4381
2375
|
* @param {*} [options] Override http request option.
|
|
4382
2376
|
* @throws {RequiredError}
|
|
4383
|
-
* @memberof AgentApi
|
|
4384
2377
|
*/
|
|
4385
2378
|
public createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
4386
2379
|
return AgentApiFp(this.configuration).createAgent(agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4392,7 +2385,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4392
2385
|
* @param {string} agentId ID of the agent to export
|
|
4393
2386
|
* @param {*} [options] Override http request option.
|
|
4394
2387
|
* @throws {RequiredError}
|
|
4395
|
-
* @memberof AgentApi
|
|
4396
2388
|
*/
|
|
4397
2389
|
public exportAgent(agentId: string, options?: RawAxiosRequestConfig) {
|
|
4398
2390
|
return AgentApiFp(this.configuration).exportAgent(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4404,7 +2396,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4404
2396
|
* @param {string} agentId ID of the agent to retrieve
|
|
4405
2397
|
* @param {*} [options] Override http request option.
|
|
4406
2398
|
* @throws {RequiredError}
|
|
4407
|
-
* @memberof AgentApi
|
|
4408
2399
|
*/
|
|
4409
2400
|
public getAgent(agentId: string, options?: RawAxiosRequestConfig) {
|
|
4410
2401
|
return AgentApiFp(this.configuration).getAgent(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4416,7 +2407,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4416
2407
|
* @param {string} agentId ID of the agent
|
|
4417
2408
|
* @param {*} [options] Override http request option.
|
|
4418
2409
|
* @throws {RequiredError}
|
|
4419
|
-
* @memberof AgentApi
|
|
4420
2410
|
*/
|
|
4421
2411
|
public getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig) {
|
|
4422
2412
|
return AgentApiFp(this.configuration).getAgentApiKey(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4428,7 +2418,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4428
2418
|
* @param {string} agentId ID of the agent
|
|
4429
2419
|
* @param {*} [options] Override http request option.
|
|
4430
2420
|
* @throws {RequiredError}
|
|
4431
|
-
* @memberof AgentApi
|
|
4432
2421
|
*/
|
|
4433
2422
|
public getAgentAssets(agentId: string, options?: RawAxiosRequestConfig) {
|
|
4434
2423
|
return AgentApiFp(this.configuration).getAgentAssets(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4440,7 +2429,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4440
2429
|
* @param {string} aid ID of the agent
|
|
4441
2430
|
* @param {*} [options] Override http request option.
|
|
4442
2431
|
* @throws {RequiredError}
|
|
4443
|
-
* @memberof AgentApi
|
|
4444
2432
|
*/
|
|
4445
2433
|
public getAgentStatistics(aid: string, options?: RawAxiosRequestConfig) {
|
|
4446
2434
|
return AgentApiFp(this.configuration).getAgentStatistics(aid, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4454,7 +2442,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4454
2442
|
* @param {number} [limit] Maximum number of agents to return
|
|
4455
2443
|
* @param {*} [options] Override http request option.
|
|
4456
2444
|
* @throws {RequiredError}
|
|
4457
|
-
* @memberof AgentApi
|
|
4458
2445
|
*/
|
|
4459
2446
|
public getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
4460
2447
|
return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4468,7 +2455,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4468
2455
|
* @param {number} [limit] Maximum number of messages to return
|
|
4469
2456
|
* @param {*} [options] Override http request option.
|
|
4470
2457
|
* @throws {RequiredError}
|
|
4471
|
-
* @memberof AgentApi
|
|
4472
2458
|
*/
|
|
4473
2459
|
public getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
4474
2460
|
return AgentApiFp(this.configuration).getSkillHistory(aid, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4481,7 +2467,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4481
2467
|
* @param {File} file YAML file containing agent configuration
|
|
4482
2468
|
* @param {*} [options] Override http request option.
|
|
4483
2469
|
* @throws {RequiredError}
|
|
4484
|
-
* @memberof AgentApi
|
|
4485
2470
|
*/
|
|
4486
2471
|
public importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig) {
|
|
4487
2472
|
return AgentApiFp(this.configuration).importAgent(agentId, file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4494,7 +2479,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4494
2479
|
* @param {AgentUpdate} [agentUpdate]
|
|
4495
2480
|
* @param {*} [options] Override http request option.
|
|
4496
2481
|
* @throws {RequiredError}
|
|
4497
|
-
* @memberof AgentApi
|
|
4498
2482
|
*/
|
|
4499
2483
|
public overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
4500
2484
|
return AgentApiFp(this.configuration).overrideAgent(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4506,7 +2490,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4506
2490
|
* @param {string} agentId ID of the agent
|
|
4507
2491
|
* @param {*} [options] Override http request option.
|
|
4508
2492
|
* @throws {RequiredError}
|
|
4509
|
-
* @memberof AgentApi
|
|
4510
2493
|
*/
|
|
4511
2494
|
public resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig) {
|
|
4512
2495
|
return AgentApiFp(this.configuration).resetAgentApiKey(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4518,7 +2501,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4518
2501
|
* @param {AgentUpdate} [agentUpdate]
|
|
4519
2502
|
* @param {*} [options] Override http request option.
|
|
4520
2503
|
* @throws {RequiredError}
|
|
4521
|
-
* @memberof AgentApi
|
|
4522
2504
|
*/
|
|
4523
2505
|
public validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
4524
2506
|
return AgentApiFp(this.configuration).validateAgentCreate(agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4531,7 +2513,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4531
2513
|
* @param {AgentUpdate} [agentUpdate]
|
|
4532
2514
|
* @param {*} [options] Override http request option.
|
|
4533
2515
|
* @throws {RequiredError}
|
|
4534
|
-
* @memberof AgentApi
|
|
4535
2516
|
*/
|
|
4536
2517
|
public validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
4537
2518
|
return AgentApiFp(this.configuration).validateAgentUpdate(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4542,7 +2523,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4542
2523
|
|
|
4543
2524
|
/**
|
|
4544
2525
|
* ChatApi - axios parameter creator
|
|
4545
|
-
* @export
|
|
4546
2526
|
*/
|
|
4547
2527
|
export const ChatApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4548
2528
|
return {
|
|
@@ -4987,7 +2967,6 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
4987
2967
|
|
|
4988
2968
|
/**
|
|
4989
2969
|
* ChatApi - functional programming interface
|
|
4990
|
-
* @export
|
|
4991
2970
|
*/
|
|
4992
2971
|
export const ChatApiFp = function(configuration?: Configuration) {
|
|
4993
2972
|
const localVarAxiosParamCreator = ChatApiAxiosParamCreator(configuration)
|
|
@@ -5139,7 +3118,6 @@ export const ChatApiFp = function(configuration?: Configuration) {
|
|
|
5139
3118
|
|
|
5140
3119
|
/**
|
|
5141
3120
|
* ChatApi - factory interface
|
|
5142
|
-
* @export
|
|
5143
3121
|
*/
|
|
5144
3122
|
export const ChatApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5145
3123
|
const localVarFp = ChatApiFp(configuration)
|
|
@@ -5261,9 +3239,6 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
|
|
|
5261
3239
|
|
|
5262
3240
|
/**
|
|
5263
3241
|
* ChatApi - object-oriented interface
|
|
5264
|
-
* @export
|
|
5265
|
-
* @class ChatApi
|
|
5266
|
-
* @extends {BaseAPI}
|
|
5267
3242
|
*/
|
|
5268
3243
|
export class ChatApi extends BaseAPI {
|
|
5269
3244
|
/**
|
|
@@ -5272,7 +3247,6 @@ export class ChatApi extends BaseAPI {
|
|
|
5272
3247
|
* @param {string} aid Agent ID
|
|
5273
3248
|
* @param {*} [options] Override http request option.
|
|
5274
3249
|
* @throws {RequiredError}
|
|
5275
|
-
* @memberof ChatApi
|
|
5276
3250
|
*/
|
|
5277
3251
|
public createChatThread(aid: string, options?: RawAxiosRequestConfig) {
|
|
5278
3252
|
return ChatApiFp(this.configuration).createChatThread(aid, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5285,7 +3259,6 @@ export class ChatApi extends BaseAPI {
|
|
|
5285
3259
|
* @param {string} chatId Chat ID
|
|
5286
3260
|
* @param {*} [options] Override http request option.
|
|
5287
3261
|
* @throws {RequiredError}
|
|
5288
|
-
* @memberof ChatApi
|
|
5289
3262
|
*/
|
|
5290
3263
|
public deleteChatThread(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
5291
3264
|
return ChatApiFp(this.configuration).deleteChatThread(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5298,7 +3271,6 @@ export class ChatApi extends BaseAPI {
|
|
|
5298
3271
|
* @param {string} chatId Chat ID
|
|
5299
3272
|
* @param {*} [options] Override http request option.
|
|
5300
3273
|
* @throws {RequiredError}
|
|
5301
|
-
* @memberof ChatApi
|
|
5302
3274
|
*/
|
|
5303
3275
|
public getChatThreadById(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
5304
3276
|
return ChatApiFp(this.configuration).getChatThreadById(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5310,7 +3282,6 @@ export class ChatApi extends BaseAPI {
|
|
|
5310
3282
|
* @param {string} messageId Message ID
|
|
5311
3283
|
* @param {*} [options] Override http request option.
|
|
5312
3284
|
* @throws {RequiredError}
|
|
5313
|
-
* @memberof ChatApi
|
|
5314
3285
|
*/
|
|
5315
3286
|
public getMessageById(messageId: string, options?: RawAxiosRequestConfig) {
|
|
5316
3287
|
return ChatApiFp(this.configuration).getMessageById(messageId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5324,7 +3295,6 @@ export class ChatApi extends BaseAPI {
|
|
|
5324
3295
|
* @param {number} [limit] Maximum number of messages to return
|
|
5325
3296
|
* @param {*} [options] Override http request option.
|
|
5326
3297
|
* @throws {RequiredError}
|
|
5327
|
-
* @memberof ChatApi
|
|
5328
3298
|
*/
|
|
5329
3299
|
public getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
5330
3300
|
return ChatApiFp(this.configuration).getSkillHistory(aid, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5336,7 +3306,6 @@ export class ChatApi extends BaseAPI {
|
|
|
5336
3306
|
* @param {string} aid Agent ID
|
|
5337
3307
|
* @param {*} [options] Override http request option.
|
|
5338
3308
|
* @throws {RequiredError}
|
|
5339
|
-
* @memberof ChatApi
|
|
5340
3309
|
*/
|
|
5341
3310
|
public listChatsForAgent(aid: string, options?: RawAxiosRequestConfig) {
|
|
5342
3311
|
return ChatApiFp(this.configuration).listChatsForAgent(aid, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5351,7 +3320,6 @@ export class ChatApi extends BaseAPI {
|
|
|
5351
3320
|
* @param {number} [limit] Maximum number of messages to return
|
|
5352
3321
|
* @param {*} [options] Override http request option.
|
|
5353
3322
|
* @throws {RequiredError}
|
|
5354
|
-
* @memberof ChatApi
|
|
5355
3323
|
*/
|
|
5356
3324
|
public listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
5357
3325
|
return ChatApiFp(this.configuration).listMessagesInChat(aid, chatId, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5364,7 +3332,6 @@ export class ChatApi extends BaseAPI {
|
|
|
5364
3332
|
* @param {string} chatId Chat ID
|
|
5365
3333
|
* @param {*} [options] Override http request option.
|
|
5366
3334
|
* @throws {RequiredError}
|
|
5367
|
-
* @memberof ChatApi
|
|
5368
3335
|
*/
|
|
5369
3336
|
public retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
5370
3337
|
return ChatApiFp(this.configuration).retryMessageInChat(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5378,7 +3345,6 @@ export class ChatApi extends BaseAPI {
|
|
|
5378
3345
|
* @param {ChatMessageRequest} chatMessageRequest
|
|
5379
3346
|
* @param {*} [options] Override http request option.
|
|
5380
3347
|
* @throws {RequiredError}
|
|
5381
|
-
* @memberof ChatApi
|
|
5382
3348
|
*/
|
|
5383
3349
|
public sendMessageToChat(aid: string, chatId: string, chatMessageRequest: ChatMessageRequest, options?: RawAxiosRequestConfig) {
|
|
5384
3350
|
return ChatApiFp(this.configuration).sendMessageToChat(aid, chatId, chatMessageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5392,7 +3358,6 @@ export class ChatApi extends BaseAPI {
|
|
|
5392
3358
|
* @param {ChatUpdateRequest} chatUpdateRequest
|
|
5393
3359
|
* @param {*} [options] Override http request option.
|
|
5394
3360
|
* @throws {RequiredError}
|
|
5395
|
-
* @memberof ChatApi
|
|
5396
3361
|
*/
|
|
5397
3362
|
public updateChatThread(aid: string, chatId: string, chatUpdateRequest: ChatUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
5398
3363
|
return ChatApiFp(this.configuration).updateChatThread(aid, chatId, chatUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5403,7 +3368,6 @@ export class ChatApi extends BaseAPI {
|
|
|
5403
3368
|
|
|
5404
3369
|
/**
|
|
5405
3370
|
* CreditApi - axios parameter creator
|
|
5406
|
-
* @export
|
|
5407
3371
|
*/
|
|
5408
3372
|
export const CreditApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5409
3373
|
return {
|
|
@@ -5640,7 +3604,6 @@ export const CreditApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
5640
3604
|
|
|
5641
3605
|
/**
|
|
5642
3606
|
* CreditApi - functional programming interface
|
|
5643
|
-
* @export
|
|
5644
3607
|
*/
|
|
5645
3608
|
export const CreditApiFp = function(configuration?: Configuration) {
|
|
5646
3609
|
const localVarAxiosParamCreator = CreditApiAxiosParamCreator(configuration)
|
|
@@ -5722,7 +3685,6 @@ export const CreditApiFp = function(configuration?: Configuration) {
|
|
|
5722
3685
|
|
|
5723
3686
|
/**
|
|
5724
3687
|
* CreditApi - factory interface
|
|
5725
|
-
* @export
|
|
5726
3688
|
*/
|
|
5727
3689
|
export const CreditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5728
3690
|
const localVarFp = CreditApiFp(configuration)
|
|
@@ -5789,9 +3751,6 @@ export const CreditApiFactory = function (configuration?: Configuration, basePat
|
|
|
5789
3751
|
|
|
5790
3752
|
/**
|
|
5791
3753
|
* CreditApi - object-oriented interface
|
|
5792
|
-
* @export
|
|
5793
|
-
* @class CreditApi
|
|
5794
|
-
* @extends {BaseAPI}
|
|
5795
3754
|
*/
|
|
5796
3755
|
export class CreditApi extends BaseAPI {
|
|
5797
3756
|
/**
|
|
@@ -5800,7 +3759,6 @@ export class CreditApi extends BaseAPI {
|
|
|
5800
3759
|
* @param {string} eventId Credit event ID
|
|
5801
3760
|
* @param {*} [options] Override http request option.
|
|
5802
3761
|
* @throws {RequiredError}
|
|
5803
|
-
* @memberof CreditApi
|
|
5804
3762
|
*/
|
|
5805
3763
|
public fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig) {
|
|
5806
3764
|
return CreditApiFp(this.configuration).fetchCreditEvent(eventId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5811,7 +3769,6 @@ export class CreditApi extends BaseAPI {
|
|
|
5811
3769
|
* @summary Get User Account
|
|
5812
3770
|
* @param {*} [options] Override http request option.
|
|
5813
3771
|
* @throws {RequiredError}
|
|
5814
|
-
* @memberof CreditApi
|
|
5815
3772
|
*/
|
|
5816
3773
|
public getUserAccount(options?: RawAxiosRequestConfig) {
|
|
5817
3774
|
return CreditApiFp(this.configuration).getUserAccount(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5825,7 +3782,6 @@ export class CreditApi extends BaseAPI {
|
|
|
5825
3782
|
* @param {number} [limit] Maximum number of events to return
|
|
5826
3783
|
* @param {*} [options] Override http request option.
|
|
5827
3784
|
* @throws {RequiredError}
|
|
5828
|
-
* @memberof CreditApi
|
|
5829
3785
|
*/
|
|
5830
3786
|
public listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
5831
3787
|
return CreditApiFp(this.configuration).listAgentIncomeEvents(agentId, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5840,7 +3796,6 @@ export class CreditApi extends BaseAPI {
|
|
|
5840
3796
|
* @param {number} [limit] Maximum number of events to return
|
|
5841
3797
|
* @param {*} [options] Override http request option.
|
|
5842
3798
|
* @throws {RequiredError}
|
|
5843
|
-
* @memberof CreditApi
|
|
5844
3799
|
*/
|
|
5845
3800
|
public listUserEvents(eventType?: Array<EventType> | null, direction?: Direction | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
5846
3801
|
return CreditApiFp(this.configuration).listUserEvents(eventType, direction, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5855,7 +3810,6 @@ export class CreditApi extends BaseAPI {
|
|
|
5855
3810
|
* @param {number} [limit] Maximum number of transactions to return
|
|
5856
3811
|
* @param {*} [options] Override http request option.
|
|
5857
3812
|
* @throws {RequiredError}
|
|
5858
|
-
* @memberof CreditApi
|
|
5859
3813
|
*/
|
|
5860
3814
|
public listUserTransactions(txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
5861
3815
|
return CreditApiFp(this.configuration).listUserTransactions(txType, creditDebit, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5866,7 +3820,6 @@ export class CreditApi extends BaseAPI {
|
|
|
5866
3820
|
|
|
5867
3821
|
/**
|
|
5868
3822
|
* DraftApi - axios parameter creator
|
|
5869
|
-
* @export
|
|
5870
3823
|
*/
|
|
5871
3824
|
export const DraftApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5872
3825
|
return {
|
|
@@ -6117,7 +4070,6 @@ export const DraftApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
6117
4070
|
|
|
6118
4071
|
/**
|
|
6119
4072
|
* DraftApi - functional programming interface
|
|
6120
|
-
* @export
|
|
6121
4073
|
*/
|
|
6122
4074
|
export const DraftApiFp = function(configuration?: Configuration) {
|
|
6123
4075
|
const localVarAxiosParamCreator = DraftApiAxiosParamCreator(configuration)
|
|
@@ -6207,7 +4159,6 @@ export const DraftApiFp = function(configuration?: Configuration) {
|
|
|
6207
4159
|
|
|
6208
4160
|
/**
|
|
6209
4161
|
* DraftApi - factory interface
|
|
6210
|
-
* @export
|
|
6211
4162
|
*/
|
|
6212
4163
|
export const DraftApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6213
4164
|
const localVarFp = DraftApiFp(configuration)
|
|
@@ -6279,9 +4230,6 @@ export const DraftApiFactory = function (configuration?: Configuration, basePath
|
|
|
6279
4230
|
|
|
6280
4231
|
/**
|
|
6281
4232
|
* DraftApi - object-oriented interface
|
|
6282
|
-
* @export
|
|
6283
|
-
* @class DraftApi
|
|
6284
|
-
* @extends {BaseAPI}
|
|
6285
4233
|
*/
|
|
6286
4234
|
export class DraftApi extends BaseAPI {
|
|
6287
4235
|
/**
|
|
@@ -6290,7 +4238,6 @@ export class DraftApi extends BaseAPI {
|
|
|
6290
4238
|
* @param {AgentUserInput} agentUserInput
|
|
6291
4239
|
* @param {*} [options] Override http request option.
|
|
6292
4240
|
* @throws {RequiredError}
|
|
6293
|
-
* @memberof DraftApi
|
|
6294
4241
|
*/
|
|
6295
4242
|
public createAgentDraft(agentUserInput: AgentUserInput, options?: RawAxiosRequestConfig) {
|
|
6296
4243
|
return DraftApiFp(this.configuration).createAgentDraft(agentUserInput, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6302,7 +4249,6 @@ export class DraftApi extends BaseAPI {
|
|
|
6302
4249
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
6303
4250
|
* @param {*} [options] Override http request option.
|
|
6304
4251
|
* @throws {RequiredError}
|
|
6305
|
-
* @memberof DraftApi
|
|
6306
4252
|
*/
|
|
6307
4253
|
public deployAgentFromDraft(agentDeployRequest: AgentDeployRequest, options?: RawAxiosRequestConfig) {
|
|
6308
4254
|
return DraftApiFp(this.configuration).deployAgentFromDraft(agentDeployRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6315,7 +4261,6 @@ export class DraftApi extends BaseAPI {
|
|
|
6315
4261
|
* @param {string} draftId Draft ID
|
|
6316
4262
|
* @param {*} [options] Override http request option.
|
|
6317
4263
|
* @throws {RequiredError}
|
|
6318
|
-
* @memberof DraftApi
|
|
6319
4264
|
*/
|
|
6320
4265
|
public getAgentDraftById(agentId: string, draftId: string, options?: RawAxiosRequestConfig) {
|
|
6321
4266
|
return DraftApiFp(this.configuration).getAgentDraftById(agentId, draftId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6327,7 +4272,6 @@ export class DraftApi extends BaseAPI {
|
|
|
6327
4272
|
* @param {string} agentId Agent ID
|
|
6328
4273
|
* @param {*} [options] Override http request option.
|
|
6329
4274
|
* @throws {RequiredError}
|
|
6330
|
-
* @memberof DraftApi
|
|
6331
4275
|
*/
|
|
6332
4276
|
public getAgentDrafts(agentId: string, options?: RawAxiosRequestConfig) {
|
|
6333
4277
|
return DraftApiFp(this.configuration).getAgentDrafts(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6339,7 +4283,6 @@ export class DraftApi extends BaseAPI {
|
|
|
6339
4283
|
* @param {string} agentId Agent ID
|
|
6340
4284
|
* @param {*} [options] Override http request option.
|
|
6341
4285
|
* @throws {RequiredError}
|
|
6342
|
-
* @memberof DraftApi
|
|
6343
4286
|
*/
|
|
6344
4287
|
public getAgentLatestDraft(agentId: string, options?: RawAxiosRequestConfig) {
|
|
6345
4288
|
return DraftApiFp(this.configuration).getAgentLatestDraft(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6352,7 +4295,6 @@ export class DraftApi extends BaseAPI {
|
|
|
6352
4295
|
* @param {AgentUserInput} agentUserInput
|
|
6353
4296
|
* @param {*} [options] Override http request option.
|
|
6354
4297
|
* @throws {RequiredError}
|
|
6355
|
-
* @memberof DraftApi
|
|
6356
4298
|
*/
|
|
6357
4299
|
public updateAgentDraft(agentId: string, agentUserInput: AgentUserInput, options?: RawAxiosRequestConfig) {
|
|
6358
4300
|
return DraftApiFp(this.configuration).updateAgentDraft(agentId, agentUserInput, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6363,7 +4305,6 @@ export class DraftApi extends BaseAPI {
|
|
|
6363
4305
|
|
|
6364
4306
|
/**
|
|
6365
4307
|
* GeneratorApi - axios parameter creator
|
|
6366
|
-
* @export
|
|
6367
4308
|
*/
|
|
6368
4309
|
export const GeneratorApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6369
4310
|
return {
|
|
@@ -6489,7 +4430,6 @@ export const GeneratorApiAxiosParamCreator = function (configuration?: Configura
|
|
|
6489
4430
|
|
|
6490
4431
|
/**
|
|
6491
4432
|
* GeneratorApi - functional programming interface
|
|
6492
|
-
* @export
|
|
6493
4433
|
*/
|
|
6494
4434
|
export const GeneratorApiFp = function(configuration?: Configuration) {
|
|
6495
4435
|
const localVarAxiosParamCreator = GeneratorApiAxiosParamCreator(configuration)
|
|
@@ -6538,7 +4478,6 @@ export const GeneratorApiFp = function(configuration?: Configuration) {
|
|
|
6538
4478
|
|
|
6539
4479
|
/**
|
|
6540
4480
|
* GeneratorApi - factory interface
|
|
6541
|
-
* @export
|
|
6542
4481
|
*/
|
|
6543
4482
|
export const GeneratorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6544
4483
|
const localVarFp = GeneratorApiFp(configuration)
|
|
@@ -6578,9 +4517,6 @@ export const GeneratorApiFactory = function (configuration?: Configuration, base
|
|
|
6578
4517
|
|
|
6579
4518
|
/**
|
|
6580
4519
|
* GeneratorApi - object-oriented interface
|
|
6581
|
-
* @export
|
|
6582
|
-
* @class GeneratorApi
|
|
6583
|
-
* @extends {BaseAPI}
|
|
6584
4520
|
*/
|
|
6585
4521
|
export class GeneratorApi extends BaseAPI {
|
|
6586
4522
|
/**
|
|
@@ -6589,7 +4525,6 @@ export class GeneratorApi extends BaseAPI {
|
|
|
6589
4525
|
* @param {AgentGenerateRequest} agentGenerateRequest
|
|
6590
4526
|
* @param {*} [options] Override http request option.
|
|
6591
4527
|
* @throws {RequiredError}
|
|
6592
|
-
* @memberof GeneratorApi
|
|
6593
4528
|
*/
|
|
6594
4529
|
public generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig) {
|
|
6595
4530
|
return GeneratorApiFp(this.configuration).generateAgent(agentGenerateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6601,7 +4536,6 @@ export class GeneratorApi extends BaseAPI {
|
|
|
6601
4536
|
* @param {string} projectId
|
|
6602
4537
|
* @param {*} [options] Override http request option.
|
|
6603
4538
|
* @throws {RequiredError}
|
|
6604
|
-
* @memberof GeneratorApi
|
|
6605
4539
|
*/
|
|
6606
4540
|
public getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig) {
|
|
6607
4541
|
return GeneratorApiFp(this.configuration).getGenerationHistory(projectId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6613,7 +4547,6 @@ export class GeneratorApi extends BaseAPI {
|
|
|
6613
4547
|
* @param {number} [limit]
|
|
6614
4548
|
* @param {*} [options] Override http request option.
|
|
6615
4549
|
* @throws {RequiredError}
|
|
6616
|
-
* @memberof GeneratorApi
|
|
6617
4550
|
*/
|
|
6618
4551
|
public getGenerations(limit?: number, options?: RawAxiosRequestConfig) {
|
|
6619
4552
|
return GeneratorApiFp(this.configuration).getGenerations(limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6624,7 +4557,6 @@ export class GeneratorApi extends BaseAPI {
|
|
|
6624
4557
|
|
|
6625
4558
|
/**
|
|
6626
4559
|
* HealthApi - axios parameter creator
|
|
6627
|
-
* @export
|
|
6628
4560
|
*/
|
|
6629
4561
|
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6630
4562
|
return {
|
|
@@ -6663,7 +4595,6 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
6663
4595
|
|
|
6664
4596
|
/**
|
|
6665
4597
|
* HealthApi - functional programming interface
|
|
6666
|
-
* @export
|
|
6667
4598
|
*/
|
|
6668
4599
|
export const HealthApiFp = function(configuration?: Configuration) {
|
|
6669
4600
|
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
@@ -6685,7 +4616,6 @@ export const HealthApiFp = function(configuration?: Configuration) {
|
|
|
6685
4616
|
|
|
6686
4617
|
/**
|
|
6687
4618
|
* HealthApi - factory interface
|
|
6688
|
-
* @export
|
|
6689
4619
|
*/
|
|
6690
4620
|
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6691
4621
|
const localVarFp = HealthApiFp(configuration)
|
|
@@ -6704,9 +4634,6 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
|
|
|
6704
4634
|
|
|
6705
4635
|
/**
|
|
6706
4636
|
* HealthApi - object-oriented interface
|
|
6707
|
-
* @export
|
|
6708
|
-
* @class HealthApi
|
|
6709
|
-
* @extends {BaseAPI}
|
|
6710
4637
|
*/
|
|
6711
4638
|
export class HealthApi extends BaseAPI {
|
|
6712
4639
|
/**
|
|
@@ -6714,7 +4641,6 @@ export class HealthApi extends BaseAPI {
|
|
|
6714
4641
|
* @summary Health check endpoint
|
|
6715
4642
|
* @param {*} [options] Override http request option.
|
|
6716
4643
|
* @throws {RequiredError}
|
|
6717
|
-
* @memberof HealthApi
|
|
6718
4644
|
*/
|
|
6719
4645
|
public healthCheck(options?: RawAxiosRequestConfig) {
|
|
6720
4646
|
return HealthApiFp(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6725,7 +4651,6 @@ export class HealthApi extends BaseAPI {
|
|
|
6725
4651
|
|
|
6726
4652
|
/**
|
|
6727
4653
|
* MetadataApi - axios parameter creator
|
|
6728
|
-
* @export
|
|
6729
4654
|
*/
|
|
6730
4655
|
export const MetadataApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6731
4656
|
return {
|
|
@@ -6900,7 +4825,6 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
6900
4825
|
|
|
6901
4826
|
/**
|
|
6902
4827
|
* MetadataApi - functional programming interface
|
|
6903
|
-
* @export
|
|
6904
4828
|
*/
|
|
6905
4829
|
export const MetadataApiFp = function(configuration?: Configuration) {
|
|
6906
4830
|
const localVarAxiosParamCreator = MetadataApiAxiosParamCreator(configuration)
|
|
@@ -6974,7 +4898,6 @@ export const MetadataApiFp = function(configuration?: Configuration) {
|
|
|
6974
4898
|
|
|
6975
4899
|
/**
|
|
6976
4900
|
* MetadataApi - factory interface
|
|
6977
|
-
* @export
|
|
6978
4901
|
*/
|
|
6979
4902
|
export const MetadataApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6980
4903
|
const localVarFp = MetadataApiFp(configuration)
|
|
@@ -7033,9 +4956,6 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
|
|
|
7033
4956
|
|
|
7034
4957
|
/**
|
|
7035
4958
|
* MetadataApi - object-oriented interface
|
|
7036
|
-
* @export
|
|
7037
|
-
* @class MetadataApi
|
|
7038
|
-
* @extends {BaseAPI}
|
|
7039
4959
|
*/
|
|
7040
4960
|
export class MetadataApi extends BaseAPI {
|
|
7041
4961
|
/**
|
|
@@ -7043,7 +4963,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
7043
4963
|
* @summary Get agent schema
|
|
7044
4964
|
* @param {*} [options] Override http request option.
|
|
7045
4965
|
* @throws {RequiredError}
|
|
7046
|
-
* @memberof MetadataApi
|
|
7047
4966
|
*/
|
|
7048
4967
|
public getAgentSchema(options?: RawAxiosRequestConfig) {
|
|
7049
4968
|
return MetadataApiFp(this.configuration).getAgentSchema(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7054,7 +4973,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
7054
4973
|
* @summary Get all LLM models
|
|
7055
4974
|
* @param {*} [options] Override http request option.
|
|
7056
4975
|
* @throws {RequiredError}
|
|
7057
|
-
* @memberof MetadataApi
|
|
7058
4976
|
*/
|
|
7059
4977
|
public getLlms(options?: RawAxiosRequestConfig) {
|
|
7060
4978
|
return MetadataApiFp(this.configuration).getLlms(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7068,7 +4986,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
7068
4986
|
* @param {string} ext Icon file extension
|
|
7069
4987
|
* @param {*} [options] Override http request option.
|
|
7070
4988
|
* @throws {RequiredError}
|
|
7071
|
-
* @memberof MetadataApi
|
|
7072
4989
|
*/
|
|
7073
4990
|
public getSkillIcon(skill: string, iconName: string, ext: string, options?: RawAxiosRequestConfig) {
|
|
7074
4991
|
return MetadataApiFp(this.configuration).getSkillIcon(skill, iconName, ext, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7080,7 +4997,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
7080
4997
|
* @param {string} skill Skill name
|
|
7081
4998
|
* @param {*} [options] Override http request option.
|
|
7082
4999
|
* @throws {RequiredError}
|
|
7083
|
-
* @memberof MetadataApi
|
|
7084
5000
|
*/
|
|
7085
5001
|
public getSkillSchema(skill: string, options?: RawAxiosRequestConfig) {
|
|
7086
5002
|
return MetadataApiFp(this.configuration).getSkillSchema(skill, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7091,7 +5007,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
7091
5007
|
* @summary Get all skills
|
|
7092
5008
|
* @param {*} [options] Override http request option.
|
|
7093
5009
|
* @throws {RequiredError}
|
|
7094
|
-
* @memberof MetadataApi
|
|
7095
5010
|
*/
|
|
7096
5011
|
public getSkills(options?: RawAxiosRequestConfig) {
|
|
7097
5012
|
return MetadataApiFp(this.configuration).getSkills(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7102,7 +5017,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
7102
5017
|
|
|
7103
5018
|
/**
|
|
7104
5019
|
* OAuthApi - axios parameter creator
|
|
7105
|
-
* @export
|
|
7106
5020
|
*/
|
|
7107
5021
|
export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7108
5022
|
return {
|
|
@@ -7247,7 +5161,6 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
7247
5161
|
|
|
7248
5162
|
/**
|
|
7249
5163
|
* OAuthApi - functional programming interface
|
|
7250
|
-
* @export
|
|
7251
5164
|
*/
|
|
7252
5165
|
export const OAuthApiFp = function(configuration?: Configuration) {
|
|
7253
5166
|
const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
|
|
@@ -7299,7 +5212,6 @@ export const OAuthApiFp = function(configuration?: Configuration) {
|
|
|
7299
5212
|
|
|
7300
5213
|
/**
|
|
7301
5214
|
* OAuthApi - factory interface
|
|
7302
|
-
* @export
|
|
7303
5215
|
*/
|
|
7304
5216
|
export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7305
5217
|
const localVarFp = OAuthApiFp(configuration)
|
|
@@ -7342,9 +5254,6 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
|
|
|
7342
5254
|
|
|
7343
5255
|
/**
|
|
7344
5256
|
* OAuthApi - object-oriented interface
|
|
7345
|
-
* @export
|
|
7346
|
-
* @class OAuthApi
|
|
7347
|
-
* @extends {BaseAPI}
|
|
7348
5257
|
*/
|
|
7349
5258
|
export class OAuthApi extends BaseAPI {
|
|
7350
5259
|
/**
|
|
@@ -7354,7 +5263,6 @@ export class OAuthApi extends BaseAPI {
|
|
|
7354
5263
|
* @param {string} redirectUri
|
|
7355
5264
|
* @param {*} [options] Override http request option.
|
|
7356
5265
|
* @throws {RequiredError}
|
|
7357
|
-
* @memberof OAuthApi
|
|
7358
5266
|
*/
|
|
7359
5267
|
public getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig) {
|
|
7360
5268
|
return OAuthApiFp(this.configuration).getTwitterAuthUrl(agentId, redirectUri, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7368,7 +5276,6 @@ export class OAuthApi extends BaseAPI {
|
|
|
7368
5276
|
* @param {string | null} [error]
|
|
7369
5277
|
* @param {*} [options] Override http request option.
|
|
7370
5278
|
* @throws {RequiredError}
|
|
7371
|
-
* @memberof OAuthApi
|
|
7372
5279
|
*/
|
|
7373
5280
|
public twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig) {
|
|
7374
5281
|
return OAuthApiFp(this.configuration).twitterOauthCallback(state, code, error, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7380,7 +5287,6 @@ export class OAuthApi extends BaseAPI {
|
|
|
7380
5287
|
* @param {string} agentId ID of the agent to unlink from X
|
|
7381
5288
|
* @param {*} [options] Override http request option.
|
|
7382
5289
|
* @throws {RequiredError}
|
|
7383
|
-
* @memberof OAuthApi
|
|
7384
5290
|
*/
|
|
7385
5291
|
public unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig) {
|
|
7386
5292
|
return OAuthApiFp(this.configuration).unlinkTwitter(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7391,7 +5297,6 @@ export class OAuthApi extends BaseAPI {
|
|
|
7391
5297
|
|
|
7392
5298
|
/**
|
|
7393
5299
|
* UserApi - axios parameter creator
|
|
7394
|
-
* @export
|
|
7395
5300
|
*/
|
|
7396
5301
|
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7397
5302
|
return {
|
|
@@ -7472,6 +5377,51 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7472
5377
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7473
5378
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7474
5379
|
|
|
5380
|
+
return {
|
|
5381
|
+
url: toPathString(localVarUrlObj),
|
|
5382
|
+
options: localVarRequestOptions,
|
|
5383
|
+
};
|
|
5384
|
+
},
|
|
5385
|
+
/**
|
|
5386
|
+
* Upload a file for the authenticated user. **Form Data:** * `file` - File to upload (supports images, videos, audio, and PDF files) **Returns:** * `FileUploadResponse` - Contains the CDN URL and unique identifier of the uploaded file **Raises:** * `400` - Invalid file type or file too large * `500` - Upload failed
|
|
5387
|
+
* @summary Upload User File
|
|
5388
|
+
* @param {File} file File to upload
|
|
5389
|
+
* @param {*} [options] Override http request option.
|
|
5390
|
+
* @throws {RequiredError}
|
|
5391
|
+
*/
|
|
5392
|
+
uploadUserFile: async (file: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5393
|
+
// verify required parameter 'file' is not null or undefined
|
|
5394
|
+
assertParamExists('uploadUserFile', 'file', file)
|
|
5395
|
+
const localVarPath = `/user/upload`;
|
|
5396
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5397
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5398
|
+
let baseOptions;
|
|
5399
|
+
if (configuration) {
|
|
5400
|
+
baseOptions = configuration.baseOptions;
|
|
5401
|
+
}
|
|
5402
|
+
|
|
5403
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5404
|
+
const localVarHeaderParameter = {} as any;
|
|
5405
|
+
const localVarQueryParameter = {} as any;
|
|
5406
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
5407
|
+
|
|
5408
|
+
// authentication HTTPBearer required
|
|
5409
|
+
// http bearer authentication required
|
|
5410
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5411
|
+
|
|
5412
|
+
|
|
5413
|
+
if (file !== undefined) {
|
|
5414
|
+
localVarFormParams.append('file', file as any);
|
|
5415
|
+
}
|
|
5416
|
+
|
|
5417
|
+
|
|
5418
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
5419
|
+
|
|
5420
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5421
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5422
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5423
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
5424
|
+
|
|
7475
5425
|
return {
|
|
7476
5426
|
url: toPathString(localVarUrlObj),
|
|
7477
5427
|
options: localVarRequestOptions,
|
|
@@ -7482,7 +5432,6 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7482
5432
|
|
|
7483
5433
|
/**
|
|
7484
5434
|
* UserApi - functional programming interface
|
|
7485
|
-
* @export
|
|
7486
5435
|
*/
|
|
7487
5436
|
export const UserApiFp = function(configuration?: Configuration) {
|
|
7488
5437
|
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
|
|
@@ -7514,12 +5463,24 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
7514
5463
|
const localVarOperationServerBasePath = operationServerMap['UserApi.getUserAgents']?.[localVarOperationServerIndex]?.url;
|
|
7515
5464
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7516
5465
|
},
|
|
5466
|
+
/**
|
|
5467
|
+
* Upload a file for the authenticated user. **Form Data:** * `file` - File to upload (supports images, videos, audio, and PDF files) **Returns:** * `FileUploadResponse` - Contains the CDN URL and unique identifier of the uploaded file **Raises:** * `400` - Invalid file type or file too large * `500` - Upload failed
|
|
5468
|
+
* @summary Upload User File
|
|
5469
|
+
* @param {File} file File to upload
|
|
5470
|
+
* @param {*} [options] Override http request option.
|
|
5471
|
+
* @throws {RequiredError}
|
|
5472
|
+
*/
|
|
5473
|
+
async uploadUserFile(file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileUploadResponse>> {
|
|
5474
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadUserFile(file, options);
|
|
5475
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5476
|
+
const localVarOperationServerBasePath = operationServerMap['UserApi.uploadUserFile']?.[localVarOperationServerIndex]?.url;
|
|
5477
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5478
|
+
},
|
|
7517
5479
|
}
|
|
7518
5480
|
};
|
|
7519
5481
|
|
|
7520
5482
|
/**
|
|
7521
5483
|
* UserApi - factory interface
|
|
7522
|
-
* @export
|
|
7523
5484
|
*/
|
|
7524
5485
|
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7525
5486
|
const localVarFp = UserApiFp(configuration)
|
|
@@ -7545,14 +5506,21 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
7545
5506
|
getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
|
|
7546
5507
|
return localVarFp.getUserAgents(cursor, limit, options).then((request) => request(axios, basePath));
|
|
7547
5508
|
},
|
|
5509
|
+
/**
|
|
5510
|
+
* Upload a file for the authenticated user. **Form Data:** * `file` - File to upload (supports images, videos, audio, and PDF files) **Returns:** * `FileUploadResponse` - Contains the CDN URL and unique identifier of the uploaded file **Raises:** * `400` - Invalid file type or file too large * `500` - Upload failed
|
|
5511
|
+
* @summary Upload User File
|
|
5512
|
+
* @param {File} file File to upload
|
|
5513
|
+
* @param {*} [options] Override http request option.
|
|
5514
|
+
* @throws {RequiredError}
|
|
5515
|
+
*/
|
|
5516
|
+
uploadUserFile(file: File, options?: RawAxiosRequestConfig): AxiosPromise<FileUploadResponse> {
|
|
5517
|
+
return localVarFp.uploadUserFile(file, options).then((request) => request(axios, basePath));
|
|
5518
|
+
},
|
|
7548
5519
|
};
|
|
7549
5520
|
};
|
|
7550
5521
|
|
|
7551
5522
|
/**
|
|
7552
5523
|
* UserApi - object-oriented interface
|
|
7553
|
-
* @export
|
|
7554
|
-
* @class UserApi
|
|
7555
|
-
* @extends {BaseAPI}
|
|
7556
5524
|
*/
|
|
7557
5525
|
export class UserApi extends BaseAPI {
|
|
7558
5526
|
/**
|
|
@@ -7561,7 +5529,6 @@ export class UserApi extends BaseAPI {
|
|
|
7561
5529
|
* @param {string} agentId Agent ID
|
|
7562
5530
|
* @param {*} [options] Override http request option.
|
|
7563
5531
|
* @throws {RequiredError}
|
|
7564
|
-
* @memberof UserApi
|
|
7565
5532
|
*/
|
|
7566
5533
|
public getUserAgentById(agentId: string, options?: RawAxiosRequestConfig) {
|
|
7567
5534
|
return UserApiFp(this.configuration).getUserAgentById(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7574,11 +5541,21 @@ export class UserApi extends BaseAPI {
|
|
|
7574
5541
|
* @param {number} [limit] Maximum number of agents to return
|
|
7575
5542
|
* @param {*} [options] Override http request option.
|
|
7576
5543
|
* @throws {RequiredError}
|
|
7577
|
-
* @memberof UserApi
|
|
7578
5544
|
*/
|
|
7579
5545
|
public getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
7580
5546
|
return UserApiFp(this.configuration).getUserAgents(cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
7581
5547
|
}
|
|
5548
|
+
|
|
5549
|
+
/**
|
|
5550
|
+
* Upload a file for the authenticated user. **Form Data:** * `file` - File to upload (supports images, videos, audio, and PDF files) **Returns:** * `FileUploadResponse` - Contains the CDN URL and unique identifier of the uploaded file **Raises:** * `400` - Invalid file type or file too large * `500` - Upload failed
|
|
5551
|
+
* @summary Upload User File
|
|
5552
|
+
* @param {File} file File to upload
|
|
5553
|
+
* @param {*} [options] Override http request option.
|
|
5554
|
+
* @throws {RequiredError}
|
|
5555
|
+
*/
|
|
5556
|
+
public uploadUserFile(file: File, options?: RawAxiosRequestConfig) {
|
|
5557
|
+
return UserApiFp(this.configuration).uploadUserFile(file, options).then((request) => request(this.axios, this.basePath));
|
|
5558
|
+
}
|
|
7582
5559
|
}
|
|
7583
5560
|
|
|
7584
5561
|
|