@codeqr/ts-mcp 0.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 +201 -0
- package/README.md +267 -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 +157 -0
- package/code-tool.js.map +1 -0
- package/code-tool.mjs +121 -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/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 +22 -0
- package/headers.js.map +1 -0
- package/headers.mjs +18 -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 +19 -0
- package/options.d.mts.map +1 -0
- package/options.d.ts +19 -0
- package/options.d.ts.map +1 -0
- package/options.js +417 -0
- package/options.js.map +1 -0
- package/options.mjs +410 -0
- package/options.mjs.map +1 -0
- package/package.json +206 -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 +170 -0
- package/server.js.map +1 -0
- package/server.mjs +156 -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 +146 -0
- package/src/compat.ts +483 -0
- package/src/dynamic-tools.ts +153 -0
- package/src/filtering.ts +14 -0
- package/src/headers.ts +23 -0
- package/src/http.ts +127 -0
- package/src/index.ts +108 -0
- package/src/options.ts +456 -0
- package/src/server.ts +204 -0
- package/src/stdio.ts +13 -0
- package/src/tools/analytics/retrieve-analytics.ts +434 -0
- package/src/tools/domains/create-domains.ts +59 -0
- package/src/tools/domains/delete-domains.ts +48 -0
- package/src/tools/domains/list-domains.ts +61 -0
- package/src/tools/domains/update-domains.ts +63 -0
- package/src/tools/events/list-events.ts +414 -0
- package/src/tools/index.ts +133 -0
- package/src/tools/links/bulk/create-links-bulk.ts +955 -0
- package/src/tools/links/bulk/delete-links-bulk.ts +52 -0
- package/src/tools/links/count-links.ts +946 -0
- package/src/tools/links/create-links.ts +946 -0
- package/src/tools/links/delete-links.ts +49 -0
- package/src/tools/links/list-links.ts +969 -0
- package/src/tools/links/retrieve-info-links.ts +68 -0
- package/src/tools/links/update-links.ts +953 -0
- package/src/tools/links/upsert-links.ts +947 -0
- package/src/tools/projects/list-projects.ts +44 -0
- package/src/tools/projects/retrieve-projects.ts +49 -0
- package/src/tools/qrcodes/bulk/create-qrcodes-bulk.ts +1066 -0
- package/src/tools/qrcodes/bulk/delete-qrcodes-bulk.ts +52 -0
- package/src/tools/qrcodes/count-qrcodes.ts +209 -0
- package/src/tools/qrcodes/create-qrcodes.ts +1056 -0
- package/src/tools/qrcodes/delete-qrcodes.ts +49 -0
- package/src/tools/qrcodes/list-qrcodes.ts +210 -0
- package/src/tools/qrcodes/retrieve-qrcodes.ts +60 -0
- package/src/tools/qrcodes/update-qrcodes.ts +1063 -0
- package/src/tools/qrcodes/upsert-qrcodes.ts +1057 -0
- package/src/tools/tags/create-tags.ts +52 -0
- package/src/tools/tags/delete-tags.ts +48 -0
- package/src/tools/tags/list-tags.ts +80 -0
- package/src/tools/tags/update-tags.ts +56 -0
- package/src/tools/track/track-lead-track.ts +72 -0
- package/src/tools/track/track-sale-track.ts +74 -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/analytics/retrieve-analytics.d.mts +45 -0
- package/tools/analytics/retrieve-analytics.d.mts.map +1 -0
- package/tools/analytics/retrieve-analytics.d.ts +45 -0
- package/tools/analytics/retrieve-analytics.d.ts.map +1 -0
- package/tools/analytics/retrieve-analytics.js +426 -0
- package/tools/analytics/retrieve-analytics.js.map +1 -0
- package/tools/analytics/retrieve-analytics.mjs +422 -0
- package/tools/analytics/retrieve-analytics.mjs.map +1 -0
- package/tools/domains/create-domains.d.mts +45 -0
- package/tools/domains/create-domains.d.mts.map +1 -0
- package/tools/domains/create-domains.d.ts +45 -0
- package/tools/domains/create-domains.d.ts.map +1 -0
- package/tools/domains/create-domains.js +53 -0
- package/tools/domains/create-domains.js.map +1 -0
- package/tools/domains/create-domains.mjs +49 -0
- package/tools/domains/create-domains.mjs.map +1 -0
- package/tools/domains/delete-domains.d.mts +45 -0
- package/tools/domains/delete-domains.d.mts.map +1 -0
- package/tools/domains/delete-domains.d.ts +45 -0
- package/tools/domains/delete-domains.d.ts.map +1 -0
- package/tools/domains/delete-domains.js +43 -0
- package/tools/domains/delete-domains.js.map +1 -0
- package/tools/domains/delete-domains.mjs +39 -0
- package/tools/domains/delete-domains.mjs.map +1 -0
- package/tools/domains/list-domains.d.mts +45 -0
- package/tools/domains/list-domains.d.mts.map +1 -0
- package/tools/domains/list-domains.d.ts +45 -0
- package/tools/domains/list-domains.d.ts.map +1 -0
- package/tools/domains/list-domains.js +55 -0
- package/tools/domains/list-domains.js.map +1 -0
- package/tools/domains/list-domains.mjs +51 -0
- package/tools/domains/list-domains.mjs.map +1 -0
- package/tools/domains/update-domains.d.mts +45 -0
- package/tools/domains/update-domains.d.mts.map +1 -0
- package/tools/domains/update-domains.d.ts +45 -0
- package/tools/domains/update-domains.d.ts.map +1 -0
- package/tools/domains/update-domains.js +57 -0
- package/tools/domains/update-domains.js.map +1 -0
- package/tools/domains/update-domains.mjs +53 -0
- package/tools/domains/update-domains.mjs.map +1 -0
- package/tools/events/list-events.d.mts +45 -0
- package/tools/events/list-events.d.mts.map +1 -0
- package/tools/events/list-events.d.ts +45 -0
- package/tools/events/list-events.d.ts.map +1 -0
- package/tools/events/list-events.js +406 -0
- package/tools/events/list-events.js.map +1 -0
- package/tools/events/list-events.mjs +402 -0
- package/tools/events/list-events.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 +117 -0
- package/tools/index.js.map +1 -0
- package/tools/index.mjs +110 -0
- package/tools/index.mjs.map +1 -0
- package/tools/links/bulk/create-links-bulk.d.mts +45 -0
- package/tools/links/bulk/create-links-bulk.d.mts.map +1 -0
- package/tools/links/bulk/create-links-bulk.d.ts +45 -0
- package/tools/links/bulk/create-links-bulk.d.ts.map +1 -0
- package/tools/links/bulk/create-links-bulk.js +940 -0
- package/tools/links/bulk/create-links-bulk.js.map +1 -0
- package/tools/links/bulk/create-links-bulk.mjs +936 -0
- package/tools/links/bulk/create-links-bulk.mjs.map +1 -0
- package/tools/links/bulk/delete-links-bulk.d.mts +45 -0
- package/tools/links/bulk/delete-links-bulk.d.mts.map +1 -0
- package/tools/links/bulk/delete-links-bulk.d.ts +45 -0
- package/tools/links/bulk/delete-links-bulk.d.ts.map +1 -0
- package/tools/links/bulk/delete-links-bulk.js +46 -0
- package/tools/links/bulk/delete-links-bulk.js.map +1 -0
- package/tools/links/bulk/delete-links-bulk.mjs +42 -0
- package/tools/links/bulk/delete-links-bulk.mjs.map +1 -0
- package/tools/links/count-links.d.mts +45 -0
- package/tools/links/count-links.d.mts.map +1 -0
- package/tools/links/count-links.d.ts +45 -0
- package/tools/links/count-links.d.ts.map +1 -0
- package/tools/links/count-links.js +935 -0
- package/tools/links/count-links.js.map +1 -0
- package/tools/links/count-links.mjs +931 -0
- package/tools/links/count-links.mjs.map +1 -0
- package/tools/links/create-links.d.mts +45 -0
- package/tools/links/create-links.d.mts.map +1 -0
- package/tools/links/create-links.d.ts +45 -0
- package/tools/links/create-links.d.ts.map +1 -0
- package/tools/links/create-links.js +931 -0
- package/tools/links/create-links.js.map +1 -0
- package/tools/links/create-links.mjs +927 -0
- package/tools/links/create-links.mjs.map +1 -0
- package/tools/links/delete-links.d.mts +45 -0
- package/tools/links/delete-links.d.mts.map +1 -0
- package/tools/links/delete-links.d.ts +45 -0
- package/tools/links/delete-links.d.ts.map +1 -0
- package/tools/links/delete-links.js +43 -0
- package/tools/links/delete-links.js.map +1 -0
- package/tools/links/delete-links.mjs +39 -0
- package/tools/links/delete-links.mjs.map +1 -0
- package/tools/links/list-links.d.mts +45 -0
- package/tools/links/list-links.d.mts.map +1 -0
- package/tools/links/list-links.d.ts +45 -0
- package/tools/links/list-links.d.ts.map +1 -0
- package/tools/links/list-links.js +957 -0
- package/tools/links/list-links.js.map +1 -0
- package/tools/links/list-links.mjs +953 -0
- package/tools/links/list-links.mjs.map +1 -0
- package/tools/links/retrieve-info-links.d.mts +45 -0
- package/tools/links/retrieve-info-links.d.mts.map +1 -0
- package/tools/links/retrieve-info-links.d.ts +45 -0
- package/tools/links/retrieve-info-links.d.ts.map +1 -0
- package/tools/links/retrieve-info-links.js +59 -0
- package/tools/links/retrieve-info-links.js.map +1 -0
- package/tools/links/retrieve-info-links.mjs +55 -0
- package/tools/links/retrieve-info-links.mjs.map +1 -0
- package/tools/links/update-links.d.mts +45 -0
- package/tools/links/update-links.d.mts.map +1 -0
- package/tools/links/update-links.d.ts +45 -0
- package/tools/links/update-links.d.ts.map +1 -0
- package/tools/links/update-links.js +937 -0
- package/tools/links/update-links.js.map +1 -0
- package/tools/links/update-links.mjs +933 -0
- package/tools/links/update-links.mjs.map +1 -0
- package/tools/links/upsert-links.d.mts +45 -0
- package/tools/links/upsert-links.d.mts.map +1 -0
- package/tools/links/upsert-links.d.ts +45 -0
- package/tools/links/upsert-links.d.ts.map +1 -0
- package/tools/links/upsert-links.js +931 -0
- package/tools/links/upsert-links.js.map +1 -0
- package/tools/links/upsert-links.mjs +927 -0
- package/tools/links/upsert-links.mjs.map +1 -0
- package/tools/projects/list-projects.d.mts +45 -0
- package/tools/projects/list-projects.d.mts.map +1 -0
- package/tools/projects/list-projects.d.ts +45 -0
- package/tools/projects/list-projects.d.ts.map +1 -0
- package/tools/projects/list-projects.js +39 -0
- package/tools/projects/list-projects.js.map +1 -0
- package/tools/projects/list-projects.mjs +35 -0
- package/tools/projects/list-projects.mjs.map +1 -0
- package/tools/projects/retrieve-projects.d.mts +45 -0
- package/tools/projects/retrieve-projects.d.mts.map +1 -0
- package/tools/projects/retrieve-projects.d.ts +45 -0
- package/tools/projects/retrieve-projects.d.ts.map +1 -0
- package/tools/projects/retrieve-projects.js +43 -0
- package/tools/projects/retrieve-projects.js.map +1 -0
- package/tools/projects/retrieve-projects.mjs +39 -0
- package/tools/projects/retrieve-projects.mjs.map +1 -0
- package/tools/qrcodes/bulk/create-qrcodes-bulk.d.mts +45 -0
- package/tools/qrcodes/bulk/create-qrcodes-bulk.d.mts.map +1 -0
- package/tools/qrcodes/bulk/create-qrcodes-bulk.d.ts +45 -0
- package/tools/qrcodes/bulk/create-qrcodes-bulk.d.ts.map +1 -0
- package/tools/qrcodes/bulk/create-qrcodes-bulk.js +1052 -0
- package/tools/qrcodes/bulk/create-qrcodes-bulk.js.map +1 -0
- package/tools/qrcodes/bulk/create-qrcodes-bulk.mjs +1048 -0
- package/tools/qrcodes/bulk/create-qrcodes-bulk.mjs.map +1 -0
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.mts +45 -0
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.mts.map +1 -0
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.ts +45 -0
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.ts.map +1 -0
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.js +46 -0
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.js.map +1 -0
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.mjs +42 -0
- package/tools/qrcodes/bulk/delete-qrcodes-bulk.mjs.map +1 -0
- package/tools/qrcodes/count-qrcodes.d.mts +45 -0
- package/tools/qrcodes/count-qrcodes.d.mts.map +1 -0
- package/tools/qrcodes/count-qrcodes.d.ts +45 -0
- package/tools/qrcodes/count-qrcodes.d.ts.map +1 -0
- package/tools/qrcodes/count-qrcodes.js +199 -0
- package/tools/qrcodes/count-qrcodes.js.map +1 -0
- package/tools/qrcodes/count-qrcodes.mjs +195 -0
- package/tools/qrcodes/count-qrcodes.mjs.map +1 -0
- package/tools/qrcodes/create-qrcodes.d.mts +45 -0
- package/tools/qrcodes/create-qrcodes.d.mts.map +1 -0
- package/tools/qrcodes/create-qrcodes.d.ts +45 -0
- package/tools/qrcodes/create-qrcodes.d.ts.map +1 -0
- package/tools/qrcodes/create-qrcodes.js +1043 -0
- package/tools/qrcodes/create-qrcodes.js.map +1 -0
- package/tools/qrcodes/create-qrcodes.mjs +1039 -0
- package/tools/qrcodes/create-qrcodes.mjs.map +1 -0
- package/tools/qrcodes/delete-qrcodes.d.mts +45 -0
- package/tools/qrcodes/delete-qrcodes.d.mts.map +1 -0
- package/tools/qrcodes/delete-qrcodes.d.ts +45 -0
- package/tools/qrcodes/delete-qrcodes.d.ts.map +1 -0
- package/tools/qrcodes/delete-qrcodes.js +43 -0
- package/tools/qrcodes/delete-qrcodes.js.map +1 -0
- package/tools/qrcodes/delete-qrcodes.mjs +39 -0
- package/tools/qrcodes/delete-qrcodes.mjs.map +1 -0
- package/tools/qrcodes/list-qrcodes.d.mts +45 -0
- package/tools/qrcodes/list-qrcodes.d.mts.map +1 -0
- package/tools/qrcodes/list-qrcodes.d.ts +45 -0
- package/tools/qrcodes/list-qrcodes.d.ts.map +1 -0
- package/tools/qrcodes/list-qrcodes.js +201 -0
- package/tools/qrcodes/list-qrcodes.js.map +1 -0
- package/tools/qrcodes/list-qrcodes.mjs +197 -0
- package/tools/qrcodes/list-qrcodes.mjs.map +1 -0
- package/tools/qrcodes/retrieve-qrcodes.d.mts +45 -0
- package/tools/qrcodes/retrieve-qrcodes.d.mts.map +1 -0
- package/tools/qrcodes/retrieve-qrcodes.d.ts +45 -0
- package/tools/qrcodes/retrieve-qrcodes.d.ts.map +1 -0
- package/tools/qrcodes/retrieve-qrcodes.js +53 -0
- package/tools/qrcodes/retrieve-qrcodes.js.map +1 -0
- package/tools/qrcodes/retrieve-qrcodes.mjs +49 -0
- package/tools/qrcodes/retrieve-qrcodes.mjs.map +1 -0
- package/tools/qrcodes/update-qrcodes.d.mts +45 -0
- package/tools/qrcodes/update-qrcodes.d.mts.map +1 -0
- package/tools/qrcodes/update-qrcodes.d.ts +45 -0
- package/tools/qrcodes/update-qrcodes.d.ts.map +1 -0
- package/tools/qrcodes/update-qrcodes.js +1049 -0
- package/tools/qrcodes/update-qrcodes.js.map +1 -0
- package/tools/qrcodes/update-qrcodes.mjs +1045 -0
- package/tools/qrcodes/update-qrcodes.mjs.map +1 -0
- package/tools/qrcodes/upsert-qrcodes.d.mts +45 -0
- package/tools/qrcodes/upsert-qrcodes.d.mts.map +1 -0
- package/tools/qrcodes/upsert-qrcodes.d.ts +45 -0
- package/tools/qrcodes/upsert-qrcodes.d.ts.map +1 -0
- package/tools/qrcodes/upsert-qrcodes.js +1043 -0
- package/tools/qrcodes/upsert-qrcodes.js.map +1 -0
- package/tools/qrcodes/upsert-qrcodes.mjs +1039 -0
- package/tools/qrcodes/upsert-qrcodes.mjs.map +1 -0
- package/tools/tags/create-tags.d.mts +45 -0
- package/tools/tags/create-tags.d.mts.map +1 -0
- package/tools/tags/create-tags.d.ts +45 -0
- package/tools/tags/create-tags.d.ts.map +1 -0
- package/tools/tags/create-tags.js +46 -0
- package/tools/tags/create-tags.js.map +1 -0
- package/tools/tags/create-tags.mjs +42 -0
- package/tools/tags/create-tags.mjs.map +1 -0
- package/tools/tags/delete-tags.d.mts +45 -0
- package/tools/tags/delete-tags.d.mts.map +1 -0
- package/tools/tags/delete-tags.d.ts +45 -0
- package/tools/tags/delete-tags.d.ts.map +1 -0
- package/tools/tags/delete-tags.js +43 -0
- package/tools/tags/delete-tags.js.map +1 -0
- package/tools/tags/delete-tags.mjs +39 -0
- package/tools/tags/delete-tags.mjs.map +1 -0
- package/tools/tags/list-tags.d.mts +45 -0
- package/tools/tags/list-tags.d.mts.map +1 -0
- package/tools/tags/list-tags.d.ts +45 -0
- package/tools/tags/list-tags.d.ts.map +1 -0
- package/tools/tags/list-tags.js +75 -0
- package/tools/tags/list-tags.js.map +1 -0
- package/tools/tags/list-tags.mjs +71 -0
- package/tools/tags/list-tags.mjs.map +1 -0
- package/tools/tags/update-tags.d.mts +45 -0
- package/tools/tags/update-tags.d.mts.map +1 -0
- package/tools/tags/update-tags.d.ts +45 -0
- package/tools/tags/update-tags.d.ts.map +1 -0
- package/tools/tags/update-tags.js +51 -0
- package/tools/tags/update-tags.js.map +1 -0
- package/tools/tags/update-tags.mjs +47 -0
- package/tools/tags/update-tags.mjs.map +1 -0
- package/tools/track/track-lead-track.d.mts +45 -0
- package/tools/track/track-lead-track.d.mts.map +1 -0
- package/tools/track/track-lead-track.d.ts +45 -0
- package/tools/track/track-lead-track.d.ts.map +1 -0
- package/tools/track/track-lead-track.js +66 -0
- package/tools/track/track-lead-track.js.map +1 -0
- package/tools/track/track-lead-track.mjs +62 -0
- package/tools/track/track-lead-track.mjs.map +1 -0
- package/tools/track/track-sale-track.d.mts +45 -0
- package/tools/track/track-sale-track.d.mts.map +1 -0
- package/tools/track/track-sale-track.d.ts +45 -0
- package/tools/track/track-sale-track.d.ts.map +1 -0
- package/tools/track/track-sale-track.js +67 -0
- package/tools/track/track-sale-track.js.map +1 -0
- package/tools/track/track-sale-track.mjs +63 -0
- package/tools/track/track-sale-track.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,45 @@
|
|
|
1
|
+
import { Metadata } from '@codeqr/ts-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import Codeqr from '@codeqr/ts';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-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: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=delete-domains.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-domains.d.mts","sourceRoot":"","sources":["../../src/tools/domains/delete-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKvF,wBAA2C"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from '@codeqr/ts-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import Codeqr from '@codeqr/ts';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-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: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=delete-domains.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-domains.d.ts","sourceRoot":"","sources":["../../src/tools/domains/delete-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKvF,wBAA2C"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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("@codeqr/ts-mcp/filtering");
|
|
6
|
+
const types_1 = require("@codeqr/ts-mcp/tools/types");
|
|
7
|
+
exports.metadata = {
|
|
8
|
+
resource: 'domains',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
httpMethod: 'delete',
|
|
12
|
+
httpPath: '/domains/{slug}',
|
|
13
|
+
operationId: 'deleteDomain',
|
|
14
|
+
};
|
|
15
|
+
exports.tool = {
|
|
16
|
+
name: 'delete_domains',
|
|
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\nDelete a domain from a workspace. It cannot be undone. This will also delete all the links associated with the domain.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n slug: {\n type: 'string',\n description: 'The domain name.'\n }\n },\n required: [ 'slug'\n ]\n}\n```",
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
slug: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'The domain name.',
|
|
24
|
+
},
|
|
25
|
+
jq_filter: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
title: 'jq Filter',
|
|
28
|
+
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/).',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
required: ['slug'],
|
|
32
|
+
},
|
|
33
|
+
annotations: {
|
|
34
|
+
idempotentHint: true,
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
const handler = async (client, args) => {
|
|
38
|
+
const { slug, jq_filter, ...body } = args;
|
|
39
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.domains.delete(slug)));
|
|
40
|
+
};
|
|
41
|
+
exports.handler = handler;
|
|
42
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
43
|
+
//# sourceMappingURL=delete-domains.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-domains.js","sourceRoot":"","sources":["../../src/tools/domains/delete-domains.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EACT,meAAme;IACre,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kBAAkB;aAChC;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,MAAM,CAAC;KACnB;IACD,WAAW,EAAE;QACX,cAAc,EAAE,IAAI;KACrB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAc,EAAE,IAAyC,EAAE,EAAE;IACzF,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACjD,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC9F,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { maybeFilter } from '@codeqr/ts-mcp/filtering';
|
|
3
|
+
import { asTextContentResult } from '@codeqr/ts-mcp/tools/types';
|
|
4
|
+
export const metadata = {
|
|
5
|
+
resource: 'domains',
|
|
6
|
+
operation: 'write',
|
|
7
|
+
tags: [],
|
|
8
|
+
httpMethod: 'delete',
|
|
9
|
+
httpPath: '/domains/{slug}',
|
|
10
|
+
operationId: 'deleteDomain',
|
|
11
|
+
};
|
|
12
|
+
export const tool = {
|
|
13
|
+
name: 'delete_domains',
|
|
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\nDelete a domain from a workspace. It cannot be undone. This will also delete all the links associated with the domain.\n\n# Response Schema\n```json\n{\n type: 'object',\n properties: {\n slug: {\n type: 'string',\n description: 'The domain name.'\n }\n },\n required: [ 'slug'\n ]\n}\n```",
|
|
15
|
+
inputSchema: {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
slug: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
description: 'The domain name.',
|
|
21
|
+
},
|
|
22
|
+
jq_filter: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
title: 'jq Filter',
|
|
25
|
+
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/).',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
required: ['slug'],
|
|
29
|
+
},
|
|
30
|
+
annotations: {
|
|
31
|
+
idempotentHint: true,
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
export const handler = async (client, args) => {
|
|
35
|
+
const { slug, jq_filter, ...body } = args;
|
|
36
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.domains.delete(slug)));
|
|
37
|
+
};
|
|
38
|
+
export default { metadata, tool, handler };
|
|
39
|
+
//# sourceMappingURL=delete-domains.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-domains.mjs","sourceRoot":"","sources":["../../src/tools/domains/delete-domains.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EACT,meAAme;IACre,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kBAAkB;aAChC;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,MAAM,CAAC;KACnB;IACD,WAAW,EAAE;QACX,cAAc,EAAE,IAAI;KACrB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAc,EAAE,IAAyC,EAAE,EAAE;IACzF,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACjD,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC9F,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from '@codeqr/ts-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import Codeqr from '@codeqr/ts';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-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: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=list-domains.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-domains.d.mts","sourceRoot":"","sources":["../../src/tools/domains/list-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAoClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKvF,wBAA2C"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from '@codeqr/ts-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import Codeqr from '@codeqr/ts';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-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: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=list-domains.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-domains.d.ts","sourceRoot":"","sources":["../../src/tools/domains/list-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAoClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKvF,wBAA2C"}
|
|
@@ -0,0 +1,55 @@
|
|
|
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("@codeqr/ts-mcp/filtering");
|
|
6
|
+
const types_1 = require("@codeqr/ts-mcp/tools/types");
|
|
7
|
+
exports.metadata = {
|
|
8
|
+
resource: 'domains',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
httpMethod: 'get',
|
|
12
|
+
httpPath: '/domains',
|
|
13
|
+
operationId: 'listDomains',
|
|
14
|
+
};
|
|
15
|
+
exports.tool = {
|
|
16
|
+
name: 'list_domains',
|
|
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\nRetrieve a list of domains associated with the authenticated workspace.\n\n# Response Schema\n```json\n{\n type: 'array',\n items: {\n $ref: '#/$defs/domain'\n },\n $defs: {\n domain: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier of the domain.'\n },\n archived: {\n type: 'boolean',\n description: 'Whether the domain is archived.'\n },\n createdAt: {\n type: 'string',\n description: 'The date the domain was created.'\n },\n expiredUrl: {\n type: 'string',\n description: 'The URL to redirect to when a link under this domain has expired.'\n },\n placeholder: {\n type: 'string',\n description: 'Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.'\n },\n primary: {\n type: 'boolean',\n description: 'Whether the domain is the primary domain for the project.'\n },\n slug: {\n type: 'string',\n description: 'The domain name.'\n },\n updatedAt: {\n type: 'string',\n description: 'The date the domain was last updated.'\n },\n verified: {\n type: 'boolean',\n description: 'Whether the domain is verified.'\n }\n },\n required: [ 'id',\n 'archived',\n 'createdAt',\n 'expiredUrl',\n 'placeholder',\n 'primary',\n 'slug',\n 'updatedAt',\n 'verified'\n ]\n }\n }\n}\n```",
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
archived: {
|
|
22
|
+
type: 'boolean',
|
|
23
|
+
description: 'Whether to include archived domains in the response. Defaults to `false` if not provided.',
|
|
24
|
+
},
|
|
25
|
+
page: {
|
|
26
|
+
type: 'number',
|
|
27
|
+
description: 'The page number for pagination.',
|
|
28
|
+
},
|
|
29
|
+
pageSize: {
|
|
30
|
+
type: 'number',
|
|
31
|
+
description: 'The number of items per page.',
|
|
32
|
+
},
|
|
33
|
+
search: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'The search term to filter the domains by.',
|
|
36
|
+
},
|
|
37
|
+
jq_filter: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
title: 'jq Filter',
|
|
40
|
+
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/).',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
required: [],
|
|
44
|
+
},
|
|
45
|
+
annotations: {
|
|
46
|
+
readOnlyHint: true,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
const handler = async (client, args) => {
|
|
50
|
+
const { jq_filter, ...body } = args;
|
|
51
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.domains.list(body)));
|
|
52
|
+
};
|
|
53
|
+
exports.handler = handler;
|
|
54
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
55
|
+
//# sourceMappingURL=list-domains.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-domains.js","sourceRoot":"","sources":["../../src/tools/domains/list-domains.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EACT,yzDAAyzD;IAC3zD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,2FAA2F;aAC9F;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;aAC/C;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+BAA+B;aAC7C;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;aACzD;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;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAc,EAAE,IAAyC,EAAE,EAAE;IACzF,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC5F,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { maybeFilter } from '@codeqr/ts-mcp/filtering';
|
|
3
|
+
import { asTextContentResult } from '@codeqr/ts-mcp/tools/types';
|
|
4
|
+
export const metadata = {
|
|
5
|
+
resource: 'domains',
|
|
6
|
+
operation: 'read',
|
|
7
|
+
tags: [],
|
|
8
|
+
httpMethod: 'get',
|
|
9
|
+
httpPath: '/domains',
|
|
10
|
+
operationId: 'listDomains',
|
|
11
|
+
};
|
|
12
|
+
export const tool = {
|
|
13
|
+
name: 'list_domains',
|
|
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\nRetrieve a list of domains associated with the authenticated workspace.\n\n# Response Schema\n```json\n{\n type: 'array',\n items: {\n $ref: '#/$defs/domain'\n },\n $defs: {\n domain: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier of the domain.'\n },\n archived: {\n type: 'boolean',\n description: 'Whether the domain is archived.'\n },\n createdAt: {\n type: 'string',\n description: 'The date the domain was created.'\n },\n expiredUrl: {\n type: 'string',\n description: 'The URL to redirect to when a link under this domain has expired.'\n },\n placeholder: {\n type: 'string',\n description: 'Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.'\n },\n primary: {\n type: 'boolean',\n description: 'Whether the domain is the primary domain for the project.'\n },\n slug: {\n type: 'string',\n description: 'The domain name.'\n },\n updatedAt: {\n type: 'string',\n description: 'The date the domain was last updated.'\n },\n verified: {\n type: 'boolean',\n description: 'Whether the domain is verified.'\n }\n },\n required: [ 'id',\n 'archived',\n 'createdAt',\n 'expiredUrl',\n 'placeholder',\n 'primary',\n 'slug',\n 'updatedAt',\n 'verified'\n ]\n }\n }\n}\n```",
|
|
15
|
+
inputSchema: {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
archived: {
|
|
19
|
+
type: 'boolean',
|
|
20
|
+
description: 'Whether to include archived domains in the response. Defaults to `false` if not provided.',
|
|
21
|
+
},
|
|
22
|
+
page: {
|
|
23
|
+
type: 'number',
|
|
24
|
+
description: 'The page number for pagination.',
|
|
25
|
+
},
|
|
26
|
+
pageSize: {
|
|
27
|
+
type: 'number',
|
|
28
|
+
description: 'The number of items per page.',
|
|
29
|
+
},
|
|
30
|
+
search: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
description: 'The search term to filter the domains by.',
|
|
33
|
+
},
|
|
34
|
+
jq_filter: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
title: 'jq Filter',
|
|
37
|
+
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/).',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
required: [],
|
|
41
|
+
},
|
|
42
|
+
annotations: {
|
|
43
|
+
readOnlyHint: true,
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
export const handler = async (client, args) => {
|
|
47
|
+
const { jq_filter, ...body } = args;
|
|
48
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.domains.list(body)));
|
|
49
|
+
};
|
|
50
|
+
export default { metadata, tool, handler };
|
|
51
|
+
//# sourceMappingURL=list-domains.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-domains.mjs","sourceRoot":"","sources":["../../src/tools/domains/list-domains.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC/C,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EACT,yzDAAyzD;IAC3zD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,2FAA2F;aAC9F;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;aAC/C;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+BAA+B;aAC7C;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;aACzD;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,MAAc,EAAE,IAAyC,EAAE,EAAE;IACzF,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC5F,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from '@codeqr/ts-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import Codeqr from '@codeqr/ts';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-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: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=update-domains.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-domains.d.mts","sourceRoot":"","sources":["../../src/tools/domains/update-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKvF,wBAA2C"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Metadata } from '@codeqr/ts-mcp/tools/types';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import Codeqr from '@codeqr/ts';
|
|
4
|
+
export declare const metadata: Metadata;
|
|
5
|
+
export declare const tool: Tool;
|
|
6
|
+
export declare const handler: (client: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-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: Codeqr, args: Record<string, unknown> | undefined) => Promise<import("@codeqr/ts-mcp/tools/types").ToolCallResult>;
|
|
43
|
+
};
|
|
44
|
+
export default _default;
|
|
45
|
+
//# sourceMappingURL=update-domains.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-domains.d.ts","sourceRoot":"","sources":["../../src/tools/domains/update-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAuB,MAAM,4BAA4B;OAEnE,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAGtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKvF,wBAA2C"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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("@codeqr/ts-mcp/filtering");
|
|
6
|
+
const types_1 = require("@codeqr/ts-mcp/tools/types");
|
|
7
|
+
exports.metadata = {
|
|
8
|
+
resource: 'domains',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
httpMethod: 'patch',
|
|
12
|
+
httpPath: '/domains/{slug}',
|
|
13
|
+
operationId: 'updateDomain',
|
|
14
|
+
};
|
|
15
|
+
exports.tool = {
|
|
16
|
+
name: 'update_domains',
|
|
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\nUpdate a domain for the authenticated workspace.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/domain',\n $defs: {\n domain: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier of the domain.'\n },\n archived: {\n type: 'boolean',\n description: 'Whether the domain is archived.'\n },\n createdAt: {\n type: 'string',\n description: 'The date the domain was created.'\n },\n expiredUrl: {\n type: 'string',\n description: 'The URL to redirect to when a link under this domain has expired.'\n },\n placeholder: {\n type: 'string',\n description: 'Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.'\n },\n primary: {\n type: 'boolean',\n description: 'Whether the domain is the primary domain for the project.'\n },\n slug: {\n type: 'string',\n description: 'The domain name.'\n },\n updatedAt: {\n type: 'string',\n description: 'The date the domain was last updated.'\n },\n verified: {\n type: 'boolean',\n description: 'Whether the domain is verified.'\n }\n },\n required: [ 'id',\n 'archived',\n 'createdAt',\n 'expiredUrl',\n 'placeholder',\n 'primary',\n 'slug',\n 'updatedAt',\n 'verified'\n ]\n }\n }\n}\n```",
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
path_slug: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'The domain name.',
|
|
24
|
+
},
|
|
25
|
+
archived: {
|
|
26
|
+
type: 'boolean',
|
|
27
|
+
description: 'Whether to archive this domain. `false` will unarchive a previously archived domain.',
|
|
28
|
+
},
|
|
29
|
+
expiredUrl: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'Redirect users to a specific URL when any link under this domain has expired.',
|
|
32
|
+
},
|
|
33
|
+
placeholder: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.',
|
|
36
|
+
},
|
|
37
|
+
body_slug: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
description: 'Name of the domain.',
|
|
40
|
+
},
|
|
41
|
+
jq_filter: {
|
|
42
|
+
type: 'string',
|
|
43
|
+
title: 'jq Filter',
|
|
44
|
+
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/).',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
required: ['path_slug'],
|
|
48
|
+
},
|
|
49
|
+
annotations: {},
|
|
50
|
+
};
|
|
51
|
+
const handler = async (client, args) => {
|
|
52
|
+
const { slug, jq_filter, ...body } = args;
|
|
53
|
+
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.domains.update(slug, body)));
|
|
54
|
+
};
|
|
55
|
+
exports.handler = handler;
|
|
56
|
+
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
57
|
+
//# sourceMappingURL=update-domains.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-domains.js","sourceRoot":"","sources":["../../src/tools/domains/update-domains.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAuD;AACvD,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,OAAO;IACnB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EACT,6vDAA6vD;IAC/vD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,kBAAkB;aAChC;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,sFAAsF;aACpG;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+EAA+E;aAC7F;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,oHAAoH;aACvH;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qBAAqB;aACnC;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAc,EAAE,IAAyC,EAAE,EAAE;IACzF,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACjD,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AACpG,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { maybeFilter } from '@codeqr/ts-mcp/filtering';
|
|
3
|
+
import { asTextContentResult } from '@codeqr/ts-mcp/tools/types';
|
|
4
|
+
export const metadata = {
|
|
5
|
+
resource: 'domains',
|
|
6
|
+
operation: 'write',
|
|
7
|
+
tags: [],
|
|
8
|
+
httpMethod: 'patch',
|
|
9
|
+
httpPath: '/domains/{slug}',
|
|
10
|
+
operationId: 'updateDomain',
|
|
11
|
+
};
|
|
12
|
+
export const tool = {
|
|
13
|
+
name: 'update_domains',
|
|
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\nUpdate a domain for the authenticated workspace.\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/domain',\n $defs: {\n domain: {\n type: 'object',\n properties: {\n id: {\n type: 'string',\n description: 'The unique identifier of the domain.'\n },\n archived: {\n type: 'boolean',\n description: 'Whether the domain is archived.'\n },\n createdAt: {\n type: 'string',\n description: 'The date the domain was created.'\n },\n expiredUrl: {\n type: 'string',\n description: 'The URL to redirect to when a link under this domain has expired.'\n },\n placeholder: {\n type: 'string',\n description: 'Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.'\n },\n primary: {\n type: 'boolean',\n description: 'Whether the domain is the primary domain for the project.'\n },\n slug: {\n type: 'string',\n description: 'The domain name.'\n },\n updatedAt: {\n type: 'string',\n description: 'The date the domain was last updated.'\n },\n verified: {\n type: 'boolean',\n description: 'Whether the domain is verified.'\n }\n },\n required: [ 'id',\n 'archived',\n 'createdAt',\n 'expiredUrl',\n 'placeholder',\n 'primary',\n 'slug',\n 'updatedAt',\n 'verified'\n ]\n }\n }\n}\n```",
|
|
15
|
+
inputSchema: {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
path_slug: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
description: 'The domain name.',
|
|
21
|
+
},
|
|
22
|
+
archived: {
|
|
23
|
+
type: 'boolean',
|
|
24
|
+
description: 'Whether to archive this domain. `false` will unarchive a previously archived domain.',
|
|
25
|
+
},
|
|
26
|
+
expiredUrl: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'Redirect users to a specific URL when any link under this domain has expired.',
|
|
29
|
+
},
|
|
30
|
+
placeholder: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
description: 'Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.',
|
|
33
|
+
},
|
|
34
|
+
body_slug: {
|
|
35
|
+
type: 'string',
|
|
36
|
+
description: 'Name of the domain.',
|
|
37
|
+
},
|
|
38
|
+
jq_filter: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
title: 'jq Filter',
|
|
41
|
+
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/).',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
required: ['path_slug'],
|
|
45
|
+
},
|
|
46
|
+
annotations: {},
|
|
47
|
+
};
|
|
48
|
+
export const handler = async (client, args) => {
|
|
49
|
+
const { slug, jq_filter, ...body } = args;
|
|
50
|
+
return asTextContentResult(await maybeFilter(jq_filter, await client.domains.update(slug, body)));
|
|
51
|
+
};
|
|
52
|
+
export default { metadata, tool, handler };
|
|
53
|
+
//# sourceMappingURL=update-domains.mjs.map
|