vanta-auditor-api-sdk 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/README.md +0 -85
  2. package/examples/package-lock.json +1 -18
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/models/components/addauditorinput.d.ts +0 -17
  7. package/models/components/addauditorinput.d.ts.map +1 -1
  8. package/models/components/addauditorinput.js +1 -23
  9. package/models/components/addauditorinput.js.map +1 -1
  10. package/models/components/addcommentinput.d.ts +0 -17
  11. package/models/components/addcommentinput.d.ts.map +1 -1
  12. package/models/components/addcommentinput.js +1 -23
  13. package/models/components/addcommentinput.js.map +1 -1
  14. package/models/components/audit.d.ts +0 -33
  15. package/models/components/audit.d.ts.map +1 -1
  16. package/models/components/audit.js +1 -34
  17. package/models/components/audit.js.map +1 -1
  18. package/models/components/auditevidencestate.d.ts +0 -26
  19. package/models/components/auditevidencestate.d.ts.map +1 -1
  20. package/models/components/auditevidencestate.js +1 -14
  21. package/models/components/auditevidencestate.js.map +1 -1
  22. package/models/components/auditevidencetype.d.ts +0 -20
  23. package/models/components/auditevidencetype.d.ts.map +1 -1
  24. package/models/components/auditevidencetype.js +1 -14
  25. package/models/components/auditevidencetype.js.map +1 -1
  26. package/models/components/auditevidenceupdateinput.d.ts +0 -32
  27. package/models/components/auditevidenceupdateinput.d.ts.map +1 -1
  28. package/models/components/auditevidenceupdateinput.js +1 -41
  29. package/models/components/auditevidenceupdateinput.js.map +1 -1
  30. package/models/components/auditfocus.d.ts +0 -18
  31. package/models/components/auditfocus.d.ts.map +1 -1
  32. package/models/components/auditfocus.js +1 -14
  33. package/models/components/auditfocus.js.map +1 -1
  34. package/models/components/auditor.d.ts +0 -23
  35. package/models/components/auditor.d.ts.map +1 -1
  36. package/models/components/auditor.js +1 -24
  37. package/models/components/auditor.js.map +1 -1
  38. package/models/components/auditorcontrol.d.ts +2 -52
  39. package/models/components/auditorcontrol.d.ts.map +1 -1
  40. package/models/components/auditorcontrol.js +1 -51
  41. package/models/components/auditorcontrol.js.map +1 -1
  42. package/models/components/auditorenabledstatetransition.d.ts +0 -24
  43. package/models/components/auditorenabledstatetransition.d.ts.map +1 -1
  44. package/models/components/auditorenabledstatetransition.js +2 -15
  45. package/models/components/auditorenabledstatetransition.js.map +1 -1
  46. package/models/components/comment.d.ts +0 -25
  47. package/models/components/comment.d.ts.map +1 -1
  48. package/models/components/comment.js +1 -26
  49. package/models/components/comment.js.map +1 -1
  50. package/models/components/control.d.ts +1 -49
  51. package/models/components/control.d.ts.map +1 -1
  52. package/models/components/control.js +1 -49
  53. package/models/components/control.js.map +1 -1
  54. package/models/components/controldomain.d.ts +0 -90
  55. package/models/components/controldomain.d.ts.map +1 -1
  56. package/models/components/controldomain.js +2 -15
  57. package/models/components/controldomain.js.map +1 -1
  58. package/models/components/controlsource.d.ts +0 -18
  59. package/models/components/controlsource.d.ts.map +1 -1
  60. package/models/components/controlsource.js +1 -14
  61. package/models/components/controlsource.js.map +1 -1
  62. package/models/components/createcustomcontrolinput.d.ts +0 -37
  63. package/models/components/createcustomcontrolinput.d.ts.map +1 -1
  64. package/models/components/createcustomcontrolinput.js +2 -41
  65. package/models/components/createcustomcontrolinput.js.map +1 -1
  66. package/models/components/createcustomevidencerequestinput.d.ts +0 -17
  67. package/models/components/createcustomevidencerequestinput.d.ts.map +1 -1
  68. package/models/components/createcustomevidencerequestinput.js +1 -27
  69. package/models/components/createcustomevidencerequestinput.js.map +1 -1
  70. package/models/components/customevidencerequest.d.ts +0 -25
  71. package/models/components/customevidencerequest.d.ts.map +1 -1
  72. package/models/components/customevidencerequest.js +1 -26
  73. package/models/components/customevidencerequest.js.map +1 -1
  74. package/models/components/customfield.d.ts +0 -37
  75. package/models/components/customfield.d.ts.map +1 -1
  76. package/models/components/customfield.js +1 -38
  77. package/models/components/customfield.js.map +1 -1
  78. package/models/components/evidence.d.ts +1 -31
  79. package/models/components/evidence.d.ts.map +1 -1
  80. package/models/components/evidence.js +1 -31
  81. package/models/components/evidence.js.map +1 -1
  82. package/models/components/evidencecontrol.d.ts +0 -20
  83. package/models/components/evidencecontrol.d.ts.map +1 -1
  84. package/models/components/evidencecontrol.js +1 -21
  85. package/models/components/evidencecontrol.js.map +1 -1
  86. package/models/components/evidenceurl.d.ts +0 -22
  87. package/models/components/evidenceurl.d.ts.map +1 -1
  88. package/models/components/evidenceurl.js +1 -23
  89. package/models/components/evidenceurl.js.map +1 -1
  90. package/models/components/frameworkid.d.ts +0 -84
  91. package/models/components/frameworkid.d.ts.map +1 -1
  92. package/models/components/frameworkid.js +2 -15
  93. package/models/components/frameworkid.js.map +1 -1
  94. package/models/components/frameworksection.d.ts +0 -32
  95. package/models/components/frameworksection.d.ts.map +1 -1
  96. package/models/components/frameworksection.js +1 -39
  97. package/models/components/frameworksection.js.map +1 -1
  98. package/models/components/pageinfo.d.ts +0 -22
  99. package/models/components/pageinfo.d.ts.map +1 -1
  100. package/models/components/pageinfo.js +1 -23
  101. package/models/components/pageinfo.js.map +1 -1
  102. package/models/components/paginatedresponseaudit.d.ts +2 -41
  103. package/models/components/paginatedresponseaudit.d.ts.map +1 -1
  104. package/models/components/paginatedresponseaudit.js +1 -40
  105. package/models/components/paginatedresponseaudit.js.map +1 -1
  106. package/models/components/paginatedresponseauditorcontrol.d.ts +2 -41
  107. package/models/components/paginatedresponseauditorcontrol.d.ts.map +1 -1
  108. package/models/components/paginatedresponseauditorcontrol.js +1 -40
  109. package/models/components/paginatedresponseauditorcontrol.js.map +1 -1
  110. package/models/components/paginatedresponsecomment.d.ts +2 -41
  111. package/models/components/paginatedresponsecomment.d.ts.map +1 -1
  112. package/models/components/paginatedresponsecomment.js +1 -40
  113. package/models/components/paginatedresponsecomment.js.map +1 -1
  114. package/models/components/paginatedresponseevidence.d.ts +2 -41
  115. package/models/components/paginatedresponseevidence.d.ts.map +1 -1
  116. package/models/components/paginatedresponseevidence.js +1 -40
  117. package/models/components/paginatedresponseevidence.js.map +1 -1
  118. package/models/components/paginatedresponseevidenceurl.d.ts +2 -41
  119. package/models/components/paginatedresponseevidenceurl.d.ts.map +1 -1
  120. package/models/components/paginatedresponseevidenceurl.js +1 -40
  121. package/models/components/paginatedresponseevidenceurl.js.map +1 -1
  122. package/models/components/recurrenceduration.d.ts +0 -26
  123. package/models/components/recurrenceduration.d.ts.map +1 -1
  124. package/models/components/recurrenceduration.js +1 -12
  125. package/models/components/recurrenceduration.js.map +1 -1
  126. package/models/components/section.d.ts +0 -20
  127. package/models/components/section.d.ts.map +1 -1
  128. package/models/components/section.js +1 -21
  129. package/models/components/section.js.map +1 -1
  130. package/models/components/security.d.ts +0 -17
  131. package/models/components/security.d.ts.map +1 -1
  132. package/models/components/security.js +1 -21
  133. package/models/components/security.js.map +1 -1
  134. package/models/operations/createcommentforauditevidence.d.ts +0 -17
  135. package/models/operations/createcommentforauditevidence.d.ts.map +1 -1
  136. package/models/operations/createcommentforauditevidence.js +1 -27
  137. package/models/operations/createcommentforauditevidence.js.map +1 -1
  138. package/models/operations/createcustomcontrol.d.ts +0 -17
  139. package/models/operations/createcustomcontrol.d.ts.map +1 -1
  140. package/models/operations/createcustomcontrol.js +1 -26
  141. package/models/operations/createcustomcontrol.js.map +1 -1
  142. package/models/operations/createcustomevidencerequest.d.ts +0 -17
  143. package/models/operations/createcustomevidencerequest.d.ts.map +1 -1
  144. package/models/operations/createcustomevidencerequest.js +1 -26
  145. package/models/operations/createcustomevidencerequest.js.map +1 -1
  146. package/models/operations/listauditcomments.d.ts +0 -17
  147. package/models/operations/listauditcomments.d.ts.map +1 -1
  148. package/models/operations/listauditcomments.js +1 -24
  149. package/models/operations/listauditcomments.js.map +1 -1
  150. package/models/operations/listauditcontrols.d.ts +0 -17
  151. package/models/operations/listauditcontrols.d.ts.map +1 -1
  152. package/models/operations/listauditcontrols.js +1 -23
  153. package/models/operations/listauditcontrols.js.map +1 -1
  154. package/models/operations/listauditevidence.d.ts +0 -17
  155. package/models/operations/listauditevidence.d.ts.map +1 -1
  156. package/models/operations/listauditevidence.js +1 -24
  157. package/models/operations/listauditevidence.js.map +1 -1
  158. package/models/operations/listauditevidenceurls.d.ts +0 -17
  159. package/models/operations/listauditevidenceurls.d.ts.map +1 -1
  160. package/models/operations/listauditevidenceurls.js +1 -24
  161. package/models/operations/listauditevidenceurls.js.map +1 -1
  162. package/models/operations/listaudits.d.ts +0 -17
  163. package/models/operations/listaudits.d.ts.map +1 -1
  164. package/models/operations/listaudits.js +1 -24
  165. package/models/operations/listaudits.js.map +1 -1
  166. package/models/operations/updateauditevidence.d.ts +0 -17
  167. package/models/operations/updateauditevidence.d.ts.map +1 -1
  168. package/models/operations/updateauditevidence.js +1 -27
  169. package/models/operations/updateauditevidence.js.map +1 -1
  170. package/package.json +3 -16
  171. package/src/lib/config.ts +3 -3
  172. package/src/models/components/addauditorinput.ts +0 -37
  173. package/src/models/components/addcommentinput.ts +0 -39
  174. package/src/models/components/audit.ts +1 -64
  175. package/src/models/components/auditevidencestate.ts +0 -16
  176. package/src/models/components/auditevidencetype.ts +0 -16
  177. package/src/models/components/auditevidenceupdateinput.ts +0 -69
  178. package/src/models/components/auditfocus.ts +0 -15
  179. package/src/models/components/auditor.ts +0 -39
  180. package/src/models/components/auditorcontrol.ts +3 -103
  181. package/src/models/components/auditorenabledstatetransition.ts +1 -17
  182. package/src/models/components/comment.ts +0 -43
  183. package/src/models/components/control.ts +2 -93
  184. package/src/models/components/controldomain.ts +1 -17
  185. package/src/models/components/controlsource.ts +0 -16
  186. package/src/models/components/createcustomcontrolinput.ts +1 -61
  187. package/src/models/components/createcustomevidencerequestinput.ts +0 -42
  188. package/src/models/components/customevidencerequest.ts +0 -48
  189. package/src/models/components/customfield.ts +0 -60
  190. package/src/models/components/evidence.ts +0 -57
  191. package/src/models/components/evidencecontrol.ts +0 -35
  192. package/src/models/components/evidenceurl.ts +0 -37
  193. package/src/models/components/frameworkid.ts +1 -16
  194. package/src/models/components/frameworksection.ts +1 -71
  195. package/src/models/components/pageinfo.ts +0 -37
  196. package/src/models/components/paginatedresponseaudit.ts +2 -80
  197. package/src/models/components/paginatedresponseauditorcontrol.ts +1 -87
  198. package/src/models/components/paginatedresponsecomment.ts +2 -86
  199. package/src/models/components/paginatedresponseevidence.ts +2 -86
  200. package/src/models/components/paginatedresponseevidenceurl.ts +2 -90
  201. package/src/models/components/recurrenceduration.ts +0 -12
  202. package/src/models/components/section.ts +0 -33
  203. package/src/models/components/security.ts +0 -35
  204. package/src/models/operations/createcommentforauditevidence.ts +0 -44
  205. package/src/models/operations/createcustomcontrol.ts +0 -40
  206. package/src/models/operations/createcustomevidencerequest.ts +0 -43
  207. package/src/models/operations/listauditcomments.ts +0 -40
  208. package/src/models/operations/listauditcontrols.ts +0 -37
  209. package/src/models/operations/listauditevidence.ts +0 -40
  210. package/src/models/operations/listauditevidenceurls.ts +0 -38
  211. package/src/models/operations/listaudits.ts +0 -40
  212. package/src/models/operations/updateauditevidence.ts +0 -41
  213. package/src/types/enums.ts +55 -6
  214. package/src/types/index.ts +0 -1
  215. package/types/enums.d.ts +10 -6
  216. package/types/enums.d.ts.map +1 -1
  217. package/types/enums.js +76 -2
  218. package/types/enums.js.map +1 -1
  219. package/types/index.d.ts +0 -1
  220. package/types/index.d.ts.map +1 -1
  221. package/types/index.js +1 -3
  222. package/types/index.js.map +1 -1
  223. package/bin/mcp-server.js +0 -39217
  224. package/bin/mcp-server.js.map +0 -323
  225. package/mcp-server/build.d.mts.map +0 -1
  226. package/mcp-server/build.mjs +0 -14
  227. package/mcp-server/build.mjs.map +0 -1
  228. package/mcp-server/cli/start/command.d.ts +0 -2
  229. package/mcp-server/cli/start/command.d.ts.map +0 -1
  230. package/mcp-server/cli/start/command.js +0 -125
  231. package/mcp-server/cli/start/command.js.map +0 -1
  232. package/mcp-server/cli/start/impl.d.ts +0 -16
  233. package/mcp-server/cli/start/impl.d.ts.map +0 -1
  234. package/mcp-server/cli/start/impl.js +0 -102
  235. package/mcp-server/cli/start/impl.js.map +0 -1
  236. package/mcp-server/cli.d.ts +0 -6
  237. package/mcp-server/cli.d.ts.map +0 -1
  238. package/mcp-server/cli.js +0 -10
  239. package/mcp-server/cli.js.map +0 -1
  240. package/mcp-server/console-logger.d.ts +0 -7
  241. package/mcp-server/console-logger.d.ts.map +0 -1
  242. package/mcp-server/console-logger.js +0 -59
  243. package/mcp-server/console-logger.js.map +0 -1
  244. package/mcp-server/extensions.d.ts +0 -11
  245. package/mcp-server/extensions.d.ts.map +0 -1
  246. package/mcp-server/extensions.js +0 -6
  247. package/mcp-server/extensions.js.map +0 -1
  248. package/mcp-server/mcp-server.d.ts +0 -2
  249. package/mcp-server/mcp-server.d.ts.map +0 -1
  250. package/mcp-server/mcp-server.js +0 -29
  251. package/mcp-server/mcp-server.js.map +0 -1
  252. package/mcp-server/prompts.d.ts +0 -26
  253. package/mcp-server/prompts.d.ts.map +0 -1
  254. package/mcp-server/prompts.js +0 -51
  255. package/mcp-server/prompts.js.map +0 -1
  256. package/mcp-server/resources.d.ts +0 -32
  257. package/mcp-server/resources.d.ts.map +0 -1
  258. package/mcp-server/resources.js +0 -87
  259. package/mcp-server/resources.js.map +0 -1
  260. package/mcp-server/scopes.d.ts +0 -3
  261. package/mcp-server/scopes.d.ts.map +0 -1
  262. package/mcp-server/scopes.js +0 -8
  263. package/mcp-server/scopes.js.map +0 -1
  264. package/mcp-server/server.d.ts +0 -13
  265. package/mcp-server/server.d.ts.map +0 -1
  266. package/mcp-server/server.js +0 -52
  267. package/mcp-server/server.js.map +0 -1
  268. package/mcp-server/shared.d.ts +0 -7
  269. package/mcp-server/shared.d.ts.map +0 -1
  270. package/mcp-server/shared.js +0 -98
  271. package/mcp-server/shared.js.map +0 -1
  272. package/mcp-server/tools/auditorsCreate.d.ts +0 -8
  273. package/mcp-server/tools/auditorsCreate.d.ts.map +0 -1
  274. package/mcp-server/tools/auditorsCreate.js +0 -64
  275. package/mcp-server/tools/auditorsCreate.js.map +0 -1
  276. package/mcp-server/tools/auditsCreateCommentForEvidence.d.ts +0 -8
  277. package/mcp-server/tools/auditsCreateCommentForEvidence.d.ts.map +0 -1
  278. package/mcp-server/tools/auditsCreateCommentForEvidence.js +0 -64
  279. package/mcp-server/tools/auditsCreateCommentForEvidence.js.map +0 -1
  280. package/mcp-server/tools/auditsCreateCustomControl.d.ts +0 -8
  281. package/mcp-server/tools/auditsCreateCustomControl.d.ts.map +0 -1
  282. package/mcp-server/tools/auditsCreateCustomControl.js +0 -64
  283. package/mcp-server/tools/auditsCreateCustomControl.js.map +0 -1
  284. package/mcp-server/tools/auditsCreateCustomEvidenceRequest.d.ts +0 -8
  285. package/mcp-server/tools/auditsCreateCustomEvidenceRequest.d.ts.map +0 -1
  286. package/mcp-server/tools/auditsCreateCustomEvidenceRequest.js +0 -64
  287. package/mcp-server/tools/auditsCreateCustomEvidenceRequest.js.map +0 -1
  288. package/mcp-server/tools/auditsGetEvidenceUrls.d.ts +0 -8
  289. package/mcp-server/tools/auditsGetEvidenceUrls.d.ts.map +0 -1
  290. package/mcp-server/tools/auditsGetEvidenceUrls.js +0 -65
  291. package/mcp-server/tools/auditsGetEvidenceUrls.js.map +0 -1
  292. package/mcp-server/tools/auditsList.d.ts +0 -8
  293. package/mcp-server/tools/auditsList.d.ts.map +0 -1
  294. package/mcp-server/tools/auditsList.js +0 -64
  295. package/mcp-server/tools/auditsList.js.map +0 -1
  296. package/mcp-server/tools/auditsListComments.d.ts +0 -8
  297. package/mcp-server/tools/auditsListComments.d.ts.map +0 -1
  298. package/mcp-server/tools/auditsListComments.js +0 -64
  299. package/mcp-server/tools/auditsListComments.js.map +0 -1
  300. package/mcp-server/tools/auditsListControls.d.ts +0 -8
  301. package/mcp-server/tools/auditsListControls.d.ts.map +0 -1
  302. package/mcp-server/tools/auditsListControls.js +0 -64
  303. package/mcp-server/tools/auditsListControls.js.map +0 -1
  304. package/mcp-server/tools/auditsListEvidence.d.ts +0 -8
  305. package/mcp-server/tools/auditsListEvidence.d.ts.map +0 -1
  306. package/mcp-server/tools/auditsListEvidence.js +0 -64
  307. package/mcp-server/tools/auditsListEvidence.js.map +0 -1
  308. package/mcp-server/tools/auditsUpdateEvidence.d.ts +0 -8
  309. package/mcp-server/tools/auditsUpdateEvidence.d.ts.map +0 -1
  310. package/mcp-server/tools/auditsUpdateEvidence.js +0 -64
  311. package/mcp-server/tools/auditsUpdateEvidence.js.map +0 -1
  312. package/mcp-server/tools.d.ts +0 -25
  313. package/mcp-server/tools.d.ts.map +0 -1
  314. package/mcp-server/tools.js +0 -82
  315. package/mcp-server/tools.js.map +0 -1
  316. package/src/mcp-server/cli/start/command.ts +0 -93
  317. package/src/mcp-server/cli/start/impl.ts +0 -130
  318. package/src/mcp-server/cli.ts +0 -13
  319. package/src/mcp-server/console-logger.ts +0 -71
  320. package/src/mcp-server/extensions.ts +0 -17
  321. package/src/mcp-server/mcp-server.ts +0 -26
  322. package/src/mcp-server/prompts.ts +0 -117
  323. package/src/mcp-server/resources.ts +0 -172
  324. package/src/mcp-server/scopes.ts +0 -7
  325. package/src/mcp-server/server.ts +0 -79
  326. package/src/mcp-server/shared.ts +0 -74
  327. package/src/mcp-server/tools/auditorsCreate.ts +0 -37
  328. package/src/mcp-server/tools/auditsCreateCommentForEvidence.ts +0 -38
  329. package/src/mcp-server/tools/auditsCreateCustomControl.ts +0 -37
  330. package/src/mcp-server/tools/auditsCreateCustomEvidenceRequest.ts +0 -39
  331. package/src/mcp-server/tools/auditsGetEvidenceUrls.ts +0 -38
  332. package/src/mcp-server/tools/auditsList.ts +0 -37
  333. package/src/mcp-server/tools/auditsListComments.ts +0 -37
  334. package/src/mcp-server/tools/auditsListControls.ts +0 -37
  335. package/src/mcp-server/tools/auditsListEvidence.ts +0 -37
  336. package/src/mcp-server/tools/auditsUpdateEvidence.ts +0 -37
  337. package/src/mcp-server/tools.ts +0 -129
