@intuned/runtime 1.3.18-interface.6 → 1.3.18-interface.7
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Result } from 'neverthrow';
|
|
2
2
|
import { Page, BrowserContext } from 'playwright';
|
|
3
|
-
import {
|
|
3
|
+
import { ExtendedRunApiParameters, RunApiResult, RunApiResultWithSessionOk, RunAutomationError } from '@intuned/runtime-interface';
|
|
4
4
|
|
|
5
5
|
declare function runApi<ResultType = any>(input: ExtendedRunApiParameters & {
|
|
6
6
|
retrieveSession: true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Result } from 'neverthrow';
|
|
2
2
|
import { Page, BrowserContext } from 'playwright';
|
|
3
|
-
import {
|
|
3
|
+
import { ExtendedRunApiParameters, RunApiResult, RunApiResultWithSessionOk, RunAutomationError } from '@intuned/runtime-interface';
|
|
4
4
|
|
|
5
5
|
declare function runApi<ResultType = any>(input: ExtendedRunApiParameters & {
|
|
6
6
|
retrieveSession: true;
|
|
@@ -61,6 +61,7 @@ declare const captchaSolverSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
61
61
|
}>>;
|
|
62
62
|
customCaptcha: z.ZodOptional<z.ZodObject<{
|
|
63
63
|
enabled: z.ZodBoolean;
|
|
64
|
+
} & {
|
|
64
65
|
imageLocators: z.ZodArray<z.ZodString, "many">;
|
|
65
66
|
submitLocators: z.ZodArray<z.ZodString, "many">;
|
|
66
67
|
inputLocators: z.ZodArray<z.ZodString, "many">;
|
|
@@ -77,6 +78,7 @@ declare const captchaSolverSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
77
78
|
}>>;
|
|
78
79
|
text: z.ZodOptional<z.ZodObject<{
|
|
79
80
|
enabled: z.ZodBoolean;
|
|
81
|
+
} & {
|
|
80
82
|
labelLocators: z.ZodArray<z.ZodString, "many">;
|
|
81
83
|
submitLocators: z.ZodArray<z.ZodString, "many">;
|
|
82
84
|
inputLocators: z.ZodArray<z.ZodString, "many">;
|
|
@@ -115,26 +117,26 @@ declare const captchaSolverSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
115
117
|
maxRetries: number;
|
|
116
118
|
timeout: number;
|
|
117
119
|
};
|
|
118
|
-
port?: number | undefined;
|
|
119
120
|
cloudflare?: {
|
|
120
121
|
enabled: boolean;
|
|
121
122
|
} | undefined;
|
|
122
|
-
|
|
123
|
+
funcaptcha?: {
|
|
123
124
|
enabled: boolean;
|
|
124
125
|
} | undefined;
|
|
125
|
-
|
|
126
|
+
geetest?: {
|
|
126
127
|
enabled: boolean;
|
|
127
128
|
} | undefined;
|
|
128
|
-
|
|
129
|
+
hcaptcha?: {
|
|
129
130
|
enabled: boolean;
|
|
130
131
|
} | undefined;
|
|
131
|
-
|
|
132
|
+
port?: number | undefined;
|
|
133
|
+
googleRecaptchaV2?: {
|
|
132
134
|
enabled: boolean;
|
|
133
135
|
} | undefined;
|
|
134
|
-
|
|
136
|
+
googleRecaptchaV3?: {
|
|
135
137
|
enabled: boolean;
|
|
136
138
|
} | undefined;
|
|
137
|
-
|
|
139
|
+
awscaptcha?: {
|
|
138
140
|
enabled: boolean;
|
|
139
141
|
} | undefined;
|
|
140
142
|
lemin?: {
|
|
@@ -153,27 +155,27 @@ declare const captchaSolverSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
153
155
|
labelLocators: string[];
|
|
154
156
|
} | undefined;
|
|
155
157
|
}, {
|
|
156
|
-
enabled?: boolean | undefined;
|
|
157
|
-
port?: number | undefined;
|
|
158
158
|
cloudflare?: {
|
|
159
159
|
enabled: boolean;
|
|
160
160
|
} | undefined;
|
|
161
|
-
|
|
161
|
+
funcaptcha?: {
|
|
162
162
|
enabled: boolean;
|
|
163
163
|
} | undefined;
|
|
164
|
-
|
|
164
|
+
geetest?: {
|
|
165
165
|
enabled: boolean;
|
|
166
166
|
} | undefined;
|
|
167
|
-
|
|
167
|
+
hcaptcha?: {
|
|
168
168
|
enabled: boolean;
|
|
169
169
|
} | undefined;
|
|
170
|
-
|
|
170
|
+
enabled?: boolean | undefined;
|
|
171
|
+
port?: number | undefined;
|
|
172
|
+
googleRecaptchaV2?: {
|
|
171
173
|
enabled: boolean;
|
|
172
174
|
} | undefined;
|
|
173
|
-
|
|
175
|
+
googleRecaptchaV3?: {
|
|
174
176
|
enabled: boolean;
|
|
175
177
|
} | undefined;
|
|
176
|
-
|
|
178
|
+
awscaptcha?: {
|
|
177
179
|
enabled: boolean;
|
|
178
180
|
} | undefined;
|
|
179
181
|
lemin?: {
|
|
@@ -287,6 +289,7 @@ declare const settingsSchema: z.ZodObject<{
|
|
|
287
289
|
}>>;
|
|
288
290
|
customCaptcha: z.ZodOptional<z.ZodObject<{
|
|
289
291
|
enabled: z.ZodBoolean;
|
|
292
|
+
} & {
|
|
290
293
|
imageLocators: z.ZodArray<z.ZodString, "many">;
|
|
291
294
|
submitLocators: z.ZodArray<z.ZodString, "many">;
|
|
292
295
|
inputLocators: z.ZodArray<z.ZodString, "many">;
|
|
@@ -303,6 +306,7 @@ declare const settingsSchema: z.ZodObject<{
|
|
|
303
306
|
}>>;
|
|
304
307
|
text: z.ZodOptional<z.ZodObject<{
|
|
305
308
|
enabled: z.ZodBoolean;
|
|
309
|
+
} & {
|
|
306
310
|
labelLocators: z.ZodArray<z.ZodString, "many">;
|
|
307
311
|
submitLocators: z.ZodArray<z.ZodString, "many">;
|
|
308
312
|
inputLocators: z.ZodArray<z.ZodString, "many">;
|
|
@@ -341,26 +345,26 @@ declare const settingsSchema: z.ZodObject<{
|
|
|
341
345
|
maxRetries: number;
|
|
342
346
|
timeout: number;
|
|
343
347
|
};
|
|
344
|
-
port?: number | undefined;
|
|
345
348
|
cloudflare?: {
|
|
346
349
|
enabled: boolean;
|
|
347
350
|
} | undefined;
|
|
348
|
-
|
|
351
|
+
funcaptcha?: {
|
|
349
352
|
enabled: boolean;
|
|
350
353
|
} | undefined;
|
|
351
|
-
|
|
354
|
+
geetest?: {
|
|
352
355
|
enabled: boolean;
|
|
353
356
|
} | undefined;
|
|
354
|
-
|
|
357
|
+
hcaptcha?: {
|
|
355
358
|
enabled: boolean;
|
|
356
359
|
} | undefined;
|
|
357
|
-
|
|
360
|
+
port?: number | undefined;
|
|
361
|
+
googleRecaptchaV2?: {
|
|
358
362
|
enabled: boolean;
|
|
359
363
|
} | undefined;
|
|
360
|
-
|
|
364
|
+
googleRecaptchaV3?: {
|
|
361
365
|
enabled: boolean;
|
|
362
366
|
} | undefined;
|
|
363
|
-
|
|
367
|
+
awscaptcha?: {
|
|
364
368
|
enabled: boolean;
|
|
365
369
|
} | undefined;
|
|
366
370
|
lemin?: {
|
|
@@ -379,27 +383,27 @@ declare const settingsSchema: z.ZodObject<{
|
|
|
379
383
|
labelLocators: string[];
|
|
380
384
|
} | undefined;
|
|
381
385
|
}, {
|
|
382
|
-
enabled?: boolean | undefined;
|
|
383
|
-
port?: number | undefined;
|
|
384
386
|
cloudflare?: {
|
|
385
387
|
enabled: boolean;
|
|
386
388
|
} | undefined;
|
|
387
|
-
|
|
389
|
+
funcaptcha?: {
|
|
388
390
|
enabled: boolean;
|
|
389
391
|
} | undefined;
|
|
390
|
-
|
|
392
|
+
geetest?: {
|
|
391
393
|
enabled: boolean;
|
|
392
394
|
} | undefined;
|
|
393
|
-
|
|
395
|
+
hcaptcha?: {
|
|
394
396
|
enabled: boolean;
|
|
395
397
|
} | undefined;
|
|
396
|
-
|
|
398
|
+
enabled?: boolean | undefined;
|
|
399
|
+
port?: number | undefined;
|
|
400
|
+
googleRecaptchaV2?: {
|
|
397
401
|
enabled: boolean;
|
|
398
402
|
} | undefined;
|
|
399
|
-
|
|
403
|
+
googleRecaptchaV3?: {
|
|
400
404
|
enabled: boolean;
|
|
401
405
|
} | undefined;
|
|
402
|
-
|
|
406
|
+
awscaptcha?: {
|
|
403
407
|
enabled: boolean;
|
|
404
408
|
} | undefined;
|
|
405
409
|
lemin?: {
|
|
@@ -439,26 +443,26 @@ declare const settingsSchema: z.ZodObject<{
|
|
|
439
443
|
maxRetries: number;
|
|
440
444
|
timeout: number;
|
|
441
445
|
};
|
|
442
|
-
port?: number | undefined;
|
|
443
446
|
cloudflare?: {
|
|
444
447
|
enabled: boolean;
|
|
445
448
|
} | undefined;
|
|
446
|
-
|
|
449
|
+
funcaptcha?: {
|
|
447
450
|
enabled: boolean;
|
|
448
451
|
} | undefined;
|
|
449
|
-
|
|
452
|
+
geetest?: {
|
|
450
453
|
enabled: boolean;
|
|
451
454
|
} | undefined;
|
|
452
|
-
|
|
455
|
+
hcaptcha?: {
|
|
453
456
|
enabled: boolean;
|
|
454
457
|
} | undefined;
|
|
455
|
-
|
|
458
|
+
port?: number | undefined;
|
|
459
|
+
googleRecaptchaV2?: {
|
|
456
460
|
enabled: boolean;
|
|
457
461
|
} | undefined;
|
|
458
|
-
|
|
462
|
+
googleRecaptchaV3?: {
|
|
459
463
|
enabled: boolean;
|
|
460
464
|
} | undefined;
|
|
461
|
-
|
|
465
|
+
awscaptcha?: {
|
|
462
466
|
enabled: boolean;
|
|
463
467
|
} | undefined;
|
|
464
468
|
lemin?: {
|
|
@@ -485,27 +489,27 @@ declare const settingsSchema: z.ZodObject<{
|
|
|
485
489
|
enabled: boolean;
|
|
486
490
|
} | undefined;
|
|
487
491
|
captchaSolver?: {
|
|
488
|
-
enabled?: boolean | undefined;
|
|
489
|
-
port?: number | undefined;
|
|
490
492
|
cloudflare?: {
|
|
491
493
|
enabled: boolean;
|
|
492
494
|
} | undefined;
|
|
493
|
-
|
|
495
|
+
funcaptcha?: {
|
|
494
496
|
enabled: boolean;
|
|
495
497
|
} | undefined;
|
|
496
|
-
|
|
498
|
+
geetest?: {
|
|
497
499
|
enabled: boolean;
|
|
498
500
|
} | undefined;
|
|
499
|
-
|
|
501
|
+
hcaptcha?: {
|
|
500
502
|
enabled: boolean;
|
|
501
503
|
} | undefined;
|
|
502
|
-
|
|
504
|
+
enabled?: boolean | undefined;
|
|
505
|
+
port?: number | undefined;
|
|
506
|
+
googleRecaptchaV2?: {
|
|
503
507
|
enabled: boolean;
|
|
504
508
|
} | undefined;
|
|
505
|
-
|
|
509
|
+
googleRecaptchaV3?: {
|
|
506
510
|
enabled: boolean;
|
|
507
511
|
} | undefined;
|
|
508
|
-
|
|
512
|
+
awscaptcha?: {
|
|
509
513
|
enabled: boolean;
|
|
510
514
|
} | undefined;
|
|
511
515
|
lemin?: {
|
|
@@ -61,6 +61,7 @@ declare const captchaSolverSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
61
61
|
}>>;
|
|
62
62
|
customCaptcha: z.ZodOptional<z.ZodObject<{
|
|
63
63
|
enabled: z.ZodBoolean;
|
|
64
|
+
} & {
|
|
64
65
|
imageLocators: z.ZodArray<z.ZodString, "many">;
|
|
65
66
|
submitLocators: z.ZodArray<z.ZodString, "many">;
|
|
66
67
|
inputLocators: z.ZodArray<z.ZodString, "many">;
|
|
@@ -77,6 +78,7 @@ declare const captchaSolverSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
77
78
|
}>>;
|
|
78
79
|
text: z.ZodOptional<z.ZodObject<{
|
|
79
80
|
enabled: z.ZodBoolean;
|
|
81
|
+
} & {
|
|
80
82
|
labelLocators: z.ZodArray<z.ZodString, "many">;
|
|
81
83
|
submitLocators: z.ZodArray<z.ZodString, "many">;
|
|
82
84
|
inputLocators: z.ZodArray<z.ZodString, "many">;
|
|
@@ -115,26 +117,26 @@ declare const captchaSolverSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
115
117
|
maxRetries: number;
|
|
116
118
|
timeout: number;
|
|
117
119
|
};
|
|
118
|
-
port?: number | undefined;
|
|
119
120
|
cloudflare?: {
|
|
120
121
|
enabled: boolean;
|
|
121
122
|
} | undefined;
|
|
122
|
-
|
|
123
|
+
funcaptcha?: {
|
|
123
124
|
enabled: boolean;
|
|
124
125
|
} | undefined;
|
|
125
|
-
|
|
126
|
+
geetest?: {
|
|
126
127
|
enabled: boolean;
|
|
127
128
|
} | undefined;
|
|
128
|
-
|
|
129
|
+
hcaptcha?: {
|
|
129
130
|
enabled: boolean;
|
|
130
131
|
} | undefined;
|
|
131
|
-
|
|
132
|
+
port?: number | undefined;
|
|
133
|
+
googleRecaptchaV2?: {
|
|
132
134
|
enabled: boolean;
|
|
133
135
|
} | undefined;
|
|
134
|
-
|
|
136
|
+
googleRecaptchaV3?: {
|
|
135
137
|
enabled: boolean;
|
|
136
138
|
} | undefined;
|
|
137
|
-
|
|
139
|
+
awscaptcha?: {
|
|
138
140
|
enabled: boolean;
|
|
139
141
|
} | undefined;
|
|
140
142
|
lemin?: {
|
|
@@ -153,27 +155,27 @@ declare const captchaSolverSettingsSchema: z.ZodDefault<z.ZodObject<{
|
|
|
153
155
|
labelLocators: string[];
|
|
154
156
|
} | undefined;
|
|
155
157
|
}, {
|
|
156
|
-
enabled?: boolean | undefined;
|
|
157
|
-
port?: number | undefined;
|
|
158
158
|
cloudflare?: {
|
|
159
159
|
enabled: boolean;
|
|
160
160
|
} | undefined;
|
|
161
|
-
|
|
161
|
+
funcaptcha?: {
|
|
162
162
|
enabled: boolean;
|
|
163
163
|
} | undefined;
|
|
164
|
-
|
|
164
|
+
geetest?: {
|
|
165
165
|
enabled: boolean;
|
|
166
166
|
} | undefined;
|
|
167
|
-
|
|
167
|
+
hcaptcha?: {
|
|
168
168
|
enabled: boolean;
|
|
169
169
|
} | undefined;
|
|
170
|
-
|
|
170
|
+
enabled?: boolean | undefined;
|
|
171
|
+
port?: number | undefined;
|
|
172
|
+
googleRecaptchaV2?: {
|
|
171
173
|
enabled: boolean;
|
|
172
174
|
} | undefined;
|
|
173
|
-
|
|
175
|
+
googleRecaptchaV3?: {
|
|
174
176
|
enabled: boolean;
|
|
175
177
|
} | undefined;
|
|
176
|
-
|
|
178
|
+
awscaptcha?: {
|
|
177
179
|
enabled: boolean;
|
|
178
180
|
} | undefined;
|
|
179
181
|
lemin?: {
|
|
@@ -287,6 +289,7 @@ declare const settingsSchema: z.ZodObject<{
|
|
|
287
289
|
}>>;
|
|
288
290
|
customCaptcha: z.ZodOptional<z.ZodObject<{
|
|
289
291
|
enabled: z.ZodBoolean;
|
|
292
|
+
} & {
|
|
290
293
|
imageLocators: z.ZodArray<z.ZodString, "many">;
|
|
291
294
|
submitLocators: z.ZodArray<z.ZodString, "many">;
|
|
292
295
|
inputLocators: z.ZodArray<z.ZodString, "many">;
|
|
@@ -303,6 +306,7 @@ declare const settingsSchema: z.ZodObject<{
|
|
|
303
306
|
}>>;
|
|
304
307
|
text: z.ZodOptional<z.ZodObject<{
|
|
305
308
|
enabled: z.ZodBoolean;
|
|
309
|
+
} & {
|
|
306
310
|
labelLocators: z.ZodArray<z.ZodString, "many">;
|
|
307
311
|
submitLocators: z.ZodArray<z.ZodString, "many">;
|
|
308
312
|
inputLocators: z.ZodArray<z.ZodString, "many">;
|
|
@@ -341,26 +345,26 @@ declare const settingsSchema: z.ZodObject<{
|
|
|
341
345
|
maxRetries: number;
|
|
342
346
|
timeout: number;
|
|
343
347
|
};
|
|
344
|
-
port?: number | undefined;
|
|
345
348
|
cloudflare?: {
|
|
346
349
|
enabled: boolean;
|
|
347
350
|
} | undefined;
|
|
348
|
-
|
|
351
|
+
funcaptcha?: {
|
|
349
352
|
enabled: boolean;
|
|
350
353
|
} | undefined;
|
|
351
|
-
|
|
354
|
+
geetest?: {
|
|
352
355
|
enabled: boolean;
|
|
353
356
|
} | undefined;
|
|
354
|
-
|
|
357
|
+
hcaptcha?: {
|
|
355
358
|
enabled: boolean;
|
|
356
359
|
} | undefined;
|
|
357
|
-
|
|
360
|
+
port?: number | undefined;
|
|
361
|
+
googleRecaptchaV2?: {
|
|
358
362
|
enabled: boolean;
|
|
359
363
|
} | undefined;
|
|
360
|
-
|
|
364
|
+
googleRecaptchaV3?: {
|
|
361
365
|
enabled: boolean;
|
|
362
366
|
} | undefined;
|
|
363
|
-
|
|
367
|
+
awscaptcha?: {
|
|
364
368
|
enabled: boolean;
|
|
365
369
|
} | undefined;
|
|
366
370
|
lemin?: {
|
|
@@ -379,27 +383,27 @@ declare const settingsSchema: z.ZodObject<{
|
|
|
379
383
|
labelLocators: string[];
|
|
380
384
|
} | undefined;
|
|
381
385
|
}, {
|
|
382
|
-
enabled?: boolean | undefined;
|
|
383
|
-
port?: number | undefined;
|
|
384
386
|
cloudflare?: {
|
|
385
387
|
enabled: boolean;
|
|
386
388
|
} | undefined;
|
|
387
|
-
|
|
389
|
+
funcaptcha?: {
|
|
388
390
|
enabled: boolean;
|
|
389
391
|
} | undefined;
|
|
390
|
-
|
|
392
|
+
geetest?: {
|
|
391
393
|
enabled: boolean;
|
|
392
394
|
} | undefined;
|
|
393
|
-
|
|
395
|
+
hcaptcha?: {
|
|
394
396
|
enabled: boolean;
|
|
395
397
|
} | undefined;
|
|
396
|
-
|
|
398
|
+
enabled?: boolean | undefined;
|
|
399
|
+
port?: number | undefined;
|
|
400
|
+
googleRecaptchaV2?: {
|
|
397
401
|
enabled: boolean;
|
|
398
402
|
} | undefined;
|
|
399
|
-
|
|
403
|
+
googleRecaptchaV3?: {
|
|
400
404
|
enabled: boolean;
|
|
401
405
|
} | undefined;
|
|
402
|
-
|
|
406
|
+
awscaptcha?: {
|
|
403
407
|
enabled: boolean;
|
|
404
408
|
} | undefined;
|
|
405
409
|
lemin?: {
|
|
@@ -439,26 +443,26 @@ declare const settingsSchema: z.ZodObject<{
|
|
|
439
443
|
maxRetries: number;
|
|
440
444
|
timeout: number;
|
|
441
445
|
};
|
|
442
|
-
port?: number | undefined;
|
|
443
446
|
cloudflare?: {
|
|
444
447
|
enabled: boolean;
|
|
445
448
|
} | undefined;
|
|
446
|
-
|
|
449
|
+
funcaptcha?: {
|
|
447
450
|
enabled: boolean;
|
|
448
451
|
} | undefined;
|
|
449
|
-
|
|
452
|
+
geetest?: {
|
|
450
453
|
enabled: boolean;
|
|
451
454
|
} | undefined;
|
|
452
|
-
|
|
455
|
+
hcaptcha?: {
|
|
453
456
|
enabled: boolean;
|
|
454
457
|
} | undefined;
|
|
455
|
-
|
|
458
|
+
port?: number | undefined;
|
|
459
|
+
googleRecaptchaV2?: {
|
|
456
460
|
enabled: boolean;
|
|
457
461
|
} | undefined;
|
|
458
|
-
|
|
462
|
+
googleRecaptchaV3?: {
|
|
459
463
|
enabled: boolean;
|
|
460
464
|
} | undefined;
|
|
461
|
-
|
|
465
|
+
awscaptcha?: {
|
|
462
466
|
enabled: boolean;
|
|
463
467
|
} | undefined;
|
|
464
468
|
lemin?: {
|
|
@@ -485,27 +489,27 @@ declare const settingsSchema: z.ZodObject<{
|
|
|
485
489
|
enabled: boolean;
|
|
486
490
|
} | undefined;
|
|
487
491
|
captchaSolver?: {
|
|
488
|
-
enabled?: boolean | undefined;
|
|
489
|
-
port?: number | undefined;
|
|
490
492
|
cloudflare?: {
|
|
491
493
|
enabled: boolean;
|
|
492
494
|
} | undefined;
|
|
493
|
-
|
|
495
|
+
funcaptcha?: {
|
|
494
496
|
enabled: boolean;
|
|
495
497
|
} | undefined;
|
|
496
|
-
|
|
498
|
+
geetest?: {
|
|
497
499
|
enabled: boolean;
|
|
498
500
|
} | undefined;
|
|
499
|
-
|
|
501
|
+
hcaptcha?: {
|
|
500
502
|
enabled: boolean;
|
|
501
503
|
} | undefined;
|
|
502
|
-
|
|
504
|
+
enabled?: boolean | undefined;
|
|
505
|
+
port?: number | undefined;
|
|
506
|
+
googleRecaptchaV2?: {
|
|
503
507
|
enabled: boolean;
|
|
504
508
|
} | undefined;
|
|
505
|
-
|
|
509
|
+
googleRecaptchaV3?: {
|
|
506
510
|
enabled: boolean;
|
|
507
511
|
} | undefined;
|
|
508
|
-
|
|
512
|
+
awscaptcha?: {
|
|
509
513
|
enabled: boolean;
|
|
510
514
|
} | undefined;
|
|
511
515
|
lemin?: {
|
package/dist/runtime/index.d.mts
CHANGED
|
@@ -22,10 +22,11 @@ declare class RunError extends Error {
|
|
|
22
22
|
declare const captchaStatusSchema: z.ZodEnum<["attached", "solving", "solved", "error", "detached"]>;
|
|
23
23
|
type CaptchaStatus = z.infer<typeof captchaStatusSchema>;
|
|
24
24
|
declare const captchaSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
25
|
-
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
26
25
|
id: z.ZodString;
|
|
27
26
|
tabId: z.ZodNumber;
|
|
27
|
+
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
28
28
|
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
} & {
|
|
29
30
|
status: z.ZodLiteral<"attached">;
|
|
30
31
|
}, "strip", z.ZodTypeAny, {
|
|
31
32
|
type: "aws" | "cloudflare" | "customcaptcha" | "funcaptcha" | "geetest" | "hcaptcha" | "lemincaptcha" | "recaptcha" | "textcaptcha";
|
|
@@ -40,10 +41,11 @@ declare const captchaSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
40
41
|
tabId: number;
|
|
41
42
|
retryCount?: number | undefined;
|
|
42
43
|
}>, z.ZodObject<{
|
|
43
|
-
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
44
44
|
id: z.ZodString;
|
|
45
45
|
tabId: z.ZodNumber;
|
|
46
|
+
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
46
47
|
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
} & {
|
|
47
49
|
status: z.ZodLiteral<"solving">;
|
|
48
50
|
}, "strip", z.ZodTypeAny, {
|
|
49
51
|
type: "aws" | "cloudflare" | "customcaptcha" | "funcaptcha" | "geetest" | "hcaptcha" | "lemincaptcha" | "recaptcha" | "textcaptcha";
|
|
@@ -58,10 +60,11 @@ declare const captchaSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
58
60
|
tabId: number;
|
|
59
61
|
retryCount?: number | undefined;
|
|
60
62
|
}>, z.ZodObject<{
|
|
61
|
-
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
62
63
|
id: z.ZodString;
|
|
63
64
|
tabId: z.ZodNumber;
|
|
65
|
+
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
64
66
|
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
} & {
|
|
65
68
|
status: z.ZodLiteral<"solved">;
|
|
66
69
|
}, "strip", z.ZodTypeAny, {
|
|
67
70
|
type: "aws" | "cloudflare" | "customcaptcha" | "funcaptcha" | "geetest" | "hcaptcha" | "lemincaptcha" | "recaptcha" | "textcaptcha";
|
|
@@ -76,10 +79,11 @@ declare const captchaSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
76
79
|
tabId: number;
|
|
77
80
|
retryCount?: number | undefined;
|
|
78
81
|
}>, z.ZodObject<{
|
|
79
|
-
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
80
82
|
id: z.ZodString;
|
|
81
83
|
tabId: z.ZodNumber;
|
|
84
|
+
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
82
85
|
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
} & {
|
|
83
87
|
status: z.ZodLiteral<"detached">;
|
|
84
88
|
}, "strip", z.ZodTypeAny, {
|
|
85
89
|
type: "aws" | "cloudflare" | "customcaptcha" | "funcaptcha" | "geetest" | "hcaptcha" | "lemincaptcha" | "recaptcha" | "textcaptcha";
|
|
@@ -94,10 +98,11 @@ declare const captchaSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
94
98
|
tabId: number;
|
|
95
99
|
retryCount?: number | undefined;
|
|
96
100
|
}>, z.ZodObject<{
|
|
97
|
-
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
98
101
|
id: z.ZodString;
|
|
99
102
|
tabId: z.ZodNumber;
|
|
103
|
+
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
100
104
|
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
} & {
|
|
101
106
|
status: z.ZodLiteral<"error">;
|
|
102
107
|
error: z.ZodObject<{
|
|
103
108
|
code: z.ZodEnum<["HIT_LIMIT", "MAX_RETRIES", "UNEXPECTED_SERVER_RESPONSE", "UNEXPECTED_ERROR"]>;
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -22,10 +22,11 @@ declare class RunError extends Error {
|
|
|
22
22
|
declare const captchaStatusSchema: z.ZodEnum<["attached", "solving", "solved", "error", "detached"]>;
|
|
23
23
|
type CaptchaStatus = z.infer<typeof captchaStatusSchema>;
|
|
24
24
|
declare const captchaSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
25
|
-
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
26
25
|
id: z.ZodString;
|
|
27
26
|
tabId: z.ZodNumber;
|
|
27
|
+
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
28
28
|
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
} & {
|
|
29
30
|
status: z.ZodLiteral<"attached">;
|
|
30
31
|
}, "strip", z.ZodTypeAny, {
|
|
31
32
|
type: "aws" | "cloudflare" | "customcaptcha" | "funcaptcha" | "geetest" | "hcaptcha" | "lemincaptcha" | "recaptcha" | "textcaptcha";
|
|
@@ -40,10 +41,11 @@ declare const captchaSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
40
41
|
tabId: number;
|
|
41
42
|
retryCount?: number | undefined;
|
|
42
43
|
}>, z.ZodObject<{
|
|
43
|
-
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
44
44
|
id: z.ZodString;
|
|
45
45
|
tabId: z.ZodNumber;
|
|
46
|
+
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
46
47
|
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
} & {
|
|
47
49
|
status: z.ZodLiteral<"solving">;
|
|
48
50
|
}, "strip", z.ZodTypeAny, {
|
|
49
51
|
type: "aws" | "cloudflare" | "customcaptcha" | "funcaptcha" | "geetest" | "hcaptcha" | "lemincaptcha" | "recaptcha" | "textcaptcha";
|
|
@@ -58,10 +60,11 @@ declare const captchaSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
58
60
|
tabId: number;
|
|
59
61
|
retryCount?: number | undefined;
|
|
60
62
|
}>, z.ZodObject<{
|
|
61
|
-
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
62
63
|
id: z.ZodString;
|
|
63
64
|
tabId: z.ZodNumber;
|
|
65
|
+
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
64
66
|
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
} & {
|
|
65
68
|
status: z.ZodLiteral<"solved">;
|
|
66
69
|
}, "strip", z.ZodTypeAny, {
|
|
67
70
|
type: "aws" | "cloudflare" | "customcaptcha" | "funcaptcha" | "geetest" | "hcaptcha" | "lemincaptcha" | "recaptcha" | "textcaptcha";
|
|
@@ -76,10 +79,11 @@ declare const captchaSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
76
79
|
tabId: number;
|
|
77
80
|
retryCount?: number | undefined;
|
|
78
81
|
}>, z.ZodObject<{
|
|
79
|
-
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
80
82
|
id: z.ZodString;
|
|
81
83
|
tabId: z.ZodNumber;
|
|
84
|
+
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
82
85
|
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
} & {
|
|
83
87
|
status: z.ZodLiteral<"detached">;
|
|
84
88
|
}, "strip", z.ZodTypeAny, {
|
|
85
89
|
type: "aws" | "cloudflare" | "customcaptcha" | "funcaptcha" | "geetest" | "hcaptcha" | "lemincaptcha" | "recaptcha" | "textcaptcha";
|
|
@@ -94,10 +98,11 @@ declare const captchaSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
|
94
98
|
tabId: number;
|
|
95
99
|
retryCount?: number | undefined;
|
|
96
100
|
}>, z.ZodObject<{
|
|
97
|
-
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
98
101
|
id: z.ZodString;
|
|
99
102
|
tabId: z.ZodNumber;
|
|
103
|
+
type: z.ZodEnum<["aws", "cloudflare", "customcaptcha", "funcaptcha", "geetest", "hcaptcha", "lemincaptcha", "recaptcha", "textcaptcha"]>;
|
|
100
104
|
retryCount: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
} & {
|
|
101
106
|
status: z.ZodLiteral<"error">;
|
|
102
107
|
error: z.ZodObject<{
|
|
103
108
|
code: z.ZodEnum<["HIT_LIMIT", "MAX_RETRIES", "UNEXPECTED_SERVER_RESPONSE", "UNEXPECTED_ERROR"]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intuned/runtime",
|
|
3
|
-
"version": "1.3.18-interface.
|
|
3
|
+
"version": "1.3.18-interface.7",
|
|
4
4
|
"description": "Intuned runtime",
|
|
5
5
|
"packageManager": "yarn@4.12.0",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -111,7 +111,6 @@
|
|
|
111
111
|
},
|
|
112
112
|
"dependencies": {
|
|
113
113
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
114
|
-
"@intuned/runtime-interface": "0.0.1",
|
|
115
114
|
"@rollup/plugin-commonjs": "25.0.2",
|
|
116
115
|
"@rollup/plugin-dynamic-import-vars": "2.0.4",
|
|
117
116
|
"@rollup/plugin-json": "6.0.0",
|
|
@@ -161,6 +160,7 @@
|
|
|
161
160
|
"@babel/plugin-transform-export-namespace-from": "^7.24.1",
|
|
162
161
|
"@babel/preset-env": "^7.23.7",
|
|
163
162
|
"@babel/preset-typescript": "^7.23.3",
|
|
163
|
+
"@intuned/runtime-interface": "0.0.1",
|
|
164
164
|
"@jest/globals": "^29.6.2",
|
|
165
165
|
"@ngneat/falso": "^7.2.0",
|
|
166
166
|
"@types/jest": "^29.5.3",
|