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>

34 lines 1.4 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 `ADMIN` role, by default, is provided to users capable of installing integrations, while the `USER` role can be granted to Vercel users with the Vercel `Billing` or Vercel `Viewer` role, which are considered to be Read-Only roles." */ export const GetMemberRole = { Admin: "ADMIN", User: "USER", }; /** @internal */ export const GetMemberRequest$outboundSchema = z.object({ integrationConfigurationId: z.string(), memberId: z.string(), }); export function getMemberRequestToJSON(getMemberRequest) { return JSON.stringify(GetMemberRequest$outboundSchema.parse(getMemberRequest)); } /** @internal */ export const GetMemberRole$inboundSchema = z.nativeEnum(GetMemberRole); /** @internal */ export const GetMemberResponseBody$inboundSchema = z.object({ id: types.string(), role: GetMemberRole$inboundSchema, globalUserId: types.optional(types.string()), userEmail: types.optional(types.string()), }); export function getMemberResponseBodyFromJSON(jsonString) { return safeParse(jsonString, (x) => GetMemberResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetMemberResponseBody' from JSON`); } //# sourceMappingURL=getmemberop.js.map