@loopstack/contracts 0.16.2 → 0.18.0-rc.1

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.
@@ -9,46 +9,8 @@ export declare const JobsScheduleSchema: z.ZodObject<{
9
9
  immediately: z.ZodOptional<z.ZodBoolean>;
10
10
  pattern: z.ZodOptional<z.ZodString>;
11
11
  tz: z.ZodOptional<z.ZodString>;
12
- }, "strip", z.ZodTypeAny, {
13
- every?: number | undefined;
14
- pattern?: string | undefined;
15
- startDate?: string | undefined;
16
- endDate?: string | undefined;
17
- limit?: number | undefined;
18
- immediately?: boolean | undefined;
19
- tz?: string | undefined;
20
- }, {
21
- every?: number | undefined;
22
- pattern?: string | undefined;
23
- startDate?: string | undefined;
24
- endDate?: string | undefined;
25
- limit?: number | undefined;
26
- immediately?: boolean | undefined;
27
- tz?: string | undefined;
28
- }>>>;
29
- }, "strip", z.ZodTypeAny, {
30
- repeat?: {
31
- every?: number | undefined;
32
- pattern?: string | undefined;
33
- startDate?: string | undefined;
34
- endDate?: string | undefined;
35
- limit?: number | undefined;
36
- immediately?: boolean | undefined;
37
- tz?: string | undefined;
38
- } | undefined;
39
- delay?: number | undefined;
40
- }, {
41
- repeat?: {
42
- every?: number | undefined;
43
- pattern?: string | undefined;
44
- startDate?: string | undefined;
45
- endDate?: string | undefined;
46
- limit?: number | undefined;
47
- immediately?: boolean | undefined;
48
- tz?: string | undefined;
49
- } | undefined;
50
- delay?: number | undefined;
51
- }>;
12
+ }, z.core.$strip>>>;
13
+ }, z.core.$strip>;
52
14
  export declare const BaseStartupTaskSchema: z.ZodObject<{
53
15
  name: z.ZodString;
54
16
  title: z.ZodOptional<z.ZodString>;
@@ -65,83 +27,9 @@ export declare const BaseStartupTaskSchema: z.ZodObject<{
65
27
  immediately: z.ZodOptional<z.ZodBoolean>;
66
28
  pattern: z.ZodOptional<z.ZodString>;
67
29
  tz: z.ZodOptional<z.ZodString>;
68
- }, "strip", z.ZodTypeAny, {
69
- every?: number | undefined;
70
- pattern?: string | undefined;
71
- startDate?: string | undefined;
72
- endDate?: string | undefined;
73
- limit?: number | undefined;
74
- immediately?: boolean | undefined;
75
- tz?: string | undefined;
76
- }, {
77
- every?: number | undefined;
78
- pattern?: string | undefined;
79
- startDate?: string | undefined;
80
- endDate?: string | undefined;
81
- limit?: number | undefined;
82
- immediately?: boolean | undefined;
83
- tz?: string | undefined;
84
- }>>>;
85
- }, "strip", z.ZodTypeAny, {
86
- repeat?: {
87
- every?: number | undefined;
88
- pattern?: string | undefined;
89
- startDate?: string | undefined;
90
- endDate?: string | undefined;
91
- limit?: number | undefined;
92
- immediately?: boolean | undefined;
93
- tz?: string | undefined;
94
- } | undefined;
95
- delay?: number | undefined;
96
- }, {
97
- repeat?: {
98
- every?: number | undefined;
99
- pattern?: string | undefined;
100
- startDate?: string | undefined;
101
- endDate?: string | undefined;
102
- limit?: number | undefined;
103
- immediately?: boolean | undefined;
104
- tz?: string | undefined;
105
- } | undefined;
106
- delay?: number | undefined;
107
- }>>;
108
- }, "strip", z.ZodTypeAny, {
109
- name: string;
110
- type: string;
111
- user: string;
112
- title?: string | undefined;
113
- payload?: any;
114
- schedule?: {
115
- repeat?: {
116
- every?: number | undefined;
117
- pattern?: string | undefined;
118
- startDate?: string | undefined;
119
- endDate?: string | undefined;
120
- limit?: number | undefined;
121
- immediately?: boolean | undefined;
122
- tz?: string | undefined;
123
- } | undefined;
124
- delay?: number | undefined;
125
- } | undefined;
126
- }, {
127
- name: string;
128
- type: string;
129
- user: string;
130
- title?: string | undefined;
131
- payload?: any;
132
- schedule?: {
133
- repeat?: {
134
- every?: number | undefined;
135
- pattern?: string | undefined;
136
- startDate?: string | undefined;
137
- endDate?: string | undefined;
138
- limit?: number | undefined;
139
- immediately?: boolean | undefined;
140
- tz?: string | undefined;
141
- } | undefined;
142
- delay?: number | undefined;
143
- } | undefined;
144
- }>;
30
+ }, z.core.$strip>>>;
31
+ }, z.core.$strip>>;
32
+ }, z.core.$strip>;
145
33
  export declare const RunPipelineTaskSchema: z.ZodObject<{
146
34
  name: z.ZodString;
147
35
  title: z.ZodOptional<z.ZodString>;
@@ -156,47 +44,8 @@ export declare const RunPipelineTaskSchema: z.ZodObject<{
156
44
  immediately: z.ZodOptional<z.ZodBoolean>;
157
45
  pattern: z.ZodOptional<z.ZodString>;
158
46
  tz: z.ZodOptional<z.ZodString>;
159
- }, "strip", z.ZodTypeAny, {
160
- every?: number | undefined;
161
- pattern?: string | undefined;
162
- startDate?: string | undefined;
163
- endDate?: string | undefined;
164
- limit?: number | undefined;
165
- immediately?: boolean | undefined;
166
- tz?: string | undefined;
167
- }, {
168
- every?: number | undefined;
169
- pattern?: string | undefined;
170
- startDate?: string | undefined;
171
- endDate?: string | undefined;
172
- limit?: number | undefined;
173
- immediately?: boolean | undefined;
174
- tz?: string | undefined;
175
- }>>>;
176
- }, "strip", z.ZodTypeAny, {
177
- repeat?: {
178
- every?: number | undefined;
179
- pattern?: string | undefined;
180
- startDate?: string | undefined;
181
- endDate?: string | undefined;
182
- limit?: number | undefined;
183
- immediately?: boolean | undefined;
184
- tz?: string | undefined;
185
- } | undefined;
186
- delay?: number | undefined;
187
- }, {
188
- repeat?: {
189
- every?: number | undefined;
190
- pattern?: string | undefined;
191
- startDate?: string | undefined;
192
- endDate?: string | undefined;
193
- limit?: number | undefined;
194
- immediately?: boolean | undefined;
195
- tz?: string | undefined;
196
- } | undefined;
197
- delay?: number | undefined;
198
- }>>;
199
- } & {
47
+ }, z.core.$strip>>>;
48
+ }, z.core.$strip>>;
200
49
  type: z.ZodLiteral<"run_pipeline">;
