UNPKG

@taqueria/protocol

Version:

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

141 lines • 6.12 kB
import { TaqError } from '@taqueria/protocol/TaqError'; import { FutureInstance } from 'fluture'; import { PluginJsonResponse } from '@taqueria/protocol/types'; import { PluginJsonResponse as PluginJsonResponseStrict } from '@taqueria/protocol/out/types-strict'; export type { PluginJsonResponseStrict as PluginJsonResponse }; export declare const from: (input: unknown) => PluginJsonResponseStrict; export declare const create: (input: PluginJsonResponse) => PluginJsonResponseStrict; export declare const of: (input: unknown) => FutureInstance<TaqError, PluginJsonResponseStrict>; export declare const make: (input: Omit<PluginJsonResponseStrict, "__type">) => FutureInstance<TaqError, PluginJsonResponseStrict>; export declare const schemas: { rawSchema: 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").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]>, void | ({ __type: PluginJsonResponseStrict; } & { 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").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").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 = PluginJsonResponseStrict; //# sourceMappingURL=PluginJsonResponse.d.ts.map