export type Metrics = import('zod').z.infer; /** * @typedef {import('zod').z.infer} Receipt * @typedef {import('zod').z.infer} Metrics * @typedef {import('zod').z.infer} Node * @typedef {import('zod').z.infer} Health * @typedef {import('zod').z.infer} Invocation * @typedef {import('zod').z.infer} Task * @typedef {import('zod').z.infer} WorkflowNotification * @typedef {import('zod').z.infer} EventNotification */ export const Metrics: z.ZodObject<{ metrics: z.ZodArray; metric_name: z.ZodString; help: z.ZodString; data: z.ZodArray>; value: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: number; type: string; labels: string[] | null; }, { value: number; type: string; labels: string[] | null; }>, "many">; }, "strip", z.ZodTypeAny, { data: { value: number; type: string; labels: string[] | null; }[]; metric_type: "gauge"; metric_name: string; help: string; }, { data: { value: number; type: string; labels: string[] | null; }[]; metric_type: "gauge"; metric_name: string; help: string; }>, "many">; }, "strip", z.ZodTypeAny, { metrics: { data: { value: number; type: string; labels: string[] | null; }[]; metric_type: "gauge"; metric_name: string; help: string; }[]; }, { metrics: { data: { value: number; type: string; labels: string[] | null; }[]; metric_type: "gauge"; metric_name: string; help: string; }[]; }>; export type Health = import('zod').z.infer; export const Health: z.ZodObject<{ healthy: z.ZodBoolean; }, "strip", z.ZodTypeAny, { healthy: boolean; }, { healthy: boolean; }>; export type Node = import('zod').z.infer; export const Node: z.ZodObject<{ static: z.ZodObject<{ peer_id: z.ZodString; }, "strip", z.ZodTypeAny, { peer_id: string; }, { peer_id: string; }>; dynamic: z.ZodObject<{ listeners: z.ZodArray; }, "strip", z.ZodTypeAny, { listeners: string[]; }, { listeners: string[]; }>; }, "strip", z.ZodTypeAny, { static: { peer_id: string; }; dynamic: { listeners: string[]; }; }, { static: { peer_id: string; }; dynamic: { listeners: string[]; }; }>; export const CID: z.ZodType<_CID, z.ZodTypeDef, _CID>; export type Receipt = import('zod').z.infer; /** * @see https://github.com/ucan-wg/invocation/?tab=readme-ov-file#8-receipt */ export const Receipt: z.ZodObject<{ ran: z.ZodType<_CID, z.ZodTypeDef, _CID>; out: z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"ok">, z.ZodLiteral<"error">]>, z.ZodAny], null>; fx: z.ZodOptional; meta: z.ZodRecord; iss: z.ZodNullable>; prf: z.ZodArray, z.ZodTypeDef, _CID>, "many">; s: z.ZodOptional; }, "strip", z.ZodTypeAny, { ran: _CID; out: ["error" | "ok", any]; meta: Record; prf: _CID[]; fx?: any; iss?: string | null | undefined; s?: any; }, { ran: _CID; out: ["error" | "ok", any]; meta: Record; prf: _CID[]; fx?: any; iss?: string | null | undefined; s?: any; }>; export type Task = import('zod').z.infer; /** * @see https://github.com/ucan-wg/invocation/?tab=readme-ov-file#3-task */ export const Task: z.ZodObject<{ op: z.ZodString; rsc: z.ZodString; /** * Base 32 hex (lower) encoded random bytes, either 12 or 16 bytes long */ nnc: z.ZodString; input: z.ZodObject<{ func: z.ZodString; args: z.ZodArray; }, "strip", z.ZodTypeAny, { func: string; args: any[]; }, { func: string; args: any[]; }>; }, "strip", z.ZodTypeAny, { op: string; rsc: string; nnc: string; input: { func: string; args: any[]; }; }, { op: string; rsc: string; nnc: string; input: { func: string; args: any[]; }; }>; export type Invocation = import('zod').z.infer; /** * @see https://github.com/ucan-wg/invocation/?tab=readme-ov-file#5-invocation */ export const Invocation: z.ZodObject<{ v: z.ZodOptional; run: z.ZodObject<{ op: z.ZodString; rsc: z.ZodString; /** * Base 32 hex (lower) encoded random bytes, either 12 or 16 bytes long */ nnc: z.ZodString; input: z.ZodObject<{ func: z.ZodString; args: z.ZodArray; }, "strip", z.ZodTypeAny, { func: string; args: any[]; }, { func: string; args: any[]; }>; }, "strip", z.ZodTypeAny, { op: string; rsc: string; nnc: string; input: { func: string; args: any[]; }; }, { op: string; rsc: string; nnc: string; input: { func: string; args: any[]; }; }>; cause: z.ZodNullable, z.ZodTypeDef, _CID>; out: z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"ok">, z.ZodLiteral<"error">]>, z.ZodAny], null>; fx: z.ZodOptional; meta: z.ZodRecord; iss: z.ZodNullable>; prf: z.ZodArray, z.ZodTypeDef, _CID>, "many">; s: z.ZodOptional; }, "strip", z.ZodTypeAny, { ran: _CID; out: ["error" | "ok", any]; meta: Record; prf: _CID[]; fx?: any; iss?: string | null | undefined; s?: any; }, { ran: _CID; out: ["error" | "ok", any]; meta: Record; prf: _CID[]; fx?: any; iss?: string | null | undefined; s?: any; }>>>; auth: z.ZodOptional; meta: z.ZodRecord; prf: z.ZodArray, z.ZodTypeDef, _CID>, "many">; }, "strip", z.ZodTypeAny, { meta: Record; prf: _CID[]; run: { op: string; rsc: string; nnc: string; input: { func: string; args: any[]; }; }; v?: string | undefined; cause?: { ran: _CID; out: ["error" | "ok", any]; meta: Record; prf: _CID[]; fx?: any; iss?: string | null | undefined; s?: any; } | null | undefined; auth?: any; }, { meta: Record; prf: _CID[]; run: { op: string; rsc: string; nnc: string; input: { func: string; args: any[]; }; }; v?: string | undefined; cause?: { ran: _CID; out: ["error" | "ok", any]; meta: Record; prf: _CID[]; fx?: any; iss?: string | null | undefined; s?: any; } | null | undefined; auth?: any; }>; export const WorkflowMetadata: z.ZodObject<{ name: z.ZodString; replayed: z.ZodBoolean; workflow: z.ZodType<_CID, z.ZodTypeDef, _CID>; }, "strip", z.ZodTypeAny, { name: string; replayed: boolean; workflow: _CID; }, { name: string; replayed: boolean; workflow: _CID; }>; export type WorkflowNotification = import('zod').z.infer; export const WorkflowNotification: z.ZodObject<{ metadata: z.ZodObject<{ name: z.ZodString; replayed: z.ZodBoolean; workflow: z.ZodType<_CID, z.ZodTypeDef, _CID>; }, "strip", z.ZodTypeAny, { name: string; replayed: boolean; workflow: _CID; }, { name: string; replayed: boolean; workflow: _CID; }>; receipt: z.ZodObject<{ ran: z.ZodType<_CID, z.ZodTypeDef, _CID>; out: z.ZodTuple<[z.ZodUnion<[z.ZodLiteral<"ok">, z.ZodLiteral<"error">]>, z.ZodAny], null>; fx: z.ZodOptional; meta: z.ZodRecord; iss: z.ZodNullable>; prf: z.ZodArray, z.ZodTypeDef, _CID>, "many">; s: z.ZodOptional; }, "strip", z.ZodTypeAny, { ran: _CID; out: ["error" | "ok", any]; meta: Record; prf: _CID[]; fx?: any; iss?: string | null | undefined; s?: any; }, { ran: _CID; out: ["error" | "ok", any]; meta: Record; prf: _CID[]; fx?: any; iss?: string | null | undefined; s?: any; }>; receipt_cid: z.ZodType<_CID, z.ZodTypeDef, _CID>; }, "strip", z.ZodTypeAny, { metadata: { name: string; replayed: boolean; workflow: _CID; }; receipt: { ran: _CID; out: ["error" | "ok", any]; meta: Record; prf: _CID[]; fx?: any; iss?: string | null | undefined; s?: any; }; receipt_cid: _CID; }, { metadata: { name: string; replayed: boolean; workflow: _CID; }; receipt: { ran: _CID; out: ["error" | "ok", any]; meta: Record; prf: _CID[]; fx?: any; iss?: string | null | undefined; s?: any; }; receipt_cid: _CID; }>; export type EventNotification = import('zod').z.infer; export const EventNotification: z.ZodObject<{ type: z.ZodString; timestamp: z.ZodNumber; data: z.ZodAny; }, "strip", z.ZodTypeAny, { type: string; timestamp: number; data?: any; }, { type: string; timestamp: number; data?: any; }>; import { z } from 'zod'; import { CID as _CID } from 'multiformats/cid'; //# sourceMappingURL=schemas.d.ts.map