@@ -18,33 +18,6 @@ export type CustomField = {
18
18
  export const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown> = z
19
19
  .union([z.string(), z.array(z.string())]);
20
20
 
21
- /** @internal */
22
- export type Value$Outbound = string | Array<string>;
23
-
24
- /** @internal */
25
- export const Value$outboundSchema: z.ZodType<
26
- Value$Outbound,
27
- z.ZodTypeDef,
28
- Value
29
- > = z.union([z.string(), z.array(z.string())]);
30
-
31
- /**
32
- * @internal
33
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
34
- */
35
- export namespace Value$ {
36
- /** @deprecated use `Value$inboundSchema` instead. */
37
- export const inboundSchema = Value$inboundSchema;
38
- /** @deprecated use `Value$outboundSchema` instead. */
39
- export const outboundSchema = Value$outboundSchema;
40
- /** @deprecated use `Value$Outbound` instead. */
41
- export type Outbound = Value$Outbound;
42
- }
43
-
44
- export function valueToJSON(value: Value): string {
45
- return JSON.stringify(Value$outboundSchema.parse(value));
46
- }
47
-
48
21
  export function valueFromJSON(
49
22
  jsonString: string,
50
23
  ): SafeParseResult<Value, SDKValidationError> {
@@ -65,39 +38,6 @@ export const CustomField$inboundSchema: z.ZodType<
65
38
  value: z.union([z.string(), z.array(z.string())]),
66
39
  });
