@iblai/iblai-api 4.2.1-ai-plus → 4.3.0-ai

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.
Files changed (104) hide show
  1. package/dist/index.cjs.js +43 -1507
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +44 -1506
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +43 -1507
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +1 -44
  8. package/dist/types/models/{Provider637Enum.d.ts → ProviderEnum.d.ts} +1 -1
  9. package/dist/types/models/UserMemoryEntry.d.ts +1 -1
  10. package/dist/types/models/Voice.d.ts +2 -2
  11. package/dist/types/services/AiAccountService.d.ts +26 -83
  12. package/package.json +1 -1
  13. package/src/core/OpenAPI.ts +1 -1
  14. package/src/index.ts +1 -44
  15. package/src/models/{Provider637Enum.ts → ProviderEnum.ts} +1 -1
  16. package/src/models/UserMemoryEntry.ts +1 -1
  17. package/src/models/Voice.ts +2 -2
  18. package/src/services/AiAccountService.ts +38 -127
  19. package/dist/types/models/APITokenCost.d.ts +0 -14
  20. package/dist/types/models/Bot.d.ts +0 -15
  21. package/dist/types/models/BotCommand.d.ts +0 -6
  22. package/dist/types/models/BotCreate.d.ts +0 -12
  23. package/dist/types/models/DataSet.d.ts +0 -21
  24. package/dist/types/models/DataSetCreate.d.ts +0 -12
  25. package/dist/types/models/DataSetStatusEnum.d.ts +0 -12
  26. package/dist/types/models/DiscordConfig.d.ts +0 -7
  27. package/dist/types/models/DiscordUserConfig.d.ts +0 -10
  28. package/dist/types/models/DiscordWebhook.d.ts +0 -6
  29. package/dist/types/models/IBLAIPlatformMeta.d.ts +0 -3
  30. package/dist/types/models/IBLAIPlatformMetaRequest.d.ts +0 -6
  31. package/dist/types/models/IBLAIPlatformMetaUpdateRequest.d.ts +0 -10
  32. package/dist/types/models/PaginatedDataSetList.d.ts +0 -7
  33. package/dist/types/models/PaginatedTrainingList.d.ts +0 -7
  34. package/dist/types/models/PatchedBotCommand.d.ts +0 -6
  35. package/dist/types/models/PatchedBotCreate.d.ts +0 -12
  36. package/dist/types/models/PatchedDataSet.d.ts +0 -21
  37. package/dist/types/models/PatchedDiscordConfig.d.ts +0 -7
  38. package/dist/types/models/PatchedDiscordUserConfig.d.ts +0 -10
  39. package/dist/types/models/PatchedSlackConfig.d.ts +0 -8
  40. package/dist/types/models/PatchedSlackUserConfig.d.ts +0 -17
  41. package/dist/types/models/PatchedTeamsConfig.d.ts +0 -7
  42. package/dist/types/models/PatchedTrainingCreate.d.ts +0 -31
  43. package/dist/types/models/PatchedWebexConfig.d.ts +0 -10
  44. package/dist/types/models/PatchedWhatsappConfig.d.ts +0 -11
  45. package/dist/types/models/PatchedWhatsappUserConfig.d.ts +0 -10
  46. package/dist/types/models/Provider05cEnum.d.ts +0 -14
  47. package/dist/types/models/Provider63aEnum.d.ts +0 -6
  48. package/dist/types/models/SlackConfig.d.ts +0 -8
  49. package/dist/types/models/SlackUserConfig.d.ts +0 -17
  50. package/dist/types/models/SlackWebhook.d.ts +0 -6
  51. package/dist/types/models/TeamsConfig.d.ts +0 -7
  52. package/dist/types/models/TeamsWebhook.d.ts +0 -17
  53. package/dist/types/models/Training.d.ts +0 -41
  54. package/dist/types/models/TrainingCreate.d.ts +0 -31
  55. package/dist/types/models/WebexConfig.d.ts +0 -10
  56. package/dist/types/models/WebexWebhook.d.ts +0 -4
  57. package/dist/types/models/WhatAppWebHook.d.ts +0 -3
  58. package/dist/types/models/WhatsappConfig.d.ts +0 -11
  59. package/dist/types/models/WhatsappUserConfig.d.ts +0 -10
  60. package/dist/types/services/AiBotService.d.ts +0 -642
  61. package/dist/types/services/AiFinetuningService.d.ts +0 -232
  62. package/src/models/APITokenCost.ts +0 -19
  63. package/src/models/Bot.ts +0 -20
  64. package/src/models/BotCommand.ts +0 -11
  65. package/src/models/BotCreate.ts +0 -17
  66. package/src/models/DataSet.ts +0 -26
  67. package/src/models/DataSetCreate.ts +0 -17
  68. package/src/models/DataSetStatusEnum.ts +0 -16
  69. package/src/models/DiscordConfig.ts +0 -12
  70. package/src/models/DiscordUserConfig.ts +0 -15
  71. package/src/models/DiscordWebhook.ts +0 -11
  72. package/src/models/IBLAIPlatformMeta.ts +0 -8
  73. package/src/models/IBLAIPlatformMetaRequest.ts +0 -11
  74. package/src/models/IBLAIPlatformMetaUpdateRequest.ts +0 -15
  75. package/src/models/PaginatedDataSetList.ts +0 -12
  76. package/src/models/PaginatedTrainingList.ts +0 -12
  77. package/src/models/PatchedBotCommand.ts +0 -11
  78. package/src/models/PatchedBotCreate.ts +0 -17
  79. package/src/models/PatchedDataSet.ts +0 -26
  80. package/src/models/PatchedDiscordConfig.ts +0 -12
  81. package/src/models/PatchedDiscordUserConfig.ts +0 -15
  82. package/src/models/PatchedSlackConfig.ts +0 -13
  83. package/src/models/PatchedSlackUserConfig.ts +0 -22
  84. package/src/models/PatchedTeamsConfig.ts +0 -12
  85. package/src/models/PatchedTrainingCreate.ts +0 -36
  86. package/src/models/PatchedWebexConfig.ts +0 -15
  87. package/src/models/PatchedWhatsappConfig.ts +0 -16
  88. package/src/models/PatchedWhatsappUserConfig.ts +0 -15
  89. package/src/models/Provider05cEnum.ts +0 -18
  90. package/src/models/Provider63aEnum.ts +0 -10
  91. package/src/models/SlackConfig.ts +0 -13
  92. package/src/models/SlackUserConfig.ts +0 -22
  93. package/src/models/SlackWebhook.ts +0 -11
  94. package/src/models/TeamsConfig.ts +0 -12
  95. package/src/models/TeamsWebhook.ts +0 -22
  96. package/src/models/Training.ts +0 -46
  97. package/src/models/TrainingCreate.ts +0 -36
  98. package/src/models/WebexConfig.ts +0 -15
  99. package/src/models/WebexWebhook.ts +0 -9
  100. package/src/models/WhatAppWebHook.ts +0 -8
  101. package/src/models/WhatsappConfig.ts +0 -16
  102. package/src/models/WhatsappUserConfig.ts +0 -15
  103. package/src/services/AiBotService.ts +0 -1330
  104. package/src/services/AiFinetuningService.ts +0 -472
