UNPKG

@taqueria/protocol

Version:

A TypeScript package which contains types that are to be shared between @taqueria/node-sdk and @taqueria/taqueria.

145 lines • 6.48 kB
import { TaqError } from '@taqueria/protocol/TaqError'; import { FutureInstance } from 'fluture'; import { PluginProxyResponse } from '@taqueria/protocol/types'; import { PluginProxyResponse as PluginProxyResponseStrict } from '@taqueria/protocol/out/types-strict'; export type { PluginProxyResponseStrict as PluginProxyResponse }; export declare const from: (input: unknown) => PluginProxyResponseStrict; export declare const create: (input: PluginProxyResponse) => PluginProxyResponseStrict; export declare const of: (input: unknown) => FutureInstance<TaqError, PluginProxyResponseStrict>; export declare const make: (input: Omit<PluginProxyResponseStrict, "__type">) => FutureInstance<TaqError, PluginProxyResponseStrict>; export declare const schemas: { rawSchema: import("zod").ZodUnion<[import("zod").ZodVoid, import("zod").ZodUnion<[import("zod").ZodObject<{ data: import("zod").ZodOptional<import("zod").ZodUnknown>; messages: import("zod").ZodOptional<import("zod").ZodObject<{ header: import("zod").ZodOptional<import("zod").ZodString>; footer: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { header?: string | undefined; footer?: string | undefined; }, { header?: string | undefined; footer?: string | undefined; }>>; render: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"none">, import("zod").ZodLiteral<"table">, import("zod").ZodLiteral<"string">]>>; }, "strip", import("zod").ZodTypeAny, { render: "string" | "none" | "table"; data?: unknown; messages?: { header?: string | undefined; footer?: string | undefined; } | undefined; }, { data?: unknown; messages?: { header?: string | undefined; footer?: string | undefined; } | undefined; render?: "string" | "none" | "table" | undefined; }>, import("zod").ZodVoid]>]>; schema: import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodVoid, import("zod").ZodUnion<[import("zod").ZodObject<{ data: import("zod").ZodOptional<import("zod").ZodUnknown>; messages: import("zod").ZodOptional<import("zod").ZodObject<{ header: import("zod").ZodOptional<import("zod").ZodString>; footer: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { header?: string | undefined; footer?: string | undefined; }, { header?: string | undefined; footer?: string | undefined; }>>; render: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"none">, import("zod").ZodLiteral<"table">, import("zod").ZodLiteral<"string">]>>; }, "strip", import("zod").ZodTypeAny, { render: "string" | "none" | "table"; data?: unknown; messages?: { header?: string | undefined; footer?: string | undefined; } | undefined; }, { data?: unknown; messages?: { header?: string | undefined; footer?: string | undefined; } | undefined; render?: "string" | "none" | "table" | undefined; }>, import("zod").ZodVoid]>]>, ({ __type: PluginProxyResponseStrict; } & void) | ({ __type: PluginProxyResponseStrict; } & { __type: import("@taqueria/protocol/out/types-strict").PluginJsonResponse; } & { data?: unknown; messages?: { header?: string; footer?: string; }; render: "none" | "table" | "string"; }), void | { data?: unknown; messages?: { header?: string | undefined; footer?: string | undefined; } | undefined; render?: "string" | "none" | "table" | undefined; }>; }; export declare const rawSchema: import("zod").ZodUnion<[import("zod").ZodVoid, import("zod").ZodUnion<[import("zod").ZodObject<{ data: import("zod").ZodOptional<import("zod").ZodUnknown>; messages: import("zod").ZodOptional<import("zod").ZodObject<{ header: import("zod").ZodOptional<import("zod").ZodString>; footer: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { header?: string | undefined; footer?: string | undefined; }, { header?: string | undefined; footer?: string | undefined; }>>; render: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"none">, import("zod").ZodLiteral<"table">, import("zod").ZodLiteral<"string">]>>; }, "strip", import("zod").ZodTypeAny, { render: "string" | "none" | "table"; data?: unknown; messages?: { header?: string | undefined; footer?: string | undefined; } | undefined; }, { data?: unknown; messages?: { header?: string | undefined; footer?: string | undefined; } | undefined; render?: "string" | "none" | "table" | undefined; }>, import("zod").ZodVoid]>]>; export declare const internalSchema: import("zod").ZodUnion<[import("zod").ZodVoid, import("zod").ZodUnion<[import("zod").ZodObject<{ data: import("zod").ZodOptional<import("zod").ZodUnknown>; messages: import("zod").ZodOptional<import("zod").ZodObject<{ header: import("zod").ZodOptional<import("zod").ZodString>; footer: import("zod").ZodOptional<import("zod").ZodString>; }, "strip", import("zod").ZodTypeAny, { header?: string | undefined; footer?: string | undefined; }, { header?: string | undefined; footer?: string | undefined; }>>; render: import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodLiteral<"none">, import("zod").ZodLiteral<"table">, import("zod").ZodLiteral<"string">]>>; }, "strip", import("zod").ZodTypeAny, { render: "string" | "none" | "table"; data?: unknown; messages?: { header?: string | undefined; footer?: string | undefined; } | undefined; }, { data?: unknown; messages?: { header?: string | undefined; footer?: string | undefined; } | undefined; render?: "string" | "none" | "table" | undefined; }>, import("zod").ZodVoid]>]>; export type t = PluginProxyResponseStrict; //# sourceMappingURL=PluginProxyResponse.d.ts.map