@sync.so/sdk 0.2.6 → 0.4.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 (812) hide show
  1. package/Client.d.ts +34 -1
  2. package/Client.js +59 -4
  3. package/api/resources/account/client/Client.d.ts +45 -0
  4. package/api/resources/account/client/Client.js +130 -0
  5. package/api/resources/account/client/index.d.ts +1 -0
  6. package/api/resources/account/client/index.js +2 -0
  7. package/api/resources/account/index.d.ts +2 -0
  8. package/api/resources/account/index.js +18 -0
  9. package/api/resources/account/types/AccountActiveJobs.d.ts +9 -0
  10. package/api/resources/account/types/AccountActiveJobs.js +5 -0
  11. package/api/resources/account/types/AccountAllowanceUsage.d.ts +11 -0
  12. package/api/resources/account/types/AccountAllowanceUsage.js +5 -0
  13. package/api/resources/account/types/AccountBillingModel.d.ts +10 -0
  14. package/api/resources/account/types/AccountBillingModel.js +12 -0
  15. package/api/resources/account/types/AccountBillingPeriod.d.ts +7 -0
  16. package/api/resources/account/types/AccountBillingPeriod.js +5 -0
  17. package/api/resources/account/types/AccountCredentialType.d.ts +9 -0
  18. package/api/resources/account/types/AccountCredentialType.js +11 -0
  19. package/api/resources/account/types/AccountCredits.d.ts +11 -0
  20. package/api/resources/account/types/AccountCredits.js +5 -0
  21. package/api/resources/account/types/AccountFreeAllowance.d.ts +12 -0
  22. package/api/resources/account/types/AccountFreeAllowance.js +5 -0
  23. package/api/resources/account/types/AccountLimits.d.ts +13 -0
  24. package/api/resources/account/types/AccountLimits.js +5 -0
  25. package/api/resources/account/types/AccountOrganization.d.ts +9 -0
  26. package/api/resources/account/types/AccountOrganization.js +5 -0
  27. package/api/resources/account/types/AccountOverview.d.ts +31 -0
  28. package/api/resources/account/types/AccountOverview.js +5 -0
  29. package/api/resources/account/types/AccountPlan.d.ts +9 -0
  30. package/api/resources/account/types/AccountPlan.js +5 -0
  31. package/api/resources/account/types/AccountUser.d.ts +8 -0
  32. package/api/resources/account/types/AccountUser.js +5 -0
  33. package/api/resources/account/types/index.d.ts +12 -0
  34. package/api/resources/account/types/index.js +28 -0
  35. package/api/resources/assets/client/Client.d.ts +143 -0
  36. package/api/resources/assets/client/Client.js +515 -0
  37. package/api/resources/assets/client/index.d.ts +1 -0
  38. package/api/resources/assets/client/index.js +17 -0
  39. package/api/resources/assets/client/requests/ListAssetsRequest.d.ts +37 -0
  40. package/api/resources/assets/client/requests/ListAssetsRequest.js +5 -0
  41. package/api/resources/assets/client/requests/index.d.ts +1 -0
  42. package/api/resources/assets/client/requests/index.js +2 -0
  43. package/api/resources/assets/index.d.ts +1 -0
  44. package/api/resources/assets/index.js +17 -0
  45. package/api/resources/batch/client/Client.d.ts +283 -2
  46. package/api/resources/batch/client/Client.js +342 -4
  47. package/api/resources/batch/client/requests/CreateBatchFromRowsRequest.d.ts +279 -0
  48. package/api/resources/batch/client/requests/CreateBatchFromRowsRequest.js +5 -0
  49. package/api/resources/batch/client/requests/CreateBatchRequest.d.ts +2 -2
  50. package/api/resources/batch/client/requests/index.d.ts +1 -0
  51. package/api/resources/common/errors/ConflictError.d.ts +9 -0
  52. package/api/resources/common/errors/ConflictError.js +52 -0
  53. package/api/resources/common/errors/ForbiddenError.d.ts +9 -0
  54. package/api/resources/common/errors/ForbiddenError.js +52 -0
  55. package/api/resources/common/errors/GatewayTimeoutError.d.ts +9 -0
  56. package/api/resources/common/errors/GatewayTimeoutError.js +52 -0
  57. package/api/resources/common/errors/GenerationDeletedError.d.ts +9 -0
  58. package/api/resources/common/errors/GenerationDeletedError.js +52 -0
  59. package/api/resources/common/errors/GenerationTooManyRequestsError.d.ts +9 -0
  60. package/api/resources/common/errors/GenerationTooManyRequestsError.js +52 -0
  61. package/api/resources/common/errors/PayloadTooLargeError.d.ts +9 -0
  62. package/api/resources/common/errors/PayloadTooLargeError.js +52 -0
  63. package/api/resources/common/errors/ServiceUnavailableError.d.ts +9 -0
  64. package/api/resources/common/errors/ServiceUnavailableError.js +52 -0
  65. package/api/resources/common/errors/TooManyRequestsError.d.ts +1 -1
  66. package/api/resources/common/errors/UnprocessableEntityError.d.ts +9 -0
  67. package/api/resources/common/errors/UnprocessableEntityError.js +52 -0
  68. package/api/resources/common/errors/VoiceCloneTooManyRequestsError.d.ts +9 -0
  69. package/api/resources/common/errors/VoiceCloneTooManyRequestsError.js +52 -0
  70. package/api/resources/common/errors/index.d.ts +9 -0
  71. package/api/resources/common/errors/index.js +9 -0
  72. package/api/resources/common/types/ActiveSpeaker.d.ts +12 -0
  73. package/api/resources/common/types/Asset.d.ts +40 -0
  74. package/api/resources/common/types/Asset.js +5 -0
  75. package/api/resources/common/types/AssetId.d.ts +7 -0
  76. package/api/resources/common/types/AssetId.js +5 -0
  77. package/api/resources/common/types/AssetInputType.d.ts +22 -0
  78. package/api/resources/common/types/AssetInputType.js +21 -0
  79. package/api/resources/common/types/AssetSort.d.ts +19 -0
  80. package/api/resources/common/types/AssetSort.js +18 -0
  81. package/api/resources/common/types/AssetType.d.ts +12 -0
  82. package/api/resources/common/types/AssetType.js +11 -0
  83. package/api/resources/common/types/AssetUploadResponse.d.ts +14 -0
  84. package/api/resources/common/types/AssetUploadResponse.js +5 -0
  85. package/api/resources/common/types/AssetVisibility.d.ts +17 -0
  86. package/api/resources/common/types/AssetVisibility.js +10 -0
  87. package/api/resources/common/types/AttachProjectAssetRequest.d.ts +11 -0
  88. package/api/resources/common/types/AttachProjectAssetRequest.js +5 -0
  89. package/api/resources/common/types/Audio.d.ts +5 -2
  90. package/api/resources/common/types/BatchConcurrencyError.d.ts +23 -0
  91. package/api/resources/common/types/BatchConcurrencyError.js +5 -0
  92. package/api/resources/common/types/BatchResponse.d.ts +2 -2
  93. package/api/resources/common/types/BatchRow.d.ts +15 -0
  94. package/api/resources/common/types/BatchRow.js +5 -0
  95. package/api/resources/common/types/BlendingMode.d.ts +9 -0
  96. package/api/resources/common/types/BlendingMode.js +11 -0
  97. package/api/resources/common/types/ClonedVoiceResponse.d.ts +14 -0
  98. package/api/resources/common/types/ClonedVoiceResponse.js +5 -0
  99. package/api/resources/common/types/CreateAssetRequest.d.ts +33 -0
  100. package/api/resources/common/types/CreateAssetRequest.js +5 -0
  101. package/api/resources/common/types/CreateAssetUploadRequest.d.ts +14 -0
  102. package/api/resources/common/types/CreateAssetUploadRequest.js +5 -0
  103. package/api/resources/common/types/CreateDialogueEditDto.d.ts +27 -0
  104. package/api/resources/common/types/CreateDialogueEditDto.js +5 -0
  105. package/api/resources/common/types/CreateGenerationDto.d.ts +11 -3
  106. package/api/resources/common/types/CreateProjectRequest.d.ts +21 -0
  107. package/api/resources/common/types/CreateProjectRequest.js +5 -0
  108. package/api/resources/common/types/CreateTranscriptionDto.d.ts +21 -0
  109. package/api/resources/common/types/CreateTranscriptionDto.js +5 -0
  110. package/api/resources/common/types/CreateTtsRequest.d.ts +19 -0
  111. package/api/resources/common/types/CreateTtsRequest.js +5 -0
  112. package/api/resources/common/types/CreateVoiceRequest.d.ts +19 -0
  113. package/api/resources/common/types/CreateVoiceRequest.js +5 -0
  114. package/api/resources/common/types/CreatorWorkflow.d.ts +37 -0
  115. package/api/resources/common/types/CreatorWorkflow.js +15 -0
  116. package/api/resources/common/types/DeleteAssetResponse.d.ts +11 -0
  117. package/api/resources/common/types/DeleteAssetResponse.js +5 -0
  118. package/api/resources/common/types/DeleteProjectResponse.d.ts +11 -0
  119. package/api/resources/common/types/DeleteProjectResponse.js +5 -0
  120. package/api/resources/common/types/DialogueEditChange.d.ts +14 -0
  121. package/api/resources/common/types/DialogueEditChange.js +5 -0
  122. package/api/resources/common/types/DialogueEditError.d.ts +15 -0
  123. package/api/resources/common/types/DialogueEditError.js +5 -0
  124. package/api/resources/common/types/DialogueEditErrorCode.d.ts +18 -0
  125. package/api/resources/common/types/DialogueEditErrorCode.js +17 -0
  126. package/api/resources/common/types/DialogueEditFailedSlot.d.ts +9 -0
  127. package/api/resources/common/types/DialogueEditFailedSlot.js +5 -0
  128. package/api/resources/common/types/DialogueEditJob.d.ts +49 -0
  129. package/api/resources/common/types/DialogueEditJob.js +5 -0
  130. package/api/resources/common/types/DialogueEditJobId.d.ts +7 -0
  131. package/api/resources/common/types/DialogueEditJobId.js +5 -0
  132. package/api/resources/common/types/DialogueEditJobStatus.d.ts +14 -0
  133. package/api/resources/common/types/DialogueEditJobStatus.js +13 -0
  134. package/api/resources/common/types/DialogueEditOperation.d.ts +16 -0
  135. package/api/resources/common/types/DialogueEditOperation.js +5 -0
  136. package/api/resources/common/types/DialogueEditPartialDetail.d.ts +17 -0
  137. package/api/resources/common/types/DialogueEditPartialDetail.js +5 -0
  138. package/api/resources/common/types/DialogueEditReference.d.ts +11 -0
  139. package/api/resources/common/types/DialogueEditReference.js +5 -0
  140. package/api/resources/common/types/DialogueEditRemoval.d.ts +10 -0
  141. package/api/resources/common/types/DialogueEditRemoval.js +5 -0
  142. package/api/resources/common/types/DialogueEditResultSlot.d.ts +19 -0
  143. package/api/resources/common/types/DialogueEditResultSlot.js +5 -0
  144. package/api/resources/common/types/DialogueEditResultSlotKind.d.ts +12 -0
  145. package/api/resources/common/types/DialogueEditResultSlotKind.js +11 -0
  146. package/api/resources/common/types/DialogueEditRetimeFailureSection.d.ts +14 -0
  147. package/api/resources/common/types/DialogueEditRetimeFailureSection.js +5 -0
  148. package/api/resources/common/types/DubDto.d.ts +17 -0
  149. package/api/resources/common/types/DubDto.js +5 -0
  150. package/api/resources/common/types/DubLanguage.d.ts +105 -0
  151. package/api/resources/common/types/DubLanguage.js +101 -0
  152. package/api/resources/common/types/DubProviderName.d.ts +10 -0
  153. package/api/resources/common/types/DubProviderName.js +9 -0
  154. package/api/resources/common/types/DubSourceLanguage.d.ts +106 -0
  155. package/api/resources/common/types/DubSourceLanguage.js +102 -0
  156. package/api/resources/common/types/ElevenLabs.d.ts +5 -1
  157. package/api/resources/common/types/ErrorCatalogEntry.d.ts +14 -0
  158. package/api/resources/common/types/ErrorCatalogEntry.js +5 -0
  159. package/api/resources/common/types/EstimateBreakdown.d.ts +13 -0
  160. package/api/resources/common/types/EstimateBreakdown.js +5 -0
  161. package/api/resources/common/types/EstimateCostRequest.d.ts +16 -0
  162. package/api/resources/common/types/EstimateCostRequest.js +5 -0
  163. package/api/resources/common/types/EstimateDubbingBilling.d.ts +10 -0
  164. package/api/resources/common/types/EstimateDubbingBilling.js +12 -0
  165. package/api/resources/common/types/EstimateDubbingPart.d.ts +12 -0
  166. package/api/resources/common/types/EstimateDubbingPart.js +5 -0
  167. package/api/resources/common/types/EstimateDurationCheck.d.ts +22 -0
  168. package/api/resources/common/types/EstimateDurationCheck.js +5 -0
  169. package/api/resources/common/types/EstimateLipsyncPart.d.ts +9 -0
  170. package/api/resources/common/types/EstimateLipsyncPart.js +5 -0
  171. package/api/resources/common/types/EstimateWorkflow.d.ts +11 -0
  172. package/api/resources/common/types/EstimateWorkflow.js +10 -0
  173. package/api/resources/common/types/EstimatedGenerationCost.d.ts +7 -0
  174. package/api/resources/common/types/Generation.d.ts +12 -2
  175. package/api/resources/common/types/GenerationConcurrencyError.d.ts +21 -0
  176. package/api/resources/common/types/GenerationConcurrencyError.js +5 -0
  177. package/api/resources/common/types/GenerationError.d.ts +16 -0
  178. package/api/resources/common/types/GenerationEstimate.d.ts +39 -0
  179. package/api/resources/common/types/GenerationEstimate.js +5 -0
  180. package/api/resources/common/types/GenerationEstimateConfidence.d.ts +12 -0
  181. package/api/resources/common/types/GenerationEstimateConfidence.js +11 -0
  182. package/api/resources/common/types/GenerationEstimateResolutionSource.d.ts +12 -0
  183. package/api/resources/common/types/GenerationEstimateResolutionSource.js +11 -0
  184. package/api/resources/common/types/GenerationEstimateScope.d.ts +11 -0
  185. package/api/resources/common/types/GenerationEstimateScope.js +10 -0
  186. package/api/resources/common/types/GenerationEstimateSource.d.ts +15 -0
  187. package/api/resources/common/types/GenerationEstimateSource.js +14 -0
  188. package/api/resources/common/types/GenerationOptions.d.ts +22 -4
  189. package/api/resources/common/types/GenerationSegment.d.ts +14 -6
  190. package/api/resources/common/types/Image.d.ts +16 -0
  191. package/api/resources/common/types/Image.js +5 -0
  192. package/api/resources/common/types/Input.d.ts +1 -1
  193. package/api/resources/common/types/Model.d.ts +2 -1
  194. package/api/resources/common/types/Model.js +1 -0
  195. package/api/resources/common/types/ModelInfo.d.ts +22 -0
  196. package/api/resources/common/types/ModelInfo.js +5 -0
  197. package/api/resources/common/types/OutputAudio.d.ts +10 -0
  198. package/api/resources/common/types/OutputAudio.js +5 -0
  199. package/api/resources/common/types/OutputFormat.d.ts +8 -0
  200. package/api/resources/common/types/OutputFormat.js +10 -0
  201. package/api/resources/common/types/PaginatedAssetsResponse.d.ts +15 -0
  202. package/api/resources/common/types/PaginatedAssetsResponse.js +5 -0
  203. package/api/resources/common/types/PaginatedProjectsResponse.d.ts +13 -0
  204. package/api/resources/common/types/PaginatedProjectsResponse.js +5 -0
  205. package/api/resources/common/types/Project.d.ts +24 -0
  206. package/api/resources/common/types/Project.js +5 -0
  207. package/api/resources/common/types/ProjectGeneration.d.ts +41 -0
  208. package/api/resources/common/types/ProjectGeneration.js +5 -0
  209. package/api/resources/common/types/ProjectGenerationError.d.ts +9 -0
  210. package/api/resources/common/types/ProjectGenerationError.js +5 -0
  211. package/api/resources/common/types/ProjectGenerationInput.d.ts +18 -0
  212. package/api/resources/common/types/ProjectGenerationInput.js +5 -0
  213. package/api/resources/common/types/ProjectGenerationModel.d.ts +12 -0
  214. package/api/resources/common/types/ProjectGenerationModel.js +5 -0
  215. package/api/resources/common/types/ProjectGenerationProvider.d.ts +10 -0
  216. package/api/resources/common/types/ProjectGenerationProvider.js +5 -0
  217. package/api/resources/common/types/ProjectGenerationSegment.d.ts +14 -0
  218. package/api/resources/common/types/ProjectGenerationSegment.js +5 -0
  219. package/api/resources/common/types/ProjectId.d.ts +7 -0
  220. package/api/resources/common/types/ProjectId.js +5 -0
  221. package/api/resources/common/types/ProjectListItem.d.ts +28 -0
  222. package/api/resources/common/types/ProjectListItem.js +5 -0
  223. package/api/resources/common/types/ProjectMode.d.ts +11 -0
  224. package/api/resources/common/types/ProjectMode.js +10 -0
  225. package/api/resources/common/types/ProjectSort.d.ts +11 -0
  226. package/api/resources/common/types/ProjectSort.js +10 -0
  227. package/api/resources/common/types/ProjectVisibility.d.ts +17 -0
  228. package/api/resources/common/types/ProjectVisibility.js +10 -0
  229. package/api/resources/common/types/SegmentAudioInput.d.ts +2 -2
  230. package/api/resources/common/types/SegmentOptionsOverride.d.ts +17 -0
  231. package/api/resources/common/types/SegmentOptionsOverride.js +5 -0
  232. package/api/resources/common/types/SyncMode.d.ts +1 -1
  233. package/api/resources/common/types/Transcript.d.ts +13 -0
  234. package/api/resources/common/types/Transcript.js +5 -0
  235. package/api/resources/common/types/TranscriptSegment.d.ts +13 -0
  236. package/api/resources/common/types/TranscriptSegment.js +5 -0
  237. package/api/resources/common/types/TranscriptWord.d.ts +16 -0
  238. package/api/resources/common/types/TranscriptWord.js +5 -0
  239. package/api/resources/common/types/TranscriptionDifficulty.d.ts +13 -0
  240. package/api/resources/common/types/TranscriptionDifficulty.js +5 -0
  241. package/api/resources/common/types/TranscriptionDifficultyReason.d.ts +17 -0
  242. package/api/resources/common/types/TranscriptionDifficultyReason.js +16 -0
  243. package/api/resources/common/types/TranscriptionDifficultyTier.d.ts +12 -0
  244. package/api/resources/common/types/TranscriptionDifficultyTier.js +11 -0
  245. package/api/resources/common/types/TranscriptionError.d.ts +13 -0
  246. package/api/resources/common/types/TranscriptionError.js +5 -0
  247. package/api/resources/common/types/TranscriptionErrorCode.d.ts +16 -0
  248. package/api/resources/common/types/TranscriptionErrorCode.js +15 -0
  249. package/api/resources/common/types/TranscriptionJob.d.ts +35 -0
  250. package/api/resources/common/types/TranscriptionJob.js +5 -0
  251. package/api/resources/common/types/TranscriptionJobId.d.ts +7 -0
  252. package/api/resources/common/types/TranscriptionJobId.js +5 -0
  253. package/api/resources/common/types/TranscriptionJobStatus.d.ts +13 -0
  254. package/api/resources/common/types/TranscriptionJobStatus.js +12 -0
  255. package/api/resources/common/types/TtsGenerationResponse.d.ts +14 -0
  256. package/api/resources/common/types/TtsGenerationResponse.js +5 -0
  257. package/api/resources/common/types/TtsJob.d.ts +25 -0
  258. package/api/resources/common/types/TtsJob.js +5 -0
  259. package/api/resources/common/types/TtsJobError.d.ts +13 -0
  260. package/api/resources/common/types/TtsJobError.js +5 -0
  261. package/api/resources/common/types/TtsJobErrorCode.d.ts +16 -0
  262. package/api/resources/common/types/TtsJobErrorCode.js +15 -0
  263. package/api/resources/common/types/TtsJobStatus.d.ts +13 -0
  264. package/api/resources/common/types/TtsJobStatus.js +12 -0
  265. package/api/resources/common/types/UpdateAssetRequest.d.ts +23 -0
  266. package/api/resources/common/types/UpdateAssetRequest.js +5 -0
  267. package/api/resources/common/types/UpdateProjectRequest.d.ts +17 -0
  268. package/api/resources/common/types/UpdateProjectRequest.js +5 -0
  269. package/api/resources/common/types/Video.d.ts +9 -2
  270. package/api/resources/common/types/Voice.d.ts +23 -0
  271. package/api/resources/common/types/Voice.js +5 -0
  272. package/api/resources/common/types/VoiceCloneRateLimitError.d.ts +16 -0
  273. package/api/resources/common/types/VoiceCloneRateLimitError.js +5 -0
  274. package/api/resources/common/types/VoiceProvider.d.ts +10 -0
  275. package/api/resources/common/types/VoiceProvider.js +9 -0
  276. package/api/resources/common/types/VoiceRestriction.d.ts +11 -0
  277. package/api/resources/common/types/VoiceRestriction.js +10 -0
  278. package/api/resources/common/types/index.d.ts +95 -0
  279. package/api/resources/common/types/index.js +95 -0
  280. package/api/resources/dialogueEdits/client/Client.d.ts +95 -0
  281. package/api/resources/dialogueEdits/client/Client.js +241 -0
  282. package/api/resources/dialogueEdits/client/index.d.ts +1 -0
  283. package/api/resources/dialogueEdits/client/index.js +2 -0
  284. package/api/resources/dialogueEdits/index.d.ts +1 -0
  285. package/api/resources/dialogueEdits/index.js +17 -0
  286. package/api/resources/errors/client/Client.d.ts +44 -0
  287. package/api/resources/errors/client/Client.js +127 -0
  288. package/api/resources/errors/client/index.d.ts +1 -0
  289. package/api/resources/errors/client/index.js +2 -0
  290. package/api/resources/errors/index.d.ts +1 -0
  291. package/api/resources/errors/index.js +17 -0
  292. package/api/resources/feedback/client/Client.d.ts +55 -0
  293. package/api/resources/feedback/client/Client.js +145 -0
  294. package/api/resources/feedback/client/index.d.ts +1 -0
  295. package/api/resources/feedback/client/index.js +17 -0
  296. package/api/resources/feedback/client/requests/SubmitFeedbackRequest.d.ts +37 -0
  297. package/api/resources/feedback/client/requests/SubmitFeedbackRequest.js +5 -0
  298. package/api/resources/feedback/client/requests/index.d.ts +1 -0
  299. package/api/resources/feedback/client/requests/index.js +2 -0
  300. package/api/resources/feedback/errors/FeedbackTooManyRequestsError.d.ts +9 -0
  301. package/api/resources/feedback/errors/FeedbackTooManyRequestsError.js +52 -0
  302. package/api/resources/feedback/errors/index.d.ts +1 -0
  303. package/api/resources/feedback/errors/index.js +17 -0
  304. package/api/resources/feedback/index.d.ts +3 -0
  305. package/api/resources/feedback/index.js +19 -0
  306. package/api/resources/feedback/types/FeedbackClient.d.ts +9 -0
  307. package/api/resources/feedback/types/FeedbackClient.js +5 -0
  308. package/api/resources/feedback/types/FeedbackKind.d.ts +12 -0
  309. package/api/resources/feedback/types/FeedbackKind.js +14 -0
  310. package/api/resources/feedback/types/FeedbackRateLimitError.d.ts +16 -0
  311. package/api/resources/feedback/types/FeedbackRateLimitError.js +5 -0
  312. package/api/resources/feedback/types/FeedbackReceipt.d.ts +9 -0
  313. package/api/resources/feedback/types/FeedbackReceipt.js +5 -0
  314. package/api/resources/feedback/types/FeedbackSeverity.d.ts +9 -0
  315. package/api/resources/feedback/types/FeedbackSeverity.js +11 -0
  316. package/api/resources/feedback/types/FeedbackSource.d.ts +8 -0
  317. package/api/resources/feedback/types/FeedbackSource.js +10 -0
  318. package/api/resources/feedback/types/index.d.ts +6 -0
  319. package/api/resources/feedback/types/index.js +22 -0
  320. package/api/resources/generations/client/Client.d.ts +149 -19
  321. package/api/resources/generations/client/Client.js +370 -31
  322. package/api/resources/generations/client/requests/CreateGenerationJsonRequest.d.ts +51 -0
  323. package/api/resources/generations/client/requests/CreateGenerationJsonRequest.js +5 -0
  324. package/api/resources/generations/client/requests/CreateGenerationRequest.d.ts +13 -1
  325. package/api/resources/generations/client/requests/GetGenerationDownloadRequest.d.ts +17 -0
  326. package/api/resources/generations/client/requests/GetGenerationDownloadRequest.js +5 -0
  327. package/api/resources/generations/client/requests/GetGenerationRequest.d.ts +21 -0
  328. package/api/resources/generations/client/requests/GetGenerationRequest.js +5 -0
  329. package/api/resources/generations/client/requests/ListGenerationsRequest.d.ts +22 -2
  330. package/api/resources/generations/client/requests/index.d.ts +3 -0
  331. package/api/resources/index.d.ts +21 -0
  332. package/api/resources/index.js +22 -1
  333. package/api/resources/models/client/Client.d.ts +45 -0
  334. package/api/resources/models/client/Client.js +130 -0
  335. package/api/resources/models/client/index.d.ts +1 -0
  336. package/api/resources/models/client/index.js +2 -0
  337. package/api/resources/models/index.d.ts +1 -0
  338. package/api/resources/models/index.js +17 -0
  339. package/api/resources/organizations/client/Client.d.ts +46 -0
  340. package/api/resources/organizations/client/Client.js +137 -0
  341. package/api/resources/organizations/client/index.d.ts +1 -0
  342. package/api/resources/organizations/client/index.js +17 -0
  343. package/api/resources/organizations/client/requests/GetWebhookSecretRequest.d.ts +13 -0
  344. package/api/resources/organizations/client/requests/GetWebhookSecretRequest.js +5 -0
  345. package/api/resources/organizations/client/requests/index.d.ts +1 -0
  346. package/api/resources/organizations/client/requests/index.js +2 -0
  347. package/api/resources/organizations/index.d.ts +2 -0
  348. package/api/resources/organizations/index.js +18 -0
  349. package/api/resources/organizations/types/WebhookSecretResponse.d.ts +10 -0
  350. package/api/resources/organizations/types/WebhookSecretResponse.js +5 -0
  351. package/api/resources/organizations/types/index.d.ts +1 -0
  352. package/api/resources/organizations/types/index.js +17 -0
  353. package/api/resources/projects/client/Client.d.ts +159 -0
  354. package/api/resources/projects/client/Client.js +582 -0
  355. package/api/resources/projects/client/index.d.ts +1 -0
  356. package/api/resources/projects/client/index.js +17 -0
  357. package/api/resources/projects/client/requests/ListProjectsRequest.d.ts +29 -0
  358. package/api/resources/projects/client/requests/ListProjectsRequest.js +5 -0
  359. package/api/resources/projects/client/requests/index.d.ts +1 -0
  360. package/api/resources/projects/client/requests/index.js +2 -0
  361. package/api/resources/projects/index.d.ts +1 -0
  362. package/api/resources/projects/index.js +17 -0
  363. package/api/resources/transcriptions/client/Client.d.ts +67 -0
  364. package/api/resources/transcriptions/client/Client.js +209 -0
  365. package/api/resources/transcriptions/client/index.d.ts +1 -0
  366. package/api/resources/transcriptions/client/index.js +2 -0
  367. package/api/resources/transcriptions/index.d.ts +1 -0
  368. package/api/resources/transcriptions/index.js +17 -0
  369. package/api/resources/tts/client/Client.d.ts +93 -0
  370. package/api/resources/tts/client/Client.js +306 -0
  371. package/api/resources/tts/client/index.d.ts +1 -0
  372. package/api/resources/tts/client/index.js +17 -0
  373. package/api/resources/tts/client/requests/SubmitTtsJobRequest.d.ts +18 -0
  374. package/api/resources/tts/client/requests/SubmitTtsJobRequest.js +5 -0
  375. package/api/resources/tts/client/requests/index.d.ts +1 -0
  376. package/api/resources/tts/client/requests/index.js +2 -0
  377. package/api/resources/tts/index.d.ts +1 -0
  378. package/api/resources/tts/index.js +17 -0
  379. package/api/resources/voices/client/Client.d.ts +107 -0
  380. package/api/resources/voices/client/Client.js +369 -0
  381. package/api/resources/voices/client/index.d.ts +1 -0
  382. package/api/resources/voices/client/index.js +17 -0
  383. package/api/resources/voices/client/requests/GetVoiceRequest.d.ts +14 -0
  384. package/api/resources/voices/client/requests/GetVoiceRequest.js +5 -0
  385. package/api/resources/voices/client/requests/ListVoicesRequest.d.ts +14 -0
  386. package/api/resources/voices/client/requests/ListVoicesRequest.js +5 -0
  387. package/api/resources/voices/client/requests/index.d.ts +2 -0
  388. package/api/resources/voices/client/requests/index.js +2 -0
  389. package/api/resources/voices/index.d.ts +1 -0
  390. package/api/resources/voices/index.js +17 -0
  391. package/api/resources/webhooks/types/BatchNotification.d.ts +21 -0
  392. package/api/resources/webhooks/types/BatchNotification.js +5 -0
  393. package/api/resources/webhooks/types/BatchNotificationMetrics.d.ts +13 -0
  394. package/api/resources/webhooks/types/BatchNotificationMetrics.js +5 -0
  395. package/api/resources/webhooks/types/GenerationNotification.d.ts +14 -16
  396. package/api/resources/webhooks/types/WebhookStatus.d.ts +3 -2
  397. package/api/resources/webhooks/types/WebhookStatus.js +1 -0
  398. package/api/resources/webhooks/types/index.d.ts +2 -0
  399. package/api/resources/webhooks/types/index.js +2 -0
  400. package/core/index.d.ts +1 -1
  401. package/core/index.js +1 -1
  402. package/dist/Client.d.ts +34 -1
  403. package/dist/Client.js +59 -4
  404. package/dist/api/resources/account/client/Client.d.ts +45 -0
  405. package/dist/api/resources/account/client/Client.js +130 -0
  406. package/dist/api/resources/account/client/index.d.ts +1 -0
  407. package/dist/api/resources/account/client/index.js +2 -0
  408. package/dist/api/resources/account/index.d.ts +2 -0
  409. package/dist/api/resources/account/index.js +18 -0
  410. package/dist/api/resources/account/types/AccountActiveJobs.d.ts +9 -0
  411. package/dist/api/resources/account/types/AccountActiveJobs.js +5 -0
  412. package/dist/api/resources/account/types/AccountAllowanceUsage.d.ts +11 -0
  413. package/dist/api/resources/account/types/AccountAllowanceUsage.js +5 -0
  414. package/dist/api/resources/account/types/AccountBillingModel.d.ts +10 -0
  415. package/dist/api/resources/account/types/AccountBillingModel.js +12 -0
  416. package/dist/api/resources/account/types/AccountBillingPeriod.d.ts +7 -0
  417. package/dist/api/resources/account/types/AccountBillingPeriod.js +5 -0
  418. package/dist/api/resources/account/types/AccountCredentialType.d.ts +9 -0
  419. package/dist/api/resources/account/types/AccountCredentialType.js +11 -0
  420. package/dist/api/resources/account/types/AccountCredits.d.ts +11 -0
  421. package/dist/api/resources/account/types/AccountCredits.js +5 -0
  422. package/dist/api/resources/account/types/AccountFreeAllowance.d.ts +12 -0
  423. package/dist/api/resources/account/types/AccountFreeAllowance.js +5 -0
  424. package/dist/api/resources/account/types/AccountLimits.d.ts +13 -0
  425. package/dist/api/resources/account/types/AccountLimits.js +5 -0
  426. package/dist/api/resources/account/types/AccountOrganization.d.ts +9 -0
  427. package/dist/api/resources/account/types/AccountOrganization.js +5 -0
  428. package/dist/api/resources/account/types/AccountOverview.d.ts +31 -0
  429. package/dist/api/resources/account/types/AccountOverview.js +5 -0
  430. package/dist/api/resources/account/types/AccountPlan.d.ts +9 -0
  431. package/dist/api/resources/account/types/AccountPlan.js +5 -0
  432. package/dist/api/resources/account/types/AccountUser.d.ts +8 -0
  433. package/dist/api/resources/account/types/AccountUser.js +5 -0
  434. package/dist/api/resources/account/types/index.d.ts +12 -0
  435. package/dist/api/resources/account/types/index.js +28 -0
  436. package/dist/api/resources/assets/client/Client.d.ts +143 -0
  437. package/dist/api/resources/assets/client/Client.js +515 -0
  438. package/dist/api/resources/assets/client/index.d.ts +1 -0
  439. package/dist/api/resources/assets/client/index.js +17 -0
  440. package/dist/api/resources/assets/client/requests/ListAssetsRequest.d.ts +37 -0
  441. package/dist/api/resources/assets/client/requests/ListAssetsRequest.js +5 -0
  442. package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
  443. package/dist/api/resources/assets/client/requests/index.js +2 -0
  444. package/dist/api/resources/assets/index.d.ts +1 -0
  445. package/dist/api/resources/assets/index.js +17 -0
  446. package/dist/api/resources/batch/client/Client.d.ts +283 -2
  447. package/dist/api/resources/batch/client/Client.js +342 -4
  448. package/dist/api/resources/batch/client/requests/CreateBatchFromRowsRequest.d.ts +279 -0
  449. package/dist/api/resources/batch/client/requests/CreateBatchFromRowsRequest.js +5 -0
  450. package/dist/api/resources/batch/client/requests/CreateBatchRequest.d.ts +2 -2
  451. package/dist/api/resources/batch/client/requests/index.d.ts +1 -0
  452. package/dist/api/resources/common/errors/ConflictError.d.ts +9 -0
  453. package/dist/api/resources/common/errors/ConflictError.js +52 -0
  454. package/dist/api/resources/common/errors/ForbiddenError.d.ts +9 -0
  455. package/dist/api/resources/common/errors/ForbiddenError.js +52 -0
  456. package/dist/api/resources/common/errors/GatewayTimeoutError.d.ts +9 -0
  457. package/dist/api/resources/common/errors/GatewayTimeoutError.js +52 -0
  458. package/dist/api/resources/common/errors/GenerationDeletedError.d.ts +9 -0
  459. package/dist/api/resources/common/errors/GenerationDeletedError.js +52 -0
  460. package/dist/api/resources/common/errors/GenerationTooManyRequestsError.d.ts +9 -0
  461. package/dist/api/resources/common/errors/GenerationTooManyRequestsError.js +52 -0
  462. package/dist/api/resources/common/errors/PayloadTooLargeError.d.ts +9 -0
  463. package/dist/api/resources/common/errors/PayloadTooLargeError.js +52 -0
  464. package/dist/api/resources/common/errors/ServiceUnavailableError.d.ts +9 -0
  465. package/dist/api/resources/common/errors/ServiceUnavailableError.js +52 -0
  466. package/dist/api/resources/common/errors/TooManyRequestsError.d.ts +1 -1
  467. package/dist/api/resources/common/errors/UnprocessableEntityError.d.ts +9 -0
  468. package/dist/api/resources/common/errors/UnprocessableEntityError.js +52 -0
  469. package/dist/api/resources/common/errors/VoiceCloneTooManyRequestsError.d.ts +9 -0
  470. package/dist/api/resources/common/errors/VoiceCloneTooManyRequestsError.js +52 -0
  471. package/dist/api/resources/common/errors/index.d.ts +9 -0
  472. package/dist/api/resources/common/errors/index.js +9 -0
  473. package/dist/api/resources/common/types/ActiveSpeaker.d.ts +12 -0
  474. package/dist/api/resources/common/types/Asset.d.ts +40 -0
  475. package/dist/api/resources/common/types/Asset.js +5 -0
  476. package/dist/api/resources/common/types/AssetId.d.ts +7 -0
  477. package/dist/api/resources/common/types/AssetId.js +5 -0
  478. package/dist/api/resources/common/types/AssetInputType.d.ts +22 -0
  479. package/dist/api/resources/common/types/AssetInputType.js +21 -0
  480. package/dist/api/resources/common/types/AssetSort.d.ts +19 -0
  481. package/dist/api/resources/common/types/AssetSort.js +18 -0
  482. package/dist/api/resources/common/types/AssetType.d.ts +12 -0
  483. package/dist/api/resources/common/types/AssetType.js +11 -0
  484. package/dist/api/resources/common/types/AssetUploadResponse.d.ts +14 -0
  485. package/dist/api/resources/common/types/AssetUploadResponse.js +5 -0
  486. package/dist/api/resources/common/types/AssetVisibility.d.ts +17 -0
  487. package/dist/api/resources/common/types/AssetVisibility.js +10 -0
  488. package/dist/api/resources/common/types/AttachProjectAssetRequest.d.ts +11 -0
  489. package/dist/api/resources/common/types/AttachProjectAssetRequest.js +5 -0
  490. package/dist/api/resources/common/types/Audio.d.ts +5 -2
  491. package/dist/api/resources/common/types/BatchConcurrencyError.d.ts +23 -0
  492. package/dist/api/resources/common/types/BatchConcurrencyError.js +5 -0
  493. package/dist/api/resources/common/types/BatchResponse.d.ts +2 -2
  494. package/dist/api/resources/common/types/BatchRow.d.ts +15 -0
  495. package/dist/api/resources/common/types/BatchRow.js +5 -0
  496. package/dist/api/resources/common/types/BlendingMode.d.ts +9 -0
  497. package/dist/api/resources/common/types/BlendingMode.js +11 -0
  498. package/dist/api/resources/common/types/ClonedVoiceResponse.d.ts +14 -0
  499. package/dist/api/resources/common/types/ClonedVoiceResponse.js +5 -0
  500. package/dist/api/resources/common/types/CreateAssetRequest.d.ts +33 -0
  501. package/dist/api/resources/common/types/CreateAssetRequest.js +5 -0
  502. package/dist/api/resources/common/types/CreateAssetUploadRequest.d.ts +14 -0
  503. package/dist/api/resources/common/types/CreateAssetUploadRequest.js +5 -0
  504. package/dist/api/resources/common/types/CreateDialogueEditDto.d.ts +27 -0
  505. package/dist/api/resources/common/types/CreateDialogueEditDto.js +5 -0
  506. package/dist/api/resources/common/types/CreateGenerationDto.d.ts +11 -3
  507. package/dist/api/resources/common/types/CreateProjectRequest.d.ts +21 -0
  508. package/dist/api/resources/common/types/CreateProjectRequest.js +5 -0
  509. package/dist/api/resources/common/types/CreateTranscriptionDto.d.ts +21 -0
  510. package/dist/api/resources/common/types/CreateTranscriptionDto.js +5 -0
  511. package/dist/api/resources/common/types/CreateTtsRequest.d.ts +19 -0
  512. package/dist/api/resources/common/types/CreateTtsRequest.js +5 -0
  513. package/dist/api/resources/common/types/CreateVoiceRequest.d.ts +19 -0
  514. package/dist/api/resources/common/types/CreateVoiceRequest.js +5 -0
  515. package/dist/api/resources/common/types/CreatorWorkflow.d.ts +37 -0
  516. package/dist/api/resources/common/types/CreatorWorkflow.js +15 -0
  517. package/dist/api/resources/common/types/DeleteAssetResponse.d.ts +11 -0
  518. package/dist/api/resources/common/types/DeleteAssetResponse.js +5 -0
  519. package/dist/api/resources/common/types/DeleteProjectResponse.d.ts +11 -0
  520. package/dist/api/resources/common/types/DeleteProjectResponse.js +5 -0
  521. package/dist/api/resources/common/types/DialogueEditChange.d.ts +14 -0
  522. package/dist/api/resources/common/types/DialogueEditChange.js +5 -0
  523. package/dist/api/resources/common/types/DialogueEditError.d.ts +15 -0
  524. package/dist/api/resources/common/types/DialogueEditError.js +5 -0
  525. package/dist/api/resources/common/types/DialogueEditErrorCode.d.ts +18 -0
  526. package/dist/api/resources/common/types/DialogueEditErrorCode.js +17 -0
  527. package/dist/api/resources/common/types/DialogueEditFailedSlot.d.ts +9 -0
  528. package/dist/api/resources/common/types/DialogueEditFailedSlot.js +5 -0
  529. package/dist/api/resources/common/types/DialogueEditJob.d.ts +49 -0
  530. package/dist/api/resources/common/types/DialogueEditJob.js +5 -0
  531. package/dist/api/resources/common/types/DialogueEditJobId.d.ts +7 -0
  532. package/dist/api/resources/common/types/DialogueEditJobId.js +5 -0
  533. package/dist/api/resources/common/types/DialogueEditJobStatus.d.ts +14 -0
  534. package/dist/api/resources/common/types/DialogueEditJobStatus.js +13 -0
  535. package/dist/api/resources/common/types/DialogueEditOperation.d.ts +16 -0
  536. package/dist/api/resources/common/types/DialogueEditOperation.js +5 -0
  537. package/dist/api/resources/common/types/DialogueEditPartialDetail.d.ts +17 -0
  538. package/dist/api/resources/common/types/DialogueEditPartialDetail.js +5 -0
  539. package/dist/api/resources/common/types/DialogueEditReference.d.ts +11 -0
  540. package/dist/api/resources/common/types/DialogueEditReference.js +5 -0
  541. package/dist/api/resources/common/types/DialogueEditRemoval.d.ts +10 -0
  542. package/dist/api/resources/common/types/DialogueEditRemoval.js +5 -0
  543. package/dist/api/resources/common/types/DialogueEditResultSlot.d.ts +19 -0
  544. package/dist/api/resources/common/types/DialogueEditResultSlot.js +5 -0
  545. package/dist/api/resources/common/types/DialogueEditResultSlotKind.d.ts +12 -0
  546. package/dist/api/resources/common/types/DialogueEditResultSlotKind.js +11 -0
  547. package/dist/api/resources/common/types/DialogueEditRetimeFailureSection.d.ts +14 -0
  548. package/dist/api/resources/common/types/DialogueEditRetimeFailureSection.js +5 -0
  549. package/dist/api/resources/common/types/DubDto.d.ts +17 -0
  550. package/dist/api/resources/common/types/DubDto.js +5 -0
  551. package/dist/api/resources/common/types/DubLanguage.d.ts +105 -0
  552. package/dist/api/resources/common/types/DubLanguage.js +101 -0
  553. package/dist/api/resources/common/types/DubProviderName.d.ts +10 -0
  554. package/dist/api/resources/common/types/DubProviderName.js +9 -0
  555. package/dist/api/resources/common/types/DubSourceLanguage.d.ts +106 -0
  556. package/dist/api/resources/common/types/DubSourceLanguage.js +102 -0
  557. package/dist/api/resources/common/types/ElevenLabs.d.ts +5 -1
  558. package/dist/api/resources/common/types/ErrorCatalogEntry.d.ts +14 -0
  559. package/dist/api/resources/common/types/ErrorCatalogEntry.js +5 -0
  560. package/dist/api/resources/common/types/EstimateBreakdown.d.ts +13 -0
  561. package/dist/api/resources/common/types/EstimateBreakdown.js +5 -0
  562. package/dist/api/resources/common/types/EstimateCostRequest.d.ts +16 -0
  563. package/dist/api/resources/common/types/EstimateCostRequest.js +5 -0
  564. package/dist/api/resources/common/types/EstimateDubbingBilling.d.ts +10 -0
  565. package/dist/api/resources/common/types/EstimateDubbingBilling.js +12 -0
  566. package/dist/api/resources/common/types/EstimateDubbingPart.d.ts +12 -0
  567. package/dist/api/resources/common/types/EstimateDubbingPart.js +5 -0
  568. package/dist/api/resources/common/types/EstimateDurationCheck.d.ts +22 -0
  569. package/dist/api/resources/common/types/EstimateDurationCheck.js +5 -0
  570. package/dist/api/resources/common/types/EstimateLipsyncPart.d.ts +9 -0
  571. package/dist/api/resources/common/types/EstimateLipsyncPart.js +5 -0
  572. package/dist/api/resources/common/types/EstimateWorkflow.d.ts +11 -0
  573. package/dist/api/resources/common/types/EstimateWorkflow.js +10 -0
  574. package/dist/api/resources/common/types/EstimatedGenerationCost.d.ts +7 -0
  575. package/dist/api/resources/common/types/Generation.d.ts +12 -2
  576. package/dist/api/resources/common/types/GenerationConcurrencyError.d.ts +21 -0
  577. package/dist/api/resources/common/types/GenerationConcurrencyError.js +5 -0
  578. package/dist/api/resources/common/types/GenerationError.d.ts +16 -0
  579. package/dist/api/resources/common/types/GenerationEstimate.d.ts +39 -0
  580. package/dist/api/resources/common/types/GenerationEstimate.js +5 -0
  581. package/dist/api/resources/common/types/GenerationEstimateConfidence.d.ts +12 -0
  582. package/dist/api/resources/common/types/GenerationEstimateConfidence.js +11 -0
  583. package/dist/api/resources/common/types/GenerationEstimateResolutionSource.d.ts +12 -0
  584. package/dist/api/resources/common/types/GenerationEstimateResolutionSource.js +11 -0
  585. package/dist/api/resources/common/types/GenerationEstimateScope.d.ts +11 -0
  586. package/dist/api/resources/common/types/GenerationEstimateScope.js +10 -0
  587. package/dist/api/resources/common/types/GenerationEstimateSource.d.ts +15 -0
  588. package/dist/api/resources/common/types/GenerationEstimateSource.js +14 -0
  589. package/dist/api/resources/common/types/GenerationOptions.d.ts +22 -4
  590. package/dist/api/resources/common/types/GenerationSegment.d.ts +14 -6
  591. package/dist/api/resources/common/types/Image.d.ts +16 -0
  592. package/dist/api/resources/common/types/Image.js +5 -0
  593. package/dist/api/resources/common/types/Input.d.ts +1 -1
  594. package/dist/api/resources/common/types/Model.d.ts +2 -1
  595. package/dist/api/resources/common/types/Model.js +1 -0
  596. package/dist/api/resources/common/types/ModelInfo.d.ts +22 -0
  597. package/dist/api/resources/common/types/ModelInfo.js +5 -0
  598. package/dist/api/resources/common/types/OutputAudio.d.ts +10 -0
  599. package/dist/api/resources/common/types/OutputAudio.js +5 -0
  600. package/dist/api/resources/common/types/OutputFormat.d.ts +8 -0
  601. package/dist/api/resources/common/types/OutputFormat.js +10 -0
  602. package/dist/api/resources/common/types/PaginatedAssetsResponse.d.ts +15 -0
  603. package/dist/api/resources/common/types/PaginatedAssetsResponse.js +5 -0
  604. package/dist/api/resources/common/types/PaginatedProjectsResponse.d.ts +13 -0
  605. package/dist/api/resources/common/types/PaginatedProjectsResponse.js +5 -0
  606. package/dist/api/resources/common/types/Project.d.ts +24 -0
  607. package/dist/api/resources/common/types/Project.js +5 -0
  608. package/dist/api/resources/common/types/ProjectGeneration.d.ts +41 -0
  609. package/dist/api/resources/common/types/ProjectGeneration.js +5 -0
  610. package/dist/api/resources/common/types/ProjectGenerationError.d.ts +9 -0
  611. package/dist/api/resources/common/types/ProjectGenerationError.js +5 -0
  612. package/dist/api/resources/common/types/ProjectGenerationInput.d.ts +18 -0
  613. package/dist/api/resources/common/types/ProjectGenerationInput.js +5 -0
  614. package/dist/api/resources/common/types/ProjectGenerationModel.d.ts +12 -0
  615. package/dist/api/resources/common/types/ProjectGenerationModel.js +5 -0
  616. package/dist/api/resources/common/types/ProjectGenerationProvider.d.ts +10 -0
  617. package/dist/api/resources/common/types/ProjectGenerationProvider.js +5 -0
  618. package/dist/api/resources/common/types/ProjectGenerationSegment.d.ts +14 -0
  619. package/dist/api/resources/common/types/ProjectGenerationSegment.js +5 -0
  620. package/dist/api/resources/common/types/ProjectId.d.ts +7 -0
  621. package/dist/api/resources/common/types/ProjectId.js +5 -0
  622. package/dist/api/resources/common/types/ProjectListItem.d.ts +28 -0
  623. package/dist/api/resources/common/types/ProjectListItem.js +5 -0
  624. package/dist/api/resources/common/types/ProjectMode.d.ts +11 -0
  625. package/dist/api/resources/common/types/ProjectMode.js +10 -0
  626. package/dist/api/resources/common/types/ProjectSort.d.ts +11 -0
  627. package/dist/api/resources/common/types/ProjectSort.js +10 -0
  628. package/dist/api/resources/common/types/ProjectVisibility.d.ts +17 -0
  629. package/dist/api/resources/common/types/ProjectVisibility.js +10 -0
  630. package/dist/api/resources/common/types/SegmentAudioInput.d.ts +2 -2
  631. package/dist/api/resources/common/types/SegmentOptionsOverride.d.ts +17 -0
  632. package/dist/api/resources/common/types/SegmentOptionsOverride.js +5 -0
  633. package/dist/api/resources/common/types/SyncMode.d.ts +1 -1
  634. package/dist/api/resources/common/types/Transcript.d.ts +13 -0
  635. package/dist/api/resources/common/types/Transcript.js +5 -0
  636. package/dist/api/resources/common/types/TranscriptSegment.d.ts +13 -0
  637. package/dist/api/resources/common/types/TranscriptSegment.js +5 -0
  638. package/dist/api/resources/common/types/TranscriptWord.d.ts +16 -0
  639. package/dist/api/resources/common/types/TranscriptWord.js +5 -0
  640. package/dist/api/resources/common/types/TranscriptionDifficulty.d.ts +13 -0
  641. package/dist/api/resources/common/types/TranscriptionDifficulty.js +5 -0
  642. package/dist/api/resources/common/types/TranscriptionDifficultyReason.d.ts +17 -0
  643. package/dist/api/resources/common/types/TranscriptionDifficultyReason.js +16 -0
  644. package/dist/api/resources/common/types/TranscriptionDifficultyTier.d.ts +12 -0
  645. package/dist/api/resources/common/types/TranscriptionDifficultyTier.js +11 -0
  646. package/dist/api/resources/common/types/TranscriptionError.d.ts +13 -0
  647. package/dist/api/resources/common/types/TranscriptionError.js +5 -0
  648. package/dist/api/resources/common/types/TranscriptionErrorCode.d.ts +16 -0
  649. package/dist/api/resources/common/types/TranscriptionErrorCode.js +15 -0
  650. package/dist/api/resources/common/types/TranscriptionJob.d.ts +35 -0
  651. package/dist/api/resources/common/types/TranscriptionJob.js +5 -0
  652. package/dist/api/resources/common/types/TranscriptionJobId.d.ts +7 -0
  653. package/dist/api/resources/common/types/TranscriptionJobId.js +5 -0
  654. package/dist/api/resources/common/types/TranscriptionJobStatus.d.ts +13 -0
  655. package/dist/api/resources/common/types/TranscriptionJobStatus.js +12 -0
  656. package/dist/api/resources/common/types/TtsGenerationResponse.d.ts +14 -0
  657. package/dist/api/resources/common/types/TtsGenerationResponse.js +5 -0
  658. package/dist/api/resources/common/types/TtsJob.d.ts +25 -0
  659. package/dist/api/resources/common/types/TtsJob.js +5 -0
  660. package/dist/api/resources/common/types/TtsJobError.d.ts +13 -0
  661. package/dist/api/resources/common/types/TtsJobError.js +5 -0
  662. package/dist/api/resources/common/types/TtsJobErrorCode.d.ts +16 -0
  663. package/dist/api/resources/common/types/TtsJobErrorCode.js +15 -0
  664. package/dist/api/resources/common/types/TtsJobStatus.d.ts +13 -0
  665. package/dist/api/resources/common/types/TtsJobStatus.js +12 -0
  666. package/dist/api/resources/common/types/UpdateAssetRequest.d.ts +23 -0
  667. package/dist/api/resources/common/types/UpdateAssetRequest.js +5 -0
  668. package/dist/api/resources/common/types/UpdateProjectRequest.d.ts +17 -0
  669. package/dist/api/resources/common/types/UpdateProjectRequest.js +5 -0
  670. package/dist/api/resources/common/types/Video.d.ts +9 -2
  671. package/dist/api/resources/common/types/Voice.d.ts +23 -0
  672. package/dist/api/resources/common/types/Voice.js +5 -0
  673. package/dist/api/resources/common/types/VoiceCloneRateLimitError.d.ts +16 -0
  674. package/dist/api/resources/common/types/VoiceCloneRateLimitError.js +5 -0
  675. package/dist/api/resources/common/types/VoiceProvider.d.ts +10 -0
  676. package/dist/api/resources/common/types/VoiceProvider.js +9 -0
  677. package/dist/api/resources/common/types/VoiceRestriction.d.ts +11 -0
  678. package/dist/api/resources/common/types/VoiceRestriction.js +10 -0
  679. package/dist/api/resources/common/types/index.d.ts +95 -0
  680. package/dist/api/resources/common/types/index.js +95 -0
  681. package/dist/api/resources/dialogueEdits/client/Client.d.ts +95 -0
  682. package/dist/api/resources/dialogueEdits/client/Client.js +241 -0
  683. package/dist/api/resources/dialogueEdits/client/index.d.ts +1 -0
  684. package/dist/api/resources/dialogueEdits/client/index.js +2 -0
  685. package/dist/api/resources/dialogueEdits/index.d.ts +1 -0
  686. package/dist/api/resources/dialogueEdits/index.js +17 -0
  687. package/dist/api/resources/errors/client/Client.d.ts +44 -0
  688. package/dist/api/resources/errors/client/Client.js +127 -0
  689. package/dist/api/resources/errors/client/index.d.ts +1 -0
  690. package/dist/api/resources/errors/client/index.js +2 -0
  691. package/dist/api/resources/errors/index.d.ts +1 -0
  692. package/dist/api/resources/errors/index.js +17 -0
  693. package/dist/api/resources/feedback/client/Client.d.ts +55 -0
  694. package/dist/api/resources/feedback/client/Client.js +145 -0
  695. package/dist/api/resources/feedback/client/index.d.ts +1 -0
  696. package/dist/api/resources/feedback/client/index.js +17 -0
  697. package/dist/api/resources/feedback/client/requests/SubmitFeedbackRequest.d.ts +37 -0
  698. package/dist/api/resources/feedback/client/requests/SubmitFeedbackRequest.js +5 -0
  699. package/dist/api/resources/feedback/client/requests/index.d.ts +1 -0
  700. package/dist/api/resources/feedback/client/requests/index.js +2 -0
  701. package/dist/api/resources/feedback/errors/FeedbackTooManyRequestsError.d.ts +9 -0
  702. package/dist/api/resources/feedback/errors/FeedbackTooManyRequestsError.js +52 -0
  703. package/dist/api/resources/feedback/errors/index.d.ts +1 -0
  704. package/dist/api/resources/feedback/errors/index.js +17 -0
  705. package/dist/api/resources/feedback/index.d.ts +3 -0
  706. package/dist/api/resources/feedback/index.js +19 -0
  707. package/dist/api/resources/feedback/types/FeedbackClient.d.ts +9 -0
  708. package/dist/api/resources/feedback/types/FeedbackClient.js +5 -0
  709. package/dist/api/resources/feedback/types/FeedbackKind.d.ts +12 -0
  710. package/dist/api/resources/feedback/types/FeedbackKind.js +14 -0
  711. package/dist/api/resources/feedback/types/FeedbackRateLimitError.d.ts +16 -0
  712. package/dist/api/resources/feedback/types/FeedbackRateLimitError.js +5 -0
  713. package/dist/api/resources/feedback/types/FeedbackReceipt.d.ts +9 -0
  714. package/dist/api/resources/feedback/types/FeedbackReceipt.js +5 -0
  715. package/dist/api/resources/feedback/types/FeedbackSeverity.d.ts +9 -0
  716. package/dist/api/resources/feedback/types/FeedbackSeverity.js +11 -0
  717. package/dist/api/resources/feedback/types/FeedbackSource.d.ts +8 -0
  718. package/dist/api/resources/feedback/types/FeedbackSource.js +10 -0
  719. package/dist/api/resources/feedback/types/index.d.ts +6 -0
  720. package/dist/api/resources/feedback/types/index.js +22 -0
  721. package/dist/api/resources/generations/client/Client.d.ts +149 -19
  722. package/dist/api/resources/generations/client/Client.js +370 -31
  723. package/dist/api/resources/generations/client/requests/CreateGenerationJsonRequest.d.ts +51 -0
  724. package/dist/api/resources/generations/client/requests/CreateGenerationJsonRequest.js +5 -0
  725. package/dist/api/resources/generations/client/requests/CreateGenerationRequest.d.ts +13 -1
  726. package/dist/api/resources/generations/client/requests/GetGenerationDownloadRequest.d.ts +17 -0
  727. package/dist/api/resources/generations/client/requests/GetGenerationDownloadRequest.js +5 -0
  728. package/dist/api/resources/generations/client/requests/GetGenerationRequest.d.ts +21 -0
  729. package/dist/api/resources/generations/client/requests/GetGenerationRequest.js +5 -0
  730. package/dist/api/resources/generations/client/requests/ListGenerationsRequest.d.ts +22 -2
  731. package/dist/api/resources/generations/client/requests/index.d.ts +3 -0
  732. package/dist/api/resources/index.d.ts +21 -0
  733. package/dist/api/resources/index.js +22 -1
  734. package/dist/api/resources/models/client/Client.d.ts +45 -0
  735. package/dist/api/resources/models/client/Client.js +130 -0
  736. package/dist/api/resources/models/client/index.d.ts +1 -0
  737. package/dist/api/resources/models/client/index.js +2 -0
  738. package/dist/api/resources/models/index.d.ts +1 -0
  739. package/dist/api/resources/models/index.js +17 -0
  740. package/dist/api/resources/organizations/client/Client.d.ts +46 -0
  741. package/dist/api/resources/organizations/client/Client.js +137 -0
  742. package/dist/api/resources/organizations/client/index.d.ts +1 -0
  743. package/dist/api/resources/organizations/client/index.js +17 -0
  744. package/dist/api/resources/organizations/client/requests/GetWebhookSecretRequest.d.ts +13 -0
  745. package/dist/api/resources/organizations/client/requests/GetWebhookSecretRequest.js +5 -0
  746. package/dist/api/resources/organizations/client/requests/index.d.ts +1 -0
  747. package/dist/api/resources/organizations/client/requests/index.js +2 -0
  748. package/dist/api/resources/organizations/index.d.ts +2 -0
  749. package/dist/api/resources/organizations/index.js +18 -0
  750. package/dist/api/resources/organizations/types/WebhookSecretResponse.d.ts +10 -0
  751. package/dist/api/resources/organizations/types/WebhookSecretResponse.js +5 -0
  752. package/dist/api/resources/organizations/types/index.d.ts +1 -0
  753. package/dist/api/resources/organizations/types/index.js +17 -0
  754. package/dist/api/resources/projects/client/Client.d.ts +159 -0
  755. package/dist/api/resources/projects/client/Client.js +582 -0
  756. package/dist/api/resources/projects/client/index.d.ts +1 -0
  757. package/dist/api/resources/projects/client/index.js +17 -0
  758. package/dist/api/resources/projects/client/requests/ListProjectsRequest.d.ts +29 -0
  759. package/dist/api/resources/projects/client/requests/ListProjectsRequest.js +5 -0
  760. package/dist/api/resources/projects/client/requests/index.d.ts +1 -0
  761. package/dist/api/resources/projects/client/requests/index.js +2 -0
  762. package/dist/api/resources/projects/index.d.ts +1 -0
  763. package/dist/api/resources/projects/index.js +17 -0
  764. package/dist/api/resources/transcriptions/client/Client.d.ts +67 -0
  765. package/dist/api/resources/transcriptions/client/Client.js +209 -0
  766. package/dist/api/resources/transcriptions/client/index.d.ts +1 -0
  767. package/dist/api/resources/transcriptions/client/index.js +2 -0
  768. package/dist/api/resources/transcriptions/index.d.ts +1 -0
  769. package/dist/api/resources/transcriptions/index.js +17 -0
  770. package/dist/api/resources/tts/client/Client.d.ts +93 -0
  771. package/dist/api/resources/tts/client/Client.js +306 -0
  772. package/dist/api/resources/tts/client/index.d.ts +1 -0
  773. package/dist/api/resources/tts/client/index.js +17 -0
  774. package/dist/api/resources/tts/client/requests/SubmitTtsJobRequest.d.ts +18 -0
  775. package/dist/api/resources/tts/client/requests/SubmitTtsJobRequest.js +5 -0
  776. package/dist/api/resources/tts/client/requests/index.d.ts +1 -0
  777. package/dist/api/resources/tts/client/requests/index.js +2 -0
  778. package/dist/api/resources/tts/index.d.ts +1 -0
  779. package/dist/api/resources/tts/index.js +17 -0
  780. package/dist/api/resources/voices/client/Client.d.ts +107 -0
  781. package/dist/api/resources/voices/client/Client.js +369 -0
  782. package/dist/api/resources/voices/client/index.d.ts +1 -0
  783. package/dist/api/resources/voices/client/index.js +17 -0
  784. package/dist/api/resources/voices/client/requests/GetVoiceRequest.d.ts +14 -0
  785. package/dist/api/resources/voices/client/requests/GetVoiceRequest.js +5 -0
  786. package/dist/api/resources/voices/client/requests/ListVoicesRequest.d.ts +14 -0
  787. package/dist/api/resources/voices/client/requests/ListVoicesRequest.js +5 -0
  788. package/dist/api/resources/voices/client/requests/index.d.ts +2 -0
  789. package/dist/api/resources/voices/client/requests/index.js +2 -0
  790. package/dist/api/resources/voices/index.d.ts +1 -0
  791. package/dist/api/resources/voices/index.js +17 -0
  792. package/dist/api/resources/webhooks/types/BatchNotification.d.ts +21 -0
  793. package/dist/api/resources/webhooks/types/BatchNotification.js +5 -0
  794. package/dist/api/resources/webhooks/types/BatchNotificationMetrics.d.ts +13 -0
  795. package/dist/api/resources/webhooks/types/BatchNotificationMetrics.js +5 -0
  796. package/dist/api/resources/webhooks/types/GenerationNotification.d.ts +14 -16
  797. package/dist/api/resources/webhooks/types/WebhookStatus.d.ts +3 -2
  798. package/dist/api/resources/webhooks/types/WebhookStatus.js +1 -0
  799. package/dist/api/resources/webhooks/types/index.d.ts +2 -0
  800. package/dist/api/resources/webhooks/types/index.js +2 -0
  801. package/dist/core/index.d.ts +1 -1
  802. package/dist/core/index.js +1 -1
  803. package/dist/environments.d.ts +2 -1
  804. package/dist/environments.js +1 -0
  805. package/dist/version.d.ts +1 -1
  806. package/dist/version.js +1 -1
  807. package/environments.d.ts +2 -1
  808. package/environments.js +1 -0
  809. package/package.json +1 -1
  810. package/reference.md +2632 -79
  811. package/version.d.ts +1 -1
  812. package/version.js +1 -1
