vanta-auditor-api-sdk 0.4.1 → 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 (322) hide show
  1. package/README.md +0 -85
  2. package/examples/package-lock.json +1 -10
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/models/components/addauditorinput.d.ts +0 -5
  7. package/models/components/addauditorinput.d.ts.map +1 -1
  8. package/models/components/addauditorinput.js +1 -12
  9. package/models/components/addauditorinput.js.map +1 -1
  10. package/models/components/addcommentinput.d.ts +0 -5
  11. package/models/components/addcommentinput.d.ts.map +1 -1
  12. package/models/components/addcommentinput.js +1 -12
  13. package/models/components/addcommentinput.js.map +1 -1
  14. package/models/components/audit.d.ts +0 -21
  15. package/models/components/audit.d.ts.map +1 -1
  16. package/models/components/audit.js +1 -23
  17. package/models/components/audit.js.map +1 -1
  18. package/models/components/auditevidencestate.d.ts +0 -2
  19. package/models/components/auditevidencestate.d.ts.map +1 -1
  20. package/models/components/auditevidencestate.js +1 -3
  21. package/models/components/auditevidencestate.js.map +1 -1
  22. package/models/components/auditevidencetype.d.ts +0 -2
  23. package/models/components/auditevidencetype.d.ts.map +1 -1
  24. package/models/components/auditevidencetype.js +1 -3
  25. package/models/components/auditevidencetype.js.map +1 -1
  26. package/models/components/auditevidenceupdateinput.d.ts +0 -8
  27. package/models/components/auditevidenceupdateinput.d.ts.map +1 -1
  28. package/models/components/auditevidenceupdateinput.js +1 -19
  29. package/models/components/auditevidenceupdateinput.js.map +1 -1
  30. package/models/components/auditfocus.d.ts +0 -2
  31. package/models/components/auditfocus.d.ts.map +1 -1
  32. package/models/components/auditfocus.js +1 -3
  33. package/models/components/auditfocus.js.map +1 -1
  34. package/models/components/auditor.d.ts +0 -11
  35. package/models/components/auditor.d.ts.map +1 -1
  36. package/models/components/auditor.js +1 -13
  37. package/models/components/auditor.js.map +1 -1
  38. package/models/components/auditorcontrol.d.ts +2 -28
  39. package/models/components/auditorcontrol.d.ts.map +1 -1
  40. package/models/components/auditorcontrol.js +1 -29
  41. package/models/components/auditorcontrol.js.map +1 -1
  42. package/models/components/auditorenabledstatetransition.d.ts +0 -2
  43. package/models/components/auditorenabledstatetransition.d.ts.map +1 -1
  44. package/models/components/auditorenabledstatetransition.js +2 -4
  45. package/models/components/auditorenabledstatetransition.js.map +1 -1
  46. package/models/components/comment.d.ts +0 -13
  47. package/models/components/comment.d.ts.map +1 -1
  48. package/models/components/comment.js +1 -15
  49. package/models/components/comment.js.map +1 -1
  50. package/models/components/control.d.ts +1 -25
  51. package/models/components/control.d.ts.map +1 -1
  52. package/models/components/control.js +1 -27
  53. package/models/components/control.js.map +1 -1
  54. package/models/components/controldomain.d.ts +0 -2
  55. package/models/components/controldomain.d.ts.map +1 -1
  56. package/models/components/controldomain.js +2 -4
  57. package/models/components/controldomain.js.map +1 -1
  58. package/models/components/controlsource.d.ts +0 -2
  59. package/models/components/controlsource.d.ts.map +1 -1
  60. package/models/components/controlsource.js +1 -3
  61. package/models/components/controlsource.js.map +1 -1
  62. package/models/components/createcustomcontrolinput.d.ts +0 -7
  63. package/models/components/createcustomcontrolinput.d.ts.map +1 -1
  64. package/models/components/createcustomcontrolinput.js +2 -19
  65. package/models/components/createcustomcontrolinput.js.map +1 -1
  66. package/models/components/createcustomevidencerequestinput.d.ts +0 -5
  67. package/models/components/createcustomevidencerequestinput.d.ts.map +1 -1
  68. package/models/components/createcustomevidencerequestinput.js +1 -16
  69. package/models/components/createcustomevidencerequestinput.js.map +1 -1
  70. package/models/components/customevidencerequest.d.ts +0 -13
  71. package/models/components/customevidencerequest.d.ts.map +1 -1
  72. package/models/components/customevidencerequest.js +1 -15
  73. package/models/components/customevidencerequest.js.map +1 -1
  74. package/models/components/customfield.d.ts +0 -13
  75. package/models/components/customfield.d.ts.map +1 -1
  76. package/models/components/customfield.js +1 -16
  77. package/models/components/customfield.js.map +1 -1
  78. package/models/components/evidence.d.ts +1 -19
  79. package/models/components/evidence.d.ts.map +1 -1
  80. package/models/components/evidence.js +1 -20
  81. package/models/components/evidence.js.map +1 -1
  82. package/models/components/evidencecontrol.d.ts +0 -8
  83. package/models/components/evidencecontrol.d.ts.map +1 -1
  84. package/models/components/evidencecontrol.js +1 -10
  85. package/models/components/evidencecontrol.js.map +1 -1
  86. package/models/components/evidenceurl.d.ts +0 -10
  87. package/models/components/evidenceurl.d.ts.map +1 -1
  88. package/models/components/evidenceurl.js +1 -12
  89. package/models/components/evidenceurl.js.map +1 -1
  90. package/models/components/frameworkid.d.ts +0 -2
  91. package/models/components/frameworkid.d.ts.map +1 -1
  92. package/models/components/frameworkid.js +2 -4
  93. package/models/components/frameworkid.js.map +1 -1
  94. package/models/components/frameworksection.d.ts +0 -8
  95. package/models/components/frameworksection.d.ts.map +1 -1
  96. package/models/components/frameworksection.js +1 -17
  97. package/models/components/frameworksection.js.map +1 -1
  98. package/models/components/pageinfo.d.ts +0 -10
  99. package/models/components/pageinfo.d.ts.map +1 -1
  100. package/models/components/pageinfo.js +1 -12
  101. package/models/components/pageinfo.js.map +1 -1
  102. package/models/components/paginatedresponseaudit.d.ts +2 -17
  103. package/models/components/paginatedresponseaudit.d.ts.map +1 -1
  104. package/models/components/paginatedresponseaudit.js +1 -18
  105. package/models/components/paginatedresponseaudit.js.map +1 -1
  106. package/models/components/paginatedresponseauditorcontrol.d.ts +2 -17
  107. package/models/components/paginatedresponseauditorcontrol.d.ts.map +1 -1
  108. package/models/components/paginatedresponseauditorcontrol.js +1 -18
  109. package/models/components/paginatedresponseauditorcontrol.js.map +1 -1
  110. package/models/components/paginatedresponsecomment.d.ts +2 -17
  111. package/models/components/paginatedresponsecomment.d.ts.map +1 -1
  112. package/models/components/paginatedresponsecomment.js +1 -18
  113. package/models/components/paginatedresponsecomment.js.map +1 -1
  114. package/models/components/paginatedresponseevidence.d.ts +2 -17
  115. package/models/components/paginatedresponseevidence.d.ts.map +1 -1
  116. package/models/components/paginatedresponseevidence.js +1 -18
  117. package/models/components/paginatedresponseevidence.js.map +1 -1
  118. package/models/components/paginatedresponseevidenceurl.d.ts +2 -17
  119. package/models/components/paginatedresponseevidenceurl.d.ts.map +1 -1
  120. package/models/components/paginatedresponseevidenceurl.js +1 -18
  121. package/models/components/paginatedresponseevidenceurl.js.map +1 -1
  122. package/models/components/section.d.ts +0 -8
  123. package/models/components/section.d.ts.map +1 -1
  124. package/models/components/section.js +1 -10
  125. package/models/components/section.js.map +1 -1
  126. package/models/components/security.d.ts +0 -5
  127. package/models/components/security.d.ts.map +1 -1
  128. package/models/components/security.js +1 -10
  129. package/models/components/security.js.map +1 -1
  130. package/models/operations/createcommentforauditevidence.d.ts +0 -5
  131. package/models/operations/createcommentforauditevidence.d.ts.map +1 -1
  132. package/models/operations/createcommentforauditevidence.js +1 -16
  133. package/models/operations/createcommentforauditevidence.js.map +1 -1
  134. package/models/operations/createcustomcontrol.d.ts +0 -5
  135. package/models/operations/createcustomcontrol.d.ts.map +1 -1
  136. package/models/operations/createcustomcontrol.js +1 -15
  137. package/models/operations/createcustomcontrol.js.map +1 -1
  138. package/models/operations/createcustomevidencerequest.d.ts +0 -5
  139. package/models/operations/createcustomevidencerequest.d.ts.map +1 -1
  140. package/models/operations/createcustomevidencerequest.js +1 -15
  141. package/models/operations/createcustomevidencerequest.js.map +1 -1
  142. package/models/operations/listauditcomments.d.ts +0 -5
  143. package/models/operations/listauditcomments.d.ts.map +1 -1
  144. package/models/operations/listauditcomments.js +1 -13
  145. package/models/operations/listauditcomments.js.map +1 -1
  146. package/models/operations/listauditcontrols.d.ts +0 -5
  147. package/models/operations/listauditcontrols.d.ts.map +1 -1
  148. package/models/operations/listauditcontrols.js +1 -12
  149. package/models/operations/listauditcontrols.js.map +1 -1
  150. package/models/operations/listauditevidence.d.ts +0 -5
  151. package/models/operations/listauditevidence.d.ts.map +1 -1
  152. package/models/operations/listauditevidence.js +1 -13
  153. package/models/operations/listauditevidence.js.map +1 -1
  154. package/models/operations/listauditevidenceurls.d.ts +0 -5
  155. package/models/operations/listauditevidenceurls.d.ts.map +1 -1
  156. package/models/operations/listauditevidenceurls.js +1 -13
  157. package/models/operations/listauditevidenceurls.js.map +1 -1
  158. package/models/operations/listaudits.d.ts +0 -5
  159. package/models/operations/listaudits.d.ts.map +1 -1
  160. package/models/operations/listaudits.js +1 -13
  161. package/models/operations/listaudits.js.map +1 -1
  162. package/models/operations/updateauditevidence.d.ts +0 -5
  163. package/models/operations/updateauditevidence.d.ts.map +1 -1
  164. package/models/operations/updateauditevidence.js +1 -16
  165. package/models/operations/updateauditevidence.js.map +1 -1
  166. package/package.json +2 -12
  167. package/src/lib/config.ts +2 -2
  168. package/src/models/components/addauditorinput.ts +0 -22
  169. package/src/models/components/addcommentinput.ts +0 -24
  170. package/src/models/components/audit.ts +1 -49
  171. package/src/models/components/auditevidencestate.ts +0 -4
  172. package/src/models/components/auditevidencetype.ts +0 -4
  173. package/src/models/components/auditevidenceupdateinput.ts +0 -39
  174. package/src/models/components/auditfocus.ts +0 -3
  175. package/src/models/components/auditor.ts +0 -24
  176. package/src/models/components/auditorcontrol.ts +3 -73
  177. package/src/models/components/auditorenabledstatetransition.ts +1 -5
  178. package/src/models/components/comment.ts +0 -28
  179. package/src/models/components/control.ts +2 -63
  180. package/src/models/components/controldomain.ts +1 -5
  181. package/src/models/components/controlsource.ts +0 -4
  182. package/src/models/components/createcustomcontrolinput.ts +1 -34
  183. package/src/models/components/createcustomevidencerequestinput.ts +0 -27
  184. package/src/models/components/customevidencerequest.ts +0 -33
  185. package/src/models/components/customfield.ts +0 -30
  186. package/src/models/components/evidence.ts +0 -42
  187. package/src/models/components/evidencecontrol.ts +0 -20
  188. package/src/models/components/evidenceurl.ts +0 -22
  189. package/src/models/components/frameworkid.ts +1 -4
  190. package/src/models/components/frameworksection.ts +1 -41
  191. package/src/models/components/pageinfo.ts +0 -22
  192. package/src/models/components/paginatedresponseaudit.ts +2 -50
  193. package/src/models/components/paginatedresponseauditorcontrol.ts +1 -55
  194. package/src/models/components/paginatedresponsecomment.ts +2 -56
  195. package/src/models/components/paginatedresponseevidence.ts +2 -56
  196. package/src/models/components/paginatedresponseevidenceurl.ts +2 -58
  197. package/src/models/components/section.ts +0 -18
  198. package/src/models/components/security.ts +0 -20
  199. package/src/models/operations/createcommentforauditevidence.ts +0 -27
  200. package/src/models/operations/createcustomcontrol.ts +0 -25
  201. package/src/models/operations/createcustomevidencerequest.ts +0 -27
  202. package/src/models/operations/listauditcomments.ts +0 -25
  203. package/src/models/operations/listauditcontrols.ts +0 -22
  204. package/src/models/operations/listauditevidence.ts +0 -25
  205. package/src/models/operations/listauditevidenceurls.ts +0 -23
  206. package/src/models/operations/listaudits.ts +0 -25
  207. package/src/models/operations/updateauditevidence.ts +0 -26
  208. package/bin/mcp-server.js +0 -39009
  209. package/bin/mcp-server.js.map +0 -323
  210. package/mcp-server/build.d.mts.map +0 -1
  211. package/mcp-server/build.mjs +0 -14
  212. package/mcp-server/build.mjs.map +0 -1
  213. package/mcp-server/cli/start/command.d.ts +0 -2
  214. package/mcp-server/cli/start/command.d.ts.map +0 -1
  215. package/mcp-server/cli/start/command.js +0 -125
  216. package/mcp-server/cli/start/command.js.map +0 -1
  217. package/mcp-server/cli/start/impl.d.ts +0 -16
  218. package/mcp-server/cli/start/impl.d.ts.map +0 -1
  219. package/mcp-server/cli/start/impl.js +0 -102
  220. package/mcp-server/cli/start/impl.js.map +0 -1
  221. package/mcp-server/cli.d.ts +0 -6
  222. package/mcp-server/cli.d.ts.map +0 -1
  223. package/mcp-server/cli.js +0 -10
  224. package/mcp-server/cli.js.map +0 -1
  225. package/mcp-server/console-logger.d.ts +0 -7
  226. package/mcp-server/console-logger.d.ts.map +0 -1
  227. package/mcp-server/console-logger.js +0 -59
  228. package/mcp-server/console-logger.js.map +0 -1
  229. package/mcp-server/extensions.d.ts +0 -11
  230. package/mcp-server/extensions.d.ts.map +0 -1
  231. package/mcp-server/extensions.js +0 -6
  232. package/mcp-server/extensions.js.map +0 -1
  233. package/mcp-server/mcp-server.d.ts +0 -2
  234. package/mcp-server/mcp-server.d.ts.map +0 -1
  235. package/mcp-server/mcp-server.js +0 -29
  236. package/mcp-server/mcp-server.js.map +0 -1
  237. package/mcp-server/prompts.d.ts +0 -26
  238. package/mcp-server/prompts.d.ts.map +0 -1
  239. package/mcp-server/prompts.js +0 -51
  240. package/mcp-server/prompts.js.map +0 -1
  241. package/mcp-server/resources.d.ts +0 -32
  242. package/mcp-server/resources.d.ts.map +0 -1
  243. package/mcp-server/resources.js +0 -87
  244. package/mcp-server/resources.js.map +0 -1
  245. package/mcp-server/scopes.d.ts +0 -3
  246. package/mcp-server/scopes.d.ts.map +0 -1
  247. package/mcp-server/scopes.js +0 -8
  248. package/mcp-server/scopes.js.map +0 -1
  249. package/mcp-server/server.d.ts +0 -13
  250. package/mcp-server/server.d.ts.map +0 -1
  251. package/mcp-server/server.js +0 -52
  252. package/mcp-server/server.js.map +0 -1
  253. package/mcp-server/shared.d.ts +0 -7
  254. package/mcp-server/shared.d.ts.map +0 -1
  255. package/mcp-server/shared.js +0 -98
  256. package/mcp-server/shared.js.map +0 -1
  257. package/mcp-server/tools/auditorsCreate.d.ts +0 -8
  258. package/mcp-server/tools/auditorsCreate.d.ts.map +0 -1
  259. package/mcp-server/tools/auditorsCreate.js +0 -64
  260. package/mcp-server/tools/auditorsCreate.js.map +0 -1
  261. package/mcp-server/tools/auditsCreateCommentForEvidence.d.ts +0 -8
  262. package/mcp-server/tools/auditsCreateCommentForEvidence.d.ts.map +0 -1
  263. package/mcp-server/tools/auditsCreateCommentForEvidence.js +0 -64
  264. package/mcp-server/tools/auditsCreateCommentForEvidence.js.map +0 -1
  265. package/mcp-server/tools/auditsCreateCustomControl.d.ts +0 -8
  266. package/mcp-server/tools/auditsCreateCustomControl.d.ts.map +0 -1
  267. package/mcp-server/tools/auditsCreateCustomControl.js +0 -64
  268. package/mcp-server/tools/auditsCreateCustomControl.js.map +0 -1
  269. package/mcp-server/tools/auditsCreateCustomEvidenceRequest.d.ts +0 -8
  270. package/mcp-server/tools/auditsCreateCustomEvidenceRequest.d.ts.map +0 -1
  271. package/mcp-server/tools/auditsCreateCustomEvidenceRequest.js +0 -64
  272. package/mcp-server/tools/auditsCreateCustomEvidenceRequest.js.map +0 -1
  273. package/mcp-server/tools/auditsGetEvidenceUrls.d.ts +0 -8
  274. package/mcp-server/tools/auditsGetEvidenceUrls.d.ts.map +0 -1
  275. package/mcp-server/tools/auditsGetEvidenceUrls.js +0 -65
  276. package/mcp-server/tools/auditsGetEvidenceUrls.js.map +0 -1
  277. package/mcp-server/tools/auditsList.d.ts +0 -8
  278. package/mcp-server/tools/auditsList.d.ts.map +0 -1
  279. package/mcp-server/tools/auditsList.js +0 -64
  280. package/mcp-server/tools/auditsList.js.map +0 -1
  281. package/mcp-server/tools/auditsListComments.d.ts +0 -8
  282. package/mcp-server/tools/auditsListComments.d.ts.map +0 -1
  283. package/mcp-server/tools/auditsListComments.js +0 -64
  284. package/mcp-server/tools/auditsListComments.js.map +0 -1
  285. package/mcp-server/tools/auditsListControls.d.ts +0 -8
  286. package/mcp-server/tools/auditsListControls.d.ts.map +0 -1
  287. package/mcp-server/tools/auditsListControls.js +0 -64
  288. package/mcp-server/tools/auditsListControls.js.map +0 -1
  289. package/mcp-server/tools/auditsListEvidence.d.ts +0 -8
  290. package/mcp-server/tools/auditsListEvidence.d.ts.map +0 -1
  291. package/mcp-server/tools/auditsListEvidence.js +0 -64
  292. package/mcp-server/tools/auditsListEvidence.js.map +0 -1
  293. package/mcp-server/tools/auditsUpdateEvidence.d.ts +0 -8
  294. package/mcp-server/tools/auditsUpdateEvidence.d.ts.map +0 -1
  295. package/mcp-server/tools/auditsUpdateEvidence.js +0 -64
  296. package/mcp-server/tools/auditsUpdateEvidence.js.map +0 -1
  297. package/mcp-server/tools.d.ts +0 -25
  298. package/mcp-server/tools.d.ts.map +0 -1
  299. package/mcp-server/tools.js +0 -82
  300. package/mcp-server/tools.js.map +0 -1
  301. package/src/mcp-server/cli/start/command.ts +0 -93
  302. package/src/mcp-server/cli/start/impl.ts +0 -130
  303. package/src/mcp-server/cli.ts +0 -13
  304. package/src/mcp-server/console-logger.ts +0 -71
  305. package/src/mcp-server/extensions.ts +0 -17
  306. package/src/mcp-server/mcp-server.ts +0 -26
  307. package/src/mcp-server/prompts.ts +0 -117
  308. package/src/mcp-server/resources.ts +0 -172
  309. package/src/mcp-server/scopes.ts +0 -7
  310. package/src/mcp-server/server.ts +0 -79
  311. package/src/mcp-server/shared.ts +0 -74
  312. package/src/mcp-server/tools/auditorsCreate.ts +0 -37
  313. package/src/mcp-server/tools/auditsCreateCommentForEvidence.ts +0 -38
  314. package/src/mcp-server/tools/auditsCreateCustomControl.ts +0 -37
  315. package/src/mcp-server/tools/auditsCreateCustomEvidenceRequest.ts +0 -39
  316. package/src/mcp-server/tools/auditsGetEvidenceUrls.ts +0 -38
  317. package/src/mcp-server/tools/auditsList.ts +0 -37
  318. package/src/mcp-server/tools/auditsListComments.ts +0 -37
  319. package/src/mcp-server/tools/auditsListControls.ts +0 -37
  320. package/src/mcp-server/tools/auditsListEvidence.ts +0 -37
  321. package/src/mcp-server/tools/auditsUpdateEvidence.ts +0 -37
  322. package/src/mcp-server/tools.ts +0 -129