package/dist/index.esm.js CHANGED
@@ -108,7 +108,7 @@ class CancelablePromise {
108
108
 
109
109
  const OpenAPI = {
110
110
  BASE: 'https://base.manager.iblai.app',
111
- VERSION: '4.2.1-ai-plus',
111
+ VERSION: '4.3.0-ai',
112
112
  WITH_CREDENTIALS: false,
113
113
  CREDENTIALS: 'include',
114
114
  TOKEN: undefined,
@@ -257,24 +257,6 @@ var CrawlerPatternTypeEnum;
257
257
  CrawlerPatternTypeEnum["REGEX"] = "regex";
258
258
  })(CrawlerPatternTypeEnum || (CrawlerPatternTypeEnum = {}));
259
259
 
260
- /* generated using openapi-typescript-codegen -- do not edit */
261
- /* istanbul ignore file */
262
- /* tslint:disable */
263
- /* eslint-disable */
264
- /**
265
- * * `pending` - Pending
266
- * * `processing` - Processing
267
- * * `completed` - Completed
268
- * * `failed` - Failed
269
- */
270
- var DataSetStatusEnum;
271
- (function (DataSetStatusEnum) {
272
- DataSetStatusEnum["PENDING"] = "pending";
273
- DataSetStatusEnum["PROCESSING"] = "processing";
274
- DataSetStatusEnum["COMPLETED"] = "completed";
275
- DataSetStatusEnum["FAILED"] = "failed";
276
- })(DataSetStatusEnum || (DataSetStatusEnum = {}));
277
-
278
260
  /* generated using openapi-typescript-codegen -- do not edit */
279
261
  /* istanbul ignore file */
280
262
  /* tslint:disable */
@@ -571,26 +553,6 @@ var PromptVisibilityEnum;
571
553
  PromptVisibilityEnum["VIEWABLE_BY_ANYONE"] = "viewable_by_anyone";
572
554
  })(PromptVisibilityEnum || (PromptVisibilityEnum = {}));
573
555
 
574
- /* generated using openapi-typescript-codegen -- do not edit */
575
- /* istanbul ignore file */
576
- /* tslint:disable */
577
- /* eslint-disable */
578
- /**
579
- * * `webex` - Webex
580
- * * `slack` - Slack
581
- * * `whatsapp` - Whatsapp
582
- * * `discord` - Discord
583
- * * `teams` - Teams
584
- */
585
- var Provider05cEnum;
586
- (function (Provider05cEnum) {
587
- Provider05cEnum["WEBEX"] = "webex";
588
- Provider05cEnum["SLACK"] = "slack";
589
- Provider05cEnum["WHATSAPP"] = "whatsapp";
590
- Provider05cEnum["DISCORD"] = "discord";
591
- Provider05cEnum["TEAMS"] = "teams";
592
- })(Provider05cEnum || (Provider05cEnum = {}));
593
-
594
556
  /* generated using openapi-typescript-codegen -- do not edit */
595
557
  /* istanbul ignore file */
596
558
  /* tslint:disable */
@@ -600,24 +562,12 @@ var Provider05cEnum;
600
562
  * * `google` - Google
601
563
  * * `elevenlabs` - Elevenlabs
602
564
  */
603
- var Provider637Enum;
604
- (function (Provider637Enum) {
605
- Provider637Enum["OPENAI"] = "openai";
606
- Provider637Enum["GOOGLE"] = "google";
607
- Provider637Enum["ELEVENLABS"] = "elevenlabs";
608
- })(Provider637Enum || (Provider637Enum = {}));
609
-
610
- /* generated using openapi-typescript-codegen -- do not edit */
611
- /* istanbul ignore file */
612
- /* tslint:disable */
613
- /* eslint-disable */
614
- /**
615
- * * `openai` - Openai
616
- */
617
- var Provider63aEnum;
618
- (function (Provider63aEnum) {
619
- Provider63aEnum["OPENAI"] = "openai";
620
- })(Provider63aEnum || (Provider63aEnum = {}));
565
+ var ProviderEnum;
566
+ (function (ProviderEnum) {
567
+ ProviderEnum["OPENAI"] = "openai";
568
+ ProviderEnum["GOOGLE"] = "google";
569
+ ProviderEnum["ELEVENLABS"] = "elevenlabs";
570
+ })(ProviderEnum || (ProviderEnum = {}));
621
571
 
622
572
  /* generated using openapi-typescript-codegen -- do not edit */
623
573
  /* istanbul ignore file */
@@ -1174,6 +1124,33 @@ class AiAccountService {
1174
1124
  mediaType: 'application/json'
1175
1125
  });
1176
1126
  }
1127
+ /**
1128
+ * Delete an existing LLM credential for an organization.
1129
+ *
1130
+ * Args:
1131
+ * request: The HTTP request containing updated credential information
1132
+ * org: Organization key identifier
1133
+ *
1134
+ * Returns:
1135
+ * Response: 204
1136
+ *
1137
+ * Raises:
1138
+ * NotFound: When organization or credential is not found
1139
+ * ValidationError: When request data is invalid
1140
+ * @returns void
1141
+ * @throws ApiError
1142
+ */
1143
+ static aiAccountOrgsCredentialDestroy({
1144
+ org
1145
+ }) {
1146
+ return request(OpenAPI, {
1147
+ method: 'DELETE',
1148
+ url: '/api/ai-account/orgs/{org}/credential/',
1149
+ path: {
1150
+ 'org': org
1151
+ }
1152
+ });
1153
+ }
1177
1154
  /**
1178
1155
  * Retrieve integration credentials for an organization.
1179
1156
  *
@@ -1269,127 +1246,29 @@ class AiAccountService {
1269
1246
  });
1270
1247
  }
1271
1248
  /**
1272
- * Retrieve platform metadata for a specific organization.
1273
- *
1274
- * Args:
1275
- * request: The HTTP request
1276
- * org: Organization key identifier
1277
- *
1278
- * Returns:
1279
- * Response: Platform metadata including service configurations and active services
1280
- *
1281
- * Raises:
1282
- * NotFound: When platform metadata is not found
1283
- * @returns IBLAIPlatformMeta
1284
- * @throws ApiError
1285
- */
1286
- static aiAccountOrgsPlatformMetadataList({
1287
- org
1288
- }) {
1289
- return request(OpenAPI, {
1290
- method: 'GET',
1291
- url: '/api/ai-account/orgs/{org}/platform-metadata/',
1292
- path: {
1293
- 'org': org
1294
- }
1295
- });
1296
- }
1297
- /**
1298
- * Create or update platform metadata for a specific organization.
1299
- *
1300
- * Args:
1301
- * request: The HTTP request containing metadata information
1302
- * org: Organization key identifier
1303
- *
1304
- * Returns:
1305
- * Response: Created/updated platform metadata
1306
- *
1307
- * Raises:
1308
- * NotFound: When platform is not found
1309
- * ValidationError: When request data is invalid
1310
- * @returns IBLAIPlatformMeta
1311
- * @throws ApiError
1312
- */
1313
- static aiAccountOrgsPlatformMetadataCreate({
1314
- org,
1315
- requestBody
1316
- }) {
1317
- return request(OpenAPI, {
1318
- method: 'POST',
1319
- url: '/api/ai-account/orgs/{org}/platform-metadata/',
1320
- path: {
1321
- 'org': org
1322
- },
1323
- body: requestBody,
1324
- mediaType: 'application/json'
1325
- });
1326
- }
1327
- /**
1328
- * Update specific fields of platform metadata for an organization.
1329
- *
1330
- * This endpoint allows updating the active LLM provider and available LLMs.
1249
+ * Delete an existing integration credential for an organization.
1331
1250
  *
1332
1251
  * Args:
1333
- * request: The HTTP request containing update information
1252
+ * request: The HTTP request containing credential information (must include 'id')
1334
1253
  * org: Organization key identifier
1335
1254
  *
1336
1255
  * Returns:
1337
- * Response: Updated platform metadata
1256
+ * Response: 204
1338
1257
  *
1339
1258
  * Raises:
1340
- * NotFound: When platform metadata is not found
1259
+ * NotFound: When organization or credential is not found
1341
1260
  * ValidationError: When request data is invalid
1342
- * @returns IBLAIPlatformMeta
1343
- * @throws ApiError
1344
- */
1345
- static aiAccountOrgsPlatformMetadataUpdate({
1346
- org,
1347
- requestBody
1348
- }) {
1349
- return request(OpenAPI, {
1350
- method: 'PUT',
1351
- url: '/api/ai-account/orgs/{org}/platform-metadata/',
1352
- path: {
1353
- 'org': org
1354
- },
1355
- body: requestBody,
1356
- mediaType: 'application/json'
1357
- });
1358
- }
1359
- /**
1360
- * Retrieve weekly token usage statistics for an organization.
1361
- *
1362
- * Query Parameters:
1363
- * username (optional): Filter results by specific username
1364
- * session_id (optional): Filter results by specific session ID
1365
- *
1366
- * Args:
1367
- * request: The HTTP request
1368
- * org: Organization key identifier
1369
- *
1370
- * Returns:
1371
- * Response: List of weekly token usage records with prompt and completion tokens
1372
- *
1373
- * Raises:
1374
- * NotFound: When organization is not found or when no sessions match the filters
1375
- * ValidationError: When query parameters are invalid
1376
- * @returns APITokenCost
1261
+ * @returns void
1377
1262
  * @throws ApiError
1378
1263
  */
