@runwayml/sdk 2.10.1 → 3.0.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/CHANGELOG.md +35 -0
- package/README.md +113 -48
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/bin/cli +53 -0
- package/bin/migration-config.json +6 -0
- package/client.d.mts +207 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +207 -0
- package/client.d.ts.map +1 -0
- package/client.js +494 -0
- package/client.js.map +1 -0
- package/client.mjs +490 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +1 -46
- package/error.d.ts.map +1 -1
- package/error.js +3 -110
- package/error.js.map +1 -1
- package/error.mjs +1 -96
- package/error.mjs.map +1 -1
- package/index.d.mts +7 -138
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -137
- package/index.d.ts.map +1 -1
- package/index.js +12 -136
- package/index.js.map +1 -1
- package/index.mjs +6 -110
- package/index.mjs.map +1 -1
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/lib/polling.d.mts +48 -0
- package/lib/polling.d.mts.map +1 -0
- package/lib/polling.d.ts +4 -5
- package/lib/polling.d.ts.map +1 -1
- package/lib/polling.js +2 -2
- package/lib/polling.js.map +1 -1
- package/lib/polling.mjs.map +1 -1
- package/package.json +113 -64
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +1 -5
- package/resource.d.ts.map +1 -1
- package/resource.js +3 -8
- package/resource.js.map +1 -1
- package/resource.mjs +1 -6
- package/resource.mjs.map +1 -1
- package/resources/character-performance.d.mts +106 -0
- package/resources/character-performance.d.mts.map +1 -0
- package/resources/character-performance.d.ts +3 -3
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/character-performance.js +1 -1
- package/resources/character-performance.js.map +1 -1
- package/resources/character-performance.mjs +1 -1
- package/resources/character-performance.mjs.map +1 -1
- package/resources/image-to-video.d.mts +108 -0
- package/resources/image-to-video.d.mts.map +1 -0
- package/resources/image-to-video.d.ts +3 -3
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-to-video.js +1 -1
- package/resources/image-to-video.js.map +1 -1
- package/resources/image-to-video.mjs +1 -1
- package/resources/image-to-video.mjs.map +1 -1
- package/resources/index.d.mts +10 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +422 -0
- package/resources/organization.d.mts.map +1 -0
- package/resources/organization.d.ts +37 -7
- package/resources/organization.d.ts.map +1 -1
- package/resources/organization.js +6 -5
- package/resources/organization.js.map +1 -1
- package/resources/organization.mjs +6 -5
- package/resources/organization.mjs.map +1 -1
- package/resources/tasks.d.mts +69 -0
- package/resources/tasks.d.mts.map +1 -0
- package/resources/tasks.d.ts +5 -4
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.js +6 -4
- package/resources/tasks.js.map +1 -1
- package/resources/tasks.mjs +6 -4
- package/resources/tasks.mjs.map +1 -1
- package/resources/text-to-image.d.mts +112 -0
- package/resources/text-to-image.d.mts.map +1 -0
- package/resources/text-to-image.d.ts +4 -4
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-image.js +2 -2
- package/resources/text-to-image.js.map +1 -1
- package/resources/text-to-image.mjs +2 -2
- package/resources/text-to-image.mjs.map +1 -1
- package/resources/text-to-speech.d.mts +46 -0
- package/resources/text-to-speech.d.mts.map +1 -0
- package/resources/text-to-speech.d.ts +46 -0
- package/resources/text-to-speech.d.ts.map +1 -0
- package/resources/text-to-speech.js +16 -0
- package/resources/text-to-speech.js.map +1 -0
- package/resources/text-to-speech.mjs +12 -0
- package/resources/text-to-speech.mjs.map +1 -0
- package/resources/text-to-video.d.mts +44 -0
- package/resources/text-to-video.d.mts.map +1 -0
- package/resources/text-to-video.d.ts +3 -3
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/text-to-video.js +1 -1
- package/resources/text-to-video.js.map +1 -1
- package/resources/text-to-video.mjs +1 -1
- package/resources/text-to-video.mjs.map +1 -1
- package/resources/video-to-video.d.mts +78 -0
- package/resources/video-to-video.d.mts.map +1 -0
- package/resources/video-to-video.d.ts +3 -3
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.js +1 -1
- package/resources/video-to-video.js.map +1 -1
- package/resources/video-to-video.mjs +1 -1
- package/resources/video-to-video.mjs.map +1 -1
- package/resources/video-upscale.d.mts +32 -0
- package/resources/video-upscale.d.mts.map +1 -0
- package/resources/video-upscale.d.ts +3 -3
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/video-upscale.js +1 -1
- package/resources/video-upscale.js.map +1 -1
- package/resources/video-upscale.mjs +1 -1
- package/resources/video-upscale.mjs.map +1 -1
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/api-promise.ts +2 -0
- package/src/client.ts +840 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -130
- package/src/index.ts +12 -279
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/polling.ts +5 -5
- package/src/resource.ts +2 -11
- package/src/resources/character-performance.ts +3 -3
- package/src/resources/image-to-video.ts +3 -3
- package/src/resources/index.ts +5 -0
- package/src/resources/organization.ts +44 -15
- package/src/resources/tasks.ts +10 -7
- package/src/resources/text-to-image.ts +4 -4
- package/src/resources/text-to-speech.ts +114 -0
- package/src/resources/text-to-video.ts +3 -3
- package/src/resources/video-to-video.ts +3 -3
- package/src/resources/video-upscale.ts +3 -3
- package/src/tsconfig.json +2 -2
- package/src/uploads.ts +2 -255
- package/src/version.ts +1 -1
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +1 -74
- package/uploads.d.ts.map +1 -1
- package/uploads.js +3 -168
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -157
- package/uploads.mjs.map +1 -1
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/_shims/MultipartBody.d.ts +0 -9
- package/_shims/MultipartBody.d.ts.map +0 -1
- package/_shims/MultipartBody.js +0 -16
- package/_shims/MultipartBody.js.map +0 -1
- package/_shims/MultipartBody.mjs +0 -12
- package/_shims/MultipartBody.mjs.map +0 -1
- package/_shims/README.md +0 -46
- package/_shims/auto/runtime-bun.d.ts +0 -5
- package/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/_shims/auto/runtime-bun.js +0 -21
- package/_shims/auto/runtime-bun.js.map +0 -1
- package/_shims/auto/runtime-bun.mjs +0 -2
- package/_shims/auto/runtime-bun.mjs.map +0 -1
- package/_shims/auto/runtime-node.d.ts +0 -5
- package/_shims/auto/runtime-node.d.ts.map +0 -1
- package/_shims/auto/runtime-node.js +0 -21
- package/_shims/auto/runtime-node.js.map +0 -1
- package/_shims/auto/runtime-node.mjs +0 -2
- package/_shims/auto/runtime-node.mjs.map +0 -1
- package/_shims/auto/runtime.d.ts +0 -5
- package/_shims/auto/runtime.d.ts.map +0 -1
- package/_shims/auto/runtime.js +0 -21
- package/_shims/auto/runtime.js.map +0 -1
- package/_shims/auto/runtime.mjs +0 -2
- package/_shims/auto/runtime.mjs.map +0 -1
- package/_shims/auto/types-node.d.ts +0 -5
- package/_shims/auto/types-node.d.ts.map +0 -1
- package/_shims/auto/types-node.js +0 -21
- package/_shims/auto/types-node.js.map +0 -1
- package/_shims/auto/types-node.mjs +0 -2
- package/_shims/auto/types-node.mjs.map +0 -1
- package/_shims/auto/types.d.ts +0 -101
- package/_shims/auto/types.js +0 -3
- package/_shims/auto/types.mjs +0 -3
- package/_shims/bun-runtime.d.ts +0 -6
- package/_shims/bun-runtime.d.ts.map +0 -1
- package/_shims/bun-runtime.js +0 -14
- package/_shims/bun-runtime.js.map +0 -1
- package/_shims/bun-runtime.mjs +0 -10
- package/_shims/bun-runtime.mjs.map +0 -1
- package/_shims/index.d.ts +0 -83
- package/_shims/index.js +0 -17
- package/_shims/index.mjs +0 -11
- package/_shims/manual-types.d.ts +0 -12
- package/_shims/manual-types.js +0 -3
- package/_shims/manual-types.mjs +0 -3
- package/_shims/node-runtime.d.ts +0 -3
- package/_shims/node-runtime.d.ts.map +0 -1
- package/_shims/node-runtime.js +0 -89
- package/_shims/node-runtime.js.map +0 -1
- package/_shims/node-runtime.mjs +0 -56
- package/_shims/node-runtime.mjs.map +0 -1
- package/_shims/node-types.d.ts +0 -42
- package/_shims/node-types.js +0 -3
- package/_shims/node-types.mjs +0 -3
- package/_shims/registry.d.ts +0 -37
- package/_shims/registry.d.ts.map +0 -1
- package/_shims/registry.js +0 -41
- package/_shims/registry.js.map +0 -1
- package/_shims/registry.mjs +0 -37
- package/_shims/registry.mjs.map +0 -1
- package/_shims/web-runtime.d.ts +0 -5
- package/_shims/web-runtime.d.ts.map +0 -1
- package/_shims/web-runtime.js +0 -78
- package/_shims/web-runtime.js.map +0 -1
- package/_shims/web-runtime.mjs +0 -71
- package/_shims/web-runtime.mjs.map +0 -1
- package/_shims/web-types.d.ts +0 -83
- package/_shims/web-types.js +0 -3
- package/_shims/web-types.mjs +0 -3
- package/core.d.ts +0 -255
- package/core.d.ts.map +0 -1
- package/core.js +0 -924
- package/core.js.map +0 -1
- package/core.mjs +0 -892
- package/core.mjs.map +0 -1
- package/shims/node.d.ts +0 -30
- package/shims/node.d.ts.map +0 -1
- package/shims/node.js +0 -31
- package/shims/node.js.map +0 -1
- package/shims/node.mjs +0 -5
- package/shims/node.mjs.map +0 -1
- package/shims/web.d.ts +0 -26
- package/shims/web.d.ts.map +0 -1
- package/shims/web.js +0 -31
- package/shims/web.js.map +0 -1
- package/shims/web.mjs +0 -5
- package/shims/web.mjs.map +0 -1
- package/src/_shims/MultipartBody.ts +0 -9
- package/src/_shims/README.md +0 -46
- package/src/_shims/auto/runtime-bun.ts +0 -4
- package/src/_shims/auto/runtime-node.ts +0 -4
- package/src/_shims/auto/runtime.ts +0 -4
- package/src/_shims/auto/types-node.ts +0 -4
- package/src/_shims/auto/types.d.ts +0 -101
- package/src/_shims/auto/types.js +0 -3
- package/src/_shims/auto/types.mjs +0 -3
- package/src/_shims/bun-runtime.ts +0 -14
- package/src/_shims/index.d.ts +0 -83
- package/src/_shims/index.js +0 -17
- package/src/_shims/index.mjs +0 -11
- package/src/_shims/manual-types.d.ts +0 -12
- package/src/_shims/manual-types.js +0 -3
- package/src/_shims/manual-types.mjs +0 -3
- package/src/_shims/node-runtime.ts +0 -81
- package/src/_shims/node-types.d.ts +0 -42
- package/src/_shims/node-types.js +0 -3
- package/src/_shims/node-types.mjs +0 -3
- package/src/_shims/registry.ts +0 -67
- package/src/_shims/web-runtime.ts +0 -103
- package/src/_shims/web-types.d.ts +0 -83
- package/src/_shims/web-types.js +0 -3
- package/src/_shims/web-types.mjs +0 -3
- package/src/core.ts +0 -1236
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
package/resource.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.js","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resource.js","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,6DAAgC"}
|
package/resource.mjs
CHANGED
package/resource.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.mjs","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resource.mjs","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
3
|
+
import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
4
|
+
export declare class CharacterPerformance extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint will start a new task to control a character's facial expressions
|
|
7
|
+
* and body movements using a reference video.
|
|
8
|
+
*/
|
|
9
|
+
create(body: CharacterPerformanceCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<CharacterPerformanceCreateResponse>;
|
|
10
|
+
}
|
|
11
|
+
export interface CharacterPerformanceCreateResponse {
|
|
12
|
+
/**
|
|
13
|
+
* The ID of the newly created task.
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CharacterPerformanceCreateParams {
|
|
18
|
+
/**
|
|
19
|
+
* The character to control. You can either provide a video or an image. A visually
|
|
20
|
+
* recognizable face must be visible and stay within the frame.
|
|
21
|
+
*/
|
|
22
|
+
character: CharacterPerformanceCreateParams.Video | CharacterPerformanceCreateParams.Image;
|
|
23
|
+
/**
|
|
24
|
+
* The model variant to use.
|
|
25
|
+
*/
|
|
26
|
+
model: 'act_two';
|
|
27
|
+
/**
|
|
28
|
+
* The resolution of the output video.
|
|
29
|
+
*/
|
|
30
|
+
ratio: '1280:720' | '720:1280' | '960:960' | '1104:832' | '832:1104' | '1584:672';
|
|
31
|
+
reference: CharacterPerformanceCreateParams.Reference;
|
|
32
|
+
/**
|
|
33
|
+
* A boolean indicating whether to enable body control. When enabled, non-facial
|
|
34
|
+
* movements and gestures will be applied to the character in addition to facial
|
|
35
|
+
* expressions.
|
|
36
|
+
*/
|
|
37
|
+
bodyControl?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Settings that affect the behavior of the content moderation system.
|
|
40
|
+
*/
|
|
41
|
+
contentModeration?: CharacterPerformanceCreateParams.ContentModeration;
|
|
42
|
+
/**
|
|
43
|
+
* An integer between 1 and 5 (inclusive). A larger value increases the intensity
|
|
44
|
+
* of the character's expression.
|
|
45
|
+
*/
|
|
46
|
+
expressionIntensity?: number;
|
|
47
|
+
/**
|
|
48
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
49
|
+
* get different results for the same other request parameters. Using the same seed
|
|
50
|
+
* integer for an identical request will produce similar results.
|
|
51
|
+
*/
|
|
52
|
+
seed?: number;
|
|
53
|
+
}
|
|
54
|
+
export declare namespace CharacterPerformanceCreateParams {
|
|
55
|
+
/**
|
|
56
|
+
* A video of your character. In the output, the character will use the reference
|
|
57
|
+
* video performance in its original animated environment and some of the
|
|
58
|
+
* character's own movements.
|
|
59
|
+
*/
|
|
60
|
+
interface Video {
|
|
61
|
+
type: 'video';
|
|
62
|
+
/**
|
|
63
|
+
* A HTTPS URL pointing to a video or a data URI containing a video of your
|
|
64
|
+
* character. See [our docs](/assets/inputs#videos) on video inputs for more
|
|
65
|
+
* information.
|
|
66
|
+
*/
|
|
67
|
+
uri: string;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* An image of your character. In the output, the character will use the reference
|
|
71
|
+
* video performance in its original static environment.
|
|
72
|
+
*/
|
|
73
|
+
interface Image {
|
|
74
|
+
type: 'image';
|
|
75
|
+
/**
|
|
76
|
+
* A HTTPS URL pointing to an image or a data URI containing an image of your
|
|
77
|
+
* character. See [our docs](/assets/inputs#images) on image inputs for more
|
|
78
|
+
* information.
|
|
79
|
+
*/
|
|
80
|
+
uri: string;
|
|
81
|
+
}
|
|
82
|
+
interface Reference {
|
|
83
|
+
type: 'video';
|
|
84
|
+
/**
|
|
85
|
+
* A HTTPS URL pointing to a video or a data URI containing a video of a person
|
|
86
|
+
* performing in the manner that you would like your character to perform. The
|
|
87
|
+
* video must be between 3 and 30 seconds in duration. See
|
|
88
|
+
* [our docs](/assets/inputs#videos) on video inputs for more information.
|
|
89
|
+
*/
|
|
90
|
+
uri: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Settings that affect the behavior of the content moderation system.
|
|
94
|
+
*/
|
|
95
|
+
interface ContentModeration {
|
|
96
|
+
/**
|
|
97
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
98
|
+
* preventing generations that include recognizable public figures.
|
|
99
|
+
*/
|
|
100
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
export declare namespace CharacterPerformance {
|
|
104
|
+
export { type CharacterPerformanceCreateResponse as CharacterPerformanceCreateResponse, type CharacterPerformanceCreateParams as CharacterPerformanceCreateParams, };
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=character-performance.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"character-performance.d.mts","sourceRoot":"","sources":["../src/resources/character-performance.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,kCAAkC,CAAC;CAKnE;AAED,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,gCAAgC;IAC/C;;;OAGG;IACH,SAAS,EAAE,gCAAgC,CAAC,KAAK,GAAG,gCAAgC,CAAC,KAAK,CAAC;IAE3F;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;IAElF,SAAS,EAAE,gCAAgC,CAAC,SAAS,CAAC;IAEtD;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,gCAAgC,CAAC,iBAAiB,CAAC;IAEvE;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,gCAAgC,CAAC;IAChD;;;;OAIG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;;;WAIG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;;OAGG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;;;WAIG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED,UAAiB,SAAS;QACxB,IAAI,EAAE,OAAO,CAAC;QAEd;;;;;WAKG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
3
3
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
4
4
|
export declare class CharacterPerformance extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to control a character's facial expressions
|
|
7
7
|
* and body movements using a reference video.
|
|
8
8
|
*/
|
|
9
|
-
create(body: CharacterPerformanceCreateParams, options?:
|
|
9
|
+
create(body: CharacterPerformanceCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<CharacterPerformanceCreateResponse>;
|
|
10
10
|
}
|
|
11
11
|
export interface CharacterPerformanceCreateResponse {
|
|
12
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"character-performance.d.ts","sourceRoot":"","sources":["../src/resources/character-performance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"character-performance.d.ts","sourceRoot":"","sources":["../src/resources/character-performance.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,kCAAkC,CAAC;CAKnE;AAED,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,gCAAgC;IAC/C;;;OAGG;IACH,SAAS,EAAE,gCAAgC,CAAC,KAAK,GAAG,gCAAgC,CAAC,KAAK,CAAC;IAE3F;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;IAElF,SAAS,EAAE,gCAAgC,CAAC,SAAS,CAAC;IAEtD;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,gCAAgC,CAAC,iBAAiB,CAAC;IAEvE;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,gCAAgC,CAAC;IAChD;;;;OAIG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;;;WAIG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;;OAGG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;;;WAIG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED,UAAiB,SAAS;QACxB,IAAI,EAAE,OAAO,CAAC;QAEd;;;;;WAKG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,oBAAoB,CAAC;IAC5C,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.CharacterPerformance = void 0;
|
|
5
|
-
const resource_1 = require("../resource.js");
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const polling_1 = require("../lib/polling.js");
|
|
7
7
|
class CharacterPerformance extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"character-performance.js","sourceRoot":"","sources":["../src/resources/character-performance.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"character-performance.js","sourceRoot":"","sources":["../src/resources/character-performance.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,oBAAqB,SAAQ,sBAAW;IACnD;;;OAGG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAAqC,IAAI,CAAC,OAAO,CAAC,CAC7E,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CACrE,CAAC;IACJ,CAAC;CACF;AAbD,oDAaC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../resource.mjs";
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
4
4
|
export class CharacterPerformance extends APIResource {
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"character-performance.mjs","sourceRoot":"","sources":["../src/resources/character-performance.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD;;;OAGG;IACH,MAAM,CACJ,IAAsC,EACtC,
|
|
1
|
+
{"version":3,"file":"character-performance.mjs","sourceRoot":"","sources":["../src/resources/character-performance.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD;;;OAGG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,sBAAsB,CAAqC,IAAI,CAAC,OAAO,CAAC,CAC7E,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CACrE,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
3
|
+
import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
4
|
+
export declare class ImageToVideo extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint will start a new task to generate a video from an image prompt.
|
|
7
|
+
*/
|
|
8
|
+
create(body: ImageToVideoCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<ImageToVideoCreateResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface ImageToVideoCreateResponse {
|
|
11
|
+
/**
|
|
12
|
+
* The ID of the newly created task. Use this ID to query the task status and
|
|
13
|
+
* retrieve the generated video.
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ImageToVideoCreateParams {
|
|
18
|
+
/**
|
|
19
|
+
* The model variant to use.
|
|
20
|
+
*/
|
|
21
|
+
model: 'gen4_turbo' | 'gen3a_turbo' | 'veo3';
|
|
22
|
+
/**
|
|
23
|
+
* A HTTPS URL or data URI containing an encoded image to be used as the first
|
|
24
|
+
* frame of the generated video. See [our docs](/assets/inputs#images) on image
|
|
25
|
+
* inputs for more information.
|
|
26
|
+
*/
|
|
27
|
+
promptImage: string | Array<ImageToVideoCreateParams.PromptImage>;
|
|
28
|
+
/**
|
|
29
|
+
* The resolution of the output video.
|
|
30
|
+
*
|
|
31
|
+
* `gen4_turbo` supports the following values:
|
|
32
|
+
*
|
|
33
|
+
* - `1280:720`
|
|
34
|
+
* - `720:1280`
|
|
35
|
+
* - `1104:832`
|
|
36
|
+
* - `832:1104`
|
|
37
|
+
* - `960:960`
|
|
38
|
+
* - `1584:672`
|
|
39
|
+
*
|
|
40
|
+
* `gen3a_turbo` supports the following values:
|
|
41
|
+
*
|
|
42
|
+
* - `1280:768`
|
|
43
|
+
* - `768:1280`
|
|
44
|
+
*
|
|
45
|
+
* `veo3` supports the following values:
|
|
46
|
+
*
|
|
47
|
+
* - `1280:720`
|
|
48
|
+
* - `720:1280`
|
|
49
|
+
*/
|
|
50
|
+
ratio: '1280:720' | '720:1280' | '1104:832' | '832:1104' | '960:960' | '1584:672' | '1280:768' | '768:1280';
|
|
51
|
+
/**
|
|
52
|
+
* Settings that affect the behavior of the content moderation system.
|
|
53
|
+
*
|
|
54
|
+
* This field is allowed only for the following model variants: `gen4_turbo`,
|
|
55
|
+
* `gen3a_turbo`
|
|
56
|
+
*/
|
|
57
|
+
contentModeration?: ImageToVideoCreateParams.ContentModeration;
|
|
58
|
+
/**
|
|
59
|
+
* The number of seconds of duration for the output video. `veo3` requires a
|
|
60
|
+
* duration of 8. gen4_turbo, gen3a_turbo must specify a duration of 5 or 10.
|
|
61
|
+
*/
|
|
62
|
+
duration?: 5 | 8 | 10;
|
|
63
|
+
/**
|
|
64
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
65
|
+
* should describe in detail what should appear in the output.
|
|
66
|
+
*/
|
|
67
|
+
promptText?: string;
|
|
68
|
+
/**
|
|
69
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
70
|
+
* get different results for the same other request parameters. Using the same seed
|
|
71
|
+
* integer for an identical request will produce similar results.
|
|
72
|
+
*/
|
|
73
|
+
seed?: number;
|
|
74
|
+
}
|
|
75
|
+
export declare namespace ImageToVideoCreateParams {
|
|
76
|
+
interface PromptImage {
|
|
77
|
+
/**
|
|
78
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
79
|
+
* first frame of the video, "last" will use the image as the last frame of the
|
|
80
|
+
* video.
|
|
81
|
+
*
|
|
82
|
+
* "last" is currently supported for `gen3a_turbo` only.
|
|
83
|
+
*/
|
|
84
|
+
position: 'first' | 'last';
|
|
85
|
+
/**
|
|
86
|
+
* A HTTPS URL or data URI containing an encoded image. See
|
|
87
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
88
|
+
*/
|
|
89
|
+
uri: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Settings that affect the behavior of the content moderation system.
|
|
93
|
+
*
|
|
94
|
+
* This field is allowed only for the following model variants: `gen4_turbo`,
|
|
95
|
+
* `gen3a_turbo`
|
|
96
|
+
*/
|
|
97
|
+
interface ContentModeration {
|
|
98
|
+
/**
|
|
99
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
100
|
+
* preventing generations that include recognizable public figures.
|
|
101
|
+
*/
|
|
102
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
export declare namespace ImageToVideo {
|
|
106
|
+
export { type ImageToVideoCreateResponse as ImageToVideoCreateResponse, type ImageToVideoCreateParams as ImageToVideoCreateParams, };
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=image-to-video.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-to-video.d.mts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,EAAE,YAAY,GAAG,aAAa,GAAG,MAAM,CAAC;IAE7C;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAC;IAElE;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;IAE5G;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC,iBAAiB,CAAC;IAE/D;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;IAEtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,WAAW;QAC1B;;;;;;WAMG;QACH,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;QAE3B;;;WAGG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;;;;OAKG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
3
3
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
4
4
|
export declare class ImageToVideo extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* This endpoint will start a new task to generate a video from an image prompt.
|
|
7
7
|
*/
|
|
8
|
-
create(body: ImageToVideoCreateParams, options?:
|
|
8
|
+
create(body: ImageToVideoCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<ImageToVideoCreateResponse>;
|
|
9
9
|
}
|
|
10
10
|
export interface ImageToVideoCreateResponse {
|
|
11
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-to-video.d.ts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image-to-video.d.ts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,KAAK,EAAE,YAAY,GAAG,aAAa,GAAG,MAAM,CAAC;IAE7C;;;;OAIG;IACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,wBAAwB,CAAC,WAAW,CAAC,CAAC;IAElE;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;IAE5G;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,wBAAwB,CAAC,iBAAiB,CAAC;IAE/D;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;IAEtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,WAAW;QAC1B;;;;;;WAMG;QACH,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;QAE3B;;;WAGG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;;;;OAKG;IACH,UAAiB,iBAAiB;QAChC;;;WAGG;QACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;KACxC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ImageToVideo = void 0;
|
|
5
|
-
const resource_1 = require("../resource.js");
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const polling_1 = require("../lib/polling.js");
|
|
7
7
|
class ImageToVideo extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-to-video.js","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"image-to-video.js","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF;AAZD,oCAYC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../resource.mjs";
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
4
4
|
export class ImageToVideo extends APIResource {
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-to-video.mjs","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAA8B,EAC9B,
|
|
1
|
+
{"version":3,"file":"image-to-video.mjs","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,sBAAsB,CAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { CharacterPerformance, type CharacterPerformanceCreateResponse, type CharacterPerformanceCreateParams, } from "./character-performance.mjs";
|
|
2
|
+
export { ImageToVideo, type ImageToVideoCreateResponse, type ImageToVideoCreateParams, } from "./image-to-video.mjs";
|
|
3
|
+
export { Organization, type OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams, } from "./organization.mjs";
|
|
4
|
+
export { Tasks, type TaskRetrieveResponse } from "./tasks.mjs";
|
|
5
|
+
export { TextToImage, type TextToImageCreateResponse, type TextToImageCreateParams } from "./text-to-image.mjs";
|
|
6
|
+
export { TextToSpeech, type TextToSpeechCreateResponse, type TextToSpeechCreateParams, } from "./text-to-speech.mjs";
|
|
7
|
+
export { TextToVideo, type TextToVideoCreateResponse, type TextToVideoCreateParams } from "./text-to-video.mjs";
|
|
8
|
+
export { VideoToVideo, type VideoToVideoCreateResponse, type VideoToVideoCreateParams, } from "./video-to-video.mjs";
|
|
9
|
+
export { VideoUpscale, type VideoUpscaleCreateResponse, type VideoUpscaleCreateParams, } from "./video-upscale.mjs";
|
|
10
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,oBAAoB,EACpB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE;OACpC,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B"}
|
package/resources/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { ImageToVideo, type ImageToVideoCreateResponse, type ImageToVideoCreateP
|
|
|
3
3
|
export { Organization, type OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams, } from "./organization.js";
|
|
4
4
|
export { Tasks, type TaskRetrieveResponse } from "./tasks.js";
|
|
5
5
|
export { TextToImage, type TextToImageCreateResponse, type TextToImageCreateParams } from "./text-to-image.js";
|
|
6
|
+
export { TextToSpeech, type TextToSpeechCreateResponse, type TextToSpeechCreateParams, } from "./text-to-speech.js";
|
|
6
7
|
export { TextToVideo, type TextToVideoCreateResponse, type TextToVideoCreateParams } from "./text-to-video.js";
|
|
7
8
|
export { VideoToVideo, type VideoToVideoCreateResponse, type VideoToVideoCreateParams, } from "./video-to-video.js";
|
|
8
9
|
export { VideoUpscale, type VideoUpscaleCreateResponse, type VideoUpscaleCreateParams, } from "./video-upscale.js";
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,oBAAoB,EACpB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE;OACpC,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B"}
|
package/resources/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.VideoUpscale = exports.VideoToVideo = exports.TextToVideo = exports.TextToImage = exports.Tasks = exports.Organization = exports.ImageToVideo = exports.CharacterPerformance = void 0;
|
|
4
|
+
exports.VideoUpscale = exports.VideoToVideo = exports.TextToVideo = exports.TextToSpeech = exports.TextToImage = exports.Tasks = exports.Organization = exports.ImageToVideo = exports.CharacterPerformance = void 0;
|
|
5
5
|
var character_performance_1 = require("./character-performance.js");
|
|
6
6
|
Object.defineProperty(exports, "CharacterPerformance", { enumerable: true, get: function () { return character_performance_1.CharacterPerformance; } });
|
|
7
7
|
var image_to_video_1 = require("./image-to-video.js");
|
|
@@ -12,6 +12,8 @@ var tasks_1 = require("./tasks.js");
|
|
|
12
12
|
Object.defineProperty(exports, "Tasks", { enumerable: true, get: function () { return tasks_1.Tasks; } });
|
|
13
13
|
var text_to_image_1 = require("./text-to-image.js");
|
|
14
14
|
Object.defineProperty(exports, "TextToImage", { enumerable: true, get: function () { return text_to_image_1.TextToImage; } });
|
|
15
|
+
var text_to_speech_1 = require("./text-to-speech.js");
|
|
16
|
+
Object.defineProperty(exports, "TextToSpeech", { enumerable: true, get: function () { return text_to_speech_1.TextToSpeech; } });
|
|
15
17
|
var text_to_video_1 = require("./text-to-video.js");
|
|
16
18
|
Object.defineProperty(exports, "TextToVideo", { enumerable: true, get: function () { return text_to_video_1.TextToVideo; } });
|
|
17
19
|
var video_to_video_1 = require("./video-to-video.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oEAIiC;AAH/B,6HAAA,oBAAoB,OAAA;AAItB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,oCAA2D;AAAlD,8FAAA,KAAK,OAAA;AACd,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oEAIiC;AAH/B,6HAAA,oBAAoB,OAAA;AAItB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,oCAA2D;AAAlD,8FAAA,KAAK,OAAA;AACd,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -4,6 +4,7 @@ export { ImageToVideo, } from "./image-to-video.mjs";
|
|
|
4
4
|
export { Organization, } from "./organization.mjs";
|
|
5
5
|
export { Tasks } from "./tasks.mjs";
|
|
6
6
|
export { TextToImage } from "./text-to-image.mjs";
|
|
7
|
+
export { TextToSpeech, } from "./text-to-speech.mjs";
|
|
7
8
|
export { TextToVideo } from "./text-to-video.mjs";
|
|
8
9
|
export { VideoToVideo, } from "./video-to-video.mjs";
|
|
9
10
|
export { VideoUpscale, } from "./video-upscale.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,oBAAoB,GAGrB;OACM,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAIb;OACM,EAAE,KAAK,EAA6B;OACpC,EAAE,WAAW,EAAgE;OAC7E,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAGb"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,oBAAoB,GAGrB;OACM,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAIb;OACM,EAAE,KAAK,EAA6B;OACpC,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAGb"}
|