@crestal/nation-sdk 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +4 -2
- package/api.ts +94 -2117
- package/base.ts +1 -25
- package/common.ts +1 -38
- package/configuration.ts +1 -18
- package/dist/api.d.ts +46 -2116
- package/dist/api.js +97 -130
- package/dist/base.d.ts +1 -25
- package/dist/base.js +1 -20
- package/dist/common.d.ts +1 -38
- package/dist/common.js +1 -38
- package/dist/configuration.d.ts +1 -18
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/Agent.md +2 -2
- package/docs/AgentResponse.md +2 -2
- package/docs/FileUploadResponse.md +23 -0
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/UserApi.md +53 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Nation IntentKit API
|
|
6
6
|
* API for Nation IntentKit services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.7.
|
|
8
|
+
* The version of the OpenAPI document: 0.7.3
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -178,8 +178,6 @@ exports.AgentResponseShortTermMemoryStrategyEnum = {
|
|
|
178
178
|
};
|
|
179
179
|
/**
|
|
180
180
|
* Sort options for agents list.
|
|
181
|
-
* @export
|
|
182
|
-
* @enum {string}
|
|
183
181
|
*/
|
|
184
182
|
exports.AgentSortOption = {
|
|
185
183
|
CreatedAtDesc: 'created_at desc',
|
|
@@ -230,8 +228,6 @@ exports.AgentUserInputShortTermMemoryStrategyEnum = {
|
|
|
230
228
|
};
|
|
231
229
|
/**
|
|
232
230
|
* Type of message author.
|
|
233
|
-
* @export
|
|
234
|
-
* @enum {string}
|
|
235
231
|
*/
|
|
236
232
|
exports.AuthorType = {
|
|
237
233
|
Agent: 'agent',
|
|
@@ -246,8 +242,6 @@ exports.AuthorType = {
|
|
|
246
242
|
};
|
|
247
243
|
/**
|
|
248
244
|
* Type of chat message attachment.
|
|
249
|
-
* @export
|
|
250
|
-
* @enum {string}
|
|
251
245
|
*/
|
|
252
246
|
exports.ChatMessageAttachmentType = {
|
|
253
247
|
Link: 'link',
|
|
@@ -257,8 +251,6 @@ exports.ChatMessageAttachmentType = {
|
|
|
257
251
|
};
|
|
258
252
|
/**
|
|
259
253
|
* Credit or debit transaction.
|
|
260
|
-
* @export
|
|
261
|
-
* @enum {string}
|
|
262
254
|
*/
|
|
263
255
|
exports.CreditDebit = {
|
|
264
256
|
Credit: 'credit',
|
|
@@ -266,8 +258,6 @@ exports.CreditDebit = {
|
|
|
266
258
|
};
|
|
267
259
|
/**
|
|
268
260
|
* Credit type is used in db column names, do not change it.
|
|
269
|
-
* @export
|
|
270
|
-
* @enum {string}
|
|
271
261
|
*/
|
|
272
262
|
exports.CreditType = {
|
|
273
263
|
FreeCredits: 'free_credits',
|
|
@@ -276,8 +266,6 @@ exports.CreditType = {
|
|
|
276
266
|
};
|
|
277
267
|
/**
|
|
278
268
|
* Direction of credit flow.
|
|
279
|
-
* @export
|
|
280
|
-
* @enum {string}
|
|
281
269
|
*/
|
|
282
270
|
exports.Direction = {
|
|
283
271
|
Income: 'income',
|
|
@@ -285,8 +273,6 @@ exports.Direction = {
|
|
|
285
273
|
};
|
|
286
274
|
/**
|
|
287
275
|
* Type of credit event.
|
|
288
|
-
* @export
|
|
289
|
-
* @enum {string}
|
|
290
276
|
*/
|
|
291
277
|
exports.EventType = {
|
|
292
278
|
Memory: 'memory',
|
|
@@ -303,11 +289,6 @@ exports.EventType = {
|
|
|
303
289
|
EventReward: 'event_reward',
|
|
304
290
|
RechargeBonus: 'recharge_bonus'
|
|
305
291
|
};
|
|
306
|
-
/**
|
|
307
|
-
*
|
|
308
|
-
* @export
|
|
309
|
-
* @enum {string}
|
|
310
|
-
*/
|
|
311
292
|
exports.LLMProvider = {
|
|
312
293
|
Openai: 'openai',
|
|
313
294
|
Deepseek: 'deepseek',
|
|
@@ -318,8 +299,6 @@ exports.LLMProvider = {
|
|
|
318
299
|
};
|
|
319
300
|
/**
|
|
320
301
|
* Type of credit account owner.
|
|
321
|
-
* @export
|
|
322
|
-
* @enum {string}
|
|
323
302
|
*/
|
|
324
303
|
exports.OwnerType = {
|
|
325
304
|
User: 'user',
|
|
@@ -328,8 +307,6 @@ exports.OwnerType = {
|
|
|
328
307
|
};
|
|
329
308
|
/**
|
|
330
309
|
* Type of system message.
|
|
331
|
-
* @export
|
|
332
|
-
* @enum {string}
|
|
333
310
|
*/
|
|
334
311
|
exports.SystemMessageType = {
|
|
335
312
|
ServiceFeeError: 'service_fee_error',
|
|
@@ -341,8 +318,6 @@ exports.SystemMessageType = {
|
|
|
341
318
|
};
|
|
342
319
|
/**
|
|
343
320
|
* Type of credit transaction.
|
|
344
|
-
* @export
|
|
345
|
-
* @enum {string}
|
|
346
321
|
*/
|
|
347
322
|
exports.TransactionType = {
|
|
348
323
|
Pay: 'pay',
|
|
@@ -365,8 +340,6 @@ exports.TransactionType = {
|
|
|
365
340
|
};
|
|
366
341
|
/**
|
|
367
342
|
* Type of upstream transaction.
|
|
368
|
-
* @export
|
|
369
|
-
* @enum {string}
|
|
370
343
|
*/
|
|
371
344
|
exports.UpstreamType = {
|
|
372
345
|
Api: 'api',
|
|
@@ -376,7 +349,6 @@ exports.UpstreamType = {
|
|
|
376
349
|
};
|
|
377
350
|
/**
|
|
378
351
|
* AgentApi - axios parameter creator
|
|
379
|
-
* @export
|
|
380
352
|
*/
|
|
381
353
|
var AgentApiAxiosParamCreator = function (configuration) {
|
|
382
354
|
var _this = this;
|
|
@@ -986,7 +958,6 @@ var AgentApiAxiosParamCreator = function (configuration) {
|
|
|
986
958
|
exports.AgentApiAxiosParamCreator = AgentApiAxiosParamCreator;
|
|
987
959
|
/**
|
|
988
960
|
* AgentApi - functional programming interface
|
|
989
|
-
* @export
|
|
990
961
|
*/
|
|
991
962
|
var AgentApiFp = function (configuration) {
|
|
992
963
|
var localVarAxiosParamCreator = (0, exports.AgentApiAxiosParamCreator)(configuration);
|
|
@@ -1302,7 +1273,6 @@ var AgentApiFp = function (configuration) {
|
|
|
1302
1273
|
exports.AgentApiFp = AgentApiFp;
|
|
1303
1274
|
/**
|
|
1304
1275
|
* AgentApi - factory interface
|
|
1305
|
-
* @export
|
|
1306
1276
|
*/
|
|
1307
1277
|
var AgentApiFactory = function (configuration, basePath, axios) {
|
|
1308
1278
|
var localVarFp = (0, exports.AgentApiFp)(configuration);
|
|
@@ -1449,9 +1419,6 @@ var AgentApiFactory = function (configuration, basePath, axios) {
|
|
|
1449
1419
|
exports.AgentApiFactory = AgentApiFactory;
|
|
1450
1420
|
/**
|
|
1451
1421
|
* AgentApi - object-oriented interface
|
|
1452
|
-
* @export
|
|
1453
|
-
* @class AgentApi
|
|
1454
|
-
* @extends {BaseAPI}
|
|
1455
1422
|
*/
|
|
1456
1423
|
var AgentApi = /** @class */ (function (_super) {
|
|
1457
1424
|
__extends(AgentApi, _super);
|
|
@@ -1464,7 +1431,6 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1464
1431
|
* @param {AgentUpdate} [agentUpdate]
|
|
1465
1432
|
* @param {*} [options] Override http request option.
|
|
1466
1433
|
* @throws {RequiredError}
|
|
1467
|
-
* @memberof AgentApi
|
|
1468
1434
|
*/
|
|
1469
1435
|
AgentApi.prototype.createAgent = function (agentUpdate, options) {
|
|
1470
1436
|
var _this = this;
|
|
@@ -1476,7 +1442,6 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1476
1442
|
* @param {string} agentId ID of the agent to export
|
|
1477
1443
|
* @param {*} [options] Override http request option.
|
|
1478
1444
|
* @throws {RequiredError}
|
|
1479
|
-
* @memberof AgentApi
|
|
1480
1445
|
*/
|
|
1481
1446
|
AgentApi.prototype.exportAgent = function (agentId, options) {
|
|
1482
1447
|
var _this = this;
|
|
@@ -1488,7 +1453,6 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1488
1453
|
* @param {string} agentId ID of the agent to retrieve
|
|
1489
1454
|
* @param {*} [options] Override http request option.
|
|
1490
1455
|
* @throws {RequiredError}
|
|
1491
|
-
* @memberof AgentApi
|
|
1492
1456
|
*/
|
|
1493
1457
|
AgentApi.prototype.getAgent = function (agentId, options) {
|
|
1494
1458
|
var _this = this;
|
|
@@ -1500,7 +1464,6 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1500
1464
|
* @param {string} agentId ID of the agent
|
|
1501
1465
|
* @param {*} [options] Override http request option.
|
|
1502
1466
|
* @throws {RequiredError}
|
|
1503
|
-
* @memberof AgentApi
|
|
1504
1467
|
*/
|
|
1505
1468
|
AgentApi.prototype.getAgentApiKey = function (agentId, options) {
|
|
1506
1469
|
var _this = this;
|
|
@@ -1512,7 +1475,6 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1512
1475
|
* @param {string} agentId ID of the agent
|
|
1513
1476
|
* @param {*} [options] Override http request option.
|
|
1514
1477
|
* @throws {RequiredError}
|
|
1515
|
-
* @memberof AgentApi
|
|
1516
1478
|
*/
|
|
1517
1479
|
AgentApi.prototype.getAgentAssets = function (agentId, options) {
|
|
1518
1480
|
var _this = this;
|
|
@@ -1524,7 +1486,6 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1524
1486
|
* @param {string} aid ID of the agent
|
|
1525
1487
|
* @param {*} [options] Override http request option.
|
|
1526
1488
|
* @throws {RequiredError}
|
|
1527
|
-
* @memberof AgentApi
|
|
1528
1489
|
*/
|
|
1529
1490
|
AgentApi.prototype.getAgentStatistics = function (aid, options) {
|
|
1530
1491
|
var _this = this;
|
|
@@ -1538,7 +1499,6 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1538
1499
|
* @param {number} [limit] Maximum number of agents to return
|
|
1539
1500
|
* @param {*} [options] Override http request option.
|
|
1540
1501
|
* @throws {RequiredError}
|
|
1541
|
-
* @memberof AgentApi
|
|
1542
1502
|
*/
|
|
1543
1503
|
AgentApi.prototype.getAgents = function (sort, cursor, limit, options) {
|
|
1544
1504
|
var _this = this;
|
|
@@ -1552,7 +1512,6 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1552
1512
|
* @param {number} [limit] Maximum number of messages to return
|
|
1553
1513
|
* @param {*} [options] Override http request option.
|
|
1554
1514
|
* @throws {RequiredError}
|
|
1555
|
-
* @memberof AgentApi
|
|
1556
1515
|
*/
|
|
1557
1516
|
AgentApi.prototype.getSkillHistory = function (aid, cursor, limit, options) {
|
|
1558
1517
|
var _this = this;
|
|
@@ -1565,7 +1524,6 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1565
1524
|
* @param {File} file YAML file containing agent configuration
|
|
1566
1525
|
* @param {*} [options] Override http request option.
|
|
1567
1526
|
* @throws {RequiredError}
|
|
1568
|
-
* @memberof AgentApi
|
|
1569
1527
|
*/
|
|
1570
1528
|
AgentApi.prototype.importAgent = function (agentId, file, options) {
|
|
1571
1529
|
var _this = this;
|
|
@@ -1578,7 +1536,6 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1578
1536
|
* @param {AgentUpdate} [agentUpdate]
|
|
1579
1537
|
* @param {*} [options] Override http request option.
|
|
1580
1538
|
* @throws {RequiredError}
|
|
1581
|
-
* @memberof AgentApi
|
|
1582
1539
|
*/
|
|
1583
1540
|
AgentApi.prototype.overrideAgent = function (agentId, agentUpdate, options) {
|
|
1584
1541
|
var _this = this;
|
|
@@ -1590,7 +1547,6 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1590
1547
|
* @param {string} agentId ID of the agent
|
|
1591
1548
|
* @param {*} [options] Override http request option.
|
|
1592
1549
|
* @throws {RequiredError}
|
|
1593
|
-
* @memberof AgentApi
|
|
1594
1550
|
*/
|
|
1595
1551
|
AgentApi.prototype.resetAgentApiKey = function (agentId, options) {
|
|
1596
1552
|
var _this = this;
|
|
@@ -1602,7 +1558,6 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1602
1558
|
* @param {AgentUpdate} [agentUpdate]
|
|
1603
1559
|
* @param {*} [options] Override http request option.
|
|
1604
1560
|
* @throws {RequiredError}
|
|
1605
|
-
* @memberof AgentApi
|
|
1606
1561
|
*/
|
|
1607
1562
|
AgentApi.prototype.validateAgentCreate = function (agentUpdate, options) {
|
|
1608
1563
|
var _this = this;
|
|
@@ -1615,7 +1570,6 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1615
1570
|
* @param {AgentUpdate} [agentUpdate]
|
|
1616
1571
|
* @param {*} [options] Override http request option.
|
|
1617
1572
|
* @throws {RequiredError}
|
|
1618
|
-
* @memberof AgentApi
|
|
1619
1573
|
*/
|
|
1620
1574
|
AgentApi.prototype.validateAgentUpdate = function (agentId, agentUpdate, options) {
|
|
1621
1575
|
var _this = this;
|
|
@@ -1626,7 +1580,6 @@ var AgentApi = /** @class */ (function (_super) {
|
|
|
1626
1580
|
exports.AgentApi = AgentApi;
|
|
1627
1581
|
/**
|
|
1628
1582
|
* ChatApi - axios parameter creator
|
|
1629
|
-
* @export
|
|
1630
1583
|
*/
|
|
1631
1584
|
var ChatApiAxiosParamCreator = function (configuration) {
|
|
1632
1585
|
var _this = this;
|
|
@@ -2156,7 +2109,6 @@ var ChatApiAxiosParamCreator = function (configuration) {
|
|
|
2156
2109
|
exports.ChatApiAxiosParamCreator = ChatApiAxiosParamCreator;
|
|
2157
2110
|
/**
|
|
2158
2111
|
* ChatApi - functional programming interface
|
|
2159
|
-
* @export
|
|
2160
2112
|
*/
|
|
2161
2113
|
var ChatApiFp = function (configuration) {
|
|
2162
2114
|
var localVarAxiosParamCreator = (0, exports.ChatApiAxiosParamCreator)(configuration);
|
|
@@ -2408,7 +2360,6 @@ var ChatApiFp = function (configuration) {
|
|
|
2408
2360
|
exports.ChatApiFp = ChatApiFp;
|
|
2409
2361
|
/**
|
|
2410
2362
|
* ChatApi - factory interface
|
|
2411
|
-
* @export
|
|
2412
2363
|
*/
|
|
2413
2364
|
var ChatApiFactory = function (configuration, basePath, axios) {
|
|
2414
2365
|
var localVarFp = (0, exports.ChatApiFp)(configuration);
|
|
@@ -2530,9 +2481,6 @@ var ChatApiFactory = function (configuration, basePath, axios) {
|
|
|
2530
2481
|
exports.ChatApiFactory = ChatApiFactory;
|
|
2531
2482
|
/**
|
|
2532
2483
|
* ChatApi - object-oriented interface
|
|
2533
|
-
* @export
|
|
2534
|
-
* @class ChatApi
|
|
2535
|
-
* @extends {BaseAPI}
|
|
2536
2484
|
*/
|
|
2537
2485
|
var ChatApi = /** @class */ (function (_super) {
|
|
2538
2486
|
__extends(ChatApi, _super);
|
|
@@ -2545,7 +2493,6 @@ var ChatApi = /** @class */ (function (_super) {
|
|
|
2545
2493
|
* @param {string} aid Agent ID
|
|
2546
2494
|
* @param {*} [options] Override http request option.
|
|
2547
2495
|
* @throws {RequiredError}
|
|
2548
|
-
* @memberof ChatApi
|
|
2549
2496
|
*/
|
|
2550
2497
|
ChatApi.prototype.createChatThread = function (aid, options) {
|
|
2551
2498
|
var _this = this;
|
|
@@ -2558,7 +2505,6 @@ var ChatApi = /** @class */ (function (_super) {
|
|
|
2558
2505
|
* @param {string} chatId Chat ID
|
|
2559
2506
|
* @param {*} [options] Override http request option.
|
|
2560
2507
|
* @throws {RequiredError}
|
|
2561
|
-
* @memberof ChatApi
|
|
2562
2508
|
*/
|
|
2563
2509
|
ChatApi.prototype.deleteChatThread = function (aid, chatId, options) {
|
|
2564
2510
|
var _this = this;
|
|
@@ -2571,7 +2517,6 @@ var ChatApi = /** @class */ (function (_super) {
|
|
|
2571
2517
|
* @param {string} chatId Chat ID
|
|
2572
2518
|
* @param {*} [options] Override http request option.
|
|
2573
2519
|
* @throws {RequiredError}
|
|
2574
|
-
* @memberof ChatApi
|
|
2575
2520
|
*/
|
|
2576
2521
|
ChatApi.prototype.getChatThreadById = function (aid, chatId, options) {
|
|
2577
2522
|
var _this = this;
|
|
@@ -2583,7 +2528,6 @@ var ChatApi = /** @class */ (function (_super) {
|
|
|
2583
2528
|
* @param {string} messageId Message ID
|
|
2584
2529
|
* @param {*} [options] Override http request option.
|
|
2585
2530
|
* @throws {RequiredError}
|
|
2586
|
-
* @memberof ChatApi
|
|
2587
2531
|
*/
|
|
2588
2532
|
ChatApi.prototype.getMessageById = function (messageId, options) {
|
|
2589
2533
|
var _this = this;
|
|
@@ -2597,7 +2541,6 @@ var ChatApi = /** @class */ (function (_super) {
|
|
|
2597
2541
|
* @param {number} [limit] Maximum number of messages to return
|
|
2598
2542
|
* @param {*} [options] Override http request option.
|
|
2599
2543
|
* @throws {RequiredError}
|
|
2600
|
-
* @memberof ChatApi
|
|
2601
2544
|
*/
|
|
2602
2545
|
ChatApi.prototype.getSkillHistory = function (aid, cursor, limit, options) {
|
|
2603
2546
|
var _this = this;
|
|
@@ -2609,7 +2552,6 @@ var ChatApi = /** @class */ (function (_super) {
|
|
|
2609
2552
|
* @param {string} aid Agent ID
|
|
2610
2553
|
* @param {*} [options] Override http request option.
|
|
2611
2554
|
* @throws {RequiredError}
|
|
2612
|
-
* @memberof ChatApi
|
|
2613
2555
|
*/
|
|
2614
2556
|
ChatApi.prototype.listChatsForAgent = function (aid, options) {
|
|
2615
2557
|
var _this = this;
|
|
@@ -2624,7 +2566,6 @@ var ChatApi = /** @class */ (function (_super) {
|
|
|
2624
2566
|
* @param {number} [limit] Maximum number of messages to return
|
|
2625
2567
|
* @param {*} [options] Override http request option.
|
|
2626
2568
|
* @throws {RequiredError}
|
|
2627
|
-
* @memberof ChatApi
|
|
2628
2569
|
*/
|
|
2629
2570
|
ChatApi.prototype.listMessagesInChat = function (aid, chatId, cursor, limit, options) {
|
|
2630
2571
|
var _this = this;
|
|
@@ -2637,7 +2578,6 @@ var ChatApi = /** @class */ (function (_super) {
|
|
|
2637
2578
|
* @param {string} chatId Chat ID
|
|
2638
2579
|
* @param {*} [options] Override http request option.
|
|
2639
2580
|
* @throws {RequiredError}
|
|
2640
|
-
* @memberof ChatApi
|
|
2641
2581
|
*/
|
|
2642
2582
|
ChatApi.prototype.retryMessageInChat = function (aid, chatId, options) {
|
|
2643
2583
|
var _this = this;
|
|
@@ -2651,7 +2591,6 @@ var ChatApi = /** @class */ (function (_super) {
|
|
|
2651
2591
|
* @param {ChatMessageRequest} chatMessageRequest
|
|
2652
2592
|
* @param {*} [options] Override http request option.
|
|
2653
2593
|
* @throws {RequiredError}
|
|
2654
|
-
* @memberof ChatApi
|
|
2655
2594
|
*/
|
|
2656
2595
|
ChatApi.prototype.sendMessageToChat = function (aid, chatId, chatMessageRequest, options) {
|
|
2657
2596
|
var _this = this;
|
|
@@ -2665,7 +2604,6 @@ var ChatApi = /** @class */ (function (_super) {
|
|
|
2665
2604
|
* @param {ChatUpdateRequest} chatUpdateRequest
|
|
2666
2605
|
* @param {*} [options] Override http request option.
|
|
2667
2606
|
* @throws {RequiredError}
|
|
2668
|
-
* @memberof ChatApi
|
|
2669
2607
|
*/
|
|
2670
2608
|
ChatApi.prototype.updateChatThread = function (aid, chatId, chatUpdateRequest, options) {
|
|
2671
2609
|
var _this = this;
|
|
@@ -2676,7 +2614,6 @@ var ChatApi = /** @class */ (function (_super) {
|
|
|
2676
2614
|
exports.ChatApi = ChatApi;
|
|
2677
2615
|
/**
|
|
2678
2616
|
* CreditApi - axios parameter creator
|
|
2679
|
-
* @export
|
|
2680
2617
|
*/
|
|
2681
2618
|
var CreditApiAxiosParamCreator = function (configuration) {
|
|
2682
2619
|
var _this = this;
|
|
@@ -2949,7 +2886,6 @@ var CreditApiAxiosParamCreator = function (configuration) {
|
|
|
2949
2886
|
exports.CreditApiAxiosParamCreator = CreditApiAxiosParamCreator;
|
|
2950
2887
|
/**
|
|
2951
2888
|
* CreditApi - functional programming interface
|
|
2952
|
-
* @export
|
|
2953
2889
|
*/
|
|
2954
2890
|
var CreditApiFp = function (configuration) {
|
|
2955
2891
|
var localVarAxiosParamCreator = (0, exports.CreditApiAxiosParamCreator)(configuration);
|
|
@@ -3081,7 +3017,6 @@ var CreditApiFp = function (configuration) {
|
|
|
3081
3017
|
exports.CreditApiFp = CreditApiFp;
|
|
3082
3018
|
/**
|
|
3083
3019
|
* CreditApi - factory interface
|
|
3084
|
-
* @export
|
|
3085
3020
|
*/
|
|
3086
3021
|
var CreditApiFactory = function (configuration, basePath, axios) {
|
|
3087
3022
|
var localVarFp = (0, exports.CreditApiFp)(configuration);
|
|
@@ -3148,9 +3083,6 @@ var CreditApiFactory = function (configuration, basePath, axios) {
|
|
|
3148
3083
|
exports.CreditApiFactory = CreditApiFactory;
|
|
3149
3084
|
/**
|
|
3150
3085
|
* CreditApi - object-oriented interface
|
|
3151
|
-
* @export
|
|
3152
|
-
* @class CreditApi
|
|
3153
|
-
* @extends {BaseAPI}
|
|
3154
3086
|
*/
|
|
3155
3087
|
var CreditApi = /** @class */ (function (_super) {
|
|
3156
3088
|
__extends(CreditApi, _super);
|
|
@@ -3163,7 +3095,6 @@ var CreditApi = /** @class */ (function (_super) {
|
|
|
3163
3095
|
* @param {string} eventId Credit event ID
|
|
3164
3096
|
* @param {*} [options] Override http request option.
|
|
3165
3097
|
* @throws {RequiredError}
|
|
3166
|
-
* @memberof CreditApi
|
|
3167
3098
|
*/
|
|
3168
3099
|
CreditApi.prototype.fetchCreditEvent = function (eventId, options) {
|
|
3169
3100
|
var _this = this;
|
|
@@ -3174,7 +3105,6 @@ var CreditApi = /** @class */ (function (_super) {
|
|
|
3174
3105
|
* @summary Get User Account
|
|
3175
3106
|
* @param {*} [options] Override http request option.
|
|
3176
3107
|
* @throws {RequiredError}
|
|
3177
|
-
* @memberof CreditApi
|
|
3178
3108
|
*/
|
|
3179
3109
|
CreditApi.prototype.getUserAccount = function (options) {
|
|
3180
3110
|
var _this = this;
|
|
@@ -3188,7 +3118,6 @@ var CreditApi = /** @class */ (function (_super) {
|
|
|
3188
3118
|
* @param {number} [limit] Maximum number of events to return
|
|
3189
3119
|
* @param {*} [options] Override http request option.
|
|
3190
3120
|
* @throws {RequiredError}
|
|
3191
|
-
* @memberof CreditApi
|
|
3192
3121
|
*/
|
|
3193
3122
|
CreditApi.prototype.listAgentIncomeEvents = function (agentId, cursor, limit, options) {
|
|
3194
3123
|
var _this = this;
|
|
@@ -3203,7 +3132,6 @@ var CreditApi = /** @class */ (function (_super) {
|
|
|
3203
3132
|
* @param {number} [limit] Maximum number of events to return
|
|
3204
3133
|
* @param {*} [options] Override http request option.
|
|
3205
3134
|
* @throws {RequiredError}
|
|
3206
|
-
* @memberof CreditApi
|
|
3207
3135
|
*/
|
|
3208
3136
|
CreditApi.prototype.listUserEvents = function (eventType, direction, cursor, limit, options) {
|
|
3209
3137
|
var _this = this;
|
|
@@ -3218,7 +3146,6 @@ var CreditApi = /** @class */ (function (_super) {
|
|
|
3218
3146
|
* @param {number} [limit] Maximum number of transactions to return
|
|
3219
3147
|
* @param {*} [options] Override http request option.
|
|
3220
3148
|
* @throws {RequiredError}
|
|
3221
|
-
* @memberof CreditApi
|
|
3222
3149
|
*/
|
|
3223
3150
|
CreditApi.prototype.listUserTransactions = function (txType, creditDebit, cursor, limit, options) {
|
|
3224
3151
|
var _this = this;
|
|
@@ -3229,7 +3156,6 @@ var CreditApi = /** @class */ (function (_super) {
|
|
|
3229
3156
|
exports.CreditApi = CreditApi;
|
|
3230
3157
|
/**
|
|
3231
3158
|
* DraftApi - axios parameter creator
|
|
3232
|
-
* @export
|
|
3233
3159
|
*/
|
|
3234
3160
|
var DraftApiAxiosParamCreator = function (configuration) {
|
|
3235
3161
|
var _this = this;
|
|
@@ -3532,7 +3458,6 @@ var DraftApiAxiosParamCreator = function (configuration) {
|
|
|
3532
3458
|
exports.DraftApiAxiosParamCreator = DraftApiAxiosParamCreator;
|
|
3533
3459
|
/**
|
|
3534
3460
|
* DraftApi - functional programming interface
|
|
3535
|
-
* @export
|
|
3536
3461
|
*/
|
|
3537
3462
|
var DraftApiFp = function (configuration) {
|
|
3538
3463
|
var localVarAxiosParamCreator = (0, exports.DraftApiAxiosParamCreator)(configuration);
|
|
@@ -3682,7 +3607,6 @@ var DraftApiFp = function (configuration) {
|
|
|
3682
3607
|
exports.DraftApiFp = DraftApiFp;
|
|
3683
3608
|
/**
|
|
3684
3609
|
* DraftApi - factory interface
|
|
3685
|
-
* @export
|
|
3686
3610
|
*/
|
|
3687
3611
|
var DraftApiFactory = function (configuration, basePath, axios) {
|
|
3688
3612
|
var localVarFp = (0, exports.DraftApiFp)(configuration);
|
|
@@ -3754,9 +3678,6 @@ var DraftApiFactory = function (configuration, basePath, axios) {
|
|
|
3754
3678
|
exports.DraftApiFactory = DraftApiFactory;
|
|
3755
3679
|
/**
|
|
3756
3680
|
* DraftApi - object-oriented interface
|
|
3757
|
-
* @export
|
|
3758
|
-
* @class DraftApi
|
|
3759
|
-
* @extends {BaseAPI}
|
|
3760
3681
|
*/
|
|
3761
3682
|
var DraftApi = /** @class */ (function (_super) {
|
|
3762
3683
|
__extends(DraftApi, _super);
|
|
@@ -3769,7 +3690,6 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
3769
3690
|
* @param {AgentUserInput} agentUserInput
|
|
3770
3691
|
* @param {*} [options] Override http request option.
|
|
3771
3692
|
* @throws {RequiredError}
|
|
3772
|
-
* @memberof DraftApi
|
|
3773
3693
|
*/
|
|
3774
3694
|
DraftApi.prototype.createAgentDraft = function (agentUserInput, options) {
|
|
3775
3695
|
var _this = this;
|
|
@@ -3781,7 +3701,6 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
3781
3701
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
3782
3702
|
* @param {*} [options] Override http request option.
|
|
3783
3703
|
* @throws {RequiredError}
|
|
3784
|
-
* @memberof DraftApi
|
|
3785
3704
|
*/
|
|
3786
3705
|
DraftApi.prototype.deployAgentFromDraft = function (agentDeployRequest, options) {
|
|
3787
3706
|
var _this = this;
|
|
@@ -3794,7 +3713,6 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
3794
3713
|
* @param {string} draftId Draft ID
|
|
3795
3714
|
* @param {*} [options] Override http request option.
|
|
3796
3715
|
* @throws {RequiredError}
|
|
3797
|
-
* @memberof DraftApi
|
|
3798
3716
|
*/
|
|
3799
3717
|
DraftApi.prototype.getAgentDraftById = function (agentId, draftId, options) {
|
|
3800
3718
|
var _this = this;
|
|
@@ -3806,7 +3724,6 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
3806
3724
|
* @param {string} agentId Agent ID
|
|
3807
3725
|
* @param {*} [options] Override http request option.
|
|
3808
3726
|
* @throws {RequiredError}
|
|
3809
|
-
* @memberof DraftApi
|
|
3810
3727
|
*/
|
|
3811
3728
|
DraftApi.prototype.getAgentDrafts = function (agentId, options) {
|
|
3812
3729
|
var _this = this;
|
|
@@ -3818,7 +3735,6 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
3818
3735
|
* @param {string} agentId Agent ID
|
|
3819
3736
|
* @param {*} [options] Override http request option.
|
|
3820
3737
|
* @throws {RequiredError}
|
|
3821
|
-
* @memberof DraftApi
|
|
3822
3738
|
*/
|
|
3823
3739
|
DraftApi.prototype.getAgentLatestDraft = function (agentId, options) {
|
|
3824
3740
|
var _this = this;
|
|
@@ -3831,7 +3747,6 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
3831
3747
|
* @param {AgentUserInput} agentUserInput
|
|
3832
3748
|
* @param {*} [options] Override http request option.
|
|
3833
3749
|
* @throws {RequiredError}
|
|
3834
|
-
* @memberof DraftApi
|
|
3835
3750
|
*/
|
|
3836
3751
|
DraftApi.prototype.updateAgentDraft = function (agentId, agentUserInput, options) {
|
|
3837
3752
|
var _this = this;
|
|
@@ -3842,7 +3757,6 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
3842
3757
|
exports.DraftApi = DraftApi;
|
|
3843
3758
|
/**
|
|
3844
3759
|
* GeneratorApi - axios parameter creator
|
|
3845
|
-
* @export
|
|
3846
3760
|
*/
|
|
3847
3761
|
var GeneratorApiAxiosParamCreator = function (configuration) {
|
|
3848
3762
|
var _this = this;
|
|
@@ -3994,7 +3908,6 @@ var GeneratorApiAxiosParamCreator = function (configuration) {
|
|
|
3994
3908
|
exports.GeneratorApiAxiosParamCreator = GeneratorApiAxiosParamCreator;
|
|
3995
3909
|
/**
|
|
3996
3910
|
* GeneratorApi - functional programming interface
|
|
3997
|
-
* @export
|
|
3998
3911
|
*/
|
|
3999
3912
|
var GeneratorApiFp = function (configuration) {
|
|
4000
3913
|
var localVarAxiosParamCreator = (0, exports.GeneratorApiAxiosParamCreator)(configuration);
|
|
@@ -4073,7 +3986,6 @@ var GeneratorApiFp = function (configuration) {
|
|
|
4073
3986
|
exports.GeneratorApiFp = GeneratorApiFp;
|
|
4074
3987
|
/**
|
|
4075
3988
|
* GeneratorApi - factory interface
|
|
4076
|
-
* @export
|
|
4077
3989
|
*/
|
|
4078
3990
|
var GeneratorApiFactory = function (configuration, basePath, axios) {
|
|
4079
3991
|
var localVarFp = (0, exports.GeneratorApiFp)(configuration);
|
|
@@ -4113,9 +4025,6 @@ var GeneratorApiFactory = function (configuration, basePath, axios) {
|
|
|
4113
4025
|
exports.GeneratorApiFactory = GeneratorApiFactory;
|
|
4114
4026
|
/**
|
|
4115
4027
|
* GeneratorApi - object-oriented interface
|
|
4116
|
-
* @export
|
|
4117
|
-
* @class GeneratorApi
|
|
4118
|
-
* @extends {BaseAPI}
|
|
4119
4028
|
*/
|
|
4120
4029
|
var GeneratorApi = /** @class */ (function (_super) {
|
|
4121
4030
|
__extends(GeneratorApi, _super);
|
|
@@ -4128,7 +4037,6 @@ var GeneratorApi = /** @class */ (function (_super) {
|
|
|
4128
4037
|
* @param {AgentGenerateRequest} agentGenerateRequest
|
|
4129
4038
|
* @param {*} [options] Override http request option.
|
|
4130
4039
|
* @throws {RequiredError}
|
|
4131
|
-
* @memberof GeneratorApi
|
|
4132
4040
|
*/
|
|
4133
4041
|
GeneratorApi.prototype.generateAgent = function (agentGenerateRequest, options) {
|
|
4134
4042
|
var _this = this;
|
|
@@ -4140,7 +4048,6 @@ var GeneratorApi = /** @class */ (function (_super) {
|
|
|
4140
4048
|
* @param {string} projectId
|
|
4141
4049
|
* @param {*} [options] Override http request option.
|
|
4142
4050
|
* @throws {RequiredError}
|
|
4143
|
-
* @memberof GeneratorApi
|
|
4144
4051
|
*/
|
|
4145
4052
|
GeneratorApi.prototype.getGenerationHistory = function (projectId, options) {
|
|
4146
4053
|
var _this = this;
|
|
@@ -4152,7 +4059,6 @@ var GeneratorApi = /** @class */ (function (_super) {
|
|
|
4152
4059
|
* @param {number} [limit]
|
|
4153
4060
|
* @param {*} [options] Override http request option.
|
|
4154
4061
|
* @throws {RequiredError}
|
|
4155
|
-
* @memberof GeneratorApi
|
|
4156
4062
|
*/
|
|
4157
4063
|
GeneratorApi.prototype.getGenerations = function (limit, options) {
|
|
4158
4064
|
var _this = this;
|
|
@@ -4163,7 +4069,6 @@ var GeneratorApi = /** @class */ (function (_super) {
|
|
|
4163
4069
|
exports.GeneratorApi = GeneratorApi;
|
|
4164
4070
|
/**
|
|
4165
4071
|
* HealthApi - axios parameter creator
|
|
4166
|
-
* @export
|
|
4167
4072
|
*/
|
|
4168
4073
|
var HealthApiAxiosParamCreator = function (configuration) {
|
|
4169
4074
|
var _this = this;
|
|
@@ -4206,7 +4111,6 @@ var HealthApiAxiosParamCreator = function (configuration) {
|
|
|
4206
4111
|
exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
|
|
4207
4112
|
/**
|
|
4208
4113
|
* HealthApi - functional programming interface
|
|
4209
|
-
* @export
|
|
4210
4114
|
*/
|
|
4211
4115
|
var HealthApiFp = function (configuration) {
|
|
4212
4116
|
var localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
|
|
@@ -4238,7 +4142,6 @@ var HealthApiFp = function (configuration) {
|
|
|
4238
4142
|
exports.HealthApiFp = HealthApiFp;
|
|
4239
4143
|
/**
|
|
4240
4144
|
* HealthApi - factory interface
|
|
4241
|
-
* @export
|
|
4242
4145
|
*/
|
|
4243
4146
|
var HealthApiFactory = function (configuration, basePath, axios) {
|
|
4244
4147
|
var localVarFp = (0, exports.HealthApiFp)(configuration);
|
|
@@ -4257,9 +4160,6 @@ var HealthApiFactory = function (configuration, basePath, axios) {
|
|
|
4257
4160
|
exports.HealthApiFactory = HealthApiFactory;
|
|
4258
4161
|
/**
|
|
4259
4162
|
* HealthApi - object-oriented interface
|
|
4260
|
-
* @export
|
|
4261
|
-
* @class HealthApi
|
|
4262
|
-
* @extends {BaseAPI}
|
|
4263
4163
|
*/
|
|
4264
4164
|
var HealthApi = /** @class */ (function (_super) {
|
|
4265
4165
|
__extends(HealthApi, _super);
|
|
@@ -4271,7 +4171,6 @@ var HealthApi = /** @class */ (function (_super) {
|
|
|
4271
4171
|
* @summary Health check endpoint
|
|
4272
4172
|
* @param {*} [options] Override http request option.
|
|
4273
4173
|
* @throws {RequiredError}
|
|
4274
|
-
* @memberof HealthApi
|
|
4275
4174
|
*/
|
|
4276
4175
|
HealthApi.prototype.healthCheck = function (options) {
|
|
4277
4176
|
var _this = this;
|
|
@@ -4282,7 +4181,6 @@ var HealthApi = /** @class */ (function (_super) {
|
|
|
4282
4181
|
exports.HealthApi = HealthApi;
|
|
4283
4182
|
/**
|
|
4284
4183
|
* MetadataApi - axios parameter creator
|
|
4285
|
-
* @export
|
|
4286
4184
|
*/
|
|
4287
4185
|
var MetadataApiAxiosParamCreator = function (configuration) {
|
|
4288
4186
|
var _this = this;
|
|
@@ -4473,7 +4371,6 @@ var MetadataApiAxiosParamCreator = function (configuration) {
|
|
|
4473
4371
|
exports.MetadataApiAxiosParamCreator = MetadataApiAxiosParamCreator;
|
|
4474
4372
|
/**
|
|
4475
4373
|
* MetadataApi - functional programming interface
|
|
4476
|
-
* @export
|
|
4477
4374
|
*/
|
|
4478
4375
|
var MetadataApiFp = function (configuration) {
|
|
4479
4376
|
var localVarAxiosParamCreator = (0, exports.MetadataApiAxiosParamCreator)(configuration);
|
|
@@ -4597,7 +4494,6 @@ var MetadataApiFp = function (configuration) {
|
|
|
4597
4494
|
exports.MetadataApiFp = MetadataApiFp;
|
|
4598
4495
|
/**
|
|
4599
4496
|
* MetadataApi - factory interface
|
|
4600
|
-
* @export
|
|
4601
4497
|
*/
|
|
4602
4498
|
var MetadataApiFactory = function (configuration, basePath, axios) {
|
|
4603
4499
|
var localVarFp = (0, exports.MetadataApiFp)(configuration);
|
|
@@ -4656,9 +4552,6 @@ var MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
4656
4552
|
exports.MetadataApiFactory = MetadataApiFactory;
|
|
4657
4553
|
/**
|
|
4658
4554
|
* MetadataApi - object-oriented interface
|
|
4659
|
-
* @export
|
|
4660
|
-
* @class MetadataApi
|
|
4661
|
-
* @extends {BaseAPI}
|
|
4662
4555
|
*/
|
|
4663
4556
|
var MetadataApi = /** @class */ (function (_super) {
|
|
4664
4557
|
__extends(MetadataApi, _super);
|
|
@@ -4670,7 +4563,6 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
4670
4563
|
* @summary Get agent schema
|
|
4671
4564
|
* @param {*} [options] Override http request option.
|
|
4672
4565
|
* @throws {RequiredError}
|
|
4673
|
-
* @memberof MetadataApi
|
|
4674
4566
|
*/
|
|
4675
4567
|
MetadataApi.prototype.getAgentSchema = function (options) {
|
|
4676
4568
|
var _this = this;
|
|
@@ -4681,7 +4573,6 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
4681
4573
|
* @summary Get all LLM models
|
|
4682
4574
|
* @param {*} [options] Override http request option.
|
|
4683
4575
|
* @throws {RequiredError}
|
|
4684
|
-
* @memberof MetadataApi
|
|
4685
4576
|
*/
|
|
4686
4577
|
MetadataApi.prototype.getLlms = function (options) {
|
|
4687
4578
|
var _this = this;
|
|
@@ -4695,7 +4586,6 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
4695
4586
|
* @param {string} ext Icon file extension
|
|
4696
4587
|
* @param {*} [options] Override http request option.
|
|
4697
4588
|
* @throws {RequiredError}
|
|
4698
|
-
* @memberof MetadataApi
|
|
4699
4589
|
*/
|
|
4700
4590
|
MetadataApi.prototype.getSkillIcon = function (skill, iconName, ext, options) {
|
|
4701
4591
|
var _this = this;
|
|
@@ -4707,7 +4597,6 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
4707
4597
|
* @param {string} skill Skill name
|
|
4708
4598
|
* @param {*} [options] Override http request option.
|
|
4709
4599
|
* @throws {RequiredError}
|
|
4710
|
-
* @memberof MetadataApi
|
|
4711
4600
|
*/
|
|
4712
4601
|
MetadataApi.prototype.getSkillSchema = function (skill, options) {
|
|
4713
4602
|
var _this = this;
|
|
@@ -4718,7 +4607,6 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
4718
4607
|
* @summary Get all skills
|
|
4719
4608
|
* @param {*} [options] Override http request option.
|
|
4720
4609
|
* @throws {RequiredError}
|
|
4721
|
-
* @memberof MetadataApi
|
|
4722
4610
|
*/
|
|
4723
4611
|
MetadataApi.prototype.getSkills = function (options) {
|
|
4724
4612
|
var _this = this;
|
|
@@ -4729,7 +4617,6 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
4729
4617
|
exports.MetadataApi = MetadataApi;
|
|
4730
4618
|
/**
|
|
4731
4619
|
* OAuthApi - axios parameter creator
|
|
4732
|
-
* @export
|
|
4733
4620
|
*/
|
|
4734
4621
|
var OAuthApiAxiosParamCreator = function (configuration) {
|
|
4735
4622
|
var _this = this;
|
|
@@ -4890,7 +4777,6 @@ var OAuthApiAxiosParamCreator = function (configuration) {
|
|
|
4890
4777
|
exports.OAuthApiAxiosParamCreator = OAuthApiAxiosParamCreator;
|
|
4891
4778
|
/**
|
|
4892
4779
|
* OAuthApi - functional programming interface
|
|
4893
|
-
* @export
|
|
4894
4780
|
*/
|
|
4895
4781
|
var OAuthApiFp = function (configuration) {
|
|
4896
4782
|
var localVarAxiosParamCreator = (0, exports.OAuthApiAxiosParamCreator)(configuration);
|
|
@@ -4972,7 +4858,6 @@ var OAuthApiFp = function (configuration) {
|
|
|
4972
4858
|
exports.OAuthApiFp = OAuthApiFp;
|
|
4973
4859
|
/**
|
|
4974
4860
|
* OAuthApi - factory interface
|
|
4975
|
-
* @export
|
|
4976
4861
|
*/
|
|
4977
4862
|
var OAuthApiFactory = function (configuration, basePath, axios) {
|
|
4978
4863
|
var localVarFp = (0, exports.OAuthApiFp)(configuration);
|
|
@@ -5015,9 +4900,6 @@ var OAuthApiFactory = function (configuration, basePath, axios) {
|
|
|
5015
4900
|
exports.OAuthApiFactory = OAuthApiFactory;
|
|
5016
4901
|
/**
|
|
5017
4902
|
* OAuthApi - object-oriented interface
|
|
5018
|
-
* @export
|
|
5019
|
-
* @class OAuthApi
|
|
5020
|
-
* @extends {BaseAPI}
|
|
5021
4903
|
*/
|
|
5022
4904
|
var OAuthApi = /** @class */ (function (_super) {
|
|
5023
4905
|
__extends(OAuthApi, _super);
|
|
@@ -5031,7 +4913,6 @@ var OAuthApi = /** @class */ (function (_super) {
|
|
|
5031
4913
|
* @param {string} redirectUri
|
|
5032
4914
|
* @param {*} [options] Override http request option.
|
|
5033
4915
|
* @throws {RequiredError}
|
|
5034
|
-
* @memberof OAuthApi
|
|
5035
4916
|
*/
|
|
5036
4917
|
OAuthApi.prototype.getTwitterAuthUrl = function (agentId, redirectUri, options) {
|
|
5037
4918
|
var _this = this;
|
|
@@ -5045,7 +4926,6 @@ var OAuthApi = /** @class */ (function (_super) {
|
|
|
5045
4926
|
* @param {string | null} [error]
|
|
5046
4927
|
* @param {*} [options] Override http request option.
|
|
5047
4928
|
* @throws {RequiredError}
|
|
5048
|
-
* @memberof OAuthApi
|
|
5049
4929
|
*/
|
|
5050
4930
|
OAuthApi.prototype.twitterOauthCallback = function (state, code, error, options) {
|
|
5051
4931
|
var _this = this;
|
|
@@ -5057,7 +4937,6 @@ var OAuthApi = /** @class */ (function (_super) {
|
|
|
5057
4937
|
* @param {string} agentId ID of the agent to unlink from X
|
|
5058
4938
|
* @param {*} [options] Override http request option.
|
|
5059
4939
|
* @throws {RequiredError}
|
|
5060
|
-
* @memberof OAuthApi
|
|
5061
4940
|
*/
|
|
5062
4941
|
OAuthApi.prototype.unlinkTwitter = function (agentId, options) {
|
|
5063
4942
|
var _this = this;
|
|
@@ -5068,7 +4947,6 @@ var OAuthApi = /** @class */ (function (_super) {
|
|
|
5068
4947
|
exports.OAuthApi = OAuthApi;
|
|
5069
4948
|
/**
|
|
5070
4949
|
* UserApi - axios parameter creator
|
|
5071
|
-
* @export
|
|
5072
4950
|
*/
|
|
5073
4951
|
var UserApiAxiosParamCreator = function (configuration) {
|
|
5074
4952
|
var _this = this;
|
|
@@ -5171,12 +5049,63 @@ var UserApiAxiosParamCreator = function (configuration) {
|
|
|
5171
5049
|
});
|
|
5172
5050
|
});
|
|
5173
5051
|
},
|
|
5052
|
+
/**
|
|
5053
|
+
* Upload a file for the authenticated user. **Form Data:** * `file` - File to upload (supports images, videos, audio, and PDF files) **Returns:** * `FileUploadResponse` - Contains the CDN URL and unique identifier of the uploaded file **Raises:** * `400` - Invalid file type or file too large * `500` - Upload failed
|
|
5054
|
+
* @summary Upload User File
|
|
5055
|
+
* @param {File} file File to upload
|
|
5056
|
+
* @param {*} [options] Override http request option.
|
|
5057
|
+
* @throws {RequiredError}
|
|
5058
|
+
*/
|
|
5059
|
+
uploadUserFile: function (file_1) {
|
|
5060
|
+
var args_1 = [];
|
|
5061
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
5062
|
+
args_1[_i - 1] = arguments[_i];
|
|
5063
|
+
}
|
|
5064
|
+
return __awaiter(_this, __spreadArray([file_1], args_1, true), void 0, function (file, options) {
|
|
5065
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
5066
|
+
if (options === void 0) { options = {}; }
|
|
5067
|
+
return __generator(this, function (_a) {
|
|
5068
|
+
switch (_a.label) {
|
|
5069
|
+
case 0:
|
|
5070
|
+
// verify required parameter 'file' is not null or undefined
|
|
5071
|
+
(0, common_1.assertParamExists)('uploadUserFile', 'file', file);
|
|
5072
|
+
localVarPath = "/user/upload";
|
|
5073
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5074
|
+
if (configuration) {
|
|
5075
|
+
baseOptions = configuration.baseOptions;
|
|
5076
|
+
}
|
|
5077
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
5078
|
+
localVarHeaderParameter = {};
|
|
5079
|
+
localVarQueryParameter = {};
|
|
5080
|
+
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
5081
|
+
// authentication HTTPBearer required
|
|
5082
|
+
// http bearer authentication required
|
|
5083
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
5084
|
+
case 1:
|
|
5085
|
+
// authentication HTTPBearer required
|
|
5086
|
+
// http bearer authentication required
|
|
5087
|
+
_a.sent();
|
|
5088
|
+
if (file !== undefined) {
|
|
5089
|
+
localVarFormParams.append('file', file);
|
|
5090
|
+
}
|
|
5091
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
5092
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5093
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5094
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5095
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
5096
|
+
return [2 /*return*/, {
|
|
5097
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5098
|
+
options: localVarRequestOptions,
|
|
5099
|
+
}];
|
|
5100
|
+
}
|
|
5101
|
+
});
|
|
5102
|
+
});
|
|
5103
|
+
},
|
|
5174
5104
|
};
|
|
5175
5105
|
};
|
|
5176
5106
|
exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
|
|
5177
5107
|
/**
|
|
5178
5108
|
* UserApi - functional programming interface
|
|
5179
|
-
* @export
|
|
5180
5109
|
*/
|
|
5181
5110
|
var UserApiFp = function (configuration) {
|
|
5182
5111
|
var localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
|
|
@@ -5228,12 +5157,34 @@ var UserApiFp = function (configuration) {
|
|
|
5228
5157
|
});
|
|
5229
5158
|
});
|
|
5230
5159
|
},
|
|
5160
|
+
/**
|
|
5161
|
+
* Upload a file for the authenticated user. **Form Data:** * `file` - File to upload (supports images, videos, audio, and PDF files) **Returns:** * `FileUploadResponse` - Contains the CDN URL and unique identifier of the uploaded file **Raises:** * `400` - Invalid file type or file too large * `500` - Upload failed
|
|
5162
|
+
* @summary Upload User File
|
|
5163
|
+
* @param {File} file File to upload
|
|
5164
|
+
* @param {*} [options] Override http request option.
|
|
5165
|
+
* @throws {RequiredError}
|
|
5166
|
+
*/
|
|
5167
|
+
uploadUserFile: function (file, options) {
|
|
5168
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5169
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
5170
|
+
var _a, _b, _c;
|
|
5171
|
+
return __generator(this, function (_d) {
|
|
5172
|
+
switch (_d.label) {
|
|
5173
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadUserFile(file, options)];
|
|
5174
|
+
case 1:
|
|
5175
|
+
localVarAxiosArgs = _d.sent();
|
|
5176
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5177
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.uploadUserFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5178
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
5179
|
+
}
|
|
5180
|
+
});
|
|
5181
|
+
});
|
|
5182
|
+
},
|
|
5231
5183
|
};
|
|
5232
5184
|
};
|
|
5233
5185
|
exports.UserApiFp = UserApiFp;
|
|
5234
5186
|
/**
|
|
5235
5187
|
* UserApi - factory interface
|
|
5236
|
-
* @export
|
|
5237
5188
|
*/
|
|
5238
5189
|
var UserApiFactory = function (configuration, basePath, axios) {
|
|
5239
5190
|
var localVarFp = (0, exports.UserApiFp)(configuration);
|
|
@@ -5259,14 +5210,21 @@ var UserApiFactory = function (configuration, basePath, axios) {
|
|
|
5259
5210
|
getUserAgents: function (cursor, limit, options) {
|
|
5260
5211
|
return localVarFp.getUserAgents(cursor, limit, options).then(function (request) { return request(axios, basePath); });
|
|
5261
5212
|
},
|
|
5213
|
+
/**
|
|
5214
|
+
* Upload a file for the authenticated user. **Form Data:** * `file` - File to upload (supports images, videos, audio, and PDF files) **Returns:** * `FileUploadResponse` - Contains the CDN URL and unique identifier of the uploaded file **Raises:** * `400` - Invalid file type or file too large * `500` - Upload failed
|
|
5215
|
+
* @summary Upload User File
|
|
5216
|
+
* @param {File} file File to upload
|
|
5217
|
+
* @param {*} [options] Override http request option.
|
|
5218
|
+
* @throws {RequiredError}
|
|
5219
|
+
*/
|
|
5220
|
+
uploadUserFile: function (file, options) {
|
|
5221
|
+
return localVarFp.uploadUserFile(file, options).then(function (request) { return request(axios, basePath); });
|
|
5222
|
+
},
|
|
5262
5223
|
};
|
|
5263
5224
|
};
|
|
5264
5225
|
exports.UserApiFactory = UserApiFactory;
|
|
5265
5226
|
/**
|
|
5266
5227
|
* UserApi - object-oriented interface
|
|
5267
|
-
* @export
|
|
5268
|
-
* @class UserApi
|
|
5269
|
-
* @extends {BaseAPI}
|
|
5270
5228
|
*/
|
|
5271
5229
|
var UserApi = /** @class */ (function (_super) {
|
|
5272
5230
|
__extends(UserApi, _super);
|
|
@@ -5279,7 +5237,6 @@ var UserApi = /** @class */ (function (_super) {
|
|
|
5279
5237
|
* @param {string} agentId Agent ID
|
|
5280
5238
|
* @param {*} [options] Override http request option.
|
|
5281
5239
|
* @throws {RequiredError}
|
|
5282
|
-
* @memberof UserApi
|
|
5283
5240
|
*/
|
|
5284
5241
|
UserApi.prototype.getUserAgentById = function (agentId, options) {
|
|
5285
5242
|
var _this = this;
|
|
@@ -5292,12 +5249,22 @@ var UserApi = /** @class */ (function (_super) {
|
|
|
5292
5249
|
* @param {number} [limit] Maximum number of agents to return
|
|
5293
5250
|
* @param {*} [options] Override http request option.
|
|
5294
5251
|
* @throws {RequiredError}
|
|
5295
|
-
* @memberof UserApi
|
|
5296
5252
|
*/
|
|
5297
5253
|
UserApi.prototype.getUserAgents = function (cursor, limit, options) {
|
|
5298
5254
|
var _this = this;
|
|
5299
5255
|
return (0, exports.UserApiFp)(this.configuration).getUserAgents(cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5300
5256
|
};
|
|
5257
|
+
/**
|
|
5258
|
+
* Upload a file for the authenticated user. **Form Data:** * `file` - File to upload (supports images, videos, audio, and PDF files) **Returns:** * `FileUploadResponse` - Contains the CDN URL and unique identifier of the uploaded file **Raises:** * `400` - Invalid file type or file too large * `500` - Upload failed
|
|
5259
|
+
* @summary Upload User File
|
|
5260
|
+
* @param {File} file File to upload
|
|
5261
|
+
* @param {*} [options] Override http request option.
|
|
5262
|
+
* @throws {RequiredError}
|
|
5263
|
+
*/
|
|
5264
|
+
UserApi.prototype.uploadUserFile = function (file, options) {
|
|
5265
|
+
var _this = this;
|
|
5266
|
+
return (0, exports.UserApiFp)(this.configuration).uploadUserFile(file, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5267
|
+
};
|
|
5301
5268
|
return UserApi;
|
|
5302
5269
|
}(base_1.BaseAPI));
|
|
5303
5270
|
exports.UserApi = UserApi;
|