@artinet/types
Version:
A collection of useful types for the artinet.
145 lines • 3.56 kB
TypeScript
import z from "zod";
export declare const ArtinetAgentSchema: z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
} & {
uri: z.ZodString;
}, "strip", z.ZodTypeAny, {
uri: string;
id?: string | undefined;
}, {
uri: string;
id?: string | undefined;
}>;
export type ArtinetAgent = z.infer<typeof ArtinetAgentSchema>;
export declare const AgentCallSchema: z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
} & {
uri: z.ZodString;
} & {
directive: z.ZodString;
}, "strip", z.ZodTypeAny, {
uri: string;
directive: string;
id?: string | undefined;
}, {
uri: string;
directive: string;
id?: string | undefined;
}>;
export type AgentCall = z.infer<typeof AgentCallSchema>;
export declare const AgentCallResultSchema: z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
} & {
uri: z.ZodString;
} & {
directive: z.ZodString;
} & {
result: z.ZodString;
}, "strip", z.ZodTypeAny, {
uri: string;
directive: string;
result: string;
id?: string | undefined;
}, {
uri: string;
directive: string;
result: string;
id?: string | undefined;
}>;
export type AgentCallResult = z.infer<typeof AgentCallResultSchema>;
export declare const RemoteAgentSchema: z.ZodObject<{
id: z.ZodString;
} & {
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
url: string;
}, {
id: string;
url: string;
}>;
export type RemoteAgent = z.infer<typeof RemoteAgentSchema>;
export declare const AgentServerSchema: z.ZodUnion<[z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
} & {
uri: z.ZodString;
}, "strip", z.ZodTypeAny, {
uri: string;
id?: string | undefined;
}, {
uri: string;
id?: string | undefined;
}>, z.ZodObject<{
id: z.ZodString;
} & {
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
url: string;
}, {
id: string;
url: string;
}>]>;
export type AgentServer = z.infer<typeof AgentServerSchema>;
export declare const AgentRequestSchema: z.ZodEffects<z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
uri: z.ZodString;
directive: z.ZodString;
} & {
kind: z.ZodDefault<z.ZodLiteral<"agent_request">>;
}, "strip", z.ZodTypeAny, {
kind: "agent_request";
uri: string;
directive: string;
id?: string | undefined;
}, {
uri: string;
directive: string;
id?: string | undefined;
kind?: "agent_request" | undefined;
}>, {
kind: "agent_request";
uri: string;
directive: string;
id?: string | undefined;
}, {
uri: string;
directive: string;
id?: string | undefined;
kind?: "agent_request" | undefined;
}>;
export type AgentRequest = z.infer<typeof AgentRequestSchema>;
export declare const AgentResponseSchema: z.ZodEffects<z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
uri: z.ZodString;
directive: z.ZodString;
result: z.ZodString;
} & {
kind: z.ZodDefault<z.ZodLiteral<"agent_response">>;
}, "strip", z.ZodTypeAny, {
kind: "agent_response";
uri: string;
directive: string;
result: string;
id?: string | undefined;
}, {
uri: string;
directive: string;
result: string;
id?: string | undefined;
kind?: "agent_response" | undefined;
}>, {
kind: "agent_response";
uri: string;
directive: string;
result: string;
id?: string | undefined;
}, {
uri: string;
directive: string;
result: string;
id?: string | undefined;
kind?: "agent_response" | undefined;
}>;
export type AgentResponse = z.infer<typeof AgentResponseSchema>;
//# sourceMappingURL=agent.d.ts.map