@cartesia/cartesia-js 2.2.9 → 3.0.0-b3
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 +61 -0
- package/LICENSE +201 -0
- package/README.md +269 -516
- 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 +220 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +220 -0
- package/client.d.ts.map +1 -0
- package/client.js +517 -0
- package/client.js.map +1 -0
- package/client.mjs +513 -0
- package/client.mjs.map +1 -0
- package/core/EventEmitter.d.mts +45 -0
- package/core/EventEmitter.d.mts.map +1 -0
- package/core/EventEmitter.d.ts +45 -0
- package/core/EventEmitter.d.ts.map +1 -0
- package/core/EventEmitter.js +79 -0
- package/core/EventEmitter.js.map +1 -0
- package/core/EventEmitter.mjs +75 -0
- package/core/EventEmitter.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/pagination.d.mts +54 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +54 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +115 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +109 -0
- package/core/pagination.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 +7 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +7 -7
- package/index.d.ts.map +1 -0
- package/index.js +30 -51
- package/index.js.map +1 -0
- package/index.mjs +8 -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/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.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 +154 -45
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -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/access-token.d.mts +48 -0
- package/resources/access-token.d.mts.map +1 -0
- package/resources/access-token.d.ts +48 -0
- package/resources/access-token.d.ts.map +1 -0
- package/resources/access-token.js +16 -0
- package/resources/access-token.js.map +1 -0
- package/resources/access-token.mjs +12 -0
- package/resources/access-token.mjs.map +1 -0
- package/resources/agents/agents.d.mts +244 -0
- package/resources/agents/agents.d.mts.map +1 -0
- package/resources/agents/agents.d.ts +244 -0
- package/resources/agents/agents.d.ts.map +1 -0
- package/resources/agents/agents.js +68 -0
- package/resources/agents/agents.js.map +1 -0
- package/resources/agents/agents.mjs +63 -0
- package/resources/agents/agents.mjs.map +1 -0
- package/resources/agents/calls.d.mts +218 -0
- package/resources/agents/calls.d.mts.map +1 -0
- package/resources/agents/calls.d.ts +218 -0
- package/resources/agents/calls.d.ts.map +1 -0
- package/resources/agents/calls.js +36 -0
- package/resources/agents/calls.js.map +1 -0
- package/resources/agents/calls.mjs +32 -0
- package/resources/agents/calls.mjs.map +1 -0
- package/resources/agents/deployments.d.mts +92 -0
- package/resources/agents/deployments.d.mts.map +1 -0
- package/resources/agents/deployments.d.ts +92 -0
- package/resources/agents/deployments.d.ts.map +1 -0
- package/resources/agents/deployments.js +22 -0
- package/resources/agents/deployments.js.map +1 -0
- package/resources/agents/deployments.mjs +18 -0
- package/resources/agents/deployments.mjs.map +1 -0
- package/resources/agents/index.d.mts +5 -0
- package/resources/agents/index.d.mts.map +1 -0
- package/resources/agents/index.d.ts +5 -0
- package/resources/agents/index.d.ts.map +1 -0
- package/resources/agents/index.js +13 -0
- package/resources/agents/index.js.map +1 -0
- package/resources/agents/index.mjs +6 -0
- package/resources/agents/index.mjs.map +1 -0
- package/resources/agents/metrics/index.d.mts +3 -0
- package/resources/agents/metrics/index.d.mts.map +1 -0
- package/resources/agents/metrics/index.d.ts +3 -0
- package/resources/agents/metrics/index.d.ts.map +1 -0
- package/resources/agents/metrics/index.js +9 -0
- package/resources/agents/metrics/index.js.map +1 -0
- package/resources/agents/metrics/index.mjs +4 -0
- package/resources/agents/metrics/index.mjs.map +1 -0
- package/resources/agents/metrics/metrics.d.mts +114 -0
- package/resources/agents/metrics/metrics.d.mts.map +1 -0
- package/resources/agents/metrics/metrics.d.ts +114 -0
- package/resources/agents/metrics/metrics.d.ts.map +1 -0
- package/resources/agents/metrics/metrics.js +60 -0
- package/resources/agents/metrics/metrics.js.map +1 -0
- package/resources/agents/metrics/metrics.mjs +55 -0
- package/resources/agents/metrics/metrics.mjs.map +1 -0
- package/resources/agents/metrics/results.d.mts +143 -0
- package/resources/agents/metrics/results.d.mts.map +1 -0
- package/resources/agents/metrics/results.d.ts +143 -0
- package/resources/agents/metrics/results.d.ts.map +1 -0
- package/resources/agents/metrics/results.js +33 -0
- package/resources/agents/metrics/results.js.map +1 -0
- package/resources/agents/metrics/results.mjs +29 -0
- package/resources/agents/metrics/results.mjs.map +1 -0
- package/resources/agents/metrics.d.mts +2 -0
- package/resources/agents/metrics.d.mts.map +1 -0
- package/resources/agents/metrics.d.ts +2 -0
- package/resources/agents/metrics.d.ts.map +1 -0
- package/resources/agents/metrics.js +6 -0
- package/resources/agents/metrics.js.map +1 -0
- package/resources/agents/metrics.mjs +3 -0
- package/resources/agents/metrics.mjs.map +1 -0
- package/resources/agents.d.mts +2 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +2 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +6 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +3 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/datasets/datasets.d.mts +82 -0
- package/resources/datasets/datasets.d.mts.map +1 -0
- package/resources/datasets/datasets.d.ts +82 -0
- package/resources/datasets/datasets.d.ts.map +1 -0
- package/resources/datasets/datasets.js +57 -0
- package/resources/datasets/datasets.js.map +1 -0
- package/resources/datasets/datasets.mjs +52 -0
- package/resources/datasets/datasets.mjs.map +1 -0
- package/resources/datasets/files.d.mts +64 -0
- package/resources/datasets/files.d.mts.map +1 -0
- package/resources/datasets/files.d.ts +64 -0
- package/resources/datasets/files.d.ts.map +1 -0
- package/resources/datasets/files.js +38 -0
- package/resources/datasets/files.js.map +1 -0
- package/resources/datasets/files.mjs +34 -0
- package/resources/datasets/files.mjs.map +1 -0
- package/resources/datasets/index.d.mts +3 -0
- package/resources/datasets/index.d.mts.map +1 -0
- package/resources/datasets/index.d.ts +3 -0
- package/resources/datasets/index.d.ts.map +1 -0
- package/resources/datasets/index.js +9 -0
- package/resources/datasets/index.js.map +1 -0
- package/resources/datasets/index.mjs +4 -0
- package/resources/datasets/index.mjs.map +1 -0
- package/resources/datasets.d.mts +2 -0
- package/resources/datasets.d.mts.map +1 -0
- package/resources/datasets.d.ts +2 -0
- package/resources/datasets.d.ts.map +1 -0
- package/resources/datasets.js +6 -0
- package/resources/datasets.js.map +1 -0
- package/resources/datasets.mjs +3 -0
- package/resources/datasets.mjs.map +1 -0
- package/resources/fine-tunes.d.mts +101 -0
- package/resources/fine-tunes.d.mts.map +1 -0
- package/resources/fine-tunes.d.ts +101 -0
- package/resources/fine-tunes.d.ts.map +1 -0
- package/resources/fine-tunes.js +48 -0
- package/resources/fine-tunes.js.map +1 -0
- package/resources/fine-tunes.mjs +44 -0
- package/resources/fine-tunes.mjs.map +1 -0
- package/resources/index.d.mts +12 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +12 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +25 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +12 -0
- package/resources/index.mjs.map +1 -0
- package/resources/infill.d.mts +72 -0
- package/resources/infill.d.mts.map +1 -0
- package/resources/infill.d.ts +72 -0
- package/resources/infill.d.ts.map +1 -0
- package/resources/infill.js +37 -0
- package/resources/infill.js.map +1 -0
- package/resources/infill.mjs +33 -0
- package/resources/infill.mjs.map +1 -0
- package/resources/pronunciation-dicts.d.mts +107 -0
- package/resources/pronunciation-dicts.d.mts.map +1 -0
- package/resources/pronunciation-dicts.d.ts +107 -0
- package/resources/pronunciation-dicts.d.ts.map +1 -0
- package/resources/pronunciation-dicts.js +66 -0
- package/resources/pronunciation-dicts.js.map +1 -0
- package/resources/pronunciation-dicts.mjs +62 -0
- package/resources/pronunciation-dicts.mjs.map +1 -0
- package/resources/stt.d.mts +208 -0
- package/resources/stt.d.mts.map +1 -0
- package/resources/stt.d.ts +208 -0
- package/resources/stt.d.ts.map +1 -0
- package/resources/stt.js +33 -0
- package/resources/stt.js.map +1 -0
- package/resources/stt.mjs +29 -0
- package/resources/stt.mjs.map +1 -0
- package/resources/top-level.d.mts +8 -0
- package/resources/top-level.d.mts.map +1 -0
- package/resources/top-level.d.ts +8 -0
- package/resources/top-level.d.ts.map +1 -0
- package/resources/top-level.js +4 -0
- package/resources/top-level.js.map +1 -0
- package/resources/top-level.mjs +3 -0
- package/resources/top-level.mjs.map +1 -0
- package/resources/tts/index.d.mts +2 -0
- package/resources/tts/index.d.mts.map +1 -0
- package/resources/tts/index.d.ts +2 -0
- package/resources/tts/index.d.ts.map +1 -0
- package/resources/tts/index.js +7 -0
- package/resources/tts/index.js.map +1 -0
- package/resources/tts/index.mjs +3 -0
- package/resources/tts/index.mjs.map +1 -0
- package/resources/tts/internal-base.d.mts +40 -0
- package/resources/tts/internal-base.d.mts.map +1 -0
- package/resources/tts/internal-base.d.ts +40 -0
- package/resources/tts/internal-base.d.ts.map +1 -0
- package/resources/tts/internal-base.js +48 -0
- package/resources/tts/internal-base.js.map +1 -0
- package/resources/tts/internal-base.mjs +42 -0
- package/resources/tts/internal-base.mjs.map +1 -0
- package/resources/tts/tts.d.mts +409 -0
- package/resources/tts/tts.d.mts.map +1 -0
- package/resources/tts/tts.d.ts +409 -0
- package/resources/tts/tts.d.ts.map +1 -0
- package/resources/tts/tts.js +31 -0
- package/resources/tts/tts.js.map +1 -0
- package/resources/tts/tts.mjs +27 -0
- package/resources/tts/tts.mjs.map +1 -0
- package/resources/tts/ws.d.mts +17 -0
- package/resources/tts/ws.d.mts.map +1 -0
- package/resources/tts/ws.d.ts +17 -0
- package/resources/tts/ws.d.ts.map +1 -0
- package/resources/tts/ws.js +73 -0
- package/resources/tts/ws.js.map +1 -0
- package/resources/tts/ws.mjs +68 -0
- package/resources/tts/ws.mjs.map +1 -0
- package/resources/tts.d.mts +2 -0
- package/resources/tts.d.mts.map +1 -0
- package/resources/tts.d.ts +2 -0
- package/resources/tts.d.ts.map +1 -0
- package/resources/tts.js +6 -0
- package/resources/tts.js.map +1 -0
- package/resources/tts.mjs +3 -0
- package/resources/tts.mjs.map +1 -0
- package/resources/voice-changer.d.mts +50 -0
- package/resources/voice-changer.d.mts.map +1 -0
- package/resources/voice-changer.d.ts +50 -0
- package/resources/voice-changer.d.ts.map +1 -0
- package/resources/voice-changer.js +26 -0
- package/resources/voice-changer.js.map +1 -0
- package/resources/voice-changer.mjs +22 -0
- package/resources/voice-changer.mjs.map +1 -0
- package/resources/voices.d.mts +213 -0
- package/resources/voices.d.mts.map +1 -0
- package/resources/voices.d.ts +213 -0
- package/resources/voices.d.ts.map +1 -0
- package/resources/voices.js +57 -0
- package/resources/voices.js.map +1 -0
- package/resources/voices.mjs +53 -0
- package/resources/voices.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 +947 -0
- package/src/core/EventEmitter.ts +98 -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/pagination.ts +175 -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 +23 -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/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -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/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/access-token.ts +61 -0
- package/src/resources/agents/agents.ts +351 -0
- package/src/resources/agents/calls.ts +273 -0
- package/src/resources/agents/deployments.ts +119 -0
- package/src/resources/agents/index.ts +27 -0
- package/src/resources/agents/metrics/index.ts +18 -0
- package/src/resources/agents/metrics/metrics.ts +186 -0
- package/src/resources/agents/metrics/results.ts +192 -0
- package/src/resources/agents/metrics.ts +3 -0
- package/src/resources/agents.ts +3 -0
- package/src/resources/datasets/datasets.ts +145 -0
- package/src/resources/datasets/files.ts +110 -0
- package/src/resources/datasets/index.ts +18 -0
- package/src/resources/datasets.ts +3 -0
- package/src/resources/fine-tunes.ts +155 -0
- package/src/resources/index.ts +68 -0
- package/src/resources/infill.ts +101 -0
- package/src/resources/pronunciation-dicts.ts +172 -0
- package/src/resources/stt.ts +234 -0
- package/src/resources/top-level.ts +11 -0
- package/src/resources/tts/index.ts +14 -0
- package/src/resources/tts/internal-base.ts +89 -0
- package/src/resources/tts/tts.ts +533 -0
- package/src/resources/tts/ws.ts +79 -0
- package/src/resources/tts.ts +3 -0
- package/src/resources/voice-changer.ts +87 -0
- package/src/resources/voices.ts +325 -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 -1
- package/version.d.ts.map +1 -0
- package/version.js +3 -2
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
- package/Client.d.ts +0 -53
- package/Client.js +0 -47
- package/api/index.d.ts +0 -1
- package/api/index.js +0 -17
- package/api/resources/apiStatus/client/Client.d.ts +0 -43
- package/api/resources/apiStatus/client/Client.js +0 -113
- package/api/resources/apiStatus/client/index.d.ts +0 -1
- package/api/resources/apiStatus/client/index.js +0 -2
- package/api/resources/apiStatus/index.d.ts +0 -2
- package/api/resources/apiStatus/index.js +0 -18
- package/api/resources/apiStatus/types/ApiInfo.d.ts +0 -7
- package/api/resources/apiStatus/types/ApiInfo.js +0 -5
- package/api/resources/apiStatus/types/index.d.ts +0 -1
- package/api/resources/apiStatus/types/index.js +0 -17
- package/api/resources/auth/client/Client.d.ts +0 -68
- package/api/resources/auth/client/Client.js +0 -143
- package/api/resources/auth/client/index.d.ts +0 -1
- package/api/resources/auth/client/index.js +0 -2
- package/api/resources/auth/index.d.ts +0 -2
- package/api/resources/auth/index.js +0 -18
- package/api/resources/auth/types/TokenGrant.d.ts +0 -9
- package/api/resources/auth/types/TokenGrant.js +0 -5
- package/api/resources/auth/types/TokenRequest.d.ts +0 -10
- package/api/resources/auth/types/TokenRequest.js +0 -5
- package/api/resources/auth/types/TokenResponse.d.ts +0 -7
- package/api/resources/auth/types/TokenResponse.js +0 -5
- package/api/resources/auth/types/index.d.ts +0 -3
- package/api/resources/auth/types/index.js +0 -19
- package/api/resources/embedding/index.d.ts +0 -1
- package/api/resources/embedding/index.js +0 -17
- package/api/resources/embedding/types/Embedding.d.ts +0 -10
- package/api/resources/embedding/types/Embedding.js +0 -5
- package/api/resources/embedding/types/index.d.ts +0 -1
- package/api/resources/embedding/types/index.js +0 -17
- package/api/resources/index.d.ts +0 -19
- package/api/resources/index.js +0 -58
- package/api/resources/infill/client/Client.d.ts +0 -57
- package/api/resources/infill/client/Client.js +0 -156
- package/api/resources/infill/client/index.d.ts +0 -1
- package/api/resources/infill/client/index.js +0 -17
- package/api/resources/infill/client/requests/InfillBytesRequest.d.ts +0 -63
- package/api/resources/infill/client/requests/InfillBytesRequest.js +0 -5
- package/api/resources/infill/client/requests/index.d.ts +0 -1
- package/api/resources/infill/client/requests/index.js +0 -2
- package/api/resources/infill/index.d.ts +0 -1
- package/api/resources/infill/index.js +0 -17
- package/api/resources/stt/client/Client.d.ts +0 -71
- package/api/resources/stt/client/Client.js +0 -166
- package/api/resources/stt/client/index.d.ts +0 -1
- package/api/resources/stt/client/index.js +0 -17
- package/api/resources/stt/client/requests/TranscriptionRequest.d.ts +0 -147
- package/api/resources/stt/client/requests/TranscriptionRequest.js +0 -5
- package/api/resources/stt/client/requests/index.d.ts +0 -1
- package/api/resources/stt/client/requests/index.js +0 -2
- package/api/resources/stt/index.d.ts +0 -2
- package/api/resources/stt/index.js +0 -18
- package/api/resources/stt/types/DoneMessage.d.ts +0 -10
- package/api/resources/stt/types/DoneMessage.js +0 -5
- package/api/resources/stt/types/ErrorMessage.d.ts +0 -9
- package/api/resources/stt/types/ErrorMessage.js +0 -5
- package/api/resources/stt/types/FlushDoneMessage.d.ts +0 -10
- package/api/resources/stt/types/FlushDoneMessage.js +0 -5
- package/api/resources/stt/types/StreamingTranscriptionResponse.d.ts +0 -22
- package/api/resources/stt/types/StreamingTranscriptionResponse.js +0 -5
- package/api/resources/stt/types/SttEncoding.d.ts +0 -15
- package/api/resources/stt/types/SttEncoding.js +0 -14
- package/api/resources/stt/types/TimestampGranularity.d.ts +0 -12
- package/api/resources/stt/types/TimestampGranularity.js +0 -9
- package/api/resources/stt/types/TranscriptMessage.d.ts +0 -22
- package/api/resources/stt/types/TranscriptMessage.js +0 -5
- package/api/resources/stt/types/TranscriptionResponse.d.ts +0 -14
- package/api/resources/stt/types/TranscriptionResponse.js +0 -5
- package/api/resources/stt/types/TranscriptionWord.d.ts +0 -11
- package/api/resources/stt/types/TranscriptionWord.js +0 -5
- package/api/resources/stt/types/index.d.ts +0 -9
- package/api/resources/stt/types/index.js +0 -25
- package/api/resources/tts/client/Client.d.ts +0 -39
- package/api/resources/tts/client/Client.js +0 -162
- package/api/resources/tts/client/index.d.ts +0 -1
- package/api/resources/tts/client/index.js +0 -2
- package/api/resources/tts/index.d.ts +0 -2
- package/api/resources/tts/index.js +0 -18
- package/api/resources/tts/types/CancelContextRequest.d.ts +0 -10
- package/api/resources/tts/types/CancelContextRequest.js +0 -5
- package/api/resources/tts/types/ContextId.d.ts +0 -9
- package/api/resources/tts/types/ContextId.js +0 -5
- package/api/resources/tts/types/Controls.d.ts +0 -8
- package/api/resources/tts/types/Controls.js +0 -5
- package/api/resources/tts/types/Emotion.d.ts +0 -7
- package/api/resources/tts/types/Emotion.js +0 -5
- package/api/resources/tts/types/EmotionDeprecated.d.ts +0 -38
- package/api/resources/tts/types/EmotionDeprecated.js +0 -33
- package/api/resources/tts/types/FlushId.d.ts +0 -9
- package/api/resources/tts/types/FlushId.js +0 -5
- package/api/resources/tts/types/GenerationConfig.d.ts +0 -15
- package/api/resources/tts/types/GenerationConfig.js +0 -5
- package/api/resources/tts/types/GenerationRequest.d.ts +0 -44
- package/api/resources/tts/types/GenerationRequest.js +0 -5
- package/api/resources/tts/types/ModelSpeed.d.ts +0 -16
- package/api/resources/tts/types/ModelSpeed.js +0 -11
- package/api/resources/tts/types/Mp3OutputFormat.d.ts +0 -9
- package/api/resources/tts/types/Mp3OutputFormat.js +0 -5
- package/api/resources/tts/types/NaturalSpecifier.d.ts +0 -11
- package/api/resources/tts/types/NaturalSpecifier.js +0 -13
- package/api/resources/tts/types/NumericalSpecifier.d.ts +0 -4
- package/api/resources/tts/types/NumericalSpecifier.js +0 -5
- package/api/resources/tts/types/OutputFormat.d.ts +0 -16
- package/api/resources/tts/types/OutputFormat.js +0 -5
- package/api/resources/tts/types/PhonemeTimestamps.d.ts +0 -8
- package/api/resources/tts/types/PhonemeTimestamps.js +0 -5
- package/api/resources/tts/types/RawEncoding.d.ts +0 -10
- package/api/resources/tts/types/RawEncoding.js +0 -12
- package/api/resources/tts/types/RawOutputFormat.d.ts +0 -10
- package/api/resources/tts/types/RawOutputFormat.js +0 -5
- package/api/resources/tts/types/Speed.d.ts +0 -10
- package/api/resources/tts/types/Speed.js +0 -5
- package/api/resources/tts/types/SseOutputFormat.d.ts +0 -10
- package/api/resources/tts/types/SseOutputFormat.js +0 -5
- package/api/resources/tts/types/SupportedLanguage.d.ts +0 -26
- package/api/resources/tts/types/SupportedLanguage.js +0 -23
- package/api/resources/tts/types/TtsRequest.d.ts +0 -21
- package/api/resources/tts/types/TtsRequest.js +0 -5
- package/api/resources/tts/types/TtsRequestEmbeddingSpecifier.d.ts +0 -9
- package/api/resources/tts/types/TtsRequestEmbeddingSpecifier.js +0 -5
- package/api/resources/tts/types/TtsRequestIdSpecifier.d.ts +0 -9
- package/api/resources/tts/types/TtsRequestIdSpecifier.js +0 -5
- package/api/resources/tts/types/TtsRequestVoiceSpecifier.d.ts +0 -5
- package/api/resources/tts/types/TtsRequestVoiceSpecifier.js +0 -5
- package/api/resources/tts/types/TtssseRequest.d.ts +0 -29
- package/api/resources/tts/types/TtssseRequest.js +0 -5
- package/api/resources/tts/types/WavOutputFormat.d.ts +0 -6
- package/api/resources/tts/types/WavOutputFormat.js +0 -5
- package/api/resources/tts/types/WebSocketBaseResponse.d.ts +0 -9
- package/api/resources/tts/types/WebSocketBaseResponse.js +0 -5
- package/api/resources/tts/types/WebSocketChunkResponse.d.ts +0 -8
- package/api/resources/tts/types/WebSocketChunkResponse.js +0 -5
- package/api/resources/tts/types/WebSocketDoneResponse.d.ts +0 -6
- package/api/resources/tts/types/WebSocketDoneResponse.js +0 -5
- package/api/resources/tts/types/WebSocketErrorResponse.d.ts +0 -7
- package/api/resources/tts/types/WebSocketErrorResponse.js +0 -5
- package/api/resources/tts/types/WebSocketFlushDoneResponse.d.ts +0 -8
- package/api/resources/tts/types/WebSocketFlushDoneResponse.js +0 -5
- package/api/resources/tts/types/WebSocketPhonemeTimestampsResponse.d.ts +0 -7
- package/api/resources/tts/types/WebSocketPhonemeTimestampsResponse.js +0 -5
- package/api/resources/tts/types/WebSocketRawOutputFormat.d.ts +0 -10
- package/api/resources/tts/types/WebSocketRawOutputFormat.js +0 -5
- package/api/resources/tts/types/WebSocketRequest.d.ts +0 -11
- package/api/resources/tts/types/WebSocketRequest.js +0 -5
- package/api/resources/tts/types/WebSocketResponse.d.ts +0 -25
- package/api/resources/tts/types/WebSocketResponse.js +0 -5
- package/api/resources/tts/types/WebSocketStreamOptions.d.ts +0 -6
- package/api/resources/tts/types/WebSocketStreamOptions.js +0 -5
- package/api/resources/tts/types/WebSocketTimestampsResponse.d.ts +0 -7
- package/api/resources/tts/types/WebSocketTimestampsResponse.js +0 -5
- package/api/resources/tts/types/WebSocketTtsOutput.d.ts +0 -12
- package/api/resources/tts/types/WebSocketTtsOutput.js +0 -5
- package/api/resources/tts/types/WebSocketTtsRequest.d.ts +0 -25
- package/api/resources/tts/types/WebSocketTtsRequest.js +0 -5
- package/api/resources/tts/types/WordTimestamps.d.ts +0 -8
- package/api/resources/tts/types/WordTimestamps.js +0 -5
- package/api/resources/tts/types/index.d.ts +0 -39
- package/api/resources/tts/types/index.js +0 -55
- package/api/resources/voiceChanger/client/Client.d.ts +0 -46
- package/api/resources/voiceChanger/client/Client.js +0 -195
- package/api/resources/voiceChanger/client/index.d.ts +0 -1
- package/api/resources/voiceChanger/client/index.js +0 -17
- package/api/resources/voiceChanger/client/requests/VoiceChangerBytesRequest.d.ts +0 -39
- package/api/resources/voiceChanger/client/requests/VoiceChangerBytesRequest.js +0 -5
- package/api/resources/voiceChanger/client/requests/VoiceChangerSseRequest.d.ts +0 -39
- package/api/resources/voiceChanger/client/requests/VoiceChangerSseRequest.js +0 -5
- package/api/resources/voiceChanger/client/requests/index.d.ts +0 -2
- package/api/resources/voiceChanger/client/requests/index.js +0 -2
- package/api/resources/voiceChanger/index.d.ts +0 -2
- package/api/resources/voiceChanger/index.js +0 -18
- package/api/resources/voiceChanger/types/OutputFormatContainer.d.ts +0 -9
- package/api/resources/voiceChanger/types/OutputFormatContainer.js +0 -11
- package/api/resources/voiceChanger/types/StreamingResponse.d.ts +0 -16
- package/api/resources/voiceChanger/types/StreamingResponse.js +0 -5
- package/api/resources/voiceChanger/types/index.d.ts +0 -2
- package/api/resources/voiceChanger/types/index.js +0 -18
- package/api/resources/voices/client/Client.d.ts +0 -150
- package/api/resources/voices/client/Client.js +0 -530
- package/api/resources/voices/client/index.d.ts +0 -1
- package/api/resources/voices/client/index.js +0 -17
- package/api/resources/voices/client/requests/CloneVoiceRequest.d.ts +0 -35
- package/api/resources/voices/client/requests/CloneVoiceRequest.js +0 -5
- package/api/resources/voices/client/requests/index.d.ts +0 -1
- package/api/resources/voices/client/requests/index.js +0 -2
- package/api/resources/voices/index.d.ts +0 -2
- package/api/resources/voices/index.js +0 -18
- package/api/resources/voices/types/BaseVoiceId.d.ts +0 -8
- package/api/resources/voices/types/BaseVoiceId.js +0 -5
- package/api/resources/voices/types/CloneMode.d.ts +0 -8
- package/api/resources/voices/types/CloneMode.js +0 -10
- package/api/resources/voices/types/CreateVoiceRequest.d.ts +0 -13
- package/api/resources/voices/types/CreateVoiceRequest.js +0 -5
- package/api/resources/voices/types/EmbeddingResponse.d.ts +0 -7
- package/api/resources/voices/types/EmbeddingResponse.js +0 -5
- package/api/resources/voices/types/EmbeddingSpecifier.d.ts +0 -8
- package/api/resources/voices/types/EmbeddingSpecifier.js +0 -5
- package/api/resources/voices/types/Gender.d.ts +0 -8
- package/api/resources/voices/types/Gender.js +0 -10
- package/api/resources/voices/types/IdSpecifier.d.ts +0 -8
- package/api/resources/voices/types/IdSpecifier.js +0 -5
- package/api/resources/voices/types/LocalizeDialect.d.ts +0 -20
- package/api/resources/voices/types/LocalizeDialect.js +0 -5
- package/api/resources/voices/types/LocalizeEnglishDialect.d.ts +0 -11
- package/api/resources/voices/types/LocalizeEnglishDialect.js +0 -13
- package/api/resources/voices/types/LocalizeFrenchDialect.d.ts +0 -8
- package/api/resources/voices/types/LocalizeFrenchDialect.js +0 -10
- package/api/resources/voices/types/LocalizePortugueseDialect.d.ts +0 -8
- package/api/resources/voices/types/LocalizePortugueseDialect.js +0 -10
- package/api/resources/voices/types/LocalizeSpanishDialect.d.ts +0 -8
- package/api/resources/voices/types/LocalizeSpanishDialect.js +0 -10
- package/api/resources/voices/types/LocalizeTargetLanguage.d.ts +0 -26
- package/api/resources/voices/types/LocalizeTargetLanguage.js +0 -23
- package/api/resources/voices/types/LocalizeVoiceRequest.d.ts +0 -15
- package/api/resources/voices/types/LocalizeVoiceRequest.js +0 -5
- package/api/resources/voices/types/MixVoiceSpecifier.d.ts +0 -5
- package/api/resources/voices/types/MixVoiceSpecifier.js +0 -5
- package/api/resources/voices/types/MixVoicesRequest.d.ts +0 -7
- package/api/resources/voices/types/MixVoicesRequest.js +0 -5
- package/api/resources/voices/types/UpdateVoiceRequest.d.ts +0 -9
- package/api/resources/voices/types/UpdateVoiceRequest.js +0 -5
- package/api/resources/voices/types/Voice.d.ts +0 -19
- package/api/resources/voices/types/Voice.js +0 -5
- package/api/resources/voices/types/VoiceId.d.ts +0 -7
- package/api/resources/voices/types/VoiceId.js +0 -5
- package/api/resources/voices/types/VoiceMetadata.d.ts +0 -18
- package/api/resources/voices/types/VoiceMetadata.js +0 -5
- package/api/resources/voices/types/Weight.d.ts +0 -7
- package/api/resources/voices/types/Weight.js +0 -5
- package/api/resources/voices/types/index.d.ts +0 -21
- package/api/resources/voices/types/index.js +0 -37
- package/core/fetcher/APIResponse.d.ts +0 -10
- package/core/fetcher/APIResponse.js +0 -2
- package/core/fetcher/Fetcher.d.ts +0 -39
- package/core/fetcher/Fetcher.js +0 -100
- package/core/fetcher/Supplier.d.ts +0 -4
- package/core/fetcher/Supplier.js +0 -22
- package/core/fetcher/createRequestUrl.d.ts +0 -1
- package/core/fetcher/createRequestUrl.js +0 -12
- package/core/fetcher/getFetchFn.d.ts +0 -4
- package/core/fetcher/getFetchFn.js +0 -68
- package/core/fetcher/getHeader.d.ts +0 -1
- package/core/fetcher/getHeader.js +0 -11
- package/core/fetcher/getRequestBody.d.ts +0 -7
- package/core/fetcher/getRequestBody.js +0 -23
- package/core/fetcher/getResponseBody.d.ts +0 -1
- package/core/fetcher/getResponseBody.js +0 -54
- package/core/fetcher/index.d.ts +0 -5
- package/core/fetcher/index.js +0 -9
- package/core/fetcher/makeRequest.d.ts +0 -1
- package/core/fetcher/makeRequest.js +0 -42
- package/core/fetcher/requestWithRetries.d.ts +0 -1
- package/core/fetcher/requestWithRetries.js +0 -40
- package/core/fetcher/signals.d.ts +0 -11
- package/core/fetcher/signals.js +0 -36
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/core/form-data-utils/FormDataWrapper.d.ts +0 -60
- package/core/form-data-utils/FormDataWrapper.js +0 -184
- package/core/form-data-utils/index.d.ts +0 -1
- package/core/form-data-utils/index.js +0 -17
- package/core/index.d.ts +0 -5
- package/core/index.js +0 -44
- package/core/json.d.ts +0 -15
- package/core/json.js +0 -24
- package/core/runtime/index.d.ts +0 -1
- package/core/runtime/index.js +0 -5
- package/core/runtime/runtime.d.ts +0 -9
- package/core/runtime/runtime.js +0 -103
- package/core/schemas/Schema.d.ts +0 -87
- package/core/schemas/Schema.js +0 -24
- package/core/schemas/builders/bigint/bigint.d.ts +0 -2
- package/core/schemas/builders/bigint/bigint.js +0 -53
- package/core/schemas/builders/bigint/index.d.ts +0 -1
- package/core/schemas/builders/bigint/index.js +0 -5
- package/core/schemas/builders/date/date.d.ts +0 -2
- package/core/schemas/builders/date/date.js +0 -62
- package/core/schemas/builders/date/index.d.ts +0 -1
- package/core/schemas/builders/date/index.js +0 -5
- package/core/schemas/builders/enum/enum.d.ts +0 -2
- package/core/schemas/builders/enum/enum.js +0 -38
- package/core/schemas/builders/enum/index.d.ts +0 -1
- package/core/schemas/builders/enum/index.js +0 -5
- package/core/schemas/builders/index.d.ts +0 -14
- package/core/schemas/builders/index.js +0 -30
- package/core/schemas/builders/lazy/index.d.ts +0 -3
- package/core/schemas/builders/lazy/index.js +0 -7
- package/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/core/schemas/builders/lazy/lazy.js +0 -24
- package/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/core/schemas/builders/lazy/lazyObject.js +0 -11
- package/core/schemas/builders/list/index.d.ts +0 -1
- package/core/schemas/builders/list/index.js +0 -5
- package/core/schemas/builders/list/list.d.ts +0 -2
- package/core/schemas/builders/list/list.js +0 -54
- package/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/booleanLiteral.js +0 -28
- package/core/schemas/builders/literals/index.d.ts +0 -2
- package/core/schemas/builders/literals/index.js +0 -7
- package/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/stringLiteral.js +0 -28
- package/core/schemas/builders/object/index.d.ts +0 -6
- package/core/schemas/builders/object/index.js +0 -11
- package/core/schemas/builders/object/object.d.ts +0 -3
- package/core/schemas/builders/object/object.js +0 -261
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -7
- package/core/schemas/builders/object/property.d.ts +0 -8
- package/core/schemas/builders/object/property.js +0 -15
- package/core/schemas/builders/object/types.d.ts +0 -31
- package/core/schemas/builders/object/types.js +0 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -53
- package/core/schemas/builders/object-like/index.d.ts +0 -2
- package/core/schemas/builders/object-like/index.js +0 -6
- package/core/schemas/builders/object-like/types.d.ts +0 -7
- package/core/schemas/builders/object-like/types.js +0 -2
- package/core/schemas/builders/primitives/any.d.ts +0 -1
- package/core/schemas/builders/primitives/any.js +0 -6
- package/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/core/schemas/builders/primitives/boolean.js +0 -25
- package/core/schemas/builders/primitives/index.d.ts +0 -5
- package/core/schemas/builders/primitives/index.js +0 -13
- package/core/schemas/builders/primitives/number.d.ts +0 -1
- package/core/schemas/builders/primitives/number.js +0 -25
- package/core/schemas/builders/primitives/string.d.ts +0 -1
- package/core/schemas/builders/primitives/string.js +0 -25
- package/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/core/schemas/builders/primitives/unknown.js +0 -6
- package/core/schemas/builders/record/index.d.ts +0 -2
- package/core/schemas/builders/record/index.js +0 -5
- package/core/schemas/builders/record/record.d.ts +0 -3
- package/core/schemas/builders/record/record.js +0 -93
- package/core/schemas/builders/record/types.d.ts +0 -4
- package/core/schemas/builders/record/types.js +0 -2
- package/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -21
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -145
- package/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/core/schemas/builders/schema-utils/index.js +0 -11
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -9
- package/core/schemas/builders/set/index.d.ts +0 -1
- package/core/schemas/builders/set/index.js +0 -5
- package/core/schemas/builders/set/set.d.ts +0 -2
- package/core/schemas/builders/set/set.js +0 -43
- package/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/core/schemas/builders/undiscriminated-union/types.js +0 -2
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -39
- package/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/core/schemas/builders/union/discriminant.js +0 -9
- package/core/schemas/builders/union/index.d.ts +0 -4
- package/core/schemas/builders/union/index.js +0 -7
- package/core/schemas/builders/union/types.d.ts +0 -13
- package/core/schemas/builders/union/types.js +0 -2
- package/core/schemas/builders/union/union.d.ts +0 -4
- package/core/schemas/builders/union/union.js +0 -129
- package/core/schemas/index.d.ts +0 -2
- package/core/schemas/index.js +0 -17
- package/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/core/schemas/utils/MaybePromise.js +0 -2
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/core/schemas/utils/createIdentitySchemaCreator.js +0 -15
- package/core/schemas/utils/entries.d.ts +0 -1
- package/core/schemas/utils/entries.js +0 -6
- package/core/schemas/utils/filterObject.d.ts +0 -1
- package/core/schemas/utils/filterObject.js +0 -13
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -27
- package/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/core/schemas/utils/isPlainObject.js +0 -17
- package/core/schemas/utils/keys.d.ts +0 -1
- package/core/schemas/utils/keys.js +0 -6
- package/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/core/schemas/utils/maybeSkipValidation.js +0 -27
- package/core/schemas/utils/partition.d.ts +0 -1
- package/core/schemas/utils/partition.js +0 -15
- package/core/streaming-fetcher/Stream.d.ts +0 -47
- package/core/streaming-fetcher/Stream.js +0 -169
- package/core/streaming-fetcher/index.d.ts +0 -1
- package/core/streaming-fetcher/index.js +0 -5
- package/core/websocket/events.d.ts +0 -36
- package/core/websocket/events.js +0 -27
- package/core/websocket/index.d.ts +0 -1
- package/core/websocket/index.js +0 -17
- package/core/websocket/ws.d.ts +0 -137
- package/core/websocket/ws.js +0 -448
- package/dist/Client.d.ts +0 -53
- package/dist/Client.js +0 -47
- package/dist/api/index.d.ts +0 -1
- package/dist/api/index.js +0 -17
- package/dist/api/resources/apiStatus/client/Client.d.ts +0 -43
- package/dist/api/resources/apiStatus/client/Client.js +0 -113
- package/dist/api/resources/apiStatus/client/index.d.ts +0 -1
- package/dist/api/resources/apiStatus/client/index.js +0 -2
- package/dist/api/resources/apiStatus/index.d.ts +0 -2
- package/dist/api/resources/apiStatus/index.js +0 -18
- package/dist/api/resources/apiStatus/types/ApiInfo.d.ts +0 -7
- package/dist/api/resources/apiStatus/types/ApiInfo.js +0 -5
- package/dist/api/resources/apiStatus/types/index.d.ts +0 -1
- package/dist/api/resources/apiStatus/types/index.js +0 -17
- package/dist/api/resources/auth/client/Client.d.ts +0 -68
- package/dist/api/resources/auth/client/Client.js +0 -143
- package/dist/api/resources/auth/client/index.d.ts +0 -1
- package/dist/api/resources/auth/client/index.js +0 -2
- package/dist/api/resources/auth/index.d.ts +0 -2
- package/dist/api/resources/auth/index.js +0 -18
- package/dist/api/resources/auth/types/TokenGrant.d.ts +0 -9
- package/dist/api/resources/auth/types/TokenGrant.js +0 -5
- package/dist/api/resources/auth/types/TokenRequest.d.ts +0 -10
- package/dist/api/resources/auth/types/TokenRequest.js +0 -5
- package/dist/api/resources/auth/types/TokenResponse.d.ts +0 -7
- package/dist/api/resources/auth/types/TokenResponse.js +0 -5
- package/dist/api/resources/auth/types/index.d.ts +0 -3
- package/dist/api/resources/auth/types/index.js +0 -19
- package/dist/api/resources/embedding/index.d.ts +0 -1
- package/dist/api/resources/embedding/index.js +0 -17
- package/dist/api/resources/embedding/types/Embedding.d.ts +0 -10
- package/dist/api/resources/embedding/types/Embedding.js +0 -5
- package/dist/api/resources/embedding/types/index.d.ts +0 -1
- package/dist/api/resources/embedding/types/index.js +0 -17
- package/dist/api/resources/index.d.ts +0 -19
- package/dist/api/resources/index.js +0 -58
- package/dist/api/resources/infill/client/Client.d.ts +0 -57
- package/dist/api/resources/infill/client/Client.js +0 -156
- package/dist/api/resources/infill/client/index.d.ts +0 -1
- package/dist/api/resources/infill/client/index.js +0 -17
- package/dist/api/resources/infill/client/requests/InfillBytesRequest.d.ts +0 -63
- package/dist/api/resources/infill/client/requests/InfillBytesRequest.js +0 -5
- package/dist/api/resources/infill/client/requests/index.d.ts +0 -1
- package/dist/api/resources/infill/client/requests/index.js +0 -2
- package/dist/api/resources/infill/index.d.ts +0 -1
- package/dist/api/resources/infill/index.js +0 -17
- package/dist/api/resources/stt/client/Client.d.ts +0 -71
- package/dist/api/resources/stt/client/Client.js +0 -166
- package/dist/api/resources/stt/client/index.d.ts +0 -1
- package/dist/api/resources/stt/client/index.js +0 -17
- package/dist/api/resources/stt/client/requests/TranscriptionRequest.d.ts +0 -147
- package/dist/api/resources/stt/client/requests/TranscriptionRequest.js +0 -5
- package/dist/api/resources/stt/client/requests/index.d.ts +0 -1
- package/dist/api/resources/stt/client/requests/index.js +0 -2
- package/dist/api/resources/stt/index.d.ts +0 -2
- package/dist/api/resources/stt/index.js +0 -18
- package/dist/api/resources/stt/types/DoneMessage.d.ts +0 -10
- package/dist/api/resources/stt/types/DoneMessage.js +0 -5
- package/dist/api/resources/stt/types/ErrorMessage.d.ts +0 -9
- package/dist/api/resources/stt/types/ErrorMessage.js +0 -5
- package/dist/api/resources/stt/types/FlushDoneMessage.d.ts +0 -10
- package/dist/api/resources/stt/types/FlushDoneMessage.js +0 -5
- package/dist/api/resources/stt/types/StreamingTranscriptionResponse.d.ts +0 -22
- package/dist/api/resources/stt/types/StreamingTranscriptionResponse.js +0 -5
- package/dist/api/resources/stt/types/SttEncoding.d.ts +0 -15
- package/dist/api/resources/stt/types/SttEncoding.js +0 -14
- package/dist/api/resources/stt/types/TimestampGranularity.d.ts +0 -12
- package/dist/api/resources/stt/types/TimestampGranularity.js +0 -9
- package/dist/api/resources/stt/types/TranscriptMessage.d.ts +0 -22
- package/dist/api/resources/stt/types/TranscriptMessage.js +0 -5
- package/dist/api/resources/stt/types/TranscriptionResponse.d.ts +0 -14
- package/dist/api/resources/stt/types/TranscriptionResponse.js +0 -5
- package/dist/api/resources/stt/types/TranscriptionWord.d.ts +0 -11
- package/dist/api/resources/stt/types/TranscriptionWord.js +0 -5
- package/dist/api/resources/stt/types/index.d.ts +0 -9
- package/dist/api/resources/stt/types/index.js +0 -25
- package/dist/api/resources/tts/client/Client.d.ts +0 -39
- package/dist/api/resources/tts/client/Client.js +0 -162
- package/dist/api/resources/tts/client/index.d.ts +0 -1
- package/dist/api/resources/tts/client/index.js +0 -2
- package/dist/api/resources/tts/index.d.ts +0 -2
- package/dist/api/resources/tts/index.js +0 -18
- package/dist/api/resources/tts/types/CancelContextRequest.d.ts +0 -10
- package/dist/api/resources/tts/types/CancelContextRequest.js +0 -5
- package/dist/api/resources/tts/types/ContextId.d.ts +0 -9
- package/dist/api/resources/tts/types/ContextId.js +0 -5
- package/dist/api/resources/tts/types/Controls.d.ts +0 -8
- package/dist/api/resources/tts/types/Controls.js +0 -5
- package/dist/api/resources/tts/types/Emotion.d.ts +0 -7
- package/dist/api/resources/tts/types/Emotion.js +0 -5
- package/dist/api/resources/tts/types/EmotionDeprecated.d.ts +0 -38
- package/dist/api/resources/tts/types/EmotionDeprecated.js +0 -33
- package/dist/api/resources/tts/types/FlushId.d.ts +0 -9
- package/dist/api/resources/tts/types/FlushId.js +0 -5
- package/dist/api/resources/tts/types/GenerationConfig.d.ts +0 -15
- package/dist/api/resources/tts/types/GenerationConfig.js +0 -5
- package/dist/api/resources/tts/types/GenerationRequest.d.ts +0 -44
- package/dist/api/resources/tts/types/GenerationRequest.js +0 -5
- package/dist/api/resources/tts/types/ModelSpeed.d.ts +0 -16
- package/dist/api/resources/tts/types/ModelSpeed.js +0 -11
- package/dist/api/resources/tts/types/Mp3OutputFormat.d.ts +0 -9
- package/dist/api/resources/tts/types/Mp3OutputFormat.js +0 -5
- package/dist/api/resources/tts/types/NaturalSpecifier.d.ts +0 -11
- package/dist/api/resources/tts/types/NaturalSpecifier.js +0 -13
- package/dist/api/resources/tts/types/NumericalSpecifier.d.ts +0 -4
- package/dist/api/resources/tts/types/NumericalSpecifier.js +0 -5
- package/dist/api/resources/tts/types/OutputFormat.d.ts +0 -16
- package/dist/api/resources/tts/types/OutputFormat.js +0 -5
- package/dist/api/resources/tts/types/PhonemeTimestamps.d.ts +0 -8
- package/dist/api/resources/tts/types/PhonemeTimestamps.js +0 -5
- package/dist/api/resources/tts/types/RawEncoding.d.ts +0 -10
- package/dist/api/resources/tts/types/RawEncoding.js +0 -12
- package/dist/api/resources/tts/types/RawOutputFormat.d.ts +0 -10
- package/dist/api/resources/tts/types/RawOutputFormat.js +0 -5
- package/dist/api/resources/tts/types/Speed.d.ts +0 -10
- package/dist/api/resources/tts/types/Speed.js +0 -5
- package/dist/api/resources/tts/types/SseOutputFormat.d.ts +0 -10
- package/dist/api/resources/tts/types/SseOutputFormat.js +0 -5
- package/dist/api/resources/tts/types/SupportedLanguage.d.ts +0 -26
- package/dist/api/resources/tts/types/SupportedLanguage.js +0 -23
- package/dist/api/resources/tts/types/TtsRequest.d.ts +0 -21
- package/dist/api/resources/tts/types/TtsRequest.js +0 -5
- package/dist/api/resources/tts/types/TtsRequestEmbeddingSpecifier.d.ts +0 -9
- package/dist/api/resources/tts/types/TtsRequestEmbeddingSpecifier.js +0 -5
- package/dist/api/resources/tts/types/TtsRequestIdSpecifier.d.ts +0 -9
- package/dist/api/resources/tts/types/TtsRequestIdSpecifier.js +0 -5
- package/dist/api/resources/tts/types/TtsRequestVoiceSpecifier.d.ts +0 -5
- package/dist/api/resources/tts/types/TtsRequestVoiceSpecifier.js +0 -5
- package/dist/api/resources/tts/types/TtssseRequest.d.ts +0 -29
- package/dist/api/resources/tts/types/TtssseRequest.js +0 -5
- package/dist/api/resources/tts/types/WavOutputFormat.d.ts +0 -6
- package/dist/api/resources/tts/types/WavOutputFormat.js +0 -5
- package/dist/api/resources/tts/types/WebSocketBaseResponse.d.ts +0 -9
- package/dist/api/resources/tts/types/WebSocketBaseResponse.js +0 -5
- package/dist/api/resources/tts/types/WebSocketChunkResponse.d.ts +0 -8
- package/dist/api/resources/tts/types/WebSocketChunkResponse.js +0 -5
- package/dist/api/resources/tts/types/WebSocketDoneResponse.d.ts +0 -6
- package/dist/api/resources/tts/types/WebSocketDoneResponse.js +0 -5
- package/dist/api/resources/tts/types/WebSocketErrorResponse.d.ts +0 -7
- package/dist/api/resources/tts/types/WebSocketErrorResponse.js +0 -5
- package/dist/api/resources/tts/types/WebSocketFlushDoneResponse.d.ts +0 -8
- package/dist/api/resources/tts/types/WebSocketFlushDoneResponse.js +0 -5
- package/dist/api/resources/tts/types/WebSocketPhonemeTimestampsResponse.d.ts +0 -7
- package/dist/api/resources/tts/types/WebSocketPhonemeTimestampsResponse.js +0 -5
- package/dist/api/resources/tts/types/WebSocketRawOutputFormat.d.ts +0 -10
- package/dist/api/resources/tts/types/WebSocketRawOutputFormat.js +0 -5
- package/dist/api/resources/tts/types/WebSocketRequest.d.ts +0 -11
- package/dist/api/resources/tts/types/WebSocketRequest.js +0 -5
- package/dist/api/resources/tts/types/WebSocketResponse.d.ts +0 -25
- package/dist/api/resources/tts/types/WebSocketResponse.js +0 -5
- package/dist/api/resources/tts/types/WebSocketStreamOptions.d.ts +0 -6
- package/dist/api/resources/tts/types/WebSocketStreamOptions.js +0 -5
- package/dist/api/resources/tts/types/WebSocketTimestampsResponse.d.ts +0 -7
- package/dist/api/resources/tts/types/WebSocketTimestampsResponse.js +0 -5
- package/dist/api/resources/tts/types/WebSocketTtsOutput.d.ts +0 -12
- package/dist/api/resources/tts/types/WebSocketTtsOutput.js +0 -5
- package/dist/api/resources/tts/types/WebSocketTtsRequest.d.ts +0 -25
- package/dist/api/resources/tts/types/WebSocketTtsRequest.js +0 -5
- package/dist/api/resources/tts/types/WordTimestamps.d.ts +0 -8
- package/dist/api/resources/tts/types/WordTimestamps.js +0 -5
- package/dist/api/resources/tts/types/index.d.ts +0 -39
- package/dist/api/resources/tts/types/index.js +0 -55
- package/dist/api/resources/voiceChanger/client/Client.d.ts +0 -46
- package/dist/api/resources/voiceChanger/client/Client.js +0 -195
- package/dist/api/resources/voiceChanger/client/index.d.ts +0 -1
- package/dist/api/resources/voiceChanger/client/index.js +0 -17
- package/dist/api/resources/voiceChanger/client/requests/VoiceChangerBytesRequest.d.ts +0 -39
- package/dist/api/resources/voiceChanger/client/requests/VoiceChangerBytesRequest.js +0 -5
- package/dist/api/resources/voiceChanger/client/requests/VoiceChangerSseRequest.d.ts +0 -39
- package/dist/api/resources/voiceChanger/client/requests/VoiceChangerSseRequest.js +0 -5
- package/dist/api/resources/voiceChanger/client/requests/index.d.ts +0 -2
- package/dist/api/resources/voiceChanger/client/requests/index.js +0 -2
- package/dist/api/resources/voiceChanger/index.d.ts +0 -2
- package/dist/api/resources/voiceChanger/index.js +0 -18
- package/dist/api/resources/voiceChanger/types/OutputFormatContainer.d.ts +0 -9
- package/dist/api/resources/voiceChanger/types/OutputFormatContainer.js +0 -11
- package/dist/api/resources/voiceChanger/types/StreamingResponse.d.ts +0 -16
- package/dist/api/resources/voiceChanger/types/StreamingResponse.js +0 -5
- package/dist/api/resources/voiceChanger/types/index.d.ts +0 -2
- package/dist/api/resources/voiceChanger/types/index.js +0 -18
- package/dist/api/resources/voices/client/Client.d.ts +0 -150
- package/dist/api/resources/voices/client/Client.js +0 -530
- package/dist/api/resources/voices/client/index.d.ts +0 -1
- package/dist/api/resources/voices/client/index.js +0 -17
- package/dist/api/resources/voices/client/requests/CloneVoiceRequest.d.ts +0 -35
- package/dist/api/resources/voices/client/requests/CloneVoiceRequest.js +0 -5
- package/dist/api/resources/voices/client/requests/index.d.ts +0 -1
- package/dist/api/resources/voices/client/requests/index.js +0 -2
- package/dist/api/resources/voices/index.d.ts +0 -2
- package/dist/api/resources/voices/index.js +0 -18
- package/dist/api/resources/voices/types/BaseVoiceId.d.ts +0 -8
- package/dist/api/resources/voices/types/BaseVoiceId.js +0 -5
- package/dist/api/resources/voices/types/CloneMode.d.ts +0 -8
- package/dist/api/resources/voices/types/CloneMode.js +0 -10
- package/dist/api/resources/voices/types/CreateVoiceRequest.d.ts +0 -13
- package/dist/api/resources/voices/types/CreateVoiceRequest.js +0 -5
- package/dist/api/resources/voices/types/EmbeddingResponse.d.ts +0 -7
- package/dist/api/resources/voices/types/EmbeddingResponse.js +0 -5
- package/dist/api/resources/voices/types/EmbeddingSpecifier.d.ts +0 -8
- package/dist/api/resources/voices/types/EmbeddingSpecifier.js +0 -5
- package/dist/api/resources/voices/types/Gender.d.ts +0 -8
- package/dist/api/resources/voices/types/Gender.js +0 -10
- package/dist/api/resources/voices/types/IdSpecifier.d.ts +0 -8
- package/dist/api/resources/voices/types/IdSpecifier.js +0 -5
- package/dist/api/resources/voices/types/LocalizeDialect.d.ts +0 -20
- package/dist/api/resources/voices/types/LocalizeDialect.js +0 -5
- package/dist/api/resources/voices/types/LocalizeEnglishDialect.d.ts +0 -11
- package/dist/api/resources/voices/types/LocalizeEnglishDialect.js +0 -13
- package/dist/api/resources/voices/types/LocalizeFrenchDialect.d.ts +0 -8
- package/dist/api/resources/voices/types/LocalizeFrenchDialect.js +0 -10
- package/dist/api/resources/voices/types/LocalizePortugueseDialect.d.ts +0 -8
- package/dist/api/resources/voices/types/LocalizePortugueseDialect.js +0 -10
- package/dist/api/resources/voices/types/LocalizeSpanishDialect.d.ts +0 -8
- package/dist/api/resources/voices/types/LocalizeSpanishDialect.js +0 -10
- package/dist/api/resources/voices/types/LocalizeTargetLanguage.d.ts +0 -26
- package/dist/api/resources/voices/types/LocalizeTargetLanguage.js +0 -23
- package/dist/api/resources/voices/types/LocalizeVoiceRequest.d.ts +0 -15
- package/dist/api/resources/voices/types/LocalizeVoiceRequest.js +0 -5
- package/dist/api/resources/voices/types/MixVoiceSpecifier.d.ts +0 -5
- package/dist/api/resources/voices/types/MixVoiceSpecifier.js +0 -5
- package/dist/api/resources/voices/types/MixVoicesRequest.d.ts +0 -7
- package/dist/api/resources/voices/types/MixVoicesRequest.js +0 -5
- package/dist/api/resources/voices/types/UpdateVoiceRequest.d.ts +0 -9
- package/dist/api/resources/voices/types/UpdateVoiceRequest.js +0 -5
- package/dist/api/resources/voices/types/Voice.d.ts +0 -19
- package/dist/api/resources/voices/types/Voice.js +0 -5
- package/dist/api/resources/voices/types/VoiceId.d.ts +0 -7
- package/dist/api/resources/voices/types/VoiceId.js +0 -5
- package/dist/api/resources/voices/types/VoiceMetadata.d.ts +0 -18
- package/dist/api/resources/voices/types/VoiceMetadata.js +0 -5
- package/dist/api/resources/voices/types/Weight.d.ts +0 -7
- package/dist/api/resources/voices/types/Weight.js +0 -5
- package/dist/api/resources/voices/types/index.d.ts +0 -21
- package/dist/api/resources/voices/types/index.js +0 -37
- package/dist/core/fetcher/APIResponse.d.ts +0 -10
- package/dist/core/fetcher/APIResponse.js +0 -2
- package/dist/core/fetcher/Fetcher.d.ts +0 -39
- package/dist/core/fetcher/Fetcher.js +0 -100
- package/dist/core/fetcher/Supplier.d.ts +0 -4
- package/dist/core/fetcher/Supplier.js +0 -22
- package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
- package/dist/core/fetcher/createRequestUrl.js +0 -12
- package/dist/core/fetcher/getFetchFn.d.ts +0 -4
- package/dist/core/fetcher/getFetchFn.js +0 -68
- package/dist/core/fetcher/getHeader.d.ts +0 -1
- package/dist/core/fetcher/getHeader.js +0 -11
- package/dist/core/fetcher/getRequestBody.d.ts +0 -7
- package/dist/core/fetcher/getRequestBody.js +0 -23
- package/dist/core/fetcher/getResponseBody.d.ts +0 -1
- package/dist/core/fetcher/getResponseBody.js +0 -54
- package/dist/core/fetcher/index.d.ts +0 -5
- package/dist/core/fetcher/index.js +0 -9
- package/dist/core/fetcher/makeRequest.d.ts +0 -1
- package/dist/core/fetcher/makeRequest.js +0 -42
- package/dist/core/fetcher/requestWithRetries.d.ts +0 -1
- package/dist/core/fetcher/requestWithRetries.js +0 -40
- package/dist/core/fetcher/signals.d.ts +0 -11
- package/dist/core/fetcher/signals.js +0 -36
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/dist/core/form-data-utils/FormDataWrapper.d.ts +0 -60
- package/dist/core/form-data-utils/FormDataWrapper.js +0 -184
- package/dist/core/form-data-utils/index.d.ts +0 -1
- package/dist/core/form-data-utils/index.js +0 -17
- package/dist/core/index.d.ts +0 -5
- package/dist/core/index.js +0 -44
- package/dist/core/json.d.ts +0 -15
- package/dist/core/json.js +0 -24
- package/dist/core/runtime/index.d.ts +0 -1
- package/dist/core/runtime/index.js +0 -5
- package/dist/core/runtime/runtime.d.ts +0 -9
- package/dist/core/runtime/runtime.js +0 -103
- package/dist/core/schemas/Schema.d.ts +0 -87
- package/dist/core/schemas/Schema.js +0 -24
- package/dist/core/schemas/builders/bigint/bigint.d.ts +0 -2
- package/dist/core/schemas/builders/bigint/bigint.js +0 -53
- package/dist/core/schemas/builders/bigint/index.d.ts +0 -1
- package/dist/core/schemas/builders/bigint/index.js +0 -5
- package/dist/core/schemas/builders/date/date.d.ts +0 -2
- package/dist/core/schemas/builders/date/date.js +0 -62
- package/dist/core/schemas/builders/date/index.d.ts +0 -1
- package/dist/core/schemas/builders/date/index.js +0 -5
- package/dist/core/schemas/builders/enum/enum.d.ts +0 -2
- package/dist/core/schemas/builders/enum/enum.js +0 -38
- package/dist/core/schemas/builders/enum/index.d.ts +0 -1
- package/dist/core/schemas/builders/enum/index.js +0 -5
- package/dist/core/schemas/builders/index.d.ts +0 -14
- package/dist/core/schemas/builders/index.js +0 -30
- package/dist/core/schemas/builders/lazy/index.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/index.js +0 -7
- package/dist/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/dist/core/schemas/builders/lazy/lazy.js +0 -24
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/lazyObject.js +0 -11
- package/dist/core/schemas/builders/list/index.d.ts +0 -1
- package/dist/core/schemas/builders/list/index.js +0 -5
- package/dist/core/schemas/builders/list/list.d.ts +0 -2
- package/dist/core/schemas/builders/list/list.js +0 -54
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +0 -28
- package/dist/core/schemas/builders/literals/index.d.ts +0 -2
- package/dist/core/schemas/builders/literals/index.js +0 -7
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +0 -28
- package/dist/core/schemas/builders/object/index.d.ts +0 -6
- package/dist/core/schemas/builders/object/index.js +0 -11
- package/dist/core/schemas/builders/object/object.d.ts +0 -3
- package/dist/core/schemas/builders/object/object.js +0 -261
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -7
- package/dist/core/schemas/builders/object/property.d.ts +0 -8
- package/dist/core/schemas/builders/object/property.js +0 -15
- package/dist/core/schemas/builders/object/types.d.ts +0 -31
- package/dist/core/schemas/builders/object/types.js +0 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -53
- package/dist/core/schemas/builders/object-like/index.d.ts +0 -2
- package/dist/core/schemas/builders/object-like/index.js +0 -6
- package/dist/core/schemas/builders/object-like/types.d.ts +0 -7
- package/dist/core/schemas/builders/object-like/types.js +0 -2
- package/dist/core/schemas/builders/primitives/any.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/any.js +0 -6
- package/dist/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/boolean.js +0 -25
- package/dist/core/schemas/builders/primitives/index.d.ts +0 -5
- package/dist/core/schemas/builders/primitives/index.js +0 -13
- package/dist/core/schemas/builders/primitives/number.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/number.js +0 -25
- package/dist/core/schemas/builders/primitives/string.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/string.js +0 -25
- package/dist/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/unknown.js +0 -6
- package/dist/core/schemas/builders/record/index.d.ts +0 -2
- package/dist/core/schemas/builders/record/index.js +0 -5
- package/dist/core/schemas/builders/record/record.d.ts +0 -3
- package/dist/core/schemas/builders/record/record.js +0 -93
- package/dist/core/schemas/builders/record/types.d.ts +0 -4
- package/dist/core/schemas/builders/record/types.js +0 -2
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -21
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -145
- package/dist/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/dist/core/schemas/builders/schema-utils/index.js +0 -11
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -9
- package/dist/core/schemas/builders/set/index.d.ts +0 -1
- package/dist/core/schemas/builders/set/index.js +0 -5
- package/dist/core/schemas/builders/set/set.d.ts +0 -2
- package/dist/core/schemas/builders/set/set.js +0 -43
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/dist/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/dist/core/schemas/builders/undiscriminated-union/types.js +0 -2
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -39
- package/dist/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/dist/core/schemas/builders/union/discriminant.js +0 -9
- package/dist/core/schemas/builders/union/index.d.ts +0 -4
- package/dist/core/schemas/builders/union/index.js +0 -7
- package/dist/core/schemas/builders/union/types.d.ts +0 -13
- package/dist/core/schemas/builders/union/types.js +0 -2
- package/dist/core/schemas/builders/union/union.d.ts +0 -4
- package/dist/core/schemas/builders/union/union.js +0 -129
- package/dist/core/schemas/index.d.ts +0 -2
- package/dist/core/schemas/index.js +0 -17
- package/dist/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/dist/core/schemas/utils/MaybePromise.js +0 -2
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +0 -2
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +0 -15
- package/dist/core/schemas/utils/entries.d.ts +0 -1
- package/dist/core/schemas/utils/entries.js +0 -6
- package/dist/core/schemas/utils/filterObject.d.ts +0 -1
- package/dist/core/schemas/utils/filterObject.js +0 -13
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -27
- package/dist/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/dist/core/schemas/utils/isPlainObject.js +0 -17
- package/dist/core/schemas/utils/keys.d.ts +0 -1
- package/dist/core/schemas/utils/keys.js +0 -6
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +0 -27
- package/dist/core/schemas/utils/partition.d.ts +0 -1
- package/dist/core/schemas/utils/partition.js +0 -15
- package/dist/core/streaming-fetcher/Stream.d.ts +0 -47
- package/dist/core/streaming-fetcher/Stream.js +0 -169
- package/dist/core/streaming-fetcher/index.d.ts +0 -1
- package/dist/core/streaming-fetcher/index.js +0 -5
- package/dist/core/websocket/events.d.ts +0 -36
- package/dist/core/websocket/events.js +0 -27
- package/dist/core/websocket/index.d.ts +0 -1
- package/dist/core/websocket/index.js +0 -17
- package/dist/core/websocket/ws.d.ts +0 -137
- package/dist/core/websocket/ws.js +0 -448
- package/dist/environments.d.ts +0 -7
- package/dist/environments.js +0 -9
- package/dist/errors/CartesiaError.d.ts +0 -12
- package/dist/errors/CartesiaError.js +0 -33
- package/dist/errors/CartesiaTimeoutError.d.ts +0 -6
- package/dist/errors/CartesiaTimeoutError.js +0 -13
- package/dist/errors/index.d.ts +0 -2
- package/dist/errors/index.js +0 -7
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -53
- package/dist/serialization/index.d.ts +0 -1
- package/dist/serialization/index.js +0 -17
- package/dist/serialization/resources/apiStatus/index.d.ts +0 -1
- package/dist/serialization/resources/apiStatus/index.js +0 -17
- package/dist/serialization/resources/apiStatus/types/ApiInfo.d.ts +0 -13
- package/dist/serialization/resources/apiStatus/types/ApiInfo.js +0 -44
- package/dist/serialization/resources/apiStatus/types/index.d.ts +0 -1
- package/dist/serialization/resources/apiStatus/types/index.js +0 -17
- package/dist/serialization/resources/auth/index.d.ts +0 -1
- package/dist/serialization/resources/auth/index.js +0 -17
- package/dist/serialization/resources/auth/types/TokenGrant.d.ts +0 -13
- package/dist/serialization/resources/auth/types/TokenGrant.js +0 -44
- package/dist/serialization/resources/auth/types/TokenRequest.d.ts +0 -14
- package/dist/serialization/resources/auth/types/TokenRequest.js +0 -45
- package/dist/serialization/resources/auth/types/TokenResponse.d.ts +0 -12
- package/dist/serialization/resources/auth/types/TokenResponse.js +0 -43
- package/dist/serialization/resources/auth/types/index.d.ts +0 -3
- package/dist/serialization/resources/auth/types/index.js +0 -19
- package/dist/serialization/resources/embedding/index.d.ts +0 -1
- package/dist/serialization/resources/embedding/index.js +0 -17
- package/dist/serialization/resources/embedding/types/Embedding.d.ts +0 -10
- package/dist/serialization/resources/embedding/types/Embedding.js +0 -41
- package/dist/serialization/resources/embedding/types/index.d.ts +0 -1
- package/dist/serialization/resources/embedding/types/index.js +0 -17
- package/dist/serialization/resources/index.d.ts +0 -14
- package/dist/serialization/resources/index.js +0 -53
- package/dist/serialization/resources/stt/index.d.ts +0 -1
- package/dist/serialization/resources/stt/index.js +0 -17
- package/dist/serialization/resources/stt/types/DoneMessage.d.ts +0 -12
- package/dist/serialization/resources/stt/types/DoneMessage.js +0 -43
- package/dist/serialization/resources/stt/types/ErrorMessage.d.ts +0 -13
- package/dist/serialization/resources/stt/types/ErrorMessage.js +0 -44
- package/dist/serialization/resources/stt/types/FlushDoneMessage.d.ts +0 -12
- package/dist/serialization/resources/stt/types/FlushDoneMessage.js +0 -43
- package/dist/serialization/resources/stt/types/StreamingTranscriptionResponse.d.ts +0 -26
- package/dist/serialization/resources/stt/types/StreamingTranscriptionResponse.js +0 -55
- package/dist/serialization/resources/stt/types/SttEncoding.d.ts +0 -10
- package/dist/serialization/resources/stt/types/SttEncoding.js +0 -41
- package/dist/serialization/resources/stt/types/TimestampGranularity.d.ts +0 -10
- package/dist/serialization/resources/stt/types/TimestampGranularity.js +0 -41
- package/dist/serialization/resources/stt/types/TranscriptMessage.d.ts +0 -18
- package/dist/serialization/resources/stt/types/TranscriptMessage.js +0 -49
- package/dist/serialization/resources/stt/types/TranscriptionResponse.d.ts +0 -16
- package/dist/serialization/resources/stt/types/TranscriptionResponse.js +0 -47
- package/dist/serialization/resources/stt/types/TranscriptionWord.d.ts +0 -14
- package/dist/serialization/resources/stt/types/TranscriptionWord.js +0 -45
- package/dist/serialization/resources/stt/types/index.d.ts +0 -9
- package/dist/serialization/resources/stt/types/index.js +0 -25
- package/dist/serialization/resources/tts/index.d.ts +0 -1
- package/dist/serialization/resources/tts/index.js +0 -17
- package/dist/serialization/resources/tts/types/CancelContextRequest.d.ts +0 -14
- package/dist/serialization/resources/tts/types/CancelContextRequest.js +0 -45
- package/dist/serialization/resources/tts/types/ContextId.d.ts +0 -10
- package/dist/serialization/resources/tts/types/ContextId.js +0 -41
- package/dist/serialization/resources/tts/types/Controls.d.ts +0 -15
- package/dist/serialization/resources/tts/types/Controls.js +0 -46
- package/dist/serialization/resources/tts/types/Emotion.d.ts +0 -10
- package/dist/serialization/resources/tts/types/Emotion.js +0 -41
- package/dist/serialization/resources/tts/types/EmotionDeprecated.d.ts +0 -10
- package/dist/serialization/resources/tts/types/EmotionDeprecated.js +0 -67
- package/dist/serialization/resources/tts/types/FlushId.d.ts +0 -10
- package/dist/serialization/resources/tts/types/FlushId.js +0 -41
- package/dist/serialization/resources/tts/types/GenerationConfig.d.ts +0 -15
- package/dist/serialization/resources/tts/types/GenerationConfig.js +0 -46
- package/dist/serialization/resources/tts/types/GenerationRequest.d.ts +0 -33
- package/dist/serialization/resources/tts/types/GenerationRequest.js +0 -64
- package/dist/serialization/resources/tts/types/ModelSpeed.d.ts +0 -10
- package/dist/serialization/resources/tts/types/ModelSpeed.js +0 -41
- package/dist/serialization/resources/tts/types/Mp3OutputFormat.d.ts +0 -13
- package/dist/serialization/resources/tts/types/Mp3OutputFormat.js +0 -44
- package/dist/serialization/resources/tts/types/NaturalSpecifier.d.ts +0 -10
- package/dist/serialization/resources/tts/types/NaturalSpecifier.js +0 -41
- package/dist/serialization/resources/tts/types/NumericalSpecifier.d.ts +0 -10
- package/dist/serialization/resources/tts/types/NumericalSpecifier.js +0 -41
- package/dist/serialization/resources/tts/types/OutputFormat.d.ts +0 -22
- package/dist/serialization/resources/tts/types/OutputFormat.js +0 -53
- package/dist/serialization/resources/tts/types/PhonemeTimestamps.d.ts +0 -14
- package/dist/serialization/resources/tts/types/PhonemeTimestamps.js +0 -45
- package/dist/serialization/resources/tts/types/RawEncoding.d.ts +0 -10
- package/dist/serialization/resources/tts/types/RawEncoding.js +0 -41
- package/dist/serialization/resources/tts/types/RawOutputFormat.d.ts +0 -15
- package/dist/serialization/resources/tts/types/RawOutputFormat.js +0 -46
- package/dist/serialization/resources/tts/types/Speed.d.ts +0 -12
- package/dist/serialization/resources/tts/types/Speed.js +0 -43
- package/dist/serialization/resources/tts/types/SseOutputFormat.d.ts +0 -15
- package/dist/serialization/resources/tts/types/SseOutputFormat.js +0 -46
- package/dist/serialization/resources/tts/types/SupportedLanguage.d.ts +0 -10
- package/dist/serialization/resources/tts/types/SupportedLanguage.js +0 -57
- package/dist/serialization/resources/tts/types/TtsRequest.d.ts +0 -25
- package/dist/serialization/resources/tts/types/TtsRequest.js +0 -56
- package/dist/serialization/resources/tts/types/TtsRequestEmbeddingSpecifier.d.ts +0 -16
- package/dist/serialization/resources/tts/types/TtsRequestEmbeddingSpecifier.js +0 -47
- package/dist/serialization/resources/tts/types/TtsRequestIdSpecifier.d.ts +0 -16
- package/dist/serialization/resources/tts/types/TtsRequestIdSpecifier.js +0 -47
- package/dist/serialization/resources/tts/types/TtsRequestVoiceSpecifier.d.ts +0 -12
- package/dist/serialization/resources/tts/types/TtsRequestVoiceSpecifier.js +0 -43
- package/dist/serialization/resources/tts/types/TtssseRequest.d.ts +0 -30
- package/dist/serialization/resources/tts/types/TtssseRequest.js +0 -61
- package/dist/serialization/resources/tts/types/WavOutputFormat.d.ts +0 -12
- package/dist/serialization/resources/tts/types/WavOutputFormat.js +0 -42
- package/dist/serialization/resources/tts/types/WebSocketBaseResponse.d.ts +0 -15
- package/dist/serialization/resources/tts/types/WebSocketBaseResponse.js +0 -46
- package/dist/serialization/resources/tts/types/WebSocketChunkResponse.d.ts +0 -14
- package/dist/serialization/resources/tts/types/WebSocketChunkResponse.js +0 -47
- package/dist/serialization/resources/tts/types/WebSocketDoneResponse.d.ts +0 -12
- package/dist/serialization/resources/tts/types/WebSocketDoneResponse.js +0 -42
- package/dist/serialization/resources/tts/types/WebSocketErrorResponse.d.ts +0 -13
- package/dist/serialization/resources/tts/types/WebSocketErrorResponse.js +0 -46
- package/dist/serialization/resources/tts/types/WebSocketFlushDoneResponse.d.ts +0 -15
- package/dist/serialization/resources/tts/types/WebSocketFlushDoneResponse.js +0 -48
- package/dist/serialization/resources/tts/types/WebSocketPhonemeTimestampsResponse.d.ts +0 -14
- package/dist/serialization/resources/tts/types/WebSocketPhonemeTimestampsResponse.js +0 -47
- package/dist/serialization/resources/tts/types/WebSocketRawOutputFormat.d.ts +0 -15
- package/dist/serialization/resources/tts/types/WebSocketRawOutputFormat.js +0 -46
- package/dist/serialization/resources/tts/types/WebSocketRequest.d.ts +0 -12
- package/dist/serialization/resources/tts/types/WebSocketRequest.js +0 -43
- package/dist/serialization/resources/tts/types/WebSocketResponse.d.ts +0 -34
- package/dist/serialization/resources/tts/types/WebSocketResponse.js +0 -59
- package/dist/serialization/resources/tts/types/WebSocketStreamOptions.d.ts +0 -12
- package/dist/serialization/resources/tts/types/WebSocketStreamOptions.js +0 -43
- package/dist/serialization/resources/tts/types/WebSocketTimestampsResponse.d.ts +0 -14
- package/dist/serialization/resources/tts/types/WebSocketTimestampsResponse.js +0 -47
- package/dist/serialization/resources/tts/types/WebSocketTtsOutput.d.ts +0 -21
- package/dist/serialization/resources/tts/types/WebSocketTtsOutput.js +0 -52
- package/dist/serialization/resources/tts/types/WebSocketTtsRequest.d.ts +0 -30
- package/dist/serialization/resources/tts/types/WebSocketTtsRequest.js +0 -61
- package/dist/serialization/resources/tts/types/WordTimestamps.d.ts +0 -14
- package/dist/serialization/resources/tts/types/WordTimestamps.js +0 -45
- package/dist/serialization/resources/tts/types/index.d.ts +0 -39
- package/dist/serialization/resources/tts/types/index.js +0 -55
- package/dist/serialization/resources/voiceChanger/index.d.ts +0 -1
- package/dist/serialization/resources/voiceChanger/index.js +0 -17
- package/dist/serialization/resources/voiceChanger/types/OutputFormatContainer.d.ts +0 -10
- package/dist/serialization/resources/voiceChanger/types/OutputFormatContainer.js +0 -41
- package/dist/serialization/resources/voiceChanger/types/StreamingResponse.d.ts +0 -22
- package/dist/serialization/resources/voiceChanger/types/StreamingResponse.js +0 -53
- package/dist/serialization/resources/voiceChanger/types/index.d.ts +0 -2
- package/dist/serialization/resources/voiceChanger/types/index.js +0 -18
- package/dist/serialization/resources/voices/client/index.d.ts +0 -1
- package/dist/serialization/resources/voices/client/index.js +0 -37
- package/dist/serialization/resources/voices/client/list.d.ts +0 -11
- package/dist/serialization/resources/voices/client/list.js +0 -42
- package/dist/serialization/resources/voices/index.d.ts +0 -2
- package/dist/serialization/resources/voices/index.js +0 -18
- package/dist/serialization/resources/voices/types/BaseVoiceId.d.ts +0 -11
- package/dist/serialization/resources/voices/types/BaseVoiceId.js +0 -8
- package/dist/serialization/resources/voices/types/CloneMode.d.ts +0 -10
- package/dist/serialization/resources/voices/types/CloneMode.js +0 -41
- package/dist/serialization/resources/voices/types/CreateVoiceRequest.d.ts +0 -19
- package/dist/serialization/resources/voices/types/CreateVoiceRequest.js +0 -50
- package/dist/serialization/resources/voices/types/EmbeddingResponse.d.ts +0 -13
- package/dist/serialization/resources/voices/types/EmbeddingResponse.js +0 -44
- package/dist/serialization/resources/voices/types/EmbeddingSpecifier.d.ts +0 -15
- package/dist/serialization/resources/voices/types/EmbeddingSpecifier.js +0 -46
- package/dist/serialization/resources/voices/types/Gender.d.ts +0 -10
- package/dist/serialization/resources/voices/types/Gender.js +0 -44
- package/dist/serialization/resources/voices/types/IdSpecifier.d.ts +0 -15
- package/dist/serialization/resources/voices/types/IdSpecifier.js +0 -46
- package/dist/serialization/resources/voices/types/LocalizeDialect.d.ts +0 -14
- package/dist/serialization/resources/voices/types/LocalizeDialect.js +0 -50
- package/dist/serialization/resources/voices/types/LocalizeEnglishDialect.d.ts +0 -10
- package/dist/serialization/resources/voices/types/LocalizeEnglishDialect.js +0 -41
- package/dist/serialization/resources/voices/types/LocalizeFrenchDialect.d.ts +0 -10
- package/dist/serialization/resources/voices/types/LocalizeFrenchDialect.js +0 -41
- package/dist/serialization/resources/voices/types/LocalizePortugueseDialect.d.ts +0 -10
- package/dist/serialization/resources/voices/types/LocalizePortugueseDialect.js +0 -41
- package/dist/serialization/resources/voices/types/LocalizeSpanishDialect.d.ts +0 -10
- package/dist/serialization/resources/voices/types/LocalizeSpanishDialect.js +0 -41
- package/dist/serialization/resources/voices/types/LocalizeTargetLanguage.d.ts +0 -10
- package/dist/serialization/resources/voices/types/LocalizeTargetLanguage.js +0 -57
- package/dist/serialization/resources/voices/types/LocalizeVoiceRequest.d.ts +0 -20
- package/dist/serialization/resources/voices/types/LocalizeVoiceRequest.js +0 -51
- package/dist/serialization/resources/voices/types/MixVoiceSpecifier.d.ts +0 -12
- package/dist/serialization/resources/voices/types/MixVoiceSpecifier.js +0 -43
- package/dist/serialization/resources/voices/types/MixVoicesRequest.d.ts +0 -13
- package/dist/serialization/resources/voices/types/MixVoicesRequest.js +0 -44
- package/dist/serialization/resources/voices/types/UpdateVoiceRequest.d.ts +0 -13
- package/dist/serialization/resources/voices/types/UpdateVoiceRequest.js +0 -44
- package/dist/serialization/resources/voices/types/Voice.d.ts +0 -22
- package/dist/serialization/resources/voices/types/Voice.js +0 -53
- package/dist/serialization/resources/voices/types/VoiceId.d.ts +0 -10
- package/dist/serialization/resources/voices/types/VoiceId.js +0 -41
- package/dist/serialization/resources/voices/types/VoiceMetadata.d.ts +0 -20
- package/dist/serialization/resources/voices/types/VoiceMetadata.js +0 -51
- package/dist/serialization/resources/voices/types/Weight.d.ts +0 -10
- package/dist/serialization/resources/voices/types/Weight.js +0 -41
- package/dist/serialization/resources/voices/types/index.d.ts +0 -21
- package/dist/serialization/resources/voices/types/index.js +0 -37
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -4
- package/dist/wrapper/Client.d.ts +0 -9
- package/dist/wrapper/Client.js +0 -17
- package/dist/wrapper/StreamingSTTClient.d.ts +0 -26
- package/dist/wrapper/StreamingSTTClient.js +0 -140
- package/dist/wrapper/StreamingTTSClient.d.ts +0 -16
- package/dist/wrapper/StreamingTTSClient.js +0 -23
- package/dist/wrapper/SttWebsocket.d.ts +0 -34
- package/dist/wrapper/SttWebsocket.js +0 -219
- package/dist/wrapper/WebPlayer.d.ts +0 -44
- package/dist/wrapper/WebPlayer.js +0 -141
- package/dist/wrapper/Websocket.d.ts +0 -40
- package/dist/wrapper/Websocket.js +0 -243
- package/dist/wrapper/source.d.ts +0 -65
- package/dist/wrapper/source.js +0 -179
- package/dist/wrapper/utils.d.ts +0 -105
- package/dist/wrapper/utils.js +0 -173
- package/environments.d.ts +0 -7
- package/environments.js +0 -9
- package/errors/CartesiaError.d.ts +0 -12
- package/errors/CartesiaError.js +0 -33
- package/errors/CartesiaTimeoutError.d.ts +0 -6
- package/errors/CartesiaTimeoutError.js +0 -13
- package/errors/index.d.ts +0 -2
- package/errors/index.js +0 -7
- package/jest.config.mjs +0 -8
- package/reference.md +0 -1052
- package/scripts/rename-to-esm-files.js +0 -115
- package/serialization/index.d.ts +0 -1
- package/serialization/index.js +0 -17
- package/serialization/resources/apiStatus/index.d.ts +0 -1
- package/serialization/resources/apiStatus/index.js +0 -17
- package/serialization/resources/apiStatus/types/ApiInfo.d.ts +0 -13
- package/serialization/resources/apiStatus/types/ApiInfo.js +0 -44
- package/serialization/resources/apiStatus/types/index.d.ts +0 -1
- package/serialization/resources/apiStatus/types/index.js +0 -17
- package/serialization/resources/auth/index.d.ts +0 -1
- package/serialization/resources/auth/index.js +0 -17
- package/serialization/resources/auth/types/TokenGrant.d.ts +0 -13
- package/serialization/resources/auth/types/TokenGrant.js +0 -44
- package/serialization/resources/auth/types/TokenRequest.d.ts +0 -14
- package/serialization/resources/auth/types/TokenRequest.js +0 -45
- package/serialization/resources/auth/types/TokenResponse.d.ts +0 -12
- package/serialization/resources/auth/types/TokenResponse.js +0 -43
- package/serialization/resources/auth/types/index.d.ts +0 -3
- package/serialization/resources/auth/types/index.js +0 -19
- package/serialization/resources/embedding/index.d.ts +0 -1
- package/serialization/resources/embedding/index.js +0 -17
- package/serialization/resources/embedding/types/Embedding.d.ts +0 -10
- package/serialization/resources/embedding/types/Embedding.js +0 -41
- package/serialization/resources/embedding/types/index.d.ts +0 -1
- package/serialization/resources/embedding/types/index.js +0 -17
- package/serialization/resources/index.d.ts +0 -14
- package/serialization/resources/index.js +0 -53
- package/serialization/resources/stt/index.d.ts +0 -1
- package/serialization/resources/stt/index.js +0 -17
- package/serialization/resources/stt/types/DoneMessage.d.ts +0 -12
- package/serialization/resources/stt/types/DoneMessage.js +0 -43
- package/serialization/resources/stt/types/ErrorMessage.d.ts +0 -13
- package/serialization/resources/stt/types/ErrorMessage.js +0 -44
- package/serialization/resources/stt/types/FlushDoneMessage.d.ts +0 -12
- package/serialization/resources/stt/types/FlushDoneMessage.js +0 -43
- package/serialization/resources/stt/types/StreamingTranscriptionResponse.d.ts +0 -26
- package/serialization/resources/stt/types/StreamingTranscriptionResponse.js +0 -55
- package/serialization/resources/stt/types/SttEncoding.d.ts +0 -10
- package/serialization/resources/stt/types/SttEncoding.js +0 -41
- package/serialization/resources/stt/types/TimestampGranularity.d.ts +0 -10
- package/serialization/resources/stt/types/TimestampGranularity.js +0 -41
- package/serialization/resources/stt/types/TranscriptMessage.d.ts +0 -18
- package/serialization/resources/stt/types/TranscriptMessage.js +0 -49
- package/serialization/resources/stt/types/TranscriptionResponse.d.ts +0 -16
- package/serialization/resources/stt/types/TranscriptionResponse.js +0 -47
- package/serialization/resources/stt/types/TranscriptionWord.d.ts +0 -14
- package/serialization/resources/stt/types/TranscriptionWord.js +0 -45
- package/serialization/resources/stt/types/index.d.ts +0 -9
- package/serialization/resources/stt/types/index.js +0 -25
- package/serialization/resources/tts/index.d.ts +0 -1
- package/serialization/resources/tts/index.js +0 -17
- package/serialization/resources/tts/types/CancelContextRequest.d.ts +0 -14
- package/serialization/resources/tts/types/CancelContextRequest.js +0 -45
- package/serialization/resources/tts/types/ContextId.d.ts +0 -10
- package/serialization/resources/tts/types/ContextId.js +0 -41
- package/serialization/resources/tts/types/Controls.d.ts +0 -15
- package/serialization/resources/tts/types/Controls.js +0 -46
- package/serialization/resources/tts/types/Emotion.d.ts +0 -10
- package/serialization/resources/tts/types/Emotion.js +0 -41
- package/serialization/resources/tts/types/EmotionDeprecated.d.ts +0 -10
- package/serialization/resources/tts/types/EmotionDeprecated.js +0 -67
- package/serialization/resources/tts/types/FlushId.d.ts +0 -10
- package/serialization/resources/tts/types/FlushId.js +0 -41
- package/serialization/resources/tts/types/GenerationConfig.d.ts +0 -15
- package/serialization/resources/tts/types/GenerationConfig.js +0 -46
- package/serialization/resources/tts/types/GenerationRequest.d.ts +0 -33
- package/serialization/resources/tts/types/GenerationRequest.js +0 -64
- package/serialization/resources/tts/types/ModelSpeed.d.ts +0 -10
- package/serialization/resources/tts/types/ModelSpeed.js +0 -41
- package/serialization/resources/tts/types/Mp3OutputFormat.d.ts +0 -13
- package/serialization/resources/tts/types/Mp3OutputFormat.js +0 -44
- package/serialization/resources/tts/types/NaturalSpecifier.d.ts +0 -10
- package/serialization/resources/tts/types/NaturalSpecifier.js +0 -41
- package/serialization/resources/tts/types/NumericalSpecifier.d.ts +0 -10
- package/serialization/resources/tts/types/NumericalSpecifier.js +0 -41
- package/serialization/resources/tts/types/OutputFormat.d.ts +0 -22
- package/serialization/resources/tts/types/OutputFormat.js +0 -53
- package/serialization/resources/tts/types/PhonemeTimestamps.d.ts +0 -14
- package/serialization/resources/tts/types/PhonemeTimestamps.js +0 -45
- package/serialization/resources/tts/types/RawEncoding.d.ts +0 -10
- package/serialization/resources/tts/types/RawEncoding.js +0 -41
- package/serialization/resources/tts/types/RawOutputFormat.d.ts +0 -15
- package/serialization/resources/tts/types/RawOutputFormat.js +0 -46
- package/serialization/resources/tts/types/Speed.d.ts +0 -12
- package/serialization/resources/tts/types/Speed.js +0 -43
- package/serialization/resources/tts/types/SseOutputFormat.d.ts +0 -15
- package/serialization/resources/tts/types/SseOutputFormat.js +0 -46
- package/serialization/resources/tts/types/SupportedLanguage.d.ts +0 -10
- package/serialization/resources/tts/types/SupportedLanguage.js +0 -57
- package/serialization/resources/tts/types/TtsRequest.d.ts +0 -25
- package/serialization/resources/tts/types/TtsRequest.js +0 -56
- package/serialization/resources/tts/types/TtsRequestEmbeddingSpecifier.d.ts +0 -16
- package/serialization/resources/tts/types/TtsRequestEmbeddingSpecifier.js +0 -47
- package/serialization/resources/tts/types/TtsRequestIdSpecifier.d.ts +0 -16
- package/serialization/resources/tts/types/TtsRequestIdSpecifier.js +0 -47
- package/serialization/resources/tts/types/TtsRequestVoiceSpecifier.d.ts +0 -12
- package/serialization/resources/tts/types/TtsRequestVoiceSpecifier.js +0 -43
- package/serialization/resources/tts/types/TtssseRequest.d.ts +0 -30
- package/serialization/resources/tts/types/TtssseRequest.js +0 -61
- package/serialization/resources/tts/types/WavOutputFormat.d.ts +0 -12
- package/serialization/resources/tts/types/WavOutputFormat.js +0 -42
- package/serialization/resources/tts/types/WebSocketBaseResponse.d.ts +0 -15
- package/serialization/resources/tts/types/WebSocketBaseResponse.js +0 -46
- package/serialization/resources/tts/types/WebSocketChunkResponse.d.ts +0 -14
- package/serialization/resources/tts/types/WebSocketChunkResponse.js +0 -47
- package/serialization/resources/tts/types/WebSocketDoneResponse.d.ts +0 -12
- package/serialization/resources/tts/types/WebSocketDoneResponse.js +0 -42
- package/serialization/resources/tts/types/WebSocketErrorResponse.d.ts +0 -13
- package/serialization/resources/tts/types/WebSocketErrorResponse.js +0 -46
- package/serialization/resources/tts/types/WebSocketFlushDoneResponse.d.ts +0 -15
- package/serialization/resources/tts/types/WebSocketFlushDoneResponse.js +0 -48
- package/serialization/resources/tts/types/WebSocketPhonemeTimestampsResponse.d.ts +0 -14
- package/serialization/resources/tts/types/WebSocketPhonemeTimestampsResponse.js +0 -47
- package/serialization/resources/tts/types/WebSocketRawOutputFormat.d.ts +0 -15
- package/serialization/resources/tts/types/WebSocketRawOutputFormat.js +0 -46
- package/serialization/resources/tts/types/WebSocketRequest.d.ts +0 -12
- package/serialization/resources/tts/types/WebSocketRequest.js +0 -43
- package/serialization/resources/tts/types/WebSocketResponse.d.ts +0 -34
- package/serialization/resources/tts/types/WebSocketResponse.js +0 -59
- package/serialization/resources/tts/types/WebSocketStreamOptions.d.ts +0 -12
- package/serialization/resources/tts/types/WebSocketStreamOptions.js +0 -43
- package/serialization/resources/tts/types/WebSocketTimestampsResponse.d.ts +0 -14
- package/serialization/resources/tts/types/WebSocketTimestampsResponse.js +0 -47
- package/serialization/resources/tts/types/WebSocketTtsOutput.d.ts +0 -21
- package/serialization/resources/tts/types/WebSocketTtsOutput.js +0 -52
- package/serialization/resources/tts/types/WebSocketTtsRequest.d.ts +0 -30
- package/serialization/resources/tts/types/WebSocketTtsRequest.js +0 -61
- package/serialization/resources/tts/types/WordTimestamps.d.ts +0 -14
- package/serialization/resources/tts/types/WordTimestamps.js +0 -45
- package/serialization/resources/tts/types/index.d.ts +0 -39
- package/serialization/resources/tts/types/index.js +0 -55
- package/serialization/resources/voiceChanger/index.d.ts +0 -1
- package/serialization/resources/voiceChanger/index.js +0 -17
- package/serialization/resources/voiceChanger/types/OutputFormatContainer.d.ts +0 -10
- package/serialization/resources/voiceChanger/types/OutputFormatContainer.js +0 -41
- package/serialization/resources/voiceChanger/types/StreamingResponse.d.ts +0 -22
- package/serialization/resources/voiceChanger/types/StreamingResponse.js +0 -53
- package/serialization/resources/voiceChanger/types/index.d.ts +0 -2
- package/serialization/resources/voiceChanger/types/index.js +0 -18
- package/serialization/resources/voices/client/index.d.ts +0 -1
- package/serialization/resources/voices/client/index.js +0 -37
- package/serialization/resources/voices/client/list.d.ts +0 -11
- package/serialization/resources/voices/client/list.js +0 -42
- package/serialization/resources/voices/index.d.ts +0 -2
- package/serialization/resources/voices/index.js +0 -18
- package/serialization/resources/voices/types/BaseVoiceId.d.ts +0 -11
- package/serialization/resources/voices/types/BaseVoiceId.js +0 -8
- package/serialization/resources/voices/types/CloneMode.d.ts +0 -10
- package/serialization/resources/voices/types/CloneMode.js +0 -41
- package/serialization/resources/voices/types/CreateVoiceRequest.d.ts +0 -19
- package/serialization/resources/voices/types/CreateVoiceRequest.js +0 -50
- package/serialization/resources/voices/types/EmbeddingResponse.d.ts +0 -13
- package/serialization/resources/voices/types/EmbeddingResponse.js +0 -44
- package/serialization/resources/voices/types/EmbeddingSpecifier.d.ts +0 -15
- package/serialization/resources/voices/types/EmbeddingSpecifier.js +0 -46
- package/serialization/resources/voices/types/Gender.d.ts +0 -10
- package/serialization/resources/voices/types/Gender.js +0 -44
- package/serialization/resources/voices/types/IdSpecifier.d.ts +0 -15
- package/serialization/resources/voices/types/IdSpecifier.js +0 -46
- package/serialization/resources/voices/types/LocalizeDialect.d.ts +0 -14
- package/serialization/resources/voices/types/LocalizeDialect.js +0 -50
- package/serialization/resources/voices/types/LocalizeEnglishDialect.d.ts +0 -10
- package/serialization/resources/voices/types/LocalizeEnglishDialect.js +0 -41
- package/serialization/resources/voices/types/LocalizeFrenchDialect.d.ts +0 -10
- package/serialization/resources/voices/types/LocalizeFrenchDialect.js +0 -41
- package/serialization/resources/voices/types/LocalizePortugueseDialect.d.ts +0 -10
- package/serialization/resources/voices/types/LocalizePortugueseDialect.js +0 -41
- package/serialization/resources/voices/types/LocalizeSpanishDialect.d.ts +0 -10
- package/serialization/resources/voices/types/LocalizeSpanishDialect.js +0 -41
- package/serialization/resources/voices/types/LocalizeTargetLanguage.d.ts +0 -10
- package/serialization/resources/voices/types/LocalizeTargetLanguage.js +0 -57
- package/serialization/resources/voices/types/LocalizeVoiceRequest.d.ts +0 -20
- package/serialization/resources/voices/types/LocalizeVoiceRequest.js +0 -51
- package/serialization/resources/voices/types/MixVoiceSpecifier.d.ts +0 -12
- package/serialization/resources/voices/types/MixVoiceSpecifier.js +0 -43
- package/serialization/resources/voices/types/MixVoicesRequest.d.ts +0 -13
- package/serialization/resources/voices/types/MixVoicesRequest.js +0 -44
- package/serialization/resources/voices/types/UpdateVoiceRequest.d.ts +0 -13
- package/serialization/resources/voices/types/UpdateVoiceRequest.js +0 -44
- package/serialization/resources/voices/types/Voice.d.ts +0 -22
- package/serialization/resources/voices/types/Voice.js +0 -53
- package/serialization/resources/voices/types/VoiceId.d.ts +0 -10
- package/serialization/resources/voices/types/VoiceId.js +0 -41
- package/serialization/resources/voices/types/VoiceMetadata.d.ts +0 -20
- package/serialization/resources/voices/types/VoiceMetadata.js +0 -51
- package/serialization/resources/voices/types/Weight.d.ts +0 -10
- package/serialization/resources/voices/types/Weight.js +0 -41
- package/serialization/resources/voices/types/index.d.ts +0 -21
- package/serialization/resources/voices/types/index.js +0 -37
- package/wrapper/Client.d.ts +0 -9
- package/wrapper/Client.js +0 -17
- package/wrapper/StreamingSTTClient.d.ts +0 -26
- package/wrapper/StreamingSTTClient.js +0 -140
- package/wrapper/StreamingTTSClient.d.ts +0 -16
- package/wrapper/StreamingTTSClient.js +0 -23
- package/wrapper/SttWebsocket.d.ts +0 -34
- package/wrapper/SttWebsocket.js +0 -219
- package/wrapper/WebPlayer.d.ts +0 -44
- package/wrapper/WebPlayer.js +0 -141
- package/wrapper/Websocket.d.ts +0 -40
- package/wrapper/Websocket.js +0 -243
- package/wrapper/source.d.ts +0 -65
- package/wrapper/source.js +0 -179
- package/wrapper/utils.d.ts +0 -105
- package/wrapper/utils.js +0 -173
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"top-level.js","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":";AAAA,sFAAsF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"top-level.mjs","sourceRoot":"","sources":["../src/resources/top-level.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { TTS, type GenerationConfig, type GenerationRequest, type ModelSpeed, type RawOutputFormat, type VoiceSpecifier, type WebsocketClientEvent, type WebsocketResponse, type TTSGenerateParams, type TTSGenerateSseParams, } from "./tts.mjs";
|
|
2
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/tts/index.ts"],"names":[],"mappings":"OAEO,EACL,GAAG,EACH,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { TTS, type GenerationConfig, type GenerationRequest, type ModelSpeed, type RawOutputFormat, type VoiceSpecifier, type WebsocketClientEvent, type WebsocketResponse, type TTSGenerateParams, type TTSGenerateSseParams, } from "./tts.js";
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/tts/index.ts"],"names":[],"mappings":"OAEO,EACL,GAAG,EACH,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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.TTS = void 0;
|
|
5
|
+
var tts_1 = require("./tts.js");
|
|
6
|
+
Object.defineProperty(exports, "TTS", { enumerable: true, get: function () { return tts_1.TTS; } });
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/tts/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gCAWe;AAVb,0FAAA,GAAG,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/tts/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,GAAG,GAUJ"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as TTSAPI from "./tts.mjs";
|
|
2
|
+
import { Cartesia } from "../../client.mjs";
|
|
3
|
+
import { EventEmitter } from "../../core/EventEmitter.mjs";
|
|
4
|
+
import { CartesiaError } from "../../core/error.mjs";
|
|
5
|
+
export declare class WebSocketError extends CartesiaError {
|
|
6
|
+
/**
|
|
7
|
+
* The error data that the API sent back in an error event.
|
|
8
|
+
*/
|
|
9
|
+
error?: TTSAPI.WebsocketResponse.Error | undefined;
|
|
10
|
+
constructor(message: string, event: TTSAPI.WebsocketResponse.Error | null);
|
|
11
|
+
}
|
|
12
|
+
type Simplify<T> = {
|
|
13
|
+
[KeyType in keyof T]: T[KeyType];
|
|
14
|
+
} & {};
|
|
15
|
+
type WebsocketEvents = Simplify<{
|
|
16
|
+
event: (event: TTSAPI.WebsocketResponse) => void;
|
|
17
|
+
error: (error: WebSocketError) => void;
|
|
18
|
+
} & {
|
|
19
|
+
[EventType in Exclude<NonNullable<TTSAPI.WebsocketResponse['type']>, 'error'>]: (event: Extract<TTSAPI.WebsocketResponse, {
|
|
20
|
+
type?: EventType;
|
|
21
|
+
}>) => unknown;
|
|
22
|
+
}>;
|
|
23
|
+
export declare abstract class TTSEmitter extends EventEmitter<WebsocketEvents> {
|
|
24
|
+
/**
|
|
25
|
+
* Send an event to the API.
|
|
26
|
+
*/
|
|
27
|
+
abstract send(event: TTSAPI.WebsocketClientEvent): void;
|
|
28
|
+
/**
|
|
29
|
+
* Close the websocket connection.
|
|
30
|
+
*/
|
|
31
|
+
abstract close(props?: {
|
|
32
|
+
code: number;
|
|
33
|
+
reason: string;
|
|
34
|
+
}): void;
|
|
35
|
+
protected _onError(event: null, message: string, cause: any): void;
|
|
36
|
+
protected _onError(event: TTSAPI.WebsocketResponse.Error, message?: string | undefined): void;
|
|
37
|
+
}
|
|
38
|
+
export declare function buildURL(client: Cartesia): URL;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=internal-base.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-base.d.mts","sourceRoot":"","sources":["../../src/resources/tts/internal-base.ts"],"names":[],"mappings":"OAEO,KAAK,MAAM;OACX,EAAE,QAAQ,EAAE;OAEZ,EAAE,YAAY,EAAE;OAChB,EAAE,aAAa,EAAE;AAExB,qBAAa,cAAe,SAAQ,aAAa;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,iBAAiB,CAAC,KAAK,GAAG,SAAS,CAAC;gBAEvC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,iBAAiB,CAAC,KAAK,GAAG,IAAI;CAK1E;AAED,KAAK,QAAQ,CAAC,CAAC,IAAI;KAAG,OAAO,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC;CAAE,GAAG,EAAE,CAAC;AAE7D,KAAK,eAAe,GAAG,QAAQ,CAC7B;IACE,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,iBAAiB,KAAK,IAAI,CAAC;IACjD,KAAK,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;CACxC,GAAG;KACD,SAAS,IAAI,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,CAC9E,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE;QAAE,IAAI,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC,KAC3D,OAAO;CACb,CACF,CAAC;AAEF,8BAAsB,UAAW,SAAQ,YAAY,CAAC,eAAe,CAAC;IACpE;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,oBAAoB,GAAG,IAAI;IAEvD;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;IAE9D,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI;IAClE,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;CA0B9F;AAED,wBAAgB,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,GAAG,CAM9C"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as TTSAPI from "./tts.js";
|
|
2
|
+
import { Cartesia } from "../../client.js";
|
|
3
|
+
import { EventEmitter } from "../../core/EventEmitter.js";
|
|
4
|
+
import { CartesiaError } from "../../core/error.js";
|
|
5
|
+
export declare class WebSocketError extends CartesiaError {
|
|
6
|
+
/**
|
|
7
|
+
* The error data that the API sent back in an error event.
|
|
8
|
+
*/
|
|
9
|
+
error?: TTSAPI.WebsocketResponse.Error | undefined;
|
|
10
|
+
constructor(message: string, event: TTSAPI.WebsocketResponse.Error | null);
|
|
11
|
+
}
|
|
12
|
+
type Simplify<T> = {
|
|
13
|
+
[KeyType in keyof T]: T[KeyType];
|
|
14
|
+
} & {};
|
|
15
|
+
type WebsocketEvents = Simplify<{
|
|
16
|
+
event: (event: TTSAPI.WebsocketResponse) => void;
|
|
17
|
+
error: (error: WebSocketError) => void;
|
|
18
|
+
} & {
|
|
19
|
+
[EventType in Exclude<NonNullable<TTSAPI.WebsocketResponse['type']>, 'error'>]: (event: Extract<TTSAPI.WebsocketResponse, {
|
|
20
|
+
type?: EventType;
|
|
21
|
+
}>) => unknown;
|
|
22
|
+
}>;
|
|
23
|
+
export declare abstract class TTSEmitter extends EventEmitter<WebsocketEvents> {
|
|
24
|
+
/**
|
|
25
|
+
* Send an event to the API.
|
|
26
|
+
*/
|
|
27
|
+
abstract send(event: TTSAPI.WebsocketClientEvent): void;
|
|
28
|
+
/**
|
|
29
|
+
* Close the websocket connection.
|
|
30
|
+
*/
|
|
31
|
+
abstract close(props?: {
|
|
32
|
+
code: number;
|
|
33
|
+
reason: string;
|
|
34
|
+
}): void;
|
|
35
|
+
protected _onError(event: null, message: string, cause: any): void;
|
|
36
|
+
protected _onError(event: TTSAPI.WebsocketResponse.Error, message?: string | undefined): void;
|
|
37
|
+
}
|
|
38
|
+
export declare function buildURL(client: Cartesia): URL;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=internal-base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-base.d.ts","sourceRoot":"","sources":["../../src/resources/tts/internal-base.ts"],"names":[],"mappings":"OAEO,KAAK,MAAM;OACX,EAAE,QAAQ,EAAE;OAEZ,EAAE,YAAY,EAAE;OAChB,EAAE,aAAa,EAAE;AAExB,qBAAa,cAAe,SAAQ,aAAa;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,iBAAiB,CAAC,KAAK,GAAG,SAAS,CAAC;gBAEvC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,iBAAiB,CAAC,KAAK,GAAG,IAAI;CAK1E;AAED,KAAK,QAAQ,CAAC,CAAC,IAAI;KAAG,OAAO,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC;CAAE,GAAG,EAAE,CAAC;AAE7D,KAAK,eAAe,GAAG,QAAQ,CAC7B;IACE,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,iBAAiB,KAAK,IAAI,CAAC;IACjD,KAAK,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;CACxC,GAAG;KACD,SAAS,IAAI,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,CAC9E,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE;QAAE,IAAI,CAAC,EAAE,SAAS,CAAA;KAAE,CAAC,KAC3D,OAAO;CACb,CACF,CAAC;AAEF,8BAAsB,UAAW,SAAQ,YAAY,CAAC,eAAe,CAAC;IACpE;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,oBAAoB,GAAG,IAAI;IAEvD;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;IAE9D,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI;IAClE,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;CA0B9F;AAED,wBAAgB,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,GAAG,CAM9C"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.TTSEmitter = exports.WebSocketError = void 0;
|
|
5
|
+
exports.buildURL = buildURL;
|
|
6
|
+
const EventEmitter_1 = require("../../core/EventEmitter.js");
|
|
7
|
+
const error_1 = require("../../core/error.js");
|
|
8
|
+
class WebSocketError extends error_1.CartesiaError {
|
|
9
|
+
constructor(message, event) {
|
|
10
|
+
super(message);
|
|
11
|
+
this.error = event ?? undefined;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.WebSocketError = WebSocketError;
|
|
15
|
+
class TTSEmitter extends EventEmitter_1.EventEmitter {
|
|
16
|
+
_onError(event, message, cause) {
|
|
17
|
+
message = message ?? safeJSONStringify(event) ?? 'unknown error';
|
|
18
|
+
if (!this._hasListener('error')) {
|
|
19
|
+
const error = new WebSocketError(message +
|
|
20
|
+
`\n\nTo resolve these unhandled rejection errors you should bind an \`error\` callback, e.g. \`ws.on('error', (error) => ...)\` `, event);
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
error.cause = cause;
|
|
23
|
+
Promise.reject(error);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const error = new WebSocketError(message, event);
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
error.cause = cause;
|
|
29
|
+
this._emit('error', error);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.TTSEmitter = TTSEmitter;
|
|
33
|
+
function buildURL(client) {
|
|
34
|
+
const path = '/tts/websocket';
|
|
35
|
+
const baseURL = client.baseURL;
|
|
36
|
+
const url = new URL(baseURL + (baseURL.endsWith('/') ? path.slice(1) : path));
|
|
37
|
+
url.protocol = 'wss';
|
|
38
|
+
return url;
|
|
39
|
+
}
|
|
40
|
+
function safeJSONStringify(value) {
|
|
41
|
+
try {
|
|
42
|
+
return JSON.stringify(value);
|
|
43
|
+
}
|
|
44
|
+
catch {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=internal-base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-base.js","sourceRoot":"","sources":["../../src/resources/tts/internal-base.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AA0EtF,4BAMC;AA3ED,6DAAuD;AACvD,+CAAiD;AAEjD,MAAa,cAAe,SAAQ,qBAAa;IAM/C,YAAY,OAAe,EAAE,KAA4C;QACvE,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,KAAK,GAAG,KAAK,IAAI,SAAS,CAAC;IAClC,CAAC;CACF;AAXD,wCAWC;AAeD,MAAsB,UAAW,SAAQ,2BAA6B;IAa1D,QAAQ,CAChB,KAA4C,EAC5C,OAA4B,EAC5B,KAAW;QAEX,OAAO,GAAG,OAAO,IAAI,iBAAiB,CAAC,KAAK,CAAC,IAAI,eAAe,CAAC;QAEjE,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC;YAChC,MAAM,KAAK,GAAG,IAAI,cAAc,CAC9B,OAAO;gBACL,iIAAiI,EACnI,KAAK,CACN,CAAC;YACF,aAAa;YACb,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;YACpB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACtB,OAAO;QACT,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACjD,aAAa;QACb,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QAEpB,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC;CACF;AAtCD,gCAsCC;AAED,SAAgB,QAAQ,CAAC,MAAgB;IACvC,MAAM,IAAI,GAAG,gBAAgB,CAAC;IAC9B,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;IAC/B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC9E,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;IACrB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,SAAS,iBAAiB,CAAC,KAAc;IACvC,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { EventEmitter } from "../../core/EventEmitter.mjs";
|
|
3
|
+
import { CartesiaError } from "../../core/error.mjs";
|
|
4
|
+
export class WebSocketError extends CartesiaError {
|
|
5
|
+
constructor(message, event) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.error = event ?? undefined;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export class TTSEmitter extends EventEmitter {
|
|
11
|
+
_onError(event, message, cause) {
|
|
12
|
+
message = message ?? safeJSONStringify(event) ?? 'unknown error';
|
|
13
|
+
if (!this._hasListener('error')) {
|
|
14
|
+
const error = new WebSocketError(message +
|
|
15
|
+
`\n\nTo resolve these unhandled rejection errors you should bind an \`error\` callback, e.g. \`ws.on('error', (error) => ...)\` `, event);
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
error.cause = cause;
|
|
18
|
+
Promise.reject(error);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const error = new WebSocketError(message, event);
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
error.cause = cause;
|
|
24
|
+
this._emit('error', error);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export function buildURL(client) {
|
|
28
|
+
const path = '/tts/websocket';
|
|
29
|
+
const baseURL = client.baseURL;
|
|
30
|
+
const url = new URL(baseURL + (baseURL.endsWith('/') ? path.slice(1) : path));
|
|
31
|
+
url.protocol = 'wss';
|
|
32
|
+
return url;
|
|
33
|
+
}
|
|
34
|
+
function safeJSONStringify(value) {
|
|
35
|
+
try {
|
|
36
|
+
return JSON.stringify(value);
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=internal-base.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-base.mjs","sourceRoot":"","sources":["../../src/resources/tts/internal-base.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAK/E,EAAE,YAAY,EAAE;OAChB,EAAE,aAAa,EAAE;AAExB,MAAM,OAAO,cAAe,SAAQ,aAAa;IAM/C,YAAY,OAAe,EAAE,KAA4C;QACvE,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,KAAK,GAAG,KAAK,IAAI,SAAS,CAAC;IAClC,CAAC;CACF;AAeD,MAAM,OAAgB,UAAW,SAAQ,YAA6B;IAa1D,QAAQ,CAChB,KAA4C,EAC5C,OAA4B,EAC5B,KAAW;QAEX,OAAO,GAAG,OAAO,IAAI,iBAAiB,CAAC,KAAK,CAAC,IAAI,eAAe,CAAC;QAEjE,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC;YAChC,MAAM,KAAK,GAAG,IAAI,cAAc,CAC9B,OAAO;gBACL,iIAAiI,EACnI,KAAK,CACN,CAAC;YACF,aAAa;YACb,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;YACpB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACtB,OAAO;QACT,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACjD,aAAa;QACb,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;QAEpB,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC;CACF;AAED,MAAM,UAAU,QAAQ,CAAC,MAAgB;IACvC,MAAM,IAAI,GAAG,gBAAgB,CAAC;IAC9B,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;IAC/B,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC9E,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;IACrB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,SAAS,iBAAiB,CAAC,KAAc;IACvC,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as TTSAPI from "./tts.mjs";
|
|
3
|
+
import * as InfillAPI from "../infill.mjs";
|
|
4
|
+
import * as VoicesAPI from "../voices.mjs";
|
|
5
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
|
+
export declare class TTS extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Text to Speech (Bytes)
|
|
10
|
+
*/
|
|
11
|
+
generate(body: TTSGenerateParams, options?: RequestOptions): APIPromise<Response>;
|
|
12
|
+
/**
|
|
13
|
+
* Text to Speech (SSE)
|
|
14
|
+
*/
|
|
15
|
+
generateSse(body: TTSGenerateSseParams, options?: RequestOptions): APIPromise<void>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Configure the various attributes of the generated speech. These controls are
|
|
19
|
+
* only available for `sonic-3-preview` and will have no effect on earlier models.
|
|
20
|
+
*/
|
|
21
|
+
export interface GenerationConfig {
|
|
22
|
+
/**
|
|
23
|
+
* These controls are **experimental** and subject to breaking changes.
|
|
24
|
+
*/
|
|
25
|
+
experimental?: GenerationConfig.Experimental | null;
|
|
26
|
+
/**
|
|
27
|
+
* Adjust the speed of the generated speech between -1.0 (slower) and 1.0 (faster).
|
|
28
|
+
* 0.0 is the default speed.
|
|
29
|
+
*/
|
|
30
|
+
speed?: number | null;
|
|
31
|
+
/**
|
|
32
|
+
* Adjust the volume of the generated speech between -1.0 (softer) and 1.0
|
|
33
|
+
* (louder). 0.0 is the default volume.
|
|
34
|
+
*/
|
|
35
|
+
volume?: number | null;
|
|
36
|
+
}
|
|
37
|
+
export declare namespace GenerationConfig {
|
|
38
|
+
/**
|
|
39
|
+
* These controls are **experimental** and subject to breaking changes.
|
|
40
|
+
*/
|
|
41
|
+
interface Experimental {
|
|
42
|
+
/**
|
|
43
|
+
* Toggle accent localization: 0 (disabled, default) or 1 (enabled). When enabled,
|
|
44
|
+
* the voice adapts to match the transcript language's accent while preserving
|
|
45
|
+
* vocal characteristics. When disabled, maintains the original voice accent. For
|
|
46
|
+
* more information, see
|
|
47
|
+
* [Localize Voices](/build-with-sonic/capabilities/localize-voices).
|
|
48
|
+
*/
|
|
49
|
+
accent_localization?: number | null;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export interface GenerationRequest {
|
|
53
|
+
/**
|
|
54
|
+
* The ID of the model to use for the generation. See
|
|
55
|
+
* [Models](/build-with-cartesia/tts-models) for available models.
|
|
56
|
+
*/
|
|
57
|
+
model_id: string;
|
|
58
|
+
output_format: GenerationRequest.OutputFormat;
|
|
59
|
+
/**
|
|
60
|
+
* The transcript to generate speech for.
|
|
61
|
+
*/
|
|
62
|
+
transcript: string;
|
|
63
|
+
voice: VoiceSpecifier;
|
|
64
|
+
/**
|
|
65
|
+
* Whether to return phoneme-level timestamps. If `false` (default), no phoneme
|
|
66
|
+
* timestamps will be produced. If `true`, the server will return timestamp events
|
|
67
|
+
* containing phoneme-level timing information.
|
|
68
|
+
*/
|
|
69
|
+
add_phoneme_timestamps?: boolean | null;
|
|
70
|
+
/**
|
|
71
|
+
* Whether to return word-level timestamps. If `false` (default), no word
|
|
72
|
+
* timestamps will be produced at all. If `true`, the server will return timestamp
|
|
73
|
+
* events containing word-level timing information.
|
|
74
|
+
*/
|
|
75
|
+
add_timestamps?: boolean | null;
|
|
76
|
+
/**
|
|
77
|
+
* A unique identifier for the context. You can use any unique identifier, like a
|
|
78
|
+
* UUID or human ID.
|
|
79
|
+
*
|
|
80
|
+
* Some customers use unique identifiers from their own systems (such as
|
|
81
|
+
* conversation IDs) as context IDs.
|
|
82
|
+
*/
|
|
83
|
+
context_id?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Whether this input may be followed by more inputs. If not specified, this
|
|
86
|
+
* defaults to `false`.
|
|
87
|
+
*/
|
|
88
|
+
continue?: boolean | null;
|
|
89
|
+
/**
|
|
90
|
+
* The maximum duration of the audio in seconds. You do not usually need to specify
|
|
91
|
+
* this. If the duration is not appropriate for the length of the transcript, the
|
|
92
|
+
* output audio may be truncated.
|
|
93
|
+
*/
|
|
94
|
+
duration?: number | null;
|
|
95
|
+
/**
|
|
96
|
+
* Whether to flush the context.
|
|
97
|
+
*/
|
|
98
|
+
flush?: boolean | null;
|
|
99
|
+
/**
|
|
100
|
+
* The language that the given voice should speak the transcript in.
|
|
101
|
+
*
|
|
102
|
+
* Options: English (en), French (fr), German (de), Spanish (es), Portuguese (pt),
|
|
103
|
+
* Chinese (zh), Japanese (ja), Hindi (hi), Italian (it), Korean (ko), Dutch (nl),
|
|
104
|
+
* Polish (pl), Russian (ru), Swedish (sv), Turkish (tr).
|
|
105
|
+
*/
|
|
106
|
+
language?: VoicesAPI.SupportedLanguage | null;
|
|
107
|
+
/**
|
|
108
|
+
* The maximum time in milliseconds to buffer text before starting generation.
|
|
109
|
+
* Values between [0, 1000]ms are supported. Defaults to 0 (no buffering).
|
|
110
|
+
*
|
|
111
|
+
* When set, the model will buffer incoming text chunks until it's confident it has
|
|
112
|
+
* enough context to generate high-quality speech, or the buffer delay elapses,
|
|
113
|
+
* whichever comes first. Without this option set, the model will kick off
|
|
114
|
+
* generations immediately, ceding control of buffering to the user.
|
|
115
|
+
*
|
|
116
|
+
* Use this to balance responsiveness with higher quality speech generation, which
|
|
117
|
+
* often benefits from having more context.
|
|
118
|
+
*/
|
|
119
|
+
max_buffer_delay_ms?: number | null;
|
|
120
|
+
/**
|
|
121
|
+
* A list of pronunciation dict IDs to use for the generation. This will be applied
|
|
122
|
+
* in addition to the pinned pronunciation dict, which will be treated as the first
|
|
123
|
+
* element of the list. If there are conflicts with dict items, the latest dict
|
|
124
|
+
* will take precedence.
|
|
125
|
+
*/
|
|
126
|
+
pronunciation_dict_ids?: Array<string> | null;
|
|
127
|
+
/**
|
|
128
|
+
* > This feature is experimental and may not work for all voices.
|
|
129
|
+
*
|
|
130
|
+
* Speed setting for the model. Defaults to `normal`.
|
|
131
|
+
*
|
|
132
|
+
* Influences the speed of the generated speech. Faster speeds may reduce
|
|
133
|
+
* hallucination rate.
|
|
134
|
+
*/
|
|
135
|
+
speed?: ModelSpeed | null;
|
|
136
|
+
/**
|
|
137
|
+
* Whether to use normalized timestamps (True) or original timestamps (False).
|
|
138
|
+
*/
|
|
139
|
+
use_normalized_timestamps?: boolean | null;
|
|
140
|
+
}
|
|
141
|
+
export declare namespace GenerationRequest {
|
|
142
|
+
interface OutputFormat {
|
|
143
|
+
container: 'raw';
|
|
144
|
+
encoding: InfillAPI.RawEncoding;
|
|
145
|
+
sample_rate: number;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* > This feature is experimental and may not work for all voices.
|
|
150
|
+
*
|
|
151
|
+
* Speed setting for the model. Defaults to `normal`.
|
|
152
|
+
*
|
|
153
|
+
* Influences the speed of the generated speech. Faster speeds may reduce
|
|
154
|
+
* hallucination rate.
|
|
155
|
+
*/
|
|
156
|
+
export type ModelSpeed = 'slow' | 'normal' | 'fast';
|
|
157
|
+
export interface RawOutputFormat {
|
|
158
|
+
encoding: InfillAPI.RawEncoding;
|
|
159
|
+
sample_rate: number;
|
|
160
|
+
}
|
|
161
|
+
export interface VoiceSpecifier {
|
|
162
|
+
/**
|
|
163
|
+
* The ID of the voice.
|
|
164
|
+
*/
|
|
165
|
+
id: string;
|
|
166
|
+
mode: 'id';
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Use this to generate speech for a transcript.
|
|
170
|
+
*/
|
|
171
|
+
export type WebsocketClientEvent = GenerationRequest | WebsocketClientEvent.CancelContextRequest;
|
|
172
|
+
export declare namespace WebsocketClientEvent {
|
|
173
|
+
/**
|
|
174
|
+
* Use this to cancel a context, so that no more messages are generated for that
|
|
175
|
+
* context.
|
|
176
|
+
*/
|
|
177
|
+
interface CancelContextRequest {
|
|
178
|
+
/**
|
|
179
|
+
* Whether to cancel the context, so that no more messages are generated for that
|
|
180
|
+
* context.
|
|
181
|
+
*/
|
|
182
|
+
cancel: true;
|
|
183
|
+
/**
|
|
184
|
+
* The ID of the context to cancel.
|
|
185
|
+
*/
|
|
186
|
+
context_id: string;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
export type WebsocketResponse = WebsocketResponse.Chunk | WebsocketResponse.FlushDone | WebsocketResponse.Done | WebsocketResponse.Timestamps | WebsocketResponse.Error | WebsocketResponse.PhonemeTimestamps;
|
|
190
|
+
export declare namespace WebsocketResponse {
|
|
191
|
+
interface Chunk {
|
|
192
|
+
data: string;
|
|
193
|
+
done: boolean;
|
|
194
|
+
status_code: number;
|
|
195
|
+
step_time: number;
|
|
196
|
+
type: 'chunk';
|
|
197
|
+
/**
|
|
198
|
+
* A unique identifier for the context. You can use any unique identifier, like a
|
|
199
|
+
* UUID or human ID.
|
|
200
|
+
*
|
|
201
|
+
* Some customers use unique identifiers from their own systems (such as
|
|
202
|
+
* conversation IDs) as context IDs.
|
|
203
|
+
*/
|
|
204
|
+
context_id?: string | null;
|
|
205
|
+
}
|
|
206
|
+
interface FlushDone {
|
|
207
|
+
done: boolean;
|
|
208
|
+
status_code: number;
|
|
209
|
+
/**
|
|
210
|
+
* A unique identifier for the context. You can use any unique identifier, like a
|
|
211
|
+
* UUID or human ID.
|
|
212
|
+
*
|
|
213
|
+
* Some customers use unique identifiers from their own systems (such as
|
|
214
|
+
* conversation IDs) as context IDs.
|
|
215
|
+
*/
|
|
216
|
+
context_id?: string | null;
|
|
217
|
+
type?: 'flush_done';
|
|
218
|
+
}
|
|
219
|
+
interface Done {
|
|
220
|
+
done: boolean;
|
|
221
|
+
status_code: number;
|
|
222
|
+
/**
|
|
223
|
+
* A unique identifier for the context. You can use any unique identifier, like a
|
|
224
|
+
* UUID or human ID.
|
|
225
|
+
*
|
|
226
|
+
* Some customers use unique identifiers from their own systems (such as
|
|
227
|
+
* conversation IDs) as context IDs.
|
|
228
|
+
*/
|
|
229
|
+
context_id?: string | null;
|
|
230
|
+
type?: 'done';
|
|
231
|
+
}
|
|
232
|
+
interface Timestamps {
|
|
233
|
+
done: boolean;
|
|
234
|
+
status_code: number;
|
|
235
|
+
/**
|
|
236
|
+
* A unique identifier for the context. You can use any unique identifier, like a
|
|
237
|
+
* UUID or human ID.
|
|
238
|
+
*
|
|
239
|
+
* Some customers use unique identifiers from their own systems (such as
|
|
240
|
+
* conversation IDs) as context IDs.
|
|
241
|
+
*/
|
|
242
|
+
context_id?: string | null;
|
|
243
|
+
type?: 'timestamps';
|
|
244
|
+
}
|
|
245
|
+
interface Error {
|
|
246
|
+
done: boolean;
|
|
247
|
+
status_code: number;
|
|
248
|
+
/**
|
|
249
|
+
* A unique identifier for the context. You can use any unique identifier, like a
|
|
250
|
+
* UUID or human ID.
|
|
251
|
+
*
|
|
252
|
+
* Some customers use unique identifiers from their own systems (such as
|
|
253
|
+
* conversation IDs) as context IDs.
|
|
254
|
+
*/
|
|
255
|
+
context_id?: string | null;
|
|
256
|
+
type?: 'error';
|
|
257
|
+
}
|
|
258
|
+
interface PhonemeTimestamps {
|
|
259
|
+
done: boolean;
|
|
260
|
+
status_code: number;
|
|
261
|
+
/**
|
|
262
|
+
* A unique identifier for the context. You can use any unique identifier, like a
|
|
263
|
+
* UUID or human ID.
|
|
264
|
+
*
|
|
265
|
+
* Some customers use unique identifiers from their own systems (such as
|
|
266
|
+
* conversation IDs) as context IDs.
|
|
267
|
+
*/
|
|
268
|
+
context_id?: string | null;
|
|
269
|
+
type?: 'phoneme_timestamps';
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
export interface TTSGenerateParams {
|
|
273
|
+
/**
|
|
274
|
+
* The ID of the model to use for the generation. See
|
|
275
|
+
* [Models](/build-with-cartesia/tts-models) for available models.
|
|
276
|
+
*/
|
|
277
|
+
model_id: string;
|
|
278
|
+
output_format: TTSGenerateParams.RawOutputFormat | TTSGenerateParams.WavOutputFormat | TTSGenerateParams.MP3OutputFormat;
|
|
279
|
+
transcript: string;
|
|
280
|
+
voice: VoiceSpecifier;
|
|
281
|
+
/**
|
|
282
|
+
* The maximum duration of the audio in seconds. You do not usually need to specify
|
|
283
|
+
* this. If the duration is not appropriate for the length of the transcript, the
|
|
284
|
+
* output audio may be truncated.
|
|
285
|
+
*/
|
|
286
|
+
duration?: number | null;
|
|
287
|
+
/**
|
|
288
|
+
* Configure the various attributes of the generated speech. These controls are
|
|
289
|
+
* only available for `sonic-3-preview` and will have no effect on earlier models.
|
|
290
|
+
*/
|
|
291
|
+
generation_config?: GenerationConfig | null;
|
|
292
|
+
/**
|
|
293
|
+
* The language that the given voice should speak the transcript in.
|
|
294
|
+
*
|
|
295
|
+
* Options: English (en), French (fr), German (de), Spanish (es), Portuguese (pt),
|
|
296
|
+
* Chinese (zh), Japanese (ja), Hindi (hi), Italian (it), Korean (ko), Dutch (nl),
|
|
297
|
+
* Polish (pl), Russian (ru), Swedish (sv), Turkish (tr).
|
|
298
|
+
*/
|
|
299
|
+
language?: VoicesAPI.SupportedLanguage | null;
|
|
300
|
+
/**
|
|
301
|
+
* A list of pronunciation dict IDs to use for the generation. This will be applied
|
|
302
|
+
* in addition to the pinned pronunciation dict, which will be treated as the first
|
|
303
|
+
* element of the list. If there are conflicts with dict items, the latest dict
|
|
304
|
+
* will take precedence.
|
|
305
|
+
*/
|
|
306
|
+
pronunciation_dict_ids?: Array<string> | null;
|
|
307
|
+
/**
|
|
308
|
+
* Whether to save the generated audio file. When true, the response will include a
|
|
309
|
+
* `Cartesia-File-ID` header.
|
|
310
|
+
*/
|
|
311
|
+
save?: boolean | null;
|
|
312
|
+
/**
|
|
313
|
+
* > This feature is experimental and may not work for all voices.
|
|
314
|
+
*
|
|
315
|
+
* Speed setting for the model. Defaults to `normal`.
|
|
316
|
+
*
|
|
317
|
+
* Influences the speed of the generated speech. Faster speeds may reduce
|
|
318
|
+
* hallucination rate.
|
|
319
|
+
*/
|
|
320
|
+
speed?: ModelSpeed | null;
|
|
321
|
+
}
|
|
322
|
+
export declare namespace TTSGenerateParams {
|
|
323
|
+
interface RawOutputFormat extends TTSAPI.RawOutputFormat {
|
|
324
|
+
container?: 'raw';
|
|
325
|
+
}
|
|
326
|
+
interface WavOutputFormat extends TTSAPI.RawOutputFormat {
|
|
327
|
+
container?: 'wav';
|
|
328
|
+
}
|
|
329
|
+
interface MP3OutputFormat {
|
|
330
|
+
/**
|
|
331
|
+
* The bit rate of the audio in bits per second. Supported bit rates are 32000,
|
|
332
|
+
* 64000, 96000, 128000, 192000.
|
|
333
|
+
*/
|
|
334
|
+
bit_rate: number;
|
|
335
|
+
sample_rate: number;
|
|
336
|
+
container?: 'mp3';
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
export interface TTSGenerateSseParams {
|
|
340
|
+
/**
|
|
341
|
+
* The ID of the model to use for the generation. See
|
|
342
|
+
* [Models](/build-with-cartesia/tts-models) for available models.
|
|
343
|
+
*/
|
|
344
|
+
model_id: string;
|
|
345
|
+
output_format: TTSGenerateSseParams.OutputFormat;
|
|
346
|
+
transcript: string;
|
|
347
|
+
voice: VoiceSpecifier;
|
|
348
|
+
/**
|
|
349
|
+
* Whether to return phoneme-level timestamps. If `false` (default), no phoneme
|
|
350
|
+
* timestamps will be produced. If `true`, the server will return timestamp events
|
|
351
|
+
* containing phoneme-level timing information.
|
|
352
|
+
*/
|
|
353
|
+
add_phoneme_timestamps?: boolean | null;
|
|
354
|
+
/**
|
|
355
|
+
* Whether to return word-level timestamps. If `false` (default), no word
|
|
356
|
+
* timestamps will be produced at all. If `true`, the server will return timestamp
|
|
357
|
+
* events containing word-level timing information.
|
|
358
|
+
*/
|
|
359
|
+
add_timestamps?: boolean | null;
|
|
360
|
+
/**
|
|
361
|
+
* Optional context ID for this request.
|
|
362
|
+
*/
|
|
363
|
+
context_id?: string | null;
|
|
364
|
+
/**
|
|
365
|
+
* The maximum duration of the audio in seconds. You do not usually need to specify
|
|
366
|
+
* this. If the duration is not appropriate for the length of the transcript, the
|
|
367
|
+
* output audio may be truncated.
|
|
368
|
+
*/
|
|
369
|
+
duration?: number | null;
|
|
370
|
+
/**
|
|
371
|
+
* The language that the given voice should speak the transcript in.
|
|
372
|
+
*
|
|
373
|
+
* Options: English (en), French (fr), German (de), Spanish (es), Portuguese (pt),
|
|
374
|
+
* Chinese (zh), Japanese (ja), Hindi (hi), Italian (it), Korean (ko), Dutch (nl),
|
|
375
|
+
* Polish (pl), Russian (ru), Swedish (sv), Turkish (tr).
|
|
376
|
+
*/
|
|
377
|
+
language?: VoicesAPI.SupportedLanguage | null;
|
|
378
|
+
/**
|
|
379
|
+
* A list of pronunciation dict IDs to use for the generation. This will be applied
|
|
380
|
+
* in addition to the pinned pronunciation dict, which will be treated as the first
|
|
381
|
+
* element of the list. If there are conflicts with dict items, the latest dict
|
|
382
|
+
* will take precedence.
|
|
383
|
+
*/
|
|
384
|
+
pronunciation_dict_ids?: Array<string> | null;
|
|
385
|
+
/**
|
|
386
|
+
* > This feature is experimental and may not work for all voices.
|
|
387
|
+
*
|
|
388
|
+
* Speed setting for the model. Defaults to `normal`.
|
|
389
|
+
*
|
|
390
|
+
* Influences the speed of the generated speech. Faster speeds may reduce
|
|
391
|
+
* hallucination rate.
|
|
392
|
+
*/
|
|
393
|
+
speed?: ModelSpeed | null;
|
|
394
|
+
/**
|
|
395
|
+
* Whether to use normalized timestamps (True) or original timestamps (False).
|
|
396
|
+
*/
|
|
397
|
+
use_normalized_timestamps?: boolean | null;
|
|
398
|
+
}
|
|
399
|
+
export declare namespace TTSGenerateSseParams {
|
|
400
|
+
interface OutputFormat {
|
|
401
|
+
container: 'raw';
|
|
402
|
+
encoding: InfillAPI.RawEncoding;
|
|
403
|
+
sample_rate: number;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
export declare namespace TTS {
|
|
407
|
+
export { type GenerationConfig as GenerationConfig, type GenerationRequest as GenerationRequest, type ModelSpeed as ModelSpeed, type RawOutputFormat as RawOutputFormat, type VoiceSpecifier as VoiceSpecifier, type WebsocketClientEvent as WebsocketClientEvent, type WebsocketResponse as WebsocketResponse, type TTSGenerateParams as TTSGenerateParams, type TTSGenerateSseParams as TTSGenerateSseParams, };
|
|
408
|
+
}
|
|
409
|
+
//# sourceMappingURL=tts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tts.d.mts","sourceRoot":"","sources":["../../src/resources/tts/tts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,SAAS;OACd,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IASjF;;OAEG;IACH,WAAW,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOpF;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,YAAY,CAAC,EAAE,gBAAgB,CAAC,YAAY,GAAG,IAAI,CAAC;IAEpD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,yBAAiB,gBAAgB,CAAC;IAChC;;OAEG;IACH,UAAiB,YAAY;QAC3B;;;;;;WAMG;QACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACrC;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,aAAa,EAAE,iBAAiB,CAAC,YAAY,CAAC;IAE9C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,cAAc,CAAC;IAEtB;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAExC;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEhC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEvB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAE9C;;;;;;;;;;;OAWG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAE9C;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5C;AAED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,YAAY;QAC3B,SAAS,EAAE,KAAK,CAAC;QAEjB,QAAQ,EAAE,SAAS,CAAC,WAAW,CAAC;QAEhC,WAAW,EAAE,MAAM,CAAC;KACrB;CACF;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEpD,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,SAAS,CAAC,WAAW,CAAC;IAEhC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,IAAI,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG,oBAAoB,CAAC,oBAAoB,CAAC;AAEjG,yBAAiB,oBAAoB,CAAC;IACpC;;;OAGG;IACH,UAAiB,oBAAoB;QACnC;;;WAGG;QACH,MAAM,EAAE,IAAI,CAAC;QAEb;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,MAAM,iBAAiB,GACzB,iBAAiB,CAAC,KAAK,GACvB,iBAAiB,CAAC,SAAS,GAC3B,iBAAiB,CAAC,IAAI,GACtB,iBAAiB,CAAC,UAAU,GAC5B,iBAAiB,CAAC,KAAK,GACvB,iBAAiB,CAAC,iBAAiB,CAAC;AAExC,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,KAAK;QACpB,IAAI,EAAE,MAAM,CAAC;QAEb,IAAI,EAAE,OAAO,CAAC;QAEd,WAAW,EAAE,MAAM,CAAC;QAEpB,SAAS,EAAE,MAAM,CAAC;QAElB,IAAI,EAAE,OAAO,CAAC;QAEd;;;;;;WAMG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC5B;IAED,UAAiB,SAAS;QACxB,IAAI,EAAE,OAAO,CAAC;QAEd,WAAW,EAAE,MAAM,CAAC;QAEpB;;;;;;WAMG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B,IAAI,CAAC,EAAE,YAAY,CAAC;KACrB;IAED,UAAiB,IAAI;QACnB,IAAI,EAAE,OAAO,CAAC;QAEd,WAAW,EAAE,MAAM,CAAC;QAEpB;;;;;;WAMG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;IAED,UAAiB,UAAU;QACzB,IAAI,EAAE,OAAO,CAAC;QAEd,WAAW,EAAE,MAAM,CAAC;QAEpB;;;;;;WAMG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B,IAAI,CAAC,EAAE,YAAY,CAAC;KACrB;IAED,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd,WAAW,EAAE,MAAM,CAAC;QAEpB;;;;;;WAMG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB;IAED,UAAiB,iBAAiB;QAChC,IAAI,EAAE,OAAO,CAAC;QAEd,WAAW,EAAE,MAAM,CAAC;QAEpB;;;;;;WAMG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B,IAAI,CAAC,EAAE,oBAAoB,CAAC;KAC7B;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,aAAa,EACT,iBAAiB,CAAC,eAAe,GACjC,iBAAiB,CAAC,eAAe,GACjC,iBAAiB,CAAC,eAAe,CAAC;IAEtC,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,cAAc,CAAC;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAE5C;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAE9C;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAE9C;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEtB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;CAC3B;AAED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,eAAgB,SAAQ,MAAM,CAAC,eAAe;QAC7D,SAAS,CAAC,EAAE,KAAK,CAAC;KACnB;IAED,UAAiB,eAAgB,SAAQ,MAAM,CAAC,eAAe;QAC7D,SAAS,CAAC,EAAE,KAAK,CAAC;KACnB;IAED,UAAiB,eAAe;QAC9B;;;WAGG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB,WAAW,EAAE,MAAM,CAAC;QAEpB,SAAS,CAAC,EAAE,KAAK,CAAC;KACnB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,aAAa,EAAE,oBAAoB,CAAC,YAAY,CAAC;IAEjD,UAAU,EAAE,MAAM,CAAC;IAEnB,KAAK,EAAE,cAAc,CAAC;IAEtB;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAExC;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC;IAE9C;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAE9C;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5C;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,YAAY;QAC3B,SAAS,EAAE,KAAK,CAAC;QAEjB,QAAQ,EAAE,SAAS,CAAC,WAAW,CAAC;QAEhC,WAAW,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|