optio-contracts 0.1.3 → 0.2.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.
- package/dist/api-to-frontend.d.ts +551 -5
- package/dist/api-to-frontend.d.ts.map +1 -1
- package/dist/api-to-frontend.js +4 -1
- package/dist/api-to-frontend.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/optio-engine-to-api.d.ts +321 -15
- package/dist/optio-engine-to-api.d.ts.map +1 -1
- package/dist/optio-engine-to-api.js +6 -0
- package/dist/optio-engine-to-api.js.map +1 -1
- package/dist/process-filter-helpers.d.ts +14 -0
- package/dist/process-filter-helpers.d.ts.map +1 -0
- package/dist/process-filter-helpers.js +18 -0
- package/dist/process-filter-helpers.js.map +1 -0
- package/dist/schemas/process.d.ts +169 -2
- package/dist/schemas/process.d.ts.map +1 -1
- package/dist/schemas/process.js +52 -1
- package/dist/schemas/process.js.map +1 -1
- package/dist/schemas/session-events.d.ts +67 -0
- package/dist/schemas/session-events.d.ts.map +1 -0
- package/dist/schemas/session-events.js +14 -0
- package/dist/schemas/session-events.js.map +1 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export declare const processesContract: {
|
|
|
9
9
|
state: z.ZodOptional<z.ZodEnum<["idle", "scheduled", "running", "done", "failed", "cancel_requested", "cancelling", "cancelled"]>>;
|
|
10
10
|
database: z.ZodOptional<z.ZodString>;
|
|
11
11
|
prefix: z.ZodOptional<z.ZodString>;
|
|
12
|
-
metadataFilter: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, any, string>, z.ZodRecord<z.ZodString, z.
|
|
12
|
+
metadataFilter: z.ZodOptional<z.ZodPipeline<z.ZodEffects<z.ZodString, any, string>, z.ZodUnion<[z.ZodType<unknown, z.ZodTypeDef, unknown>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
limit: number;
|
|
15
15
|
cursor?: string | undefined;
|
|
@@ -17,7 +17,7 @@ export declare const processesContract: {
|
|
|
17
17
|
rootId?: string | undefined;
|
|
18
18
|
database?: string | undefined;
|
|
19
19
|
prefix?: string | undefined;
|
|
20
|
-
metadataFilter?:
|
|
20
|
+
metadataFilter?: unknown;
|
|
21
21
|
}, {
|
|
22
22
|
cursor?: string | undefined;
|
|
23
23
|
limit?: number | undefined;
|
|
@@ -101,6 +101,45 @@ export declare const processesContract: {
|
|
|
101
101
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
102
102
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
103
103
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
|
+
requestId: z.ZodString;
|
|
106
|
+
url: z.ZodString;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
requestId: string;
|
|
109
|
+
url: string;
|
|
110
|
+
}, {
|
|
111
|
+
requestId: string;
|
|
112
|
+
url: string;
|
|
113
|
+
}>, "many">>;
|
|
114
|
+
sessionEvents: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
115
|
+
requestId: z.ZodString;
|
|
116
|
+
type: z.ZodLiteral<"attention">;
|
|
117
|
+
reason: z.ZodString;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
type: "attention";
|
|
120
|
+
requestId: string;
|
|
121
|
+
reason: string;
|
|
122
|
+
}, {
|
|
123
|
+
type: "attention";
|
|
124
|
+
requestId: string;
|
|
125
|
+
reason: string;
|
|
126
|
+
}>, z.ZodObject<{
|
|
127
|
+
requestId: z.ZodString;
|
|
128
|
+
type: z.ZodLiteral<"domain">;
|
|
129
|
+
keyword: z.ZodString;
|
|
130
|
+
data: z.ZodUnknown;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
type: "domain";
|
|
133
|
+
requestId: string;
|
|
134
|
+
keyword: string;
|
|
135
|
+
data?: unknown;
|
|
136
|
+
}, {
|
|
137
|
+
type: "domain";
|
|
138
|
+
requestId: string;
|
|
139
|
+
keyword: string;
|
|
140
|
+
data?: unknown;
|
|
141
|
+
}>]>, "many">>;
|
|
142
|
+
originatingSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
143
|
createdAt: z.ZodDate;
|
|
105
144
|
}, "strip", z.ZodTypeAny, {
|
|
106
145
|
status: {
|
|
@@ -140,6 +179,21 @@ export declare const processesContract: {
|
|
|
140
179
|
widgetData?: unknown;
|
|
141
180
|
supportsResume?: boolean | undefined;
|
|
142
181
|
hasSavedState?: boolean | undefined;
|
|
182
|
+
browserOpenRequests?: {
|
|
183
|
+
requestId: string;
|
|
184
|
+
url: string;
|
|
185
|
+
}[] | undefined;
|
|
186
|
+
sessionEvents?: ({
|
|
187
|
+
type: "attention";
|
|
188
|
+
requestId: string;
|
|
189
|
+
reason: string;
|
|
190
|
+
} | {
|
|
191
|
+
type: "domain";
|
|
192
|
+
requestId: string;
|
|
193
|
+
keyword: string;
|
|
194
|
+
data?: unknown;
|
|
195
|
+
})[] | undefined;
|
|
196
|
+
originatingSessionId?: string | null | undefined;
|
|
143
197
|
}, {
|
|
144
198
|
status: {
|
|
145
199
|
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
@@ -178,6 +232,21 @@ export declare const processesContract: {
|
|
|
178
232
|
widgetData?: unknown;
|
|
179
233
|
supportsResume?: boolean | undefined;
|
|
180
234
|
hasSavedState?: boolean | undefined;
|
|
235
|
+
browserOpenRequests?: {
|
|
236
|
+
requestId: string;
|
|
237
|
+
url: string;
|
|
238
|
+
}[] | undefined;
|
|
239
|
+
sessionEvents?: ({
|
|
240
|
+
type: "attention";
|
|
241
|
+
requestId: string;
|
|
242
|
+
reason: string;
|
|
243
|
+
} | {
|
|
244
|
+
type: "domain";
|
|
245
|
+
requestId: string;
|
|
246
|
+
keyword: string;
|
|
247
|
+
data?: unknown;
|
|
248
|
+
})[] | undefined;
|
|
249
|
+
originatingSessionId?: string | null | undefined;
|
|
181
250
|
}>, "many">;
|
|
182
251
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
183
252
|
totalCount: z.ZodNumber;
|
|
@@ -220,6 +289,21 @@ export declare const processesContract: {
|
|
|
220
289
|
widgetData?: unknown;
|
|
221
290
|
supportsResume?: boolean | undefined;
|
|
222
291
|
hasSavedState?: boolean | undefined;
|
|
292
|
+
browserOpenRequests?: {
|
|
293
|
+
requestId: string;
|
|
294
|
+
url: string;
|
|
295
|
+
}[] | undefined;
|
|
296
|
+
sessionEvents?: ({
|
|
297
|
+
type: "attention";
|
|
298
|
+
requestId: string;
|
|
299
|
+
reason: string;
|
|
300
|
+
} | {
|
|
301
|
+
type: "domain";
|
|
302
|
+
requestId: string;
|
|
303
|
+
keyword: string;
|
|
304
|
+
data?: unknown;
|
|
305
|
+
})[] | undefined;
|
|
306
|
+
originatingSessionId?: string | null | undefined;
|
|
223
307
|
}[];
|
|
224
308
|
nextCursor: string | null;
|
|
225
309
|
totalCount: number;
|
|
@@ -262,6 +346,21 @@ export declare const processesContract: {
|
|
|
262
346
|
widgetData?: unknown;
|
|
263
347
|
supportsResume?: boolean | undefined;
|
|
264
348
|
hasSavedState?: boolean | undefined;
|
|
349
|
+
browserOpenRequests?: {
|
|
350
|
+
requestId: string;
|
|
351
|
+
url: string;
|
|
352
|
+
}[] | undefined;
|
|
353
|
+
sessionEvents?: ({
|
|
354
|
+
type: "attention";
|
|
355
|
+
requestId: string;
|
|
356
|
+
reason: string;
|
|
357
|
+
} | {
|
|
358
|
+
type: "domain";
|
|
359
|
+
requestId: string;
|
|
360
|
+
keyword: string;
|
|
361
|
+
data?: unknown;
|
|
362
|
+
})[] | undefined;
|
|
363
|
+
originatingSessionId?: string | null | undefined;
|
|
265
364
|
}[];
|
|
266
365
|
nextCursor: string | null;
|
|
267
366
|
totalCount: number;
|
|
@@ -359,6 +458,45 @@ export declare const processesContract: {
|
|
|
359
458
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
360
459
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
361
460
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
461
|
+
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
462
|
+
requestId: z.ZodString;
|
|
463
|
+
url: z.ZodString;
|
|
464
|
+
}, "strip", z.ZodTypeAny, {
|
|
465
|
+
requestId: string;
|
|
466
|
+
url: string;
|
|
467
|
+
}, {
|
|
468
|
+
requestId: string;
|
|
469
|
+
url: string;
|
|
470
|
+
}>, "many">>;
|
|
471
|
+
sessionEvents: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
472
|
+
requestId: z.ZodString;
|
|
473
|
+
type: z.ZodLiteral<"attention">;
|
|
474
|
+
reason: z.ZodString;
|
|
475
|
+
}, "strip", z.ZodTypeAny, {
|
|
476
|
+
type: "attention";
|
|
477
|
+
requestId: string;
|
|
478
|
+
reason: string;
|
|
479
|
+
}, {
|
|
480
|
+
type: "attention";
|
|
481
|
+
requestId: string;
|
|
482
|
+
reason: string;
|
|
483
|
+
}>, z.ZodObject<{
|
|
484
|
+
requestId: z.ZodString;
|
|
485
|
+
type: z.ZodLiteral<"domain">;
|
|
486
|
+
keyword: z.ZodString;
|
|
487
|
+
data: z.ZodUnknown;
|
|
488
|
+
}, "strip", z.ZodTypeAny, {
|
|
489
|
+
type: "domain";
|
|
490
|
+
requestId: string;
|
|
491
|
+
keyword: string;
|
|
492
|
+
data?: unknown;
|
|
493
|
+
}, {
|
|
494
|
+
type: "domain";
|
|
495
|
+
requestId: string;
|
|
496
|
+
keyword: string;
|
|
497
|
+
data?: unknown;
|
|
498
|
+
}>]>, "many">>;
|
|
499
|
+
originatingSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
362
500
|
createdAt: z.ZodDate;
|
|
363
501
|
}, "strip", z.ZodTypeAny, {
|
|
364
502
|
status: {
|
|
@@ -398,6 +536,21 @@ export declare const processesContract: {
|
|
|
398
536
|
widgetData?: unknown;
|
|
399
537
|
supportsResume?: boolean | undefined;
|
|
400
538
|
hasSavedState?: boolean | undefined;
|
|
539
|
+
browserOpenRequests?: {
|
|
540
|
+
requestId: string;
|
|
541
|
+
url: string;
|
|
542
|
+
}[] | undefined;
|
|
543
|
+
sessionEvents?: ({
|
|
544
|
+
type: "attention";
|
|
545
|
+
requestId: string;
|
|
546
|
+
reason: string;
|
|
547
|
+
} | {
|
|
548
|
+
type: "domain";
|
|
549
|
+
requestId: string;
|
|
550
|
+
keyword: string;
|
|
551
|
+
data?: unknown;
|
|
552
|
+
})[] | undefined;
|
|
553
|
+
originatingSessionId?: string | null | undefined;
|
|
401
554
|
}, {
|
|
402
555
|
status: {
|
|
403
556
|
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
@@ -436,6 +589,21 @@ export declare const processesContract: {
|
|
|
436
589
|
widgetData?: unknown;
|
|
437
590
|
supportsResume?: boolean | undefined;
|
|
438
591
|
hasSavedState?: boolean | undefined;
|
|
592
|
+
browserOpenRequests?: {
|
|
593
|
+
requestId: string;
|
|
594
|
+
url: string;
|
|
595
|
+
}[] | undefined;
|
|
596
|
+
sessionEvents?: ({
|
|
597
|
+
type: "attention";
|
|
598
|
+
requestId: string;
|
|
599
|
+
reason: string;
|
|
600
|
+
} | {
|
|
601
|
+
type: "domain";
|
|
602
|
+
requestId: string;
|
|
603
|
+
keyword: string;
|
|
604
|
+
data?: unknown;
|
|
605
|
+
})[] | undefined;
|
|
606
|
+
originatingSessionId?: string | null | undefined;
|
|
439
607
|
}>;
|
|
440
608
|
404: z.ZodObject<{
|
|
441
609
|
message: z.ZodString;
|
|
@@ -540,6 +708,45 @@ export declare const processesContract: {
|
|
|
540
708
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
541
709
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
542
710
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
711
|
+
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
712
|
+
requestId: z.ZodString;
|
|
713
|
+
url: z.ZodString;
|
|
714
|
+
}, "strip", z.ZodTypeAny, {
|
|
715
|
+
requestId: string;
|
|
716
|
+
url: string;
|
|
717
|
+
}, {
|
|
718
|
+
requestId: string;
|
|
719
|
+
url: string;
|
|
720
|
+
}>, "many">>;
|
|
721
|
+
sessionEvents: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
722
|
+
requestId: z.ZodString;
|
|
723
|
+
type: z.ZodLiteral<"attention">;
|
|
724
|
+
reason: z.ZodString;
|
|
725
|
+
}, "strip", z.ZodTypeAny, {
|
|
726
|
+
type: "attention";
|
|
727
|
+
requestId: string;
|
|
728
|
+
reason: string;
|
|
729
|
+
}, {
|
|
730
|
+
type: "attention";
|
|
731
|
+
requestId: string;
|
|
732
|
+
reason: string;
|
|
733
|
+
}>, z.ZodObject<{
|
|
734
|
+
requestId: z.ZodString;
|
|
735
|
+
type: z.ZodLiteral<"domain">;
|
|
736
|
+
keyword: z.ZodString;
|
|
737
|
+
data: z.ZodUnknown;
|
|
738
|
+
}, "strip", z.ZodTypeAny, {
|
|
739
|
+
type: "domain";
|
|
740
|
+
requestId: string;
|
|
741
|
+
keyword: string;
|
|
742
|
+
data?: unknown;
|
|
743
|
+
}, {
|
|
744
|
+
type: "domain";
|
|
745
|
+
requestId: string;
|
|
746
|
+
keyword: string;
|
|
747
|
+
data?: unknown;
|
|
748
|
+
}>]>, "many">>;
|
|
749
|
+
originatingSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
543
750
|
createdAt: z.ZodDate;
|
|
544
751
|
} & {
|
|
545
752
|
children: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
@@ -611,6 +818,45 @@ export declare const processesContract: {
|
|
|
611
818
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
612
819
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
613
820
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
821
|
+
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
822
|
+
requestId: z.ZodString;
|
|
823
|
+
url: z.ZodString;
|
|
824
|
+
}, "strip", z.ZodTypeAny, {
|
|
825
|
+
requestId: string;
|
|
826
|
+
url: string;
|
|
827
|
+
}, {
|
|
828
|
+
requestId: string;
|
|
829
|
+
url: string;
|
|
830
|
+
}>, "many">>;
|
|
831
|
+
sessionEvents: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
832
|
+
requestId: z.ZodString;
|
|
833
|
+
type: z.ZodLiteral<"attention">;
|
|
834
|
+
reason: z.ZodString;
|
|
835
|
+
}, "strip", z.ZodTypeAny, {
|
|
836
|
+
type: "attention";
|
|
837
|
+
requestId: string;
|
|
838
|
+
reason: string;
|
|
839
|
+
}, {
|
|
840
|
+
type: "attention";
|
|
841
|
+
requestId: string;
|
|
842
|
+
reason: string;
|
|
843
|
+
}>, z.ZodObject<{
|
|
844
|
+
requestId: z.ZodString;
|
|
845
|
+
type: z.ZodLiteral<"domain">;
|
|
846
|
+
keyword: z.ZodString;
|
|
847
|
+
data: z.ZodUnknown;
|
|
848
|
+
}, "strip", z.ZodTypeAny, {
|
|
849
|
+
type: "domain";
|
|
850
|
+
requestId: string;
|
|
851
|
+
keyword: string;
|
|
852
|
+
data?: unknown;
|
|
853
|
+
}, {
|
|
854
|
+
type: "domain";
|
|
855
|
+
requestId: string;
|
|
856
|
+
keyword: string;
|
|
857
|
+
data?: unknown;
|
|
858
|
+
}>]>, "many">>;
|
|
859
|
+
originatingSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
614
860
|
createdAt: z.ZodDate;
|
|
615
861
|
} & {
|
|
616
862
|
children: z.ZodArray<z.ZodAny, "many">;
|
|
@@ -653,6 +899,21 @@ export declare const processesContract: {
|
|
|
653
899
|
widgetData?: unknown;
|
|
654
900
|
supportsResume?: boolean | undefined;
|
|
655
901
|
hasSavedState?: boolean | undefined;
|
|
902
|
+
browserOpenRequests?: {
|
|
903
|
+
requestId: string;
|
|
904
|
+
url: string;
|
|
905
|
+
}[] | undefined;
|
|
906
|
+
sessionEvents?: ({
|
|
907
|
+
type: "attention";
|
|
908
|
+
requestId: string;
|
|
909
|
+
reason: string;
|
|
910
|
+
} | {
|
|
911
|
+
type: "domain";
|
|
912
|
+
requestId: string;
|
|
913
|
+
keyword: string;
|
|
914
|
+
data?: unknown;
|
|
915
|
+
})[] | undefined;
|
|
916
|
+
originatingSessionId?: string | null | undefined;
|
|
656
917
|
}, {
|
|
657
918
|
status: {
|
|
658
919
|
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
@@ -692,6 +953,21 @@ export declare const processesContract: {
|
|
|
692
953
|
widgetData?: unknown;
|
|
693
954
|
supportsResume?: boolean | undefined;
|
|
694
955
|
hasSavedState?: boolean | undefined;
|
|
956
|
+
browserOpenRequests?: {
|
|
957
|
+
requestId: string;
|
|
958
|
+
url: string;
|
|
959
|
+
}[] | undefined;
|
|
960
|
+
sessionEvents?: ({
|
|
961
|
+
type: "attention";
|
|
962
|
+
requestId: string;
|
|
963
|
+
reason: string;
|
|
964
|
+
} | {
|
|
965
|
+
type: "domain";
|
|
966
|
+
requestId: string;
|
|
967
|
+
keyword: string;
|
|
968
|
+
data?: unknown;
|
|
969
|
+
})[] | undefined;
|
|
970
|
+
originatingSessionId?: string | null | undefined;
|
|
695
971
|
}>>, "many">;
|
|
696
972
|
}, "strip", z.ZodTypeAny, {
|
|
697
973
|
status: {
|
|
@@ -760,6 +1036,21 @@ export declare const processesContract: {
|
|
|
760
1036
|
widgetData?: unknown;
|
|
761
1037
|
supportsResume?: boolean | undefined;
|
|
762
1038
|
hasSavedState?: boolean | undefined;
|
|
1039
|
+
browserOpenRequests?: {
|
|
1040
|
+
requestId: string;
|
|
1041
|
+
url: string;
|
|
1042
|
+
}[] | undefined;
|
|
1043
|
+
sessionEvents?: ({
|
|
1044
|
+
type: "attention";
|
|
1045
|
+
requestId: string;
|
|
1046
|
+
reason: string;
|
|
1047
|
+
} | {
|
|
1048
|
+
type: "domain";
|
|
1049
|
+
requestId: string;
|
|
1050
|
+
keyword: string;
|
|
1051
|
+
data?: unknown;
|
|
1052
|
+
})[] | undefined;
|
|
1053
|
+
originatingSessionId?: string | null | undefined;
|
|
763
1054
|
}[];
|
|
764
1055
|
params?: Record<string, unknown> | undefined;
|
|
765
1056
|
warning?: string | undefined;
|
|
@@ -771,6 +1062,21 @@ export declare const processesContract: {
|
|
|
771
1062
|
widgetData?: unknown;
|
|
772
1063
|
supportsResume?: boolean | undefined;
|
|
773
1064
|
hasSavedState?: boolean | undefined;
|
|
1065
|
+
browserOpenRequests?: {
|
|
1066
|
+
requestId: string;
|
|
1067
|
+
url: string;
|
|
1068
|
+
}[] | undefined;
|
|
1069
|
+
sessionEvents?: ({
|
|
1070
|
+
type: "attention";
|
|
1071
|
+
requestId: string;
|
|
1072
|
+
reason: string;
|
|
1073
|
+
} | {
|
|
1074
|
+
type: "domain";
|
|
1075
|
+
requestId: string;
|
|
1076
|
+
keyword: string;
|
|
1077
|
+
data?: unknown;
|
|
1078
|
+
})[] | undefined;
|
|
1079
|
+
originatingSessionId?: string | null | undefined;
|
|
774
1080
|
}, {
|
|
775
1081
|
status: {
|
|
776
1082
|
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
@@ -838,6 +1144,21 @@ export declare const processesContract: {
|
|
|
838
1144
|
widgetData?: unknown;
|
|
839
1145
|
supportsResume?: boolean | undefined;
|
|
840
1146
|
hasSavedState?: boolean | undefined;
|
|
1147
|
+
browserOpenRequests?: {
|
|
1148
|
+
requestId: string;
|
|
1149
|
+
url: string;
|
|
1150
|
+
}[] | undefined;
|
|
1151
|
+
sessionEvents?: ({
|
|
1152
|
+
type: "attention";
|
|
1153
|
+
requestId: string;
|
|
1154
|
+
reason: string;
|
|
1155
|
+
} | {
|
|
1156
|
+
type: "domain";
|
|
1157
|
+
requestId: string;
|
|
1158
|
+
keyword: string;
|
|
1159
|
+
data?: unknown;
|
|
1160
|
+
})[] | undefined;
|
|
1161
|
+
originatingSessionId?: string | null | undefined;
|
|
841
1162
|
}[];
|
|
842
1163
|
params?: Record<string, unknown> | undefined;
|
|
843
1164
|
warning?: string | undefined;
|
|
@@ -849,6 +1170,21 @@ export declare const processesContract: {
|
|
|
849
1170
|
widgetData?: unknown;
|
|
850
1171
|
supportsResume?: boolean | undefined;
|
|
851
1172
|
hasSavedState?: boolean | undefined;
|
|
1173
|
+
browserOpenRequests?: {
|
|
1174
|
+
requestId: string;
|
|
1175
|
+
url: string;
|
|
1176
|
+
}[] | undefined;
|
|
1177
|
+
sessionEvents?: ({
|
|
1178
|
+
type: "attention";
|
|
1179
|
+
requestId: string;
|
|
1180
|
+
reason: string;
|
|
1181
|
+
} | {
|
|
1182
|
+
type: "domain";
|
|
1183
|
+
requestId: string;
|
|
1184
|
+
keyword: string;
|
|
1185
|
+
data?: unknown;
|
|
1186
|
+
})[] | undefined;
|
|
1187
|
+
originatingSessionId?: string | null | undefined;
|
|
852
1188
|
}>;
|
|
853
1189
|
404: z.ZodObject<{
|
|
854
1190
|
message: z.ZodString;
|
|
@@ -1047,10 +1383,13 @@ export declare const processesContract: {
|
|
|
1047
1383
|
method: "POST";
|
|
1048
1384
|
body: z.ZodOptional<z.ZodObject<{
|
|
1049
1385
|
resume: z.ZodOptional<z.ZodBoolean>;
|
|
1386
|
+
sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1050
1387
|
}, "strip", z.ZodTypeAny, {
|
|
1051
1388
|
resume?: boolean | undefined;
|
|
1389
|
+
sessionId?: string | null | undefined;
|
|
1052
1390
|
}, {
|
|
1053
1391
|
resume?: boolean | undefined;
|
|
1392
|
+
sessionId?: string | null | undefined;
|
|
1054
1393
|
}>>;
|
|
1055
1394
|
path: "/processes/:id/launch";
|
|
1056
1395
|
responses: {
|
|
@@ -1123,6 +1462,45 @@ export declare const processesContract: {
|
|
|
1123
1462
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
1124
1463
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
1125
1464
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
1465
|
+
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1466
|
+
requestId: z.ZodString;
|
|
1467
|
+
url: z.ZodString;
|
|
1468
|
+
}, "strip", z.ZodTypeAny, {
|
|
1469
|
+
requestId: string;
|
|
1470
|
+
url: string;
|
|
1471
|
+
}, {
|
|
1472
|
+
requestId: string;
|
|
1473
|
+
url: string;
|
|
1474
|
+
}>, "many">>;
|
|
1475
|
+
sessionEvents: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1476
|
+
requestId: z.ZodString;
|
|
1477
|
+
type: z.ZodLiteral<"attention">;
|
|
1478
|
+
reason: z.ZodString;
|
|
1479
|
+
}, "strip", z.ZodTypeAny, {
|
|
1480
|
+
type: "attention";
|
|
1481
|
+
requestId: string;
|
|
1482
|
+
reason: string;
|
|
1483
|
+
}, {
|
|
1484
|
+
type: "attention";
|
|
1485
|
+
requestId: string;
|
|
1486
|
+
reason: string;
|
|
1487
|
+
}>, z.ZodObject<{
|
|
1488
|
+
requestId: z.ZodString;
|
|
1489
|
+
type: z.ZodLiteral<"domain">;
|
|
1490
|
+
keyword: z.ZodString;
|
|
1491
|
+
data: z.ZodUnknown;
|
|
1492
|
+
}, "strip", z.ZodTypeAny, {
|
|
1493
|
+
type: "domain";
|
|
1494
|
+
requestId: string;
|
|
1495
|
+
keyword: string;
|
|
1496
|
+
data?: unknown;
|
|
1497
|
+
}, {
|
|
1498
|
+
type: "domain";
|
|
1499
|
+
requestId: string;
|
|
1500
|
+
keyword: string;
|
|
1501
|
+
data?: unknown;
|
|
1502
|
+
}>]>, "many">>;
|
|
1503
|
+
originatingSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1126
1504
|
createdAt: z.ZodDate;
|
|
1127
1505
|
}, "strip", z.ZodTypeAny, {
|
|
1128
1506
|
status: {
|
|
@@ -1162,6 +1540,21 @@ export declare const processesContract: {
|
|
|
1162
1540
|
widgetData?: unknown;
|
|
1163
1541
|
supportsResume?: boolean | undefined;
|
|
1164
1542
|
hasSavedState?: boolean | undefined;
|
|
1543
|
+
browserOpenRequests?: {
|
|
1544
|
+
requestId: string;
|
|
1545
|
+
url: string;
|
|
1546
|
+
}[] | undefined;
|
|
1547
|
+
sessionEvents?: ({
|
|
1548
|
+
type: "attention";
|
|
1549
|
+
requestId: string;
|
|
1550
|
+
reason: string;
|
|
1551
|
+
} | {
|
|
1552
|
+
type: "domain";
|
|
1553
|
+
requestId: string;
|
|
1554
|
+
keyword: string;
|
|
1555
|
+
data?: unknown;
|
|
1556
|
+
})[] | undefined;
|
|
1557
|
+
originatingSessionId?: string | null | undefined;
|
|
1165
1558
|
}, {
|
|
1166
1559
|
status: {
|
|
1167
1560
|
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
@@ -1200,6 +1593,21 @@ export declare const processesContract: {
|
|
|
1200
1593
|
widgetData?: unknown;
|
|
1201
1594
|
supportsResume?: boolean | undefined;
|
|
1202
1595
|
hasSavedState?: boolean | undefined;
|
|
1596
|
+
browserOpenRequests?: {
|
|
1597
|
+
requestId: string;
|
|
1598
|
+
url: string;
|
|
1599
|
+
}[] | undefined;
|
|
1600
|
+
sessionEvents?: ({
|
|
1601
|
+
type: "attention";
|
|
1602
|
+
requestId: string;
|
|
1603
|
+
reason: string;
|
|
1604
|
+
} | {
|
|
1605
|
+
type: "domain";
|
|
1606
|
+
requestId: string;
|
|
1607
|
+
keyword: string;
|
|
1608
|
+
data?: unknown;
|
|
1609
|
+
})[] | undefined;
|
|
1610
|
+
originatingSessionId?: string | null | undefined;
|
|
1203
1611
|
}>;
|
|
1204
1612
|
404: z.ZodObject<{
|
|
1205
1613
|
reason: z.ZodEnum<["not-found", "not-launchable", "no-resume-support", "launch-blocked"]>;
|
|
@@ -1315,6 +1723,45 @@ export declare const processesContract: {
|
|
|
1315
1723
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
1316
1724
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
1317
1725
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
1726
|
+
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1727
|
+
requestId: z.ZodString;
|
|
1728
|
+
url: z.ZodString;
|
|
1729
|
+
}, "strip", z.ZodTypeAny, {
|
|
1730
|
+
requestId: string;
|
|
1731
|
+
url: string;
|
|
1732
|
+
}, {
|
|
1733
|
+
requestId: string;
|
|
1734
|
+
url: string;
|
|
1735
|
+
}>, "many">>;
|
|
1736
|
+
sessionEvents: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1737
|
+
requestId: z.ZodString;
|
|
1738
|
+
type: z.ZodLiteral<"attention">;
|
|
1739
|
+
reason: z.ZodString;
|
|
1740
|
+
}, "strip", z.ZodTypeAny, {
|
|
1741
|
+
type: "attention";
|
|
1742
|
+
requestId: string;
|
|
1743
|
+
reason: string;
|
|
1744
|
+
}, {
|
|
1745
|
+
type: "attention";
|
|
1746
|
+
requestId: string;
|
|
1747
|
+
reason: string;
|
|
1748
|
+
}>, z.ZodObject<{
|
|
1749
|
+
requestId: z.ZodString;
|
|
1750
|
+
type: z.ZodLiteral<"domain">;
|
|
1751
|
+
keyword: z.ZodString;
|
|
1752
|
+
data: z.ZodUnknown;
|
|
1753
|
+
}, "strip", z.ZodTypeAny, {
|
|
1754
|
+
type: "domain";
|
|
1755
|
+
requestId: string;
|
|
1756
|
+
keyword: string;
|
|
1757
|
+
data?: unknown;
|
|
1758
|
+
}, {
|
|
1759
|
+
type: "domain";
|
|
1760
|
+
requestId: string;
|
|
1761
|
+
keyword: string;
|
|
1762
|
+
data?: unknown;
|
|
1763
|
+
}>]>, "many">>;
|
|
1764
|
+
originatingSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1318
1765
|
createdAt: z.ZodDate;
|
|
1319
1766
|
}, "strip", z.ZodTypeAny, {
|
|
1320
1767
|
status: {
|
|
@@ -1354,6 +1801,21 @@ export declare const processesContract: {
|
|
|
1354
1801
|
widgetData?: unknown;
|
|
1355
1802
|
supportsResume?: boolean | undefined;
|
|
1356
1803
|
hasSavedState?: boolean | undefined;
|
|
1804
|
+
browserOpenRequests?: {
|
|
1805
|
+
requestId: string;
|
|
1806
|
+
url: string;
|
|
1807
|
+
}[] | undefined;
|
|
1808
|
+
sessionEvents?: ({
|
|
1809
|
+
type: "attention";
|
|
1810
|
+
requestId: string;
|
|
1811
|
+
reason: string;
|
|
1812
|
+
} | {
|
|
1813
|
+
type: "domain";
|
|
1814
|
+
requestId: string;
|
|
1815
|
+
keyword: string;
|
|
1816
|
+
data?: unknown;
|
|
1817
|
+
})[] | undefined;
|
|
1818
|
+
originatingSessionId?: string | null | undefined;
|
|
1357
1819
|
}, {
|
|
1358
1820
|
status: {
|
|
1359
1821
|
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
@@ -1392,6 +1854,21 @@ export declare const processesContract: {
|
|
|
1392
1854
|
widgetData?: unknown;
|
|
1393
1855
|
supportsResume?: boolean | undefined;
|
|
1394
1856
|
hasSavedState?: boolean | undefined;
|
|
1857
|
+
browserOpenRequests?: {
|
|
1858
|
+
requestId: string;
|
|
1859
|
+
url: string;
|
|
1860
|
+
}[] | undefined;
|
|
1861
|
+
sessionEvents?: ({
|
|
1862
|
+
type: "attention";
|
|
1863
|
+
requestId: string;
|
|
1864
|
+
reason: string;
|
|
1865
|
+
} | {
|
|
1866
|
+
type: "domain";
|
|
1867
|
+
requestId: string;
|
|
1868
|
+
keyword: string;
|
|
1869
|
+
data?: unknown;
|
|
1870
|
+
})[] | undefined;
|
|
1871
|
+
originatingSessionId?: string | null | undefined;
|
|
1395
1872
|
}>;
|
|
1396
1873
|
404: z.ZodObject<{
|
|
1397
1874
|
reason: z.ZodEnum<["not-found", "not-cancellable"]>;
|
|
@@ -1507,6 +1984,45 @@ export declare const processesContract: {
|
|
|
1507
1984
|
widgetData: z.ZodOptional<z.ZodUnknown>;
|
|
1508
1985
|
supportsResume: z.ZodOptional<z.ZodBoolean>;
|
|
1509
1986
|
hasSavedState: z.ZodOptional<z.ZodBoolean>;
|
|
1987
|
+
browserOpenRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1988
|
+
requestId: z.ZodString;
|
|
1989
|
+
url: z.ZodString;
|
|
1990
|
+
}, "strip", z.ZodTypeAny, {
|
|
1991
|
+
requestId: string;
|
|
1992
|
+
url: string;
|
|
1993
|
+
}, {
|
|
1994
|
+
requestId: string;
|
|
1995
|
+
url: string;
|
|
1996
|
+
}>, "many">>;
|
|
1997
|
+
sessionEvents: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1998
|
+
requestId: z.ZodString;
|
|
1999
|
+
type: z.ZodLiteral<"attention">;
|
|
2000
|
+
reason: z.ZodString;
|
|
2001
|
+
}, "strip", z.ZodTypeAny, {
|
|
2002
|
+
type: "attention";
|
|
2003
|
+
requestId: string;
|
|
2004
|
+
reason: string;
|
|
2005
|
+
}, {
|
|
2006
|
+
type: "attention";
|
|
2007
|
+
requestId: string;
|
|
2008
|
+
reason: string;
|
|
2009
|
+
}>, z.ZodObject<{
|
|
2010
|
+
requestId: z.ZodString;
|
|
2011
|
+
type: z.ZodLiteral<"domain">;
|
|
2012
|
+
keyword: z.ZodString;
|
|
2013
|
+
data: z.ZodUnknown;
|
|
2014
|
+
}, "strip", z.ZodTypeAny, {
|
|
2015
|
+
type: "domain";
|
|
2016
|
+
requestId: string;
|
|
2017
|
+
keyword: string;
|
|
2018
|
+
data?: unknown;
|
|
2019
|
+
}, {
|
|
2020
|
+
type: "domain";
|
|
2021
|
+
requestId: string;
|
|
2022
|
+
keyword: string;
|
|
2023
|
+
data?: unknown;
|
|
2024
|
+
}>]>, "many">>;
|
|
2025
|
+
originatingSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1510
2026
|
createdAt: z.ZodDate;
|
|
1511
2027
|
}, "strip", z.ZodTypeAny, {
|
|
1512
2028
|
status: {
|
|
@@ -1546,6 +2062,21 @@ export declare const processesContract: {
|
|
|
1546
2062
|
widgetData?: unknown;
|
|
1547
2063
|
supportsResume?: boolean | undefined;
|
|
1548
2064
|
hasSavedState?: boolean | undefined;
|
|
2065
|
+
browserOpenRequests?: {
|
|
2066
|
+
requestId: string;
|
|
2067
|
+
url: string;
|
|
2068
|
+
}[] | undefined;
|
|
2069
|
+
sessionEvents?: ({
|
|
2070
|
+
type: "attention";
|
|
2071
|
+
requestId: string;
|
|
2072
|
+
reason: string;
|
|
2073
|
+
} | {
|
|
2074
|
+
type: "domain";
|
|
2075
|
+
requestId: string;
|
|
2076
|
+
keyword: string;
|
|
2077
|
+
data?: unknown;
|
|
2078
|
+
})[] | undefined;
|
|
2079
|
+
originatingSessionId?: string | null | undefined;
|
|
1549
2080
|
}, {
|
|
1550
2081
|
status: {
|
|
1551
2082
|
state: "idle" | "scheduled" | "running" | "done" | "failed" | "cancel_requested" | "cancelling" | "cancelled";
|
|
@@ -1584,6 +2115,21 @@ export declare const processesContract: {
|
|
|
1584
2115
|
widgetData?: unknown;
|
|
1585
2116
|
supportsResume?: boolean | undefined;
|
|
1586
2117
|
hasSavedState?: boolean | undefined;
|
|
2118
|
+
browserOpenRequests?: {
|
|
2119
|
+
requestId: string;
|
|
2120
|
+
url: string;
|
|
2121
|
+
}[] | undefined;
|
|
2122
|
+
sessionEvents?: ({
|
|
2123
|
+
type: "attention";
|
|
2124
|
+
requestId: string;
|
|
2125
|
+
reason: string;
|
|
2126
|
+
} | {
|
|
2127
|
+
type: "domain";
|
|
2128
|
+
requestId: string;
|
|
2129
|
+
keyword: string;
|
|
2130
|
+
data?: unknown;
|
|
2131
|
+
})[] | undefined;
|
|
2132
|
+
originatingSessionId?: string | null | undefined;
|
|
1587
2133
|
}>;
|
|
1588
2134
|
404: z.ZodObject<{
|
|
1589
2135
|
reason: z.ZodEnum<["not-found", "not-dismissable"]>;
|
|
@@ -1622,12 +2168,12 @@ export declare const processesContract: {
|
|
|
1622
2168
|
method: "POST";
|
|
1623
2169
|
body: z.ZodObject<{
|
|
1624
2170
|
clean: z.ZodOptional<z.ZodBoolean>;
|
|
1625
|
-
metadataFilter: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
2171
|
+
metadataFilter: z.ZodOptional<z.ZodUnion<[z.ZodType<unknown, z.ZodTypeDef, unknown>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>]>>;
|
|
1626
2172
|
}, "strip", z.ZodTypeAny, {
|
|
1627
|
-
metadataFilter?:
|
|
2173
|
+
metadataFilter?: unknown;
|
|
1628
2174
|
clean?: boolean | undefined;
|
|
1629
2175
|
}, {
|
|
1630
|
-
metadataFilter?:
|
|
2176
|
+
metadataFilter?: unknown;
|
|
1631
2177
|
clean?: boolean | undefined;
|
|
1632
2178
|
}>;
|
|
1633
2179
|
path: "/processes/resync";
|