@imagekit/api-mcp 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +351 -0
- package/code-tool-paths.cjs +6 -0
- package/code-tool-paths.cjs.map +1 -0
- package/code-tool-paths.d.cts +2 -0
- package/code-tool-paths.d.cts.map +1 -0
- package/code-tool-types.d.mts +14 -0
- package/code-tool-types.d.mts.map +1 -0
- package/code-tool-types.d.ts +14 -0
- package/code-tool-types.d.ts.map +1 -0
- package/code-tool-types.js +4 -0
- package/code-tool-types.js.map +1 -0
- package/code-tool-types.mjs +3 -0
- package/code-tool-types.mjs.map +1 -0
- package/code-tool-worker.d.mts +5 -0
- package/code-tool-worker.d.mts.map +1 -0
- package/code-tool-worker.d.ts +5 -0
- package/code-tool-worker.d.ts.map +1 -0
- package/code-tool-worker.js +45 -0
- package/code-tool-worker.js.map +1 -0
- package/code-tool-worker.mjs +40 -0
- package/code-tool-worker.mjs.map +1 -0
- package/code-tool.d.mts +12 -0
- package/code-tool.d.mts.map +1 -0
- package/code-tool.d.ts +12 -0
- package/code-tool.d.ts.map +1 -0
- package/code-tool.js +159 -0
- package/code-tool.js.map +1 -0
- package/code-tool.mjs +123 -0
- package/code-tool.mjs.map +1 -0
- package/compat.d.mts +58 -0
- package/compat.d.mts.map +1 -0
- package/compat.d.ts +58 -0
- package/compat.d.ts.map +1 -0
- package/compat.js +387 -0
- package/compat.js.map +1 -0
- package/compat.mjs +378 -0
- package/compat.mjs.map +1 -0
- package/docs-search-tool.d.mts +44 -0
- package/docs-search-tool.d.mts.map +1 -0
- package/docs-search-tool.d.ts +44 -0
- package/docs-search-tool.d.ts.map +1 -0
- package/docs-search-tool.js +43 -0
- package/docs-search-tool.js.map +1 -0
- package/docs-search-tool.mjs +39 -0
- package/docs-search-tool.mjs.map +1 -0
- package/dynamic-tools.d.mts +12 -0
- package/dynamic-tools.d.mts.map +1 -0
- package/dynamic-tools.d.ts +12 -0
- package/dynamic-tools.d.ts.map +1 -0
- package/dynamic-tools.js +135 -0
- package/dynamic-tools.js.map +1 -0
- package/dynamic-tools.mjs +132 -0
- package/dynamic-tools.mjs.map +1 -0
- package/filtering.d.mts +2 -0
- package/filtering.d.mts.map +1 -0
- package/filtering.d.ts +2 -0
- package/filtering.d.ts.map +1 -0
- package/filtering.js +20 -0
- package/filtering.js.map +1 -0
- package/filtering.mjs +13 -0
- package/filtering.mjs.map +1 -0
- package/headers.d.mts +4 -0
- package/headers.d.mts.map +1 -0
- package/headers.d.ts +4 -0
- package/headers.d.ts.map +1 -0
- package/headers.js +29 -0
- package/headers.js.map +1 -0
- package/headers.mjs +25 -0
- package/headers.mjs.map +1 -0
- package/http.d.mts +9 -0
- package/http.d.mts.map +1 -0
- package/http.d.ts +9 -0
- package/http.d.ts.map +1 -0
- package/http.js +108 -0
- package/http.js.map +1 -0
- package/http.mjs +100 -0
- package/http.mjs.map +1 -0
- package/index.d.mts +3 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -0
- package/index.js +91 -0
- package/index.js.map +1 -0
- package/index.mjs +89 -0
- package/index.mjs.map +1 -0
- package/options.d.mts +20 -0
- package/options.d.mts.map +1 -0
- package/options.d.ts +20 -0
- package/options.d.ts.map +1 -0
- package/options.js +424 -0
- package/options.js.map +1 -0
- package/options.mjs +417 -0
- package/options.mjs.map +1 -0
- package/package.json +216 -0
- package/server.d.mts +35 -0
- package/server.d.mts.map +1 -0
- package/server.d.ts +35 -0
- package/server.d.ts.map +1 -0
- package/server.js +174 -0
- package/server.js.map +1 -0
- package/server.mjs +160 -0
- package/server.mjs.map +1 -0
- package/src/code-tool-paths.cts +3 -0
- package/src/code-tool-types.ts +14 -0
- package/src/code-tool-worker.ts +46 -0
- package/src/code-tool.ts +148 -0
- package/src/compat.ts +483 -0
- package/src/docs-search-tool.ts +48 -0
- package/src/dynamic-tools.ts +153 -0
- package/src/filtering.ts +14 -0
- package/src/headers.ts +31 -0
- package/src/http.ts +127 -0
- package/src/index.ts +108 -0
- package/src/options.ts +466 -0
- package/src/server.ts +207 -0
- package/src/stdio.ts +13 -0
- package/src/tools/accounts/origins/create-accounts-origins.ts +318 -0
- package/src/tools/accounts/origins/delete-accounts-origins.ts +43 -0
- package/src/tools/accounts/origins/get-accounts-origins.ts +41 -0
- package/src/tools/accounts/origins/list-accounts-origins.ts +35 -0
- package/src/tools/accounts/origins/update-accounts-origins.ts +360 -0
- package/src/tools/accounts/url-endpoints/create-accounts-url-endpoints.ts +103 -0
- package/src/tools/accounts/url-endpoints/delete-accounts-url-endpoints.ts +43 -0
- package/src/tools/accounts/url-endpoints/get-accounts-url-endpoints.ts +49 -0
- package/src/tools/accounts/url-endpoints/list-accounts-url-endpoints.ts +44 -0
- package/src/tools/accounts/url-endpoints/update-accounts-url-endpoints.ts +112 -0
- package/src/tools/accounts/usage/get-accounts-usage.ts +56 -0
- package/src/tools/assets/list-assets.ts +94 -0
- package/src/tools/beta/v2/files/upload-v2-beta-files.ts +316 -0
- package/src/tools/cache/invalidation/create-cache-invalidation.ts +46 -0
- package/src/tools/cache/invalidation/get-cache-invalidation.ts +47 -0
- package/src/tools/custom-metadata-fields/create-custom-metadata-fields.ts +154 -0
- package/src/tools/custom-metadata-fields/delete-custom-metadata-fields.ts +47 -0
- package/src/tools/custom-metadata-fields/list-custom-metadata-fields.ts +53 -0
- package/src/tools/custom-metadata-fields/update-custom-metadata-fields.ts +150 -0
- package/src/tools/files/bulk/add-tags-files-bulk.ts +56 -0
- package/src/tools/files/bulk/delete-files-bulk.ts +49 -0
- package/src/tools/files/bulk/remove-ai-tags-files-bulk.ts +56 -0
- package/src/tools/files/bulk/remove-tags-files-bulk.ts +56 -0
- package/src/tools/files/copy-files.ts +55 -0
- package/src/tools/files/delete-files.ts +41 -0
- package/src/tools/files/get-files.ts +47 -0
- package/src/tools/files/metadata/get-files-metadata.ts +47 -0
- package/src/tools/files/metadata/get-from-url-files-metadata.ts +48 -0
- package/src/tools/files/move-files.ts +50 -0
- package/src/tools/files/rename-files.ts +58 -0
- package/src/tools/files/update-files.ts +196 -0
- package/src/tools/files/upload-files.ts +332 -0
- package/src/tools/files/versions/delete-files-versions.ts +52 -0
- package/src/tools/files/versions/get-files-versions.ts +50 -0
- package/src/tools/files/versions/list-files-versions.ts +47 -0
- package/src/tools/files/versions/restore-files-versions.ts +52 -0
- package/src/tools/folders/copy-folders.ts +55 -0
- package/src/tools/folders/create-folders.ts +52 -0
- package/src/tools/folders/delete-folders.ts +48 -0
- package/src/tools/folders/job/get-folders-job.ts +47 -0
- package/src/tools/folders/move-folders.ts +50 -0
- package/src/tools/folders/rename-folders.ts +56 -0
- package/src/tools/index.ts +153 -0
- package/src/tools/types.ts +103 -0
- package/src/tools.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/stdio.d.mts +3 -0
- package/stdio.d.mts.map +1 -0
- package/stdio.d.ts +3 -0
- package/stdio.d.ts.map +1 -0
- package/stdio.js +14 -0
- package/stdio.js.map +1 -0
- package/stdio.mjs +10 -0
- package/stdio.mjs.map +1 -0
- package/tools/accounts/origins/create-accounts-origins.d.mts +45 -0
- package/tools/accounts/origins/create-accounts-origins.d.mts.map +1 -0
- package/tools/accounts/origins/create-accounts-origins.d.ts +45 -0
- package/tools/accounts/origins/create-accounts-origins.d.ts.map +1 -0
- package/tools/accounts/origins/create-accounts-origins.js +314 -0
- package/tools/accounts/origins/create-accounts-origins.js.map +1 -0
- package/tools/accounts/origins/create-accounts-origins.mjs +310 -0
- package/tools/accounts/origins/create-accounts-origins.mjs.map +1 -0
- package/tools/accounts/origins/delete-accounts-origins.d.mts +45 -0
- package/tools/accounts/origins/delete-accounts-origins.d.mts.map +1 -0
- package/tools/accounts/origins/delete-accounts-origins.d.ts +45 -0
- package/tools/accounts/origins/delete-accounts-origins.d.ts.map +1 -0
- package/tools/accounts/origins/delete-accounts-origins.js +38 -0
- package/tools/accounts/origins/delete-accounts-origins.js.map +1 -0
- package/tools/accounts/origins/delete-accounts-origins.mjs +34 -0
- package/tools/accounts/origins/delete-accounts-origins.mjs.map +1 -0
- package/tools/accounts/origins/get-accounts-origins.d.mts +45 -0
- package/tools/accounts/origins/get-accounts-origins.d.mts.map +1 -0
- package/tools/accounts/origins/get-accounts-origins.d.ts +45 -0
- package/tools/accounts/origins/get-accounts-origins.d.ts.map +1 -0
- package/tools/accounts/origins/get-accounts-origins.js +37 -0
- package/tools/accounts/origins/get-accounts-origins.js.map +1 -0
- package/tools/accounts/origins/get-accounts-origins.mjs +33 -0
- package/tools/accounts/origins/get-accounts-origins.mjs.map +1 -0
- package/tools/accounts/origins/list-accounts-origins.d.mts +45 -0
- package/tools/accounts/origins/list-accounts-origins.d.mts.map +1 -0
- package/tools/accounts/origins/list-accounts-origins.d.ts +45 -0
- package/tools/accounts/origins/list-accounts-origins.d.ts.map +1 -0
- package/tools/accounts/origins/list-accounts-origins.js +31 -0
- package/tools/accounts/origins/list-accounts-origins.js.map +1 -0
- package/tools/accounts/origins/list-accounts-origins.mjs +27 -0
- package/tools/accounts/origins/list-accounts-origins.mjs.map +1 -0
- package/tools/accounts/origins/update-accounts-origins.d.mts +45 -0
- package/tools/accounts/origins/update-accounts-origins.d.mts.map +1 -0
- package/tools/accounts/origins/update-accounts-origins.d.ts +45 -0
- package/tools/accounts/origins/update-accounts-origins.d.ts.map +1 -0
- package/tools/accounts/origins/update-accounts-origins.js +348 -0
- package/tools/accounts/origins/update-accounts-origins.js.map +1 -0
- package/tools/accounts/origins/update-accounts-origins.mjs +344 -0
- package/tools/accounts/origins/update-accounts-origins.mjs.map +1 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.mts +45 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.mts.map +1 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.ts +45 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.ts.map +1 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.js +95 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.js.map +1 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.mjs +91 -0
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.mjs.map +1 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.mts +45 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.mts.map +1 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.ts +45 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.ts.map +1 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.js +38 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.js.map +1 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.mjs +34 -0
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.mjs.map +1 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.mts +45 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.mts.map +1 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.ts +45 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.ts.map +1 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.js +43 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.js.map +1 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.mjs +39 -0
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.mjs.map +1 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.mts +45 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.mts.map +1 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.ts +45 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.ts.map +1 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.js +39 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.js.map +1 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.mjs +35 -0
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.mjs.map +1 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.mts +45 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.mts.map +1 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.ts +45 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.ts.map +1 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.js +101 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.js.map +1 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.mjs +97 -0
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.mjs.map +1 -0
- package/tools/accounts/usage/get-accounts-usage.d.mts +45 -0
- package/tools/accounts/usage/get-accounts-usage.d.mts.map +1 -0
- package/tools/accounts/usage/get-accounts-usage.d.ts +45 -0
- package/tools/accounts/usage/get-accounts-usage.d.ts.map +1 -0
- package/tools/accounts/usage/get-accounts-usage.js +49 -0
- package/tools/accounts/usage/get-accounts-usage.js.map +1 -0
- package/tools/accounts/usage/get-accounts-usage.mjs +45 -0
- package/tools/accounts/usage/get-accounts-usage.mjs.map +1 -0
- package/tools/assets/list-assets.d.mts +45 -0
- package/tools/assets/list-assets.d.mts.map +1 -0
- package/tools/assets/list-assets.d.ts +45 -0
- package/tools/assets/list-assets.d.ts.map +1 -0
- package/tools/assets/list-assets.js +85 -0
- package/tools/assets/list-assets.js.map +1 -0
- package/tools/assets/list-assets.mjs +81 -0
- package/tools/assets/list-assets.mjs.map +1 -0
- package/tools/beta/v2/files/upload-v2-beta-files.d.mts +45 -0
- package/tools/beta/v2/files/upload-v2-beta-files.d.mts.map +1 -0
- package/tools/beta/v2/files/upload-v2-beta-files.d.ts +45 -0
- package/tools/beta/v2/files/upload-v2-beta-files.d.ts.map +1 -0
- package/tools/beta/v2/files/upload-v2-beta-files.js +286 -0
- package/tools/beta/v2/files/upload-v2-beta-files.js.map +1 -0
- package/tools/beta/v2/files/upload-v2-beta-files.mjs +282 -0
- package/tools/beta/v2/files/upload-v2-beta-files.mjs.map +1 -0
- package/tools/cache/invalidation/create-cache-invalidation.d.mts +45 -0
- package/tools/cache/invalidation/create-cache-invalidation.d.mts.map +1 -0
- package/tools/cache/invalidation/create-cache-invalidation.d.ts +45 -0
- package/tools/cache/invalidation/create-cache-invalidation.d.ts.map +1 -0
- package/tools/cache/invalidation/create-cache-invalidation.js +41 -0
- package/tools/cache/invalidation/create-cache-invalidation.js.map +1 -0
- package/tools/cache/invalidation/create-cache-invalidation.mjs +37 -0
- package/tools/cache/invalidation/create-cache-invalidation.mjs.map +1 -0
- package/tools/cache/invalidation/get-cache-invalidation.d.mts +45 -0
- package/tools/cache/invalidation/get-cache-invalidation.d.mts.map +1 -0
- package/tools/cache/invalidation/get-cache-invalidation.d.ts +45 -0
- package/tools/cache/invalidation/get-cache-invalidation.d.ts.map +1 -0
- package/tools/cache/invalidation/get-cache-invalidation.js +42 -0
- package/tools/cache/invalidation/get-cache-invalidation.js.map +1 -0
- package/tools/cache/invalidation/get-cache-invalidation.mjs +38 -0
- package/tools/cache/invalidation/get-cache-invalidation.mjs.map +1 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.mts +45 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.mts.map +1 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.ts +45 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.ts.map +1 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.js +139 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.js.map +1 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.mjs +135 -0
- package/tools/custom-metadata-fields/create-custom-metadata-fields.mjs.map +1 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.mts +45 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.mts.map +1 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.ts +45 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.ts.map +1 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.js +42 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.js.map +1 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.mjs +38 -0
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.mjs.map +1 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.mts +45 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.mts.map +1 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.ts +45 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.ts.map +1 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.js +47 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.js.map +1 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.mjs +43 -0
- package/tools/custom-metadata-fields/list-custom-metadata-fields.mjs.map +1 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.mts +45 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.mts.map +1 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.ts +45 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.ts.map +1 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.js +133 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.js.map +1 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.mjs +129 -0
- package/tools/custom-metadata-fields/update-custom-metadata-fields.mjs.map +1 -0
- package/tools/files/bulk/add-tags-files-bulk.d.mts +45 -0
- package/tools/files/bulk/add-tags-files-bulk.d.mts.map +1 -0
- package/tools/files/bulk/add-tags-files-bulk.d.ts +45 -0
- package/tools/files/bulk/add-tags-files-bulk.d.ts.map +1 -0
- package/tools/files/bulk/add-tags-files-bulk.js +51 -0
- package/tools/files/bulk/add-tags-files-bulk.js.map +1 -0
- package/tools/files/bulk/add-tags-files-bulk.mjs +47 -0
- package/tools/files/bulk/add-tags-files-bulk.mjs.map +1 -0
- package/tools/files/bulk/delete-files-bulk.d.mts +45 -0
- package/tools/files/bulk/delete-files-bulk.d.mts.map +1 -0
- package/tools/files/bulk/delete-files-bulk.d.ts +45 -0
- package/tools/files/bulk/delete-files-bulk.d.ts.map +1 -0
- package/tools/files/bulk/delete-files-bulk.js +44 -0
- package/tools/files/bulk/delete-files-bulk.js.map +1 -0
- package/tools/files/bulk/delete-files-bulk.mjs +40 -0
- package/tools/files/bulk/delete-files-bulk.mjs.map +1 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.mts +45 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.mts.map +1 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.ts +45 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.ts.map +1 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.js +51 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.js.map +1 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.mjs +47 -0
- package/tools/files/bulk/remove-ai-tags-files-bulk.mjs.map +1 -0
- package/tools/files/bulk/remove-tags-files-bulk.d.mts +45 -0
- package/tools/files/bulk/remove-tags-files-bulk.d.mts.map +1 -0
- package/tools/files/bulk/remove-tags-files-bulk.d.ts +45 -0
- package/tools/files/bulk/remove-tags-files-bulk.d.ts.map +1 -0
- package/tools/files/bulk/remove-tags-files-bulk.js +51 -0
- package/tools/files/bulk/remove-tags-files-bulk.js.map +1 -0
- package/tools/files/bulk/remove-tags-files-bulk.mjs +47 -0
- package/tools/files/bulk/remove-tags-files-bulk.mjs.map +1 -0
- package/tools/files/copy-files.d.mts +45 -0
- package/tools/files/copy-files.d.mts.map +1 -0
- package/tools/files/copy-files.d.ts +45 -0
- package/tools/files/copy-files.d.ts.map +1 -0
- package/tools/files/copy-files.js +49 -0
- package/tools/files/copy-files.js.map +1 -0
- package/tools/files/copy-files.mjs +45 -0
- package/tools/files/copy-files.mjs.map +1 -0
- package/tools/files/delete-files.d.mts +45 -0
- package/tools/files/delete-files.d.mts.map +1 -0
- package/tools/files/delete-files.d.ts +45 -0
- package/tools/files/delete-files.d.ts.map +1 -0
- package/tools/files/delete-files.js +37 -0
- package/tools/files/delete-files.js.map +1 -0
- package/tools/files/delete-files.mjs +33 -0
- package/tools/files/delete-files.mjs.map +1 -0
- package/tools/files/get-files.d.mts +45 -0
- package/tools/files/get-files.d.mts.map +1 -0
- package/tools/files/get-files.d.ts +45 -0
- package/tools/files/get-files.d.ts.map +1 -0
- package/tools/files/get-files.js +42 -0
- package/tools/files/get-files.js.map +1 -0
- package/tools/files/get-files.mjs +38 -0
- package/tools/files/get-files.mjs.map +1 -0
- package/tools/files/metadata/get-files-metadata.d.mts +45 -0
- package/tools/files/metadata/get-files-metadata.d.mts.map +1 -0
- package/tools/files/metadata/get-files-metadata.d.ts +45 -0
- package/tools/files/metadata/get-files-metadata.d.ts.map +1 -0
- package/tools/files/metadata/get-files-metadata.js +42 -0
- package/tools/files/metadata/get-files-metadata.js.map +1 -0
- package/tools/files/metadata/get-files-metadata.mjs +38 -0
- package/tools/files/metadata/get-files-metadata.mjs.map +1 -0
- package/tools/files/metadata/get-from-url-files-metadata.d.mts +45 -0
- package/tools/files/metadata/get-from-url-files-metadata.d.mts.map +1 -0
- package/tools/files/metadata/get-from-url-files-metadata.d.ts +45 -0
- package/tools/files/metadata/get-from-url-files-metadata.d.ts.map +1 -0
- package/tools/files/metadata/get-from-url-files-metadata.js +43 -0
- package/tools/files/metadata/get-from-url-files-metadata.js.map +1 -0
- package/tools/files/metadata/get-from-url-files-metadata.mjs +39 -0
- package/tools/files/metadata/get-from-url-files-metadata.mjs.map +1 -0
- package/tools/files/move-files.d.mts +45 -0
- package/tools/files/move-files.d.mts.map +1 -0
- package/tools/files/move-files.d.ts +45 -0
- package/tools/files/move-files.d.ts.map +1 -0
- package/tools/files/move-files.js +45 -0
- package/tools/files/move-files.js.map +1 -0
- package/tools/files/move-files.mjs +41 -0
- package/tools/files/move-files.mjs.map +1 -0
- package/tools/files/rename-files.d.mts +45 -0
- package/tools/files/rename-files.d.mts.map +1 -0
- package/tools/files/rename-files.d.ts +45 -0
- package/tools/files/rename-files.d.ts.map +1 -0
- package/tools/files/rename-files.js +51 -0
- package/tools/files/rename-files.js.map +1 -0
- package/tools/files/rename-files.mjs +47 -0
- package/tools/files/rename-files.mjs.map +1 -0
- package/tools/files/update-files.d.mts +45 -0
- package/tools/files/update-files.d.mts.map +1 -0
- package/tools/files/update-files.d.ts +45 -0
- package/tools/files/update-files.d.ts.map +1 -0
- package/tools/files/update-files.js +181 -0
- package/tools/files/update-files.js.map +1 -0
- package/tools/files/update-files.mjs +177 -0
- package/tools/files/update-files.mjs.map +1 -0
- package/tools/files/upload-files.d.mts +45 -0
- package/tools/files/upload-files.d.mts.map +1 -0
- package/tools/files/upload-files.d.ts +45 -0
- package/tools/files/upload-files.d.ts.map +1 -0
- package/tools/files/upload-files.js +298 -0
- package/tools/files/upload-files.js.map +1 -0
- package/tools/files/upload-files.mjs +294 -0
- package/tools/files/upload-files.mjs.map +1 -0
- package/tools/files/versions/delete-files-versions.d.mts +45 -0
- package/tools/files/versions/delete-files-versions.d.mts.map +1 -0
- package/tools/files/versions/delete-files-versions.d.ts +45 -0
- package/tools/files/versions/delete-files-versions.d.ts.map +1 -0
- package/tools/files/versions/delete-files-versions.js +45 -0
- package/tools/files/versions/delete-files-versions.js.map +1 -0
- package/tools/files/versions/delete-files-versions.mjs +41 -0
- package/tools/files/versions/delete-files-versions.mjs.map +1 -0
- package/tools/files/versions/get-files-versions.d.mts +45 -0
- package/tools/files/versions/get-files-versions.d.mts.map +1 -0
- package/tools/files/versions/get-files-versions.d.ts +45 -0
- package/tools/files/versions/get-files-versions.d.ts.map +1 -0
- package/tools/files/versions/get-files-versions.js +45 -0
- package/tools/files/versions/get-files-versions.js.map +1 -0
- package/tools/files/versions/get-files-versions.mjs +41 -0
- package/tools/files/versions/get-files-versions.mjs.map +1 -0
- package/tools/files/versions/list-files-versions.d.mts +45 -0
- package/tools/files/versions/list-files-versions.d.mts.map +1 -0
- package/tools/files/versions/list-files-versions.d.ts +45 -0
- package/tools/files/versions/list-files-versions.d.ts.map +1 -0
- package/tools/files/versions/list-files-versions.js +42 -0
- package/tools/files/versions/list-files-versions.js.map +1 -0
- package/tools/files/versions/list-files-versions.mjs +38 -0
- package/tools/files/versions/list-files-versions.mjs.map +1 -0
- package/tools/files/versions/restore-files-versions.d.mts +45 -0
- package/tools/files/versions/restore-files-versions.d.mts.map +1 -0
- package/tools/files/versions/restore-files-versions.d.ts +45 -0
- package/tools/files/versions/restore-files-versions.d.ts.map +1 -0
- package/tools/files/versions/restore-files-versions.js +45 -0
- package/tools/files/versions/restore-files-versions.js.map +1 -0
- package/tools/files/versions/restore-files-versions.mjs +41 -0
- package/tools/files/versions/restore-files-versions.mjs.map +1 -0
- package/tools/folders/copy-folders.d.mts +45 -0
- package/tools/folders/copy-folders.d.mts.map +1 -0
- package/tools/folders/copy-folders.d.ts +45 -0
- package/tools/folders/copy-folders.d.ts.map +1 -0
- package/tools/folders/copy-folders.js +49 -0
- package/tools/folders/copy-folders.js.map +1 -0
- package/tools/folders/copy-folders.mjs +45 -0
- package/tools/folders/copy-folders.mjs.map +1 -0
- package/tools/folders/create-folders.d.mts +45 -0
- package/tools/folders/create-folders.d.mts.map +1 -0
- package/tools/folders/create-folders.d.ts +45 -0
- package/tools/folders/create-folders.d.ts.map +1 -0
- package/tools/folders/create-folders.js +45 -0
- package/tools/folders/create-folders.js.map +1 -0
- package/tools/folders/create-folders.mjs +41 -0
- package/tools/folders/create-folders.mjs.map +1 -0
- package/tools/folders/delete-folders.d.mts +45 -0
- package/tools/folders/delete-folders.d.mts.map +1 -0
- package/tools/folders/delete-folders.d.ts +45 -0
- package/tools/folders/delete-folders.d.ts.map +1 -0
- package/tools/folders/delete-folders.js +43 -0
- package/tools/folders/delete-folders.js.map +1 -0
- package/tools/folders/delete-folders.mjs +39 -0
- package/tools/folders/delete-folders.mjs.map +1 -0
- package/tools/folders/job/get-folders-job.d.mts +45 -0
- package/tools/folders/job/get-folders-job.d.mts.map +1 -0
- package/tools/folders/job/get-folders-job.d.ts +45 -0
- package/tools/folders/job/get-folders-job.d.ts.map +1 -0
- package/tools/folders/job/get-folders-job.js +42 -0
- package/tools/folders/job/get-folders-job.js.map +1 -0
- package/tools/folders/job/get-folders-job.mjs +38 -0
- package/tools/folders/job/get-folders-job.mjs.map +1 -0
- package/tools/folders/move-folders.d.mts +45 -0
- package/tools/folders/move-folders.d.mts.map +1 -0
- package/tools/folders/move-folders.d.ts +45 -0
- package/tools/folders/move-folders.d.ts.map +1 -0
- package/tools/folders/move-folders.js +45 -0
- package/tools/folders/move-folders.js.map +1 -0
- package/tools/folders/move-folders.mjs +41 -0
- package/tools/folders/move-folders.mjs.map +1 -0
- package/tools/folders/rename-folders.d.mts +45 -0
- package/tools/folders/rename-folders.d.mts.map +1 -0
- package/tools/folders/rename-folders.d.ts +45 -0
- package/tools/folders/rename-folders.d.ts.map +1 -0
- package/tools/folders/rename-folders.js +49 -0
- package/tools/folders/rename-folders.js.map +1 -0
- package/tools/folders/rename-folders.mjs +45 -0
- package/tools/folders/rename-folders.mjs.map +1 -0
- package/tools/index.d.mts +10 -0
- package/tools/index.d.mts.map +1 -0
- package/tools/index.d.ts +10 -0
- package/tools/index.d.ts.map +1 -0
- package/tools/index.js +137 -0
- package/tools/index.js.map +1 -0
- package/tools/index.mjs +130 -0
- package/tools/index.mjs.map +1 -0
- package/tools/types.d.mts +51 -0
- package/tools/types.d.mts.map +1 -0
- package/tools/types.d.ts +51 -0
- package/tools/types.d.ts.map +1 -0
- package/tools/types.js +46 -0
- package/tools/types.js.map +1 -0
- package/tools/types.mjs +42 -0
- package/tools/types.mjs.map +1 -0
- package/tools.d.mts +2 -0
- package/tools.d.mts.map +1 -0
- package/tools.d.ts +2 -0
- package/tools.d.ts.map +1 -0
- package/tools.js +18 -0
- package/tools.js.map +1 -0
- package/tools.mjs +2 -0
- package/tools.mjs.map +1 -0
|
@@ -0,0 +1,85 @@
|
|
|
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.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
const filtering_1 = require("@imagekit/api-mcp/filtering");
|
|
6
|
+
const types_1 = require("@imagekit/api-mcp/tools/types");
|
|
7
|
+
exports.metadata = {
|
|
8
|
+
resource: 'assets',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
httpMethod: 'get',
|
|
12
|
+
httpPath: '/v1/files',
|
|
13
|
+
operationId: 'list-and-search-assets',
|
|
14
|
+
};
|
|
15
|
+
exports.tool = {
|
|
16
|
+
name: 'list_assets',
|
|
17
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nThis API can list all the uploaded files and folders in your ImageKit.io media library. In addition, you can fine-tune your query by specifying various filters by generating a query string in a Lucene-like syntax and provide this generated string as the value of the `searchQuery`.\n\n\n# Response Schema\n```json\n{\n type: 'array',\n items: {\n anyOf: [ {\n $ref: '#/$defs/file'\n },\n {\n $ref: '#/$defs/folder'\n }\n ],\n description: 'Object containing details of a file or file version.'\n },\n $defs: {\n file: {\n type: 'object',\n title: 'File & File Version',\n description: 'Object containing details of a file or file version.',\n properties: {\n AITags: {\n type: 'array',\n description: 'An array of tags assigned to the file by auto tagging.\\n',\n items: {\n type: 'object',\n properties: {\n confidence: {\n type: 'number',\n description: 'Confidence score of the tag.'\n },\n name: {\n type: 'string',\n description: 'Name of the tag.'\n },\n source: {\n type: 'string',\n description: 'Source of the tag. Possible values are `google-auto-tagging` and `aws-auto-tagging`.'\n }\n }\n }\n },\n createdAt: {\n type: 'string',\n description: 'Date and time when the file was uploaded. The date and time is in ISO8601 format.\\n',\n format: 'date-time'\n },\n customCoordinates: {\n type: 'string',\n description: 'An string with custom coordinates of the file.\\n'\n },\n customMetadata: {\n type: 'object',\n description: 'An object with custom metadata for the file.\\n',\n additionalProperties: true\n },\n description: {\n type: 'string',\n description: 'Optional text to describe the contents of the file. Can be set by the user or the ai-auto-description extension.\\n'\n },\n fileId: {\n type: 'string',\n description: 'Unique identifier of the asset.'\n },\n filePath: {\n type: 'string',\n description: 'Path of the file. This is the path you would use in the URL to access the file. For example, if the file is at the root of the media library, the path will be `/file.jpg`. If the file is inside a folder named `images`, the path will be `/images/file.jpg`.\\n'\n },\n fileType: {\n type: 'string',\n description: 'Type of the file. Possible values are `image`, `non-image`.\\n'\n },\n hasAlpha: {\n type: 'boolean',\n description: 'Specifies if the image has an alpha channel.\\n'\n },\n height: {\n type: 'number',\n description: 'Height of the file.\\n'\n },\n isPrivateFile: {\n type: 'boolean',\n description: 'Specifies if the file is private or not.\\n'\n },\n isPublished: {\n type: 'boolean',\n description: 'Specifies if the file is published or not.\\n'\n },\n mime: {\n type: 'string',\n description: 'MIME type of the file.\\n'\n },\n name: {\n type: 'string',\n description: 'Name of the asset.'\n },\n selectedFieldsSchema: {\n type: 'object',\n description: 'This field is included in the response only if the Path policy feature is available in the plan.\\nIt contains schema definitions for the custom metadata fields selected for the specified file path.\\nField selection can only be done when the Path policy feature is enabled.\\n\\nKeys are the names of the custom metadata fields; the value object has details about the custom metadata schema.\\n',\n additionalProperties: true\n },\n size: {\n type: 'number',\n description: 'Size of the file in bytes.\\n'\n },\n tags: {\n type: 'array',\n description: 'An array of tags assigned to the file. Tags are used to search files in the media library.\\n',\n items: {\n type: 'string'\n }\n },\n thumbnail: {\n type: 'string',\n description: 'URL of the thumbnail image. This URL is used to access the thumbnail image of the file in the media library.\\n'\n },\n type: {\n type: 'string',\n description: 'Type of the asset.',\n enum: [ 'file',\n 'file-version'\n ]\n },\n updatedAt: {\n type: 'string',\n description: 'Date and time when the file was last updated. The date and time is in ISO8601 format.\\n',\n format: 'date-time'\n },\n url: {\n type: 'string',\n description: 'URL of the file.\\n'\n },\n versionInfo: {\n type: 'object',\n description: 'An object with details of the file version.\\n',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier of the file version.'\n },\n name: {\n type: 'string',\n description: 'Name of the file version.'\n }\n }\n },\n width: {\n type: 'number',\n description: 'Width of the file.\\n'\n }\n }\n },\n folder: {\n type: 'object',\n title: 'Folder',\n properties: {\n createdAt: {\n type: 'string',\n description: 'Date and time when the folder was created. The date and time is in ISO8601 format.\\n',\n format: 'date-time'\n },\n folderId: {\n type: 'string',\n description: 'Unique identifier of the asset.'\n },\n folderPath: {\n type: 'string',\n description: 'Path of the folder. This is the path you would use in the URL to access the folder. For example, if the folder is at the root of the media library, the path will be /folder. If the folder is inside another folder named images, the path will be /images/folder.\\n'\n },\n name: {\n type: 'string',\n description: 'Name of the asset.'\n },\n type: {\n type: 'string',\n description: 'Type of the asset.',\n enum: [ 'folder'\n ]\n },\n updatedAt: {\n type: 'string',\n description: 'Date and time when the folder was last updated. The date and time is in ISO8601 format.\\n',\n format: 'date-time'\n }\n }\n }\n }\n}\n```",
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
fileType: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'Filter results by file type.\n\n- `all` — include all file types \n- `image` — include only image files \n- `non-image` — include only non-image files (e.g., JS, CSS, video)',
|
|
24
|
+
enum: ['all', 'image', 'non-image'],
|
|
25
|
+
},
|
|
26
|
+
limit: {
|
|
27
|
+
type: 'integer',
|
|
28
|
+
description: 'The maximum number of results to return in response.\n',
|
|
29
|
+
},
|
|
30
|
+
path: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
description: 'Folder path if you want to limit the search within a specific folder. For example, `/sales-banner/` will only search in folder sales-banner.\n\nNote : If your use case involves searching within a folder as well as its subfolders, you can use `path` parameter in `searchQuery` with appropriate operator.\nCheckout [Supported parameters](/docs/api-reference/digital-asset-management-dam/list-and-search-assets#supported-parameters) for more information.\n',
|
|
33
|
+
},
|
|
34
|
+
searchQuery: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
description: 'Query string in a Lucene-like query language e.g. `createdAt > "7d"`.\n\nNote : When the searchQuery parameter is present, the following query parameters will have no effect on the result:\n\n1. `tags`\n2. `type`\n3. `name`\n\n[Learn more](/docs/api-reference/digital-asset-management-dam/list-and-search-assets#advanced-search-queries) from examples.\n',
|
|
37
|
+
},
|
|
38
|
+
skip: {
|
|
39
|
+
type: 'integer',
|
|
40
|
+
description: 'The number of results to skip before returning results.\n',
|
|
41
|
+
},
|
|
42
|
+
sort: {
|
|
43
|
+
type: 'string',
|
|
44
|
+
description: 'Sort the results by one of the supported fields in ascending or descending order.',
|
|
45
|
+
enum: [
|
|
46
|
+
'ASC_NAME',
|
|
47
|
+
'DESC_NAME',
|
|
48
|
+
'ASC_CREATED',
|
|
49
|
+
'DESC_CREATED',
|
|
50
|
+
'ASC_UPDATED',
|
|
51
|
+
'DESC_UPDATED',
|
|
52
|
+
'ASC_HEIGHT',
|
|
53
|
+
'DESC_HEIGHT',
|
|
54
|
+
'ASC_WIDTH',
|
|
55
|
+
'DESC_WIDTH',
|
|
56
|
+
'ASC_SIZE',
|
|
57
|
+
'DESC_SIZE',
|
|
58
|
+
'ASC_RELEVANCE',
|
|
59
|
+
'DESC_RELEVANCE',
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
type: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
description: 'Filter results by asset type.\n\n- `file` — returns only files \n- `file-version` — returns specific file versions \n- `folder` — returns only folders \n- `all` — returns both files and folders (excludes `file-version`)',
|
|
65
|
+
enum: ['file', 'file-version', 'folder', 'all'],
|
|
66
|
+
},
|
|
67
|
+
jq_filter: {
|
|
68
|
+
type: 'string',
|
|
69
|
+
title: 'jq Filter',
|
|
70
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
required: [],
|
|
74
|
+
},
|
|
75
|
+
annotations: {
|
|
76
|
+
readOnlyHint: true,
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
const handler = async (client, args) => {
|
|
80
|
+
const { jq_filter, ...body } = args;
|
|
81
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.assets.list(body)));
|
|
82
|
+
};
|
|
83
|
+
exports.handler = handler;
|
|
84
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
85
|
+
//# sourceMappingURL=list-assets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-assets.js","sourceRoot":"","sources":["../../src/tools/assets/list-assets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA0D;AAC1D,yDAA8E;AAKjE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,wBAAwB;CACtC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EACT,+3NAA+3N;IACj4N,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,iLAAiL;gBACnL,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,WAAW,CAAC;aACpC;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,wDAAwD;aACtE;YACD,IAAI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AP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { maybeFilter } from '@imagekit/api-mcp/filtering';
|
|
3
|
+
import { asTextContentResult } from '@imagekit/api-mcp/tools/types';
|
|
4
|
+
export const metadata = {
|
|
5
|
+
resource: 'assets',
|
|
6
|
+
operation: 'read',
|
|
7
|
+
tags: [],
|
|
8
|
+
httpMethod: 'get',
|
|
9
|
+
httpPath: '/v1/files',
|
|
10
|
+
operationId: 'list-and-search-assets',
|
|
11
|
+
};
|
|
12
|
+
export const tool = {
|
|
13
|
+
name: 'list_assets',
|
|
14
|
+
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nThis API can list all the uploaded files and folders in your ImageKit.io media library. In addition, you can fine-tune your query by specifying various filters by generating a query string in a Lucene-like syntax and provide this generated string as the value of the `searchQuery`.\n\n\n# Response Schema\n```json\n{\n type: 'array',\n items: {\n anyOf: [ {\n $ref: '#/$defs/file'\n },\n {\n $ref: '#/$defs/folder'\n }\n ],\n description: 'Object containing details of a file or file version.'\n },\n $defs: {\n file: {\n type: 'object',\n title: 'File & File Version',\n description: 'Object containing details of a file or file version.',\n properties: {\n AITags: {\n type: 'array',\n description: 'An array of tags assigned to the file by auto tagging.\\n',\n items: {\n type: 'object',\n properties: {\n confidence: {\n type: 'number',\n description: 'Confidence score of the tag.'\n },\n name: {\n type: 'string',\n description: 'Name of the tag.'\n },\n source: {\n type: 'string',\n description: 'Source of the tag. Possible values are `google-auto-tagging` and `aws-auto-tagging`.'\n }\n }\n }\n },\n createdAt: {\n type: 'string',\n description: 'Date and time when the file was uploaded. The date and time is in ISO8601 format.\\n',\n format: 'date-time'\n },\n customCoordinates: {\n type: 'string',\n description: 'An string with custom coordinates of the file.\\n'\n },\n customMetadata: {\n type: 'object',\n description: 'An object with custom metadata for the file.\\n',\n additionalProperties: true\n },\n description: {\n type: 'string',\n description: 'Optional text to describe the contents of the file. Can be set by the user or the ai-auto-description extension.\\n'\n },\n fileId: {\n type: 'string',\n description: 'Unique identifier of the asset.'\n },\n filePath: {\n type: 'string',\n description: 'Path of the file. This is the path you would use in the URL to access the file. For example, if the file is at the root of the media library, the path will be `/file.jpg`. If the file is inside a folder named `images`, the path will be `/images/file.jpg`.\\n'\n },\n fileType: {\n type: 'string',\n description: 'Type of the file. Possible values are `image`, `non-image`.\\n'\n },\n hasAlpha: {\n type: 'boolean',\n description: 'Specifies if the image has an alpha channel.\\n'\n },\n height: {\n type: 'number',\n description: 'Height of the file.\\n'\n },\n isPrivateFile: {\n type: 'boolean',\n description: 'Specifies if the file is private or not.\\n'\n },\n isPublished: {\n type: 'boolean',\n description: 'Specifies if the file is published or not.\\n'\n },\n mime: {\n type: 'string',\n description: 'MIME type of the file.\\n'\n },\n name: {\n type: 'string',\n description: 'Name of the asset.'\n },\n selectedFieldsSchema: {\n type: 'object',\n description: 'This field is included in the response only if the Path policy feature is available in the plan.\\nIt contains schema definitions for the custom metadata fields selected for the specified file path.\\nField selection can only be done when the Path policy feature is enabled.\\n\\nKeys are the names of the custom metadata fields; the value object has details about the custom metadata schema.\\n',\n additionalProperties: true\n },\n size: {\n type: 'number',\n description: 'Size of the file in bytes.\\n'\n },\n tags: {\n type: 'array',\n description: 'An array of tags assigned to the file. Tags are used to search files in the media library.\\n',\n items: {\n type: 'string'\n }\n },\n thumbnail: {\n type: 'string',\n description: 'URL of the thumbnail image. This URL is used to access the thumbnail image of the file in the media library.\\n'\n },\n type: {\n type: 'string',\n description: 'Type of the asset.',\n enum: [ 'file',\n 'file-version'\n ]\n },\n updatedAt: {\n type: 'string',\n description: 'Date and time when the file was last updated. The date and time is in ISO8601 format.\\n',\n format: 'date-time'\n },\n url: {\n type: 'string',\n description: 'URL of the file.\\n'\n },\n versionInfo: {\n type: 'object',\n description: 'An object with details of the file version.\\n',\n properties: {\n id: {\n type: 'string',\n description: 'Unique identifier of the file version.'\n },\n name: {\n type: 'string',\n description: 'Name of the file version.'\n }\n }\n },\n width: {\n type: 'number',\n description: 'Width of the file.\\n'\n }\n }\n },\n folder: {\n type: 'object',\n title: 'Folder',\n properties: {\n createdAt: {\n type: 'string',\n description: 'Date and time when the folder was created. The date and time is in ISO8601 format.\\n',\n format: 'date-time'\n },\n folderId: {\n type: 'string',\n description: 'Unique identifier of the asset.'\n },\n folderPath: {\n type: 'string',\n description: 'Path of the folder. This is the path you would use in the URL to access the folder. For example, if the folder is at the root of the media library, the path will be /folder. If the folder is inside another folder named images, the path will be /images/folder.\\n'\n },\n name: {\n type: 'string',\n description: 'Name of the asset.'\n },\n type: {\n type: 'string',\n description: 'Type of the asset.',\n enum: [ 'folder'\n ]\n },\n updatedAt: {\n type: 'string',\n description: 'Date and time when the folder was last updated. The date and time is in ISO8601 format.\\n',\n format: 'date-time'\n }\n }\n }\n }\n}\n```",
|
|
15
|
+
inputSchema: {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
fileType: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
description: 'Filter results by file type.\n\n- `all` — include all file types \n- `image` — include only image files \n- `non-image` — include only non-image files (e.g., JS, CSS, video)',
|
|
21
|
+
enum: ['all', 'image', 'non-image'],
|
|
22
|
+
},
|
|
23
|
+
limit: {
|
|
24
|
+
type: 'integer',
|
|
25
|
+
description: 'The maximum number of results to return in response.\n',
|
|
26
|
+
},
|
|
27
|
+
path: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
description: 'Folder path if you want to limit the search within a specific folder. For example, `/sales-banner/` will only search in folder sales-banner.\n\nNote : If your use case involves searching within a folder as well as its subfolders, you can use `path` parameter in `searchQuery` with appropriate operator.\nCheckout [Supported parameters](/docs/api-reference/digital-asset-management-dam/list-and-search-assets#supported-parameters) for more information.\n',
|
|
30
|
+
},
|
|
31
|
+
searchQuery: {
|
|
32
|
+
type: 'string',
|
|
33
|
+
description: 'Query string in a Lucene-like query language e.g. `createdAt > "7d"`.\n\nNote : When the searchQuery parameter is present, the following query parameters will have no effect on the result:\n\n1. `tags`\n2. `type`\n3. `name`\n\n[Learn more](/docs/api-reference/digital-asset-management-dam/list-and-search-assets#advanced-search-queries) from examples.\n',
|
|
34
|
+
},
|
|
35
|
+
skip: {
|
|
36
|
+
type: 'integer',
|
|
37
|
+
description: 'The number of results to skip before returning results.\n',
|
|
38
|
+
},
|
|
39
|
+
sort: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
description: 'Sort the results by one of the supported fields in ascending or descending order.',
|
|
42
|
+
enum: [
|
|
43
|
+
'ASC_NAME',
|
|
44
|
+
'DESC_NAME',
|
|
45
|
+
'ASC_CREATED',
|
|
46
|
+
'DESC_CREATED',
|
|
47
|
+
'ASC_UPDATED',
|
|
48
|
+
'DESC_UPDATED',
|
|
49
|
+
'ASC_HEIGHT',
|
|
50
|
+
'DESC_HEIGHT',
|
|
51
|
+
'ASC_WIDTH',
|
|
52
|
+
'DESC_WIDTH',
|
|
53
|
+
'ASC_SIZE',
|
|
54
|
+
'DESC_SIZE',
|
|
55
|
+
'ASC_RELEVANCE',
|
|
56
|
+
'DESC_RELEVANCE',
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
type: {
|
|
60
|
+
type: 'string',
|
|
61
|
+
description: 'Filter results by asset type.\n\n- `file` — returns only files \n- `file-version` — returns specific file versions \n- `folder` — returns only folders \n- `all` — returns both files and folders (excludes `file-version`)',
|
|
62
|
+
enum: ['file', 'file-version', 'folder', 'all'],
|
|
63
|
+
},
|
|
64
|
+
jq_filter: {
|
|
65
|
+
type: 'string',
|
|
66
|
+
title: 'jq Filter',
|
|
67
|
+
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
required: [],
|
|
71
|
+
},
|
|
72
|
+
annotations: {
|
|
73
|
+
readOnlyHint: true,
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
export const handler = async (client, args) => {
|
|
77
|
+
const { jq_filter, ...body } = args;
|
|
78
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.assets.list(body)));
|
|
79
|
+
};
|
|
80
|
+
export default { metadata, tool, handler };
|
|
81
|
+
//# sourceMappingURL=list-assets.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-assets.mjs","sourceRoot":"","sources":["../../src/tools/assets/list-assets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,6BAA6B;OAClD,EAAY,mBAAmB,EAAE,MAAM,+BAA+B;AAK7E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,wBAAwB;CACtC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EACT,+3NAA+3N;IACj4N,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,iLAAiL;gBACnL,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,WAAW,CAAC;aACpC;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,wDAAwD;aACtE;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,ucAAuc;aAC1c;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,mWAAmW;aACtW;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,2DAA2D;aACzE;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,mFAAmF;gBAChG,IAAI,EAAE;oBACJ,UAAU;oBACV,WAAW;oBACX,aAAa;oBACb,cAAc;oBACd,aAAa;oBACb,cAAc;oBACd,YAAY;oBACZ,aAAa;oBACb,WAAW;oBACX,YAAY;oBACZ,UAAU;oBACV,WAAW;oBACX,eAAe;oBACf,gBAAgB;iBACjB;aACF;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,gOAAgO;gBAClO,IAAI,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK,CAAC;aAChD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,EAAE;KACb;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC3F,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from '@imagekit/api-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import ImageKit from '@imagekit/nodejs';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: ImageKit, args: Record<string, unknown> | undefined) => Promise<import("@imagekit/api-mcp/tools/types").ToolCallResult>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
required?: string[] | undefined;
|
|
19
|
+
};
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
outputSchema?: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
type: "object";
|
|
25
|
+
properties?: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
} | undefined;
|
|
28
|
+
required?: string[] | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
annotations?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
readOnlyHint?: boolean | undefined;
|
|
34
|
+
destructiveHint?: boolean | undefined;
|
|
35
|
+
idempotentHint?: boolean | undefined;
|
|
36
|
+
openWorldHint?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
_meta?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
handler: (client: ImageKit, args: Record<string, unknown> | undefined) => Promise<import("@imagekit/api-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=upload-v2-beta-files.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-v2-beta-files.d.mts","sourceRoot":"","sources":["../../../../src/tools/beta/v2/files/upload-v2-beta-files.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,+BAA+B;OAEtE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,kBAAkB;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAoSlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from '@imagekit/api-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import ImageKit from '@imagekit/nodejs';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: ImageKit, args: Record<string, unknown> | undefined) => Promise<import("@imagekit/api-mcp/tools/types").ToolCallResult>;
|
|
7
|
+
declare const _default: {
|
|
8
|
+
metadata: Metadata;
|
|
9
|
+
tool: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
name: string;
|
|
12
|
+
inputSchema: {
|
|
13
|
+
[x: string]: unknown;
|
|
14
|
+
type: "object";
|
|
15
|
+
properties?: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
} | undefined;
|
|
18
|
+
required?: string[] | undefined;
|
|
19
|
+
};
|
|
20
|
+
title?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
outputSchema?: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
type: "object";
|
|
25
|
+
properties?: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
} | undefined;
|
|
28
|
+
required?: string[] | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
annotations?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
title?: string | undefined;
|
|
33
|
+
readOnlyHint?: boolean | undefined;
|
|
34
|
+
destructiveHint?: boolean | undefined;
|
|
35
|
+
idempotentHint?: boolean | undefined;
|
|
36
|
+
openWorldHint?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
_meta?: {
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
handler: (client: ImageKit, args: Record<string, unknown> | undefined) => Promise<import("@imagekit/api-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=upload-v2-beta-files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-v2-beta-files.d.ts","sourceRoot":"","sources":["../../../../src/tools/beta/v2/files/upload-v2-beta-files.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAuB,MAAM,+BAA+B;OAEtE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,kBAAkB;AAEvC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAoSlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAGxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKzF,wBAA2C"}
|
|
@@ -0,0 +1,286 @@
|
|
|
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.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
const types_1 = require("@imagekit/api-mcp/tools/types");
|
|
6
|
+
exports.metadata = {
|
|
7
|
+
resource: 'beta.v2.files',
|
|
8
|
+
operation: 'write',
|
|
9
|
+
tags: [],
|
|
10
|
+
httpMethod: 'post',
|
|
11
|
+
httpPath: '/api/v2/files/upload',
|
|
12
|
+
operationId: 'upload-file-v2',
|
|
13
|
+
};
|
|
14
|
+
exports.tool = {
|
|
15
|
+
name: 'upload_v2_beta_files',
|
|
16
|
+
description: 'The V2 API enhances security by verifying the entire payload using JWT. This API is in beta.\n\nImageKit.io allows you to upload files directly from both the server and client sides. For server-side uploads, private API key authentication is used. For client-side uploads, generate a one-time `token` from your secure backend using private API. [Learn more](/docs/api-reference/upload-file/upload-file-v2#how-to-implement-secure-client-side-file-upload) about how to implement secure client-side file upload.\n\n**File size limit** \\\nOn the free plan, the maximum upload file sizes are 20MB for images, audio, and raw files, and 100MB for videos. On the paid plan, these limits increase to 40MB for images, audio, and raw files, and 2GB for videos. These limits can be further increased with higher-tier plans.\n\n**Version limit** \\\nA file can have a maximum of 100 versions.\n\n**Demo applications**\n\n- A full-fledged [upload widget using Uppy](https://github.com/imagekit-samples/uppy-uploader), supporting file selections from local storage, URL, Dropbox, Google Drive, Instagram, and more.\n- [Quick start guides](/docs/quick-start-guides) for various frameworks and technologies.\n',
|
|
17
|
+
inputSchema: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
properties: {
|
|
20
|
+
file: {
|
|
21
|
+
type: 'string',
|
|
22
|
+
description: 'The API accepts any of the following:\n\n- **Binary data** – send the raw bytes as `multipart/form-data`.\n- **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch.\n- **Base64 string** – the file encoded as a Base64 data URI or plain Base64.\n\nWhen supplying a URL, the server must receive the response headers within 8 seconds; otherwise the request fails with 400 Bad Request.\n',
|
|
23
|
+
},
|
|
24
|
+
fileName: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: 'The name with which the file has to be uploaded.\n',
|
|
27
|
+
},
|
|
28
|
+
token: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
description: "This is the client-generated JSON Web Token (JWT). The ImageKit.io server uses it to authenticate and check that the upload request parameters have not been tampered with after the token has been generated. Learn how to create the token on the page below. This field is only required for authentication when uploading a file from the client side.\n\n\n**Note**: Sending a JWT that has been used in the past will result in a validation error. Even if your previous request resulted in an error, you should always send a new token.\n\n\n**⚠️Warning**: JWT must be generated on the server-side because it is generated using your account's private API key. This field is required for authentication when uploading a file from the client-side.\n",
|
|
31
|
+
},
|
|
32
|
+
checks: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
description: 'Server-side checks to run on the asset.\nRead more about [Upload API checks](/docs/api-reference/upload-file/upload-file-v2#upload-api-checks).\n',
|
|
35
|
+
},
|
|
36
|
+
customCoordinates: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
description: 'Define an important area in the image. This is only relevant for image type files.\n\n - To be passed as a string with the x and y coordinates of the top-left corner, and width and height of the area of interest in the format `x,y,width,height`. For example - `10,10,100,100`\n - Can be used with fo-customtransformation.\n - If this field is not specified and the file is overwritten, then customCoordinates will be removed.\n',
|
|
39
|
+
},
|
|
40
|
+
customMetadata: {
|
|
41
|
+
type: 'object',
|
|
42
|
+
description: 'JSON key-value pairs to associate with the asset. Create the custom metadata fields before setting these values.\n',
|
|
43
|
+
additionalProperties: true,
|
|
44
|
+
},
|
|
45
|
+
description: {
|
|
46
|
+
type: 'string',
|
|
47
|
+
description: 'Optional text to describe the contents of the file.\n',
|
|
48
|
+
},
|
|
49
|
+
extensions: {
|
|
50
|
+
$ref: '#/$defs/extensions',
|
|
51
|
+
},
|
|
52
|
+
folder: {
|
|
53
|
+
type: 'string',
|
|
54
|
+
description: "The folder path in which the image has to be uploaded. If the folder(s) didn't exist before, a new folder(s) is created. Using multiple `/` creates a nested folder.\n",
|
|
55
|
+
},
|
|
56
|
+
isPrivateFile: {
|
|
57
|
+
type: 'boolean',
|
|
58
|
+
description: 'Whether to mark the file as private or not.\n\nIf `true`, the file is marked as private and is accessible only using named transformation or signed URL.\n',
|
|
59
|
+
},
|
|
60
|
+
isPublished: {
|
|
61
|
+
type: 'boolean',
|
|
62
|
+
description: 'Whether to upload file as published or not.\n\nIf `false`, the file is marked as unpublished, which restricts access to the file only via the media library. Files in draft or unpublished state can only be publicly accessed after being published.\n\nThe option to upload in draft state is only available in custom enterprise pricing plans.\n',
|
|
63
|
+
},
|
|
64
|
+
overwriteAITags: {
|
|
65
|
+
type: 'boolean',
|
|
66
|
+
description: 'If set to `true` and a file already exists at the exact location, its AITags will be removed. Set `overwriteAITags` to `false` to preserve AITags.\n',
|
|
67
|
+
},
|
|
68
|
+
overwriteCustomMetadata: {
|
|
69
|
+
type: 'boolean',
|
|
70
|
+
description: 'If the request does not have `customMetadata`, and a file already exists at the exact location, existing customMetadata will be removed.\n',
|
|
71
|
+
},
|
|
72
|
+
overwriteFile: {
|
|
73
|
+
type: 'boolean',
|
|
74
|
+
description: 'If `false` and `useUniqueFileName` is also `false`, and a file already exists at the exact location, upload API will return an error immediately.\n',
|
|
75
|
+
},
|
|
76
|
+
overwriteTags: {
|
|
77
|
+
type: 'boolean',
|
|
78
|
+
description: 'If the request does not have `tags`, and a file already exists at the exact location, existing tags will be removed.\n',
|
|
79
|
+
},
|
|
80
|
+
responseFields: {
|
|
81
|
+
type: 'array',
|
|
82
|
+
description: 'Array of response field keys to include in the API response body.\n',
|
|
83
|
+
items: {
|
|
84
|
+
type: 'string',
|
|
85
|
+
enum: [
|
|
86
|
+
'tags',
|
|
87
|
+
'customCoordinates',
|
|
88
|
+
'isPrivateFile',
|
|
89
|
+
'embeddedMetadata',
|
|
90
|
+
'isPublished',
|
|
91
|
+
'customMetadata',
|
|
92
|
+
'metadata',
|
|
93
|
+
'selectedFieldsSchema',
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
tags: {
|
|
98
|
+
type: 'array',
|
|
99
|
+
description: 'Set the tags while uploading the file.\nProvide an array of tag strings (e.g. `["tag1", "tag2", "tag3"]`). The combined length of all tag characters must not exceed 500, and the `%` character is not allowed.\nIf this field is not specified and the file is overwritten, the existing tags will be removed.\n',
|
|
100
|
+
items: {
|
|
101
|
+
type: 'string',
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
transformation: {
|
|
105
|
+
type: 'object',
|
|
106
|
+
description: "Configure pre-processing (`pre`) and post-processing (`post`) transformations.\n\n- `pre` — applied before the file is uploaded to the Media Library. \n Useful for reducing file size or applying basic optimizations upfront (e.g., resize, compress).\n\n- `post` — applied immediately after upload. \n Ideal for generating transformed versions (like video encodes or thumbnails) in advance, so they're ready for delivery without delay.\n\nYou can mix and match any combination of post-processing types.\n",
|
|
107
|
+
properties: {
|
|
108
|
+
post: {
|
|
109
|
+
type: 'array',
|
|
110
|
+
description: 'List of transformations to apply *after* the file is uploaded. \nEach item must match one of the following types:\n`transformation`, `gif-to-video`, `thumbnail`, `abs`.\n',
|
|
111
|
+
items: {
|
|
112
|
+
anyOf: [
|
|
113
|
+
{
|
|
114
|
+
type: 'object',
|
|
115
|
+
title: 'Simple post-transformation',
|
|
116
|
+
properties: {
|
|
117
|
+
type: {
|
|
118
|
+
type: 'string',
|
|
119
|
+
description: 'Transformation type.',
|
|
120
|
+
enum: ['transformation'],
|
|
121
|
+
},
|
|
122
|
+
value: {
|
|
123
|
+
type: 'string',
|
|
124
|
+
description: 'Transformation string (e.g. `w-200,h-200`). \nSame syntax as ImageKit URL-based transformations.\n',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
required: ['type', 'value'],
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
type: 'object',
|
|
131
|
+
title: 'Convert GIF to video',
|
|
132
|
+
properties: {
|
|
133
|
+
type: {
|
|
134
|
+
type: 'string',
|
|
135
|
+
description: 'Converts an animated GIF into an MP4.',
|
|
136
|
+
enum: ['gif-to-video'],
|
|
137
|
+
},
|
|
138
|
+
value: {
|
|
139
|
+
type: 'string',
|
|
140
|
+
description: 'Optional transformation string to apply to the output video. \n**Example**: `q-80`\n',
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
required: ['type'],
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
type: 'object',
|
|
147
|
+
title: 'Generate a thumbnail',
|
|
148
|
+
properties: {
|
|
149
|
+
type: {
|
|
150
|
+
type: 'string',
|
|
151
|
+
description: 'Generates a thumbnail image.',
|
|
152
|
+
enum: ['thumbnail'],
|
|
153
|
+
},
|
|
154
|
+
value: {
|
|
155
|
+
type: 'string',
|
|
156
|
+
description: 'Optional transformation string. \n**Example**: `w-150,h-150`\n',
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
required: ['type'],
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
type: 'object',
|
|
163
|
+
title: 'Adaptive Bitrate Streaming',
|
|
164
|
+
properties: {
|
|
165
|
+
protocol: {
|
|
166
|
+
type: 'string',
|
|
167
|
+
description: 'Streaming protocol to use (`hls` or `dash`).',
|
|
168
|
+
enum: ['hls', 'dash'],
|
|
169
|
+
},
|
|
170
|
+
type: {
|
|
171
|
+
type: 'string',
|
|
172
|
+
description: 'Adaptive Bitrate Streaming (ABS) setup.',
|
|
173
|
+
enum: ['abs'],
|
|
174
|
+
},
|
|
175
|
+
value: {
|
|
176
|
+
type: 'string',
|
|
177
|
+
description: 'List of different representations you want to create separated by an underscore.\n',
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
required: ['protocol', 'type', 'value'],
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
pre: {
|
|
186
|
+
type: 'string',
|
|
187
|
+
description: 'Transformation string to apply before uploading the file to the Media Library. Useful for optimizing files at ingestion.\n',
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
useUniqueFileName: {
|
|
192
|
+
type: 'boolean',
|
|
193
|
+
description: 'Whether to use a unique filename for this file or not.\n\nIf `true`, ImageKit.io will add a unique suffix to the filename parameter to get a unique filename.\n\nIf `false`, then the image is uploaded with the provided filename parameter, and any existing file with the same name is replaced.\n',
|
|
194
|
+
},
|
|
195
|
+
webhookUrl: {
|
|
196
|
+
type: 'string',
|
|
197
|
+
description: 'The final status of extensions after they have completed execution will be delivered to this endpoint as a POST request. [Learn more](/docs/api-reference/digital-asset-management-dam/managing-assets/update-file-details#webhook-payload-structure) about the webhook payload structure.\n',
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
required: ['file', 'fileName'],
|
|
201
|
+
$defs: {
|
|
202
|
+
extensions: {
|
|
203
|
+
type: 'array',
|
|
204
|
+
title: 'Extensions Array',
|
|
205
|
+
description: 'Array of extensions to be applied to the asset. Each extension can be configured with specific parameters based on the extension type.\n',
|
|
206
|
+
items: {
|
|
207
|
+
anyOf: [
|
|
208
|
+
{
|
|
209
|
+
type: 'object',
|
|
210
|
+
title: 'Remove background',
|
|
211
|
+
properties: {
|
|
212
|
+
name: {
|
|
213
|
+
type: 'string',
|
|
214
|
+
description: 'Specifies the background removal extension.',
|
|
215
|
+
enum: ['remove-bg'],
|
|
216
|
+
},
|
|
217
|
+
options: {
|
|
218
|
+
type: 'object',
|
|
219
|
+
properties: {
|
|
220
|
+
add_shadow: {
|
|
221
|
+
type: 'boolean',
|
|
222
|
+
description: 'Whether to add an artificial shadow to the result. Default is false. Note: Adding shadows is currently only supported for car photos.\n',
|
|
223
|
+
},
|
|
224
|
+
bg_color: {
|
|
225
|
+
type: 'string',
|
|
226
|
+
description: 'Specifies a solid color background using hex code (e.g., "81d4fa", "fff") or color name (e.g., "green"). If this parameter is set, `bg_image_url` must be empty.\n',
|
|
227
|
+
},
|
|
228
|
+
bg_image_url: {
|
|
229
|
+
type: 'string',
|
|
230
|
+
description: 'Sets a background image from a URL. If this parameter is set, `bg_color` must be empty.\n',
|
|
231
|
+
},
|
|
232
|
+
semitransparency: {
|
|
233
|
+
type: 'boolean',
|
|
234
|
+
description: 'Allows semi-transparent regions in the result. Default is true. Note: Semitransparency is currently only supported for car windows.\n',
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
required: ['name'],
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
type: 'object',
|
|
243
|
+
title: 'Auto tagging',
|
|
244
|
+
properties: {
|
|
245
|
+
maxTags: {
|
|
246
|
+
type: 'integer',
|
|
247
|
+
description: 'Maximum number of tags to attach to the asset.',
|
|
248
|
+
},
|
|
249
|
+
minConfidence: {
|
|
250
|
+
type: 'integer',
|
|
251
|
+
description: 'Minimum confidence level for tags to be considered valid.',
|
|
252
|
+
},
|
|
253
|
+
name: {
|
|
254
|
+
type: 'string',
|
|
255
|
+
description: 'Specifies the auto-tagging extension used.',
|
|
256
|
+
enum: ['google-auto-tagging', 'aws-auto-tagging'],
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
required: ['maxTags', 'minConfidence', 'name'],
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
type: 'object',
|
|
263
|
+
title: 'Auto description',
|
|
264
|
+
properties: {
|
|
265
|
+
name: {
|
|
266
|
+
type: 'string',
|
|
267
|
+
description: 'Specifies the auto description extension.',
|
|
268
|
+
enum: ['ai-auto-description'],
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
required: ['name'],
|
|
272
|
+
},
|
|
273
|
+
],
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
},
|
|
278
|
+
annotations: {},
|
|
279
|
+
};
|
|
280
|
+
const handler = async (client, args) => {
|
|
281
|
+
const body = args;
|
|
282
|
+
return (0, types_1.asTextContentResult)(await client.beta.v2.files.upload(body));
|
|
283
|
+
};
|
|
284
|
+
exports.handler = handler;
|
|
285
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
286
|
+
//# sourceMappingURL=upload-v2-beta-files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-v2-beta-files.js","sourceRoot":"","sources":["../../../../src/tools/beta/v2/files/upload-v2-beta-files.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yDAA8E;AAKjE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,eAAe;IACzB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,sBAAsB;IAChC,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EACT,2qCAA2qC;IAC7qC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2ZAA2Z;aAC9Z;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oDAAoD;aAClE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,suBAAsuB;aACzuB;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,mJAAmJ;aACtJ;YACD,iBAAiB,EAAE;gBACjB,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,gbAAgb;aACnb;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,oHAAoH;gBACtH,oBAAoB,EAAE,IAAI;aAC3B;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uDAAuD;aACrE;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,oBAAoB;aAC3B;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,wKAAwK;aAC3K;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,4JAA4J;aA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