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