vanta-auditor-api-sdk 0.2.0 → 0.4.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 +5 -22
- package/README.md +39 -58
- package/RUNTIMES.md +6 -6
- package/bin/mcp-server.js +1188 -1035
- package/bin/mcp-server.js.map +84 -73
- package/docs/sdks/auditors/README.md +8 -11
- package/docs/sdks/audits/README.md +76 -101
- package/examples/README.md +31 -0
- package/examples/auditsList.example.ts +26 -0
- package/examples/package-lock.json +627 -0
- package/examples/package.json +18 -0
- package/funcs/auditorsCreate.d.ts +3 -2
- package/funcs/auditorsCreate.d.ts.map +1 -1
- package/funcs/auditorsCreate.js +4 -2
- package/funcs/auditorsCreate.js.map +1 -1
- package/funcs/auditsCreateCommentForEvidence.d.ts +3 -2
- package/funcs/auditsCreateCommentForEvidence.d.ts.map +1 -1
- package/funcs/auditsCreateCommentForEvidence.js +4 -2
- package/funcs/auditsCreateCommentForEvidence.js.map +1 -1
- package/funcs/auditsCreateCustomControl.d.ts +3 -2
- package/funcs/auditsCreateCustomControl.d.ts.map +1 -1
- package/funcs/auditsCreateCustomControl.js +4 -2
- package/funcs/auditsCreateCustomControl.js.map +1 -1
- package/funcs/auditsCreateCustomEvidenceRequest.d.ts +3 -2
- package/funcs/auditsCreateCustomEvidenceRequest.d.ts.map +1 -1
- package/funcs/auditsCreateCustomEvidenceRequest.js +4 -2
- package/funcs/auditsCreateCustomEvidenceRequest.js.map +1 -1
- package/funcs/auditsGetEvidenceUrls.d.ts +3 -2
- package/funcs/auditsGetEvidenceUrls.d.ts.map +1 -1
- package/funcs/auditsGetEvidenceUrls.js +4 -2
- package/funcs/auditsGetEvidenceUrls.js.map +1 -1
- package/funcs/auditsList.d.ts +3 -2
- package/funcs/auditsList.d.ts.map +1 -1
- package/funcs/auditsList.js +5 -2
- package/funcs/auditsList.js.map +1 -1
- package/funcs/auditsListComments.d.ts +3 -2
- package/funcs/auditsListComments.d.ts.map +1 -1
- package/funcs/auditsListComments.js +4 -2
- package/funcs/auditsListComments.js.map +1 -1
- package/funcs/auditsListControls.d.ts +3 -2
- package/funcs/auditsListControls.d.ts.map +1 -1
- package/funcs/auditsListControls.js +4 -2
- package/funcs/auditsListControls.js.map +1 -1
- package/funcs/auditsListEvidence.d.ts +3 -2
- package/funcs/auditsListEvidence.d.ts.map +1 -1
- package/funcs/auditsListEvidence.js +4 -2
- package/funcs/auditsListEvidence.js.map +1 -1
- package/funcs/auditsUpdateEvidence.d.ts +3 -2
- package/funcs/auditsUpdateEvidence.d.ts.map +1 -1
- package/funcs/auditsUpdateEvidence.js +4 -2
- package/funcs/auditsUpdateEvidence.js.map +1 -1
- package/hooks/types.d.ts +2 -0
- package/hooks/types.d.ts.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/base64.d.ts +1 -1
- package/lib/base64.d.ts.map +1 -1
- package/lib/base64.js +1 -1
- package/lib/base64.js.map +1 -1
- package/lib/config.d.ts +7 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts.map +1 -1
- package/lib/env.d.ts +1 -1
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +19 -2
- package/lib/env.js.map +1 -1
- package/lib/files.d.ts +5 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +41 -0
- package/lib/files.js.map +1 -1
- package/lib/matchers.d.ts +3 -10
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +33 -31
- package/lib/matchers.js.map +1 -1
- package/lib/schemas.d.ts +1 -1
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +2 -2
- package/lib/schemas.js.map +1 -1
- package/lib/sdks.d.ts +4 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +9 -14
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +2 -2
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js.map +1 -1
- package/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/mcp-server/cli/start/command.d.ts.map +1 -1
- package/mcp-server/cli/start/command.js +2 -15
- package/mcp-server/cli/start/command.js.map +1 -1
- package/mcp-server/cli/start/impl.d.ts +0 -2
- package/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/mcp-server/cli/start/impl.js +2 -4
- package/mcp-server/cli/start/impl.js.map +1 -1
- package/mcp-server/extensions.d.ts +1 -1
- package/mcp-server/extensions.d.ts.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/prompts.d.ts +1 -1
- package/mcp-server/prompts.d.ts.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/shared.d.ts.map +1 -1
- package/mcp-server/shared.js +1 -1
- package/mcp-server/shared.js.map +1 -1
- package/mcp-server/tools.d.ts +1 -1
- package/mcp-server/tools.d.ts.map +1 -1
- package/models/components/addauditorinput.d.ts +1 -1
- package/models/components/addauditorinput.d.ts.map +1 -1
- package/models/components/addauditorinput.js +1 -1
- package/models/components/addauditorinput.js.map +1 -1
- package/models/components/addcommentinput.d.ts +1 -1
- package/models/components/addcommentinput.d.ts.map +1 -1
- package/models/components/addcommentinput.js +1 -1
- package/models/components/addcommentinput.js.map +1 -1
- package/models/components/audit.d.ts +6 -3
- package/models/components/audit.d.ts.map +1 -1
- package/models/components/audit.js +6 -3
- package/models/components/audit.js.map +1 -1
- package/models/components/auditevidencestate.d.ts +1 -1
- package/models/components/auditevidencestate.d.ts.map +1 -1
- package/models/components/auditevidencestate.js +1 -1
- package/models/components/auditevidencestate.js.map +1 -1
- package/models/components/auditevidencetype.d.ts +1 -1
- package/models/components/auditevidencetype.d.ts.map +1 -1
- package/models/components/auditevidencetype.js +1 -1
- package/models/components/auditevidencetype.js.map +1 -1
- package/models/components/auditevidenceupdateinput.d.ts +1 -1
- package/models/components/auditevidenceupdateinput.d.ts.map +1 -1
- package/models/components/auditevidenceupdateinput.js +1 -1
- package/models/components/auditevidenceupdateinput.js.map +1 -1
- package/models/components/auditfocus.d.ts +28 -0
- package/models/components/auditfocus.d.ts.map +1 -0
- package/models/components/auditfocus.js +61 -0
- package/models/components/auditfocus.js.map +1 -0
- package/models/components/auditor.d.ts +1 -1
- package/models/components/auditor.d.ts.map +1 -1
- package/models/components/auditor.js +1 -1
- package/models/components/auditor.js.map +1 -1
- package/models/components/auditorcontrol.d.ts +1 -1
- package/models/components/auditorcontrol.d.ts.map +1 -1
- package/models/components/auditorcontrol.js +1 -1
- package/models/components/auditorcontrol.js.map +1 -1
- package/models/components/auditorenabledstatetransition.d.ts +1 -1
- package/models/components/auditorenabledstatetransition.d.ts.map +1 -1
- package/models/components/auditorenabledstatetransition.js +1 -1
- package/models/components/auditorenabledstatetransition.js.map +1 -1
- package/models/components/comment.d.ts +1 -1
- package/models/components/comment.d.ts.map +1 -1
- package/models/components/comment.js +1 -1
- package/models/components/comment.js.map +1 -1
- package/models/components/control.d.ts +1 -1
- package/models/components/control.d.ts.map +1 -1
- package/models/components/control.js +1 -1
- package/models/components/control.js.map +1 -1
- package/models/components/controldomain.d.ts +1 -1
- package/models/components/controldomain.d.ts.map +1 -1
- package/models/components/controldomain.js +1 -1
- package/models/components/controldomain.js.map +1 -1
- package/models/components/controlsource.d.ts +1 -1
- package/models/components/controlsource.d.ts.map +1 -1
- package/models/components/controlsource.js +1 -1
- package/models/components/controlsource.js.map +1 -1
- package/models/components/createcustomcontrolinput.d.ts +1 -1
- package/models/components/createcustomcontrolinput.d.ts.map +1 -1
- package/models/components/createcustomcontrolinput.js +1 -1
- package/models/components/createcustomcontrolinput.js.map +1 -1
- package/models/components/createcustomevidencerequestinput.d.ts +1 -1
- package/models/components/createcustomevidencerequestinput.d.ts.map +1 -1
- package/models/components/createcustomevidencerequestinput.js +1 -1
- package/models/components/createcustomevidencerequestinput.js.map +1 -1
- package/models/components/customevidencerequest.d.ts +1 -1
- package/models/components/customevidencerequest.d.ts.map +1 -1
- package/models/components/customevidencerequest.js +1 -1
- package/models/components/customevidencerequest.js.map +1 -1
- package/models/components/customfield.d.ts +1 -1
- package/models/components/customfield.d.ts.map +1 -1
- package/models/components/customfield.js +1 -1
- package/models/components/customfield.js.map +1 -1
- package/models/components/evidence.d.ts +1 -1
- package/models/components/evidence.d.ts.map +1 -1
- package/models/components/evidence.js +1 -1
- package/models/components/evidence.js.map +1 -1
- package/models/components/evidencecontrol.d.ts +1 -1
- package/models/components/evidencecontrol.d.ts.map +1 -1
- package/models/components/evidencecontrol.js +1 -1
- package/models/components/evidencecontrol.js.map +1 -1
- package/models/components/evidenceurl.d.ts +1 -1
- package/models/components/evidenceurl.d.ts.map +1 -1
- package/models/components/evidenceurl.js +1 -1
- package/models/components/evidenceurl.js.map +1 -1
- package/models/components/frameworkid.d.ts +1 -1
- package/models/components/frameworkid.d.ts.map +1 -1
- package/models/components/frameworkid.js +1 -1
- package/models/components/frameworkid.js.map +1 -1
- package/models/components/frameworksection.d.ts +1 -1
- package/models/components/frameworksection.d.ts.map +1 -1
- package/models/components/frameworksection.js +1 -1
- package/models/components/frameworksection.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/pageinfo.d.ts +1 -1
- package/models/components/pageinfo.d.ts.map +1 -1
- package/models/components/pageinfo.js +1 -1
- package/models/components/pageinfo.js.map +1 -1
- package/models/components/paginatedresponseaudit.d.ts +1 -1
- package/models/components/paginatedresponseaudit.d.ts.map +1 -1
- package/models/components/paginatedresponseaudit.js +1 -1
- package/models/components/paginatedresponseaudit.js.map +1 -1
- package/models/components/paginatedresponseauditorcontrol.d.ts +1 -1
- package/models/components/paginatedresponseauditorcontrol.d.ts.map +1 -1
- package/models/components/paginatedresponseauditorcontrol.js +1 -1
- package/models/components/paginatedresponseauditorcontrol.js.map +1 -1
- package/models/components/paginatedresponsecomment.d.ts +1 -1
- package/models/components/paginatedresponsecomment.d.ts.map +1 -1
- package/models/components/paginatedresponsecomment.js +1 -1
- package/models/components/paginatedresponsecomment.js.map +1 -1
- package/models/components/paginatedresponseevidence.d.ts +1 -1
- package/models/components/paginatedresponseevidence.d.ts.map +1 -1
- package/models/components/paginatedresponseevidence.js +1 -1
- package/models/components/paginatedresponseevidence.js.map +1 -1
- package/models/components/paginatedresponseevidenceurl.d.ts +1 -1
- package/models/components/paginatedresponseevidenceurl.d.ts.map +1 -1
- package/models/components/paginatedresponseevidenceurl.js +1 -1
- package/models/components/paginatedresponseevidenceurl.js.map +1 -1
- package/models/components/recurrenceduration.d.ts +1 -1
- package/models/components/recurrenceduration.d.ts.map +1 -1
- package/models/components/recurrenceduration.js +1 -1
- package/models/components/recurrenceduration.js.map +1 -1
- package/models/components/section.d.ts +1 -1
- package/models/components/section.d.ts.map +1 -1
- package/models/components/section.js +1 -1
- package/models/components/section.js.map +1 -1
- package/models/components/security.d.ts +1 -1
- package/models/components/security.d.ts.map +1 -1
- package/models/components/security.js +1 -1
- package/models/components/security.js.map +1 -1
- package/models/errors/apierror.d.ts +8 -6
- package/models/errors/apierror.d.ts.map +1 -1
- package/models/errors/apierror.js +23 -10
- package/models/errors/apierror.js.map +1 -1
- package/models/errors/index.d.ts +2 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +2 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/responsevalidationerror.d.ts +26 -0
- package/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/models/errors/responsevalidationerror.js +66 -0
- package/models/errors/responsevalidationerror.js.map +1 -0
- package/models/errors/sdkvalidationerror.d.ts +2 -1
- package/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/models/errors/sdkvalidationerror.js +15 -1
- package/models/errors/sdkvalidationerror.js.map +1 -1
- package/models/errors/vantaerror.d.ts +19 -0
- package/models/errors/vantaerror.d.ts.map +1 -0
- package/models/errors/vantaerror.js +20 -0
- package/models/errors/vantaerror.js.map +1 -0
- package/models/operations/createcommentforauditevidence.d.ts +1 -1
- package/models/operations/createcommentforauditevidence.d.ts.map +1 -1
- package/models/operations/createcommentforauditevidence.js +1 -1
- package/models/operations/createcommentforauditevidence.js.map +1 -1
- package/models/operations/createcustomcontrol.d.ts +1 -1
- package/models/operations/createcustomcontrol.d.ts.map +1 -1
- package/models/operations/createcustomcontrol.js +1 -1
- package/models/operations/createcustomcontrol.js.map +1 -1
- package/models/operations/createcustomevidencerequest.d.ts +1 -1
- package/models/operations/createcustomevidencerequest.d.ts.map +1 -1
- package/models/operations/createcustomevidencerequest.js +1 -1
- package/models/operations/createcustomevidencerequest.js.map +1 -1
- package/models/operations/listauditcomments.d.ts +1 -1
- package/models/operations/listauditcomments.d.ts.map +1 -1
- package/models/operations/listauditcomments.js +1 -1
- package/models/operations/listauditcomments.js.map +1 -1
- package/models/operations/listauditcontrols.d.ts +1 -1
- package/models/operations/listauditcontrols.d.ts.map +1 -1
- package/models/operations/listauditcontrols.js +1 -1
- package/models/operations/listauditcontrols.js.map +1 -1
- package/models/operations/listauditevidence.d.ts +1 -1
- package/models/operations/listauditevidence.d.ts.map +1 -1
- package/models/operations/listauditevidence.js +1 -1
- package/models/operations/listauditevidence.js.map +1 -1
- package/models/operations/listauditevidenceurls.d.ts +1 -1
- package/models/operations/listauditevidenceurls.d.ts.map +1 -1
- package/models/operations/listauditevidenceurls.js +1 -1
- package/models/operations/listauditevidenceurls.js.map +1 -1
- package/models/operations/listaudits.d.ts +6 -1
- package/models/operations/listaudits.d.ts.map +1 -1
- package/models/operations/listaudits.js +3 -1
- package/models/operations/listaudits.js.map +1 -1
- package/models/operations/updateauditevidence.d.ts +1 -1
- package/models/operations/updateauditevidence.d.ts.map +1 -1
- package/models/operations/updateauditevidence.js +1 -1
- package/models/operations/updateauditevidence.js.map +1 -1
- package/package.json +8 -10
- package/src/funcs/auditorsCreate.ts +24 -18
- package/src/funcs/auditsCreateCommentForEvidence.ts +24 -18
- package/src/funcs/auditsCreateCustomControl.ts +24 -18
- package/src/funcs/auditsCreateCustomEvidenceRequest.ts +24 -18
- package/src/funcs/auditsGetEvidenceUrls.ts +24 -18
- package/src/funcs/auditsList.ts +25 -18
- package/src/funcs/auditsListComments.ts +24 -18
- package/src/funcs/auditsListControls.ts +24 -18
- package/src/funcs/auditsListEvidence.ts +24 -18
- package/src/funcs/auditsUpdateEvidence.ts +24 -18
- package/src/hooks/types.ts +2 -0
- package/src/index.ts +2 -0
- package/src/lib/base64.ts +1 -1
- package/src/lib/config.ts +7 -3
- package/src/lib/env.ts +21 -5
- package/src/lib/files.ts +42 -0
- package/src/lib/matchers.ts +44 -41
- package/src/lib/schemas.ts +1 -1
- package/src/lib/sdks.ts +21 -15
- package/src/lib/security.ts +6 -3
- package/src/lib/url.ts +1 -1
- package/src/mcp-server/cli/start/command.ts +2 -16
- package/src/mcp-server/cli/start/impl.ts +2 -6
- package/src/mcp-server/extensions.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/shared.ts +1 -2
- package/src/mcp-server/tools.ts +1 -1
- package/src/models/components/addauditorinput.ts +1 -1
- package/src/models/components/addcommentinput.ts +1 -1
- package/src/models/components/audit.ts +14 -5
- package/src/models/components/auditevidencestate.ts +1 -1
- package/src/models/components/auditevidencetype.ts +1 -1
- package/src/models/components/auditevidenceupdateinput.ts +1 -1
- package/src/models/components/auditfocus.ts +31 -0
- package/src/models/components/auditor.ts +1 -1
- package/src/models/components/auditorcontrol.ts +1 -1
- package/src/models/components/auditorenabledstatetransition.ts +1 -1
- package/src/models/components/comment.ts +1 -1
- package/src/models/components/control.ts +1 -1
- package/src/models/components/controldomain.ts +1 -1
- package/src/models/components/controlsource.ts +1 -1
- package/src/models/components/createcustomcontrolinput.ts +1 -1
- package/src/models/components/createcustomevidencerequestinput.ts +1 -1
- package/src/models/components/customevidencerequest.ts +1 -1
- package/src/models/components/customfield.ts +1 -1
- package/src/models/components/evidence.ts +1 -1
- package/src/models/components/evidencecontrol.ts +1 -1
- package/src/models/components/evidenceurl.ts +1 -1
- package/src/models/components/frameworkid.ts +1 -1
- package/src/models/components/frameworksection.ts +1 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/pageinfo.ts +1 -1
- package/src/models/components/paginatedresponseaudit.ts +1 -1
- package/src/models/components/paginatedresponseauditorcontrol.ts +1 -1
- package/src/models/components/paginatedresponsecomment.ts +1 -1
- package/src/models/components/paginatedresponseevidence.ts +1 -1
- package/src/models/components/paginatedresponseevidenceurl.ts +1 -1
- package/src/models/components/recurrenceduration.ts +1 -1
- package/src/models/components/section.ts +1 -1
- package/src/models/components/security.ts +1 -1
- package/src/models/errors/apierror.ts +29 -16
- package/src/models/errors/index.ts +2 -0
- package/src/models/errors/responsevalidationerror.ts +50 -0
- package/src/models/errors/sdkvalidationerror.ts +13 -1
- package/src/models/errors/vantaerror.ts +35 -0
- package/src/models/operations/createcommentforauditevidence.ts +1 -1
- package/src/models/operations/createcustomcontrol.ts +1 -1
- package/src/models/operations/createcustomevidencerequest.ts +1 -1
- package/src/models/operations/listauditcomments.ts +1 -1
- package/src/models/operations/listauditcontrols.ts +1 -1
- package/src/models/operations/listauditevidence.ts +1 -1
- package/src/models/operations/listauditevidenceurls.ts +1 -1
- package/src/models/operations/listaudits.ts +8 -1
- package/src/models/operations/updateauditevidence.ts +1 -1
- package/src/types/blobs.ts +7 -6
- package/src/types/constdatetime.ts +2 -2
- package/types/blobs.d.ts +1 -1
- package/types/blobs.d.ts.map +1 -1
- package/types/blobs.js +1 -1
- package/types/blobs.js.map +1 -1
- package/types/constdatetime.d.ts +1 -1
- package/types/constdatetime.d.ts.map +1 -1
- package/types/constdatetime.js +2 -2
- package/types/constdatetime.js.map +1 -1
- package/docs/sdks/vanta/README.md +0 -7
package/src/lib/sdks.ts
CHANGED
|
@@ -47,12 +47,14 @@ export type RequestOptions = {
|
|
|
47
47
|
*/
|
|
48
48
|
serverURL?: string | URL;
|
|
49
49
|
/**
|
|
50
|
+
* @deprecated `fetchOptions` has been flattened into `RequestOptions`.
|
|
51
|
+
*
|
|
50
52
|
* Sets various request options on the `fetch` call made by an SDK method.
|
|
51
53
|
*
|
|
52
54
|
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options|Request}
|
|
53
55
|
*/
|
|
54
56
|
fetchOptions?: Omit<RequestInit, "method" | "body">;
|
|
55
|
-
}
|
|
57
|
+
} & Omit<RequestInit, "method" | "body">;
|
|
56
58
|
|
|
57
59
|
type RequestConfig = {
|
|
58
60
|
method: string;
|
|
@@ -63,6 +65,7 @@ type RequestConfig = {
|
|
|
63
65
|
headers?: HeadersInit;
|
|
64
66
|
security?: SecurityState | null;
|
|
65
67
|
uaHeader?: string;
|
|
68
|
+
userAgent?: string | undefined;
|
|
66
69
|
timeoutMs?: number;
|
|
67
70
|
};
|
|
68
71
|
|
|
@@ -94,19 +97,21 @@ export class ClientSDK {
|
|
|
94
97
|
} else {
|
|
95
98
|
this.#hooks = new SDKHooks();
|
|
96
99
|
}
|
|
97
|
-
this._options = { ...options, hooks: this.#hooks };
|
|
98
|
-
|
|
99
100
|
const url = serverURLFromOptions(options);
|
|
100
101
|
if (url) {
|
|
101
102
|
url.pathname = url.pathname.replace(/\/+$/, "") + "/";
|
|
102
103
|
}
|
|
104
|
+
|
|
103
105
|
const { baseURL, client } = this.#hooks.sdkInit({
|
|
104
106
|
baseURL: url,
|
|
105
107
|
client: options.httpClient || new HTTPClient(),
|
|
106
108
|
});
|
|
107
109
|
this._baseURL = baseURL;
|
|
108
110
|
this.#httpClient = client;
|
|
109
|
-
|
|
111
|
+
|
|
112
|
+
this._options = { ...options, hooks: this.#hooks };
|
|
113
|
+
|
|
114
|
+
this.#logger = this._options.debugLogger;
|
|
110
115
|
if (!this.#logger && env().VANTA_DEBUG) {
|
|
111
116
|
this.#logger = console;
|
|
112
117
|
}
|
|
@@ -172,7 +177,9 @@ export class ClientSDK {
|
|
|
172
177
|
cookie = cookie.startsWith("; ") ? cookie.slice(2) : cookie;
|
|
173
178
|
headers.set("cookie", cookie);
|
|
174
179
|
|
|
175
|
-
const userHeaders = new Headers(
|
|
180
|
+
const userHeaders = new Headers(
|
|
181
|
+
options?.headers ?? options?.fetchOptions?.headers,
|
|
182
|
+
);
|
|
176
183
|
for (const [k, v] of userHeaders) {
|
|
177
184
|
headers.set(k, v);
|
|
178
185
|
}
|
|
@@ -180,23 +187,22 @@ export class ClientSDK {
|
|
|
180
187
|
// Only set user agent header in non-browser-like environments since CORS
|
|
181
188
|
// policy disallows setting it in browsers e.g. Chrome throws an error.
|
|
182
189
|
if (!isBrowserLike) {
|
|
183
|
-
headers.set(
|
|
190
|
+
headers.set(
|
|
191
|
+
conf.uaHeader ?? "user-agent",
|
|
192
|
+
conf.userAgent ?? SDK_METADATA.userAgent,
|
|
193
|
+
);
|
|
184
194
|
}
|
|
185
195
|
|
|
186
|
-
|
|
196
|
+
const fetchOptions: Omit<RequestInit, "method" | "body"> = {
|
|
197
|
+
...options?.fetchOptions,
|
|
198
|
+
...options,
|
|
199
|
+
};
|
|
187
200
|
if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
|
|
188
201
|
const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
|
|
189
|
-
|
|
190
|
-
fetchOptions = { signal: timeoutSignal };
|
|
191
|
-
} else {
|
|
192
|
-
fetchOptions.signal = timeoutSignal;
|
|
193
|
-
}
|
|
202
|
+
fetchOptions.signal = timeoutSignal;
|
|
194
203
|
}
|
|
195
204
|
|
|
196
205
|
if (conf.body instanceof ReadableStream) {
|
|
197
|
-
if (!fetchOptions) {
|
|
198
|
-
fetchOptions = {};
|
|
199
|
-
}
|
|
200
206
|
Object.assign(fetchOptions, { duplex: "half" });
|
|
201
207
|
}
|
|
202
208
|
|
package/src/lib/security.ts
CHANGED
|
@@ -7,8 +7,8 @@ import { env } from "./env.js";
|
|
|
7
7
|
|
|
8
8
|
type OAuth2PasswordFlow = {
|
|
9
9
|
username: string;
|
|
10
|
-
password
|
|
11
|
-
clientID
|
|
10
|
+
password: string;
|
|
11
|
+
clientID?: string | undefined;
|
|
12
12
|
clientSecret?: string | undefined;
|
|
13
13
|
tokenURL: string;
|
|
14
14
|
};
|
|
@@ -84,7 +84,10 @@ type SecurityInputOAuth2 = {
|
|
|
84
84
|
type SecurityInputOAuth2ClientCredentials = {
|
|
85
85
|
type: "oauth2:client_credentials";
|
|
86
86
|
value:
|
|
87
|
-
| {
|
|
87
|
+
| {
|
|
88
|
+
clientID?: string | undefined;
|
|
89
|
+
clientSecret?: string | undefined;
|
|
90
|
+
}
|
|
88
91
|
| null
|
|
89
92
|
| string
|
|
90
93
|
| undefined;
|
package/src/lib/url.ts
CHANGED
|
@@ -10,7 +10,7 @@ export function pathToFunc(
|
|
|
10
10
|
pathPattern: string,
|
|
11
11
|
options?: { charEncoding?: "percent" | "none" },
|
|
12
12
|
): (params?: Params) => string {
|
|
13
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
13
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
16
|
return pathPattern.replace(paramRE, function (_, placeholder) {
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { buildCommand } from "@stricli/core";
|
|
6
|
-
import
|
|
7
|
-
import * as z from "zod";
|
|
5
|
+
import { buildCommand, numberParser } from "@stricli/core";
|
|
6
|
+
import * as z from "zod/v3";
|
|
8
7
|
import { consoleLoggerLevels } from "../../console-logger.js";
|
|
9
|
-
import { mcpScopes } from "../../scopes.js";
|
|
10
8
|
|
|
11
9
|
export const startCommand = buildCommand({
|
|
12
10
|
loader: async () => {
|
|
@@ -37,18 +35,6 @@ export const startCommand = buildCommand({
|
|
|
37
35
|
return z.string().parse(value);
|
|
38
36
|
},
|
|
39
37
|
},
|
|
40
|
-
...(mcpScopes.length
|
|
41
|
-
? {
|
|
42
|
-
scope: {
|
|
43
|
-
kind: "enum",
|
|
44
|
-
brief:
|
|
45
|
-
"Mount tools/resources that match given scope (repeatable flag)",
|
|
46
|
-
values: mcpScopes,
|
|
47
|
-
variadic: true,
|
|
48
|
-
optional: true,
|
|
49
|
-
},
|
|
50
|
-
}
|
|
51
|
-
: {}),
|
|
52
38
|
"bearer-auth": {
|
|
53
39
|
kind: "parsed",
|
|
54
40
|
brief: "Sets the bearerAuth auth field for the API",
|
|
@@ -11,14 +11,12 @@ import {
|
|
|
11
11
|
ConsoleLoggerLevel,
|
|
12
12
|
createConsoleLogger,
|
|
13
13
|
} from "../../console-logger.js";
|
|
14
|
-
import { MCPScope } from "../../scopes.js";
|
|
15
14
|
import { createMCPServer } from "../../server.js";
|
|
16
15
|
|
|
17
16
|
interface StartCommandFlags {
|
|
18
17
|
readonly transport: "stdio" | "sse";
|
|
19
18
|
readonly port: number;
|
|
20
19
|
readonly tool?: string[];
|
|
21
|
-
readonly scope?: MCPScope[];
|
|
22
20
|
readonly "bearer-auth"?: string | undefined;
|
|
23
21
|
readonly "server-url"?: string;
|
|
24
22
|
readonly "server-index"?: SDKOptions["serverIdx"];
|
|
@@ -49,8 +47,7 @@ async function startStdio(flags: StartCommandFlags) {
|
|
|
49
47
|
const server = createMCPServer({
|
|
50
48
|
logger,
|
|
51
49
|
allowedTools: flags.tool,
|
|
52
|
-
|
|
53
|
-
...{ bearerAuth: flags["bearer-auth"] },
|
|
50
|
+
...{ bearerAuth: flags["bearer-auth"] ?? "" },
|
|
54
51
|
serverURL: flags["server-url"],
|
|
55
52
|
serverIdx: flags["server-index"],
|
|
56
53
|
});
|
|
@@ -70,8 +67,7 @@ async function startSSE(flags: StartCommandFlags) {
|
|
|
70
67
|
const mcpServer = createMCPServer({
|
|
71
68
|
logger,
|
|
72
69
|
allowedTools: flags.tool,
|
|
73
|
-
|
|
74
|
-
...{ bearerAuth: flags["bearer-auth"] },
|
|
70
|
+
...{ bearerAuth: flags["bearer-auth"] ?? "" },
|
|
75
71
|
serverURL: flags["server-url"],
|
|
76
72
|
serverIdx: flags["server-index"],
|
|
77
73
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { ZodRawShape } from "zod";
|
|
5
|
+
import { ZodRawShape } from "zod/v3";
|
|
6
6
|
import { PromptArgsRawShape, PromptDefinition } from "./prompts.js";
|
|
7
7
|
import { ResourceDefinition, ResourceTemplateDefinition } from "./resources.js";
|
|
8
8
|
import { ToolDefinition } from "./tools.js";
|
package/src/mcp-server/server.ts
CHANGED
package/src/mcp-server/shared.ts
CHANGED
package/src/mcp-server/tools.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
6
6
|
import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js";
|
|
7
7
|
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
8
|
-
import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod";
|
|
8
|
+
import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod/v3";
|
|
9
9
|
import { VantaCore } from "../core.js";
|
|
10
10
|
import { ConsoleLogger } from "./console-logger.js";
|
|
11
11
|
import { MCPScope } from "./scopes.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AuditFocus,
|
|
11
|
+
AuditFocus$inboundSchema,
|
|
12
|
+
AuditFocus$outboundSchema,
|
|
13
|
+
} from "./auditfocus.js";
|
|
9
14
|
|
|
10
15
|
export type Audit = {
|
|
11
16
|
/**
|
|
@@ -35,7 +40,7 @@ export type Audit = {
|
|
|
35
40
|
/**
|
|
36
41
|
* Timestamp at which auditors gain access to the audit. Occurs before the audit window begins
|
|
37
42
|
*/
|
|
38
|
-
|
|
43
|
+
earlyAccessStartsAt: Date | null;
|
|
39
44
|
/**
|
|
40
45
|
* The name of the framework for the audit
|
|
41
46
|
*/
|
|
@@ -64,6 +69,7 @@ export type Audit = {
|
|
|
64
69
|
* Timestamp when the audit was marked completed, and report was uploaded
|
|
65
70
|
*/
|
|
66
71
|
completionDate: Date | null;
|
|
72
|
+
auditFocus: AuditFocus;
|
|
67
73
|
};
|
|
68
74
|
|
|
69
75
|
/** @internal */
|
|
@@ -79,7 +85,7 @@ export const Audit$inboundSchema: z.ZodType<Audit, z.ZodTypeDef, unknown> = z
|
|
|
79
85
|
auditEndDate: z.string().datetime({ offset: true }).transform(v =>
|
|
80
86
|
new Date(v)
|
|
81
87
|
),
|
|
82
|
-
|
|
88
|
+
earlyAccessStartsAt: z.nullable(
|
|
83
89
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
84
90
|
),
|
|
85
91
|
framework: z.string(),
|
|
@@ -97,6 +103,7 @@ export const Audit$inboundSchema: z.ZodType<Audit, z.ZodTypeDef, unknown> = z
|
|
|
97
103
|
completionDate: z.nullable(
|
|
98
104
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
99
105
|
),
|
|
106
|
+
auditFocus: AuditFocus$inboundSchema,
|
|
100
107
|
});
|
|
101
108
|
|
|
102
109
|
/** @internal */
|
|
@@ -107,7 +114,7 @@ export type Audit$Outbound = {
|
|
|
107
114
|
customerOrganizationId: string;
|
|
108
115
|
auditStartDate: string;
|
|
109
116
|
auditEndDate: string;
|
|
110
|
-
|
|
117
|
+
earlyAccessStartsAt: string | null;
|
|
111
118
|
framework: string;
|
|
112
119
|
allowAuditorEmails: Array<string>;
|
|
113
120
|
allowAllAuditors: boolean;
|
|
@@ -115,6 +122,7 @@ export type Audit$Outbound = {
|
|
|
115
122
|
creationDate: string;
|
|
116
123
|
modificationDate: string | null;
|
|
117
124
|
completionDate: string | null;
|
|
125
|
+
auditFocus: string;
|
|
118
126
|
};
|
|
119
127
|
|
|
120
128
|
/** @internal */
|
|
@@ -129,7 +137,7 @@ export const Audit$outboundSchema: z.ZodType<
|
|
|
129
137
|
customerOrganizationId: z.string(),
|
|
130
138
|
auditStartDate: z.date().transform(v => v.toISOString()),
|
|
131
139
|
auditEndDate: z.date().transform(v => v.toISOString()),
|
|
132
|
-
|
|
140
|
+
earlyAccessStartsAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
133
141
|
framework: z.string(),
|
|
134
142
|
allowAuditorEmails: z.array(z.string()),
|
|
135
143
|
allowAllAuditors: z.boolean(),
|
|
@@ -137,6 +145,7 @@ export const Audit$outboundSchema: z.ZodType<
|
|
|
137
145
|
creationDate: z.date().transform(v => v.toISOString()),
|
|
138
146
|
modificationDate: z.nullable(z.date().transform(v => v.toISOString())),
|
|
139
147
|
completionDate: z.nullable(z.date().transform(v => v.toISOString())),
|
|
148
|
+
auditFocus: AuditFocus$outboundSchema,
|
|
140
149
|
});
|
|
141
150
|
|
|
142
151
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const AuditFocus = {
|
|
9
|
+
External: "EXTERNAL",
|
|
10
|
+
Internal: "INTERNAL",
|
|
11
|
+
} as const;
|
|
12
|
+
export type AuditFocus = ClosedEnum<typeof AuditFocus>;
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const AuditFocus$inboundSchema: z.ZodNativeEnum<typeof AuditFocus> = z
|
|
16
|
+
.nativeEnum(AuditFocus);
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const AuditFocus$outboundSchema: z.ZodNativeEnum<typeof AuditFocus> =
|
|
20
|
+
AuditFocus$inboundSchema;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
25
|
+
*/
|
|
26
|
+
export namespace AuditFocus$ {
|
|
27
|
+
/** @deprecated use `AuditFocus$inboundSchema` instead. */
|
|
28
|
+
export const inboundSchema = AuditFocus$inboundSchema;
|
|
29
|
+
/** @deprecated use `AuditFocus$outboundSchema` instead. */
|
|
30
|
+
export const outboundSchema = AuditFocus$outboundSchema;
|
|
31
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { ClosedEnum } from "../../types/enums.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -8,6 +8,7 @@ export * from "./audit.js";
|
|
|
8
8
|
export * from "./auditevidencestate.js";
|
|
9
9
|
export * from "./auditevidencetype.js";
|
|
10
10
|
export * from "./auditevidenceupdateinput.js";
|
|
11
|
+
export * from "./auditfocus.js";
|
|
11
12
|
export * from "./auditor.js";
|
|
12
13
|
export * from "./auditorcontrol.js";
|
|
13
14
|
export * from "./auditorenabledstatetransition.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|