67
40
 
68
- /** @internal */
69
- export type CustomField$Outbound = {
70
- label: string;
71
- value: string | Array<string>;
72
- };
73
-
74
- /** @internal */
75
- export const CustomField$outboundSchema: z.ZodType<
76
- CustomField$Outbound,
77
- z.ZodTypeDef,
78
- CustomField
79
- > = z.object({
80
- label: z.string(),
81
- value: z.union([z.string(), z.array(z.string())]),
82
- });
83
-
84
- /**
85
- * @internal
86
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
87
- */
88
- export namespace CustomField$ {
89
- /** @deprecated use `CustomField$inboundSchema` instead. */
90
- export const inboundSchema = CustomField$inboundSchema;
91
- /** @deprecated use `CustomField$outboundSchema` instead. */
92
- export const outboundSchema = CustomField$outboundSchema;
93
- /** @deprecated use `CustomField$Outbound` instead. */
94
- export type Outbound = CustomField$Outbound;
95
- }
96
-
97
- export function customFieldToJSON(customField: CustomField): string {
98
- return JSON.stringify(CustomField$outboundSchema.parse(customField));
99
- }
100
-
101
41
  export function customFieldFromJSON(
102
42
  jsonString: string,
103
43
  ): SafeParseResult<CustomField, SDKValidationError> {
@@ -9,18 +9,14 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
  import {
10
10
  AuditEvidenceState,
11
11
  AuditEvidenceState$inboundSchema,
12
- AuditEvidenceState$outboundSchema,
13
12
  } from "./auditevidencestate.js";
14
13
  import {
15
14
  AuditEvidenceType,
16
15
  AuditEvidenceType$inboundSchema,
17
- AuditEvidenceType$outboundSchema,
18
16
  } from "./auditevidencetype.js";
19
17
  import {
20
18
  EvidenceControl,
21
19
  EvidenceControl$inboundSchema,
22
- EvidenceControl$Outbound,
23
- EvidenceControl$outboundSchema,
24
20
  } from "./evidencecontrol.js";
25
21
 
26
22
  export type Evidence = {
@@ -94,59 +90,6 @@ export const Evidence$inboundSchema: z.ZodType<
94
90
  description: z.nullable(z.string()),
95
91
  });
