vanta-auditor-api-sdk 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devcontainer/README.md +30 -0
- package/FUNCTIONS.md +104 -0
- package/README.md +440 -0
- package/RUNTIMES.md +48 -0
- package/core.d.ts +10 -0
- package/core.d.ts.map +1 -0
- package/core.js +17 -0
- package/core.js.map +1 -0
- package/docs/sdks/auditors/README.md +88 -0
- package/docs/sdks/audits/README.md +748 -0
- package/docs/sdks/vanta/README.md +7 -0
- package/funcs/auditorsCreate.d.ts +15 -0
- package/funcs/auditorsCreate.d.ts.map +1 -0
- package/funcs/auditorsCreate.js +106 -0
- package/funcs/auditorsCreate.js.map +1 -0
- package/funcs/auditsCreateCommentForEvidence.d.ts +16 -0
- package/funcs/auditsCreateCommentForEvidence.d.ts.map +1 -0
- package/funcs/auditsCreateCommentForEvidence.js +117 -0
- package/funcs/auditsCreateCommentForEvidence.js.map +1 -0
- package/funcs/auditsCreateCustomControl.d.ts +16 -0
- package/funcs/auditsCreateCustomControl.d.ts.map +1 -0
- package/funcs/auditsCreateCustomControl.js +115 -0
- package/funcs/auditsCreateCustomControl.js.map +1 -0
- package/funcs/auditsCreateCustomEvidenceRequest.d.ts +16 -0
- package/funcs/auditsCreateCustomEvidenceRequest.d.ts.map +1 -0
- package/funcs/auditsCreateCustomEvidenceRequest.js +115 -0
- package/funcs/auditsCreateCustomEvidenceRequest.js.map +1 -0
- package/funcs/auditsGetEvidenceUrls.d.ts +16 -0
- package/funcs/auditsGetEvidenceUrls.d.ts.map +1 -0
- package/funcs/auditsGetEvidenceUrls.js +121 -0
- package/funcs/auditsGetEvidenceUrls.js.map +1 -0
- package/funcs/auditsList.d.ts +16 -0
- package/funcs/auditsList.d.ts.map +1 -0
- package/funcs/auditsList.js +112 -0
- package/funcs/auditsList.js.map +1 -0
- package/funcs/auditsListComments.d.ts +16 -0
- package/funcs/auditsListComments.d.ts.map +1 -0
- package/funcs/auditsListComments.js +118 -0
- package/funcs/auditsListComments.js.map +1 -0
- package/funcs/auditsListControls.d.ts +16 -0
- package/funcs/auditsListControls.d.ts.map +1 -0
- package/funcs/auditsListControls.js +117 -0
- package/funcs/auditsListControls.js.map +1 -0
- package/funcs/auditsListEvidence.d.ts +16 -0
- package/funcs/auditsListEvidence.d.ts.map +1 -0
- package/funcs/auditsListEvidence.js +118 -0
- package/funcs/auditsListEvidence.js.map +1 -0
- package/funcs/auditsUpdateEvidence.d.ts +16 -0
- package/funcs/auditsUpdateEvidence.d.ts.map +1 -0
- package/funcs/auditsUpdateEvidence.js +119 -0
- package/funcs/auditsUpdateEvidence.js.map +1 -0
- package/hooks/hooks.d.ts +24 -0
- package/hooks/hooks.d.ts.map +1 -0
- package/hooks/hooks.js +86 -0
- package/hooks/hooks.js.map +1 -0
- package/hooks/index.d.ts +3 -0
- package/hooks/index.d.ts.map +1 -0
- package/hooks/index.js +22 -0
- package/hooks/index.js.map +1 -0
- package/hooks/registration.d.ts +3 -0
- package/hooks/registration.d.ts.map +1 -0
- package/hooks/registration.js +15 -0
- package/hooks/registration.js.map +1 -0
- package/hooks/types.d.ts +77 -0
- package/hooks/types.d.ts.map +1 -0
- package/hooks/types.js +6 -0
- package/hooks/types.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +46 -0
- package/index.js.map +1 -0
- package/lib/base64.d.ts +10 -0
- package/lib/base64.d.ts.map +1 -0
- package/lib/base64.js +71 -0
- package/lib/base64.js.map +1 -0
- package/lib/config.d.ts +34 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/config.js +35 -0
- package/lib/config.js.map +1 -0
- package/lib/dlv.d.ts +14 -0
- package/lib/dlv.d.ts.map +1 -0
- package/lib/dlv.js +49 -0
- package/lib/dlv.js.map +1 -0
- package/lib/encodings.d.ts +51 -0
- package/lib/encodings.d.ts.map +1 -0
- package/lib/encodings.js +342 -0
- package/lib/encodings.js.map +1 -0
- package/lib/env.d.ts +15 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +65 -0
- package/lib/env.js.map +1 -0
- package/lib/files.d.ts +8 -0
- package/lib/files.d.ts.map +1 -0
- package/lib/files.js +36 -0
- package/lib/files.js.map +1 -0
- package/lib/http.d.ts +67 -0
- package/lib/http.d.ts.map +1 -0
- package/lib/http.js +217 -0
- package/lib/http.js.map +1 -0
- package/lib/is-plain-object.d.ts +2 -0
- package/lib/is-plain-object.d.ts.map +1 -0
- package/lib/is-plain-object.js +41 -0
- package/lib/is-plain-object.js.map +1 -0
- package/lib/logger.d.ts +6 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +6 -0
- package/lib/logger.js.map +1 -0
- package/lib/matchers.d.ts +64 -0
- package/lib/matchers.d.ts.map +1 -0
- package/lib/matchers.js +204 -0
- package/lib/matchers.js.map +1 -0
- package/lib/primitives.d.ts +22 -0
- package/lib/primitives.d.ts.map +1 -0
- package/lib/primitives.js +94 -0
- package/lib/primitives.js.map +1 -0
- package/lib/retries.d.ts +38 -0
- package/lib/retries.d.ts.map +1 -0
- package/lib/retries.js +154 -0
- package/lib/retries.js.map +1 -0
- package/lib/schemas.d.ts +19 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +59 -0
- package/lib/schemas.js.map +1 -0
- package/lib/sdks.d.ts +60 -0
- package/lib/sdks.d.ts.map +1 -0
- package/lib/sdks.js +277 -0
- package/lib/sdks.js.map +1 -0
- package/lib/security.d.ts +82 -0
- package/lib/security.d.ts.map +1 -0
- package/lib/security.js +139 -0
- package/lib/security.js.map +1 -0
- package/lib/url.d.ts +5 -0
- package/lib/url.d.ts.map +1 -0
- package/lib/url.js +25 -0
- package/lib/url.js.map +1 -0
- package/models/components/addauditorinput.d.ts +42 -0
- package/models/components/addauditorinput.d.ts.map +1 -0
- package/models/components/addauditorinput.js +73 -0
- package/models/components/addauditorinput.js.map +1 -0
- package/models/components/addcommentinput.d.ts +42 -0
- package/models/components/addcommentinput.d.ts.map +1 -0
- package/models/components/addcommentinput.js +73 -0
- package/models/components/addcommentinput.js.map +1 -0
- package/models/components/audit.d.ts +97 -0
- package/models/components/audit.d.ts.map +1 -0
- package/models/components/audit.js +96 -0
- package/models/components/audit.js.map +1 -0
- package/models/components/auditevidencestate.d.ts +40 -0
- package/models/components/auditevidencestate.d.ts.map +1 -0
- package/models/components/auditevidencestate.js +64 -0
- package/models/components/auditevidencestate.js.map +1 -0
- package/models/components/auditevidencetype.d.ts +31 -0
- package/models/components/auditevidencetype.d.ts.map +1 -0
- package/models/components/auditevidencetype.js +61 -0
- package/models/components/auditevidencetype.js.map +1 -0
- package/models/components/auditevidenceupdateinput.d.ts +60 -0
- package/models/components/auditevidenceupdateinput.d.ts.map +1 -0
- package/models/components/auditevidenceupdateinput.js +99 -0
- package/models/components/auditevidenceupdateinput.js.map +1 -0
- package/models/components/auditor.d.ts +49 -0
- package/models/components/auditor.d.ts.map +1 -0
- package/models/components/auditor.js +77 -0
- package/models/components/auditor.js.map +1 -0
- package/models/components/auditorcontrol.d.ts +111 -0
- package/models/components/auditorcontrol.d.ts.map +1 -0
- package/models/components/auditorcontrol.js +118 -0
- package/models/components/auditorcontrol.js.map +1 -0
- package/models/components/auditorenabledstatetransition.d.ts +34 -0
- package/models/components/auditorenabledstatetransition.d.ts.map +1 -0
- package/models/components/auditorenabledstatetransition.js +62 -0
- package/models/components/auditorenabledstatetransition.js.map +1 -0
- package/models/components/comment.d.ts +57 -0
- package/models/components/comment.d.ts.map +1 -0
- package/models/components/comment.js +79 -0
- package/models/components/comment.js.map +1 -0
- package/models/components/control.d.ts +106 -0
- package/models/components/control.d.ts.map +1 -0
- package/models/components/control.js +115 -0
- package/models/components/control.js.map +1 -0
- package/models/components/controldomain.d.ts +136 -0
- package/models/components/controldomain.d.ts.map +1 -0
- package/models/components/controldomain.js +96 -0
- package/models/components/controldomain.js.map +1 -0
- package/models/components/controlsource.d.ts +28 -0
- package/models/components/controlsource.d.ts.map +1 -0
- package/models/components/controlsource.js +60 -0
- package/models/components/controlsource.js.map +1 -0
- package/models/components/createcustomcontrolinput.d.ts +105 -0
- package/models/components/createcustomcontrolinput.d.ts.map +1 -0
- package/models/components/createcustomcontrolinput.js +109 -0
- package/models/components/createcustomcontrolinput.js.map +1 -0
- package/models/components/createcustomevidencerequestinput.d.ts +52 -0
- package/models/components/createcustomevidencerequestinput.d.ts.map +1 -0
- package/models/components/createcustomevidencerequestinput.js +80 -0
- package/models/components/createcustomevidencerequestinput.js.map +1 -0
- package/models/components/customevidencerequest.d.ts +57 -0
- package/models/components/customevidencerequest.d.ts.map +1 -0
- package/models/components/customevidencerequest.js +82 -0
- package/models/components/customevidencerequest.js.map +1 -0
- package/models/components/evidence.d.ts +84 -0
- package/models/components/evidence.d.ts.map +1 -0
- package/models/components/evidence.js +94 -0
- package/models/components/evidence.js.map +1 -0
- package/models/components/evidencecontrol.d.ts +37 -0
- package/models/components/evidencecontrol.d.ts.map +1 -0
- package/models/components/evidencecontrol.js +71 -0
- package/models/components/evidencecontrol.js.map +1 -0
- package/models/components/evidenceurl.d.ts +47 -0
- package/models/components/evidenceurl.d.ts.map +1 -0
- package/models/components/evidenceurl.js +75 -0
- package/models/components/evidenceurl.js.map +1 -0
- package/models/components/frameworkid.d.ts +127 -0
- package/models/components/frameworkid.d.ts.map +1 -0
- package/models/components/frameworkid.js +94 -0
- package/models/components/frameworkid.js.map +1 -0
- package/models/components/frameworksection.d.ts +53 -0
- package/models/components/frameworksection.d.ts.map +1 -0
- package/models/components/frameworksection.js +95 -0
- package/models/components/frameworksection.js.map +1 -0
- package/models/components/index.d.ts +30 -0
- package/models/components/index.d.ts.map +1 -0
- package/models/components/index.js +49 -0
- package/models/components/index.js.map +1 -0
- package/models/components/pageinfo.d.ts +50 -0
- package/models/components/pageinfo.d.ts.map +1 -0
- package/models/components/pageinfo.js +75 -0
- package/models/components/pageinfo.js.map +1 -0
- package/models/components/paginatedresponseaudit.d.ts +61 -0
- package/models/components/paginatedresponseaudit.d.ts.map +1 -0
- package/models/components/paginatedresponseaudit.js +100 -0
- package/models/components/paginatedresponseaudit.js.map +1 -0
- package/models/components/paginatedresponseauditorcontrol.d.ts +61 -0
- package/models/components/paginatedresponseauditorcontrol.d.ts.map +1 -0
- package/models/components/paginatedresponseauditorcontrol.js +100 -0
- package/models/components/paginatedresponseauditorcontrol.js.map +1 -0
- package/models/components/paginatedresponsecomment.d.ts +61 -0
- package/models/components/paginatedresponsecomment.d.ts.map +1 -0
- package/models/components/paginatedresponsecomment.js +100 -0
- package/models/components/paginatedresponsecomment.js.map +1 -0
- package/models/components/paginatedresponseevidence.d.ts +61 -0
- package/models/components/paginatedresponseevidence.d.ts.map +1 -0
- package/models/components/paginatedresponseevidence.js +100 -0
- package/models/components/paginatedresponseevidence.js.map +1 -0
- package/models/components/paginatedresponseevidenceurl.d.ts +61 -0
- package/models/components/paginatedresponseevidenceurl.d.ts.map +1 -0
- package/models/components/paginatedresponseevidenceurl.js +100 -0
- package/models/components/paginatedresponseevidenceurl.js.map +1 -0
- package/models/components/recurrenceduration.d.ts +43 -0
- package/models/components/recurrenceduration.d.ts.map +1 -0
- package/models/components/recurrenceduration.js +65 -0
- package/models/components/recurrenceduration.js.map +1 -0
- package/models/components/security.d.ts +29 -0
- package/models/components/security.d.ts.map +1 -0
- package/models/components/security.js +69 -0
- package/models/components/security.js.map +1 -0
- package/models/errors/apierror.d.ts +8 -0
- package/models/errors/apierror.d.ts.map +1 -0
- package/models/errors/apierror.js +21 -0
- package/models/errors/apierror.js.map +1 -0
- package/models/errors/httpclienterrors.d.ts +44 -0
- package/models/errors/httpclienterrors.d.ts.map +1 -0
- package/models/errors/httpclienterrors.js +78 -0
- package/models/errors/httpclienterrors.js.map +1 -0
- package/models/errors/index.d.ts +4 -0
- package/models/errors/index.d.ts.map +1 -0
- package/models/errors/index.js +23 -0
- package/models/errors/index.js.map +1 -0
- package/models/errors/sdkvalidationerror.d.ts +20 -0
- package/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/models/errors/sdkvalidationerror.js +115 -0
- package/models/errors/sdkvalidationerror.js.map +1 -0
- package/models/operations/createcommentforauditevidence.d.ts +34 -0
- package/models/operations/createcommentforauditevidence.d.ts.map +1 -0
- package/models/operations/createcommentforauditevidence.js +83 -0
- package/models/operations/createcommentforauditevidence.js.map +1 -0
- package/models/operations/createcustomcontrol.d.ts +32 -0
- package/models/operations/createcustomcontrol.d.ts.map +1 -0
- package/models/operations/createcustomcontrol.js +81 -0
- package/models/operations/createcustomcontrol.js.map +1 -0
- package/models/operations/createcustomevidencerequest.d.ts +32 -0
- package/models/operations/createcustomevidencerequest.d.ts.map +1 -0
- package/models/operations/createcustomevidencerequest.js +81 -0
- package/models/operations/createcustomevidencerequest.js.map +1 -0
- package/models/operations/index.d.ts +10 -0
- package/models/operations/index.d.ts.map +1 -0
- package/models/operations/index.js +29 -0
- package/models/operations/index.js.map +1 -0
- package/models/operations/listauditcomments.d.ts +38 -0
- package/models/operations/listauditcomments.d.ts.map +1 -0
- package/models/operations/listauditcomments.js +75 -0
- package/models/operations/listauditcomments.js.map +1 -0
- package/models/operations/listauditcontrols.d.ts +33 -0
- package/models/operations/listauditcontrols.d.ts.map +1 -0
- package/models/operations/listauditcontrols.js +73 -0
- package/models/operations/listauditcontrols.js.map +1 -0
- package/models/operations/listauditevidence.d.ts +38 -0
- package/models/operations/listauditevidence.d.ts.map +1 -0
- package/models/operations/listauditevidence.js +75 -0
- package/models/operations/listauditevidence.js.map +1 -0
- package/models/operations/listauditevidenceurls.d.ts +35 -0
- package/models/operations/listauditevidenceurls.d.ts.map +1 -0
- package/models/operations/listauditevidenceurls.js +75 -0
- package/models/operations/listauditevidenceurls.js.map +1 -0
- package/models/operations/listaudits.d.ts +36 -0
- package/models/operations/listaudits.d.ts.map +1 -0
- package/models/operations/listaudits.js +73 -0
- package/models/operations/listaudits.js.map +1 -0
- package/models/operations/updateauditevidence.d.ts +34 -0
- package/models/operations/updateauditevidence.d.ts.map +1 -0
- package/models/operations/updateauditevidence.js +83 -0
- package/models/operations/updateauditevidence.js.map +1 -0
- package/package.json +27 -0
- package/sdk/auditors.d.ts +12 -0
- package/sdk/auditors.d.ts.map +1 -0
- package/sdk/auditors.js +22 -0
- package/sdk/auditors.js.map +1 -0
- package/sdk/audits.d.ts +69 -0
- package/sdk/audits.d.ts.map +1 -0
- package/sdk/audits.js +102 -0
- package/sdk/audits.js.map +1 -0
- package/sdk/index.d.ts +2 -0
- package/sdk/index.d.ts.map +1 -0
- package/sdk/index.js +21 -0
- package/sdk/index.js.map +1 -0
- package/sdk/sdk.d.ts +10 -0
- package/sdk/sdk.d.ts.map +1 -0
- package/sdk/sdk.js +19 -0
- package/sdk/sdk.js.map +1 -0
- package/src/core.ts +13 -0
- package/src/funcs/auditorsCreate.ts +124 -0
- package/src/funcs/auditsCreateCommentForEvidence.ts +141 -0
- package/src/funcs/auditsCreateCustomControl.ts +137 -0
- package/src/funcs/auditsCreateCustomEvidenceRequest.ts +137 -0
- package/src/funcs/auditsGetEvidenceUrls.ts +144 -0
- package/src/funcs/auditsList.ts +131 -0
- package/src/funcs/auditsListComments.ts +138 -0
- package/src/funcs/auditsListControls.ts +137 -0
- package/src/funcs/auditsListEvidence.ts +138 -0
- package/src/funcs/auditsUpdateEvidence.ts +141 -0
- package/src/hooks/hooks.ts +132 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/registration.ts +14 -0
- package/src/hooks/types.ts +109 -0
- package/src/index.ts +7 -0
- package/src/lib/base64.ts +37 -0
- package/src/lib/config.ts +61 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +449 -0
- package/src/lib/env.ts +41 -0
- package/src/lib/files.ts +40 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +322 -0
- package/src/lib/primitives.ts +122 -0
- package/src/lib/retries.ts +219 -0
- package/src/lib/schemas.ts +86 -0
- package/src/lib/sdks.ts +397 -0
- package/src/lib/security.ts +254 -0
- package/src/lib/url.ts +33 -0
- package/src/models/components/addauditorinput.ts +81 -0
- package/src/models/components/addcommentinput.ts +83 -0
- package/src/models/components/audit.ts +167 -0
- package/src/models/components/auditevidencestate.ts +37 -0
- package/src/models/components/auditevidencetype.ts +34 -0
- package/src/models/components/auditevidenceupdateinput.ts +132 -0
- package/src/models/components/auditor.ts +87 -0
- package/src/models/components/auditorcontrol.ts +194 -0
- package/src/models/components/auditorenabledstatetransition.ts +37 -0
- package/src/models/components/comment.ts +101 -0
- package/src/models/components/control.ts +187 -0
- package/src/models/components/controldomain.ts +70 -0
- package/src/models/components/controlsource.ts +33 -0
- package/src/models/components/createcustomcontrolinput.ts +164 -0
- package/src/models/components/createcustomevidencerequestinput.ts +105 -0
- package/src/models/components/customevidencerequest.ts +110 -0
- package/src/models/components/evidence.ts +158 -0
- package/src/models/components/evidencecontrol.ts +74 -0
- package/src/models/components/evidenceurl.ts +86 -0
- package/src/models/components/frameworkid.ts +64 -0
- package/src/models/components/frameworksection.ts +127 -0
- package/src/models/components/index.ts +33 -0
- package/src/models/components/pageinfo.ts +89 -0
- package/src/models/components/paginatedresponseaudit.ts +136 -0
- package/src/models/components/paginatedresponseauditorcontrol.ts +151 -0
- package/src/models/components/paginatedresponsecomment.ts +145 -0
- package/src/models/components/paginatedresponseevidence.ts +145 -0
- package/src/models/components/paginatedresponseevidenceurl.ts +150 -0
- package/src/models/components/recurrenceduration.ts +38 -0
- package/src/models/components/security.ts +62 -0
- package/src/models/errors/apierror.ts +27 -0
- package/src/models/errors/httpclienterrors.ts +62 -0
- package/src/models/errors/index.ts +7 -0
- package/src/models/errors/sdkvalidationerror.ts +97 -0
- package/src/models/operations/createcommentforauditevidence.ts +89 -0
- package/src/models/operations/createcustomcontrol.ts +80 -0
- package/src/models/operations/createcustomevidencerequest.ts +87 -0
- package/src/models/operations/index.ts +13 -0
- package/src/models/operations/listauditcomments.ts +83 -0
- package/src/models/operations/listauditcontrols.ts +74 -0
- package/src/models/operations/listauditevidence.ts +83 -0
- package/src/models/operations/listauditevidenceurls.ts +80 -0
- package/src/models/operations/listaudits.ts +79 -0
- package/src/models/operations/updateauditevidence.ts +84 -0
- package/src/sdk/auditors.ts +27 -0
- package/src/sdk/audits.ts +172 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/sdk.ts +19 -0
- package/src/types/blobs.ts +31 -0
- package/src/types/constdatetime.ts +15 -0
- package/src/types/enums.ts +16 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +11 -0
- package/src/types/operations.ts +105 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/streams.ts +21 -0
- package/types/blobs.d.ts +4 -0
- package/types/blobs.d.ts.map +1 -0
- package/types/blobs.js +62 -0
- package/types/blobs.js.map +1 -0
- package/types/constdatetime.d.ts +3 -0
- package/types/constdatetime.d.ts.map +1 -0
- package/types/constdatetime.js +46 -0
- package/types/constdatetime.js.map +1 -0
- package/types/enums.d.ts +12 -0
- package/types/enums.d.ts.map +1 -0
- package/types/enums.js +10 -0
- package/types/enums.js.map +1 -0
- package/types/fp.d.ts +31 -0
- package/types/fp.d.ts.map +1 -0
- package/types/fp.js +37 -0
- package/types/fp.js.map +1 -0
- package/types/index.d.ts +8 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +16 -0
- package/types/index.js.map +1 -0
- package/types/operations.d.ts +27 -0
- package/types/operations.d.ts.map +1 -0
- package/types/operations.js +83 -0
- package/types/operations.js.map +1 -0
- package/types/rfcdate.d.ts +21 -0
- package/types/rfcdate.d.ts.map +1 -0
- package/types/rfcdate.js +46 -0
- package/types/rfcdate.js.map +1 -0
- package/types/streams.d.ts +2 -0
- package/types/streams.d.ts.map +1 -0
- package/types/streams.js +18 -0
- package/types/streams.js.map +1 -0
package/lib/base64.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.zodInbound = exports.zodOutbound = void 0;
|
|
40
|
+
exports.bytesToBase64 = bytesToBase64;
|
|
41
|
+
exports.bytesFromBase64 = bytesFromBase64;
|
|
42
|
+
exports.stringToBytes = stringToBytes;
|
|
43
|
+
exports.stringFromBytes = stringFromBytes;
|
|
44
|
+
exports.stringToBase64 = stringToBase64;
|
|
45
|
+
exports.stringFromBase64 = stringFromBase64;
|
|
46
|
+
const z = __importStar(require("zod"));
|
|
47
|
+
function bytesToBase64(u8arr) {
|
|
48
|
+
return btoa(String.fromCodePoint(...u8arr));
|
|
49
|
+
}
|
|
50
|
+
function bytesFromBase64(encoded) {
|
|
51
|
+
return Uint8Array.from(atob(encoded), (c) => c.charCodeAt(0));
|
|
52
|
+
}
|
|
53
|
+
function stringToBytes(str) {
|
|
54
|
+
return new TextEncoder().encode(str);
|
|
55
|
+
}
|
|
56
|
+
function stringFromBytes(u8arr) {
|
|
57
|
+
return new TextDecoder().decode(u8arr);
|
|
58
|
+
}
|
|
59
|
+
function stringToBase64(str) {
|
|
60
|
+
return bytesToBase64(stringToBytes(str));
|
|
61
|
+
}
|
|
62
|
+
function stringFromBase64(b64str) {
|
|
63
|
+
return stringFromBytes(bytesFromBase64(b64str));
|
|
64
|
+
}
|
|
65
|
+
exports.zodOutbound = z
|
|
66
|
+
.instanceof(Uint8Array)
|
|
67
|
+
.or(z.string().transform(stringToBytes));
|
|
68
|
+
exports.zodInbound = z
|
|
69
|
+
.instanceof(Uint8Array)
|
|
70
|
+
.or(z.string().transform(bytesFromBase64));
|
|
71
|
+
//# sourceMappingURL=base64.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base64.js","sourceRoot":"","sources":["../src/lib/base64.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,sCAEC;AAED,0CAEC;AAED,sCAEC;AAED,0CAEC;AAED,wCAEC;AAED,4CAEC;AAxBD,uCAAyB;AAEzB,SAAgB,aAAa,CAAC,KAAiB;IAC7C,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,eAAe,CAAC,OAAe;IAC7C,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,aAAa,CAAC,GAAW;IACvC,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AACvC,CAAC;AAED,SAAgB,eAAe,CAAC,KAAiB;IAC/C,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACzC,CAAC;AAED,SAAgB,cAAc,CAAC,GAAW;IACxC,OAAO,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,gBAAgB,CAAC,MAAc;IAC7C,OAAO,eAAe,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC;AAClD,CAAC;AAEY,QAAA,WAAW,GAAG,CAAC;KACzB,UAAU,CAAC,UAAU,CAAC;KACtB,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC;AAE9B,QAAA,UAAU,GAAG,CAAC;KACxB,UAAU,CAAC,UAAU,CAAC;KACtB,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC"}
|
package/lib/config.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { HTTPClient } from "./http.js";
|
|
2
|
+
import { Logger } from "./logger.js";
|
|
3
|
+
import { RetryConfig } from "./retries.js";
|
|
4
|
+
/**
|
|
5
|
+
* Contains the list of servers available to the SDK
|
|
6
|
+
*/
|
|
7
|
+
export declare const ServerList: readonly ["https://api.vanta.com/v1"];
|
|
8
|
+
export type SDKOptions = {
|
|
9
|
+
bearerAuth?: string | (() => Promise<string>);
|
|
10
|
+
httpClient?: HTTPClient;
|
|
11
|
+
/**
|
|
12
|
+
* Allows overriding the default server used by the SDK
|
|
13
|
+
*/
|
|
14
|
+
serverIdx?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Allows overriding the default server URL used by the SDK
|
|
17
|
+
*/
|
|
18
|
+
serverURL?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Allows overriding the default retry config used by the SDK
|
|
21
|
+
*/
|
|
22
|
+
retryConfig?: RetryConfig;
|
|
23
|
+
timeoutMs?: number;
|
|
24
|
+
debugLogger?: Logger;
|
|
25
|
+
};
|
|
26
|
+
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
27
|
+
export declare const SDK_METADATA: {
|
|
28
|
+
readonly language: "typescript";
|
|
29
|
+
readonly openapiDocVersion: "1.0.0";
|
|
30
|
+
readonly sdkVersion: "0.1.1";
|
|
31
|
+
readonly genVersion: "2.492.3";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.1.1 2.492.3 1.0.0 vanta-auditor-api-sdk";
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,UAAU,uCAEb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAE9C,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAepE;AAED,eAAO,MAAM,YAAY;;;;;;CAOf,CAAC"}
|
package/lib/config.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SDK_METADATA = exports.ServerList = void 0;
|
|
7
|
+
exports.serverURLFromOptions = serverURLFromOptions;
|
|
8
|
+
const url_js_1 = require("./url.js");
|
|
9
|
+
/**
|
|
10
|
+
* Contains the list of servers available to the SDK
|
|
11
|
+
*/
|
|
12
|
+
exports.ServerList = [
|
|
13
|
+
"https://api.vanta.com/v1",
|
|
14
|
+
];
|
|
15
|
+
function serverURLFromOptions(options) {
|
|
16
|
+
let serverURL = options.serverURL;
|
|
17
|
+
const params = {};
|
|
18
|
+
if (!serverURL) {
|
|
19
|
+
const serverIdx = options.serverIdx ?? 0;
|
|
20
|
+
if (serverIdx < 0 || serverIdx >= exports.ServerList.length) {
|
|
21
|
+
throw new Error(`Invalid server index ${serverIdx}`);
|
|
22
|
+
}
|
|
23
|
+
serverURL = exports.ServerList[serverIdx] || "";
|
|
24
|
+
}
|
|
25
|
+
const u = (0, url_js_1.pathToFunc)(serverURL)(params);
|
|
26
|
+
return new URL(u);
|
|
27
|
+
}
|
|
28
|
+
exports.SDK_METADATA = {
|
|
29
|
+
language: "typescript",
|
|
30
|
+
openapiDocVersion: "1.0.0",
|
|
31
|
+
sdkVersion: "0.1.1",
|
|
32
|
+
genVersion: "2.492.3",
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 0.1.1 2.492.3 1.0.0 vanta-auditor-api-sdk",
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAkCH,oDAeC;AA5CD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,0BAA0B;CAClB,CAAC;AAsBX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,SAAS;IACrB,SAAS,EACP,oEAAoE;CAC9D,CAAC"}
|
package/lib/dlv.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param obj The object to walk
|
|
3
|
+
* @param key The key path to walk the object with
|
|
4
|
+
* @param def A default value to return if the result is undefined
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* dlv(obj, "a.b.c.d")
|
|
8
|
+
* @example
|
|
9
|
+
* dlv(object, ["a", "b", "c", "d"])
|
|
10
|
+
* @example
|
|
11
|
+
* dlv(object, "foo.bar.baz", "Hello, default value!")
|
|
12
|
+
*/
|
|
13
|
+
export declare function dlv<T = any>(obj: any, key: string | string[], def?: T, p?: number, undef?: never): T | undefined;
|
|
14
|
+
//# sourceMappingURL=dlv.d.ts.map
|
package/lib/dlv.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dlv.d.ts","sourceRoot":"","sources":["../src/lib/dlv.ts"],"names":[],"mappings":"AA2BA;;;;;;;;;;;GAWG;AACH,wBAAgB,GAAG,CAAC,CAAC,GAAG,GAAG,EACzB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,EACtB,GAAG,CAAC,EAAE,CAAC,EACP,CAAC,CAAC,EAAE,MAAM,EACV,KAAK,CAAC,EAAE,KAAK,GACZ,CAAC,GAAG,SAAS,CAOf"}
|
package/lib/dlv.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.dlv = dlv;
|
|
7
|
+
/*
|
|
8
|
+
MIT License
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2024 Jason Miller <jason@developit.ca> (http://jasonformat.com)
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
13
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
14
|
+
the Software without restriction, including without limitation the rights to
|
|
15
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
16
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
17
|
+
subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
24
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
25
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
26
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
27
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* @param obj The object to walk
|
|
31
|
+
* @param key The key path to walk the object with
|
|
32
|
+
* @param def A default value to return if the result is undefined
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* dlv(obj, "a.b.c.d")
|
|
36
|
+
* @example
|
|
37
|
+
* dlv(object, ["a", "b", "c", "d"])
|
|
38
|
+
* @example
|
|
39
|
+
* dlv(object, "foo.bar.baz", "Hello, default value!")
|
|
40
|
+
*/
|
|
41
|
+
function dlv(obj, key, def, p, undef) {
|
|
42
|
+
key = Array.isArray(key) ? key : key.split(".");
|
|
43
|
+
for (p = 0; p < key.length; p++) {
|
|
44
|
+
const k = key[p];
|
|
45
|
+
obj = k != null && obj ? obj[k] : undef;
|
|
46
|
+
}
|
|
47
|
+
return obj === undef ? def : obj;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=dlv.js.map
|
package/lib/dlv.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dlv.js","sourceRoot":"","sources":["../src/lib/dlv.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAqCH,kBAaC;AAhDD;;;;;;;;;;;;;;;;;;;;;EAqBE;AAEF;;;;;;;;;;;GAWG;AACH,SAAgB,GAAG,CACjB,GAAQ,EACR,GAAsB,EACtB,GAAO,EACP,CAAU,EACV,KAAa;IAEb,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAChD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;QACjB,GAAG,GAAG,CAAC,IAAI,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAC1C,CAAC;IACD,OAAO,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;AACnC,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare class EncodingError extends Error {
|
|
2
|
+
constructor(message: string);
|
|
3
|
+
}
|
|
4
|
+
export declare function encodeMatrix(key: string, value: unknown, options?: {
|
|
5
|
+
explode?: boolean;
|
|
6
|
+
charEncoding?: "percent" | "none";
|
|
7
|
+
}): string;
|
|
8
|
+
export declare function encodeLabel(key: string, value: unknown, options?: {
|
|
9
|
+
explode?: boolean;
|
|
10
|
+
charEncoding?: "percent" | "none";
|
|
11
|
+
}): string;
|
|
12
|
+
type FormEncoder = (key: string, value: unknown, options?: {
|
|
13
|
+
explode?: boolean;
|
|
14
|
+
charEncoding?: "percent" | "none";
|
|
15
|
+
}) => string;
|
|
16
|
+
export declare const encodeForm: FormEncoder;
|
|
17
|
+
export declare const encodeSpaceDelimited: FormEncoder;
|
|
18
|
+
export declare const encodePipeDelimited: FormEncoder;
|
|
19
|
+
export declare function encodeBodyForm(key: string, value: unknown, options?: {
|
|
20
|
+
explode?: boolean;
|
|
21
|
+
charEncoding?: "percent" | "none";
|
|
22
|
+
}): string;
|
|
23
|
+
export declare function encodeDeepObject(key: string, value: unknown, options?: {
|
|
24
|
+
charEncoding?: "percent" | "none";
|
|
25
|
+
}): string;
|
|
26
|
+
export declare function encodeDeepObjectObject(key: string, value: unknown, options?: {
|
|
27
|
+
charEncoding?: "percent" | "none";
|
|
28
|
+
}): string;
|
|
29
|
+
export declare function encodeJSON(key: string, value: unknown, options?: {
|
|
30
|
+
explode?: boolean;
|
|
31
|
+
charEncoding?: "percent" | "none";
|
|
32
|
+
}): string;
|
|
33
|
+
export declare const encodeSimple: (key: string, value: unknown, options?: {
|
|
34
|
+
explode?: boolean;
|
|
35
|
+
charEncoding?: "percent" | "none";
|
|
36
|
+
}) => string;
|
|
37
|
+
export declare function queryJoin(...args: string[]): string;
|
|
38
|
+
type QueryEncoderOptions = {
|
|
39
|
+
explode?: boolean;
|
|
40
|
+
charEncoding?: "percent" | "none";
|
|
41
|
+
};
|
|
42
|
+
type QueryEncoder = (key: string, value: unknown, options?: QueryEncoderOptions) => string;
|
|
43
|
+
type BulkQueryEncoder = (values: Record<string, unknown>, options?: QueryEncoderOptions) => string;
|
|
44
|
+
export declare function queryEncoder(f: QueryEncoder): BulkQueryEncoder;
|
|
45
|
+
export declare const encodeJSONQuery: BulkQueryEncoder;
|
|
46
|
+
export declare const encodeFormQuery: BulkQueryEncoder;
|
|
47
|
+
export declare const encodeSpaceDelimitedQuery: BulkQueryEncoder;
|
|
48
|
+
export declare const encodePipeDelimitedQuery: BulkQueryEncoder;
|
|
49
|
+
export declare const encodeDeepObjectQuery: BulkQueryEncoder;
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=encodings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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"}
|
package/lib/encodings.js
ADDED
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.encodeDeepObjectQuery = exports.encodePipeDelimitedQuery = exports.encodeSpaceDelimitedQuery = exports.encodeFormQuery = exports.encodeJSONQuery = exports.encodeSimple = exports.encodePipeDelimited = exports.encodeSpaceDelimited = exports.encodeForm = exports.EncodingError = void 0;
|
|
7
|
+
exports.encodeMatrix = encodeMatrix;
|
|
8
|
+
exports.encodeLabel = encodeLabel;
|
|
9
|
+
exports.encodeBodyForm = encodeBodyForm;
|
|
10
|
+
exports.encodeDeepObject = encodeDeepObject;
|
|
11
|
+
exports.encodeDeepObjectObject = encodeDeepObjectObject;
|
|
12
|
+
exports.encodeJSON = encodeJSON;
|
|
13
|
+
exports.queryJoin = queryJoin;
|
|
14
|
+
exports.queryEncoder = queryEncoder;
|
|
15
|
+
const base64_js_1 = require("./base64.js");
|
|
16
|
+
const is_plain_object_js_1 = require("./is-plain-object.js");
|
|
17
|
+
class EncodingError extends Error {
|
|
18
|
+
constructor(message) {
|
|
19
|
+
super(message);
|
|
20
|
+
this.name = "EncodingError";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.EncodingError = EncodingError;
|
|
24
|
+
function encodeMatrix(key, value, options) {
|
|
25
|
+
let out = "";
|
|
26
|
+
const pairs = options?.explode
|
|
27
|
+
? explode(key, value)
|
|
28
|
+
: [[key, value]];
|
|
29
|
+
const encodeString = (v) => {
|
|
30
|
+
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
|
31
|
+
};
|
|
32
|
+
const encodeValue = (v) => encodeString(serializeValue(v));
|
|
33
|
+
pairs.forEach(([pk, pv]) => {
|
|
34
|
+
let tmp = "";
|
|
35
|
+
let encValue = "";
|
|
36
|
+
if (pv === undefined) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
else if (Array.isArray(pv)) {
|
|
40
|
+
encValue = mapDefined(pv, (v) => `${encodeValue(v)}`).join(",");
|
|
41
|
+
}
|
|
42
|
+
else if ((0, is_plain_object_js_1.isPlainObject)(pv)) {
|
|
43
|
+
encValue = mapDefinedEntries(Object.entries(pv), ([k, v]) => {
|
|
44
|
+
return `,${encodeString(k)},${encodeValue(v)}`;
|
|
45
|
+
}).join("");
|
|
46
|
+
encValue = encValue.slice(1);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
encValue = `${encodeValue(pv)}`;
|
|
50
|
+
}
|
|
51
|
+
const keyPrefix = encodeString(pk);
|
|
52
|
+
tmp = `${keyPrefix}=${encValue}`;
|
|
53
|
+
// trim trailing '=' if value was empty
|
|
54
|
+
if (tmp === `${keyPrefix}=`) {
|
|
55
|
+
tmp = tmp.slice(0, -1);
|
|
56
|
+
}
|
|
57
|
+
// If we end up with the nothing then skip forward
|
|
58
|
+
if (!tmp) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
out += `;${tmp}`;
|
|
62
|
+
});
|
|
63
|
+
return out;
|
|
64
|
+
}
|
|
65
|
+
function encodeLabel(key, value, options) {
|
|
66
|
+
let out = "";
|
|
67
|
+
const pairs = options?.explode
|
|
68
|
+
? explode(key, value)
|
|
69
|
+
: [[key, value]];
|
|
70
|
+
const encodeString = (v) => {
|
|
71
|
+
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
|
72
|
+
};
|
|
73
|
+
const encodeValue = (v) => encodeString(serializeValue(v));
|
|
74
|
+
pairs.forEach(([pk, pv]) => {
|
|
75
|
+
let encValue = "";
|
|
76
|
+
if (pv === undefined) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
else if (Array.isArray(pv)) {
|
|
80
|
+
encValue = mapDefined(pv, (v) => `${encodeValue(v)}`).join(".");
|
|
81
|
+
}
|
|
82
|
+
else if ((0, is_plain_object_js_1.isPlainObject)(pv)) {
|
|
83
|
+
encValue = mapDefinedEntries(Object.entries(pv), ([k, v]) => {
|
|
84
|
+
return `.${encodeString(k)}.${encodeValue(v)}`;
|
|
85
|
+
}).join("");
|
|
86
|
+
encValue = encValue.slice(1);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
const k = options?.explode && (0, is_plain_object_js_1.isPlainObject)(value) ? `${encodeString(pk)}=` : "";
|
|
90
|
+
encValue = `${k}${encodeValue(pv)}`;
|
|
91
|
+
}
|
|
92
|
+
out += `.${encValue}`;
|
|
93
|
+
});
|
|
94
|
+
return out;
|
|
95
|
+
}
|
|
96
|
+
function formEncoder(sep) {
|
|
97
|
+
return (key, value, options) => {
|
|
98
|
+
let out = "";
|
|
99
|
+
const pairs = options?.explode
|
|
100
|
+
? explode(key, value)
|
|
101
|
+
: [[key, value]];
|
|
102
|
+
const encodeString = (v) => {
|
|
103
|
+
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
|
104
|
+
};
|
|
105
|
+
const encodeValue = (v) => encodeString(serializeValue(v));
|
|
106
|
+
const encodedSep = encodeString(sep);
|
|
107
|
+
pairs.forEach(([pk, pv]) => {
|
|
108
|
+
let tmp = "";
|
|
109
|
+
let encValue = "";
|
|
110
|
+
if (pv === undefined) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
else if (Array.isArray(pv)) {
|
|
114
|
+
encValue = mapDefined(pv, (v) => `${encodeValue(v)}`).join(encodedSep);
|
|
115
|
+
}
|
|
116
|
+
else if ((0, is_plain_object_js_1.isPlainObject)(pv)) {
|
|
117
|
+
encValue = mapDefinedEntries(Object.entries(pv), ([k, v]) => {
|
|
118
|
+
return `${encodeString(k)}${encodedSep}${encodeValue(v)}`;
|
|
119
|
+
}).join(encodedSep);
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
encValue = `${encodeValue(pv)}`;
|
|
123
|
+
}
|
|
124
|
+
tmp = `${encodeString(pk)}=${encValue}`;
|
|
125
|
+
// If we end up with the nothing then skip forward
|
|
126
|
+
if (!tmp || tmp === "=") {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
out += `&${tmp}`;
|
|
130
|
+
});
|
|
131
|
+
return out.slice(1);
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
exports.encodeForm = formEncoder(",");
|
|
135
|
+
exports.encodeSpaceDelimited = formEncoder(" ");
|
|
136
|
+
exports.encodePipeDelimited = formEncoder("|");
|
|
137
|
+
function encodeBodyForm(key, value, options) {
|
|
138
|
+
let out = "";
|
|
139
|
+
const pairs = options?.explode
|
|
140
|
+
? explode(key, value)
|
|
141
|
+
: [[key, value]];
|
|
142
|
+
const encodeString = (v) => {
|
|
143
|
+
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
|
144
|
+
};
|
|
145
|
+
const encodeValue = (v) => encodeString(serializeValue(v));
|
|
146
|
+
pairs.forEach(([pk, pv]) => {
|
|
147
|
+
let tmp = "";
|
|
148
|
+
let encValue = "";
|
|
149
|
+
if (pv === undefined) {
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
else if (Array.isArray(pv)) {
|
|
153
|
+
encValue = JSON.stringify(pv, jsonReplacer);
|
|
154
|
+
}
|
|
155
|
+
else if ((0, is_plain_object_js_1.isPlainObject)(pv)) {
|
|
156
|
+
encValue = JSON.stringify(pv, jsonReplacer);
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
encValue = `${encodeValue(pv)}`;
|
|
160
|
+
}
|
|
161
|
+
tmp = `${encodeString(pk)}=${encValue}`;
|
|
162
|
+
// If we end up with the nothing then skip forward
|
|
163
|
+
if (!tmp || tmp === "=") {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
out += `&${tmp}`;
|
|
167
|
+
});
|
|
168
|
+
return out.slice(1);
|
|
169
|
+
}
|
|
170
|
+
function encodeDeepObject(key, value, options) {
|
|
171
|
+
if (value == null) {
|
|
172
|
+
return "";
|
|
173
|
+
}
|
|
174
|
+
if (!(0, is_plain_object_js_1.isPlainObject)(value)) {
|
|
175
|
+
throw new EncodingError(`Value of parameter '${key}' which uses deepObject encoding must be an object`);
|
|
176
|
+
}
|
|
177
|
+
return encodeDeepObjectObject(key, value, options);
|
|
178
|
+
}
|
|
179
|
+
function encodeDeepObjectObject(key, value, options) {
|
|
180
|
+
if (value == null) {
|
|
181
|
+
return "";
|
|
182
|
+
}
|
|
183
|
+
let out = "";
|
|
184
|
+
const encodeString = (v) => {
|
|
185
|
+
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
|
186
|
+
};
|
|
187
|
+
if (!(0, is_plain_object_js_1.isPlainObject)(value)) {
|
|
188
|
+
throw new EncodingError(`Expected parameter '${key}' to be an object.`);
|
|
189
|
+
}
|
|
190
|
+
Object.entries(value).forEach(([ck, cv]) => {
|
|
191
|
+
if (cv === undefined) {
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
const pk = `${key}[${ck}]`;
|
|
195
|
+
if ((0, is_plain_object_js_1.isPlainObject)(cv)) {
|
|
196
|
+
const objOut = encodeDeepObjectObject(pk, cv, options);
|
|
197
|
+
out += `&${objOut}`;
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
const pairs = Array.isArray(cv) ? cv : [cv];
|
|
201
|
+
let encoded = "";
|
|
202
|
+
encoded = mapDefined(pairs, (v) => {
|
|
203
|
+
return `${encodeString(pk)}=${encodeString(serializeValue(v))}`;
|
|
204
|
+
}).join("&");
|
|
205
|
+
out += `&${encoded}`;
|
|
206
|
+
});
|
|
207
|
+
return out.slice(1);
|
|
208
|
+
}
|
|
209
|
+
function encodeJSON(key, value, options) {
|
|
210
|
+
if (typeof value === "undefined") {
|
|
211
|
+
return "";
|
|
212
|
+
}
|
|
213
|
+
const encodeString = (v) => {
|
|
214
|
+
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
|
215
|
+
};
|
|
216
|
+
const encVal = encodeString(JSON.stringify(value, jsonReplacer));
|
|
217
|
+
return options?.explode ? encVal : `${encodeString(key)}=${encVal}`;
|
|
218
|
+
}
|
|
219
|
+
const encodeSimple = (key, value, options) => {
|
|
220
|
+
let out = "";
|
|
221
|
+
const pairs = options?.explode
|
|
222
|
+
? explode(key, value)
|
|
223
|
+
: [[key, value]];
|
|
224
|
+
const encodeString = (v) => {
|
|
225
|
+
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
|
226
|
+
};
|
|
227
|
+
const encodeValue = (v) => encodeString(serializeValue(v));
|
|
228
|
+
pairs.forEach(([pk, pv]) => {
|
|
229
|
+
let tmp = "";
|
|
230
|
+
if (pv === undefined) {
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
else if (Array.isArray(pv)) {
|
|
234
|
+
tmp = mapDefined(pv, (v) => `${encodeValue(v)}`).join(",");
|
|
235
|
+
}
|
|
236
|
+
else if ((0, is_plain_object_js_1.isPlainObject)(pv)) {
|
|
237
|
+
tmp = mapDefinedEntries(Object.entries(pv), ([k, v]) => {
|
|
238
|
+
return `,${encodeString(k)},${encodeValue(v)}`;
|
|
239
|
+
}).join("");
|
|
240
|
+
tmp = tmp.slice(1);
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
const k = options?.explode && (0, is_plain_object_js_1.isPlainObject)(value) ? `${pk}=` : "";
|
|
244
|
+
tmp = `${k}${encodeValue(pv)}`;
|
|
245
|
+
}
|
|
246
|
+
// If we end up with the nothing then skip forward
|
|
247
|
+
if (!tmp) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
out += `,${tmp}`;
|
|
251
|
+
});
|
|
252
|
+
return out.slice(1);
|
|
253
|
+
};
|
|
254
|
+
exports.encodeSimple = encodeSimple;
|
|
255
|
+
function explode(key, value) {
|
|
256
|
+
if (Array.isArray(value)) {
|
|
257
|
+
return value.map((v) => [key, v]);
|
|
258
|
+
}
|
|
259
|
+
else if ((0, is_plain_object_js_1.isPlainObject)(value)) {
|
|
260
|
+
const o = value ?? {};
|
|
261
|
+
return Object.entries(o).map(([k, v]) => [k, v]);
|
|
262
|
+
}
|
|
263
|
+
else {
|
|
264
|
+
return [[key, value]];
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
function serializeValue(value) {
|
|
268
|
+
if (value === null) {
|
|
269
|
+
return "null";
|
|
270
|
+
}
|
|
271
|
+
else if (typeof value === "undefined") {
|
|
272
|
+
return "";
|
|
273
|
+
}
|
|
274
|
+
else if (value instanceof Date) {
|
|
275
|
+
return value.toISOString();
|
|
276
|
+
}
|
|
277
|
+
else if (value instanceof Uint8Array) {
|
|
278
|
+
return (0, base64_js_1.bytesToBase64)(value);
|
|
279
|
+
}
|
|
280
|
+
else if (typeof value === "object") {
|
|
281
|
+
return JSON.stringify(value, jsonReplacer);
|
|
282
|
+
}
|
|
283
|
+
return `${value}`;
|
|
284
|
+
}
|
|
285
|
+
function jsonReplacer(_, value) {
|
|
286
|
+
if (value instanceof Uint8Array) {
|
|
287
|
+
return (0, base64_js_1.bytesToBase64)(value);
|
|
288
|
+
}
|
|
289
|
+
else {
|
|
290
|
+
return value;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
function mapDefined(inp, mapper) {
|
|
294
|
+
return inp.reduce((acc, v) => {
|
|
295
|
+
if (v === undefined) {
|
|
296
|
+
return acc;
|
|
297
|
+
}
|
|
298
|
+
const m = mapper(v);
|
|
299
|
+
if (m === undefined) {
|
|
300
|
+
return acc;
|
|
301
|
+
}
|
|
302
|
+
acc.push(m);
|
|
303
|
+
return acc;
|
|
304
|
+
}, []);
|
|
305
|
+
}
|
|
306
|
+
function mapDefinedEntries(inp, mapper) {
|
|
307
|
+
const acc = [];
|
|
308
|
+
for (const [k, v] of inp) {
|
|
309
|
+
if (v === undefined) {
|
|
310
|
+
continue;
|
|
311
|
+
}
|
|
312
|
+
const m = mapper([k, v]);
|
|
313
|
+
if (m === undefined) {
|
|
314
|
+
continue;
|
|
315
|
+
}
|
|
316
|
+
acc.push(m);
|
|
317
|
+
}
|
|
318
|
+
return acc;
|
|
319
|
+
}
|
|
320
|
+
function queryJoin(...args) {
|
|
321
|
+
return args.filter(Boolean).join("&");
|
|
322
|
+
}
|
|
323
|
+
function queryEncoder(f) {
|
|
324
|
+
const bulkEncode = function (values, options) {
|
|
325
|
+
const opts = {
|
|
326
|
+
...options,
|
|
327
|
+
explode: options?.explode ?? true,
|
|
328
|
+
charEncoding: options?.charEncoding ?? "percent",
|
|
329
|
+
};
|
|
330
|
+
const encoded = Object.entries(values).map(([key, value]) => {
|
|
331
|
+
return f(key, value, opts);
|
|
332
|
+
});
|
|
333
|
+
return queryJoin(...encoded);
|
|
334
|
+
};
|
|
335
|
+
return bulkEncode;
|
|
336
|
+
}
|
|
337
|
+
exports.encodeJSONQuery = queryEncoder(encodeJSON);
|
|
338
|
+
exports.encodeFormQuery = queryEncoder(exports.encodeForm);
|
|
339
|
+
exports.encodeSpaceDelimitedQuery = queryEncoder(exports.encodeSpaceDelimited);
|
|
340
|
+
exports.encodePipeDelimitedQuery = queryEncoder(exports.encodePipeDelimited);
|
|
341
|
+
exports.encodeDeepObjectQuery = queryEncoder(encodeDeepObject);
|
|
342
|
+
//# sourceMappingURL=encodings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encodings.js","sourceRoot":"","sources":["../src/lib/encodings.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAYH,oCAgDC;AAED,kCAqCC;AA6DD,wCAyCC;AAED,4CAgBC;AAED,wDA6CC;AAED,gCAgBC;AAsHD,8BAEC;AAkBD,oCAkBC;AAtbD,2CAA4C;AAC5C,6DAAqD;AAErD,MAAa,aAAc,SAAQ,KAAK;IACtC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC9B,CAAC;CACF;AALD,sCAKC;AAED,SAAgB,YAAY,CAC1B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AAC,GAAG,CAAC,CAAC;AACxC,CAAC;AAkBD,SAAgB,YAAY,CAAC,CAAe;IAC1C,MAAM,UAAU,GAAG,UACjB,MAA+B,EAC/B,OAA6B;QAE7B,MAAM,IAAI,GAAwB;YAChC,GAAG,OAAO;YACV,OAAO,EAAE,OAAO,EAAE,OAAO,IAAI,IAAI;YACjC,YAAY,EAAE,OAAO,EAAE,YAAY,IAAI,SAAS;SACjD,CAAC;QAEF,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC1D,OAAO,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;QACH,OAAO,SAAS,CAAC,GAAG,OAAO,CAAC,CAAC;IAC/B,CAAC,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC;AAEY,QAAA,eAAe,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;AAC3C,QAAA,eAAe,GAAG,YAAY,CAAC,kBAAU,CAAC,CAAC;AAC3C,QAAA,yBAAyB,GAAG,YAAY,CAAC,4BAAoB,CAAC,CAAC;AAC/D,QAAA,wBAAwB,GAAG,YAAY,CAAC,2BAAmB,CAAC,CAAC;AAC7D,QAAA,qBAAqB,GAAG,YAAY,CAAC,gBAAgB,CAAC,CAAC"}
|
package/lib/env.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
export interface Env {
|
|
3
|
+
VANTA_BEARER_AUTH?: string | undefined;
|
|
4
|
+
VANTA_DEBUG?: boolean | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare const envSchema: z.ZodType<Env, z.ZodTypeDef, unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* Reads and validates environment variables.
|
|
9
|
+
*/
|
|
10
|
+
export declare function env(): Env;
|
|
11
|
+
/**
|
|
12
|
+
* Clears the cached env object. Useful for testing with a fresh environment.
|
|
13
|
+
*/
|
|
14
|
+
export declare function resetEnv(): void;
|
|
15
|
+
//# sourceMappingURL=env.d.ts.map
|