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,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$PostV1TextToVideoResponse422 = 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 PostV1TextToVideoResponse422
|
|
44
|
+
*/
|
|
45
|
+
const SchemaIn$PostV1TextToVideoResponse422 = 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$PostV1TextToVideoResponse422
|
|
57
|
+
*/
|
|
58
|
+
const SchemaOut$PostV1TextToVideoResponse422 = 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$PostV1TextToVideoResponse422 = {
|
|
68
|
+
in: SchemaIn$PostV1TextToVideoResponse422,
|
|
69
|
+
out: SchemaOut$PostV1TextToVideoResponse422,
|
|
70
|
+
};
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* PostV1VideoToVideoBodyAssetsVideoSourceEnum
|
|
6
|
+
*/
|
|
7
|
+
export type PostV1VideoToVideoBodyAssetsVideoSourceEnum = "file" | "youtube";
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* Denotes external values of enum (same as above) to stay consistent with other types
|
|
11
|
+
*/
|
|
12
|
+
export type External$PostV1VideoToVideoBodyAssetsVideoSourceEnum = "file" | "youtube";
|
|
@@ -1,18 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
import {
|
|
4
|
+
import { External$PostV1VideoToVideoBodyAssetsVideoSourceEnum, PostV1VideoToVideoBodyAssetsVideoSourceEnum } from "./post-v1-video-to-video-body-assets-video-source-enum";
|
|
5
|
+
import * as z from "zod";
|
|
5
6
|
/**
|
|
6
7
|
* Provide the assets for video-to-video. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
|
|
7
8
|
*/
|
|
8
|
-
export
|
|
9
|
+
export type PostV1VideoToVideoBodyAssets = {
|
|
9
10
|
/**
|
|
10
11
|
* The path of the input video. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls). This field is required if `video_source` is `file`
|
|
11
12
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
videoFilePath?: string | undefined;
|
|
14
|
+
videoSource: PostV1VideoToVideoBodyAssetsVideoSourceEnum;
|
|
14
15
|
/**
|
|
15
16
|
* Using a youtube video as the input source. This field is required if `video_source` is `youtube`
|
|
16
17
|
*/
|
|
17
|
-
|
|
18
|
+
youtubeUrl?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* PostV1VideoToVideoBodyAssets without any key transformation, this is what
|
|
23
|
+
* we expect to come in as network data
|
|
24
|
+
*/
|
|
25
|
+
export type External$PostV1VideoToVideoBodyAssets = {
|
|
26
|
+
video_file_path?: string | undefined;
|
|
27
|
+
video_source: External$PostV1VideoToVideoBodyAssetsVideoSourceEnum;
|
|
28
|
+
youtube_url?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
export declare const Schemas$PostV1VideoToVideoBodyAssets: {
|
|
31
|
+
in: z.ZodType<PostV1VideoToVideoBodyAssets, z.ZodTypeDef, unknown>;
|
|
32
|
+
out: z.ZodType<External$PostV1VideoToVideoBodyAssets, z.ZodTypeDef, PostV1VideoToVideoBodyAssets>;
|
|
18
33
|
};
|
|
@@ -2,4 +2,77 @@
|
|
|
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$PostV1VideoToVideoBodyAssets = 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 PostV1VideoToVideoBodyAssets
|
|
44
|
+
*/
|
|
45
|
+
const SchemaIn$PostV1VideoToVideoBodyAssets = z
|
|
46
|
+
.object({
|
|
47
|
+
video_file_path: z.string().optional(),
|
|
48
|
+
video_source: z.enum(["file", "youtube"]),
|
|
49
|
+
youtube_url: z.string().optional(),
|
|
50
|
+
})
|
|
51
|
+
.transform((obj) => {
|
|
52
|
+
return (0, core_1.zodTransform)(obj, {
|
|
53
|
+
video_file_path: "videoFilePath",
|
|
54
|
+
video_source: "videoSource",
|
|
55
|
+
youtube_url: "youtubeUrl",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$PostV1VideoToVideoBodyAssets
|
|
61
|
+
*/
|
|
62
|
+
const SchemaOut$PostV1VideoToVideoBodyAssets = z
|
|
63
|
+
.object({
|
|
64
|
+
videoFilePath: z.string().optional(),
|
|
65
|
+
videoSource: z.enum(["file", "youtube"]),
|
|
66
|
+
youtubeUrl: z.string().optional(),
|
|
67
|
+
})
|
|
68
|
+
.transform((obj) => {
|
|
69
|
+
return (0, core_1.zodTransform)(obj, {
|
|
70
|
+
videoFilePath: "video_file_path",
|
|
71
|
+
videoSource: "video_source",
|
|
72
|
+
youtubeUrl: "youtube_url",
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
exports.Schemas$PostV1VideoToVideoBodyAssets = {
|
|
76
|
+
in: SchemaIn$PostV1VideoToVideoBodyAssets,
|
|
77
|
+
out: SchemaOut$PostV1VideoToVideoBodyAssets,
|
|
78
|
+
};
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Determines whether the resulting video will have the same frame per second as the original video, or half.
|
|
6
|
+
* * `FULL` - the result video will have the same FPS as the input video
|
|
7
|
+
* * `HALF` - the result video will have half the FPS as the input video
|
|
8
|
+
*/
|
|
9
|
+
export type PostV1VideoToVideoBodyFpsResolutionEnum = "FULL" | "HALF";
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
* Denotes external values of enum (same as above) to stay consistent with other types
|
|
13
|
+
*/
|
|
14
|
+
export type External$PostV1VideoToVideoBodyFpsResolutionEnum = "FULL" | "HALF";
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* PostV1VideoToVideoBodyStyleArtStyleEnum
|
|
6
|
+
*/
|
|
7
|
+
export type PostV1VideoToVideoBodyStyleArtStyleEnum = "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Celestial Skin" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Master Chief" | "Mech" | "Minecraft" | "Naruto" | "Neon Dream" | "Oil Painting" | "On Fire" | "Origami" | "Pixel" | "Power Armor" | "Power Ranger" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* Denotes external values of enum (same as above) to stay consistent with other types
|
|
11
|
+
*/
|
|
12
|
+
export type External$PostV1VideoToVideoBodyStyleArtStyleEnum = "3D Render" | "Airbender" | "Android" | "Anime Warrior" | "Armored Knight" | "Assassin's Creed" | "Avatar" | "Black Spiderman" | "Boba Fett" | "Celestial Skin" | "Clay" | "Comic" | "Cyberpunk" | "Cypher" | "Dark Fantasy" | "Dragonball Z" | "Future Bot" | "Futuristic Fantasy" | "GTA" | "Ghost" | "Gundam" | "Hologram" | "Illustration" | "Impressionism" | "Ink" | "Ink Poster" | "Jinx" | "Knight" | "Lego" | "Link" | "Marble" | "Master Chief" | "Mech" | "Minecraft" | "Naruto" | "Neon Dream" | "Oil Painting" | "On Fire" | "Origami" | "Pixel" | "Power Armor" | "Power Ranger" | "Retro Anime" | "Retro Sci-Fi" | "Samurai" | "Samurai Bot" | "Solid Snake" | "Spartan" | "Starfield" | "Street Fighter" | "Studio Ghibli" | "Sub-Zero" | "The Void" | "Underwater" | "Van Gogh" | "Viking" | "Watercolor" | "Wu Kong" | "Zelda";
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* * `Dreamshaper` - a good all-around model that works for both animations as well as realism.
|
|
6
|
+
* * `Absolute Reality` - better at realism, but you'll often get similar results with Dreamshaper as well.
|
|
7
|
+
* * `Flat 2D Anime` - best for a flat illustration style that's common in most anime.
|
|
8
|
+
* * `default` - use the default recommended model for the selected art style.
|
|
9
|
+
*/
|
|
10
|
+
export type PostV1VideoToVideoBodyStyleModelEnum = "Absolute Reality" | "Dreamshaper" | "Flat 2D Anime" | "default";
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
* Denotes external values of enum (same as above) to stay consistent with other types
|
|
14
|
+
*/
|
|
15
|
+
export type External$PostV1VideoToVideoBodyStyleModelEnum = "Absolute Reality" | "Dreamshaper" | "Flat 2D Anime" | "default";
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* * `default` - Use the default recommended prompt for the art style.
|
|
6
|
+
* * `custom` - Only use the prompt passed in the API. Note: for v1, lora prompt will still be auto added to apply the art style properly.
|
|
7
|
+
* * `append_default` - Add the default recommended prompt to the end of the prompt passed in the API.
|
|
8
|
+
*/
|
|
9
|
+
export type PostV1VideoToVideoBodyStylePromptTypeEnum = "append_default" | "custom" | "default";
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
* Denotes external values of enum (same as above) to stay consistent with other types
|
|
13
|
+
*/
|
|
14
|
+
export type External$PostV1VideoToVideoBodyStylePromptTypeEnum = "append_default" | "custom" | "default";
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* * `v1` - more detail, closer prompt adherence, and frame-by-frame previews.
|
|
6
|
+
* * `v2` - faster, more consistent, and less noisy.
|
|
7
|
+
* * `default` - use the default version for the selected art style.
|
|
8
|
+
*/
|
|
9
|
+
export type PostV1VideoToVideoBodyStyleVersionEnum = "default" | "v1" | "v2";
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
* Denotes external values of enum (same as above) to stay consistent with other types
|
|
13
|
+
*/
|
|
14
|
+
export type External$PostV1VideoToVideoBodyStyleVersionEnum = "default" | "v1" | "v2";
|
|
@@ -1,33 +1,53 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
import {
|
|
4
|
+
import { External$PostV1VideoToVideoBodyStyleArtStyleEnum, PostV1VideoToVideoBodyStyleArtStyleEnum } from "./post-v1-video-to-video-body-style-art-style-enum";
|
|
5
|
+
import { External$PostV1VideoToVideoBodyStyleModelEnum, PostV1VideoToVideoBodyStyleModelEnum } from "./post-v1-video-to-video-body-style-model-enum";
|
|
6
|
+
import { External$PostV1VideoToVideoBodyStylePromptTypeEnum, PostV1VideoToVideoBodyStylePromptTypeEnum } from "./post-v1-video-to-video-body-style-prompt-type-enum";
|
|
7
|
+
import { External$PostV1VideoToVideoBodyStyleVersionEnum, PostV1VideoToVideoBodyStyleVersionEnum } from "./post-v1-video-to-video-body-style-version-enum";
|
|
8
|
+
import * as z from "zod";
|
|
5
9
|
/**
|
|
6
10
|
* PostV1VideoToVideoBodyStyle
|
|
7
11
|
*/
|
|
8
|
-
export
|
|
9
|
-
|
|
12
|
+
export type PostV1VideoToVideoBodyStyle = {
|
|
13
|
+
artStyle: PostV1VideoToVideoBodyStyleArtStyleEnum;
|
|
10
14
|
/**
|
|
11
15
|
* * `Dreamshaper` - a good all-around model that works for both animations as well as realism.
|
|
12
16
|
* * `Absolute Reality` - better at realism, but you'll often get similar results with Dreamshaper as well.
|
|
13
17
|
* * `Flat 2D Anime` - best for a flat illustration style that's common in most anime.
|
|
14
18
|
* * `default` - use the default recommended model for the selected art style.
|
|
15
19
|
*/
|
|
16
|
-
model:
|
|
20
|
+
model: PostV1VideoToVideoBodyStyleModelEnum;
|
|
17
21
|
/**
|
|
18
22
|
* The prompt used for the video. Prompt is required if `prompt_type` is `custom` or `append_default`. If `prompt_type` is `default`, then the `prompt` value passed will be ignored.
|
|
19
23
|
*/
|
|
20
|
-
prompt
|
|
24
|
+
prompt: string | null;
|
|
21
25
|
/**
|
|
22
26
|
* * `default` - Use the default recommended prompt for the art style.
|
|
23
27
|
* * `custom` - Only use the prompt passed in the API. Note: for v1, lora prompt will still be auto added to apply the art style properly.
|
|
24
28
|
* * `append_default` - Add the default recommended prompt to the end of the prompt passed in the API.
|
|
25
29
|
*/
|
|
26
|
-
|
|
30
|
+
promptType: PostV1VideoToVideoBodyStylePromptTypeEnum;
|
|
27
31
|
/**
|
|
28
32
|
* * `v1` - more detail, closer prompt adherence, and frame-by-frame previews.
|
|
29
33
|
* * `v2` - faster, more consistent, and less noisy.
|
|
30
34
|
* * `default` - use the default version for the selected art style.
|
|
31
35
|
*/
|
|
32
|
-
version:
|
|
36
|
+
version: PostV1VideoToVideoBodyStyleVersionEnum;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
* PostV1VideoToVideoBodyStyle without any key transformation, this is what
|
|
41
|
+
* we expect to come in as network data
|
|
42
|
+
*/
|
|
43
|
+
export type External$PostV1VideoToVideoBodyStyle = {
|
|
44
|
+
art_style: External$PostV1VideoToVideoBodyStyleArtStyleEnum;
|
|
45
|
+
model: External$PostV1VideoToVideoBodyStyleModelEnum;
|
|
46
|
+
prompt: string | null;
|
|
47
|
+
prompt_type: External$PostV1VideoToVideoBodyStylePromptTypeEnum;
|
|
48
|
+
version: External$PostV1VideoToVideoBodyStyleVersionEnum;
|
|
49
|
+
};
|
|
50
|
+
export declare const Schemas$PostV1VideoToVideoBodyStyle: {
|
|
51
|
+
in: z.ZodType<PostV1VideoToVideoBodyStyle, z.ZodTypeDef, unknown>;
|
|
52
|
+
out: z.ZodType<External$PostV1VideoToVideoBodyStyle, z.ZodTypeDef, PostV1VideoToVideoBodyStyle>;
|
|
33
53
|
};
|
|
@@ -2,4 +2,215 @@
|
|
|
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$PostV1VideoToVideoBodyStyle = 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 PostV1VideoToVideoBodyStyle
|
|
44
|
+
*/
|
|
45
|
+
const SchemaIn$PostV1VideoToVideoBodyStyle = z
|
|
46
|
+
.object({
|
|
47
|
+
art_style: z.enum([
|
|
48
|
+
"3D Render",
|
|
49
|
+
"Airbender",
|
|
50
|
+
"Android",
|
|
51
|
+
"Anime Warrior",
|
|
52
|
+
"Armored Knight",
|
|
53
|
+
"Assassin's Creed",
|
|
54
|
+
"Avatar",
|
|
55
|
+
"Black Spiderman",
|
|
56
|
+
"Boba Fett",
|
|
57
|
+
"Celestial Skin",
|
|
58
|
+
"Clay",
|
|
59
|
+
"Comic",
|
|
60
|
+
"Cyberpunk",
|
|
61
|
+
"Cypher",
|
|
62
|
+
"Dark Fantasy",
|
|
63
|
+
"Dragonball Z",
|
|
64
|
+
"Future Bot",
|
|
65
|
+
"Futuristic Fantasy",
|
|
66
|
+
"GTA",
|
|
67
|
+
"Ghost",
|
|
68
|
+
"Gundam",
|
|
69
|
+
"Hologram",
|
|
70
|
+
"Illustration",
|
|
71
|
+
"Impressionism",
|
|
72
|
+
"Ink",
|
|
73
|
+
"Ink Poster",
|
|
74
|
+
"Jinx",
|
|
75
|
+
"Knight",
|
|
76
|
+
"Lego",
|
|
77
|
+
"Link",
|
|
78
|
+
"Marble",
|
|
79
|
+
"Master Chief",
|
|
80
|
+
"Mech",
|
|
81
|
+
"Minecraft",
|
|
82
|
+
"Naruto",
|
|
83
|
+
"Neon Dream",
|
|
84
|
+
"Oil Painting",
|
|
85
|
+
"On Fire",
|
|
86
|
+
"Origami",
|
|
87
|
+
"Pixel",
|
|
88
|
+
"Power Armor",
|
|
89
|
+
"Power Ranger",
|
|
90
|
+
"Retro Anime",
|
|
91
|
+
"Retro Sci-Fi",
|
|
92
|
+
"Samurai",
|
|
93
|
+
"Samurai Bot",
|
|
94
|
+
"Solid Snake",
|
|
95
|
+
"Spartan",
|
|
96
|
+
"Starfield",
|
|
97
|
+
"Street Fighter",
|
|
98
|
+
"Studio Ghibli",
|
|
99
|
+
"Sub-Zero",
|
|
100
|
+
"The Void",
|
|
101
|
+
"Underwater",
|
|
102
|
+
"Van Gogh",
|
|
103
|
+
"Viking",
|
|
104
|
+
"Watercolor",
|
|
105
|
+
"Wu Kong",
|
|
106
|
+
"Zelda",
|
|
107
|
+
]),
|
|
108
|
+
model: z.enum([
|
|
109
|
+
"Absolute Reality",
|
|
110
|
+
"Dreamshaper",
|
|
111
|
+
"Flat 2D Anime",
|
|
112
|
+
"default",
|
|
113
|
+
]),
|
|
114
|
+
prompt: z.string().nullable(),
|
|
115
|
+
prompt_type: z.enum(["append_default", "custom", "default"]),
|
|
116
|
+
version: z.enum(["default", "v1", "v2"]),
|
|
117
|
+
})
|
|
118
|
+
.transform((obj) => {
|
|
119
|
+
return (0, core_1.zodTransform)(obj, {
|
|
120
|
+
art_style: "artStyle",
|
|
121
|
+
model: "model",
|
|
122
|
+
prompt: "prompt",
|
|
123
|
+
prompt_type: "promptType",
|
|
124
|
+
version: "version",
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
/**
|
|
128
|
+
* @internal
|
|
129
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$PostV1VideoToVideoBodyStyle
|
|
130
|
+
*/
|
|
131
|
+
const SchemaOut$PostV1VideoToVideoBodyStyle = z
|
|
132
|
+
.object({
|
|
133
|
+
artStyle: z.enum([
|
|
134
|
+
"3D Render",
|
|
135
|
+
"Airbender",
|
|
136
|
+
"Android",
|
|
137
|
+
"Anime Warrior",
|
|
138
|
+
"Armored Knight",
|
|
139
|
+
"Assassin's Creed",
|
|
140
|
+
"Avatar",
|
|
141
|
+
"Black Spiderman",
|
|
142
|
+
"Boba Fett",
|
|
143
|
+
"Celestial Skin",
|
|
144
|
+
"Clay",
|
|
145
|
+
"Comic",
|
|
146
|
+
"Cyberpunk",
|
|
147
|
+
"Cypher",
|
|
148
|
+
"Dark Fantasy",
|
|
149
|
+
"Dragonball Z",
|
|
150
|
+
"Future Bot",
|
|
151
|
+
"Futuristic Fantasy",
|
|
152
|
+
"GTA",
|
|
153
|
+
"Ghost",
|
|
154
|
+
"Gundam",
|
|
155
|
+
"Hologram",
|
|
156
|
+
"Illustration",
|
|
157
|
+
"Impressionism",
|
|
158
|
+
"Ink",
|
|
159
|
+
"Ink Poster",
|
|
160
|
+
"Jinx",
|
|
161
|
+
"Knight",
|
|
162
|
+
"Lego",
|
|
163
|
+
"Link",
|
|
164
|
+
"Marble",
|
|
165
|
+
"Master Chief",
|
|
166
|
+
"Mech",
|
|
167
|
+
"Minecraft",
|
|
168
|
+
"Naruto",
|
|
169
|
+
"Neon Dream",
|
|
170
|
+
"Oil Painting",
|
|
171
|
+
"On Fire",
|
|
172
|
+
"Origami",
|
|
173
|
+
"Pixel",
|
|
174
|
+
"Power Armor",
|
|
175
|
+
"Power Ranger",
|
|
176
|
+
"Retro Anime",
|
|
177
|
+
"Retro Sci-Fi",
|
|
178
|
+
"Samurai",
|
|
179
|
+
"Samurai Bot",
|
|
180
|
+
"Solid Snake",
|
|
181
|
+
"Spartan",
|
|
182
|
+
"Starfield",
|
|
183
|
+
"Street Fighter",
|
|
184
|
+
"Studio Ghibli",
|
|
185
|
+
"Sub-Zero",
|
|
186
|
+
"The Void",
|
|
187
|
+
"Underwater",
|
|
188
|
+
"Van Gogh",
|
|
189
|
+
"Viking",
|
|
190
|
+
"Watercolor",
|
|
191
|
+
"Wu Kong",
|
|
192
|
+
"Zelda",
|
|
193
|
+
]),
|
|
194
|
+
model: z.enum([
|
|
195
|
+
"Absolute Reality",
|
|
196
|
+
"Dreamshaper",
|
|
197
|
+
"Flat 2D Anime",
|
|
198
|
+
"default",
|
|
199
|
+
]),
|
|
200
|
+
prompt: z.string().nullable(),
|
|
201
|
+
promptType: z.enum(["append_default", "custom", "default"]),
|
|
202
|
+
version: z.enum(["default", "v1", "v2"]),
|
|
203
|
+
})
|
|
204
|
+
.transform((obj) => {
|
|
205
|
+
return (0, core_1.zodTransform)(obj, {
|
|
206
|
+
artStyle: "art_style",
|
|
207
|
+
model: "model",
|
|
208
|
+
prompt: "prompt",
|
|
209
|
+
promptType: "prompt_type",
|
|
210
|
+
version: "version",
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
exports.Schemas$PostV1VideoToVideoBodyStyle = {
|
|
214
|
+
in: SchemaIn$PostV1VideoToVideoBodyStyle,
|
|
215
|
+
out: SchemaOut$PostV1VideoToVideoBodyStyle,
|
|
216
|
+
};
|
|
@@ -1,40 +1,62 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
import {
|
|
4
|
+
import { External$PostV1VideoToVideoBodyAssets, PostV1VideoToVideoBodyAssets } from "./post-v1-video-to-video-body-assets";
|
|
5
|
+
import { External$PostV1VideoToVideoBodyFpsResolutionEnum, PostV1VideoToVideoBodyFpsResolutionEnum } from "./post-v1-video-to-video-body-fps-resolution-enum";
|
|
6
|
+
import { External$PostV1VideoToVideoBodyStyle, PostV1VideoToVideoBodyStyle } from "./post-v1-video-to-video-body-style";
|
|
7
|
+
import * as z from "zod";
|
|
5
8
|
/**
|
|
6
9
|
* PostV1VideoToVideoBody
|
|
7
10
|
*/
|
|
8
|
-
export
|
|
11
|
+
export type PostV1VideoToVideoBody = {
|
|
9
12
|
/**
|
|
10
13
|
* Provide the assets for video-to-video. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
|
|
11
14
|
*/
|
|
12
|
-
assets:
|
|
15
|
+
assets: PostV1VideoToVideoBodyAssets;
|
|
13
16
|
/**
|
|
14
17
|
* The end time of the input video in seconds
|
|
15
18
|
*/
|
|
16
|
-
|
|
19
|
+
endSeconds: number;
|
|
17
20
|
/**
|
|
18
21
|
* Determines whether the resulting video will have the same frame per second as the original video, or half.
|
|
19
22
|
* * `FULL` - the result video will have the same FPS as the input video
|
|
20
23
|
* * `HALF` - the result video will have half the FPS as the input video
|
|
21
24
|
*/
|
|
22
|
-
|
|
25
|
+
fpsResolution?: PostV1VideoToVideoBodyFpsResolutionEnum | undefined;
|
|
23
26
|
/**
|
|
24
|
-
* The height of the final output video. The maximum height depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
|
|
27
|
+
* The height of the final output video. Must be divisible by 64. The maximum height depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
|
|
25
28
|
*/
|
|
26
29
|
height: number;
|
|
27
30
|
/**
|
|
28
31
|
* The name of video
|
|
29
32
|
*/
|
|
30
|
-
name?: string;
|
|
33
|
+
name?: string | undefined;
|
|
31
34
|
/**
|
|
32
35
|
* The start time of the input video in seconds
|
|
33
36
|
*/
|
|
34
|
-
|
|
35
|
-
style:
|
|
37
|
+
startSeconds: number;
|
|
38
|
+
style: PostV1VideoToVideoBodyStyle;
|
|
36
39
|
/**
|
|
37
|
-
* The width of the final output video. The maximum width depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
|
|
40
|
+
* The width of the final output video. Must be divisible by 64. The maximum width depends on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
|
|
38
41
|
*/
|
|
39
42
|
width: number;
|
|
40
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* PostV1VideoToVideoBody without any key transformation, this is what
|
|
47
|
+
* we expect to come in as network data
|
|
48
|
+
*/
|
|
49
|
+
export type External$PostV1VideoToVideoBody = {
|
|
50
|
+
assets: External$PostV1VideoToVideoBodyAssets;
|
|
51
|
+
end_seconds: number;
|
|
52
|
+
fps_resolution?: External$PostV1VideoToVideoBodyFpsResolutionEnum | undefined;
|
|
53
|
+
height: number;
|
|
54
|
+
name?: string | undefined;
|
|
55
|
+
start_seconds: number;
|
|
56
|
+
style: External$PostV1VideoToVideoBodyStyle;
|
|
57
|
+
width: number;
|
|
58
|
+
};
|
|
59
|
+
export declare const Schemas$PostV1VideoToVideoBody: {
|
|
60
|
+
in: z.ZodType<PostV1VideoToVideoBody, z.ZodTypeDef, unknown>;
|
|
61
|
+
out: z.ZodType<External$PostV1VideoToVideoBody, z.ZodTypeDef, PostV1VideoToVideoBody>;
|
|
62
|
+
};
|