@elevenlabs/elevenlabs-js 2.32.0 → 2.33.0

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 (495) hide show
  1. package/.fern/metadata.json +1 -1
  2. package/BaseClient.js +2 -2
  3. package/Client.d.ts +10 -0
  4. package/Client.js +39 -0
  5. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +9 -0
  6. package/api/resources/conversationalAi/resources/agents/client/Client.js +25 -10
  7. package/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.d.ts +94 -0
  8. package/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.js +399 -0
  9. package/api/resources/conversationalAi/resources/agents/resources/branches/client/index.d.ts +1 -0
  10. package/{dist/serialization/resources/workspace/resources/members/types → api/resources/conversationalAi/resources/agents/resources/branches/client}/index.js +1 -1
  11. package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.d.ts +23 -0
  12. package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.d.ts +12 -0
  13. package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +11 -0
  14. package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.js +3 -0
  15. package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesListRequest.d.ts +13 -0
  16. package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesListRequest.js +3 -0
  17. package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.d.ts +4 -0
  18. package/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.js +2 -0
  19. package/api/resources/conversationalAi/resources/agents/resources/branches/index.d.ts +1 -0
  20. package/{dist/api/resources/workspace/resources/members/types → api/resources/conversationalAi/resources/agents/resources/branches}/index.js +1 -1
  21. package/api/resources/conversationalAi/resources/agents/resources/deployments/client/Client.d.ts +37 -0
  22. package/api/resources/conversationalAi/resources/agents/resources/deployments/client/Client.js +134 -0
  23. package/api/resources/conversationalAi/resources/agents/resources/deployments/client/index.d.ts +1 -0
  24. package/api/resources/{workspace/resources/members/types → conversationalAi/resources/agents/resources/deployments/client}/index.js +1 -1
  25. package/api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.d.ts +19 -0
  26. package/api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.js +3 -0
  27. package/api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.d.ts +1 -0
  28. package/api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.js +2 -0
  29. package/api/resources/conversationalAi/resources/agents/resources/deployments/index.d.ts +1 -0
  30. package/{serialization/resources/workspace/resources/members/types → api/resources/conversationalAi/resources/agents/resources/deployments}/index.js +1 -1
  31. package/api/resources/conversationalAi/resources/agents/resources/drafts/client/Client.d.ts +197 -0
  32. package/api/resources/conversationalAi/resources/agents/resources/drafts/client/Client.js +342 -0
  33. package/api/resources/conversationalAi/resources/agents/resources/drafts/client/index.d.ts +1 -0
  34. package/api/resources/conversationalAi/resources/agents/resources/drafts/client/index.js +17 -0
  35. package/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.d.ts +173 -0
  36. package/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.js +3 -0
  37. package/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/DraftsDeleteRequest.d.ts +10 -0
  38. package/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/DraftsDeleteRequest.js +3 -0
  39. package/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.d.ts +2 -0
  40. package/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.js +2 -0
  41. package/api/resources/conversationalAi/resources/agents/resources/drafts/index.d.ts +1 -0
  42. package/api/resources/conversationalAi/resources/agents/resources/drafts/index.js +17 -0
  43. package/api/resources/conversationalAi/resources/agents/resources/index.d.ts +6 -0
  44. package/api/resources/conversationalAi/resources/agents/resources/index.js +7 -1
  45. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +44 -0
  46. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +178 -0
  47. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.d.ts +12 -0
  48. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.js +3 -0
  49. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.d.ts +12 -0
  50. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.js +3 -0
  51. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.d.ts +8 -0
  52. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.js +3 -0
  53. package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +3 -0
  54. package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +10 -2
  55. package/api/resources/conversationalAi/resources/tools/client/Client.js +44 -6
  56. package/api/resources/conversationalAi/resources/tools/client/requests/ToolsListRequest.d.ts +28 -0
  57. package/api/resources/conversationalAi/resources/tools/client/requests/ToolsListRequest.js +3 -0
  58. package/api/resources/conversationalAi/resources/tools/client/requests/index.d.ts +1 -0
  59. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +1 -1
  60. package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +1 -1
  61. package/api/resources/studio/resources/projects/client/Client.js +3 -0
  62. package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +2 -0
  63. package/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -1
  64. package/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +1 -1
  65. package/api/resources/workspace/resources/index.d.ts +0 -2
  66. package/api/resources/workspace/resources/index.js +0 -2
  67. package/api/resources/workspace/resources/invites/client/requests/InviteUserRequest.d.ts +4 -2
  68. package/api/resources/workspace/resources/invites/index.d.ts +0 -1
  69. package/api/resources/workspace/resources/invites/index.js +0 -1
  70. package/api/resources/workspace/resources/members/client/requests/UpdateMemberRequest.d.ts +4 -2
  71. package/api/resources/workspace/resources/members/index.d.ts +0 -1
  72. package/api/resources/workspace/resources/members/index.js +0 -1
  73. package/api/resources/workspace/resources/resources/client/Client.d.ts +0 -17
  74. package/api/resources/workspace/resources/resources/client/Client.js +0 -59
  75. package/api/resources/workspace/resources/resources/client/requests/index.d.ts +0 -1
  76. package/api/types/AgentBranchBasicInfo.d.ts +4 -0
  77. package/api/types/AgentBranchBasicInfo.js +3 -0
  78. package/api/types/AgentBranchResponse.d.ts +19 -0
  79. package/api/types/AgentBranchResponse.js +3 -0
  80. package/api/types/AgentBranchSummary.d.ts +17 -0
  81. package/api/types/AgentBranchSummary.js +3 -0
  82. package/api/types/AgentDeploymentPercentageStrategy.d.ts +5 -0
  83. package/api/types/AgentDeploymentPercentageStrategy.js +3 -0
  84. package/api/types/AgentDeploymentRequest.d.ts +5 -0
  85. package/api/types/AgentDeploymentRequest.js +3 -0
  86. package/api/types/AgentDeploymentRequestItem.d.ts +6 -0
  87. package/api/types/AgentDeploymentRequestItem.js +3 -0
  88. package/api/types/AgentDeploymentResponse.d.ts +4 -0
  89. package/api/types/AgentDeploymentResponse.js +3 -0
  90. package/api/types/AgentVersionMetadata.d.ts +11 -0
  91. package/api/types/AgentVersionMetadata.js +3 -0
  92. package/api/types/AgentVersionParents.d.ts +6 -0
  93. package/api/types/AgentVersionParents.js +3 -0
  94. package/api/types/BranchProtectionStatus.d.ts +5 -0
  95. package/api/types/BranchProtectionStatus.js +8 -0
  96. package/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +1 -0
  97. package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
  98. package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
  99. package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
  100. package/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
  101. package/api/types/CreateAgentBranchResponseModel.d.ts +6 -0
  102. package/api/types/CreateAgentBranchResponseModel.js +3 -0
  103. package/api/types/DirectPublishingReadResponseModel.d.ts +1 -0
  104. package/api/types/GetConversationResponseModel.d.ts +1 -0
  105. package/api/types/ListResponseAgentBranchSummary.d.ts +5 -0
  106. package/api/types/ListResponseAgentBranchSummary.js +3 -0
  107. package/api/types/PermissionType.d.ts +1 -0
  108. package/api/types/PermissionType.js +1 -0
  109. package/api/types/ProjectCreationMetaResponseModelType.d.ts +1 -0
  110. package/api/types/ProjectCreationMetaResponseModelType.js +1 -0
  111. package/api/types/ProjectExtendedResponse.d.ts +2 -0
  112. package/api/types/ProjectResponse.d.ts +2 -0
  113. package/api/types/SeatType.d.ts +5 -0
  114. package/{dist/api/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.js → api/types/SeatType.js} +2 -2
  115. package/api/types/SongMetadata.d.ts +4 -0
  116. package/api/types/ToolSortBy.d.ts +5 -0
  117. package/api/types/ToolSortBy.js +8 -0
  118. package/api/types/ToolTypeFilter.d.ts +6 -0
  119. package/api/types/ToolTypeFilter.js +9 -0
  120. package/api/types/ToolsResponseModel.d.ts +2 -0
  121. package/api/types/index.d.ts +15 -0
  122. package/api/types/index.js +15 -0
  123. package/dist/BaseClient.js +2 -2
  124. package/dist/Client.d.ts +10 -0
  125. package/dist/Client.js +39 -0
  126. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +9 -0
  127. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +25 -10
  128. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.d.ts +94 -0
  129. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/Client.js +399 -0
  130. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/index.d.ts +1 -0
  131. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/index.js +17 -0
  132. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.d.ts +23 -0
  133. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.js +3 -0
  134. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.d.ts +12 -0
  135. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.js +3 -0
  136. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +11 -0
  137. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.js +3 -0
  138. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesListRequest.d.ts +13 -0
  139. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BranchesListRequest.js +3 -0
  140. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.d.ts +4 -0
  141. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.js +2 -0
  142. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/index.d.ts +1 -0
  143. package/dist/api/resources/conversationalAi/resources/agents/resources/branches/index.js +17 -0
  144. package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/Client.d.ts +37 -0
  145. package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/Client.js +134 -0
  146. package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/index.d.ts +1 -0
  147. package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/index.js +17 -0
  148. package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.d.ts +19 -0
  149. package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.js +3 -0
  150. package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.d.ts +1 -0
  151. package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.js +2 -0
  152. package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/index.d.ts +1 -0
  153. package/dist/api/resources/conversationalAi/resources/agents/resources/deployments/index.js +17 -0
  154. package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/Client.d.ts +197 -0
  155. package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/Client.js +342 -0
  156. package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/index.d.ts +1 -0
  157. package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/index.js +17 -0
  158. package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.d.ts +173 -0
  159. package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.js +3 -0
  160. package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/DraftsDeleteRequest.d.ts +10 -0
  161. package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/DraftsDeleteRequest.js +3 -0
  162. package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.d.ts +2 -0
  163. package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.js +2 -0
  164. package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/index.d.ts +1 -0
  165. package/dist/api/resources/conversationalAi/resources/agents/resources/drafts/index.js +17 -0
  166. package/dist/api/resources/conversationalAi/resources/agents/resources/index.d.ts +6 -0
  167. package/dist/api/resources/conversationalAi/resources/agents/resources/index.js +7 -1
  168. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +44 -0
  169. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +178 -0
  170. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.d.ts +12 -0
  171. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.js +3 -0
  172. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.d.ts +12 -0
  173. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.js +3 -0
  174. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.d.ts +8 -0
  175. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.js +3 -0
  176. package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +3 -0
  177. package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +10 -2
  178. package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +44 -6
  179. package/dist/api/resources/conversationalAi/resources/tools/client/requests/ToolsListRequest.d.ts +28 -0
  180. package/dist/api/resources/conversationalAi/resources/tools/client/requests/ToolsListRequest.js +3 -0
  181. package/dist/api/resources/conversationalAi/resources/tools/client/requests/index.d.ts +1 -0
  182. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +1 -1
  183. package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +1 -1
  184. package/dist/api/resources/studio/resources/projects/client/Client.js +3 -0
  185. package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +2 -0
  186. package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +1 -1
  187. package/dist/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +1 -1
  188. package/dist/api/resources/workspace/resources/index.d.ts +0 -2
  189. package/dist/api/resources/workspace/resources/index.js +0 -2
  190. package/dist/api/resources/workspace/resources/invites/client/requests/InviteUserRequest.d.ts +4 -2
  191. package/dist/api/resources/workspace/resources/invites/index.d.ts +0 -1
  192. package/dist/api/resources/workspace/resources/invites/index.js +0 -1
  193. package/dist/api/resources/workspace/resources/members/client/requests/UpdateMemberRequest.d.ts +4 -2
  194. package/dist/api/resources/workspace/resources/members/index.d.ts +0 -1
  195. package/dist/api/resources/workspace/resources/members/index.js +0 -1
  196. package/dist/api/resources/workspace/resources/resources/client/Client.d.ts +0 -17
  197. package/dist/api/resources/workspace/resources/resources/client/Client.js +0 -59
  198. package/dist/api/resources/workspace/resources/resources/client/requests/index.d.ts +0 -1
  199. package/dist/api/types/AgentBranchBasicInfo.d.ts +4 -0
  200. package/dist/api/types/AgentBranchBasicInfo.js +3 -0
  201. package/dist/api/types/AgentBranchResponse.d.ts +19 -0
  202. package/dist/api/types/AgentBranchResponse.js +3 -0
  203. package/dist/api/types/AgentBranchSummary.d.ts +17 -0
  204. package/dist/api/types/AgentBranchSummary.js +3 -0
  205. package/dist/api/types/AgentDeploymentPercentageStrategy.d.ts +5 -0
  206. package/dist/api/types/AgentDeploymentPercentageStrategy.js +3 -0
  207. package/dist/api/types/AgentDeploymentRequest.d.ts +5 -0
  208. package/dist/api/types/AgentDeploymentRequest.js +3 -0
  209. package/dist/api/types/AgentDeploymentRequestItem.d.ts +6 -0
  210. package/dist/api/types/AgentDeploymentRequestItem.js +3 -0
  211. package/dist/api/types/AgentDeploymentResponse.d.ts +4 -0
  212. package/dist/api/types/AgentDeploymentResponse.js +3 -0
  213. package/dist/api/types/AgentVersionMetadata.d.ts +11 -0
  214. package/dist/api/types/AgentVersionMetadata.js +3 -0
  215. package/dist/api/types/AgentVersionParents.d.ts +6 -0
  216. package/dist/api/types/AgentVersionParents.js +3 -0
  217. package/dist/api/types/BranchProtectionStatus.d.ts +5 -0
  218. package/dist/api/types/BranchProtectionStatus.js +8 -0
  219. package/dist/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +1 -0
  220. package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
  221. package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
  222. package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
  223. package/dist/api/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
  224. package/dist/api/types/CreateAgentBranchResponseModel.d.ts +6 -0
  225. package/dist/api/types/CreateAgentBranchResponseModel.js +3 -0
  226. package/dist/api/types/DirectPublishingReadResponseModel.d.ts +1 -0
  227. package/dist/api/types/GetConversationResponseModel.d.ts +1 -0
  228. package/dist/api/types/ListResponseAgentBranchSummary.d.ts +5 -0
  229. package/dist/api/types/ListResponseAgentBranchSummary.js +3 -0
  230. package/dist/api/types/PermissionType.d.ts +1 -0
  231. package/dist/api/types/PermissionType.js +1 -0
  232. package/dist/api/types/ProjectCreationMetaResponseModelType.d.ts +1 -0
  233. package/dist/api/types/ProjectCreationMetaResponseModelType.js +1 -0
  234. package/dist/api/types/ProjectExtendedResponse.d.ts +2 -0
  235. package/dist/api/types/ProjectResponse.d.ts +2 -0
  236. package/dist/api/types/SeatType.d.ts +5 -0
  237. package/{api/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.js → dist/api/types/SeatType.js} +2 -2
  238. package/dist/api/types/SongMetadata.d.ts +4 -0
  239. package/dist/api/types/ToolSortBy.d.ts +5 -0
  240. package/dist/api/types/ToolSortBy.js +8 -0
  241. package/dist/api/types/ToolTypeFilter.d.ts +6 -0
  242. package/dist/api/types/ToolTypeFilter.js +9 -0
  243. package/dist/api/types/ToolsResponseModel.d.ts +2 -0
  244. package/dist/api/types/index.d.ts +15 -0
  245. package/dist/api/types/index.js +15 -0
  246. package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/index.d.ts +1 -0
  247. package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/index.js +17 -0
  248. package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.d.ts +15 -0
  249. package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.js +47 -0
  250. package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.d.ts +9 -0
  251. package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.js +41 -0
  252. package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +11 -0
  253. package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.js +43 -0
  254. package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.d.ts +3 -0
  255. package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.js +9 -0
  256. package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/index.d.ts +1 -0
  257. package/dist/serialization/resources/conversationalAi/resources/agents/resources/branches/index.js +17 -0
  258. package/dist/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/index.d.ts +1 -0
  259. package/dist/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/index.js +17 -0
  260. package/dist/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.d.ts +10 -0
  261. package/dist/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.js +42 -0
  262. package/dist/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.d.ts +1 -0
  263. package/dist/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.js +5 -0
  264. package/dist/serialization/resources/conversationalAi/resources/agents/resources/deployments/index.d.ts +1 -0
  265. package/dist/serialization/resources/conversationalAi/resources/agents/resources/deployments/index.js +17 -0
  266. package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/index.d.ts +1 -0
  267. package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/index.js +17 -0
  268. package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.d.ts +14 -0
  269. package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.js +46 -0
  270. package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.d.ts +1 -0
  271. package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.js +5 -0
  272. package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/index.d.ts +1 -0
  273. package/dist/serialization/resources/conversationalAi/resources/agents/resources/drafts/index.js +17 -0
  274. package/dist/serialization/resources/conversationalAi/resources/agents/resources/index.d.ts +6 -0
  275. package/dist/serialization/resources/conversationalAi/resources/agents/resources/index.js +7 -1
  276. package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.d.ts +10 -0
  277. package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.js +42 -0
  278. package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.d.ts +10 -0
  279. package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.js +42 -0
  280. package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.d.ts +9 -0
  281. package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.js +41 -0
  282. package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +3 -0
  283. package/dist/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.js +7 -1
  284. package/dist/serialization/resources/workspace/resources/index.d.ts +0 -2
  285. package/dist/serialization/resources/workspace/resources/index.js +0 -2
  286. package/dist/serialization/resources/workspace/resources/invites/client/requests/InviteUserRequest.d.ts +3 -2
  287. package/dist/serialization/resources/workspace/resources/invites/client/requests/InviteUserRequest.js +3 -2
  288. package/dist/serialization/resources/workspace/resources/invites/index.d.ts +0 -1
  289. package/dist/serialization/resources/workspace/resources/invites/index.js +0 -1
  290. package/dist/serialization/resources/workspace/resources/members/client/requests/UpdateMemberRequest.d.ts +3 -2
  291. package/dist/serialization/resources/workspace/resources/members/client/requests/UpdateMemberRequest.js +3 -2
  292. package/dist/serialization/resources/workspace/resources/members/index.d.ts +0 -1
  293. package/dist/serialization/resources/workspace/resources/members/index.js +0 -1
  294. package/dist/serialization/resources/workspace/resources/resources/client/requests/index.d.ts +0 -1
  295. package/dist/serialization/resources/workspace/resources/resources/client/requests/index.js +1 -3
  296. package/dist/serialization/types/AgentBranchBasicInfo.d.ts +10 -0
  297. package/{serialization/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.js → dist/serialization/types/AgentBranchBasicInfo.js} +6 -3
  298. package/dist/serialization/types/AgentBranchResponse.d.ts +24 -0
  299. package/dist/serialization/types/AgentBranchResponse.js +56 -0
  300. package/dist/serialization/types/AgentBranchSummary.d.ts +21 -0
  301. package/dist/serialization/types/AgentBranchSummary.js +53 -0
  302. package/dist/serialization/types/AgentDeploymentPercentageStrategy.d.ts +10 -0
  303. package/dist/serialization/types/AgentDeploymentPercentageStrategy.js +42 -0
  304. package/dist/serialization/types/AgentDeploymentRequest.d.ts +10 -0
  305. package/dist/serialization/types/AgentDeploymentRequest.js +42 -0
  306. package/dist/serialization/types/AgentDeploymentRequestItem.d.ts +11 -0
  307. package/dist/serialization/{resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js → types/AgentDeploymentRequestItem.js} +6 -6
  308. package/dist/serialization/types/AgentDeploymentResponse.d.ts +9 -0
  309. package/dist/serialization/types/AgentDeploymentResponse.js +41 -0
  310. package/dist/serialization/types/AgentVersionMetadata.d.ts +18 -0
  311. package/dist/serialization/types/AgentVersionMetadata.js +50 -0
  312. package/dist/serialization/types/AgentVersionParents.d.ts +12 -0
  313. package/dist/serialization/types/AgentVersionParents.js +44 -0
  314. package/dist/serialization/types/BranchProtectionStatus.d.ts +7 -0
  315. package/dist/serialization/{resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.js → types/BranchProtectionStatus.js} +3 -3
  316. package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +1 -0
  317. package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +1 -0
  318. package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
  319. package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.js +1 -0
  320. package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
  321. package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.js +1 -0
  322. package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
  323. package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +1 -0
  324. package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
  325. package/dist/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +1 -0
  326. package/dist/serialization/types/CreateAgentBranchResponseModel.d.ts +10 -0
  327. package/dist/serialization/types/CreateAgentBranchResponseModel.js +42 -0
  328. package/dist/serialization/types/DirectPublishingReadResponseModel.d.ts +1 -0
  329. package/dist/serialization/types/DirectPublishingReadResponseModel.js +1 -0
  330. package/dist/serialization/types/GetConversationResponseModel.d.ts +1 -0
  331. package/dist/serialization/types/GetConversationResponseModel.js +1 -0
  332. package/dist/serialization/types/ListResponseAgentBranchSummary.d.ts +12 -0
  333. package/dist/serialization/types/ListResponseAgentBranchSummary.js +44 -0
  334. package/dist/serialization/types/PermissionType.d.ts +1 -1
  335. package/dist/serialization/types/PermissionType.js +1 -0
  336. package/dist/serialization/types/ProjectCreationMetaResponseModelType.d.ts +1 -1
  337. package/dist/serialization/types/ProjectCreationMetaResponseModelType.js +1 -1
  338. package/dist/serialization/types/ProjectExtendedResponse.d.ts +1 -0
  339. package/dist/serialization/types/ProjectExtendedResponse.js +1 -0
  340. package/dist/serialization/types/ProjectResponse.d.ts +1 -0
  341. package/dist/serialization/types/ProjectResponse.js +1 -0
  342. package/dist/serialization/types/SeatType.d.ts +7 -0
  343. package/dist/serialization/{resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js → types/SeatType.js} +3 -22
  344. package/dist/serialization/types/SongMetadata.d.ts +2 -0
  345. package/dist/serialization/types/SongMetadata.js +2 -0
  346. package/dist/serialization/types/ToolSortBy.d.ts +7 -0
  347. package/{serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js → dist/serialization/types/ToolSortBy.js} +3 -22
  348. package/dist/serialization/types/ToolTypeFilter.d.ts +7 -0
  349. package/dist/serialization/types/ToolTypeFilter.js +39 -0
  350. package/dist/serialization/types/ToolsResponseModel.d.ts +2 -0
  351. package/dist/serialization/types/ToolsResponseModel.js +2 -0
  352. package/dist/serialization/types/index.d.ts +15 -0
  353. package/dist/serialization/types/index.js +15 -0
  354. package/dist/version.d.ts +1 -1
  355. package/dist/version.js +1 -1
  356. package/package.json +1 -1
  357. package/reference.md +982 -78
  358. package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/index.d.ts +1 -0
  359. package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/index.js +17 -0
  360. package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.d.ts +15 -0
  361. package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.js +47 -0
  362. package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.d.ts +9 -0
  363. package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.js +41 -0
  364. package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.d.ts +11 -0
  365. package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyUpdateAgentBranchV1ConvaiAgentsAgentIdBranchesBranchIdPatch.js +43 -0
  366. package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.d.ts +3 -0
  367. package/serialization/resources/conversationalAi/resources/agents/resources/branches/client/requests/index.js +9 -0
  368. package/serialization/resources/conversationalAi/resources/agents/resources/branches/index.d.ts +1 -0
  369. package/serialization/resources/conversationalAi/resources/agents/resources/branches/index.js +17 -0
  370. package/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/index.d.ts +1 -0
  371. package/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/index.js +17 -0
  372. package/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.d.ts +10 -0
  373. package/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/requests/BodyCreateOrUpdateDeploymentsV1ConvaiAgentsAgentIdDeploymentsPost.js +42 -0
  374. package/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.d.ts +1 -0
  375. package/serialization/resources/conversationalAi/resources/agents/resources/deployments/client/requests/index.js +5 -0
  376. package/serialization/resources/conversationalAi/resources/agents/resources/deployments/index.d.ts +1 -0
  377. package/serialization/resources/conversationalAi/resources/agents/resources/deployments/index.js +17 -0
  378. package/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/index.d.ts +1 -0
  379. package/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/index.js +17 -0
  380. package/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.d.ts +14 -0
  381. package/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost.js +46 -0
  382. package/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.d.ts +1 -0
  383. package/serialization/resources/conversationalAi/resources/agents/resources/drafts/client/requests/index.js +5 -0
  384. package/serialization/resources/conversationalAi/resources/agents/resources/drafts/index.d.ts +1 -0
  385. package/serialization/resources/conversationalAi/resources/agents/resources/drafts/index.js +17 -0
  386. package/serialization/resources/conversationalAi/resources/agents/resources/index.d.ts +6 -0
  387. package/serialization/resources/conversationalAi/resources/agents/resources/index.js +7 -1
  388. package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.d.ts +10 -0
  389. package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.js +42 -0
  390. package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.d.ts +10 -0
  391. package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.js +42 -0
  392. package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.d.ts +9 -0
  393. package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.js +41 -0
  394. package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +3 -0
  395. package/serialization/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.js +7 -1
  396. package/serialization/resources/workspace/resources/index.d.ts +0 -2
  397. package/serialization/resources/workspace/resources/index.js +0 -2
  398. package/serialization/resources/workspace/resources/invites/client/requests/InviteUserRequest.d.ts +3 -2
  399. package/serialization/resources/workspace/resources/invites/client/requests/InviteUserRequest.js +3 -2
  400. package/serialization/resources/workspace/resources/invites/index.d.ts +0 -1
  401. package/serialization/resources/workspace/resources/invites/index.js +0 -1
  402. package/serialization/resources/workspace/resources/members/client/requests/UpdateMemberRequest.d.ts +3 -2
  403. package/serialization/resources/workspace/resources/members/client/requests/UpdateMemberRequest.js +3 -2
  404. package/serialization/resources/workspace/resources/members/index.d.ts +0 -1
  405. package/serialization/resources/workspace/resources/members/index.js +0 -1
  406. package/serialization/resources/workspace/resources/resources/client/requests/index.d.ts +0 -1
  407. package/serialization/resources/workspace/resources/resources/client/requests/index.js +1 -3
  408. package/serialization/types/AgentBranchBasicInfo.d.ts +10 -0
  409. package/serialization/types/AgentBranchBasicInfo.js +42 -0
  410. package/serialization/types/AgentBranchResponse.d.ts +24 -0
  411. package/serialization/types/AgentBranchResponse.js +56 -0
  412. package/serialization/types/AgentBranchSummary.d.ts +21 -0
  413. package/serialization/types/AgentBranchSummary.js +53 -0
  414. package/serialization/types/AgentDeploymentPercentageStrategy.d.ts +10 -0
  415. package/serialization/types/AgentDeploymentPercentageStrategy.js +42 -0
  416. package/serialization/types/AgentDeploymentRequest.d.ts +10 -0
  417. package/serialization/types/AgentDeploymentRequest.js +42 -0
  418. package/serialization/types/AgentDeploymentRequestItem.d.ts +11 -0
  419. package/serialization/{resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js → types/AgentDeploymentRequestItem.js} +6 -6
  420. package/serialization/types/AgentDeploymentResponse.d.ts +9 -0
  421. package/serialization/types/AgentDeploymentResponse.js +41 -0
  422. package/serialization/types/AgentVersionMetadata.d.ts +18 -0
  423. package/serialization/types/AgentVersionMetadata.js +50 -0
  424. package/serialization/types/AgentVersionParents.d.ts +12 -0
  425. package/serialization/types/AgentVersionParents.js +44 -0
  426. package/serialization/types/BranchProtectionStatus.d.ts +7 -0
  427. package/serialization/types/BranchProtectionStatus.js +39 -0
  428. package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +1 -0
  429. package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +1 -0
  430. package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +1 -0
  431. package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.js +1 -0
  432. package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +1 -0
  433. package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.js +1 -0
  434. package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.d.ts +1 -0
  435. package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelInput.js +1 -0
  436. package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.d.ts +1 -0
  437. package/serialization/types/ConversationHistoryTranscriptWorkflowToolsResultCommonModelOutput.js +1 -0
  438. package/serialization/types/CreateAgentBranchResponseModel.d.ts +10 -0
  439. package/serialization/types/CreateAgentBranchResponseModel.js +42 -0
  440. package/serialization/types/DirectPublishingReadResponseModel.d.ts +1 -0
  441. package/serialization/types/DirectPublishingReadResponseModel.js +1 -0
  442. package/serialization/types/GetConversationResponseModel.d.ts +1 -0
  443. package/serialization/types/GetConversationResponseModel.js +1 -0
  444. package/serialization/types/ListResponseAgentBranchSummary.d.ts +12 -0
  445. package/serialization/types/ListResponseAgentBranchSummary.js +44 -0
  446. package/serialization/types/PermissionType.d.ts +1 -1
  447. package/serialization/types/PermissionType.js +1 -0
  448. package/serialization/types/ProjectCreationMetaResponseModelType.d.ts +1 -1
  449. package/serialization/types/ProjectCreationMetaResponseModelType.js +1 -1
  450. package/serialization/types/ProjectExtendedResponse.d.ts +1 -0
  451. package/serialization/types/ProjectExtendedResponse.js +1 -0
  452. package/serialization/types/ProjectResponse.d.ts +1 -0
  453. package/serialization/types/ProjectResponse.js +1 -0
  454. package/serialization/types/SeatType.d.ts +7 -0
  455. package/serialization/types/SeatType.js +39 -0
  456. package/serialization/types/SongMetadata.d.ts +2 -0
  457. package/serialization/types/SongMetadata.js +2 -0
  458. package/serialization/types/ToolSortBy.d.ts +7 -0
  459. package/serialization/types/ToolSortBy.js +39 -0
  460. package/serialization/types/ToolTypeFilter.d.ts +7 -0
  461. package/serialization/types/ToolTypeFilter.js +39 -0
  462. package/serialization/types/ToolsResponseModel.d.ts +2 -0
  463. package/serialization/types/ToolsResponseModel.js +2 -0
  464. package/serialization/types/index.d.ts +15 -0
  465. package/serialization/types/index.js +15 -0
  466. package/version.d.ts +1 -1
  467. package/version.js +1 -1
  468. package/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +0 -21
  469. package/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js +0 -24
  470. package/api/resources/workspace/resources/invites/types/index.d.ts +0 -1
  471. package/api/resources/workspace/resources/invites/types/index.js +0 -17
  472. package/api/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.d.ts +0 -5
  473. package/api/resources/workspace/resources/members/types/index.d.ts +0 -1
  474. package/api/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.d.ts +0 -14
  475. package/dist/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +0 -21
  476. package/dist/api/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.js +0 -24
  477. package/dist/api/resources/workspace/resources/invites/types/index.d.ts +0 -1
  478. package/dist/api/resources/workspace/resources/invites/types/index.js +0 -17
  479. package/dist/api/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.d.ts +0 -5
  480. package/dist/api/resources/workspace/resources/members/types/index.d.ts +0 -1
  481. package/dist/api/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.d.ts +0 -14
  482. package/dist/serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +0 -7
  483. package/dist/serialization/resources/workspace/resources/invites/types/index.d.ts +0 -1
  484. package/dist/serialization/resources/workspace/resources/invites/types/index.js +0 -17
  485. package/dist/serialization/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.d.ts +0 -7
  486. package/dist/serialization/resources/workspace/resources/members/types/index.d.ts +0 -1
  487. package/dist/serialization/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.d.ts +0 -11
  488. package/serialization/resources/workspace/resources/invites/types/BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission.d.ts +0 -7
  489. package/serialization/resources/workspace/resources/invites/types/index.d.ts +0 -1
  490. package/serialization/resources/workspace/resources/invites/types/index.js +0 -17
  491. package/serialization/resources/workspace/resources/members/types/BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole.d.ts +0 -7
  492. package/serialization/resources/workspace/resources/members/types/index.d.ts +0 -1
  493. package/serialization/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.d.ts +0 -11
  494. /package/api/resources/{workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js → conversationalAi/resources/agents/resources/branches/client/requests/BodyCreateANewBranchV1ConvaiAgentsAgentIdBranchesPost.js} +0 -0
  495. /package/{dist/api/resources/workspace/resources/resources/client/requests/BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost.js → api/resources/conversationalAi/resources/agents/resources/branches/client/requests/BodyMergeABranchIntoATargetBranchV1ConvaiAgentsAgentIdBranchesSourceBranchIdMergePost.js} +0 -0
