@crestal/nation-sdk 0.7.4 → 0.7.7

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/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.4
8
+ * The version of the OpenAPI document: 0.7.7
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -178,6 +178,8 @@ exports.AgentResponseShortTermMemoryStrategyEnum = {
178
178
  };
179
179
  /**
180
180
  * Sort options for agents list.
181
+ * @export
182
+ * @enum {string}
181
183
  */
182
184
  exports.AgentSortOption = {
183
185
  CreatedAtDesc: 'created_at desc',
@@ -228,6 +230,8 @@ exports.AgentUserInputShortTermMemoryStrategyEnum = {
228
230
  };
229
231
  /**
230
232
  * Type of message author.
233
+ * @export
234
+ * @enum {string}
231
235
  */
232
236
  exports.AuthorType = {
233
237
  Agent: 'agent',
@@ -242,6 +246,8 @@ exports.AuthorType = {
242
246
  };
243
247
  /**
244
248
  * Type of chat message attachment.
249
+ * @export
250
+ * @enum {string}
245
251
  */
246
252
  exports.ChatMessageAttachmentType = {
247
253
  Link: 'link',
@@ -251,6 +257,8 @@ exports.ChatMessageAttachmentType = {
251
257
  };
252
258
  /**
253
259
  * Credit or debit transaction.
260
+ * @export
261
+ * @enum {string}
254
262
  */
255
263
  exports.CreditDebit = {
256
264
  Credit: 'credit',
@@ -258,6 +266,8 @@ exports.CreditDebit = {
258
266
  };
259
267
  /**
260
268
  * Credit type is used in db column names, do not change it.
269
+ * @export
270
+ * @enum {string}
261
271
  */
262
272
  exports.CreditType = {
263
273
  FreeCredits: 'free_credits',
@@ -266,6 +276,8 @@ exports.CreditType = {
266
276
  };
267
277
  /**
268
278
  * Direction of credit flow.
279
+ * @export
280
+ * @enum {string}
269
281
  */
270
282
  exports.Direction = {
271
283
  Income: 'income',
@@ -273,6 +285,8 @@ exports.Direction = {
273
285
  };
274
286
  /**
275
287
  * Type of credit event.
288
+ * @export
289
+ * @enum {string}
276
290
  */
277
291
  exports.EventType = {
278
292
  Memory: 'memory',
@@ -289,6 +303,11 @@ exports.EventType = {
289
303
  EventReward: 'event_reward',
290
304
  RechargeBonus: 'recharge_bonus'
291
305
  };
306
+ /**
307
+ *
308
+ * @export
309
+ * @enum {string}
310
+ */
292
311
  exports.LLMProvider = {
293
312
  Openai: 'openai',
294
313
  Deepseek: 'deepseek',
@@ -299,6 +318,8 @@ exports.LLMProvider = {
299
318
  };
300
319
  /**
301
320
  * Type of credit account owner.
321
+ * @export
322
+ * @enum {string}
302
323
  */
303
324
  exports.OwnerType = {
304
325
  User: 'user',
@@ -307,6 +328,8 @@ exports.OwnerType = {
307
328
  };
308
329
  /**
309
330
  * Type of system message.
331
+ * @export
332
+ * @enum {string}
310
333
  */
311
334
  exports.SystemMessageType = {
312
335
  ServiceFeeError: 'service_fee_error',
@@ -318,6 +341,8 @@ exports.SystemMessageType = {
318
341
  };
319
342
  /**
320
343
  * Type of credit transaction.
344
+ * @export
345
+ * @enum {string}
321
346
  */
322
347
  exports.TransactionType = {
323
348
  Pay: 'pay',
@@ -340,6 +365,8 @@ exports.TransactionType = {
340
365
  };
341
366
  /**
342
367
  * Type of upstream transaction.
368
+ * @export
369
+ * @enum {string}
343
370
  */
344
371
  exports.UpstreamType = {
345
372
  Api: 'api',
@@ -349,6 +376,7 @@ exports.UpstreamType = {
349
376
  };
350
377
  /**
351
378
  * AgentApi - axios parameter creator
379
+ * @export
352
380
  */
353
381
  var AgentApiAxiosParamCreator = function (configuration) {
354
382
  var _this = this;
@@ -958,6 +986,7 @@ var AgentApiAxiosParamCreator = function (configuration) {
958
986
  exports.AgentApiAxiosParamCreator = AgentApiAxiosParamCreator;
959
987
  /**
960
988
  * AgentApi - functional programming interface
989
+ * @export
961
990
  */
962
991
  var AgentApiFp = function (configuration) {
963
992
  var localVarAxiosParamCreator = (0, exports.AgentApiAxiosParamCreator)(configuration);
@@ -1273,6 +1302,7 @@ var AgentApiFp = function (configuration) {
1273
1302
  exports.AgentApiFp = AgentApiFp;
1274
1303
  /**
1275
1304
  * AgentApi - factory interface
1305
+ * @export
1276
1306
  */
1277
1307
  var AgentApiFactory = function (configuration, basePath, axios) {
1278
1308
  var localVarFp = (0, exports.AgentApiFp)(configuration);
@@ -1419,6 +1449,9 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1419
1449
  exports.AgentApiFactory = AgentApiFactory;
1420
1450
  /**
1421
1451
  * AgentApi - object-oriented interface
1452
+ * @export
1453
+ * @class AgentApi
1454
+ * @extends {BaseAPI}
1422
1455
  */
1423
1456
  var AgentApi = /** @class */ (function (_super) {
1424
1457
  __extends(AgentApi, _super);
@@ -1431,6 +1464,7 @@ var AgentApi = /** @class */ (function (_super) {
1431
1464
  * @param {AgentUpdate} [agentUpdate]
1432
1465
  * @param {*} [options] Override http request option.
1433
1466
  * @throws {RequiredError}
1467
+ * @memberof AgentApi
1434
1468
  */
1435
1469
  AgentApi.prototype.createAgent = function (agentUpdate, options) {
1436
1470
  var _this = this;
@@ -1442,6 +1476,7 @@ var AgentApi = /** @class */ (function (_super) {
1442
1476
  * @param {string} agentId ID of the agent to export
1443
1477
  * @param {*} [options] Override http request option.
1444
1478
  * @throws {RequiredError}
1479
+ * @memberof AgentApi
1445
1480
  */
1446
1481
  AgentApi.prototype.exportAgent = function (agentId, options) {
1447
1482
  var _this = this;
@@ -1453,6 +1488,7 @@ var AgentApi = /** @class */ (function (_super) {
1453
1488
  * @param {string} agentId ID of the agent to retrieve
1454
1489
  * @param {*} [options] Override http request option.
1455
1490
  * @throws {RequiredError}
1491
+ * @memberof AgentApi
1456
1492
  */
1457
1493
  AgentApi.prototype.getAgent = function (agentId, options) {
1458
1494
  var _this = this;
@@ -1464,6 +1500,7 @@ var AgentApi = /** @class */ (function (_super) {
1464
1500
  * @param {string} agentId ID of the agent
1465
1501
  * @param {*} [options] Override http request option.
1466
1502
  * @throws {RequiredError}
1503
+ * @memberof AgentApi
1467
1504
  */
1468
1505
  AgentApi.prototype.getAgentApiKey = function (agentId, options) {
1469
1506
  var _this = this;
@@ -1475,6 +1512,7 @@ var AgentApi = /** @class */ (function (_super) {
1475
1512
  * @param {string} agentId ID of the agent
1476
1513
  * @param {*} [options] Override http request option.
1477
1514
  * @throws {RequiredError}
1515
+ * @memberof AgentApi
1478
1516
  */
1479
1517
  AgentApi.prototype.getAgentAssets = function (agentId, options) {
1480
1518
  var _this = this;
@@ -1486,6 +1524,7 @@ var AgentApi = /** @class */ (function (_super) {
1486
1524
  * @param {string} aid ID of the agent
1487
1525
  * @param {*} [options] Override http request option.
1488
1526
  * @throws {RequiredError}
1527
+ * @memberof AgentApi
1489
1528
  */
1490
1529
  AgentApi.prototype.getAgentStatistics = function (aid, options) {
1491
1530
  var _this = this;
@@ -1499,6 +1538,7 @@ var AgentApi = /** @class */ (function (_super) {
1499
1538
  * @param {number} [limit] Maximum number of agents to return
1500
1539
  * @param {*} [options] Override http request option.
1501
1540
  * @throws {RequiredError}
1541
+ * @memberof AgentApi
1502
1542
  */
1503
1543
  AgentApi.prototype.getAgents = function (sort, cursor, limit, options) {
1504
1544
  var _this = this;
@@ -1512,6 +1552,7 @@ var AgentApi = /** @class */ (function (_super) {
1512
1552
  * @param {number} [limit] Maximum number of messages to return
1513
1553
  * @param {*} [options] Override http request option.
1514
1554
  * @throws {RequiredError}
1555
+ * @memberof AgentApi
1515
1556
  */
1516
1557
  AgentApi.prototype.getSkillHistory = function (aid, cursor, limit, options) {
1517
1558
  var _this = this;
@@ -1524,6 +1565,7 @@ var AgentApi = /** @class */ (function (_super) {
1524
1565
  * @param {File} file YAML file containing agent configuration
1525
1566
  * @param {*} [options] Override http request option.
1526
1567
  * @throws {RequiredError}
1568
+ * @memberof AgentApi
1527
1569
  */
1528
1570
  AgentApi.prototype.importAgent = function (agentId, file, options) {
1529
1571
  var _this = this;
@@ -1536,6 +1578,7 @@ var AgentApi = /** @class */ (function (_super) {
1536
1578
  * @param {AgentUpdate} [agentUpdate]
1537
1579
  * @param {*} [options] Override http request option.
1538
1580
  * @throws {RequiredError}
1581
+ * @memberof AgentApi
1539
1582
  */
1540
1583
  AgentApi.prototype.overrideAgent = function (agentId, agentUpdate, options) {
1541
1584
  var _this = this;
@@ -1547,6 +1590,7 @@ var AgentApi = /** @class */ (function (_super) {
1547
1590
  * @param {string} agentId ID of the agent
1548
1591
  * @param {*} [options] Override http request option.
1549
1592
  * @throws {RequiredError}
1593
+ * @memberof AgentApi
1550
1594
  */
1551
1595
  AgentApi.prototype.resetAgentApiKey = function (agentId, options) {
1552
1596
  var _this = this;
@@ -1558,6 +1602,7 @@ var AgentApi = /** @class */ (function (_super) {
1558
1602
  * @param {AgentUpdate} [agentUpdate]
1559
1603
  * @param {*} [options] Override http request option.
1560
1604
  * @throws {RequiredError}
1605
+ * @memberof AgentApi
1561
1606
  */
1562
1607
  AgentApi.prototype.validateAgentCreate = function (agentUpdate, options) {
1563
1608
  var _this = this;
@@ -1570,6 +1615,7 @@ var AgentApi = /** @class */ (function (_super) {
1570
1615
  * @param {AgentUpdate} [agentUpdate]
1571
1616
  * @param {*} [options] Override http request option.
1572
1617
  * @throws {RequiredError}
1618
+ * @memberof AgentApi
1573
1619
  */
1574
1620
  AgentApi.prototype.validateAgentUpdate = function (agentId, agentUpdate, options) {
1575
1621
  var _this = this;
@@ -1580,6 +1626,7 @@ var AgentApi = /** @class */ (function (_super) {
1580
1626
  exports.AgentApi = AgentApi;
1581
1627
  /**
1582
1628
  * ChatApi - axios parameter creator
1629
+ * @export
1583
1630
  */
1584
1631
  var ChatApiAxiosParamCreator = function (configuration) {
1585
1632
  var _this = this;
@@ -2109,6 +2156,7 @@ var ChatApiAxiosParamCreator = function (configuration) {
2109
2156
  exports.ChatApiAxiosParamCreator = ChatApiAxiosParamCreator;
2110
2157
  /**
2111
2158
  * ChatApi - functional programming interface
2159
+ * @export
2112
2160
  */
2113
2161
  var ChatApiFp = function (configuration) {
2114
2162
  var localVarAxiosParamCreator = (0, exports.ChatApiAxiosParamCreator)(configuration);
@@ -2360,6 +2408,7 @@ var ChatApiFp = function (configuration) {
2360
2408
  exports.ChatApiFp = ChatApiFp;
2361
2409
  /**
2362
2410
  * ChatApi - factory interface
2411
+ * @export
2363
2412
  */
2364
2413
  var ChatApiFactory = function (configuration, basePath, axios) {
2365
2414
  var localVarFp = (0, exports.ChatApiFp)(configuration);
@@ -2481,6 +2530,9 @@ var ChatApiFactory = function (configuration, basePath, axios) {
2481
2530
  exports.ChatApiFactory = ChatApiFactory;
2482
2531
  /**
2483
2532
  * ChatApi - object-oriented interface
2533
+ * @export
2534
+ * @class ChatApi
2535
+ * @extends {BaseAPI}
2484
2536
  */
2485
2537
  var ChatApi = /** @class */ (function (_super) {
2486
2538
  __extends(ChatApi, _super);
@@ -2493,6 +2545,7 @@ var ChatApi = /** @class */ (function (_super) {
2493
2545
  * @param {string} aid Agent ID
2494
2546
  * @param {*} [options] Override http request option.
2495
2547
  * @throws {RequiredError}
2548
+ * @memberof ChatApi
2496
2549
  */
2497
2550
  ChatApi.prototype.createChatThread = function (aid, options) {
2498
2551
  var _this = this;
@@ -2505,6 +2558,7 @@ var ChatApi = /** @class */ (function (_super) {
2505
2558
  * @param {string} chatId Chat ID
2506
2559
  * @param {*} [options] Override http request option.
2507
2560
  * @throws {RequiredError}
2561
+ * @memberof ChatApi
2508
2562
  */
2509
2563
  ChatApi.prototype.deleteChatThread = function (aid, chatId, options) {
2510
2564
  var _this = this;
@@ -2517,6 +2571,7 @@ var ChatApi = /** @class */ (function (_super) {
2517
2571
  * @param {string} chatId Chat ID
2518
2572
  * @param {*} [options] Override http request option.
2519
2573
  * @throws {RequiredError}
2574
+ * @memberof ChatApi
2520
2575
  */
2521
2576
  ChatApi.prototype.getChatThreadById = function (aid, chatId, options) {
2522
2577
  var _this = this;
@@ -2528,6 +2583,7 @@ var ChatApi = /** @class */ (function (_super) {
2528
2583
  * @param {string} messageId Message ID
2529
2584
  * @param {*} [options] Override http request option.
2530
2585
  * @throws {RequiredError}
2586
+ * @memberof ChatApi
2531
2587
  */
2532
2588
  ChatApi.prototype.getMessageById = function (messageId, options) {
2533
2589
  var _this = this;
@@ -2541,6 +2597,7 @@ var ChatApi = /** @class */ (function (_super) {
2541
2597
  * @param {number} [limit] Maximum number of messages to return
2542
2598
  * @param {*} [options] Override http request option.
2543
2599
  * @throws {RequiredError}
2600
+ * @memberof ChatApi
2544
2601
  */
2545
2602
  ChatApi.prototype.getSkillHistory = function (aid, cursor, limit, options) {
2546
2603
  var _this = this;
@@ -2552,6 +2609,7 @@ var ChatApi = /** @class */ (function (_super) {
2552
2609
  * @param {string} aid Agent ID
2553
2610
  * @param {*} [options] Override http request option.
2554
2611
  * @throws {RequiredError}
2612
+ * @memberof ChatApi
2555
2613
  */
2556
2614
  ChatApi.prototype.listChatsForAgent = function (aid, options) {
2557
2615
  var _this = this;
@@ -2566,6 +2624,7 @@ var ChatApi = /** @class */ (function (_super) {
2566
2624
  * @param {number} [limit] Maximum number of messages to return
2567
2625
  * @param {*} [options] Override http request option.
2568
2626
  * @throws {RequiredError}
2627
+ * @memberof ChatApi
2569
2628
  */
2570
2629
  ChatApi.prototype.listMessagesInChat = function (aid, chatId, cursor, limit, options) {
2571
2630
  var _this = this;
@@ -2578,6 +2637,7 @@ var ChatApi = /** @class */ (function (_super) {
2578
2637
  * @param {string} chatId Chat ID
2579
2638
  * @param {*} [options] Override http request option.
2580
2639
  * @throws {RequiredError}
2640
+ * @memberof ChatApi
2581
2641
  */
2582
2642
  ChatApi.prototype.retryMessageInChat = function (aid, chatId, options) {
2583
2643
  var _this = this;
@@ -2591,6 +2651,7 @@ var ChatApi = /** @class */ (function (_super) {
2591
2651
  * @param {ChatMessageRequest} chatMessageRequest
2592
2652
  * @param {*} [options] Override http request option.
2593
2653
  * @throws {RequiredError}
2654
+ * @memberof ChatApi
2594
2655
  */
2595
2656
  ChatApi.prototype.sendMessageToChat = function (aid, chatId, chatMessageRequest, options) {
2596
2657
  var _this = this;
@@ -2604,6 +2665,7 @@ var ChatApi = /** @class */ (function (_super) {
2604
2665
  * @param {ChatUpdateRequest} chatUpdateRequest
2605
2666
  * @param {*} [options] Override http request option.
2606
2667
  * @throws {RequiredError}
2668
+ * @memberof ChatApi
2607
2669
  */
2608
2670
  ChatApi.prototype.updateChatThread = function (aid, chatId, chatUpdateRequest, options) {
2609
2671
  var _this = this;
@@ -2614,6 +2676,7 @@ var ChatApi = /** @class */ (function (_super) {
2614
2676
  exports.ChatApi = ChatApi;
2615
2677
  /**
2616
2678
  * CreditApi - axios parameter creator
2679
+ * @export
2617
2680
  */
2618
2681
  var CreditApiAxiosParamCreator = function (configuration) {
2619
2682
  var _this = this;
@@ -2886,6 +2949,7 @@ var CreditApiAxiosParamCreator = function (configuration) {
2886
2949
  exports.CreditApiAxiosParamCreator = CreditApiAxiosParamCreator;
2887
2950
  /**
2888
2951
  * CreditApi - functional programming interface
2952
+ * @export
2889
2953
  */
2890
2954
  var CreditApiFp = function (configuration) {
2891
2955
  var localVarAxiosParamCreator = (0, exports.CreditApiAxiosParamCreator)(configuration);
@@ -3017,6 +3081,7 @@ var CreditApiFp = function (configuration) {
3017
3081
  exports.CreditApiFp = CreditApiFp;
3018
3082
  /**
3019
3083
  * CreditApi - factory interface
3084
+ * @export
3020
3085
  */
3021
3086
  var CreditApiFactory = function (configuration, basePath, axios) {
3022
3087
  var localVarFp = (0, exports.CreditApiFp)(configuration);
@@ -3083,6 +3148,9 @@ var CreditApiFactory = function (configuration, basePath, axios) {
3083
3148
  exports.CreditApiFactory = CreditApiFactory;
3084
3149
  /**
3085
3150
  * CreditApi - object-oriented interface
3151
+ * @export
3152
+ * @class CreditApi
3153
+ * @extends {BaseAPI}
3086
3154
  */
3087
3155
  var CreditApi = /** @class */ (function (_super) {
3088
3156
  __extends(CreditApi, _super);
@@ -3095,6 +3163,7 @@ var CreditApi = /** @class */ (function (_super) {
3095
3163
  * @param {string} eventId Credit event ID
3096
3164
  * @param {*} [options] Override http request option.
3097
3165
  * @throws {RequiredError}
3166
+ * @memberof CreditApi
3098
3167
  */
3099
3168
  CreditApi.prototype.fetchCreditEvent = function (eventId, options) {
3100
3169
  var _this = this;
@@ -3105,6 +3174,7 @@ var CreditApi = /** @class */ (function (_super) {
3105
3174
  * @summary Get User Account
3106
3175
  * @param {*} [options] Override http request option.
3107
3176
  * @throws {RequiredError}
3177
+ * @memberof CreditApi
3108
3178
  */
3109
3179
  CreditApi.prototype.getUserAccount = function (options) {
3110
3180
  var _this = this;
@@ -3118,6 +3188,7 @@ var CreditApi = /** @class */ (function (_super) {
3118
3188
  * @param {number} [limit] Maximum number of events to return
3119
3189
  * @param {*} [options] Override http request option.
3120
3190
  * @throws {RequiredError}
3191
+ * @memberof CreditApi
3121
3192
  */
3122
3193
  CreditApi.prototype.listAgentIncomeEvents = function (agentId, cursor, limit, options) {
3123
3194
  var _this = this;
@@ -3132,6 +3203,7 @@ var CreditApi = /** @class */ (function (_super) {
3132
3203
  * @param {number} [limit] Maximum number of events to return
3133
3204
  * @param {*} [options] Override http request option.
3134
3205
  * @throws {RequiredError}
3206
+ * @memberof CreditApi
3135
3207
  */
3136
3208
  CreditApi.prototype.listUserEvents = function (eventType, direction, cursor, limit, options) {
3137
3209
  var _this = this;
@@ -3146,6 +3218,7 @@ var CreditApi = /** @class */ (function (_super) {
3146
3218
  * @param {number} [limit] Maximum number of transactions to return
3147
3219
  * @param {*} [options] Override http request option.
3148
3220
  * @throws {RequiredError}
3221
+ * @memberof CreditApi
3149
3222
  */
3150
3223
  CreditApi.prototype.listUserTransactions = function (txType, creditDebit, cursor, limit, options) {
3151
3224
  var _this = this;
@@ -3156,6 +3229,7 @@ var CreditApi = /** @class */ (function (_super) {
3156
3229
  exports.CreditApi = CreditApi;
3157
3230
  /**
3158
3231
  * DraftApi - axios parameter creator
3232
+ * @export
3159
3233
  */
3160
3234
  var DraftApiAxiosParamCreator = function (configuration) {
3161
3235
  var _this = this;
@@ -3208,6 +3282,53 @@ var DraftApiAxiosParamCreator = function (configuration) {
3208
3282
  });
3209
3283
  });
3210
3284
  },
3285
+ /**
3286
+ * Delete an unpublished agent draft. Removes the specified draft when it belongs to the current user and has not been deployed yet. Use this to clean up unused drafts before deployment. Possible HTTP errors: - 400: Draft has already been deployed and cannot be deleted - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found for the current user - 500: Internal server error
3287
+ * @summary Delete Agent Draft
3288
+ * @param {string} draftId Draft ID
3289
+ * @param {*} [options] Override http request option.
3290
+ * @throws {RequiredError}
3291
+ */
3292
+ deleteAgentDraft: function (draftId_1) {
3293
+ var args_1 = [];
3294
+ for (var _i = 1; _i < arguments.length; _i++) {
3295
+ args_1[_i - 1] = arguments[_i];
3296
+ }
3297
+ return __awaiter(_this, __spreadArray([draftId_1], args_1, true), void 0, function (draftId, options) {
3298
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3299
+ if (options === void 0) { options = {}; }
3300
+ return __generator(this, function (_a) {
3301
+ switch (_a.label) {
3302
+ case 0:
3303
+ // verify required parameter 'draftId' is not null or undefined
3304
+ (0, common_1.assertParamExists)('deleteAgentDraft', 'draftId', draftId);
3305
+ localVarPath = "/agent/drafts/{draft_id}"
3306
+ .replace("{".concat("draft_id", "}"), encodeURIComponent(String(draftId)));
3307
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3308
+ if (configuration) {
3309
+ baseOptions = configuration.baseOptions;
3310
+ }
3311
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
3312
+ localVarHeaderParameter = {};
3313
+ localVarQueryParameter = {};
3314
+ // authentication HTTPBearer required
3315
+ // http bearer authentication required
3316
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
3317
+ case 1:
3318
+ // authentication HTTPBearer required
3319
+ // http bearer authentication required
3320
+ _a.sent();
3321
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3322
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3323
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3324
+ return [2 /*return*/, {
3325
+ url: (0, common_1.toPathString)(localVarUrlObj),
3326
+ options: localVarRequestOptions,
3327
+ }];
3328
+ }
3329
+ });
3330
+ });
3331
+ },
3211
3332
  /**
3212
3333
  * Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. The upstream_id is set to the provided tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
3213
3334
  * @summary Deploy Agent From Draft
@@ -3402,17 +3523,18 @@ var DraftApiAxiosParamCreator = function (configuration) {
3402
3523
  });
3403
3524
  },
3404
3525
  /**
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
3526
+ * 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). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
3406
3527
  * @summary Get User Unpublished Drafts
3528
+ * @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
3407
3529
  * @param {*} [options] Override http request option.
3408
3530
  * @throws {RequiredError}
3409
3531
  */
3410
- getUserUnpublishedDrafts: function () {
3532
+ getUserUnpublishedDrafts: function (hasDeployment_1) {
3411
3533
  var args_1 = [];
3412
- for (var _i = 0; _i < arguments.length; _i++) {
3413
- args_1[_i] = arguments[_i];
3534
+ for (var _i = 1; _i < arguments.length; _i++) {
3535
+ args_1[_i - 1] = arguments[_i];
3414
3536
  }
3415
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
3537
+ return __awaiter(_this, __spreadArray([hasDeployment_1], args_1, true), void 0, function (hasDeployment, options) {
3416
3538
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3417
3539
  if (options === void 0) { options = {}; }
3418
3540
  return __generator(this, function (_a) {
@@ -3433,6 +3555,9 @@ var DraftApiAxiosParamCreator = function (configuration) {
3433
3555
  // authentication HTTPBearer required
3434
3556
  // http bearer authentication required
3435
3557
  _a.sent();
3558
+ if (hasDeployment !== undefined) {
3559
+ localVarQueryParameter['hasDeployment'] = hasDeployment;
3560
+ }
3436
3561
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3437
3562
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3438
3563
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3501,6 +3626,7 @@ var DraftApiAxiosParamCreator = function (configuration) {
3501
3626
  exports.DraftApiAxiosParamCreator = DraftApiAxiosParamCreator;
3502
3627
  /**
3503
3628
  * DraftApi - functional programming interface
3629
+ * @export
3504
3630
  */
3505
3631
  var DraftApiFp = function (configuration) {
3506
3632
  var localVarAxiosParamCreator = (0, exports.DraftApiAxiosParamCreator)(configuration);
@@ -3528,6 +3654,29 @@ var DraftApiFp = function (configuration) {
3528
3654
  });
3529
3655
  });
3530
3656
  },
3657
+ /**
3658
+ * Delete an unpublished agent draft. Removes the specified draft when it belongs to the current user and has not been deployed yet. Use this to clean up unused drafts before deployment. Possible HTTP errors: - 400: Draft has already been deployed and cannot be deleted - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found for the current user - 500: Internal server error
3659
+ * @summary Delete Agent Draft
3660
+ * @param {string} draftId Draft ID
3661
+ * @param {*} [options] Override http request option.
3662
+ * @throws {RequiredError}
3663
+ */
3664
+ deleteAgentDraft: function (draftId, options) {
3665
+ return __awaiter(this, void 0, void 0, function () {
3666
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3667
+ var _a, _b, _c;
3668
+ return __generator(this, function (_d) {
3669
+ switch (_d.label) {
3670
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteAgentDraft(draftId, options)];
3671
+ case 1:
3672
+ localVarAxiosArgs = _d.sent();
3673
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3674
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DraftApi.deleteAgentDraft']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3675
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3676
+ }
3677
+ });
3678
+ });
3679
+ },
3531
3680
  /**
3532
3681
  * Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. The upstream_id is set to the provided tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
3533
3682
  * @summary Deploy Agent From Draft
@@ -3622,18 +3771,19 @@ var DraftApiFp = function (configuration) {
3622
3771
  });
3623
3772
  },
3624
3773
  /**
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
3774
+ * 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). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
3626
3775
  * @summary Get User Unpublished Drafts
3776
+ * @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
3627
3777
  * @param {*} [options] Override http request option.
3628
3778
  * @throws {RequiredError}
3629
3779
  */
3630
- getUserUnpublishedDrafts: function (options) {
3780
+ getUserUnpublishedDrafts: function (hasDeployment, options) {
3631
3781
  return __awaiter(this, void 0, void 0, function () {
3632
3782
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3633
3783
  var _a, _b, _c;
3634
3784
  return __generator(this, function (_d) {
3635
3785
  switch (_d.label) {
3636
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserUnpublishedDrafts(options)];
3786
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserUnpublishedDrafts(hasDeployment, options)];
3637
3787
  case 1:
3638
3788
  localVarAxiosArgs = _d.sent();
3639
3789
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -3672,6 +3822,7 @@ var DraftApiFp = function (configuration) {
3672
3822
  exports.DraftApiFp = DraftApiFp;
3673
3823
  /**
3674
3824
  * DraftApi - factory interface
3825
+ * @export
3675
3826
  */
3676
3827
  var DraftApiFactory = function (configuration, basePath, axios) {
3677
3828
  var localVarFp = (0, exports.DraftApiFp)(configuration);
@@ -3686,6 +3837,16 @@ var DraftApiFactory = function (configuration, basePath, axios) {
3686
3837
  createAgentDraft: function (agentUserInput, options) {
3687
3838
  return localVarFp.createAgentDraft(agentUserInput, options).then(function (request) { return request(axios, basePath); });
3688
3839
  },
3840
+ /**
3841
+ * Delete an unpublished agent draft. Removes the specified draft when it belongs to the current user and has not been deployed yet. Use this to clean up unused drafts before deployment. Possible HTTP errors: - 400: Draft has already been deployed and cannot be deleted - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found for the current user - 500: Internal server error
3842
+ * @summary Delete Agent Draft
3843
+ * @param {string} draftId Draft ID
3844
+ * @param {*} [options] Override http request option.
3845
+ * @throws {RequiredError}
3846
+ */
3847
+ deleteAgentDraft: function (draftId, options) {
3848
+ return localVarFp.deleteAgentDraft(draftId, options).then(function (request) { return request(axios, basePath); });
3849
+ },
3689
3850
  /**
3690
3851
  * Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. The upstream_id is set to the provided tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
3691
3852
  * @summary Deploy Agent From Draft
@@ -3728,13 +3889,14 @@ var DraftApiFactory = function (configuration, basePath, axios) {
3728
3889
  return localVarFp.getAgentLatestDraft(agentId, options).then(function (request) { return request(axios, basePath); });
3729
3890
  },
3730
3891
  /**
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
3892
+ * 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). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
3732
3893
  * @summary Get User Unpublished Drafts
3894
+ * @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
3733
3895
  * @param {*} [options] Override http request option.
3734
3896
  * @throws {RequiredError}
3735
3897
  */
3736
- getUserUnpublishedDrafts: function (options) {
3737
- return localVarFp.getUserUnpublishedDrafts(options).then(function (request) { return request(axios, basePath); });
3898
+ getUserUnpublishedDrafts: function (hasDeployment, options) {
3899
+ return localVarFp.getUserUnpublishedDrafts(hasDeployment, options).then(function (request) { return request(axios, basePath); });
3738
3900
  },
3739
3901
  /**
3740
3902
  * 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
@@ -3752,6 +3914,9 @@ var DraftApiFactory = function (configuration, basePath, axios) {
3752
3914
  exports.DraftApiFactory = DraftApiFactory;
3753
3915
  /**
3754
3916
  * DraftApi - object-oriented interface
3917
+ * @export
3918
+ * @class DraftApi
3919
+ * @extends {BaseAPI}
3755
3920
  */
3756
3921
  var DraftApi = /** @class */ (function (_super) {
3757
3922
  __extends(DraftApi, _super);
@@ -3764,17 +3929,31 @@ var DraftApi = /** @class */ (function (_super) {
3764
3929
  * @param {AgentUserInput} agentUserInput
3765
3930
  * @param {*} [options] Override http request option.
3766
3931
  * @throws {RequiredError}
3932
+ * @memberof DraftApi
3767
3933
  */
3768
3934
  DraftApi.prototype.createAgentDraft = function (agentUserInput, options) {
3769
3935
  var _this = this;
3770
3936
  return (0, exports.DraftApiFp)(this.configuration).createAgentDraft(agentUserInput, options).then(function (request) { return request(_this.axios, _this.basePath); });
3771
3937
  };
3938
+ /**
3939
+ * Delete an unpublished agent draft. Removes the specified draft when it belongs to the current user and has not been deployed yet. Use this to clean up unused drafts before deployment. Possible HTTP errors: - 400: Draft has already been deployed and cannot be deleted - 401: Unauthorized (invalid or missing authentication) - 404: Draft not found for the current user - 500: Internal server error
3940
+ * @summary Delete Agent Draft
3941
+ * @param {string} draftId Draft ID
3942
+ * @param {*} [options] Override http request option.
3943
+ * @throws {RequiredError}
3944
+ * @memberof DraftApi
3945
+ */
3946
+ DraftApi.prototype.deleteAgentDraft = function (draftId, options) {
3947
+ var _this = this;
3948
+ return (0, exports.DraftApiFp)(this.configuration).deleteAgentDraft(draftId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3949
+ };
3772
3950
  /**
3773
3951
  * Deploy an agent from a draft. Takes the latest draft for the specified agent, validates it matches the provided draft ID, ensures it hasn\'t been deployed yet, then deploys the agent using the draft configuration. The upstream_id is set to the provided tx_id. Possible HTTP errors: - 400: Draft is not the latest version or already deployed - 401: Unauthorized (invalid or missing authentication) - 404: Agent or draft not found - 403: Permission denied (not your agent) - 500: Internal server error
3774
3952
  * @summary Deploy Agent From Draft
3775
3953
  * @param {AgentDeployRequest} agentDeployRequest
3776
3954
  * @param {*} [options] Override http request option.
3777
3955
  * @throws {RequiredError}
3956
+ * @memberof DraftApi
3778
3957
  */
3779
3958
  DraftApi.prototype.deployAgentFromDraft = function (agentDeployRequest, options) {
3780
3959
  var _this = this;
@@ -3787,6 +3966,7 @@ var DraftApi = /** @class */ (function (_super) {
3787
3966
  * @param {string} draftId Draft ID
3788
3967
  * @param {*} [options] Override http request option.
3789
3968
  * @throws {RequiredError}
3969
+ * @memberof DraftApi
3790
3970
  */
3791
3971
  DraftApi.prototype.getAgentDraftById = function (agentId, draftId, options) {
3792
3972
  var _this = this;
@@ -3798,6 +3978,7 @@ var DraftApi = /** @class */ (function (_super) {
3798
3978
  * @param {string} agentId Agent ID
3799
3979
  * @param {*} [options] Override http request option.
3800
3980
  * @throws {RequiredError}
3981
+ * @memberof DraftApi
3801
3982
  */
3802
3983
  DraftApi.prototype.getAgentDrafts = function (agentId, options) {
3803
3984
  var _this = this;
@@ -3809,20 +3990,23 @@ var DraftApi = /** @class */ (function (_super) {
3809
3990
  * @param {string} agentId Agent ID
3810
3991
  * @param {*} [options] Override http request option.
3811
3992
  * @throws {RequiredError}
3993
+ * @memberof DraftApi
3812
3994
  */
3813
3995
  DraftApi.prototype.getAgentLatestDraft = function (agentId, options) {
3814
3996
  var _this = this;
3815
3997
  return (0, exports.DraftApiFp)(this.configuration).getAgentLatestDraft(agentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
3816
3998
  };
3817
3999
  /**
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
4000
+ * 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). The hasDeployment parameter allows filtering: - false: Never deployed drafts (no last_draft_id) - true: Has deployment but unpublished drafts (has last_draft_id) - null/omitted: All unpublished drafts Possible HTTP errors: - 401: Unauthorized access - 500: Internal server error
3819
4001
  * @summary Get User Unpublished Drafts
4002
+ * @param {boolean | null} [hasDeployment] Filter by deployment status: false for never deployed, true for has deployment but unpublished drafts, null for all unpublished drafts
3820
4003
  * @param {*} [options] Override http request option.
3821
4004
  * @throws {RequiredError}
4005
+ * @memberof DraftApi
3822
4006
  */
3823
- DraftApi.prototype.getUserUnpublishedDrafts = function (options) {
4007
+ DraftApi.prototype.getUserUnpublishedDrafts = function (hasDeployment, options) {
3824
4008
  var _this = this;
3825
- return (0, exports.DraftApiFp)(this.configuration).getUserUnpublishedDrafts(options).then(function (request) { return request(_this.axios, _this.basePath); });
4009
+ return (0, exports.DraftApiFp)(this.configuration).getUserUnpublishedDrafts(hasDeployment, options).then(function (request) { return request(_this.axios, _this.basePath); });
3826
4010
  };
3827
4011
  /**
3828
4012
  * 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
@@ -3831,6 +4015,7 @@ var DraftApi = /** @class */ (function (_super) {
3831
4015
  * @param {AgentUserInput} agentUserInput
3832
4016
  * @param {*} [options] Override http request option.
3833
4017
  * @throws {RequiredError}
4018
+ * @memberof DraftApi
3834
4019
  */
3835
4020
  DraftApi.prototype.updateAgentDraft = function (agentId, agentUserInput, options) {
3836
4021
  var _this = this;
@@ -3841,6 +4026,7 @@ var DraftApi = /** @class */ (function (_super) {
3841
4026
  exports.DraftApi = DraftApi;
3842
4027
  /**
3843
4028
  * GeneratorApi - axios parameter creator
4029
+ * @export
3844
4030
  */
3845
4031
  var GeneratorApiAxiosParamCreator = function (configuration) {
3846
4032
  var _this = this;
@@ -3992,6 +4178,7 @@ var GeneratorApiAxiosParamCreator = function (configuration) {
3992
4178
  exports.GeneratorApiAxiosParamCreator = GeneratorApiAxiosParamCreator;
3993
4179
  /**
3994
4180
  * GeneratorApi - functional programming interface
4181
+ * @export
3995
4182
  */
3996
4183
  var GeneratorApiFp = function (configuration) {
3997
4184
  var localVarAxiosParamCreator = (0, exports.GeneratorApiAxiosParamCreator)(configuration);
@@ -4070,6 +4257,7 @@ var GeneratorApiFp = function (configuration) {
4070
4257
  exports.GeneratorApiFp = GeneratorApiFp;
4071
4258
  /**
4072
4259
  * GeneratorApi - factory interface
4260
+ * @export
4073
4261
  */
4074
4262
  var GeneratorApiFactory = function (configuration, basePath, axios) {
4075
4263
  var localVarFp = (0, exports.GeneratorApiFp)(configuration);
@@ -4109,6 +4297,9 @@ var GeneratorApiFactory = function (configuration, basePath, axios) {
4109
4297
  exports.GeneratorApiFactory = GeneratorApiFactory;
4110
4298
  /**
4111
4299
  * GeneratorApi - object-oriented interface
4300
+ * @export
4301
+ * @class GeneratorApi
4302
+ * @extends {BaseAPI}
4112
4303
  */
4113
4304
  var GeneratorApi = /** @class */ (function (_super) {
4114
4305
  __extends(GeneratorApi, _super);
@@ -4121,6 +4312,7 @@ var GeneratorApi = /** @class */ (function (_super) {
4121
4312
  * @param {AgentGenerateRequest} agentGenerateRequest
4122
4313
  * @param {*} [options] Override http request option.
4123
4314
  * @throws {RequiredError}
4315
+ * @memberof GeneratorApi
4124
4316
  */
4125
4317
  GeneratorApi.prototype.generateAgent = function (agentGenerateRequest, options) {
4126
4318
  var _this = this;
@@ -4132,6 +4324,7 @@ var GeneratorApi = /** @class */ (function (_super) {
4132
4324
  * @param {string} projectId
4133
4325
  * @param {*} [options] Override http request option.
4134
4326
  * @throws {RequiredError}
4327
+ * @memberof GeneratorApi
4135
4328
  */
4136
4329
  GeneratorApi.prototype.getGenerationHistory = function (projectId, options) {
4137
4330
  var _this = this;
@@ -4143,6 +4336,7 @@ var GeneratorApi = /** @class */ (function (_super) {
4143
4336
  * @param {number} [limit]
4144
4337
  * @param {*} [options] Override http request option.
4145
4338
  * @throws {RequiredError}
4339
+ * @memberof GeneratorApi
4146
4340
  */
4147
4341
  GeneratorApi.prototype.getGenerations = function (limit, options) {
4148
4342
  var _this = this;
@@ -4153,6 +4347,7 @@ var GeneratorApi = /** @class */ (function (_super) {
4153
4347
  exports.GeneratorApi = GeneratorApi;
4154
4348
  /**
4155
4349
  * HealthApi - axios parameter creator
4350
+ * @export
4156
4351
  */
4157
4352
  var HealthApiAxiosParamCreator = function (configuration) {
4158
4353
  var _this = this;
@@ -4195,6 +4390,7 @@ var HealthApiAxiosParamCreator = function (configuration) {
4195
4390
  exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
4196
4391
  /**
4197
4392
  * HealthApi - functional programming interface
4393
+ * @export
4198
4394
  */
4199
4395
  var HealthApiFp = function (configuration) {
4200
4396
  var localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
@@ -4226,6 +4422,7 @@ var HealthApiFp = function (configuration) {
4226
4422
  exports.HealthApiFp = HealthApiFp;
4227
4423
  /**
4228
4424
  * HealthApi - factory interface
4425
+ * @export
4229
4426
  */
4230
4427
  var HealthApiFactory = function (configuration, basePath, axios) {
4231
4428
  var localVarFp = (0, exports.HealthApiFp)(configuration);
@@ -4244,6 +4441,9 @@ var HealthApiFactory = function (configuration, basePath, axios) {
4244
4441
  exports.HealthApiFactory = HealthApiFactory;
4245
4442
  /**
4246
4443
  * HealthApi - object-oriented interface
4444
+ * @export
4445
+ * @class HealthApi
4446
+ * @extends {BaseAPI}
4247
4447
  */
4248
4448
  var HealthApi = /** @class */ (function (_super) {
4249
4449
  __extends(HealthApi, _super);
@@ -4255,6 +4455,7 @@ var HealthApi = /** @class */ (function (_super) {
4255
4455
  * @summary Health check endpoint
4256
4456
  * @param {*} [options] Override http request option.
4257
4457
  * @throws {RequiredError}
4458
+ * @memberof HealthApi
4258
4459
  */
4259
4460
  HealthApi.prototype.healthCheck = function (options) {
4260
4461
  var _this = this;
@@ -4265,6 +4466,7 @@ var HealthApi = /** @class */ (function (_super) {
4265
4466
  exports.HealthApi = HealthApi;
4266
4467
  /**
4267
4468
  * MetadataApi - axios parameter creator
4469
+ * @export
4268
4470
  */
4269
4471
  var MetadataApiAxiosParamCreator = function (configuration) {
4270
4472
  var _this = this;
@@ -4455,6 +4657,7 @@ var MetadataApiAxiosParamCreator = function (configuration) {
4455
4657
  exports.MetadataApiAxiosParamCreator = MetadataApiAxiosParamCreator;
4456
4658
  /**
4457
4659
  * MetadataApi - functional programming interface
4660
+ * @export
4458
4661
  */
4459
4662
  var MetadataApiFp = function (configuration) {
4460
4663
  var localVarAxiosParamCreator = (0, exports.MetadataApiAxiosParamCreator)(configuration);
@@ -4578,6 +4781,7 @@ var MetadataApiFp = function (configuration) {
4578
4781
  exports.MetadataApiFp = MetadataApiFp;
4579
4782
  /**
4580
4783
  * MetadataApi - factory interface
4784
+ * @export
4581
4785
  */
4582
4786
  var MetadataApiFactory = function (configuration, basePath, axios) {
4583
4787
  var localVarFp = (0, exports.MetadataApiFp)(configuration);
@@ -4636,6 +4840,9 @@ var MetadataApiFactory = function (configuration, basePath, axios) {
4636
4840
  exports.MetadataApiFactory = MetadataApiFactory;
4637
4841
  /**
4638
4842
  * MetadataApi - object-oriented interface
4843
+ * @export
4844
+ * @class MetadataApi
4845
+ * @extends {BaseAPI}
4639
4846
  */
4640
4847
  var MetadataApi = /** @class */ (function (_super) {
4641
4848
  __extends(MetadataApi, _super);
@@ -4647,6 +4854,7 @@ var MetadataApi = /** @class */ (function (_super) {
4647
4854
  * @summary Get agent schema
4648
4855
  * @param {*} [options] Override http request option.
4649
4856
  * @throws {RequiredError}
4857
+ * @memberof MetadataApi
4650
4858
  */
4651
4859
  MetadataApi.prototype.getAgentSchema = function (options) {
4652
4860
  var _this = this;
@@ -4657,6 +4865,7 @@ var MetadataApi = /** @class */ (function (_super) {
4657
4865
  * @summary Get all LLM models
4658
4866
  * @param {*} [options] Override http request option.
4659
4867
  * @throws {RequiredError}
4868
+ * @memberof MetadataApi
4660
4869
  */
4661
4870
  MetadataApi.prototype.getLlms = function (options) {
4662
4871
  var _this = this;
@@ -4670,6 +4879,7 @@ var MetadataApi = /** @class */ (function (_super) {
4670
4879
  * @param {string} ext Icon file extension
4671
4880
  * @param {*} [options] Override http request option.
4672
4881
  * @throws {RequiredError}
4882
+ * @memberof MetadataApi
4673
4883
  */
4674
4884
  MetadataApi.prototype.getSkillIcon = function (skill, iconName, ext, options) {
4675
4885
  var _this = this;
@@ -4681,6 +4891,7 @@ var MetadataApi = /** @class */ (function (_super) {
4681
4891
  * @param {string} skill Skill name
4682
4892
  * @param {*} [options] Override http request option.
4683
4893
  * @throws {RequiredError}
4894
+ * @memberof MetadataApi
4684
4895
  */
4685
4896
  MetadataApi.prototype.getSkillSchema = function (skill, options) {
4686
4897
  var _this = this;
@@ -4691,6 +4902,7 @@ var MetadataApi = /** @class */ (function (_super) {
4691
4902
  * @summary Get all skills
4692
4903
  * @param {*} [options] Override http request option.
4693
4904
  * @throws {RequiredError}
4905
+ * @memberof MetadataApi
4694
4906
  */
4695
4907
  MetadataApi.prototype.getSkills = function (options) {
4696
4908
  var _this = this;
@@ -4701,6 +4913,7 @@ var MetadataApi = /** @class */ (function (_super) {
4701
4913
  exports.MetadataApi = MetadataApi;
4702
4914
  /**
4703
4915
  * OAuthApi - axios parameter creator
4916
+ * @export
4704
4917
  */
4705
4918
  var OAuthApiAxiosParamCreator = function (configuration) {
4706
4919
  var _this = this;
@@ -4861,6 +5074,7 @@ var OAuthApiAxiosParamCreator = function (configuration) {
4861
5074
  exports.OAuthApiAxiosParamCreator = OAuthApiAxiosParamCreator;
4862
5075
  /**
4863
5076
  * OAuthApi - functional programming interface
5077
+ * @export
4864
5078
  */
4865
5079
  var OAuthApiFp = function (configuration) {
4866
5080
  var localVarAxiosParamCreator = (0, exports.OAuthApiAxiosParamCreator)(configuration);
@@ -4942,6 +5156,7 @@ var OAuthApiFp = function (configuration) {
4942
5156
  exports.OAuthApiFp = OAuthApiFp;
4943
5157
  /**
4944
5158
  * OAuthApi - factory interface
5159
+ * @export
4945
5160
  */
4946
5161
  var OAuthApiFactory = function (configuration, basePath, axios) {
4947
5162
  var localVarFp = (0, exports.OAuthApiFp)(configuration);
@@ -4984,6 +5199,9 @@ var OAuthApiFactory = function (configuration, basePath, axios) {
4984
5199
  exports.OAuthApiFactory = OAuthApiFactory;
4985
5200
  /**
4986
5201
  * OAuthApi - object-oriented interface
5202
+ * @export
5203
+ * @class OAuthApi
5204
+ * @extends {BaseAPI}
4987
5205
  */
4988
5206
  var OAuthApi = /** @class */ (function (_super) {
4989
5207
  __extends(OAuthApi, _super);
@@ -4997,6 +5215,7 @@ var OAuthApi = /** @class */ (function (_super) {
4997
5215
  * @param {string} redirectUri
4998
5216
  * @param {*} [options] Override http request option.
4999
5217
  * @throws {RequiredError}
5218
+ * @memberof OAuthApi
5000
5219
  */
5001
5220
  OAuthApi.prototype.getTwitterAuthUrl = function (agentId, redirectUri, options) {
5002
5221
  var _this = this;
@@ -5010,6 +5229,7 @@ var OAuthApi = /** @class */ (function (_super) {
5010
5229
  * @param {string | null} [error]
5011
5230
  * @param {*} [options] Override http request option.
5012
5231
  * @throws {RequiredError}
5232
+ * @memberof OAuthApi
5013
5233
  */
5014
5234
  OAuthApi.prototype.twitterOauthCallback = function (state, code, error, options) {
5015
5235
  var _this = this;
@@ -5021,6 +5241,7 @@ var OAuthApi = /** @class */ (function (_super) {
5021
5241
  * @param {string} agentId ID of the agent to unlink from X
5022
5242
  * @param {*} [options] Override http request option.
5023
5243
  * @throws {RequiredError}
5244
+ * @memberof OAuthApi
5024
5245
  */
5025
5246
  OAuthApi.prototype.unlinkTwitter = function (agentId, options) {
5026
5247
  var _this = this;
@@ -5031,6 +5252,7 @@ var OAuthApi = /** @class */ (function (_super) {
5031
5252
  exports.OAuthApi = OAuthApi;
5032
5253
  /**
5033
5254
  * UserApi - axios parameter creator
5255
+ * @export
5034
5256
  */
5035
5257
  var UserApiAxiosParamCreator = function (configuration) {
5036
5258
  var _this = this;
@@ -5190,6 +5412,7 @@ var UserApiAxiosParamCreator = function (configuration) {
5190
5412
  exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
5191
5413
  /**
5192
5414
  * UserApi - functional programming interface
5415
+ * @export
5193
5416
  */
5194
5417
  var UserApiFp = function (configuration) {
5195
5418
  var localVarAxiosParamCreator = (0, exports.UserApiAxiosParamCreator)(configuration);
@@ -5269,6 +5492,7 @@ var UserApiFp = function (configuration) {
5269
5492
  exports.UserApiFp = UserApiFp;
5270
5493
  /**
5271
5494
  * UserApi - factory interface
5495
+ * @export
5272
5496
  */
5273
5497
  var UserApiFactory = function (configuration, basePath, axios) {
5274
5498
  var localVarFp = (0, exports.UserApiFp)(configuration);
@@ -5309,6 +5533,9 @@ var UserApiFactory = function (configuration, basePath, axios) {
5309
5533
  exports.UserApiFactory = UserApiFactory;
5310
5534
  /**
5311
5535
  * UserApi - object-oriented interface
5536
+ * @export
5537
+ * @class UserApi
5538
+ * @extends {BaseAPI}
5312
5539
  */
5313
5540
  var UserApi = /** @class */ (function (_super) {
5314
5541
  __extends(UserApi, _super);
@@ -5321,6 +5548,7 @@ var UserApi = /** @class */ (function (_super) {
5321
5548
  * @param {string} agentId Agent ID
5322
5549
  * @param {*} [options] Override http request option.
5323
5550
  * @throws {RequiredError}
5551
+ * @memberof UserApi
5324
5552
  */
5325
5553
  UserApi.prototype.getUserAgentById = function (agentId, options) {
5326
5554
  var _this = this;
@@ -5333,6 +5561,7 @@ var UserApi = /** @class */ (function (_super) {
5333
5561
  * @param {number} [limit] Maximum number of agents to return
5334
5562
  * @param {*} [options] Override http request option.
5335
5563
  * @throws {RequiredError}
5564
+ * @memberof UserApi
5336
5565
  */
5337
5566
  UserApi.prototype.getUserAgents = function (cursor, limit, options) {
5338
5567
  var _this = this;
@@ -5344,6 +5573,7 @@ var UserApi = /** @class */ (function (_super) {
5344
5573
  * @param {File} file File to upload
5345
5574
  * @param {*} [options] Override http request option.
5346
5575
  * @throws {RequiredError}
5576
+ * @memberof UserApi
5347
5577
  */
5348
5578
  UserApi.prototype.uploadUserFile = function (file, options) {
5349
5579
  var _this = this;