magic-hour 0.0.2
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/LICENSE +21 -0
- package/README.md +40 -0
- package/dist/client.d.ts +17 -0
- package/dist/client.js +19 -0
- package/dist/core/api-error.d.ts +9 -0
- package/dist/core/api-error.js +14 -0
- package/dist/core/api-promise.d.ts +22 -0
- package/dist/core/api-promise.js +67 -0
- package/dist/core/auth.d.ts +36 -0
- package/dist/core/auth.js +98 -0
- package/dist/core/binary-response.d.ts +9 -0
- package/dist/core/binary-response.js +13 -0
- package/dist/core/content-type.d.ts +7 -0
- package/dist/core/content-type.js +15 -0
- package/dist/core/core-client.d.ts +46 -0
- package/dist/core/core-client.js +149 -0
- package/dist/core/form-data.d.ts +30 -0
- package/dist/core/form-data.js +87 -0
- package/dist/core/index.d.ts +10 -0
- package/dist/core/index.js +26 -0
- package/dist/core/runtime.d.ts +7 -0
- package/dist/core/runtime.js +23 -0
- package/dist/environment.d.ts +6 -0
- package/dist/environment.js +10 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +39 -0
- package/dist/resources/index.d.ts +4 -0
- package/dist/resources/index.js +30 -0
- package/dist/resources/v1/ai-image-generator/index.d.ts +5 -0
- package/dist/resources/v1/ai-image-generator/index.js +8 -0
- package/dist/resources/v1/ai-image-generator/request-types.d.ts +7 -0
- package/dist/resources/v1/ai-image-generator/request-types.js +5 -0
- package/dist/resources/v1/ai-image-generator/resource-client.d.ts +13 -0
- package/dist/resources/v1/ai-image-generator/resource-client.js +27 -0
- package/dist/resources/v1/face-swap/index.d.ts +5 -0
- package/dist/resources/v1/face-swap/index.js +8 -0
- package/dist/resources/v1/face-swap/request-types.d.ts +7 -0
- package/dist/resources/v1/face-swap/request-types.js +5 -0
- package/dist/resources/v1/face-swap/resource-client.d.ts +16 -0
- package/dist/resources/v1/face-swap/resource-client.js +30 -0
- package/dist/resources/v1/face-swap-photo/index.d.ts +5 -0
- package/dist/resources/v1/face-swap-photo/index.js +8 -0
- package/dist/resources/v1/face-swap-photo/request-types.d.ts +7 -0
- package/dist/resources/v1/face-swap-photo/request-types.js +5 -0
- package/dist/resources/v1/face-swap-photo/resource-client.d.ts +13 -0
- package/dist/resources/v1/face-swap-photo/resource-client.js +27 -0
- package/dist/resources/v1/files/index.d.ts +5 -0
- package/dist/resources/v1/files/index.js +32 -0
- package/dist/resources/v1/files/resource-client.d.ts +9 -0
- package/dist/resources/v1/files/resource-client.js +15 -0
- package/dist/resources/v1/files/upload-urls/index.d.ts +5 -0
- package/dist/resources/v1/files/upload-urls/index.js +8 -0
- package/dist/resources/v1/files/upload-urls/request-types.d.ts +7 -0
- package/dist/resources/v1/files/upload-urls/request-types.js +5 -0
- package/dist/resources/v1/files/upload-urls/resource-client.d.ts +32 -0
- package/dist/resources/v1/files/upload-urls/resource-client.js +46 -0
- package/dist/resources/v1/image-projects/index.d.ts +5 -0
- package/dist/resources/v1/image-projects/index.js +8 -0
- package/dist/resources/v1/image-projects/request-types.d.ts +6 -0
- package/dist/resources/v1/image-projects/request-types.js +5 -0
- package/dist/resources/v1/image-projects/resource-client.d.ts +22 -0
- package/dist/resources/v1/image-projects/resource-client.js +34 -0
- package/dist/resources/v1/image-to-video/index.d.ts +5 -0
- package/dist/resources/v1/image-to-video/index.js +8 -0
- package/dist/resources/v1/image-to-video/request-types.d.ts +7 -0
- package/dist/resources/v1/image-to-video/request-types.js +5 -0
- package/dist/resources/v1/image-to-video/resource-client.d.ts +16 -0
- package/dist/resources/v1/image-to-video/resource-client.js +30 -0
- package/dist/resources/v1/index.d.ts +14 -0
- package/dist/resources/v1/index.js +41 -0
- package/dist/resources/v1/lip-sync/index.d.ts +5 -0
- package/dist/resources/v1/lip-sync/index.js +8 -0
- package/dist/resources/v1/lip-sync/request-types.d.ts +7 -0
- package/dist/resources/v1/lip-sync/request-types.js +5 -0
- package/dist/resources/v1/lip-sync/resource-client.d.ts +16 -0
- package/dist/resources/v1/lip-sync/resource-client.js +30 -0
- package/dist/resources/v1/resource-client.d.ts +27 -0
- package/dist/resources/v1/resource-client.js +33 -0
- package/dist/resources/v1/text-to-video/index.d.ts +5 -0
- package/dist/resources/v1/text-to-video/index.js +8 -0
- package/dist/resources/v1/text-to-video/request-types.d.ts +7 -0
- package/dist/resources/v1/text-to-video/request-types.js +5 -0
- package/dist/resources/v1/text-to-video/resource-client.d.ts +16 -0
- package/dist/resources/v1/text-to-video/resource-client.js +30 -0
- package/dist/resources/v1/video-projects/index.d.ts +5 -0
- package/dist/resources/v1/video-projects/index.js +8 -0
- package/dist/resources/v1/video-projects/request-types.d.ts +6 -0
- package/dist/resources/v1/video-projects/request-types.js +5 -0
- package/dist/resources/v1/video-projects/resource-client.d.ts +22 -0
- package/dist/resources/v1/video-projects/resource-client.js +34 -0
- package/dist/resources/v1/video-to-video/index.d.ts +5 -0
- package/dist/resources/v1/video-to-video/index.js +8 -0
- package/dist/resources/v1/video-to-video/request-types.d.ts +7 -0
- package/dist/resources/v1/video-to-video/request-types.js +5 -0
- package/dist/resources/v1/video-to-video/resource-client.d.ts +16 -0
- package/dist/resources/v1/video-to-video/resource-client.js +30 -0
- package/dist/types/get-v1-image-projects-id-response-downloads-item.d.ts +7 -0
- package/dist/types/get-v1-image-projects-id-response-downloads-item.js +5 -0
- package/dist/types/get-v1-image-projects-id-response-status-enum.d.ts +11 -0
- package/dist/types/get-v1-image-projects-id-response-status-enum.js +15 -0
- package/dist/types/get-v1-image-projects-id-response-type-enum.d.ts +10 -0
- package/dist/types/get-v1-image-projects-id-response-type-enum.js +14 -0
- package/dist/types/get-v1-image-projects-id-response.d.ts +29 -0
- package/dist/types/get-v1-image-projects-id-response.js +5 -0
- package/dist/types/get-v1-image-projects-id-response400.d.ts +6 -0
- package/dist/types/get-v1-image-projects-id-response400.js +5 -0
- package/dist/types/get-v1-image-projects-id-response401-message-enum.d.ts +6 -0
- package/dist/types/get-v1-image-projects-id-response401-message-enum.js +10 -0
- package/dist/types/get-v1-image-projects-id-response401.d.ts +7 -0
- package/dist/types/get-v1-image-projects-id-response401.js +5 -0
- package/dist/types/get-v1-image-projects-id-response404-message-enum.d.ts +6 -0
- package/dist/types/get-v1-image-projects-id-response404-message-enum.js +10 -0
- package/dist/types/get-v1-image-projects-id-response404.d.ts +7 -0
- package/dist/types/get-v1-image-projects-id-response404.js +5 -0
- package/dist/types/get-v1-video-projects-id-response-download.d.ts +7 -0
- package/dist/types/get-v1-video-projects-id-response-download.js +5 -0
- package/dist/types/get-v1-video-projects-id-response-status-enum.d.ts +11 -0
- package/dist/types/get-v1-video-projects-id-response-status-enum.js +15 -0
- package/dist/types/get-v1-video-projects-id-response-type-enum.d.ts +11 -0
- package/dist/types/get-v1-video-projects-id-response-type-enum.js +15 -0
- package/dist/types/get-v1-video-projects-id-response.d.ts +48 -0
- package/dist/types/get-v1-video-projects-id-response.js +5 -0
- package/dist/types/get-v1-video-projects-id-response400.d.ts +6 -0
- package/dist/types/get-v1-video-projects-id-response400.js +5 -0
- package/dist/types/get-v1-video-projects-id-response401-message-enum.d.ts +6 -0
- package/dist/types/get-v1-video-projects-id-response401-message-enum.js +10 -0
- package/dist/types/get-v1-video-projects-id-response401.d.ts +7 -0
- package/dist/types/get-v1-video-projects-id-response401.js +5 -0
- package/dist/types/get-v1-video-projects-id-response404-message-enum.d.ts +6 -0
- package/dist/types/get-v1-video-projects-id-response404-message-enum.js +10 -0
- package/dist/types/get-v1-video-projects-id-response404.d.ts +7 -0
- package/dist/types/get-v1-video-projects-id-response404.js +5 -0
- package/dist/types/index.d.ts +107 -0
- package/dist/types/index.js +76 -0
- package/dist/types/post-v1-ai-image-generator-body-orientation-enum.d.ts +8 -0
- package/dist/types/post-v1-ai-image-generator-body-orientation-enum.js +12 -0
- package/dist/types/post-v1-ai-image-generator-body-style.d.ts +9 -0
- package/dist/types/post-v1-ai-image-generator-body-style.js +5 -0
- package/dist/types/post-v1-ai-image-generator-body.d.ts +16 -0
- package/dist/types/post-v1-ai-image-generator-body.js +5 -0
- package/dist/types/post-v1-ai-image-generator-response.d.ts +10 -0
- package/dist/types/post-v1-ai-image-generator-response.js +5 -0
- package/dist/types/post-v1-ai-image-generator-response400.d.ts +6 -0
- package/dist/types/post-v1-ai-image-generator-response400.js +5 -0
- package/dist/types/post-v1-ai-image-generator-response401-message-enum.d.ts +6 -0
- package/dist/types/post-v1-ai-image-generator-response401-message-enum.js +10 -0
- package/dist/types/post-v1-ai-image-generator-response401.d.ts +7 -0
- package/dist/types/post-v1-ai-image-generator-response401.js +5 -0
- package/dist/types/post-v1-ai-image-generator-response404-message-enum.d.ts +6 -0
- package/dist/types/post-v1-ai-image-generator-response404-message-enum.js +10 -0
- package/dist/types/post-v1-ai-image-generator-response404.d.ts +7 -0
- package/dist/types/post-v1-ai-image-generator-response404.js +5 -0
- package/dist/types/post-v1-ai-image-generator-response422.d.ts +6 -0
- package/dist/types/post-v1-ai-image-generator-response422.js +5 -0
- package/dist/types/post-v1-face-swap-body-assets-video-source-enum.d.ts +7 -0
- package/dist/types/post-v1-face-swap-body-assets-video-source-enum.js +11 -0
- package/dist/types/post-v1-face-swap-body-assets.d.ts +19 -0
- package/dist/types/post-v1-face-swap-body-assets.js +5 -0
- package/dist/types/post-v1-face-swap-body.d.ts +30 -0
- package/dist/types/post-v1-face-swap-body.js +5 -0
- package/dist/types/post-v1-face-swap-photo-body-assets.d.ts +13 -0
- package/dist/types/post-v1-face-swap-photo-body-assets.js +5 -0
- package/dist/types/post-v1-face-swap-photo-body.d.ts +14 -0
- package/dist/types/post-v1-face-swap-photo-body.js +5 -0
- package/dist/types/post-v1-face-swap-photo-response.d.ts +10 -0
- package/dist/types/post-v1-face-swap-photo-response.js +5 -0
- package/dist/types/post-v1-face-swap-photo-response400.d.ts +6 -0
- package/dist/types/post-v1-face-swap-photo-response400.js +5 -0
- package/dist/types/post-v1-face-swap-photo-response401-message-enum.d.ts +6 -0
- package/dist/types/post-v1-face-swap-photo-response401-message-enum.js +10 -0
- package/dist/types/post-v1-face-swap-photo-response401.d.ts +7 -0
- package/dist/types/post-v1-face-swap-photo-response401.js +5 -0
- package/dist/types/post-v1-face-swap-photo-response404-message-enum.d.ts +6 -0
- package/dist/types/post-v1-face-swap-photo-response404-message-enum.js +10 -0
- package/dist/types/post-v1-face-swap-photo-response404.d.ts +7 -0
- package/dist/types/post-v1-face-swap-photo-response404.js +5 -0
- package/dist/types/post-v1-face-swap-photo-response422.d.ts +6 -0
- package/dist/types/post-v1-face-swap-photo-response422.js +5 -0
- package/dist/types/post-v1-face-swap-response.d.ts +13 -0
- package/dist/types/post-v1-face-swap-response.js +5 -0
- package/dist/types/post-v1-face-swap-response400.d.ts +6 -0
- package/dist/types/post-v1-face-swap-response400.js +5 -0
- package/dist/types/post-v1-face-swap-response401-message-enum.d.ts +6 -0
- package/dist/types/post-v1-face-swap-response401-message-enum.js +10 -0
- package/dist/types/post-v1-face-swap-response401.d.ts +7 -0
- package/dist/types/post-v1-face-swap-response401.js +5 -0
- package/dist/types/post-v1-face-swap-response404-message-enum.d.ts +6 -0
- package/dist/types/post-v1-face-swap-response404-message-enum.js +10 -0
- package/dist/types/post-v1-face-swap-response404.d.ts +7 -0
- package/dist/types/post-v1-face-swap-response404.js +5 -0
- package/dist/types/post-v1-face-swap-response422.d.ts +6 -0
- package/dist/types/post-v1-face-swap-response422.js +5 -0
- package/dist/types/post-v1-files-upload-urls-body-items-item-type-enum.d.ts +8 -0
- package/dist/types/post-v1-files-upload-urls-body-items-item-type-enum.js +12 -0
- package/dist/types/post-v1-files-upload-urls-body-items-item.d.ts +14 -0
- package/dist/types/post-v1-files-upload-urls-body-items-item.js +5 -0
- package/dist/types/post-v1-files-upload-urls-body.d.ts +7 -0
- package/dist/types/post-v1-files-upload-urls-body.js +5 -0
- package/dist/types/post-v1-files-upload-urls-response-items-item.d.ts +8 -0
- package/dist/types/post-v1-files-upload-urls-response-items-item.js +5 -0
- package/dist/types/post-v1-files-upload-urls-response.d.ts +7 -0
- package/dist/types/post-v1-files-upload-urls-response.js +5 -0
- package/dist/types/post-v1-files-upload-urls-response400.d.ts +6 -0
- package/dist/types/post-v1-files-upload-urls-response400.js +5 -0
- package/dist/types/post-v1-files-upload-urls-response401-message-enum.d.ts +6 -0
- package/dist/types/post-v1-files-upload-urls-response401-message-enum.js +10 -0
- package/dist/types/post-v1-files-upload-urls-response401.d.ts +7 -0
- package/dist/types/post-v1-files-upload-urls-response401.js +5 -0
- package/dist/types/post-v1-files-upload-urls-response404-message-enum.d.ts +6 -0
- package/dist/types/post-v1-files-upload-urls-response404-message-enum.js +10 -0
- package/dist/types/post-v1-files-upload-urls-response404.d.ts +7 -0
- package/dist/types/post-v1-files-upload-urls-response404.js +5 -0
- package/dist/types/post-v1-files-upload-urls-response422.d.ts +6 -0
- package/dist/types/post-v1-files-upload-urls-response422.js +5 -0
- package/dist/types/post-v1-image-to-video-body-assets.d.ts +9 -0
- package/dist/types/post-v1-image-to-video-body-assets.js +5 -0
- package/dist/types/post-v1-image-to-video-body-style.d.ts +9 -0
- package/dist/types/post-v1-image-to-video-body-style.js +5 -0
- package/dist/types/post-v1-image-to-video-body.d.ts +27 -0
- package/dist/types/post-v1-image-to-video-body.js +5 -0
- package/dist/types/post-v1-image-to-video-response.d.ts +13 -0
- package/dist/types/post-v1-image-to-video-response.js +5 -0
- package/dist/types/post-v1-image-to-video-response400.d.ts +6 -0
- package/dist/types/post-v1-image-to-video-response400.js +5 -0
- package/dist/types/post-v1-image-to-video-response401-message-enum.d.ts +6 -0
- package/dist/types/post-v1-image-to-video-response401-message-enum.js +10 -0
- package/dist/types/post-v1-image-to-video-response401.d.ts +7 -0
- package/dist/types/post-v1-image-to-video-response401.js +5 -0
- package/dist/types/post-v1-image-to-video-response404-message-enum.d.ts +6 -0
- package/dist/types/post-v1-image-to-video-response404-message-enum.js +10 -0
- package/dist/types/post-v1-image-to-video-response404.d.ts +7 -0
- package/dist/types/post-v1-image-to-video-response404.js +5 -0
- package/dist/types/post-v1-image-to-video-response422.d.ts +6 -0
- package/dist/types/post-v1-image-to-video-response422.js +5 -0
- package/dist/types/post-v1-lip-sync-body-assets-video-source-enum.d.ts +7 -0
- package/dist/types/post-v1-lip-sync-body-assets-video-source-enum.js +11 -0
- package/dist/types/post-v1-lip-sync-body-assets.d.ts +19 -0
- package/dist/types/post-v1-lip-sync-body-assets.js +5 -0
- package/dist/types/post-v1-lip-sync-body.d.ts +30 -0
- package/dist/types/post-v1-lip-sync-body.js +5 -0
- package/dist/types/post-v1-lip-sync-response.d.ts +13 -0
- package/dist/types/post-v1-lip-sync-response.js +5 -0
- package/dist/types/post-v1-lip-sync-response400.d.ts +6 -0
- package/dist/types/post-v1-lip-sync-response400.js +5 -0
- package/dist/types/post-v1-lip-sync-response401-message-enum.d.ts +6 -0
- package/dist/types/post-v1-lip-sync-response401-message-enum.js +10 -0
- package/dist/types/post-v1-lip-sync-response401.d.ts +7 -0
- package/dist/types/post-v1-lip-sync-response401.js +5 -0
- package/dist/types/post-v1-lip-sync-response404-message-enum.d.ts +6 -0
- package/dist/types/post-v1-lip-sync-response404-message-enum.js +10 -0
- package/dist/types/post-v1-lip-sync-response404.d.ts +7 -0
- package/dist/types/post-v1-lip-sync-response404.js +5 -0
- package/dist/types/post-v1-lip-sync-response422.d.ts +6 -0
- package/dist/types/post-v1-lip-sync-response422.js +5 -0
- package/dist/types/post-v1-text-to-video-body-orientation-enum.d.ts +8 -0
- package/dist/types/post-v1-text-to-video-body-orientation-enum.js +12 -0
- package/dist/types/post-v1-text-to-video-body-style.d.ts +9 -0
- package/dist/types/post-v1-text-to-video-body-style.js +5 -0
- package/dist/types/post-v1-text-to-video-body.d.ts +19 -0
- package/dist/types/post-v1-text-to-video-body.js +5 -0
- package/dist/types/post-v1-text-to-video-response.d.ts +13 -0
- package/dist/types/post-v1-text-to-video-response.js +5 -0
- package/dist/types/post-v1-text-to-video-response400.d.ts +6 -0
- package/dist/types/post-v1-text-to-video-response400.js +5 -0
- package/dist/types/post-v1-text-to-video-response401-message-enum.d.ts +6 -0
- package/dist/types/post-v1-text-to-video-response401-message-enum.js +10 -0
- package/dist/types/post-v1-text-to-video-response401.d.ts +7 -0
- package/dist/types/post-v1-text-to-video-response401.js +5 -0
- package/dist/types/post-v1-text-to-video-response404-message-enum.d.ts +6 -0
- package/dist/types/post-v1-text-to-video-response404-message-enum.js +10 -0
- package/dist/types/post-v1-text-to-video-response404.d.ts +7 -0
- package/dist/types/post-v1-text-to-video-response404.js +5 -0
- package/dist/types/post-v1-text-to-video-response422.d.ts +6 -0
- package/dist/types/post-v1-text-to-video-response422.js +5 -0
- package/dist/types/post-v1-video-to-video-body-assets-video-source-enum.d.ts +7 -0
- package/dist/types/post-v1-video-to-video-body-assets-video-source-enum.js +11 -0
- package/dist/types/post-v1-video-to-video-body-assets.d.ts +15 -0
- package/dist/types/post-v1-video-to-video-body-assets.js +5 -0
- package/dist/types/post-v1-video-to-video-body-fps-resolution-enum.d.ts +7 -0
- package/dist/types/post-v1-video-to-video-body-fps-resolution-enum.js +11 -0
- package/dist/types/post-v1-video-to-video-body-style-art-style-enum.d.ts +64 -0
- package/dist/types/post-v1-video-to-video-body-style-art-style-enum.js +68 -0
- package/dist/types/post-v1-video-to-video-body-style-model-enum.d.ts +9 -0
- package/dist/types/post-v1-video-to-video-body-style-model-enum.js +13 -0
- package/dist/types/post-v1-video-to-video-body-style-prompt-type-enum.d.ts +8 -0
- package/dist/types/post-v1-video-to-video-body-style-prompt-type-enum.js +12 -0
- package/dist/types/post-v1-video-to-video-body-style-version-enum.d.ts +8 -0
- package/dist/types/post-v1-video-to-video-body-style-version-enum.js +12 -0
- package/dist/types/post-v1-video-to-video-body-style.d.ts +30 -0
- package/dist/types/post-v1-video-to-video-body-style.js +5 -0
- package/dist/types/post-v1-video-to-video-body.d.ts +37 -0
- package/dist/types/post-v1-video-to-video-body.js +5 -0
- package/dist/types/post-v1-video-to-video-response.d.ts +13 -0
- package/dist/types/post-v1-video-to-video-response.js +5 -0
- package/dist/types/post-v1-video-to-video-response400.d.ts +6 -0
- package/dist/types/post-v1-video-to-video-response400.js +5 -0
- package/dist/types/post-v1-video-to-video-response401-message-enum.d.ts +6 -0
- package/dist/types/post-v1-video-to-video-response401-message-enum.js +10 -0
- package/dist/types/post-v1-video-to-video-response401.d.ts +7 -0
- package/dist/types/post-v1-video-to-video-response401.js +5 -0
- package/dist/types/post-v1-video-to-video-response404-message-enum.d.ts +6 -0
- package/dist/types/post-v1-video-to-video-response404-message-enum.js +10 -0
- package/dist/types/post-v1-video-to-video-response404.d.ts +7 -0
- package/dist/types/post-v1-video-to-video-response404.js +5 -0
- package/dist/types/post-v1-video-to-video-response422.d.ts +6 -0
- package/dist/types/post-v1-video-to-video-response422.js +5 -0
- package/package.json +37 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UploadUrlsClient = void 0;
|
|
7
|
+
const core_1 = require("../../../../core");
|
|
8
|
+
class UploadUrlsClient extends core_1.CoreResourceClient {
|
|
9
|
+
constructor(client) {
|
|
10
|
+
super(client);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Create a list of urls used to upload the assets needed to generate a video. Each video type has their own requirements on what assets are required. Please refer to the specific mode API for more details. The response array will be in the same order as the request body.
|
|
14
|
+
*
|
|
15
|
+
* Below is the list of valid extensions for each asset type:
|
|
16
|
+
*
|
|
17
|
+
* - video: mp4, mov, webm
|
|
18
|
+
* - audio: mp3, mpeg, wav, aac, aiff, flac
|
|
19
|
+
* - image: png, jpg, jpeg, webp, avif, jp2, tiff, bmp
|
|
20
|
+
*
|
|
21
|
+
* Note: `.gif` is supported for face swap API `video_file_path` field.
|
|
22
|
+
*
|
|
23
|
+
* After receiving the upload url, you can upload the file by sending a PUT request with the header `'Content-Type: application/octet-stream'`.
|
|
24
|
+
*
|
|
25
|
+
* For example using curl
|
|
26
|
+
*
|
|
27
|
+
* ```
|
|
28
|
+
* curl -X PUT -H 'Content-Type: application/octet-stream' \
|
|
29
|
+
* --data '@/path/to/file/video.mp4' \
|
|
30
|
+
* https://videos.magichour.ai/api-assets/id/video.mp4?auth-value=1234567890
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
create(request, opts) {
|
|
35
|
+
return this._client.makeRequest({
|
|
36
|
+
method: "post",
|
|
37
|
+
path: "/v1/files/upload-urls",
|
|
38
|
+
auth: ["bearerAuth"],
|
|
39
|
+
contentType: "application/json",
|
|
40
|
+
body: request.data,
|
|
41
|
+
responseType: "json",
|
|
42
|
+
opts,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.UploadUrlsClient = UploadUrlsClient;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ImageProjectsClient = void 0;
|
|
7
|
+
var resource_client_1 = require("./resource-client");
|
|
8
|
+
Object.defineProperty(exports, "ImageProjectsClient", { enumerable: true, get: function () { return resource_client_1.ImageProjectsClient; } });
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../../../index.js";
|
|
5
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
|
|
6
|
+
import * as requests from "../../../resources/v1/image-projects/request-types";
|
|
7
|
+
export declare class ImageProjectsClient extends CoreResourceClient {
|
|
8
|
+
constructor(client: CoreClient);
|
|
9
|
+
/**
|
|
10
|
+
* Get the details of a image project. The `download` field will be `null` unless the image was successfully rendered.
|
|
11
|
+
*
|
|
12
|
+
* The image can be one of the following status
|
|
13
|
+
* - `draft` - not currently used
|
|
14
|
+
* - `queued` - the job is queued and waiting for a GPU
|
|
15
|
+
* - `rendering` - the generation is in progress
|
|
16
|
+
* - `complete` - the image is successful created
|
|
17
|
+
* - `error` - an error occurred during rendering
|
|
18
|
+
* - `canceled` - image render is canceled by the user
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.GetV1ImageProjectsIdResponse>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ImageProjectsClient = void 0;
|
|
7
|
+
const core_1 = require("../../../core");
|
|
8
|
+
class ImageProjectsClient extends core_1.CoreResourceClient {
|
|
9
|
+
constructor(client) {
|
|
10
|
+
super(client);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Get the details of a image project. The `download` field will be `null` unless the image was successfully rendered.
|
|
14
|
+
*
|
|
15
|
+
* The image can be one of the following status
|
|
16
|
+
* - `draft` - not currently used
|
|
17
|
+
* - `queued` - the job is queued and waiting for a GPU
|
|
18
|
+
* - `rendering` - the generation is in progress
|
|
19
|
+
* - `complete` - the image is successful created
|
|
20
|
+
* - `error` - an error occurred during rendering
|
|
21
|
+
* - `canceled` - image render is canceled by the user
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
get(request, opts) {
|
|
25
|
+
return this._client.makeRequest({
|
|
26
|
+
method: "get",
|
|
27
|
+
path: `/v1/image-projects/${request.id}`,
|
|
28
|
+
auth: ["bearerAuth"],
|
|
29
|
+
responseType: "json",
|
|
30
|
+
opts,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.ImageProjectsClient = ImageProjectsClient;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ImageToVideoClient = void 0;
|
|
7
|
+
var resource_client_1 = require("./resource-client");
|
|
8
|
+
Object.defineProperty(exports, "ImageToVideoClient", { enumerable: true, get: function () { return resource_client_1.ImageToVideoClient; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../../../index.js";
|
|
5
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
|
|
6
|
+
import * as requests from "../../../resources/v1/image-to-video/request-types";
|
|
7
|
+
export declare class ImageToVideoClient extends CoreResourceClient {
|
|
8
|
+
constructor(client: CoreClient);
|
|
9
|
+
/**
|
|
10
|
+
* Create a Image To Video video. The estimated frame cost is calculated using 30 FPS. This amount is deducted from your account balance when a video is queued. Once the video is complete, the cost will be updated based on the actual number of frames rendered.
|
|
11
|
+
*
|
|
12
|
+
* Get more information about this mode at our [product page](/products/image-to-video).
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1ImageToVideoResponse>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ImageToVideoClient = void 0;
|
|
7
|
+
const core_1 = require("../../../core");
|
|
8
|
+
class ImageToVideoClient extends core_1.CoreResourceClient {
|
|
9
|
+
constructor(client) {
|
|
10
|
+
super(client);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Create a Image To Video video. The estimated frame cost is calculated using 30 FPS. This amount is deducted from your account balance when a video is queued. Once the video is complete, the cost will be updated based on the actual number of frames rendered.
|
|
14
|
+
*
|
|
15
|
+
* Get more information about this mode at our [product page](/products/image-to-video).
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
create(request, opts) {
|
|
19
|
+
return this._client.makeRequest({
|
|
20
|
+
method: "post",
|
|
21
|
+
path: "/v1/image-to-video",
|
|
22
|
+
auth: ["bearerAuth"],
|
|
23
|
+
contentType: "application/json",
|
|
24
|
+
body: request.data,
|
|
25
|
+
responseType: "json",
|
|
26
|
+
opts,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ImageToVideoClient = ImageToVideoClient;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
export * as aiImageGenerator from "./ai-image-generator";
|
|
5
|
+
export * as faceSwap from "./face-swap";
|
|
6
|
+
export * as faceSwapPhoto from "./face-swap-photo";
|
|
7
|
+
export * as files from "./files";
|
|
8
|
+
export * as imageProjects from "./image-projects";
|
|
9
|
+
export * as imageToVideo from "./image-to-video";
|
|
10
|
+
export * as lipSync from "./lip-sync";
|
|
11
|
+
export { V1Client } from "./resource-client";
|
|
12
|
+
export * as textToVideo from "./text-to-video";
|
|
13
|
+
export * as videoProjects from "./video-projects";
|
|
14
|
+
export * as videoToVideo from "./video-to-video";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.videoToVideo = exports.videoProjects = exports.textToVideo = exports.V1Client = exports.lipSync = exports.imageToVideo = exports.imageProjects = exports.files = exports.faceSwapPhoto = exports.faceSwap = exports.aiImageGenerator = void 0;
|
|
30
|
+
exports.aiImageGenerator = __importStar(require("./ai-image-generator"));
|
|
31
|
+
exports.faceSwap = __importStar(require("./face-swap"));
|
|
32
|
+
exports.faceSwapPhoto = __importStar(require("./face-swap-photo"));
|
|
33
|
+
exports.files = __importStar(require("./files"));
|
|
34
|
+
exports.imageProjects = __importStar(require("./image-projects"));
|
|
35
|
+
exports.imageToVideo = __importStar(require("./image-to-video"));
|
|
36
|
+
exports.lipSync = __importStar(require("./lip-sync"));
|
|
37
|
+
var resource_client_1 = require("./resource-client");
|
|
38
|
+
Object.defineProperty(exports, "V1Client", { enumerable: true, get: function () { return resource_client_1.V1Client; } });
|
|
39
|
+
exports.textToVideo = __importStar(require("./text-to-video"));
|
|
40
|
+
exports.videoProjects = __importStar(require("./video-projects"));
|
|
41
|
+
exports.videoToVideo = __importStar(require("./video-to-video"));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.LipSyncClient = void 0;
|
|
7
|
+
var resource_client_1 = require("./resource-client");
|
|
8
|
+
Object.defineProperty(exports, "LipSyncClient", { enumerable: true, get: function () { return resource_client_1.LipSyncClient; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../../../index.js";
|
|
5
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
|
|
6
|
+
import * as requests from "../../../resources/v1/lip-sync/request-types";
|
|
7
|
+
export declare class LipSyncClient extends CoreResourceClient {
|
|
8
|
+
constructor(client: CoreClient);
|
|
9
|
+
/**
|
|
10
|
+
* Create a Lip Sync video. The estimated frame cost is calculated using 30 FPS. This amount is deducted from your account balance when a video is queued. Once the video is complete, the cost will be updated based on the actual number of frames rendered.
|
|
11
|
+
*
|
|
12
|
+
* Get more information about this mode at our [product page](/products/lip-sync).
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1LipSyncResponse>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.LipSyncClient = void 0;
|
|
7
|
+
const core_1 = require("../../../core");
|
|
8
|
+
class LipSyncClient extends core_1.CoreResourceClient {
|
|
9
|
+
constructor(client) {
|
|
10
|
+
super(client);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Create a Lip Sync video. The estimated frame cost is calculated using 30 FPS. This amount is deducted from your account balance when a video is queued. Once the video is complete, the cost will be updated based on the actual number of frames rendered.
|
|
14
|
+
*
|
|
15
|
+
* Get more information about this mode at our [product page](/products/lip-sync).
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
create(request, opts) {
|
|
19
|
+
return this._client.makeRequest({
|
|
20
|
+
method: "post",
|
|
21
|
+
path: "/v1/lip-sync",
|
|
22
|
+
auth: ["bearerAuth"],
|
|
23
|
+
contentType: "application/json",
|
|
24
|
+
body: request.data,
|
|
25
|
+
responseType: "json",
|
|
26
|
+
opts,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.LipSyncClient = LipSyncClient;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { CoreClient, CoreResourceClient } from "../../core";
|
|
5
|
+
import { AiImageGeneratorClient } from "../../resources/v1/ai-image-generator";
|
|
6
|
+
import { FaceSwapClient } from "../../resources/v1/face-swap";
|
|
7
|
+
import { FaceSwapPhotoClient } from "../../resources/v1/face-swap-photo";
|
|
8
|
+
import { FilesClient } from "../../resources/v1/files";
|
|
9
|
+
import { ImageProjectsClient } from "../../resources/v1/image-projects";
|
|
10
|
+
import { ImageToVideoClient } from "../../resources/v1/image-to-video";
|
|
11
|
+
import { LipSyncClient } from "../../resources/v1/lip-sync";
|
|
12
|
+
import { TextToVideoClient } from "../../resources/v1/text-to-video";
|
|
13
|
+
import { VideoProjectsClient } from "../../resources/v1/video-projects";
|
|
14
|
+
import { VideoToVideoClient } from "../../resources/v1/video-to-video";
|
|
15
|
+
export declare class V1Client extends CoreResourceClient {
|
|
16
|
+
imageProjects: ImageProjectsClient;
|
|
17
|
+
videoProjects: VideoProjectsClient;
|
|
18
|
+
aiImageGenerator: AiImageGeneratorClient;
|
|
19
|
+
faceSwap: FaceSwapClient;
|
|
20
|
+
faceSwapPhoto: FaceSwapPhotoClient;
|
|
21
|
+
files: FilesClient;
|
|
22
|
+
imageToVideo: ImageToVideoClient;
|
|
23
|
+
lipSync: LipSyncClient;
|
|
24
|
+
textToVideo: TextToVideoClient;
|
|
25
|
+
videoToVideo: VideoToVideoClient;
|
|
26
|
+
constructor(client: CoreClient);
|
|
27
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.V1Client = void 0;
|
|
7
|
+
const core_1 = require("../../core");
|
|
8
|
+
const ai_image_generator_1 = require("../../resources/v1/ai-image-generator");
|
|
9
|
+
const face_swap_1 = require("../../resources/v1/face-swap");
|
|
10
|
+
const face_swap_photo_1 = require("../../resources/v1/face-swap-photo");
|
|
11
|
+
const files_1 = require("../../resources/v1/files");
|
|
12
|
+
const image_projects_1 = require("../../resources/v1/image-projects");
|
|
13
|
+
const image_to_video_1 = require("../../resources/v1/image-to-video");
|
|
14
|
+
const lip_sync_1 = require("../../resources/v1/lip-sync");
|
|
15
|
+
const text_to_video_1 = require("../../resources/v1/text-to-video");
|
|
16
|
+
const video_projects_1 = require("../../resources/v1/video-projects");
|
|
17
|
+
const video_to_video_1 = require("../../resources/v1/video-to-video");
|
|
18
|
+
class V1Client extends core_1.CoreResourceClient {
|
|
19
|
+
constructor(client) {
|
|
20
|
+
super(client);
|
|
21
|
+
this.imageProjects = new image_projects_1.ImageProjectsClient(this._client);
|
|
22
|
+
this.videoProjects = new video_projects_1.VideoProjectsClient(this._client);
|
|
23
|
+
this.aiImageGenerator = new ai_image_generator_1.AiImageGeneratorClient(this._client);
|
|
24
|
+
this.faceSwap = new face_swap_1.FaceSwapClient(this._client);
|
|
25
|
+
this.faceSwapPhoto = new face_swap_photo_1.FaceSwapPhotoClient(this._client);
|
|
26
|
+
this.files = new files_1.FilesClient(this._client);
|
|
27
|
+
this.imageToVideo = new image_to_video_1.ImageToVideoClient(this._client);
|
|
28
|
+
this.lipSync = new lip_sync_1.LipSyncClient(this._client);
|
|
29
|
+
this.textToVideo = new text_to_video_1.TextToVideoClient(this._client);
|
|
30
|
+
this.videoToVideo = new video_to_video_1.VideoToVideoClient(this._client);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.V1Client = V1Client;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TextToVideoClient = void 0;
|
|
7
|
+
var resource_client_1 = require("./resource-client");
|
|
8
|
+
Object.defineProperty(exports, "TextToVideoClient", { enumerable: true, get: function () { return resource_client_1.TextToVideoClient; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../../../index.js";
|
|
5
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
|
|
6
|
+
import * as requests from "../../../resources/v1/text-to-video/request-types";
|
|
7
|
+
export declare class TextToVideoClient extends CoreResourceClient {
|
|
8
|
+
constructor(client: CoreClient);
|
|
9
|
+
/**
|
|
10
|
+
* Create a Text To Video video. The estimated frame cost is calculated using 30 FPS. This amount is deducted from your account balance when a video is queued. Once the video is complete, the cost will be updated based on the actual number of frames rendered.
|
|
11
|
+
*
|
|
12
|
+
* Get more information about this mode at our [product page](/products/text-to-video).
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1TextToVideoResponse>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TextToVideoClient = void 0;
|
|
7
|
+
const core_1 = require("../../../core");
|
|
8
|
+
class TextToVideoClient extends core_1.CoreResourceClient {
|
|
9
|
+
constructor(client) {
|
|
10
|
+
super(client);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Create a Text To Video video. The estimated frame cost is calculated using 30 FPS. This amount is deducted from your account balance when a video is queued. Once the video is complete, the cost will be updated based on the actual number of frames rendered.
|
|
14
|
+
*
|
|
15
|
+
* Get more information about this mode at our [product page](/products/text-to-video).
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
create(request, opts) {
|
|
19
|
+
return this._client.makeRequest({
|
|
20
|
+
method: "post",
|
|
21
|
+
path: "/v1/text-to-video",
|
|
22
|
+
auth: ["bearerAuth"],
|
|
23
|
+
contentType: "application/json",
|
|
24
|
+
body: request.data,
|
|
25
|
+
responseType: "json",
|
|
26
|
+
opts,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.TextToVideoClient = TextToVideoClient;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.VideoProjectsClient = void 0;
|
|
7
|
+
var resource_client_1 = require("./resource-client");
|
|
8
|
+
Object.defineProperty(exports, "VideoProjectsClient", { enumerable: true, get: function () { return resource_client_1.VideoProjectsClient; } });
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../../../index.js";
|
|
5
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
|
|
6
|
+
import * as requests from "../../../resources/v1/video-projects/request-types";
|
|
7
|
+
export declare class VideoProjectsClient extends CoreResourceClient {
|
|
8
|
+
constructor(client: CoreClient);
|
|
9
|
+
/**
|
|
10
|
+
* Get the details of a video project. The `download` field will be `null` unless the video was successfully rendered.
|
|
11
|
+
*
|
|
12
|
+
* The video can be one of the following status
|
|
13
|
+
* - `draft` - not currently used
|
|
14
|
+
* - `queued` - the job is queued and waiting for a GPU
|
|
15
|
+
* - `rendering` - the generation is in progress
|
|
16
|
+
* - `complete` - the video is successful created
|
|
17
|
+
* - `error` - an error occurred during rendering
|
|
18
|
+
* - `canceled` - video render is canceled by the user
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.GetV1VideoProjectsIdResponse>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.VideoProjectsClient = void 0;
|
|
7
|
+
const core_1 = require("../../../core");
|
|
8
|
+
class VideoProjectsClient extends core_1.CoreResourceClient {
|
|
9
|
+
constructor(client) {
|
|
10
|
+
super(client);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Get the details of a video project. The `download` field will be `null` unless the video was successfully rendered.
|
|
14
|
+
*
|
|
15
|
+
* The video can be one of the following status
|
|
16
|
+
* - `draft` - not currently used
|
|
17
|
+
* - `queued` - the job is queued and waiting for a GPU
|
|
18
|
+
* - `rendering` - the generation is in progress
|
|
19
|
+
* - `complete` - the video is successful created
|
|
20
|
+
* - `error` - an error occurred during rendering
|
|
21
|
+
* - `canceled` - video render is canceled by the user
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
get(request, opts) {
|
|
25
|
+
return this._client.makeRequest({
|
|
26
|
+
method: "get",
|
|
27
|
+
path: `/v1/video-projects/${request.id}`,
|
|
28
|
+
auth: ["bearerAuth"],
|
|
29
|
+
responseType: "json",
|
|
30
|
+
opts,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.VideoProjectsClient = VideoProjectsClient;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by Sideko (sideko.dev)
|
|
4
|
+
**/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.VideoToVideoClient = void 0;
|
|
7
|
+
var resource_client_1 = require("./resource-client");
|
|
8
|
+
Object.defineProperty(exports, "VideoToVideoClient", { enumerable: true, get: function () { return resource_client_1.VideoToVideoClient; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../../../index.js";
|
|
5
|
+
import { ApiPromise, CoreClient, CoreResourceClient, RequestOptions } from "../../../core";
|
|
6
|
+
import * as requests from "../../../resources/v1/video-to-video/request-types";
|
|
7
|
+
export declare class VideoToVideoClient extends CoreResourceClient {
|
|
8
|
+
constructor(client: CoreClient);
|
|
9
|
+
/**
|
|
10
|
+
* Create a Video To Video video. The estimated frame cost is calculated using 30 FPS. This amount is deducted from your account balance when a video is queued. Once the video is complete, the cost will be updated based on the actual number of frames rendered.
|
|
11
|
+
*
|
|
12
|
+
* Get more information about this mode at our [product page](/products/video-to-video).
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1VideoToVideoResponse>;
|
|
16
|
+
}
|