vanta-auditor-api-sdk 0.3.0 → 0.4.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/README.md +3 -7
- package/RUNTIMES.md +6 -6
- package/bin/mcp-server.js +126 -317
- package/bin/mcp-server.js.map +70 -69
- package/docs/sdks/auditors/README.md +1 -0
- package/docs/sdks/audits/README.md +9 -0
- package/examples/auditsList.example.ts +2 -2
- package/examples/package-lock.json +7 -14
- package/funcs/auditorsCreate.js +1 -1
- package/funcs/auditorsCreate.js.map +1 -1
- package/funcs/auditsCreateCommentForEvidence.js +1 -1
- package/funcs/auditsCreateCommentForEvidence.js.map +1 -1
- package/funcs/auditsCreateCustomControl.js +1 -1
- package/funcs/auditsCreateCustomControl.js.map +1 -1
- package/funcs/auditsCreateCustomEvidenceRequest.js +1 -1
- package/funcs/auditsCreateCustomEvidenceRequest.js.map +1 -1
- package/funcs/auditsGetEvidenceUrls.js +1 -1
- package/funcs/auditsGetEvidenceUrls.js.map +1 -1
- package/funcs/auditsList.js +1 -1
- package/funcs/auditsList.js.map +1 -1
- package/funcs/auditsListComments.js +1 -1
- package/funcs/auditsListComments.js.map +1 -1
- package/funcs/auditsListControls.js +1 -1
- package/funcs/auditsListControls.js.map +1 -1
- package/funcs/auditsListEvidence.js +1 -1
- package/funcs/auditsListEvidence.js.map +1 -1
- package/funcs/auditsUpdateEvidence.js +1 -1
- package/funcs/auditsUpdateEvidence.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 +3 -3
- package/lib/config.js +3 -3
- 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/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/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 -3
- package/mcp-server/cli/start/command.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 -13
- package/models/components/addauditorinput.d.ts.map +1 -1
- package/models/components/addauditorinput.js +2 -13
- package/models/components/addauditorinput.js.map +1 -1
- package/models/components/addcommentinput.d.ts +1 -13
- package/models/components/addcommentinput.d.ts.map +1 -1
- package/models/components/addcommentinput.js +2 -13
- package/models/components/addcommentinput.js.map +1 -1
- package/models/components/audit.d.ts +1 -13
- package/models/components/audit.d.ts.map +1 -1
- package/models/components/audit.js +2 -13
- package/models/components/audit.js.map +1 -1
- package/models/components/auditevidencestate.d.ts +1 -25
- package/models/components/auditevidencestate.d.ts.map +1 -1
- package/models/components/auditevidencestate.js +2 -13
- package/models/components/auditevidencestate.js.map +1 -1
- package/models/components/auditevidencetype.d.ts +1 -19
- package/models/components/auditevidencetype.d.ts.map +1 -1
- package/models/components/auditevidencetype.js +2 -13
- package/models/components/auditevidencetype.js.map +1 -1
- package/models/components/auditevidenceupdateinput.d.ts +1 -25
- package/models/components/auditevidenceupdateinput.d.ts.map +1 -1
- package/models/components/auditevidenceupdateinput.js +2 -24
- package/models/components/auditevidenceupdateinput.js.map +1 -1
- package/models/components/auditfocus.d.ts +1 -17
- package/models/components/auditfocus.d.ts.map +1 -1
- package/models/components/auditfocus.js +2 -13
- package/models/components/auditfocus.js.map +1 -1
- package/models/components/auditor.d.ts +1 -13
- package/models/components/auditor.d.ts.map +1 -1
- package/models/components/auditor.js +2 -13
- package/models/components/auditor.js.map +1 -1
- package/models/components/auditorcontrol.d.ts +1 -25
- package/models/components/auditorcontrol.d.ts.map +1 -1
- package/models/components/auditorcontrol.js +2 -24
- package/models/components/auditorcontrol.js.map +1 -1
- package/models/components/auditorenabledstatetransition.d.ts +1 -23
- package/models/components/auditorenabledstatetransition.d.ts.map +1 -1
- package/models/components/auditorenabledstatetransition.js +2 -13
- package/models/components/auditorenabledstatetransition.js.map +1 -1
- package/models/components/comment.d.ts +1 -13
- package/models/components/comment.d.ts.map +1 -1
- package/models/components/comment.js +2 -13
- package/models/components/comment.js.map +1 -1
- package/models/components/control.d.ts +1 -25
- package/models/components/control.d.ts.map +1 -1
- package/models/components/control.js +2 -24
- package/models/components/control.js.map +1 -1
- package/models/components/controldomain.d.ts +1 -89
- package/models/components/controldomain.d.ts.map +1 -1
- package/models/components/controldomain.js +2 -13
- package/models/components/controldomain.js.map +1 -1
- package/models/components/controlsource.d.ts +1 -17
- package/models/components/controlsource.d.ts.map +1 -1
- package/models/components/controlsource.js +2 -13
- package/models/components/controlsource.js.map +1 -1
- package/models/components/createcustomcontrolinput.d.ts +1 -31
- package/models/components/createcustomcontrolinput.d.ts.map +1 -1
- package/models/components/createcustomcontrolinput.js +2 -24
- package/models/components/createcustomcontrolinput.js.map +1 -1
- package/models/components/createcustomevidencerequestinput.d.ts +1 -13
- package/models/components/createcustomevidencerequestinput.d.ts.map +1 -1
- package/models/components/createcustomevidencerequestinput.js +2 -13
- package/models/components/createcustomevidencerequestinput.js.map +1 -1
- package/models/components/customevidencerequest.d.ts +1 -13
- package/models/components/customevidencerequest.d.ts.map +1 -1
- package/models/components/customevidencerequest.js +2 -13
- package/models/components/customevidencerequest.js.map +1 -1
- package/models/components/customfield.d.ts +1 -25
- package/models/components/customfield.d.ts.map +1 -1
- package/models/components/customfield.js +2 -24
- package/models/components/customfield.js.map +1 -1
- package/models/components/evidence.d.ts +1 -13
- package/models/components/evidence.d.ts.map +1 -1
- package/models/components/evidence.js +2 -13
- package/models/components/evidence.js.map +1 -1
- package/models/components/evidencecontrol.d.ts +1 -13
- package/models/components/evidencecontrol.d.ts.map +1 -1
- package/models/components/evidencecontrol.js +2 -13
- package/models/components/evidencecontrol.js.map +1 -1
- package/models/components/evidenceurl.d.ts +1 -13
- package/models/components/evidenceurl.d.ts.map +1 -1
- package/models/components/evidenceurl.js +2 -13
- package/models/components/evidenceurl.js.map +1 -1
- package/models/components/frameworkid.d.ts +1 -83
- package/models/components/frameworkid.d.ts.map +1 -1
- package/models/components/frameworkid.js +2 -13
- package/models/components/frameworkid.js.map +1 -1
- package/models/components/frameworksection.d.ts +1 -25
- package/models/components/frameworksection.d.ts.map +1 -1
- package/models/components/frameworksection.js +2 -24
- package/models/components/frameworksection.js.map +1 -1
- package/models/components/pageinfo.d.ts +1 -13
- package/models/components/pageinfo.d.ts.map +1 -1
- package/models/components/pageinfo.js +2 -13
- package/models/components/pageinfo.js.map +1 -1
- package/models/components/paginatedresponseaudit.d.ts +1 -25
- package/models/components/paginatedresponseaudit.d.ts.map +1 -1
- package/models/components/paginatedresponseaudit.js +2 -24
- package/models/components/paginatedresponseaudit.js.map +1 -1
- package/models/components/paginatedresponseauditorcontrol.d.ts +1 -25
- package/models/components/paginatedresponseauditorcontrol.d.ts.map +1 -1
- package/models/components/paginatedresponseauditorcontrol.js +2 -24
- package/models/components/paginatedresponseauditorcontrol.js.map +1 -1
- package/models/components/paginatedresponsecomment.d.ts +1 -25
- package/models/components/paginatedresponsecomment.d.ts.map +1 -1
- package/models/components/paginatedresponsecomment.js +2 -24
- package/models/components/paginatedresponsecomment.js.map +1 -1
- package/models/components/paginatedresponseevidence.d.ts +1 -25
- package/models/components/paginatedresponseevidence.d.ts.map +1 -1
- package/models/components/paginatedresponseevidence.js +2 -24
- package/models/components/paginatedresponseevidence.js.map +1 -1
- package/models/components/paginatedresponseevidenceurl.d.ts +1 -25
- package/models/components/paginatedresponseevidenceurl.d.ts.map +1 -1
- package/models/components/paginatedresponseevidenceurl.js +2 -24
- package/models/components/paginatedresponseevidenceurl.js.map +1 -1
- package/models/components/recurrenceduration.d.ts +1 -27
- package/models/components/recurrenceduration.d.ts.map +1 -1
- package/models/components/recurrenceduration.js +2 -13
- package/models/components/recurrenceduration.js.map +1 -1
- package/models/components/section.d.ts +1 -13
- package/models/components/section.d.ts.map +1 -1
- package/models/components/section.js +2 -13
- package/models/components/section.js.map +1 -1
- package/models/components/security.d.ts +1 -13
- package/models/components/security.d.ts.map +1 -1
- package/models/components/security.js +2 -13
- package/models/components/security.js.map +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/responsevalidationerror.js +1 -1
- package/models/errors/responsevalidationerror.js.map +1 -1
- package/models/errors/sdkvalidationerror.d.ts +1 -1
- package/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/models/errors/sdkvalidationerror.js +1 -1
- package/models/errors/sdkvalidationerror.js.map +1 -1
- package/models/operations/createcommentforauditevidence.d.ts +1 -13
- package/models/operations/createcommentforauditevidence.d.ts.map +1 -1
- package/models/operations/createcommentforauditevidence.js +2 -13
- package/models/operations/createcommentforauditevidence.js.map +1 -1
- package/models/operations/createcustomcontrol.d.ts +1 -13
- package/models/operations/createcustomcontrol.d.ts.map +1 -1
- package/models/operations/createcustomcontrol.js +2 -13
- package/models/operations/createcustomcontrol.js.map +1 -1
- package/models/operations/createcustomevidencerequest.d.ts +1 -13
- package/models/operations/createcustomevidencerequest.d.ts.map +1 -1
- package/models/operations/createcustomevidencerequest.js +2 -13
- package/models/operations/createcustomevidencerequest.js.map +1 -1
- package/models/operations/listauditcomments.d.ts +1 -13
- package/models/operations/listauditcomments.d.ts.map +1 -1
- package/models/operations/listauditcomments.js +2 -13
- package/models/operations/listauditcomments.js.map +1 -1
- package/models/operations/listauditcontrols.d.ts +1 -13
- package/models/operations/listauditcontrols.d.ts.map +1 -1
- package/models/operations/listauditcontrols.js +2 -13
- package/models/operations/listauditcontrols.js.map +1 -1
- package/models/operations/listauditevidence.d.ts +1 -13
- package/models/operations/listauditevidence.d.ts.map +1 -1
- package/models/operations/listauditevidence.js +2 -13
- package/models/operations/listauditevidence.js.map +1 -1
- package/models/operations/listauditevidenceurls.d.ts +1 -13
- package/models/operations/listauditevidenceurls.d.ts.map +1 -1
- package/models/operations/listauditevidenceurls.js +2 -13
- package/models/operations/listauditevidenceurls.js.map +1 -1
- package/models/operations/listaudits.d.ts +1 -13
- package/models/operations/listaudits.d.ts.map +1 -1
- package/models/operations/listaudits.js +2 -13
- package/models/operations/listaudits.js.map +1 -1
- package/models/operations/updateauditevidence.d.ts +1 -13
- package/models/operations/updateauditevidence.d.ts.map +1 -1
- package/models/operations/updateauditevidence.js +2 -13
- package/models/operations/updateauditevidence.js.map +1 -1
- package/package.json +6 -11
- package/src/funcs/auditorsCreate.ts +1 -1
- package/src/funcs/auditsCreateCommentForEvidence.ts +1 -1
- package/src/funcs/auditsCreateCustomControl.ts +1 -1
- package/src/funcs/auditsCreateCustomEvidenceRequest.ts +1 -1
- package/src/funcs/auditsGetEvidenceUrls.ts +1 -1
- package/src/funcs/auditsList.ts +1 -1
- package/src/funcs/auditsListComments.ts +1 -1
- package/src/funcs/auditsListControls.ts +1 -1
- package/src/funcs/auditsListEvidence.ts +1 -1
- package/src/funcs/auditsUpdateEvidence.ts +1 -1
- package/src/lib/base64.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/env.ts +21 -5
- package/src/lib/schemas.ts +1 -1
- package/src/lib/security.ts +4 -1
- package/src/lib/url.ts +1 -1
- package/src/mcp-server/cli/start/command.ts +2 -3
- 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 -16
- package/src/models/components/addcommentinput.ts +1 -16
- package/src/models/components/audit.ts +1 -16
- package/src/models/components/auditevidencestate.ts +1 -13
- package/src/models/components/auditevidencetype.ts +1 -13
- package/src/models/components/auditevidenceupdateinput.ts +1 -31
- package/src/models/components/auditfocus.ts +1 -13
- package/src/models/components/auditor.ts +1 -16
- package/src/models/components/auditorcontrol.ts +1 -31
- package/src/models/components/auditorenabledstatetransition.ts +1 -13
- package/src/models/components/comment.ts +1 -16
- package/src/models/components/control.ts +1 -31
- package/src/models/components/controldomain.ts +1 -13
- package/src/models/components/controlsource.ts +1 -13
- package/src/models/components/createcustomcontrolinput.ts +1 -28
- package/src/models/components/createcustomevidencerequestinput.ts +1 -16
- package/src/models/components/customevidencerequest.ts +1 -16
- package/src/models/components/customfield.ts +1 -31
- package/src/models/components/evidence.ts +1 -16
- package/src/models/components/evidencecontrol.ts +1 -16
- package/src/models/components/evidenceurl.ts +1 -16
- package/src/models/components/frameworkid.ts +1 -13
- package/src/models/components/frameworksection.ts +1 -31
- package/src/models/components/pageinfo.ts +1 -16
- package/src/models/components/paginatedresponseaudit.ts +1 -31
- package/src/models/components/paginatedresponseauditorcontrol.ts +1 -33
- package/src/models/components/paginatedresponsecomment.ts +1 -31
- package/src/models/components/paginatedresponseevidence.ts +1 -31
- package/src/models/components/paginatedresponseevidenceurl.ts +1 -33
- package/src/models/components/recurrenceduration.ts +1 -13
- package/src/models/components/section.ts +1 -16
- package/src/models/components/security.ts +1 -16
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/responsevalidationerror.ts +1 -1
- package/src/models/errors/sdkvalidationerror.ts +1 -1
- package/src/models/operations/createcommentforauditevidence.ts +1 -18
- package/src/models/operations/createcustomcontrol.ts +1 -16
- package/src/models/operations/createcustomevidencerequest.ts +1 -17
- package/src/models/operations/listauditcomments.ts +1 -16
- package/src/models/operations/listauditcontrols.ts +1 -16
- package/src/models/operations/listauditevidence.ts +1 -16
- package/src/models/operations/listauditevidenceurls.ts +1 -16
- package/src/models/operations/listaudits.ts +1 -16
- package/src/models/operations/updateauditevidence.ts +1 -16
- package/src/types/blobs.ts +7 -6
- package/src/types/constdatetime.ts +1 -1
- package/src/types/enums.ts +55 -6
- package/src/types/index.ts +0 -1
- 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 +1 -1
- package/types/constdatetime.js.map +1 -1
- package/types/enums.d.ts +10 -6
- package/types/enums.d.ts.map +1 -1
- package/types/enums.js +76 -2
- package/types/enums.js.map +1 -1
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/types/index.js +1 -3
- package/types/index.js.map +1 -1
- package/docs/sdks/vanta/README.md +0 -7
|
@@ -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 { ClosedEnum } from "../../types/enums.js";
|
|
7
7
|
|
|
8
8
|
export const ControlSource = {
|
|
@@ -15,19 +15,7 @@ export type ControlSource = ClosedEnum<typeof ControlSource>;
|
|
|
15
15
|
export const ControlSource$inboundSchema: z.ZodNativeEnum<
|
|
16
16
|
typeof ControlSource
|
|
17
17
|
> = z.nativeEnum(ControlSource);
|
|
18
|
-
|
|
19
18
|
/** @internal */
|
|
20
19
|
export const ControlSource$outboundSchema: z.ZodNativeEnum<
|
|
21
20
|
typeof ControlSource
|
|
22
21
|
> = ControlSource$inboundSchema;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
-
*/
|
|
28
|
-
export namespace ControlSource$ {
|
|
29
|
-
/** @deprecated use `ControlSource$inboundSchema` instead. */
|
|
30
|
-
export const inboundSchema = ControlSource$inboundSchema;
|
|
31
|
-
/** @deprecated use `ControlSource$outboundSchema` instead. */
|
|
32
|
-
export const outboundSchema = ControlSource$outboundSchema;
|
|
33
|
-
}
|
|
@@ -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";
|
|
@@ -73,22 +73,10 @@ export type CreateCustomControlInput = {
|
|
|
73
73
|
export const Role$inboundSchema: z.ZodNativeEnum<typeof Role> = z.nativeEnum(
|
|
74
74
|
Role,
|
|
75
75
|
);
|
|
76
|
-
|
|
77
76
|
/** @internal */
|
|
78
77
|
export const Role$outboundSchema: z.ZodNativeEnum<typeof Role> =
|
|
79
78
|
Role$inboundSchema;
|
|
80
79
|
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
-
*/
|
|
85
|
-
export namespace Role$ {
|
|
86
|
-
/** @deprecated use `Role$inboundSchema` instead. */
|
|
87
|
-
export const inboundSchema = Role$inboundSchema;
|
|
88
|
-
/** @deprecated use `Role$outboundSchema` instead. */
|
|
89
|
-
export const outboundSchema = Role$outboundSchema;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
80
|
/** @internal */
|
|
93
81
|
export const CreateCustomControlInput$inboundSchema: z.ZodType<
|
|
94
82
|
CreateCustomControlInput,
|
|
@@ -105,7 +93,6 @@ export const CreateCustomControlInput$inboundSchema: z.ZodType<
|
|
|
105
93
|
sections: z.nullable(z.array(FrameworkSection$inboundSchema)).optional(),
|
|
106
94
|
role: z.nullable(Role$inboundSchema).optional(),
|
|
107
95
|
});
|
|
108
|
-
|
|
109
96
|
/** @internal */
|
|
110
97
|
export type CreateCustomControlInput$Outbound = {
|
|
111
98
|
externalId: string;
|
|
@@ -132,19 +119,6 @@ export const CreateCustomControlInput$outboundSchema: z.ZodType<
|
|
|
132
119
|
role: z.nullable(Role$outboundSchema).optional(),
|
|
133
120
|
});
|
|
134
121
|
|
|
135
|
-
/**
|
|
136
|
-
* @internal
|
|
137
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
138
|
-
*/
|
|
139
|
-
export namespace CreateCustomControlInput$ {
|
|
140
|
-
/** @deprecated use `CreateCustomControlInput$inboundSchema` instead. */
|
|
141
|
-
export const inboundSchema = CreateCustomControlInput$inboundSchema;
|
|
142
|
-
/** @deprecated use `CreateCustomControlInput$outboundSchema` instead. */
|
|
143
|
-
export const outboundSchema = CreateCustomControlInput$outboundSchema;
|
|
144
|
-
/** @deprecated use `CreateCustomControlInput$Outbound` instead. */
|
|
145
|
-
export type Outbound = CreateCustomControlInput$Outbound;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
122
|
export function createCustomControlInputToJSON(
|
|
149
123
|
createCustomControlInput: CreateCustomControlInput,
|
|
150
124
|
): string {
|
|
@@ -152,7 +126,6 @@ export function createCustomControlInputToJSON(
|
|
|
152
126
|
CreateCustomControlInput$outboundSchema.parse(createCustomControlInput),
|
|
153
127
|
);
|
|
154
128
|
}
|
|
155
|
-
|
|
156
129
|
export function createCustomControlInputFromJSON(
|
|
157
130
|
jsonString: string,
|
|
158
131
|
): SafeParseResult<CreateCustomControlInput, SDKValidationError> {
|
|
@@ -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";
|
|
@@ -51,7 +51,6 @@ export const CreateCustomEvidenceRequestInput$inboundSchema: z.ZodType<
|
|
|
51
51
|
isRestricted: z.boolean(),
|
|
52
52
|
auditorEmail: z.string(),
|
|
53
53
|
});
|
|
54
|
-
|
|
55
54
|
/** @internal */
|
|
56
55
|
export type CreateCustomEvidenceRequestInput$Outbound = {
|
|
57
56
|
controlIds: Array<string>;
|
|
@@ -78,19 +77,6 @@ export const CreateCustomEvidenceRequestInput$outboundSchema: z.ZodType<
|
|
|
78
77
|
auditorEmail: z.string(),
|
|
79
78
|
});
|
|
80
79
|
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
-
*/
|
|
85
|
-
export namespace CreateCustomEvidenceRequestInput$ {
|
|
86
|
-
/** @deprecated use `CreateCustomEvidenceRequestInput$inboundSchema` instead. */
|
|
87
|
-
export const inboundSchema = CreateCustomEvidenceRequestInput$inboundSchema;
|
|
88
|
-
/** @deprecated use `CreateCustomEvidenceRequestInput$outboundSchema` instead. */
|
|
89
|
-
export const outboundSchema = CreateCustomEvidenceRequestInput$outboundSchema;
|
|
90
|
-
/** @deprecated use `CreateCustomEvidenceRequestInput$Outbound` instead. */
|
|
91
|
-
export type Outbound = CreateCustomEvidenceRequestInput$Outbound;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
80
|
export function createCustomEvidenceRequestInputToJSON(
|
|
95
81
|
createCustomEvidenceRequestInput: CreateCustomEvidenceRequestInput,
|
|
96
82
|
): string {
|
|
@@ -100,7 +86,6 @@ export function createCustomEvidenceRequestInputToJSON(
|
|
|
100
86
|
),
|
|
101
87
|
);
|
|
102
88
|
}
|
|
103
|
-
|
|
104
89
|
export function createCustomEvidenceRequestInputFromJSON(
|
|
105
90
|
jsonString: string,
|
|
106
91
|
): SafeParseResult<CreateCustomEvidenceRequestInput, SDKValidationError> {
|
|
@@ -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";
|
|
@@ -51,7 +51,6 @@ export const CustomEvidenceRequest$inboundSchema: z.ZodType<
|
|
|
51
51
|
reminderWindow: RecurrenceDuration$inboundSchema,
|
|
52
52
|
isRestricted: z.boolean(),
|
|
53
53
|
});
|
|
54
|
-
|
|
55
54
|
/** @internal */
|
|
56
55
|
export type CustomEvidenceRequest$Outbound = {
|
|
57
56
|
id: string;
|
|
@@ -78,19 +77,6 @@ export const CustomEvidenceRequest$outboundSchema: z.ZodType<
|
|
|
78
77
|
isRestricted: z.boolean(),
|
|
79
78
|
});
|
|
80
79
|
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
-
*/
|
|
85
|
-
export namespace CustomEvidenceRequest$ {
|
|
86
|
-
/** @deprecated use `CustomEvidenceRequest$inboundSchema` instead. */
|
|
87
|
-
export const inboundSchema = CustomEvidenceRequest$inboundSchema;
|
|
88
|
-
/** @deprecated use `CustomEvidenceRequest$outboundSchema` instead. */
|
|
89
|
-
export const outboundSchema = CustomEvidenceRequest$outboundSchema;
|
|
90
|
-
/** @deprecated use `CustomEvidenceRequest$Outbound` instead. */
|
|
91
|
-
export type Outbound = CustomEvidenceRequest$Outbound;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
80
|
export function customEvidenceRequestToJSON(
|
|
95
81
|
customEvidenceRequest: CustomEvidenceRequest,
|
|
96
82
|
): string {
|
|
@@ -98,7 +84,6 @@ export function customEvidenceRequestToJSON(
|
|
|
98
84
|
CustomEvidenceRequest$outboundSchema.parse(customEvidenceRequest),
|
|
99
85
|
);
|
|
100
86
|
}
|
|
101
|
-
|
|
102
87
|
export function customEvidenceRequestFromJSON(
|
|
103
88
|
jsonString: string,
|
|
104
89
|
): SafeParseResult<CustomEvidenceRequest, SDKValidationError> {
|
|
@@ -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";
|
|
@@ -17,7 +17,6 @@ export type CustomField = {
|
|
|
17
17
|
/** @internal */
|
|
18
18
|
export const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown> = z
|
|
19
19
|
.union([z.string(), z.array(z.string())]);
|
|
20
|
-
|
|
21
20
|
/** @internal */
|
|
22
21
|
export type Value$Outbound = string | Array<string>;
|
|
23
22
|
|
|
@@ -28,23 +27,9 @@ export const Value$outboundSchema: z.ZodType<
|
|
|
28
27
|
Value
|
|
29
28
|
> = z.union([z.string(), z.array(z.string())]);
|
|
30
29
|
|
|
31
|
-
/**
|
|
32
|
-
* @internal
|
|
33
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
-
*/
|
|
35
|
-
export namespace Value$ {
|
|
36
|
-
/** @deprecated use `Value$inboundSchema` instead. */
|
|
37
|
-
export const inboundSchema = Value$inboundSchema;
|
|
38
|
-
/** @deprecated use `Value$outboundSchema` instead. */
|
|
39
|
-
export const outboundSchema = Value$outboundSchema;
|
|
40
|
-
/** @deprecated use `Value$Outbound` instead. */
|
|
41
|
-
export type Outbound = Value$Outbound;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
30
|
export function valueToJSON(value: Value): string {
|
|
45
31
|
return JSON.stringify(Value$outboundSchema.parse(value));
|
|
46
32
|
}
|
|
47
|
-
|
|
48
33
|
export function valueFromJSON(
|
|
49
34
|
jsonString: string,
|
|
50
35
|
): SafeParseResult<Value, SDKValidationError> {
|
|
@@ -64,7 +49,6 @@ export const CustomField$inboundSchema: z.ZodType<
|
|
|
64
49
|
label: z.string(),
|
|
65
50
|
value: z.union([z.string(), z.array(z.string())]),
|
|
66
51
|
});
|
|
67
|
-
|
|
68
52
|
/** @internal */
|
|
69
53
|
export type CustomField$Outbound = {
|
|
70
54
|
label: string;
|
|
@@ -81,23 +65,9 @@ export const CustomField$outboundSchema: z.ZodType<
|
|
|
81
65
|
value: z.union([z.string(), z.array(z.string())]),
|
|
82
66
|
});
|
|
83
67
|
|
|
84
|
-
/**
|
|
85
|
-
* @internal
|
|
86
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
-
*/
|
|
88
|
-
export namespace CustomField$ {
|
|
89
|
-
/** @deprecated use `CustomField$inboundSchema` instead. */
|
|
90
|
-
export const inboundSchema = CustomField$inboundSchema;
|
|
91
|
-
/** @deprecated use `CustomField$outboundSchema` instead. */
|
|
92
|
-
export const outboundSchema = CustomField$outboundSchema;
|
|
93
|
-
/** @deprecated use `CustomField$Outbound` instead. */
|
|
94
|
-
export type Outbound = CustomField$Outbound;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
68
|
export function customFieldToJSON(customField: CustomField): string {
|
|
98
69
|
return JSON.stringify(CustomField$outboundSchema.parse(customField));
|
|
99
70
|
}
|
|
100
|
-
|
|
101
71
|
export function customFieldFromJSON(
|
|
102
72
|
jsonString: string,
|
|
103
73
|
): SafeParseResult<CustomField, SDKValidationError> {
|
|
@@ -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";
|
|
@@ -93,7 +93,6 @@ export const Evidence$inboundSchema: z.ZodType<
|
|
|
93
93
|
relatedControls: z.array(EvidenceControl$inboundSchema),
|
|
94
94
|
description: z.nullable(z.string()),
|
|
95
95
|
});
|
|
96
|
-
|
|
97
96
|
/** @internal */
|
|
98
97
|
export type Evidence$Outbound = {
|
|
99
98
|
id: string;
|
|
@@ -130,23 +129,9 @@ export const Evidence$outboundSchema: z.ZodType<
|
|
|
130
129
|
description: z.nullable(z.string()),
|
|
131
130
|
});
|
|
132
131
|
|
|
133
|
-
/**
|
|
134
|
-
* @internal
|
|
135
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
136
|
-
*/
|
|
137
|
-
export namespace Evidence$ {
|
|
138
|
-
/** @deprecated use `Evidence$inboundSchema` instead. */
|
|
139
|
-
export const inboundSchema = Evidence$inboundSchema;
|
|
140
|
-
/** @deprecated use `Evidence$outboundSchema` instead. */
|
|
141
|
-
export const outboundSchema = Evidence$outboundSchema;
|
|
142
|
-
/** @deprecated use `Evidence$Outbound` instead. */
|
|
143
|
-
export type Outbound = Evidence$Outbound;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
132
|
export function evidenceToJSON(evidence: Evidence): string {
|
|
147
133
|
return JSON.stringify(Evidence$outboundSchema.parse(evidence));
|
|
148
134
|
}
|
|
149
|
-
|
|
150
135
|
export function evidenceFromJSON(
|
|
151
136
|
jsonString: string,
|
|
152
137
|
): SafeParseResult<Evidence, SDKValidationError> {
|
|
@@ -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";
|
|
@@ -27,7 +27,6 @@ export const EvidenceControl$inboundSchema: z.ZodType<
|
|
|
27
27
|
name: z.string(),
|
|
28
28
|
sectionNames: z.array(z.string()),
|
|
29
29
|
});
|
|
30
|
-
|
|
31
30
|
/** @internal */
|
|
32
31
|
export type EvidenceControl$Outbound = {
|
|
33
32
|
name: string;
|
|
@@ -44,25 +43,11 @@ export const EvidenceControl$outboundSchema: z.ZodType<
|
|
|
44
43
|
sectionNames: z.array(z.string()),
|
|
45
44
|
});
|
|
46
45
|
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
-
*/
|
|
51
|
-
export namespace EvidenceControl$ {
|
|
52
|
-
/** @deprecated use `EvidenceControl$inboundSchema` instead. */
|
|
53
|
-
export const inboundSchema = EvidenceControl$inboundSchema;
|
|
54
|
-
/** @deprecated use `EvidenceControl$outboundSchema` instead. */
|
|
55
|
-
export const outboundSchema = EvidenceControl$outboundSchema;
|
|
56
|
-
/** @deprecated use `EvidenceControl$Outbound` instead. */
|
|
57
|
-
export type Outbound = EvidenceControl$Outbound;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
46
|
export function evidenceControlToJSON(
|
|
61
47
|
evidenceControl: EvidenceControl,
|
|
62
48
|
): string {
|
|
63
49
|
return JSON.stringify(EvidenceControl$outboundSchema.parse(evidenceControl));
|
|
64
50
|
}
|
|
65
|
-
|
|
66
51
|
export function evidenceControlFromJSON(
|
|
67
52
|
jsonString: string,
|
|
68
53
|
): SafeParseResult<EvidenceControl, SDKValidationError> {
|
|
@@ -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";
|
|
@@ -37,7 +37,6 @@ export const EvidenceUrl$inboundSchema: z.ZodType<
|
|
|
37
37
|
filename: z.string(),
|
|
38
38
|
isDownloadable: z.boolean(),
|
|
39
39
|
});
|
|
40
|
-
|
|
41
40
|
/** @internal */
|
|
42
41
|
export type EvidenceUrl$Outbound = {
|
|
43
42
|
id: string;
|
|
@@ -58,23 +57,9 @@ export const EvidenceUrl$outboundSchema: z.ZodType<
|
|
|
58
57
|
isDownloadable: z.boolean(),
|
|
59
58
|
});
|
|
60
59
|
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
-
*/
|
|
65
|
-
export namespace EvidenceUrl$ {
|
|
66
|
-
/** @deprecated use `EvidenceUrl$inboundSchema` instead. */
|
|
67
|
-
export const inboundSchema = EvidenceUrl$inboundSchema;
|
|
68
|
-
/** @deprecated use `EvidenceUrl$outboundSchema` instead. */
|
|
69
|
-
export const outboundSchema = EvidenceUrl$outboundSchema;
|
|
70
|
-
/** @deprecated use `EvidenceUrl$Outbound` instead. */
|
|
71
|
-
export type Outbound = EvidenceUrl$Outbound;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
60
|
export function evidenceUrlToJSON(evidenceUrl: EvidenceUrl): string {
|
|
75
61
|
return JSON.stringify(EvidenceUrl$outboundSchema.parse(evidenceUrl));
|
|
76
62
|
}
|
|
77
|
-
|
|
78
63
|
export function evidenceUrlFromJSON(
|
|
79
64
|
jsonString: string,
|
|
80
65
|
): SafeParseResult<EvidenceUrl, SDKValidationError> {
|
|
@@ -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 { ClosedEnum } from "../../types/enums.js";
|
|
7
7
|
|
|
8
8
|
export const FrameworkId = {
|
|
@@ -47,18 +47,6 @@ export type FrameworkId = ClosedEnum<typeof FrameworkId>;
|
|
|
47
47
|
/** @internal */
|
|
48
48
|
export const FrameworkId$inboundSchema: z.ZodNativeEnum<typeof FrameworkId> = z
|
|
49
49
|
.nativeEnum(FrameworkId);
|
|
50
|
-
|
|
51
50
|
/** @internal */
|
|
52
51
|
export const FrameworkId$outboundSchema: z.ZodNativeEnum<typeof FrameworkId> =
|
|
53
52
|
FrameworkId$inboundSchema;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
-
*/
|
|
59
|
-
export namespace FrameworkId$ {
|
|
60
|
-
/** @deprecated use `FrameworkId$inboundSchema` instead. */
|
|
61
|
-
export const inboundSchema = FrameworkId$inboundSchema;
|
|
62
|
-
/** @deprecated use `FrameworkId$outboundSchema` instead. */
|
|
63
|
-
export const outboundSchema = FrameworkId$outboundSchema;
|
|
64
|
-
}
|
|
@@ -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";
|
|
@@ -25,7 +25,6 @@ export const FrameworkSectionFrameworkId$inboundSchema: z.ZodType<
|
|
|
25
25
|
z.ZodTypeDef,
|
|
26
26
|
unknown
|
|
27
27
|
> = z.union([FrameworkId$inboundSchema, z.string()]);
|
|
28
|
-
|
|
29
28
|
/** @internal */
|
|
30
29
|
export type FrameworkSectionFrameworkId$Outbound = string | string;
|
|
31
30
|
|
|
@@ -36,19 +35,6 @@ export const FrameworkSectionFrameworkId$outboundSchema: z.ZodType<
|
|
|
36
35
|
FrameworkSectionFrameworkId
|
|
37
36
|
> = z.union([FrameworkId$outboundSchema, z.string()]);
|
|
38
37
|
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
42
|
-
*/
|
|
43
|
-
export namespace FrameworkSectionFrameworkId$ {
|
|
44
|
-
/** @deprecated use `FrameworkSectionFrameworkId$inboundSchema` instead. */
|
|
45
|
-
export const inboundSchema = FrameworkSectionFrameworkId$inboundSchema;
|
|
46
|
-
/** @deprecated use `FrameworkSectionFrameworkId$outboundSchema` instead. */
|
|
47
|
-
export const outboundSchema = FrameworkSectionFrameworkId$outboundSchema;
|
|
48
|
-
/** @deprecated use `FrameworkSectionFrameworkId$Outbound` instead. */
|
|
49
|
-
export type Outbound = FrameworkSectionFrameworkId$Outbound;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
38
|
export function frameworkSectionFrameworkIdToJSON(
|
|
53
39
|
frameworkSectionFrameworkId: FrameworkSectionFrameworkId,
|
|
54
40
|
): string {
|
|
@@ -58,7 +44,6 @@ export function frameworkSectionFrameworkIdToJSON(
|
|
|
58
44
|
),
|
|
59
45
|
);
|
|
60
46
|
}
|
|
61
|
-
|
|
62
47
|
export function frameworkSectionFrameworkIdFromJSON(
|
|
63
48
|
jsonString: string,
|
|
64
49
|
): SafeParseResult<FrameworkSectionFrameworkId, SDKValidationError> {
|
|
@@ -78,7 +63,6 @@ export const FrameworkSection$inboundSchema: z.ZodType<
|
|
|
78
63
|
frameworkId: z.union([FrameworkId$inboundSchema, z.string()]),
|
|
79
64
|
sectionId: z.string(),
|
|
80
65
|
});
|
|
81
|
-
|
|
82
66
|
/** @internal */
|
|
83
67
|
export type FrameworkSection$Outbound = {
|
|
84
68
|
frameworkId: string | string;
|
|
@@ -95,19 +79,6 @@ export const FrameworkSection$outboundSchema: z.ZodType<
|
|
|
95
79
|
sectionId: z.string(),
|
|
96
80
|
});
|
|
97
81
|
|
|
98
|
-
/**
|
|
99
|
-
* @internal
|
|
100
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
101
|
-
*/
|
|
102
|
-
export namespace FrameworkSection$ {
|
|
103
|
-
/** @deprecated use `FrameworkSection$inboundSchema` instead. */
|
|
104
|
-
export const inboundSchema = FrameworkSection$inboundSchema;
|
|
105
|
-
/** @deprecated use `FrameworkSection$outboundSchema` instead. */
|
|
106
|
-
export const outboundSchema = FrameworkSection$outboundSchema;
|
|
107
|
-
/** @deprecated use `FrameworkSection$Outbound` instead. */
|
|
108
|
-
export type Outbound = FrameworkSection$Outbound;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
82
|
export function frameworkSectionToJSON(
|
|
112
83
|
frameworkSection: FrameworkSection,
|
|
113
84
|
): string {
|
|
@@ -115,7 +86,6 @@ export function frameworkSectionToJSON(
|
|
|
115
86
|
FrameworkSection$outboundSchema.parse(frameworkSection),
|
|
116
87
|
);
|
|
117
88
|
}
|
|
118
|
-
|
|
119
89
|
export function frameworkSectionFromJSON(
|
|
120
90
|
jsonString: string,
|
|
121
91
|
): SafeParseResult<FrameworkSection, SDKValidationError> {
|
|
@@ -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";
|
|
@@ -40,7 +40,6 @@ export const PageInfo$inboundSchema: z.ZodType<
|
|
|
40
40
|
hasPreviousPage: z.boolean(),
|
|
41
41
|
startCursor: z.nullable(z.string()),
|
|
42
42
|
});
|
|
43
|
-
|
|
44
43
|
/** @internal */
|
|
45
44
|
export type PageInfo$Outbound = {
|
|
46
45
|
endCursor: string | null;
|
|
@@ -61,23 +60,9 @@ export const PageInfo$outboundSchema: z.ZodType<
|
|
|
61
60
|
startCursor: z.nullable(z.string()),
|
|
62
61
|
});
|
|
63
62
|
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
-
*/
|
|
68
|
-
export namespace PageInfo$ {
|
|
69
|
-
/** @deprecated use `PageInfo$inboundSchema` instead. */
|
|
70
|
-
export const inboundSchema = PageInfo$inboundSchema;
|
|
71
|
-
/** @deprecated use `PageInfo$outboundSchema` instead. */
|
|
72
|
-
export const outboundSchema = PageInfo$outboundSchema;
|
|
73
|
-
/** @deprecated use `PageInfo$Outbound` instead. */
|
|
74
|
-
export type Outbound = PageInfo$Outbound;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
63
|
export function pageInfoToJSON(pageInfo: PageInfo): string {
|
|
78
64
|
return JSON.stringify(PageInfo$outboundSchema.parse(pageInfo));
|
|
79
65
|
}
|
|
80
|
-
|
|
81
66
|
export function pageInfoFromJSON(
|
|
82
67
|
jsonString: string,
|
|
83
68
|
): SafeParseResult<PageInfo, SDKValidationError> {
|
|
@@ -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";
|
|
@@ -37,7 +37,6 @@ export const Results$inboundSchema: z.ZodType<Results, z.ZodTypeDef, unknown> =
|
|
|
37
37
|
data: z.array(Audit$inboundSchema),
|
|
38
38
|
pageInfo: PageInfo$inboundSchema,
|
|
39
39
|
});
|
|
40
|
-
|
|
41
40
|
/** @internal */
|
|
42
41
|
export type Results$Outbound = {
|
|
43
42
|
data: Array<Audit$Outbound>;
|
|
@@ -54,23 +53,9 @@ export const Results$outboundSchema: z.ZodType<
|
|
|
54
53
|
pageInfo: PageInfo$outboundSchema,
|
|
55
54
|
});
|
|
56
55
|
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
-
*/
|
|
61
|
-
export namespace Results$ {
|
|
62
|
-
/** @deprecated use `Results$inboundSchema` instead. */
|
|
63
|
-
export const inboundSchema = Results$inboundSchema;
|
|
64
|
-
/** @deprecated use `Results$outboundSchema` instead. */
|
|
65
|
-
export const outboundSchema = Results$outboundSchema;
|
|
66
|
-
/** @deprecated use `Results$Outbound` instead. */
|
|
67
|
-
export type Outbound = Results$Outbound;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
56
|
export function resultsToJSON(results: Results): string {
|
|
71
57
|
return JSON.stringify(Results$outboundSchema.parse(results));
|
|
72
58
|
}
|
|
73
|
-
|
|
74
59
|
export function resultsFromJSON(
|
|
75
60
|
jsonString: string,
|
|
76
61
|
): SafeParseResult<Results, SDKValidationError> {
|
|
@@ -89,7 +74,6 @@ export const PaginatedResponseAudit$inboundSchema: z.ZodType<
|
|
|
89
74
|
> = z.object({
|
|
90
75
|
results: z.lazy(() => Results$inboundSchema),
|
|
91
76
|
});
|
|
92
|
-
|
|
93
77
|
/** @internal */
|
|
94
78
|
export type PaginatedResponseAudit$Outbound = {
|
|
95
79
|
results: Results$Outbound;
|
|
@@ -104,19 +88,6 @@ export const PaginatedResponseAudit$outboundSchema: z.ZodType<
|
|
|
104
88
|
results: z.lazy(() => Results$outboundSchema),
|
|
105
89
|
});
|
|
106
90
|
|
|
107
|
-
/**
|
|
108
|
-
* @internal
|
|
109
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
110
|
-
*/
|
|
111
|
-
export namespace PaginatedResponseAudit$ {
|
|
112
|
-
/** @deprecated use `PaginatedResponseAudit$inboundSchema` instead. */
|
|
113
|
-
export const inboundSchema = PaginatedResponseAudit$inboundSchema;
|
|
114
|
-
/** @deprecated use `PaginatedResponseAudit$outboundSchema` instead. */
|
|
115
|
-
export const outboundSchema = PaginatedResponseAudit$outboundSchema;
|
|
116
|
-
/** @deprecated use `PaginatedResponseAudit$Outbound` instead. */
|
|
117
|
-
export type Outbound = PaginatedResponseAudit$Outbound;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
91
|
export function paginatedResponseAuditToJSON(
|
|
121
92
|
paginatedResponseAudit: PaginatedResponseAudit,
|
|
122
93
|
): string {
|
|
@@ -124,7 +95,6 @@ export function paginatedResponseAuditToJSON(
|
|
|
124
95
|
PaginatedResponseAudit$outboundSchema.parse(paginatedResponseAudit),
|
|
125
96
|
);
|
|
126
97
|
}
|
|
127
|
-
|
|
128
98
|
export function paginatedResponseAuditFromJSON(
|
|
129
99
|
jsonString: string,
|
|
130
100
|
): SafeParseResult<PaginatedResponseAudit, SDKValidationError> {
|
|
@@ -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";
|
|
@@ -40,7 +40,6 @@ export const PaginatedResponseAuditorControlResults$inboundSchema: z.ZodType<
|
|
|
40
40
|
data: z.array(AuditorControl$inboundSchema),
|
|
41
41
|
pageInfo: PageInfo$inboundSchema,
|
|
42
42
|
});
|
|
43
|
-
|
|
44
43
|
/** @internal */
|
|
45
44
|
export type PaginatedResponseAuditorControlResults$Outbound = {
|
|
46
45
|
data: Array<AuditorControl$Outbound>;
|
|
@@ -57,21 +56,6 @@ export const PaginatedResponseAuditorControlResults$outboundSchema: z.ZodType<
|
|
|
57
56
|
pageInfo: PageInfo$outboundSchema,
|
|
58
57
|
});
|
|
59
58
|
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
-
*/
|
|
64
|
-
export namespace PaginatedResponseAuditorControlResults$ {
|
|
65
|
-
/** @deprecated use `PaginatedResponseAuditorControlResults$inboundSchema` instead. */
|
|
66
|
-
export const inboundSchema =
|
|
67
|
-
PaginatedResponseAuditorControlResults$inboundSchema;
|
|
68
|
-
/** @deprecated use `PaginatedResponseAuditorControlResults$outboundSchema` instead. */
|
|
69
|
-
export const outboundSchema =
|
|
70
|
-
PaginatedResponseAuditorControlResults$outboundSchema;
|
|
71
|
-
/** @deprecated use `PaginatedResponseAuditorControlResults$Outbound` instead. */
|
|
72
|
-
export type Outbound = PaginatedResponseAuditorControlResults$Outbound;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
59
|
export function paginatedResponseAuditorControlResultsToJSON(
|
|
76
60
|
paginatedResponseAuditorControlResults:
|
|
77
61
|
PaginatedResponseAuditorControlResults,
|
|
@@ -82,7 +66,6 @@ export function paginatedResponseAuditorControlResultsToJSON(
|
|
|
82
66
|
),
|
|
83
67
|
);
|
|
84
68
|
}
|
|
85
|
-
|
|
86
69
|
export function paginatedResponseAuditorControlResultsFromJSON(
|
|
87
70
|
jsonString: string,
|
|
88
71
|
): SafeParseResult<PaginatedResponseAuditorControlResults, SDKValidationError> {
|
|
@@ -102,7 +85,6 @@ export const PaginatedResponseAuditorControl$inboundSchema: z.ZodType<
|
|
|
102
85
|
> = z.object({
|
|
103
86
|
results: z.lazy(() => PaginatedResponseAuditorControlResults$inboundSchema),
|
|
104
87
|
});
|
|
105
|
-
|
|
106
88
|
/** @internal */
|
|
107
89
|
export type PaginatedResponseAuditorControl$Outbound = {
|
|
108
90
|
results: PaginatedResponseAuditorControlResults$Outbound;
|
|
@@ -117,19 +99,6 @@ export const PaginatedResponseAuditorControl$outboundSchema: z.ZodType<
|
|
|
117
99
|
results: z.lazy(() => PaginatedResponseAuditorControlResults$outboundSchema),
|
|
118
100
|
});
|
|
119
101
|
|
|
120
|
-
/**
|
|
121
|
-
* @internal
|
|
122
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
123
|
-
*/
|
|
124
|
-
export namespace PaginatedResponseAuditorControl$ {
|
|
125
|
-
/** @deprecated use `PaginatedResponseAuditorControl$inboundSchema` instead. */
|
|
126
|
-
export const inboundSchema = PaginatedResponseAuditorControl$inboundSchema;
|
|
127
|
-
/** @deprecated use `PaginatedResponseAuditorControl$outboundSchema` instead. */
|
|
128
|
-
export const outboundSchema = PaginatedResponseAuditorControl$outboundSchema;
|
|
129
|
-
/** @deprecated use `PaginatedResponseAuditorControl$Outbound` instead. */
|
|
130
|
-
export type Outbound = PaginatedResponseAuditorControl$Outbound;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
102
|
export function paginatedResponseAuditorControlToJSON(
|
|
134
103
|
paginatedResponseAuditorControl: PaginatedResponseAuditorControl,
|
|
135
104
|
): string {
|
|
@@ -139,7 +108,6 @@ export function paginatedResponseAuditorControlToJSON(
|
|
|
139
108
|
),
|
|
140
109
|
);
|
|
141
110
|
}
|
|
142
|
-
|
|
143
111
|
export function paginatedResponseAuditorControlFromJSON(
|
|
144
112
|
jsonString: string,
|
|
145
113
|
): SafeParseResult<PaginatedResponseAuditorControl, SDKValidationError> {
|