@breign/client 1.0.109 → 1.0.111

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 (79) hide show
  1. package/dist/apis/AppApi.d.ts +92 -18
  2. package/dist/apis/AppApi.js +196 -32
  3. package/dist/apis/KnowledgeApi.d.ts +120 -8
  4. package/dist/apis/KnowledgeApi.js +268 -30
  5. package/dist/apis/PromptsApi.d.ts +3 -3
  6. package/dist/apis/PromptsApi.js +3 -2
  7. package/dist/apis/SkillsApi.d.ts +46 -1
  8. package/dist/apis/SkillsApi.js +109 -0
  9. package/dist/apis/ToolsApi.d.ts +42 -1
  10. package/dist/apis/ToolsApi.js +87 -0
  11. package/dist/models/AddCustomFiller201ResponseFillerUio.d.ts +50 -0
  12. package/dist/models/AddCustomFiller201ResponseFillerUio.js +62 -0
  13. package/dist/models/AddCustomFiller201ResponseUio.d.ts +39 -0
  14. package/dist/models/AddCustomFiller201ResponseUio.js +55 -0
  15. package/dist/models/AddCustomFillerRequestUio.d.ts +32 -0
  16. package/dist/models/AddCustomFillerRequestUio.js +50 -0
  17. package/dist/models/AgentPatchUio.d.ts +1 -1
  18. package/dist/models/AgentUio.d.ts +1 -1
  19. package/dist/models/FileCreationRequestUio.d.ts +6 -0
  20. package/dist/models/FileCreationRequestUio.js +2 -0
  21. package/dist/models/FileCreationResponseUio.d.ts +38 -0
  22. package/dist/models/FileCreationResponseUio.js +18 -0
  23. package/dist/models/FileUio.d.ts +38 -0
  24. package/dist/models/FileUio.js +18 -0
  25. package/dist/models/FileWithDownloadUrlUio.d.ts +38 -0
  26. package/dist/models/FileWithDownloadUrlUio.js +18 -0
  27. package/dist/models/KnowledgeSitePageUio.d.ts +129 -0
  28. package/dist/models/KnowledgeSitePageUio.js +101 -0
  29. package/dist/models/LibrarySkillEntryUio.d.ts +87 -0
  30. package/dist/models/LibrarySkillEntryUio.js +83 -0
  31. package/dist/models/LibrarySkillInstallRequestUio.d.ts +38 -0
  32. package/dist/models/LibrarySkillInstallRequestUio.js +52 -0
  33. package/dist/models/LibrarySkillSyncRequestUio.d.ts +32 -0
  34. package/dist/models/LibrarySkillSyncRequestUio.js +48 -0
  35. package/dist/models/LibrarySkillVersionFilesInnerUio.d.ts +38 -0
  36. package/dist/models/LibrarySkillVersionFilesInnerUio.js +54 -0
  37. package/dist/models/LibrarySkillVersionUio.d.ts +105 -0
  38. package/dist/models/LibrarySkillVersionUio.js +89 -0
  39. package/dist/models/LibrarySkillsPageUio.d.ts +63 -0
  40. package/dist/models/LibrarySkillsPageUio.js +71 -0
  41. package/dist/models/MessageStatusErrorUio.d.ts +38 -0
  42. package/dist/models/MessageStatusErrorUio.js +50 -0
  43. package/dist/models/MessageStatusToolCallUio.d.ts +38 -0
  44. package/dist/models/MessageStatusToolCallUio.js +54 -0
  45. package/dist/models/MessageStatusUio.d.ts +79 -0
  46. package/dist/models/MessageStatusUio.js +73 -0
  47. package/dist/models/PatchKnowledgeBaseRequestUio.d.ts +38 -0
  48. package/dist/models/PatchKnowledgeBaseRequestUio.js +54 -0
  49. package/dist/models/PatchKnowledgeFileRequestUio.d.ts +32 -0
  50. package/dist/models/PatchKnowledgeFileRequestUio.js +50 -0
  51. package/dist/models/SearchKnowledgeBase200ResponseInnerUio.d.ts +52 -0
  52. package/dist/models/SearchKnowledgeBase200ResponseInnerUio.js +60 -0
  53. package/dist/models/SearchKnowledgeBaseRequestUio.d.ts +38 -0
  54. package/dist/models/SearchKnowledgeBaseRequestUio.js +52 -0
  55. package/dist/models/SkillAssignRequestUio.js +2 -2
  56. package/dist/models/SkillUio.d.ts +12 -0
  57. package/dist/models/SkillUio.js +4 -0
  58. package/dist/models/SkillUpdateRequestUio.d.ts +12 -0
  59. package/dist/models/SkillUpdateRequestUio.js +4 -0
  60. package/dist/models/StartKnowledgeBaseScrappingRequestUio.d.ts +88 -0
  61. package/dist/models/StartKnowledgeBaseScrappingRequestUio.js +74 -0
  62. package/dist/models/UpdateSelectedFillers200ResponseUio.d.ts +39 -0
  63. package/dist/models/UpdateSelectedFillers200ResponseUio.js +55 -0
  64. package/dist/models/UpdateSelectedFillersRequestDataInnerUio.d.ts +38 -0
  65. package/dist/models/UpdateSelectedFillersRequestDataInnerUio.js +54 -0
  66. package/dist/models/UpdateSelectedFillersRequestUio.d.ts +33 -0
  67. package/dist/models/UpdateSelectedFillersRequestUio.js +51 -0
  68. package/dist/models/UpdateToolStaticCredentialsRequestUio.d.ts +38 -0
  69. package/dist/models/UpdateToolStaticCredentialsRequestUio.js +50 -0
  70. package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.d.ts +41 -0
  71. package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.js +55 -0
  72. package/dist/models/UploadImageToKnowledgeBaseLibraryRequestUio.d.ts +50 -0
  73. package/dist/models/UploadImageToKnowledgeBaseLibraryRequestUio.js +62 -0
  74. package/dist/models/index.d.ts +24 -1
  75. package/dist/models/index.js +24 -1
  76. package/dist/openapi.json +1711 -267
  77. package/package.json +1 -1
  78. package/dist/models/AudioFillerExistsResponseUio.d.ts +0 -32
  79. package/dist/models/AudioFillerExistsResponseUio.js +0 -50
package/dist/openapi.json CHANGED
@@ -3252,6 +3252,52 @@
3252
3252
  "tags" : [ "app" ]
3253
3253
  }
3254
3254
  },
3255
+ "/apps/{appId}/instances/{instanceId}" : {
3256
+ "delete" : {
3257
+ "description" : "Remove an instance from an app (deactivates it if ephemeral)",
3258
+ "operationId" : "deleteAppInstance",
3259
+ "parameters" : [ {
3260
+ "description" : "ID of the app",
3261
+ "in" : "path",
3262
+ "name" : "appId",
3263
+ "required" : true,
3264
+ "schema" : {
3265
+ "type" : "string"
3266
+ }
3267
+ }, {
3268
+ "description" : "Instance identifier",
3269
+ "in" : "path",
3270
+ "name" : "instanceId",
3271
+ "required" : true,
3272
+ "schema" : {
3273
+ "type" : "string"
3274
+ }
3275
+ } ],
3276
+ "responses" : {
3277
+ "200" : {
3278
+ "content" : {
3279
+ "application/json" : {
3280
+ "schema" : {
3281
+ "$ref" : "#/components/schemas/BodyWithMessage"
3282
+ }
3283
+ }
3284
+ },
3285
+ "description" : "Instance removed from app"
3286
+ },
3287
+ "401" : {
3288
+ "description" : "Unauthorized"
3289
+ },
3290
+ "403" : {
3291
+ "description" : "Forbidden - User doesn't have access to this app"
3292
+ },
3293
+ "404" : {
3294
+ "description" : "App not found"
3295
+ }
3296
+ },
3297
+ "summary" : "Delete app instance",
3298
+ "tags" : [ "app" ]
3299
+ }
3300
+ },
3255
3301
  "/instances/{instanceId}/context" : {
3256
3302
  "get" : {
3257
3303
  "description" : "Returns the custom context variables for an app instance.",
@@ -7379,95 +7425,50 @@
7379
7425
  "tags" : [ "knowledge" ]
7380
7426
  }
7381
7427
  },
