@imagekit/nodejs 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +102 -0
- package/LICENSE +201 -0
- package/README.md +633 -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 +238 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +238 -0
- package/client.d.ts.map +1 -0
- package/client.js +506 -0
- package/client.js.map +1 -0
- package/client.mjs +502 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/lib/crypto-utils.d.mts +16 -0
- package/lib/crypto-utils.d.mts.map +1 -0
- package/lib/crypto-utils.d.ts +16 -0
- package/lib/crypto-utils.d.ts.map +1 -0
- package/lib/crypto-utils.js +35 -0
- package/lib/crypto-utils.js.map +1 -0
- package/lib/crypto-utils.mjs +32 -0
- package/lib/crypto-utils.mjs.map +1 -0
- package/lib/serialization-utils.d.mts +11 -0
- package/lib/serialization-utils.d.mts.map +1 -0
- package/lib/serialization-utils.d.ts +11 -0
- package/lib/serialization-utils.d.ts.map +1 -0
- package/lib/serialization-utils.js +45 -0
- package/lib/serialization-utils.js.map +1 -0
- package/lib/serialization-utils.mjs +42 -0
- package/lib/serialization-utils.mjs.map +1 -0
- package/lib/transformation-utils.d.mts +18 -0
- package/lib/transformation-utils.d.mts.map +1 -0
- package/lib/transformation-utils.d.ts +18 -0
- package/lib/transformation-utils.d.ts.map +1 -0
- package/lib/transformation-utils.js +110 -0
- package/lib/transformation-utils.js.map +1 -0
- package/lib/transformation-utils.mjs +106 -0
- package/lib/transformation-utils.mjs.map +1 -0
- package/package.json +150 -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/accounts/accounts.d.mts +18 -0
- package/resources/accounts/accounts.d.mts.map +1 -0
- package/resources/accounts/accounts.d.ts +18 -0
- package/resources/accounts/accounts.d.ts.map +1 -0
- package/resources/accounts/accounts.js +25 -0
- package/resources/accounts/accounts.js.map +1 -0
- package/resources/accounts/accounts.mjs +20 -0
- package/resources/accounts/accounts.mjs.map +1 -0
- package/resources/accounts/index.d.mts +5 -0
- package/resources/accounts/index.d.mts.map +1 -0
- package/resources/accounts/index.d.ts +5 -0
- package/resources/accounts/index.d.ts.map +1 -0
- package/resources/accounts/index.js +13 -0
- package/resources/accounts/index.js.map +1 -0
- package/resources/accounts/index.mjs +6 -0
- package/resources/accounts/index.mjs.map +1 -0
- package/resources/accounts/origins.d.mts +945 -0
- package/resources/accounts/origins.d.mts.map +1 -0
- package/resources/accounts/origins.d.ts +945 -0
- package/resources/accounts/origins.d.ts.map +1 -0
- package/resources/accounts/origins.js +95 -0
- package/resources/accounts/origins.js.map +1 -0
- package/resources/accounts/origins.mjs +91 -0
- package/resources/accounts/origins.mjs.map +1 -0
- package/resources/accounts/url-endpoints.d.mts +226 -0
- package/resources/accounts/url-endpoints.d.mts.map +1 -0
- package/resources/accounts/url-endpoints.d.ts +226 -0
- package/resources/accounts/url-endpoints.d.ts.map +1 -0
- package/resources/accounts/url-endpoints.js +84 -0
- package/resources/accounts/url-endpoints.js.map +1 -0
- package/resources/accounts/url-endpoints.mjs +80 -0
- package/resources/accounts/url-endpoints.mjs.map +1 -0
- package/resources/accounts/usage.d.mts +58 -0
- package/resources/accounts/usage.d.mts.map +1 -0
- package/resources/accounts/usage.d.ts +58 -0
- package/resources/accounts/usage.d.ts.map +1 -0
- package/resources/accounts/usage.js +26 -0
- package/resources/accounts/usage.js.map +1 -0
- package/resources/accounts/usage.mjs +22 -0
- package/resources/accounts/usage.mjs.map +1 -0
- package/resources/accounts.d.mts +2 -0
- package/resources/accounts.d.mts.map +1 -0
- package/resources/accounts.d.ts +2 -0
- package/resources/accounts.d.ts.map +1 -0
- package/resources/accounts.js +6 -0
- package/resources/accounts.js.map +1 -0
- package/resources/accounts.mjs +3 -0
- package/resources/accounts.mjs.map +1 -0
- package/resources/assets.d.mts +75 -0
- package/resources/assets.d.mts.map +1 -0
- package/resources/assets.d.ts +75 -0
- package/resources/assets.d.ts.map +1 -0
- package/resources/assets.js +18 -0
- package/resources/assets.js.map +1 -0
- package/resources/assets.mjs +14 -0
- package/resources/assets.mjs.map +1 -0
- package/resources/beta/beta.d.mts +10 -0
- package/resources/beta/beta.d.mts.map +1 -0
- package/resources/beta/beta.d.ts +10 -0
- package/resources/beta/beta.d.ts.map +1 -0
- package/resources/beta/beta.js +17 -0
- package/resources/beta/beta.js.map +1 -0
- package/resources/beta/beta.mjs +12 -0
- package/resources/beta/beta.mjs.map +1 -0
- package/resources/beta/index.d.mts +3 -0
- package/resources/beta/index.d.mts.map +1 -0
- package/resources/beta/index.d.ts +3 -0
- package/resources/beta/index.d.ts.map +1 -0
- package/resources/beta/index.js +9 -0
- package/resources/beta/index.js.map +1 -0
- package/resources/beta/index.mjs +4 -0
- package/resources/beta/index.mjs.map +1 -0
- package/resources/beta/v2/files.d.mts +460 -0
- package/resources/beta/v2/files.d.mts.map +1 -0
- package/resources/beta/v2/files.d.ts +460 -0
- package/resources/beta/v2/files.d.ts.map +1 -0
- package/resources/beta/v2/files.js +52 -0
- package/resources/beta/v2/files.js.map +1 -0
- package/resources/beta/v2/files.mjs +48 -0
- package/resources/beta/v2/files.mjs.map +1 -0
- package/resources/beta/v2/index.d.mts +3 -0
- package/resources/beta/v2/index.d.mts.map +1 -0
- package/resources/beta/v2/index.d.ts +3 -0
- package/resources/beta/v2/index.d.ts.map +1 -0
- package/resources/beta/v2/index.js +9 -0
- package/resources/beta/v2/index.js.map +1 -0
- package/resources/beta/v2/index.mjs +4 -0
- package/resources/beta/v2/index.mjs.map +1 -0
- package/resources/beta/v2/v2.d.mts +10 -0
- package/resources/beta/v2/v2.d.mts.map +1 -0
- package/resources/beta/v2/v2.d.ts +10 -0
- package/resources/beta/v2/v2.d.ts.map +1 -0
- package/resources/beta/v2/v2.js +17 -0
- package/resources/beta/v2/v2.js.map +1 -0
- package/resources/beta/v2/v2.mjs +12 -0
- package/resources/beta/v2/v2.mjs.map +1 -0
- package/resources/beta/v2.d.mts +2 -0
- package/resources/beta/v2.d.mts.map +1 -0
- package/resources/beta/v2.d.ts +2 -0
- package/resources/beta/v2.d.ts.map +1 -0
- package/resources/beta/v2.js +6 -0
- package/resources/beta/v2.js.map +1 -0
- package/resources/beta/v2.mjs +3 -0
- package/resources/beta/v2.mjs.map +1 -0
- package/resources/beta.d.mts +2 -0
- package/resources/beta.d.mts.map +1 -0
- package/resources/beta.d.ts +2 -0
- package/resources/beta.d.ts.map +1 -0
- package/resources/beta.js +6 -0
- package/resources/beta.js.map +1 -0
- package/resources/beta.mjs +3 -0
- package/resources/beta.mjs.map +1 -0
- package/resources/cache/cache.d.mts +10 -0
- package/resources/cache/cache.d.mts.map +1 -0
- package/resources/cache/cache.d.ts +10 -0
- package/resources/cache/cache.d.ts.map +1 -0
- package/resources/cache/cache.js +17 -0
- package/resources/cache/cache.js.map +1 -0
- package/resources/cache/cache.mjs +12 -0
- package/resources/cache/cache.mjs.map +1 -0
- package/resources/cache/index.d.mts +3 -0
- package/resources/cache/index.d.mts.map +1 -0
- package/resources/cache/index.d.ts +3 -0
- package/resources/cache/index.d.ts.map +1 -0
- package/resources/cache/index.js +9 -0
- package/resources/cache/index.js.map +1 -0
- package/resources/cache/index.mjs +4 -0
- package/resources/cache/index.mjs.map +1 -0
- package/resources/cache/invalidation.d.mts +54 -0
- package/resources/cache/invalidation.d.mts.map +1 -0
- package/resources/cache/invalidation.d.ts +54 -0
- package/resources/cache/invalidation.d.ts.map +1 -0
- package/resources/cache/invalidation.js +40 -0
- package/resources/cache/invalidation.js.map +1 -0
- package/resources/cache/invalidation.mjs +36 -0
- package/resources/cache/invalidation.mjs.map +1 -0
- package/resources/cache.d.mts +2 -0
- package/resources/cache.d.mts.map +1 -0
- package/resources/cache.d.ts +2 -0
- package/resources/cache.d.ts.map +1 -0
- package/resources/cache.js +6 -0
- package/resources/cache.js.map +1 -0
- package/resources/cache.mjs +3 -0
- package/resources/cache.mjs.map +1 -0
- package/resources/custom-metadata-fields.d.mts +274 -0
- package/resources/custom-metadata-fields.d.mts.map +1 -0
- package/resources/custom-metadata-fields.d.ts +274 -0
- package/resources/custom-metadata-fields.d.ts.map +1 -0
- package/resources/custom-metadata-fields.js +79 -0
- package/resources/custom-metadata-fields.js.map +1 -0
- package/resources/custom-metadata-fields.mjs +75 -0
- package/resources/custom-metadata-fields.mjs.map +1 -0
- package/resources/files/bulk.d.mts +137 -0
- package/resources/files/bulk.d.mts.map +1 -0
- package/resources/files/bulk.d.ts +137 -0
- package/resources/files/bulk.d.ts.map +1 -0
- package/resources/files/bulk.js +85 -0
- package/resources/files/bulk.js.map +1 -0
- package/resources/files/bulk.mjs +81 -0
- package/resources/files/bulk.mjs.map +1 -0
- package/resources/files/files.d.mts +1133 -0
- package/resources/files/files.d.mts.map +1 -0
- package/resources/files/files.d.ts +1133 -0
- package/resources/files/files.d.ts.map +1 -0
- package/resources/files/files.js +164 -0
- package/resources/files/files.js.map +1 -0
- package/resources/files/files.mjs +159 -0
- package/resources/files/files.mjs.map +1 -0
- package/resources/files/index.d.mts +5 -0
- package/resources/files/index.d.mts.map +1 -0
- package/resources/files/index.d.ts +5 -0
- package/resources/files/index.d.ts.map +1 -0
- package/resources/files/index.js +11 -0
- package/resources/files/index.js.map +1 -0
- package/resources/files/index.mjs +5 -0
- package/resources/files/index.mjs.map +1 -0
- package/resources/files/metadata.d.mts +42 -0
- package/resources/files/metadata.d.mts.map +1 -0
- package/resources/files/metadata.d.ts +42 -0
- package/resources/files/metadata.d.ts.map +1 -0
- package/resources/files/metadata.js +39 -0
- package/resources/files/metadata.js.map +1 -0
- package/resources/files/metadata.mjs +35 -0
- package/resources/files/metadata.mjs.map +1 -0
- package/resources/files/versions.d.mts +81 -0
- package/resources/files/versions.d.mts.map +1 -0
- package/resources/files/versions.d.ts +81 -0
- package/resources/files/versions.d.ts.map +1 -0
- package/resources/files/versions.js +68 -0
- package/resources/files/versions.js.map +1 -0
- package/resources/files/versions.mjs +64 -0
- package/resources/files/versions.mjs.map +1 -0
- package/resources/files.d.mts +2 -0
- package/resources/files.d.mts.map +1 -0
- package/resources/files.d.ts +2 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +6 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +3 -0
- package/resources/files.mjs.map +1 -0
- package/resources/folders/folders.d.mts +203 -0
- package/resources/folders/folders.d.mts.map +1 -0
- package/resources/folders/folders.d.ts +203 -0
- package/resources/folders/folders.d.ts.map +1 -0
- package/resources/folders/folders.js +97 -0
- package/resources/folders/folders.js.map +1 -0
- package/resources/folders/folders.mjs +92 -0
- package/resources/folders/folders.mjs.map +1 -0
- package/resources/folders/index.d.mts +3 -0
- package/resources/folders/index.d.mts.map +1 -0
- package/resources/folders/index.d.ts +3 -0
- package/resources/folders/index.d.ts.map +1 -0
- package/resources/folders/index.js +9 -0
- package/resources/folders/index.js.map +1 -0
- package/resources/folders/index.mjs +4 -0
- package/resources/folders/index.mjs.map +1 -0
- package/resources/folders/job.d.mts +37 -0
- package/resources/folders/job.d.mts.map +1 -0
- package/resources/folders/job.d.ts +37 -0
- package/resources/folders/job.d.ts.map +1 -0
- package/resources/folders/job.js +21 -0
- package/resources/folders/job.js.map +1 -0
- package/resources/folders/job.mjs +17 -0
- package/resources/folders/job.mjs.map +1 -0
- package/resources/folders.d.mts +2 -0
- package/resources/folders.d.mts.map +1 -0
- package/resources/folders.d.ts +2 -0
- package/resources/folders.d.ts.map +1 -0
- package/resources/folders.js +6 -0
- package/resources/folders.js.map +1 -0
- package/resources/folders.mjs +3 -0
- package/resources/folders.mjs.map +1 -0
- package/resources/helper.d.mts +42 -0
- package/resources/helper.d.mts.map +1 -0
- package/resources/helper.d.ts +42 -0
- package/resources/helper.d.ts.map +1 -0
- package/resources/helper.js +402 -0
- package/resources/helper.js.map +1 -0
- package/resources/helper.mjs +397 -0
- package/resources/helper.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/shared.d.mts +817 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +817 -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/webhooks.d.mts +811 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +811 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +24 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +20 -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 +929 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/lib/crypto-utils.ts +37 -0
- package/src/lib/serialization-utils.ts +42 -0
- package/src/lib/transformation-utils.ts +117 -0
- package/src/resource.ts +2 -0
- package/src/resources/accounts/accounts.ts +55 -0
- package/src/resources/accounts/index.ts +20 -0
- package/src/resources/accounts/origins.ts +1250 -0
- package/src/resources/accounts/url-endpoints.ts +298 -0
- package/src/resources/accounts/usage.ts +70 -0
- package/src/resources/accounts.ts +3 -0
- package/src/resources/assets.ts +105 -0
- package/src/resources/beta/beta.ts +15 -0
- package/src/resources/beta/index.ts +4 -0
- package/src/resources/beta/v2/files.ts +546 -0
- package/src/resources/beta/v2/index.ts +4 -0
- package/src/resources/beta/v2/v2.ts +19 -0
- package/src/resources/beta/v2.ts +3 -0
- package/src/resources/beta.ts +3 -0
- package/src/resources/cache/cache.ts +25 -0
- package/src/resources/cache/index.ts +9 -0
- package/src/resources/cache/invalidation.ts +70 -0
- package/src/resources/cache.ts +3 -0
- package/src/resources/custom-metadata-fields.ts +337 -0
- package/src/resources/files/bulk.ts +171 -0
- package/src/resources/files/files.ts +1430 -0
- package/src/resources/files/index.ts +39 -0
- package/src/resources/files/metadata.ts +52 -0
- package/src/resources/files/versions.ts +117 -0
- package/src/resources/files.ts +3 -0
- package/src/resources/folders/folders.ts +249 -0
- package/src/resources/folders/index.ts +16 -0
- package/src/resources/folders/job.ts +47 -0
- package/src/resources/folders.ts +3 -0
- package/src/resources/helper.ts +462 -0
- package/src/resources/index.ts +60 -0
- package/src/resources/shared.ts +952 -0
- package/src/resources/webhooks.ts +999 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,945 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Origins extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* **Note:** This API is currently in beta.
|
|
7
|
+
* Creates a new origin and returns the origin object.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const originResponse = await client.accounts.origins.create(
|
|
12
|
+
* {
|
|
13
|
+
* accessKey: 'AKIAIOSFODNN7EXAMPLE',
|
|
14
|
+
* bucket: 'product-images',
|
|
15
|
+
* name: 'US S3 Storage',
|
|
16
|
+
* secretKey: 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY',
|
|
17
|
+
* type: 'S3',
|
|
18
|
+
* },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(body: OriginCreateParams, options?: RequestOptions): APIPromise<OriginResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* **Note:** This API is currently in beta.
|
|
25
|
+
* Updates the origin identified by `id` and returns the updated origin object.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const originResponse = await client.accounts.origins.update(
|
|
30
|
+
* 'id',
|
|
31
|
+
* {
|
|
32
|
+
* accessKey: 'AKIAIOSFODNN7EXAMPLE',
|
|
33
|
+
* bucket: 'product-images',
|
|
34
|
+
* name: 'US S3 Storage',
|
|
35
|
+
* secretKey: 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY',
|
|
36
|
+
* type: 'S3',
|
|
37
|
+
* },
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
update(id: string, body: OriginUpdateParams, options?: RequestOptions): APIPromise<OriginResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* **Note:** This API is currently in beta.
|
|
44
|
+
* Returns an array of all configured origins for the current account.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const originResponses =
|
|
49
|
+
* await client.accounts.origins.list();
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
list(options?: RequestOptions): APIPromise<OriginListResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* **Note:** This API is currently in beta.
|
|
55
|
+
* Permanently removes the origin identified by `id`. If the origin is in use by
|
|
56
|
+
* any URL‑endpoints, the API will return an error.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* await client.accounts.origins.delete('id');
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* **Note:** This API is currently in beta.
|
|
66
|
+
* Retrieves the origin identified by `id`.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const originResponse = await client.accounts.origins.get(
|
|
71
|
+
* 'id',
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
get(id: string, options?: RequestOptions): APIPromise<OriginResponse>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Schema for origin request resources.
|
|
79
|
+
*/
|
|
80
|
+
export type OriginRequest = OriginRequest.S3 | OriginRequest.S3Compatible | OriginRequest.CloudinaryBackup | OriginRequest.WebFolder | OriginRequest.WebProxy | OriginRequest.Gcs | OriginRequest.AzureBlob | OriginRequest.AkeneoPim;
|
|
81
|
+
export declare namespace OriginRequest {
|
|
82
|
+
interface S3 {
|
|
83
|
+
/**
|
|
84
|
+
* Access key for the bucket.
|
|
85
|
+
*/
|
|
86
|
+
accessKey: string;
|
|
87
|
+
/**
|
|
88
|
+
* S3 bucket name.
|
|
89
|
+
*/
|
|
90
|
+
bucket: string;
|
|
91
|
+
/**
|
|
92
|
+
* Display name of the origin.
|
|
93
|
+
*/
|
|
94
|
+
name: string;
|
|
95
|
+
/**
|
|
96
|
+
* Secret key for the bucket.
|
|
97
|
+
*/
|
|
98
|
+
secretKey: string;
|
|
99
|
+
type: 'S3';
|
|
100
|
+
/**
|
|
101
|
+
* URL used in the Canonical header (if enabled).
|
|
102
|
+
*/
|
|
103
|
+
baseUrlForCanonicalHeader?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Whether to send a Canonical header.
|
|
106
|
+
*/
|
|
107
|
+
includeCanonicalHeader?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Path prefix inside the bucket.
|
|
110
|
+
*/
|
|
111
|
+
prefix?: string;
|
|
112
|
+
}
|
|
113
|
+
interface S3Compatible {
|
|
114
|
+
/**
|
|
115
|
+
* Access key for the bucket.
|
|
116
|
+
*/
|
|
117
|
+
accessKey: string;
|
|
118
|
+
/**
|
|
119
|
+
* S3 bucket name.
|
|
120
|
+
*/
|
|
121
|
+
bucket: string;
|
|
122
|
+
/**
|
|
123
|
+
* Custom S3-compatible endpoint.
|
|
124
|
+
*/
|
|
125
|
+
endpoint: string;
|
|
126
|
+
/**
|
|
127
|
+
* Display name of the origin.
|
|
128
|
+
*/
|
|
129
|
+
name: string;
|
|
130
|
+
/**
|
|
131
|
+
* Secret key for the bucket.
|
|
132
|
+
*/
|
|
133
|
+
secretKey: string;
|
|
134
|
+
type: 'S3_COMPATIBLE';
|
|
135
|
+
/**
|
|
136
|
+
* URL used in the Canonical header (if enabled).
|
|
137
|
+
*/
|
|
138
|
+
baseUrlForCanonicalHeader?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Whether to send a Canonical header.
|
|
141
|
+
*/
|
|
142
|
+
includeCanonicalHeader?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Path prefix inside the bucket.
|
|
145
|
+
*/
|
|
146
|
+
prefix?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Use path-style S3 URLs?
|
|
149
|
+
*/
|
|
150
|
+
s3ForcePathStyle?: boolean;
|
|
151
|
+
}
|
|
152
|
+
interface CloudinaryBackup {
|
|
153
|
+
/**
|
|
154
|
+
* Access key for the bucket.
|
|
155
|
+
*/
|
|
156
|
+
accessKey: string;
|
|
157
|
+
/**
|
|
158
|
+
* S3 bucket name.
|
|
159
|
+
*/
|
|
160
|
+
bucket: string;
|
|
161
|
+
/**
|
|
162
|
+
* Display name of the origin.
|
|
163
|
+
*/
|
|
164
|
+
name: string;
|
|
165
|
+
/**
|
|
166
|
+
* Secret key for the bucket.
|
|
167
|
+
*/
|
|
168
|
+
secretKey: string;
|
|
169
|
+
type: 'CLOUDINARY_BACKUP';
|
|
170
|
+
/**
|
|
171
|
+
* URL used in the Canonical header (if enabled).
|
|
172
|
+
*/
|
|
173
|
+
baseUrlForCanonicalHeader?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Whether to send a Canonical header.
|
|
176
|
+
*/
|
|
177
|
+
includeCanonicalHeader?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Path prefix inside the bucket.
|
|
180
|
+
*/
|
|
181
|
+
prefix?: string;
|
|
182
|
+
}
|
|
183
|
+
interface WebFolder {
|
|
184
|
+
/**
|
|
185
|
+
* Root URL for the web folder origin.
|
|
186
|
+
*/
|
|
187
|
+
baseUrl: string;
|
|
188
|
+
/**
|
|
189
|
+
* Display name of the origin.
|
|
190
|
+
*/
|
|
191
|
+
name: string;
|
|
192
|
+
type: 'WEB_FOLDER';
|
|
193
|
+
/**
|
|
194
|
+
* URL used in the Canonical header (if enabled).
|
|
195
|
+
*/
|
|
196
|
+
baseUrlForCanonicalHeader?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Forward the Host header to origin?
|
|
199
|
+
*/
|
|
200
|
+
forwardHostHeaderToOrigin?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Whether to send a Canonical header.
|
|
203
|
+
*/
|
|
204
|
+
includeCanonicalHeader?: boolean;
|
|
205
|
+
}
|
|
206
|
+
interface WebProxy {
|
|
207
|
+
/**
|
|
208
|
+
* Display name of the origin.
|
|
209
|
+
*/
|
|
210
|
+
name: string;
|
|
211
|
+
type: 'WEB_PROXY';
|
|
212
|
+
/**
|
|
213
|
+
* URL used in the Canonical header (if enabled).
|
|
214
|
+
*/
|
|
215
|
+
baseUrlForCanonicalHeader?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Whether to send a Canonical header.
|
|
218
|
+
*/
|
|
219
|
+
includeCanonicalHeader?: boolean;
|
|
220
|
+
}
|
|
221
|
+
interface Gcs {
|
|
222
|
+
bucket: string;
|
|
223
|
+
clientEmail: string;
|
|
224
|
+
/**
|
|
225
|
+
* Display name of the origin.
|
|
226
|
+
*/
|
|
227
|
+
name: string;
|
|
228
|
+
privateKey: string;
|
|
229
|
+
type: 'GCS';
|
|
230
|
+
/**
|
|
231
|
+
* URL used in the Canonical header (if enabled).
|
|
232
|
+
*/
|
|
233
|
+
baseUrlForCanonicalHeader?: string;
|
|
234
|
+
/**
|
|
235
|
+
* Whether to send a Canonical header.
|
|
236
|
+
*/
|
|
237
|
+
includeCanonicalHeader?: boolean;
|
|
238
|
+
prefix?: string;
|
|
239
|
+
}
|
|
240
|
+
interface AzureBlob {
|
|
241
|
+
accountName: string;
|
|
242
|
+
container: string;
|
|
243
|
+
/**
|
|
244
|
+
* Display name of the origin.
|
|
245
|
+
*/
|
|
246
|
+
name: string;
|
|
247
|
+
sasToken: string;
|
|
248
|
+
type: 'AZURE_BLOB';
|
|
249
|
+
/**
|
|
250
|
+
* URL used in the Canonical header (if enabled).
|
|
251
|
+
*/
|
|
252
|
+
baseUrlForCanonicalHeader?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Whether to send a Canonical header.
|
|
255
|
+
*/
|
|
256
|
+
includeCanonicalHeader?: boolean;
|
|
257
|
+
prefix?: string;
|
|
258
|
+
}
|
|
259
|
+
interface AkeneoPim {
|
|
260
|
+
/**
|
|
261
|
+
* Akeneo instance base URL.
|
|
262
|
+
*/
|
|
263
|
+
baseUrl: string;
|
|
264
|
+
/**
|
|
265
|
+
* Akeneo API client ID.
|
|
266
|
+
*/
|
|
267
|
+
clientId: string;
|
|
268
|
+
/**
|
|
269
|
+
* Akeneo API client secret.
|
|
270
|
+
*/
|
|
271
|
+
clientSecret: string;
|
|
272
|
+
/**
|
|
273
|
+
* Display name of the origin.
|
|
274
|
+
*/
|
|
275
|
+
name: string;
|
|
276
|
+
/**
|
|
277
|
+
* Akeneo API password.
|
|
278
|
+
*/
|
|
279
|
+
password: string;
|
|
280
|
+
type: 'AKENEO_PIM';
|
|
281
|
+
/**
|
|
282
|
+
* Akeneo API username.
|
|
283
|
+
*/
|
|
284
|
+
username: string;
|
|
285
|
+
/**
|
|
286
|
+
* URL used in the Canonical header (if enabled).
|
|
287
|
+
*/
|
|
288
|
+
baseUrlForCanonicalHeader?: string;
|
|
289
|
+
/**
|
|
290
|
+
* Whether to send a Canonical header.
|
|
291
|
+
*/
|
|
292
|
+
includeCanonicalHeader?: boolean;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Origin object as returned by the API (sensitive fields removed).
|
|
297
|
+
*/
|
|
298
|
+
export type OriginResponse = OriginResponse.S3 | OriginResponse.S3Compatible | OriginResponse.CloudinaryBackup | OriginResponse.WebFolder | OriginResponse.WebProxy | OriginResponse.Gcs | OriginResponse.AzureBlob | OriginResponse.AkeneoPim;
|
|
299
|
+
export declare namespace OriginResponse {
|
|
300
|
+
interface S3 {
|
|
301
|
+
/**
|
|
302
|
+
* Unique identifier for the origin. This is generated by ImageKit when you create
|
|
303
|
+
* a new origin.
|
|
304
|
+
*/
|
|
305
|
+
id: string;
|
|
306
|
+
/**
|
|
307
|
+
* S3 bucket name.
|
|
308
|
+
*/
|
|
309
|
+
bucket: string;
|
|
310
|
+
/**
|
|
311
|
+
* Whether to send a Canonical header.
|
|
312
|
+
*/
|
|
313
|
+
includeCanonicalHeader: boolean;
|
|
314
|
+
/**
|
|
315
|
+
* Display name of the origin.
|
|
316
|
+
*/
|
|
317
|
+
name: string;
|
|
318
|
+
/**
|
|
319
|
+
* Path prefix inside the bucket.
|
|
320
|
+
*/
|
|
321
|
+
prefix: string;
|
|
322
|
+
type: 'S3';
|
|
323
|
+
/**
|
|
324
|
+
* URL used in the Canonical header (if enabled).
|
|
325
|
+
*/
|
|
326
|
+
baseUrlForCanonicalHeader?: string;
|
|
327
|
+
}
|
|
328
|
+
interface S3Compatible {
|
|
329
|
+
/**
|
|
330
|
+
* Unique identifier for the origin. This is generated by ImageKit when you create
|
|
331
|
+
* a new origin.
|
|
332
|
+
*/
|
|
333
|
+
id: string;
|
|
334
|
+
/**
|
|
335
|
+
* S3 bucket name.
|
|
336
|
+
*/
|
|
337
|
+
bucket: string;
|
|
338
|
+
/**
|
|
339
|
+
* Custom S3-compatible endpoint.
|
|
340
|
+
*/
|
|
341
|
+
endpoint: string;
|
|
342
|
+
/**
|
|
343
|
+
* Whether to send a Canonical header.
|
|
344
|
+
*/
|
|
345
|
+
includeCanonicalHeader: boolean;
|
|
346
|
+
/**
|
|
347
|
+
* Display name of the origin.
|
|
348
|
+
*/
|
|
349
|
+
name: string;
|
|
350
|
+
/**
|
|
351
|
+
* Path prefix inside the bucket.
|
|
352
|
+
*/
|
|
353
|
+
prefix: string;
|
|
354
|
+
/**
|
|
355
|
+
* Use path-style S3 URLs?
|
|
356
|
+
*/
|
|
357
|
+
s3ForcePathStyle: boolean;
|
|
358
|
+
type: 'S3_COMPATIBLE';
|
|
359
|
+
/**
|
|
360
|
+
* URL used in the Canonical header (if enabled).
|
|
361
|
+
*/
|
|
362
|
+
baseUrlForCanonicalHeader?: string;
|
|
363
|
+
}
|
|
364
|
+
interface CloudinaryBackup {
|
|
365
|
+
/**
|
|
366
|
+
* Unique identifier for the origin. This is generated by ImageKit when you create
|
|
367
|
+
* a new origin.
|
|
368
|
+
*/
|
|
369
|
+
id: string;
|
|
370
|
+
/**
|
|
371
|
+
* S3 bucket name.
|
|
372
|
+
*/
|
|
373
|
+
bucket: string;
|
|
374
|
+
/**
|
|
375
|
+
* Whether to send a Canonical header.
|
|
376
|
+
*/
|
|
377
|
+
includeCanonicalHeader: boolean;
|
|
378
|
+
/**
|
|
379
|
+
* Display name of the origin.
|
|
380
|
+
*/
|
|
381
|
+
name: string;
|
|
382
|
+
/**
|
|
383
|
+
* Path prefix inside the bucket.
|
|
384
|
+
*/
|
|
385
|
+
prefix: string;
|
|
386
|
+
type: 'CLOUDINARY_BACKUP';
|
|
387
|
+
/**
|
|
388
|
+
* URL used in the Canonical header (if enabled).
|
|
389
|
+
*/
|
|
390
|
+
baseUrlForCanonicalHeader?: string;
|
|
391
|
+
}
|
|
392
|
+
interface WebFolder {
|
|
393
|
+
/**
|
|
394
|
+
* Unique identifier for the origin. This is generated by ImageKit when you create
|
|
395
|
+
* a new origin.
|
|
396
|
+
*/
|
|
397
|
+
id: string;
|
|
398
|
+
/**
|
|
399
|
+
* Root URL for the web folder origin.
|
|
400
|
+
*/
|
|
401
|
+
baseUrl: string;
|
|
402
|
+
/**
|
|
403
|
+
* Forward the Host header to origin?
|
|
404
|
+
*/
|
|
405
|
+
forwardHostHeaderToOrigin: boolean;
|
|
406
|
+
/**
|
|
407
|
+
* Whether to send a Canonical header.
|
|
408
|
+
*/
|
|
409
|
+
includeCanonicalHeader: boolean;
|
|
410
|
+
/**
|
|
411
|
+
* Display name of the origin.
|
|
412
|
+
*/
|
|
413
|
+
name: string;
|
|
414
|
+
type: 'WEB_FOLDER';
|
|
415
|
+
/**
|
|
416
|
+
* URL used in the Canonical header (if enabled).
|
|
417
|
+
*/
|
|
418
|
+
baseUrlForCanonicalHeader?: string;
|
|
419
|
+
}
|
|
420
|
+
interface WebProxy {
|
|
421
|
+
/**
|
|
422
|
+
* Unique identifier for the origin. This is generated by ImageKit when you create
|
|
423
|
+
* a new origin.
|
|
424
|
+
*/
|
|
425
|
+
id: string;
|
|
426
|
+
/**
|
|
427
|
+
* Whether to send a Canonical header.
|
|
428
|
+
*/
|
|
429
|
+
includeCanonicalHeader: boolean;
|
|
430
|
+
/**
|
|
431
|
+
* Display name of the origin.
|
|
432
|
+
*/
|
|
433
|
+
name: string;
|
|
434
|
+
type: 'WEB_PROXY';
|
|
435
|
+
/**
|
|
436
|
+
* URL used in the Canonical header (if enabled).
|
|
437
|
+
*/
|
|
438
|
+
baseUrlForCanonicalHeader?: string;
|
|
439
|
+
}
|
|
440
|
+
interface Gcs {
|
|
441
|
+
/**
|
|
442
|
+
* Unique identifier for the origin. This is generated by ImageKit when you create
|
|
443
|
+
* a new origin.
|
|
444
|
+
*/
|
|
445
|
+
id: string;
|
|
446
|
+
bucket: string;
|
|
447
|
+
clientEmail: string;
|
|
448
|
+
/**
|
|
449
|
+
* Whether to send a Canonical header.
|
|
450
|
+
*/
|
|
451
|
+
includeCanonicalHeader: boolean;
|
|
452
|
+
/**
|
|
453
|
+
* Display name of the origin.
|
|
454
|
+
*/
|
|
455
|
+
name: string;
|
|
456
|
+
prefix: string;
|
|
457
|
+
type: 'GCS';
|
|
458
|
+
/**
|
|
459
|
+
* URL used in the Canonical header (if enabled).
|
|
460
|
+
*/
|
|
461
|
+
baseUrlForCanonicalHeader?: string;
|
|
462
|
+
}
|
|
463
|
+
interface AzureBlob {
|
|
464
|
+
/**
|
|
465
|
+
* Unique identifier for the origin. This is generated by ImageKit when you create
|
|
466
|
+
* a new origin.
|
|
467
|
+
*/
|
|
468
|
+
id: string;
|
|
469
|
+
accountName: string;
|
|
470
|
+
container: string;
|
|
471
|
+
/**
|
|
472
|
+
* Whether to send a Canonical header.
|
|
473
|
+
*/
|
|
474
|
+
includeCanonicalHeader: boolean;
|
|
475
|
+
/**
|
|
476
|
+
* Display name of the origin.
|
|
477
|
+
*/
|
|
478
|
+
name: string;
|
|
479
|
+
prefix: string;
|
|
480
|
+
type: 'AZURE_BLOB';
|
|
481
|
+
/**
|
|
482
|
+
* URL used in the Canonical header (if enabled).
|
|
483
|
+
*/
|
|
484
|
+
baseUrlForCanonicalHeader?: string;
|
|
485
|
+
}
|
|
486
|
+
interface AkeneoPim {
|
|
487
|
+
/**
|
|
488
|
+
* Unique identifier for the origin. This is generated by ImageKit when you create
|
|
489
|
+
* a new origin.
|
|
490
|
+
*/
|
|
491
|
+
id: string;
|
|
492
|
+
/**
|
|
493
|
+
* Akeneo instance base URL.
|
|
494
|
+
*/
|
|
495
|
+
baseUrl: string;
|
|
496
|
+
/**
|
|
497
|
+
* Whether to send a Canonical header.
|
|
498
|
+
*/
|
|
499
|
+
includeCanonicalHeader: boolean;
|
|
500
|
+
/**
|
|
501
|
+
* Display name of the origin.
|
|
502
|
+
*/
|
|
503
|
+
name: string;
|
|
504
|
+
type: 'AKENEO_PIM';
|
|
505
|
+
/**
|
|
506
|
+
* URL used in the Canonical header (if enabled).
|
|
507
|
+
*/
|
|
508
|
+
baseUrlForCanonicalHeader?: string;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
export type OriginListResponse = Array<OriginResponse>;
|
|
512
|
+
export type OriginCreateParams = OriginCreateParams.S3 | OriginCreateParams.S3Compatible | OriginCreateParams.CloudinaryBackup | OriginCreateParams.WebFolder | OriginCreateParams.WebProxy | OriginCreateParams.GoogleCloudStorageGcs | OriginCreateParams.AzureBlobStorage | OriginCreateParams.AkeneoPim;
|
|
513
|
+
export declare namespace OriginCreateParams {
|
|
514
|
+
interface S3 {
|
|
515
|
+
/**
|
|
516
|
+
* Access key for the bucket.
|
|
517
|
+
*/
|
|
518
|
+
accessKey: string;
|
|
519
|
+
/**
|
|
520
|
+
* S3 bucket name.
|
|
521
|
+
*/
|
|
522
|
+
bucket: string;
|
|
523
|
+
/**
|
|
524
|
+
* Display name of the origin.
|
|
525
|
+
*/
|
|
526
|
+
name: string;
|
|
527
|
+
/**
|
|
528
|
+
* Secret key for the bucket.
|
|
529
|
+
*/
|
|
530
|
+
secretKey: string;
|
|
531
|
+
type: 'S3';
|
|
532
|
+
/**
|
|
533
|
+
* URL used in the Canonical header (if enabled).
|
|
534
|
+
*/
|
|
535
|
+
baseUrlForCanonicalHeader?: string;
|
|
536
|
+
/**
|
|
537
|
+
* Whether to send a Canonical header.
|
|
538
|
+
*/
|
|
539
|
+
includeCanonicalHeader?: boolean;
|
|
540
|
+
/**
|
|
541
|
+
* Path prefix inside the bucket.
|
|
542
|
+
*/
|
|
543
|
+
prefix?: string;
|
|
544
|
+
}
|
|
545
|
+
interface S3Compatible {
|
|
546
|
+
/**
|
|
547
|
+
* Access key for the bucket.
|
|
548
|
+
*/
|
|
549
|
+
accessKey: string;
|
|
550
|
+
/**
|
|
551
|
+
* S3 bucket name.
|
|
552
|
+
*/
|
|
553
|
+
bucket: string;
|
|
554
|
+
/**
|
|
555
|
+
* Custom S3-compatible endpoint.
|
|
556
|
+
*/
|
|
557
|
+
endpoint: string;
|
|
558
|
+
/**
|
|
559
|
+
* Display name of the origin.
|
|
560
|
+
*/
|
|
561
|
+
name: string;
|
|
562
|
+
/**
|
|
563
|
+
* Secret key for the bucket.
|
|
564
|
+
*/
|
|
565
|
+
secretKey: string;
|
|
566
|
+
type: 'S3_COMPATIBLE';
|
|
567
|
+
/**
|
|
568
|
+
* URL used in the Canonical header (if enabled).
|
|
569
|
+
*/
|
|
570
|
+
baseUrlForCanonicalHeader?: string;
|
|
571
|
+
/**
|
|
572
|
+
* Whether to send a Canonical header.
|
|
573
|
+
*/
|
|
574
|
+
includeCanonicalHeader?: boolean;
|
|
575
|
+
/**
|
|
576
|
+
* Path prefix inside the bucket.
|
|
577
|
+
*/
|
|
578
|
+
prefix?: string;
|
|
579
|
+
/**
|
|
580
|
+
* Use path-style S3 URLs?
|
|
581
|
+
*/
|
|
582
|
+
s3ForcePathStyle?: boolean;
|
|
583
|
+
}
|
|
584
|
+
interface CloudinaryBackup {
|
|
585
|
+
/**
|
|
586
|
+
* Access key for the bucket.
|
|
587
|
+
*/
|
|
588
|
+
accessKey: string;
|
|
589
|
+
/**
|
|
590
|
+
* S3 bucket name.
|
|
591
|
+
*/
|
|
592
|
+
bucket: string;
|
|
593
|
+
/**
|
|
594
|
+
* Display name of the origin.
|
|
595
|
+
*/
|
|
596
|
+
name: string;
|
|
597
|
+
/**
|
|
598
|
+
* Secret key for the bucket.
|
|
599
|
+
*/
|
|
600
|
+
secretKey: string;
|
|
601
|
+
type: 'CLOUDINARY_BACKUP';
|
|
602
|
+
/**
|
|
603
|
+
* URL used in the Canonical header (if enabled).
|
|
604
|
+
*/
|
|
605
|
+
baseUrlForCanonicalHeader?: string;
|
|
606
|
+
/**
|
|
607
|
+
* Whether to send a Canonical header.
|
|
608
|
+
*/
|
|
609
|
+
includeCanonicalHeader?: boolean;
|
|
610
|
+
/**
|
|
611
|
+
* Path prefix inside the bucket.
|
|
612
|
+
*/
|
|
613
|
+
prefix?: string;
|
|
614
|
+
}
|
|
615
|
+
interface WebFolder {
|
|
616
|
+
/**
|
|
617
|
+
* Root URL for the web folder origin.
|
|
618
|
+
*/
|
|
619
|
+
baseUrl: string;
|
|
620
|
+
/**
|
|
621
|
+
* Display name of the origin.
|
|
622
|
+
*/
|
|
623
|
+
name: string;
|
|
624
|
+
type: 'WEB_FOLDER';
|
|
625
|
+
/**
|
|
626
|
+
* URL used in the Canonical header (if enabled).
|
|
627
|
+
*/
|
|
628
|
+
baseUrlForCanonicalHeader?: string;
|
|
629
|
+
/**
|
|
630
|
+
* Forward the Host header to origin?
|
|
631
|
+
*/
|
|
632
|
+
forwardHostHeaderToOrigin?: boolean;
|
|
633
|
+
/**
|
|
634
|
+
* Whether to send a Canonical header.
|
|
635
|
+
*/
|
|
636
|
+
includeCanonicalHeader?: boolean;
|
|
637
|
+
}
|
|
638
|
+
interface WebProxy {
|
|
639
|
+
/**
|
|
640
|
+
* Display name of the origin.
|
|
641
|
+
*/
|
|
642
|
+
name: string;
|
|
643
|
+
type: 'WEB_PROXY';
|
|
644
|
+
/**
|
|
645
|
+
* URL used in the Canonical header (if enabled).
|
|
646
|
+
*/
|
|
647
|
+
baseUrlForCanonicalHeader?: string;
|
|
648
|
+
/**
|
|
649
|
+
* Whether to send a Canonical header.
|
|
650
|
+
*/
|
|
651
|
+
includeCanonicalHeader?: boolean;
|
|
652
|
+
}
|
|
653
|
+
interface GoogleCloudStorageGcs {
|
|
654
|
+
bucket: string;
|
|
655
|
+
clientEmail: string;
|
|
656
|
+
/**
|
|
657
|
+
* Display name of the origin.
|
|
658
|
+
*/
|
|
659
|
+
name: string;
|
|
660
|
+
privateKey: string;
|
|
661
|
+
type: 'GCS';
|
|
662
|
+
/**
|
|
663
|
+
* URL used in the Canonical header (if enabled).
|
|
664
|
+
*/
|
|
665
|
+
baseUrlForCanonicalHeader?: string;
|
|
666
|
+
/**
|
|
667
|
+
* Whether to send a Canonical header.
|
|
668
|
+
*/
|
|
669
|
+
includeCanonicalHeader?: boolean;
|
|
670
|
+
prefix?: string;
|
|
671
|
+
}
|
|
672
|
+
interface AzureBlobStorage {
|
|
673
|
+
accountName: string;
|
|
674
|
+
container: string;
|
|
675
|
+
/**
|
|
676
|
+
* Display name of the origin.
|
|
677
|
+
*/
|
|
678
|
+
name: string;
|
|
679
|
+
sasToken: string;
|
|
680
|
+
type: 'AZURE_BLOB';
|
|
681
|
+
/**
|
|
682
|
+
* URL used in the Canonical header (if enabled).
|
|
683
|
+
*/
|
|
684
|
+
baseUrlForCanonicalHeader?: string;
|
|
685
|
+
/**
|
|
686
|
+
* Whether to send a Canonical header.
|
|
687
|
+
*/
|
|
688
|
+
includeCanonicalHeader?: boolean;
|
|
689
|
+
prefix?: string;
|
|
690
|
+
}
|
|
691
|
+
interface AkeneoPim {
|
|
692
|
+
/**
|
|
693
|
+
* Akeneo instance base URL.
|
|
694
|
+
*/
|
|
695
|
+
baseUrl: string;
|
|
696
|
+
/**
|
|
697
|
+
* Akeneo API client ID.
|
|
698
|
+
*/
|
|
699
|
+
clientId: string;
|
|
700
|
+
/**
|
|
701
|
+
* Akeneo API client secret.
|
|
702
|
+
*/
|
|
703
|
+
clientSecret: string;
|
|
704
|
+
/**
|
|
705
|
+
* Display name of the origin.
|
|
706
|
+
*/
|
|
707
|
+
name: string;
|
|
708
|
+
/**
|
|
709
|
+
* Akeneo API password.
|
|
710
|
+
*/
|
|
711
|
+
password: string;
|
|
712
|
+
type: 'AKENEO_PIM';
|
|
713
|
+
/**
|
|
714
|
+
* Akeneo API username.
|
|
715
|
+
*/
|
|
716
|
+
username: string;
|
|
717
|
+
/**
|
|
718
|
+
* URL used in the Canonical header (if enabled).
|
|
719
|
+
*/
|
|
720
|
+
baseUrlForCanonicalHeader?: string;
|
|
721
|
+
/**
|
|
722
|
+
* Whether to send a Canonical header.
|
|
723
|
+
*/
|
|
724
|
+
includeCanonicalHeader?: boolean;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
export type OriginUpdateParams = OriginUpdateParams.S3 | OriginUpdateParams.S3Compatible | OriginUpdateParams.CloudinaryBackup | OriginUpdateParams.WebFolder | OriginUpdateParams.WebProxy | OriginUpdateParams.GoogleCloudStorageGcs | OriginUpdateParams.AzureBlobStorage | OriginUpdateParams.AkeneoPim;
|
|
728
|
+
export declare namespace OriginUpdateParams {
|
|
729
|
+
interface S3 {
|
|
730
|
+
/**
|
|
731
|
+
* Access key for the bucket.
|
|
732
|
+
*/
|
|
733
|
+
accessKey: string;
|
|
734
|
+
/**
|
|
735
|
+
* S3 bucket name.
|
|
736
|
+
*/
|
|
737
|
+
bucket: string;
|
|
738
|
+
/**
|
|
739
|
+
* Display name of the origin.
|
|
740
|
+
*/
|
|
741
|
+
name: string;
|
|
742
|
+
/**
|
|
743
|
+
* Secret key for the bucket.
|
|
744
|
+
*/
|
|
745
|
+
secretKey: string;
|
|
746
|
+
type: 'S3';
|
|
747
|
+
/**
|
|
748
|
+
* URL used in the Canonical header (if enabled).
|
|
749
|
+
*/
|
|
750
|
+
baseUrlForCanonicalHeader?: string;
|
|
751
|
+
/**
|
|
752
|
+
* Whether to send a Canonical header.
|
|
753
|
+
*/
|
|
754
|
+
includeCanonicalHeader?: boolean;
|
|
755
|
+
/**
|
|
756
|
+
* Path prefix inside the bucket.
|
|
757
|
+
*/
|
|
758
|
+
prefix?: string;
|
|
759
|
+
}
|
|
760
|
+
interface S3Compatible {
|
|
761
|
+
/**
|
|
762
|
+
* Access key for the bucket.
|
|
763
|
+
*/
|
|
764
|
+
accessKey: string;
|
|
765
|
+
/**
|
|
766
|
+
* S3 bucket name.
|
|
767
|
+
*/
|
|
768
|
+
bucket: string;
|
|
769
|
+
/**
|
|
770
|
+
* Custom S3-compatible endpoint.
|
|
771
|
+
*/
|
|
772
|
+
endpoint: string;
|
|
773
|
+
/**
|
|
774
|
+
* Display name of the origin.
|
|
775
|
+
*/
|
|
776
|
+
name: string;
|
|
777
|
+
/**
|
|
778
|
+
* Secret key for the bucket.
|
|
779
|
+
*/
|
|
780
|
+
secretKey: string;
|
|
781
|
+
type: 'S3_COMPATIBLE';
|
|
782
|
+
/**
|
|
783
|
+
* URL used in the Canonical header (if enabled).
|
|
784
|
+
*/
|
|
785
|
+
baseUrlForCanonicalHeader?: string;
|
|
786
|
+
/**
|
|
787
|
+
* Whether to send a Canonical header.
|
|
788
|
+
*/
|
|
789
|
+
includeCanonicalHeader?: boolean;
|
|
790
|
+
/**
|
|
791
|
+
* Path prefix inside the bucket.
|
|
792
|
+
*/
|
|
793
|
+
prefix?: string;
|
|
794
|
+
/**
|
|
795
|
+
* Use path-style S3 URLs?
|
|
796
|
+
*/
|
|
797
|
+
s3ForcePathStyle?: boolean;
|
|
798
|
+
}
|
|
799
|
+
interface CloudinaryBackup {
|
|
800
|
+
/**
|
|
801
|
+
* Access key for the bucket.
|
|
802
|
+
*/
|
|
803
|
+
accessKey: string;
|
|
804
|
+
/**
|
|
805
|
+
* S3 bucket name.
|
|
806
|
+
*/
|
|
807
|
+
bucket: string;
|
|
808
|
+
/**
|
|
809
|
+
* Display name of the origin.
|
|
810
|
+
*/
|
|
811
|
+
name: string;
|
|
812
|
+
/**
|
|
813
|
+
* Secret key for the bucket.
|
|
814
|
+
*/
|
|
815
|
+
secretKey: string;
|
|
816
|
+
type: 'CLOUDINARY_BACKUP';
|
|
817
|
+
/**
|
|
818
|
+
* URL used in the Canonical header (if enabled).
|
|
819
|
+
*/
|
|
820
|
+
baseUrlForCanonicalHeader?: string;
|
|
821
|
+
/**
|
|
822
|
+
* Whether to send a Canonical header.
|
|
823
|
+
*/
|
|
824
|
+
includeCanonicalHeader?: boolean;
|
|
825
|
+
/**
|
|
826
|
+
* Path prefix inside the bucket.
|
|
827
|
+
*/
|
|
828
|
+
prefix?: string;
|
|
829
|
+
}
|
|
830
|
+
interface WebFolder {
|
|
831
|
+
/**
|
|
832
|
+
* Root URL for the web folder origin.
|
|
833
|
+
*/
|
|
834
|
+
baseUrl: string;
|
|
835
|
+
/**
|
|
836
|
+
* Display name of the origin.
|
|
837
|
+
*/
|
|
838
|
+
name: string;
|
|
839
|
+
type: 'WEB_FOLDER';
|
|
840
|
+
/**
|
|
841
|
+
* URL used in the Canonical header (if enabled).
|
|
842
|
+
*/
|
|
843
|
+
baseUrlForCanonicalHeader?: string;
|
|
844
|
+
/**
|
|
845
|
+
* Forward the Host header to origin?
|
|
846
|
+
*/
|
|
847
|
+
forwardHostHeaderToOrigin?: boolean;
|
|
848
|
+
/**
|
|
849
|
+
* Whether to send a Canonical header.
|
|
850
|
+
*/
|
|
851
|
+
includeCanonicalHeader?: boolean;
|
|
852
|
+
}
|
|
853
|
+
interface WebProxy {
|
|
854
|
+
/**
|
|
855
|
+
* Display name of the origin.
|
|
856
|
+
*/
|
|
857
|
+
name: string;
|
|
858
|
+
type: 'WEB_PROXY';
|
|
859
|
+
/**
|
|
860
|
+
* URL used in the Canonical header (if enabled).
|
|
861
|
+
*/
|
|
862
|
+
baseUrlForCanonicalHeader?: string;
|
|
863
|
+
/**
|
|
864
|
+
* Whether to send a Canonical header.
|
|
865
|
+
*/
|
|
866
|
+
includeCanonicalHeader?: boolean;
|
|
867
|
+
}
|
|
868
|
+
interface GoogleCloudStorageGcs {
|
|
869
|
+
bucket: string;
|
|
870
|
+
clientEmail: string;
|
|
871
|
+
/**
|
|
872
|
+
* Display name of the origin.
|
|
873
|
+
*/
|
|
874
|
+
name: string;
|
|
875
|
+
privateKey: string;
|
|
876
|
+
type: 'GCS';
|
|
877
|
+
/**
|
|
878
|
+
* URL used in the Canonical header (if enabled).
|
|
879
|
+
*/
|
|
880
|
+
baseUrlForCanonicalHeader?: string;
|
|
881
|
+
/**
|
|
882
|
+
* Whether to send a Canonical header.
|
|
883
|
+
*/
|
|
884
|
+
includeCanonicalHeader?: boolean;
|
|
885
|
+
prefix?: string;
|
|
886
|
+
}
|
|
887
|
+
interface AzureBlobStorage {
|
|
888
|
+
accountName: string;
|
|
889
|
+
container: string;
|
|
890
|
+
/**
|
|
891
|
+
* Display name of the origin.
|
|
892
|
+
*/
|
|
893
|
+
name: string;
|
|
894
|
+
sasToken: string;
|
|
895
|
+
type: 'AZURE_BLOB';
|
|
896
|
+
/**
|
|
897
|
+
* URL used in the Canonical header (if enabled).
|
|
898
|
+
*/
|
|
899
|
+
baseUrlForCanonicalHeader?: string;
|
|
900
|
+
/**
|
|
901
|
+
* Whether to send a Canonical header.
|
|
902
|
+
*/
|
|
903
|
+
includeCanonicalHeader?: boolean;
|
|
904
|
+
prefix?: string;
|
|
905
|
+
}
|
|
906
|
+
interface AkeneoPim {
|
|
907
|
+
/**
|
|
908
|
+
* Akeneo instance base URL.
|
|
909
|
+
*/
|
|
910
|
+
baseUrl: string;
|
|
911
|
+
/**
|
|
912
|
+
* Akeneo API client ID.
|
|
913
|
+
*/
|
|
914
|
+
clientId: string;
|
|
915
|
+
/**
|
|
916
|
+
* Akeneo API client secret.
|
|
917
|
+
*/
|
|
918
|
+
clientSecret: string;
|
|
919
|
+
/**
|
|
920
|
+
* Display name of the origin.
|
|
921
|
+
*/
|
|
922
|
+
name: string;
|
|
923
|
+
/**
|
|
924
|
+
* Akeneo API password.
|
|
925
|
+
*/
|
|
926
|
+
password: string;
|
|
927
|
+
type: 'AKENEO_PIM';
|
|
928
|
+
/**
|
|
929
|
+
* Akeneo API username.
|
|
930
|
+
*/
|
|
931
|
+
username: string;
|
|
932
|
+
/**
|
|
933
|
+
* URL used in the Canonical header (if enabled).
|
|
934
|
+
*/
|
|
935
|
+
baseUrlForCanonicalHeader?: string;
|
|
936
|
+
/**
|
|
937
|
+
* Whether to send a Canonical header.
|
|
938
|
+
*/
|
|
939
|
+
includeCanonicalHeader?: boolean;
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
export declare namespace Origins {
|
|
943
|
+
export { type OriginRequest as OriginRequest, type OriginResponse as OriginResponse, type OriginListResponse as OriginListResponse, type OriginCreateParams as OriginCreateParams, type OriginUpdateParams as OriginUpdateParams, };
|
|
944
|
+
}
|
|
945
|
+
//# sourceMappingURL=origins.d.mts.map
|