@steuerboard/mcp 0.0.1 → 0.1.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 (316) hide show
  1. package/README.md +29 -46
  2. package/bin/mcp-server.js +1197 -442
  3. package/bin/mcp-server.js.map +63 -47
  4. package/esm/src/cloudflare-worker/cloudflare-worker.d.ts +1 -1
  5. package/esm/src/cloudflare-worker/cloudflare-worker.d.ts.map +1 -1
  6. package/esm/src/cloudflare-worker/cloudflare-worker.js +8 -5
  7. package/esm/src/cloudflare-worker/cloudflare-worker.js.map +1 -1
  8. package/esm/src/cloudflare-worker/landing-page.d.ts +1 -1
  9. package/esm/src/cloudflare-worker/landing-page.d.ts.map +1 -1
  10. package/esm/src/cloudflare-worker/landing-page.js +9 -9
  11. package/esm/src/cloudflare-worker/landing-page.js.map +1 -1
  12. package/esm/src/funcs/adminClientsCreateClient.d.ts +17 -0
  13. package/esm/src/funcs/adminClientsCreateClient.d.ts.map +1 -0
  14. package/esm/src/funcs/adminClientsCreateClient.js +89 -0
  15. package/esm/src/funcs/adminClientsCreateClient.js.map +1 -0
  16. package/esm/src/funcs/adminClientsGetClient.js +4 -6
  17. package/esm/src/funcs/adminClientsGetClient.js.map +1 -1
  18. package/esm/src/funcs/adminClientsListClients.d.ts.map +1 -1
  19. package/esm/src/funcs/adminClientsListClients.js +24 -18
  20. package/esm/src/funcs/adminClientsListClients.js.map +1 -1
  21. package/esm/src/funcs/{authGetV1Me.d.ts → authMe.d.ts} +3 -3
  22. package/esm/src/funcs/authMe.d.ts.map +1 -0
  23. package/esm/src/funcs/{authGetV1Me.js → authMe.js} +5 -5
  24. package/esm/src/funcs/authMe.js.map +1 -0
  25. package/esm/src/funcs/filesCreateFile.js +31 -33
  26. package/esm/src/funcs/filesCreateFile.js.map +1 -1
  27. package/esm/src/funcs/filesDeleteFile.js +4 -6
  28. package/esm/src/funcs/filesDeleteFile.js.map +1 -1
  29. package/esm/src/funcs/filesGetFile.js +4 -4
  30. package/esm/src/funcs/filesGetFile.js.map +1 -1
  31. package/esm/src/funcs/filesListFiles.d.ts.map +1 -1
  32. package/esm/src/funcs/filesListFiles.js +19 -13
  33. package/esm/src/funcs/filesListFiles.js.map +1 -1
  34. package/esm/src/funcs/filesUpdateFile.js +4 -4
  35. package/esm/src/funcs/filesUpdateFile.js.map +1 -1
  36. package/esm/src/funcs/{healthCheckGetV1.d.ts → healthIndex.d.ts} +3 -3
  37. package/esm/src/funcs/{authGetV1Me.d.ts.map → healthIndex.d.ts.map} +1 -1
  38. package/esm/src/funcs/{healthCheckGetV1.js → healthIndex.js} +5 -5
  39. package/esm/src/funcs/healthIndex.js.map +1 -0
  40. package/esm/src/funcs/{healthCheckGetV1Ping.d.ts → healthPing.d.ts} +4 -4
  41. package/esm/src/funcs/healthPing.d.ts.map +1 -0
  42. package/esm/src/funcs/{healthCheckGetV1Ping.js → healthPing.js} +8 -12
  43. package/esm/src/funcs/healthPing.js.map +1 -0
  44. package/esm/src/funcs/tasksCreateTask.js +5 -1
  45. package/esm/src/funcs/tasksCreateTask.js.map +1 -1
  46. package/esm/src/funcs/tasksDeleteTask.js +8 -4
  47. package/esm/src/funcs/tasksDeleteTask.js.map +1 -1
  48. package/esm/src/funcs/tasksGetTask.js +8 -4
  49. package/esm/src/funcs/tasksGetTask.js.map +1 -1
  50. package/esm/src/funcs/tasksListTasks.d.ts +1 -1
  51. package/esm/src/funcs/tasksListTasks.d.ts.map +1 -1
  52. package/esm/src/funcs/tasksListTasks.js +27 -14
  53. package/esm/src/funcs/tasksListTasks.js.map +1 -1
  54. package/esm/src/funcs/tasksUpdateTask.js +5 -1
  55. package/esm/src/funcs/tasksUpdateTask.js.map +1 -1
  56. package/esm/src/funcs/workspacesCreateWorkspace.d.ts +16 -0
  57. package/esm/src/funcs/workspacesCreateWorkspace.d.ts.map +1 -0
  58. package/esm/src/funcs/workspacesCreateWorkspace.js +92 -0
  59. package/esm/src/funcs/workspacesCreateWorkspace.js.map +1 -0
  60. package/esm/src/funcs/workspacesGetWorkspace.js +4 -6
  61. package/esm/src/funcs/workspacesGetWorkspace.js.map +1 -1
  62. package/esm/src/funcs/workspacesListWorkspaces.d.ts.map +1 -1
  63. package/esm/src/funcs/workspacesListWorkspaces.js +19 -11
  64. package/esm/src/funcs/workspacesListWorkspaces.js.map +1 -1
  65. package/esm/src/lib/config.d.ts +3 -3
  66. package/esm/src/lib/config.d.ts.map +1 -1
  67. package/esm/src/lib/config.js +4 -6
  68. package/esm/src/lib/config.js.map +1 -1
  69. package/esm/src/mcp-server/mcp-server.js +1 -1
  70. package/esm/src/mcp-server/mcp-server.js.map +1 -1
  71. package/esm/src/mcp-server/server.d.ts.map +1 -1
  72. package/esm/src/mcp-server/server.js +24 -19
  73. package/esm/src/mcp-server/server.js.map +1 -1
  74. package/esm/src/mcp-server/tools/adminClientsCreateClient.d.ts +7 -0
  75. package/esm/src/mcp-server/tools/adminClientsCreateClient.d.ts.map +1 -0
  76. package/esm/src/mcp-server/tools/adminClientsCreateClient.js +28 -0
  77. package/esm/src/mcp-server/tools/adminClientsCreateClient.js.map +1 -0
  78. package/esm/src/mcp-server/tools/adminClientsListClients.d.ts.map +1 -1
  79. package/esm/src/mcp-server/tools/adminClientsListClients.js +1 -2
  80. package/esm/src/mcp-server/tools/adminClientsListClients.js.map +1 -1
  81. package/esm/src/mcp-server/tools/authMe.d.ts +3 -0
  82. package/esm/src/mcp-server/tools/authMe.d.ts.map +1 -0
  83. package/esm/src/mcp-server/tools/{healthCheckGetV1.js → authMe.js} +6 -6
  84. package/esm/src/mcp-server/tools/authMe.js.map +1 -0
  85. package/esm/src/mcp-server/tools/healthIndex.d.ts +3 -0
  86. package/esm/src/mcp-server/tools/healthIndex.d.ts.map +1 -0
  87. package/esm/src/mcp-server/tools/{authGetV1Me.js → healthIndex.js} +6 -6
  88. package/esm/src/mcp-server/tools/healthIndex.js.map +1 -0
  89. package/esm/src/mcp-server/tools/healthPing.d.ts +3 -0
  90. package/esm/src/mcp-server/tools/healthPing.d.ts.map +1 -0
  91. package/esm/src/mcp-server/tools/{healthCheckGetV1Ping.js → healthPing.js} +6 -6
  92. package/esm/src/mcp-server/tools/healthPing.js.map +1 -0
  93. package/esm/src/mcp-server/tools/tasksListTasks.d.ts +1 -1
  94. package/esm/src/mcp-server/tools/tasksListTasks.js +1 -1
  95. package/esm/src/mcp-server/tools/tasksListTasks.js.map +1 -1
  96. package/esm/src/mcp-server/tools/workspacesCreateWorkspace.d.ts +7 -0
  97. package/esm/src/mcp-server/tools/workspacesCreateWorkspace.d.ts.map +1 -0
  98. package/esm/src/mcp-server/tools/workspacesCreateWorkspace.js +28 -0
  99. package/esm/src/mcp-server/tools/workspacesCreateWorkspace.js.map +1 -0
  100. package/esm/src/mcp-server/tools.d.ts.map +1 -1
  101. package/esm/src/mcp-server/tools.js +10 -11
  102. package/esm/src/mcp-server/tools.js.map +1 -1
  103. package/esm/src/models/autherror.d.ts +13 -0
  104. package/esm/src/models/autherror.d.ts.map +1 -0
  105. package/esm/src/models/autherror.js +17 -0
  106. package/esm/src/models/autherror.js.map +1 -0
  107. package/esm/src/models/badrequest.d.ts +13 -0
  108. package/esm/src/models/badrequest.d.ts.map +1 -0
  109. package/esm/src/models/badrequest.js +17 -0
  110. package/esm/src/models/badrequest.js.map +1 -0
  111. package/esm/src/models/client.d.ts +4 -4
  112. package/esm/src/models/client.d.ts.map +1 -1
  113. package/esm/src/models/client.js +4 -4
  114. package/esm/src/models/client.js.map +1 -1
  115. package/esm/src/models/clientcreate.d.ts +25 -0
  116. package/esm/src/models/clientcreate.d.ts.map +1 -0
  117. package/esm/src/models/clientcreate.js +27 -0
  118. package/esm/src/models/clientcreate.js.map +1 -0
  119. package/esm/src/models/createclientop.d.ts +51 -0
  120. package/esm/src/models/createclientop.d.ts.map +1 -0
  121. package/esm/src/models/createclientop.js +50 -0
  122. package/esm/src/models/createclientop.js.map +1 -0
  123. package/esm/src/models/createfileop.d.ts +29 -9
  124. package/esm/src/models/createfileop.d.ts.map +1 -1
  125. package/esm/src/models/createfileop.js +29 -5
  126. package/esm/src/models/createfileop.js.map +1 -1
  127. package/esm/src/models/createtaskop.d.ts +25 -4
  128. package/esm/src/models/createtaskop.d.ts.map +1 -1
  129. package/esm/src/models/createtaskop.js +22 -3
  130. package/esm/src/models/createtaskop.js.map +1 -1
  131. package/esm/src/models/createworkspaceop.d.ts +59 -0
  132. package/esm/src/models/createworkspaceop.d.ts.map +1 -0
  133. package/esm/src/models/createworkspaceop.js +57 -0
  134. package/esm/src/models/createworkspaceop.js.map +1 -0
  135. package/esm/src/models/deletefileop.d.ts +19 -12
  136. package/esm/src/models/deletefileop.d.ts.map +1 -1
  137. package/esm/src/models/deletefileop.js +20 -7
  138. package/esm/src/models/deletefileop.js.map +1 -1
  139. package/esm/src/models/deletetaskop.d.ts +20 -4
  140. package/esm/src/models/deletetaskop.d.ts.map +1 -1
  141. package/esm/src/models/deletetaskop.js +21 -3
  142. package/esm/src/models/deletetaskop.js.map +1 -1
  143. package/esm/src/models/getclientop.d.ts +17 -12
  144. package/esm/src/models/getclientop.d.ts.map +1 -1
  145. package/esm/src/models/getclientop.js +18 -7
  146. package/esm/src/models/getclientop.js.map +1 -1
  147. package/esm/src/models/getfileop.d.ts +21 -8
  148. package/esm/src/models/getfileop.d.ts.map +1 -1
  149. package/esm/src/models/getfileop.js +19 -4
  150. package/esm/src/models/getfileop.js.map +1 -1
  151. package/esm/src/models/gettaskop.d.ts +20 -4
  152. package/esm/src/models/gettaskop.d.ts.map +1 -1
  153. package/esm/src/models/gettaskop.js +21 -3
  154. package/esm/src/models/gettaskop.js.map +1 -1
  155. package/esm/src/models/getworkspaceop.d.ts +19 -12
  156. package/esm/src/models/getworkspaceop.d.ts.map +1 -1
  157. package/esm/src/models/getworkspaceop.js +20 -7
  158. package/esm/src/models/getworkspaceop.js.map +1 -1
  159. package/esm/src/models/indexop.d.ts +18 -0
  160. package/esm/src/models/indexop.d.ts.map +1 -0
  161. package/esm/src/models/indexop.js +16 -0
  162. package/esm/src/models/indexop.js.map +1 -0
  163. package/esm/src/models/listclientsop.d.ts +28 -26
  164. package/esm/src/models/listclientsop.d.ts.map +1 -1
  165. package/esm/src/models/listclientsop.js +27 -19
  166. package/esm/src/models/listclientsop.js.map +1 -1
  167. package/esm/src/models/listfilesop.d.ts +20 -16
  168. package/esm/src/models/listfilesop.d.ts.map +1 -1
  169. package/esm/src/models/listfilesop.js +21 -12
  170. package/esm/src/models/listfilesop.js.map +1 -1
  171. package/esm/src/models/listtasksop.d.ts +33 -9
  172. package/esm/src/models/listtasksop.d.ts.map +1 -1
  173. package/esm/src/models/listtasksop.js +41 -9
  174. package/esm/src/models/listtasksop.js.map +1 -1
  175. package/esm/src/models/listworkspacesop.d.ts +20 -16
  176. package/esm/src/models/listworkspacesop.d.ts.map +1 -1
  177. package/esm/src/models/listworkspacesop.js +21 -11
  178. package/esm/src/models/listworkspacesop.js.map +1 -1
  179. package/esm/src/models/meop.d.ts +41 -0
  180. package/esm/src/models/meop.d.ts.map +1 -0
  181. package/esm/src/models/meop.js +38 -0
  182. package/esm/src/models/meop.js.map +1 -0
  183. package/esm/src/models/notfound.d.ts +13 -0
  184. package/esm/src/models/notfound.d.ts.map +1 -0
  185. package/esm/src/models/notfound.js +18 -0
  186. package/esm/src/models/notfound.js.map +1 -0
  187. package/esm/src/models/paginatedclients.d.ts +9 -0
  188. package/esm/src/models/paginatedclients.d.ts.map +1 -0
  189. package/esm/src/models/paginatedclients.js +11 -0
  190. package/esm/src/models/paginatedclients.js.map +1 -0
  191. package/esm/src/models/paginatedfiles.d.ts +9 -0
  192. package/esm/src/models/paginatedfiles.d.ts.map +1 -0
  193. package/esm/src/models/paginatedfiles.js +11 -0
  194. package/esm/src/models/paginatedfiles.js.map +1 -0
  195. package/esm/src/models/paginatedtasks.d.ts +9 -0
  196. package/esm/src/models/paginatedtasks.d.ts.map +1 -0
  197. package/esm/src/models/paginatedtasks.js +11 -0
  198. package/esm/src/models/paginatedtasks.js.map +1 -0
  199. package/esm/src/models/paginatedworkspaces.d.ts +9 -0
  200. package/esm/src/models/paginatedworkspaces.d.ts.map +1 -0
  201. package/esm/src/models/paginatedworkspaces.js +11 -0
  202. package/esm/src/models/paginatedworkspaces.js.map +1 -0
  203. package/esm/src/models/pingop.d.ts +18 -0
  204. package/esm/src/models/pingop.d.ts.map +1 -0
  205. package/esm/src/models/pingop.js +16 -0
  206. package/esm/src/models/pingop.js.map +1 -0
  207. package/esm/src/models/ratelimit.d.ts +13 -0
  208. package/esm/src/models/ratelimit.d.ts.map +1 -0
  209. package/esm/src/models/ratelimit.js +17 -0
  210. package/esm/src/models/ratelimit.js.map +1 -0
  211. package/esm/src/models/updatefileop.d.ts +22 -9
  212. package/esm/src/models/updatefileop.d.ts.map +1 -1
  213. package/esm/src/models/updatefileop.js +20 -5
  214. package/esm/src/models/updatefileop.js.map +1 -1
  215. package/esm/src/models/updatetaskop.d.ts +20 -4
  216. package/esm/src/models/updatetaskop.d.ts.map +1 -1
  217. package/esm/src/models/updatetaskop.js +21 -3
  218. package/esm/src/models/updatetaskop.js.map +1 -1
  219. package/esm/src/models/workspacecreate.d.ts +6 -0
  220. package/esm/src/models/workspacecreate.d.ts.map +1 -0
  221. package/esm/src/models/workspacecreate.js +8 -0
  222. package/esm/src/models/workspacecreate.js.map +1 -0
  223. package/manifest.json +17 -9
  224. package/package.json +7 -6
  225. package/src/cloudflare-worker/cloudflare-worker.ts +12 -9
  226. package/src/cloudflare-worker/landing-page.ts +9 -9
  227. package/src/funcs/adminClientsCreateClient.ts +172 -0
  228. package/src/funcs/adminClientsGetClient.ts +6 -5
  229. package/src/funcs/adminClientsListClients.ts +138 -131
  230. package/src/funcs/{authGetV1Me.ts → authMe.ts} +11 -10
  231. package/src/funcs/filesCreateFile.ts +41 -39
  232. package/src/funcs/filesDeleteFile.ts +7 -5
  233. package/src/funcs/filesGetFile.ts +7 -3
  234. package/src/funcs/filesListFiles.ts +138 -130
  235. package/src/funcs/filesUpdateFile.ts +7 -3
  236. package/src/funcs/{healthCheckGetV1.ts → healthIndex.ts} +9 -7
  237. package/src/funcs/{healthCheckGetV1Ping.ts → healthPing.ts} +12 -17
  238. package/src/funcs/tasksCreateTask.ts +10 -1
  239. package/src/funcs/tasksDeleteTask.ts +11 -2
  240. package/src/funcs/tasksGetTask.ts +11 -2
  241. package/src/funcs/tasksListTasks.ts +141 -125
  242. package/src/funcs/tasksUpdateTask.ts +10 -1
  243. package/src/funcs/workspacesCreateWorkspace.ts +175 -0
  244. package/src/funcs/workspacesGetWorkspace.ts +7 -5
  245. package/src/funcs/workspacesListWorkspaces.ts +139 -129
  246. package/src/lib/config.ts +41 -42
  247. package/src/mcp-server/mcp-server.ts +10 -10
  248. package/src/mcp-server/server.ts +78 -71
  249. package/src/mcp-server/tools/adminClientsCreateClient.ts +37 -0
  250. package/src/mcp-server/tools/adminClientsListClients.ts +22 -24
  251. package/src/mcp-server/tools/{authGetV1Me.ts → authMe.ts} +4 -4
  252. package/src/mcp-server/tools/{healthCheckGetV1.ts → healthIndex.ts} +4 -4
  253. package/src/mcp-server/tools/{healthCheckGetV1Ping.ts → healthPing.ts} +5 -5
  254. package/src/mcp-server/tools/tasksListTasks.ts +1 -1
  255. package/src/mcp-server/tools/workspacesCreateWorkspace.ts +37 -0
  256. package/src/mcp-server/tools.ts +96 -98
  257. package/src/models/autherror.ts +32 -0
  258. package/src/models/badrequest.ts +35 -0
  259. package/src/models/client.ts +8 -6
  260. package/src/models/clientcreate.ts +58 -0
  261. package/src/models/createclientop.ts +136 -0
  262. package/src/models/createfileop.ts +78 -26
  263. package/src/models/createtaskop.ts +59 -10
  264. package/src/models/createworkspaceop.ts +158 -0
  265. package/src/models/deletefileop.ts +41 -30
  266. package/src/models/deletetaskop.ts +43 -10
  267. package/src/models/getclientop.ts +38 -30
  268. package/src/models/getfileop.ts +47 -20
  269. package/src/models/gettaskop.ts +43 -10
  270. package/src/models/getworkspaceop.ts +41 -30
  271. package/src/models/indexop.ts +39 -0
  272. package/src/models/listclientsop.ts +60 -49
  273. package/src/models/listfilesop.ts +42 -34
  274. package/src/models/listtasksop.ts +72 -16
  275. package/src/models/listworkspacesop.ts +45 -35
  276. package/src/models/meop.ts +96 -0
  277. package/src/models/notfound.ts +32 -0
  278. package/src/models/paginatedclients.ts +18 -0
  279. package/src/models/paginatedfiles.ts +18 -0
  280. package/src/models/paginatedtasks.ts +18 -0
  281. package/src/models/paginatedworkspaces.ts +21 -0
  282. package/src/models/pingop.ts +39 -0
  283. package/src/models/ratelimit.ts +32 -0
  284. package/src/models/updatefileop.ts +49 -22
  285. package/src/models/updatetaskop.ts +41 -7
  286. package/src/models/workspacecreate.ts +15 -0
  287. package/worker-configuration.d.ts +7024 -6203
  288. package/esm/src/funcs/authGetV1Me.js.map +0 -1
  289. package/esm/src/funcs/healthCheckGetV1.d.ts.map +0 -1
  290. package/esm/src/funcs/healthCheckGetV1.js.map +0 -1
  291. package/esm/src/funcs/healthCheckGetV1Ping.d.ts.map +0 -1
  292. package/esm/src/funcs/healthCheckGetV1Ping.js.map +0 -1
  293. package/esm/src/mcp-server/tools/authGetV1Me.d.ts +0 -3
  294. package/esm/src/mcp-server/tools/authGetV1Me.d.ts.map +0 -1
  295. package/esm/src/mcp-server/tools/authGetV1Me.js.map +0 -1
  296. package/esm/src/mcp-server/tools/healthCheckGetV1.d.ts +0 -3
  297. package/esm/src/mcp-server/tools/healthCheckGetV1.d.ts.map +0 -1
  298. package/esm/src/mcp-server/tools/healthCheckGetV1.js.map +0 -1
  299. package/esm/src/mcp-server/tools/healthCheckGetV1Ping.d.ts +0 -3
  300. package/esm/src/mcp-server/tools/healthCheckGetV1Ping.d.ts.map +0 -1
  301. package/esm/src/mcp-server/tools/healthCheckGetV1Ping.js.map +0 -1
  302. package/esm/src/models/getv1meop.d.ts +0 -21
  303. package/esm/src/models/getv1meop.d.ts.map +0 -1
  304. package/esm/src/models/getv1meop.js +0 -19
  305. package/esm/src/models/getv1meop.js.map +0 -1
  306. package/esm/src/models/getv1op.d.ts +0 -16
  307. package/esm/src/models/getv1op.d.ts.map +0 -1
  308. package/esm/src/models/getv1op.js +0 -14
  309. package/esm/src/models/getv1op.js.map +0 -1
  310. package/esm/src/models/getv1pingop.d.ts +0 -16
  311. package/esm/src/models/getv1pingop.d.ts.map +0 -1
  312. package/esm/src/models/getv1pingop.js +0 -14
  313. package/esm/src/models/getv1pingop.js.map +0 -1
  314. package/src/models/getv1meop.ts +0 -48
  315. package/src/models/getv1op.ts +0 -36
  316. package/src/models/getv1pingop.ts +0 -36
