@steuerboard/mcp 0.0.7 → 0.1.2

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 (304) hide show
  1. package/README.md +11 -23
  2. package/bin/mcp-server.js +921 -353
  3. package/bin/mcp-server.js.map +65 -53
  4. package/esm/src/funcs/adminClientsCreateClient.d.ts +1 -1
  5. package/esm/src/funcs/adminClientsCreateClient.d.ts.map +1 -1
  6. package/esm/src/funcs/adminClientsCreateClient.js +7 -9
  7. package/esm/src/funcs/adminClientsCreateClient.js.map +1 -1
  8. package/esm/src/funcs/adminClientsGetClient.js +5 -7
  9. package/esm/src/funcs/adminClientsGetClient.js.map +1 -1
  10. package/esm/src/funcs/adminClientsListClients.js +4 -6
  11. package/esm/src/funcs/adminClientsListClients.js.map +1 -1
  12. package/esm/src/funcs/{authGetV1Me.d.ts → authMe.d.ts} +3 -3
  13. package/esm/src/funcs/authMe.d.ts.map +1 -0
  14. package/esm/src/funcs/{authGetV1Me.js → authMe.js} +6 -6
  15. package/esm/src/funcs/authMe.js.map +1 -0
  16. package/esm/src/funcs/filesCreateFile.js +32 -34
  17. package/esm/src/funcs/filesCreateFile.js.map +1 -1
  18. package/esm/src/funcs/filesDeleteFile.js +5 -7
  19. package/esm/src/funcs/filesDeleteFile.js.map +1 -1
  20. package/esm/src/funcs/filesGetFile.js +5 -5
  21. package/esm/src/funcs/filesGetFile.js.map +1 -1
  22. package/esm/src/funcs/filesListFiles.js +4 -6
  23. package/esm/src/funcs/filesListFiles.js.map +1 -1
  24. package/esm/src/funcs/filesUpdateFile.js +5 -5
  25. package/esm/src/funcs/filesUpdateFile.js.map +1 -1
  26. package/esm/src/funcs/{healthCheckGetV1.d.ts → healthIndex.d.ts} +3 -3
  27. package/esm/src/funcs/{authGetV1Me.d.ts.map → healthIndex.d.ts.map} +1 -1
  28. package/esm/src/funcs/{healthCheckGetV1.js → healthIndex.js} +6 -6
  29. package/esm/src/funcs/healthIndex.js.map +1 -0
  30. package/esm/src/funcs/{healthCheckGetV1Ping.d.ts → healthPing.d.ts} +3 -3
  31. package/esm/src/funcs/healthPing.d.ts.map +1 -0
  32. package/esm/src/funcs/{healthCheckGetV1Ping.js → healthPing.js} +6 -6
  33. package/esm/src/funcs/healthPing.js.map +1 -0
  34. package/esm/src/funcs/tasksCreateTask.js +6 -2
  35. package/esm/src/funcs/tasksCreateTask.js.map +1 -1
  36. package/esm/src/funcs/tasksDeleteTask.js +9 -5
  37. package/esm/src/funcs/tasksDeleteTask.js.map +1 -1
  38. package/esm/src/funcs/tasksGetTask.js +9 -5
  39. package/esm/src/funcs/tasksGetTask.js.map +1 -1
  40. package/esm/src/funcs/tasksListTasks.d.ts +1 -1
  41. package/esm/src/funcs/tasksListTasks.d.ts.map +1 -1
  42. package/esm/src/funcs/tasksListTasks.js +15 -9
  43. package/esm/src/funcs/tasksListTasks.js.map +1 -1
  44. package/esm/src/funcs/tasksUpdateTask.js +6 -2
  45. package/esm/src/funcs/tasksUpdateTask.js.map +1 -1
  46. package/esm/src/funcs/workspacesCreateWorkspace.d.ts +16 -0
  47. package/esm/src/funcs/workspacesCreateWorkspace.d.ts.map +1 -0
  48. package/esm/src/funcs/workspacesCreateWorkspace.js +92 -0
  49. package/esm/src/funcs/workspacesCreateWorkspace.js.map +1 -0
  50. package/esm/src/funcs/workspacesGetWorkspace.js +5 -7
  51. package/esm/src/funcs/workspacesGetWorkspace.js.map +1 -1
  52. package/esm/src/funcs/workspacesListWorkspaces.js +5 -5
  53. package/esm/src/funcs/workspacesListWorkspaces.js.map +1 -1
  54. package/esm/src/lib/config.d.ts +4 -4
  55. package/esm/src/lib/config.d.ts.map +1 -1
  56. package/esm/src/lib/config.js +4 -4
  57. package/esm/src/lib/config.js.map +1 -1
  58. package/esm/src/mcp-server/mcp-server.js +1 -1
  59. package/esm/src/mcp-server/server.d.ts.map +1 -1
  60. package/esm/src/mcp-server/server.js +9 -7
  61. package/esm/src/mcp-server/server.js.map +1 -1
  62. package/esm/src/mcp-server/tools/adminClientsCreateClient.d.ts +1 -1
  63. package/esm/src/mcp-server/tools/adminClientsCreateClient.js +1 -1
  64. package/esm/src/mcp-server/tools/adminClientsCreateClient.js.map +1 -1
  65. package/esm/src/mcp-server/tools/authMe.d.ts +3 -0
  66. package/esm/src/mcp-server/tools/authMe.d.ts.map +1 -0
  67. package/esm/src/mcp-server/tools/{healthCheckGetV1.js → authMe.js} +6 -6
  68. package/esm/src/mcp-server/tools/authMe.js.map +1 -0
  69. package/esm/src/mcp-server/tools/healthIndex.d.ts +3 -0
  70. package/esm/src/mcp-server/tools/healthIndex.d.ts.map +1 -0
  71. package/esm/src/mcp-server/tools/{authGetV1Me.js → healthIndex.js} +6 -6
  72. package/esm/src/mcp-server/tools/healthIndex.js.map +1 -0
  73. package/esm/src/mcp-server/tools/healthPing.d.ts +3 -0
  74. package/esm/src/mcp-server/tools/healthPing.d.ts.map +1 -0
  75. package/esm/src/mcp-server/tools/{healthCheckGetV1Ping.js → healthPing.js} +5 -5
  76. package/esm/src/mcp-server/tools/healthPing.js.map +1 -0
  77. package/esm/src/mcp-server/tools/tasksListTasks.d.ts +1 -1
  78. package/esm/src/mcp-server/tools/tasksListTasks.js +1 -1
  79. package/esm/src/mcp-server/tools/tasksListTasks.js.map +1 -1
  80. package/esm/src/mcp-server/tools/workspacesCreateWorkspace.d.ts +7 -0
  81. package/esm/src/mcp-server/tools/workspacesCreateWorkspace.d.ts.map +1 -0
  82. package/esm/src/mcp-server/tools/workspacesCreateWorkspace.js +28 -0
  83. package/esm/src/mcp-server/tools/workspacesCreateWorkspace.js.map +1 -0
  84. package/esm/src/models/autherror.d.ts +13 -0
  85. package/esm/src/models/autherror.d.ts.map +1 -0
  86. package/esm/src/models/autherror.js +17 -0
  87. package/esm/src/models/autherror.js.map +1 -0
  88. package/esm/src/models/badrequest.d.ts +13 -0
  89. package/esm/src/models/badrequest.d.ts.map +1 -0
  90. package/esm/src/models/badrequest.js +17 -0
  91. package/esm/src/models/badrequest.js.map +1 -0
  92. package/esm/src/models/client.d.ts +3 -3
  93. package/esm/src/models/client.d.ts.map +1 -1
  94. package/esm/src/models/client.js +5 -5
  95. package/esm/src/models/client.js.map +1 -1
  96. package/esm/src/models/clientcreate.d.ts +3 -3
  97. package/esm/src/models/clientcreate.d.ts.map +1 -1
  98. package/esm/src/models/clientcreate.js +2 -2
  99. package/esm/src/models/clientcreate.js.map +1 -1
  100. package/esm/src/models/createclientop.d.ts +19 -8
  101. package/esm/src/models/createclientop.d.ts.map +1 -1
  102. package/esm/src/models/createclientop.js +17 -4
  103. package/esm/src/models/createclientop.js.map +1 -1
  104. package/esm/src/models/createfileop.d.ts +29 -9
  105. package/esm/src/models/createfileop.d.ts.map +1 -1
  106. package/esm/src/models/createfileop.js +29 -5
  107. package/esm/src/models/createfileop.js.map +1 -1
  108. package/esm/src/models/createtaskop.d.ts +25 -4
  109. package/esm/src/models/createtaskop.d.ts.map +1 -1
  110. package/esm/src/models/createtaskop.js +22 -3
  111. package/esm/src/models/createtaskop.js.map +1 -1
  112. package/esm/src/models/createworkspaceop.d.ts +59 -0
  113. package/esm/src/models/createworkspaceop.d.ts.map +1 -0
  114. package/esm/src/models/createworkspaceop.js +57 -0
  115. package/esm/src/models/createworkspaceop.js.map +1 -0
  116. package/esm/src/models/deletefileop.d.ts +19 -12
  117. package/esm/src/models/deletefileop.d.ts.map +1 -1
  118. package/esm/src/models/deletefileop.js +20 -7
  119. package/esm/src/models/deletefileop.js.map +1 -1
  120. package/esm/src/models/deletetaskop.d.ts +20 -4
  121. package/esm/src/models/deletetaskop.d.ts.map +1 -1
  122. package/esm/src/models/deletetaskop.js +21 -3
  123. package/esm/src/models/deletetaskop.js.map +1 -1
  124. package/esm/src/models/file.js +3 -3
  125. package/esm/src/models/file.js.map +1 -1
  126. package/esm/src/models/fileupdate.js +1 -1
  127. package/esm/src/models/fileupdate.js.map +1 -1
  128. package/esm/src/models/getclientop.d.ts +17 -12
  129. package/esm/src/models/getclientop.d.ts.map +1 -1
  130. package/esm/src/models/getclientop.js +18 -7
  131. package/esm/src/models/getclientop.js.map +1 -1
  132. package/esm/src/models/getfileop.d.ts +21 -8
  133. package/esm/src/models/getfileop.d.ts.map +1 -1
  134. package/esm/src/models/getfileop.js +19 -4
  135. package/esm/src/models/getfileop.js.map +1 -1
  136. package/esm/src/models/gettaskop.d.ts +20 -4
  137. package/esm/src/models/gettaskop.d.ts.map +1 -1
  138. package/esm/src/models/gettaskop.js +21 -3
  139. package/esm/src/models/gettaskop.js.map +1 -1
  140. package/esm/src/models/getworkspaceop.d.ts +19 -12
  141. package/esm/src/models/getworkspaceop.d.ts.map +1 -1
  142. package/esm/src/models/getworkspaceop.js +20 -7
  143. package/esm/src/models/getworkspaceop.js.map +1 -1
  144. package/esm/src/models/indexop.d.ts +18 -0
  145. package/esm/src/models/indexop.d.ts.map +1 -0
  146. package/esm/src/models/indexop.js +16 -0
  147. package/esm/src/models/indexop.js.map +1 -0
  148. package/esm/src/models/listclientsop.d.ts +27 -25
  149. package/esm/src/models/listclientsop.d.ts.map +1 -1
  150. package/esm/src/models/listclientsop.js +25 -17
  151. package/esm/src/models/listclientsop.js.map +1 -1
  152. package/esm/src/models/listfilesop.d.ts +20 -16
  153. package/esm/src/models/listfilesop.d.ts.map +1 -1
  154. package/esm/src/models/listfilesop.js +21 -12
  155. package/esm/src/models/listfilesop.js.map +1 -1
  156. package/esm/src/models/listtasksop.d.ts +33 -8
  157. package/esm/src/models/listtasksop.d.ts.map +1 -1
  158. package/esm/src/models/listtasksop.js +41 -8
  159. package/esm/src/models/listtasksop.js.map +1 -1
  160. package/esm/src/models/listworkspacesop.d.ts +20 -16
  161. package/esm/src/models/listworkspacesop.d.ts.map +1 -1
  162. package/esm/src/models/listworkspacesop.js +21 -11
  163. package/esm/src/models/listworkspacesop.js.map +1 -1
  164. package/esm/src/models/meop.d.ts +41 -0
  165. package/esm/src/models/meop.d.ts.map +1 -0
  166. package/esm/src/models/meop.js +38 -0
  167. package/esm/src/models/meop.js.map +1 -0
  168. package/esm/src/models/notfound.d.ts +13 -0
  169. package/esm/src/models/notfound.d.ts.map +1 -0
  170. package/esm/src/models/notfound.js +18 -0
  171. package/esm/src/models/notfound.js.map +1 -0
  172. package/esm/src/models/paginatedclients.d.ts +9 -0
  173. package/esm/src/models/paginatedclients.d.ts.map +1 -0
  174. package/esm/src/models/paginatedclients.js +11 -0
  175. package/esm/src/models/paginatedclients.js.map +1 -0
  176. package/esm/src/models/paginatedfiles.d.ts +9 -0
  177. package/esm/src/models/paginatedfiles.d.ts.map +1 -0
  178. package/esm/src/models/paginatedfiles.js +11 -0
  179. package/esm/src/models/paginatedfiles.js.map +1 -0
  180. package/esm/src/models/paginatedtasks.d.ts +9 -0
  181. package/esm/src/models/paginatedtasks.d.ts.map +1 -0
  182. package/esm/src/models/paginatedtasks.js +11 -0
  183. package/esm/src/models/paginatedtasks.js.map +1 -0
  184. package/esm/src/models/paginatedworkspaces.d.ts +9 -0
  185. package/esm/src/models/paginatedworkspaces.d.ts.map +1 -0
  186. package/esm/src/models/paginatedworkspaces.js +11 -0
  187. package/esm/src/models/paginatedworkspaces.js.map +1 -0
  188. package/esm/src/models/pingop.d.ts +18 -0
  189. package/esm/src/models/pingop.d.ts.map +1 -0
  190. package/esm/src/models/pingop.js +16 -0
  191. package/esm/src/models/pingop.js.map +1 -0
  192. package/esm/src/models/ratelimit.d.ts +13 -0
  193. package/esm/src/models/ratelimit.d.ts.map +1 -0
  194. package/esm/src/models/ratelimit.js +17 -0
  195. package/esm/src/models/ratelimit.js.map +1 -0
  196. package/esm/src/models/taskcreate.js +1 -1
  197. package/esm/src/models/taskcreate.js.map +1 -1
  198. package/esm/src/models/updatefileop.d.ts +22 -9
  199. package/esm/src/models/updatefileop.d.ts.map +1 -1
  200. package/esm/src/models/updatefileop.js +20 -5
  201. package/esm/src/models/updatefileop.js.map +1 -1
  202. package/esm/src/models/updatetaskop.d.ts +20 -4
  203. package/esm/src/models/updatetaskop.d.ts.map +1 -1
  204. package/esm/src/models/updatetaskop.js +21 -3
  205. package/esm/src/models/updatetaskop.js.map +1 -1
  206. package/esm/src/models/workspace.js +3 -3
  207. package/esm/src/models/workspace.js.map +1 -1
  208. package/esm/src/models/workspacecreate.d.ts +6 -0
  209. package/esm/src/models/workspacecreate.d.ts.map +1 -0
  210. package/esm/src/models/workspacecreate.js +8 -0
  211. package/esm/src/models/workspacecreate.js.map +1 -0
  212. package/manifest.json +8 -4
  213. package/package.json +1 -1
  214. package/src/funcs/adminClientsCreateClient.ts +11 -10
  215. package/src/funcs/adminClientsGetClient.ts +7 -6
  216. package/src/funcs/adminClientsListClients.ts +7 -6
  217. package/src/funcs/{authGetV1Me.ts → authMe.ts} +12 -11
  218. package/src/funcs/filesCreateFile.ts +42 -40
  219. package/src/funcs/filesDeleteFile.ts +8 -6
  220. package/src/funcs/filesGetFile.ts +8 -4
  221. package/src/funcs/filesListFiles.ts +8 -6
  222. package/src/funcs/filesUpdateFile.ts +8 -4
  223. package/src/funcs/{healthCheckGetV1.ts → healthIndex.ts} +10 -8
  224. package/src/funcs/{healthCheckGetV1Ping.ts → healthPing.ts} +10 -11
  225. package/src/funcs/tasksCreateTask.ts +11 -2
  226. package/src/funcs/tasksDeleteTask.ts +12 -3
  227. package/src/funcs/tasksGetTask.ts +12 -3
  228. package/src/funcs/tasksListTasks.ts +21 -10
  229. package/src/funcs/tasksUpdateTask.ts +11 -2
  230. package/src/funcs/workspacesCreateWorkspace.ts +175 -0
  231. package/src/funcs/workspacesGetWorkspace.ts +8 -6
  232. package/src/funcs/workspacesListWorkspaces.ts +9 -5
  233. package/src/lib/config.ts +4 -4
  234. package/src/mcp-server/mcp-server.ts +1 -1
  235. package/src/mcp-server/server.ts +9 -7
  236. package/src/mcp-server/tools/adminClientsCreateClient.ts +1 -1
  237. package/src/mcp-server/tools/{authGetV1Me.ts → authMe.ts} +4 -4
  238. package/src/mcp-server/tools/{healthCheckGetV1.ts → healthIndex.ts} +4 -4
  239. package/src/mcp-server/tools/{healthCheckGetV1Ping.ts → healthPing.ts} +4 -4
  240. package/src/mcp-server/tools/tasksListTasks.ts +1 -1
  241. package/src/mcp-server/tools/workspacesCreateWorkspace.ts +37 -0
  242. package/src/models/autherror.ts +32 -0
  243. package/src/models/badrequest.ts +35 -0
  244. package/src/models/client.ts +7 -7
  245. package/src/models/clientcreate.ts +6 -4
  246. package/src/models/createclientop.ts +44 -20
  247. package/src/models/createfileop.ts +78 -26
  248. package/src/models/createtaskop.ts +59 -10
  249. package/src/models/createworkspaceop.ts +158 -0
  250. package/src/models/deletefileop.ts +41 -30
  251. package/src/models/deletetaskop.ts +43 -10
  252. package/src/models/file.ts +3 -3
  253. package/src/models/fileupdate.ts +1 -1
  254. package/src/models/getclientop.ts +38 -30
  255. package/src/models/getfileop.ts +47 -20
  256. package/src/models/gettaskop.ts +43 -10
  257. package/src/models/getworkspaceop.ts +41 -30
  258. package/src/models/indexop.ts +39 -0
  259. package/src/models/listclientsop.ts +56 -47
  260. package/src/models/listfilesop.ts +42 -34
  261. package/src/models/listtasksop.ts +72 -14
  262. package/src/models/listworkspacesop.ts +45 -35
  263. package/src/models/meop.ts +96 -0
  264. package/src/models/notfound.ts +32 -0
  265. package/src/models/paginatedclients.ts +18 -0
  266. package/src/models/paginatedfiles.ts +18 -0
  267. package/src/models/paginatedtasks.ts +18 -0
  268. package/src/models/paginatedworkspaces.ts +21 -0
  269. package/src/models/pingop.ts +39 -0
  270. package/src/models/ratelimit.ts +32 -0
  271. package/src/models/taskcreate.ts +1 -1
  272. package/src/models/updatefileop.ts +49 -22
  273. package/src/models/updatetaskop.ts +41 -7
  274. package/src/models/workspace.ts +3 -3
  275. package/src/models/workspacecreate.ts +15 -0
  276. package/esm/src/funcs/authGetV1Me.js.map +0 -1
  277. package/esm/src/funcs/healthCheckGetV1.d.ts.map +0 -1
  278. package/esm/src/funcs/healthCheckGetV1.js.map +0 -1
  279. package/esm/src/funcs/healthCheckGetV1Ping.d.ts.map +0 -1
  280. package/esm/src/funcs/healthCheckGetV1Ping.js.map +0 -1
  281. package/esm/src/mcp-server/tools/authGetV1Me.d.ts +0 -3
  282. package/esm/src/mcp-server/tools/authGetV1Me.d.ts.map +0 -1
  283. package/esm/src/mcp-server/tools/authGetV1Me.js.map +0 -1
  284. package/esm/src/mcp-server/tools/healthCheckGetV1.d.ts +0 -3
  285. package/esm/src/mcp-server/tools/healthCheckGetV1.d.ts.map +0 -1
  286. package/esm/src/mcp-server/tools/healthCheckGetV1.js.map +0 -1
  287. package/esm/src/mcp-server/tools/healthCheckGetV1Ping.d.ts +0 -3
  288. package/esm/src/mcp-server/tools/healthCheckGetV1Ping.d.ts.map +0 -1
  289. package/esm/src/mcp-server/tools/healthCheckGetV1Ping.js.map +0 -1
  290. package/esm/src/models/getv1meop.d.ts +0 -22
  291. package/esm/src/models/getv1meop.d.ts.map +0 -1
  292. package/esm/src/models/getv1meop.js +0 -20
  293. package/esm/src/models/getv1meop.js.map +0 -1
  294. package/esm/src/models/getv1op.d.ts +0 -16
  295. package/esm/src/models/getv1op.d.ts.map +0 -1
  296. package/esm/src/models/getv1op.js +0 -14
  297. package/esm/src/models/getv1op.js.map +0 -1
  298. package/esm/src/models/getv1pingop.d.ts +0 -16
  299. package/esm/src/models/getv1pingop.d.ts.map +0 -1
  300. package/esm/src/models/getv1pingop.js +0 -14
  301. package/esm/src/models/getv1pingop.js.map +0 -1
  302. package/src/models/getv1meop.ts +0 -50
  303. package/src/models/getv1op.ts +0 -36
  304. package/src/models/getv1pingop.ts +0 -36
