@crestal/nation-sdk 0.7.40 → 0.7.41
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 +50 -7
- package/.openapi-generator/VERSION +1 -1
- package/README.md +52 -9
- package/api.ts +481 -2349
- package/base.ts +1 -25
- package/common.ts +1 -38
- package/configuration.ts +1 -18
- package/dist/api.d.ts +476 -2352
- package/dist/api.js +1 -146
- package/dist/base.d.ts +1 -25
- package/dist/base.js +1 -20
- package/dist/common.d.ts +1 -38
- package/dist/common.js +1 -38
- package/dist/configuration.d.ts +1 -18
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentAssetsResponse.md +1 -1
- package/docs/Amount.md +19 -0
- package/docs/AssetInput.md +23 -0
- package/docs/{Asset.md → AssetOutput.md} +3 -3
- package/docs/Balance.md +19 -0
- package/docs/BalanceAfter.md +19 -0
- package/docs/BaseAmount.md +19 -0
- package/docs/BaseDiscountAmount.md +19 -0
- package/docs/BaseFreeAmount.md +19 -0
- package/docs/BaseLlmAmount.md +19 -0
- package/docs/BaseOriginalAmount.md +19 -0
- package/docs/BasePermanentAmount.md +19 -0
- package/docs/BaseRewardAmount.md +19 -0
- package/docs/BaseSkillAmount.md +19 -0
- package/docs/ChangeAmount.md +19 -0
- package/docs/CreditAmount.md +19 -0
- package/docs/CreditApi.md +2 -2
- package/docs/CreditEventInput.md +109 -0
- package/docs/{CreditEvent.md → CreditEventOutput.md} +3 -3
- package/docs/CreditEventWithAgentInput.md +111 -0
- package/docs/{CreditEventWithAgent.md → CreditEventWithAgentOutput.md} +3 -3
- package/docs/CreditEventsResponse.md +1 -1
- package/docs/CreditTransactionRespInput.md +43 -0
- package/docs/{CreditTransactionResp.md → CreditTransactionRespOutput.md} +4 -4
- package/docs/CreditTransactionsResponse.md +1 -1
- package/docs/FeeAgentAmount.md +19 -0
- package/docs/FeeAgentFreeAmount.md +19 -0
- package/docs/FeeAgentPermanentAmount.md +19 -0
- package/docs/FeeAgentRewardAmount.md +19 -0
- package/docs/FeeDevAmount.md +19 -0
- package/docs/FeeDevFreeAmount.md +19 -0
- package/docs/FeeDevPermanentAmount.md +19 -0
- package/docs/FeeDevRewardAmount.md +19 -0
- package/docs/FeePlatformAmount.md +19 -0
- package/docs/FeePlatformFreeAmount.md +19 -0
- package/docs/FeePlatformPermanentAmount.md +19 -0
- package/docs/FeePlatformRewardAmount.md +19 -0
- package/docs/FreeAmount.md +19 -0
- package/docs/FreeAmount1.md +19 -0
- package/docs/InputPrice.md +18 -0
- package/docs/LLMModelInfoWithProviderNameInput.md +67 -0
- package/docs/{LLMModelInfoWithProviderName.md → LLMModelInfoWithProviderNameOutput.md} +5 -5
- package/docs/MetadataApi.md +4 -4
- package/docs/OutputPrice.md +18 -0
- package/docs/PermanentAmount.md +19 -0
- package/docs/PermanentAmount1.md +19 -0
- package/docs/Price.md +19 -0
- package/docs/PriceSelfKey.md +19 -0
- package/docs/RewardAmount.md +19 -0
- package/docs/RewardAmount1.md +19 -0
- package/docs/SkillInput.md +43 -0
- package/docs/{Skill.md → SkillOutput.md} +3 -3
- package/docs/TopupRecordInput.md +47 -0
- package/docs/{TopupRecord.md → TopupRecordOutput.md} +3 -3
- package/docs/TopupRecordsResponse.md +1 -1
- package/docs/TotalAmount.md +19 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Nation IntentKit API
|
|
5
5
|
* API for Nation IntentKit services
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.7.
|
|
7
|
+
* The version of the OpenAPI document: 0.7.41
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -25,272 +25,62 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerM
|
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Agent model.
|
|
28
|
-
* @export
|
|
29
|
-
* @interface Agent
|
|
30
28
|
*/
|
|
31
29
|
export interface Agent {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof Agent
|
|
36
|
-
*/
|
|
37
30
|
'description'?: string | null;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof Agent
|
|
42
|
-
*/
|
|
43
31
|
'external_website'?: string | null;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof Agent
|
|
48
|
-
*/
|
|
49
32
|
'ticker'?: string | null;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {string}
|
|
53
|
-
* @memberof Agent
|
|
54
|
-
*/
|
|
55
33
|
'token_address'?: string | null;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {string}
|
|
59
|
-
* @memberof Agent
|
|
60
|
-
*/
|
|
61
34
|
'token_pool'?: string | null;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {string}
|
|
65
|
-
* @memberof Agent
|
|
66
|
-
*/
|
|
67
35
|
'fee_percentage'?: string | null;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof Agent
|
|
72
|
-
*/
|
|
73
36
|
'example_intro'?: string | null;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {Array<AgentExample>}
|
|
77
|
-
* @memberof Agent
|
|
78
|
-
*/
|
|
79
37
|
'examples'?: Array<AgentExample> | null;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {object}
|
|
83
|
-
* @memberof Agent
|
|
84
|
-
*/
|
|
85
38
|
'public_extra'?: object | null;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @type {string}
|
|
89
|
-
* @memberof Agent
|
|
90
|
-
*/
|
|
91
39
|
'name': string | null;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @type {string}
|
|
95
|
-
* @memberof Agent
|
|
96
|
-
*/
|
|
97
40
|
'picture'?: string | null;
|
|
98
|
-
/**
|
|
99
|
-
*
|
|
100
|
-
* @type {string}
|
|
101
|
-
* @memberof Agent
|
|
102
|
-
*/
|
|
103
41
|
'purpose'?: string | null;
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @type {string}
|
|
107
|
-
* @memberof Agent
|
|
108
|
-
*/
|
|
109
42
|
'personality'?: string | null;
|
|
110
|
-
/**
|
|
111
|
-
*
|
|
112
|
-
* @type {string}
|
|
113
|
-
* @memberof Agent
|
|
114
|
-
*/
|
|
115
43
|
'principles'?: string | null;
|
|
116
44
|
/**
|
|
117
45
|
* AI model identifier to be used by this agent for processing requests.
|
|
118
|
-
* @type {string}
|
|
119
|
-
* @memberof Agent
|
|
120
46
|
*/
|
|
121
47
|
'model'?: string;
|
|
122
|
-
/**
|
|
123
|
-
*
|
|
124
|
-
* @type {string}
|
|
125
|
-
* @memberof Agent
|
|
126
|
-
*/
|
|
127
48
|
'prompt'?: string | null;
|
|
128
|
-
/**
|
|
129
|
-
*
|
|
130
|
-
* @type {string}
|
|
131
|
-
* @memberof Agent
|
|
132
|
-
*/
|
|
133
49
|
'prompt_append'?: string | null;
|
|
134
|
-
/**
|
|
135
|
-
*
|
|
136
|
-
* @type {number}
|
|
137
|
-
* @memberof Agent
|
|
138
|
-
*/
|
|
139
50
|
'temperature'?: number | null;
|
|
140
|
-
/**
|
|
141
|
-
*
|
|
142
|
-
* @type {number}
|
|
143
|
-
* @memberof Agent
|
|
144
|
-
*/
|
|
145
51
|
'frequency_penalty'?: number | null;
|
|
146
|
-
/**
|
|
147
|
-
*
|
|
148
|
-
* @type {number}
|
|
149
|
-
* @memberof Agent
|
|
150
|
-
*/
|
|
151
52
|
'presence_penalty'?: number | null;
|
|
152
|
-
/**
|
|
153
|
-
*
|
|
154
|
-
* @type {string}
|
|
155
|
-
* @memberof Agent
|
|
156
|
-
*/
|
|
157
53
|
'wallet_provider'?: AgentWalletProviderEnum | null;
|
|
158
|
-
/**
|
|
159
|
-
*
|
|
160
|
-
* @type {string}
|
|
161
|
-
* @memberof Agent
|
|
162
|
-
*/
|
|
163
54
|
'readonly_wallet_address'?: string | null;
|
|
164
|
-
/**
|
|
165
|
-
*
|
|
166
|
-
* @type {string}
|
|
167
|
-
* @memberof Agent
|
|
168
|
-
*/
|
|
169
55
|
'network_id'?: AgentNetworkIdEnum | null;
|
|
170
|
-
/**
|
|
171
|
-
*
|
|
172
|
-
* @type {object}
|
|
173
|
-
* @memberof Agent
|
|
174
|
-
*/
|
|
175
56
|
'skills'?: object | null;
|
|
176
|
-
/**
|
|
177
|
-
*
|
|
178
|
-
* @type {string}
|
|
179
|
-
* @memberof Agent
|
|
180
|
-
*/
|
|
181
57
|
'short_term_memory_strategy'?: AgentShortTermMemoryStrategyEnum | null;
|
|
182
|
-
/**
|
|
183
|
-
*
|
|
184
|
-
* @type {Array<AgentAutonomous>}
|
|
185
|
-
* @memberof Agent
|
|
186
|
-
*/
|
|
187
58
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
188
|
-
/**
|
|
189
|
-
*
|
|
190
|
-
* @type {boolean}
|
|
191
|
-
* @memberof Agent
|
|
192
|
-
*/
|
|
193
59
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
194
|
-
/**
|
|
195
|
-
*
|
|
196
|
-
* @type {string}
|
|
197
|
-
* @memberof Agent
|
|
198
|
-
*/
|
|
199
60
|
'telegram_entrypoint_prompt'?: string | null;
|
|
200
|
-
/**
|
|
201
|
-
*
|
|
202
|
-
* @type {object}
|
|
203
|
-
* @memberof Agent
|
|
204
|
-
*/
|
|
205
61
|
'telegram_config'?: object | null;
|
|
206
|
-
/**
|
|
207
|
-
*
|
|
208
|
-
* @type {string}
|
|
209
|
-
* @memberof Agent
|
|
210
|
-
*/
|
|
211
62
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
212
|
-
/**
|
|
213
|
-
*
|
|
214
|
-
* @type {string}
|
|
215
|
-
* @memberof Agent
|
|
216
|
-
*/
|
|
217
63
|
'upstream_id'?: string | null;
|
|
218
|
-
/**
|
|
219
|
-
*
|
|
220
|
-
* @type {object}
|
|
221
|
-
* @memberof Agent
|
|
222
|
-
*/
|
|
223
64
|
'upstream_extra'?: object | null;
|
|
224
65
|
/**
|
|
225
66
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
226
|
-
* @type {string}
|
|
227
|
-
* @memberof Agent
|
|
228
67
|
*/
|
|
229
68
|
'id'?: string;
|
|
230
|
-
/**
|
|
231
|
-
*
|
|
232
|
-
* @type {string}
|
|
233
|
-
* @memberof Agent
|
|
234
|
-
*/
|
|
235
69
|
'owner'?: string | null;
|
|
236
|
-
/**
|
|
237
|
-
*
|
|
238
|
-
* @type {string}
|
|
239
|
-
* @memberof Agent
|
|
240
|
-
*/
|
|
241
70
|
'slug'?: string | null;
|
|
242
|
-
/**
|
|
243
|
-
*
|
|
244
|
-
* @type {string}
|
|
245
|
-
* @memberof Agent
|
|
246
|
-
*/
|
|
247
71
|
'version'?: string | null;
|
|
248
|
-
/**
|
|
249
|
-
*
|
|
250
|
-
* @type {object}
|
|
251
|
-
* @memberof Agent
|
|
252
|
-
*/
|
|
253
72
|
'statistics'?: object | null;
|
|
254
|
-
/**
|
|
255
|
-
*
|
|
256
|
-
* @type {object}
|
|
257
|
-
* @memberof Agent
|
|
258
|
-
*/
|
|
259
73
|
'assets'?: object | null;
|
|
260
|
-
/**
|
|
261
|
-
*
|
|
262
|
-
* @type {CreditAccount}
|
|
263
|
-
* @memberof Agent
|
|
264
|
-
*/
|
|
265
74
|
'account_snapshot'?: CreditAccount | null;
|
|
266
|
-
/**
|
|
267
|
-
*
|
|
268
|
-
* @type {object}
|
|
269
|
-
* @memberof Agent
|
|
270
|
-
*/
|
|
271
75
|
'extra'?: object | null;
|
|
272
|
-
/**
|
|
273
|
-
*
|
|
274
|
-
* @type {string}
|
|
275
|
-
* @memberof Agent
|
|
276
|
-
*/
|
|
277
76
|
'deployed_at'?: string | null;
|
|
278
|
-
/**
|
|
279
|
-
*
|
|
280
|
-
* @type {string}
|
|
281
|
-
* @memberof Agent
|
|
282
|
-
*/
|
|
283
77
|
'public_info_updated_at'?: string | null;
|
|
284
78
|
/**
|
|
285
79
|
* Timestamp when the agent was created, will ignore when importing
|
|
286
|
-
* @type {string}
|
|
287
|
-
* @memberof Agent
|
|
288
80
|
*/
|
|
289
81
|
'created_at'?: string;
|
|
290
82
|
/**
|
|
291
83
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
292
|
-
* @type {string}
|
|
293
|
-
* @memberof Agent
|
|
294
84
|
*/
|
|
295
85
|
'updated_at'?: string;
|
|
296
86
|
}
|
|
@@ -326,306 +116,107 @@ export type AgentShortTermMemoryStrategyEnum = typeof AgentShortTermMemoryStrate
|
|
|
326
116
|
|
|
327
117
|
/**
|
|
328
118
|
* Response model for agent API key generation.
|
|
329
|
-
* @export
|
|
330
|
-
* @interface AgentApiKeyResponse
|
|
331
119
|
*/
|
|
332
120
|
export interface AgentApiKeyResponse {
|
|
333
121
|
/**
|
|
334
122
|
* The private API key for the agent (sk-)
|
|
335
|
-
* @type {string}
|
|
336
|
-
* @memberof AgentApiKeyResponse
|
|
337
123
|
*/
|
|
338
124
|
'api_key': string;
|
|
339
125
|
/**
|
|
340
126
|
* The public API key for the agent (pk-)
|
|
341
|
-
* @type {string}
|
|
342
|
-
* @memberof AgentApiKeyResponse
|
|
343
127
|
*/
|
|
344
128
|
'api_key_public': string;
|
|
345
129
|
/**
|
|
346
130
|
* The base URL for the API
|
|
347
|
-
* @type {string}
|
|
348
|
-
* @memberof AgentApiKeyResponse
|
|
349
131
|
*/
|
|
350
132
|
'base_url': string;
|
|
351
133
|
/**
|
|
352
134
|
* API documentation URL
|
|
353
|
-
* @type {string}
|
|
354
|
-
* @memberof AgentApiKeyResponse
|
|
355
135
|
*/
|
|
356
136
|
'api_doc': string;
|
|
357
137
|
/**
|
|
358
138
|
* OpenAPI JSON URL for AI integration
|
|
359
|
-
* @type {string}
|
|
360
|
-
* @memberof AgentApiKeyResponse
|
|
361
139
|
*/
|
|
362
140
|
'doc_for_ai': string;
|
|
363
141
|
}
|
|
364
142
|
/**
|
|
365
143
|
* Response model for agent assets.
|
|
366
|
-
* @export
|
|
367
|
-
* @interface AgentAssetsResponse
|
|
368
144
|
*/
|
|
369
145
|
export interface AgentAssetsResponse {
|
|
370
146
|
/**
|
|
371
147
|
* ID of the agent
|
|
372
|
-
* @type {string}
|
|
373
|
-
* @memberof AgentAssetsResponse
|
|
374
148
|
*/
|
|
375
149
|
'agent_id': string;
|
|
376
|
-
/**
|
|
377
|
-
*
|
|
378
|
-
* @type {string}
|
|
379
|
-
* @memberof AgentAssetsResponse
|
|
380
|
-
*/
|
|
381
150
|
'network_id': string | null;
|
|
382
|
-
/**
|
|
383
|
-
*
|
|
384
|
-
* @type {string}
|
|
385
|
-
* @memberof AgentAssetsResponse
|
|
386
|
-
*/
|
|
387
151
|
'wallet_address': string | null;
|
|
388
|
-
/**
|
|
389
|
-
*
|
|
390
|
-
* @type {string}
|
|
391
|
-
* @memberof AgentAssetsResponse
|
|
392
|
-
*/
|
|
393
152
|
'ticker': string | null;
|
|
394
|
-
/**
|
|
395
|
-
*
|
|
396
|
-
* @type {string}
|
|
397
|
-
* @memberof AgentAssetsResponse
|
|
398
|
-
*/
|
|
399
153
|
'token_address': string | null;
|
|
400
|
-
/**
|
|
401
|
-
*
|
|
402
|
-
* @type {string}
|
|
403
|
-
* @memberof AgentAssetsResponse
|
|
404
|
-
*/
|
|
405
154
|
'token_pool': string | null;
|
|
406
155
|
/**
|
|
407
156
|
* Total value locked, set to 0 for this version
|
|
408
|
-
* @type {string}
|
|
409
|
-
* @memberof AgentAssetsResponse
|
|
410
157
|
*/
|
|
411
158
|
'tvl'?: string;
|
|
412
159
|
/**
|
|
413
160
|
* List of assets with symbol and balance
|
|
414
|
-
* @type {Array<Asset>}
|
|
415
|
-
* @memberof AgentAssetsResponse
|
|
416
161
|
*/
|
|
417
|
-
'assets': Array<
|
|
162
|
+
'assets': Array<AssetOutput>;
|
|
418
163
|
/**
|
|
419
164
|
* Credit account information
|
|
420
|
-
* @type {CreditAccount}
|
|
421
|
-
* @memberof AgentAssetsResponse
|
|
422
165
|
*/
|
|
423
166
|
'account': CreditAccount;
|
|
424
167
|
}
|
|
425
168
|
/**
|
|
426
169
|
* Autonomous agent configuration.
|
|
427
|
-
* @export
|
|
428
|
-
* @interface AgentAutonomous
|
|
429
170
|
*/
|
|
430
171
|
export interface AgentAutonomous {
|
|
431
172
|
/**
|
|
432
173
|
* Unique identifier for the autonomous configuration
|
|
433
|
-
* @type {string}
|
|
434
|
-
* @memberof AgentAutonomous
|
|
435
174
|
*/
|
|
436
175
|
'id'?: string;
|
|
437
|
-
/**
|
|
438
|
-
*
|
|
439
|
-
* @type {string}
|
|
440
|
-
* @memberof AgentAutonomous
|
|
441
|
-
*/
|
|
442
176
|
'name'?: string | null;
|
|
443
|
-
/**
|
|
444
|
-
*
|
|
445
|
-
* @type {string}
|
|
446
|
-
* @memberof AgentAutonomous
|
|
447
|
-
*/
|
|
448
177
|
'description'?: string | null;
|
|
449
|
-
/**
|
|
450
|
-
*
|
|
451
|
-
* @type {number}
|
|
452
|
-
* @memberof AgentAutonomous
|
|
453
|
-
*/
|
|
454
178
|
'minutes'?: number | null;
|
|
455
|
-
/**
|
|
456
|
-
*
|
|
457
|
-
* @type {string}
|
|
458
|
-
* @memberof AgentAutonomous
|
|
459
|
-
*/
|
|
460
179
|
'cron'?: string | null;
|
|
461
180
|
/**
|
|
462
181
|
* Special prompt used during autonomous operation
|
|
463
|
-
* @type {string}
|
|
464
|
-
* @memberof AgentAutonomous
|
|
465
182
|
*/
|
|
466
183
|
'prompt': string;
|
|
467
|
-
/**
|
|
468
|
-
*
|
|
469
|
-
* @type {boolean}
|
|
470
|
-
* @memberof AgentAutonomous
|
|
471
|
-
*/
|
|
472
184
|
'enabled'?: boolean | null;
|
|
473
185
|
}
|
|
474
186
|
/**
|
|
475
187
|
* Agent create model.
|
|
476
|
-
* @export
|
|
477
|
-
* @interface AgentCreate
|
|
478
188
|
*/
|
|
479
189
|
export interface AgentCreate {
|
|
480
|
-
/**
|
|
481
|
-
*
|
|
482
|
-
* @type {string}
|
|
483
|
-
* @memberof AgentCreate
|
|
484
|
-
*/
|
|
485
190
|
'name': string | null;
|
|
486
|
-
/**
|
|
487
|
-
*
|
|
488
|
-
* @type {string}
|
|
489
|
-
* @memberof AgentCreate
|
|
490
|
-
*/
|
|
491
191
|
'picture'?: string | null;
|
|
492
|
-
/**
|
|
493
|
-
*
|
|
494
|
-
* @type {string}
|
|
495
|
-
* @memberof AgentCreate
|
|
496
|
-
*/
|
|
497
192
|
'purpose'?: string | null;
|
|
498
|
-
/**
|
|
499
|
-
*
|
|
500
|
-
* @type {string}
|
|
501
|
-
* @memberof AgentCreate
|
|
502
|
-
*/
|
|
503
193
|
'personality'?: string | null;
|
|
504
|
-
/**
|
|
505
|
-
*
|
|
506
|
-
* @type {string}
|
|
507
|
-
* @memberof AgentCreate
|
|
508
|
-
*/
|
|
509
194
|
'principles'?: string | null;
|
|
510
195
|
/**
|
|
511
196
|
* AI model identifier to be used by this agent for processing requests.
|
|
512
|
-
* @type {string}
|
|
513
|
-
* @memberof AgentCreate
|
|
514
197
|
*/
|
|
515
198
|
'model'?: string;
|
|
516
|
-
/**
|
|
517
|
-
*
|
|
518
|
-
* @type {string}
|
|
519
|
-
* @memberof AgentCreate
|
|
520
|
-
*/
|
|
521
199
|
'prompt'?: string | null;
|
|
522
|
-
/**
|
|
523
|
-
*
|
|
524
|
-
* @type {string}
|
|
525
|
-
* @memberof AgentCreate
|
|
526
|
-
*/
|
|
527
200
|
'prompt_append'?: string | null;
|
|
528
|
-
/**
|
|
529
|
-
*
|
|
530
|
-
* @type {number}
|
|
531
|
-
* @memberof AgentCreate
|
|
532
|
-
*/
|
|
533
201
|
'temperature'?: number | null;
|
|
534
|
-
/**
|
|
535
|
-
*
|
|
536
|
-
* @type {number}
|
|
537
|
-
* @memberof AgentCreate
|
|
538
|
-
*/
|
|
539
202
|
'frequency_penalty'?: number | null;
|
|
540
|
-
/**
|
|
541
|
-
*
|
|
542
|
-
* @type {number}
|
|
543
|
-
* @memberof AgentCreate
|
|
544
|
-
*/
|
|
545
203
|
'presence_penalty'?: number | null;
|
|
546
|
-
/**
|
|
547
|
-
*
|
|
548
|
-
* @type {string}
|
|
549
|
-
* @memberof AgentCreate
|
|
550
|
-
*/
|
|
551
204
|
'wallet_provider'?: AgentCreateWalletProviderEnum | null;
|
|
552
|
-
/**
|
|
553
|
-
*
|
|
554
|
-
* @type {string}
|
|
555
|
-
* @memberof AgentCreate
|
|
556
|
-
*/
|
|
557
205
|
'readonly_wallet_address'?: string | null;
|
|
558
|
-
/**
|
|
559
|
-
*
|
|
560
|
-
* @type {string}
|
|
561
|
-
* @memberof AgentCreate
|
|
562
|
-
*/
|
|
563
206
|
'network_id'?: AgentCreateNetworkIdEnum | null;
|
|
564
|
-
/**
|
|
565
|
-
*
|
|
566
|
-
* @type {object}
|
|
567
|
-
* @memberof AgentCreate
|
|
568
|
-
*/
|
|
569
207
|
'skills'?: object | null;
|
|
570
|
-
/**
|
|
571
|
-
*
|
|
572
|
-
* @type {string}
|
|
573
|
-
* @memberof AgentCreate
|
|
574
|
-
*/
|
|
575
208
|
'short_term_memory_strategy'?: AgentCreateShortTermMemoryStrategyEnum | null;
|
|
576
|
-
/**
|
|
577
|
-
*
|
|
578
|
-
* @type {Array<AgentAutonomous>}
|
|
579
|
-
* @memberof AgentCreate
|
|
580
|
-
*/
|
|
581
209
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
582
|
-
/**
|
|
583
|
-
*
|
|
584
|
-
* @type {boolean}
|
|
585
|
-
* @memberof AgentCreate
|
|
586
|
-
*/
|
|
587
210
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
588
|
-
/**
|
|
589
|
-
*
|
|
590
|
-
* @type {string}
|
|
591
|
-
* @memberof AgentCreate
|
|
592
|
-
*/
|
|
593
211
|
'telegram_entrypoint_prompt'?: string | null;
|
|
594
|
-
/**
|
|
595
|
-
*
|
|
596
|
-
* @type {object}
|
|
597
|
-
* @memberof AgentCreate
|
|
598
|
-
*/
|
|
599
212
|
'telegram_config'?: object | null;
|
|
600
|
-
/**
|
|
601
|
-
*
|
|
602
|
-
* @type {string}
|
|
603
|
-
* @memberof AgentCreate
|
|
604
|
-
*/
|
|
605
213
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
606
|
-
/**
|
|
607
|
-
*
|
|
608
|
-
* @type {string}
|
|
609
|
-
* @memberof AgentCreate
|
|
610
|
-
*/
|
|
611
214
|
'upstream_id'?: string | null;
|
|
612
|
-
/**
|
|
613
|
-
*
|
|
614
|
-
* @type {object}
|
|
615
|
-
* @memberof AgentCreate
|
|
616
|
-
*/
|
|
617
215
|
'upstream_extra'?: object | null;
|
|
618
216
|
/**
|
|
619
217
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
620
|
-
* @type {string}
|
|
621
|
-
* @memberof AgentCreate
|
|
622
218
|
*/
|
|
623
219
|
'id'?: string;
|
|
624
|
-
/**
|
|
625
|
-
*
|
|
626
|
-
* @type {string}
|
|
627
|
-
* @memberof AgentCreate
|
|
628
|
-
*/
|
|
629
220
|
'owner'?: string | null;
|
|
630
221
|
}
|
|
631
222
|
|
|
@@ -660,207 +251,67 @@ export type AgentCreateShortTermMemoryStrategyEnum = typeof AgentCreateShortTerm
|
|
|
660
251
|
|
|
661
252
|
/**
|
|
662
253
|
* Request model for agent deployment.
|
|
663
|
-
* @export
|
|
664
|
-
* @interface AgentDeployRequest
|
|
665
254
|
*/
|
|
666
255
|
export interface AgentDeployRequest {
|
|
667
256
|
/**
|
|
668
257
|
* Agent ID to deploy
|
|
669
|
-
* @type {string}
|
|
670
|
-
* @memberof AgentDeployRequest
|
|
671
258
|
*/
|
|
672
259
|
'agent_id': string;
|
|
673
260
|
/**
|
|
674
261
|
* Draft ID to deploy
|
|
675
|
-
* @type {string}
|
|
676
|
-
* @memberof AgentDeployRequest
|
|
677
262
|
*/
|
|
678
263
|
'draft_id': string;
|
|
679
264
|
/**
|
|
680
265
|
* Transaction ID for upstream tracking
|
|
681
|
-
* @type {string}
|
|
682
|
-
* @memberof AgentDeployRequest
|
|
683
266
|
*/
|
|
684
267
|
'tx_id': string;
|
|
685
268
|
}
|
|
686
269
|
/**
|
|
687
270
|
* Agent draft model.
|
|
688
|
-
* @export
|
|
689
|
-
* @interface AgentDraft
|
|
690
271
|
*/
|
|
691
272
|
export interface AgentDraft {
|
|
692
|
-
/**
|
|
693
|
-
*
|
|
694
|
-
* @type {string}
|
|
695
|
-
* @memberof AgentDraft
|
|
696
|
-
*/
|
|
697
273
|
'name': string | null;
|
|
698
|
-
/**
|
|
699
|
-
*
|
|
700
|
-
* @type {string}
|
|
701
|
-
* @memberof AgentDraft
|
|
702
|
-
*/
|
|
703
274
|
'picture'?: string | null;
|
|
704
|
-
/**
|
|
705
|
-
*
|
|
706
|
-
* @type {string}
|
|
707
|
-
* @memberof AgentDraft
|
|
708
|
-
*/
|
|
709
275
|
'purpose'?: string | null;
|
|
710
|
-
/**
|
|
711
|
-
*
|
|
712
|
-
* @type {string}
|
|
713
|
-
* @memberof AgentDraft
|
|
714
|
-
*/
|
|
715
276
|
'personality'?: string | null;
|
|
716
|
-
/**
|
|
717
|
-
*
|
|
718
|
-
* @type {string}
|
|
719
|
-
* @memberof AgentDraft
|
|
720
|
-
*/
|
|
721
277
|
'principles'?: string | null;
|
|
722
278
|
/**
|
|
723
279
|
* AI model identifier to be used by this agent for processing requests.
|
|
724
|
-
* @type {string}
|
|
725
|
-
* @memberof AgentDraft
|
|
726
280
|
*/
|
|
727
281
|
'model'?: string;
|
|
728
|
-
/**
|
|
729
|
-
*
|
|
730
|
-
* @type {string}
|
|
731
|
-
* @memberof AgentDraft
|
|
732
|
-
*/
|
|
733
282
|
'prompt'?: string | null;
|
|
734
|
-
/**
|
|
735
|
-
*
|
|
736
|
-
* @type {string}
|
|
737
|
-
* @memberof AgentDraft
|
|
738
|
-
*/
|
|
739
283
|
'prompt_append'?: string | null;
|
|
740
|
-
/**
|
|
741
|
-
*
|
|
742
|
-
* @type {number}
|
|
743
|
-
* @memberof AgentDraft
|
|
744
|
-
*/
|
|
745
284
|
'temperature'?: number | null;
|
|
746
|
-
/**
|
|
747
|
-
*
|
|
748
|
-
* @type {number}
|
|
749
|
-
* @memberof AgentDraft
|
|
750
|
-
*/
|
|
751
285
|
'frequency_penalty'?: number | null;
|
|
752
|
-
/**
|
|
753
|
-
*
|
|
754
|
-
* @type {number}
|
|
755
|
-
* @memberof AgentDraft
|
|
756
|
-
*/
|
|
757
286
|
'presence_penalty'?: number | null;
|
|
758
|
-
/**
|
|
759
|
-
*
|
|
760
|
-
* @type {string}
|
|
761
|
-
* @memberof AgentDraft
|
|
762
|
-
*/
|
|
763
287
|
'wallet_provider'?: AgentDraftWalletProviderEnum | null;
|
|
764
|
-
/**
|
|
765
|
-
*
|
|
766
|
-
* @type {string}
|
|
767
|
-
* @memberof AgentDraft
|
|
768
|
-
*/
|
|
769
288
|
'readonly_wallet_address'?: string | null;
|
|
770
|
-
/**
|
|
771
|
-
*
|
|
772
|
-
* @type {string}
|
|
773
|
-
* @memberof AgentDraft
|
|
774
|
-
*/
|
|
775
289
|
'network_id'?: AgentDraftNetworkIdEnum | null;
|
|
776
|
-
/**
|
|
777
|
-
*
|
|
778
|
-
* @type {object}
|
|
779
|
-
* @memberof AgentDraft
|
|
780
|
-
*/
|
|
781
290
|
'skills'?: object | null;
|
|
782
|
-
/**
|
|
783
|
-
*
|
|
784
|
-
* @type {string}
|
|
785
|
-
* @memberof AgentDraft
|
|
786
|
-
*/
|
|
787
291
|
'short_term_memory_strategy'?: AgentDraftShortTermMemoryStrategyEnum | null;
|
|
788
|
-
/**
|
|
789
|
-
*
|
|
790
|
-
* @type {Array<AgentAutonomous>}
|
|
791
|
-
* @memberof AgentDraft
|
|
792
|
-
*/
|
|
793
292
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
794
|
-
/**
|
|
795
|
-
*
|
|
796
|
-
* @type {boolean}
|
|
797
|
-
* @memberof AgentDraft
|
|
798
|
-
*/
|
|
799
293
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
800
|
-
/**
|
|
801
|
-
*
|
|
802
|
-
* @type {string}
|
|
803
|
-
* @memberof AgentDraft
|
|
804
|
-
*/
|
|
805
294
|
'telegram_entrypoint_prompt'?: string | null;
|
|
806
|
-
/**
|
|
807
|
-
*
|
|
808
|
-
* @type {object}
|
|
809
|
-
* @memberof AgentDraft
|
|
810
|
-
*/
|
|
811
295
|
'telegram_config'?: object | null;
|
|
812
|
-
/**
|
|
813
|
-
*
|
|
814
|
-
* @type {string}
|
|
815
|
-
* @memberof AgentDraft
|
|
816
|
-
*/
|
|
817
296
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
818
297
|
/**
|
|
819
298
|
* Unique identifier for the draft
|
|
820
|
-
* @type {string}
|
|
821
|
-
* @memberof AgentDraft
|
|
822
299
|
*/
|
|
823
300
|
'id'?: string;
|
|
824
301
|
/**
|
|
825
302
|
* Agent id
|
|
826
|
-
* @type {string}
|
|
827
|
-
* @memberof AgentDraft
|
|
828
303
|
*/
|
|
829
304
|
'agent_id'?: string;
|
|
830
|
-
/**
|
|
831
|
-
*
|
|
832
|
-
* @type {string}
|
|
833
|
-
* @memberof AgentDraft
|
|
834
|
-
*/
|
|
835
305
|
'owner'?: string | null;
|
|
836
|
-
/**
|
|
837
|
-
*
|
|
838
|
-
* @type {string}
|
|
839
|
-
* @memberof AgentDraft
|
|
840
|
-
*/
|
|
841
306
|
'version'?: string | null;
|
|
842
|
-
/**
|
|
843
|
-
*
|
|
844
|
-
* @type {string}
|
|
845
|
-
* @memberof AgentDraft
|
|
846
|
-
*/
|
|
847
307
|
'last_draft_id'?: string | null;
|
|
848
|
-
/**
|
|
849
|
-
*
|
|
850
|
-
* @type {string}
|
|
851
|
-
* @memberof AgentDraft
|
|
852
|
-
*/
|
|
853
308
|
'deployed_at'?: string | null;
|
|
854
309
|
/**
|
|
855
310
|
* Timestamp when the agent was created, will ignore when importing
|
|
856
|
-
* @type {string}
|
|
857
|
-
* @memberof AgentDraft
|
|
858
311
|
*/
|
|
859
312
|
'created_at'?: string;
|
|
860
313
|
/**
|
|
861
314
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
862
|
-
* @type {string}
|
|
863
|
-
* @memberof AgentDraft
|
|
864
315
|
*/
|
|
865
316
|
'updated_at'?: string;
|
|
866
317
|
}
|
|
@@ -896,475 +347,163 @@ export type AgentDraftShortTermMemoryStrategyEnum = typeof AgentDraftShortTermMe
|
|
|
896
347
|
|
|
897
348
|
/**
|
|
898
349
|
* Agent example configuration.
|
|
899
|
-
* @export
|
|
900
|
-
* @interface AgentExample
|
|
901
350
|
*/
|
|
902
351
|
export interface AgentExample {
|
|
903
352
|
/**
|
|
904
353
|
* Name of the example
|
|
905
|
-
* @type {string}
|
|
906
|
-
* @memberof AgentExample
|
|
907
354
|
*/
|
|
908
355
|
'name': string;
|
|
909
356
|
/**
|
|
910
357
|
* Description of the example
|
|
911
|
-
* @type {string}
|
|
912
|
-
* @memberof AgentExample
|
|
913
358
|
*/
|
|
914
359
|
'description': string;
|
|
915
360
|
/**
|
|
916
361
|
* Example prompt
|
|
917
|
-
* @type {string}
|
|
918
|
-
* @memberof AgentExample
|
|
919
362
|
*/
|
|
920
363
|
'prompt': string;
|
|
921
364
|
}
|
|
922
365
|
/**
|
|
923
366
|
* Request model for agent generation.
|
|
924
|
-
* @export
|
|
925
|
-
* @interface AgentGenerateRequest
|
|
926
367
|
*/
|
|
927
368
|
export interface AgentGenerateRequest {
|
|
928
369
|
/**
|
|
929
370
|
* Natural language description of the agent\'s desired capabilities
|
|
930
|
-
* @type {string}
|
|
931
|
-
* @memberof AgentGenerateRequest
|
|
932
371
|
*/
|
|
933
372
|
'prompt': string;
|
|
934
|
-
/**
|
|
935
|
-
*
|
|
936
|
-
* @type {AgentCreate}
|
|
937
|
-
* @memberof AgentGenerateRequest
|
|
938
|
-
*/
|
|
939
373
|
'existing_agent'?: AgentCreate | null;
|
|
940
|
-
/**
|
|
941
|
-
*
|
|
942
|
-
* @type {string}
|
|
943
|
-
* @memberof AgentGenerateRequest
|
|
944
|
-
*/
|
|
945
374
|
'project_id'?: string | null;
|
|
946
|
-
/**
|
|
947
|
-
*
|
|
948
|
-
* @type {boolean}
|
|
949
|
-
* @memberof AgentGenerateRequest
|
|
950
|
-
*/
|
|
951
375
|
'deploy'?: boolean | null;
|
|
952
376
|
}
|
|
953
377
|
/**
|
|
954
378
|
* Response model for agent generation.
|
|
955
|
-
* @export
|
|
956
|
-
* @interface AgentGenerateResponse
|
|
957
379
|
*/
|
|
958
380
|
export interface AgentGenerateResponse {
|
|
959
381
|
/**
|
|
960
382
|
* The generated agent schema
|
|
961
|
-
* @type {object}
|
|
962
|
-
* @memberof AgentGenerateResponse
|
|
963
383
|
*/
|
|
964
384
|
'agent': object;
|
|
965
385
|
/**
|
|
966
386
|
* Project ID for this conversation session
|
|
967
|
-
* @type {string}
|
|
968
|
-
* @memberof AgentGenerateResponse
|
|
969
387
|
*/
|
|
970
388
|
'project_id': string;
|
|
971
389
|
/**
|
|
972
390
|
* Human-readable summary of the generated agent
|
|
973
|
-
* @type {string}
|
|
974
|
-
* @memberof AgentGenerateResponse
|
|
975
391
|
*/
|
|
976
392
|
'summary': string;
|
|
977
393
|
/**
|
|
978
394
|
* Generated tags for the agent as ID objects: [{\'id\': 1}, {\'id\': 2}]
|
|
979
|
-
* @type {Array<{ [key: string]: number; }>}
|
|
980
|
-
* @memberof AgentGenerateResponse
|
|
981
395
|
*/
|
|
982
396
|
'tags'?: Array<{ [key: string]: number; }>;
|
|
983
|
-
/**
|
|
984
|
-
*
|
|
985
|
-
* @type {Array<object>}
|
|
986
|
-
* @memberof AgentGenerateResponse
|
|
987
|
-
*/
|
|
988
397
|
'autonomous_tasks'?: Array<object> | null;
|
|
989
|
-
/**
|
|
990
|
-
*
|
|
991
|
-
* @type {Array<string>}
|
|
992
|
-
* @memberof AgentGenerateResponse
|
|
993
|
-
*/
|
|
994
398
|
'activated_skills'?: Array<string> | null;
|
|
995
399
|
}
|
|
996
400
|
/**
|
|
997
401
|
* Paginated response model for agents list. Contains a list of agents, a flag indicating if more items are available, and a cursor for pagination.
|
|
998
|
-
* @export
|
|
999
|
-
* @interface AgentListResponse
|
|
1000
402
|
*/
|
|
1001
403
|
export interface AgentListResponse {
|
|
1002
404
|
/**
|
|
1003
405
|
* List of agents
|
|
1004
|
-
* @type {Array<AgentResponse>}
|
|
1005
|
-
* @memberof AgentListResponse
|
|
1006
406
|
*/
|
|
1007
407
|
'data': Array<AgentResponse>;
|
|
1008
408
|
/**
|
|
1009
409
|
* Indicates if there are more items
|
|
1010
|
-
* @type {boolean}
|
|
1011
|
-
* @memberof AgentListResponse
|
|
1012
410
|
*/
|
|
1013
411
|
'has_more': boolean;
|
|
1014
|
-
/**
|
|
1015
|
-
*
|
|
1016
|
-
* @type {string}
|
|
1017
|
-
* @memberof AgentListResponse
|
|
1018
|
-
*/
|
|
1019
412
|
'next_cursor'?: string | null;
|
|
1020
413
|
/**
|
|
1021
414
|
* Total number of agents matching the query conditions
|
|
1022
|
-
* @type {number}
|
|
1023
|
-
* @memberof AgentListResponse
|
|
1024
415
|
*/
|
|
1025
416
|
'total_count': number;
|
|
1026
417
|
}
|
|
1027
418
|
/**
|
|
1028
419
|
* Public information of the agent.
|
|
1029
|
-
* @export
|
|
1030
|
-
* @interface AgentPublicInfo
|
|
1031
420
|
*/
|
|
1032
421
|
export interface AgentPublicInfo {
|
|
1033
|
-
/**
|
|
1034
|
-
*
|
|
1035
|
-
* @type {string}
|
|
1036
|
-
* @memberof AgentPublicInfo
|
|
1037
|
-
*/
|
|
1038
422
|
'description'?: string | null;
|
|
1039
|
-
/**
|
|
1040
|
-
*
|
|
1041
|
-
* @type {string}
|
|
1042
|
-
* @memberof AgentPublicInfo
|
|
1043
|
-
*/
|
|
1044
423
|
'external_website'?: string | null;
|
|
1045
|
-
/**
|
|
1046
|
-
*
|
|
1047
|
-
* @type {string}
|
|
1048
|
-
* @memberof AgentPublicInfo
|
|
1049
|
-
*/
|
|
1050
424
|
'ticker'?: string | null;
|
|
1051
|
-
/**
|
|
1052
|
-
*
|
|
1053
|
-
* @type {string}
|
|
1054
|
-
* @memberof AgentPublicInfo
|
|
1055
|
-
*/
|
|
1056
425
|
'token_address'?: string | null;
|
|
1057
|
-
/**
|
|
1058
|
-
*
|
|
1059
|
-
* @type {string}
|
|
1060
|
-
* @memberof AgentPublicInfo
|
|
1061
|
-
*/
|
|
1062
426
|
'token_pool'?: string | null;
|
|
1063
|
-
/**
|
|
1064
|
-
*
|
|
1065
|
-
* @type {FeePercentage}
|
|
1066
|
-
* @memberof AgentPublicInfo
|
|
1067
|
-
*/
|
|
1068
427
|
'fee_percentage'?: FeePercentage | null;
|
|
1069
|
-
/**
|
|
1070
|
-
*
|
|
1071
|
-
* @type {string}
|
|
1072
|
-
* @memberof AgentPublicInfo
|
|
1073
|
-
*/
|
|
1074
428
|
'example_intro'?: string | null;
|
|
1075
|
-
/**
|
|
1076
|
-
*
|
|
1077
|
-
* @type {Array<AgentExample>}
|
|
1078
|
-
* @memberof AgentPublicInfo
|
|
1079
|
-
*/
|
|
1080
429
|
'examples'?: Array<AgentExample> | null;
|
|
1081
|
-
/**
|
|
1082
|
-
*
|
|
1083
|
-
* @type {object}
|
|
1084
|
-
* @memberof AgentPublicInfo
|
|
1085
|
-
*/
|
|
1086
430
|
'public_extra'?: object | null;
|
|
1087
431
|
}
|
|
1088
432
|
/**
|
|
1089
433
|
* Agent response model that excludes sensitive fields from JSON output and schema.
|
|
1090
|
-
* @export
|
|
1091
|
-
* @interface AgentResponse
|
|
1092
434
|
*/
|
|
1093
435
|
export interface AgentResponse {
|
|
1094
|
-
/**
|
|
1095
|
-
*
|
|
1096
|
-
* @type {string}
|
|
1097
|
-
* @memberof AgentResponse
|
|
1098
|
-
*/
|
|
1099
436
|
'description'?: string | null;
|
|
1100
|
-
/**
|
|
1101
|
-
*
|
|
1102
|
-
* @type {string}
|
|
1103
|
-
* @memberof AgentResponse
|
|
1104
|
-
*/
|
|
1105
437
|
'external_website'?: string | null;
|
|
1106
|
-
/**
|
|
1107
|
-
*
|
|
1108
|
-
* @type {string}
|
|
1109
|
-
* @memberof AgentResponse
|
|
1110
|
-
*/
|
|
1111
438
|
'ticker'?: string | null;
|
|
1112
|
-
/**
|
|
1113
|
-
*
|
|
1114
|
-
* @type {string}
|
|
1115
|
-
* @memberof AgentResponse
|
|
1116
|
-
*/
|
|
1117
439
|
'token_address'?: string | null;
|
|
1118
|
-
/**
|
|
1119
|
-
*
|
|
1120
|
-
* @type {string}
|
|
1121
|
-
* @memberof AgentResponse
|
|
1122
|
-
*/
|
|
1123
440
|
'token_pool'?: string | null;
|
|
1124
|
-
/**
|
|
1125
|
-
*
|
|
1126
|
-
* @type {string}
|
|
1127
|
-
* @memberof AgentResponse
|
|
1128
|
-
*/
|
|
1129
441
|
'fee_percentage'?: string | null;
|
|
1130
|
-
/**
|
|
1131
|
-
*
|
|
1132
|
-
* @type {string}
|
|
1133
|
-
* @memberof AgentResponse
|
|
1134
|
-
*/
|
|
1135
442
|
'example_intro'?: string | null;
|
|
1136
|
-
/**
|
|
1137
|
-
*
|
|
1138
|
-
* @type {Array<AgentExample>}
|
|
1139
|
-
* @memberof AgentResponse
|
|
1140
|
-
*/
|
|
1141
443
|
'examples'?: Array<AgentExample> | null;
|
|
1142
|
-
/**
|
|
1143
|
-
*
|
|
1144
|
-
* @type {object}
|
|
1145
|
-
* @memberof AgentResponse
|
|
1146
|
-
*/
|
|
1147
444
|
'public_extra'?: object | null;
|
|
1148
|
-
/**
|
|
1149
|
-
*
|
|
1150
|
-
* @type {string}
|
|
1151
|
-
* @memberof AgentResponse
|
|
1152
|
-
*/
|
|
1153
445
|
'name': string | null;
|
|
1154
|
-
/**
|
|
1155
|
-
*
|
|
1156
|
-
* @type {string}
|
|
1157
|
-
* @memberof AgentResponse
|
|
1158
|
-
*/
|
|
1159
446
|
'picture'?: string | null;
|
|
1160
447
|
/**
|
|
1161
448
|
* AI model identifier to be used by this agent for processing requests.
|
|
1162
|
-
* @type {string}
|
|
1163
|
-
* @memberof AgentResponse
|
|
1164
449
|
*/
|
|
1165
450
|
'model'?: string;
|
|
1166
|
-
/**
|
|
1167
|
-
*
|
|
1168
|
-
* @type {number}
|
|
1169
|
-
* @memberof AgentResponse
|
|
1170
|
-
*/
|
|
1171
451
|
'presence_penalty'?: number | null;
|
|
1172
|
-
/**
|
|
1173
|
-
*
|
|
1174
|
-
* @type {string}
|
|
1175
|
-
* @memberof AgentResponse
|
|
1176
|
-
*/
|
|
1177
452
|
'wallet_provider'?: AgentResponseWalletProviderEnum | null;
|
|
1178
|
-
/**
|
|
1179
|
-
*
|
|
1180
|
-
* @type {string}
|
|
1181
|
-
* @memberof AgentResponse
|
|
1182
|
-
*/
|
|
1183
453
|
'readonly_wallet_address'?: string | null;
|
|
1184
|
-
/**
|
|
1185
|
-
*
|
|
1186
|
-
* @type {string}
|
|
1187
|
-
* @memberof AgentResponse
|
|
1188
|
-
*/
|
|
1189
454
|
'network_id'?: AgentResponseNetworkIdEnum | null;
|
|
1190
|
-
/**
|
|
1191
|
-
*
|
|
1192
|
-
* @type {object}
|
|
1193
|
-
* @memberof AgentResponse
|
|
1194
|
-
*/
|
|
1195
455
|
'skills'?: object | null;
|
|
1196
|
-
/**
|
|
1197
|
-
*
|
|
1198
|
-
* @type {string}
|
|
1199
|
-
* @memberof AgentResponse
|
|
1200
|
-
*/
|
|
1201
456
|
'short_term_memory_strategy'?: AgentResponseShortTermMemoryStrategyEnum | null;
|
|
1202
|
-
/**
|
|
1203
|
-
*
|
|
1204
|
-
* @type {Array<AgentAutonomous>}
|
|
1205
|
-
* @memberof AgentResponse
|
|
1206
|
-
*/
|
|
1207
457
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1208
|
-
/**
|
|
1209
|
-
*
|
|
1210
|
-
* @type {boolean}
|
|
1211
|
-
* @memberof AgentResponse
|
|
1212
|
-
*/
|
|
1213
458
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1214
|
-
/**
|
|
1215
|
-
*
|
|
1216
|
-
* @type {string}
|
|
1217
|
-
* @memberof AgentResponse
|
|
1218
|
-
*/
|
|
1219
459
|
'upstream_id'?: string | null;
|
|
1220
|
-
/**
|
|
1221
|
-
*
|
|
1222
|
-
* @type {object}
|
|
1223
|
-
* @memberof AgentResponse
|
|
1224
|
-
*/
|
|
1225
460
|
'upstream_extra'?: object | null;
|
|
1226
461
|
/**
|
|
1227
462
|
* Unique identifier for the agent. Must be URL-safe, containing only lowercase letters, numbers, and hyphens
|
|
1228
|
-
* @type {string}
|
|
1229
|
-
* @memberof AgentResponse
|
|
1230
463
|
*/
|
|
1231
464
|
'id'?: string;
|
|
1232
|
-
/**
|
|
1233
|
-
*
|
|
1234
|
-
* @type {string}
|
|
1235
|
-
* @memberof AgentResponse
|
|
1236
|
-
*/
|
|
1237
465
|
'owner'?: string | null;
|
|
1238
|
-
/**
|
|
1239
|
-
*
|
|
1240
|
-
* @type {string}
|
|
1241
|
-
* @memberof AgentResponse
|
|
1242
|
-
*/
|
|
1243
466
|
'slug'?: string | null;
|
|
1244
|
-
/**
|
|
1245
|
-
*
|
|
1246
|
-
* @type {string}
|
|
1247
|
-
* @memberof AgentResponse
|
|
1248
|
-
*/
|
|
1249
467
|
'version'?: string | null;
|
|
1250
|
-
/**
|
|
1251
|
-
*
|
|
1252
|
-
* @type {object}
|
|
1253
|
-
* @memberof AgentResponse
|
|
1254
|
-
*/
|
|
1255
468
|
'statistics'?: object | null;
|
|
1256
|
-
/**
|
|
1257
|
-
*
|
|
1258
|
-
* @type {object}
|
|
1259
|
-
* @memberof AgentResponse
|
|
1260
|
-
*/
|
|
1261
469
|
'assets'?: object | null;
|
|
1262
|
-
/**
|
|
1263
|
-
*
|
|
1264
|
-
* @type {CreditAccount}
|
|
1265
|
-
* @memberof AgentResponse
|
|
1266
|
-
*/
|
|
1267
470
|
'account_snapshot'?: CreditAccount | null;
|
|
1268
|
-
/**
|
|
1269
|
-
*
|
|
1270
|
-
* @type {object}
|
|
1271
|
-
* @memberof AgentResponse
|
|
1272
|
-
*/
|
|
1273
471
|
'extra'?: object | null;
|
|
1274
|
-
/**
|
|
1275
|
-
*
|
|
1276
|
-
* @type {string}
|
|
1277
|
-
* @memberof AgentResponse
|
|
1278
|
-
*/
|
|
1279
472
|
'deployed_at'?: string | null;
|
|
1280
|
-
/**
|
|
1281
|
-
*
|
|
1282
|
-
* @type {string}
|
|
1283
|
-
* @memberof AgentResponse
|
|
1284
|
-
*/
|
|
1285
473
|
'public_info_updated_at'?: string | null;
|
|
1286
474
|
/**
|
|
1287
475
|
* Timestamp when the agent was created, will ignore when importing
|
|
1288
|
-
* @type {string}
|
|
1289
|
-
* @memberof AgentResponse
|
|
1290
476
|
*/
|
|
1291
477
|
'created_at'?: string;
|
|
1292
478
|
/**
|
|
1293
479
|
* Timestamp when the agent was last updated, will ignore when importing
|
|
1294
|
-
* @type {string}
|
|
1295
|
-
* @memberof AgentResponse
|
|
1296
480
|
*/
|
|
1297
481
|
'updated_at'?: string;
|
|
1298
|
-
/**
|
|
1299
|
-
*
|
|
1300
|
-
* @type {string}
|
|
1301
|
-
* @memberof AgentResponse
|
|
1302
|
-
*/
|
|
1303
482
|
'cdp_wallet_address'?: string | null;
|
|
1304
|
-
/**
|
|
1305
|
-
*
|
|
1306
|
-
* @type {string}
|
|
1307
|
-
* @memberof AgentResponse
|
|
1308
|
-
*/
|
|
1309
483
|
'evm_wallet_address'?: string | null;
|
|
1310
|
-
/**
|
|
1311
|
-
*
|
|
1312
|
-
* @type {string}
|
|
1313
|
-
* @memberof AgentResponse
|
|
1314
|
-
*/
|
|
1315
484
|
'solana_wallet_address'?: string | null;
|
|
1316
485
|
/**
|
|
1317
486
|
* Whether the agent has Twitter linked
|
|
1318
|
-
* @type {boolean}
|
|
1319
|
-
* @memberof AgentResponse
|
|
1320
487
|
*/
|
|
1321
488
|
'has_twitter_linked'?: boolean;
|
|
1322
|
-
/**
|
|
1323
|
-
*
|
|
1324
|
-
* @type {string}
|
|
1325
|
-
* @memberof AgentResponse
|
|
1326
|
-
*/
|
|
1327
489
|
'linked_twitter_username'?: string | null;
|
|
1328
|
-
/**
|
|
1329
|
-
*
|
|
1330
|
-
* @type {string}
|
|
1331
|
-
* @memberof AgentResponse
|
|
1332
|
-
*/
|
|
1333
490
|
'linked_twitter_name'?: string | null;
|
|
1334
491
|
/**
|
|
1335
492
|
* Whether the agent has Twitter self key
|
|
1336
|
-
* @type {boolean}
|
|
1337
|
-
* @memberof AgentResponse
|
|
1338
493
|
*/
|
|
1339
494
|
'has_twitter_self_key'?: boolean;
|
|
1340
495
|
/**
|
|
1341
496
|
* Whether the agent has Telegram self key
|
|
1342
|
-
* @type {boolean}
|
|
1343
|
-
* @memberof AgentResponse
|
|
1344
497
|
*/
|
|
1345
498
|
'has_telegram_self_key'?: boolean;
|
|
1346
|
-
/**
|
|
1347
|
-
*
|
|
1348
|
-
* @type {string}
|
|
1349
|
-
* @memberof AgentResponse
|
|
1350
|
-
*/
|
|
1351
499
|
'linked_telegram_username'?: string | null;
|
|
1352
|
-
/**
|
|
1353
|
-
*
|
|
1354
|
-
* @type {string}
|
|
1355
|
-
* @memberof AgentResponse
|
|
1356
|
-
*/
|
|
1357
500
|
'linked_telegram_name'?: string | null;
|
|
1358
501
|
/**
|
|
1359
502
|
* Whether the agent accepts image input
|
|
1360
|
-
* @type {boolean}
|
|
1361
|
-
* @memberof AgentResponse
|
|
1362
503
|
*/
|
|
1363
504
|
'accept_image_input'?: boolean;
|
|
1364
505
|
/**
|
|
1365
506
|
* Whether the agent accepts image input in private mode
|
|
1366
|
-
* @type {boolean}
|
|
1367
|
-
* @memberof AgentResponse
|
|
1368
507
|
*/
|
|
1369
508
|
'accept_image_input_private'?: boolean;
|
|
1370
509
|
}
|
|
@@ -1400,8 +539,6 @@ export type AgentResponseShortTermMemoryStrategyEnum = typeof AgentResponseShort
|
|
|
1400
539
|
|
|
1401
540
|
/**
|
|
1402
541
|
* Sort options for agents list.
|
|
1403
|
-
* @export
|
|
1404
|
-
* @enum {string}
|
|
1405
542
|
*/
|
|
1406
543
|
|
|
1407
544
|
export const AgentSortOption = {
|
|
@@ -1418,8 +555,6 @@ export type AgentSortOption = typeof AgentSortOption[keyof typeof AgentSortOptio
|
|
|
1418
555
|
|
|
1419
556
|
/**
|
|
1420
557
|
* Agent state.
|
|
1421
|
-
* @export
|
|
1422
|
-
* @enum {string}
|
|
1423
558
|
*/
|
|
1424
559
|
|
|
1425
560
|
export const AgentState = {
|
|
@@ -1433,244 +568,98 @@ export type AgentState = typeof AgentState[keyof typeof AgentState];
|
|
|
1433
568
|
|
|
1434
569
|
/**
|
|
1435
570
|
* Aggregated statistics for an agent credit account.
|
|
1436
|
-
* @export
|
|
1437
|
-
* @interface AgentStatistics
|
|
1438
571
|
*/
|
|
1439
572
|
export interface AgentStatistics {
|
|
1440
573
|
/**
|
|
1441
574
|
* ID of the agent
|
|
1442
|
-
* @type {string}
|
|
1443
|
-
* @memberof AgentStatistics
|
|
1444
575
|
*/
|
|
1445
576
|
'agent_id': string;
|
|
1446
577
|
/**
|
|
1447
578
|
* ID of the associated credit account
|
|
1448
|
-
* @type {string}
|
|
1449
|
-
* @memberof AgentStatistics
|
|
1450
579
|
*/
|
|
1451
580
|
'account_id': string;
|
|
1452
581
|
/**
|
|
1453
582
|
* Current credit account balance
|
|
1454
|
-
* @type {string}
|
|
1455
|
-
* @memberof AgentStatistics
|
|
1456
583
|
*/
|
|
1457
584
|
'balance': string;
|
|
1458
585
|
/**
|
|
1459
586
|
* Total income across all events
|
|
1460
|
-
* @type {string}
|
|
1461
|
-
* @memberof AgentStatistics
|
|
1462
587
|
*/
|
|
1463
588
|
'total_income': string;
|
|
1464
589
|
/**
|
|
1465
590
|
* Net income from fee allocations
|
|
1466
|
-
* @type {string}
|
|
1467
|
-
* @memberof AgentStatistics
|
|
1468
591
|
*/
|
|
1469
592
|
'net_income': string;
|
|
1470
593
|
/**
|
|
1471
594
|
* Total permanent income across all events
|
|
1472
|
-
* @type {string}
|
|
1473
|
-
* @memberof AgentStatistics
|
|
1474
595
|
*/
|
|
1475
596
|
'permanent_income': string;
|
|
1476
597
|
/**
|
|
1477
598
|
* Permanent profit allocated to the agent
|
|
1478
|
-
* @type {string}
|
|
1479
|
-
* @memberof AgentStatistics
|
|
1480
599
|
*/
|
|
1481
600
|
'permanent_profit': string;
|
|
1482
601
|
/**
|
|
1483
602
|
* Income generated during the last 24 hours
|
|
1484
|
-
* @type {string}
|
|
1485
|
-
* @memberof AgentStatistics
|
|
1486
603
|
*/
|
|
1487
604
|
'last_24h_income': string;
|
|
1488
605
|
/**
|
|
1489
606
|
* Permanent income generated during the last 24 hours
|
|
1490
|
-
* @type {string}
|
|
1491
|
-
* @memberof AgentStatistics
|
|
1492
607
|
*/
|
|
1493
608
|
'last_24h_permanent_income': string;
|
|
1494
609
|
/**
|
|
1495
610
|
* Average action cost
|
|
1496
|
-
* @type {string}
|
|
1497
|
-
* @memberof AgentStatistics
|
|
1498
611
|
*/
|
|
1499
612
|
'avg_action_cost': string;
|
|
1500
613
|
/**
|
|
1501
614
|
* Minimum action cost
|
|
1502
|
-
* @type {string}
|
|
1503
|
-
* @memberof AgentStatistics
|
|
1504
615
|
*/
|
|
1505
616
|
'min_action_cost': string;
|
|
1506
617
|
/**
|
|
1507
618
|
* Maximum action cost
|
|
1508
|
-
* @type {string}
|
|
1509
|
-
* @memberof AgentStatistics
|
|
1510
619
|
*/
|
|
1511
620
|
'max_action_cost': string;
|
|
1512
621
|
/**
|
|
1513
622
|
* 20th percentile action cost
|
|
1514
|
-
* @type {string}
|
|
1515
|
-
* @memberof AgentStatistics
|
|
1516
623
|
*/
|
|
1517
624
|
'low_action_cost': string;
|
|
1518
625
|
/**
|
|
1519
626
|
* 60th percentile action cost
|
|
1520
|
-
* @type {string}
|
|
1521
|
-
* @memberof AgentStatistics
|
|
1522
627
|
*/
|
|
1523
628
|
'medium_action_cost': string;
|
|
1524
629
|
/**
|
|
1525
630
|
* 80th percentile action cost
|
|
1526
|
-
* @type {string}
|
|
1527
|
-
* @memberof AgentStatistics
|
|
1528
631
|
*/
|
|
1529
632
|
'high_action_cost': string;
|
|
1530
633
|
}
|
|
1531
634
|
/**
|
|
1532
635
|
* Agent update model.
|
|
1533
|
-
* @export
|
|
1534
|
-
* @interface AgentUpdate
|
|
1535
636
|
*/
|
|
1536
637
|
export interface AgentUpdate {
|
|
1537
|
-
/**
|
|
1538
|
-
*
|
|
1539
|
-
* @type {string}
|
|
1540
|
-
* @memberof AgentUpdate
|
|
1541
|
-
*/
|
|
1542
638
|
'name': string | null;
|
|
1543
|
-
/**
|
|
1544
|
-
*
|
|
1545
|
-
* @type {string}
|
|
1546
|
-
* @memberof AgentUpdate
|
|
1547
|
-
*/
|
|
1548
639
|
'picture'?: string | null;
|
|
1549
|
-
/**
|
|
1550
|
-
*
|
|
1551
|
-
* @type {string}
|
|
1552
|
-
* @memberof AgentUpdate
|
|
1553
|
-
*/
|
|
1554
640
|
'purpose'?: string | null;
|
|
1555
|
-
/**
|
|
1556
|
-
*
|
|
1557
|
-
* @type {string}
|
|
1558
|
-
* @memberof AgentUpdate
|
|
1559
|
-
*/
|
|
1560
641
|
'personality'?: string | null;
|
|
1561
|
-
/**
|
|
1562
|
-
*
|
|
1563
|
-
* @type {string}
|
|
1564
|
-
* @memberof AgentUpdate
|
|
1565
|
-
*/
|
|
1566
642
|
'principles'?: string | null;
|
|
1567
643
|
/**
|
|
1568
644
|
* AI model identifier to be used by this agent for processing requests.
|
|
1569
|
-
* @type {string}
|
|
1570
|
-
* @memberof AgentUpdate
|
|
1571
645
|
*/
|
|
1572
646
|
'model'?: string;
|
|
1573
|
-
/**
|
|
1574
|
-
*
|
|
1575
|
-
* @type {string}
|
|
1576
|
-
* @memberof AgentUpdate
|
|
1577
|
-
*/
|
|
1578
647
|
'prompt'?: string | null;
|
|
1579
|
-
/**
|
|
1580
|
-
*
|
|
1581
|
-
* @type {string}
|
|
1582
|
-
* @memberof AgentUpdate
|
|
1583
|
-
*/
|
|
1584
648
|
'prompt_append'?: string | null;
|
|
1585
|
-
/**
|
|
1586
|
-
*
|
|
1587
|
-
* @type {number}
|
|
1588
|
-
* @memberof AgentUpdate
|
|
1589
|
-
*/
|
|
1590
649
|
'temperature'?: number | null;
|
|
1591
|
-
/**
|
|
1592
|
-
*
|
|
1593
|
-
* @type {number}
|
|
1594
|
-
* @memberof AgentUpdate
|
|
1595
|
-
*/
|
|
1596
650
|
'frequency_penalty'?: number | null;
|
|
1597
|
-
/**
|
|
1598
|
-
*
|
|
1599
|
-
* @type {number}
|
|
1600
|
-
* @memberof AgentUpdate
|
|
1601
|
-
*/
|
|
1602
651
|
'presence_penalty'?: number | null;
|
|
1603
|
-
/**
|
|
1604
|
-
*
|
|
1605
|
-
* @type {string}
|
|
1606
|
-
* @memberof AgentUpdate
|
|
1607
|
-
*/
|
|
1608
652
|
'wallet_provider'?: AgentUpdateWalletProviderEnum | null;
|
|
1609
|
-
/**
|
|
1610
|
-
*
|
|
1611
|
-
* @type {string}
|
|
1612
|
-
* @memberof AgentUpdate
|
|
1613
|
-
*/
|
|
1614
653
|
'readonly_wallet_address'?: string | null;
|
|
1615
|
-
/**
|
|
1616
|
-
*
|
|
1617
|
-
* @type {string}
|
|
1618
|
-
* @memberof AgentUpdate
|
|
1619
|
-
*/
|
|
1620
654
|
'network_id'?: AgentUpdateNetworkIdEnum | null;
|
|
1621
|
-
/**
|
|
1622
|
-
*
|
|
1623
|
-
* @type {object}
|
|
1624
|
-
* @memberof AgentUpdate
|
|
1625
|
-
*/
|
|
1626
655
|
'skills'?: object | null;
|
|
1627
|
-
/**
|
|
1628
|
-
*
|
|
1629
|
-
* @type {string}
|
|
1630
|
-
* @memberof AgentUpdate
|
|
1631
|
-
*/
|
|
1632
656
|
'short_term_memory_strategy'?: AgentUpdateShortTermMemoryStrategyEnum | null;
|
|
1633
|
-
/**
|
|
1634
|
-
*
|
|
1635
|
-
* @type {Array<AgentAutonomous>}
|
|
1636
|
-
* @memberof AgentUpdate
|
|
1637
|
-
*/
|
|
1638
657
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1639
|
-
/**
|
|
1640
|
-
*
|
|
1641
|
-
* @type {boolean}
|
|
1642
|
-
* @memberof AgentUpdate
|
|
1643
|
-
*/
|
|
1644
658
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1645
|
-
/**
|
|
1646
|
-
*
|
|
1647
|
-
* @type {string}
|
|
1648
|
-
* @memberof AgentUpdate
|
|
1649
|
-
*/
|
|
1650
659
|
'telegram_entrypoint_prompt'?: string | null;
|
|
1651
|
-
/**
|
|
1652
|
-
*
|
|
1653
|
-
* @type {object}
|
|
1654
|
-
* @memberof AgentUpdate
|
|
1655
|
-
*/
|
|
1656
660
|
'telegram_config'?: object | null;
|
|
1657
|
-
/**
|
|
1658
|
-
*
|
|
1659
|
-
* @type {string}
|
|
1660
|
-
* @memberof AgentUpdate
|
|
1661
|
-
*/
|
|
1662
661
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
1663
|
-
/**
|
|
1664
|
-
*
|
|
1665
|
-
* @type {string}
|
|
1666
|
-
* @memberof AgentUpdate
|
|
1667
|
-
*/
|
|
1668
662
|
'upstream_id'?: string | null;
|
|
1669
|
-
/**
|
|
1670
|
-
*
|
|
1671
|
-
* @type {object}
|
|
1672
|
-
* @memberof AgentUpdate
|
|
1673
|
-
*/
|
|
1674
663
|
'upstream_extra'?: object | null;
|
|
1675
664
|
}
|
|
1676
665
|
|
|
@@ -1705,135 +694,31 @@ export type AgentUpdateShortTermMemoryStrategyEnum = typeof AgentUpdateShortTerm
|
|
|
1705
694
|
|
|
1706
695
|
/**
|
|
1707
696
|
* Agent update model.
|
|
1708
|
-
* @export
|
|
1709
|
-
* @interface AgentUserInput
|
|
1710
697
|
*/
|
|
1711
698
|
export interface AgentUserInput {
|
|
1712
|
-
/**
|
|
1713
|
-
*
|
|
1714
|
-
* @type {string}
|
|
1715
|
-
* @memberof AgentUserInput
|
|
1716
|
-
*/
|
|
1717
699
|
'name': string | null;
|
|
1718
|
-
/**
|
|
1719
|
-
*
|
|
1720
|
-
* @type {string}
|
|
1721
|
-
* @memberof AgentUserInput
|
|
1722
|
-
*/
|
|
1723
700
|
'picture'?: string | null;
|
|
1724
|
-
/**
|
|
1725
|
-
*
|
|
1726
|
-
* @type {string}
|
|
1727
|
-
* @memberof AgentUserInput
|
|
1728
|
-
*/
|
|
1729
701
|
'purpose'?: string | null;
|
|
1730
|
-
/**
|
|
1731
|
-
*
|
|
1732
|
-
* @type {string}
|
|
1733
|
-
* @memberof AgentUserInput
|
|
1734
|
-
*/
|
|
1735
702
|
'personality'?: string | null;
|
|
1736
|
-
/**
|
|
1737
|
-
*
|
|
1738
|
-
* @type {string}
|
|
1739
|
-
* @memberof AgentUserInput
|
|
1740
|
-
*/
|
|
1741
703
|
'principles'?: string | null;
|
|
1742
704
|
/**
|
|
1743
705
|
* AI model identifier to be used by this agent for processing requests.
|
|
1744
|
-
* @type {string}
|
|
1745
|
-
* @memberof AgentUserInput
|
|
1746
706
|
*/
|
|
1747
707
|
'model'?: string;
|
|
1748
|
-
/**
|
|
1749
|
-
*
|
|
1750
|
-
* @type {string}
|
|
1751
|
-
* @memberof AgentUserInput
|
|
1752
|
-
*/
|
|
1753
708
|
'prompt'?: string | null;
|
|
1754
|
-
/**
|
|
1755
|
-
*
|
|
1756
|
-
* @type {string}
|
|
1757
|
-
* @memberof AgentUserInput
|
|
1758
|
-
*/
|
|
1759
709
|
'prompt_append'?: string | null;
|
|
1760
|
-
/**
|
|
1761
|
-
*
|
|
1762
|
-
* @type {number}
|
|
1763
|
-
* @memberof AgentUserInput
|
|
1764
|
-
*/
|
|
1765
710
|
'temperature'?: number | null;
|
|
1766
|
-
/**
|
|
1767
|
-
*
|
|
1768
|
-
* @type {number}
|
|
1769
|
-
* @memberof AgentUserInput
|
|
1770
|
-
*/
|
|
1771
711
|
'frequency_penalty'?: number | null;
|
|
1772
|
-
/**
|
|
1773
|
-
*
|
|
1774
|
-
* @type {number}
|
|
1775
|
-
* @memberof AgentUserInput
|
|
1776
|
-
*/
|
|
1777
712
|
'presence_penalty'?: number | null;
|
|
1778
|
-
/**
|
|
1779
|
-
*
|
|
1780
|
-
* @type {string}
|
|
1781
|
-
* @memberof AgentUserInput
|
|
1782
|
-
*/
|
|
1783
713
|
'wallet_provider'?: AgentUserInputWalletProviderEnum | null;
|
|
1784
|
-
/**
|
|
1785
|
-
*
|
|
1786
|
-
* @type {string}
|
|
1787
|
-
* @memberof AgentUserInput
|
|
1788
|
-
*/
|
|
1789
714
|
'readonly_wallet_address'?: string | null;
|
|
1790
|
-
/**
|
|
1791
|
-
*
|
|
1792
|
-
* @type {string}
|
|
1793
|
-
* @memberof AgentUserInput
|
|
1794
|
-
*/
|
|
1795
715
|
'network_id'?: AgentUserInputNetworkIdEnum | null;
|
|
1796
|
-
/**
|
|
1797
|
-
*
|
|
1798
|
-
* @type {object}
|
|
1799
|
-
* @memberof AgentUserInput
|
|
1800
|
-
*/
|
|
1801
716
|
'skills'?: object | null;
|
|
1802
|
-
/**
|
|
1803
|
-
*
|
|
1804
|
-
* @type {string}
|
|
1805
|
-
* @memberof AgentUserInput
|
|
1806
|
-
*/
|
|
1807
717
|
'short_term_memory_strategy'?: AgentUserInputShortTermMemoryStrategyEnum | null;
|
|
1808
|
-
/**
|
|
1809
|
-
*
|
|
1810
|
-
* @type {Array<AgentAutonomous>}
|
|
1811
|
-
* @memberof AgentUserInput
|
|
1812
|
-
*/
|
|
1813
718
|
'autonomous'?: Array<AgentAutonomous> | null;
|
|
1814
|
-
/**
|
|
1815
|
-
*
|
|
1816
|
-
* @type {boolean}
|
|
1817
|
-
* @memberof AgentUserInput
|
|
1818
|
-
*/
|
|
1819
719
|
'telegram_entrypoint_enabled'?: boolean | null;
|
|
1820
|
-
/**
|
|
1821
|
-
*
|
|
1822
|
-
* @type {string}
|
|
1823
|
-
* @memberof AgentUserInput
|
|
1824
|
-
*/
|
|
1825
720
|
'telegram_entrypoint_prompt'?: string | null;
|
|
1826
|
-
/**
|
|
1827
|
-
*
|
|
1828
|
-
* @type {object}
|
|
1829
|
-
* @memberof AgentUserInput
|
|
1830
|
-
*/
|
|
1831
721
|
'telegram_config'?: object | null;
|
|
1832
|
-
/**
|
|
1833
|
-
*
|
|
1834
|
-
* @type {string}
|
|
1835
|
-
* @memberof AgentUserInput
|
|
1836
|
-
*/
|
|
1837
722
|
'xmtp_entrypoint_prompt'?: string | null;
|
|
1838
723
|
}
|
|
1839
724
|
|
|
@@ -1866,29 +751,36 @@ export const AgentUserInputShortTermMemoryStrategyEnum = {
|
|
|
1866
751
|
|
|
1867
752
|
export type AgentUserInputShortTermMemoryStrategyEnum = typeof AgentUserInputShortTermMemoryStrategyEnum[keyof typeof AgentUserInputShortTermMemoryStrategyEnum];
|
|
1868
753
|
|
|
754
|
+
/**
|
|
755
|
+
* Token amount in raw units
|
|
756
|
+
*/
|
|
757
|
+
export interface Amount {
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* Model for individual asset with symbol and balance.
|
|
761
|
+
*/
|
|
762
|
+
export interface AssetInput {
|
|
763
|
+
/**
|
|
764
|
+
* Asset symbol (e.g., ETH, USDC, NATION)
|
|
765
|
+
*/
|
|
766
|
+
'symbol': string;
|
|
767
|
+
'balance': Balance;
|
|
768
|
+
}
|
|
1869
769
|
/**
|
|
1870
770
|
* Model for individual asset with symbol and balance.
|
|
1871
|
-
* @export
|
|
1872
|
-
* @interface Asset
|
|
1873
771
|
*/
|
|
1874
|
-
export interface
|
|
772
|
+
export interface AssetOutput {
|
|
1875
773
|
/**
|
|
1876
774
|
* Asset symbol (e.g., ETH, USDC, NATION)
|
|
1877
|
-
* @type {string}
|
|
1878
|
-
* @memberof Asset
|
|
1879
775
|
*/
|
|
1880
776
|
'symbol': string;
|
|
1881
777
|
/**
|
|
1882
778
|
* Asset balance as decimal
|
|
1883
|
-
* @type {string}
|
|
1884
|
-
* @memberof Asset
|
|
1885
779
|
*/
|
|
1886
780
|
'balance': string;
|
|
1887
781
|
}
|
|
1888
782
|
/**
|
|
1889
783
|
* Type of message author.
|
|
1890
|
-
* @export
|
|
1891
|
-
* @enum {string}
|
|
1892
784
|
*/
|
|
1893
785
|
|
|
1894
786
|
export const AuthorType = {
|
|
@@ -1906,197 +798,152 @@ export const AuthorType = {
|
|
|
1906
798
|
export type AuthorType = typeof AuthorType[keyof typeof AuthorType];
|
|
1907
799
|
|
|
1908
800
|
|
|
801
|
+
/**
|
|
802
|
+
* Asset balance as decimal
|
|
803
|
+
*/
|
|
804
|
+
export interface Balance {
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* Account total balance after the transaction
|
|
808
|
+
*/
|
|
809
|
+
export interface BalanceAfter {
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* Base amount of credits involved
|
|
813
|
+
*/
|
|
814
|
+
export interface BaseAmount {
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* Base discount amount
|
|
818
|
+
*/
|
|
819
|
+
export interface BaseDiscountAmount {
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* Base free credit amount
|
|
823
|
+
*/
|
|
824
|
+
export interface BaseFreeAmount {
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* Base LLM cost amount
|
|
828
|
+
*/
|
|
829
|
+
export interface BaseLlmAmount {
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
* Base original amount
|
|
833
|
+
*/
|
|
834
|
+
export interface BaseOriginalAmount {
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* Base permanent credit amount
|
|
838
|
+
*/
|
|
839
|
+
export interface BasePermanentAmount {
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Base reward credit amount
|
|
843
|
+
*/
|
|
844
|
+
export interface BaseRewardAmount {
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* Base skill cost amount
|
|
848
|
+
*/
|
|
849
|
+
export interface BaseSkillAmount {
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* Amount of credits changed
|
|
853
|
+
*/
|
|
854
|
+
export interface ChangeAmount {
|
|
855
|
+
}
|
|
1909
856
|
/**
|
|
1910
857
|
* Chat model with all fields including server-generated ones.
|
|
1911
|
-
* @export
|
|
1912
|
-
* @interface Chat
|
|
1913
858
|
*/
|
|
1914
859
|
export interface Chat {
|
|
1915
860
|
/**
|
|
1916
861
|
* Unique identifier for the chat
|
|
1917
|
-
* @type {string}
|
|
1918
|
-
* @memberof Chat
|
|
1919
862
|
*/
|
|
1920
863
|
'id'?: string;
|
|
1921
864
|
/**
|
|
1922
865
|
* ID of the agent this chat belongs to
|
|
1923
|
-
* @type {string}
|
|
1924
|
-
* @memberof Chat
|
|
1925
866
|
*/
|
|
1926
867
|
'agent_id': string;
|
|
1927
868
|
/**
|
|
1928
869
|
* User ID of the chat
|
|
1929
|
-
* @type {string}
|
|
1930
|
-
* @memberof Chat
|
|
1931
870
|
*/
|
|
1932
871
|
'user_id': string;
|
|
1933
872
|
/**
|
|
1934
873
|
* Summary of the chat
|
|
1935
|
-
* @type {string}
|
|
1936
|
-
* @memberof Chat
|
|
1937
874
|
*/
|
|
1938
875
|
'summary'?: string;
|
|
1939
876
|
/**
|
|
1940
877
|
* Number of rounds in the chat
|
|
1941
|
-
* @type {number}
|
|
1942
|
-
* @memberof Chat
|
|
1943
878
|
*/
|
|
1944
879
|
'rounds'?: number;
|
|
1945
880
|
/**
|
|
1946
881
|
* Timestamp when this chat was created
|
|
1947
|
-
* @type {string}
|
|
1948
|
-
* @memberof Chat
|
|
1949
882
|
*/
|
|
1950
883
|
'created_at': string;
|
|
1951
884
|
/**
|
|
1952
885
|
* Timestamp when this chat was updated
|
|
1953
|
-
* @type {string}
|
|
1954
|
-
* @memberof Chat
|
|
1955
886
|
*/
|
|
1956
887
|
'updated_at': string;
|
|
1957
888
|
}
|
|
1958
889
|
/**
|
|
1959
890
|
* Chat message model with all fields including server-generated ones.
|
|
1960
|
-
* @export
|
|
1961
|
-
* @interface ChatMessage
|
|
1962
891
|
*/
|
|
1963
892
|
export interface ChatMessage {
|
|
1964
893
|
/**
|
|
1965
894
|
* Unique identifier for the chat message
|
|
1966
|
-
* @type {string}
|
|
1967
|
-
* @memberof ChatMessage
|
|
1968
895
|
*/
|
|
1969
896
|
'id'?: string;
|
|
1970
897
|
/**
|
|
1971
898
|
* ID of the agent this message belongs to
|
|
1972
|
-
* @type {string}
|
|
1973
|
-
* @memberof ChatMessage
|
|
1974
899
|
*/
|
|
1975
900
|
'agent_id': string;
|
|
1976
901
|
/**
|
|
1977
902
|
* ID of the chat this message belongs to
|
|
1978
|
-
* @type {string}
|
|
1979
|
-
* @memberof ChatMessage
|
|
1980
903
|
*/
|
|
1981
904
|
'chat_id': string;
|
|
1982
|
-
/**
|
|
1983
|
-
*
|
|
1984
|
-
* @type {string}
|
|
1985
|
-
* @memberof ChatMessage
|
|
1986
|
-
*/
|
|
1987
905
|
'user_id': string | null;
|
|
1988
906
|
/**
|
|
1989
907
|
* ID of the message author
|
|
1990
|
-
* @type {string}
|
|
1991
|
-
* @memberof ChatMessage
|
|
1992
908
|
*/
|
|
1993
909
|
'author_id': string;
|
|
1994
910
|
/**
|
|
1995
911
|
* Type of the message author
|
|
1996
|
-
* @type {AuthorType}
|
|
1997
|
-
* @memberof ChatMessage
|
|
1998
912
|
*/
|
|
1999
913
|
'author_type': AuthorType;
|
|
2000
|
-
/**
|
|
2001
|
-
*
|
|
2002
|
-
* @type {string}
|
|
2003
|
-
* @memberof ChatMessage
|
|
2004
|
-
*/
|
|
2005
914
|
'model'?: string | null;
|
|
2006
|
-
/**
|
|
2007
|
-
*
|
|
2008
|
-
* @type {AuthorType}
|
|
2009
|
-
* @memberof ChatMessage
|
|
2010
|
-
*/
|
|
2011
915
|
'thread_type'?: AuthorType | null;
|
|
2012
|
-
/**
|
|
2013
|
-
*
|
|
2014
|
-
* @type {string}
|
|
2015
|
-
* @memberof ChatMessage
|
|
2016
|
-
*/
|
|
2017
916
|
'reply_to'?: string | null;
|
|
2018
917
|
/**
|
|
2019
918
|
* Content of the message
|
|
2020
|
-
* @type {string}
|
|
2021
|
-
* @memberof ChatMessage
|
|
2022
919
|
*/
|
|
2023
920
|
'message': string;
|
|
2024
|
-
/**
|
|
2025
|
-
*
|
|
2026
|
-
* @type {Array<ChatMessageAttachment>}
|
|
2027
|
-
* @memberof ChatMessage
|
|
2028
|
-
*/
|
|
2029
921
|
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
2030
|
-
/**
|
|
2031
|
-
*
|
|
2032
|
-
* @type {Array<ChatMessageSkillCall>}
|
|
2033
|
-
* @memberof ChatMessage
|
|
2034
|
-
*/
|
|
2035
922
|
'skill_calls'?: Array<ChatMessageSkillCall> | null;
|
|
2036
923
|
/**
|
|
2037
924
|
* Number of tokens in the input message
|
|
2038
|
-
* @type {number}
|
|
2039
|
-
* @memberof ChatMessage
|
|
2040
925
|
*/
|
|
2041
926
|
'input_tokens'?: number;
|
|
2042
927
|
/**
|
|
2043
928
|
* Number of tokens in the output message
|
|
2044
|
-
* @type {number}
|
|
2045
|
-
* @memberof ChatMessage
|
|
2046
929
|
*/
|
|
2047
930
|
'output_tokens'?: number;
|
|
2048
931
|
/**
|
|
2049
932
|
* Time cost for the message in seconds
|
|
2050
|
-
* @type {number}
|
|
2051
|
-
* @memberof ChatMessage
|
|
2052
933
|
*/
|
|
2053
934
|
'time_cost'?: number;
|
|
2054
|
-
/**
|
|
2055
|
-
*
|
|
2056
|
-
* @type {string}
|
|
2057
|
-
* @memberof ChatMessage
|
|
2058
|
-
*/
|
|
2059
935
|
'credit_event_id'?: string | null;
|
|
2060
|
-
/**
|
|
2061
|
-
*
|
|
2062
|
-
* @type {string}
|
|
2063
|
-
* @memberof ChatMessage
|
|
2064
|
-
*/
|
|
2065
936
|
'credit_cost'?: string | null;
|
|
2066
937
|
/**
|
|
2067
938
|
* Cost for the cold start of the message in seconds
|
|
2068
|
-
* @type {number}
|
|
2069
|
-
* @memberof ChatMessage
|
|
2070
939
|
*/
|
|
2071
940
|
'cold_start_cost'?: number;
|
|
2072
|
-
/**
|
|
2073
|
-
*
|
|
2074
|
-
* @type {string}
|
|
2075
|
-
* @memberof ChatMessage
|
|
2076
|
-
*/
|
|
2077
941
|
'app_id'?: string | null;
|
|
2078
|
-
/**
|
|
2079
|
-
*
|
|
2080
|
-
* @type {boolean}
|
|
2081
|
-
* @memberof ChatMessage
|
|
2082
|
-
*/
|
|
2083
942
|
'search_mode'?: boolean | null;
|
|
2084
|
-
/**
|
|
2085
|
-
*
|
|
2086
|
-
* @type {boolean}
|
|
2087
|
-
* @memberof ChatMessage
|
|
2088
|
-
*/
|
|
2089
943
|
'super_mode'?: boolean | null;
|
|
2090
|
-
/**
|
|
2091
|
-
*
|
|
2092
|
-
* @type {SystemMessageType}
|
|
2093
|
-
* @memberof ChatMessage
|
|
2094
|
-
*/
|
|
2095
944
|
'error_type'?: SystemMessageType | null;
|
|
2096
945
|
/**
|
|
2097
946
|
* Timestamp when this message was created
|
|
2098
|
-
* @type {string}
|
|
2099
|
-
* @memberof ChatMessage
|
|
2100
947
|
*/
|
|
2101
948
|
'created_at': string;
|
|
2102
949
|
}
|
|
@@ -2104,35 +951,19 @@ export interface ChatMessage {
|
|
|
2104
951
|
|
|
2105
952
|
/**
|
|
2106
953
|
* Chat message attachment model. An attachment can be a link, image, or file that is associated with a chat message.
|
|
2107
|
-
* @export
|
|
2108
|
-
* @interface ChatMessageAttachment
|
|
2109
954
|
*/
|
|
2110
955
|
export interface ChatMessageAttachment {
|
|
2111
956
|
/**
|
|
2112
957
|
* Type of the attachment (link, image, or file)
|
|
2113
|
-
* @type {ChatMessageAttachmentType}
|
|
2114
|
-
* @memberof ChatMessageAttachment
|
|
2115
958
|
*/
|
|
2116
959
|
'type': ChatMessageAttachmentType;
|
|
2117
|
-
/**
|
|
2118
|
-
*
|
|
2119
|
-
* @type {string}
|
|
2120
|
-
* @memberof ChatMessageAttachment
|
|
2121
|
-
*/
|
|
2122
960
|
'url': string | null;
|
|
2123
|
-
/**
|
|
2124
|
-
*
|
|
2125
|
-
* @type {object}
|
|
2126
|
-
* @memberof ChatMessageAttachment
|
|
2127
|
-
*/
|
|
2128
961
|
'json'?: object | null;
|
|
2129
962
|
}
|
|
2130
963
|
|
|
2131
964
|
|
|
2132
965
|
/**
|
|
2133
966
|
* Type of chat message attachment.
|
|
2134
|
-
* @export
|
|
2135
|
-
* @enum {string}
|
|
2136
967
|
*/
|
|
2137
968
|
|
|
2138
969
|
export const ChatMessageAttachmentType = {
|
|
@@ -2147,279 +978,137 @@ export type ChatMessageAttachmentType = typeof ChatMessageAttachmentType[keyof t
|
|
|
2147
978
|
|
|
2148
979
|
/**
|
|
2149
980
|
* 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.
|
|
2150
|
-
* @export
|
|
2151
|
-
* @interface ChatMessageRequest
|
|
2152
981
|
*/
|
|
2153
982
|
export interface ChatMessageRequest {
|
|
2154
|
-
/**
|
|
2155
|
-
*
|
|
2156
|
-
* @type {string}
|
|
2157
|
-
* @memberof ChatMessageRequest
|
|
2158
|
-
*/
|
|
2159
983
|
'app_id'?: string | null;
|
|
2160
984
|
/**
|
|
2161
985
|
* Content of the message
|
|
2162
|
-
* @type {string}
|
|
2163
|
-
* @memberof ChatMessageRequest
|
|
2164
986
|
*/
|
|
2165
987
|
'message': string;
|
|
2166
|
-
/**
|
|
2167
|
-
*
|
|
2168
|
-
* @type {boolean}
|
|
2169
|
-
* @memberof ChatMessageRequest
|
|
2170
|
-
*/
|
|
2171
988
|
'stream'?: boolean | null;
|
|
2172
|
-
/**
|
|
2173
|
-
*
|
|
2174
|
-
* @type {boolean}
|
|
2175
|
-
* @memberof ChatMessageRequest
|
|
2176
|
-
*/
|
|
2177
989
|
'search_mode'?: boolean | null;
|
|
2178
|
-
/**
|
|
2179
|
-
*
|
|
2180
|
-
* @type {boolean}
|
|
2181
|
-
* @memberof ChatMessageRequest
|
|
2182
|
-
*/
|
|
2183
990
|
'super_mode'?: boolean | null;
|
|
2184
|
-
/**
|
|
2185
|
-
*
|
|
2186
|
-
* @type {Array<ChatMessageAttachment>}
|
|
2187
|
-
* @memberof ChatMessageRequest
|
|
2188
|
-
*/
|
|
2189
991
|
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
2190
992
|
}
|
|
2191
993
|
/**
|
|
2192
994
|
* TypedDict for skill call details.
|
|
2193
|
-
* @export
|
|
2194
|
-
* @interface ChatMessageSkillCall
|
|
2195
995
|
*/
|
|
2196
996
|
export interface ChatMessageSkillCall {
|
|
2197
|
-
/**
|
|
2198
|
-
*
|
|
2199
|
-
* @type {string}
|
|
2200
|
-
* @memberof ChatMessageSkillCall
|
|
2201
|
-
*/
|
|
2202
997
|
'id'?: string;
|
|
2203
|
-
/**
|
|
2204
|
-
*
|
|
2205
|
-
* @type {string}
|
|
2206
|
-
* @memberof ChatMessageSkillCall
|
|
2207
|
-
*/
|
|
2208
998
|
'name': string;
|
|
2209
|
-
/**
|
|
2210
|
-
*
|
|
2211
|
-
* @type {object}
|
|
2212
|
-
* @memberof ChatMessageSkillCall
|
|
2213
|
-
*/
|
|
2214
999
|
'parameters': object;
|
|
2215
|
-
/**
|
|
2216
|
-
*
|
|
2217
|
-
* @type {boolean}
|
|
2218
|
-
* @memberof ChatMessageSkillCall
|
|
2219
|
-
*/
|
|
2220
1000
|
'success': boolean;
|
|
2221
|
-
/**
|
|
2222
|
-
*
|
|
2223
|
-
* @type {string}
|
|
2224
|
-
* @memberof ChatMessageSkillCall
|
|
2225
|
-
*/
|
|
2226
1001
|
'response'?: string;
|
|
2227
|
-
/**
|
|
2228
|
-
*
|
|
2229
|
-
* @type {string}
|
|
2230
|
-
* @memberof ChatMessageSkillCall
|
|
2231
|
-
*/
|
|
2232
1002
|
'error_message'?: string;
|
|
2233
|
-
/**
|
|
2234
|
-
*
|
|
2235
|
-
* @type {string}
|
|
2236
|
-
* @memberof ChatMessageSkillCall
|
|
2237
|
-
*/
|
|
2238
1003
|
'credit_event_id'?: string;
|
|
2239
|
-
/**
|
|
2240
|
-
*
|
|
2241
|
-
* @type {string}
|
|
2242
|
-
* @memberof ChatMessageSkillCall
|
|
2243
|
-
*/
|
|
2244
1004
|
'credit_cost'?: string;
|
|
2245
1005
|
}
|
|
2246
1006
|
/**
|
|
2247
1007
|
* Response model for chat messages with pagination.
|
|
2248
|
-
* @export
|
|
2249
|
-
* @interface ChatMessagesResponse
|
|
2250
1008
|
*/
|
|
2251
1009
|
export interface ChatMessagesResponse {
|
|
2252
|
-
/**
|
|
2253
|
-
*
|
|
2254
|
-
* @type {Array<ChatMessage>}
|
|
2255
|
-
* @memberof ChatMessagesResponse
|
|
2256
|
-
*/
|
|
2257
1010
|
'data': Array<ChatMessage>;
|
|
2258
|
-
/**
|
|
2259
|
-
*
|
|
2260
|
-
* @type {boolean}
|
|
2261
|
-
* @memberof ChatMessagesResponse
|
|
2262
|
-
*/
|
|
2263
1011
|
'has_more'?: boolean;
|
|
2264
|
-
/**
|
|
2265
|
-
*
|
|
2266
|
-
* @type {string}
|
|
2267
|
-
* @memberof ChatMessagesResponse
|
|
2268
|
-
*/
|
|
2269
1012
|
'next_cursor'?: string | null;
|
|
2270
1013
|
}
|
|
2271
1014
|
/**
|
|
2272
1015
|
* Request model for updating a chat thread.
|
|
2273
|
-
* @export
|
|
2274
|
-
* @interface ChatUpdateRequest
|
|
2275
1016
|
*/
|
|
2276
1017
|
export interface ChatUpdateRequest {
|
|
2277
1018
|
/**
|
|
2278
1019
|
* Updated summary for the chat thread
|
|
2279
|
-
* @type {string}
|
|
2280
|
-
* @memberof ChatUpdateRequest
|
|
2281
1020
|
*/
|
|
2282
1021
|
'summary': string;
|
|
2283
1022
|
}
|
|
2284
1023
|
/**
|
|
2285
1024
|
* Credit account model with all fields.
|
|
2286
|
-
* @export
|
|
2287
|
-
* @interface CreditAccount
|
|
2288
1025
|
*/
|
|
2289
1026
|
export interface CreditAccount {
|
|
2290
1027
|
/**
|
|
2291
1028
|
* Unique identifier for the credit account
|
|
2292
|
-
* @type {string}
|
|
2293
|
-
* @memberof CreditAccount
|
|
2294
1029
|
*/
|
|
2295
1030
|
'id'?: string;
|
|
2296
1031
|
/**
|
|
2297
1032
|
* Type of the account owner
|
|
2298
|
-
* @type {OwnerType}
|
|
2299
|
-
* @memberof CreditAccount
|
|
2300
1033
|
*/
|
|
2301
1034
|
'owner_type': OwnerType;
|
|
2302
1035
|
/**
|
|
2303
1036
|
* ID of the account owner
|
|
2304
|
-
* @type {string}
|
|
2305
|
-
* @memberof CreditAccount
|
|
2306
1037
|
*/
|
|
2307
1038
|
'owner_id': string;
|
|
2308
1039
|
/**
|
|
2309
1040
|
* Daily credit quota that resets each day
|
|
2310
|
-
* @type {string}
|
|
2311
|
-
* @memberof CreditAccount
|
|
2312
1041
|
*/
|
|
2313
1042
|
'free_quota'?: string;
|
|
2314
1043
|
/**
|
|
2315
1044
|
* Amount to refill hourly, not exceeding free_quota
|
|
2316
|
-
* @type {string}
|
|
2317
|
-
* @memberof CreditAccount
|
|
2318
1045
|
*/
|
|
2319
1046
|
'refill_amount'?: string;
|
|
2320
1047
|
/**
|
|
2321
1048
|
* Current available daily credits
|
|
2322
|
-
* @type {string}
|
|
2323
|
-
* @memberof CreditAccount
|
|
2324
1049
|
*/
|
|
2325
1050
|
'free_credits'?: string;
|
|
2326
1051
|
/**
|
|
2327
1052
|
* Reward credits earned through rewards
|
|
2328
|
-
* @type {string}
|
|
2329
|
-
* @memberof CreditAccount
|
|
2330
1053
|
*/
|
|
2331
1054
|
'reward_credits'?: string;
|
|
2332
1055
|
/**
|
|
2333
1056
|
* Credits added through top-ups
|
|
2334
|
-
* @type {string}
|
|
2335
|
-
* @memberof CreditAccount
|
|
2336
1057
|
*/
|
|
2337
1058
|
'credits'?: string;
|
|
2338
|
-
/**
|
|
2339
|
-
*
|
|
2340
|
-
* @type {string}
|
|
2341
|
-
* @memberof CreditAccount
|
|
2342
|
-
*/
|
|
2343
1059
|
'income_at'?: string | null;
|
|
2344
|
-
/**
|
|
2345
|
-
*
|
|
2346
|
-
* @type {string}
|
|
2347
|
-
* @memberof CreditAccount
|
|
2348
|
-
*/
|
|
2349
1060
|
'expense_at'?: string | null;
|
|
2350
|
-
/**
|
|
2351
|
-
*
|
|
2352
|
-
* @type {string}
|
|
2353
|
-
* @memberof CreditAccount
|
|
2354
|
-
*/
|
|
2355
1061
|
'last_event_id'?: string | null;
|
|
2356
1062
|
/**
|
|
2357
1063
|
* Total income from all credit transactions
|
|
2358
|
-
* @type {string}
|
|
2359
|
-
* @memberof CreditAccount
|
|
2360
1064
|
*/
|
|
2361
1065
|
'total_income'?: string;
|
|
2362
1066
|
/**
|
|
2363
1067
|
* Total income from free credit transactions
|
|
2364
|
-
* @type {string}
|
|
2365
|
-
* @memberof CreditAccount
|
|
2366
1068
|
*/
|
|
2367
1069
|
'total_free_income'?: string;
|
|
2368
1070
|
/**
|
|
2369
1071
|
* Total income from reward credit transactions
|
|
2370
|
-
* @type {string}
|
|
2371
|
-
* @memberof CreditAccount
|
|
2372
1072
|
*/
|
|
2373
1073
|
'total_reward_income'?: string;
|
|
2374
1074
|
/**
|
|
2375
1075
|
* Total income from permanent credit transactions
|
|
2376
|
-
* @type {string}
|
|
2377
|
-
* @memberof CreditAccount
|
|
2378
1076
|
*/
|
|
2379
1077
|
'total_permanent_income'?: string;
|
|
2380
1078
|
/**
|
|
2381
1079
|
* Total expense from all credit transactions
|
|
2382
|
-
* @type {string}
|
|
2383
|
-
* @memberof CreditAccount
|
|
2384
1080
|
*/
|
|
2385
1081
|
'total_expense'?: string;
|
|
2386
1082
|
/**
|
|
2387
1083
|
* Total expense from free credit transactions
|
|
2388
|
-
* @type {string}
|
|
2389
|
-
* @memberof CreditAccount
|
|
2390
1084
|
*/
|
|
2391
1085
|
'total_free_expense'?: string;
|
|
2392
1086
|
/**
|
|
2393
1087
|
* Total expense from reward credit transactions
|
|
2394
|
-
* @type {string}
|
|
2395
|
-
* @memberof CreditAccount
|
|
2396
1088
|
*/
|
|
2397
1089
|
'total_reward_expense'?: string;
|
|
2398
1090
|
/**
|
|
2399
1091
|
* Total expense from permanent credit transactions
|
|
2400
|
-
* @type {string}
|
|
2401
|
-
* @memberof CreditAccount
|
|
2402
1092
|
*/
|
|
2403
1093
|
'total_permanent_expense'?: string;
|
|
2404
1094
|
/**
|
|
2405
1095
|
* Timestamp when this account was created
|
|
2406
|
-
* @type {string}
|
|
2407
|
-
* @memberof CreditAccount
|
|
2408
1096
|
*/
|
|
2409
1097
|
'created_at': string;
|
|
2410
1098
|
/**
|
|
2411
1099
|
* Timestamp when this account was last updated
|
|
2412
|
-
* @type {string}
|
|
2413
|
-
* @memberof CreditAccount
|
|
2414
1100
|
*/
|
|
2415
1101
|
'updated_at': string;
|
|
2416
1102
|
}
|
|
2417
1103
|
|
|
2418
1104
|
|
|
1105
|
+
/**
|
|
1106
|
+
* Credits applied after conversion
|
|
1107
|
+
*/
|
|
1108
|
+
export interface CreditAmount {
|
|
1109
|
+
}
|
|
2419
1110
|
/**
|
|
2420
1111
|
* Credit or debit transaction.
|
|
2421
|
-
* @export
|
|
2422
|
-
* @enum {string}
|
|
2423
1112
|
*/
|
|
2424
1113
|
|
|
2425
1114
|
export const CreditDebit = {
|
|
@@ -2432,703 +1121,444 @@ export type CreditDebit = typeof CreditDebit[keyof typeof CreditDebit];
|
|
|
2432
1121
|
|
|
2433
1122
|
/**
|
|
2434
1123
|
* Credit event model with all fields.
|
|
2435
|
-
* @export
|
|
2436
|
-
* @interface CreditEvent
|
|
2437
1124
|
*/
|
|
2438
|
-
export interface
|
|
1125
|
+
export interface CreditEventInput {
|
|
2439
1126
|
/**
|
|
2440
1127
|
* Unique identifier for the credit event
|
|
2441
|
-
* @type {string}
|
|
2442
|
-
* @memberof CreditEvent
|
|
2443
1128
|
*/
|
|
2444
1129
|
'id'?: string;
|
|
2445
1130
|
/**
|
|
2446
1131
|
* Account ID from which credits flow
|
|
2447
|
-
* @type {string}
|
|
2448
|
-
* @memberof CreditEvent
|
|
2449
1132
|
*/
|
|
2450
1133
|
'account_id'?: string;
|
|
2451
1134
|
/**
|
|
2452
1135
|
* Type of the event
|
|
2453
|
-
* @type {EventType}
|
|
2454
|
-
* @memberof CreditEvent
|
|
2455
1136
|
*/
|
|
2456
1137
|
'event_type': EventType;
|
|
2457
|
-
/**
|
|
2458
|
-
*
|
|
2459
|
-
* @type {string}
|
|
2460
|
-
* @memberof CreditEvent
|
|
2461
|
-
*/
|
|
2462
1138
|
'user_id'?: string | null;
|
|
2463
1139
|
/**
|
|
2464
1140
|
* Type of upstream transaction
|
|
2465
|
-
* @type {UpstreamType}
|
|
2466
|
-
* @memberof CreditEvent
|
|
2467
1141
|
*/
|
|
2468
1142
|
'upstream_type': UpstreamType;
|
|
2469
1143
|
/**
|
|
2470
1144
|
* Upstream transaction ID if any
|
|
2471
|
-
* @type {string}
|
|
2472
|
-
* @memberof CreditEvent
|
|
2473
1145
|
*/
|
|
2474
1146
|
'upstream_tx_id': string;
|
|
2475
|
-
/**
|
|
2476
|
-
*
|
|
2477
|
-
* @type {string}
|
|
2478
|
-
* @memberof CreditEvent
|
|
2479
|
-
*/
|
|
2480
1147
|
'agent_id'?: string | null;
|
|
2481
|
-
/**
|
|
2482
|
-
*
|
|
2483
|
-
* @type {string}
|
|
2484
|
-
* @memberof CreditEvent
|
|
2485
|
-
*/
|
|
2486
1148
|
'agent_wallet_address'?: string | null;
|
|
2487
|
-
/**
|
|
2488
|
-
*
|
|
2489
|
-
* @type {string}
|
|
2490
|
-
* @memberof CreditEvent
|
|
2491
|
-
*/
|
|
2492
1149
|
'start_message_id'?: string | null;
|
|
2493
|
-
/**
|
|
2494
|
-
*
|
|
2495
|
-
* @type {string}
|
|
2496
|
-
* @memberof CreditEvent
|
|
2497
|
-
*/
|
|
2498
1150
|
'message_id'?: string | null;
|
|
2499
|
-
/**
|
|
2500
|
-
*
|
|
2501
|
-
* @type {string}
|
|
2502
|
-
* @memberof CreditEvent
|
|
2503
|
-
*/
|
|
2504
1151
|
'model'?: string | null;
|
|
2505
|
-
/**
|
|
2506
|
-
*
|
|
2507
|
-
* @type {string}
|
|
2508
|
-
* @memberof CreditEvent
|
|
2509
|
-
*/
|
|
2510
1152
|
'skill_call_id'?: string | null;
|
|
2511
|
-
/**
|
|
2512
|
-
*
|
|
2513
|
-
* @type {string}
|
|
2514
|
-
* @memberof CreditEvent
|
|
2515
|
-
*/
|
|
2516
1153
|
'skill_name'?: string | null;
|
|
2517
1154
|
/**
|
|
2518
1155
|
* Direction of the credit flow
|
|
2519
|
-
* @type {Direction}
|
|
2520
|
-
* @memberof CreditEvent
|
|
2521
1156
|
*/
|
|
2522
1157
|
'direction': Direction;
|
|
2523
|
-
|
|
2524
|
-
* Total amount (after discount) of credits involved
|
|
2525
|
-
* @type {string}
|
|
2526
|
-
* @memberof CreditEvent
|
|
2527
|
-
*/
|
|
2528
|
-
'total_amount'?: string;
|
|
1158
|
+
'total_amount'?: TotalAmount;
|
|
2529
1159
|
/**
|
|
2530
1160
|
* Type of credits involved
|
|
2531
|
-
* @type {CreditType}
|
|
2532
|
-
* @memberof CreditEvent
|
|
2533
1161
|
*/
|
|
2534
1162
|
'credit_type': CreditType;
|
|
2535
|
-
/**
|
|
2536
|
-
*
|
|
2537
|
-
* @type {Array<CreditType>}
|
|
2538
|
-
* @memberof CreditEvent
|
|
2539
|
-
*/
|
|
2540
1163
|
'credit_types'?: Array<CreditType> | null;
|
|
1164
|
+
'balance_after'?: BalanceAfter | null;
|
|
1165
|
+
'base_amount'?: BaseAmount;
|
|
1166
|
+
'base_discount_amount'?: BaseDiscountAmount | null;
|
|
1167
|
+
'base_original_amount'?: BaseOriginalAmount | null;
|
|
1168
|
+
'base_llm_amount'?: BaseLlmAmount | null;
|
|
1169
|
+
'base_skill_amount'?: BaseSkillAmount | null;
|
|
1170
|
+
'base_free_amount'?: BaseFreeAmount | null;
|
|
1171
|
+
'base_reward_amount'?: BaseRewardAmount | null;
|
|
1172
|
+
'base_permanent_amount'?: BasePermanentAmount | null;
|
|
1173
|
+
'fee_platform_amount'?: FeePlatformAmount | null;
|
|
1174
|
+
'fee_platform_free_amount'?: FeePlatformFreeAmount | null;
|
|
1175
|
+
'fee_platform_reward_amount'?: FeePlatformRewardAmount | null;
|
|
1176
|
+
'fee_platform_permanent_amount'?: FeePlatformPermanentAmount | null;
|
|
1177
|
+
'fee_dev_account'?: string | null;
|
|
1178
|
+
'fee_dev_amount'?: FeeDevAmount | null;
|
|
1179
|
+
'fee_dev_free_amount'?: FeeDevFreeAmount | null;
|
|
1180
|
+
'fee_dev_reward_amount'?: FeeDevRewardAmount | null;
|
|
1181
|
+
'fee_dev_permanent_amount'?: FeeDevPermanentAmount | null;
|
|
1182
|
+
'fee_agent_account'?: string | null;
|
|
1183
|
+
'fee_agent_amount'?: FeeAgentAmount | null;
|
|
1184
|
+
'fee_agent_free_amount'?: FeeAgentFreeAmount | null;
|
|
1185
|
+
'fee_agent_reward_amount'?: FeeAgentRewardAmount | null;
|
|
1186
|
+
'fee_agent_permanent_amount'?: FeeAgentPermanentAmount | null;
|
|
1187
|
+
'free_amount'?: FreeAmount | null;
|
|
1188
|
+
'reward_amount'?: RewardAmount | null;
|
|
1189
|
+
'permanent_amount'?: PermanentAmount | null;
|
|
1190
|
+
'note'?: string | null;
|
|
2541
1191
|
/**
|
|
2542
|
-
*
|
|
2543
|
-
* @type {string}
|
|
2544
|
-
* @memberof CreditEvent
|
|
1192
|
+
* Timestamp when this event was created
|
|
2545
1193
|
*/
|
|
2546
|
-
'
|
|
1194
|
+
'created_at': string;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Credit event model with all fields.
|
|
1200
|
+
*/
|
|
1201
|
+
export interface CreditEventOutput {
|
|
2547
1202
|
/**
|
|
2548
|
-
*
|
|
2549
|
-
* @type {string}
|
|
2550
|
-
* @memberof CreditEvent
|
|
1203
|
+
* Unique identifier for the credit event
|
|
2551
1204
|
*/
|
|
2552
|
-
'
|
|
1205
|
+
'id'?: string;
|
|
2553
1206
|
/**
|
|
2554
|
-
*
|
|
2555
|
-
* @type {string}
|
|
2556
|
-
* @memberof CreditEvent
|
|
1207
|
+
* Account ID from which credits flow
|
|
2557
1208
|
*/
|
|
2558
|
-
'
|
|
1209
|
+
'account_id'?: string;
|
|
2559
1210
|
/**
|
|
2560
|
-
*
|
|
2561
|
-
* @type {string}
|
|
2562
|
-
* @memberof CreditEvent
|
|
1211
|
+
* Type of the event
|
|
2563
1212
|
*/
|
|
2564
|
-
'
|
|
1213
|
+
'event_type': EventType;
|
|
1214
|
+
'user_id'?: string | null;
|
|
2565
1215
|
/**
|
|
2566
|
-
*
|
|
2567
|
-
* @type {string}
|
|
2568
|
-
* @memberof CreditEvent
|
|
1216
|
+
* Type of upstream transaction
|
|
2569
1217
|
*/
|
|
2570
|
-
'
|
|
1218
|
+
'upstream_type': UpstreamType;
|
|
2571
1219
|
/**
|
|
2572
|
-
*
|
|
2573
|
-
* @type {string}
|
|
2574
|
-
* @memberof CreditEvent
|
|
1220
|
+
* Upstream transaction ID if any
|
|
2575
1221
|
*/
|
|
2576
|
-
'
|
|
1222
|
+
'upstream_tx_id': string;
|
|
1223
|
+
'agent_id'?: string | null;
|
|
1224
|
+
'agent_wallet_address'?: string | null;
|
|
1225
|
+
'start_message_id'?: string | null;
|
|
1226
|
+
'message_id'?: string | null;
|
|
1227
|
+
'model'?: string | null;
|
|
1228
|
+
'skill_call_id'?: string | null;
|
|
1229
|
+
'skill_name'?: string | null;
|
|
2577
1230
|
/**
|
|
2578
|
-
*
|
|
2579
|
-
* @type {string}
|
|
2580
|
-
* @memberof CreditEvent
|
|
1231
|
+
* Direction of the credit flow
|
|
2581
1232
|
*/
|
|
2582
|
-
'
|
|
1233
|
+
'direction': Direction;
|
|
2583
1234
|
/**
|
|
2584
|
-
*
|
|
2585
|
-
* @type {string}
|
|
2586
|
-
* @memberof CreditEvent
|
|
1235
|
+
* Total amount (after discount) of credits involved
|
|
2587
1236
|
*/
|
|
2588
|
-
'
|
|
1237
|
+
'total_amount'?: string;
|
|
2589
1238
|
/**
|
|
2590
|
-
*
|
|
2591
|
-
* @type {string}
|
|
2592
|
-
* @memberof CreditEvent
|
|
1239
|
+
* Type of credits involved
|
|
2593
1240
|
*/
|
|
2594
|
-
'
|
|
1241
|
+
'credit_type': CreditType;
|
|
1242
|
+
'credit_types'?: Array<CreditType> | null;
|
|
1243
|
+
'balance_after'?: string | null;
|
|
2595
1244
|
/**
|
|
2596
|
-
*
|
|
2597
|
-
* @type {string}
|
|
2598
|
-
* @memberof CreditEvent
|
|
1245
|
+
* Base amount of credits involved
|
|
2599
1246
|
*/
|
|
1247
|
+
'base_amount'?: string;
|
|
1248
|
+
'base_discount_amount'?: string | null;
|
|
1249
|
+
'base_original_amount'?: string | null;
|
|
1250
|
+
'base_llm_amount'?: string | null;
|
|
1251
|
+
'base_skill_amount'?: string | null;
|
|
1252
|
+
'base_free_amount'?: string | null;
|
|
1253
|
+
'base_reward_amount'?: string | null;
|
|
1254
|
+
'base_permanent_amount'?: string | null;
|
|
2600
1255
|
'fee_platform_amount'?: string | null;
|
|
2601
|
-
/**
|
|
2602
|
-
*
|
|
2603
|
-
* @type {string}
|
|
2604
|
-
* @memberof CreditEvent
|
|
2605
|
-
*/
|
|
2606
1256
|
'fee_platform_free_amount'?: string | null;
|
|
2607
|
-
/**
|
|
2608
|
-
*
|
|
2609
|
-
* @type {string}
|
|
2610
|
-
* @memberof CreditEvent
|
|
2611
|
-
*/
|
|
2612
1257
|
'fee_platform_reward_amount'?: string | null;
|
|
2613
|
-
/**
|
|
2614
|
-
*
|
|
2615
|
-
* @type {string}
|
|
2616
|
-
* @memberof CreditEvent
|
|
2617
|
-
*/
|
|
2618
1258
|
'fee_platform_permanent_amount'?: string | null;
|
|
2619
|
-
/**
|
|
2620
|
-
*
|
|
2621
|
-
* @type {string}
|
|
2622
|
-
* @memberof CreditEvent
|
|
2623
|
-
*/
|
|
2624
1259
|
'fee_dev_account'?: string | null;
|
|
2625
|
-
/**
|
|
2626
|
-
*
|
|
2627
|
-
* @type {string}
|
|
2628
|
-
* @memberof CreditEvent
|
|
2629
|
-
*/
|
|
2630
1260
|
'fee_dev_amount'?: string | null;
|
|
2631
|
-
/**
|
|
2632
|
-
*
|
|
2633
|
-
* @type {string}
|
|
2634
|
-
* @memberof CreditEvent
|
|
2635
|
-
*/
|
|
2636
1261
|
'fee_dev_free_amount'?: string | null;
|
|
2637
|
-
/**
|
|
2638
|
-
*
|
|
2639
|
-
* @type {string}
|
|
2640
|
-
* @memberof CreditEvent
|
|
2641
|
-
*/
|
|
2642
1262
|
'fee_dev_reward_amount'?: string | null;
|
|
2643
|
-
/**
|
|
2644
|
-
*
|
|
2645
|
-
* @type {string}
|
|
2646
|
-
* @memberof CreditEvent
|
|
2647
|
-
*/
|
|
2648
1263
|
'fee_dev_permanent_amount'?: string | null;
|
|
2649
|
-
/**
|
|
2650
|
-
*
|
|
2651
|
-
* @type {string}
|
|
2652
|
-
* @memberof CreditEvent
|
|
2653
|
-
*/
|
|
2654
1264
|
'fee_agent_account'?: string | null;
|
|
1265
|
+
'fee_agent_amount'?: string | null;
|
|
1266
|
+
'fee_agent_free_amount'?: string | null;
|
|
1267
|
+
'fee_agent_reward_amount'?: string | null;
|
|
1268
|
+
'fee_agent_permanent_amount'?: string | null;
|
|
1269
|
+
'free_amount'?: string | null;
|
|
1270
|
+
'reward_amount'?: string | null;
|
|
1271
|
+
'permanent_amount'?: string | null;
|
|
1272
|
+
'note'?: string | null;
|
|
2655
1273
|
/**
|
|
2656
|
-
*
|
|
2657
|
-
* @type {string}
|
|
2658
|
-
* @memberof CreditEvent
|
|
1274
|
+
* Timestamp when this event was created
|
|
2659
1275
|
*/
|
|
2660
|
-
'
|
|
1276
|
+
'created_at': string;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* Credit event response model with agent name. Extends CreditEvent to include the agent name for better user experience.
|
|
1282
|
+
*/
|
|
1283
|
+
export interface CreditEventWithAgentInput {
|
|
2661
1284
|
/**
|
|
2662
|
-
*
|
|
2663
|
-
* @type {string}
|
|
2664
|
-
* @memberof CreditEvent
|
|
1285
|
+
* Unique identifier for the credit event
|
|
2665
1286
|
*/
|
|
2666
|
-
'
|
|
1287
|
+
'id'?: string;
|
|
2667
1288
|
/**
|
|
2668
|
-
*
|
|
2669
|
-
* @type {string}
|
|
2670
|
-
* @memberof CreditEvent
|
|
1289
|
+
* Account ID from which credits flow
|
|
2671
1290
|
*/
|
|
2672
|
-
'
|
|
1291
|
+
'account_id'?: string;
|
|
2673
1292
|
/**
|
|
2674
|
-
*
|
|
2675
|
-
* @type {string}
|
|
2676
|
-
* @memberof CreditEvent
|
|
1293
|
+
* Type of the event
|
|
2677
1294
|
*/
|
|
2678
|
-
'
|
|
1295
|
+
'event_type': EventType;
|
|
1296
|
+
'user_id'?: string | null;
|
|
2679
1297
|
/**
|
|
2680
|
-
*
|
|
2681
|
-
* @type {string}
|
|
2682
|
-
* @memberof CreditEvent
|
|
1298
|
+
* Type of upstream transaction
|
|
2683
1299
|
*/
|
|
2684
|
-
'
|
|
1300
|
+
'upstream_type': UpstreamType;
|
|
2685
1301
|
/**
|
|
2686
|
-
*
|
|
2687
|
-
* @type {string}
|
|
2688
|
-
* @memberof CreditEvent
|
|
1302
|
+
* Upstream transaction ID if any
|
|
2689
1303
|
*/
|
|
2690
|
-
'
|
|
1304
|
+
'upstream_tx_id': string;
|
|
1305
|
+
'agent_id'?: string | null;
|
|
1306
|
+
'agent_wallet_address'?: string | null;
|
|
1307
|
+
'start_message_id'?: string | null;
|
|
1308
|
+
'message_id'?: string | null;
|
|
1309
|
+
'model'?: string | null;
|
|
1310
|
+
'skill_call_id'?: string | null;
|
|
1311
|
+
'skill_name'?: string | null;
|
|
2691
1312
|
/**
|
|
2692
|
-
*
|
|
2693
|
-
* @type {string}
|
|
2694
|
-
* @memberof CreditEvent
|
|
1313
|
+
* Direction of the credit flow
|
|
2695
1314
|
*/
|
|
2696
|
-
'
|
|
1315
|
+
'direction': Direction;
|
|
1316
|
+
'total_amount'?: TotalAmount;
|
|
2697
1317
|
/**
|
|
2698
|
-
*
|
|
2699
|
-
* @type {string}
|
|
2700
|
-
* @memberof CreditEvent
|
|
1318
|
+
* Type of credits involved
|
|
2701
1319
|
*/
|
|
1320
|
+
'credit_type': CreditType;
|
|
1321
|
+
'credit_types'?: Array<CreditType> | null;
|
|
1322
|
+
'balance_after'?: BalanceAfter | null;
|
|
1323
|
+
'base_amount'?: BaseAmount;
|
|
1324
|
+
'base_discount_amount'?: BaseDiscountAmount | null;
|
|
1325
|
+
'base_original_amount'?: BaseOriginalAmount | null;
|
|
1326
|
+
'base_llm_amount'?: BaseLlmAmount | null;
|
|
1327
|
+
'base_skill_amount'?: BaseSkillAmount | null;
|
|
1328
|
+
'base_free_amount'?: BaseFreeAmount | null;
|
|
1329
|
+
'base_reward_amount'?: BaseRewardAmount | null;
|
|
1330
|
+
'base_permanent_amount'?: BasePermanentAmount | null;
|
|
1331
|
+
'fee_platform_amount'?: FeePlatformAmount | null;
|
|
1332
|
+
'fee_platform_free_amount'?: FeePlatformFreeAmount | null;
|
|
1333
|
+
'fee_platform_reward_amount'?: FeePlatformRewardAmount | null;
|
|
1334
|
+
'fee_platform_permanent_amount'?: FeePlatformPermanentAmount | null;
|
|
1335
|
+
'fee_dev_account'?: string | null;
|
|
1336
|
+
'fee_dev_amount'?: FeeDevAmount | null;
|
|
1337
|
+
'fee_dev_free_amount'?: FeeDevFreeAmount | null;
|
|
1338
|
+
'fee_dev_reward_amount'?: FeeDevRewardAmount | null;
|
|
1339
|
+
'fee_dev_permanent_amount'?: FeeDevPermanentAmount | null;
|
|
1340
|
+
'fee_agent_account'?: string | null;
|
|
1341
|
+
'fee_agent_amount'?: FeeAgentAmount | null;
|
|
1342
|
+
'fee_agent_free_amount'?: FeeAgentFreeAmount | null;
|
|
1343
|
+
'fee_agent_reward_amount'?: FeeAgentRewardAmount | null;
|
|
1344
|
+
'fee_agent_permanent_amount'?: FeeAgentPermanentAmount | null;
|
|
1345
|
+
'free_amount'?: FreeAmount | null;
|
|
1346
|
+
'reward_amount'?: RewardAmount | null;
|
|
1347
|
+
'permanent_amount'?: PermanentAmount | null;
|
|
2702
1348
|
'note'?: string | null;
|
|
2703
1349
|
/**
|
|
2704
1350
|
* Timestamp when this event was created
|
|
2705
|
-
* @type {string}
|
|
2706
|
-
* @memberof CreditEvent
|
|
2707
1351
|
*/
|
|
2708
1352
|
'created_at': string;
|
|
1353
|
+
'agent_name'?: string | null;
|
|
2709
1354
|
}
|
|
2710
1355
|
|
|
2711
1356
|
|
|
2712
1357
|
/**
|
|
2713
1358
|
* Credit event response model with agent name. Extends CreditEvent to include the agent name for better user experience.
|
|
2714
|
-
* @export
|
|
2715
|
-
* @interface CreditEventWithAgent
|
|
2716
1359
|
*/
|
|
2717
|
-
export interface
|
|
1360
|
+
export interface CreditEventWithAgentOutput {
|
|
2718
1361
|
/**
|
|
2719
1362
|
* Unique identifier for the credit event
|
|
2720
|
-
* @type {string}
|
|
2721
|
-
* @memberof CreditEventWithAgent
|
|
2722
1363
|
*/
|
|
2723
1364
|
'id'?: string;
|
|
2724
1365
|
/**
|
|
2725
1366
|
* Account ID from which credits flow
|
|
2726
|
-
* @type {string}
|
|
2727
|
-
* @memberof CreditEventWithAgent
|
|
2728
1367
|
*/
|
|
2729
1368
|
'account_id'?: string;
|
|
2730
1369
|
/**
|
|
2731
1370
|
* Type of the event
|
|
2732
|
-
* @type {EventType}
|
|
2733
|
-
* @memberof CreditEventWithAgent
|
|
2734
1371
|
*/
|
|
2735
1372
|
'event_type': EventType;
|
|
2736
|
-
/**
|
|
2737
|
-
*
|
|
2738
|
-
* @type {string}
|
|
2739
|
-
* @memberof CreditEventWithAgent
|
|
2740
|
-
*/
|
|
2741
1373
|
'user_id'?: string | null;
|
|
2742
1374
|
/**
|
|
2743
1375
|
* Type of upstream transaction
|
|
2744
|
-
* @type {UpstreamType}
|
|
2745
|
-
* @memberof CreditEventWithAgent
|
|
2746
1376
|
*/
|
|
2747
1377
|
'upstream_type': UpstreamType;
|
|
2748
1378
|
/**
|
|
2749
1379
|
* Upstream transaction ID if any
|
|
2750
|
-
* @type {string}
|
|
2751
|
-
* @memberof CreditEventWithAgent
|
|
2752
1380
|
*/
|
|
2753
1381
|
'upstream_tx_id': string;
|
|
2754
|
-
/**
|
|
2755
|
-
*
|
|
2756
|
-
* @type {string}
|
|
2757
|
-
* @memberof CreditEventWithAgent
|
|
2758
|
-
*/
|
|
2759
1382
|
'agent_id'?: string | null;
|
|
2760
|
-
/**
|
|
2761
|
-
*
|
|
2762
|
-
* @type {string}
|
|
2763
|
-
* @memberof CreditEventWithAgent
|
|
2764
|
-
*/
|
|
2765
1383
|
'agent_wallet_address'?: string | null;
|
|
2766
|
-
/**
|
|
2767
|
-
*
|
|
2768
|
-
* @type {string}
|
|
2769
|
-
* @memberof CreditEventWithAgent
|
|
2770
|
-
*/
|
|
2771
1384
|
'start_message_id'?: string | null;
|
|
2772
|
-
/**
|
|
2773
|
-
*
|
|
2774
|
-
* @type {string}
|
|
2775
|
-
* @memberof CreditEventWithAgent
|
|
2776
|
-
*/
|
|
2777
1385
|
'message_id'?: string | null;
|
|
2778
|
-
/**
|
|
2779
|
-
*
|
|
2780
|
-
* @type {string}
|
|
2781
|
-
* @memberof CreditEventWithAgent
|
|
2782
|
-
*/
|
|
2783
1386
|
'model'?: string | null;
|
|
2784
|
-
/**
|
|
2785
|
-
*
|
|
2786
|
-
* @type {string}
|
|
2787
|
-
* @memberof CreditEventWithAgent
|
|
2788
|
-
*/
|
|
2789
1387
|
'skill_call_id'?: string | null;
|
|
2790
|
-
/**
|
|
2791
|
-
*
|
|
2792
|
-
* @type {string}
|
|
2793
|
-
* @memberof CreditEventWithAgent
|
|
2794
|
-
*/
|
|
2795
1388
|
'skill_name'?: string | null;
|
|
2796
1389
|
/**
|
|
2797
1390
|
* Direction of the credit flow
|
|
2798
|
-
* @type {Direction}
|
|
2799
|
-
* @memberof CreditEventWithAgent
|
|
2800
1391
|
*/
|
|
2801
1392
|
'direction': Direction;
|
|
2802
1393
|
/**
|
|
2803
1394
|
* Total amount (after discount) of credits involved
|
|
2804
|
-
* @type {string}
|
|
2805
|
-
* @memberof CreditEventWithAgent
|
|
2806
1395
|
*/
|
|
2807
1396
|
'total_amount'?: string;
|
|
2808
1397
|
/**
|
|
2809
1398
|
* Type of credits involved
|
|
2810
|
-
* @type {CreditType}
|
|
2811
|
-
* @memberof CreditEventWithAgent
|
|
2812
1399
|
*/
|
|
2813
1400
|
'credit_type': CreditType;
|
|
2814
|
-
/**
|
|
2815
|
-
*
|
|
2816
|
-
* @type {Array<CreditType>}
|
|
2817
|
-
* @memberof CreditEventWithAgent
|
|
2818
|
-
*/
|
|
2819
1401
|
'credit_types'?: Array<CreditType> | null;
|
|
2820
|
-
/**
|
|
2821
|
-
*
|
|
2822
|
-
* @type {string}
|
|
2823
|
-
* @memberof CreditEventWithAgent
|
|
2824
|
-
*/
|
|
2825
1402
|
'balance_after'?: string | null;
|
|
2826
1403
|
/**
|
|
2827
1404
|
* Base amount of credits involved
|
|
2828
|
-
* @type {string}
|
|
2829
|
-
* @memberof CreditEventWithAgent
|
|
2830
1405
|
*/
|
|
2831
1406
|
'base_amount'?: string;
|
|
2832
|
-
/**
|
|
2833
|
-
*
|
|
2834
|
-
* @type {string}
|
|
2835
|
-
* @memberof CreditEventWithAgent
|
|
2836
|
-
*/
|
|
2837
1407
|
'base_discount_amount'?: string | null;
|
|
2838
|
-
/**
|
|
2839
|
-
*
|
|
2840
|
-
* @type {string}
|
|
2841
|
-
* @memberof CreditEventWithAgent
|
|
2842
|
-
*/
|
|
2843
1408
|
'base_original_amount'?: string | null;
|
|
2844
|
-
/**
|
|
2845
|
-
*
|
|
2846
|
-
* @type {string}
|
|
2847
|
-
* @memberof CreditEventWithAgent
|
|
2848
|
-
*/
|
|
2849
1409
|
'base_llm_amount'?: string | null;
|
|
2850
|
-
/**
|
|
2851
|
-
*
|
|
2852
|
-
* @type {string}
|
|
2853
|
-
* @memberof CreditEventWithAgent
|
|
2854
|
-
*/
|
|
2855
1410
|
'base_skill_amount'?: string | null;
|
|
2856
|
-
/**
|
|
2857
|
-
*
|
|
2858
|
-
* @type {string}
|
|
2859
|
-
* @memberof CreditEventWithAgent
|
|
2860
|
-
*/
|
|
2861
1411
|
'base_free_amount'?: string | null;
|
|
2862
|
-
/**
|
|
2863
|
-
*
|
|
2864
|
-
* @type {string}
|
|
2865
|
-
* @memberof CreditEventWithAgent
|
|
2866
|
-
*/
|
|
2867
1412
|
'base_reward_amount'?: string | null;
|
|
2868
|
-
/**
|
|
2869
|
-
*
|
|
2870
|
-
* @type {string}
|
|
2871
|
-
* @memberof CreditEventWithAgent
|
|
2872
|
-
*/
|
|
2873
1413
|
'base_permanent_amount'?: string | null;
|
|
2874
|
-
/**
|
|
2875
|
-
*
|
|
2876
|
-
* @type {string}
|
|
2877
|
-
* @memberof CreditEventWithAgent
|
|
2878
|
-
*/
|
|
2879
1414
|
'fee_platform_amount'?: string | null;
|
|
2880
|
-
/**
|
|
2881
|
-
*
|
|
2882
|
-
* @type {string}
|
|
2883
|
-
* @memberof CreditEventWithAgent
|
|
2884
|
-
*/
|
|
2885
1415
|
'fee_platform_free_amount'?: string | null;
|
|
2886
|
-
/**
|
|
2887
|
-
*
|
|
2888
|
-
* @type {string}
|
|
2889
|
-
* @memberof CreditEventWithAgent
|
|
2890
|
-
*/
|
|
2891
1416
|
'fee_platform_reward_amount'?: string | null;
|
|
2892
|
-
/**
|
|
2893
|
-
*
|
|
2894
|
-
* @type {string}
|
|
2895
|
-
* @memberof CreditEventWithAgent
|
|
2896
|
-
*/
|
|
2897
1417
|
'fee_platform_permanent_amount'?: string | null;
|
|
2898
|
-
/**
|
|
2899
|
-
*
|
|
2900
|
-
* @type {string}
|
|
2901
|
-
* @memberof CreditEventWithAgent
|
|
2902
|
-
*/
|
|
2903
1418
|
'fee_dev_account'?: string | null;
|
|
2904
|
-
/**
|
|
2905
|
-
*
|
|
2906
|
-
* @type {string}
|
|
2907
|
-
* @memberof CreditEventWithAgent
|
|
2908
|
-
*/
|
|
2909
1419
|
'fee_dev_amount'?: string | null;
|
|
2910
|
-
/**
|
|
2911
|
-
*
|
|
2912
|
-
* @type {string}
|
|
2913
|
-
* @memberof CreditEventWithAgent
|
|
2914
|
-
*/
|
|
2915
1420
|
'fee_dev_free_amount'?: string | null;
|
|
2916
|
-
/**
|
|
2917
|
-
*
|
|
2918
|
-
* @type {string}
|
|
2919
|
-
* @memberof CreditEventWithAgent
|
|
2920
|
-
*/
|
|
2921
1421
|
'fee_dev_reward_amount'?: string | null;
|
|
2922
|
-
/**
|
|
2923
|
-
*
|
|
2924
|
-
* @type {string}
|
|
2925
|
-
* @memberof CreditEventWithAgent
|
|
2926
|
-
*/
|
|
2927
1422
|
'fee_dev_permanent_amount'?: string | null;
|
|
2928
|
-
/**
|
|
2929
|
-
*
|
|
2930
|
-
* @type {string}
|
|
2931
|
-
* @memberof CreditEventWithAgent
|
|
2932
|
-
*/
|
|
2933
1423
|
'fee_agent_account'?: string | null;
|
|
2934
|
-
/**
|
|
2935
|
-
*
|
|
2936
|
-
* @type {string}
|
|
2937
|
-
* @memberof CreditEventWithAgent
|
|
2938
|
-
*/
|
|
2939
1424
|
'fee_agent_amount'?: string | null;
|
|
2940
|
-
/**
|
|
2941
|
-
*
|
|
2942
|
-
* @type {string}
|
|
2943
|
-
* @memberof CreditEventWithAgent
|
|
2944
|
-
*/
|
|
2945
1425
|
'fee_agent_free_amount'?: string | null;
|
|
2946
|
-
/**
|
|
2947
|
-
*
|
|
2948
|
-
* @type {string}
|
|
2949
|
-
* @memberof CreditEventWithAgent
|
|
2950
|
-
*/
|
|
2951
1426
|
'fee_agent_reward_amount'?: string | null;
|
|
2952
|
-
/**
|
|
2953
|
-
*
|
|
2954
|
-
* @type {string}
|
|
2955
|
-
* @memberof CreditEventWithAgent
|
|
2956
|
-
*/
|
|
2957
1427
|
'fee_agent_permanent_amount'?: string | null;
|
|
2958
|
-
/**
|
|
2959
|
-
*
|
|
2960
|
-
* @type {string}
|
|
2961
|
-
* @memberof CreditEventWithAgent
|
|
2962
|
-
*/
|
|
2963
1428
|
'free_amount'?: string | null;
|
|
2964
|
-
/**
|
|
2965
|
-
*
|
|
2966
|
-
* @type {string}
|
|
2967
|
-
* @memberof CreditEventWithAgent
|
|
2968
|
-
*/
|
|
2969
1429
|
'reward_amount'?: string | null;
|
|
2970
|
-
/**
|
|
2971
|
-
*
|
|
2972
|
-
* @type {string}
|
|
2973
|
-
* @memberof CreditEventWithAgent
|
|
2974
|
-
*/
|
|
2975
1430
|
'permanent_amount'?: string | null;
|
|
2976
|
-
/**
|
|
2977
|
-
*
|
|
2978
|
-
* @type {string}
|
|
2979
|
-
* @memberof CreditEventWithAgent
|
|
2980
|
-
*/
|
|
2981
1431
|
'note'?: string | null;
|
|
2982
1432
|
/**
|
|
2983
1433
|
* Timestamp when this event was created
|
|
2984
|
-
* @type {string}
|
|
2985
|
-
* @memberof CreditEventWithAgent
|
|
2986
1434
|
*/
|
|
2987
1435
|
'created_at': string;
|
|
2988
|
-
/**
|
|
2989
|
-
*
|
|
2990
|
-
* @type {string}
|
|
2991
|
-
* @memberof CreditEventWithAgent
|
|
2992
|
-
*/
|
|
2993
1436
|
'agent_name'?: string | null;
|
|
2994
1437
|
}
|
|
2995
1438
|
|
|
2996
1439
|
|
|
2997
1440
|
/**
|
|
2998
1441
|
* 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.
|
|
2999
|
-
* @export
|
|
3000
|
-
* @interface CreditEventsResponse
|
|
3001
1442
|
*/
|
|
3002
1443
|
export interface CreditEventsResponse {
|
|
3003
1444
|
/**
|
|
3004
1445
|
* List of credit events with agent names
|
|
3005
|
-
* @type {Array<CreditEventWithAgent>}
|
|
3006
|
-
* @memberof CreditEventsResponse
|
|
3007
1446
|
*/
|
|
3008
|
-
'data': Array<
|
|
1447
|
+
'data': Array<CreditEventWithAgentOutput>;
|
|
3009
1448
|
/**
|
|
3010
1449
|
* Indicates if there are more items
|
|
3011
|
-
* @type {boolean}
|
|
3012
|
-
* @memberof CreditEventsResponse
|
|
3013
1450
|
*/
|
|
3014
1451
|
'has_more': boolean;
|
|
1452
|
+
'next_cursor'?: string | null;
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* Credit transaction response model with associated event data. Extends CreditTransaction to include the related CreditEvent if available.
|
|
1456
|
+
*/
|
|
1457
|
+
export interface CreditTransactionRespInput {
|
|
3015
1458
|
/**
|
|
3016
|
-
*
|
|
3017
|
-
* @type {string}
|
|
3018
|
-
* @memberof CreditEventsResponse
|
|
1459
|
+
* Unique identifier for the credit transaction
|
|
3019
1460
|
*/
|
|
3020
|
-
'
|
|
1461
|
+
'id'?: string;
|
|
1462
|
+
/**
|
|
1463
|
+
* ID of the account this transaction belongs to
|
|
1464
|
+
*/
|
|
1465
|
+
'account_id': string;
|
|
1466
|
+
/**
|
|
1467
|
+
* ID of the event that triggered this transaction
|
|
1468
|
+
*/
|
|
1469
|
+
'event_id': string;
|
|
1470
|
+
/**
|
|
1471
|
+
* Type of the transaction
|
|
1472
|
+
*/
|
|
1473
|
+
'tx_type': TransactionType;
|
|
1474
|
+
/**
|
|
1475
|
+
* Whether this is a credit or debit transaction
|
|
1476
|
+
*/
|
|
1477
|
+
'credit_debit': CreditDebit;
|
|
1478
|
+
'change_amount'?: ChangeAmount;
|
|
1479
|
+
'free_amount'?: FreeAmount1;
|
|
1480
|
+
'reward_amount'?: RewardAmount1;
|
|
1481
|
+
'permanent_amount'?: PermanentAmount1;
|
|
1482
|
+
/**
|
|
1483
|
+
* Type of credits involved
|
|
1484
|
+
*/
|
|
1485
|
+
'credit_type': CreditType;
|
|
1486
|
+
/**
|
|
1487
|
+
* Timestamp when this transaction was created
|
|
1488
|
+
*/
|
|
1489
|
+
'created_at': string;
|
|
1490
|
+
'event'?: CreditEventInput | null;
|
|
3021
1491
|
}
|
|
1492
|
+
|
|
1493
|
+
|
|
3022
1494
|
/**
|
|
3023
1495
|
* Credit transaction response model with associated event data. Extends CreditTransaction to include the related CreditEvent if available.
|
|
3024
|
-
* @export
|
|
3025
|
-
* @interface CreditTransactionResp
|
|
3026
1496
|
*/
|
|
3027
|
-
export interface
|
|
1497
|
+
export interface CreditTransactionRespOutput {
|
|
3028
1498
|
/**
|
|
3029
1499
|
* Unique identifier for the credit transaction
|
|
3030
|
-
* @type {string}
|
|
3031
|
-
* @memberof CreditTransactionResp
|
|
3032
1500
|
*/
|
|
3033
1501
|
'id'?: string;
|
|
3034
1502
|
/**
|
|
3035
1503
|
* ID of the account this transaction belongs to
|
|
3036
|
-
* @type {string}
|
|
3037
|
-
* @memberof CreditTransactionResp
|
|
3038
1504
|
*/
|
|
3039
1505
|
'account_id': string;
|
|
3040
1506
|
/**
|
|
3041
1507
|
* ID of the event that triggered this transaction
|
|
3042
|
-
* @type {string}
|
|
3043
|
-
* @memberof CreditTransactionResp
|
|
3044
1508
|
*/
|
|
3045
1509
|
'event_id': string;
|
|
3046
1510
|
/**
|
|
3047
1511
|
* Type of the transaction
|
|
3048
|
-
* @type {TransactionType}
|
|
3049
|
-
* @memberof CreditTransactionResp
|
|
3050
1512
|
*/
|
|
3051
1513
|
'tx_type': TransactionType;
|
|
3052
1514
|
/**
|
|
3053
1515
|
* Whether this is a credit or debit transaction
|
|
3054
|
-
* @type {CreditDebit}
|
|
3055
|
-
* @memberof CreditTransactionResp
|
|
3056
1516
|
*/
|
|
3057
1517
|
'credit_debit': CreditDebit;
|
|
3058
1518
|
/**
|
|
3059
1519
|
* Amount of credits changed
|
|
3060
|
-
* @type {string}
|
|
3061
|
-
* @memberof CreditTransactionResp
|
|
3062
1520
|
*/
|
|
3063
1521
|
'change_amount'?: string;
|
|
3064
1522
|
/**
|
|
3065
1523
|
* Amount of free credits changed
|
|
3066
|
-
* @type {string}
|
|
3067
|
-
* @memberof CreditTransactionResp
|
|
3068
1524
|
*/
|
|
3069
1525
|
'free_amount'?: string;
|
|
3070
1526
|
/**
|
|
3071
1527
|
* Amount of reward credits changed
|
|
3072
|
-
* @type {string}
|
|
3073
|
-
* @memberof CreditTransactionResp
|
|
3074
1528
|
*/
|
|
3075
1529
|
'reward_amount'?: string;
|
|
3076
1530
|
/**
|
|
3077
1531
|
* Amount of permanent credits changed
|
|
3078
|
-
* @type {string}
|
|
3079
|
-
* @memberof CreditTransactionResp
|
|
3080
1532
|
*/
|
|
3081
1533
|
'permanent_amount'?: string;
|
|
3082
1534
|
/**
|
|
3083
1535
|
* Type of credits involved
|
|
3084
|
-
* @type {CreditType}
|
|
3085
|
-
* @memberof CreditTransactionResp
|
|
3086
1536
|
*/
|
|
3087
1537
|
'credit_type': CreditType;
|
|
3088
1538
|
/**
|
|
3089
1539
|
* Timestamp when this transaction was created
|
|
3090
|
-
* @type {string}
|
|
3091
|
-
* @memberof CreditTransactionResp
|
|
3092
1540
|
*/
|
|
3093
1541
|
'created_at': string;
|
|
3094
|
-
|
|
3095
|
-
*
|
|
3096
|
-
* @type {CreditEvent}
|
|
3097
|
-
* @memberof CreditTransactionResp
|
|
3098
|
-
*/
|
|
3099
|
-
'event'?: CreditEvent | null;
|
|
1542
|
+
'event'?: CreditEventOutput | null;
|
|
3100
1543
|
}
|
|
3101
1544
|
|
|
3102
1545
|
|
|
3103
1546
|
/**
|
|
3104
1547
|
* Paginated response model for credit transactions. Contains a list of credit transactions (with event data), a flag for more items, and a pagination cursor.
|
|
3105
|
-
* @export
|
|
3106
|
-
* @interface CreditTransactionsResponse
|
|
3107
1548
|
*/
|
|
3108
1549
|
export interface CreditTransactionsResponse {
|
|
3109
1550
|
/**
|
|
3110
1551
|
* List of credit transactions
|
|
3111
|
-
* @type {Array<CreditTransactionResp>}
|
|
3112
|
-
* @memberof CreditTransactionsResponse
|
|
3113
1552
|
*/
|
|
3114
|
-
'data': Array<
|
|
1553
|
+
'data': Array<CreditTransactionRespOutput>;
|
|
3115
1554
|
/**
|
|
3116
1555
|
* Indicates if there are more items
|
|
3117
|
-
* @type {boolean}
|
|
3118
|
-
* @memberof CreditTransactionsResponse
|
|
3119
1556
|
*/
|
|
3120
1557
|
'has_more': boolean;
|
|
3121
|
-
/**
|
|
3122
|
-
*
|
|
3123
|
-
* @type {string}
|
|
3124
|
-
* @memberof CreditTransactionsResponse
|
|
3125
|
-
*/
|
|
3126
1558
|
'next_cursor'?: string | null;
|
|
3127
1559
|
}
|
|
3128
1560
|
/**
|
|
3129
1561
|
* Credit type is used in db column names, do not change it.
|
|
3130
|
-
* @export
|
|
3131
|
-
* @enum {string}
|
|
3132
1562
|
*/
|
|
3133
1563
|
|
|
3134
1564
|
export const CreditType = {
|
|
@@ -3142,8 +1572,6 @@ export type CreditType = typeof CreditType[keyof typeof CreditType];
|
|
|
3142
1572
|
|
|
3143
1573
|
/**
|
|
3144
1574
|
* Direction of credit flow.
|
|
3145
|
-
* @export
|
|
3146
|
-
* @enum {string}
|
|
3147
1575
|
*/
|
|
3148
1576
|
|
|
3149
1577
|
export const Direction = {
|
|
@@ -3156,8 +1584,6 @@ export type Direction = typeof Direction[keyof typeof Direction];
|
|
|
3156
1584
|
|
|
3157
1585
|
/**
|
|
3158
1586
|
* Type of credit event.
|
|
3159
|
-
* @export
|
|
3160
|
-
* @enum {string}
|
|
3161
1587
|
*/
|
|
3162
1588
|
|
|
3163
1589
|
export const EventType = {
|
|
@@ -3179,271 +1605,204 @@ export const EventType = {
|
|
|
3179
1605
|
export type EventType = typeof EventType[keyof typeof EventType];
|
|
3180
1606
|
|
|
3181
1607
|
|
|
1608
|
+
/**
|
|
1609
|
+
* Agent fee amount
|
|
1610
|
+
*/
|
|
1611
|
+
export interface FeeAgentAmount {
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
* Agent fee amount from free credits
|
|
1615
|
+
*/
|
|
1616
|
+
export interface FeeAgentFreeAmount {
|
|
1617
|
+
}
|
|
1618
|
+
/**
|
|
1619
|
+
* Agent fee amount from permanent credits
|
|
1620
|
+
*/
|
|
1621
|
+
export interface FeeAgentPermanentAmount {
|
|
1622
|
+
}
|
|
1623
|
+
/**
|
|
1624
|
+
* Agent fee amount from reward credits
|
|
1625
|
+
*/
|
|
1626
|
+
export interface FeeAgentRewardAmount {
|
|
1627
|
+
}
|
|
1628
|
+
/**
|
|
1629
|
+
* Developer fee amount
|
|
1630
|
+
*/
|
|
1631
|
+
export interface FeeDevAmount {
|
|
1632
|
+
}
|
|
1633
|
+
/**
|
|
1634
|
+
* Developer fee amount from free credits
|
|
1635
|
+
*/
|
|
1636
|
+
export interface FeeDevFreeAmount {
|
|
1637
|
+
}
|
|
1638
|
+
/**
|
|
1639
|
+
* Developer fee amount from permanent credits
|
|
1640
|
+
*/
|
|
1641
|
+
export interface FeeDevPermanentAmount {
|
|
1642
|
+
}
|
|
1643
|
+
/**
|
|
1644
|
+
* Developer fee amount from reward credits
|
|
1645
|
+
*/
|
|
1646
|
+
export interface FeeDevRewardAmount {
|
|
1647
|
+
}
|
|
3182
1648
|
/**
|
|
3183
1649
|
* Fee percentage of the agent
|
|
3184
|
-
* @export
|
|
3185
|
-
* @interface FeePercentage
|
|
3186
1650
|
*/
|
|
3187
1651
|
export interface FeePercentage {
|
|
3188
1652
|
}
|
|
1653
|
+
/**
|
|
1654
|
+
* Platform fee amount
|
|
1655
|
+
*/
|
|
1656
|
+
export interface FeePlatformAmount {
|
|
1657
|
+
}
|
|
1658
|
+
/**
|
|
1659
|
+
* Platform fee amount from free credits
|
|
1660
|
+
*/
|
|
1661
|
+
export interface FeePlatformFreeAmount {
|
|
1662
|
+
}
|
|
1663
|
+
/**
|
|
1664
|
+
* Platform fee amount from permanent credits
|
|
1665
|
+
*/
|
|
1666
|
+
export interface FeePlatformPermanentAmount {
|
|
1667
|
+
}
|
|
1668
|
+
/**
|
|
1669
|
+
* Platform fee amount from reward credits
|
|
1670
|
+
*/
|
|
1671
|
+
export interface FeePlatformRewardAmount {
|
|
1672
|
+
}
|
|
3189
1673
|
/**
|
|
3190
1674
|
* Response model for file upload.
|
|
3191
|
-
* @export
|
|
3192
|
-
* @interface FileUploadResponse
|
|
3193
1675
|
*/
|
|
3194
1676
|
export interface FileUploadResponse {
|
|
3195
1677
|
/**
|
|
3196
1678
|
* CDN URL of the uploaded file
|
|
3197
|
-
* @type {string}
|
|
3198
|
-
* @memberof FileUploadResponse
|
|
3199
1679
|
*/
|
|
3200
1680
|
'file_url': string;
|
|
3201
1681
|
/**
|
|
3202
1682
|
* Unique identifier for the uploaded file
|
|
3203
|
-
* @type {string}
|
|
3204
|
-
* @memberof FileUploadResponse
|
|
3205
1683
|
*/
|
|
3206
1684
|
'file_id': string;
|
|
3207
1685
|
}
|
|
1686
|
+
/**
|
|
1687
|
+
* Free credit amount involved
|
|
1688
|
+
*/
|
|
1689
|
+
export interface FreeAmount {
|
|
1690
|
+
}
|
|
1691
|
+
/**
|
|
1692
|
+
* Amount of free credits changed
|
|
1693
|
+
*/
|
|
1694
|
+
export interface FreeAmount1 {
|
|
1695
|
+
}
|
|
3208
1696
|
/**
|
|
3209
1697
|
* Response model for single generation detail.
|
|
3210
|
-
* @export
|
|
3211
|
-
* @interface GenerationDetailResponse
|
|
3212
1698
|
*/
|
|
3213
1699
|
export interface GenerationDetailResponse {
|
|
3214
1700
|
/**
|
|
3215
1701
|
* Project ID
|
|
3216
|
-
* @type {string}
|
|
3217
|
-
* @memberof GenerationDetailResponse
|
|
3218
1702
|
*/
|
|
3219
1703
|
'project_id': string;
|
|
3220
|
-
/**
|
|
3221
|
-
*
|
|
3222
|
-
* @type {string}
|
|
3223
|
-
* @memberof GenerationDetailResponse
|
|
3224
|
-
*/
|
|
3225
1704
|
'user_id'?: string | null;
|
|
3226
|
-
/**
|
|
3227
|
-
*
|
|
3228
|
-
* @type {string}
|
|
3229
|
-
* @memberof GenerationDetailResponse
|
|
3230
|
-
*/
|
|
3231
1705
|
'created_at'?: string | null;
|
|
3232
|
-
/**
|
|
3233
|
-
*
|
|
3234
|
-
* @type {string}
|
|
3235
|
-
* @memberof GenerationDetailResponse
|
|
3236
|
-
*/
|
|
3237
1706
|
'last_activity'?: string | null;
|
|
3238
1707
|
/**
|
|
3239
1708
|
* Number of messages in conversation
|
|
3240
|
-
* @type {number}
|
|
3241
|
-
* @memberof GenerationDetailResponse
|
|
3242
1709
|
*/
|
|
3243
1710
|
'message_count': number;
|
|
3244
|
-
/**
|
|
3245
|
-
*
|
|
3246
|
-
* @type {object}
|
|
3247
|
-
* @memberof GenerationDetailResponse
|
|
3248
|
-
*/
|
|
3249
1711
|
'last_message'?: object | null;
|
|
3250
|
-
/**
|
|
3251
|
-
*
|
|
3252
|
-
* @type {object}
|
|
3253
|
-
* @memberof GenerationDetailResponse
|
|
3254
|
-
*/
|
|
3255
1712
|
'first_message'?: object | null;
|
|
3256
1713
|
/**
|
|
3257
1714
|
* Full conversation history
|
|
3258
|
-
* @type {Array<object>}
|
|
3259
|
-
* @memberof GenerationDetailResponse
|
|
3260
1715
|
*/
|
|
3261
1716
|
'conversation_history': Array<object>;
|
|
3262
1717
|
}
|
|
3263
1718
|
/**
|
|
3264
1719
|
* Response model for generations list.
|
|
3265
|
-
* @export
|
|
3266
|
-
* @interface GenerationsListResponse
|
|
3267
1720
|
*/
|
|
3268
1721
|
export interface GenerationsListResponse {
|
|
3269
1722
|
/**
|
|
3270
1723
|
* List of recent projects with their conversation history
|
|
3271
|
-
* @type {Array<object>}
|
|
3272
|
-
* @memberof GenerationsListResponse
|
|
3273
1724
|
*/
|
|
3274
1725
|
'projects': Array<object>;
|
|
3275
1726
|
}
|
|
3276
|
-
/**
|
|
3277
|
-
*
|
|
3278
|
-
* @export
|
|
3279
|
-
* @interface HTTPValidationError
|
|
3280
|
-
*/
|
|
3281
1727
|
export interface HTTPValidationError {
|
|
3282
|
-
/**
|
|
3283
|
-
*
|
|
3284
|
-
* @type {Array<ValidationError>}
|
|
3285
|
-
* @memberof HTTPValidationError
|
|
3286
|
-
*/
|
|
3287
1728
|
'detail'?: Array<ValidationError>;
|
|
3288
1729
|
}
|
|
1730
|
+
export interface InputPrice {
|
|
1731
|
+
}
|
|
3289
1732
|
/**
|
|
3290
1733
|
* LLM model information with provider display name.
|
|
3291
|
-
* @export
|
|
3292
|
-
* @interface LLMModelInfoWithProviderName
|
|
3293
1734
|
*/
|
|
3294
|
-
export interface
|
|
3295
|
-
/**
|
|
3296
|
-
*
|
|
3297
|
-
* @type {string}
|
|
3298
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3299
|
-
*/
|
|
1735
|
+
export interface LLMModelInfoWithProviderNameInput {
|
|
3300
1736
|
'id': string;
|
|
3301
|
-
/**
|
|
3302
|
-
*
|
|
3303
|
-
* @type {string}
|
|
3304
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3305
|
-
*/
|
|
3306
1737
|
'name': string;
|
|
3307
|
-
/**
|
|
3308
|
-
*
|
|
3309
|
-
* @type {LLMProvider}
|
|
3310
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3311
|
-
*/
|
|
3312
1738
|
'provider': LLMProvider;
|
|
3313
|
-
/**
|
|
3314
|
-
*
|
|
3315
|
-
* @type {boolean}
|
|
3316
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3317
|
-
*/
|
|
3318
1739
|
'enabled'?: boolean;
|
|
1740
|
+
'input_price': InputPrice;
|
|
1741
|
+
'output_price': OutputPrice;
|
|
1742
|
+
'price_level'?: number | null;
|
|
1743
|
+
'context_length': number;
|
|
1744
|
+
'output_length': number;
|
|
1745
|
+
'intelligence': number;
|
|
1746
|
+
'speed': number;
|
|
1747
|
+
'supports_image_input'?: boolean;
|
|
1748
|
+
'supports_skill_calls'?: boolean;
|
|
1749
|
+
'supports_structured_output'?: boolean;
|
|
1750
|
+
'has_reasoning'?: boolean;
|
|
1751
|
+
'supports_search'?: boolean;
|
|
1752
|
+
'supports_temperature'?: boolean;
|
|
1753
|
+
'supports_frequency_penalty'?: boolean;
|
|
1754
|
+
'supports_presence_penalty'?: boolean;
|
|
1755
|
+
'api_base'?: string | null;
|
|
1756
|
+
'timeout'?: number;
|
|
3319
1757
|
/**
|
|
3320
|
-
*
|
|
3321
|
-
* @type {string}
|
|
3322
|
-
* @memberof LLMModelInfoWithProviderName
|
|
1758
|
+
* Timestamp when this data was created
|
|
3323
1759
|
*/
|
|
3324
|
-
'
|
|
1760
|
+
'created_at'?: string;
|
|
3325
1761
|
/**
|
|
3326
|
-
*
|
|
3327
|
-
* @type {string}
|
|
3328
|
-
* @memberof LLMModelInfoWithProviderName
|
|
1762
|
+
* Timestamp when this data was updated
|
|
3329
1763
|
*/
|
|
1764
|
+
'updated_at'?: string;
|
|
1765
|
+
'provider_name': string;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
|
|
1769
|
+
/**
|
|
1770
|
+
* LLM model information with provider display name.
|
|
1771
|
+
*/
|
|
1772
|
+
export interface LLMModelInfoWithProviderNameOutput {
|
|
1773
|
+
'id': string;
|
|
1774
|
+
'name': string;
|
|
1775
|
+
'provider': LLMProvider;
|
|
1776
|
+
'enabled'?: boolean;
|
|
1777
|
+
'input_price': string;
|
|
3330
1778
|
'output_price': string;
|
|
3331
|
-
/**
|
|
3332
|
-
*
|
|
3333
|
-
* @type {number}
|
|
3334
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3335
|
-
*/
|
|
3336
1779
|
'price_level'?: number | null;
|
|
3337
|
-
/**
|
|
3338
|
-
*
|
|
3339
|
-
* @type {number}
|
|
3340
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3341
|
-
*/
|
|
3342
1780
|
'context_length': number;
|
|
3343
|
-
/**
|
|
3344
|
-
*
|
|
3345
|
-
* @type {number}
|
|
3346
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3347
|
-
*/
|
|
3348
1781
|
'output_length': number;
|
|
3349
|
-
/**
|
|
3350
|
-
*
|
|
3351
|
-
* @type {number}
|
|
3352
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3353
|
-
*/
|
|
3354
1782
|
'intelligence': number;
|
|
3355
|
-
/**
|
|
3356
|
-
*
|
|
3357
|
-
* @type {number}
|
|
3358
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3359
|
-
*/
|
|
3360
1783
|
'speed': number;
|
|
3361
|
-
/**
|
|
3362
|
-
*
|
|
3363
|
-
* @type {boolean}
|
|
3364
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3365
|
-
*/
|
|
3366
1784
|
'supports_image_input'?: boolean;
|
|
3367
|
-
/**
|
|
3368
|
-
*
|
|
3369
|
-
* @type {boolean}
|
|
3370
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3371
|
-
*/
|
|
3372
1785
|
'supports_skill_calls'?: boolean;
|
|
3373
|
-
/**
|
|
3374
|
-
*
|
|
3375
|
-
* @type {boolean}
|
|
3376
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3377
|
-
*/
|
|
3378
1786
|
'supports_structured_output'?: boolean;
|
|
3379
|
-
/**
|
|
3380
|
-
*
|
|
3381
|
-
* @type {boolean}
|
|
3382
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3383
|
-
*/
|
|
3384
1787
|
'has_reasoning'?: boolean;
|
|
3385
|
-
/**
|
|
3386
|
-
*
|
|
3387
|
-
* @type {boolean}
|
|
3388
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3389
|
-
*/
|
|
3390
1788
|
'supports_search'?: boolean;
|
|
3391
|
-
/**
|
|
3392
|
-
*
|
|
3393
|
-
* @type {boolean}
|
|
3394
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3395
|
-
*/
|
|
3396
1789
|
'supports_temperature'?: boolean;
|
|
3397
|
-
/**
|
|
3398
|
-
*
|
|
3399
|
-
* @type {boolean}
|
|
3400
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3401
|
-
*/
|
|
3402
1790
|
'supports_frequency_penalty'?: boolean;
|
|
3403
|
-
/**
|
|
3404
|
-
*
|
|
3405
|
-
* @type {boolean}
|
|
3406
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3407
|
-
*/
|
|
3408
1791
|
'supports_presence_penalty'?: boolean;
|
|
3409
|
-
/**
|
|
3410
|
-
*
|
|
3411
|
-
* @type {string}
|
|
3412
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3413
|
-
*/
|
|
3414
1792
|
'api_base'?: string | null;
|
|
3415
|
-
/**
|
|
3416
|
-
*
|
|
3417
|
-
* @type {number}
|
|
3418
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3419
|
-
*/
|
|
3420
1793
|
'timeout'?: number;
|
|
3421
1794
|
/**
|
|
3422
1795
|
* Timestamp when this data was created
|
|
3423
|
-
* @type {string}
|
|
3424
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3425
1796
|
*/
|
|
3426
1797
|
'created_at'?: string;
|
|
3427
1798
|
/**
|
|
3428
1799
|
* Timestamp when this data was updated
|
|
3429
|
-
* @type {string}
|
|
3430
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3431
1800
|
*/
|
|
3432
1801
|
'updated_at'?: string;
|
|
3433
|
-
/**
|
|
3434
|
-
*
|
|
3435
|
-
* @type {string}
|
|
3436
|
-
* @memberof LLMModelInfoWithProviderName
|
|
3437
|
-
*/
|
|
3438
1802
|
'provider_name': string;
|
|
3439
1803
|
}
|
|
3440
1804
|
|
|
3441
1805
|
|
|
3442
|
-
/**
|
|
3443
|
-
*
|
|
3444
|
-
* @export
|
|
3445
|
-
* @enum {string}
|
|
3446
|
-
*/
|
|
3447
1806
|
|
|
3448
1807
|
export const LLMProvider = {
|
|
3449
1808
|
Openai: 'openai',
|
|
@@ -3458,10 +1817,10 @@ export const LLMProvider = {
|
|
|
3458
1817
|
export type LLMProvider = typeof LLMProvider[keyof typeof LLMProvider];
|
|
3459
1818
|
|
|
3460
1819
|
|
|
1820
|
+
export interface OutputPrice {
|
|
1821
|
+
}
|
|
3461
1822
|
/**
|
|
3462
1823
|
* Type of credit account owner.
|
|
3463
|
-
* @export
|
|
3464
|
-
* @enum {string}
|
|
3465
1824
|
*/
|
|
3466
1825
|
|
|
3467
1826
|
export const OwnerType = {
|
|
@@ -3473,89 +1832,108 @@ export const OwnerType = {
|
|
|
3473
1832
|
export type OwnerType = typeof OwnerType[keyof typeof OwnerType];
|
|
3474
1833
|
|
|
3475
1834
|
|
|
1835
|
+
/**
|
|
1836
|
+
* Permanent credit amount involved
|
|
1837
|
+
*/
|
|
1838
|
+
export interface PermanentAmount {
|
|
1839
|
+
}
|
|
1840
|
+
/**
|
|
1841
|
+
* Amount of permanent credits changed
|
|
1842
|
+
*/
|
|
1843
|
+
export interface PermanentAmount1 {
|
|
1844
|
+
}
|
|
1845
|
+
/**
|
|
1846
|
+
* Price for this skill
|
|
1847
|
+
*/
|
|
1848
|
+
export interface Price {
|
|
1849
|
+
}
|
|
1850
|
+
/**
|
|
1851
|
+
* Price for this skill with self key
|
|
1852
|
+
*/
|
|
1853
|
+
export interface PriceSelfKey {
|
|
1854
|
+
}
|
|
1855
|
+
/**
|
|
1856
|
+
* Reward credit amount involved
|
|
1857
|
+
*/
|
|
1858
|
+
export interface RewardAmount {
|
|
1859
|
+
}
|
|
1860
|
+
/**
|
|
1861
|
+
* Amount of reward credits changed
|
|
1862
|
+
*/
|
|
1863
|
+
export interface RewardAmount1 {
|
|
1864
|
+
}
|
|
3476
1865
|
/**
|
|
3477
1866
|
* Pydantic model for Skill.
|
|
3478
|
-
* @export
|
|
3479
|
-
* @interface Skill
|
|
3480
1867
|
*/
|
|
3481
|
-
export interface
|
|
1868
|
+
export interface SkillInput {
|
|
3482
1869
|
/**
|
|
3483
1870
|
* Name of the skill
|
|
3484
|
-
* @type {string}
|
|
3485
|
-
* @memberof Skill
|
|
3486
1871
|
*/
|
|
3487
1872
|
'name': string;
|
|
3488
1873
|
/**
|
|
3489
1874
|
* Is this skill enabled?
|
|
3490
|
-
* @type {boolean}
|
|
3491
|
-
* @memberof Skill
|
|
3492
1875
|
*/
|
|
3493
1876
|
'enabled': boolean;
|
|
3494
1877
|
/**
|
|
3495
1878
|
* Category of the skill
|
|
3496
|
-
* @type {string}
|
|
3497
|
-
* @memberof Skill
|
|
3498
1879
|
*/
|
|
3499
1880
|
'category': string;
|
|
1881
|
+
'config_name': string | null;
|
|
1882
|
+
'price_level': number | null;
|
|
1883
|
+
'price'?: Price;
|
|
1884
|
+
'price_self_key'?: PriceSelfKey;
|
|
1885
|
+
'rate_limit_count': number | null;
|
|
1886
|
+
'rate_limit_minutes': number | null;
|
|
1887
|
+
'author': string | null;
|
|
3500
1888
|
/**
|
|
3501
|
-
*
|
|
3502
|
-
* @type {string}
|
|
3503
|
-
* @memberof Skill
|
|
1889
|
+
* Timestamp when this record was created
|
|
3504
1890
|
*/
|
|
3505
|
-
'
|
|
1891
|
+
'created_at': string;
|
|
1892
|
+
/**
|
|
1893
|
+
* Timestamp when this record was last updated
|
|
1894
|
+
*/
|
|
1895
|
+
'updated_at': string;
|
|
1896
|
+
}
|
|
1897
|
+
/**
|
|
1898
|
+
* Pydantic model for Skill.
|
|
1899
|
+
*/
|
|
1900
|
+
export interface SkillOutput {
|
|
1901
|
+
/**
|
|
1902
|
+
* Name of the skill
|
|
1903
|
+
*/
|
|
1904
|
+
'name': string;
|
|
1905
|
+
/**
|
|
1906
|
+
* Is this skill enabled?
|
|
1907
|
+
*/
|
|
1908
|
+
'enabled': boolean;
|
|
3506
1909
|
/**
|
|
3507
|
-
*
|
|
3508
|
-
* @type {number}
|
|
3509
|
-
* @memberof Skill
|
|
1910
|
+
* Category of the skill
|
|
3510
1911
|
*/
|
|
1912
|
+
'category': string;
|
|
1913
|
+
'config_name': string | null;
|
|
3511
1914
|
'price_level': number | null;
|
|
3512
1915
|
/**
|
|
3513
1916
|
* Price for this skill
|
|
3514
|
-
* @type {string}
|
|
3515
|
-
* @memberof Skill
|
|
3516
1917
|
*/
|
|
3517
1918
|
'price'?: string;
|
|
3518
1919
|
/**
|
|
3519
1920
|
* Price for this skill with self key
|
|
3520
|
-
* @type {string}
|
|
3521
|
-
* @memberof Skill
|
|
3522
1921
|
*/
|
|
3523
1922
|
'price_self_key'?: string;
|
|
3524
|
-
/**
|
|
3525
|
-
*
|
|
3526
|
-
* @type {number}
|
|
3527
|
-
* @memberof Skill
|
|
3528
|
-
*/
|
|
3529
1923
|
'rate_limit_count': number | null;
|
|
3530
|
-
/**
|
|
3531
|
-
*
|
|
3532
|
-
* @type {number}
|
|
3533
|
-
* @memberof Skill
|
|
3534
|
-
*/
|
|
3535
1924
|
'rate_limit_minutes': number | null;
|
|
3536
|
-
/**
|
|
3537
|
-
*
|
|
3538
|
-
* @type {string}
|
|
3539
|
-
* @memberof Skill
|
|
3540
|
-
*/
|
|
3541
1925
|
'author': string | null;
|
|
3542
1926
|
/**
|
|
3543
1927
|
* Timestamp when this record was created
|
|
3544
|
-
* @type {string}
|
|
3545
|
-
* @memberof Skill
|
|
3546
1928
|
*/
|
|
3547
1929
|
'created_at': string;
|
|
3548
1930
|
/**
|
|
3549
1931
|
* Timestamp when this record was last updated
|
|
3550
|
-
* @type {string}
|
|
3551
|
-
* @memberof Skill
|
|
3552
1932
|
*/
|
|
3553
1933
|
'updated_at': string;
|
|
3554
1934
|
}
|
|
3555
1935
|
/**
|
|
3556
1936
|
* Type of system message.
|
|
3557
|
-
* @export
|
|
3558
|
-
* @enum {string}
|
|
3559
1937
|
*/
|
|
3560
1938
|
|
|
3561
1939
|
export const SystemMessageType = {
|
|
@@ -3572,161 +1950,121 @@ export type SystemMessageType = typeof SystemMessageType[keyof typeof SystemMess
|
|
|
3572
1950
|
|
|
3573
1951
|
/**
|
|
3574
1952
|
* Metadata tag model.
|
|
3575
|
-
* @export
|
|
3576
|
-
* @interface Tag
|
|
3577
1953
|
*/
|
|
3578
1954
|
export interface Tag {
|
|
3579
1955
|
/**
|
|
3580
1956
|
* Unique identifier for the tag
|
|
3581
|
-
* @type {number}
|
|
3582
|
-
* @memberof Tag
|
|
3583
1957
|
*/
|
|
3584
1958
|
'id': number;
|
|
3585
|
-
/**
|
|
3586
|
-
*
|
|
3587
|
-
* @type {string}
|
|
3588
|
-
* @memberof Tag
|
|
3589
|
-
*/
|
|
3590
1959
|
'name'?: string | null;
|
|
3591
|
-
/**
|
|
3592
|
-
*
|
|
3593
|
-
* @type {string}
|
|
3594
|
-
* @memberof Tag
|
|
3595
|
-
*/
|
|
3596
1960
|
'description'?: string | null;
|
|
3597
|
-
/**
|
|
3598
|
-
*
|
|
3599
|
-
* @type {string}
|
|
3600
|
-
* @memberof Tag
|
|
3601
|
-
*/
|
|
3602
1961
|
'created_at'?: string | null;
|
|
3603
|
-
/**
|
|
3604
|
-
*
|
|
3605
|
-
* @type {string}
|
|
3606
|
-
* @memberof Tag
|
|
3607
|
-
*/
|
|
3608
1962
|
'category'?: string | null;
|
|
3609
1963
|
}
|
|
3610
1964
|
/**
|
|
3611
1965
|
* Top-up record fetched from Supabase.
|
|
3612
|
-
* @export
|
|
3613
|
-
* @interface TopupRecord
|
|
3614
1966
|
*/
|
|
3615
|
-
export interface
|
|
1967
|
+
export interface TopupRecordInput {
|
|
3616
1968
|
/**
|
|
3617
1969
|
* Transaction hash of the top-up
|
|
3618
|
-
* @type {string}
|
|
3619
|
-
* @memberof TopupRecord
|
|
3620
1970
|
*/
|
|
3621
1971
|
'tx_hash': string;
|
|
3622
1972
|
/**
|
|
3623
1973
|
* Log index within the transaction
|
|
3624
|
-
* @type {number}
|
|
3625
|
-
* @memberof TopupRecord
|
|
3626
1974
|
*/
|
|
3627
1975
|
'log_index': number;
|
|
3628
1976
|
/**
|
|
3629
1977
|
* Blockchain network identifier
|
|
3630
|
-
* @type {number}
|
|
3631
|
-
* @memberof TopupRecord
|
|
3632
1978
|
*/
|
|
3633
1979
|
'chain_id': number;
|
|
3634
1980
|
/**
|
|
3635
1981
|
* Block number containing the top-up
|
|
3636
|
-
* @type {number}
|
|
3637
|
-
* @memberof TopupRecord
|
|
3638
1982
|
*/
|
|
3639
1983
|
'block_number': number;
|
|
3640
|
-
/**
|
|
3641
|
-
*
|
|
3642
|
-
* @type {string}
|
|
3643
|
-
* @memberof TopupRecord
|
|
3644
|
-
*/
|
|
3645
1984
|
'block_time'?: string | null;
|
|
3646
1985
|
/**
|
|
3647
1986
|
* Address that initiated the top-up
|
|
3648
|
-
* @type {string}
|
|
3649
|
-
* @memberof TopupRecord
|
|
3650
1987
|
*/
|
|
3651
1988
|
'payer_address': string;
|
|
3652
1989
|
/**
|
|
3653
1990
|
* Beneficiary address for the top-up
|
|
3654
|
-
* @type {string}
|
|
3655
|
-
* @memberof TopupRecord
|
|
3656
1991
|
*/
|
|
3657
1992
|
'to_address': string;
|
|
3658
1993
|
/**
|
|
3659
1994
|
* Token contract used for the top-up
|
|
3660
|
-
* @type {string}
|
|
3661
|
-
* @memberof TopupRecord
|
|
3662
1995
|
*/
|
|
3663
1996
|
'token_address': string;
|
|
1997
|
+
'amount': Amount;
|
|
1998
|
+
'contract_address'?: string | null;
|
|
1999
|
+
'inserted_at'?: string | null;
|
|
2000
|
+
'credit_event_id'?: string | null;
|
|
2001
|
+
'credit_event_at'?: string | null;
|
|
2002
|
+
'credit_amount'?: CreditAmount | null;
|
|
2003
|
+
}
|
|
2004
|
+
/**
|
|
2005
|
+
* Top-up record fetched from Supabase.
|
|
2006
|
+
*/
|
|
2007
|
+
export interface TopupRecordOutput {
|
|
3664
2008
|
/**
|
|
3665
|
-
*
|
|
3666
|
-
* @type {string}
|
|
3667
|
-
* @memberof TopupRecord
|
|
2009
|
+
* Transaction hash of the top-up
|
|
3668
2010
|
*/
|
|
3669
|
-
'
|
|
2011
|
+
'tx_hash': string;
|
|
3670
2012
|
/**
|
|
3671
|
-
*
|
|
3672
|
-
* @type {string}
|
|
3673
|
-
* @memberof TopupRecord
|
|
2013
|
+
* Log index within the transaction
|
|
3674
2014
|
*/
|
|
3675
|
-
'
|
|
2015
|
+
'log_index': number;
|
|
3676
2016
|
/**
|
|
3677
|
-
*
|
|
3678
|
-
* @type {string}
|
|
3679
|
-
* @memberof TopupRecord
|
|
2017
|
+
* Blockchain network identifier
|
|
3680
2018
|
*/
|
|
3681
|
-
'
|
|
2019
|
+
'chain_id': number;
|
|
3682
2020
|
/**
|
|
3683
|
-
*
|
|
3684
|
-
* @type {string}
|
|
3685
|
-
* @memberof TopupRecord
|
|
2021
|
+
* Block number containing the top-up
|
|
3686
2022
|
*/
|
|
3687
|
-
'
|
|
2023
|
+
'block_number': number;
|
|
2024
|
+
'block_time'?: string | null;
|
|
3688
2025
|
/**
|
|
3689
|
-
*
|
|
3690
|
-
* @type {string}
|
|
3691
|
-
* @memberof TopupRecord
|
|
2026
|
+
* Address that initiated the top-up
|
|
3692
2027
|
*/
|
|
3693
|
-
'
|
|
2028
|
+
'payer_address': string;
|
|
2029
|
+
/**
|
|
2030
|
+
* Beneficiary address for the top-up
|
|
2031
|
+
*/
|
|
2032
|
+
'to_address': string;
|
|
2033
|
+
/**
|
|
2034
|
+
* Token contract used for the top-up
|
|
2035
|
+
*/
|
|
2036
|
+
'token_address': string;
|
|
3694
2037
|
/**
|
|
3695
|
-
*
|
|
3696
|
-
* @type {string}
|
|
3697
|
-
* @memberof TopupRecord
|
|
2038
|
+
* Token amount in raw units
|
|
3698
2039
|
*/
|
|
2040
|
+
'amount': string;
|
|
2041
|
+
'contract_address'?: string | null;
|
|
2042
|
+
'inserted_at'?: string | null;
|
|
2043
|
+
'credit_event_id'?: string | null;
|
|
2044
|
+
'credit_event_at'?: string | null;
|
|
3699
2045
|
'credit_amount'?: string | null;
|
|
3700
2046
|
}
|
|
3701
2047
|
/**
|
|
3702
2048
|
* Paginated response model for Supabase top-up records.
|
|
3703
|
-
* @export
|
|
3704
|
-
* @interface TopupRecordsResponse
|
|
3705
2049
|
*/
|
|
3706
2050
|
export interface TopupRecordsResponse {
|
|
3707
2051
|
/**
|
|
3708
2052
|
* List of top-up records
|
|
3709
|
-
* @type {Array<TopupRecord>}
|
|
3710
|
-
* @memberof TopupRecordsResponse
|
|
3711
2053
|
*/
|
|
3712
|
-
'data': Array<
|
|
2054
|
+
'data': Array<TopupRecordOutput>;
|
|
3713
2055
|
/**
|
|
3714
2056
|
* Indicates if there are more records available
|
|
3715
|
-
* @type {boolean}
|
|
3716
|
-
* @memberof TopupRecordsResponse
|
|
3717
2057
|
*/
|
|
3718
2058
|
'has_more': boolean;
|
|
3719
|
-
/**
|
|
3720
|
-
*
|
|
3721
|
-
* @type {string}
|
|
3722
|
-
* @memberof TopupRecordsResponse
|
|
3723
|
-
*/
|
|
3724
2059
|
'next_cursor'?: string | null;
|
|
3725
2060
|
}
|
|
2061
|
+
/**
|
|
2062
|
+
* Total amount (after discount) of credits involved
|
|
2063
|
+
*/
|
|
2064
|
+
export interface TotalAmount {
|
|
2065
|
+
}
|
|
3726
2066
|
/**
|
|
3727
2067
|
* Type of credit transaction.
|
|
3728
|
-
* @export
|
|
3729
|
-
* @enum {string}
|
|
3730
2068
|
*/
|
|
3731
2069
|
|
|
3732
2070
|
export const TransactionType = {
|
|
@@ -3752,29 +2090,12 @@ export const TransactionType = {
|
|
|
3752
2090
|
export type TransactionType = typeof TransactionType[keyof typeof TransactionType];
|
|
3753
2091
|
|
|
3754
2092
|
|
|
3755
|
-
/**
|
|
3756
|
-
*
|
|
3757
|
-
* @export
|
|
3758
|
-
* @interface TwitterAuthResponse
|
|
3759
|
-
*/
|
|
3760
2093
|
export interface TwitterAuthResponse {
|
|
3761
|
-
/**
|
|
3762
|
-
*
|
|
3763
|
-
* @type {string}
|
|
3764
|
-
* @memberof TwitterAuthResponse
|
|
3765
|
-
*/
|
|
3766
2094
|
'agent_id': string;
|
|
3767
|
-
/**
|
|
3768
|
-
*
|
|
3769
|
-
* @type {string}
|
|
3770
|
-
* @memberof TwitterAuthResponse
|
|
3771
|
-
*/
|
|
3772
2095
|
'url': string;
|
|
3773
2096
|
}
|
|
3774
2097
|
/**
|
|
3775
2098
|
* Type of upstream transaction.
|
|
3776
|
-
* @export
|
|
3777
|
-
* @enum {string}
|
|
3778
2099
|
*/
|
|
3779
2100
|
|
|
3780
2101
|
export const UpstreamType = {
|
|
@@ -3789,132 +2110,58 @@ export type UpstreamType = typeof UpstreamType[keyof typeof UpstreamType];
|
|
|
3789
2110
|
|
|
3790
2111
|
/**
|
|
3791
2112
|
* Extended user model with all fields including id and timestamps.
|
|
3792
|
-
* @export
|
|
3793
|
-
* @interface User
|
|
3794
2113
|
*/
|
|
3795
2114
|
export interface User {
|
|
3796
2115
|
/**
|
|
3797
2116
|
* Number of NFTs owned by the user
|
|
3798
|
-
* @type {number}
|
|
3799
|
-
* @memberof User
|
|
3800
2117
|
*/
|
|
3801
2118
|
'nft_count'?: number;
|
|
3802
|
-
/**
|
|
3803
|
-
*
|
|
3804
|
-
* @type {string}
|
|
3805
|
-
* @memberof User
|
|
3806
|
-
*/
|
|
3807
2119
|
'email'?: string | null;
|
|
3808
|
-
/**
|
|
3809
|
-
*
|
|
3810
|
-
* @type {string}
|
|
3811
|
-
* @memberof User
|
|
3812
|
-
*/
|
|
3813
2120
|
'x_username'?: string | null;
|
|
3814
|
-
/**
|
|
3815
|
-
*
|
|
3816
|
-
* @type {string}
|
|
3817
|
-
* @memberof User
|
|
3818
|
-
*/
|
|
3819
2121
|
'github_username'?: string | null;
|
|
3820
|
-
/**
|
|
3821
|
-
*
|
|
3822
|
-
* @type {string}
|
|
3823
|
-
* @memberof User
|
|
3824
|
-
*/
|
|
3825
2122
|
'telegram_username'?: string | null;
|
|
3826
|
-
/**
|
|
3827
|
-
*
|
|
3828
|
-
* @type {object}
|
|
3829
|
-
* @memberof User
|
|
3830
|
-
*/
|
|
3831
2123
|
'extra'?: object | null;
|
|
3832
2124
|
/**
|
|
3833
2125
|
* Unique identifier for the user
|
|
3834
|
-
* @type {string}
|
|
3835
|
-
* @memberof User
|
|
3836
2126
|
*/
|
|
3837
2127
|
'id': string;
|
|
3838
2128
|
/**
|
|
3839
2129
|
* Timestamp when this user was created
|
|
3840
|
-
* @type {string}
|
|
3841
|
-
* @memberof User
|
|
3842
2130
|
*/
|
|
3843
2131
|
'created_at': string;
|
|
3844
2132
|
/**
|
|
3845
2133
|
* Timestamp when this user was last updated
|
|
3846
|
-
* @type {string}
|
|
3847
|
-
* @memberof User
|
|
3848
2134
|
*/
|
|
3849
2135
|
'updated_at': string;
|
|
3850
2136
|
/**
|
|
3851
2137
|
* Maximum number of agents user can create
|
|
3852
|
-
* @type {number}
|
|
3853
|
-
* @memberof User
|
|
3854
2138
|
*/
|
|
3855
2139
|
'agent_limit'?: number;
|
|
3856
2140
|
}
|
|
3857
2141
|
/**
|
|
3858
2142
|
* Paginated response model for user agents list. Contains a list of Agent objects, a flag indicating if more items are available, and a cursor for pagination.
|
|
3859
|
-
* @export
|
|
3860
|
-
* @interface UserAgentListResponse
|
|
3861
2143
|
*/
|
|
3862
2144
|
export interface UserAgentListResponse {
|
|
3863
2145
|
/**
|
|
3864
2146
|
* List of agents
|
|
3865
|
-
* @type {Array<Agent>}
|
|
3866
|
-
* @memberof UserAgentListResponse
|
|
3867
2147
|
*/
|
|
3868
2148
|
'data': Array<Agent>;
|
|
3869
2149
|
/**
|
|
3870
2150
|
* Indicates if there are more items
|
|
3871
|
-
* @type {boolean}
|
|
3872
|
-
* @memberof UserAgentListResponse
|
|
3873
2151
|
*/
|
|
3874
2152
|
'has_more': boolean;
|
|
3875
|
-
/**
|
|
3876
|
-
*
|
|
3877
|
-
* @type {string}
|
|
3878
|
-
* @memberof UserAgentListResponse
|
|
3879
|
-
*/
|
|
3880
2153
|
'next_cursor'?: string | null;
|
|
3881
2154
|
}
|
|
3882
|
-
/**
|
|
3883
|
-
*
|
|
3884
|
-
* @export
|
|
3885
|
-
* @interface ValidationError
|
|
3886
|
-
*/
|
|
3887
2155
|
export interface ValidationError {
|
|
3888
|
-
/**
|
|
3889
|
-
*
|
|
3890
|
-
* @type {Array<ValidationErrorLocInner>}
|
|
3891
|
-
* @memberof ValidationError
|
|
3892
|
-
*/
|
|
3893
2156
|
'loc': Array<ValidationErrorLocInner>;
|
|
3894
|
-
/**
|
|
3895
|
-
*
|
|
3896
|
-
* @type {string}
|
|
3897
|
-
* @memberof ValidationError
|
|
3898
|
-
*/
|
|
3899
2157
|
'msg': string;
|
|
3900
|
-
/**
|
|
3901
|
-
*
|
|
3902
|
-
* @type {string}
|
|
3903
|
-
* @memberof ValidationError
|
|
3904
|
-
*/
|
|
3905
2158
|
'type': string;
|
|
3906
2159
|
}
|
|
3907
|
-
/**
|
|
3908
|
-
*
|
|
3909
|
-
* @export
|
|
3910
|
-
* @interface ValidationErrorLocInner
|
|
3911
|
-
*/
|
|
3912
2160
|
export interface ValidationErrorLocInner {
|
|
3913
2161
|
}
|
|
3914
2162
|
|
|
3915
2163
|
/**
|
|
3916
2164
|
* AgentApi - axios parameter creator
|
|
3917
|
-
* @export
|
|
3918
2165
|
*/
|
|
3919
2166
|
export const AgentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3920
2167
|
return {
|
|
@@ -4577,7 +2824,6 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
4577
2824
|
|
|
4578
2825
|
/**
|
|
4579
2826
|
* AgentApi - functional programming interface
|
|
4580
|
-
* @export
|
|
4581
2827
|
*/
|
|
4582
2828
|
export const AgentApiFp = function(configuration?: Configuration) {
|
|
4583
2829
|
const localVarAxiosParamCreator = AgentApiAxiosParamCreator(configuration)
|
|
@@ -4805,7 +3051,6 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
4805
3051
|
|
|
4806
3052
|
/**
|
|
4807
3053
|
* AgentApi - factory interface
|
|
4808
|
-
* @export
|
|
4809
3054
|
*/
|
|
4810
3055
|
export const AgentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4811
3056
|
const localVarFp = AgentApiFp(configuration)
|
|
@@ -4985,9 +3230,6 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
4985
3230
|
|
|
4986
3231
|
/**
|
|
4987
3232
|
* AgentApi - object-oriented interface
|
|
4988
|
-
* @export
|
|
4989
|
-
* @class AgentApi
|
|
4990
|
-
* @extends {BaseAPI}
|
|
4991
3233
|
*/
|
|
4992
3234
|
export class AgentApi extends BaseAPI {
|
|
4993
3235
|
/**
|
|
@@ -4996,7 +3238,6 @@ export class AgentApi extends BaseAPI {
|
|
|
4996
3238
|
* @param {AgentUpdate} [agentUpdate]
|
|
4997
3239
|
* @param {*} [options] Override http request option.
|
|
4998
3240
|
* @throws {RequiredError}
|
|
4999
|
-
* @memberof AgentApi
|
|
5000
3241
|
*/
|
|
5001
3242
|
public createAgent(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
5002
3243
|
return AgentApiFp(this.configuration).createAgent(agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5008,7 +3249,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5008
3249
|
* @param {string} agentId ID of the agent to export
|
|
5009
3250
|
* @param {*} [options] Override http request option.
|
|
5010
3251
|
* @throws {RequiredError}
|
|
5011
|
-
* @memberof AgentApi
|
|
5012
3252
|
*/
|
|
5013
3253
|
public exportAgent(agentId: string, options?: RawAxiosRequestConfig) {
|
|
5014
3254
|
return AgentApiFp(this.configuration).exportAgent(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5020,7 +3260,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5020
3260
|
* @param {string} agentId ID of the agent to retrieve
|
|
5021
3261
|
* @param {*} [options] Override http request option.
|
|
5022
3262
|
* @throws {RequiredError}
|
|
5023
|
-
* @memberof AgentApi
|
|
5024
3263
|
*/
|
|
5025
3264
|
public getAgent(agentId: string, options?: RawAxiosRequestConfig) {
|
|
5026
3265
|
return AgentApiFp(this.configuration).getAgent(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5032,7 +3271,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5032
3271
|
* @param {string} agentId ID of the agent
|
|
5033
3272
|
* @param {*} [options] Override http request option.
|
|
5034
3273
|
* @throws {RequiredError}
|
|
5035
|
-
* @memberof AgentApi
|
|
5036
3274
|
*/
|
|
5037
3275
|
public getAgentApiKey(agentId: string, options?: RawAxiosRequestConfig) {
|
|
5038
3276
|
return AgentApiFp(this.configuration).getAgentApiKey(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5044,7 +3282,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5044
3282
|
* @param {string} agentId ID of the agent
|
|
5045
3283
|
* @param {*} [options] Override http request option.
|
|
5046
3284
|
* @throws {RequiredError}
|
|
5047
|
-
* @memberof AgentApi
|
|
5048
3285
|
*/
|
|
5049
3286
|
public getAgentAssets(agentId: string, options?: RawAxiosRequestConfig) {
|
|
5050
3287
|
return AgentApiFp(this.configuration).getAgentAssets(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5056,7 +3293,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5056
3293
|
* @param {string} aid ID of the agent
|
|
5057
3294
|
* @param {*} [options] Override http request option.
|
|
5058
3295
|
* @throws {RequiredError}
|
|
5059
|
-
* @memberof AgentApi
|
|
5060
3296
|
*/
|
|
5061
3297
|
public getAgentStatistics(aid: string, options?: RawAxiosRequestConfig) {
|
|
5062
3298
|
return AgentApiFp(this.configuration).getAgentStatistics(aid, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5072,7 +3308,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5072
3308
|
* @param {Array<number> | null} [tag] Filter agents by tag IDs in public_extra.tags
|
|
5073
3309
|
* @param {*} [options] Override http request option.
|
|
5074
3310
|
* @throws {RequiredError}
|
|
5075
|
-
* @memberof AgentApi
|
|
5076
3311
|
*/
|
|
5077
3312
|
public getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, state?: AgentState | null, tag?: Array<number> | null, options?: RawAxiosRequestConfig) {
|
|
5078
3313
|
return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, state, tag, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5086,7 +3321,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5086
3321
|
* @param {number} [limit] Maximum number of messages to return
|
|
5087
3322
|
* @param {*} [options] Override http request option.
|
|
5088
3323
|
* @throws {RequiredError}
|
|
5089
|
-
* @memberof AgentApi
|
|
5090
3324
|
*/
|
|
5091
3325
|
public getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
5092
3326
|
return AgentApiFp(this.configuration).getSkillHistory(aid, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5099,7 +3333,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5099
3333
|
* @param {File} file YAML file containing agent configuration
|
|
5100
3334
|
* @param {*} [options] Override http request option.
|
|
5101
3335
|
* @throws {RequiredError}
|
|
5102
|
-
* @memberof AgentApi
|
|
5103
3336
|
*/
|
|
5104
3337
|
public importAgent(agentId: string, file: File, options?: RawAxiosRequestConfig) {
|
|
5105
3338
|
return AgentApiFp(this.configuration).importAgent(agentId, file, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5112,7 +3345,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5112
3345
|
* @param {AgentUpdate} [agentUpdate]
|
|
5113
3346
|
* @param {*} [options] Override http request option.
|
|
5114
3347
|
* @throws {RequiredError}
|
|
5115
|
-
* @memberof AgentApi
|
|
5116
3348
|
*/
|
|
5117
3349
|
public overrideAgent(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
5118
3350
|
return AgentApiFp(this.configuration).overrideAgent(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5125,7 +3357,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5125
3357
|
* @param {AgentPublicInfo} [agentPublicInfo]
|
|
5126
3358
|
* @param {*} [options] Override http request option.
|
|
5127
3359
|
* @throws {RequiredError}
|
|
5128
|
-
* @memberof AgentApi
|
|
5129
3360
|
*/
|
|
5130
3361
|
public overrideAgentPublicInfo(agentId: string, agentPublicInfo?: AgentPublicInfo, options?: RawAxiosRequestConfig) {
|
|
5131
3362
|
return AgentApiFp(this.configuration).overrideAgentPublicInfo(agentId, agentPublicInfo, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5137,7 +3368,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5137
3368
|
* @param {string} agentId ID of the agent to publish
|
|
5138
3369
|
* @param {*} [options] Override http request option.
|
|
5139
3370
|
* @throws {RequiredError}
|
|
5140
|
-
* @memberof AgentApi
|
|
5141
3371
|
*/
|
|
5142
3372
|
public publishAgent(agentId: string, options?: RawAxiosRequestConfig) {
|
|
5143
3373
|
return AgentApiFp(this.configuration).publishAgent(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5149,7 +3379,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5149
3379
|
* @param {string} agentId ID of the agent
|
|
5150
3380
|
* @param {*} [options] Override http request option.
|
|
5151
3381
|
* @throws {RequiredError}
|
|
5152
|
-
* @memberof AgentApi
|
|
5153
3382
|
*/
|
|
5154
3383
|
public resetAgentApiKey(agentId: string, options?: RawAxiosRequestConfig) {
|
|
5155
3384
|
return AgentApiFp(this.configuration).resetAgentApiKey(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5161,7 +3390,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5161
3390
|
* @param {string} agentId ID of the agent to unpublish
|
|
5162
3391
|
* @param {*} [options] Override http request option.
|
|
5163
3392
|
* @throws {RequiredError}
|
|
5164
|
-
* @memberof AgentApi
|
|
5165
3393
|
*/
|
|
5166
3394
|
public unpublishAgent(agentId: string, options?: RawAxiosRequestConfig) {
|
|
5167
3395
|
return AgentApiFp(this.configuration).unpublishAgent(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5173,7 +3401,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5173
3401
|
* @param {AgentUpdate} [agentUpdate]
|
|
5174
3402
|
* @param {*} [options] Override http request option.
|
|
5175
3403
|
* @throws {RequiredError}
|
|
5176
|
-
* @memberof AgentApi
|
|
5177
3404
|
*/
|
|
5178
3405
|
public validateAgentCreate(agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
5179
3406
|
return AgentApiFp(this.configuration).validateAgentCreate(agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5186,7 +3413,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5186
3413
|
* @param {AgentUpdate} [agentUpdate]
|
|
5187
3414
|
* @param {*} [options] Override http request option.
|
|
5188
3415
|
* @throws {RequiredError}
|
|
5189
|
-
* @memberof AgentApi
|
|
5190
3416
|
*/
|
|
5191
3417
|
public validateAgentUpdate(agentId: string, agentUpdate?: AgentUpdate, options?: RawAxiosRequestConfig) {
|
|
5192
3418
|
return AgentApiFp(this.configuration).validateAgentUpdate(agentId, agentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5197,7 +3423,6 @@ export class AgentApi extends BaseAPI {
|
|
|
5197
3423
|
|
|
5198
3424
|
/**
|
|
5199
3425
|
* ChatApi - axios parameter creator
|
|
5200
|
-
* @export
|
|
5201
3426
|
*/
|
|
5202
3427
|
export const ChatApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5203
3428
|
return {
|
|
@@ -5776,7 +4001,6 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
5776
4001
|
|
|
5777
4002
|
/**
|
|
5778
4003
|
* ChatApi - functional programming interface
|
|
5779
|
-
* @export
|
|
5780
4004
|
*/
|
|
5781
4005
|
export const ChatApiFp = function(configuration?: Configuration) {
|
|
5782
4006
|
const localVarAxiosParamCreator = ChatApiAxiosParamCreator(configuration)
|
|
@@ -5971,7 +4195,6 @@ export const ChatApiFp = function(configuration?: Configuration) {
|
|
|
5971
4195
|
|
|
5972
4196
|
/**
|
|
5973
4197
|
* ChatApi - factory interface
|
|
5974
|
-
* @export
|
|
5975
4198
|
*/
|
|
5976
4199
|
export const ChatApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5977
4200
|
const localVarFp = ChatApiFp(configuration)
|
|
@@ -6127,9 +4350,6 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
|
|
|
6127
4350
|
|
|
6128
4351
|
/**
|
|
6129
4352
|
* ChatApi - object-oriented interface
|
|
6130
|
-
* @export
|
|
6131
|
-
* @class ChatApi
|
|
6132
|
-
* @extends {BaseAPI}
|
|
6133
4353
|
*/
|
|
6134
4354
|
export class ChatApi extends BaseAPI {
|
|
6135
4355
|
/**
|
|
@@ -6139,7 +4359,6 @@ export class ChatApi extends BaseAPI {
|
|
|
6139
4359
|
* @param {string} chatId Chat ID
|
|
6140
4360
|
* @param {*} [options] Override http request option.
|
|
6141
4361
|
* @throws {RequiredError}
|
|
6142
|
-
* @memberof ChatApi
|
|
6143
4362
|
*/
|
|
6144
4363
|
public clearChatThreadMemory(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
6145
4364
|
return ChatApiFp(this.configuration).clearChatThreadMemory(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6151,7 +4370,6 @@ export class ChatApi extends BaseAPI {
|
|
|
6151
4370
|
* @param {string} aid Agent ID
|
|
6152
4371
|
* @param {*} [options] Override http request option.
|
|
6153
4372
|
* @throws {RequiredError}
|
|
6154
|
-
* @memberof ChatApi
|
|
6155
4373
|
*/
|
|
6156
4374
|
public createChatThread(aid: string, options?: RawAxiosRequestConfig) {
|
|
6157
4375
|
return ChatApiFp(this.configuration).createChatThread(aid, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6164,7 +4382,6 @@ export class ChatApi extends BaseAPI {
|
|
|
6164
4382
|
* @param {string} chatId Chat ID
|
|
6165
4383
|
* @param {*} [options] Override http request option.
|
|
6166
4384
|
* @throws {RequiredError}
|
|
6167
|
-
* @memberof ChatApi
|
|
6168
4385
|
*/
|
|
6169
4386
|
public deleteChatThread(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
6170
4387
|
return ChatApiFp(this.configuration).deleteChatThread(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6177,7 +4394,6 @@ export class ChatApi extends BaseAPI {
|
|
|
6177
4394
|
* @param {string} chatId Chat ID
|
|
6178
4395
|
* @param {*} [options] Override http request option.
|
|
6179
4396
|
* @throws {RequiredError}
|
|
6180
|
-
* @memberof ChatApi
|
|
6181
4397
|
*/
|
|
6182
4398
|
public getChatThreadById(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
6183
4399
|
return ChatApiFp(this.configuration).getChatThreadById(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6189,7 +4405,6 @@ export class ChatApi extends BaseAPI {
|
|
|
6189
4405
|
* @param {string} messageId Message ID
|
|
6190
4406
|
* @param {*} [options] Override http request option.
|
|
6191
4407
|
* @throws {RequiredError}
|
|
6192
|
-
* @memberof ChatApi
|
|
6193
4408
|
*/
|
|
6194
4409
|
public getMessageById(messageId: string, options?: RawAxiosRequestConfig) {
|
|
6195
4410
|
return ChatApiFp(this.configuration).getMessageById(messageId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6203,7 +4418,6 @@ export class ChatApi extends BaseAPI {
|
|
|
6203
4418
|
* @param {number} [limit] Maximum number of messages to return
|
|
6204
4419
|
* @param {*} [options] Override http request option.
|
|
6205
4420
|
* @throws {RequiredError}
|
|
6206
|
-
* @memberof ChatApi
|
|
6207
4421
|
*/
|
|
6208
4422
|
public getSkillHistory(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
6209
4423
|
return ChatApiFp(this.configuration).getSkillHistory(aid, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6215,7 +4429,6 @@ export class ChatApi extends BaseAPI {
|
|
|
6215
4429
|
* @param {string} aid Agent ID
|
|
6216
4430
|
* @param {*} [options] Override http request option.
|
|
6217
4431
|
* @throws {RequiredError}
|
|
6218
|
-
* @memberof ChatApi
|
|
6219
4432
|
*/
|
|
6220
4433
|
public listChatsForAgent(aid: string, options?: RawAxiosRequestConfig) {
|
|
6221
4434
|
return ChatApiFp(this.configuration).listChatsForAgent(aid, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6230,7 +4443,6 @@ export class ChatApi extends BaseAPI {
|
|
|
6230
4443
|
* @param {number} [limit] Maximum number of messages to return
|
|
6231
4444
|
* @param {*} [options] Override http request option.
|
|
6232
4445
|
* @throws {RequiredError}
|
|
6233
|
-
* @memberof ChatApi
|
|
6234
4446
|
*/
|
|
6235
4447
|
public listMessagesInChat(aid: string, chatId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
6236
4448
|
return ChatApiFp(this.configuration).listMessagesInChat(aid, chatId, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6244,7 +4456,6 @@ export class ChatApi extends BaseAPI {
|
|
|
6244
4456
|
* @param {number} [limit] Maximum number of messages to return
|
|
6245
4457
|
* @param {*} [options] Override http request option.
|
|
6246
4458
|
* @throws {RequiredError}
|
|
6247
|
-
* @memberof ChatApi
|
|
6248
4459
|
*/
|
|
6249
4460
|
public listMessagesInDraft(aid: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
6250
4461
|
return ChatApiFp(this.configuration).listMessagesInDraft(aid, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6257,7 +4468,6 @@ export class ChatApi extends BaseAPI {
|
|
|
6257
4468
|
* @param {string} chatId Chat ID
|
|
6258
4469
|
* @param {*} [options] Override http request option.
|
|
6259
4470
|
* @throws {RequiredError}
|
|
6260
|
-
* @memberof ChatApi
|
|
6261
4471
|
*/
|
|
6262
4472
|
public retryMessageInChat(aid: string, chatId: string, options?: RawAxiosRequestConfig) {
|
|
6263
4473
|
return ChatApiFp(this.configuration).retryMessageInChat(aid, chatId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6271,7 +4481,6 @@ export class ChatApi extends BaseAPI {
|
|
|
6271
4481
|
* @param {ChatMessageRequest} chatMessageRequest
|
|
6272
4482
|
* @param {*} [options] Override http request option.
|
|
6273
4483
|
* @throws {RequiredError}
|
|
6274
|
-
* @memberof ChatApi
|
|
6275
4484
|
*/
|
|
6276
4485
|
public sendMessageToChat(aid: string, chatId: string, chatMessageRequest: ChatMessageRequest, options?: RawAxiosRequestConfig) {
|
|
6277
4486
|
return ChatApiFp(this.configuration).sendMessageToChat(aid, chatId, chatMessageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6284,7 +4493,6 @@ export class ChatApi extends BaseAPI {
|
|
|
6284
4493
|
* @param {ChatMessageRequest} chatMessageRequest
|
|
6285
4494
|
* @param {*} [options] Override http request option.
|
|
6286
4495
|
* @throws {RequiredError}
|
|
6287
|
-
* @memberof ChatApi
|
|
6288
4496
|
*/
|
|
6289
4497
|
public sendMessageToDraft(aid: string, chatMessageRequest: ChatMessageRequest, options?: RawAxiosRequestConfig) {
|
|
6290
4498
|
return ChatApiFp(this.configuration).sendMessageToDraft(aid, chatMessageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6298,7 +4506,6 @@ export class ChatApi extends BaseAPI {
|
|
|
6298
4506
|
* @param {ChatUpdateRequest} chatUpdateRequest
|
|
6299
4507
|
* @param {*} [options] Override http request option.
|
|
6300
4508
|
* @throws {RequiredError}
|
|
6301
|
-
* @memberof ChatApi
|
|
6302
4509
|
*/
|
|
6303
4510
|
public updateChatThread(aid: string, chatId: string, chatUpdateRequest: ChatUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
6304
4511
|
return ChatApiFp(this.configuration).updateChatThread(aid, chatId, chatUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6309,7 +4516,6 @@ export class ChatApi extends BaseAPI {
|
|
|
6309
4516
|
|
|
6310
4517
|
/**
|
|
6311
4518
|
* CreditApi - axios parameter creator
|
|
6312
|
-
* @export
|
|
6313
4519
|
*/
|
|
6314
4520
|
export const CreditApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6315
4521
|
return {
|
|
@@ -6590,7 +4796,6 @@ export const CreditApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
6590
4796
|
|
|
6591
4797
|
/**
|
|
6592
4798
|
* CreditApi - functional programming interface
|
|
6593
|
-
* @export
|
|
6594
4799
|
*/
|
|
6595
4800
|
export const CreditApiFp = function(configuration?: Configuration) {
|
|
6596
4801
|
const localVarAxiosParamCreator = CreditApiAxiosParamCreator(configuration)
|
|
@@ -6602,7 +4807,7 @@ export const CreditApiFp = function(configuration?: Configuration) {
|
|
|
6602
4807
|
* @param {*} [options] Override http request option.
|
|
6603
4808
|
* @throws {RequiredError}
|
|
6604
4809
|
*/
|
|
6605
|
-
async fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
4810
|
+
async fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditEventOutput>> {
|
|
6606
4811
|
const localVarAxiosArgs = await localVarAxiosParamCreator.fetchCreditEvent(eventId, options);
|
|
6607
4812
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6608
4813
|
const localVarOperationServerBasePath = operationServerMap['CreditApi.fetchCreditEvent']?.[localVarOperationServerIndex]?.url;
|
|
@@ -6686,7 +4891,6 @@ export const CreditApiFp = function(configuration?: Configuration) {
|
|
|
6686
4891
|
|
|
6687
4892
|
/**
|
|
6688
4893
|
* CreditApi - factory interface
|
|
6689
|
-
* @export
|
|
6690
4894
|
*/
|
|
6691
4895
|
export const CreditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6692
4896
|
const localVarFp = CreditApiFp(configuration)
|
|
@@ -6698,7 +4902,7 @@ export const CreditApiFactory = function (configuration?: Configuration, basePat
|
|
|
6698
4902
|
* @param {*} [options] Override http request option.
|
|
6699
4903
|
* @throws {RequiredError}
|
|
6700
4904
|
*/
|
|
6701
|
-
fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
4905
|
+
fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig): AxiosPromise<CreditEventOutput> {
|
|
6702
4906
|
return localVarFp.fetchCreditEvent(eventId, options).then((request) => request(axios, basePath));
|
|
6703
4907
|
},
|
|
6704
4908
|
/**
|
|
@@ -6764,9 +4968,6 @@ export const CreditApiFactory = function (configuration?: Configuration, basePat
|
|
|
6764
4968
|
|
|
6765
4969
|
/**
|
|
6766
4970
|
* CreditApi - object-oriented interface
|
|
6767
|
-
* @export
|
|
6768
|
-
* @class CreditApi
|
|
6769
|
-
* @extends {BaseAPI}
|
|
6770
4971
|
*/
|
|
6771
4972
|
export class CreditApi extends BaseAPI {
|
|
6772
4973
|
/**
|
|
@@ -6775,7 +4976,6 @@ export class CreditApi extends BaseAPI {
|
|
|
6775
4976
|
* @param {string} eventId Credit event ID
|
|
6776
4977
|
* @param {*} [options] Override http request option.
|
|
6777
4978
|
* @throws {RequiredError}
|
|
6778
|
-
* @memberof CreditApi
|
|
6779
4979
|
*/
|
|
6780
4980
|
public fetchCreditEvent(eventId: string, options?: RawAxiosRequestConfig) {
|
|
6781
4981
|
return CreditApiFp(this.configuration).fetchCreditEvent(eventId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6786,7 +4986,6 @@ export class CreditApi extends BaseAPI {
|
|
|
6786
4986
|
* @summary Get User Account
|
|
6787
4987
|
* @param {*} [options] Override http request option.
|
|
6788
4988
|
* @throws {RequiredError}
|
|
6789
|
-
* @memberof CreditApi
|
|
6790
4989
|
*/
|
|
6791
4990
|
public getUserAccount(options?: RawAxiosRequestConfig) {
|
|
6792
4991
|
return CreditApiFp(this.configuration).getUserAccount(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6800,7 +4999,6 @@ export class CreditApi extends BaseAPI {
|
|
|
6800
4999
|
* @param {number} [limit] Maximum number of events to return
|
|
6801
5000
|
* @param {*} [options] Override http request option.
|
|
6802
5001
|
* @throws {RequiredError}
|
|
6803
|
-
* @memberof CreditApi
|
|
6804
5002
|
*/
|
|
6805
5003
|
public listAgentIncomeEvents(agentId: string, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
6806
5004
|
return CreditApiFp(this.configuration).listAgentIncomeEvents(agentId, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6813,7 +5011,6 @@ export class CreditApi extends BaseAPI {
|
|
|
6813
5011
|
* @param {number} [limit] Maximum number of records to return
|
|
6814
5012
|
* @param {*} [options] Override http request option.
|
|
6815
5013
|
* @throws {RequiredError}
|
|
6816
|
-
* @memberof CreditApi
|
|
6817
5014
|
*/
|
|
6818
5015
|
public listTopupRecords(cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
6819
5016
|
return CreditApiFp(this.configuration).listTopupRecords(cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6828,7 +5025,6 @@ export class CreditApi extends BaseAPI {
|
|
|
6828
5025
|
* @param {number} [limit] Maximum number of events to return
|
|
6829
5026
|
* @param {*} [options] Override http request option.
|
|
6830
5027
|
* @throws {RequiredError}
|
|
6831
|
-
* @memberof CreditApi
|
|
6832
5028
|
*/
|
|
6833
5029
|
public listUserEvents(eventType?: Array<EventType> | null, direction?: Direction | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
6834
5030
|
return CreditApiFp(this.configuration).listUserEvents(eventType, direction, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6843,7 +5039,6 @@ export class CreditApi extends BaseAPI {
|
|
|
6843
5039
|
* @param {number} [limit] Maximum number of transactions to return
|
|
6844
5040
|
* @param {*} [options] Override http request option.
|
|
6845
5041
|
* @throws {RequiredError}
|
|
6846
|
-
* @memberof CreditApi
|
|
6847
5042
|
*/
|
|
6848
5043
|
public listUserTransactions(txType?: Array<TransactionType> | null, creditDebit?: CreditDebit | null, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig) {
|
|
6849
5044
|
return CreditApiFp(this.configuration).listUserTransactions(txType, creditDebit, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -6854,7 +5049,6 @@ export class CreditApi extends BaseAPI {
|
|
|
6854
5049
|
|
|
6855
5050
|
/**
|
|
6856
5051
|
* DraftApi - axios parameter creator
|
|
6857
|
-
* @export
|
|
6858
5052
|
*/
|
|
6859
5053
|
export const DraftApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6860
5054
|
return {
|
|
@@ -7182,7 +5376,6 @@ export const DraftApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
7182
5376
|
|
|
7183
5377
|
/**
|
|
7184
5378
|
* DraftApi - functional programming interface
|
|
7185
|
-
* @export
|
|
7186
5379
|
*/
|
|
7187
5380
|
export const DraftApiFp = function(configuration?: Configuration) {
|
|
7188
5381
|
const localVarAxiosParamCreator = DraftApiAxiosParamCreator(configuration)
|
|
@@ -7298,7 +5491,6 @@ export const DraftApiFp = function(configuration?: Configuration) {
|
|
|
7298
5491
|
|
|
7299
5492
|
/**
|
|
7300
5493
|
* DraftApi - factory interface
|
|
7301
|
-
* @export
|
|
7302
5494
|
*/
|
|
7303
5495
|
export const DraftApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7304
5496
|
const localVarFp = DraftApiFp(configuration)
|
|
@@ -7390,9 +5582,6 @@ export const DraftApiFactory = function (configuration?: Configuration, basePath
|
|
|
7390
5582
|
|
|
7391
5583
|
/**
|
|
7392
5584
|
* DraftApi - object-oriented interface
|
|
7393
|
-
* @export
|
|
7394
|
-
* @class DraftApi
|
|
7395
|
-
* @extends {BaseAPI}
|
|
7396
5585
|
*/
|
|
7397
5586
|
export class DraftApi extends BaseAPI {
|
|
7398
5587
|
/**
|
|
@@ -7401,7 +5590,6 @@ export class DraftApi extends BaseAPI {
|
|
|
7401
5590
|
* @param {AgentUserInput} agentUserInput
|
|
7402
5591
|
* @param {*} [options] Override http request option.
|
|
7403
5592
|
* @throws {RequiredError}
|
|
7404
|
-
* @memberof DraftApi
|
|
7405
5593
|
*/
|
|
7406
5594
|
public createAgentDraft(agentUserInput: AgentUserInput, options?: RawAxiosRequestConfig) {
|
|
7407
5595
|
return DraftApiFp(this.configuration).createAgentDraft(agentUserInput, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7413,7 +5601,6 @@ export class DraftApi extends BaseAPI {
|
|
|
7413
5601
|
* @param {string} draftId Draft ID
|
|
7414
5602
|
* @param {*} [options] Override http request option.
|
|
7415
5603
|
* @throws {RequiredError}
|
|
7416
|
-
* @memberof DraftApi
|
|
7417
5604
|
*/
|
|
7418
5605
|
public deleteAgentDraft(draftId: string, options?: RawAxiosRequestConfig) {
|
|
7419
5606
|
return DraftApiFp(this.configuration).deleteAgentDraft(draftId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7425,7 +5612,6 @@ export class DraftApi extends BaseAPI {
|
|
|
7425
5612
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
7426
5613
|
* @param {*} [options] Override http request option.
|
|
7427
5614
|
* @throws {RequiredError}
|
|
7428
|
-
* @memberof DraftApi
|
|
7429
5615
|
*/
|
|
7430
5616
|
public deployAgentFromDraft(agentDeployRequest: AgentDeployRequest, options?: RawAxiosRequestConfig) {
|
|
7431
5617
|
return DraftApiFp(this.configuration).deployAgentFromDraft(agentDeployRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7438,7 +5624,6 @@ export class DraftApi extends BaseAPI {
|
|
|
7438
5624
|
* @param {string} draftId Draft ID
|
|
7439
5625
|
* @param {*} [options] Override http request option.
|
|
7440
5626
|
* @throws {RequiredError}
|
|
7441
|
-
* @memberof DraftApi
|
|
7442
5627
|
*/
|
|
7443
5628
|
public getAgentDraftById(agentId: string, draftId: string, options?: RawAxiosRequestConfig) {
|
|
7444
5629
|
return DraftApiFp(this.configuration).getAgentDraftById(agentId, draftId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7450,7 +5635,6 @@ export class DraftApi extends BaseAPI {
|
|
|
7450
5635
|
* @param {string} agentId Agent ID
|
|
7451
5636
|
* @param {*} [options] Override http request option.
|
|
7452
5637
|
* @throws {RequiredError}
|
|
7453
|
-
* @memberof DraftApi
|
|
7454
5638
|
*/
|
|
7455
5639
|
public getAgentDrafts(agentId: string, options?: RawAxiosRequestConfig) {
|
|
7456
5640
|
return DraftApiFp(this.configuration).getAgentDrafts(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7462,7 +5646,6 @@ export class DraftApi extends BaseAPI {
|
|
|
7462
5646
|
* @param {string} agentId Agent ID
|
|
7463
5647
|
* @param {*} [options] Override http request option.
|
|
7464
5648
|
* @throws {RequiredError}
|
|
7465
|
-
* @memberof DraftApi
|
|
7466
5649
|
*/
|
|
7467
5650
|
public getAgentLatestDraft(agentId: string, options?: RawAxiosRequestConfig) {
|
|
7468
5651
|
return DraftApiFp(this.configuration).getAgentLatestDraft(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7474,7 +5657,6 @@ export class DraftApi extends BaseAPI {
|
|
|
7474
5657
|
* @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
|
|
7475
5658
|
* @param {*} [options] Override http request option.
|
|
7476
5659
|
* @throws {RequiredError}
|
|
7477
|
-
* @memberof DraftApi
|
|
7478
5660
|
*/
|
|
7479
5661
|
public getUserUnpublishedDrafts(hasDeployment?: boolean | null, options?: RawAxiosRequestConfig) {
|
|
7480
5662
|
return DraftApiFp(this.configuration).getUserUnpublishedDrafts(hasDeployment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7487,7 +5669,6 @@ export class DraftApi extends BaseAPI {
|
|
|
7487
5669
|
* @param {AgentUserInput} agentUserInput
|
|
7488
5670
|
* @param {*} [options] Override http request option.
|
|
7489
5671
|
* @throws {RequiredError}
|
|
7490
|
-
* @memberof DraftApi
|
|
7491
5672
|
*/
|
|
7492
5673
|
public updateAgentDraft(agentId: string, agentUserInput: AgentUserInput, options?: RawAxiosRequestConfig) {
|
|
7493
5674
|
return DraftApiFp(this.configuration).updateAgentDraft(agentId, agentUserInput, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7498,7 +5679,6 @@ export class DraftApi extends BaseAPI {
|
|
|
7498
5679
|
|
|
7499
5680
|
/**
|
|
7500
5681
|
* GeneratorApi - axios parameter creator
|
|
7501
|
-
* @export
|
|
7502
5682
|
*/
|
|
7503
5683
|
export const GeneratorApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7504
5684
|
return {
|
|
@@ -7624,7 +5804,6 @@ export const GeneratorApiAxiosParamCreator = function (configuration?: Configura
|
|
|
7624
5804
|
|
|
7625
5805
|
/**
|
|
7626
5806
|
* GeneratorApi - functional programming interface
|
|
7627
|
-
* @export
|
|
7628
5807
|
*/
|
|
7629
5808
|
export const GeneratorApiFp = function(configuration?: Configuration) {
|
|
7630
5809
|
const localVarAxiosParamCreator = GeneratorApiAxiosParamCreator(configuration)
|
|
@@ -7673,7 +5852,6 @@ export const GeneratorApiFp = function(configuration?: Configuration) {
|
|
|
7673
5852
|
|
|
7674
5853
|
/**
|
|
7675
5854
|
* GeneratorApi - factory interface
|
|
7676
|
-
* @export
|
|
7677
5855
|
*/
|
|
7678
5856
|
export const GeneratorApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7679
5857
|
const localVarFp = GeneratorApiFp(configuration)
|
|
@@ -7713,9 +5891,6 @@ export const GeneratorApiFactory = function (configuration?: Configuration, base
|
|
|
7713
5891
|
|
|
7714
5892
|
/**
|
|
7715
5893
|
* GeneratorApi - object-oriented interface
|
|
7716
|
-
* @export
|
|
7717
|
-
* @class GeneratorApi
|
|
7718
|
-
* @extends {BaseAPI}
|
|
7719
5894
|
*/
|
|
7720
5895
|
export class GeneratorApi extends BaseAPI {
|
|
7721
5896
|
/**
|
|
@@ -7724,7 +5899,6 @@ export class GeneratorApi extends BaseAPI {
|
|
|
7724
5899
|
* @param {AgentGenerateRequest} agentGenerateRequest
|
|
7725
5900
|
* @param {*} [options] Override http request option.
|
|
7726
5901
|
* @throws {RequiredError}
|
|
7727
|
-
* @memberof GeneratorApi
|
|
7728
5902
|
*/
|
|
7729
5903
|
public generateAgent(agentGenerateRequest: AgentGenerateRequest, options?: RawAxiosRequestConfig) {
|
|
7730
5904
|
return GeneratorApiFp(this.configuration).generateAgent(agentGenerateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7736,7 +5910,6 @@ export class GeneratorApi extends BaseAPI {
|
|
|
7736
5910
|
* @param {string} projectId
|
|
7737
5911
|
* @param {*} [options] Override http request option.
|
|
7738
5912
|
* @throws {RequiredError}
|
|
7739
|
-
* @memberof GeneratorApi
|
|
7740
5913
|
*/
|
|
7741
5914
|
public getGenerationHistory(projectId: string, options?: RawAxiosRequestConfig) {
|
|
7742
5915
|
return GeneratorApiFp(this.configuration).getGenerationHistory(projectId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7748,7 +5921,6 @@ export class GeneratorApi extends BaseAPI {
|
|
|
7748
5921
|
* @param {number} [limit]
|
|
7749
5922
|
* @param {*} [options] Override http request option.
|
|
7750
5923
|
* @throws {RequiredError}
|
|
7751
|
-
* @memberof GeneratorApi
|
|
7752
5924
|
*/
|
|
7753
5925
|
public getGenerations(limit?: number, options?: RawAxiosRequestConfig) {
|
|
7754
5926
|
return GeneratorApiFp(this.configuration).getGenerations(limit, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7759,7 +5931,6 @@ export class GeneratorApi extends BaseAPI {
|
|
|
7759
5931
|
|
|
7760
5932
|
/**
|
|
7761
5933
|
* HealthApi - axios parameter creator
|
|
7762
|
-
* @export
|
|
7763
5934
|
*/
|
|
7764
5935
|
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7765
5936
|
return {
|
|
@@ -7798,7 +5969,6 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
7798
5969
|
|
|
7799
5970
|
/**
|
|
7800
5971
|
* HealthApi - functional programming interface
|
|
7801
|
-
* @export
|
|
7802
5972
|
*/
|
|
7803
5973
|
export const HealthApiFp = function(configuration?: Configuration) {
|
|
7804
5974
|
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
@@ -7820,7 +5990,6 @@ export const HealthApiFp = function(configuration?: Configuration) {
|
|
|
7820
5990
|
|
|
7821
5991
|
/**
|
|
7822
5992
|
* HealthApi - factory interface
|
|
7823
|
-
* @export
|
|
7824
5993
|
*/
|
|
7825
5994
|
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7826
5995
|
const localVarFp = HealthApiFp(configuration)
|
|
@@ -7839,9 +6008,6 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
|
|
|
7839
6008
|
|
|
7840
6009
|
/**
|
|
7841
6010
|
* HealthApi - object-oriented interface
|
|
7842
|
-
* @export
|
|
7843
|
-
* @class HealthApi
|
|
7844
|
-
* @extends {BaseAPI}
|
|
7845
6011
|
*/
|
|
7846
6012
|
export class HealthApi extends BaseAPI {
|
|
7847
6013
|
/**
|
|
@@ -7849,7 +6015,6 @@ export class HealthApi extends BaseAPI {
|
|
|
7849
6015
|
* @summary Health check endpoint
|
|
7850
6016
|
* @param {*} [options] Override http request option.
|
|
7851
6017
|
* @throws {RequiredError}
|
|
7852
|
-
* @memberof HealthApi
|
|
7853
6018
|
*/
|
|
7854
6019
|
public healthCheck(options?: RawAxiosRequestConfig) {
|
|
7855
6020
|
return HealthApiFp(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -7860,7 +6025,6 @@ export class HealthApi extends BaseAPI {
|
|
|
7860
6025
|
|
|
7861
6026
|
/**
|
|
7862
6027
|
* MetadataApi - axios parameter creator
|
|
7863
|
-
* @export
|
|
7864
6028
|
*/
|
|
7865
6029
|
export const MetadataApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7866
6030
|
return {
|
|
@@ -8133,7 +6297,6 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
8133
6297
|
|
|
8134
6298
|
/**
|
|
8135
6299
|
* MetadataApi - functional programming interface
|
|
8136
|
-
* @export
|
|
8137
6300
|
*/
|
|
8138
6301
|
export const MetadataApiFp = function(configuration?: Configuration) {
|
|
8139
6302
|
const localVarAxiosParamCreator = MetadataApiAxiosParamCreator(configuration)
|
|
@@ -8180,7 +6343,7 @@ export const MetadataApiFp = function(configuration?: Configuration) {
|
|
|
8180
6343
|
* @param {*} [options] Override http request option.
|
|
8181
6344
|
* @throws {RequiredError}
|
|
8182
6345
|
*/
|
|
8183
|
-
async getLlms(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
6346
|
+
async getLlms(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LLMModelInfoWithProviderNameOutput>>> {
|
|
8184
6347
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getLlms(options);
|
|
8185
6348
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8186
6349
|
const localVarOperationServerBasePath = operationServerMap['MetadataApi.getLlms']?.[localVarOperationServerIndex]?.url;
|
|
@@ -8232,7 +6395,7 @@ export const MetadataApiFp = function(configuration?: Configuration) {
|
|
|
8232
6395
|
* @param {*} [options] Override http request option.
|
|
8233
6396
|
* @throws {RequiredError}
|
|
8234
6397
|
*/
|
|
8235
|
-
async getSkills(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
6398
|
+
async getSkills(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SkillOutput>>> {
|
|
8236
6399
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSkills(options);
|
|
8237
6400
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8238
6401
|
const localVarOperationServerBasePath = operationServerMap['MetadataApi.getSkills']?.[localVarOperationServerIndex]?.url;
|
|
@@ -8243,7 +6406,6 @@ export const MetadataApiFp = function(configuration?: Configuration) {
|
|
|
8243
6406
|
|
|
8244
6407
|
/**
|
|
8245
6408
|
* MetadataApi - factory interface
|
|
8246
|
-
* @export
|
|
8247
6409
|
*/
|
|
8248
6410
|
export const MetadataApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
8249
6411
|
const localVarFp = MetadataApiFp(configuration)
|
|
@@ -8281,7 +6443,7 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
|
|
|
8281
6443
|
* @param {*} [options] Override http request option.
|
|
8282
6444
|
* @throws {RequiredError}
|
|
8283
6445
|
*/
|
|
8284
|
-
getLlms(options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
6446
|
+
getLlms(options?: RawAxiosRequestConfig): AxiosPromise<Array<LLMModelInfoWithProviderNameOutput>> {
|
|
8285
6447
|
return localVarFp.getLlms(options).then((request) => request(axios, basePath));
|
|
8286
6448
|
},
|
|
8287
6449
|
/**
|
|
@@ -8321,7 +6483,7 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
|
|
|
8321
6483
|
* @param {*} [options] Override http request option.
|
|
8322
6484
|
* @throws {RequiredError}
|
|
8323
6485
|
*/
|
|
8324
|
-
getSkills(options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
6486
|
+
getSkills(options?: RawAxiosRequestConfig): AxiosPromise<Array<SkillOutput>> {
|
|
8325
6487
|
return localVarFp.getSkills(options).then((request) => request(axios, basePath));
|
|
8326
6488
|
},
|
|
8327
6489
|
};
|
|
@@ -8329,9 +6491,6 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
|
|
|
8329
6491
|
|
|
8330
6492
|
/**
|
|
8331
6493
|
* MetadataApi - object-oriented interface
|
|
8332
|
-
* @export
|
|
8333
|
-
* @class MetadataApi
|
|
8334
|
-
* @extends {BaseAPI}
|
|
8335
6494
|
*/
|
|
8336
6495
|
export class MetadataApi extends BaseAPI {
|
|
8337
6496
|
/**
|
|
@@ -8339,7 +6498,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
8339
6498
|
* @summary Get public agent schema
|
|
8340
6499
|
* @param {*} [options] Override http request option.
|
|
8341
6500
|
* @throws {RequiredError}
|
|
8342
|
-
* @memberof MetadataApi
|
|
8343
6501
|
*/
|
|
8344
6502
|
public getAgentPublicSchema(options?: RawAxiosRequestConfig) {
|
|
8345
6503
|
return MetadataApiFp(this.configuration).getAgentPublicSchema(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -8350,7 +6508,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
8350
6508
|
* @summary Get strict public agent schema
|
|
8351
6509
|
* @param {*} [options] Override http request option.
|
|
8352
6510
|
* @throws {RequiredError}
|
|
8353
|
-
* @memberof MetadataApi
|
|
8354
6511
|
*/
|
|
8355
6512
|
public getAgentPublicStrictSchema(options?: RawAxiosRequestConfig) {
|
|
8356
6513
|
return MetadataApiFp(this.configuration).getAgentPublicStrictSchema(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -8361,7 +6518,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
8361
6518
|
* @summary Get agent schema
|
|
8362
6519
|
* @param {*} [options] Override http request option.
|
|
8363
6520
|
* @throws {RequiredError}
|
|
8364
|
-
* @memberof MetadataApi
|
|
8365
6521
|
*/
|
|
8366
6522
|
public getAgentSchema(options?: RawAxiosRequestConfig) {
|
|
8367
6523
|
return MetadataApiFp(this.configuration).getAgentSchema(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -8372,7 +6528,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
8372
6528
|
* @summary Get all LLM models
|
|
8373
6529
|
* @param {*} [options] Override http request option.
|
|
8374
6530
|
* @throws {RequiredError}
|
|
8375
|
-
* @memberof MetadataApi
|
|
8376
6531
|
*/
|
|
8377
6532
|
public getLlms(options?: RawAxiosRequestConfig) {
|
|
8378
6533
|
return MetadataApiFp(this.configuration).getLlms(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -8383,7 +6538,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
8383
6538
|
* @summary Get metadata tags
|
|
8384
6539
|
* @param {*} [options] Override http request option.
|
|
8385
6540
|
* @throws {RequiredError}
|
|
8386
|
-
* @memberof MetadataApi
|
|
8387
6541
|
*/
|
|
8388
6542
|
public getMetadataTags(options?: RawAxiosRequestConfig) {
|
|
8389
6543
|
return MetadataApiFp(this.configuration).getMetadataTags(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -8397,7 +6551,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
8397
6551
|
* @param {string} ext Icon file extension
|
|
8398
6552
|
* @param {*} [options] Override http request option.
|
|
8399
6553
|
* @throws {RequiredError}
|
|
8400
|
-
* @memberof MetadataApi
|
|
8401
6554
|
*/
|
|
8402
6555
|
public getSkillIcon(skill: string, iconName: string, ext: string, options?: RawAxiosRequestConfig) {
|
|
8403
6556
|
return MetadataApiFp(this.configuration).getSkillIcon(skill, iconName, ext, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -8409,7 +6562,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
8409
6562
|
* @param {string} skill Skill name
|
|
8410
6563
|
* @param {*} [options] Override http request option.
|
|
8411
6564
|
* @throws {RequiredError}
|
|
8412
|
-
* @memberof MetadataApi
|
|
8413
6565
|
*/
|
|
8414
6566
|
public getSkillSchema(skill: string, options?: RawAxiosRequestConfig) {
|
|
8415
6567
|
return MetadataApiFp(this.configuration).getSkillSchema(skill, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -8420,7 +6572,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
8420
6572
|
* @summary Get all skills
|
|
8421
6573
|
* @param {*} [options] Override http request option.
|
|
8422
6574
|
* @throws {RequiredError}
|
|
8423
|
-
* @memberof MetadataApi
|
|
8424
6575
|
*/
|
|
8425
6576
|
public getSkills(options?: RawAxiosRequestConfig) {
|
|
8426
6577
|
return MetadataApiFp(this.configuration).getSkills(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -8431,7 +6582,6 @@ export class MetadataApi extends BaseAPI {
|
|
|
8431
6582
|
|
|
8432
6583
|
/**
|
|
8433
6584
|
* OAuthApi - axios parameter creator
|
|
8434
|
-
* @export
|
|
8435
6585
|
*/
|
|
8436
6586
|
export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
8437
6587
|
return {
|
|
@@ -8576,7 +6726,6 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
8576
6726
|
|
|
8577
6727
|
/**
|
|
8578
6728
|
* OAuthApi - functional programming interface
|
|
8579
|
-
* @export
|
|
8580
6729
|
*/
|
|
8581
6730
|
export const OAuthApiFp = function(configuration?: Configuration) {
|
|
8582
6731
|
const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
|
|
@@ -8628,7 +6777,6 @@ export const OAuthApiFp = function(configuration?: Configuration) {
|
|
|
8628
6777
|
|
|
8629
6778
|
/**
|
|
8630
6779
|
* OAuthApi - factory interface
|
|
8631
|
-
* @export
|
|
8632
6780
|
*/
|
|
8633
6781
|
export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
8634
6782
|
const localVarFp = OAuthApiFp(configuration)
|
|
@@ -8671,9 +6819,6 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
|
|
|
8671
6819
|
|
|
8672
6820
|
/**
|
|
8673
6821
|
* OAuthApi - object-oriented interface
|
|
8674
|
-
* @export
|
|
8675
|
-
* @class OAuthApi
|
|
8676
|
-
* @extends {BaseAPI}
|
|
8677
6822
|
*/
|
|
8678
6823
|
export class OAuthApi extends BaseAPI {
|
|
8679
6824
|
/**
|
|
@@ -8683,7 +6828,6 @@ export class OAuthApi extends BaseAPI {
|
|
|
8683
6828
|
* @param {string} redirectUri
|
|
8684
6829
|
* @param {*} [options] Override http request option.
|
|
8685
6830
|
* @throws {RequiredError}
|
|
8686
|
-
* @memberof OAuthApi
|
|
8687
6831
|
*/
|
|
8688
6832
|
public getTwitterAuthUrl(agentId: string, redirectUri: string, options?: RawAxiosRequestConfig) {
|
|
8689
6833
|
return OAuthApiFp(this.configuration).getTwitterAuthUrl(agentId, redirectUri, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -8697,7 +6841,6 @@ export class OAuthApi extends BaseAPI {
|
|
|
8697
6841
|
* @param {string | null} [error]
|
|
8698
6842
|
* @param {*} [options] Override http request option.
|
|
8699
6843
|
* @throws {RequiredError}
|
|
8700
|
-
* @memberof OAuthApi
|
|
8701
6844
|
*/
|
|
8702
6845
|
public twitterOauthCallback(state: string, code?: string | null, error?: string | null, options?: RawAxiosRequestConfig) {
|
|
8703
6846
|
return OAuthApiFp(this.configuration).twitterOauthCallback(state, code, error, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -8709,7 +6852,6 @@ export class OAuthApi extends BaseAPI {
|
|
|
8709
6852
|
* @param {string} agentId ID of the agent to unlink from X
|
|
8710
6853
|
* @param {*} [options] Override http request option.
|
|
8711
6854
|
* @throws {RequiredError}
|
|
8712
|
-
* @memberof OAuthApi
|
|
8713
6855
|
*/
|
|
8714
6856
|
public unlinkTwitter(agentId: string, options?: RawAxiosRequestConfig) {
|
|
8715
6857
|
return OAuthApiFp(this.configuration).unlinkTwitter(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -8720,7 +6862,6 @@ export class OAuthApi extends BaseAPI {
|
|
|
8720
6862
|
|
|
8721
6863
|
/**
|
|
8722
6864
|
* UserApi - axios parameter creator
|
|
8723
|
-
* @export
|
|
8724
6865
|
*/
|
|
8725
6866
|
export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
8726
6867
|
return {
|
|
@@ -8895,7 +7036,6 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
8895
7036
|
|
|
8896
7037
|
/**
|
|
8897
7038
|
* UserApi - functional programming interface
|
|
8898
|
-
* @export
|
|
8899
7039
|
*/
|
|
8900
7040
|
export const UserApiFp = function(configuration?: Configuration) {
|
|
8901
7041
|
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
|
|
@@ -8958,7 +7098,6 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
8958
7098
|
|
|
8959
7099
|
/**
|
|
8960
7100
|
* UserApi - factory interface
|
|
8961
|
-
* @export
|
|
8962
7101
|
*/
|
|
8963
7102
|
export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
8964
7103
|
const localVarFp = UserApiFp(configuration)
|
|
@@ -9009,9 +7148,6 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
9009
7148
|
|
|
9010
7149
|
/**
|
|
9011
7150
|
* UserApi - object-oriented interface
|
|
9012
|
-
* @export
|
|
9013
|
-
* @class UserApi
|
|
9014
|
-
* @extends {BaseAPI}
|
|
9015
7151
|
*/
|
|
9016
7152
|
export class UserApi extends BaseAPI {
|
|
9017
7153
|
/**
|
|
@@ -9019,7 +7155,6 @@ export class UserApi extends BaseAPI {
|
|
|
9019
7155
|
* @summary Get Current User
|
|
9020
7156
|
* @param {*} [options] Override http request option.
|
|
9021
7157
|
* @throws {RequiredError}
|
|
9022
|
-
* @memberof UserApi
|
|
9023
7158
|
*/
|
|
9024
7159
|
public getCurrentUser(options?: RawAxiosRequestConfig) {
|
|
9025
7160
|
return UserApiFp(this.configuration).getCurrentUser(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -9031,7 +7166,6 @@ export class UserApi extends BaseAPI {
|
|
|
9031
7166
|
* @param {string} agentId Agent ID
|
|
9032
7167
|
* @param {*} [options] Override http request option.
|
|
9033
7168
|
* @throws {RequiredError}
|
|
9034
|
-
* @memberof UserApi
|
|
9035
7169
|
*/
|
|
9036
7170
|
public getUserAgentById(agentId: string, options?: RawAxiosRequestConfig) {
|
|
9037
7171
|
return UserApiFp(this.configuration).getUserAgentById(agentId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -9045,7 +7179,6 @@ export class UserApi extends BaseAPI {
|
|
|
9045
7179
|
* @param {AgentState | null} [state] Filter agents by state in upstream_extra JSON field
|
|
9046
7180
|
* @param {*} [options] Override http request option.
|
|
9047
7181
|
* @throws {RequiredError}
|
|
9048
|
-
* @memberof UserApi
|
|
9049
7182
|
*/
|
|
9050
7183
|
public getUserAgents(cursor?: string | null, limit?: number, state?: AgentState | null, options?: RawAxiosRequestConfig) {
|
|
9051
7184
|
return UserApiFp(this.configuration).getUserAgents(cursor, limit, state, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -9057,7 +7190,6 @@ export class UserApi extends BaseAPI {
|
|
|
9057
7190
|
* @param {File} file File to upload
|
|
9058
7191
|
* @param {*} [options] Override http request option.
|
|
9059
7192
|
* @throws {RequiredError}
|
|
9060
|
-
* @memberof UserApi
|
|
9061
7193
|
*/
|
|
9062
7194
|
public uploadUserFile(file: File, options?: RawAxiosRequestConfig) {
|
|
9063
7195
|
return UserApiFp(this.configuration).uploadUserFile(file, options).then((request) => request(this.axios, this.basePath));
|