vanta-auditor-api-sdk 0.2.0 → 0.4.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 (386) hide show
  1. package/FUNCTIONS.md +5 -22
  2. package/README.md +39 -58
  3. package/RUNTIMES.md +6 -6
  4. package/bin/mcp-server.js +1188 -1035
  5. package/bin/mcp-server.js.map +84 -73
  6. package/docs/sdks/auditors/README.md +8 -11
  7. package/docs/sdks/audits/README.md +76 -101
  8. package/examples/README.md +31 -0
  9. package/examples/auditsList.example.ts +26 -0
  10. package/examples/package-lock.json +627 -0
  11. package/examples/package.json +18 -0
  12. package/funcs/auditorsCreate.d.ts +3 -2
  13. package/funcs/auditorsCreate.d.ts.map +1 -1
  14. package/funcs/auditorsCreate.js +4 -2
  15. package/funcs/auditorsCreate.js.map +1 -1
  16. package/funcs/auditsCreateCommentForEvidence.d.ts +3 -2
  17. package/funcs/auditsCreateCommentForEvidence.d.ts.map +1 -1
  18. package/funcs/auditsCreateCommentForEvidence.js +4 -2
  19. package/funcs/auditsCreateCommentForEvidence.js.map +1 -1
  20. package/funcs/auditsCreateCustomControl.d.ts +3 -2
  21. package/funcs/auditsCreateCustomControl.d.ts.map +1 -1
  22. package/funcs/auditsCreateCustomControl.js +4 -2
  23. package/funcs/auditsCreateCustomControl.js.map +1 -1
  24. package/funcs/auditsCreateCustomEvidenceRequest.d.ts +3 -2
  25. package/funcs/auditsCreateCustomEvidenceRequest.d.ts.map +1 -1
  26. package/funcs/auditsCreateCustomEvidenceRequest.js +4 -2
  27. package/funcs/auditsCreateCustomEvidenceRequest.js.map +1 -1
  28. package/funcs/auditsGetEvidenceUrls.d.ts +3 -2
  29. package/funcs/auditsGetEvidenceUrls.d.ts.map +1 -1
  30. package/funcs/auditsGetEvidenceUrls.js +4 -2
  31. package/funcs/auditsGetEvidenceUrls.js.map +1 -1
  32. package/funcs/auditsList.d.ts +3 -2
  33. package/funcs/auditsList.d.ts.map +1 -1
  34. package/funcs/auditsList.js +5 -2
  35. package/funcs/auditsList.js.map +1 -1
  36. package/funcs/auditsListComments.d.ts +3 -2
  37. package/funcs/auditsListComments.d.ts.map +1 -1
  38. package/funcs/auditsListComments.js +4 -2
  39. package/funcs/auditsListComments.js.map +1 -1
  40. package/funcs/auditsListControls.d.ts +3 -2
  41. package/funcs/auditsListControls.d.ts.map +1 -1
  42. package/funcs/auditsListControls.js +4 -2
  43. package/funcs/auditsListControls.js.map +1 -1
  44. package/funcs/auditsListEvidence.d.ts +3 -2
  45. package/funcs/auditsListEvidence.d.ts.map +1 -1
  46. package/funcs/auditsListEvidence.js +4 -2
  47. package/funcs/auditsListEvidence.js.map +1 -1
  48. package/funcs/auditsUpdateEvidence.d.ts +3 -2
  49. package/funcs/auditsUpdateEvidence.d.ts.map +1 -1
  50. package/funcs/auditsUpdateEvidence.js +4 -2
  51. package/funcs/auditsUpdateEvidence.js.map +1 -1
  52. package/hooks/types.d.ts +2 -0
  53. package/hooks/types.d.ts.map +1 -1
  54. package/index.d.ts +2 -0
  55. package/index.d.ts.map +1 -1
  56. package/index.js +3 -1
  57. package/index.js.map +1 -1
  58. package/jsr.json +1 -1
  59. package/lib/base64.d.ts +1 -1
  60. package/lib/base64.d.ts.map +1 -1
  61. package/lib/base64.js +1 -1
  62. package/lib/base64.js.map +1 -1
  63. package/lib/config.d.ts +7 -3
  64. package/lib/config.d.ts.map +1 -1
  65. package/lib/config.js +3 -3
  66. package/lib/config.js.map +1 -1
  67. package/lib/encodings.d.ts.map +1 -1
  68. package/lib/env.d.ts +1 -1
  69. package/lib/env.d.ts.map +1 -1
  70. package/lib/env.js +19 -2
  71. package/lib/env.js.map +1 -1
  72. package/lib/files.d.ts +5 -0
  73. package/lib/files.d.ts.map +1 -1
  74. package/lib/files.js +41 -0
  75. package/lib/files.js.map +1 -1
  76. package/lib/matchers.d.ts +3 -10
  77. package/lib/matchers.d.ts.map +1 -1
  78. package/lib/matchers.js +33 -31
  79. package/lib/matchers.js.map +1 -1
  80. package/lib/schemas.d.ts +1 -1
  81. package/lib/schemas.d.ts.map +1 -1
  82. package/lib/schemas.js +2 -2
  83. package/lib/schemas.js.map +1 -1
  84. package/lib/sdks.d.ts +4 -1
  85. package/lib/sdks.d.ts.map +1 -1
  86. package/lib/sdks.js +9 -14
  87. package/lib/sdks.js.map +1 -1
  88. package/lib/security.d.ts +2 -2
  89. package/lib/security.d.ts.map +1 -1
  90. package/lib/security.js.map +1 -1
  91. package/lib/url.js +1 -1
  92. package/lib/url.js.map +1 -1
  93. package/mcp-server/cli/start/command.d.ts.map +1 -1
  94. package/mcp-server/cli/start/command.js +2 -15
  95. package/mcp-server/cli/start/command.js.map +1 -1
  96. package/mcp-server/cli/start/impl.d.ts +0 -2
  97. package/mcp-server/cli/start/impl.d.ts.map +1 -1
  98. package/mcp-server/cli/start/impl.js +2 -4
  99. package/mcp-server/cli/start/impl.js.map +1 -1
  100. package/mcp-server/extensions.d.ts +1 -1
  101. package/mcp-server/extensions.d.ts.map +1 -1
  102. package/mcp-server/mcp-server.js +1 -1
  103. package/mcp-server/prompts.d.ts +1 -1
  104. package/mcp-server/prompts.d.ts.map +1 -1
  105. package/mcp-server/server.js +1 -1
  106. package/mcp-server/shared.d.ts.map +1 -1
  107. package/mcp-server/shared.js +1 -1
  108. package/mcp-server/shared.js.map +1 -1
  109. package/mcp-server/tools.d.ts +1 -1
  110. package/mcp-server/tools.d.ts.map +1 -1
  111. package/models/components/addauditorinput.d.ts +1 -1
  112. package/models/components/addauditorinput.d.ts.map +1 -1
  113. package/models/components/addauditorinput.js +1 -1
  114. package/models/components/addauditorinput.js.map +1 -1
  115. package/models/components/addcommentinput.d.ts +1 -1
  116. package/models/components/addcommentinput.d.ts.map +1 -1
  117. package/models/components/addcommentinput.js +1 -1
  118. package/models/components/addcommentinput.js.map +1 -1
  119. package/models/components/audit.d.ts +6 -3
  120. package/models/components/audit.d.ts.map +1 -1
  121. package/models/components/audit.js +6 -3
  122. package/models/components/audit.js.map +1 -1
  123. package/models/components/auditevidencestate.d.ts +1 -1
  124. package/models/components/auditevidencestate.d.ts.map +1 -1
  125. package/models/components/auditevidencestate.js +1 -1
  126. package/models/components/auditevidencestate.js.map +1 -1
  127. package/models/components/auditevidencetype.d.ts +1 -1
  128. package/models/components/auditevidencetype.d.ts.map +1 -1
  129. package/models/components/auditevidencetype.js +1 -1
  130. package/models/components/auditevidencetype.js.map +1 -1
  131. package/models/components/auditevidenceupdateinput.d.ts +1 -1
  132. package/models/components/auditevidenceupdateinput.d.ts.map +1 -1
  133. package/models/components/auditevidenceupdateinput.js +1 -1
  134. package/models/components/auditevidenceupdateinput.js.map +1 -1
  135. package/models/components/auditfocus.d.ts +28 -0
  136. package/models/components/auditfocus.d.ts.map +1 -0
  137. package/models/components/auditfocus.js +61 -0
  138. package/models/components/auditfocus.js.map +1 -0
  139. package/models/components/auditor.d.ts +1 -1
  140. package/models/components/auditor.d.ts.map +1 -1
  141. package/models/components/auditor.js +1 -1
  142. package/models/components/auditor.js.map +1 -1
  143. package/models/components/auditorcontrol.d.ts +1 -1
  144. package/models/components/auditorcontrol.d.ts.map +1 -1
  145. package/models/components/auditorcontrol.js +1 -1
  146. package/models/components/auditorcontrol.js.map +1 -1
  147. package/models/components/auditorenabledstatetransition.d.ts +1 -1
  148. package/models/components/auditorenabledstatetransition.d.ts.map +1 -1
  149. package/models/components/auditorenabledstatetransition.js +1 -1
  150. package/models/components/auditorenabledstatetransition.js.map +1 -1
  151. package/models/components/comment.d.ts +1 -1
  152. package/models/components/comment.d.ts.map +1 -1
  153. package/models/components/comment.js +1 -1
  154. package/models/components/comment.js.map +1 -1
  155. package/models/components/control.d.ts +1 -1
  156. package/models/components/control.d.ts.map +1 -1
  157. package/models/components/control.js +1 -1
  158. package/models/components/control.js.map +1 -1
  159. package/models/components/controldomain.d.ts +1 -1
  160. package/models/components/controldomain.d.ts.map +1 -1
  161. package/models/components/controldomain.js +1 -1
  162. package/models/components/controldomain.js.map +1 -1
  163. package/models/components/controlsource.d.ts +1 -1
  164. package/models/components/controlsource.d.ts.map +1 -1
  165. package/models/components/controlsource.js +1 -1
  166. package/models/components/controlsource.js.map +1 -1
  167. package/models/components/createcustomcontrolinput.d.ts +1 -1
  168. package/models/components/createcustomcontrolinput.d.ts.map +1 -1
  169. package/models/components/createcustomcontrolinput.js +1 -1
  170. package/models/components/createcustomcontrolinput.js.map +1 -1
  171. package/models/components/createcustomevidencerequestinput.d.ts +1 -1
  172. package/models/components/createcustomevidencerequestinput.d.ts.map +1 -1
  173. package/models/components/createcustomevidencerequestinput.js +1 -1
  174. package/models/components/createcustomevidencerequestinput.js.map +1 -1
  175. package/models/components/customevidencerequest.d.ts +1 -1
  176. package/models/components/customevidencerequest.d.ts.map +1 -1
  177. package/models/components/customevidencerequest.js +1 -1
  178. package/models/components/customevidencerequest.js.map +1 -1
  179. package/models/components/customfield.d.ts +1 -1
  180. package/models/components/customfield.d.ts.map +1 -1
  181. package/models/components/customfield.js +1 -1
  182. package/models/components/customfield.js.map +1 -1
  183. package/models/components/evidence.d.ts +1 -1
  184. package/models/components/evidence.d.ts.map +1 -1
  185. package/models/components/evidence.js +1 -1
  186. package/models/components/evidence.js.map +1 -1
  187. package/models/components/evidencecontrol.d.ts +1 -1
  188. package/models/components/evidencecontrol.d.ts.map +1 -1
  189. package/models/components/evidencecontrol.js +1 -1
  190. package/models/components/evidencecontrol.js.map +1 -1
  191. package/models/components/evidenceurl.d.ts +1 -1
  192. package/models/components/evidenceurl.d.ts.map +1 -1
  193. package/models/components/evidenceurl.js +1 -1
  194. package/models/components/evidenceurl.js.map +1 -1
  195. package/models/components/frameworkid.d.ts +1 -1
  196. package/models/components/frameworkid.d.ts.map +1 -1
  197. package/models/components/frameworkid.js +1 -1
  198. package/models/components/frameworkid.js.map +1 -1
  199. package/models/components/frameworksection.d.ts +1 -1
  200. package/models/components/frameworksection.d.ts.map +1 -1
  201. package/models/components/frameworksection.js +1 -1
  202. package/models/components/frameworksection.js.map +1 -1
  203. package/models/components/index.d.ts +1 -0
  204. package/models/components/index.d.ts.map +1 -1
  205. package/models/components/index.js +1 -0
  206. package/models/components/index.js.map +1 -1
  207. package/models/components/pageinfo.d.ts +1 -1
  208. package/models/components/pageinfo.d.ts.map +1 -1
  209. package/models/components/pageinfo.js +1 -1
  210. package/models/components/pageinfo.js.map +1 -1
  211. package/models/components/paginatedresponseaudit.d.ts +1 -1
  212. package/models/components/paginatedresponseaudit.d.ts.map +1 -1
  213. package/models/components/paginatedresponseaudit.js +1 -1
  214. package/models/components/paginatedresponseaudit.js.map +1 -1
  215. package/models/components/paginatedresponseauditorcontrol.d.ts +1 -1
  216. package/models/components/paginatedresponseauditorcontrol.d.ts.map +1 -1
  217. package/models/components/paginatedresponseauditorcontrol.js +1 -1
  218. package/models/components/paginatedresponseauditorcontrol.js.map +1 -1
  219. package/models/components/paginatedresponsecomment.d.ts +1 -1
  220. package/models/components/paginatedresponsecomment.d.ts.map +1 -1
  221. package/models/components/paginatedresponsecomment.js +1 -1
  222. package/models/components/paginatedresponsecomment.js.map +1 -1
  223. package/models/components/paginatedresponseevidence.d.ts +1 -1
  224. package/models/components/paginatedresponseevidence.d.ts.map +1 -1
  225. package/models/components/paginatedresponseevidence.js +1 -1
  226. package/models/components/paginatedresponseevidence.js.map +1 -1
  227. package/models/components/paginatedresponseevidenceurl.d.ts +1 -1
  228. package/models/components/paginatedresponseevidenceurl.d.ts.map +1 -1
  229. package/models/components/paginatedresponseevidenceurl.js +1 -1
  230. package/models/components/paginatedresponseevidenceurl.js.map +1 -1
  231. package/models/components/recurrenceduration.d.ts +1 -1
  232. package/models/components/recurrenceduration.d.ts.map +1 -1
  233. package/models/components/recurrenceduration.js +1 -1
  234. package/models/components/recurrenceduration.js.map +1 -1
  235. package/models/components/section.d.ts +1 -1
  236. package/models/components/section.d.ts.map +1 -1
  237. package/models/components/section.js +1 -1
  238. package/models/components/section.js.map +1 -1
  239. package/models/components/security.d.ts +1 -1
  240. package/models/components/security.d.ts.map +1 -1
  241. package/models/components/security.js +1 -1
  242. package/models/components/security.js.map +1 -1
  243. package/models/errors/apierror.d.ts +8 -6
  244. package/models/errors/apierror.d.ts.map +1 -1
  245. package/models/errors/apierror.js +23 -10
  246. package/models/errors/apierror.js.map +1 -1
  247. package/models/errors/index.d.ts +2 -0
  248. package/models/errors/index.d.ts.map +1 -1
  249. package/models/errors/index.js +2 -0
  250. package/models/errors/index.js.map +1 -1
  251. package/models/errors/responsevalidationerror.d.ts +26 -0
  252. package/models/errors/responsevalidationerror.d.ts.map +1 -0
  253. package/models/errors/responsevalidationerror.js +66 -0
  254. package/models/errors/responsevalidationerror.js.map +1 -0
  255. package/models/errors/sdkvalidationerror.d.ts +2 -1
  256. package/models/errors/sdkvalidationerror.d.ts.map +1 -1
  257. package/models/errors/sdkvalidationerror.js +15 -1
  258. package/models/errors/sdkvalidationerror.js.map +1 -1
  259. package/models/errors/vantaerror.d.ts +19 -0
  260. package/models/errors/vantaerror.d.ts.map +1 -0
  261. package/models/errors/vantaerror.js +20 -0
  262. package/models/errors/vantaerror.js.map +1 -0
  263. package/models/operations/createcommentforauditevidence.d.ts +1 -1
  264. package/models/operations/createcommentforauditevidence.d.ts.map +1 -1
  265. package/models/operations/createcommentforauditevidence.js +1 -1
  266. package/models/operations/createcommentforauditevidence.js.map +1 -1
  267. package/models/operations/createcustomcontrol.d.ts +1 -1
  268. package/models/operations/createcustomcontrol.d.ts.map +1 -1
  269. package/models/operations/createcustomcontrol.js +1 -1
  270. package/models/operations/createcustomcontrol.js.map +1 -1
  271. package/models/operations/createcustomevidencerequest.d.ts +1 -1
  272. package/models/operations/createcustomevidencerequest.d.ts.map +1 -1
  273. package/models/operations/createcustomevidencerequest.js +1 -1
  274. package/models/operations/createcustomevidencerequest.js.map +1 -1
  275. package/models/operations/listauditcomments.d.ts +1 -1
  276. package/models/operations/listauditcomments.d.ts.map +1 -1
  277. package/models/operations/listauditcomments.js +1 -1
  278. package/models/operations/listauditcomments.js.map +1 -1
  279. package/models/operations/listauditcontrols.d.ts +1 -1
  280. package/models/operations/listauditcontrols.d.ts.map +1 -1
  281. package/models/operations/listauditcontrols.js +1 -1
  282. package/models/operations/listauditcontrols.js.map +1 -1
  283. package/models/operations/listauditevidence.d.ts +1 -1
  284. package/models/operations/listauditevidence.d.ts.map +1 -1
  285. package/models/operations/listauditevidence.js +1 -1
  286. package/models/operations/listauditevidence.js.map +1 -1
  287. package/models/operations/listauditevidenceurls.d.ts +1 -1
  288. package/models/operations/listauditevidenceurls.d.ts.map +1 -1
  289. package/models/operations/listauditevidenceurls.js +1 -1
  290. package/models/operations/listauditevidenceurls.js.map +1 -1
  291. package/models/operations/listaudits.d.ts +6 -1
  292. package/models/operations/listaudits.d.ts.map +1 -1
  293. package/models/operations/listaudits.js +3 -1
  294. package/models/operations/listaudits.js.map +1 -1
  295. package/models/operations/updateauditevidence.d.ts +1 -1
  296. package/models/operations/updateauditevidence.d.ts.map +1 -1
  297. package/models/operations/updateauditevidence.js +1 -1
  298. package/models/operations/updateauditevidence.js.map +1 -1
  299. package/package.json +8 -10
  300. package/src/funcs/auditorsCreate.ts +24 -18
  301. package/src/funcs/auditsCreateCommentForEvidence.ts +24 -18
  302. package/src/funcs/auditsCreateCustomControl.ts +24 -18
  303. package/src/funcs/auditsCreateCustomEvidenceRequest.ts +24 -18
  304. package/src/funcs/auditsGetEvidenceUrls.ts +24 -18
  305. package/src/funcs/auditsList.ts +25 -18
  306. package/src/funcs/auditsListComments.ts +24 -18
  307. package/src/funcs/auditsListControls.ts +24 -18
  308. package/src/funcs/auditsListEvidence.ts +24 -18
  309. package/src/funcs/auditsUpdateEvidence.ts +24 -18
  310. package/src/hooks/types.ts +2 -0
  311. package/src/index.ts +2 -0
  312. package/src/lib/base64.ts +1 -1
  313. package/src/lib/config.ts +7 -3
  314. package/src/lib/env.ts +21 -5
  315. package/src/lib/files.ts +42 -0
  316. package/src/lib/matchers.ts +44 -41
  317. package/src/lib/schemas.ts +1 -1
  318. package/src/lib/sdks.ts +21 -15
  319. package/src/lib/security.ts +6 -3
  320. package/src/lib/url.ts +1 -1
  321. package/src/mcp-server/cli/start/command.ts +2 -16
  322. package/src/mcp-server/cli/start/impl.ts +2 -6
  323. package/src/mcp-server/extensions.ts +1 -1
  324. package/src/mcp-server/mcp-server.ts +1 -1
  325. package/src/mcp-server/prompts.ts +1 -1
  326. package/src/mcp-server/server.ts +1 -1
  327. package/src/mcp-server/shared.ts +1 -2
  328. package/src/mcp-server/tools.ts +1 -1
  329. package/src/models/components/addauditorinput.ts +1 -1
  330. package/src/models/components/addcommentinput.ts +1 -1
  331. package/src/models/components/audit.ts +14 -5
  332. package/src/models/components/auditevidencestate.ts +1 -1
  333. package/src/models/components/auditevidencetype.ts +1 -1
  334. package/src/models/components/auditevidenceupdateinput.ts +1 -1
  335. package/src/models/components/auditfocus.ts +31 -0
  336. package/src/models/components/auditor.ts +1 -1
  337. package/src/models/components/auditorcontrol.ts +1 -1
  338. package/src/models/components/auditorenabledstatetransition.ts +1 -1
  339. package/src/models/components/comment.ts +1 -1
  340. package/src/models/components/control.ts +1 -1
  341. package/src/models/components/controldomain.ts +1 -1
  342. package/src/models/components/controlsource.ts +1 -1
  343. package/src/models/components/createcustomcontrolinput.ts +1 -1
  344. package/src/models/components/createcustomevidencerequestinput.ts +1 -1
  345. package/src/models/components/customevidencerequest.ts +1 -1
  346. package/src/models/components/customfield.ts +1 -1
  347. package/src/models/components/evidence.ts +1 -1
  348. package/src/models/components/evidencecontrol.ts +1 -1
  349. package/src/models/components/evidenceurl.ts +1 -1
  350. package/src/models/components/frameworkid.ts +1 -1
  351. package/src/models/components/frameworksection.ts +1 -1
  352. package/src/models/components/index.ts +1 -0
  353. package/src/models/components/pageinfo.ts +1 -1
  354. package/src/models/components/paginatedresponseaudit.ts +1 -1
  355. package/src/models/components/paginatedresponseauditorcontrol.ts +1 -1
  356. package/src/models/components/paginatedresponsecomment.ts +1 -1
  357. package/src/models/components/paginatedresponseevidence.ts +1 -1
  358. package/src/models/components/paginatedresponseevidenceurl.ts +1 -1
  359. package/src/models/components/recurrenceduration.ts +1 -1
  360. package/src/models/components/section.ts +1 -1
  361. package/src/models/components/security.ts +1 -1
  362. package/src/models/errors/apierror.ts +29 -16
  363. package/src/models/errors/index.ts +2 -0
  364. package/src/models/errors/responsevalidationerror.ts +50 -0
  365. package/src/models/errors/sdkvalidationerror.ts +13 -1
  366. package/src/models/errors/vantaerror.ts +35 -0
  367. package/src/models/operations/createcommentforauditevidence.ts +1 -1
  368. package/src/models/operations/createcustomcontrol.ts +1 -1
  369. package/src/models/operations/createcustomevidencerequest.ts +1 -1
  370. package/src/models/operations/listauditcomments.ts +1 -1
  371. package/src/models/operations/listauditcontrols.ts +1 -1
  372. package/src/models/operations/listauditevidence.ts +1 -1
  373. package/src/models/operations/listauditevidenceurls.ts +1 -1
  374. package/src/models/operations/listaudits.ts +8 -1
  375. package/src/models/operations/updateauditevidence.ts +1 -1
  376. package/src/types/blobs.ts +7 -6
  377. package/src/types/constdatetime.ts +2 -2
  378. package/types/blobs.d.ts +1 -1
  379. package/types/blobs.d.ts.map +1 -1
  380. package/types/blobs.js +1 -1
  381. package/types/blobs.js.map +1 -1
  382. package/types/constdatetime.d.ts +1 -1
  383. package/types/constdatetime.d.ts.map +1 -1
  384. package/types/constdatetime.js +2 -2
  385. package/types/constdatetime.js.map +1 -1
  386. package/docs/sdks/vanta/README.md +0 -7
