@mastra/core 0.1.0 → 0.1.2

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.
Files changed (56) hide show
  1. package/dist/authenticator.d.ts +62 -0
  2. package/dist/constants.d.ts +1 -0
  3. package/dist/core.cjs.development.js +5011 -0
  4. package/dist/core.cjs.development.js.map +1 -0
  5. package/dist/core.cjs.production.min.js +2 -0
  6. package/dist/core.cjs.production.min.js.map +1 -0
  7. package/dist/core.esm.js +4947 -0
  8. package/dist/core.esm.js.map +1 -0
  9. package/dist/data-access/index.d.ts +350 -0
  10. package/dist/framework.d.ts +116 -0
  11. package/dist/generated-types/index.d.ts +4 -0
  12. package/dist/index.d.ts +16 -0
  13. package/dist/index.js +8 -0
  14. package/dist/integration.d.ts +100 -0
  15. package/dist/lib/index.d.ts +5 -0
  16. package/dist/lib/query-builder/constants.d.ts +16 -0
  17. package/dist/lib/query-builder/filters/sql.d.ts +8 -0
  18. package/dist/lib/query-builder/schema.d.ts +36 -0
  19. package/dist/lib/query-builder/sorts/sql.d.ts +7 -0
  20. package/dist/lib/query-builder/types.d.ts +30 -0
  21. package/dist/lib/query-builder/utils.d.ts +26 -0
  22. package/dist/lib/utils/object.d.ts +50 -0
  23. package/dist/next/callback.d.ts +3 -0
  24. package/dist/next/connect.d.ts +3 -0
  25. package/dist/next/index.d.ts +15 -0
  26. package/dist/next/inngest.d.ts +3 -0
  27. package/dist/next/utils.d.ts +9 -0
  28. package/dist/next/webhook.d.ts +9 -0
  29. package/dist/prisma/client.d.ts +2 -0
  30. package/dist/prisma/client.ts +31 -0
  31. package/dist/prisma/gen.js +139 -0
  32. package/dist/prisma/migrations/20240828034109_initial_migration/migration.sql +111 -0
  33. package/dist/prisma/migrations/20240829210901_initial_migration/migration.sql +1 -0
  34. package/dist/prisma/migrations/20240905143158_initial_migration/migration.sql +1 -0
  35. package/dist/prisma/migrations/20240911212856_initial_migration/migration.sql +1 -0
  36. package/dist/prisma/migrations/20240915044235_initial_migration/migration.sql +1 -0
  37. package/dist/prisma/migrations/migration_lock.toml +3 -0
  38. package/dist/prisma/schema.prisma +129 -0
  39. package/dist/schemas.d.ts +84 -0
  40. package/dist/service/service.property.d.ts +24 -0
  41. package/dist/service/service.record.d.ts +24 -0
  42. package/dist/sync-factory.d.ts +13 -0
  43. package/dist/sync-fixtures/github.d.ts +949 -0
  44. package/dist/sync-fixtures/stripe.d.ts +92 -0
  45. package/dist/types.d.ts +367 -0
  46. package/dist/utils/errors.d.ts +3 -0
  47. package/dist/utils/index.d.ts +12 -0
  48. package/dist/utils/inngest.d.ts +4 -0
  49. package/dist/workflows/conditions/constants.d.ts +16 -0
  50. package/dist/workflows/conditions/types.d.ts +2 -0
  51. package/dist/workflows/handler.d.ts +38 -0
  52. package/dist/workflows/runner.d.ts +43 -0
  53. package/dist/workflows/schemas.d.ts +1043 -0
  54. package/dist/workflows/types.d.ts +96 -0
  55. package/dist/workflows/utils.d.ts +111 -0
  56. package/package.json +2 -2