7382
- "/organizations/{organizationId}/knowledge/files" : {
7383
- "post" : {
7384
- "description" : "Add a file to the knowledge base",
7385
- "operationId" : "addFileToKnowledgeBase",
7428
+ "/knowledge-bases/{knowledgebaseId}" : {
7429
+ "delete" : {
7430
+ "description" : "Delete a knowledge base, its vector store collection and its stored files",
7431
+ "operationId" : "deleteKnowledgeBase",
7386
7432
  "parameters" : [ {
7387
- "description" : "ID of the organization",
7433
+ "description" : "ID of the knowledge base to retrieve",
7388
7434
  "in" : "path",
7389
- "name" : "organizationId",
7435
+ "name" : "knowledgebaseId",
7390
7436
  "required" : true,
7391
7437
  "schema" : {
7438
+ "format" : "uuid",
7392
7439
  "type" : "string"
7393
7440
  }
7394
7441
  } ],
7395
- "requestBody" : {
7396
- "content" : {
7397
- "application/json" : {
7398
- "schema" : {
7399
- "$ref" : "#/components/schemas/FileCreationRequest"
7400
- }
7401
- }
7402
- },
7403
- "required" : true
7404
- },
7405
7442
  "responses" : {
7406
- "201" : {
7443
+ "200" : {
7407
7444
  "content" : {
7408
7445
  "application/json" : {
7409
7446
  "schema" : {
7410
- "$ref" : "#/components/schemas/FileCreationResponse"
7447
+ "$ref" : "#/components/schemas/BodyWithMessage"
7411
7448
  }
7412
7449
  }
7413
7450
  },
7414
- "description" : "File added successfully"
7415
- },
7416
- "400" : {
7417
- "description" : "Invalid file description"
7418
- },
7419
- "404" : {
7420
- "description" : "Organization not found"
7421
- }
7422
- },
7423
- "summary" : "Add a file to the knowledge base",
7424
- "tags" : [ "knowledge" ]
7425
- }
7426
- },
7427
- "/knowledge-bases/{knowledgebaseId}/chunks/{chunkIdKnowledge}" : {
7428
- "delete" : {
7429
- "description" : "Deletes a chunk from a knowledge file",
7430
- "operationId" : "deleteChunkFromKnowledgeFile",
7431
- "parameters" : [ {
7432
- "description" : "ID of the knowledge base to retrieve",
7433
- "in" : "path",
7434
- "name" : "knowledgebaseId",
7435
- "required" : true,
7436
- "schema" : {
7437
- "format" : "uuid",
7438
- "type" : "string"
7439
- }
7440
- }, {
7441
- "description" : "ID of the chunk knowledge file",
7442
- "in" : "path",
7443
- "name" : "chunkIdKnowledge",
7444
- "required" : true,
7445
- "schema" : {
7446
- "type" : "string"
7447
- }
7448
- } ],
7449
- "responses" : {
7450
- "204" : {
7451
- "description" : "Chunk deleted successfully"
7451
+ "description" : "Knowledge base deleted successfully"
7452
7452
  },
7453
7453
  "401" : {
7454
7454
  "description" : "Unauthorized"
7455
7455
  },
7456
+ "403" : {
7457
+ "description" : "Forbidden - User is not admin of the organization"
7458
+ },
7456
7459
  "404" : {
7457
- "description" : "chunk not found"
7460
+ "description" : "Knowledge base not found"
7458
7461
  },
7459
7462
  "500" : {
7460
7463
  "description" : "Server error"
7461
7464
  }
7462
7465
  },
7463
- "summary" : "Delete a chunk from a knowledge file",
7466
+ "summary" : "Delete a knowledge base",
7464
7467
  "tags" : [ "knowledge" ]
7465
- }
7466
- },
7467
- "/knowledge-bases/{knowledgebaseId}/images" : {
7468
- "delete" : {
7469
- "description" : "Delete a specific knowledge image from a library image in knowledge base",
7470
- "operationId" : "deleteImageFromKnowledgeBaseLibrary",
7468
+ },
7469
+ "get" : {
7470
+ "description" : "Get a knowledge base by its ID",
7471
+ "operationId" : "getKnowledgeBase",
7471
7472
  "parameters" : [ {
7472
7473
  "description" : "ID of the knowledge base to retrieve",
7473
7474
  "in" : "path",
@@ -7477,39 +7478,34 @@
7477
7478
  "format" : "uuid",
7478
7479
  "type" : "string"
7479
7480
  }
7480
- }, {
7481
- "description" : "ID of the image to delete",
7482
- "in" : "path",
7483
- "name" : "imageId",
7484
- "required" : true,
7485
- "schema" : {
7486
- "format" : "uuid",
7487
- "type" : "string"
7488
- }
7489
7481
  } ],
7490
7482
  "responses" : {
7491
- "204" : {
7492
- "description" : "Image deleted successfully"
7483
+ "200" : {
7484
+ "content" : {
7485
+ "application/json" : {
7486
+ "schema" : {
7487
+ "$ref" : "#/components/schemas/KnowledgeBase"
7488
+ }
7489
+ }
7490
+ },
7491
+ "description" : "Knowledge base retrieved successfully"
7493
7492
  },
7494
7493
  "401" : {
7495
7494
  "description" : "Unauthorized"
7496
7495
  },
7497
7496
  "403" : {
7498
- "description" : "Forbidden - User doesn't have access to this knowledge base"
7497
+ "description" : "Forbidden - User is not part of the organization"
7499
7498
  },
7500
7499
  "404" : {
7501
- "description" : "Knowledge base or image not found"
7502
- },
7503
- "500" : {
7504
- "description" : "Server error"
7500
+ "description" : "Knowledge base not found"
7505
7501
  }
7506
7502
  },
7507
- "summary" : "Delete a specific knowledge image from a library image in knowledge base",
7503
+ "summary" : "Get a knowledge base",
7508
7504
  "tags" : [ "knowledge" ]
7509
7505
  },
7510
- "get" : {
7511
- "description" : "Get all images from a library image in knowledge base",
7512
- "operationId" : "getImagesFromKnowledgeBaseLibrary",
7506
+ "patch" : {
7507
+ "description" : "Update the name and authorized agents of a knowledge base",
7508
+ "operationId" : "patchKnowledgeBase",
7513
7509
  "parameters" : [ {
7514
7510
  "description" : "ID of the knowledge base to retrieve",
7515
7511
  "in" : "path",
@@ -7520,36 +7516,45 @@
7520
7516
  "type" : "string"
7521
7517
  }
7522
7518
  } ],
7519
+ "requestBody" : {
7520
+ "content" : {
7521
+ "application/json" : {
7522
+ "schema" : {
7523
+ "$ref" : "#/components/schemas/patchKnowledgeBase_request"
7524
+ }
7525
+ }
7526
+ },
7527
+ "required" : true
7528
+ },
7523
7529
  "responses" : {
7524
7530
  "200" : {
7525
7531
  "content" : {
7526
7532
  "application/json" : {
7527
7533
  "schema" : {
7528
- "$ref" : "#/components/schemas/ImageKnowledge"
7534
+ "$ref" : "#/components/schemas/BodyWithMessage"
7529
7535
  }
7530
7536
  }
7531
7537
  },
7532
- "description" : "Images retrieved successfully"
7538
+ "description" : "Knowledge base updated successfully"
7533
7539
  },
7534
7540
  "401" : {
7535
7541
  "description" : "Unauthorized"
7536
7542
  },
7537
7543
  "403" : {
7538
- "description" : "Forbidden - User cannot access this knowledge base"
7544
+ "description" : "Forbidden - User is not admin of the organization"
7539
7545
  },
7540
7546
  "404" : {
7541
- "description" : "Images not found"
7542
- },
7543
- "500" : {
7544
- "description" : "Server error"
7547
+ "description" : "Knowledge base not found"
7545
7548
  }
7546
7549
  },
7547
- "summary" : "Get all knowledge images from a knowledge base",
7550
+ "summary" : "Update a knowledge base",
7548
7551
  "tags" : [ "knowledge" ]
7549
- },
7552
+ }
7553
+ },
7554
+ "/knowledge-bases/{knowledgebaseId}/files" : {
7550
7555
  "post" : {
7551
- "description" : "Upload a new image to a library image in knowledge base and return the upload URL",
7552
- "operationId" : "uploadImageToKnowledgeBaseLibrary",
7556
+ "description" : "Add a file to the knowledge base",
7557
+ "operationId" : "addFileToKnowledgeBase",
7553
7558
  "parameters" : [ {
7554
7559
  "description" : "ID of the knowledge base to retrieve",
7555
7560
  "in" : "path",
@@ -7562,9 +7567,9 @@
7562
7567
  } ],
7563
7568
  "requestBody" : {
7564
7569
  "content" : {
7565
- "multipart/form-data" : {
7570
+ "application/json" : {
7566
7571
  "schema" : {
7567
- "$ref" : "#/components/schemas/uploadImageToKnowledgeBaseLibrary_request"
7572
+ "$ref" : "#/components/schemas/FileCreationRequest"
7568
7573
  }
7569
7574
  }
7570
7575
  },
@@ -7575,33 +7580,27 @@
7575
7580
  "content" : {
7576
7581
  "application/json" : {
7577
7582
  "schema" : {
7578
- "$ref" : "#/components/schemas/S3UploadBody"
7583
+ "$ref" : "#/components/schemas/FileCreationResponse"
7579
7584
  }
7580
7585
  }
7581
7586
  },
7582
- "description" : "Image uploaded successfully with upload URL"
7583
- },
7584
- "401" : {
7585
- "description" : "Unauthorized"
7587
+ "description" : "File added successfully"
7586
7588
  },
7587
- "403" : {
7588
- "description" : "Forbidden - User doesn't have access to this knowledge base"
7589
+ "400" : {
7590
+ "description" : "Invalid file description"
7589
7591
  },
7590
7592
  "404" : {
7591
- "description" : "Knowledge base or image not found"
7592
- },
7593
- "500" : {
7594
- "description" : "Server error"
7593
+ "description" : "Knowledge base not found"
7595
7594
  }
7596
7595
  },
7597
- "summary" : "Upload a new image to a library image in knowledge base",
7596
+ "summary" : "Add a file to the knowledge base",
7598
7597
  "tags" : [ "knowledge" ]
7599
7598
  }
7600
7599
  },
7601
- "/knowledge-bases/{knowledgebaseId}/images/{imageId}/status" : {
7600
+ "/knowledge-bases/{knowledgebaseId}/search" : {
7602
7601
  "post" : {
7603
- "description" : "Update the status of a specific knowledge image in a library image in knowledge base",
7604
- "operationId" : "updateImageStatusInKnowledgeBaseLibrary",
7602
+ "description" : "Run a vector search on a knowledge base and return matching chunks with their source files",
7603
+ "operationId" : "searchKnowledgeBase",
7605
7604
  "parameters" : [ {
7606
7605
  "description" : "ID of the knowledge base to retrieve",
7607
7606
  "in" : "path",
@@ -7611,21 +7610,12 @@
7611
7610
  "format" : "uuid",
7612
7611
  "type" : "string"
7613
7612
  }
7614
- }, {
7615
- "description" : "ID of the image to delete",
7616
- "in" : "path",
7617
- "name" : "imageId",
7618
- "required" : true,
7619
- "schema" : {
7620
- "format" : "uuid",
7621
- "type" : "string"
7622
- }
7623
7613
  } ],
7624
7614
  "requestBody" : {
7625
7615
  "content" : {
7626
7616
  "application/json" : {
7627
7617
  "schema" : {
7628
- "$ref" : "#/components/schemas/FileStatusUpdateRequest"
7618
+ "$ref" : "#/components/schemas/searchKnowledgeBase_request"
7629
7619
  }
7630
7620
  }
7631
7621
  },
@@ -7636,33 +7626,39 @@
7636
7626
  "content" : {
7637
7627
  "application/json" : {
7638
7628
  "schema" : {
7639
- "$ref" : "#/components/schemas/FileStatus"
7629
+ "items" : {
7630
+ "$ref" : "#/components/schemas/searchKnowledgeBase_200_response_inner"
7631
+ },
7632
+ "type" : "array"
7640
7633
  }
7641
7634
  }
7642
7635
  },
7643
- "description" : "Image status updated successfully"
7636
+ "description" : "Search results retrieved successfully"
7637
+ },
7638
+ "400" : {
7639
+ "description" : "Invalid query or knowledge base has no vector store module configured"
7644
7640
  },
7645
7641
  "401" : {
7646
7642
  "description" : "Unauthorized"
7647
7643
  },
7648
7644
  "403" : {
7649
- "description" : "Forbidden - User doesn't have access to this knowledge base"
7645
+ "description" : "Forbidden - User is not part of the organization"
7650
7646
  },
7651
7647
  "404" : {
7652
- "description" : "Knowledge base or image not found or status not found"
7648
+ "description" : "Knowledge base not found"
7653
7649
  },
7654
7650
  "500" : {
7655
7651
  "description" : "Server error"
7656
7652
  }
7657
7653
  },
7658
- "summary" : "Update the status of a specific knowledge image in a library image in knowledge base",
7654
+ "summary" : "Search a knowledge base",
7659
7655
  "tags" : [ "knowledge" ]
7660
7656
  }
7661
7657
  },
7662
- "/knowledge-bases/{knowledgebaseId}/inactive-file-ids" : {
7663
- "get" : {
7664
- "description" : "Returns an array of file IDs that are marked as inactive in the given knowledge base.",
7665
- "operationId" : "getInactiveKnowledgeFileIds",
7658
+ "/knowledge-bases/{knowledgebaseId}/scrapping" : {
7659
+ "post" : {
7660
+ "description" : "Trigger the scrapping service to crawl the given URLs and index the result into the knowledge base",
7661
+ "operationId" : "startKnowledgeBaseScrapping",
7666
7662
  "parameters" : [ {
7667
7663
  "description" : "ID of the knowledge base to retrieve",
7668
7664
  "in" : "path",
@@ -7673,38 +7669,53 @@
7673
7669
  "type" : "string"
7674
7670
  }
7675
7671
  } ],
7672
+ "requestBody" : {
7673
+ "content" : {
7674
+ "application/json" : {
7675
+ "schema" : {
7676
+ "$ref" : "#/components/schemas/startKnowledgeBaseScrapping_request"
7677
+ }
7678
+ }
7679
+ },
7680
+ "required" : true
7681
+ },
7676
7682
  "responses" : {
7677
7683
  "200" : {
7678
7684
  "content" : {
7679
7685
  "application/json" : {
7680
7686
  "schema" : {
7681
- "items" : {
7682
- "type" : "string"
7683
- },
7684
- "type" : "array"
7687
+ "additionalProperties" : true,
7688
+ "description" : "Contains the job info returned by the scrapping service under `message`",
7689
+ "type" : "object"
7685
7690
  }
7686
7691
  }
7687
7692
  },
7688
- "description" : "List of inactive file IDs"
7693
+ "description" : "Scrapping job started successfully"
7694
+ },
7695
+ "400" : {
7696
+ "description" : "Invalid scrapping request"
7689
7697
  },
7690
7698
  "401" : {
7691
7699
  "description" : "Unauthorized"
7692
7700
  },
7693
7701
  "403" : {
7694
- "description" : "Forbidden"
7702
+ "description" : "Forbidden - User is not admin of the organization"
7695
7703
  },
7696
7704
  "404" : {
7697
7705
  "description" : "Knowledge base not found"
7706
+ },
7707
+ "500" : {
7708
+ "description" : "Error while scrapping"
7698
7709
  }
7699
7710
  },
7700
- "summary" : "Get inactive knowledge file IDs for a knowledge base",
7711
+ "summary" : "Start a knowledge base scrapping job",
7701
7712
  "tags" : [ "knowledge" ]
7702
7713
  }
7703
7714
  },
7704
- "/knowledge-bases/{knowledgebaseId}/configuration" : {
7705
- "get" : {
7706
- "description" : "Returns the current configuration for a knowledge base",
7707
- "operationId" : "getKnowledgeBaseConfiguration",
7715
+ "/knowledge-bases/{knowledgebaseId}/chunks/{chunkIdKnowledge}" : {
7716
+ "delete" : {
7717
+ "description" : "Deletes a chunk from a knowledge file",
7718
+ "operationId" : "deleteChunkFromKnowledgeFile",
7708
7719
  "parameters" : [ {
7709
7720
  "description" : "ID of the knowledge base to retrieve",
7710
7721
  "in" : "path",
@@ -7714,41 +7725,456 @@
7714
7725
  "format" : "uuid",
7715
7726
  "type" : "string"
7716
7727
  }
7717
- } ],
7718
- "responses" : {
7719
- "200" : {
7720
- "content" : {
7721
- "application/json" : {
7722
- "schema" : {
7723
- "$ref" : "#/components/schemas/KnowledgeBaseConfiguration"
7728
+ }, {
7729
+ "description" : "ID of the chunk knowledge file",
7730
+ "in" : "path",
7731
+ "name" : "chunkIdKnowledge",
7732
+ "required" : true,
7733
+ "schema" : {
7734
+ "type" : "string"
7735
+ }
7736
+ } ],
7737
+ "responses" : {
7738
+ "204" : {
7739
+ "description" : "Chunk deleted successfully"
7740
+ },
7741
+ "401" : {
7742
+ "description" : "Unauthorized"
7743
+ },
7744
+ "404" : {
7745
+ "description" : "chunk not found"
7746
+ },
7747
+ "500" : {
7748
+ "description" : "Server error"
7749
+ }
7750
+ },
7751
+ "summary" : "Delete a chunk from a knowledge file",
7752
+ "tags" : [ "knowledge" ]
7753
+ }
7754
+ },
7755
+ "/knowledge-bases/{knowledgebaseId}/images" : {
7756
+ "delete" : {
7757
+ "description" : "Delete a specific knowledge image from a library image in knowledge base",
7758
+ "operationId" : "deleteImageFromKnowledgeBaseLibrary",
7759
+ "parameters" : [ {
7760
+ "description" : "ID of the knowledge base to retrieve",
7761
+ "in" : "path",
7762
+ "name" : "knowledgebaseId",
7763
+ "required" : true,
7764
+ "schema" : {
7765
+ "format" : "uuid",
7766
+ "type" : "string"
7767
+ }
7768
+ }, {
7769
+ "description" : "ID of the image to delete",
7770
+ "in" : "path",
7771
+ "name" : "imageId",
7772
+ "required" : true,
7773
+ "schema" : {
7774
+ "format" : "uuid",
7775
+ "type" : "string"
7776
+ }
7777
+ } ],
7778
+ "responses" : {
7779
+ "204" : {
7780
+ "description" : "Image deleted successfully"
7781
+ },
7782
+ "401" : {
7783
+ "description" : "Unauthorized"
7784
+ },
7785
+ "403" : {
7786
+ "description" : "Forbidden - User doesn't have access to this knowledge base"
7787
+ },
7788
+ "404" : {
7789
+ "description" : "Knowledge base or image not found"
7790
+ },
7791
+ "500" : {
7792
+ "description" : "Server error"
7793
+ }
7794
+ },
7795
+ "summary" : "Delete a specific knowledge image from a library image in knowledge base",
7796
+ "tags" : [ "knowledge" ]
7797
+ },
7798
+ "get" : {
7799
+ "description" : "Get all images from a library image in knowledge base",
7800
+ "operationId" : "getImagesFromKnowledgeBaseLibrary",
7801
+ "parameters" : [ {
7802
+ "description" : "ID of the knowledge base to retrieve",
7803
+ "in" : "path",
7804
+ "name" : "knowledgebaseId",
7805
+ "required" : true,
7806
+ "schema" : {
7807
+ "format" : "uuid",
7808
+ "type" : "string"
7809
+ }
7810
+ } ],
7811
+ "responses" : {
7812
+ "200" : {
7813
+ "content" : {
7814
+ "application/json" : {
7815
+ "schema" : {
7816
+ "items" : {
7817
+ "$ref" : "#/components/schemas/ImageKnowledge"
7818
+ },
7819
+ "type" : "array"
7820
+ }
7821
+ }
7822
+ },
7823
+ "description" : "Images retrieved successfully"
7824
+ },
7825
+ "401" : {
7826
+ "description" : "Unauthorized"
7827
+ },
7828
+ "403" : {
7829
+ "description" : "Forbidden - User cannot access this knowledge base"
7830
+ },
7831
+ "404" : {
7832
+ "description" : "Images not found"
7833
+ },
7834
+ "500" : {
7835
+ "description" : "Server error"
7836
+ }
7837
+ },
7838
+ "summary" : "Get all knowledge images from a knowledge base",
7839
+ "tags" : [ "knowledge" ]
7840
+ },
7841
+ "post" : {
7842
+ "description" : "Upload a new image to a library image in knowledge base and return the upload URL",
7843
+ "operationId" : "uploadImageToKnowledgeBaseLibrary",
7844
+ "parameters" : [ {
7845
+ "description" : "ID of the knowledge base to retrieve",
7846
+ "in" : "path",
7847
+ "name" : "knowledgebaseId",
7848
+ "required" : true,
7849
+ "schema" : {
7850
+ "format" : "uuid",
7851
+ "type" : "string"
7852
+ }
7853
+ } ],
7854
+ "requestBody" : {
7855
+ "content" : {
7856
+ "application/json" : {
7857
+ "schema" : {
7858
+ "$ref" : "#/components/schemas/uploadImageToKnowledgeBaseLibrary_request"
7859
+ }
7860
+ }
7861
+ },
7862
+ "required" : true
7863
+ },
7864
+ "responses" : {
7865
+ "200" : {
7866
+ "content" : {
7867
+ "application/json" : {
7868
+ "schema" : {
7869
+ "$ref" : "#/components/schemas/uploadImageToKnowledgeBaseLibrary_200_response"
7870
+ }
7871
+ }
7872
+ },
7873
+ "description" : "Image declared successfully with presigned upload URL"
7874
+ },
7875
+ "401" : {
7876
+ "description" : "Unauthorized"
7877
+ },
7878
+ "403" : {
7879
+ "description" : "Forbidden - User doesn't have access to this knowledge base"
7880
+ },
7881
+ "404" : {
7882
+ "description" : "Knowledge base or image not found"
7883
+ },
7884
+ "500" : {
7885
+ "description" : "Server error"
7886
+ }
7887
+ },
7888
+ "summary" : "Upload a new image to a library image in knowledge base",
7889
+ "tags" : [ "knowledge" ]
7890
+ }
7891
+ },
7892
+ "/knowledge-bases/{knowledgebaseId}/images/{imageId}/status" : {
7893
+ "post" : {
7894
+ "description" : "Update the status of a specific knowledge image in a library image in knowledge base",
7895
+ "operationId" : "updateImageStatusInKnowledgeBaseLibrary",
7896
+ "parameters" : [ {
7897
+ "description" : "ID of the knowledge base to retrieve",
7898
+ "in" : "path",
7899
+ "name" : "knowledgebaseId",
7900
+ "required" : true,
7901
+ "schema" : {
7902
+ "format" : "uuid",
7903
+ "type" : "string"
7904
+ }
7905
+ }, {
7906
+ "description" : "ID of the image to delete",
7907
+ "in" : "path",
7908
+ "name" : "imageId",
7909
+ "required" : true,
7910
+ "schema" : {
7911
+ "format" : "uuid",
7912
+ "type" : "string"
7913
+ }
7914
+ } ],
7915
+ "requestBody" : {
7916
+ "content" : {
7917
+ "application/json" : {
7918
+ "schema" : {
7919
+ "$ref" : "#/components/schemas/FileStatusUpdateRequest"
7920
+ }
7921
+ }
7922
+ },
7923
+ "required" : true
7924
+ },
7925
+ "responses" : {
7926
+ "200" : {
7927
+ "content" : {
7928
+ "application/json" : {
7929
+ "schema" : {
7930
+ "$ref" : "#/components/schemas/FileStatus"
7931
+ }
7932
+ }
7933
+ },
7934
+ "description" : "Image status updated successfully"
7935
+ },
7936
+ "401" : {
7937
+ "description" : "Unauthorized"
7938
+ },
7939
+ "403" : {
7940
+ "description" : "Forbidden - User doesn't have access to this knowledge base"
7941
+ },
7942
+ "404" : {
7943
+ "description" : "Knowledge base or image not found or status not found"
7944
+ },
7945
+ "500" : {
7946
+ "description" : "Server error"
7947
+ }
7948
+ },
7949
+ "summary" : "Update the status of a specific knowledge image in a library image in knowledge base",
7950
+ "tags" : [ "knowledge" ]
7951
+ }
7952
+ },
7953
+ "/knowledge-bases/{knowledgebaseId}/inactive-file-ids" : {
7954
+ "get" : {
7955
+ "description" : "Returns an array of file IDs that are marked as inactive in the given knowledge base.",
7956
+ "operationId" : "getInactiveKnowledgeFileIds",
7957
+ "parameters" : [ {
7958
+ "description" : "ID of the knowledge base to retrieve",
7959
+ "in" : "path",
7960
+ "name" : "knowledgebaseId",
7961
+ "required" : true,
7962
+ "schema" : {
7963
+ "format" : "uuid",
7964
+ "type" : "string"
7965
+ }
7966
+ } ],
7967
+ "responses" : {
7968
+ "200" : {
7969
+ "content" : {
7970
+ "application/json" : {
7971
+ "schema" : {
7972
+ "items" : {
7973
+ "type" : "string"
7974
+ },
7975
+ "type" : "array"
7976
+ }
7977
+ }
7978
+ },
7979
+ "description" : "List of inactive file IDs"
7980
+ },
7981
+ "401" : {
7982
+ "description" : "Unauthorized"
7983
+ },
7984
+ "403" : {
7985
+ "description" : "Forbidden"
7986
+ },
7987
+ "404" : {
7988
+ "description" : "Knowledge base not found"
7989
+ }
7990
+ },
7991
+ "summary" : "Get inactive knowledge file IDs for a knowledge base",
7992
+ "tags" : [ "knowledge" ]
7993
+ }
7994
+ },
7995
+ "/knowledge-bases/{knowledgebaseId}/configuration" : {
7996
+ "get" : {
7997
+ "description" : "Returns the current configuration for a knowledge base",
7998
+ "operationId" : "getKnowledgeBaseConfiguration",
7999
+ "parameters" : [ {
8000
+ "description" : "ID of the knowledge base to retrieve",
8001
+ "in" : "path",
8002
+ "name" : "knowledgebaseId",
8003
+ "required" : true,
8004
+ "schema" : {
8005
+ "format" : "uuid",
8006
+ "type" : "string"
8007
+ }
8008
+ } ],
8009
+ "responses" : {
8010
+ "200" : {
8011
+ "content" : {
8012
+ "application/json" : {
8013
+ "schema" : {
8014
+ "$ref" : "#/components/schemas/KnowledgeBaseConfiguration"
8015
+ }
8016
+ }
8017
+ },
8018
+ "description" : "Configuration retrieved successfully"
8019
+ },
8020
+ "401" : {
8021
+ "description" : "Unauthorized"
8022
+ },
8023
+ "404" : {
8024
+ "description" : "Knowledge base not found"
8025
+ },
8026
+ "500" : {
8027
+ "description" : "Server error"
8028
+ }
8029
+ },
8030
+ "summary" : "Get knowledge base configuration",
8031
+ "tags" : [ "knowledge" ]
8032
+ },
8033
+ "put" : {
8034
+ "description" : "Updates the module configuration for a knowledge base",
8035
+ "operationId" : "updateKnowledgeBaseConfiguration",
8036
+ "parameters" : [ {
8037
+ "description" : "ID of the knowledge base to retrieve",
8038
+ "in" : "path",
8039
+ "name" : "knowledgebaseId",
8040
+ "required" : true,
8041
+ "schema" : {
8042
+ "format" : "uuid",
8043
+ "type" : "string"
8044
+ }
8045
+ } ],
8046
+ "requestBody" : {
8047
+ "content" : {
8048
+ "application/json" : {
8049
+ "schema" : {
8050
+ "$ref" : "#/components/schemas/KnowledgeBaseConfiguration"
8051
+ }
8052
+ }
8053
+ },
8054
+ "required" : true
8055
+ },
8056
+ "responses" : {
8057
+ "200" : {
8058
+ "content" : {
8059
+ "application/json" : {
8060
+ "schema" : {
8061
+ "additionalProperties" : true,
8062
+ "type" : "object"
8063
+ }
8064
+ }
8065
+ },
8066
+ "description" : "Configuration updated successfully"
8067
+ },
8068
+ "400" : {
8069
+ "description" : "Invalid configuration payload"
8070
+ },
8071
+ "401" : {
8072
+ "description" : "Unauthorized"
8073
+ },
8074
+ "404" : {
8075
+ "description" : "Knowledge base not found"
8076
+ },
8077
+ "500" : {
8078
+ "description" : "Server error"
8079
+ }
8080
+ },
8081
+ "summary" : "Update knowledge base configuration",
8082
+ "tags" : [ "knowledge" ]
8083
+ }
8084
+ },
8085
+ "/knowledge-files" : {
8086
+ "get" : {
8087
+ "description" : "Get all knowledge files belonging to the given knowledge bases",
8088
+ "operationId" : "getKnowledgeFiles",
8089
+ "parameters" : [ {
8090
+ "description" : "IDs of the knowledge bases to get files for",
8091
+ "in" : "query",
8092
+ "name" : "knowledgeBaseIds",
8093
+ "required" : true,
8094
+ "schema" : {
8095
+ "items" : {
8096
+ "type" : "string"
8097
+ },
8098
+ "type" : "array"
8099
+ }
8100
+ } ],
8101
+ "responses" : {
8102
+ "200" : {
8103
+ "content" : {
8104
+ "application/json" : {
8105
+ "schema" : {
8106
+ "items" : {
8107
+ "$ref" : "#/components/schemas/File"
8108
+ },
8109
+ "type" : "array"
8110
+ }
8111
+ }
8112
+ },
8113
+ "description" : "Knowledge files retrieved successfully"
8114
+ },
8115
+ "400" : {
8116
+ "description" : "knowledgeBaseIds query parameter is required"
8117
+ },
8118
+ "401" : {
8119
+ "description" : "Unauthorized"
8120
+ },
8121
+ "403" : {
8122
+ "description" : "Forbidden - User is not part of the organization"
8123
+ },
8124
+ "404" : {
8125
+ "description" : "Knowledge bases not found"
8126
+ }
8127
+ },
8128
+ "summary" : "Get knowledge files for knowledge bases",
8129
+ "tags" : [ "knowledge" ]
8130
+ }
8131
+ },
8132
+ "/knowledge-files/{fileId}" : {
8133
+ "get" : {
8134
+ "description" : "Retrieves metadata for a specific knowledge file by file ID",
8135
+ "operationId" : "getKnowledgeFile",
8136
+ "parameters" : [ {
8137
+ "description" : "The ID of the file",
8138
+ "in" : "path",
8139
+ "name" : "fileId",
8140
+ "required" : true,
8141
+ "schema" : {
8142
+ "type" : "string"
8143
+ }
8144
+ } ],
8145
+ "responses" : {
8146
+ "200" : {
8147
+ "content" : {
8148
+ "application/json" : {
8149
+ "schema" : {
8150
+ "$ref" : "#/components/schemas/FileWithDownloadUrl"
7724
8151
  }
7725
8152
  }
7726
8153
  },
7727
- "description" : "Configuration retrieved successfully"
8154
+ "description" : "File details retrieved successfully"
7728
8155
  },
7729
8156
  "401" : {
7730
8157
  "description" : "Unauthorized"
7731
8158
  },
7732
8159
  "404" : {
7733
- "description" : "Knowledge base not found"
8160
+ "description" : "File not found"
7734
8161
  },
7735
8162
  "500" : {
7736
8163
  "description" : "Server error"
7737
8164
  }
7738
8165
  },
7739
- "summary" : "Get knowledge base configuration",
8166
+ "summary" : "Get a specific knowledge file",
7740
8167
  "tags" : [ "knowledge" ]
7741
8168
  },
7742
- "put" : {
7743
- "description" : "Updates the module configuration for a knowledge base",
7744
- "operationId" : "updateKnowledgeBaseConfiguration",
8169
+ "patch" : {
8170
+ "description" : "Update the active state of a knowledge file",
8171
+ "operationId" : "patchKnowledgeFile",
7745
8172
  "parameters" : [ {
7746
- "description" : "ID of the knowledge base to retrieve",
8173
+ "description" : "The ID of the file",
7747
8174
  "in" : "path",
7748
- "name" : "knowledgebaseId",
8175
+ "name" : "fileId",
7749
8176
  "required" : true,
7750
8177
  "schema" : {
7751
- "format" : "uuid",
7752
8178
  "type" : "string"
7753
8179
  }
7754
8180
  } ],
@@ -7756,7 +8182,7 @@
7756
8182
  "content" : {
7757
8183
  "application/json" : {
7758
8184
  "schema" : {
7759
- "$ref" : "#/components/schemas/KnowledgeBaseConfiguration"
8185
+ "$ref" : "#/components/schemas/patchKnowledgeFile_request"
7760
8186
  }
7761
8187
  }
7762
8188
  },
@@ -7767,34 +8193,33 @@
7767
8193
  "content" : {
7768
8194
  "application/json" : {
7769
8195
  "schema" : {
7770
- "additionalProperties" : true,
7771
- "type" : "object"
8196
+ "$ref" : "#/components/schemas/BodyWithMessage"
7772
8197
  }
7773
8198
  }
7774
8199
  },
7775
- "description" : "Configuration updated successfully"
8200
+ "description" : "Knowledge file updated successfully"
7776
8201
  },
7777
8202
  "400" : {
7778
- "description" : "Invalid configuration payload"
8203
+ "description" : "Invalid file status update"
7779
8204
  },
7780
8205
  "401" : {
7781
8206
  "description" : "Unauthorized"
7782
8207
  },
7783
- "404" : {
7784
- "description" : "Knowledge base not found"
8208
+ "403" : {
8209
+ "description" : "Forbidden - User cannot access this knowledge base"
7785
8210
  },
7786
- "500" : {
7787
- "description" : "Server error"
8211
+ "404" : {
8212
+ "description" : "Knowledge file not found"
7788
8213
  }
7789
8214
  },
7790
- "summary" : "Update knowledge base configuration",
8215
+ "summary" : "Update a knowledge file",
7791
8216
  "tags" : [ "knowledge" ]
7792
8217
  }
7793
8218
  },
7794
- "/knowledge-files/{fileId}" : {
8219
+ "/knowledge-files/{fileId}/kowledge-site-pages" : {
7795
8220
  "get" : {
7796
- "description" : "Retrieves metadata for a specific knowledge file by file ID",
7797
- "operationId" : "getKnowledgeFile",
8221
+ "description" : "Get the scraped site pages attached to a knowledge file of type website",
8222
+ "operationId" : "getKnowledgeSitePagesForFile",
7798
8223
  "parameters" : [ {
7799
8224
  "description" : "The ID of the file",
7800
8225
  "in" : "path",
@@ -7809,23 +8234,26 @@
7809
8234
  "content" : {
7810
8235
  "application/json" : {
7811
8236
  "schema" : {
7812
- "$ref" : "#/components/schemas/FileWithDownloadUrl"
8237
+ "items" : {
8238
+ "$ref" : "#/components/schemas/KnowledgeSitePage"
8239
+ },
8240
+ "type" : "array"
7813
8241
  }
7814
8242
  }
7815
8243
  },
7816
- "description" : "File details retrieved successfully"
8244
+ "description" : "Knowledge site pages retrieved successfully"
7817
8245
  },
7818
8246
  "401" : {
7819
8247
  "description" : "Unauthorized"
7820
8248
  },
7821
- "404" : {
7822
- "description" : "File not found"
8249
+ "403" : {
8250
+ "description" : "Forbidden - User is not part of the organization"
7823
8251
  },
7824
- "500" : {
7825
- "description" : "Server error"
8252
+ "404" : {
8253
+ "description" : "File or knowledge base not found"
7826
8254
  }
7827
8255
  },
7828
- "summary" : "Get a specific knowledge file",
8256
+ "summary" : "Get knowledge site pages for a file",
7829
8257
  "tags" : [ "knowledge" ]
7830
8258
  }
7831
8259
  },
@@ -8097,6 +8525,109 @@
8097
8525
  "tags" : [ "tools" ]
8098
8526
  }
8099
8527
  },
8528
+ "/tool-presets" : {
8529
+ "get" : {
8530
+ "description" : "Get the list of active tool presets",
8531
+ "operationId" : "getToolPresets",
8532
+ "responses" : {
8533
+ "200" : {
8534
+ "content" : {
8535
+ "application/json" : {
8536
+ "schema" : {
8537
+ "items" : {
8538
+ "additionalProperties" : true,
8539
+ "type" : "object"
8540
+ },
8541
+ "type" : "array"
8542
+ }
8543
+ }
8544
+ },
8545
+ "description" : "Tool presets retrieved successfully"
8546
+ },
8547
+ "401" : {
8548
+ "description" : "Unauthorized"
8549
+ }
8550
+ },
8551
+ "summary" : "Get tool presets",
8552
+ "tags" : [ "tools" ]
8553
+ }
8554
+ },
8555
+ "/tools/{toolId}/credentials/static" : {
8556
+ "delete" : {
8557
+ "description" : "Remove the stored static credentials of the current user on a user-scoped tool",
8558
+ "operationId" : "deleteToolStaticCredentials",
8559
+ "parameters" : [ {
8560
+ "description" : "Tool identifier",
8561
+ "in" : "path",
8562
+ "name" : "toolId",
8563
+ "required" : true,
8564
+ "schema" : {
8565
+ "type" : "string"
8566
+ }
8567
+ } ],
8568
+ "responses" : {
8569
+ "204" : {
8570
+ "description" : "Static credentials cleared successfully"
8571
+ },
8572
+ "400" : {
8573
+ "description" : "Tool not user-scoped"
8574
+ },
8575
+ "401" : {
8576
+ "description" : "Unauthorized"
8577
+ },
8578
+ "403" : {
8579
+ "description" : "Forbidden - User is not part of the organization"
8580
+ },
8581
+ "404" : {
8582
+ "description" : "Tool not found"
8583
+ }
8584
+ },
8585
+ "summary" : "Clear user static credentials for a tool",
8586
+ "tags" : [ "tools" ]
8587
+ },
8588
+ "put" : {
8589
+ "description" : "Validate and store encrypted static credentials (bearer token or header value) for the current user on a user-scoped tool",
8590
+ "operationId" : "updateToolStaticCredentials",
8591
+ "parameters" : [ {
8592
+ "description" : "Tool identifier",
8593
+ "in" : "path",
8594
+ "name" : "toolId",
8595
+ "required" : true,
8596
+ "schema" : {
8597
+ "type" : "string"
8598
+ }
8599
+ } ],
8600
+ "requestBody" : {
8601
+ "content" : {
8602
+ "application/json" : {
8603
+ "schema" : {
8604
+ "$ref" : "#/components/schemas/updateToolStaticCredentials_request"
8605
+ }
8606
+ }
8607
+ },
8608
+ "required" : true
8609
+ },
8610
+ "responses" : {
8611
+ "204" : {
8612
+ "description" : "Static credentials stored successfully"
8613
+ },
8614
+ "400" : {
8615
+ "description" : "Invalid body, tool not user-scoped, wrong auth type or invalid credential"
8616
+ },
8617
+ "401" : {
8618
+ "description" : "Unauthorized"
8619
+ },
8620
+ "403" : {
8621
+ "description" : "Forbidden - User is not part of the organization"
8622
+ },
8623
+ "404" : {
8624
+ "description" : "Tool not found"
8625
+ }
8626
+ },
8627
+ "summary" : "Set user static credentials for a tool",
8628
+ "tags" : [ "tools" ]
8629
+ }
8630
+ },
8100
8631
  "/tools/text-to-speech" : {
8101
8632
  "post" : {
8102
8633
  "description" : "Converts text to speech using the specified provider",
@@ -8716,7 +9247,7 @@
8716
9247
  }
8717
9248
  }
8718
9249
  },
8719
- "description" : "List of skills",
9250
+ "description" : "Paginated list of skills",
8720
9251
  "headers" : {
8721
9252
  "X-Total-Count" : {
8722
9253
  "description" : "Total number of skills in the organization",
@@ -8725,16 +9256,19 @@
8725
9256
  }
8726
9257
  },
8727
9258
  "X-Page" : {
9259
+ "description" : "Current page number",
8728
9260
  "schema" : {
8729
9261
  "type" : "integer"
8730
9262
  }
8731
9263
  },
8732
9264
  "X-Limit" : {
9265
+ "description" : "Maximum number of items per page",
8733
9266
  "schema" : {
8734
9267
  "type" : "integer"
8735
9268
  }
8736
9269
  },
8737
9270
  "X-Total-Pages" : {
9271
+ "description" : "Total number of pages",
8738
9272
  "schema" : {
8739
9273
  "type" : "integer"
8740
9274
  }
@@ -9208,7 +9742,7 @@
9208
9742
  "required" : true
9209
9743
  },
9210
9744
  "responses" : {
9211
- "200" : {
9745
+ "204" : {
9212
9746
  "description" : "Skill assigned (or already assigned — idempotent)"
9213
9747
  },
9214
9748
  "400" : {
@@ -9281,8 +9815,160 @@
9281
9815
  "format" : "uuid",
9282
9816
  "type" : "string"
9283
9817
  }
9284
- }, {
9285
- "description" : "Skill identifier",
9818
+ }, {
9819
+ "description" : "Skill identifier",
9820
+ "in" : "path",
9821
+ "name" : "skillId",
9822
+ "required" : true,
9823
+ "schema" : {
9824
+ "format" : "uuid",
9825
+ "type" : "string"
9826
+ }
9827
+ } ],
9828
+ "responses" : {
9829
+ "204" : {
9830
+ "description" : "Skill unassigned successfully"
9831
+ },
9832
+ "401" : {
9833
+ "description" : "Unauthorized"
9834
+ },
9835
+ "403" : {
9836
+ "description" : "Forbidden"
9837
+ },
9838
+ "404" : {
9839
+ "description" : "AGENT_NOT_FOUND or assignment not found"
9840
+ }
9841
+ },
9842
+ "summary" : "Unassign a skill from an agent",
9843
+ "tags" : [ "skills" ]
9844
+ }
9845
+ },
9846
+ "/library-skills" : {
9847
+ "get" : {
9848
+ "description" : "Returns a paginated, searchable, filterable list of library skills with their versions. Requires organizationId for install status context.",
9849
+ "operationId" : "listLibrarySkills",
9850
+ "parameters" : [ {
9851
+ "description" : "Organization ID",
9852
+ "in" : "query",
9853
+ "name" : "organizationId",
9854
+ "required" : true,
9855
+ "schema" : {
9856
+ "type" : "string"
9857
+ }
9858
+ }, {
9859
+ "description" : "Page number",
9860
+ "in" : "query",
9861
+ "name" : "page",
9862
+ "schema" : {
9863
+ "type" : "integer"
9864
+ }
9865
+ }, {
9866
+ "description" : "Maximum number of library skills to return",
9867
+ "in" : "query",
9868
+ "name" : "limit",
9869
+ "schema" : {
9870
+ "default" : 20,
9871
+ "maximum" : 100,
9872
+ "type" : "integer"
9873
+ }
9874
+ }, {
9875
+ "description" : "Search library skills by name or description",
9876
+ "in" : "query",
9877
+ "name" : "search",
9878
+ "schema" : {
9879
+ "type" : "string"
9880
+ }
9881
+ }, {
9882
+ "description" : "Filter library skills by category",
9883
+ "in" : "query",
9884
+ "name" : "category",
9885
+ "schema" : {
9886
+ "type" : "string"
9887
+ }
9888
+ } ],
9889
+ "responses" : {
9890
+ "200" : {
9891
+ "content" : {
9892
+ "application/json" : {
9893
+ "schema" : {
9894
+ "$ref" : "#/components/schemas/LibrarySkillsPage"
9895
+ }
9896
+ }
9897
+ },
9898
+ "description" : "Paginated list of library skills"
9899
+ },
9900
+ "400" : {
9901
+ "description" : "MISSING_ORG_ID"
9902
+ },
9903
+ "401" : {
9904
+ "description" : "Unauthorized"
9905
+ },
9906
+ "403" : {
9907
+ "description" : "Forbidden"
9908
+ }
9909
+ },
9910
+ "summary" : "List all library skills",
9911
+ "tags" : [ "skills" ]
9912
+ }
9913
+ },
9914
+ "/library-skills/{slug}/install" : {
9915
+ "post" : {
9916
+ "description" : "Creates a new skill in the organization from the specified library skill version (defaults to latest)",
9917
+ "operationId" : "installLibrarySkill",
9918
+ "parameters" : [ {
9919
+ "in" : "path",
9920
+ "name" : "slug",
9921
+ "required" : true,
9922
+ "schema" : {
9923
+ "type" : "string"
9924
+ }
9925
+ } ],
9926
+ "requestBody" : {
9927
+ "content" : {
9928
+ "application/json" : {
9929
+ "schema" : {
9930
+ "$ref" : "#/components/schemas/LibrarySkillInstallRequest"
9931
+ }
9932
+ }
9933
+ },
9934
+ "required" : true
9935
+ },
9936
+ "responses" : {
9937
+ "201" : {
9938
+ "content" : {
9939
+ "application/json" : {
9940
+ "schema" : {
9941
+ "$ref" : "#/components/schemas/Skill"
9942
+ }
9943
+ }
9944
+ },
9945
+ "description" : "Skill installed successfully"
9946
+ },
9947
+ "400" : {
9948
+ "description" : "Invalid request body"
9949
+ },
9950
+ "401" : {
9951
+ "description" : "Unauthorized"
9952
+ },
9953
+ "403" : {
9954
+ "description" : "Forbidden"
9955
+ },
9956
+ "404" : {
9957
+ "description" : "LIBRARY_SKILL_NOT_FOUND"
9958
+ },
9959
+ "409" : {
9960
+ "description" : "SKILL_SLUG_ALREADY_EXISTS"
9961
+ }
9962
+ },
9963
+ "summary" : "Install a library skill into an organization",
9964
+ "tags" : [ "skills" ]
9965
+ }
9966
+ },
9967
+ "/skills/{skillId}/sync-library" : {
9968
+ "post" : {
9969
+ "description" : "Updates the skill content from the specified library version (defaults to latest)",
9970
+ "operationId" : "syncSkillToLibrary",
9971
+ "parameters" : [ {
9286
9972
  "in" : "path",
9287
9973
  "name" : "skillId",
9288
9974
  "required" : true,
@@ -9291,9 +9977,29 @@
9291
9977
  "type" : "string"
9292
9978
  }
9293
9979
  } ],
9980
+ "requestBody" : {
9981
+ "content" : {
9982
+ "application/json" : {
9983
+ "schema" : {
9984
+ "$ref" : "#/components/schemas/LibrarySkillSyncRequest"
9985
+ }
9986
+ }
9987
+ },
9988
+ "required" : false
9989
+ },
9294
9990
  "responses" : {
9295
- "204" : {
9296
- "description" : "Skill unassigned successfully"
9991
+ "200" : {
9992
+ "content" : {
9993
+ "application/json" : {
9994
+ "schema" : {
9995
+ "$ref" : "#/components/schemas/Skill"
9996
+ }
9997
+ }
9998
+ },
9999
+ "description" : "Skill synced successfully"
10000
+ },
10001
+ "400" : {
10002
+ "description" : "Invalid request or SKILL_NOT_FROM_LIBRARY"
9297
10003
  },
9298
10004
  "401" : {
9299
10005
  "description" : "Unauthorized"
@@ -9302,10 +10008,10 @@
9302
10008
  "description" : "Forbidden"
9303
10009
  },
9304
10010
  "404" : {
9305
- "description" : "AGENT_NOT_FOUND or assignment not found"
10011
+ "description" : "SKILL_NOT_FOUND or LIBRARY_VERSION_NOT_FOUND"
9306
10012
  }
9307
10013
  },
9308
- "summary" : "Unassign a skill from an agent",
10014
+ "summary" : "Sync an installed skill to a library version",
9309
10015
  "tags" : [ "skills" ]
9310
10016
  }
9311
10017
  },
@@ -9683,6 +10389,13 @@
9683
10389
  } ],
9684
10390
  "responses" : {
9685
10391
  "200" : {
10392
+ "content" : {
10393
+ "application/json" : {
10394
+ "schema" : {
10395
+ "$ref" : "#/components/schemas/MessageStatus"
10396
+ }
10397
+ }
10398
+ },
9686
10399
  "description" : "Message status retrieved successfully"
9687
10400
  },
9688
10401
  "401" : {
@@ -9773,14 +10486,6 @@
9773
10486
  "schema" : {
9774
10487
  "type" : "string"
9775
10488
  }
9776
- }, {
9777
- "description" : "ID of the voice",
9778
- "in" : "path",
9779
- "name" : "voiceId",
9780
- "required" : true,
9781
- "schema" : {
9782
- "type" : "string"
9783
- }
9784
10489
  }, {
9785
10490
  "description" : "Language code",
9786
10491
  "in" : "path",
@@ -9828,7 +10533,48 @@
9828
10533
  },
9829
10534
  "/apps/{appId}/fillers" : {
9830
10535
  "get" : {
9831
- "description" : "Check if audio filler exists",
10536
+ "description" : "List all fillers of the app across languages",
10537
+ "operationId" : "getAppFillers",
10538
+ "parameters" : [ {
10539
+ "description" : "ID of the app",
10540
+ "in" : "path",
10541
+ "name" : "appId",
10542
+ "required" : true,
10543
+ "schema" : {
10544
+ "type" : "string"
10545
+ }
10546
+ } ],
10547
+ "responses" : {
10548
+ "200" : {
10549
+ "content" : {
10550
+ "application/json" : {
10551
+ "schema" : {
10552
+ "$ref" : "#/components/schemas/FillersArray"
10553
+ }
10554
+ }
10555
+ },
10556
+ "description" : "List of app fillers"
10557
+ },
10558
+ "401" : {
10559
+ "description" : "Unauthorized"
10560
+ },
10561
+ "403" : {
10562
+ "description" : "Forbidden - User doesn't have access to this app"
10563
+ },
10564
+ "404" : {
10565
+ "description" : "App not found"
10566
+ },
10567
+ "500" : {
10568
+ "description" : "Server error"
10569
+ }
10570
+ },
10571
+ "summary" : "List app fillers",
10572
+ "tags" : [ "app" ]
10573
+ }
10574
+ },
10575
+ "/apps/{appId}/voice/{voiceId}/languages/{language}/fillers" : {
10576
+ "get" : {
10577
+ "description" : "Check for each filler id whether its generated audio exists for the given voice",
9832
10578
  "operationId" : "checkAudioFillerExists",
9833
10579
  "parameters" : [ {
9834
10580
  "description" : "ID of the app",
@@ -9838,10 +10584,19 @@
9838
10584
  "schema" : {
9839
10585
  "type" : "string"
9840
10586
  }
10587
+ }, {
10588
+ "description" : "ID of the voice",
10589
+ "in" : "path",
10590
+ "name" : "voiceId",
10591
+ "required" : true,
10592
+ "schema" : {
10593
+ "type" : "string"
10594
+ }
9841
10595
  }, {
9842
10596
  "description" : "Language code",
9843
- "in" : "query",
9844
- "name" : "lang",
10597
+ "in" : "path",
10598
+ "name" : "language",
10599
+ "required" : true,
9845
10600
  "schema" : {
9846
10601
  "type" : "string"
9847
10602
  }
@@ -9862,7 +10617,10 @@
9862
10617
  }
9863
10618
  }
9864
10619
  },
9865
- "description" : "Audio filler exists"
10620
+ "description" : "Map of filler id to audio existence"
10621
+ },
10622
+ "400" : {
10623
+ "description" : "Missing fillersIds query parameter"
9866
10624
  },
9867
10625
  "401" : {
9868
10626
  "description" : "Unauthorized"
@@ -9871,20 +10629,20 @@
9871
10629
  "description" : "Forbidden - User doesn't have access to this app"
9872
10630
  },
9873
10631
  "404" : {
9874
- "description" : "Audio filler does not exist"
10632
+ "description" : "App not found"
9875
10633
  },
9876
10634
  "500" : {
9877
10635
  "description" : "Server error"
9878
10636
  }
9879
10637
  },
9880
- "summary" : "Check if audio filler exists",
10638
+ "summary" : "Check if audio fillers exist",
9881
10639
  "tags" : [ "app" ]
9882
10640
  }
9883
10641
  },
9884
- "/apps/{appId}/voice/{voiceId}/default-fillers/{fillerId}" : {
10642
+ "/apps/{appId}/voice/{voiceId}/defaultFillers/{fillerId}/audio" : {
9885
10643
  "delete" : {
9886
- "description" : "Delete a default filler",
9887
- "operationId" : "deleteDefaultFiller",
10644
+ "description" : "Delete the audio file generated for a default filler of an app voice",
10645
+ "operationId" : "deleteVoiceDefaultFillerAudio",
9888
10646
  "parameters" : [ {
9889
10647
  "description" : "ID of the app",
9890
10648
  "in" : "path",
@@ -9901,6 +10659,111 @@
9901
10659
  "schema" : {
9902
10660
  "type" : "string"
9903
10661
  }
10662
+ }, {
10663
+ "description" : "ID of the filler",
10664
+ "in" : "path",
10665
+ "name" : "fillerId",
10666
+ "required" : true,
10667
+ "schema" : {
10668
+ "type" : "string"
10669
+ }
10670
+ } ],
10671
+ "responses" : {
10672
+ "200" : {
10673
+ "content" : {
10674
+ "application/json" : {
10675
+ "schema" : {
10676
+ "$ref" : "#/components/schemas/BodyWithMessage"
10677
+ }
10678
+ }
10679
+ },
10680
+ "description" : "Audio generated by default filler deleted"
10681
+ },
10682
+ "401" : {
10683
+ "description" : "Unauthorized"
10684
+ },
10685
+ "403" : {
10686
+ "description" : "Forbidden - User doesn't have access to this app"
10687
+ },
10688
+ "404" : {
10689
+ "description" : "App, voice or default filler not found"
10690
+ },
10691
+ "500" : {
10692
+ "description" : "Server error"
10693
+ }
10694
+ },
10695
+ "summary" : "Delete the generated audio of a default filler",
10696
+ "tags" : [ "app" ]
10697
+ }
10698
+ },
10699
+ "/apps/{appId}/languages/{language}/customFillers" : {
10700
+ "post" : {
10701
+ "description" : "Add a custom filler phrase to an app for a given language",
10702
+ "operationId" : "addCustomFiller",
10703
+ "parameters" : [ {
10704
+ "description" : "ID of the app",
10705
+ "in" : "path",
10706
+ "name" : "appId",
10707
+ "required" : true,
10708
+ "schema" : {
10709
+ "type" : "string"
10710
+ }
10711
+ }, {
10712
+ "description" : "Language code",
10713
+ "in" : "path",
10714
+ "name" : "language",
10715
+ "required" : true,
10716
+ "schema" : {
10717
+ "type" : "string"
10718
+ }
10719
+ } ],
10720
+ "requestBody" : {
10721
+ "content" : {
10722
+ "application/json" : {
10723
+ "schema" : {
10724
+ "$ref" : "#/components/schemas/addCustomFiller_request"
10725
+ }
10726
+ }
10727
+ },
10728
+ "required" : true
10729
+ },
10730
+ "responses" : {
10731
+ "201" : {
10732
+ "content" : {
10733
+ "application/json" : {
10734
+ "schema" : {
10735
+ "$ref" : "#/components/schemas/addCustomFiller_201_response"
10736
+ }
10737
+ }
10738
+ },
10739
+ "description" : "Filler phrase created successfully"
10740
+ },
10741
+ "400" : {
10742
+ "description" : "Invalid language or missing text"
10743
+ },
10744
+ "401" : {
10745
+ "description" : "Unauthorized"
10746
+ },
10747
+ "404" : {
10748
+ "description" : "App not found"
10749
+ }
10750
+ },
10751
+ "summary" : "Add a custom filler",
10752
+ "tags" : [ "app" ]
10753
+ }
10754
+ },
10755
+ "/apps/{appId}/languages/{language}/customFillers/{fillerId}" : {
10756
+ "delete" : {
10757
+ "description" : "Delete a custom filler phrase from an app for a given language",
10758
+ "operationId" : "deleteCustomFiller",
10759
+ "parameters" : [ {
10760
+ "description" : "ID of the app",
10761
+ "in" : "path",
10762
+ "name" : "appId",
10763
+ "required" : true,
10764
+ "schema" : {
10765
+ "type" : "string"
10766
+ }
9904
10767
  }, {
9905
10768
  "description" : "Language code",
9906
10769
  "in" : "path",
@@ -9923,26 +10786,71 @@
9923
10786
  "content" : {
9924
10787
  "application/json" : {
9925
10788
  "schema" : {
9926
- "$ref" : "#/components/schemas/FillersArray"
10789
+ "$ref" : "#/components/schemas/BodyWithMessage"
9927
10790
  }
9928
10791
  }
9929
10792
  },
9930
- "description" : "Default filler deleted successfully"
10793
+ "description" : "Filler deleted"
10794
+ },
10795
+ "400" : {
10796
+ "description" : "Invalid language"
9931
10797
  },
9932
10798
  "401" : {
9933
10799
  "description" : "Unauthorized"
9934
10800
  },
9935
- "403" : {
9936
- "description" : "Forbidden - User doesn't have access to this app"
9937
- },
9938
10801
  "404" : {
9939
- "description" : "Default filler not found"
10802
+ "description" : "App not found"
10803
+ }
10804
+ },
10805
+ "summary" : "Delete a custom filler",
10806
+ "tags" : [ "app" ]
10807
+ }
10808
+ },
10809
+ "/apps/{appId}/selectedFillers" : {
10810
+ "patch" : {
10811
+ "description" : "Update the checked state of fillers for an app",
10812
+ "operationId" : "updateSelectedFillers",
10813
+ "parameters" : [ {
10814
+ "description" : "ID of the app",
10815
+ "in" : "path",
10816
+ "name" : "appId",
10817
+ "required" : true,
10818
+ "schema" : {
10819
+ "type" : "string"
10820
+ }
10821
+ } ],
10822
+ "requestBody" : {
10823
+ "content" : {
10824
+ "application/json" : {
10825
+ "schema" : {
10826
+ "$ref" : "#/components/schemas/updateSelectedFillers_request"
10827
+ }
10828
+ }
9940
10829
  },
9941
- "500" : {
9942
- "description" : "Server error"
10830
+ "required" : true
10831
+ },
10832
+ "responses" : {
10833
+ "200" : {
10834
+ "content" : {
10835
+ "application/json" : {
10836
+ "schema" : {
10837
+ "$ref" : "#/components/schemas/updateSelectedFillers_200_response"
10838
+ }
10839
+ }
10840
+ },
10841
+ "description" : "Fillers updated"
10842
+ },
10843
+ "400" : {
10844
+ "description" : "Invalid body"
10845
+ },
10846
+ "401" : {
10847
+ "description" : "Unauthorized"
10848
+ },
10849
+ "404" : {
10850
+ "description" : "No fillers found to update"
9943
10851
  }
9944
10852
  },
9945
- "summary" : "Delete a default filler",
10853
+ "summary" : "Update selected fillers",
9946
10854
  "tags" : [ "app" ]
9947
10855
  }
9948
10856
  }
@@ -10327,6 +11235,15 @@
10327
11235
  "type" : "string"
10328
11236
  }
10329
11237
  },
11238
+ "toolIdPath" : {
11239
+ "description" : "Tool identifier",
11240
+ "in" : "path",
11241
+ "name" : "toolId",
11242
+ "required" : true,
11243
+ "schema" : {
11244
+ "type" : "string"
11245
+ }
11246
+ },
10330
11247
  "dry" : {
10331
11248
  "description" : "If true, returns a mock transcription without processing the file",
10332
11249
  "in" : "query",
@@ -10343,15 +11260,6 @@
10343
11260
  "type" : "string"
10344
11261
  }
10345
11262
  },
10346
- "toolIdPath" : {
10347
- "description" : "Tool identifier",
10348
- "in" : "path",
10349
- "name" : "toolId",
10350
- "required" : true,
10351
- "schema" : {
10352
- "type" : "string"
10353
- }
10354
- },
10355
11263
  "skillIdPath" : {
10356
11264
  "description" : "Skill identifier",
10357
11265
  "in" : "path",
@@ -10380,15 +11288,6 @@
10380
11288
  "type" : "string"
10381
11289
  }
10382
11290
  },
