@unkey/api
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.
24 lines • 1.01 kB
TypeScript
import * as z from "zod/v3";
import { UpdateKeyCreditsRefill, UpdateKeyCreditsRefill$Outbound } from "./updatekeycreditsrefill.js";
/**
* Credit configuration and remaining balance for this key.
*/
export type UpdateKeyCreditsData = {
/**
* Number of credits remaining (null for unlimited). This also clears the refilling schedule.
*/
remaining?: number | null | undefined;
/**
* Configuration for automatic credit refill behavior.
*/
refill?: UpdateKeyCreditsRefill | null | undefined;
};
/** @internal */
export type UpdateKeyCreditsData$Outbound = {
remaining?: number | null | undefined;
refill?: UpdateKeyCreditsRefill$Outbound | null | undefined;
};
/** @internal */
export declare const UpdateKeyCreditsData$outboundSchema: z.ZodType<UpdateKeyCreditsData$Outbound, z.ZodTypeDef, UpdateKeyCreditsData>;
export declare function updateKeyCreditsDataToJSON(updateKeyCreditsData: UpdateKeyCreditsData): string;
//# sourceMappingURL=updatekeycreditsdata.d.ts.map