@@ -0,0 +1,1043 @@
1
+ import { z } from 'zod';
2
+ declare const baseConditionSchema: z.ZodObject<{
3
+ id: z.ZodOptional<z.ZodString>;
4
+ field: z.ZodOptional<z.ZodString>;
5
+ operator: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
6
+ readonly EQUAL: "EQUAL";
7
+ readonly NOT_EQUAL: "NOT_EQUAL";
8
+ readonly CONTAINS: "CONTAINS";
9
+ readonly IS: "IS";
10
+ readonly IS_NOT: "IS_NOT";
11
+ readonly NOT_CONTAINS: "NOT_CONTAINS";
12
+ readonly IS_ANY_OF: "IS_ANY_OF";
13
+ readonly GREATER_THAN: "GREATER_THAN";
14
+ readonly LESS_THAN: "LESS_THAN";
15
+ readonly DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN";
16
+ readonly GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL";
17
+ readonly LESS_THAN_OR_EQUAL: "LESS_THAN_OR_EQUAL";
18
+ readonly SET: "SET";
19
+ readonly NOT_SET: "NOT_SET";
20
+ }>, z.ZodLiteral<"">]>>;
21
+ value: z.ZodOptional<z.ZodUnknown>;
22
+ blockId: z.ZodOptional<z.ZodString>;
23
+ actionId: z.ZodOptional<z.ZodString>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ id?: string | undefined;
26
+ field?: string | undefined;
27
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
28
+ value?: unknown;
29
+ blockId?: string | undefined;
30
+ actionId?: string | undefined;
31
+ }, {
32
+ id?: string | undefined;
33
+ field?: string | undefined;
34
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
35
+ value?: unknown;
36
+ blockId?: string | undefined;
37
+ actionId?: string | undefined;
38
+ }>;
39
+ type Condition = z.infer<typeof baseConditionSchema> & {
40
+ and?: Condition[];
41
+ or?: Condition[];
42
+ };
43
+ export declare const conditionSchema: z.ZodType<Condition>;
44
+ export declare const logicConditionSchema: z.ZodObject<z.objectUtil.extendShape<{
45
+ id: z.ZodOptional<z.ZodString>;
46
+ field: z.ZodOptional<z.ZodString>;
47
+ operator: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
48
+ readonly EQUAL: "EQUAL";
49
+ readonly NOT_EQUAL: "NOT_EQUAL";
50
+ readonly CONTAINS: "CONTAINS";
51
+ readonly IS: "IS";
52
+ readonly IS_NOT: "IS_NOT";
53
+ readonly NOT_CONTAINS: "NOT_CONTAINS";
54
+ readonly IS_ANY_OF: "IS_ANY_OF";
55
+ readonly GREATER_THAN: "GREATER_THAN";
56
+ readonly LESS_THAN: "LESS_THAN";
57
+ readonly DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN";
58
+ readonly GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL";
59
+ readonly LESS_THAN_OR_EQUAL: "LESS_THAN_OR_EQUAL";
60
+ readonly SET: "SET";
61
+ readonly NOT_SET: "NOT_SET";
62
+ }>, z.ZodLiteral<"">]>>;
63
+ value: z.ZodOptional<z.ZodUnknown>;
64
+ blockId: z.ZodOptional<z.ZodString>;
65
+ actionId: z.ZodOptional<z.ZodString>;
66
+ }, {
67
+ and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
68
+ id: z.ZodOptional<z.ZodString>;
69
+ field: z.ZodOptional<z.ZodString>;
70
+ operator: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
71
+ readonly EQUAL: "EQUAL";
72
+ readonly NOT_EQUAL: "NOT_EQUAL";
73
+ readonly CONTAINS: "CONTAINS";
74
+ readonly IS: "IS";
75
+ readonly IS_NOT: "IS_NOT";
76
+ readonly NOT_CONTAINS: "NOT_CONTAINS";
77
+ readonly IS_ANY_OF: "IS_ANY_OF";
78
+ readonly GREATER_THAN: "GREATER_THAN";
79
+ readonly LESS_THAN: "LESS_THAN";
80
+ readonly DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN";
81
+ readonly GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL";
82
+ readonly LESS_THAN_OR_EQUAL: "LESS_THAN_OR_EQUAL";
83
+ readonly SET: "SET";
84
+ readonly NOT_SET: "NOT_SET";
85
+ }>, z.ZodLiteral<"">]>>;
86
+ value: z.ZodOptional<z.ZodUnknown>;
87
+ blockId: z.ZodOptional<z.ZodString>;
88
+ actionId: z.ZodOptional<z.ZodString>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ id?: string | undefined;
91
+ field?: string | undefined;
92
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
93
+ value?: unknown;
94
+ blockId?: string | undefined;
95
+ actionId?: string | undefined;
96
+ }, {
97
+ id?: string | undefined;
98
+ field?: string | undefined;
99
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
100
+ value?: unknown;
101
+ blockId?: string | undefined;
102
+ actionId?: string | undefined;
103
+ }>, "many">>>;
104
+ or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
105
+ id: z.ZodOptional<z.ZodString>;
106
+ field: z.ZodOptional<z.ZodString>;
107
+ operator: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
108
+ readonly EQUAL: "EQUAL";
109
+ readonly NOT_EQUAL: "NOT_EQUAL";
110
+ readonly CONTAINS: "CONTAINS";
111
+ readonly IS: "IS";
112
+ readonly IS_NOT: "IS_NOT";
113
+ readonly NOT_CONTAINS: "NOT_CONTAINS";
114
+ readonly IS_ANY_OF: "IS_ANY_OF";
115
+ readonly GREATER_THAN: "GREATER_THAN";
116
+ readonly LESS_THAN: "LESS_THAN";
117
+ readonly DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN";
118
+ readonly GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL";
119
+ readonly LESS_THAN_OR_EQUAL: "LESS_THAN_OR_EQUAL";
120
+ readonly SET: "SET";
121
+ readonly NOT_SET: "NOT_SET";
122
+ }>, z.ZodLiteral<"">]>>;
123
+ value: z.ZodOptional<z.ZodUnknown>;
124
+ blockId: z.ZodOptional<z.ZodString>;
125
+ actionId: z.ZodOptional<z.ZodString>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ id?: string | undefined;
128
+ field?: string | undefined;
129
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
130
+ value?: unknown;
131
+ blockId?: string | undefined;
132
+ actionId?: string | undefined;
133
+ }, {
134
+ id?: string | undefined;
135
+ field?: string | undefined;
136
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
137
+ value?: unknown;
138
+ blockId?: string | undefined;
139
+ actionId?: string | undefined;
140
+ }>, "many">>>;
141
+ blockId: z.ZodString;
142
+ actionId: z.ZodString;
143
+ isDefault: z.ZodOptional<z.ZodBoolean>;
144
+ }>, "strip", z.ZodTypeAny, {
145
+ blockId: string;
146
+ actionId: string;
147
+ id?: string | undefined;
148
+ field?: string | undefined;
149
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
150
+ value?: unknown;
151
+ and?: {
152
+ id?: string | undefined;
153
+ field?: string | undefined;
154
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
155
+ value?: unknown;
156
+ blockId?: string | undefined;
157
+ actionId?: string | undefined;
158
+ }[] | undefined;
159
+ or?: {
160
+ id?: string | undefined;
161
+ field?: string | undefined;
162
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
163
+ value?: unknown;
164
+ blockId?: string | undefined;
165
+ actionId?: string | undefined;
166
+ }[] | undefined;
167
+ isDefault?: boolean | undefined;
168
+ }, {
169
+ blockId: string;
170
+ actionId: string;
171
+ id?: string | undefined;
172
+ field?: string | undefined;
173
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
174
+ value?: unknown;
175
+ and?: {
176
+ id?: string | undefined;
177
+ field?: string | undefined;
178
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
179
+ value?: unknown;
180
+ blockId?: string | undefined;
181
+ actionId?: string | undefined;
182
+ }[] | undefined;
183
+ or?: {
184
+ id?: string | undefined;
185
+ field?: string | undefined;
186
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
187
+ value?: unknown;
188
+ blockId?: string | undefined;
189
+ actionId?: string | undefined;
190
+ }[] | undefined;
191
+ isDefault?: boolean | undefined;
192
+ }>;
193
+ export declare const PayloadFieldTypeEnum: {
194
+ readonly VARIABLE: "variable";
195
+ readonly STATIC: "static";
196
+ };
197
+ export declare const actionPayloadValueSchema: z.ZodAny;
198
+ export declare const actionPayloadSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
199
+ export declare const actionVariableSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
200
+ refBlockId: z.ZodString;
201
+ path: z.ZodString;
202
+ }, "strip", z.ZodTypeAny, {
203
+ path: string;
204
+ refBlockId: string;
205
+ }, {
206
+ path: string;
207
+ refBlockId: string;
208
+ }>>;
209
+ declare const baseActionSchema: z.ZodObject<{
210
+ id: z.ZodString;
211
+ type: z.ZodString;
212
+ description: z.ZodOptional<z.ZodString>;
213
+ payload: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
214
+ condition: z.ZodUnion<[z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>, z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
215
+ id: z.ZodOptional<z.ZodString>;
216
+ field: z.ZodOptional<z.ZodString>;
217
+ operator: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
218
+ readonly EQUAL: "EQUAL";
219
+ readonly NOT_EQUAL: "NOT_EQUAL";
220
+ readonly CONTAINS: "CONTAINS";
221
+ readonly IS: "IS";
222
+ readonly IS_NOT: "IS_NOT";
223
+ readonly NOT_CONTAINS: "NOT_CONTAINS";
224
+ readonly IS_ANY_OF: "IS_ANY_OF";
225
+ readonly GREATER_THAN: "GREATER_THAN";
226
+ readonly LESS_THAN: "LESS_THAN";
227
+ readonly DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN";
228
+ readonly GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL";
229
+ readonly LESS_THAN_OR_EQUAL: "LESS_THAN_OR_EQUAL";
230
+ readonly SET: "SET";
231
+ readonly NOT_SET: "NOT_SET";
232
+ }>, z.ZodLiteral<"">]>>;
233
+ value: z.ZodOptional<z.ZodUnknown>;
234
+ blockId: z.ZodOptional<z.ZodString>;
235
+ actionId: z.ZodOptional<z.ZodString>;
236
+ }, {
237
+ and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
238
+ id: z.ZodOptional<z.ZodString>;
239
+ field: z.ZodOptional<z.ZodString>;
240
+ operator: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
241
+ readonly EQUAL: "EQUAL";
242
+ readonly NOT_EQUAL: "NOT_EQUAL";
243
+ readonly CONTAINS: "CONTAINS";
244
+ readonly IS: "IS";
245
+ readonly IS_NOT: "IS_NOT";
246
+ readonly NOT_CONTAINS: "NOT_CONTAINS";
247
+ readonly IS_ANY_OF: "IS_ANY_OF";
248
+ readonly GREATER_THAN: "GREATER_THAN";
249
+ readonly LESS_THAN: "LESS_THAN";
250
+ readonly DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN";
251
+ readonly GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL";
252
+ readonly LESS_THAN_OR_EQUAL: "LESS_THAN_OR_EQUAL";
253
+ readonly SET: "SET";
254
+ readonly NOT_SET: "NOT_SET";
255
+ }>, z.ZodLiteral<"">]>>;
256
+ value: z.ZodOptional<z.ZodUnknown>;
257
+ blockId: z.ZodOptional<z.ZodString>;
258
+ actionId: z.ZodOptional<z.ZodString>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ id?: string | undefined;
261
+ field?: string | undefined;
262
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
263
+ value?: unknown;
264
+ blockId?: string | undefined;
265
+ actionId?: string | undefined;
266
+ }, {
267
+ id?: string | undefined;
268
+ field?: string | undefined;
269
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
270
+ value?: unknown;
271
+ blockId?: string | undefined;
272
+ actionId?: string | undefined;
273
+ }>, "many">>>;
274
+ or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
275
+ id: z.ZodOptional<z.ZodString>;
276
+ field: z.ZodOptional<z.ZodString>;
277
+ operator: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
278
+ readonly EQUAL: "EQUAL";
279
+ readonly NOT_EQUAL: "NOT_EQUAL";
280
+ readonly CONTAINS: "CONTAINS";
281
+ readonly IS: "IS";
282
+ readonly IS_NOT: "IS_NOT";
283
+ readonly NOT_CONTAINS: "NOT_CONTAINS";
284
+ readonly IS_ANY_OF: "IS_ANY_OF";
285
+ readonly GREATER_THAN: "GREATER_THAN";
286
+ readonly LESS_THAN: "LESS_THAN";
287
+ readonly DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN";
288
+ readonly GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL";
289
+ readonly LESS_THAN_OR_EQUAL: "LESS_THAN_OR_EQUAL";
290
+ readonly SET: "SET";
291
+ readonly NOT_SET: "NOT_SET";
292
+ }>, z.ZodLiteral<"">]>>;
293
+ value: z.ZodOptional<z.ZodUnknown>;
294
+ blockId: z.ZodOptional<z.ZodString>;
295
+ actionId: z.ZodOptional<z.ZodString>;
296
+ }, "strip", z.ZodTypeAny, {
297
+ id?: string | undefined;
298
+ field?: string | undefined;
299
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
300
+ value?: unknown;
301
+ blockId?: string | undefined;
302
+ actionId?: string | undefined;
303
+ }, {
304
+ id?: string | undefined;
305
+ field?: string | undefined;
306
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
307
+ value?: unknown;
308
+ blockId?: string | undefined;
309
+ actionId?: string | undefined;
310
+ }>, "many">>>;
311
+ blockId: z.ZodString;
312
+ actionId: z.ZodString;
313
+ isDefault: z.ZodOptional<z.ZodBoolean>;
314
+ }>, "strip", z.ZodTypeAny, {
315
+ blockId: string;
316
+ actionId: string;
317
+ id?: string | undefined;
318
+ field?: string | undefined;
319
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
320
+ value?: unknown;
321
+ and?: {
322
+ id?: string | undefined;
323
+ field?: string | undefined;
324
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
325
+ value?: unknown;
326
+ blockId?: string | undefined;
327
+ actionId?: string | undefined;
328
+ }[] | undefined;
329
+ or?: {
330
+ id?: string | undefined;
331
+ field?: string | undefined;
332
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
333
+ value?: unknown;
334
+ blockId?: string | undefined;
335
+ actionId?: string | undefined;
336
+ }[] | undefined;
337
+ isDefault?: boolean | undefined;
338
+ }, {
339
+ blockId: string;
340
+ actionId: string;
341
+ id?: string | undefined;
342
+ field?: string | undefined;
343
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
344
+ value?: unknown;
345
+ and?: {
346
+ id?: string | undefined;
347
+ field?: string | undefined;
348
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
349
+ value?: unknown;
350
+ blockId?: string | undefined;
351
+ actionId?: string | undefined;
352
+ }[] | undefined;
353
+ or?: {
354
+ id?: string | undefined;
355
+ field?: string | undefined;
356
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
357
+ value?: unknown;
358
+ blockId?: string | undefined;
359
+ actionId?: string | undefined;
360
+ }[] | undefined;
361
+ isDefault?: boolean | undefined;
362
+ }>, "many">>]>;
363
+ parentActionId: z.ZodOptional<z.ZodString>;
364
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
365
+ refBlockId: z.ZodString;
366
+ path: z.ZodString;
367
+ }, "strip", z.ZodTypeAny, {
368
+ path: string;
369
+ refBlockId: string;
370
+ }, {
371
+ path: string;
372
+ refBlockId: string;
373
+ }>>>>>;
374
+ }, "strip", z.ZodTypeAny, {
375
+ id: string;
376
+ type: string;
377
+ description?: string | undefined;
378
+ payload?: Record<string, any> | undefined;
379
+ condition?: Condition | {
380
+ blockId: string;
381
+ actionId: string;
382
+ id?: string | undefined;
383
+ field?: string | undefined;
384
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
385
+ value?: unknown;
386
+ and?: {
387
+ id?: string | undefined;
388
+ field?: string | undefined;
389
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
390
+ value?: unknown;
391
+ blockId?: string | undefined;
392
+ actionId?: string | undefined;
393
+ }[] | undefined;
394
+ or?: {
395
+ id?: string | undefined;
396
+ field?: string | undefined;
397
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
398
+ value?: unknown;
399
+ blockId?: string | undefined;
400
+ actionId?: string | undefined;
401
+ }[] | undefined;
402
+ isDefault?: boolean | undefined;
403
+ }[] | undefined;
404
+ parentActionId?: string | undefined;
405
+ variables?: Record<string, Record<string, {
406
+ path: string;
407
+ refBlockId: string;
408
+ }> | undefined> | undefined;
409
+ }, {
410
+ id: string;
411
+ type: string;
412
+ description?: string | undefined;
413
+ payload?: Record<string, any> | undefined;
414
+ condition?: Condition | {
415
+ blockId: string;
416
+ actionId: string;
417
+ id?: string | undefined;
418
+ field?: string | undefined;
419
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
420
+ value?: unknown;
421
+ and?: {
422
+ id?: string | undefined;
423
+ field?: string | undefined;
424
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
425
+ value?: unknown;
426
+ blockId?: string | undefined;
427
+ actionId?: string | undefined;
428
+ }[] | undefined;
429
+ or?: {
430
+ id?: string | undefined;
431
+ field?: string | undefined;
432
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
433
+ value?: unknown;
434
+ blockId?: string | undefined;
435
+ actionId?: string | undefined;
436
+ }[] | undefined;
437
+ isDefault?: boolean | undefined;
438
+ }[] | undefined;
439
+ parentActionId?: string | undefined;
440
+ variables?: Record<string, Record<string, {
441
+ path: string;
442
+ refBlockId: string;
443
+ }> | undefined> | undefined;
444
+ }>;
445
+ type Action = z.infer<typeof baseActionSchema> & {
446
+ subActions: Action[];
447
+ };
448
+ export declare const actionSchema: z.ZodType<Action>;
449
+ export declare const triggerSchema: z.ZodObject<{
450
+ id: z.ZodString;
451
+ type: z.ZodString;
452
+ description: z.ZodOptional<z.ZodString>;
453
+ payload: z.ZodOptional<z.ZodObject<{
454
+ value: z.ZodUnknown;
455
+ }, "strip", z.ZodTypeAny, {
456
+ value?: unknown;
457
+ }, {
458
+ value?: unknown;
459
+ }>>;
460
+ condition: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ id: string;
463
+ type: string;
464
+ description?: string | undefined;
465
+ payload?: {
466
+ value?: unknown;
467
+ } | undefined;
468
+ condition?: Condition | undefined;
469
+ }, {
470
+ id: string;
471
+ type: string;
472
+ description?: string | undefined;
473
+ payload?: {
474
+ value?: unknown;
475
+ } | undefined;
476
+ condition?: Condition | undefined;
477
+ }>;
478
+ export declare const runSchema: z.ZodObject<{
479
+ id: z.ZodString;
480
+ status: z.ZodNativeEnum<{
481
+ readonly PENDING: "PENDING";
482
+ readonly RUNNING: "RUNNING";
483
+ readonly COMPLETED: "COMPLETED";
484
+ readonly FAILED: "FAILED";
485
+ }>;
486
+ blueprintId: z.ZodString;
487
+ createdAt: z.ZodDate;
488
+ updatedAt: z.ZodOptional<z.ZodDate>;
489
+ completedAt: z.ZodOptional<z.ZodDate>;
490
+ failedAt: z.ZodOptional<z.ZodDate>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ id: string;
493
+ status: "PENDING" | "RUNNING" | "COMPLETED" | "FAILED";
494
+ blueprintId: string;
495
+ createdAt: Date;
496
+ updatedAt?: Date | undefined;
497
+ completedAt?: Date | undefined;
498
+ failedAt?: Date | undefined;
499
+ }, {
500
+ id: string;
501
+ status: "PENDING" | "RUNNING" | "COMPLETED" | "FAILED";
502
+ blueprintId: string;
503
+ createdAt: Date;
504
+ updatedAt?: Date | undefined;
505
+ completedAt?: Date | undefined;
506
+ failedAt?: Date | undefined;
507
+ }>;
508
+ export declare const blueprintSchema: z.ZodObject<{
509
+ id: z.ZodString;
510
+ title: z.ZodString;
511
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
512
+ status: z.ZodNativeEnum<{
513
+ readonly DRAFT: "DRAFT";
514
+ readonly UNPUBLISHED: "UNPUBLISHED";
515
+ readonly PUBLISHED: "PUBLISHED";
516
+ }>;
517
+ trigger: z.ZodNullable<z.ZodObject<{
518
+ id: z.ZodString;
519
+ type: z.ZodString;
520
+ description: z.ZodOptional<z.ZodString>;
521
+ payload: z.ZodOptional<z.ZodObject<{
522
+ value: z.ZodUnknown;
523
+ }, "strip", z.ZodTypeAny, {
524
+ value?: unknown;
525
+ }, {
526
+ value?: unknown;
527
+ }>>;
528
+ condition: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
529
+ }, "strip", z.ZodTypeAny, {
530
+ id: string;
531
+ type: string;
532
+ description?: string | undefined;
533
+ payload?: {
534
+ value?: unknown;
535
+ } | undefined;
536
+ condition?: Condition | undefined;
537
+ }, {
538
+ id: string;
539
+ type: string;
540
+ description?: string | undefined;
541
+ payload?: {
542
+ value?: unknown;
543
+ } | undefined;
544
+ condition?: Condition | undefined;
545
+ }>>;
546
+ actions: z.ZodArray<z.ZodType<Action, z.ZodTypeDef, Action>, "many">;
547
+ ownerId: z.ZodString;
548
+ workspaceId: z.ZodString;
549
+ createdAt: z.ZodDate;
550
+ updatedAt: z.ZodOptional<z.ZodDate>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ id: string;
553
+ status: "DRAFT" | "UNPUBLISHED" | "PUBLISHED";
554
+ createdAt: Date;
555
+ title: string;
556
+ trigger: {
557
+ id: string;
558
+ type: string;
559
+ description?: string | undefined;
560
+ payload?: {
561
+ value?: unknown;
562
+ } | undefined;
563
+ condition?: Condition | undefined;
564
+ } | null;
565
+ actions: Action[];
566
+ ownerId: string;
567
+ workspaceId: string;
568
+ description?: string | null | undefined;
569
+ updatedAt?: Date | undefined;
570
+ }, {
571
+ id: string;
572
+ status: "DRAFT" | "UNPUBLISHED" | "PUBLISHED";
573
+ createdAt: Date;
574
+ title: string;
575
+ trigger: {
576
+ id: string;
577
+ type: string;
578
+ description?: string | undefined;
579
+ payload?: {
580
+ value?: unknown;
581
+ } | undefined;
582
+ condition?: Condition | undefined;
583
+ } | null;
584
+ actions: Action[];
585
+ ownerId: string;
586
+ workspaceId: string;
587
+ description?: string | null | undefined;
588
+ updatedAt?: Date | undefined;
589
+ }>;
590
+ export declare const createBlueprintSchema: z.ZodObject<Omit<{
591
+ id: z.ZodString;
592
+ title: z.ZodString;
593
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
594
+ status: z.ZodNativeEnum<{
595
+ readonly DRAFT: "DRAFT";
596
+ readonly UNPUBLISHED: "UNPUBLISHED";
597
+ readonly PUBLISHED: "PUBLISHED";
598
+ }>;
599
+ trigger: z.ZodNullable<z.ZodObject<{
600
+ id: z.ZodString;
601
+ type: z.ZodString;
602
+ description: z.ZodOptional<z.ZodString>;
603
+ payload: z.ZodOptional<z.ZodObject<{
604
+ value: z.ZodUnknown;
605
+ }, "strip", z.ZodTypeAny, {
606
+ value?: unknown;
607
+ }, {
608
+ value?: unknown;
609
+ }>>;
610
+ condition: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
611
+ }, "strip", z.ZodTypeAny, {
612
+ id: string;
613
+ type: string;
614
+ description?: string | undefined;
615
+ payload?: {
616
+ value?: unknown;
617
+ } | undefined;
618
+ condition?: Condition | undefined;
619
+ }, {
620
+ id: string;
621
+ type: string;
622
+ description?: string | undefined;
623
+ payload?: {
624
+ value?: unknown;
625
+ } | undefined;
626
+ condition?: Condition | undefined;
627
+ }>>;
628
+ actions: z.ZodArray<z.ZodType<Action, z.ZodTypeDef, Action>, "many">;
629
+ ownerId: z.ZodString;
630
+ workspaceId: z.ZodString;
631
+ createdAt: z.ZodDate;
632
+ updatedAt: z.ZodOptional<z.ZodDate>;
633
+ }, "id" | "createdAt" | "updatedAt" | "ownerId">, "strip", z.ZodTypeAny, {
634
+ status: "DRAFT" | "UNPUBLISHED" | "PUBLISHED";
635
+ title: string;
636
+ trigger: {
637
+ id: string;
638
+ type: string;
639
+ description?: string | undefined;
640
+ payload?: {
641
+ value?: unknown;
642
+ } | undefined;
643
+ condition?: Condition | undefined;
644
+ } | null;
645
+ actions: Action[];
646
+ workspaceId: string;
647
+ description?: string | null | undefined;
648
+ }, {
649
+ status: "DRAFT" | "UNPUBLISHED" | "PUBLISHED";
650
+ title: string;
651
+ trigger: {
652
+ id: string;
653
+ type: string;
654
+ description?: string | undefined;
655
+ payload?: {
656
+ value?: unknown;
657
+ } | undefined;
658
+ condition?: Condition | undefined;
659
+ } | null;
660
+ actions: Action[];
661
+ workspaceId: string;
662
+ description?: string | null | undefined;
663
+ }>;
664
+ export declare const createRunSchema: z.ZodObject<Omit<{
665
+ id: z.ZodString;
666
+ status: z.ZodNativeEnum<{
667
+ readonly PENDING: "PENDING";
668
+ readonly RUNNING: "RUNNING";
669
+ readonly COMPLETED: "COMPLETED";
670
+ readonly FAILED: "FAILED";
671
+ }>;
672
+ blueprintId: z.ZodString;
673
+ createdAt: z.ZodDate;
674
+ updatedAt: z.ZodOptional<z.ZodDate>;
675
+ completedAt: z.ZodOptional<z.ZodDate>;
676
+ failedAt: z.ZodOptional<z.ZodDate>;
677
+ }, "id" | "createdAt" | "updatedAt" | "completedAt" | "failedAt">, "strip", z.ZodTypeAny, {
678
+ status: "PENDING" | "RUNNING" | "COMPLETED" | "FAILED";
679
+ blueprintId: string;
680
+ }, {
681
+ status: "PENDING" | "RUNNING" | "COMPLETED" | "FAILED";
682
+ blueprintId: string;
683
+ }>;
684
+ export declare const updateBlueprintSchema: z.ZodObject<{
685
+ status: z.ZodOptional<z.ZodNativeEnum<{
686
+ readonly DRAFT: "DRAFT";
687
+ readonly UNPUBLISHED: "UNPUBLISHED";
688
+ readonly PUBLISHED: "PUBLISHED";
689
+ }>>;
690
+ description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
691
+ title: z.ZodOptional<z.ZodString>;
692
+ trigger: z.ZodOptional<z.ZodNullable<z.ZodObject<{
693
+ id: z.ZodString;
694
+ type: z.ZodString;
695
+ description: z.ZodOptional<z.ZodString>;
696
+ payload: z.ZodOptional<z.ZodObject<{
697
+ value: z.ZodUnknown;
698
+ }, "strip", z.ZodTypeAny, {
699
+ value?: unknown;
700
+ }, {
701
+ value?: unknown;
702
+ }>>;
703
+ condition: z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>;
704
+ }, "strip", z.ZodTypeAny, {
705
+ id: string;
706
+ type: string;
707
+ description?: string | undefined;
708
+ payload?: {
709
+ value?: unknown;
710
+ } | undefined;
711
+ condition?: Condition | undefined;
712
+ }, {
713
+ id: string;
714
+ type: string;
715
+ description?: string | undefined;
716
+ payload?: {
717
+ value?: unknown;
718
+ } | undefined;
719
+ condition?: Condition | undefined;
720
+ }>>>;
721
+ actions: z.ZodOptional<z.ZodArray<z.ZodType<Action, z.ZodTypeDef, Action>, "many">>;
722
+ workspaceId: z.ZodOptional<z.ZodString>;
723
+ }, "strip", z.ZodTypeAny, {
724
+ status?: "DRAFT" | "UNPUBLISHED" | "PUBLISHED" | undefined;
725
+ description?: string | null | undefined;
726
+ title?: string | undefined;
727
+ trigger?: {
728
+ id: string;
729
+ type: string;
730
+ description?: string | undefined;
731
+ payload?: {
732
+ value?: unknown;
733
+ } | undefined;
734
+ condition?: Condition | undefined;
735
+ } | null | undefined;
736
+ actions?: Action[] | undefined;
737
+ workspaceId?: string | undefined;
738
+ }, {
739
+ status?: "DRAFT" | "UNPUBLISHED" | "PUBLISHED" | undefined;
740
+ description?: string | null | undefined;
741
+ title?: string | undefined;
742
+ trigger?: {
743
+ id: string;
744
+ type: string;
745
+ description?: string | undefined;
746
+ payload?: {
747
+ value?: unknown;
748
+ } | undefined;
749
+ condition?: Condition | undefined;
750
+ } | null | undefined;
751
+ actions?: Action[] | undefined;
752
+ workspaceId?: string | undefined;
753
+ }>;
754
+ export declare const updateRunSchema: z.ZodObject<{
755
+ status: z.ZodOptional<z.ZodNativeEnum<{
756
+ readonly PENDING: "PENDING";
757
+ readonly RUNNING: "RUNNING";
758
+ readonly COMPLETED: "COMPLETED";
759
+ readonly FAILED: "FAILED";
760
+ }>>;
761
+ createdAt: z.ZodOptional<z.ZodDate>;
762
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodDate>>;
763
+ completedAt: z.ZodOptional<z.ZodOptional<z.ZodDate>>;
764
+ failedAt: z.ZodOptional<z.ZodOptional<z.ZodDate>>;
765
+ }, "strip", z.ZodTypeAny, {
766
+ status?: "PENDING" | "RUNNING" | "COMPLETED" | "FAILED" | undefined;
767
+ createdAt?: Date | undefined;
768
+ updatedAt?: Date | undefined;
769
+ completedAt?: Date | undefined;
770
+ failedAt?: Date | undefined;
771
+ }, {
772
+ status?: "PENDING" | "RUNNING" | "COMPLETED" | "FAILED" | undefined;
773
+ createdAt?: Date | undefined;
774
+ updatedAt?: Date | undefined;
775
+ completedAt?: Date | undefined;
776
+ failedAt?: Date | undefined;
777
+ }>;
778
+ export declare const updatActionSchema: z.ZodObject<{
779
+ id: z.ZodOptional<z.ZodString>;
780
+ type: z.ZodOptional<z.ZodString>;
781
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
782
+ payload: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>>;
783
+ condition: z.ZodOptional<z.ZodUnion<[z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>, z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
784
+ id: z.ZodOptional<z.ZodString>;
785
+ field: z.ZodOptional<z.ZodString>;
786
+ operator: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
787
+ readonly EQUAL: "EQUAL";
788
+ readonly NOT_EQUAL: "NOT_EQUAL";
789
+ readonly CONTAINS: "CONTAINS";
790
+ readonly IS: "IS";
791
+ readonly IS_NOT: "IS_NOT";
792
+ readonly NOT_CONTAINS: "NOT_CONTAINS";
793
+ readonly IS_ANY_OF: "IS_ANY_OF";
794
+ readonly GREATER_THAN: "GREATER_THAN";
795
+ readonly LESS_THAN: "LESS_THAN";
796
+ readonly DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN";
797
+ readonly GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL";
798
+ readonly LESS_THAN_OR_EQUAL: "LESS_THAN_OR_EQUAL";
799
+ readonly SET: "SET";
800
+ readonly NOT_SET: "NOT_SET";
801
+ }>, z.ZodLiteral<"">]>>;
802
+ value: z.ZodOptional<z.ZodUnknown>;
803
+ blockId: z.ZodOptional<z.ZodString>;
804
+ actionId: z.ZodOptional<z.ZodString>;
805
+ }, {
806
+ and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
807
+ id: z.ZodOptional<z.ZodString>;
808
+ field: z.ZodOptional<z.ZodString>;
809
+ operator: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
810
+ readonly EQUAL: "EQUAL";
811
+ readonly NOT_EQUAL: "NOT_EQUAL";
812
+ readonly CONTAINS: "CONTAINS";
813
+ readonly IS: "IS";
814
+ readonly IS_NOT: "IS_NOT";
815
+ readonly NOT_CONTAINS: "NOT_CONTAINS";
816
+ readonly IS_ANY_OF: "IS_ANY_OF";
817
+ readonly GREATER_THAN: "GREATER_THAN";
818
+ readonly LESS_THAN: "LESS_THAN";
819
+ readonly DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN";
820
+ readonly GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL";
821
+ readonly LESS_THAN_OR_EQUAL: "LESS_THAN_OR_EQUAL";
822
+ readonly SET: "SET";
823
+ readonly NOT_SET: "NOT_SET";
824
+ }>, z.ZodLiteral<"">]>>;
825
+ value: z.ZodOptional<z.ZodUnknown>;
826
+ blockId: z.ZodOptional<z.ZodString>;
827
+ actionId: z.ZodOptional<z.ZodString>;
828
+ }, "strip", z.ZodTypeAny, {
829
+ id?: string | undefined;
830
+ field?: string | undefined;
831
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
832
+ value?: unknown;
833
+ blockId?: string | undefined;
834
+ actionId?: string | undefined;
835
+ }, {
836
+ id?: string | undefined;
837
+ field?: string | undefined;
838
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
839
+ value?: unknown;
840
+ blockId?: string | undefined;
841
+ actionId?: string | undefined;
842
+ }>, "many">>>;
843
+ or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
844
+ id: z.ZodOptional<z.ZodString>;
845
+ field: z.ZodOptional<z.ZodString>;
846
+ operator: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
847
+ readonly EQUAL: "EQUAL";
848
+ readonly NOT_EQUAL: "NOT_EQUAL";
849
+ readonly CONTAINS: "CONTAINS";
850
+ readonly IS: "IS";
851
+ readonly IS_NOT: "IS_NOT";
852
+ readonly NOT_CONTAINS: "NOT_CONTAINS";
853
+ readonly IS_ANY_OF: "IS_ANY_OF";
854
+ readonly GREATER_THAN: "GREATER_THAN";
855
+ readonly LESS_THAN: "LESS_THAN";
856
+ readonly DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN";
857
+ readonly GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL";
858
+ readonly LESS_THAN_OR_EQUAL: "LESS_THAN_OR_EQUAL";
859
+ readonly SET: "SET";
860
+ readonly NOT_SET: "NOT_SET";
861
+ }>, z.ZodLiteral<"">]>>;
862
+ value: z.ZodOptional<z.ZodUnknown>;
863
+ blockId: z.ZodOptional<z.ZodString>;
864
+ actionId: z.ZodOptional<z.ZodString>;
865
+ }, "strip", z.ZodTypeAny, {
866
+ id?: string | undefined;
867
+ field?: string | undefined;
868
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
869
+ value?: unknown;
870
+ blockId?: string | undefined;
871
+ actionId?: string | undefined;
872
+ }, {
873
+ id?: string | undefined;
874
+ field?: string | undefined;
875
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
876
+ value?: unknown;
877
+ blockId?: string | undefined;
878
+ actionId?: string | undefined;
879
+ }>, "many">>>;
880
+ blockId: z.ZodString;
881
+ actionId: z.ZodString;
882
+ isDefault: z.ZodOptional<z.ZodBoolean>;
883
+ }>, "strip", z.ZodTypeAny, {
884
+ blockId: string;
885
+ actionId: string;
886
+ id?: string | undefined;
887
+ field?: string | undefined;
888
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
889
+ value?: unknown;
890
+ and?: {
891
+ id?: string | undefined;
892
+ field?: string | undefined;
893
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
894
+ value?: unknown;
895
+ blockId?: string | undefined;
896
+ actionId?: string | undefined;
897
+ }[] | undefined;
898
+ or?: {
899
+ id?: string | undefined;
900
+ field?: string | undefined;
901
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
902
+ value?: unknown;
903
+ blockId?: string | undefined;
904
+ actionId?: string | undefined;
905
+ }[] | undefined;
906
+ isDefault?: boolean | undefined;
907
+ }, {
908
+ blockId: string;
909
+ actionId: string;
910
+ id?: string | undefined;
911
+ field?: string | undefined;
912
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
913
+ value?: unknown;
914
+ and?: {
915
+ id?: string | undefined;
916
+ field?: string | undefined;
917
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
918
+ value?: unknown;
919
+ blockId?: string | undefined;
920
+ actionId?: string | undefined;
921
+ }[] | undefined;
922
+ or?: {
923
+ id?: string | undefined;
924
+ field?: string | undefined;
925
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
926
+ value?: unknown;
927
+ blockId?: string | undefined;
928
+ actionId?: string | undefined;
929
+ }[] | undefined;
930
+ isDefault?: boolean | undefined;
931
+ }>, "many">>]>>;
932
+ parentActionId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
933
+ variables: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
934
+ refBlockId: z.ZodString;
935
+ path: z.ZodString;
936
+ }, "strip", z.ZodTypeAny, {
937
+ path: string;
938
+ refBlockId: string;
939
+ }, {
940
+ path: string;
941
+ refBlockId: string;
942
+ }>>>>>>;
943
+ }, "strip", z.ZodTypeAny, {
944
+ id?: string | undefined;
945
+ type?: string | undefined;
946
+ description?: string | undefined;
947
+ payload?: Record<string, any> | undefined;
948
+ condition?: Condition | {
949
+ blockId: string;
950
+ actionId: string;
951
+ id?: string | undefined;
952
+ field?: string | undefined;
953
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
954
+ value?: unknown;
955
+ and?: {
956
+ id?: string | undefined;
957
+ field?: string | undefined;
958
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
959
+ value?: unknown;
960
+ blockId?: string | undefined;
961
+ actionId?: string | undefined;
962
+ }[] | undefined;
963
+ or?: {
964
+ id?: string | undefined;
965
+ field?: string | undefined;
966
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
967
+ value?: unknown;
968
+ blockId?: string | undefined;
969
+ actionId?: string | undefined;
970
+ }[] | undefined;
971
+ isDefault?: boolean | undefined;
972
+ }[] | undefined;
973
+ parentActionId?: string | undefined;
974
+ variables?: Record<string, Record<string, {
975
+ path: string;
976
+ refBlockId: string;
977
+ }> | undefined> | undefined;
978
+ }, {
979
+ id?: string | undefined;
980
+ type?: string | undefined;
981
+ description?: string | undefined;
982
+ payload?: Record<string, any> | undefined;
983
+ condition?: Condition | {
984
+ blockId: string;
985
+ actionId: string;
986
+ id?: string | undefined;
987
+ field?: string | undefined;
988
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
989
+ value?: unknown;
990
+ and?: {
991
+ id?: string | undefined;
992
+ field?: string | undefined;
993
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
994
+ value?: unknown;
995
+ blockId?: string | undefined;
996
+ actionId?: string | undefined;
997
+ }[] | undefined;
998
+ or?: {
999
+ id?: string | undefined;
1000
+ field?: string | undefined;
1001
+ operator?: "" | "EQUAL" | "NOT_EQUAL" | "CONTAINS" | "IS" | "IS_NOT" | "NOT_CONTAINS" | "IS_ANY_OF" | "GREATER_THAN" | "LESS_THAN" | "DOES_NOT_CONTAIN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "SET" | "NOT_SET" | undefined;
1002
+ value?: unknown;
1003
+ blockId?: string | undefined;
1004
+ actionId?: string | undefined;
1005
+ }[] | undefined;
1006
+ isDefault?: boolean | undefined;
1007
+ }[] | undefined;
1008
+ parentActionId?: string | undefined;
1009
+ variables?: Record<string, Record<string, {
1010
+ path: string;
1011
+ refBlockId: string;
1012
+ }> | undefined> | undefined;
1013
+ }>;
1014
+ export declare const updateTriggerSchema: z.ZodObject<{
1015
+ id: z.ZodOptional<z.ZodString>;
1016
+ type: z.ZodOptional<z.ZodString>;
1017
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1018
+ payload: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1019
+ value: z.ZodUnknown;
1020
+ }, "strip", z.ZodTypeAny, {
1021
+ value?: unknown;
1022
+ }, {
1023
+ value?: unknown;
1024
+ }>>>;
1025
+ condition: z.ZodOptional<z.ZodOptional<z.ZodType<Condition, z.ZodTypeDef, Condition>>>;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ id?: string | undefined;
1028
+ type?: string | undefined;
1029
+ description?: string | undefined;
1030
+ payload?: {
1031
+ value?: unknown;
1032
+ } | undefined;
1033
+ condition?: Condition | undefined;
1034
+ }, {
1035
+ id?: string | undefined;
1036
+ type?: string | undefined;
1037
+ description?: string | undefined;
1038
+ payload?: {
1039
+ value?: unknown;
1040
+ } | undefined;
1041
+ condition?: Condition | undefined;
1042
+ }>;
1043
+ export {};