96
92
 
97
- /** @internal */
98
- export type Evidence$Outbound = {
99
- id: string;
100
- externalId: string;
101
- status: string;
102
- name: string;
103
- deletionDate: string | null;
104
- creationDate: string;
105
- statusUpdatedDate: string;
106
- testStatus: string | null;
107
- evidenceType: string;
108
- evidenceId: string;
109
- relatedControls: Array<EvidenceControl$Outbound>;
110
- description: string | null;
111
- };
112
-
113
- /** @internal */
114
- export const Evidence$outboundSchema: z.ZodType<
115
- Evidence$Outbound,
116
- z.ZodTypeDef,
117
- Evidence
118
- > = z.object({
119
- id: z.string(),
120
- externalId: z.string(),
121
- status: AuditEvidenceState$outboundSchema,
122
- name: z.string(),
123
- deletionDate: z.nullable(z.date().transform(v => v.toISOString())),
124
- creationDate: z.date().transform(v => v.toISOString()),
125
- statusUpdatedDate: z.date().transform(v => v.toISOString()),
126
- testStatus: z.nullable(z.string()),
127
- evidenceType: AuditEvidenceType$outboundSchema,
128
- evidenceId: z.string(),
129
- relatedControls: z.array(EvidenceControl$outboundSchema),
130
- description: z.nullable(z.string()),
131
- });
132
-
133
- /**
134
- * @internal
135
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
136
- */
137
- export namespace Evidence$ {
138
- /** @deprecated use `Evidence$inboundSchema` instead. */
139
- export const inboundSchema = Evidence$inboundSchema;
140
- /** @deprecated use `Evidence$outboundSchema` instead. */
141
- export const outboundSchema = Evidence$outboundSchema;
142
- /** @deprecated use `Evidence$Outbound` instead. */
143
- export type Outbound = Evidence$Outbound;
144
- }
145
-
146
- export function evidenceToJSON(evidence: Evidence): string {
147
- return JSON.stringify(Evidence$outboundSchema.parse(evidence));
148
- }
149
-
150
93
  export function evidenceFromJSON(
151
94
  jsonString: string,
152
95
  ): SafeParseResult<Evidence, SDKValidationError> {
@@ -28,41 +28,6 @@ export const EvidenceControl$inboundSchema: z.ZodType<
28
28
  sectionNames: z.array(z.string()),
29
29
  });
