magic-hour 0.6.1 → 0.7.1
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 +15 -2
- 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 +23 -7
- 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 +18 -4
- 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 +30 -8
- 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
|
@@ -1,10 +1,57 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
import {
|
|
4
|
+
import { External$PostV1AnimationBodyAssets, PostV1AnimationBodyAssets } from "../../../types/post-v1-animation-body-assets";
|
|
5
|
+
import { External$PostV1AnimationBodyStyle, PostV1AnimationBodyStyle } from "../../../types/post-v1-animation-body-style";
|
|
6
|
+
import * as z from "zod";
|
|
5
7
|
/**
|
|
6
8
|
* CreateRequest
|
|
7
9
|
*/
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
+
export type CreateRequest = {
|
|
11
|
+
/**
|
|
12
|
+
* Provide the assets for animation.
|
|
13
|
+
*/
|
|
14
|
+
assets: PostV1AnimationBodyAssets;
|
|
15
|
+
/**
|
|
16
|
+
* The end time of the input video in seconds
|
|
17
|
+
*/
|
|
18
|
+
endSeconds: number;
|
|
19
|
+
/**
|
|
20
|
+
* The desire output video frame rate
|
|
21
|
+
*/
|
|
22
|
+
fps: number;
|
|
23
|
+
/**
|
|
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
|
|
25
|
+
*/
|
|
26
|
+
height: number;
|
|
27
|
+
/**
|
|
28
|
+
* The name of video
|
|
29
|
+
*/
|
|
30
|
+
name?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Defines the style of the output video
|
|
33
|
+
*/
|
|
34
|
+
style: PostV1AnimationBodyStyle;
|
|
35
|
+
/**
|
|
36
|
+
* 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
|
|
37
|
+
*/
|
|
38
|
+
width: number;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* CreateRequest without any key transformation, this is what
|
|
43
|
+
* we expect to come in as network data
|
|
44
|
+
*/
|
|
45
|
+
export type External$CreateRequest = {
|
|
46
|
+
assets: External$PostV1AnimationBodyAssets;
|
|
47
|
+
end_seconds: number;
|
|
48
|
+
fps: number;
|
|
49
|
+
height: number;
|
|
50
|
+
name?: string | undefined;
|
|
51
|
+
style: External$PostV1AnimationBodyStyle;
|
|
52
|
+
width: number;
|
|
53
|
+
};
|
|
54
|
+
export declare const Schemas$CreateRequest: {
|
|
55
|
+
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
56
|
+
out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
|
|
10
57
|
};
|
|
@@ -2,4 +2,95 @@
|
|
|
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$CreateRequest = void 0;
|
|
40
|
+
const core_1 = require("../../../core");
|
|
41
|
+
const post_v1_animation_body_assets_1 = require("../../../types/post-v1-animation-body-assets");
|
|
42
|
+
const post_v1_animation_body_style_1 = require("../../../types/post-v1-animation-body-style");
|
|
43
|
+
const z = __importStar(require("zod"));
|
|
44
|
+
/**
|
|
45
|
+
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
46
|
+
*/
|
|
47
|
+
const SchemaIn$CreateRequest = z
|
|
48
|
+
.object({
|
|
49
|
+
assets: post_v1_animation_body_assets_1.Schemas$PostV1AnimationBodyAssets.in,
|
|
50
|
+
end_seconds: z.number(),
|
|
51
|
+
fps: z.number(),
|
|
52
|
+
height: z.number().int(),
|
|
53
|
+
name: z.string().optional(),
|
|
54
|
+
style: post_v1_animation_body_style_1.Schemas$PostV1AnimationBodyStyle.in,
|
|
55
|
+
width: z.number().int(),
|
|
56
|
+
})
|
|
57
|
+
.transform((obj) => {
|
|
58
|
+
return (0, core_1.zodTransform)(obj, {
|
|
59
|
+
assets: "assets",
|
|
60
|
+
end_seconds: "endSeconds",
|
|
61
|
+
fps: "fps",
|
|
62
|
+
height: "height",
|
|
63
|
+
name: "name",
|
|
64
|
+
style: "style",
|
|
65
|
+
width: "width",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest
|
|
71
|
+
*/
|
|
72
|
+
const SchemaOut$CreateRequest = z
|
|
73
|
+
.object({
|
|
74
|
+
assets: post_v1_animation_body_assets_1.Schemas$PostV1AnimationBodyAssets.out,
|
|
75
|
+
endSeconds: z.number(),
|
|
76
|
+
fps: z.number(),
|
|
77
|
+
height: z.number().int(),
|
|
78
|
+
name: z.string().optional(),
|
|
79
|
+
style: post_v1_animation_body_style_1.Schemas$PostV1AnimationBodyStyle.out,
|
|
80
|
+
width: z.number().int(),
|
|
81
|
+
})
|
|
82
|
+
.transform((obj) => {
|
|
83
|
+
return (0, core_1.zodTransform)(obj, {
|
|
84
|
+
assets: "assets",
|
|
85
|
+
endSeconds: "end_seconds",
|
|
86
|
+
fps: "fps",
|
|
87
|
+
height: "height",
|
|
88
|
+
name: "name",
|
|
89
|
+
style: "style",
|
|
90
|
+
width: "width",
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
exports.Schemas$CreateRequest = {
|
|
94
|
+
in: SchemaIn$CreateRequest,
|
|
95
|
+
out: SchemaOut$CreateRequest,
|
|
96
|
+
};
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AnimationClient = void 0;
|
|
7
7
|
const core_1 = require("../../../core");
|
|
8
|
+
const post_v1_animation_body_1 = require("../../../types/post-v1-animation-body");
|
|
9
|
+
const post_v1_animation_response_1 = require("../../../types/post-v1-animation-response");
|
|
8
10
|
class AnimationClient extends core_1.CoreResourceClient {
|
|
9
11
|
constructor(client) {
|
|
10
12
|
super(client);
|
|
@@ -20,8 +22,9 @@ class AnimationClient extends core_1.CoreResourceClient {
|
|
|
20
22
|
path: "/v1/animation",
|
|
21
23
|
auth: ["bearerAuth"],
|
|
22
24
|
contentType: "application/json",
|
|
23
|
-
body: request
|
|
25
|
+
body: post_v1_animation_body_1.Schemas$PostV1AnimationBody.out.parse(request),
|
|
24
26
|
responseType: "json",
|
|
27
|
+
responseSchema: post_v1_animation_response_1.Schemas$PostV1AnimationResponse.in,
|
|
25
28
|
opts,
|
|
26
29
|
});
|
|
27
30
|
}
|
|
@@ -1,10 +1,51 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
import {
|
|
4
|
+
import { External$PostV1FaceSwapBodyAssets, PostV1FaceSwapBodyAssets } from "../../../types/post-v1-face-swap-body-assets";
|
|
5
|
+
import * as z from "zod";
|
|
5
6
|
/**
|
|
6
7
|
* CreateRequest
|
|
7
8
|
*/
|
|
8
|
-
export
|
|
9
|
-
|
|
9
|
+
export type CreateRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* Provide the assets for face swap. For video, The `video_source` field determines whether `video_file_path` or `youtube_url` field is used
|
|
12
|
+
*/
|
|
13
|
+
assets: PostV1FaceSwapBodyAssets;
|
|
14
|
+
/**
|
|
15
|
+
* The end time of the input video in seconds
|
|
16
|
+
*/
|
|
17
|
+
endSeconds: number;
|
|
18
|
+
/**
|
|
19
|
+
* 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
|
|
20
|
+
*/
|
|
21
|
+
height: number;
|
|
22
|
+
/**
|
|
23
|
+
* The name of video
|
|
24
|
+
*/
|
|
25
|
+
name?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* The start time of the input video in seconds
|
|
28
|
+
*/
|
|
29
|
+
startSeconds: number;
|
|
30
|
+
/**
|
|
31
|
+
* 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
|
|
32
|
+
*/
|
|
33
|
+
width: number;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
* CreateRequest without any key transformation, this is what
|
|
38
|
+
* we expect to come in as network data
|
|
39
|
+
*/
|
|
40
|
+
export type External$CreateRequest = {
|
|
41
|
+
assets: External$PostV1FaceSwapBodyAssets;
|
|
42
|
+
end_seconds: number;
|
|
43
|
+
height: number;
|
|
44
|
+
name?: string | undefined;
|
|
45
|
+
start_seconds: number;
|
|
46
|
+
width: number;
|
|
47
|
+
};
|
|
48
|
+
export declare const Schemas$CreateRequest: {
|
|
49
|
+
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
50
|
+
out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
|
|
10
51
|
};
|
|
@@ -2,4 +2,90 @@
|
|
|
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$CreateRequest = void 0;
|
|
40
|
+
const core_1 = require("../../../core");
|
|
41
|
+
const post_v1_face_swap_body_assets_1 = require("../../../types/post-v1-face-swap-body-assets");
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
/**
|
|
44
|
+
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
45
|
+
*/
|
|
46
|
+
const SchemaIn$CreateRequest = z
|
|
47
|
+
.object({
|
|
48
|
+
assets: post_v1_face_swap_body_assets_1.Schemas$PostV1FaceSwapBodyAssets.in,
|
|
49
|
+
end_seconds: z.number(),
|
|
50
|
+
height: z.number().int(),
|
|
51
|
+
name: z.string().optional(),
|
|
52
|
+
start_seconds: z.number(),
|
|
53
|
+
width: z.number().int(),
|
|
54
|
+
})
|
|
55
|
+
.transform((obj) => {
|
|
56
|
+
return (0, core_1.zodTransform)(obj, {
|
|
57
|
+
assets: "assets",
|
|
58
|
+
end_seconds: "endSeconds",
|
|
59
|
+
height: "height",
|
|
60
|
+
name: "name",
|
|
61
|
+
start_seconds: "startSeconds",
|
|
62
|
+
width: "width",
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest
|
|
68
|
+
*/
|
|
69
|
+
const SchemaOut$CreateRequest = z
|
|
70
|
+
.object({
|
|
71
|
+
assets: post_v1_face_swap_body_assets_1.Schemas$PostV1FaceSwapBodyAssets.out,
|
|
72
|
+
endSeconds: z.number(),
|
|
73
|
+
height: z.number().int(),
|
|
74
|
+
name: z.string().optional(),
|
|
75
|
+
startSeconds: z.number(),
|
|
76
|
+
width: z.number().int(),
|
|
77
|
+
})
|
|
78
|
+
.transform((obj) => {
|
|
79
|
+
return (0, core_1.zodTransform)(obj, {
|
|
80
|
+
assets: "assets",
|
|
81
|
+
endSeconds: "end_seconds",
|
|
82
|
+
height: "height",
|
|
83
|
+
name: "name",
|
|
84
|
+
startSeconds: "start_seconds",
|
|
85
|
+
width: "width",
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
exports.Schemas$CreateRequest = {
|
|
89
|
+
in: SchemaIn$CreateRequest,
|
|
90
|
+
out: SchemaOut$CreateRequest,
|
|
91
|
+
};
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FaceSwapClient = void 0;
|
|
7
7
|
const core_1 = require("../../../core");
|
|
8
|
+
const post_v1_face_swap_body_1 = require("../../../types/post-v1-face-swap-body");
|
|
9
|
+
const post_v1_face_swap_response_1 = require("../../../types/post-v1-face-swap-response");
|
|
8
10
|
class FaceSwapClient extends core_1.CoreResourceClient {
|
|
9
11
|
constructor(client) {
|
|
10
12
|
super(client);
|
|
@@ -23,8 +25,9 @@ class FaceSwapClient extends core_1.CoreResourceClient {
|
|
|
23
25
|
path: "/v1/face-swap",
|
|
24
26
|
auth: ["bearerAuth"],
|
|
25
27
|
contentType: "application/json",
|
|
26
|
-
body: request
|
|
28
|
+
body: post_v1_face_swap_body_1.Schemas$PostV1FaceSwapBody.out.parse(request),
|
|
27
29
|
responseType: "json",
|
|
30
|
+
responseSchema: post_v1_face_swap_response_1.Schemas$PostV1FaceSwapResponse.in,
|
|
28
31
|
opts,
|
|
29
32
|
});
|
|
30
33
|
}
|
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
import {
|
|
4
|
+
import { External$PostV1FaceSwapPhotoBodyAssets, PostV1FaceSwapPhotoBodyAssets } from "../../../types/post-v1-face-swap-photo-body-assets";
|
|
5
|
+
import * as z from "zod";
|
|
5
6
|
/**
|
|
6
7
|
* CreateRequest
|
|
7
8
|
*/
|
|
8
|
-
export
|
|
9
|
-
|
|
9
|
+
export type CreateRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* Provide the assets for face swap photo
|
|
12
|
+
*/
|
|
13
|
+
assets: PostV1FaceSwapPhotoBodyAssets;
|
|
14
|
+
/**
|
|
15
|
+
* The name of image
|
|
16
|
+
*/
|
|
17
|
+
name?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
* CreateRequest without any key transformation, this is what
|
|
22
|
+
* we expect to come in as network data
|
|
23
|
+
*/
|
|
24
|
+
export type External$CreateRequest = {
|
|
25
|
+
assets: External$PostV1FaceSwapPhotoBodyAssets;
|
|
26
|
+
name?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
export declare const Schemas$CreateRequest: {
|
|
29
|
+
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
30
|
+
out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
|
|
10
31
|
};
|
|
@@ -2,4 +2,74 @@
|
|
|
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$CreateRequest = void 0;
|
|
40
|
+
const core_1 = require("../../../core");
|
|
41
|
+
const post_v1_face_swap_photo_body_assets_1 = require("../../../types/post-v1-face-swap-photo-body-assets");
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
/**
|
|
44
|
+
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
45
|
+
*/
|
|
46
|
+
const SchemaIn$CreateRequest = z
|
|
47
|
+
.object({
|
|
48
|
+
assets: post_v1_face_swap_photo_body_assets_1.Schemas$PostV1FaceSwapPhotoBodyAssets.in,
|
|
49
|
+
name: z.string().optional(),
|
|
50
|
+
})
|
|
51
|
+
.transform((obj) => {
|
|
52
|
+
return (0, core_1.zodTransform)(obj, {
|
|
53
|
+
assets: "assets",
|
|
54
|
+
name: "name",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest
|
|
60
|
+
*/
|
|
61
|
+
const SchemaOut$CreateRequest = z
|
|
62
|
+
.object({
|
|
63
|
+
assets: post_v1_face_swap_photo_body_assets_1.Schemas$PostV1FaceSwapPhotoBodyAssets.out,
|
|
64
|
+
name: z.string().optional(),
|
|
65
|
+
})
|
|
66
|
+
.transform((obj) => {
|
|
67
|
+
return (0, core_1.zodTransform)(obj, {
|
|
68
|
+
assets: "assets",
|
|
69
|
+
name: "name",
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
exports.Schemas$CreateRequest = {
|
|
73
|
+
in: SchemaIn$CreateRequest,
|
|
74
|
+
out: SchemaOut$CreateRequest,
|
|
75
|
+
};
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FaceSwapPhotoClient = void 0;
|
|
7
7
|
const core_1 = require("../../../core");
|
|
8
|
+
const post_v1_face_swap_photo_body_1 = require("../../../types/post-v1-face-swap-photo-body");
|
|
9
|
+
const post_v1_face_swap_photo_response_1 = require("../../../types/post-v1-face-swap-photo-response");
|
|
8
10
|
class FaceSwapPhotoClient extends core_1.CoreResourceClient {
|
|
9
11
|
constructor(client) {
|
|
10
12
|
super(client);
|
|
@@ -20,8 +22,9 @@ class FaceSwapPhotoClient extends core_1.CoreResourceClient {
|
|
|
20
22
|
path: "/v1/face-swap-photo",
|
|
21
23
|
auth: ["bearerAuth"],
|
|
22
24
|
contentType: "application/json",
|
|
23
|
-
body: request
|
|
25
|
+
body: post_v1_face_swap_photo_body_1.Schemas$PostV1FaceSwapPhotoBody.out.parse(request),
|
|
24
26
|
responseType: "json",
|
|
27
|
+
responseSchema: post_v1_face_swap_photo_response_1.Schemas$PostV1FaceSwapPhotoResponse.in,
|
|
25
28
|
opts,
|
|
26
29
|
});
|
|
27
30
|
}
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
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
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.uploadUrls = exports.FilesClient = void 0;
|
|
30
40
|
var resource_client_1 = require("./resource-client");
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
import {
|
|
4
|
+
import { External$PostV1FilesUploadUrlsBodyItemsItem, PostV1FilesUploadUrlsBodyItemsItem } from "../../../../types/post-v1-files-upload-urls-body-items-item";
|
|
5
|
+
import * as z from "zod";
|
|
5
6
|
/**
|
|
6
7
|
* CreateRequest
|
|
7
8
|
*/
|
|
8
|
-
export
|
|
9
|
-
|
|
9
|
+
export type CreateRequest = {
|
|
10
|
+
items: PostV1FilesUploadUrlsBodyItemsItem[];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
* CreateRequest without any key transformation, this is what
|
|
15
|
+
* we expect to come in as network data
|
|
16
|
+
*/
|
|
17
|
+
export type External$CreateRequest = {
|
|
18
|
+
items: External$PostV1FilesUploadUrlsBodyItemsItem[];
|
|
19
|
+
};
|
|
20
|
+
export declare const Schemas$CreateRequest: {
|
|
21
|
+
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
22
|
+
out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
|
|
10
23
|
};
|
|
@@ -2,4 +2,70 @@
|
|
|
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$CreateRequest = void 0;
|
|
40
|
+
const core_1 = require("../../../../core");
|
|
41
|
+
const post_v1_files_upload_urls_body_items_item_1 = require("../../../../types/post-v1-files-upload-urls-body-items-item");
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
/**
|
|
44
|
+
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
45
|
+
*/
|
|
46
|
+
const SchemaIn$CreateRequest = z
|
|
47
|
+
.object({
|
|
48
|
+
items: z.array(post_v1_files_upload_urls_body_items_item_1.Schemas$PostV1FilesUploadUrlsBodyItemsItem.in),
|
|
49
|
+
})
|
|
50
|
+
.transform((obj) => {
|
|
51
|
+
return (0, core_1.zodTransform)(obj, {
|
|
52
|
+
items: "items",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest
|
|
58
|
+
*/
|
|
59
|
+
const SchemaOut$CreateRequest = z
|
|
60
|
+
.object({
|
|
61
|
+
items: z.array(post_v1_files_upload_urls_body_items_item_1.Schemas$PostV1FilesUploadUrlsBodyItemsItem.out),
|
|
62
|
+
})
|
|
63
|
+
.transform((obj) => {
|
|
64
|
+
return (0, core_1.zodTransform)(obj, {
|
|
65
|
+
items: "items",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
exports.Schemas$CreateRequest = {
|
|
69
|
+
in: SchemaIn$CreateRequest,
|
|
70
|
+
out: SchemaOut$CreateRequest,
|
|
71
|
+
};
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.UploadUrlsClient = void 0;
|
|
7
7
|
const core_1 = require("../../../../core");
|
|
8
|
+
const post_v1_files_upload_urls_body_1 = require("../../../../types/post-v1-files-upload-urls-body");
|
|
9
|
+
const post_v1_files_upload_urls_response_1 = require("../../../../types/post-v1-files-upload-urls-response");
|
|
8
10
|
class UploadUrlsClient extends core_1.CoreResourceClient {
|
|
9
11
|
constructor(client) {
|
|
10
12
|
super(client);
|
|
@@ -39,8 +41,9 @@ class UploadUrlsClient extends core_1.CoreResourceClient {
|
|
|
39
41
|
path: "/v1/files/upload-urls",
|
|
40
42
|
auth: ["bearerAuth"],
|
|
41
43
|
contentType: "application/json",
|
|
42
|
-
body: request
|
|
44
|
+
body: post_v1_files_upload_urls_body_1.Schemas$PostV1FilesUploadUrlsBody.out.parse(request),
|
|
43
45
|
responseType: "json",
|
|
46
|
+
responseSchema: post_v1_files_upload_urls_response_1.Schemas$PostV1FilesUploadUrlsResponse.in,
|
|
44
47
|
opts,
|
|
45
48
|
});
|
|
46
49
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ImageBackgroundRemoverClient = void 0;
|
|
7
|
+
var resource_client_1 = require("./resource-client");
|
|
8
|
+
Object.defineProperty(exports, "ImageBackgroundRemoverClient", { enumerable: true, get: function () { return resource_client_1.ImageBackgroundRemoverClient; } });
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { External$PostV1ImageBackgroundRemoverBodyAssets, PostV1ImageBackgroundRemoverBodyAssets } from "../../../types/post-v1-image-background-remover-body-assets";
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
/**
|
|
7
|
+
* CreateRequest
|
|
8
|
+
*/
|
|
9
|
+
export type CreateRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* Provide the assets for background removal
|
|
12
|
+
*/
|
|
13
|
+
assets: PostV1ImageBackgroundRemoverBodyAssets;
|
|
14
|
+
/**
|
|
15
|
+
* The name of image
|
|
16
|
+
*/
|
|
17
|
+
name?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
* CreateRequest without any key transformation, this is what
|
|
22
|
+
* we expect to come in as network data
|
|
23
|
+
*/
|
|
24
|
+
export type External$CreateRequest = {
|
|
25
|
+
assets: External$PostV1ImageBackgroundRemoverBodyAssets;
|
|
26
|
+
name?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
export declare const Schemas$CreateRequest: {
|
|
29
|
+
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
30
|
+
out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
|
|
31
|
+
};
|