@@ -62,6 +62,21 @@ export declare class DocumentsClient {
62
62
  */
63
63
  createFromText(request: ElevenLabs.conversationalAi.knowledgeBase.BodyCreateTextDocumentV1ConvaiKnowledgeBaseTextPost, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AddKnowledgeBaseResponseModel>;
64
64
  private __createFromText;
65
+ /**
66
+ * Create a folder used for grouping documents together.
67
+ *
68
+ * @param {ElevenLabs.conversationalAi.knowledgeBase.BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost} request
69
+ * @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
70
+ *
71
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
72
+ *
73
+ * @example
74
+ * await client.conversationalAi.knowledgeBase.documents.createFolder({
75
+ * name: "name"
76
+ * })
77
+ */
78
+ createFolder(request: ElevenLabs.conversationalAi.knowledgeBase.BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AddKnowledgeBaseResponseModel>;
79
+ private __createFolder;
65
80
  /**
66
81
  * Get details about a specific documentation making up the agent's knowledge base
67
82
  *
@@ -154,4 +169,33 @@ export declare class DocumentsClient {
154
169
  */
155
170
  getSourceFileUrl(documentation_id: string, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.KnowledgeBaseSourceFileUrlResponseModel>;
156
171
  private __getSourceFileUrl;
172
+ /**
173
+ * Moves the entity from one folder to another.
174
+ *
175
+ * @param {string} document_id - The id of a document from the knowledge base. This is returned on document addition.
176
+ * @param {ElevenLabs.conversationalAi.knowledgeBase.BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost} request
177
+ * @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
178
+ *
179
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
180
+ *
181
+ * @example
182
+ * await client.conversationalAi.knowledgeBase.documents.move("21m00Tcm4TlvDq8ikWAM")
183
+ */
184
+ move(document_id: string, request?: ElevenLabs.conversationalAi.knowledgeBase.BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<void>;
185
+ private __move;
186
+ /**
187
+ * Moves multiple entities from one folder to another.
188
+ *
189
+ * @param {ElevenLabs.conversationalAi.knowledgeBase.BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost} request
190
+ * @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
191
+ *
192
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
193
+ *
194
+ * @example
195
+ * await client.conversationalAi.knowledgeBase.documents.bulkMove({
196
+ * documentIds: ["21m00Tcm4TlvDq8ikWAM", "31m00Tcm4TlvDq8ikWBM"]
197
+ * })
198
+ */
199
+ bulkMove(request: ElevenLabs.conversationalAi.knowledgeBase.BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost, requestOptions?: DocumentsClient.RequestOptions): core.HttpResponsePromise<void>;
200
+ private __bulkMove;
157
201
  }
@@ -271,6 +271,71 @@ class DocumentsClient {
271
271
  return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/knowledge-base/text");
272
272
  });
273
273
  }
274
+ /**
275
+ * Create a folder used for grouping documents together.
276
+ *
277
+ * @param {ElevenLabs.conversationalAi.knowledgeBase.BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost} request
278
+ * @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
279
+ *
280
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
281
+ *
282
+ * @example
283
+ * await client.conversationalAi.knowledgeBase.documents.createFolder({
284
+ * name: "name"
285
+ * })
286
+ */
287
+ createFolder(request, requestOptions) {
288
+ return core.HttpResponsePromise.fromPromise(this.__createFolder(request, requestOptions));
289
+ }
290
+ __createFolder(request, requestOptions) {
291
+ return __awaiter(this, void 0, void 0, function* () {
292
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
293
+ const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
294
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
295
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/convai/knowledge-base/folder"),
296
+ method: "POST",
297
+ headers: _headers,
298
+ contentType: "application/json",
299
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
300
+ requestType: "json",
301
+ body: serializers.conversationalAi.knowledgeBase.BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
302
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
303
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
304
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
305
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
306
+ logging: this._options.logging,
307
+ });
308
+ if (_response.ok) {
309
+ return {
310
+ data: serializers.AddKnowledgeBaseResponseModel.parseOrThrow(_response.body, {
311
+ unrecognizedObjectKeys: "passthrough",
312
+ allowUnrecognizedUnionMembers: true,
313
+ allowUnrecognizedEnumValues: true,
314
+ breadcrumbsPrefix: ["response"],
315
+ }),
316
+ rawResponse: _response.rawResponse,
317
+ };
318
+ }
319
+ if (_response.error.reason === "status-code") {
320
+ switch (_response.error.statusCode) {
321
+ case 422:
322
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
323
+ unrecognizedObjectKeys: "passthrough",
324
+ allowUnrecognizedUnionMembers: true,
325
+ allowUnrecognizedEnumValues: true,
326
+ breadcrumbsPrefix: ["response"],
327
+ }), _response.rawResponse);
328
+ default:
329
+ throw new errors.ElevenLabsError({
330
+ statusCode: _response.error.statusCode,
331
+ body: _response.error.body,
332
+ rawResponse: _response.rawResponse,
333
+ });
334
+ }
335
+ }
336
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/knowledge-base/folder");
337
+ });
338
+ }
274
339
  /**
275
340
  * Get details about a specific documentation making up the agent's knowledge base
276
341
  *
@@ -655,5 +720,118 @@ class DocumentsClient {
655
720
  return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/knowledge-base/{documentation_id}/source-file-url");
656
721
  });
657
722
  }
723
+ /**
724
+ * Moves the entity from one folder to another.
725
+ *
726
+ * @param {string} document_id - The id of a document from the knowledge base. This is returned on document addition.
727
+ * @param {ElevenLabs.conversationalAi.knowledgeBase.BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost} request
728
+ * @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
729
+ *
730
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
731
+ *
732
+ * @example
733
+ * await client.conversationalAi.knowledgeBase.documents.move("21m00Tcm4TlvDq8ikWAM")
734
+ */
735
+ move(document_id, request = {}, requestOptions) {
736
+ return core.HttpResponsePromise.fromPromise(this.__move(document_id, request, requestOptions));
737
+ }
738
+ __move(document_id_1) {
739
+ return __awaiter(this, arguments, void 0, function* (document_id, request = {}, requestOptions) {
740
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
741
+ const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
742
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
743
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, `v1/convai/knowledge-base/${core.url.encodePathParam(document_id)}/move`),
744
+ method: "POST",
745
+ headers: _headers,
746
+ contentType: "application/json",
747
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
748
+ requestType: "json",
749
+ body: serializers.conversationalAi.knowledgeBase.BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
750
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
751
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
752
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
753
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
754
+ logging: this._options.logging,
755
+ });
756
+ if (_response.ok) {
757
+ return { data: undefined, rawResponse: _response.rawResponse };
758
+ }
759
+ if (_response.error.reason === "status-code") {
760
+ switch (_response.error.statusCode) {
761
+ case 422:
762
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
763
+ unrecognizedObjectKeys: "passthrough",
764
+ allowUnrecognizedUnionMembers: true,
765
+ allowUnrecognizedEnumValues: true,
766
+ breadcrumbsPrefix: ["response"],
767
+ }), _response.rawResponse);
768
+ default:
769
+ throw new errors.ElevenLabsError({
770
+ statusCode: _response.error.statusCode,
771
+ body: _response.error.body,
772
+ rawResponse: _response.rawResponse,
773
+ });
774
+ }
775
+ }
776
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/knowledge-base/{document_id}/move");
777
+ });
778
+ }
779
+ /**
780
+ * Moves multiple entities from one folder to another.
781
+ *
782
+ * @param {ElevenLabs.conversationalAi.knowledgeBase.BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost} request
783
+ * @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
784
+ *
785
+ * @throws {@link ElevenLabs.UnprocessableEntityError}
786
+ *
787
+ * @example
788
+ * await client.conversationalAi.knowledgeBase.documents.bulkMove({
789
+ * documentIds: ["21m00Tcm4TlvDq8ikWAM", "31m00Tcm4TlvDq8ikWBM"]
790
+ * })
791
+ */
792
+ bulkMove(request, requestOptions) {
793
+ return core.HttpResponsePromise.fromPromise(this.__bulkMove(request, requestOptions));
794
+ }
795
+ __bulkMove(request, requestOptions) {
796
+ return __awaiter(this, void 0, void 0, function* () {
797
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
798
+ const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
799
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
800
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/convai/knowledge-base/bulk-move"),
801
+ method: "POST",
802
+ headers: _headers,
803
+ contentType: "application/json",
804
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
805
+ requestType: "json",
806
+ body: serializers.conversationalAi.knowledgeBase.BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
807
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
808
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
809
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
810
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
811
+ logging: this._options.logging,
812
+ });
813
+ if (_response.ok) {
814
+ return { data: undefined, rawResponse: _response.rawResponse };
815
+ }
816
+ if (_response.error.reason === "status-code") {
817
+ switch (_response.error.statusCode) {
818
+ case 422:
819
+ throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
820
+ unrecognizedObjectKeys: "passthrough",
821
+ allowUnrecognizedUnionMembers: true,
822
+ allowUnrecognizedEnumValues: true,
823
+ breadcrumbsPrefix: ["response"],
824
+ }), _response.rawResponse);
825
+ default:
826
+ throw new errors.ElevenLabsError({
827
+ statusCode: _response.error.statusCode,
828
+ body: _response.error.body,
829
+ rawResponse: _response.rawResponse,
830
+ });
831
+ }
832
+ }
833
+ return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/knowledge-base/bulk-move");
834
+ });
835
+ }
658
836
  }