package/bin/mcp-server.js CHANGED
@@ -40754,15 +40754,13 @@ function serverURLFromOptions(options) {
40754
40754
  var ServerList, SDK_METADATA;
40755
40755
  var init_config = __esm(() => {
40756
40756
  init_url();
40757
- ServerList = [
40758
- "https://api.steuerboard.com"
40759
- ];
40757
+ ServerList = ["https://api.steuerboard.com"];
40760
40758
  SDK_METADATA = {
40761
40759
  language: "typescript",
40762
40760
  openapiDocVersion: "0.1.0",
40763
- sdkVersion: "0.0.1",
40764
- genVersion: "2.698.4",
40765
- userAgent: "speakeasy-sdk/mcp-typescript 0.0.1 2.698.4 0.1.0 steuerboard"
40761
+ sdkVersion: "0.1.0",
40762
+ genVersion: "2.709.0",
40763
+ userAgent: "speakeasy-sdk/mcp-typescript 0.1.0 2.709.0 0.1.0 @steuerboard/mcp"
40766
40764
  };
40767
40765
  });
40768
40766
 
@@ -41702,7 +41700,7 @@ async function formatResult(value, init) {
41702
41700
  const { response } = init;
41703
41701
  const contentType2 = response?.headers.get("content-type") ?? "";
41704
41702
  let content = [];
41705
- if (/\bjson\b/i.test(contentType2)) {
41703
+ if (contentType2.search(/\bjson\b/g)) {
41706
41704
  content = [{ type: "text", text: JSON.stringify(value) }];
41707
41705
  } else if (contentType2.startsWith("text/event-stream") && isAsyncIterable(value)) {
41708
41706
  content = await consumeSSE(value);
@@ -41713,12 +41711,10 @@ async function formatResult(value, init) {
41713
41711
  content = data == null ? [] : [{ type: "image", data, mimeType: contentType2 }];
41714
41712
  } else {
41715
41713
  return {
41716
- content: [
41717
- {
41718
- type: "text",
41719
- text: `Unsupported content type: "${contentType2}"`
41720
- }
41721
- ],
41714
+ content: [{
41715
+ type: "text",
41716
+ text: `Unsupported content type: "${contentType2}"`
41717
+ }],
41722
41718
  isError: true
41723
41719
  };
41724
41720
  }
@@ -41876,6 +41872,9 @@ var init_schemas = __esm(() => {
41876
41872
  function json(codes, schema, options) {
41877
41873
  return { ...options, enc: "json", codes, schema };
41878
41874
  }
41875
+ function nil(codes, schema, options) {
41876
+ return { ...options, enc: "nil", codes, schema };
41877
+ }
41879
41878
  function match(...matchers) {
41880
41879
  return async function matchFunc(response, request, options) {
41881
41880
  let raw;
@@ -42159,15 +42158,57 @@ var init_security = __esm(() => {
42159
42158
  };
42160
42159
  });
42161
42160
 
42161
+ // src/models/clientcreate.ts
42162
+ var ClientCreateClientType$zodSchema, Address$zodSchema, ClientCreate$zodSchema;
42163
+ var init_clientcreate = __esm(() => {
42164
+ init_zod();
42165
+ ClientCreateClientType$zodSchema = enumType([
42166
+ "natural_person",
42167
+ "individual_enterprise",
42168
+ "legal_person"
42169
+ ]).describe("The type of the client. 'natural_person' for individuals, 'legal_person' for companies like UG, GmbH, AG, Ltd., Inc., etc. and 'individual_enterprise' for sole proprietorships.");
42170
+ Address$zodSchema = objectType({
42171
+ city: stringType(),
42172
+ countryCode: stringType().default("DE"),
42173
+ line1: stringType(),
42174
+ line2: stringType().optional(),
42175
+ postalCode: stringType()
42176
+ }).describe("The address of the client");
42177
+ ClientCreate$zodSchema = objectType({
42178
+ address: lazyType(() => Address$zodSchema).optional(),
42179
+ customId: stringType().optional(),
42180
+ name: stringType(),
42181
+ type: ClientCreateClientType$zodSchema
42182
+ });
42183
+ });
42184
+
42185
+ // src/models/autherror.ts
42186
+ var AuthErrorType$zodSchema, AuthErrorCode$zodSchema, AuthError$zodSchema;
42187
+ var init_autherror = __esm(() => {
42188
+ init_zod();
42189
+ AuthErrorType$zodSchema = enumType([
42190
+ "auth_error"
42191
+ ]);
42192
+ AuthErrorCode$zodSchema = enumType([
42193
+ "unauthorized"
42194
+ ]);
42195
+ AuthError$zodSchema = objectType({
42196
+ code: AuthErrorCode$zodSchema,
42197
+ message: stringType(),
42198
+ status_code: numberType(),
42199
+ type: AuthErrorType$zodSchema
42200
+ });
42201
+ });
42202
+
42162
42203
  // src/models/client.ts
42163
- var Type$zodSchema, Client$zodSchema;
42204
+ var ClientClientType$zodSchema, Client$zodSchema;
42164
42205
  var init_client = __esm(() => {
42165
42206
  init_zod();
42166
- Type$zodSchema = enumType([
42207
+ ClientClientType$zodSchema = enumType([
42167
42208
  "natural_person",
42168
42209
  "individual_enterprise",
42169
42210
  "legal_person"
42170
- ]).describe("The type of the client");
42211
+ ]).describe("The type of the client. 'natural_person' for individuals, 'legal_person' for companies like UG, GmbH, AG, Ltd., Inc., etc. and 'individual_enterprise' for sole proprietorships.");
42171
42212
  Client$zodSchema = objectType({
42172
42213
  archivedAt: stringType().nullable(),
42173
42214
  createdAt: stringType(),
@@ -42177,27 +42218,41 @@ var init_client = __esm(() => {
42177
42218
  legalName: stringType().nullable(),
42178
42219
  name: stringType(),
42179
42220
  slug: stringType(),
42180
- type: Type$zodSchema,
42221
+ type: ClientClientType$zodSchema,
42181
42222
  updatedAt: stringType()
42182
42223
  });
42183
42224
  });
42184
42225
 
42185
- // src/models/getclientop.ts
42186
- var GetClientRequest$zodSchema, GetClientTooManyRequestsResponseBody$zodSchema, GetClientPath$zodSchema, GetClientIssue$zodSchema, GetClientError$zodSchema, GetClientUnprocessableEntityResponseBody$zodSchema, GetClientNotFoundResponseBody$zodSchema, GetClientResponse$zodSchema;
42187
- var init_getclientop = __esm(() => {
42226
+ // src/models/ratelimit.ts
42227
+ var RateLimitType$zodSchema, RateLimitCode$zodSchema, RateLimit$zodSchema;
42228
+ var init_ratelimit = __esm(() => {
42188
42229
  init_zod();
42189
- init_client();
42190
- GetClientRequest$zodSchema = objectType({
42191
- id: stringType()
42230
+ RateLimitType$zodSchema = enumType([
42231
+ "rate_limit"
42232
+ ]);
42233
+ RateLimitCode$zodSchema = enumType([
42234
+ "too_many_requests"
42235
+ ]);
42236
+ RateLimit$zodSchema = objectType({
42237
+ code: RateLimitCode$zodSchema,
42238
+ message: stringType(),
42239
+ status_code: numberType(),
42240
+ type: RateLimitType$zodSchema
42192
42241
  });
42193
- GetClientTooManyRequestsResponseBody$zodSchema = objectType({
42194
- message: stringType()
42195
- }).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
42196
- GetClientPath$zodSchema = unionType([
42242
+ });
42243
+
42244
+ // src/models/createclientop.ts
42245
+ var CreateClientPath$zodSchema, CreateClientIssue$zodSchema, CreateClientError$zodSchema, CreateClientUnprocessableEntityResponseBody$zodSchema, CreateClientType$zodSchema, CreateClientCode$zodSchema, CreateClientForbiddenResponseBody$zodSchema, CreateClientResponse$zodSchema;
42246
+ var init_createclientop = __esm(() => {
42247
+ init_zod();
42248
+ init_autherror();
42249
+ init_client();
42250
+ init_ratelimit();
42251
+ CreateClientPath$zodSchema = unionType([
42197
42252
  stringType(),
42198
42253
  numberType()
42199
42254
  ]);
42200
- GetClientIssue$zodSchema = objectType({
42255
+ CreateClientIssue$zodSchema = objectType({
42201
42256
  code: stringType(),
42202
42257
  message: stringType().optional(),
42203
42258
  path: arrayType(unionType([
@@ -42205,25 +42260,35 @@ var init_getclientop = __esm(() => {
42205
42260
  numberType()
42206
42261
  ]))
42207
42262
  });
42208
- GetClientError$zodSchema = objectType({
42209
- issues: arrayType(lazyType(() => GetClientIssue$zodSchema)),
42263
+ CreateClientError$zodSchema = objectType({
42264
+ issues: arrayType(lazyType(() => CreateClientIssue$zodSchema)),
42210
42265
  name: stringType()
42211
42266
  });
42212
- GetClientUnprocessableEntityResponseBody$zodSchema = objectType({
42213
- error: lazyType(() => GetClientError$zodSchema),
42267
+ CreateClientUnprocessableEntityResponseBody$zodSchema = objectType({
42268
+ error: lazyType(() => CreateClientError$zodSchema),
42214
42269
  success: booleanType()
42215
- }).describe("Invalid id error");
42216
- GetClientNotFoundResponseBody$zodSchema = objectType({
42217
- message: stringType()
42218
- }).describe("Client not found");
42219
- GetClientResponse$zodSchema = objectType({
42270
+ }).describe("The validation error(s)");
42271
+ CreateClientType$zodSchema = enumType([
42272
+ "auth_error"
42273
+ ]);
42274
+ CreateClientCode$zodSchema = enumType([
42275
+ "missing_scope"
42276
+ ]);
42277
+ CreateClientForbiddenResponseBody$zodSchema = objectType({
42278
+ code: CreateClientCode$zodSchema,
42279
+ message: stringType(),
42280
+ status_code: numberType(),
42281
+ type: CreateClientType$zodSchema
42282
+ }).describe("Missing scope");
42283
+ CreateClientResponse$zodSchema = objectType({
42220
42284
  Client: Client$zodSchema.optional(),
42221
42285
  ContentType: stringType(),
42222
42286
  RawResponse: instanceOfType(Response),
42223
42287
  StatusCode: numberType().int(),
42224
- fourHundredAndFourApplicationJsonObject: lazyType(() => GetClientNotFoundResponseBody$zodSchema).optional(),
42225
- fourHundredAndTwentyNineApplicationJsonObject: lazyType(() => GetClientTooManyRequestsResponseBody$zodSchema).optional(),
42226
- fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetClientUnprocessableEntityResponseBody$zodSchema).optional()
42288
+ auth_error: AuthError$zodSchema.optional(),
42289
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => CreateClientForbiddenResponseBody$zodSchema).optional(),
42290
+ fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => CreateClientUnprocessableEntityResponseBody$zodSchema).optional(),
42291
+ rate_limit: RateLimit$zodSchema.optional()
42227
42292
  });
42228
42293
  });
42229
42294
 
@@ -42253,11 +42318,194 @@ var init_async = __esm(() => {
42253
42318
  };
42254
42319
  });
42255
42320
 
42256
- // src/funcs/adminClientsGetClient.ts
42257
- function adminClientsGetClient(client$, request, options) {
42321
+ // src/funcs/adminClientsCreateClient.ts
42322
+ function adminClientsCreateClient(client$, request, options) {
42258
42323
  return new APIPromise($do(client$, request, options));
42259
42324
  }
42260
42325
  async function $do(client$, request, options) {
42326
+ const parsed$ = safeParse(request, (value$) => ClientCreate$zodSchema.parse(value$), "Input validation failed");
42327
+ if (!parsed$.ok) {
42328
+ return [parsed$, { status: "invalid" }];
42329
+ }
42330
+ const payload$ = parsed$.value;
42331
+ const body$ = encodeJSON("body", payload$, { explode: true });
42332
+ const path$ = pathToFunc("/v1/admin/clients")();
42333
+ const headers$ = new Headers(compactMap({
42334
+ "Content-Type": "application/json",
42335
+ Accept: "application/json"
42336
+ }));
42337
+ const securityInput = await extractSecurity(client$._options.security);
42338
+ const requestSecurity = resolveGlobalSecurity(securityInput);
42339
+ const context = {
42340
+ options: client$._options,
42341
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
42342
+ operationID: "createClient",
42343
+ oAuth2Scopes: [],
42344
+ resolvedSecurity: requestSecurity,
42345
+ securitySource: client$._options.security,
42346
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
42347
+ retryCodes: options?.retryCodes || [
42348
+ "429",
42349
+ "500",
42350
+ "502",
42351
+ "503",
42352
+ "504"
42353
+ ]
42354
+ };
42355
+ const requestRes = client$._createRequest(context, {
42356
+ security: requestSecurity,
42357
+ method: "POST",
42358
+ baseURL: options?.serverURL,
42359
+ path: path$,
42360
+ headers: headers$,
42361
+ body: body$,
42362
+ userAgent: client$._options.userAgent,
42363
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
42364
+ }, options);
42365
+ if (!requestRes.ok) {
42366
+ return [requestRes, { status: "invalid" }];
42367
+ }
42368
+ const req$ = requestRes.value;
42369
+ const doResult = await client$._do(req$, {
42370
+ context,
42371
+ errorCodes: [],
42372
+ retryConfig: context.retryConfig,
42373
+ retryCodes: context.retryCodes
42374
+ });
42375
+ if (!doResult.ok) {
42376
+ return [doResult, { status: "request-error", request: req$ }];
42377
+ }
42378
+ const response = doResult.value;
42379
+ const responseFields$ = {
42380
+ HttpMeta: { Response: response, Request: req$ }
42381
+ };
42382
+ const [result$] = await match(json(201, CreateClientResponse$zodSchema, { key: "Client" }), json(401, CreateClientResponse$zodSchema, { key: "auth_error" }), json(403, CreateClientResponse$zodSchema, {
42383
+ key: "403_application/json_object"
42384
+ }), json(422, CreateClientResponse$zodSchema, {
42385
+ key: "422_application/json_object"
42386
+ }), json(429, CreateClientResponse$zodSchema, { key: "rate_limit" }), nil(500, CreateClientResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
42387
+ return [result$, { status: "complete", request: req$, response }];
42388
+ }
42389
+ var init_adminClientsCreateClient = __esm(() => {
42390
+ init_encodings();
42391
+ init_matchers();
42392
+ init_primitives();
42393
+ init_schemas();
42394
+ init_security();
42395
+ init_url();
42396
+ init_clientcreate();
42397
+ init_createclientop();
42398
+ init_async();
42399
+ });
42400
+
42401
+ // src/mcp-server/tools/adminClientsCreateClient.ts
42402
+ var args, tool$adminClientsCreateClient;
42403
+ var init_adminClientsCreateClient2 = __esm(() => {
42404
+ init_adminClientsCreateClient();
42405
+ init_clientcreate();
42406
+ init_tools();
42407
+ args = {
42408
+ request: ClientCreate$zodSchema
42409
+ };
42410
+ tool$adminClientsCreateClient = {
42411
+ name: "admin-clients-create-client",
42412
+ description: `Create a client
42413
+
42414
+ Creates a new client for the accountant and returns the created client object.`,
42415
+ args,
42416
+ tool: async (client, args2, ctx) => {
42417
+ const [result, apiCall] = await adminClientsCreateClient(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42418
+ if (!result.ok) {
42419
+ return {
42420
+ content: [{ type: "text", text: result.error.message }],
42421
+ isError: true
42422
+ };
42423
+ }
42424
+ const value = result.value;
42425
+ return formatResult(value, apiCall);
42426
+ }
42427
+ };
42428
+ });
42429
+
42430
+ // src/models/notfound.ts
42431
+ var NotFoundType$zodSchema, NotFoundCode$zodSchema, NotFound$zodSchema;
42432
+ var init_notfound = __esm(() => {
42433
+ init_zod();
42434
+ NotFoundType$zodSchema = enumType([
42435
+ "not_found"
42436
+ ]);
42437
+ NotFoundCode$zodSchema = enumType([
42438
+ "not_found"
42439
+ ]);
42440
+ NotFound$zodSchema = objectType({
42441
+ code: NotFoundCode$zodSchema,
42442
+ message: stringType(),
42443
+ status_code: numberType(),
42444
+ type: NotFoundType$zodSchema
42445
+ });
42446
+ });
42447
+
42448
+ // src/models/getclientop.ts
42449
+ var GetClientRequest$zodSchema, GetClientPath$zodSchema, GetClientIssue$zodSchema, GetClientError$zodSchema, GetClientUnprocessableEntityResponseBody$zodSchema, GetClientType$zodSchema, GetClientCode$zodSchema, GetClientForbiddenResponseBody$zodSchema, GetClientResponse$zodSchema;
42450
+ var init_getclientop = __esm(() => {
42451
+ init_zod();
42452
+ init_autherror();
42453
+ init_client();
42454
+ init_notfound();
42455
+ init_ratelimit();
42456
+ GetClientRequest$zodSchema = objectType({
42457
+ id: stringType()
42458
+ });
42459
+ GetClientPath$zodSchema = unionType([
42460
+ stringType(),
42461
+ numberType()
42462
+ ]);
42463
+ GetClientIssue$zodSchema = objectType({
42464
+ code: stringType(),
42465
+ message: stringType().optional(),
42466
+ path: arrayType(unionType([
42467
+ stringType(),
42468
+ numberType()
42469
+ ]))
42470
+ });
42471
+ GetClientError$zodSchema = objectType({
42472
+ issues: arrayType(lazyType(() => GetClientIssue$zodSchema)),
42473
+ name: stringType()
42474
+ });
42475
+ GetClientUnprocessableEntityResponseBody$zodSchema = objectType({
42476
+ error: lazyType(() => GetClientError$zodSchema),
42477
+ success: booleanType()
42478
+ }).describe("Invalid id error");
42479
+ GetClientType$zodSchema = enumType([
42480
+ "auth_error"
42481
+ ]);
42482
+ GetClientCode$zodSchema = enumType([
42483
+ "missing_scope"
42484
+ ]);
42485
+ GetClientForbiddenResponseBody$zodSchema = objectType({
42486
+ code: GetClientCode$zodSchema,
42487
+ message: stringType(),
42488
+ status_code: numberType(),
42489
+ type: GetClientType$zodSchema
42490
+ }).describe("Missing scope");
42491
+ GetClientResponse$zodSchema = objectType({
42492
+ Client: Client$zodSchema.optional(),
42493
+ ContentType: stringType(),
42494
+ RawResponse: instanceOfType(Response),
42495
+ StatusCode: numberType().int(),
42496
+ auth_error: AuthError$zodSchema.optional(),
42497
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => GetClientForbiddenResponseBody$zodSchema).optional(),
42498
+ fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetClientUnprocessableEntityResponseBody$zodSchema).optional(),
42499
+ not_found: NotFound$zodSchema.optional(),
42500
+ rate_limit: RateLimit$zodSchema.optional()
42501
+ });
42502
+ });
42503
+
42504
+ // src/funcs/adminClientsGetClient.ts
42505
+ function adminClientsGetClient(client$, request, options) {
42506
+ return new APIPromise($do2(client$, request, options));
42507
+ }
42508
+ async function $do2(client$, request, options) {
42261
42509
  const parsed$ = safeParse(request, (value$) => GetClientRequest$zodSchema.parse(value$), "Input validation failed");
42262
42510
  if (!parsed$.ok) {
42263
42511
  return [parsed$, { status: "invalid" }];
@@ -42319,13 +42567,11 @@ async function $do(client$, request, options) {
42319
42567
  const responseFields$ = {
42320
42568
  HttpMeta: { Response: response, Request: req$ }
42321
42569
  };
42322
- const [result$] = await match(json(200, GetClientResponse$zodSchema, { key: "Client" }), json(404, GetClientResponse$zodSchema, {
42323
- key: "404_application/json_object"
42324
- }), json(422, GetClientResponse$zodSchema, {
42570
+ const [result$] = await match(json(200, GetClientResponse$zodSchema, { key: "Client" }), json(401, GetClientResponse$zodSchema, { key: "auth_error" }), json(403, GetClientResponse$zodSchema, {
42571
+ key: "403_application/json_object"
42572
+ }), json(404, GetClientResponse$zodSchema, { key: "not_found" }), json(422, GetClientResponse$zodSchema, {
42325
42573
  key: "422_application/json_object"
42326
- }), json(429, GetClientResponse$zodSchema, {
42327
- key: "429_application/json_object"
42328
- }))(response, req$, { extraFields: responseFields$ });
42574
+ }), json(429, GetClientResponse$zodSchema, { key: "rate_limit" }), nil(500, GetClientResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
42329
42575
  return [result$, { status: "complete", request: req$, response }];
42330
42576
  }
42331
42577
  var init_adminClientsGetClient = __esm(() => {
@@ -42340,12 +42586,12 @@ var init_adminClientsGetClient = __esm(() => {
42340
42586
  });
42341
42587
 
42342
42588
  // src/mcp-server/tools/adminClientsGetClient.ts
42343
- var args, tool$adminClientsGetClient;
42589
+ var args2, tool$adminClientsGetClient;
42344
42590
  var init_adminClientsGetClient2 = __esm(() => {
42345
42591
  init_adminClientsGetClient();
42346
42592
  init_getclientop();
42347
42593
  init_tools();
42348
- args = {
42594
+ args2 = {
42349
42595
  request: GetClientRequest$zodSchema
42350
42596
  };
42351
42597
  tool$adminClientsGetClient = {
@@ -42353,9 +42599,9 @@ var init_adminClientsGetClient2 = __esm(() => {
42353
42599
  description: `Get a client
42354
42600
 
42355
42601
  Returns a single client object by ID.`,
42356
- args,
42357
- tool: async (client, args2, ctx) => {
42358
- const [result, apiCall] = await adminClientsGetClient(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42602
+ args: args2,
42603
+ tool: async (client, args3, ctx) => {
42604
+ const [result, apiCall] = await adminClientsGetClient(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42359
42605
  if (!result.ok) {
42360
42606
  return {
42361
42607
  content: [{ type: "text", text: result.error.message }],
@@ -42380,29 +42626,42 @@ var init_pagination = __esm(() => {
42380
42626
  });
42381
42627
  });
42382
42628
 
42383
- // src/models/listclientsop.ts
42384
- var Archived$zodSchema, ListClientsType$zodSchema, Sort$zodSchema, Order$zodSchema, ListClientsRequest$zodSchema, ListClientsTooManyRequestsResponseBody$zodSchema, ListClientsPath$zodSchema, ListClientsIssue$zodSchema, ListClientsError$zodSchema, ListClientsUnprocessableEntityResponseBody$zodSchema, ListClientsResponseBody$zodSchema, ListClientsResponse$zodSchema;
42385
- var init_listclientsop = __esm(() => {
42629
+ // src/models/paginatedclients.ts
42630
+ var PaginatedClients$zodSchema;
42631
+ var init_paginatedclients = __esm(() => {
42386
42632
  init_zod();
42387
42633
  init_client();
42388
42634
  init_pagination();
42635
+ PaginatedClients$zodSchema = objectType({
42636
+ data: arrayType(Client$zodSchema),
42637
+ pagination: Pagination$zodSchema
42638
+ });
42639
+ });
42640
+
42641
+ // src/models/listclientsop.ts
42642
+ var Archived$zodSchema, ListClientsClientType$zodSchema, ListClientsSort$zodSchema, ListClientsOrder$zodSchema, ListClientsRequest$zodSchema, ListClientsPath$zodSchema, ListClientsIssue$zodSchema, ListClientsError$zodSchema, ListClientsUnprocessableEntityResponseBody$zodSchema, ListClientsType$zodSchema, ListClientsCode$zodSchema, ListClientsForbiddenResponseBody$zodSchema, ListClientsResponse$zodSchema;
42643
+ var init_listclientsop = __esm(() => {
42644
+ init_zod();
42645
+ init_autherror();
42646
+ init_paginatedclients();
42647
+ init_ratelimit();
42389
42648
  Archived$zodSchema = enumType([
42390
42649
  "true",
42391
42650
  "false"
42392
42651
  ]).describe("Include archived clients");
42393
- ListClientsType$zodSchema = enumType([
42652
+ ListClientsClientType$zodSchema = enumType([
42394
42653
  "natural_person",
42395
42654
  "individual_enterprise",
42396
42655
  "legal_person"
42397
- ]).describe("The type of the client");
42398
- Sort$zodSchema = enumType([
42656
+ ]).describe("The type of the client. 'natural_person' for individuals, 'legal_person' for companies like UG, GmbH, AG, Ltd., Inc., etc. and 'individual_enterprise' for sole proprietorships.");
42657
+ ListClientsSort$zodSchema = enumType([
42399
42658
  "createdAt",
42400
42659
  "updatedAt",
42401
42660
  "archivedAt",
42402
42661
  "name",
42403
42662
  "customId"
42404
42663
  ]).describe("The sort field of the results");
42405
- Order$zodSchema = enumType([
42664
+ ListClientsOrder$zodSchema = enumType([
42406
42665
  "asc",
42407
42666
  "desc"
42408
42667
  ]).describe("The order of the results based on the sort field");
@@ -42411,14 +42670,11 @@ var init_listclientsop = __esm(() => {
42411
42670
  cursor: stringType().optional(),
42412
42671
  customId: stringType().optional(),
42413
42672
  limit: numberType().default(20),
42414
- order: Order$zodSchema.default("desc"),
42673
+ order: ListClientsOrder$zodSchema.default("desc"),
42415
42674
  slug: stringType().optional(),
42416
- sort: Sort$zodSchema.default("createdAt"),
42417
- type: ListClientsType$zodSchema.optional()
42675
+ sort: ListClientsSort$zodSchema.default("createdAt"),
42676
+ type: ListClientsClientType$zodSchema.optional()
42418
42677
  });
42419
- ListClientsTooManyRequestsResponseBody$zodSchema = objectType({
42420
- message: stringType()
42421
- }).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
42422
42678
  ListClientsPath$zodSchema = unionType([
42423
42679
  stringType(),
42424
42680
  numberType()
@@ -42439,25 +42695,35 @@ var init_listclientsop = __esm(() => {
42439
42695
  error: lazyType(() => ListClientsError$zodSchema),
42440
42696
  success: booleanType()
42441
42697
  }).describe("The validation error(s)");
42442
- ListClientsResponseBody$zodSchema = objectType({
42443
- data: arrayType(Client$zodSchema),
42444
- pagination: Pagination$zodSchema
42445
- }).describe("Clients");
42698
+ ListClientsType$zodSchema = enumType([
42699
+ "auth_error"
42700
+ ]);
42701
+ ListClientsCode$zodSchema = enumType([
42702
+ "missing_scope"
42703
+ ]);
42704
+ ListClientsForbiddenResponseBody$zodSchema = objectType({
42705
+ code: ListClientsCode$zodSchema,
42706
+ message: stringType(),
42707
+ status_code: numberType(),
42708
+ type: ListClientsType$zodSchema
42709
+ }).describe("Missing scope");
42446
42710
  ListClientsResponse$zodSchema = objectType({
42447
42711
  ContentType: stringType(),
42712
+ PaginatedClients: PaginatedClients$zodSchema.optional(),
42448
42713
  RawResponse: instanceOfType(Response),
42449
42714
  StatusCode: numberType().int(),
42450
- fourHundredAndTwentyNineApplicationJsonObject: lazyType(() => ListClientsTooManyRequestsResponseBody$zodSchema).optional(),
42715
+ auth_error: AuthError$zodSchema.optional(),
42716
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => ListClientsForbiddenResponseBody$zodSchema).optional(),
42451
42717
  fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => ListClientsUnprocessableEntityResponseBody$zodSchema).optional(),
42452
- twoHundredApplicationJsonObject: lazyType(() => ListClientsResponseBody$zodSchema).optional()
42718
+ rate_limit: RateLimit$zodSchema.optional()
42453
42719
  });
42454
42720
  });
42455
42721
 
42456
42722
  // src/funcs/adminClientsListClients.ts
42457
42723
  function adminClientsListClients(client$, request, options) {
42458
- return new APIPromise($do2(client$, request, options));
42724
+ return new APIPromise($do3(client$, request, options));
42459
42725
  }
42460
- async function $do2(client$, request, options) {
42726
+ async function $do3(client$, request, options) {
42461
42727
  const parsed$ = safeParse(request, (value$) => ListClientsRequest$zodSchema.optional().parse(value$), "Input validation failed");
42462
42728
  if (!parsed$.ok) {
42463
42729
  return [parsed$, { status: "invalid" }];
@@ -42488,7 +42754,13 @@ async function $do2(client$, request, options) {
42488
42754
  resolvedSecurity: requestSecurity,
42489
42755
  securitySource: client$._options.security,
42490
42756
  retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
42491
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
42757
+ retryCodes: options?.retryCodes || [
42758
+ "429",
42759
+ "500",
42760
+ "502",
42761
+ "503",
42762
+ "504"
42763
+ ]
42492
42764
  };
42493
42765
  const requestRes = client$._createRequest(context, {
42494
42766
  security: requestSecurity,
@@ -42518,13 +42790,11 @@ async function $do2(client$, request, options) {
42518
42790
  const responseFields$ = {
42519
42791
  HttpMeta: { Response: response, Request: req$ }
42520
42792
  };
42521
- const [result$] = await match(json(200, ListClientsResponse$zodSchema, {
42522
- key: "twoHundredApplicationJsonObject"
42793
+ const [result$] = await match(json(200, ListClientsResponse$zodSchema, { key: "PaginatedClients" }), json(401, ListClientsResponse$zodSchema, { key: "auth_error" }), json(403, ListClientsResponse$zodSchema, {
42794
+ key: "403_application/json_object"
42523
42795
  }), json(422, ListClientsResponse$zodSchema, {
42524
- key: "fourHundredAndTwentyTwoApplicationJsonObject"
42525
- }), json(429, ListClientsResponse$zodSchema, {
42526
- key: "fourHundredAndTwentyNineApplicationJsonObject"
42527
- }))(response, req$, { extraFields: responseFields$ });
42796
+ key: "422_application/json_object"
42797
+ }), json(429, ListClientsResponse$zodSchema, { key: "rate_limit" }), nil(500, ListClientsResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
42528
42798
  return [result$, { status: "complete", request: req$, response }];
42529
42799
  }
42530
42800
  var init_adminClientsListClients = __esm(() => {
@@ -42539,12 +42809,12 @@ var init_adminClientsListClients = __esm(() => {
42539
42809
  });
42540
42810
 
42541
42811
  // src/mcp-server/tools/adminClientsListClients.ts
42542
- var args2, tool$adminClientsListClients;
42812
+ var args3, tool$adminClientsListClients;
42543
42813
  var init_adminClientsListClients2 = __esm(() => {
42544
42814
  init_adminClientsListClients();
42545
42815
  init_listclientsop();
42546
42816
  init_tools();
42547
- args2 = {
42817
+ args3 = {
42548
42818
  request: ListClientsRequest$zodSchema.optional()
42549
42819
  };
42550
42820
  tool$adminClientsListClients = {
@@ -42552,9 +42822,9 @@ var init_adminClientsListClients2 = __esm(() => {
42552
42822
  description: `List clients
42553
42823
 
42554
42824
  Returns a list of clients.`,
42555
- args: args2,
42556
- tool: async (client, args3, ctx) => {
42557
- const [result, apiCall] = await adminClientsListClients(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42825
+ args: args3,
42826
+ tool: async (client, args4, ctx) => {
42827
+ const [result, apiCall] = await adminClientsListClients(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42558
42828
  if (!result.ok) {
42559
42829
  return {
42560
42830
  content: [{ type: "text", text: result.error.message }],
@@ -42562,37 +42832,54 @@ Returns a list of clients.`,
42562
42832
  };
42563
42833
  }
42564
42834
  const value = result.value;
42565
- const formattedResult = await formatResult(value, apiCall);
42566
- return formattedResult;
42835
+ return formatResult(value, apiCall);
42567
42836
  }
42568
42837
  };
42569
42838
  });
42570
42839
 
42571
- // src/models/getv1meop.ts
42572
- var GetV1MeResponseBody$zodSchema, GetV1MeResponse$zodSchema;
42573
- var init_getv1meop = __esm(() => {
42840
+ // src/models/meop.ts
42841
+ var MeType$zodSchema, MeCode$zodSchema, MeForbiddenResponseBody$zodSchema, MeResponseBody$zodSchema, MeResponse$zodSchema;
42842
+ var init_meop = __esm(() => {
42574
42843
  init_zod();
42575
- GetV1MeResponseBody$zodSchema = objectType({
42844
+ init_autherror();
42845
+ init_ratelimit();
42846
+ MeType$zodSchema = enumType([
42847
+ "auth_error"
42848
+ ]);
42849
+ MeCode$zodSchema = enumType([
42850
+ "missing_scope"
42851
+ ]);
42852
+ MeForbiddenResponseBody$zodSchema = objectType({
42853
+ code: MeCode$zodSchema,
42854
+ message: stringType(),
42855
+ status_code: numberType(),
42856
+ type: MeType$zodSchema
42857
+ }).describe("Missing scope");
42858
+ MeResponseBody$zodSchema = objectType({
42576
42859
  accountantId: stringType(),
42577
42860
  apiKeyId: stringType(),
42578
- clientId: stringType().optional(),
42861
+ clientId: stringType().nullable(),
42862
+ permissions: arrayType(stringType()),
42579
42863
  rateLimitMax: numberType(),
42580
42864
  rateLimitTimeWindow: numberType(),
42581
42865
  type: stringType()
42582
42866
  }).describe("Me");
42583
- GetV1MeResponse$zodSchema = objectType({
42867
+ MeResponse$zodSchema = objectType({
42584
42868
  ContentType: stringType(),
42585
42869
  RawResponse: instanceOfType(Response),
42586
42870
  StatusCode: numberType().int(),
42587
- object: lazyType(() => GetV1MeResponseBody$zodSchema).optional()
42871
+ auth_error: AuthError$zodSchema.optional(),
42872
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => MeForbiddenResponseBody$zodSchema).optional(),
42873
+ rate_limit: RateLimit$zodSchema.optional(),
42874
+ twoHundredApplicationJsonObject: lazyType(() => MeResponseBody$zodSchema).optional()
42588
42875
  });
42589
42876
  });
42590
42877
 
42591
- // src/funcs/authGetV1Me.ts
42592
- function authGetV1Me(client$, options) {
42593
- return new APIPromise($do3(client$, options));
42878
+ // src/funcs/authMe.ts
42879
+ function authMe(client$, options) {
42880
+ return new APIPromise($do4(client$, options));
42594
42881
  }
42595
- async function $do3(client$, options) {
42882
+ async function $do4(client$, options) {
42596
42883
  const path$ = pathToFunc("/v1/me")();
42597
42884
  const headers$ = new Headers(compactMap({
42598
42885
  Accept: "application/json"
@@ -42602,7 +42889,7 @@ async function $do3(client$, options) {
42602
42889
  const context = {
42603
42890
  options: client$._options,
42604
42891
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
42605
- operationID: "get_/v1/me",
42892
+ operationID: "me",
42606
42893
  oAuth2Scopes: [],
42607
42894
  resolvedSecurity: requestSecurity,
42608
42895
  securitySource: client$._options.security,
@@ -42641,28 +42928,28 @@ async function $do3(client$, options) {
42641
42928
  const responseFields$ = {
42642
42929
  HttpMeta: { Response: response, Request: req$ }
42643
42930
  };
42644
- const [result$] = await match(json(200, GetV1MeResponse$zodSchema, { key: "object" }))(response, req$, { extraFields: responseFields$ });
42931
+ const [result$] = await match(json(200, MeResponse$zodSchema, { key: "200_application/json_object" }), json(401, MeResponse$zodSchema, { key: "auth_error" }), json(403, MeResponse$zodSchema, { key: "403_application/json_object" }), json(429, MeResponse$zodSchema, { key: "rate_limit" }), nil(500, MeResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
42645
42932
  return [result$, { status: "complete", request: req$, response }];
42646
42933
  }
42647
- var init_authGetV1Me = __esm(() => {
42934
+ var init_authMe = __esm(() => {
42648
42935
  init_matchers();
42649
42936
  init_primitives();
42650
42937
  init_security();
42651
42938
  init_url();
42652
- init_getv1meop();
42939
+ init_meop();
42653
42940
  init_async();
42654
42941
  });
42655
42942
 
42656
- // src/mcp-server/tools/authGetV1Me.ts
42657
- var tool$authGetV1Me;
42658
- var init_authGetV1Me2 = __esm(() => {
42659
- init_authGetV1Me();
42943
+ // src/mcp-server/tools/authMe.ts
42944
+ var tool$authMe;
42945
+ var init_authMe2 = __esm(() => {
42946
+ init_authMe();
42660
42947
  init_tools();
42661
- tool$authGetV1Me = {
42662
- name: "auth-get-v1-me",
42948
+ tool$authMe = {
42949
+ name: "auth-me",
42663
42950
  description: `Me`,
42664
42951
  tool: async (client, ctx) => {
42665
- const [result, apiCall] = await authGetV1Me(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
42952
+ const [result, apiCall] = await authMe(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
42666
42953
  if (!result.ok) {
42667
42954
  return {
42668
42955
  content: [{ type: "text", text: result.error.message }],
@@ -42735,6 +43022,24 @@ function getContentTypeFromFileName(fileName) {
42735
43022
  return mimeTypes[ext] || null;
42736
43023
  }
42737
43024
 
43025
+ // src/models/badrequest.ts
43026
+ var BadRequestType$zodSchema, BadRequestCode$zodSchema, BadRequest$zodSchema;
43027
+ var init_badrequest = __esm(() => {
43028
+ init_zod();
43029
+ BadRequestType$zodSchema = enumType([
43030
+ "bad_request"
43031
+ ]);
43032
+ BadRequestCode$zodSchema = enumType([
43033
+ "missing_client_id"
43034
+ ]);
43035
+ BadRequest$zodSchema = objectType({
43036
+ code: BadRequestCode$zodSchema,
43037
+ message: stringType(),
43038
+ status_code: numberType(),
43039
+ type: BadRequestType$zodSchema
43040
+ });
43041
+ });
43042
+
42738
43043
  // src/models/file.ts
42739
43044
  var FileT$zodSchema;
42740
43045
  var init_file = __esm(() => {
@@ -42774,18 +43079,18 @@ var init_filecreate = __esm(() => {
42774
43079
  });
42775
43080
 
42776
43081
  // src/models/createfileop.ts
42777
- var CreateFileRequest$zodSchema, CreateFileTooManyRequestsResponseBody$zodSchema, CreateFilePath$zodSchema, CreateFileIssue$zodSchema, CreateFileError$zodSchema, CreateFileUnprocessableEntityResponseBody$zodSchema, CreateFileRequestEntityTooLargeResponseBody$zodSchema, CreateFileResponse$zodSchema;
43082
+ var CreateFileRequest$zodSchema, CreateFilePath$zodSchema, CreateFileIssue$zodSchema, CreateFileError$zodSchema, CreateFileUnprocessableEntityResponseBody$zodSchema, RequestEntityTooLargeType$zodSchema, RequestEntityTooLargeCode$zodSchema, CreateFileRequestEntityTooLargeResponseBody$zodSchema, CreateFileForbiddenType$zodSchema, CreateFileForbiddenCode$zodSchema, CreateFileForbiddenResponseBody$zodSchema, CreateFileResponse$zodSchema;
42778
43083
  var init_createfileop = __esm(() => {
42779
43084
  init_zod();
43085
+ init_autherror();
43086
+ init_badrequest();
42780
43087
  init_file();
42781
43088
  init_filecreate();
43089
+ init_ratelimit();
42782
43090
  CreateFileRequest$zodSchema = objectType({
42783
- FileCreate: FileCreate$zodSchema.optional(),
43091
+ FileCreate: FileCreate$zodSchema,
42784
43092
  xClientId: stringType()
42785
43093
  });
42786
- CreateFileTooManyRequestsResponseBody$zodSchema = objectType({
42787
- message: stringType()
42788
- }).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
42789
43094
  CreateFilePath$zodSchema = unionType([
42790
43095
  stringType(),
42791
43096
  numberType()
@@ -42806,17 +43111,41 @@ var init_createfileop = __esm(() => {
42806
43111
  error: lazyType(() => CreateFileError$zodSchema),
42807
43112
  success: booleanType()
42808
43113
  }).describe("The validation error(s)");
43114
+ RequestEntityTooLargeType$zodSchema = enumType([
43115
+ "bad_request"
43116
+ ]);
43117
+ RequestEntityTooLargeCode$zodSchema = enumType([
43118
+ "payload_too_large"
43119
+ ]);
42809
43120
  CreateFileRequestEntityTooLargeResponseBody$zodSchema = objectType({
42810
- message: stringType()
43121
+ code: RequestEntityTooLargeCode$zodSchema,
43122
+ message: stringType(),
43123
+ status_code: numberType(),
43124
+ type: RequestEntityTooLargeType$zodSchema
42811
43125
  }).describe("Payload too large");
43126
+ CreateFileForbiddenType$zodSchema = enumType([
43127
+ "auth_error"
43128
+ ]);
43129
+ CreateFileForbiddenCode$zodSchema = enumType([
43130
+ "missing_scope"
43131
+ ]);
43132
+ CreateFileForbiddenResponseBody$zodSchema = objectType({
43133
+ code: CreateFileForbiddenCode$zodSchema,
43134
+ message: stringType(),
43135
+ status_code: numberType(),
43136
+ type: CreateFileForbiddenType$zodSchema
43137
+ }).describe("Missing scope");
42812
43138
  CreateFileResponse$zodSchema = objectType({
42813
43139
  ContentType: stringType(),
42814
43140
  FileT: FileT$zodSchema.optional(),
42815
43141
  RawResponse: instanceOfType(Response),
42816
43142
  StatusCode: numberType().int(),
43143
+ auth_error: AuthError$zodSchema.optional(),
43144
+ bad_request: BadRequest$zodSchema.optional(),
42817
43145
  fourHundredAndThirteenApplicationJsonObject: lazyType(() => CreateFileRequestEntityTooLargeResponseBody$zodSchema).optional(),
42818
- fourHundredAndTwentyNineApplicationJsonObject: lazyType(() => CreateFileTooManyRequestsResponseBody$zodSchema).optional(),
42819
- fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => CreateFileUnprocessableEntityResponseBody$zodSchema).optional()
43146
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => CreateFileForbiddenResponseBody$zodSchema).optional(),
43147
+ fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => CreateFileUnprocessableEntityResponseBody$zodSchema).optional(),
43148
+ rate_limit: RateLimit$zodSchema.optional()
42820
43149
  });
42821
43150
  });
42822
43151
 
@@ -42849,40 +43178,38 @@ function isReadableStream(val) {
42849
43178
 
42850
43179
  // src/funcs/filesCreateFile.ts
42851
43180
  function filesCreateFile(client$, request, options) {
42852
- return new APIPromise($do4(client$, request, options));
43181
+ return new APIPromise($do5(client$, request, options));
42853
43182
  }
42854
- async function $do4(client$, request, options) {
43183
+ async function $do5(client$, request, options) {
42855
43184
  const parsed$ = safeParse(request, (value$) => CreateFileRequest$zodSchema.parse(value$), "Input validation failed");
42856
43185
  if (!parsed$.ok) {
42857
43186
  return [parsed$, { status: "invalid" }];
42858
43187
  }
42859
43188
  const payload$ = parsed$.value;
42860
43189
  const body$ = new FormData;
42861
- if (payload$.FileCreate != null) {
42862
- if (isBlobLike(payload$.FileCreate.file)) {
42863
- appendForm(body$, "file", payload$.FileCreate.file);
42864
- } else if (isReadableStream(payload$.FileCreate.file.content)) {
42865
- const buffer = await readableStreamToArrayBuffer(payload$.FileCreate.file.content);
42866
- const contentType2 = getContentTypeFromFileName(payload$.FileCreate.file.fileName) || "application/octet-stream";
42867
- const blob = new Blob([buffer], { type: contentType2 });
42868
- appendForm(body$, "file", blob, payload$.FileCreate.file.fileName);
42869
- } else {
42870
- const contentType2 = getContentTypeFromFileName(payload$.FileCreate.file.fileName) || "application/octet-stream";
42871
- appendForm(body$, "file", new Blob([payload$.FileCreate.file.content], { type: contentType2 }), payload$.FileCreate.file.fileName);
42872
- }
42873
- appendForm(body$, "workspaceId", payload$.FileCreate.workspaceId);
42874
- if (payload$.FileCreate.folderId !== undefined) {
42875
- appendForm(body$, "folderId", payload$.FileCreate.folderId);
42876
- }
42877
- if (payload$.FileCreate.labelIds !== undefined) {
42878
- appendForm(body$, "labelIds", payload$.FileCreate.labelIds);
42879
- }
42880
- if (payload$.FileCreate.name !== undefined) {
42881
- appendForm(body$, "name", payload$.FileCreate.name);
42882
- }
42883
- if (payload$.FileCreate.taskId !== undefined) {
42884
- appendForm(body$, "taskId", payload$.FileCreate.taskId);
42885
- }
43190
+ if (isBlobLike(payload$.FileCreate.file)) {
43191
+ appendForm(body$, "file", payload$.FileCreate.file);
43192
+ } else if (isReadableStream(payload$.FileCreate.file.content)) {
43193
+ const buffer = await readableStreamToArrayBuffer(payload$.FileCreate.file.content);
43194
+ const contentType2 = getContentTypeFromFileName(payload$.FileCreate.file.fileName) || "application/octet-stream";
43195
+ const blob = new Blob([buffer], { type: contentType2 });
43196
+ appendForm(body$, "file", blob, payload$.FileCreate.file.fileName);
43197
+ } else {
43198
+ const contentType2 = getContentTypeFromFileName(payload$.FileCreate.file.fileName) || "application/octet-stream";
43199
+ appendForm(body$, "file", new Blob([payload$.FileCreate.file.content], { type: contentType2 }), payload$.FileCreate.file.fileName);
43200
+ }
43201
+ appendForm(body$, "workspaceId", payload$.FileCreate.workspaceId);
43202
+ if (payload$.FileCreate.folderId !== undefined) {
43203
+ appendForm(body$, "folderId", payload$.FileCreate.folderId);
43204
+ }
43205
+ if (payload$.FileCreate.labelIds !== undefined) {
43206
+ appendForm(body$, "labelIds", payload$.FileCreate.labelIds);
43207
+ }
43208
+ if (payload$.FileCreate.name !== undefined) {
43209
+ appendForm(body$, "name", payload$.FileCreate.name);
43210
+ }
43211
+ if (payload$.FileCreate.taskId !== undefined) {
43212
+ appendForm(body$, "taskId", payload$.FileCreate.taskId);
42886
43213
  }
42887
43214
  const path$ = pathToFunc("/v1/files")();
42888
43215
  const headers$ = new Headers(compactMap({
@@ -42937,13 +43264,13 @@ async function $do4(client$, request, options) {
42937
43264
  const responseFields$ = {
42938
43265
  HttpMeta: { Response: response, Request: req$ }
42939
43266
  };
42940
- const [result$] = await match(json(201, CreateFileResponse$zodSchema, { key: "File" }), json(413, CreateFileResponse$zodSchema, {
43267
+ const [result$] = await match(json(201, CreateFileResponse$zodSchema, { key: "File" }), json(400, CreateFileResponse$zodSchema, { key: "bad_request" }), json(401, CreateFileResponse$zodSchema, { key: "auth_error" }), json(403, CreateFileResponse$zodSchema, {
43268
+ key: "403_application/json_object"
43269
+ }), json(413, CreateFileResponse$zodSchema, {
42941
43270
  key: "413_application/json_object"
42942
43271
  }), json(422, CreateFileResponse$zodSchema, {
42943
43272
  key: "422_application/json_object"
42944
- }), json(429, CreateFileResponse$zodSchema, {
42945
- key: "429_application/json_object"
42946
- }))(response, req$, { extraFields: responseFields$ });
43273
+ }), json(429, CreateFileResponse$zodSchema, { key: "rate_limit" }), nil(500, CreateFileResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
42947
43274
  return [result$, { status: "complete", request: req$, response }];
42948
43275
  }
42949
43276
  var init_filesCreateFile = __esm(() => {
@@ -42958,12 +43285,12 @@ var init_filesCreateFile = __esm(() => {
42958
43285
  });
42959
43286
 
42960
43287
  // src/mcp-server/tools/filesCreateFile.ts
42961
- var args3, tool$filesCreateFile;
43288
+ var args4, tool$filesCreateFile;
42962
43289
  var init_filesCreateFile2 = __esm(() => {
42963
43290
  init_filesCreateFile();
42964
43291
  init_createfileop();
42965
43292
  init_tools();
42966
- args3 = {
43293
+ args4 = {
42967
43294
  request: CreateFileRequest$zodSchema
42968
43295
  };
42969
43296
  tool$filesCreateFile = {
@@ -42971,9 +43298,9 @@ var init_filesCreateFile2 = __esm(() => {
42971
43298
  description: `Upload a file
42972
43299
 
42973
43300
  Uploads a new file. Maximum file size is 500MB.`,
42974
- args: args3,
42975
- tool: async (client, args4, ctx) => {
42976
- const [result, apiCall] = await filesCreateFile(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43301
+ args: args4,
43302
+ tool: async (client, args5, ctx) => {
43303
+ const [result, apiCall] = await filesCreateFile(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
42977
43304
  if (!result.ok) {
42978
43305
  return {
42979
43306
  content: [{ type: "text", text: result.error.message }],
@@ -42998,17 +43325,18 @@ var init_deleteresponse = __esm(() => {
42998
43325
  });
42999
43326
 
43000
43327
  // src/models/deletefileop.ts
43001
- var DeleteFileRequest$zodSchema, DeleteFileTooManyRequestsResponseBody$zodSchema, DeleteFilePath$zodSchema, DeleteFileIssue$zodSchema, DeleteFileError$zodSchema, DeleteFileUnprocessableEntityResponseBody$zodSchema, DeleteFileNotFoundResponseBody$zodSchema, DeleteFileResponse$zodSchema;
43328
+ var DeleteFileRequest$zodSchema, DeleteFilePath$zodSchema, DeleteFileIssue$zodSchema, DeleteFileError$zodSchema, DeleteFileUnprocessableEntityResponseBody$zodSchema, DeleteFileType$zodSchema, DeleteFileCode$zodSchema, DeleteFileForbiddenResponseBody$zodSchema, DeleteFileResponse$zodSchema;
43002
43329
  var init_deletefileop = __esm(() => {
43003
43330
  init_zod();
43331
+ init_autherror();
43332
+ init_badrequest();
43004
43333
  init_deleteresponse();
43334
+ init_notfound();
43335
+ init_ratelimit();
43005
43336
  DeleteFileRequest$zodSchema = objectType({
43006
43337
  id: stringType(),
43007
43338
  xClientId: stringType()
43008
43339
  });
43009
- DeleteFileTooManyRequestsResponseBody$zodSchema = objectType({
43010
- message: stringType()
43011
- }).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
43012
43340
  DeleteFilePath$zodSchema = unionType([
43013
43341
  stringType(),
43014
43342
  numberType()
@@ -43029,25 +43357,37 @@ var init_deletefileop = __esm(() => {
43029
43357
  error: lazyType(() => DeleteFileError$zodSchema),
43030
43358
  success: booleanType()
43031
43359
  }).describe("Invalid id error");
43032
- DeleteFileNotFoundResponseBody$zodSchema = objectType({
43033
- message: stringType()
43034
- }).describe("File not found");
43360
+ DeleteFileType$zodSchema = enumType([
43361
+ "auth_error"
43362
+ ]);
43363
+ DeleteFileCode$zodSchema = enumType([
43364
+ "missing_scope"
43365
+ ]);
43366
+ DeleteFileForbiddenResponseBody$zodSchema = objectType({
43367
+ code: DeleteFileCode$zodSchema,
43368
+ message: stringType(),
43369
+ status_code: numberType(),
43370
+ type: DeleteFileType$zodSchema
43371
+ }).describe("Missing scope");
43035
43372
  DeleteFileResponse$zodSchema = objectType({
43036
43373
  ContentType: stringType(),
43037
43374
  DeleteResponse: DeleteResponse$zodSchema.optional(),
43038
43375
  RawResponse: instanceOfType(Response),
43039
43376
  StatusCode: numberType().int(),
43040
- fourHundredAndFourApplicationJsonObject: lazyType(() => DeleteFileNotFoundResponseBody$zodSchema).optional(),
43041
- fourHundredAndTwentyNineApplicationJsonObject: lazyType(() => DeleteFileTooManyRequestsResponseBody$zodSchema).optional(),
43042
- fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => DeleteFileUnprocessableEntityResponseBody$zodSchema).optional()
43377
+ auth_error: AuthError$zodSchema.optional(),
43378
+ bad_request: BadRequest$zodSchema.optional(),
43379
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => DeleteFileForbiddenResponseBody$zodSchema).optional(),
43380
+ fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => DeleteFileUnprocessableEntityResponseBody$zodSchema).optional(),
43381
+ not_found: NotFound$zodSchema.optional(),
43382
+ rate_limit: RateLimit$zodSchema.optional()
43043
43383
  });
43044
43384
  });
43045
43385
 
43046
43386
  // src/funcs/filesDeleteFile.ts
43047
43387
  function filesDeleteFile(client$, request, options) {
43048
- return new APIPromise($do5(client$, request, options));
43388
+ return new APIPromise($do6(client$, request, options));
43049
43389
  }
43050
- async function $do5(client$, request, options) {
43390
+ async function $do6(client$, request, options) {
43051
43391
  const parsed$ = safeParse(request, (value$) => DeleteFileRequest$zodSchema.parse(value$), "Input validation failed");
43052
43392
  if (!parsed$.ok) {
43053
43393
  return [parsed$, { status: "invalid" }];
@@ -43113,13 +43453,11 @@ async function $do5(client$, request, options) {
43113
43453
  const responseFields$ = {
43114
43454
  HttpMeta: { Response: response, Request: req$ }
43115
43455
  };
43116
- const [result$] = await match(json(200, DeleteFileResponse$zodSchema, { key: "DeleteResponse" }), json(404, DeleteFileResponse$zodSchema, {
43117
- key: "404_application/json_object"
43118
- }), json(422, DeleteFileResponse$zodSchema, {
43456
+ const [result$] = await match(json(200, DeleteFileResponse$zodSchema, { key: "DeleteResponse" }), json(400, DeleteFileResponse$zodSchema, { key: "bad_request" }), json(401, DeleteFileResponse$zodSchema, { key: "auth_error" }), json(403, DeleteFileResponse$zodSchema, {
43457
+ key: "403_application/json_object"
43458
+ }), json(404, DeleteFileResponse$zodSchema, { key: "not_found" }), json(422, DeleteFileResponse$zodSchema, {
43119
43459
  key: "422_application/json_object"
43120
- }), json(429, DeleteFileResponse$zodSchema, {
43121
- key: "429_application/json_object"
43122
- }))(response, req$, { extraFields: responseFields$ });
43460
+ }), json(429, DeleteFileResponse$zodSchema, { key: "rate_limit" }), nil(500, DeleteFileResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
43123
43461
  return [result$, { status: "complete", request: req$, response }];
43124
43462
  }
43125
43463
  var init_filesDeleteFile = __esm(() => {
@@ -43134,12 +43472,12 @@ var init_filesDeleteFile = __esm(() => {
43134
43472
  });
43135
43473
 
43136
43474
  // src/mcp-server/tools/filesDeleteFile.ts
43137
- var args4, tool$filesDeleteFile;
43475
+ var args5, tool$filesDeleteFile;
43138
43476
  var init_filesDeleteFile2 = __esm(() => {
43139
43477
  init_filesDeleteFile();
43140
43478
  init_deletefileop();
43141
43479
  init_tools();
43142
- args4 = {
43480
+ args5 = {
43143
43481
  request: DeleteFileRequest$zodSchema
43144
43482
  };
43145
43483
  tool$filesDeleteFile = {
@@ -43147,9 +43485,9 @@ var init_filesDeleteFile2 = __esm(() => {
43147
43485
  description: `Delete a file
43148
43486
 
43149
43487
  Deletes a file by ID.`,
43150
- args: args4,
43151
- tool: async (client, args5, ctx) => {
43152
- const [result, apiCall] = await filesDeleteFile(client, args5.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43488
+ args: args5,
43489
+ tool: async (client, args6, ctx) => {
43490
+ const [result, apiCall] = await filesDeleteFile(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43153
43491
  if (!result.ok) {
43154
43492
  return {
43155
43493
  content: [{ type: "text", text: result.error.message }],
@@ -43163,17 +43501,17 @@ Deletes a file by ID.`,
43163
43501
  });
43164
43502
 
43165
43503
  // src/models/getfileop.ts
43166
- var GetFileRequest$zodSchema, GetFileTooManyRequestsResponseBody$zodSchema, GetFilePath$zodSchema, GetFileIssue$zodSchema, GetFileError$zodSchema, GetFileUnprocessableEntityResponseBody$zodSchema, GetFileNotFoundResponseBody$zodSchema, GetFileResponse$zodSchema;
43504
+ var GetFileRequest$zodSchema, GetFilePath$zodSchema, GetFileIssue$zodSchema, GetFileError$zodSchema, GetFileUnprocessableEntityResponseBody$zodSchema, GetFileNotFoundResponseBody$zodSchema, GetFileType$zodSchema, GetFileCode$zodSchema, GetFileForbiddenResponseBody$zodSchema, GetFileResponse$zodSchema;
43167
43505
  var init_getfileop = __esm(() => {
43168
43506
  init_zod();
43507
+ init_autherror();
43508
+ init_badrequest();
43169
43509
  init_file();
43510
+ init_ratelimit();
43170
43511
  GetFileRequest$zodSchema = objectType({
43171
43512
  id: stringType(),
43172
43513
  xClientId: stringType()
43173
43514
  });
43174
- GetFileTooManyRequestsResponseBody$zodSchema = objectType({
43175
- message: stringType()
43176
- }).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
43177
43515
  GetFilePath$zodSchema = unionType([
43178
43516
  stringType(),
43179
43517
  numberType()
@@ -43197,22 +43535,37 @@ var init_getfileop = __esm(() => {
43197
43535
  GetFileNotFoundResponseBody$zodSchema = objectType({
43198
43536
  message: stringType()
43199
43537
  }).describe("File not found");
43538
+ GetFileType$zodSchema = enumType([
43539
+ "auth_error"
43540
+ ]);
43541
+ GetFileCode$zodSchema = enumType([
43542
+ "missing_scope"
43543
+ ]);
43544
+ GetFileForbiddenResponseBody$zodSchema = objectType({
43545
+ code: GetFileCode$zodSchema,
43546
+ message: stringType(),
43547
+ status_code: numberType(),
43548
+ type: GetFileType$zodSchema
43549
+ }).describe("Missing scope");
43200
43550
  GetFileResponse$zodSchema = objectType({
43201
43551
  ContentType: stringType(),
43202
43552
  FileT: FileT$zodSchema.optional(),
43203
43553
  RawResponse: instanceOfType(Response),
43204
43554
  StatusCode: numberType().int(),
43555
+ auth_error: AuthError$zodSchema.optional(),
43556
+ bad_request: BadRequest$zodSchema.optional(),
43205
43557
  fourHundredAndFourApplicationJsonObject: lazyType(() => GetFileNotFoundResponseBody$zodSchema).optional(),
43206
- fourHundredAndTwentyNineApplicationJsonObject: lazyType(() => GetFileTooManyRequestsResponseBody$zodSchema).optional(),
43207
- fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetFileUnprocessableEntityResponseBody$zodSchema).optional()
43558
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => GetFileForbiddenResponseBody$zodSchema).optional(),
43559
+ fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetFileUnprocessableEntityResponseBody$zodSchema).optional(),
43560
+ rate_limit: RateLimit$zodSchema.optional()
43208
43561
  });
43209
43562
  });
43210
43563
 
43211
43564
  // src/funcs/filesGetFile.ts
43212
43565
  function filesGetFile(client$, request, options) {
43213
- return new APIPromise($do6(client$, request, options));
43566
+ return new APIPromise($do7(client$, request, options));
43214
43567
  }
43215
- async function $do6(client$, request, options) {
43568
+ async function $do7(client$, request, options) {
43216
43569
  const parsed$ = safeParse(request, (value$) => GetFileRequest$zodSchema.parse(value$), "Input validation failed");
43217
43570
  if (!parsed$.ok) {
43218
43571
  return [parsed$, { status: "invalid" }];
@@ -43278,13 +43631,13 @@ async function $do6(client$, request, options) {
43278
43631
  const responseFields$ = {
43279
43632
  HttpMeta: { Response: response, Request: req$ }
43280
43633
  };
43281
- const [result$] = await match(json(200, GetFileResponse$zodSchema, { key: "File" }), json(404, GetFileResponse$zodSchema, {
43634
+ const [result$] = await match(json(200, GetFileResponse$zodSchema, { key: "File" }), json(400, GetFileResponse$zodSchema, { key: "bad_request" }), json(401, GetFileResponse$zodSchema, { key: "auth_error" }), json(403, GetFileResponse$zodSchema, {
43635
+ key: "403_application/json_object"
43636
+ }), json(404, GetFileResponse$zodSchema, {
43282
43637
  key: "404_application/json_object"
43283
43638
  }), json(422, GetFileResponse$zodSchema, {
43284
43639
  key: "422_application/json_object"
43285
- }), json(429, GetFileResponse$zodSchema, {
43286
- key: "429_application/json_object"
43287
- }))(response, req$, { extraFields: responseFields$ });
43640
+ }), json(429, GetFileResponse$zodSchema, { key: "rate_limit" }), nil(500, GetFileResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
43288
43641
  return [result$, { status: "complete", request: req$, response }];
43289
43642
  }
43290
43643
  var init_filesGetFile = __esm(() => {
@@ -43299,12 +43652,12 @@ var init_filesGetFile = __esm(() => {
43299
43652
  });
43300
43653
 
43301
43654
  // src/mcp-server/tools/filesGetFile.ts
43302
- var args5, tool$filesGetFile;
43655
+ var args6, tool$filesGetFile;
43303
43656
  var init_filesGetFile2 = __esm(() => {
43304
43657
  init_filesGetFile();
43305
43658
  init_getfileop();
43306
43659
  init_tools();
43307
- args5 = {
43660
+ args6 = {
43308
43661
  request: GetFileRequest$zodSchema
43309
43662
  };
43310
43663
  tool$filesGetFile = {
@@ -43312,9 +43665,9 @@ var init_filesGetFile2 = __esm(() => {
43312
43665
  description: `Get a file
43313
43666
 
43314
43667
  Returns a single file object by ID.`,
43315
- args: args5,
43316
- tool: async (client, args6, ctx) => {
43317
- const [result, apiCall] = await filesGetFile(client, args6.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43668
+ args: args6,
43669
+ tool: async (client, args7, ctx) => {
43670
+ const [result, apiCall] = await filesGetFile(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43318
43671
  if (!result.ok) {
43319
43672
  return {
43320
43673
  content: [{ type: "text", text: result.error.message }],
@@ -43327,21 +43680,32 @@ Returns a single file object by ID.`,
43327
43680
  };
43328
43681
  });
43329
43682
 
43330
- // src/models/listfilesop.ts
43331
- var ListFilesRequest$zodSchema, ListFilesTooManyRequestsResponseBody$zodSchema, ListFilesPath$zodSchema, ListFilesIssue$zodSchema, ListFilesError$zodSchema, ListFilesUnprocessableEntityResponseBody$zodSchema, ListFilesResponseBody$zodSchema, ListFilesResponse$zodSchema;
43332
- var init_listfilesop = __esm(() => {
43683
+ // src/models/paginatedfiles.ts
43684
+ var PaginatedFiles$zodSchema;
43685
+ var init_paginatedfiles = __esm(() => {
43333
43686
  init_zod();
43334
43687
  init_file();
43335
43688
  init_pagination();
43689
+ PaginatedFiles$zodSchema = objectType({
43690
+ data: arrayType(FileT$zodSchema),
43691
+ pagination: Pagination$zodSchema
43692
+ });
43693
+ });
43694
+
43695
+ // src/models/listfilesop.ts
43696
+ var ListFilesRequest$zodSchema, ListFilesPath$zodSchema, ListFilesIssue$zodSchema, ListFilesError$zodSchema, ListFilesUnprocessableEntityResponseBody$zodSchema, ListFilesType$zodSchema, ListFilesCode$zodSchema, ListFilesForbiddenResponseBody$zodSchema, ListFilesResponse$zodSchema;
43697
+ var init_listfilesop = __esm(() => {
43698
+ init_zod();
43699
+ init_autherror();
43700
+ init_badrequest();
43701
+ init_paginatedfiles();
43702
+ init_ratelimit();
43336
43703
  ListFilesRequest$zodSchema = objectType({
43337
43704
  cursor: stringType().optional(),
43338
43705
  limit: numberType().default(20),
43339
43706
  workspaceId: stringType().optional(),
43340
43707
  xClientId: stringType()
43341
43708
  });
43342
- ListFilesTooManyRequestsResponseBody$zodSchema = objectType({
43343
- message: stringType()
43344
- }).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
43345
43709
  ListFilesPath$zodSchema = unionType([
43346
43710
  stringType(),
43347
43711
  numberType()
@@ -43362,25 +43726,36 @@ var init_listfilesop = __esm(() => {
43362
43726
  error: lazyType(() => ListFilesError$zodSchema),
43363
43727
  success: booleanType()
43364
43728
  }).describe("The validation error(s)");
43365
- ListFilesResponseBody$zodSchema = objectType({
43366
- data: arrayType(FileT$zodSchema),
43367
- pagination: Pagination$zodSchema
43368
- }).describe("Paginated files");
43729
+ ListFilesType$zodSchema = enumType([
43730
+ "auth_error"
43731
+ ]);
43732
+ ListFilesCode$zodSchema = enumType([
43733
+ "missing_scope"
43734
+ ]);
43735
+ ListFilesForbiddenResponseBody$zodSchema = objectType({
43736
+ code: ListFilesCode$zodSchema,
43737
+ message: stringType(),
43738
+ status_code: numberType(),
43739
+ type: ListFilesType$zodSchema
43740
+ }).describe("Missing scope");
43369
43741
  ListFilesResponse$zodSchema = objectType({
43370
43742
  ContentType: stringType(),
43743
+ PaginatedFiles: PaginatedFiles$zodSchema.optional(),
43371
43744
  RawResponse: instanceOfType(Response),
43372
43745
  StatusCode: numberType().int(),
43373
- fourHundredAndTwentyNineApplicationJsonObject: lazyType(() => ListFilesTooManyRequestsResponseBody$zodSchema).optional(),
43746
+ auth_error: AuthError$zodSchema.optional(),
43747
+ bad_request: BadRequest$zodSchema.optional(),
43748
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => ListFilesForbiddenResponseBody$zodSchema).optional(),
43374
43749
  fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => ListFilesUnprocessableEntityResponseBody$zodSchema).optional(),
43375
- twoHundredApplicationJsonObject: lazyType(() => ListFilesResponseBody$zodSchema).optional()
43750
+ rate_limit: RateLimit$zodSchema.optional()
43376
43751
  });
43377
43752
  });
43378
43753
 
43379
43754
  // src/funcs/filesListFiles.ts
43380
43755
  function filesListFiles(client$, request, options) {
43381
- return new APIPromise($do7(client$, request, options));
43756
+ return new APIPromise($do8(client$, request, options));
43382
43757
  }
43383
- async function $do7(client$, request, options) {
43758
+ async function $do8(client$, request, options) {
43384
43759
  const parsed$ = safeParse(request, (value$) => ListFilesRequest$zodSchema.parse(value$), "Input validation failed");
43385
43760
  if (!parsed$.ok) {
43386
43761
  return [parsed$, { status: "invalid" }];
@@ -43410,7 +43785,13 @@ async function $do7(client$, request, options) {
43410
43785
  resolvedSecurity: requestSecurity,
43411
43786
  securitySource: client$._options.security,
43412
43787
  retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
43413
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
43788
+ retryCodes: options?.retryCodes || [
43789
+ "429",
43790
+ "500",
43791
+ "502",
43792
+ "503",
43793
+ "504"
43794
+ ]
43414
43795
  };
43415
43796
  const requestRes = client$._createRequest(context, {
43416
43797
  security: requestSecurity,
@@ -43440,13 +43821,11 @@ async function $do7(client$, request, options) {
43440
43821
  const responseFields$ = {
43441
43822
  HttpMeta: { Response: response, Request: req$ }
43442
43823
  };
43443
- const [result$] = await match(json(200, ListFilesResponse$zodSchema, {
43444
- key: "twoHundredApplicationJsonObject"
43824
+ const [result$] = await match(json(200, ListFilesResponse$zodSchema, { key: "PaginatedFiles" }), json(400, ListFilesResponse$zodSchema, { key: "bad_request" }), json(401, ListFilesResponse$zodSchema, { key: "auth_error" }), json(403, ListFilesResponse$zodSchema, {
43825
+ key: "403_application/json_object"
43445
43826
  }), json(422, ListFilesResponse$zodSchema, {
43446
- key: "fourHundredAndTwentyTwoApplicationJsonObject"
43447
- }), json(429, ListFilesResponse$zodSchema, {
43448
- key: "fourHundredAndTwentyNineApplicationJsonObject"
43449
- }))(response, req$, { extraFields: responseFields$ });
43827
+ key: "422_application/json_object"
43828
+ }), json(429, ListFilesResponse$zodSchema, { key: "rate_limit" }), nil(500, ListFilesResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
43450
43829
  return [result$, { status: "complete", request: req$, response }];
43451
43830
  }
43452
43831
  var init_filesListFiles = __esm(() => {
@@ -43461,12 +43840,12 @@ var init_filesListFiles = __esm(() => {
43461
43840
  });
43462
43841
 
43463
43842
  // src/mcp-server/tools/filesListFiles.ts
43464
- var args6, tool$filesListFiles;
43843
+ var args7, tool$filesListFiles;
43465
43844
  var init_filesListFiles2 = __esm(() => {
43466
43845
  init_filesListFiles();
43467
43846
  init_listfilesop();
43468
43847
  init_tools();
43469
- args6 = {
43848
+ args7 = {
43470
43849
  request: ListFilesRequest$zodSchema
43471
43850
  };
43472
43851
  tool$filesListFiles = {
@@ -43474,9 +43853,9 @@ var init_filesListFiles2 = __esm(() => {
43474
43853
  description: `List files
43475
43854
 
43476
43855
  Returns a paginated list of files. Optionally you can filter by workspace.`,
43477
- args: args6,
43478
- tool: async (client, args7, ctx) => {
43479
- const [result, apiCall] = await filesListFiles(client, args7.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43856
+ args: args7,
43857
+ tool: async (client, args8, ctx) => {
43858
+ const [result, apiCall] = await filesListFiles(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43480
43859
  if (!result.ok) {
43481
43860
  return {
43482
43861
  content: [{ type: "text", text: result.error.message }],
@@ -43501,19 +43880,19 @@ var init_fileupdate = __esm(() => {
43501
43880
  });
43502
43881
 
43503
43882
  // src/models/updatefileop.ts
43504
- var UpdateFileRequest$zodSchema, UpdateFileTooManyRequestsResponseBody$zodSchema, UpdateFilePath2$zodSchema, UpdateFileIssue2$zodSchema, UpdateFileError2$zodSchema, UpdateFileResponseBody2$zodSchema, UpdateFilePath1$zodSchema, UpdateFileIssue1$zodSchema, UpdateFileError1$zodSchema, UpdateFileResponseBody1$zodSchema, UpdateFileResponseBody$zodSchema, UpdateFileNotFoundResponseBody$zodSchema, UpdateFileResponse$zodSchema;
43883
+ var UpdateFileRequest$zodSchema, UpdateFilePath2$zodSchema, UpdateFileIssue2$zodSchema, UpdateFileError2$zodSchema, UpdateFileResponseBody2$zodSchema, UpdateFilePath1$zodSchema, UpdateFileIssue1$zodSchema, UpdateFileError1$zodSchema, UpdateFileResponseBody1$zodSchema, UpdateFileResponseBody$zodSchema, UpdateFileNotFoundResponseBody$zodSchema, UpdateFileType$zodSchema, UpdateFileCode$zodSchema, UpdateFileForbiddenResponseBody$zodSchema, UpdateFileResponse$zodSchema;
43505
43884
  var init_updatefileop = __esm(() => {
43506
43885
  init_zod();
43886
+ init_autherror();
43887
+ init_badrequest();
43507
43888
  init_file();
43508
43889
  init_fileupdate();
43890
+ init_ratelimit();
43509
43891
  UpdateFileRequest$zodSchema = objectType({
43510
- FileUpdate: FileUpdate$zodSchema.optional(),
43892
+ FileUpdate: FileUpdate$zodSchema,
43511
43893
  id: stringType(),
43512
43894
  xClientId: stringType()
43513
43895
  });
43514
- UpdateFileTooManyRequestsResponseBody$zodSchema = objectType({
43515
- message: stringType()
43516
- }).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
43517
43896
  UpdateFilePath2$zodSchema = unionType([
43518
43897
  stringType(),
43519
43898
  numberType()
@@ -43561,25 +43940,40 @@ var init_updatefileop = __esm(() => {
43561
43940
  UpdateFileNotFoundResponseBody$zodSchema = objectType({
43562
43941
  message: stringType()
43563
43942
  }).describe("File not found");
43943
+ UpdateFileType$zodSchema = enumType([
43944
+ "auth_error"
43945
+ ]);
43946
+ UpdateFileCode$zodSchema = enumType([
43947
+ "missing_scope"
43948
+ ]);
43949
+ UpdateFileForbiddenResponseBody$zodSchema = objectType({
43950
+ code: UpdateFileCode$zodSchema,
43951
+ message: stringType(),
43952
+ status_code: numberType(),
43953
+ type: UpdateFileType$zodSchema
43954
+ }).describe("Missing scope");
43564
43955
  UpdateFileResponse$zodSchema = objectType({
43565
43956
  ContentType: stringType(),
43566
43957
  FileT: FileT$zodSchema.optional(),
43567
43958
  RawResponse: instanceOfType(Response),
43568
43959
  StatusCode: numberType().int(),
43960
+ auth_error: AuthError$zodSchema.optional(),
43961
+ bad_request: BadRequest$zodSchema.optional(),
43569
43962
  fourHundredAndFourApplicationJsonObject: lazyType(() => UpdateFileNotFoundResponseBody$zodSchema).optional(),
43570
- fourHundredAndTwentyNineApplicationJsonObject: lazyType(() => UpdateFileTooManyRequestsResponseBody$zodSchema).optional(),
43963
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => UpdateFileForbiddenResponseBody$zodSchema).optional(),
43571
43964
  fourHundredAndTwentyTwoApplicationJsonOneOf: unionType([
43572
43965
  lazyType(() => UpdateFileResponseBody1$zodSchema),
43573
43966
  lazyType(() => UpdateFileResponseBody2$zodSchema)
43574
- ]).optional()
43967
+ ]).optional(),
43968
+ rate_limit: RateLimit$zodSchema.optional()
43575
43969
  });
43576
43970
  });
43577
43971
 
43578
43972
  // src/funcs/filesUpdateFile.ts
43579
43973
  function filesUpdateFile(client$, request, options) {
43580
- return new APIPromise($do8(client$, request, options));
43974
+ return new APIPromise($do9(client$, request, options));
43581
43975
  }
43582
- async function $do8(client$, request, options) {
43976
+ async function $do9(client$, request, options) {
43583
43977
  const parsed$ = safeParse(request, (value$) => UpdateFileRequest$zodSchema.parse(value$), "Input validation failed");
43584
43978
  if (!parsed$.ok) {
43585
43979
  return [parsed$, { status: "invalid" }];
@@ -43646,13 +44040,13 @@ async function $do8(client$, request, options) {
43646
44040
  const responseFields$ = {
43647
44041
  HttpMeta: { Response: response, Request: req$ }
43648
44042
  };
43649
- const [result$] = await match(json(200, UpdateFileResponse$zodSchema, { key: "File" }), json(404, UpdateFileResponse$zodSchema, {
44043
+ const [result$] = await match(json(200, UpdateFileResponse$zodSchema, { key: "File" }), json(400, UpdateFileResponse$zodSchema, { key: "bad_request" }), json(401, UpdateFileResponse$zodSchema, { key: "auth_error" }), json(403, UpdateFileResponse$zodSchema, {
44044
+ key: "403_application/json_object"
44045
+ }), json(404, UpdateFileResponse$zodSchema, {
43650
44046
  key: "404_application/json_object"
43651
44047
  }), json(422, UpdateFileResponse$zodSchema, {
43652
44048
  key: "422_application/json_oneOf"
43653
- }), json(429, UpdateFileResponse$zodSchema, {
43654
- key: "429_application/json_object"
43655
- }))(response, req$, { extraFields: responseFields$ });
44049
+ }), json(429, UpdateFileResponse$zodSchema, { key: "rate_limit" }), nil(500, UpdateFileResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
43656
44050
  return [result$, { status: "complete", request: req$, response }];
43657
44051
  }
43658
44052
  var init_filesUpdateFile = __esm(() => {
@@ -43667,12 +44061,12 @@ var init_filesUpdateFile = __esm(() => {
43667
44061
  });
43668
44062
 
43669
44063
  // src/mcp-server/tools/filesUpdateFile.ts
43670
- var args7, tool$filesUpdateFile;
44064
+ var args8, tool$filesUpdateFile;
43671
44065
  var init_filesUpdateFile2 = __esm(() => {
43672
44066
  init_filesUpdateFile();
43673
44067
  init_updatefileop();
43674
44068
  init_tools();
43675
- args7 = {
44069
+ args8 = {
43676
44070
  request: UpdateFileRequest$zodSchema
43677
44071
  };
43678
44072
  tool$filesUpdateFile = {
@@ -43680,9 +44074,9 @@ var init_filesUpdateFile2 = __esm(() => {
43680
44074
  description: `Update a file
43681
44075
 
43682
44076
  Updates a file object.`,
43683
- args: args7,
43684
- tool: async (client, args8, ctx) => {
43685
- const [result, apiCall] = await filesUpdateFile(client, args8.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44077
+ args: args8,
44078
+ tool: async (client, args9, ctx) => {
44079
+ const [result, apiCall] = await filesUpdateFile(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
43686
44080
  if (!result.ok) {
43687
44081
  return {
43688
44082
  content: [{ type: "text", text: result.error.message }],
@@ -43695,26 +44089,28 @@ Updates a file object.`,
43695
44089
  };
43696
44090
  });
43697
44091
 
43698
- // src/models/getv1op.ts
43699
- var GetV1ResponseBody$zodSchema, GetV1Response$zodSchema;
43700
- var init_getv1op = __esm(() => {
44092
+ // src/models/indexop.ts
44093
+ var IndexResponseBody$zodSchema, IndexResponse$zodSchema;
44094
+ var init_indexop = __esm(() => {
43701
44095
  init_zod();
43702
- GetV1ResponseBody$zodSchema = objectType({
44096
+ init_ratelimit();
44097
+ IndexResponseBody$zodSchema = objectType({
43703
44098
  message: stringType()
43704
44099
  }).describe("Steuerboard API Index");
43705
- GetV1Response$zodSchema = objectType({
44100
+ IndexResponse$zodSchema = objectType({
43706
44101
  ContentType: stringType(),
43707
44102
  RawResponse: instanceOfType(Response),
43708
44103
  StatusCode: numberType().int(),
43709
- object: lazyType(() => GetV1ResponseBody$zodSchema).optional()
44104
+ object: lazyType(() => IndexResponseBody$zodSchema).optional(),
44105
+ rate_limit: RateLimit$zodSchema.optional()
43710
44106
  });
43711
44107
  });
43712
44108
 
43713
- // src/funcs/healthCheckGetV1.ts
43714
- function healthCheckGetV1(client$, options) {
43715
- return new APIPromise($do9(client$, options));
44109
+ // src/funcs/healthIndex.ts
44110
+ function healthIndex(client$, options) {
44111
+ return new APIPromise($do10(client$, options));
43716
44112
  }
43717
- async function $do9(client$, options) {
44113
+ async function $do10(client$, options) {
43718
44114
  const path$ = pathToFunc("/v1")();
43719
44115
  const headers$ = new Headers(compactMap({
43720
44116
  Accept: "application/json"
@@ -43722,7 +44118,7 @@ async function $do9(client$, options) {
43722
44118
  const context = {
43723
44119
  options: client$._options,
43724
44120
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
43725
- operationID: "get_/v1",
44121
+ operationID: "index",
43726
44122
  oAuth2Scopes: [],
43727
44123
  resolvedSecurity: null,
43728
44124
  securitySource: null,
@@ -43760,27 +44156,27 @@ async function $do9(client$, options) {
43760
44156
  const responseFields$ = {
43761
44157
  HttpMeta: { Response: response, Request: req$ }
43762
44158
  };
43763
- const [result$] = await match(json(200, GetV1Response$zodSchema, { key: "object" }))(response, req$, { extraFields: responseFields$ });
44159
+ const [result$] = await match(json(200, IndexResponse$zodSchema, { key: "object" }), json(429, IndexResponse$zodSchema, { key: "rate_limit" }), nil(500, IndexResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
43764
44160
  return [result$, { status: "complete", request: req$, response }];
43765
44161
  }
43766
- var init_healthCheckGetV1 = __esm(() => {
44162
+ var init_healthIndex = __esm(() => {
43767
44163
  init_matchers();
43768
44164
  init_primitives();
43769
44165
  init_url();
43770
- init_getv1op();
44166
+ init_indexop();
43771
44167
  init_async();
43772
44168
  });
43773
44169
 
43774
- // src/mcp-server/tools/healthCheckGetV1.ts
43775
- var tool$healthCheckGetV1;
43776
- var init_healthCheckGetV12 = __esm(() => {
43777
- init_healthCheckGetV1();
44170
+ // src/mcp-server/tools/healthIndex.ts
44171
+ var tool$healthIndex;
44172
+ var init_healthIndex2 = __esm(() => {
44173
+ init_healthIndex();
43778
44174
  init_tools();
43779
- tool$healthCheckGetV1 = {
43780
- name: "health-check-get-v1",
44175
+ tool$healthIndex = {
44176
+ name: "health-index",
43781
44177
  description: `Index`,
43782
44178
  tool: async (client, ctx) => {
43783
- const [result, apiCall] = await healthCheckGetV1(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
44179
+ const [result, apiCall] = await healthIndex(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
43784
44180
  if (!result.ok) {
43785
44181
  return {
43786
44182
  content: [{ type: "text", text: result.error.message }],
@@ -43793,39 +44189,39 @@ var init_healthCheckGetV12 = __esm(() => {
43793
44189
  };
43794
44190
  });
43795
44191
 
43796
- // src/models/getv1pingop.ts
43797
- var GetV1PingResponseBody$zodSchema, GetV1PingResponse$zodSchema;
43798
- var init_getv1pingop = __esm(() => {
44192
+ // src/models/pingop.ts
44193
+ var PingResponseBody$zodSchema, PingResponse$zodSchema;
44194
+ var init_pingop = __esm(() => {
43799
44195
  init_zod();
43800
- GetV1PingResponseBody$zodSchema = objectType({
44196
+ init_ratelimit();
44197
+ PingResponseBody$zodSchema = objectType({
43801
44198
  ping: stringType()
43802
44199
  }).describe("Pong");
43803
- GetV1PingResponse$zodSchema = objectType({
44200
+ PingResponse$zodSchema = objectType({
43804
44201
  ContentType: stringType(),
43805
44202
  RawResponse: instanceOfType(Response),
43806
44203
  StatusCode: numberType().int(),
43807
- object: lazyType(() => GetV1PingResponseBody$zodSchema).optional()
44204
+ object: lazyType(() => PingResponseBody$zodSchema).optional(),
44205
+ rate_limit: RateLimit$zodSchema.optional()
43808
44206
  });
43809
44207
  });
43810
44208
 
43811
- // src/funcs/healthCheckGetV1Ping.ts
43812
- function healthCheckGetV1Ping(client$, options) {
43813
- return new APIPromise($do10(client$, options));
44209
+ // src/funcs/healthPing.ts
44210
+ function healthPing(client$, options) {
44211
+ return new APIPromise($do11(client$, options));
43814
44212
  }
43815
- async function $do10(client$, options) {
44213
+ async function $do11(client$, options) {
43816
44214
  const path$ = pathToFunc("/v1/ping")();
43817
44215
  const headers$ = new Headers(compactMap({
43818
44216
  Accept: "application/json"
43819
44217
  }));
43820
- const securityInput = await extractSecurity(client$._options.security);
43821
- const requestSecurity = resolveGlobalSecurity(securityInput);
43822
44218
  const context = {
43823
44219
  options: client$._options,
43824
44220
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
43825
- operationID: "get_/v1/ping",
44221
+ operationID: "ping",
43826
44222
  oAuth2Scopes: [],
43827
- resolvedSecurity: requestSecurity,
43828
- securitySource: client$._options.security,
44223
+ resolvedSecurity: null,
44224
+ securitySource: null,
43829
44225
  retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
43830
44226
  retryCodes: options?.retryCodes || [
43831
44227
  "429",
@@ -43836,7 +44232,6 @@ async function $do10(client$, options) {
43836
44232
  ]
43837
44233
  };
43838
44234
  const requestRes = client$._createRequest(context, {
43839
- security: requestSecurity,
43840
44235
  method: "GET",
43841
44236
  baseURL: options?.serverURL,
43842
44237
  path: path$,
@@ -43861,28 +44256,27 @@ async function $do10(client$, options) {
43861
44256
  const responseFields$ = {
43862
44257
  HttpMeta: { Response: response, Request: req$ }
43863
44258
  };
43864
- const [result$] = await match(json(200, GetV1PingResponse$zodSchema, { key: "object" }))(response, req$, { extraFields: responseFields$ });
44259
+ const [result$] = await match(json(200, PingResponse$zodSchema, { key: "object" }), json(429, PingResponse$zodSchema, { key: "rate_limit" }), nil(500, PingResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
43865
44260
  return [result$, { status: "complete", request: req$, response }];
43866
44261
  }
43867
- var init_healthCheckGetV1Ping = __esm(() => {
44262
+ var init_healthPing = __esm(() => {
43868
44263
  init_matchers();
43869
44264
  init_primitives();
43870
- init_security();
43871
44265
  init_url();
43872
- init_getv1pingop();
44266
+ init_pingop();
43873
44267
  init_async();
43874
44268
  });
43875
44269
 
43876
- // src/mcp-server/tools/healthCheckGetV1Ping.ts
43877
- var tool$healthCheckGetV1Ping;
43878
- var init_healthCheckGetV1Ping2 = __esm(() => {
43879
- init_healthCheckGetV1Ping();
44270
+ // src/mcp-server/tools/healthPing.ts
44271
+ var tool$healthPing;
44272
+ var init_healthPing2 = __esm(() => {
44273
+ init_healthPing();
43880
44274
  init_tools();
43881
- tool$healthCheckGetV1Ping = {
43882
- name: "health-check-get-v1-ping",
43883
- description: `Ping`,
44275
+ tool$healthPing = {
44276
+ name: "health-ping",
44277
+ description: `Ping Pong`,
43884
44278
  tool: async (client, ctx) => {
43885
- const [result, apiCall] = await healthCheckGetV1Ping(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
44279
+ const [result, apiCall] = await healthPing(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
43886
44280
  if (!result.ok) {
43887
44281
  return {
43888
44282
  content: [{ type: "text", text: result.error.message }],
@@ -43941,13 +44335,16 @@ var init_taskcreate = __esm(() => {
43941
44335
  });
43942
44336
 
43943
44337
  // src/models/createtaskop.ts
43944
- var CreateTaskRequest$zodSchema, CreateTaskPath$zodSchema, CreateTaskIssue$zodSchema, CreateTaskError$zodSchema, CreateTaskResponseBody$zodSchema, CreateTaskResponse$zodSchema;
44338
+ var CreateTaskRequest$zodSchema, CreateTaskPath$zodSchema, CreateTaskIssue$zodSchema, CreateTaskError$zodSchema, CreateTaskUnprocessableEntityResponseBody$zodSchema, CreateTaskType$zodSchema, CreateTaskCode$zodSchema, CreateTaskForbiddenResponseBody$zodSchema, CreateTaskResponse$zodSchema;
43945
44339
  var init_createtaskop = __esm(() => {
43946
44340
  init_zod();
44341
+ init_autherror();
44342
+ init_badrequest();
44343
+ init_ratelimit();
43947
44344
  init_task();
43948
44345
  init_taskcreate();
43949
44346
  CreateTaskRequest$zodSchema = objectType({
43950
- TaskCreate: TaskCreate$zodSchema.optional(),
44347
+ TaskCreate: TaskCreate$zodSchema,
43951
44348
  xClientId: stringType()
43952
44349
  });
43953
44350
  CreateTaskPath$zodSchema = unionType([
@@ -43966,24 +44363,40 @@ var init_createtaskop = __esm(() => {
43966
44363
  issues: arrayType(lazyType(() => CreateTaskIssue$zodSchema)),
43967
44364
  name: stringType()
43968
44365
  });
43969
- CreateTaskResponseBody$zodSchema = objectType({
44366
+ CreateTaskUnprocessableEntityResponseBody$zodSchema = objectType({
43970
44367
  error: lazyType(() => CreateTaskError$zodSchema),
43971
44368
  success: booleanType()
43972
44369
  }).describe("The validation error(s)");
44370
+ CreateTaskType$zodSchema = enumType([
44371
+ "auth_error"
44372
+ ]);
44373
+ CreateTaskCode$zodSchema = enumType([
44374
+ "missing_scope"
44375
+ ]);
44376
+ CreateTaskForbiddenResponseBody$zodSchema = objectType({
44377
+ code: CreateTaskCode$zodSchema,
44378
+ message: stringType(),
44379
+ status_code: numberType(),
44380
+ type: CreateTaskType$zodSchema
44381
+ }).describe("Missing scope");
43973
44382
  CreateTaskResponse$zodSchema = objectType({
43974
44383
  ContentType: stringType(),
43975
44384
  RawResponse: instanceOfType(Response),
43976
44385
  StatusCode: numberType().int(),
43977
44386
  Task: Task$zodSchema.optional(),
43978
- object: lazyType(() => CreateTaskResponseBody$zodSchema).optional()
44387
+ auth_error: AuthError$zodSchema.optional(),
44388
+ bad_request: BadRequest$zodSchema.optional(),
44389
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => CreateTaskForbiddenResponseBody$zodSchema).optional(),
44390
+ fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => CreateTaskUnprocessableEntityResponseBody$zodSchema).optional(),
44391
+ rate_limit: RateLimit$zodSchema.optional()
43979
44392
  });
43980
44393
  });
43981
44394
 
43982
44395
  // src/funcs/tasksCreateTask.ts
43983
44396
  function tasksCreateTask(client$, request, options) {
43984
- return new APIPromise($do11(client$, request, options));
44397
+ return new APIPromise($do12(client$, request, options));
43985
44398
  }
43986
- async function $do11(client$, request, options) {
44399
+ async function $do12(client$, request, options) {
43987
44400
  const parsed$ = safeParse(request, (value$) => CreateTaskRequest$zodSchema.parse(value$), "Input validation failed");
43988
44401
  if (!parsed$.ok) {
43989
44402
  return [parsed$, { status: "invalid" }];
@@ -44044,7 +44457,11 @@ async function $do11(client$, request, options) {
44044
44457
  const responseFields$ = {
44045
44458
  HttpMeta: { Response: response, Request: req$ }
44046
44459
  };
44047
- const [result$] = await match(json(201, CreateTaskResponse$zodSchema, { key: "Task" }), json(422, CreateTaskResponse$zodSchema, { key: "object" }))(response, req$, { extraFields: responseFields$ });
44460
+ const [result$] = await match(json(201, CreateTaskResponse$zodSchema, { key: "Task" }), json(400, CreateTaskResponse$zodSchema, { key: "bad_request" }), json(401, CreateTaskResponse$zodSchema, { key: "auth_error" }), json(403, CreateTaskResponse$zodSchema, {
44461
+ key: "403_application/json_object"
44462
+ }), json(422, CreateTaskResponse$zodSchema, {
44463
+ key: "422_application/json_object"
44464
+ }), json(429, CreateTaskResponse$zodSchema, { key: "rate_limit" }), nil(500, CreateTaskResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
44048
44465
  return [result$, { status: "complete", request: req$, response }];
44049
44466
  }
44050
44467
  var init_tasksCreateTask = __esm(() => {
@@ -44059,12 +44476,12 @@ var init_tasksCreateTask = __esm(() => {
44059
44476
  });
44060
44477
 
44061
44478
  // src/mcp-server/tools/tasksCreateTask.ts
44062
- var args8, tool$tasksCreateTask;
44479
+ var args9, tool$tasksCreateTask;
44063
44480
  var init_tasksCreateTask2 = __esm(() => {
44064
44481
  init_tasksCreateTask();
44065
44482
  init_createtaskop();
44066
44483
  init_tools();
44067
- args8 = {
44484
+ args9 = {
44068
44485
  request: CreateTaskRequest$zodSchema
44069
44486
  };
44070
44487
  tool$tasksCreateTask = {
@@ -44072,9 +44489,9 @@ var init_tasksCreateTask2 = __esm(() => {
44072
44489
  description: `Create a task
44073
44490
 
44074
44491
  Creates a new task and returns the created task object.`,
44075
- args: args8,
44076
- tool: async (client, args9, ctx) => {
44077
- const [result, apiCall] = await tasksCreateTask(client, args9.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44492
+ args: args9,
44493
+ tool: async (client, args10, ctx) => {
44494
+ const [result, apiCall] = await tasksCreateTask(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44078
44495
  if (!result.ok) {
44079
44496
  return {
44080
44497
  content: [{ type: "text", text: result.error.message }],
@@ -44088,12 +44505,17 @@ Creates a new task and returns the created task object.`,
44088
44505
  });
44089
44506
 
44090
44507
  // src/models/deletetaskop.ts
44091
- var DeleteTaskRequest$zodSchema, DeleteTaskPath$zodSchema, DeleteTaskIssue$zodSchema, DeleteTaskError$zodSchema, DeleteTaskUnprocessableEntityResponseBody$zodSchema, DeleteTaskNotFoundResponseBody$zodSchema, DeleteTaskResponse$zodSchema;
44508
+ var DeleteTaskRequest$zodSchema, DeleteTaskPath$zodSchema, DeleteTaskIssue$zodSchema, DeleteTaskError$zodSchema, DeleteTaskUnprocessableEntityResponseBody$zodSchema, DeleteTaskType$zodSchema, DeleteTaskCode$zodSchema, DeleteTaskForbiddenResponseBody$zodSchema, DeleteTaskResponse$zodSchema;
44092
44509
  var init_deletetaskop = __esm(() => {
44093
44510
  init_zod();
44511
+ init_autherror();
44512
+ init_badrequest();
44513
+ init_notfound();
44514
+ init_ratelimit();
44094
44515
  init_task();
44095
44516
  DeleteTaskRequest$zodSchema = objectType({
44096
- id: stringType()
44517
+ id: stringType(),
44518
+ xClientId: stringType()
44097
44519
  });
44098
44520
  DeleteTaskPath$zodSchema = unionType([
44099
44521
  stringType(),
@@ -44115,24 +44537,37 @@ var init_deletetaskop = __esm(() => {
44115
44537
  error: lazyType(() => DeleteTaskError$zodSchema),
44116
44538
  success: booleanType()
44117
44539
  }).describe("Invalid id error");
44118
- DeleteTaskNotFoundResponseBody$zodSchema = objectType({
44119
- message: stringType()
44120
- }).describe("Task not found");
44540
+ DeleteTaskType$zodSchema = enumType([
44541
+ "auth_error"
44542
+ ]);
44543
+ DeleteTaskCode$zodSchema = enumType([
44544
+ "missing_scope"
44545
+ ]);
44546
+ DeleteTaskForbiddenResponseBody$zodSchema = objectType({
44547
+ code: DeleteTaskCode$zodSchema,
44548
+ message: stringType(),
44549
+ status_code: numberType(),
44550
+ type: DeleteTaskType$zodSchema
44551
+ }).describe("Missing scope");
44121
44552
  DeleteTaskResponse$zodSchema = objectType({
44122
44553
  ContentType: stringType(),
44123
44554
  RawResponse: instanceOfType(Response),
44124
44555
  StatusCode: numberType().int(),
44125
44556
  Task: Task$zodSchema.optional(),
44126
- fourHundredAndFourApplicationJsonObject: lazyType(() => DeleteTaskNotFoundResponseBody$zodSchema).optional(),
44127
- fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => DeleteTaskUnprocessableEntityResponseBody$zodSchema).optional()
44557
+ auth_error: AuthError$zodSchema.optional(),
44558
+ bad_request: BadRequest$zodSchema.optional(),
44559
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => DeleteTaskForbiddenResponseBody$zodSchema).optional(),
44560
+ fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => DeleteTaskUnprocessableEntityResponseBody$zodSchema).optional(),
44561
+ not_found: NotFound$zodSchema.optional(),
44562
+ rate_limit: RateLimit$zodSchema.optional()
44128
44563
  });
44129
44564
  });
44130
44565
 
44131
44566
  // src/funcs/tasksDeleteTask.ts
44132
44567
  function tasksDeleteTask(client$, request, options) {
44133
- return new APIPromise($do12(client$, request, options));
44568
+ return new APIPromise($do13(client$, request, options));
44134
44569
  }
44135
- async function $do12(client$, request, options) {
44570
+ async function $do13(client$, request, options) {
44136
44571
  const parsed$ = safeParse(request, (value$) => DeleteTaskRequest$zodSchema.parse(value$), "Input validation failed");
44137
44572
  if (!parsed$.ok) {
44138
44573
  return [parsed$, { status: "invalid" }];
@@ -44147,7 +44582,11 @@ async function $do12(client$, request, options) {
44147
44582
  };
44148
44583
  const path$ = pathToFunc("/v1/tasks/{id}")(pathParams$);
44149
44584
  const headers$ = new Headers(compactMap({
44150
- Accept: "application/json"
44585
+ Accept: "application/json",
44586
+ "x-client-id": encodeSimple("x-client-id", payload$.xClientId, {
44587
+ explode: false,
44588
+ charEncoding: "none"
44589
+ })
44151
44590
  }));
44152
44591
  const securityInput = await extractSecurity(client$._options.security);
44153
44592
  const requestSecurity = resolveGlobalSecurity(securityInput);
@@ -44194,11 +44633,11 @@ async function $do12(client$, request, options) {
44194
44633
  const responseFields$ = {
44195
44634
  HttpMeta: { Response: response, Request: req$ }
44196
44635
  };
44197
- const [result$] = await match(json(200, DeleteTaskResponse$zodSchema, { key: "Task" }), json(404, DeleteTaskResponse$zodSchema, {
44198
- key: "404_application/json_object"
44199
- }), json(422, DeleteTaskResponse$zodSchema, {
44636
+ const [result$] = await match(json(200, DeleteTaskResponse$zodSchema, { key: "Task" }), json(400, DeleteTaskResponse$zodSchema, { key: "bad_request" }), json(401, DeleteTaskResponse$zodSchema, { key: "auth_error" }), json(403, DeleteTaskResponse$zodSchema, {
44637
+ key: "403_application/json_object"
44638
+ }), json(404, DeleteTaskResponse$zodSchema, { key: "not_found" }), json(422, DeleteTaskResponse$zodSchema, {
44200
44639
  key: "422_application/json_object"
44201
- }))(response, req$, { extraFields: responseFields$ });
44640
+ }), json(429, DeleteTaskResponse$zodSchema, { key: "rate_limit" }), nil(500, DeleteTaskResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
44202
44641
  return [result$, { status: "complete", request: req$, response }];
44203
44642
  }
44204
44643
  var init_tasksDeleteTask = __esm(() => {
@@ -44213,12 +44652,12 @@ var init_tasksDeleteTask = __esm(() => {
44213
44652
  });
44214
44653
 
44215
44654
  // src/mcp-server/tools/tasksDeleteTask.ts
44216
- var args9, tool$tasksDeleteTask;
44655
+ var args10, tool$tasksDeleteTask;
44217
44656
  var init_tasksDeleteTask2 = __esm(() => {
44218
44657
  init_tasksDeleteTask();
44219
44658
  init_deletetaskop();
44220
44659
  init_tools();
44221
- args9 = {
44660
+ args10 = {
44222
44661
  request: DeleteTaskRequest$zodSchema
44223
44662
  };
44224
44663
  tool$tasksDeleteTask = {
@@ -44226,9 +44665,9 @@ var init_tasksDeleteTask2 = __esm(() => {
44226
44665
  description: `Delete a task
44227
44666
 
44228
44667
  Deletes a task by ID.`,
44229
- args: args9,
44230
- tool: async (client, args10, ctx) => {
44231
- const [result, apiCall] = await tasksDeleteTask(client, args10.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44668
+ args: args10,
44669
+ tool: async (client, args11, ctx) => {
44670
+ const [result, apiCall] = await tasksDeleteTask(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44232
44671
  if (!result.ok) {
44233
44672
  return {
44234
44673
  content: [{ type: "text", text: result.error.message }],
@@ -44242,12 +44681,17 @@ Deletes a task by ID.`,
44242
44681
  });
44243
44682
 
44244
44683
  // src/models/gettaskop.ts
44245
- var GetTaskRequest$zodSchema, GetTaskPath$zodSchema, GetTaskIssue$zodSchema, GetTaskError$zodSchema, GetTaskUnprocessableEntityResponseBody$zodSchema, GetTaskNotFoundResponseBody$zodSchema, GetTaskResponse$zodSchema;
44684
+ var GetTaskRequest$zodSchema, GetTaskPath$zodSchema, GetTaskIssue$zodSchema, GetTaskError$zodSchema, GetTaskUnprocessableEntityResponseBody$zodSchema, GetTaskType$zodSchema, GetTaskCode$zodSchema, GetTaskForbiddenResponseBody$zodSchema, GetTaskResponse$zodSchema;
44246
44685
  var init_gettaskop = __esm(() => {
44247
44686
  init_zod();
44687
+ init_autherror();
44688
+ init_badrequest();
44689
+ init_notfound();
44690
+ init_ratelimit();
44248
44691
  init_task();
44249
44692
  GetTaskRequest$zodSchema = objectType({
44250
- id: stringType()
44693
+ id: stringType(),
44694
+ xClientId: stringType()
44251
44695
  });
44252
44696
  GetTaskPath$zodSchema = unionType([
44253
44697
  stringType(),
@@ -44269,24 +44713,37 @@ var init_gettaskop = __esm(() => {
44269
44713
  error: lazyType(() => GetTaskError$zodSchema),
44270
44714
  success: booleanType()
44271
44715
  }).describe("Invalid id error");
44272
- GetTaskNotFoundResponseBody$zodSchema = objectType({
44273
- message: stringType()
44274
- }).describe("Task not found");
44716
+ GetTaskType$zodSchema = enumType([
44717
+ "auth_error"
44718
+ ]);
44719
+ GetTaskCode$zodSchema = enumType([
44720
+ "missing_scope"
44721
+ ]);
44722
+ GetTaskForbiddenResponseBody$zodSchema = objectType({
44723
+ code: GetTaskCode$zodSchema,
44724
+ message: stringType(),
44725
+ status_code: numberType(),
44726
+ type: GetTaskType$zodSchema
44727
+ }).describe("Missing scope");
44275
44728
  GetTaskResponse$zodSchema = objectType({
44276
44729
  ContentType: stringType(),
44277
44730
  RawResponse: instanceOfType(Response),
44278
44731
  StatusCode: numberType().int(),
44279
44732
  Task: Task$zodSchema.optional(),
44280
- fourHundredAndFourApplicationJsonObject: lazyType(() => GetTaskNotFoundResponseBody$zodSchema).optional(),
44281
- fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetTaskUnprocessableEntityResponseBody$zodSchema).optional()
44733
+ auth_error: AuthError$zodSchema.optional(),
44734
+ bad_request: BadRequest$zodSchema.optional(),
44735
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => GetTaskForbiddenResponseBody$zodSchema).optional(),
44736
+ fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetTaskUnprocessableEntityResponseBody$zodSchema).optional(),
44737
+ not_found: NotFound$zodSchema.optional(),
44738
+ rate_limit: RateLimit$zodSchema.optional()
44282
44739
  });
44283
44740
  });
44284
44741
 
44285
44742
  // src/funcs/tasksGetTask.ts
44286
44743
  function tasksGetTask(client$, request, options) {
44287
- return new APIPromise($do13(client$, request, options));
44744
+ return new APIPromise($do14(client$, request, options));
44288
44745
  }
44289
- async function $do13(client$, request, options) {
44746
+ async function $do14(client$, request, options) {
44290
44747
  const parsed$ = safeParse(request, (value$) => GetTaskRequest$zodSchema.parse(value$), "Input validation failed");
44291
44748
  if (!parsed$.ok) {
44292
44749
  return [parsed$, { status: "invalid" }];
@@ -44301,7 +44758,11 @@ async function $do13(client$, request, options) {
44301
44758
  };
44302
44759
  const path$ = pathToFunc("/v1/tasks/{id}")(pathParams$);
44303
44760
  const headers$ = new Headers(compactMap({
44304
- Accept: "application/json"
44761
+ Accept: "application/json",
44762
+ "x-client-id": encodeSimple("x-client-id", payload$.xClientId, {
44763
+ explode: false,
44764
+ charEncoding: "none"
44765
+ })
44305
44766
  }));
44306
44767
  const securityInput = await extractSecurity(client$._options.security);
44307
44768
  const requestSecurity = resolveGlobalSecurity(securityInput);
@@ -44348,11 +44809,11 @@ async function $do13(client$, request, options) {
44348
44809
  const responseFields$ = {
44349
44810
  HttpMeta: { Response: response, Request: req$ }
44350
44811
  };
44351
- const [result$] = await match(json(200, GetTaskResponse$zodSchema, { key: "Task" }), json(404, GetTaskResponse$zodSchema, {
44352
- key: "404_application/json_object"
44353
- }), json(422, GetTaskResponse$zodSchema, {
44812
+ const [result$] = await match(json(200, GetTaskResponse$zodSchema, { key: "Task" }), json(400, GetTaskResponse$zodSchema, { key: "bad_request" }), json(401, GetTaskResponse$zodSchema, { key: "auth_error" }), json(403, GetTaskResponse$zodSchema, {
44813
+ key: "403_application/json_object"
44814
+ }), json(404, GetTaskResponse$zodSchema, { key: "not_found" }), json(422, GetTaskResponse$zodSchema, {
44354
44815
  key: "422_application/json_object"
44355
- }))(response, req$, { extraFields: responseFields$ });
44816
+ }), json(429, GetTaskResponse$zodSchema, { key: "rate_limit" }), nil(500, GetTaskResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
44356
44817
  return [result$, { status: "complete", request: req$, response }];
44357
44818
  }
44358
44819
  var init_tasksGetTask = __esm(() => {
@@ -44367,12 +44828,12 @@ var init_tasksGetTask = __esm(() => {
44367
44828
  });
44368
44829
 
44369
44830
  // src/mcp-server/tools/tasksGetTask.ts
44370
- var args10, tool$tasksGetTask;
44831
+ var args11, tool$tasksGetTask;
44371
44832
  var init_tasksGetTask2 = __esm(() => {
44372
44833
  init_tasksGetTask();
44373
44834
  init_gettaskop();
44374
44835
  init_tools();
44375
- args10 = {
44836
+ args11 = {
44376
44837
  request: GetTaskRequest$zodSchema
44377
44838
  };
44378
44839
  tool$tasksGetTask = {
@@ -44380,9 +44841,9 @@ var init_tasksGetTask2 = __esm(() => {
44380
44841
  description: `Get a task
44381
44842
 
44382
44843
  Returns a single task object by ID.`,
44383
- args: args10,
44384
- tool: async (client, args11, ctx) => {
44385
- const [result, apiCall] = await tasksGetTask(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44844
+ args: args11,
44845
+ tool: async (client, args12, ctx) => {
44846
+ const [result, apiCall] = await tasksGetTask(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44386
44847
  if (!result.ok) {
44387
44848
  return {
44388
44849
  content: [{ type: "text", text: result.error.message }],
@@ -44395,17 +44856,44 @@ Returns a single task object by ID.`,
44395
44856
  };
44396
44857
  });
44397
44858
 
44398
- // src/models/listtasksop.ts
44399
- var ListTasksRequest$zodSchema, ListTasksPath$zodSchema, ListTasksIssue$zodSchema, ListTasksError$zodSchema, ListTasksUnprocessableEntityResponseBody$zodSchema, ListTasksResponseBody$zodSchema, ListTasksResponse$zodSchema;
44400
- var init_listtasksop = __esm(() => {
44859
+ // src/models/paginatedtasks.ts
44860
+ var PaginatedTasks$zodSchema;
44861
+ var init_paginatedtasks = __esm(() => {
44401
44862
  init_zod();
44402
44863
  init_pagination();
44403
44864
  init_task();
44865
+ PaginatedTasks$zodSchema = objectType({
44866
+ data: arrayType(Task$zodSchema),
44867
+ pagination: Pagination$zodSchema
44868
+ });
44869
+ });
44870
+
44871
+ // src/models/listtasksop.ts
44872
+ var ListTasksSort$zodSchema, ListTasksOrder$zodSchema, ListTasksRequest$zodSchema, ListTasksPath$zodSchema, ListTasksIssue$zodSchema, ListTasksError$zodSchema, ListTasksUnprocessableEntityResponseBody$zodSchema, ListTasksType$zodSchema, ListTasksCode$zodSchema, ListTasksForbiddenResponseBody$zodSchema, ListTasksResponse$zodSchema;
44873
+ var init_listtasksop = __esm(() => {
44874
+ init_zod();
44875
+ init_autherror();
44876
+ init_badrequest();
44877
+ init_paginatedtasks();
44878
+ init_ratelimit();
44879
+ ListTasksSort$zodSchema = enumType([
44880
+ "createdAt",
44881
+ "updatedAt",
44882
+ "dueDate",
44883
+ "status",
44884
+ "title"
44885
+ ]).describe("The sort field of the results");
44886
+ ListTasksOrder$zodSchema = enumType([
44887
+ "asc",
44888
+ "desc"
44889
+ ]).describe("The order of the results based on the sort field");
44404
44890
  ListTasksRequest$zodSchema = objectType({
44405
- clientId: stringType().optional(),
44406
44891
  cursor: stringType().optional(),
44407
44892
  limit: numberType().default(20),
44408
- workspaceId: stringType().optional()
44893
+ order: ListTasksOrder$zodSchema.default("desc"),
44894
+ sort: ListTasksSort$zodSchema.default("createdAt"),
44895
+ workspaceId: stringType().optional(),
44896
+ xClientId: stringType()
44409
44897
  });
44410
44898
  ListTasksPath$zodSchema = unionType([
44411
44899
  stringType(),
@@ -44427,25 +44915,37 @@ var init_listtasksop = __esm(() => {
44427
44915
  error: lazyType(() => ListTasksError$zodSchema),
44428
44916
  success: booleanType()
44429
44917
  }).describe("The validation error(s)");
44430
- ListTasksResponseBody$zodSchema = objectType({
44431
- data: arrayType(Task$zodSchema),
44432
- pagination: Pagination$zodSchema
44433
- }).describe("Tasks");
44918
+ ListTasksType$zodSchema = enumType([
44919
+ "auth_error"
44920
+ ]);
44921
+ ListTasksCode$zodSchema = enumType([
44922
+ "missing_scope"
44923
+ ]);
44924
+ ListTasksForbiddenResponseBody$zodSchema = objectType({
44925
+ code: ListTasksCode$zodSchema,
44926
+ message: stringType(),
44927
+ status_code: numberType(),
44928
+ type: ListTasksType$zodSchema
44929
+ }).describe("Missing scope");
44434
44930
  ListTasksResponse$zodSchema = objectType({
44435
44931
  ContentType: stringType(),
44932
+ PaginatedTasks: PaginatedTasks$zodSchema.optional(),
44436
44933
  RawResponse: instanceOfType(Response),
44437
44934
  StatusCode: numberType().int(),
44935
+ auth_error: AuthError$zodSchema.optional(),
44936
+ bad_request: BadRequest$zodSchema.optional(),
44937
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => ListTasksForbiddenResponseBody$zodSchema).optional(),
44438
44938
  fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => ListTasksUnprocessableEntityResponseBody$zodSchema).optional(),
44439
- twoHundredApplicationJsonObject: lazyType(() => ListTasksResponseBody$zodSchema).optional()
44939
+ rate_limit: RateLimit$zodSchema.optional()
44440
44940
  });
44441
44941
  });
44442
44942
 
44443
44943
  // src/funcs/tasksListTasks.ts
44444
44944
  function tasksListTasks(client$, request, options) {
44445
- return new APIPromise($do14(client$, request, options));
44945
+ return new APIPromise($do15(client$, request, options));
44446
44946
  }
44447
- async function $do14(client$, request, options) {
44448
- const parsed$ = safeParse(request, (value$) => ListTasksRequest$zodSchema.optional().parse(value$), "Input validation failed");
44947
+ async function $do15(client$, request, options) {
44948
+ const parsed$ = safeParse(request, (value$) => ListTasksRequest$zodSchema.parse(value$), "Input validation failed");
44449
44949
  if (!parsed$.ok) {
44450
44950
  return [parsed$, { status: "invalid" }];
44451
44951
  }
@@ -44453,13 +44953,18 @@ async function $do14(client$, request, options) {
44453
44953
  const body$ = null;
44454
44954
  const path$ = pathToFunc("/v1/tasks")();
44455
44955
  const query$ = encodeFormQuery({
44456
- clientId: payload$?.clientId,
44457
- cursor: payload$?.cursor,
44458
- limit: payload$?.limit,
44459
- workspaceId: payload$?.workspaceId
44956
+ cursor: payload$.cursor,
44957
+ limit: payload$.limit,
44958
+ order: payload$.order,
44959
+ sort: payload$.sort,
44960
+ workspaceId: payload$.workspaceId
44460
44961
  });
44461
44962
  const headers$ = new Headers(compactMap({
44462
- Accept: "application/json"
44963
+ Accept: "application/json",
44964
+ "x-client-id": encodeSimple("x-client-id", payload$.xClientId, {
44965
+ explode: false,
44966
+ charEncoding: "none"
44967
+ })
44463
44968
  }));
44464
44969
  const securityInput = await extractSecurity(client$._options.security);
44465
44970
  const requestSecurity = resolveGlobalSecurity(securityInput);
@@ -44471,7 +44976,13 @@ async function $do14(client$, request, options) {
44471
44976
  resolvedSecurity: requestSecurity,
44472
44977
  securitySource: client$._options.security,
44473
44978
  retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
44474
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
44979
+ retryCodes: options?.retryCodes || [
44980
+ "429",
44981
+ "500",
44982
+ "502",
44983
+ "503",
44984
+ "504"
44985
+ ]
44475
44986
  };
44476
44987
  const requestRes = client$._createRequest(context, {
44477
44988
  security: requestSecurity,
@@ -44501,11 +45012,11 @@ async function $do14(client$, request, options) {
44501
45012
  const responseFields$ = {
44502
45013
  HttpMeta: { Response: response, Request: req$ }
44503
45014
  };
44504
- const [result$] = await match(json(200, ListTasksResponse$zodSchema, {
44505
- key: "twoHundredApplicationJsonObject"
45015
+ const [result$] = await match(json(200, ListTasksResponse$zodSchema, { key: "PaginatedTasks" }), json(400, ListTasksResponse$zodSchema, { key: "bad_request" }), json(401, ListTasksResponse$zodSchema, { key: "auth_error" }), json(403, ListTasksResponse$zodSchema, {
45016
+ key: "403_application/json_object"
44506
45017
  }), json(422, ListTasksResponse$zodSchema, {
44507
- key: "fourHundredAndTwentyTwoApplicationJsonObject"
44508
- }))(response, req$, { extraFields: responseFields$ });
45018
+ key: "422_application/json_object"
45019
+ }), json(429, ListTasksResponse$zodSchema, { key: "rate_limit" }), nil(500, ListTasksResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
44509
45020
  return [result$, { status: "complete", request: req$, response }];
44510
45021
  }
44511
45022
  var init_tasksListTasks = __esm(() => {
@@ -44520,22 +45031,22 @@ var init_tasksListTasks = __esm(() => {
44520
45031
  });
44521
45032
 
44522
45033
  // src/mcp-server/tools/tasksListTasks.ts
44523
- var args11, tool$tasksListTasks;
45034
+ var args12, tool$tasksListTasks;
44524
45035
  var init_tasksListTasks2 = __esm(() => {
44525
45036
  init_tasksListTasks();
44526
45037
  init_listtasksop();
44527
45038
  init_tools();
44528
- args11 = {
44529
- request: ListTasksRequest$zodSchema.optional()
45039
+ args12 = {
45040
+ request: ListTasksRequest$zodSchema
44530
45041
  };
44531
45042
  tool$tasksListTasks = {
44532
45043
  name: "tasks-list-tasks",
44533
45044
  description: `List tasks
44534
45045
 
44535
45046
  Returns a paginated list of tasks. Optionally you can filter by client or workspace.`,
44536
- args: args11,
44537
- tool: async (client, args12, ctx) => {
44538
- const [result, apiCall] = await tasksListTasks(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45047
+ args: args12,
45048
+ tool: async (client, args13, ctx) => {
45049
+ const [result, apiCall] = await tasksListTasks(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44539
45050
  if (!result.ok) {
44540
45051
  return {
44541
45052
  content: [{ type: "text", text: result.error.message }],
@@ -44571,14 +45082,19 @@ var init_taskupdate = __esm(() => {
44571
45082
  });
44572
45083
 
44573
45084
  // src/models/updatetaskop.ts
44574
- var UpdateTaskRequest$zodSchema, UpdateTaskPath2$zodSchema, UpdateTaskIssue2$zodSchema, UpdateTaskError2$zodSchema, UpdateTaskResponseBody2$zodSchema, UpdateTaskPath1$zodSchema, UpdateTaskIssue1$zodSchema, UpdateTaskError1$zodSchema, UpdateTaskResponseBody1$zodSchema, UpdateTaskResponseBody$zodSchema, UpdateTaskNotFoundResponseBody$zodSchema, UpdateTaskResponse$zodSchema;
45085
+ var UpdateTaskRequest$zodSchema, UpdateTaskPath2$zodSchema, UpdateTaskIssue2$zodSchema, UpdateTaskError2$zodSchema, UpdateTaskResponseBody2$zodSchema, UpdateTaskPath1$zodSchema, UpdateTaskIssue1$zodSchema, UpdateTaskError1$zodSchema, UpdateTaskResponseBody1$zodSchema, UpdateTaskResponseBody$zodSchema, UpdateTaskType$zodSchema, UpdateTaskCode$zodSchema, UpdateTaskForbiddenResponseBody$zodSchema, UpdateTaskResponse$zodSchema;
44575
45086
  var init_updatetaskop = __esm(() => {
44576
45087
  init_zod();
45088
+ init_autherror();
45089
+ init_badrequest();
45090
+ init_notfound();
45091
+ init_ratelimit();
44577
45092
  init_task();
44578
45093
  init_taskupdate();
44579
45094
  UpdateTaskRequest$zodSchema = objectType({
44580
45095
  TaskUpdate: TaskUpdate$zodSchema.optional(),
44581
- id: stringType()
45096
+ id: stringType(),
45097
+ xClientId: stringType()
44582
45098
  });
44583
45099
  UpdateTaskPath2$zodSchema = unionType([
44584
45100
  stringType(),
@@ -44624,27 +45140,40 @@ var init_updatetaskop = __esm(() => {
44624
45140
  lazyType(() => UpdateTaskResponseBody1$zodSchema),
44625
45141
  lazyType(() => UpdateTaskResponseBody2$zodSchema)
44626
45142
  ]).describe("The validation error(s)");
44627
- UpdateTaskNotFoundResponseBody$zodSchema = objectType({
44628
- message: stringType()
44629
- }).describe("Task not found");
45143
+ UpdateTaskType$zodSchema = enumType([
45144
+ "auth_error"
45145
+ ]);
45146
+ UpdateTaskCode$zodSchema = enumType([
45147
+ "missing_scope"
45148
+ ]);
45149
+ UpdateTaskForbiddenResponseBody$zodSchema = objectType({
45150
+ code: UpdateTaskCode$zodSchema,
45151
+ message: stringType(),
45152
+ status_code: numberType(),
45153
+ type: UpdateTaskType$zodSchema
45154
+ }).describe("Missing scope");
44630
45155
  UpdateTaskResponse$zodSchema = objectType({
44631
45156
  ContentType: stringType(),
44632
45157
  RawResponse: instanceOfType(Response),
44633
45158
  StatusCode: numberType().int(),
44634
45159
  Task: Task$zodSchema.optional(),
44635
- object: lazyType(() => UpdateTaskNotFoundResponseBody$zodSchema).optional(),
45160
+ auth_error: AuthError$zodSchema.optional(),
45161
+ bad_request: BadRequest$zodSchema.optional(),
45162
+ not_found: NotFound$zodSchema.optional(),
45163
+ object: lazyType(() => UpdateTaskForbiddenResponseBody$zodSchema).optional(),
44636
45164
  oneOf: unionType([
44637
45165
  lazyType(() => UpdateTaskResponseBody1$zodSchema),
44638
45166
  lazyType(() => UpdateTaskResponseBody2$zodSchema)
44639
- ]).optional()
45167
+ ]).optional(),
45168
+ rate_limit: RateLimit$zodSchema.optional()
44640
45169
  });
44641
45170
  });
44642
45171
 
44643
45172
  // src/funcs/tasksUpdateTask.ts
44644
45173
  function tasksUpdateTask(client$, request, options) {
44645
- return new APIPromise($do15(client$, request, options));
45174
+ return new APIPromise($do16(client$, request, options));
44646
45175
  }
44647
- async function $do15(client$, request, options) {
45176
+ async function $do16(client$, request, options) {
44648
45177
  const parsed$ = safeParse(request, (value$) => UpdateTaskRequest$zodSchema.parse(value$), "Input validation failed");
44649
45178
  if (!parsed$.ok) {
44650
45179
  return [parsed$, { status: "invalid" }];
@@ -44660,7 +45189,11 @@ async function $do15(client$, request, options) {
44660
45189
  const path$ = pathToFunc("/v1/tasks/{id}")(pathParams$);
44661
45190
  const headers$ = new Headers(compactMap({
44662
45191
  "Content-Type": "application/json",
44663
- Accept: "application/json"
45192
+ Accept: "application/json",
45193
+ "x-client-id": encodeSimple("x-client-id", payload$.xClientId, {
45194
+ explode: false,
45195
+ charEncoding: "none"
45196
+ })
44664
45197
  }));
44665
45198
  const securityInput = await extractSecurity(client$._options.security);
44666
45199
  const requestSecurity = resolveGlobalSecurity(securityInput);
@@ -44707,7 +45240,7 @@ async function $do15(client$, request, options) {
44707
45240
  const responseFields$ = {
44708
45241
  HttpMeta: { Response: response, Request: req$ }
44709
45242
  };
44710
- const [result$] = await match(json(200, UpdateTaskResponse$zodSchema, { key: "Task" }), json(404, UpdateTaskResponse$zodSchema, { key: "object" }), json(422, UpdateTaskResponse$zodSchema, { key: "oneOf" }))(response, req$, { extraFields: responseFields$ });
45243
+ const [result$] = await match(json(200, UpdateTaskResponse$zodSchema, { key: "Task" }), json(400, UpdateTaskResponse$zodSchema, { key: "bad_request" }), json(401, UpdateTaskResponse$zodSchema, { key: "auth_error" }), json(403, UpdateTaskResponse$zodSchema, { key: "object" }), json(404, UpdateTaskResponse$zodSchema, { key: "not_found" }), json(422, UpdateTaskResponse$zodSchema, { key: "oneOf" }), json(429, UpdateTaskResponse$zodSchema, { key: "rate_limit" }), nil(500, UpdateTaskResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
44711
45244
  return [result$, { status: "complete", request: req$, response }];
44712
45245
  }
44713
45246
  var init_tasksUpdateTask = __esm(() => {
@@ -44722,12 +45255,12 @@ var init_tasksUpdateTask = __esm(() => {
44722
45255
  });
44723
45256
 
44724
45257
  // src/mcp-server/tools/tasksUpdateTask.ts
44725
- var args12, tool$tasksUpdateTask;
45258
+ var args13, tool$tasksUpdateTask;
44726
45259
  var init_tasksUpdateTask2 = __esm(() => {
44727
45260
  init_tasksUpdateTask();
44728
45261
  init_updatetaskop();
44729
45262
  init_tools();
44730
- args12 = {
45263
+ args13 = {
44731
45264
  request: UpdateTaskRequest$zodSchema
44732
45265
  };
44733
45266
  tool$tasksUpdateTask = {
@@ -44735,9 +45268,9 @@ var init_tasksUpdateTask2 = __esm(() => {
44735
45268
  description: `Update a task
44736
45269
 
44737
45270
  Updates an existing task object.`,
44738
- args: args12,
44739
- tool: async (client, args13, ctx) => {
44740
- const [result, apiCall] = await tasksUpdateTask(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45271
+ args: args13,
45272
+ tool: async (client, args14, ctx) => {
45273
+ const [result, apiCall] = await tasksUpdateTask(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44741
45274
  if (!result.ok) {
44742
45275
  return {
44743
45276
  content: [{ type: "text", text: result.error.message }],
@@ -44764,18 +45297,198 @@ var init_workspace = __esm(() => {
44764
45297
  });
44765
45298
  });
44766
45299
 
45300
+ // src/models/workspacecreate.ts
45301
+ var WorkspaceCreate$zodSchema;
45302
+ var init_workspacecreate = __esm(() => {
45303
+ init_zod();
45304
+ WorkspaceCreate$zodSchema = objectType({
45305
+ name: stringType()
45306
+ });
45307
+ });
45308
+
45309
+ // src/models/createworkspaceop.ts
45310
+ var CreateWorkspaceRequest$zodSchema, CreateWorkspacePath$zodSchema, CreateWorkspaceIssue$zodSchema, CreateWorkspaceError$zodSchema, CreateWorkspaceUnprocessableEntityResponseBody$zodSchema, CreateWorkspaceType$zodSchema, CreateWorkspaceCode$zodSchema, CreateWorkspaceForbiddenResponseBody$zodSchema, CreateWorkspaceResponse$zodSchema;
45311
+ var init_createworkspaceop = __esm(() => {
45312
+ init_zod();
45313
+ init_autherror();
45314
+ init_badrequest();
45315
+ init_ratelimit();
45316
+ init_workspace();
45317
+ init_workspacecreate();
45318
+ CreateWorkspaceRequest$zodSchema = objectType({
45319
+ WorkspaceCreate: WorkspaceCreate$zodSchema,
45320
+ xClientId: stringType()
45321
+ });
45322
+ CreateWorkspacePath$zodSchema = unionType([
45323
+ stringType(),
45324
+ numberType()
45325
+ ]);
45326
+ CreateWorkspaceIssue$zodSchema = objectType({
45327
+ code: stringType(),
45328
+ message: stringType().optional(),
45329
+ path: arrayType(unionType([
45330
+ stringType(),
45331
+ numberType()
45332
+ ]))
45333
+ });
45334
+ CreateWorkspaceError$zodSchema = objectType({
45335
+ issues: arrayType(lazyType(() => CreateWorkspaceIssue$zodSchema)),
45336
+ name: stringType()
45337
+ });
45338
+ CreateWorkspaceUnprocessableEntityResponseBody$zodSchema = objectType({
45339
+ error: lazyType(() => CreateWorkspaceError$zodSchema),
45340
+ success: booleanType()
45341
+ }).describe("The validation error(s)");
45342
+ CreateWorkspaceType$zodSchema = enumType([
45343
+ "auth_error"
45344
+ ]);
45345
+ CreateWorkspaceCode$zodSchema = enumType([
45346
+ "missing_scope"
45347
+ ]);
45348
+ CreateWorkspaceForbiddenResponseBody$zodSchema = objectType({
45349
+ code: CreateWorkspaceCode$zodSchema,
45350
+ message: stringType(),
45351
+ status_code: numberType(),
45352
+ type: CreateWorkspaceType$zodSchema
45353
+ }).describe("Missing scope");
45354
+ CreateWorkspaceResponse$zodSchema = objectType({
45355
+ ContentType: stringType(),
45356
+ RawResponse: instanceOfType(Response),
45357
+ StatusCode: numberType().int(),
45358
+ Workspace: Workspace$zodSchema.optional(),
45359
+ auth_error: AuthError$zodSchema.optional(),
45360
+ bad_request: BadRequest$zodSchema.optional(),
45361
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => CreateWorkspaceForbiddenResponseBody$zodSchema).optional(),
45362
+ fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => CreateWorkspaceUnprocessableEntityResponseBody$zodSchema).optional(),
45363
+ rate_limit: RateLimit$zodSchema.optional()
45364
+ });
45365
+ });
45366
+
45367
+ // src/funcs/workspacesCreateWorkspace.ts
45368
+ function workspacesCreateWorkspace(client$, request, options) {
45369
+ return new APIPromise($do17(client$, request, options));
45370
+ }
45371
+ async function $do17(client$, request, options) {
45372
+ const parsed$ = safeParse(request, (value$) => CreateWorkspaceRequest$zodSchema.parse(value$), "Input validation failed");
45373
+ if (!parsed$.ok) {
45374
+ return [parsed$, { status: "invalid" }];
45375
+ }
45376
+ const payload$ = parsed$.value;
45377
+ const body$ = encodeJSON("body", payload$.WorkspaceCreate, { explode: true });
45378
+ const path$ = pathToFunc("/v1/workspaces")();
45379
+ const headers$ = new Headers(compactMap({
45380
+ "Content-Type": "application/json",
45381
+ Accept: "application/json",
45382
+ "x-client-id": encodeSimple("x-client-id", payload$.xClientId, {
45383
+ explode: false,
45384
+ charEncoding: "none"
45385
+ })
45386
+ }));
45387
+ const securityInput = await extractSecurity(client$._options.security);
45388
+ const requestSecurity = resolveGlobalSecurity(securityInput);
45389
+ const context = {
45390
+ options: client$._options,
45391
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
45392
+ operationID: "createWorkspace",
45393
+ oAuth2Scopes: [],
45394
+ resolvedSecurity: requestSecurity,
45395
+ securitySource: client$._options.security,
45396
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
45397
+ retryCodes: options?.retryCodes || [
45398
+ "429",
45399
+ "500",
45400
+ "502",
45401
+ "503",
45402
+ "504"
45403
+ ]
45404
+ };
45405
+ const requestRes = client$._createRequest(context, {
45406
+ security: requestSecurity,
45407
+ method: "POST",
45408
+ baseURL: options?.serverURL,
45409
+ path: path$,
45410
+ headers: headers$,
45411
+ body: body$,
45412
+ userAgent: client$._options.userAgent,
45413
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
45414
+ }, options);
45415
+ if (!requestRes.ok) {
45416
+ return [requestRes, { status: "invalid" }];
45417
+ }
45418
+ const req$ = requestRes.value;
45419
+ const doResult = await client$._do(req$, {
45420
+ context,
45421
+ errorCodes: [],
45422
+ retryConfig: context.retryConfig,
45423
+ retryCodes: context.retryCodes
45424
+ });
45425
+ if (!doResult.ok) {
45426
+ return [doResult, { status: "request-error", request: req$ }];
45427
+ }
45428
+ const response = doResult.value;
45429
+ const responseFields$ = {
45430
+ HttpMeta: { Response: response, Request: req$ }
45431
+ };
45432
+ const [result$] = await match(json(201, CreateWorkspaceResponse$zodSchema, { key: "Workspace" }), json(400, CreateWorkspaceResponse$zodSchema, { key: "bad_request" }), json(401, CreateWorkspaceResponse$zodSchema, { key: "auth_error" }), json(403, CreateWorkspaceResponse$zodSchema, {
45433
+ key: "403_application/json_object"
45434
+ }), json(422, CreateWorkspaceResponse$zodSchema, {
45435
+ key: "422_application/json_object"
45436
+ }), json(429, CreateWorkspaceResponse$zodSchema, { key: "rate_limit" }), nil(500, CreateWorkspaceResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
45437
+ return [result$, { status: "complete", request: req$, response }];
45438
+ }
45439
+ var init_workspacesCreateWorkspace = __esm(() => {
45440
+ init_encodings();
45441
+ init_matchers();
45442
+ init_primitives();
45443
+ init_schemas();
45444
+ init_security();
45445
+ init_url();
45446
+ init_createworkspaceop();
45447
+ init_async();
45448
+ });
45449
+
45450
+ // src/mcp-server/tools/workspacesCreateWorkspace.ts
45451
+ var args14, tool$workspacesCreateWorkspace;
45452
+ var init_workspacesCreateWorkspace2 = __esm(() => {
45453
+ init_workspacesCreateWorkspace();
45454
+ init_createworkspaceop();
45455
+ init_tools();
45456
+ args14 = {
45457
+ request: CreateWorkspaceRequest$zodSchema
45458
+ };
45459
+ tool$workspacesCreateWorkspace = {
45460
+ name: "workspaces-create-workspace",
45461
+ description: `Create a workspace
45462
+
45463
+ Creates a new workspace and returns the created workspace object.`,
45464
+ args: args14,
45465
+ tool: async (client, args15, ctx) => {
45466
+ const [result, apiCall] = await workspacesCreateWorkspace(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45467
+ if (!result.ok) {
45468
+ return {
45469
+ content: [{ type: "text", text: result.error.message }],
45470
+ isError: true
45471
+ };
45472
+ }
45473
+ const value = result.value;
45474
+ return formatResult(value, apiCall);
45475
+ }
45476
+ };
45477
+ });
45478
+
44767
45479
  // src/models/getworkspaceop.ts
44768
- var GetWorkspaceRequest$zodSchema, GetWorkspaceTooManyRequestsResponseBody$zodSchema, GetWorkspacePath$zodSchema, GetWorkspaceIssue$zodSchema, GetWorkspaceError$zodSchema, GetWorkspaceUnprocessableEntityResponseBody$zodSchema, GetWorkspaceNotFoundResponseBody$zodSchema, GetWorkspaceResponse$zodSchema;
45480
+ var GetWorkspaceRequest$zodSchema, GetWorkspacePath$zodSchema, GetWorkspaceIssue$zodSchema, GetWorkspaceError$zodSchema, GetWorkspaceUnprocessableEntityResponseBody$zodSchema, GetWorkspaceType$zodSchema, GetWorkspaceCode$zodSchema, GetWorkspaceForbiddenResponseBody$zodSchema, GetWorkspaceResponse$zodSchema;
44769
45481
  var init_getworkspaceop = __esm(() => {
44770
45482
  init_zod();
45483
+ init_autherror();
45484
+ init_badrequest();
45485
+ init_notfound();
45486
+ init_ratelimit();
44771
45487
  init_workspace();
44772
45488
  GetWorkspaceRequest$zodSchema = objectType({
44773
45489
  id: stringType(),
44774
45490
  xClientId: stringType()
44775
45491
  });
44776
- GetWorkspaceTooManyRequestsResponseBody$zodSchema = objectType({
44777
- message: stringType()
44778
- }).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
44779
45492
  GetWorkspacePath$zodSchema = unionType([
44780
45493
  stringType(),
44781
45494
  numberType()
@@ -44796,25 +45509,37 @@ var init_getworkspaceop = __esm(() => {
44796
45509
  error: lazyType(() => GetWorkspaceError$zodSchema),
44797
45510
  success: booleanType()
44798
45511
  }).describe("Invalid id error");
44799
- GetWorkspaceNotFoundResponseBody$zodSchema = objectType({
44800
- message: stringType()
44801
- }).describe("Workspace not found");
45512
+ GetWorkspaceType$zodSchema = enumType([
45513
+ "auth_error"
45514
+ ]);
45515
+ GetWorkspaceCode$zodSchema = enumType([
45516
+ "missing_scope"
45517
+ ]);
45518
+ GetWorkspaceForbiddenResponseBody$zodSchema = objectType({
45519
+ code: GetWorkspaceCode$zodSchema,
45520
+ message: stringType(),
45521
+ status_code: numberType(),
45522
+ type: GetWorkspaceType$zodSchema
45523
+ }).describe("Missing scope");
44802
45524
  GetWorkspaceResponse$zodSchema = objectType({
44803
45525
  ContentType: stringType(),
44804
45526
  RawResponse: instanceOfType(Response),
44805
45527
  StatusCode: numberType().int(),
44806
45528
  Workspace: Workspace$zodSchema.optional(),
44807
- fourHundredAndFourApplicationJsonObject: lazyType(() => GetWorkspaceNotFoundResponseBody$zodSchema).optional(),
44808
- fourHundredAndTwentyNineApplicationJsonObject: lazyType(() => GetWorkspaceTooManyRequestsResponseBody$zodSchema).optional(),
44809
- fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetWorkspaceUnprocessableEntityResponseBody$zodSchema).optional()
45529
+ auth_error: AuthError$zodSchema.optional(),
45530
+ bad_request: BadRequest$zodSchema.optional(),
45531
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => GetWorkspaceForbiddenResponseBody$zodSchema).optional(),
45532
+ fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetWorkspaceUnprocessableEntityResponseBody$zodSchema).optional(),
45533
+ not_found: NotFound$zodSchema.optional(),
45534
+ rate_limit: RateLimit$zodSchema.optional()
44810
45535
  });
44811
45536
  });
44812
45537
 
44813
45538
  // src/funcs/workspacesGetWorkspace.ts
44814
45539
  function workspacesGetWorkspace(client$, request, options) {
44815
- return new APIPromise($do16(client$, request, options));
45540
+ return new APIPromise($do18(client$, request, options));
44816
45541
  }
44817
- async function $do16(client$, request, options) {
45542
+ async function $do18(client$, request, options) {
44818
45543
  const parsed$ = safeParse(request, (value$) => GetWorkspaceRequest$zodSchema.parse(value$), "Input validation failed");
44819
45544
  if (!parsed$.ok) {
44820
45545
  return [parsed$, { status: "invalid" }];
@@ -44880,13 +45605,11 @@ async function $do16(client$, request, options) {
44880
45605
  const responseFields$ = {
44881
45606
  HttpMeta: { Response: response, Request: req$ }
44882
45607
  };
44883
- const [result$] = await match(json(200, GetWorkspaceResponse$zodSchema, { key: "Workspace" }), json(404, GetWorkspaceResponse$zodSchema, {
44884
- key: "404_application/json_object"
44885
- }), json(422, GetWorkspaceResponse$zodSchema, {
45608
+ const [result$] = await match(json(200, GetWorkspaceResponse$zodSchema, { key: "Workspace" }), json(400, GetWorkspaceResponse$zodSchema, { key: "bad_request" }), json(401, GetWorkspaceResponse$zodSchema, { key: "auth_error" }), json(403, GetWorkspaceResponse$zodSchema, {
45609
+ key: "403_application/json_object"
45610
+ }), json(404, GetWorkspaceResponse$zodSchema, { key: "not_found" }), json(422, GetWorkspaceResponse$zodSchema, {
44886
45611
  key: "422_application/json_object"
44887
- }), json(429, GetWorkspaceResponse$zodSchema, {
44888
- key: "429_application/json_object"
44889
- }))(response, req$, { extraFields: responseFields$ });
45612
+ }), json(429, GetWorkspaceResponse$zodSchema, { key: "rate_limit" }), nil(500, GetWorkspaceResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
44890
45613
  return [result$, { status: "complete", request: req$, response }];
44891
45614
  }
44892
45615
  var init_workspacesGetWorkspace = __esm(() => {
@@ -44901,12 +45624,12 @@ var init_workspacesGetWorkspace = __esm(() => {
44901
45624
  });
44902
45625
 
44903
45626
  // src/mcp-server/tools/workspacesGetWorkspace.ts
44904
- var args13, tool$workspacesGetWorkspace;
45627
+ var args15, tool$workspacesGetWorkspace;
44905
45628
  var init_workspacesGetWorkspace2 = __esm(() => {
44906
45629
  init_workspacesGetWorkspace();
44907
45630
  init_getworkspaceop();
44908
45631
  init_tools();
44909
- args13 = {
45632
+ args15 = {
44910
45633
  request: GetWorkspaceRequest$zodSchema
44911
45634
  };
44912
45635
  tool$workspacesGetWorkspace = {
@@ -44914,9 +45637,9 @@ var init_workspacesGetWorkspace2 = __esm(() => {
44914
45637
  description: `Get a workspace
44915
45638
 
44916
45639
  Returns a single workspace object by ID.`,
44917
- args: args13,
44918
- tool: async (client, args14, ctx) => {
44919
- const [result, apiCall] = await workspacesGetWorkspace(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45640
+ args: args15,
45641
+ tool: async (client, args16, ctx) => {
45642
+ const [result, apiCall] = await workspacesGetWorkspace(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
44920
45643
  if (!result.ok) {
44921
45644
  return {
44922
45645
  content: [{ type: "text", text: result.error.message }],
@@ -44929,20 +45652,31 @@ Returns a single workspace object by ID.`,
44929
45652
  };
44930
45653
  });
44931
45654
 
44932
- // src/models/listworkspacesop.ts
44933
- var ListWorkspacesRequest$zodSchema, ListWorkspacesTooManyRequestsResponseBody$zodSchema, ListWorkspacesPath$zodSchema, ListWorkspacesIssue$zodSchema, ListWorkspacesError$zodSchema, ListWorkspacesUnprocessableEntityResponseBody$zodSchema, ListWorkspacesResponseBody$zodSchema, ListWorkspacesResponse$zodSchema;
44934
- var init_listworkspacesop = __esm(() => {
45655
+ // src/models/paginatedworkspaces.ts
45656
+ var PaginatedWorkspaces$zodSchema;
45657
+ var init_paginatedworkspaces = __esm(() => {
44935
45658
  init_zod();
44936
45659
  init_pagination();
44937
45660
  init_workspace();
45661
+ PaginatedWorkspaces$zodSchema = objectType({
45662
+ data: arrayType(Workspace$zodSchema),
45663
+ pagination: Pagination$zodSchema
45664
+ });
45665
+ });
45666
+
45667
+ // src/models/listworkspacesop.ts
45668
+ var ListWorkspacesRequest$zodSchema, ListWorkspacesPath$zodSchema, ListWorkspacesIssue$zodSchema, ListWorkspacesError$zodSchema, ListWorkspacesUnprocessableEntityResponseBody$zodSchema, ListWorkspacesType$zodSchema, ListWorkspacesCode$zodSchema, ListWorkspacesForbiddenResponseBody$zodSchema, ListWorkspacesResponse$zodSchema;
45669
+ var init_listworkspacesop = __esm(() => {
45670
+ init_zod();
45671
+ init_autherror();
45672
+ init_badrequest();
45673
+ init_paginatedworkspaces();
45674
+ init_ratelimit();
44938
45675
  ListWorkspacesRequest$zodSchema = objectType({
44939
45676
  cursor: stringType().optional(),
44940
45677
  limit: numberType().default(20),
44941
45678
  xClientId: stringType()
44942
45679
  });
44943
- ListWorkspacesTooManyRequestsResponseBody$zodSchema = objectType({
44944
- message: stringType()
44945
- }).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
44946
45680
  ListWorkspacesPath$zodSchema = unionType([
44947
45681
  stringType(),
44948
45682
  numberType()
@@ -44963,25 +45697,36 @@ var init_listworkspacesop = __esm(() => {
44963
45697
  error: lazyType(() => ListWorkspacesError$zodSchema),
44964
45698
  success: booleanType()
44965
45699
  }).describe("The validation error(s)");
44966
- ListWorkspacesResponseBody$zodSchema = objectType({
44967
- data: arrayType(Workspace$zodSchema),
44968
- pagination: Pagination$zodSchema
44969
- }).describe("Workspaces");
45700
+ ListWorkspacesType$zodSchema = enumType([
45701
+ "auth_error"
45702
+ ]);
45703
+ ListWorkspacesCode$zodSchema = enumType([
45704
+ "missing_scope"
45705
+ ]);
45706
+ ListWorkspacesForbiddenResponseBody$zodSchema = objectType({
45707
+ code: ListWorkspacesCode$zodSchema,
45708
+ message: stringType(),
45709
+ status_code: numberType(),
45710
+ type: ListWorkspacesType$zodSchema
45711
+ }).describe("Missing scope");
44970
45712
  ListWorkspacesResponse$zodSchema = objectType({
44971
45713
  ContentType: stringType(),
45714
+ PaginatedWorkspaces: PaginatedWorkspaces$zodSchema.optional(),
44972
45715
  RawResponse: instanceOfType(Response),
44973
45716
  StatusCode: numberType().int(),
44974
- fourHundredAndTwentyNineApplicationJsonObject: lazyType(() => ListWorkspacesTooManyRequestsResponseBody$zodSchema).optional(),
45717
+ auth_error: AuthError$zodSchema.optional(),
45718
+ bad_request: BadRequest$zodSchema.optional(),
45719
+ fourHundredAndThreeApplicationJsonObject: lazyType(() => ListWorkspacesForbiddenResponseBody$zodSchema).optional(),
44975
45720
  fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => ListWorkspacesUnprocessableEntityResponseBody$zodSchema).optional(),
44976
- twoHundredApplicationJsonObject: lazyType(() => ListWorkspacesResponseBody$zodSchema).optional()
45721
+ rate_limit: RateLimit$zodSchema.optional()
44977
45722
  });
44978
45723
  });
44979
45724
 
44980
45725
  // src/funcs/workspacesListWorkspaces.ts
44981
45726
  function workspacesListWorkspaces(client$, request, options) {
44982
- return new APIPromise($do17(client$, request, options));
45727
+ return new APIPromise($do19(client$, request, options));
44983
45728
  }
44984
- async function $do17(client$, request, options) {
45729
+ async function $do19(client$, request, options) {
44985
45730
  const parsed$ = safeParse(request, (value$) => ListWorkspacesRequest$zodSchema.parse(value$), "Input validation failed");
44986
45731
  if (!parsed$.ok) {
44987
45732
  return [parsed$, { status: "invalid" }];
@@ -45010,7 +45755,13 @@ async function $do17(client$, request, options) {
45010
45755
  resolvedSecurity: requestSecurity,
45011
45756
  securitySource: client$._options.security,
45012
45757
  retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
45013
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
45758
+ retryCodes: options?.retryCodes || [
45759
+ "429",
45760
+ "500",
45761
+ "502",
45762
+ "503",
45763
+ "504"
45764
+ ]
45014
45765
  };
45015
45766
  const requestRes = client$._createRequest(context, {
45016
45767
  security: requestSecurity,
@@ -45041,12 +45792,12 @@ async function $do17(client$, request, options) {
45041
45792
  HttpMeta: { Response: response, Request: req$ }
45042
45793
  };
45043
45794
  const [result$] = await match(json(200, ListWorkspacesResponse$zodSchema, {
45044
- key: "twoHundredApplicationJsonObject"
45795
+ key: "PaginatedWorkspaces"
45796
+ }), json(400, ListWorkspacesResponse$zodSchema, { key: "bad_request" }), json(401, ListWorkspacesResponse$zodSchema, { key: "auth_error" }), json(403, ListWorkspacesResponse$zodSchema, {
45797
+ key: "403_application/json_object"
45045
45798
  }), json(422, ListWorkspacesResponse$zodSchema, {
45046
- key: "fourHundredAndTwentyTwoApplicationJsonObject"
45047
- }), json(429, ListWorkspacesResponse$zodSchema, {
45048
- key: "fourHundredAndTwentyNineApplicationJsonObject"
45049
- }))(response, req$, { extraFields: responseFields$ });
45799
+ key: "422_application/json_object"
45800
+ }), json(429, ListWorkspacesResponse$zodSchema, { key: "rate_limit" }), nil(500, ListWorkspacesResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
45050
45801
  return [result$, { status: "complete", request: req$, response }];
45051
45802
  }
45052
45803
  var init_workspacesListWorkspaces = __esm(() => {
@@ -45061,12 +45812,12 @@ var init_workspacesListWorkspaces = __esm(() => {
45061
45812
  });
45062
45813
 
45063
45814
  // src/mcp-server/tools/workspacesListWorkspaces.ts
45064
- var args14, tool$workspacesListWorkspaces;
45815
+ var args16, tool$workspacesListWorkspaces;
45065
45816
  var init_workspacesListWorkspaces2 = __esm(() => {
45066
45817
  init_workspacesListWorkspaces();
45067
45818
  init_listworkspacesop();
45068
45819
  init_tools();
45069
- args14 = {
45820
+ args16 = {
45070
45821
  request: ListWorkspacesRequest$zodSchema
45071
45822
  };
45072
45823
  tool$workspacesListWorkspaces = {
@@ -45074,9 +45825,9 @@ var init_workspacesListWorkspaces2 = __esm(() => {
45074
45825
  description: `List workspaces
45075
45826
 
45076
45827
  Returns a paginated list of workspaces.`,
45077
- args: args14,
45078
- tool: async (client, args15, ctx) => {
45079
- const [result, apiCall] = await workspacesListWorkspaces(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45828
+ args: args16,
45829
+ tool: async (client, args17, ctx) => {
45830
+ const [result, apiCall] = await workspacesListWorkspaces(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45080
45831
  if (!result.ok) {
45081
45832
  return {
45082
45833
  content: [{ type: "text", text: result.error.message }],
@@ -45093,16 +45844,16 @@ Returns a paginated list of workspaces.`,
45093
45844
  function createMCPServer(deps) {
45094
45845
  const server = new McpServer({
45095
45846
  name: "Steuerboard",
45096
- version: "0.0.1"
45847
+ version: "0.1.0"
45097
45848
  });
45098
45849
  const getClient = deps.getSDK || (() => new SteuerboardCore({
45099
45850
  security: deps.security,
45100
45851
  serverURL: deps.serverURL,
45101
45852
  serverIdx: deps.serverIdx,
45102
45853
  debugLogger: deps.logger.level === "debug" ? {
45103
- log: (...args15) => console.log(...args15),
45104
- group: (...args15) => console.group(...args15),
45105
- groupEnd: (...args15) => console.groupEnd(...args15)
45854
+ log: (...args17) => console.log(...args17),
45855
+ group: (...args17) => console.group(...args17),
45856
+ groupEnd: (...args17) => console.groupEnd(...args17)
45106
45857
  } : undefined
45107
45858
  }));
45108
45859
  const scopes = new Set(deps.scopes);
@@ -45112,12 +45863,14 @@ function createMCPServer(deps) {
45112
45863
  const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, getClient, scopes);
45113
45864
  const prompt = createRegisterPrompt(deps.logger, server, getClient, scopes);
45114
45865
  const register = { tool, resource, resourceTemplate, prompt };
45115
- tool(tool$healthCheckGetV1);
45116
- tool(tool$healthCheckGetV1Ping);
45117
- tool(tool$authGetV1Me);
45866
+ tool(tool$healthIndex);
45867
+ tool(tool$healthPing);
45868
+ tool(tool$authMe);
45118
45869
  tool(tool$adminClientsListClients);
45870
+ tool(tool$adminClientsCreateClient);
45119
45871
  tool(tool$adminClientsGetClient);
45120
45872
  tool(tool$workspacesListWorkspaces);
45873
+ tool(tool$workspacesCreateWorkspace);
45121
45874
  tool(tool$workspacesGetWorkspace);
45122
45875
  tool(tool$filesListFiles);
45123
45876
  tool(tool$filesCreateFile);
@@ -45136,21 +45889,23 @@ var init_server2 = __esm(() => {
45136
45889
  init_core();
45137
45890
  init_resources();
45138
45891
  init_tools();
45892
+ init_adminClientsCreateClient2();
45139
45893
  init_adminClientsGetClient2();
45140
45894
  init_adminClientsListClients2();
45141
- init_authGetV1Me2();
45895
+ init_authMe2();
45142
45896
  init_filesCreateFile2();
45143
45897
  init_filesDeleteFile2();
45144
45898
  init_filesGetFile2();
45145
45899
  init_filesListFiles2();
45146
45900
  init_filesUpdateFile2();
45147
- init_healthCheckGetV12();
45148
- init_healthCheckGetV1Ping2();
45901
+ init_healthIndex2();
45902
+ init_healthPing2();
45149
45903
  init_tasksCreateTask2();
45150
45904
  init_tasksDeleteTask2();
45151
45905
  init_tasksGetTask2();
45152
45906
  init_tasksListTasks2();
45153
45907
  init_tasksUpdateTask2();
45908
+ init_workspacesCreateWorkspace2();
45154
45909
  init_workspacesGetWorkspace2();
45155
45910
  init_workspacesListWorkspaces2();
45156
45911
  });
@@ -46348,7 +47103,7 @@ var routes = ln({
46348
47103
  var app = _e(routes, {
46349
47104
  name: "mcp",
46350
47105
  versionInfo: {
46351
- currentVersion: "0.0.1"
47106
+ currentVersion: "0.1.0"
46352
47107
  }
46353
47108
  });
46354
47109
  Yt(app, process3.argv.slice(2), buildContext(process3));
@@ -46356,5 +47111,5 @@ export {
46356
47111
  app
46357
47112
  };
46358
47113
 
46359
- //# debugId=2179661E8CD3966964756E2164756E21
47114
+ //# debugId=49813532CB67895064756E2164756E21
46360
47115
  //# sourceMappingURL=mcp-server.js.map