201
50
  payload: z.ZodObject<{
202
51
  id: z.ZodString;
@@ -205,88 +54,10 @@ export declare const RunPipelineTaskSchema: z.ZodObject<{
205
54
  workflowId: z.ZodString;
206
55
  payload: z.ZodOptional<z.ZodAny>;
207
56
  meta: z.ZodOptional<z.ZodAny>;
208
- }, "strip", z.ZodTypeAny, {
209
- id: string;
210
- workflowId: string;
211
- meta?: any;
212
- payload?: any;
213
- }, {
214
- id: string;
215
- workflowId: string;
216
- meta?: any;
217
- payload?: any;
218
- }>>;
219
- }, "strip", z.ZodTypeAny, {
220
- id: string;
221
- transition?: {
222
- id: string;
223
- workflowId: string;
224
- meta?: any;
225
- payload?: any;
226
- } | undefined;
227
- }, {
228
- id: string;
229
- transition?: {
230
- id: string;
231
- workflowId: string;
232
- meta?: any;
233
- payload?: any;
234
- } | undefined;
235
- }>;
236
- }, "strip", z.ZodTypeAny, {
237
- name: string;
238
- type: "run_pipeline";
239
- user: string;
240
- payload: {
241
- id: string;
242
- transition?: {
243
- id: string;
244
- workflowId: string;
245
- meta?: any;
246
- payload?: any;
247
- } | undefined;
248
- };
249
- title?: string | undefined;
250
- schedule?: {
251
- repeat?: {
252
- every?: number | undefined;
253
- pattern?: string | undefined;
254
- startDate?: string | undefined;
255
- endDate?: string | undefined;
256
- limit?: number | undefined;
257
- immediately?: boolean | undefined;
258
- tz?: string | undefined;
259
- } | undefined;
260
- delay?: number | undefined;
261
- } | undefined;
262
- }, {
263
- name: string;
264
- type: "run_pipeline";
265
- user: string;
266
- payload: {
267
- id: string;
268
- transition?: {
269
- id: string;
270
- workflowId: string;
271
- meta?: any;
272
- payload?: any;
273
- } | undefined;
274
- };
275
- title?: string | undefined;
276
- schedule?: {
277
- repeat?: {
278
- every?: number | undefined;
279
- pattern?: string | undefined;
280
- startDate?: string | undefined;
281
- endDate?: string | undefined;
282
- limit?: number | undefined;
283
- immediately?: boolean | undefined;
284
- tz?: string | undefined;
285
- } | undefined;
286
- delay?: number | undefined;
287
- } | undefined;
288
- }>;
289
- export declare const StartupTaskSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
57
+ }, z.core.$strip>>;
58
+ }, z.core.$strip>;
59
+ }, z.core.$strip>;
60
+ export declare const StartupTaskSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
290
61
  name: z.ZodString;
