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
package/src/lib/security.ts
CHANGED
|
@@ -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,9 +2,8 @@
|
|
|
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
8
|
|
|
10
9
|
export const startCommand = buildCommand({
|
|
@@ -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";
|
|
@@ -32,7 +32,6 @@ export const AddAuditorInput$inboundSchema: z.ZodType<
|
|
|
32
32
|
givenName: z.string(),
|
|
33
33
|
familyName: z.string(),
|
|
34
34
|
});
|
|
35
|
-
|
|
36
35
|
/** @internal */
|
|
37
36
|
export type AddAuditorInput$Outbound = {
|
|
38
37
|
email: string;
|
|
@@ -51,25 +50,11 @@ export const AddAuditorInput$outboundSchema: z.ZodType<
|
|
|
51
50
|
familyName: z.string(),
|
|
52
51
|
});
|
|
53
52
|
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
-
*/
|
|
58
|
-
export namespace AddAuditorInput$ {
|
|
59
|
-
/** @deprecated use `AddAuditorInput$inboundSchema` instead. */
|
|
60
|
-
export const inboundSchema = AddAuditorInput$inboundSchema;
|
|
61
|
-
/** @deprecated use `AddAuditorInput$outboundSchema` instead. */
|
|
62
|
-
export const outboundSchema = AddAuditorInput$outboundSchema;
|
|
63
|
-
/** @deprecated use `AddAuditorInput$Outbound` instead. */
|
|
64
|
-
export type Outbound = AddAuditorInput$Outbound;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
53
|
export function addAuditorInputToJSON(
|
|
68
54
|
addAuditorInput: AddAuditorInput,
|
|
69
55
|
): string {
|
|
70
56
|
return JSON.stringify(AddAuditorInput$outboundSchema.parse(addAuditorInput));
|
|
71
57
|
}
|
|
72
|
-
|
|
73
58
|
export function addAuditorInputFromJSON(
|
|
74
59
|
jsonString: string,
|
|
75
60
|
): SafeParseResult<AddAuditorInput, 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";
|
|
@@ -34,7 +34,6 @@ export const AddCommentInput$inboundSchema: z.ZodType<
|
|
|
34
34
|
new Date(v)
|
|
35
35
|
),
|
|
36
36
|
});
|
|
37
|
-
|
|
38
37
|
/** @internal */
|
|
39
38
|
export type AddCommentInput$Outbound = {
|
|
40
39
|
text: string;
|
|
@@ -53,25 +52,11 @@ export const AddCommentInput$outboundSchema: z.ZodType<
|
|
|
53
52
|
creationDate: z.date().transform(v => v.toISOString()),
|
|
54
53
|
});
|
|
55
54
|
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
-
*/
|
|
60
|
-
export namespace AddCommentInput$ {
|
|
61
|
-
/** @deprecated use `AddCommentInput$inboundSchema` instead. */
|
|
62
|
-
export const inboundSchema = AddCommentInput$inboundSchema;
|
|
63
|
-
/** @deprecated use `AddCommentInput$outboundSchema` instead. */
|
|
64
|
-
export const outboundSchema = AddCommentInput$outboundSchema;
|
|
65
|
-
/** @deprecated use `AddCommentInput$Outbound` instead. */
|
|
66
|
-
export type Outbound = AddCommentInput$Outbound;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
55
|
export function addCommentInputToJSON(
|
|
70
56
|
addCommentInput: AddCommentInput,
|
|
71
57
|
): string {
|
|
72
58
|
return JSON.stringify(AddCommentInput$outboundSchema.parse(addCommentInput));
|
|
73
59
|
}
|
|
74
|
-
|
|
75
60
|
export function addCommentInputFromJSON(
|
|
76
61
|
jsonString: string,
|
|
77
62
|
): SafeParseResult<AddCommentInput, 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";
|
|
@@ -105,7 +105,6 @@ export const Audit$inboundSchema: z.ZodType<Audit, z.ZodTypeDef, unknown> = z
|
|
|
105
105
|
),
|
|
106
106
|
auditFocus: AuditFocus$inboundSchema,
|
|
107
107
|
});
|
|
108
|
-
|
|
109
108
|
/** @internal */
|
|
110
109
|
export type Audit$Outbound = {
|
|
111
110
|
id: string;
|
|
@@ -148,23 +147,9 @@ export const Audit$outboundSchema: z.ZodType<
|
|
|
148
147
|
auditFocus: AuditFocus$outboundSchema,
|
|
149
148
|
});
|
|
150
149
|
|
|
151
|
-
/**
|
|
152
|
-
* @internal
|
|
153
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
154
|
-
*/
|
|
155
|
-
export namespace Audit$ {
|
|
156
|
-
/** @deprecated use `Audit$inboundSchema` instead. */
|
|
157
|
-
export const inboundSchema = Audit$inboundSchema;
|
|
158
|
-
/** @deprecated use `Audit$outboundSchema` instead. */
|
|
159
|
-
export const outboundSchema = Audit$outboundSchema;
|
|
160
|
-
/** @deprecated use `Audit$Outbound` instead. */
|
|
161
|
-
export type Outbound = Audit$Outbound;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
150
|
export function auditToJSON(audit: Audit): string {
|
|
165
151
|
return JSON.stringify(Audit$outboundSchema.parse(audit));
|
|
166
152
|
}
|
|
167
|
-
|
|
168
153
|
export function auditFromJSON(
|
|
169
154
|
jsonString: string,
|
|
170
155
|
): SafeParseResult<Audit, 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 AuditEvidenceState = {
|
|
@@ -19,19 +19,7 @@ export type AuditEvidenceState = ClosedEnum<typeof AuditEvidenceState>;
|
|
|
19
19
|
export const AuditEvidenceState$inboundSchema: z.ZodNativeEnum<
|
|
20
20
|
typeof AuditEvidenceState
|
|
21
21
|
> = z.nativeEnum(AuditEvidenceState);
|
|
22
|
-
|
|
23
22
|
/** @internal */
|
|
24
23
|
export const AuditEvidenceState$outboundSchema: z.ZodNativeEnum<
|
|
25
24
|
typeof AuditEvidenceState
|
|
26
25
|
> = AuditEvidenceState$inboundSchema;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @internal
|
|
30
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
31
|
-
*/
|
|
32
|
-
export namespace AuditEvidenceState$ {
|
|
33
|
-
/** @deprecated use `AuditEvidenceState$inboundSchema` instead. */
|
|
34
|
-
export const inboundSchema = AuditEvidenceState$inboundSchema;
|
|
35
|
-
/** @deprecated use `AuditEvidenceState$outboundSchema` instead. */
|
|
36
|
-
export const outboundSchema = AuditEvidenceState$outboundSchema;
|
|
37
|
-
}
|
|
@@ -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 AuditEvidenceType = {
|
|
@@ -16,19 +16,7 @@ export type AuditEvidenceType = ClosedEnum<typeof AuditEvidenceType>;
|
|
|
16
16
|
export const AuditEvidenceType$inboundSchema: z.ZodNativeEnum<
|
|
17
17
|
typeof AuditEvidenceType
|
|
18
18
|
> = z.nativeEnum(AuditEvidenceType);
|
|
19
|
-
|
|
20
19
|
/** @internal */
|
|
21
20
|
export const AuditEvidenceType$outboundSchema: z.ZodNativeEnum<
|
|
22
21
|
typeof AuditEvidenceType
|
|
23
22
|
> = AuditEvidenceType$inboundSchema;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
28
|
-
*/
|
|
29
|
-
export namespace AuditEvidenceType$ {
|
|
30
|
-
/** @deprecated use `AuditEvidenceType$inboundSchema` instead. */
|
|
31
|
-
export const inboundSchema = AuditEvidenceType$inboundSchema;
|
|
32
|
-
/** @deprecated use `AuditEvidenceType$outboundSchema` instead. */
|
|
33
|
-
export const outboundSchema = AuditEvidenceType$outboundSchema;
|
|
34
|
-
}
|
|
@@ -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";
|
|
@@ -33,7 +33,6 @@ export const StatusUpdate$inboundSchema: z.ZodType<
|
|
|
33
33
|
auditorEmail: z.string(),
|
|
34
34
|
stateTransition: AuditorEnabledStateTransition$inboundSchema,
|
|
35
35
|
});
|
|
36
|
-
|
|
37
36
|
/** @internal */
|
|
38
37
|
export type StatusUpdate$Outbound = {
|
|
39
38
|
auditorEmail: string;
|
|
@@ -50,23 +49,9 @@ export const StatusUpdate$outboundSchema: z.ZodType<
|
|
|
50
49
|
stateTransition: AuditorEnabledStateTransition$outboundSchema,
|
|
51
50
|
});
|
|
52
51
|
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
-
*/
|
|
57
|
-
export namespace StatusUpdate$ {
|
|
58
|
-
/** @deprecated use `StatusUpdate$inboundSchema` instead. */
|
|
59
|
-
export const inboundSchema = StatusUpdate$inboundSchema;
|
|
60
|
-
/** @deprecated use `StatusUpdate$outboundSchema` instead. */
|
|
61
|
-
export const outboundSchema = StatusUpdate$outboundSchema;
|
|
62
|
-
/** @deprecated use `StatusUpdate$Outbound` instead. */
|
|
63
|
-
export type Outbound = StatusUpdate$Outbound;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
52
|
export function statusUpdateToJSON(statusUpdate: StatusUpdate): string {
|
|
67
53
|
return JSON.stringify(StatusUpdate$outboundSchema.parse(statusUpdate));
|
|
68
54
|
}
|
|
69
|
-
|
|
70
55
|
export function statusUpdateFromJSON(
|
|
71
56
|
jsonString: string,
|
|
72
57
|
): SafeParseResult<StatusUpdate, SDKValidationError> {
|
|
@@ -85,7 +70,6 @@ export const AuditEvidenceUpdateInput$inboundSchema: z.ZodType<
|
|
|
85
70
|
> = z.object({
|
|
86
71
|
statusUpdate: z.lazy(() => StatusUpdate$inboundSchema).optional(),
|
|
87
72
|
});
|
|
88
|
-
|
|
89
73
|
/** @internal */
|
|
90
74
|
export type AuditEvidenceUpdateInput$Outbound = {
|
|
91
75
|
statusUpdate?: StatusUpdate$Outbound | undefined;
|
|
@@ -100,19 +84,6 @@ export const AuditEvidenceUpdateInput$outboundSchema: z.ZodType<
|
|
|
100
84
|
statusUpdate: z.lazy(() => StatusUpdate$outboundSchema).optional(),
|
|
101
85
|
});
|
|
102
86
|
|
|
103
|
-
/**
|
|
104
|
-
* @internal
|
|
105
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
106
|
-
*/
|
|
107
|
-
export namespace AuditEvidenceUpdateInput$ {
|
|
108
|
-
/** @deprecated use `AuditEvidenceUpdateInput$inboundSchema` instead. */
|
|
109
|
-
export const inboundSchema = AuditEvidenceUpdateInput$inboundSchema;
|
|
110
|
-
/** @deprecated use `AuditEvidenceUpdateInput$outboundSchema` instead. */
|
|
111
|
-
export const outboundSchema = AuditEvidenceUpdateInput$outboundSchema;
|
|
112
|
-
/** @deprecated use `AuditEvidenceUpdateInput$Outbound` instead. */
|
|
113
|
-
export type Outbound = AuditEvidenceUpdateInput$Outbound;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
87
|
export function auditEvidenceUpdateInputToJSON(
|
|
117
88
|
auditEvidenceUpdateInput: AuditEvidenceUpdateInput,
|
|
118
89
|
): string {
|
|
@@ -120,7 +91,6 @@ export function auditEvidenceUpdateInputToJSON(
|
|
|
120
91
|
AuditEvidenceUpdateInput$outboundSchema.parse(auditEvidenceUpdateInput),
|
|
121
92
|
);
|
|
122
93
|
}
|
|
123
|
-
|
|
124
94
|
export function auditEvidenceUpdateInputFromJSON(
|
|
125
95
|
jsonString: string,
|
|
126
96
|
): SafeParseResult<AuditEvidenceUpdateInput, 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 AuditFocus = {
|
|
@@ -14,18 +14,6 @@ export type AuditFocus = ClosedEnum<typeof AuditFocus>;
|
|
|
14
14
|
/** @internal */
|
|
15
15
|
export const AuditFocus$inboundSchema: z.ZodNativeEnum<typeof AuditFocus> = z
|
|
16
16
|
.nativeEnum(AuditFocus);
|
|
17
|
-
|
|
18
17
|
/** @internal */
|
|
19
18
|
export const AuditFocus$outboundSchema: z.ZodNativeEnum<typeof AuditFocus> =
|
|
20
19
|
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";
|
|
@@ -36,7 +36,6 @@ export const Auditor$inboundSchema: z.ZodType<Auditor, z.ZodTypeDef, unknown> =
|
|
|
36
36
|
givenName: z.string(),
|
|
37
37
|
familyName: z.string(),
|
|
38
38
|
});
|
|
39
|
-
|
|
40
39
|
/** @internal */
|
|
41
40
|
export type Auditor$Outbound = {
|
|
42
41
|
id: string;
|
|
@@ -59,23 +58,9 @@ export const Auditor$outboundSchema: z.ZodType<
|
|
|
59
58
|
familyName: z.string(),
|
|
60
59
|
});
|
|
61
60
|
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
-
*/
|
|
66
|
-
export namespace Auditor$ {
|
|
67
|
-
/** @deprecated use `Auditor$inboundSchema` instead. */
|
|
68
|
-
export const inboundSchema = Auditor$inboundSchema;
|
|
69
|
-
/** @deprecated use `Auditor$outboundSchema` instead. */
|
|
70
|
-
export const outboundSchema = Auditor$outboundSchema;
|
|
71
|
-
/** @deprecated use `Auditor$Outbound` instead. */
|
|
72
|
-
export type Outbound = Auditor$Outbound;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
61
|
export function auditorToJSON(auditor: Auditor): string {
|
|
76
62
|
return JSON.stringify(Auditor$outboundSchema.parse(auditor));
|
|
77
63
|
}
|
|
78
|
-
|
|
79
64
|
export function auditorFromJSON(
|
|
80
65
|
jsonString: string,
|
|
81
66
|
): SafeParseResult<Auditor, 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 Owner$inboundSchema: z.ZodType<Owner, z.ZodTypeDef, unknown> = z
|
|
|
93
93
|
displayName: z.string(),
|
|
94
94
|
emailAddress: z.string(),
|
|
95
95
|
});
|
|
96
|
-
|
|
97
96
|
/** @internal */
|
|
98
97
|
export type Owner$Outbound = {
|
|
99
98
|
id: string;
|
|
@@ -112,23 +111,9 @@ export const Owner$outboundSchema: z.ZodType<
|
|
|
112
111
|
emailAddress: z.string(),
|
|
113
112
|
});
|
|
114
113
|
|
|
115
|
-
/**
|
|
116
|
-
* @internal
|
|
117
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
118
|
-
*/
|
|
119
|
-
export namespace Owner$ {
|
|
120
|
-
/** @deprecated use `Owner$inboundSchema` instead. */
|
|
121
|
-
export const inboundSchema = Owner$inboundSchema;
|
|
122
|
-
/** @deprecated use `Owner$outboundSchema` instead. */
|
|
123
|
-
export const outboundSchema = Owner$outboundSchema;
|
|
124
|
-
/** @deprecated use `Owner$Outbound` instead. */
|
|
125
|
-
export type Outbound = Owner$Outbound;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
114
|
export function ownerToJSON(owner: Owner): string {
|
|
129
115
|
return JSON.stringify(Owner$outboundSchema.parse(owner));
|
|
130
116
|
}
|
|
131
|
-
|
|
132
117
|
export function ownerFromJSON(
|
|
133
118
|
jsonString: string,
|
|
134
119
|
): SafeParseResult<Owner, SDKValidationError> {
|
|
@@ -157,7 +142,6 @@ export const AuditorControl$inboundSchema: z.ZodType<
|
|
|
157
142
|
framework: z.string(),
|
|
158
143
|
sections: z.array(Section$inboundSchema),
|
|
159
144
|
});
|
|
160
|
-
|
|
161
145
|
/** @internal */
|
|
162
146
|
export type AuditorControl$Outbound = {
|
|
163
147
|
id: string;
|
|
@@ -192,23 +176,9 @@ export const AuditorControl$outboundSchema: z.ZodType<
|
|
|
192
176
|
sections: z.array(Section$outboundSchema),
|
|
193
177
|
});
|
|
194
178
|
|
|
195
|
-
/**
|
|
196
|
-
* @internal
|
|
197
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
198
|
-
*/
|
|
199
|
-
export namespace AuditorControl$ {
|
|
200
|
-
/** @deprecated use `AuditorControl$inboundSchema` instead. */
|
|
201
|
-
export const inboundSchema = AuditorControl$inboundSchema;
|
|
202
|
-
/** @deprecated use `AuditorControl$outboundSchema` instead. */
|
|
203
|
-
export const outboundSchema = AuditorControl$outboundSchema;
|
|
204
|
-
/** @deprecated use `AuditorControl$Outbound` instead. */
|
|
205
|
-
export type Outbound = AuditorControl$Outbound;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
179
|
export function auditorControlToJSON(auditorControl: AuditorControl): string {
|
|
209
180
|
return JSON.stringify(AuditorControl$outboundSchema.parse(auditorControl));
|
|
210
181
|
}
|
|
211
|
-
|
|
212
182
|
export function auditorControlFromJSON(
|
|
213
183
|
jsonString: string,
|
|
214
184
|
): SafeParseResult<AuditorControl, 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 AuditorEnabledStateTransition = {
|
|
@@ -20,19 +20,7 @@ export type AuditorEnabledStateTransition = ClosedEnum<
|
|
|
20
20
|
export const AuditorEnabledStateTransition$inboundSchema: z.ZodNativeEnum<
|
|
21
21
|
typeof AuditorEnabledStateTransition
|
|
22
22
|
> = z.nativeEnum(AuditorEnabledStateTransition);
|
|
23
|
-
|
|
24
23
|
/** @internal */
|
|
25
24
|
export const AuditorEnabledStateTransition$outboundSchema: z.ZodNativeEnum<
|
|
26
25
|
typeof AuditorEnabledStateTransition
|
|
27
26
|
> = AuditorEnabledStateTransition$inboundSchema;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @internal
|
|
31
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
-
*/
|
|
33
|
-
export namespace AuditorEnabledStateTransition$ {
|
|
34
|
-
/** @deprecated use `AuditorEnabledStateTransition$inboundSchema` instead. */
|
|
35
|
-
export const inboundSchema = AuditorEnabledStateTransition$inboundSchema;
|
|
36
|
-
/** @deprecated use `AuditorEnabledStateTransition$outboundSchema` instead. */
|
|
37
|
-
export const outboundSchema = AuditorEnabledStateTransition$outboundSchema;
|
|
38
|
-
}
|
|
@@ -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";
|
|
@@ -55,7 +55,6 @@ export const Comment$inboundSchema: z.ZodType<Comment, z.ZodTypeDef, unknown> =
|
|
|
55
55
|
),
|
|
56
56
|
email: z.nullable(z.string()),
|
|
57
57
|
});
|
|
58
|
-
|
|
59
58
|
/** @internal */
|
|
60
59
|
export type Comment$Outbound = {
|
|
61
60
|
id: string;
|
|
@@ -82,23 +81,9 @@ export const Comment$outboundSchema: z.ZodType<
|
|
|
82
81
|
email: z.nullable(z.string()),
|
|
83
82
|
});
|
|
84
83
|
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
-
*/
|
|
89
|
-
export namespace Comment$ {
|
|
90
|
-
/** @deprecated use `Comment$inboundSchema` instead. */
|
|
91
|
-
export const inboundSchema = Comment$inboundSchema;
|
|
92
|
-
/** @deprecated use `Comment$outboundSchema` instead. */
|
|
93
|
-
export const outboundSchema = Comment$outboundSchema;
|
|
94
|
-
/** @deprecated use `Comment$Outbound` instead. */
|
|
95
|
-
export type Outbound = Comment$Outbound;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
84
|
export function commentToJSON(comment: Comment): string {
|
|
99
85
|
return JSON.stringify(Comment$outboundSchema.parse(comment));
|
|
100
86
|
}
|
|
101
|
-
|
|
102
87
|
export function commentFromJSON(
|
|
103
88
|
jsonString: string,
|
|
104
89
|
): SafeParseResult<Comment, 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";
|
|
@@ -82,7 +82,6 @@ export const ControlOwner$inboundSchema: z.ZodType<
|
|
|
82
82
|
displayName: z.string(),
|
|
83
83
|
emailAddress: z.string(),
|
|
84
84
|
});
|
|
85
|
-
|
|
86
85
|
/** @internal */
|
|
87
86
|
export type ControlOwner$Outbound = {
|
|
88
87
|
id: string;
|
|
@@ -101,23 +100,9 @@ export const ControlOwner$outboundSchema: z.ZodType<
|
|
|
101
100
|
emailAddress: z.string(),
|
|
102
101
|
});
|
|
103
102
|
|
|
104
|
-
/**
|
|
105
|
-
* @internal
|
|
106
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
107
|
-
*/
|
|
108
|
-
export namespace ControlOwner$ {
|
|
109
|
-
/** @deprecated use `ControlOwner$inboundSchema` instead. */
|
|
110
|
-
export const inboundSchema = ControlOwner$inboundSchema;
|
|
111
|
-
/** @deprecated use `ControlOwner$outboundSchema` instead. */
|
|
112
|
-
export const outboundSchema = ControlOwner$outboundSchema;
|
|
113
|
-
/** @deprecated use `ControlOwner$Outbound` instead. */
|
|
114
|
-
export type Outbound = ControlOwner$Outbound;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
103
|
export function controlOwnerToJSON(controlOwner: ControlOwner): string {
|
|
118
104
|
return JSON.stringify(ControlOwner$outboundSchema.parse(controlOwner));
|
|
119
105
|
}
|
|
120
|
-
|
|
121
106
|
export function controlOwnerFromJSON(
|
|
122
107
|
jsonString: string,
|
|
123
108
|
): SafeParseResult<ControlOwner, SDKValidationError> {
|
|
@@ -141,7 +126,6 @@ export const Control$inboundSchema: z.ZodType<Control, z.ZodTypeDef, unknown> =
|
|
|
141
126
|
role: z.nullable(z.string()).optional(),
|
|
142
127
|
customFields: z.array(CustomField$inboundSchema),
|
|
143
128
|
});
|
|
144
|
-
|
|
145
129
|
/** @internal */
|
|
146
130
|
export type Control$Outbound = {
|
|
147
131
|
id: string;
|
|
@@ -172,23 +156,9 @@ export const Control$outboundSchema: z.ZodType<
|
|
|
172
156
|
customFields: z.array(CustomField$outboundSchema),
|
|
173
157
|
});
|
|
174
158
|
|
|
175
|
-
/**
|
|
176
|
-
* @internal
|
|
177
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
178
|
-
*/
|
|
179
|
-
export namespace Control$ {
|
|
180
|
-
/** @deprecated use `Control$inboundSchema` instead. */
|
|
181
|
-
export const inboundSchema = Control$inboundSchema;
|
|
182
|
-
/** @deprecated use `Control$outboundSchema` instead. */
|
|
183
|
-
export const outboundSchema = Control$outboundSchema;
|
|
184
|
-
/** @deprecated use `Control$Outbound` instead. */
|
|
185
|
-
export type Outbound = Control$Outbound;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
159
|
export function controlToJSON(control: Control): string {
|
|
189
160
|
return JSON.stringify(Control$outboundSchema.parse(control));
|
|
190
161
|
}
|
|
191
|
-
|
|
192
162
|
export function controlFromJSON(
|
|
193
163
|
jsonString: string,
|
|
194
164
|
): SafeParseResult<Control, 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 ControlDomain = {
|
|
@@ -52,19 +52,7 @@ export type ControlDomain = ClosedEnum<typeof ControlDomain>;
|
|
|
52
52
|
export const ControlDomain$inboundSchema: z.ZodNativeEnum<
|
|
53
53
|
typeof ControlDomain
|
|
54
54
|
> = z.nativeEnum(ControlDomain);
|
|
55
|
-
|
|
56
55
|
/** @internal */
|
|
57
56
|
export const ControlDomain$outboundSchema: z.ZodNativeEnum<
|
|
58
57
|
typeof ControlDomain
|
|
59
58
|
> = ControlDomain$inboundSchema;
|
|
60
|
-
|
|
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 ControlDomain$ {
|
|
66
|
-
/** @deprecated use `ControlDomain$inboundSchema` instead. */
|
|
67
|
-
export const inboundSchema = ControlDomain$inboundSchema;
|
|
68
|
-
/** @deprecated use `ControlDomain$outboundSchema` instead. */
|
|
69
|
-
export const outboundSchema = ControlDomain$outboundSchema;
|
|
70
|
-
}
|