@codeqr/ts-mcp 0.6.0 → 0.8.0

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 (284) hide show
  1. package/code-tool-types.d.mts +2 -0
  2. package/code-tool-types.d.mts.map +1 -1
  3. package/code-tool-types.d.ts +2 -0
  4. package/code-tool-types.d.ts.map +1 -1
  5. package/code-tool-worker.d.mts.map +1 -1
  6. package/code-tool-worker.d.ts.map +1 -1
  7. package/code-tool-worker.js +6 -0
  8. package/code-tool-worker.js.map +1 -1
  9. package/code-tool-worker.mjs +6 -0
  10. package/code-tool-worker.mjs.map +1 -1
  11. package/code-tool.d.mts.map +1 -1
  12. package/code-tool.d.ts.map +1 -1
  13. package/code-tool.js +18 -2
  14. package/code-tool.js.map +1 -1
  15. package/code-tool.mjs +18 -2
  16. package/code-tool.mjs.map +1 -1
  17. package/docs-search-tool.d.mts.map +1 -1
  18. package/docs-search-tool.d.ts.map +1 -1
  19. package/docs-search-tool.js +7 -2
  20. package/docs-search-tool.js.map +1 -1
  21. package/docs-search-tool.mjs +7 -2
  22. package/docs-search-tool.mjs.map +1 -1
  23. package/filtering.d.mts +1 -0
  24. package/filtering.d.mts.map +1 -1
  25. package/filtering.d.ts +1 -0
  26. package/filtering.d.ts.map +1 -1
  27. package/filtering.js +4 -0
  28. package/filtering.js.map +1 -1
  29. package/filtering.mjs +3 -0
  30. package/filtering.mjs.map +1 -1
  31. package/headers.d.mts.map +1 -1
  32. package/headers.d.ts.map +1 -1
  33. package/headers.js +1 -1
  34. package/headers.js.map +1 -1
  35. package/headers.mjs +1 -1
  36. package/headers.mjs.map +1 -1
  37. package/http.js +2 -2
  38. package/http.js.map +1 -1
  39. package/http.mjs +2 -2
  40. package/http.mjs.map +1 -1
  41. package/package.json +3 -3
  42. package/server.js +1 -1
  43. package/server.mjs +1 -1
  44. package/src/code-tool-types.ts +5 -1
  45. package/src/code-tool-worker.ts +6 -0
  46. package/src/code-tool.ts +23 -2
  47. package/src/docs-search-tool.ts +7 -3
  48. package/src/filtering.ts +4 -0
  49. package/src/headers.ts +3 -1
  50. package/src/http.ts +2 -2
  51. package/src/server.ts +1 -1
  52. package/src/tools/analytics/retrieve-analytics.ts +9 -2
  53. package/src/tools/domains/create-domains.ts +20 -4
  54. package/src/tools/domains/delete-domains.ts +10 -3
  55. package/src/tools/domains/list-domains.ts +11 -4
  56. package/src/tools/domains/update-domains.ts +20 -4
  57. package/src/tools/events/list-events.ts +9 -2
  58. package/src/tools/links/bulk/create-links-bulk.ts +9 -2
  59. package/src/tools/links/bulk/delete-links-bulk.ts +10 -3
  60. package/src/tools/links/count-links.ts +9 -2
  61. package/src/tools/links/create-links.ts +9 -2
  62. package/src/tools/links/delete-links.ts +10 -3
  63. package/src/tools/links/list-links.ts +9 -2
  64. package/src/tools/links/retrieve-info-links.ts +10 -3
  65. package/src/tools/links/update-links.ts +9 -2
  66. package/src/tools/links/upsert-links.ts +9 -2
  67. package/src/tools/projects/list-projects.ts +10 -3
  68. package/src/tools/projects/retrieve-projects.ts +10 -3
  69. package/src/tools/qrcodes/bulk/create-qrcodes-bulk.ts +9 -2
  70. package/src/tools/qrcodes/bulk/delete-qrcodes-bulk.ts +10 -3
  71. package/src/tools/qrcodes/count-qrcodes.ts +10 -3
  72. package/src/tools/qrcodes/create-qrcodes.ts +9 -2
  73. package/src/tools/qrcodes/delete-qrcodes.ts +10 -3
  74. package/src/tools/qrcodes/list-qrcodes.ts +9 -2
  75. package/src/tools/qrcodes/retrieve-qrcodes.ts +9 -2
  76. package/src/tools/qrcodes/update-qrcodes.ts +9 -2
  77. package/src/tools/qrcodes/upsert-qrcodes.ts +9 -2
  78. package/src/tools/tags/create-tags.ts +10 -3
  79. package/src/tools/tags/delete-tags.ts +10 -3
  80. package/src/tools/tags/list-tags.ts +10 -3
  81. package/src/tools/tags/update-tags.ts +10 -3
  82. package/src/tools/track/track-lead-track.ts +10 -3
  83. package/src/tools/track/track-sale-track.ts +10 -3
  84. package/src/tools/types.ts +12 -0
  85. package/tools/analytics/retrieve-analytics.d.mts.map +1 -1
  86. package/tools/analytics/retrieve-analytics.d.ts.map +1 -1
  87. package/tools/analytics/retrieve-analytics.js +13 -1
  88. package/tools/analytics/retrieve-analytics.js.map +1 -1
  89. package/tools/analytics/retrieve-analytics.mjs +11 -2
  90. package/tools/analytics/retrieve-analytics.mjs.map +1 -1
  91. package/tools/domains/create-domains.d.mts.map +1 -1
  92. package/tools/domains/create-domains.d.ts.map +1 -1
  93. package/tools/domains/create-domains.js +23 -2
  94. package/tools/domains/create-domains.js.map +1 -1
  95. package/tools/domains/create-domains.mjs +22 -4
  96. package/tools/domains/create-domains.mjs.map +1 -1
  97. package/tools/domains/delete-domains.d.mts.map +1 -1
  98. package/tools/domains/delete-domains.d.ts.map +1 -1
  99. package/tools/domains/delete-domains.js +13 -1
  100. package/tools/domains/delete-domains.js.map +1 -1
  101. package/tools/domains/delete-domains.mjs +12 -3
  102. package/tools/domains/delete-domains.mjs.map +1 -1
  103. package/tools/domains/list-domains.d.mts.map +1 -1
  104. package/tools/domains/list-domains.d.ts.map +1 -1
  105. package/tools/domains/list-domains.js +14 -2
  106. package/tools/domains/list-domains.js.map +1 -1
  107. package/tools/domains/list-domains.mjs +13 -4
  108. package/tools/domains/list-domains.mjs.map +1 -1
  109. package/tools/domains/update-domains.d.mts.map +1 -1
  110. package/tools/domains/update-domains.d.ts.map +1 -1
  111. package/tools/domains/update-domains.js +23 -2
  112. package/tools/domains/update-domains.js.map +1 -1
  113. package/tools/domains/update-domains.mjs +22 -4
  114. package/tools/domains/update-domains.mjs.map +1 -1
  115. package/tools/events/list-events.d.mts.map +1 -1
  116. package/tools/events/list-events.d.ts.map +1 -1
  117. package/tools/events/list-events.js +13 -1
  118. package/tools/events/list-events.js.map +1 -1
  119. package/tools/events/list-events.mjs +11 -2
  120. package/tools/events/list-events.mjs.map +1 -1
  121. package/tools/links/bulk/create-links-bulk.d.mts.map +1 -1
  122. package/tools/links/bulk/create-links-bulk.d.ts.map +1 -1
  123. package/tools/links/bulk/create-links-bulk.js +13 -1
  124. package/tools/links/bulk/create-links-bulk.js.map +1 -1
  125. package/tools/links/bulk/create-links-bulk.mjs +11 -2
  126. package/tools/links/bulk/create-links-bulk.mjs.map +1 -1
  127. package/tools/links/bulk/delete-links-bulk.d.mts.map +1 -1
  128. package/tools/links/bulk/delete-links-bulk.d.ts.map +1 -1
  129. package/tools/links/bulk/delete-links-bulk.js +13 -1
  130. package/tools/links/bulk/delete-links-bulk.js.map +1 -1
  131. package/tools/links/bulk/delete-links-bulk.mjs +12 -3
  132. package/tools/links/bulk/delete-links-bulk.mjs.map +1 -1
  133. package/tools/links/count-links.d.mts.map +1 -1
  134. package/tools/links/count-links.d.ts.map +1 -1
  135. package/tools/links/count-links.js +13 -1
  136. package/tools/links/count-links.js.map +1 -1
  137. package/tools/links/count-links.mjs +11 -2
  138. package/tools/links/count-links.mjs.map +1 -1
  139. package/tools/links/create-links.d.mts.map +1 -1
  140. package/tools/links/create-links.d.ts.map +1 -1
  141. package/tools/links/create-links.js +13 -1
  142. package/tools/links/create-links.js.map +1 -1
  143. package/tools/links/create-links.mjs +11 -2
  144. package/tools/links/create-links.mjs.map +1 -1
  145. package/tools/links/delete-links.d.mts.map +1 -1
  146. package/tools/links/delete-links.d.ts.map +1 -1
  147. package/tools/links/delete-links.js +13 -1
  148. package/tools/links/delete-links.js.map +1 -1
  149. package/tools/links/delete-links.mjs +12 -3
  150. package/tools/links/delete-links.mjs.map +1 -1
  151. package/tools/links/list-links.d.mts.map +1 -1
  152. package/tools/links/list-links.d.ts.map +1 -1
  153. package/tools/links/list-links.js +13 -1
  154. package/tools/links/list-links.js.map +1 -1
  155. package/tools/links/list-links.mjs +11 -2
  156. package/tools/links/list-links.mjs.map +1 -1
  157. package/tools/links/retrieve-info-links.d.mts.map +1 -1
  158. package/tools/links/retrieve-info-links.d.ts.map +1 -1
  159. package/tools/links/retrieve-info-links.js +13 -1
  160. package/tools/links/retrieve-info-links.js.map +1 -1
  161. package/tools/links/retrieve-info-links.mjs +12 -3
  162. package/tools/links/retrieve-info-links.mjs.map +1 -1
  163. package/tools/links/update-links.d.mts.map +1 -1
  164. package/tools/links/update-links.d.ts.map +1 -1
  165. package/tools/links/update-links.js +13 -1
  166. package/tools/links/update-links.js.map +1 -1
  167. package/tools/links/update-links.mjs +11 -2
  168. package/tools/links/update-links.mjs.map +1 -1
  169. package/tools/links/upsert-links.d.mts.map +1 -1
  170. package/tools/links/upsert-links.d.ts.map +1 -1
  171. package/tools/links/upsert-links.js +13 -1
  172. package/tools/links/upsert-links.js.map +1 -1
  173. package/tools/links/upsert-links.mjs +11 -2
  174. package/tools/links/upsert-links.mjs.map +1 -1
  175. package/tools/projects/list-projects.d.mts.map +1 -1
  176. package/tools/projects/list-projects.d.ts.map +1 -1
  177. package/tools/projects/list-projects.js +13 -1
  178. package/tools/projects/list-projects.js.map +1 -1
  179. package/tools/projects/list-projects.mjs +12 -3
  180. package/tools/projects/list-projects.mjs.map +1 -1
  181. package/tools/projects/retrieve-projects.d.mts.map +1 -1
  182. package/tools/projects/retrieve-projects.d.ts.map +1 -1
  183. package/tools/projects/retrieve-projects.js +13 -1
  184. package/tools/projects/retrieve-projects.js.map +1 -1
  185. package/tools/projects/retrieve-projects.mjs +12 -3
  186. package/tools/projects/retrieve-projects.mjs.map +1 -1
  187. package/tools/qrcodes/bulk/create-qrcodes-bulk.d.mts.map +1 -1
  188. package/tools/qrcodes/bulk/create-qrcodes-bulk.d.ts.map +1 -1
  189. package/tools/qrcodes/bulk/create-qrcodes-bulk.js +13 -1
  190. package/tools/qrcodes/bulk/create-qrcodes-bulk.js.map +1 -1
  191. package/tools/qrcodes/bulk/create-qrcodes-bulk.mjs +11 -2
  192. package/tools/qrcodes/bulk/create-qrcodes-bulk.mjs.map +1 -1
  193. package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.mts.map +1 -1
  194. package/tools/qrcodes/bulk/delete-qrcodes-bulk.d.ts.map +1 -1
  195. package/tools/qrcodes/bulk/delete-qrcodes-bulk.js +13 -1
  196. package/tools/qrcodes/bulk/delete-qrcodes-bulk.js.map +1 -1
  197. package/tools/qrcodes/bulk/delete-qrcodes-bulk.mjs +12 -3
  198. package/tools/qrcodes/bulk/delete-qrcodes-bulk.mjs.map +1 -1
  199. package/tools/qrcodes/count-qrcodes.d.mts.map +1 -1
  200. package/tools/qrcodes/count-qrcodes.d.ts.map +1 -1
  201. package/tools/qrcodes/count-qrcodes.js +13 -1
  202. package/tools/qrcodes/count-qrcodes.js.map +1 -1
  203. package/tools/qrcodes/count-qrcodes.mjs +12 -3
  204. package/tools/qrcodes/count-qrcodes.mjs.map +1 -1
  205. package/tools/qrcodes/create-qrcodes.d.mts.map +1 -1
  206. package/tools/qrcodes/create-qrcodes.d.ts.map +1 -1
  207. package/tools/qrcodes/create-qrcodes.js +13 -1
  208. package/tools/qrcodes/create-qrcodes.js.map +1 -1
  209. package/tools/qrcodes/create-qrcodes.mjs +11 -2
  210. package/tools/qrcodes/create-qrcodes.mjs.map +1 -1
  211. package/tools/qrcodes/delete-qrcodes.d.mts.map +1 -1
  212. package/tools/qrcodes/delete-qrcodes.d.ts.map +1 -1
  213. package/tools/qrcodes/delete-qrcodes.js +13 -1
  214. package/tools/qrcodes/delete-qrcodes.js.map +1 -1
  215. package/tools/qrcodes/delete-qrcodes.mjs +12 -3
  216. package/tools/qrcodes/delete-qrcodes.mjs.map +1 -1
  217. package/tools/qrcodes/list-qrcodes.d.mts.map +1 -1
  218. package/tools/qrcodes/list-qrcodes.d.ts.map +1 -1
  219. package/tools/qrcodes/list-qrcodes.js +13 -1
  220. package/tools/qrcodes/list-qrcodes.js.map +1 -1
  221. package/tools/qrcodes/list-qrcodes.mjs +11 -2
  222. package/tools/qrcodes/list-qrcodes.mjs.map +1 -1
  223. package/tools/qrcodes/retrieve-qrcodes.d.mts.map +1 -1
  224. package/tools/qrcodes/retrieve-qrcodes.d.ts.map +1 -1
  225. package/tools/qrcodes/retrieve-qrcodes.js +13 -1
  226. package/tools/qrcodes/retrieve-qrcodes.js.map +1 -1
  227. package/tools/qrcodes/retrieve-qrcodes.mjs +11 -2
  228. package/tools/qrcodes/retrieve-qrcodes.mjs.map +1 -1
  229. package/tools/qrcodes/update-qrcodes.d.mts.map +1 -1
  230. package/tools/qrcodes/update-qrcodes.d.ts.map +1 -1
  231. package/tools/qrcodes/update-qrcodes.js +13 -1
  232. package/tools/qrcodes/update-qrcodes.js.map +1 -1
  233. package/tools/qrcodes/update-qrcodes.mjs +11 -2
  234. package/tools/qrcodes/update-qrcodes.mjs.map +1 -1
  235. package/tools/qrcodes/upsert-qrcodes.d.mts.map +1 -1
  236. package/tools/qrcodes/upsert-qrcodes.d.ts.map +1 -1
  237. package/tools/qrcodes/upsert-qrcodes.js +13 -1
  238. package/tools/qrcodes/upsert-qrcodes.js.map +1 -1
  239. package/tools/qrcodes/upsert-qrcodes.mjs +11 -2
  240. package/tools/qrcodes/upsert-qrcodes.mjs.map +1 -1
  241. package/tools/tags/create-tags.d.mts.map +1 -1
  242. package/tools/tags/create-tags.d.ts.map +1 -1
  243. package/tools/tags/create-tags.js +13 -1
  244. package/tools/tags/create-tags.js.map +1 -1
  245. package/tools/tags/create-tags.mjs +12 -3
  246. package/tools/tags/create-tags.mjs.map +1 -1
  247. package/tools/tags/delete-tags.d.mts.map +1 -1
  248. package/tools/tags/delete-tags.d.ts.map +1 -1
  249. package/tools/tags/delete-tags.js +13 -1
  250. package/tools/tags/delete-tags.js.map +1 -1
  251. package/tools/tags/delete-tags.mjs +12 -3
  252. package/tools/tags/delete-tags.mjs.map +1 -1
  253. package/tools/tags/list-tags.d.mts.map +1 -1
  254. package/tools/tags/list-tags.d.ts.map +1 -1
  255. package/tools/tags/list-tags.js +13 -1
  256. package/tools/tags/list-tags.js.map +1 -1
  257. package/tools/tags/list-tags.mjs +12 -3
  258. package/tools/tags/list-tags.mjs.map +1 -1
  259. package/tools/tags/update-tags.d.mts.map +1 -1
  260. package/tools/tags/update-tags.d.ts.map +1 -1
  261. package/tools/tags/update-tags.js +13 -1
  262. package/tools/tags/update-tags.js.map +1 -1
  263. package/tools/tags/update-tags.mjs +12 -3
  264. package/tools/tags/update-tags.mjs.map +1 -1
  265. package/tools/track/track-lead-track.d.mts.map +1 -1
  266. package/tools/track/track-lead-track.d.ts.map +1 -1
  267. package/tools/track/track-lead-track.js +13 -1
  268. package/tools/track/track-lead-track.js.map +1 -1
  269. package/tools/track/track-lead-track.mjs +12 -3
  270. package/tools/track/track-lead-track.mjs.map +1 -1
  271. package/tools/track/track-sale-track.d.mts.map +1 -1
  272. package/tools/track/track-sale-track.d.ts.map +1 -1
  273. package/tools/track/track-sale-track.js +13 -1
  274. package/tools/track/track-sale-track.js.map +1 -1
  275. package/tools/track/track-sale-track.mjs +12 -3
  276. package/tools/track/track-sale-track.mjs.map +1 -1
  277. package/tools/types.d.mts +1 -0
  278. package/tools/types.d.mts.map +1 -1
  279. package/tools/types.d.ts +1 -0
  280. package/tools/types.d.ts.map +1 -1
  281. package/tools/types.js +12 -0
  282. package/tools/types.js.map +1 -1
  283. package/tools/types.mjs +11 -0
  284. package/tools/types.mjs.map +1 -1
