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>

76 lines 2.49 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 role used for the invitation */ export const Role = { Billing: "BILLING", Contributor: "CONTRIBUTOR", Developer: "DEVELOPER", Member: "MEMBER", Owner: "OWNER", Security: "SECURITY", Viewer: "VIEWER", ViewerForPlus: "VIEWER_FOR_PLUS", }; /** * The team roles of the user */ export const TeamRoles = { Billing: "BILLING", Contributor: "CONTRIBUTOR", Developer: "DEVELOPER", Member: "MEMBER", Owner: "OWNER", Security: "SECURITY", Viewer: "VIEWER", ViewerForPlus: "VIEWER_FOR_PLUS", }; /** * The team permissions of the user */ export const TeamPermissions = { AiGatewayApiKeyOwnedBySelf: "AiGatewayApiKeyOwnedBySelf", AiGatewayBudgetManager: "AiGatewayBudgetManager", AiGatewayCredits: "AiGatewayCredits", AiGatewaySettings: "AiGatewaySettings", AiGatewayTranscriptsManager: "AiGatewayTranscriptsManager", AiGatewayTranscriptsViewer: "AiGatewayTranscriptsViewer", ConnectorManager: "ConnectorManager", CreateProject: "CreateProject", EnvVariableManager: "EnvVariableManager", EnvironmentManager: "EnvironmentManager", FullProductionDeployment: "FullProductionDeployment", IntegrationManager: "IntegrationManager", OrgAdmin: "OrgAdmin", OrgViewer: "OrgViewer", UsageViewer: "UsageViewer", V0Builder: "V0Builder", V0Chatter: "V0Chatter", V0Viewer: "V0Viewer", WorkflowDecryptor: "WorkflowDecryptor", }; /** @internal */ export const Role$inboundSchema = z.nativeEnum(Role); /** @internal */ export const TeamRoles$inboundSchema = z .nativeEnum(TeamRoles); /** @internal */ export const TeamPermissions$inboundSchema = z.nativeEnum(TeamPermissions); /** @internal */ export const InvitedTeamMember$inboundSchema = z.object({ uid: types.string(), username: types.string(), email: types.string(), role: Role$inboundSchema, teamRoles: types.optional(z.array(TeamRoles$inboundSchema)), teamPermissions: types.optional(z.array(TeamPermissions$inboundSchema)), }); export function invitedTeamMemberFromJSON(jsonString) { return safeParse(jsonString, (x) => InvitedTeamMember$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvitedTeamMember' from JSON`); } //# sourceMappingURL=invitedteammember.js.map