@codeqr/ts-mcp 0.9.0 → 0.19.3

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.
Files changed (479) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +16 -218
  3. package/auth.d.mts +6 -0
  4. package/auth.d.mts.map +1 -0
  5. package/auth.d.ts +6 -0
  6. package/auth.d.ts.map +1 -0
  7. package/auth.js +37 -0
  8. package/auth.js.map +1 -0
  9. package/{headers.mjs → auth.mjs} +16 -2
  10. package/auth.mjs.map +1 -0
  11. package/code-tool-paths.cjs +8 -0
  12. package/code-tool-paths.cjs.map +1 -0
  13. package/code-tool-paths.d.cts +2 -0
  14. package/code-tool-paths.d.cts.map +1 -0
  15. package/code-tool-types.d.mts +7 -9
  16. package/code-tool-types.d.mts.map +1 -1
  17. package/code-tool-types.d.ts +7 -9
  18. package/code-tool-types.d.ts.map +1 -1
  19. package/code-tool-worker.d.mts +5 -0
  20. package/code-tool-worker.d.mts.map +1 -0
  21. package/code-tool-worker.d.ts +5 -0
  22. package/code-tool-worker.d.ts.map +1 -0
  23. package/code-tool-worker.js +249 -0
  24. package/code-tool-worker.js.map +1 -0
  25. package/code-tool-worker.mjs +244 -0
  26. package/code-tool-worker.mjs.map +1 -0
  27. package/code-tool.d.mts +12 -45
  28. package/code-tool.d.mts.map +1 -1
  29. package/code-tool.d.ts +12 -45
  30. package/code-tool.d.ts.map +1 -1
  31. package/code-tool.js +315 -27
  32. package/code-tool.js.map +1 -1
  33. package/code-tool.mjs +282 -27
  34. package/code-tool.mjs.map +1 -1
  35. package/docs-search-tool.d.mts +10 -3
  36. package/docs-search-tool.d.mts.map +1 -1
  37. package/docs-search-tool.d.ts +10 -3
  38. package/docs-search-tool.d.ts.map +1 -1
  39. package/docs-search-tool.js +29 -6
  40. package/docs-search-tool.js.map +1 -1
  41. package/docs-search-tool.mjs +29 -6
  42. package/docs-search-tool.mjs.map +1 -1
  43. package/http.d.mts +6 -3
  44. package/http.d.mts.map +1 -1
  45. package/http.d.ts +6 -3
  46. package/http.d.ts.map +1 -1
  47. package/http.js +108 -49
  48. package/http.js.map +1 -1
  49. package/http.mjs +108 -49
  50. package/http.mjs.map +1 -1
  51. package/index.js +19 -50
  52. package/index.js.map +1 -1
  53. package/index.mjs +19 -50
  54. package/index.mjs.map +1 -1
  55. package/instructions.d.mts +2 -0
  56. package/instructions.d.mts.map +1 -0
  57. package/instructions.d.ts +2 -0
  58. package/instructions.d.ts.map +1 -0
  59. package/instructions.js +42 -0
  60. package/instructions.js.map +1 -0
  61. package/instructions.mjs +39 -0
  62. package/instructions.mjs.map +1 -0
  63. package/logger.d.mts +7 -0
  64. package/logger.d.mts.map +1 -0
  65. package/logger.d.ts +7 -0
  66. package/logger.d.ts.map +1 -0
  67. package/logger.js +29 -0
  68. package/logger.js.map +1 -0
  69. package/logger.mjs +22 -0
  70. package/logger.mjs.map +1 -0
  71. package/methods.d.mts +10 -0
  72. package/methods.d.mts.map +1 -0
  73. package/methods.d.ts +10 -0
  74. package/methods.d.ts.map +1 -0
  75. package/methods.js +215 -0
  76. package/methods.js.map +1 -0
  77. package/methods.mjs +211 -0
  78. package/methods.mjs.map +1 -0
  79. package/options.d.mts +9 -9
  80. package/options.d.mts.map +1 -1
  81. package/options.d.ts +9 -9
  82. package/options.d.ts.map +1 -1
  83. package/options.js +54 -359
  84. package/options.js.map +1 -1
  85. package/options.mjs +54 -359
  86. package/options.mjs.map +1 -1
  87. package/package.json +83 -60
  88. package/server.d.mts +11 -16
  89. package/server.d.mts.map +1 -1
  90. package/server.d.ts +11 -16
  91. package/server.d.ts.map +1 -1
  92. package/server.js +86 -101
  93. package/server.js.map +1 -1
  94. package/server.mjs +85 -96
  95. package/server.mjs.map +1 -1
  96. package/src/{headers.ts → auth.ts} +18 -1
  97. package/src/code-tool-paths.cts +5 -0
  98. package/src/code-tool-types.ts +8 -9
  99. package/src/code-tool-worker.ts +295 -0
  100. package/src/code-tool.ts +371 -34
  101. package/src/docs-search-tool.ts +48 -7
  102. package/src/http.ts +128 -54
  103. package/src/index.ts +22 -63
  104. package/src/instructions.ts +60 -0
  105. package/src/logger.ts +28 -0
  106. package/src/methods.ts +236 -0
  107. package/src/options.ts +72 -384
  108. package/src/server.ts +99 -116
  109. package/src/stdio.ts +6 -5
  110. package/src/{tools/types.ts → types.ts} +14 -5
  111. package/src/util.ts +25 -0
  112. package/stdio.d.mts +1 -1
  113. package/stdio.d.mts.map +1 -1
  114. package/stdio.d.ts +1 -1
  115. package/stdio.d.ts.map +1 -1
  116. package/stdio.js +5 -4
  117. package/stdio.js.map +1 -1
  118. package/stdio.mjs +5 -4
  119. package/stdio.mjs.map +1 -1
  120. package/{tools/types.d.mts → types.d.mts} +10 -2
  121. package/types.d.mts.map +1 -0
  122. package/{tools/types.d.ts → types.d.ts} +10 -2
  123. package/types.d.ts.map +1 -0
  124. package/types.js.map +1 -0
  125. package/types.mjs.map +1 -0
  126. package/util.d.mts +4 -0
  127. package/util.d.mts.map +1 -0
  128. package/util.d.ts +4 -0
  129. package/util.d.ts.map +1 -0
  130. package/util.js +30 -0
  131. package/util.js.map +1 -0
  132. package/util.mjs +24 -0
  133. package/util.mjs.map +1 -0
  134. package/compat.d.mts +0 -58
  135. package/compat.d.mts.map +0 -1
  136. package/compat.d.ts +0 -58
  137. package/compat.d.ts.map +0 -1
  138. package/compat.js +0 -387
  139. package/compat.js.map +0 -1
  140. package/compat.mjs +0 -378
  141. package/compat.mjs.map +0 -1
  142. package/dynamic-tools.d.mts +0 -12
  143. package/dynamic-tools.d.mts.map +0 -1
  144. package/dynamic-tools.d.ts +0 -12
  145. package/dynamic-tools.d.ts.map +0 -1
  146. package/dynamic-tools.js +0 -135
  147. package/dynamic-tools.js.map +0 -1
  148. package/dynamic-tools.mjs +0 -132
  149. package/dynamic-tools.mjs.map +0 -1
  150. package/filtering.d.mts +0 -3
  151. package/filtering.d.mts.map +0 -1
  152. package/filtering.d.ts +0 -3
  153. package/filtering.d.ts.map +0 -1
  154. package/filtering.js +0 -24
  155. package/filtering.js.map +0 -1
  156. package/filtering.mjs +0 -16
  157. package/filtering.mjs.map +0 -1
  158. package/headers.d.mts +0 -4
  159. package/headers.d.mts.map +0 -1
  160. package/headers.d.ts +0 -4
  161. package/headers.d.ts.map +0 -1
  162. package/headers.js +0 -22
  163. package/headers.js.map +0 -1
  164. package/headers.mjs.map +0 -1
  165. package/src/compat.ts +0 -483
  166. package/src/dynamic-tools.ts +0 -153
  167. package/src/filtering.ts +0 -18
  168. package/src/tools/analytics/retrieve-analytics.ts +0 -441
  169. package/src/tools/domains/create-domains.ts +0 -75
  170. package/src/tools/domains/delete-domains.ts +0 -55
  171. package/src/tools/domains/list-domains.ts +0 -68
  172. package/src/tools/domains/update-domains.ts +0 -79
  173. package/src/tools/events/list-events.ts +0 -421
  174. package/src/tools/index.ts +0 -133
  175. package/src/tools/links/bulk/create-links-bulk.ts +0 -966
  176. package/src/tools/links/bulk/delete-links-bulk.ts +0 -59
  177. package/src/tools/links/count-links.ts +0 -957
  178. package/src/tools/links/create-links.ts +0 -957
  179. package/src/tools/links/delete-links.ts +0 -56
  180. package/src/tools/links/list-links.ts +0 -980
  181. package/src/tools/links/retrieve-info-links.ts +0 -75
  182. package/src/tools/links/update-links.ts +0 -964
  183. package/src/tools/links/upsert-links.ts +0 -958
  184. package/src/tools/projects/list-projects.ts +0 -51
  185. package/src/tools/projects/retrieve-projects.ts +0 -56
  186. package/src/tools/qrcodes/bulk/create-qrcodes-bulk.ts +0 -1077
  187. package/src/tools/qrcodes/bulk/delete-qrcodes-bulk.ts +0 -59
  188. package/src/tools/qrcodes/count-qrcodes.ts +0 -220
  189. package/src/tools/qrcodes/create-qrcodes.ts +0 -1067
  190. package/src/tools/qrcodes/delete-qrcodes.ts +0 -56
  191. package/src/tools/qrcodes/list-qrcodes.ts +0 -221
  192. package/src/tools/qrcodes/retrieve-qrcodes.ts +0 -67
  193. package/src/tools/qrcodes/update-qrcodes.ts +0 -1074
  194. package/src/tools/qrcodes/upsert-qrcodes.ts +0 -1068
  195. package/src/tools/tags/create-tags.ts +0 -59
  196. package/src/tools/tags/delete-tags.ts +0 -55
  197. package/src/tools/tags/list-tags.ts +0 -87
  198. package/src/tools/tags/update-tags.ts +0 -63
  199. package/src/tools/track/track-lead-track.ts +0 -93
  200. package/src/tools/track/track-sale-track.ts +0 -108
  201. package/src/tools.ts +0 -1
  202. package/tools/analytics/retrieve-analytics.d.mts +0 -51
  203. package/tools/analytics/retrieve-analytics.d.mts.map +0 -1
  204. package/tools/analytics/retrieve-analytics.d.ts +0 -51
  205. package/tools/analytics/retrieve-analytics.d.ts.map +0 -1
  206. package/tools/analytics/retrieve-analytics.js +0 -438
  207. package/tools/analytics/retrieve-analytics.js.map +0 -1
  208. package/tools/analytics/retrieve-analytics.mjs +0 -431
  209. package/tools/analytics/retrieve-analytics.mjs.map +0 -1
  210. package/tools/domains/create-domains.d.mts +0 -51
  211. package/tools/domains/create-domains.d.mts.map +0 -1
  212. package/tools/domains/create-domains.d.ts +0 -51
  213. package/tools/domains/create-domains.d.ts.map +0 -1
  214. package/tools/domains/create-domains.js +0 -74
  215. package/tools/domains/create-domains.js.map +0 -1
  216. package/tools/domains/create-domains.mjs +0 -67
  217. package/tools/domains/create-domains.mjs.map +0 -1
  218. package/tools/domains/delete-domains.d.mts +0 -51
  219. package/tools/domains/delete-domains.d.mts.map +0 -1
  220. package/tools/domains/delete-domains.d.ts +0 -51
  221. package/tools/domains/delete-domains.d.ts.map +0 -1
  222. package/tools/domains/delete-domains.js +0 -55
  223. package/tools/domains/delete-domains.js.map +0 -1
  224. package/tools/domains/delete-domains.mjs +0 -48
  225. package/tools/domains/delete-domains.mjs.map +0 -1
  226. package/tools/domains/list-domains.d.mts +0 -51
  227. package/tools/domains/list-domains.d.mts.map +0 -1
  228. package/tools/domains/list-domains.d.ts +0 -51
  229. package/tools/domains/list-domains.d.ts.map +0 -1
  230. package/tools/domains/list-domains.js +0 -67
  231. package/tools/domains/list-domains.js.map +0 -1
  232. package/tools/domains/list-domains.mjs +0 -60
  233. package/tools/domains/list-domains.mjs.map +0 -1
  234. package/tools/domains/update-domains.d.mts +0 -51
  235. package/tools/domains/update-domains.d.mts.map +0 -1
  236. package/tools/domains/update-domains.d.ts +0 -51
  237. package/tools/domains/update-domains.d.ts.map +0 -1
  238. package/tools/domains/update-domains.js +0 -78
  239. package/tools/domains/update-domains.js.map +0 -1
  240. package/tools/domains/update-domains.mjs +0 -71
  241. package/tools/domains/update-domains.mjs.map +0 -1
  242. package/tools/events/list-events.d.mts +0 -51
  243. package/tools/events/list-events.d.mts.map +0 -1
  244. package/tools/events/list-events.d.ts +0 -51
  245. package/tools/events/list-events.d.ts.map +0 -1
  246. package/tools/events/list-events.js +0 -418
  247. package/tools/events/list-events.js.map +0 -1
  248. package/tools/events/list-events.mjs +0 -411
  249. package/tools/events/list-events.mjs.map +0 -1
  250. package/tools/index.d.mts +0 -10
  251. package/tools/index.d.mts.map +0 -1
  252. package/tools/index.d.ts +0 -10
  253. package/tools/index.d.ts.map +0 -1
  254. package/tools/index.js +0 -117
  255. package/tools/index.js.map +0 -1
  256. package/tools/index.mjs +0 -110
  257. package/tools/index.mjs.map +0 -1
  258. package/tools/links/bulk/create-links-bulk.d.mts +0 -51
  259. package/tools/links/bulk/create-links-bulk.d.mts.map +0 -1
  260. package/tools/links/bulk/create-links-bulk.d.ts +0 -51
  261. package/tools/links/bulk/create-links-bulk.d.ts.map +0 -1
  262. package/tools/links/bulk/create-links-bulk.js +0 -956
  263. package/tools/links/bulk/create-links-bulk.js.map +0 -1
  264. package/tools/links/bulk/create-links-bulk.mjs +0 -949
  265. package/tools/links/bulk/create-links-bulk.mjs.map +0 -1
  266. package/tools/links/bulk/delete-links-bulk.d.mts +0 -51
  267. package/tools/links/bulk/delete-links-bulk.d.mts.map +0 -1
  268. package/tools/links/bulk/delete-links-bulk.d.ts +0 -51
  269. package/tools/links/bulk/delete-links-bulk.d.ts.map +0 -1
  270. package/tools/links/bulk/delete-links-bulk.js +0 -58
  271. package/tools/links/bulk/delete-links-bulk.js.map +0 -1
  272. package/tools/links/bulk/delete-links-bulk.mjs +0 -51
  273. package/tools/links/bulk/delete-links-bulk.mjs.map +0 -1
  274. package/tools/links/count-links.d.mts +0 -51
  275. package/tools/links/count-links.d.mts.map +0 -1
  276. package/tools/links/count-links.d.ts +0 -51
  277. package/tools/links/count-links.d.ts.map +0 -1
  278. package/tools/links/count-links.js +0 -951
  279. package/tools/links/count-links.js.map +0 -1
  280. package/tools/links/count-links.mjs +0 -944
  281. package/tools/links/count-links.mjs.map +0 -1
  282. package/tools/links/create-links.d.mts +0 -51
  283. package/tools/links/create-links.d.mts.map +0 -1
  284. package/tools/links/create-links.d.ts +0 -51
  285. package/tools/links/create-links.d.ts.map +0 -1
  286. package/tools/links/create-links.js +0 -947
  287. package/tools/links/create-links.js.map +0 -1
  288. package/tools/links/create-links.mjs +0 -940
  289. package/tools/links/create-links.mjs.map +0 -1
  290. package/tools/links/delete-links.d.mts +0 -51
  291. package/tools/links/delete-links.d.mts.map +0 -1
  292. package/tools/links/delete-links.d.ts +0 -51
  293. package/tools/links/delete-links.d.ts.map +0 -1
  294. package/tools/links/delete-links.js +0 -55
  295. package/tools/links/delete-links.js.map +0 -1
  296. package/tools/links/delete-links.mjs +0 -48
  297. package/tools/links/delete-links.mjs.map +0 -1
  298. package/tools/links/list-links.d.mts +0 -51
  299. package/tools/links/list-links.d.mts.map +0 -1
  300. package/tools/links/list-links.d.ts +0 -51
  301. package/tools/links/list-links.d.ts.map +0 -1
  302. package/tools/links/list-links.js +0 -973
  303. package/tools/links/list-links.js.map +0 -1
  304. package/tools/links/list-links.mjs +0 -966
  305. package/tools/links/list-links.mjs.map +0 -1
  306. package/tools/links/retrieve-info-links.d.mts +0 -51
  307. package/tools/links/retrieve-info-links.d.mts.map +0 -1
  308. package/tools/links/retrieve-info-links.d.ts +0 -51
  309. package/tools/links/retrieve-info-links.d.ts.map +0 -1
  310. package/tools/links/retrieve-info-links.js +0 -71
  311. package/tools/links/retrieve-info-links.js.map +0 -1
  312. package/tools/links/retrieve-info-links.mjs +0 -64
  313. package/tools/links/retrieve-info-links.mjs.map +0 -1
  314. package/tools/links/update-links.d.mts +0 -51
  315. package/tools/links/update-links.d.mts.map +0 -1
  316. package/tools/links/update-links.d.ts +0 -51
  317. package/tools/links/update-links.d.ts.map +0 -1
  318. package/tools/links/update-links.js +0 -953
  319. package/tools/links/update-links.js.map +0 -1
  320. package/tools/links/update-links.mjs +0 -946
  321. package/tools/links/update-links.mjs.map +0 -1
  322. package/tools/links/upsert-links.d.mts +0 -51
  323. package/tools/links/upsert-links.d.mts.map +0 -1
  324. package/tools/links/upsert-links.d.ts +0 -51
  325. package/tools/links/upsert-links.d.ts.map +0 -1
  326. package/tools/links/upsert-links.js +0 -947
  327. package/tools/links/upsert-links.js.map +0 -1
  328. package/tools/links/upsert-links.mjs +0 -940
  329. package/tools/links/upsert-links.mjs.map +0 -1
  330. package/tools/projects/list-projects.d.mts +0 -51
  331. package/tools/projects/list-projects.d.mts.map +0 -1
  332. package/tools/projects/list-projects.d.ts +0 -51
  333. package/tools/projects/list-projects.d.ts.map +0 -1
  334. package/tools/projects/list-projects.js +0 -51
  335. package/tools/projects/list-projects.js.map +0 -1
  336. package/tools/projects/list-projects.mjs +0 -44
  337. package/tools/projects/list-projects.mjs.map +0 -1
  338. package/tools/projects/retrieve-projects.d.mts +0 -51
  339. package/tools/projects/retrieve-projects.d.mts.map +0 -1
  340. package/tools/projects/retrieve-projects.d.ts +0 -51
  341. package/tools/projects/retrieve-projects.d.ts.map +0 -1
  342. package/tools/projects/retrieve-projects.js +0 -55
  343. package/tools/projects/retrieve-projects.js.map +0 -1
  344. package/tools/projects/retrieve-projects.mjs +0 -48
  345. package/tools/projects/retrieve-projects.mjs.map +0 -1
  346. package/tools/qrcodes/bulk/create-qrcodes-bulk.d.mts +0 -51
  347. package/tools/qrcodes/bulk/create-qrcodes-bulk.d.mts.map +0 -1
  348. package/tools/qrcodes/bulk/create-qrcodes-bulk.d.ts +0 -51
  349. package/tools/qrcodes/bulk/create-qrcodes-bulk.d.ts.map +0 -1
  350. package/tools/qrcodes/bulk/create-qrcodes-bulk.js +0 -1068
  351. package/tools/qrcodes/bulk/create-qrcodes-bulk.js.map +0 -1
  352. package/tools/qrcodes/bulk/create-qrcodes-bulk.mjs +0 -1061
  353. package/tools/qrcodes/bulk/create-qrcodes-bulk.mjs.map +0 -1
  354. package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.mts +0 -51
  355. package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.mts.map +0 -1
  356. package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.ts +0 -51
  357. package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.ts.map +0 -1
  358. package/tools/qrcodes/bulk/delete-qrcodes-bulk.js +0 -58
  359. package/tools/qrcodes/bulk/delete-qrcodes-bulk.js.map +0 -1
  360. package/tools/qrcodes/bulk/delete-qrcodes-bulk.mjs +0 -51
  361. package/tools/qrcodes/bulk/delete-qrcodes-bulk.mjs.map +0 -1
  362. package/tools/qrcodes/count-qrcodes.d.mts +0 -51
  363. package/tools/qrcodes/count-qrcodes.d.mts.map +0 -1
  364. package/tools/qrcodes/count-qrcodes.d.ts +0 -51
  365. package/tools/qrcodes/count-qrcodes.d.ts.map +0 -1
  366. package/tools/qrcodes/count-qrcodes.js +0 -215
  367. package/tools/qrcodes/count-qrcodes.js.map +0 -1
  368. package/tools/qrcodes/count-qrcodes.mjs +0 -208
  369. package/tools/qrcodes/count-qrcodes.mjs.map +0 -1
  370. package/tools/qrcodes/create-qrcodes.d.mts +0 -51
  371. package/tools/qrcodes/create-qrcodes.d.mts.map +0 -1
  372. package/tools/qrcodes/create-qrcodes.d.ts +0 -51
  373. package/tools/qrcodes/create-qrcodes.d.ts.map +0 -1
  374. package/tools/qrcodes/create-qrcodes.js +0 -1059
  375. package/tools/qrcodes/create-qrcodes.js.map +0 -1
  376. package/tools/qrcodes/create-qrcodes.mjs +0 -1052
  377. package/tools/qrcodes/create-qrcodes.mjs.map +0 -1
  378. package/tools/qrcodes/delete-qrcodes.d.mts +0 -51
  379. package/tools/qrcodes/delete-qrcodes.d.mts.map +0 -1
  380. package/tools/qrcodes/delete-qrcodes.d.ts +0 -51
  381. package/tools/qrcodes/delete-qrcodes.d.ts.map +0 -1
  382. package/tools/qrcodes/delete-qrcodes.js +0 -55
  383. package/tools/qrcodes/delete-qrcodes.js.map +0 -1
  384. package/tools/qrcodes/delete-qrcodes.mjs +0 -48
  385. package/tools/qrcodes/delete-qrcodes.mjs.map +0 -1
  386. package/tools/qrcodes/list-qrcodes.d.mts +0 -51
  387. package/tools/qrcodes/list-qrcodes.d.mts.map +0 -1
  388. package/tools/qrcodes/list-qrcodes.d.ts +0 -51
  389. package/tools/qrcodes/list-qrcodes.d.ts.map +0 -1
  390. package/tools/qrcodes/list-qrcodes.js +0 -217
  391. package/tools/qrcodes/list-qrcodes.js.map +0 -1
  392. package/tools/qrcodes/list-qrcodes.mjs +0 -210
  393. package/tools/qrcodes/list-qrcodes.mjs.map +0 -1
  394. package/tools/qrcodes/retrieve-qrcodes.d.mts +0 -51
  395. package/tools/qrcodes/retrieve-qrcodes.d.mts.map +0 -1
  396. package/tools/qrcodes/retrieve-qrcodes.d.ts +0 -51
  397. package/tools/qrcodes/retrieve-qrcodes.d.ts.map +0 -1
  398. package/tools/qrcodes/retrieve-qrcodes.js +0 -65
  399. package/tools/qrcodes/retrieve-qrcodes.js.map +0 -1
  400. package/tools/qrcodes/retrieve-qrcodes.mjs +0 -58
  401. package/tools/qrcodes/retrieve-qrcodes.mjs.map +0 -1
  402. package/tools/qrcodes/update-qrcodes.d.mts +0 -51
  403. package/tools/qrcodes/update-qrcodes.d.mts.map +0 -1
  404. package/tools/qrcodes/update-qrcodes.d.ts +0 -51
  405. package/tools/qrcodes/update-qrcodes.d.ts.map +0 -1
  406. package/tools/qrcodes/update-qrcodes.js +0 -1065
  407. package/tools/qrcodes/update-qrcodes.js.map +0 -1
  408. package/tools/qrcodes/update-qrcodes.mjs +0 -1058
  409. package/tools/qrcodes/update-qrcodes.mjs.map +0 -1
  410. package/tools/qrcodes/upsert-qrcodes.d.mts +0 -51
  411. package/tools/qrcodes/upsert-qrcodes.d.mts.map +0 -1
  412. package/tools/qrcodes/upsert-qrcodes.d.ts +0 -51
  413. package/tools/qrcodes/upsert-qrcodes.d.ts.map +0 -1
  414. package/tools/qrcodes/upsert-qrcodes.js +0 -1059
  415. package/tools/qrcodes/upsert-qrcodes.js.map +0 -1
  416. package/tools/qrcodes/upsert-qrcodes.mjs +0 -1052
  417. package/tools/qrcodes/upsert-qrcodes.mjs.map +0 -1
  418. package/tools/tags/create-tags.d.mts +0 -51
  419. package/tools/tags/create-tags.d.mts.map +0 -1
  420. package/tools/tags/create-tags.d.ts +0 -51
  421. package/tools/tags/create-tags.d.ts.map +0 -1
  422. package/tools/tags/create-tags.js +0 -58
  423. package/tools/tags/create-tags.js.map +0 -1
  424. package/tools/tags/create-tags.mjs +0 -51
  425. package/tools/tags/create-tags.mjs.map +0 -1
  426. package/tools/tags/delete-tags.d.mts +0 -51
  427. package/tools/tags/delete-tags.d.mts.map +0 -1
  428. package/tools/tags/delete-tags.d.ts +0 -51
  429. package/tools/tags/delete-tags.d.ts.map +0 -1
  430. package/tools/tags/delete-tags.js +0 -55
  431. package/tools/tags/delete-tags.js.map +0 -1
  432. package/tools/tags/delete-tags.mjs +0 -48
  433. package/tools/tags/delete-tags.mjs.map +0 -1
  434. package/tools/tags/list-tags.d.mts +0 -51
  435. package/tools/tags/list-tags.d.mts.map +0 -1
  436. package/tools/tags/list-tags.d.ts +0 -51
  437. package/tools/tags/list-tags.d.ts.map +0 -1
  438. package/tools/tags/list-tags.js +0 -87
  439. package/tools/tags/list-tags.js.map +0 -1
  440. package/tools/tags/list-tags.mjs +0 -80
  441. package/tools/tags/list-tags.mjs.map +0 -1
  442. package/tools/tags/update-tags.d.mts +0 -51
  443. package/tools/tags/update-tags.d.mts.map +0 -1
  444. package/tools/tags/update-tags.d.ts +0 -51
  445. package/tools/tags/update-tags.d.ts.map +0 -1
  446. package/tools/tags/update-tags.js +0 -63
  447. package/tools/tags/update-tags.js.map +0 -1
  448. package/tools/tags/update-tags.mjs +0 -56
  449. package/tools/tags/update-tags.mjs.map +0 -1
  450. package/tools/track/track-lead-track.d.mts +0 -51
  451. package/tools/track/track-lead-track.d.mts.map +0 -1
  452. package/tools/track/track-lead-track.d.ts +0 -51
  453. package/tools/track/track-lead-track.d.ts.map +0 -1
  454. package/tools/track/track-lead-track.js +0 -87
  455. package/tools/track/track-lead-track.js.map +0 -1
  456. package/tools/track/track-lead-track.mjs +0 -80
  457. package/tools/track/track-lead-track.mjs.map +0 -1
  458. package/tools/track/track-sale-track.d.mts +0 -51
  459. package/tools/track/track-sale-track.d.mts.map +0 -1
  460. package/tools/track/track-sale-track.d.ts +0 -51
  461. package/tools/track/track-sale-track.d.ts.map +0 -1
  462. package/tools/track/track-sale-track.js +0 -99
  463. package/tools/track/track-sale-track.js.map +0 -1
  464. package/tools/track/track-sale-track.mjs +0 -92
  465. package/tools/track/track-sale-track.mjs.map +0 -1
  466. package/tools/types.d.mts.map +0 -1
  467. package/tools/types.d.ts.map +0 -1
  468. package/tools/types.js.map +0 -1
  469. package/tools/types.mjs.map +0 -1
  470. package/tools.d.mts +0 -2
  471. package/tools.d.mts.map +0 -1
  472. package/tools.d.ts +0 -2
  473. package/tools.d.ts.map +0 -1
  474. package/tools.js +0 -18
  475. package/tools.js.map +0 -1
  476. package/tools.mjs +0 -2
  477. package/tools.mjs.map +0 -1
  478. /package/{tools/types.js → types.js} +0 -0
  479. /package/{tools/types.mjs → types.mjs} +0 -0
