@illalabs/interfaces 0.0.0 → 0.1.0-canary.dcf8499b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -2
- package/README.md +98 -1
- package/dist/errors/endpoints/chat/ChatBaseError.d.ts +8 -0
- package/dist/errors/endpoints/chat/ChatBaseError.d.ts.map +1 -0
- package/dist/errors/endpoints/chat/ChatBaseError.js +2 -0
- package/dist/errors/endpoints/chat/ChatBaseError.js.map +1 -0
- package/dist/errors/endpoints/chat/index.d.ts +6 -0
- package/dist/errors/endpoints/chat/index.d.ts.map +1 -0
- package/dist/errors/endpoints/chat/index.js +2 -0
- package/dist/errors/endpoints/chat/index.js.map +1 -0
- package/dist/errors/endpoints/executionChecker/ExecutionCheckerBaseError.d.ts +10 -0
- package/dist/errors/endpoints/executionChecker/ExecutionCheckerBaseError.d.ts.map +1 -0
- package/dist/errors/endpoints/executionChecker/ExecutionCheckerBaseError.js +2 -0
- package/dist/errors/endpoints/executionChecker/ExecutionCheckerBaseError.js.map +1 -0
- package/dist/errors/endpoints/executionChecker/index.d.ts +3 -0
- package/dist/errors/endpoints/executionChecker/index.d.ts.map +1 -0
- package/dist/errors/endpoints/executionChecker/index.js +2 -0
- package/dist/errors/endpoints/executionChecker/index.js.map +1 -0
- package/dist/errors/index.d.ts +5 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +3 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/external.d.ts +4 -0
- package/dist/external.d.ts.map +1 -0
- package/dist/external.js +4 -0
- package/dist/external.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/autoRouter.d.ts +34 -0
- package/dist/interfaces/autoRouter.d.ts.map +1 -0
- package/dist/interfaces/autoRouter.js +2 -0
- package/dist/interfaces/autoRouter.js.map +1 -0
- package/dist/interfaces/base.d.ts +15 -0
- package/dist/interfaces/base.d.ts.map +1 -0
- package/dist/interfaces/base.js +2 -0
- package/dist/interfaces/base.js.map +1 -0
- package/dist/interfaces/chat/index.d.ts +3 -0
- package/dist/interfaces/chat/index.d.ts.map +1 -0
- package/dist/interfaces/chat/index.js +3 -0
- package/dist/interfaces/chat/index.js.map +1 -0
- package/dist/interfaces/chat/request.d.ts +11 -0
- package/dist/interfaces/chat/request.d.ts.map +1 -0
- package/dist/interfaces/chat/request.js +2 -0
- package/dist/interfaces/chat/request.js.map +1 -0
- package/dist/interfaces/chat/response.d.ts +22 -0
- package/dist/interfaces/chat/response.d.ts.map +1 -0
- package/dist/interfaces/chat/response.js +2 -0
- package/dist/interfaces/chat/response.js.map +1 -0
- package/dist/interfaces/executionChecker/index.d.ts +3 -0
- package/dist/interfaces/executionChecker/index.d.ts.map +1 -0
- package/dist/interfaces/executionChecker/index.js +3 -0
- package/dist/interfaces/executionChecker/index.js.map +1 -0
- package/dist/interfaces/executionChecker/request.d.ts +16 -0
- package/dist/interfaces/executionChecker/request.d.ts.map +1 -0
- package/dist/interfaces/executionChecker/request.js +3 -0
- package/dist/interfaces/executionChecker/request.js.map +1 -0
- package/dist/interfaces/executionChecker/response.d.ts +32 -0
- package/dist/interfaces/executionChecker/response.d.ts.map +1 -0
- package/dist/interfaces/executionChecker/response.js +2 -0
- package/dist/interfaces/executionChecker/response.js.map +1 -0
- package/dist/interfaces/index.d.ts +4 -0
- package/dist/interfaces/index.d.ts.map +1 -0
- package/dist/interfaces/index.js +4 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/internal.d.ts +5 -0
- package/dist/internal.d.ts.map +1 -0
- package/dist/internal.js +5 -0
- package/dist/internal.js.map +1 -0
- package/dist/schemas/chatContext.d.ts +337 -0
- package/dist/schemas/chatContext.d.ts.map +1 -0
- package/dist/schemas/chatContext.js +7 -0
- package/dist/schemas/chatContext.js.map +1 -0
- package/dist/schemas/chatRequestBody.d.ts +324 -0
- package/dist/schemas/chatRequestBody.d.ts.map +1 -0
- package/dist/schemas/chatRequestBody.js +14 -0
- package/dist/schemas/chatRequestBody.js.map +1 -0
- package/dist/schemas/executionCheckerQueryParams.d.ts +40 -0
- package/dist/schemas/executionCheckerQueryParams.d.ts.map +1 -0
- package/dist/schemas/executionCheckerQueryParams.js +18 -0
- package/dist/schemas/executionCheckerQueryParams.js.map +1 -0
- package/dist/schemas/index.d.ts +8 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +8 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/messages.d.ts +252 -0
- package/dist/schemas/messages.d.ts.map +1 -0
- package/dist/schemas/messages.js +65 -0
- package/dist/schemas/messages.js.map +1 -0
- package/dist/schemas/toolAutorouter.d.ts +156 -0
- package/dist/schemas/toolAutorouter.d.ts.map +1 -0
- package/dist/schemas/toolAutorouter.js +37 -0
- package/dist/schemas/toolAutorouter.js.map +1 -0
- package/dist/schemas/userContext.d.ts +11 -0
- package/dist/schemas/userContext.d.ts.map +1 -0
- package/dist/schemas/userContext.js +8 -0
- package/dist/schemas/userContext.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/messages.d.ts +9 -0
- package/dist/types/messages.d.ts.map +1 -0
- package/dist/types/messages.js +2 -0
- package/dist/types/messages.js.map +1 -0
- package/dist/types/toolAutorouter.d.ts +7 -0
- package/dist/types/toolAutorouter.d.ts.map +1 -0
- package/dist/types/toolAutorouter.js +2 -0
- package/dist/types/toolAutorouter.js.map +1 -0
- package/dist/utils/constants.d.ts +78 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/constants.js +57 -0
- package/dist/utils/constants.js.map +1 -0
- package/package.json +40 -5
- package/index.d.ts +0 -1
- package/index.js +0 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const BaseLongPollingArgsSchema: z.ZodObject<{
|
|
3
|
+
txHash: z.ZodString;
|
|
4
|
+
fromChain: z.ZodOptional<z.ZodNumber>;
|
|
5
|
+
}, "strict", z.ZodTypeAny, {
|
|
6
|
+
txHash: string;
|
|
7
|
+
fromChain?: number | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
txHash: string;
|
|
10
|
+
fromChain?: number | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const LongPollingActionRequestParamsSchema: z.ZodObject<{
|
|
13
|
+
toolName: z.ZodEnum<["swapOrBridge", "defiSupply", "defiWithdraw"]>;
|
|
14
|
+
protocol: z.ZodString;
|
|
15
|
+
args: z.ZodObject<{
|
|
16
|
+
txHash: z.ZodString;
|
|
17
|
+
fromChain: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
}, "strict", z.ZodTypeAny, {
|
|
19
|
+
txHash: string;
|
|
20
|
+
fromChain?: number | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
txHash: string;
|
|
23
|
+
fromChain?: number | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
toolName: "swapOrBridge" | "defiSupply" | "defiWithdraw";
|
|
27
|
+
args: {
|
|
28
|
+
txHash: string;
|
|
29
|
+
fromChain?: number | undefined;
|
|
30
|
+
};
|
|
31
|
+
protocol: string;
|
|
32
|
+
}, {
|
|
33
|
+
toolName: "swapOrBridge" | "defiSupply" | "defiWithdraw";
|
|
34
|
+
args: {
|
|
35
|
+
txHash: string;
|
|
36
|
+
fromChain?: number | undefined;
|
|
37
|
+
};
|
|
38
|
+
protocol: string;
|
|
39
|
+
}>;
|
|
40
|
+
//# sourceMappingURL=executionCheckerQueryParams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executionCheckerQueryParams.d.ts","sourceRoot":"","sources":["../../src/schemas/executionCheckerQueryParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,yBAAyB;;;;;;;;;EAKzB,CAAC;AAGd,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMpC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { CHECKABLE_ACTIONS } from "../utils/constants.js";
|
|
3
|
+
// Schema for BaseLongPollingArgs
|
|
4
|
+
export const BaseLongPollingArgsSchema = z
|
|
5
|
+
.object({
|
|
6
|
+
txHash: z.string(),
|
|
7
|
+
fromChain: z.coerce.number().int().positive().optional(),
|
|
8
|
+
})
|
|
9
|
+
.strict();
|
|
10
|
+
// Schema for LongPollingActionRequestParams with BaseLongPollingArgs
|
|
11
|
+
export const LongPollingActionRequestParamsSchema = z
|
|
12
|
+
.object({
|
|
13
|
+
toolName: z.enum(CHECKABLE_ACTIONS),
|
|
14
|
+
protocol: z.string(),
|
|
15
|
+
args: BaseLongPollingArgsSchema,
|
|
16
|
+
})
|
|
17
|
+
.strict();
|
|
18
|
+
//# sourceMappingURL=executionCheckerQueryParams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executionCheckerQueryParams.js","sourceRoot":"","sources":["../../src/schemas/executionCheckerQueryParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,iCAAiC;AACjC,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACrC,MAAM,CAAC;IACJ,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC3D,CAAC;KACD,MAAM,EAAE,CAAC;AAEd,qEAAqE;AACrE,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC;KAChD,MAAM,CAAC;IACJ,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC;IACnC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,yBAAyB;CAClC,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./chatContext.js";
|
|
2
|
+
export * from "./chatRequestBody.js";
|
|
3
|
+
export * from "../utils/constants.js";
|
|
4
|
+
export * from "./executionCheckerQueryParams.js";
|
|
5
|
+
export * from "./messages.js";
|
|
6
|
+
export * from "./toolAutorouter.js";
|
|
7
|
+
export * from "./userContext.js";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./chatContext.js";
|
|
2
|
+
export * from "./chatRequestBody.js";
|
|
3
|
+
export * from "../utils/constants.js";
|
|
4
|
+
export * from "./executionCheckerQueryParams.js";
|
|
5
|
+
export * from "./messages.js";
|
|
6
|
+
export * from "./toolAutorouter.js";
|
|
7
|
+
export * from "./userContext.js";
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import type { ModelMessage } from "@ai-sdk/provider-utils";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export declare const ToolResultSchema: z.ZodObject<{
|
|
4
|
+
toolCallId: z.ZodString;
|
|
5
|
+
toolName: z.ZodString;
|
|
6
|
+
result: z.ZodUnknown;
|
|
7
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
8
|
+
}, "strict", z.ZodTypeAny, {
|
|
9
|
+
toolCallId: string;
|
|
10
|
+
toolName: string;
|
|
11
|
+
result?: unknown;
|
|
12
|
+
error?: unknown;
|
|
13
|
+
}, {
|
|
14
|
+
toolCallId: string;
|
|
15
|
+
toolName: string;
|
|
16
|
+
result?: unknown;
|
|
17
|
+
error?: unknown;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const ToolResultArraySchema: z.ZodArray<z.ZodObject<{
|
|
20
|
+
toolCallId: z.ZodString;
|
|
21
|
+
toolName: z.ZodString;
|
|
22
|
+
result: z.ZodUnknown;
|
|
23
|
+
error: z.ZodOptional<z.ZodUnknown>;
|
|
24
|
+
}, "strict", z.ZodTypeAny, {
|
|
25
|
+
toolCallId: string;
|
|
26
|
+
toolName: string;
|
|
27
|
+
result?: unknown;
|
|
28
|
+
error?: unknown;
|
|
29
|
+
}, {
|
|
30
|
+
toolCallId: string;
|
|
31
|
+
toolName: string;
|
|
32
|
+
result?: unknown;
|
|
33
|
+
error?: unknown;
|
|
34
|
+
}>, "many">;
|
|
35
|
+
export declare const MessageSchema: z.ZodString;
|
|
36
|
+
export declare const ToolIncompletePartSchema: z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<"tool-incomplete">;
|
|
38
|
+
toolCallId: z.ZodString;
|
|
39
|
+
toolName: z.ZodString;
|
|
40
|
+
args: z.ZodUnknown;
|
|
41
|
+
missingParams: z.ZodArray<z.ZodString, "many">;
|
|
42
|
+
humanReadableDescription: z.ZodString;
|
|
43
|
+
}, "strict", z.ZodTypeAny, {
|
|
44
|
+
toolCallId: string;
|
|
45
|
+
toolName: string;
|
|
46
|
+
type: "tool-incomplete";
|
|
47
|
+
missingParams: string[];
|
|
48
|
+
humanReadableDescription: string;
|
|
49
|
+
args?: unknown;
|
|
50
|
+
}, {
|
|
51
|
+
toolCallId: string;
|
|
52
|
+
toolName: string;
|
|
53
|
+
type: "tool-incomplete";
|
|
54
|
+
missingParams: string[];
|
|
55
|
+
humanReadableDescription: string;
|
|
56
|
+
args?: unknown;
|
|
57
|
+
}>;
|
|
58
|
+
export declare const ToolErrorPartSchema: z.ZodObject<{
|
|
59
|
+
type: z.ZodLiteral<"tool-error">;
|
|
60
|
+
toolCallId: z.ZodString;
|
|
61
|
+
toolName: z.ZodString;
|
|
62
|
+
error: z.ZodUnknown;
|
|
63
|
+
}, "strict", z.ZodTypeAny, {
|
|
64
|
+
toolCallId: string;
|
|
65
|
+
toolName: string;
|
|
66
|
+
type: "tool-error";
|
|
67
|
+
error?: unknown;
|
|
68
|
+
}, {
|
|
69
|
+
toolCallId: string;
|
|
70
|
+
toolName: string;
|
|
71
|
+
type: "tool-error";
|
|
72
|
+
error?: unknown;
|
|
73
|
+
}>;
|
|
74
|
+
export declare const TextPartSchema: z.ZodObject<{
|
|
75
|
+
type: z.ZodLiteral<"text">;
|
|
76
|
+
text: z.ZodString;
|
|
77
|
+
}, "strict", z.ZodTypeAny, {
|
|
78
|
+
type: "text";
|
|
79
|
+
text: string;
|
|
80
|
+
}, {
|
|
81
|
+
type: "text";
|
|
82
|
+
text: string;
|
|
83
|
+
}>;
|
|
84
|
+
export declare const ToolCallPartSchema: z.ZodObject<{
|
|
85
|
+
type: z.ZodLiteral<"tool-call">;
|
|
86
|
+
toolCallId: z.ZodString;
|
|
87
|
+
toolName: z.ZodString;
|
|
88
|
+
args: z.ZodUnknown;
|
|
89
|
+
}, "strict", z.ZodTypeAny, {
|
|
90
|
+
toolCallId: string;
|
|
91
|
+
toolName: string;
|
|
92
|
+
type: "tool-call";
|
|
93
|
+
args?: unknown;
|
|
94
|
+
}, {
|
|
95
|
+
toolCallId: string;
|
|
96
|
+
toolName: string;
|
|
97
|
+
type: "tool-call";
|
|
98
|
+
args?: unknown;
|
|
99
|
+
}>;
|
|
100
|
+
export declare const ToolResultPartSchema: z.ZodObject<{
|
|
101
|
+
type: z.ZodLiteral<"tool-result">;
|
|
102
|
+
toolCallId: z.ZodString;
|
|
103
|
+
toolName: z.ZodString;
|
|
104
|
+
result: z.ZodUnknown;
|
|
105
|
+
}, "strict", z.ZodTypeAny, {
|
|
106
|
+
toolCallId: string;
|
|
107
|
+
toolName: string;
|
|
108
|
+
type: "tool-result";
|
|
109
|
+
result?: unknown;
|
|
110
|
+
}, {
|
|
111
|
+
toolCallId: string;
|
|
112
|
+
toolName: string;
|
|
113
|
+
type: "tool-result";
|
|
114
|
+
result?: unknown;
|
|
115
|
+
}>;
|
|
116
|
+
export declare const CoreMessageSchema: z.ZodObject<{
|
|
117
|
+
role: z.ZodEnum<["user", "assistant", "tool", "system"]>;
|
|
118
|
+
content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
119
|
+
type: z.ZodLiteral<"text">;
|
|
120
|
+
text: z.ZodString;
|
|
121
|
+
}, "strict", z.ZodTypeAny, {
|
|
122
|
+
type: "text";
|
|
123
|
+
text: string;
|
|
124
|
+
}, {
|
|
125
|
+
type: "text";
|
|
126
|
+
text: string;
|
|
127
|
+
}>, z.ZodObject<{
|
|
128
|
+
type: z.ZodLiteral<"tool-call">;
|
|
129
|
+
toolCallId: z.ZodString;
|
|
130
|
+
toolName: z.ZodString;
|
|
131
|
+
args: z.ZodUnknown;
|
|
132
|
+
}, "strict", z.ZodTypeAny, {
|
|
133
|
+
toolCallId: string;
|
|
134
|
+
toolName: string;
|
|
135
|
+
type: "tool-call";
|
|
136
|
+
args?: unknown;
|
|
137
|
+
}, {
|
|
138
|
+
toolCallId: string;
|
|
139
|
+
toolName: string;
|
|
140
|
+
type: "tool-call";
|
|
141
|
+
args?: unknown;
|
|
142
|
+
}>, z.ZodObject<{
|
|
143
|
+
type: z.ZodLiteral<"tool-result">;
|
|
144
|
+
toolCallId: z.ZodString;
|
|
145
|
+
toolName: z.ZodString;
|
|
146
|
+
result: z.ZodUnknown;
|
|
147
|
+
}, "strict", z.ZodTypeAny, {
|
|
148
|
+
toolCallId: string;
|
|
149
|
+
toolName: string;
|
|
150
|
+
type: "tool-result";
|
|
151
|
+
result?: unknown;
|
|
152
|
+
}, {
|
|
153
|
+
toolCallId: string;
|
|
154
|
+
toolName: string;
|
|
155
|
+
type: "tool-result";
|
|
156
|
+
result?: unknown;
|
|
157
|
+
}>, z.ZodObject<{
|
|
158
|
+
type: z.ZodLiteral<"tool-incomplete">;
|
|
159
|
+
toolCallId: z.ZodString;
|
|
160
|
+
toolName: z.ZodString;
|
|
161
|
+
args: z.ZodUnknown;
|
|
162
|
+
missingParams: z.ZodArray<z.ZodString, "many">;
|
|
163
|
+
humanReadableDescription: z.ZodString;
|
|
164
|
+
}, "strict", z.ZodTypeAny, {
|
|
165
|
+
toolCallId: string;
|
|
166
|
+
toolName: string;
|
|
167
|
+
type: "tool-incomplete";
|
|
168
|
+
missingParams: string[];
|
|
169
|
+
humanReadableDescription: string;
|
|
170
|
+
args?: unknown;
|
|
171
|
+
}, {
|
|
172
|
+
toolCallId: string;
|
|
173
|
+
toolName: string;
|
|
174
|
+
type: "tool-incomplete";
|
|
175
|
+
missingParams: string[];
|
|
176
|
+
humanReadableDescription: string;
|
|
177
|
+
args?: unknown;
|
|
178
|
+
}>, z.ZodObject<{
|
|
179
|
+
type: z.ZodLiteral<"tool-error">;
|
|
180
|
+
toolCallId: z.ZodString;
|
|
181
|
+
toolName: z.ZodString;
|
|
182
|
+
error: z.ZodUnknown;
|
|
183
|
+
}, "strict", z.ZodTypeAny, {
|
|
184
|
+
toolCallId: string;
|
|
185
|
+
toolName: string;
|
|
186
|
+
type: "tool-error";
|
|
187
|
+
error?: unknown;
|
|
188
|
+
}, {
|
|
189
|
+
toolCallId: string;
|
|
190
|
+
toolName: string;
|
|
191
|
+
type: "tool-error";
|
|
192
|
+
error?: unknown;
|
|
193
|
+
}>]>, "many">;
|
|
194
|
+
}, "strict", z.ZodTypeAny, {
|
|
195
|
+
role: "user" | "assistant" | "tool" | "system";
|
|
196
|
+
content: ({
|
|
197
|
+
toolCallId: string;
|
|
198
|
+
toolName: string;
|
|
199
|
+
type: "tool-incomplete";
|
|
200
|
+
missingParams: string[];
|
|
201
|
+
humanReadableDescription: string;
|
|
202
|
+
args?: unknown;
|
|
203
|
+
} | {
|
|
204
|
+
toolCallId: string;
|
|
205
|
+
toolName: string;
|
|
206
|
+
type: "tool-error";
|
|
207
|
+
error?: unknown;
|
|
208
|
+
} | {
|
|
209
|
+
type: "text";
|
|
210
|
+
text: string;
|
|
211
|
+
} | {
|
|
212
|
+
toolCallId: string;
|
|
213
|
+
toolName: string;
|
|
214
|
+
type: "tool-call";
|
|
215
|
+
args?: unknown;
|
|
216
|
+
} | {
|
|
217
|
+
toolCallId: string;
|
|
218
|
+
toolName: string;
|
|
219
|
+
type: "tool-result";
|
|
220
|
+
result?: unknown;
|
|
221
|
+
})[];
|
|
222
|
+
}, {
|
|
223
|
+
role: "user" | "assistant" | "tool" | "system";
|
|
224
|
+
content: ({
|
|
225
|
+
toolCallId: string;
|
|
226
|
+
toolName: string;
|
|
227
|
+
type: "tool-incomplete";
|
|
228
|
+
missingParams: string[];
|
|
229
|
+
humanReadableDescription: string;
|
|
230
|
+
args?: unknown;
|
|
231
|
+
} | {
|
|
232
|
+
toolCallId: string;
|
|
233
|
+
toolName: string;
|
|
234
|
+
type: "tool-error";
|
|
235
|
+
error?: unknown;
|
|
236
|
+
} | {
|
|
237
|
+
type: "text";
|
|
238
|
+
text: string;
|
|
239
|
+
} | {
|
|
240
|
+
toolCallId: string;
|
|
241
|
+
toolName: string;
|
|
242
|
+
type: "tool-call";
|
|
243
|
+
args?: unknown;
|
|
244
|
+
} | {
|
|
245
|
+
toolCallId: string;
|
|
246
|
+
toolName: string;
|
|
247
|
+
type: "tool-result";
|
|
248
|
+
result?: unknown;
|
|
249
|
+
})[];
|
|
250
|
+
}>;
|
|
251
|
+
export declare const HistorySchema: z.ZodArray<z.ZodType<ModelMessage, z.ZodTypeDef, ModelMessage>, "many">;
|
|
252
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/schemas/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAOhB,CAAC;AAEd,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;WAA4B,CAAC;AAE/D,eAAO,MAAM,aAAa,aAAa,CAAC;AAExC,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EASxB,CAAC;AAEd,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAOnB,CAAC;AAEd,eAAO,MAAM,cAAc;;;;;;;;;EAKd,CAAC;AAEd,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAOlB,CAAC;AAEd,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAOpB,CAAC;AAEd,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAajB,CAAC;AAEd,eAAO,MAAM,aAAa,yEAAoC,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const ToolResultSchema = z
|
|
3
|
+
.object({
|
|
4
|
+
toolCallId: z.string(),
|
|
5
|
+
toolName: z.string(),
|
|
6
|
+
result: z.unknown(),
|
|
7
|
+
error: z.unknown().optional(),
|
|
8
|
+
})
|
|
9
|
+
.strict();
|
|
10
|
+
export const ToolResultArraySchema = z.array(ToolResultSchema);
|
|
11
|
+
export const MessageSchema = z.string();
|
|
12
|
+
export const ToolIncompletePartSchema = z
|
|
13
|
+
.object({
|
|
14
|
+
type: z.literal("tool-incomplete"),
|
|
15
|
+
toolCallId: z.string(),
|
|
16
|
+
toolName: z.string(),
|
|
17
|
+
args: z.unknown(),
|
|
18
|
+
missingParams: z.array(z.string()),
|
|
19
|
+
humanReadableDescription: z.string(),
|
|
20
|
+
})
|
|
21
|
+
.strict();
|
|
22
|
+
export const ToolErrorPartSchema = z
|
|
23
|
+
.object({
|
|
24
|
+
type: z.literal("tool-error"),
|
|
25
|
+
toolCallId: z.string(),
|
|
26
|
+
toolName: z.string(),
|
|
27
|
+
error: z.unknown(),
|
|
28
|
+
})
|
|
29
|
+
.strict();
|
|
30
|
+
export const TextPartSchema = z
|
|
31
|
+
.object({
|
|
32
|
+
type: z.literal("text"),
|
|
33
|
+
text: z.string(),
|
|
34
|
+
})
|
|
35
|
+
.strict();
|
|
36
|
+
export const ToolCallPartSchema = z
|
|
37
|
+
.object({
|
|
38
|
+
type: z.literal("tool-call"),
|
|
39
|
+
toolCallId: z.string(),
|
|
40
|
+
toolName: z.string(),
|
|
41
|
+
args: z.unknown(),
|
|
42
|
+
})
|
|
43
|
+
.strict();
|
|
44
|
+
export const ToolResultPartSchema = z
|
|
45
|
+
.object({
|
|
46
|
+
type: z.literal("tool-result"),
|
|
47
|
+
toolCallId: z.string(),
|
|
48
|
+
toolName: z.string(),
|
|
49
|
+
result: z.unknown(),
|
|
50
|
+
})
|
|
51
|
+
.strict();
|
|
52
|
+
export const CoreMessageSchema = z
|
|
53
|
+
.object({
|
|
54
|
+
role: z.enum(["user", "assistant", "tool", "system"]),
|
|
55
|
+
content: z.array(z.union([
|
|
56
|
+
TextPartSchema,
|
|
57
|
+
ToolCallPartSchema,
|
|
58
|
+
ToolResultPartSchema,
|
|
59
|
+
ToolIncompletePartSchema,
|
|
60
|
+
ToolErrorPartSchema,
|
|
61
|
+
])),
|
|
62
|
+
})
|
|
63
|
+
.strict();
|
|
64
|
+
export const HistorySchema = z.array(z.custom());
|
|
65
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/schemas/messages.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const DeFiConfigSchema: z.ZodUnion<[z.ZodObject<{
|
|
3
|
+
lending: z.ZodEnum<["aave"]>;
|
|
4
|
+
supply: z.ZodOptional<z.ZodNever>;
|
|
5
|
+
withdraw: z.ZodOptional<z.ZodNever>;
|
|
6
|
+
}, "strict", z.ZodTypeAny, {
|
|
7
|
+
lending: "aave";
|
|
8
|
+
supply?: undefined;
|
|
9
|
+
withdraw?: undefined;
|
|
10
|
+
}, {
|
|
11
|
+
lending: "aave";
|
|
12
|
+
supply?: undefined;
|
|
13
|
+
withdraw?: undefined;
|
|
14
|
+
}>, z.ZodObject<{
|
|
15
|
+
lending: z.ZodOptional<z.ZodNever>;
|
|
16
|
+
supply: z.ZodEnum<["aave"]>;
|
|
17
|
+
withdraw: z.ZodEnum<["aave"]>;
|
|
18
|
+
}, "strict", z.ZodTypeAny, {
|
|
19
|
+
supply: "aave";
|
|
20
|
+
withdraw: "aave";
|
|
21
|
+
lending?: undefined;
|
|
22
|
+
}, {
|
|
23
|
+
supply: "aave";
|
|
24
|
+
withdraw: "aave";
|
|
25
|
+
lending?: undefined;
|
|
26
|
+
}>]>;
|
|
27
|
+
export declare const SwapBridgeProviderSchema: z.ZodEnum<["lifi"]>;
|
|
28
|
+
export declare const AutoRouterConfigSchema: z.ZodObject<{
|
|
29
|
+
defi: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
30
|
+
lending: z.ZodEnum<["aave"]>;
|
|
31
|
+
supply: z.ZodOptional<z.ZodNever>;
|
|
32
|
+
withdraw: z.ZodOptional<z.ZodNever>;
|
|
33
|
+
}, "strict", z.ZodTypeAny, {
|
|
34
|
+
lending: "aave";
|
|
35
|
+
supply?: undefined;
|
|
36
|
+
withdraw?: undefined;
|
|
37
|
+
}, {
|
|
38
|
+
lending: "aave";
|
|
39
|
+
supply?: undefined;
|
|
40
|
+
withdraw?: undefined;
|
|
41
|
+
}>, z.ZodObject<{
|
|
42
|
+
lending: z.ZodOptional<z.ZodNever>;
|
|
43
|
+
supply: z.ZodEnum<["aave"]>;
|
|
44
|
+
withdraw: z.ZodEnum<["aave"]>;
|
|
45
|
+
}, "strict", z.ZodTypeAny, {
|
|
46
|
+
supply: "aave";
|
|
47
|
+
withdraw: "aave";
|
|
48
|
+
lending?: undefined;
|
|
49
|
+
}, {
|
|
50
|
+
supply: "aave";
|
|
51
|
+
withdraw: "aave";
|
|
52
|
+
lending?: undefined;
|
|
53
|
+
}>]>>;
|
|
54
|
+
swapOrBridge: z.ZodOptional<z.ZodEnum<["lifi"]>>;
|
|
55
|
+
}, "strict", z.ZodTypeAny, {
|
|
56
|
+
swapOrBridge?: "lifi" | undefined;
|
|
57
|
+
defi?: {
|
|
58
|
+
lending: "aave";
|
|
59
|
+
supply?: undefined;
|
|
60
|
+
withdraw?: undefined;
|
|
61
|
+
} | {
|
|
62
|
+
supply: "aave";
|
|
63
|
+
withdraw: "aave";
|
|
64
|
+
lending?: undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
swapOrBridge?: "lifi" | undefined;
|
|
68
|
+
defi?: {
|
|
69
|
+
lending: "aave";
|
|
70
|
+
supply?: undefined;
|
|
71
|
+
withdraw?: undefined;
|
|
72
|
+
} | {
|
|
73
|
+
supply: "aave";
|
|
74
|
+
withdraw: "aave";
|
|
75
|
+
lending?: undefined;
|
|
76
|
+
} | undefined;
|
|
77
|
+
}>;
|
|
78
|
+
export declare const ToolAutorouterSchema: z.ZodObject<{
|
|
79
|
+
autoRouter: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
defi: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
81
|
+
lending: z.ZodEnum<["aave"]>;
|
|
82
|
+
supply: z.ZodOptional<z.ZodNever>;
|
|
83
|
+
withdraw: z.ZodOptional<z.ZodNever>;
|
|
84
|
+
}, "strict", z.ZodTypeAny, {
|
|
85
|
+
lending: "aave";
|
|
86
|
+
supply?: undefined;
|
|
87
|
+
withdraw?: undefined;
|
|
88
|
+
}, {
|
|
89
|
+
lending: "aave";
|
|
90
|
+
supply?: undefined;
|
|
91
|
+
withdraw?: undefined;
|
|
92
|
+
}>, z.ZodObject<{
|
|
93
|
+
lending: z.ZodOptional<z.ZodNever>;
|
|
94
|
+
supply: z.ZodEnum<["aave"]>;
|
|
95
|
+
withdraw: z.ZodEnum<["aave"]>;
|
|
96
|
+
}, "strict", z.ZodTypeAny, {
|
|
97
|
+
supply: "aave";
|
|
98
|
+
withdraw: "aave";
|
|
99
|
+
lending?: undefined;
|
|
100
|
+
}, {
|
|
101
|
+
supply: "aave";
|
|
102
|
+
withdraw: "aave";
|
|
103
|
+
lending?: undefined;
|
|
104
|
+
}>]>>;
|
|
105
|
+
swapOrBridge: z.ZodOptional<z.ZodEnum<["lifi"]>>;
|
|
106
|
+
}, "strict", z.ZodTypeAny, {
|
|
107
|
+
swapOrBridge?: "lifi" | undefined;
|
|
108
|
+
defi?: {
|
|
109
|
+
lending: "aave";
|
|
110
|
+
supply?: undefined;
|
|
111
|
+
withdraw?: undefined;
|
|
112
|
+
} | {
|
|
113
|
+
supply: "aave";
|
|
114
|
+
withdraw: "aave";
|
|
115
|
+
lending?: undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
swapOrBridge?: "lifi" | undefined;
|
|
119
|
+
defi?: {
|
|
120
|
+
lending: "aave";
|
|
121
|
+
supply?: undefined;
|
|
122
|
+
withdraw?: undefined;
|
|
123
|
+
} | {
|
|
124
|
+
supply: "aave";
|
|
125
|
+
withdraw: "aave";
|
|
126
|
+
lending?: undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
}>>;
|
|
129
|
+
}, "strict", z.ZodTypeAny, {
|
|
130
|
+
autoRouter?: {
|
|
131
|
+
swapOrBridge?: "lifi" | undefined;
|
|
132
|
+
defi?: {
|
|
133
|
+
lending: "aave";
|
|
134
|
+
supply?: undefined;
|
|
135
|
+
withdraw?: undefined;
|
|
136
|
+
} | {
|
|
137
|
+
supply: "aave";
|
|
138
|
+
withdraw: "aave";
|
|
139
|
+
lending?: undefined;
|
|
140
|
+
} | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
}, {
|
|
143
|
+
autoRouter?: {
|
|
144
|
+
swapOrBridge?: "lifi" | undefined;
|
|
145
|
+
defi?: {
|
|
146
|
+
lending: "aave";
|
|
147
|
+
supply?: undefined;
|
|
148
|
+
withdraw?: undefined;
|
|
149
|
+
} | {
|
|
150
|
+
supply: "aave";
|
|
151
|
+
withdraw: "aave";
|
|
152
|
+
lending?: undefined;
|
|
153
|
+
} | undefined;
|
|
154
|
+
} | undefined;
|
|
155
|
+
}>;
|
|
156
|
+
//# sourceMappingURL=toolAutorouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolAutorouter.d.ts","sourceRoot":"","sources":["../../src/schemas/toolAutorouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;IAAkD,CAAC;AAGhF,eAAO,MAAM,wBAAwB,qBAAgC,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKtB,CAAC;AAGd,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIpB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { LENDING_PROVIDERS, SWAP_BRIDGE_PROVIDERS } from "../utils/constants.js";
|
|
3
|
+
// Define the Zod schema for LendingProvider
|
|
4
|
+
const LendingProviderSchema = z.enum(LENDING_PROVIDERS);
|
|
5
|
+
// Define the schemas for DeFi configuration
|
|
6
|
+
const LendingOnlySchema = z
|
|
7
|
+
.object({
|
|
8
|
+
lending: LendingProviderSchema,
|
|
9
|
+
supply: z.never().optional(),
|
|
10
|
+
withdraw: z.never().optional(),
|
|
11
|
+
})
|
|
12
|
+
.strict();
|
|
13
|
+
const ActionsOnlySchema = z
|
|
14
|
+
.object({
|
|
15
|
+
lending: z.never().optional(),
|
|
16
|
+
supply: LendingProviderSchema,
|
|
17
|
+
withdraw: LendingProviderSchema,
|
|
18
|
+
})
|
|
19
|
+
.strict();
|
|
20
|
+
// Define the Zod schema for DeFi configuration unions (exclusive union)
|
|
21
|
+
export const DeFiConfigSchema = z.union([LendingOnlySchema, ActionsOnlySchema]);
|
|
22
|
+
// Define the Zod schema for SwapBridgeProvider
|
|
23
|
+
export const SwapBridgeProviderSchema = z.enum(SWAP_BRIDGE_PROVIDERS);
|
|
24
|
+
// Define the main AutoRouterConfig schema
|
|
25
|
+
export const AutoRouterConfigSchema = z
|
|
26
|
+
.object({
|
|
27
|
+
defi: DeFiConfigSchema.optional(),
|
|
28
|
+
swapOrBridge: SwapBridgeProviderSchema.optional(),
|
|
29
|
+
})
|
|
30
|
+
.strict();
|
|
31
|
+
// Define the Zod schema for ToolAutorouter
|
|
32
|
+
export const ToolAutorouterSchema = z
|
|
33
|
+
.object({
|
|
34
|
+
autoRouter: AutoRouterConfigSchema.optional(),
|
|
35
|
+
})
|
|
36
|
+
.strict();
|
|
37
|
+
//# sourceMappingURL=toolAutorouter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolAutorouter.js","sourceRoot":"","sources":["../../src/schemas/toolAutorouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEjF,4CAA4C;AAC5C,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;AAExD,4CAA4C;AAC5C,MAAM,iBAAiB,GAAG,CAAC;KACtB,MAAM,CAAC;IACJ,OAAO,EAAE,qBAAqB;IAC9B,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC;KACD,MAAM,EAAE,CAAC;AAEd,MAAM,iBAAiB,GAAG,CAAC;KACtB,MAAM,CAAC;IACJ,OAAO,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,qBAAqB;IAC7B,QAAQ,EAAE,qBAAqB;CAClC,CAAC;KACD,MAAM,EAAE,CAAC;AAEd,wEAAwE;AACxE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAEhF,+CAA+C;AAC/C,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;AAEtE,0CAA0C;AAC1C,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC;KAClC,MAAM,CAAC;IACJ,IAAI,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,wBAAwB,CAAC,QAAQ,EAAE;CACpD,CAAC;KACD,MAAM,EAAE,CAAC;AAEd,2CAA2C;AAC3C,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAChC,MAAM,CAAC;IACJ,UAAU,EAAE,sBAAsB,CAAC,QAAQ,EAAE;CAChD,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TypeOf } from "zod";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export declare const UserContextSchema: z.ZodObject<{
|
|
4
|
+
address: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
5
|
+
}, "strict", z.ZodTypeAny, {
|
|
6
|
+
address: `0x${string}`;
|
|
7
|
+
}, {
|
|
8
|
+
address: string;
|
|
9
|
+
}>;
|
|
10
|
+
export type UserContext = TypeOf<typeof UserContextSchema>;
|
|
11
|
+
//# sourceMappingURL=userContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userContext.d.ts","sourceRoot":"","sources":["../../src/schemas/userContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAElC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB;;;;;;EAIjB,CAAC;AAEd,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userContext.js","sourceRoot":"","sources":["../../src/schemas/userContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC7B,MAAM,CAAC;IACJ,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;CACxE,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC"}
|