magic-hour 0.6.0 → 0.7.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/README.md +5 -1
- package/dist/core/api-promise.d.ts +14 -6
- package/dist/core/api-promise.js +184 -10
- package/dist/core/core-client.d.ts +5 -3
- package/dist/core/core-client.js +7 -3
- package/dist/core/form-data.d.ts +1 -2
- package/dist/core/form-data.js +6 -7
- package/dist/core/index.d.ts +2 -1
- package/dist/core/index.js +4 -1
- package/dist/core/zod.d.ts +15 -0
- package/dist/core/zod.js +60 -0
- package/dist/environment.js +1 -1
- package/dist/index.js +17 -7
- package/dist/resources/index.js +17 -7
- package/dist/resources/v1/ai-headshot-generator/request-types.d.ts +24 -3
- package/dist/resources/v1/ai-headshot-generator/request-types.js +70 -0
- package/dist/resources/v1/ai-headshot-generator/resource-client.js +4 -1
- package/dist/resources/v1/ai-image-generator/request-types.d.ts +29 -3
- package/dist/resources/v1/ai-image-generator/request-types.js +78 -0
- package/dist/resources/v1/ai-image-generator/resource-client.js +4 -1
- package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +29 -3
- package/dist/resources/v1/ai-image-upscaler/request-types.js +79 -0
- package/dist/resources/v1/ai-image-upscaler/resource-client.js +4 -1
- package/dist/resources/v1/ai-photo-editor/request-types.d.ts +37 -3
- package/dist/resources/v1/ai-photo-editor/request-types.js +83 -0
- package/dist/resources/v1/ai-photo-editor/resource-client.js +4 -1
- package/dist/resources/v1/ai-qr-code-generator/request-types.d.ts +26 -3
- package/dist/resources/v1/ai-qr-code-generator/request-types.js +74 -0
- package/dist/resources/v1/ai-qr-code-generator/resource-client.js +4 -1
- package/dist/resources/v1/animation/request-types.d.ts +50 -3
- package/dist/resources/v1/animation/request-types.js +91 -0
- package/dist/resources/v1/animation/resource-client.js +4 -1
- package/dist/resources/v1/face-swap/request-types.d.ts +44 -3
- package/dist/resources/v1/face-swap/request-types.js +86 -0
- package/dist/resources/v1/face-swap/resource-client.js +4 -1
- package/dist/resources/v1/face-swap-photo/request-types.d.ts +24 -3
- package/dist/resources/v1/face-swap-photo/request-types.js +70 -0
- package/dist/resources/v1/face-swap-photo/resource-client.js +4 -1
- package/dist/resources/v1/files/index.js +17 -7
- package/dist/resources/v1/files/upload-urls/request-types.d.ts +16 -3
- package/dist/resources/v1/files/upload-urls/request-types.js +66 -0
- package/dist/resources/v1/files/upload-urls/resource-client.js +4 -1
- package/dist/resources/v1/image-background-remover/index.d.ts +5 -0
- package/dist/resources/v1/image-background-remover/index.js +8 -0
- package/dist/resources/v1/image-background-remover/request-types.d.ts +31 -0
- package/dist/resources/v1/image-background-remover/request-types.js +75 -0
- package/dist/resources/v1/image-background-remover/resource-client.d.ts +15 -0
- package/dist/resources/v1/image-background-remover/resource-client.js +32 -0
- package/dist/resources/v1/image-projects/request-types.d.ts +27 -2
- package/dist/resources/v1/image-projects/request-types.js +94 -0
- package/dist/resources/v1/image-projects/resource-client.js +2 -0
- package/dist/resources/v1/image-to-video/request-types.d.ts +42 -3
- package/dist/resources/v1/image-to-video/request-types.js +87 -0
- package/dist/resources/v1/image-to-video/resource-client.js +4 -1
- package/dist/resources/v1/index.d.ts +1 -0
- package/dist/resources/v1/index.js +19 -8
- package/dist/resources/v1/lip-sync/request-types.d.ts +49 -3
- package/dist/resources/v1/lip-sync/request-types.js +90 -0
- package/dist/resources/v1/lip-sync/resource-client.js +4 -1
- package/dist/resources/v1/resource-client.d.ts +2 -0
- package/dist/resources/v1/resource-client.js +2 -0
- package/dist/resources/v1/text-to-video/request-types.d.ts +32 -3
- package/dist/resources/v1/text-to-video/request-types.js +78 -0
- package/dist/resources/v1/text-to-video/resource-client.js +4 -1
- package/dist/resources/v1/video-projects/request-types.d.ts +27 -2
- package/dist/resources/v1/video-projects/request-types.js +94 -0
- package/dist/resources/v1/video-projects/resource-client.js +2 -0
- package/dist/resources/v1/video-to-video/request-types.d.ts +55 -3
- package/dist/resources/v1/video-to-video/request-types.js +95 -0
- package/dist/resources/v1/video-to-video/resource-client.js +4 -1
- package/dist/types/delete-v1-image-projects-id-response400.d.ts +14 -1
- package/dist/types/delete-v1-image-projects-id-response400.js +65 -0
- package/dist/types/delete-v1-image-projects-id-response401-message-enum.d.ts +9 -1
- package/dist/types/delete-v1-image-projects-id-response401.d.ts +16 -3
- package/dist/types/delete-v1-image-projects-id-response401.js +65 -0
- package/dist/types/delete-v1-image-projects-id-response404-message-enum.d.ts +9 -1
- package/dist/types/delete-v1-image-projects-id-response404.d.ts +16 -3
- package/dist/types/delete-v1-image-projects-id-response404.js +65 -0
- package/dist/types/delete-v1-video-projects-id-response400.d.ts +14 -1
- package/dist/types/delete-v1-video-projects-id-response400.js +65 -0
- package/dist/types/delete-v1-video-projects-id-response401-message-enum.d.ts +9 -1
- package/dist/types/delete-v1-video-projects-id-response401.d.ts +16 -3
- package/dist/types/delete-v1-video-projects-id-response401.js +65 -0
- package/dist/types/delete-v1-video-projects-id-response404-message-enum.d.ts +9 -1
- package/dist/types/delete-v1-video-projects-id-response404.d.ts +16 -3
- package/dist/types/delete-v1-video-projects-id-response404.js +65 -0
- package/dist/types/delete-v1-video-projects-id-response422.d.ts +14 -1
- package/dist/types/delete-v1-video-projects-id-response422.js +65 -0
- package/dist/types/get-v1-image-projects-id-response-downloads-item.d.ts +15 -1
- package/dist/types/get-v1-image-projects-id-response-downloads-item.js +69 -0
- package/dist/types/get-v1-image-projects-id-response-error.d.ts +15 -1
- package/dist/types/get-v1-image-projects-id-response-error.js +69 -0
- package/dist/types/get-v1-image-projects-id-response-status-enum.d.ts +9 -1
- package/dist/types/get-v1-image-projects-id-response-type-enum.d.ts +9 -1
- package/dist/types/get-v1-image-projects-id-response.d.ts +34 -9
- package/dist/types/get-v1-image-projects-id-response.js +133 -0
- package/dist/types/get-v1-image-projects-id-response400.d.ts +14 -1
- package/dist/types/get-v1-image-projects-id-response400.js +65 -0
- package/dist/types/get-v1-image-projects-id-response401-message-enum.d.ts +9 -1
- package/dist/types/get-v1-image-projects-id-response401.d.ts +16 -3
- package/dist/types/get-v1-image-projects-id-response401.js +65 -0
- package/dist/types/get-v1-image-projects-id-response404-message-enum.d.ts +9 -1
- package/dist/types/get-v1-image-projects-id-response404.d.ts +16 -3
- package/dist/types/get-v1-image-projects-id-response404.js +65 -0
- package/dist/types/get-v1-video-projects-id-response-download.d.ts +16 -2
- package/dist/types/get-v1-video-projects-id-response-download.js +69 -0
- package/dist/types/get-v1-video-projects-id-response-downloads-item.d.ts +24 -0
- package/dist/types/get-v1-video-projects-id-response-downloads-item.js +74 -0
- package/dist/types/get-v1-video-projects-id-response-error.d.ts +15 -1
- package/dist/types/get-v1-video-projects-id-response-error.js +69 -0
- package/dist/types/get-v1-video-projects-id-response-status-enum.d.ts +9 -1
- package/dist/types/get-v1-video-projects-id-response-type-enum.d.ts +9 -1
- package/dist/types/get-v1-video-projects-id-response.d.ts +44 -12
- package/dist/types/get-v1-video-projects-id-response.js +152 -0
- package/dist/types/get-v1-video-projects-id-response400.d.ts +14 -1
- package/dist/types/get-v1-video-projects-id-response400.js +65 -0
- package/dist/types/get-v1-video-projects-id-response401-message-enum.d.ts +9 -1
- package/dist/types/get-v1-video-projects-id-response401.d.ts +16 -3
- package/dist/types/get-v1-video-projects-id-response401.js +65 -0
- package/dist/types/get-v1-video-projects-id-response404-message-enum.d.ts +9 -1
- package/dist/types/get-v1-video-projects-id-response404.d.ts +16 -3
- package/dist/types/get-v1-video-projects-id-response404.js +65 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/post-v1-ai-headshot-generator-body-assets.d.ts +14 -1
- package/dist/types/post-v1-ai-headshot-generator-body-assets.js +65 -0
- package/dist/types/post-v1-ai-headshot-generator-body.d.ts +18 -4
- package/dist/types/post-v1-ai-headshot-generator-body.js +70 -0
- package/dist/types/post-v1-ai-headshot-generator-response.d.ts +19 -2
- package/dist/types/post-v1-ai-headshot-generator-response.js +69 -0
- package/dist/types/post-v1-ai-headshot-generator-response400.d.ts +14 -1
- package/dist/types/post-v1-ai-headshot-generator-response400.js +65 -0
- package/dist/types/post-v1-ai-headshot-generator-response401-message-enum.d.ts +9 -1
- package/dist/types/post-v1-ai-headshot-generator-response401.d.ts +16 -3
- package/dist/types/post-v1-ai-headshot-generator-response401.js +65 -0
- package/dist/types/post-v1-ai-headshot-generator-response404-message-enum.d.ts +9 -1
- package/dist/types/post-v1-ai-headshot-generator-response404.d.ts +16 -3
- package/dist/types/post-v1-ai-headshot-generator-response404.js +65 -0
- package/dist/types/post-v1-ai-headshot-generator-response422.d.ts +14 -1
- package/dist/types/post-v1-ai-headshot-generator-response422.js +65 -0
- package/dist/types/post-v1-ai-image-generator-body-orientation-enum.d.ts +9 -1
- package/dist/types/post-v1-ai-image-generator-body-style.d.ts +14 -1
- package/dist/types/post-v1-ai-image-generator-body-style.js +65 -0
- package/dist/types/post-v1-ai-image-generator-body.d.ts +23 -6
- package/dist/types/post-v1-ai-image-generator-body.js +78 -0
- package/dist/types/post-v1-ai-image-generator-response.d.ts +19 -2
- package/dist/types/post-v1-ai-image-generator-response.js +69 -0
- package/dist/types/post-v1-ai-image-generator-response400.d.ts +14 -1
- package/dist/types/post-v1-ai-image-generator-response400.js +65 -0
- package/dist/types/post-v1-ai-image-generator-response401-message-enum.d.ts +9 -1
- package/dist/types/post-v1-ai-image-generator-response401.d.ts +16 -3
- package/dist/types/post-v1-ai-image-generator-response401.js +65 -0
- package/dist/types/post-v1-ai-image-generator-response404-message-enum.d.ts +9 -1
- package/dist/types/post-v1-ai-image-generator-response404.d.ts +16 -3
- package/dist/types/post-v1-ai-image-generator-response404.js +65 -0
- package/dist/types/post-v1-ai-image-generator-response422.d.ts +14 -1
- package/dist/types/post-v1-ai-image-generator-response422.js +65 -0
- package/dist/types/post-v1-ai-image-upscaler-body-assets.d.ts +14 -1
- package/dist/types/post-v1-ai-image-upscaler-body-assets.js +65 -0
- package/dist/types/post-v1-ai-image-upscaler-body-style-enhancement-enum.d.ts +9 -1
- package/dist/types/post-v1-ai-image-upscaler-body-style.d.ts +18 -4
- package/dist/types/post-v1-ai-image-upscaler-body-style.js +69 -0
- package/dist/types/post-v1-ai-image-upscaler-body.d.ts +22 -5
- package/dist/types/post-v1-ai-image-upscaler-body.js +79 -0
- package/dist/types/post-v1-ai-image-upscaler-response.d.ts +19 -2
- package/dist/types/post-v1-ai-image-upscaler-response.js +69 -0
- package/dist/types/post-v1-ai-image-upscaler-response400.d.ts +14 -1
- package/dist/types/post-v1-ai-image-upscaler-response400.js +65 -0
- package/dist/types/post-v1-ai-image-upscaler-response401-message-enum.d.ts +9 -1
- package/dist/types/post-v1-ai-image-upscaler-response401.d.ts +16 -3
- package/dist/types/post-v1-ai-image-upscaler-response401.js +65 -0
- package/dist/types/post-v1-ai-image-upscaler-response404-message-enum.d.ts +9 -1
- package/dist/types/post-v1-ai-image-upscaler-response404.d.ts +16 -3
- package/dist/types/post-v1-ai-image-upscaler-response404.js +65 -0
- package/dist/types/post-v1-ai-image-upscaler-response422.d.ts +14 -1
- package/dist/types/post-v1-ai-image-upscaler-response422.js +65 -0
- package/dist/types/post-v1-ai-photo-editor-body-assets.d.ts +14 -1
- package/dist/types/post-v1-ai-photo-editor-body-assets.js +65 -0
- package/dist/types/post-v1-ai-photo-editor-body-style.d.ts +24 -6
- package/dist/types/post-v1-ai-photo-editor-body-style.js +85 -0
- package/dist/types/post-v1-ai-photo-editor-body.d.ts +24 -6
- package/dist/types/post-v1-ai-photo-editor-body.js +83 -0
- package/dist/types/post-v1-ai-photo-editor-response.d.ts +19 -2
- package/dist/types/post-v1-ai-photo-editor-response.js +69 -0
- package/dist/types/post-v1-ai-photo-editor-response400.d.ts +14 -1
- package/dist/types/post-v1-ai-photo-editor-response400.js +65 -0
- package/dist/types/post-v1-ai-photo-editor-response401-message-enum.d.ts +9 -1
- package/dist/types/post-v1-ai-photo-editor-response401.d.ts +16 -3
- package/dist/types/post-v1-ai-photo-editor-response401.js +65 -0
- package/dist/types/post-v1-ai-photo-editor-response404-message-enum.d.ts +9 -1
- package/dist/types/post-v1-ai-photo-editor-response404.d.ts +16 -3
- package/dist/types/post-v1-ai-photo-editor-response404.js +65 -0
- package/dist/types/post-v1-ai-photo-editor-response422.d.ts +14 -1
- package/dist/types/post-v1-ai-photo-editor-response422.js +65 -0
- package/dist/types/post-v1-ai-qr-code-generator-body-style.d.ts +14 -1
- package/dist/types/post-v1-ai-qr-code-generator-body-style.js +65 -0
- package/dist/types/post-v1-ai-qr-code-generator-body.d.ts +19 -4
- package/dist/types/post-v1-ai-qr-code-generator-body.js +74 -0
- package/dist/types/post-v1-ai-qr-code-generator-response.d.ts +19 -2
- package/dist/types/post-v1-ai-qr-code-generator-response.js +69 -0
- package/dist/types/post-v1-ai-qr-code-generator-response400.d.ts +14 -1
- package/dist/types/post-v1-ai-qr-code-generator-response400.js +65 -0
- package/dist/types/post-v1-ai-qr-code-generator-response401-message-enum.d.ts +9 -1
- package/dist/types/post-v1-ai-qr-code-generator-response401.d.ts +16 -3
- package/dist/types/post-v1-ai-qr-code-generator-response401.js +65 -0
- package/dist/types/post-v1-ai-qr-code-generator-response404-message-enum.d.ts +9 -1
- package/dist/types/post-v1-ai-qr-code-generator-response404.d.ts +16 -3
- package/dist/types/post-v1-ai-qr-code-generator-response404.js +65 -0
- package/dist/types/post-v1-ai-qr-code-generator-response422.d.ts +14 -1
- package/dist/types/post-v1-ai-qr-code-generator-response422.js +65 -0
- package/dist/types/post-v1-animation-body-assets-audio-source-enum.d.ts +9 -1
- package/dist/types/post-v1-animation-body-assets.d.ts +22 -6
- package/dist/types/post-v1-animation-body-assets.js +77 -0
- package/dist/types/post-v1-animation-body-style-art-style-enum.d.ts +9 -1
- package/dist/types/post-v1-animation-body-style-camera-effect-enum.d.ts +9 -1
- package/dist/types/post-v1-animation-body-style-prompt-type-enum.d.ts +12 -1
- package/dist/types/post-v1-animation-body-style.d.ts +27 -7
- package/dist/types/post-v1-animation-body-style.js +287 -0
- package/dist/types/post-v1-animation-body.d.ts +26 -6
- package/dist/types/post-v1-animation-body.js +91 -0
- package/dist/types/post-v1-animation-response.d.ts +16 -2
- package/dist/types/post-v1-animation-response.js +69 -0
- package/dist/types/post-v1-animation-response400.d.ts +14 -1
- package/dist/types/post-v1-animation-response400.js +65 -0
- package/dist/types/post-v1-animation-response401-message-enum.d.ts +9 -1
- package/dist/types/post-v1-animation-response401.d.ts +16 -3
- package/dist/types/post-v1-animation-response401.js +65 -0
- package/dist/types/post-v1-animation-response404-message-enum.d.ts +9 -1
- package/dist/types/post-v1-animation-response404.d.ts +16 -3
- package/dist/types/post-v1-animation-response404.js +65 -0
- package/dist/types/post-v1-animation-response422.d.ts +14 -1
- package/dist/types/post-v1-animation-response422.js +65 -0
- package/dist/types/post-v1-face-swap-body-assets-video-source-enum.d.ts +9 -1
- package/dist/types/post-v1-face-swap-body-assets.d.ts +22 -6
- package/dist/types/post-v1-face-swap-body-assets.js +77 -0
- package/dist/types/post-v1-face-swap-body.d.ts +24 -6
- package/dist/types/post-v1-face-swap-body.js +86 -0
- package/dist/types/post-v1-face-swap-photo-body-assets.d.ts +16 -2
- package/dist/types/post-v1-face-swap-photo-body-assets.js +69 -0
- package/dist/types/post-v1-face-swap-photo-body.d.ts +18 -4
- package/dist/types/post-v1-face-swap-photo-body.js +70 -0
- package/dist/types/post-v1-face-swap-photo-response.d.ts +19 -2
- package/dist/types/post-v1-face-swap-photo-response.js +69 -0
- package/dist/types/post-v1-face-swap-photo-response400.d.ts +14 -1
- package/dist/types/post-v1-face-swap-photo-response400.js +65 -0
- package/dist/types/post-v1-face-swap-photo-response401-message-enum.d.ts +9 -1
- package/dist/types/post-v1-face-swap-photo-response401.d.ts +16 -3
- package/dist/types/post-v1-face-swap-photo-response401.js +65 -0
- package/dist/types/post-v1-face-swap-photo-response404-message-enum.d.ts +9 -1
- package/dist/types/post-v1-face-swap-photo-response404.d.ts +16 -3
- package/dist/types/post-v1-face-swap-photo-response404.js +65 -0
- package/dist/types/post-v1-face-swap-photo-response422.d.ts +14 -1
- package/dist/types/post-v1-face-swap-photo-response422.js +65 -0
- package/dist/types/post-v1-face-swap-response.d.ts +16 -2
- package/dist/types/post-v1-face-swap-response.js +69 -0
- package/dist/types/post-v1-face-swap-response400.d.ts +14 -1
- package/dist/types/post-v1-face-swap-response400.js +65 -0
- package/dist/types/post-v1-face-swap-response401-message-enum.d.ts +9 -1
- package/dist/types/post-v1-face-swap-response401.d.ts +16 -3
- package/dist/types/post-v1-face-swap-response401.js +65 -0
- package/dist/types/post-v1-face-swap-response404-message-enum.d.ts +9 -1
- package/dist/types/post-v1-face-swap-response404.d.ts +16 -3
- package/dist/types/post-v1-face-swap-response404.js +65 -0
- package/dist/types/post-v1-face-swap-response422.d.ts +14 -1
- package/dist/types/post-v1-face-swap-response422.js +65 -0
- package/dist/types/post-v1-files-upload-urls-body-items-item-type-enum.d.ts +9 -1
- package/dist/types/post-v1-files-upload-urls-body-items-item.d.ts +17 -3
- package/dist/types/post-v1-files-upload-urls-body-items-item.js +69 -0
- package/dist/types/post-v1-files-upload-urls-body.d.ts +16 -3
- package/dist/types/post-v1-files-upload-urls-body.js +66 -0
- package/dist/types/post-v1-files-upload-urls-response-items-item.d.ts +18 -3
- package/dist/types/post-v1-files-upload-urls-response-items-item.js +73 -0
- package/dist/types/post-v1-files-upload-urls-response.d.ts +16 -3
- package/dist/types/post-v1-files-upload-urls-response.js +66 -0
- package/dist/types/post-v1-files-upload-urls-response400.d.ts +14 -1
- package/dist/types/post-v1-files-upload-urls-response400.js +65 -0
- package/dist/types/post-v1-files-upload-urls-response401-message-enum.d.ts +9 -1
- package/dist/types/post-v1-files-upload-urls-response401.d.ts +16 -3
- package/dist/types/post-v1-files-upload-urls-response401.js +65 -0
- package/dist/types/post-v1-files-upload-urls-response404-message-enum.d.ts +9 -1
- package/dist/types/post-v1-files-upload-urls-response404.d.ts +16 -3
- package/dist/types/post-v1-files-upload-urls-response404.js +65 -0
- package/dist/types/post-v1-files-upload-urls-response422.d.ts +14 -1
- package/dist/types/post-v1-files-upload-urls-response422.js +65 -0
- package/dist/types/post-v1-image-background-remover-body-assets.d.ts +25 -0
- package/dist/types/post-v1-image-background-remover-body-assets.js +70 -0
- package/dist/types/post-v1-image-background-remover-body.d.ts +31 -0
- package/dist/types/post-v1-image-background-remover-body.js +75 -0
- package/dist/types/post-v1-image-background-remover-response.d.ts +30 -0
- package/dist/types/post-v1-image-background-remover-response.js +74 -0
- package/dist/types/post-v1-image-background-remover-response400.d.ts +22 -0
- package/dist/types/post-v1-image-background-remover-response400.js +70 -0
- package/dist/types/post-v1-image-background-remover-response401-message-enum.d.ts +12 -0
- package/dist/types/post-v1-image-background-remover-response401-message-enum.js +2 -0
- package/dist/types/post-v1-image-background-remover-response401.d.ts +23 -0
- package/dist/types/post-v1-image-background-remover-response401.js +70 -0
- package/dist/types/post-v1-image-background-remover-response404-message-enum.d.ts +12 -0
- package/dist/types/post-v1-image-background-remover-response404-message-enum.js +2 -0
- package/dist/types/post-v1-image-background-remover-response404.d.ts +23 -0
- package/dist/types/post-v1-image-background-remover-response404.js +70 -0
- package/dist/types/post-v1-image-background-remover-response422.d.ts +22 -0
- package/dist/types/post-v1-image-background-remover-response422.js +70 -0
- package/dist/types/post-v1-image-to-video-body-assets.d.ts +14 -1
- package/dist/types/post-v1-image-to-video-body-assets.js +65 -0
- package/dist/types/post-v1-image-to-video-body-style.d.ts +15 -2
- package/dist/types/post-v1-image-to-video-body-style.js +65 -0
- package/dist/types/post-v1-image-to-video-body.d.ts +25 -6
- package/dist/types/post-v1-image-to-video-body.js +87 -0
- package/dist/types/post-v1-image-to-video-response.d.ts +16 -2
- package/dist/types/post-v1-image-to-video-response.js +69 -0
- package/dist/types/post-v1-image-to-video-response400.d.ts +14 -1
- package/dist/types/post-v1-image-to-video-response400.js +65 -0
- package/dist/types/post-v1-image-to-video-response401-message-enum.d.ts +9 -1
- package/dist/types/post-v1-image-to-video-response401.d.ts +16 -3
- package/dist/types/post-v1-image-to-video-response401.js +65 -0
- package/dist/types/post-v1-image-to-video-response404-message-enum.d.ts +9 -1
- package/dist/types/post-v1-image-to-video-response404.d.ts +16 -3
- package/dist/types/post-v1-image-to-video-response404.js +65 -0
- package/dist/types/post-v1-image-to-video-response422.d.ts +14 -1
- package/dist/types/post-v1-image-to-video-response422.js +65 -0
- package/dist/types/post-v1-lip-sync-body-assets-video-source-enum.d.ts +9 -1
- package/dist/types/post-v1-lip-sync-body-assets.d.ts +22 -6
- package/dist/types/post-v1-lip-sync-body-assets.js +77 -0
- package/dist/types/post-v1-lip-sync-body.d.ts +26 -7
- package/dist/types/post-v1-lip-sync-body.js +90 -0
- package/dist/types/post-v1-lip-sync-response.d.ts +16 -2
- package/dist/types/post-v1-lip-sync-response.js +69 -0
- package/dist/types/post-v1-lip-sync-response400.d.ts +14 -1
- package/dist/types/post-v1-lip-sync-response400.js +65 -0
- package/dist/types/post-v1-lip-sync-response401-message-enum.d.ts +9 -1
- package/dist/types/post-v1-lip-sync-response401.d.ts +16 -3
- package/dist/types/post-v1-lip-sync-response401.js +65 -0
- package/dist/types/post-v1-lip-sync-response404-message-enum.d.ts +9 -1
- package/dist/types/post-v1-lip-sync-response404.d.ts +16 -3
- package/dist/types/post-v1-lip-sync-response404.js +65 -0
- package/dist/types/post-v1-lip-sync-response422.d.ts +14 -1
- package/dist/types/post-v1-lip-sync-response422.js +65 -0
- package/dist/types/post-v1-text-to-video-body-orientation-enum.d.ts +9 -1
- package/dist/types/post-v1-text-to-video-body-style.d.ts +14 -1
- package/dist/types/post-v1-text-to-video-body-style.js +65 -0
- package/dist/types/post-v1-text-to-video-body.d.ts +23 -6
- package/dist/types/post-v1-text-to-video-body.js +78 -0
- package/dist/types/post-v1-text-to-video-response.d.ts +16 -2
- package/dist/types/post-v1-text-to-video-response.js +69 -0
- package/dist/types/post-v1-text-to-video-response400.d.ts +14 -1
- package/dist/types/post-v1-text-to-video-response400.js +65 -0
- package/dist/types/post-v1-text-to-video-response401-message-enum.d.ts +9 -1
- package/dist/types/post-v1-text-to-video-response401.d.ts +16 -3
- package/dist/types/post-v1-text-to-video-response401.js +65 -0
- package/dist/types/post-v1-text-to-video-response404-message-enum.d.ts +9 -1
- package/dist/types/post-v1-text-to-video-response404.d.ts +16 -3
- package/dist/types/post-v1-text-to-video-response404.js +65 -0
- package/dist/types/post-v1-text-to-video-response422.d.ts +14 -1
- package/dist/types/post-v1-text-to-video-response422.js +65 -0
- package/dist/types/post-v1-video-to-video-body-assets-video-source-enum.d.ts +9 -1
- package/dist/types/post-v1-video-to-video-body-assets.d.ts +20 -5
- package/dist/types/post-v1-video-to-video-body-assets.js +73 -0
- package/dist/types/post-v1-video-to-video-body-fps-resolution-enum.d.ts +11 -1
- package/dist/types/post-v1-video-to-video-body-style-art-style-enum.d.ts +9 -1
- package/dist/types/post-v1-video-to-video-body-style-model-enum.d.ts +12 -1
- package/dist/types/post-v1-video-to-video-body-style-prompt-type-enum.d.ts +11 -1
- package/dist/types/post-v1-video-to-video-body-style-version-enum.d.ts +11 -1
- package/dist/types/post-v1-video-to-video-body-style.d.ts +27 -7
- package/dist/types/post-v1-video-to-video-body-style.js +211 -0
- package/dist/types/post-v1-video-to-video-body.d.ts +32 -10
- package/dist/types/post-v1-video-to-video-body.js +95 -0
- package/dist/types/post-v1-video-to-video-response.d.ts +16 -2
- package/dist/types/post-v1-video-to-video-response.js +69 -0
- package/dist/types/post-v1-video-to-video-response400.d.ts +14 -1
- package/dist/types/post-v1-video-to-video-response400.js +65 -0
- package/dist/types/post-v1-video-to-video-response401-message-enum.d.ts +9 -1
- package/dist/types/post-v1-video-to-video-response401.d.ts +16 -3
- package/dist/types/post-v1-video-to-video-response401.js +65 -0
- package/dist/types/post-v1-video-to-video-response404-message-enum.d.ts +9 -1
- package/dist/types/post-v1-video-to-video-response404.d.ts +16 -3
- package/dist/types/post-v1-video-to-video-response404.js +65 -0
- package/dist/types/post-v1-video-to-video-response422.d.ts +14 -1
- package/dist/types/post-v1-video-to-video-response422.js +65 -0
- package/package.json +12 -11
|
@@ -2,4 +2,94 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Generated by Sideko (sideko.dev)
|
|
4
4
|
**/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Schemas$PostV1LipSyncBody = void 0;
|
|
40
|
+
const post_v1_lip_sync_body_assets_1 = require("./post-v1-lip-sync-body-assets");
|
|
41
|
+
const core_1 = require("../core");
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
/**
|
|
44
|
+
* Takes network data, validates it, and transforms keys to match typescript object PostV1LipSyncBody
|
|
45
|
+
*/
|
|
46
|
+
const SchemaIn$PostV1LipSyncBody = z
|
|
47
|
+
.object({
|
|
48
|
+
assets: post_v1_lip_sync_body_assets_1.Schemas$PostV1LipSyncBodyAssets.in,
|
|
49
|
+
end_seconds: z.number(),
|
|
50
|
+
height: z.number().int(),
|
|
51
|
+
max_fps_limit: z.number().optional(),
|
|
52
|
+
name: z.string().optional(),
|
|
53
|
+
start_seconds: z.number(),
|
|
54
|
+
width: z.number().int(),
|
|
55
|
+
})
|
|
56
|
+
.transform((obj) => {
|
|
57
|
+
return (0, core_1.zodTransform)(obj, {
|
|
58
|
+
assets: "assets",
|
|
59
|
+
end_seconds: "endSeconds",
|
|
60
|
+
height: "height",
|
|
61
|
+
max_fps_limit: "maxFpsLimit",
|
|
62
|
+
name: "name",
|
|
63
|
+
start_seconds: "startSeconds",
|
|
64
|
+
width: "width",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$PostV1LipSyncBody
|
|
70
|
+
*/
|
|
71
|
+
const SchemaOut$PostV1LipSyncBody = z
|
|
72
|
+
.object({
|
|
73
|
+
assets: post_v1_lip_sync_body_assets_1.Schemas$PostV1LipSyncBodyAssets.out,
|
|
74
|
+
endSeconds: z.number(),
|
|
75
|
+
height: z.number().int(),
|
|
76
|
+
maxFpsLimit: z.number().optional(),
|
|
77
|
+
name: z.string().optional(),
|
|
78
|
+
startSeconds: z.number(),
|
|
79
|
+
width: z.number().int(),
|
|
80
|
+
})
|
|
81
|
+
.transform((obj) => {
|
|
82
|
+
return (0, core_1.zodTransform)(obj, {
|
|
83
|
+
assets: "assets",
|
|
84
|
+
endSeconds: "end_seconds",
|
|
85
|
+
height: "height",
|
|
86
|
+
maxFpsLimit: "max_fps_limit",
|
|
87
|
+
name: "name",
|
|
88
|
+
startSeconds: "start_seconds",
|
|
89
|
+
width: "width",
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
exports.Schemas$PostV1LipSyncBody = {
|
|
93
|
+
in: SchemaIn$PostV1LipSyncBody,
|
|
94
|
+
out: SchemaOut$PostV1LipSyncBody,
|
|
95
|
+
};
|
|
@@ -1,16 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
import * as z from "zod";
|
|
4
5
|
/**
|
|
5
6
|
* Success
|
|
6
7
|
*/
|
|
7
|
-
export
|
|
8
|
+
export type PostV1LipSyncResponse = {
|
|
8
9
|
/**
|
|
9
10
|
* Estimated cost of the video in terms of number of frames needed to render the video. Frames will be adjusted when the video completes
|
|
10
11
|
*/
|
|
11
|
-
|
|
12
|
+
estimatedFrameCost: number;
|
|
12
13
|
/**
|
|
13
14
|
* Unique ID of the video. This value can be used in the [get video project API](/api/tag/video-projects/get/v1/video-projects/{id}) to fetch additional details such as status
|
|
14
15
|
*/
|
|
15
16
|
id: string;
|
|
16
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* PostV1LipSyncResponse without any key transformation, this is what
|
|
21
|
+
* we expect to come in as network data
|
|
22
|
+
*/
|
|
23
|
+
export type External$PostV1LipSyncResponse = {
|
|
24
|
+
estimated_frame_cost: number;
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const Schemas$PostV1LipSyncResponse: {
|
|
28
|
+
in: z.ZodType<PostV1LipSyncResponse, z.ZodTypeDef, unknown>;
|
|
29
|
+
out: z.ZodType<External$PostV1LipSyncResponse, z.ZodTypeDef, PostV1LipSyncResponse>;
|
|
30
|
+
};
|
|
@@ -2,4 +2,73 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Generated by Sideko (sideko.dev)
|
|
4
4
|
**/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Schemas$PostV1LipSyncResponse = void 0;
|
|
40
|
+
const core_1 = require("../core");
|
|
41
|
+
const z = __importStar(require("zod"));
|
|
42
|
+
/**
|
|
43
|
+
* Takes network data, validates it, and transforms keys to match typescript object PostV1LipSyncResponse
|
|
44
|
+
*/
|
|
45
|
+
const SchemaIn$PostV1LipSyncResponse = z
|
|
46
|
+
.object({
|
|
47
|
+
estimated_frame_cost: z.number().int(),
|
|
48
|
+
id: z.string(),
|
|
49
|
+
})
|
|
50
|
+
.transform((obj) => {
|
|
51
|
+
return (0, core_1.zodTransform)(obj, {
|
|
52
|
+
estimated_frame_cost: "estimatedFrameCost",
|
|
53
|
+
id: "id",
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$PostV1LipSyncResponse
|
|
59
|
+
*/
|
|
60
|
+
const SchemaOut$PostV1LipSyncResponse = z
|
|
61
|
+
.object({
|
|
62
|
+
estimatedFrameCost: z.number().int(),
|
|
63
|
+
id: z.string(),
|
|
64
|
+
})
|
|
65
|
+
.transform((obj) => {
|
|
66
|
+
return (0, core_1.zodTransform)(obj, {
|
|
67
|
+
estimatedFrameCost: "estimated_frame_cost",
|
|
68
|
+
id: "id",
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
exports.Schemas$PostV1LipSyncResponse = {
|
|
72
|
+
in: SchemaIn$PostV1LipSyncResponse,
|
|
73
|
+
out: SchemaOut$PostV1LipSyncResponse,
|
|
74
|
+
};
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
import * as z from "zod";
|
|
4
5
|
/**
|
|
5
6
|
* The request is invalid
|
|
6
7
|
*/
|
|
7
|
-
export
|
|
8
|
+
export type PostV1LipSyncResponse400 = {
|
|
8
9
|
message: string;
|
|
9
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
* PostV1LipSyncResponse400 without any key transformation, this is what
|
|
14
|
+
* we expect to come in as network data
|
|
15
|
+
*/
|
|
16
|
+
export type External$PostV1LipSyncResponse400 = {
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const Schemas$PostV1LipSyncResponse400: {
|
|
20
|
+
in: z.ZodType<PostV1LipSyncResponse400, z.ZodTypeDef, unknown>;
|
|
21
|
+
out: z.ZodType<External$PostV1LipSyncResponse400, z.ZodTypeDef, PostV1LipSyncResponse400>;
|
|
22
|
+
};
|
|
@@ -2,4 +2,69 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Generated by Sideko (sideko.dev)
|
|
4
4
|
**/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Schemas$PostV1LipSyncResponse400 = void 0;
|
|
40
|
+
const core_1 = require("../core");
|
|
41
|
+
const z = __importStar(require("zod"));
|
|
42
|
+
/**
|
|
43
|
+
* Takes network data, validates it, and transforms keys to match typescript object PostV1LipSyncResponse400
|
|
44
|
+
*/
|
|
45
|
+
const SchemaIn$PostV1LipSyncResponse400 = z
|
|
46
|
+
.object({
|
|
47
|
+
message: z.string(),
|
|
48
|
+
})
|
|
49
|
+
.transform((obj) => {
|
|
50
|
+
return (0, core_1.zodTransform)(obj, {
|
|
51
|
+
message: "message",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$PostV1LipSyncResponse400
|
|
57
|
+
*/
|
|
58
|
+
const SchemaOut$PostV1LipSyncResponse400 = z
|
|
59
|
+
.object({
|
|
60
|
+
message: z.string(),
|
|
61
|
+
})
|
|
62
|
+
.transform((obj) => {
|
|
63
|
+
return (0, core_1.zodTransform)(obj, {
|
|
64
|
+
message: "message",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
exports.Schemas$PostV1LipSyncResponse400 = {
|
|
68
|
+
in: SchemaIn$PostV1LipSyncResponse400,
|
|
69
|
+
out: SchemaOut$PostV1LipSyncResponse400,
|
|
70
|
+
};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* PostV1LipSyncResponse401MessageEnum
|
|
6
|
+
*/
|
|
7
|
+
export type PostV1LipSyncResponse401MessageEnum = "Unauthorized";
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* Denotes external values of enum (same as above) to stay consistent with other types
|
|
11
|
+
*/
|
|
12
|
+
export type External$PostV1LipSyncResponse401MessageEnum = "Unauthorized";
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
import {
|
|
4
|
+
import { External$PostV1LipSyncResponse401MessageEnum, PostV1LipSyncResponse401MessageEnum } from "./post-v1-lip-sync-response401-message-enum";
|
|
5
|
+
import * as z from "zod";
|
|
5
6
|
/**
|
|
6
7
|
* The request is not properly authenticated
|
|
7
8
|
*/
|
|
8
|
-
export
|
|
9
|
-
message:
|
|
9
|
+
export type PostV1LipSyncResponse401 = {
|
|
10
|
+
message: PostV1LipSyncResponse401MessageEnum;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
* PostV1LipSyncResponse401 without any key transformation, this is what
|
|
15
|
+
* we expect to come in as network data
|
|
16
|
+
*/
|
|
17
|
+
export type External$PostV1LipSyncResponse401 = {
|
|
18
|
+
message: External$PostV1LipSyncResponse401MessageEnum;
|
|
19
|
+
};
|
|
20
|
+
export declare const Schemas$PostV1LipSyncResponse401: {
|
|
21
|
+
in: z.ZodType<PostV1LipSyncResponse401, z.ZodTypeDef, unknown>;
|
|
22
|
+
out: z.ZodType<External$PostV1LipSyncResponse401, z.ZodTypeDef, PostV1LipSyncResponse401>;
|
|
10
23
|
};
|
|
@@ -2,4 +2,69 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Generated by Sideko (sideko.dev)
|
|
4
4
|
**/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Schemas$PostV1LipSyncResponse401 = void 0;
|
|
40
|
+
const core_1 = require("../core");
|
|
41
|
+
const z = __importStar(require("zod"));
|
|
42
|
+
/**
|
|
43
|
+
* Takes network data, validates it, and transforms keys to match typescript object PostV1LipSyncResponse401
|
|
44
|
+
*/
|
|
45
|
+
const SchemaIn$PostV1LipSyncResponse401 = z
|
|
46
|
+
.object({
|
|
47
|
+
message: z.enum(["Unauthorized"]),
|
|
48
|
+
})
|
|
49
|
+
.transform((obj) => {
|
|
50
|
+
return (0, core_1.zodTransform)(obj, {
|
|
51
|
+
message: "message",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$PostV1LipSyncResponse401
|
|
57
|
+
*/
|
|
58
|
+
const SchemaOut$PostV1LipSyncResponse401 = z
|
|
59
|
+
.object({
|
|
60
|
+
message: z.enum(["Unauthorized"]),
|
|
61
|
+
})
|
|
62
|
+
.transform((obj) => {
|
|
63
|
+
return (0, core_1.zodTransform)(obj, {
|
|
64
|
+
message: "message",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
exports.Schemas$PostV1LipSyncResponse401 = {
|
|
68
|
+
in: SchemaIn$PostV1LipSyncResponse401,
|
|
69
|
+
out: SchemaOut$PostV1LipSyncResponse401,
|
|
70
|
+
};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* PostV1LipSyncResponse404MessageEnum
|
|
6
|
+
*/
|
|
7
|
+
export type PostV1LipSyncResponse404MessageEnum = "Not Found";
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* Denotes external values of enum (same as above) to stay consistent with other types
|
|
11
|
+
*/
|
|
12
|
+
export type External$PostV1LipSyncResponse404MessageEnum = "Not Found";
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
import {
|
|
4
|
+
import { External$PostV1LipSyncResponse404MessageEnum, PostV1LipSyncResponse404MessageEnum } from "./post-v1-lip-sync-response404-message-enum";
|
|
5
|
+
import * as z from "zod";
|
|
5
6
|
/**
|
|
6
7
|
* Requested resource is not found
|
|
7
8
|
*/
|
|
8
|
-
export
|
|
9
|
-
message:
|
|
9
|
+
export type PostV1LipSyncResponse404 = {
|
|
10
|
+
message: PostV1LipSyncResponse404MessageEnum;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
* PostV1LipSyncResponse404 without any key transformation, this is what
|
|
15
|
+
* we expect to come in as network data
|
|
16
|
+
*/
|
|
17
|
+
export type External$PostV1LipSyncResponse404 = {
|
|
18
|
+
message: External$PostV1LipSyncResponse404MessageEnum;
|
|
19
|
+
};
|
|
20
|
+
export declare const Schemas$PostV1LipSyncResponse404: {
|
|
21
|
+
in: z.ZodType<PostV1LipSyncResponse404, z.ZodTypeDef, unknown>;
|
|
22
|
+
out: z.ZodType<External$PostV1LipSyncResponse404, z.ZodTypeDef, PostV1LipSyncResponse404>;
|
|
10
23
|
};
|
|
@@ -2,4 +2,69 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Generated by Sideko (sideko.dev)
|
|
4
4
|
**/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Schemas$PostV1LipSyncResponse404 = void 0;
|
|
40
|
+
const core_1 = require("../core");
|
|
41
|
+
const z = __importStar(require("zod"));
|
|
42
|
+
/**
|
|
43
|
+
* Takes network data, validates it, and transforms keys to match typescript object PostV1LipSyncResponse404
|
|
44
|
+
*/
|
|
45
|
+
const SchemaIn$PostV1LipSyncResponse404 = z
|
|
46
|
+
.object({
|
|
47
|
+
message: z.enum(["Not Found"]),
|
|
48
|
+
})
|
|
49
|
+
.transform((obj) => {
|
|
50
|
+
return (0, core_1.zodTransform)(obj, {
|
|
51
|
+
message: "message",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$PostV1LipSyncResponse404
|
|
57
|
+
*/
|
|
58
|
+
const SchemaOut$PostV1LipSyncResponse404 = z
|
|
59
|
+
.object({
|
|
60
|
+
message: z.enum(["Not Found"]),
|
|
61
|
+
})
|
|
62
|
+
.transform((obj) => {
|
|
63
|
+
return (0, core_1.zodTransform)(obj, {
|
|
64
|
+
message: "message",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
exports.Schemas$PostV1LipSyncResponse404 = {
|
|
68
|
+
in: SchemaIn$PostV1LipSyncResponse404,
|
|
69
|
+
out: SchemaOut$PostV1LipSyncResponse404,
|
|
70
|
+
};
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
import * as z from "zod";
|
|
4
5
|
/**
|
|
5
6
|
* Unprocessable Entity
|
|
6
7
|
*/
|
|
7
|
-
export
|
|
8
|
+
export type PostV1LipSyncResponse422 = {
|
|
8
9
|
message: string;
|
|
9
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
* PostV1LipSyncResponse422 without any key transformation, this is what
|
|
14
|
+
* we expect to come in as network data
|
|
15
|
+
*/
|
|
16
|
+
export type External$PostV1LipSyncResponse422 = {
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const Schemas$PostV1LipSyncResponse422: {
|
|
20
|
+
in: z.ZodType<PostV1LipSyncResponse422, z.ZodTypeDef, unknown>;
|
|
21
|
+
out: z.ZodType<External$PostV1LipSyncResponse422, z.ZodTypeDef, PostV1LipSyncResponse422>;
|
|
22
|
+
};
|
|
@@ -2,4 +2,69 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Generated by Sideko (sideko.dev)
|
|
4
4
|
**/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Schemas$PostV1LipSyncResponse422 = void 0;
|
|
40
|
+
const core_1 = require("../core");
|
|
41
|
+
const z = __importStar(require("zod"));
|
|
42
|
+
/**
|
|
43
|
+
* Takes network data, validates it, and transforms keys to match typescript object PostV1LipSyncResponse422
|
|
44
|
+
*/
|
|
45
|
+
const SchemaIn$PostV1LipSyncResponse422 = z
|
|
46
|
+
.object({
|
|
47
|
+
message: z.string(),
|
|
48
|
+
})
|
|
49
|
+
.transform((obj) => {
|
|
50
|
+
return (0, core_1.zodTransform)(obj, {
|
|
51
|
+
message: "message",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$PostV1LipSyncResponse422
|
|
57
|
+
*/
|
|
58
|
+
const SchemaOut$PostV1LipSyncResponse422 = z
|
|
59
|
+
.object({
|
|
60
|
+
message: z.string(),
|
|
61
|
+
})
|
|
62
|
+
.transform((obj) => {
|
|
63
|
+
return (0, core_1.zodTransform)(obj, {
|
|
64
|
+
message: "message",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
exports.Schemas$PostV1LipSyncResponse422 = {
|
|
68
|
+
in: SchemaIn$PostV1LipSyncResponse422,
|
|
69
|
+
out: SchemaOut$PostV1LipSyncResponse422,
|
|
70
|
+
};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Determines the orientation of the output video
|
|
6
|
+
*/
|
|
7
|
+
export type PostV1TextToVideoBodyOrientationEnum = "landscape" | "portrait" | "square";
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* Denotes external values of enum (same as above) to stay consistent with other types
|
|
11
|
+
*/
|
|
12
|
+
export type External$PostV1TextToVideoBodyOrientationEnum = "landscape" | "portrait" | "square";
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
import * as z from "zod";
|
|
4
5
|
/**
|
|
5
6
|
* PostV1TextToVideoBodyStyle
|
|
6
7
|
*/
|
|
7
|
-
export
|
|
8
|
+
export type PostV1TextToVideoBodyStyle = {
|
|
8
9
|
/**
|
|
9
10
|
* The prompt used for the video.
|
|
10
11
|
*/
|
|
11
12
|
prompt: string;
|
|
12
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
* PostV1TextToVideoBodyStyle without any key transformation, this is what
|
|
17
|
+
* we expect to come in as network data
|
|
18
|
+
*/
|
|
19
|
+
export type External$PostV1TextToVideoBodyStyle = {
|
|
20
|
+
prompt: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const Schemas$PostV1TextToVideoBodyStyle: {
|
|
23
|
+
in: z.ZodType<PostV1TextToVideoBodyStyle, z.ZodTypeDef, unknown>;
|
|
24
|
+
out: z.ZodType<External$PostV1TextToVideoBodyStyle, z.ZodTypeDef, PostV1TextToVideoBodyStyle>;
|
|
25
|
+
};
|