@intuned/runtime-dev 0.1.0-test.31 → 0.1.0-test.32
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/InterfaceTemplate/index.ts +1 -1
- package/dist/commands/interface/run.d.ts +1 -1
- package/dist/commands/interface/run.js +6 -2
- package/dist/common/getPlaywrightConstructs.js +5 -1
- package/dist/common/runApi/index.js +5 -1
- package/dist/common/runApi/types.d.ts +276 -58
- package/dist/common/runApi/types.js +26 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { runAutomationCLI } from "@intuned/runtime/dist/commands/interface/run";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export
|
|
2
|
+
export declare function runAutomationCLI(importFunction?: (path: string) => Promise<any>): void;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.runAutomationCLI = runAutomationCLI;
|
|
4
8
|
var _commander = require("commander");
|
|
5
9
|
var _dotenv = _interopRequireDefault(require("dotenv"));
|
|
6
10
|
var _asyncLocalStorage = require("../../common/asyncLocalStorage");
|
|
@@ -47,7 +51,7 @@ const inputSchema = _zod.default.union([startRunApiSchema, nextRunApiSchema, abo
|
|
|
47
51
|
_dotenv.default.config({
|
|
48
52
|
path: `.env`
|
|
49
53
|
});
|
|
50
|
-
function
|
|
54
|
+
function runAutomationCLI(importFunction) {
|
|
51
55
|
_commander.program.description("run user automation and communicate using unix socket").argument("<socket-path>", "path to unix socket").action(async socketPath => {
|
|
52
56
|
let context;
|
|
53
57
|
const throttleTime = 1_000;
|
|
@@ -183,5 +187,5 @@ function getProxyUrlFromRunOptions(runOptions) {
|
|
|
183
187
|
return url.toString();
|
|
184
188
|
}
|
|
185
189
|
if (require.main === module) {
|
|
186
|
-
|
|
190
|
+
runAutomationCLI();
|
|
187
191
|
}
|
|
@@ -151,7 +151,11 @@ async function loadSessionToContext({
|
|
|
151
151
|
}) {
|
|
152
152
|
let sessionToLoad;
|
|
153
153
|
if (session.type === "state") {
|
|
154
|
-
|
|
154
|
+
const state = session.state;
|
|
155
|
+
if (state === undefined || state === null) {
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
sessionToLoad = state;
|
|
155
159
|
} else {
|
|
156
160
|
const fullPath = (0, _fileUtils.getFullPathInProject)(session.path);
|
|
157
161
|
sessionToLoad = await fs.readJson(fullPath);
|
|
@@ -117,7 +117,11 @@ async function* runApiGenerator({
|
|
|
117
117
|
});
|
|
118
118
|
});
|
|
119
119
|
if (auth && auth.session.type === "state") {
|
|
120
|
-
|
|
120
|
+
const state = auth.session.state;
|
|
121
|
+
if (state === undefined || state === null) {
|
|
122
|
+
return (0, _neverthrow.err)(new _errors.AuthRequiredError());
|
|
123
|
+
}
|
|
124
|
+
await (0, _contextStorageStateHelpers.setContextStorageState)(context, state);
|
|
121
125
|
}
|
|
122
126
|
async function* runAutomation() {
|
|
123
127
|
var _getExecutionContext;
|
|
@@ -36,12 +36,91 @@ export declare const runApiSessionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
36
36
|
path: string;
|
|
37
37
|
}>, z.ZodObject<{
|
|
38
38
|
type: z.ZodLiteral<"state">;
|
|
39
|
-
state: z.
|
|
40
|
-
cookies: {
|
|
39
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
value: z.ZodString;
|
|
43
|
+
domain: z.ZodString;
|
|
44
|
+
path: z.ZodString;
|
|
45
|
+
expires: z.ZodNumber;
|
|
46
|
+
httpOnly: z.ZodBoolean;
|
|
47
|
+
secure: z.ZodBoolean;
|
|
48
|
+
sameSite: z.ZodEnum<["Strict", "Lax", "None"]>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
50
|
name: string;
|
|
42
51
|
value: string;
|
|
52
|
+
path: string;
|
|
43
53
|
domain: string;
|
|
54
|
+
expires: number;
|
|
55
|
+
httpOnly: boolean;
|
|
56
|
+
secure: boolean;
|
|
57
|
+
sameSite: "Strict" | "Lax" | "None";
|
|
58
|
+
}, {
|
|
59
|
+
name: string;
|
|
60
|
+
value: string;
|
|
61
|
+
path: string;
|
|
62
|
+
domain: string;
|
|
63
|
+
expires: number;
|
|
64
|
+
httpOnly: boolean;
|
|
65
|
+
secure: boolean;
|
|
66
|
+
sameSite: "Strict" | "Lax" | "None";
|
|
67
|
+
}>, "many">;
|
|
68
|
+
origins: z.ZodArray<z.ZodObject<{
|
|
69
|
+
origin: z.ZodString;
|
|
70
|
+
localStorage: z.ZodArray<z.ZodObject<{
|
|
71
|
+
name: z.ZodString;
|
|
72
|
+
value: z.ZodString;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
name: string;
|
|
75
|
+
value: string;
|
|
76
|
+
}, {
|
|
77
|
+
name: string;
|
|
78
|
+
value: string;
|
|
79
|
+
}>, "many">;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
origin: string;
|
|
82
|
+
localStorage: {
|
|
83
|
+
name: string;
|
|
84
|
+
value: string;
|
|
85
|
+
}[];
|
|
86
|
+
}, {
|
|
87
|
+
origin: string;
|
|
88
|
+
localStorage: {
|
|
89
|
+
name: string;
|
|
90
|
+
value: string;
|
|
91
|
+
}[];
|
|
92
|
+
}>, "many">;
|
|
93
|
+
sessionStorage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
94
|
+
origin: z.ZodString;
|
|
95
|
+
sessionStorage: z.ZodArray<z.ZodObject<{
|
|
96
|
+
name: z.ZodString;
|
|
97
|
+
value: z.ZodString;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
name: string;
|
|
100
|
+
value: string;
|
|
101
|
+
}, {
|
|
102
|
+
name: string;
|
|
103
|
+
value: string;
|
|
104
|
+
}>, "many">;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
origin: string;
|
|
107
|
+
sessionStorage: {
|
|
108
|
+
name: string;
|
|
109
|
+
value: string;
|
|
110
|
+
}[];
|
|
111
|
+
}, {
|
|
112
|
+
origin: string;
|
|
113
|
+
sessionStorage: {
|
|
114
|
+
name: string;
|
|
115
|
+
value: string;
|
|
116
|
+
}[];
|
|
117
|
+
}>, "many">>;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
cookies: {
|
|
120
|
+
name: string;
|
|
121
|
+
value: string;
|
|
44
122
|
path: string;
|
|
123
|
+
domain: string;
|
|
45
124
|
expires: number;
|
|
46
125
|
httpOnly: boolean;
|
|
47
126
|
secure: boolean;
|
|
@@ -54,14 +133,19 @@ export declare const runApiSessionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
54
133
|
value: string;
|
|
55
134
|
}[];
|
|
56
135
|
}[];
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
136
|
+
sessionStorage?: {
|
|
137
|
+
origin: string;
|
|
138
|
+
sessionStorage: {
|
|
139
|
+
name: string;
|
|
140
|
+
value: string;
|
|
141
|
+
}[];
|
|
142
|
+
}[] | undefined;
|
|
143
|
+
}, {
|
|
60
144
|
cookies: {
|
|
61
145
|
name: string;
|
|
62
146
|
value: string;
|
|
63
|
-
domain: string;
|
|
64
147
|
path: string;
|
|
148
|
+
domain: string;
|
|
65
149
|
expires: number;
|
|
66
150
|
httpOnly: boolean;
|
|
67
151
|
secure: boolean;
|
|
@@ -74,17 +158,22 @@ export declare const runApiSessionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
74
158
|
value: string;
|
|
75
159
|
}[];
|
|
76
160
|
}[];
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
161
|
+
sessionStorage?: {
|
|
162
|
+
origin: string;
|
|
163
|
+
sessionStorage: {
|
|
164
|
+
name: string;
|
|
165
|
+
value: string;
|
|
166
|
+
}[];
|
|
167
|
+
}[] | undefined;
|
|
168
|
+
}>>>;
|
|
80
169
|
}, "strip", z.ZodTypeAny, {
|
|
81
170
|
type: "state";
|
|
82
|
-
state
|
|
171
|
+
state?: {
|
|
83
172
|
cookies: {
|
|
84
173
|
name: string;
|
|
85
174
|
value: string;
|
|
86
|
-
domain: string;
|
|
87
175
|
path: string;
|
|
176
|
+
domain: string;
|
|
88
177
|
expires: number;
|
|
89
178
|
httpOnly: boolean;
|
|
90
179
|
secure: boolean;
|
|
@@ -97,17 +186,22 @@ export declare const runApiSessionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
97
186
|
value: string;
|
|
98
187
|
}[];
|
|
99
188
|
}[];
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
189
|
+
sessionStorage?: {
|
|
190
|
+
origin: string;
|
|
191
|
+
sessionStorage: {
|
|
192
|
+
name: string;
|
|
193
|
+
value: string;
|
|
194
|
+
}[];
|
|
195
|
+
}[] | undefined;
|
|
196
|
+
} | null | undefined;
|
|
103
197
|
}, {
|
|
104
198
|
type: "state";
|
|
105
|
-
state
|
|
199
|
+
state?: {
|
|
106
200
|
cookies: {
|
|
107
201
|
name: string;
|
|
108
202
|
value: string;
|
|
109
|
-
domain: string;
|
|
110
203
|
path: string;
|
|
204
|
+
domain: string;
|
|
111
205
|
expires: number;
|
|
112
206
|
httpOnly: boolean;
|
|
113
207
|
secure: boolean;
|
|
@@ -120,9 +214,14 @@ export declare const runApiSessionSchema: z.ZodDiscriminatedUnion<"type", [z.Zod
|
|
|
120
214
|
value: string;
|
|
121
215
|
}[];
|
|
122
216
|
}[];
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
217
|
+
sessionStorage?: {
|
|
218
|
+
origin: string;
|
|
219
|
+
sessionStorage: {
|
|
220
|
+
name: string;
|
|
221
|
+
value: string;
|
|
222
|
+
}[];
|
|
223
|
+
}[] | undefined;
|
|
224
|
+
} | null | undefined;
|
|
126
225
|
}>]>;
|
|
127
226
|
export declare const runApiParametersSchema: z.ZodObject<{
|
|
128
227
|
automationFunction: z.ZodObject<{
|
|
@@ -163,12 +262,91 @@ export declare const runApiParametersSchema: z.ZodObject<{
|
|
|
163
262
|
path: string;
|
|
164
263
|
}>, z.ZodObject<{
|
|
165
264
|
type: z.ZodLiteral<"state">;
|
|
166
|
-
state: z.
|
|
167
|
-
cookies: {
|
|
265
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
266
|
+
cookies: z.ZodArray<z.ZodObject<{
|
|
267
|
+
name: z.ZodString;
|
|
268
|
+
value: z.ZodString;
|
|
269
|
+
domain: z.ZodString;
|
|
270
|
+
path: z.ZodString;
|
|
271
|
+
expires: z.ZodNumber;
|
|
272
|
+
httpOnly: z.ZodBoolean;
|
|
273
|
+
secure: z.ZodBoolean;
|
|
274
|
+
sameSite: z.ZodEnum<["Strict", "Lax", "None"]>;
|
|
275
|
+
}, "strip", z.ZodTypeAny, {
|
|
276
|
+
name: string;
|
|
277
|
+
value: string;
|
|
278
|
+
path: string;
|
|
279
|
+
domain: string;
|
|
280
|
+
expires: number;
|
|
281
|
+
httpOnly: boolean;
|
|
282
|
+
secure: boolean;
|
|
283
|
+
sameSite: "Strict" | "Lax" | "None";
|
|
284
|
+
}, {
|
|
168
285
|
name: string;
|
|
169
286
|
value: string;
|
|
287
|
+
path: string;
|
|
170
288
|
domain: string;
|
|
289
|
+
expires: number;
|
|
290
|
+
httpOnly: boolean;
|
|
291
|
+
secure: boolean;
|
|
292
|
+
sameSite: "Strict" | "Lax" | "None";
|
|
293
|
+
}>, "many">;
|
|
294
|
+
origins: z.ZodArray<z.ZodObject<{
|
|
295
|
+
origin: z.ZodString;
|
|
296
|
+
localStorage: z.ZodArray<z.ZodObject<{
|
|
297
|
+
name: z.ZodString;
|
|
298
|
+
value: z.ZodString;
|
|
299
|
+
}, "strip", z.ZodTypeAny, {
|
|
300
|
+
name: string;
|
|
301
|
+
value: string;
|
|
302
|
+
}, {
|
|
303
|
+
name: string;
|
|
304
|
+
value: string;
|
|
305
|
+
}>, "many">;
|
|
306
|
+
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
origin: string;
|
|
308
|
+
localStorage: {
|
|
309
|
+
name: string;
|
|
310
|
+
value: string;
|
|
311
|
+
}[];
|
|
312
|
+
}, {
|
|
313
|
+
origin: string;
|
|
314
|
+
localStorage: {
|
|
315
|
+
name: string;
|
|
316
|
+
value: string;
|
|
317
|
+
}[];
|
|
318
|
+
}>, "many">;
|
|
319
|
+
sessionStorage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
320
|
+
origin: z.ZodString;
|
|
321
|
+
sessionStorage: z.ZodArray<z.ZodObject<{
|
|
322
|
+
name: z.ZodString;
|
|
323
|
+
value: z.ZodString;
|
|
324
|
+
}, "strip", z.ZodTypeAny, {
|
|
325
|
+
name: string;
|
|
326
|
+
value: string;
|
|
327
|
+
}, {
|
|
328
|
+
name: string;
|
|
329
|
+
value: string;
|
|
330
|
+
}>, "many">;
|
|
331
|
+
}, "strip", z.ZodTypeAny, {
|
|
332
|
+
origin: string;
|
|
333
|
+
sessionStorage: {
|
|
334
|
+
name: string;
|
|
335
|
+
value: string;
|
|
336
|
+
}[];
|
|
337
|
+
}, {
|
|
338
|
+
origin: string;
|
|
339
|
+
sessionStorage: {
|
|
340
|
+
name: string;
|
|
341
|
+
value: string;
|
|
342
|
+
}[];
|
|
343
|
+
}>, "many">>;
|
|
344
|
+
}, "strip", z.ZodTypeAny, {
|
|
345
|
+
cookies: {
|
|
346
|
+
name: string;
|
|
347
|
+
value: string;
|
|
171
348
|
path: string;
|
|
349
|
+
domain: string;
|
|
172
350
|
expires: number;
|
|
173
351
|
httpOnly: boolean;
|
|
174
352
|
secure: boolean;
|
|
@@ -181,14 +359,19 @@ export declare const runApiParametersSchema: z.ZodObject<{
|
|
|
181
359
|
value: string;
|
|
182
360
|
}[];
|
|
183
361
|
}[];
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
362
|
+
sessionStorage?: {
|
|
363
|
+
origin: string;
|
|
364
|
+
sessionStorage: {
|
|
365
|
+
name: string;
|
|
366
|
+
value: string;
|
|
367
|
+
}[];
|
|
368
|
+
}[] | undefined;
|
|
369
|
+
}, {
|
|
187
370
|
cookies: {
|
|
188
371
|
name: string;
|
|
189
372
|
value: string;
|
|
190
|
-
domain: string;
|
|
191
373
|
path: string;
|
|
374
|
+
domain: string;
|
|
192
375
|
expires: number;
|
|
193
376
|
httpOnly: boolean;
|
|
194
377
|
secure: boolean;
|
|
@@ -201,17 +384,22 @@ export declare const runApiParametersSchema: z.ZodObject<{
|
|
|
201
384
|
value: string;
|
|
202
385
|
}[];
|
|
203
386
|
}[];
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
387
|
+
sessionStorage?: {
|
|
388
|
+
origin: string;
|
|
389
|
+
sessionStorage: {
|
|
390
|
+
name: string;
|
|
391
|
+
value: string;
|
|
392
|
+
}[];
|
|
393
|
+
}[] | undefined;
|
|
394
|
+
}>>>;
|
|
207
395
|
}, "strip", z.ZodTypeAny, {
|
|
208
396
|
type: "state";
|
|
209
|
-
state
|
|
397
|
+
state?: {
|
|
210
398
|
cookies: {
|
|
211
399
|
name: string;
|
|
212
400
|
value: string;
|
|
213
|
-
domain: string;
|
|
214
401
|
path: string;
|
|
402
|
+
domain: string;
|
|
215
403
|
expires: number;
|
|
216
404
|
httpOnly: boolean;
|
|
217
405
|
secure: boolean;
|
|
@@ -224,17 +412,22 @@ export declare const runApiParametersSchema: z.ZodObject<{
|
|
|
224
412
|
value: string;
|
|
225
413
|
}[];
|
|
226
414
|
}[];
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
415
|
+
sessionStorage?: {
|
|
416
|
+
origin: string;
|
|
417
|
+
sessionStorage: {
|
|
418
|
+
name: string;
|
|
419
|
+
value: string;
|
|
420
|
+
}[];
|
|
421
|
+
}[] | undefined;
|
|
422
|
+
} | null | undefined;
|
|
230
423
|
}, {
|
|
231
424
|
type: "state";
|
|
232
|
-
state
|
|
425
|
+
state?: {
|
|
233
426
|
cookies: {
|
|
234
427
|
name: string;
|
|
235
428
|
value: string;
|
|
236
|
-
domain: string;
|
|
237
429
|
path: string;
|
|
430
|
+
domain: string;
|
|
238
431
|
expires: number;
|
|
239
432
|
httpOnly: boolean;
|
|
240
433
|
secure: boolean;
|
|
@@ -247,9 +440,14 @@ export declare const runApiParametersSchema: z.ZodObject<{
|
|
|
247
440
|
value: string;
|
|
248
441
|
}[];
|
|
249
442
|
}[];
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
443
|
+
sessionStorage?: {
|
|
444
|
+
origin: string;
|
|
445
|
+
sessionStorage: {
|
|
446
|
+
name: string;
|
|
447
|
+
value: string;
|
|
448
|
+
}[];
|
|
449
|
+
}[] | undefined;
|
|
450
|
+
} | null | undefined;
|
|
253
451
|
}>]>;
|
|
254
452
|
runCheck: z.ZodDefault<z.ZodBoolean>;
|
|
255
453
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -258,12 +456,12 @@ export declare const runApiParametersSchema: z.ZodObject<{
|
|
|
258
456
|
path: string;
|
|
259
457
|
} | {
|
|
260
458
|
type: "state";
|
|
261
|
-
state
|
|
459
|
+
state?: {
|
|
262
460
|
cookies: {
|
|
263
461
|
name: string;
|
|
264
462
|
value: string;
|
|
265
|
-
domain: string;
|
|
266
463
|
path: string;
|
|
464
|
+
domain: string;
|
|
267
465
|
expires: number;
|
|
268
466
|
httpOnly: boolean;
|
|
269
467
|
secure: boolean;
|
|
@@ -276,9 +474,14 @@ export declare const runApiParametersSchema: z.ZodObject<{
|
|
|
276
474
|
value: string;
|
|
277
475
|
}[];
|
|
278
476
|
}[];
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
477
|
+
sessionStorage?: {
|
|
478
|
+
origin: string;
|
|
479
|
+
sessionStorage: {
|
|
480
|
+
name: string;
|
|
481
|
+
value: string;
|
|
482
|
+
}[];
|
|
483
|
+
}[] | undefined;
|
|
484
|
+
} | null | undefined;
|
|
282
485
|
};
|
|
283
486
|
runCheck: boolean;
|
|
284
487
|
}, {
|
|
@@ -287,12 +490,12 @@ export declare const runApiParametersSchema: z.ZodObject<{
|
|
|
287
490
|
path: string;
|
|
288
491
|
} | {
|
|
289
492
|
type: "state";
|
|
290
|
-
state
|
|
493
|
+
state?: {
|
|
291
494
|
cookies: {
|
|
292
495
|
name: string;
|
|
293
496
|
value: string;
|
|
294
|
-
domain: string;
|
|
295
497
|
path: string;
|
|
498
|
+
domain: string;
|
|
296
499
|
expires: number;
|
|
297
500
|
httpOnly: boolean;
|
|
298
501
|
secure: boolean;
|
|
@@ -305,9 +508,14 @@ export declare const runApiParametersSchema: z.ZodObject<{
|
|
|
305
508
|
value: string;
|
|
306
509
|
}[];
|
|
307
510
|
}[];
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
511
|
+
sessionStorage?: {
|
|
512
|
+
origin: string;
|
|
513
|
+
sessionStorage: {
|
|
514
|
+
name: string;
|
|
515
|
+
value: string;
|
|
516
|
+
}[];
|
|
517
|
+
}[] | undefined;
|
|
518
|
+
} | null | undefined;
|
|
311
519
|
};
|
|
312
520
|
runCheck?: boolean | undefined;
|
|
313
521
|
}>>;
|
|
@@ -388,12 +596,12 @@ export declare const runApiParametersSchema: z.ZodObject<{
|
|
|
388
596
|
path: string;
|
|
389
597
|
} | {
|
|
390
598
|
type: "state";
|
|
391
|
-
state
|
|
599
|
+
state?: {
|
|
392
600
|
cookies: {
|
|
393
601
|
name: string;
|
|
394
602
|
value: string;
|
|
395
|
-
domain: string;
|
|
396
603
|
path: string;
|
|
604
|
+
domain: string;
|
|
397
605
|
expires: number;
|
|
398
606
|
httpOnly: boolean;
|
|
399
607
|
secure: boolean;
|
|
@@ -406,9 +614,14 @@ export declare const runApiParametersSchema: z.ZodObject<{
|
|
|
406
614
|
value: string;
|
|
407
615
|
}[];
|
|
408
616
|
}[];
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
617
|
+
sessionStorage?: {
|
|
618
|
+
origin: string;
|
|
619
|
+
sessionStorage: {
|
|
620
|
+
name: string;
|
|
621
|
+
value: string;
|
|
622
|
+
}[];
|
|
623
|
+
}[] | undefined;
|
|
624
|
+
} | null | undefined;
|
|
412
625
|
};
|
|
413
626
|
runCheck: boolean;
|
|
414
627
|
} | undefined;
|
|
@@ -429,12 +642,12 @@ export declare const runApiParametersSchema: z.ZodObject<{
|
|
|
429
642
|
path: string;
|
|
430
643
|
} | {
|
|
431
644
|
type: "state";
|
|
432
|
-
state
|
|
645
|
+
state?: {
|
|
433
646
|
cookies: {
|
|
434
647
|
name: string;
|
|
435
648
|
value: string;
|
|
436
|
-
domain: string;
|
|
437
649
|
path: string;
|
|
650
|
+
domain: string;
|
|
438
651
|
expires: number;
|
|
439
652
|
httpOnly: boolean;
|
|
440
653
|
secure: boolean;
|
|
@@ -447,9 +660,14 @@ export declare const runApiParametersSchema: z.ZodObject<{
|
|
|
447
660
|
value: string;
|
|
448
661
|
}[];
|
|
449
662
|
}[];
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
663
|
+
sessionStorage?: {
|
|
664
|
+
origin: string;
|
|
665
|
+
sessionStorage: {
|
|
666
|
+
name: string;
|
|
667
|
+
value: string;
|
|
668
|
+
}[];
|
|
669
|
+
}[] | undefined;
|
|
670
|
+
} | null | undefined;
|
|
453
671
|
};
|
|
454
672
|
runCheck?: boolean | undefined;
|
|
455
673
|
} | undefined;
|
|
@@ -11,7 +11,32 @@ const runApiSessionSchema = exports.runApiSessionSchema = _zod.default.discrimin
|
|
|
11
11
|
path: _zod.default.string()
|
|
12
12
|
}), _zod.default.object({
|
|
13
13
|
type: _zod.default.literal("state"),
|
|
14
|
-
state: _zod.default.
|
|
14
|
+
state: _zod.default.object({
|
|
15
|
+
cookies: _zod.default.array(_zod.default.object({
|
|
16
|
+
name: _zod.default.string(),
|
|
17
|
+
value: _zod.default.string(),
|
|
18
|
+
domain: _zod.default.string(),
|
|
19
|
+
path: _zod.default.string(),
|
|
20
|
+
expires: _zod.default.number(),
|
|
21
|
+
httpOnly: _zod.default.boolean(),
|
|
22
|
+
secure: _zod.default.boolean(),
|
|
23
|
+
sameSite: _zod.default.enum(["Strict", "Lax", "None"])
|
|
24
|
+
})),
|
|
25
|
+
origins: _zod.default.array(_zod.default.object({
|
|
26
|
+
origin: _zod.default.string(),
|
|
27
|
+
localStorage: _zod.default.array(_zod.default.object({
|
|
28
|
+
name: _zod.default.string(),
|
|
29
|
+
value: _zod.default.string()
|
|
30
|
+
}))
|
|
31
|
+
})),
|
|
32
|
+
sessionStorage: _zod.default.array(_zod.default.object({
|
|
33
|
+
origin: _zod.default.string(),
|
|
34
|
+
sessionStorage: _zod.default.array(_zod.default.object({
|
|
35
|
+
name: _zod.default.string(),
|
|
36
|
+
value: _zod.default.string()
|
|
37
|
+
}))
|
|
38
|
+
})).optional()
|
|
39
|
+
}).nullable().optional()
|
|
15
40
|
})]);
|
|
16
41
|
const runApiParametersSchema = exports.runApiParametersSchema = _zod.default.object({
|
|
17
42
|
automationFunction: _zod.default.object({
|