@@ -1,6 +1,7 @@
1
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';
2
+ import { isJqError, maybeFilter } from '@codeqr/ts-mcp/filtering';
3
+ import { asErrorResult, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
4
+ import Codeqr from '@codeqr/ts';
4
5
  export const metadata = {
5
6
  resource: 'domains',
6
7
  operation: 'write',
@@ -11,7 +12,7 @@ export const metadata = {
11
12
  };
12
13
  export const tool = {
13
14
  name: 'create_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\nCreate 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
+ 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\nCreate 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 target: {\n type: 'string',\n description: 'The target URL to redirect to when accessing the domain root.'\n },\n type: {\n type: 'string',\n description: 'The behavior type for the domain root redirect.',\n enum: [ 'redirect',\n 'rewrite'\n ]\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 'target',\n 'type',\n 'updatedAt',\n 'verified'\n ]\n }\n }\n}\n```",
15
16
  inputSchema: {
16
17
  type: 'object',
17
18
  properties: {
@@ -31,6 +32,15 @@ export const tool = {
31
32
  type: 'string',
32
33
  description: 'Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.',
33
34
  },
35
+ target: {
36
+ type: 'string',
37
+ description: 'The target URL to redirect to when accessing the domain root.',
38
+ },
39
+ type: {
40
+ type: 'string',
41
+ description: 'The behavior type for the domain root redirect.',
42
+ enum: ['redirect', 'rewrite'],
43
+ },
34
44
  jq_filter: {
35
45
  type: 'string',
36
46
  title: 'jq Filter',
@@ -43,7 +53,15 @@ export const tool = {
43
53
  };
44
54
  export const handler = async (client, args) => {
45
55
  const { jq_filter, ...body } = args;
46
- return asTextContentResult(await maybeFilter(jq_filter, await client.domains.create(body)));
56
+ try {
57
+ return asTextContentResult(await maybeFilter(jq_filter, await client.domains.create(body)));
58
+ }
59
+ catch (error) {
60
+ if (error instanceof Codeqr.APIError || isJqError(error)) {
61
+ return asErrorResult(error.message);
62
+ }
63
+ throw error;
64
+ }
47
65
  };
48
66
  export default { metadata, tool, handler };
49
67
  //# sourceMappingURL=create-domains.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-domains.mjs","sourceRoot":"","sources":["../../src/tools/domains/create-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,EA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AC3C,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC9F,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,MAAM,CAAC,QAAQ,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACzD,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +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"}
1
+ {"version":3,"file":"delete-domains.d.mts","sourceRoot":"","sources":["../../src/tools/domains/delete-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,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,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
@@ -1 +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"}
1
+ {"version":3,"file":"delete-domains.d.ts","sourceRoot":"","sources":["../../src/tools/domains/delete-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,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,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
3
6
  Object.defineProperty(exports, "__esModule", { value: true });
4
7
  exports.handler = exports.tool = exports.metadata = void 0;
5
8
  const filtering_1 = require("@codeqr/ts-mcp/filtering");
6
9
  const types_1 = require("@codeqr/ts-mcp/tools/types");
10
+ const ts_1 = __importDefault(require("@codeqr/ts"));
7
11
  exports.metadata = {
8
12
  resource: 'domains',
9
13
  operation: 'write',
@@ -36,7 +40,15 @@ exports.tool = {
36
40
  };
37
41
  const handler = async (client, args) => {
38
42
  const { slug, jq_filter, ...body } = args;
39
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.domains.delete(slug)));
43
+ try {
44
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.domains.delete(slug)));
45
+ }
46
+ catch (error) {
47
+ if (error instanceof ts_1.default.APIError || (0, filtering_1.isJqError)(error)) {
48
+ return (0, types_1.asErrorResult)(error.message);
49
+ }
50
+ throw error;
51
+ }
40
52
  };
41
53
  exports.handler = handler;
42
54
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +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,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import { asTextContentResult } from '@codeqr/ts-mcp/tools/types';
2
+ import { isJqError, maybeFilter } from '@codeqr/ts-mcp/filtering';
3
+ import { asErrorResult, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
4
+ import Codeqr from '@codeqr/ts';
4
5
  export const metadata = {
5
6
  resource: 'domains',
6
7
  operation: 'write',
@@ -33,7 +34,15 @@ export const tool = {
33
34
  };
34
35
  export const handler = async (client, args) => {
35
36
  const { slug, jq_filter, ...body } = args;
36
- return asTextContentResult(await maybeFilter(jq_filter, await client.domains.delete(slug)));
37
+ try {
38
+ return asTextContentResult(await maybeFilter(jq_filter, await client.domains.delete(slug)));
39
+ }
40
+ catch (error) {
41
+ if (error instanceof Codeqr.APIError || isJqError(error)) {
42
+ return asErrorResult(error.message);
43
+ }
44
+ throw error;
45
+ }
37
46
  };
38
47
  export default { metadata, tool, handler };
39
48
  //# sourceMappingURL=delete-domains.mjs.map
@@ -1 +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,6mBAA6mB;IAC/mB,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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AAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAKvF,wBAA2C"}
1
+ {"version":3,"file":"list-domains.d.mts","sourceRoot":"","sources":["../../src/tools/domains/list-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,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,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
@@ -1 +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"}
1
+ {"version":3,"file":"list-domains.d.ts","sourceRoot":"","sources":["../../src/tools/domains/list-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,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,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
3
6
  Object.defineProperty(exports, "__esModule", { value: true });
4
7
  exports.handler = exports.tool = exports.metadata = void 0;
5
8
  const filtering_1 = require("@codeqr/ts-mcp/filtering");
6
9
  const types_1 = require("@codeqr/ts-mcp/tools/types");
10
+ const ts_1 = __importDefault(require("@codeqr/ts"));
7
11
  exports.metadata = {
8
12
  resource: 'domains',
9
13
  operation: 'read',
@@ -14,7 +18,7 @@ exports.metadata = {
14
18
  };
15
19
  exports.tool = {
16
20
  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 $ref: '#/$defs/domain_list_response',\n $defs: {\n domain_list_response: {\n type: 'array',\n items: {\n $ref: '#/$defs/domain'\n }\n },\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```",