@@ -0,0 +1,175 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteuerboardCore } from "../core.js";
6
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import {
14
+ CreateWorkspaceRequest,
15
+ CreateWorkspaceRequest$zodSchema,
16
+ CreateWorkspaceResponse,
17
+ CreateWorkspaceResponse$zodSchema,
18
+ } from "../models/createworkspaceop.js";
19
+ import { APIError } from "../models/errors/apierror.js";
20
+ import {
21
+ ConnectionError,
22
+ InvalidRequestError,
23
+ RequestAbortedError,
24
+ RequestTimeoutError,
25
+ UnexpectedClientError,
26
+ } from "../models/errors/httpclienterrors.js";
27
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
28
+ import { APICall, APIPromise } from "../types/async.js";
29
+ import { Result } from "../types/fp.js";
30
+
31
+ /**
32
+ * Create a workspace
33
+ *
34
+ * @remarks
35
+ * Creates a new workspace and returns the created workspace object.
36
+ */
37
+ export function workspacesCreateWorkspace(
38
+ client$: SteuerboardCore,
39
+ request: CreateWorkspaceRequest,
40
+ options?: RequestOptions,
41
+ ): APIPromise<
42
+ Result<
43
+ CreateWorkspaceResponse,
44
+ | APIError
45
+ | SDKValidationError
46
+ | UnexpectedClientError
47
+ | InvalidRequestError
48
+ | RequestAbortedError
49
+ | RequestTimeoutError
50
+ | ConnectionError
51
+ >
52
+ > {
53
+ return new APIPromise($do(
54
+ client$,
55
+ request,
56
+ options,
57
+ ));
58
+ }
59
+
60
+ async function $do(
61
+ client$: SteuerboardCore,
62
+ request: CreateWorkspaceRequest,
63
+ options?: RequestOptions,
64
+ ): Promise<
65
+ [
66
+ Result<
67
+ CreateWorkspaceResponse,
68
+ | APIError
69
+ | SDKValidationError
70
+ | UnexpectedClientError
71
+ | InvalidRequestError
72
+ | RequestAbortedError
73
+ | RequestTimeoutError
74
+ | ConnectionError
75
+ >,
76
+ APICall,
77
+ ]
78
+ > {
79
+ const parsed$ = safeParse(
80
+ request,
81
+ (value$) => CreateWorkspaceRequest$zodSchema.parse(value$),
82
+ "Input validation failed",
83
+ );
84
+ if (!parsed$.ok) {
85
+ return [parsed$, { status: "invalid" }];
86
+ }
87
+ const payload$ = parsed$.value;
88
+ const body$ = encodeJSON("body", payload$.WorkspaceCreate, { explode: true });
89
+ const path$ = pathToFunc("/workspaces")();
90
+
91
+ const headers$ = new Headers(compactMap({
92
+ "Content-Type": "application/json",
93
+ Accept: "application/json",
94
+ "x-client-id": encodeSimple("x-client-id", payload$.xClientId, {
95
+ explode: false,
96
+ charEncoding: "none",
97
+ }),
98
+ }));
99
+ const securityInput = await extractSecurity(client$._options.security);
100
+ const requestSecurity = resolveGlobalSecurity(securityInput);
101
+
102
+ const context = {
103
+ options: client$._options,
104
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
105
+ operationID: "createWorkspace",
106
+ oAuth2Scopes: [],
107
+ resolvedSecurity: requestSecurity,
108
+ securitySource: client$._options.security,
109
+ retryConfig: options?.retries
110
+ || client$._options.retryConfig
111
+ || { strategy: "none" },
112
+ retryCodes: options?.retryCodes || [
113
+ "429",
114
+ "500",
115
+ "502",
116
+ "503",
117
+ "504",
118
+ ],
119
+ };
120
+
121
+ const requestRes = client$._createRequest(context, {
122
+ security: requestSecurity,
123
+ method: "POST",
124
+ baseURL: options?.serverURL,
125
+ path: path$,
126
+ headers: headers$,
127
+ body: body$,
128
+ userAgent: client$._options.userAgent,
129
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs
130
+ || -1,
131
+ }, options);
132
+ if (!requestRes.ok) {
133
+ return [requestRes, { status: "invalid" }];
134
+ }
135
+ const req$ = requestRes.value;
136
+
137
+ const doResult = await client$._do(req$, {
138
+ context,
139
+ errorCodes: [],
140
+ retryConfig: context.retryConfig,
141
+ retryCodes: context.retryCodes,
142
+ });
143
+ if (!doResult.ok) {
144
+ return [doResult, { status: "request-error", request: req$ }];
145
+ }
146
+ const response = doResult.value;
147
+ const responseFields$ = {
148
+ HttpMeta: { Response: response, Request: req$ },
149
+ };
150
+
151
+ const [result$] = await M.match<
152
+ CreateWorkspaceResponse,
153
+ | APIError
154
+ | SDKValidationError
155
+ | UnexpectedClientError
156
+ | InvalidRequestError
157
+ | RequestAbortedError
158
+ | RequestTimeoutError
159
+ | ConnectionError
160
+ >(
161
+ M.json(201, CreateWorkspaceResponse$zodSchema, { key: "Workspace" }),
162
+ M.json(400, CreateWorkspaceResponse$zodSchema, { key: "bad_request" }),
163
+ M.json(401, CreateWorkspaceResponse$zodSchema, { key: "auth_error" }),
164
+ M.json(403, CreateWorkspaceResponse$zodSchema, {
165
+ key: "403_application/json_object",
166
+ }),
167
+ M.json(422, CreateWorkspaceResponse$zodSchema, {
168
+ key: "422_application/json_object",
169
+ }),
170
+ M.json(429, CreateWorkspaceResponse$zodSchema, { key: "rate_limit" }),
171
+ M.nil(500, CreateWorkspaceResponse$zodSchema),
172
+ )(response, req$, { extraFields: responseFields$ });
173
+
174
+ return [result$, { status: "complete", request: req$, response }];
175
+ }
@@ -93,7 +93,7 @@ async function $do(
93
93
  charEncoding: "percent",
94
94
  }),
