UNPKG

@nucypher/taco

Version:

### [`nucypher/taco-web`](../../README.md)

52 lines (51 loc) 1.93 kB
import { z } from 'zod'; export declare const JsonRpcConditionType = "json-rpc"; export declare const jsonRpcConditionSchema: z.ZodObject<z.objectUtil.extendShape<{ conditionType: z.ZodString; }, { conditionType: z.ZodDefault<z.ZodLiteral<"json-rpc">>; endpoint: z.ZodEffects<z.ZodString, string, string>; method: z.ZodString; params: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnknown, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>; query: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>; authorizationToken: z.ZodOptional<z.ZodString>; returnValueTest: z.ZodObject<z.objectUtil.extendShape<{ index: z.ZodOptional<z.ZodNumber>; comparator: z.ZodEnum<["==", ">", "<", ">=", "<=", "!="]>; }, { value: z.ZodType<any, z.ZodTypeDef, any>; }>, "strip", z.ZodTypeAny, { comparator: "==" | ">" | "<" | ">=" | "<=" | "!="; value?: any; index?: number | undefined; }, { comparator: "==" | ">" | "<" | ">=" | "<=" | "!="; value?: any; index?: number | undefined; }>; }>, "strip", z.ZodTypeAny, { conditionType: "json-rpc"; method: string; returnValueTest: { comparator: "==" | ">" | "<" | ">=" | "<=" | "!="; value?: any; index?: number | undefined; }; endpoint: string; params?: unknown[] | Record<string, unknown> | undefined; query?: string | undefined; authorizationToken?: string | undefined; }, { method: string; returnValueTest: { comparator: "==" | ">" | "<" | ">=" | "<=" | "!="; value?: any; index?: number | undefined; }; endpoint: string; params?: unknown[] | Record<string, unknown> | undefined; conditionType?: "json-rpc" | undefined; query?: string | undefined; authorizationToken?: string | undefined; }>; export type JsonRpcConditionProps = z.infer<typeof jsonRpcConditionSchema>;