10383
- "voiceIdPath" : {
10384
- "description" : "ID of the voice",
10385
- "in" : "path",
10386
- "name" : "voiceId",
10387
- "required" : true,
10388
- "schema" : {
10389
- "type" : "string"
10390
- }
10391
- },
10392
11291
  "languagePath" : {
10393
11292
  "description" : "Language code",
10394
11293
  "in" : "path",
@@ -10407,10 +11306,11 @@
10407
11306
  "type" : "string"
10408
11307
  }
10409
11308
  },
10410
- "languageQuery" : {
10411
- "description" : "Language code",
10412
- "in" : "query",
10413
- "name" : "lang",
11309
+ "voiceIdPath" : {
11310
+ "description" : "ID of the voice",
11311
+ "in" : "path",
11312
+ "name" : "voiceId",
11313
+ "required" : true,
10414
11314
  "schema" : {
10415
11315
  "type" : "string"
10416
11316
  }
@@ -10426,13 +11326,10 @@
10426
11326
  },
10427
11327
  "schemas" : {
10428
11328
  "AudioFillerExistsResponse" : {
10429
- "additionalProperties" : false,
10430
- "properties" : {
10431
- "exists" : {
10432
- "type" : "boolean"
10433
- }
11329
+ "additionalProperties" : {
11330
+ "type" : "boolean"
10434
11331
  },
10435
- "required" : [ "exists" ],
11332
+ "description" : "Map of filler id to whether its audio exists (in storage and in DB)",
10436
11333
  "type" : "object"
10437
11334
  },
10438
11335
  "ImageKnowledge" : {
@@ -10738,7 +11635,10 @@
10738
11635
  "type" : "integer"
10739
11636
  },
10740
11637
  "contextualKnowledgeConversation" : {
10741
- "$ref" : "#/components/schemas/ContextualKnowledgeConversation"
11638
+ "allOf" : [ {
11639
+ "$ref" : "#/components/schemas/ContextualKnowledgeConversation"
11640
+ } ],
11641
+ "nullable" : true
10742
11642
  },
10743
11643
  "creator" : {
10744
11644
  "$ref" : "#/components/schemas/Agent_creator"
@@ -11058,7 +11958,10 @@
11058
11958
  "type" : "integer"
11059
11959
  },
11060
11960
  "contextualKnowledgeConversation" : {
11061
- "$ref" : "#/components/schemas/ContextualKnowledgeConversation"
11961
+ "allOf" : [ {
11962
+ "$ref" : "#/components/schemas/ContextualKnowledgeConversation"
11963
+ } ],
11964
+ "nullable" : true
11062
11965
  }
11063
11966
  },
11064
11967
  "type" : "object"
@@ -11507,6 +12410,10 @@
11507
12410
  "hash" : {
11508
12411
  "description" : "File hash",
11509
12412
  "type" : "string"
12413
+ },
12414
+ "isFAQ" : {
12415
+ "description" : "Whether the file is a FAQ document",
12416
+ "type" : "boolean"
11510
12417
  }
11511
12418
  },
11512
12419
  "required" : [ "contentType", "ext", "size" ],
@@ -11527,6 +12434,22 @@
11527
12434
  "id" : {
11528
12435
  "type" : "string"
11529
12436
  },
12437
+ "knowledgeBaseId" : {
12438
+ "type" : "string"
12439
+ },
12440
+ "knowledgeType" : {
12441
+ "enum" : [ "file", "website" ],
12442
+ "type" : "string"
12443
+ },
12444
+ "isFAQ" : {
12445
+ "type" : "boolean"
12446
+ },
12447
+ "uploadId" : {
12448
+ "type" : "string"
12449
+ },
12450
+ "hash" : {
12451
+ "type" : "string"
12452
+ },
11530
12453
  "contentType" : {
11531
12454
  "type" : "string"
11532
12455
  },
@@ -12824,6 +13747,15 @@
12824
13747
  "required" : [ "ephemeral", "name" ],
12825
13748
  "type" : "object"
12826
13749
  },
