UNPKG

@unkey/api

Version:

Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.

32 lines (27 loc) 1.25 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Empty response object. A successful response indicates the override was successfully deleted. The operation is immediate - as soon as this response is received, the override no longer exists and affected identifiers have reverted to using the default rate limit for the namespace. No other data is returned as part of the deletion operation. */ export type V2RatelimitDeleteOverrideResponseData = {}; /** @internal */ export const V2RatelimitDeleteOverrideResponseData$inboundSchema: z.ZodType< V2RatelimitDeleteOverrideResponseData, z.ZodTypeDef, unknown > = z.object({}); export function v2RatelimitDeleteOverrideResponseDataFromJSON( jsonString: string, ): SafeParseResult<V2RatelimitDeleteOverrideResponseData, SDKValidationError> { return safeParse( jsonString, (x) => V2RatelimitDeleteOverrideResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V2RatelimitDeleteOverrideResponseData' from JSON`, ); }