30
30
 
31
- /** @internal */
32
- export type EvidenceControl$Outbound = {
33
- name: string;
34
- sectionNames: Array<string>;
35
- };
36
-
37
- /** @internal */
38
- export const EvidenceControl$outboundSchema: z.ZodType<
39
- EvidenceControl$Outbound,
40
- z.ZodTypeDef,
41
- EvidenceControl
42
- > = z.object({
43
- name: z.string(),
44
- sectionNames: z.array(z.string()),
45
- });
46
-
47
- /**
48
- * @internal
49
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
- */
51
- export namespace EvidenceControl$ {
52
- /** @deprecated use `EvidenceControl$inboundSchema` instead. */
53
- export const inboundSchema = EvidenceControl$inboundSchema;
54
- /** @deprecated use `EvidenceControl$outboundSchema` instead. */
55
- export const outboundSchema = EvidenceControl$outboundSchema;
56
- /** @deprecated use `EvidenceControl$Outbound` instead. */
57
- export type Outbound = EvidenceControl$Outbound;
58
- }
59
-
60
- export function evidenceControlToJSON(
61
- evidenceControl: EvidenceControl,
62
- ): string {
63
- return JSON.stringify(EvidenceControl$outboundSchema.parse(evidenceControl));
64
- }
65
-
66
31
  export function evidenceControlFromJSON(
67
32
  jsonString: string,
68
33
  ): SafeParseResult<EvidenceControl, SDKValidationError> {
@@ -38,43 +38,6 @@ export const EvidenceUrl$inboundSchema: z.ZodType<
38
38
  isDownloadable: z.boolean(),
39
39
  });