@@ -0,0 +1,40 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Sync from "../../../index";
5
+ /**
6
+ * An asset stored in your organization's media library.
7
+ */
8
+ export interface Asset {
9
+ id: Sync.AssetId;
10
+ /** The date and time the asset was created. */
11
+ createdAt: string;
12
+ /** The date and time the asset was last updated. */
13
+ updatedAt: string;
14
+ /** The filename of the asset. */
15
+ name?: string;
16
+ /** The URL to access the asset media. */
17
+ url?: string;
18
+ /** File size in bytes. */
19
+ size?: number;
20
+ /** File format/extension (e.g., "mp4", "wav"). */
21
+ format?: string;
22
+ /** The type of asset file. */
23
+ type: Sync.AssetType;
24
+ /** The source type of the asset. */
25
+ inputType?: Sync.AssetInputType;
26
+ /** Duration of the media in seconds (for audio/video). */
27
+ durationSeconds?: number;
28
+ /** URL to the asset's thumbnail image. */
29
+ thumbnailUrl?: string;
30
+ /** Visibility scope for the asset. */
31
+ visibility: Sync.AssetVisibility;
32
+ /** Width in pixels (for video/image). */
33
+ width?: number;
34
+ /** Height in pixels (for video/image). */
35
+ height?: number;
36
+ /** The id of the project this asset is attached to, or null when it belongs to no project. */
37
+ projectId?: Sync.ProjectId;
38
+ /** Stable API proxy path for authenticated media playback. */
39
+ proxyPath?: string | null;
40
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A unique identifier for an asset.
6
+ */
7
+ export type AssetId = string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The source type of the asset.
6
+ */
7
+ export type AssetInputType = "UPLOAD" | "URL" | "RECORD" | "TTS" | "EXTRACT" | "DUB" | "DUB_SOURCE" | "PLATFORM_IMPORT" | "DIALOGUE_EDIT" | "PLUGIN_PREMIERE_FILE" | "PLUGIN_PREMIERE_TIMELINE_SELECTION" | "PLUGIN_RESOLVE_FILE" | "PLUGIN_RESOLVE_TIMELINE_SELECTION";
8
+ export declare const AssetInputType: {
9
+ readonly Upload: "UPLOAD";
10
+ readonly Url: "URL";
11
+ readonly Record: "RECORD";
12
+ readonly Tts: "TTS";
13
+ readonly Extract: "EXTRACT";
14
+ readonly Dub: "DUB";
15
+ readonly DubSource: "DUB_SOURCE";
16
+ readonly PlatformImport: "PLATFORM_IMPORT";
17
+ readonly DialogueEdit: "DIALOGUE_EDIT";
18
+ readonly PluginPremiereFile: "PLUGIN_PREMIERE_FILE";
19
+ readonly PluginPremiereTimelineSelection: "PLUGIN_PREMIERE_TIMELINE_SELECTION";
20
+ readonly PluginResolveFile: "PLUGIN_RESOLVE_FILE";
21
+ readonly PluginResolveTimelineSelection: "PLUGIN_RESOLVE_TIMELINE_SELECTION";
22
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AssetInputType = void 0;
7
+ exports.AssetInputType = {
8
+ Upload: "UPLOAD",
9
+ Url: "URL",
10
+ Record: "RECORD",
11
+ Tts: "TTS",
12
+ Extract: "EXTRACT",
13
+ Dub: "DUB",
14
+ DubSource: "DUB_SOURCE",
15
+ PlatformImport: "PLATFORM_IMPORT",
16
+ DialogueEdit: "DIALOGUE_EDIT",
17
+ PluginPremiereFile: "PLUGIN_PREMIERE_FILE",
18
+ PluginPremiereTimelineSelection: "PLUGIN_PREMIERE_TIMELINE_SELECTION",
19
+ PluginResolveFile: "PLUGIN_RESOLVE_FILE",
20
+ PluginResolveTimelineSelection: "PLUGIN_RESOLVE_TIMELINE_SELECTION",
21
+ };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Sorting options for listing assets.
6
+ */
7
+ export type AssetSort = "nameAsc" | "nameDesc" | "dateAsc" | "dateDesc" | "durationAsc" | "durationDesc" | "sizeAsc" | "sizeDesc" | "kindAsc" | "kindDesc";
8
+ export declare const AssetSort: {
9
+ readonly NameAsc: "nameAsc";
10
+ readonly NameDesc: "nameDesc";
11
+ readonly DateAsc: "dateAsc";
12
+ readonly DateDesc: "dateDesc";
13
+ readonly DurationAsc: "durationAsc";
14
+ readonly DurationDesc: "durationDesc";
15
+ readonly SizeAsc: "sizeAsc";
16
+ readonly SizeDesc: "sizeDesc";
17
+ readonly KindAsc: "kindAsc";
18
+ readonly KindDesc: "kindDesc";
19
+ };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AssetSort = void 0;
7
+ exports.AssetSort = {
8
+ NameAsc: "nameAsc",
9
+ NameDesc: "nameDesc",
10
+ DateAsc: "dateAsc",
11
+ DateDesc: "dateDesc",
12
+ DurationAsc: "durationAsc",
13
+ DurationDesc: "durationDesc",
14
+ SizeAsc: "sizeAsc",
15
+ SizeDesc: "sizeDesc",
16
+ KindAsc: "kindAsc",
17
+ KindDesc: "kindDesc",
18
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The type of asset file.
6
+ */
7
+ export type AssetType = "AUDIO" | "VIDEO" | "IMAGE";
8
+ export declare const AssetType: {
9
+ readonly Audio: "AUDIO";
10
+ readonly Video: "VIDEO";
11
+ readonly Image: "IMAGE";
12
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AssetType = void 0;
7
+ exports.AssetType = {
8
+ Audio: "AUDIO",
9
+ Video: "VIDEO",
10
+ Image: "IMAGE",
11
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * A presigned upload target.
6
+ */
7
+ export interface AssetUploadResponse {
8
+ /** The presigned S3 URL to PUT the file bytes to (with the same Content-Type). */
9
+ uploadUrl: string;
10
+ /** The final public URL of the file. Register it as an asset via POST /v2/assets once the upload completes. */
11
+ url: string;
12
+ /** Seconds until the presigned uploadUrl expires. */
13
+ expiresIn: number;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Visibility scope for the asset.
6
+ */
7
+ export type AssetVisibility =
8
+ /**
9
+ * Asset is visible only to the user who created it. */
10
+ "USER"
11
+ /**
12
+ * Asset is visible to all members of the organization. */
13
+ | "ORGANIZATION";
14
+ export declare const AssetVisibility: {
15
+ readonly User: "USER";
16
+ readonly Organization: "ORGANIZATION";
17
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AssetVisibility = void 0;
7
+ exports.AssetVisibility = {
8
+ User: "USER",
9
+ Organization: "ORGANIZATION",
10
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Sync from "../../../index";
5
+ /**
6
+ * Attach an existing asset to a project.
7
+ */
8
+ export interface AttachProjectAssetRequest {
9
+ /** The id of the asset to attach. The asset must belong to your organization and not be deleted. */
10
+ assetId: Sync.AssetId;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +1,16 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Sync from "../../../index";
4
5
  /**
5
6
  * Recorded/Captured audio input
6
7
  */
7
8
  export interface Audio {
8
9
  type: "audio";
9
- /** URL of the audio to be used for generation */
10
- url: string;
10
+ /** URL of the audio to be used for generation. Either `url` or `assetId` must be provided. */
11
+ url?: string;
12
+ /** ID of an audio asset from your media library. Either `url` or `assetId` must be provided. */
13
+ assetId?: Sync.AssetId;
11
14
  /** Reference identifier for this audio input, used to link audio inputs to specific segments when using [segments](/api-reference/api/generate-api/create#request.body.segments). Required when using segments array. */
12
15
  refId?: string;
13
16
  }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Sync from "../../../index";
5
+ /**
6
+ * Returned with a 429 `concurrency_limit_reached` when a batch cannot start. On Scale and above, you already run as many batches as your plan's concurrency limit. Below Scale, every batch record runs as a generation, and the batch has more records than your plan has free generation slots. The response also carries a `Retry-After` header (seconds) and an `X-Sync-Concurrency-Limit` header, plus `X-Sync-Active-Generations` below Scale.
7
+ */
8
+ export interface BatchConcurrencyError {
9
+ /** The HTTP status code (429). */
10
+ statusCode: number;
11
+ /** Machine-readable error code (`concurrency_limit_reached`). */
12
+ errorCode?: string;
13
+ /** A human-readable description of the error. */
14
+ message: Sync.GenerationErrorMessage;
15
+ /** The number of batches you currently have in progress. */
16
+ activeBatches?: number;
17
+ /** Below Scale only: generations in progress, batch records included. The batch can hold at most `concurrencyLimit` minus this many records. */
18
+ activeGenerations?: number;
19
+ /** Your plan's concurrency limit: concurrent batches on Scale and above, concurrent generations below Scale. */
20
+ concurrencyLimit?: number;
21
+ /** Suggested number of seconds to wait before retrying. Mirrors the `Retry-After` header. */
22
+ retryAfterSeconds?: number;
23
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,8 +10,8 @@ export interface BatchResponse {
10
10
  status: Sync.BatchStatus;
11
11
  /** Metrics about the batch processing progress. */
12
12
  metrics: Sync.BatchMetrics;
13
- /** The webhook URL for batch status notifications. */
13
+ /** The webhook URL for batch status notifications. Deliveries include a Sync-Signature header signed with the organization webhook secret. */
14
14
  webhookUrl?: string;
15
- /** The URL to download the batch results file (available when completed). */
15
+ /** The URL to download the batch results file when completed. A GET request follows a 302 redirect to a signed JSONL result URL. */
16
16
  outputUrl: string;
17
17
  }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Sync from "../../../index";
5
+ /**
6
+ * One batch record, the same object as one line of a batch JSONL file.
7
+ */
8
+ export interface BatchRow {
9
+ /** Your identifier for this record, unique within the batch. The results file returns it on the line for this record. */
10
+ request_id: string;
11
+ /** Must be `/v2/generate`. */
12
+ endpoint: "/v2/generate";
13
+ /** The generation request, as for POST /v2/generate. A row with `dialogueEdit` (early access) sends exactly one video input, the source video of that preview, and no audio input. */
14
+ payload: Sync.CreateGenerationDto;
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type BlendingMode = "default" | "advanced" | "disabled";
5
+ export declare const BlendingMode: {
6
+ readonly Default: "default";
7
+ readonly Advanced: "advanced";
8
+ readonly Disabled: "disabled";
9
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BlendingMode = void 0;
7
+ exports.BlendingMode = {
8
+ Default: "default",
9
+ Advanced: "advanced",
10
+ Disabled: "disabled",
11
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The result of cloning a voice.
6
+ */
7
+ export interface ClonedVoiceResponse {
8
+ /** Sync's UUID for the clone; use it to retrieve or delete the voice. */
9
+ id: string;
10
+ /** Provider voice id, also accepted in TTS and generation text inputs. */
11
+ voiceId: string;
12
+ /** The name of the cloned voice. */
13
+ name: string;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Sync from "../../../index";
5
+ /**
6
+ * Register a media URL as a reusable asset. Use the returned asset id in generation inputs (input[].assetId) or as a voice clone sample.
7
+ */
8
+ export interface CreateAssetRequest {
9
+ /** The public URL of the media to register — e.g. the url returned by POST /v2/assets/upload. Registration verifies the upload happened and enforces plan limits on the actual file size. */
10
+ url: string;
11
+ /** The type of asset. */
12
+ type: Sync.AssetType;
13
+ /** An optional display name for the asset. */
14
+ name?: string;
15
+ /** Who can see the asset. Defaults to USER. */
16
+ visibility?: Sync.AssetVisibility;
17
+ /** Optionally attach the asset to a project (created via POST /v2/projects) so it appears in Studio under that project's media. Must reference a project in your organization — otherwise the request is rejected with 422. */
18
+ projectId?: Sync.ProjectId;
19
+ /** The source of the asset. */
20
+ inputType?: Sync.AssetInputType;
21
+ /** Optional thumbnail URL for the asset. */
22
+ thumbnailUrl?: string | null;
23
+ /** File size in bytes. */
24
+ size?: number;
25
+ /** File format or extension. */
26
+ format?: string;
27
+ /** Media duration in seconds. */
28
+ durationSeconds?: number;
29
+ /** Width in pixels for video or image assets. */
30
+ width?: number;
31
+ /** Height in pixels for video or image assets. */
32
+ height?: number;
33
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Request a presigned URL to upload a local file.
6
+ */
7
+ export interface CreateAssetUploadRequest {
8
+ /** The name of the file to upload. */
9
+ fileName: string;
10
+ /** The MIME content type of the file (e.g. video/mp4). */
11
+ contentType: string;
12
+ /** The size of the file in bytes. Single uploads are capped at 5GB. */
13
+ size: number;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Sync from "../../../index";
5
+ /**
6
+ * Request to apply word-level edits to a transcript and synthesize preview audio.
7
+ */
8
+ export interface CreateDialogueEditDto {
9
+ /** The transcript the edits refer to, as returned by GET /v2/transcriptions/{id}. Edits name words by their id in this transcript. Word timings are in milliseconds from the start of the source video. */
10
+ transcript: Sync.Transcript;
11
+ /** The edits to apply: change replaces one word (wordId, replacement), remove cuts a contiguous run of words (wordIds). Between 1 and 100 edits per job. */
12
+ edits: Sync.DialogueEditOperation[];
13
+ /** URL of the source video the transcript was made from, hosted in sync. storage (upload it via POST /v2/assets/upload first). */
14
+ sourceVideoUrl: string;
15
+ /** Start of the edited window, in milliseconds from the start of the source. Use the same window the transcript was made for. Defaults to 0. An API-key request must leave startMs and endMs unset; the edit then covers the whole video. */
16
+ startMs?: number;
17
+ /** End of the edited window, in milliseconds from the start of the source. Omit to run to the end. The window cannot exceed 10 minutes. An API-key request must leave startMs and endMs unset to edit the whole video. */
18
+ endMs?: number;
19
+ /** Opaque voice id returned as voiceId by an earlier dialogue-edit job of the same source. Reusing it skips cloning the voice again. Omit on the first job for a source. Ids your organization has not used before are ignored. */
20
+ voiceId?: string;
21
+ /** Optional id of a project in your organization to file the job under. */
22
+ projectId?: Sync.ProjectId;
23
+ /** Id of the completed dialogue-edit job this request revises, when regenerating a preview after adjusting the edits. Informational lineage only; unknown ids are ignored. */
24
+ rerunOfJobId?: Sync.DialogueEditJobId;
25
+ /** The completed transcription job this edit is based on. Send it so the edit and the transcript agree on the source: the request is refused when that job's source, window or words do not match this edit. */
26
+ transcriptionJobId?: Sync.TranscriptionJobId;
27
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,14 +5,22 @@ import * as Sync from "../../../index";
5
5
  export interface CreateGenerationDto {
6
6
  /** name of the model to use for generation. */
7
7
  model: Sync.Model;
8
- /** Array of input objects. Must include one video input item and at least one audio input item. Audio input items can be provided as either: recorded/captured audio url or a text-to-speech input with tts provider configuration. When using segments, multiple audio inputs can be provided with unique refId values. */
8
+ /** Normal lipsync requests must include exactly one visual input (video or image) and one audio or text input. Dubbed lipsync requests using dubParams must include exactly one video input and no audio or text input, because Sync extracts the dubbing source audio from that video. Image inputs are only supported with the sync-3 model. When using segments, audio or text inputs can carry unique refId values. */
9
9
  input: Sync.Input[];
10
10
  /** additional options available for generation. */
11
11
  options?: Sync.GenerationOptions;
12
12
  /** segments definition list. When provided, allows defining one or more video segments with different audio inputs for each segment. Each segment specifies a time range and references an audio input by refId. */
13
13
  segments?: Sync.GenerationSegment[];
14
- /** webhook url for generation status updates. once the generation completes we will send a POST request to the webhook url with the generation data. */
14
+ /** One audio input that plays over the whole finished output from its first second, replacing the sound of every part, lipsynced or not. Use it with segments, for example one dubbed track for a whole video where some segments set lipsync to false. When any segment sets lipsync to false and this is omitted, the only audio input is used. Not available with a custom output bucket, zero data retention or a retention override. */
15
+ outputAudio?: Sync.OutputAudio;
16
+ /** Webhook URL for generation status updates. When the generation reaches a terminal state, Sync sends a POST request with the generation payload and a Sync-Signature header. Verify the header with the organization webhook secret from GET /v2/organizations/webhook/secret. HTTPS is strongly recommended. */
15
17
  webhookUrl?: string;
16
- /** Base filename for the generated output without extension. The .mp4 extension will be added automatically. Only alphanumeric characters, underscores, and hyphens are allowed, up to 255 characters. */
18
+ /** Base filename for the generated output without extension. The .mp4 extension will be added automatically. Only alphanumeric characters, underscores, and hyphens are allowed, up to 255 characters. */
17
19
  outputFileName?: string;
20
+ /** Dubbing parameters. When present, audio is extracted from the single video input, dubbed via ElevenLabs into the target language, and then lipsync is run with the dubbed audio. Do not include audio or text inputs with dubParams; requests that send both are rejected. */
21
+ dubParams?: Sync.DubDto;
22
+ /** Optionally attach this generation to a project (created via POST /v2/projects) so it appears in Studio under that project. Must reference a project in your organization — otherwise the request is rejected with 422. */
23
+ projectId?: Sync.ProjectId;
24
+ /** Use the id of a completed dialogue edit from POST /v2/dialogue-edits to supply the audio and edited regions. Requires a preview that ran segment lipsync and section expansion (see the job's segmentLipsyncEnabled and sectionExpansionEnabled). Send exactly one video input, the same video the dialogue edit was made from, and no audio input, segments or dubParams. Billing, status, wait and webhooks work as for any generation. */
25
+ dialogueEdit?: Sync.DialogueEditReference;
18
26
  }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Sync from "../../../index";
5
+ /**
6
+ * Create a project to group related generations and assets.
7
+ */
8
+ export interface CreateProjectRequest {
9
+ /** Optional client-supplied project id (UUID) for idempotent creation. Re-sending the same id returns the existing project instead of creating a duplicate; the other request fields are ignored on such a replay. Fails with 409 if the id already belongs to a different user or organization, or to a deleted project. */
10
+ id?: string;
11
+ /** A name for the project. */
12
+ name: string;
13
+ /** An optional description for the project. */
14
+ description?: string;
15
+ /** Who can see the project. Defaults to USER (visible only to the owner). */
16
+ visibility?: Sync.ProjectVisibility;
17
+ /** The project mode. Defaults to CREATOR. */
18
+ mode?: Sync.ProjectMode;
19
+ /** The default top-level creator workflow for this project. */
20
+ defaultWorkflow?: Sync.CreatorWorkflow;
21
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Sync from "../../../index";
5
+ /**
6
+ * Request to transcribe a window of a source. Provide exactly one of sourceVideoUrl or sourceAudioUrl.
7
+ */
8
+ export interface CreateTranscriptionDto {
9
+ /** URL of the source video, hosted in sync. storage (upload it via POST /v2/assets/upload first). Provide exactly one of sourceVideoUrl or sourceAudioUrl. */
10
+ sourceVideoUrl?: string;
11
+ /** URL of audio already extracted from the source, hosted in sync. storage. Skips the server-side audio extraction. Provide exactly one of sourceVideoUrl or sourceAudioUrl. */
12
+ sourceAudioUrl?: string;
13
+ /** Start of the window to transcribe, in milliseconds from the start of the source. Defaults to 0. */
14
+ startMs?: number;
15
+ /** End of the window to transcribe, in milliseconds from the start of the source. Omit to transcribe to the end. The window cannot exceed 60 minutes. */
16
+ endMs?: number;
17
+ /** Refuse the source if it is longer than this many seconds. Useful when a later step, such as a dialogue edit (10 minute window), cannot consume a longer transcript. Cannot exceed the endpoint ceiling of 3600 seconds. */
18
+ maxSourceSeconds?: number;
19
+ /** Optional id of a project in your organization to file the job under. */
20
+ projectId?: Sync.ProjectId;
21
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Sync from "../../../index";
5
+ /**
6
+ * Request body for synthesizing text-to-speech audio.
7
+ */
8
+ export interface CreateTtsRequest {
9
+ /** The text to synthesize into speech (1–5,000 characters). */
10
+ script: string;
11
+ /** A voice id to synthesize with — either an ElevenLabs voice id (discover via GET /v2/voices) or the id of a voice cloned via POST /v2/voices. */
12
+ voiceId: string;
13
+ /** The voice provider to synthesize with. Currently `elevenlabs`. */
14
+ provider: Sync.VoiceProvider;
15
+ /** Voice stability (0-1). Higher is more consistent, lower is more expressive. */
16
+ stability?: number;
17
+ /** How closely the synthesized audio matches the original voice (0-1). */
18
+ similarityBoost?: number;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Sync from "../../../index";
5
+ /**
6
+ * Request body for cloning a voice. Required validation: provide exactly one of a sync. labs-hosted `url`, an `assetId` (audio or video), or `sampleUrls`. Upload local files with POST /v2/assets/upload first. Video sources have their audio track extracted automatically.
7
+ */
8
+ export interface CreateVoiceRequest {
9
+ /** A name for the cloned voice, 1–100 characters. Names starting with edit-dialogue- after trimming whitespace and ignoring case are reserved. */
10
+ name: string;
11
+ /** The provider to clone the voice with. Currently `elevenlabs`. */
12
+ provider: Sync.VoiceProvider;
13
+ /** A sync. labs-hosted url of the audio or video sample to clone from. Provide exactly one of `url`, `assetId` or `sampleUrls`. */
14
+ url?: string;
15
+ /** The id of a previously uploaded audio or video asset to clone from. Provide exactly one of `url`, `assetId` or `sampleUrls`. */
16
+ assetId?: string;
17
+ /** 1 to 10 sync. labs-hosted urls of audio or video samples of the same voice, cloned together. Provide exactly one of `url`, `assetId` or `sampleUrls`. */
18
+ sampleUrls?: string[];
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });