@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>
131 lines • 5.51 kB
TypeScript
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 GetTeamAccessRequestRequest = {
userId: string;
teamId: string;
};
export declare const GetTeamAccessRequestOrigin: {
readonly AccountUpdate: "account-update";
readonly Bitbucket: "bitbucket";
readonly Dsync: "dsync";
readonly Feedback: "feedback";
readonly Github: "github";
readonly Gitlab: "gitlab";
readonly Import: "import";
readonly Link: "link";
readonly Mail: "mail";
readonly NsnbAutoApprove: "nsnb-auto-approve";
readonly NsnbHobbyUpgrade: "nsnb-hobby-upgrade";
readonly NsnbInvite: "nsnb-invite";
readonly NsnbRedeploy: "nsnb-redeploy";
readonly NsnbRedeployAttributionCard: "nsnb-redeploy-attribution-card";
readonly NsnbRequestAccess: "nsnb-request-access";
readonly NsnbViewerUpgrade: "nsnb-viewer-upgrade";
readonly OrganizationTeams: "organization-teams";
readonly Saml: "saml";
readonly Teams: "teams";
};
export type GetTeamAccessRequestOrigin = ClosedEnum<typeof GetTeamAccessRequestOrigin>;
export type GetTeamAccessRequestGitUserId = string | number;
/**
* A map that describes the origin from where the user joined.
*/
export type GetTeamAccessRequestJoinedFrom = {
origin: GetTeamAccessRequestOrigin;
commitId?: string | undefined;
repoId?: string | undefined;
repoPath?: string | undefined;
gitUserId?: string | number | undefined;
gitUserLogin?: string | undefined;
ssoUserId?: string | undefined;
ssoConnectedAt?: number | undefined;
idpUserId?: string | undefined;
dsyncUserId?: string | undefined;
dsyncConnectedAt?: number | undefined;
};
/**
* Map of the connected GitHub account.
*/
export type GetTeamAccessRequestGithub = {
login?: string | undefined;
};
/**
* Map of the connected GitLab account.
*/
export type GetTeamAccessRequestGitlab = {
login?: string | undefined;
};
/**
* Map of the connected Bitbucket account.
*/
export type GetTeamAccessRequestBitbucket = {
login?: string | undefined;
};
/**
* Successfully
*/
export type GetTeamAccessRequestResponseBody = {
/**
* The slug of the team.
*/
teamSlug: string;
/**
* The name of the team.
*/
teamName: string;
/**
* Current status of the membership. Will be `true` if confirmed, if pending it'll be `false`.
*/
confirmed: boolean;
/**
* A map that describes the origin from where the user joined.
*/
joinedFrom: GetTeamAccessRequestJoinedFrom;
/**
* Timestamp in milliseconds when the user requested access to the team.
*/
accessRequestedAt: number;
/**
* Map of the connected GitHub account.
*/
github: GetTeamAccessRequestGithub | null;
/**
* Map of the connected GitLab account.
*/
gitlab: GetTeamAccessRequestGitlab | null;
/**
* Map of the connected Bitbucket account.
*/
bitbucket: GetTeamAccessRequestBitbucket | null;
};
/** @internal */
export type GetTeamAccessRequestRequest$Outbound = {
userId: string;
teamId: string;
};
/** @internal */
export declare const GetTeamAccessRequestRequest$outboundSchema: z.ZodType<GetTeamAccessRequestRequest$Outbound, z.ZodTypeDef, GetTeamAccessRequestRequest>;
export declare function getTeamAccessRequestRequestToJSON(getTeamAccessRequestRequest: GetTeamAccessRequestRequest): string;
/** @internal */
export declare const GetTeamAccessRequestOrigin$inboundSchema: z.ZodNativeEnum<typeof GetTeamAccessRequestOrigin>;
/** @internal */
export declare const GetTeamAccessRequestGitUserId$inboundSchema: z.ZodType<GetTeamAccessRequestGitUserId, z.ZodTypeDef, unknown>;
export declare function getTeamAccessRequestGitUserIdFromJSON(jsonString: string): SafeParseResult<GetTeamAccessRequestGitUserId, SDKValidationError>;
/** @internal */
export declare const GetTeamAccessRequestJoinedFrom$inboundSchema: z.ZodType<GetTeamAccessRequestJoinedFrom, z.ZodTypeDef, unknown>;
export declare function getTeamAccessRequestJoinedFromFromJSON(jsonString: string): SafeParseResult<GetTeamAccessRequestJoinedFrom, SDKValidationError>;
/** @internal */
export declare const GetTeamAccessRequestGithub$inboundSchema: z.ZodType<GetTeamAccessRequestGithub, z.ZodTypeDef, unknown>;
export declare function getTeamAccessRequestGithubFromJSON(jsonString: string): SafeParseResult<GetTeamAccessRequestGithub, SDKValidationError>;
/** @internal */
export declare const GetTeamAccessRequestGitlab$inboundSchema: z.ZodType<GetTeamAccessRequestGitlab, z.ZodTypeDef, unknown>;
export declare function getTeamAccessRequestGitlabFromJSON(jsonString: string): SafeParseResult<GetTeamAccessRequestGitlab, SDKValidationError>;
/** @internal */
export declare const GetTeamAccessRequestBitbucket$inboundSchema: z.ZodType<GetTeamAccessRequestBitbucket, z.ZodTypeDef, unknown>;
export declare function getTeamAccessRequestBitbucketFromJSON(jsonString: string): SafeParseResult<GetTeamAccessRequestBitbucket, SDKValidationError>;
/** @internal */
export declare const GetTeamAccessRequestResponseBody$inboundSchema: z.ZodType<GetTeamAccessRequestResponseBody, z.ZodTypeDef, unknown>;
export declare function getTeamAccessRequestResponseBodyFromJSON(jsonString: string): SafeParseResult<GetTeamAccessRequestResponseBody, SDKValidationError>;
//# sourceMappingURL=getteamaccessrequestop.d.ts.map