@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.
- package/Client.d.ts +34 -1
- package/Client.js +59 -4
- package/api/resources/account/client/Client.d.ts +45 -0
- package/api/resources/account/client/Client.js +130 -0
- package/api/resources/account/client/index.d.ts +1 -0
- package/api/resources/account/client/index.js +2 -0
- package/api/resources/account/index.d.ts +2 -0
- package/api/resources/account/index.js +18 -0
- package/api/resources/account/types/AccountActiveJobs.d.ts +9 -0
- package/api/resources/account/types/AccountActiveJobs.js +5 -0
- package/api/resources/account/types/AccountAllowanceUsage.d.ts +11 -0
- package/api/resources/account/types/AccountAllowanceUsage.js +5 -0
- package/api/resources/account/types/AccountBillingModel.d.ts +10 -0
- package/api/resources/account/types/AccountBillingModel.js +12 -0
- package/api/resources/account/types/AccountBillingPeriod.d.ts +7 -0
- package/api/resources/account/types/AccountBillingPeriod.js +5 -0
- package/api/resources/account/types/AccountCredentialType.d.ts +9 -0
- package/api/resources/account/types/AccountCredentialType.js +11 -0
- package/api/resources/account/types/AccountCredits.d.ts +11 -0
- package/api/resources/account/types/AccountCredits.js +5 -0
- package/api/resources/account/types/AccountFreeAllowance.d.ts +12 -0
- package/api/resources/account/types/AccountFreeAllowance.js +5 -0
- package/api/resources/account/types/AccountLimits.d.ts +13 -0
- package/api/resources/account/types/AccountLimits.js +5 -0
- package/api/resources/account/types/AccountOrganization.d.ts +9 -0
- package/api/resources/account/types/AccountOrganization.js +5 -0
- package/api/resources/account/types/AccountOverview.d.ts +31 -0
- package/api/resources/account/types/AccountOverview.js +5 -0
- package/api/resources/account/types/AccountPlan.d.ts +9 -0
- package/api/resources/account/types/AccountPlan.js +5 -0
- package/api/resources/account/types/AccountUser.d.ts +8 -0
- package/api/resources/account/types/AccountUser.js +5 -0
- package/api/resources/account/types/index.d.ts +12 -0
- package/api/resources/account/types/index.js +28 -0
- package/api/resources/assets/client/Client.d.ts +143 -0
- package/api/resources/assets/client/Client.js +515 -0
- package/api/resources/assets/client/index.d.ts +1 -0
- package/api/resources/assets/client/index.js +17 -0
- package/api/resources/assets/client/requests/ListAssetsRequest.d.ts +37 -0
- package/api/resources/assets/client/requests/ListAssetsRequest.js +5 -0
- package/api/resources/assets/client/requests/index.d.ts +1 -0
- package/api/resources/assets/client/requests/index.js +2 -0
- package/api/resources/assets/index.d.ts +1 -0
- package/api/resources/assets/index.js +17 -0
- package/api/resources/batch/client/Client.d.ts +283 -2
- package/api/resources/batch/client/Client.js +342 -4
- package/api/resources/batch/client/requests/CreateBatchFromRowsRequest.d.ts +279 -0
- package/api/resources/batch/client/requests/CreateBatchFromRowsRequest.js +5 -0
- package/api/resources/batch/client/requests/CreateBatchRequest.d.ts +2 -2
- package/api/resources/batch/client/requests/index.d.ts +1 -0
- package/api/resources/common/errors/ConflictError.d.ts +9 -0
- package/api/resources/common/errors/ConflictError.js +52 -0
- package/api/resources/common/errors/ForbiddenError.d.ts +9 -0
- package/api/resources/common/errors/ForbiddenError.js +52 -0
- package/api/resources/common/errors/GatewayTimeoutError.d.ts +9 -0
- package/api/resources/common/errors/GatewayTimeoutError.js +52 -0
- package/api/resources/common/errors/GenerationDeletedError.d.ts +9 -0
- package/api/resources/common/errors/GenerationDeletedError.js +52 -0
- package/api/resources/common/errors/GenerationTooManyRequestsError.d.ts +9 -0
- package/api/resources/common/errors/GenerationTooManyRequestsError.js +52 -0
- package/api/resources/common/errors/PayloadTooLargeError.d.ts +9 -0
- package/api/resources/common/errors/PayloadTooLargeError.js +52 -0
- package/api/resources/common/errors/ServiceUnavailableError.d.ts +9 -0
- package/api/resources/common/errors/ServiceUnavailableError.js +52 -0
- package/api/resources/common/errors/TooManyRequestsError.d.ts +1 -1
- package/api/resources/common/errors/UnprocessableEntityError.d.ts +9 -0
- package/api/resources/common/errors/UnprocessableEntityError.js +52 -0
- package/api/resources/common/errors/VoiceCloneTooManyRequestsError.d.ts +9 -0
- package/api/resources/common/errors/VoiceCloneTooManyRequestsError.js +52 -0
- package/api/resources/common/errors/index.d.ts +9 -0
- package/api/resources/common/errors/index.js +9 -0
- package/api/resources/common/types/ActiveSpeaker.d.ts +12 -0
- package/api/resources/common/types/Asset.d.ts +40 -0
- package/api/resources/common/types/Asset.js +5 -0
- package/api/resources/common/types/AssetId.d.ts +7 -0
- package/api/resources/common/types/AssetId.js +5 -0
- package/api/resources/common/types/AssetInputType.d.ts +22 -0
- package/api/resources/common/types/AssetInputType.js +21 -0
- package/api/resources/common/types/AssetSort.d.ts +19 -0
- package/api/resources/common/types/AssetSort.js +18 -0
- package/api/resources/common/types/AssetType.d.ts +12 -0
- package/api/resources/common/types/AssetType.js +11 -0
- package/api/resources/common/types/AssetUploadResponse.d.ts +14 -0
- package/api/resources/common/types/AssetUploadResponse.js +5 -0
- package/api/resources/common/types/AssetVisibility.d.ts +17 -0
- package/api/resources/common/types/AssetVisibility.js +10 -0
- package/api/resources/common/types/AttachProjectAssetRequest.d.ts +11 -0
- package/api/resources/common/types/AttachProjectAssetRequest.js +5 -0
- package/api/resources/common/types/Audio.d.ts +5 -2
- package/api/resources/common/types/BatchConcurrencyError.d.ts +23 -0
- package/api/resources/common/types/BatchConcurrencyError.js +5 -0
- package/api/resources/common/types/BatchResponse.d.ts +2 -2
- package/api/resources/common/types/BatchRow.d.ts +15 -0
- package/api/resources/common/types/BatchRow.js +5 -0
- package/api/resources/common/types/BlendingMode.d.ts +9 -0
- package/api/resources/common/types/BlendingMode.js +11 -0
- package/api/resources/common/types/ClonedVoiceResponse.d.ts +14 -0
- package/api/resources/common/types/ClonedVoiceResponse.js +5 -0
- package/api/resources/common/types/CreateAssetRequest.d.ts +33 -0
- package/api/resources/common/types/CreateAssetRequest.js +5 -0
- package/api/resources/common/types/CreateAssetUploadRequest.d.ts +14 -0
- package/api/resources/common/types/CreateAssetUploadRequest.js +5 -0
- package/api/resources/common/types/CreateDialogueEditDto.d.ts +27 -0
- package/api/resources/common/types/CreateDialogueEditDto.js +5 -0
- package/api/resources/common/types/CreateGenerationDto.d.ts +11 -3
- package/api/resources/common/types/CreateProjectRequest.d.ts +21 -0
- package/api/resources/common/types/CreateProjectRequest.js +5 -0
- package/api/resources/common/types/CreateTranscriptionDto.d.ts +21 -0
- package/api/resources/common/types/CreateTranscriptionDto.js +5 -0
- package/api/resources/common/types/CreateTtsRequest.d.ts +19 -0
- package/api/resources/common/types/CreateTtsRequest.js +5 -0
- package/api/resources/common/types/CreateVoiceRequest.d.ts +19 -0
- package/api/resources/common/types/CreateVoiceRequest.js +5 -0
- package/api/resources/common/types/CreatorWorkflow.d.ts +37 -0
- package/api/resources/common/types/CreatorWorkflow.js +15 -0
- package/api/resources/common/types/DeleteAssetResponse.d.ts +11 -0
- package/api/resources/common/types/DeleteAssetResponse.js +5 -0
- package/api/resources/common/types/DeleteProjectResponse.d.ts +11 -0
- package/api/resources/common/types/DeleteProjectResponse.js +5 -0
- package/api/resources/common/types/DialogueEditChange.d.ts +14 -0
- package/api/resources/common/types/DialogueEditChange.js +5 -0
- package/api/resources/common/types/DialogueEditError.d.ts +15 -0
- package/api/resources/common/types/DialogueEditError.js +5 -0
- package/api/resources/common/types/DialogueEditErrorCode.d.ts +18 -0
- package/api/resources/common/types/DialogueEditErrorCode.js +17 -0
- package/api/resources/common/types/DialogueEditFailedSlot.d.ts +9 -0
- package/api/resources/common/types/DialogueEditFailedSlot.js +5 -0
- package/api/resources/common/types/DialogueEditJob.d.ts +49 -0
- package/api/resources/common/types/DialogueEditJob.js +5 -0
- package/api/resources/common/types/DialogueEditJobId.d.ts +7 -0
- package/api/resources/common/types/DialogueEditJobId.js +5 -0
- package/api/resources/common/types/DialogueEditJobStatus.d.ts +14 -0
- package/api/resources/common/types/DialogueEditJobStatus.js +13 -0
- package/api/resources/common/types/DialogueEditOperation.d.ts +16 -0
- package/api/resources/common/types/DialogueEditOperation.js +5 -0
- package/api/resources/common/types/DialogueEditPartialDetail.d.ts +17 -0
- package/api/resources/common/types/DialogueEditPartialDetail.js +5 -0
- package/api/resources/common/types/DialogueEditReference.d.ts +11 -0
- package/api/resources/common/types/DialogueEditReference.js +5 -0
- package/api/resources/common/types/DialogueEditRemoval.d.ts +10 -0
- package/api/resources/common/types/DialogueEditRemoval.js +5 -0
- package/api/resources/common/types/DialogueEditResultSlot.d.ts +19 -0
- package/api/resources/common/types/DialogueEditResultSlot.js +5 -0
- package/api/resources/common/types/DialogueEditResultSlotKind.d.ts +12 -0
- package/api/resources/common/types/DialogueEditResultSlotKind.js +11 -0
- package/api/resources/common/types/DialogueEditRetimeFailureSection.d.ts +14 -0
- package/api/resources/common/types/DialogueEditRetimeFailureSection.js +5 -0
- package/api/resources/common/types/DubDto.d.ts +17 -0
- package/api/resources/common/types/DubDto.js +5 -0
- package/api/resources/common/types/DubLanguage.d.ts +105 -0
- package/api/resources/common/types/DubLanguage.js +101 -0
- package/api/resources/common/types/DubProviderName.d.ts +10 -0
- package/api/resources/common/types/DubProviderName.js +9 -0
- package/api/resources/common/types/DubSourceLanguage.d.ts +106 -0
- package/api/resources/common/types/DubSourceLanguage.js +102 -0
- package/api/resources/common/types/ElevenLabs.d.ts +5 -1
- package/api/resources/common/types/ErrorCatalogEntry.d.ts +14 -0
- package/api/resources/common/types/ErrorCatalogEntry.js +5 -0
- package/api/resources/common/types/EstimateBreakdown.d.ts +13 -0
- package/api/resources/common/types/EstimateBreakdown.js +5 -0
- package/api/resources/common/types/EstimateCostRequest.d.ts +16 -0
- package/api/resources/common/types/EstimateCostRequest.js +5 -0
- package/api/resources/common/types/EstimateDubbingBilling.d.ts +10 -0
- package/api/resources/common/types/EstimateDubbingBilling.js +12 -0
- package/api/resources/common/types/EstimateDubbingPart.d.ts +12 -0
- package/api/resources/common/types/EstimateDubbingPart.js +5 -0
- package/api/resources/common/types/EstimateDurationCheck.d.ts +22 -0
- package/api/resources/common/types/EstimateDurationCheck.js +5 -0
- package/api/resources/common/types/EstimateLipsyncPart.d.ts +9 -0
- package/api/resources/common/types/EstimateLipsyncPart.js +5 -0
- package/api/resources/common/types/EstimateWorkflow.d.ts +11 -0
- package/api/resources/common/types/EstimateWorkflow.js +10 -0
- package/api/resources/common/types/EstimatedGenerationCost.d.ts +7 -0
- package/api/resources/common/types/Generation.d.ts +12 -2
- package/api/resources/common/types/GenerationConcurrencyError.d.ts +21 -0
- package/api/resources/common/types/GenerationConcurrencyError.js +5 -0
- package/api/resources/common/types/GenerationError.d.ts +16 -0
- package/api/resources/common/types/GenerationEstimate.d.ts +39 -0
- package/api/resources/common/types/GenerationEstimate.js +5 -0
- package/api/resources/common/types/GenerationEstimateConfidence.d.ts +12 -0
- package/api/resources/common/types/GenerationEstimateConfidence.js +11 -0
- package/api/resources/common/types/GenerationEstimateResolutionSource.d.ts +12 -0
- package/api/resources/common/types/GenerationEstimateResolutionSource.js +11 -0
- package/api/resources/common/types/GenerationEstimateScope.d.ts +11 -0
- package/api/resources/common/types/GenerationEstimateScope.js +10 -0
- package/api/resources/common/types/GenerationEstimateSource.d.ts +15 -0
- package/api/resources/common/types/GenerationEstimateSource.js +14 -0
- package/api/resources/common/types/GenerationOptions.d.ts +22 -4
- package/api/resources/common/types/GenerationSegment.d.ts +14 -6
- package/api/resources/common/types/Image.d.ts +16 -0
- package/api/resources/common/types/Image.js +5 -0
- package/api/resources/common/types/Input.d.ts +1 -1
- package/api/resources/common/types/Model.d.ts +2 -1
- package/api/resources/common/types/Model.js +1 -0
- package/api/resources/common/types/ModelInfo.d.ts +22 -0
- package/api/resources/common/types/ModelInfo.js +5 -0
- package/api/resources/common/types/OutputAudio.d.ts +10 -0
- package/api/resources/common/types/OutputAudio.js +5 -0
- package/api/resources/common/types/OutputFormat.d.ts +8 -0
- package/api/resources/common/types/OutputFormat.js +10 -0
- package/api/resources/common/types/PaginatedAssetsResponse.d.ts +15 -0
- package/api/resources/common/types/PaginatedAssetsResponse.js +5 -0
- package/api/resources/common/types/PaginatedProjectsResponse.d.ts +13 -0
- package/api/resources/common/types/PaginatedProjectsResponse.js +5 -0
- package/api/resources/common/types/Project.d.ts +24 -0
- package/api/resources/common/types/Project.js +5 -0
- package/api/resources/common/types/ProjectGeneration.d.ts +41 -0
- package/api/resources/common/types/ProjectGeneration.js +5 -0
- package/api/resources/common/types/ProjectGenerationError.d.ts +9 -0
- package/api/resources/common/types/ProjectGenerationError.js +5 -0
- package/api/resources/common/types/ProjectGenerationInput.d.ts +18 -0
- package/api/resources/common/types/ProjectGenerationInput.js +5 -0
- package/api/resources/common/types/ProjectGenerationModel.d.ts +12 -0
- package/api/resources/common/types/ProjectGenerationModel.js +5 -0
- package/api/resources/common/types/ProjectGenerationProvider.d.ts +10 -0
- package/api/resources/common/types/ProjectGenerationProvider.js +5 -0
- package/api/resources/common/types/ProjectGenerationSegment.d.ts +14 -0
- package/api/resources/common/types/ProjectGenerationSegment.js +5 -0
- package/api/resources/common/types/ProjectId.d.ts +7 -0
- package/api/resources/common/types/ProjectId.js +5 -0
- package/api/resources/common/types/ProjectListItem.d.ts +28 -0
- package/api/resources/common/types/ProjectListItem.js +5 -0
- package/api/resources/common/types/ProjectMode.d.ts +11 -0
- package/api/resources/common/types/ProjectMode.js +10 -0
- package/api/resources/common/types/ProjectSort.d.ts +11 -0
- package/api/resources/common/types/ProjectSort.js +10 -0
- package/api/resources/common/types/ProjectVisibility.d.ts +17 -0
- package/api/resources/common/types/ProjectVisibility.js +10 -0
- package/api/resources/common/types/SegmentAudioInput.d.ts +2 -2
- package/api/resources/common/types/SegmentOptionsOverride.d.ts +17 -0
- package/api/resources/common/types/SegmentOptionsOverride.js +5 -0
- package/api/resources/common/types/SyncMode.d.ts +1 -1
- package/api/resources/common/types/Transcript.d.ts +13 -0
- package/api/resources/common/types/Transcript.js +5 -0
- package/api/resources/common/types/TranscriptSegment.d.ts +13 -0
- package/api/resources/common/types/TranscriptSegment.js +5 -0
- package/api/resources/common/types/TranscriptWord.d.ts +16 -0
- package/api/resources/common/types/TranscriptWord.js +5 -0
- package/api/resources/common/types/TranscriptionDifficulty.d.ts +13 -0
- package/api/resources/common/types/TranscriptionDifficulty.js +5 -0
- package/api/resources/common/types/TranscriptionDifficultyReason.d.ts +17 -0
- package/api/resources/common/types/TranscriptionDifficultyReason.js +16 -0
- package/api/resources/common/types/TranscriptionDifficultyTier.d.ts +12 -0
- package/api/resources/common/types/TranscriptionDifficultyTier.js +11 -0
- package/api/resources/common/types/TranscriptionError.d.ts +13 -0
- package/api/resources/common/types/TranscriptionError.js +5 -0
- package/api/resources/common/types/TranscriptionErrorCode.d.ts +16 -0
- package/api/resources/common/types/TranscriptionErrorCode.js +15 -0
- package/api/resources/common/types/TranscriptionJob.d.ts +35 -0
- package/api/resources/common/types/TranscriptionJob.js +5 -0
- package/api/resources/common/types/TranscriptionJobId.d.ts +7 -0
- package/api/resources/common/types/TranscriptionJobId.js +5 -0
- package/api/resources/common/types/TranscriptionJobStatus.d.ts +13 -0
- package/api/resources/common/types/TranscriptionJobStatus.js +12 -0
- package/api/resources/common/types/TtsGenerationResponse.d.ts +14 -0
- package/api/resources/common/types/TtsGenerationResponse.js +5 -0
- package/api/resources/common/types/TtsJob.d.ts +25 -0
- package/api/resources/common/types/TtsJob.js +5 -0
- package/api/resources/common/types/TtsJobError.d.ts +13 -0
- package/api/resources/common/types/TtsJobError.js +5 -0
- package/api/resources/common/types/TtsJobErrorCode.d.ts +16 -0
- package/api/resources/common/types/TtsJobErrorCode.js +15 -0
- package/api/resources/common/types/TtsJobStatus.d.ts +13 -0
- package/api/resources/common/types/TtsJobStatus.js +12 -0
- package/api/resources/common/types/UpdateAssetRequest.d.ts +23 -0
- package/api/resources/common/types/UpdateAssetRequest.js +5 -0
- package/api/resources/common/types/UpdateProjectRequest.d.ts +17 -0
- package/api/resources/common/types/UpdateProjectRequest.js +5 -0
- package/api/resources/common/types/Video.d.ts +9 -2
- package/api/resources/common/types/Voice.d.ts +23 -0
- package/api/resources/common/types/Voice.js +5 -0
- package/api/resources/common/types/VoiceCloneRateLimitError.d.ts +16 -0
- package/api/resources/common/types/VoiceCloneRateLimitError.js +5 -0
- package/api/resources/common/types/VoiceProvider.d.ts +10 -0
- package/api/resources/common/types/VoiceProvider.js +9 -0
- package/api/resources/common/types/VoiceRestriction.d.ts +11 -0
- package/api/resources/common/types/VoiceRestriction.js +10 -0
- package/api/resources/common/types/index.d.ts +95 -0
- package/api/resources/common/types/index.js +95 -0
- package/api/resources/dialogueEdits/client/Client.d.ts +95 -0
- package/api/resources/dialogueEdits/client/Client.js +241 -0
- package/api/resources/dialogueEdits/client/index.d.ts +1 -0
- package/api/resources/dialogueEdits/client/index.js +2 -0
- package/api/resources/dialogueEdits/index.d.ts +1 -0
- package/api/resources/dialogueEdits/index.js +17 -0
- package/api/resources/errors/client/Client.d.ts +44 -0
- package/api/resources/errors/client/Client.js +127 -0
- package/api/resources/errors/client/index.d.ts +1 -0
- package/api/resources/errors/client/index.js +2 -0
- package/api/resources/errors/index.d.ts +1 -0
- package/api/resources/errors/index.js +17 -0
- package/api/resources/feedback/client/Client.d.ts +55 -0
- package/api/resources/feedback/client/Client.js +145 -0
- package/api/resources/feedback/client/index.d.ts +1 -0
- package/api/resources/feedback/client/index.js +17 -0
- package/api/resources/feedback/client/requests/SubmitFeedbackRequest.d.ts +37 -0
- package/api/resources/feedback/client/requests/SubmitFeedbackRequest.js +5 -0
- package/api/resources/feedback/client/requests/index.d.ts +1 -0
- package/api/resources/feedback/client/requests/index.js +2 -0
- package/api/resources/feedback/errors/FeedbackTooManyRequestsError.d.ts +9 -0
- package/api/resources/feedback/errors/FeedbackTooManyRequestsError.js +52 -0
- package/api/resources/feedback/errors/index.d.ts +1 -0
- package/api/resources/feedback/errors/index.js +17 -0
- package/api/resources/feedback/index.d.ts +3 -0
- package/api/resources/feedback/index.js +19 -0
- package/api/resources/feedback/types/FeedbackClient.d.ts +9 -0
- package/api/resources/feedback/types/FeedbackClient.js +5 -0
- package/api/resources/feedback/types/FeedbackKind.d.ts +12 -0
- package/api/resources/feedback/types/FeedbackKind.js +14 -0
- package/api/resources/feedback/types/FeedbackRateLimitError.d.ts +16 -0
- package/api/resources/feedback/types/FeedbackRateLimitError.js +5 -0
- package/api/resources/feedback/types/FeedbackReceipt.d.ts +9 -0
- package/api/resources/feedback/types/FeedbackReceipt.js +5 -0
- package/api/resources/feedback/types/FeedbackSeverity.d.ts +9 -0
- package/api/resources/feedback/types/FeedbackSeverity.js +11 -0
- package/api/resources/feedback/types/FeedbackSource.d.ts +8 -0
- package/api/resources/feedback/types/FeedbackSource.js +10 -0
- package/api/resources/feedback/types/index.d.ts +6 -0
- package/api/resources/feedback/types/index.js +22 -0
- package/api/resources/generations/client/Client.d.ts +149 -19
- package/api/resources/generations/client/Client.js +370 -31
- package/api/resources/generations/client/requests/CreateGenerationJsonRequest.d.ts +51 -0
- package/api/resources/generations/client/requests/CreateGenerationJsonRequest.js +5 -0
- package/api/resources/generations/client/requests/CreateGenerationRequest.d.ts +13 -1
- package/api/resources/generations/client/requests/GetGenerationDownloadRequest.d.ts +17 -0
- package/api/resources/generations/client/requests/GetGenerationDownloadRequest.js +5 -0
- package/api/resources/generations/client/requests/GetGenerationRequest.d.ts +21 -0
- package/api/resources/generations/client/requests/GetGenerationRequest.js +5 -0
- package/api/resources/generations/client/requests/ListGenerationsRequest.d.ts +22 -2
- package/api/resources/generations/client/requests/index.d.ts +3 -0
- package/api/resources/index.d.ts +21 -0
- package/api/resources/index.js +22 -1
- package/api/resources/models/client/Client.d.ts +45 -0
- package/api/resources/models/client/Client.js +130 -0
- package/api/resources/models/client/index.d.ts +1 -0
- package/api/resources/models/client/index.js +2 -0
- package/api/resources/models/index.d.ts +1 -0
- package/api/resources/models/index.js +17 -0
- package/api/resources/organizations/client/Client.d.ts +46 -0
- package/api/resources/organizations/client/Client.js +137 -0
- package/api/resources/organizations/client/index.d.ts +1 -0
- package/api/resources/organizations/client/index.js +17 -0
- package/api/resources/organizations/client/requests/GetWebhookSecretRequest.d.ts +13 -0
- package/api/resources/organizations/client/requests/GetWebhookSecretRequest.js +5 -0
- package/api/resources/organizations/client/requests/index.d.ts +1 -0
- package/api/resources/organizations/client/requests/index.js +2 -0
- package/api/resources/organizations/index.d.ts +2 -0
- package/api/resources/organizations/index.js +18 -0
- package/api/resources/organizations/types/WebhookSecretResponse.d.ts +10 -0
- package/api/resources/organizations/types/WebhookSecretResponse.js +5 -0
- package/api/resources/organizations/types/index.d.ts +1 -0
- package/api/resources/organizations/types/index.js +17 -0
- package/api/resources/projects/client/Client.d.ts +159 -0
- package/api/resources/projects/client/Client.js +582 -0
- package/api/resources/projects/client/index.d.ts +1 -0
- package/api/resources/projects/client/index.js +17 -0
- package/api/resources/projects/client/requests/ListProjectsRequest.d.ts +29 -0
- package/api/resources/projects/client/requests/ListProjectsRequest.js +5 -0
- package/api/resources/projects/client/requests/index.d.ts +1 -0
- package/api/resources/projects/client/requests/index.js +2 -0
- package/api/resources/projects/index.d.ts +1 -0
- package/api/resources/projects/index.js +17 -0
- package/api/resources/transcriptions/client/Client.d.ts +67 -0
- package/api/resources/transcriptions/client/Client.js +209 -0
- package/api/resources/transcriptions/client/index.d.ts +1 -0
- package/api/resources/transcriptions/client/index.js +2 -0
- package/api/resources/transcriptions/index.d.ts +1 -0
- package/api/resources/transcriptions/index.js +17 -0
- package/api/resources/tts/client/Client.d.ts +93 -0
- package/api/resources/tts/client/Client.js +306 -0
- package/api/resources/tts/client/index.d.ts +1 -0
- package/api/resources/tts/client/index.js +17 -0
- package/api/resources/tts/client/requests/SubmitTtsJobRequest.d.ts +18 -0
- package/api/resources/tts/client/requests/SubmitTtsJobRequest.js +5 -0
- package/api/resources/tts/client/requests/index.d.ts +1 -0
- package/api/resources/tts/client/requests/index.js +2 -0
- package/api/resources/tts/index.d.ts +1 -0
- package/api/resources/tts/index.js +17 -0
- package/api/resources/voices/client/Client.d.ts +107 -0
- package/api/resources/voices/client/Client.js +369 -0
- package/api/resources/voices/client/index.d.ts +1 -0
- package/api/resources/voices/client/index.js +17 -0
- package/api/resources/voices/client/requests/GetVoiceRequest.d.ts +14 -0
- package/api/resources/voices/client/requests/GetVoiceRequest.js +5 -0
- package/api/resources/voices/client/requests/ListVoicesRequest.d.ts +14 -0
- package/api/resources/voices/client/requests/ListVoicesRequest.js +5 -0
- package/api/resources/voices/client/requests/index.d.ts +2 -0
- package/api/resources/voices/client/requests/index.js +2 -0
- package/api/resources/voices/index.d.ts +1 -0
- package/api/resources/voices/index.js +17 -0
- package/api/resources/webhooks/types/BatchNotification.d.ts +21 -0
- package/api/resources/webhooks/types/BatchNotification.js +5 -0
- package/api/resources/webhooks/types/BatchNotificationMetrics.d.ts +13 -0
- package/api/resources/webhooks/types/BatchNotificationMetrics.js +5 -0
- package/api/resources/webhooks/types/GenerationNotification.d.ts +14 -16
- package/api/resources/webhooks/types/WebhookStatus.d.ts +3 -2
- package/api/resources/webhooks/types/WebhookStatus.js +1 -0
- package/api/resources/webhooks/types/index.d.ts +2 -0
- package/api/resources/webhooks/types/index.js +2 -0
- package/core/index.d.ts +1 -1
- package/core/index.js +1 -1
- package/dist/Client.d.ts +34 -1
- package/dist/Client.js +59 -4
- package/dist/api/resources/account/client/Client.d.ts +45 -0
- package/dist/api/resources/account/client/Client.js +130 -0
- package/dist/api/resources/account/client/index.d.ts +1 -0
- package/dist/api/resources/account/client/index.js +2 -0
- package/dist/api/resources/account/index.d.ts +2 -0
- package/dist/api/resources/account/index.js +18 -0
- package/dist/api/resources/account/types/AccountActiveJobs.d.ts +9 -0
- package/dist/api/resources/account/types/AccountActiveJobs.js +5 -0
- package/dist/api/resources/account/types/AccountAllowanceUsage.d.ts +11 -0
- package/dist/api/resources/account/types/AccountAllowanceUsage.js +5 -0
- package/dist/api/resources/account/types/AccountBillingModel.d.ts +10 -0
- package/dist/api/resources/account/types/AccountBillingModel.js +12 -0
- package/dist/api/resources/account/types/AccountBillingPeriod.d.ts +7 -0
- package/dist/api/resources/account/types/AccountBillingPeriod.js +5 -0
- package/dist/api/resources/account/types/AccountCredentialType.d.ts +9 -0
- package/dist/api/resources/account/types/AccountCredentialType.js +11 -0
- package/dist/api/resources/account/types/AccountCredits.d.ts +11 -0
- package/dist/api/resources/account/types/AccountCredits.js +5 -0
- package/dist/api/resources/account/types/AccountFreeAllowance.d.ts +12 -0
- package/dist/api/resources/account/types/AccountFreeAllowance.js +5 -0
- package/dist/api/resources/account/types/AccountLimits.d.ts +13 -0
- package/dist/api/resources/account/types/AccountLimits.js +5 -0
- package/dist/api/resources/account/types/AccountOrganization.d.ts +9 -0
- package/dist/api/resources/account/types/AccountOrganization.js +5 -0
- package/dist/api/resources/account/types/AccountOverview.d.ts +31 -0
- package/dist/api/resources/account/types/AccountOverview.js +5 -0
- package/dist/api/resources/account/types/AccountPlan.d.ts +9 -0
- package/dist/api/resources/account/types/AccountPlan.js +5 -0
- package/dist/api/resources/account/types/AccountUser.d.ts +8 -0
- package/dist/api/resources/account/types/AccountUser.js +5 -0
- package/dist/api/resources/account/types/index.d.ts +12 -0
- package/dist/api/resources/account/types/index.js +28 -0
- package/dist/api/resources/assets/client/Client.d.ts +143 -0
- package/dist/api/resources/assets/client/Client.js +515 -0
- package/dist/api/resources/assets/client/index.d.ts +1 -0
- package/dist/api/resources/assets/client/index.js +17 -0
- package/dist/api/resources/assets/client/requests/ListAssetsRequest.d.ts +37 -0
- package/dist/api/resources/assets/client/requests/ListAssetsRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/index.js +2 -0
- package/dist/api/resources/assets/index.d.ts +1 -0
- package/dist/api/resources/assets/index.js +17 -0
- package/dist/api/resources/batch/client/Client.d.ts +283 -2
- package/dist/api/resources/batch/client/Client.js +342 -4
- package/dist/api/resources/batch/client/requests/CreateBatchFromRowsRequest.d.ts +279 -0
- package/dist/api/resources/batch/client/requests/CreateBatchFromRowsRequest.js +5 -0
- package/dist/api/resources/batch/client/requests/CreateBatchRequest.d.ts +2 -2
- package/dist/api/resources/batch/client/requests/index.d.ts +1 -0
- package/dist/api/resources/common/errors/ConflictError.d.ts +9 -0
- package/dist/api/resources/common/errors/ConflictError.js +52 -0
- package/dist/api/resources/common/errors/ForbiddenError.d.ts +9 -0
- package/dist/api/resources/common/errors/ForbiddenError.js +52 -0
- package/dist/api/resources/common/errors/GatewayTimeoutError.d.ts +9 -0
- package/dist/api/resources/common/errors/GatewayTimeoutError.js +52 -0
- package/dist/api/resources/common/errors/GenerationDeletedError.d.ts +9 -0
- package/dist/api/resources/common/errors/GenerationDeletedError.js +52 -0
- package/dist/api/resources/common/errors/GenerationTooManyRequestsError.d.ts +9 -0
- package/dist/api/resources/common/errors/GenerationTooManyRequestsError.js +52 -0
- package/dist/api/resources/common/errors/PayloadTooLargeError.d.ts +9 -0
- package/dist/api/resources/common/errors/PayloadTooLargeError.js +52 -0
- package/dist/api/resources/common/errors/ServiceUnavailableError.d.ts +9 -0
- package/dist/api/resources/common/errors/ServiceUnavailableError.js +52 -0
- package/dist/api/resources/common/errors/TooManyRequestsError.d.ts +1 -1
- package/dist/api/resources/common/errors/UnprocessableEntityError.d.ts +9 -0
- package/dist/api/resources/common/errors/UnprocessableEntityError.js +52 -0
- package/dist/api/resources/common/errors/VoiceCloneTooManyRequestsError.d.ts +9 -0
- package/dist/api/resources/common/errors/VoiceCloneTooManyRequestsError.js +52 -0
- package/dist/api/resources/common/errors/index.d.ts +9 -0
- package/dist/api/resources/common/errors/index.js +9 -0
- package/dist/api/resources/common/types/ActiveSpeaker.d.ts +12 -0
- package/dist/api/resources/common/types/Asset.d.ts +40 -0
- package/dist/api/resources/common/types/Asset.js +5 -0
- package/dist/api/resources/common/types/AssetId.d.ts +7 -0
- package/dist/api/resources/common/types/AssetId.js +5 -0
- package/dist/api/resources/common/types/AssetInputType.d.ts +22 -0
- package/dist/api/resources/common/types/AssetInputType.js +21 -0
- package/dist/api/resources/common/types/AssetSort.d.ts +19 -0
- package/dist/api/resources/common/types/AssetSort.js +18 -0
- package/dist/api/resources/common/types/AssetType.d.ts +12 -0
- package/dist/api/resources/common/types/AssetType.js +11 -0
- package/dist/api/resources/common/types/AssetUploadResponse.d.ts +14 -0
- package/dist/api/resources/common/types/AssetUploadResponse.js +5 -0
- package/dist/api/resources/common/types/AssetVisibility.d.ts +17 -0
- package/dist/api/resources/common/types/AssetVisibility.js +10 -0
- package/dist/api/resources/common/types/AttachProjectAssetRequest.d.ts +11 -0
- package/dist/api/resources/common/types/AttachProjectAssetRequest.js +5 -0
- package/dist/api/resources/common/types/Audio.d.ts +5 -2
- package/dist/api/resources/common/types/BatchConcurrencyError.d.ts +23 -0
- package/dist/api/resources/common/types/BatchConcurrencyError.js +5 -0
- package/dist/api/resources/common/types/BatchResponse.d.ts +2 -2
- package/dist/api/resources/common/types/BatchRow.d.ts +15 -0
- package/dist/api/resources/common/types/BatchRow.js +5 -0
- package/dist/api/resources/common/types/BlendingMode.d.ts +9 -0
- package/dist/api/resources/common/types/BlendingMode.js +11 -0
- package/dist/api/resources/common/types/ClonedVoiceResponse.d.ts +14 -0
- package/dist/api/resources/common/types/ClonedVoiceResponse.js +5 -0
- package/dist/api/resources/common/types/CreateAssetRequest.d.ts +33 -0
- package/dist/api/resources/common/types/CreateAssetRequest.js +5 -0
- package/dist/api/resources/common/types/CreateAssetUploadRequest.d.ts +14 -0
- package/dist/api/resources/common/types/CreateAssetUploadRequest.js +5 -0
- package/dist/api/resources/common/types/CreateDialogueEditDto.d.ts +27 -0
- package/dist/api/resources/common/types/CreateDialogueEditDto.js +5 -0
- package/dist/api/resources/common/types/CreateGenerationDto.d.ts +11 -3
- package/dist/api/resources/common/types/CreateProjectRequest.d.ts +21 -0
- package/dist/api/resources/common/types/CreateProjectRequest.js +5 -0
- package/dist/api/resources/common/types/CreateTranscriptionDto.d.ts +21 -0
- package/dist/api/resources/common/types/CreateTranscriptionDto.js +5 -0
- package/dist/api/resources/common/types/CreateTtsRequest.d.ts +19 -0
- package/dist/api/resources/common/types/CreateTtsRequest.js +5 -0
- package/dist/api/resources/common/types/CreateVoiceRequest.d.ts +19 -0
- package/dist/api/resources/common/types/CreateVoiceRequest.js +5 -0
- package/dist/api/resources/common/types/CreatorWorkflow.d.ts +37 -0
- package/dist/api/resources/common/types/CreatorWorkflow.js +15 -0
- package/dist/api/resources/common/types/DeleteAssetResponse.d.ts +11 -0
- package/dist/api/resources/common/types/DeleteAssetResponse.js +5 -0
- package/dist/api/resources/common/types/DeleteProjectResponse.d.ts +11 -0
- package/dist/api/resources/common/types/DeleteProjectResponse.js +5 -0
- package/dist/api/resources/common/types/DialogueEditChange.d.ts +14 -0
- package/dist/api/resources/common/types/DialogueEditChange.js +5 -0
- package/dist/api/resources/common/types/DialogueEditError.d.ts +15 -0
- package/dist/api/resources/common/types/DialogueEditError.js +5 -0
- package/dist/api/resources/common/types/DialogueEditErrorCode.d.ts +18 -0
- package/dist/api/resources/common/types/DialogueEditErrorCode.js +17 -0
- package/dist/api/resources/common/types/DialogueEditFailedSlot.d.ts +9 -0
- package/dist/api/resources/common/types/DialogueEditFailedSlot.js +5 -0
- package/dist/api/resources/common/types/DialogueEditJob.d.ts +49 -0
- package/dist/api/resources/common/types/DialogueEditJob.js +5 -0
- package/dist/api/resources/common/types/DialogueEditJobId.d.ts +7 -0
- package/dist/api/resources/common/types/DialogueEditJobId.js +5 -0
- package/dist/api/resources/common/types/DialogueEditJobStatus.d.ts +14 -0
- package/dist/api/resources/common/types/DialogueEditJobStatus.js +13 -0
- package/dist/api/resources/common/types/DialogueEditOperation.d.ts +16 -0
- package/dist/api/resources/common/types/DialogueEditOperation.js +5 -0
- package/dist/api/resources/common/types/DialogueEditPartialDetail.d.ts +17 -0
- package/dist/api/resources/common/types/DialogueEditPartialDetail.js +5 -0
- package/dist/api/resources/common/types/DialogueEditReference.d.ts +11 -0
- package/dist/api/resources/common/types/DialogueEditReference.js +5 -0
- package/dist/api/resources/common/types/DialogueEditRemoval.d.ts +10 -0
- package/dist/api/resources/common/types/DialogueEditRemoval.js +5 -0
- package/dist/api/resources/common/types/DialogueEditResultSlot.d.ts +19 -0
- package/dist/api/resources/common/types/DialogueEditResultSlot.js +5 -0
- package/dist/api/resources/common/types/DialogueEditResultSlotKind.d.ts +12 -0
- package/dist/api/resources/common/types/DialogueEditResultSlotKind.js +11 -0
- package/dist/api/resources/common/types/DialogueEditRetimeFailureSection.d.ts +14 -0
- package/dist/api/resources/common/types/DialogueEditRetimeFailureSection.js +5 -0
- package/dist/api/resources/common/types/DubDto.d.ts +17 -0
- package/dist/api/resources/common/types/DubDto.js +5 -0
- package/dist/api/resources/common/types/DubLanguage.d.ts +105 -0
- package/dist/api/resources/common/types/DubLanguage.js +101 -0
- package/dist/api/resources/common/types/DubProviderName.d.ts +10 -0
- package/dist/api/resources/common/types/DubProviderName.js +9 -0
- package/dist/api/resources/common/types/DubSourceLanguage.d.ts +106 -0
- package/dist/api/resources/common/types/DubSourceLanguage.js +102 -0
- package/dist/api/resources/common/types/ElevenLabs.d.ts +5 -1
- package/dist/api/resources/common/types/ErrorCatalogEntry.d.ts +14 -0
- package/dist/api/resources/common/types/ErrorCatalogEntry.js +5 -0
- package/dist/api/resources/common/types/EstimateBreakdown.d.ts +13 -0
- package/dist/api/resources/common/types/EstimateBreakdown.js +5 -0
- package/dist/api/resources/common/types/EstimateCostRequest.d.ts +16 -0
- package/dist/api/resources/common/types/EstimateCostRequest.js +5 -0
- package/dist/api/resources/common/types/EstimateDubbingBilling.d.ts +10 -0
- package/dist/api/resources/common/types/EstimateDubbingBilling.js +12 -0
- package/dist/api/resources/common/types/EstimateDubbingPart.d.ts +12 -0
- package/dist/api/resources/common/types/EstimateDubbingPart.js +5 -0
- package/dist/api/resources/common/types/EstimateDurationCheck.d.ts +22 -0
- package/dist/api/resources/common/types/EstimateDurationCheck.js +5 -0
- package/dist/api/resources/common/types/EstimateLipsyncPart.d.ts +9 -0
- package/dist/api/resources/common/types/EstimateLipsyncPart.js +5 -0
- package/dist/api/resources/common/types/EstimateWorkflow.d.ts +11 -0
- package/dist/api/resources/common/types/EstimateWorkflow.js +10 -0
- package/dist/api/resources/common/types/EstimatedGenerationCost.d.ts +7 -0
- package/dist/api/resources/common/types/Generation.d.ts +12 -2
- package/dist/api/resources/common/types/GenerationConcurrencyError.d.ts +21 -0
- package/dist/api/resources/common/types/GenerationConcurrencyError.js +5 -0
- package/dist/api/resources/common/types/GenerationError.d.ts +16 -0
- package/dist/api/resources/common/types/GenerationEstimate.d.ts +39 -0
- package/dist/api/resources/common/types/GenerationEstimate.js +5 -0
- package/dist/api/resources/common/types/GenerationEstimateConfidence.d.ts +12 -0
- package/dist/api/resources/common/types/GenerationEstimateConfidence.js +11 -0
- package/dist/api/resources/common/types/GenerationEstimateResolutionSource.d.ts +12 -0
- package/dist/api/resources/common/types/GenerationEstimateResolutionSource.js +11 -0
- package/dist/api/resources/common/types/GenerationEstimateScope.d.ts +11 -0
- package/dist/api/resources/common/types/GenerationEstimateScope.js +10 -0
- package/dist/api/resources/common/types/GenerationEstimateSource.d.ts +15 -0
- package/dist/api/resources/common/types/GenerationEstimateSource.js +14 -0
- package/dist/api/resources/common/types/GenerationOptions.d.ts +22 -4
- package/dist/api/resources/common/types/GenerationSegment.d.ts +14 -6
- package/dist/api/resources/common/types/Image.d.ts +16 -0
- package/dist/api/resources/common/types/Image.js +5 -0
- package/dist/api/resources/common/types/Input.d.ts +1 -1
- package/dist/api/resources/common/types/Model.d.ts +2 -1
- package/dist/api/resources/common/types/Model.js +1 -0
- package/dist/api/resources/common/types/ModelInfo.d.ts +22 -0
- package/dist/api/resources/common/types/ModelInfo.js +5 -0
- package/dist/api/resources/common/types/OutputAudio.d.ts +10 -0
- package/dist/api/resources/common/types/OutputAudio.js +5 -0
- package/dist/api/resources/common/types/OutputFormat.d.ts +8 -0
- package/dist/api/resources/common/types/OutputFormat.js +10 -0
- package/dist/api/resources/common/types/PaginatedAssetsResponse.d.ts +15 -0
- package/dist/api/resources/common/types/PaginatedAssetsResponse.js +5 -0
- package/dist/api/resources/common/types/PaginatedProjectsResponse.d.ts +13 -0
- package/dist/api/resources/common/types/PaginatedProjectsResponse.js +5 -0
- package/dist/api/resources/common/types/Project.d.ts +24 -0
- package/dist/api/resources/common/types/Project.js +5 -0
- package/dist/api/resources/common/types/ProjectGeneration.d.ts +41 -0
- package/dist/api/resources/common/types/ProjectGeneration.js +5 -0
- package/dist/api/resources/common/types/ProjectGenerationError.d.ts +9 -0
- package/dist/api/resources/common/types/ProjectGenerationError.js +5 -0
- package/dist/api/resources/common/types/ProjectGenerationInput.d.ts +18 -0
- package/dist/api/resources/common/types/ProjectGenerationInput.js +5 -0
- package/dist/api/resources/common/types/ProjectGenerationModel.d.ts +12 -0
- package/dist/api/resources/common/types/ProjectGenerationModel.js +5 -0
- package/dist/api/resources/common/types/ProjectGenerationProvider.d.ts +10 -0
- package/dist/api/resources/common/types/ProjectGenerationProvider.js +5 -0
- package/dist/api/resources/common/types/ProjectGenerationSegment.d.ts +14 -0
- package/dist/api/resources/common/types/ProjectGenerationSegment.js +5 -0
- package/dist/api/resources/common/types/ProjectId.d.ts +7 -0
- package/dist/api/resources/common/types/ProjectId.js +5 -0
- package/dist/api/resources/common/types/ProjectListItem.d.ts +28 -0
- package/dist/api/resources/common/types/ProjectListItem.js +5 -0
- package/dist/api/resources/common/types/ProjectMode.d.ts +11 -0
- package/dist/api/resources/common/types/ProjectMode.js +10 -0
- package/dist/api/resources/common/types/ProjectSort.d.ts +11 -0
- package/dist/api/resources/common/types/ProjectSort.js +10 -0
- package/dist/api/resources/common/types/ProjectVisibility.d.ts +17 -0
- package/dist/api/resources/common/types/ProjectVisibility.js +10 -0
- package/dist/api/resources/common/types/SegmentAudioInput.d.ts +2 -2
- package/dist/api/resources/common/types/SegmentOptionsOverride.d.ts +17 -0
- package/dist/api/resources/common/types/SegmentOptionsOverride.js +5 -0
- package/dist/api/resources/common/types/SyncMode.d.ts +1 -1
- package/dist/api/resources/common/types/Transcript.d.ts +13 -0
- package/dist/api/resources/common/types/Transcript.js +5 -0
- package/dist/api/resources/common/types/TranscriptSegment.d.ts +13 -0
- package/dist/api/resources/common/types/TranscriptSegment.js +5 -0
- package/dist/api/resources/common/types/TranscriptWord.d.ts +16 -0
- package/dist/api/resources/common/types/TranscriptWord.js +5 -0
- package/dist/api/resources/common/types/TranscriptionDifficulty.d.ts +13 -0
- package/dist/api/resources/common/types/TranscriptionDifficulty.js +5 -0
- package/dist/api/resources/common/types/TranscriptionDifficultyReason.d.ts +17 -0
- package/dist/api/resources/common/types/TranscriptionDifficultyReason.js +16 -0
- package/dist/api/resources/common/types/TranscriptionDifficultyTier.d.ts +12 -0
- package/dist/api/resources/common/types/TranscriptionDifficultyTier.js +11 -0
- package/dist/api/resources/common/types/TranscriptionError.d.ts +13 -0
- package/dist/api/resources/common/types/TranscriptionError.js +5 -0
- package/dist/api/resources/common/types/TranscriptionErrorCode.d.ts +16 -0
- package/dist/api/resources/common/types/TranscriptionErrorCode.js +15 -0
- package/dist/api/resources/common/types/TranscriptionJob.d.ts +35 -0
- package/dist/api/resources/common/types/TranscriptionJob.js +5 -0
- package/dist/api/resources/common/types/TranscriptionJobId.d.ts +7 -0
- package/dist/api/resources/common/types/TranscriptionJobId.js +5 -0
- package/dist/api/resources/common/types/TranscriptionJobStatus.d.ts +13 -0
- package/dist/api/resources/common/types/TranscriptionJobStatus.js +12 -0
- package/dist/api/resources/common/types/TtsGenerationResponse.d.ts +14 -0
- package/dist/api/resources/common/types/TtsGenerationResponse.js +5 -0
- package/dist/api/resources/common/types/TtsJob.d.ts +25 -0
- package/dist/api/resources/common/types/TtsJob.js +5 -0
- package/dist/api/resources/common/types/TtsJobError.d.ts +13 -0
- package/dist/api/resources/common/types/TtsJobError.js +5 -0
- package/dist/api/resources/common/types/TtsJobErrorCode.d.ts +16 -0
- package/dist/api/resources/common/types/TtsJobErrorCode.js +15 -0
- package/dist/api/resources/common/types/TtsJobStatus.d.ts +13 -0
- package/dist/api/resources/common/types/TtsJobStatus.js +12 -0
- package/dist/api/resources/common/types/UpdateAssetRequest.d.ts +23 -0
- package/dist/api/resources/common/types/UpdateAssetRequest.js +5 -0
- package/dist/api/resources/common/types/UpdateProjectRequest.d.ts +17 -0
- package/dist/api/resources/common/types/UpdateProjectRequest.js +5 -0
- package/dist/api/resources/common/types/Video.d.ts +9 -2
- package/dist/api/resources/common/types/Voice.d.ts +23 -0
- package/dist/api/resources/common/types/Voice.js +5 -0
- package/dist/api/resources/common/types/VoiceCloneRateLimitError.d.ts +16 -0
- package/dist/api/resources/common/types/VoiceCloneRateLimitError.js +5 -0
- package/dist/api/resources/common/types/VoiceProvider.d.ts +10 -0
- package/dist/api/resources/common/types/VoiceProvider.js +9 -0
- package/dist/api/resources/common/types/VoiceRestriction.d.ts +11 -0
- package/dist/api/resources/common/types/VoiceRestriction.js +10 -0
- package/dist/api/resources/common/types/index.d.ts +95 -0
- package/dist/api/resources/common/types/index.js +95 -0
- package/dist/api/resources/dialogueEdits/client/Client.d.ts +95 -0
- package/dist/api/resources/dialogueEdits/client/Client.js +241 -0
- package/dist/api/resources/dialogueEdits/client/index.d.ts +1 -0
- package/dist/api/resources/dialogueEdits/client/index.js +2 -0
- package/dist/api/resources/dialogueEdits/index.d.ts +1 -0
- package/dist/api/resources/dialogueEdits/index.js +17 -0
- package/dist/api/resources/errors/client/Client.d.ts +44 -0
- package/dist/api/resources/errors/client/Client.js +127 -0
- package/dist/api/resources/errors/client/index.d.ts +1 -0
- package/dist/api/resources/errors/client/index.js +2 -0
- package/dist/api/resources/errors/index.d.ts +1 -0
- package/dist/api/resources/errors/index.js +17 -0
- package/dist/api/resources/feedback/client/Client.d.ts +55 -0
- package/dist/api/resources/feedback/client/Client.js +145 -0
- package/dist/api/resources/feedback/client/index.d.ts +1 -0
- package/dist/api/resources/feedback/client/index.js +17 -0
- package/dist/api/resources/feedback/client/requests/SubmitFeedbackRequest.d.ts +37 -0
- package/dist/api/resources/feedback/client/requests/SubmitFeedbackRequest.js +5 -0
- package/dist/api/resources/feedback/client/requests/index.d.ts +1 -0
- package/dist/api/resources/feedback/client/requests/index.js +2 -0
- package/dist/api/resources/feedback/errors/FeedbackTooManyRequestsError.d.ts +9 -0
- package/dist/api/resources/feedback/errors/FeedbackTooManyRequestsError.js +52 -0
- package/dist/api/resources/feedback/errors/index.d.ts +1 -0
- package/dist/api/resources/feedback/errors/index.js +17 -0
- package/dist/api/resources/feedback/index.d.ts +3 -0
- package/dist/api/resources/feedback/index.js +19 -0
- package/dist/api/resources/feedback/types/FeedbackClient.d.ts +9 -0
- package/dist/api/resources/feedback/types/FeedbackClient.js +5 -0
- package/dist/api/resources/feedback/types/FeedbackKind.d.ts +12 -0
- package/dist/api/resources/feedback/types/FeedbackKind.js +14 -0
- package/dist/api/resources/feedback/types/FeedbackRateLimitError.d.ts +16 -0
- package/dist/api/resources/feedback/types/FeedbackRateLimitError.js +5 -0
- package/dist/api/resources/feedback/types/FeedbackReceipt.d.ts +9 -0
- package/dist/api/resources/feedback/types/FeedbackReceipt.js +5 -0
- package/dist/api/resources/feedback/types/FeedbackSeverity.d.ts +9 -0
- package/dist/api/resources/feedback/types/FeedbackSeverity.js +11 -0
- package/dist/api/resources/feedback/types/FeedbackSource.d.ts +8 -0
- package/dist/api/resources/feedback/types/FeedbackSource.js +10 -0
- package/dist/api/resources/feedback/types/index.d.ts +6 -0
- package/dist/api/resources/feedback/types/index.js +22 -0
- package/dist/api/resources/generations/client/Client.d.ts +149 -19
- package/dist/api/resources/generations/client/Client.js +370 -31
- package/dist/api/resources/generations/client/requests/CreateGenerationJsonRequest.d.ts +51 -0
- package/dist/api/resources/generations/client/requests/CreateGenerationJsonRequest.js +5 -0
- package/dist/api/resources/generations/client/requests/CreateGenerationRequest.d.ts +13 -1
- package/dist/api/resources/generations/client/requests/GetGenerationDownloadRequest.d.ts +17 -0
- package/dist/api/resources/generations/client/requests/GetGenerationDownloadRequest.js +5 -0
- package/dist/api/resources/generations/client/requests/GetGenerationRequest.d.ts +21 -0
- package/dist/api/resources/generations/client/requests/GetGenerationRequest.js +5 -0
- package/dist/api/resources/generations/client/requests/ListGenerationsRequest.d.ts +22 -2
- package/dist/api/resources/generations/client/requests/index.d.ts +3 -0
- package/dist/api/resources/index.d.ts +21 -0
- package/dist/api/resources/index.js +22 -1
- package/dist/api/resources/models/client/Client.d.ts +45 -0
- package/dist/api/resources/models/client/Client.js +130 -0
- package/dist/api/resources/models/client/index.d.ts +1 -0
- package/dist/api/resources/models/client/index.js +2 -0
- package/dist/api/resources/models/index.d.ts +1 -0
- package/dist/api/resources/models/index.js +17 -0
- package/dist/api/resources/organizations/client/Client.d.ts +46 -0
- package/dist/api/resources/organizations/client/Client.js +137 -0
- package/dist/api/resources/organizations/client/index.d.ts +1 -0
- package/dist/api/resources/organizations/client/index.js +17 -0
- package/dist/api/resources/organizations/client/requests/GetWebhookSecretRequest.d.ts +13 -0
- package/dist/api/resources/organizations/client/requests/GetWebhookSecretRequest.js +5 -0
- package/dist/api/resources/organizations/client/requests/index.d.ts +1 -0
- package/dist/api/resources/organizations/client/requests/index.js +2 -0
- package/dist/api/resources/organizations/index.d.ts +2 -0
- package/dist/api/resources/organizations/index.js +18 -0
- package/dist/api/resources/organizations/types/WebhookSecretResponse.d.ts +10 -0
- package/dist/api/resources/organizations/types/WebhookSecretResponse.js +5 -0
- package/dist/api/resources/organizations/types/index.d.ts +1 -0
- package/dist/api/resources/organizations/types/index.js +17 -0
- package/dist/api/resources/projects/client/Client.d.ts +159 -0
- package/dist/api/resources/projects/client/Client.js +582 -0
- package/dist/api/resources/projects/client/index.d.ts +1 -0
- package/dist/api/resources/projects/client/index.js +17 -0
- package/dist/api/resources/projects/client/requests/ListProjectsRequest.d.ts +29 -0
- package/dist/api/resources/projects/client/requests/ListProjectsRequest.js +5 -0
- package/dist/api/resources/projects/client/requests/index.d.ts +1 -0
- package/dist/api/resources/projects/client/requests/index.js +2 -0
- package/dist/api/resources/projects/index.d.ts +1 -0
- package/dist/api/resources/projects/index.js +17 -0
- package/dist/api/resources/transcriptions/client/Client.d.ts +67 -0
- package/dist/api/resources/transcriptions/client/Client.js +209 -0
- package/dist/api/resources/transcriptions/client/index.d.ts +1 -0
- package/dist/api/resources/transcriptions/client/index.js +2 -0
- package/dist/api/resources/transcriptions/index.d.ts +1 -0
- package/dist/api/resources/transcriptions/index.js +17 -0
- package/dist/api/resources/tts/client/Client.d.ts +93 -0
- package/dist/api/resources/tts/client/Client.js +306 -0
- package/dist/api/resources/tts/client/index.d.ts +1 -0
- package/dist/api/resources/tts/client/index.js +17 -0
- package/dist/api/resources/tts/client/requests/SubmitTtsJobRequest.d.ts +18 -0
- package/dist/api/resources/tts/client/requests/SubmitTtsJobRequest.js +5 -0
- package/dist/api/resources/tts/client/requests/index.d.ts +1 -0
- package/dist/api/resources/tts/client/requests/index.js +2 -0
- package/dist/api/resources/tts/index.d.ts +1 -0
- package/dist/api/resources/tts/index.js +17 -0
- package/dist/api/resources/voices/client/Client.d.ts +107 -0
- package/dist/api/resources/voices/client/Client.js +369 -0
- package/dist/api/resources/voices/client/index.d.ts +1 -0
- package/dist/api/resources/voices/client/index.js +17 -0
- package/dist/api/resources/voices/client/requests/GetVoiceRequest.d.ts +14 -0
- package/dist/api/resources/voices/client/requests/GetVoiceRequest.js +5 -0
- package/dist/api/resources/voices/client/requests/ListVoicesRequest.d.ts +14 -0
- package/dist/api/resources/voices/client/requests/ListVoicesRequest.js +5 -0
- package/dist/api/resources/voices/client/requests/index.d.ts +2 -0
- package/dist/api/resources/voices/client/requests/index.js +2 -0
- package/dist/api/resources/voices/index.d.ts +1 -0
- package/dist/api/resources/voices/index.js +17 -0
- package/dist/api/resources/webhooks/types/BatchNotification.d.ts +21 -0
- package/dist/api/resources/webhooks/types/BatchNotification.js +5 -0
- package/dist/api/resources/webhooks/types/BatchNotificationMetrics.d.ts +13 -0
- package/dist/api/resources/webhooks/types/BatchNotificationMetrics.js +5 -0
- package/dist/api/resources/webhooks/types/GenerationNotification.d.ts +14 -16
- package/dist/api/resources/webhooks/types/WebhookStatus.d.ts +3 -2
- package/dist/api/resources/webhooks/types/WebhookStatus.js +1 -0
- package/dist/api/resources/webhooks/types/index.d.ts +2 -0
- package/dist/api/resources/webhooks/types/index.js +2 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/environments.d.ts +2 -1
- package/dist/environments.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/environments.d.ts +2 -1
- package/environments.js +1 -0
- package/package.json +1 -1
- package/reference.md +2632 -79
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -59,7 +59,7 @@ class Batch {
|
|
|
59
59
|
this._options = _options;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Create a batch processing job from a JSONL file. Requires a paid plan; free accounts get 402 `plan_feature_unavailable`. Send the file in multipart field `input` (or the accepted `file` alias); it must be 5 MB or smaller. On Scale and above a batch holds 20-500 records by default and is queued, holding one concurrency slot. Below Scale every record runs as a generation right away, so a batch holds 1 record up to your plan's concurrency limit: more records than that returns 400, and more records than your currently free generation slots returns 429 `concurrency_limit_reached`. Credit-billed plans reserve credits for the whole batch at submit and get 402 `insufficient_credits` when the balance is short. Each line must contain `request_id`, endpoint exactly `/v2/generate`, and a generation `payload`. To send the records as a JSON array instead of a file, use "Create Batch from Rows", the `application/json` form of the same endpoint. Errors name a refused record by its 1-based line, counting non-empty lines: dialogue edit refusals return it as `lineNumber`, other record errors only in `message`.
|
|
63
63
|
*
|
|
64
64
|
* @param {File | fs.ReadStream | Blob} input
|
|
65
65
|
* @param {Sync.CreateBatchRequest} request
|
|
@@ -100,7 +100,7 @@ class Batch {
|
|
|
100
100
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
101
101
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SyncEnvironment.Default, "/v2/batch"),
|
|
102
102
|
method: "POST",
|
|
103
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.
|
|
103
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.4.0", "User-Agent": "@sync.so/sdk/0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
104
104
|
requestType: "file",
|
|
105
105
|
duplex: _maybeEncodedRequest.duplex,
|
|
106
106
|
body: _maybeEncodedRequest.body,
|
|
@@ -148,6 +148,344 @@ class Batch {
|
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* The `application/json` form of `POST /v2/batch`, the same endpoint as "Create Batch": send the records in a `rows` array instead of a JSONL file. Each row is the same object as one JSONL line and is validated the same way: 20-500 rows by default on Scale and above, 1 row up to your free generation slots below Scale, 5 MB or smaller when serialized as JSONL, unique `request_id` values, and endpoint exactly `/v2/generate`. Errors name a refused row by its line, where line N is `rows[N-1]`: dialogue edit refusals return it as `lineNumber`, other record errors only in `message`. Requires a paid plan. In early access, enabled per organization, a row's payload can carry `dialogueEdit` to render a completed preview from POST /v2/dialogue-edits: send one video input, the video the preview was made from, and no audio input. All dialogue edit rows in a batch must come from the same source video. Each row is expanded at submit into the request POST /v2/generate builds for that preview and is charged the same. A dialogue edit row that cannot be rendered refuses the whole batch with the `/v2/generate` errorCode (for example dialogue_edit_not_found, 422) and `lineNumber`. See [Batch Processing](/api-reference/guides/batch-processing).
|
|
153
|
+
*
|
|
154
|
+
* @param {Sync.CreateBatchFromRowsRequest} request
|
|
155
|
+
* @param {Batch.RequestOptions} requestOptions - Request-specific configuration.
|
|
156
|
+
*
|
|
157
|
+
* @throws {@link Sync.BadRequestError}
|
|
158
|
+
* @throws {@link Sync.UnauthorizedError}
|
|
159
|
+
* @throws {@link Sync.PaymentRequiredError}
|
|
160
|
+
* @throws {@link Sync.UnprocessableEntityError}
|
|
161
|
+
* @throws {@link Sync.TooManyRequestsError}
|
|
162
|
+
* @throws {@link Sync.InternalServerError}
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* await client.batch.createFromRows({
|
|
166
|
+
* rows: [{
|
|
167
|
+
* request_id: "line-2",
|
|
168
|
+
* endpoint: "/v2/generate",
|
|
169
|
+
* payload: {
|
|
170
|
+
* model: "sync-3",
|
|
171
|
+
* input: [{
|
|
172
|
+
* type: "video",
|
|
173
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
174
|
+
* }],
|
|
175
|
+
* dialogueEdit: {
|
|
176
|
+
* id: "fa350e8a-0c6b-50c3-96de-7e4ce81ed0ce"
|
|
177
|
+
* }
|
|
178
|
+
* }
|
|
179
|
+
* }, {
|
|
180
|
+
* request_id: "line-3",
|
|
181
|
+
* endpoint: "/v2/generate",
|
|
182
|
+
* payload: {
|
|
183
|
+
* model: "sync-3",
|
|
184
|
+
* input: [{
|
|
185
|
+
* type: "video",
|
|
186
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
187
|
+
* }],
|
|
188
|
+
* dialogueEdit: {
|
|
189
|
+
* id: "ddaea593-cf1f-5916-aaef-c60ab5f63090"
|
|
190
|
+
* }
|
|
191
|
+
* }
|
|
192
|
+
* }, {
|
|
193
|
+
* request_id: "line-4",
|
|
194
|
+
* endpoint: "/v2/generate",
|
|
195
|
+
* payload: {
|
|
196
|
+
* model: "sync-3",
|
|
197
|
+
* input: [{
|
|
198
|
+
* type: "video",
|
|
199
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
200
|
+
* }],
|
|
201
|
+
* dialogueEdit: {
|
|
202
|
+
* id: "532a08cd-becc-5630-8109-58d22206db7e"
|
|
203
|
+
* }
|
|
204
|
+
* }
|
|
205
|
+
* }, {
|
|
206
|
+
* request_id: "line-5",
|
|
207
|
+
* endpoint: "/v2/generate",
|
|
208
|
+
* payload: {
|
|
209
|
+
* model: "sync-3",
|
|
210
|
+
* input: [{
|
|
211
|
+
* type: "video",
|
|
212
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
213
|
+
* }],
|
|
214
|
+
* dialogueEdit: {
|
|
215
|
+
* id: "68f897e5-78e3-55d3-9ca3-d8ba0d16c5c4"
|
|
216
|
+
* }
|
|
217
|
+
* }
|
|
218
|
+
* }, {
|
|
219
|
+
* request_id: "line-6",
|
|
220
|
+
* endpoint: "/v2/generate",
|
|
221
|
+
* payload: {
|
|
222
|
+
* model: "sync-3",
|
|
223
|
+
* input: [{
|
|
224
|
+
* type: "video",
|
|
225
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
226
|
+
* }],
|
|
227
|
+
* dialogueEdit: {
|
|
228
|
+
* id: "f4aa2ca8-006d-5301-baf7-4ce543188328"
|
|
229
|
+
* }
|
|
230
|
+
* }
|
|
231
|
+
* }, {
|
|
232
|
+
* request_id: "line-7",
|
|
233
|
+
* endpoint: "/v2/generate",
|
|
234
|
+
* payload: {
|
|
235
|
+
* model: "sync-3",
|
|
236
|
+
* input: [{
|
|
237
|
+
* type: "video",
|
|
238
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
239
|
+
* }],
|
|
240
|
+
* dialogueEdit: {
|
|
241
|
+
* id: "636f1dd4-f4e1-508d-8cdd-6dac1dd002a3"
|
|
242
|
+
* }
|
|
243
|
+
* }
|
|
244
|
+
* }, {
|
|
245
|
+
* request_id: "line-8",
|
|
246
|
+
* endpoint: "/v2/generate",
|
|
247
|
+
* payload: {
|
|
248
|
+
* model: "sync-3",
|
|
249
|
+
* input: [{
|
|
250
|
+
* type: "video",
|
|
251
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
252
|
+
* }],
|
|
253
|
+
* dialogueEdit: {
|
|
254
|
+
* id: "8f6640f5-6139-5271-ab33-f43fc91fc1ad"
|
|
255
|
+
* }
|
|
256
|
+
* }
|
|
257
|
+
* }, {
|
|
258
|
+
* request_id: "line-9",
|
|
259
|
+
* endpoint: "/v2/generate",
|
|
260
|
+
* payload: {
|
|
261
|
+
* model: "sync-3",
|
|
262
|
+
* input: [{
|
|
263
|
+
* type: "video",
|
|
264
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
265
|
+
* }],
|
|
266
|
+
* dialogueEdit: {
|
|
267
|
+
* id: "6c101a02-cdd8-5ec0-9df9-1ffea33a11bd"
|
|
268
|
+
* }
|
|
269
|
+
* }
|
|
270
|
+
* }, {
|
|
271
|
+
* request_id: "line-10",
|
|
272
|
+
* endpoint: "/v2/generate",
|
|
273
|
+
* payload: {
|
|
274
|
+
* model: "sync-3",
|
|
275
|
+
* input: [{
|
|
276
|
+
* type: "video",
|
|
277
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
278
|
+
* }],
|
|
279
|
+
* dialogueEdit: {
|
|
280
|
+
* id: "258f60c2-b635-5ab6-a565-ae81a709e221"
|
|
281
|
+
* }
|
|
282
|
+
* }
|
|
283
|
+
* }, {
|
|
284
|
+
* request_id: "line-11",
|
|
285
|
+
* endpoint: "/v2/generate",
|
|
286
|
+
* payload: {
|
|
287
|
+
* model: "sync-3",
|
|
288
|
+
* input: [{
|
|
289
|
+
* type: "video",
|
|
290
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
291
|
+
* }],
|
|
292
|
+
* dialogueEdit: {
|
|
293
|
+
* id: "09dc425b-4d7e-5813-8c6c-81bd38993a7b"
|
|
294
|
+
* }
|
|
295
|
+
* }
|
|
296
|
+
* }, {
|
|
297
|
+
* request_id: "line-12",
|
|
298
|
+
* endpoint: "/v2/generate",
|
|
299
|
+
* payload: {
|
|
300
|
+
* model: "sync-3",
|
|
301
|
+
* input: [{
|
|
302
|
+
* type: "video",
|
|
303
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
304
|
+
* }],
|
|
305
|
+
* dialogueEdit: {
|
|
306
|
+
* id: "b93c54d3-28d6-5fa3-abaf-5220c38e31a1"
|
|
307
|
+
* }
|
|
308
|
+
* }
|
|
309
|
+
* }, {
|
|
310
|
+
* request_id: "line-13",
|
|
311
|
+
* endpoint: "/v2/generate",
|
|
312
|
+
* payload: {
|
|
313
|
+
* model: "sync-3",
|
|
314
|
+
* input: [{
|
|
315
|
+
* type: "video",
|
|
316
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
317
|
+
* }],
|
|
318
|
+
* dialogueEdit: {
|
|
319
|
+
* id: "e8a1dea0-b3f9-5266-badd-f8a2aae77ea3"
|
|
320
|
+
* }
|
|
321
|
+
* }
|
|
322
|
+
* }, {
|
|
323
|
+
* request_id: "line-14",
|
|
324
|
+
* endpoint: "/v2/generate",
|
|
325
|
+
* payload: {
|
|
326
|
+
* model: "sync-3",
|
|
327
|
+
* input: [{
|
|
328
|
+
* type: "video",
|
|
329
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
330
|
+
* }],
|
|
331
|
+
* dialogueEdit: {
|
|
332
|
+
* id: "a09967c4-8171-582f-8dba-1ba07d55f918"
|
|
333
|
+
* }
|
|
334
|
+
* }
|
|
335
|
+
* }, {
|
|
336
|
+
* request_id: "line-15",
|
|
337
|
+
* endpoint: "/v2/generate",
|
|
338
|
+
* payload: {
|
|
339
|
+
* model: "sync-3",
|
|
340
|
+
* input: [{
|
|
341
|
+
* type: "video",
|
|
342
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
343
|
+
* }],
|
|
344
|
+
* dialogueEdit: {
|
|
345
|
+
* id: "39df4e4f-b23d-54ca-99a8-f29ec567790b"
|
|
346
|
+
* }
|
|
347
|
+
* }
|
|
348
|
+
* }, {
|
|
349
|
+
* request_id: "line-16",
|
|
350
|
+
* endpoint: "/v2/generate",
|
|
351
|
+
* payload: {
|
|
352
|
+
* model: "sync-3",
|
|
353
|
+
* input: [{
|
|
354
|
+
* type: "video",
|
|
355
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
356
|
+
* }],
|
|
357
|
+
* dialogueEdit: {
|
|
358
|
+
* id: "0370783a-12d5-5dfb-8736-49118428df47"
|
|
359
|
+
* }
|
|
360
|
+
* }
|
|
361
|
+
* }, {
|
|
362
|
+
* request_id: "line-17",
|
|
363
|
+
* endpoint: "/v2/generate",
|
|
364
|
+
* payload: {
|
|
365
|
+
* model: "sync-3",
|
|
366
|
+
* input: [{
|
|
367
|
+
* type: "video",
|
|
368
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
369
|
+
* }],
|
|
370
|
+
* dialogueEdit: {
|
|
371
|
+
* id: "a65eecc2-ad79-5123-acf7-e81a57b2422f"
|
|
372
|
+
* }
|
|
373
|
+
* }
|
|
374
|
+
* }, {
|
|
375
|
+
* request_id: "line-18",
|
|
376
|
+
* endpoint: "/v2/generate",
|
|
377
|
+
* payload: {
|
|
378
|
+
* model: "sync-3",
|
|
379
|
+
* input: [{
|
|
380
|
+
* type: "video",
|
|
381
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
382
|
+
* }],
|
|
383
|
+
* dialogueEdit: {
|
|
384
|
+
* id: "a0200ef6-d140-50bb-9784-3b9e265be374"
|
|
385
|
+
* }
|
|
386
|
+
* }
|
|
387
|
+
* }, {
|
|
388
|
+
* request_id: "line-19",
|
|
389
|
+
* endpoint: "/v2/generate",
|
|
390
|
+
* payload: {
|
|
391
|
+
* model: "sync-3",
|
|
392
|
+
* input: [{
|
|
393
|
+
* type: "video",
|
|
394
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
395
|
+
* }],
|
|
396
|
+
* dialogueEdit: {
|
|
397
|
+
* id: "06cc754a-b625-58c2-ad2d-74ec08fb517a"
|
|
398
|
+
* }
|
|
399
|
+
* }
|
|
400
|
+
* }, {
|
|
401
|
+
* request_id: "line-20",
|
|
402
|
+
* endpoint: "/v2/generate",
|
|
403
|
+
* payload: {
|
|
404
|
+
* model: "sync-3",
|
|
405
|
+
* input: [{
|
|
406
|
+
* type: "video",
|
|
407
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
408
|
+
* }],
|
|
409
|
+
* dialogueEdit: {
|
|
410
|
+
* id: "32889341-cc9e-59c6-b18a-32bbb525c26e"
|
|
411
|
+
* }
|
|
412
|
+
* }
|
|
413
|
+
* }, {
|
|
414
|
+
* request_id: "line-21",
|
|
415
|
+
* endpoint: "/v2/generate",
|
|
416
|
+
* payload: {
|
|
417
|
+
* model: "sync-3",
|
|
418
|
+
* input: [{
|
|
419
|
+
* type: "video",
|
|
420
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
421
|
+
* }],
|
|
422
|
+
* dialogueEdit: {
|
|
423
|
+
* id: "f6568dbc-0390-5227-b107-64c3842adb3b"
|
|
424
|
+
* }
|
|
425
|
+
* }
|
|
426
|
+
* }],
|
|
427
|
+
* dry_run: true
|
|
428
|
+
* })
|
|
429
|
+
*/
|
|
430
|
+
createFromRows(request, requestOptions) {
|
|
431
|
+
return core.HttpResponsePromise.fromPromise(this.__createFromRows(request, requestOptions));
|
|
432
|
+
}
|
|
433
|
+
__createFromRows(request, requestOptions) {
|
|
434
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
435
|
+
var _a, _b, _c;
|
|
436
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
437
|
+
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SyncEnvironment.Default, "/v2/batch"),
|
|
438
|
+
method: "POST",
|
|
439
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.4.0", "User-Agent": "@sync.so/sdk/0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
440
|
+
contentType: "application/json",
|
|
441
|
+
requestType: "json",
|
|
442
|
+
body: request,
|
|
443
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
444
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
445
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
446
|
+
});
|
|
447
|
+
if (_response.ok) {
|
|
448
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
449
|
+
}
|
|
450
|
+
if (_response.error.reason === "status-code") {
|
|
451
|
+
switch (_response.error.statusCode) {
|
|
452
|
+
case 400:
|
|
453
|
+
throw new Sync.BadRequestError(_response.error.body, _response.rawResponse);
|
|
454
|
+
case 401:
|
|
455
|
+
throw new Sync.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
456
|
+
case 402:
|
|
457
|
+
throw new Sync.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
458
|
+
case 422:
|
|
459
|
+
throw new Sync.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
460
|
+
case 429:
|
|
461
|
+
throw new Sync.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
462
|
+
case 500:
|
|
463
|
+
throw new Sync.InternalServerError(_response.error.body, _response.rawResponse);
|
|
464
|
+
default:
|
|
465
|
+
throw new errors.SyncError({
|
|
466
|
+
statusCode: _response.error.statusCode,
|
|
467
|
+
body: _response.error.body,
|
|
468
|
+
rawResponse: _response.rawResponse,
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
switch (_response.error.reason) {
|
|
473
|
+
case "non-json":
|
|
474
|
+
throw new errors.SyncError({
|
|
475
|
+
statusCode: _response.error.statusCode,
|
|
476
|
+
body: _response.error.rawBody,
|
|
477
|
+
rawResponse: _response.rawResponse,
|
|
478
|
+
});
|
|
479
|
+
case "timeout":
|
|
480
|
+
throw new errors.SyncTimeoutError("Timeout exceeded when calling POST /v2/batch.");
|
|
481
|
+
case "unknown":
|
|
482
|
+
throw new errors.SyncError({
|
|
483
|
+
message: _response.error.errorMessage,
|
|
484
|
+
rawResponse: _response.rawResponse,
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
});
|
|
488
|
+
}
|
|
151
489
|
/**
|
|
152
490
|
* Retrieve details about a specific batch, including its current status, processing metrics, and output file URL when available.
|
|
153
491
|
*
|
|
@@ -170,7 +508,7 @@ class Batch {
|
|
|
170
508
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
171
509
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SyncEnvironment.Default, `/v2/batch/${encodeURIComponent(id)}`),
|
|
172
510
|
method: "GET",
|
|
173
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.
|
|
511
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.4.0", "User-Agent": "@sync.so/sdk/0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
174
512
|
contentType: "application/json",
|
|
175
513
|
requestType: "json",
|
|
176
514
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -245,7 +583,7 @@ class Batch {
|
|
|
245
583
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
246
584
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SyncEnvironment.Default, "/v2/batch"),
|
|
247
585
|
method: "GET",
|
|
248
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.
|
|
586
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@sync.so/sdk", "X-Fern-SDK-Version": "0.4.0", "User-Agent": "@sync.so/sdk/0.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
249
587
|
contentType: "application/json",
|
|
250
588
|
queryParameters: _queryParams,
|
|
251
589
|
requestType: "json",
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Sync from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* rows: [{
|
|
9
|
+
* request_id: "line-2",
|
|
10
|
+
* endpoint: "/v2/generate",
|
|
11
|
+
* payload: {
|
|
12
|
+
* model: "sync-3",
|
|
13
|
+
* input: [{
|
|
14
|
+
* type: "video",
|
|
15
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
16
|
+
* }],
|
|
17
|
+
* dialogueEdit: {
|
|
18
|
+
* id: "fa350e8a-0c6b-50c3-96de-7e4ce81ed0ce"
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* }, {
|
|
22
|
+
* request_id: "line-3",
|
|
23
|
+
* endpoint: "/v2/generate",
|
|
24
|
+
* payload: {
|
|
25
|
+
* model: "sync-3",
|
|
26
|
+
* input: [{
|
|
27
|
+
* type: "video",
|
|
28
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
29
|
+
* }],
|
|
30
|
+
* dialogueEdit: {
|
|
31
|
+
* id: "ddaea593-cf1f-5916-aaef-c60ab5f63090"
|
|
32
|
+
* }
|
|
33
|
+
* }
|
|
34
|
+
* }, {
|
|
35
|
+
* request_id: "line-4",
|
|
36
|
+
* endpoint: "/v2/generate",
|
|
37
|
+
* payload: {
|
|
38
|
+
* model: "sync-3",
|
|
39
|
+
* input: [{
|
|
40
|
+
* type: "video",
|
|
41
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
42
|
+
* }],
|
|
43
|
+
* dialogueEdit: {
|
|
44
|
+
* id: "532a08cd-becc-5630-8109-58d22206db7e"
|
|
45
|
+
* }
|
|
46
|
+
* }
|
|
47
|
+
* }, {
|
|
48
|
+
* request_id: "line-5",
|
|
49
|
+
* endpoint: "/v2/generate",
|
|
50
|
+
* payload: {
|
|
51
|
+
* model: "sync-3",
|
|
52
|
+
* input: [{
|
|
53
|
+
* type: "video",
|
|
54
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
55
|
+
* }],
|
|
56
|
+
* dialogueEdit: {
|
|
57
|
+
* id: "68f897e5-78e3-55d3-9ca3-d8ba0d16c5c4"
|
|
58
|
+
* }
|
|
59
|
+
* }
|
|
60
|
+
* }, {
|
|
61
|
+
* request_id: "line-6",
|
|
62
|
+
* endpoint: "/v2/generate",
|
|
63
|
+
* payload: {
|
|
64
|
+
* model: "sync-3",
|
|
65
|
+
* input: [{
|
|
66
|
+
* type: "video",
|
|
67
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
68
|
+
* }],
|
|
69
|
+
* dialogueEdit: {
|
|
70
|
+
* id: "f4aa2ca8-006d-5301-baf7-4ce543188328"
|
|
71
|
+
* }
|
|
72
|
+
* }
|
|
73
|
+
* }, {
|
|
74
|
+
* request_id: "line-7",
|
|
75
|
+
* endpoint: "/v2/generate",
|
|
76
|
+
* payload: {
|
|
77
|
+
* model: "sync-3",
|
|
78
|
+
* input: [{
|
|
79
|
+
* type: "video",
|
|
80
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
81
|
+
* }],
|
|
82
|
+
* dialogueEdit: {
|
|
83
|
+
* id: "636f1dd4-f4e1-508d-8cdd-6dac1dd002a3"
|
|
84
|
+
* }
|
|
85
|
+
* }
|
|
86
|
+
* }, {
|
|
87
|
+
* request_id: "line-8",
|
|
88
|
+
* endpoint: "/v2/generate",
|
|
89
|
+
* payload: {
|
|
90
|
+
* model: "sync-3",
|
|
91
|
+
* input: [{
|
|
92
|
+
* type: "video",
|
|
93
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
94
|
+
* }],
|
|
95
|
+
* dialogueEdit: {
|
|
96
|
+
* id: "8f6640f5-6139-5271-ab33-f43fc91fc1ad"
|
|
97
|
+
* }
|
|
98
|
+
* }
|
|
99
|
+
* }, {
|
|
100
|
+
* request_id: "line-9",
|
|
101
|
+
* endpoint: "/v2/generate",
|
|
102
|
+
* payload: {
|
|
103
|
+
* model: "sync-3",
|
|
104
|
+
* input: [{
|
|
105
|
+
* type: "video",
|
|
106
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
107
|
+
* }],
|
|
108
|
+
* dialogueEdit: {
|
|
109
|
+
* id: "6c101a02-cdd8-5ec0-9df9-1ffea33a11bd"
|
|
110
|
+
* }
|
|
111
|
+
* }
|
|
112
|
+
* }, {
|
|
113
|
+
* request_id: "line-10",
|
|
114
|
+
* endpoint: "/v2/generate",
|
|
115
|
+
* payload: {
|
|
116
|
+
* model: "sync-3",
|
|
117
|
+
* input: [{
|
|
118
|
+
* type: "video",
|
|
119
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
120
|
+
* }],
|
|
121
|
+
* dialogueEdit: {
|
|
122
|
+
* id: "258f60c2-b635-5ab6-a565-ae81a709e221"
|
|
123
|
+
* }
|
|
124
|
+
* }
|
|
125
|
+
* }, {
|
|
126
|
+
* request_id: "line-11",
|
|
127
|
+
* endpoint: "/v2/generate",
|
|
128
|
+
* payload: {
|
|
129
|
+
* model: "sync-3",
|
|
130
|
+
* input: [{
|
|
131
|
+
* type: "video",
|
|
132
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
133
|
+
* }],
|
|
134
|
+
* dialogueEdit: {
|
|
135
|
+
* id: "09dc425b-4d7e-5813-8c6c-81bd38993a7b"
|
|
136
|
+
* }
|
|
137
|
+
* }
|
|
138
|
+
* }, {
|
|
139
|
+
* request_id: "line-12",
|
|
140
|
+
* endpoint: "/v2/generate",
|
|
141
|
+
* payload: {
|
|
142
|
+
* model: "sync-3",
|
|
143
|
+
* input: [{
|
|
144
|
+
* type: "video",
|
|
145
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
146
|
+
* }],
|
|
147
|
+
* dialogueEdit: {
|
|
148
|
+
* id: "b93c54d3-28d6-5fa3-abaf-5220c38e31a1"
|
|
149
|
+
* }
|
|
150
|
+
* }
|
|
151
|
+
* }, {
|
|
152
|
+
* request_id: "line-13",
|
|
153
|
+
* endpoint: "/v2/generate",
|
|
154
|
+
* payload: {
|
|
155
|
+
* model: "sync-3",
|
|
156
|
+
* input: [{
|
|
157
|
+
* type: "video",
|
|
158
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
159
|
+
* }],
|
|
160
|
+
* dialogueEdit: {
|
|
161
|
+
* id: "e8a1dea0-b3f9-5266-badd-f8a2aae77ea3"
|
|
162
|
+
* }
|
|
163
|
+
* }
|
|
164
|
+
* }, {
|
|
165
|
+
* request_id: "line-14",
|
|
166
|
+
* endpoint: "/v2/generate",
|
|
167
|
+
* payload: {
|
|
168
|
+
* model: "sync-3",
|
|
169
|
+
* input: [{
|
|
170
|
+
* type: "video",
|
|
171
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
172
|
+
* }],
|
|
173
|
+
* dialogueEdit: {
|
|
174
|
+
* id: "a09967c4-8171-582f-8dba-1ba07d55f918"
|
|
175
|
+
* }
|
|
176
|
+
* }
|
|
177
|
+
* }, {
|
|
178
|
+
* request_id: "line-15",
|
|
179
|
+
* endpoint: "/v2/generate",
|
|
180
|
+
* payload: {
|
|
181
|
+
* model: "sync-3",
|
|
182
|
+
* input: [{
|
|
183
|
+
* type: "video",
|
|
184
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
185
|
+
* }],
|
|
186
|
+
* dialogueEdit: {
|
|
187
|
+
* id: "39df4e4f-b23d-54ca-99a8-f29ec567790b"
|
|
188
|
+
* }
|
|
189
|
+
* }
|
|
190
|
+
* }, {
|
|
191
|
+
* request_id: "line-16",
|
|
192
|
+
* endpoint: "/v2/generate",
|
|
193
|
+
* payload: {
|
|
194
|
+
* model: "sync-3",
|
|
195
|
+
* input: [{
|
|
196
|
+
* type: "video",
|
|
197
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
198
|
+
* }],
|
|
199
|
+
* dialogueEdit: {
|
|
200
|
+
* id: "0370783a-12d5-5dfb-8736-49118428df47"
|
|
201
|
+
* }
|
|
202
|
+
* }
|
|
203
|
+
* }, {
|
|
204
|
+
* request_id: "line-17",
|
|
205
|
+
* endpoint: "/v2/generate",
|
|
206
|
+
* payload: {
|
|
207
|
+
* model: "sync-3",
|
|
208
|
+
* input: [{
|
|
209
|
+
* type: "video",
|
|
210
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
211
|
+
* }],
|
|
212
|
+
* dialogueEdit: {
|
|
213
|
+
* id: "a65eecc2-ad79-5123-acf7-e81a57b2422f"
|
|
214
|
+
* }
|
|
215
|
+
* }
|
|
216
|
+
* }, {
|
|
217
|
+
* request_id: "line-18",
|
|
218
|
+
* endpoint: "/v2/generate",
|
|
219
|
+
* payload: {
|
|
220
|
+
* model: "sync-3",
|
|
221
|
+
* input: [{
|
|
222
|
+
* type: "video",
|
|
223
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
224
|
+
* }],
|
|
225
|
+
* dialogueEdit: {
|
|
226
|
+
* id: "a0200ef6-d140-50bb-9784-3b9e265be374"
|
|
227
|
+
* }
|
|
228
|
+
* }
|
|
229
|
+
* }, {
|
|
230
|
+
* request_id: "line-19",
|
|
231
|
+
* endpoint: "/v2/generate",
|
|
232
|
+
* payload: {
|
|
233
|
+
* model: "sync-3",
|
|
234
|
+
* input: [{
|
|
235
|
+
* type: "video",
|
|
236
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
237
|
+
* }],
|
|
238
|
+
* dialogueEdit: {
|
|
239
|
+
* id: "06cc754a-b625-58c2-ad2d-74ec08fb517a"
|
|
240
|
+
* }
|
|
241
|
+
* }
|
|
242
|
+
* }, {
|
|
243
|
+
* request_id: "line-20",
|
|
244
|
+
* endpoint: "/v2/generate",
|
|
245
|
+
* payload: {
|
|
246
|
+
* model: "sync-3",
|
|
247
|
+
* input: [{
|
|
248
|
+
* type: "video",
|
|
249
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
250
|
+
* }],
|
|
251
|
+
* dialogueEdit: {
|
|
252
|
+
* id: "32889341-cc9e-59c6-b18a-32bbb525c26e"
|
|
253
|
+
* }
|
|
254
|
+
* }
|
|
255
|
+
* }, {
|
|
256
|
+
* request_id: "line-21",
|
|
257
|
+
* endpoint: "/v2/generate",
|
|
258
|
+
* payload: {
|
|
259
|
+
* model: "sync-3",
|
|
260
|
+
* input: [{
|
|
261
|
+
* type: "video",
|
|
262
|
+
* url: "https://assets.sync.so/docs/example-video.mp4"
|
|
263
|
+
* }],
|
|
264
|
+
* dialogueEdit: {
|
|
265
|
+
* id: "f6568dbc-0390-5227-b107-64c3842adb3b"
|
|
266
|
+
* }
|
|
267
|
+
* }
|
|
268
|
+
* }],
|
|
269
|
+
* dry_run: true
|
|
270
|
+
* }
|
|
271
|
+
*/
|
|
272
|
+
export interface CreateBatchFromRowsRequest {
|
|
273
|
+
/** The batch records: 20-500 by default on Scale and above, 1 up to your free generation slots below Scale. Each row contains `request_id`, endpoint exactly `/v2/generate`, and a generation `payload`, as on a JSONL line. */
|
|
274
|
+
rows: Sync.BatchRow[];
|
|
275
|
+
/** Optional webhook URL to receive batch completion notifications. A POST request will be sent when the batch completes or fails, with a Sync-Signature header (`t=<unix>,v1=<hmac_sha256>`) signed with the organization webhook secret and a stable Sync-Delivery-Id header. Delivery is attempted up to six times over about two hours. */
|
|
276
|
+
webhook_url?: string;
|
|
277
|
+
/** When true, validates the rows, including dialogue edit expansion, and returns `{ "status": "VALIDATED" }` without creating a batch. */
|
|
278
|
+
dry_run?: boolean;
|
|
279
|
+
}
|