@loopstack/contracts 0.36.0 → 0.37.0
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/dist/api/api-token.schema.d.ts +24 -0
- package/dist/api/api-token.schema.d.ts.map +1 -0
- package/dist/api/api-token.schema.js +16 -0
- package/dist/api/api-token.schema.js.map +1 -0
- package/dist/api/auth.schema.d.ts +29 -0
- package/dist/api/auth.schema.d.ts.map +1 -0
- package/dist/api/auth.schema.js +24 -0
- package/dist/api/auth.schema.js.map +1 -0
- package/dist/api/common.schema.d.ts +20 -0
- package/dist/api/common.schema.d.ts.map +1 -0
- package/dist/api/common.schema.js +14 -0
- package/dist/api/common.schema.js.map +1 -0
- package/dist/api/config.schema.d.ts +187 -0
- package/dist/api/config.schema.d.ts.map +1 -0
- package/dist/api/config.schema.js +64 -0
- package/dist/api/config.schema.js.map +1 -0
- package/dist/api/dashboard.schema.d.ts +39 -0
- package/dist/api/dashboard.schema.d.ts.map +1 -0
- package/dist/api/dashboard.schema.js +11 -0
- package/dist/api/dashboard.schema.js.map +1 -0
- package/dist/api/document.schema.d.ts +50 -0
- package/dist/api/document.schema.d.ts.map +1 -0
- package/dist/api/document.schema.js +26 -0
- package/dist/api/document.schema.js.map +1 -0
- package/dist/api/file.interface.d.ts +1 -1
- package/dist/api/file.interface.d.ts.map +1 -1
- package/dist/api/index.d.ts +9 -10
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +9 -7
- package/dist/api/index.js.map +1 -1
- package/dist/api/pagination.schema.d.ts +14 -0
- package/dist/api/pagination.schema.d.ts.map +1 -0
- package/dist/api/pagination.schema.js +10 -0
- package/dist/api/pagination.schema.js.map +1 -0
- package/dist/api/workflow.schema.d.ts +145 -0
- package/dist/api/workflow.schema.d.ts.map +1 -0
- package/dist/api/workflow.schema.js +75 -0
- package/dist/api/workflow.schema.js.map +1 -0
- package/dist/api/workspace.schema.d.ts +69 -0
- package/dist/api/workspace.schema.d.ts.map +1 -0
- package/dist/api/workspace.schema.js +28 -0
- package/dist/api/workspace.schema.js.map +1 -0
- package/dist/events/client-message-base.schema.d.ts +7 -0
- package/dist/events/client-message-base.schema.d.ts.map +1 -0
- package/dist/events/client-message-base.schema.js +6 -0
- package/dist/events/client-message-base.schema.js.map +1 -0
- package/dist/events/client-message.schema.d.ts +131 -0
- package/dist/events/client-message.schema.d.ts.map +1 -0
- package/dist/events/client-message.schema.js +30 -0
- package/dist/events/client-message.schema.js.map +1 -0
- package/dist/events/index.d.ts +7 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +7 -0
- package/dist/events/index.js.map +1 -0
- package/dist/events/llm-events.schema.d.ts +221 -0
- package/dist/events/llm-events.schema.d.ts.map +1 -0
- package/dist/events/llm-events.schema.js +46 -0
- package/dist/events/llm-events.schema.js.map +1 -0
- package/dist/events/stream-events.schema.d.ts +8 -0
- package/dist/events/stream-events.schema.d.ts.map +1 -0
- package/dist/events/stream-events.schema.js +6 -0
- package/dist/events/stream-events.schema.js.map +1 -0
- package/dist/events/workflow-events.schema.d.ts +30 -0
- package/dist/events/workflow-events.schema.d.ts.map +1 -0
- package/dist/events/workflow-events.schema.js +22 -0
- package/dist/events/workflow-events.schema.js.map +1 -0
- package/dist/events/workspace-events.schema.d.ts +23 -0
- package/dist/events/workspace-events.schema.d.ts.map +1 -0
- package/dist/events/workspace-events.schema.js +15 -0
- package/dist/events/workspace-events.schema.js.map +1 -0
- package/dist/schemas/startup.schema.d.ts +4 -4
- package/dist/schemas/transition-payload.schema.d.ts +1 -1
- package/dist/types/interfaces/document-item.interface.d.ts +1 -18
- package/dist/types/interfaces/document-item.interface.d.ts.map +1 -1
- package/dist/types/interfaces/index.d.ts +0 -3
- package/dist/types/interfaces/index.d.ts.map +1 -1
- package/dist/types/interfaces/index.js +0 -3
- package/dist/types/interfaces/index.js.map +1 -1
- package/package.json +12 -3
- package/dist/api/auth.interface.d.ts +0 -9
- package/dist/api/auth.interface.d.ts.map +0 -1
- package/dist/api/auth.interface.js +0 -2
- package/dist/api/auth.interface.js.map +0 -1
- package/dist/api/common.interface.d.ts +0 -6
- package/dist/api/common.interface.d.ts.map +0 -1
- package/dist/api/common.interface.js +0 -2
- package/dist/api/common.interface.js.map +0 -1
- package/dist/api/dashboard.interface.d.ts +0 -13
- package/dist/api/dashboard.interface.d.ts.map +0 -1
- package/dist/api/dashboard.interface.js +0 -2
- package/dist/api/dashboard.interface.js.map +0 -1
- package/dist/api/document.interface.d.ts +0 -6
- package/dist/api/document.interface.d.ts.map +0 -1
- package/dist/api/document.interface.js +0 -2
- package/dist/api/document.interface.js.map +0 -1
- package/dist/api/pagination.interface.d.ts +0 -7
- package/dist/api/pagination.interface.d.ts.map +0 -1
- package/dist/api/pagination.interface.js +0 -2
- package/dist/api/pagination.interface.js.map +0 -1
- package/dist/api/workflow.interface.d.ts +0 -66
- package/dist/api/workflow.interface.d.ts.map +0 -1
- package/dist/api/workflow.interface.js +0 -2
- package/dist/api/workflow.interface.js.map +0 -1
- package/dist/api/workspace.interface.d.ts +0 -74
- package/dist/api/workspace.interface.d.ts.map +0 -1
- package/dist/api/workspace.interface.js +0 -2
- package/dist/api/workspace.interface.js.map +0 -1
- package/dist/types/interfaces/client-message.interface.d.ts +0 -11
- package/dist/types/interfaces/client-message.interface.d.ts.map +0 -1
- package/dist/types/interfaces/client-message.interface.js +0 -2
- package/dist/types/interfaces/client-message.interface.js.map +0 -1
- package/dist/types/interfaces/tool-config.interface.d.ts +0 -7
- package/dist/types/interfaces/tool-config.interface.d.ts.map +0 -1
- package/dist/types/interfaces/tool-config.interface.js +0 -2
- package/dist/types/interfaces/tool-config.interface.js.map +0 -1
- package/dist/types/interfaces/workflow-config.interface.d.ts +0 -10
- package/dist/types/interfaces/workflow-config.interface.d.ts.map +0 -1
- package/dist/types/interfaces/workflow-config.interface.js +0 -2
- package/dist/types/interfaces/workflow-config.interface.js.map +0 -1
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const LlmNormalizedMessageSchema: z.ZodObject<{
|
|
3
|
+
role: z.ZodEnum<{
|
|
4
|
+
user: "user";
|
|
5
|
+
assistant: "assistant";
|
|
6
|
+
}>;
|
|
7
|
+
blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<"text">;
|
|
9
|
+
text: z.ZodString;
|
|
10
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11
|
+
type: z.ZodLiteral<"thinking">;
|
|
12
|
+
text: z.ZodString;
|
|
13
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14
|
+
type: z.ZodLiteral<"tool_call">;
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
+
type: z.ZodLiteral<"server_tool_use">;
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
type: z.ZodLiteral<"server_tool_result">;
|
|
25
|
+
toolUseId: z.ZodString;
|
|
26
|
+
content: z.ZodUnknown;
|
|
27
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
+
type: z.ZodLiteral<"tool_result">;
|
|
29
|
+
toolCallId: z.ZodString;
|
|
30
|
+
content: z.ZodString;
|
|
31
|
+
isError: z.ZodBoolean;
|
|
32
|
+
}, z.core.$strip>], "type">>>;
|
|
33
|
+
id: z.ZodOptional<z.ZodString>;
|
|
34
|
+
text: z.ZodString;
|
|
35
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
end_turn: "end_turn";
|
|
37
|
+
tool_use: "tool_use";
|
|
38
|
+
max_tokens: "max_tokens";
|
|
39
|
+
stop_sequence: "stop_sequence";
|
|
40
|
+
}>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export type LlmNormalizedMessage = z.infer<typeof LlmNormalizedMessageSchema>;
|
|
43
|
+
export declare const LlmResponseStartEventSchema: z.ZodObject<{
|
|
44
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
45
|
+
workerId: z.ZodString;
|
|
46
|
+
workflowId: z.ZodString;
|
|
47
|
+
messageId: z.ZodString;
|
|
48
|
+
type: z.ZodLiteral<"llm.response.start">;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export type LlmResponseStartEvent = z.infer<typeof LlmResponseStartEventSchema>;
|
|
51
|
+
export declare const LlmResponseTextDeltaEventSchema: z.ZodObject<{
|
|
52
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
53
|
+
workerId: z.ZodString;
|
|
54
|
+
workflowId: z.ZodString;
|
|
55
|
+
messageId: z.ZodString;
|
|
56
|
+
type: z.ZodLiteral<"llm.response.text_delta">;
|
|
57
|
+
delta: z.ZodString;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export type LlmResponseTextDeltaEvent = z.infer<typeof LlmResponseTextDeltaEventSchema>;
|
|
60
|
+
export declare const LlmResponseThinkingDeltaEventSchema: z.ZodObject<{
|
|
61
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
62
|
+
workerId: z.ZodString;
|
|
63
|
+
workflowId: z.ZodString;
|
|
64
|
+
messageId: z.ZodString;
|
|
65
|
+
type: z.ZodLiteral<"llm.response.thinking_delta">;
|
|
66
|
+
delta: z.ZodString;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export type LlmResponseThinkingDeltaEvent = z.infer<typeof LlmResponseThinkingDeltaEventSchema>;
|
|
69
|
+
export declare const LlmResponseToolCallEventSchema: z.ZodObject<{
|
|
70
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
71
|
+
workerId: z.ZodString;
|
|
72
|
+
workflowId: z.ZodString;
|
|
73
|
+
messageId: z.ZodString;
|
|
74
|
+
type: z.ZodLiteral<"llm.response.tool_call">;
|
|
75
|
+
id: z.ZodString;
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type LlmResponseToolCallEvent = z.infer<typeof LlmResponseToolCallEventSchema>;
|
|
80
|
+
export declare const LlmResponseDoneEventSchema: z.ZodObject<{
|
|
81
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
82
|
+
workerId: z.ZodString;
|
|
83
|
+
workflowId: z.ZodString;
|
|
84
|
+
messageId: z.ZodString;
|
|
85
|
+
type: z.ZodLiteral<"llm.response.done">;
|
|
86
|
+
message: z.ZodObject<{
|
|
87
|
+
role: z.ZodEnum<{
|
|
88
|
+
user: "user";
|
|
89
|
+
assistant: "assistant";
|
|
90
|
+
}>;
|
|
91
|
+
blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
92
|
+
type: z.ZodLiteral<"text">;
|
|
93
|
+
text: z.ZodString;
|
|
94
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
95
|
+
type: z.ZodLiteral<"thinking">;
|
|
96
|
+
text: z.ZodString;
|
|
97
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
98
|
+
type: z.ZodLiteral<"tool_call">;
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
name: z.ZodString;
|
|
101
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
102
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
103
|
+
type: z.ZodLiteral<"server_tool_use">;
|
|
104
|
+
id: z.ZodString;
|
|
105
|
+
name: z.ZodString;
|
|
106
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
107
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
108
|
+
type: z.ZodLiteral<"server_tool_result">;
|
|
109
|
+
toolUseId: z.ZodString;
|
|
110
|
+
content: z.ZodUnknown;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
type: z.ZodLiteral<"tool_result">;
|
|
113
|
+
toolCallId: z.ZodString;
|
|
114
|
+
content: z.ZodString;
|
|
115
|
+
isError: z.ZodBoolean;
|
|
116
|
+
}, z.core.$strip>], "type">>>;
|
|
117
|
+
id: z.ZodOptional<z.ZodString>;
|
|
118
|
+
text: z.ZodString;
|
|
119
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
120
|
+
end_turn: "end_turn";
|
|
121
|
+
tool_use: "tool_use";
|
|
122
|
+
max_tokens: "max_tokens";
|
|
123
|
+
stop_sequence: "stop_sequence";
|
|
124
|
+
}>>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
export type LlmResponseDoneEvent = z.infer<typeof LlmResponseDoneEventSchema>;
|
|
128
|
+
export declare const LlmResponseErrorEventSchema: z.ZodObject<{
|
|
129
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
130
|
+
workerId: z.ZodString;
|
|
131
|
+
workflowId: z.ZodString;
|
|
132
|
+
messageId: z.ZodString;
|
|
133
|
+
type: z.ZodLiteral<"llm.response.error">;
|
|
134
|
+
error: z.ZodString;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export type LlmResponseErrorEvent = z.infer<typeof LlmResponseErrorEventSchema>;
|
|
137
|
+
export declare const LlmResponseEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
138
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
139
|
+
workerId: z.ZodString;
|
|
140
|
+
workflowId: z.ZodString;
|
|
141
|
+
messageId: z.ZodString;
|
|
142
|
+
type: z.ZodLiteral<"llm.response.start">;
|
|
143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
145
|
+
workerId: z.ZodString;
|
|
146
|
+
workflowId: z.ZodString;
|
|
147
|
+
messageId: z.ZodString;
|
|
148
|
+
type: z.ZodLiteral<"llm.response.text_delta">;
|
|
149
|
+
delta: z.ZodString;
|
|
150
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
151
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
152
|
+
workerId: z.ZodString;
|
|
153
|
+
workflowId: z.ZodString;
|
|
154
|
+
messageId: z.ZodString;
|
|
155
|
+
type: z.ZodLiteral<"llm.response.thinking_delta">;
|
|
156
|
+
delta: z.ZodString;
|
|
157
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
158
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
159
|
+
workerId: z.ZodString;
|
|
160
|
+
workflowId: z.ZodString;
|
|
161
|
+
messageId: z.ZodString;
|
|
162
|
+
type: z.ZodLiteral<"llm.response.tool_call">;
|
|
163
|
+
id: z.ZodString;
|
|
164
|
+
name: z.ZodString;
|
|
165
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
166
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
167
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
168
|
+
workerId: z.ZodString;
|
|
169
|
+
workflowId: z.ZodString;
|
|
170
|
+
messageId: z.ZodString;
|
|
171
|
+
type: z.ZodLiteral<"llm.response.done">;
|
|
172
|
+
message: z.ZodObject<{
|
|
173
|
+
role: z.ZodEnum<{
|
|
174
|
+
user: "user";
|
|
175
|
+
assistant: "assistant";
|
|
176
|
+
}>;
|
|
177
|
+
blocks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
178
|
+
type: z.ZodLiteral<"text">;
|
|
179
|
+
text: z.ZodString;
|
|
180
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
181
|
+
type: z.ZodLiteral<"thinking">;
|
|
182
|
+
text: z.ZodString;
|
|
183
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
184
|
+
type: z.ZodLiteral<"tool_call">;
|
|
185
|
+
id: z.ZodString;
|
|
186
|
+
name: z.ZodString;
|
|
187
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
188
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
189
|
+
type: z.ZodLiteral<"server_tool_use">;
|
|
190
|
+
id: z.ZodString;
|
|
191
|
+
name: z.ZodString;
|
|
192
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
193
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
194
|
+
type: z.ZodLiteral<"server_tool_result">;
|
|
195
|
+
toolUseId: z.ZodString;
|
|
196
|
+
content: z.ZodUnknown;
|
|
197
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
198
|
+
type: z.ZodLiteral<"tool_result">;
|
|
199
|
+
toolCallId: z.ZodString;
|
|
200
|
+
content: z.ZodString;
|
|
201
|
+
isError: z.ZodBoolean;
|
|
202
|
+
}, z.core.$strip>], "type">>>;
|
|
203
|
+
id: z.ZodOptional<z.ZodString>;
|
|
204
|
+
text: z.ZodString;
|
|
205
|
+
stopReason: z.ZodOptional<z.ZodEnum<{
|
|
206
|
+
end_turn: "end_turn";
|
|
207
|
+
tool_use: "tool_use";
|
|
208
|
+
max_tokens: "max_tokens";
|
|
209
|
+
stop_sequence: "stop_sequence";
|
|
210
|
+
}>>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
213
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
214
|
+
workerId: z.ZodString;
|
|
215
|
+
workflowId: z.ZodString;
|
|
216
|
+
messageId: z.ZodString;
|
|
217
|
+
type: z.ZodLiteral<"llm.response.error">;
|
|
218
|
+
error: z.ZodString;
|
|
219
|
+
}, z.core.$strip>], "type">;
|
|
220
|
+
export type LlmResponseEvent = z.infer<typeof LlmResponseEventSchema>;
|
|
221
|
+
//# sourceMappingURL=llm-events.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-events.schema.d.ts","sourceRoot":"","sources":["../../src/events/llm-events.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAU9E,eAAO,MAAM,2BAA2B;;;;;;iBAEtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAKhF,eAAO,MAAM,+BAA+B;;;;;;;iBAG1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAKxF,eAAO,MAAM,mCAAmC;;;;;;;iBAG9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAKhG,eAAO,MAAM,8BAA8B;;;;;;;;;iBAKzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAMtF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAK9E,eAAO,MAAM,2BAA2B;;;;;;;iBAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAKhF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAOjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { UIMessageSchema } from '../types/types/ui-message.type.js';
|
|
3
|
+
import { ClientMessageBaseSchema } from './client-message-base.schema.js';
|
|
4
|
+
export const LlmNormalizedMessageSchema = UIMessageSchema.extend({
|
|
5
|
+
id: z.string().optional(),
|
|
6
|
+
text: z.string(),
|
|
7
|
+
stopReason: z.enum(['end_turn', 'tool_use', 'max_tokens', 'stop_sequence']).optional(),
|
|
8
|
+
});
|
|
9
|
+
const LlmResponseEventBaseSchema = ClientMessageBaseSchema.extend({
|
|
10
|
+
workflowId: z.string(),
|
|
11
|
+
messageId: z.string(),
|
|
12
|
+
});
|
|
13
|
+
export const LlmResponseStartEventSchema = LlmResponseEventBaseSchema.extend({
|
|
14
|
+
type: z.literal('llm.response.start'),
|
|
15
|
+
});
|
|
16
|
+
export const LlmResponseTextDeltaEventSchema = LlmResponseEventBaseSchema.extend({
|
|
17
|
+
type: z.literal('llm.response.text_delta'),
|
|
18
|
+
delta: z.string(),
|
|
19
|
+
});
|
|
20
|
+
export const LlmResponseThinkingDeltaEventSchema = LlmResponseEventBaseSchema.extend({
|
|
21
|
+
type: z.literal('llm.response.thinking_delta'),
|
|
22
|
+
delta: z.string(),
|
|
23
|
+
});
|
|
24
|
+
export const LlmResponseToolCallEventSchema = LlmResponseEventBaseSchema.extend({
|
|
25
|
+
type: z.literal('llm.response.tool_call'),
|
|
26
|
+
id: z.string(),
|
|
27
|
+
name: z.string(),
|
|
28
|
+
args: z.record(z.string(), z.unknown()),
|
|
29
|
+
});
|
|
30
|
+
export const LlmResponseDoneEventSchema = LlmResponseEventBaseSchema.extend({
|
|
31
|
+
type: z.literal('llm.response.done'),
|
|
32
|
+
message: LlmNormalizedMessageSchema,
|
|
33
|
+
});
|
|
34
|
+
export const LlmResponseErrorEventSchema = LlmResponseEventBaseSchema.extend({
|
|
35
|
+
type: z.literal('llm.response.error'),
|
|
36
|
+
error: z.string(),
|
|
37
|
+
});
|
|
38
|
+
export const LlmResponseEventSchema = z.discriminatedUnion('type', [
|
|
39
|
+
LlmResponseStartEventSchema,
|
|
40
|
+
LlmResponseTextDeltaEventSchema,
|
|
41
|
+
LlmResponseThinkingDeltaEventSchema,
|
|
42
|
+
LlmResponseToolCallEventSchema,
|
|
43
|
+
LlmResponseDoneEventSchema,
|
|
44
|
+
LlmResponseErrorEventSchema,
|
|
45
|
+
]);
|
|
46
|
+
//# sourceMappingURL=llm-events.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm-events.schema.js","sourceRoot":"","sources":["../../src/events/llm-events.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAM1E,MAAM,CAAC,MAAM,0BAA0B,GAAG,eAAe,CAAC,MAAM,CAAC;IAC/D,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC,QAAQ,EAAE;CACvF,CAAC,CAAC;AAGH,MAAM,0BAA0B,GAAG,uBAAuB,CAAC,MAAM,CAAC;IAChE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAKH,MAAM,CAAC,MAAM,2BAA2B,GAAG,0BAA0B,CAAC,MAAM,CAAC;IAC3E,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;CACtC,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,+BAA+B,GAAG,0BAA0B,CAAC,MAAM,CAAC;IAC/E,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,mCAAmC,GAAG,0BAA0B,CAAC,MAAM,CAAC;IACnF,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC;IAC9C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,8BAA8B,GAAG,0BAA0B,CAAC,MAAM,CAAC;IAC9E,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC;IACzC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;CACxC,CAAC,CAAC;AAOH,MAAM,CAAC,MAAM,0BAA0B,GAAG,0BAA0B,CAAC,MAAM,CAAC;IAC1E,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;IACpC,OAAO,EAAE,0BAA0B;CACpC,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,2BAA2B,GAAG,0BAA0B,CAAC,MAAM,CAAC;IAC3E,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACrC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACjE,2BAA2B;IAC3B,+BAA+B;IAC/B,mCAAmC;IACnC,8BAA8B;IAC9B,0BAA0B;IAC1B,2BAA2B;CAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const StreamResetEventSchema: z.ZodObject<{
|
|
3
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
4
|
+
workerId: z.ZodString;
|
|
5
|
+
type: z.ZodLiteral<"stream.reset">;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type StreamResetEvent = z.infer<typeof StreamResetEventSchema>;
|
|
8
|
+
//# sourceMappingURL=stream-events.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream-events.schema.d.ts","sourceRoot":"","sources":["../../src/events/stream-events.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,sBAAsB;;;;iBAEjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream-events.schema.js","sourceRoot":"","sources":["../../src/events/stream-events.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAO1E,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,CAAC,MAAM,CAAC;IACnE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;CAChC,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { WorkflowState } from '../enums/workflow-state.enum.js';
|
|
3
|
+
export declare const WorkflowCreatedEventSchema: z.ZodObject<{
|
|
4
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
5
|
+
workerId: z.ZodString;
|
|
6
|
+
type: z.ZodLiteral<"workflow.created">;
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
workflowId: z.ZodString;
|
|
9
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type WorkflowCreatedEvent = z.infer<typeof WorkflowCreatedEventSchema>;
|
|
12
|
+
export declare const WorkflowUpdatedEventSchema: z.ZodObject<{
|
|
13
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
14
|
+
workerId: z.ZodString;
|
|
15
|
+
type: z.ZodLiteral<"workflow.updated">;
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
workflowId: z.ZodString;
|
|
18
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
status: z.ZodEnum<typeof WorkflowState>;
|
|
20
|
+
place: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type WorkflowUpdatedEvent = z.infer<typeof WorkflowUpdatedEventSchema>;
|
|
23
|
+
export declare const DocumentCreatedEventSchema: z.ZodObject<{
|
|
24
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
25
|
+
workerId: z.ZodString;
|
|
26
|
+
type: z.ZodLiteral<"document.created">;
|
|
27
|
+
workflowId: z.ZodString;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type DocumentCreatedEvent = z.infer<typeof DocumentCreatedEventSchema>;
|
|
30
|
+
//# sourceMappingURL=workflow-events.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-events.schema.d.ts","sourceRoot":"","sources":["../../src/events/workflow-events.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAMhE,eAAO,MAAM,0BAA0B;;;;;;;iBAKrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAO9E,eAAO,MAAM,0BAA0B;;;;;;;;;iBAOrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAM9E,eAAO,MAAM,0BAA0B;;;;;iBAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { WorkflowState } from '../enums/workflow-state.enum.js';
|
|
3
|
+
import { ClientMessageBaseSchema } from './client-message-base.schema.js';
|
|
4
|
+
export const WorkflowCreatedEventSchema = ClientMessageBaseSchema.extend({
|
|
5
|
+
type: z.literal('workflow.created'),
|
|
6
|
+
id: z.string(),
|
|
7
|
+
workflowId: z.string(),
|
|
8
|
+
parentId: z.string().optional(),
|
|
9
|
+
});
|
|
10
|
+
export const WorkflowUpdatedEventSchema = ClientMessageBaseSchema.extend({
|
|
11
|
+
type: z.literal('workflow.updated'),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
workflowId: z.string(),
|
|
14
|
+
parentId: z.string().optional(),
|
|
15
|
+
status: z.enum(WorkflowState),
|
|
16
|
+
place: z.string().optional(),
|
|
17
|
+
});
|
|
18
|
+
export const DocumentCreatedEventSchema = ClientMessageBaseSchema.extend({
|
|
19
|
+
type: z.literal('document.created'),
|
|
20
|
+
workflowId: z.string(),
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=workflow-events.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-events.schema.js","sourceRoot":"","sources":["../../src/events/workflow-events.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAK1E,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAAC,MAAM,CAAC;IACvE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IACnC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAQH,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAAC,MAAM,CAAC;IACvE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IACnC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAOH,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAAC,MAAM,CAAC;IACvE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IACnC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SecretUpsertedEventSchema: z.ZodObject<{
|
|
3
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
4
|
+
workerId: z.ZodString;
|
|
5
|
+
workspaceId: z.ZodString;
|
|
6
|
+
type: z.ZodLiteral<"secret.upserted">;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type SecretUpsertedEvent = z.infer<typeof SecretUpsertedEventSchema>;
|
|
9
|
+
export declare const SecretDeletedEventSchema: z.ZodObject<{
|
|
10
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
11
|
+
workerId: z.ZodString;
|
|
12
|
+
workspaceId: z.ZodString;
|
|
13
|
+
type: z.ZodLiteral<"secret.deleted">;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type SecretDeletedEvent = z.infer<typeof SecretDeletedEventSchema>;
|
|
16
|
+
export declare const GitUpdatedEventSchema: z.ZodObject<{
|
|
17
|
+
userId: z.ZodNullable<z.ZodString>;
|
|
18
|
+
workerId: z.ZodString;
|
|
19
|
+
workspaceId: z.ZodString;
|
|
20
|
+
type: z.ZodLiteral<"git.updated">;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type GitUpdatedEvent = z.infer<typeof GitUpdatedEventSchema>;
|
|
23
|
+
//# sourceMappingURL=workspace-events.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-events.schema.d.ts","sourceRoot":"","sources":["../../src/events/workspace-events.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,yBAAyB;;;;;iBAEpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAK5E,eAAO,MAAM,wBAAwB;;;;;iBAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAM1E,eAAO,MAAM,qBAAqB;;;;;iBAEhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ClientMessageBaseSchema } from './client-message-base.schema.js';
|
|
3
|
+
const WorkspaceEventBaseSchema = ClientMessageBaseSchema.extend({
|
|
4
|
+
workspaceId: z.string(),
|
|
5
|
+
});
|
|
6
|
+
export const SecretUpsertedEventSchema = WorkspaceEventBaseSchema.extend({
|
|
7
|
+
type: z.literal('secret.upserted'),
|
|
8
|
+
});
|
|
9
|
+
export const SecretDeletedEventSchema = WorkspaceEventBaseSchema.extend({
|
|
10
|
+
type: z.literal('secret.deleted'),
|
|
11
|
+
});
|
|
12
|
+
export const GitUpdatedEventSchema = WorkspaceEventBaseSchema.extend({
|
|
13
|
+
type: z.literal('git.updated'),
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=workspace-events.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-events.schema.js","sourceRoot":"","sources":["../../src/events/workspace-events.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,MAAM,wBAAwB,GAAG,uBAAuB,CAAC,MAAM,CAAC;IAC9D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAKH,MAAM,CAAC,MAAM,yBAAyB,GAAG,wBAAwB,CAAC,MAAM,CAAC;IACvE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC;CACnC,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,wBAAwB,GAAG,wBAAwB,CAAC,MAAM,CAAC;IACtE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;CAClC,CAAC,CAAC;AAOH,MAAM,CAAC,MAAM,qBAAqB,GAAG,wBAAwB,CAAC,MAAM,CAAC;IACnE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;CAC/B,CAAC,CAAC"}
|
|
@@ -37,8 +37,8 @@ export declare const RunPayloadSchema: z.ZodObject<{
|
|
|
37
37
|
payload: z.ZodOptional<z.ZodUnknown>;
|
|
38
38
|
meta: z.ZodOptional<z.ZodUnknown>;
|
|
39
39
|
status: z.ZodOptional<z.ZodEnum<{
|
|
40
|
-
completed: "completed";
|
|
41
40
|
failed: "failed";
|
|
41
|
+
completed: "completed";
|
|
42
42
|
canceled: "canceled";
|
|
43
43
|
}>>;
|
|
44
44
|
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -74,8 +74,8 @@ export declare const RunWorkflowTaskSchema: z.ZodObject<{
|
|
|
74
74
|
payload: z.ZodOptional<z.ZodUnknown>;
|
|
75
75
|
meta: z.ZodOptional<z.ZodUnknown>;
|
|
76
76
|
status: z.ZodOptional<z.ZodEnum<{
|
|
77
|
-
completed: "completed";
|
|
78
77
|
failed: "failed";
|
|
78
|
+
completed: "completed";
|
|
79
79
|
canceled: "canceled";
|
|
80
80
|
}>>;
|
|
81
81
|
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -111,8 +111,8 @@ export declare const StartupTaskSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
111
111
|
payload: z.ZodOptional<z.ZodUnknown>;
|
|
112
112
|
meta: z.ZodOptional<z.ZodUnknown>;
|
|
113
113
|
status: z.ZodOptional<z.ZodEnum<{
|
|
114
|
-
completed: "completed";
|
|
115
114
|
failed: "failed";
|
|
115
|
+
completed: "completed";
|
|
116
116
|
canceled: "canceled";
|
|
117
117
|
}>>;
|
|
118
118
|
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -151,8 +151,8 @@ export declare const ScheduledTaskSchema: z.ZodObject<{
|
|
|
151
151
|
payload: z.ZodOptional<z.ZodUnknown>;
|
|
152
152
|
meta: z.ZodOptional<z.ZodUnknown>;
|
|
153
153
|
status: z.ZodOptional<z.ZodEnum<{
|
|
154
|
-
completed: "completed";
|
|
155
154
|
failed: "failed";
|
|
155
|
+
completed: "completed";
|
|
156
156
|
canceled: "canceled";
|
|
157
157
|
}>>;
|
|
158
158
|
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -5,8 +5,8 @@ export declare const TransitionPayloadSchema: z.ZodObject<{
|
|
|
5
5
|
payload: z.ZodOptional<z.ZodUnknown>;
|
|
6
6
|
meta: z.ZodOptional<z.ZodUnknown>;
|
|
7
7
|
status: z.ZodOptional<z.ZodEnum<{
|
|
8
|
-
completed: "completed";
|
|
9
8
|
failed: "failed";
|
|
9
|
+
completed: "completed";
|
|
10
10
|
canceled: "canceled";
|
|
11
11
|
}>>;
|
|
12
12
|
errorMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export interface DocumentItemInterface {
|
|
3
|
-
id: string;
|
|
4
|
-
documentName: string;
|
|
5
|
-
content: any;
|
|
6
|
-
validationError: any;
|
|
7
|
-
meta: DynamicDocumentMeta | null;
|
|
8
|
-
isInvalidated: boolean;
|
|
9
|
-
index: number;
|
|
10
|
-
transition: string | null;
|
|
11
|
-
place: string | null;
|
|
12
|
-
labels: string[];
|
|
13
|
-
tags: string[];
|
|
14
|
-
createdAt: Date;
|
|
15
|
-
updatedAt: Date;
|
|
16
|
-
workspaceId: string;
|
|
17
|
-
workflowId: string;
|
|
18
|
-
}
|
|
1
|
+
export type { DocumentItemInterface } from '../../api/document.schema.js';
|
|
19
2
|
//# sourceMappingURL=document-item.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-item.interface.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/document-item.interface.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"document-item.interface.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/document-item.interface.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -4,7 +4,4 @@ export * from './transition-payload.interface.js';
|
|
|
4
4
|
export * from './transition-metadata.interface.js';
|
|
5
5
|
export * from './document-item.interface.js';
|
|
6
6
|
export * from './workflow.interface.js';
|
|
7
|
-
export * from './client-message.interface.js';
|
|
8
|
-
export * from './workflow-config.interface.js';
|
|
9
|
-
export * from './tool-config.interface.js';
|
|
10
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC"}
|
|
@@ -4,7 +4,4 @@ export * from './transition-payload.interface.js';
|
|
|
4
4
|
export * from './transition-metadata.interface.js';
|
|
5
5
|
export * from './document-item.interface.js';
|
|
6
6
|
export * from './workflow.interface.js';
|
|
7
|
-
export * from './client-message.interface.js';
|
|
8
|
-
export * from './workflow-config.interface.js';
|
|
9
|
-
export * from './tool-config.interface.js';
|
|
10
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@loopstack/contracts",
|
|
3
3
|
"displayName": "Loopstack Contracts",
|
|
4
4
|
"description": "A collection of types and schemas shared between projects",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.37.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Jakob Klippel",
|
|
@@ -27,17 +27,23 @@
|
|
|
27
27
|
"./api": {
|
|
28
28
|
"types": "./dist/api/index.d.ts",
|
|
29
29
|
"default": "./dist/api/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./events": {
|
|
32
|
+
"types": "./dist/events/index.d.ts",
|
|
33
|
+
"default": "./dist/events/index.js"
|
|
30
34
|
}
|
|
31
35
|
},
|
|
32
36
|
"scripts": {
|
|
33
|
-
"build": "tsc",
|
|
37
|
+
"build": "tsc -p tsconfig.build.json",
|
|
34
38
|
"compile": "tsc --noEmit",
|
|
35
39
|
"format": "prettier --write .",
|
|
36
40
|
"lint": "eslint .",
|
|
37
|
-
"
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"watch": "tsc -p tsconfig.build.json --watch"
|
|
38
43
|
},
|
|
39
44
|
"dependencies": {},
|
|
40
45
|
"devDependencies": {
|
|
46
|
+
"vitest": "^4.1.6",
|
|
41
47
|
"zod": "^4.3.6"
|
|
42
48
|
},
|
|
43
49
|
"peerDependencies": {
|
|
@@ -59,6 +65,9 @@
|
|
|
59
65
|
],
|
|
60
66
|
"api": [
|
|
61
67
|
"./dist/api/index.d.ts"
|
|
68
|
+
],
|
|
69
|
+
"events": [
|
|
70
|
+
"./dist/events/index.d.ts"
|
|
62
71
|
]
|
|
63
72
|
}
|
|
64
73
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.interface.d.ts","sourceRoot":"","sources":["../../src/api/auth.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.interface.js","sourceRoot":"","sources":["../../src/api/auth.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.interface.d.ts","sourceRoot":"","sources":["../../src/api/common.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;CAClB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.interface.js","sourceRoot":"","sources":["../../src/api/common.interface.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { WorkflowInterface } from '../types/interfaces/workflow.interface.js';
|
|
2
|
-
import { WorkflowItemInterface } from './workflow.interface.js';
|
|
3
|
-
export interface DashboardStatsInterface {
|
|
4
|
-
workspaceCount: number;
|
|
5
|
-
totalAutomations: number;
|
|
6
|
-
totalAutomationRuns: number;
|
|
7
|
-
completedRuns: number;
|
|
8
|
-
errorRuns: number;
|
|
9
|
-
inProgressRuns: number;
|
|
10
|
-
recentErrors: WorkflowInterface[];
|
|
11
|
-
recentRuns: WorkflowItemInterface[];
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=dashboard.interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.interface.d.ts","sourceRoot":"","sources":["../../src/api/dashboard.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,WAAW,uBAAuB;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAClC,UAAU,EAAE,qBAAqB,EAAE,CAAC;CACrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.interface.js","sourceRoot":"","sources":["../../src/api/dashboard.interface.ts"],"names":[],"mappings":""}
|