13750
+ "BodyWithMessage" : {
13751
+ "properties" : {
13752
+ "message" : {
13753
+ "type" : "string"
13754
+ }
13755
+ },
13756
+ "required" : [ "message" ],
13757
+ "type" : "object"
13758
+ },
12827
13759
  "InstanceContext" : {
12828
13760
  "additionalProperties" : false,
12829
13761
  "properties" : {
@@ -12870,15 +13802,6 @@
12870
13802
  "required" : [ "animationId", "code", "name", "type" ],
12871
13803
  "type" : "object"
12872
13804
  },
12873
- "BodyWithMessage" : {
12874
- "properties" : {
12875
- "message" : {
12876
- "type" : "string"
12877
- }
12878
- },
12879
- "required" : [ "message" ],
12880
- "type" : "object"
12881
- },
12882
13805
  "SequenceCreateRequest" : {
12883
13806
  "properties" : {
12884
13807
  "id" : {
@@ -14364,6 +15287,63 @@
14364
15287
  },
14365
15288
  "type" : "object"
14366
15289
  },
15290
+ "KnowledgeSitePage" : {
15291
+ "properties" : {
15292
+ "id" : {
15293
+ "type" : "string"
15294
+ },
15295
+ "knowledgeBaseId" : {
15296
+ "type" : "string"
15297
+ },
15298
+ "key" : {
15299
+ "type" : "string"
15300
+ },
15301
+ "name" : {
15302
+ "type" : "string"
15303
+ },
15304
+ "url" : {
15305
+ "type" : "string"
15306
+ },
15307
+ "siteId" : {
15308
+ "type" : "string"
15309
+ },
15310
+ "uploadId" : {
15311
+ "type" : "string"
15312
+ },
15313
+ "postURL" : {
15314
+ "type" : "string"
15315
+ },
15316
+ "formData" : {
15317
+ "type" : "string"
15318
+ },
15319
+ "contentType" : {
15320
+ "type" : "string"
15321
+ },
15322
+ "ext" : {
15323
+ "type" : "string"
15324
+ },
15325
+ "size" : {
15326
+ "type" : "number"
15327
+ },
15328
+ "hash" : {
15329
+ "type" : "string"
15330
+ },
15331
+ "status" : {
15332
+ "$ref" : "#/components/schemas/FileStatus"
15333
+ },
15334
+ "createdAt" : {
15335
+ "type" : "string"
15336
+ },
15337
+ "updatedAt" : {
15338
+ "type" : "string"
15339
+ },
15340
+ "isActive" : {
15341
+ "type" : "boolean"
15342
+ }
15343
+ },
15344
+ "required" : [ "createdAt", "id", "isActive", "key", "knowledgeBaseId", "name", "siteId", "status", "updatedAt", "url" ],
15345
+ "type" : "object"
15346
+ },
14367
15347
  "KnowledgeFilesByIdsRequest" : {
14368
15348
  "properties" : {
14369
15349
  "ids" : {
@@ -14668,6 +15648,15 @@
14668
15648
  "updatedAt" : {
14669
15649
  "format" : "date-time",
14670
15650
  "type" : "string"
15651
+ },
15652
+ "librarySlug" : {
15653
+ "nullable" : true,
15654
+ "type" : "string"
15655
+ },
15656
+ "libraryVersionId" : {
15657
+ "format" : "uuid",
15658
+ "nullable" : true,
15659
+ "type" : "string"
14671
15660
  }
14672
15661
  },
14673
15662
  "required" : [ "content", "description", "id", "isActive", "name", "orgId", "slug" ],
@@ -14724,6 +15713,15 @@
14724
15713
  },
14725
15714
  "isActive" : {
14726
15715
  "type" : "boolean"
15716
+ },
15717
+ "librarySlug" : {
15718
+ "nullable" : true,
15719
+ "type" : "string"
15720
+ },
15721
+ "libraryVersionId" : {
15722
+ "format" : "uuid",
15723
+ "nullable" : true,
15724
+ "type" : "string"
14727
15725
  }
14728
15726
  },
14729
15727
  "type" : "object"
@@ -14825,31 +15823,187 @@
14825
15823
  },
14826
15824
  "type" : "object"
14827
15825
  },
14828
- "SkillAssignRequest" : {
15826
+ "SkillAssignRequest" : {
15827
+ "additionalProperties" : false,
15828
+ "properties" : {
15829
+ "skillId" : {
15830
+ "format" : "uuid",
15831
+ "type" : "string"
15832
+ }
15833
+ },
15834
+ "required" : [ "skillId" ],
15835
+ "type" : "object"
15836
+ },
15837
+ "AvailableCommand" : {
15838
+ "properties" : {
15839
+ "slug" : {
15840
+ "type" : "string"
15841
+ },
15842
+ "description" : {
15843
+ "type" : "string"
15844
+ },
15845
+ "source" : {
15846
+ "enum" : [ "predefined", "skill" ],
15847
+ "type" : "string"
15848
+ }
15849
+ },
15850
+ "required" : [ "description", "slug", "source" ],
15851
+ "type" : "object"
15852
+ },
15853
+ "LibrarySkillsPage" : {
15854
+ "properties" : {
15855
+ "data" : {
15856
+ "items" : {
15857
+ "$ref" : "#/components/schemas/LibrarySkillEntry"
15858
+ },
15859
+ "type" : "array"
15860
+ },
15861
+ "total" : {
15862
+ "type" : "integer"
15863
+ },
15864
+ "page" : {
15865
+ "type" : "integer"
15866
+ },
15867
+ "limit" : {
15868
+ "type" : "integer"
15869
+ },
15870
+ "totalPages" : {
15871
+ "type" : "integer"
15872
+ },
15873
+ "allCategories" : {
15874
+ "items" : {
15875
+ "type" : "string"
15876
+ },
15877
+ "type" : "array"
15878
+ }
15879
+ },
15880
+ "required" : [ "allCategories", "data", "limit", "page", "total", "totalPages" ],
15881
+ "type" : "object"
15882
+ },
15883
+ "LibrarySkillEntry" : {
15884
+ "properties" : {
15885
+ "id" : {
15886
+ "type" : "string"
15887
+ },
15888
+ "slug" : {
15889
+ "type" : "string"
15890
+ },
15891
+ "name" : {
15892
+ "type" : "string"
15893
+ },
15894
+ "description" : {
15895
+ "type" : "string"
15896
+ },
15897
+ "sourceSkillId" : {
15898
+ "format" : "uuid",
15899
+ "nullable" : true,
15900
+ "type" : "string"
15901
+ },
15902
+ "latestVersionId" : {
15903
+ "format" : "uuid",
15904
+ "nullable" : true,
15905
+ "type" : "string"
15906
+ },
15907
+ "createdAt" : {
15908
+ "format" : "date-time",
15909
+ "type" : "string"
15910
+ },
15911
+ "updatedAt" : {
15912
+ "format" : "date-time",
15913
+ "type" : "string"
15914
+ },
15915
+ "versions" : {
15916
+ "items" : {
15917
+ "$ref" : "#/components/schemas/LibrarySkillVersion"
15918
+ },
15919
+ "type" : "array"
15920
+ },
15921
+ "latestVersion" : {
15922
+ "$ref" : "#/components/schemas/LibrarySkillVersion"
15923
+ }
15924
+ },
15925
+ "required" : [ "createdAt", "description", "id", "latestVersionId", "name", "slug", "updatedAt", "versions" ],
15926
+ "type" : "object"
15927
+ },
15928
+ "LibrarySkillVersion" : {
15929
+ "properties" : {
15930
+ "id" : {
15931
+ "format" : "uuid",
15932
+ "type" : "string"
15933
+ },
15934
+ "slug" : {
15935
+ "type" : "string"
15936
+ },
15937
+ "version" : {
15938
+ "type" : "string"
15939
+ },
15940
+ "name" : {
15941
+ "type" : "string"
15942
+ },
15943
+ "description" : {
15944
+ "type" : "string"
15945
+ },
15946
+ "content" : {
15947
+ "type" : "string"
15948
+ },
15949
+ "isLatest" : {
15950
+ "type" : "boolean"
15951
+ },
15952
+ "sourceSkillId" : {
15953
+ "format" : "uuid",
15954
+ "nullable" : true,
15955
+ "type" : "string"
15956
+ },
15957
+ "publishedAt" : {
15958
+ "format" : "date-time",
15959
+ "type" : "string"
15960
+ },
15961
+ "publishedBy" : {
15962
+ "format" : "uuid",
15963
+ "nullable" : true,
15964
+ "type" : "string"
15965
+ },
15966
+ "publishedByName" : {
15967
+ "nullable" : true,
15968
+ "type" : "string"
15969
+ },
15970
+ "category" : {
15971
+ "nullable" : true,
15972
+ "type" : "string"
15973
+ },
15974
+ "files" : {
15975
+ "items" : {
15976
+ "$ref" : "#/components/schemas/LibrarySkillVersion_files_inner"
15977
+ },
15978
+ "type" : "array"
15979
+ }
15980
+ },
15981
+ "required" : [ "content", "description", "id", "isLatest", "name", "publishedAt", "slug", "version" ],
15982
+ "type" : "object"
15983
+ },
15984
+ "LibrarySkillInstallRequest" : {
14829
15985
  "additionalProperties" : false,
14830
15986
  "properties" : {
14831
- "skill_id" : {
15987
+ "organizationId" : {
15988
+ "format" : "uuid",
15989
+ "type" : "string"
15990
+ },
15991
+ "versionId" : {
14832
15992
  "format" : "uuid",
14833
15993
  "type" : "string"
14834
15994
  }
14835
15995
  },
14836
- "required" : [ "skill_id" ],
15996
+ "required" : [ "organizationId" ],
14837
15997
  "type" : "object"
14838
15998
  },
14839
- "AvailableCommand" : {
15999
+ "LibrarySkillSyncRequest" : {
16000
+ "additionalProperties" : false,
14840
16001
  "properties" : {
14841
- "slug" : {
14842
- "type" : "string"
14843
- },
14844
- "description" : {
14845
- "type" : "string"
14846
- },
14847
- "source" : {
14848
- "enum" : [ "predefined", "skill" ],
16002
+ "versionId" : {
16003
+ "format" : "uuid",
14849
16004
  "type" : "string"
14850
16005
  }
14851
16006
  },
14852
- "required" : [ "description", "slug", "source" ],
14853
16007
  "type" : "object"
14854
16008
  },
14855
16009
  "PinRequest" : {
@@ -15004,6 +16158,37 @@
15004
16158
  "required" : [ "message" ],
15005
16159
  "type" : "object"
15006
16160
  },
16161
+ "MessageStatus" : {
16162
+ "properties" : {
16163
+ "status" : {
16164
+ "type" : "string"
16165
+ },
16166
+ "content" : {
16167
+ "type" : "string"
16168
+ },
16169
+ "reasoning" : {
16170
+ "type" : "string"
16171
+ },
16172
+ "reaction" : {
16173
+ "enum" : [ "positive", "negative" ],
16174
+ "type" : "string"
16175
+ },
16176
+ "error" : {
16177
+ "$ref" : "#/components/schemas/MessageStatus_error"
16178
+ },
16179
+ "toolCall" : {
16180
+ "$ref" : "#/components/schemas/MessageStatus_toolCall"
16181
+ },
16182
+ "toolsUsed" : {
16183
+ "items" : {
16184
+ "$ref" : "#/components/schemas/ToolUsed"
16185
+ },
16186
+ "type" : "array"
16187
+ }
16188
+ },
16189
+ "required" : [ "status" ],
16190
+ "type" : "object"
16191
+ },
15007
16192
  "FillersArray" : {
15008
16193
  "items" : {
15009
16194
  "$ref" : "#/components/schemas/FillersArray_inner"
@@ -15312,15 +16497,161 @@
15312
16497
  },
15313
16498
  "type" : "object"
15314
16499
  },
16500
+ "patchKnowledgeBase_request" : {
16501
+ "properties" : {
16502
+ "name" : {
16503
+ "type" : "string"
16504
+ },
16505
+ "authorizedAgents" : {
16506
+ "items" : {
16507
+ "type" : "string"
16508
+ },
16509
+ "type" : "array"
16510
+ }
16511
+ },
16512
+ "required" : [ "authorizedAgents", "name" ],
16513
+ "type" : "object"
16514
+ },
16515
+ "searchKnowledgeBase_request" : {
16516
+ "properties" : {
16517
+ "query" : {
16518
+ "minLength" : 2,
16519
+ "type" : "string"
16520
+ },
16521
+ "maxResults" : {
16522
+ "type" : "number"
16523
+ }
16524
+ },
16525
+ "required" : [ "query" ],
16526
+ "type" : "object"
16527
+ },
16528
+ "searchKnowledgeBase_200_response_inner" : {
16529
+ "properties" : {
16530
+ "id" : {
16531
+ "type" : "string"
16532
+ },
16533
+ "content" : {
16534
+ "type" : "string"
16535
+ },
16536
+ "score" : {
16537
+ "type" : "number"
16538
+ },
16539
+ "file" : {
16540
+ "additionalProperties" : true,
16541
+ "type" : "object"
16542
+ }
16543
+ },
16544
+ "required" : [ "content", "id", "score" ],
16545
+ "type" : "object"
16546
+ },
16547
+ "startKnowledgeBaseScrapping_request" : {
16548
+ "properties" : {
16549
+ "urls" : {
16550
+ "items" : {
16551
+ "type" : "string"
16552
+ },
16553
+ "minItems" : 1,
16554
+ "type" : "array"
16555
+ },
16556
+ "knowledgeBaseId" : {
16557
+ "type" : "string"
16558
+ },
16559
+ "userId" : {
16560
+ "type" : "string"
16561
+ },
16562
+ "organizationId" : {
16563
+ "type" : "string"
16564
+ },
16565
+ "domainName" : {
16566
+ "nullable" : true,
16567
+ "type" : "string"
16568
+ },
16569
+ "spiderName" : {
16570
+ "nullable" : true,
16571
+ "type" : "string"
16572
+ },
16573
+ "excludeDomains" : {
16574
+ "items" : {
16575
+ "type" : "string"
16576
+ },
16577
+ "nullable" : true,
16578
+ "type" : "array"
16579
+ },
16580
+ "customSettings" : {
16581
+ "additionalProperties" : true,
16582
+ "nullable" : true,
16583
+ "type" : "object"
16584
+ },
16585
+ "onlyThisSite" : {
16586
+ "nullable" : true,
16587
+ "type" : "boolean"
16588
+ },
16589
+ "sitePageId" : {
16590
+ "nullable" : true,
16591
+ "type" : "string"
16592
+ }
16593
+ },
16594
+ "required" : [ "knowledgeBaseId", "organizationId", "urls", "userId" ],
16595
+ "type" : "object"
16596
+ },
15315
16597
  "uploadImageToKnowledgeBaseLibrary_request" : {
16598
+ "properties" : {
16599
+ "name" : {
16600
+ "type" : "string"
16601
+ },
16602
+ "size" : {
16603
+ "description" : "File size in bytes",
16604
+ "type" : "number"
16605
+ },
16606
+ "contentType" : {
16607
+ "description" : "MIME type of the image file",
16608
+ "type" : "string"
16609
+ },
16610
+ "ext" : {
16611
+ "description" : "File extension",
16612
+ "type" : "string"
16613
+ }
16614
+ },
16615
+ "required" : [ "contentType", "ext", "name", "size" ],
16616
+ "type" : "object"
16617
+ },
16618
+ "uploadImageToKnowledgeBaseLibrary_200_response" : {
15316
16619
  "properties" : {
15317
16620
  "image" : {
15318
- "description" : "The image to upload",
15319
- "format" : "binary",
16621
+ "$ref" : "#/components/schemas/ImageKnowledge"
16622
+ },
16623
+ "presigned" : {
16624
+ "additionalProperties" : true,
16625
+ "type" : "object"
16626
+ }
16627
+ },
16628
+ "required" : [ "image", "presigned" ],
16629
+ "type" : "object"
16630
+ },
16631
+ "patchKnowledgeFile_request" : {
16632
+ "properties" : {
16633
+ "isActive" : {
16634
+ "type" : "boolean"
16635
+ }
16636
+ },
16637
+ "required" : [ "isActive" ],
16638
+ "type" : "object"
16639
+ },
16640
+ "updateToolStaticCredentials_request" : {
16641
+ "properties" : {
16642
+ "bearerToken" : {
16643
+ "maxLength" : 8192,
16644
+ "minLength" : 1,
16645
+ "nullable" : true,
16646
+ "type" : "string"
16647
+ },
16648
+ "headerValue" : {
16649
+ "maxLength" : 8192,
16650
+ "minLength" : 1,
16651
+ "nullable" : true,
15320
16652
  "type" : "string"
15321
16653
  }
15322
16654
  },
15323
- "required" : [ "image" ],
15324
16655
  "type" : "object"
15325
16656
  },
15326
16657
  "setupTool_request" : {
@@ -15392,6 +16723,84 @@
15392
16723
  "required" : [ "id", "reaction" ],
15393
16724
  "type" : "object"
15394
16725
  },
16726
+ "addCustomFiller_request" : {
16727
+ "properties" : {
16728
+ "text" : {
16729
+ "type" : "string"
16730
+ }
16731
+ },
16732
+ "required" : [ "text" ],
16733
+ "type" : "object"
16734
+ },
16735
+ "addCustomFiller_201_response_filler" : {
16736
+ "properties" : {
16737
+ "id" : {
16738
+ "type" : "string"
16739
+ },
16740
+ "text" : {
16741
+ "type" : "string"
16742
+ },
16743
+ "checked" : {
16744
+ "type" : "boolean"
16745
+ },
16746
+ "isCustom" : {
16747
+ "type" : "boolean"
16748
+ }
16749
+ },
16750
+ "required" : [ "checked", "id", "isCustom", "text" ],
16751
+ "type" : "object"
16752
+ },
16753
+ "addCustomFiller_201_response" : {
16754
+ "properties" : {
16755
+ "message" : {
16756
+ "type" : "string"
16757
+ },
16758
+ "filler" : {
16759
+ "$ref" : "#/components/schemas/addCustomFiller_201_response_filler"
16760
+ }
16761
+ },
16762
+ "required" : [ "filler", "message" ],
16763
+ "type" : "object"
16764
+ },
16765
+ "updateSelectedFillers_request_data_inner" : {
16766
+ "properties" : {
16767
+ "id" : {
16768
+ "type" : "string"
16769
+ },
16770
+ "checked" : {
16771
+ "type" : "boolean"
16772
+ }
16773
+ },
16774
+ "required" : [ "checked", "id" ],
16775
+ "type" : "object"
16776
+ },
16777
+ "updateSelectedFillers_request" : {
16778
+ "properties" : {
16779
+ "data" : {
16780
+ "items" : {
16781
+ "$ref" : "#/components/schemas/updateSelectedFillers_request_data_inner"
16782
+ },
16783
+ "type" : "array"
16784
+ }
16785
+ },
16786
+ "required" : [ "data" ],
16787
+ "type" : "object"
16788
+ },
16789
+ "updateSelectedFillers_200_response" : {
16790
+ "properties" : {
16791
+ "message" : {
16792
+ "type" : "string"
16793
+ },
16794
+ "updated" : {
16795
+ "items" : {
16796
+ "$ref" : "#/components/schemas/updateSelectedFillers_request_data_inner"
16797
+ },
16798
+ "type" : "array"
16799
+ }
16800
+ },
16801
+ "required" : [ "message", "updated" ],
16802
+ "type" : "object"
16803
+ },
15395
16804
  "KnowledgeBase_files_inner" : {
15396
16805
  "properties" : {
15397
16806
  "id" : {
@@ -16318,6 +17727,41 @@
16318
17727
  },
16319
17728
  "type" : "object"
16320
17729
  },
17730
+ "LibrarySkillVersion_files_inner" : {
17731
+ "properties" : {
17732
+ "filename" : {
17733
+ "type" : "string"
17734
+ },
17735
+ "content" : {
17736
+ "type" : "string"
17737
+ }
17738
+ },
17739
+ "required" : [ "content", "filename" ],
17740
+ "type" : "object"
17741
+ },
17742
+ "MessageStatus_error" : {
17743
+ "properties" : {
17744
+ "code" : {
17745
+ "type" : "string"
17746
+ },
17747
+ "message" : {
17748
+ "type" : "string"
17749
+ }
17750
+ },
17751
+ "type" : "object"
17752
+ },
17753
+ "MessageStatus_toolCall" : {
17754
+ "properties" : {
17755
+ "name" : {
17756
+ "type" : "string"
17757
+ },
17758
+ "stepIndex" : {
17759
+ "type" : "integer"
17760
+ }
17761
+ },
17762
+ "required" : [ "name", "stepIndex" ],
17763
+ "type" : "object"
17764
+ },
16321
17765
  "FillersArray_inner" : {
16322
17766
  "properties" : {
16323
17767
  "id" : {