@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>
89 lines • 3.67 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
export type GetEdgeConfigsRequest = {
/**
* 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 Purpose2 = {
type: "experimentation";
resourceId: string;
};
export type Purpose1 = {
type: "flags";
projectId: string;
};
export type Purpose = Purpose1 | Purpose2;
/**
* Keeps track of the current state of the Global Config while it gets transferred.
*/
export type Transfer = {
fromAccountId: string;
startedAt: number;
doneAt: number | null;
};
export type Schema = {};
/**
* List of all global configs.
*/
export type GetEdgeConfigsResponseBody = {
id: string;
createdAt: number;
/**
* The ID of the user who created the Global Config, optional because it is not always set.
*/
createdBy?: string | undefined;
ownerId: string;
/**
* Name for the Global Config Names are not unique. Must start with an alphabetic character and can contain only alphanumeric characters and underscores).
*/
slug: string;
updatedAt: number;
digest: string;
purpose?: Purpose1 | Purpose2 | undefined;
deletedAt?: number | null | undefined;
/**
* Keeps track of the current state of the Global Config while it gets transferred.
*/
transfer?: Transfer | undefined;
schema?: Schema | undefined;
/**
* Timestamp of when the Global Config was synced to DynamoDB initially. It is only set when syncing the entire Global Config, not when updating.
*/
syncedToDynamoAt?: number | undefined;
sizeInBytes: number;
itemCount: number;
};
/** @internal */
export type GetEdgeConfigsRequest$Outbound = {
teamId?: string | undefined;
slug?: string | undefined;
};
/** @internal */
export declare const GetEdgeConfigsRequest$outboundSchema: z.ZodType<GetEdgeConfigsRequest$Outbound, z.ZodTypeDef, GetEdgeConfigsRequest>;
export declare function getEdgeConfigsRequestToJSON(getEdgeConfigsRequest: GetEdgeConfigsRequest): string;
/** @internal */
export declare const Purpose2$inboundSchema: z.ZodType<Purpose2, z.ZodTypeDef, unknown>;
export declare function purpose2FromJSON(jsonString: string): SafeParseResult<Purpose2, SDKValidationError>;
/** @internal */
export declare const Purpose1$inboundSchema: z.ZodType<Purpose1, z.ZodTypeDef, unknown>;
export declare function purpose1FromJSON(jsonString: string): SafeParseResult<Purpose1, SDKValidationError>;
/** @internal */
export declare const Purpose$inboundSchema: z.ZodType<Purpose, z.ZodTypeDef, unknown>;
export declare function purposeFromJSON(jsonString: string): SafeParseResult<Purpose, SDKValidationError>;
/** @internal */
export declare const Transfer$inboundSchema: z.ZodType<Transfer, z.ZodTypeDef, unknown>;
export declare function transferFromJSON(jsonString: string): SafeParseResult<Transfer, SDKValidationError>;
/** @internal */
export declare const Schema$inboundSchema: z.ZodType<Schema, z.ZodTypeDef, unknown>;
export declare function schemaFromJSON(jsonString: string): SafeParseResult<Schema, SDKValidationError>;
/** @internal */
export declare const GetEdgeConfigsResponseBody$inboundSchema: z.ZodType<GetEdgeConfigsResponseBody, z.ZodTypeDef, unknown>;
export declare function getEdgeConfigsResponseBodyFromJSON(jsonString: string): SafeParseResult<GetEdgeConfigsResponseBody, SDKValidationError>;
//# sourceMappingURL=getedgeconfigsop.d.ts.map