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>

51 lines 2.5 kB
import * as z from "zod/v3"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type GetDeploymentFeatureFlagsRequest = { deploymentId: string; /** * The Team identifier to perform the request on behalf of. */ teamId?: string | undefined; /** * The Team slug to perform the request on behalf of. */ slug?: string | undefined; }; export type GetDeploymentFeatureFlagsFlags = {}; export type GetDeploymentFeatureFlagsStatus = { deploymentId: string; projectId: string; /** * The HTTP status code from the flags discovery endpoint. */ responseStatus: number; /** * The number of flag definitions returned by the flags discovery endpoint. */ flagCount: number; createdAt: number; }; export type GetDeploymentFeatureFlagsResponseBody = { flags: Array<GetDeploymentFeatureFlagsFlags>; status: GetDeploymentFeatureFlagsStatus | null; }; /** @internal */ export type GetDeploymentFeatureFlagsRequest$Outbound = { deploymentId: string; teamId?: string | undefined; slug?: string | undefined; }; /** @internal */ export declare const GetDeploymentFeatureFlagsRequest$outboundSchema: z.ZodType<GetDeploymentFeatureFlagsRequest$Outbound, z.ZodTypeDef, GetDeploymentFeatureFlagsRequest>; export declare function getDeploymentFeatureFlagsRequestToJSON(getDeploymentFeatureFlagsRequest: GetDeploymentFeatureFlagsRequest): string; /** @internal */ export declare const GetDeploymentFeatureFlagsFlags$inboundSchema: z.ZodType<GetDeploymentFeatureFlagsFlags, z.ZodTypeDef, unknown>; export declare function getDeploymentFeatureFlagsFlagsFromJSON(jsonString: string): SafeParseResult<GetDeploymentFeatureFlagsFlags, SDKValidationError>; /** @internal */ export declare const GetDeploymentFeatureFlagsStatus$inboundSchema: z.ZodType<GetDeploymentFeatureFlagsStatus, z.ZodTypeDef, unknown>; export declare function getDeploymentFeatureFlagsStatusFromJSON(jsonString: string): SafeParseResult<GetDeploymentFeatureFlagsStatus, SDKValidationError>; /** @internal */ export declare const GetDeploymentFeatureFlagsResponseBody$inboundSchema: z.ZodType<GetDeploymentFeatureFlagsResponseBody, z.ZodTypeDef, unknown>; export declare function getDeploymentFeatureFlagsResponseBodyFromJSON(jsonString: string): SafeParseResult<GetDeploymentFeatureFlagsResponseBody, SDKValidationError>; //# sourceMappingURL=getdeploymentfeatureflagsop.d.ts.map