659
837
  exports.DocumentsClient = DocumentsClient;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * documentIds: ["21m00Tcm4TlvDq8ikWAM", "31m00Tcm4TlvDq8ikWBM"]
5
+ * }
6
+ */
7
+ export interface BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost {
8
+ /** The ids of documents or folders from the knowledge base. */
9
+ documentIds: string[];
10
+ /** The folder to move the entities to. If not set, the entities will be moved to the root folder. */
11
+ moveTo?: string;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * name: "name"
5
+ * }
6
+ */
7
+ export interface BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost {
8
+ /** A custom, human-readable name for the document. */
9
+ name: string;
10
+ /** If set, the created document or folder will be placed inside the given folder. */
11
+ parentFolderId?: string;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost {
6
+ /** The folder to move the entities to. If not set, the entities will be moved to the root folder. */
7
+ moveTo?: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,9 @@
1
+ export type { BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost } from "./BodyBulkMoveEntitiesToFolderV1ConvaiKnowledgeBaseBulkMovePost";
1
2
  export type { BodyCreateFileDocumentV1ConvaiKnowledgeBaseFilePost } from "./BodyCreateFileDocumentV1ConvaiKnowledgeBaseFilePost";
3
+ export type { BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost } from "./BodyCreateFolderV1ConvaiKnowledgeBaseFolderPost";
2
4
  export type { BodyCreateTextDocumentV1ConvaiKnowledgeBaseTextPost } from "./BodyCreateTextDocumentV1ConvaiKnowledgeBaseTextPost";
3
5
  export type { BodyCreateUrlDocumentV1ConvaiKnowledgeBaseUrlPost } from "./BodyCreateUrlDocumentV1ConvaiKnowledgeBaseUrlPost";
6
+ export type { BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost } from "./BodyMoveEntityToFolderV1ConvaiKnowledgeBaseDocumentIdMovePost";
4
7
  export type { BodyUpdateDocumentV1ConvaiKnowledgeBaseDocumentationIdPatch } from "./BodyUpdateDocumentV1ConvaiKnowledgeBaseDocumentationIdPatch";
5
8
  export type { DocumentsDeleteRequest } from "./DocumentsDeleteRequest";
6
9
  export type { DocumentsGetAgentsRequest } from "./DocumentsGetAgentsRequest";
@@ -13,14 +13,22 @@ export declare class ToolsClient {
13
13
  /**
14
14
  * Get all available tools in the workspace.
15
15
  *
16
+ * @param {ElevenLabs.conversationalAi.ToolsListRequest} request
16
17
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
17
18
  *
18
19
  * @throws {@link ElevenLabs.UnprocessableEntityError}
19
20
  *
20
21
  * @example
21
- * await client.conversationalAi.tools.list()
22
+ * await client.conversationalAi.tools.list({
23
+ * search: "search",
24
+ * pageSize: 1,
25
+ * showOnlyOwnedDocuments: true,
26
+ * sortDirection: "asc",
27
+ * sortBy: "name",
28
+ * cursor: "cursor"
29
+ * })
22
30
  */
23
- list(requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ToolsResponseModel>;
31
+ list(request?: ElevenLabs.conversationalAi.ToolsListRequest, requestOptions?: ToolsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ToolsResponseModel>;
24
32
  private __list;
25
33
  /**
26
34
  * Add a new tool to the available tools in the workspace.
@@ -59,25 +59,63 @@ class ToolsClient {
59
59
  /**
60
60
  * Get all available tools in the workspace.
61
61
  *
62
+ * @param {ElevenLabs.conversationalAi.ToolsListRequest} request
62
63
  * @param {ToolsClient.RequestOptions} requestOptions - Request-specific configuration.
63
64
  *
64
65
  * @throws {@link ElevenLabs.UnprocessableEntityError}
65
66
  *
66
67
  * @example
67
- * await client.conversationalAi.tools.list()
68
+ * await client.conversationalAi.tools.list({
69
+ * search: "search",
70
+ * pageSize: 1,
71
+ * showOnlyOwnedDocuments: true,
72
+ * sortDirection: "asc",
73
+ * sortBy: "name",
74
+ * cursor: "cursor"
75
+ * })
68
76
  */
69
- list(requestOptions) {
70
- return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
77
+ list(request = {}, requestOptions) {
78
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
71
79
  }
72
- __list(requestOptions) {
73
- return __awaiter(this, void 0, void 0, function* () {
80
+ __list() {
81
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
74
82
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
83
+ const { search, pageSize, showOnlyOwnedDocuments, types, sortDirection, sortBy, cursor } = request;
84
+ const _queryParams = {};
85
+ if (search != null) {
86
+ _queryParams.search = search;
87
+ }
88
+ if (pageSize != null) {
89
+ _queryParams.page_size = pageSize.toString();
90
+ }
91
+ if (showOnlyOwnedDocuments != null) {
92
+ _queryParams.show_only_owned_documents = showOnlyOwnedDocuments.toString();
93
+ }
94
+ if (types != null) {
95
+ if (Array.isArray(types)) {
96
+ _queryParams.types = types.map((item) => serializers.ToolTypeFilter.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
97
+ }
98
+ else {
99
+ _queryParams.types = serializers.ToolTypeFilter.jsonOrThrow(types, { unrecognizedObjectKeys: "strip" });
100
+ }
101
+ }
102
+ if (sortDirection != null) {
103
+ _queryParams.sort_direction = serializers.SortDirection.jsonOrThrow(sortDirection, {
104
+ unrecognizedObjectKeys: "strip",
105
+ });
106
+ }
107
+ if (sortBy != null) {
108
+ _queryParams.sort_by = serializers.ToolSortBy.jsonOrThrow(sortBy, { unrecognizedObjectKeys: "strip" });
109
+ }
110
+ if (cursor != null) {
111
+ _queryParams.cursor = cursor;
112
+ }
75
113
  const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
76
114
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
77
115
  url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/convai/tools"),
78
116
  method: "GET",
79
117
  headers: _headers,
80
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
118
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
81
119
  timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
82
120
  maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
83
121
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -0,0 +1,28 @@
1
+ import type * as ElevenLabs from "../../../../../../index";
2
+ /**
3
+ * @example
4
+ * {
5
+ * search: "search",
6
+ * pageSize: 1,
7
+ * showOnlyOwnedDocuments: true,
8
+ * sortDirection: "asc",
9
+ * sortBy: "name",
10
+ * cursor: "cursor"
11
+ * }
12
+ */
13
+ export interface ToolsListRequest {
14
+ /** If specified, the endpoint returns only tools whose names start with this string. */
15
+ search?: string;
16
+ /** How many documents to return at maximum. Can not exceed 100, defaults to 30. */
17
+ pageSize?: number;
18
+ /** If set to true, the endpoint will return only tools owned by you (and not shared from somebody else). */
19
+ showOnlyOwnedDocuments?: boolean;
20
+ /** If present, the endpoint will return only tools of the given types. */
21
+ types?: ElevenLabs.ToolTypeFilter | ElevenLabs.ToolTypeFilter[];
22
+ /** The direction to sort the results */
23
+ sortDirection?: ElevenLabs.SortDirection;
24
+ /** The field to sort the results by */
25
+ sortBy?: ElevenLabs.ToolSortBy;
26
+ /** Used for fetching next page. Cursor is returned in the response. */
27
+ cursor?: string;
28
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export type { ToolsGetDependentAgentsRequest } from "./ToolsGetDependentAgentsRequest";
2
+ export type { ToolsListRequest } from "./ToolsListRequest";
@@ -11,7 +11,7 @@ export declare class RulesClient {
11
11
  protected readonly _options: NormalizedClientOptions<RulesClient.Options>;
12
12
  constructor(options?: RulesClient.Options);
13
13
  /**
14
- * Add rules to the pronunciation dictionary
14
+ * Add rules to the pronunciation dictionary. If a rule with the same string_to_replace already exists, it will be replaced.
15
15
  *
16
16
  * @param {string} pronunciation_dictionary_id - The id of the pronunciation dictionary
17
17
  * @param {ElevenLabs.pronunciationDictionaries.PronunciationDictionary} request
@@ -57,7 +57,7 @@ class RulesClient {
57
57
  this._options = (0, BaseClient_1.normalizeClientOptions)(options);
58
58
  }
59
59
  /**
60
- * Add rules to the pronunciation dictionary
60
+ * Add rules to the pronunciation dictionary. If a rule with the same string_to_replace already exists, it will be replaced.
61
61
  *
62
62
  * @param {string} pronunciation_dictionary_id - The id of the pronunciation dictionary
63
63
  * @param {ElevenLabs.pronunciationDictionaries.PronunciationDictionary} request
@@ -252,6 +252,9 @@ class ProjectsClient {
252
252
  _request.append("voice_settings", _item);
253
253
  }
254
254
  }
255
+ if (request.createPublishingRead != null) {
256
+ _request.append("create_publishing_read", request.createPublishingRead.toString());
257
+ }
255
258
  const _maybeEncodedRequest = yield _request.getRequest();
256
259
  const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)(Object.assign({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
257
260
  const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
@@ -142,4 +142,6 @@ export interface BodyCreateStudioProjectV1StudioProjectsPost {
142
142
  *
143
143
  */
144
144
  voiceSettings?: string[];
145
+ /** If true, creates a corresponding read for direct publishing in draft state */
146
+ createPublishingRead?: boolean;
145
147
  }
@@ -35,6 +35,6 @@ export interface VoiceDesignRequestModel {
35
35
  quality?: number;
36
36
  /** Reference audio to use for the voice generation. The audio should be base64 encoded. Only supported when using the eleven_ttv_v3 model. */
37
37
  referenceAudioBase64?: string;
38
- /** Controls the balance of prompt versus reference audio when generating voice samples. 0 means almost no prompt influence, 1 means almost no reference audio influence. Only supported when using the eleven_ttv_v3 model and providing reference audio. */
38
+ /** Controls the balance of prompt versus reference audio when generating voice samples. 0 means almost no prompt influence, 1 means almost no reference audio influence. Only supported when using the eleven_ttv_v3 model. */
39
39
  promptStrength?: number;
40
40
  }
@@ -27,6 +27,6 @@ export interface VoiceRemixRequestModel {
27
27
  remixingSessionId?: string;
28
28
  /** The id of the remixing session iteration where these generations should be attached to. If not provided, a new iteration will be created. */
29
29
  remixingSessionIterationId?: string;
30
- /** Controls the balance of prompt versus reference audio when generating voice samples. 0 means almost no prompt influence, 1 means almost no reference audio influence. Only supported when using the eleven_ttv_v3 model and providing reference audio. */
30
+ /** Controls the balance of prompt versus reference audio when generating voice samples. 0 means almost no prompt influence, 1 means almost no reference audio influence. Only supported when using the eleven_ttv_v3 model. */
31
31
  promptStrength?: number;
32
32
  }
@@ -2,10 +2,8 @@ export * as groups from "./groups";
2
2
  export * from "./groups/client/requests";
3
3
  export * as invites from "./invites";
4
4
  export * from "./invites/client/requests";
5
- export * from "./invites/types";
6
5
  export * as members from "./members";
7
6
  export * from "./members/client/requests";
8
- export * from "./members/types";
9
7
  export * as resources from "./resources";
10
8
  export * from "./resources/client/requests";
11
9
  export * from "./resources/types";
@@ -41,10 +41,8 @@ exports.groups = __importStar(require("./groups"));
41
41
  __exportStar(require("./groups/client/requests"), exports);
42
42
  exports.invites = __importStar(require("./invites"));
43
43
  __exportStar(require("./invites/client/requests"), exports);
44
- __exportStar(require("./invites/types"), exports);
45
44
  exports.members = __importStar(require("./members"));
46
45
  __exportStar(require("./members/client/requests"), exports);
47
- __exportStar(require("./members/types"), exports);
48
46
  exports.resources = __importStar(require("./resources"));
49
47
  __exportStar(require("./resources/client/requests"), exports);
50
48
  __exportStar(require("./resources/types"), exports);
@@ -8,8 +8,10 @@ import type * as ElevenLabs from "../../../../../../index";
8
8
  export interface InviteUserRequest {
9
9
  /** The email of the customer */
10
10
  email: string;
11
+ /** The workspace permission of the user. This is deprecated, use `seat_type` instead. */
12
+ workspacePermission?: string;
13
+ /** The seat type of the user */
14
+ seatType?: ElevenLabs.SeatType;
11
15
  /** The group ids of the user */
12
16
  groupIds?: string[];
13
- /** The workspace permission of the user */
14
- workspacePermission?: ElevenLabs.workspace.BodyInviteUserV1WorkspaceInvitesAddPostWorkspacePermission;
15
17
  }
@@ -1,2 +1 @@
1
1
  export * from "./client";
2
- export * from "./types";
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client"), exports);
18
- __exportStar(require("./types"), exports);
@@ -10,6 +10,8 @@ export interface UpdateMemberRequest {
10
10
  email: string;
11
11
  /** Whether to lock or unlock the user account. */
12
12
  isLocked?: boolean;
13
- /** Role dictating permissions in the workspace. */
14
- workspaceRole?: ElevenLabs.workspace.BodyUpdateMemberV1WorkspaceMembersPostWorkspaceRole;
13
+ /** The workspace role of the user. This is deprecated, use `workspace_seat_type` instead. */
14
+ workspaceRole?: ElevenLabs.SeatType;
15
+ /** The workspace seat type */
16
+ workspaceSeatType?: ElevenLabs.SeatType;
15
17
  }
@@ -1,2 +1 @@
1
1
  export * from "./client";
2
- export * from "./types";
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client"), exports);
18
- __exportStar(require("./types"), exports);
@@ -59,21 +59,4 @@ export declare class ResourcesClient {
59
59
  */
60
60
  unshare(resource_id: string, request: ElevenLabs.workspace.BodyUnshareWorkspaceResourceV1WorkspaceResourcesResourceIdUnsharePost, requestOptions?: ResourcesClient.RequestOptions): core.HttpResponsePromise<unknown>;
61
61
  private __unshare;
62
- /**
63
- * Copies a workspace resource to another workspace.
64
- *
65
- * @param {string} resource_id - The ID of the target resource.
66
- * @param {ElevenLabs.workspace.BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost} request
67
- * @param {ResourcesClient.RequestOptions} requestOptions - Request-specific configuration.
68
- *
69
- * @throws {@link ElevenLabs.UnprocessableEntityError}
70
- *
71
- * @example
72
- * await client.workspace.resources.copyToWorkspace("resource_id", {
73
- * resourceType: "voice",
74
- * targetUserId: "target_user_id"
75
- * })
76
- */
77
- copyToWorkspace(resource_id: string, request: ElevenLabs.workspace.BodyCopyWorkspaceResourceToAnotherWorkspaceV1WorkspaceResourcesResourceIdCopyToWorkspacePost, requestOptions?: ResourcesClient.RequestOptions): core.HttpResponsePromise<unknown>;
78
- private __copyToWorkspace;
79
62
  }