@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 @@
|
|
|
1
|
+
{"version":3,"file":"url-endpoints.d.ts","sourceRoot":"","sources":["../../src/resources/accounts/url-endpoints.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.URLEndpoints = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
class URLEndpoints extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* **Note:** This API is currently in beta.
|
|
11
|
+
* Creates a new URL‑endpoint and returns the resulting object.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const urlEndpointResponse =
|
|
16
|
+
* await client.accounts.urlEndpoints.create({
|
|
17
|
+
* description: 'My custom URL endpoint',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(body, options) {
|
|
22
|
+
return this._client.post('/v1/accounts/url-endpoints', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* **Note:** This API is currently in beta.
|
|
26
|
+
* Updates the URL‑endpoint identified by `id` and returns the updated object.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const urlEndpointResponse =
|
|
31
|
+
* await client.accounts.urlEndpoints.update('id', {
|
|
32
|
+
* description: 'My custom URL endpoint',
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
update(id, body, options) {
|
|
37
|
+
return this._client.put((0, path_1.path) `/v1/accounts/url-endpoints/${id}`, { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* **Note:** This API is currently in beta.
|
|
41
|
+
* Returns an array of all URL‑endpoints configured including the default
|
|
42
|
+
* URL-endpoint generated by ImageKit during account creation.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const urlEndpointResponses =
|
|
47
|
+
* await client.accounts.urlEndpoints.list();
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
list(options) {
|
|
51
|
+
return this._client.get('/v1/accounts/url-endpoints', options);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* **Note:** This API is currently in beta.
|
|
55
|
+
* Deletes the URL‑endpoint identified by `id`. You cannot delete the default
|
|
56
|
+
* URL‑endpoint created by ImageKit during account creation.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* await client.accounts.urlEndpoints.delete('id');
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
delete(id, options) {
|
|
64
|
+
return this._client.delete((0, path_1.path) `/v1/accounts/url-endpoints/${id}`, {
|
|
65
|
+
...options,
|
|
66
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* **Note:** This API is currently in beta.
|
|
71
|
+
* Retrieves the URL‑endpoint identified by `id`.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const urlEndpointResponse =
|
|
76
|
+
* await client.accounts.urlEndpoints.get('id');
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
get(id, options) {
|
|
80
|
+
return this._client.get((0, path_1.path) `/v1/accounts/url-endpoints/${id}`, options);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.URLEndpoints = URLEndpoints;
|
|
84
|
+
//# sourceMappingURL=url-endpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-endpoints.js","sourceRoot":"","sources":["../../src/resources/accounts/url-endpoints.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,EAAU,EACV,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,8BAA8B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,8BAA8B,EAAE,EAAE,EAAE;YACjE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,EAAU,EAAE,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,8BAA8B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AAlFD,oCAkFC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
export class URLEndpoints extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* **Note:** This API is currently in beta.
|
|
8
|
+
* Creates a new URL‑endpoint and returns the resulting object.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const urlEndpointResponse =
|
|
13
|
+
* await client.accounts.urlEndpoints.create({
|
|
14
|
+
* description: 'My custom URL endpoint',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(body, options) {
|
|
19
|
+
return this._client.post('/v1/accounts/url-endpoints', { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* **Note:** This API is currently in beta.
|
|
23
|
+
* Updates the URL‑endpoint identified by `id` and returns the updated object.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const urlEndpointResponse =
|
|
28
|
+
* await client.accounts.urlEndpoints.update('id', {
|
|
29
|
+
* description: 'My custom URL endpoint',
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
update(id, body, options) {
|
|
34
|
+
return this._client.put(path `/v1/accounts/url-endpoints/${id}`, { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* **Note:** This API is currently in beta.
|
|
38
|
+
* Returns an array of all URL‑endpoints configured including the default
|
|
39
|
+
* URL-endpoint generated by ImageKit during account creation.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const urlEndpointResponses =
|
|
44
|
+
* await client.accounts.urlEndpoints.list();
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
list(options) {
|
|
48
|
+
return this._client.get('/v1/accounts/url-endpoints', options);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* **Note:** This API is currently in beta.
|
|
52
|
+
* Deletes the URL‑endpoint identified by `id`. You cannot delete the default
|
|
53
|
+
* URL‑endpoint created by ImageKit during account creation.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await client.accounts.urlEndpoints.delete('id');
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
delete(id, options) {
|
|
61
|
+
return this._client.delete(path `/v1/accounts/url-endpoints/${id}`, {
|
|
62
|
+
...options,
|
|
63
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* **Note:** This API is currently in beta.
|
|
68
|
+
* Retrieves the URL‑endpoint identified by `id`.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const urlEndpointResponse =
|
|
73
|
+
* await client.accounts.urlEndpoints.get('id');
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
get(id, options) {
|
|
77
|
+
return this._client.get(path `/v1/accounts/url-endpoints/${id}`, options);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=url-endpoints.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-endpoints.mjs","sourceRoot":"","sources":["../../src/resources/accounts/url-endpoints.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,EAAU,EACV,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,8BAA8B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,8BAA8B,EAAE,EAAE,EAAE;YACjE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,EAAU,EAAE,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,8BAA8B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 Usage extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the account usage information between two dates. Note that the API response
|
|
7
|
+
* includes data from the start date while excluding data from the end date. In
|
|
8
|
+
* other words, the data covers the period starting from the specified start date
|
|
9
|
+
* up to, but not including, the end date.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const usage = await client.accounts.usage.get({
|
|
14
|
+
* endDate: '2019-12-27',
|
|
15
|
+
* startDate: '2019-12-27',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
get(query: UsageGetParams, options?: RequestOptions): APIPromise<UsageGetResponse>;
|
|
20
|
+
}
|
|
21
|
+
export interface UsageGetResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Amount of bandwidth used in bytes.
|
|
24
|
+
*/
|
|
25
|
+
bandwidthBytes?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Number of extension units used.
|
|
28
|
+
*/
|
|
29
|
+
extensionUnitsCount?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Storage used by media library in bytes.
|
|
32
|
+
*/
|
|
33
|
+
mediaLibraryStorageBytes?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Storage used by the original cache in bytes.
|
|
36
|
+
*/
|
|
37
|
+
originalCacheStorageBytes?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Number of video processing units used.
|
|
40
|
+
*/
|
|
41
|
+
videoProcessingUnitsCount?: number;
|
|
42
|
+
}
|
|
43
|
+
export interface UsageGetParams {
|
|
44
|
+
/**
|
|
45
|
+
* Specify a `endDate` in `YYYY-MM-DD` format. It should be after the `startDate`.
|
|
46
|
+
* The difference between `startDate` and `endDate` should be less than 90 days.
|
|
47
|
+
*/
|
|
48
|
+
endDate: string;
|
|
49
|
+
/**
|
|
50
|
+
* Specify a `startDate` in `YYYY-MM-DD` format. It should be before the `endDate`.
|
|
51
|
+
* The difference between `startDate` and `endDate` should be less than 90 days.
|
|
52
|
+
*/
|
|
53
|
+
startDate: string;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace Usage {
|
|
56
|
+
export { type UsageGetResponse as UsageGetResponse, type UsageGetParams as UsageGetParams };
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=usage.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../../src/resources/accounts/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGnF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Usage extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the account usage information between two dates. Note that the API response
|
|
7
|
+
* includes data from the start date while excluding data from the end date. In
|
|
8
|
+
* other words, the data covers the period starting from the specified start date
|
|
9
|
+
* up to, but not including, the end date.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const usage = await client.accounts.usage.get({
|
|
14
|
+
* endDate: '2019-12-27',
|
|
15
|
+
* startDate: '2019-12-27',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
get(query: UsageGetParams, options?: RequestOptions): APIPromise<UsageGetResponse>;
|
|
20
|
+
}
|
|
21
|
+
export interface UsageGetResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Amount of bandwidth used in bytes.
|
|
24
|
+
*/
|
|
25
|
+
bandwidthBytes?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Number of extension units used.
|
|
28
|
+
*/
|
|
29
|
+
extensionUnitsCount?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Storage used by media library in bytes.
|
|
32
|
+
*/
|
|
33
|
+
mediaLibraryStorageBytes?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Storage used by the original cache in bytes.
|
|
36
|
+
*/
|
|
37
|
+
originalCacheStorageBytes?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Number of video processing units used.
|
|
40
|
+
*/
|
|
41
|
+
videoProcessingUnitsCount?: number;
|
|
42
|
+
}
|
|
43
|
+
export interface UsageGetParams {
|
|
44
|
+
/**
|
|
45
|
+
* Specify a `endDate` in `YYYY-MM-DD` format. It should be after the `startDate`.
|
|
46
|
+
* The difference between `startDate` and `endDate` should be less than 90 days.
|
|
47
|
+
*/
|
|
48
|
+
endDate: string;
|
|
49
|
+
/**
|
|
50
|
+
* Specify a `startDate` in `YYYY-MM-DD` format. It should be before the `endDate`.
|
|
51
|
+
* The difference between `startDate` and `endDate` should be less than 90 days.
|
|
52
|
+
*/
|
|
53
|
+
startDate: string;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace Usage {
|
|
56
|
+
export { type UsageGetResponse as UsageGetResponse, type UsageGetParams as UsageGetParams };
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=usage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/resources/accounts/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGnF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC;AAED,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Usage = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
class Usage extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get the account usage information between two dates. Note that the API response
|
|
9
|
+
* includes data from the start date while excluding data from the end date. In
|
|
10
|
+
* other words, the data covers the period starting from the specified start date
|
|
11
|
+
* up to, but not including, the end date.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const usage = await client.accounts.usage.get({
|
|
16
|
+
* endDate: '2019-12-27',
|
|
17
|
+
* startDate: '2019-12-27',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
get(query, options) {
|
|
22
|
+
return this._client.get('/v1/accounts/usage', { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.Usage = Usage;
|
|
26
|
+
//# sourceMappingURL=usage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/resources/accounts/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,KAAqB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAlBD,sBAkBC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
export class Usage extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Get the account usage information between two dates. Note that the API response
|
|
6
|
+
* includes data from the start date while excluding data from the end date. In
|
|
7
|
+
* other words, the data covers the period starting from the specified start date
|
|
8
|
+
* up to, but not including, the end date.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const usage = await client.accounts.usage.get({
|
|
13
|
+
* endDate: '2019-12-27',
|
|
14
|
+
* startDate: '2019-12-27',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
get(query, options) {
|
|
19
|
+
return this._client.get('/v1/accounts/usage', { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=usage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/accounts/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,KAAqB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.d.mts","sourceRoot":"","sources":["../src/resources/accounts.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../src/resources/accounts.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./accounts/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../src/resources/accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.mjs","sourceRoot":"","sources":["../src/resources/accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as FilesAPI from "./files/files.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class Assets extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* This API can list all the uploaded files and folders in your ImageKit.io media
|
|
8
|
+
* library. In addition, you can fine-tune your query by specifying various filters
|
|
9
|
+
* by generating a query string in a Lucene-like syntax and provide this generated
|
|
10
|
+
* string as the value of the `searchQuery`.
|
|
11
|
+
*/
|
|
12
|
+
list(query?: AssetListParams | null | undefined, options?: RequestOptions): APIPromise<AssetListResponse>;
|
|
13
|
+
}
|
|
14
|
+
export type AssetListResponse = Array<FilesAPI.File | FilesAPI.Folder>;
|
|
15
|
+
export interface AssetListParams {
|
|
16
|
+
/**
|
|
17
|
+
* Filter results by file type.
|
|
18
|
+
*
|
|
19
|
+
* - `all` — include all file types
|
|
20
|
+
* - `image` — include only image files
|
|
21
|
+
* - `non-image` — include only non-image files (e.g., JS, CSS, video)
|
|
22
|
+
*/
|
|
23
|
+
fileType?: 'all' | 'image' | 'non-image';
|
|
24
|
+
/**
|
|
25
|
+
* The maximum number of results to return in response.
|
|
26
|
+
*/
|
|
27
|
+
limit?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Folder path if you want to limit the search within a specific folder. For
|
|
30
|
+
* example, `/sales-banner/` will only search in folder sales-banner.
|
|
31
|
+
*
|
|
32
|
+
* Note : If your use case involves searching within a folder as well as its
|
|
33
|
+
* subfolders, you can use `path` parameter in `searchQuery` with appropriate
|
|
34
|
+
* operator. Checkout
|
|
35
|
+
* [Supported parameters](/docs/api-reference/digital-asset-management-dam/list-and-search-assets#supported-parameters)
|
|
36
|
+
* for more information.
|
|
37
|
+
*/
|
|
38
|
+
path?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Query string in a Lucene-like query language e.g. `createdAt > "7d"`.
|
|
41
|
+
*
|
|
42
|
+
* Note : When the searchQuery parameter is present, the following query parameters
|
|
43
|
+
* will have no effect on the result:
|
|
44
|
+
*
|
|
45
|
+
* 1. `tags`
|
|
46
|
+
* 2. `type`
|
|
47
|
+
* 3. `name`
|
|
48
|
+
*
|
|
49
|
+
* [Learn more](/docs/api-reference/digital-asset-management-dam/list-and-search-assets#advanced-search-queries)
|
|
50
|
+
* from examples.
|
|
51
|
+
*/
|
|
52
|
+
searchQuery?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The number of results to skip before returning results.
|
|
55
|
+
*/
|
|
56
|
+
skip?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Sort the results by one of the supported fields in ascending or descending
|
|
59
|
+
* order.
|
|
60
|
+
*/
|
|
61
|
+
sort?: 'ASC_NAME' | 'DESC_NAME' | 'ASC_CREATED' | 'DESC_CREATED' | 'ASC_UPDATED' | 'DESC_UPDATED' | 'ASC_HEIGHT' | 'DESC_HEIGHT' | 'ASC_WIDTH' | 'DESC_WIDTH' | 'ASC_SIZE' | 'DESC_SIZE' | 'ASC_RELEVANCE' | 'DESC_RELEVANCE';
|
|
62
|
+
/**
|
|
63
|
+
* Filter results by asset type.
|
|
64
|
+
*
|
|
65
|
+
* - `file` — returns only files
|
|
66
|
+
* - `file-version` — returns specific file versions
|
|
67
|
+
* - `folder` — returns only folders
|
|
68
|
+
* - `all` — returns both files and folders (excludes `file-version`)
|
|
69
|
+
*/
|
|
70
|
+
type?: 'file' | 'file-version' | 'folder' | 'all';
|
|
71
|
+
}
|
|
72
|
+
export declare namespace Assets {
|
|
73
|
+
export { type AssetListResponse as AssetListResponse, type AssetListParams as AssetListParams };
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=assets.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.d.mts","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;OAKG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;CAGjC;AAED,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;AAEvE,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,WAAW,CAAC;IAEzC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,IAAI,CAAC,EACD,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,GACd,aAAa,GACb,cAAc,GACd,YAAY,GACZ,aAAa,GACb,WAAW,GACX,YAAY,GACZ,UAAU,GACV,WAAW,GACX,eAAe,GACf,gBAAgB,CAAC;IAErB;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,QAAQ,GAAG,KAAK,CAAC;CACnD;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACjG"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as FilesAPI from "./files/files.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class Assets extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* This API can list all the uploaded files and folders in your ImageKit.io media
|
|
8
|
+
* library. In addition, you can fine-tune your query by specifying various filters
|
|
9
|
+
* by generating a query string in a Lucene-like syntax and provide this generated
|
|
10
|
+
* string as the value of the `searchQuery`.
|
|
11
|
+
*/
|
|
12
|
+
list(query?: AssetListParams | null | undefined, options?: RequestOptions): APIPromise<AssetListResponse>;
|
|
13
|
+
}
|
|
14
|
+
export type AssetListResponse = Array<FilesAPI.File | FilesAPI.Folder>;
|
|
15
|
+
export interface AssetListParams {
|
|
16
|
+
/**
|
|
17
|
+
* Filter results by file type.
|
|
18
|
+
*
|
|
19
|
+
* - `all` — include all file types
|
|
20
|
+
* - `image` — include only image files
|
|
21
|
+
* - `non-image` — include only non-image files (e.g., JS, CSS, video)
|
|
22
|
+
*/
|
|
23
|
+
fileType?: 'all' | 'image' | 'non-image';
|
|
24
|
+
/**
|
|
25
|
+
* The maximum number of results to return in response.
|
|
26
|
+
*/
|
|
27
|
+
limit?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Folder path if you want to limit the search within a specific folder. For
|
|
30
|
+
* example, `/sales-banner/` will only search in folder sales-banner.
|
|
31
|
+
*
|
|
32
|
+
* Note : If your use case involves searching within a folder as well as its
|
|
33
|
+
* subfolders, you can use `path` parameter in `searchQuery` with appropriate
|
|
34
|
+
* operator. Checkout
|
|
35
|
+
* [Supported parameters](/docs/api-reference/digital-asset-management-dam/list-and-search-assets#supported-parameters)
|
|
36
|
+
* for more information.
|
|
37
|
+
*/
|
|
38
|
+
path?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Query string in a Lucene-like query language e.g. `createdAt > "7d"`.
|
|
41
|
+
*
|
|
42
|
+
* Note : When the searchQuery parameter is present, the following query parameters
|
|
43
|
+
* will have no effect on the result:
|
|
44
|
+
*
|
|
45
|
+
* 1. `tags`
|
|
46
|
+
* 2. `type`
|
|
47
|
+
* 3. `name`
|
|
48
|
+
*
|
|
49
|
+
* [Learn more](/docs/api-reference/digital-asset-management-dam/list-and-search-assets#advanced-search-queries)
|
|
50
|
+
* from examples.
|
|
51
|
+
*/
|
|
52
|
+
searchQuery?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The number of results to skip before returning results.
|
|
55
|
+
*/
|
|
56
|
+
skip?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Sort the results by one of the supported fields in ascending or descending
|
|
59
|
+
* order.
|
|
60
|
+
*/
|
|
61
|
+
sort?: 'ASC_NAME' | 'DESC_NAME' | 'ASC_CREATED' | 'DESC_CREATED' | 'ASC_UPDATED' | 'DESC_UPDATED' | 'ASC_HEIGHT' | 'DESC_HEIGHT' | 'ASC_WIDTH' | 'DESC_WIDTH' | 'ASC_SIZE' | 'DESC_SIZE' | 'ASC_RELEVANCE' | 'DESC_RELEVANCE';
|
|
62
|
+
/**
|
|
63
|
+
* Filter results by asset type.
|
|
64
|
+
*
|
|
65
|
+
* - `file` — returns only files
|
|
66
|
+
* - `file-version` — returns specific file versions
|
|
67
|
+
* - `folder` — returns only folders
|
|
68
|
+
* - `all` — returns both files and folders (excludes `file-version`)
|
|
69
|
+
*/
|
|
70
|
+
type?: 'file' | 'file-version' | 'folder' | 'all';
|
|
71
|
+
}
|
|
72
|
+
export declare namespace Assets {
|
|
73
|
+
export { type AssetListResponse as AssetListResponse, type AssetListParams as AssetListParams };
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;OAKG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;CAGjC;AAED,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;AAEvE,MAAM,WAAW,eAAe;IAC9B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,WAAW,CAAC;IAEzC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,IAAI,CAAC,EACD,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,GACd,aAAa,GACb,cAAc,GACd,YAAY,GACZ,aAAa,GACb,WAAW,GACX,YAAY,GACZ,UAAU,GACV,WAAW,GACX,eAAe,GACf,gBAAgB,CAAC;IAErB;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc,GAAG,QAAQ,GAAG,KAAK,CAAC;CACnD;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACjG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Assets = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Assets extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* This API can list all the uploaded files and folders in your ImageKit.io media
|
|
9
|
+
* library. In addition, you can fine-tune your query by specifying various filters
|
|
10
|
+
* by generating a query string in a Lucene-like syntax and provide this generated
|
|
11
|
+
* string as the value of the `searchQuery`.
|
|
12
|
+
*/
|
|
13
|
+
list(query = {}, options) {
|
|
14
|
+
return this._client.get('/v1/files', { query, ...options });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.Assets = Assets;
|
|
18
|
+
//# sourceMappingURL=assets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.js","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;OAKG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF;AAbD,wBAaC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class Assets extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* This API can list all the uploaded files and folders in your ImageKit.io media
|
|
6
|
+
* library. In addition, you can fine-tune your query by specifying various filters
|
|
7
|
+
* by generating a query string in a Lucene-like syntax and provide this generated
|
|
8
|
+
* string as the value of the `searchQuery`.
|
|
9
|
+
*/
|
|
10
|
+
list(query = {}, options) {
|
|
11
|
+
return this._client.get('/v1/files', { query, ...options });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=assets.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.mjs","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;OAKG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as V2API from "./v2/v2.mjs";
|
|
3
|
+
import { V2 } from "./v2/v2.mjs";
|
|
4
|
+
export declare class Beta extends APIResource {
|
|
5
|
+
v2: V2API.V2;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Beta {
|
|
8
|
+
export { V2 as V2 };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=beta.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beta.d.mts","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;AAEb,qBAAa,IAAK,SAAQ,WAAW;IACnC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC;CACrB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as V2API from "./v2/v2.js";
|
|
3
|
+
import { V2 } from "./v2/v2.js";
|
|
4
|
+
export declare class Beta extends APIResource {
|
|
5
|
+
v2: V2API.V2;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Beta {
|
|
8
|
+
export { V2 as V2 };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=beta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beta.d.ts","sourceRoot":"","sources":["../../src/resources/beta/beta.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;AAEb,qBAAa,IAAK,SAAQ,WAAW;IACnC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC;CACrB"}
|