UNPKG

@vercel/sdk

Version:

<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>

62 lines 2.51 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../lib/schemas.js"; import * as types from "../types/primitives.js"; /** * The type of this cosmos doc instance, if blank, assume secret. */ export const GetSharedEnvVarType = { Encrypted: "encrypted", Plain: "plain", Sensitive: "sensitive", System: "system", }; /** * environments this env variable targets */ export const GetSharedEnvVarTarget = { Development: "development", Preview: "preview", Production: "production", }; /** @internal */ export const GetSharedEnvVarRequest$outboundSchema = z.object({ id: z.string(), teamId: z.string().optional(), slug: z.string().optional(), }); export function getSharedEnvVarRequestToJSON(getSharedEnvVarRequest) { return JSON.stringify(GetSharedEnvVarRequest$outboundSchema.parse(getSharedEnvVarRequest)); } /** @internal */ export const GetSharedEnvVarType$inboundSchema = z.nativeEnum(GetSharedEnvVarType); /** @internal */ export const GetSharedEnvVarTarget$inboundSchema = z.nativeEnum(GetSharedEnvVarTarget); /** @internal */ export const GetSharedEnvVarResponseBody$inboundSchema = z.object({ created: types.optional(types.date()), key: types.optional(types.string()), ownerId: z.nullable(types.string()).optional(), id: types.optional(types.string()), createdBy: z.nullable(types.string()).optional(), deletedBy: z.nullable(types.string()).optional(), updatedBy: z.nullable(types.string()).optional(), createdAt: types.optional(types.number()), deletedAt: types.optional(types.number()), updatedAt: types.optional(types.number()), value: types.optional(types.string()), projectId: types.optional(z.array(types.string())), type: types.optional(GetSharedEnvVarType$inboundSchema), target: types.optional(z.array(GetSharedEnvVarTarget$inboundSchema)), applyToAllCustomEnvironments: types.optional(types.boolean()), customEnvironmentIds: types.optional(z.array(types.string())), decrypted: types.optional(types.boolean()), comment: types.optional(types.string()), lastEditedByDisplayName: types.optional(types.string()), }); export function getSharedEnvVarResponseBodyFromJSON(jsonString) { return safeParse(jsonString, (x) => GetSharedEnvVarResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSharedEnvVarResponseBody' from JSON`); } //# sourceMappingURL=getsharedenvvarop.js.map