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,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_ai_headshot_generator_body_assets_1 = require("../../../types/post-v1-ai-headshot-generator-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_ai_headshot_generator_body_assets_1.Schemas$PostV1AiHeadshotGeneratorBodyAssets.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_ai_headshot_generator_body_assets_1.Schemas$PostV1AiHeadshotGeneratorBodyAssets.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.AiHeadshotGeneratorClient = void 0;
|
|
7
7
|
const core_1 = require("../../../core");
|
|
8
|
+
const post_v1_ai_headshot_generator_body_1 = require("../../../types/post-v1-ai-headshot-generator-body");
|
|
9
|
+
const post_v1_ai_headshot_generator_response_1 = require("../../../types/post-v1-ai-headshot-generator-response");
|
|
8
10
|
class AiHeadshotGeneratorClient extends core_1.CoreResourceClient {
|
|
9
11
|
constructor(client) {
|
|
10
12
|
super(client);
|
|
@@ -20,8 +22,9 @@ class AiHeadshotGeneratorClient extends core_1.CoreResourceClient {
|
|
|
20
22
|
path: "/v1/ai-headshot-generator",
|
|
21
23
|
auth: ["bearerAuth"],
|
|
22
24
|
contentType: "application/json",
|
|
23
|
-
body: request
|
|
25
|
+
body: post_v1_ai_headshot_generator_body_1.Schemas$PostV1AiHeadshotGeneratorBody.out.parse(request),
|
|
24
26
|
responseType: "json",
|
|
27
|
+
responseSchema: post_v1_ai_headshot_generator_response_1.Schemas$PostV1AiHeadshotGeneratorResponse.in,
|
|
25
28
|
opts,
|
|
26
29
|
});
|
|
27
30
|
}
|
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
import {
|
|
4
|
+
import { External$PostV1AiImageGeneratorBodyOrientationEnum, PostV1AiImageGeneratorBodyOrientationEnum } from "../../../types/post-v1-ai-image-generator-body-orientation-enum";
|
|
5
|
+
import { External$PostV1AiImageGeneratorBodyStyle, PostV1AiImageGeneratorBodyStyle } from "../../../types/post-v1-ai-image-generator-body-style";
|
|
6
|
+
import * as z from "zod";
|
|
5
7
|
/**
|
|
6
8
|
* CreateRequest
|
|
7
9
|
*/
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
+
export type CreateRequest = {
|
|
11
|
+
/**
|
|
12
|
+
* number to images to generate
|
|
13
|
+
*/
|
|
14
|
+
imageCount: number;
|
|
15
|
+
/**
|
|
16
|
+
* The name of image
|
|
17
|
+
*/
|
|
18
|
+
name?: string | undefined;
|
|
19
|
+
orientation: PostV1AiImageGeneratorBodyOrientationEnum;
|
|
20
|
+
style: PostV1AiImageGeneratorBodyStyle;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
* CreateRequest without any key transformation, this is what
|
|
25
|
+
* we expect to come in as network data
|
|
26
|
+
*/
|
|
27
|
+
export type External$CreateRequest = {
|
|
28
|
+
image_count: number;
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
orientation: External$PostV1AiImageGeneratorBodyOrientationEnum;
|
|
31
|
+
style: External$PostV1AiImageGeneratorBodyStyle;
|
|
32
|
+
};
|
|
33
|
+
export declare const Schemas$CreateRequest: {
|
|
34
|
+
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
35
|
+
out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
|
|
10
36
|
};
|
|
@@ -2,4 +2,82 @@
|
|
|
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_ai_image_generator_body_style_1 = require("../../../types/post-v1-ai-image-generator-body-style");
|
|
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
|
+
image_count: z.number().int(),
|
|
49
|
+
name: z.string().optional(),
|
|
50
|
+
orientation: z.enum(["landscape", "portrait", "square"]),
|
|
51
|
+
style: post_v1_ai_image_generator_body_style_1.Schemas$PostV1AiImageGeneratorBodyStyle.in,
|
|
52
|
+
})
|
|
53
|
+
.transform((obj) => {
|
|
54
|
+
return (0, core_1.zodTransform)(obj, {
|
|
55
|
+
image_count: "imageCount",
|
|
56
|
+
name: "name",
|
|
57
|
+
orientation: "orientation",
|
|
58
|
+
style: "style",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest
|
|
64
|
+
*/
|
|
65
|
+
const SchemaOut$CreateRequest = z
|
|
66
|
+
.object({
|
|
67
|
+
imageCount: z.number().int(),
|
|
68
|
+
name: z.string().optional(),
|
|
69
|
+
orientation: z.enum(["landscape", "portrait", "square"]),
|
|
70
|
+
style: post_v1_ai_image_generator_body_style_1.Schemas$PostV1AiImageGeneratorBodyStyle.out,
|
|
71
|
+
})
|
|
72
|
+
.transform((obj) => {
|
|
73
|
+
return (0, core_1.zodTransform)(obj, {
|
|
74
|
+
imageCount: "image_count",
|
|
75
|
+
name: "name",
|
|
76
|
+
orientation: "orientation",
|
|
77
|
+
style: "style",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
exports.Schemas$CreateRequest = {
|
|
81
|
+
in: SchemaIn$CreateRequest,
|
|
82
|
+
out: SchemaOut$CreateRequest,
|
|
83
|
+
};
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AiImageGeneratorClient = void 0;
|
|
7
7
|
const core_1 = require("../../../core");
|
|
8
|
+
const post_v1_ai_image_generator_body_1 = require("../../../types/post-v1-ai-image-generator-body");
|
|
9
|
+
const post_v1_ai_image_generator_response_1 = require("../../../types/post-v1-ai-image-generator-response");
|
|
8
10
|
class AiImageGeneratorClient extends core_1.CoreResourceClient {
|
|
9
11
|
constructor(client) {
|
|
10
12
|
super(client);
|
|
@@ -20,8 +22,9 @@ class AiImageGeneratorClient extends core_1.CoreResourceClient {
|
|
|
20
22
|
path: "/v1/ai-image-generator",
|
|
21
23
|
auth: ["bearerAuth"],
|
|
22
24
|
contentType: "application/json",
|
|
23
|
-
body: request
|
|
25
|
+
body: post_v1_ai_image_generator_body_1.Schemas$PostV1AiImageGeneratorBody.out.parse(request),
|
|
24
26
|
responseType: "json",
|
|
27
|
+
responseSchema: post_v1_ai_image_generator_response_1.Schemas$PostV1AiImageGeneratorResponse.in,
|
|
25
28
|
opts,
|
|
26
29
|
});
|
|
27
30
|
}
|
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
import {
|
|
4
|
+
import { External$PostV1AiImageUpscalerBodyAssets, PostV1AiImageUpscalerBodyAssets } from "../../../types/post-v1-ai-image-upscaler-body-assets";
|
|
5
|
+
import { External$PostV1AiImageUpscalerBodyStyle, PostV1AiImageUpscalerBodyStyle } from "../../../types/post-v1-ai-image-upscaler-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 upscaling
|
|
13
|
+
*/
|
|
14
|
+
assets: PostV1AiImageUpscalerBodyAssets;
|
|
15
|
+
/**
|
|
16
|
+
* The name of image
|
|
17
|
+
*/
|
|
18
|
+
name?: string | undefined;
|
|
19
|
+
scaleFactor: number;
|
|
20
|
+
style: PostV1AiImageUpscalerBodyStyle;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
* CreateRequest without any key transformation, this is what
|
|
25
|
+
* we expect to come in as network data
|
|
26
|
+
*/
|
|
27
|
+
export type External$CreateRequest = {
|
|
28
|
+
assets: External$PostV1AiImageUpscalerBodyAssets;
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
scale_factor: number;
|
|
31
|
+
style: External$PostV1AiImageUpscalerBodyStyle;
|
|
32
|
+
};
|
|
33
|
+
export declare const Schemas$CreateRequest: {
|
|
34
|
+
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
35
|
+
out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
|
|
10
36
|
};
|
|
@@ -2,4 +2,83 @@
|
|
|
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_ai_image_upscaler_body_assets_1 = require("../../../types/post-v1-ai-image-upscaler-body-assets");
|
|
42
|
+
const post_v1_ai_image_upscaler_body_style_1 = require("../../../types/post-v1-ai-image-upscaler-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_ai_image_upscaler_body_assets_1.Schemas$PostV1AiImageUpscalerBodyAssets.in,
|
|
50
|
+
name: z.string().optional(),
|
|
51
|
+
scale_factor: z.number(),
|
|
52
|
+
style: post_v1_ai_image_upscaler_body_style_1.Schemas$PostV1AiImageUpscalerBodyStyle.in,
|
|
53
|
+
})
|
|
54
|
+
.transform((obj) => {
|
|
55
|
+
return (0, core_1.zodTransform)(obj, {
|
|
56
|
+
assets: "assets",
|
|
57
|
+
name: "name",
|
|
58
|
+
scale_factor: "scaleFactor",
|
|
59
|
+
style: "style",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest
|
|
65
|
+
*/
|
|
66
|
+
const SchemaOut$CreateRequest = z
|
|
67
|
+
.object({
|
|
68
|
+
assets: post_v1_ai_image_upscaler_body_assets_1.Schemas$PostV1AiImageUpscalerBodyAssets.out,
|
|
69
|
+
name: z.string().optional(),
|
|
70
|
+
scaleFactor: z.number(),
|
|
71
|
+
style: post_v1_ai_image_upscaler_body_style_1.Schemas$PostV1AiImageUpscalerBodyStyle.out,
|
|
72
|
+
})
|
|
73
|
+
.transform((obj) => {
|
|
74
|
+
return (0, core_1.zodTransform)(obj, {
|
|
75
|
+
assets: "assets",
|
|
76
|
+
name: "name",
|
|
77
|
+
scaleFactor: "scale_factor",
|
|
78
|
+
style: "style",
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
exports.Schemas$CreateRequest = {
|
|
82
|
+
in: SchemaIn$CreateRequest,
|
|
83
|
+
out: SchemaOut$CreateRequest,
|
|
84
|
+
};
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AiImageUpscalerClient = void 0;
|
|
7
7
|
const core_1 = require("../../../core");
|
|
8
|
+
const post_v1_ai_image_upscaler_body_1 = require("../../../types/post-v1-ai-image-upscaler-body");
|
|
9
|
+
const post_v1_ai_image_upscaler_response_1 = require("../../../types/post-v1-ai-image-upscaler-response");
|
|
8
10
|
class AiImageUpscalerClient extends core_1.CoreResourceClient {
|
|
9
11
|
constructor(client) {
|
|
10
12
|
super(client);
|
|
@@ -20,8 +22,9 @@ class AiImageUpscalerClient extends core_1.CoreResourceClient {
|
|
|
20
22
|
path: "/v1/ai-image-upscaler",
|
|
21
23
|
auth: ["bearerAuth"],
|
|
22
24
|
contentType: "application/json",
|
|
23
|
-
body: request
|
|
25
|
+
body: post_v1_ai_image_upscaler_body_1.Schemas$PostV1AiImageUpscalerBody.out.parse(request),
|
|
24
26
|
responseType: "json",
|
|
27
|
+
responseSchema: post_v1_ai_image_upscaler_response_1.Schemas$PostV1AiImageUpscalerResponse.in,
|
|
25
28
|
opts,
|
|
26
29
|
});
|
|
27
30
|
}
|
|
@@ -1,10 +1,44 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
import {
|
|
4
|
+
import { External$PostV1AiPhotoEditorBodyAssets, PostV1AiPhotoEditorBodyAssets } from "../../../types/post-v1-ai-photo-editor-body-assets";
|
|
5
|
+
import { External$PostV1AiPhotoEditorBodyStyle, PostV1AiPhotoEditorBodyStyle } from "../../../types/post-v1-ai-photo-editor-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 photo editor
|
|
13
|
+
*/
|
|
14
|
+
assets: PostV1AiPhotoEditorBodyAssets;
|
|
15
|
+
/**
|
|
16
|
+
* The name of image
|
|
17
|
+
*/
|
|
18
|
+
name?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* The resolution of the final output image. The allowed value is based on your subscription. Please refer to our [pricing page](https://magichour.ai/pricing) for more details
|
|
21
|
+
*/
|
|
22
|
+
resolution: number;
|
|
23
|
+
/**
|
|
24
|
+
* Deprecated: Please use `.style.steps` instead. Number of iterations used to generate the output. Higher values improve quality and increase the strength of the prompt but increase processing time.
|
|
25
|
+
*/
|
|
26
|
+
steps?: number | undefined;
|
|
27
|
+
style: PostV1AiPhotoEditorBodyStyle;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* CreateRequest without any key transformation, this is what
|
|
32
|
+
* we expect to come in as network data
|
|
33
|
+
*/
|
|
34
|
+
export type External$CreateRequest = {
|
|
35
|
+
assets: External$PostV1AiPhotoEditorBodyAssets;
|
|
36
|
+
name?: string | undefined;
|
|
37
|
+
resolution: number;
|
|
38
|
+
steps?: number | undefined;
|
|
39
|
+
style: External$PostV1AiPhotoEditorBodyStyle;
|
|
40
|
+
};
|
|
41
|
+
export declare const Schemas$CreateRequest: {
|
|
42
|
+
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
43
|
+
out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
|
|
10
44
|
};
|
|
@@ -2,4 +2,87 @@
|
|
|
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_ai_photo_editor_body_assets_1 = require("../../../types/post-v1-ai-photo-editor-body-assets");
|
|
42
|
+
const post_v1_ai_photo_editor_body_style_1 = require("../../../types/post-v1-ai-photo-editor-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_ai_photo_editor_body_assets_1.Schemas$PostV1AiPhotoEditorBodyAssets.in,
|
|
50
|
+
name: z.string().optional(),
|
|
51
|
+
resolution: z.number().int(),
|
|
52
|
+
steps: z.number().int().optional(),
|
|
53
|
+
style: post_v1_ai_photo_editor_body_style_1.Schemas$PostV1AiPhotoEditorBodyStyle.in,
|
|
54
|
+
})
|
|
55
|
+
.transform((obj) => {
|
|
56
|
+
return (0, core_1.zodTransform)(obj, {
|
|
57
|
+
assets: "assets",
|
|
58
|
+
name: "name",
|
|
59
|
+
resolution: "resolution",
|
|
60
|
+
steps: "steps",
|
|
61
|
+
style: "style",
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest
|
|
67
|
+
*/
|
|
68
|
+
const SchemaOut$CreateRequest = z
|
|
69
|
+
.object({
|
|
70
|
+
assets: post_v1_ai_photo_editor_body_assets_1.Schemas$PostV1AiPhotoEditorBodyAssets.out,
|
|
71
|
+
name: z.string().optional(),
|
|
72
|
+
resolution: z.number().int(),
|
|
73
|
+
steps: z.number().int().optional(),
|
|
74
|
+
style: post_v1_ai_photo_editor_body_style_1.Schemas$PostV1AiPhotoEditorBodyStyle.out,
|
|
75
|
+
})
|
|
76
|
+
.transform((obj) => {
|
|
77
|
+
return (0, core_1.zodTransform)(obj, {
|
|
78
|
+
assets: "assets",
|
|
79
|
+
name: "name",
|
|
80
|
+
resolution: "resolution",
|
|
81
|
+
steps: "steps",
|
|
82
|
+
style: "style",
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
exports.Schemas$CreateRequest = {
|
|
86
|
+
in: SchemaIn$CreateRequest,
|
|
87
|
+
out: SchemaOut$CreateRequest,
|
|
88
|
+
};
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AiPhotoEditorClient = void 0;
|
|
7
7
|
const core_1 = require("../../../core");
|
|
8
|
+
const post_v1_ai_photo_editor_body_1 = require("../../../types/post-v1-ai-photo-editor-body");
|
|
9
|
+
const post_v1_ai_photo_editor_response_1 = require("../../../types/post-v1-ai-photo-editor-response");
|
|
8
10
|
class AiPhotoEditorClient extends core_1.CoreResourceClient {
|
|
9
11
|
constructor(client) {
|
|
10
12
|
super(client);
|
|
@@ -22,8 +24,9 @@ class AiPhotoEditorClient extends core_1.CoreResourceClient {
|
|
|
22
24
|
path: "/v1/ai-photo-editor",
|
|
23
25
|
auth: ["bearerAuth"],
|
|
24
26
|
contentType: "application/json",
|
|
25
|
-
body: request
|
|
27
|
+
body: post_v1_ai_photo_editor_body_1.Schemas$PostV1AiPhotoEditorBody.out.parse(request),
|
|
26
28
|
responseType: "json",
|
|
29
|
+
responseSchema: post_v1_ai_photo_editor_response_1.Schemas$PostV1AiPhotoEditorResponse.in,
|
|
27
30
|
opts,
|
|
28
31
|
});
|
|
29
32
|
}
|
|
@@ -1,10 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
-
import {
|
|
4
|
+
import { External$PostV1AiQrCodeGeneratorBodyStyle, PostV1AiQrCodeGeneratorBodyStyle } from "../../../types/post-v1-ai-qr-code-generator-body-style";
|
|
5
|
+
import * as z from "zod";
|
|
5
6
|
/**
|
|
6
7
|
* CreateRequest
|
|
7
8
|
*/
|
|
8
|
-
export
|
|
9
|
-
|
|
9
|
+
export type CreateRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* The content of the QR code.
|
|
12
|
+
*/
|
|
13
|
+
content: string;
|
|
14
|
+
/**
|
|
15
|
+
* The name of image
|
|
16
|
+
*/
|
|
17
|
+
name?: string | undefined;
|
|
18
|
+
style: PostV1AiQrCodeGeneratorBodyStyle;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* CreateRequest without any key transformation, this is what
|
|
23
|
+
* we expect to come in as network data
|
|
24
|
+
*/
|
|
25
|
+
export type External$CreateRequest = {
|
|
26
|
+
content: string;
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
style: External$PostV1AiQrCodeGeneratorBodyStyle;
|
|
29
|
+
};
|
|
30
|
+
export declare const Schemas$CreateRequest: {
|
|
31
|
+
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
32
|
+
out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
|
|
10
33
|
};
|
|
@@ -2,4 +2,78 @@
|
|
|
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_ai_qr_code_generator_body_style_1 = require("../../../types/post-v1-ai-qr-code-generator-body-style");
|
|
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
|
+
content: z.string(),
|
|
49
|
+
name: z.string().optional(),
|
|
50
|
+
style: post_v1_ai_qr_code_generator_body_style_1.Schemas$PostV1AiQrCodeGeneratorBodyStyle.in,
|
|
51
|
+
})
|
|
52
|
+
.transform((obj) => {
|
|
53
|
+
return (0, core_1.zodTransform)(obj, {
|
|
54
|
+
content: "content",
|
|
55
|
+
name: "name",
|
|
56
|
+
style: "style",
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest
|
|
62
|
+
*/
|
|
63
|
+
const SchemaOut$CreateRequest = z
|
|
64
|
+
.object({
|
|
65
|
+
content: z.string(),
|
|
66
|
+
name: z.string().optional(),
|
|
67
|
+
style: post_v1_ai_qr_code_generator_body_style_1.Schemas$PostV1AiQrCodeGeneratorBodyStyle.out,
|
|
68
|
+
})
|
|
69
|
+
.transform((obj) => {
|
|
70
|
+
return (0, core_1.zodTransform)(obj, {
|
|
71
|
+
content: "content",
|
|
72
|
+
name: "name",
|
|
73
|
+
style: "style",
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
exports.Schemas$CreateRequest = {
|
|
77
|
+
in: SchemaIn$CreateRequest,
|
|
78
|
+
out: SchemaOut$CreateRequest,
|
|
79
|
+
};
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AiQrCodeGeneratorClient = void 0;
|
|
7
7
|
const core_1 = require("../../../core");
|
|
8
|
+
const post_v1_ai_qr_code_generator_body_1 = require("../../../types/post-v1-ai-qr-code-generator-body");
|
|
9
|
+
const post_v1_ai_qr_code_generator_response_1 = require("../../../types/post-v1-ai-qr-code-generator-response");
|
|
8
10
|
class AiQrCodeGeneratorClient extends core_1.CoreResourceClient {
|
|
9
11
|
constructor(client) {
|
|
10
12
|
super(client);
|
|
@@ -20,8 +22,9 @@ class AiQrCodeGeneratorClient extends core_1.CoreResourceClient {
|
|
|
20
22
|
path: "/v1/ai-qr-code-generator",
|
|
21
23
|
auth: ["bearerAuth"],
|
|
22
24
|
contentType: "application/json",
|
|
23
|
-
body: request
|
|
25
|
+
body: post_v1_ai_qr_code_generator_body_1.Schemas$PostV1AiQrCodeGeneratorBody.out.parse(request),
|
|
24
26
|
responseType: "json",
|
|
27
|
+
responseSchema: post_v1_ai_qr_code_generator_response_1.Schemas$PostV1AiQrCodeGeneratorResponse.in,
|
|
25
28
|
opts,
|
|
26
29
|
});
|
|
27
30
|
}
|