@imagekit/api-mcp 7.1.1 → 7.2.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 +1 -1
- package/README.md +26 -273
- package/code-tool-types.d.mts +7 -7
- package/code-tool-types.d.mts.map +1 -1
- package/code-tool-types.d.ts +7 -7
- package/code-tool-types.d.ts.map +1 -1
- package/code-tool.d.mts +3 -3
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +3 -3
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +74 -135
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +74 -102
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts +16 -9
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +16 -9
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +11 -3
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +11 -3
- package/docs-search-tool.mjs.map +1 -1
- package/headers.d.mts.map +1 -1
- package/headers.d.ts.map +1 -1
- package/headers.js +1 -1
- package/headers.js.map +1 -1
- package/headers.mjs +1 -1
- package/headers.mjs.map +1 -1
- package/http.d.mts.map +1 -1
- package/http.d.ts.map +1 -1
- package/http.js +4 -24
- package/http.js.map +1 -1
- package/http.mjs +4 -24
- package/http.mjs.map +1 -1
- package/index.js +4 -40
- package/index.js.map +1 -1
- package/index.mjs +4 -40
- package/index.mjs.map +1 -1
- package/options.d.mts +0 -9
- package/options.d.mts.map +1 -1
- package/options.d.ts +0 -9
- package/options.d.ts.map +1 -1
- package/options.js +6 -358
- package/options.js.map +1 -1
- package/options.mjs +6 -358
- package/options.mjs.map +1 -1
- package/package.json +14 -68
- package/server.d.mts +3 -8
- package/server.d.mts.map +1 -1
- package/server.d.ts +3 -8
- package/server.d.ts.map +1 -1
- package/server.js +12 -65
- package/server.js.map +1 -1
- package/server.mjs +11 -62
- package/server.mjs.map +1 -1
- package/src/code-tool-types.ts +7 -5
- package/src/code-tool.ts +81 -120
- package/src/docs-search-tool.ts +15 -4
- package/src/headers.ts +3 -1
- package/src/http.ts +5 -26
- package/src/index.ts +5 -52
- package/src/options.ts +7 -381
- package/src/server.ts +12 -72
- package/src/stdio.ts +2 -3
- package/src/{tools/types.ts → types.ts} +13 -1
- package/stdio.d.mts +1 -2
- package/stdio.d.mts.map +1 -1
- package/stdio.d.ts +1 -2
- package/stdio.d.ts.map +1 -1
- package/stdio.js +2 -2
- package/stdio.js.map +1 -1
- package/stdio.mjs +2 -2
- package/stdio.mjs.map +1 -1
- package/{tools/types.d.mts → types.d.mts} +2 -1
- package/types.d.mts.map +1 -0
- package/{tools/types.d.ts → types.d.ts} +2 -1
- package/types.d.ts.map +1 -0
- package/{tools/types.js → types.js} +12 -0
- package/types.js.map +1 -0
- package/{tools/types.mjs → types.mjs} +11 -0
- package/types.mjs.map +1 -0
- package/code-tool-paths.cjs +0 -6
- package/code-tool-paths.cjs.map +0 -1
- package/code-tool-paths.d.cts +0 -2
- package/code-tool-paths.d.cts.map +0 -1
- package/code-tool-worker.d.mts +0 -5
- package/code-tool-worker.d.mts.map +0 -1
- package/code-tool-worker.d.ts +0 -5
- package/code-tool-worker.d.ts.map +0 -1
- package/code-tool-worker.js +0 -45
- package/code-tool-worker.js.map +0 -1
- package/code-tool-worker.mjs +0 -40
- package/code-tool-worker.mjs.map +0 -1
- package/compat.d.mts +0 -58
- package/compat.d.mts.map +0 -1
- package/compat.d.ts +0 -58
- package/compat.d.ts.map +0 -1
- package/compat.js +0 -387
- package/compat.js.map +0 -1
- package/compat.mjs +0 -378
- package/compat.mjs.map +0 -1
- package/dynamic-tools.d.mts +0 -12
- package/dynamic-tools.d.mts.map +0 -1
- package/dynamic-tools.d.ts +0 -12
- package/dynamic-tools.d.ts.map +0 -1
- package/dynamic-tools.js +0 -135
- package/dynamic-tools.js.map +0 -1
- package/dynamic-tools.mjs +0 -132
- package/dynamic-tools.mjs.map +0 -1
- package/filtering.d.mts +0 -2
- package/filtering.d.mts.map +0 -1
- package/filtering.d.ts +0 -2
- package/filtering.d.ts.map +0 -1
- package/filtering.js +0 -20
- package/filtering.js.map +0 -1
- package/filtering.mjs +0 -13
- package/filtering.mjs.map +0 -1
- package/src/code-tool-paths.cts +0 -3
- package/src/code-tool-worker.ts +0 -46
- package/src/compat.ts +0 -483
- package/src/dynamic-tools.ts +0 -153
- package/src/filtering.ts +0 -14
- package/src/tools/accounts/origins/create-accounts-origins.ts +0 -318
- package/src/tools/accounts/origins/delete-accounts-origins.ts +0 -43
- package/src/tools/accounts/origins/get-accounts-origins.ts +0 -41
- package/src/tools/accounts/origins/list-accounts-origins.ts +0 -35
- package/src/tools/accounts/origins/update-accounts-origins.ts +0 -360
- package/src/tools/accounts/url-endpoints/create-accounts-url-endpoints.ts +0 -103
- package/src/tools/accounts/url-endpoints/delete-accounts-url-endpoints.ts +0 -43
- package/src/tools/accounts/url-endpoints/get-accounts-url-endpoints.ts +0 -49
- package/src/tools/accounts/url-endpoints/list-accounts-url-endpoints.ts +0 -44
- package/src/tools/accounts/url-endpoints/update-accounts-url-endpoints.ts +0 -112
- package/src/tools/accounts/usage/get-accounts-usage.ts +0 -56
- package/src/tools/assets/list-assets.ts +0 -94
- package/src/tools/beta/v2/files/upload-v2-beta-files.ts +0 -316
- package/src/tools/cache/invalidation/create-cache-invalidation.ts +0 -46
- package/src/tools/cache/invalidation/get-cache-invalidation.ts +0 -47
- package/src/tools/custom-metadata-fields/create-custom-metadata-fields.ts +0 -154
- package/src/tools/custom-metadata-fields/delete-custom-metadata-fields.ts +0 -47
- package/src/tools/custom-metadata-fields/list-custom-metadata-fields.ts +0 -53
- package/src/tools/custom-metadata-fields/update-custom-metadata-fields.ts +0 -150
- package/src/tools/files/bulk/add-tags-files-bulk.ts +0 -56
- package/src/tools/files/bulk/delete-files-bulk.ts +0 -49
- package/src/tools/files/bulk/remove-ai-tags-files-bulk.ts +0 -56
- package/src/tools/files/bulk/remove-tags-files-bulk.ts +0 -56
- package/src/tools/files/copy-files.ts +0 -55
- package/src/tools/files/delete-files.ts +0 -41
- package/src/tools/files/get-files.ts +0 -47
- package/src/tools/files/metadata/get-files-metadata.ts +0 -47
- package/src/tools/files/metadata/get-from-url-files-metadata.ts +0 -48
- package/src/tools/files/move-files.ts +0 -50
- package/src/tools/files/rename-files.ts +0 -58
- package/src/tools/files/update-files.ts +0 -196
- package/src/tools/files/upload-files.ts +0 -332
- package/src/tools/files/versions/delete-files-versions.ts +0 -52
- package/src/tools/files/versions/get-files-versions.ts +0 -50
- package/src/tools/files/versions/list-files-versions.ts +0 -47
- package/src/tools/files/versions/restore-files-versions.ts +0 -52
- package/src/tools/folders/copy-folders.ts +0 -55
- package/src/tools/folders/create-folders.ts +0 -52
- package/src/tools/folders/delete-folders.ts +0 -48
- package/src/tools/folders/job/get-folders-job.ts +0 -47
- package/src/tools/folders/move-folders.ts +0 -50
- package/src/tools/folders/rename-folders.ts +0 -56
- package/src/tools/index.ts +0 -153
- package/src/tools.ts +0 -1
- package/tools/accounts/origins/create-accounts-origins.d.mts +0 -45
- package/tools/accounts/origins/create-accounts-origins.d.mts.map +0 -1
- package/tools/accounts/origins/create-accounts-origins.d.ts +0 -45
- package/tools/accounts/origins/create-accounts-origins.d.ts.map +0 -1
- package/tools/accounts/origins/create-accounts-origins.js +0 -314
- package/tools/accounts/origins/create-accounts-origins.js.map +0 -1
- package/tools/accounts/origins/create-accounts-origins.mjs +0 -310
- package/tools/accounts/origins/create-accounts-origins.mjs.map +0 -1
- package/tools/accounts/origins/delete-accounts-origins.d.mts +0 -45
- package/tools/accounts/origins/delete-accounts-origins.d.mts.map +0 -1
- package/tools/accounts/origins/delete-accounts-origins.d.ts +0 -45
- package/tools/accounts/origins/delete-accounts-origins.d.ts.map +0 -1
- package/tools/accounts/origins/delete-accounts-origins.js +0 -38
- package/tools/accounts/origins/delete-accounts-origins.js.map +0 -1
- package/tools/accounts/origins/delete-accounts-origins.mjs +0 -34
- package/tools/accounts/origins/delete-accounts-origins.mjs.map +0 -1
- package/tools/accounts/origins/get-accounts-origins.d.mts +0 -45
- package/tools/accounts/origins/get-accounts-origins.d.mts.map +0 -1
- package/tools/accounts/origins/get-accounts-origins.d.ts +0 -45
- package/tools/accounts/origins/get-accounts-origins.d.ts.map +0 -1
- package/tools/accounts/origins/get-accounts-origins.js +0 -37
- package/tools/accounts/origins/get-accounts-origins.js.map +0 -1
- package/tools/accounts/origins/get-accounts-origins.mjs +0 -33
- package/tools/accounts/origins/get-accounts-origins.mjs.map +0 -1
- package/tools/accounts/origins/list-accounts-origins.d.mts +0 -45
- package/tools/accounts/origins/list-accounts-origins.d.mts.map +0 -1
- package/tools/accounts/origins/list-accounts-origins.d.ts +0 -45
- package/tools/accounts/origins/list-accounts-origins.d.ts.map +0 -1
- package/tools/accounts/origins/list-accounts-origins.js +0 -31
- package/tools/accounts/origins/list-accounts-origins.js.map +0 -1
- package/tools/accounts/origins/list-accounts-origins.mjs +0 -27
- package/tools/accounts/origins/list-accounts-origins.mjs.map +0 -1
- package/tools/accounts/origins/update-accounts-origins.d.mts +0 -45
- package/tools/accounts/origins/update-accounts-origins.d.mts.map +0 -1
- package/tools/accounts/origins/update-accounts-origins.d.ts +0 -45
- package/tools/accounts/origins/update-accounts-origins.d.ts.map +0 -1
- package/tools/accounts/origins/update-accounts-origins.js +0 -348
- package/tools/accounts/origins/update-accounts-origins.js.map +0 -1
- package/tools/accounts/origins/update-accounts-origins.mjs +0 -344
- package/tools/accounts/origins/update-accounts-origins.mjs.map +0 -1
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.mts +0 -45
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.mts.map +0 -1
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.ts +0 -45
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.d.ts.map +0 -1
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.js +0 -95
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.js.map +0 -1
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.mjs +0 -91
- package/tools/accounts/url-endpoints/create-accounts-url-endpoints.mjs.map +0 -1
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.mts +0 -45
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.mts.map +0 -1
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.ts +0 -45
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.d.ts.map +0 -1
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.js +0 -38
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.js.map +0 -1
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.mjs +0 -34
- package/tools/accounts/url-endpoints/delete-accounts-url-endpoints.mjs.map +0 -1
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.mts +0 -45
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.mts.map +0 -1
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.ts +0 -45
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.d.ts.map +0 -1
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.js +0 -43
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.js.map +0 -1
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.mjs +0 -39
- package/tools/accounts/url-endpoints/get-accounts-url-endpoints.mjs.map +0 -1
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.mts +0 -45
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.mts.map +0 -1
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.ts +0 -45
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.d.ts.map +0 -1
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.js +0 -39
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.js.map +0 -1
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.mjs +0 -35
- package/tools/accounts/url-endpoints/list-accounts-url-endpoints.mjs.map +0 -1
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.mts +0 -45
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.mts.map +0 -1
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.ts +0 -45
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.d.ts.map +0 -1
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.js +0 -101
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.js.map +0 -1
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.mjs +0 -97
- package/tools/accounts/url-endpoints/update-accounts-url-endpoints.mjs.map +0 -1
- package/tools/accounts/usage/get-accounts-usage.d.mts +0 -45
- package/tools/accounts/usage/get-accounts-usage.d.mts.map +0 -1
- package/tools/accounts/usage/get-accounts-usage.d.ts +0 -45
- package/tools/accounts/usage/get-accounts-usage.d.ts.map +0 -1
- package/tools/accounts/usage/get-accounts-usage.js +0 -49
- package/tools/accounts/usage/get-accounts-usage.js.map +0 -1
- package/tools/accounts/usage/get-accounts-usage.mjs +0 -45
- package/tools/accounts/usage/get-accounts-usage.mjs.map +0 -1
- package/tools/assets/list-assets.d.mts +0 -45
- package/tools/assets/list-assets.d.mts.map +0 -1
- package/tools/assets/list-assets.d.ts +0 -45
- package/tools/assets/list-assets.d.ts.map +0 -1
- package/tools/assets/list-assets.js +0 -85
- package/tools/assets/list-assets.js.map +0 -1
- package/tools/assets/list-assets.mjs +0 -81
- package/tools/assets/list-assets.mjs.map +0 -1
- package/tools/beta/v2/files/upload-v2-beta-files.d.mts +0 -45
- package/tools/beta/v2/files/upload-v2-beta-files.d.mts.map +0 -1
- package/tools/beta/v2/files/upload-v2-beta-files.d.ts +0 -45
- package/tools/beta/v2/files/upload-v2-beta-files.d.ts.map +0 -1
- package/tools/beta/v2/files/upload-v2-beta-files.js +0 -286
- package/tools/beta/v2/files/upload-v2-beta-files.js.map +0 -1
- package/tools/beta/v2/files/upload-v2-beta-files.mjs +0 -282
- package/tools/beta/v2/files/upload-v2-beta-files.mjs.map +0 -1
- package/tools/cache/invalidation/create-cache-invalidation.d.mts +0 -45
- package/tools/cache/invalidation/create-cache-invalidation.d.mts.map +0 -1
- package/tools/cache/invalidation/create-cache-invalidation.d.ts +0 -45
- package/tools/cache/invalidation/create-cache-invalidation.d.ts.map +0 -1
- package/tools/cache/invalidation/create-cache-invalidation.js +0 -41
- package/tools/cache/invalidation/create-cache-invalidation.js.map +0 -1
- package/tools/cache/invalidation/create-cache-invalidation.mjs +0 -37
- package/tools/cache/invalidation/create-cache-invalidation.mjs.map +0 -1
- package/tools/cache/invalidation/get-cache-invalidation.d.mts +0 -45
- package/tools/cache/invalidation/get-cache-invalidation.d.mts.map +0 -1
- package/tools/cache/invalidation/get-cache-invalidation.d.ts +0 -45
- package/tools/cache/invalidation/get-cache-invalidation.d.ts.map +0 -1
- package/tools/cache/invalidation/get-cache-invalidation.js +0 -42
- package/tools/cache/invalidation/get-cache-invalidation.js.map +0 -1
- package/tools/cache/invalidation/get-cache-invalidation.mjs +0 -38
- package/tools/cache/invalidation/get-cache-invalidation.mjs.map +0 -1
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.mts +0 -45
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.mts.map +0 -1
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.ts +0 -45
- package/tools/custom-metadata-fields/create-custom-metadata-fields.d.ts.map +0 -1
- package/tools/custom-metadata-fields/create-custom-metadata-fields.js +0 -139
- package/tools/custom-metadata-fields/create-custom-metadata-fields.js.map +0 -1
- package/tools/custom-metadata-fields/create-custom-metadata-fields.mjs +0 -135
- package/tools/custom-metadata-fields/create-custom-metadata-fields.mjs.map +0 -1
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.mts +0 -45
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.mts.map +0 -1
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.ts +0 -45
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.d.ts.map +0 -1
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.js +0 -42
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.js.map +0 -1
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.mjs +0 -38
- package/tools/custom-metadata-fields/delete-custom-metadata-fields.mjs.map +0 -1
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.mts +0 -45
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.mts.map +0 -1
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.ts +0 -45
- package/tools/custom-metadata-fields/list-custom-metadata-fields.d.ts.map +0 -1
- package/tools/custom-metadata-fields/list-custom-metadata-fields.js +0 -47
- package/tools/custom-metadata-fields/list-custom-metadata-fields.js.map +0 -1
- package/tools/custom-metadata-fields/list-custom-metadata-fields.mjs +0 -43
- package/tools/custom-metadata-fields/list-custom-metadata-fields.mjs.map +0 -1
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.mts +0 -45
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.mts.map +0 -1
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.ts +0 -45
- package/tools/custom-metadata-fields/update-custom-metadata-fields.d.ts.map +0 -1
- package/tools/custom-metadata-fields/update-custom-metadata-fields.js +0 -133
- package/tools/custom-metadata-fields/update-custom-metadata-fields.js.map +0 -1
- package/tools/custom-metadata-fields/update-custom-metadata-fields.mjs +0 -129
- package/tools/custom-metadata-fields/update-custom-metadata-fields.mjs.map +0 -1
- package/tools/files/bulk/add-tags-files-bulk.d.mts +0 -45
- package/tools/files/bulk/add-tags-files-bulk.d.mts.map +0 -1
- package/tools/files/bulk/add-tags-files-bulk.d.ts +0 -45
- package/tools/files/bulk/add-tags-files-bulk.d.ts.map +0 -1
- package/tools/files/bulk/add-tags-files-bulk.js +0 -51
- package/tools/files/bulk/add-tags-files-bulk.js.map +0 -1
- package/tools/files/bulk/add-tags-files-bulk.mjs +0 -47
- package/tools/files/bulk/add-tags-files-bulk.mjs.map +0 -1
- package/tools/files/bulk/delete-files-bulk.d.mts +0 -45
- package/tools/files/bulk/delete-files-bulk.d.mts.map +0 -1
- package/tools/files/bulk/delete-files-bulk.d.ts +0 -45
- package/tools/files/bulk/delete-files-bulk.d.ts.map +0 -1
- package/tools/files/bulk/delete-files-bulk.js +0 -44
- package/tools/files/bulk/delete-files-bulk.js.map +0 -1
- package/tools/files/bulk/delete-files-bulk.mjs +0 -40
- package/tools/files/bulk/delete-files-bulk.mjs.map +0 -1
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.mts +0 -45
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.mts.map +0 -1
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.ts +0 -45
- package/tools/files/bulk/remove-ai-tags-files-bulk.d.ts.map +0 -1
- package/tools/files/bulk/remove-ai-tags-files-bulk.js +0 -51
- package/tools/files/bulk/remove-ai-tags-files-bulk.js.map +0 -1
- package/tools/files/bulk/remove-ai-tags-files-bulk.mjs +0 -47
- package/tools/files/bulk/remove-ai-tags-files-bulk.mjs.map +0 -1
- package/tools/files/bulk/remove-tags-files-bulk.d.mts +0 -45
- package/tools/files/bulk/remove-tags-files-bulk.d.mts.map +0 -1
- package/tools/files/bulk/remove-tags-files-bulk.d.ts +0 -45
- package/tools/files/bulk/remove-tags-files-bulk.d.ts.map +0 -1
- package/tools/files/bulk/remove-tags-files-bulk.js +0 -51
- package/tools/files/bulk/remove-tags-files-bulk.js.map +0 -1
- package/tools/files/bulk/remove-tags-files-bulk.mjs +0 -47
- package/tools/files/bulk/remove-tags-files-bulk.mjs.map +0 -1
- package/tools/files/copy-files.d.mts +0 -45
- package/tools/files/copy-files.d.mts.map +0 -1
- package/tools/files/copy-files.d.ts +0 -45
- package/tools/files/copy-files.d.ts.map +0 -1
- package/tools/files/copy-files.js +0 -49
- package/tools/files/copy-files.js.map +0 -1
- package/tools/files/copy-files.mjs +0 -45
- package/tools/files/copy-files.mjs.map +0 -1
- package/tools/files/delete-files.d.mts +0 -45
- package/tools/files/delete-files.d.mts.map +0 -1
- package/tools/files/delete-files.d.ts +0 -45
- package/tools/files/delete-files.d.ts.map +0 -1
- package/tools/files/delete-files.js +0 -37
- package/tools/files/delete-files.js.map +0 -1
- package/tools/files/delete-files.mjs +0 -33
- package/tools/files/delete-files.mjs.map +0 -1
- package/tools/files/get-files.d.mts +0 -45
- package/tools/files/get-files.d.mts.map +0 -1
- package/tools/files/get-files.d.ts +0 -45
- package/tools/files/get-files.d.ts.map +0 -1
- package/tools/files/get-files.js +0 -42
- package/tools/files/get-files.js.map +0 -1
- package/tools/files/get-files.mjs +0 -38
- package/tools/files/get-files.mjs.map +0 -1
- package/tools/files/metadata/get-files-metadata.d.mts +0 -45
- package/tools/files/metadata/get-files-metadata.d.mts.map +0 -1
- package/tools/files/metadata/get-files-metadata.d.ts +0 -45
- package/tools/files/metadata/get-files-metadata.d.ts.map +0 -1
- package/tools/files/metadata/get-files-metadata.js +0 -42
- package/tools/files/metadata/get-files-metadata.js.map +0 -1
- package/tools/files/metadata/get-files-metadata.mjs +0 -38
- package/tools/files/metadata/get-files-metadata.mjs.map +0 -1
- package/tools/files/metadata/get-from-url-files-metadata.d.mts +0 -45
- package/tools/files/metadata/get-from-url-files-metadata.d.mts.map +0 -1
- package/tools/files/metadata/get-from-url-files-metadata.d.ts +0 -45
- package/tools/files/metadata/get-from-url-files-metadata.d.ts.map +0 -1
- package/tools/files/metadata/get-from-url-files-metadata.js +0 -43
- package/tools/files/metadata/get-from-url-files-metadata.js.map +0 -1
- package/tools/files/metadata/get-from-url-files-metadata.mjs +0 -39
- package/tools/files/metadata/get-from-url-files-metadata.mjs.map +0 -1
- package/tools/files/move-files.d.mts +0 -45
- package/tools/files/move-files.d.mts.map +0 -1
- package/tools/files/move-files.d.ts +0 -45
- package/tools/files/move-files.d.ts.map +0 -1
- package/tools/files/move-files.js +0 -45
- package/tools/files/move-files.js.map +0 -1
- package/tools/files/move-files.mjs +0 -41
- package/tools/files/move-files.mjs.map +0 -1
- package/tools/files/rename-files.d.mts +0 -45
- package/tools/files/rename-files.d.mts.map +0 -1
- package/tools/files/rename-files.d.ts +0 -45
- package/tools/files/rename-files.d.ts.map +0 -1
- package/tools/files/rename-files.js +0 -51
- package/tools/files/rename-files.js.map +0 -1
- package/tools/files/rename-files.mjs +0 -47
- package/tools/files/rename-files.mjs.map +0 -1
- package/tools/files/update-files.d.mts +0 -45
- package/tools/files/update-files.d.mts.map +0 -1
- package/tools/files/update-files.d.ts +0 -45
- package/tools/files/update-files.d.ts.map +0 -1
- package/tools/files/update-files.js +0 -181
- package/tools/files/update-files.js.map +0 -1
- package/tools/files/update-files.mjs +0 -177
- package/tools/files/update-files.mjs.map +0 -1
- package/tools/files/upload-files.d.mts +0 -45
- package/tools/files/upload-files.d.mts.map +0 -1
- package/tools/files/upload-files.d.ts +0 -45
- package/tools/files/upload-files.d.ts.map +0 -1
- package/tools/files/upload-files.js +0 -298
- package/tools/files/upload-files.js.map +0 -1
- package/tools/files/upload-files.mjs +0 -294
- package/tools/files/upload-files.mjs.map +0 -1
- package/tools/files/versions/delete-files-versions.d.mts +0 -45
- package/tools/files/versions/delete-files-versions.d.mts.map +0 -1
- package/tools/files/versions/delete-files-versions.d.ts +0 -45
- package/tools/files/versions/delete-files-versions.d.ts.map +0 -1
- package/tools/files/versions/delete-files-versions.js +0 -45
- package/tools/files/versions/delete-files-versions.js.map +0 -1
- package/tools/files/versions/delete-files-versions.mjs +0 -41
- package/tools/files/versions/delete-files-versions.mjs.map +0 -1
- package/tools/files/versions/get-files-versions.d.mts +0 -45
- package/tools/files/versions/get-files-versions.d.mts.map +0 -1
- package/tools/files/versions/get-files-versions.d.ts +0 -45
- package/tools/files/versions/get-files-versions.d.ts.map +0 -1
- package/tools/files/versions/get-files-versions.js +0 -45
- package/tools/files/versions/get-files-versions.js.map +0 -1
- package/tools/files/versions/get-files-versions.mjs +0 -41
- package/tools/files/versions/get-files-versions.mjs.map +0 -1
- package/tools/files/versions/list-files-versions.d.mts +0 -45
- package/tools/files/versions/list-files-versions.d.mts.map +0 -1
- package/tools/files/versions/list-files-versions.d.ts +0 -45
- package/tools/files/versions/list-files-versions.d.ts.map +0 -1
- package/tools/files/versions/list-files-versions.js +0 -42
- package/tools/files/versions/list-files-versions.js.map +0 -1
- package/tools/files/versions/list-files-versions.mjs +0 -38
- package/tools/files/versions/list-files-versions.mjs.map +0 -1
- package/tools/files/versions/restore-files-versions.d.mts +0 -45
- package/tools/files/versions/restore-files-versions.d.mts.map +0 -1
- package/tools/files/versions/restore-files-versions.d.ts +0 -45
- package/tools/files/versions/restore-files-versions.d.ts.map +0 -1
- package/tools/files/versions/restore-files-versions.js +0 -45
- package/tools/files/versions/restore-files-versions.js.map +0 -1
- package/tools/files/versions/restore-files-versions.mjs +0 -41
- package/tools/files/versions/restore-files-versions.mjs.map +0 -1
- package/tools/folders/copy-folders.d.mts +0 -45
- package/tools/folders/copy-folders.d.mts.map +0 -1
- package/tools/folders/copy-folders.d.ts +0 -45
- package/tools/folders/copy-folders.d.ts.map +0 -1
- package/tools/folders/copy-folders.js +0 -49
- package/tools/folders/copy-folders.js.map +0 -1
- package/tools/folders/copy-folders.mjs +0 -45
- package/tools/folders/copy-folders.mjs.map +0 -1
- package/tools/folders/create-folders.d.mts +0 -45
- package/tools/folders/create-folders.d.mts.map +0 -1
- package/tools/folders/create-folders.d.ts +0 -45
- package/tools/folders/create-folders.d.ts.map +0 -1
- package/tools/folders/create-folders.js +0 -45
- package/tools/folders/create-folders.js.map +0 -1
- package/tools/folders/create-folders.mjs +0 -41
- package/tools/folders/create-folders.mjs.map +0 -1
- package/tools/folders/delete-folders.d.mts +0 -45
- package/tools/folders/delete-folders.d.mts.map +0 -1
- package/tools/folders/delete-folders.d.ts +0 -45
- package/tools/folders/delete-folders.d.ts.map +0 -1
- package/tools/folders/delete-folders.js +0 -43
- package/tools/folders/delete-folders.js.map +0 -1
- package/tools/folders/delete-folders.mjs +0 -39
- package/tools/folders/delete-folders.mjs.map +0 -1
- package/tools/folders/job/get-folders-job.d.mts +0 -45
- package/tools/folders/job/get-folders-job.d.mts.map +0 -1
- package/tools/folders/job/get-folders-job.d.ts +0 -45
- package/tools/folders/job/get-folders-job.d.ts.map +0 -1
- package/tools/folders/job/get-folders-job.js +0 -42
- package/tools/folders/job/get-folders-job.js.map +0 -1
- package/tools/folders/job/get-folders-job.mjs +0 -38
- package/tools/folders/job/get-folders-job.mjs.map +0 -1
- package/tools/folders/move-folders.d.mts +0 -45
- package/tools/folders/move-folders.d.mts.map +0 -1
- package/tools/folders/move-folders.d.ts +0 -45
- package/tools/folders/move-folders.d.ts.map +0 -1
- package/tools/folders/move-folders.js +0 -45
- package/tools/folders/move-folders.js.map +0 -1
- package/tools/folders/move-folders.mjs +0 -41
- package/tools/folders/move-folders.mjs.map +0 -1
- package/tools/folders/rename-folders.d.mts +0 -45
- package/tools/folders/rename-folders.d.mts.map +0 -1
- package/tools/folders/rename-folders.d.ts +0 -45
- package/tools/folders/rename-folders.d.ts.map +0 -1
- package/tools/folders/rename-folders.js +0 -49
- package/tools/folders/rename-folders.js.map +0 -1
- package/tools/folders/rename-folders.mjs +0 -45
- package/tools/folders/rename-folders.mjs.map +0 -1
- package/tools/index.d.mts +0 -10
- package/tools/index.d.mts.map +0 -1
- package/tools/index.d.ts +0 -10
- package/tools/index.d.ts.map +0 -1
- package/tools/index.js +0 -137
- package/tools/index.js.map +0 -1
- package/tools/index.mjs +0 -130
- package/tools/index.mjs.map +0 -1
- package/tools/types.d.mts.map +0 -1
- package/tools/types.d.ts.map +0 -1
- package/tools/types.js.map +0 -1
- package/tools/types.mjs.map +0 -1
- package/tools.d.mts +0 -2
- package/tools.d.mts.map +0 -1
- package/tools.d.ts +0 -2
- package/tools.d.ts.map +0 -1
- package/tools.js +0 -18
- package/tools.js.map +0 -1
- package/tools.mjs +0 -2
- package/tools.mjs.map +0 -1
|
@@ -1,45 +0,0 @@
|
|
|
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=delete-files-versions.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-files-versions.d.mts","sourceRoot":"","sources":["../../../src/tools/files/versions/delete-files-versions.ts"],"names":[],"mappings":"OAGO,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,IAyBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAKxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBALoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAOzF,wBAA2C"}
|
|
@@ -1,45 +0,0 @@
|
|
|
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=delete-files-versions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-files-versions.d.ts","sourceRoot":"","sources":["../../../src/tools/files/versions/delete-files-versions.ts"],"names":[],"mappings":"OAGO,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,IAyBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,oEAKxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBALoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAOzF,wBAA2C"}
|
|
@@ -1,45 +0,0 @@
|
|
|
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: 'files.versions',
|
|
9
|
-
operation: 'write',
|
|
10
|
-
tags: [],
|
|
11
|
-
httpMethod: 'delete',
|
|
12
|
-
httpPath: '/v1/files/{fileId}/versions/{versionId}',
|
|
13
|
-
operationId: 'delete-file-version',
|
|
14
|
-
};
|
|
15
|
-
exports.tool = {
|
|
16
|
-
name: 'delete_files_versions',
|
|
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 deletes a non-current file version permanently. The API returns an empty response.\n\nNote: If you want to delete all versions of a file, use the delete file API.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {}\n}\n```",
|
|
18
|
-
inputSchema: {
|
|
19
|
-
type: 'object',
|
|
20
|
-
properties: {
|
|
21
|
-
fileId: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
},
|
|
24
|
-
versionId: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
},
|
|
27
|
-
jq_filter: {
|
|
28
|
-
type: 'string',
|
|
29
|
-
title: 'jq Filter',
|
|
30
|
-
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/).',
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
required: ['fileId', 'versionId'],
|
|
34
|
-
},
|
|
35
|
-
annotations: {
|
|
36
|
-
idempotentHint: true,
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
const handler = async (client, args) => {
|
|
40
|
-
const { versionId, jq_filter, ...body } = args;
|
|
41
|
-
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.files.versions.delete(versionId, body)));
|
|
42
|
-
};
|
|
43
|
-
exports.handler = handler;
|
|
44
|
-
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
45
|
-
//# sourceMappingURL=delete-files-versions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-files-versions.js","sourceRoot":"","sources":["../../../src/tools/files/versions/delete-files-versions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA0D;AAC1D,yDAA8E;AAKjE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,yCAAyC;IACnD,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,qaAAqa;IACva,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC;KAClC;IACD,WAAW,EAAE;QACX,cAAc,EAAE,IAAI;KACrB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACtD,OAAO,IAAA,2BAAmB,EACxB,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAClF,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
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: 'files.versions',
|
|
6
|
-
operation: 'write',
|
|
7
|
-
tags: [],
|
|
8
|
-
httpMethod: 'delete',
|
|
9
|
-
httpPath: '/v1/files/{fileId}/versions/{versionId}',
|
|
10
|
-
operationId: 'delete-file-version',
|
|
11
|
-
};
|
|
12
|
-
export const tool = {
|
|
13
|
-
name: 'delete_files_versions',
|
|
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 deletes a non-current file version permanently. The API returns an empty response.\n\nNote: If you want to delete all versions of a file, use the delete file API.\n\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {}\n}\n```",
|
|
15
|
-
inputSchema: {
|
|
16
|
-
type: 'object',
|
|
17
|
-
properties: {
|
|
18
|
-
fileId: {
|
|
19
|
-
type: 'string',
|
|
20
|
-
},
|
|
21
|
-
versionId: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
},
|
|
24
|
-
jq_filter: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
title: 'jq Filter',
|
|
27
|
-
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/).',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
required: ['fileId', 'versionId'],
|
|
31
|
-
},
|
|
32
|
-
annotations: {
|
|
33
|
-
idempotentHint: true,
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
export const handler = async (client, args) => {
|
|
37
|
-
const { versionId, jq_filter, ...body } = args;
|
|
38
|
-
return asTextContentResult(await maybeFilter(jq_filter, await client.files.versions.delete(versionId, body)));
|
|
39
|
-
};
|
|
40
|
-
export default { metadata, tool, handler };
|
|
41
|
-
//# sourceMappingURL=delete-files-versions.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-files-versions.mjs","sourceRoot":"","sources":["../../../src/tools/files/versions/delete-files-versions.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,gBAAgB;IAC1B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,yCAAyC;IACnD,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EACT,qaAAqa;IACva,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC;KAClC;IACD,WAAW,EAAE;QACX,cAAc,EAAE,IAAI;KACrB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACtD,OAAO,mBAAmB,CACxB,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAClF,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
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=get-files-versions.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-files-versions.d.mts","sourceRoot":"","sources":["../../../src/tools/files/versions/get-files-versions.ts"],"names":[],"mappings":"OAGO,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,IAyBlB,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"}
|
|
@@ -1,45 +0,0 @@
|
|
|
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=get-files-versions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-files-versions.d.ts","sourceRoot":"","sources":["../../../src/tools/files/versions/get-files-versions.ts"],"names":[],"mappings":"OAGO,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,IAyBlB,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"}
|
|
@@ -1,45 +0,0 @@
|
|
|
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: 'files.versions',
|
|
9
|
-
operation: 'read',
|
|
10
|
-
tags: [],
|
|
11
|
-
httpMethod: 'get',
|
|
12
|
-
httpPath: '/v1/files/{fileId}/versions/{versionId}',
|
|
13
|
-
operationId: 'get-file-version-details',
|
|
14
|
-
};
|
|
15
|
-
exports.tool = {
|
|
16
|
-
name: 'get_files_versions',
|
|
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 returns an object with details or attributes of a file version.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/file',\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 }\n}\n```",
|
|
18
|
-
inputSchema: {
|
|
19
|
-
type: 'object',
|
|
20
|
-
properties: {
|
|
21
|
-
fileId: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
},
|
|
24
|
-
versionId: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
},
|
|
27
|
-
jq_filter: {
|
|
28
|
-
type: 'string',
|
|
29
|
-
title: 'jq Filter',
|
|
30
|
-
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/).',
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
required: ['fileId', 'versionId'],
|
|
34
|
-
},
|
|
35
|
-
annotations: {
|
|
36
|
-
readOnlyHint: true,
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
const handler = async (client, args) => {
|
|
40
|
-
const { versionId, jq_filter, ...body } = args;
|
|
41
|
-
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.files.versions.get(versionId, body)));
|
|
42
|
-
};
|
|
43
|
-
exports.handler = handler;
|
|
44
|
-
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
45
|
-
//# sourceMappingURL=get-files-versions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-files-versions.js","sourceRoot":"","sources":["../../../src/tools/files/versions/get-files-versions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA0D;AAC1D,yDAA8E;AAKjE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,yCAAyC;IACnD,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,2wKAA2wK;IAC7wK,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC;KAClC;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACtD,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AAC7G,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
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: 'files.versions',
|
|
6
|
-
operation: 'read',
|
|
7
|
-
tags: [],
|
|
8
|
-
httpMethod: 'get',
|
|
9
|
-
httpPath: '/v1/files/{fileId}/versions/{versionId}',
|
|
10
|
-
operationId: 'get-file-version-details',
|
|
11
|
-
};
|
|
12
|
-
export const tool = {
|
|
13
|
-
name: 'get_files_versions',
|
|
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 returns an object with details or attributes of a file version.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/file',\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 }\n}\n```",
|
|
15
|
-
inputSchema: {
|
|
16
|
-
type: 'object',
|
|
17
|
-
properties: {
|
|
18
|
-
fileId: {
|
|
19
|
-
type: 'string',
|
|
20
|
-
},
|
|
21
|
-
versionId: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
},
|
|
24
|
-
jq_filter: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
title: 'jq Filter',
|
|
27
|
-
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/).',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
required: ['fileId', 'versionId'],
|
|
31
|
-
},
|
|
32
|
-
annotations: {
|
|
33
|
-
readOnlyHint: true,
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
export const handler = async (client, args) => {
|
|
37
|
-
const { versionId, jq_filter, ...body } = args;
|
|
38
|
-
return asTextContentResult(await maybeFilter(jq_filter, await client.files.versions.get(versionId, body)));
|
|
39
|
-
};
|
|
40
|
-
export default { metadata, tool, handler };
|
|
41
|
-
//# sourceMappingURL=get-files-versions.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-files-versions.mjs","sourceRoot":"","sources":["../../../src/tools/files/versions/get-files-versions.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,gBAAgB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,yCAAyC;IACnD,WAAW,EAAE,0BAA0B;CACxC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EACT,2wKAA2wK;IAC7wK,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC;KAClC;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,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACtD,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AAC7G,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
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=list-files-versions.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-files-versions.d.mts","sourceRoot":"","sources":["../../../src/tools/files/versions/list-files-versions.ts"],"names":[],"mappings":"OAGO,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,IAsBlB,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"}
|
|
@@ -1,45 +0,0 @@
|
|
|
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=list-files-versions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-files-versions.d.ts","sourceRoot":"","sources":["../../../src/tools/files/versions/list-files-versions.ts"],"names":[],"mappings":"OAGO,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,IAsBlB,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"}
|
|
@@ -1,42 +0,0 @@
|
|
|
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: 'files.versions',
|
|
9
|
-
operation: 'read',
|
|
10
|
-
tags: [],
|
|
11
|
-
httpMethod: 'get',
|
|
12
|
-
httpPath: '/v1/files/{fileId}/versions',
|
|
13
|
-
operationId: 'list-file-versions',
|
|
14
|
-
};
|
|
15
|
-
exports.tool = {
|
|
16
|
-
name: 'list_files_versions',
|
|
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 returns details of all versions of a file.\n\n\n# Response Schema\n```json\n{\n type: 'array',\n items: {\n $ref: '#/$defs/file'\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 }\n}\n```",
|
|
18
|
-
inputSchema: {
|
|
19
|
-
type: 'object',
|
|
20
|
-
properties: {
|
|
21
|
-
fileId: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
},
|
|
24
|
-
jq_filter: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
title: 'jq Filter',
|
|
27
|
-
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/).',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
required: ['fileId'],
|
|
31
|
-
},
|
|
32
|
-
annotations: {
|
|
33
|
-
readOnlyHint: true,
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
const handler = async (client, args) => {
|
|
37
|
-
const { fileId, jq_filter, ...body } = args;
|
|
38
|
-
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.files.versions.list(fileId)));
|
|
39
|
-
};
|
|
40
|
-
exports.handler = handler;
|
|
41
|
-
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
42
|
-
//# sourceMappingURL=list-files-versions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-files-versions.js","sourceRoot":"","sources":["../../../src/tools/files/versions/list-files-versions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA0D;AAC1D,yDAA8E;AAKjE,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,6BAA6B;IACvC,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,6xKAA6xK;IAC/xK,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACnD,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACrG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
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: 'files.versions',
|
|
6
|
-
operation: 'read',
|
|
7
|
-
tags: [],
|
|
8
|
-
httpMethod: 'get',
|
|
9
|
-
httpPath: '/v1/files/{fileId}/versions',
|
|
10
|
-
operationId: 'list-file-versions',
|
|
11
|
-
};
|
|
12
|
-
export const tool = {
|
|
13
|
-
name: 'list_files_versions',
|
|
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 returns details of all versions of a file.\n\n\n# Response Schema\n```json\n{\n type: 'array',\n items: {\n $ref: '#/$defs/file'\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 }\n}\n```",
|
|
15
|
-
inputSchema: {
|
|
16
|
-
type: 'object',
|
|
17
|
-
properties: {
|
|
18
|
-
fileId: {
|
|
19
|
-
type: 'string',
|
|
20
|
-
},
|
|
21
|
-
jq_filter: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
title: 'jq Filter',
|
|
24
|
-
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/).',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
required: ['fileId'],
|
|
28
|
-
},
|
|
29
|
-
annotations: {
|
|
30
|
-
readOnlyHint: true,
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
export const handler = async (client, args) => {
|
|
34
|
-
const { fileId, jq_filter, ...body } = args;
|
|
35
|
-
return asTextContentResult(await maybeFilter(jq_filter, await client.files.versions.list(fileId)));
|
|
36
|
-
};
|
|
37
|
-
export default { metadata, tool, handler };
|
|
38
|
-
//# sourceMappingURL=list-files-versions.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-files-versions.mjs","sourceRoot":"","sources":["../../../src/tools/files/versions/list-files-versions.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,gBAAgB;IAC1B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,6BAA6B;IACvC,WAAW,EAAE,oBAAoB;CAClC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EACT,6xKAA6xK;IAC/xK,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;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,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACnD,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACrG,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|