@unkey/api
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.
46 lines • 1.6 kB
TypeScript
import * as z from "zod/v3";
import { OpenEnum } from "../../types/enums.js";
/**
* How often credits are automatically refilled.
*/
export declare const UpdateKeyCreditsRefillInterval: {
readonly Daily: "daily";
readonly Monthly: "monthly";
};
/**
* How often credits are automatically refilled.
*/
export type UpdateKeyCreditsRefillInterval = OpenEnum<typeof UpdateKeyCreditsRefillInterval>;
/**
* Configuration for automatic credit refill behavior.
*/
export type UpdateKeyCreditsRefill = {
/**
* How often credits are automatically refilled.
*/
interval: UpdateKeyCreditsRefillInterval;
/**
* Number of credits to add during each refill cycle.
*/
amount: number;
/**
* Day of the month for monthly refills (1-31).
*
* @remarks
* Only required when interval is 'monthly'.
* For days beyond the month's length, refill occurs on the last day of the month.
*/
refillDay?: number | undefined;
};
/** @internal */
export declare const UpdateKeyCreditsRefillInterval$outboundSchema: z.ZodType<string, z.ZodTypeDef, UpdateKeyCreditsRefillInterval>;
/** @internal */
export type UpdateKeyCreditsRefill$Outbound = {
interval: string;
amount: number;
refillDay?: number | undefined;
};
/** @internal */
export declare const UpdateKeyCreditsRefill$outboundSchema: z.ZodType<UpdateKeyCreditsRefill$Outbound, z.ZodTypeDef, UpdateKeyCreditsRefill>;
export declare function updateKeyCreditsRefillToJSON(updateKeyCreditsRefill: UpdateKeyCreditsRefill): string;
//# sourceMappingURL=updatekeycreditsrefill.d.ts.map