package/src/lib/sdks.ts CHANGED
@@ -47,12 +47,14 @@ export type RequestOptions = {
47
47
  */
48
48
  serverURL?: string | URL;
49
49
  /**
50
+ * @deprecated `fetchOptions` has been flattened into `RequestOptions`.
51
+ *
50
52
  * Sets various request options on the `fetch` call made by an SDK method.
51
53
  *
52
54
  * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options|Request}
53
55
  */
54
56
  fetchOptions?: Omit<RequestInit, "method" | "body">;
55
- };
57
+ } & Omit<RequestInit, "method" | "body">;
56
58
 
57
59
  type RequestConfig = {
58
60
  method: string;
@@ -63,6 +65,7 @@ type RequestConfig = {
63
65
  headers?: HeadersInit;
64
66
  security?: SecurityState | null;
65
67
  uaHeader?: string;
68
+ userAgent?: string | undefined;
66
69
  timeoutMs?: number;
67
70
  };
68
71
 
@@ -94,19 +97,21 @@ export class ClientSDK {
94
97
  } else {
95
98
  this.#hooks = new SDKHooks();
96
99
  }
97
- this._options = { ...options, hooks: this.#hooks };
98
-
99
100
  const url = serverURLFromOptions(options);
100
101
  if (url) {
101
102
  url.pathname = url.pathname.replace(/\/+$/, "") + "/";
102
103
  }
104
+
103
105
  const { baseURL, client } = this.#hooks.sdkInit({
104
106
  baseURL: url,
105
107
  client: options.httpClient || new HTTPClient(),
106
108
  });