@@ -3,9 +3,6 @@
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
6
 
10
7
  export type AddAuditorInput = {
11
8
  /**
@@ -22,16 +19,6 @@ export type AddAuditorInput = {
22
19
  familyName: string;
23
20
  };
24
21
 
25
- /** @internal */
26
- export const AddAuditorInput$inboundSchema: z.ZodType<
27
- AddAuditorInput,
28
- z.ZodTypeDef,
29
- unknown
30
- > = z.object({
31
- email: z.string(),
32
- givenName: z.string(),
33
- familyName: z.string(),
34
- });
35
22
  /** @internal */
36
23
  export type AddAuditorInput$Outbound = {
37
24
  email: string;
@@ -55,12 +42,3 @@ export function addAuditorInputToJSON(
55
42
  ): string {
56
43
  return JSON.stringify(AddAuditorInput$outboundSchema.parse(addAuditorInput));
57
44
  }
58
- export function addAuditorInputFromJSON(
59
- jsonString: string,
60
- ): SafeParseResult<AddAuditorInput, SDKValidationError> {
61
- return safeParse(
62
- jsonString,
63
- (x) => AddAuditorInput$inboundSchema.parse(JSON.parse(x)),
64
- `Failed to parse 'AddAuditorInput' from JSON`,
65
- );
66
- }
@@ -3,9 +3,6 @@
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
6
 
10
7
  export type AddCommentInput = {
11
8
  /**
@@ -22,18 +19,6 @@ export type AddCommentInput = {
22
19
  creationDate: Date;
23
20
  };
24
21
 
25
- /** @internal */
26
- export const AddCommentInput$inboundSchema: z.ZodType<
27
- AddCommentInput,
28
- z.ZodTypeDef,
29
- unknown
30
- > = z.object({
31
- text: z.string(),
32
- email: z.string(),
33
- creationDate: z.string().datetime({ offset: true }).transform(v =>
34
- new Date(v)
35
- ),
36
- });
37
22
  /** @internal */
38
23
  export type AddCommentInput$Outbound = {
39
24
  text: string;
@@ -57,12 +42,3 @@ export function addCommentInputToJSON(
57
42
  ): string {
58
43
  return JSON.stringify(AddCommentInput$outboundSchema.parse(addCommentInput));
59
44
  }
60
- export function addCommentInputFromJSON(
61
- jsonString: string,
62
- ): SafeParseResult<AddCommentInput, SDKValidationError> {
63
- return safeParse(
64
- jsonString,
65
- (x) => AddCommentInput$inboundSchema.parse(JSON.parse(x)),
66
- `Failed to parse 'AddCommentInput' from JSON`,
67
- );
68
- }
@@ -6,11 +6,7 @@ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import {
10
- AuditFocus,
11
- AuditFocus$inboundSchema,
12
- AuditFocus$outboundSchema,
13
- } from "./auditfocus.js";
9
+ import { AuditFocus, AuditFocus$inboundSchema } from "./auditfocus.js";
14
10
 
15
11
  export type Audit = {
16
12
  /**
@@ -105,51 +101,7 @@ export const Audit$inboundSchema: z.ZodType<Audit, z.ZodTypeDef, unknown> = z
105
101
  ),
106
102
  auditFocus: AuditFocus$inboundSchema,
107
103
  });
108
- /** @internal */
109
- export type Audit$Outbound = {
110
- id: string;
111
- customerOrganizationName: string;
112
- customerDisplayName: string | null;
113
- customerOrganizationId: string;
114
- auditStartDate: string;
115
- auditEndDate: string;
116
- earlyAccessStartsAt: string | null;
117
- framework: string;
118
- allowAuditorEmails: Array<string>;
119
- allowAllAuditors: boolean;
120
- deletionDate: string | null;
121
- creationDate: string;
122
- modificationDate: string | null;
123
- completionDate: string | null;
124
- auditFocus: string;
125
- };
126
104
 
127
- /** @internal */
128
- export const Audit$outboundSchema: z.ZodType<
129
- Audit$Outbound,
130
- z.ZodTypeDef,
131
- Audit
132
- > = z.object({
133
- id: z.string(),
134
- customerOrganizationName: z.string(),
135
- customerDisplayName: z.nullable(z.string()),
136
- customerOrganizationId: z.string(),
137
- auditStartDate: z.date().transform(v => v.toISOString()),
138
- auditEndDate: z.date().transform(v => v.toISOString()),
139
- earlyAccessStartsAt: z.nullable(z.date().transform(v => v.toISOString())),
140
- framework: z.string(),
141
- allowAuditorEmails: z.array(z.string()),
142
- allowAllAuditors: z.boolean(),
143
- deletionDate: z.nullable(z.date().transform(v => v.toISOString())),
144
- creationDate: z.date().transform(v => v.toISOString()),
145
- modificationDate: z.nullable(z.date().transform(v => v.toISOString())),
146
- completionDate: z.nullable(z.date().transform(v => v.toISOString())),
147
- auditFocus: AuditFocus$outboundSchema,
148
- });
149
-
150
- export function auditToJSON(audit: Audit): string {
151
- return JSON.stringify(Audit$outboundSchema.parse(audit));
152
- }
153
105
  export function auditFromJSON(
154
106
  jsonString: string,
155
107
  ): SafeParseResult<Audit, SDKValidationError> {
@@ -19,7 +19,3 @@ export type AuditEvidenceState = ClosedEnum<typeof AuditEvidenceState>;
19
19
  export const AuditEvidenceState$inboundSchema: z.ZodNativeEnum<
20
20
  typeof AuditEvidenceState
21
21
  > = z.nativeEnum(AuditEvidenceState);
22
- /** @internal */
23
- export const AuditEvidenceState$outboundSchema: z.ZodNativeEnum<
24
- typeof AuditEvidenceState
25
- > = AuditEvidenceState$inboundSchema;
@@ -16,7 +16,3 @@ export type AuditEvidenceType = ClosedEnum<typeof AuditEvidenceType>;
16
16
  export const AuditEvidenceType$inboundSchema: z.ZodNativeEnum<
17
17
  typeof AuditEvidenceType
18
18
  > = z.nativeEnum(AuditEvidenceType);
19
- /** @internal */
20
- export const AuditEvidenceType$outboundSchema: z.ZodNativeEnum<
21
- typeof AuditEvidenceType
22
- > = AuditEvidenceType$inboundSchema;
@@ -3,12 +3,8 @@
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
6
  import {
10
7
  AuditorEnabledStateTransition,
11
- AuditorEnabledStateTransition$inboundSchema,
12
8
  AuditorEnabledStateTransition$outboundSchema,
13
9
  } from "./auditorenabledstatetransition.js";
14
10
 
@@ -24,15 +20,6 @@ export type AuditEvidenceUpdateInput = {
24
20
  statusUpdate?: StatusUpdate | undefined;
25
21
  };
26
22
 
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
23
  /** @internal */
37
24
  export type StatusUpdate$Outbound = {
38
25
  auditorEmail: string;
@@ -52,24 +39,7 @@ export const StatusUpdate$outboundSchema: z.ZodType<
52
39
  export function statusUpdateToJSON(statusUpdate: StatusUpdate): string {
53
40
  return JSON.stringify(StatusUpdate$outboundSchema.parse(statusUpdate));
54
41
  }
55
- export function statusUpdateFromJSON(
56
- jsonString: string,
57
- ): SafeParseResult<StatusUpdate, SDKValidationError> {
58
- return safeParse(
59
- jsonString,
60
- (x) => StatusUpdate$inboundSchema.parse(JSON.parse(x)),
61
- `Failed to parse 'StatusUpdate' from JSON`,
62
- );
63
- }
64
42
 
65
- /** @internal */
66
- export const AuditEvidenceUpdateInput$inboundSchema: z.ZodType<
67
- AuditEvidenceUpdateInput,
68
- z.ZodTypeDef,
69
- unknown
70
- > = z.object({
71
- statusUpdate: z.lazy(() => StatusUpdate$inboundSchema).optional(),
72
- });
73
43
  /** @internal */
74
44
  export type AuditEvidenceUpdateInput$Outbound = {
75
45
  statusUpdate?: StatusUpdate$Outbound | undefined;
@@ -91,12 +61,3 @@ export function auditEvidenceUpdateInputToJSON(
91
61
  AuditEvidenceUpdateInput$outboundSchema.parse(auditEvidenceUpdateInput),
92
62
  );
93
63
  }
94
- export function auditEvidenceUpdateInputFromJSON(
95
- jsonString: string,
96
- ): SafeParseResult<AuditEvidenceUpdateInput, SDKValidationError> {
97
- return safeParse(
98
- jsonString,
99
- (x) => AuditEvidenceUpdateInput$inboundSchema.parse(JSON.parse(x)),
100
- `Failed to parse 'AuditEvidenceUpdateInput' from JSON`,
101
- );
102
- }
@@ -14,6 +14,3 @@ export type AuditFocus = ClosedEnum<typeof AuditFocus>;
14
14
  /** @internal */
15
15
  export const AuditFocus$inboundSchema: z.ZodNativeEnum<typeof AuditFocus> = z
16
16
  .nativeEnum(AuditFocus);
17
- /** @internal */
18
- export const AuditFocus$outboundSchema: z.ZodNativeEnum<typeof AuditFocus> =
19
- AuditFocus$inboundSchema;
@@ -36,31 +36,7 @@ export const Auditor$inboundSchema: z.ZodType<Auditor, z.ZodTypeDef, unknown> =
36
36
  givenName: z.string(),
37
37
  familyName: z.string(),
38
38
  });
39
- /** @internal */
40
- export type Auditor$Outbound = {
41
- id: string;
42
- organizationId: string;
43
- email: string;
44
- givenName: string;
45
- familyName: string;
46
- };
47
39
 
48
- /** @internal */
49
- export const Auditor$outboundSchema: z.ZodType<
50
- Auditor$Outbound,
51
- z.ZodTypeDef,
52
- Auditor
53
- > = z.object({
54
- id: z.string(),
55
- organizationId: z.string(),
56
- email: z.string(),
57
- givenName: z.string(),
58
- familyName: z.string(),
59
- });
60
-
61
- export function auditorToJSON(auditor: Auditor): string {
62
- return JSON.stringify(Auditor$outboundSchema.parse(auditor));
63
- }
64
40
  export function auditorFromJSON(
65
41
  jsonString: string,
66
42
  ): SafeParseResult<Auditor, SDKValidationError> {
@@ -6,23 +6,9 @@ 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
- ControlSource,
11
- ControlSource$inboundSchema,
12
- ControlSource$outboundSchema,
13
- } from "./controlsource.js";
14
- import {
15
- CustomField,
16
- CustomField$inboundSchema,
17
- CustomField$Outbound,
18
- CustomField$outboundSchema,
19
- } from "./customfield.js";
20
- import {
21
- Section,
22
- Section$inboundSchema,
23
- Section$Outbound,
24
- Section$outboundSchema,
25
- } from "./section.js";
9
+ import { ControlSource, ControlSource$inboundSchema } from "./controlsource.js";
10
+ import { CustomField, CustomField$inboundSchema } from "./customfield.js";
11
+ import { Section, Section$inboundSchema } from "./section.js";
26
12
 
27
13
  /**
28
14
  * The control's owner.
@@ -93,27 +79,7 @@ export const Owner$inboundSchema: z.ZodType<Owner, z.ZodTypeDef, unknown> = z
93
79
  displayName: z.string(),
94
80
  emailAddress: z.string(),
95
81
  });
96
- /** @internal */
97
- export type Owner$Outbound = {
98
- id: string;
99
- displayName: string;
100
- emailAddress: string;
101
- };
102
82
 
103
- /** @internal */
104
- export const Owner$outboundSchema: z.ZodType<
105
- Owner$Outbound,
106
- z.ZodTypeDef,
107
- Owner
108
- > = z.object({
109
- id: z.string(),
110
- displayName: z.string(),
111
- emailAddress: z.string(),
112
- });
113
-
114
- export function ownerToJSON(owner: Owner): string {
115
- return JSON.stringify(Owner$outboundSchema.parse(owner));
116
- }
117
83
  export function ownerFromJSON(
118
84
  jsonString: string,
119
85
  ): SafeParseResult<Owner, SDKValidationError> {
@@ -142,43 +108,7 @@ export const AuditorControl$inboundSchema: z.ZodType<
142
108
  framework: z.string(),
143
109
  sections: z.array(Section$inboundSchema),
144
110
  });
145
- /** @internal */
146
- export type AuditorControl$Outbound = {
147
- id: string;
148
- externalId: string | null;
149
- name: string;
150
- description: string;
151
- source: string;
152
- domains: Array<string>;
153
- owner: Owner$Outbound | null;
154
- role?: string | null | undefined;
155
- customFields: Array<CustomField$Outbound>;
156
- framework: string;
157
- sections: Array<Section$Outbound>;
158
- };
159
-
160
- /** @internal */
161
- export const AuditorControl$outboundSchema: z.ZodType<
162
- AuditorControl$Outbound,
163
- z.ZodTypeDef,
164
- AuditorControl
165
- > = z.object({
166
- id: z.string(),
167
- externalId: z.nullable(z.string()),
168
- name: z.string(),
169
- description: z.string(),
170
- source: ControlSource$outboundSchema,
171
- domains: z.array(z.string()),
172
- owner: z.nullable(z.lazy(() => Owner$outboundSchema)),
173
- role: z.nullable(z.string()).optional(),
174
- customFields: z.array(CustomField$outboundSchema),
175
- framework: z.string(),
176
- sections: z.array(Section$outboundSchema),
177
- });
178
111
 
179
- export function auditorControlToJSON(auditorControl: AuditorControl): string {
180
- return JSON.stringify(AuditorControl$outboundSchema.parse(auditorControl));
181
- }
182
112
  export function auditorControlFromJSON(
183
113
  jsonString: string,
184
114
  ): SafeParseResult<AuditorControl, SDKValidationError> {
@@ -16,11 +16,7 @@ export type AuditorEnabledStateTransition = ClosedEnum<
16
16
  typeof AuditorEnabledStateTransition
17
17
  >;
18
18
 
19
- /** @internal */
20
- export const AuditorEnabledStateTransition$inboundSchema: z.ZodNativeEnum<
21
- typeof AuditorEnabledStateTransition
22
- > = z.nativeEnum(AuditorEnabledStateTransition);
23
19
  /** @internal */
24
20
  export const AuditorEnabledStateTransition$outboundSchema: z.ZodNativeEnum<
25
21
  typeof AuditorEnabledStateTransition
26
- > = AuditorEnabledStateTransition$inboundSchema;
22
+ > = z.nativeEnum(AuditorEnabledStateTransition);
@@ -55,35 +55,7 @@ export const Comment$inboundSchema: z.ZodType<Comment, z.ZodTypeDef, unknown> =
55
55
  ),
56
56
  email: z.nullable(z.string()),
57
57
  });
58
- /** @internal */
59
- export type Comment$Outbound = {
60
- id: string;
61
- auditEvidenceId: string;
62
- text: string;
63
- creationDate: string;
64
- modificationDate: string | null;
65
- deletionDate: string | null;
66
- email: string | null;
67
- };
68
-
69
- /** @internal */
70
- export const Comment$outboundSchema: z.ZodType<
71
- Comment$Outbound,
72
- z.ZodTypeDef,
73
- Comment
74
- > = z.object({
75
- id: z.string(),
76
- auditEvidenceId: z.string(),
77
- text: z.string(),
78
- creationDate: z.date().transform(v => v.toISOString()),
79
- modificationDate: z.nullable(z.date().transform(v => v.toISOString())),
80
- deletionDate: z.nullable(z.date().transform(v => v.toISOString())),
81
- email: z.nullable(z.string()),
82
- });
83
58
 
84
- export function commentToJSON(comment: Comment): string {
85
- return JSON.stringify(Comment$outboundSchema.parse(comment));
86
- }
87
59
  export function commentFromJSON(
88
60
  jsonString: string,
89
61
  ): SafeParseResult<Comment, SDKValidationError> {
@@ -6,17 +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
- ControlSource,
11
- ControlSource$inboundSchema,
12
- ControlSource$outboundSchema,
13
- } from "./controlsource.js";
14
- import {
15
- CustomField,
16
- CustomField$inboundSchema,
17
- CustomField$Outbound,
18
- CustomField$outboundSchema,
19
- } from "./customfield.js";
9
+ import { ControlSource, ControlSource$inboundSchema } from "./controlsource.js";
10
+ import { CustomField, CustomField$inboundSchema } from "./customfield.js";
20
11
 
21
12
  /**
22
13
  * The control's owner.
@@ -82,27 +73,7 @@ export const ControlOwner$inboundSchema: z.ZodType<
82
73
  displayName: z.string(),
83
74
  emailAddress: z.string(),
84
75
  });
85
- /** @internal */
86
- export type ControlOwner$Outbound = {
87
- id: string;
88
- displayName: string;
89
- emailAddress: string;
90
- };
91
76
 
92
- /** @internal */
93
- export const ControlOwner$outboundSchema: z.ZodType<
94
- ControlOwner$Outbound,
95
- z.ZodTypeDef,
96
- ControlOwner
97
- > = z.object({
98
- id: z.string(),
99
- displayName: z.string(),
100
- emailAddress: z.string(),
101
- });
102
-
103
- export function controlOwnerToJSON(controlOwner: ControlOwner): string {
104
- return JSON.stringify(ControlOwner$outboundSchema.parse(controlOwner));
105
- }
106
77
  export function controlOwnerFromJSON(
107
78
  jsonString: string,
108
79
  ): SafeParseResult<ControlOwner, SDKValidationError> {
@@ -126,39 +97,7 @@ export const Control$inboundSchema: z.ZodType<Control, z.ZodTypeDef, unknown> =
126
97
  role: z.nullable(z.string()).optional(),
127
98
  customFields: z.array(CustomField$inboundSchema),
128
99
  });
129
- /** @internal */
130
- export type Control$Outbound = {
131
- id: string;
132
- externalId: string | null;
133
- name: string;
134
- description: string;
135
- source: string;
136
- domains: Array<string>;
137
- owner: ControlOwner$Outbound | null;
138
- role?: string | null | undefined;
139
- customFields: Array<CustomField$Outbound>;
140
- };
141
100
 
142
- /** @internal */
143
- export const Control$outboundSchema: z.ZodType<
144
- Control$Outbound,
145
- z.ZodTypeDef,
146
- Control
147
- > = z.object({
148
- id: z.string(),
149
- externalId: z.nullable(z.string()),
150
- name: z.string(),
151
- description: z.string(),
152
- source: ControlSource$outboundSchema,
153
- domains: z.array(z.string()),
154
- owner: z.nullable(z.lazy(() => ControlOwner$outboundSchema)),
155
- role: z.nullable(z.string()).optional(),
156
- customFields: z.array(CustomField$outboundSchema),
157
- });
158
-
159
- export function controlToJSON(control: Control): string {
160
- return JSON.stringify(Control$outboundSchema.parse(control));
161
- }
162
101
  export function controlFromJSON(
163
102
  jsonString: string,
164
103
  ): SafeParseResult<Control, SDKValidationError> {
@@ -48,11 +48,7 @@ export const ControlDomain = {
48
48
  } as const;
49
49
  export type ControlDomain = ClosedEnum<typeof ControlDomain>;
50
50
 
51
- /** @internal */
52
- export const ControlDomain$inboundSchema: z.ZodNativeEnum<
53
- typeof ControlDomain
54
- > = z.nativeEnum(ControlDomain);
55
51
  /** @internal */
56
52
  export const ControlDomain$outboundSchema: z.ZodNativeEnum<
57
53
  typeof ControlDomain
58
- > = ControlDomain$inboundSchema;
54
+ > = z.nativeEnum(ControlDomain);
@@ -15,7 +15,3 @@ export type ControlSource = ClosedEnum<typeof ControlSource>;
15
15
  export const ControlSource$inboundSchema: z.ZodNativeEnum<
16
16
  typeof ControlSource
17
17
  > = z.nativeEnum(ControlSource);
18
- /** @internal */
19
- export const ControlSource$outboundSchema: z.ZodNativeEnum<
20
- typeof ControlSource
21
- > = ControlSource$inboundSchema;
@@ -3,18 +3,13 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
6
  import { ClosedEnum } from "../../types/enums.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
7
  import {
11
8
  ControlDomain,
12
- ControlDomain$inboundSchema,
13
9
  ControlDomain$outboundSchema,
14
10
  } from "./controldomain.js";
15
11
  import {
16
12
  FrameworkSection,
17
- FrameworkSection$inboundSchema,
18
13
  FrameworkSection$Outbound,
19
14
  FrameworkSection$outboundSchema,
20
15
  } from "./frameworksection.js";
@@ -70,29 +65,10 @@ export type CreateCustomControlInput = {
70
65
  };
71
66
 
72
67
  /** @internal */
73
- export const Role$inboundSchema: z.ZodNativeEnum<typeof Role> = z.nativeEnum(
68
+ export const Role$outboundSchema: z.ZodNativeEnum<typeof Role> = z.nativeEnum(
74
69
  Role,
75
70
  );
76
- /** @internal */
77
- export const Role$outboundSchema: z.ZodNativeEnum<typeof Role> =
78
- Role$inboundSchema;
79
71
 
80
- /** @internal */
81
- export const CreateCustomControlInput$inboundSchema: z.ZodType<
82
- CreateCustomControlInput,
83
- z.ZodTypeDef,
84
- unknown
85
- > = z.object({
86
- externalId: z.string(),
87
- name: z.nullable(z.string()),
88
- description: z.string(),
89
- effectiveDate: z.string().datetime({ offset: true }).transform(v =>
90
- new Date(v)
91
- ),
92
- category: ControlDomain$inboundSchema,
93
- sections: z.nullable(z.array(FrameworkSection$inboundSchema)).optional(),
94
- role: z.nullable(Role$inboundSchema).optional(),
95
- });
96
72
  /** @internal */
97
73
  export type CreateCustomControlInput$Outbound = {
98
74
  externalId: string;
@@ -126,12 +102,3 @@ export function createCustomControlInputToJSON(
126
102
  CreateCustomControlInput$outboundSchema.parse(createCustomControlInput),
127
103
  );
128
104
  }
129
- export function createCustomControlInputFromJSON(
130
- jsonString: string,
131
- ): SafeParseResult<CreateCustomControlInput, SDKValidationError> {
132
- return safeParse(
133
- jsonString,
134
- (x) => CreateCustomControlInput$inboundSchema.parse(JSON.parse(x)),
135
- `Failed to parse 'CreateCustomControlInput' from JSON`,
136
- );
137
- }
@@ -3,12 +3,8 @@
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
6
  import {
10
7
  RecurrenceDuration,
11
- RecurrenceDuration$inboundSchema,
12
8
  RecurrenceDuration$outboundSchema,
13
9
  } from "./recurrenceduration.js";
14
10
 
@@ -37,20 +33,6 @@ export type CreateCustomEvidenceRequestInput = {
37
33
  auditorEmail: string;
38
34
  };
39
35
 
40
- /** @internal */
41
- export const CreateCustomEvidenceRequestInput$inboundSchema: z.ZodType<
42
- CreateCustomEvidenceRequestInput,
43
- z.ZodTypeDef,
44
- unknown
45
- > = z.object({
46
- controlIds: z.array(z.string()),
47
- title: z.string(),
48
- description: z.string(),
49
- cadence: RecurrenceDuration$inboundSchema,
50
- reminderWindow: RecurrenceDuration$inboundSchema,
51
- isRestricted: z.boolean(),
52
- auditorEmail: z.string(),
53
- });
54
36
  /** @internal */
55
37
  export type CreateCustomEvidenceRequestInput$Outbound = {
56
38
  controlIds: Array<string>;
@@ -86,12 +68,3 @@ export function createCustomEvidenceRequestInputToJSON(
86
68
  ),
87
69
  );
88
70
  }
89
- export function createCustomEvidenceRequestInputFromJSON(
90
- jsonString: string,
91
- ): SafeParseResult<CreateCustomEvidenceRequestInput, SDKValidationError> {
92
- return safeParse(
93
- jsonString,
94
- (x) => CreateCustomEvidenceRequestInput$inboundSchema.parse(JSON.parse(x)),
95
- `Failed to parse 'CreateCustomEvidenceRequestInput' from JSON`,
96
- );
97
- }
@@ -9,7 +9,6 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
  import {
10
10
  RecurrenceDuration,
11
11
  RecurrenceDuration$inboundSchema,
12
- RecurrenceDuration$outboundSchema,
13
12
  } from "./recurrenceduration.js";
14
13
 
15
14
  export type CustomEvidenceRequest = {
@@ -51,39 +50,7 @@ export const CustomEvidenceRequest$inboundSchema: z.ZodType<
51
50
  reminderWindow: RecurrenceDuration$inboundSchema,
52
51
  isRestricted: z.boolean(),
53
52
  });
54
- /** @internal */
55
- export type CustomEvidenceRequest$Outbound = {
56
- id: string;
57
- controlIds: Array<string>;
58
- title: string;
59
- description: string;
60
- cadence: string;
61
- reminderWindow: string;
62
- isRestricted: boolean;
63
- };
64
53
 
65
- /** @internal */
66
- export const CustomEvidenceRequest$outboundSchema: z.ZodType<
67
- CustomEvidenceRequest$Outbound,
68
- z.ZodTypeDef,
69
- CustomEvidenceRequest
70
- > = z.object({
71
- id: z.string(),
72
- controlIds: z.array(z.string()),
73
- title: z.string(),
74
- description: z.string(),
75
- cadence: RecurrenceDuration$outboundSchema,
76
- reminderWindow: RecurrenceDuration$outboundSchema,
77
- isRestricted: z.boolean(),
78
- });
79
-
80
- export function customEvidenceRequestToJSON(
81
- customEvidenceRequest: CustomEvidenceRequest,
82
- ): string {
83
- return JSON.stringify(
84
- CustomEvidenceRequest$outboundSchema.parse(customEvidenceRequest),
85
- );
86
- }
87
54
  export function customEvidenceRequestFromJSON(
88
55
  jsonString: string,
89
56
  ): SafeParseResult<CustomEvidenceRequest, SDKValidationError> {