vanta-auditor-api-sdk 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +2 -2
- package/README.md +65 -20
- package/docs/sdks/auditors/README.md +1 -2
- package/docs/sdks/audits/README.md +1884 -102
- package/examples/{auditsList.example.ts → auditorsCreate.example.ts} +6 -2
- package/funcs/auditorsCreate.d.ts.map +1 -1
- package/funcs/auditorsCreate.js +2 -1
- package/funcs/auditorsCreate.js.map +1 -1
- package/funcs/auditsAcceptInformationRequestEvidence.d.ts +31 -0
- package/funcs/auditsAcceptInformationRequestEvidence.d.ts.map +1 -0
- package/funcs/auditsAcceptInformationRequestEvidence.js +139 -0
- package/funcs/auditsAcceptInformationRequestEvidence.js.map +1 -0
- package/funcs/auditsCreateCommentForEvidence.d.ts.map +1 -1
- package/funcs/auditsCreateCommentForEvidence.js +2 -1
- package/funcs/auditsCreateCommentForEvidence.js.map +1 -1
- package/funcs/auditsCreateCommentForInformationRequest.d.ts +20 -0
- package/funcs/auditsCreateCommentForInformationRequest.d.ts.map +1 -0
- package/funcs/auditsCreateCommentForInformationRequest.js +130 -0
- package/funcs/auditsCreateCommentForInformationRequest.js.map +1 -0
- package/funcs/auditsCreateCustomControl.d.ts.map +1 -1
- package/funcs/auditsCreateCustomControl.js +2 -1
- package/funcs/auditsCreateCustomControl.js.map +1 -1
- package/funcs/auditsCreateCustomEvidenceRequest.d.ts.map +1 -1
- package/funcs/auditsCreateCustomEvidenceRequest.js +2 -1
- package/funcs/auditsCreateCustomEvidenceRequest.js.map +1 -1
- package/funcs/auditsCreateInformationRequest.d.ts +25 -0
- package/funcs/auditsCreateInformationRequest.d.ts.map +1 -0
- package/funcs/auditsCreateInformationRequest.js +131 -0
- package/funcs/auditsCreateInformationRequest.js.map +1 -0
- package/funcs/auditsDeleteCommentForInformationRequest.d.ts +19 -0
- package/funcs/auditsDeleteCommentForInformationRequest.d.ts.map +1 -0
- package/funcs/auditsDeleteCommentForInformationRequest.js +132 -0
- package/funcs/auditsDeleteCommentForInformationRequest.js.map +1 -0
- package/funcs/auditsDeleteInformationRequest.d.ts +27 -0
- package/funcs/auditsDeleteInformationRequest.d.ts.map +1 -0
- package/funcs/auditsDeleteInformationRequest.js +135 -0
- package/funcs/auditsDeleteInformationRequest.js.map +1 -0
- package/funcs/auditsFlagInformationRequestEvidence.d.ts +33 -0
- package/funcs/auditsFlagInformationRequestEvidence.d.ts.map +1 -0
- package/funcs/auditsFlagInformationRequestEvidence.js +143 -0
- package/funcs/auditsFlagInformationRequestEvidence.js.map +1 -0
- package/funcs/auditsGetAudit.d.ts +22 -0
- package/funcs/auditsGetAudit.d.ts.map +1 -0
- package/funcs/auditsGetAudit.js +125 -0
- package/funcs/auditsGetAudit.js.map +1 -0
- package/funcs/auditsGetEvidenceUrls.d.ts +2 -0
- package/funcs/auditsGetEvidenceUrls.d.ts.map +1 -1
- package/funcs/auditsGetEvidenceUrls.js +4 -1
- package/funcs/auditsGetEvidenceUrls.js.map +1 -1
- package/funcs/auditsGetFrameworkCodes.d.ts +23 -0
- package/funcs/auditsGetFrameworkCodes.d.ts.map +1 -0
- package/funcs/auditsGetFrameworkCodes.js +126 -0
- package/funcs/auditsGetFrameworkCodes.js.map +1 -0
- package/funcs/auditsGetInformationRequest.d.ts +23 -0
- package/funcs/auditsGetInformationRequest.d.ts.map +1 -0
- package/funcs/auditsGetInformationRequest.js +130 -0
- package/funcs/auditsGetInformationRequest.js.map +1 -0
- package/funcs/auditsGetInformationRequestTestSnapshotEvidenceDetail.d.ts +30 -0
- package/funcs/auditsGetInformationRequestTestSnapshotEvidenceDetail.d.ts.map +1 -0
- package/funcs/auditsGetInformationRequestTestSnapshotEvidenceDetail.js +143 -0
- package/funcs/auditsGetInformationRequestTestSnapshotEvidenceDetail.js.map +1 -0
- package/funcs/auditsList.d.ts +4 -0
- package/funcs/auditsList.d.ts.map +1 -1
- package/funcs/auditsList.js +6 -1
- package/funcs/auditsList.js.map +1 -1
- package/funcs/auditsListAuditIssues.d.ts +33 -0
- package/funcs/auditsListAuditIssues.d.ts.map +1 -0
- package/funcs/auditsListAuditIssues.js +143 -0
- package/funcs/auditsListAuditIssues.js.map +1 -0
- package/funcs/auditsListAuditSnapshots.d.ts +31 -0
- package/funcs/auditsListAuditSnapshots.d.ts.map +1 -0
- package/funcs/auditsListAuditSnapshots.js +140 -0
- package/funcs/auditsListAuditSnapshots.js.map +1 -0
- package/funcs/auditsListComments.d.ts.map +1 -1
- package/funcs/auditsListComments.js +2 -1
- package/funcs/auditsListComments.js.map +1 -1
- package/funcs/auditsListCommentsForInformationRequest.d.ts +39 -0
- package/funcs/auditsListCommentsForInformationRequest.d.ts.map +1 -0
- package/funcs/auditsListCommentsForInformationRequest.js +152 -0
- package/funcs/auditsListCommentsForInformationRequest.js.map +1 -0
- package/funcs/auditsListControls.d.ts.map +1 -1
- package/funcs/auditsListControls.js +2 -1
- package/funcs/auditsListControls.js.map +1 -1
- package/funcs/auditsListEvidence.d.ts.map +1 -1
- package/funcs/auditsListEvidence.js +2 -1
- package/funcs/auditsListEvidence.js.map +1 -1
- package/funcs/auditsListInformationRequestActivity.d.ts +35 -0
- package/funcs/auditsListInformationRequestActivity.d.ts.map +1 -0
- package/funcs/auditsListInformationRequestActivity.js +148 -0
- package/funcs/auditsListInformationRequestActivity.js.map +1 -0
- package/funcs/auditsListInformationRequestEvidence.d.ts +39 -0
- package/funcs/auditsListInformationRequestEvidence.d.ts.map +1 -0
- package/funcs/auditsListInformationRequestEvidence.js +153 -0
- package/funcs/auditsListInformationRequestEvidence.js.map +1 -0
- package/funcs/auditsListInformationRequests.d.ts +39 -0
- package/funcs/auditsListInformationRequests.d.ts.map +1 -0
- package/funcs/auditsListInformationRequests.js +148 -0
- package/funcs/auditsListInformationRequests.js.map +1 -0
- package/funcs/auditsListInformationRequestsForControl.d.ts +34 -0
- package/funcs/auditsListInformationRequestsForControl.d.ts.map +1 -0
- package/funcs/auditsListInformationRequestsForControl.js +146 -0
- package/funcs/auditsListInformationRequestsForControl.js.map +1 -0
- package/funcs/auditsShareInformationRequestList.d.ts +20 -0
- package/funcs/auditsShareInformationRequestList.d.ts.map +1 -0
- package/funcs/auditsShareInformationRequestList.js +123 -0
- package/funcs/auditsShareInformationRequestList.js.map +1 -0
- package/funcs/auditsUpdateCommentForInformationRequest.d.ts +20 -0
- package/funcs/auditsUpdateCommentForInformationRequest.d.ts.map +1 -0
- package/funcs/auditsUpdateCommentForInformationRequest.js +132 -0
- package/funcs/auditsUpdateCommentForInformationRequest.js.map +1 -0
- package/funcs/auditsUpdateEvidence.d.ts.map +1 -1
- package/funcs/auditsUpdateEvidence.js +2 -1
- package/funcs/auditsUpdateEvidence.js.map +1 -1
- package/funcs/auditsUpdateInformationRequest.d.ts +28 -0
- package/funcs/auditsUpdateInformationRequest.d.ts.map +1 -0
- package/funcs/auditsUpdateInformationRequest.js +138 -0
- package/funcs/auditsUpdateInformationRequest.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +5 -9
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts +2 -0
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +39 -6
- package/lib/encodings.js.map +1 -1
- package/lib/files.d.ts +13 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +19 -0
- package/lib/files.js.map +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +0 -1
- package/lib/matchers.js.map +1 -1
- package/lib/sdks.d.ts +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +12 -10
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +20 -10
- package/lib/security.js.map +1 -1
- package/lib/url.d.ts.map +1 -1
- package/lib/url.js +4 -2
- package/lib/url.js.map +1 -1
- package/models/components/acceptinformationrequestevidenceinput.d.ts +25 -0
- package/models/components/acceptinformationrequestevidenceinput.d.ts.map +1 -0
- package/models/components/acceptinformationrequestevidenceinput.js +49 -0
- package/models/components/acceptinformationrequestevidenceinput.js.map +1 -0
- package/models/components/addinformationrequestcommentinput.d.ts +44 -0
- package/models/components/addinformationrequestcommentinput.d.ts.map +1 -0
- package/models/components/addinformationrequestcommentinput.js +51 -0
- package/models/components/addinformationrequestcommentinput.js.map +1 -0
- package/models/components/audit.d.ts +31 -0
- package/models/components/audit.d.ts.map +1 -1
- package/models/components/audit.js +11 -1
- package/models/components/audit.js.map +1 -1
- package/models/components/auditorcontrol.d.ts +8 -0
- package/models/components/auditorcontrol.d.ts.map +1 -1
- package/models/components/auditorcontrol.js +2 -0
- package/models/components/auditorcontrol.js.map +1 -1
- package/models/components/comment.d.ts +9 -0
- package/models/components/comment.d.ts.map +1 -1
- package/models/components/comment.js +1 -0
- package/models/components/comment.js.map +1 -1
- package/models/components/control.d.ts +8 -0
- package/models/components/control.d.ts.map +1 -1
- package/models/components/control.js +2 -0
- package/models/components/control.js.map +1 -1
- package/models/components/createinformationrequestinput.d.ts +98 -0
- package/models/components/createinformationrequestinput.d.ts.map +1 -0
- package/models/components/createinformationrequestinput.js +70 -0
- package/models/components/createinformationrequestinput.js.map +1 -0
- package/models/components/deleteinformationrequestcommentinput.d.ts +25 -0
- package/models/components/deleteinformationrequestcommentinput.d.ts.map +1 -0
- package/models/components/deleteinformationrequestcommentinput.js +49 -0
- package/models/components/deleteinformationrequestcommentinput.js.map +1 -0
- package/models/components/evidenceurl.d.ts +4 -0
- package/models/components/evidenceurl.d.ts.map +1 -1
- package/models/components/evidenceurl.js +1 -0
- package/models/components/evidenceurl.js.map +1 -1
- package/models/components/flaginformationrequestevidenceinput.d.ts +36 -0
- package/models/components/flaginformationrequestevidenceinput.d.ts.map +1 -0
- package/models/components/flaginformationrequestevidenceinput.js +50 -0
- package/models/components/flaginformationrequestevidenceinput.js.map +1 -0
- package/models/components/frameworkcodes.d.ts +19 -0
- package/models/components/frameworkcodes.d.ts.map +1 -0
- package/models/components/frameworkcodes.js +50 -0
- package/models/components/frameworkcodes.js.map +1 -0
- package/models/components/index.d.ts +41 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +41 -0
- package/models/components/index.js.map +1 -1
- package/models/components/informationrequest.d.ts +191 -0
- package/models/components/informationrequest.d.ts.map +1 -0
- package/models/components/informationrequest.js +110 -0
- package/models/components/informationrequest.js.map +1 -0
- package/models/components/informationrequestactivitylog.d.ts +110 -0
- package/models/components/informationrequestactivitylog.d.ts.map +1 -0
- package/models/components/informationrequestactivitylog.js +89 -0
- package/models/components/informationrequestactivitylog.js.map +1 -0
- package/models/components/informationrequestactivitytype.d.ts +13 -0
- package/models/components/informationrequestactivitytype.d.ts.map +1 -0
- package/models/components/informationrequestactivitytype.js +50 -0
- package/models/components/informationrequestactivitytype.js.map +1 -0
- package/models/components/informationrequestapprovalstatus.d.ts +28 -0
- package/models/components/informationrequestapprovalstatus.d.ts.map +1 -0
- package/models/components/informationrequestapprovalstatus.js +57 -0
- package/models/components/informationrequestapprovalstatus.js.map +1 -0
- package/models/components/informationrequestcadence.d.ts +18 -0
- package/models/components/informationrequestcadence.d.ts.map +1 -0
- package/models/components/informationrequestcadence.js +52 -0
- package/models/components/informationrequestcadence.js.map +1 -0
- package/models/components/informationrequestcomment.d.ts +72 -0
- package/models/components/informationrequestcomment.d.ts.map +1 -0
- package/models/components/informationrequestcomment.js +56 -0
- package/models/components/informationrequestcomment.js.map +1 -0
- package/models/components/informationrequestevidence.d.ts +59 -0
- package/models/components/informationrequestevidence.d.ts.map +1 -0
- package/models/components/informationrequestevidence.js +58 -0
- package/models/components/informationrequestevidence.js.map +1 -0
- package/models/components/informationrequestevidenceunion.d.ts +21 -0
- package/models/components/informationrequestevidenceunion.d.ts.map +1 -0
- package/models/components/informationrequestevidenceunion.js +63 -0
- package/models/components/informationrequestevidenceunion.js.map +1 -0
- package/models/components/informationrequestsupportedevidencetype.d.ts +17 -0
- package/models/components/informationrequestsupportedevidencetype.d.ts.map +1 -0
- package/models/components/informationrequestsupportedevidencetype.js +55 -0
- package/models/components/informationrequestsupportedevidencetype.js.map +1 -0
- package/models/components/informationrequesttype.d.ts +31 -0
- package/models/components/informationrequesttype.d.ts.map +1 -0
- package/models/components/informationrequesttype.js +59 -0
- package/models/components/informationrequesttype.js.map +1 -0
- package/models/components/issuesnapshotitem.d.ts +65 -0
- package/models/components/issuesnapshotitem.d.ts.map +1 -0
- package/models/components/issuesnapshotitem.js +63 -0
- package/models/components/issuesnapshotitem.js.map +1 -0
- package/models/components/issuesnapshotmetadata.d.ts +25 -0
- package/models/components/issuesnapshotmetadata.d.ts.map +1 -0
- package/models/components/issuesnapshotmetadata.js +54 -0
- package/models/components/issuesnapshotmetadata.js.map +1 -0
- package/models/components/issuestatustypeforsnapshot.d.ts +11 -0
- package/models/components/issuestatustypeforsnapshot.d.ts.map +1 -0
- package/models/components/issuestatustypeforsnapshot.js +48 -0
- package/models/components/issuestatustypeforsnapshot.js.map +1 -0
- package/models/components/linkevidence.d.ts +24 -0
- package/models/components/linkevidence.d.ts.map +1 -0
- package/models/components/linkevidence.js +52 -0
- package/models/components/linkevidence.js.map +1 -0
- package/models/components/observationevidence.d.ts +16 -0
- package/models/components/observationevidence.d.ts.map +1 -0
- package/models/components/observationevidence.js +50 -0
- package/models/components/observationevidence.js.map +1 -0
- package/models/components/paginatedissuesnapshotitemsresponse.d.ts +22 -0
- package/models/components/paginatedissuesnapshotitemsresponse.d.ts.map +1 -0
- package/models/components/paginatedissuesnapshotitemsresponse.js +61 -0
- package/models/components/paginatedissuesnapshotitemsresponse.js.map +1 -0
- package/models/components/paginatedissuesnapshotmetadataresponse.d.ts +22 -0
- package/models/components/paginatedissuesnapshotmetadataresponse.d.ts.map +1 -0
- package/models/components/paginatedissuesnapshotmetadataresponse.js +61 -0
- package/models/components/paginatedissuesnapshotmetadataresponse.js.map +1 -0
- package/models/components/paginatedresponseinformationrequest.d.ts +22 -0
- package/models/components/paginatedresponseinformationrequest.d.ts.map +1 -0
- package/models/components/paginatedresponseinformationrequest.js +61 -0
- package/models/components/paginatedresponseinformationrequest.js.map +1 -0
- package/models/components/paginatedresponseinformationrequestactivitylog.d.ts +22 -0
- package/models/components/paginatedresponseinformationrequestactivitylog.d.ts.map +1 -0
- package/models/components/paginatedresponseinformationrequestactivitylog.js +61 -0
- package/models/components/paginatedresponseinformationrequestactivitylog.js.map +1 -0
- package/models/components/paginatedresponseinformationrequestcomment.d.ts +22 -0
- package/models/components/paginatedresponseinformationrequestcomment.d.ts.map +1 -0
- package/models/components/paginatedresponseinformationrequestcomment.js +61 -0
- package/models/components/paginatedresponseinformationrequestcomment.js.map +1 -0
- package/models/components/paginatedresponseinformationrequestevidence.d.ts +22 -0
- package/models/components/paginatedresponseinformationrequestevidence.d.ts.map +1 -0
- package/models/components/paginatedresponseinformationrequestevidence.js +61 -0
- package/models/components/paginatedresponseinformationrequestevidence.js.map +1 -0
- package/models/components/partialupdateinformationrequest.d.ts +69 -0
- package/models/components/partialupdateinformationrequest.d.ts.map +1 -0
- package/models/components/partialupdateinformationrequest.js +58 -0
- package/models/components/partialupdateinformationrequest.js.map +1 -0
- package/models/components/recurrenceduration.d.ts +1 -0
- package/models/components/recurrenceduration.d.ts.map +1 -1
- package/models/components/recurrenceduration.js +1 -0
- package/models/components/recurrenceduration.js.map +1 -1
- package/models/components/section.d.ts +20 -0
- package/models/components/section.d.ts.map +1 -1
- package/models/components/section.js +11 -1
- package/models/components/section.js.map +1 -1
- package/models/components/updateinformationrequestcommentinput.d.ts +34 -0
- package/models/components/updateinformationrequestcommentinput.d.ts.map +1 -0
- package/models/components/updateinformationrequestcommentinput.js +50 -0
- package/models/components/updateinformationrequestcommentinput.js.map +1 -0
- package/models/components/uploadeddocumentevidence.d.ts +41 -0
- package/models/components/uploadeddocumentevidence.d.ts.map +1 -0
- package/models/components/uploadeddocumentevidence.js +53 -0
- package/models/components/uploadeddocumentevidence.js.map +1 -0
- package/models/components/vantadocumentevidence.d.ts +78 -0
- package/models/components/vantadocumentevidence.d.ts.map +1 -0
- package/models/components/vantadocumentevidence.js +79 -0
- package/models/components/vantadocumentevidence.js.map +1 -0
- package/models/components/vantadocumentlinkevidence.d.ts +27 -0
- package/models/components/vantadocumentlinkevidence.d.ts.map +1 -0
- package/models/components/vantadocumentlinkevidence.js +52 -0
- package/models/components/vantadocumentlinkevidence.js.map +1 -0
- package/models/components/vantadocumentuploadedevidence.d.ts +45 -0
- package/models/components/vantadocumentuploadedevidence.d.ts.map +1 -0
- package/models/components/vantadocumentuploadedevidence.js +54 -0
- package/models/components/vantadocumentuploadedevidence.js.map +1 -0
- package/models/components/vantapolicyevidence.d.ts +126 -0
- package/models/components/vantapolicyevidence.d.ts.map +1 -0
- package/models/components/vantapolicyevidence.js +79 -0
- package/models/components/vantapolicyevidence.js.map +1 -0
- package/models/components/vantatestevidence.d.ts +71 -0
- package/models/components/vantatestevidence.d.ts.map +1 -0
- package/models/components/vantatestevidence.js +67 -0
- package/models/components/vantatestevidence.js.map +1 -0
- package/models/components/vantatestfiletype.d.ts +12 -0
- package/models/components/vantatestfiletype.d.ts.map +1 -0
- package/models/components/vantatestfiletype.js +49 -0
- package/models/components/vantatestfiletype.js.map +1 -0
- package/models/components/vantatestrunstatus.d.ts +14 -0
- package/models/components/vantatestrunstatus.d.ts.map +1 -0
- package/models/components/vantatestrunstatus.js +51 -0
- package/models/components/vantatestrunstatus.js.map +1 -0
- package/models/components/vantatestsnapshotevidence.d.ts +68 -0
- package/models/components/vantatestsnapshotevidence.d.ts.map +1 -0
- package/models/components/vantatestsnapshotevidence.js +68 -0
- package/models/components/vantatestsnapshotevidence.js.map +1 -0
- package/models/components/vantatestsnapshotevidencedetail.d.ts +66 -0
- package/models/components/vantatestsnapshotevidencedetail.d.ts.map +1 -0
- package/models/components/vantatestsnapshotevidencedetail.js +76 -0
- package/models/components/vantatestsnapshotevidencedetail.js.map +1 -0
- package/models/components/vantatestsnapshotintegration.d.ts +14 -0
- package/models/components/vantatestsnapshotintegration.d.ts.map +1 -0
- package/models/components/vantatestsnapshotintegration.js +51 -0
- package/models/components/vantatestsnapshotintegration.js.map +1 -0
- package/models/components/vantatestsnapshotrawtestdatarow.d.ts +41 -0
- package/models/components/vantatestsnapshotrawtestdatarow.d.ts.map +1 -0
- package/models/components/vantatestsnapshotrawtestdatarow.js +52 -0
- package/models/components/vantatestsnapshotrawtestdatarow.js.map +1 -0
- package/models/operations/acceptinformationrequestevidence.d.ts +17 -0
- package/models/operations/acceptinformationrequestevidence.d.ts.map +1 -0
- package/models/operations/acceptinformationrequestevidence.js +57 -0
- package/models/operations/acceptinformationrequestevidence.js.map +1 -0
- package/models/operations/createcommentforinformationrequest.d.ts +17 -0
- package/models/operations/createcommentforinformationrequest.d.ts.map +1 -0
- package/models/operations/createcommentforinformationrequest.js +57 -0
- package/models/operations/createcommentforinformationrequest.js.map +1 -0
- package/models/operations/createinformationrequest.d.ts +15 -0
- package/models/operations/createinformationrequest.d.ts.map +1 -0
- package/models/operations/createinformationrequest.js +56 -0
- package/models/operations/createinformationrequest.js.map +1 -0
- package/models/operations/deletecommentforinformationrequest.d.ts +19 -0
- package/models/operations/deletecommentforinformationrequest.d.ts.map +1 -0
- package/models/operations/deletecommentforinformationrequest.js +58 -0
- package/models/operations/deletecommentforinformationrequest.js.map +1 -0
- package/models/operations/deleteinformationrequest.d.ts +14 -0
- package/models/operations/deleteinformationrequest.d.ts.map +1 -0
- package/models/operations/deleteinformationrequest.js +50 -0
- package/models/operations/deleteinformationrequest.js.map +1 -0
- package/models/operations/flaginformationrequestevidence.d.ts +17 -0
- package/models/operations/flaginformationrequestevidence.d.ts.map +1 -0
- package/models/operations/flaginformationrequestevidence.js +57 -0
- package/models/operations/flaginformationrequestevidence.js.map +1 -0
- package/models/operations/getaudit.d.ts +12 -0
- package/models/operations/getaudit.d.ts.map +1 -0
- package/models/operations/getaudit.js +49 -0
- package/models/operations/getaudit.js.map +1 -0
- package/models/operations/getframeworkcodes.d.ts +12 -0
- package/models/operations/getframeworkcodes.d.ts.map +1 -0
- package/models/operations/getframeworkcodes.js +49 -0
- package/models/operations/getframeworkcodes.js.map +1 -0
- package/models/operations/getinformationrequest.d.ts +14 -0
- package/models/operations/getinformationrequest.d.ts.map +1 -0
- package/models/operations/getinformationrequest.js +50 -0
- package/models/operations/getinformationrequest.js.map +1 -0
- package/models/operations/getinformationrequesttestsnapshotevidencedetail.d.ts +16 -0
- package/models/operations/getinformationrequesttestsnapshotevidencedetail.d.ts.map +1 -0
- package/models/operations/getinformationrequesttestsnapshotevidencedetail.js +51 -0
- package/models/operations/getinformationrequesttestsnapshotevidencedetail.js.map +1 -0
- package/models/operations/index.d.ts +20 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +20 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listauditissues.d.ts +35 -0
- package/models/operations/listauditissues.d.ts.map +1 -0
- package/models/operations/listauditissues.js +53 -0
- package/models/operations/listauditissues.js.map +1 -0
- package/models/operations/listauditsnapshots.d.ts +30 -0
- package/models/operations/listauditsnapshots.d.ts.map +1 -0
- package/models/operations/listauditsnapshots.js +52 -0
- package/models/operations/listauditsnapshots.js.map +1 -0
- package/models/operations/listcommentsforinformationrequest.d.ts +32 -0
- package/models/operations/listcommentsforinformationrequest.d.ts.map +1 -0
- package/models/operations/listcommentsforinformationrequest.js +53 -0
- package/models/operations/listcommentsforinformationrequest.js.map +1 -0
- package/models/operations/listinformationrequestactivity.d.ts +29 -0
- package/models/operations/listinformationrequestactivity.d.ts.map +1 -0
- package/models/operations/listinformationrequestactivity.js +53 -0
- package/models/operations/listinformationrequestactivity.js.map +1 -0
- package/models/operations/listinformationrequestevidence.d.ts +42 -0
- package/models/operations/listinformationrequestevidence.d.ts.map +1 -0
- package/models/operations/listinformationrequestevidence.js +55 -0
- package/models/operations/listinformationrequestevidence.js.map +1 -0
- package/models/operations/listinformationrequests.d.ts +30 -0
- package/models/operations/listinformationrequests.d.ts.map +1 -0
- package/models/operations/listinformationrequests.js +52 -0
- package/models/operations/listinformationrequests.js.map +1 -0
- package/models/operations/listinformationrequestsforcontrol.d.ts +24 -0
- package/models/operations/listinformationrequestsforcontrol.d.ts.map +1 -0
- package/models/operations/listinformationrequestsforcontrol.js +52 -0
- package/models/operations/listinformationrequestsforcontrol.js.map +1 -0
- package/models/operations/shareinformationrequestlist.d.ts +12 -0
- package/models/operations/shareinformationrequestlist.d.ts.map +1 -0
- package/models/operations/shareinformationrequestlist.js +49 -0
- package/models/operations/shareinformationrequestlist.js.map +1 -0
- package/models/operations/updatecommentforinformationrequest.d.ts +19 -0
- package/models/operations/updatecommentforinformationrequest.d.ts.map +1 -0
- package/models/operations/updatecommentforinformationrequest.js +58 -0
- package/models/operations/updatecommentforinformationrequest.js.map +1 -0
- package/models/operations/updateinformationrequest.d.ts +17 -0
- package/models/operations/updateinformationrequest.d.ts.map +1 -0
- package/models/operations/updateinformationrequest.js +57 -0
- package/models/operations/updateinformationrequest.js.map +1 -0
- package/package.json +3 -3
- package/sdk/audits.d.ts +378 -19
- package/sdk/audits.d.ts.map +1 -1
- package/sdk/audits.js +444 -25
- package/sdk/audits.js.map +1 -1
- package/sdk/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/smoke-test/src/smoke.test.ts +201 -0
- package/smoke-test/vitest.config.ts +11 -0
- package/src/funcs/auditorsCreate.ts +3 -1
- package/src/funcs/auditsAcceptInformationRequestEvidence.ts +195 -0
- package/src/funcs/auditsCreateCommentForEvidence.ts +3 -2
- package/src/funcs/auditsCreateCommentForInformationRequest.ts +182 -0
- package/src/funcs/auditsCreateCustomControl.ts +3 -2
- package/src/funcs/auditsCreateCustomEvidenceRequest.ts +3 -2
- package/src/funcs/auditsCreateInformationRequest.ts +179 -0
- package/src/funcs/auditsDeleteCommentForInformationRequest.ts +188 -0
- package/src/funcs/auditsDeleteInformationRequest.ts +185 -0
- package/src/funcs/auditsFlagInformationRequestEvidence.ts +195 -0
- package/src/funcs/auditsGetAudit.ts +172 -0
- package/src/funcs/auditsGetEvidenceUrls.ts +5 -2
- package/src/funcs/auditsGetFrameworkCodes.ts +173 -0
- package/src/funcs/auditsGetInformationRequest.ts +180 -0
- package/src/funcs/auditsGetInformationRequestTestSnapshotEvidenceDetail.ts +193 -0
- package/src/funcs/auditsList.ts +7 -1
- package/src/funcs/auditsListAuditIssues.ts +191 -0
- package/src/funcs/auditsListAuditSnapshots.ts +191 -0
- package/src/funcs/auditsListComments.ts +3 -2
- package/src/funcs/auditsListCommentsForInformationRequest.ts +208 -0
- package/src/funcs/auditsListControls.ts +3 -2
- package/src/funcs/auditsListEvidence.ts +3 -2
- package/src/funcs/auditsListInformationRequestActivity.ts +204 -0
- package/src/funcs/auditsListInformationRequestEvidence.ts +209 -0
- package/src/funcs/auditsListInformationRequests.ts +197 -0
- package/src/funcs/auditsListInformationRequestsForControl.ts +199 -0
- package/src/funcs/auditsShareInformationRequestList.ts +173 -0
- package/src/funcs/auditsUpdateCommentForInformationRequest.ts +188 -0
- package/src/funcs/auditsUpdateEvidence.ts +3 -2
- package/src/funcs/auditsUpdateInformationRequest.ts +188 -0
- package/src/lib/config.ts +5 -9
- package/src/lib/encodings.ts +49 -7
- package/src/lib/files.ts +22 -0
- package/src/lib/matchers.ts +3 -2
- package/src/lib/sdks.ts +12 -13
- package/src/lib/security.ts +15 -4
- package/src/lib/url.ts +16 -14
- package/src/models/components/acceptinformationrequestevidenceinput.ts +46 -0
- package/src/models/components/addinformationrequestcommentinput.ts +67 -0
- package/src/models/components/audit.ts +54 -0
- package/src/models/components/auditorcontrol.ts +14 -0
- package/src/models/components/comment.ts +10 -0
- package/src/models/components/control.ts +14 -0
- package/src/models/components/createinformationrequestinput.ts +138 -0
- package/src/models/components/deleteinformationrequestcommentinput.ts +46 -0
- package/src/models/components/evidenceurl.ts +5 -0
- package/src/models/components/flaginformationrequestevidenceinput.ts +58 -0
- package/src/models/components/frameworkcodes.ts +40 -0
- package/src/models/components/index.ts +41 -0
- package/src/models/components/informationrequest.ts +295 -0
- package/src/models/components/informationrequestactivitylog.ts +146 -0
- package/src/models/components/informationrequestactivitytype.ts +22 -0
- package/src/models/components/informationrequestapprovalstatus.ts +37 -0
- package/src/models/components/informationrequestcadence.ts +27 -0
- package/src/models/components/informationrequestcomment.ts +105 -0
- package/src/models/components/informationrequestevidence.ts +100 -0
- package/src/models/components/informationrequestevidenceunion.ts +73 -0
- package/src/models/components/informationrequestsupportedevidencetype.ts +28 -0
- package/src/models/components/informationrequesttype.ts +40 -0
- package/src/models/components/issuesnapshotitem.ts +105 -0
- package/src/models/components/issuesnapshotmetadata.ts +50 -0
- package/src/models/components/issuestatustypeforsnapshot.ts +20 -0
- package/src/models/components/linkevidence.ts +47 -0
- package/src/models/components/observationevidence.ts +37 -0
- package/src/models/components/paginatedissuesnapshotitemsresponse.ts +71 -0
- package/src/models/components/paginatedissuesnapshotmetadataresponse.ts +74 -0
- package/src/models/components/paginatedresponseinformationrequest.ts +71 -0
- package/src/models/components/paginatedresponseinformationrequestactivitylog.ts +80 -0
- package/src/models/components/paginatedresponseinformationrequestcomment.ts +77 -0
- package/src/models/components/paginatedresponseinformationrequestevidence.ts +80 -0
- package/src/models/components/partialupdateinformationrequest.ts +103 -0
- package/src/models/components/recurrenceduration.ts +1 -0
- package/src/models/components/section.ts +39 -0
- package/src/models/components/updateinformationrequestcommentinput.ts +56 -0
- package/src/models/components/uploadeddocumentevidence.ts +65 -0
- package/src/models/components/vantadocumentevidence.ts +145 -0
- package/src/models/components/vantadocumentlinkevidence.ts +50 -0
- package/src/models/components/vantadocumentuploadedevidence.ts +70 -0
- package/src/models/components/vantapolicyevidence.ts +198 -0
- package/src/models/components/vantatestevidence.ts +122 -0
- package/src/models/components/vantatestfiletype.ts +19 -0
- package/src/models/components/vantatestrunstatus.ts +21 -0
- package/src/models/components/vantatestsnapshotevidence.ts +100 -0
- package/src/models/components/vantatestsnapshotevidencedetail.ts +135 -0
- package/src/models/components/vantatestsnapshotintegration.ts +36 -0
- package/src/models/components/vantatestsnapshotrawtestdatarow.ts +64 -0
- package/src/models/operations/acceptinformationrequestevidence.ts +50 -0
- package/src/models/operations/createcommentforinformationrequest.ts +50 -0
- package/src/models/operations/createinformationrequest.ts +44 -0
- package/src/models/operations/deletecommentforinformationrequest.ts +54 -0
- package/src/models/operations/deleteinformationrequest.ts +36 -0
- package/src/models/operations/flaginformationrequestevidence.ts +48 -0
- package/src/models/operations/getaudit.ts +29 -0
- package/src/models/operations/getframeworkcodes.ts +31 -0
- package/src/models/operations/getinformationrequest.ts +36 -0
- package/src/models/operations/getinformationrequesttestsnapshotevidencedetail.ts +41 -0
- package/src/models/operations/index.ts +20 -0
- package/src/models/operations/listauditissues.ts +58 -0
- package/src/models/operations/listauditsnapshots.ts +52 -0
- package/src/models/operations/listcommentsforinformationrequest.ts +58 -0
- package/src/models/operations/listinformationrequestactivity.ts +54 -0
- package/src/models/operations/listinformationrequestevidence.ts +72 -0
- package/src/models/operations/listinformationrequests.ts +54 -0
- package/src/models/operations/listinformationrequestsforcontrol.ts +49 -0
- package/src/models/operations/shareinformationrequestlist.ts +33 -0
- package/src/models/operations/updatecommentforinformationrequest.ts +54 -0
- package/src/models/operations/updateinformationrequest.ts +47 -0
- package/src/sdk/audits.ts +616 -37
- package/src/sdk/sdk.ts +5 -5
- package/src/types/enums.ts +1 -21
- package/src/types/index.ts +2 -1
- package/src/types/unrecognized.ts +35 -0
- package/types/enums.d.ts +1 -8
- package/types/enums.d.ts.map +1 -1
- package/types/enums.js +3 -21
- package/types/enums.js.map +1 -1
- package/types/index.d.ts +2 -1
- package/types/index.d.ts.map +1 -1
- package/types/index.js +15 -0
- package/types/index.js.map +1 -1
- package/types/unrecognized.d.ts +16 -0
- package/types/unrecognized.d.ts.map +1 -0
- package/types/unrecognized.js +34 -0
- package/types/unrecognized.js.map +1 -0
- package/.devcontainer/devcontainer.json +0 -45
- package/examples/package-lock.json +0 -610
- package/examples/package.json +0 -18
- package/tsconfig.json +0 -41
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import { InformationRequestApprovalStatus } from "./informationrequestapprovalstatus.js";
|
|
6
|
+
import { InformationRequestType } from "./informationrequesttype.js";
|
|
7
|
+
/**
|
|
8
|
+
* How frequently this information request recurs (e.g., annual password
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* policy reviews). Null for one-time requests.
|
|
12
|
+
*/
|
|
13
|
+
export declare const Cadence: {
|
|
14
|
+
readonly Annually: "ANNUALLY";
|
|
15
|
+
readonly Biannually: "BIANNUALLY";
|
|
16
|
+
readonly Monthly: "MONTHLY";
|
|
17
|
+
readonly Quarterly: "QUARTERLY";
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* How frequently this information request recurs (e.g., annual password
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* policy reviews). Null for one-time requests.
|
|
24
|
+
*/
|
|
25
|
+
export type Cadence = ClosedEnum<typeof Cadence>;
|
|
26
|
+
export type Two = {
|
|
27
|
+
displayName: string;
|
|
28
|
+
id: string;
|
|
29
|
+
type: "team";
|
|
30
|
+
};
|
|
31
|
+
export type One = {
|
|
32
|
+
displayName: string;
|
|
33
|
+
id: string;
|
|
34
|
+
type: "user";
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Resource owner (user or team) assigned to this information request.
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* Returns null if no resource owner is assigned.
|
|
41
|
+
*/
|
|
42
|
+
export type OwnerAssignment = One | Two;
|
|
43
|
+
/**
|
|
44
|
+
* Information Request resource representing a single request for audit evidence from a customer.
|
|
45
|
+
*
|
|
46
|
+
* @remarks
|
|
47
|
+
*
|
|
48
|
+
* An information request is created by an auditor and shared with the customer organization.
|
|
49
|
+
* The customer then uploads evidence, which the auditor reviews and either approves or flags
|
|
50
|
+
* for issues.
|
|
51
|
+
*/
|
|
52
|
+
export type InformationRequest = {
|
|
53
|
+
/**
|
|
54
|
+
* The unique identifier for the information request within Vanta's system.
|
|
55
|
+
*
|
|
56
|
+
* @remarks
|
|
57
|
+
* This is the primary identifier used in all API endpoints.
|
|
58
|
+
* Format: ObjectId as a string (e.g., "6890e473dce1da5d8406f5e7")
|
|
59
|
+
*/
|
|
60
|
+
id: string;
|
|
61
|
+
/**
|
|
62
|
+
* External unique ID to prevent duplicates across different audit systems.
|
|
63
|
+
*
|
|
64
|
+
* @remarks
|
|
65
|
+
* Used for idempotency when syncing data between external audit management
|
|
66
|
+
* systems and Vanta. Unlike `id`, this value is provided by the external system.
|
|
67
|
+
*/
|
|
68
|
+
uniqueId: string;
|
|
69
|
+
/**
|
|
70
|
+
* Additional control IDs beyond those automatically mapped from framework codes.
|
|
71
|
+
*
|
|
72
|
+
* @remarks
|
|
73
|
+
* Allows manual association with specific controls when automatic mapping
|
|
74
|
+
* is insufficient. Each ID should reference a valid control in your audit framework.
|
|
75
|
+
*/
|
|
76
|
+
additionalControlIds: Array<string>;
|
|
77
|
+
/**
|
|
78
|
+
* Current approval status of the information request, tracking its lifecycle through the audit process.
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
*
|
|
82
|
+
* The status progresses through the workflow: initial state → awaiting review → approved or flagged.
|
|
83
|
+
* Status can move between awaiting review and flagged states as evidence is reviewed and resubmitted.
|
|
84
|
+
*/
|
|
85
|
+
approvalStatus: InformationRequestApprovalStatus;
|
|
86
|
+
/**
|
|
87
|
+
* How frequently this information request recurs (e.g., annual password
|
|
88
|
+
*
|
|
89
|
+
* @remarks
|
|
90
|
+
* policy reviews). Null for one-time requests.
|
|
91
|
+
*/
|
|
92
|
+
cadence: Cadence | null;
|
|
93
|
+
/**
|
|
94
|
+
* The framework codes this request addresses.
|
|
95
|
+
*
|
|
96
|
+
* @remarks
|
|
97
|
+
* Links the request to specific compliance requirements. Can be an empty array
|
|
98
|
+
* if no framework codes are associated. These codes correspond to standards like SOC 2, ISO 27001, etc.
|
|
99
|
+
*/
|
|
100
|
+
frameworkCodes: Array<string>;
|
|
101
|
+
/**
|
|
102
|
+
* Detailed description explaining what evidence is needed and why.
|
|
103
|
+
*
|
|
104
|
+
* @remarks
|
|
105
|
+
* Should provide clear instructions to help the customer understand what
|
|
106
|
+
* to submit.
|
|
107
|
+
*/
|
|
108
|
+
description: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* The deadline by which the customer must fulfill this request.
|
|
111
|
+
*
|
|
112
|
+
* @remarks
|
|
113
|
+
* Null if no specific deadline is set. Format: ISO 8601 UTC timestamp.
|
|
114
|
+
*/
|
|
115
|
+
dueDate: Date | null;
|
|
116
|
+
/**
|
|
117
|
+
* The earliest date for which evidence should be captured.
|
|
118
|
+
*
|
|
119
|
+
* @remarks
|
|
120
|
+
* Evidence dated before this date may not be accepted.
|
|
121
|
+
* Null if not restricted. Format: ISO 8601 UTC timestamp.
|
|
122
|
+
*/
|
|
123
|
+
evidenceCaptureDate: Date | null;
|
|
124
|
+
/**
|
|
125
|
+
* Non-unique external reference ID for this request.
|
|
126
|
+
*
|
|
127
|
+
* @remarks
|
|
128
|
+
* Unlike `uniqueId` which must be unique, `requestId` is for display/reference
|
|
129
|
+
* purposes only (e.g., "REQ-123"). Null if not provided.
|
|
130
|
+
*/
|
|
131
|
+
requestId: string | null;
|
|
132
|
+
/**
|
|
133
|
+
* Type of information request, defining what scope of evidence is needed.
|
|
134
|
+
*
|
|
135
|
+
* @remarks
|
|
136
|
+
*
|
|
137
|
+
* - POINT_IN_TIME: Evidence for a specific moment (e.g., current state of a policy)
|
|
138
|
+
* - POPULATION: Evidence covering all items in a category (e.g., all employees)
|
|
139
|
+
* - SAMPLE: Evidence for a representative sample (e.g., 10 random customer records)
|
|
140
|
+
*/
|
|
141
|
+
requestType: InformationRequestType;
|
|
142
|
+
/**
|
|
143
|
+
* Short, descriptive title summarizing what is being requested.
|
|
144
|
+
*/
|
|
145
|
+
title: string;
|
|
146
|
+
/**
|
|
147
|
+
* Timestamp when the request was created in the system.
|
|
148
|
+
*
|
|
149
|
+
* @remarks
|
|
150
|
+
* Format: ISO 8601 UTC timestamp.
|
|
151
|
+
*/
|
|
152
|
+
creationDate: Date;
|
|
153
|
+
/**
|
|
154
|
+
* Timestamp when the request was last modified.
|
|
155
|
+
*
|
|
156
|
+
* @remarks
|
|
157
|
+
* Format: ISO 8601 UTC timestamp.
|
|
158
|
+
*/
|
|
159
|
+
modificationDate: Date;
|
|
160
|
+
/**
|
|
161
|
+
* Timestamp when the request was soft-deleted. Null if the request has not
|
|
162
|
+
*
|
|
163
|
+
* @remarks
|
|
164
|
+
* been deleted. Soft deletes allow retaining history while hiding the request
|
|
165
|
+
* from normal operations.
|
|
166
|
+
* Format: ISO 8601 UTC timestamp.
|
|
167
|
+
*/
|
|
168
|
+
deletionDate: Date | null;
|
|
169
|
+
/**
|
|
170
|
+
* Resource owner (user or team) assigned to this information request.
|
|
171
|
+
*
|
|
172
|
+
* @remarks
|
|
173
|
+
* Returns null if no resource owner is assigned.
|
|
174
|
+
*/
|
|
175
|
+
ownerAssignment: One | Two | null;
|
|
176
|
+
};
|
|
177
|
+
/** @internal */
|
|
178
|
+
export declare const Cadence$inboundSchema: z.ZodNativeEnum<typeof Cadence>;
|
|
179
|
+
/** @internal */
|
|
180
|
+
export declare const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown>;
|
|
181
|
+
export declare function twoFromJSON(jsonString: string): SafeParseResult<Two, SDKValidationError>;
|
|
182
|
+
/** @internal */
|
|
183
|
+
export declare const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown>;
|
|
184
|
+
export declare function oneFromJSON(jsonString: string): SafeParseResult<One, SDKValidationError>;
|
|
185
|
+
/** @internal */
|
|
186
|
+
export declare const OwnerAssignment$inboundSchema: z.ZodType<OwnerAssignment, z.ZodTypeDef, unknown>;
|
|
187
|
+
export declare function ownerAssignmentFromJSON(jsonString: string): SafeParseResult<OwnerAssignment, SDKValidationError>;
|
|
188
|
+
/** @internal */
|
|
189
|
+
export declare const InformationRequest$inboundSchema: z.ZodType<InformationRequest, z.ZodTypeDef, unknown>;
|
|
190
|
+
export declare function informationRequestFromJSON(jsonString: string): SafeParseResult<InformationRequest, SDKValidationError>;
|
|
191
|
+
//# sourceMappingURL=informationrequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"informationrequest.d.ts","sourceRoot":"","sources":["../../src/models/components/informationrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gCAAgC,EAEjC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,sBAAsB,EAEvB,MAAM,6BAA6B,CAAC;AAErC;;;;;GAKG;AACH,eAAO,MAAM,OAAO;;;;;CAKV,CAAC;AACX;;;;;GAKG;AACH,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAEjD,MAAM,MAAM,GAAG,GAAG;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;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AAO,CAKhE,CAAC;AAEL,wBAAgB,WAAW,CACzB,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAM1C;AAED,gBAAgB;AAChB,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAKhE,CAAC;AAEL,wBAAgB,WAAW,CACzB,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAM1C;AAED,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CACsE,CAAC;AAEhF,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD;AAED,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CA8BP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -0,0 +1,110 @@
|
|
|
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.InformationRequest$inboundSchema = exports.OwnerAssignment$inboundSchema = exports.One$inboundSchema = exports.Two$inboundSchema = exports.Cadence$inboundSchema = exports.Cadence = void 0;
|
|
40
|
+
exports.twoFromJSON = twoFromJSON;
|
|
41
|
+
exports.oneFromJSON = oneFromJSON;
|
|
42
|
+
exports.ownerAssignmentFromJSON = ownerAssignmentFromJSON;
|
|
43
|
+
exports.informationRequestFromJSON = informationRequestFromJSON;
|
|
44
|
+
const z = __importStar(require("zod/v3"));
|
|
45
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
46
|
+
const informationrequestapprovalstatus_js_1 = require("./informationrequestapprovalstatus.js");
|
|
47
|
+
const informationrequesttype_js_1 = require("./informationrequesttype.js");
|
|
48
|
+
/**
|
|
49
|
+
* How frequently this information request recurs (e.g., annual password
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* policy reviews). Null for one-time requests.
|
|
53
|
+
*/
|
|
54
|
+
exports.Cadence = {
|
|
55
|
+
Annually: "ANNUALLY",
|
|
56
|
+
Biannually: "BIANNUALLY",
|
|
57
|
+
Monthly: "MONTHLY",
|
|
58
|
+
Quarterly: "QUARTERLY",
|
|
59
|
+
};
|
|
60
|
+
/** @internal */
|
|
61
|
+
exports.Cadence$inboundSchema = z
|
|
62
|
+
.nativeEnum(exports.Cadence);
|
|
63
|
+
/** @internal */
|
|
64
|
+
exports.Two$inboundSchema = z
|
|
65
|
+
.object({
|
|
66
|
+
displayName: z.string(),
|
|
67
|
+
id: z.string(),
|
|
68
|
+
type: z.literal("team"),
|
|
69
|
+
});
|
|
70
|
+
function twoFromJSON(jsonString) {
|
|
71
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Two$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Two' from JSON`);
|
|
72
|
+
}
|
|
73
|
+
/** @internal */
|
|
74
|
+
exports.One$inboundSchema = z
|
|
75
|
+
.object({
|
|
76
|
+
displayName: z.string(),
|
|
77
|
+
id: z.string(),
|
|
78
|
+
type: z.literal("user"),
|
|
79
|
+
});
|
|
80
|
+
function oneFromJSON(jsonString) {
|
|
81
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.One$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'One' from JSON`);
|
|
82
|
+
}
|
|
83
|
+
/** @internal */
|
|
84
|
+
exports.OwnerAssignment$inboundSchema = z.union([z.lazy(() => exports.One$inboundSchema), z.lazy(() => exports.Two$inboundSchema)]);
|
|
85
|
+
function ownerAssignmentFromJSON(jsonString) {
|
|
86
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.OwnerAssignment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OwnerAssignment' from JSON`);
|
|
87
|
+
}
|
|
88
|
+
/** @internal */
|
|
89
|
+
exports.InformationRequest$inboundSchema = z.object({
|
|
90
|
+
id: z.string(),
|
|
91
|
+
uniqueId: z.string(),
|
|
92
|
+
additionalControlIds: z.array(z.string()),
|
|
93
|
+
approvalStatus: informationrequestapprovalstatus_js_1.InformationRequestApprovalStatus$inboundSchema,
|
|
94
|
+
cadence: z.nullable(exports.Cadence$inboundSchema),
|
|
95
|
+
frameworkCodes: z.array(z.string()),
|
|
96
|
+
description: z.nullable(z.string()),
|
|
97
|
+
dueDate: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
98
|
+
evidenceCaptureDate: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
99
|
+
requestId: z.nullable(z.string()),
|
|
100
|
+
requestType: informationrequesttype_js_1.InformationRequestType$inboundSchema,
|
|
101
|
+
title: z.string(),
|
|
102
|
+
creationDate: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
103
|
+
modificationDate: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
104
|
+
deletionDate: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
105
|
+
ownerAssignment: z.nullable(z.union([z.lazy(() => exports.One$inboundSchema), z.lazy(() => exports.Two$inboundSchema)])),
|
|
106
|
+
});
|
|
107
|
+
function informationRequestFromJSON(jsonString) {
|
|
108
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InformationRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InformationRequest' from JSON`);
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=informationrequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"informationrequest.js","sourceRoot":"","sources":["../../src/models/components/informationrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2MH,kCAQC;AAUD,kCAQ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} from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import { InformationRequestActivityType } from "./informationrequestactivitytype.js";
|
|
6
|
+
/**
|
|
7
|
+
* Previous approval status before the status change.
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* Only populated for status change activities. Null for all other activity types.
|
|
11
|
+
*/
|
|
12
|
+
export declare const OldStatus: {
|
|
13
|
+
readonly ReadyForAudit: "READY_FOR_AUDIT";
|
|
14
|
+
readonly NeedsEvidence: "NEEDS_EVIDENCE";
|
|
15
|
+
readonly AuditorApproved: "AUDITOR_APPROVED";
|
|
16
|
+
readonly AuditorFlagged: "AUDITOR_FLAGGED";
|
|
17
|
+
readonly ReadyForInternalReview: "READY_FOR_INTERNAL_REVIEW";
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Previous approval status before the status change.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Only populated for status change activities. Null for all other activity types.
|
|
24
|
+
*/
|
|
25
|
+
export type OldStatus = ClosedEnum<typeof OldStatus>;
|
|
26
|
+
/**
|
|
27
|
+
* New approval status after the status change.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Only populated for status change activities. Null for all other activity types.
|
|
31
|
+
*/
|
|
32
|
+
export declare const NewStatus: {
|
|
33
|
+
readonly ReadyForAudit: "READY_FOR_AUDIT";
|
|
34
|
+
readonly NeedsEvidence: "NEEDS_EVIDENCE";
|
|
35
|
+
readonly AuditorApproved: "AUDITOR_APPROVED";
|
|
36
|
+
readonly AuditorFlagged: "AUDITOR_FLAGGED";
|
|
37
|
+
readonly ReadyForInternalReview: "READY_FOR_INTERNAL_REVIEW";
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* New approval status after the status change.
|
|
41
|
+
*
|
|
42
|
+
* @remarks
|
|
43
|
+
* Only populated for status change activities. Null for all other activity types.
|
|
44
|
+
*/
|
|
45
|
+
export type NewStatus = ClosedEnum<typeof NewStatus>;
|
|
46
|
+
/**
|
|
47
|
+
* Activity log entry tracking changes and actions on an information request.
|
|
48
|
+
*
|
|
49
|
+
* @remarks
|
|
50
|
+
*
|
|
51
|
+
* The activity log provides a complete audit trail of all operations performed
|
|
52
|
+
* on an information request, including status changes, evidence uploads, edits,
|
|
53
|
+
* and evidence sharing. This enables tracking compliance activities and understanding
|
|
54
|
+
* the request's history.
|
|
55
|
+
*/
|
|
56
|
+
export type InformationRequestActivityLog = {
|
|
57
|
+
/**
|
|
58
|
+
* The unique identifier for the activity log entry within Vanta's system.
|
|
59
|
+
*
|
|
60
|
+
* @remarks
|
|
61
|
+
* Format: ObjectId as a string (e.g., "6890e473dce1da5d8406f5e7").
|
|
62
|
+
*/
|
|
63
|
+
id: string;
|
|
64
|
+
activityType: InformationRequestActivityType;
|
|
65
|
+
/**
|
|
66
|
+
* Timestamp when the activity occurred.
|
|
67
|
+
*
|
|
68
|
+
* @remarks
|
|
69
|
+
* Format: ISO 8601 UTC timestamp.
|
|
70
|
+
*/
|
|
71
|
+
timestamp: Date;
|
|
72
|
+
/**
|
|
73
|
+
* Email address of the user who performed the activity.
|
|
74
|
+
*
|
|
75
|
+
* @remarks
|
|
76
|
+
* Null for system-generated activities (rare, such as automated status changes).
|
|
77
|
+
* This email uniquely identifies users across systems.
|
|
78
|
+
*/
|
|
79
|
+
userEmail: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Previous approval status before the status change.
|
|
82
|
+
*
|
|
83
|
+
* @remarks
|
|
84
|
+
* Only populated for status change activities. Null for all other activity types.
|
|
85
|
+
*/
|
|
86
|
+
oldStatus: OldStatus | null;
|
|
87
|
+
/**
|
|
88
|
+
* New approval status after the status change.
|
|
89
|
+
*
|
|
90
|
+
* @remarks
|
|
91
|
+
* Only populated for status change activities. Null for all other activity types.
|
|
92
|
+
*/
|
|
93
|
+
newStatus: NewStatus | null;
|
|
94
|
+
/**
|
|
95
|
+
* Optional explanation for the status change.
|
|
96
|
+
*
|
|
97
|
+
* @remarks
|
|
98
|
+
* Only populated for status change activities when a reason is provided
|
|
99
|
+
* (e.g., when flagging evidence). Null for all other cases.
|
|
100
|
+
*/
|
|
101
|
+
reason: string | null;
|
|
102
|
+
};
|
|
103
|
+
/** @internal */
|
|
104
|
+
export declare const OldStatus$inboundSchema: z.ZodNativeEnum<typeof OldStatus>;
|
|
105
|
+
/** @internal */
|
|
106
|
+
export declare const NewStatus$inboundSchema: z.ZodNativeEnum<typeof NewStatus>;
|
|
107
|
+
/** @internal */
|
|
108
|
+
export declare const InformationRequestActivityLog$inboundSchema: z.ZodType<InformationRequestActivityLog, z.ZodTypeDef, unknown>;
|
|
109
|
+
export declare function informationRequestActivityLogFromJSON(jsonString: string): SafeParseResult<InformationRequestActivityLog, SDKValidationError>;
|
|
110
|
+
//# sourceMappingURL=informationrequestactivitylog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"informationrequestactivitylog.d.ts","sourceRoot":"","sources":["../../src/models/components/informationrequestactivitylog.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,8BAA8B,EAE/B,MAAM,qCAAqC,CAAC;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,SAAS;;;;;;CAMZ,CAAC;AACX;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAErD;;;;;GAKG;AACH,eAAO,MAAM,SAAS;;;;;;CAMZ,CAAC;AACX;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAErD;;;;;;;;;GASG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,8BAA8B,CAAC;IAC7C;;;;;OAKG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;;;OAMG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;;OAKG;IACH,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;IAC5B;;;;;OAKG;IACH,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;IAC5B;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,SAAS,CAC9C,CAAC;AAEzB,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,SAAS,CAC9C,CAAC;AAEzB,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,qCAAqC,CACnD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,6BAA6B,EAAE,kBAAkB,CAAC,CAMpE"}
|
|
@@ -0,0 +1,89 @@
|
|
|
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.InformationRequestActivityLog$inboundSchema = exports.NewStatus$inboundSchema = exports.OldStatus$inboundSchema = exports.NewStatus = exports.OldStatus = void 0;
|
|
40
|
+
exports.informationRequestActivityLogFromJSON = informationRequestActivityLogFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
43
|
+
const informationrequestactivitytype_js_1 = require("./informationrequestactivitytype.js");
|
|
44
|
+
/**
|
|
45
|
+
* Previous approval status before the status change.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* Only populated for status change activities. Null for all other activity types.
|
|
49
|
+
*/
|
|
50
|
+
exports.OldStatus = {
|
|
51
|
+
ReadyForAudit: "READY_FOR_AUDIT",
|
|
52
|
+
NeedsEvidence: "NEEDS_EVIDENCE",
|
|
53
|
+
AuditorApproved: "AUDITOR_APPROVED",
|
|
54
|
+
AuditorFlagged: "AUDITOR_FLAGGED",
|
|
55
|
+
ReadyForInternalReview: "READY_FOR_INTERNAL_REVIEW",
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* New approval status after the status change.
|
|
59
|
+
*
|
|
60
|
+
* @remarks
|
|
61
|
+
* Only populated for status change activities. Null for all other activity types.
|
|
62
|
+
*/
|
|
63
|
+
exports.NewStatus = {
|
|
64
|
+
ReadyForAudit: "READY_FOR_AUDIT",
|
|
65
|
+
NeedsEvidence: "NEEDS_EVIDENCE",
|
|
66
|
+
AuditorApproved: "AUDITOR_APPROVED",
|
|
67
|
+
AuditorFlagged: "AUDITOR_FLAGGED",
|
|
68
|
+
ReadyForInternalReview: "READY_FOR_INTERNAL_REVIEW",
|
|
69
|
+
};
|
|
70
|
+
/** @internal */
|
|
71
|
+
exports.OldStatus$inboundSchema = z
|
|
72
|
+
.nativeEnum(exports.OldStatus);
|
|
73
|
+
/** @internal */
|
|
74
|
+
exports.NewStatus$inboundSchema = z
|
|
75
|
+
.nativeEnum(exports.NewStatus);
|
|
76
|
+
/** @internal */
|
|
77
|
+
exports.InformationRequestActivityLog$inboundSchema = z.object({
|
|
78
|
+
id: z.string(),
|
|
79
|
+
activityType: informationrequestactivitytype_js_1.InformationRequestActivityType$inboundSchema,
|
|
80
|
+
timestamp: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
81
|
+
userEmail: z.nullable(z.string()),
|
|
82
|
+
oldStatus: z.nullable(exports.OldStatus$inboundSchema),
|
|
83
|
+
newStatus: z.nullable(exports.NewStatus$inboundSchema),
|
|
84
|
+
reason: z.nullable(z.string()),
|
|
85
|
+
});
|
|
86
|
+
function informationRequestActivityLogFromJSON(jsonString) {
|
|
87
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InformationRequestActivityLog$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InformationRequestActivityLog' from JSON`);
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=informationrequestactivitylog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"informationrequestactivitylog.js","sourceRoot":"","sources":["../../src/models/components/informationrequestactivitylog.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuIH,sFAQC;AA7ID,0CAA4B;AAC5B,qDAAiD;AAIjD,2FAG6C;AAE7C;;;;;GAKG;AACU,QAAA,SAAS,GAAG;IACvB,aAAa,EAAE,iBAAiB;IAChC,aAAa,EAAE,gBAAgB;IAC/B,eAAe,EAAE,kBAAkB;IACnC,cAAc,EAAE,iBAAiB;IACjC,sBAAsB,EAAE,2BAA2B;CAC3C,CAAC;AASX;;;;;GAKG;AACU,QAAA,SAAS,GAAG;IACvB,aAAa,EAAE,iBAAiB;IAChC,aAAa,EAAE,gBAAgB;IAC/B,eAAe,EAAE,kBAAkB;IACnC,cAAc,EAAE,iBAAiB;IACjC,sBAAsB,EAAE,2BAA2B;CAC3C,CAAC;AAmEX,gBAAgB;AACH,QAAA,uBAAuB,GAAsC,CAAC;KACxE,UAAU,CAAC,iBAAS,CAAC,CAAC;AAEzB,gBAAgB;AACH,QAAA,uBAAuB,GAAsC,CAAC;KACxE,UAAU,CAAC,iBAAS,CAAC,CAAC;AAEzB,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,YAAY,EAAE,gFAA4C;IAC1D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC5E,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,+BAAuB,CAAC;IAC9C,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,+BAAuB,CAAC;IAC9C,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAC;AAEH,SAAgB,qCAAqC,CACnD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mDAA2C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,2DAA2D,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const InformationRequestActivityType: {
|
|
4
|
+
readonly ChangeStatus: "CHANGE_STATUS";
|
|
5
|
+
readonly EditRequest: "EDIT_REQUEST";
|
|
6
|
+
readonly RemoveEvidence: "REMOVE_EVIDENCE";
|
|
7
|
+
readonly ShareEvidenceWithAuditor: "SHARE_EVIDENCE_WITH_AUDITOR";
|
|
8
|
+
readonly UploadEvidence: "UPLOAD_EVIDENCE";
|
|
9
|
+
};
|
|
10
|
+
export type InformationRequestActivityType = ClosedEnum<typeof InformationRequestActivityType>;
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const InformationRequestActivityType$inboundSchema: z.ZodNativeEnum<typeof InformationRequestActivityType>;
|
|
13
|
+
//# sourceMappingURL=informationrequestactivitytype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"informationrequestactivitytype.d.ts","sourceRoot":"","sources":["../../src/models/components/informationrequestactivitytype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,8BAA8B;;;;;;CAMjC,CAAC;AACX,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,aAAa,CACxE,OAAO,8BAA8B,CACS,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.InformationRequestActivityType$inboundSchema = exports.InformationRequestActivityType = void 0;
|
|
40
|
+
const z = __importStar(require("zod/v3"));
|
|
41
|
+
exports.InformationRequestActivityType = {
|
|
42
|
+
ChangeStatus: "CHANGE_STATUS",
|
|
43
|
+
EditRequest: "EDIT_REQUEST",
|
|
44
|
+
RemoveEvidence: "REMOVE_EVIDENCE",
|
|
45
|
+
ShareEvidenceWithAuditor: "SHARE_EVIDENCE_WITH_AUDITOR",
|
|
46
|
+
UploadEvidence: "UPLOAD_EVIDENCE",
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
exports.InformationRequestActivityType$inboundSchema = z.nativeEnum(exports.InformationRequestActivityType);
|
|
50
|
+
//# sourceMappingURL=informationrequestactivitytype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"informationrequestactivitytype.js","sourceRoot":"","sources":["../../src/models/components/informationrequestactivitytype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,8BAA8B,GAAG;IAC5C,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,cAAc;IAC3B,cAAc,EAAE,iBAAiB;IACjC,wBAAwB,EAAE,6BAA6B;IACvD,cAAc,EAAE,iBAAiB;CACzB,CAAC;AAKX,gBAAgB;AACH,QAAA,4CAA4C,GAErD,CAAC,CAAC,UAAU,CAAC,sCAA8B,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Current approval status of the information request, tracking its lifecycle through the audit process.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
*
|
|
8
|
+
* The status progresses through the workflow: initial state → awaiting review → approved or flagged.
|
|
9
|
+
* Status can move between awaiting review and flagged states as evidence is reviewed and resubmitted.
|
|
10
|
+
*/
|
|
11
|
+
export declare const InformationRequestApprovalStatus: {
|
|
12
|
+
readonly NeedsEvidence: "NEEDS_EVIDENCE";
|
|
13
|
+
readonly ReadyForAudit: "READY_FOR_AUDIT";
|
|
14
|
+
readonly AuditorApproved: "AUDITOR_APPROVED";
|
|
15
|
+
readonly AuditorFlagged: "AUDITOR_FLAGGED";
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Current approval status of the information request, tracking its lifecycle through the audit process.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
*
|
|
22
|
+
* The status progresses through the workflow: initial state → awaiting review → approved or flagged.
|
|
23
|
+
* Status can move between awaiting review and flagged states as evidence is reviewed and resubmitted.
|
|
24
|
+
*/
|
|
25
|
+
export type InformationRequestApprovalStatus = ClosedEnum<typeof InformationRequestApprovalStatus>;
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const InformationRequestApprovalStatus$inboundSchema: z.ZodNativeEnum<typeof InformationRequestApprovalStatus>;
|
|
28
|
+
//# sourceMappingURL=informationrequestapprovalstatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"informationrequestapprovalstatus.d.ts","sourceRoot":"","sources":["../../src/models/components/informationrequestapprovalstatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,gCAAgC;;;;;CAKnC,CAAC;AACX;;;;;;;GAOG;AACH,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,gCAAgC,CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,aAAa,CAC1E,OAAO,gCAAgC,CACS,CAAC"}
|