1379
- static aiAccountOrgsTokensList({
1380
- org,
1381
- sessionId,
1382
- username
1264
+ static aiAccountOrgsIntegrationCredentialDestroy({
1265
+ org
1383
1266
  }) {
1384
1267
  return request(OpenAPI, {
1385
- method: 'GET',
1386
- url: '/api/ai-account/orgs/{org}/tokens/',
1268
+ method: 'DELETE',
1269
+ url: '/api/ai-account/orgs/{org}/integration-credential/',
1387
1270
  path: {
1388
1271
  'org': org
1389
- },
1390
- query: {
1391
- 'session_id': sessionId,
1392
- 'username': username
1393
1272
  }
1394
1273
  });
1395
1274
  }
@@ -9160,1347 +9039,6 @@ class AiAnalyticsService {
9160
9039
  }
9161
9040
  }
9162
9041
 
9163
- class AiBotService {
9164
- /**
9165
- * Create modify and update bot information for a specific tenant.
9166
- * @returns Bot
9167
- * @throws ApiError
9168
- */
9169
- static aiBotV1BotsBotList({
9170
- org
9171
- }) {
9172
- return request(OpenAPI, {
9173
- method: 'GET',
9174
- url: '/api/ai-bot/v1/bots/{org}/bot/',
9175
- path: {
9176
- 'org': org
9177
- }
9178
- });
9179
- }
9180
- /**
9181
- * Create modify and update bot information for a specific tenant.
9182
- * @returns BotCreate
9183
- * @throws ApiError
9184
- */
9185
- static aiBotV1BotsBotCreate({
9186
- org,
9187
- requestBody
9188
- }) {
9189
- return request(OpenAPI, {
9190
- method: 'POST',
9191
- url: '/api/ai-bot/v1/bots/{org}/bot/',
9192
- path: {
9193
- 'org': org
9194
- },
9195
- body: requestBody,
9196
- mediaType: 'application/json'
9197
- });
9198
- }
9199
- /**
9200
- * Create slash commands for a specific bot
9201
- * eg. /iblai-baseline
9202
- * @returns BotCommand
9203
- * @throws ApiError
9204
- */
9205
- static aiBotV1BotsBotCommandsList({
9206
- org
9207
- }) {
9208
- return request(OpenAPI, {
9209
- method: 'GET',
9210
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
9211
- path: {
9212
- 'org': org
9213
- }
9214
- });
9215
- }
9216
- /**
9217
- * Create slash commands for a specific bot
9218
- * eg. /iblai-baseline
9219
- * @returns BotCommand
9220
- * @throws ApiError
9221
- */
9222
- static aiBotV1BotsBotCommandsCreate({
9223
- org,
9224
- requestBody
9225
- }) {
9226
- return request(OpenAPI, {
9227
- method: 'POST',
9228
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/',
9229
- path: {
9230
- 'org': org
9231
- },
9232
- body: requestBody,
9233
- mediaType: 'application/json'
9234
- });
9235
- }
9236
- /**
9237
- * Create slash commands for a specific bot
9238
- * eg. /iblai-baseline
9239
- * @returns BotCommand
9240
- * @throws ApiError
9241
- */
9242
- static aiBotV1BotsBotCommandsRetrieve({
9243
- id,
9244
- org
9245
- }) {
9246
- return request(OpenAPI, {
9247
- method: 'GET',
9248
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9249
- path: {
9250
- 'id': id,
9251
- 'org': org
9252
- }
9253
- });
9254
- }
9255
- /**
9256
- * Create slash commands for a specific bot
9257
- * eg. /iblai-baseline
9258
- * @returns BotCommand
9259
- * @throws ApiError
9260
- */
9261
- static aiBotV1BotsBotCommandsUpdate({
9262
- id,
9263
- org,
9264
- requestBody
9265
- }) {
9266
- return request(OpenAPI, {
9267
- method: 'PUT',
9268
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9269
- path: {
9270
- 'id': id,
9271
- 'org': org
9272
- },
9273
- body: requestBody,
9274
- mediaType: 'application/json'
9275
- });
9276
- }
9277
- /**
9278
- * Create slash commands for a specific bot
9279
- * eg. /iblai-baseline
9280
- * @returns BotCommand
9281
- * @throws ApiError
9282
- */
9283
- static aiBotV1BotsBotCommandsPartialUpdate({
9284
- id,
9285
- org,
9286
- requestBody
9287
- }) {
9288
- return request(OpenAPI, {
9289
- method: 'PATCH',
9290
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9291
- path: {
9292
- 'id': id,
9293
- 'org': org
9294
- },
9295
- body: requestBody,
9296
- mediaType: 'application/json'
9297
- });
9298
- }
9299
- /**
9300
- * Create slash commands for a specific bot
9301
- * eg. /iblai-baseline
9302
- * @returns void
9303
- * @throws ApiError
9304
- */
9305
- static aiBotV1BotsBotCommandsDestroy({
9306
- id,
9307
- org
9308
- }) {
9309
- return request(OpenAPI, {
9310
- method: 'DELETE',
9311
- url: '/api/ai-bot/v1/bots/{org}/bot-commands/{id}/',
9312
- path: {
9313
- 'id': id,
9314
- 'org': org
9315
- }
9316
- });
9317
- }
9318
- /**
9319
- * Create modify and update bot information for a specific tenant.
9320
- * @returns Bot
9321
- * @throws ApiError
9322
- */
9323
- static aiBotV1BotsBotRetrieve({
9324
- id,
9325
- org
9326
- }) {
9327
- return request(OpenAPI, {
9328
- method: 'GET',
9329
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9330
- path: {
9331
- 'id': id,
9332
- 'org': org
9333
- }
9334
- });
9335
- }
9336
- /**
9337
- * Create modify and update bot information for a specific tenant.
9338
- * @returns BotCreate
9339
- * @throws ApiError
9340
- */
9341
- static aiBotV1BotsBotUpdate({
9342
- id,
9343
- org,
9344
- requestBody
9345
- }) {
9346
- return request(OpenAPI, {
9347
- method: 'PUT',
9348
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9349
- path: {
9350
- 'id': id,
9351
- 'org': org
9352
- },
9353
- body: requestBody,
9354
- mediaType: 'application/json'
9355
- });
9356
- }
9357
- /**
9358
- * Create modify and update bot information for a specific tenant.
9359
- * @returns BotCreate
9360
- * @throws ApiError
9361
- */
9362
- static aiBotV1BotsBotPartialUpdate({
9363
- id,
9364
- org,
9365
- requestBody
9366
- }) {
9367
- return request(OpenAPI, {
9368
- method: 'PATCH',
9369
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9370
- path: {
9371
- 'id': id,
9372
- 'org': org
9373
- },
9374
- body: requestBody,
9375
- mediaType: 'application/json'
9376
- });
9377
- }
9378
- /**
9379
- * Create modify and update bot information for a specific tenant.
9380
- * @returns void
9381
- * @throws ApiError
9382
- */
9383
- static aiBotV1BotsBotDestroy({
9384
- id,
9385
- org
9386
- }) {
9387
- return request(OpenAPI, {
9388
- method: 'DELETE',
9389
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/',
9390
- path: {
9391
- 'id': id,
9392
- 'org': org
9393
- }
9394
- });
9395
- }
9396
- /**
9397
- * Create modify and update bot information for a specific tenant.
9398
- * @returns DiscordConfig
9399
- * @throws ApiError
9400
- */
9401
- static aiBotV1BotsBotConfigDiscordRetrieve({
9402
- id,
9403
- org
9404
- }) {
9405
- return request(OpenAPI, {
9406
- method: 'GET',
9407
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
9408
- path: {
9409
- 'id': id,
9410
- 'org': org
9411
- }
9412
- });
9413
- }
9414
- /**
9415
- * Create modify and update bot information for a specific tenant.
9416
- * @returns DiscordConfig
9417
- * @throws ApiError
9418
- */
9419
- static aiBotV1BotsBotConfigDiscordPartialUpdate({
9420
- id,
9421
- org,
9422
- requestBody
9423
- }) {
9424
- return request(OpenAPI, {
9425
- method: 'PATCH',
9426
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/discord/',
9427
- path: {
9428
- 'id': id,
9429
- 'org': org
9430
- },
9431
- body: requestBody,
9432
- mediaType: 'application/json'
9433
- });
9434
- }
9435
- /**
9436
- * Create modify and update bot information for a specific tenant.
9437
- * @returns SlackConfig
9438
- * @throws ApiError
9439
- */
9440
- static aiBotV1BotsBotConfigSlackRetrieve({
9441
- id,
9442
- org
9443
- }) {
9444
- return request(OpenAPI, {
9445
- method: 'GET',
9446
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/',
9447
- path: {
9448
- 'id': id,
9449
- 'org': org
9450
- }
9451
- });
9452
- }
9453
- /**
9454
- * Create modify and update bot information for a specific tenant.
9455
- * @returns SlackConfig
9456
- * @throws ApiError
9457
- */
9458
- static aiBotV1BotsBotConfigSlackUpdateCreate({
9459
- id,
9460
- org,
9461
- requestBody
9462
- }) {
9463
- return request(OpenAPI, {
9464
- method: 'POST',
9465
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9466
- path: {
9467
- 'id': id,
9468
- 'org': org
9469
- },
9470
- body: requestBody,
9471
- mediaType: 'application/json'
9472
- });
9473
- }
9474
- /**
9475
- * Create modify and update bot information for a specific tenant.
9476
- * @returns SlackConfig
9477
- * @throws ApiError
9478
- */
9479
- static aiBotV1BotsBotConfigSlackUpdateUpdate({
9480
- id,
9481
- org,
9482
- requestBody
9483
- }) {
9484
- return request(OpenAPI, {
9485
- method: 'PUT',
9486
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9487
- path: {
9488
- 'id': id,
9489
- 'org': org
9490
- },
9491
- body: requestBody,
9492
- mediaType: 'application/json'
9493
- });
9494
- }
9495
- /**
9496
- * Create modify and update bot information for a specific tenant.
9497
- * @returns SlackConfig
9498
- * @throws ApiError
9499
- */
9500
- static aiBotV1BotsBotConfigSlackUpdatePartialUpdate({
9501
- id,
9502
- org,
9503
- requestBody
9504
- }) {
9505
- return request(OpenAPI, {
9506
- method: 'PATCH',
9507
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/slack/update/',
9508
- path: {
9509
- 'id': id,
9510
- 'org': org
9511
- },
9512
- body: requestBody,
9513
- mediaType: 'application/json'
9514
- });
9515
- }
9516
- /**
9517
- * Create modify and update bot information for a specific tenant.
9518
- * @returns TeamsConfig
9519
- * @throws ApiError
9520
- */
9521
- static aiBotV1BotsBotConfigTeamsRetrieve({
9522
- id,
9523
- org
9524
- }) {
9525
- return request(OpenAPI, {
9526
- method: 'GET',
9527
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/',
9528
- path: {
9529
- 'id': id,
9530
- 'org': org
9531
- }
9532
- });
9533
- }
9534
- /**
9535
- * Create modify and update bot information for a specific tenant.
9536
- * @returns TeamsConfig
9537
- * @throws ApiError
9538
- */
9539
- static aiBotV1BotsBotConfigTeamsUpdateCreate({
9540
- id,
9541
- org,
9542
- requestBody
9543
- }) {
9544
- return request(OpenAPI, {
9545
- method: 'POST',
9546
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
9547
- path: {
9548
- 'id': id,
9549
- 'org': org
9550
- },
9551
- body: requestBody,
9552
- mediaType: 'application/json'
9553
- });
9554
- }
9555
- /**
9556
- * Create modify and update bot information for a specific tenant.
9557
- * @returns TeamsConfig
9558
- * @throws ApiError
9559
- */
9560
- static aiBotV1BotsBotConfigTeamsUpdateUpdate({
9561
- id,
9562
- org,
9563
- requestBody
9564
- }) {
9565
- return request(OpenAPI, {
9566
- method: 'PUT',
9567
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
9568
- path: {
9569
- 'id': id,
9570
- 'org': org
9571
- },
9572
- body: requestBody,
9573
- mediaType: 'application/json'
9574
- });
9575
- }
9576
- /**
9577
- * Create modify and update bot information for a specific tenant.
9578
- * @returns TeamsConfig
9579
- * @throws ApiError
9580
- */
9581
- static aiBotV1BotsBotConfigTeamsUpdatePartialUpdate({
9582
- id,
9583
- org,
9584
- requestBody
9585
- }) {
9586
- return request(OpenAPI, {
9587
- method: 'PATCH',
9588
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/teams/update/',
9589
- path: {
9590
- 'id': id,
9591
- 'org': org
9592
- },
9593
- body: requestBody,
9594
- mediaType: 'application/json'
9595
- });
9596
- }
9597
- /**
9598
- * Create modify and update bot information for a specific tenant.
9599
- * @returns WebexConfig
9600
- * @throws ApiError
9601
- */
9602
- static aiBotV1BotsBotConfigWebexRetrieve({
9603
- id,
9604
- org
9605
- }) {
9606
- return request(OpenAPI, {
9607
- method: 'GET',
9608
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
9609
- path: {
9610
- 'id': id,
9611
- 'org': org
9612
- }
9613
- });
9614
- }
9615
- /**
9616
- * Create modify and update bot information for a specific tenant.
9617
- * @returns WebexConfig
9618
- * @throws ApiError
9619
- */
9620
- static aiBotV1BotsBotConfigWebexPartialUpdate({
9621
- id,
9622
- org,
9623
- requestBody
9624
- }) {
9625
- return request(OpenAPI, {
9626
- method: 'PATCH',
9627
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/webex/',
9628
- path: {
9629
- 'id': id,
9630
- 'org': org
9631
- },
9632
- body: requestBody,
9633
- mediaType: 'application/json'
9634
- });
9635
- }
9636
- /**
9637
- * Create modify and update bot information for a specific tenant.
9638
- * @returns WhatsappConfig
9639
- * @throws ApiError
9640
- */
9641
- static aiBotV1BotsBotConfigWhatsappRetrieve({
9642
- id,
9643
- org
9644
- }) {
9645
- return request(OpenAPI, {
9646
- method: 'GET',
9647
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/config/whatsapp/',
9648
- path: {
9649
- 'id': id,
9650
- 'org': org
9651
- }
9652
- });
9653
- }
9654
- /**
9655
- * Create modify and update bot information for a specific tenant.
9656
- * @returns WhatsappConfig
9657
- * @throws ApiError
9658
- */
9659
- static aiBotV1BotsBotWhatsappConfigUpdate({
9660
- id,
9661
- org,
9662
- requestBody
9663
- }) {
9664
- return request(OpenAPI, {
9665
- method: 'PUT',
9666
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
9667
- path: {
9668
- 'id': id,
9669
- 'org': org
9670
- },
9671
- body: requestBody,
9672
- mediaType: 'application/json'
9673
- });
9674
- }
9675
- /**
9676
- * Create modify and update bot information for a specific tenant.
9677
- * @returns WhatsappConfig
9678
- * @throws ApiError
9679
- */
9680
- static aiBotV1BotsBotWhatsappConfigPartialUpdate({
9681
- id,
9682
- org,
9683
- requestBody
9684
- }) {
9685
- return request(OpenAPI, {
9686
- method: 'PATCH',
9687
- url: '/api/ai-bot/v1/bots/{org}/bot/{id}/whatsapp-config/',
9688
- path: {
9689
- 'id': id,
9690
- 'org': org
9691
- },
9692
- body: requestBody,
9693
- mediaType: 'application/json'
9694
- });
9695
- }
9696
- /**
9697
- * Setup discord user id linkage with discord bots
9698
- * this will be used to authenticate the user when interracting with discord bots.
9699
- * the user id can be copied from the discord app after tapping on the user profile.
9700
- * @returns DiscordUserConfig
9701
- * @throws ApiError
9702
- */
9703
- static aiBotV1BotsDiscordUserConfigList({
9704
- org
9705
- }) {
9706
- return request(OpenAPI, {
9707
- method: 'GET',
9708
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
9709
- path: {
9710
- 'org': org
9711
- }
9712
- });
9713
- }
9714
- /**
9715
- * Setup discord user id linkage with discord bots
9716
- * this will be used to authenticate the user when interracting with discord bots.
9717
- * the user id can be copied from the discord app after tapping on the user profile.
9718
- * @returns DiscordUserConfig
9719
- * @throws ApiError
9720
- */
9721
- static aiBotV1BotsDiscordUserConfigCreate({
9722
- org,
9723
- requestBody
9724
- }) {
9725
- return request(OpenAPI, {
9726
- method: 'POST',
9727
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/',
9728
- path: {
9729
- 'org': org
9730
- },
9731
- body: requestBody,
9732
- mediaType: 'application/json'
9733
- });
9734
- }
9735
- /**
9736
- * Setup discord user id linkage with discord bots
9737
- * this will be used to authenticate the user when interracting with discord bots.
9738
- * the user id can be copied from the discord app after tapping on the user profile.
9739
- * @returns DiscordUserConfig
9740
- * @throws ApiError
9741
- */
9742
- static aiBotV1BotsDiscordUserConfigRetrieve({
9743
- id,
9744
- org
9745
- }) {
9746
- return request(OpenAPI, {
9747
- method: 'GET',
9748
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
9749
- path: {
9750
- 'id': id,
9751
- 'org': org
9752
- }
9753
- });
9754
- }
9755
- /**
9756
- * Setup discord user id linkage with discord bots
9757
- * this will be used to authenticate the user when interracting with discord bots.
9758
- * the user id can be copied from the discord app after tapping on the user profile.
9759
- * @returns DiscordUserConfig
9760
- * @throws ApiError
9761
- */
9762
- static aiBotV1BotsDiscordUserConfigUpdate({
9763
- id,
9764
- org,
9765
- requestBody
9766
- }) {
9767
- return request(OpenAPI, {
9768
- method: 'PUT',
9769
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
9770
- path: {
9771
- 'id': id,
9772
- 'org': org
9773
- },
9774
- body: requestBody,
9775
- mediaType: 'application/json'
9776
- });
9777
- }
9778
- /**
9779
- * Setup discord user id linkage with discord bots
9780
- * this will be used to authenticate the user when interracting with discord bots.
9781
- * the user id can be copied from the discord app after tapping on the user profile.
9782
- * @returns DiscordUserConfig
9783
- * @throws ApiError
9784
- */
9785
- static aiBotV1BotsDiscordUserConfigPartialUpdate({
9786
- id,
9787
- org,
9788
- requestBody
9789
- }) {
9790
- return request(OpenAPI, {
9791
- method: 'PATCH',
9792
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
9793
- path: {
9794
- 'id': id,
9795
- 'org': org
9796
- },
9797
- body: requestBody,
9798
- mediaType: 'application/json'
9799
- });
9800
- }
9801
- /**
9802
- * Setup discord user id linkage with discord bots
9803
- * this will be used to authenticate the user when interracting with discord bots.
9804
- * the user id can be copied from the discord app after tapping on the user profile.
9805
- * @returns void
9806
- * @throws ApiError
9807
- */
9808
- static aiBotV1BotsDiscordUserConfigDestroy({
9809
- id,
9810
- org
9811
- }) {
9812
- return request(OpenAPI, {
9813
- method: 'DELETE',
9814
- url: '/api/ai-bot/v1/bots/{org}/discord-user-config/{id}/',
9815
- path: {
9816
- 'id': id,
9817
- 'org': org
9818
- }
9819
- });
9820
- }
9821
- /**
9822
- * Setup slack username and domain linkage with slack bots
9823
- * this will be used to authenticate the user when interracting with slack bots.
9824
- * @returns SlackUserConfig
9825
- * @throws ApiError
9826
- */
9827
- static aiBotV1BotsSlackUserConfigList({
9828
- org
9829
- }) {
9830
- return request(OpenAPI, {
9831
- method: 'GET',
9832
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
9833
- path: {
9834
- 'org': org
9835
- }
9836
- });
9837
- }
9838
- /**
9839
- * Setup slack username and domain linkage with slack bots
9840
- * this will be used to authenticate the user when interracting with slack bots.
9841
- * @returns SlackUserConfig
9842
- * @throws ApiError
9843
- */
9844
- static aiBotV1BotsSlackUserConfigCreate({
9845
- org,
9846
- requestBody
9847
- }) {
9848
- return request(OpenAPI, {
9849
- method: 'POST',
9850
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/',
9851
- path: {
9852
- 'org': org
9853
- },
9854
- body: requestBody,
9855
- mediaType: 'application/json'
9856
- });
9857
- }
9858
- /**
9859
- * Setup slack username and domain linkage with slack bots
9860
- * this will be used to authenticate the user when interracting with slack bots.
9861
- * @returns SlackUserConfig
9862
- * @throws ApiError
9863
- */
9864
- static aiBotV1BotsSlackUserConfigRetrieve({
9865
- id,
9866
- org
9867
- }) {
9868
- return request(OpenAPI, {
9869
- method: 'GET',
9870
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
9871
- path: {
9872
- 'id': id,
9873
- 'org': org
9874
- }
9875
- });
9876
- }
9877
- /**
9878
- * Setup slack username and domain linkage with slack bots
9879
- * this will be used to authenticate the user when interracting with slack bots.
9880
- * @returns SlackUserConfig
9881
- * @throws ApiError
9882
- */
9883
- static aiBotV1BotsSlackUserConfigUpdate({
9884
- id,
9885
- org,
9886
- requestBody
9887
- }) {
9888
- return request(OpenAPI, {
9889
- method: 'PUT',
9890
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
9891
- path: {
9892
- 'id': id,
9893
- 'org': org
9894
- },
9895
- body: requestBody,
9896
- mediaType: 'application/json'
9897
- });
9898
- }
9899
- /**
9900
- * Setup slack username and domain linkage with slack bots
9901
- * this will be used to authenticate the user when interracting with slack bots.
9902
- * @returns SlackUserConfig
9903
- * @throws ApiError
9904
- */
9905
- static aiBotV1BotsSlackUserConfigPartialUpdate({
9906
- id,
9907
- org,
9908
- requestBody
9909
- }) {
9910
- return request(OpenAPI, {
9911
- method: 'PATCH',
9912
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
9913
- path: {
9914
- 'id': id,
9915
- 'org': org
9916
- },
9917
- body: requestBody,
9918
- mediaType: 'application/json'
9919
- });
9920
- }
9921
- /**
9922
- * Setup slack username and domain linkage with slack bots
9923
- * this will be used to authenticate the user when interracting with slack bots.
9924
- * @returns void
9925
- * @throws ApiError
9926
- */
9927
- static aiBotV1BotsSlackUserConfigDestroy({
9928
- id,
9929
- org
9930
- }) {
9931
- return request(OpenAPI, {
9932
- method: 'DELETE',
9933
- url: '/api/ai-bot/v1/bots/{org}/slack-user-config/{id}/',
9934
- path: {
9935
- 'id': id,
9936
- 'org': org
9937
- }
9938
- });
9939
- }
9940
- /**
9941
- * Setup phone number linkage with whatsapp bots
9942
- * This phone number will be used to authenticate and allow access to whatsapp bots.
9943
- * @returns WhatsappUserConfig
9944
- * @throws ApiError
9945
- */
9946
- static aiBotV1BotsWhatsappUserConfigList({
9947
- org
9948
- }) {
9949
- return request(OpenAPI, {
9950
- method: 'GET',
9951
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
9952
- path: {
9953
- 'org': org
9954
- }
9955
- });
9956
- }
9957
- /**
9958
- * Setup phone number linkage with whatsapp bots
9959
- * This phone number will be used to authenticate and allow access to whatsapp bots.
9960
- * @returns WhatsappUserConfig
9961
- * @throws ApiError
9962
- */
9963
- static aiBotV1BotsWhatsappUserConfigCreate({
9964
- org,
9965
- requestBody
9966
- }) {
9967
- return request(OpenAPI, {
9968
- method: 'POST',
9969
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/',
9970
- path: {
9971
- 'org': org
9972
- },
9973
- body: requestBody,
9974
- mediaType: 'application/json'
9975
- });
9976
- }
9977
- /**
9978
- * Setup phone number linkage with whatsapp bots
9979
- * This phone number will be used to authenticate and allow access to whatsapp bots.
9980
- * @returns WhatsappUserConfig
9981
- * @throws ApiError
9982
- */
9983
- static aiBotV1BotsWhatsappUserConfigRetrieve({
9984
- id,
9985
- org
9986
- }) {
9987
- return request(OpenAPI, {
9988
- method: 'GET',
9989
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
9990
- path: {
9991
- 'id': id,
9992
- 'org': org
9993
- }
9994
- });
9995
- }
9996
- /**
9997
- * Setup phone number linkage with whatsapp bots
9998
- * This phone number will be used to authenticate and allow access to whatsapp bots.
9999
- * @returns WhatsappUserConfig
10000
- * @throws ApiError
10001
- */
10002
- static aiBotV1BotsWhatsappUserConfigUpdate({
10003
- id,
10004
- org,
10005
- requestBody
10006
- }) {
10007
- return request(OpenAPI, {
10008
- method: 'PUT',
10009
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10010
- path: {
10011
- 'id': id,
10012
- 'org': org
10013
- },
10014
- body: requestBody,
10015
- mediaType: 'application/json'
10016
- });
10017
- }
10018
- /**
10019
- * Setup phone number linkage with whatsapp bots
10020
- * This phone number will be used to authenticate and allow access to whatsapp bots.
10021
- * @returns WhatsappUserConfig
10022
- * @throws ApiError
10023
- */
10024
- static aiBotV1BotsWhatsappUserConfigPartialUpdate({
10025
- id,
10026
- org,
10027
- requestBody
10028
- }) {
10029
- return request(OpenAPI, {
10030
- method: 'PATCH',
10031
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10032
- path: {
10033
- 'id': id,
10034
- 'org': org
10035
- },
10036
- body: requestBody,
10037
- mediaType: 'application/json'
10038
- });
10039
- }
10040
- /**
10041
- * Setup phone number linkage with whatsapp bots
10042
- * This phone number will be used to authenticate and allow access to whatsapp bots.
10043
- * @returns void
10044
- * @throws ApiError
10045
- */
10046
- static aiBotV1BotsWhatsappUserConfigDestroy({
10047
- id,
10048
- org
10049
- }) {
10050
- return request(OpenAPI, {
10051
- method: 'DELETE',
10052
- url: '/api/ai-bot/v1/bots/{org}/whatsapp-user-config/{id}/',
10053
- path: {
10054
- 'id': id,
10055
- 'org': org
10056
- }
10057
- });
10058
- }
10059
- /**
10060
- * Webhook endpoint to receive and process discord messages.
10061
- * @returns DiscordWebhook
10062
- * @throws ApiError
10063
- */
10064
- static aiBotV1BotsWebhooksDiscordCreate({
10065
- name,
10066
- org,
10067
- requestBody
10068
- }) {
10069
- return request(OpenAPI, {
10070
- method: 'POST',
10071
- url: '/api/ai-bot/v1/bots/webhooks/{org}/discord/{name}/',
10072
- path: {
10073
- 'name': name,
10074
- 'org': org
10075
- },
10076
- body: requestBody,
10077
- mediaType: 'application/json'
10078
- });
10079
- }
10080
- /**
10081
- * @returns SlackWebhook
10082
- * @throws ApiError
10083
- */
10084
- static aiBotV1BotsWebhooksSlackCreate({
10085
- name,
10086
- org,
10087
- requestBody
10088
- }) {
10089
- return request(OpenAPI, {
10090
- method: 'POST',
10091
- url: '/api/ai-bot/v1/bots/webhooks/{org}/slack/{name}/',
10092
- path: {
10093
- 'name': name,
10094
- 'org': org
10095
- },
10096
- body: requestBody,
10097
- mediaType: 'application/json'
10098
- });
10099
- }
10100
- /**
10101
- * @returns TeamsWebhook
10102
- * @throws ApiError
10103
- */
10104
- static aiBotV1BotsWebhooksTeamsCreate({
10105
- name,
10106
- org,
10107
- requestBody
10108
- }) {
10109
- return request(OpenAPI, {
10110
- method: 'POST',
10111
- url: '/api/ai-bot/v1/bots/webhooks/{org}/teams/{name}/',
10112
- path: {
10113
- 'name': name,
10114
- 'org': org
10115
- },
10116
- body: requestBody,
10117
- mediaType: 'application/json'
10118
- });
10119
- }
10120
- /**
10121
- * Webhook endpoint to receive and process discord messages.
10122
- * @returns WebexWebhook
10123
- * @throws ApiError
10124
- */
10125
- static aiBotV1BotsWebhooksWebexCreate({
10126
- name,
10127
- org,
10128
- requestBody
10129
- }) {
10130
- return request(OpenAPI, {
10131
- method: 'POST',
10132
- url: '/api/ai-bot/v1/bots/webhooks/{org}/webex/{name}/',
10133
- path: {
10134
- 'name': name,
10135
- 'org': org
10136
- },
10137
- body: requestBody,
10138
- mediaType: 'application/json'
10139
- });
10140
- }
10141
- /**
10142
- * Respond to whatsapp's webhook challenge.
10143
- * Parameters Required include the tenant key (org) and the name of the bot: (name)
10144
- * @returns WhatAppWebHook
10145
- * @throws ApiError
10146
- */
10147
- static aiBotV1BotsWebhooksWhatsappRetrieve({
10148
- name,
10149
- org
10150
- }) {
10151
- return request(OpenAPI, {
10152
- method: 'GET',
10153
- url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
10154
- path: {
10155
- 'name': name,
10156
- 'org': org
10157
- }
10158
- });
10159
- }
10160
- /**
10161
- * Accept and process webhook events from whatsapp.
10162
- * @returns WhatAppWebHook
10163
- * @throws ApiError
10164
- */
10165
- static aiBotV1BotsWebhooksWhatsappCreate({
10166
- name,
10167
- org,
10168
- requestBody
10169
- }) {
10170
- return request(OpenAPI, {
10171
- method: 'POST',
10172
- url: '/api/ai-bot/v1/bots/webhooks/{org}/whatsapp/{name}/',
10173
- path: {
10174
- 'name': name,
10175
- 'org': org
10176
- },
10177
- body: requestBody,
10178
- mediaType: 'application/json'
10179
- });
10180
- }
10181
- }
10182
-
10183
- class AiFinetuningService {
10184
- /**
10185
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10186
- * @returns PaginatedDataSetList
10187
- * @throws ApiError
10188
- */
10189
- static aiFinetuningV1OrgUserDatasetsList({
10190
- org,
10191
- username,
10192
- dateCreated,
10193
- numDataPoints,
10194
- ordering,
10195
- page,
10196
- pageSize,
10197
- retryAttempts,
10198
- search,
10199
- status
10200
- }) {
10201
- return request(OpenAPI, {
10202
- method: 'GET',
10203
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
10204
- path: {
10205
- 'org': org,
10206
- 'username': username
10207
- },
10208
- query: {
10209
- 'date_created': dateCreated,
10210
- 'num_data_points': numDataPoints,
10211
- 'ordering': ordering,
10212
- 'page': page,
10213
- 'page_size': pageSize,
10214
- 'retry_attempts': retryAttempts,
10215
- 'search': search,
10216
- 'status': status
10217
- }
10218
- });
10219
- }
10220
- /**
10221
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10222
- * @returns DataSetCreate
10223
- * @throws ApiError
10224
- */
10225
- static aiFinetuningV1OrgUserDatasetsCreate({
10226
- org,
10227
- username,
10228
- requestBody
10229
- }) {
10230
- return request(OpenAPI, {
10231
- method: 'POST',
10232
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/',
10233
- path: {
10234
- 'org': org,
10235
- 'username': username
10236
- },
10237
- body: requestBody,
10238
- mediaType: 'application/json'
10239
- });
10240
- }
10241
- /**
10242
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10243
- * @returns DataSet
10244
- * @throws ApiError
10245
- */
10246
- static aiFinetuningV1OrgUserDatasetsRetrieve({
10247
- id,
10248
- org,
10249
- username
10250
- }) {
10251
- return request(OpenAPI, {
10252
- method: 'GET',
10253
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10254
- path: {
10255
- 'id': id,
10256
- 'org': org,
10257
- 'username': username
10258
- }
10259
- });
10260
- }
10261
- /**
10262
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10263
- * @returns DataSet
10264
- * @throws ApiError
10265
- */
10266
- static aiFinetuningV1OrgUserDatasetsUpdate({
10267
- id,
10268
- org,
10269
- username,
10270
- requestBody
10271
- }) {
10272
- return request(OpenAPI, {
10273
- method: 'PUT',
10274
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10275
- path: {
10276
- 'id': id,
10277
- 'org': org,
10278
- 'username': username
10279
- },
10280
- body: requestBody,
10281
- mediaType: 'application/json'
10282
- });
10283
- }
10284
- /**
10285
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10286
- * @returns DataSet
10287
- * @throws ApiError
10288
- */
10289
- static aiFinetuningV1OrgUserDatasetsPartialUpdate({
10290
- id,
10291
- org,
10292
- username,
10293
- requestBody
10294
- }) {
10295
- return request(OpenAPI, {
10296
- method: 'PATCH',
10297
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10298
- path: {
10299
- 'id': id,
10300
- 'org': org,
10301
- 'username': username
10302
- },
10303
- body: requestBody,
10304
- mediaType: 'application/json'
10305
- });
10306
- }
10307
- /**
10308
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10309
- * @returns void
10310
- * @throws ApiError
10311
- */
10312
- static aiFinetuningV1OrgUserDatasetsDestroy({
10313
- id,
10314
- org,
10315
- username
10316
- }) {
10317
- return request(OpenAPI, {
10318
- method: 'DELETE',
10319
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/datasets/{id}/',
10320
- path: {
10321
- 'id': id,
10322
- 'org': org,
10323
- 'username': username
10324
- }
10325
- });
10326
- }
10327
- /**
10328
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10329
- * @returns PaginatedTrainingList
10330
- * @throws ApiError
10331
- */
10332
- static aiFinetuningV1OrgUserTrainingsList({
10333
- org,
10334
- username,
10335
- baseModelName,
10336
- dataset,
10337
- dateCreated,
10338
- fineTunedModel,
10339
- lastModified,
10340
- ordering,
10341
- page,
10342
- pageSize,
10343
- preprocessDataset,
10344
- provider,
10345
- search,
10346
- status
10347
- }) {
10348
- return request(OpenAPI, {
10349
- method: 'GET',
10350
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
10351
- path: {
10352
- 'org': org,
10353
- 'username': username
10354
- },
10355
- query: {
10356
- 'base_model_name': baseModelName,
10357
- 'dataset': dataset,
10358
- 'date_created': dateCreated,
10359
- 'fine_tuned_model': fineTunedModel,
10360
- 'last_modified': lastModified,
10361
- 'ordering': ordering,
10362
- 'page': page,
10363
- 'page_size': pageSize,
10364
- 'preprocess_dataset': preprocessDataset,
10365
- 'provider': provider,
10366
- 'search': search,
10367
- 'status': status
10368
- }
10369
- });
10370
- }
10371
- /**
10372
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10373
- * @returns TrainingCreate
10374
- * @throws ApiError
10375
- */
10376
- static aiFinetuningV1OrgUserTrainingsCreate({
10377
- org,
10378
- username,
10379
- requestBody
10380
- }) {
10381
- return request(OpenAPI, {
10382
- method: 'POST',
10383
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/',
10384
- path: {
10385
- 'org': org,
10386
- 'username': username
10387
- },
10388
- body: requestBody,
10389
- mediaType: 'application/json'
10390
- });
10391
- }
10392
- /**
10393
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10394
- * @returns Training
10395
- * @throws ApiError
10396
- */
10397
- static aiFinetuningV1OrgUserTrainingsRetrieve({
10398
- id,
10399
- org,
10400
- username
10401
- }) {
10402
- return request(OpenAPI, {
10403
- method: 'GET',
10404
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10405
- path: {
10406
- 'id': id,
10407
- 'org': org,
10408
- 'username': username
10409
- }
10410
- });
10411
- }
10412
- /**
10413
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10414
- * @returns TrainingCreate
10415
- * @throws ApiError
10416
- */
10417
- static aiFinetuningV1OrgUserTrainingsUpdate({
10418
- id,
10419
- org,
10420
- username,
10421
- requestBody
10422
- }) {
10423
- return request(OpenAPI, {
10424
- method: 'PUT',
10425
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10426
- path: {
10427
- 'id': id,
10428
- 'org': org,
10429
- 'username': username
10430
- },
10431
- body: requestBody,
10432
- mediaType: 'application/json'
10433
- });
10434
- }
10435
- /**
10436
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10437
- * @returns TrainingCreate
10438
- * @throws ApiError
10439
- */
10440
- static aiFinetuningV1OrgUserTrainingsPartialUpdate({
10441
- id,
10442
- org,
10443
- username,
10444
- requestBody
10445
- }) {
10446
- return request(OpenAPI, {
10447
- method: 'PATCH',
10448
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10449
- path: {
10450
- 'id': id,
10451
- 'org': org,
10452
- 'username': username
10453
- },
10454
- body: requestBody,
10455
- mediaType: 'application/json'
10456
- });
10457
- }
10458
- /**
10459
- * Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
10460
- * @returns void
10461
- * @throws ApiError
10462
- */
10463
- static aiFinetuningV1OrgUserTrainingsDestroy({
10464
- id,
10465
- org,
10466
- username
10467
- }) {
10468
- return request(OpenAPI, {
10469
- method: 'DELETE',
10470
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/{id}/',
10471
- path: {
10472
- 'id': id,
10473
- 'org': org,
10474
- 'username': username
10475
- }
10476
- });
10477
- }
10478
- /**
10479
- * Retrieves a paginated list of completed fine-tuned models, excluding those without a fine-tuned model.
10480
- * Filtering and pagination is allowed.
10481
- *
10482
- * NB: This is only a helper endpoint. The same functionality can be achieved with the appropriate filters using the
10483
- * training list endpoint.
10484
- * Returns:
10485
- * Response: A paginated response containing the serialized fine-tuned models.
10486
- * @returns Training
10487
- * @throws ApiError
10488
- */
10489
- static aiFinetuningV1OrgUserTrainingsFinetunedModelsRetrieve({
10490
- org,
10491
- username
10492
- }) {
10493
- return request(OpenAPI, {
10494
- method: 'GET',
10495
- url: '/api/ai-finetuning/v1/org/{org}/user/{username}/trainings/finetuned-models/',
10496
- path: {
10497
- 'org': org,
10498
- 'username': username
10499
- }
10500
- });
10501
- }
10502
- }
10503
-
10504
9042
  class AiIndexService {
10505
9043
  /**
10506
9044
  * Retrieve details of a specific document embedding.
@@ -35640,5 +34178,5 @@ class SkillsService {
35640
34178
  }
35641
34179
  }
35642
34180
 
35643
- export { AcceptanceEnum, AccessEnum, AiAccountService, AiAnalyticsService, AiBotService, AiFinetuningService, AiIndexService, AiMarketingService, AiMediaService, AiMentorService, AiPromptService, AlignMentorBubbleEnum, ApiError, BlankEnum, CallConfigurationModeEnum, CancelError, CancelablePromise, CareerService, CatalogService, CeleryHeartbeatFailStatusEnum, CeleryHeartbeatStatusEnum, CommerceService, ComponentBlockTypeEnum, CoreService, CourseCreationTaskStatusEnum, CrawlerPatternTypeEnum, CredentialsService, CustomDomainsService, DataSetStatusEnum, FeaturesService, GooglePayAccountResponseStatusEnum, GreetingMethodEnum, HumanSupportTicketStatusEnum, InstitutionTypeEnum, ItemTypeEnum, KindEnum, LlmProviderEnum, MediaService, MediaTypeEnum, MentorVisibilityEnum, NotificationSourceTypeEnum, NotificationStatusEnum, NotificationsService, OpenAPI, PeriodicAgentLogStatusEnum, PlatformListStatusEnum, PreviousAgentStatusEnum, ProgramTypeEnum, PromptVisibilityEnum, Provider05cEnum, Provider637Enum, Provider63aEnum, RatingEnum, RecommendationsService, ReportsService, ResourceScrappedDataStatusEnum, ScimService, SearchService, SkillsService, StateEnum, Status6eeEnum, StepStatusEnum, StripeCheckoutSessionRequestModeEnum, SttProviderEnum, TargetSystemEnum, ThemeEnum, TrainingStatusEnum, TransportEnum, TtsProviderEnum, TypeC42Enum };
34181
+ export { AcceptanceEnum, AccessEnum, AiAccountService, AiAnalyticsService, AiIndexService, AiMarketingService, AiMediaService, AiMentorService, AiPromptService, AlignMentorBubbleEnum, ApiError, BlankEnum, CallConfigurationModeEnum, CancelError, CancelablePromise, CareerService, CatalogService, CeleryHeartbeatFailStatusEnum, CeleryHeartbeatStatusEnum, CommerceService, ComponentBlockTypeEnum, CoreService, CourseCreationTaskStatusEnum, CrawlerPatternTypeEnum, CredentialsService, CustomDomainsService, FeaturesService, GooglePayAccountResponseStatusEnum, GreetingMethodEnum, HumanSupportTicketStatusEnum, InstitutionTypeEnum, ItemTypeEnum, KindEnum, LlmProviderEnum, MediaService, MediaTypeEnum, MentorVisibilityEnum, NotificationSourceTypeEnum, NotificationStatusEnum, NotificationsService, OpenAPI, PeriodicAgentLogStatusEnum, PlatformListStatusEnum, PreviousAgentStatusEnum, ProgramTypeEnum, PromptVisibilityEnum, ProviderEnum, RatingEnum, RecommendationsService, ReportsService, ResourceScrappedDataStatusEnum, ScimService, SearchService, SkillsService, StateEnum, Status6eeEnum, StepStatusEnum, StripeCheckoutSessionRequestModeEnum, SttProviderEnum, TargetSystemEnum, ThemeEnum, TrainingStatusEnum, TransportEnum, TtsProviderEnum, TypeC42Enum };
35644
34182
  //# sourceMappingURL=index.esm.js.map