40
40
 
41
- /** @internal */
42
- export type EvidenceUrl$Outbound = {
43
- id: string;
44
- url: string;
45
- filename: string;
46
- isDownloadable: boolean;
47
- };
48
-
49
- /** @internal */
50
- export const EvidenceUrl$outboundSchema: z.ZodType<
51
- EvidenceUrl$Outbound,
52
- z.ZodTypeDef,
53
- EvidenceUrl
54
- > = z.object({
55
- id: z.string(),
56
- url: z.string(),
57
- filename: z.string(),
58
- isDownloadable: z.boolean(),
59
- });
60
-
61
- /**
62
- * @internal
63
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
64
- */
65
- export namespace EvidenceUrl$ {
66
- /** @deprecated use `EvidenceUrl$inboundSchema` instead. */
67
- export const inboundSchema = EvidenceUrl$inboundSchema;
68
- /** @deprecated use `EvidenceUrl$outboundSchema` instead. */
69
- export const outboundSchema = EvidenceUrl$outboundSchema;
70
- /** @deprecated use `EvidenceUrl$Outbound` instead. */
71
- export type Outbound = EvidenceUrl$Outbound;
72
- }
73
-
74
- export function evidenceUrlToJSON(evidenceUrl: EvidenceUrl): string {
75
- return JSON.stringify(EvidenceUrl$outboundSchema.parse(evidenceUrl));
76
- }
77
-
78
41
  export function evidenceUrlFromJSON(
79
42
  jsonString: string,
80
43
  ): SafeParseResult<EvidenceUrl, SDKValidationError> {
@@ -45,20 +45,5 @@ export const FrameworkId = {
45
45
  export type FrameworkId = ClosedEnum<typeof FrameworkId>;
46
46
 
47
47
  /** @internal */
48
- export const FrameworkId$inboundSchema: z.ZodNativeEnum<typeof FrameworkId> = z
48
+ export const FrameworkId$outboundSchema: z.ZodNativeEnum<typeof FrameworkId> = z
49
49
  .nativeEnum(FrameworkId);
50
-
51
- /** @internal */
52
- export const FrameworkId$outboundSchema: z.ZodNativeEnum<typeof FrameworkId> =
53
- FrameworkId$inboundSchema;
54
-
55
- /**
56
- * @internal
57
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
58
- */
59
- export namespace FrameworkId$ {
60
- /** @deprecated use `FrameworkId$inboundSchema` instead. */
61
- export const inboundSchema = FrameworkId$inboundSchema;
62
- /** @deprecated use `FrameworkId$outboundSchema` instead. */
63
- export const outboundSchema = FrameworkId$outboundSchema;
64
- }
@@ -3,14 +3,7 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
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
- FrameworkId,
11
- FrameworkId$inboundSchema,
12
- FrameworkId$outboundSchema,
13
- } from "./frameworkid.js";
6
+ import { FrameworkId, FrameworkId$outboundSchema } from "./frameworkid.js";
14
7
 
15
8
  export type FrameworkSectionFrameworkId = FrameworkId | string;
16
9
 
@@ -19,13 +12,6 @@ export type FrameworkSection = {
19
12
  sectionId: string;
20
13
  };
21
14
 
22
- /** @internal */
23
- export const FrameworkSectionFrameworkId$inboundSchema: z.ZodType<
24
- FrameworkSectionFrameworkId,
25
- z.ZodTypeDef,
26
- unknown
27
- > = z.union([FrameworkId$inboundSchema, z.string()]);
28
-
29
15
  /** @internal */
30
16
  export type FrameworkSectionFrameworkId$Outbound = string | string;
31
17
 
@@ -36,19 +22,6 @@ export const FrameworkSectionFrameworkId$outboundSchema: z.ZodType<
36
22
  FrameworkSectionFrameworkId
37
23
  > = z.union([FrameworkId$outboundSchema, z.string()]);
38
24
 
39
- /**
40
- * @internal
41
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
42
- */
43
- export namespace FrameworkSectionFrameworkId$ {
44
- /** @deprecated use `FrameworkSectionFrameworkId$inboundSchema` instead. */
45
- export const inboundSchema = FrameworkSectionFrameworkId$inboundSchema;
46
- /** @deprecated use `FrameworkSectionFrameworkId$outboundSchema` instead. */
47
- export const outboundSchema = FrameworkSectionFrameworkId$outboundSchema;
48
- /** @deprecated use `FrameworkSectionFrameworkId$Outbound` instead. */
49
- export type Outbound = FrameworkSectionFrameworkId$Outbound;
50
- }
51
-
52
25
  export function frameworkSectionFrameworkIdToJSON(
53
26
  frameworkSectionFrameworkId: FrameworkSectionFrameworkId,
54
27
  ): string {
@@ -59,26 +32,6 @@ export function frameworkSectionFrameworkIdToJSON(
59
32
  );
60
33
  }
61
34
 
62
- export function frameworkSectionFrameworkIdFromJSON(
63
- jsonString: string,
64
- ): SafeParseResult<FrameworkSectionFrameworkId, SDKValidationError> {
65
- return safeParse(
66
- jsonString,
67
- (x) => FrameworkSectionFrameworkId$inboundSchema.parse(JSON.parse(x)),
68
- `Failed to parse 'FrameworkSectionFrameworkId' from JSON`,
69
- );
70
- }
71
-
72
- /** @internal */
73
- export const FrameworkSection$inboundSchema: z.ZodType<
74
- FrameworkSection,
75
- z.ZodTypeDef,
76
- unknown
77
- > = z.object({
78
- frameworkId: z.union([FrameworkId$inboundSchema, z.string()]),
79
- sectionId: z.string(),
80
- });
81
-
82
35
  /** @internal */
83
36
  export type FrameworkSection$Outbound = {
84
37
  frameworkId: string | string;
@@ -95,19 +48,6 @@ export const FrameworkSection$outboundSchema: z.ZodType<
95
48
  sectionId: z.string(),
96
49
  });
