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>

42 lines 2.14 kB
import * as z from "zod/v3"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type GetMemberRequest = { integrationConfigurationId: string; memberId: string; }; /** * "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 declare const GetMemberRole: { readonly Admin: "ADMIN"; readonly User: "USER"; }; /** * "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 type GetMemberRole = ClosedEnum<typeof GetMemberRole>; export type GetMemberResponseBody = { id: string; /** * "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." */ role: GetMemberRole; globalUserId?: string | undefined; userEmail?: string | undefined; }; /** @internal */ export type GetMemberRequest$Outbound = { integrationConfigurationId: string; memberId: string; }; /** @internal */ export declare const GetMemberRequest$outboundSchema: z.ZodType<GetMemberRequest$Outbound, z.ZodTypeDef, GetMemberRequest>; export declare function getMemberRequestToJSON(getMemberRequest: GetMemberRequest): string; /** @internal */ export declare const GetMemberRole$inboundSchema: z.ZodNativeEnum<typeof GetMemberRole>; /** @internal */ export declare const GetMemberResponseBody$inboundSchema: z.ZodType<GetMemberResponseBody, z.ZodTypeDef, unknown>; export declare function getMemberResponseBodyFromJSON(jsonString: string): SafeParseResult<GetMemberResponseBody, SDKValidationError>; //# sourceMappingURL=getmemberop.d.ts.map