@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>
79 lines • 2.89 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
/**
* An object describing the reason why the team is being deleted.
*/
export type DeleteTeamReasons = {
/**
* Idenitifier slug of the reason why the team is being deleted.
*/
slug: string;
/**
* Description of the reason why the team is being deleted.
*/
description: string;
};
export type DeleteTeamRequestBody = {
/**
* Optional array of objects that describe the reason why the team is being deleted.
*/
reasons?: Array<DeleteTeamReasons> | undefined;
};
export type DeleteTeamRequest = {
/**
* Id of the team to be set as the new default team
*/
newDefaultTeamId?: string | undefined;
/**
* The Team identifier to perform the request on behalf of.
*/
teamId: string;
/**
* The Team slug to perform the request on behalf of.
*/
slug?: string | undefined;
requestBody: DeleteTeamRequestBody;
};
/**
* The Team was successfully deleted
*/
export type DeleteTeamResponseBody = {
/**
* The ID of the deleted Team
*/
id: string;
/**
* Signifies whether the default team update has failed, when newDefaultTeamId is provided in request query.
*/
newDefaultTeamIdError?: boolean | undefined;
};
/** @internal */
export type DeleteTeamReasons$Outbound = {
slug: string;
description: string;
};
/** @internal */
export declare const DeleteTeamReasons$outboundSchema: z.ZodType<DeleteTeamReasons$Outbound, z.ZodTypeDef, DeleteTeamReasons>;
export declare function deleteTeamReasonsToJSON(deleteTeamReasons: DeleteTeamReasons): string;
/** @internal */
export type DeleteTeamRequestBody$Outbound = {
reasons?: Array<DeleteTeamReasons$Outbound> | undefined;
};
/** @internal */
export declare const DeleteTeamRequestBody$outboundSchema: z.ZodType<DeleteTeamRequestBody$Outbound, z.ZodTypeDef, DeleteTeamRequestBody>;
export declare function deleteTeamRequestBodyToJSON(deleteTeamRequestBody: DeleteTeamRequestBody): string;
/** @internal */
export type DeleteTeamRequest$Outbound = {
newDefaultTeamId?: string | undefined;
teamId: string;
slug?: string | undefined;
RequestBody: DeleteTeamRequestBody$Outbound;
};
/** @internal */
export declare const DeleteTeamRequest$outboundSchema: z.ZodType<DeleteTeamRequest$Outbound, z.ZodTypeDef, DeleteTeamRequest>;
export declare function deleteTeamRequestToJSON(deleteTeamRequest: DeleteTeamRequest): string;
/** @internal */
export declare const DeleteTeamResponseBody$inboundSchema: z.ZodType<DeleteTeamResponseBody, z.ZodTypeDef, unknown>;
export declare function deleteTeamResponseBodyFromJSON(jsonString: string): SafeParseResult<DeleteTeamResponseBody, SDKValidationError>;
//# sourceMappingURL=deleteteamop.d.ts.map