291
62
  title: z.ZodOptional<z.ZodString>;
292
63
  user: z.ZodString;
@@ -300,47 +71,8 @@ export declare const StartupTaskSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
300
71
  immediately: z.ZodOptional<z.ZodBoolean>;
301
72
  pattern: z.ZodOptional<z.ZodString>;
302
73
  tz: z.ZodOptional<z.ZodString>;
303
- }, "strip", z.ZodTypeAny, {
304
- every?: number | undefined;
305
- pattern?: string | undefined;
306
- startDate?: string | undefined;
307
- endDate?: string | undefined;
308
- limit?: number | undefined;
309
- immediately?: boolean | undefined;
310
- tz?: string | undefined;
311
- }, {
312
- every?: number | undefined;
313
- pattern?: string | undefined;
314
- startDate?: string | undefined;
315
- endDate?: string | undefined;
316
- limit?: number | undefined;
317
- immediately?: boolean | undefined;
318
- tz?: string | undefined;
319
- }>>>;
320
- }, "strip", z.ZodTypeAny, {
321
- repeat?: {
322
- every?: number | undefined;
323
- pattern?: string | undefined;
324
- startDate?: string | undefined;
325
- endDate?: string | undefined;
326
- limit?: number | undefined;
327
- immediately?: boolean | undefined;
328
- tz?: string | undefined;
329
- } | undefined;
330
- delay?: number | undefined;
331
- }, {
332
- repeat?: {
333
- every?: number | undefined;
334
- pattern?: string | undefined;
335
- startDate?: string | undefined;
336
- endDate?: string | undefined;
337
- limit?: number | undefined;
338
- immediately?: boolean | undefined;
339
- tz?: string | undefined;
340
- } | undefined;
341
- delay?: number | undefined;
342
- }>>;
343
- } & {
74
+ }, z.core.$strip>>>;
75
+ }, z.core.$strip>>;
344
76
  type: z.ZodLiteral<"run_pipeline">;
