casedev 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +366 -0
- 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/client.d.mts +227 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +227 -0
- package/client.d.ts.map +1 -0
- package/client.js +504 -0
- package/client.js.map +1 -0
- package/client.mjs +500 -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 +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- 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/package.json +138 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/actions/actions.d.mts +10 -0
- package/resources/actions/actions.d.mts.map +1 -0
- package/resources/actions/actions.d.ts +10 -0
- package/resources/actions/actions.d.ts.map +1 -0
- package/resources/actions/actions.js +17 -0
- package/resources/actions/actions.js.map +1 -0
- package/resources/actions/actions.mjs +12 -0
- package/resources/actions/actions.mjs.map +1 -0
- package/resources/actions/index.d.mts +3 -0
- package/resources/actions/index.d.mts.map +1 -0
- package/resources/actions/index.d.ts +3 -0
- package/resources/actions/index.d.ts.map +1 -0
- package/resources/actions/index.js +9 -0
- package/resources/actions/index.js.map +1 -0
- package/resources/actions/index.mjs +4 -0
- package/resources/actions/index.mjs.map +1 -0
- package/resources/actions/v1.d.mts +122 -0
- package/resources/actions/v1.d.mts.map +1 -0
- package/resources/actions/v1.d.ts +122 -0
- package/resources/actions/v1.d.ts.map +1 -0
- package/resources/actions/v1.js +71 -0
- package/resources/actions/v1.js.map +1 -0
- package/resources/actions/v1.mjs +67 -0
- package/resources/actions/v1.mjs.map +1 -0
- package/resources/actions.d.mts +2 -0
- package/resources/actions.d.mts.map +1 -0
- package/resources/actions.d.ts +2 -0
- package/resources/actions.d.ts.map +1 -0
- package/resources/actions.js +6 -0
- package/resources/actions.js.map +1 -0
- package/resources/actions.mjs +3 -0
- package/resources/actions.mjs.map +1 -0
- package/resources/compute/compute.d.mts +10 -0
- package/resources/compute/compute.d.mts.map +1 -0
- package/resources/compute/compute.d.ts +10 -0
- package/resources/compute/compute.d.ts.map +1 -0
- package/resources/compute/compute.js +17 -0
- package/resources/compute/compute.js.map +1 -0
- package/resources/compute/compute.mjs +12 -0
- package/resources/compute/compute.mjs.map +1 -0
- package/resources/compute/index.d.mts +3 -0
- package/resources/compute/index.d.mts.map +1 -0
- package/resources/compute/index.d.ts +3 -0
- package/resources/compute/index.d.ts.map +1 -0
- package/resources/compute/index.js +9 -0
- package/resources/compute/index.js.map +1 -0
- package/resources/compute/index.mjs +4 -0
- package/resources/compute/index.mjs.map +1 -0
- package/resources/compute/v1/environments.d.mts +112 -0
- package/resources/compute/v1/environments.d.mts.map +1 -0
- package/resources/compute/v1/environments.d.ts +112 -0
- package/resources/compute/v1/environments.d.ts.map +1 -0
- package/resources/compute/v1/environments.js +93 -0
- package/resources/compute/v1/environments.js.map +1 -0
- package/resources/compute/v1/environments.mjs +89 -0
- package/resources/compute/v1/environments.mjs.map +1 -0
- package/resources/compute/v1/functions.d.mts +43 -0
- package/resources/compute/v1/functions.d.mts.map +1 -0
- package/resources/compute/v1/functions.d.ts +43 -0
- package/resources/compute/v1/functions.d.ts.map +1 -0
- package/resources/compute/v1/functions.js +45 -0
- package/resources/compute/v1/functions.js.map +1 -0
- package/resources/compute/v1/functions.mjs +41 -0
- package/resources/compute/v1/functions.mjs.map +1 -0
- package/resources/compute/v1/index.d.mts +7 -0
- package/resources/compute/v1/index.d.mts.map +1 -0
- package/resources/compute/v1/index.d.ts +7 -0
- package/resources/compute/v1/index.d.ts.map +1 -0
- package/resources/compute/v1/index.js +17 -0
- package/resources/compute/v1/index.js.map +1 -0
- package/resources/compute/v1/index.mjs +8 -0
- package/resources/compute/v1/index.mjs.map +1 -0
- package/resources/compute/v1/invoke.d.mts +73 -0
- package/resources/compute/v1/invoke.d.mts.map +1 -0
- package/resources/compute/v1/invoke.d.ts +73 -0
- package/resources/compute/v1/invoke.d.ts.map +1 -0
- package/resources/compute/v1/invoke.js +27 -0
- package/resources/compute/v1/invoke.js.map +1 -0
- package/resources/compute/v1/invoke.mjs +23 -0
- package/resources/compute/v1/invoke.mjs.map +1 -0
- package/resources/compute/v1/runs.d.mts +45 -0
- package/resources/compute/v1/runs.d.mts.map +1 -0
- package/resources/compute/v1/runs.d.ts +45 -0
- package/resources/compute/v1/runs.d.ts.map +1 -0
- package/resources/compute/v1/runs.js +44 -0
- package/resources/compute/v1/runs.js.map +1 -0
- package/resources/compute/v1/runs.mjs +40 -0
- package/resources/compute/v1/runs.mjs.map +1 -0
- package/resources/compute/v1/secrets.d.mts +149 -0
- package/resources/compute/v1/secrets.d.mts.map +1 -0
- package/resources/compute/v1/secrets.d.ts +149 -0
- package/resources/compute/v1/secrets.d.ts.map +1 -0
- package/resources/compute/v1/secrets.js +108 -0
- package/resources/compute/v1/secrets.js.map +1 -0
- package/resources/compute/v1/secrets.mjs +104 -0
- package/resources/compute/v1/secrets.mjs.map +1 -0
- package/resources/compute/v1/v1.d.mts +238 -0
- package/resources/compute/v1/v1.d.mts.map +1 -0
- package/resources/compute/v1/v1.d.ts +238 -0
- package/resources/compute/v1/v1.d.ts.map +1 -0
- package/resources/compute/v1/v1.js +84 -0
- package/resources/compute/v1/v1.js.map +1 -0
- package/resources/compute/v1/v1.mjs +79 -0
- package/resources/compute/v1/v1.mjs.map +1 -0
- package/resources/compute/v1.d.mts +2 -0
- package/resources/compute/v1.d.mts.map +1 -0
- package/resources/compute/v1.d.ts +2 -0
- package/resources/compute/v1.d.ts.map +1 -0
- package/resources/compute/v1.js +6 -0
- package/resources/compute/v1.js.map +1 -0
- package/resources/compute/v1.mjs +3 -0
- package/resources/compute/v1.mjs.map +1 -0
- package/resources/compute.d.mts +2 -0
- package/resources/compute.d.mts.map +1 -0
- package/resources/compute.d.ts +2 -0
- package/resources/compute.d.ts.map +1 -0
- package/resources/compute.js +6 -0
- package/resources/compute.js.map +1 -0
- package/resources/compute.mjs +3 -0
- package/resources/compute.mjs.map +1 -0
- package/resources/convert/convert.d.mts +10 -0
- package/resources/convert/convert.d.mts.map +1 -0
- package/resources/convert/convert.d.ts +10 -0
- package/resources/convert/convert.d.ts.map +1 -0
- package/resources/convert/convert.js +17 -0
- package/resources/convert/convert.js.map +1 -0
- package/resources/convert/convert.mjs +12 -0
- package/resources/convert/convert.mjs.map +1 -0
- package/resources/convert/index.d.mts +3 -0
- package/resources/convert/index.d.mts.map +1 -0
- package/resources/convert/index.d.ts +3 -0
- package/resources/convert/index.d.ts.map +1 -0
- package/resources/convert/index.js +9 -0
- package/resources/convert/index.js.map +1 -0
- package/resources/convert/index.mjs +4 -0
- package/resources/convert/index.mjs.map +1 -0
- package/resources/convert/v1/index.d.mts +3 -0
- package/resources/convert/v1/index.d.mts.map +1 -0
- package/resources/convert/v1/index.d.ts +3 -0
- package/resources/convert/v1/index.d.ts.map +1 -0
- package/resources/convert/v1/index.js +9 -0
- package/resources/convert/v1/index.js.map +1 -0
- package/resources/convert/v1/index.mjs +4 -0
- package/resources/convert/v1/index.mjs.map +1 -0
- package/resources/convert/v1/jobs.d.mts +17 -0
- package/resources/convert/v1/jobs.d.mts.map +1 -0
- package/resources/convert/v1/jobs.d.ts +17 -0
- package/resources/convert/v1/jobs.d.ts.map +1 -0
- package/resources/convert/v1/jobs.js +32 -0
- package/resources/convert/v1/jobs.js.map +1 -0
- package/resources/convert/v1/jobs.mjs +28 -0
- package/resources/convert/v1/jobs.mjs.map +1 -0
- package/resources/convert/v1/v1.d.mts +101 -0
- package/resources/convert/v1/v1.d.mts.map +1 -0
- package/resources/convert/v1/v1.d.ts +101 -0
- package/resources/convert/v1/v1.d.ts.map +1 -0
- package/resources/convert/v1/v1.js +52 -0
- package/resources/convert/v1/v1.js.map +1 -0
- package/resources/convert/v1/v1.mjs +47 -0
- package/resources/convert/v1/v1.mjs.map +1 -0
- package/resources/convert/v1.d.mts +2 -0
- package/resources/convert/v1.d.mts.map +1 -0
- package/resources/convert/v1.d.ts +2 -0
- package/resources/convert/v1.d.ts.map +1 -0
- package/resources/convert/v1.js +6 -0
- package/resources/convert/v1.js.map +1 -0
- package/resources/convert/v1.mjs +3 -0
- package/resources/convert/v1.mjs.map +1 -0
- package/resources/convert.d.mts +2 -0
- package/resources/convert.d.mts.map +1 -0
- package/resources/convert.d.ts +2 -0
- package/resources/convert.d.ts.map +1 -0
- package/resources/convert.js +6 -0
- package/resources/convert.js.map +1 -0
- package/resources/convert.mjs +3 -0
- package/resources/convert.mjs.map +1 -0
- package/resources/format/format.d.mts +10 -0
- package/resources/format/format.d.mts.map +1 -0
- package/resources/format/format.d.ts +10 -0
- package/resources/format/format.d.ts.map +1 -0
- package/resources/format/format.js +17 -0
- package/resources/format/format.js.map +1 -0
- package/resources/format/format.mjs +12 -0
- package/resources/format/format.mjs.map +1 -0
- package/resources/format/index.d.mts +3 -0
- package/resources/format/index.d.mts.map +1 -0
- package/resources/format/index.d.ts +3 -0
- package/resources/format/index.d.ts.map +1 -0
- package/resources/format/index.js +9 -0
- package/resources/format/index.js.map +1 -0
- package/resources/format/index.mjs +4 -0
- package/resources/format/index.mjs.map +1 -0
- package/resources/format/v1/index.d.mts +3 -0
- package/resources/format/v1/index.d.mts.map +1 -0
- package/resources/format/v1/index.d.ts +3 -0
- package/resources/format/v1/index.d.ts.map +1 -0
- package/resources/format/v1/index.js +9 -0
- package/resources/format/v1/index.js.map +1 -0
- package/resources/format/v1/index.mjs +4 -0
- package/resources/format/v1/index.mjs.map +1 -0
- package/resources/format/v1/templates.d.mts +88 -0
- package/resources/format/v1/templates.d.mts.map +1 -0
- package/resources/format/v1/templates.d.ts +88 -0
- package/resources/format/v1/templates.d.ts.map +1 -0
- package/resources/format/v1/templates.js +45 -0
- package/resources/format/v1/templates.js.map +1 -0
- package/resources/format/v1/templates.mjs +41 -0
- package/resources/format/v1/templates.mjs.map +1 -0
- package/resources/format/v1/v1.d.mts +62 -0
- package/resources/format/v1/v1.d.mts.map +1 -0
- package/resources/format/v1/v1.d.ts +62 -0
- package/resources/format/v1/v1.d.ts.map +1 -0
- package/resources/format/v1/v1.js +31 -0
- package/resources/format/v1/v1.js.map +1 -0
- package/resources/format/v1/v1.mjs +26 -0
- package/resources/format/v1/v1.mjs.map +1 -0
- package/resources/format/v1.d.mts +2 -0
- package/resources/format/v1.d.mts.map +1 -0
- package/resources/format/v1.d.ts +2 -0
- package/resources/format/v1.d.ts.map +1 -0
- package/resources/format/v1.js +6 -0
- package/resources/format/v1.js.map +1 -0
- package/resources/format/v1.mjs +3 -0
- package/resources/format/v1.mjs.map +1 -0
- package/resources/format.d.mts +2 -0
- package/resources/format.d.mts.map +1 -0
- package/resources/format.d.ts +2 -0
- package/resources/format.d.ts.map +1 -0
- package/resources/format.js +6 -0
- package/resources/format.js.map +1 -0
- package/resources/format.mjs +3 -0
- package/resources/format.mjs.map +1 -0
- package/resources/index.d.mts +13 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +13 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +29 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +14 -0
- package/resources/index.mjs.map +1 -0
- package/resources/llm/index.d.mts +3 -0
- package/resources/llm/index.d.mts.map +1 -0
- package/resources/llm/index.d.ts +3 -0
- package/resources/llm/index.d.ts.map +1 -0
- package/resources/llm/index.js +9 -0
- package/resources/llm/index.js.map +1 -0
- package/resources/llm/index.mjs +4 -0
- package/resources/llm/index.mjs.map +1 -0
- package/resources/llm/llm.d.mts +31 -0
- package/resources/llm/llm.d.mts.map +1 -0
- package/resources/llm/llm.d.ts +31 -0
- package/resources/llm/llm.d.ts.map +1 -0
- package/resources/llm/llm.js +42 -0
- package/resources/llm/llm.js.map +1 -0
- package/resources/llm/llm.mjs +37 -0
- package/resources/llm/llm.mjs.map +1 -0
- package/resources/llm/v1/chat.d.mts +108 -0
- package/resources/llm/v1/chat.d.mts.map +1 -0
- package/resources/llm/v1/chat.d.ts +108 -0
- package/resources/llm/v1/chat.d.ts.map +1 -0
- package/resources/llm/v1/chat.js +25 -0
- package/resources/llm/v1/chat.js.map +1 -0
- package/resources/llm/v1/chat.mjs +21 -0
- package/resources/llm/v1/chat.mjs.map +1 -0
- package/resources/llm/v1/index.d.mts +3 -0
- package/resources/llm/v1/index.d.mts.map +1 -0
- package/resources/llm/v1/index.d.ts +3 -0
- package/resources/llm/v1/index.d.ts.map +1 -0
- package/resources/llm/v1/index.js +9 -0
- package/resources/llm/v1/index.js.map +1 -0
- package/resources/llm/v1/index.mjs +4 -0
- package/resources/llm/v1/index.mjs.map +1 -0
- package/resources/llm/v1/v1.d.mts +63 -0
- package/resources/llm/v1/v1.d.mts.map +1 -0
- package/resources/llm/v1/v1.d.ts +63 -0
- package/resources/llm/v1/v1.d.ts.map +1 -0
- package/resources/llm/v1/v1.js +57 -0
- package/resources/llm/v1/v1.js.map +1 -0
- package/resources/llm/v1/v1.mjs +52 -0
- package/resources/llm/v1/v1.mjs.map +1 -0
- package/resources/llm/v1.d.mts +2 -0
- package/resources/llm/v1.d.mts.map +1 -0
- package/resources/llm/v1.d.ts +2 -0
- package/resources/llm/v1.d.ts.map +1 -0
- package/resources/llm/v1.js +6 -0
- package/resources/llm/v1.js.map +1 -0
- package/resources/llm/v1.mjs +3 -0
- package/resources/llm/v1.mjs.map +1 -0
- package/resources/llm.d.mts +2 -0
- package/resources/llm.d.mts.map +1 -0
- package/resources/llm.d.ts +2 -0
- package/resources/llm.d.ts.map +1 -0
- package/resources/llm.js +6 -0
- package/resources/llm.js.map +1 -0
- package/resources/llm.mjs +3 -0
- package/resources/llm.mjs.map +1 -0
- package/resources/ocr/index.d.mts +3 -0
- package/resources/ocr/index.d.mts.map +1 -0
- package/resources/ocr/index.d.ts +3 -0
- package/resources/ocr/index.d.ts.map +1 -0
- package/resources/ocr/index.js +9 -0
- package/resources/ocr/index.js.map +1 -0
- package/resources/ocr/index.mjs +4 -0
- package/resources/ocr/index.mjs.map +1 -0
- package/resources/ocr/ocr.d.mts +10 -0
- package/resources/ocr/ocr.d.mts.map +1 -0
- package/resources/ocr/ocr.d.ts +10 -0
- package/resources/ocr/ocr.d.ts.map +1 -0
- package/resources/ocr/ocr.js +17 -0
- package/resources/ocr/ocr.js.map +1 -0
- package/resources/ocr/ocr.mjs +12 -0
- package/resources/ocr/ocr.mjs.map +1 -0
- package/resources/ocr/v1.d.mts +132 -0
- package/resources/ocr/v1.d.mts.map +1 -0
- package/resources/ocr/v1.d.ts +132 -0
- package/resources/ocr/v1.d.ts.map +1 -0
- package/resources/ocr/v1.js +58 -0
- package/resources/ocr/v1.js.map +1 -0
- package/resources/ocr/v1.mjs +54 -0
- package/resources/ocr/v1.mjs.map +1 -0
- package/resources/ocr.d.mts +2 -0
- package/resources/ocr.d.mts.map +1 -0
- package/resources/ocr.d.ts +2 -0
- package/resources/ocr.d.ts.map +1 -0
- package/resources/ocr.js +6 -0
- package/resources/ocr.js.map +1 -0
- package/resources/ocr.mjs +3 -0
- package/resources/ocr.mjs.map +1 -0
- package/resources/search/index.d.mts +3 -0
- package/resources/search/index.d.mts.map +1 -0
- package/resources/search/index.d.ts +3 -0
- package/resources/search/index.d.ts.map +1 -0
- package/resources/search/index.js +9 -0
- package/resources/search/index.js.map +1 -0
- package/resources/search/index.mjs +4 -0
- package/resources/search/index.mjs.map +1 -0
- package/resources/search/search.d.mts +10 -0
- package/resources/search/search.d.mts.map +1 -0
- package/resources/search/search.d.ts +10 -0
- package/resources/search/search.d.ts.map +1 -0
- package/resources/search/search.js +17 -0
- package/resources/search/search.js.map +1 -0
- package/resources/search/search.mjs +12 -0
- package/resources/search/search.mjs.map +1 -0
- package/resources/search/v1.d.mts +389 -0
- package/resources/search/v1.d.mts.map +1 -0
- package/resources/search/v1.d.ts +389 -0
- package/resources/search/v1.d.ts.map +1 -0
- package/resources/search/v1.js +65 -0
- package/resources/search/v1.js.map +1 -0
- package/resources/search/v1.mjs +61 -0
- package/resources/search/v1.mjs.map +1 -0
- package/resources/search.d.mts +2 -0
- package/resources/search.d.mts.map +1 -0
- package/resources/search.d.ts +2 -0
- package/resources/search.d.ts.map +1 -0
- package/resources/search.js +6 -0
- package/resources/search.js.map +1 -0
- package/resources/search.mjs +3 -0
- package/resources/search.mjs.map +1 -0
- package/resources/templates/index.d.mts +3 -0
- package/resources/templates/index.d.mts.map +1 -0
- package/resources/templates/index.d.ts +3 -0
- package/resources/templates/index.d.ts.map +1 -0
- package/resources/templates/index.js +9 -0
- package/resources/templates/index.js.map +1 -0
- package/resources/templates/index.mjs +4 -0
- package/resources/templates/index.mjs.map +1 -0
- package/resources/templates/templates.d.mts +10 -0
- package/resources/templates/templates.d.mts.map +1 -0
- package/resources/templates/templates.d.ts +10 -0
- package/resources/templates/templates.d.ts.map +1 -0
- package/resources/templates/templates.js +17 -0
- package/resources/templates/templates.js.map +1 -0
- package/resources/templates/templates.mjs +12 -0
- package/resources/templates/templates.mjs.map +1 -0
- package/resources/templates/v1.d.mts +128 -0
- package/resources/templates/v1.d.mts.map +1 -0
- package/resources/templates/v1.d.ts +128 -0
- package/resources/templates/v1.d.ts.map +1 -0
- package/resources/templates/v1.js +71 -0
- package/resources/templates/v1.js.map +1 -0
- package/resources/templates/v1.mjs +67 -0
- package/resources/templates/v1.mjs.map +1 -0
- package/resources/templates.d.mts +2 -0
- package/resources/templates.d.mts.map +1 -0
- package/resources/templates.d.ts +2 -0
- package/resources/templates.d.ts.map +1 -0
- package/resources/templates.js +6 -0
- package/resources/templates.js.map +1 -0
- package/resources/templates.mjs +3 -0
- package/resources/templates.mjs.map +1 -0
- package/resources/vault/graphrag.d.mts +30 -0
- package/resources/vault/graphrag.d.mts.map +1 -0
- package/resources/vault/graphrag.d.ts +30 -0
- package/resources/vault/graphrag.d.ts.map +1 -0
- package/resources/vault/graphrag.js +45 -0
- package/resources/vault/graphrag.js.map +1 -0
- package/resources/vault/graphrag.mjs +41 -0
- package/resources/vault/graphrag.mjs.map +1 -0
- package/resources/vault/index.d.mts +4 -0
- package/resources/vault/index.d.mts.map +1 -0
- package/resources/vault/index.d.ts +4 -0
- package/resources/vault/index.d.ts.map +1 -0
- package/resources/vault/index.js +11 -0
- package/resources/vault/index.js.map +1 -0
- package/resources/vault/index.mjs +5 -0
- package/resources/vault/index.mjs.map +1 -0
- package/resources/vault/objects.d.mts +159 -0
- package/resources/vault/objects.d.mts.map +1 -0
- package/resources/vault/objects.d.ts +159 -0
- package/resources/vault/objects.d.ts.map +1 -0
- package/resources/vault/objects.js +103 -0
- package/resources/vault/objects.js.map +1 -0
- package/resources/vault/objects.mjs +99 -0
- package/resources/vault/objects.mjs.map +1 -0
- package/resources/vault/vault.d.mts +326 -0
- package/resources/vault/vault.d.mts.map +1 -0
- package/resources/vault/vault.d.ts +326 -0
- package/resources/vault/vault.d.ts.map +1 -0
- package/resources/vault/vault.js +117 -0
- package/resources/vault/vault.js.map +1 -0
- package/resources/vault/vault.mjs +112 -0
- package/resources/vault/vault.mjs.map +1 -0
- package/resources/vault.d.mts +2 -0
- package/resources/vault.d.mts.map +1 -0
- package/resources/vault.d.ts +2 -0
- package/resources/vault.d.ts.map +1 -0
- package/resources/vault.js +6 -0
- package/resources/vault.js.map +1 -0
- package/resources/vault.mjs +3 -0
- package/resources/vault.mjs.map +1 -0
- package/resources/voice/index.d.mts +5 -0
- package/resources/voice/index.d.mts.map +1 -0
- package/resources/voice/index.d.ts +5 -0
- package/resources/voice/index.d.ts.map +1 -0
- package/resources/voice/index.js +13 -0
- package/resources/voice/index.js.map +1 -0
- package/resources/voice/index.mjs +6 -0
- package/resources/voice/index.mjs.map +1 -0
- package/resources/voice/streaming.d.mts +25 -0
- package/resources/voice/streaming.d.mts.map +1 -0
- package/resources/voice/streaming.d.ts +25 -0
- package/resources/voice/streaming.d.ts.map +1 -0
- package/resources/voice/streaming.js +34 -0
- package/resources/voice/streaming.js.map +1 -0
- package/resources/voice/streaming.mjs +30 -0
- package/resources/voice/streaming.mjs.map +1 -0
- package/resources/voice/transcription.d.mts +109 -0
- package/resources/voice/transcription.d.mts.map +1 -0
- package/resources/voice/transcription.d.ts +109 -0
- package/resources/voice/transcription.d.ts.map +1 -0
- package/resources/voice/transcription.js +46 -0
- package/resources/voice/transcription.js.map +1 -0
- package/resources/voice/transcription.mjs +42 -0
- package/resources/voice/transcription.mjs.map +1 -0
- package/resources/voice/v1/index.d.mts +3 -0
- package/resources/voice/v1/index.d.mts.map +1 -0
- package/resources/voice/v1/index.d.ts +3 -0
- package/resources/voice/v1/index.d.ts.map +1 -0
- package/resources/voice/v1/index.js +9 -0
- package/resources/voice/v1/index.js.map +1 -0
- package/resources/voice/v1/index.mjs +4 -0
- package/resources/voice/v1/index.mjs.map +1 -0
- package/resources/voice/v1/speak.d.mts +182 -0
- package/resources/voice/v1/speak.d.mts.map +1 -0
- package/resources/voice/v1/speak.d.ts +182 -0
- package/resources/voice/v1/speak.d.ts.map +1 -0
- package/resources/voice/v1/speak.js +57 -0
- package/resources/voice/v1/speak.js.map +1 -0
- package/resources/voice/v1/speak.mjs +53 -0
- package/resources/voice/v1/speak.mjs.map +1 -0
- package/resources/voice/v1/v1.d.mts +63 -0
- package/resources/voice/v1/v1.d.mts.map +1 -0
- package/resources/voice/v1/v1.d.ts +63 -0
- package/resources/voice/v1/v1.d.ts.map +1 -0
- package/resources/voice/v1/v1.js +36 -0
- package/resources/voice/v1/v1.js.map +1 -0
- package/resources/voice/v1/v1.mjs +31 -0
- package/resources/voice/v1/v1.mjs.map +1 -0
- package/resources/voice/v1.d.mts +2 -0
- package/resources/voice/v1.d.mts.map +1 -0
- package/resources/voice/v1.d.ts +2 -0
- package/resources/voice/v1.d.ts.map +1 -0
- package/resources/voice/v1.js +6 -0
- package/resources/voice/v1.js.map +1 -0
- package/resources/voice/v1.mjs +3 -0
- package/resources/voice/v1.mjs.map +1 -0
- package/resources/voice/voice.d.mts +18 -0
- package/resources/voice/voice.d.mts.map +1 -0
- package/resources/voice/voice.d.ts +18 -0
- package/resources/voice/voice.d.ts.map +1 -0
- package/resources/voice/voice.js +25 -0
- package/resources/voice/voice.js.map +1 -0
- package/resources/voice/voice.mjs +20 -0
- package/resources/voice/voice.mjs.map +1 -0
- package/resources/voice.d.mts +2 -0
- package/resources/voice.d.mts.map +1 -0
- package/resources/voice.d.ts +2 -0
- package/resources/voice.d.ts.map +1 -0
- package/resources/voice.js +6 -0
- package/resources/voice.js.map +1 -0
- package/resources/voice.mjs +3 -0
- package/resources/voice.mjs.map +1 -0
- package/resources/webhooks/index.d.mts +3 -0
- package/resources/webhooks/index.d.mts.map +1 -0
- package/resources/webhooks/index.d.ts +3 -0
- package/resources/webhooks/index.d.ts.map +1 -0
- package/resources/webhooks/index.js +9 -0
- package/resources/webhooks/index.js.map +1 -0
- package/resources/webhooks/index.mjs +4 -0
- package/resources/webhooks/index.mjs.map +1 -0
- package/resources/webhooks/v1.d.mts +109 -0
- package/resources/webhooks/v1.d.mts.map +1 -0
- package/resources/webhooks/v1.d.ts +109 -0
- package/resources/webhooks/v1.d.ts.map +1 -0
- package/resources/webhooks/v1.js +84 -0
- package/resources/webhooks/v1.js.map +1 -0
- package/resources/webhooks/v1.mjs +80 -0
- package/resources/webhooks/v1.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +10 -0
- package/resources/webhooks/webhooks.d.mts.map +1 -0
- package/resources/webhooks/webhooks.d.ts +10 -0
- package/resources/webhooks/webhooks.d.ts.map +1 -0
- package/resources/webhooks/webhooks.js +17 -0
- package/resources/webhooks/webhooks.js.map +1 -0
- package/resources/webhooks/webhooks.mjs +12 -0
- package/resources/webhooks/webhooks.mjs.map +1 -0
- package/resources/webhooks.d.mts +2 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +2 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +6 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +3 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources/workflows/index.d.mts +3 -0
- package/resources/workflows/index.d.mts.map +1 -0
- package/resources/workflows/index.d.ts +3 -0
- package/resources/workflows/index.d.ts.map +1 -0
- package/resources/workflows/index.js +9 -0
- package/resources/workflows/index.js.map +1 -0
- package/resources/workflows/index.mjs +4 -0
- package/resources/workflows/index.mjs.map +1 -0
- package/resources/workflows/v1.d.mts +263 -0
- package/resources/workflows/v1.d.mts.map +1 -0
- package/resources/workflows/v1.d.ts +263 -0
- package/resources/workflows/v1.d.ts.map +1 -0
- package/resources/workflows/v1.js +128 -0
- package/resources/workflows/v1.js.map +1 -0
- package/resources/workflows/v1.mjs +124 -0
- package/resources/workflows/v1.mjs.map +1 -0
- package/resources/workflows/workflows.d.mts +10 -0
- package/resources/workflows/workflows.d.mts.map +1 -0
- package/resources/workflows/workflows.d.ts +10 -0
- package/resources/workflows/workflows.d.ts.map +1 -0
- package/resources/workflows/workflows.js +17 -0
- package/resources/workflows/workflows.js.map +1 -0
- package/resources/workflows/workflows.mjs +12 -0
- package/resources/workflows/workflows.mjs.map +1 -0
- package/resources/workflows.d.mts +2 -0
- package/resources/workflows.d.mts.map +1 -0
- package/resources/workflows.d.ts +2 -0
- package/resources/workflows.d.ts.map +1 -0
- package/resources/workflows.js +6 -0
- package/resources/workflows.js.map +1 -0
- package/resources/workflows.mjs +3 -0
- package/resources/workflows.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +827 -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 -0
- package/src/index.ts +22 -0
- 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/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/actions/actions.ts +21 -0
- package/src/resources/actions/index.ts +10 -0
- package/src/resources/actions/v1.ts +179 -0
- package/src/resources/actions.ts +3 -0
- package/src/resources/compute/compute.ts +20 -0
- package/src/resources/compute/index.ts +4 -0
- package/src/resources/compute/v1/environments.ts +154 -0
- package/src/resources/compute/v1/functions.ts +70 -0
- package/src/resources/compute/v1/index.ts +21 -0
- package/src/resources/compute/v1/invoke.ts +91 -0
- package/src/resources/compute/v1/runs.ts +65 -0
- package/src/resources/compute/v1/secrets.ts +211 -0
- package/src/resources/compute/v1/v1.ts +355 -0
- package/src/resources/compute/v1.ts +3 -0
- package/src/resources/compute.ts +3 -0
- package/src/resources/convert/convert.ts +21 -0
- package/src/resources/convert/index.ts +10 -0
- package/src/resources/convert/v1/index.ts +10 -0
- package/src/resources/convert/v1/jobs.ts +32 -0
- package/src/resources/convert/v1/v1.ts +141 -0
- package/src/resources/convert/v1.ts +3 -0
- package/src/resources/convert.ts +3 -0
- package/src/resources/format/format.ts +15 -0
- package/src/resources/format/index.ts +4 -0
- package/src/resources/format/v1/index.ts +9 -0
- package/src/resources/format/v1/templates.ts +125 -0
- package/src/resources/format/v1/v1.ts +91 -0
- package/src/resources/format/v1.ts +3 -0
- package/src/resources/format.ts +3 -0
- package/src/resources/index.ts +25 -0
- package/src/resources/llm/index.ts +4 -0
- package/src/resources/llm/llm.ts +43 -0
- package/src/resources/llm/v1/chat.ts +144 -0
- package/src/resources/llm/v1/index.ts +4 -0
- package/src/resources/llm/v1/v1.ts +92 -0
- package/src/resources/llm/v1.ts +3 -0
- package/src/resources/llm.ts +3 -0
- package/src/resources/ocr/index.ts +4 -0
- package/src/resources/ocr/ocr.ts +20 -0
- package/src/resources/ocr/v1.ts +179 -0
- package/src/resources/ocr.ts +3 -0
- package/src/resources/search/index.ts +17 -0
- package/src/resources/search/search.ts +41 -0
- package/src/resources/search/v1.ts +519 -0
- package/src/resources/search.ts +3 -0
- package/src/resources/templates/index.ts +10 -0
- package/src/resources/templates/templates.ts +21 -0
- package/src/resources/templates/v1.ts +187 -0
- package/src/resources/templates.ts +3 -0
- package/src/resources/vault/graphrag.ts +45 -0
- package/src/resources/vault/index.ts +23 -0
- package/src/resources/vault/objects.ts +225 -0
- package/src/resources/vault/vault.ts +445 -0
- package/src/resources/vault.ts +3 -0
- package/src/resources/voice/index.ts +10 -0
- package/src/resources/voice/streaming.ts +33 -0
- package/src/resources/voice/transcription.ts +145 -0
- package/src/resources/voice/v1/index.ts +4 -0
- package/src/resources/voice/v1/speak.ts +237 -0
- package/src/resources/voice/v1/v1.ts +90 -0
- package/src/resources/voice/v1.ts +3 -0
- package/src/resources/voice/voice.ts +31 -0
- package/src/resources/voice.ts +3 -0
- package/src/resources/webhooks/index.ts +4 -0
- package/src/resources/webhooks/v1.ts +144 -0
- package/src/resources/webhooks/webhooks.ts +15 -0
- package/src/resources/webhooks.ts +3 -0
- package/src/resources/workflows/index.ts +21 -0
- package/src/resources/workflows/v1.ts +407 -0
- package/src/resources/workflows/workflows.ts +49 -0
- package/src/resources/workflows.ts +3 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Transcription extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Creates an asynchronous transcription job for audio files. Supports various
|
|
7
|
+
* audio formats and advanced features like speaker identification, content
|
|
8
|
+
* moderation, and automatic highlights. Returns a job ID for checking
|
|
9
|
+
* transcription status and retrieving results.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* await client.voice.transcription.create({
|
|
14
|
+
* audio_url: 'audio_url',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(body: TranscriptionCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieve the status and result of an audio transcription job. Returns the
|
|
21
|
+
* transcription text when complete, or status information for pending jobs.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const transcription =
|
|
26
|
+
* await client.voice.transcription.retrieve(
|
|
27
|
+
* '5551902f-fc65-4a61-81b2-e002d4e464e5',
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<TranscriptionRetrieveResponse>;
|
|
32
|
+
}
|
|
33
|
+
export interface TranscriptionRetrieveResponse {
|
|
34
|
+
/**
|
|
35
|
+
* Unique transcription job ID
|
|
36
|
+
*/
|
|
37
|
+
id: string;
|
|
38
|
+
/**
|
|
39
|
+
* Current status of the transcription job
|
|
40
|
+
*/
|
|
41
|
+
status: 'queued' | 'processing' | 'completed' | 'error';
|
|
42
|
+
/**
|
|
43
|
+
* Duration of the audio file in seconds
|
|
44
|
+
*/
|
|
45
|
+
audio_duration?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Overall confidence score for the transcription
|
|
48
|
+
*/
|
|
49
|
+
confidence?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Error message (only present when status is error)
|
|
52
|
+
*/
|
|
53
|
+
error?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Full transcription text (only present when status is completed)
|
|
56
|
+
*/
|
|
57
|
+
text?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Word-level timestamps and confidence scores
|
|
60
|
+
*/
|
|
61
|
+
words?: Array<TranscriptionRetrieveResponse.Word>;
|
|
62
|
+
}
|
|
63
|
+
export declare namespace TranscriptionRetrieveResponse {
|
|
64
|
+
interface Word {
|
|
65
|
+
confidence?: number;
|
|
66
|
+
end?: number;
|
|
67
|
+
start?: number;
|
|
68
|
+
text?: string;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export interface TranscriptionCreateParams {
|
|
72
|
+
/**
|
|
73
|
+
* URL of the audio file to transcribe
|
|
74
|
+
*/
|
|
75
|
+
audio_url: string;
|
|
76
|
+
/**
|
|
77
|
+
* Automatically extract key phrases and topics
|
|
78
|
+
*/
|
|
79
|
+
auto_highlights?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Enable content moderation and safety labeling
|
|
82
|
+
*/
|
|
83
|
+
content_safety_labels?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Format text with proper capitalization
|
|
86
|
+
*/
|
|
87
|
+
format_text?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Language code (e.g., 'en_us', 'es', 'fr'). If not specified, language will be
|
|
90
|
+
* auto-detected
|
|
91
|
+
*/
|
|
92
|
+
language_code?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Enable automatic language detection
|
|
95
|
+
*/
|
|
96
|
+
language_detection?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Add punctuation to the transcript
|
|
99
|
+
*/
|
|
100
|
+
punctuate?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Enable speaker identification and labeling
|
|
103
|
+
*/
|
|
104
|
+
speaker_labels?: boolean;
|
|
105
|
+
}
|
|
106
|
+
export declare namespace Transcription {
|
|
107
|
+
export { type TranscriptionRetrieveResponse as TranscriptionRetrieveResponse, type TranscriptionCreateParams as TranscriptionCreateParams, };
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=transcription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transcription.d.ts","sourceRoot":"","sources":["../../src/resources/voice/transcription.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQnF;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAG1F;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;IAExD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,6BAA6B,CAAC,IAAI,CAAC,CAAC;CACnD;AAED,yBAAiB,6BAA6B,CAAC;IAC7C,UAAiB,IAAI;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Transcription = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
class Transcription extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates an asynchronous transcription job for audio files. Supports various
|
|
11
|
+
* audio formats and advanced features like speaker identification, content
|
|
12
|
+
* moderation, and automatic highlights. Returns a job ID for checking
|
|
13
|
+
* transcription status and retrieving results.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* await client.voice.transcription.create({
|
|
18
|
+
* audio_url: 'audio_url',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(body, options) {
|
|
23
|
+
return this._client.post('/voice/transcription', {
|
|
24
|
+
body,
|
|
25
|
+
...options,
|
|
26
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Retrieve the status and result of an audio transcription job. Returns the
|
|
31
|
+
* transcription text when complete, or status information for pending jobs.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const transcription =
|
|
36
|
+
* await client.voice.transcription.retrieve(
|
|
37
|
+
* '5551902f-fc65-4a61-81b2-e002d4e464e5',
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
retrieve(id, options) {
|
|
42
|
+
return this._client.get((0, path_1.path) `/voice/transcription/${id}`, options);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.Transcription = Transcription;
|
|
46
|
+
//# sourceMappingURL=transcription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transcription.js","sourceRoot":"","sources":["../../src/resources/voice/transcription.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAA+B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF;AArCD,sCAqCC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
export class Transcription extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Creates an asynchronous transcription job for audio files. Supports various
|
|
8
|
+
* audio formats and advanced features like speaker identification, content
|
|
9
|
+
* moderation, and automatic highlights. Returns a job ID for checking
|
|
10
|
+
* transcription status and retrieving results.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* await client.voice.transcription.create({
|
|
15
|
+
* audio_url: 'audio_url',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body, options) {
|
|
20
|
+
return this._client.post('/voice/transcription', {
|
|
21
|
+
body,
|
|
22
|
+
...options,
|
|
23
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve the status and result of an audio transcription job. Returns the
|
|
28
|
+
* transcription text when complete, or status information for pending jobs.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const transcription =
|
|
33
|
+
* await client.voice.transcription.retrieve(
|
|
34
|
+
* '5551902f-fc65-4a61-81b2-e002d4e464e5',
|
|
35
|
+
* );
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
retrieve(id, options) {
|
|
39
|
+
return this._client.get(path `/voice/transcription/${id}`, options);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=transcription.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transcription.mjs","sourceRoot":"","sources":["../../src/resources/voice/transcription.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAA+B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/voice/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE;OACzD,EAAE,EAAE,EAAE,KAAK,kBAAkB,EAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/voice/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE,KAAK,iBAAiB,EAAE;OACzD,EAAE,EAAE,EAAE,KAAK,kBAAkB,EAAE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.V1 = exports.Speak = void 0;
|
|
5
|
+
var speak_1 = require("./speak.js");
|
|
6
|
+
Object.defineProperty(exports, "Speak", { enumerable: true, get: function () { return speak_1.Speak; } });
|
|
7
|
+
var v1_1 = require("./v1.js");
|
|
8
|
+
Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/voice/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAAgF;AAAvE,8FAAA,KAAK,OAAA;AACd,8BAAmD;AAA1C,wFAAA,EAAE,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/voice/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAAkD;OACzD,EAAE,EAAE,EAA2B"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
export declare class Speak extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Convert text to natural-sounding audio using ElevenLabs voices. Ideal for
|
|
7
|
+
* creating audio summaries of legal documents, client presentations, or
|
|
8
|
+
* accessibility features. Supports multiple languages and voice customization.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const speak = await client.voice.v1.speak.create({
|
|
13
|
+
* text: 'text',
|
|
14
|
+
* });
|
|
15
|
+
*
|
|
16
|
+
* const content = await speak.blob();
|
|
17
|
+
* console.log(content);
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(body: SpeakCreateParams, options?: RequestOptions): APIPromise<Response>;
|
|
21
|
+
/**
|
|
22
|
+
* Convert text to speech using ElevenLabs AI voices with streaming for real-time
|
|
23
|
+
* playback. Returns audio data as an MP3 stream for immediate playback with
|
|
24
|
+
* minimal latency. Perfect for legal document narration, client presentations, or
|
|
25
|
+
* accessibility features.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const response = await client.voice.v1.speak.stream({
|
|
30
|
+
* text: 'text',
|
|
31
|
+
* });
|
|
32
|
+
*
|
|
33
|
+
* const content = await response.blob();
|
|
34
|
+
* console.log(content);
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
stream(body: SpeakStreamParams, options?: RequestOptions): APIPromise<Response>;
|
|
38
|
+
}
|
|
39
|
+
export interface SpeakCreateParams {
|
|
40
|
+
/**
|
|
41
|
+
* Text to convert to speech
|
|
42
|
+
*/
|
|
43
|
+
text: string;
|
|
44
|
+
/**
|
|
45
|
+
* Apply automatic text normalization
|
|
46
|
+
*/
|
|
47
|
+
apply_text_normalization?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Enable request logging
|
|
50
|
+
*/
|
|
51
|
+
enable_logging?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Language code for multilingual models
|
|
54
|
+
*/
|
|
55
|
+
language_code?: string;
|
|
56
|
+
/**
|
|
57
|
+
* ElevenLabs model ID
|
|
58
|
+
*/
|
|
59
|
+
model_id?: 'eleven_multilingual_v2' | 'eleven_turbo_v2' | 'eleven_monolingual_v1';
|
|
60
|
+
/**
|
|
61
|
+
* Next context for better pronunciation
|
|
62
|
+
*/
|
|
63
|
+
next_text?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Optimize for streaming latency (0-4)
|
|
66
|
+
*/
|
|
67
|
+
optimize_streaming_latency?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Audio output format
|
|
70
|
+
*/
|
|
71
|
+
output_format?: 'mp3_44100_128' | 'mp3_44100_192' | 'pcm_16000' | 'pcm_22050' | 'pcm_24000' | 'pcm_44100';
|
|
72
|
+
/**
|
|
73
|
+
* Previous context for better pronunciation
|
|
74
|
+
*/
|
|
75
|
+
previous_text?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Seed for reproducible generation
|
|
78
|
+
*/
|
|
79
|
+
seed?: number;
|
|
80
|
+
/**
|
|
81
|
+
* ElevenLabs voice ID (defaults to Rachel - professional, clear)
|
|
82
|
+
*/
|
|
83
|
+
voice_id?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Voice customization settings
|
|
86
|
+
*/
|
|
87
|
+
voice_settings?: SpeakCreateParams.VoiceSettings;
|
|
88
|
+
}
|
|
89
|
+
export declare namespace SpeakCreateParams {
|
|
90
|
+
/**
|
|
91
|
+
* Voice customization settings
|
|
92
|
+
*/
|
|
93
|
+
interface VoiceSettings {
|
|
94
|
+
/**
|
|
95
|
+
* Similarity boost (0-1)
|
|
96
|
+
*/
|
|
97
|
+
similarity_boost?: number;
|
|
98
|
+
/**
|
|
99
|
+
* Voice stability (0-1)
|
|
100
|
+
*/
|
|
101
|
+
stability?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Style exaggeration (0-1)
|
|
104
|
+
*/
|
|
105
|
+
style?: number;
|
|
106
|
+
/**
|
|
107
|
+
* Enable speaker boost
|
|
108
|
+
*/
|
|
109
|
+
use_speaker_boost?: boolean;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export interface SpeakStreamParams {
|
|
113
|
+
/**
|
|
114
|
+
* Text to convert to speech
|
|
115
|
+
*/
|
|
116
|
+
text: string;
|
|
117
|
+
/**
|
|
118
|
+
* Apply text normalization
|
|
119
|
+
*/
|
|
120
|
+
apply_text_normalization?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Enable request logging
|
|
123
|
+
*/
|
|
124
|
+
enable_logging?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Language code (e.g., 'en', 'es', 'fr')
|
|
127
|
+
*/
|
|
128
|
+
language_code?: string;
|
|
129
|
+
/**
|
|
130
|
+
* TTS model to use
|
|
131
|
+
*/
|
|
132
|
+
model_id?: 'eleven_monolingual_v1' | 'eleven_multilingual_v1' | 'eleven_multilingual_v2' | 'eleven_turbo_v2';
|
|
133
|
+
/**
|
|
134
|
+
* Next text for context
|
|
135
|
+
*/
|
|
136
|
+
next_text?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Optimize for streaming latency (0-4)
|
|
139
|
+
*/
|
|
140
|
+
optimize_streaming_latency?: number;
|
|
141
|
+
/**
|
|
142
|
+
* Audio output format
|
|
143
|
+
*/
|
|
144
|
+
output_format?: 'mp3_44100_128' | 'mp3_22050_32' | 'pcm_16000' | 'pcm_22050' | 'pcm_24000' | 'pcm_44100';
|
|
145
|
+
/**
|
|
146
|
+
* Previous text for context
|
|
147
|
+
*/
|
|
148
|
+
previous_text?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Random seed for reproducible generation
|
|
151
|
+
*/
|
|
152
|
+
seed?: number;
|
|
153
|
+
/**
|
|
154
|
+
* ElevenLabs voice ID (defaults to Rachel for professional clarity)
|
|
155
|
+
*/
|
|
156
|
+
voice_id?: string;
|
|
157
|
+
voice_settings?: SpeakStreamParams.VoiceSettings;
|
|
158
|
+
}
|
|
159
|
+
export declare namespace SpeakStreamParams {
|
|
160
|
+
interface VoiceSettings {
|
|
161
|
+
/**
|
|
162
|
+
* Similarity boost (0-1)
|
|
163
|
+
*/
|
|
164
|
+
similarity_boost?: number;
|
|
165
|
+
/**
|
|
166
|
+
* Voice stability (0-1)
|
|
167
|
+
*/
|
|
168
|
+
stability?: number;
|
|
169
|
+
/**
|
|
170
|
+
* Style exaggeration (0-1)
|
|
171
|
+
*/
|
|
172
|
+
style?: number;
|
|
173
|
+
/**
|
|
174
|
+
* Enable speaker boost
|
|
175
|
+
*/
|
|
176
|
+
use_speaker_boost?: boolean;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
export declare namespace Speak {
|
|
180
|
+
export { type SpeakCreateParams as SpeakCreateParams, type SpeakStreamParams as SpeakStreamParams };
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=speak.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"speak.d.mts","sourceRoot":"","sources":["../../../src/resources/voice/v1/speak.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
export declare class Speak extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Convert text to natural-sounding audio using ElevenLabs voices. Ideal for
|
|
7
|
+
* creating audio summaries of legal documents, client presentations, or
|
|
8
|
+
* accessibility features. Supports multiple languages and voice customization.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const speak = await client.voice.v1.speak.create({
|
|
13
|
+
* text: 'text',
|
|
14
|
+
* });
|
|
15
|
+
*
|
|
16
|
+
* const content = await speak.blob();
|
|
17
|
+
* console.log(content);
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(body: SpeakCreateParams, options?: RequestOptions): APIPromise<Response>;
|
|
21
|
+
/**
|
|
22
|
+
* Convert text to speech using ElevenLabs AI voices with streaming for real-time
|
|
23
|
+
* playback. Returns audio data as an MP3 stream for immediate playback with
|
|
24
|
+
* minimal latency. Perfect for legal document narration, client presentations, or
|
|
25
|
+
* accessibility features.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const response = await client.voice.v1.speak.stream({
|
|
30
|
+
* text: 'text',
|
|
31
|
+
* });
|
|
32
|
+
*
|
|
33
|
+
* const content = await response.blob();
|
|
34
|
+
* console.log(content);
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
stream(body: SpeakStreamParams, options?: RequestOptions): APIPromise<Response>;
|
|
38
|
+
}
|
|
39
|
+
export interface SpeakCreateParams {
|
|
40
|
+
/**
|
|
41
|
+
* Text to convert to speech
|
|
42
|
+
*/
|
|
43
|
+
text: string;
|
|
44
|
+
/**
|
|
45
|
+
* Apply automatic text normalization
|
|
46
|
+
*/
|
|
47
|
+
apply_text_normalization?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Enable request logging
|
|
50
|
+
*/
|
|
51
|
+
enable_logging?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Language code for multilingual models
|
|
54
|
+
*/
|
|
55
|
+
language_code?: string;
|
|
56
|
+
/**
|
|
57
|
+
* ElevenLabs model ID
|
|
58
|
+
*/
|
|
59
|
+
model_id?: 'eleven_multilingual_v2' | 'eleven_turbo_v2' | 'eleven_monolingual_v1';
|
|
60
|
+
/**
|
|
61
|
+
* Next context for better pronunciation
|
|
62
|
+
*/
|
|
63
|
+
next_text?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Optimize for streaming latency (0-4)
|
|
66
|
+
*/
|
|
67
|
+
optimize_streaming_latency?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Audio output format
|
|
70
|
+
*/
|
|
71
|
+
output_format?: 'mp3_44100_128' | 'mp3_44100_192' | 'pcm_16000' | 'pcm_22050' | 'pcm_24000' | 'pcm_44100';
|
|
72
|
+
/**
|
|
73
|
+
* Previous context for better pronunciation
|
|
74
|
+
*/
|
|
75
|
+
previous_text?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Seed for reproducible generation
|
|
78
|
+
*/
|
|
79
|
+
seed?: number;
|
|
80
|
+
/**
|
|
81
|
+
* ElevenLabs voice ID (defaults to Rachel - professional, clear)
|
|
82
|
+
*/
|
|
83
|
+
voice_id?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Voice customization settings
|
|
86
|
+
*/
|
|
87
|
+
voice_settings?: SpeakCreateParams.VoiceSettings;
|
|
88
|
+
}
|
|
89
|
+
export declare namespace SpeakCreateParams {
|
|
90
|
+
/**
|
|
91
|
+
* Voice customization settings
|
|
92
|
+
*/
|
|
93
|
+
interface VoiceSettings {
|
|
94
|
+
/**
|
|
95
|
+
* Similarity boost (0-1)
|
|
96
|
+
*/
|
|
97
|
+
similarity_boost?: number;
|
|
98
|
+
/**
|
|
99
|
+
* Voice stability (0-1)
|
|
100
|
+
*/
|
|
101
|
+
stability?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Style exaggeration (0-1)
|
|
104
|
+
*/
|
|
105
|
+
style?: number;
|
|
106
|
+
/**
|
|
107
|
+
* Enable speaker boost
|
|
108
|
+
*/
|
|
109
|
+
use_speaker_boost?: boolean;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export interface SpeakStreamParams {
|
|
113
|
+
/**
|
|
114
|
+
* Text to convert to speech
|
|
115
|
+
*/
|
|
116
|
+
text: string;
|
|
117
|
+
/**
|
|
118
|
+
* Apply text normalization
|
|
119
|
+
*/
|
|
120
|
+
apply_text_normalization?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Enable request logging
|
|
123
|
+
*/
|
|
124
|
+
enable_logging?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Language code (e.g., 'en', 'es', 'fr')
|
|
127
|
+
*/
|
|
128
|
+
language_code?: string;
|
|
129
|
+
/**
|
|
130
|
+
* TTS model to use
|
|
131
|
+
*/
|
|
132
|
+
model_id?: 'eleven_monolingual_v1' | 'eleven_multilingual_v1' | 'eleven_multilingual_v2' | 'eleven_turbo_v2';
|
|
133
|
+
/**
|
|
134
|
+
* Next text for context
|
|
135
|
+
*/
|
|
136
|
+
next_text?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Optimize for streaming latency (0-4)
|
|
139
|
+
*/
|
|
140
|
+
optimize_streaming_latency?: number;
|
|
141
|
+
/**
|
|
142
|
+
* Audio output format
|
|
143
|
+
*/
|
|
144
|
+
output_format?: 'mp3_44100_128' | 'mp3_22050_32' | 'pcm_16000' | 'pcm_22050' | 'pcm_24000' | 'pcm_44100';
|
|
145
|
+
/**
|
|
146
|
+
* Previous text for context
|
|
147
|
+
*/
|
|
148
|
+
previous_text?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Random seed for reproducible generation
|
|
151
|
+
*/
|
|
152
|
+
seed?: number;
|
|
153
|
+
/**
|
|
154
|
+
* ElevenLabs voice ID (defaults to Rachel for professional clarity)
|
|
155
|
+
*/
|
|
156
|
+
voice_id?: string;
|
|
157
|
+
voice_settings?: SpeakStreamParams.VoiceSettings;
|
|
158
|
+
}
|
|
159
|
+
export declare namespace SpeakStreamParams {
|
|
160
|
+
interface VoiceSettings {
|
|
161
|
+
/**
|
|
162
|
+
* Similarity boost (0-1)
|
|
163
|
+
*/
|
|
164
|
+
similarity_boost?: number;
|
|
165
|
+
/**
|
|
166
|
+
* Voice stability (0-1)
|
|
167
|
+
*/
|
|
168
|
+
stability?: number;
|
|
169
|
+
/**
|
|
170
|
+
* Style exaggeration (0-1)
|
|
171
|
+
*/
|
|
172
|
+
style?: number;
|
|
173
|
+
/**
|
|
174
|
+
* Enable speaker boost
|
|
175
|
+
*/
|
|
176
|
+
use_speaker_boost?: boolean;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
export declare namespace Speak {
|
|
180
|
+
export { type SpeakCreateParams as SpeakCreateParams, type SpeakStreamParams as SpeakStreamParams };
|
|
181
|
+
}
|
|
182
|
+
//# sourceMappingURL=speak.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"speak.d.ts","sourceRoot":"","sources":["../../../src/resources/voice/v1/speak.ts"],"names":[],"mappings":"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"}
|