107
109
  this._baseURL = baseURL;
108
110
  this.#httpClient = client;
109
- this.#logger = options.debugLogger;
111
+
112
+ this._options = { ...options, hooks: this.#hooks };
113
+
114
+ this.#logger = this._options.debugLogger;
110
115
  if (!this.#logger && env().VANTA_DEBUG) {
111
116
  this.#logger = console;
112
117
  }
@@ -172,7 +177,9 @@ export class ClientSDK {
172
177
  cookie = cookie.startsWith("; ") ? cookie.slice(2) : cookie;
173
178
  headers.set("cookie", cookie);
174
179
 
175
- const userHeaders = new Headers(options?.fetchOptions?.headers);
180
+ const userHeaders = new Headers(
181
+ options?.headers ?? options?.fetchOptions?.headers,
182
+ );
176
183
  for (const [k, v] of userHeaders) {
177
184
  headers.set(k, v);
178
185
  }
@@ -180,23 +187,22 @@ export class ClientSDK {
180
187
  // Only set user agent header in non-browser-like environments since CORS
181
188
  // policy disallows setting it in browsers e.g. Chrome throws an error.
182
189
  if (!isBrowserLike) {
183
- headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
190
+ headers.set(
191
+ conf.uaHeader ?? "user-agent",
192
+ conf.userAgent ?? SDK_METADATA.userAgent,
193
+ );
184
194
  }
185
195
 
186
- let fetchOptions = options?.fetchOptions;
196
+ const fetchOptions: Omit<RequestInit, "method" | "body"> = {
197
+ ...options?.fetchOptions,
198
+ ...options,
199
+ };
187
200
  if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
188
201
  const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
189
- if (!fetchOptions) {
190
- fetchOptions = { signal: timeoutSignal };
191
- } else {
192
- fetchOptions.signal = timeoutSignal;
193
- }
202
+ fetchOptions.signal = timeoutSignal;
194
203
  }
195
204
 
196
205
  if (conf.body instanceof ReadableStream) {
197
- if (!fetchOptions) {
198
- fetchOptions = {};
199
- }
200
206
  Object.assign(fetchOptions, { duplex: "half" });
201
207
  }
202
208
 
@@ -7,8 +7,8 @@ import { env } from "./env.js";
7
7
 
8
8
  type OAuth2PasswordFlow = {
9
9
  username: string;
10
- password?: string | undefined;
11
- clientID: string;
10
+ password: string;
11
+ clientID?: string | undefined;
12
12
  clientSecret?: string | undefined;
13
13
  tokenURL: string;
14
14
  };
@@ -84,7 +84,10 @@ type SecurityInputOAuth2 = {
84
84
  type SecurityInputOAuth2ClientCredentials = {
85
85
  type: "oauth2:client_credentials";
86
86
  value:
87
- | { clientID?: string | undefined; clientSecret?: string | undefined }
87
+ | {
88
+ clientID?: string | undefined;
89
+ clientSecret?: string | undefined;
90
+ }
88
91
  | null
89
92
  | string
90
93
  | undefined;
package/src/lib/url.ts CHANGED
@@ -10,7 +10,7 @@ export function pathToFunc(
10
10
  pathPattern: string,
11
11
  options?: { charEncoding?: "percent" | "none" },
12
12
  ): (params?: Params) => string {
13
- const paramRE = /\{([a-zA-Z0-9_]+?)\}/g;
13
+ const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
14
14
 
15
15
  return function buildURLPath(params: Record<string, unknown> = {}): string {
16
16
  return pathPattern.replace(paramRE, function (_, placeholder) {
@@ -2,11 +2,9 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { buildCommand } from "@stricli/core";
6
- import { numberParser } from "@stricli/core";
7
- import * as z from "zod";
5
+ import { buildCommand, numberParser } from "@stricli/core";
6
+ import * as z from "zod/v3";
8
7
  import { consoleLoggerLevels } from "../../console-logger.js";
9
- import { mcpScopes } from "../../scopes.js";
10
8
 
11
9
  export const startCommand = buildCommand({
12
10
  loader: async () => {
@@ -37,18 +35,6 @@ export const startCommand = buildCommand({
37
35
  return z.string().parse(value);
38
36
  },
39
37
  },
40
- ...(mcpScopes.length
41
- ? {
42
- scope: {
43
- kind: "enum",
44
- brief:
45
- "Mount tools/resources that match given scope (repeatable flag)",
46
- values: mcpScopes,
47
- variadic: true,
48
- optional: true,
49
- },
50
- }
51
- : {}),
52
38
  "bearer-auth": {
53
39
  kind: "parsed",
54
40
  brief: "Sets the bearerAuth auth field for the API",
@@ -11,14 +11,12 @@ import {
11
11
  ConsoleLoggerLevel,
12
12
  createConsoleLogger,
13
13
  } from "../../console-logger.js";
14
- import { MCPScope } from "../../scopes.js";
15
14
  import { createMCPServer } from "../../server.js";
16
15
 
17
16
  interface StartCommandFlags {
18
17
  readonly transport: "stdio" | "sse";
19
18
  readonly port: number;
20
19
  readonly tool?: string[];
21
- readonly scope?: MCPScope[];
22
20
  readonly "bearer-auth"?: string | undefined;
23
21
  readonly "server-url"?: string;
24
22
  readonly "server-index"?: SDKOptions["serverIdx"];
@@ -49,8 +47,7 @@ async function startStdio(flags: StartCommandFlags) {
49
47
  const server = createMCPServer({
50
48
  logger,
51
49
  allowedTools: flags.tool,
52
- scopes: flags.scope,
53
- ...{ bearerAuth: flags["bearer-auth"] },
50
+ ...{ bearerAuth: flags["bearer-auth"] ?? "" },
54
51
  serverURL: flags["server-url"],
55
52
  serverIdx: flags["server-index"],
56
53
  });
@@ -70,8 +67,7 @@ async function startSSE(flags: StartCommandFlags) {
70
67
  const mcpServer = createMCPServer({
71
68
  logger,
72
69
  allowedTools: flags.tool,
73
- scopes: flags.scope,
74
- ...{ bearerAuth: flags["bearer-auth"] },
70
+ ...{ bearerAuth: flags["bearer-auth"] ?? "" },
75
71
  serverURL: flags["server-url"],
76
72
  serverIdx: flags["server-index"],
77
73
  });
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { ZodRawShape } from "zod";
5
+ import { ZodRawShape } from "zod/v3";
6
6
  import { PromptArgsRawShape, PromptDefinition } from "./prompts.js";
7
7
  import { ResourceDefinition, ResourceTemplateDefinition } from "./resources.js";
8
8
  import { ToolDefinition } from "./tools.js";
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.2.0",
22
+ currentVersion: "0.4.0",
23
23
  },
24
24
  });
25
25
 
@@ -11,7 +11,7 @@ import {
11
11
  ZodType,
12
12
  ZodTypeAny,
13
13
  ZodTypeDef,
14
- } from "zod";
14
+ } from "zod/v3";
15
15
  import { VantaCore } from "../core.js";
16
16
  import { ConsoleLogger } from "./console-logger.js";
17
17
  import { MCPScope } from "./scopes.js";
@@ -34,7 +34,7 @@ export function createMCPServer(deps: {
34
34
  }) {
35
35
  const server = new McpServer({
36
36
  name: "Vanta",
37
- version: "0.2.0",
37
+ version: "0.4.0",
38
38
  });
39
39
 
40
40
  const client = new VantaCore({
@@ -2,9 +2,8 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { bytesToBase64 } from "../lib/base64.js";
7
-
8
7
  type BinaryData =
9
8
  | Uint8Array
10
9
  | ArrayBuffer
@@ -5,7 +5,7 @@
5
5
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
6
6
  import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js";
7
7
  import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
8
- import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod";
8
+ import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod/v3";
9
9
  import { VantaCore } from "../core.js";
10
10
  import { ConsoleLogger } from "./console-logger.js";
11
11
  import { MCPScope } from "./scopes.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,10 +2,15 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ AuditFocus,
11
+ AuditFocus$inboundSchema,
12
+ AuditFocus$outboundSchema,
13
+ } from "./auditfocus.js";
9
14
 
10
15
  export type Audit = {
11
16
  /**
@@ -35,7 +40,7 @@ export type Audit = {
35
40
  /**
36
41
  * Timestamp at which auditors gain access to the audit. Occurs before the audit window begins
37
42
  */
38
- earlyAccessStartsDate: Date | null;
43
+ earlyAccessStartsAt: Date | null;
39
44
  /**
40
45
  * The name of the framework for the audit
41
46
  */
@@ -64,6 +69,7 @@ export type Audit = {
64
69
  * Timestamp when the audit was marked completed, and report was uploaded
65
70
  */
66
71
  completionDate: Date | null;
72
+ auditFocus: AuditFocus;
67
73
  };
68
74
 
69
75
  /** @internal */
@@ -79,7 +85,7 @@ export const Audit$inboundSchema: z.ZodType<Audit, z.ZodTypeDef, unknown> = z
79
85
  auditEndDate: z.string().datetime({ offset: true }).transform(v =>
80
86
  new Date(v)
81
87
  ),
82
- earlyAccessStartsDate: z.nullable(
88
+ earlyAccessStartsAt: z.nullable(
83
89
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
84
90
  ),
85
91
  framework: z.string(),
@@ -97,6 +103,7 @@ export const Audit$inboundSchema: z.ZodType<Audit, z.ZodTypeDef, unknown> = z
97
103
  completionDate: z.nullable(
98
104
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
99
105
  ),
106
+ auditFocus: AuditFocus$inboundSchema,
100
107
  });
101
108
 
102
109
  /** @internal */
@@ -107,7 +114,7 @@ export type Audit$Outbound = {
107
114
  customerOrganizationId: string;
108
115
  auditStartDate: string;
109
116
  auditEndDate: string;
110
- earlyAccessStartsDate: string | null;
117
+ earlyAccessStartsAt: string | null;
111
118
  framework: string;
112
119
  allowAuditorEmails: Array<string>;
113
120
  allowAllAuditors: boolean;
@@ -115,6 +122,7 @@ export type Audit$Outbound = {
115
122
  creationDate: string;
116
123
  modificationDate: string | null;
117
124
  completionDate: string | null;
125
+ auditFocus: string;
118
126
  };
119
127
 
120
128
  /** @internal */
@@ -129,7 +137,7 @@ export const Audit$outboundSchema: z.ZodType<
129
137
  customerOrganizationId: z.string(),
130
138
  auditStartDate: z.date().transform(v => v.toISOString()),
131
139
  auditEndDate: z.date().transform(v => v.toISOString()),
132
- earlyAccessStartsDate: z.nullable(z.date().transform(v => v.toISOString())),
140
+ earlyAccessStartsAt: z.nullable(z.date().transform(v => v.toISOString())),
133
141
  framework: z.string(),
134
142
  allowAuditorEmails: z.array(z.string()),
135
143
  allowAllAuditors: z.boolean(),
@@ -137,6 +145,7 @@ export const Audit$outboundSchema: z.ZodType<
137
145
  creationDate: z.date().transform(v => v.toISOString()),
138
146
  modificationDate: z.nullable(z.date().transform(v => v.toISOString())),
139
147
  completionDate: z.nullable(z.date().transform(v => v.toISOString())),
148
+ auditFocus: AuditFocus$outboundSchema,
140
149
  });
141
150
 
142
151
  /**
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const AuditEvidenceState = {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const AuditEvidenceType = {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const AuditFocus = {
9
+ External: "EXTERNAL",
10
+ Internal: "INTERNAL",
11
+ } as const;
12
+ export type AuditFocus = ClosedEnum<typeof AuditFocus>;
13
+
14
+ /** @internal */
15
+ export const AuditFocus$inboundSchema: z.ZodNativeEnum<typeof AuditFocus> = z
16
+ .nativeEnum(AuditFocus);
17
+
18
+ /** @internal */
19
+ export const AuditFocus$outboundSchema: z.ZodNativeEnum<typeof AuditFocus> =
20
+ AuditFocus$inboundSchema;
21
+
22
+ /**
23
+ * @internal
24
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
+ */
26
+ export namespace AuditFocus$ {
27
+ /** @deprecated use `AuditFocus$inboundSchema` instead. */
28
+ export const inboundSchema = AuditFocus$inboundSchema;
29
+ /** @deprecated use `AuditFocus$outboundSchema` instead. */
30
+ export const outboundSchema = AuditFocus$outboundSchema;
31
+ }
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const AuditorEnabledStateTransition = {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const ControlDomain = {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const ControlSource = {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { ClosedEnum } from "../../types/enums.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const FrameworkId = {
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -8,6 +8,7 @@ export * from "./audit.js";
8
8
  export * from "./auditevidencestate.js";
9
9
  export * from "./auditevidencetype.js";
10
10
  export * from "./auditevidenceupdateinput.js";
11
+ export * from "./auditfocus.js";
11
12
  export * from "./auditor.js";
12
13
  export * from "./auditorcontrol.js";
13
14
  export * from "./auditorenabledstatetransition.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -2,7 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as z from "zod";
5
+ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";