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.
- package/.devcontainer/README.md +30 -0
- package/FUNCTIONS.md +104 -0
- package/README.md +440 -0
- package/RUNTIMES.md +48 -0
- package/core.d.ts +10 -0
- package/core.d.ts.map +1 -0
- package/core.js +17 -0
- package/core.js.map +1 -0
- package/docs/sdks/auditors/README.md +88 -0
- package/docs/sdks/audits/README.md +748 -0
- package/docs/sdks/vanta/README.md +7 -0
- package/funcs/auditorsCreate.d.ts +15 -0
- package/funcs/auditorsCreate.d.ts.map +1 -0
- package/funcs/auditorsCreate.js +106 -0
- package/funcs/auditorsCreate.js.map +1 -0
- package/funcs/auditsCreateCommentForEvidence.d.ts +16 -0
- package/funcs/auditsCreateCommentForEvidence.d.ts.map +1 -0
- package/funcs/auditsCreateCommentForEvidence.js +117 -0
- package/funcs/auditsCreateCommentForEvidence.js.map +1 -0
- package/funcs/auditsCreateCustomControl.d.ts +16 -0
- package/funcs/auditsCreateCustomControl.d.ts.map +1 -0
- package/funcs/auditsCreateCustomControl.js +115 -0
- package/funcs/auditsCreateCustomControl.js.map +1 -0
- package/funcs/auditsCreateCustomEvidenceRequest.d.ts +16 -0
- package/funcs/auditsCreateCustomEvidenceRequest.d.ts.map +1 -0
- package/funcs/auditsCreateCustomEvidenceRequest.js +115 -0
- package/funcs/auditsCreateCustomEvidenceRequest.js.map +1 -0
- package/funcs/auditsGetEvidenceUrls.d.ts +16 -0
- package/funcs/auditsGetEvidenceUrls.d.ts.map +1 -0
- package/funcs/auditsGetEvidenceUrls.js +121 -0
- package/funcs/auditsGetEvidenceUrls.js.map +1 -0
- package/funcs/auditsList.d.ts +16 -0
- package/funcs/auditsList.d.ts.map +1 -0
- package/funcs/auditsList.js +112 -0
- package/funcs/auditsList.js.map +1 -0
- package/funcs/auditsListComments.d.ts +16 -0
- package/funcs/auditsListComments.d.ts.map +1 -0
- package/funcs/auditsListComments.js +118 -0
- package/funcs/auditsListComments.js.map +1 -0
- package/funcs/auditsListControls.d.ts +16 -0
- package/funcs/auditsListControls.d.ts.map +1 -0
- package/funcs/auditsListControls.js +117 -0
- package/funcs/auditsListControls.js.map +1 -0
- package/funcs/auditsListEvidence.d.ts +16 -0
- package/funcs/auditsListEvidence.d.ts.map +1 -0
- package/funcs/auditsListEvidence.js +118 -0
- package/funcs/auditsListEvidence.js.map +1 -0
- package/funcs/auditsUpdateEvidence.d.ts +16 -0
- package/funcs/auditsUpdateEvidence.d.ts.map +1 -0
- package/funcs/auditsUpdateEvidence.js +119 -0
- package/funcs/auditsUpdateEvidence.js.map +1 -0
- package/hooks/hooks.d.ts +24 -0
- package/hooks/hooks.d.ts.map +1 -0
- package/hooks/hooks.js +86 -0
- package/hooks/hooks.js.map +1 -0
- package/hooks/index.d.ts +3 -0
- package/hooks/index.d.ts.map +1 -0
- package/hooks/index.js +22 -0
- package/hooks/index.js.map +1 -0
- package/hooks/registration.d.ts +3 -0
- package/hooks/registration.d.ts.map +1 -0
- package/hooks/registration.js +15 -0
- package/hooks/registration.js.map +1 -0
- package/hooks/types.d.ts +77 -0
- package/hooks/types.d.ts.map +1 -0
- package/hooks/types.js +6 -0
- package/hooks/types.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +46 -0
- package/index.js.map +1 -0
- package/lib/base64.d.ts +10 -0
- package/lib/base64.d.ts.map +1 -0
- package/lib/base64.js +71 -0
- package/lib/base64.js.map +1 -0
- package/lib/config.d.ts +34 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/config.js +35 -0
- package/lib/config.js.map +1 -0
- package/lib/dlv.d.ts +14 -0
- package/lib/dlv.d.ts.map +1 -0
- package/lib/dlv.js +49 -0
- package/lib/dlv.js.map +1 -0
- package/lib/encodings.d.ts +51 -0
- package/lib/encodings.d.ts.map +1 -0
- package/lib/encodings.js +342 -0
- package/lib/encodings.js.map +1 -0
- package/lib/env.d.ts +15 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +65 -0
- package/lib/env.js.map +1 -0
- package/lib/files.d.ts +8 -0
- package/lib/files.d.ts.map +1 -0
- package/lib/files.js +36 -0
- package/lib/files.js.map +1 -0
- package/lib/http.d.ts +67 -0
- package/lib/http.d.ts.map +1 -0
- package/lib/http.js +217 -0
- package/lib/http.js.map +1 -0
- package/lib/is-plain-object.d.ts +2 -0
- package/lib/is-plain-object.d.ts.map +1 -0
- package/lib/is-plain-object.js +41 -0
- package/lib/is-plain-object.js.map +1 -0
- package/lib/logger.d.ts +6 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +6 -0
- package/lib/logger.js.map +1 -0
- package/lib/matchers.d.ts +64 -0
- package/lib/matchers.d.ts.map +1 -0
- package/lib/matchers.js +204 -0
- package/lib/matchers.js.map +1 -0
- package/lib/primitives.d.ts +22 -0
- package/lib/primitives.d.ts.map +1 -0
- package/lib/primitives.js +94 -0
- package/lib/primitives.js.map +1 -0
- package/lib/retries.d.ts +38 -0
- package/lib/retries.d.ts.map +1 -0
- package/lib/retries.js +154 -0
- package/lib/retries.js.map +1 -0
- package/lib/schemas.d.ts +19 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +59 -0
- package/lib/schemas.js.map +1 -0
- package/lib/sdks.d.ts +60 -0
- package/lib/sdks.d.ts.map +1 -0
- package/lib/sdks.js +277 -0
- package/lib/sdks.js.map +1 -0
- package/lib/security.d.ts +82 -0
- package/lib/security.d.ts.map +1 -0
- package/lib/security.js +139 -0
- package/lib/security.js.map +1 -0
- package/lib/url.d.ts +5 -0
- package/lib/url.d.ts.map +1 -0
- package/lib/url.js +25 -0
- package/lib/url.js.map +1 -0
- package/models/components/addauditorinput.d.ts +42 -0
- package/models/components/addauditorinput.d.ts.map +1 -0
- package/models/components/addauditorinput.js +73 -0
- package/models/components/addauditorinput.js.map +1 -0
- package/models/components/addcommentinput.d.ts +42 -0
- package/models/components/addcommentinput.d.ts.map +1 -0
- package/models/components/addcommentinput.js +73 -0
- package/models/components/addcommentinput.js.map +1 -0
- package/models/components/audit.d.ts +97 -0
- package/models/components/audit.d.ts.map +1 -0
- package/models/components/audit.js +96 -0
- package/models/components/audit.js.map +1 -0
- package/models/components/auditevidencestate.d.ts +40 -0
- package/models/components/auditevidencestate.d.ts.map +1 -0
- package/models/components/auditevidencestate.js +64 -0
- package/models/components/auditevidencestate.js.map +1 -0
- package/models/components/auditevidencetype.d.ts +31 -0
- package/models/components/auditevidencetype.d.ts.map +1 -0
- package/models/components/auditevidencetype.js +61 -0
- package/models/components/auditevidencetype.js.map +1 -0
- package/models/components/auditevidenceupdateinput.d.ts +60 -0
- package/models/components/auditevidenceupdateinput.d.ts.map +1 -0
- package/models/components/auditevidenceupdateinput.js +99 -0
- package/models/components/auditevidenceupdateinput.js.map +1 -0
- package/models/components/auditor.d.ts +49 -0
- package/models/components/auditor.d.ts.map +1 -0
- package/models/components/auditor.js +77 -0
- package/models/components/auditor.js.map +1 -0
- package/models/components/auditorcontrol.d.ts +111 -0
- package/models/components/auditorcontrol.d.ts.map +1 -0
- package/models/components/auditorcontrol.js +118 -0
- package/models/components/auditorcontrol.js.map +1 -0
- package/models/components/auditorenabledstatetransition.d.ts +34 -0
- package/models/components/auditorenabledstatetransition.d.ts.map +1 -0
- package/models/components/auditorenabledstatetransition.js +62 -0
- package/models/components/auditorenabledstatetransition.js.map +1 -0
- package/models/components/comment.d.ts +57 -0
- package/models/components/comment.d.ts.map +1 -0
- package/models/components/comment.js +79 -0
- package/models/components/comment.js.map +1 -0
- package/models/components/control.d.ts +106 -0
- package/models/components/control.d.ts.map +1 -0
- package/models/components/control.js +115 -0
- package/models/components/control.js.map +1 -0
- package/models/components/controldomain.d.ts +136 -0
- package/models/components/controldomain.d.ts.map +1 -0
- package/models/components/controldomain.js +96 -0
- package/models/components/controldomain.js.map +1 -0
- package/models/components/controlsource.d.ts +28 -0
- package/models/components/controlsource.d.ts.map +1 -0
- package/models/components/controlsource.js +60 -0
- package/models/components/controlsource.js.map +1 -0
- package/models/components/createcustomcontrolinput.d.ts +105 -0
- package/models/components/createcustomcontrolinput.d.ts.map +1 -0
- package/models/components/createcustomcontrolinput.js +109 -0
- package/models/components/createcustomcontrolinput.js.map +1 -0
- package/models/components/createcustomevidencerequestinput.d.ts +52 -0
- package/models/components/createcustomevidencerequestinput.d.ts.map +1 -0
- package/models/components/createcustomevidencerequestinput.js +80 -0
- package/models/components/createcustomevidencerequestinput.js.map +1 -0
- package/models/components/customevidencerequest.d.ts +57 -0
- package/models/components/customevidencerequest.d.ts.map +1 -0
- package/models/components/customevidencerequest.js +82 -0
- package/models/components/customevidencerequest.js.map +1 -0
- package/models/components/evidence.d.ts +84 -0
- package/models/components/evidence.d.ts.map +1 -0
- package/models/components/evidence.js +94 -0
- package/models/components/evidence.js.map +1 -0
- package/models/components/evidencecontrol.d.ts +37 -0
- package/models/components/evidencecontrol.d.ts.map +1 -0
- package/models/components/evidencecontrol.js +71 -0
- package/models/components/evidencecontrol.js.map +1 -0
- package/models/components/evidenceurl.d.ts +47 -0
- package/models/components/evidenceurl.d.ts.map +1 -0
- package/models/components/evidenceurl.js +75 -0
- package/models/components/evidenceurl.js.map +1 -0
- package/models/components/frameworkid.d.ts +127 -0
- package/models/components/frameworkid.d.ts.map +1 -0
- package/models/components/frameworkid.js +94 -0
- package/models/components/frameworkid.js.map +1 -0
- package/models/components/frameworksection.d.ts +53 -0
- package/models/components/frameworksection.d.ts.map +1 -0
- package/models/components/frameworksection.js +95 -0
- package/models/components/frameworksection.js.map +1 -0
- package/models/components/index.d.ts +30 -0
- package/models/components/index.d.ts.map +1 -0
- package/models/components/index.js +49 -0
- package/models/components/index.js.map +1 -0
- package/models/components/pageinfo.d.ts +50 -0
- package/models/components/pageinfo.d.ts.map +1 -0
- package/models/components/pageinfo.js +75 -0
- package/models/components/pageinfo.js.map +1 -0
- package/models/components/paginatedresponseaudit.d.ts +61 -0
- package/models/components/paginatedresponseaudit.d.ts.map +1 -0
- package/models/components/paginatedresponseaudit.js +100 -0
- package/models/components/paginatedresponseaudit.js.map +1 -0
- package/models/components/paginatedresponseauditorcontrol.d.ts +61 -0
- package/models/components/paginatedresponseauditorcontrol.d.ts.map +1 -0
- package/models/components/paginatedresponseauditorcontrol.js +100 -0
- package/models/components/paginatedresponseauditorcontrol.js.map +1 -0
- package/models/components/paginatedresponsecomment.d.ts +61 -0
- package/models/components/paginatedresponsecomment.d.ts.map +1 -0
- package/models/components/paginatedresponsecomment.js +100 -0
- package/models/components/paginatedresponsecomment.js.map +1 -0
- package/models/components/paginatedresponseevidence.d.ts +61 -0
- package/models/components/paginatedresponseevidence.d.ts.map +1 -0
- package/models/components/paginatedresponseevidence.js +100 -0
- package/models/components/paginatedresponseevidence.js.map +1 -0
- package/models/components/paginatedresponseevidenceurl.d.ts +61 -0
- package/models/components/paginatedresponseevidenceurl.d.ts.map +1 -0
- package/models/components/paginatedresponseevidenceurl.js +100 -0
- package/models/components/paginatedresponseevidenceurl.js.map +1 -0
- package/models/components/recurrenceduration.d.ts +43 -0
- package/models/components/recurrenceduration.d.ts.map +1 -0
- package/models/components/recurrenceduration.js +65 -0
- package/models/components/recurrenceduration.js.map +1 -0
- package/models/components/security.d.ts +29 -0
- package/models/components/security.d.ts.map +1 -0
- package/models/components/security.js +69 -0
- package/models/components/security.js.map +1 -0
- package/models/errors/apierror.d.ts +8 -0
- package/models/errors/apierror.d.ts.map +1 -0
- package/models/errors/apierror.js +21 -0
- package/models/errors/apierror.js.map +1 -0
- package/models/errors/httpclienterrors.d.ts +44 -0
- package/models/errors/httpclienterrors.d.ts.map +1 -0
- package/models/errors/httpclienterrors.js +78 -0
- package/models/errors/httpclienterrors.js.map +1 -0
- package/models/errors/index.d.ts +4 -0
- package/models/errors/index.d.ts.map +1 -0
- package/models/errors/index.js +23 -0
- package/models/errors/index.js.map +1 -0
- package/models/errors/sdkvalidationerror.d.ts +20 -0
- package/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/models/errors/sdkvalidationerror.js +115 -0
- package/models/errors/sdkvalidationerror.js.map +1 -0
- package/models/operations/createcommentforauditevidence.d.ts +34 -0
- package/models/operations/createcommentforauditevidence.d.ts.map +1 -0
- package/models/operations/createcommentforauditevidence.js +83 -0
- package/models/operations/createcommentforauditevidence.js.map +1 -0
- package/models/operations/createcustomcontrol.d.ts +32 -0
- package/models/operations/createcustomcontrol.d.ts.map +1 -0
- package/models/operations/createcustomcontrol.js +81 -0
- package/models/operations/createcustomcontrol.js.map +1 -0
- package/models/operations/createcustomevidencerequest.d.ts +32 -0
- package/models/operations/createcustomevidencerequest.d.ts.map +1 -0
- package/models/operations/createcustomevidencerequest.js +81 -0
- package/models/operations/createcustomevidencerequest.js.map +1 -0
- package/models/operations/index.d.ts +10 -0
- package/models/operations/index.d.ts.map +1 -0
- package/models/operations/index.js +29 -0
- package/models/operations/index.js.map +1 -0
- package/models/operations/listauditcomments.d.ts +38 -0
- package/models/operations/listauditcomments.d.ts.map +1 -0
- package/models/operations/listauditcomments.js +75 -0
- package/models/operations/listauditcomments.js.map +1 -0
- package/models/operations/listauditcontrols.d.ts +33 -0
- package/models/operations/listauditcontrols.d.ts.map +1 -0
- package/models/operations/listauditcontrols.js +73 -0
- package/models/operations/listauditcontrols.js.map +1 -0
- package/models/operations/listauditevidence.d.ts +38 -0
- package/models/operations/listauditevidence.d.ts.map +1 -0
- package/models/operations/listauditevidence.js +75 -0
- package/models/operations/listauditevidence.js.map +1 -0
- package/models/operations/listauditevidenceurls.d.ts +35 -0
- package/models/operations/listauditevidenceurls.d.ts.map +1 -0
- package/models/operations/listauditevidenceurls.js +75 -0
- package/models/operations/listauditevidenceurls.js.map +1 -0
- package/models/operations/listaudits.d.ts +36 -0
- package/models/operations/listaudits.d.ts.map +1 -0
- package/models/operations/listaudits.js +73 -0
- package/models/operations/listaudits.js.map +1 -0
- package/models/operations/updateauditevidence.d.ts +34 -0
- package/models/operations/updateauditevidence.d.ts.map +1 -0
- package/models/operations/updateauditevidence.js +83 -0
- package/models/operations/updateauditevidence.js.map +1 -0
- package/package.json +27 -0
- package/sdk/auditors.d.ts +12 -0
- package/sdk/auditors.d.ts.map +1 -0
- package/sdk/auditors.js +22 -0
- package/sdk/auditors.js.map +1 -0
- package/sdk/audits.d.ts +69 -0
- package/sdk/audits.d.ts.map +1 -0
- package/sdk/audits.js +102 -0
- package/sdk/audits.js.map +1 -0
- package/sdk/index.d.ts +2 -0
- package/sdk/index.d.ts.map +1 -0
- package/sdk/index.js +21 -0
- package/sdk/index.js.map +1 -0
- package/sdk/sdk.d.ts +10 -0
- package/sdk/sdk.d.ts.map +1 -0
- package/sdk/sdk.js +19 -0
- package/sdk/sdk.js.map +1 -0
- package/src/core.ts +13 -0
- package/src/funcs/auditorsCreate.ts +124 -0
- package/src/funcs/auditsCreateCommentForEvidence.ts +141 -0
- package/src/funcs/auditsCreateCustomControl.ts +137 -0
- package/src/funcs/auditsCreateCustomEvidenceRequest.ts +137 -0
- package/src/funcs/auditsGetEvidenceUrls.ts +144 -0
- package/src/funcs/auditsList.ts +131 -0
- package/src/funcs/auditsListComments.ts +138 -0
- package/src/funcs/auditsListControls.ts +137 -0
- package/src/funcs/auditsListEvidence.ts +138 -0
- package/src/funcs/auditsUpdateEvidence.ts +141 -0
- package/src/hooks/hooks.ts +132 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/registration.ts +14 -0
- package/src/hooks/types.ts +109 -0
- package/src/index.ts +7 -0
- package/src/lib/base64.ts +37 -0
- package/src/lib/config.ts +61 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +449 -0
- package/src/lib/env.ts +41 -0
- package/src/lib/files.ts +40 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +322 -0
- package/src/lib/primitives.ts +122 -0
- package/src/lib/retries.ts +219 -0
- package/src/lib/schemas.ts +86 -0
- package/src/lib/sdks.ts +397 -0
- package/src/lib/security.ts +254 -0
- package/src/lib/url.ts +33 -0
- package/src/models/components/addauditorinput.ts +81 -0
- package/src/models/components/addcommentinput.ts +83 -0
- package/src/models/components/audit.ts +167 -0
- package/src/models/components/auditevidencestate.ts +37 -0
- package/src/models/components/auditevidencetype.ts +34 -0
- package/src/models/components/auditevidenceupdateinput.ts +132 -0
- package/src/models/components/auditor.ts +87 -0
- package/src/models/components/auditorcontrol.ts +194 -0
- package/src/models/components/auditorenabledstatetransition.ts +37 -0
- package/src/models/components/comment.ts +101 -0
- package/src/models/components/control.ts +187 -0
- package/src/models/components/controldomain.ts +70 -0
- package/src/models/components/controlsource.ts +33 -0
- package/src/models/components/createcustomcontrolinput.ts +164 -0
- package/src/models/components/createcustomevidencerequestinput.ts +105 -0
- package/src/models/components/customevidencerequest.ts +110 -0
- package/src/models/components/evidence.ts +158 -0
- package/src/models/components/evidencecontrol.ts +74 -0
- package/src/models/components/evidenceurl.ts +86 -0
- package/src/models/components/frameworkid.ts +64 -0
- package/src/models/components/frameworksection.ts +127 -0
- package/src/models/components/index.ts +33 -0
- package/src/models/components/pageinfo.ts +89 -0
- package/src/models/components/paginatedresponseaudit.ts +136 -0
- package/src/models/components/paginatedresponseauditorcontrol.ts +151 -0
- package/src/models/components/paginatedresponsecomment.ts +145 -0
- package/src/models/components/paginatedresponseevidence.ts +145 -0
- package/src/models/components/paginatedresponseevidenceurl.ts +150 -0
- package/src/models/components/recurrenceduration.ts +38 -0
- package/src/models/components/security.ts +62 -0
- package/src/models/errors/apierror.ts +27 -0
- package/src/models/errors/httpclienterrors.ts +62 -0
- package/src/models/errors/index.ts +7 -0
- package/src/models/errors/sdkvalidationerror.ts +97 -0
- package/src/models/operations/createcommentforauditevidence.ts +89 -0
- package/src/models/operations/createcustomcontrol.ts +80 -0
- package/src/models/operations/createcustomevidencerequest.ts +87 -0
- package/src/models/operations/index.ts +13 -0
- package/src/models/operations/listauditcomments.ts +83 -0
- package/src/models/operations/listauditcontrols.ts +74 -0
- package/src/models/operations/listauditevidence.ts +83 -0
- package/src/models/operations/listauditevidenceurls.ts +80 -0
- package/src/models/operations/listaudits.ts +79 -0
- package/src/models/operations/updateauditevidence.ts +84 -0
- package/src/sdk/auditors.ts +27 -0
- package/src/sdk/audits.ts +172 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/sdk.ts +19 -0
- package/src/types/blobs.ts +31 -0
- package/src/types/constdatetime.ts +15 -0
- package/src/types/enums.ts +16 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +11 -0
- package/src/types/operations.ts +105 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/streams.ts +21 -0
- package/types/blobs.d.ts +4 -0
- package/types/blobs.d.ts.map +1 -0
- package/types/blobs.js +62 -0
- package/types/blobs.js.map +1 -0
- package/types/constdatetime.d.ts +3 -0
- package/types/constdatetime.d.ts.map +1 -0
- package/types/constdatetime.js +46 -0
- package/types/constdatetime.js.map +1 -0
- package/types/enums.d.ts +12 -0
- package/types/enums.d.ts.map +1 -0
- package/types/enums.js +10 -0
- package/types/enums.js.map +1 -0
- package/types/fp.d.ts +31 -0
- package/types/fp.d.ts.map +1 -0
- package/types/fp.js +37 -0
- package/types/fp.js.map +1 -0
- package/types/index.d.ts +8 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +16 -0
- package/types/index.js.map +1 -0
- package/types/operations.d.ts +27 -0
- package/types/operations.d.ts.map +1 -0
- package/types/operations.js +83 -0
- package/types/operations.js.map +1 -0
- package/types/rfcdate.d.ts +21 -0
- package/types/rfcdate.d.ts.map +1 -0
- package/types/rfcdate.js +46 -0
- package/types/rfcdate.js.map +1 -0
- package/types/streams.d.ts +2 -0
- package/types/streams.d.ts.map +1 -0
- package/types/streams.js +18 -0
- package/types/streams.js.map +1 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type AddAuditorInput = {
|
|
5
|
+
/**
|
|
6
|
+
* Email of the new user.
|
|
7
|
+
*/
|
|
8
|
+
email: string;
|
|
9
|
+
/**
|
|
10
|
+
* First name of the new user.
|
|
11
|
+
*/
|
|
12
|
+
givenName: string;
|
|
13
|
+
/**
|
|
14
|
+
* Last name of the new user.
|
|
15
|
+
*/
|
|
16
|
+
familyName: string;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const AddAuditorInput$inboundSchema: z.ZodType<AddAuditorInput, z.ZodTypeDef, unknown>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type AddAuditorInput$Outbound = {
|
|
22
|
+
email: string;
|
|
23
|
+
givenName: string;
|
|
24
|
+
familyName: string;
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const AddAuditorInput$outboundSchema: z.ZodType<AddAuditorInput$Outbound, z.ZodTypeDef, AddAuditorInput>;
|
|
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 declare namespace AddAuditorInput$ {
|
|
33
|
+
/** @deprecated use `AddAuditorInput$inboundSchema` instead. */
|
|
34
|
+
const inboundSchema: z.ZodType<AddAuditorInput, z.ZodTypeDef, unknown>;
|
|
35
|
+
/** @deprecated use `AddAuditorInput$outboundSchema` instead. */
|
|
36
|
+
const outboundSchema: z.ZodType<AddAuditorInput$Outbound, z.ZodTypeDef, AddAuditorInput>;
|
|
37
|
+
/** @deprecated use `AddAuditorInput$Outbound` instead. */
|
|
38
|
+
type Outbound = AddAuditorInput$Outbound;
|
|
39
|
+
}
|
|
40
|
+
export declare function addAuditorInputToJSON(addAuditorInput: AddAuditorInput): string;
|
|
41
|
+
export declare function addAuditorInputFromJSON(jsonString: string): SafeParseResult<AddAuditorInput, SDKValidationError>;
|
|
42
|
+
//# sourceMappingURL=addauditorinput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addauditorinput.d.ts","sourceRoot":"","sources":["../../src/models/components/addauditorinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAKf,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa,mDAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc,oEAAiC,CAAC;IAC7D,0DAA0D;IAC1D,KAAY,QAAQ,GAAG,wBAAwB,CAAC;CACjD;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AddAuditorInput$ = exports.AddAuditorInput$outboundSchema = exports.AddAuditorInput$inboundSchema = void 0;
|
|
40
|
+
exports.addAuditorInputToJSON = addAuditorInputToJSON;
|
|
41
|
+
exports.addAuditorInputFromJSON = addAuditorInputFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.AddAuditorInput$inboundSchema = z.object({
|
|
46
|
+
email: z.string(),
|
|
47
|
+
givenName: z.string(),
|
|
48
|
+
familyName: z.string(),
|
|
49
|
+
});
|
|
50
|
+
/** @internal */
|
|
51
|
+
exports.AddAuditorInput$outboundSchema = z.object({
|
|
52
|
+
email: z.string(),
|
|
53
|
+
givenName: z.string(),
|
|
54
|
+
familyName: z.string(),
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
var AddAuditorInput$;
|
|
61
|
+
(function (AddAuditorInput$) {
|
|
62
|
+
/** @deprecated use `AddAuditorInput$inboundSchema` instead. */
|
|
63
|
+
AddAuditorInput$.inboundSchema = exports.AddAuditorInput$inboundSchema;
|
|
64
|
+
/** @deprecated use `AddAuditorInput$outboundSchema` instead. */
|
|
65
|
+
AddAuditorInput$.outboundSchema = exports.AddAuditorInput$outboundSchema;
|
|
66
|
+
})(AddAuditorInput$ || (exports.AddAuditorInput$ = AddAuditorInput$ = {}));
|
|
67
|
+
function addAuditorInputToJSON(addAuditorInput) {
|
|
68
|
+
return JSON.stringify(exports.AddAuditorInput$outboundSchema.parse(addAuditorInput));
|
|
69
|
+
}
|
|
70
|
+
function addAuditorInputFromJSON(jsonString) {
|
|
71
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AddAuditorInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddAuditorInput' from JSON`);
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=addauditorinput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addauditorinput.js","sourceRoot":"","sources":["../../src/models/components/addauditorinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEH,sDAIC;AAED,0DAQC;AA5ED,uCAAyB;AACzB,qDAAiD;AAmBjD,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,qCAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,sCAA8B,CAAC;AAG/D,CAAC,EAPgB,gBAAgB,gCAAhB,gBAAgB,QAOhC;AAED,SAAgB,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type AddCommentInput = {
|
|
5
|
+
/**
|
|
6
|
+
* Text value of the comment
|
|
7
|
+
*/
|
|
8
|
+
text: string;
|
|
9
|
+
/**
|
|
10
|
+
* Email of author. Must match an existing Vanta user and the user must exist under the Audit Firm who is making the API request
|
|
11
|
+
*/
|
|
12
|
+
email: string;
|
|
13
|
+
/**
|
|
14
|
+
* When the comment was created in the external system
|
|
15
|
+
*/
|
|
16
|
+
creationDate: Date;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const AddCommentInput$inboundSchema: z.ZodType<AddCommentInput, z.ZodTypeDef, unknown>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type AddCommentInput$Outbound = {
|
|
22
|
+
text: string;
|
|
23
|
+
email: string;
|
|
24
|
+
creationDate: string;
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const AddCommentInput$outboundSchema: z.ZodType<AddCommentInput$Outbound, z.ZodTypeDef, AddCommentInput>;
|
|
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 declare namespace AddCommentInput$ {
|
|
33
|
+
/** @deprecated use `AddCommentInput$inboundSchema` instead. */
|
|
34
|
+
const inboundSchema: z.ZodType<AddCommentInput, z.ZodTypeDef, unknown>;
|
|
35
|
+
/** @deprecated use `AddCommentInput$outboundSchema` instead. */
|
|
36
|
+
const outboundSchema: z.ZodType<AddCommentInput$Outbound, z.ZodTypeDef, AddCommentInput>;
|
|
37
|
+
/** @deprecated use `AddCommentInput$Outbound` instead. */
|
|
38
|
+
type Outbound = AddCommentInput$Outbound;
|
|
39
|
+
}
|
|
40
|
+
export declare function addCommentInputToJSON(addCommentInput: AddCommentInput): string;
|
|
41
|
+
export declare function addCommentInputFromJSON(jsonString: string): SafeParseResult<AddCommentInput, SDKValidationError>;
|
|
42
|
+
//# sourceMappingURL=addcommentinput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addcommentinput.d.ts","sourceRoot":"","sources":["../../src/models/components/addcommentinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,YAAY,EAAE,IAAI,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAKf,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa,mDAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc,oEAAiC,CAAC;IAC7D,0DAA0D;IAC1D,KAAY,QAAQ,GAAG,wBAAwB,CAAC;CACjD;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AddCommentInput$ = exports.AddCommentInput$outboundSchema = exports.AddCommentInput$inboundSchema = void 0;
|
|
40
|
+
exports.addCommentInputToJSON = addCommentInputToJSON;
|
|
41
|
+
exports.addCommentInputFromJSON = addCommentInputFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.AddCommentInput$inboundSchema = z.object({
|
|
46
|
+
text: z.string(),
|
|
47
|
+
email: z.string(),
|
|
48
|
+
creationDate: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
49
|
+
});
|
|
50
|
+
/** @internal */
|
|
51
|
+
exports.AddCommentInput$outboundSchema = z.object({
|
|
52
|
+
text: z.string(),
|
|
53
|
+
email: z.string(),
|
|
54
|
+
creationDate: z.date().transform(v => v.toISOString()),
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
var AddCommentInput$;
|
|
61
|
+
(function (AddCommentInput$) {
|
|
62
|
+
/** @deprecated use `AddCommentInput$inboundSchema` instead. */
|
|
63
|
+
AddCommentInput$.inboundSchema = exports.AddCommentInput$inboundSchema;
|
|
64
|
+
/** @deprecated use `AddCommentInput$outboundSchema` instead. */
|
|
65
|
+
AddCommentInput$.outboundSchema = exports.AddCommentInput$outboundSchema;
|
|
66
|
+
})(AddCommentInput$ || (exports.AddCommentInput$ = AddCommentInput$ = {}));
|
|
67
|
+
function addCommentInputToJSON(addCommentInput) {
|
|
68
|
+
return JSON.stringify(exports.AddCommentInput$outboundSchema.parse(addCommentInput));
|
|
69
|
+
}
|
|
70
|
+
function addCommentInputFromJSON(jsonString) {
|
|
71
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AddCommentInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AddCommentInput' from JSON`);
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=addcommentinput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addcommentinput.js","sourceRoot":"","sources":["../../src/models/components/addcommentinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEH,sDAIC;AAED,0DAQC;AA9ED,uCAAyB;AACzB,qDAAiD;AAmBjD,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAChE,IAAI,IAAI,CAAC,CAAC,CAAC,CACZ;CACF,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;CACvD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,qCAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,sCAA8B,CAAC;AAG/D,CAAC,EAPgB,gBAAgB,gCAAhB,gBAAgB,QAOhC;AAED,SAAgB,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type Audit = {
|
|
5
|
+
/**
|
|
6
|
+
* The unique identifier for the audit.
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
/**
|
|
10
|
+
* The domain name of the customer organization being audited (e.g. vanta.com)
|
|
11
|
+
*/
|
|
12
|
+
customerOrganizationName: string;
|
|
13
|
+
/**
|
|
14
|
+
* The human readable name of the customer organization being audited (e.g. Vanta)
|
|
15
|
+
*/
|
|
16
|
+
customerDisplayName: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* The uuid of the customer organization being audited
|
|
19
|
+
*/
|
|
20
|
+
customerOrganizationId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The start of the audit window. This is also when data collection for audit starts.
|
|
23
|
+
*/
|
|
24
|
+
auditStartDate: Date;
|
|
25
|
+
/**
|
|
26
|
+
* The end of the audit window.
|
|
27
|
+
*/
|
|
28
|
+
auditEndDate: Date;
|
|
29
|
+
/**
|
|
30
|
+
* Timestamp at which auditors gain access to the audit. Occurs before the audit window begins
|
|
31
|
+
*/
|
|
32
|
+
earlyAccessStartsDate: Date | null;
|
|
33
|
+
/**
|
|
34
|
+
* The name of the framework for the audit
|
|
35
|
+
*/
|
|
36
|
+
framework: string;
|
|
37
|
+
/**
|
|
38
|
+
* Emails of auditors with access to audit
|
|
39
|
+
*/
|
|
40
|
+
allowAuditorEmails: Array<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Set to true if all auditors in audit firm have access
|
|
43
|
+
*/
|
|
44
|
+
allowAllAuditors: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Timestamp when the audit was deleted
|
|
47
|
+
*/
|
|
48
|
+
deletionDate: Date | null;
|
|
49
|
+
/**
|
|
50
|
+
* Timestamp when the audit was created
|
|
51
|
+
*/
|
|
52
|
+
creationDate: Date;
|
|
53
|
+
/**
|
|
54
|
+
* Timestamp when the audit was updated
|
|
55
|
+
*/
|
|
56
|
+
modificationDate: Date | null;
|
|
57
|
+
/**
|
|
58
|
+
* Timestamp when the audit was marked completed, and report was uploaded
|
|
59
|
+
*/
|
|
60
|
+
completionDate: Date | null;
|
|
61
|
+
};
|
|
62
|
+
/** @internal */
|
|
63
|
+
export declare const Audit$inboundSchema: z.ZodType<Audit, z.ZodTypeDef, unknown>;
|
|
64
|
+
/** @internal */
|
|
65
|
+
export type Audit$Outbound = {
|
|
66
|
+
id: string;
|
|
67
|
+
customerOrganizationName: string;
|
|
68
|
+
customerDisplayName: string | null;
|
|
69
|
+
customerOrganizationId: string;
|
|
70
|
+
auditStartDate: string;
|
|
71
|
+
auditEndDate: string;
|
|
72
|
+
earlyAccessStartsDate: string | null;
|
|
73
|
+
framework: string;
|
|
74
|
+
allowAuditorEmails: Array<string>;
|
|
75
|
+
allowAllAuditors: boolean;
|
|
76
|
+
deletionDate: string | null;
|
|
77
|
+
creationDate: string;
|
|
78
|
+
modificationDate: string | null;
|
|
79
|
+
completionDate: string | null;
|
|
80
|
+
};
|
|
81
|
+
/** @internal */
|
|
82
|
+
export declare const Audit$outboundSchema: z.ZodType<Audit$Outbound, z.ZodTypeDef, Audit>;
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
|
+
*/
|
|
87
|
+
export declare namespace Audit$ {
|
|
88
|
+
/** @deprecated use `Audit$inboundSchema` instead. */
|
|
89
|
+
const inboundSchema: z.ZodType<Audit, z.ZodTypeDef, unknown>;
|
|
90
|
+
/** @deprecated use `Audit$outboundSchema` instead. */
|
|
91
|
+
const outboundSchema: z.ZodType<Audit$Outbound, z.ZodTypeDef, Audit>;
|
|
92
|
+
/** @deprecated use `Audit$Outbound` instead. */
|
|
93
|
+
type Outbound = Audit$Outbound;
|
|
94
|
+
}
|
|
95
|
+
export declare function auditToJSON(audit: Audit): string;
|
|
96
|
+
export declare function auditFromJSON(jsonString: string): SafeParseResult<Audit, SDKValidationError>;
|
|
97
|
+
//# sourceMappingURL=audit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../src/models/components/audit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;OAEG;IACH,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,cAAc,EAAE,IAAI,CAAC;IACrB;;OAEG;IACH,YAAY,EAAE,IAAI,CAAC;IACnB;;OAEG;IACH,qBAAqB,EAAE,IAAI,GAAG,IAAI,CAAC;IACnC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,kBAAkB,EAA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D;IAC/C,MAAM,cAAc,gDAAuB,CAAC;IACnD,gDAAgD;IAChD,KAAY,QAAQ,GAAG,cAAc,CAAC;CACvC;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAEhD;AAED,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAM5C"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Audit$ = exports.Audit$outboundSchema = exports.Audit$inboundSchema = void 0;
|
|
40
|
+
exports.auditToJSON = auditToJSON;
|
|
41
|
+
exports.auditFromJSON = auditFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.Audit$inboundSchema = z
|
|
46
|
+
.object({
|
|
47
|
+
id: z.string(),
|
|
48
|
+
customerOrganizationName: z.string(),
|
|
49
|
+
customerDisplayName: z.nullable(z.string()),
|
|
50
|
+
customerOrganizationId: z.string(),
|
|
51
|
+
auditStartDate: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
52
|
+
auditEndDate: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
53
|
+
earlyAccessStartsDate: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
54
|
+
framework: z.string(),
|
|
55
|
+
allowAuditorEmails: z.array(z.string()),
|
|
56
|
+
allowAllAuditors: z.boolean(),
|
|
57
|
+
deletionDate: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
58
|
+
creationDate: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
59
|
+
modificationDate: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
60
|
+
completionDate: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
61
|
+
});
|
|
62
|
+
/** @internal */
|
|
63
|
+
exports.Audit$outboundSchema = z.object({
|
|
64
|
+
id: z.string(),
|
|
65
|
+
customerOrganizationName: z.string(),
|
|
66
|
+
customerDisplayName: z.nullable(z.string()),
|
|
67
|
+
customerOrganizationId: z.string(),
|
|
68
|
+
auditStartDate: z.date().transform(v => v.toISOString()),
|
|
69
|
+
auditEndDate: z.date().transform(v => v.toISOString()),
|
|
70
|
+
earlyAccessStartsDate: z.nullable(z.date().transform(v => v.toISOString())),
|
|
71
|
+
framework: z.string(),
|
|
72
|
+
allowAuditorEmails: z.array(z.string()),
|
|
73
|
+
allowAllAuditors: z.boolean(),
|
|
74
|
+
deletionDate: z.nullable(z.date().transform(v => v.toISOString())),
|
|
75
|
+
creationDate: z.date().transform(v => v.toISOString()),
|
|
76
|
+
modificationDate: z.nullable(z.date().transform(v => v.toISOString())),
|
|
77
|
+
completionDate: z.nullable(z.date().transform(v => v.toISOString())),
|
|
78
|
+
});
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
82
|
+
*/
|
|
83
|
+
var Audit$;
|
|
84
|
+
(function (Audit$) {
|
|
85
|
+
/** @deprecated use `Audit$inboundSchema` instead. */
|
|
86
|
+
Audit$.inboundSchema = exports.Audit$inboundSchema;
|
|
87
|
+
/** @deprecated use `Audit$outboundSchema` instead. */
|
|
88
|
+
Audit$.outboundSchema = exports.Audit$outboundSchema;
|
|
89
|
+
})(Audit$ || (exports.Audit$ = Audit$ = {}));
|
|
90
|
+
function auditToJSON(audit) {
|
|
91
|
+
return JSON.stringify(exports.Audit$outboundSchema.parse(audit));
|
|
92
|
+
}
|
|
93
|
+
function auditFromJSON(jsonString) {
|
|
94
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Audit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Audit' from JSON`);
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=audit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit.js","sourceRoot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C3B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2BAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/C,mCAAmC,CACpC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const AuditEvidenceState: {
|
|
4
|
+
readonly Accepted: "Accepted";
|
|
5
|
+
readonly Flagged: "Flagged";
|
|
6
|
+
readonly Initialized: "Initialized";
|
|
7
|
+
readonly Na: "NA";
|
|
8
|
+
readonly NotReadyForAudit: "Not ready for audit";
|
|
9
|
+
readonly ReadyForAudit: "Ready for audit";
|
|
10
|
+
};
|
|
11
|
+
export type AuditEvidenceState = ClosedEnum<typeof AuditEvidenceState>;
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const AuditEvidenceState$inboundSchema: z.ZodNativeEnum<typeof AuditEvidenceState>;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const AuditEvidenceState$outboundSchema: z.ZodNativeEnum<typeof AuditEvidenceState>;
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
19
|
+
*/
|
|
20
|
+
export declare namespace AuditEvidenceState$ {
|
|
21
|
+
/** @deprecated use `AuditEvidenceState$inboundSchema` instead. */
|
|
22
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
23
|
+
readonly Accepted: "Accepted";
|
|
24
|
+
readonly Flagged: "Flagged";
|
|
25
|
+
readonly Initialized: "Initialized";
|
|
26
|
+
readonly Na: "NA";
|
|
27
|
+
readonly NotReadyForAudit: "Not ready for audit";
|
|
28
|
+
readonly ReadyForAudit: "Ready for audit";
|
|
29
|
+
}>;
|
|
30
|
+
/** @deprecated use `AuditEvidenceState$outboundSchema` instead. */
|
|
31
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
32
|
+
readonly Accepted: "Accepted";
|
|
33
|
+
readonly Flagged: "Flagged";
|
|
34
|
+
readonly Initialized: "Initialized";
|
|
35
|
+
readonly Na: "NA";
|
|
36
|
+
readonly NotReadyForAudit: "Not ready for audit";
|
|
37
|
+
readonly ReadyForAudit: "Ready for audit";
|
|
38
|
+
}>;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=auditevidencestate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditevidencestate.d.ts","sourceRoot":"","sources":["../../src/models/components/auditevidencestate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,kBAAkB;;;;;;;CAOrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEvE,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,aAAa,CAC5D,OAAO,kBAAkB,CACS,CAAC;AAErC,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,aAAa,CAC7D,OAAO,kBAAkB,CACS,CAAC;AAErC;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa;;;;;;;MAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc;;;;;;;MAAoC,CAAC;CACjE"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AuditEvidenceState$ = exports.AuditEvidenceState$outboundSchema = exports.AuditEvidenceState$inboundSchema = exports.AuditEvidenceState = void 0;
|
|
40
|
+
const z = __importStar(require("zod"));
|
|
41
|
+
exports.AuditEvidenceState = {
|
|
42
|
+
Accepted: "Accepted",
|
|
43
|
+
Flagged: "Flagged",
|
|
44
|
+
Initialized: "Initialized",
|
|
45
|
+
Na: "NA",
|
|
46
|
+
NotReadyForAudit: "Not ready for audit",
|
|
47
|
+
ReadyForAudit: "Ready for audit",
|
|
48
|
+
};
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.AuditEvidenceState$inboundSchema = z.nativeEnum(exports.AuditEvidenceState);
|
|
51
|
+
/** @internal */
|
|
52
|
+
exports.AuditEvidenceState$outboundSchema = exports.AuditEvidenceState$inboundSchema;
|
|
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
|
+
var AuditEvidenceState$;
|
|
58
|
+
(function (AuditEvidenceState$) {
|
|
59
|
+
/** @deprecated use `AuditEvidenceState$inboundSchema` instead. */
|
|
60
|
+
AuditEvidenceState$.inboundSchema = exports.AuditEvidenceState$inboundSchema;
|
|
61
|
+
/** @deprecated use `AuditEvidenceState$outboundSchema` instead. */
|
|
62
|
+
AuditEvidenceState$.outboundSchema = exports.AuditEvidenceState$outboundSchema;
|
|
63
|
+
})(AuditEvidenceState$ || (exports.AuditEvidenceState$ = AuditEvidenceState$ = {}));
|
|
64
|
+
//# sourceMappingURL=auditevidencestate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditevidencestate.js","sourceRoot":"","sources":["../../src/models/components/auditevidencestate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,kBAAkB,GAAG;IAChC,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,EAAE,EAAE,IAAI;IACR,gBAAgB,EAAE,qBAAqB;IACvC,aAAa,EAAE,iBAAiB;CACxB,CAAC;AAGX,gBAAgB;AACH,QAAA,gCAAgC,GAEzC,CAAC,CAAC,UAAU,CAAC,0BAAkB,CAAC,CAAC;AAErC,gBAAgB;AACH,QAAA,iCAAiC,GAE1C,wCAAgC,CAAC;AAErC;;;GAGG;AACH,IAAiB,mBAAmB,CAKnC;AALD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAClE,CAAC,EALgB,mBAAmB,mCAAnB,mBAAmB,QAKnC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const AuditEvidenceType: {
|
|
4
|
+
readonly EvidenceRequest: "Evidence Request";
|
|
5
|
+
readonly Policy: "Policy";
|
|
6
|
+
readonly Test: "Test";
|
|
7
|
+
};
|
|
8
|
+
export type AuditEvidenceType = ClosedEnum<typeof AuditEvidenceType>;
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const AuditEvidenceType$inboundSchema: z.ZodNativeEnum<typeof AuditEvidenceType>;
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const AuditEvidenceType$outboundSchema: z.ZodNativeEnum<typeof AuditEvidenceType>;
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
16
|
+
*/
|
|
17
|
+
export declare namespace AuditEvidenceType$ {
|
|
18
|
+
/** @deprecated use `AuditEvidenceType$inboundSchema` instead. */
|
|
19
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
20
|
+
readonly EvidenceRequest: "Evidence Request";
|
|
21
|
+
readonly Policy: "Policy";
|
|
22
|
+
readonly Test: "Test";
|
|
23
|
+
}>;
|
|
24
|
+
/** @deprecated use `AuditEvidenceType$outboundSchema` instead. */
|
|
25
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
26
|
+
readonly EvidenceRequest: "Evidence Request";
|
|
27
|
+
readonly Policy: "Policy";
|
|
28
|
+
readonly Test: "Test";
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=auditevidencetype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditevidencetype.d.ts","sourceRoot":"","sources":["../../src/models/components/auditevidencetype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAErE,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,iBAAiB,CACS,CAAC;AAEpC,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,aAAa,CAC5D,OAAO,iBAAiB,CACS,CAAC;AAEpC;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa;;;;MAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc;;;;MAAmC,CAAC;CAChE"}
|