magic-hour 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +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 +0 -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 +0 -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 +1 -4
- 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 +3 -7
- 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 +2 -5
- 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/README.md
CHANGED
|
@@ -36,17 +36,21 @@ const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
|
36
36
|
|
|
37
37
|
## Module Documentation and Snippets
|
|
38
38
|
|
|
39
|
+
### [v1.ai_clothes_changer](src/resources/v1/ai-clothes-changer/README.md)
|
|
40
|
+
|
|
41
|
+
* [create](src/resources/v1/ai-clothes-changer/README.md#create) - AI Clothes Changer
|
|
42
|
+
|
|
39
43
|
### [v1.ai_headshot_generator](src/resources/v1/ai-headshot-generator/README.md)
|
|
40
44
|
|
|
41
|
-
* [create](src/resources/v1/ai-headshot-generator/README.md#create) -
|
|
45
|
+
* [create](src/resources/v1/ai-headshot-generator/README.md#create) - AI Headshots
|
|
42
46
|
|
|
43
47
|
### [v1.ai_image_generator](src/resources/v1/ai-image-generator/README.md)
|
|
44
48
|
|
|
45
|
-
* [create](src/resources/v1/ai-image-generator/README.md#create) -
|
|
49
|
+
* [create](src/resources/v1/ai-image-generator/README.md#create) - AI Images
|
|
46
50
|
|
|
47
51
|
### [v1.ai_image_upscaler](src/resources/v1/ai-image-upscaler/README.md)
|
|
48
52
|
|
|
49
|
-
* [create](src/resources/v1/ai-image-upscaler/README.md#create) -
|
|
53
|
+
* [create](src/resources/v1/ai-image-upscaler/README.md#create) - AI Image Upscaler
|
|
50
54
|
|
|
51
55
|
### [v1.ai_photo_editor](src/resources/v1/ai-photo-editor/README.md)
|
|
52
56
|
|
|
@@ -54,19 +58,19 @@ const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
|
54
58
|
|
|
55
59
|
### [v1.ai_qr_code_generator](src/resources/v1/ai-qr-code-generator/README.md)
|
|
56
60
|
|
|
57
|
-
* [create](src/resources/v1/ai-qr-code-generator/README.md#create) -
|
|
61
|
+
* [create](src/resources/v1/ai-qr-code-generator/README.md#create) - AI QR Code
|
|
58
62
|
|
|
59
63
|
### [v1.animation](src/resources/v1/animation/README.md)
|
|
60
64
|
|
|
61
|
-
* [create](src/resources/v1/animation/README.md#create) -
|
|
65
|
+
* [create](src/resources/v1/animation/README.md#create) - Animation
|
|
62
66
|
|
|
63
67
|
### [v1.face_swap](src/resources/v1/face-swap/README.md)
|
|
64
68
|
|
|
65
|
-
* [create](src/resources/v1/face-swap/README.md#create) -
|
|
69
|
+
* [create](src/resources/v1/face-swap/README.md#create) - Face Swap video
|
|
66
70
|
|
|
67
71
|
### [v1.face_swap_photo](src/resources/v1/face-swap-photo/README.md)
|
|
68
72
|
|
|
69
|
-
* [create](src/resources/v1/face-swap-photo/README.md#create) -
|
|
73
|
+
* [create](src/resources/v1/face-swap-photo/README.md#create) - Face Swap Photo
|
|
70
74
|
|
|
71
75
|
### [v1.files.upload_urls](src/resources/v1/files/upload-urls/README.md)
|
|
72
76
|
|
|
@@ -83,15 +87,15 @@ const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
|
83
87
|
|
|
84
88
|
### [v1.image_to_video](src/resources/v1/image-to-video/README.md)
|
|
85
89
|
|
|
86
|
-
* [create](src/resources/v1/image-to-video/README.md#create) -
|
|
90
|
+
* [create](src/resources/v1/image-to-video/README.md#create) - Image-to-Video
|
|
87
91
|
|
|
88
92
|
### [v1.lip_sync](src/resources/v1/lip-sync/README.md)
|
|
89
93
|
|
|
90
|
-
* [create](src/resources/v1/lip-sync/README.md#create) -
|
|
94
|
+
* [create](src/resources/v1/lip-sync/README.md#create) - Lip Sync
|
|
91
95
|
|
|
92
96
|
### [v1.text_to_video](src/resources/v1/text-to-video/README.md)
|
|
93
97
|
|
|
94
|
-
* [create](src/resources/v1/text-to-video/README.md#create) -
|
|
98
|
+
* [create](src/resources/v1/text-to-video/README.md#create) - Text-to-Video
|
|
95
99
|
|
|
96
100
|
### [v1.video_projects](src/resources/v1/video-projects/README.md)
|
|
97
101
|
|
|
@@ -100,6 +104,6 @@ const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
|
100
104
|
|
|
101
105
|
### [v1.video_to_video](src/resources/v1/video-to-video/README.md)
|
|
102
106
|
|
|
103
|
-
* [create](src/resources/v1/video-to-video/README.md#create) -
|
|
107
|
+
* [create](src/resources/v1/video-to-video/README.md#create) - Video-to-Video
|
|
104
108
|
|
|
105
109
|
<!-- MODULE DOCS END -->
|
package/dist/client.d.ts
CHANGED
package/dist/client.js
CHANGED
package/dist/core/api-error.d.ts
CHANGED
package/dist/core/api-error.js
CHANGED
package/dist/core/api-promise.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by Sideko (sideko.dev)
|
|
4
|
-
**/
|
|
5
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
7
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
package/dist/core/auth.d.ts
CHANGED
|
@@ -1,36 +1,91 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Sideko (sideko.dev)
|
|
3
|
-
**/
|
|
4
1
|
import { RequestConfig } from "./core-client";
|
|
5
2
|
export interface AuthProvider {
|
|
6
|
-
applyAuth(cfg: RequestConfig)
|
|
3
|
+
applyAuth: (cfg: RequestConfig) => Promise<RequestConfig>;
|
|
4
|
+
setValue: (val?: string | undefined) => void;
|
|
7
5
|
}
|
|
8
6
|
export declare class AuthBasic implements AuthProvider {
|
|
9
7
|
username: string | null;
|
|
10
8
|
password: string | null;
|
|
11
9
|
constructor(username?: string, password?: string);
|
|
12
|
-
applyAuth(cfg: RequestConfig): RequestConfig
|
|
10
|
+
applyAuth(cfg: RequestConfig): Promise<RequestConfig>;
|
|
11
|
+
setValue(val?: string | undefined): void;
|
|
13
12
|
}
|
|
14
13
|
export declare class AuthBearer implements AuthProvider {
|
|
15
14
|
token: string | null;
|
|
16
15
|
constructor(token?: string);
|
|
17
|
-
applyAuth(cfg: RequestConfig): RequestConfig
|
|
16
|
+
applyAuth(cfg: RequestConfig): Promise<RequestConfig>;
|
|
17
|
+
setValue(val?: string | undefined): void;
|
|
18
18
|
}
|
|
19
19
|
export declare class AuthKeyQuery implements AuthProvider {
|
|
20
20
|
name: string;
|
|
21
21
|
key: string | null;
|
|
22
22
|
constructor(name: string, key?: string);
|
|
23
|
-
applyAuth(cfg: RequestConfig): RequestConfig
|
|
23
|
+
applyAuth(cfg: RequestConfig): Promise<RequestConfig>;
|
|
24
|
+
setValue(val?: string | undefined): void;
|
|
24
25
|
}
|
|
25
26
|
export declare class AuthKeyHeader implements AuthProvider {
|
|
26
27
|
name: string;
|
|
27
28
|
key: string | null;
|
|
28
29
|
constructor(name: string, key?: string);
|
|
29
|
-
applyAuth(cfg: RequestConfig): RequestConfig
|
|
30
|
+
applyAuth(cfg: RequestConfig): Promise<RequestConfig>;
|
|
31
|
+
setValue(val?: string | undefined): void;
|
|
30
32
|
}
|
|
31
33
|
export declare class AuthCookieHeader implements AuthProvider {
|
|
32
34
|
name: string;
|
|
33
35
|
key: string | null;
|
|
34
36
|
constructor(name: string, key?: string);
|
|
35
|
-
applyAuth(cfg: RequestConfig): RequestConfig
|
|
37
|
+
applyAuth(cfg: RequestConfig): Promise<RequestConfig>;
|
|
38
|
+
setValue(val?: string | undefined): void;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* OAuth2 authentication props for a password flow
|
|
42
|
+
*
|
|
43
|
+
* Details:
|
|
44
|
+
* https://datatracker.ietf.org/doc/html/rfc6749#section-4.3
|
|
45
|
+
*/
|
|
46
|
+
export type OAuth2PasswordProps = {
|
|
47
|
+
username: string;
|
|
48
|
+
password: string;
|
|
49
|
+
clientId?: string | undefined;
|
|
50
|
+
clientSecret?: string | undefined;
|
|
51
|
+
grantType?: "password" | string | undefined;
|
|
52
|
+
scope?: string[] | undefined;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* OAuth2 authentication props for a client credentials flow
|
|
56
|
+
*
|
|
57
|
+
* Details:
|
|
58
|
+
* https://datatracker.ietf.org/doc/html/rfc6749#section-4.4
|
|
59
|
+
*/
|
|
60
|
+
export type OAuth2ClientCredentialsProps = {
|
|
61
|
+
clientId: string;
|
|
62
|
+
clientSecret: string;
|
|
63
|
+
grantType?: "client_credentials" | string | undefined;
|
|
64
|
+
scope?: string[] | undefined;
|
|
65
|
+
};
|
|
66
|
+
export type OAuth2ProviderProps = {
|
|
67
|
+
tokenUrl: string;
|
|
68
|
+
accessTokenPointer: string;
|
|
69
|
+
expiresInPointer: string;
|
|
70
|
+
credentialsLocation: "request_body" | "basic_authorization_header";
|
|
71
|
+
bodyContent: "form" | "json";
|
|
72
|
+
requestMutator: AuthProvider;
|
|
73
|
+
username?: string | undefined;
|
|
74
|
+
password?: string | undefined;
|
|
75
|
+
clientId?: string | undefined;
|
|
76
|
+
clientSecret?: string | undefined;
|
|
77
|
+
grantType: "password" | "client_credentials" | string;
|
|
78
|
+
scope?: string[] | undefined;
|
|
79
|
+
};
|
|
80
|
+
export declare class OAuth2 implements AuthProvider {
|
|
81
|
+
props: OAuth2ProviderProps;
|
|
82
|
+
accessToken?: string | undefined;
|
|
83
|
+
expiresAt?: Date;
|
|
84
|
+
constructor(props: OAuth2ProviderProps);
|
|
85
|
+
refresh(): Promise<{
|
|
86
|
+
accessToken: string;
|
|
87
|
+
expiresAt: Date;
|
|
88
|
+
}>;
|
|
89
|
+
applyAuth(cfg: RequestConfig): Promise<RequestConfig>;
|
|
90
|
+
setValue(val?: string | undefined): void;
|
|
36
91
|
}
|
package/dist/core/auth.js
CHANGED
|
@@ -1,15 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
36
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
37
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
38
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
39
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
40
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
41
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
|
+
});
|
|
43
|
+
};
|
|
5
44
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
46
|
};
|
|
8
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.AuthCookieHeader = exports.AuthKeyHeader = exports.AuthKeyQuery = exports.AuthBearer = exports.AuthBasic = void 0;
|
|
48
|
+
exports.OAuth2 = exports.AuthCookieHeader = exports.AuthKeyHeader = exports.AuthKeyQuery = exports.AuthBearer = exports.AuthBasic = void 0;
|
|
10
49
|
const qs_1 = __importDefault(require("qs"));
|
|
50
|
+
const form_urlencoded_1 = __importDefault(require("form-urlencoded"));
|
|
11
51
|
const js_base64_1 = require("js-base64");
|
|
52
|
+
const jsonpointer = __importStar(require("jsonpointer"));
|
|
12
53
|
const runtime_1 = require("./runtime");
|
|
54
|
+
const api_error_1 = require("./api-error");
|
|
13
55
|
const AUTHORIZATION = "Authorization";
|
|
14
56
|
const COOKIE = "Cookie";
|
|
15
57
|
class AuthBasic {
|
|
@@ -18,14 +60,19 @@ class AuthBasic {
|
|
|
18
60
|
this.password = password !== null && password !== void 0 ? password : null;
|
|
19
61
|
}
|
|
20
62
|
applyAuth(cfg) {
|
|
21
|
-
|
|
22
|
-
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
var _a;
|
|
23
65
|
const headers = (_a = cfg.headers) !== null && _a !== void 0 ? _a : {};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
66
|
+
if (this.username !== null && this.password !== null) {
|
|
67
|
+
const encoded = (0, js_base64_1.toBase64)(`${this.username}:${this.password}`);
|
|
68
|
+
cfg.headers = headers;
|
|
69
|
+
headers[AUTHORIZATION] = `Basic ${encoded}`;
|
|
70
|
+
}
|
|
71
|
+
return cfg;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
setValue(val) {
|
|
75
|
+
this.username = val !== null && val !== void 0 ? val : null;
|
|
29
76
|
}
|
|
30
77
|
}
|
|
31
78
|
exports.AuthBasic = AuthBasic;
|
|
@@ -34,13 +81,18 @@ class AuthBearer {
|
|
|
34
81
|
this.token = token !== null && token !== void 0 ? token : null;
|
|
35
82
|
}
|
|
36
83
|
applyAuth(cfg) {
|
|
37
|
-
|
|
38
|
-
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
var _a;
|
|
39
86
|
const headers = (_a = cfg.headers) !== null && _a !== void 0 ? _a : {};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
87
|
+
if (this.token !== null) {
|
|
88
|
+
cfg.headers = headers;
|
|
89
|
+
headers[AUTHORIZATION] = `Bearer ${this.token}`;
|
|
90
|
+
}
|
|
91
|
+
return cfg;
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
setValue(val) {
|
|
95
|
+
this.token = val !== null && val !== void 0 ? val : null;
|
|
44
96
|
}
|
|
45
97
|
}
|
|
46
98
|
exports.AuthBearer = AuthBearer;
|
|
@@ -50,13 +102,18 @@ class AuthKeyQuery {
|
|
|
50
102
|
this.key = key !== null && key !== void 0 ? key : null;
|
|
51
103
|
}
|
|
52
104
|
applyAuth(cfg) {
|
|
53
|
-
|
|
54
|
-
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
var _a;
|
|
55
107
|
const query = (_a = cfg.query) !== null && _a !== void 0 ? _a : [];
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
108
|
+
if (this.key !== null) {
|
|
109
|
+
cfg.query = query;
|
|
110
|
+
query.push(qs_1.default.stringify({ [this.name]: this.key }));
|
|
111
|
+
}
|
|
112
|
+
return cfg;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
setValue(val) {
|
|
116
|
+
this.key = val !== null && val !== void 0 ? val : null;
|
|
60
117
|
}
|
|
61
118
|
}
|
|
62
119
|
exports.AuthKeyQuery = AuthKeyQuery;
|
|
@@ -66,13 +123,18 @@ class AuthKeyHeader {
|
|
|
66
123
|
this.key = key !== null && key !== void 0 ? key : null;
|
|
67
124
|
}
|
|
68
125
|
applyAuth(cfg) {
|
|
69
|
-
|
|
70
|
-
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
var _a;
|
|
71
128
|
const headers = (_a = cfg.headers) !== null && _a !== void 0 ? _a : {};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
129
|
+
if (this.key !== null) {
|
|
130
|
+
cfg.headers = headers;
|
|
131
|
+
headers[this.name] = this.key;
|
|
132
|
+
}
|
|
133
|
+
return cfg;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
setValue(val) {
|
|
137
|
+
this.key = val !== null && val !== void 0 ? val : null;
|
|
76
138
|
}
|
|
77
139
|
}
|
|
78
140
|
exports.AuthKeyHeader = AuthKeyHeader;
|
|
@@ -82,17 +144,104 @@ class AuthCookieHeader {
|
|
|
82
144
|
this.key = key !== null && key !== void 0 ? key : null;
|
|
83
145
|
}
|
|
84
146
|
applyAuth(cfg) {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
var _a, _b;
|
|
149
|
+
if (runtime_1.RUNTIME.type === "browser") {
|
|
150
|
+
cfg.withCredentials = true;
|
|
151
|
+
}
|
|
152
|
+
else if (this.key !== null) {
|
|
153
|
+
const headers = (_a = cfg.headers) !== null && _a !== void 0 ? _a : {};
|
|
154
|
+
const cookies = (_b = headers[COOKIE]) !== null && _b !== void 0 ? _b : "";
|
|
155
|
+
headers[COOKIE] = `${cookies.length > 0 ? ";" : ""}${this.name}=${this.key}`;
|
|
156
|
+
cfg.headers = headers;
|
|
157
|
+
}
|
|
158
|
+
return cfg;
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
setValue(val) {
|
|
162
|
+
this.key = val !== null && val !== void 0 ? val : null;
|
|
96
163
|
}
|
|
97
164
|
}
|
|
98
165
|
exports.AuthCookieHeader = AuthCookieHeader;
|
|
166
|
+
class OAuth2 {
|
|
167
|
+
constructor(props) {
|
|
168
|
+
this.props = props;
|
|
169
|
+
}
|
|
170
|
+
refresh() {
|
|
171
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
172
|
+
const { tokenUrl, username, password, clientId, clientSecret, scope, grantType, credentialsLocation, bodyContent, accessTokenPointer, expiresInPointer, } = this.props;
|
|
173
|
+
const reqHeaders = {};
|
|
174
|
+
const reqData = {
|
|
175
|
+
grant_type: grantType,
|
|
176
|
+
};
|
|
177
|
+
// Add client credentials
|
|
178
|
+
if (typeof clientId !== "undefined" &&
|
|
179
|
+
typeof clientSecret !== "undefined") {
|
|
180
|
+
if (credentialsLocation === "basic_authorization_header") {
|
|
181
|
+
const encoded = (0, js_base64_1.toBase64)(`${clientId}:${clientSecret}`);
|
|
182
|
+
reqHeaders[AUTHORIZATION] = `Basic ${encoded}`;
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
reqData["client_id"] = clientId;
|
|
186
|
+
reqData["client_secret"] = clientSecret;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
if (typeof username !== "undefined") {
|
|
190
|
+
reqData["username"] = username;
|
|
191
|
+
}
|
|
192
|
+
if (typeof password !== "undefined") {
|
|
193
|
+
reqData["password"] = password;
|
|
194
|
+
}
|
|
195
|
+
if (typeof scope !== "undefined") {
|
|
196
|
+
reqData["scope"] = scope.join(" ");
|
|
197
|
+
}
|
|
198
|
+
const reqInit = { method: "POST" };
|
|
199
|
+
if (bodyContent === "form") {
|
|
200
|
+
reqInit.body = (0, form_urlencoded_1.default)(reqData);
|
|
201
|
+
reqHeaders["content-type"] = "application/x-www-form-urlencoded";
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
reqInit.body = JSON.stringify(reqData);
|
|
205
|
+
reqHeaders["content-type"] = "application/json";
|
|
206
|
+
}
|
|
207
|
+
reqInit.headers = reqHeaders;
|
|
208
|
+
const fetcherFn = runtime_1.RUNTIME.type === "node" || typeof fetch !== "function"
|
|
209
|
+
? require("node-fetch").default
|
|
210
|
+
: fetch;
|
|
211
|
+
const tokenRes = yield fetcherFn(tokenUrl, reqInit);
|
|
212
|
+
if (!tokenRes.ok) {
|
|
213
|
+
throw new api_error_1.ApiError({
|
|
214
|
+
method: "post",
|
|
215
|
+
path: tokenUrl,
|
|
216
|
+
responseType: "json",
|
|
217
|
+
headers: reqHeaders,
|
|
218
|
+
body: reqData,
|
|
219
|
+
contentType: reqHeaders["content-type"],
|
|
220
|
+
}, tokenRes);
|
|
221
|
+
}
|
|
222
|
+
const tokenResJson = yield tokenRes.json();
|
|
223
|
+
const accessTokenRaw = jsonpointer.get(tokenResJson, accessTokenPointer);
|
|
224
|
+
const accessToken = typeof accessTokenRaw === "string" ? accessTokenRaw : "";
|
|
225
|
+
const expiresInRaw = jsonpointer.get(tokenResJson, expiresInPointer);
|
|
226
|
+
const expiresInSecs = typeof expiresInRaw == "number" ? expiresInRaw : 600;
|
|
227
|
+
const now = new Date();
|
|
228
|
+
const expiresAt = new Date(now.getTime() + expiresInSecs * 1000);
|
|
229
|
+
return { accessToken, expiresAt };
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
applyAuth(cfg) {
|
|
233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
if (!this.accessToken) {
|
|
235
|
+
const { accessToken, expiresAt } = yield this.refresh();
|
|
236
|
+
this.accessToken = accessToken;
|
|
237
|
+
this.expiresAt = expiresAt;
|
|
238
|
+
}
|
|
239
|
+
this.props.requestMutator.setValue(this.accessToken);
|
|
240
|
+
return yield this.props.requestMutator.applyAuth(cfg);
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
setValue(val) {
|
|
244
|
+
throw "an OAuth2 auth provider can not a requestMutator";
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
exports.OAuth2 = OAuth2;
|
|
@@ -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.URL_FORM = exports.MULTIPART_FORM = exports.TEXT_PATTERN = exports.JSON_PATTERN = void 0;
|
|
7
4
|
// use a pattern to match json content type to handle
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Sideko (sideko.dev)
|
|
3
|
-
**/
|
|
4
1
|
import * as z from "zod";
|
|
5
2
|
import { AuthProvider } from "./auth";
|
|
6
3
|
import { ApiPromise } from "./api-promise";
|
|
@@ -35,7 +32,8 @@ export declare class CoreClient {
|
|
|
35
32
|
constructor(props: CoreClientProps);
|
|
36
33
|
registerAuth(name: string, provider: AuthProvider): void;
|
|
37
34
|
private applyAuths;
|
|
38
|
-
|
|
35
|
+
buildUrl(path: string): string;
|
|
36
|
+
private buildUrlFromCfg;
|
|
39
37
|
private applyHeaders;
|
|
40
38
|
private encodeBodyByContentType;
|
|
41
39
|
private buildRequestInit;
|
package/dist/core/core-client.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Generated by Sideko (sideko.dev)
|
|
4
|
-
**/
|
|
5
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
7
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -33,16 +30,25 @@ class CoreClient {
|
|
|
33
30
|
this.auths[name] = provider;
|
|
34
31
|
}
|
|
35
32
|
applyAuths(cfg) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
var _a;
|
|
35
|
+
for (const name of (_a = cfg.auth) !== null && _a !== void 0 ? _a : []) {
|
|
36
|
+
const provider = this.auths[name];
|
|
37
|
+
if (provider) {
|
|
38
|
+
cfg = yield provider.applyAuth(cfg);
|
|
39
|
+
}
|
|
41
40
|
}
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
return cfg;
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
buildUrl(path) {
|
|
45
|
+
const base = this.baseUrl.endsWith("/")
|
|
46
|
+
? this.baseUrl.slice(0, -1)
|
|
47
|
+
: this.baseUrl;
|
|
48
|
+
const cleanPath = path.startsWith("/") ? path.slice(1) : path;
|
|
49
|
+
return `${base}/${cleanPath}`;
|
|
44
50
|
}
|
|
45
|
-
|
|
51
|
+
buildUrlFromCfg(cfg) {
|
|
46
52
|
var _a, _b, _c;
|
|
47
53
|
const base = this.baseUrl.endsWith("/")
|
|
48
54
|
? this.baseUrl.slice(0, -1)
|
|
@@ -60,7 +66,7 @@ class CoreClient {
|
|
|
60
66
|
}
|
|
61
67
|
applyHeaders(cfg, reqInit) {
|
|
62
68
|
var _a, _b, _c;
|
|
63
|
-
const finalHeaders = Object.assign(Object.assign(Object.assign(Object.assign({}, ((_a = reqInit.headers) !== null && _a !== void 0 ? _a : {})), ((_b = cfg.headers) !== null && _b !== void 0 ? _b : {})), (cfg.contentType ? { "content-type": cfg.contentType } : {})), (_c = cfg.opts) === null || _c === void 0 ? void 0 : _c.additionalHeaders);
|
|
69
|
+
const finalHeaders = Object.assign(Object.assign(Object.assign(Object.assign({ "x-sideko-sdk-language": "Javascript", "x-sideko-runtime": runtime_1.RUNTIME.type }, ((_a = reqInit.headers) !== null && _a !== void 0 ? _a : {})), ((_b = cfg.headers) !== null && _b !== void 0 ? _b : {})), (cfg.contentType ? { "content-type": cfg.contentType } : {})), (_c = cfg.opts) === null || _c === void 0 ? void 0 : _c.additionalHeaders);
|
|
64
70
|
reqInit.headers = finalHeaders;
|
|
65
71
|
return reqInit;
|
|
66
72
|
}
|
|
@@ -116,9 +122,9 @@ class CoreClient {
|
|
|
116
122
|
const fetcherFn = runtime_1.RUNTIME.type === "node" || typeof fetch !== "function"
|
|
117
123
|
? require("node-fetch").default
|
|
118
124
|
: fetch;
|
|
119
|
-
cfg = this.applyAuths(cfg);
|
|
125
|
+
cfg = yield this.applyAuths(cfg);
|
|
120
126
|
const reqInit = this.buildRequestInit(cfg);
|
|
121
|
-
const url = this.
|
|
127
|
+
const url = this.buildUrlFromCfg(cfg);
|
|
122
128
|
const timeout = (_b = (_a = cfg.opts) === null || _a === void 0 ? void 0 : _a.timeout) !== null && _b !== void 0 ? _b : this.timeout;
|
|
123
129
|
const controller = new AbortController();
|
|
124
130
|
let timeoutId;
|
package/dist/core/form-data.d.ts
CHANGED
package/dist/core/form-data.js
CHANGED
package/dist/core/index.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Sideko (sideko.dev)
|
|
3
|
-
**/
|
|
4
1
|
export { CoreClient, CoreClientProps, CoreResourceClient, RequestOptions, } from "./core-client";
|
|
5
|
-
export { AuthProvider, AuthBasic, AuthBearer, AuthKeyQuery, AuthKeyHeader, AuthCookieHeader, } from "./auth";
|
|
2
|
+
export { AuthProvider, AuthBasic, AuthBearer, AuthKeyQuery, AuthKeyHeader, AuthCookieHeader, OAuth2, OAuth2PasswordProps, OAuth2ClientCredentialsProps, } from "./auth";
|
|
6
3
|
export { RUNTIME } from "./runtime";
|
|
7
4
|
export { ApiPromise, EventSourceResponse } from "./api-promise";
|
|
8
5
|
export { BinaryResponse } from "./binary-response";
|
|
9
6
|
export { ApiError } from "./api-error";
|
|
10
7
|
export { createForm, UploadFile, isUploadFile } from "./form-data";
|
|
11
|
-
export { zodTransform, zodUploadFile } from "./zod";
|
|
8
|
+
export { zodTransform, zodUploadFile, zodRequiredAny } from "./zod";
|