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
@@ -11,7 +11,6 @@ import { RequestOptions } from "../lib/sdks.js";
11
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
12
  import { pathToFunc } from "../lib/url.js";
13
13
  import * as components from "../models/components/index.js";
14
- import { APIError } from "../models/errors/apierror.js";
15
14
  import {
16
15
  ConnectionError,
17
16
  InvalidRequestError,
@@ -19,7 +18,9 @@ import {
19
18
  RequestTimeoutError,
20
19
  UnexpectedClientError,
21
20
  } from "../models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import { VantaError } from "../models/errors/vantaerror.js";
23
24
  import * as operations from "../models/operations/index.js";
24
25
  import { APICall, APIPromise } from "../types/async.js";
25
26
  import { Result } from "../types/fp.js";
@@ -37,13 +38,14 @@ export function auditsCreateCommentForEvidence(
37
38
  ): APIPromise<
38
39
  Result<
39
40
  components.Comment,
40
- | APIError
41
- | SDKValidationError
42
- | UnexpectedClientError
43
- | InvalidRequestError
41
+ | VantaError
42
+ | ResponseValidationError
43
+ | ConnectionError
44
44
  | RequestAbortedError
45
45
  | RequestTimeoutError
46
- | ConnectionError
46
+ | InvalidRequestError
47
+ | UnexpectedClientError
48
+ | SDKValidationError
47
49
  >
48
50
  > {
49
51
  return new APIPromise($do(
@@ -61,13 +63,14 @@ async function $do(
61
63
  [
62
64
  Result<
63
65
  components.Comment,
64
- | APIError
65
- | SDKValidationError
66
- | UnexpectedClientError
67
- | InvalidRequestError
66
+ | VantaError
67
+ | ResponseValidationError
68
+ | ConnectionError
68
69
  | RequestAbortedError
69
70
  | RequestTimeoutError
70
- | ConnectionError
71
+ | InvalidRequestError
72
+ | UnexpectedClientError
73
+ | SDKValidationError
71
74
  >,
72
75
  APICall,
73
76
  ]
@@ -111,9 +114,10 @@ async function $do(
111
114
  const requestSecurity = resolveGlobalSecurity(securityInput);
112
115
 
113
116
  const context = {
117
+ options: client._options,
114
118
  baseURL: options?.serverURL ?? client._baseURL ?? "",
115
119
  operationID: "CreateCommentForAuditEvidence",
116
- oAuth2Scopes: [],
120
+ oAuth2Scopes: null,
117
121
 
118
122
  resolvedSecurity: requestSecurity,
119
123
 
@@ -131,6 +135,7 @@ async function $do(
131
135
  path: path,
132
136
  headers: headers,
133
137
  body: body,
138
+ userAgent: client._options.userAgent,
134
139
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
135
140
  }, options);
136
141
  if (!requestRes.ok) {
@@ -151,18 +156,19 @@ async function $do(
151
156
 
152
157
  const [result] = await M.match<
153
158
  components.Comment,
154
- | APIError
155
- | SDKValidationError
156
- | UnexpectedClientError
157
- | InvalidRequestError
159
+ | VantaError
160
+ | ResponseValidationError
161
+ | ConnectionError
158
162
  | RequestAbortedError
159
163
  | RequestTimeoutError
160
- | ConnectionError
164
+ | InvalidRequestError
165
+ | UnexpectedClientError
166
+ | SDKValidationError
161
167
  >(
162
168
  M.json(200, components.Comment$inboundSchema),
163
169
  M.fail("4XX"),
164
170
  M.fail("5XX"),
165
- )(response);
171
+ )(response, req);
166
172
  if (!result.ok) {
167
173
  return [result, { status: "complete", request: req, response }];
168
174
  }
@@ -11,7 +11,6 @@ import { RequestOptions } from "../lib/sdks.js";
11
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
12
  import { pathToFunc } from "../lib/url.js";
13
13
  import * as components from "../models/components/index.js";
14
- import { APIError } from "../models/errors/apierror.js";
15
14
  import {
16
15
  ConnectionError,
17
16
  InvalidRequestError,
@@ -19,7 +18,9 @@ import {
19
18
  RequestTimeoutError,
20
19
  UnexpectedClientError,
21
20
  } from "../models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import { VantaError } from "../models/errors/vantaerror.js";
23
24
  import * as operations from "../models/operations/index.js";
24
25
  import { APICall, APIPromise } from "../types/async.js";
25
26
  import { Result } from "../types/fp.js";
@@ -37,13 +38,14 @@ export function auditsCreateCustomControl(
37
38
  ): APIPromise<
38
39
  Result<
39
40
  components.Control,
40
- | APIError
41
- | SDKValidationError
42
- | UnexpectedClientError
43
- | InvalidRequestError
41
+ | VantaError
42
+ | ResponseValidationError
43
+ | ConnectionError
44
44
  | RequestAbortedError
45
45
  | RequestTimeoutError
46
- | ConnectionError
46
+ | InvalidRequestError
47
+ | UnexpectedClientError
48
+ | SDKValidationError
47
49
  >
48
50
  > {
49
51
  return new APIPromise($do(
@@ -61,13 +63,14 @@ async function $do(
61
63
  [
62
64
  Result<
63
65
  components.Control,
64
- | APIError
65
- | SDKValidationError
66
- | UnexpectedClientError
67
- | InvalidRequestError
66
+ | VantaError
67
+ | ResponseValidationError
68
+ | ConnectionError
68
69
  | RequestAbortedError
69
70
  | RequestTimeoutError
70
- | ConnectionError
71
+ | InvalidRequestError
72
+ | UnexpectedClientError
73
+ | SDKValidationError
71
74
  >,
72
75
  APICall,
73
76
  ]
@@ -107,9 +110,10 @@ async function $do(
107
110
  const requestSecurity = resolveGlobalSecurity(securityInput);
108
111
 
109
112
  const context = {
113
+ options: client._options,
110
114
  baseURL: options?.serverURL ?? client._baseURL ?? "",
111
115
  operationID: "CreateCustomControl",
112
- oAuth2Scopes: [],
116
+ oAuth2Scopes: null,
113
117
 
114
118
  resolvedSecurity: requestSecurity,
115
119
 
@@ -127,6 +131,7 @@ async function $do(
127
131
  path: path,
128
132
  headers: headers,
129
133
  body: body,
134
+ userAgent: client._options.userAgent,
130
135
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
131
136
  }, options);
132
137
  if (!requestRes.ok) {
@@ -147,18 +152,19 @@ async function $do(
147
152
 
148
153
  const [result] = await M.match<
149
154
  components.Control,
150
- | APIError
151
- | SDKValidationError
152
- | UnexpectedClientError
153
- | InvalidRequestError
155
+ | VantaError
156
+ | ResponseValidationError
157
+ | ConnectionError
154
158
  | RequestAbortedError
155
159
  | RequestTimeoutError
156
- | ConnectionError
160
+ | InvalidRequestError
161
+ | UnexpectedClientError
162
+ | SDKValidationError
157
163
  >(
158
164
  M.json(201, components.Control$inboundSchema),
159
165
  M.fail("4XX"),
160
166
  M.fail("5XX"),
161
- )(response);
167
+ )(response, req);
162
168
  if (!result.ok) {
163
169
  return [result, { status: "complete", request: req, response }];
164
170
  }
@@ -11,7 +11,6 @@ import { RequestOptions } from "../lib/sdks.js";
11
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
12
  import { pathToFunc } from "../lib/url.js";
13
13
  import * as components from "../models/components/index.js";
14
- import { APIError } from "../models/errors/apierror.js";
15
14
  import {
16
15
  ConnectionError,
17
16
  InvalidRequestError,
@@ -19,7 +18,9 @@ import {
19
18
  RequestTimeoutError,
20
19
  UnexpectedClientError,
21
20
  } from "../models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import { VantaError } from "../models/errors/vantaerror.js";
23
24
  import * as operations from "../models/operations/index.js";
24
25
  import { APICall, APIPromise } from "../types/async.js";
25
26
  import { Result } from "../types/fp.js";
@@ -37,13 +38,14 @@ export function auditsCreateCustomEvidenceRequest(
37
38
  ): APIPromise<
38
39
  Result<
39
40
  components.CustomEvidenceRequest,
40
- | APIError
41
- | SDKValidationError
42
- | UnexpectedClientError
43
- | InvalidRequestError
41
+ | VantaError
42
+ | ResponseValidationError
43
+ | ConnectionError
44
44
  | RequestAbortedError
45
45
  | RequestTimeoutError
46
- | ConnectionError
46
+ | InvalidRequestError
47
+ | UnexpectedClientError
48
+ | SDKValidationError
47
49
  >
48
50
  > {
49
51
  return new APIPromise($do(
@@ -61,13 +63,14 @@ async function $do(
61
63
  [
62
64
  Result<
63
65
  components.CustomEvidenceRequest,
64
- | APIError
65
- | SDKValidationError
66
- | UnexpectedClientError
67
- | InvalidRequestError
66
+ | VantaError
67
+ | ResponseValidationError
68
+ | ConnectionError
68
69
  | RequestAbortedError
69
70
  | RequestTimeoutError
70
- | ConnectionError
71
+ | InvalidRequestError
72
+ | UnexpectedClientError
73
+ | SDKValidationError
71
74
  >,
72
75
  APICall,
73
76
  ]
@@ -107,9 +110,10 @@ async function $do(
107
110
  const requestSecurity = resolveGlobalSecurity(securityInput);
108
111
 
109
112
  const context = {
113
+ options: client._options,
110
114
  baseURL: options?.serverURL ?? client._baseURL ?? "",
111
115
  operationID: "CreateCustomEvidenceRequest",
112
- oAuth2Scopes: [],
116
+ oAuth2Scopes: null,
113
117
 
114
118
  resolvedSecurity: requestSecurity,
115
119
 
@@ -127,6 +131,7 @@ async function $do(
127
131
  path: path,
128
132
  headers: headers,
129
133
  body: body,
134
+ userAgent: client._options.userAgent,
130
135
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
131
136
  }, options);
132
137
  if (!requestRes.ok) {
@@ -147,18 +152,19 @@ async function $do(
147
152
 
148
153
  const [result] = await M.match<
149
154
  components.CustomEvidenceRequest,
150
- | APIError
151
- | SDKValidationError
152
- | UnexpectedClientError
153
- | InvalidRequestError
155
+ | VantaError
156
+ | ResponseValidationError
157
+ | ConnectionError
154
158
  | RequestAbortedError
155
159
  | RequestTimeoutError
156
- | ConnectionError
160
+ | InvalidRequestError
161
+ | UnexpectedClientError
162
+ | SDKValidationError
157
163
  >(
158
164
  M.json(200, components.CustomEvidenceRequest$inboundSchema),
159
165
  M.fail("4XX"),
160
166
  M.fail("5XX"),
161
- )(response);
167
+ )(response, req);
162
168
  if (!result.ok) {
163
169
  return [result, { status: "complete", request: req, response }];
164
170
  }
@@ -11,7 +11,6 @@ import { RequestOptions } from "../lib/sdks.js";
11
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
12
  import { pathToFunc } from "../lib/url.js";
13
13
  import * as components from "../models/components/index.js";
14
- import { APIError } from "../models/errors/apierror.js";
15
14
  import {
16
15
  ConnectionError,
17
16
  InvalidRequestError,
@@ -19,7 +18,9 @@ import {
19
18
  RequestTimeoutError,
20
19
  UnexpectedClientError,
21
20
  } from "../models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import { VantaError } from "../models/errors/vantaerror.js";
23
24
  import * as operations from "../models/operations/index.js";
24
25
  import { APICall, APIPromise } from "../types/async.js";
25
26
  import { Result } from "../types/fp.js";
@@ -38,13 +39,14 @@ export function auditsGetEvidenceUrls(
38
39
  ): APIPromise<
39
40
  Result<
40
41
  components.PaginatedResponseEvidenceUrl,
41
- | APIError
42
- | SDKValidationError
43
- | UnexpectedClientError
44
- | InvalidRequestError
42
+ | VantaError
43
+ | ResponseValidationError
44
+ | ConnectionError
45
45
  | RequestAbortedError
46
46
  | RequestTimeoutError
47
- | ConnectionError
47
+ | InvalidRequestError
48
+ | UnexpectedClientError
49
+ | SDKValidationError
48
50
  >
49
51
  > {
50
52
  return new APIPromise($do(
@@ -62,13 +64,14 @@ async function $do(
62
64
  [
63
65
  Result<
64
66
  components.PaginatedResponseEvidenceUrl,
65
- | APIError
66
- | SDKValidationError
67
- | UnexpectedClientError
68
- | InvalidRequestError
67
+ | VantaError
68
+ | ResponseValidationError
69
+ | ConnectionError
69
70
  | RequestAbortedError
70
71
  | RequestTimeoutError
71
- | ConnectionError
72
+ | InvalidRequestError
73
+ | UnexpectedClientError
74
+ | SDKValidationError
72
75
  >,
73
76
  APICall,
74
77
  ]
@@ -114,9 +117,10 @@ async function $do(
114
117
  const requestSecurity = resolveGlobalSecurity(securityInput);
115
118
 
116
119
  const context = {
120
+ options: client._options,
117
121
  baseURL: options?.serverURL ?? client._baseURL ?? "",
118
122
  operationID: "ListAuditEvidenceUrls",
119
- oAuth2Scopes: [],
123
+ oAuth2Scopes: null,
120
124
 
121
125
  resolvedSecurity: requestSecurity,
122
126
 
@@ -135,6 +139,7 @@ async function $do(
135
139
  headers: headers,
136
140
  query: query,
137
141
  body: body,
142
+ userAgent: client._options.userAgent,
138
143
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
139
144
  }, options);
140
145
  if (!requestRes.ok) {
@@ -155,18 +160,19 @@ async function $do(
155
160
 
156
161
  const [result] = await M.match<
157
162
  components.PaginatedResponseEvidenceUrl,
158
- | APIError
159
- | SDKValidationError
160
- | UnexpectedClientError
161
- | InvalidRequestError
163
+ | VantaError
164
+ | ResponseValidationError
165
+ | ConnectionError
162
166
  | RequestAbortedError
163
167
  | RequestTimeoutError
164
- | ConnectionError
168
+ | InvalidRequestError
169
+ | UnexpectedClientError
170
+ | SDKValidationError
165
171
  >(
166
172
  M.json(200, components.PaginatedResponseEvidenceUrl$inboundSchema),
167
173
  M.fail("4XX"),
168
174
  M.fail("5XX"),
169
- )(response);
175
+ )(response, req);
170
176
  if (!result.ok) {
171
177
  return [result, { status: "complete", request: req, response }];
172
178
  }
@@ -11,7 +11,6 @@ import { RequestOptions } from "../lib/sdks.js";
11
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
12
  import { pathToFunc } from "../lib/url.js";
13
13
  import * as components from "../models/components/index.js";
14
- import { APIError } from "../models/errors/apierror.js";
15
14
  import {
16
15
  ConnectionError,
17
16
  InvalidRequestError,
@@ -19,7 +18,9 @@ import {
19
18
  RequestTimeoutError,
20
19
  UnexpectedClientError,
21
20
  } from "../models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import { VantaError } from "../models/errors/vantaerror.js";
23
24
  import * as operations from "../models/operations/index.js";
24
25
  import { APICall, APIPromise } from "../types/async.js";
25
26
  import { Result } from "../types/fp.js";
@@ -37,13 +38,14 @@ export function auditsList(
37
38
  ): APIPromise<
38
39
  Result<
39
40
  components.PaginatedResponseAudit,
40
- | APIError
41
- | SDKValidationError
42
- | UnexpectedClientError
43
- | InvalidRequestError
41
+ | VantaError
42
+ | ResponseValidationError
43
+ | ConnectionError
44
44
  | RequestAbortedError
45
45
  | RequestTimeoutError
46
- | ConnectionError
46
+ | InvalidRequestError
47
+ | UnexpectedClientError
48
+ | SDKValidationError
47
49
  >
48
50
  > {
49
51
  return new APIPromise($do(
@@ -61,13 +63,14 @@ async function $do(
61
63
  [
62
64
  Result<
63
65
  components.PaginatedResponseAudit,
64
- | APIError
65
- | SDKValidationError
66
- | UnexpectedClientError
67
- | InvalidRequestError
66
+ | VantaError
67
+ | ResponseValidationError
68
+ | ConnectionError
68
69
  | RequestAbortedError
69
70
  | RequestTimeoutError
70
- | ConnectionError
71
+ | InvalidRequestError
72
+ | UnexpectedClientError
73
+ | SDKValidationError
71
74
  >,
72
75
  APICall,
73
76
  ]
@@ -87,6 +90,7 @@ async function $do(
87
90
 
88
91
  const query = encodeFormQuery({
89
92
  "changedSinceDate": payload.changedSinceDate,
93
+ "isActiveAudit": payload.isActiveAudit,
90
94
  "pageCursor": payload.pageCursor,
91
95
  "pageSize": payload.pageSize,
92
96
  });
@@ -100,9 +104,10 @@ async function $do(
100
104
  const requestSecurity = resolveGlobalSecurity(securityInput);
101
105
 
102
106
  const context = {
107
+ options: client._options,
103
108
  baseURL: options?.serverURL ?? client._baseURL ?? "",
104
109
  operationID: "ListAudits",
105
- oAuth2Scopes: [],
110
+ oAuth2Scopes: null,
106
111
 
107
112
  resolvedSecurity: requestSecurity,
108
113
 
@@ -121,6 +126,7 @@ async function $do(
121
126
  headers: headers,
122
127
  query: query,
123
128
  body: body,
129
+ userAgent: client._options.userAgent,
124
130
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
125
131
  }, options);
126
132
  if (!requestRes.ok) {
@@ -141,18 +147,19 @@ async function $do(
141
147
 
142
148
  const [result] = await M.match<
143
149
  components.PaginatedResponseAudit,
144
- | APIError
145
- | SDKValidationError
146
- | UnexpectedClientError
147
- | InvalidRequestError
150
+ | VantaError
151
+ | ResponseValidationError
152
+ | ConnectionError
148
153
  | RequestAbortedError
149
154
  | RequestTimeoutError
150
- | ConnectionError
155
+ | InvalidRequestError
156
+ | UnexpectedClientError
157
+ | SDKValidationError
151
158
  >(
152
159
  M.json(200, components.PaginatedResponseAudit$inboundSchema),
153
160
  M.fail("4XX"),
154
161
  M.fail("5XX"),
155
- )(response);
162
+ )(response, req);
156
163
  if (!result.ok) {
157
164
  return [result, { status: "complete", request: req, response }];
158
165
  }
@@ -11,7 +11,6 @@ import { RequestOptions } from "../lib/sdks.js";
11
11
  import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
12
  import { pathToFunc } from "../lib/url.js";
13
13
  import * as components from "../models/components/index.js";
14
- import { APIError } from "../models/errors/apierror.js";
15
14
  import {
16
15
  ConnectionError,
17
16
  InvalidRequestError,
@@ -19,7 +18,9 @@ import {
19
18
  RequestTimeoutError,
20
19
  UnexpectedClientError,
21
20
  } from "../models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import { VantaError } from "../models/errors/vantaerror.js";
23
24
  import * as operations from "../models/operations/index.js";
24
25
  import { APICall, APIPromise } from "../types/async.js";
25
26
  import { Result } from "../types/fp.js";
@@ -37,13 +38,14 @@ export function auditsListComments(
37
38
  ): APIPromise<
38
39
  Result<
39
40
  components.PaginatedResponseComment,
40
- | APIError
41
- | SDKValidationError
42
- | UnexpectedClientError
43
- | InvalidRequestError
41
+ | VantaError
42
+ | ResponseValidationError
43
+ | ConnectionError
44
44
  | RequestAbortedError
45
45
  | RequestTimeoutError
46
- | ConnectionError
46
+ | InvalidRequestError
47
+ | UnexpectedClientError
48
+ | SDKValidationError
47
49
  >
48
50
  > {
49
51
  return new APIPromise($do(
@@ -61,13 +63,14 @@ async function $do(
61
63
  [
62
64
  Result<
63
65
  components.PaginatedResponseComment,
64
- | APIError
65
- | SDKValidationError
66
- | UnexpectedClientError
67
- | InvalidRequestError
66
+ | VantaError
67
+ | ResponseValidationError
68
+ | ConnectionError
68
69
  | RequestAbortedError
69
70
  | RequestTimeoutError
70
- | ConnectionError
71
+ | InvalidRequestError
72
+ | UnexpectedClientError
73
+ | SDKValidationError
71
74
  >,
72
75
  APICall,
73
76
  ]
@@ -107,9 +110,10 @@ async function $do(
107
110
  const requestSecurity = resolveGlobalSecurity(securityInput);
108
111
 
109
112
  const context = {
113
+ options: client._options,
110
114
  baseURL: options?.serverURL ?? client._baseURL ?? "",
111
115
  operationID: "ListAuditComments",
112
- oAuth2Scopes: [],
116
+ oAuth2Scopes: null,
113
117
 
114
118
  resolvedSecurity: requestSecurity,
115
119
 
@@ -128,6 +132,7 @@ async function $do(
128
132
  headers: headers,
129
133
  query: query,
130
134
  body: body,
135
+ userAgent: client._options.userAgent,
131
136
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
132
137
  }, options);
133
138
  if (!requestRes.ok) {
@@ -148,18 +153,19 @@ async function $do(
148
153
 
149
154
  const [result] = await M.match<
150
155
  components.PaginatedResponseComment,
151
- | APIError
152
- | SDKValidationError
153
- | UnexpectedClientError
154
- | InvalidRequestError
156
+ | VantaError
157
+ | ResponseValidationError
158
+ | ConnectionError
155
159
  | RequestAbortedError
156
160
  | RequestTimeoutError
157
- | ConnectionError
161
+ | InvalidRequestError
162
+ | UnexpectedClientError
163
+ | SDKValidationError
158
164
  >(
159
165
  M.json(200, components.PaginatedResponseComment$inboundSchema),
160
166
  M.fail("4XX"),
161
167
  M.fail("5XX"),
162
- )(response);
168
+ )(response, req);
163
169
  if (!result.ok) {
164
170
  return [result, { status: "complete", request: req, response }];
165
171
  }