vanta-auditor-api-sdk 0.1.1

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 (448) hide show
  1. package/.devcontainer/README.md +30 -0
  2. package/FUNCTIONS.md +104 -0
  3. package/README.md +440 -0
  4. package/RUNTIMES.md +48 -0
  5. package/core.d.ts +10 -0
  6. package/core.d.ts.map +1 -0
  7. package/core.js +17 -0
  8. package/core.js.map +1 -0
  9. package/docs/sdks/auditors/README.md +88 -0
  10. package/docs/sdks/audits/README.md +748 -0
  11. package/docs/sdks/vanta/README.md +7 -0
  12. package/funcs/auditorsCreate.d.ts +15 -0
  13. package/funcs/auditorsCreate.d.ts.map +1 -0
  14. package/funcs/auditorsCreate.js +106 -0
  15. package/funcs/auditorsCreate.js.map +1 -0
  16. package/funcs/auditsCreateCommentForEvidence.d.ts +16 -0
  17. package/funcs/auditsCreateCommentForEvidence.d.ts.map +1 -0
  18. package/funcs/auditsCreateCommentForEvidence.js +117 -0
  19. package/funcs/auditsCreateCommentForEvidence.js.map +1 -0
  20. package/funcs/auditsCreateCustomControl.d.ts +16 -0
  21. package/funcs/auditsCreateCustomControl.d.ts.map +1 -0
  22. package/funcs/auditsCreateCustomControl.js +115 -0
  23. package/funcs/auditsCreateCustomControl.js.map +1 -0
  24. package/funcs/auditsCreateCustomEvidenceRequest.d.ts +16 -0
  25. package/funcs/auditsCreateCustomEvidenceRequest.d.ts.map +1 -0
  26. package/funcs/auditsCreateCustomEvidenceRequest.js +115 -0
  27. package/funcs/auditsCreateCustomEvidenceRequest.js.map +1 -0
  28. package/funcs/auditsGetEvidenceUrls.d.ts +16 -0
  29. package/funcs/auditsGetEvidenceUrls.d.ts.map +1 -0
  30. package/funcs/auditsGetEvidenceUrls.js +121 -0
  31. package/funcs/auditsGetEvidenceUrls.js.map +1 -0
  32. package/funcs/auditsList.d.ts +16 -0
  33. package/funcs/auditsList.d.ts.map +1 -0
  34. package/funcs/auditsList.js +112 -0
  35. package/funcs/auditsList.js.map +1 -0
  36. package/funcs/auditsListComments.d.ts +16 -0
  37. package/funcs/auditsListComments.d.ts.map +1 -0
  38. package/funcs/auditsListComments.js +118 -0
  39. package/funcs/auditsListComments.js.map +1 -0
  40. package/funcs/auditsListControls.d.ts +16 -0
  41. package/funcs/auditsListControls.d.ts.map +1 -0
  42. package/funcs/auditsListControls.js +117 -0
  43. package/funcs/auditsListControls.js.map +1 -0
  44. package/funcs/auditsListEvidence.d.ts +16 -0
  45. package/funcs/auditsListEvidence.d.ts.map +1 -0
  46. package/funcs/auditsListEvidence.js +118 -0
  47. package/funcs/auditsListEvidence.js.map +1 -0
  48. package/funcs/auditsUpdateEvidence.d.ts +16 -0
  49. package/funcs/auditsUpdateEvidence.d.ts.map +1 -0
  50. package/funcs/auditsUpdateEvidence.js +119 -0
  51. package/funcs/auditsUpdateEvidence.js.map +1 -0
  52. package/hooks/hooks.d.ts +24 -0
  53. package/hooks/hooks.d.ts.map +1 -0
  54. package/hooks/hooks.js +86 -0
  55. package/hooks/hooks.js.map +1 -0
  56. package/hooks/index.d.ts +3 -0
  57. package/hooks/index.d.ts.map +1 -0
  58. package/hooks/index.js +22 -0
  59. package/hooks/index.js.map +1 -0
  60. package/hooks/registration.d.ts +3 -0
  61. package/hooks/registration.d.ts.map +1 -0
  62. package/hooks/registration.js +15 -0
  63. package/hooks/registration.js.map +1 -0
  64. package/hooks/types.d.ts +77 -0
  65. package/hooks/types.d.ts.map +1 -0
  66. package/hooks/types.js +6 -0
  67. package/hooks/types.js.map +1 -0
  68. package/index.d.ts +4 -0
  69. package/index.d.ts.map +1 -0
  70. package/index.js +46 -0
  71. package/index.js.map +1 -0
  72. package/lib/base64.d.ts +10 -0
  73. package/lib/base64.d.ts.map +1 -0
  74. package/lib/base64.js +71 -0
  75. package/lib/base64.js.map +1 -0
  76. package/lib/config.d.ts +34 -0
  77. package/lib/config.d.ts.map +1 -0
  78. package/lib/config.js +35 -0
  79. package/lib/config.js.map +1 -0
  80. package/lib/dlv.d.ts +14 -0
  81. package/lib/dlv.d.ts.map +1 -0
  82. package/lib/dlv.js +49 -0
  83. package/lib/dlv.js.map +1 -0
  84. package/lib/encodings.d.ts +51 -0
  85. package/lib/encodings.d.ts.map +1 -0
  86. package/lib/encodings.js +342 -0
  87. package/lib/encodings.js.map +1 -0
  88. package/lib/env.d.ts +15 -0
  89. package/lib/env.d.ts.map +1 -0
  90. package/lib/env.js +65 -0
  91. package/lib/env.js.map +1 -0
  92. package/lib/files.d.ts +8 -0
  93. package/lib/files.d.ts.map +1 -0
  94. package/lib/files.js +36 -0
  95. package/lib/files.js.map +1 -0
  96. package/lib/http.d.ts +67 -0
  97. package/lib/http.d.ts.map +1 -0
  98. package/lib/http.js +217 -0
  99. package/lib/http.js.map +1 -0
  100. package/lib/is-plain-object.d.ts +2 -0
  101. package/lib/is-plain-object.d.ts.map +1 -0
  102. package/lib/is-plain-object.js +41 -0
  103. package/lib/is-plain-object.js.map +1 -0
  104. package/lib/logger.d.ts +6 -0
  105. package/lib/logger.d.ts.map +1 -0
  106. package/lib/logger.js +6 -0
  107. package/lib/logger.js.map +1 -0
  108. package/lib/matchers.d.ts +64 -0
  109. package/lib/matchers.d.ts.map +1 -0
  110. package/lib/matchers.js +204 -0
  111. package/lib/matchers.js.map +1 -0
  112. package/lib/primitives.d.ts +22 -0
  113. package/lib/primitives.d.ts.map +1 -0
  114. package/lib/primitives.js +94 -0
  115. package/lib/primitives.js.map +1 -0
  116. package/lib/retries.d.ts +38 -0
  117. package/lib/retries.d.ts.map +1 -0
  118. package/lib/retries.js +154 -0
  119. package/lib/retries.js.map +1 -0
  120. package/lib/schemas.d.ts +19 -0
  121. package/lib/schemas.d.ts.map +1 -0
  122. package/lib/schemas.js +59 -0
  123. package/lib/schemas.js.map +1 -0
  124. package/lib/sdks.d.ts +60 -0
  125. package/lib/sdks.d.ts.map +1 -0
  126. package/lib/sdks.js +277 -0
  127. package/lib/sdks.js.map +1 -0
  128. package/lib/security.d.ts +82 -0
  129. package/lib/security.d.ts.map +1 -0
  130. package/lib/security.js +139 -0
  131. package/lib/security.js.map +1 -0
  132. package/lib/url.d.ts +5 -0
  133. package/lib/url.d.ts.map +1 -0
  134. package/lib/url.js +25 -0
  135. package/lib/url.js.map +1 -0
  136. package/models/components/addauditorinput.d.ts +42 -0
  137. package/models/components/addauditorinput.d.ts.map +1 -0
  138. package/models/components/addauditorinput.js +73 -0
  139. package/models/components/addauditorinput.js.map +1 -0
  140. package/models/components/addcommentinput.d.ts +42 -0
  141. package/models/components/addcommentinput.d.ts.map +1 -0
  142. package/models/components/addcommentinput.js +73 -0
  143. package/models/components/addcommentinput.js.map +1 -0
  144. package/models/components/audit.d.ts +97 -0
  145. package/models/components/audit.d.ts.map +1 -0
  146. package/models/components/audit.js +96 -0
  147. package/models/components/audit.js.map +1 -0
  148. package/models/components/auditevidencestate.d.ts +40 -0
  149. package/models/components/auditevidencestate.d.ts.map +1 -0
  150. package/models/components/auditevidencestate.js +64 -0
  151. package/models/components/auditevidencestate.js.map +1 -0
  152. package/models/components/auditevidencetype.d.ts +31 -0
  153. package/models/components/auditevidencetype.d.ts.map +1 -0
  154. package/models/components/auditevidencetype.js +61 -0
  155. package/models/components/auditevidencetype.js.map +1 -0
  156. package/models/components/auditevidenceupdateinput.d.ts +60 -0
  157. package/models/components/auditevidenceupdateinput.d.ts.map +1 -0
  158. package/models/components/auditevidenceupdateinput.js +99 -0
  159. package/models/components/auditevidenceupdateinput.js.map +1 -0
  160. package/models/components/auditor.d.ts +49 -0
  161. package/models/components/auditor.d.ts.map +1 -0
  162. package/models/components/auditor.js +77 -0
  163. package/models/components/auditor.js.map +1 -0
  164. package/models/components/auditorcontrol.d.ts +111 -0
  165. package/models/components/auditorcontrol.d.ts.map +1 -0
  166. package/models/components/auditorcontrol.js +118 -0
  167. package/models/components/auditorcontrol.js.map +1 -0
  168. package/models/components/auditorenabledstatetransition.d.ts +34 -0
  169. package/models/components/auditorenabledstatetransition.d.ts.map +1 -0
  170. package/models/components/auditorenabledstatetransition.js +62 -0
  171. package/models/components/auditorenabledstatetransition.js.map +1 -0
  172. package/models/components/comment.d.ts +57 -0
  173. package/models/components/comment.d.ts.map +1 -0
  174. package/models/components/comment.js +79 -0
  175. package/models/components/comment.js.map +1 -0
  176. package/models/components/control.d.ts +106 -0
  177. package/models/components/control.d.ts.map +1 -0
  178. package/models/components/control.js +115 -0
  179. package/models/components/control.js.map +1 -0
  180. package/models/components/controldomain.d.ts +136 -0
  181. package/models/components/controldomain.d.ts.map +1 -0
  182. package/models/components/controldomain.js +96 -0
  183. package/models/components/controldomain.js.map +1 -0
  184. package/models/components/controlsource.d.ts +28 -0
  185. package/models/components/controlsource.d.ts.map +1 -0
  186. package/models/components/controlsource.js +60 -0
  187. package/models/components/controlsource.js.map +1 -0
  188. package/models/components/createcustomcontrolinput.d.ts +105 -0
  189. package/models/components/createcustomcontrolinput.d.ts.map +1 -0
  190. package/models/components/createcustomcontrolinput.js +109 -0
  191. package/models/components/createcustomcontrolinput.js.map +1 -0
  192. package/models/components/createcustomevidencerequestinput.d.ts +52 -0
  193. package/models/components/createcustomevidencerequestinput.d.ts.map +1 -0
  194. package/models/components/createcustomevidencerequestinput.js +80 -0
  195. package/models/components/createcustomevidencerequestinput.js.map +1 -0
  196. package/models/components/customevidencerequest.d.ts +57 -0
  197. package/models/components/customevidencerequest.d.ts.map +1 -0
  198. package/models/components/customevidencerequest.js +82 -0
  199. package/models/components/customevidencerequest.js.map +1 -0
  200. package/models/components/evidence.d.ts +84 -0
  201. package/models/components/evidence.d.ts.map +1 -0
  202. package/models/components/evidence.js +94 -0
  203. package/models/components/evidence.js.map +1 -0
  204. package/models/components/evidencecontrol.d.ts +37 -0
  205. package/models/components/evidencecontrol.d.ts.map +1 -0
  206. package/models/components/evidencecontrol.js +71 -0
  207. package/models/components/evidencecontrol.js.map +1 -0
  208. package/models/components/evidenceurl.d.ts +47 -0
  209. package/models/components/evidenceurl.d.ts.map +1 -0
  210. package/models/components/evidenceurl.js +75 -0
  211. package/models/components/evidenceurl.js.map +1 -0
  212. package/models/components/frameworkid.d.ts +127 -0
  213. package/models/components/frameworkid.d.ts.map +1 -0
  214. package/models/components/frameworkid.js +94 -0
  215. package/models/components/frameworkid.js.map +1 -0
  216. package/models/components/frameworksection.d.ts +53 -0
  217. package/models/components/frameworksection.d.ts.map +1 -0
  218. package/models/components/frameworksection.js +95 -0
  219. package/models/components/frameworksection.js.map +1 -0
  220. package/models/components/index.d.ts +30 -0
  221. package/models/components/index.d.ts.map +1 -0
  222. package/models/components/index.js +49 -0
  223. package/models/components/index.js.map +1 -0
  224. package/models/components/pageinfo.d.ts +50 -0
  225. package/models/components/pageinfo.d.ts.map +1 -0
  226. package/models/components/pageinfo.js +75 -0
  227. package/models/components/pageinfo.js.map +1 -0
  228. package/models/components/paginatedresponseaudit.d.ts +61 -0
  229. package/models/components/paginatedresponseaudit.d.ts.map +1 -0
  230. package/models/components/paginatedresponseaudit.js +100 -0
  231. package/models/components/paginatedresponseaudit.js.map +1 -0
  232. package/models/components/paginatedresponseauditorcontrol.d.ts +61 -0
  233. package/models/components/paginatedresponseauditorcontrol.d.ts.map +1 -0
  234. package/models/components/paginatedresponseauditorcontrol.js +100 -0
  235. package/models/components/paginatedresponseauditorcontrol.js.map +1 -0
  236. package/models/components/paginatedresponsecomment.d.ts +61 -0
  237. package/models/components/paginatedresponsecomment.d.ts.map +1 -0
  238. package/models/components/paginatedresponsecomment.js +100 -0
  239. package/models/components/paginatedresponsecomment.js.map +1 -0
  240. package/models/components/paginatedresponseevidence.d.ts +61 -0
  241. package/models/components/paginatedresponseevidence.d.ts.map +1 -0
  242. package/models/components/paginatedresponseevidence.js +100 -0
  243. package/models/components/paginatedresponseevidence.js.map +1 -0
  244. package/models/components/paginatedresponseevidenceurl.d.ts +61 -0
  245. package/models/components/paginatedresponseevidenceurl.d.ts.map +1 -0
  246. package/models/components/paginatedresponseevidenceurl.js +100 -0
  247. package/models/components/paginatedresponseevidenceurl.js.map +1 -0
  248. package/models/components/recurrenceduration.d.ts +43 -0
  249. package/models/components/recurrenceduration.d.ts.map +1 -0
  250. package/models/components/recurrenceduration.js +65 -0
  251. package/models/components/recurrenceduration.js.map +1 -0
  252. package/models/components/security.d.ts +29 -0
  253. package/models/components/security.d.ts.map +1 -0
  254. package/models/components/security.js +69 -0
  255. package/models/components/security.js.map +1 -0
  256. package/models/errors/apierror.d.ts +8 -0
  257. package/models/errors/apierror.d.ts.map +1 -0
  258. package/models/errors/apierror.js +21 -0
  259. package/models/errors/apierror.js.map +1 -0
  260. package/models/errors/httpclienterrors.d.ts +44 -0
  261. package/models/errors/httpclienterrors.d.ts.map +1 -0
  262. package/models/errors/httpclienterrors.js +78 -0
  263. package/models/errors/httpclienterrors.js.map +1 -0
  264. package/models/errors/index.d.ts +4 -0
  265. package/models/errors/index.d.ts.map +1 -0
  266. package/models/errors/index.js +23 -0
  267. package/models/errors/index.js.map +1 -0
  268. package/models/errors/sdkvalidationerror.d.ts +20 -0
  269. package/models/errors/sdkvalidationerror.d.ts.map +1 -0
  270. package/models/errors/sdkvalidationerror.js +115 -0
  271. package/models/errors/sdkvalidationerror.js.map +1 -0
  272. package/models/operations/createcommentforauditevidence.d.ts +34 -0
  273. package/models/operations/createcommentforauditevidence.d.ts.map +1 -0
  274. package/models/operations/createcommentforauditevidence.js +83 -0
  275. package/models/operations/createcommentforauditevidence.js.map +1 -0
  276. package/models/operations/createcustomcontrol.d.ts +32 -0
  277. package/models/operations/createcustomcontrol.d.ts.map +1 -0
  278. package/models/operations/createcustomcontrol.js +81 -0
  279. package/models/operations/createcustomcontrol.js.map +1 -0
  280. package/models/operations/createcustomevidencerequest.d.ts +32 -0
  281. package/models/operations/createcustomevidencerequest.d.ts.map +1 -0
  282. package/models/operations/createcustomevidencerequest.js +81 -0
  283. package/models/operations/createcustomevidencerequest.js.map +1 -0
  284. package/models/operations/index.d.ts +10 -0
  285. package/models/operations/index.d.ts.map +1 -0
  286. package/models/operations/index.js +29 -0
  287. package/models/operations/index.js.map +1 -0
  288. package/models/operations/listauditcomments.d.ts +38 -0
  289. package/models/operations/listauditcomments.d.ts.map +1 -0
  290. package/models/operations/listauditcomments.js +75 -0
  291. package/models/operations/listauditcomments.js.map +1 -0
  292. package/models/operations/listauditcontrols.d.ts +33 -0
  293. package/models/operations/listauditcontrols.d.ts.map +1 -0
  294. package/models/operations/listauditcontrols.js +73 -0
  295. package/models/operations/listauditcontrols.js.map +1 -0
  296. package/models/operations/listauditevidence.d.ts +38 -0
  297. package/models/operations/listauditevidence.d.ts.map +1 -0
  298. package/models/operations/listauditevidence.js +75 -0
  299. package/models/operations/listauditevidence.js.map +1 -0
  300. package/models/operations/listauditevidenceurls.d.ts +35 -0
  301. package/models/operations/listauditevidenceurls.d.ts.map +1 -0
  302. package/models/operations/listauditevidenceurls.js +75 -0
  303. package/models/operations/listauditevidenceurls.js.map +1 -0
  304. package/models/operations/listaudits.d.ts +36 -0
  305. package/models/operations/listaudits.d.ts.map +1 -0
  306. package/models/operations/listaudits.js +73 -0
  307. package/models/operations/listaudits.js.map +1 -0
  308. package/models/operations/updateauditevidence.d.ts +34 -0
  309. package/models/operations/updateauditevidence.d.ts.map +1 -0
  310. package/models/operations/updateauditevidence.js +83 -0
  311. package/models/operations/updateauditevidence.js.map +1 -0
  312. package/package.json +27 -0
  313. package/sdk/auditors.d.ts +12 -0
  314. package/sdk/auditors.d.ts.map +1 -0
  315. package/sdk/auditors.js +22 -0
  316. package/sdk/auditors.js.map +1 -0
  317. package/sdk/audits.d.ts +69 -0
  318. package/sdk/audits.d.ts.map +1 -0
  319. package/sdk/audits.js +102 -0
  320. package/sdk/audits.js.map +1 -0
  321. package/sdk/index.d.ts +2 -0
  322. package/sdk/index.d.ts.map +1 -0
  323. package/sdk/index.js +21 -0
  324. package/sdk/index.js.map +1 -0
  325. package/sdk/sdk.d.ts +10 -0
  326. package/sdk/sdk.d.ts.map +1 -0
  327. package/sdk/sdk.js +19 -0
  328. package/sdk/sdk.js.map +1 -0
  329. package/src/core.ts +13 -0
  330. package/src/funcs/auditorsCreate.ts +124 -0
  331. package/src/funcs/auditsCreateCommentForEvidence.ts +141 -0
  332. package/src/funcs/auditsCreateCustomControl.ts +137 -0
  333. package/src/funcs/auditsCreateCustomEvidenceRequest.ts +137 -0
  334. package/src/funcs/auditsGetEvidenceUrls.ts +144 -0
  335. package/src/funcs/auditsList.ts +131 -0
  336. package/src/funcs/auditsListComments.ts +138 -0
  337. package/src/funcs/auditsListControls.ts +137 -0
  338. package/src/funcs/auditsListEvidence.ts +138 -0
  339. package/src/funcs/auditsUpdateEvidence.ts +141 -0
  340. package/src/hooks/hooks.ts +132 -0
  341. package/src/hooks/index.ts +6 -0
  342. package/src/hooks/registration.ts +14 -0
  343. package/src/hooks/types.ts +109 -0
  344. package/src/index.ts +7 -0
  345. package/src/lib/base64.ts +37 -0
  346. package/src/lib/config.ts +61 -0
  347. package/src/lib/dlv.ts +53 -0
  348. package/src/lib/encodings.ts +449 -0
  349. package/src/lib/env.ts +41 -0
  350. package/src/lib/files.ts +40 -0
  351. package/src/lib/http.ts +323 -0
  352. package/src/lib/is-plain-object.ts +43 -0
  353. package/src/lib/logger.ts +9 -0
  354. package/src/lib/matchers.ts +322 -0
  355. package/src/lib/primitives.ts +122 -0
  356. package/src/lib/retries.ts +219 -0
  357. package/src/lib/schemas.ts +86 -0
  358. package/src/lib/sdks.ts +397 -0
  359. package/src/lib/security.ts +254 -0
  360. package/src/lib/url.ts +33 -0
  361. package/src/models/components/addauditorinput.ts +81 -0
  362. package/src/models/components/addcommentinput.ts +83 -0
  363. package/src/models/components/audit.ts +167 -0
  364. package/src/models/components/auditevidencestate.ts +37 -0
  365. package/src/models/components/auditevidencetype.ts +34 -0
  366. package/src/models/components/auditevidenceupdateinput.ts +132 -0
  367. package/src/models/components/auditor.ts +87 -0
  368. package/src/models/components/auditorcontrol.ts +194 -0
  369. package/src/models/components/auditorenabledstatetransition.ts +37 -0
  370. package/src/models/components/comment.ts +101 -0
  371. package/src/models/components/control.ts +187 -0
  372. package/src/models/components/controldomain.ts +70 -0
  373. package/src/models/components/controlsource.ts +33 -0
  374. package/src/models/components/createcustomcontrolinput.ts +164 -0
  375. package/src/models/components/createcustomevidencerequestinput.ts +105 -0
  376. package/src/models/components/customevidencerequest.ts +110 -0
  377. package/src/models/components/evidence.ts +158 -0
  378. package/src/models/components/evidencecontrol.ts +74 -0
  379. package/src/models/components/evidenceurl.ts +86 -0
  380. package/src/models/components/frameworkid.ts +64 -0
  381. package/src/models/components/frameworksection.ts +127 -0
  382. package/src/models/components/index.ts +33 -0
  383. package/src/models/components/pageinfo.ts +89 -0
  384. package/src/models/components/paginatedresponseaudit.ts +136 -0
  385. package/src/models/components/paginatedresponseauditorcontrol.ts +151 -0
  386. package/src/models/components/paginatedresponsecomment.ts +145 -0
  387. package/src/models/components/paginatedresponseevidence.ts +145 -0
  388. package/src/models/components/paginatedresponseevidenceurl.ts +150 -0
  389. package/src/models/components/recurrenceduration.ts +38 -0
  390. package/src/models/components/security.ts +62 -0
  391. package/src/models/errors/apierror.ts +27 -0
  392. package/src/models/errors/httpclienterrors.ts +62 -0
  393. package/src/models/errors/index.ts +7 -0
  394. package/src/models/errors/sdkvalidationerror.ts +97 -0
  395. package/src/models/operations/createcommentforauditevidence.ts +89 -0
  396. package/src/models/operations/createcustomcontrol.ts +80 -0
  397. package/src/models/operations/createcustomevidencerequest.ts +87 -0
  398. package/src/models/operations/index.ts +13 -0
  399. package/src/models/operations/listauditcomments.ts +83 -0
  400. package/src/models/operations/listauditcontrols.ts +74 -0
  401. package/src/models/operations/listauditevidence.ts +83 -0
  402. package/src/models/operations/listauditevidenceurls.ts +80 -0
  403. package/src/models/operations/listaudits.ts +79 -0
  404. package/src/models/operations/updateauditevidence.ts +84 -0
  405. package/src/sdk/auditors.ts +27 -0
  406. package/src/sdk/audits.ts +172 -0
  407. package/src/sdk/index.ts +5 -0
  408. package/src/sdk/sdk.ts +19 -0
  409. package/src/types/blobs.ts +31 -0
  410. package/src/types/constdatetime.ts +15 -0
  411. package/src/types/enums.ts +16 -0
  412. package/src/types/fp.ts +50 -0
  413. package/src/types/index.ts +11 -0
  414. package/src/types/operations.ts +105 -0
  415. package/src/types/rfcdate.ts +54 -0
  416. package/src/types/streams.ts +21 -0
  417. package/types/blobs.d.ts +4 -0
  418. package/types/blobs.d.ts.map +1 -0
  419. package/types/blobs.js +62 -0
  420. package/types/blobs.js.map +1 -0
  421. package/types/constdatetime.d.ts +3 -0
  422. package/types/constdatetime.d.ts.map +1 -0
  423. package/types/constdatetime.js +46 -0
  424. package/types/constdatetime.js.map +1 -0
  425. package/types/enums.d.ts +12 -0
  426. package/types/enums.d.ts.map +1 -0
  427. package/types/enums.js +10 -0
  428. package/types/enums.js.map +1 -0
  429. package/types/fp.d.ts +31 -0
  430. package/types/fp.d.ts.map +1 -0
  431. package/types/fp.js +37 -0
  432. package/types/fp.js.map +1 -0
  433. package/types/index.d.ts +8 -0
  434. package/types/index.d.ts.map +1 -0
  435. package/types/index.js +16 -0
  436. package/types/index.js.map +1 -0
  437. package/types/operations.d.ts +27 -0
  438. package/types/operations.d.ts.map +1 -0
  439. package/types/operations.js +83 -0
  440. package/types/operations.js.map +1 -0
  441. package/types/rfcdate.d.ts +21 -0
  442. package/types/rfcdate.d.ts.map +1 -0
  443. package/types/rfcdate.js +46 -0
  444. package/types/rfcdate.js.map +1 -0
  445. package/types/streams.d.ts +2 -0
  446. package/types/streams.d.ts.map +1 -0
  447. package/types/streams.js +18 -0
  448. package/types/streams.js.map +1 -0