97
50
 
98
- /**
99
- * @internal
100
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
101
- */
102
- export namespace FrameworkSection$ {
103
- /** @deprecated use `FrameworkSection$inboundSchema` instead. */
104
- export const inboundSchema = FrameworkSection$inboundSchema;
105
- /** @deprecated use `FrameworkSection$outboundSchema` instead. */
106
- export const outboundSchema = FrameworkSection$outboundSchema;
107
- /** @deprecated use `FrameworkSection$Outbound` instead. */
108
- export type Outbound = FrameworkSection$Outbound;
109
- }
110
-
111
51
  export function frameworkSectionToJSON(
112
52
  frameworkSection: FrameworkSection,
113
53
  ): string {
@@ -115,13 +55,3 @@ export function frameworkSectionToJSON(
115
55
  FrameworkSection$outboundSchema.parse(frameworkSection),
116
56
  );
117
57
  }
118
-
119
- export function frameworkSectionFromJSON(
120
- jsonString: string,
121
- ): SafeParseResult<FrameworkSection, SDKValidationError> {
122
- return safeParse(
123
- jsonString,
124
- (x) => FrameworkSection$inboundSchema.parse(JSON.parse(x)),
125
- `Failed to parse 'FrameworkSection' from JSON`,
126
- );
127
- }
@@ -41,43 +41,6 @@ export const PageInfo$inboundSchema: z.ZodType<
41
41
  startCursor: z.nullable(z.string()),
42
42
  });
43
43
 
44
- /** @internal */
45
- export type PageInfo$Outbound = {
46
- endCursor: string | null;
47
- hasNextPage: boolean;
48
- hasPreviousPage: boolean;
49
- startCursor: string | null;
50
- };
51
-
52
- /** @internal */
53
- export const PageInfo$outboundSchema: z.ZodType<
54
- PageInfo$Outbound,
55
- z.ZodTypeDef,
56
- PageInfo
57
- > = z.object({
58
- endCursor: z.nullable(z.string()),
59
- hasNextPage: z.boolean(),
60
- hasPreviousPage: z.boolean(),
61
- startCursor: z.nullable(z.string()),
62
- });
63
-
64
- /**
65
- * @internal
66
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
67
- */
68
- export namespace PageInfo$ {
69
- /** @deprecated use `PageInfo$inboundSchema` instead. */
70
- export const inboundSchema = PageInfo$inboundSchema;
71
- /** @deprecated use `PageInfo$outboundSchema` instead. */
72
- export const outboundSchema = PageInfo$outboundSchema;
73
- /** @deprecated use `PageInfo$Outbound` instead. */
74
- export type Outbound = PageInfo$Outbound;
75
- }
76
-
77
- export function pageInfoToJSON(pageInfo: PageInfo): string {
78
- return JSON.stringify(PageInfo$outboundSchema.parse(pageInfo));
79
- }
80
-
81
44
  export function pageInfoFromJSON(
82
45
  jsonString: string,
83
46
  ): SafeParseResult<PageInfo, SDKValidationError> {
@@ -6,18 +6,8 @@ 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
- Audit,
11
- Audit$inboundSchema,
12
- Audit$Outbound,
13
- Audit$outboundSchema,
14
- } from "./audit.js";
15
- import {
16
- PageInfo,
17
- PageInfo$inboundSchema,
18
- PageInfo$Outbound,
19
- PageInfo$outboundSchema,
20
- } from "./pageinfo.js";
9
+ import { Audit, Audit$inboundSchema } from "./audit.js";
10
+ import { PageInfo, PageInfo$inboundSchema } from "./pageinfo.js";
21
11
 
22
12
  export type Results = {
23
13
  data: Array<Audit>;
@@ -38,39 +28,6 @@ export const Results$inboundSchema: z.ZodType<Results, z.ZodTypeDef, unknown> =
38
28
  pageInfo: PageInfo$inboundSchema,
39
29
  });
40
30
 
41
- /** @internal */
42
- export type Results$Outbound = {
43
- data: Array<Audit$Outbound>;
44
- pageInfo: PageInfo$Outbound;
45
- };
46
-
47
- /** @internal */
48
- export const Results$outboundSchema: z.ZodType<
49
- Results$Outbound,
50
- z.ZodTypeDef,
51
- Results
52
- > = z.object({
53
- data: z.array(Audit$outboundSchema),
54
- pageInfo: PageInfo$outboundSchema,
55
- });
56
-
57
- /**
58
- * @internal
59
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
- */
61
- export namespace Results$ {
62
- /** @deprecated use `Results$inboundSchema` instead. */
63
- export const inboundSchema = Results$inboundSchema;
64
- /** @deprecated use `Results$outboundSchema` instead. */
65
- export const outboundSchema = Results$outboundSchema;
66
- /** @deprecated use `Results$Outbound` instead. */
67
- export type Outbound = Results$Outbound;
68
- }
69
-
70
- export function resultsToJSON(results: Results): string {
71
- return JSON.stringify(Results$outboundSchema.parse(results));
72
- }
73
-
74
31
  export function resultsFromJSON(
75
32
  jsonString: string,
76
33
  ): SafeParseResult<Results, SDKValidationError> {
@@ -90,41 +47,6 @@ export const PaginatedResponseAudit$inboundSchema: z.ZodType<
90
47
  results: z.lazy(() => Results$inboundSchema),
91
48
  });
92
49
 
