UNPKG

@coinbase/agentkit

Version:

Coinbase AgentKit core primitives

78 lines (77 loc) 2.69 kB
import { z } from "zod"; export declare const HttpRequestSchema: z.ZodObject<{ url: z.ZodString; method: z.ZodDefault<z.ZodNullable<z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>>>; headers: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>; body: z.ZodNullable<z.ZodOptional<z.ZodAny>>; }, "strip", z.ZodTypeAny, { method: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | null; url: string; body?: any; headers?: Record<string, string> | null | undefined; }, { url: string; method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | null | undefined; body?: any; headers?: Record<string, string> | null | undefined; }>; export declare const RetryWithX402Schema: z.ZodObject<{ url: z.ZodString; method: z.ZodDefault<z.ZodNullable<z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>>>; headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; body: z.ZodOptional<z.ZodAny>; selectedPaymentOption: z.ZodObject<{ scheme: z.ZodString; network: z.ZodString; maxAmountRequired: z.ZodString; asset: z.ZodString; }, "strip", z.ZodTypeAny, { scheme: string; network: string; asset: string; maxAmountRequired: string; }, { scheme: string; network: string; asset: string; maxAmountRequired: string; }>; }, "strip", z.ZodTypeAny, { method: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | null; url: string; selectedPaymentOption: { scheme: string; network: string; asset: string; maxAmountRequired: string; }; body?: any; headers?: Record<string, string> | undefined; }, { url: string; selectedPaymentOption: { scheme: string; network: string; asset: string; maxAmountRequired: string; }; method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | null | undefined; body?: any; headers?: Record<string, string> | undefined; }>; export declare const DirectX402RequestSchema: z.ZodObject<{ url: z.ZodString; method: z.ZodDefault<z.ZodNullable<z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH"]>>>; headers: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>; body: z.ZodNullable<z.ZodOptional<z.ZodAny>>; }, "strip", z.ZodTypeAny, { method: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | null; url: string; body?: any; headers?: Record<string, string> | null | undefined; }, { url: string; method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | null | undefined; body?: any; headers?: Record<string, string> | null | undefined; }>;