@@ -1,964 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { Metadata, asErrorResult, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
4
-
5
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
- import Codeqr from '@codeqr/ts';
7
-
8
- export const metadata: Metadata = {
9
- resource: 'links',
10
- operation: 'write',
11
- tags: [],
12
- httpMethod: 'put',
13
- httpPath: '/links/{linkId}',
14
- operationId: 'updateLink',
15
- };
16
-
17
- export const tool: Tool = {
18
- name: 'update_links',
19
- description: "Update a link for the authenticated workspace. If there's no change, returns it as it is.",
20
- inputSchema: {
21
- type: 'object',
22
- properties: {
23
- linkId: {
24
- type: 'string',
25
- description:
26
- 'The id of the link to update. You may use either `linkId` (obtained via `/links/info` endpoint) or `externalId` prefixed with `ext_`.',
27
- },
28
- android: {
29
- type: 'string',
30
- description: 'The Android destination URL for the short link for Android device targeting.',
31
- },
32
- archived: {
33
- type: 'boolean',
34
- description: 'Whether the short link is archived.',
35
- },
36
- comments: {
37
- type: 'string',
38
- description: 'The comments for the short link.',
39
- },
40
- description: {
41
- type: 'string',
42
- description:
43
- 'The description of the short link generated via `api.codeqr.io/metatags`. Will be used for custom link preview if `proxy` is true.',
44
- },
45
- doIndex: {
46
- type: 'boolean',
47
- description:
48
- 'Allow search engines to index your short link. Default is `false` if not provided. Learn more: https://codeqr.link/noindex',
49
- },
50
- domain: {
51
- type: 'string',
52
- description:
53
- 'The domain of the short link. If not provided, the main domain of the project will be used (or `codeqr.link` if the project has no domains).',
54
- },
55
- expiredUrl: {
56
- type: 'string',
57
- description: 'The URL to redirect to when the short link expires.',
58
- },
59
- expiresAt: {
60
- type: 'string',
61
- description:
62
- 'The date and time when the short link will expire in ISO-8601 format. Must be in the future.',
63
- format: 'date-time',
64
- },
65
- externalId: {
66
- type: 'string',
67
- description:
68
- 'This is the ID of the link in your database. If set, it can be used to identify the link in the future. Must be prefixed with `ext_` when passed as a query parameter.',
69
- },
70
- flexible: {
71
- type: 'boolean',
72
- description: 'Whether the short link is flexible.',
73
- },
74
- folderId: {
75
- type: 'string',
76
- description: 'The unique ID existing folder to assign the short link to.',
77
- },
78
- geo: {
79
- type: 'object',
80
- description:
81
- 'Geographic targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`.',
82
- properties: {
83
- AD: {
84
- type: 'string',
85
- },
86
- AE: {
87
- type: 'string',
88
- },
89
- AF: {
90
- type: 'string',
91
- },
92
- AG: {
93
- type: 'string',
94
- },
95
- AI: {
96
- type: 'string',
97
- },
98
- AL: {
99
- type: 'string',
100
- },
101
- AM: {
102
- type: 'string',
103
- },
104
- AO: {
105
- type: 'string',
106
- },
107
- AQ: {
108
- type: 'string',
109
- },
110
- AR: {
111
- type: 'string',
112
- },
113
- AS: {
114
- type: 'string',
115
- },
116
- AT: {
117
- type: 'string',
118
- },
119
- AU: {
120
- type: 'string',
121
- },
122
- AW: {
123
- type: 'string',
124
- },
125
- AX: {
126
- type: 'string',
127
- },
128
- AZ: {
129
- type: 'string',
130
- },
131
- BA: {
132
- type: 'string',
133
- },
134
- BB: {
135
- type: 'string',
136
- },
137
- BD: {
138
- type: 'string',
139
- },
140
- BE: {
141
- type: 'string',
142
- },
143
- BF: {
144
- type: 'string',
145
- },
146
- BG: {
147
- type: 'string',
148
- },
149
- BH: {
150
- type: 'string',
151
- },
152
- BI: {
153
- type: 'string',
154
- },
155
- BJ: {
156
- type: 'string',
157
- },
158
- BL: {
159
- type: 'string',
160
- },
161
- BM: {
162
- type: 'string',
163
- },
164
- BN: {
165
- type: 'string',
166
- },
167
- BO: {
168
- type: 'string',
169
- },
170
- BQ: {
171
- type: 'string',
172
- },
173
- BR: {
174
- type: 'string',
175
- },
176
- BS: {
177
- type: 'string',
178
- },
179
- BT: {
180
- type: 'string',
181
- },
182
- BV: {
183
- type: 'string',
184
- },
185
- BW: {
186
- type: 'string',
187
- },
188
- BY: {
189
- type: 'string',
190
- },
191
- BZ: {
192
- type: 'string',
193
- },
194
- CA: {
195
- type: 'string',
196
- },
197
- CC: {
198
- type: 'string',
199
- },
200
- CD: {
201
- type: 'string',
202
- },
203
- CF: {
204
- type: 'string',
205
- },
206
- CG: {
207
- type: 'string',
208
- },
209
- CH: {
210
- type: 'string',
211
- },
212
- CI: {
213
- type: 'string',
214
- },
215
- CK: {
216
- type: 'string',
217
- },
218
- CL: {
219
- type: 'string',
220
- },
221
- CM: {
222
- type: 'string',
223
- },
224
- CN: {
225
- type: 'string',
226
- },
227
- CO: {
228
- type: 'string',
229
- },
230
- CR: {
231
- type: 'string',
232
- },
233
- CU: {
234
- type: 'string',
235
- },
236
- CV: {
237
- type: 'string',
238
- },
239
- CW: {
240
- type: 'string',
241
- },
242
- CX: {
243
- type: 'string',
244
- },
245
- CY: {
246
- type: 'string',
247
- },
248
- CZ: {
249
- type: 'string',
250
- },
251
- DE: {
252
- type: 'string',
253
- },
254
- DJ: {
255
- type: 'string',
256
- },
257
- DK: {
258
- type: 'string',
259
- },
260
- DM: {
261
- type: 'string',
262
- },
263
- DO: {
264
- type: 'string',
265
- },
266
- DZ: {
267
- type: 'string',
268
- },
269
- EC: {
270
- type: 'string',
271
- },
272
- EE: {
273
- type: 'string',
274
- },
275
- EG: {
276
- type: 'string',
277
- },
278
- EH: {
279
- type: 'string',
280
- },
281
- ER: {
282
- type: 'string',
283
- },
284
- ES: {
285
- type: 'string',
286
- },
287
- ET: {
288
- type: 'string',
289
- },
290
- FI: {
291
- type: 'string',
292
- },
293
- FJ: {
294
- type: 'string',
295
- },
296
- FK: {
297
- type: 'string',
298
- },
299
- FM: {
300
- type: 'string',
301
- },
302
- FO: {
303
- type: 'string',
304
- },
305
- FR: {
306
- type: 'string',
307
- },
308
- GA: {
309
- type: 'string',
310
- },
311
- GB: {
312
- type: 'string',
313
- },
314
- GD: {
315
- type: 'string',
316
- },
317
- GE: {
318
- type: 'string',
319
- },
320
- GF: {
321
- type: 'string',
322
- },
323
- GG: {
324
- type: 'string',
325
- },
326
- GH: {
327
- type: 'string',
328
- },
329
- GI: {
330
- type: 'string',
331
- },
332
- GL: {
333
- type: 'string',
334
- },
335
- GM: {
336
- type: 'string',
337
- },
338
- GN: {
339
- type: 'string',
340
- },
341
- GP: {
342
- type: 'string',
343
- },
344
- GQ: {
345
- type: 'string',
346
- },
347
- GR: {
348
- type: 'string',
349
- },
350
- GS: {
351
- type: 'string',
352
- },
353
- GT: {
354
- type: 'string',
355
- },
356
- GU: {
357
- type: 'string',
358
- },
359
- GW: {
360
- type: 'string',
361
- },
362
- GY: {
363
- type: 'string',
364
- },
365
- HK: {
366
- type: 'string',
367
- },
368
- HM: {
369
- type: 'string',
370
- },
371
- HN: {
372
- type: 'string',
373
- },
374
- HR: {
375
- type: 'string',
376
- },
377
- HT: {
378
- type: 'string',
379
- },
380
- HU: {
381
- type: 'string',
382
- },
383
- ID: {
384
- type: 'string',
385
- },
386
- IE: {
387
- type: 'string',
388
- },
389
- IL: {
390
- type: 'string',
391
- },
392
- IM: {
393
- type: 'string',
394
- },
395
- IN: {
396
- type: 'string',
397
- },
398
- IO: {
399
- type: 'string',
400
- },
401
- IQ: {
402
- type: 'string',
403
- },
404
- IR: {
405
- type: 'string',
406
- },
407
- IS: {
408
- type: 'string',
409
- },
410
- IT: {
411
- type: 'string',
412
- },
413
- JE: {
414
- type: 'string',
415
- },
416
- JM: {
417
- type: 'string',
418
- },
419
- JO: {
420
- type: 'string',
421
- },
422
- JP: {
423
- type: 'string',
424
- },
425
- KE: {
426
- type: 'string',
427
- },
428
- KG: {
429
- type: 'string',
430
- },
431
- KH: {
432
- type: 'string',
433
- },
434
- KI: {
435
- type: 'string',
436
- },
437
- KM: {
438
- type: 'string',
439
- },
440
- KN: {
441
- type: 'string',
442
- },
443
- KP: {
444
- type: 'string',
445
- },
446
- KR: {
447
- type: 'string',
448
- },
449
- KW: {
450
- type: 'string',
451
- },
452
- KY: {
453
- type: 'string',
454
- },
455
- KZ: {
456
- type: 'string',
457
- },
458
- LA: {
459
- type: 'string',
460
- },
461
- LB: {
462
- type: 'string',
463
- },
464
- LC: {
465
- type: 'string',
466
- },
467
- LI: {
468
- type: 'string',
469
- },
470
- LK: {
471
- type: 'string',
472
- },
473
- LR: {
474
- type: 'string',
475
- },
476
- LS: {
477
- type: 'string',
478
- },
479
- LT: {
480
- type: 'string',
481
- },
482
- LU: {
483
- type: 'string',
484
- },
485
- LV: {
486
- type: 'string',
487
- },
488
- LY: {
489
- type: 'string',
490
- },
491
- MA: {
492
- type: 'string',
493
- },
494
- MC: {
495
- type: 'string',
496
- },
497
- MD: {
498
- type: 'string',
499
- },
500
- ME: {
501
- type: 'string',
502
- },
503
- MF: {
504
- type: 'string',
505
- },
506
- MG: {
507
- type: 'string',
508
- },
509
- MH: {
510
- type: 'string',
511
- },
512
- MK: {
513
- type: 'string',
514
- },
515
- ML: {
516
- type: 'string',
517
- },
518
- MM: {
519
- type: 'string',
520
- },
521
- MN: {
522
- type: 'string',
523
- },
524
- MO: {
525
- type: 'string',
526
- },
527
- MP: {
528
- type: 'string',
529
- },
530
- MQ: {
531
- type: 'string',
532
- },
533
- MR: {
534
- type: 'string',
535
- },
536
- MS: {
537
- type: 'string',
538
- },
539
- MT: {
540
- type: 'string',
541
- },
542
- MU: {
543
- type: 'string',
544
- },
545
- MV: {
546
- type: 'string',
547
- },
548
- MW: {
549
- type: 'string',
550
- },
551
- MX: {
552
- type: 'string',
553
- },
554
- MY: {
555
- type: 'string',
556
- },
557
- MZ: {
558
- type: 'string',
559
- },
560
- NA: {
561
- type: 'string',
562
- },
563
- NC: {
564
- type: 'string',
565
- },
566
- NE: {
567
- type: 'string',
568
- },
569
- NF: {
570
- type: 'string',
571
- },
572
- NG: {
573
- type: 'string',
574
- },
575
- NI: {
576
- type: 'string',
577
- },
578
- NL: {
579
- type: 'string',
580
- },
581
- NO: {
582
- type: 'string',
583
- },
584
- NP: {
585
- type: 'string',
586
- },
587
- NR: {
588
- type: 'string',
589
- },
590
- NU: {
591
- type: 'string',
592
- },
593
- NZ: {
594
- type: 'string',
595
- },
596
- OM: {
597
- type: 'string',
598
- },
599
- PA: {
600
- type: 'string',
601
- },
602
- PE: {
603
- type: 'string',
604
- },
605
- PF: {
606
- type: 'string',
607
- },
608
- PG: {
609
- type: 'string',
610
- },
611
- PH: {
612
- type: 'string',
613
- },
614
- PK: {
615
- type: 'string',
616
- },
617
- PL: {
618
- type: 'string',
619
- },
620
- PM: {
621
- type: 'string',
622
- },
623
- PN: {
624
- type: 'string',
625
- },
626
- PR: {
627
- type: 'string',
628
- },
629
- PS: {
630
- type: 'string',
631
- },
632
- PT: {
633
- type: 'string',
634
- },
635
- PW: {
636
- type: 'string',
637
- },
638
- PY: {
639
- type: 'string',
640
- },
641
- QA: {
642
- type: 'string',
643
- },
644
- RE: {
645
- type: 'string',
646
- },
647
- RO: {
648
- type: 'string',
649
- },
650
- RS: {
651
- type: 'string',
652
- },
653
- RU: {
654
- type: 'string',
655
- },
656
- RW: {
657
- type: 'string',
658
- },
659
- SA: {
660
- type: 'string',
661
- },
662
- SB: {
663
- type: 'string',
664
- },
665
- SC: {
666
- type: 'string',
667
- },
668
- SD: {
669
- type: 'string',
670
- },
671
- SE: {
672
- type: 'string',
673
- },
674
- SG: {
675
- type: 'string',
676
- },
677
- SH: {
678
- type: 'string',
679
- },
680
- SI: {
681
- type: 'string',
682
- },
683
- SJ: {
684
- type: 'string',
685
- },
686
- SK: {
687
- type: 'string',
688
- },
689
- SL: {
690
- type: 'string',
691
- },
692
- SM: {
693
- type: 'string',
694
- },
695
- SN: {
696
- type: 'string',
697
- },
698
- SO: {
699
- type: 'string',
700
- },
701
- SR: {
702
- type: 'string',
703
- },
704
- SS: {
705
- type: 'string',
706
- },
707
- ST: {
708
- type: 'string',
709
- },
710
- SV: {
711
- type: 'string',
712
- },
713
- SX: {
714
- type: 'string',
715
- },
716
- SY: {
717
- type: 'string',
718
- },
719
- SZ: {
720
- type: 'string',
721
- },
722
- TC: {
723
- type: 'string',
724
- },
725
- TD: {
726
- type: 'string',
727
- },
728
- TF: {
729
- type: 'string',
730
- },
731
- TG: {
732
- type: 'string',
733
- },
734
- TH: {
735
- type: 'string',
736
- },
737
- TJ: {
738
- type: 'string',
739
- },
740
- TK: {
741
- type: 'string',
742
- },
743
- TL: {
744
- type: 'string',
745
- },
746
- TM: {
747
- type: 'string',
748
- },
749
- TN: {
750
- type: 'string',
751
- },
752
- TO: {
753
- type: 'string',
754
- },
755
- TR: {
756
- type: 'string',
757
- },
758
- TT: {
759
- type: 'string',
760
- },
761
- TV: {
762
- type: 'string',
763
- },
764
- TW: {
765
- type: 'string',
766
- },
767
- TZ: {
768
- type: 'string',
769
- },
770
- UA: {
771
- type: 'string',
772
- },
773
- UG: {
774
- type: 'string',
775
- },
776
- UM: {
777
- type: 'string',
778
- },
779
- US: {
780
- type: 'string',
781
- },
782
- UY: {
783
- type: 'string',
784
- },
785
- UZ: {
786
- type: 'string',
787
- },
788
- VA: {
789
- type: 'string',
790
- },
791
- VC: {
792
- type: 'string',
793
- },
794
- VE: {
795
- type: 'string',
796
- },
797
- VG: {
798
- type: 'string',
799
- },
800
- VI: {
801
- type: 'string',
802
- },
803
- VN: {
804
- type: 'string',
805
- },
806
- VU: {
807
- type: 'string',
808
- },
809
- WF: {
810
- type: 'string',
811
- },
812
- WS: {
813
- type: 'string',
814
- },
815
- XK: {
816
- type: 'string',
817
- },
818
- YE: {
819
- type: 'string',
820
- },
821
- YT: {
822
- type: 'string',
823
- },
824
- ZA: {
825
- type: 'string',
826
- },
827
- ZM: {
828
- type: 'string',
829
- },
830
- ZW: {
831
- type: 'string',
832
- },
833
- },
834
- },
835
- image: {
836
- type: 'string',
837
- description:
838
- 'The image of the short link generated via `api.codeqr.io/metatags`. Will be used for custom link preview if `proxy` is true.',
839
- },
840
- ios: {
841
- type: 'string',
842
- description: 'The iOS destination URL for the short link for iOS device targeting.',
843
- },
844
- isFormMandatory: {
845
- type: 'boolean',
846
- description: 'If the form is mandatory for the page.',
847
- },
848
- key: {
849
- type: 'string',
850
- description:
851
- 'The slug of the short link. If not provided, a random 7-character slug will be generated.',
852
- },
853
- pageId: {
854
- type: 'string',
855
- description: 'The ID of the page to redirect to before the link destination.',
856
- },
857
- pageUrl: {
858
- type: 'string',
859
- description: 'The URL of the page to redirect to before the link destination.',
860
- },
861
- password: {
862
- type: 'string',
863
- description: 'The password required to access the short link destination URL.',
864
- },
865
- prefix: {
866
- type: 'string',
867
- description:
868
- 'The prefix of the short link slug for randomly generated keys (for example, if the prefix is `/c/`, the generated keys will be in the format `/c/:key`). Will be ignored if `key` is provided.',
869
- },
870
- preRedirection: {
871
- type: 'boolean',
872
- description: 'Whether the short link has pre-redirection.',
873
- },
874
- proxy: {
875
- type: 'boolean',
876
- description: 'Whether the short link uses the custom link preview feature.',
877
- },
878
- publicStats: {
879
- type: 'boolean',
880
- description: 'Whether the short link statistics are publicly accessible.',
881
- },
882
- rewrite: {
883
- type: 'boolean',
884
- description: 'Whether the short link uses link cloaking.',
885
- },
886
- tagId: {
887
- type: 'string',
888
- description:
889
- 'The unique ID of the tag assigned to the short link. This field is deprecated – use `tagIds` instead.',
890
- },
891
- tagIds: {
892
- anyOf: [
893
- {
894
- type: 'string',
895
- },
896
- {
897
- type: 'array',
898
- items: {
899
- type: 'string',
900
- },
901
- },
902
- ],
903
- description: 'The unique IDs of the tags assigned to the short link.',
904
- },
905
- tagNames: {
906
- anyOf: [
907
- {
908
- type: 'string',
909
- },
910
- {
911
- type: 'array',
912
- items: {
913
- type: 'string',
914
- },
915
- },
916
- ],
917
- description: 'The unique name of the tags assigned to the short link (case insensitive).',
918
- },
919
- title: {
920
- type: 'string',
921
- description:
922
- 'The title of the short link generated via `api.codeqr.io/metatags`. Will be used for custom link preview if `proxy` is true.',
923
- },
924
- trackConversion: {
925
- type: 'boolean',
926
- description: 'Whether to track conversions for the short link.',
927
- },
928
- url: {
929
- type: 'string',
930
- description: 'The destination URL of the short link.',
931
- },
932
- video: {
933
- type: 'string',
934
- description: 'The video of the short link.',
935
- },
936
- webhookIds: {
937
- type: 'array',
938
- description:
939
- 'An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.',
940
- items: {
941
- type: 'string',
942
- },
943
- },
944
- },
945
- required: ['linkId'],
946
- },
947
- annotations: {
948
- idempotentHint: true,
949
- },
950
- };
951
-
952
- export const handler = async (client: Codeqr, args: Record<string, unknown> | undefined) => {
953
- const { linkId, ...body } = args as any;
954
- try {
955
- return asTextContentResult(await client.links.update(linkId, body));
956
- } catch (error) {
957
- if (error instanceof Codeqr.APIError) {
958
- return asErrorResult(error.message);
959
- }
960
- throw error;
961
- }
962
- };
963
-
964
- export default { metadata, tool, handler };