@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.0.0 (2025-10-02)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.11.0...v3.0.0](https://github.com/runwayml/sdk-node/compare/v2.11.0...v3.0.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** Finish migrating to typescript sdk ([b976d4f](https://github.com/runwayml/sdk-node/commit/b976d4fbdac3ec909ed5b4bfe9e42a23193fc6e0))
|
|
10
|
+
* **api:** Typescript migration ([6370065](https://github.com/runwayml/sdk-node/commit/6370065c3a742826659dc3992a905dd03aa4c12e))
|
|
11
|
+
* **docs:** Update docs URL ([7567419](https://github.com/runwayml/sdk-node/commit/7567419a49735c3e5d113af40abc0b30ba219b14))
|
|
12
|
+
* **internal:** Cleanup, migration docs ([07ce643](https://github.com/runwayml/sdk-node/commit/07ce6439e318a00f6908bd850f9892e58a4643ef))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Performance Improvements
|
|
16
|
+
|
|
17
|
+
* faster formatting ([a477bba](https://github.com/runwayml/sdk-node/commit/a477bba28debf6fa9551bfe7f9691bff45d9fed3))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
|
|
22
|
+
* **internal:** codegen related update ([cdb4b77](https://github.com/runwayml/sdk-node/commit/cdb4b77ca766f1788c8d726e7454a36479101777))
|
|
23
|
+
* **internal:** deps ([0681485](https://github.com/runwayml/sdk-node/commit/0681485b9f38c225a5259a93d2a3ce52488186cf))
|
|
24
|
+
* **internal:** fix incremental formatting in some cases ([7e9407f](https://github.com/runwayml/sdk-node/commit/7e9407fa2c29f69abfbd0c15c6c5420bd132020a))
|
|
25
|
+
* **internal:** ignore .eslintcache ([6b139ec](https://github.com/runwayml/sdk-node/commit/6b139ec1ad523c34f756c3e2d028f97e1e3a46e2))
|
|
26
|
+
* **internal:** remove .eslintcache ([102dc0e](https://github.com/runwayml/sdk-node/commit/102dc0e33784456e861c7beb27b1fe5d134ff3aa))
|
|
27
|
+
* **internal:** remove deprecated `compilerOptions.baseUrl` from tsconfig.json ([c6e93d7](https://github.com/runwayml/sdk-node/commit/c6e93d7923d213fc50f889321f685bc1698c2669))
|
|
28
|
+
|
|
29
|
+
## 2.11.0 (2025-09-23)
|
|
30
|
+
|
|
31
|
+
Full Changelog: [v2.10.1...v2.11.0](https://github.com/runwayml/sdk-node/compare/v2.10.1...v2.11.0)
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **api:** Text to Speech update ([ea48b24](https://github.com/runwayml/sdk-node/commit/ea48b240012443e7f60842e7a2b1dc53de236da7))
|
|
36
|
+
* **client:** Make t2s awaitable ([8918e88](https://github.com/runwayml/sdk-node/commit/8918e88a3cb7db46db145e29eac10252f3835ebd))
|
|
37
|
+
|
|
3
38
|
## 2.10.1 (2025-09-20)
|
|
4
39
|
|
|
5
40
|
Full Changelog: [v2.10.0...v2.10.1](https://github.com/runwayml/sdk-node/compare/v2.10.0...v2.10.1)
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# RunwayML
|
|
1
|
+
# RunwayML TypeScript API Library
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.org/package/@runwayml/sdk) 
|
|
3
|
+
[>)](https://npmjs.org/package/@runwayml/sdk) 
|
|
4
4
|
|
|
5
5
|
This library provides convenient access to the RunwayML REST API from server-side TypeScript or JavaScript.
|
|
6
6
|
|
|
7
|
-
The REST API documentation can be found on [dev.runwayml.com](https://dev.runwayml.com). The full API of this library can be found in [api.md](api.md).
|
|
7
|
+
The REST API documentation can be found on [docs.dev.runwayml.com](https://docs.dev.runwayml.com). The full API of this library can be found in [api.md](api.md).
|
|
8
8
|
|
|
9
9
|
It is generated with [Stainless](https://www.stainless.com/).
|
|
10
10
|
|
|
@@ -145,8 +145,10 @@ Note that requests which time out will be [retried twice by default](#retries).
|
|
|
145
145
|
### Accessing raw Response data (e.g., headers)
|
|
146
146
|
|
|
147
147
|
The "raw" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return.
|
|
148
|
+
This method returns as soon as the headers for a successful response are received and does not consume the response body, so you are free to write custom parsing or streaming logic.
|
|
148
149
|
|
|
149
150
|
You can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.
|
|
151
|
+
Unlike `.asResponse()` this method consumes the body, returning once it is parsed.
|
|
150
152
|
|
|
151
153
|
<!-- prettier-ignore -->
|
|
152
154
|
```ts
|
|
@@ -175,6 +177,59 @@ console.log(raw.headers.get('X-My-Header'));
|
|
|
175
177
|
console.log(imageToVideo.id);
|
|
176
178
|
```
|
|
177
179
|
|
|
180
|
+
### Logging
|
|
181
|
+
|
|
182
|
+
> [!IMPORTANT]
|
|
183
|
+
> All log messages are intended for debugging only. The format and content of log messages
|
|
184
|
+
> may change between releases.
|
|
185
|
+
|
|
186
|
+
#### Log levels
|
|
187
|
+
|
|
188
|
+
The log level can be configured in two ways:
|
|
189
|
+
|
|
190
|
+
1. Via the `RUNWAYML_LOG` environment variable
|
|
191
|
+
2. Using the `logLevel` client option (overrides the environment variable if set)
|
|
192
|
+
|
|
193
|
+
```ts
|
|
194
|
+
import RunwayML from '@runwayml/sdk';
|
|
195
|
+
|
|
196
|
+
const client = new RunwayML({
|
|
197
|
+
logLevel: 'debug', // Show all log messages
|
|
198
|
+
});
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Available log levels, from most to least verbose:
|
|
202
|
+
|
|
203
|
+
- `'debug'` - Show debug messages, info, warnings, and errors
|
|
204
|
+
- `'info'` - Show info messages, warnings, and errors
|
|
205
|
+
- `'warn'` - Show warnings and errors (default)
|
|
206
|
+
- `'error'` - Show only errors
|
|
207
|
+
- `'off'` - Disable all logging
|
|
208
|
+
|
|
209
|
+
At the `'debug'` level, all HTTP requests and responses are logged, including headers and bodies.
|
|
210
|
+
Some authentication-related headers are redacted, but sensitive data in request and response bodies
|
|
211
|
+
may still be visible.
|
|
212
|
+
|
|
213
|
+
#### Custom logger
|
|
214
|
+
|
|
215
|
+
By default, this library logs to `globalThis.console`. You can also provide a custom logger.
|
|
216
|
+
Most logging libraries are supported, including [pino](https://www.npmjs.com/package/pino), [winston](https://www.npmjs.com/package/winston), [bunyan](https://www.npmjs.com/package/bunyan), [consola](https://www.npmjs.com/package/consola), [signale](https://www.npmjs.com/package/signale), and [@std/log](https://jsr.io/@std/log). If your logger doesn't work, please open an issue.
|
|
217
|
+
|
|
218
|
+
When providing a custom logger, the `logLevel` option still controls which messages are emitted, messages
|
|
219
|
+
below the configured level will not be sent to your logger.
|
|
220
|
+
|
|
221
|
+
```ts
|
|
222
|
+
import RunwayML from '@runwayml/sdk';
|
|
223
|
+
import pino from 'pino';
|
|
224
|
+
|
|
225
|
+
const logger = pino();
|
|
226
|
+
|
|
227
|
+
const client = new RunwayML({
|
|
228
|
+
logger: logger.child({ name: 'RunwayML' }),
|
|
229
|
+
logLevel: 'debug', // Send all messages to pino, allowing it to filter
|
|
230
|
+
});
|
|
231
|
+
```
|
|
232
|
+
|
|
178
233
|
### Making custom/undocumented requests
|
|
179
234
|
|
|
180
235
|
This library is typed for convenient access to the documented API. If you need to access undocumented
|
|
@@ -199,9 +254,8 @@ parameter. This library doesn't validate at runtime that the request matches the
|
|
|
199
254
|
send will be sent as-is.
|
|
200
255
|
|
|
201
256
|
```ts
|
|
202
|
-
client.
|
|
203
|
-
|
|
204
|
-
bar: 12,
|
|
257
|
+
client.imageToVideo.create({
|
|
258
|
+
// ...
|
|
205
259
|
// @ts-expect-error baz is not yet public
|
|
206
260
|
baz: 'undocumented option',
|
|
207
261
|
});
|
|
@@ -221,74 +275,85 @@ validate or strip extra properties from the response from the API.
|
|
|
221
275
|
|
|
222
276
|
### Customizing the fetch client
|
|
223
277
|
|
|
224
|
-
By default, this library
|
|
278
|
+
By default, this library expects a global `fetch` function is defined.
|
|
225
279
|
|
|
226
|
-
If you
|
|
227
|
-
(for example, if you are running Node with `--experimental-fetch` or using NextJS which polyfills with `undici`),
|
|
228
|
-
add the following import before your first import `from "RunwayML"`:
|
|
280
|
+
If you want to use a different `fetch` function, you can either polyfill the global:
|
|
229
281
|
|
|
230
282
|
```ts
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
import RunwayML from '@runwayml/sdk';
|
|
283
|
+
import fetch from 'my-fetch';
|
|
284
|
+
|
|
285
|
+
globalThis.fetch = fetch;
|
|
235
286
|
```
|
|
236
287
|
|
|
237
|
-
|
|
238
|
-
|
|
288
|
+
Or pass it to the client:
|
|
289
|
+
|
|
290
|
+
```ts
|
|
291
|
+
import RunwayML from '@runwayml/sdk';
|
|
292
|
+
import fetch from 'my-fetch';
|
|
293
|
+
|
|
294
|
+
const client = new RunwayML({ fetch });
|
|
295
|
+
```
|
|
239
296
|
|
|
240
|
-
###
|
|
297
|
+
### Fetch options
|
|
241
298
|
|
|
242
|
-
|
|
243
|
-
which can be used to inspect or alter the `Request` or `Response` before/after each request:
|
|
299
|
+
If you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.)
|
|
244
300
|
|
|
245
301
|
```ts
|
|
246
|
-
import { fetch } from 'undici'; // as one example
|
|
247
302
|
import RunwayML from '@runwayml/sdk';
|
|
248
303
|
|
|
249
304
|
const client = new RunwayML({
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
const response = await fetch(url, init);
|
|
253
|
-
console.log('Got response', response);
|
|
254
|
-
return response;
|
|
305
|
+
fetchOptions: {
|
|
306
|
+
// `RequestInit` options
|
|
255
307
|
},
|
|
256
308
|
});
|
|
257
309
|
```
|
|
258
310
|
|
|
259
|
-
|
|
260
|
-
This is intended for debugging purposes only and may change in the future without notice.
|
|
311
|
+
#### Configuring proxies
|
|
261
312
|
|
|
262
|
-
|
|
313
|
+
To modify proxy behavior, you can provide custom `fetchOptions` that add runtime-specific proxy
|
|
314
|
+
options to requests:
|
|
263
315
|
|
|
264
|
-
|
|
316
|
+
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg" align="top" width="18" height="21"> **Node** <sup>[[docs](https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch)]</sup>
|
|
265
317
|
|
|
266
|
-
If you would like to disable or customize this behavior, for example to use the API behind a proxy, you can pass an `httpAgent` which is used for all requests (be they http or https), for example:
|
|
267
|
-
|
|
268
|
-
<!-- prettier-ignore -->
|
|
269
318
|
```ts
|
|
270
|
-
import
|
|
271
|
-
import
|
|
319
|
+
import RunwayML from '@runwayml/sdk';
|
|
320
|
+
import * as undici from 'undici';
|
|
272
321
|
|
|
273
|
-
|
|
322
|
+
const proxyAgent = new undici.ProxyAgent('http://localhost:8888');
|
|
274
323
|
const client = new RunwayML({
|
|
275
|
-
|
|
324
|
+
fetchOptions: {
|
|
325
|
+
dispatcher: proxyAgent,
|
|
326
|
+
},
|
|
276
327
|
});
|
|
328
|
+
```
|
|
277
329
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
330
|
+
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg" align="top" width="18" height="21"> **Bun** <sup>[[docs](https://bun.sh/guides/http/proxy)]</sup>
|
|
331
|
+
|
|
332
|
+
```ts
|
|
333
|
+
import RunwayML from '@runwayml/sdk';
|
|
334
|
+
|
|
335
|
+
const client = new RunwayML({
|
|
336
|
+
fetchOptions: {
|
|
337
|
+
proxy: 'http://localhost:8888',
|
|
285
338
|
},
|
|
286
|
-
|
|
287
|
-
|
|
339
|
+
});
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg" align="top" width="18" height="21"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>
|
|
343
|
+
|
|
344
|
+
```ts
|
|
345
|
+
import RunwayML from 'npm:@runwayml/sdk';
|
|
346
|
+
|
|
347
|
+
const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });
|
|
348
|
+
const client = new RunwayML({
|
|
349
|
+
fetchOptions: {
|
|
350
|
+
client: httpClient,
|
|
288
351
|
},
|
|
289
|
-
);
|
|
352
|
+
});
|
|
290
353
|
```
|
|
291
354
|
|
|
355
|
+
## Frequently Asked Questions
|
|
356
|
+
|
|
292
357
|
## Semantic versioning
|
|
293
358
|
|
|
294
359
|
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
|
|
@@ -303,11 +368,11 @@ We are keen for your feedback; please open an [issue](https://www.github.com/run
|
|
|
303
368
|
|
|
304
369
|
## Requirements
|
|
305
370
|
|
|
306
|
-
TypeScript >= 4.
|
|
371
|
+
TypeScript >= 4.9 is supported.
|
|
307
372
|
|
|
308
373
|
The following runtimes are supported:
|
|
309
374
|
|
|
310
|
-
- Node.js
|
|
375
|
+
- Node.js 20 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
|
|
311
376
|
- Deno v1.28.0 or higher.
|
|
312
377
|
- Bun 1.0 or later.
|
|
313
378
|
- Cloudflare Workers.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.d.mts","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/api-promise.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.d.ts","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/api-promise.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
/** @deprecated Import from ./core/api-promise instead */
|
|
5
|
+
tslib_1.__exportStar(require("./core/api-promise.js"), exports);
|
|
6
|
+
//# sourceMappingURL=api-promise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.js","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,gEAAmC"}
|
package/api-promise.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.mjs","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/bin/cli
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { spawnSync } = require('child_process');
|
|
4
|
+
|
|
5
|
+
const commands = {
|
|
6
|
+
migrate: {
|
|
7
|
+
description:
|
|
8
|
+
'Run migrations to update your code using @runwayml/sdk@2.11.0 to be compatible with @runwayml/sdk@3.0.0',
|
|
9
|
+
fn: () => {
|
|
10
|
+
const result = spawnSync(
|
|
11
|
+
'npx',
|
|
12
|
+
[
|
|
13
|
+
'-y',
|
|
14
|
+
'https://github.com/stainless-api/migrate-ts/releases/download/0.0.2/stainless-api-migrate-0.0.2-6.tgz',
|
|
15
|
+
'--migrationConfig',
|
|
16
|
+
require.resolve('./migration-config.json'),
|
|
17
|
+
...process.argv.slice(3),
|
|
18
|
+
],
|
|
19
|
+
{ stdio: 'inherit' },
|
|
20
|
+
);
|
|
21
|
+
if (result.status !== 0) {
|
|
22
|
+
process.exit(result.status);
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
function exitWithHelp() {
|
|
29
|
+
console.log(`Usage: runwayml-sdk <subcommand>`);
|
|
30
|
+
console.log();
|
|
31
|
+
console.log('Subcommands:');
|
|
32
|
+
|
|
33
|
+
for (const [name, info] of Object.entries(commands)) {
|
|
34
|
+
console.log(` ${name} ${info.description}`);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
console.log();
|
|
38
|
+
process.exit(1);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (process.argv.length < 3) {
|
|
42
|
+
exitWithHelp();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const commandName = process.argv[2];
|
|
46
|
+
|
|
47
|
+
const command = commands[commandName];
|
|
48
|
+
if (!command) {
|
|
49
|
+
console.log(`Unknown subcommand ${commandName}.`);
|
|
50
|
+
exitWithHelp();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
command.fn();
|
package/client.d.mts
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import type { RequestInit, RequestInfo } from "./internal/builtin-types.mjs";
|
|
2
|
+
import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.mjs";
|
|
3
|
+
export type { Logger, LogLevel } from "./internal/utils/log.mjs";
|
|
4
|
+
import * as Opts from "./internal/request-options.mjs";
|
|
5
|
+
import * as Errors from "./core/error.mjs";
|
|
6
|
+
import * as Uploads from "./core/uploads.mjs";
|
|
7
|
+
import * as API from "./resources/index.mjs";
|
|
8
|
+
import { APIPromise } from "./core/api-promise.mjs";
|
|
9
|
+
import { CharacterPerformance, CharacterPerformanceCreateParams, CharacterPerformanceCreateResponse } from "./resources/character-performance.mjs";
|
|
10
|
+
import { ImageToVideo, ImageToVideoCreateParams, ImageToVideoCreateResponse } from "./resources/image-to-video.mjs";
|
|
11
|
+
import { Organization, OrganizationRetrieveResponse, OrganizationRetrieveUsageParams, OrganizationRetrieveUsageResponse } from "./resources/organization.mjs";
|
|
12
|
+
import { TaskRetrieveResponse, Tasks } from "./resources/tasks.mjs";
|
|
13
|
+
import { TextToImage, TextToImageCreateParams, TextToImageCreateResponse } from "./resources/text-to-image.mjs";
|
|
14
|
+
import { TextToSpeech, TextToSpeechCreateParams, TextToSpeechCreateResponse } from "./resources/text-to-speech.mjs";
|
|
15
|
+
import { TextToVideo, TextToVideoCreateParams, TextToVideoCreateResponse } from "./resources/text-to-video.mjs";
|
|
16
|
+
import { VideoToVideo, VideoToVideoCreateParams, VideoToVideoCreateResponse } from "./resources/video-to-video.mjs";
|
|
17
|
+
import { VideoUpscale, VideoUpscaleCreateParams, VideoUpscaleCreateResponse } from "./resources/video-upscale.mjs";
|
|
18
|
+
import { type Fetch } from "./internal/builtin-types.mjs";
|
|
19
|
+
import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
|
|
20
|
+
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
|
|
21
|
+
import { type LogLevel, type Logger } from "./internal/utils/log.mjs";
|
|
22
|
+
export interface ClientOptions {
|
|
23
|
+
/**
|
|
24
|
+
* Defaults to process.env['RUNWAYML_API_SECRET'].
|
|
25
|
+
*/
|
|
26
|
+
apiKey?: string | undefined;
|
|
27
|
+
runwayVersion?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
30
|
+
*
|
|
31
|
+
* Defaults to process.env['RUNWAYML_BASE_URL'].
|
|
32
|
+
*/
|
|
33
|
+
baseURL?: string | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
36
|
+
* from the server before timing out a single request.
|
|
37
|
+
*
|
|
38
|
+
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
39
|
+
* much longer than this timeout before the promise succeeds or fails.
|
|
40
|
+
*
|
|
41
|
+
* @unit milliseconds
|
|
42
|
+
*/
|
|
43
|
+
timeout?: number | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Additional `RequestInit` options to be passed to `fetch` calls.
|
|
46
|
+
* Properties will be overridden by per-request `fetchOptions`.
|
|
47
|
+
*/
|
|
48
|
+
fetchOptions?: MergedRequestInit | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Specify a custom `fetch` function implementation.
|
|
51
|
+
*
|
|
52
|
+
* If not provided, we expect that `fetch` is defined globally.
|
|
53
|
+
*/
|
|
54
|
+
fetch?: Fetch | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
57
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
58
|
+
*
|
|
59
|
+
* @default 2
|
|
60
|
+
*/
|
|
61
|
+
maxRetries?: number | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Default headers to include with every request to the API.
|
|
64
|
+
*
|
|
65
|
+
* These can be removed in individual requests by explicitly setting the
|
|
66
|
+
* header to `null` in request options.
|
|
67
|
+
*/
|
|
68
|
+
defaultHeaders?: HeadersLike | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Default query parameters to include with every request to the API.
|
|
71
|
+
*
|
|
72
|
+
* These can be removed in individual requests by explicitly setting the
|
|
73
|
+
* param to `undefined` in request options.
|
|
74
|
+
*/
|
|
75
|
+
defaultQuery?: Record<string, string | undefined> | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Set the log level.
|
|
78
|
+
*
|
|
79
|
+
* Defaults to process.env['RUNWAYML_LOG'] or 'warn' if it isn't set.
|
|
80
|
+
*/
|
|
81
|
+
logLevel?: LogLevel | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Set the logger.
|
|
84
|
+
*
|
|
85
|
+
* Defaults to globalThis.console.
|
|
86
|
+
*/
|
|
87
|
+
logger?: Logger | undefined;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* API Client for interfacing with the RunwayML API.
|
|
91
|
+
*/
|
|
92
|
+
export declare class RunwayML {
|
|
93
|
+
#private;
|
|
94
|
+
apiKey: string;
|
|
95
|
+
runwayVersion: string;
|
|
96
|
+
baseURL: string;
|
|
97
|
+
maxRetries: number;
|
|
98
|
+
timeout: number;
|
|
99
|
+
logger: Logger | undefined;
|
|
100
|
+
logLevel: LogLevel | undefined;
|
|
101
|
+
fetchOptions: MergedRequestInit | undefined;
|
|
102
|
+
private fetch;
|
|
103
|
+
protected idempotencyHeader?: string;
|
|
104
|
+
private _options;
|
|
105
|
+
/**
|
|
106
|
+
* API Client for interfacing with the RunwayML API.
|
|
107
|
+
*
|
|
108
|
+
* @param {string | undefined} [opts.apiKey=process.env['RUNWAYML_API_SECRET'] ?? undefined]
|
|
109
|
+
* @param {string | undefined} [opts.runwayVersion=2024-11-06]
|
|
110
|
+
* @param {string} [opts.baseURL=process.env['RUNWAYML_BASE_URL'] ?? https://api.dev.runwayml.com] - Override the default base URL for the API.
|
|
111
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
112
|
+
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
113
|
+
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
114
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
115
|
+
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
116
|
+
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
117
|
+
*/
|
|
118
|
+
constructor({ baseURL, apiKey, runwayVersion, ...opts }?: ClientOptions);
|
|
119
|
+
/**
|
|
120
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
121
|
+
*/
|
|
122
|
+
withOptions(options: Partial<ClientOptions>): this;
|
|
123
|
+
protected defaultQuery(): Record<string, string | undefined> | undefined;
|
|
124
|
+
protected validateHeaders({ values, nulls }: NullableHeaders): void;
|
|
125
|
+
protected authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
126
|
+
/**
|
|
127
|
+
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
128
|
+
*/
|
|
129
|
+
protected stringifyQuery(query: Record<string, unknown>): string;
|
|
130
|
+
private getUserAgent;
|
|
131
|
+
protected defaultIdempotencyKey(): string;
|
|
132
|
+
protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
|
|
133
|
+
buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
|
|
134
|
+
/**
|
|
135
|
+
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
|
136
|
+
*/
|
|
137
|
+
protected prepareOptions(options: FinalRequestOptions): Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Used as a callback for mutating the given `RequestInit` object.
|
|
140
|
+
*
|
|
141
|
+
* This is useful for cases where you want to add certain headers based off of
|
|
142
|
+
* the request properties, e.g. `method` or `url`.
|
|
143
|
+
*/
|
|
144
|
+
protected prepareRequest(request: RequestInit, { url, options }: {
|
|
145
|
+
url: string;
|
|
146
|
+
options: FinalRequestOptions;
|
|
147
|
+
}): Promise<void>;
|
|
148
|
+
get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
149
|
+
post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
150
|
+
patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
151
|
+
put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
152
|
+
delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
153
|
+
private methodRequest;
|
|
154
|
+
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
155
|
+
private makeRequest;
|
|
156
|
+
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
157
|
+
private shouldRetry;
|
|
158
|
+
private retryRequest;
|
|
159
|
+
private calculateDefaultRetryTimeoutMillis;
|
|
160
|
+
buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
|
|
161
|
+
retryCount?: number;
|
|
162
|
+
}): Promise<{
|
|
163
|
+
req: FinalizedRequestInit;
|
|
164
|
+
url: string;
|
|
165
|
+
timeout: number;
|
|
166
|
+
}>;
|
|
167
|
+
private buildHeaders;
|
|
168
|
+
private buildBody;
|
|
169
|
+
static RunwayML: typeof RunwayML;
|
|
170
|
+
static DEFAULT_TIMEOUT: number;
|
|
171
|
+
static RunwayMLError: typeof Errors.RunwayMLError;
|
|
172
|
+
static APIError: typeof Errors.APIError;
|
|
173
|
+
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
174
|
+
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
175
|
+
static APIUserAbortError: typeof Errors.APIUserAbortError;
|
|
176
|
+
static NotFoundError: typeof Errors.NotFoundError;
|
|
177
|
+
static ConflictError: typeof Errors.ConflictError;
|
|
178
|
+
static RateLimitError: typeof Errors.RateLimitError;
|
|
179
|
+
static BadRequestError: typeof Errors.BadRequestError;
|
|
180
|
+
static AuthenticationError: typeof Errors.AuthenticationError;
|
|
181
|
+
static InternalServerError: typeof Errors.InternalServerError;
|
|
182
|
+
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
183
|
+
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
184
|
+
static toFile: typeof Uploads.toFile;
|
|
185
|
+
tasks: API.Tasks;
|
|
186
|
+
imageToVideo: API.ImageToVideo;
|
|
187
|
+
videoToVideo: API.VideoToVideo;
|
|
188
|
+
textToVideo: API.TextToVideo;
|
|
189
|
+
textToImage: API.TextToImage;
|
|
190
|
+
videoUpscale: API.VideoUpscale;
|
|
191
|
+
characterPerformance: API.CharacterPerformance;
|
|
192
|
+
textToSpeech: API.TextToSpeech;
|
|
193
|
+
organization: API.Organization;
|
|
194
|
+
}
|
|
195
|
+
export declare namespace RunwayML {
|
|
196
|
+
export type RequestOptions = Opts.RequestOptions;
|
|
197
|
+
export { Tasks as Tasks, type TaskRetrieveResponse as TaskRetrieveResponse };
|
|
198
|
+
export { ImageToVideo as ImageToVideo, type ImageToVideoCreateResponse as ImageToVideoCreateResponse, type ImageToVideoCreateParams as ImageToVideoCreateParams, };
|
|
199
|
+
export { VideoToVideo as VideoToVideo, type VideoToVideoCreateResponse as VideoToVideoCreateResponse, type VideoToVideoCreateParams as VideoToVideoCreateParams, };
|
|
200
|
+
export { TextToVideo as TextToVideo, type TextToVideoCreateResponse as TextToVideoCreateResponse, type TextToVideoCreateParams as TextToVideoCreateParams, };
|
|
201
|
+
export { TextToImage as TextToImage, type TextToImageCreateResponse as TextToImageCreateResponse, type TextToImageCreateParams as TextToImageCreateParams, };
|
|
202
|
+
export { VideoUpscale as VideoUpscale, type VideoUpscaleCreateResponse as VideoUpscaleCreateResponse, type VideoUpscaleCreateParams as VideoUpscaleCreateParams, };
|
|
203
|
+
export { CharacterPerformance as CharacterPerformance, type CharacterPerformanceCreateResponse as CharacterPerformanceCreateResponse, type CharacterPerformanceCreateParams as CharacterPerformanceCreateParams, };
|
|
204
|
+
export { TextToSpeech as TextToSpeech, type TextToSpeechCreateResponse as TextToSpeechCreateResponse, type TextToSpeechCreateParams as TextToSpeechCreateParams, };
|
|
205
|
+
export { Organization as Organization, type OrganizationRetrieveResponse as OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse as OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams as OrganizationRetrieveUsageParams, };
|
|
206
|
+
}
|
|
207
|
+
//# sourceMappingURL=client.d.mts.map
|
package/client.d.mts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAET,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EACL,oBAAoB,EACpB,gCAAgC,EA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