vanta-auditor-api-sdk 0.4.1 → 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 -105
- 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/addauditorinput.d.ts +0 -5
- package/models/components/addauditorinput.d.ts.map +1 -1
- package/models/components/addauditorinput.js +1 -12
- package/models/components/addauditorinput.js.map +1 -1
- package/models/components/addcommentinput.d.ts +0 -5
- package/models/components/addcommentinput.d.ts.map +1 -1
- package/models/components/addcommentinput.js +1 -12
- package/models/components/addcommentinput.js.map +1 -1
- 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 -21
- package/models/components/audit.d.ts.map +1 -1
- package/models/components/audit.js +11 -23
- package/models/components/audit.js.map +1 -1
- package/models/components/auditevidencestate.d.ts +0 -2
- package/models/components/auditevidencestate.d.ts.map +1 -1
- package/models/components/auditevidencestate.js +1 -3
- package/models/components/auditevidencestate.js.map +1 -1
- package/models/components/auditevidencetype.d.ts +0 -2
- package/models/components/auditevidencetype.d.ts.map +1 -1
- package/models/components/auditevidencetype.js +1 -3
- package/models/components/auditevidencetype.js.map +1 -1
- package/models/components/auditevidenceupdateinput.d.ts +0 -8
- package/models/components/auditevidenceupdateinput.d.ts.map +1 -1
- package/models/components/auditevidenceupdateinput.js +1 -19
- package/models/components/auditevidenceupdateinput.js.map +1 -1
- package/models/components/auditfocus.d.ts +0 -2
- package/models/components/auditfocus.d.ts.map +1 -1
- package/models/components/auditfocus.js +1 -3
- package/models/components/auditfocus.js.map +1 -1
- package/models/components/auditor.d.ts +0 -11
- package/models/components/auditor.d.ts.map +1 -1
- package/models/components/auditor.js +1 -13
- package/models/components/auditor.js.map +1 -1
- package/models/components/auditorcontrol.d.ts +10 -28
- package/models/components/auditorcontrol.d.ts.map +1 -1
- package/models/components/auditorcontrol.js +3 -29
- package/models/components/auditorcontrol.js.map +1 -1
- package/models/components/auditorenabledstatetransition.d.ts +0 -2
- package/models/components/auditorenabledstatetransition.d.ts.map +1 -1
- package/models/components/auditorenabledstatetransition.js +2 -4
- package/models/components/auditorenabledstatetransition.js.map +1 -1
- package/models/components/comment.d.ts +9 -13
- package/models/components/comment.d.ts.map +1 -1
- package/models/components/comment.js +2 -15
- package/models/components/comment.js.map +1 -1
- package/models/components/control.d.ts +9 -25
- package/models/components/control.d.ts.map +1 -1
- package/models/components/control.js +3 -27
- package/models/components/control.js.map +1 -1
- package/models/components/controldomain.d.ts +0 -2
- package/models/components/controldomain.d.ts.map +1 -1
- package/models/components/controldomain.js +2 -4
- package/models/components/controldomain.js.map +1 -1
- package/models/components/controlsource.d.ts +0 -2
- package/models/components/controlsource.d.ts.map +1 -1
- package/models/components/controlsource.js +1 -3
- package/models/components/controlsource.js.map +1 -1
- package/models/components/createcustomcontrolinput.d.ts +0 -7
- package/models/components/createcustomcontrolinput.d.ts.map +1 -1
- package/models/components/createcustomcontrolinput.js +2 -19
- package/models/components/createcustomcontrolinput.js.map +1 -1
- package/models/components/createcustomevidencerequestinput.d.ts +0 -5
- package/models/components/createcustomevidencerequestinput.d.ts.map +1 -1
- package/models/components/createcustomevidencerequestinput.js +1 -16
- package/models/components/createcustomevidencerequestinput.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/customevidencerequest.d.ts +0 -13
- package/models/components/customevidencerequest.d.ts.map +1 -1
- package/models/components/customevidencerequest.js +1 -15
- package/models/components/customevidencerequest.js.map +1 -1
- package/models/components/customfield.d.ts +0 -13
- package/models/components/customfield.d.ts.map +1 -1
- package/models/components/customfield.js +1 -16
- package/models/components/customfield.js.map +1 -1
- 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/evidence.d.ts +1 -19
- package/models/components/evidence.d.ts.map +1 -1
- package/models/components/evidence.js +1 -20
- package/models/components/evidence.js.map +1 -1
- package/models/components/evidencecontrol.d.ts +0 -8
- package/models/components/evidencecontrol.d.ts.map +1 -1
- package/models/components/evidencecontrol.js +1 -10
- package/models/components/evidencecontrol.js.map +1 -1
- package/models/components/evidenceurl.d.ts +4 -10
- package/models/components/evidenceurl.d.ts.map +1 -1
- package/models/components/evidenceurl.js +2 -12
- 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/frameworkid.d.ts +0 -2
- package/models/components/frameworkid.d.ts.map +1 -1
- package/models/components/frameworkid.js +2 -4
- package/models/components/frameworkid.js.map +1 -1
- package/models/components/frameworksection.d.ts +0 -8
- package/models/components/frameworksection.d.ts.map +1 -1
- package/models/components/frameworksection.js +1 -17
- package/models/components/frameworksection.js.map +1 -1
- 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/{mcp-server/tools/auditsList.js → models/components/informationrequestactivitytype.js} +11 -25
- 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/{mcp-server/tools/auditorsCreate.js → models/components/informationrequestapprovalstatus.js} +18 -25
- 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/{mcp-server/tools/auditsUpdateEvidence.js → models/components/informationrequestcadence.js} +13 -25
- 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/{mcp-server/tools/auditsListControls.js → models/components/informationrequestsupportedevidencetype.js} +16 -25
- 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/pageinfo.d.ts +0 -10
- package/models/components/pageinfo.d.ts.map +1 -1
- package/models/components/pageinfo.js +1 -12
- package/models/components/pageinfo.js.map +1 -1
- 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/paginatedresponseaudit.d.ts +2 -17
- package/models/components/paginatedresponseaudit.d.ts.map +1 -1
- package/models/components/paginatedresponseaudit.js +1 -18
- package/models/components/paginatedresponseaudit.js.map +1 -1
- package/models/components/paginatedresponseauditorcontrol.d.ts +2 -17
- package/models/components/paginatedresponseauditorcontrol.d.ts.map +1 -1
- package/models/components/paginatedresponseauditorcontrol.js +1 -18
- package/models/components/paginatedresponseauditorcontrol.js.map +1 -1
- package/models/components/paginatedresponsecomment.d.ts +2 -17
- package/models/components/paginatedresponsecomment.d.ts.map +1 -1
- package/models/components/paginatedresponsecomment.js +1 -18
- package/models/components/paginatedresponsecomment.js.map +1 -1
- package/models/components/paginatedresponseevidence.d.ts +2 -17
- package/models/components/paginatedresponseevidence.d.ts.map +1 -1
- package/models/components/paginatedresponseevidence.js +1 -18
- package/models/components/paginatedresponseevidence.js.map +1 -1
- package/models/components/paginatedresponseevidenceurl.d.ts +2 -17
- package/models/components/paginatedresponseevidenceurl.d.ts.map +1 -1
- package/models/components/paginatedresponseevidenceurl.js +1 -18
- package/models/components/paginatedresponseevidenceurl.js.map +1 -1
- 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/{mcp-server/tools/auditsCreateCustomEvidenceRequest.js → models/components/partialupdateinformationrequest.js} +20 -26
- 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 -8
- package/models/components/section.d.ts.map +1 -1
- package/models/components/section.js +9 -8
- package/models/components/section.js.map +1 -1
- package/models/components/security.d.ts +0 -5
- package/models/components/security.d.ts.map +1 -1
- package/models/components/security.js +1 -10
- package/models/components/security.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/{mcp-server/tools/auditsCreateCommentForEvidence.js → models/components/vantatestsnapshotevidence.js} +29 -25
- 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/createcommentforauditevidence.d.ts +0 -5
- package/models/operations/createcommentforauditevidence.d.ts.map +1 -1
- package/models/operations/createcommentforauditevidence.js +1 -16
- package/models/operations/createcommentforauditevidence.js.map +1 -1
- 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/createcustomcontrol.d.ts +0 -5
- package/models/operations/createcustomcontrol.d.ts.map +1 -1
- package/models/operations/createcustomcontrol.js +1 -15
- package/models/operations/createcustomcontrol.js.map +1 -1
- package/models/operations/createcustomevidencerequest.d.ts +0 -5
- package/models/operations/createcustomevidencerequest.d.ts.map +1 -1
- package/models/operations/createcustomevidencerequest.js +1 -15
- package/models/operations/createcustomevidencerequest.js.map +1 -1
- 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/{mcp-server/tools/auditsCreateCustomControl.js → models/operations/deletecommentforinformationrequest.js} +20 -26
- 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/{mcp-server/tools/auditsListComments.js → models/operations/flaginformationrequestevidence.js} +19 -26
- 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/listauditcomments.d.ts +0 -5
- package/models/operations/listauditcomments.d.ts.map +1 -1
- package/models/operations/listauditcomments.js +1 -13
- package/models/operations/listauditcomments.js.map +1 -1
- package/models/operations/listauditcontrols.d.ts +0 -5
- package/models/operations/listauditcontrols.d.ts.map +1 -1
- package/models/operations/listauditcontrols.js +1 -12
- package/models/operations/listauditcontrols.js.map +1 -1
- package/models/operations/listauditevidence.d.ts +0 -5
- package/models/operations/listauditevidence.d.ts.map +1 -1
- package/models/operations/listauditevidence.js +1 -13
- package/models/operations/listauditevidence.js.map +1 -1
- package/models/operations/listauditevidenceurls.d.ts +0 -5
- package/models/operations/listauditevidenceurls.d.ts.map +1 -1
- package/models/operations/listauditevidenceurls.js +1 -13
- package/models/operations/listauditevidenceurls.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/listaudits.d.ts +0 -5
- package/models/operations/listaudits.d.ts.map +1 -1
- package/models/operations/listaudits.js +1 -13
- package/models/operations/listaudits.js.map +1 -1
- 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/{mcp-server/tools/auditsListEvidence.js → models/operations/shareinformationrequestlist.js} +11 -26
- package/models/operations/shareinformationrequestlist.js.map +1 -0
- package/models/operations/updateauditevidence.d.ts +0 -5
- package/models/operations/updateauditevidence.d.ts.map +1 -1
- package/models/operations/updateauditevidence.js +1 -16
- package/models/operations/updateauditevidence.js.map +1 -1
- 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 +4 -14
- 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/addauditorinput.ts +0 -22
- package/src/models/components/addcommentinput.ts +0 -24
- package/src/models/components/addinformationrequestcommentinput.ts +67 -0
- package/src/models/components/audit.ts +55 -49
- package/src/models/components/auditevidencestate.ts +0 -4
- package/src/models/components/auditevidencetype.ts +0 -4
- package/src/models/components/auditevidenceupdateinput.ts +0 -39
- package/src/models/components/auditfocus.ts +0 -3
- package/src/models/components/auditor.ts +0 -24
- package/src/models/components/auditorcontrol.ts +17 -73
- package/src/models/components/auditorenabledstatetransition.ts +1 -5
- package/src/models/components/comment.ts +10 -28
- package/src/models/components/control.ts +16 -63
- package/src/models/components/controldomain.ts +1 -5
- package/src/models/components/controlsource.ts +0 -4
- package/src/models/components/createcustomcontrolinput.ts +1 -34
- package/src/models/components/createcustomevidencerequestinput.ts +0 -27
- package/src/models/components/createinformationrequestinput.ts +138 -0
- package/src/models/components/customevidencerequest.ts +0 -33
- package/src/models/components/customfield.ts +0 -30
- package/src/models/components/deleteinformationrequestcommentinput.ts +46 -0
- package/src/models/components/evidence.ts +0 -42
- package/src/models/components/evidencecontrol.ts +0 -20
- package/src/models/components/evidenceurl.ts +5 -22
- package/src/models/components/flaginformationrequestevidenceinput.ts +58 -0
- package/src/models/components/frameworkcodes.ts +40 -0
- package/src/models/components/frameworkid.ts +1 -4
- package/src/models/components/frameworksection.ts +1 -41
- 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/pageinfo.ts +0 -22
- package/src/models/components/paginatedissuesnapshotitemsresponse.ts +71 -0
- package/src/models/components/paginatedissuesnapshotmetadataresponse.ts +74 -0
- package/src/models/components/paginatedresponseaudit.ts +2 -50
- package/src/models/components/paginatedresponseauditorcontrol.ts +1 -55
- package/src/models/components/paginatedresponsecomment.ts +2 -56
- package/src/models/components/paginatedresponseevidence.ts +2 -56
- package/src/models/components/paginatedresponseevidenceurl.ts +2 -58
- 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 -18
- package/src/models/components/security.ts +0 -20
- 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/createcommentforauditevidence.ts +0 -27
- package/src/models/operations/createcommentforinformationrequest.ts +50 -0
- package/src/models/operations/createcustomcontrol.ts +0 -25
- package/src/models/operations/createcustomevidencerequest.ts +0 -27
- 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/listauditcomments.ts +0 -25
- package/src/models/operations/listauditcontrols.ts +0 -22
- package/src/models/operations/listauditevidence.ts +0 -25
- package/src/models/operations/listauditevidenceurls.ts +0 -23
- package/src/models/operations/listauditissues.ts +58 -0
- package/src/models/operations/listaudits.ts +0 -25
- 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/updateauditevidence.ts +0 -26
- 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/bin/mcp-server.js +0 -39009
- package/bin/mcp-server.js.map +0 -323
- package/examples/package-lock.json +0 -619
- package/examples/package.json +0 -18
- package/mcp-server/build.d.mts.map +0 -1
- package/mcp-server/build.mjs +0 -14
- package/mcp-server/build.mjs.map +0 -1
- package/mcp-server/cli/start/command.d.ts +0 -2
- package/mcp-server/cli/start/command.d.ts.map +0 -1
- package/mcp-server/cli/start/command.js +0 -125
- package/mcp-server/cli/start/command.js.map +0 -1
- package/mcp-server/cli/start/impl.d.ts +0 -16
- package/mcp-server/cli/start/impl.d.ts.map +0 -1
- package/mcp-server/cli/start/impl.js +0 -102
- package/mcp-server/cli/start/impl.js.map +0 -1
- package/mcp-server/cli.d.ts +0 -6
- package/mcp-server/cli.d.ts.map +0 -1
- package/mcp-server/cli.js +0 -10
- package/mcp-server/cli.js.map +0 -1
- package/mcp-server/console-logger.d.ts +0 -7
- package/mcp-server/console-logger.d.ts.map +0 -1
- package/mcp-server/console-logger.js +0 -59
- package/mcp-server/console-logger.js.map +0 -1
- package/mcp-server/extensions.d.ts +0 -11
- package/mcp-server/extensions.d.ts.map +0 -1
- package/mcp-server/extensions.js +0 -6
- package/mcp-server/extensions.js.map +0 -1
- package/mcp-server/mcp-server.d.ts +0 -2
- package/mcp-server/mcp-server.d.ts.map +0 -1
- package/mcp-server/mcp-server.js +0 -29
- package/mcp-server/mcp-server.js.map +0 -1
- package/mcp-server/prompts.d.ts +0 -26
- package/mcp-server/prompts.d.ts.map +0 -1
- package/mcp-server/prompts.js +0 -51
- package/mcp-server/prompts.js.map +0 -1
- package/mcp-server/resources.d.ts +0 -32
- package/mcp-server/resources.d.ts.map +0 -1
- package/mcp-server/resources.js +0 -87
- package/mcp-server/resources.js.map +0 -1
- package/mcp-server/scopes.d.ts +0 -3
- package/mcp-server/scopes.d.ts.map +0 -1
- package/mcp-server/scopes.js +0 -8
- package/mcp-server/scopes.js.map +0 -1
- package/mcp-server/server.d.ts +0 -13
- package/mcp-server/server.d.ts.map +0 -1
- package/mcp-server/server.js +0 -52
- package/mcp-server/server.js.map +0 -1
- package/mcp-server/shared.d.ts +0 -7
- package/mcp-server/shared.d.ts.map +0 -1
- package/mcp-server/shared.js +0 -98
- package/mcp-server/shared.js.map +0 -1
- package/mcp-server/tools/auditorsCreate.d.ts +0 -8
- package/mcp-server/tools/auditorsCreate.d.ts.map +0 -1
- package/mcp-server/tools/auditorsCreate.js.map +0 -1
- package/mcp-server/tools/auditsCreateCommentForEvidence.d.ts +0 -8
- package/mcp-server/tools/auditsCreateCommentForEvidence.d.ts.map +0 -1
- package/mcp-server/tools/auditsCreateCommentForEvidence.js.map +0 -1
- package/mcp-server/tools/auditsCreateCustomControl.d.ts +0 -8
- package/mcp-server/tools/auditsCreateCustomControl.d.ts.map +0 -1
- package/mcp-server/tools/auditsCreateCustomControl.js.map +0 -1
- package/mcp-server/tools/auditsCreateCustomEvidenceRequest.d.ts +0 -8
- package/mcp-server/tools/auditsCreateCustomEvidenceRequest.d.ts.map +0 -1
- package/mcp-server/tools/auditsCreateCustomEvidenceRequest.js.map +0 -1
- package/mcp-server/tools/auditsGetEvidenceUrls.d.ts +0 -8
- package/mcp-server/tools/auditsGetEvidenceUrls.d.ts.map +0 -1
- package/mcp-server/tools/auditsGetEvidenceUrls.js +0 -65
- package/mcp-server/tools/auditsGetEvidenceUrls.js.map +0 -1
- package/mcp-server/tools/auditsList.d.ts +0 -8
- package/mcp-server/tools/auditsList.d.ts.map +0 -1
- package/mcp-server/tools/auditsList.js.map +0 -1
- package/mcp-server/tools/auditsListComments.d.ts +0 -8
- package/mcp-server/tools/auditsListComments.d.ts.map +0 -1
- package/mcp-server/tools/auditsListComments.js.map +0 -1
- package/mcp-server/tools/auditsListControls.d.ts +0 -8
- package/mcp-server/tools/auditsListControls.d.ts.map +0 -1
- package/mcp-server/tools/auditsListControls.js.map +0 -1
- package/mcp-server/tools/auditsListEvidence.d.ts +0 -8
- package/mcp-server/tools/auditsListEvidence.d.ts.map +0 -1
- package/mcp-server/tools/auditsListEvidence.js.map +0 -1
- package/mcp-server/tools/auditsUpdateEvidence.d.ts +0 -8
- package/mcp-server/tools/auditsUpdateEvidence.d.ts.map +0 -1
- package/mcp-server/tools/auditsUpdateEvidence.js.map +0 -1
- package/mcp-server/tools.d.ts +0 -25
- package/mcp-server/tools.d.ts.map +0 -1
- package/mcp-server/tools.js +0 -82
- package/mcp-server/tools.js.map +0 -1
- package/src/mcp-server/cli/start/command.ts +0 -93
- package/src/mcp-server/cli/start/impl.ts +0 -130
- package/src/mcp-server/cli.ts +0 -13
- package/src/mcp-server/console-logger.ts +0 -71
- package/src/mcp-server/extensions.ts +0 -17
- package/src/mcp-server/mcp-server.ts +0 -26
- package/src/mcp-server/prompts.ts +0 -117
- package/src/mcp-server/resources.ts +0 -172
- package/src/mcp-server/scopes.ts +0 -7
- package/src/mcp-server/server.ts +0 -79
- package/src/mcp-server/shared.ts +0 -74
- package/src/mcp-server/tools/auditorsCreate.ts +0 -37
- package/src/mcp-server/tools/auditsCreateCommentForEvidence.ts +0 -38
- package/src/mcp-server/tools/auditsCreateCustomControl.ts +0 -37
- package/src/mcp-server/tools/auditsCreateCustomEvidenceRequest.ts +0 -39
- package/src/mcp-server/tools/auditsGetEvidenceUrls.ts +0 -38
- package/src/mcp-server/tools/auditsList.ts +0 -37
- package/src/mcp-server/tools/auditsListComments.ts +0 -37
- package/src/mcp-server/tools/auditsListControls.ts +0 -37
- package/src/mcp-server/tools/auditsListEvidence.ts +0 -37
- package/src/mcp-server/tools/auditsUpdateEvidence.ts +0 -37
- package/src/mcp-server/tools.ts +0 -129
- package/tsconfig.json +0 -41
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { beforeAll, describe, expect, test } from "vitest";
|
|
2
|
+
import { ServerList, Vanta } from "vanta-auditor-api-sdk";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Live smoke test against a real Vanta API tenant. Run via `npm test` from this
|
|
6
|
+
* directory when the three SMOKE_* environment variables are populated;
|
|
7
|
+
* otherwise every test is reported as skipped. See ../SMOKE_TEST.md for
|
|
8
|
+
* fixture details and CI wiring.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
// Read env at module load — CI populates these via the SMOKE_* GitHub Actions
|
|
12
|
+
// secrets; locally, export them yourself. When any required var is missing
|
|
13
|
+
// every test reports as skipped so `npm test` doesn't break for engineers
|
|
14
|
+
// without demo-account creds.
|
|
15
|
+
const clientId = process.env["SMOKE_OAUTH_CLIENT_ID"] ?? "";
|
|
16
|
+
const clientSecret = process.env["SMOKE_OAUTH_CLIENT_SECRET"] ?? "";
|
|
17
|
+
const auditId = process.env["SMOKE_AUDIT_ID"] ?? "";
|
|
18
|
+
|
|
19
|
+
const missingEnv = !clientId
|
|
20
|
+
? "SMOKE_OAUTH_CLIENT_ID"
|
|
21
|
+
: !clientSecret
|
|
22
|
+
? "SMOKE_OAUTH_CLIENT_SECRET"
|
|
23
|
+
: !auditId
|
|
24
|
+
? "SMOKE_AUDIT_ID"
|
|
25
|
+
: "";
|
|
26
|
+
|
|
27
|
+
const shouldSkip = missingEnv !== "";
|
|
28
|
+
const skipReason = shouldSkip
|
|
29
|
+
? `smoke test skipped — ${missingEnv} is not set (CI populates via SMOKE_* env vars)`
|
|
30
|
+
: "";
|
|
31
|
+
|
|
32
|
+
let sdk: Vanta;
|
|
33
|
+
|
|
34
|
+
describe.sequential("Vanta SDK smoke", () => {
|
|
35
|
+
beforeAll(async () => {
|
|
36
|
+
if (shouldSkip) return;
|
|
37
|
+
|
|
38
|
+
// Single source of truth for the Vanta Commercial host: the SDK's own
|
|
39
|
+
// ServerList, regenerated by Speakeasy from the spec. OAuth and SDK API
|
|
40
|
+
// calls share the SAME host — OAuth at /oauth/token, SDK at /v1/* — so
|
|
41
|
+
// deriving both from one place eliminates the class of drift where
|
|
42
|
+
// someone updates one and not the other.
|
|
43
|
+
const sdkServerUrl = ServerList.find((s) => s.includes("api.vanta.com"));
|
|
44
|
+
if (!sdkServerUrl) {
|
|
45
|
+
throw new Error(
|
|
46
|
+
`ServerList contains no Commercial entry — got ${JSON.stringify(ServerList)}. `
|
|
47
|
+
+ `An overlay regression broke the server list; the smoke test can't `
|
|
48
|
+
+ `run until the SDK is regenerated correctly.`,
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
const oauthBaseUrl = sdkServerUrl.replace(/\/v[0-9]+$/, "");
|
|
52
|
+
|
|
53
|
+
const accessToken = await fetchAccessToken(oauthBaseUrl, clientId, clientSecret);
|
|
54
|
+
|
|
55
|
+
sdk = new Vanta({
|
|
56
|
+
bearerAuth: accessToken,
|
|
57
|
+
serverURL: sdkServerUrl,
|
|
58
|
+
// Intentionally do NOT pass a `debugLogger` option — it would write
|
|
59
|
+
// request and response detail to stdout and surface in CI logs.
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
// Catches the case where the Speakeasy overlay regression drops the
|
|
64
|
+
// Commercial host from the generated ServerList. Deliberately permissive
|
|
65
|
+
// while the EU/AUS phantom entries are still in the spec — tighten to
|
|
66
|
+
// exact-match [Commercial, Gov] after the spec cleanup lands and the new
|
|
67
|
+
// regen produces the post-cleanup server list.
|
|
68
|
+
test.skipIf(shouldSkip)("ServerList contains Commercial", () => {
|
|
69
|
+
expect(ServerList.length).toBeGreaterThanOrEqual(1);
|
|
70
|
+
expect(ServerList[0]).toMatch(/^https:\/\/api\.vanta\.com/);
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
test.skipIf(shouldSkip)("listAudits finds fixture audit", async () => {
|
|
74
|
+
const res = await sdk.audits.list({});
|
|
75
|
+
const audits = res.results.data;
|
|
76
|
+
expect(audits).toBeDefined();
|
|
77
|
+
expect(
|
|
78
|
+
audits.some((a) => a.id === auditId),
|
|
79
|
+
`fixture audit ${auditId} not found in /audits results — was it deleted? `
|
|
80
|
+
+ `See SMOKE_TEST.md for recovery steps.`,
|
|
81
|
+
).toBe(true);
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
test.skipIf(shouldSkip)("listEvidence drills into evidence URLs", async (ctx) => {
|
|
85
|
+
const listRes = await sdk.audits.listEvidence({ auditId });
|
|
86
|
+
const evidence = listRes.results.data;
|
|
87
|
+
expect(evidence).toBeDefined();
|
|
88
|
+
|
|
89
|
+
if (evidence.length === 0) {
|
|
90
|
+
ctx.skip(
|
|
91
|
+
"fixture audit has no evidence — skipping getEvidenceUrls drill-down "
|
|
92
|
+
+ "(see SMOKE_TEST.md for seeding guidance)",
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const evidenceId = evidence[0]!.id;
|
|
97
|
+
try {
|
|
98
|
+
const urlsRes = await sdk.audits.getEvidenceUrls({
|
|
99
|
+
auditId,
|
|
100
|
+
auditEvidenceId: evidenceId,
|
|
101
|
+
});
|
|
102
|
+
expect(urlsRes.results).toBeDefined();
|
|
103
|
+
} catch (e) {
|
|
104
|
+
// 4xx on a specific evidence usually means that evidence is in a state
|
|
105
|
+
// without URLs (not uploaded, processing, etc.). The SDK round-tripped
|
|
106
|
+
// an authenticated request and parsed a structured server response,
|
|
107
|
+
// which is what this smoke test exists to verify — the business-logic
|
|
108
|
+
// rejection is fixture state, not an SDK regression. Skip with detail.
|
|
109
|
+
//
|
|
110
|
+
// 5xx is re-thrown: a server error is a real signal, not fixture state.
|
|
111
|
+
//
|
|
112
|
+
// Duck-typed instead of `instanceof APIError`: when smoke-test installs
|
|
113
|
+
// the parent via `file:..`, npm's behavior varies between symlink and
|
|
114
|
+
// hard-copy across environments. A hard-copy gives us two separate
|
|
115
|
+
// class instances of APIError, and `instanceof` silently misses. The
|
|
116
|
+
// `statusCode` field is part of the documented VantaError contract.
|
|
117
|
+
const statusCode = (e as { statusCode?: unknown }).statusCode;
|
|
118
|
+
const body = (e as { body?: unknown }).body;
|
|
119
|
+
if (typeof statusCode === "number" && statusCode >= 400 && statusCode < 500) {
|
|
120
|
+
ctx.skip(
|
|
121
|
+
`getEvidenceUrls returned HTTP ${statusCode} for evidence ${evidenceId} `
|
|
122
|
+
+ `— likely fixture state, not an SDK regression. Body: `
|
|
123
|
+
+ `${typeof body === "string" ? body : ""}`,
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
throw e;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
test.skipIf(shouldSkip)("listComments succeeds", async () => {
|
|
131
|
+
const res = await sdk.audits.listComments({ auditId });
|
|
132
|
+
expect(res.results.data).toBeDefined();
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
test.skipIf(shouldSkip)("listControls succeeds", async () => {
|
|
136
|
+
const res = await sdk.audits.listControls({ auditId });
|
|
137
|
+
expect(res.results.data).toBeDefined();
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
if (shouldSkip) {
|
|
142
|
+
// Surface the skip reason once at the top of the run so engineers don't
|
|
143
|
+
// wonder why every test is yellow.
|
|
144
|
+
console.warn(skipReason);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
async function fetchAccessToken(
|
|
148
|
+
baseUrl: string,
|
|
149
|
+
oauthClientId: string,
|
|
150
|
+
oauthClientSecret: string,
|
|
151
|
+
): Promise<string> {
|
|
152
|
+
// Vanta's OAuth requires an explicit `scope` parameter (per the spec's
|
|
153
|
+
// securitySchemes.oauth.flows.clientCredentials.scopes). v1 only exercises
|
|
154
|
+
// read endpoints under `audits`, so we request just `auditor-api.audit:read`.
|
|
155
|
+
// Add `auditor-api.auditor:read` when we add tests for `sdk.auditors.*`,
|
|
156
|
+
// and the `:write` variants when we add mutation tests.
|
|
157
|
+
const scope = "auditor-api.audit:read";
|
|
158
|
+
const form = new URLSearchParams({
|
|
159
|
+
grant_type: "client_credentials",
|
|
160
|
+
client_id: oauthClientId,
|
|
161
|
+
client_secret: oauthClientSecret,
|
|
162
|
+
scope,
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
const resp = await fetch(`${baseUrl}/oauth/token`, {
|
|
166
|
+
method: "POST",
|
|
167
|
+
headers: {
|
|
168
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
169
|
+
"Accept": "application/json",
|
|
170
|
+
},
|
|
171
|
+
body: form.toString(),
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
if (resp.status !== 200) {
|
|
175
|
+
// OAuth 2.0 error responses (RFC 6749 §5.2) contain
|
|
176
|
+
// {error, error_description} and never include the access_token or
|
|
177
|
+
// client_secret, so they're safe to log.
|
|
178
|
+
const raw = await resp.text();
|
|
179
|
+
let detail = raw;
|
|
180
|
+
try {
|
|
181
|
+
const parsed = JSON.parse(raw) as {
|
|
182
|
+
error?: string;
|
|
183
|
+
error_description?: string;
|
|
184
|
+
};
|
|
185
|
+
if (parsed.error !== undefined || parsed.error_description !== undefined) {
|
|
186
|
+
detail = `error=${parsed.error ?? "?"} error_description=${parsed.error_description ?? "?"}`;
|
|
187
|
+
}
|
|
188
|
+
} catch {
|
|
189
|
+
// body wasn't JSON — fall back to the raw string
|
|
190
|
+
}
|
|
191
|
+
throw new Error(
|
|
192
|
+
`OAuth token endpoint ${baseUrl}/oauth/token returned HTTP ${resp.status} — ${detail}`,
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
const body = (await resp.json()) as { access_token?: string };
|
|
197
|
+
if (!body.access_token) {
|
|
198
|
+
throw new Error("OAuth response missing access_token field");
|
|
199
|
+
}
|
|
200
|
+
return body.access_token;
|
|
201
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineConfig } from "vitest/config";
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
test: {
|
|
5
|
+
include: ["src/**/*.test.ts"],
|
|
6
|
+
testTimeout: 30_000,
|
|
7
|
+
// Live calls to api.vanta.com — keep file-level parallelism off so we
|
|
8
|
+
// don't pound the demo tenant from multiple workers simultaneously.
|
|
9
|
+
fileParallelism: false,
|
|
10
|
+
},
|
|
11
|
+
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { VantaCore } from "../core.js";
|
|
6
6
|
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -128,7 +129,8 @@ async function $do(
|
|
|
128
129
|
|
|
129
130
|
const doResult = await client._do(req, {
|
|
130
131
|
context,
|
|
131
|
-
|
|
132
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
133
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
132
134
|
retryConfig: context.retryConfig,
|
|
133
135
|
retryCodes: context.retryCodes,
|
|
134
136
|
});
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { VantaCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import { VantaError } from "../models/errors/vantaerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Accept evidence for an information request
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Accepts evidence for an information request, confirming that all submitted evidence
|
|
34
|
+
* meets audit requirements. This action changes the request's approvalStatus to
|
|
35
|
+
* an approved state and creates an activity log entry.
|
|
36
|
+
*
|
|
37
|
+
* Acceptance workflow:
|
|
38
|
+
* 1. Auditor reviews submitted evidence
|
|
39
|
+
* 2. If evidence is satisfactory, auditor calls this endpoint
|
|
40
|
+
* 3. Request status changes to approved state and is considered complete for this audit cycle
|
|
41
|
+
*
|
|
42
|
+
* Use this endpoint when:
|
|
43
|
+
* - All required evidence has been submitted
|
|
44
|
+
* - Evidence quality meets audit standards
|
|
45
|
+
* - Evidence addresses all specified framework codes
|
|
46
|
+
* - No additional information is needed
|
|
47
|
+
*/
|
|
48
|
+
export function auditsAcceptInformationRequestEvidence(
|
|
49
|
+
client: VantaCore,
|
|
50
|
+
request: operations.AcceptInformationRequestEvidenceRequest,
|
|
51
|
+
options?: RequestOptions,
|
|
52
|
+
): APIPromise<
|
|
53
|
+
Result<
|
|
54
|
+
components.InformationRequest,
|
|
55
|
+
| VantaError
|
|
56
|
+
| ResponseValidationError
|
|
57
|
+
| ConnectionError
|
|
58
|
+
| RequestAbortedError
|
|
59
|
+
| RequestTimeoutError
|
|
60
|
+
| InvalidRequestError
|
|
61
|
+
| UnexpectedClientError
|
|
62
|
+
| SDKValidationError
|
|
63
|
+
>
|
|
64
|
+
> {
|
|
65
|
+
return new APIPromise($do(
|
|
66
|
+
client,
|
|
67
|
+
request,
|
|
68
|
+
options,
|
|
69
|
+
));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
async function $do(
|
|
73
|
+
client: VantaCore,
|
|
74
|
+
request: operations.AcceptInformationRequestEvidenceRequest,
|
|
75
|
+
options?: RequestOptions,
|
|
76
|
+
): Promise<
|
|
77
|
+
[
|
|
78
|
+
Result<
|
|
79
|
+
components.InformationRequest,
|
|
80
|
+
| VantaError
|
|
81
|
+
| ResponseValidationError
|
|
82
|
+
| ConnectionError
|
|
83
|
+
| RequestAbortedError
|
|
84
|
+
| RequestTimeoutError
|
|
85
|
+
| InvalidRequestError
|
|
86
|
+
| UnexpectedClientError
|
|
87
|
+
| SDKValidationError
|
|
88
|
+
>,
|
|
89
|
+
APICall,
|
|
90
|
+
]
|
|
91
|
+
> {
|
|
92
|
+
const parsed = safeParse(
|
|
93
|
+
request,
|
|
94
|
+
(value) =>
|
|
95
|
+
operations.AcceptInformationRequestEvidenceRequest$outboundSchema.parse(
|
|
96
|
+
value,
|
|
97
|
+
),
|
|
98
|
+
"Input validation failed",
|
|
99
|
+
);
|
|
100
|
+
if (!parsed.ok) {
|
|
101
|
+
return [parsed, { status: "invalid" }];
|
|
102
|
+
}
|
|
103
|
+
const payload = parsed.value;
|
|
104
|
+
const body = encodeJSON(
|
|
105
|
+
"body",
|
|
106
|
+
payload.AcceptInformationRequestEvidenceInput,
|
|
107
|
+
{ explode: true },
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
const pathParams = {
|
|
111
|
+
auditId: encodeSimple("auditId", payload.auditId, {
|
|
112
|
+
explode: false,
|
|
113
|
+
charEncoding: "percent",
|
|
114
|
+
}),
|
|
115
|
+
requestId: encodeSimple("requestId", payload.requestId, {
|
|
116
|
+
explode: false,
|
|
117
|
+
charEncoding: "percent",
|
|
118
|
+
}),
|
|
119
|
+
};
|
|
120
|
+
const path = pathToFunc(
|
|
121
|
+
"/audits/{auditId}/information-requests/{requestId}/accept-evidence",
|
|
122
|
+
)(pathParams);
|
|
123
|
+
|
|
124
|
+
const headers = new Headers(compactMap({
|
|
125
|
+
"Content-Type": "application/json",
|
|
126
|
+
Accept: "application/json",
|
|
127
|
+
}));
|
|
128
|
+
|
|
129
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
130
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
131
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
132
|
+
|
|
133
|
+
const context = {
|
|
134
|
+
options: client._options,
|
|
135
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
136
|
+
operationID: "AcceptInformationRequestEvidence",
|
|
137
|
+
oAuth2Scopes: null,
|
|
138
|
+
|
|
139
|
+
resolvedSecurity: requestSecurity,
|
|
140
|
+
|
|
141
|
+
securitySource: client._options.bearerAuth,
|
|
142
|
+
retryConfig: options?.retries
|
|
143
|
+
|| client._options.retryConfig
|
|
144
|
+
|| { strategy: "none" },
|
|
145
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const requestRes = client._createRequest(context, {
|
|
149
|
+
security: requestSecurity,
|
|
150
|
+
method: "POST",
|
|
151
|
+
baseURL: options?.serverURL,
|
|
152
|
+
path: path,
|
|
153
|
+
headers: headers,
|
|
154
|
+
body: body,
|
|
155
|
+
userAgent: client._options.userAgent,
|
|
156
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
157
|
+
}, options);
|
|
158
|
+
if (!requestRes.ok) {
|
|
159
|
+
return [requestRes, { status: "invalid" }];
|
|
160
|
+
}
|
|
161
|
+
const req = requestRes.value;
|
|
162
|
+
|
|
163
|
+
const doResult = await client._do(req, {
|
|
164
|
+
context,
|
|
165
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
166
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
167
|
+
retryConfig: context.retryConfig,
|
|
168
|
+
retryCodes: context.retryCodes,
|
|
169
|
+
});
|
|
170
|
+
if (!doResult.ok) {
|
|
171
|
+
return [doResult, { status: "request-error", request: req }];
|
|
172
|
+
}
|
|
173
|
+
const response = doResult.value;
|
|
174
|
+
|
|
175
|
+
const [result] = await M.match<
|
|
176
|
+
components.InformationRequest,
|
|
177
|
+
| VantaError
|
|
178
|
+
| ResponseValidationError
|
|
179
|
+
| ConnectionError
|
|
180
|
+
| RequestAbortedError
|
|
181
|
+
| RequestTimeoutError
|
|
182
|
+
| InvalidRequestError
|
|
183
|
+
| UnexpectedClientError
|
|
184
|
+
| SDKValidationError
|
|
185
|
+
>(
|
|
186
|
+
M.json(200, components.InformationRequest$inboundSchema),
|
|
187
|
+
M.fail("4XX"),
|
|
188
|
+
M.fail("5XX"),
|
|
189
|
+
)(response, req);
|
|
190
|
+
if (!result.ok) {
|
|
191
|
+
return [result, { status: "complete", request: req, response }];
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
return [result, { status: "complete", request: req, response }];
|
|
195
|
+
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { VantaCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -99,7 +100,6 @@ async function $do(
|
|
|
99
100
|
charEncoding: "percent",
|
|
100
101
|
}),
|
|
101
102
|
};
|
|
102
|
-
|
|
103
103
|
const path = pathToFunc(
|
|
104
104
|
"/audits/{auditId}/evidence/{auditEvidenceId}/comments",
|
|
105
105
|
)(pathParams);
|
|
@@ -145,7 +145,8 @@ async function $do(
|
|
|
145
145
|
|
|
146
146
|
const doResult = await client._do(req, {
|
|
147
147
|
context,
|
|
148
|
-
|
|
148
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
149
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
149
150
|
retryConfig: context.retryConfig,
|
|
150
151
|
retryCodes: context.retryCodes,
|
|
151
152
|
});
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { VantaCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import { VantaError } from "../models/errors/vantaerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Create a comment for an information request
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Creates a new comment for an information request. The comment author must be an auditor
|
|
34
|
+
* in the audit firm making the request. The comment will be associated with the information
|
|
35
|
+
* request and visible to all authorized users.
|
|
36
|
+
*/
|
|
37
|
+
export function auditsCreateCommentForInformationRequest(
|
|
38
|
+
client: VantaCore,
|
|
39
|
+
request: operations.CreateCommentForInformationRequestRequest,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): APIPromise<
|
|
42
|
+
Result<
|
|
43
|
+
components.InformationRequestComment,
|
|
44
|
+
| VantaError
|
|
45
|
+
| ResponseValidationError
|
|
46
|
+
| ConnectionError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| InvalidRequestError
|
|
50
|
+
| UnexpectedClientError
|
|
51
|
+
| SDKValidationError
|
|
52
|
+
>
|
|
53
|
+
> {
|
|
54
|
+
return new APIPromise($do(
|
|
55
|
+
client,
|
|
56
|
+
request,
|
|
57
|
+
options,
|
|
58
|
+
));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async function $do(
|
|
62
|
+
client: VantaCore,
|
|
63
|
+
request: operations.CreateCommentForInformationRequestRequest,
|
|
64
|
+
options?: RequestOptions,
|
|
65
|
+
): Promise<
|
|
66
|
+
[
|
|
67
|
+
Result<
|
|
68
|
+
components.InformationRequestComment,
|
|
69
|
+
| VantaError
|
|
70
|
+
| ResponseValidationError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
| RequestAbortedError
|
|
73
|
+
| RequestTimeoutError
|
|
74
|
+
| InvalidRequestError
|
|
75
|
+
| UnexpectedClientError
|
|
76
|
+
| SDKValidationError
|
|
77
|
+
>,
|
|
78
|
+
APICall,
|
|
79
|
+
]
|
|
80
|
+
> {
|
|
81
|
+
const parsed = safeParse(
|
|
82
|
+
request,
|
|
83
|
+
(value) =>
|
|
84
|
+
operations.CreateCommentForInformationRequestRequest$outboundSchema.parse(
|
|
85
|
+
value,
|
|
86
|
+
),
|
|
87
|
+
"Input validation failed",
|
|
88
|
+
);
|
|
89
|
+
if (!parsed.ok) {
|
|
90
|
+
return [parsed, { status: "invalid" }];
|
|
91
|
+
}
|
|
92
|
+
const payload = parsed.value;
|
|
93
|
+
const body = encodeJSON("body", payload.AddInformationRequestCommentInput, {
|
|
94
|
+
explode: true,
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
const pathParams = {
|
|
98
|
+
auditId: encodeSimple("auditId", payload.auditId, {
|
|
99
|
+
explode: false,
|
|
100
|
+
charEncoding: "percent",
|
|
101
|
+
}),
|
|
102
|
+
requestId: encodeSimple("requestId", payload.requestId, {
|
|
103
|
+
explode: false,
|
|
104
|
+
charEncoding: "percent",
|
|
105
|
+
}),
|
|
106
|
+
};
|
|
107
|
+
const path = pathToFunc(
|
|
108
|
+
"/audits/{auditId}/information-requests/{requestId}/comments",
|
|
109
|
+
)(pathParams);
|
|
110
|
+
|
|
111
|
+
const headers = new Headers(compactMap({
|
|
112
|
+
"Content-Type": "application/json",
|
|
113
|
+
Accept: "application/json",
|
|
114
|
+
}));
|
|
115
|
+
|
|
116
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
117
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
118
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
119
|
+
|
|
120
|
+
const context = {
|
|
121
|
+
options: client._options,
|
|
122
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
123
|
+
operationID: "CreateCommentForInformationRequest",
|
|
124
|
+
oAuth2Scopes: null,
|
|
125
|
+
|
|
126
|
+
resolvedSecurity: requestSecurity,
|
|
127
|
+
|
|
128
|
+
securitySource: client._options.bearerAuth,
|
|
129
|
+
retryConfig: options?.retries
|
|
130
|
+
|| client._options.retryConfig
|
|
131
|
+
|| { strategy: "none" },
|
|
132
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const requestRes = client._createRequest(context, {
|
|
136
|
+
security: requestSecurity,
|
|
137
|
+
method: "POST",
|
|
138
|
+
baseURL: options?.serverURL,
|
|
139
|
+
path: path,
|
|
140
|
+
headers: headers,
|
|
141
|
+
body: body,
|
|
142
|
+
userAgent: client._options.userAgent,
|
|
143
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
144
|
+
}, options);
|
|
145
|
+
if (!requestRes.ok) {
|
|
146
|
+
return [requestRes, { status: "invalid" }];
|
|
147
|
+
}
|
|
148
|
+
const req = requestRes.value;
|
|
149
|
+
|
|
150
|
+
const doResult = await client._do(req, {
|
|
151
|
+
context,
|
|
152
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
153
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
154
|
+
retryConfig: context.retryConfig,
|
|
155
|
+
retryCodes: context.retryCodes,
|
|
156
|
+
});
|
|
157
|
+
if (!doResult.ok) {
|
|
158
|
+
return [doResult, { status: "request-error", request: req }];
|
|
159
|
+
}
|
|
160
|
+
const response = doResult.value;
|
|
161
|
+
|
|
162
|
+
const [result] = await M.match<
|
|
163
|
+
components.InformationRequestComment,
|
|
164
|
+
| VantaError
|
|
165
|
+
| ResponseValidationError
|
|
166
|
+
| ConnectionError
|
|
167
|
+
| RequestAbortedError
|
|
168
|
+
| RequestTimeoutError
|
|
169
|
+
| InvalidRequestError
|
|
170
|
+
| UnexpectedClientError
|
|
171
|
+
| SDKValidationError
|
|
172
|
+
>(
|
|
173
|
+
M.json(200, components.InformationRequestComment$inboundSchema),
|
|
174
|
+
M.fail("4XX"),
|
|
175
|
+
M.fail("5XX"),
|
|
176
|
+
)(response, req);
|
|
177
|
+
if (!result.ok) {
|
|
178
|
+
return [result, { status: "complete", request: req, response }];
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
return [result, { status: "complete", request: req, response }];
|
|
182
|
+
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { VantaCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -95,7 +96,6 @@ async function $do(
|
|
|
95
96
|
charEncoding: "percent",
|
|
96
97
|
}),
|
|
97
98
|
};
|
|
98
|
-
|
|
99
99
|
const path = pathToFunc("/audits/{auditId}/controls/custom-controls")(
|
|
100
100
|
pathParams,
|
|
101
101
|
);
|
|
@@ -141,7 +141,8 @@ async function $do(
|
|
|
141
141
|
|
|
142
142
|
const doResult = await client._do(req, {
|
|
143
143
|
context,
|
|
144
|
-
|
|
144
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
145
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
145
146
|
retryConfig: context.retryConfig,
|
|
146
147
|
retryCodes: context.retryCodes,
|
|
147
148
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { VantaCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
8
|
import * as M from "../lib/matchers.js";
|
|
8
9
|
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -95,7 +96,6 @@ async function $do(
|
|
|
95
96
|
charEncoding: "percent",
|
|
96
97
|
}),
|
|
97
98
|
};
|
|
98
|
-
|
|
99
99
|
const path = pathToFunc(
|
|
100
100
|
"/audits/{auditId}/evidence/custom-evidence-requests",
|
|
101
101
|
)(pathParams);
|
|
@@ -141,7 +141,8 @@ async function $do(
|
|
|
141
141
|
|
|
142
142
|
const doResult = await client._do(req, {
|
|
143
143
|
context,
|
|
144
|
-
|
|
144
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
145
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
145
146
|
retryConfig: context.retryConfig,
|
|
146
147
|
retryCodes: context.retryCodes,
|
|
147
148
|
});
|