@@ -0,0 +1,132 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ AuditorEnabledStateTransition,
11
+ AuditorEnabledStateTransition$inboundSchema,
12
+ AuditorEnabledStateTransition$outboundSchema,
13
+ } from "./auditorenabledstatetransition.js";
14
+
15
+ export type StatusUpdate = {
16
+ /**
17
+ * Email of the auditor who changed the state
18
+ */
19
+ auditorEmail: string;
20
+ stateTransition: AuditorEnabledStateTransition;
21
+ };
22
+
23
+ export type AuditEvidenceUpdateInput = {
24
+ statusUpdate?: StatusUpdate | undefined;
25
+ };
26
+
27
+ /** @internal */
28
+ export const StatusUpdate$inboundSchema: z.ZodType<
29
+ StatusUpdate,
30
+ z.ZodTypeDef,
31
+ unknown
32
+ > = z.object({
33
+ auditorEmail: z.string(),
34
+ stateTransition: AuditorEnabledStateTransition$inboundSchema,
35
+ });
36
+
37
+ /** @internal */
38
+ export type StatusUpdate$Outbound = {
39
+ auditorEmail: string;
40
+ stateTransition: string;
41
+ };
42
+
43
+ /** @internal */
44
+ export const StatusUpdate$outboundSchema: z.ZodType<
45
+ StatusUpdate$Outbound,
46
+ z.ZodTypeDef,
47
+ StatusUpdate
48
+ > = z.object({
49
+ auditorEmail: z.string(),
50
+ stateTransition: AuditorEnabledStateTransition$outboundSchema,
51
+ });
52
+
53
+ /**
54
+ * @internal
55
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
+ */
57
+ export namespace StatusUpdate$ {
58
+ /** @deprecated use `StatusUpdate$inboundSchema` instead. */
59
+ export const inboundSchema = StatusUpdate$inboundSchema;
60
+ /** @deprecated use `StatusUpdate$outboundSchema` instead. */
61
+ export const outboundSchema = StatusUpdate$outboundSchema;
62
+ /** @deprecated use `StatusUpdate$Outbound` instead. */
63
+ export type Outbound = StatusUpdate$Outbound;
64
+ }
65
+
66
+ export function statusUpdateToJSON(statusUpdate: StatusUpdate): string {
67
+ return JSON.stringify(StatusUpdate$outboundSchema.parse(statusUpdate));
68
+ }
69
+
70
+ export function statusUpdateFromJSON(
71
+ jsonString: string,
72
+ ): SafeParseResult<StatusUpdate, SDKValidationError> {
73
+ return safeParse(
74
+ jsonString,
75
+ (x) => StatusUpdate$inboundSchema.parse(JSON.parse(x)),
76
+ `Failed to parse 'StatusUpdate' from JSON`,
77
+ );
78
+ }
79
+
80
+ /** @internal */
81
+ export const AuditEvidenceUpdateInput$inboundSchema: z.ZodType<
82
+ AuditEvidenceUpdateInput,
83
+ z.ZodTypeDef,
84
+ unknown
85
+ > = z.object({
86
+ statusUpdate: z.lazy(() => StatusUpdate$inboundSchema).optional(),
87
+ });
88
+
89
+ /** @internal */
90
+ export type AuditEvidenceUpdateInput$Outbound = {
91
+ statusUpdate?: StatusUpdate$Outbound | undefined;
92
+ };
93
+
94
+ /** @internal */
95
+ export const AuditEvidenceUpdateInput$outboundSchema: z.ZodType<
96
+ AuditEvidenceUpdateInput$Outbound,
97
+ z.ZodTypeDef,
98
+ AuditEvidenceUpdateInput
99
+ > = z.object({
100
+ statusUpdate: z.lazy(() => StatusUpdate$outboundSchema).optional(),
101
+ });
102
+
103
+ /**
104
+ * @internal
105
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
106
+ */
107
+ export namespace AuditEvidenceUpdateInput$ {
108
+ /** @deprecated use `AuditEvidenceUpdateInput$inboundSchema` instead. */
109
+ export const inboundSchema = AuditEvidenceUpdateInput$inboundSchema;
110
+ /** @deprecated use `AuditEvidenceUpdateInput$outboundSchema` instead. */
111
+ export const outboundSchema = AuditEvidenceUpdateInput$outboundSchema;
112
+ /** @deprecated use `AuditEvidenceUpdateInput$Outbound` instead. */
113
+ export type Outbound = AuditEvidenceUpdateInput$Outbound;
114
+ }
115
+
116
+ export function auditEvidenceUpdateInputToJSON(
117
+ auditEvidenceUpdateInput: AuditEvidenceUpdateInput,
118
+ ): string {
119
+ return JSON.stringify(
120
+ AuditEvidenceUpdateInput$outboundSchema.parse(auditEvidenceUpdateInput),
121
+ );
122
+ }
123
+
124
+ export function auditEvidenceUpdateInputFromJSON(
125
+ jsonString: string,
126
+ ): SafeParseResult<AuditEvidenceUpdateInput, SDKValidationError> {
127
+ return safeParse(
128
+ jsonString,
129
+ (x) => AuditEvidenceUpdateInput$inboundSchema.parse(JSON.parse(x)),
130
+ `Failed to parse 'AuditEvidenceUpdateInput' from JSON`,
131
+ );
132
+ }
@@ -0,0 +1,87 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type Auditor = {
11
+ id: string;
12
+ /**
13
+ * The unique identifier for the organization.
14
+ */
15
+ organizationId: string;
16
+ /**
17
+ * The email address of the auditor.
18
+ */
19
+ email: string;
20
+ /**
21
+ * The given name (first name) of the auditor.
22
+ */
23
+ givenName: string;
24
+ /**
25
+ * The family name (last name) of the auditor.
26
+ */
27
+ familyName: string;
28
+ };
29
+
30
+ /** @internal */
31
+ export const Auditor$inboundSchema: z.ZodType<Auditor, z.ZodTypeDef, unknown> =
32
+ z.object({
33
+ id: z.string(),
34
+ organizationId: z.string(),
35
+ email: z.string(),
36
+ givenName: z.string(),
37
+ familyName: z.string(),
38
+ });
39
+
40
+ /** @internal */
41
+ export type Auditor$Outbound = {
42
+ id: string;
43
+ organizationId: string;
44
+ email: string;
45
+ givenName: string;
46
+ familyName: string;
47
+ };
48
+
49
+ /** @internal */
50
+ export const Auditor$outboundSchema: z.ZodType<
51
+ Auditor$Outbound,
52
+ z.ZodTypeDef,
53
+ Auditor
54
+ > = z.object({
55
+ id: z.string(),
56
+ organizationId: z.string(),
57
+ email: z.string(),
58
+ givenName: z.string(),
59
+ familyName: z.string(),
60
+ });
61
+
62
+ /**
63
+ * @internal
64
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
+ */
66
+ export namespace Auditor$ {
67
+ /** @deprecated use `Auditor$inboundSchema` instead. */
68
+ export const inboundSchema = Auditor$inboundSchema;
69
+ /** @deprecated use `Auditor$outboundSchema` instead. */
70
+ export const outboundSchema = Auditor$outboundSchema;
71
+ /** @deprecated use `Auditor$Outbound` instead. */
72
+ export type Outbound = Auditor$Outbound;
73
+ }
74
+
75
+ export function auditorToJSON(auditor: Auditor): string {
76
+ return JSON.stringify(Auditor$outboundSchema.parse(auditor));
77
+ }
78
+
79
+ export function auditorFromJSON(
80
+ jsonString: string,
81
+ ): SafeParseResult<Auditor, SDKValidationError> {
82
+ return safeParse(
83
+ jsonString,
84
+ (x) => Auditor$inboundSchema.parse(JSON.parse(x)),
85
+ `Failed to parse 'Auditor' from JSON`,
86
+ );
87
+ }
@@ -0,0 +1,194 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ ControlSource,
11
+ ControlSource$inboundSchema,
12
+ ControlSource$outboundSchema,
13
+ } from "./controlsource.js";
14
+
15
+ /**
16
+ * The control's owner.
17
+ */
18
+ export type Owner = {
19
+ /**
20
+ * Unique identifier for the person.
21
+ */
22
+ id: string;
23
+ /**
24
+ * Name of the person that is shown in product.
25
+ */
26
+ displayName: string;
27
+ /**
28
+ * Email address of the person.
29
+ */
30
+ emailAddress: string;
31
+ };
32
+
33
+ export type AuditorControl = {
34
+ /**
35
+ * The control's unique ID.
36
+ */
37
+ id: string;
38
+ /**
39
+ * The control's external ID.
40
+ */
41
+ externalId: string | null;
42
+ /**
43
+ * The control's name.
44
+ */
45
+ name: string;
46
+ /**
47
+ * The control's description.
48
+ */
49
+ description: string;
50
+ source: ControlSource;
51
+ /**
52
+ * The security domains that the control belongs to.
53
+ */
54
+ domains: Array<string>;
55
+ /**
56
+ * The control's owner.
57
+ */
58
+ owner: Owner | null;
59
+ /**
60
+ * The control's GDPR role, if the control is a GDPR control.
61
+ */
62
+ role?: string | undefined;
63
+ /**
64
+ * The report standard framework fulfilled by the control.
65
+ */
66
+ framework: string;
67
+ };
68
+
69
+ /** @internal */
70
+ export const Owner$inboundSchema: z.ZodType<Owner, z.ZodTypeDef, unknown> = z
71
+ .object({
72
+ id: z.string(),
73
+ displayName: z.string(),
74
+ emailAddress: z.string(),
75
+ });
76
+
77
+ /** @internal */
78
+ export type Owner$Outbound = {
79
+ id: string;
80
+ displayName: string;
81
+ emailAddress: string;
82
+ };
83
+
84
+ /** @internal */
85
+ export const Owner$outboundSchema: z.ZodType<
86
+ Owner$Outbound,
87
+ z.ZodTypeDef,
88
+ Owner
89
+ > = z.object({
90
+ id: z.string(),
91
+ displayName: z.string(),
92
+ emailAddress: z.string(),
93
+ });
94
+
95
+ /**
96
+ * @internal
97
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
98
+ */
99
+ export namespace Owner$ {
100
+ /** @deprecated use `Owner$inboundSchema` instead. */
101
+ export const inboundSchema = Owner$inboundSchema;
102
+ /** @deprecated use `Owner$outboundSchema` instead. */
103
+ export const outboundSchema = Owner$outboundSchema;
104
+ /** @deprecated use `Owner$Outbound` instead. */
105
+ export type Outbound = Owner$Outbound;
106
+ }
107
+
108
+ export function ownerToJSON(owner: Owner): string {
109
+ return JSON.stringify(Owner$outboundSchema.parse(owner));
110
+ }
111
+
112
+ export function ownerFromJSON(
113
+ jsonString: string,
114
+ ): SafeParseResult<Owner, SDKValidationError> {
115
+ return safeParse(
116
+ jsonString,
117
+ (x) => Owner$inboundSchema.parse(JSON.parse(x)),
118
+ `Failed to parse 'Owner' from JSON`,
119
+ );
120
+ }
121
+
122
+ /** @internal */
123
+ export const AuditorControl$inboundSchema: z.ZodType<
124
+ AuditorControl,
125
+ z.ZodTypeDef,
126
+ unknown
127
+ > = z.object({
128
+ id: z.string(),
129
+ externalId: z.nullable(z.string()),
130
+ name: z.string(),
131
+ description: z.string(),
132
+ source: ControlSource$inboundSchema,
133
+ domains: z.array(z.string()),
134
+ owner: z.nullable(z.lazy(() => Owner$inboundSchema)),
135
+ role: z.string().optional(),
136
+ framework: z.string(),
137
+ });
138
+
139
+ /** @internal */
140
+ export type AuditorControl$Outbound = {
141
+ id: string;
142
+ externalId: string | null;
143
+ name: string;
144
+ description: string;
145
+ source: string;
146
+ domains: Array<string>;
147
+ owner: Owner$Outbound | null;
148
+ role?: string | undefined;
149
+ framework: string;
150
+ };
151
+
152
+ /** @internal */
153
+ export const AuditorControl$outboundSchema: z.ZodType<
154
+ AuditorControl$Outbound,
155
+ z.ZodTypeDef,
156
+ AuditorControl
157
+ > = z.object({
158
+ id: z.string(),
159
+ externalId: z.nullable(z.string()),
160
+ name: z.string(),
161
+ description: z.string(),
162
+ source: ControlSource$outboundSchema,
163
+ domains: z.array(z.string()),
164
+ owner: z.nullable(z.lazy(() => Owner$outboundSchema)),
165
+ role: z.string().optional(),
166
+ framework: z.string(),
167
+ });
168
+
169
+ /**
170
+ * @internal
171
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
172
+ */
173
+ export namespace AuditorControl$ {
174
+ /** @deprecated use `AuditorControl$inboundSchema` instead. */
175
+ export const inboundSchema = AuditorControl$inboundSchema;
176
+ /** @deprecated use `AuditorControl$outboundSchema` instead. */
177
+ export const outboundSchema = AuditorControl$outboundSchema;
178
+ /** @deprecated use `AuditorControl$Outbound` instead. */
179
+ export type Outbound = AuditorControl$Outbound;
180
+ }
181
+
182
+ export function auditorControlToJSON(auditorControl: AuditorControl): string {
183
+ return JSON.stringify(AuditorControl$outboundSchema.parse(auditorControl));
184
+ }
185
+
186
+ export function auditorControlFromJSON(
187
+ jsonString: string,
188
+ ): SafeParseResult<AuditorControl, SDKValidationError> {
189
+ return safeParse(
190
+ jsonString,
191
+ (x) => AuditorControl$inboundSchema.parse(JSON.parse(x)),
192
+ `Failed to parse 'AuditorControl' from JSON`,
193
+ );
194
+ }
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const AuditorEnabledStateTransition = {
9
+ Accept: "ACCEPT",
10
+ MarkApplicable: "MARK_APPLICABLE",
11
+ Flag: "FLAG",
12
+ MarkNa: "MARK_NA",
13
+ } as const;
14
+ export type AuditorEnabledStateTransition = ClosedEnum<
15
+ typeof AuditorEnabledStateTransition
16
+ >;
17
+
18
+ /** @internal */
19
+ export const AuditorEnabledStateTransition$inboundSchema: z.ZodNativeEnum<
20
+ typeof AuditorEnabledStateTransition
21
+ > = z.nativeEnum(AuditorEnabledStateTransition);
22
+
23
+ /** @internal */
24
+ export const AuditorEnabledStateTransition$outboundSchema: z.ZodNativeEnum<
25
+ typeof AuditorEnabledStateTransition
26
+ > = AuditorEnabledStateTransition$inboundSchema;
27
+
28
+ /**
29
+ * @internal
30
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
31
+ */
32
+ export namespace AuditorEnabledStateTransition$ {
33
+ /** @deprecated use `AuditorEnabledStateTransition$inboundSchema` instead. */
34
+ export const inboundSchema = AuditorEnabledStateTransition$inboundSchema;
35
+ /** @deprecated use `AuditorEnabledStateTransition$outboundSchema` instead. */
36
+ export const outboundSchema = AuditorEnabledStateTransition$outboundSchema;
37
+ }
@@ -0,0 +1,101 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type Comment = {
11
+ /**
12
+ * The unique identifier for the comment
13
+ */
14
+ id: string;
15
+ /**
16
+ * The unique identifier for the audit evidence related to the comment.
17
+ */
18
+ auditEvidenceId: string;
19
+ /**
20
+ * The comment message
21
+ */
22
+ text: string;
23
+ /**
24
+ * When the comment was created
25
+ */
26
+ creationDate: Date;
27
+ /**
28
+ * When the comment was updated
29
+ */
30
+ modificationDate: Date | null;
31
+ /**
32
+ * The email of the comment author. This acts as a unique identifier to map users between Vanta and external systems.
33
+ */
34
+ email: string | null;
35
+ };
36
+
37
+ /** @internal */
38
+ export const Comment$inboundSchema: z.ZodType<Comment, z.ZodTypeDef, unknown> =
39
+ z.object({
40
+ id: z.string(),
41
+ auditEvidenceId: z.string(),
42
+ text: z.string(),
43
+ creationDate: z.string().datetime({ offset: true }).transform(v =>
44
+ new Date(v)
45
+ ),
46
+ modificationDate: z.nullable(
47
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
48
+ ),
49
+ email: z.nullable(z.string()),
50
+ });
51
+
52
+ /** @internal */
53
+ export type Comment$Outbound = {
54
+ id: string;
55
+ auditEvidenceId: string;
56
+ text: string;
57
+ creationDate: string;
58
+ modificationDate: string | null;
59
+ email: string | null;
60
+ };
61
+
62
+ /** @internal */
63
+ export const Comment$outboundSchema: z.ZodType<
64
+ Comment$Outbound,
65
+ z.ZodTypeDef,
66
+ Comment
67
+ > = z.object({
68
+ id: z.string(),
69
+ auditEvidenceId: z.string(),
70
+ text: z.string(),
71
+ creationDate: z.date().transform(v => v.toISOString()),
72
+ modificationDate: z.nullable(z.date().transform(v => v.toISOString())),
73
+ email: z.nullable(z.string()),
74
+ });
75
+
76
+ /**
77
+ * @internal
78
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
79
+ */
80
+ export namespace Comment$ {
81
+ /** @deprecated use `Comment$inboundSchema` instead. */
82
+ export const inboundSchema = Comment$inboundSchema;
83
+ /** @deprecated use `Comment$outboundSchema` instead. */
84
+ export const outboundSchema = Comment$outboundSchema;
85
+ /** @deprecated use `Comment$Outbound` instead. */
86
+ export type Outbound = Comment$Outbound;
87
+ }
88
+
89
+ export function commentToJSON(comment: Comment): string {
90
+ return JSON.stringify(Comment$outboundSchema.parse(comment));
91
+ }
92
+
93
+ export function commentFromJSON(
94
+ jsonString: string,
95
+ ): SafeParseResult<Comment, SDKValidationError> {
96
+ return safeParse(
97
+ jsonString,
98
+ (x) => Comment$inboundSchema.parse(JSON.parse(x)),
99
+ `Failed to parse 'Comment' from JSON`,
100
+ );
101
+ }