UNPKG

@unkey/api

Version:

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

24 lines 883 B
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import * as openEnums from "../../types/enums.js"; /** * How often credits are automatically refilled. */ export const UpdateKeyCreditsRefillInterval = { Daily: "daily", Monthly: "monthly", }; /** @internal */ export const UpdateKeyCreditsRefillInterval$outboundSchema = openEnums.outboundSchema(UpdateKeyCreditsRefillInterval); /** @internal */ export const UpdateKeyCreditsRefill$outboundSchema = z.object({ interval: UpdateKeyCreditsRefillInterval$outboundSchema, amount: z.number().int(), refillDay: z.number().int().optional(), }); export function updateKeyCreditsRefillToJSON(updateKeyCreditsRefill) { return JSON.stringify(UpdateKeyCreditsRefill$outboundSchema.parse(updateKeyCreditsRefill)); } //# sourceMappingURL=updatekeycreditsrefill.js.map