magic-hour 0.7.1 → 0.8.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 +15 -11
- package/dist/client.d.ts +0 -3
- package/dist/client.js +0 -3
- package/dist/core/api-error.d.ts +0 -3
- package/dist/core/api-error.js +0 -3
- package/dist/core/api-promise.d.ts +0 -3
- package/dist/core/api-promise.js +0 -3
- package/dist/core/auth.d.ts +64 -9
- package/dist/core/auth.js +189 -40
- package/dist/core/binary-response.d.ts +0 -3
- package/dist/core/binary-response.js +0 -3
- package/dist/core/content-type.d.ts +0 -3
- package/dist/core/content-type.js +0 -3
- package/dist/core/core-client.d.ts +2 -4
- package/dist/core/core-client.js +20 -14
- package/dist/core/form-data.d.ts +0 -3
- package/dist/core/form-data.js +0 -3
- package/dist/core/index.d.ts +2 -5
- package/dist/core/index.js +3 -4
- package/dist/core/runtime.d.ts +0 -3
- package/dist/core/runtime.js +0 -3
- package/dist/core/zod.d.ts +1 -3
- package/dist/core/zod.js +4 -4
- package/dist/environment.d.ts +2 -4
- package/dist/environment.js +1 -3
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -3
- package/dist/resources/index.d.ts +0 -3
- package/dist/resources/index.js +0 -3
- package/dist/resources/v1/ai-clothes-changer/index.d.ts +2 -0
- package/dist/resources/v1/ai-clothes-changer/index.js +5 -0
- package/dist/resources/v1/ai-clothes-changer/request-types.d.ts +28 -0
- package/dist/resources/v1/ai-clothes-changer/request-types.js +72 -0
- package/dist/resources/v1/ai-clothes-changer/resource-client.d.ts +14 -0
- package/dist/resources/v1/ai-clothes-changer/resource-client.js +31 -0
- package/dist/resources/v1/ai-headshot-generator/index.d.ts +0 -3
- package/dist/resources/v1/ai-headshot-generator/index.js +0 -3
- package/dist/resources/v1/ai-headshot-generator/request-types.d.ts +0 -3
- package/dist/resources/v1/ai-headshot-generator/request-types.js +0 -3
- package/dist/resources/v1/ai-headshot-generator/resource-client.d.ts +2 -3
- package/dist/resources/v1/ai-headshot-generator/resource-client.js +2 -3
- package/dist/resources/v1/ai-image-generator/index.d.ts +0 -3
- package/dist/resources/v1/ai-image-generator/index.js +0 -3
- package/dist/resources/v1/ai-image-generator/request-types.d.ts +2 -6
- package/dist/resources/v1/ai-image-generator/request-types.js +0 -3
- package/dist/resources/v1/ai-image-generator/resource-client.d.ts +2 -3
- package/dist/resources/v1/ai-image-generator/resource-client.js +2 -3
- package/dist/resources/v1/ai-image-upscaler/index.d.ts +0 -3
- package/dist/resources/v1/ai-image-upscaler/index.js +0 -3
- package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +3 -3
- package/dist/resources/v1/ai-image-upscaler/request-types.js +0 -3
- package/dist/resources/v1/ai-image-upscaler/resource-client.d.ts +2 -3
- package/dist/resources/v1/ai-image-upscaler/resource-client.js +2 -3
- package/dist/resources/v1/ai-photo-editor/index.d.ts +0 -3
- package/dist/resources/v1/ai-photo-editor/index.js +0 -3
- package/dist/resources/v1/ai-photo-editor/request-types.d.ts +0 -3
- package/dist/resources/v1/ai-photo-editor/request-types.js +0 -3
- package/dist/resources/v1/ai-photo-editor/resource-client.d.ts +2 -3
- package/dist/resources/v1/ai-photo-editor/resource-client.js +2 -3
- package/dist/resources/v1/ai-qr-code-generator/index.d.ts +0 -3
- package/dist/resources/v1/ai-qr-code-generator/index.js +0 -3
- package/dist/resources/v1/ai-qr-code-generator/request-types.d.ts +0 -3
- package/dist/resources/v1/ai-qr-code-generator/request-types.js +0 -3
- package/dist/resources/v1/ai-qr-code-generator/resource-client.d.ts +2 -3
- package/dist/resources/v1/ai-qr-code-generator/resource-client.js +2 -3
- package/dist/resources/v1/animation/index.d.ts +0 -3
- package/dist/resources/v1/animation/index.js +0 -3
- package/dist/resources/v1/animation/request-types.d.ts +0 -3
- package/dist/resources/v1/animation/request-types.js +0 -3
- package/dist/resources/v1/animation/resource-client.d.ts +2 -3
- package/dist/resources/v1/animation/resource-client.js +2 -3
- package/dist/resources/v1/face-swap/index.d.ts +0 -3
- package/dist/resources/v1/face-swap/index.js +0 -3
- package/dist/resources/v1/face-swap/request-types.d.ts +0 -3
- package/dist/resources/v1/face-swap/request-types.js +0 -3
- package/dist/resources/v1/face-swap/resource-client.d.ts +2 -3
- package/dist/resources/v1/face-swap/resource-client.js +2 -3
- package/dist/resources/v1/face-swap-photo/index.d.ts +0 -3
- package/dist/resources/v1/face-swap-photo/index.js +0 -3
- package/dist/resources/v1/face-swap-photo/request-types.d.ts +0 -3
- package/dist/resources/v1/face-swap-photo/request-types.js +0 -3
- package/dist/resources/v1/face-swap-photo/resource-client.d.ts +2 -3
- package/dist/resources/v1/face-swap-photo/resource-client.js +2 -3
- package/dist/resources/v1/files/index.d.ts +0 -3
- package/dist/resources/v1/files/index.js +0 -3
- package/dist/resources/v1/files/resource-client.d.ts +0 -3
- package/dist/resources/v1/files/resource-client.js +0 -3
- package/dist/resources/v1/files/upload-urls/index.d.ts +0 -3
- package/dist/resources/v1/files/upload-urls/index.js +0 -3
- package/dist/resources/v1/files/upload-urls/request-types.d.ts +0 -3
- package/dist/resources/v1/files/upload-urls/request-types.js +0 -3
- package/dist/resources/v1/files/upload-urls/resource-client.d.ts +2 -3
- package/dist/resources/v1/files/upload-urls/resource-client.js +2 -3
- package/dist/resources/v1/image-background-remover/index.d.ts +0 -3
- package/dist/resources/v1/image-background-remover/index.js +0 -3
- package/dist/resources/v1/image-background-remover/request-types.d.ts +0 -3
- package/dist/resources/v1/image-background-remover/request-types.js +0 -3
- package/dist/resources/v1/image-background-remover/resource-client.d.ts +2 -3
- package/dist/resources/v1/image-background-remover/resource-client.js +2 -3
- package/dist/resources/v1/image-projects/index.d.ts +0 -3
- package/dist/resources/v1/image-projects/index.js +0 -3
- package/dist/resources/v1/image-projects/request-types.d.ts +6 -3
- package/dist/resources/v1/image-projects/request-types.js +0 -3
- package/dist/resources/v1/image-projects/resource-client.d.ts +4 -3
- package/dist/resources/v1/image-projects/resource-client.js +4 -3
- package/dist/resources/v1/image-to-video/index.d.ts +0 -3
- package/dist/resources/v1/image-to-video/index.js +0 -3
- package/dist/resources/v1/image-to-video/request-types.d.ts +0 -3
- package/dist/resources/v1/image-to-video/request-types.js +0 -3
- package/dist/resources/v1/image-to-video/resource-client.d.ts +2 -3
- package/dist/resources/v1/image-to-video/resource-client.js +2 -3
- package/dist/resources/v1/index.d.ts +1 -3
- package/dist/resources/v1/index.js +2 -4
- package/dist/resources/v1/lip-sync/index.d.ts +0 -3
- package/dist/resources/v1/lip-sync/index.js +0 -3
- package/dist/resources/v1/lip-sync/request-types.d.ts +0 -3
- package/dist/resources/v1/lip-sync/request-types.js +0 -3
- package/dist/resources/v1/lip-sync/resource-client.d.ts +2 -3
- package/dist/resources/v1/lip-sync/resource-client.js +2 -3
- package/dist/resources/v1/resource-client.d.ts +2 -3
- package/dist/resources/v1/resource-client.js +2 -3
- package/dist/resources/v1/text-to-video/index.d.ts +0 -3
- package/dist/resources/v1/text-to-video/index.js +0 -3
- package/dist/resources/v1/text-to-video/request-types.d.ts +2 -6
- package/dist/resources/v1/text-to-video/request-types.js +0 -3
- package/dist/resources/v1/text-to-video/resource-client.d.ts +2 -3
- package/dist/resources/v1/text-to-video/resource-client.js +2 -3
- package/dist/resources/v1/video-projects/index.d.ts +0 -3
- package/dist/resources/v1/video-projects/index.js +0 -3
- package/dist/resources/v1/video-projects/request-types.d.ts +6 -3
- package/dist/resources/v1/video-projects/request-types.js +0 -3
- package/dist/resources/v1/video-projects/resource-client.d.ts +4 -3
- package/dist/resources/v1/video-projects/resource-client.js +4 -3
- package/dist/resources/v1/video-to-video/index.d.ts +0 -3
- package/dist/resources/v1/video-to-video/index.js +0 -3
- package/dist/resources/v1/video-to-video/request-types.d.ts +2 -6
- package/dist/resources/v1/video-to-video/request-types.js +0 -3
- package/dist/resources/v1/video-to-video/resource-client.d.ts +2 -3
- package/dist/resources/v1/video-to-video/resource-client.js +2 -3
- package/dist/types/delete-v1-image-projects-id-response400.d.ts +0 -3
- package/dist/types/delete-v1-image-projects-id-response400.js +0 -3
- package/dist/types/delete-v1-image-projects-id-response401.d.ts +2 -6
- package/dist/types/delete-v1-image-projects-id-response401.js +0 -3
- package/dist/types/delete-v1-image-projects-id-response404.d.ts +2 -6
- package/dist/types/delete-v1-image-projects-id-response404.js +0 -3
- package/dist/types/delete-v1-video-projects-id-response400.d.ts +0 -3
- package/dist/types/delete-v1-video-projects-id-response400.js +0 -3
- package/dist/types/delete-v1-video-projects-id-response401.d.ts +2 -6
- package/dist/types/delete-v1-video-projects-id-response401.js +0 -3
- package/dist/types/delete-v1-video-projects-id-response404.d.ts +2 -6
- package/dist/types/delete-v1-video-projects-id-response404.js +0 -3
- package/dist/types/delete-v1-video-projects-id-response422.d.ts +0 -3
- package/dist/types/delete-v1-video-projects-id-response422.js +0 -3
- package/dist/types/get-v1-image-projects-id-response-downloads-item.d.ts +0 -3
- package/dist/types/get-v1-image-projects-id-response-downloads-item.js +0 -3
- package/dist/types/get-v1-image-projects-id-response-error.d.ts +0 -3
- package/dist/types/get-v1-image-projects-id-response-error.js +0 -3
- package/dist/types/get-v1-image-projects-id-response.d.ts +4 -9
- package/dist/types/get-v1-image-projects-id-response.js +2 -3
- package/dist/types/get-v1-image-projects-id-response400.d.ts +0 -3
- package/dist/types/get-v1-image-projects-id-response400.js +0 -3
- package/dist/types/get-v1-image-projects-id-response401.d.ts +2 -6
- package/dist/types/get-v1-image-projects-id-response401.js +0 -3
- package/dist/types/get-v1-image-projects-id-response404.d.ts +2 -6
- package/dist/types/get-v1-image-projects-id-response404.js +0 -3
- package/dist/types/get-v1-video-projects-id-response-download.d.ts +0 -3
- package/dist/types/get-v1-video-projects-id-response-download.js +0 -3
- package/dist/types/get-v1-video-projects-id-response-downloads-item.d.ts +0 -3
- package/dist/types/get-v1-video-projects-id-response-downloads-item.js +0 -3
- package/dist/types/get-v1-video-projects-id-response-error.d.ts +0 -3
- package/dist/types/get-v1-video-projects-id-response-error.js +0 -3
- package/dist/types/get-v1-video-projects-id-response.d.ts +4 -9
- package/dist/types/get-v1-video-projects-id-response.js +2 -3
- package/dist/types/get-v1-video-projects-id-response400.d.ts +0 -3
- package/dist/types/get-v1-video-projects-id-response400.js +0 -3
- package/dist/types/get-v1-video-projects-id-response401.d.ts +2 -6
- package/dist/types/get-v1-video-projects-id-response401.js +0 -3
- package/dist/types/get-v1-video-projects-id-response404.d.ts +2 -6
- package/dist/types/get-v1-video-projects-id-response404.js +0 -3
- package/dist/types/index.d.ts +7 -59
- package/dist/types/index.js +0 -3
- package/dist/types/post-v1-ai-clothes-changer-body-assets.d.ts +29 -0
- package/dist/types/post-v1-ai-clothes-changer-body-assets.js +75 -0
- package/dist/types/post-v1-ai-clothes-changer-body.d.ts +28 -0
- package/dist/types/post-v1-ai-clothes-changer-body.js +72 -0
- package/dist/types/post-v1-ai-clothes-changer-response.d.ts +27 -0
- package/dist/types/post-v1-ai-clothes-changer-response.js +71 -0
- package/dist/types/post-v1-ai-clothes-changer-response400.d.ts +19 -0
- package/dist/types/post-v1-ai-clothes-changer-response400.js +67 -0
- package/dist/types/post-v1-ai-clothes-changer-response401.d.ts +19 -0
- package/dist/types/post-v1-ai-clothes-changer-response401.js +67 -0
- package/dist/types/post-v1-ai-clothes-changer-response404.d.ts +19 -0
- package/dist/types/post-v1-ai-clothes-changer-response404.js +67 -0
- package/dist/types/post-v1-ai-clothes-changer-response422.d.ts +19 -0
- package/dist/types/post-v1-ai-clothes-changer-response422.js +67 -0
- package/dist/types/post-v1-ai-headshot-generator-body-assets.d.ts +0 -3
- package/dist/types/post-v1-ai-headshot-generator-body-assets.js +0 -3
- package/dist/types/post-v1-ai-headshot-generator-body.d.ts +0 -3
- package/dist/types/post-v1-ai-headshot-generator-body.js +0 -3
- package/dist/types/post-v1-ai-headshot-generator-response.d.ts +0 -3
- package/dist/types/post-v1-ai-headshot-generator-response.js +0 -3
- package/dist/types/post-v1-ai-headshot-generator-response400.d.ts +0 -3
- package/dist/types/post-v1-ai-headshot-generator-response400.js +0 -3
- package/dist/types/post-v1-ai-headshot-generator-response401.d.ts +2 -6
- package/dist/types/post-v1-ai-headshot-generator-response401.js +0 -3
- package/dist/types/post-v1-ai-headshot-generator-response404.d.ts +2 -6
- package/dist/types/post-v1-ai-headshot-generator-response404.js +0 -3
- package/dist/types/post-v1-ai-headshot-generator-response422.d.ts +0 -3
- package/dist/types/post-v1-ai-headshot-generator-response422.js +0 -3
- package/dist/types/post-v1-ai-image-generator-body-style.d.ts +0 -3
- package/dist/types/post-v1-ai-image-generator-body-style.js +0 -3
- package/dist/types/post-v1-ai-image-generator-body.d.ts +2 -6
- package/dist/types/post-v1-ai-image-generator-body.js +0 -3
- package/dist/types/post-v1-ai-image-generator-response.d.ts +0 -3
- package/dist/types/post-v1-ai-image-generator-response.js +0 -3
- package/dist/types/post-v1-ai-image-generator-response400.d.ts +0 -3
- package/dist/types/post-v1-ai-image-generator-response400.js +0 -3
- package/dist/types/post-v1-ai-image-generator-response401.d.ts +2 -6
- package/dist/types/post-v1-ai-image-generator-response401.js +0 -3
- package/dist/types/post-v1-ai-image-generator-response404.d.ts +2 -6
- package/dist/types/post-v1-ai-image-generator-response404.js +0 -3
- package/dist/types/post-v1-ai-image-generator-response422.d.ts +0 -3
- package/dist/types/post-v1-ai-image-generator-response422.js +0 -3
- package/dist/types/post-v1-ai-image-upscaler-body-assets.d.ts +0 -3
- package/dist/types/post-v1-ai-image-upscaler-body-assets.js +0 -3
- package/dist/types/post-v1-ai-image-upscaler-body-style.d.ts +2 -6
- package/dist/types/post-v1-ai-image-upscaler-body-style.js +0 -3
- package/dist/types/post-v1-ai-image-upscaler-body.d.ts +3 -3
- package/dist/types/post-v1-ai-image-upscaler-body.js +0 -3
- package/dist/types/post-v1-ai-image-upscaler-response.d.ts +0 -3
- package/dist/types/post-v1-ai-image-upscaler-response.js +0 -3
- package/dist/types/post-v1-ai-image-upscaler-response400.d.ts +0 -3
- package/dist/types/post-v1-ai-image-upscaler-response400.js +0 -3
- package/dist/types/post-v1-ai-image-upscaler-response401.d.ts +2 -6
- package/dist/types/post-v1-ai-image-upscaler-response401.js +0 -3
- package/dist/types/post-v1-ai-image-upscaler-response404.d.ts +2 -6
- package/dist/types/post-v1-ai-image-upscaler-response404.js +0 -3
- package/dist/types/post-v1-ai-image-upscaler-response422.d.ts +0 -3
- package/dist/types/post-v1-ai-image-upscaler-response422.js +0 -3
- package/dist/types/post-v1-ai-photo-editor-body-assets.d.ts +0 -3
- package/dist/types/post-v1-ai-photo-editor-body-assets.js +0 -3
- package/dist/types/post-v1-ai-photo-editor-body-style.d.ts +0 -3
- package/dist/types/post-v1-ai-photo-editor-body-style.js +0 -3
- package/dist/types/post-v1-ai-photo-editor-body.d.ts +0 -3
- package/dist/types/post-v1-ai-photo-editor-body.js +0 -3
- package/dist/types/post-v1-ai-photo-editor-response.d.ts +0 -3
- package/dist/types/post-v1-ai-photo-editor-response.js +0 -3
- package/dist/types/post-v1-ai-photo-editor-response400.d.ts +0 -3
- package/dist/types/post-v1-ai-photo-editor-response400.js +0 -3
- package/dist/types/post-v1-ai-photo-editor-response401.d.ts +2 -6
- package/dist/types/post-v1-ai-photo-editor-response401.js +0 -3
- package/dist/types/post-v1-ai-photo-editor-response404.d.ts +2 -6
- package/dist/types/post-v1-ai-photo-editor-response404.js +0 -3
- package/dist/types/post-v1-ai-photo-editor-response422.d.ts +0 -3
- package/dist/types/post-v1-ai-photo-editor-response422.js +0 -3
- package/dist/types/post-v1-ai-qr-code-generator-body-style.d.ts +0 -3
- package/dist/types/post-v1-ai-qr-code-generator-body-style.js +0 -3
- package/dist/types/post-v1-ai-qr-code-generator-body.d.ts +0 -3
- package/dist/types/post-v1-ai-qr-code-generator-body.js +0 -3
- package/dist/types/post-v1-ai-qr-code-generator-response.d.ts +0 -3
- package/dist/types/post-v1-ai-qr-code-generator-response.js +0 -3
- package/dist/types/post-v1-ai-qr-code-generator-response400.d.ts +0 -3
- package/dist/types/post-v1-ai-qr-code-generator-response400.js +0 -3
- package/dist/types/post-v1-ai-qr-code-generator-response401.d.ts +2 -6
- package/dist/types/post-v1-ai-qr-code-generator-response401.js +0 -3
- package/dist/types/post-v1-ai-qr-code-generator-response404.d.ts +2 -6
- package/dist/types/post-v1-ai-qr-code-generator-response404.js +0 -3
- package/dist/types/post-v1-ai-qr-code-generator-response422.d.ts +0 -3
- package/dist/types/post-v1-ai-qr-code-generator-response422.js +0 -3
- package/dist/types/post-v1-animation-body-assets.d.ts +2 -6
- package/dist/types/post-v1-animation-body-assets.js +0 -3
- package/dist/types/post-v1-animation-body-style.d.ts +6 -12
- package/dist/types/post-v1-animation-body-style.js +0 -3
- package/dist/types/post-v1-animation-body.d.ts +0 -3
- package/dist/types/post-v1-animation-body.js +0 -3
- package/dist/types/post-v1-animation-response.d.ts +0 -3
- package/dist/types/post-v1-animation-response.js +0 -3
- package/dist/types/post-v1-animation-response400.d.ts +0 -3
- package/dist/types/post-v1-animation-response400.js +0 -3
- package/dist/types/post-v1-animation-response401.d.ts +2 -6
- package/dist/types/post-v1-animation-response401.js +0 -3
- package/dist/types/post-v1-animation-response404.d.ts +2 -6
- package/dist/types/post-v1-animation-response404.js +0 -3
- package/dist/types/post-v1-animation-response422.d.ts +0 -3
- package/dist/types/post-v1-animation-response422.js +0 -3
- package/dist/types/post-v1-face-swap-body-assets.d.ts +2 -6
- package/dist/types/post-v1-face-swap-body-assets.js +0 -3
- package/dist/types/post-v1-face-swap-body.d.ts +0 -3
- package/dist/types/post-v1-face-swap-body.js +0 -3
- package/dist/types/post-v1-face-swap-photo-body-assets.d.ts +0 -3
- package/dist/types/post-v1-face-swap-photo-body-assets.js +0 -3
- package/dist/types/post-v1-face-swap-photo-body.d.ts +0 -3
- package/dist/types/post-v1-face-swap-photo-body.js +0 -3
- package/dist/types/post-v1-face-swap-photo-response.d.ts +0 -3
- package/dist/types/post-v1-face-swap-photo-response.js +0 -3
- package/dist/types/post-v1-face-swap-photo-response400.d.ts +0 -3
- package/dist/types/post-v1-face-swap-photo-response400.js +0 -3
- package/dist/types/post-v1-face-swap-photo-response401.d.ts +2 -6
- package/dist/types/post-v1-face-swap-photo-response401.js +0 -3
- package/dist/types/post-v1-face-swap-photo-response404.d.ts +2 -6
- package/dist/types/post-v1-face-swap-photo-response404.js +0 -3
- package/dist/types/post-v1-face-swap-photo-response422.d.ts +0 -3
- package/dist/types/post-v1-face-swap-photo-response422.js +0 -3
- package/dist/types/post-v1-face-swap-response.d.ts +0 -3
- package/dist/types/post-v1-face-swap-response.js +0 -3
- package/dist/types/post-v1-face-swap-response400.d.ts +0 -3
- package/dist/types/post-v1-face-swap-response400.js +0 -3
- package/dist/types/post-v1-face-swap-response401.d.ts +2 -6
- package/dist/types/post-v1-face-swap-response401.js +0 -3
- package/dist/types/post-v1-face-swap-response404.d.ts +2 -6
- package/dist/types/post-v1-face-swap-response404.js +0 -3
- package/dist/types/post-v1-face-swap-response422.d.ts +0 -3
- package/dist/types/post-v1-face-swap-response422.js +0 -3
- package/dist/types/post-v1-files-upload-urls-body-items-item.d.ts +2 -6
- package/dist/types/post-v1-files-upload-urls-body-items-item.js +0 -3
- package/dist/types/post-v1-files-upload-urls-body.d.ts +0 -3
- package/dist/types/post-v1-files-upload-urls-body.js +0 -3
- package/dist/types/post-v1-files-upload-urls-response-items-item.d.ts +0 -3
- package/dist/types/post-v1-files-upload-urls-response-items-item.js +0 -3
- package/dist/types/post-v1-files-upload-urls-response.d.ts +0 -3
- package/dist/types/post-v1-files-upload-urls-response.js +0 -3
- package/dist/types/post-v1-files-upload-urls-response400.d.ts +0 -3
- package/dist/types/post-v1-files-upload-urls-response400.js +0 -3
- package/dist/types/post-v1-files-upload-urls-response401.d.ts +2 -6
- package/dist/types/post-v1-files-upload-urls-response401.js +0 -3
- package/dist/types/post-v1-files-upload-urls-response404.d.ts +2 -6
- package/dist/types/post-v1-files-upload-urls-response404.js +0 -3
- package/dist/types/post-v1-files-upload-urls-response422.d.ts +0 -3
- package/dist/types/post-v1-files-upload-urls-response422.js +0 -3
- package/dist/types/post-v1-image-background-remover-body-assets.d.ts +0 -3
- package/dist/types/post-v1-image-background-remover-body-assets.js +0 -3
- package/dist/types/post-v1-image-background-remover-body.d.ts +0 -3
- package/dist/types/post-v1-image-background-remover-body.js +0 -3
- package/dist/types/post-v1-image-background-remover-response.d.ts +0 -3
- package/dist/types/post-v1-image-background-remover-response.js +0 -3
- package/dist/types/post-v1-image-background-remover-response400.d.ts +0 -3
- package/dist/types/post-v1-image-background-remover-response400.js +0 -3
- package/dist/types/post-v1-image-background-remover-response401.d.ts +2 -6
- package/dist/types/post-v1-image-background-remover-response401.js +0 -3
- package/dist/types/post-v1-image-background-remover-response404.d.ts +2 -6
- package/dist/types/post-v1-image-background-remover-response404.js +0 -3
- package/dist/types/post-v1-image-background-remover-response422.d.ts +0 -3
- package/dist/types/post-v1-image-background-remover-response422.js +0 -3
- package/dist/types/post-v1-image-to-video-body-assets.d.ts +0 -3
- package/dist/types/post-v1-image-to-video-body-assets.js +0 -3
- package/dist/types/post-v1-image-to-video-body-style.d.ts +0 -3
- package/dist/types/post-v1-image-to-video-body-style.js +0 -3
- package/dist/types/post-v1-image-to-video-body.d.ts +0 -3
- package/dist/types/post-v1-image-to-video-body.js +0 -3
- package/dist/types/post-v1-image-to-video-response.d.ts +0 -3
- package/dist/types/post-v1-image-to-video-response.js +0 -3
- package/dist/types/post-v1-image-to-video-response400.d.ts +0 -3
- package/dist/types/post-v1-image-to-video-response400.js +0 -3
- package/dist/types/post-v1-image-to-video-response401.d.ts +2 -6
- package/dist/types/post-v1-image-to-video-response401.js +0 -3
- package/dist/types/post-v1-image-to-video-response404.d.ts +2 -6
- package/dist/types/post-v1-image-to-video-response404.js +0 -3
- package/dist/types/post-v1-image-to-video-response422.d.ts +0 -3
- package/dist/types/post-v1-image-to-video-response422.js +0 -3
- package/dist/types/post-v1-lip-sync-body-assets.d.ts +2 -6
- package/dist/types/post-v1-lip-sync-body-assets.js +0 -3
- package/dist/types/post-v1-lip-sync-body.d.ts +0 -3
- package/dist/types/post-v1-lip-sync-body.js +0 -3
- package/dist/types/post-v1-lip-sync-response.d.ts +0 -3
- package/dist/types/post-v1-lip-sync-response.js +0 -3
- package/dist/types/post-v1-lip-sync-response400.d.ts +0 -3
- package/dist/types/post-v1-lip-sync-response400.js +0 -3
- package/dist/types/post-v1-lip-sync-response401.d.ts +2 -6
- package/dist/types/post-v1-lip-sync-response401.js +0 -3
- package/dist/types/post-v1-lip-sync-response404.d.ts +2 -6
- package/dist/types/post-v1-lip-sync-response404.js +0 -3
- package/dist/types/post-v1-lip-sync-response422.d.ts +0 -3
- package/dist/types/post-v1-lip-sync-response422.js +0 -3
- package/dist/types/post-v1-text-to-video-body-style.d.ts +0 -3
- package/dist/types/post-v1-text-to-video-body-style.js +0 -3
- package/dist/types/post-v1-text-to-video-body.d.ts +2 -6
- package/dist/types/post-v1-text-to-video-body.js +0 -3
- package/dist/types/post-v1-text-to-video-response.d.ts +0 -3
- package/dist/types/post-v1-text-to-video-response.js +0 -3
- package/dist/types/post-v1-text-to-video-response400.d.ts +0 -3
- package/dist/types/post-v1-text-to-video-response400.js +0 -3
- package/dist/types/post-v1-text-to-video-response401.d.ts +2 -6
- package/dist/types/post-v1-text-to-video-response401.js +0 -3
- package/dist/types/post-v1-text-to-video-response404.d.ts +2 -6
- package/dist/types/post-v1-text-to-video-response404.js +0 -3
- package/dist/types/post-v1-text-to-video-response422.d.ts +0 -3
- package/dist/types/post-v1-text-to-video-response422.js +0 -3
- package/dist/types/post-v1-video-to-video-body-assets.d.ts +2 -6
- package/dist/types/post-v1-video-to-video-body-assets.js +0 -3
- package/dist/types/post-v1-video-to-video-body-style.d.ts +8 -15
- package/dist/types/post-v1-video-to-video-body-style.js +0 -3
- package/dist/types/post-v1-video-to-video-body.d.ts +2 -6
- package/dist/types/post-v1-video-to-video-body.js +0 -3
- package/dist/types/post-v1-video-to-video-response.d.ts +0 -3
- package/dist/types/post-v1-video-to-video-response.js +0 -3
- package/dist/types/post-v1-video-to-video-response400.d.ts +0 -3
- package/dist/types/post-v1-video-to-video-response400.js +0 -3
- package/dist/types/post-v1-video-to-video-response401.d.ts +2 -6
- package/dist/types/post-v1-video-to-video-response401.js +0 -3
- package/dist/types/post-v1-video-to-video-response404.d.ts +2 -6
- package/dist/types/post-v1-video-to-video-response404.js +0 -3
- package/dist/types/post-v1-video-to-video-response422.d.ts +0 -3
- package/dist/types/post-v1-video-to-video-response422.js +0 -3
- package/package.json +4 -4
- package/dist/types/delete-v1-image-projects-id-response401-message-enum.d.ts +0 -12
- package/dist/types/delete-v1-image-projects-id-response401-message-enum.js +0 -2
- package/dist/types/delete-v1-image-projects-id-response404-message-enum.d.ts +0 -12
- package/dist/types/delete-v1-image-projects-id-response404-message-enum.js +0 -2
- package/dist/types/delete-v1-video-projects-id-response401-message-enum.d.ts +0 -12
- package/dist/types/delete-v1-video-projects-id-response401-message-enum.js +0 -2
- package/dist/types/delete-v1-video-projects-id-response404-message-enum.d.ts +0 -12
- package/dist/types/delete-v1-video-projects-id-response404-message-enum.js +0 -2
- package/dist/types/get-v1-image-projects-id-response-status-enum.d.ts +0 -12
- package/dist/types/get-v1-image-projects-id-response-status-enum.js +0 -2
- package/dist/types/get-v1-image-projects-id-response-type-enum.d.ts +0 -12
- package/dist/types/get-v1-image-projects-id-response-type-enum.js +0 -2
- package/dist/types/get-v1-image-projects-id-response401-message-enum.d.ts +0 -12
- package/dist/types/get-v1-image-projects-id-response401-message-enum.js +0 -2
- package/dist/types/get-v1-image-projects-id-response404-message-enum.d.ts +0 -12
- package/dist/types/get-v1-image-projects-id-response404-message-enum.js +0 -2
- package/dist/types/get-v1-video-projects-id-response-status-enum.d.ts +0 -12
- package/dist/types/get-v1-video-projects-id-response-status-enum.js +0 -2
- package/dist/types/get-v1-video-projects-id-response-type-enum.d.ts +0 -12
- package/dist/types/get-v1-video-projects-id-response-type-enum.js +0 -2
- package/dist/types/get-v1-video-projects-id-response401-message-enum.d.ts +0 -12
- package/dist/types/get-v1-video-projects-id-response401-message-enum.js +0 -2
- package/dist/types/get-v1-video-projects-id-response404-message-enum.d.ts +0 -12
- package/dist/types/get-v1-video-projects-id-response404-message-enum.js +0 -2
- package/dist/types/post-v1-ai-headshot-generator-response401-message-enum.d.ts +0 -12
- package/dist/types/post-v1-ai-headshot-generator-response401-message-enum.js +0 -2
- package/dist/types/post-v1-ai-headshot-generator-response404-message-enum.d.ts +0 -12
- package/dist/types/post-v1-ai-headshot-generator-response404-message-enum.js +0 -2
- package/dist/types/post-v1-ai-image-generator-body-orientation-enum.d.ts +0 -12
- package/dist/types/post-v1-ai-image-generator-body-orientation-enum.js +0 -2
- package/dist/types/post-v1-ai-image-generator-response401-message-enum.d.ts +0 -12
- package/dist/types/post-v1-ai-image-generator-response401-message-enum.js +0 -2
- package/dist/types/post-v1-ai-image-generator-response404-message-enum.d.ts +0 -12
- package/dist/types/post-v1-ai-image-generator-response404-message-enum.js +0 -2
- package/dist/types/post-v1-ai-image-upscaler-body-style-enhancement-enum.d.ts +0 -12
- package/dist/types/post-v1-ai-image-upscaler-body-style-enhancement-enum.js +0 -2
- package/dist/types/post-v1-ai-image-upscaler-response401-message-enum.d.ts +0 -12
- package/dist/types/post-v1-ai-image-upscaler-response401-message-enum.js +0 -2
- package/dist/types/post-v1-ai-image-upscaler-response404-message-enum.d.ts +0 -12
- package/dist/types/post-v1-ai-image-upscaler-response404-message-enum.js +0 -2
- package/dist/types/post-v1-ai-photo-editor-response401-message-enum.d.ts +0 -12
- package/dist/types/post-v1-ai-photo-editor-response401-message-enum.js +0 -2
- package/dist/types/post-v1-ai-photo-editor-response404-message-enum.d.ts +0 -12
- package/dist/types/post-v1-ai-photo-editor-response404-message-enum.js +0 -2
- package/dist/types/post-v1-ai-qr-code-generator-response401-message-enum.d.ts +0 -12
- package/dist/types/post-v1-ai-qr-code-generator-response401-message-enum.js +0 -2
- package/dist/types/post-v1-ai-qr-code-generator-response404-message-enum.d.ts +0 -12
- package/dist/types/post-v1-ai-qr-code-generator-response404-message-enum.js +0 -2
- package/dist/types/post-v1-animation-body-assets-audio-source-enum.d.ts +0 -12
- package/dist/types/post-v1-animation-body-assets-audio-source-enum.js +0 -2
- package/dist/types/post-v1-animation-body-style-art-style-enum.d.ts +0 -12
- package/dist/types/post-v1-animation-body-style-art-style-enum.js +0 -2
- package/dist/types/post-v1-animation-body-style-camera-effect-enum.d.ts +0 -12
- package/dist/types/post-v1-animation-body-style-camera-effect-enum.js +0 -2
- package/dist/types/post-v1-animation-body-style-prompt-type-enum.d.ts +0 -15
- package/dist/types/post-v1-animation-body-style-prompt-type-enum.js +0 -2
- package/dist/types/post-v1-animation-response401-message-enum.d.ts +0 -12
- package/dist/types/post-v1-animation-response401-message-enum.js +0 -2
- package/dist/types/post-v1-animation-response404-message-enum.d.ts +0 -12
- package/dist/types/post-v1-animation-response404-message-enum.js +0 -2
- package/dist/types/post-v1-face-swap-body-assets-video-source-enum.d.ts +0 -12
- package/dist/types/post-v1-face-swap-body-assets-video-source-enum.js +0 -2
- package/dist/types/post-v1-face-swap-photo-response401-message-enum.d.ts +0 -12
- package/dist/types/post-v1-face-swap-photo-response401-message-enum.js +0 -2
- package/dist/types/post-v1-face-swap-photo-response404-message-enum.d.ts +0 -12
- package/dist/types/post-v1-face-swap-photo-response404-message-enum.js +0 -2
- package/dist/types/post-v1-face-swap-response401-message-enum.d.ts +0 -12
- package/dist/types/post-v1-face-swap-response401-message-enum.js +0 -2
- package/dist/types/post-v1-face-swap-response404-message-enum.d.ts +0 -12
- package/dist/types/post-v1-face-swap-response404-message-enum.js +0 -2
- package/dist/types/post-v1-files-upload-urls-body-items-item-type-enum.d.ts +0 -12
- package/dist/types/post-v1-files-upload-urls-body-items-item-type-enum.js +0 -2
- package/dist/types/post-v1-files-upload-urls-response401-message-enum.d.ts +0 -12
- package/dist/types/post-v1-files-upload-urls-response401-message-enum.js +0 -2
- package/dist/types/post-v1-files-upload-urls-response404-message-enum.d.ts +0 -12
- package/dist/types/post-v1-files-upload-urls-response404-message-enum.js +0 -2
- package/dist/types/post-v1-image-background-remover-response401-message-enum.d.ts +0 -12
- package/dist/types/post-v1-image-background-remover-response401-message-enum.js +0 -2
- package/dist/types/post-v1-image-background-remover-response404-message-enum.d.ts +0 -12
- package/dist/types/post-v1-image-background-remover-response404-message-enum.js +0 -2
- package/dist/types/post-v1-image-to-video-response401-message-enum.d.ts +0 -12
- package/dist/types/post-v1-image-to-video-response401-message-enum.js +0 -2
- package/dist/types/post-v1-image-to-video-response404-message-enum.d.ts +0 -12
- package/dist/types/post-v1-image-to-video-response404-message-enum.js +0 -2
- package/dist/types/post-v1-lip-sync-body-assets-video-source-enum.d.ts +0 -12
- package/dist/types/post-v1-lip-sync-body-assets-video-source-enum.js +0 -2
- package/dist/types/post-v1-lip-sync-response401-message-enum.d.ts +0 -12
- package/dist/types/post-v1-lip-sync-response401-message-enum.js +0 -2
- package/dist/types/post-v1-lip-sync-response404-message-enum.d.ts +0 -12
- package/dist/types/post-v1-lip-sync-response404-message-enum.js +0 -2
- package/dist/types/post-v1-text-to-video-body-orientation-enum.d.ts +0 -12
- package/dist/types/post-v1-text-to-video-body-orientation-enum.js +0 -2
- package/dist/types/post-v1-text-to-video-response401-message-enum.d.ts +0 -12
- package/dist/types/post-v1-text-to-video-response401-message-enum.js +0 -2
- package/dist/types/post-v1-text-to-video-response404-message-enum.d.ts +0 -12
- package/dist/types/post-v1-text-to-video-response404-message-enum.js +0 -2
- package/dist/types/post-v1-video-to-video-body-assets-video-source-enum.d.ts +0 -12
- package/dist/types/post-v1-video-to-video-body-assets-video-source-enum.js +0 -2
- package/dist/types/post-v1-video-to-video-body-fps-resolution-enum.d.ts +0 -14
- package/dist/types/post-v1-video-to-video-body-fps-resolution-enum.js +0 -2
- package/dist/types/post-v1-video-to-video-body-style-art-style-enum.d.ts +0 -12
- package/dist/types/post-v1-video-to-video-body-style-art-style-enum.js +0 -2
- package/dist/types/post-v1-video-to-video-body-style-model-enum.d.ts +0 -15
- package/dist/types/post-v1-video-to-video-body-style-model-enum.js +0 -2
- package/dist/types/post-v1-video-to-video-body-style-prompt-type-enum.d.ts +0 -14
- package/dist/types/post-v1-video-to-video-body-style-prompt-type-enum.js +0 -2
- package/dist/types/post-v1-video-to-video-body-style-version-enum.d.ts +0 -14
- package/dist/types/post-v1-video-to-video-body-style-version-enum.js +0 -2
- package/dist/types/post-v1-video-to-video-response401-message-enum.d.ts +0 -12
- package/dist/types/post-v1-video-to-video-response401-message-enum.js +0 -2
- package/dist/types/post-v1-video-to-video-response404-message-enum.d.ts +0 -12
- package/dist/types/post-v1-video-to-video-response404-message-enum.js +0 -2
package/dist/core/index.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by Sideko (sideko.dev)
|
|
4
|
-
**/
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.zodUploadFile = exports.zodTransform = exports.isUploadFile = exports.createForm = exports.ApiError = exports.BinaryResponse = exports.ApiPromise = exports.RUNTIME = exports.AuthCookieHeader = exports.AuthKeyHeader = exports.AuthKeyQuery = exports.AuthBearer = exports.AuthBasic = exports.CoreResourceClient = exports.CoreClient = void 0;
|
|
3
|
+
exports.zodRequiredAny = exports.zodUploadFile = exports.zodTransform = exports.isUploadFile = exports.createForm = exports.ApiError = exports.BinaryResponse = exports.ApiPromise = exports.RUNTIME = exports.OAuth2 = exports.AuthCookieHeader = exports.AuthKeyHeader = exports.AuthKeyQuery = exports.AuthBearer = exports.AuthBasic = exports.CoreResourceClient = exports.CoreClient = void 0;
|
|
7
4
|
var core_client_1 = require("./core-client");
|
|
8
5
|
Object.defineProperty(exports, "CoreClient", { enumerable: true, get: function () { return core_client_1.CoreClient; } });
|
|
9
6
|
Object.defineProperty(exports, "CoreResourceClient", { enumerable: true, get: function () { return core_client_1.CoreResourceClient; } });
|
|
@@ -13,6 +10,7 @@ Object.defineProperty(exports, "AuthBearer", { enumerable: true, get: function (
|
|
|
13
10
|
Object.defineProperty(exports, "AuthKeyQuery", { enumerable: true, get: function () { return auth_1.AuthKeyQuery; } });
|
|
14
11
|
Object.defineProperty(exports, "AuthKeyHeader", { enumerable: true, get: function () { return auth_1.AuthKeyHeader; } });
|
|
15
12
|
Object.defineProperty(exports, "AuthCookieHeader", { enumerable: true, get: function () { return auth_1.AuthCookieHeader; } });
|
|
13
|
+
Object.defineProperty(exports, "OAuth2", { enumerable: true, get: function () { return auth_1.OAuth2; } });
|
|
16
14
|
var runtime_1 = require("./runtime");
|
|
17
15
|
Object.defineProperty(exports, "RUNTIME", { enumerable: true, get: function () { return runtime_1.RUNTIME; } });
|
|
18
16
|
var api_promise_1 = require("./api-promise");
|
|
@@ -27,3 +25,4 @@ Object.defineProperty(exports, "isUploadFile", { enumerable: true, get: function
|
|
|
27
25
|
var zod_1 = require("./zod");
|
|
28
26
|
Object.defineProperty(exports, "zodTransform", { enumerable: true, get: function () { return zod_1.zodTransform; } });
|
|
29
27
|
Object.defineProperty(exports, "zodUploadFile", { enumerable: true, get: function () { return zod_1.zodUploadFile; } });
|
|
28
|
+
Object.defineProperty(exports, "zodRequiredAny", { enumerable: true, get: function () { return zod_1.zodRequiredAny; } });
|
package/dist/core/runtime.d.ts
CHANGED
package/dist/core/runtime.js
CHANGED
package/dist/core/zod.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Sideko (sideko.dev)
|
|
3
|
-
**/
|
|
4
1
|
import * as z from "zod";
|
|
5
2
|
import { UploadFile } from "./form-data";
|
|
6
3
|
/**
|
|
@@ -13,3 +10,4 @@ export declare function zodTransform<Input extends Record<string, unknown>, cons
|
|
|
13
10
|
[k in keyof Input]?: string | null;
|
|
14
11
|
}>(input: Input, transformer: Transformer): any;
|
|
15
12
|
export declare const zodUploadFile: z.ZodType<UploadFile, z.ZodTypeDef, UploadFile>;
|
|
13
|
+
export declare const zodRequiredAny: z.ZodType<Required<any>, z.ZodTypeDef, Required<any>>;
|
package/dist/core/zod.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by Sideko (sideko.dev)
|
|
4
|
-
**/
|
|
5
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
3
|
if (k2 === undefined) k2 = k;
|
|
7
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -36,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
33
|
};
|
|
37
34
|
})();
|
|
38
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.zodUploadFile = void 0;
|
|
36
|
+
exports.zodRequiredAny = exports.zodUploadFile = void 0;
|
|
40
37
|
exports.zodTransform = zodTransform;
|
|
41
38
|
const z = __importStar(require("zod"));
|
|
42
39
|
const form_data_1 = require("./form-data");
|
|
@@ -58,3 +55,6 @@ function zodTransform(input, transformer) {
|
|
|
58
55
|
return transformed;
|
|
59
56
|
}
|
|
60
57
|
exports.zodUploadFile = z.custom((val) => (0, form_data_1.isUploadFile)(val));
|
|
58
|
+
// Workaround because the type zod infers from z.any() allows undefined
|
|
59
|
+
// https://github.com/colinhacks/zod/issues/3730
|
|
60
|
+
exports.zodRequiredAny = z.custom((x) => x !== undefined);
|
package/dist/environment.d.ts
CHANGED
package/dist/environment.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by Sideko (sideko.dev)
|
|
4
|
-
**/
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.Environment = void 0;
|
|
7
4
|
var Environment;
|
|
8
5
|
(function (Environment) {
|
|
9
6
|
Environment["Environment"] = "https://api.magichour.ai";
|
|
7
|
+
Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.8.1";
|
|
10
8
|
})(Environment || (exports.Environment = Environment = {}));
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -44,6 +44,3 @@ var environment_1 = require("./environment");
|
|
|
44
44
|
Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return environment_1.Environment; } });
|
|
45
45
|
exports.resources = __importStar(require("./resources"));
|
|
46
46
|
exports.types = __importStar(require("./types"));
|
|
47
|
-
/**
|
|
48
|
-
* Generated by Sideko (sideko.dev)
|
|
49
|
-
**/
|
package/dist/resources/index.js
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiClothesChangerClient = void 0;
|
|
4
|
+
var resource_client_1 = require("./resource-client");
|
|
5
|
+
Object.defineProperty(exports, "AiClothesChangerClient", { enumerable: true, get: function () { return resource_client_1.AiClothesChangerClient; } });
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { External$PostV1AiClothesChangerBodyAssets, PostV1AiClothesChangerBodyAssets } from "../../../types/post-v1-ai-clothes-changer-body-assets";
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* CreateRequest
|
|
5
|
+
*/
|
|
6
|
+
export type CreateRequest = {
|
|
7
|
+
/**
|
|
8
|
+
* Provide the assets for clothes changer
|
|
9
|
+
*/
|
|
10
|
+
assets: PostV1AiClothesChangerBodyAssets;
|
|
11
|
+
/**
|
|
12
|
+
* The name of image
|
|
13
|
+
*/
|
|
14
|
+
name?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
* CreateRequest without any key transformation, this is what
|
|
19
|
+
* we expect to come in as network data
|
|
20
|
+
*/
|
|
21
|
+
export type External$CreateRequest = {
|
|
22
|
+
assets: External$PostV1AiClothesChangerBodyAssets;
|
|
23
|
+
name?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
export declare const Schemas$CreateRequest: {
|
|
26
|
+
in: z.ZodType<CreateRequest, z.ZodTypeDef, unknown>;
|
|
27
|
+
out: z.ZodType<External$CreateRequest, z.ZodTypeDef, CreateRequest>;
|
|
28
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Schemas$CreateRequest = void 0;
|
|
37
|
+
const core_1 = require("../../../core");
|
|
38
|
+
const post_v1_ai_clothes_changer_body_assets_1 = require("../../../types/post-v1-ai-clothes-changer-body-assets");
|
|
39
|
+
const z = __importStar(require("zod"));
|
|
40
|
+
/**
|
|
41
|
+
* Takes network data, validates it, and transforms keys to match typescript object CreateRequest
|
|
42
|
+
*/
|
|
43
|
+
const SchemaIn$CreateRequest = z
|
|
44
|
+
.object({
|
|
45
|
+
assets: post_v1_ai_clothes_changer_body_assets_1.Schemas$PostV1AiClothesChangerBodyAssets.in,
|
|
46
|
+
name: z.string().optional(),
|
|
47
|
+
})
|
|
48
|
+
.transform((obj) => {
|
|
49
|
+
return (0, core_1.zodTransform)(obj, {
|
|
50
|
+
assets: "assets",
|
|
51
|
+
name: "name",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* Takes typescript data, validates it, and maps keys to match the expected external object External$CreateRequest
|
|
57
|
+
*/
|
|
58
|
+
const SchemaOut$CreateRequest = z
|
|
59
|
+
.object({
|
|
60
|
+
assets: post_v1_ai_clothes_changer_body_assets_1.Schemas$PostV1AiClothesChangerBodyAssets.out,
|
|
61
|
+
name: z.string().optional(),
|
|
62
|
+
})
|
|
63
|
+
.transform((obj) => {
|
|
64
|
+
return (0, core_1.zodTransform)(obj, {
|
|
65
|
+
assets: "assets",
|
|
66
|
+
name: "name",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
exports.Schemas$CreateRequest = {
|
|
70
|
+
in: SchemaIn$CreateRequest,
|
|
71
|
+
out: SchemaOut$CreateRequest,
|
|
72
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { types } from "../../../index.js";
|
|
2
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
|
|
3
|
+
import * as requests from "../../../resources/v1/ai-clothes-changer/request-types";
|
|
4
|
+
export declare class AiClothesChangerClient extends CoreResourceClient {
|
|
5
|
+
constructor(client: CoreClient);
|
|
6
|
+
/**
|
|
7
|
+
* AI Clothes Changer
|
|
8
|
+
*
|
|
9
|
+
* Change outfits in photos in seconds with just a photo reference. Each photo costs 25 frames.
|
|
10
|
+
*
|
|
11
|
+
* POST /v1/ai-clothes-changer
|
|
12
|
+
*/
|
|
13
|
+
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1AiClothesChangerResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiClothesChangerClient = void 0;
|
|
4
|
+
const core_1 = require("../../../core");
|
|
5
|
+
const post_v1_ai_clothes_changer_body_1 = require("../../../types/post-v1-ai-clothes-changer-body");
|
|
6
|
+
const post_v1_ai_clothes_changer_response_1 = require("../../../types/post-v1-ai-clothes-changer-response");
|
|
7
|
+
class AiClothesChangerClient extends core_1.CoreResourceClient {
|
|
8
|
+
constructor(client) {
|
|
9
|
+
super(client);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* AI Clothes Changer
|
|
13
|
+
*
|
|
14
|
+
* Change outfits in photos in seconds with just a photo reference. Each photo costs 25 frames.
|
|
15
|
+
*
|
|
16
|
+
* POST /v1/ai-clothes-changer
|
|
17
|
+
*/
|
|
18
|
+
create(request, opts) {
|
|
19
|
+
return this._client.makeRequest({
|
|
20
|
+
method: "post",
|
|
21
|
+
path: "/v1/ai-clothes-changer",
|
|
22
|
+
auth: ["bearerAuth"],
|
|
23
|
+
contentType: "application/json",
|
|
24
|
+
body: post_v1_ai_clothes_changer_body_1.Schemas$PostV1AiClothesChangerBody.out.parse(request),
|
|
25
|
+
responseType: "json",
|
|
26
|
+
responseSchema: post_v1_ai_clothes_changer_response_1.Schemas$PostV1AiClothesChangerResponse.in,
|
|
27
|
+
opts,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.AiClothesChangerClient = AiClothesChangerClient;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Sideko (sideko.dev)
|
|
3
|
-
**/
|
|
4
1
|
import { types } from "../../../index.js";
|
|
5
2
|
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
|
|
6
3
|
import * as requests from "../../../resources/v1/ai-headshot-generator/request-types";
|
|
7
4
|
export declare class AiHeadshotGeneratorClient extends CoreResourceClient {
|
|
8
5
|
constructor(client: CoreClient);
|
|
9
6
|
/**
|
|
7
|
+
* AI Headshots
|
|
8
|
+
*
|
|
10
9
|
* Create an AI headshot. Each headshot costs 50 frames.
|
|
11
10
|
*
|
|
12
11
|
* POST /v1/ai-headshot-generator
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by Sideko (sideko.dev)
|
|
4
|
-
**/
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.AiHeadshotGeneratorClient = void 0;
|
|
7
4
|
const core_1 = require("../../../core");
|
|
@@ -12,6 +9,8 @@ class AiHeadshotGeneratorClient extends core_1.CoreResourceClient {
|
|
|
12
9
|
super(client);
|
|
13
10
|
}
|
|
14
11
|
/**
|
|
12
|
+
* AI Headshots
|
|
13
|
+
*
|
|
15
14
|
* Create an AI headshot. Each headshot costs 50 frames.
|
|
16
15
|
*
|
|
17
16
|
* POST /v1/ai-headshot-generator
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Sideko (sideko.dev)
|
|
3
|
-
**/
|
|
4
|
-
import { External$PostV1AiImageGeneratorBodyOrientationEnum, PostV1AiImageGeneratorBodyOrientationEnum } from "../../../types/post-v1-ai-image-generator-body-orientation-enum";
|
|
5
1
|
import { External$PostV1AiImageGeneratorBodyStyle, PostV1AiImageGeneratorBodyStyle } from "../../../types/post-v1-ai-image-generator-body-style";
|
|
6
2
|
import * as z from "zod";
|
|
7
3
|
/**
|
|
@@ -16,7 +12,7 @@ export type CreateRequest = {
|
|
|
16
12
|
* The name of image
|
|
17
13
|
*/
|
|
18
14
|
name?: string | undefined;
|
|
19
|
-
orientation:
|
|
15
|
+
orientation: "landscape" | "portrait" | "square";
|
|
20
16
|
style: PostV1AiImageGeneratorBodyStyle;
|
|
21
17
|
};
|
|
22
18
|
/**
|
|
@@ -27,7 +23,7 @@ export type CreateRequest = {
|
|
|
27
23
|
export type External$CreateRequest = {
|
|
28
24
|
image_count: number;
|
|
29
25
|
name?: string | undefined;
|
|
30
|
-
orientation:
|
|
26
|
+
orientation: "landscape" | "portrait" | "square";
|
|
31
27
|
style: External$PostV1AiImageGeneratorBodyStyle;
|
|
32
28
|
};
|
|
33
29
|
export declare const Schemas$CreateRequest: {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Sideko (sideko.dev)
|
|
3
|
-
**/
|
|
4
1
|
import { types } from "../../../index.js";
|
|
5
2
|
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
|
|
6
3
|
import * as requests from "../../../resources/v1/ai-image-generator/request-types";
|
|
7
4
|
export declare class AiImageGeneratorClient extends CoreResourceClient {
|
|
8
5
|
constructor(client: CoreClient);
|
|
9
6
|
/**
|
|
7
|
+
* AI Images
|
|
8
|
+
*
|
|
10
9
|
* Create an AI image. Each image costs 5 frames.
|
|
11
10
|
*
|
|
12
11
|
* POST /v1/ai-image-generator
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by Sideko (sideko.dev)
|
|
4
|
-
**/
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.AiImageGeneratorClient = void 0;
|
|
7
4
|
const core_1 = require("../../../core");
|
|
@@ -12,6 +9,8 @@ class AiImageGeneratorClient extends core_1.CoreResourceClient {
|
|
|
12
9
|
super(client);
|
|
13
10
|
}
|
|
14
11
|
/**
|
|
12
|
+
* AI Images
|
|
13
|
+
*
|
|
15
14
|
* Create an AI image. Each image costs 5 frames.
|
|
16
15
|
*
|
|
17
16
|
* POST /v1/ai-image-generator
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Sideko (sideko.dev)
|
|
3
|
-
**/
|
|
4
1
|
import { External$PostV1AiImageUpscalerBodyAssets, PostV1AiImageUpscalerBodyAssets } from "../../../types/post-v1-ai-image-upscaler-body-assets";
|
|
5
2
|
import { External$PostV1AiImageUpscalerBodyStyle, PostV1AiImageUpscalerBodyStyle } from "../../../types/post-v1-ai-image-upscaler-body-style";
|
|
6
3
|
import * as z from "zod";
|
|
@@ -16,6 +13,9 @@ export type CreateRequest = {
|
|
|
16
13
|
* The name of image
|
|
17
14
|
*/
|
|
18
15
|
name?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* How much to scale the image. Must be either 2 or 4
|
|
18
|
+
*/
|
|
19
19
|
scaleFactor: number;
|
|
20
20
|
style: PostV1AiImageUpscalerBodyStyle;
|
|
21
21
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Sideko (sideko.dev)
|
|
3
|
-
**/
|
|
4
1
|
import { types } from "../../../index.js";
|
|
5
2
|
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
|
|
6
3
|
import * as requests from "../../../resources/v1/ai-image-upscaler/request-types";
|
|
7
4
|
export declare class AiImageUpscalerClient extends CoreResourceClient {
|
|
8
5
|
constructor(client: CoreClient);
|
|
9
6
|
/**
|
|
7
|
+
* AI Image Upscaler
|
|
8
|
+
*
|
|
10
9
|
* Upscale your image using AI. Each 2x upscale costs 50 frames, and 4x upscale costs 200 frames.
|
|
11
10
|
*
|
|
12
11
|
* POST /v1/ai-image-upscaler
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by Sideko (sideko.dev)
|
|
4
|
-
**/
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.AiImageUpscalerClient = void 0;
|
|
7
4
|
const core_1 = require("../../../core");
|
|
@@ -12,6 +9,8 @@ class AiImageUpscalerClient extends core_1.CoreResourceClient {
|
|
|
12
9
|
super(client);
|
|
13
10
|
}
|
|
14
11
|
/**
|
|
12
|
+
* AI Image Upscaler
|
|
13
|
+
*
|
|
15
14
|
* Upscale your image using AI. Each 2x upscale costs 50 frames, and 4x upscale costs 200 frames.
|
|
16
15
|
*
|
|
17
16
|
* POST /v1/ai-image-upscaler
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Sideko (sideko.dev)
|
|
3
|
-
**/
|
|
4
1
|
import { External$PostV1AiPhotoEditorBodyAssets, PostV1AiPhotoEditorBodyAssets } from "../../../types/post-v1-ai-photo-editor-body-assets";
|
|
5
2
|
import { External$PostV1AiPhotoEditorBodyStyle, PostV1AiPhotoEditorBodyStyle } from "../../../types/post-v1-ai-photo-editor-body-style";
|
|
6
3
|
import * as z from "zod";
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Sideko (sideko.dev)
|
|
3
|
-
**/
|
|
4
1
|
import { types } from "../../../index.js";
|
|
5
2
|
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
|
|
6
3
|
import * as requests from "../../../resources/v1/ai-photo-editor/request-types";
|
|
7
4
|
export declare class AiPhotoEditorClient extends CoreResourceClient {
|
|
8
5
|
constructor(client: CoreClient);
|
|
9
6
|
/**
|
|
7
|
+
* AI Photo Editor
|
|
8
|
+
*
|
|
10
9
|
* > **NOTE**: this API is still in early development stages, and should be avoided. Please reach out to us if you're interested in this API.
|
|
11
10
|
*
|
|
12
11
|
* Edit photo using AI. Each photo costs 10 frames.
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by Sideko (sideko.dev)
|
|
4
|
-
**/
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.AiPhotoEditorClient = void 0;
|
|
7
4
|
const core_1 = require("../../../core");
|
|
@@ -12,6 +9,8 @@ class AiPhotoEditorClient extends core_1.CoreResourceClient {
|
|
|
12
9
|
super(client);
|
|
13
10
|
}
|
|
14
11
|
/**
|
|
12
|
+
* AI Photo Editor
|
|
13
|
+
*
|
|
15
14
|
* > **NOTE**: this API is still in early development stages, and should be avoided. Please reach out to us if you're interested in this API.
|
|
16
15
|
*
|
|
17
16
|
* Edit photo using AI. Each photo costs 10 frames.
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Sideko (sideko.dev)
|
|
3
|
-
**/
|
|
4
1
|
import { types } from "../../../index.js";
|
|
5
2
|
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
|
|
6
3
|
import * as requests from "../../../resources/v1/ai-qr-code-generator/request-types";
|
|
7
4
|
export declare class AiQrCodeGeneratorClient extends CoreResourceClient {
|
|
8
5
|
constructor(client: CoreClient);
|
|
9
6
|
/**
|
|
7
|
+
* AI QR Code
|
|
8
|
+
*
|
|
10
9
|
* Create an AI QR code. Each QR code costs 20 frames.
|
|
11
10
|
*
|
|
12
11
|
* POST /v1/ai-qr-code-generator
|