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
package/src/lib/files.ts
CHANGED
|
@@ -80,3 +80,25 @@ export function getContentTypeFromFileName(fileName: string): string | null {
|
|
|
80
80
|
|
|
81
81
|
return mimeTypes[ext] || null;
|
|
82
82
|
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Creates a Blob from file content with the given MIME type.
|
|
86
|
+
*
|
|
87
|
+
* Node.js Buffers are Uint8Array subclasses that may share a pooled
|
|
88
|
+
* ArrayBuffer (byteOffset > 0, byteLength < buffer.byteLength). Passing
|
|
89
|
+
* such a Buffer directly to `new Blob([buf])` can include the entire
|
|
90
|
+
* underlying pool on some runtimes, producing a Blob with extra bytes
|
|
91
|
+
* that corrupts multipart uploads.
|
|
92
|
+
*
|
|
93
|
+
* Copying into a standalone Uint8Array ensures the Blob receives only the
|
|
94
|
+
* intended bytes regardless of runtime behaviour.
|
|
95
|
+
*/
|
|
96
|
+
export function bytesToBlob(
|
|
97
|
+
content: Uint8Array<ArrayBufferLike> | ArrayBuffer | Blob | string,
|
|
98
|
+
contentType: string,
|
|
99
|
+
): Blob {
|
|
100
|
+
if (content instanceof Uint8Array) {
|
|
101
|
+
return new Blob([new Uint8Array(content)], { type: contentType });
|
|
102
|
+
}
|
|
103
|
+
return new Blob([content as BlobPart], { type: contentType });
|
|
104
|
+
}
|
package/src/lib/matchers.ts
CHANGED
|
@@ -248,8 +248,9 @@ export function match<T, E>(
|
|
|
248
248
|
raw = body;
|
|
249
249
|
break;
|
|
250
250
|
default:
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
throw new Error(
|
|
252
|
+
`Unsupported response type: ${encoding satisfies never}`,
|
|
253
|
+
);
|
|
253
254
|
}
|
|
254
255
|
|
|
255
256
|
if (matcher.enc === "fail") {
|
package/src/lib/sdks.ts
CHANGED
|
@@ -22,7 +22,6 @@ import {
|
|
|
22
22
|
isConnectionError,
|
|
23
23
|
isTimeoutError,
|
|
24
24
|
matchContentType,
|
|
25
|
-
matchStatusCode,
|
|
26
25
|
} from "./http.js";
|
|
27
26
|
import { Logger } from "./logger.js";
|
|
28
27
|
import { retry, RetryConfig } from "./retries.js";
|
|
@@ -128,13 +127,15 @@ export class ClientSDK {
|
|
|
128
127
|
if (!base) {
|
|
129
128
|
return ERR(new InvalidRequestError("No base URL provided for operation"));
|
|
130
129
|
}
|
|
131
|
-
const
|
|
132
|
-
|
|
133
|
-
|
|
130
|
+
const baseURL = new URL(base);
|
|
131
|
+
let reqURL: URL;
|
|
134
132
|
if (path) {
|
|
135
|
-
|
|
136
|
-
reqURL
|
|
133
|
+
baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
|
|
134
|
+
reqURL = new URL(path, baseURL);
|
|
135
|
+
} else {
|
|
136
|
+
reqURL = baseURL;
|
|
137
137
|
}
|
|
138
|
+
reqURL.hash = "";
|
|
138
139
|
|
|
139
140
|
let finalQuery = query || "";
|
|
140
141
|
|
|
@@ -232,7 +233,7 @@ export class ClientSDK {
|
|
|
232
233
|
request: Request,
|
|
233
234
|
options: {
|
|
234
235
|
context: HookContext;
|
|
235
|
-
|
|
236
|
+
isErrorStatusCode: (statusCode: number) => boolean;
|
|
236
237
|
retryConfig: RetryConfig;
|
|
237
238
|
retryCodes: string[];
|
|
238
239
|
},
|
|
@@ -245,7 +246,7 @@ export class ClientSDK {
|
|
|
245
246
|
| UnexpectedClientError
|
|
246
247
|
>
|
|
247
248
|
> {
|
|
248
|
-
const { context,
|
|
249
|
+
const { context, isErrorStatusCode } = options;
|
|
249
250
|
|
|
250
251
|
return retry(
|
|
251
252
|
async () => {
|
|
@@ -257,7 +258,7 @@ export class ClientSDK {
|
|
|
257
258
|
let response = await this.#httpClient.request(req);
|
|
258
259
|
|
|
259
260
|
try {
|
|
260
|
-
if (
|
|
261
|
+
if (isErrorStatusCode(response.status)) {
|
|
261
262
|
const result = await this.#hooks.afterError(
|
|
262
263
|
context,
|
|
263
264
|
response,
|
|
@@ -308,9 +309,9 @@ export class ClientSDK {
|
|
|
308
309
|
}
|
|
309
310
|
}
|
|
310
311
|
|
|
311
|
-
const jsonLikeContentTypeRE =
|
|
312
|
+
const jsonLikeContentTypeRE = /^(application|text)\/([^+]+\+)*json.*/;
|
|
312
313
|
const jsonlLikeContentTypeRE =
|
|
313
|
-
|
|
314
|
+
/^(application|text)\/([^+]+\+)*(jsonl|x-ndjson)\b.*/;
|
|
314
315
|
async function logRequest(logger: Logger | undefined, req: Request) {
|
|
315
316
|
if (!logger) {
|
|
316
317
|
return;
|
|
@@ -381,8 +382,6 @@ async function logResponse(
|
|
|
381
382
|
break;
|
|
382
383
|
case matchContentType(res, "application/jsonl")
|
|
383
384
|
|| jsonlLikeContentTypeRE.test(ct):
|
|
384
|
-
logger.log(await res.clone().text());
|
|
385
|
-
break;
|
|
386
385
|
case matchContentType(res, "text/event-stream"):
|
|
387
386
|
logger.log(`<${contentType}>`);
|
|
388
387
|
break;
|
package/src/lib/security.ts
CHANGED
|
@@ -198,8 +198,7 @@ export function resolveSecurity(
|
|
|
198
198
|
applyBearer(state, spec);
|
|
199
199
|
break;
|
|
200
200
|
default:
|
|
201
|
-
spec satisfies never;
|
|
202
|
-
throw SecurityError.unrecognizedType(type);
|
|
201
|
+
throw SecurityError.unrecognizedType((spec satisfies never, type));
|
|
203
202
|
}
|
|
204
203
|
});
|
|
205
204
|
|
|
@@ -241,8 +240,9 @@ function applyBearer(
|
|
|
241
240
|
|
|
242
241
|
export function resolveGlobalSecurity(
|
|
243
242
|
security: Partial<components.Security> | null | undefined,
|
|
243
|
+
allowedFields?: number[],
|
|
244
244
|
): SecurityState | null {
|
|
245
|
-
|
|
245
|
+
let inputs: SecurityInput[][] = [
|
|
246
246
|
[
|
|
247
247
|
{
|
|
248
248
|
fieldName: "Authorization",
|
|
@@ -250,7 +250,18 @@ export function resolveGlobalSecurity(
|
|
|
250
250
|
value: security?.bearerAuth ?? env().VANTA_BEARER_AUTH,
|
|
251
251
|
},
|
|
252
252
|
],
|
|
253
|
-
|
|
253
|
+
];
|
|
254
|
+
|
|
255
|
+
if (allowedFields) {
|
|
256
|
+
inputs = allowedFields.map((i) => {
|
|
257
|
+
if (i < 0 || i >= inputs.length) {
|
|
258
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
259
|
+
}
|
|
260
|
+
return inputs[i]!;
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
return resolveSecurity(...inputs);
|
|
254
265
|
}
|
|
255
266
|
|
|
256
267
|
export async function extractSecurity<
|
package/src/lib/url.ts
CHANGED
|
@@ -13,21 +13,23 @@ export function pathToFunc(
|
|
|
13
13
|
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
|
-
return pathPattern
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
return pathPattern
|
|
17
|
+
.replace(paramRE, function (_, placeholder) {
|
|
18
|
+
if (!hasOwn.call(params, placeholder)) {
|
|
19
|
+
throw new Error(`Parameter '${placeholder}' is required`);
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
const value = params[placeholder];
|
|
23
|
+
if (typeof value !== "string" && typeof value !== "number") {
|
|
24
|
+
throw new Error(
|
|
25
|
+
`Parameter '${placeholder}' must be a string or number`,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
return options?.charEncoding === "percent"
|
|
30
|
+
? encodeURIComponent(`${value}`)
|
|
31
|
+
: `${value}`;
|
|
32
|
+
})
|
|
33
|
+
.replace(/^\/+/, "");
|
|
32
34
|
};
|
|
33
35
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Input for accepting evidence on an information request, indicating that
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* the submitted evidence meets requirements. This changes the request's
|
|
12
|
+
* approvalStatus to an approved state and creates an activity log entry.
|
|
13
|
+
*/
|
|
14
|
+
export type AcceptInformationRequestEvidenceInput = {
|
|
15
|
+
/**
|
|
16
|
+
* Email of the auditor accepting the evidence.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Must match an existing Vanta user who belongs to the audit firm making the API request.
|
|
20
|
+
*/
|
|
21
|
+
auditorEmail: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type AcceptInformationRequestEvidenceInput$Outbound = {
|
|
26
|
+
auditorEmail: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const AcceptInformationRequestEvidenceInput$outboundSchema: z.ZodType<
|
|
31
|
+
AcceptInformationRequestEvidenceInput$Outbound,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
AcceptInformationRequestEvidenceInput
|
|
34
|
+
> = z.object({
|
|
35
|
+
auditorEmail: z.string(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function acceptInformationRequestEvidenceInputToJSON(
|
|
39
|
+
acceptInformationRequestEvidenceInput: AcceptInformationRequestEvidenceInput,
|
|
40
|
+
): string {
|
|
41
|
+
return JSON.stringify(
|
|
42
|
+
AcceptInformationRequestEvidenceInput$outboundSchema.parse(
|
|
43
|
+
acceptInformationRequestEvidenceInput,
|
|
44
|
+
),
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Comments enable communication between auditors and customers about
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* evidence requirements and submissions. All comments are immediately
|
|
12
|
+
* visible to both parties once created.
|
|
13
|
+
*/
|
|
14
|
+
export type AddInformationRequestCommentInput = {
|
|
15
|
+
/**
|
|
16
|
+
* The text content of the comment.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Must be at least 1 character. Can include questions, clarifications,
|
|
20
|
+
* or explanations related to the information request.
|
|
21
|
+
*/
|
|
22
|
+
text: string;
|
|
23
|
+
/**
|
|
24
|
+
* Email address of the comment author.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Must match an existing Vanta user who belongs to the audit firm making the API request.
|
|
28
|
+
* This email uniquely identifies the author across systems.
|
|
29
|
+
*/
|
|
30
|
+
email: string;
|
|
31
|
+
/**
|
|
32
|
+
* Timestamp when the comment was created in the external audit management system.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* This allows synchronizing comment timestamps from external systems.
|
|
36
|
+
* Format: ISO 8601 UTC timestamp.
|
|
37
|
+
*/
|
|
38
|
+
creationDate: Date;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type AddInformationRequestCommentInput$Outbound = {
|
|
43
|
+
text: string;
|
|
44
|
+
email: string;
|
|
45
|
+
creationDate: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const AddInformationRequestCommentInput$outboundSchema: z.ZodType<
|
|
50
|
+
AddInformationRequestCommentInput$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
AddInformationRequestCommentInput
|
|
53
|
+
> = z.object({
|
|
54
|
+
text: z.string(),
|
|
55
|
+
email: z.string(),
|
|
56
|
+
creationDate: z.date().transform(v => v.toISOString()),
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export function addInformationRequestCommentInputToJSON(
|
|
60
|
+
addInformationRequestCommentInput: AddInformationRequestCommentInput,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
AddInformationRequestCommentInput$outboundSchema.parse(
|
|
64
|
+
addInformationRequestCommentInput,
|
|
65
|
+
),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -8,6 +8,20 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
import { AuditFocus, AuditFocus$inboundSchema } from "./auditfocus.js";
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Metadata about the auditor request list. This field is only present for IRL (Information
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Request List) based audits and will be undefined for standard audits. Use the presence
|
|
16
|
+
* of this field to differentiate between IRL and non-IRL audits.
|
|
17
|
+
*/
|
|
18
|
+
export type AuditorRequestListMetadata = {
|
|
19
|
+
/**
|
|
20
|
+
* Timestamp when information requests were shared with the customer. Null if not shared.
|
|
21
|
+
*/
|
|
22
|
+
requestsSharedWithCustomer: Date | null;
|
|
23
|
+
};
|
|
24
|
+
|
|
11
25
|
export type Audit = {
|
|
12
26
|
/**
|
|
13
27
|
* The unique identifier for the audit.
|
|
@@ -41,6 +55,13 @@ export type Audit = {
|
|
|
41
55
|
* The name of the framework for the audit
|
|
42
56
|
*/
|
|
43
57
|
framework: string;
|
|
58
|
+
/**
|
|
59
|
+
* The display name for the audit. Returns the custom audit name if set,
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* otherwise returns the framework name.
|
|
63
|
+
*/
|
|
64
|
+
displayName: string;
|
|
44
65
|
/**
|
|
45
66
|
* Emails of auditors with access to audit
|
|
46
67
|
*/
|
|
@@ -66,8 +87,37 @@ export type Audit = {
|
|
|
66
87
|
*/
|
|
67
88
|
completionDate: Date | null;
|
|
68
89
|
auditFocus: AuditFocus;
|
|
90
|
+
/**
|
|
91
|
+
* Metadata about the auditor request list. This field is only present for IRL (Information
|
|
92
|
+
*
|
|
93
|
+
* @remarks
|
|
94
|
+
* Request List) based audits and will be undefined for standard audits. Use the presence
|
|
95
|
+
* of this field to differentiate between IRL and non-IRL audits.
|
|
96
|
+
*/
|
|
97
|
+
auditorRequestListMetadata?: AuditorRequestListMetadata | undefined;
|
|
69
98
|
};
|
|
70
99
|
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const AuditorRequestListMetadata$inboundSchema: z.ZodType<
|
|
102
|
+
AuditorRequestListMetadata,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
unknown
|
|
105
|
+
> = z.object({
|
|
106
|
+
requestsSharedWithCustomer: z.nullable(
|
|
107
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
108
|
+
),
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
export function auditorRequestListMetadataFromJSON(
|
|
112
|
+
jsonString: string,
|
|
113
|
+
): SafeParseResult<AuditorRequestListMetadata, SDKValidationError> {
|
|
114
|
+
return safeParse(
|
|
115
|
+
jsonString,
|
|
116
|
+
(x) => AuditorRequestListMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
117
|
+
`Failed to parse 'AuditorRequestListMetadata' from JSON`,
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
71
121
|
/** @internal */
|
|
72
122
|
export const Audit$inboundSchema: z.ZodType<Audit, z.ZodTypeDef, unknown> = z
|
|
73
123
|
.object({
|
|
@@ -85,6 +135,7 @@ export const Audit$inboundSchema: z.ZodType<Audit, z.ZodTypeDef, unknown> = z
|
|
|
85
135
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
86
136
|
),
|
|
87
137
|
framework: z.string(),
|
|
138
|
+
displayName: z.string(),
|
|
88
139
|
allowAuditorEmails: z.array(z.string()),
|
|
89
140
|
allowAllAuditors: z.boolean(),
|
|
90
141
|
deletionDate: z.nullable(
|
|
@@ -100,6 +151,9 @@ export const Audit$inboundSchema: z.ZodType<Audit, z.ZodTypeDef, unknown> = z
|
|
|
100
151
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
101
152
|
),
|
|
102
153
|
auditFocus: AuditFocus$inboundSchema,
|
|
154
|
+
auditorRequestListMetadata: z.lazy(() =>
|
|
155
|
+
AuditorRequestListMetadata$inboundSchema
|
|
156
|
+
).optional(),
|
|
103
157
|
});
|
|
104
158
|
|
|
105
159
|
export function auditFromJSON(
|
|
@@ -62,6 +62,14 @@ export type AuditorControl = {
|
|
|
62
62
|
* The control's custom field values, if control custom fields is included in your Vanta instance.
|
|
63
63
|
*/
|
|
64
64
|
customFields: Array<CustomField>;
|
|
65
|
+
/**
|
|
66
|
+
* When the control was created. Returns null for Vanta library controls.
|
|
67
|
+
*/
|
|
68
|
+
creationDate: Date | null;
|
|
69
|
+
/**
|
|
70
|
+
* When the control was last modified. Returns null for Vanta library controls.
|
|
71
|
+
*/
|
|
72
|
+
modificationDate: Date | null;
|
|
65
73
|
/**
|
|
66
74
|
* The report standard framework fulfilled by the control.
|
|
67
75
|
*/
|
|
@@ -105,6 +113,12 @@ export const AuditorControl$inboundSchema: z.ZodType<
|
|
|
105
113
|
owner: z.nullable(z.lazy(() => Owner$inboundSchema)),
|
|
106
114
|
role: z.nullable(z.string()).optional(),
|
|
107
115
|
customFields: z.array(CustomField$inboundSchema),
|
|
116
|
+
creationDate: z.nullable(
|
|
117
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
118
|
+
),
|
|
119
|
+
modificationDate: z.nullable(
|
|
120
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
121
|
+
),
|
|
108
122
|
framework: z.string(),
|
|
109
123
|
sections: z.array(Section$inboundSchema),
|
|
110
124
|
});
|
|
@@ -36,6 +36,15 @@ export type Comment = {
|
|
|
36
36
|
* The email of the comment author. This acts as a unique identifier to map users between Vanta and external systems.
|
|
37
37
|
*/
|
|
38
38
|
email: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Human-readable display name of the comment author.
|
|
41
|
+
*
|
|
42
|
+
* @remarks
|
|
43
|
+
* Null if the author's name is not available (e.g., user was deleted).
|
|
44
|
+
* This enables correct author attribution in integrations where users cannot
|
|
45
|
+
* be reliably matched across systems by email alone.
|
|
46
|
+
*/
|
|
47
|
+
authorName: string | null;
|
|
39
48
|
};
|
|
40
49
|
|
|
41
50
|
/** @internal */
|
|
@@ -54,6 +63,7 @@ export const Comment$inboundSchema: z.ZodType<Comment, z.ZodTypeDef, unknown> =
|
|
|
54
63
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
55
64
|
),
|
|
56
65
|
email: z.nullable(z.string()),
|
|
66
|
+
authorName: z.nullable(z.string()),
|
|
57
67
|
});
|
|
58
68
|
|
|
59
69
|
export function commentFromJSON(
|
|
@@ -61,6 +61,14 @@ export type Control = {
|
|
|
61
61
|
* The control's custom field values, if control custom fields is included in your Vanta instance.
|
|
62
62
|
*/
|
|
63
63
|
customFields: Array<CustomField>;
|
|
64
|
+
/**
|
|
65
|
+
* When the control was created. Returns null for Vanta library controls.
|
|
66
|
+
*/
|
|
67
|
+
creationDate: Date | null;
|
|
68
|
+
/**
|
|
69
|
+
* When the control was last modified. Returns null for Vanta library controls.
|
|
70
|
+
*/
|
|
71
|
+
modificationDate: Date | null;
|
|
64
72
|
};
|
|
65
73
|
|
|
66
74
|
/** @internal */
|
|
@@ -96,6 +104,12 @@ export const Control$inboundSchema: z.ZodType<Control, z.ZodTypeDef, unknown> =
|
|
|
96
104
|
owner: z.nullable(z.lazy(() => ControlOwner$inboundSchema)),
|
|
97
105
|
role: z.nullable(z.string()).optional(),
|
|
98
106
|
customFields: z.array(CustomField$inboundSchema),
|
|
107
|
+
creationDate: z.nullable(
|
|
108
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
109
|
+
),
|
|
110
|
+
modificationDate: z.nullable(
|
|
111
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
112
|
+
),
|
|
99
113
|
});
|
|
100
114
|
|
|
101
115
|
export function controlFromJSON(
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
import {
|
|
8
|
+
InformationRequestType,
|
|
9
|
+
InformationRequestType$outboundSchema,
|
|
10
|
+
} from "./informationrequesttype.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* How frequently this request recurs. Null or omitted for one-time requests.
|
|
14
|
+
*/
|
|
15
|
+
export const CreateInformationRequestInputCadence = {
|
|
16
|
+
Annually: "ANNUALLY",
|
|
17
|
+
Biannually: "BIANNUALLY",
|
|
18
|
+
Monthly: "MONTHLY",
|
|
19
|
+
Quarterly: "QUARTERLY",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* How frequently this request recurs. Null or omitted for one-time requests.
|
|
23
|
+
*/
|
|
24
|
+
export type CreateInformationRequestInputCadence = ClosedEnum<
|
|
25
|
+
typeof CreateInformationRequestInputCadence
|
|
26
|
+
>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Input for creating a new information request.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* New requests are created in an initial state by default.
|
|
33
|
+
*/
|
|
34
|
+
export type CreateInformationRequestInput = {
|
|
35
|
+
/**
|
|
36
|
+
* External unique ID to prevent duplicate requests across audit systems.
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* Must be unique within the audit. Used for idempotency.
|
|
40
|
+
*/
|
|
41
|
+
uniqueId: string;
|
|
42
|
+
/**
|
|
43
|
+
* Short, descriptive title summarizing what is being requested.
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* Must be at least 1 character.
|
|
47
|
+
*/
|
|
48
|
+
title: string;
|
|
49
|
+
/**
|
|
50
|
+
* Type of information request, defining what scope of evidence is needed.
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
*
|
|
54
|
+
* - POINT_IN_TIME: Evidence for a specific moment (e.g., current state of a policy)
|
|
55
|
+
* - POPULATION: Evidence covering all items in a category (e.g., all employees)
|
|
56
|
+
* - SAMPLE: Evidence for a representative sample (e.g., 10 random customer records)
|
|
57
|
+
*/
|
|
58
|
+
requestType: InformationRequestType;
|
|
59
|
+
/**
|
|
60
|
+
* Detailed description explaining what evidence is needed.
|
|
61
|
+
*
|
|
62
|
+
* @remarks
|
|
63
|
+
* Helps the customer understand what to submit. Optional.
|
|
64
|
+
*/
|
|
65
|
+
description?: string | null | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Framework codes this request addresses.
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
* An empty array if no framework codes are associated.
|
|
71
|
+
*/
|
|
72
|
+
frameworkCodes: Array<string>;
|
|
73
|
+
/**
|
|
74
|
+
* How frequently this request recurs. Null or omitted for one-time requests.
|
|
75
|
+
*/
|
|
76
|
+
cadence?: CreateInformationRequestInputCadence | null | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Deadline for fulfilling this request. Null or omitted if no deadline.
|
|
79
|
+
*
|
|
80
|
+
* @remarks
|
|
81
|
+
* Format: ISO 8601 UTC timestamp.
|
|
82
|
+
*/
|
|
83
|
+
dueDate?: Date | null | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Start date of the audit period. Evidence before this date may not be accepted.
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* Null or omitted if not restricted.
|
|
89
|
+
* Format: ISO 8601 UTC timestamp.
|
|
90
|
+
*/
|
|
91
|
+
evidenceCaptureDate?: Date | null | undefined;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const CreateInformationRequestInputCadence$outboundSchema:
|
|
96
|
+
z.ZodNativeEnum<typeof CreateInformationRequestInputCadence> = z.nativeEnum(
|
|
97
|
+
CreateInformationRequestInputCadence,
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export type CreateInformationRequestInput$Outbound = {
|
|
102
|
+
uniqueId: string;
|
|
103
|
+
title: string;
|
|
104
|
+
requestType: string;
|
|
105
|
+
description?: string | null | undefined;
|
|
106
|
+
frameworkCodes: Array<string>;
|
|
107
|
+
cadence?: string | null | undefined;
|
|
108
|
+
dueDate?: string | null | undefined;
|
|
109
|
+
evidenceCaptureDate?: string | null | undefined;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const CreateInformationRequestInput$outboundSchema: z.ZodType<
|
|
114
|
+
CreateInformationRequestInput$Outbound,
|
|
115
|
+
z.ZodTypeDef,
|
|
116
|
+
CreateInformationRequestInput
|
|
117
|
+
> = z.object({
|
|
118
|
+
uniqueId: z.string(),
|
|
119
|
+
title: z.string(),
|
|
120
|
+
requestType: InformationRequestType$outboundSchema,
|
|
121
|
+
description: z.nullable(z.string()).optional(),
|
|
122
|
+
frameworkCodes: z.array(z.string()),
|
|
123
|
+
cadence: z.nullable(CreateInformationRequestInputCadence$outboundSchema)
|
|
124
|
+
.optional(),
|
|
125
|
+
dueDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
126
|
+
evidenceCaptureDate: z.nullable(z.date().transform(v => v.toISOString()))
|
|
127
|
+
.optional(),
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
export function createInformationRequestInputToJSON(
|
|
131
|
+
createInformationRequestInput: CreateInformationRequestInput,
|
|
132
|
+
): string {
|
|
133
|
+
return JSON.stringify(
|
|
134
|
+
CreateInformationRequestInput$outboundSchema.parse(
|
|
135
|
+
createInformationRequestInput,
|
|
136
|
+
),
|
|
137
|
+
);
|
|
138
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Deletes an existing comment on an information request.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* Only the original author of the comment can delete it.
|
|
12
|
+
*/
|
|
13
|
+
export type DeleteInformationRequestCommentInput = {
|
|
14
|
+
/**
|
|
15
|
+
* Email address of the comment author.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Must match an existing Vanta user who belongs to the audit firm making the API request.
|
|
19
|
+
* This email uniquely identifies the author across systems.
|
|
20
|
+
*/
|
|
21
|
+
email: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type DeleteInformationRequestCommentInput$Outbound = {
|
|
26
|
+
email: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const DeleteInformationRequestCommentInput$outboundSchema: z.ZodType<
|
|
31
|
+
DeleteInformationRequestCommentInput$Outbound,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
DeleteInformationRequestCommentInput
|
|
34
|
+
> = z.object({
|
|
35
|
+
email: z.string(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function deleteInformationRequestCommentInputToJSON(
|
|
39
|
+
deleteInformationRequestCommentInput: DeleteInformationRequestCommentInput,
|
|
40
|
+
): string {
|
|
41
|
+
return JSON.stringify(
|
|
42
|
+
DeleteInformationRequestCommentInput$outboundSchema.parse(
|
|
43
|
+
deleteInformationRequestCommentInput,
|
|
44
|
+
),
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -24,6 +24,10 @@ export type EvidenceUrl = {
|
|
|
24
24
|
* Set to true if this is a presigned s3 url. Set to false if this is a customer uploaded link
|
|
25
25
|
*/
|
|
26
26
|
isDownloadable: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* MIME type of the evidence file (e.g., "application/pdf", "image/png")
|
|
29
|
+
*/
|
|
30
|
+
mimeType: string | null;
|
|
27
31
|
};
|
|
28
32
|
|
|
29
33
|
/** @internal */
|
|
@@ -36,6 +40,7 @@ export const EvidenceUrl$inboundSchema: z.ZodType<
|
|
|
36
40
|
url: z.string(),
|
|
37
41
|
filename: z.string(),
|
|
38
42
|
isDownloadable: z.boolean(),
|
|
43
|
+
mimeType: z.nullable(z.string()),
|
|
39
44
|
});
|
|
40
45
|
|
|
41
46
|
export function evidenceUrlFromJSON(
|