95
95
  };
96
- const path$ = pathToFunc("/v1/workspaces/{id}")(
96
+ const path$ = pathToFunc("/workspaces/{id}")(
97
97
  pathParams$,
98
98
  );
99
99
 
@@ -167,15 +167,17 @@ async function $do(
167
167
  | ConnectionError
168
168
  >(
169
169
  M.json(200, GetWorkspaceResponse$zodSchema, { key: "Workspace" }),
170
- M.json(404, GetWorkspaceResponse$zodSchema, {
171
- key: "404_application/json_object",
170
+ M.json(400, GetWorkspaceResponse$zodSchema, { key: "bad_request" }),
171
+ M.json(401, GetWorkspaceResponse$zodSchema, { key: "auth_error" }),
172
+ M.json(403, GetWorkspaceResponse$zodSchema, {
173
+ key: "403_application/json_object",
172
174
  }),
175
+ M.json(404, GetWorkspaceResponse$zodSchema, { key: "not_found" }),
173
176
  M.json(422, GetWorkspaceResponse$zodSchema, {
174
177
  key: "422_application/json_object",
175
178
  }),
176
- M.json(429, GetWorkspaceResponse$zodSchema, {
177
- key: "429_application/json_object",
178
- }),
179
+ M.json(429, GetWorkspaceResponse$zodSchema, { key: "rate_limit" }),
180
+ M.nil(500, GetWorkspaceResponse$zodSchema),
179
181
  )(response, req$, { extraFields: responseFields$ });
180
182
 
181
183
  return [result$, { status: "complete", request: req$, response }];
@@ -86,7 +86,7 @@ async function $do(
86
86
  }
87
87
  const payload$ = parsed$.value;
88
88
  const body$ = null;
89
- const path$ = pathToFunc("/v1/workspaces")();
89
+ const path$ = pathToFunc("/workspaces")();
90
90
  const query$ = encodeFormQuery({
91
91
  "cursor": payload$.cursor,
92
92
  "limit": payload$.limit,
@@ -163,14 +163,18 @@ async function $do(
163
163
  | ConnectionError
164
164
  >(
165
165
  M.json(200, ListWorkspacesResponse$zodSchema, {
166
- key: "200_application/json_object",
166
+ key: "PaginatedWorkspaces",
167
+ }),
168
+ M.json(400, ListWorkspacesResponse$zodSchema, { key: "bad_request" }),
169
+ M.json(401, ListWorkspacesResponse$zodSchema, { key: "auth_error" }),
170
+ M.json(403, ListWorkspacesResponse$zodSchema, {
171
+ key: "403_application/json_object",
167
172
  }),
168
173
  M.json(422, ListWorkspacesResponse$zodSchema, {
169
174
  key: "422_application/json_object",
170
175
  }),
171
- M.json(429, ListWorkspacesResponse$zodSchema, {
172
- key: "429_application/json_object",
173
- }),
176
+ M.json(429, ListWorkspacesResponse$zodSchema, { key: "rate_limit" }),
177
+ M.nil(500, ListWorkspacesResponse$zodSchema),
174
178
  )(response, req$, { extraFields: responseFields$ });
175
179
 
176
180
  return [result$, { status: "complete", request: req$, response }];
package/src/lib/config.ts CHANGED
@@ -12,7 +12,7 @@ import { Params, pathToFunc } from "./url.js";
12
12
  * Contains the list of servers available to the SDK
13
13
  */
14
14
  export const ServerList = [
15
- "https://api.steuerboard.com",
15
+ "https://api.steuerboard.com/v1",
16
16
  ] as const;
17
17
 
18
18
  export type SDKOptions = {
@@ -62,8 +62,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
62
62
  export const SDK_METADATA = {
63
63
  language: "typescript",
64
64
  openapiDocVersion: "0.1.0",
65
- sdkVersion: "0.0.7",
66
- genVersion: "2.701.8",
65
+ sdkVersion: "0.1.2",
66
+ genVersion: "2.709.0",
67
67
  userAgent:
68
- "speakeasy-sdk/mcp-typescript 0.0.7 2.701.8 0.1.0 @steuerboard/mcp",
68
+ "speakeasy-sdk/mcp-typescript 0.1.2 2.709.0 0.1.0 @steuerboard/mcp",
69
69
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.0.7",
22
+ currentVersion: "0.1.2",
23
23
  },
24
24
  });
25
25
 
@@ -16,19 +16,20 @@ import { createRegisterTool } from "./tools.js";
16
16
  import { tool$adminClientsCreateClient } from "./tools/adminClientsCreateClient.js";
17
17
  import { tool$adminClientsGetClient } from "./tools/adminClientsGetClient.js";
18
18
  import { tool$adminClientsListClients } from "./tools/adminClientsListClients.js";
19
- import { tool$authGetV1Me } from "./tools/authGetV1Me.js";
19
+ import { tool$authMe } from "./tools/authMe.js";
20
20
  import { tool$filesCreateFile } from "./tools/filesCreateFile.js";
21
21
  import { tool$filesDeleteFile } from "./tools/filesDeleteFile.js";
22
22
  import { tool$filesGetFile } from "./tools/filesGetFile.js";
23
23
  import { tool$filesListFiles } from "./tools/filesListFiles.js";
24
24
  import { tool$filesUpdateFile } from "./tools/filesUpdateFile.js";
25
- import { tool$healthCheckGetV1 } from "./tools/healthCheckGetV1.js";
26
- import { tool$healthCheckGetV1Ping } from "./tools/healthCheckGetV1Ping.js";
25
+ import { tool$healthIndex } from "./tools/healthIndex.js";
26
+ import { tool$healthPing } from "./tools/healthPing.js";
27
27
  import { tool$tasksCreateTask } from "./tools/tasksCreateTask.js";
28
28
  import { tool$tasksDeleteTask } from "./tools/tasksDeleteTask.js";
29
29
  import { tool$tasksGetTask } from "./tools/tasksGetTask.js";
30
30
  import { tool$tasksListTasks } from "./tools/tasksListTasks.js";
31
31
  import { tool$tasksUpdateTask } from "./tools/tasksUpdateTask.js";
32
+ import { tool$workspacesCreateWorkspace } from "./tools/workspacesCreateWorkspace.js";
32
33
  import { tool$workspacesGetWorkspace } from "./tools/workspacesGetWorkspace.js";
33
34
  import { tool$workspacesListWorkspaces } from "./tools/workspacesListWorkspaces.js";
34
35
 
@@ -43,7 +44,7 @@ export function createMCPServer(deps: {
43
44
  }) {
44
45
  const server = new McpServer({
45
46
  name: "Steuerboard",
46
- version: "0.0.7",
47
+ version: "0.1.2",
47
48
  });
48
49
 
49
50
  const getClient = deps.getSDK || (() =>
@@ -86,13 +87,14 @@ export function createMCPServer(deps: {
86
87
  const register = { tool, resource, resourceTemplate, prompt };
87
88
  void register; // suppress unused warnings
88
89
 
89
- tool(tool$healthCheckGetV1);
90
- tool(tool$healthCheckGetV1Ping);
91
- tool(tool$authGetV1Me);
90
+ tool(tool$healthIndex);
91
+ tool(tool$healthPing);
92
+ tool(tool$authMe);
92
93
  tool(tool$adminClientsListClients);
93
94
  tool(tool$adminClientsCreateClient);
94
95
  tool(tool$adminClientsGetClient);
95
96
  tool(tool$workspacesListWorkspaces);
97
+ tool(tool$workspacesCreateWorkspace);
96
98
  tool(tool$workspacesGetWorkspace);
97
99
  tool(tool$filesListFiles);
98
100
  tool(tool$filesCreateFile);
@@ -7,7 +7,7 @@ import { ClientCreate$zodSchema } from "../../models/clientcreate.js";
7
7
  import { formatResult, ToolDefinition } from "../tools.js";
8
8
 
9
9
  const args = {
10
- request: ClientCreate$zodSchema.optional(),
10
+ request: ClientCreate$zodSchema,
11
11
  };
12
12
 
13
13
  export const tool$adminClientsCreateClient: ToolDefinition<typeof args> = {
@@ -2,14 +2,14 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { authGetV1Me } from "../../funcs/authGetV1Me.js";
5
+ import { authMe } from "../../funcs/authMe.js";
6
6
  import { formatResult, ToolDefinition } from "../tools.js";
7
7
 
8
- export const tool$authGetV1Me: ToolDefinition = {
9
- name: "auth-get-v1-me",
8
+ export const tool$authMe: ToolDefinition = {
9
+ name: "auth-me",
10
10
  description: `Me`,
11
11
  tool: async (client, ctx) => {
12
- const [result, apiCall] = await authGetV1Me(
12
+ const [result, apiCall] = await authMe(
13
13
  client,
14
14
  { fetchOptions: { signal: ctx.signal } },
15
15
  ).$inspect();
@@ -2,14 +2,14 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { healthCheckGetV1 } from "../../funcs/healthCheckGetV1.js";
5
+ import { healthIndex } from "../../funcs/healthIndex.js";
6
6
  import { formatResult, ToolDefinition } from "../tools.js";
7
7
 
8
- export const tool$healthCheckGetV1: ToolDefinition = {
9
- name: "health-check-get-v1",
8
+ export const tool$healthIndex: ToolDefinition = {
9
+ name: "health-index",
10
10
  description: `Index`,
11
11
  tool: async (client, ctx) => {
12
- const [result, apiCall] = await healthCheckGetV1(
12
+ const [result, apiCall] = await healthIndex(
13
13
  client,
14
14
  { fetchOptions: { signal: ctx.signal } },
15
15
  ).$inspect();
@@ -2,14 +2,14 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { healthCheckGetV1Ping } from "../../funcs/healthCheckGetV1Ping.js";
5
+ import { healthPing } from "../../funcs/healthPing.js";
6
6
  import { formatResult, ToolDefinition } from "../tools.js";
7
7
 
8
- export const tool$healthCheckGetV1Ping: ToolDefinition = {
9
- name: "health-check-get-v1-ping",
8
+ export const tool$healthPing: ToolDefinition = {
9
+ name: "health-ping",
10
10
  description: `Ping Pong`,
11
11
  tool: async (client, ctx) => {
12
- const [result, apiCall] = await healthCheckGetV1Ping(
12
+ const [result, apiCall] = await healthPing(
13
13
  client,
14
14
  { fetchOptions: { signal: ctx.signal } },
15
15
  ).$inspect();
@@ -7,7 +7,7 @@ import { ListTasksRequest$zodSchema } from "../../models/listtasksop.js";
7
7
  import { formatResult, ToolDefinition } from "../tools.js";
8
8
 
9
9
  const args = {
10
- request: ListTasksRequest$zodSchema.optional(),
10
+ request: ListTasksRequest$zodSchema,
11
11
  };
12
12
 
13
13
  export const tool$tasksListTasks: ToolDefinition<typeof args> = {
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { workspacesCreateWorkspace } from "../../funcs/workspacesCreateWorkspace.js";
6
+ import { CreateWorkspaceRequest$zodSchema } from "../../models/createworkspaceop.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: CreateWorkspaceRequest$zodSchema,
11
+ };
12
+
13
+ export const tool$workspacesCreateWorkspace: ToolDefinition<typeof args> = {
14
+ name: "workspaces-create-workspace",
15
+ description: `Create a workspace
16
+
17
+ Creates a new workspace and returns the created workspace object.`,
18
+ args,
19
+ tool: async (client, args, ctx) => {
20
+ const [result, apiCall] = await workspacesCreateWorkspace(
21
+ client,
22
+ args.request,
23
+ { fetchOptions: { signal: ctx.signal } },
24
+ ).$inspect();
25
+
26
+ if (!result.ok) {
27
+ return {
28
+ content: [{ type: "text", text: result.error.message }],
29
+ isError: true,
30
+ };
31
+ }
32
+
33
+ const value = result.value;
34
+
35
+ return formatResult(value, apiCall);
36
+ },
37
+ };
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export const AuthErrorType$zodSchema = z.enum([
8
+ "auth_error",
9
+ ]);
10
+
11
+ export type AuthErrorType = z.infer<typeof AuthErrorType$zodSchema>;
12
+
13
+ export const AuthErrorCode$zodSchema = z.enum([
14
+ "unauthorized",
15
+ ]);
16
+
17
+ export type AuthErrorCode = z.infer<typeof AuthErrorCode$zodSchema>;
18
+
19
+ export type AuthError = {
20
+ status_code: number;
21
+ type: AuthErrorType;
22
+ code: AuthErrorCode;
23
+ message: string;
24
+ };
25
+
26
+ export const AuthError$zodSchema: z.ZodType<AuthError, z.ZodTypeDef, unknown> =
27
+ z.object({
28
+ code: AuthErrorCode$zodSchema,
29
+ message: z.string(),
30
+ status_code: z.number(),
31
+ type: AuthErrorType$zodSchema,
32
+ });
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export const BadRequestType$zodSchema = z.enum([
8
+ "bad_request",
9
+ ]);
10
+
11
+ export type BadRequestType = z.infer<typeof BadRequestType$zodSchema>;
12
+
13
+ export const BadRequestCode$zodSchema = z.enum([
14
+ "missing_client_id",
15
+ ]);
16
+
17
+ export type BadRequestCode = z.infer<typeof BadRequestCode$zodSchema>;
18
+
19
+ export type BadRequest = {
20
+ status_code: number;
21
+ type: BadRequestType;
22
+ code: BadRequestCode;
23
+ message: string;
24
+ };
25
+
26
+ export const BadRequest$zodSchema: z.ZodType<
27
+ BadRequest,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ code: BadRequestCode$zodSchema,
32
+ message: z.string(),
33
+ status_code: z.number(),
34
+ type: BadRequestType$zodSchema,
35
+ });
@@ -7,7 +7,7 @@ import * as z from "zod";
7
7
  /**
8
8
  * 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.
9
9
  */
10
- export const ClientType$zodSchema = z.enum([
10
+ export const ClientClientType$zodSchema = z.enum([
11
11
  "natural_person",
12
12
  "individual_enterprise",
13
13
  "legal_person",
@@ -15,13 +15,13 @@ export const ClientType$zodSchema = z.enum([
15
15
  "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.",
16
16
  );
17
17
 
18
- export type ClientType = z.infer<typeof ClientType$zodSchema>;
18
+ export type ClientClientType = z.infer<typeof ClientClientType$zodSchema>;
19
19
 
20
20
  export type Client = {
21
21
  id: string;
22
22
  name: string;
23
23
  slug: string;
24
- type: ClientType;
24
+ type: ClientClientType;
25
25
  customId: string | null;
26
26
  legalName: string | null;
27
27
  archivedAt: string | null;
@@ -32,14 +32,14 @@ export type Client = {
32
32
 
33
33
  export const Client$zodSchema: z.ZodType<Client, z.ZodTypeDef, unknown> = z
34
34
  .object({
35
- archivedAt: z.string().nullable(),
36
- createdAt: z.string(),
35
+ archivedAt: z.string().datetime({ offset: true }).nullable(),
36
+ createdAt: z.string().datetime({ offset: true }),
37
37
  customId: z.string().nullable(),
38
38
  datevClientId: z.string().nullable(),
39
39
  id: z.string(),
40
40
  legalName: z.string().nullable(),
41
41
  name: z.string(),
42
42
  slug: z.string(),
43
- type: ClientType$zodSchema,
44
- updatedAt: z.string(),
43
+ type: ClientClientType$zodSchema,
44
+ updatedAt: z.string().datetime({ offset: true }),
45
45
  });
@@ -7,7 +7,7 @@ import * as z from "zod";
7
7
  /**
8
8
  * 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.
9
9
  */
10
- export const ClientCreateType$zodSchema = z.enum([
10
+ export const ClientCreateClientType$zodSchema = z.enum([
11
11
  "natural_person",
12
12
  "individual_enterprise",
13
13
  "legal_person",
@@ -15,7 +15,9 @@ export const ClientCreateType$zodSchema = z.enum([
15
15
  "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.",
16
16
  );
17
17
 
18
- export type ClientCreateType = z.infer<typeof ClientCreateType$zodSchema>;
18
+ export type ClientCreateClientType = z.infer<
19
+ typeof ClientCreateClientType$zodSchema
20
+ >;
19
21
 
20
22
  /**
21
23
  * The address of the client
@@ -39,7 +41,7 @@ export const Address$zodSchema: z.ZodType<Address, z.ZodTypeDef, unknown> = z
39
41
 
40
42
  export type ClientCreate = {
41
43
  name: string;
42
- type: ClientCreateType;
44
+ type: ClientCreateClientType;
43
45
  customId?: string | undefined;
44
46
  address?: Address | undefined;
45
47
  };
@@ -52,5 +54,5 @@ export const ClientCreate$zodSchema: z.ZodType<
52
54
  address: z.lazy(() => Address$zodSchema).optional(),
53
55
  customId: z.string().optional(),
54
56
  name: z.string(),
55
- type: ClientCreateType$zodSchema,
57
+ type: ClientCreateClientType$zodSchema,
56
58
  });