/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { KeyPurpose, KeyPurpose$outboundSchema } from "./key-purpose.js"; export type KeyCreateRequest = { /** * Non-negative integer amount in USDC atomic units. */ budgetLimit: string; expiresAt: number; purpose: KeyPurpose; network: string; name?: string | undefined; }; /** @internal */ export type KeyCreateRequest$Outbound = { budgetLimit: string; expiresAt: number; purpose: string; network: string; name?: string | undefined; }; /** @internal */ export const KeyCreateRequest$outboundSchema: z.ZodMiniType< KeyCreateRequest$Outbound, KeyCreateRequest > = z.object({ budgetLimit: z.string(), expiresAt: z.int(), purpose: KeyPurpose$outboundSchema, network: z.string(), name: z.optional(z.string()), }); export function keyCreateRequestToJSON( keyCreateRequest: KeyCreateRequest, ): string { return JSON.stringify( KeyCreateRequest$outboundSchema.parse(keyCreateRequest), ); }