345
77
  payload: z.ZodObject<{
346
78
  id: z.ZodString;
@@ -349,90 +81,12 @@ export declare const StartupTaskSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
349
81
  workflowId: z.ZodString;
350
82
  payload: z.ZodOptional<z.ZodAny>;
351
83
  meta: z.ZodOptional<z.ZodAny>;
352
- }, "strip", z.ZodTypeAny, {
353
- id: string;
354
- workflowId: string;
355
- meta?: any;
356
- payload?: any;
357
- }, {
358
- id: string;
359
- workflowId: string;
360
- meta?: any;
361
- payload?: any;
362
- }>>;
363
- }, "strip", z.ZodTypeAny, {
364
- id: string;
365
- transition?: {
366
- id: string;
367
- workflowId: string;
368
- meta?: any;
369
- payload?: any;
370
- } | undefined;
371
- }, {
372
- id: string;
373
- transition?: {
374
- id: string;
375
- workflowId: string;
376
- meta?: any;
377
- payload?: any;
378
- } | undefined;
379
- }>;
380
- }, "strip", z.ZodTypeAny, {
381
- name: string;
382
- type: "run_pipeline";
383
- user: string;
384
- payload: {
385
- id: string;
386
- transition?: {
387
- id: string;
388
- workflowId: string;
389
- meta?: any;
390
- payload?: any;
391
- } | undefined;
392
- };
393
- title?: string | undefined;
394
- schedule?: {
395
- repeat?: {
396
- every?: number | undefined;
397
- pattern?: string | undefined;
398
- startDate?: string | undefined;
399
- endDate?: string | undefined;
400
- limit?: number | undefined;
401
- immediately?: boolean | undefined;
402
- tz?: string | undefined;
403
- } | undefined;
404
- delay?: number | undefined;
405
- } | undefined;
406
- }, {
407
- name: string;
408
- type: "run_pipeline";
409
- user: string;
410
- payload: {
411
- id: string;
412
- transition?: {
413
- id: string;
414
- workflowId: string;
415
- meta?: any;
416
- payload?: any;
417
- } | undefined;
418
- };
419
- title?: string | undefined;
420
- schedule?: {
421
- repeat?: {
422
- every?: number | undefined;
423
- pattern?: string | undefined;
424
- startDate?: string | undefined;
425
- endDate?: string | undefined;
426
- limit?: number | undefined;
427
- immediately?: boolean | undefined;
428
- tz?: string | undefined;
429
- } | undefined;
430
- delay?: number | undefined;
431
- } | undefined;
432
- }>]>;
84
+ }, z.core.$strip>>;
85
+ }, z.core.$strip>;
86
+ }, z.core.$strip>], "type">;
433
87
  export declare const ScheduledTaskSchema: z.ZodObject<{
434
88
  id: z.ZodString;
435
- task: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
89
+ task: z.ZodDiscriminatedUnion<[z.ZodObject<{
436
90
  name: z.ZodString;
437
91
  title: z.ZodOptional<z.ZodString>;
438
92
  user: z.ZodString;
@@ -446,47 +100,8 @@ export declare const ScheduledTaskSchema: z.ZodObject<{
446
100
  immediately: z.ZodOptional<z.ZodBoolean>;
447
101
  pattern: z.ZodOptional<z.ZodString>;
448
102
  tz: z.ZodOptional<z.ZodString>;
449
- }, "strip", z.ZodTypeAny, {
450
- every?: number | undefined;
451
- pattern?: string | undefined;
452
- startDate?: string | undefined;
453
- endDate?: string | undefined;
454
- limit?: number | undefined;
455
- immediately?: boolean | undefined;
456
- tz?: string | undefined;
457
- }, {
458
- every?: number | undefined;
459
- pattern?: string | undefined;
460
- startDate?: string | undefined;
461
- endDate?: string | undefined;
462
- limit?: number | undefined;
463
- immediately?: boolean | undefined;
464
- tz?: string | undefined;
465
- }>>>;
466
- }, "strip", z.ZodTypeAny, {
467
- repeat?: {
468
- every?: number | undefined;
469
- pattern?: string | undefined;
470
- startDate?: string | undefined;
471
- endDate?: string | undefined;
472
- limit?: number | undefined;
473
- immediately?: boolean | undefined;
474
- tz?: string | undefined;
475
- } | undefined;
476
- delay?: number | undefined;
477
- }, {
478
- repeat?: {
479
- every?: number | undefined;
480
- pattern?: string | undefined;
481
- startDate?: string | undefined;
482
- endDate?: string | undefined;
483
- limit?: number | undefined;
484
- immediately?: boolean | undefined;
485
- tz?: string | undefined;
486
- } | undefined;
487
- delay?: number | undefined;
488
- }>>;
489
- } & {
103
+ }, z.core.$strip>>>;
104
+ }, z.core.$strip>>;
490
105
  type: z.ZodLiteral<"run_pipeline">;