21
+ 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 $ref: '#/$defs/domain_list_response',\n $defs: {\n domain_list_response: {\n type: 'array',\n items: {\n $ref: '#/$defs/domain'\n }\n },\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 target: {\n type: 'string',\n description: 'The target URL to redirect to when accessing the domain root.'\n },\n type: {\n type: 'string',\n description: 'The behavior type for the domain root redirect.',\n enum: [ 'redirect',\n 'rewrite'\n ]\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 'target',\n 'type',\n 'updatedAt',\n 'verified'\n ]\n }\n }\n}\n```",
18
22
  inputSchema: {
19
23
  type: 'object',
20
24
  properties: {
@@ -48,7 +52,15 @@ exports.tool = {
48
52
  };
49
53
  const handler = async (client, args) => {
50
54
  const { jq_filter, ...body } = args;
51
- return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.domains.list(body)));
55
+ try {
56
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.domains.list(body)));
57
+ }
58
+ catch (error) {
59
+ if (error instanceof ts_1.default.APIError || (0, filtering_1.isJqError)(error)) {
60
+ return (0, types_1.asErrorResult)(error.message);
61
+ }
62
+ throw error;
63
+ }
52
64
  };
53
65
  exports.handler = handler;
54
66
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +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,s5DAAs5D;IACx5D,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,EAA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/ts-mcp/filtering';
3
- import { asTextContentResult } from '@codeqr/ts-mcp/tools/types';
2
+ import { isJqError, maybeFilter } from '@codeqr/ts-mcp/filtering';
3
+ import { asErrorResult, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
4
+ import Codeqr from '@codeqr/ts';
4
5
  export const metadata = {
5
6
  resource: 'domains',
6
7
  operation: 'read',
@@ -11,7 +12,7 @@ export const metadata = {
11
12
  };
12
13
  export const tool = {
13
14
  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 $ref: '#/$defs/domain_list_response',\n $defs: {\n domain_list_response: {\n type: 'array',\n items: {\n $ref: '#/$defs/domain'\n }\n },\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
+ 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 $ref: '#/$defs/domain_list_response',\n $defs: {\n domain_list_response: {\n type: 'array',\n items: {\n $ref: '#/$defs/domain'\n }\n },\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 target: {\n type: 'string',\n description: 'The target URL to redirect to when accessing the domain root.'\n },\n type: {\n type: 'string',\n description: 'The behavior type for the domain root redirect.',\n enum: [ 'redirect',\n 'rewrite'\n ]\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 'target',\n 'type',\n 'updatedAt',\n 'verified'\n ]\n }\n }\n}\n```",
15
16
  inputSchema: {
16
17
  type: 'object',
17
18
  properties: {
@@ -45,7 +46,15 @@ export const tool = {
45
46
  };
46
47
  export const handler = async (client, args) => {
47
48
  const { jq_filter, ...body } = args;
48
- return asTextContentResult(await maybeFilter(jq_filter, await client.domains.list(body)));
49
+ try {
50
+ return asTextContentResult(await maybeFilter(jq_filter, await client.domains.list(body)));
51
+ }
52
+ catch (error) {
53
+ if (error instanceof Codeqr.APIError || isJqError(error)) {
54
+ return asErrorResult(error.message);
55
+ }
56
+ throw error;
57
+ }
49
58
  };
50
59
  export default { metadata, tool, handler };
51
60
  //# sourceMappingURL=list-domains.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-domains.mjs","sourceRoot":"","sources":["../../src/tools/domains/list-domains.ts"],"names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SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC5F,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,MAAM,CAAC,QAAQ,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YACzD,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +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"}
1
+ {"version":3,"file":"update-domains.d.mts","sourceRoot":"","sources":["../../src/tools/domains/update-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA+ClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
@@ -1 +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"}
1
+ {"version":3,"file":"update-domains.d.ts","sourceRoot":"","sources":["../../src/tools/domains/update-domains.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IA+ClB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
3
6
  Object.defineProperty(exports, "__esModule", { value: true });
4
7
  exports.handler = exports.tool = exports.metadata = void 0;
5
8
  const filtering_1 = require("@codeqr/ts-mcp/filtering");
6
9
  const types_1 = require("@codeqr/ts-mcp/tools/types");
10
+ const ts_1 = __importDefault(require("@codeqr/ts"));
7
11
  exports.metadata = {
8
12
  resource: 'domains',
9
13
  operation: 'write',
@@ -14,7 +18,7 @@ exports.metadata = {
14
18
  };
15
19
  exports.tool = {
16
20
  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```",
21
+ 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 target: {\n type: 'string',\n description: 'The target URL to redirect to when accessing the domain root.'\n },\n type: {\n type: 'string',\n description: 'The behavior type for the domain root redirect.',\n enum: [ 'redirect',\n 'rewrite'\n ]\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 'target',\n 'type',\n 'updatedAt',\n 'verified'\n ]\n }\n }\n}\n```",
18
22
  inputSchema: {
19
23
  type: 'object',
20
24
  properties: {
@@ -38,6 +42,15 @@ exports.tool = {
38
42
  type: 'string',
39
43
  description: 'Name of the domain.',
40
44
  },
45
+ target: {
46
+ type: 'string',
47
+ description: 'The target URL to redirect to when accessing the domain root.',
48
+ },
49
+ type: {
50
+ type: 'string',
51
+ description: 'The behavior type for the domain root redirect.',
52
+ enum: ['redirect', 'rewrite'],
53
+ },
41
54
  jq_filter: {
42
55
  type: 'string',
43
56
  title: 'jq Filter',
@@ -50,7 +63,15 @@ exports.tool = {
50
63
  };
51
64
  const handler = async (client, args) => {
52
65
  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)));
66
+ try {
67
+ return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.domains.update(slug, body)));
68
+ }
69
+ catch (error) {
70
+ if (error instanceof ts_1.default.APIError || (0, filtering_1.isJqError)(error)) {
71
+ return (0, types_1.asErrorResult)(error.message);
72
+ }
73
+ throw error;
74
+ }
54
75
  };
55
76
  exports.handler = handler;
56
77
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +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,oHAA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D,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,OAAO,WAUlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,6 +1,7 @@
1
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';
2
+ import { isJqError, maybeFilter } from '@codeqr/ts-mcp/filtering';
3
+ import { asErrorResult, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
4
+ import Codeqr from '@codeqr/ts';
4
5
  export const metadata = {
5
6
  resource: 'domains',
6
7
  operation: 'write',
@@ -11,7 +12,7 @@ export const metadata = {
11
12
  };
12
13
  export const tool = {
13
14
  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
+ 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 target: {\n type: 'string',\n description: 'The target URL to redirect to when accessing the domain root.'\n },\n type: {\n type: 'string',\n description: 'The behavior type for the domain root redirect.',\n enum: [ 'redirect',\n 'rewrite'\n ]\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 'target',\n 'type',\n 'updatedAt',\n 'verified'\n ]\n }\n }\n}\n```",
15
16
  inputSchema: {
16
17
  type: 'object',
17
18
  properties: {
@@ -35,6 +36,15 @@ export const tool = {
35
36
  type: 'string',
36
37
  description: 'Name of the domain.',
37
38
  },
39
+ target: {
40
+ type: 'string',
41
+ description: 'The target URL to redirect to when accessing the domain root.',
42
+ },
43
+ type: {
44
+ type: 'string',
45
+ description: 'The behavior type for the domain root redirect.',
46
+ enum: ['redirect', 'rewrite'],
47
+ },
38
48
  jq_filter: {
39
49
  type: 'string',
40
50
  title: 'jq Filter',
@@ -47,7 +57,15 @@ export const tool = {
47
57
  };
48
58
  export const handler = async (client, args) => {
49
59
  const { slug, jq_filter, ...body } = args;
50
- return asTextContentResult(await maybeFilter(jq_filter, await client.domains.update(slug, body)));
60
+ try {
61
+ return asTextContentResult(await maybeFilter(jq_filter, await client.domains.update(slug, body)));
62
+ }
63
+ catch (error) {
64
+ if (error instanceof Codeqr.APIError || isJqError(error)) {
65
+ return asErrorResult(error.message);
66
+ }
67
+ throw error;
68
+ }
51
69
  };
52
70
  export default { metadata, tool, handler };
53
71
  //# sourceMappingURL=update-domains.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-domains.mjs","sourceRoot":"","sources":["../../src/tools/domains/update-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,OAAO;IACnB,QAAQ,EAAE,iBAAiB;IAC3B,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,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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C,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-events.d.mts","sourceRoot":"","sources":["../../src/tools/events/list-events.ts"],"names":[],"mappings":"OAEO,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,IAsYlB,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"}
1
+ {"version":3,"file":"list-events.d.mts","sourceRoot":"","sources":["../../src/tools/events/list-events.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsYlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"list-events.d.ts","sourceRoot":"","sources":["../../src/tools/events/list-events.ts"],"names":[],"mappings":"OAEO,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,IAsYlB,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"}
1
+ {"version":3,"file":"list-events.d.ts","sourceRoot":"","sources":["../../src/tools/events/list-events.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAsYlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
3
6
  Object.defineProperty(exports, "__esModule", { value: true });
4
7
  exports.handler = exports.tool = exports.metadata = void 0;
5
8
  const types_1 = require("@codeqr/ts-mcp/tools/types");
9
+ const ts_1 = __importDefault(require("@codeqr/ts"));
6
10
  exports.metadata = {
7
11
  resource: 'events',
8
12
  operation: 'read',
@@ -399,7 +403,15 @@ exports.tool = {
399
403
  };
400
404
  const handler = async (client, args) => {
401
405
  const body = args;
402
- return (0, types_1.asTextContentResult)(await client.events.list(body));
406
+ try {
407
+ return (0, types_1.asTextContentResult)(await client.events.list(body));
408
+ }
409
+ catch (error) {
410
+ if (error instanceof ts_1.default.APIError) {
411
+ return (0, types_1.asErrorResult)(error.message);
412
+ }
413
+ throw error;
414
+ }
403
415
  };
404
416
  exports.handler = handler;
405
417
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
@@ -1 +1 @@
1
- {"version":3,"file":"list-events.js","sourceRoot":"","sources":["../../src/tools/events/list-events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAA2E;AAK9D,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,sEAAsE;IACnF,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wCAAwC;aACtD;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qCAAqC;aACnD;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,wBAAwB;aAC/B;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,sBAAsB;aAC7B;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,uCAAuC;aACrD;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+B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EAAE;IACzF,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,YAAM,CAAC,QAAQ,EAAE,CAAC;YACrC,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,OAAO,WAUlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { asTextContentResult } from '@codeqr/ts-mcp/tools/types';
2
+ import { asErrorResult, asTextContentResult } from '@codeqr/ts-mcp/tools/types';
3
+ import Codeqr from '@codeqr/ts';
3
4
  export const metadata = {
4
5
  resource: 'events',
5
6
  operation: 'read',
@@ -396,7 +397,15 @@ export const tool = {
396
397
  };
397
398
  export const handler = async (client, args) => {
398
399
  const body = args;
399
- return asTextContentResult(await client.events.list(body));
400
+ try {
401
+ return asTextContentResult(await client.events.list(body));
402
+ }
403
+ catch (error) {
404
+ if (error instanceof Codeqr.APIError) {
405
+ return asErrorResult(error.message);
406
+ }
407
+ throw error;
408
+ }
400
409
  };
401
410
  export default { metadata, tool, handler };
402
411
  //# sourceMappingURL=list-events.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-events.mjs","sourceRoot":"","sources":["../../src/tools/events/list-events.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;AAK1E,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,E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ings":"OAEO,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,IAu6BlB,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"}
1
+ {"version":3,"file":"create-links-bulk.d.mts","sourceRoot":"","sources":["../../../src/tools/links/bulk/create-links-bulk.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAu6BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-links-bulk.d.ts","sourceRoot":"","sources":["../../../src/tools/links/bulk/create-links-bulk.ts"],"names":[],"mappings":"OAEO,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,IAu6BlB,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"}
1
+ {"version":3,"file":"create-links-bulk.d.ts","sourceRoot":"","sources":["../../../src/tools/links/bulk/create-links-bulk.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,MAAM,MAAM,YAAY;AAE/B,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAu6BlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,MAAM,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUtF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYvF,wBAA2C"}