93
- /** @internal */
94
- export type PaginatedResponseAudit$Outbound = {
95
- results: Results$Outbound;
96
- };
97
-
98
- /** @internal */
99
- export const PaginatedResponseAudit$outboundSchema: z.ZodType<
100
- PaginatedResponseAudit$Outbound,
101
- z.ZodTypeDef,
102
- PaginatedResponseAudit
103
- > = z.object({
104
- results: z.lazy(() => Results$outboundSchema),
105
- });
106
-
107
- /**
108
- * @internal
109
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
110
- */
111
- export namespace PaginatedResponseAudit$ {
112
- /** @deprecated use `PaginatedResponseAudit$inboundSchema` instead. */
113
- export const inboundSchema = PaginatedResponseAudit$inboundSchema;
114
- /** @deprecated use `PaginatedResponseAudit$outboundSchema` instead. */
115
- export const outboundSchema = PaginatedResponseAudit$outboundSchema;
116
- /** @deprecated use `PaginatedResponseAudit$Outbound` instead. */
117
- export type Outbound = PaginatedResponseAudit$Outbound;
118
- }
119
-
120
- export function paginatedResponseAuditToJSON(
121
- paginatedResponseAudit: PaginatedResponseAudit,
122
- ): string {
123
- return JSON.stringify(
124
- PaginatedResponseAudit$outboundSchema.parse(paginatedResponseAudit),
125
- );
126
- }
127
-
128
50
  export function paginatedResponseAuditFromJSON(
129
51
  jsonString: string,
130
52
  ): SafeParseResult<PaginatedResponseAudit, SDKValidationError> {
@@ -9,15 +9,8 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
  import {
10
10
  AuditorControl,
11
11
  AuditorControl$inboundSchema,
12
- AuditorControl$Outbound,
13
- AuditorControl$outboundSchema,
14
12
  } from "./auditorcontrol.js";
15
- import {
16
- PageInfo,
17
- PageInfo$inboundSchema,
18
- PageInfo$Outbound,
19
- PageInfo$outboundSchema,
20
- } from "./pageinfo.js";
13
+ import { PageInfo, PageInfo$inboundSchema } from "./pageinfo.js";
21
14
 
22
15
  export type PaginatedResponseAuditorControlResults = {
23
16
  data: Array<AuditorControl>;
@@ -41,48 +34,6 @@ export const PaginatedResponseAuditorControlResults$inboundSchema: z.ZodType<
41
34
  pageInfo: PageInfo$inboundSchema,
42
35
  });
43
36
 
44
- /** @internal */
45
- export type PaginatedResponseAuditorControlResults$Outbound = {
46
- data: Array<AuditorControl$Outbound>;
47
- pageInfo: PageInfo$Outbound;
48
- };
49
-
50
- /** @internal */
51
- export const PaginatedResponseAuditorControlResults$outboundSchema: z.ZodType<
52
- PaginatedResponseAuditorControlResults$Outbound,
53
- z.ZodTypeDef,
54
- PaginatedResponseAuditorControlResults
55
- > = z.object({
56
- data: z.array(AuditorControl$outboundSchema),
57
- pageInfo: PageInfo$outboundSchema,
58
- });
59
-
60
- /**
61
- * @internal
62
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
- */
64
- export namespace PaginatedResponseAuditorControlResults$ {
65
- /** @deprecated use `PaginatedResponseAuditorControlResults$inboundSchema` instead. */
66
- export const inboundSchema =
67
- PaginatedResponseAuditorControlResults$inboundSchema;
68
- /** @deprecated use `PaginatedResponseAuditorControlResults$outboundSchema` instead. */
69
- export const outboundSchema =
70
- PaginatedResponseAuditorControlResults$outboundSchema;
71
- /** @deprecated use `PaginatedResponseAuditorControlResults$Outbound` instead. */
72
- export type Outbound = PaginatedResponseAuditorControlResults$Outbound;
73
- }
74
-
75
- export function paginatedResponseAuditorControlResultsToJSON(
76
- paginatedResponseAuditorControlResults:
77
- PaginatedResponseAuditorControlResults,
78
- ): string {
79
- return JSON.stringify(
80
- PaginatedResponseAuditorControlResults$outboundSchema.parse(
81
- paginatedResponseAuditorControlResults,
82
- ),
83
- );
84
- }
85
-
86
37
  export function paginatedResponseAuditorControlResultsFromJSON(
87
38
  jsonString: string,
88
39
  ): SafeParseResult<PaginatedResponseAuditorControlResults, SDKValidationError> {
@@ -103,43 +54,6 @@ export const PaginatedResponseAuditorControl$inboundSchema: z.ZodType<
103
54
  results: z.lazy(() => PaginatedResponseAuditorControlResults$inboundSchema),
104
55
  });
105
56
 
106
- /** @internal */
107
- export type PaginatedResponseAuditorControl$Outbound = {
108
- results: PaginatedResponseAuditorControlResults$Outbound;
109
- };
110
-
111
- /** @internal */
112
- export const PaginatedResponseAuditorControl$outboundSchema: z.ZodType<
113
- PaginatedResponseAuditorControl$Outbound,
114
- z.ZodTypeDef,
115
- PaginatedResponseAuditorControl
116
- > = z.object({
117
- results: z.lazy(() => PaginatedResponseAuditorControlResults$outboundSchema),
118
- });
119
-
120
- /**
121
- * @internal
122
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
123
- */
124
- export namespace PaginatedResponseAuditorControl$ {
125
- /** @deprecated use `PaginatedResponseAuditorControl$inboundSchema` instead. */
126
- export const inboundSchema = PaginatedResponseAuditorControl$inboundSchema;
127
- /** @deprecated use `PaginatedResponseAuditorControl$outboundSchema` instead. */
128
- export const outboundSchema = PaginatedResponseAuditorControl$outboundSchema;
129
- /** @deprecated use `PaginatedResponseAuditorControl$Outbound` instead. */
130
- export type Outbound = PaginatedResponseAuditorControl$Outbound;
131
- }
132
-
133
- export function paginatedResponseAuditorControlToJSON(
134
- paginatedResponseAuditorControl: PaginatedResponseAuditorControl,
135
- ): string {
136
- return JSON.stringify(
137
- PaginatedResponseAuditorControl$outboundSchema.parse(
138
- paginatedResponseAuditorControl,
139
- ),
140
- );
141
- }
142
-
143
57
  export function paginatedResponseAuditorControlFromJSON(
144
58
  jsonString: string,
145
59
  ): SafeParseResult<PaginatedResponseAuditorControl, SDKValidationError> {