@chunkify/chunkify 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +102 -0
- package/LICENSE +201 -0
- package/README.md +395 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +222 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +222 -0
- package/client.d.ts.map +1 -0
- package/client.js +509 -0
- package/client.js.map +1 -0
- package/client.mjs +505 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +62 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +62 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +108 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +102 -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 -0
- package/index.d.ts.map +1 -0
- package/index.js +32 -0
- 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 +149 -0
- 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/files.d.mts +236 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +236 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +34 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +30 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.mts +11 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +11 -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/jobs/files.d.mts +24 -0
- package/resources/jobs/files.d.mts.map +1 -0
- package/resources/jobs/files.d.ts +24 -0
- package/resources/jobs/files.d.ts.map +1 -0
- package/resources/jobs/files.js +16 -0
- package/resources/jobs/files.js.map +1 -0
- package/resources/jobs/files.mjs +12 -0
- package/resources/jobs/files.mjs.map +1 -0
- package/resources/jobs/index.d.mts +5 -0
- package/resources/jobs/index.d.mts.map +1 -0
- package/resources/jobs/index.d.ts +5 -0
- package/resources/jobs/index.d.ts.map +1 -0
- package/resources/jobs/index.js +13 -0
- package/resources/jobs/index.js.map +1 -0
- package/resources/jobs/index.mjs +6 -0
- package/resources/jobs/index.mjs.map +1 -0
- package/resources/jobs/jobs.d.mts +1207 -0
- package/resources/jobs/jobs.d.mts.map +1 -0
- package/resources/jobs/jobs.d.ts +1207 -0
- package/resources/jobs/jobs.d.ts.map +1 -0
- package/resources/jobs/jobs.js +64 -0
- package/resources/jobs/jobs.js.map +1 -0
- package/resources/jobs/jobs.mjs +59 -0
- package/resources/jobs/jobs.mjs.map +1 -0
- package/resources/jobs/logs.d.mts +63 -0
- package/resources/jobs/logs.d.mts.map +1 -0
- package/resources/jobs/logs.d.ts +63 -0
- package/resources/jobs/logs.d.ts.map +1 -0
- package/resources/jobs/logs.js +16 -0
- package/resources/jobs/logs.js.map +1 -0
- package/resources/jobs/logs.mjs +12 -0
- package/resources/jobs/logs.mjs.map +1 -0
- package/resources/jobs/transcoders.d.mts +93 -0
- package/resources/jobs/transcoders.d.mts.map +1 -0
- package/resources/jobs/transcoders.d.ts +93 -0
- package/resources/jobs/transcoders.d.ts.map +1 -0
- package/resources/jobs/transcoders.js +16 -0
- package/resources/jobs/transcoders.js.map +1 -0
- package/resources/jobs/transcoders.mjs +12 -0
- package/resources/jobs/transcoders.mjs.map +1 -0
- package/resources/jobs.d.mts +2 -0
- package/resources/jobs.d.mts.map +1 -0
- package/resources/jobs.d.ts +2 -0
- package/resources/jobs.d.ts.map +1 -0
- package/resources/jobs.js +6 -0
- package/resources/jobs.js.map +1 -0
- package/resources/jobs.mjs +3 -0
- package/resources/jobs.mjs.map +1 -0
- package/resources/notifications.d.mts +118 -0
- package/resources/notifications.d.mts.map +1 -0
- package/resources/notifications.d.ts +118 -0
- package/resources/notifications.d.ts.map +1 -0
- package/resources/notifications.js +42 -0
- package/resources/notifications.js.map +1 -0
- package/resources/notifications.mjs +38 -0
- package/resources/notifications.mjs.map +1 -0
- package/resources/projects.d.mts +87 -0
- package/resources/projects.d.mts.map +1 -0
- package/resources/projects.d.ts +87 -0
- package/resources/projects.d.ts.map +1 -0
- package/resources/projects.js +51 -0
- package/resources/projects.js.map +1 -0
- package/resources/projects.mjs +47 -0
- package/resources/projects.mjs.map +1 -0
- package/resources/shared.d.mts +15 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +15 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/sources.d.mts +235 -0
- package/resources/sources.d.mts.map +1 -0
- package/resources/sources.d.ts +235 -0
- package/resources/sources.d.ts.map +1 -0
- package/resources/sources.js +43 -0
- package/resources/sources.js.map +1 -0
- package/resources/sources.mjs +39 -0
- package/resources/sources.mjs.map +1 -0
- package/resources/storages.d.mts +216 -0
- package/resources/storages.d.mts.map +1 -0
- package/resources/storages.d.ts +216 -0
- package/resources/storages.d.ts.map +1 -0
- package/resources/storages.js +41 -0
- package/resources/storages.js.map +1 -0
- package/resources/storages.mjs +37 -0
- package/resources/storages.mjs.map +1 -0
- package/resources/tokens.d.mts +74 -0
- package/resources/tokens.d.mts.map +1 -0
- package/resources/tokens.d.ts +74 -0
- package/resources/tokens.d.ts.map +1 -0
- package/resources/tokens.js +37 -0
- package/resources/tokens.js.map +1 -0
- package/resources/tokens.mjs +33 -0
- package/resources/tokens.mjs.map +1 -0
- package/resources/uploads.d.mts +117 -0
- package/resources/uploads.d.mts.map +1 -0
- package/resources/uploads.d.ts +117 -0
- package/resources/uploads.d.ts.map +1 -0
- package/resources/uploads.js +40 -0
- package/resources/uploads.js.map +1 -0
- package/resources/uploads.mjs +36 -0
- package/resources/uploads.mjs.map +1 -0
- package/resources/webhooks.d.mts +194 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +194 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +64 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +60 -0
- package/resources/webhooks.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 +935 -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 +176 -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/files.ts +315 -0
- package/src/resources/index.ts +59 -0
- package/src/resources/jobs/files.ts +32 -0
- package/src/resources/jobs/index.ts +20 -0
- package/src/resources/jobs/jobs.ts +1690 -0
- package/src/resources/jobs/logs.ts +77 -0
- package/src/resources/jobs/transcoders.ts +118 -0
- package/src/resources/jobs.ts +3 -0
- package/src/resources/notifications.ts +190 -0
- package/src/resources/projects.ts +138 -0
- package/src/resources/shared.ts +29 -0
- package/src/resources/sources.ts +312 -0
- package/src/resources/storages.ts +335 -0
- package/src/resources/tokens.ts +107 -0
- package/src/resources/uploads.ts +164 -0
- package/src/resources/webhooks.ts +299 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
# Chunkify TypeScript API Library
|
|
2
|
+
|
|
3
|
+
[>)](https://npmjs.org/package/@chunkify/chunkify) 
|
|
4
|
+
|
|
5
|
+
This library provides convenient access to the Chunkify REST API from server-side TypeScript or JavaScript.
|
|
6
|
+
|
|
7
|
+
The REST API documentation can be found on [chunkify.dev](https://chunkify.dev/docs). The full API of this library can be found in [api.md](api.md).
|
|
8
|
+
|
|
9
|
+
It is generated with [Stainless](https://www.stainless.com/).
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm install @chunkify/chunkify
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
The full API of this library can be found in [api.md](api.md).
|
|
20
|
+
|
|
21
|
+
<!-- prettier-ignore -->
|
|
22
|
+
```js
|
|
23
|
+
import Chunkify from '@chunkify/chunkify';
|
|
24
|
+
|
|
25
|
+
const client = new Chunkify({
|
|
26
|
+
projectAccessToken: process.env['CHUNKIFY_TOKEN'], // This is the default and can be omitted
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const job = await client.jobs.create({
|
|
30
|
+
format: { id: 'mp4_h264', width: 1920, height: 1080, crf: 21 },
|
|
31
|
+
source_id: 'src_2G6MJiNz71bHQGNzGwKx5cJwPFS',
|
|
32
|
+
transcoder: { quantity: 4, type: '8vCPU' },
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
console.log(job.id);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Request & Response types
|
|
39
|
+
|
|
40
|
+
This library includes TypeScript definitions for all request params and response fields. You may import and use them like so:
|
|
41
|
+
|
|
42
|
+
<!-- prettier-ignore -->
|
|
43
|
+
```ts
|
|
44
|
+
import Chunkify from '@chunkify/chunkify';
|
|
45
|
+
|
|
46
|
+
const client = new Chunkify({
|
|
47
|
+
projectAccessToken: process.env['CHUNKIFY_TOKEN'], // This is the default and can be omitted
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
const [apiFile]: [Chunkify.APIFile] = await client.files.list();
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
|
|
54
|
+
|
|
55
|
+
## Handling errors
|
|
56
|
+
|
|
57
|
+
When the library is unable to connect to the API,
|
|
58
|
+
or if the API returns a non-success status code (i.e., 4xx or 5xx response),
|
|
59
|
+
a subclass of `APIError` will be thrown:
|
|
60
|
+
|
|
61
|
+
<!-- prettier-ignore -->
|
|
62
|
+
```ts
|
|
63
|
+
const page = await client.files.list().catch(async (err) => {
|
|
64
|
+
if (err instanceof Chunkify.APIError) {
|
|
65
|
+
console.log(err.status); // 400
|
|
66
|
+
console.log(err.name); // BadRequestError
|
|
67
|
+
console.log(err.headers); // {server: 'nginx', ...}
|
|
68
|
+
} else {
|
|
69
|
+
throw err;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Error codes are as follows:
|
|
75
|
+
|
|
76
|
+
| Status Code | Error Type |
|
|
77
|
+
| ----------- | -------------------------- |
|
|
78
|
+
| 400 | `BadRequestError` |
|
|
79
|
+
| 401 | `AuthenticationError` |
|
|
80
|
+
| 403 | `PermissionDeniedError` |
|
|
81
|
+
| 404 | `NotFoundError` |
|
|
82
|
+
| 422 | `UnprocessableEntityError` |
|
|
83
|
+
| 429 | `RateLimitError` |
|
|
84
|
+
| >=500 | `InternalServerError` |
|
|
85
|
+
| N/A | `APIConnectionError` |
|
|
86
|
+
|
|
87
|
+
### Retries
|
|
88
|
+
|
|
89
|
+
Certain errors will be automatically retried 2 times by default, with a short exponential backoff.
|
|
90
|
+
Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
|
|
91
|
+
429 Rate Limit, and >=500 Internal errors will all be retried by default.
|
|
92
|
+
|
|
93
|
+
You can use the `maxRetries` option to configure or disable this:
|
|
94
|
+
|
|
95
|
+
<!-- prettier-ignore -->
|
|
96
|
+
```js
|
|
97
|
+
// Configure the default for all requests:
|
|
98
|
+
const client = new Chunkify({
|
|
99
|
+
maxRetries: 0, // default is 2
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// Or, configure per-request:
|
|
103
|
+
await client.files.list({
|
|
104
|
+
maxRetries: 5,
|
|
105
|
+
});
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Timeouts
|
|
109
|
+
|
|
110
|
+
Requests time out after 1 minute by default. You can configure this with a `timeout` option:
|
|
111
|
+
|
|
112
|
+
<!-- prettier-ignore -->
|
|
113
|
+
```ts
|
|
114
|
+
// Configure the default for all requests:
|
|
115
|
+
const client = new Chunkify({
|
|
116
|
+
timeout: 20 * 1000, // 20 seconds (default is 1 minute)
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
// Override per-request:
|
|
120
|
+
await client.files.list({
|
|
121
|
+
timeout: 5 * 1000,
|
|
122
|
+
});
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
On timeout, an `APIConnectionTimeoutError` is thrown.
|
|
126
|
+
|
|
127
|
+
Note that requests which time out will be [retried twice by default](#retries).
|
|
128
|
+
|
|
129
|
+
## Auto-pagination
|
|
130
|
+
|
|
131
|
+
List methods in the Chunkify API are paginated.
|
|
132
|
+
You can use the `for await … of` syntax to iterate through items across all pages:
|
|
133
|
+
|
|
134
|
+
```ts
|
|
135
|
+
async function fetchAllSources(params) {
|
|
136
|
+
const allSources = [];
|
|
137
|
+
// Automatically fetches more pages as needed.
|
|
138
|
+
for await (const source of client.sources.list({ limit: 30 })) {
|
|
139
|
+
allSources.push(source);
|
|
140
|
+
}
|
|
141
|
+
return allSources;
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Alternatively, you can request a single page at a time:
|
|
146
|
+
|
|
147
|
+
```ts
|
|
148
|
+
let page = await client.sources.list({ limit: 30 });
|
|
149
|
+
for (const source of page.data) {
|
|
150
|
+
console.log(source);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// Convenience methods are provided for manually paginating:
|
|
154
|
+
while (page.hasNextPage()) {
|
|
155
|
+
page = await page.getNextPage();
|
|
156
|
+
// ...
|
|
157
|
+
}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Advanced Usage
|
|
161
|
+
|
|
162
|
+
### Accessing raw Response data (e.g., headers)
|
|
163
|
+
|
|
164
|
+
The "raw" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return.
|
|
165
|
+
This method returns as soon as the headers for a successful response are received and does not consume the response body, so you are free to write custom parsing or streaming logic.
|
|
166
|
+
|
|
167
|
+
You can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.
|
|
168
|
+
Unlike `.asResponse()` this method consumes the body, returning once it is parsed.
|
|
169
|
+
|
|
170
|
+
<!-- prettier-ignore -->
|
|
171
|
+
```ts
|
|
172
|
+
const client = new Chunkify();
|
|
173
|
+
|
|
174
|
+
const response = await client.files.list().asResponse();
|
|
175
|
+
console.log(response.headers.get('X-My-Header'));
|
|
176
|
+
console.log(response.statusText); // access the underlying Response object
|
|
177
|
+
|
|
178
|
+
const { data: page, response: raw } = await client.files.list().withResponse();
|
|
179
|
+
console.log(raw.headers.get('X-My-Header'));
|
|
180
|
+
for await (const apiFile of page) {
|
|
181
|
+
console.log(apiFile.id);
|
|
182
|
+
}
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### Logging
|
|
186
|
+
|
|
187
|
+
> [!IMPORTANT]
|
|
188
|
+
> All log messages are intended for debugging only. The format and content of log messages
|
|
189
|
+
> may change between releases.
|
|
190
|
+
|
|
191
|
+
#### Log levels
|
|
192
|
+
|
|
193
|
+
The log level can be configured in two ways:
|
|
194
|
+
|
|
195
|
+
1. Via the `CHUNKIFY_LOG` environment variable
|
|
196
|
+
2. Using the `logLevel` client option (overrides the environment variable if set)
|
|
197
|
+
|
|
198
|
+
```ts
|
|
199
|
+
import Chunkify from '@chunkify/chunkify';
|
|
200
|
+
|
|
201
|
+
const client = new Chunkify({
|
|
202
|
+
logLevel: 'debug', // Show all log messages
|
|
203
|
+
});
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
Available log levels, from most to least verbose:
|
|
207
|
+
|
|
208
|
+
- `'debug'` - Show debug messages, info, warnings, and errors
|
|
209
|
+
- `'info'` - Show info messages, warnings, and errors
|
|
210
|
+
- `'warn'` - Show warnings and errors (default)
|
|
211
|
+
- `'error'` - Show only errors
|
|
212
|
+
- `'off'` - Disable all logging
|
|
213
|
+
|
|
214
|
+
At the `'debug'` level, all HTTP requests and responses are logged, including headers and bodies.
|
|
215
|
+
Some authentication-related headers are redacted, but sensitive data in request and response bodies
|
|
216
|
+
may still be visible.
|
|
217
|
+
|
|
218
|
+
#### Custom logger
|
|
219
|
+
|
|
220
|
+
By default, this library logs to `globalThis.console`. You can also provide a custom logger.
|
|
221
|
+
Most logging libraries are supported, including [pino](https://www.npmjs.com/package/pino), [winston](https://www.npmjs.com/package/winston), [bunyan](https://www.npmjs.com/package/bunyan), [consola](https://www.npmjs.com/package/consola), [signale](https://www.npmjs.com/package/signale), and [@std/log](https://jsr.io/@std/log). If your logger doesn't work, please open an issue.
|
|
222
|
+
|
|
223
|
+
When providing a custom logger, the `logLevel` option still controls which messages are emitted, messages
|
|
224
|
+
below the configured level will not be sent to your logger.
|
|
225
|
+
|
|
226
|
+
```ts
|
|
227
|
+
import Chunkify from '@chunkify/chunkify';
|
|
228
|
+
import pino from 'pino';
|
|
229
|
+
|
|
230
|
+
const logger = pino();
|
|
231
|
+
|
|
232
|
+
const client = new Chunkify({
|
|
233
|
+
logger: logger.child({ name: 'Chunkify' }),
|
|
234
|
+
logLevel: 'debug', // Send all messages to pino, allowing it to filter
|
|
235
|
+
});
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
### Making custom/undocumented requests
|
|
239
|
+
|
|
240
|
+
This library is typed for convenient access to the documented API. If you need to access undocumented
|
|
241
|
+
endpoints, params, or response properties, the library can still be used.
|
|
242
|
+
|
|
243
|
+
#### Undocumented endpoints
|
|
244
|
+
|
|
245
|
+
To make requests to undocumented endpoints, you can use `client.get`, `client.post`, and other HTTP verbs.
|
|
246
|
+
Options on the client, such as retries, will be respected when making these requests.
|
|
247
|
+
|
|
248
|
+
```ts
|
|
249
|
+
await client.post('/some/path', {
|
|
250
|
+
body: { some_prop: 'foo' },
|
|
251
|
+
query: { some_query_arg: 'bar' },
|
|
252
|
+
});
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
#### Undocumented request params
|
|
256
|
+
|
|
257
|
+
To make requests using undocumented parameters, you may use `// @ts-expect-error` on the undocumented
|
|
258
|
+
parameter. This library doesn't validate at runtime that the request matches the type, so any extra values you
|
|
259
|
+
send will be sent as-is.
|
|
260
|
+
|
|
261
|
+
```ts
|
|
262
|
+
client.jobs.create({
|
|
263
|
+
// ...
|
|
264
|
+
// @ts-expect-error baz is not yet public
|
|
265
|
+
baz: 'undocumented option',
|
|
266
|
+
});
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
For requests with the `GET` verb, any extra params will be in the query, all other requests will send the
|
|
270
|
+
extra param in the body.
|
|
271
|
+
|
|
272
|
+
If you want to explicitly send an extra argument, you can do so with the `query`, `body`, and `headers` request
|
|
273
|
+
options.
|
|
274
|
+
|
|
275
|
+
#### Undocumented response properties
|
|
276
|
+
|
|
277
|
+
To access undocumented response properties, you may access the response object with `// @ts-expect-error` on
|
|
278
|
+
the response object, or cast the response object to the requisite type. Like the request params, we do not
|
|
279
|
+
validate or strip extra properties from the response from the API.
|
|
280
|
+
|
|
281
|
+
### Customizing the fetch client
|
|
282
|
+
|
|
283
|
+
By default, this library expects a global `fetch` function is defined.
|
|
284
|
+
|
|
285
|
+
If you want to use a different `fetch` function, you can either polyfill the global:
|
|
286
|
+
|
|
287
|
+
```ts
|
|
288
|
+
import fetch from 'my-fetch';
|
|
289
|
+
|
|
290
|
+
globalThis.fetch = fetch;
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
Or pass it to the client:
|
|
294
|
+
|
|
295
|
+
```ts
|
|
296
|
+
import Chunkify from '@chunkify/chunkify';
|
|
297
|
+
import fetch from 'my-fetch';
|
|
298
|
+
|
|
299
|
+
const client = new Chunkify({ fetch });
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### Fetch options
|
|
303
|
+
|
|
304
|
+
If you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.)
|
|
305
|
+
|
|
306
|
+
```ts
|
|
307
|
+
import Chunkify from '@chunkify/chunkify';
|
|
308
|
+
|
|
309
|
+
const client = new Chunkify({
|
|
310
|
+
fetchOptions: {
|
|
311
|
+
// `RequestInit` options
|
|
312
|
+
},
|
|
313
|
+
});
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
#### Configuring proxies
|
|
317
|
+
|
|
318
|
+
To modify proxy behavior, you can provide custom `fetchOptions` that add runtime-specific proxy
|
|
319
|
+
options to requests:
|
|
320
|
+
|
|
321
|
+
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg" align="top" width="18" height="21"> **Node** <sup>[[docs](https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch)]</sup>
|
|
322
|
+
|
|
323
|
+
```ts
|
|
324
|
+
import Chunkify from '@chunkify/chunkify';
|
|
325
|
+
import * as undici from 'undici';
|
|
326
|
+
|
|
327
|
+
const proxyAgent = new undici.ProxyAgent('http://localhost:8888');
|
|
328
|
+
const client = new Chunkify({
|
|
329
|
+
fetchOptions: {
|
|
330
|
+
dispatcher: proxyAgent,
|
|
331
|
+
},
|
|
332
|
+
});
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg" align="top" width="18" height="21"> **Bun** <sup>[[docs](https://bun.sh/guides/http/proxy)]</sup>
|
|
336
|
+
|
|
337
|
+
```ts
|
|
338
|
+
import Chunkify from '@chunkify/chunkify';
|
|
339
|
+
|
|
340
|
+
const client = new Chunkify({
|
|
341
|
+
fetchOptions: {
|
|
342
|
+
proxy: 'http://localhost:8888',
|
|
343
|
+
},
|
|
344
|
+
});
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
<img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg" align="top" width="18" height="21"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>
|
|
348
|
+
|
|
349
|
+
```ts
|
|
350
|
+
import Chunkify from 'npm:@chunkify/chunkify';
|
|
351
|
+
|
|
352
|
+
const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });
|
|
353
|
+
const client = new Chunkify({
|
|
354
|
+
fetchOptions: {
|
|
355
|
+
client: httpClient,
|
|
356
|
+
},
|
|
357
|
+
});
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
## Frequently Asked Questions
|
|
361
|
+
|
|
362
|
+
## Semantic versioning
|
|
363
|
+
|
|
364
|
+
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
|
|
365
|
+
|
|
366
|
+
1. Changes that only affect static types, without breaking runtime behavior.
|
|
367
|
+
2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
|
|
368
|
+
3. Changes that we do not expect to impact the vast majority of users in practice.
|
|
369
|
+
|
|
370
|
+
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
|
|
371
|
+
|
|
372
|
+
We are keen for your feedback; please open an [issue](https://www.github.com/chunkifydev/chunkify-typescript/issues) with questions, bugs, or suggestions.
|
|
373
|
+
|
|
374
|
+
## Requirements
|
|
375
|
+
|
|
376
|
+
TypeScript >= 4.9 is supported.
|
|
377
|
+
|
|
378
|
+
The following runtimes are supported:
|
|
379
|
+
|
|
380
|
+
- Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)
|
|
381
|
+
- Node.js 20 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
|
|
382
|
+
- Deno v1.28.0 or higher.
|
|
383
|
+
- Bun 1.0 or later.
|
|
384
|
+
- Cloudflare Workers.
|
|
385
|
+
- Vercel Edge Runtime.
|
|
386
|
+
- Jest 28 or greater with the `"node"` environment (`"jsdom"` is not supported at this time).
|
|
387
|
+
- Nitro v2.6 or greater.
|
|
388
|
+
|
|
389
|
+
Note that React Native is not supported at this time.
|
|
390
|
+
|
|
391
|
+
If you are interested in other runtime environments, please open or upvote an issue on GitHub.
|
|
392
|
+
|
|
393
|
+
## Contributing
|
|
394
|
+
|
|
395
|
+
See [the contributing documentation](./CONTRIBUTING.md).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.d.mts","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/api-promise.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.d.ts","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/api-promise.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
/** @deprecated Import from ./core/api-promise instead */
|
|
5
|
+
tslib_1.__exportStar(require("./core/api-promise.js"), exports);
|
|
6
|
+
//# sourceMappingURL=api-promise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.js","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,gEAAmC"}
|
package/api-promise.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-promise.mjs","sourceRoot":"","sources":["src/api-promise.ts"],"names":[],"mappings":""}
|
package/client.d.mts
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import type { RequestInit, RequestInfo } from "./internal/builtin-types.mjs";
|
|
2
|
+
import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.mjs";
|
|
3
|
+
export type { Logger, LogLevel } from "./internal/utils/log.mjs";
|
|
4
|
+
import * as Opts from "./internal/request-options.mjs";
|
|
5
|
+
import * as Errors from "./core/error.mjs";
|
|
6
|
+
import * as Pagination from "./core/pagination.mjs";
|
|
7
|
+
import { type PaginatedResultsParams, PaginatedResultsResponse } from "./core/pagination.mjs";
|
|
8
|
+
import * as Uploads from "./core/uploads.mjs";
|
|
9
|
+
import * as API from "./resources/index.mjs";
|
|
10
|
+
import { APIPromise } from "./core/api-promise.mjs";
|
|
11
|
+
import { APIFile, APIFilesPaginatedResults, FileListParams, Files } from "./resources/files.mjs";
|
|
12
|
+
import { Notification, NotificationCreateParams, NotificationListParams, Notifications, NotificationsPaginatedResults } from "./resources/notifications.mjs";
|
|
13
|
+
import { Project, ProjectCreateParams, ProjectListParams, ProjectListResponse, ProjectUpdateParams, Projects } from "./resources/projects.mjs";
|
|
14
|
+
import { Source, SourceCreateParams, SourceListParams, Sources, SourcesPaginatedResults } from "./resources/sources.mjs";
|
|
15
|
+
import { Storage, StorageCreateParams, StorageListResponse, Storages } from "./resources/storages.mjs";
|
|
16
|
+
import { Token, TokenCreateParams, TokenListResponse, Tokens } from "./resources/tokens.mjs";
|
|
17
|
+
import { Upload, UploadCreateParams, UploadListParams, Uploads as UploadsAPIUploads, UploadsPaginatedResults } from "./resources/uploads.mjs";
|
|
18
|
+
import { NewEventWebhookEvent, UnwrapWebhookEvent, Webhook, WebhookCreateParams, WebhookListResponse, WebhookUpdateParams, Webhooks } from "./resources/webhooks.mjs";
|
|
19
|
+
import { HlsAv1, HlsH264, HlsH265, Job, JobCreateParams, JobListParams, Jobs, JobsPaginatedResults, Jpg, MP4Av1, MP4H264, MP4H265, WebmVp9 } from "./resources/jobs/jobs.mjs";
|
|
20
|
+
import { type Fetch } from "./internal/builtin-types.mjs";
|
|
21
|
+
import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
|
|
22
|
+
import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
|
|
23
|
+
import { type LogLevel, type Logger } from "./internal/utils/log.mjs";
|
|
24
|
+
export interface ClientOptions {
|
|
25
|
+
/**
|
|
26
|
+
* Defaults to process.env['CHUNKIFY_TOKEN'].
|
|
27
|
+
*/
|
|
28
|
+
projectAccessToken?: string | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Defaults to process.env['CHUNKIFY_TEAM_TOKEN'].
|
|
31
|
+
*/
|
|
32
|
+
teamAccessToken?: string | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Defaults to process.env['CHUNKIFY_WEBHOOK_SECRET'].
|
|
35
|
+
*/
|
|
36
|
+
webhookKey?: string | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
39
|
+
*
|
|
40
|
+
* Defaults to process.env['CHUNKIFY_BASE_URL'].
|
|
41
|
+
*/
|
|
42
|
+
baseURL?: string | null | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The maximum amount of time (in milliseconds) that the client should wait for a response
|
|
45
|
+
* from the server before timing out a single request.
|
|
46
|
+
*
|
|
47
|
+
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
|
|
48
|
+
* much longer than this timeout before the promise succeeds or fails.
|
|
49
|
+
*
|
|
50
|
+
* @unit milliseconds
|
|
51
|
+
*/
|
|
52
|
+
timeout?: number | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Additional `RequestInit` options to be passed to `fetch` calls.
|
|
55
|
+
* Properties will be overridden by per-request `fetchOptions`.
|
|
56
|
+
*/
|
|
57
|
+
fetchOptions?: MergedRequestInit | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Specify a custom `fetch` function implementation.
|
|
60
|
+
*
|
|
61
|
+
* If not provided, we expect that `fetch` is defined globally.
|
|
62
|
+
*/
|
|
63
|
+
fetch?: Fetch | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* The maximum number of times that the client will retry a request in case of a
|
|
66
|
+
* temporary failure, like a network error or a 5XX error from the server.
|
|
67
|
+
*
|
|
68
|
+
* @default 2
|
|
69
|
+
*/
|
|
70
|
+
maxRetries?: number | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Default headers to include with every request to the API.
|
|
73
|
+
*
|
|
74
|
+
* These can be removed in individual requests by explicitly setting the
|
|
75
|
+
* header to `null` in request options.
|
|
76
|
+
*/
|
|
77
|
+
defaultHeaders?: HeadersLike | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Default query parameters to include with every request to the API.
|
|
80
|
+
*
|
|
81
|
+
* These can be removed in individual requests by explicitly setting the
|
|
82
|
+
* param to `undefined` in request options.
|
|
83
|
+
*/
|
|
84
|
+
defaultQuery?: Record<string, string | undefined> | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Set the log level.
|
|
87
|
+
*
|
|
88
|
+
* Defaults to process.env['CHUNKIFY_LOG'] or 'warn' if it isn't set.
|
|
89
|
+
*/
|
|
90
|
+
logLevel?: LogLevel | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Set the logger.
|
|
93
|
+
*
|
|
94
|
+
* Defaults to globalThis.console.
|
|
95
|
+
*/
|
|
96
|
+
logger?: Logger | undefined;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* API Client for interfacing with the Chunkify API.
|
|
100
|
+
*/
|
|
101
|
+
export declare class Chunkify {
|
|
102
|
+
#private;
|
|
103
|
+
projectAccessToken: string | null;
|
|
104
|
+
teamAccessToken: string | null;
|
|
105
|
+
webhookKey: string | null;
|
|
106
|
+
baseURL: string;
|
|
107
|
+
maxRetries: number;
|
|
108
|
+
timeout: number;
|
|
109
|
+
logger: Logger;
|
|
110
|
+
logLevel: LogLevel | undefined;
|
|
111
|
+
fetchOptions: MergedRequestInit | undefined;
|
|
112
|
+
private fetch;
|
|
113
|
+
protected idempotencyHeader?: string;
|
|
114
|
+
private _options;
|
|
115
|
+
/**
|
|
116
|
+
* API Client for interfacing with the Chunkify API.
|
|
117
|
+
*
|
|
118
|
+
* @param {string | null | undefined} [opts.projectAccessToken=process.env['CHUNKIFY_TOKEN'] ?? null]
|
|
119
|
+
* @param {string | null | undefined} [opts.teamAccessToken=process.env['CHUNKIFY_TEAM_TOKEN'] ?? null]
|
|
120
|
+
* @param {string | null | undefined} [opts.webhookKey=process.env['CHUNKIFY_WEBHOOK_SECRET'] ?? null]
|
|
121
|
+
* @param {string} [opts.baseURL=process.env['CHUNKIFY_BASE_URL'] ?? https://api.chunkify.dev/v1] - Override the default base URL for the API.
|
|
122
|
+
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
123
|
+
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
124
|
+
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
125
|
+
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
126
|
+
* @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
127
|
+
* @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
128
|
+
*/
|
|
129
|
+
constructor({ baseURL, projectAccessToken, teamAccessToken, webhookKey, ...opts }?: ClientOptions);
|
|
130
|
+
/**
|
|
131
|
+
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
132
|
+
*/
|
|
133
|
+
withOptions(options: Partial<ClientOptions>): this;
|
|
134
|
+
protected defaultQuery(): Record<string, string | undefined> | undefined;
|
|
135
|
+
protected validateHeaders({ values, nulls }: NullableHeaders): void;
|
|
136
|
+
protected authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
137
|
+
protected projectAccessTokenAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
138
|
+
protected teamAccessTokenAuth(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
|
|
139
|
+
protected stringifyQuery(query: Record<string, unknown>): string;
|
|
140
|
+
private getUserAgent;
|
|
141
|
+
protected defaultIdempotencyKey(): string;
|
|
142
|
+
protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
|
|
143
|
+
buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
|
|
144
|
+
/**
|
|
145
|
+
* Used as a callback for mutating the given `FinalRequestOptions` object.
|
|
146
|
+
*/
|
|
147
|
+
protected prepareOptions(options: FinalRequestOptions): Promise<void>;
|
|
148
|
+
/**
|
|
149
|
+
* Used as a callback for mutating the given `RequestInit` object.
|
|
150
|
+
*
|
|
151
|
+
* This is useful for cases where you want to add certain headers based off of
|
|
152
|
+
* the request properties, e.g. `method` or `url`.
|
|
153
|
+
*/
|
|
154
|
+
protected prepareRequest(request: RequestInit, { url, options }: {
|
|
155
|
+
url: string;
|
|
156
|
+
options: FinalRequestOptions;
|
|
157
|
+
}): Promise<void>;
|
|
158
|
+
get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
159
|
+
post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
160
|
+
patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
161
|
+
put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
162
|
+
delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
|
|
163
|
+
private methodRequest;
|
|
164
|
+
request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
|
|
165
|
+
private makeRequest;
|
|
166
|
+
getAPIList<Item, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(path: string, Page: new (...args: any[]) => PageClass, opts?: RequestOptions): Pagination.PagePromise<PageClass, Item>;
|
|
167
|
+
requestAPIList<Item = unknown, PageClass extends Pagination.AbstractPage<Item> = Pagination.AbstractPage<Item>>(Page: new (...args: ConstructorParameters<typeof Pagination.AbstractPage>) => PageClass, options: FinalRequestOptions): Pagination.PagePromise<PageClass, Item>;
|
|
168
|
+
fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
|
|
169
|
+
private shouldRetry;
|
|
170
|
+
private retryRequest;
|
|
171
|
+
private calculateDefaultRetryTimeoutMillis;
|
|
172
|
+
buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
|
|
173
|
+
retryCount?: number;
|
|
174
|
+
}): Promise<{
|
|
175
|
+
req: FinalizedRequestInit;
|
|
176
|
+
url: string;
|
|
177
|
+
timeout: number;
|
|
178
|
+
}>;
|
|
179
|
+
private buildHeaders;
|
|
180
|
+
private buildBody;
|
|
181
|
+
static Chunkify: typeof Chunkify;
|
|
182
|
+
static DEFAULT_TIMEOUT: number;
|
|
183
|
+
static ChunkifyError: typeof Errors.ChunkifyError;
|
|
184
|
+
static APIError: typeof Errors.APIError;
|
|
185
|
+
static APIConnectionError: typeof Errors.APIConnectionError;
|
|
186
|
+
static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
|
|
187
|
+
static APIUserAbortError: typeof Errors.APIUserAbortError;
|
|
188
|
+
static NotFoundError: typeof Errors.NotFoundError;
|
|
189
|
+
static ConflictError: typeof Errors.ConflictError;
|
|
190
|
+
static RateLimitError: typeof Errors.RateLimitError;
|
|
191
|
+
static BadRequestError: typeof Errors.BadRequestError;
|
|
192
|
+
static AuthenticationError: typeof Errors.AuthenticationError;
|
|
193
|
+
static InternalServerError: typeof Errors.InternalServerError;
|
|
194
|
+
static PermissionDeniedError: typeof Errors.PermissionDeniedError;
|
|
195
|
+
static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
|
|
196
|
+
static toFile: typeof Uploads.toFile;
|
|
197
|
+
files: API.Files;
|
|
198
|
+
jobs: API.Jobs;
|
|
199
|
+
notifications: API.Notifications;
|
|
200
|
+
projects: API.Projects;
|
|
201
|
+
sources: API.Sources;
|
|
202
|
+
storages: API.Storages;
|
|
203
|
+
tokens: API.Tokens;
|
|
204
|
+
uploads: API.Uploads;
|
|
205
|
+
webhooks: API.Webhooks;
|
|
206
|
+
}
|
|
207
|
+
export declare namespace Chunkify {
|
|
208
|
+
export type RequestOptions = Opts.RequestOptions;
|
|
209
|
+
export import PaginatedResults = Pagination.PaginatedResults;
|
|
210
|
+
export { type PaginatedResultsParams as PaginatedResultsParams, type PaginatedResultsResponse as PaginatedResultsResponse, };
|
|
211
|
+
export { Files as Files, type APIFile as APIFile, type APIFilesPaginatedResults as APIFilesPaginatedResults, type FileListParams as FileListParams, };
|
|
212
|
+
export { Jobs as Jobs, type HlsAv1 as HlsAv1, type HlsH264 as HlsH264, type HlsH265 as HlsH265, type Job as Job, type Jpg as Jpg, type MP4Av1 as MP4Av1, type MP4H264 as MP4H264, type MP4H265 as MP4H265, type WebmVp9 as WebmVp9, type JobsPaginatedResults as JobsPaginatedResults, type JobCreateParams as JobCreateParams, type JobListParams as JobListParams, };
|
|
213
|
+
export { Notifications as Notifications, type Notification as Notification, type NotificationsPaginatedResults as NotificationsPaginatedResults, type NotificationCreateParams as NotificationCreateParams, type NotificationListParams as NotificationListParams, };
|
|
214
|
+
export { Projects as Projects, type Project as Project, type ProjectListResponse as ProjectListResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectUpdateParams as ProjectUpdateParams, type ProjectListParams as ProjectListParams, };
|
|
215
|
+
export { Sources as Sources, type Source as Source, type SourcesPaginatedResults as SourcesPaginatedResults, type SourceCreateParams as SourceCreateParams, type SourceListParams as SourceListParams, };
|
|
216
|
+
export { Storages as Storages, type Storage as Storage, type StorageListResponse as StorageListResponse, type StorageCreateParams as StorageCreateParams, };
|
|
217
|
+
export { Tokens as Tokens, type Token as Token, type TokenListResponse as TokenListResponse, type TokenCreateParams as TokenCreateParams, };
|
|
218
|
+
export { UploadsAPIUploads as Uploads, type Upload as Upload, type UploadsPaginatedResults as UploadsPaginatedResults, type UploadCreateParams as UploadCreateParams, type UploadListParams as UploadListParams, };
|
|
219
|
+
export { Webhooks as Webhooks, type Webhook as Webhook, type WebhookListResponse as WebhookListResponse, type NewEventWebhookEvent as NewEventWebhookEvent, type UnwrapWebhookEvent as UnwrapWebhookEvent, type WebhookCreateParams as WebhookCreateParams, type WebhookUpdateParams as WebhookUpdateParams, };
|
|
220
|
+
export type ChunkifyError = API.ChunkifyError;
|
|
221
|
+
}
|
|
222
|
+
//# sourceMappingURL=client.d.mts.map
|
package/client.d.mts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAGT,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAgB,KAAK,sBAAsB,EAAE,wBAAwB,EAAE;OACvE,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EAAE,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,KAAK,EAAE;OAC5D,EACL,YAAY,EACZ,wBAAwB,EACxB,sBAAsB,EACtB,aAAa,EACb,6BAA6B,EAC9B;OACM,EACL,OAAO,EACP,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,QAAQ,EACT;OACM,EACL,MAAM,EACN,kBAAkB,EAClB,gBAAgB,EAChB,OAAO,EACP,uBAAuB,EACxB;OACM,EAAE,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,QAAQ,EAAE;OAC/D,EAAE,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,EAAE;OACvD,EACL,MAAM,EACN,kBAAkB,EAClB,gBAAgB,EAChB,OA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