@crestal/nation-sdk 0.6.24 → 0.6.26
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 +2 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +4 -3
- package/api.ts +2131 -109
- package/base.ts +25 -1
- package/common.ts +38 -1
- package/configuration.ts +18 -1
- package/dist/api.d.ts +2127 -112
- package/dist/api.js +163 -8
- package/dist/base.d.ts +25 -1
- package/dist/base.js +20 -1
- package/dist/common.d.ts +38 -1
- package/dist/common.js +38 -1
- package/dist/configuration.d.ts +18 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentGenerateRequest.md +3 -1
- package/docs/AgentGenerateResponse.md +2 -2
- package/docs/AgentInput.md +95 -0
- package/docs/{Agent.md → AgentOutput.md} +6 -6
- package/docs/AgentUpdate.md +3 -3
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/UserApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Nation IntentKit API
|
|
3
3
|
* API for Nation IntentKit services
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.6.
|
|
5
|
+
* The version of the OpenAPI document: 0.6.26
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,77 +13,499 @@ import type { Configuration } from './configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import type { RequestArgs } from './base';
|
|
15
15
|
import { BaseAPI } from './base';
|
|
16
|
+
/**
|
|
17
|
+
* Response model for agent API key generation.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AgentApiKeyResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface AgentApiKeyResponse {
|
|
22
|
+
/**
|
|
23
|
+
* The private API key for the agent (sk-)
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AgentApiKeyResponse
|
|
26
|
+
*/
|
|
27
|
+
'api_key': string;
|
|
28
|
+
/**
|
|
29
|
+
* The public API key for the agent (pk-)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AgentApiKeyResponse
|
|
32
|
+
*/
|
|
33
|
+
'api_key_public': string;
|
|
34
|
+
/**
|
|
35
|
+
* The base URL for the API
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AgentApiKeyResponse
|
|
38
|
+
*/
|
|
39
|
+
'base_url': string;
|
|
40
|
+
/**
|
|
41
|
+
* API documentation URL
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AgentApiKeyResponse
|
|
44
|
+
*/
|
|
45
|
+
'api_doc': string;
|
|
46
|
+
/**
|
|
47
|
+
* OpenAPI JSON URL for AI integration
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AgentApiKeyResponse
|
|
50
|
+
*/
|
|
51
|
+
'doc_for_ai': string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Response model for agent assets.
|
|
55
|
+
* @export
|
|
56
|
+
* @interface AgentAssetsResponse
|
|
57
|
+
*/
|
|
58
|
+
export interface AgentAssetsResponse {
|
|
59
|
+
/**
|
|
60
|
+
* ID of the agent
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof AgentAssetsResponse
|
|
63
|
+
*/
|
|
64
|
+
'agent_id': string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof AgentAssetsResponse
|
|
69
|
+
*/
|
|
70
|
+
'network_id': string | null;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof AgentAssetsResponse
|
|
75
|
+
*/
|
|
76
|
+
'wallet_address': string | null;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof AgentAssetsResponse
|
|
81
|
+
*/
|
|
82
|
+
'ticker': string | null;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof AgentAssetsResponse
|
|
87
|
+
*/
|
|
88
|
+
'token_address': string | null;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof AgentAssetsResponse
|
|
93
|
+
*/
|
|
94
|
+
'token_pool': string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Total value locked, set to 0 for this version
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof AgentAssetsResponse
|
|
99
|
+
*/
|
|
100
|
+
'tvl'?: string;
|
|
101
|
+
/**
|
|
102
|
+
* List of assets with symbol and balance
|
|
103
|
+
* @type {Array<Asset>}
|
|
104
|
+
* @memberof AgentAssetsResponse
|
|
105
|
+
*/
|
|
106
|
+
'assets': Array<Asset>;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Autonomous agent configuration.
|
|
110
|
+
* @export
|
|
111
|
+
* @interface AgentAutonomous
|
|
112
|
+
*/
|
|
113
|
+
export interface AgentAutonomous {
|
|
114
|
+
/**
|
|
115
|
+
* Unique identifier for the autonomous configuration
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof AgentAutonomous
|
|
118
|
+
*/
|
|
119
|
+
'id'?: string;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof AgentAutonomous
|
|
124
|
+
*/
|
|
125
|
+
'name'?: string | null;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof AgentAutonomous
|
|
130
|
+
*/
|
|
131
|
+
'description'?: string | null;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {number}
|
|
135
|
+
* @memberof AgentAutonomous
|
|
136
|
+
*/
|
|
137
|
+
'minutes'?: number | null;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof AgentAutonomous
|
|
142
|
+
*/
|
|
143
|
+
'cron'?: string | null;
|
|
144
|
+
/**
|
|
145
|
+
* Special prompt used during autonomous operation
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof AgentAutonomous
|
|
148
|
+
*/
|
|
149
|
+
'prompt': string;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {boolean}
|
|
153
|
+
* @memberof AgentAutonomous
|
|
154
|
+
*/
|
|
155
|
+
'enabled'?: boolean | null;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Agent example configuration.
|
|
159
|
+
* @export
|
|
160
|
+
* @interface AgentExample
|
|
161
|
+
*/
|
|
162
|
+
export interface AgentExample {
|
|
163
|
+
/**
|
|
164
|
+
* Name of the example
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @memberof AgentExample
|
|
167
|
+
*/
|
|
168
|
+
'name': string;
|
|
169
|
+
/**
|
|
170
|
+
* Description of the example
|
|
171
|
+
* @type {string}
|
|
172
|
+
* @memberof AgentExample
|
|
173
|
+
*/
|
|
174
|
+
'description': string;
|
|
175
|
+
/**
|
|
176
|
+
* Example prompt
|
|
177
|
+
* @type {string}
|
|
178
|
+
* @memberof AgentExample
|
|
179
|
+
*/
|
|
180
|
+
'prompt': string;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Request model for agent generation.
|
|
184
|
+
* @export
|
|
185
|
+
* @interface AgentGenerateRequest
|
|
186
|
+
*/
|
|
187
|
+
export interface AgentGenerateRequest {
|
|
188
|
+
/**
|
|
189
|
+
* Natural language description of the agent\'s desired capabilities
|
|
190
|
+
* @type {string}
|
|
191
|
+
* @memberof AgentGenerateRequest
|
|
192
|
+
*/
|
|
193
|
+
'prompt': string;
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @type {AgentInput}
|
|
197
|
+
* @memberof AgentGenerateRequest
|
|
198
|
+
*/
|
|
199
|
+
'existing_agent'?: AgentInput | null;
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @type {string}
|
|
203
|
+
* @memberof AgentGenerateRequest
|
|
204
|
+
*/
|
|
205
|
+
'project_id'?: string | null;
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @type {boolean}
|
|
209
|
+
* @memberof AgentGenerateRequest
|
|
210
|
+
*/
|
|
211
|
+
'deploy'?: boolean | null;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Response model for agent generation.
|
|
215
|
+
* @export
|
|
216
|
+
* @interface AgentGenerateResponse
|
|
217
|
+
*/
|
|
218
|
+
export interface AgentGenerateResponse {
|
|
219
|
+
/**
|
|
220
|
+
* The generated agent schema
|
|
221
|
+
* @type {object}
|
|
222
|
+
* @memberof AgentGenerateResponse
|
|
223
|
+
*/
|
|
224
|
+
'agent': object;
|
|
225
|
+
/**
|
|
226
|
+
* Project ID for this conversation session
|
|
227
|
+
* @type {string}
|
|
228
|
+
* @memberof AgentGenerateResponse
|
|
229
|
+
*/
|
|
230
|
+
'project_id': string;
|
|
231
|
+
/**
|
|
232
|
+
* Human-readable summary of the generated agent
|
|
233
|
+
* @type {string}
|
|
234
|
+
* @memberof AgentGenerateResponse
|
|
235
|
+
*/
|
|
236
|
+
'summary': string;
|
|
237
|
+
/**
|
|
238
|
+
* Generated tags for the agent as ID objects: [{\'id\': 1}, {\'id\': 2}]
|
|
239
|
+
* @type {Array<{ [key: string]: number; }>}
|
|
240
|
+
* @memberof AgentGenerateResponse
|
|
241
|
+
*/
|
|
242
|
+
'tags'?: Array<{
|
|
243
|
+
[key: string]: number;
|
|
244
|
+
}>;
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @type {Array<object>}
|
|
248
|
+
* @memberof AgentGenerateResponse
|
|
249
|
+
*/
|
|
250
|
+
'autonomous_tasks'?: Array<object> | null;
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
* @type {Array<string>}
|
|
254
|
+
* @memberof AgentGenerateResponse
|
|
255
|
+
*/
|
|
256
|
+
'activated_skills'?: Array<string> | null;
|
|
257
|
+
}
|
|
16
258
|
/**
|
|
17
259
|
* Agent model.
|
|
260
|
+
* @export
|
|
261
|
+
* @interface AgentInput
|
|
18
262
|
*/
|
|
19
|
-
export interface
|
|
263
|
+
export interface AgentInput {
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @type {string}
|
|
267
|
+
* @memberof AgentInput
|
|
268
|
+
*/
|
|
20
269
|
'name': string | null;
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @type {string}
|
|
273
|
+
* @memberof AgentInput
|
|
274
|
+
*/
|
|
21
275
|
'slug'?: string | null;
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* @type {string}
|
|
279
|
+
* @memberof AgentInput
|
|
280
|
+
*/
|
|
22
281
|
'description'?: string | null;
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
* @type {string}
|
|
285
|
+
* @memberof AgentInput
|
|
286
|
+
*/
|
|
23
287
|
'external_website'?: string | null;
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @type {string}
|
|
291
|
+
* @memberof AgentInput
|
|
292
|
+
*/
|
|
24
293
|
'picture'?: string | null;
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @type {string}
|
|
297
|
+
* @memberof AgentInput
|
|
298
|
+
*/
|
|
25
299
|
'ticker'?: string | null;
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @type {string}
|
|
303
|
+
* @memberof AgentInput
|
|
304
|
+
*/
|
|
26
305
|
'token_address'?: string | null;
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* @type {string}
|
|
309
|
+
* @memberof AgentInput
|
|
310
|
+
*/
|
|
27
311
|
'token_pool'?: string | null;
|
|
28
|
-
|
|
29
|
-
|
|
312
|
+
/**
|
|
313
|
+
*
|
|
314
|
+
* @type {string}
|
|
315
|
+
* @memberof AgentInput
|
|
316
|
+
*/
|
|
317
|
+
'mode'?: AgentInputModeEnum | null;
|
|
318
|
+
/**
|
|
319
|
+
*
|
|
320
|
+
* @type {FeePercentage}
|
|
321
|
+
* @memberof AgentInput
|
|
322
|
+
*/
|
|
323
|
+
'fee_percentage'?: FeePercentage | null;
|
|
324
|
+
/**
|
|
325
|
+
*
|
|
326
|
+
* @type {string}
|
|
327
|
+
* @memberof AgentInput
|
|
328
|
+
*/
|
|
30
329
|
'purpose': string | null;
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @type {string}
|
|
333
|
+
* @memberof AgentInput
|
|
334
|
+
*/
|
|
31
335
|
'personality': string | null;
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
* @type {string}
|
|
339
|
+
* @memberof AgentInput
|
|
340
|
+
*/
|
|
32
341
|
'principles': string | null;
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @type {string}
|
|
345
|
+
* @memberof AgentInput
|
|
346
|
+
*/
|
|
33
347
|
'owner'?: string | null;
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* @type {string}
|
|
351
|
+
* @memberof AgentInput
|
|
352
|
+
*/
|
|
34
353
|
'upstream_id'?: string | null;
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
* @type {object}
|
|
357
|
+
* @memberof AgentInput
|
|
358
|
+
*/
|
|
35
359
|
'upstream_extra'?: object | null;
|
|
36
360
|
/**
|
|
37
361
|
* AI model identifier to be used by this agent for processing requests.
|
|
362
|
+
* @type {string}
|
|
363
|
+
* @memberof AgentInput
|
|
38
364
|
*/
|
|
39
365
|
'model'?: string;
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @type {string}
|
|
369
|
+
* @memberof AgentInput
|
|
370
|
+
*/
|
|
40
371
|
'prompt'?: string | null;
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @type {string}
|
|
375
|
+
* @memberof AgentInput
|
|
376
|
+
*/
|
|
41
377
|
'prompt_append'?: string | null;
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* @type {number}
|
|
381
|
+
* @memberof AgentInput
|
|
382
|
+
*/
|
|
42
383
|
'temperature'?: number | null;
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @type {number}
|
|
387
|
+
* @memberof AgentInput
|
|
388
|
+
*/
|
|
43
389
|
'frequency_penalty'?: number | null;
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @type {number}
|
|
393
|
+
* @memberof AgentInput
|
|
394
|
+
*/
|
|
44
395
|
'presence_penalty'?: number | null;
|
|
45
|
-
|
|
396
|
+
/**
|
|
397
|
+
*
|
|
398
|
+
* @type {string}
|
|
399
|
+
* @memberof AgentInput
|
|
400
|
+
*/
|
|
401
|
+
'short_term_memory_strategy'?: AgentInputShortTermMemoryStrategyEnum | null;
|
|
402
|
+
/**
|
|
403
|
+
*
|
|
404
|
+
* @type {Array<AgentAutonomous>}
|
|
405
|
+
* @memberof AgentInput
|
|
406
|
+
*/
|
|
46
407
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
408
|
+
/**
|
|
409
|
+
*
|
|
410
|
+
* @type {string}
|
|
411
|
+
* @memberof AgentInput
|
|
412
|
+
*/
|
|
47
413
|
'example_intro'?: string | null;
|
|
414
|
+
/**
|
|
415
|
+
*
|
|
416
|
+
* @type {Array<AgentExample>}
|
|
417
|
+
* @memberof AgentInput
|
|
418
|
+
*/
|
|
48
419
|
'examples'?: Array<AgentExample> | null;
|
|
420
|
+
/**
|
|
421
|
+
*
|
|
422
|
+
* @type {object}
|
|
423
|
+
* @memberof AgentInput
|
|
424
|
+
*/
|
|
49
425
|
'skills'?: object | null;
|
|
50
|
-
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @type {string}
|
|
429
|
+
* @memberof AgentInput
|
|
430
|
+
*/
|
|
431
|
+
'wallet_provider'?: AgentInputWalletProviderEnum | null;
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @type {string}
|
|
435
|
+
* @memberof AgentInput
|
|
436
|
+
*/
|
|
51
437
|
'readonly_wallet_address'?: string | null;
|
|
52
|
-
|
|
53
|
-
|
|
438
|
+
/**
|
|
439
|
+
*
|
|
440
|
+
* @type {string}
|
|
441
|
+
* @memberof AgentInput
|
|
442
|
+
*/
|
|
443
|
+
'network_id'?: AgentInputNetworkIdEnum | null;
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @type {string}
|
|
447
|
+
* @memberof AgentInput
|
|
448
|
+
*/
|
|
449
|
+
'cdp_network_id'?: AgentInputCdpNetworkIdEnum | null;
|
|
450
|
+
/**
|
|
451
|
+
*
|
|
452
|
+
* @type {boolean}
|
|
453
|
+
* @memberof AgentInput
|
|
454
|
+
*/
|
|
54
455
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
456
|
+
/**
|
|
457
|
+
*
|
|
458
|
+
* @type {string}
|
|
459
|
+
* @memberof AgentInput
|
|
460
|
+
*/
|
|
55
461
|
'telegram_entrypoint_prompt'?: string | null;
|
|
462
|
+
/**
|
|
463
|
+
*
|
|
464
|
+
* @type {object}
|
|
465
|
+
* @memberof AgentInput
|
|
466
|
+
*/
|
|
56
467
|
'telegram_config'?: object | null;
|
|
468
|
+
/**
|
|
469
|
+
*
|
|
470
|
+
* @type {string}
|
|
471
|
+
* @memberof AgentInput
|
|
472
|
+
*/
|
|
57
473
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
58
474
|
/**
|
|
59
475
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
476
|
+
* @type {string}
|
|
477
|
+
* @memberof AgentInput
|
|
60
478
|
*/
|
|
61
479
|
'id'?: string;
|
|
62
480
|
/**
|
|
63
481
|
* Timestamp when the agent was created, will ignore when importing
|
|
482
|
+
* @type {string}
|
|
483
|
+
* @memberof AgentInput
|
|
64
484
|
*/
|
|
65
485
|
'created_at'?: string;
|
|
66
486
|
/**
|
|
67
487
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
488
|
+
* @type {string}
|
|
489
|
+
* @memberof AgentInput
|
|
68
490
|
*/
|
|
69
491
|
'updated_at'?: string;
|
|
70
492
|
}
|
|
71
|
-
export declare const
|
|
493
|
+
export declare const AgentInputModeEnum: {
|
|
72
494
|
readonly Public: "public";
|
|
73
495
|
readonly Private: "private";
|
|
74
496
|
};
|
|
75
|
-
export type
|
|
76
|
-
export declare const
|
|
497
|
+
export type AgentInputModeEnum = typeof AgentInputModeEnum[keyof typeof AgentInputModeEnum];
|
|
498
|
+
export declare const AgentInputShortTermMemoryStrategyEnum: {
|
|
77
499
|
readonly Trim: "trim";
|
|
78
500
|
readonly Summarize: "summarize";
|
|
79
501
|
};
|
|
80
|
-
export type
|
|
81
|
-
export declare const
|
|
502
|
+
export type AgentInputShortTermMemoryStrategyEnum = typeof AgentInputShortTermMemoryStrategyEnum[keyof typeof AgentInputShortTermMemoryStrategyEnum];
|
|
503
|
+
export declare const AgentInputWalletProviderEnum: {
|
|
82
504
|
readonly Cdp: "cdp";
|
|
83
505
|
readonly Readonly: "readonly";
|
|
84
506
|
};
|
|
85
|
-
export type
|
|
86
|
-
export declare const
|
|
507
|
+
export type AgentInputWalletProviderEnum = typeof AgentInputWalletProviderEnum[keyof typeof AgentInputWalletProviderEnum];
|
|
508
|
+
export declare const AgentInputNetworkIdEnum: {
|
|
87
509
|
readonly EthereumMainnet: "ethereum-mainnet";
|
|
88
510
|
readonly EthereumSepolia: "ethereum-sepolia";
|
|
89
511
|
readonly PolygonMainnet: "polygon-mainnet";
|
|
@@ -96,8 +518,8 @@ export declare const AgentNetworkIdEnum: {
|
|
|
96
518
|
readonly OptimismSepolia: "optimism-sepolia";
|
|
97
519
|
readonly Solana: "solana";
|
|
98
520
|
};
|
|
99
|
-
export type
|
|
100
|
-
export declare const
|
|
521
|
+
export type AgentInputNetworkIdEnum = typeof AgentInputNetworkIdEnum[keyof typeof AgentInputNetworkIdEnum];
|
|
522
|
+
export declare const AgentInputCdpNetworkIdEnum: {
|
|
101
523
|
readonly EthereumMainnet: "ethereum-mainnet";
|
|
102
524
|
readonly EthereumSepolia: "ethereum-sepolia";
|
|
103
525
|
readonly PolygonMainnet: "polygon-mainnet";
|
|
@@ -109,211 +531,535 @@ export declare const AgentCdpNetworkIdEnum: {
|
|
|
109
531
|
readonly OptimismMainnet: "optimism-mainnet";
|
|
110
532
|
readonly OptimismSepolia: "optimism-sepolia";
|
|
111
533
|
};
|
|
112
|
-
export type
|
|
534
|
+
export type AgentInputCdpNetworkIdEnum = typeof AgentInputCdpNetworkIdEnum[keyof typeof AgentInputCdpNetworkIdEnum];
|
|
113
535
|
/**
|
|
114
|
-
*
|
|
536
|
+
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
537
|
+
* @export
|
|
538
|
+
* @interface AgentListResponse
|
|
115
539
|
*/
|
|
116
|
-
export interface
|
|
540
|
+
export interface AgentListResponse {
|
|
117
541
|
/**
|
|
118
|
-
*
|
|
542
|
+
* List of agents
|
|
543
|
+
* @type {Array<AgentResponse>}
|
|
544
|
+
* @memberof AgentListResponse
|
|
119
545
|
*/
|
|
120
|
-
'
|
|
546
|
+
'data': Array<AgentResponse>;
|
|
121
547
|
/**
|
|
122
|
-
*
|
|
548
|
+
* Indicates if there are more items
|
|
549
|
+
* @type {boolean}
|
|
550
|
+
* @memberof AgentListResponse
|
|
123
551
|
*/
|
|
124
|
-
'
|
|
552
|
+
'has_more': boolean;
|
|
125
553
|
/**
|
|
126
|
-
*
|
|
554
|
+
*
|
|
555
|
+
* @type {string}
|
|
556
|
+
* @memberof AgentListResponse
|
|
127
557
|
*/
|
|
128
|
-
'
|
|
558
|
+
'next_cursor'?: string | null;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Agent model.
|
|
562
|
+
* @export
|
|
563
|
+
* @interface AgentOutput
|
|
564
|
+
*/
|
|
565
|
+
export interface AgentOutput {
|
|
129
566
|
/**
|
|
130
|
-
*
|
|
567
|
+
*
|
|
568
|
+
* @type {string}
|
|
569
|
+
* @memberof AgentOutput
|
|
131
570
|
*/
|
|
132
|
-
'
|
|
571
|
+
'name': string | null;
|
|
133
572
|
/**
|
|
134
|
-
*
|
|
573
|
+
*
|
|
574
|
+
* @type {string}
|
|
575
|
+
* @memberof AgentOutput
|
|
135
576
|
*/
|
|
136
|
-
'
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Response model for agent assets.
|
|
140
|
-
*/
|
|
141
|
-
export interface AgentAssetsResponse {
|
|
577
|
+
'slug'?: string | null;
|
|
142
578
|
/**
|
|
143
|
-
*
|
|
579
|
+
*
|
|
580
|
+
* @type {string}
|
|
581
|
+
* @memberof AgentOutput
|
|
144
582
|
*/
|
|
145
|
-
'
|
|
146
|
-
'network_id': string | null;
|
|
147
|
-
'wallet_address': string | null;
|
|
148
|
-
'ticker': string | null;
|
|
149
|
-
'token_address': string | null;
|
|
150
|
-
'token_pool': string | null;
|
|
583
|
+
'description'?: string | null;
|
|
151
584
|
/**
|
|
152
|
-
*
|
|
585
|
+
*
|
|
586
|
+
* @type {string}
|
|
587
|
+
* @memberof AgentOutput
|
|
153
588
|
*/
|
|
154
|
-
'
|
|
589
|
+
'external_website'?: string | null;
|
|
155
590
|
/**
|
|
156
|
-
*
|
|
591
|
+
*
|
|
592
|
+
* @type {string}
|
|
593
|
+
* @memberof AgentOutput
|
|
157
594
|
*/
|
|
158
|
-
'
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Autonomous agent configuration.
|
|
162
|
-
*/
|
|
163
|
-
export interface AgentAutonomous {
|
|
595
|
+
'picture'?: string | null;
|
|
164
596
|
/**
|
|
165
|
-
*
|
|
597
|
+
*
|
|
598
|
+
* @type {string}
|
|
599
|
+
* @memberof AgentOutput
|
|
166
600
|
*/
|
|
167
|
-
'
|
|
168
|
-
'name'?: string | null;
|
|
169
|
-
'description'?: string | null;
|
|
170
|
-
'minutes'?: number | null;
|
|
171
|
-
'cron'?: string | null;
|
|
601
|
+
'ticker'?: string | null;
|
|
172
602
|
/**
|
|
173
|
-
*
|
|
603
|
+
*
|
|
604
|
+
* @type {string}
|
|
605
|
+
* @memberof AgentOutput
|
|
174
606
|
*/
|
|
175
|
-
'
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
607
|
+
'token_address'?: string | null;
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @type {string}
|
|
611
|
+
* @memberof AgentOutput
|
|
612
|
+
*/
|
|
613
|
+
'token_pool'?: string | null;
|
|
614
|
+
/**
|
|
615
|
+
*
|
|
616
|
+
* @type {string}
|
|
617
|
+
* @memberof AgentOutput
|
|
618
|
+
*/
|
|
619
|
+
'mode'?: AgentOutputModeEnum | null;
|
|
620
|
+
/**
|
|
621
|
+
*
|
|
622
|
+
* @type {string}
|
|
623
|
+
* @memberof AgentOutput
|
|
624
|
+
*/
|
|
625
|
+
'fee_percentage'?: string | null;
|
|
626
|
+
/**
|
|
627
|
+
*
|
|
628
|
+
* @type {string}
|
|
629
|
+
* @memberof AgentOutput
|
|
630
|
+
*/
|
|
631
|
+
'purpose': string | null;
|
|
632
|
+
/**
|
|
633
|
+
*
|
|
634
|
+
* @type {string}
|
|
635
|
+
* @memberof AgentOutput
|
|
636
|
+
*/
|
|
637
|
+
'personality': string | null;
|
|
638
|
+
/**
|
|
639
|
+
*
|
|
640
|
+
* @type {string}
|
|
641
|
+
* @memberof AgentOutput
|
|
642
|
+
*/
|
|
643
|
+
'principles': string | null;
|
|
644
|
+
/**
|
|
645
|
+
*
|
|
646
|
+
* @type {string}
|
|
647
|
+
* @memberof AgentOutput
|
|
648
|
+
*/
|
|
649
|
+
'owner'?: string | null;
|
|
650
|
+
/**
|
|
651
|
+
*
|
|
652
|
+
* @type {string}
|
|
653
|
+
* @memberof AgentOutput
|
|
654
|
+
*/
|
|
655
|
+
'upstream_id'?: string | null;
|
|
656
|
+
/**
|
|
657
|
+
*
|
|
658
|
+
* @type {object}
|
|
659
|
+
* @memberof AgentOutput
|
|
660
|
+
*/
|
|
661
|
+
'upstream_extra'?: object | null;
|
|
662
|
+
/**
|
|
663
|
+
* AI model identifier to be used by this agent for processing requests.
|
|
664
|
+
* @type {string}
|
|
665
|
+
* @memberof AgentOutput
|
|
666
|
+
*/
|
|
667
|
+
'model'?: string;
|
|
668
|
+
/**
|
|
669
|
+
*
|
|
670
|
+
* @type {string}
|
|
671
|
+
* @memberof AgentOutput
|
|
672
|
+
*/
|
|
673
|
+
'prompt'?: string | null;
|
|
674
|
+
/**
|
|
675
|
+
*
|
|
676
|
+
* @type {string}
|
|
677
|
+
* @memberof AgentOutput
|
|
678
|
+
*/
|
|
679
|
+
'prompt_append'?: string | null;
|
|
680
|
+
/**
|
|
681
|
+
*
|
|
682
|
+
* @type {number}
|
|
683
|
+
* @memberof AgentOutput
|
|
684
|
+
*/
|
|
685
|
+
'temperature'?: number | null;
|
|
686
|
+
/**
|
|
687
|
+
*
|
|
688
|
+
* @type {number}
|
|
689
|
+
* @memberof AgentOutput
|
|
690
|
+
*/
|
|
691
|
+
'frequency_penalty'?: number | null;
|
|
692
|
+
/**
|
|
693
|
+
*
|
|
694
|
+
* @type {number}
|
|
695
|
+
* @memberof AgentOutput
|
|
696
|
+
*/
|
|
697
|
+
'presence_penalty'?: number | null;
|
|
698
|
+
/**
|
|
699
|
+
*
|
|
700
|
+
* @type {string}
|
|
701
|
+
* @memberof AgentOutput
|
|
702
|
+
*/
|
|
703
|
+
'short_term_memory_strategy'?: AgentOutputShortTermMemoryStrategyEnum | null;
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @type {Array<AgentAutonomous>}
|
|
707
|
+
* @memberof AgentOutput
|
|
708
|
+
*/
|
|
709
|
+
'autonomous'?: Array<AgentAutonomous> | null;
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @type {string}
|
|
713
|
+
* @memberof AgentOutput
|
|
714
|
+
*/
|
|
715
|
+
'example_intro'?: string | null;
|
|
716
|
+
/**
|
|
717
|
+
*
|
|
718
|
+
* @type {Array<AgentExample>}
|
|
719
|
+
* @memberof AgentOutput
|
|
720
|
+
*/
|
|
721
|
+
'examples'?: Array<AgentExample> | null;
|
|
182
722
|
/**
|
|
183
|
-
*
|
|
723
|
+
*
|
|
724
|
+
* @type {object}
|
|
725
|
+
* @memberof AgentOutput
|
|
184
726
|
*/
|
|
185
|
-
'
|
|
727
|
+
'skills'?: object | null;
|
|
186
728
|
/**
|
|
187
|
-
*
|
|
729
|
+
*
|
|
730
|
+
* @type {string}
|
|
731
|
+
* @memberof AgentOutput
|
|
188
732
|
*/
|
|
189
|
-
'
|
|
733
|
+
'wallet_provider'?: AgentOutputWalletProviderEnum | null;
|
|
190
734
|
/**
|
|
191
|
-
*
|
|
735
|
+
*
|
|
736
|
+
* @type {string}
|
|
737
|
+
* @memberof AgentOutput
|
|
192
738
|
*/
|
|
193
|
-
'
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Request model for agent generation.
|
|
197
|
-
*/
|
|
198
|
-
export interface AgentGenerateRequest {
|
|
739
|
+
'readonly_wallet_address'?: string | null;
|
|
199
740
|
/**
|
|
200
|
-
*
|
|
741
|
+
*
|
|
742
|
+
* @type {string}
|
|
743
|
+
* @memberof AgentOutput
|
|
201
744
|
*/
|
|
202
|
-
'
|
|
203
|
-
'existing_agent'?: AgentUpdate | null;
|
|
204
|
-
'project_id'?: string | null;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Response model for agent generation.
|
|
208
|
-
*/
|
|
209
|
-
export interface AgentGenerateResponse {
|
|
745
|
+
'network_id'?: AgentOutputNetworkIdEnum | null;
|
|
210
746
|
/**
|
|
211
|
-
*
|
|
747
|
+
*
|
|
748
|
+
* @type {string}
|
|
749
|
+
* @memberof AgentOutput
|
|
212
750
|
*/
|
|
213
|
-
'
|
|
751
|
+
'cdp_network_id'?: AgentOutputCdpNetworkIdEnum | null;
|
|
214
752
|
/**
|
|
215
|
-
*
|
|
753
|
+
*
|
|
754
|
+
* @type {boolean}
|
|
755
|
+
* @memberof AgentOutput
|
|
216
756
|
*/
|
|
217
|
-
'
|
|
757
|
+
'telegram_entrypoint_enabled'?: boolean | null;
|
|
218
758
|
/**
|
|
219
|
-
*
|
|
759
|
+
*
|
|
760
|
+
* @type {string}
|
|
761
|
+
* @memberof AgentOutput
|
|
220
762
|
*/
|
|
221
|
-
'
|
|
763
|
+
'telegram_entrypoint_prompt'?: string | null;
|
|
222
764
|
/**
|
|
223
|
-
*
|
|
765
|
+
*
|
|
766
|
+
* @type {object}
|
|
767
|
+
* @memberof AgentOutput
|
|
224
768
|
*/
|
|
225
|
-
'
|
|
226
|
-
[key: string]: number;
|
|
227
|
-
}>;
|
|
769
|
+
'telegram_config'?: object | null;
|
|
228
770
|
/**
|
|
229
|
-
*
|
|
771
|
+
*
|
|
772
|
+
* @type {string}
|
|
773
|
+
* @memberof AgentOutput
|
|
230
774
|
*/
|
|
231
|
-
'
|
|
775
|
+
'xmtp_entrypoint_prompt'?: string | null;
|
|
232
776
|
/**
|
|
233
|
-
*
|
|
777
|
+
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
778
|
+
* @type {string}
|
|
779
|
+
* @memberof AgentOutput
|
|
234
780
|
*/
|
|
235
|
-
'
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
239
|
-
*/
|
|
240
|
-
export interface AgentListResponse {
|
|
781
|
+
'id'?: string;
|
|
241
782
|
/**
|
|
242
|
-
*
|
|
783
|
+
* Timestamp when the agent was created, will ignore when importing
|
|
784
|
+
* @type {string}
|
|
785
|
+
* @memberof AgentOutput
|
|
243
786
|
*/
|
|
244
|
-
'
|
|
787
|
+
'created_at'?: string;
|
|
245
788
|
/**
|
|
246
|
-
*
|
|
789
|
+
* Timestamp when the agent was last updated, will ignore when importing
|
|
790
|
+
* @type {string}
|
|
791
|
+
* @memberof AgentOutput
|
|
247
792
|
*/
|
|
248
|
-
'
|
|
249
|
-
'next_cursor'?: string | null;
|
|
793
|
+
'updated_at'?: string;
|
|
250
794
|
}
|
|
795
|
+
export declare const AgentOutputModeEnum: {
|
|
796
|
+
readonly Public: "public";
|
|
797
|
+
readonly Private: "private";
|
|
798
|
+
};
|
|
799
|
+
export type AgentOutputModeEnum = typeof AgentOutputModeEnum[keyof typeof AgentOutputModeEnum];
|
|
800
|
+
export declare const AgentOutputShortTermMemoryStrategyEnum: {
|
|
801
|
+
readonly Trim: "trim";
|
|
802
|
+
readonly Summarize: "summarize";
|
|
803
|
+
};
|
|
804
|
+
export type AgentOutputShortTermMemoryStrategyEnum = typeof AgentOutputShortTermMemoryStrategyEnum[keyof typeof AgentOutputShortTermMemoryStrategyEnum];
|
|
805
|
+
export declare const AgentOutputWalletProviderEnum: {
|
|
806
|
+
readonly Cdp: "cdp";
|
|
807
|
+
readonly Readonly: "readonly";
|
|
808
|
+
};
|
|
809
|
+
export type AgentOutputWalletProviderEnum = typeof AgentOutputWalletProviderEnum[keyof typeof AgentOutputWalletProviderEnum];
|
|
810
|
+
export declare const AgentOutputNetworkIdEnum: {
|
|
811
|
+
readonly EthereumMainnet: "ethereum-mainnet";
|
|
812
|
+
readonly EthereumSepolia: "ethereum-sepolia";
|
|
813
|
+
readonly PolygonMainnet: "polygon-mainnet";
|
|
814
|
+
readonly PolygonMumbai: "polygon-mumbai";
|
|
815
|
+
readonly BaseMainnet: "base-mainnet";
|
|
816
|
+
readonly BaseSepolia: "base-sepolia";
|
|
817
|
+
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
818
|
+
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
819
|
+
readonly OptimismMainnet: "optimism-mainnet";
|
|
820
|
+
readonly OptimismSepolia: "optimism-sepolia";
|
|
821
|
+
readonly Solana: "solana";
|
|
822
|
+
};
|
|
823
|
+
export type AgentOutputNetworkIdEnum = typeof AgentOutputNetworkIdEnum[keyof typeof AgentOutputNetworkIdEnum];
|
|
824
|
+
export declare const AgentOutputCdpNetworkIdEnum: {
|
|
825
|
+
readonly EthereumMainnet: "ethereum-mainnet";
|
|
826
|
+
readonly EthereumSepolia: "ethereum-sepolia";
|
|
827
|
+
readonly PolygonMainnet: "polygon-mainnet";
|
|
828
|
+
readonly PolygonMumbai: "polygon-mumbai";
|
|
829
|
+
readonly BaseMainnet: "base-mainnet";
|
|
830
|
+
readonly BaseSepolia: "base-sepolia";
|
|
831
|
+
readonly ArbitrumMainnet: "arbitrum-mainnet";
|
|
832
|
+
readonly ArbitrumSepolia: "arbitrum-sepolia";
|
|
833
|
+
readonly OptimismMainnet: "optimism-mainnet";
|
|
834
|
+
readonly OptimismSepolia: "optimism-sepolia";
|
|
835
|
+
};
|
|
836
|
+
export type AgentOutputCdpNetworkIdEnum = typeof AgentOutputCdpNetworkIdEnum[keyof typeof AgentOutputCdpNetworkIdEnum];
|
|
251
837
|
/**
|
|
252
838
|
* Response model for Agent API.
|
|
839
|
+
* @export
|
|
840
|
+
* @interface AgentResponse
|
|
253
841
|
*/
|
|
254
842
|
export interface AgentResponse {
|
|
255
843
|
/**
|
|
256
844
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
845
|
+
* @type {string}
|
|
846
|
+
* @memberof AgentResponse
|
|
257
847
|
*/
|
|
258
848
|
'id': string;
|
|
259
849
|
/**
|
|
260
850
|
* Timestamp when the agent was created, will ignore when importing
|
|
851
|
+
* @type {string}
|
|
852
|
+
* @memberof AgentResponse
|
|
261
853
|
*/
|
|
262
854
|
'created_at': string;
|
|
263
855
|
/**
|
|
264
856
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
857
|
+
* @type {string}
|
|
858
|
+
* @memberof AgentResponse
|
|
265
859
|
*/
|
|
266
860
|
'updated_at': string;
|
|
861
|
+
/**
|
|
862
|
+
*
|
|
863
|
+
* @type {string}
|
|
864
|
+
* @memberof AgentResponse
|
|
865
|
+
*/
|
|
267
866
|
'name'?: string | null;
|
|
867
|
+
/**
|
|
868
|
+
*
|
|
869
|
+
* @type {string}
|
|
870
|
+
* @memberof AgentResponse
|
|
871
|
+
*/
|
|
268
872
|
'slug'?: string | null;
|
|
873
|
+
/**
|
|
874
|
+
*
|
|
875
|
+
* @type {string}
|
|
876
|
+
* @memberof AgentResponse
|
|
877
|
+
*/
|
|
269
878
|
'description'?: string | null;
|
|
879
|
+
/**
|
|
880
|
+
*
|
|
881
|
+
* @type {string}
|
|
882
|
+
* @memberof AgentResponse
|
|
883
|
+
*/
|
|
270
884
|
'external_website'?: string | null;
|
|
885
|
+
/**
|
|
886
|
+
*
|
|
887
|
+
* @type {string}
|
|
888
|
+
* @memberof AgentResponse
|
|
889
|
+
*/
|
|
271
890
|
'picture'?: string | null;
|
|
891
|
+
/**
|
|
892
|
+
*
|
|
893
|
+
* @type {string}
|
|
894
|
+
* @memberof AgentResponse
|
|
895
|
+
*/
|
|
272
896
|
'ticker'?: string | null;
|
|
897
|
+
/**
|
|
898
|
+
*
|
|
899
|
+
* @type {string}
|
|
900
|
+
* @memberof AgentResponse
|
|
901
|
+
*/
|
|
273
902
|
'token_address'?: string | null;
|
|
903
|
+
/**
|
|
904
|
+
*
|
|
905
|
+
* @type {string}
|
|
906
|
+
* @memberof AgentResponse
|
|
907
|
+
*/
|
|
274
908
|
'token_pool'?: string | null;
|
|
909
|
+
/**
|
|
910
|
+
*
|
|
911
|
+
* @type {string}
|
|
912
|
+
* @memberof AgentResponse
|
|
913
|
+
*/
|
|
275
914
|
'mode'?: AgentResponseModeEnum | null;
|
|
915
|
+
/**
|
|
916
|
+
*
|
|
917
|
+
* @type {string}
|
|
918
|
+
* @memberof AgentResponse
|
|
919
|
+
*/
|
|
276
920
|
'fee_percentage'?: string | null;
|
|
921
|
+
/**
|
|
922
|
+
*
|
|
923
|
+
* @type {string}
|
|
924
|
+
* @memberof AgentResponse
|
|
925
|
+
*/
|
|
277
926
|
'owner'?: string | null;
|
|
927
|
+
/**
|
|
928
|
+
*
|
|
929
|
+
* @type {string}
|
|
930
|
+
* @memberof AgentResponse
|
|
931
|
+
*/
|
|
278
932
|
'upstream_id'?: string | null;
|
|
933
|
+
/**
|
|
934
|
+
*
|
|
935
|
+
* @type {object}
|
|
936
|
+
* @memberof AgentResponse
|
|
937
|
+
*/
|
|
279
938
|
'upstream_extra'?: object | null;
|
|
280
939
|
/**
|
|
281
940
|
* AI model identifier to be used by this agent for processing requests. Available models: gpt-4o, gpt-4o-mini, deepseek-chat, deepseek-reasoner, grok-2, eternalai, reigent
|
|
941
|
+
* @type {string}
|
|
942
|
+
* @memberof AgentResponse
|
|
282
943
|
*/
|
|
283
944
|
'model': string;
|
|
945
|
+
/**
|
|
946
|
+
*
|
|
947
|
+
* @type {Array<object>}
|
|
948
|
+
* @memberof AgentResponse
|
|
949
|
+
*/
|
|
284
950
|
'autonomous'?: Array<object> | null;
|
|
951
|
+
/**
|
|
952
|
+
*
|
|
953
|
+
* @type {string}
|
|
954
|
+
* @memberof AgentResponse
|
|
955
|
+
*/
|
|
285
956
|
'example_intro'?: string | null;
|
|
957
|
+
/**
|
|
958
|
+
*
|
|
959
|
+
* @type {Array<AgentExample>}
|
|
960
|
+
* @memberof AgentResponse
|
|
961
|
+
*/
|
|
286
962
|
'examples'?: Array<AgentExample> | null;
|
|
963
|
+
/**
|
|
964
|
+
*
|
|
965
|
+
* @type {object}
|
|
966
|
+
* @memberof AgentResponse
|
|
967
|
+
*/
|
|
287
968
|
'skills'?: object | null;
|
|
969
|
+
/**
|
|
970
|
+
*
|
|
971
|
+
* @type {string}
|
|
972
|
+
* @memberof AgentResponse
|
|
973
|
+
*/
|
|
288
974
|
'wallet_provider'?: AgentResponseWalletProviderEnum | null;
|
|
975
|
+
/**
|
|
976
|
+
*
|
|
977
|
+
* @type {string}
|
|
978
|
+
* @memberof AgentResponse
|
|
979
|
+
*/
|
|
289
980
|
'network_id'?: string | null;
|
|
981
|
+
/**
|
|
982
|
+
*
|
|
983
|
+
* @type {string}
|
|
984
|
+
* @memberof AgentResponse
|
|
985
|
+
*/
|
|
290
986
|
'cdp_network_id'?: string | null;
|
|
987
|
+
/**
|
|
988
|
+
*
|
|
989
|
+
* @type {boolean}
|
|
990
|
+
* @memberof AgentResponse
|
|
991
|
+
*/
|
|
291
992
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
993
|
+
/**
|
|
994
|
+
*
|
|
995
|
+
* @type {string}
|
|
996
|
+
* @memberof AgentResponse
|
|
997
|
+
*/
|
|
292
998
|
'cdp_wallet_address': string | null;
|
|
999
|
+
/**
|
|
1000
|
+
*
|
|
1001
|
+
* @type {string}
|
|
1002
|
+
* @memberof AgentResponse
|
|
1003
|
+
*/
|
|
293
1004
|
'evm_wallet_address': string | null;
|
|
1005
|
+
/**
|
|
1006
|
+
*
|
|
1007
|
+
* @type {string}
|
|
1008
|
+
* @memberof AgentResponse
|
|
1009
|
+
*/
|
|
294
1010
|
'solana_wallet_address': string | null;
|
|
295
1011
|
/**
|
|
296
1012
|
* Whether the agent has linked their Twitter account
|
|
1013
|
+
* @type {boolean}
|
|
1014
|
+
* @memberof AgentResponse
|
|
297
1015
|
*/
|
|
298
1016
|
'has_twitter_linked': boolean;
|
|
1017
|
+
/**
|
|
1018
|
+
*
|
|
1019
|
+
* @type {string}
|
|
1020
|
+
* @memberof AgentResponse
|
|
1021
|
+
*/
|
|
299
1022
|
'linked_twitter_username': string | null;
|
|
1023
|
+
/**
|
|
1024
|
+
*
|
|
1025
|
+
* @type {string}
|
|
1026
|
+
* @memberof AgentResponse
|
|
1027
|
+
*/
|
|
300
1028
|
'linked_twitter_name': string | null;
|
|
301
1029
|
/**
|
|
302
1030
|
* Whether the agent has self-keyed their Twitter account
|
|
1031
|
+
* @type {boolean}
|
|
1032
|
+
* @memberof AgentResponse
|
|
303
1033
|
*/
|
|
304
1034
|
'has_twitter_self_key': boolean;
|
|
305
1035
|
/**
|
|
306
1036
|
* Whether the agent has self-keyed their Telegram account
|
|
1037
|
+
* @type {boolean}
|
|
1038
|
+
* @memberof AgentResponse
|
|
307
1039
|
*/
|
|
308
1040
|
'has_telegram_self_key': boolean;
|
|
1041
|
+
/**
|
|
1042
|
+
*
|
|
1043
|
+
* @type {string}
|
|
1044
|
+
* @memberof AgentResponse
|
|
1045
|
+
*/
|
|
309
1046
|
'linked_telegram_username': string | null;
|
|
1047
|
+
/**
|
|
1048
|
+
*
|
|
1049
|
+
* @type {string}
|
|
1050
|
+
* @memberof AgentResponse
|
|
1051
|
+
*/
|
|
310
1052
|
'linked_telegram_name': string | null;
|
|
311
1053
|
/**
|
|
312
1054
|
* Whether the agent accepts image inputs in public mode
|
|
1055
|
+
* @type {boolean}
|
|
1056
|
+
* @memberof AgentResponse
|
|
313
1057
|
*/
|
|
314
1058
|
'accept_image_input': boolean;
|
|
315
1059
|
/**
|
|
316
1060
|
* Whether the agent accepts image inputs in private mode
|
|
1061
|
+
* @type {boolean}
|
|
1062
|
+
* @memberof AgentResponse
|
|
317
1063
|
*/
|
|
318
1064
|
'accept_image_input_private': boolean;
|
|
319
1065
|
}
|
|
@@ -329,6 +1075,8 @@ export declare const AgentResponseWalletProviderEnum: {
|
|
|
329
1075
|
export type AgentResponseWalletProviderEnum = typeof AgentResponseWalletProviderEnum[keyof typeof AgentResponseWalletProviderEnum];
|
|
330
1076
|
/**
|
|
331
1077
|
* Sort options for agents list.
|
|
1078
|
+
* @export
|
|
1079
|
+
* @enum {string}
|
|
332
1080
|
*/
|
|
333
1081
|
export declare const AgentSortOption: {
|
|
334
1082
|
readonly CreatedAtDesc: "created_at desc";
|
|
@@ -338,110 +1086,316 @@ export declare const AgentSortOption: {
|
|
|
338
1086
|
export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOption];
|
|
339
1087
|
/**
|
|
340
1088
|
* Response model for agent statistics.
|
|
1089
|
+
* @export
|
|
1090
|
+
* @interface AgentStatisticsResponse
|
|
341
1091
|
*/
|
|
342
1092
|
export interface AgentStatisticsResponse {
|
|
343
1093
|
/**
|
|
344
1094
|
* ID of the agent
|
|
1095
|
+
* @type {string}
|
|
1096
|
+
* @memberof AgentStatisticsResponse
|
|
345
1097
|
*/
|
|
346
1098
|
'agent_id': string;
|
|
347
1099
|
/**
|
|
348
1100
|
* ID of the agent\'s credit account
|
|
1101
|
+
* @type {string}
|
|
1102
|
+
* @memberof AgentStatisticsResponse
|
|
349
1103
|
*/
|
|
350
1104
|
'account_id': string;
|
|
351
1105
|
/**
|
|
352
1106
|
* Total balance of the agent\'s account
|
|
1107
|
+
* @type {string}
|
|
1108
|
+
* @memberof AgentStatisticsResponse
|
|
353
1109
|
*/
|
|
354
1110
|
'balance': string;
|
|
355
1111
|
/**
|
|
356
1112
|
* Total income from all credit events
|
|
1113
|
+
* @type {string}
|
|
1114
|
+
* @memberof AgentStatisticsResponse
|
|
357
1115
|
*/
|
|
358
1116
|
'total_income': string;
|
|
359
1117
|
/**
|
|
360
1118
|
* Net income from all credit events
|
|
1119
|
+
* @type {string}
|
|
1120
|
+
* @memberof AgentStatisticsResponse
|
|
361
1121
|
*/
|
|
362
1122
|
'net_income': string;
|
|
363
1123
|
/**
|
|
364
1124
|
* Permanent income from all credit events
|
|
1125
|
+
* @type {string}
|
|
1126
|
+
* @memberof AgentStatisticsResponse
|
|
365
1127
|
*/
|
|
366
1128
|
'permanent_income': string;
|
|
367
1129
|
/**
|
|
368
1130
|
* Permanent profit from all credit events
|
|
1131
|
+
* @type {string}
|
|
1132
|
+
* @memberof AgentStatisticsResponse
|
|
369
1133
|
*/
|
|
370
1134
|
'permanent_profit': string;
|
|
371
1135
|
/**
|
|
372
1136
|
* Income from last 24 hours
|
|
1137
|
+
* @type {string}
|
|
1138
|
+
* @memberof AgentStatisticsResponse
|
|
373
1139
|
*/
|
|
374
1140
|
'last_24h_income': string;
|
|
375
1141
|
/**
|
|
376
1142
|
* Permanent income from last 24 hours
|
|
1143
|
+
* @type {string}
|
|
1144
|
+
* @memberof AgentStatisticsResponse
|
|
377
1145
|
*/
|
|
378
1146
|
'last_24h_permanent_income': string;
|
|
379
1147
|
/**
|
|
380
1148
|
* Average action cost
|
|
1149
|
+
* @type {string}
|
|
1150
|
+
* @memberof AgentStatisticsResponse
|
|
381
1151
|
*/
|
|
382
1152
|
'avg_action_cost': string;
|
|
383
1153
|
/**
|
|
384
1154
|
* Minimum action cost
|
|
1155
|
+
* @type {string}
|
|
1156
|
+
* @memberof AgentStatisticsResponse
|
|
385
1157
|
*/
|
|
386
1158
|
'min_action_cost': string;
|
|
387
1159
|
/**
|
|
388
1160
|
* Maximum action cost
|
|
1161
|
+
* @type {string}
|
|
1162
|
+
* @memberof AgentStatisticsResponse
|
|
389
1163
|
*/
|
|
390
1164
|
'max_action_cost': string;
|
|
391
1165
|
/**
|
|
392
1166
|
* Low action cost
|
|
1167
|
+
* @type {string}
|
|
1168
|
+
* @memberof AgentStatisticsResponse
|
|
393
1169
|
*/
|
|
394
1170
|
'low_action_cost': string;
|
|
395
1171
|
/**
|
|
396
1172
|
* Medium action cost
|
|
1173
|
+
* @type {string}
|
|
1174
|
+
* @memberof AgentStatisticsResponse
|
|
397
1175
|
*/
|
|
398
1176
|
'medium_action_cost': string;
|
|
399
1177
|
/**
|
|
400
1178
|
* High action cost
|
|
1179
|
+
* @type {string}
|
|
1180
|
+
* @memberof AgentStatisticsResponse
|
|
401
1181
|
*/
|
|
402
1182
|
'high_action_cost': string;
|
|
403
1183
|
}
|
|
404
1184
|
/**
|
|
405
1185
|
* Agent update model.
|
|
1186
|
+
* @export
|
|
1187
|
+
* @interface AgentUpdate
|
|
406
1188
|
*/
|
|
407
1189
|
export interface AgentUpdate {
|
|
1190
|
+
/**
|
|
1191
|
+
*
|
|
1192
|
+
* @type {string}
|
|
1193
|
+
* @memberof AgentUpdate
|
|
1194
|
+
*/
|
|
408
1195
|
'name': string | null;
|
|
1196
|
+
/**
|
|
1197
|
+
*
|
|
1198
|
+
* @type {string}
|
|
1199
|
+
* @memberof AgentUpdate
|
|
1200
|
+
*/
|
|
409
1201
|
'slug'?: string | null;
|
|
1202
|
+
/**
|
|
1203
|
+
*
|
|
1204
|
+
* @type {string}
|
|
1205
|
+
* @memberof AgentUpdate
|
|
1206
|
+
*/
|
|
410
1207
|
'description'?: string | null;
|
|
1208
|
+
/**
|
|
1209
|
+
*
|
|
1210
|
+
* @type {string}
|
|
1211
|
+
* @memberof AgentUpdate
|
|
1212
|
+
*/
|
|
411
1213
|
'external_website'?: string | null;
|
|
1214
|
+
/**
|
|
1215
|
+
*
|
|
1216
|
+
* @type {string}
|
|
1217
|
+
* @memberof AgentUpdate
|
|
1218
|
+
*/
|
|
412
1219
|
'picture'?: string | null;
|
|
1220
|
+
/**
|
|
1221
|
+
*
|
|
1222
|
+
* @type {string}
|
|
1223
|
+
* @memberof AgentUpdate
|
|
1224
|
+
*/
|
|
413
1225
|
'ticker'?: string | null;
|
|
1226
|
+
/**
|
|
1227
|
+
*
|
|
1228
|
+
* @type {string}
|
|
1229
|
+
* @memberof AgentUpdate
|
|
1230
|
+
*/
|
|
414
1231
|
'token_address'?: string | null;
|
|
1232
|
+
/**
|
|
1233
|
+
*
|
|
1234
|
+
* @type {string}
|
|
1235
|
+
* @memberof AgentUpdate
|
|
1236
|
+
*/
|
|
415
1237
|
'token_pool'?: string | null;
|
|
1238
|
+
/**
|
|
1239
|
+
*
|
|
1240
|
+
* @type {string}
|
|
1241
|
+
* @memberof AgentUpdate
|
|
1242
|
+
*/
|
|
416
1243
|
'mode'?: AgentUpdateModeEnum | null;
|
|
1244
|
+
/**
|
|
1245
|
+
*
|
|
1246
|
+
* @type {FeePercentage}
|
|
1247
|
+
* @memberof AgentUpdate
|
|
1248
|
+
*/
|
|
417
1249
|
'fee_percentage'?: FeePercentage | null;
|
|
1250
|
+
/**
|
|
1251
|
+
*
|
|
1252
|
+
* @type {string}
|
|
1253
|
+
* @memberof AgentUpdate
|
|
1254
|
+
*/
|
|
418
1255
|
'purpose': string | null;
|
|
1256
|
+
/**
|
|
1257
|
+
*
|
|
1258
|
+
* @type {string}
|
|
1259
|
+
* @memberof AgentUpdate
|
|
1260
|
+
*/
|
|
419
1261
|
'personality': string | null;
|
|
1262
|
+
/**
|
|
1263
|
+
*
|
|
1264
|
+
* @type {string}
|
|
1265
|
+
* @memberof AgentUpdate
|
|
1266
|
+
*/
|
|
420
1267
|
'principles': string | null;
|
|
1268
|
+
/**
|
|
1269
|
+
*
|
|
1270
|
+
* @type {string}
|
|
1271
|
+
* @memberof AgentUpdate
|
|
1272
|
+
*/
|
|
421
1273
|
'owner'?: string | null;
|
|
1274
|
+
/**
|
|
1275
|
+
*
|
|
1276
|
+
* @type {string}
|
|
1277
|
+
* @memberof AgentUpdate
|
|
1278
|
+
*/
|
|
422
1279
|
'upstream_id'?: string | null;
|
|
1280
|
+
/**
|
|
1281
|
+
*
|
|
1282
|
+
* @type {object}
|
|
1283
|
+
* @memberof AgentUpdate
|
|
1284
|
+
*/
|
|
423
1285
|
'upstream_extra'?: object | null;
|
|
424
1286
|
/**
|
|
425
1287
|
* AI model identifier to be used by this agent for processing requests.
|
|
1288
|
+
* @type {string}
|
|
1289
|
+
* @memberof AgentUpdate
|
|
426
1290
|
*/
|
|
427
1291
|
'model'?: string;
|
|
1292
|
+
/**
|
|
1293
|
+
*
|
|
1294
|
+
* @type {string}
|
|
1295
|
+
* @memberof AgentUpdate
|
|
1296
|
+
*/
|
|
428
1297
|
'prompt'?: string | null;
|
|
1298
|
+
/**
|
|
1299
|
+
*
|
|
1300
|
+
* @type {string}
|
|
1301
|
+
* @memberof AgentUpdate
|
|
1302
|
+
*/
|
|
429
1303
|
'prompt_append'?: string | null;
|
|
1304
|
+
/**
|
|
1305
|
+
*
|
|
1306
|
+
* @type {number}
|
|
1307
|
+
* @memberof AgentUpdate
|
|
1308
|
+
*/
|
|
430
1309
|
'temperature'?: number | null;
|
|
1310
|
+
/**
|
|
1311
|
+
*
|
|
1312
|
+
* @type {number}
|
|
1313
|
+
* @memberof AgentUpdate
|
|
1314
|
+
*/
|
|
431
1315
|
'frequency_penalty'?: number | null;
|
|
1316
|
+
/**
|
|
1317
|
+
*
|
|
1318
|
+
* @type {number}
|
|
1319
|
+
* @memberof AgentUpdate
|
|
1320
|
+
*/
|
|
432
1321
|
'presence_penalty'?: number | null;
|
|
1322
|
+
/**
|
|
1323
|
+
*
|
|
1324
|
+
* @type {string}
|
|
1325
|
+
* @memberof AgentUpdate
|
|
1326
|
+
*/
|
|
433
1327
|
'short_term_memory_strategy'?: AgentUpdateShortTermMemoryStrategyEnum | null;
|
|
1328
|
+
/**
|
|
1329
|
+
*
|
|
1330
|
+
* @type {Array<AgentAutonomous>}
|
|
1331
|
+
* @memberof AgentUpdate
|
|
1332
|
+
*/
|
|
434
1333
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1334
|
+
/**
|
|
1335
|
+
*
|
|
1336
|
+
* @type {string}
|
|
1337
|
+
* @memberof AgentUpdate
|
|
1338
|
+
*/
|
|
435
1339
|
'example_intro'?: string | null;
|
|
1340
|
+
/**
|
|
1341
|
+
*
|
|
1342
|
+
* @type {Array<AgentExample>}
|
|
1343
|
+
* @memberof AgentUpdate
|
|
1344
|
+
*/
|
|
436
1345
|
'examples'?: Array<AgentExample> | null;
|
|
1346
|
+
/**
|
|
1347
|
+
*
|
|
1348
|
+
* @type {object}
|
|
1349
|
+
* @memberof AgentUpdate
|
|
1350
|
+
*/
|
|
437
1351
|
'skills'?: object | null;
|
|
1352
|
+
/**
|
|
1353
|
+
*
|
|
1354
|
+
* @type {string}
|
|
1355
|
+
* @memberof AgentUpdate
|
|
1356
|
+
*/
|
|
438
1357
|
'wallet_provider'?: AgentUpdateWalletProviderEnum | null;
|
|
1358
|
+
/**
|
|
1359
|
+
*
|
|
1360
|
+
* @type {string}
|
|
1361
|
+
* @memberof AgentUpdate
|
|
1362
|
+
*/
|
|
439
1363
|
'readonly_wallet_address'?: string | null;
|
|
1364
|
+
/**
|
|
1365
|
+
*
|
|
1366
|
+
* @type {string}
|
|
1367
|
+
* @memberof AgentUpdate
|
|
1368
|
+
*/
|
|
440
1369
|
'network_id'?: AgentUpdateNetworkIdEnum | null;
|
|
1370
|
+
/**
|
|
1371
|
+
*
|
|
1372
|
+
* @type {string}
|
|
1373
|
+
* @memberof AgentUpdate
|
|
1374
|
+
*/
|
|
441
1375
|
'cdp_network_id'?: AgentUpdateCdpNetworkIdEnum | null;
|
|
1376
|
+
/**
|
|
1377
|
+
*
|
|
1378
|
+
* @type {boolean}
|
|
1379
|
+
* @memberof AgentUpdate
|
|
1380
|
+
*/
|
|
442
1381
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1382
|
+
/**
|
|
1383
|
+
*
|
|
1384
|
+
* @type {string}
|
|
1385
|
+
* @memberof AgentUpdate
|
|
1386
|
+
*/
|
|
443
1387
|
'telegram_entrypoint_prompt'?: string | null;
|
|
1388
|
+
/**
|
|
1389
|
+
*
|
|
1390
|
+
* @type {object}
|
|
1391
|
+
* @memberof AgentUpdate
|
|
1392
|
+
*/
|
|
444
1393
|
'telegram_config'?: object | null;
|
|
1394
|
+
/**
|
|
1395
|
+
*
|
|
1396
|
+
* @type {string}
|
|
1397
|
+
* @memberof AgentUpdate
|
|
1398
|
+
*/
|
|
445
1399
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
446
1400
|
}
|
|
447
1401
|
export declare const AgentUpdateModeEnum: {
|
|
@@ -488,19 +1442,27 @@ export declare const AgentUpdateCdpNetworkIdEnum: {
|
|
|
488
1442
|
export type AgentUpdateCdpNetworkIdEnum = typeof AgentUpdateCdpNetworkIdEnum[keyof typeof AgentUpdateCdpNetworkIdEnum];
|
|
489
1443
|
/**
|
|
490
1444
|
* Model for individual asset with symbol and balance.
|
|
1445
|
+
* @export
|
|
1446
|
+
* @interface Asset
|
|
491
1447
|
*/
|
|
492
1448
|
export interface Asset {
|
|
493
1449
|
/**
|
|
494
1450
|
* Asset symbol (e.g., ETH, USDC, NATION)
|
|
1451
|
+
* @type {string}
|
|
1452
|
+
* @memberof Asset
|
|
495
1453
|
*/
|
|
496
1454
|
'symbol': string;
|
|
497
1455
|
/**
|
|
498
1456
|
* Asset balance as decimal
|
|
1457
|
+
* @type {string}
|
|
1458
|
+
* @memberof Asset
|
|
499
1459
|
*/
|
|
500
1460
|
'balance': string;
|
|
501
1461
|
}
|
|
502
1462
|
/**
|
|
503
1463
|
* Type of message author.
|
|
1464
|
+
* @export
|
|
1465
|
+
* @enum {string}
|
|
504
1466
|
*/
|
|
505
1467
|
export declare const AuthorType: {
|
|
506
1468
|
readonly Agent: "agent";
|
|
@@ -516,111 +1478,227 @@ export declare const AuthorType: {
|
|
|
516
1478
|
export type AuthorType = typeof AuthorType[keyof typeof AuthorType];
|
|
517
1479
|
/**
|
|
518
1480
|
* Chat model with all fields including server-generated ones.
|
|
1481
|
+
* @export
|
|
1482
|
+
* @interface Chat
|
|
519
1483
|
*/
|
|
520
1484
|
export interface Chat {
|
|
521
1485
|
/**
|
|
522
1486
|
* Unique identifier for the chat
|
|
1487
|
+
* @type {string}
|
|
1488
|
+
* @memberof Chat
|
|
523
1489
|
*/
|
|
524
1490
|
'id'?: string;
|
|
525
1491
|
/**
|
|
526
1492
|
* ID of the agent this chat belongs to
|
|
1493
|
+
* @type {string}
|
|
1494
|
+
* @memberof Chat
|
|
527
1495
|
*/
|
|
528
1496
|
'agent_id': string;
|
|
529
1497
|
/**
|
|
530
1498
|
* User ID of the chat
|
|
1499
|
+
* @type {string}
|
|
1500
|
+
* @memberof Chat
|
|
531
1501
|
*/
|
|
532
1502
|
'user_id': string;
|
|
533
1503
|
/**
|
|
534
1504
|
* Summary of the chat
|
|
1505
|
+
* @type {string}
|
|
1506
|
+
* @memberof Chat
|
|
535
1507
|
*/
|
|
536
1508
|
'summary'?: string;
|
|
537
1509
|
/**
|
|
538
1510
|
* Number of rounds in the chat
|
|
1511
|
+
* @type {number}
|
|
1512
|
+
* @memberof Chat
|
|
539
1513
|
*/
|
|
540
1514
|
'rounds'?: number;
|
|
541
1515
|
/**
|
|
542
1516
|
* Timestamp when this chat was created
|
|
1517
|
+
* @type {string}
|
|
1518
|
+
* @memberof Chat
|
|
543
1519
|
*/
|
|
544
1520
|
'created_at': string;
|
|
545
1521
|
/**
|
|
546
1522
|
* Timestamp when this chat was updated
|
|
1523
|
+
* @type {string}
|
|
1524
|
+
* @memberof Chat
|
|
547
1525
|
*/
|
|
548
1526
|
'updated_at': string;
|
|
549
1527
|
}
|
|
550
1528
|
/**
|
|
551
1529
|
* Chat message model with all fields including server-generated ones.
|
|
1530
|
+
* @export
|
|
1531
|
+
* @interface ChatMessage
|
|
552
1532
|
*/
|
|
553
1533
|
export interface ChatMessage {
|
|
554
1534
|
/**
|
|
555
1535
|
* Unique identifier for the chat message
|
|
1536
|
+
* @type {string}
|
|
1537
|
+
* @memberof ChatMessage
|
|
556
1538
|
*/
|
|
557
1539
|
'id'?: string;
|
|
558
1540
|
/**
|
|
559
1541
|
* ID of the agent this message belongs to
|
|
1542
|
+
* @type {string}
|
|
1543
|
+
* @memberof ChatMessage
|
|
560
1544
|
*/
|
|
561
1545
|
'agent_id': string;
|
|
562
1546
|
/**
|
|
563
1547
|
* ID of the chat this message belongs to
|
|
1548
|
+
* @type {string}
|
|
1549
|
+
* @memberof ChatMessage
|
|
564
1550
|
*/
|
|
565
1551
|
'chat_id': string;
|
|
1552
|
+
/**
|
|
1553
|
+
*
|
|
1554
|
+
* @type {string}
|
|
1555
|
+
* @memberof ChatMessage
|
|
1556
|
+
*/
|
|
566
1557
|
'user_id': string | null;
|
|
567
1558
|
/**
|
|
568
1559
|
* ID of the message author
|
|
1560
|
+
* @type {string}
|
|
1561
|
+
* @memberof ChatMessage
|
|
569
1562
|
*/
|
|
570
1563
|
'author_id': string;
|
|
571
1564
|
/**
|
|
572
1565
|
* Type of the message author
|
|
1566
|
+
* @type {AuthorType}
|
|
1567
|
+
* @memberof ChatMessage
|
|
573
1568
|
*/
|
|
574
1569
|
'author_type': AuthorType;
|
|
1570
|
+
/**
|
|
1571
|
+
*
|
|
1572
|
+
* @type {string}
|
|
1573
|
+
* @memberof ChatMessage
|
|
1574
|
+
*/
|
|
575
1575
|
'model'?: string | null;
|
|
1576
|
+
/**
|
|
1577
|
+
*
|
|
1578
|
+
* @type {AuthorType}
|
|
1579
|
+
* @memberof ChatMessage
|
|
1580
|
+
*/
|
|
576
1581
|
'thread_type'?: AuthorType | null;
|
|
1582
|
+
/**
|
|
1583
|
+
*
|
|
1584
|
+
* @type {string}
|
|
1585
|
+
* @memberof ChatMessage
|
|
1586
|
+
*/
|
|
577
1587
|
'reply_to'?: string | null;
|
|
578
1588
|
/**
|
|
579
1589
|
* Content of the message
|
|
1590
|
+
* @type {string}
|
|
1591
|
+
* @memberof ChatMessage
|
|
580
1592
|
*/
|
|
581
1593
|
'message': string;
|
|
1594
|
+
/**
|
|
1595
|
+
*
|
|
1596
|
+
* @type {Array<ChatMessageAttachment>}
|
|
1597
|
+
* @memberof ChatMessage
|
|
1598
|
+
*/
|
|
582
1599
|
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
1600
|
+
/**
|
|
1601
|
+
*
|
|
1602
|
+
* @type {Array<ChatMessageSkillCall>}
|
|
1603
|
+
* @memberof ChatMessage
|
|
1604
|
+
*/
|
|
583
1605
|
'skill_calls'?: Array<ChatMessageSkillCall> | null;
|
|
584
1606
|
/**
|
|
585
1607
|
* Number of tokens in the input message
|
|
1608
|
+
* @type {number}
|
|
1609
|
+
* @memberof ChatMessage
|
|
586
1610
|
*/
|
|
587
1611
|
'input_tokens'?: number;
|
|
588
1612
|
/**
|
|
589
1613
|
* Number of tokens in the output message
|
|
1614
|
+
* @type {number}
|
|
1615
|
+
* @memberof ChatMessage
|
|
590
1616
|
*/
|
|
591
1617
|
'output_tokens'?: number;
|
|
592
1618
|
/**
|
|
593
1619
|
* Time cost for the message in seconds
|
|
1620
|
+
* @type {number}
|
|
1621
|
+
* @memberof ChatMessage
|
|
594
1622
|
*/
|
|
595
1623
|
'time_cost'?: number;
|
|
1624
|
+
/**
|
|
1625
|
+
*
|
|
1626
|
+
* @type {string}
|
|
1627
|
+
* @memberof ChatMessage
|
|
1628
|
+
*/
|
|
596
1629
|
'credit_event_id'?: string | null;
|
|
1630
|
+
/**
|
|
1631
|
+
*
|
|
1632
|
+
* @type {string}
|
|
1633
|
+
* @memberof ChatMessage
|
|
1634
|
+
*/
|
|
597
1635
|
'credit_cost'?: string | null;
|
|
598
1636
|
/**
|
|
599
1637
|
* Cost for the cold start of the message in seconds
|
|
1638
|
+
* @type {number}
|
|
1639
|
+
* @memberof ChatMessage
|
|
600
1640
|
*/
|
|
601
1641
|
'cold_start_cost'?: number;
|
|
1642
|
+
/**
|
|
1643
|
+
*
|
|
1644
|
+
* @type {string}
|
|
1645
|
+
* @memberof ChatMessage
|
|
1646
|
+
*/
|
|
602
1647
|
'app_id'?: string | null;
|
|
1648
|
+
/**
|
|
1649
|
+
*
|
|
1650
|
+
* @type {boolean}
|
|
1651
|
+
* @memberof ChatMessage
|
|
1652
|
+
*/
|
|
603
1653
|
'search_mode'?: boolean | null;
|
|
1654
|
+
/**
|
|
1655
|
+
*
|
|
1656
|
+
* @type {boolean}
|
|
1657
|
+
* @memberof ChatMessage
|
|
1658
|
+
*/
|
|
604
1659
|
'super_mode'?: boolean | null;
|
|
1660
|
+
/**
|
|
1661
|
+
*
|
|
1662
|
+
* @type {SystemMessageType}
|
|
1663
|
+
* @memberof ChatMessage
|
|
1664
|
+
*/
|
|
605
1665
|
'error_type'?: SystemMessageType | null;
|
|
606
1666
|
/**
|
|
607
1667
|
* Timestamp when this message was created
|
|
1668
|
+
* @type {string}
|
|
1669
|
+
* @memberof ChatMessage
|
|
608
1670
|
*/
|
|
609
1671
|
'created_at': string;
|
|
610
1672
|
}
|
|
611
1673
|
/**
|
|
612
1674
|
* Chat message attachment model. An attachment can be a link, image, or file that is associated with a chat message.
|
|
1675
|
+
* @export
|
|
1676
|
+
* @interface ChatMessageAttachment
|
|
613
1677
|
*/
|
|
614
1678
|
export interface ChatMessageAttachment {
|
|
615
1679
|
/**
|
|
616
1680
|
* Type of the attachment (link, image, or file)
|
|
1681
|
+
* @type {ChatMessageAttachmentType}
|
|
1682
|
+
* @memberof ChatMessageAttachment
|
|
617
1683
|
*/
|
|
618
1684
|
'type': ChatMessageAttachmentType;
|
|
1685
|
+
/**
|
|
1686
|
+
*
|
|
1687
|
+
* @type {string}
|
|
1688
|
+
* @memberof ChatMessageAttachment
|
|
1689
|
+
*/
|
|
619
1690
|
'url': string | null;
|
|
1691
|
+
/**
|
|
1692
|
+
*
|
|
1693
|
+
* @type {object}
|
|
1694
|
+
* @memberof ChatMessageAttachment
|
|
1695
|
+
*/
|
|
620
1696
|
'json'?: object | null;
|
|
621
1697
|
}
|
|
622
1698
|
/**
|
|
623
1699
|
* Type of chat message attachment.
|
|
1700
|
+
* @export
|
|
1701
|
+
* @enum {string}
|
|
624
1702
|
*/
|
|
625
1703
|
export declare const ChatMessageAttachmentType: {
|
|
626
1704
|
readonly Link: "link";
|
|
@@ -631,98 +1709,229 @@ export declare const ChatMessageAttachmentType: {
|
|
|
631
1709
|
export type ChatMessageAttachmentType = typeof ChatMessageAttachmentType[keyof typeof ChatMessageAttachmentType];
|
|
632
1710
|
/**
|
|
633
1711
|
* 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.
|
|
1712
|
+
* @export
|
|
1713
|
+
* @interface ChatMessageRequest
|
|
634
1714
|
*/
|
|
635
1715
|
export interface ChatMessageRequest {
|
|
1716
|
+
/**
|
|
1717
|
+
*
|
|
1718
|
+
* @type {string}
|
|
1719
|
+
* @memberof ChatMessageRequest
|
|
1720
|
+
*/
|
|
636
1721
|
'app_id'?: string | null;
|
|
637
1722
|
/**
|
|
638
1723
|
* Content of the message
|
|
1724
|
+
* @type {string}
|
|
1725
|
+
* @memberof ChatMessageRequest
|
|
639
1726
|
*/
|
|
640
1727
|
'message': string;
|
|
1728
|
+
/**
|
|
1729
|
+
*
|
|
1730
|
+
* @type {boolean}
|
|
1731
|
+
* @memberof ChatMessageRequest
|
|
1732
|
+
*/
|
|
641
1733
|
'stream'?: boolean | null;
|
|
1734
|
+
/**
|
|
1735
|
+
*
|
|
1736
|
+
* @type {boolean}
|
|
1737
|
+
* @memberof ChatMessageRequest
|
|
1738
|
+
*/
|
|
642
1739
|
'search_mode'?: boolean | null;
|
|
1740
|
+
/**
|
|
1741
|
+
*
|
|
1742
|
+
* @type {boolean}
|
|
1743
|
+
* @memberof ChatMessageRequest
|
|
1744
|
+
*/
|
|
643
1745
|
'super_mode'?: boolean | null;
|
|
1746
|
+
/**
|
|
1747
|
+
*
|
|
1748
|
+
* @type {Array<ChatMessageAttachment>}
|
|
1749
|
+
* @memberof ChatMessageRequest
|
|
1750
|
+
*/
|
|
644
1751
|
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
645
1752
|
}
|
|
646
1753
|
/**
|
|
647
1754
|
* TypedDict for skill call details.
|
|
1755
|
+
* @export
|
|
1756
|
+
* @interface ChatMessageSkillCall
|
|
648
1757
|
*/
|
|
649
1758
|
export interface ChatMessageSkillCall {
|
|
1759
|
+
/**
|
|
1760
|
+
*
|
|
1761
|
+
* @type {string}
|
|
1762
|
+
* @memberof ChatMessageSkillCall
|
|
1763
|
+
*/
|
|
650
1764
|
'id'?: string;
|
|
1765
|
+
/**
|
|
1766
|
+
*
|
|
1767
|
+
* @type {string}
|
|
1768
|
+
* @memberof ChatMessageSkillCall
|
|
1769
|
+
*/
|
|
651
1770
|
'name': string;
|
|
1771
|
+
/**
|
|
1772
|
+
*
|
|
1773
|
+
* @type {object}
|
|
1774
|
+
* @memberof ChatMessageSkillCall
|
|
1775
|
+
*/
|
|
652
1776
|
'parameters': object;
|
|
1777
|
+
/**
|
|
1778
|
+
*
|
|
1779
|
+
* @type {boolean}
|
|
1780
|
+
* @memberof ChatMessageSkillCall
|
|
1781
|
+
*/
|
|
653
1782
|
'success': boolean;
|
|
1783
|
+
/**
|
|
1784
|
+
*
|
|
1785
|
+
* @type {string}
|
|
1786
|
+
* @memberof ChatMessageSkillCall
|
|
1787
|
+
*/
|
|
654
1788
|
'response'?: string;
|
|
1789
|
+
/**
|
|
1790
|
+
*
|
|
1791
|
+
* @type {string}
|
|
1792
|
+
* @memberof ChatMessageSkillCall
|
|
1793
|
+
*/
|
|
655
1794
|
'error_message'?: string;
|
|
1795
|
+
/**
|
|
1796
|
+
*
|
|
1797
|
+
* @type {string}
|
|
1798
|
+
* @memberof ChatMessageSkillCall
|
|
1799
|
+
*/
|
|
656
1800
|
'credit_event_id'?: string;
|
|
1801
|
+
/**
|
|
1802
|
+
*
|
|
1803
|
+
* @type {string}
|
|
1804
|
+
* @memberof ChatMessageSkillCall
|
|
1805
|
+
*/
|
|
657
1806
|
'credit_cost'?: string;
|
|
658
1807
|
}
|
|
659
1808
|
/**
|
|
660
1809
|
* Response model for chat messages with pagination.
|
|
1810
|
+
* @export
|
|
1811
|
+
* @interface ChatMessagesResponse
|
|
661
1812
|
*/
|
|
662
1813
|
export interface ChatMessagesResponse {
|
|
1814
|
+
/**
|
|
1815
|
+
*
|
|
1816
|
+
* @type {Array<ChatMessage>}
|
|
1817
|
+
* @memberof ChatMessagesResponse
|
|
1818
|
+
*/
|
|
663
1819
|
'data': Array<ChatMessage>;
|
|
1820
|
+
/**
|
|
1821
|
+
*
|
|
1822
|
+
* @type {boolean}
|
|
1823
|
+
* @memberof ChatMessagesResponse
|
|
1824
|
+
*/
|
|
664
1825
|
'has_more'?: boolean;
|
|
1826
|
+
/**
|
|
1827
|
+
*
|
|
1828
|
+
* @type {string}
|
|
1829
|
+
* @memberof ChatMessagesResponse
|
|
1830
|
+
*/
|
|
665
1831
|
'next_cursor'?: string | null;
|
|
666
1832
|
}
|
|
667
1833
|
/**
|
|
668
1834
|
* Request model for updating a chat thread.
|
|
1835
|
+
* @export
|
|
1836
|
+
* @interface ChatUpdateRequest
|
|
669
1837
|
*/
|
|
670
1838
|
export interface ChatUpdateRequest {
|
|
671
1839
|
/**
|
|
672
1840
|
* Updated summary for the chat thread
|
|
1841
|
+
* @type {string}
|
|
1842
|
+
* @memberof ChatUpdateRequest
|
|
673
1843
|
*/
|
|
674
1844
|
'summary': string;
|
|
675
1845
|
}
|
|
676
1846
|
/**
|
|
677
1847
|
* Credit account model with all fields.
|
|
1848
|
+
* @export
|
|
1849
|
+
* @interface CreditAccount
|
|
678
1850
|
*/
|
|
679
1851
|
export interface CreditAccount {
|
|
680
1852
|
/**
|
|
681
1853
|
* Unique identifier for the credit account
|
|
1854
|
+
* @type {string}
|
|
1855
|
+
* @memberof CreditAccount
|
|
682
1856
|
*/
|
|
683
1857
|
'id'?: string;
|
|
684
1858
|
/**
|
|
685
1859
|
* Type of the account owner
|
|
1860
|
+
* @type {OwnerType}
|
|
1861
|
+
* @memberof CreditAccount
|
|
686
1862
|
*/
|
|
687
1863
|
'owner_type': OwnerType;
|
|
688
1864
|
/**
|
|
689
1865
|
* ID of the account owner
|
|
1866
|
+
* @type {string}
|
|
1867
|
+
* @memberof CreditAccount
|
|
690
1868
|
*/
|
|
691
1869
|
'owner_id': string;
|
|
692
1870
|
/**
|
|
693
1871
|
* Daily credit quota that resets each day
|
|
1872
|
+
* @type {string}
|
|
1873
|
+
* @memberof CreditAccount
|
|
694
1874
|
*/
|
|
695
1875
|
'free_quota'?: string;
|
|
696
1876
|
/**
|
|
697
1877
|
* Amount to refill hourly, not exceeding free_quota
|
|
1878
|
+
* @type {string}
|
|
1879
|
+
* @memberof CreditAccount
|
|
698
1880
|
*/
|
|
699
1881
|
'refill_amount'?: string;
|
|
700
1882
|
/**
|
|
701
1883
|
* Current available daily credits
|
|
1884
|
+
* @type {string}
|
|
1885
|
+
* @memberof CreditAccount
|
|
702
1886
|
*/
|
|
703
1887
|
'free_credits'?: string;
|
|
704
1888
|
/**
|
|
705
1889
|
* Reward credits earned through rewards
|
|
1890
|
+
* @type {string}
|
|
1891
|
+
* @memberof CreditAccount
|
|
706
1892
|
*/
|
|
707
1893
|
'reward_credits'?: string;
|
|
708
1894
|
/**
|
|
709
1895
|
* Credits added through top-ups
|
|
1896
|
+
* @type {string}
|
|
1897
|
+
* @memberof CreditAccount
|
|
710
1898
|
*/
|
|
711
1899
|
'credits'?: string;
|
|
1900
|
+
/**
|
|
1901
|
+
*
|
|
1902
|
+
* @type {string}
|
|
1903
|
+
* @memberof CreditAccount
|
|
1904
|
+
*/
|
|
712
1905
|
'income_at'?: string | null;
|
|
1906
|
+
/**
|
|
1907
|
+
*
|
|
1908
|
+
* @type {string}
|
|
1909
|
+
* @memberof CreditAccount
|
|
1910
|
+
*/
|
|
713
1911
|
'expense_at'?: string | null;
|
|
1912
|
+
/**
|
|
1913
|
+
*
|
|
1914
|
+
* @type {string}
|
|
1915
|
+
* @memberof CreditAccount
|
|
1916
|
+
*/
|
|
714
1917
|
'last_event_id'?: string | null;
|
|
715
1918
|
/**
|
|
716
1919
|
* Timestamp when this account was created
|
|
1920
|
+
* @type {string}
|
|
1921
|
+
* @memberof CreditAccount
|
|
717
1922
|
*/
|
|
718
1923
|
'created_at': string;
|
|
719
1924
|
/**
|
|
720
1925
|
* Timestamp when this account was last updated
|
|
1926
|
+
* @type {string}
|
|
1927
|
+
* @memberof CreditAccount
|
|
721
1928
|
*/
|
|
722
1929
|
'updated_at': string;
|
|
723
1930
|
}
|
|
724
1931
|
/**
|
|
725
1932
|
* Credit or debit transaction.
|
|
1933
|
+
* @export
|
|
1934
|
+
* @enum {string}
|
|
726
1935
|
*/
|
|
727
1936
|
export declare const CreditDebit: {
|
|
728
1937
|
readonly Credit: "credit";
|
|
@@ -731,245 +1940,697 @@ export declare const CreditDebit: {
|
|
|
731
1940
|
export type CreditDebit = typeof CreditDebit[keyof typeof CreditDebit];
|
|
732
1941
|
/**
|
|
733
1942
|
* Credit event model with all fields.
|
|
1943
|
+
* @export
|
|
1944
|
+
* @interface CreditEvent
|
|
734
1945
|
*/
|
|
735
1946
|
export interface CreditEvent {
|
|
736
1947
|
/**
|
|
737
1948
|
* Unique identifier for the credit event
|
|
1949
|
+
* @type {string}
|
|
1950
|
+
* @memberof CreditEvent
|
|
738
1951
|
*/
|
|
739
1952
|
'id'?: string;
|
|
740
1953
|
/**
|
|
741
1954
|
* Account ID from which credits flow
|
|
1955
|
+
* @type {string}
|
|
1956
|
+
* @memberof CreditEvent
|
|
742
1957
|
*/
|
|
743
1958
|
'account_id'?: string;
|
|
744
1959
|
/**
|
|
745
1960
|
* Type of the event
|
|
1961
|
+
* @type {EventType}
|
|
1962
|
+
* @memberof CreditEvent
|
|
746
1963
|
*/
|
|
747
1964
|
'event_type': EventType;
|
|
1965
|
+
/**
|
|
1966
|
+
*
|
|
1967
|
+
* @type {string}
|
|
1968
|
+
* @memberof CreditEvent
|
|
1969
|
+
*/
|
|
748
1970
|
'user_id'?: string | null;
|
|
749
1971
|
/**
|
|
750
1972
|
* Type of upstream transaction
|
|
1973
|
+
* @type {UpstreamType}
|
|
1974
|
+
* @memberof CreditEvent
|
|
751
1975
|
*/
|
|
752
1976
|
'upstream_type': UpstreamType;
|
|
753
1977
|
/**
|
|
754
1978
|
* Upstream transaction ID if any
|
|
1979
|
+
* @type {string}
|
|
1980
|
+
* @memberof CreditEvent
|
|
755
1981
|
*/
|
|
756
1982
|
'upstream_tx_id': string;
|
|
1983
|
+
/**
|
|
1984
|
+
*
|
|
1985
|
+
* @type {string}
|
|
1986
|
+
* @memberof CreditEvent
|
|
1987
|
+
*/
|
|
757
1988
|
'agent_id'?: string | null;
|
|
1989
|
+
/**
|
|
1990
|
+
*
|
|
1991
|
+
* @type {string}
|
|
1992
|
+
* @memberof CreditEvent
|
|
1993
|
+
*/
|
|
758
1994
|
'agent_wallet_address'?: string | null;
|
|
1995
|
+
/**
|
|
1996
|
+
*
|
|
1997
|
+
* @type {string}
|
|
1998
|
+
* @memberof CreditEvent
|
|
1999
|
+
*/
|
|
759
2000
|
'start_message_id'?: string | null;
|
|
2001
|
+
/**
|
|
2002
|
+
*
|
|
2003
|
+
* @type {string}
|
|
2004
|
+
* @memberof CreditEvent
|
|
2005
|
+
*/
|
|
760
2006
|
'message_id'?: string | null;
|
|
2007
|
+
/**
|
|
2008
|
+
*
|
|
2009
|
+
* @type {string}
|
|
2010
|
+
* @memberof CreditEvent
|
|
2011
|
+
*/
|
|
761
2012
|
'model'?: string | null;
|
|
2013
|
+
/**
|
|
2014
|
+
*
|
|
2015
|
+
* @type {string}
|
|
2016
|
+
* @memberof CreditEvent
|
|
2017
|
+
*/
|
|
762
2018
|
'skill_call_id'?: string | null;
|
|
2019
|
+
/**
|
|
2020
|
+
*
|
|
2021
|
+
* @type {string}
|
|
2022
|
+
* @memberof CreditEvent
|
|
2023
|
+
*/
|
|
763
2024
|
'skill_name'?: string | null;
|
|
764
2025
|
/**
|
|
765
2026
|
* Direction of the credit flow
|
|
2027
|
+
* @type {Direction}
|
|
2028
|
+
* @memberof CreditEvent
|
|
766
2029
|
*/
|
|
767
2030
|
'direction': Direction;
|
|
768
2031
|
/**
|
|
769
2032
|
* Total amount (after discount) of credits involved
|
|
2033
|
+
* @type {string}
|
|
2034
|
+
* @memberof CreditEvent
|
|
770
2035
|
*/
|
|
771
2036
|
'total_amount'?: string;
|
|
772
2037
|
/**
|
|
773
2038
|
* Type of credits involved
|
|
2039
|
+
* @type {CreditType}
|
|
2040
|
+
* @memberof CreditEvent
|
|
774
2041
|
*/
|
|
775
2042
|
'credit_type': CreditType;
|
|
2043
|
+
/**
|
|
2044
|
+
*
|
|
2045
|
+
* @type {Array<CreditType>}
|
|
2046
|
+
* @memberof CreditEvent
|
|
2047
|
+
*/
|
|
776
2048
|
'credit_types'?: Array<CreditType> | null;
|
|
2049
|
+
/**
|
|
2050
|
+
*
|
|
2051
|
+
* @type {string}
|
|
2052
|
+
* @memberof CreditEvent
|
|
2053
|
+
*/
|
|
777
2054
|
'balance_after'?: string | null;
|
|
778
2055
|
/**
|
|
779
2056
|
* Base amount of credits involved
|
|
2057
|
+
* @type {string}
|
|
2058
|
+
* @memberof CreditEvent
|
|
780
2059
|
*/
|
|
781
2060
|
'base_amount'?: string;
|
|
2061
|
+
/**
|
|
2062
|
+
*
|
|
2063
|
+
* @type {string}
|
|
2064
|
+
* @memberof CreditEvent
|
|
2065
|
+
*/
|
|
782
2066
|
'base_discount_amount'?: string | null;
|
|
2067
|
+
/**
|
|
2068
|
+
*
|
|
2069
|
+
* @type {string}
|
|
2070
|
+
* @memberof CreditEvent
|
|
2071
|
+
*/
|
|
783
2072
|
'base_original_amount'?: string | null;
|
|
2073
|
+
/**
|
|
2074
|
+
*
|
|
2075
|
+
* @type {string}
|
|
2076
|
+
* @memberof CreditEvent
|
|
2077
|
+
*/
|
|
784
2078
|
'base_llm_amount'?: string | null;
|
|
2079
|
+
/**
|
|
2080
|
+
*
|
|
2081
|
+
* @type {string}
|
|
2082
|
+
* @memberof CreditEvent
|
|
2083
|
+
*/
|
|
785
2084
|
'base_skill_amount'?: string | null;
|
|
2085
|
+
/**
|
|
2086
|
+
*
|
|
2087
|
+
* @type {string}
|
|
2088
|
+
* @memberof CreditEvent
|
|
2089
|
+
*/
|
|
786
2090
|
'base_free_amount'?: string | null;
|
|
2091
|
+
/**
|
|
2092
|
+
*
|
|
2093
|
+
* @type {string}
|
|
2094
|
+
* @memberof CreditEvent
|
|
2095
|
+
*/
|
|
787
2096
|
'base_reward_amount'?: string | null;
|
|
2097
|
+
/**
|
|
2098
|
+
*
|
|
2099
|
+
* @type {string}
|
|
2100
|
+
* @memberof CreditEvent
|
|
2101
|
+
*/
|
|
788
2102
|
'base_permanent_amount'?: string | null;
|
|
2103
|
+
/**
|
|
2104
|
+
*
|
|
2105
|
+
* @type {string}
|
|
2106
|
+
* @memberof CreditEvent
|
|
2107
|
+
*/
|
|
789
2108
|
'fee_platform_amount'?: string | null;
|
|
2109
|
+
/**
|
|
2110
|
+
*
|
|
2111
|
+
* @type {string}
|
|
2112
|
+
* @memberof CreditEvent
|
|
2113
|
+
*/
|
|
790
2114
|
'fee_platform_free_amount'?: string | null;
|
|
2115
|
+
/**
|
|
2116
|
+
*
|
|
2117
|
+
* @type {string}
|
|
2118
|
+
* @memberof CreditEvent
|
|
2119
|
+
*/
|
|
791
2120
|
'fee_platform_reward_amount'?: string | null;
|
|
2121
|
+
/**
|
|
2122
|
+
*
|
|
2123
|
+
* @type {string}
|
|
2124
|
+
* @memberof CreditEvent
|
|
2125
|
+
*/
|
|
792
2126
|
'fee_platform_permanent_amount'?: string | null;
|
|
2127
|
+
/**
|
|
2128
|
+
*
|
|
2129
|
+
* @type {string}
|
|
2130
|
+
* @memberof CreditEvent
|
|
2131
|
+
*/
|
|
793
2132
|
'fee_dev_account'?: string | null;
|
|
2133
|
+
/**
|
|
2134
|
+
*
|
|
2135
|
+
* @type {string}
|
|
2136
|
+
* @memberof CreditEvent
|
|
2137
|
+
*/
|
|
794
2138
|
'fee_dev_amount'?: string | null;
|
|
2139
|
+
/**
|
|
2140
|
+
*
|
|
2141
|
+
* @type {string}
|
|
2142
|
+
* @memberof CreditEvent
|
|
2143
|
+
*/
|
|
795
2144
|
'fee_dev_free_amount'?: string | null;
|
|
2145
|
+
/**
|
|
2146
|
+
*
|
|
2147
|
+
* @type {string}
|
|
2148
|
+
* @memberof CreditEvent
|
|
2149
|
+
*/
|
|
796
2150
|
'fee_dev_reward_amount'?: string | null;
|
|
2151
|
+
/**
|
|
2152
|
+
*
|
|
2153
|
+
* @type {string}
|
|
2154
|
+
* @memberof CreditEvent
|
|
2155
|
+
*/
|
|
797
2156
|
'fee_dev_permanent_amount'?: string | null;
|
|
2157
|
+
/**
|
|
2158
|
+
*
|
|
2159
|
+
* @type {string}
|
|
2160
|
+
* @memberof CreditEvent
|
|
2161
|
+
*/
|
|
798
2162
|
'fee_agent_account'?: string | null;
|
|
2163
|
+
/**
|
|
2164
|
+
*
|
|
2165
|
+
* @type {string}
|
|
2166
|
+
* @memberof CreditEvent
|
|
2167
|
+
*/
|
|
799
2168
|
'fee_agent_amount'?: string | null;
|
|
2169
|
+
/**
|
|
2170
|
+
*
|
|
2171
|
+
* @type {string}
|
|
2172
|
+
* @memberof CreditEvent
|
|
2173
|
+
*/
|
|
800
2174
|
'fee_agent_free_amount'?: string | null;
|
|
2175
|
+
/**
|
|
2176
|
+
*
|
|
2177
|
+
* @type {string}
|
|
2178
|
+
* @memberof CreditEvent
|
|
2179
|
+
*/
|
|
801
2180
|
'fee_agent_reward_amount'?: string | null;
|
|
2181
|
+
/**
|
|
2182
|
+
*
|
|
2183
|
+
* @type {string}
|
|
2184
|
+
* @memberof CreditEvent
|
|
2185
|
+
*/
|
|
802
2186
|
'fee_agent_permanent_amount'?: string | null;
|
|
2187
|
+
/**
|
|
2188
|
+
*
|
|
2189
|
+
* @type {string}
|
|
2190
|
+
* @memberof CreditEvent
|
|
2191
|
+
*/
|
|
803
2192
|
'free_amount'?: string | null;
|
|
2193
|
+
/**
|
|
2194
|
+
*
|
|
2195
|
+
* @type {string}
|
|
2196
|
+
* @memberof CreditEvent
|
|
2197
|
+
*/
|
|
804
2198
|
'reward_amount'?: string | null;
|
|
2199
|
+
/**
|
|
2200
|
+
*
|
|
2201
|
+
* @type {string}
|
|
2202
|
+
* @memberof CreditEvent
|
|
2203
|
+
*/
|
|
805
2204
|
'permanent_amount'?: string | null;
|
|
2205
|
+
/**
|
|
2206
|
+
*
|
|
2207
|
+
* @type {string}
|
|
2208
|
+
* @memberof CreditEvent
|
|
2209
|
+
*/
|
|
806
2210
|
'note'?: string | null;
|
|
807
2211
|
/**
|
|
808
2212
|
* Timestamp when this event was created
|
|
2213
|
+
* @type {string}
|
|
2214
|
+
* @memberof CreditEvent
|
|
809
2215
|
*/
|
|
810
2216
|
'created_at': string;
|
|
811
2217
|
}
|
|
812
2218
|
/**
|
|
813
2219
|
* Credit event response model with agent name. Extends CreditEvent to include the agent name for better user experience.
|
|
2220
|
+
* @export
|
|
2221
|
+
* @interface CreditEventWithAgent
|
|
814
2222
|
*/
|
|
815
2223
|
export interface CreditEventWithAgent {
|
|
816
2224
|
/**
|
|
817
2225
|
* Unique identifier for the credit event
|
|
2226
|
+
* @type {string}
|
|
2227
|
+
* @memberof CreditEventWithAgent
|
|
818
2228
|
*/
|
|
819
2229
|
'id'?: string;
|
|
820
2230
|
/**
|
|
821
2231
|
* Account ID from which credits flow
|
|
2232
|
+
* @type {string}
|
|
2233
|
+
* @memberof CreditEventWithAgent
|
|
822
2234
|
*/
|
|
823
2235
|
'account_id'?: string;
|
|
824
2236
|
/**
|
|
825
2237
|
* Type of the event
|
|
2238
|
+
* @type {EventType}
|
|
2239
|
+
* @memberof CreditEventWithAgent
|
|
826
2240
|
*/
|
|
827
2241
|
'event_type': EventType;
|
|
2242
|
+
/**
|
|
2243
|
+
*
|
|
2244
|
+
* @type {string}
|
|
2245
|
+
* @memberof CreditEventWithAgent
|
|
2246
|
+
*/
|
|
828
2247
|
'user_id'?: string | null;
|
|
829
2248
|
/**
|
|
830
2249
|
* Type of upstream transaction
|
|
2250
|
+
* @type {UpstreamType}
|
|
2251
|
+
* @memberof CreditEventWithAgent
|
|
831
2252
|
*/
|
|
832
2253
|
'upstream_type': UpstreamType;
|
|
833
2254
|
/**
|
|
834
2255
|
* Upstream transaction ID if any
|
|
2256
|
+
* @type {string}
|
|
2257
|
+
* @memberof CreditEventWithAgent
|
|
835
2258
|
*/
|
|
836
2259
|
'upstream_tx_id': string;
|
|
2260
|
+
/**
|
|
2261
|
+
*
|
|
2262
|
+
* @type {string}
|
|
2263
|
+
* @memberof CreditEventWithAgent
|
|
2264
|
+
*/
|
|
837
2265
|
'agent_id'?: string | null;
|
|
2266
|
+
/**
|
|
2267
|
+
*
|
|
2268
|
+
* @type {string}
|
|
2269
|
+
* @memberof CreditEventWithAgent
|
|
2270
|
+
*/
|
|
838
2271
|
'agent_wallet_address'?: string | null;
|
|
2272
|
+
/**
|
|
2273
|
+
*
|
|
2274
|
+
* @type {string}
|
|
2275
|
+
* @memberof CreditEventWithAgent
|
|
2276
|
+
*/
|
|
839
2277
|
'start_message_id'?: string | null;
|
|
2278
|
+
/**
|
|
2279
|
+
*
|
|
2280
|
+
* @type {string}
|
|
2281
|
+
* @memberof CreditEventWithAgent
|
|
2282
|
+
*/
|
|
840
2283
|
'message_id'?: string | null;
|
|
2284
|
+
/**
|
|
2285
|
+
*
|
|
2286
|
+
* @type {string}
|
|
2287
|
+
* @memberof CreditEventWithAgent
|
|
2288
|
+
*/
|
|
841
2289
|
'model'?: string | null;
|
|
2290
|
+
/**
|
|
2291
|
+
*
|
|
2292
|
+
* @type {string}
|
|
2293
|
+
* @memberof CreditEventWithAgent
|
|
2294
|
+
*/
|
|
842
2295
|
'skill_call_id'?: string | null;
|
|
2296
|
+
/**
|
|
2297
|
+
*
|
|
2298
|
+
* @type {string}
|
|
2299
|
+
* @memberof CreditEventWithAgent
|
|
2300
|
+
*/
|
|
843
2301
|
'skill_name'?: string | null;
|
|
844
2302
|
/**
|
|
845
2303
|
* Direction of the credit flow
|
|
2304
|
+
* @type {Direction}
|
|
2305
|
+
* @memberof CreditEventWithAgent
|
|
846
2306
|
*/
|
|
847
2307
|
'direction': Direction;
|
|
848
2308
|
/**
|
|
849
2309
|
* Total amount (after discount) of credits involved
|
|
2310
|
+
* @type {string}
|
|
2311
|
+
* @memberof CreditEventWithAgent
|
|
850
2312
|
*/
|
|
851
2313
|
'total_amount'?: string;
|
|
852
2314
|
/**
|
|
853
2315
|
* Type of credits involved
|
|
2316
|
+
* @type {CreditType}
|
|
2317
|
+
* @memberof CreditEventWithAgent
|
|
854
2318
|
*/
|
|
855
2319
|
'credit_type': CreditType;
|
|
2320
|
+
/**
|
|
2321
|
+
*
|
|
2322
|
+
* @type {Array<CreditType>}
|
|
2323
|
+
* @memberof CreditEventWithAgent
|
|
2324
|
+
*/
|
|
856
2325
|
'credit_types'?: Array<CreditType> | null;
|
|
2326
|
+
/**
|
|
2327
|
+
*
|
|
2328
|
+
* @type {string}
|
|
2329
|
+
* @memberof CreditEventWithAgent
|
|
2330
|
+
*/
|
|
857
2331
|
'balance_after'?: string | null;
|
|
858
2332
|
/**
|
|
859
2333
|
* Base amount of credits involved
|
|
2334
|
+
* @type {string}
|
|
2335
|
+
* @memberof CreditEventWithAgent
|
|
860
2336
|
*/
|
|
861
2337
|
'base_amount'?: string;
|
|
2338
|
+
/**
|
|
2339
|
+
*
|
|
2340
|
+
* @type {string}
|
|
2341
|
+
* @memberof CreditEventWithAgent
|
|
2342
|
+
*/
|
|
862
2343
|
'base_discount_amount'?: string | null;
|
|
2344
|
+
/**
|
|
2345
|
+
*
|
|
2346
|
+
* @type {string}
|
|
2347
|
+
* @memberof CreditEventWithAgent
|
|
2348
|
+
*/
|
|
863
2349
|
'base_original_amount'?: string | null;
|
|
2350
|
+
/**
|
|
2351
|
+
*
|
|
2352
|
+
* @type {string}
|
|
2353
|
+
* @memberof CreditEventWithAgent
|
|
2354
|
+
*/
|
|
864
2355
|
'base_llm_amount'?: string | null;
|
|
2356
|
+
/**
|
|
2357
|
+
*
|
|
2358
|
+
* @type {string}
|
|
2359
|
+
* @memberof CreditEventWithAgent
|
|
2360
|
+
*/
|
|
865
2361
|
'base_skill_amount'?: string | null;
|
|
2362
|
+
/**
|
|
2363
|
+
*
|
|
2364
|
+
* @type {string}
|
|
2365
|
+
* @memberof CreditEventWithAgent
|
|
2366
|
+
*/
|
|
866
2367
|
'base_free_amount'?: string | null;
|
|
2368
|
+
/**
|
|
2369
|
+
*
|
|
2370
|
+
* @type {string}
|
|
2371
|
+
* @memberof CreditEventWithAgent
|
|
2372
|
+
*/
|
|
867
2373
|
'base_reward_amount'?: string | null;
|
|
2374
|
+
/**
|
|
2375
|
+
*
|
|
2376
|
+
* @type {string}
|
|
2377
|
+
* @memberof CreditEventWithAgent
|
|
2378
|
+
*/
|
|
868
2379
|
'base_permanent_amount'?: string | null;
|
|
2380
|
+
/**
|
|
2381
|
+
*
|
|
2382
|
+
* @type {string}
|
|
2383
|
+
* @memberof CreditEventWithAgent
|
|
2384
|
+
*/
|
|
869
2385
|
'fee_platform_amount'?: string | null;
|
|
2386
|
+
/**
|
|
2387
|
+
*
|
|
2388
|
+
* @type {string}
|
|
2389
|
+
* @memberof CreditEventWithAgent
|
|
2390
|
+
*/
|
|
870
2391
|
'fee_platform_free_amount'?: string | null;
|
|
2392
|
+
/**
|
|
2393
|
+
*
|
|
2394
|
+
* @type {string}
|
|
2395
|
+
* @memberof CreditEventWithAgent
|
|
2396
|
+
*/
|
|
871
2397
|
'fee_platform_reward_amount'?: string | null;
|
|
2398
|
+
/**
|
|
2399
|
+
*
|
|
2400
|
+
* @type {string}
|
|
2401
|
+
* @memberof CreditEventWithAgent
|
|
2402
|
+
*/
|
|
872
2403
|
'fee_platform_permanent_amount'?: string | null;
|
|
2404
|
+
/**
|
|
2405
|
+
*
|
|
2406
|
+
* @type {string}
|
|
2407
|
+
* @memberof CreditEventWithAgent
|
|
2408
|
+
*/
|
|
873
2409
|
'fee_dev_account'?: string | null;
|
|
2410
|
+
/**
|
|
2411
|
+
*
|
|
2412
|
+
* @type {string}
|
|
2413
|
+
* @memberof CreditEventWithAgent
|
|
2414
|
+
*/
|
|
874
2415
|
'fee_dev_amount'?: string | null;
|
|
2416
|
+
/**
|
|
2417
|
+
*
|
|
2418
|
+
* @type {string}
|
|
2419
|
+
* @memberof CreditEventWithAgent
|
|
2420
|
+
*/
|
|
875
2421
|
'fee_dev_free_amount'?: string | null;
|
|
2422
|
+
/**
|
|
2423
|
+
*
|
|
2424
|
+
* @type {string}
|
|
2425
|
+
* @memberof CreditEventWithAgent
|
|
2426
|
+
*/
|
|
876
2427
|
'fee_dev_reward_amount'?: string | null;
|
|
2428
|
+
/**
|
|
2429
|
+
*
|
|
2430
|
+
* @type {string}
|
|
2431
|
+
* @memberof CreditEventWithAgent
|
|
2432
|
+
*/
|
|
877
2433
|
'fee_dev_permanent_amount'?: string | null;
|
|
2434
|
+
/**
|
|
2435
|
+
*
|
|
2436
|
+
* @type {string}
|
|
2437
|
+
* @memberof CreditEventWithAgent
|
|
2438
|
+
*/
|
|
878
2439
|
'fee_agent_account'?: string | null;
|
|
2440
|
+
/**
|
|
2441
|
+
*
|
|
2442
|
+
* @type {string}
|
|
2443
|
+
* @memberof CreditEventWithAgent
|
|
2444
|
+
*/
|
|
879
2445
|
'fee_agent_amount'?: string | null;
|
|
2446
|
+
/**
|
|
2447
|
+
*
|
|
2448
|
+
* @type {string}
|
|
2449
|
+
* @memberof CreditEventWithAgent
|
|
2450
|
+
*/
|
|
880
2451
|
'fee_agent_free_amount'?: string | null;
|
|
2452
|
+
/**
|
|
2453
|
+
*
|
|
2454
|
+
* @type {string}
|
|
2455
|
+
* @memberof CreditEventWithAgent
|
|
2456
|
+
*/
|
|
881
2457
|
'fee_agent_reward_amount'?: string | null;
|
|
2458
|
+
/**
|
|
2459
|
+
*
|
|
2460
|
+
* @type {string}
|
|
2461
|
+
* @memberof CreditEventWithAgent
|
|
2462
|
+
*/
|
|
882
2463
|
'fee_agent_permanent_amount'?: string | null;
|
|
2464
|
+
/**
|
|
2465
|
+
*
|
|
2466
|
+
* @type {string}
|
|
2467
|
+
* @memberof CreditEventWithAgent
|
|
2468
|
+
*/
|
|
883
2469
|
'free_amount'?: string | null;
|
|
2470
|
+
/**
|
|
2471
|
+
*
|
|
2472
|
+
* @type {string}
|
|
2473
|
+
* @memberof CreditEventWithAgent
|
|
2474
|
+
*/
|
|
884
2475
|
'reward_amount'?: string | null;
|
|
2476
|
+
/**
|
|
2477
|
+
*
|
|
2478
|
+
* @type {string}
|
|
2479
|
+
* @memberof CreditEventWithAgent
|
|
2480
|
+
*/
|
|
885
2481
|
'permanent_amount'?: string | null;
|
|
2482
|
+
/**
|
|
2483
|
+
*
|
|
2484
|
+
* @type {string}
|
|
2485
|
+
* @memberof CreditEventWithAgent
|
|
2486
|
+
*/
|
|
886
2487
|
'note'?: string | null;
|
|
887
2488
|
/**
|
|
888
2489
|
* Timestamp when this event was created
|
|
2490
|
+
* @type {string}
|
|
2491
|
+
* @memberof CreditEventWithAgent
|
|
889
2492
|
*/
|
|
890
2493
|
'created_at': string;
|
|
2494
|
+
/**
|
|
2495
|
+
*
|
|
2496
|
+
* @type {string}
|
|
2497
|
+
* @memberof CreditEventWithAgent
|
|
2498
|
+
*/
|
|
891
2499
|
'agent_name'?: string | null;
|
|
892
2500
|
}
|
|
893
2501
|
/**
|
|
894
2502
|
* 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.
|
|
2503
|
+
* @export
|
|
2504
|
+
* @interface CreditEventsResponse
|
|
895
2505
|
*/
|
|
896
2506
|
export interface CreditEventsResponse {
|
|
897
2507
|
/**
|
|
898
2508
|
* List of credit events with agent names
|
|
2509
|
+
* @type {Array<CreditEventWithAgent>}
|
|
2510
|
+
* @memberof CreditEventsResponse
|
|
899
2511
|
*/
|
|
900
2512
|
'data': Array<CreditEventWithAgent>;
|
|
901
2513
|
/**
|
|
902
2514
|
* Indicates if there are more items
|
|
2515
|
+
* @type {boolean}
|
|
2516
|
+
* @memberof CreditEventsResponse
|
|
903
2517
|
*/
|
|
904
2518
|
'has_more': boolean;
|
|
2519
|
+
/**
|
|
2520
|
+
*
|
|
2521
|
+
* @type {string}
|
|
2522
|
+
* @memberof CreditEventsResponse
|
|
2523
|
+
*/
|
|
905
2524
|
'next_cursor'?: string | null;
|
|
906
2525
|
}
|
|
907
2526
|
/**
|
|
908
2527
|
* Credit transaction response model with associated event data. Extends CreditTransaction to include the related CreditEvent if available.
|
|
2528
|
+
* @export
|
|
2529
|
+
* @interface CreditTransactionResp
|
|
909
2530
|
*/
|
|
910
2531
|
export interface CreditTransactionResp {
|
|
911
2532
|
/**
|
|
912
2533
|
* Unique identifier for the credit transaction
|
|
2534
|
+
* @type {string}
|
|
2535
|
+
* @memberof CreditTransactionResp
|
|
913
2536
|
*/
|
|
914
2537
|
'id'?: string;
|
|
915
2538
|
/**
|
|
916
2539
|
* ID of the account this transaction belongs to
|
|
2540
|
+
* @type {string}
|
|
2541
|
+
* @memberof CreditTransactionResp
|
|
917
2542
|
*/
|
|
918
2543
|
'account_id': string;
|
|
919
2544
|
/**
|
|
920
2545
|
* ID of the event that triggered this transaction
|
|
2546
|
+
* @type {string}
|
|
2547
|
+
* @memberof CreditTransactionResp
|
|
921
2548
|
*/
|
|
922
2549
|
'event_id': string;
|
|
923
2550
|
/**
|
|
924
2551
|
* Type of the transaction
|
|
2552
|
+
* @type {TransactionType}
|
|
2553
|
+
* @memberof CreditTransactionResp
|
|
925
2554
|
*/
|
|
926
2555
|
'tx_type': TransactionType;
|
|
927
2556
|
/**
|
|
928
2557
|
* Whether this is a credit or debit transaction
|
|
2558
|
+
* @type {CreditDebit}
|
|
2559
|
+
* @memberof CreditTransactionResp
|
|
929
2560
|
*/
|
|
930
2561
|
'credit_debit': CreditDebit;
|
|
931
2562
|
/**
|
|
932
2563
|
* Amount of credits changed
|
|
2564
|
+
* @type {string}
|
|
2565
|
+
* @memberof CreditTransactionResp
|
|
933
2566
|
*/
|
|
934
2567
|
'change_amount'?: string;
|
|
935
2568
|
/**
|
|
936
2569
|
* Amount of free credits changed
|
|
2570
|
+
* @type {string}
|
|
2571
|
+
* @memberof CreditTransactionResp
|
|
937
2572
|
*/
|
|
938
2573
|
'free_amount'?: string;
|
|
939
2574
|
/**
|
|
940
2575
|
* Amount of reward credits changed
|
|
2576
|
+
* @type {string}
|
|
2577
|
+
* @memberof CreditTransactionResp
|
|
941
2578
|
*/
|
|
942
2579
|
'reward_amount'?: string;
|
|
943
2580
|
/**
|
|
944
2581
|
* Amount of permanent credits changed
|
|
2582
|
+
* @type {string}
|
|
2583
|
+
* @memberof CreditTransactionResp
|
|
945
2584
|
*/
|
|
946
2585
|
'permanent_amount'?: string;
|
|
947
2586
|
/**
|
|
948
2587
|
* Type of credits involved
|
|
2588
|
+
* @type {CreditType}
|
|
2589
|
+
* @memberof CreditTransactionResp
|
|
949
2590
|
*/
|
|
950
2591
|
'credit_type': CreditType;
|
|
951
2592
|
/**
|
|
952
2593
|
* Timestamp when this transaction was created
|
|
2594
|
+
* @type {string}
|
|
2595
|
+
* @memberof CreditTransactionResp
|
|
953
2596
|
*/
|
|
954
2597
|
'created_at': string;
|
|
2598
|
+
/**
|
|
2599
|
+
*
|
|
2600
|
+
* @type {CreditEvent}
|
|
2601
|
+
* @memberof CreditTransactionResp
|
|
2602
|
+
*/
|
|
955
2603
|
'event'?: CreditEvent | null;
|
|
956
2604
|
}
|
|
957
2605
|
/**
|
|
958
2606
|
* Paginated response model for credit transactions. Contains a list of credit transactions (with event data), a flag for more items, and a pagination cursor.
|
|
2607
|
+
* @export
|
|
2608
|
+
* @interface CreditTransactionsResponse
|
|
959
2609
|
*/
|
|
960
2610
|
export interface CreditTransactionsResponse {
|
|
961
2611
|
/**
|
|
962
2612
|
* List of credit transactions
|
|
2613
|
+
* @type {Array<CreditTransactionResp>}
|
|
2614
|
+
* @memberof CreditTransactionsResponse
|
|
963
2615
|
*/
|
|
964
2616
|
'data': Array<CreditTransactionResp>;
|
|
965
2617
|
/**
|
|
966
2618
|
* Indicates if there are more items
|
|
2619
|
+
* @type {boolean}
|
|
2620
|
+
* @memberof CreditTransactionsResponse
|
|
967
2621
|
*/
|
|
968
2622
|
'has_more': boolean;
|
|
2623
|
+
/**
|
|
2624
|
+
*
|
|
2625
|
+
* @type {string}
|
|
2626
|
+
* @memberof CreditTransactionsResponse
|
|
2627
|
+
*/
|
|
969
2628
|
'next_cursor'?: string | null;
|
|
970
2629
|
}
|
|
971
2630
|
/**
|
|
972
2631
|
* Credit type is used in db column names, do not change it.
|
|
2632
|
+
* @export
|
|
2633
|
+
* @enum {string}
|
|
973
2634
|
*/
|
|
974
2635
|
export declare const CreditType: {
|
|
975
2636
|
readonly FreeCredits: "free_credits";
|
|
@@ -979,6 +2640,8 @@ export declare const CreditType: {
|
|
|
979
2640
|
export type CreditType = typeof CreditType[keyof typeof CreditType];
|
|
980
2641
|
/**
|
|
981
2642
|
* Direction of credit flow.
|
|
2643
|
+
* @export
|
|
2644
|
+
* @enum {string}
|
|
982
2645
|
*/
|
|
983
2646
|
export declare const Direction: {
|
|
984
2647
|
readonly Income: "income";
|
|
@@ -987,6 +2650,8 @@ export declare const Direction: {
|
|
|
987
2650
|
export type Direction = typeof Direction[keyof typeof Direction];
|
|
988
2651
|
/**
|
|
989
2652
|
* Type of credit event.
|
|
2653
|
+
* @export
|
|
2654
|
+
* @enum {string}
|
|
990
2655
|
*/
|
|
991
2656
|
export declare const EventType: {
|
|
992
2657
|
readonly Memory: "memory";
|
|
@@ -1005,78 +2670,248 @@ export declare const EventType: {
|
|
|
1005
2670
|
export type EventType = typeof EventType[keyof typeof EventType];
|
|
1006
2671
|
/**
|
|
1007
2672
|
* Fee percentage of the agent
|
|
2673
|
+
* @export
|
|
2674
|
+
* @interface FeePercentage
|
|
1008
2675
|
*/
|
|
1009
2676
|
export interface FeePercentage {
|
|
1010
2677
|
}
|
|
1011
2678
|
/**
|
|
1012
2679
|
* Response model for single generation detail.
|
|
2680
|
+
* @export
|
|
2681
|
+
* @interface GenerationDetailResponse
|
|
1013
2682
|
*/
|
|
1014
2683
|
export interface GenerationDetailResponse {
|
|
1015
2684
|
/**
|
|
1016
2685
|
* Project ID
|
|
2686
|
+
* @type {string}
|
|
2687
|
+
* @memberof GenerationDetailResponse
|
|
1017
2688
|
*/
|
|
1018
2689
|
'project_id': string;
|
|
2690
|
+
/**
|
|
2691
|
+
*
|
|
2692
|
+
* @type {string}
|
|
2693
|
+
* @memberof GenerationDetailResponse
|
|
2694
|
+
*/
|
|
1019
2695
|
'user_id'?: string | null;
|
|
2696
|
+
/**
|
|
2697
|
+
*
|
|
2698
|
+
* @type {string}
|
|
2699
|
+
* @memberof GenerationDetailResponse
|
|
2700
|
+
*/
|
|
1020
2701
|
'created_at'?: string | null;
|
|
2702
|
+
/**
|
|
2703
|
+
*
|
|
2704
|
+
* @type {string}
|
|
2705
|
+
* @memberof GenerationDetailResponse
|
|
2706
|
+
*/
|
|
1021
2707
|
'last_activity'?: string | null;
|
|
1022
2708
|
/**
|
|
1023
2709
|
* Number of messages in conversation
|
|
2710
|
+
* @type {number}
|
|
2711
|
+
* @memberof GenerationDetailResponse
|
|
1024
2712
|
*/
|
|
1025
2713
|
'message_count': number;
|
|
2714
|
+
/**
|
|
2715
|
+
*
|
|
2716
|
+
* @type {object}
|
|
2717
|
+
* @memberof GenerationDetailResponse
|
|
2718
|
+
*/
|
|
1026
2719
|
'last_message'?: object | null;
|
|
2720
|
+
/**
|
|
2721
|
+
*
|
|
2722
|
+
* @type {object}
|
|
2723
|
+
* @memberof GenerationDetailResponse
|
|
2724
|
+
*/
|
|
1027
2725
|
'first_message'?: object | null;
|
|
1028
2726
|
/**
|
|
1029
2727
|
* Full conversation history
|
|
2728
|
+
* @type {Array<object>}
|
|
2729
|
+
* @memberof GenerationDetailResponse
|
|
1030
2730
|
*/
|
|
1031
2731
|
'conversation_history': Array<object>;
|
|
1032
2732
|
}
|
|
1033
2733
|
/**
|
|
1034
2734
|
* Response model for generations list.
|
|
2735
|
+
* @export
|
|
2736
|
+
* @interface GenerationsListResponse
|
|
1035
2737
|
*/
|
|
1036
2738
|
export interface GenerationsListResponse {
|
|
1037
2739
|
/**
|
|
1038
2740
|
* List of recent projects with their conversation history
|
|
2741
|
+
* @type {Array<object>}
|
|
2742
|
+
* @memberof GenerationsListResponse
|
|
1039
2743
|
*/
|
|
1040
2744
|
'projects': Array<object>;
|
|
1041
2745
|
}
|
|
2746
|
+
/**
|
|
2747
|
+
*
|
|
2748
|
+
* @export
|
|
2749
|
+
* @interface HTTPValidationError
|
|
2750
|
+
*/
|
|
1042
2751
|
export interface HTTPValidationError {
|
|
2752
|
+
/**
|
|
2753
|
+
*
|
|
2754
|
+
* @type {Array<ValidationError>}
|
|
2755
|
+
* @memberof HTTPValidationError
|
|
2756
|
+
*/
|
|
1043
2757
|
'detail'?: Array<ValidationError>;
|
|
1044
2758
|
}
|
|
1045
2759
|
/**
|
|
1046
2760
|
* LLM model information with provider display name.
|
|
2761
|
+
* @export
|
|
2762
|
+
* @interface LLMModelInfoWithProviderName
|
|
1047
2763
|
*/
|
|
1048
2764
|
export interface LLMModelInfoWithProviderName {
|
|
2765
|
+
/**
|
|
2766
|
+
*
|
|
2767
|
+
* @type {string}
|
|
2768
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2769
|
+
*/
|
|
1049
2770
|
'id': string;
|
|
2771
|
+
/**
|
|
2772
|
+
*
|
|
2773
|
+
* @type {string}
|
|
2774
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2775
|
+
*/
|
|
1050
2776
|
'name': string;
|
|
2777
|
+
/**
|
|
2778
|
+
*
|
|
2779
|
+
* @type {LLMProvider}
|
|
2780
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2781
|
+
*/
|
|
1051
2782
|
'provider': LLMProvider;
|
|
2783
|
+
/**
|
|
2784
|
+
*
|
|
2785
|
+
* @type {boolean}
|
|
2786
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2787
|
+
*/
|
|
1052
2788
|
'enabled'?: boolean;
|
|
2789
|
+
/**
|
|
2790
|
+
*
|
|
2791
|
+
* @type {string}
|
|
2792
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2793
|
+
*/
|
|
1053
2794
|
'input_price': string;
|
|
2795
|
+
/**
|
|
2796
|
+
*
|
|
2797
|
+
* @type {string}
|
|
2798
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2799
|
+
*/
|
|
1054
2800
|
'output_price': string;
|
|
2801
|
+
/**
|
|
2802
|
+
*
|
|
2803
|
+
* @type {number}
|
|
2804
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2805
|
+
*/
|
|
1055
2806
|
'price_level'?: number | null;
|
|
2807
|
+
/**
|
|
2808
|
+
*
|
|
2809
|
+
* @type {number}
|
|
2810
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2811
|
+
*/
|
|
1056
2812
|
'context_length': number;
|
|
2813
|
+
/**
|
|
2814
|
+
*
|
|
2815
|
+
* @type {number}
|
|
2816
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2817
|
+
*/
|
|
1057
2818
|
'output_length': number;
|
|
2819
|
+
/**
|
|
2820
|
+
*
|
|
2821
|
+
* @type {number}
|
|
2822
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2823
|
+
*/
|
|
1058
2824
|
'intelligence': number;
|
|
2825
|
+
/**
|
|
2826
|
+
*
|
|
2827
|
+
* @type {number}
|
|
2828
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2829
|
+
*/
|
|
1059
2830
|
'speed': number;
|
|
2831
|
+
/**
|
|
2832
|
+
*
|
|
2833
|
+
* @type {boolean}
|
|
2834
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2835
|
+
*/
|
|
1060
2836
|
'supports_image_input'?: boolean;
|
|
2837
|
+
/**
|
|
2838
|
+
*
|
|
2839
|
+
* @type {boolean}
|
|
2840
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2841
|
+
*/
|
|
1061
2842
|
'supports_skill_calls'?: boolean;
|
|
2843
|
+
/**
|
|
2844
|
+
*
|
|
2845
|
+
* @type {boolean}
|
|
2846
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2847
|
+
*/
|
|
1062
2848
|
'supports_structured_output'?: boolean;
|
|
2849
|
+
/**
|
|
2850
|
+
*
|
|
2851
|
+
* @type {boolean}
|
|
2852
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2853
|
+
*/
|
|
1063
2854
|
'has_reasoning'?: boolean;
|
|
2855
|
+
/**
|
|
2856
|
+
*
|
|
2857
|
+
* @type {boolean}
|
|
2858
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2859
|
+
*/
|
|
1064
2860
|
'supports_search'?: boolean;
|
|
2861
|
+
/**
|
|
2862
|
+
*
|
|
2863
|
+
* @type {boolean}
|
|
2864
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2865
|
+
*/
|
|
1065
2866
|
'supports_temperature'?: boolean;
|
|
2867
|
+
/**
|
|
2868
|
+
*
|
|
2869
|
+
* @type {boolean}
|
|
2870
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2871
|
+
*/
|
|
1066
2872
|
'supports_frequency_penalty'?: boolean;
|
|
2873
|
+
/**
|
|
2874
|
+
*
|
|
2875
|
+
* @type {boolean}
|
|
2876
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2877
|
+
*/
|
|
1067
2878
|
'supports_presence_penalty'?: boolean;
|
|
2879
|
+
/**
|
|
2880
|
+
*
|
|
2881
|
+
* @type {string}
|
|
2882
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2883
|
+
*/
|
|
1068
2884
|
'api_base'?: string | null;
|
|
2885
|
+
/**
|
|
2886
|
+
*
|
|
2887
|
+
* @type {number}
|
|
2888
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2889
|
+
*/
|
|
1069
2890
|
'timeout'?: number;
|
|
1070
2891
|
/**
|
|
1071
2892
|
* Timestamp when this data was created
|
|
2893
|
+
* @type {string}
|
|
2894
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1072
2895
|
*/
|
|
1073
2896
|
'created_at'?: string;
|
|
1074
2897
|
/**
|
|
1075
2898
|
* Timestamp when this data was updated
|
|
2899
|
+
* @type {string}
|
|
2900
|
+
* @memberof LLMModelInfoWithProviderName
|
|
1076
2901
|
*/
|
|
1077
2902
|
'updated_at'?: string;
|
|
2903
|
+
/**
|
|
2904
|
+
*
|
|
2905
|
+
* @type {string}
|
|
2906
|
+
* @memberof LLMModelInfoWithProviderName
|
|
2907
|
+
*/
|
|
1078
2908
|
'provider_name': string;
|
|
1079
2909
|
}
|
|
2910
|
+
/**
|
|
2911
|
+
*
|
|
2912
|
+
* @export
|
|
2913
|
+
* @enum {string}
|
|
2914
|
+
*/
|
|
1080
2915
|
export declare const LLMProvider: {
|
|
1081
2916
|
readonly Openai: "openai";
|
|
1082
2917
|
readonly Deepseek: "deepseek";
|
|
@@ -1088,6 +2923,8 @@ export declare const LLMProvider: {
|
|
|
1088
2923
|
export type LLMProvider = typeof LLMProvider[keyof typeof LLMProvider];
|
|
1089
2924
|
/**
|
|
1090
2925
|
* Type of credit account owner.
|
|
2926
|
+
* @export
|
|
2927
|
+
* @enum {string}
|
|
1091
2928
|
*/
|
|
1092
2929
|
export declare const OwnerType: {
|
|
1093
2930
|
readonly User: "user";
|
|
@@ -1097,44 +2934,87 @@ export declare const OwnerType: {
|
|
|
1097
2934
|
export type OwnerType = typeof OwnerType[keyof typeof OwnerType];
|
|
1098
2935
|
/**
|
|
1099
2936
|
* Pydantic model for Skill.
|
|
2937
|
+
* @export
|
|
2938
|
+
* @interface Skill
|
|
1100
2939
|
*/
|
|
1101
2940
|
export interface Skill {
|
|
1102
2941
|
/**
|
|
1103
2942
|
* Name of the skill
|
|
2943
|
+
* @type {string}
|
|
2944
|
+
* @memberof Skill
|
|
1104
2945
|
*/
|
|
1105
2946
|
'name': string;
|
|
1106
2947
|
/**
|
|
1107
2948
|
* Is this skill enabled?
|
|
2949
|
+
* @type {boolean}
|
|
2950
|
+
* @memberof Skill
|
|
1108
2951
|
*/
|
|
1109
2952
|
'enabled': boolean;
|
|
1110
2953
|
/**
|
|
1111
2954
|
* Category of the skill
|
|
2955
|
+
* @type {string}
|
|
2956
|
+
* @memberof Skill
|
|
1112
2957
|
*/
|
|
1113
2958
|
'category': string;
|
|
2959
|
+
/**
|
|
2960
|
+
*
|
|
2961
|
+
* @type {string}
|
|
2962
|
+
* @memberof Skill
|
|
2963
|
+
*/
|
|
1114
2964
|
'config_name': string | null;
|
|
2965
|
+
/**
|
|
2966
|
+
*
|
|
2967
|
+
* @type {number}
|
|
2968
|
+
* @memberof Skill
|
|
2969
|
+
*/
|
|
1115
2970
|
'price_level': number | null;
|
|
1116
2971
|
/**
|
|
1117
2972
|
* Price for this skill
|
|
2973
|
+
* @type {string}
|
|
2974
|
+
* @memberof Skill
|
|
1118
2975
|
*/
|
|
1119
2976
|
'price'?: string;
|
|
1120
2977
|
/**
|
|
1121
2978
|
* Price for this skill with self key
|
|
2979
|
+
* @type {string}
|
|
2980
|
+
* @memberof Skill
|
|
1122
2981
|
*/
|
|
1123
2982
|
'price_self_key'?: string;
|
|
2983
|
+
/**
|
|
2984
|
+
*
|
|
2985
|
+
* @type {number}
|
|
2986
|
+
* @memberof Skill
|
|
2987
|
+
*/
|
|
1124
2988
|
'rate_limit_count': number | null;
|
|
2989
|
+
/**
|
|
2990
|
+
*
|
|
2991
|
+
* @type {number}
|
|
2992
|
+
* @memberof Skill
|
|
2993
|
+
*/
|
|
1125
2994
|
'rate_limit_minutes': number | null;
|
|
2995
|
+
/**
|
|
2996
|
+
*
|
|
2997
|
+
* @type {string}
|
|
2998
|
+
* @memberof Skill
|
|
2999
|
+
*/
|
|
1126
3000
|
'author': string | null;
|
|
1127
3001
|
/**
|
|
1128
3002
|
* Timestamp when this record was created
|
|
3003
|
+
* @type {string}
|
|
3004
|
+
* @memberof Skill
|
|
1129
3005
|
*/
|
|
1130
3006
|
'created_at': string;
|
|
1131
3007
|
/**
|
|
1132
3008
|
* Timestamp when this record was last updated
|
|
3009
|
+
* @type {string}
|
|
3010
|
+
* @memberof Skill
|
|
1133
3011
|
*/
|
|
1134
3012
|
'updated_at': string;
|
|
1135
3013
|
}
|
|
1136
3014
|
/**
|
|
1137
3015
|
* Type of system message.
|
|
3016
|
+
* @export
|
|
3017
|
+
* @enum {string}
|
|
1138
3018
|
*/
|
|
1139
3019
|
export declare const SystemMessageType: {
|
|
1140
3020
|
readonly ServiceFeeError: "service_fee_error";
|
|
@@ -1147,6 +3027,8 @@ export declare const SystemMessageType: {
|
|
|
1147
3027
|
export type SystemMessageType = typeof SystemMessageType[keyof typeof SystemMessageType];
|
|
1148
3028
|
/**
|
|
1149
3029
|
* Type of credit transaction.
|
|
3030
|
+
* @export
|
|
3031
|
+
* @enum {string}
|
|
1150
3032
|
*/
|
|
1151
3033
|
export declare const TransactionType: {
|
|
1152
3034
|
readonly Pay: "pay";
|
|
@@ -1167,12 +3049,29 @@ export declare const TransactionType: {
|
|
|
1167
3049
|
readonly RechargeBonus: "recharge_bonus";
|
|
1168
3050
|
};
|
|
1169
3051
|
export type TransactionType = typeof TransactionType[keyof typeof TransactionType];
|
|
3052
|
+
/**
|
|
3053
|
+
*
|
|
3054
|
+
* @export
|
|
3055
|
+
* @interface TwitterAuthResponse
|
|
3056
|
+
*/
|
|
1170
3057
|
export interface TwitterAuthResponse {
|
|
3058
|
+
/**
|
|
3059
|
+
*
|
|
3060
|
+
* @type {string}
|
|
3061
|
+
* @memberof TwitterAuthResponse
|
|
3062
|
+
*/
|
|
1171
3063
|
'agent_id': string;
|
|
3064
|
+
/**
|
|
3065
|
+
*
|
|
3066
|
+
* @type {string}
|
|
3067
|
+
* @memberof TwitterAuthResponse
|
|
3068
|
+
*/
|
|
1172
3069
|
'url': string;
|
|
1173
3070
|
}
|
|
1174
3071
|
/**
|
|
1175
3072
|
* Type of upstream transaction.
|
|
3073
|
+
* @export
|
|
3074
|
+
* @enum {string}
|
|
1176
3075
|
*/
|
|
1177
3076
|
export declare const UpstreamType: {
|
|
1178
3077
|
readonly Api: "api";
|
|
@@ -1181,15 +3080,41 @@ export declare const UpstreamType: {
|
|
|
1181
3080
|
readonly Initializer: "initializer";
|
|
1182
3081
|
};
|
|
1183
3082
|
export type UpstreamType = typeof UpstreamType[keyof typeof UpstreamType];
|
|
3083
|
+
/**
|
|
3084
|
+
*
|
|
3085
|
+
* @export
|
|
3086
|
+
* @interface ValidationError
|
|
3087
|
+
*/
|
|
1184
3088
|
export interface ValidationError {
|
|
3089
|
+
/**
|
|
3090
|
+
*
|
|
3091
|
+
* @type {Array<ValidationErrorLocInner>}
|
|
3092
|
+
* @memberof ValidationError
|
|
3093
|
+
*/
|
|
1185
3094
|
'loc': Array<ValidationErrorLocInner>;
|
|
3095
|
+
/**
|
|
3096
|
+
*
|
|
3097
|
+
* @type {string}
|
|
3098
|
+
* @memberof ValidationError
|
|
3099
|
+
*/
|
|
1186
3100
|
'msg': string;
|
|
3101
|
+
/**
|
|
3102
|
+
*
|
|
3103
|
+
* @type {string}
|
|
3104
|
+
* @memberof ValidationError
|
|
3105
|
+
*/
|
|
1187
3106
|
'type': string;
|
|
1188
3107
|
}
|
|
3108
|
+
/**
|
|
3109
|
+
*
|
|
3110
|
+
* @export
|
|
3111
|
+
* @interface ValidationErrorLocInner
|
|
3112
|
+
*/
|
|
1189
3113
|
export interface ValidationErrorLocInner {
|
|
1190
3114
|
}
|
|
1191
3115
|
/**
|
|
1192
3116
|
* AgentApi - axios parameter creator
|
|
3117
|
+
* @export
|
|
1193
3118
|
*/
|
|
1194
3119
|
export declare const AgentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1195
3120
|
/**
|
|
@@ -1315,6 +3240,7 @@ export declare const AgentApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
1315
3240
|
};
|
|
1316
3241
|
/**
|
|
1317
3242
|
* AgentApi - functional programming interface
|
|
3243
|
+
* @export
|
|
1318
3244
|
*/
|
|
1319
3245
|
export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
1320
3246
|
/**
|
|
@@ -1440,6 +3366,7 @@ export declare const AgentApiFp: (configuration?: Configuration) => {
|
|
|
1440
3366
|
};
|
|
1441
3367
|
/**
|
|
1442
3368
|
* AgentApi - factory interface
|
|
3369
|
+
* @export
|
|
1443
3370
|
*/
|
|
1444
3371
|
export declare const AgentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1445
3372
|
/**
|
|
@@ -1565,6 +3492,9 @@ export declare const AgentApiFactory: (configuration?: Configuration, basePath?:
|
|
|
1565
3492
|
};
|
|
1566
3493
|
/**
|
|
1567
3494
|
* AgentApi - object-oriented interface
|
|
3495
|
+
* @export
|
|
3496
|
+
* @class AgentApi
|
|
3497
|
+
* @extends {BaseAPI}
|
|
1568
3498
|
*/
|
|
1569
3499
|
export declare class AgentApi extends BaseAPI {
|
|
1570
3500
|
/**
|
|
@@ -1573,6 +3503,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1573
3503
|
* @param {AgentUpdate} [agentUpdate]
|
|
1574
3504
|
* @param {*} [options] Override http request option.
|
|
1575
3505
|
* @throws {RequiredError}
|
|
3506
|
+
* @memberof AgentApi
|
|
1576
3507
|
*/
|
|
1577
3508
|
createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentResponse, any>>;
|
|
1578
3509
|
/**
|
|
@@ -1581,6 +3512,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1581
3512
|
* @param {string} agentId ID of the agent to export
|
|
1582
3513
|
* @param {*} [options] Override http request option.
|
|
1583
3514
|
* @throws {RequiredError}
|
|
3515
|
+
* @memberof AgentApi
|
|
1584
3516
|
*/
|
|
1585
3517
|
exportAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
1586
3518
|
/**
|
|
@@ -1589,6 +3521,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1589
3521
|
* @param {string} agentId ID of the agent to retrieve
|
|
1590
3522
|
* @param {*} [options] Override http request option.
|
|
1591
3523
|
* @throws {RequiredError}
|
|
3524
|
+
* @memberof AgentApi
|
|
1592
3525
|
*/
|
|
1593
3526
|
getAgent(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
1594
3527
|
/**
|
|
@@ -1597,6 +3530,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1597
3530
|
* @param {string} agentId ID of the agent
|
|
1598
3531
|
* @param {*} [options] Override http request option.
|
|
1599
3532
|
* @throws {RequiredError}
|
|
3533
|
+
* @memberof AgentApi
|
|
1600
3534
|
*/
|
|
1601
3535
|
getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentApiKeyResponse, any>>;
|
|
1602
3536
|
/**
|
|
@@ -1605,6 +3539,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1605
3539
|
* @param {string} agentId ID of the agent
|
|
1606
3540
|
* @param {*} [options] Override http request option.
|
|
1607
3541
|
* @throws {RequiredError}
|
|
3542
|
+
* @memberof AgentApi
|
|
1608
3543
|
*/
|
|
1609
3544
|
getAgentAssets(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentAssetsResponse, any>>;
|
|
1610
3545
|
/**
|
|
@@ -1613,6 +3548,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1613
3548
|
* @param {string} aid ID of the agent
|
|
1614
3549
|
* @param {*} [options] Override http request option.
|
|
1615
3550
|
* @throws {RequiredError}
|
|
3551
|
+
* @memberof AgentApi
|
|
1616
3552
|
*/
|
|
1617
3553
|
getAgentStatistics(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentStatisticsResponse, any>>;
|
|
1618
3554
|
/**
|
|
@@ -1623,6 +3559,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1623
3559
|
* @param {number} [limit] Maximum number of agents to return
|
|
1624
3560
|
* @param {*} [options] Override http request option.
|
|
1625
3561
|
* @throws {RequiredError}
|
|
3562
|
+
* @memberof AgentApi
|
|
1626
3563
|
*/
|
|
1627
3564
|
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any>>;
|
|
1628
3565
|
/**
|
|
@@ -1633,6 +3570,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1633
3570
|
* @param {number} [limit] Maximum number of messages to return
|
|
1634
3571
|
* @param {*} [options] Override http request option.
|
|
1635
3572
|
* @throws {RequiredError}
|
|
3573
|
+
* @memberof AgentApi
|
|
1636
3574
|
*/
|
|
1637
3575
|
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any>>;
|
|
1638
3576
|
/**
|
|
@@ -1642,6 +3580,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1642
3580
|
* @param {File} file YAML file containing agent configuration
|
|
1643
3581
|
* @param {*} [options] Override http request option.
|
|
1644
3582
|
* @throws {RequiredError}
|
|
3583
|
+
* @memberof AgentApi
|
|
1645
3584
|
*/
|
|
1646
3585
|
importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
1647
3586
|
/**
|
|
@@ -1651,6 +3590,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1651
3590
|
* @param {AgentUpdate} [agentUpdate]
|
|
1652
3591
|
* @param {*} [options] Override http request option.
|
|
1653
3592
|
* @throws {RequiredError}
|
|
3593
|
+
* @memberof AgentApi
|
|
1654
3594
|
*/
|
|
1655
3595
|
overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
1656
3596
|
/**
|
|
@@ -1659,6 +3599,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1659
3599
|
* @param {string} agentId ID of the agent
|
|
1660
3600
|
* @param {*} [options] Override http request option.
|
|
1661
3601
|
* @throws {RequiredError}
|
|
3602
|
+
* @memberof AgentApi
|
|
1662
3603
|
*/
|
|
1663
3604
|
resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentApiKeyResponse, any>>;
|
|
1664
3605
|
/**
|
|
@@ -1668,6 +3609,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1668
3609
|
* @param {AgentUpdate} [agentUpdate]
|
|
1669
3610
|
* @param {*} [options] Override http request option.
|
|
1670
3611
|
* @throws {RequiredError}
|
|
3612
|
+
* @memberof AgentApi
|
|
1671
3613
|
*/
|
|
1672
3614
|
updateAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
1673
3615
|
/**
|
|
@@ -1676,6 +3618,7 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1676
3618
|
* @param {AgentUpdate} [agentUpdate]
|
|
1677
3619
|
* @param {*} [options] Override http request option.
|
|
1678
3620
|
* @throws {RequiredError}
|
|
3621
|
+
* @memberof AgentApi
|
|
1679
3622
|
*/
|
|
1680
3623
|
validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1681
3624
|
/**
|
|
@@ -1685,11 +3628,13 @@ export declare class AgentApi extends BaseAPI {
|
|
|
1685
3628
|
* @param {AgentUpdate} [agentUpdate]
|
|
1686
3629
|
* @param {*} [options] Override http request option.
|
|
1687
3630
|
* @throws {RequiredError}
|
|
3631
|
+
* @memberof AgentApi
|
|
1688
3632
|
*/
|
|
1689
3633
|
validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
1690
3634
|
}
|
|
1691
3635
|
/**
|
|
1692
3636
|
* ChatApi - axios parameter creator
|
|
3637
|
+
* @export
|
|
1693
3638
|
*/
|
|
1694
3639
|
export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1695
3640
|
/**
|
|
@@ -1787,6 +3732,7 @@ export declare const ChatApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
1787
3732
|
};
|
|
1788
3733
|
/**
|
|
1789
3734
|
* ChatApi - functional programming interface
|
|
3735
|
+
* @export
|
|
1790
3736
|
*/
|
|
1791
3737
|
export declare const ChatApiFp: (configuration?: Configuration) => {
|
|
1792
3738
|
/**
|
|
@@ -1884,6 +3830,7 @@ export declare const ChatApiFp: (configuration?: Configuration) => {
|
|
|
1884
3830
|
};
|
|
1885
3831
|
/**
|
|
1886
3832
|
* ChatApi - factory interface
|
|
3833
|
+
* @export
|
|
1887
3834
|
*/
|
|
1888
3835
|
export declare const ChatApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1889
3836
|
/**
|
|
@@ -1981,6 +3928,9 @@ export declare const ChatApiFactory: (configuration?: Configuration, basePath?:
|
|
|
1981
3928
|
};
|
|
1982
3929
|
/**
|
|
1983
3930
|
* ChatApi - object-oriented interface
|
|
3931
|
+
* @export
|
|
3932
|
+
* @class ChatApi
|
|
3933
|
+
* @extends {BaseAPI}
|
|
1984
3934
|
*/
|
|
1985
3935
|
export declare class ChatApi extends BaseAPI {
|
|
1986
3936
|
/**
|
|
@@ -1989,6 +3939,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
1989
3939
|
* @param {string} aid Agent ID
|
|
1990
3940
|
* @param {*} [options] Override http request option.
|
|
1991
3941
|
* @throws {RequiredError}
|
|
3942
|
+
* @memberof ChatApi
|
|
1992
3943
|
*/
|
|
1993
3944
|
createChatThread(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat, any>>;
|
|
1994
3945
|
/**
|
|
@@ -1998,6 +3949,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
1998
3949
|
* @param {string} chatId Chat ID
|
|
1999
3950
|
* @param {*} [options] Override http request option.
|
|
2000
3951
|
* @throws {RequiredError}
|
|
3952
|
+
* @memberof ChatApi
|
|
2001
3953
|
*/
|
|
2002
3954
|
deleteChatThread(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2003
3955
|
/**
|
|
@@ -2007,6 +3959,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2007
3959
|
* @param {string} chatId Chat ID
|
|
2008
3960
|
* @param {*} [options] Override http request option.
|
|
2009
3961
|
* @throws {RequiredError}
|
|
3962
|
+
* @memberof ChatApi
|
|
2010
3963
|
*/
|
|
2011
3964
|
getChatThreadById(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat, any>>;
|
|
2012
3965
|
/**
|
|
@@ -2015,6 +3968,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2015
3968
|
* @param {string} messageId Message ID
|
|
2016
3969
|
* @param {*} [options] Override http request option.
|
|
2017
3970
|
* @throws {RequiredError}
|
|
3971
|
+
* @memberof ChatApi
|
|
2018
3972
|
*/
|
|
2019
3973
|
getMessageById(messageId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage, any>>;
|
|
2020
3974
|
/**
|
|
@@ -2025,6 +3979,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2025
3979
|
* @param {number} [limit] Maximum number of messages to return
|
|
2026
3980
|
* @param {*} [options] Override http request option.
|
|
2027
3981
|
* @throws {RequiredError}
|
|
3982
|
+
* @memberof ChatApi
|
|
2028
3983
|
*/
|
|
2029
3984
|
getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any>>;
|
|
2030
3985
|
/**
|
|
@@ -2033,6 +3988,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2033
3988
|
* @param {string} aid Agent ID
|
|
2034
3989
|
* @param {*} [options] Override http request option.
|
|
2035
3990
|
* @throws {RequiredError}
|
|
3991
|
+
* @memberof ChatApi
|
|
2036
3992
|
*/
|
|
2037
3993
|
listChatsForAgent(aid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat[], any>>;
|
|
2038
3994
|
/**
|
|
@@ -2044,6 +4000,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2044
4000
|
* @param {number} [limit] Maximum number of messages to return
|
|
2045
4001
|
* @param {*} [options] Override http request option.
|
|
2046
4002
|
* @throws {RequiredError}
|
|
4003
|
+
* @memberof ChatApi
|
|
2047
4004
|
*/
|
|
2048
4005
|
listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessagesResponse, any>>;
|
|
2049
4006
|
/**
|
|
@@ -2053,6 +4010,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2053
4010
|
* @param {string} chatId Chat ID
|
|
2054
4011
|
* @param {*} [options] Override http request option.
|
|
2055
4012
|
* @throws {RequiredError}
|
|
4013
|
+
* @memberof ChatApi
|
|
2056
4014
|
*/
|
|
2057
4015
|
retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage[], any>>;
|
|
2058
4016
|
/**
|
|
@@ -2063,6 +4021,7 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2063
4021
|
* @param {ChatMessageRequest} chatMessageRequest
|
|
2064
4022
|
* @param {*} [options] Override http request option.
|
|
2065
4023
|
* @throws {RequiredError}
|
|
4024
|
+
* @memberof ChatApi
|
|
2066
4025
|
*/
|
|
2067
4026
|
sendMessageToChat(aid: string, chatId: string, chatMessageRequest: ChatMessageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage[], any>>;
|
|
2068
4027
|
/**
|
|
@@ -2073,11 +4032,13 @@ export declare class ChatApi extends BaseAPI {
|
|
|
2073
4032
|
* @param {ChatUpdateRequest} chatUpdateRequest
|
|
2074
4033
|
* @param {*} [options] Override http request option.
|
|
2075
4034
|
* @throws {RequiredError}
|
|
4035
|
+
* @memberof ChatApi
|
|
2076
4036
|
*/
|
|
2077
4037
|
updateChatThread(aid: string, chatId: string, chatUpdateRequest: ChatUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Chat, any>>;
|
|
2078
4038
|
}
|
|
2079
4039
|
/**
|
|
2080
4040
|
* CreditApi - axios parameter creator
|
|
4041
|
+
* @export
|
|
2081
4042
|
*/
|
|
2082
4043
|
export declare const CreditApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2083
4044
|
/**
|
|
@@ -2130,6 +4091,7 @@ export declare const CreditApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2130
4091
|
};
|
|
2131
4092
|
/**
|
|
2132
4093
|
* CreditApi - functional programming interface
|
|
4094
|
+
* @export
|
|
2133
4095
|
*/
|
|
2134
4096
|
export declare const CreditApiFp: (configuration?: Configuration) => {
|
|
2135
4097
|
/**
|
|
@@ -2182,6 +4144,7 @@ export declare const CreditApiFp: (configuration?: Configuration) => {
|
|
|
2182
4144
|
};
|
|
2183
4145
|
/**
|
|
2184
4146
|
* CreditApi - factory interface
|
|
4147
|
+
* @export
|
|
2185
4148
|
*/
|
|
2186
4149
|
export declare const CreditApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2187
4150
|
/**
|
|
@@ -2234,6 +4197,9 @@ export declare const CreditApiFactory: (configuration?: Configuration, basePath?
|
|
|
2234
4197
|
};
|
|
2235
4198
|
/**
|
|
2236
4199
|
* CreditApi - object-oriented interface
|
|
4200
|
+
* @export
|
|
4201
|
+
* @class CreditApi
|
|
4202
|
+
* @extends {BaseAPI}
|
|
2237
4203
|
*/
|
|
2238
4204
|
export declare class CreditApi extends BaseAPI {
|
|
2239
4205
|
/**
|
|
@@ -2242,6 +4208,7 @@ export declare class CreditApi extends BaseAPI {
|
|
|
2242
4208
|
* @param {string} eventId Credit event ID
|
|
2243
4209
|
* @param {*} [options] Override http request option.
|
|
2244
4210
|
* @throws {RequiredError}
|
|
4211
|
+
* @memberof CreditApi
|
|
2245
4212
|
*/
|
|
2246
4213
|
fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEvent, any>>;
|
|
2247
4214
|
/**
|
|
@@ -2249,6 +4216,7 @@ export declare class CreditApi extends BaseAPI {
|
|
|
2249
4216
|
* @summary Get User Account
|
|
2250
4217
|
* @param {*} [options] Override http request option.
|
|
2251
4218
|
* @throws {RequiredError}
|
|
4219
|
+
* @memberof CreditApi
|
|
2252
4220
|
*/
|
|
2253
4221
|
getUserAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditAccount, any>>;
|
|
2254
4222
|
/**
|
|
@@ -2259,6 +4227,7 @@ export declare class CreditApi extends BaseAPI {
|
|
|
2259
4227
|
* @param {number} [limit] Maximum number of events to return
|
|
2260
4228
|
* @param {*} [options] Override http request option.
|
|
2261
4229
|
* @throws {RequiredError}
|
|
4230
|
+
* @memberof CreditApi
|
|
2262
4231
|
*/
|
|
2263
4232
|
listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEventsResponse, any>>;
|
|
2264
4233
|
/**
|
|
@@ -2270,6 +4239,7 @@ export declare class CreditApi extends BaseAPI {
|
|
|
2270
4239
|
* @param {number} [limit] Maximum number of events to return
|
|
2271
4240
|
* @param {*} [options] Override http request option.
|
|
2272
4241
|
* @throws {RequiredError}
|
|
4242
|
+
* @memberof CreditApi
|
|
2273
4243
|
*/
|
|
2274
4244
|
listUserEvents(eventType?: Array<EventType> | null, direction?: Direction | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditEventsResponse, any>>;
|
|
2275
4245
|
/**
|
|
@@ -2281,11 +4251,13 @@ export declare class CreditApi extends BaseAPI {
|
|
|
2281
4251
|
* @param {number} [limit] Maximum number of transactions to return
|
|
2282
4252
|
* @param {*} [options] Override http request option.
|
|
2283
4253
|
* @throws {RequiredError}
|
|
4254
|
+
* @memberof CreditApi
|
|
2284
4255
|
*/
|
|
2285
4256
|
listUserTransactions(txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditTransactionsResponse, any>>;
|
|
2286
4257
|
}
|
|
2287
4258
|
/**
|
|
2288
4259
|
* GeneratorApi - axios parameter creator
|
|
4260
|
+
* @export
|
|
2289
4261
|
*/
|
|
2290
4262
|
export declare const GeneratorApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2291
4263
|
/**
|
|
@@ -2315,6 +4287,7 @@ export declare const GeneratorApiAxiosParamCreator: (configuration?: Configurati
|
|
|
2315
4287
|
};
|
|
2316
4288
|
/**
|
|
2317
4289
|
* GeneratorApi - functional programming interface
|
|
4290
|
+
* @export
|
|
2318
4291
|
*/
|
|
2319
4292
|
export declare const GeneratorApiFp: (configuration?: Configuration) => {
|
|
2320
4293
|
/**
|
|
@@ -2344,6 +4317,7 @@ export declare const GeneratorApiFp: (configuration?: Configuration) => {
|
|
|
2344
4317
|
};
|
|
2345
4318
|
/**
|
|
2346
4319
|
* GeneratorApi - factory interface
|
|
4320
|
+
* @export
|
|
2347
4321
|
*/
|
|
2348
4322
|
export declare const GeneratorApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2349
4323
|
/**
|
|
@@ -2373,6 +4347,9 @@ export declare const GeneratorApiFactory: (configuration?: Configuration, basePa
|
|
|
2373
4347
|
};
|
|
2374
4348
|
/**
|
|
2375
4349
|
* GeneratorApi - object-oriented interface
|
|
4350
|
+
* @export
|
|
4351
|
+
* @class GeneratorApi
|
|
4352
|
+
* @extends {BaseAPI}
|
|
2376
4353
|
*/
|
|
2377
4354
|
export declare class GeneratorApi extends BaseAPI {
|
|
2378
4355
|
/**
|
|
@@ -2381,6 +4358,7 @@ export declare class GeneratorApi extends BaseAPI {
|
|
|
2381
4358
|
* @param {AgentGenerateRequest} agentGenerateRequest
|
|
2382
4359
|
* @param {*} [options] Override http request option.
|
|
2383
4360
|
* @throws {RequiredError}
|
|
4361
|
+
* @memberof GeneratorApi
|
|
2384
4362
|
*/
|
|
2385
4363
|
generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentGenerateResponse, any>>;
|
|
2386
4364
|
/**
|
|
@@ -2389,6 +4367,7 @@ export declare class GeneratorApi extends BaseAPI {
|
|
|
2389
4367
|
* @param {string} projectId
|
|
2390
4368
|
* @param {*} [options] Override http request option.
|
|
2391
4369
|
* @throws {RequiredError}
|
|
4370
|
+
* @memberof GeneratorApi
|
|
2392
4371
|
*/
|
|
2393
4372
|
getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerationDetailResponse, any>>;
|
|
2394
4373
|
/**
|
|
@@ -2397,11 +4376,13 @@ export declare class GeneratorApi extends BaseAPI {
|
|
|
2397
4376
|
* @param {number} [limit]
|
|
2398
4377
|
* @param {*} [options] Override http request option.
|
|
2399
4378
|
* @throws {RequiredError}
|
|
4379
|
+
* @memberof GeneratorApi
|
|
2400
4380
|
*/
|
|
2401
4381
|
getGenerations(limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerationsListResponse, any>>;
|
|
2402
4382
|
}
|
|
2403
4383
|
/**
|
|
2404
4384
|
* HealthApi - axios parameter creator
|
|
4385
|
+
* @export
|
|
2405
4386
|
*/
|
|
2406
4387
|
export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2407
4388
|
/**
|
|
@@ -2414,6 +4395,7 @@ export declare const HealthApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2414
4395
|
};
|
|
2415
4396
|
/**
|
|
2416
4397
|
* HealthApi - functional programming interface
|
|
4398
|
+
* @export
|
|
2417
4399
|
*/
|
|
2418
4400
|
export declare const HealthApiFp: (configuration?: Configuration) => {
|
|
2419
4401
|
/**
|
|
@@ -2426,6 +4408,7 @@ export declare const HealthApiFp: (configuration?: Configuration) => {
|
|
|
2426
4408
|
};
|
|
2427
4409
|
/**
|
|
2428
4410
|
* HealthApi - factory interface
|
|
4411
|
+
* @export
|
|
2429
4412
|
*/
|
|
2430
4413
|
export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2431
4414
|
/**
|
|
@@ -2438,6 +4421,9 @@ export declare const HealthApiFactory: (configuration?: Configuration, basePath?
|
|
|
2438
4421
|
};
|
|
2439
4422
|
/**
|
|
2440
4423
|
* HealthApi - object-oriented interface
|
|
4424
|
+
* @export
|
|
4425
|
+
* @class HealthApi
|
|
4426
|
+
* @extends {BaseAPI}
|
|
2441
4427
|
*/
|
|
2442
4428
|
export declare class HealthApi extends BaseAPI {
|
|
2443
4429
|
/**
|
|
@@ -2445,11 +4431,13 @@ export declare class HealthApi extends BaseAPI {
|
|
|
2445
4431
|
* @summary Health check endpoint
|
|
2446
4432
|
* @param {*} [options] Override http request option.
|
|
2447
4433
|
* @throws {RequiredError}
|
|
4434
|
+
* @memberof HealthApi
|
|
2448
4435
|
*/
|
|
2449
4436
|
healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2450
4437
|
}
|
|
2451
4438
|
/**
|
|
2452
4439
|
* MetadataApi - axios parameter creator
|
|
4440
|
+
* @export
|
|
2453
4441
|
*/
|
|
2454
4442
|
export declare const MetadataApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2455
4443
|
/**
|
|
@@ -2494,6 +4482,7 @@ export declare const MetadataApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2494
4482
|
};
|
|
2495
4483
|
/**
|
|
2496
4484
|
* MetadataApi - functional programming interface
|
|
4485
|
+
* @export
|
|
2497
4486
|
*/
|
|
2498
4487
|
export declare const MetadataApiFp: (configuration?: Configuration) => {
|
|
2499
4488
|
/**
|
|
@@ -2538,6 +4527,7 @@ export declare const MetadataApiFp: (configuration?: Configuration) => {
|
|
|
2538
4527
|
};
|
|
2539
4528
|
/**
|
|
2540
4529
|
* MetadataApi - factory interface
|
|
4530
|
+
* @export
|
|
2541
4531
|
*/
|
|
2542
4532
|
export declare const MetadataApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2543
4533
|
/**
|
|
@@ -2582,6 +4572,9 @@ export declare const MetadataApiFactory: (configuration?: Configuration, basePat
|
|
|
2582
4572
|
};
|
|
2583
4573
|
/**
|
|
2584
4574
|
* MetadataApi - object-oriented interface
|
|
4575
|
+
* @export
|
|
4576
|
+
* @class MetadataApi
|
|
4577
|
+
* @extends {BaseAPI}
|
|
2585
4578
|
*/
|
|
2586
4579
|
export declare class MetadataApi extends BaseAPI {
|
|
2587
4580
|
/**
|
|
@@ -2589,6 +4582,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
2589
4582
|
* @summary Get agent schema
|
|
2590
4583
|
* @param {*} [options] Override http request option.
|
|
2591
4584
|
* @throws {RequiredError}
|
|
4585
|
+
* @memberof MetadataApi
|
|
2592
4586
|
*/
|
|
2593
4587
|
getAgentSchema(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2594
4588
|
/**
|
|
@@ -2596,6 +4590,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
2596
4590
|
* @summary Get all LLM models
|
|
2597
4591
|
* @param {*} [options] Override http request option.
|
|
2598
4592
|
* @throws {RequiredError}
|
|
4593
|
+
* @memberof MetadataApi
|
|
2599
4594
|
*/
|
|
2600
4595
|
getLlms(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LLMModelInfoWithProviderName[], any>>;
|
|
2601
4596
|
/**
|
|
@@ -2606,6 +4601,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
2606
4601
|
* @param {string} ext Icon file extension
|
|
2607
4602
|
* @param {*} [options] Override http request option.
|
|
2608
4603
|
* @throws {RequiredError}
|
|
4604
|
+
* @memberof MetadataApi
|
|
2609
4605
|
*/
|
|
2610
4606
|
getSkillIcon(skill: string, iconName: string, ext: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2611
4607
|
/**
|
|
@@ -2614,6 +4610,7 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
2614
4610
|
* @param {string} skill Skill name
|
|
2615
4611
|
* @param {*} [options] Override http request option.
|
|
2616
4612
|
* @throws {RequiredError}
|
|
4613
|
+
* @memberof MetadataApi
|
|
2617
4614
|
*/
|
|
2618
4615
|
getSkillSchema(skill: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2619
4616
|
/**
|
|
@@ -2621,11 +4618,13 @@ export declare class MetadataApi extends BaseAPI {
|
|
|
2621
4618
|
* @summary Get all skills
|
|
2622
4619
|
* @param {*} [options] Override http request option.
|
|
2623
4620
|
* @throws {RequiredError}
|
|
4621
|
+
* @memberof MetadataApi
|
|
2624
4622
|
*/
|
|
2625
4623
|
getSkills(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Skill[], any>>;
|
|
2626
4624
|
}
|
|
2627
4625
|
/**
|
|
2628
4626
|
* OAuthApi - axios parameter creator
|
|
4627
|
+
* @export
|
|
2629
4628
|
*/
|
|
2630
4629
|
export declare const OAuthApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2631
4630
|
/**
|
|
@@ -2658,6 +4657,7 @@ export declare const OAuthApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
2658
4657
|
};
|
|
2659
4658
|
/**
|
|
2660
4659
|
* OAuthApi - functional programming interface
|
|
4660
|
+
* @export
|
|
2661
4661
|
*/
|
|
2662
4662
|
export declare const OAuthApiFp: (configuration?: Configuration) => {
|
|
2663
4663
|
/**
|
|
@@ -2690,6 +4690,7 @@ export declare const OAuthApiFp: (configuration?: Configuration) => {
|
|
|
2690
4690
|
};
|
|
2691
4691
|
/**
|
|
2692
4692
|
* OAuthApi - factory interface
|
|
4693
|
+
* @export
|
|
2693
4694
|
*/
|
|
2694
4695
|
export declare const OAuthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2695
4696
|
/**
|
|
@@ -2722,6 +4723,9 @@ export declare const OAuthApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2722
4723
|
};
|
|
2723
4724
|
/**
|
|
2724
4725
|
* OAuthApi - object-oriented interface
|
|
4726
|
+
* @export
|
|
4727
|
+
* @class OAuthApi
|
|
4728
|
+
* @extends {BaseAPI}
|
|
2725
4729
|
*/
|
|
2726
4730
|
export declare class OAuthApi extends BaseAPI {
|
|
2727
4731
|
/**
|
|
@@ -2731,6 +4735,7 @@ export declare class OAuthApi extends BaseAPI {
|
|
|
2731
4735
|
* @param {string} redirectUri
|
|
2732
4736
|
* @param {*} [options] Override http request option.
|
|
2733
4737
|
* @throws {RequiredError}
|
|
4738
|
+
* @memberof OAuthApi
|
|
2734
4739
|
*/
|
|
2735
4740
|
getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TwitterAuthResponse, any>>;
|
|
2736
4741
|
/**
|
|
@@ -2741,6 +4746,7 @@ export declare class OAuthApi extends BaseAPI {
|
|
|
2741
4746
|
* @param {string | null} [error]
|
|
2742
4747
|
* @param {*} [options] Override http request option.
|
|
2743
4748
|
* @throws {RequiredError}
|
|
4749
|
+
* @memberof OAuthApi
|
|
2744
4750
|
*/
|
|
2745
4751
|
twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any>>;
|
|
2746
4752
|
/**
|
|
@@ -2749,11 +4755,13 @@ export declare class OAuthApi extends BaseAPI {
|
|
|
2749
4755
|
* @param {string} agentId ID of the agent to unlink from X
|
|
2750
4756
|
* @param {*} [options] Override http request option.
|
|
2751
4757
|
* @throws {RequiredError}
|
|
4758
|
+
* @memberof OAuthApi
|
|
2752
4759
|
*/
|
|
2753
4760
|
unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2754
4761
|
}
|
|
2755
4762
|
/**
|
|
2756
4763
|
* UserApi - axios parameter creator
|
|
4764
|
+
* @export
|
|
2757
4765
|
*/
|
|
2758
4766
|
export declare const UserApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2759
4767
|
/**
|
|
@@ -2776,6 +4784,7 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
2776
4784
|
};
|
|
2777
4785
|
/**
|
|
2778
4786
|
* UserApi - functional programming interface
|
|
4787
|
+
* @export
|
|
2779
4788
|
*/
|
|
2780
4789
|
export declare const UserApiFp: (configuration?: Configuration) => {
|
|
2781
4790
|
/**
|
|
@@ -2785,7 +4794,7 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
2785
4794
|
* @param {*} [options] Override http request option.
|
|
2786
4795
|
* @throws {RequiredError}
|
|
2787
4796
|
*/
|
|
2788
|
-
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4797
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgentOutput>>;
|
|
2789
4798
|
/**
|
|
2790
4799
|
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
2791
4800
|
* @summary Get User Agents
|
|
@@ -2798,6 +4807,7 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
2798
4807
|
};
|
|
2799
4808
|
/**
|
|
2800
4809
|
* UserApi - factory interface
|
|
4810
|
+
* @export
|
|
2801
4811
|
*/
|
|
2802
4812
|
export declare const UserApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2803
4813
|
/**
|
|
@@ -2807,7 +4817,7 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2807
4817
|
* @param {*} [options] Override http request option.
|
|
2808
4818
|
* @throws {RequiredError}
|
|
2809
4819
|
*/
|
|
2810
|
-
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
4820
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<AgentOutput>;
|
|
2811
4821
|
/**
|
|
2812
4822
|
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
2813
4823
|
* @summary Get User Agents
|
|
@@ -2820,6 +4830,9 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
2820
4830
|
};
|
|
2821
4831
|
/**
|
|
2822
4832
|
* UserApi - object-oriented interface
|
|
4833
|
+
* @export
|
|
4834
|
+
* @class UserApi
|
|
4835
|
+
* @extends {BaseAPI}
|
|
2823
4836
|
*/
|
|
2824
4837
|
export declare class UserApi extends BaseAPI {
|
|
2825
4838
|
/**
|
|
@@ -2828,8 +4841,9 @@ export declare class UserApi extends BaseAPI {
|
|
|
2828
4841
|
* @param {string} agentId Agent ID
|
|
2829
4842
|
* @param {*} [options] Override http request option.
|
|
2830
4843
|
* @throws {RequiredError}
|
|
4844
|
+
* @memberof UserApi
|
|
2831
4845
|
*/
|
|
2832
|
-
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
4846
|
+
getUserAgentById(agentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentOutput, any>>;
|
|
2833
4847
|
/**
|
|
2834
4848
|
* Get all agents owned by the authenticated user. **Query Parameters:** * `cursor` - Cursor for pagination * `limit` - Maximum number of agents to return (1-100) **Returns:** * `AgentListResponse` - Paginated list of user\'s agents with their quota information and additional processed data
|
|
2835
4849
|
* @summary Get User Agents
|
|
@@ -2837,6 +4851,7 @@ export declare class UserApi extends BaseAPI {
|
|
|
2837
4851
|
* @param {number} [limit] Maximum number of agents to return
|
|
2838
4852
|
* @param {*} [options] Override http request option.
|
|
2839
4853
|
* @throws {RequiredError}
|
|
4854
|
+
* @memberof UserApi
|
|
2840
4855
|
*/
|
|
2841
4856
|
getUserAgents(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgentListResponse, any>>;
|
|
2842
4857
|
}
|