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>

87 lines 3.23 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 GetBypassIpRequest = { projectId: string; limit?: number | undefined; /** * Filter by source IP */ sourceIp?: string | undefined; /** * Filter by domain */ domain?: string | undefined; /** * Filter by project scoped rules */ projectScope?: boolean | undefined; /** * Used for pagination. Retrieves results after the provided id */ offset?: string | undefined; /** * 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 declare const GetBypassIpAction: { readonly Block: "block"; readonly Bypass: "bypass"; }; export type GetBypassIpAction = ClosedEnum<typeof GetBypassIpAction>; export type GetBypassIpResult = { ownerId: string; id: string; domain: string; ip: string; action?: GetBypassIpAction | undefined; projectId?: string | undefined; isProjectRule?: boolean | undefined; note?: string | undefined; createdAt: string; actorId?: string | undefined; updatedAt: string; updatedAtHour: string; deletedAt?: string | undefined; expiresAt?: number | null | undefined; }; export type GetBypassIpPagination = { ownerId: string; id: string; }; export type GetBypassIpResponseBody = { result: Array<GetBypassIpResult>; pagination?: GetBypassIpPagination | undefined; }; /** @internal */ export type GetBypassIpRequest$Outbound = { projectId: string; limit?: number | undefined; sourceIp?: string | undefined; domain?: string | undefined; projectScope?: boolean | undefined; offset?: string | undefined; teamId?: string | undefined; slug?: string | undefined; }; /** @internal */ export declare const GetBypassIpRequest$outboundSchema: z.ZodType<GetBypassIpRequest$Outbound, z.ZodTypeDef, GetBypassIpRequest>; export declare function getBypassIpRequestToJSON(getBypassIpRequest: GetBypassIpRequest): string; /** @internal */ export declare const GetBypassIpAction$inboundSchema: z.ZodNativeEnum<typeof GetBypassIpAction>; /** @internal */ export declare const GetBypassIpResult$inboundSchema: z.ZodType<GetBypassIpResult, z.ZodTypeDef, unknown>; export declare function getBypassIpResultFromJSON(jsonString: string): SafeParseResult<GetBypassIpResult, SDKValidationError>; /** @internal */ export declare const GetBypassIpPagination$inboundSchema: z.ZodType<GetBypassIpPagination, z.ZodTypeDef, unknown>; export declare function getBypassIpPaginationFromJSON(jsonString: string): SafeParseResult<GetBypassIpPagination, SDKValidationError>; /** @internal */ export declare const GetBypassIpResponseBody$inboundSchema: z.ZodType<GetBypassIpResponseBody, z.ZodTypeDef, unknown>; export declare function getBypassIpResponseBodyFromJSON(jsonString: string): SafeParseResult<GetBypassIpResponseBody, SDKValidationError>; //# sourceMappingURL=getbypassipop.d.ts.map