/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 66d317b4314a */ import * as z from "zod/v4"; import { safeParse } from "../lib/schemas.js"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export const EncryptedStackInputValueKind = { String: "string", Secret: "secret", Number: "number", Integer: "integer", Boolean: "boolean", Enum: "enum", StringList: "stringList", } as const; export type EncryptedStackInputValueKind = ClosedEnum< typeof EncryptedStackInputValueKind >; export type EncryptedStackInputValue = { /** * Encrypted JSON-encoded input value. */ value: string; kind: EncryptedStackInputValueKind; /** * Whether the original input is secret. */ secret: boolean; }; /** @internal */ export const EncryptedStackInputValueKind$inboundSchema: z.ZodEnum< typeof EncryptedStackInputValueKind > = z.enum(EncryptedStackInputValueKind); /** @internal */ export const EncryptedStackInputValue$inboundSchema: z.ZodType< EncryptedStackInputValue, unknown > = z.object({ value: z.string(), kind: EncryptedStackInputValueKind$inboundSchema, secret: z.boolean(), }); export function encryptedStackInputValueFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => EncryptedStackInputValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EncryptedStackInputValue' from JSON`, ); }