491
106
  payload: z.ZodObject<{
492
107
  id: z.ZodString;
@@ -495,143 +110,7 @@ export declare const ScheduledTaskSchema: z.ZodObject<{
495
110
  workflowId: z.ZodString;
496
111
  payload: z.ZodOptional<z.ZodAny>;
497
112
  meta: z.ZodOptional<z.ZodAny>;
498
- }, "strip", z.ZodTypeAny, {
499
- id: string;
500
- workflowId: string;
501
- meta?: any;
502
- payload?: any;
503
- }, {
504
- id: string;
505
- workflowId: string;
506
- meta?: any;
507
- payload?: any;
508
- }>>;
509
- }, "strip", z.ZodTypeAny, {
510
- id: string;
511
- transition?: {
512
- id: string;
513
- workflowId: string;
514
- meta?: any;
515
- payload?: any;
516
- } | undefined;
517
- }, {
518
- id: string;
519
- transition?: {
520
- id: string;
521
- workflowId: string;
522
- meta?: any;
523
- payload?: any;
524
- } | undefined;
525
- }>;
526
- }, "strip", z.ZodTypeAny, {
527
- name: string;
528
- type: "run_pipeline";
529
- user: string;
530
- payload: {
531
- id: string;
532
- transition?: {
533
- id: string;
534
- workflowId: string;
535
- meta?: any;
536
- payload?: any;
537
- } | undefined;
538
- };
539
- title?: string | undefined;
540
- schedule?: {
541
- repeat?: {
542
- every?: number | undefined;
543
- pattern?: string | undefined;
544
- startDate?: string | undefined;
545
- endDate?: string | undefined;
546
- limit?: number | undefined;
547
- immediately?: boolean | undefined;
548
- tz?: string | undefined;
549
- } | undefined;
550
- delay?: number | undefined;
551
- } | undefined;
552
- }, {
553
- name: string;
554
- type: "run_pipeline";
555
- user: string;
556
- payload: {
557
- id: string;
558
- transition?: {
559
- id: string;
560
- workflowId: string;
561
- meta?: any;
562
- payload?: any;
563
- } | undefined;
564
- };
565
- title?: string | undefined;
566
- schedule?: {
567
- repeat?: {
568
- every?: number | undefined;
569
- pattern?: string | undefined;
570
- startDate?: string | undefined;
571
- endDate?: string | undefined;
572
- limit?: number | undefined;
573
- immediately?: boolean | undefined;
574
- tz?: string | undefined;
575
- } | undefined;
576
- delay?: number | undefined;
577
- } | undefined;
578
- }>]>;
579
- }, "strip", z.ZodTypeAny, {
580
- id: string;
581
- task: {
582
- name: string;
583
- type: "run_pipeline";
584
- user: string;
585
- payload: {
586
- id: string;
587
- transition?: {
588
- id: string;
589
- workflowId: string;
590
- meta?: any;
591
- payload?: any;
592
- } | undefined;
593
- };
594
- title?: string | undefined;
595
- schedule?: {
596
- repeat?: {
597
- every?: number | undefined;
598
- pattern?: string | undefined;
599
- startDate?: string | undefined;
600
- endDate?: string | undefined;
601
- limit?: number | undefined;
602
- immediately?: boolean | undefined;
603
- tz?: string | undefined;
604
- } | undefined;
605
- delay?: number | undefined;
606
- } | undefined;
607
- };
608
- }, {
609
- id: string;
610
- task: {
611
- name: string;
612
- type: "run_pipeline";
613
- user: string;
614
- payload: {
615
- id: string;
616
- transition?: {
617
- id: string;
618
- workflowId: string;
619
- meta?: any;
620
- payload?: any;
621
- } | undefined;
622
- };
623
- title?: string | undefined;
624
- schedule?: {
625
- repeat?: {
626
- every?: number | undefined;
627
- pattern?: string | undefined;
628
- startDate?: string | undefined;
629
- endDate?: string | undefined;
630
- limit?: number | undefined;
631
- immediately?: boolean | undefined;
632
- tz?: string | undefined;
633
- } | undefined;
634
- delay?: number | undefined;
635
- } | undefined;
636
- };
637
- }>;
113
+ }, z.core.$strip>>;
114
+ }, z.core.$strip>;
115
+ }, z.core.$strip>], "type">;
116
+ }, z.core.$strip>;
@@ -3,31 +3,11 @@ export declare const ToolCallConfigSchema: z.ZodObject<{
3
3
  id: z.ZodOptional<z.ZodString>;
4
4
  tool: z.ZodString;
5
5
  args: z.ZodOptional<z.ZodAny>;
6
- assign: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
7
- }, "strip", z.ZodTypeAny, {
8
- tool: string;
9
- id?: string | undefined;
10
- args?: any;
11
- assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
12
- }, {
13
- tool: string;
14
- id?: string | undefined;
15
- args?: any;
16
- assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
17
- }>;
6
+ assign: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
7
+ }, z.core.$strip>;
18
8
  export declare const ToolCallSchema: z.ZodObject<{
19
9
  id: z.ZodOptional<z.ZodString>;
20
10
  tool: z.ZodString;
21
11
  args: z.ZodOptional<z.ZodAny>;
22
- assign: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodNull, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
23
- }, "strip", z.ZodTypeAny, {
24
- tool: string;
25
- id?: string | undefined;
26
- args?: any;
27
- assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
28
- }, {
29
- tool: string;
30
- id?: string | undefined;
31
- args?: any;
32
- assign?: Record<string, string | number | boolean | Record<string, any> | null> | undefined;
33
- }>;
12
+ assign: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodAny>]>>>;
13
+ }, z.core.$strip>;