@crestal/nation-sdk 0.7.2 → 0.7.4
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 +5 -2
- package/api.ts +160 -2118
- package/base.ts +1 -25
- package/common.ts +1 -38
- package/configuration.ts +1 -18
- package/dist/api.d.ts +78 -2120
- package/dist/api.js +181 -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/DraftApi.md +45 -0
- 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.4
|
|
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;
|
|
@@ -3475,6 +3401,49 @@ var DraftApiAxiosParamCreator = function (configuration) {
|
|
|
3475
3401
|
});
|
|
3476
3402
|
});
|
|
3477
3403
|
},
|
|
3404
|
+
/**
|
|
3405
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
3406
|
+
* @summary Get User Unpublished Drafts
|
|
3407
|
+
* @param {*} [options] Override http request option.
|
|
3408
|
+
* @throws {RequiredError}
|
|
3409
|
+
*/
|
|
3410
|
+
getUserUnpublishedDrafts: function () {
|
|
3411
|
+
var args_1 = [];
|
|
3412
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3413
|
+
args_1[_i] = arguments[_i];
|
|
3414
|
+
}
|
|
3415
|
+
return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
|
|
3416
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3417
|
+
if (options === void 0) { options = {}; }
|
|
3418
|
+
return __generator(this, function (_a) {
|
|
3419
|
+
switch (_a.label) {
|
|
3420
|
+
case 0:
|
|
3421
|
+
localVarPath = "/agent/drafts";
|
|
3422
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3423
|
+
if (configuration) {
|
|
3424
|
+
baseOptions = configuration.baseOptions;
|
|
3425
|
+
}
|
|
3426
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
3427
|
+
localVarHeaderParameter = {};
|
|
3428
|
+
localVarQueryParameter = {};
|
|
3429
|
+
// authentication HTTPBearer required
|
|
3430
|
+
// http bearer authentication required
|
|
3431
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
3432
|
+
case 1:
|
|
3433
|
+
// authentication HTTPBearer required
|
|
3434
|
+
// http bearer authentication required
|
|
3435
|
+
_a.sent();
|
|
3436
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3437
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3438
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3439
|
+
return [2 /*return*/, {
|
|
3440
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3441
|
+
options: localVarRequestOptions,
|
|
3442
|
+
}];
|
|
3443
|
+
}
|
|
3444
|
+
});
|
|
3445
|
+
});
|
|
3446
|
+
},
|
|
3478
3447
|
/**
|
|
3479
3448
|
* Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
3480
3449
|
* @summary Update Agent Draft
|
|
@@ -3532,7 +3501,6 @@ var DraftApiAxiosParamCreator = function (configuration) {
|
|
|
3532
3501
|
exports.DraftApiAxiosParamCreator = DraftApiAxiosParamCreator;
|
|
3533
3502
|
/**
|
|
3534
3503
|
* DraftApi - functional programming interface
|
|
3535
|
-
* @export
|
|
3536
3504
|
*/
|
|
3537
3505
|
var DraftApiFp = function (configuration) {
|
|
3538
3506
|
var localVarAxiosParamCreator = (0, exports.DraftApiAxiosParamCreator)(configuration);
|
|
@@ -3653,6 +3621,28 @@ var DraftApiFp = function (configuration) {
|
|
|
3653
3621
|
});
|
|
3654
3622
|
});
|
|
3655
3623
|
},
|
|
3624
|
+
/**
|
|
3625
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
3626
|
+
* @summary Get User Unpublished Drafts
|
|
3627
|
+
* @param {*} [options] Override http request option.
|
|
3628
|
+
* @throws {RequiredError}
|
|
3629
|
+
*/
|
|
3630
|
+
getUserUnpublishedDrafts: function (options) {
|
|
3631
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3632
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3633
|
+
var _a, _b, _c;
|
|
3634
|
+
return __generator(this, function (_d) {
|
|
3635
|
+
switch (_d.label) {
|
|
3636
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserUnpublishedDrafts(options)];
|
|
3637
|
+
case 1:
|
|
3638
|
+
localVarAxiosArgs = _d.sent();
|
|
3639
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3640
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DraftApi.getUserUnpublishedDrafts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3641
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3642
|
+
}
|
|
3643
|
+
});
|
|
3644
|
+
});
|
|
3645
|
+
},
|
|
3656
3646
|
/**
|
|
3657
3647
|
* Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
3658
3648
|
* @summary Update Agent Draft
|
|
@@ -3682,7 +3672,6 @@ var DraftApiFp = function (configuration) {
|
|
|
3682
3672
|
exports.DraftApiFp = DraftApiFp;
|
|
3683
3673
|
/**
|
|
3684
3674
|
* DraftApi - factory interface
|
|
3685
|
-
* @export
|
|
3686
3675
|
*/
|
|
3687
3676
|
var DraftApiFactory = function (configuration, basePath, axios) {
|
|
3688
3677
|
var localVarFp = (0, exports.DraftApiFp)(configuration);
|
|
@@ -3738,6 +3727,15 @@ var DraftApiFactory = function (configuration, basePath, axios) {
|
|
|
3738
3727
|
getAgentLatestDraft: function (agentId, options) {
|
|
3739
3728
|
return localVarFp.getAgentLatestDraft(agentId, options).then(function (request) { return request(axios, basePath); });
|
|
3740
3729
|
},
|
|
3730
|
+
/**
|
|
3731
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
3732
|
+
* @summary Get User Unpublished Drafts
|
|
3733
|
+
* @param {*} [options] Override http request option.
|
|
3734
|
+
* @throws {RequiredError}
|
|
3735
|
+
*/
|
|
3736
|
+
getUserUnpublishedDrafts: function (options) {
|
|
3737
|
+
return localVarFp.getUserUnpublishedDrafts(options).then(function (request) { return request(axios, basePath); });
|
|
3738
|
+
},
|
|
3741
3739
|
/**
|
|
3742
3740
|
* Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
3743
3741
|
* @summary Update Agent Draft
|
|
@@ -3754,9 +3752,6 @@ var DraftApiFactory = function (configuration, basePath, axios) {
|
|
|
3754
3752
|
exports.DraftApiFactory = DraftApiFactory;
|
|
3755
3753
|
/**
|
|
3756
3754
|
* DraftApi - object-oriented interface
|
|
3757
|
-
* @export
|
|
3758
|
-
* @class DraftApi
|
|
3759
|
-
* @extends {BaseAPI}
|
|
3760
3755
|
*/
|
|
3761
3756
|
var DraftApi = /** @class */ (function (_super) {
|
|
3762
3757
|
__extends(DraftApi, _super);
|
|
@@ -3769,7 +3764,6 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
3769
3764
|
* @param {AgentUserInput} agentUserInput
|
|
3770
3765
|
* @param {*} [options] Override http request option.
|
|
3771
3766
|
* @throws {RequiredError}
|
|
3772
|
-
* @memberof DraftApi
|
|
3773
3767
|
*/
|
|
3774
3768
|
DraftApi.prototype.createAgentDraft = function (agentUserInput, options) {
|
|
3775
3769
|
var _this = this;
|
|
@@ -3781,7 +3775,6 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
3781
3775
|
* @param {AgentDeployRequest} agentDeployRequest
|
|
3782
3776
|
* @param {*} [options] Override http request option.
|
|
3783
3777
|
* @throws {RequiredError}
|
|
3784
|
-
* @memberof DraftApi
|
|
3785
3778
|
*/
|
|
3786
3779
|
DraftApi.prototype.deployAgentFromDraft = function (agentDeployRequest, options) {
|
|
3787
3780
|
var _this = this;
|
|
@@ -3794,7 +3787,6 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
3794
3787
|
* @param {string} draftId Draft ID
|
|
3795
3788
|
* @param {*} [options] Override http request option.
|
|
3796
3789
|
* @throws {RequiredError}
|
|
3797
|
-
* @memberof DraftApi
|
|
3798
3790
|
*/
|
|
3799
3791
|
DraftApi.prototype.getAgentDraftById = function (agentId, draftId, options) {
|
|
3800
3792
|
var _this = this;
|
|
@@ -3806,7 +3798,6 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
3806
3798
|
* @param {string} agentId Agent ID
|
|
3807
3799
|
* @param {*} [options] Override http request option.
|
|
3808
3800
|
* @throws {RequiredError}
|
|
3809
|
-
* @memberof DraftApi
|
|
3810
3801
|
*/
|
|
3811
3802
|
DraftApi.prototype.getAgentDrafts = function (agentId, options) {
|
|
3812
3803
|
var _this = this;
|
|
@@ -3818,12 +3809,21 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
3818
3809
|
* @param {string} agentId Agent ID
|
|
3819
3810
|
* @param {*} [options] Override http request option.
|
|
3820
3811
|
* @throws {RequiredError}
|
|
3821
|
-
* @memberof DraftApi
|
|
3822
3812
|
*/
|
|
3823
3813
|
DraftApi.prototype.getAgentLatestDraft = function (agentId, options) {
|
|
3824
3814
|
var _this = this;
|
|
3825
3815
|
return (0, exports.DraftApiFp)(this.configuration).getAgentLatestDraft(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3826
3816
|
};
|
|
3817
|
+
/**
|
|
3818
|
+
* Get all unpublished drafts for the current user. Returns all drafts owned by the current user where deployed_at is null, ordered by updated_at in descending order (most recently updated first). Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
|
|
3819
|
+
* @summary Get User Unpublished Drafts
|
|
3820
|
+
* @param {*} [options] Override http request option.
|
|
3821
|
+
* @throws {RequiredError}
|
|
3822
|
+
*/
|
|
3823
|
+
DraftApi.prototype.getUserUnpublishedDrafts = function (options) {
|
|
3824
|
+
var _this = this;
|
|
3825
|
+
return (0, exports.DraftApiFp)(this.configuration).getUserUnpublishedDrafts(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3826
|
+
};
|
|
3827
3827
|
/**
|
|
3828
3828
|
* Update an agent draft. Updates the latest draft for the specified agent. If the latest draft has been deployed (has deployed_at timestamp), creates a new draft. Otherwise, updates the existing draft with the new configuration. Possible HTTP errors: - 400: Invalid input data - 401: Unauthorized (invalid or missing authentication) - 404: Agent not found or no drafts exist for this agent - 500: Internal server error
|
|
3829
3829
|
* @summary Update Agent Draft
|
|
@@ -3831,7 +3831,6 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
3831
3831
|
* @param {AgentUserInput} agentUserInput
|
|
3832
3832
|
* @param {*} [options] Override http request option.
|
|
3833
3833
|
* @throws {RequiredError}
|
|
3834
|
-
* @memberof DraftApi
|
|
3835
3834
|
*/
|
|
3836
3835
|
DraftApi.prototype.updateAgentDraft = function (agentId, agentUserInput, options) {
|
|
3837
3836
|
var _this = this;
|
|
@@ -3842,7 +3841,6 @@ var DraftApi = /** @class */ (function (_super) {
|
|
|
3842
3841
|
exports.DraftApi = DraftApi;
|
|
3843
3842
|
/**
|
|
3844
3843
|
* GeneratorApi - axios parameter creator
|
|
3845
|
-
* @export
|
|
3846
3844
|
*/
|
|
3847
3845
|
var GeneratorApiAxiosParamCreator = function (configuration) {
|
|
3848
3846
|
var _this = this;
|
|
@@ -3994,7 +3992,6 @@ var GeneratorApiAxiosParamCreator = function (configuration) {
|
|
|
3994
3992
|
exports.GeneratorApiAxiosParamCreator = GeneratorApiAxiosParamCreator;
|
|
3995
3993
|
/**
|
|
3996
3994
|
* GeneratorApi - functional programming interface
|
|
3997
|
-
* @export
|
|
3998
3995
|
*/
|
|
3999
3996
|
var GeneratorApiFp = function (configuration) {
|
|
4000
3997
|
var localVarAxiosParamCreator = (0, exports.GeneratorApiAxiosParamCreator)(configuration);
|
|
@@ -4073,7 +4070,6 @@ var GeneratorApiFp = function (configuration) {
|
|
|
4073
4070
|
exports.GeneratorApiFp = GeneratorApiFp;
|
|
4074
4071
|
/**
|
|
4075
4072
|
* GeneratorApi - factory interface
|
|
4076
|
-
* @export
|
|
4077
4073
|
*/
|
|
4078
4074
|
var GeneratorApiFactory = function (configuration, basePath, axios) {
|
|
4079
4075
|
var localVarFp = (0, exports.GeneratorApiFp)(configuration);
|
|
@@ -4113,9 +4109,6 @@ var GeneratorApiFactory = function (configuration, basePath, axios) {
|
|
|
4113
4109
|
exports.GeneratorApiFactory = GeneratorApiFactory;
|
|
4114
4110
|
/**
|
|
4115
4111
|
* GeneratorApi - object-oriented interface
|
|
4116
|
-
* @export
|
|
4117
|
-
* @class GeneratorApi
|
|
4118
|
-
* @extends {BaseAPI}
|
|
4119
4112
|
*/
|
|
4120
4113
|
var GeneratorApi = /** @class */ (function (_super) {
|
|
4121
4114
|
__extends(GeneratorApi, _super);
|
|
@@ -4128,7 +4121,6 @@ var GeneratorApi = /** @class */ (function (_super) {
|
|
|
4128
4121
|
* @param {AgentGenerateRequest} agentGenerateRequest
|
|
4129
4122
|
* @param {*} [options] Override http request option.
|
|
4130
4123
|
* @throws {RequiredError}
|
|
4131
|
-
* @memberof GeneratorApi
|
|
4132
4124
|
*/
|
|
4133
4125
|
GeneratorApi.prototype.generateAgent = function (agentGenerateRequest, options) {
|
|
4134
4126
|
var _this = this;
|
|
@@ -4140,7 +4132,6 @@ var GeneratorApi = /** @class */ (function (_super) {
|
|
|
4140
4132
|
* @param {string} projectId
|
|
4141
4133
|
* @param {*} [options] Override http request option.
|
|
4142
4134
|
* @throws {RequiredError}
|
|
4143
|
-
* @memberof GeneratorApi
|
|
4144
4135
|
*/
|
|
4145
4136
|
GeneratorApi.prototype.getGenerationHistory = function (projectId, options) {
|
|
4146
4137
|
var _this = this;
|
|
@@ -4152,7 +4143,6 @@ var GeneratorApi = /** @class */ (function (_super) {
|
|
|
4152
4143
|
* @param {number} [limit]
|
|
4153
4144
|
* @param {*} [options] Override http request option.
|
|
4154
4145
|
* @throws {RequiredError}
|
|
4155
|
-
* @memberof GeneratorApi
|
|
4156
4146
|
*/
|
|
4157
4147
|
GeneratorApi.prototype.getGenerations = function (limit, options) {
|
|
4158
4148
|
var _this = this;
|
|
@@ -4163,7 +4153,6 @@ var GeneratorApi = /** @class */ (function (_super) {
|
|
|
4163
4153
|
exports.GeneratorApi = GeneratorApi;
|
|
4164
4154
|
/**
|
|
4165
4155
|
* HealthApi - axios parameter creator
|
|
4166
|
-
* @export
|
|
4167
4156
|
*/
|
|
4168
4157
|
var HealthApiAxiosParamCreator = function (configuration) {
|
|
4169
4158
|
var _this = this;
|
|
@@ -4206,7 +4195,6 @@ var HealthApiAxiosParamCreator = function (configuration) {
|
|
|
4206
4195
|
exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
|
|
4207
4196
|
/**
|
|
4208
4197
|
* HealthApi - functional programming interface
|
|
4209
|
-
* @export
|
|
4210
4198
|
*/
|
|
4211
4199
|
var HealthApiFp = function (configuration) {
|
|
4212
4200
|
var localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
|
|
@@ -4238,7 +4226,6 @@ var HealthApiFp = function (configuration) {
|
|
|
4238
4226
|
exports.HealthApiFp = HealthApiFp;
|
|
4239
4227
|
/**
|
|
4240
4228
|
* HealthApi - factory interface
|
|
4241
|
-
* @export
|
|
4242
4229
|
*/
|
|
4243
4230
|
var HealthApiFactory = function (configuration, basePath, axios) {
|
|
4244
4231
|
var localVarFp = (0, exports.HealthApiFp)(configuration);
|
|
@@ -4257,9 +4244,6 @@ var HealthApiFactory = function (configuration, basePath, axios) {
|
|
|
4257
4244
|
exports.HealthApiFactory = HealthApiFactory;
|
|
4258
4245
|
/**
|
|
4259
4246
|
* HealthApi - object-oriented interface
|
|
4260
|
-
* @export
|
|
4261
|
-
* @class HealthApi
|
|
4262
|
-
* @extends {BaseAPI}
|
|
4263
4247
|
*/
|
|
4264
4248
|
var HealthApi = /** @class */ (function (_super) {
|
|
4265
4249
|
__extends(HealthApi, _super);
|
|
@@ -4271,7 +4255,6 @@ var HealthApi = /** @class */ (function (_super) {
|
|
|
4271
4255
|
* @summary Health check endpoint
|
|
4272
4256
|
* @param {*} [options] Override http request option.
|
|
4273
4257
|
* @throws {RequiredError}
|
|
4274
|
-
* @memberof HealthApi
|
|
4275
4258
|
*/
|
|
4276
4259
|
HealthApi.prototype.healthCheck = function (options) {
|
|
4277
4260
|
var _this = this;
|
|
@@ -4282,7 +4265,6 @@ var HealthApi = /** @class */ (function (_super) {
|
|
|
4282
4265
|
exports.HealthApi = HealthApi;
|
|
4283
4266
|
/**
|
|
4284
4267
|
* MetadataApi - axios parameter creator
|
|
4285
|
-
* @export
|
|
4286
4268
|
*/
|
|
4287
4269
|
var MetadataApiAxiosParamCreator = function (configuration) {
|
|
4288
4270
|
var _this = this;
|
|
@@ -4473,7 +4455,6 @@ var MetadataApiAxiosParamCreator = function (configuration) {
|
|
|
4473
4455
|
exports.MetadataApiAxiosParamCreator = MetadataApiAxiosParamCreator;
|
|
4474
4456
|
/**
|
|
4475
4457
|
* MetadataApi - functional programming interface
|
|
4476
|
-
* @export
|
|
4477
4458
|
*/
|
|
4478
4459
|
var MetadataApiFp = function (configuration) {
|
|
4479
4460
|
var localVarAxiosParamCreator = (0, exports.MetadataApiAxiosParamCreator)(configuration);
|
|
@@ -4597,7 +4578,6 @@ var MetadataApiFp = function (configuration) {
|
|
|
4597
4578
|
exports.MetadataApiFp = MetadataApiFp;
|
|
4598
4579
|
/**
|
|
4599
4580
|
* MetadataApi - factory interface
|
|
4600
|
-
* @export
|
|
4601
4581
|
*/
|
|
4602
4582
|
var MetadataApiFactory = function (configuration, basePath, axios) {
|
|
4603
4583
|
var localVarFp = (0, exports.MetadataApiFp)(configuration);
|
|
@@ -4656,9 +4636,6 @@ var MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
4656
4636
|
exports.MetadataApiFactory = MetadataApiFactory;
|
|
4657
4637
|
/**
|
|
4658
4638
|
* MetadataApi - object-oriented interface
|
|
4659
|
-
* @export
|
|
4660
|
-
* @class MetadataApi
|
|
4661
|
-
* @extends {BaseAPI}
|
|
4662
4639
|
*/
|
|
4663
4640
|
var MetadataApi = /** @class */ (function (_super) {
|
|
4664
4641
|
__extends(MetadataApi, _super);
|
|
@@ -4670,7 +4647,6 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
4670
4647
|
* @summary Get agent schema
|
|
4671
4648
|
* @param {*} [options] Override http request option.
|
|
4672
4649
|
* @throws {RequiredError}
|
|
4673
|
-
* @memberof MetadataApi
|
|
4674
4650
|
*/
|
|
4675
4651
|
MetadataApi.prototype.getAgentSchema = function (options) {
|
|
4676
4652
|
var _this = this;
|
|
@@ -4681,7 +4657,6 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
4681
4657
|
* @summary Get all LLM models
|
|
4682
4658
|
* @param {*} [options] Override http request option.
|
|
4683
4659
|
* @throws {RequiredError}
|
|
4684
|
-
* @memberof MetadataApi
|
|
4685
4660
|
*/
|
|
4686
4661
|
MetadataApi.prototype.getLlms = function (options) {
|
|
4687
4662
|
var _this = this;
|
|
@@ -4695,7 +4670,6 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
4695
4670
|
* @param {string} ext Icon file extension
|
|
4696
4671
|
* @param {*} [options] Override http request option.
|
|
4697
4672
|
* @throws {RequiredError}
|
|
4698
|
-
* @memberof MetadataApi
|
|
4699
4673
|
*/
|
|
4700
4674
|
MetadataApi.prototype.getSkillIcon = function (skill, iconName, ext, options) {
|
|
4701
4675
|
var _this = this;
|
|
@@ -4707,7 +4681,6 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
4707
4681
|
* @param {string} skill Skill name
|
|
4708
4682
|
* @param {*} [options] Override http request option.
|
|
4709
4683
|
* @throws {RequiredError}
|
|
4710
|
-
* @memberof MetadataApi
|
|
4711
4684
|
*/
|
|
4712
4685
|
MetadataApi.prototype.getSkillSchema = function (skill, options) {
|
|
4713
4686
|
var _this = this;
|
|
@@ -4718,7 +4691,6 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
4718
4691
|
* @summary Get all skills
|
|
4719
4692
|
* @param {*} [options] Override http request option.
|
|
4720
4693
|
* @throws {RequiredError}
|
|
4721
|
-
* @memberof MetadataApi
|
|
4722
4694
|
*/
|
|
4723
4695
|
MetadataApi.prototype.getSkills = function (options) {
|
|
4724
4696
|
var _this = this;
|
|
@@ -4729,7 +4701,6 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
4729
4701
|
exports.MetadataApi = MetadataApi;
|
|
4730
4702
|
/**
|
|
4731
4703
|
* OAuthApi - axios parameter creator
|
|
4732
|
-
* @export
|
|
4733
4704
|
*/
|
|
4734
4705
|
var OAuthApiAxiosParamCreator = function (configuration) {
|
|
4735
4706
|
var _this = this;
|
|
@@ -4890,7 +4861,6 @@ var OAuthApiAxiosParamCreator = function (configuration) {
|
|
|
4890
4861
|
exports.OAuthApiAxiosParamCreator = OAuthApiAxiosParamCreator;
|
|
4891
4862
|
/**
|
|
4892
4863
|
* OAuthApi - functional programming interface
|
|
4893
|
-
* @export
|
|
4894
4864
|
*/
|
|
4895
4865
|
var OAuthApiFp = function (configuration) {
|
|
4896
4866
|
var localVarAxiosParamCreator = (0, exports.OAuthApiAxiosParamCreator)(configuration);
|
|
@@ -4972,7 +4942,6 @@ var OAuthApiFp = function (configuration) {
|
|
|
4972
4942
|
exports.OAuthApiFp = OAuthApiFp;
|
|
4973
4943
|
/**
|
|
4974
4944
|
* OAuthApi - factory interface
|
|
4975
|
-
* @export
|
|
4976
4945
|
*/
|
|
4977
4946
|
var OAuthApiFactory = function (configuration, basePath, axios) {
|
|
4978
4947
|
var localVarFp = (0, exports.OAuthApiFp)(configuration);
|
|
@@ -5015,9 +4984,6 @@ var OAuthApiFactory = function (configuration, basePath, axios) {
|
|
|
5015
4984
|
exports.OAuthApiFactory = OAuthApiFactory;
|
|
5016
4985
|
/**
|
|
5017
4986
|
* OAuthApi - object-oriented interface
|
|
5018
|
-
* @export
|
|
5019
|
-
* @class OAuthApi
|
|
5020
|
-
* @extends {BaseAPI}
|
|
5021
4987
|
*/
|
|
5022
4988
|
var OAuthApi = /** @class */ (function (_super) {
|
|
5023
4989
|
__extends(OAuthApi, _super);
|
|
@@ -5031,7 +4997,6 @@ var OAuthApi = /** @class */ (function (_super) {
|
|
|
5031
4997
|
* @param {string} redirectUri
|
|
5032
4998
|
* @param {*} [options] Override http request option.
|
|
5033
4999
|
* @throws {RequiredError}
|
|
5034
|
-
* @memberof OAuthApi
|
|
5035
5000
|
*/
|
|
5036
5001
|
OAuthApi.prototype.getTwitterAuthUrl = function (agentId, redirectUri, options) {
|
|
5037
5002
|
var _this = this;
|
|
@@ -5045,7 +5010,6 @@ var OAuthApi = /** @class */ (function (_super) {
|
|
|
5045
5010
|
* @param {string | null} [error]
|
|
5046
5011
|
* @param {*} [options] Override http request option.
|
|
5047
5012
|
* @throws {RequiredError}
|
|
5048
|
-
* @memberof OAuthApi
|
|
5049
5013
|
*/
|
|
5050
5014
|
OAuthApi.prototype.twitterOauthCallback = function (state, code, error, options) {
|
|
5051
5015
|
var _this = this;
|
|
@@ -5057,7 +5021,6 @@ var OAuthApi = /** @class */ (function (_super) {
|
|
|
5057
5021
|
* @param {string} agentId ID of the agent to unlink from X
|
|
5058
5022
|
* @param {*} [options] Override http request option.
|
|
5059
5023
|
* @throws {RequiredError}
|
|
5060
|
-
* @memberof OAuthApi
|
|
5061
5024
|
*/
|
|
5062
5025
|
OAuthApi.prototype.unlinkTwitter = function (agentId, options) {
|
|
5063
5026
|
var _this = this;
|
|
@@ -5068,7 +5031,6 @@ var OAuthApi = /** @class */ (function (_super) {
|
|
|
5068
5031
|
exports.OAuthApi = OAuthApi;
|
|
5069
5032
|
/**
|
|
5070
5033
|
* UserApi - axios parameter creator
|
|
5071
|
-
* @export
|
|
5072
5034
|
*/
|
|
5073
5035
|
var UserApiAxiosParamCreator = function (configuration) {
|
|
5074
5036
|
var _this = this;
|
|
@@ -5171,12 +5133,63 @@ var UserApiAxiosParamCreator = function (configuration) {
|
|
|
5171
5133
|
});
|
|
5172
5134
|
});
|
|
5173
5135
|
},
|
|
5136
|
+
/**
|
|
5137
|
+
* 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
|
|
5138
|
+
* @summary Upload User File
|
|
5139
|
+
* @param {File} file File to upload
|
|
5140
|
+
* @param {*} [options] Override http request option.
|
|
5141
|
+
* @throws {RequiredError}
|
|
5142
|
+
*/
|
|
5143
|
+
uploadUserFile: function (file_1) {
|
|
5144
|
+
var args_1 = [];
|
|
5145
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
5146
|
+
args_1[_i - 1] = arguments[_i];
|
|
5147
|
+
}
|
|
5148
|
+
return __awaiter(_this, __spreadArray([file_1], args_1, true), void 0, function (file, options) {
|
|
5149
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
5150
|
+
if (options === void 0) { options = {}; }
|
|
5151
|
+
return __generator(this, function (_a) {
|
|
5152
|
+
switch (_a.label) {
|
|
5153
|
+
case 0:
|
|
5154
|
+
// verify required parameter 'file' is not null or undefined
|
|
5155
|
+
(0, common_1.assertParamExists)('uploadUserFile', 'file', file);
|
|
5156
|
+
localVarPath = "/user/upload";
|
|
5157
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5158
|
+
if (configuration) {
|
|
5159
|
+
baseOptions = configuration.baseOptions;
|
|
5160
|
+
}
|
|
5161
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
5162
|
+
localVarHeaderParameter = {};
|
|
5163
|
+
localVarQueryParameter = {};
|
|
5164
|
+
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
5165
|
+
// authentication HTTPBearer required
|
|
5166
|
+
// http bearer authentication required
|
|
5167
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
5168
|
+
case 1:
|
|
5169
|
+
// authentication HTTPBearer required
|
|
5170
|
+
// http bearer authentication required
|
|
5171
|
+
_a.sent();
|
|
5172
|
+
if (file !== undefined) {
|
|
5173
|
+
localVarFormParams.append('file', file);
|
|
5174
|
+
}
|
|
5175
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
5176
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5177
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5178
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5179
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
5180
|
+
return [2 /*return*/, {
|
|
5181
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5182
|
+
options: localVarRequestOptions,
|
|
5183
|
+
}];
|
|
5184
|
+
}
|
|
5185
|
+
});
|
|
5186
|
+
});
|
|
5187
|
+
},
|
|
5174
5188
|
};
|
|
5175
5189
|
};
|
|
5176
5190
|
exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
|
|
5177
5191
|
/**
|
|
5178
5192
|
* UserApi - functional programming interface
|
|
5179
|
-
* @export
|
|
5180
5193
|
*/
|
|
5181
5194
|
var UserApiFp = function (configuration) {
|
|
5182
5195
|
var localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
|
|
@@ -5228,12 +5241,34 @@ var UserApiFp = function (configuration) {
|
|
|
5228
5241
|
});
|
|
5229
5242
|
});
|
|
5230
5243
|
},
|
|
5244
|
+
/**
|
|
5245
|
+
* 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
|
|
5246
|
+
* @summary Upload User File
|
|
5247
|
+
* @param {File} file File to upload
|
|
5248
|
+
* @param {*} [options] Override http request option.
|
|
5249
|
+
* @throws {RequiredError}
|
|
5250
|
+
*/
|
|
5251
|
+
uploadUserFile: function (file, options) {
|
|
5252
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5253
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
5254
|
+
var _a, _b, _c;
|
|
5255
|
+
return __generator(this, function (_d) {
|
|
5256
|
+
switch (_d.label) {
|
|
5257
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadUserFile(file, options)];
|
|
5258
|
+
case 1:
|
|
5259
|
+
localVarAxiosArgs = _d.sent();
|
|
5260
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5261
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserApi.uploadUserFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5262
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
5263
|
+
}
|
|
5264
|
+
});
|
|
5265
|
+
});
|
|
5266
|
+
},
|
|
5231
5267
|
};
|
|
5232
5268
|
};
|
|
5233
5269
|
exports.UserApiFp = UserApiFp;
|
|
5234
5270
|
/**
|
|
5235
5271
|
* UserApi - factory interface
|
|
5236
|
-
* @export
|
|
5237
5272
|
*/
|
|
5238
5273
|
var UserApiFactory = function (configuration, basePath, axios) {
|
|
5239
5274
|
var localVarFp = (0, exports.UserApiFp)(configuration);
|
|
@@ -5259,14 +5294,21 @@ var UserApiFactory = function (configuration, basePath, axios) {
|
|
|
5259
5294
|
getUserAgents: function (cursor, limit, options) {
|
|
5260
5295
|
return localVarFp.getUserAgents(cursor, limit, options).then(function (request) { return request(axios, basePath); });
|
|
5261
5296
|
},
|
|
5297
|
+
/**
|
|
5298
|
+
* 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
|
|
5299
|
+
* @summary Upload User File
|
|
5300
|
+
* @param {File} file File to upload
|
|
5301
|
+
* @param {*} [options] Override http request option.
|
|
5302
|
+
* @throws {RequiredError}
|
|
5303
|
+
*/
|
|
5304
|
+
uploadUserFile: function (file, options) {
|
|
5305
|
+
return localVarFp.uploadUserFile(file, options).then(function (request) { return request(axios, basePath); });
|
|
5306
|
+
},
|
|
5262
5307
|
};
|
|
5263
5308
|
};
|
|
5264
5309
|
exports.UserApiFactory = UserApiFactory;
|
|
5265
5310
|
/**
|
|
5266
5311
|
* UserApi - object-oriented interface
|
|
5267
|
-
* @export
|
|
5268
|
-
* @class UserApi
|
|
5269
|
-
* @extends {BaseAPI}
|
|
5270
5312
|
*/
|
|
5271
5313
|
var UserApi = /** @class */ (function (_super) {
|
|
5272
5314
|
__extends(UserApi, _super);
|
|
@@ -5279,7 +5321,6 @@ var UserApi = /** @class */ (function (_super) {
|
|
|
5279
5321
|
* @param {string} agentId Agent ID
|
|
5280
5322
|
* @param {*} [options] Override http request option.
|
|
5281
5323
|
* @throws {RequiredError}
|
|
5282
|
-
* @memberof UserApi
|
|
5283
5324
|
*/
|
|
5284
5325
|
UserApi.prototype.getUserAgentById = function (agentId, options) {
|
|
5285
5326
|
var _this = this;
|
|
@@ -5292,12 +5333,22 @@ var UserApi = /** @class */ (function (_super) {
|
|
|
5292
5333
|
* @param {number} [limit] Maximum number of agents to return
|
|
5293
5334
|
* @param {*} [options] Override http request option.
|
|
5294
5335
|
* @throws {RequiredError}
|
|
5295
|
-
* @memberof UserApi
|
|
5296
5336
|
*/
|
|
5297
5337
|
UserApi.prototype.getUserAgents = function (cursor, limit, options) {
|
|
5298
5338
|
var _this = this;
|
|
5299
5339
|
return (0, exports.UserApiFp)(this.configuration).getUserAgents(cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5300
5340
|
};
|
|
5341
|
+
/**
|
|
5342
|
+
* 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
|
|
5343
|
+
* @summary Upload User File
|
|
5344
|
+
* @param {File} file File to upload
|
|
5345
|
+
* @param {*} [options] Override http request option.
|
|
5346
|
+
* @throws {RequiredError}
|
|
5347
|
+
*/
|
|
5348
|
+
UserApi.prototype.uploadUserFile = function (file, options) {
|
|
5349
|
+
var _this = this;
|
|
5350
|
+
return (0, exports.UserApiFp)(this.configuration).uploadUserFile(file, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5351
|
+
};
|
|
5301
5352
|
return UserApi;
|
|
5302
5353
|
}(base_1.BaseAPI));
|
|
5303
5354
|
exports.UserApi = UserApi;
|