@apify/input_schema 3.19.1 → 3.20.0

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/esm/index.mjs CHANGED
@@ -34,1351 +34,8 @@ function m(stringId, variables) {
34
34
  }
35
35
  __name(m, "m");
36
36
 
37
- // src/schema.json
38
- var schema_default = {
39
- title: "JSON schema of Apify Actor INPUT_SCHEMA.json",
40
- type: "object",
41
- properties: {
42
- $schema: {
43
- type: "string"
44
- },
45
- title: {
46
- type: "string"
47
- },
48
- schemaVersion: {
49
- type: "integer",
50
- minimum: 1,
51
- maximum: 1
52
- },
53
- description: {
54
- type: "string"
55
- },
56
- type: {
57
- enum: ["object"]
58
- },
59
- required: {
60
- type: "array",
61
- minItems: 0,
62
- items: { type: "string" },
63
- uniqueItems: true
64
- },
65
- additionalProperties: {
66
- type: "boolean"
67
- },
68
- properties: {
69
- type: "object",
70
- patternProperties: {
71
- "^": {
72
- oneOf: [
73
- { $ref: "#/definitions/stringProperty" },
74
- { $ref: "#/definitions/stringEnumProperty" },
75
- { $ref: "#/definitions/arrayProperty" },
76
- { $ref: "#/definitions/objectProperty" },
77
- { $ref: "#/definitions/integerProperty" },
78
- { $ref: "#/definitions/booleanProperty" },
79
- { $ref: "#/definitions/resourceProperty" },
80
- { $ref: "#/definitions/resourceArrayProperty" },
81
- { $ref: "#/definitions/anyProperty" }
82
- ]
83
- }
84
- }
85
- }
86
- },
87
- additionalProperties: false,
88
- required: ["title", "type", "properties", "schemaVersion"],
89
- definitions: {
90
- stringEnumProperty: {
91
- title: "Enum property",
92
- type: "object",
93
- unevaluatedProperties: false,
94
- properties: {
95
- type: { enum: ["string"] },
96
- editor: { enum: ["select"] },
97
- title: { type: "string" },
98
- description: { type: "string" },
99
- prefill: { type: "string" },
100
- example: { type: "string" },
101
- nullable: { type: "boolean" },
102
- sectionCaption: { type: "string" },
103
- sectionDescription: { type: "string" },
104
- enum: {
105
- type: "array",
106
- items: { type: "string" },
107
- minItems: 1,
108
- uniqueItems: true
109
- },
110
- enumTitles: {
111
- type: "array",
112
- items: { type: "string" },
113
- minItems: 1
114
- }
115
- },
116
- required: ["type", "title", "description", "enum"],
117
- if: {
118
- properties: { nullable: { const: false } }
119
- },
120
- then: {
121
- properties: { default: { type: "string" } }
122
- },
123
- else: {
124
- properties: { default: { type: ["string", "null"] } }
125
- }
126
- },
127
- stringProperty: {
128
- title: "String property",
129
- type: "object",
130
- additionalProperties: true,
131
- properties: {
132
- type: { enum: ["string"] },
133
- title: { type: "string" },
134
- description: { type: "string" },
135
- nullable: { type: "boolean" },
136
- editor: { enum: ["javascript", "python", "textfield", "textarea", "datepicker", "hidden", "fileupload"] },
137
- isSecret: { type: "boolean" }
138
- },
139
- required: ["type", "title", "description", "editor"],
140
- if: {
141
- properties: {
142
- isSecret: {
143
- not: {
144
- const: true
145
- }
146
- }
147
- }
148
- },
149
- then: {
150
- properties: {
151
- type: { enum: ["string"] },
152
- title: { type: "string" },
153
- description: { type: "string" },
154
- prefill: { type: "string" },
155
- example: { type: "string" },
156
- pattern: { type: "string" },
157
- nullable: { type: "boolean" },
158
- minLength: { type: "integer" },
159
- maxLength: { type: "integer" },
160
- sectionCaption: { type: "string" },
161
- sectionDescription: { type: "string" },
162
- isSecret: { enum: [false] }
163
- },
164
- unevaluatedProperties: false,
165
- allOf: [
166
- {
167
- if: {
168
- properties: {
169
- editor: { const: "datepicker" }
170
- }
171
- },
172
- then: {
173
- properties: {
174
- editor: { enum: ["datepicker"] },
175
- dateType: { enum: ["absolute", "relative", "absoluteOrRelative"] }
176
- }
177
- },
178
- else: {
179
- properties: {
180
- editor: { enum: ["javascript", "python", "textfield", "textarea", "hidden", "fileupload"] }
181
- }
182
- }
183
- },
184
- {
185
- if: {
186
- properties: { nullable: { const: false } }
187
- },
188
- then: {
189
- properties: { default: { type: "string" } }
190
- },
191
- else: {
192
- properties: { default: { type: ["string", "null"] } }
193
- }
194
- }
195
- ]
196
- },
197
- else: {
198
- additionalProperties: false,
199
- properties: {
200
- type: { enum: ["string"] },
201
- title: { type: "string" },
202
- description: { type: "string" },
203
- prefill: { type: "string" },
204
- example: { type: "string" },
205
- nullable: { type: "boolean" },
206
- editor: { enum: ["textfield", "textarea", "hidden"] },
207
- isSecret: { enum: [true] },
208
- sectionCaption: { type: "string" },
209
- sectionDescription: { type: "string" }
210
- }
211
- }
212
- },
213
- arrayProperty: {
214
- title: "Array property",
215
- type: "object",
216
- properties: {
217
- type: { enum: ["array"] },
218
- editor: { enum: ["json", "requestListSources", "pseudoUrls", "globs", "keyValue", "stringList", "select", "schemaBased", "hidden"] },
219
- isSecret: { type: "boolean" }
220
- },
221
- required: ["type", "title", "description", "editor"],
222
- if: {
223
- properties: {
224
- isSecret: { not: { const: true } }
225
- }
226
- },
227
- then: {
228
- properties: {
229
- type: { enum: ["array"] },
230
- title: { type: "string" },
231
- description: { type: "string" },
232
- prefill: { type: "array" },
233
- example: { type: "array" },
234
- nullable: { type: "boolean" },
235
- minItems: { type: "integer" },
236
- maxItems: { type: "integer" },
237
- uniqueItems: { type: "boolean" },
238
- sectionCaption: { type: "string" },
239
- sectionDescription: { type: "string" },
240
- placeholderKey: { type: "string" },
241
- placeholderValue: { type: "string" },
242
- patternKey: { type: "string" },
243
- patternValue: { type: "string" },
244
- isSecret: { enum: [false] }
245
- },
246
- unevaluatedProperties: false,
247
- allOf: [
248
- {
249
- oneOf: [
250
- {
251
- required: ["editor"],
252
- properties: {
253
- editor: { enum: ["select"] },
254
- items: { $ref: "#/definitions/arrayItemsSelect" }
255
- }
256
- },
257
- {
258
- required: ["editor"],
259
- properties: {
260
- editor: { enum: ["keyValue"] },
261
- items: { $ref: "#/definitions/arrayItemsKeyValue" }
262
- }
263
- },
264
- {
265
- required: ["editor"],
266
- properties: {
267
- editor: { enum: ["stringList"] },
268
- items: { $ref: "#/definitions/arrayItemsStringList" }
269
- }
270
- },
271
- {
272
- required: ["editor"],
273
- properties: {
274
- editor: { enum: ["globs"] },
275
- items: { $ref: "#/definitions/arrayItemsGlobs" }
276
- }
277
- },
278
- {
279
- required: ["editor"],
280
- properties: {
281
- editor: { enum: ["pseudoUrls"] },
282
- items: { $ref: "#/definitions/arrayItemsPseudoUrls" }
283
- }
284
- },
285
- {
286
- required: ["editor"],
287
- properties: {
288
- editor: { enum: ["requestListSources"] },
289
- items: { $ref: "#/definitions/arrayItemsRequestListSources" }
290
- }
291
- },
292
- {
293
- required: ["editor"],
294
- properties: {
295
- editor: { enum: ["json", "schemaBased", "hidden"] },
296
- items: { $ref: "#/definitions/arrayItems" }
297
- }
298
- },
299
- {
300
- not: { required: ["editor"] },
301
- properties: { items: { $ref: "#/definitions/arrayItems" } }
302
- }
303
- ]
304
- },
305
- {
306
- if: {
307
- properties: { nullable: { const: false } }
308
- },
309
- then: {
310
- properties: { default: { type: "array" } }
311
- },
312
- else: {
313
- properties: { default: { type: ["array", "null"] } }
314
- }
315
- }
316
- ]
317
- },
318
- else: {
319
- additionalProperties: false,
320
- properties: {
321
- type: { enum: ["array"] },
322
- editor: { enum: ["json", "hidden"] },
323
- title: { type: "string" },
324
- description: { type: "string" },
325
- prefill: { type: "array" },
326
- example: { type: "array" },
327
- nullable: { type: "boolean" },
328
- minItems: { type: "integer" },
329
- maxItems: { type: "integer" },
330
- uniqueItems: { type: "boolean" },
331
- sectionCaption: { type: "string" },
332
- sectionDescription: { type: "string" },
333
- items: { $ref: "#/definitions/arrayItems" },
334
- isSecret: { enum: [true] }
335
- }
336
- }
337
- },
338
- objectProperty: {
339
- title: "Object property",
340
- type: "object",
341
- properties: {
342
- type: { enum: ["object"] },
343
- title: { type: "string" },
344
- description: { type: "string" },
345
- editor: { enum: ["json", "proxy", "schemaBased", "hidden"] },
346
- isSecret: { type: "boolean" }
347
- },
348
- required: ["type", "title", "description", "editor"],
349
- if: {
350
- properties: {
351
- isSecret: { not: { const: true } }
352
- }
353
- },
354
- then: {
355
- properties: {
356
- type: { enum: ["object"] },
357
- title: { type: "string" },
358
- description: { type: "string" },
359
- prefill: { type: "object" },
360
- example: { type: "object" },
361
- patternKey: { type: "string" },
362
- patternValue: { type: "string" },
363
- nullable: { type: "boolean" },
364
- minProperties: { type: "integer" },
365
- maxProperties: { type: "integer" },
366
- editor: { enum: ["json", "proxy", "schemaBased", "hidden"] },
367
- sectionCaption: { type: "string" },
368
- sectionDescription: { type: "string" },
369
- isSecret: { enum: [false] },
370
- required: {
371
- type: "array",
372
- minItems: 0,
373
- items: { type: "string" },
374
- uniqueItems: true
375
- },
376
- additionalProperties: {
377
- type: "boolean"
378
- }
379
- },
380
- unevaluatedProperties: false,
381
- allOf: [
382
- {
383
- oneOf: [
384
- { properties: {
385
- editor: { enum: ["proxy"] },
386
- properties: { $ref: "#/definitions/subObjectPropertiesProxy" }
387
- } },
388
- { properties: {
389
- editor: { enum: ["json", "schemaBased", "hidden"] },
390
- properties: { $ref: "#/definitions/subObjectProperties" }
391
- } }
392
- ]
393
- },
394
- {
395
- if: {
396
- properties: { nullable: { const: false } }
397
- },
398
- then: {
399
- properties: { default: { type: "object" } }
400
- },
401
- else: {
402
- properties: { default: { type: ["object", "null"] } }
403
- }
404
- }
405
- ]
406
- },
407
- else: {
408
- additionalProperties: false,
409
- properties: {
410
- type: { enum: ["object"] },
411
- title: { type: "string" },
412
- description: { type: "string" },
413
- prefill: { type: "object" },
414
- example: { type: "object" },
415
- patternKey: { type: "string" },
416
- patternValue: { type: "string" },
417
- nullable: { type: "boolean" },
418
- minProperties: { type: "integer" },
419
- maxProperties: { type: "integer" },
420
- editor: { enum: ["json", "hidden"] },
421
- sectionCaption: { type: "string" },
422
- sectionDescription: { type: "string" },
423
- properties: { $ref: "#/definitions/subObjectProperties" },
424
- isSecret: { enum: [true] },
425
- required: {
426
- type: "array",
427
- minItems: 0,
428
- items: { type: "string" },
429
- uniqueItems: true
430
- },
431
- additionalProperties: {
432
- type: "boolean"
433
- }
434
- }
435
- }
436
- },
437
- integerProperty: {
438
- title: "Integer property",
439
- type: "object",
440
- unevaluatedProperties: false,
441
- properties: {
442
- type: { enum: ["integer"] },
443
- title: { type: "string" },
444
- description: { type: "string" },
445
- prefill: { type: "integer" },
446
- example: { type: "integer" },
447
- nullable: { type: "boolean" },
448
- minimum: { type: "integer" },
449
- maximum: { type: "integer" },
450
- unit: { type: "string" },
451
- editor: { enum: ["number", "hidden"] },
452
- sectionCaption: { type: "string" },
453
- sectionDescription: { type: "string" }
454
- },
455
- required: ["type", "title", "description"],
456
- if: {
457
- properties: { nullable: { const: false } }
458
- },
459
- then: {
460
- properties: { default: { type: "integer" } }
461
- },
462
- else: {
463
- properties: { default: { type: ["integer", "null"] } }
464
- }
465
- },
466
- booleanProperty: {
467
- title: "Boolean property",
468
- type: "object",
469
- unevaluatedProperties: false,
470
- properties: {
471
- type: { enum: ["boolean"] },
472
- title: { type: "string" },
473
- description: { type: "string" },
474
- prefill: { type: "boolean" },
475
- example: { type: "boolean" },
476
- nullable: { type: "boolean" },
477
- groupCaption: { type: "string" },
478
- groupDescription: { type: "string" },
479
- editor: { enum: ["checkbox", "hidden"] },
480
- sectionCaption: { type: "string" },
481
- sectionDescription: { type: "string" }
482
- },
483
- required: ["type", "title", "description"],
484
- if: {
485
- properties: { nullable: { const: false } }
486
- },
487
- then: {
488
- properties: { default: { type: "boolean" } }
489
- },
490
- else: {
491
- properties: { default: { type: ["boolean", "null"] } }
492
- }
493
- },
494
- resourceProperty: {
495
- title: "Resource property",
496
- type: "object",
497
- unevaluatedProperties: false,
498
- properties: {
499
- type: { enum: ["string"] },
500
- title: { type: "string" },
501
- description: { type: "string" },
502
- editor: { enum: ["resourcePicker", "hidden"] },
503
- resourceType: { enum: ["dataset", "keyValueStore", "requestQueue"] },
504
- resourcePermissions: {
505
- type: "array",
506
- items: {
507
- type: "string",
508
- enum: ["READ", "WRITE"]
509
- },
510
- minItems: 1,
511
- uniqueItems: true,
512
- contains: {
513
- const: "READ"
514
- }
515
- },
516
- prefill: { type: "string" },
517
- example: { type: "string" },
518
- nullable: { type: "boolean" },
519
- sectionCaption: { type: "string" },
520
- sectionDescription: { type: "string" }
521
- },
522
- required: ["type", "title", "description", "resourceType"],
523
- allOf: [
524
- {
525
- if: {
526
- required: ["resourcePermissions"]
527
- },
528
- then: {
529
- not: {
530
- anyOf: [
531
- { required: ["prefill"] },
532
- { required: ["default"] }
533
- ]
534
- }
535
- }
536
- },
537
- {
538
- if: {
539
- properties: { nullable: { const: false } }
540
- },
541
- then: {
542
- properties: { default: { type: "string" } }
543
- },
544
- else: {
545
- properties: { default: { type: ["string", "null"] } }
546
- }
547
- }
548
- ]
549
- },
550
- resourceArrayProperty: {
551
- title: "Resource array property",
552
- type: "object",
553
- unevaluatedProperties: false,
554
- properties: {
555
- type: { enum: ["array"] },
556
- title: { type: "string" },
557
- description: { type: "string" },
558
- editor: { enum: ["resourcePicker", "hidden"] },
559
- resourcePermissions: {
560
- type: "array",
561
- items: {
562
- type: "string",
563
- enum: ["READ", "WRITE"]
564
- },
565
- minItems: 1,
566
- uniqueItems: true,
567
- contains: {
568
- const: "READ"
569
- }
570
- },
571
- prefill: { type: "array" },
572
- example: { type: "array" },
573
- nullable: { type: "boolean" },
574
- minItems: { type: "integer" },
575
- maxItems: { type: "integer" },
576
- uniqueItems: { type: "boolean" },
577
- resourceType: { enum: ["dataset", "keyValueStore", "requestQueue"] },
578
- sectionCaption: { type: "string" },
579
- sectionDescription: { type: "string" }
580
- },
581
- required: ["type", "title", "description", "resourceType"],
582
- allOf: [
583
- {
584
- if: {
585
- required: ["resourcePermissions"]
586
- },
587
- then: {
588
- not: {
589
- anyOf: [
590
- { required: ["prefill"] },
591
- { required: ["default"] }
592
- ]
593
- }
594
- }
595
- },
596
- {
597
- if: {
598
- properties: { nullable: { const: false } }
599
- },
600
- then: {
601
- properties: { default: { type: "array" } }
602
- },
603
- else: {
604
- properties: { default: { type: ["array", "null"] } }
605
- }
606
- }
607
- ]
608
- },
609
- anyProperty: {
610
- title: "Any property",
611
- type: "object",
612
- unevaluatedProperties: false,
613
- properties: {
614
- type: {
615
- type: ["array"],
616
- items: {
617
- type: "string",
618
- enum: ["object", "array", "string", "integer", "boolean"]
619
- },
620
- uniqueItems: true,
621
- additionalItems: false,
622
- minItems: 1
623
- },
624
- title: { type: "string" },
625
- description: { type: "string" },
626
- prefill: { type: ["object", "array", "string", "integer", "boolean"] },
627
- example: { type: ["object", "array", "string", "integer", "boolean"] },
628
- nullable: { type: "boolean" },
629
- editor: { enum: ["json", "hidden"] },
630
- sectionCaption: { type: "string" },
631
- sectionDescription: { type: "string" }
632
- },
633
- required: ["type", "title", "description", "editor"],
634
- if: {
635
- properties: { nullable: { const: false } }
636
- },
637
- then: {
638
- properties: { default: { type: ["object", "array", "string", "integer", "boolean"] } }
639
- },
640
- else: {
641
- properties: { default: { type: ["object", "array", "string", "integer", "boolean", "null"] } }
642
- }
643
- },
644
- subSchemaStringEnumProperty: {
645
- title: "Sub-schema: Enum property",
646
- type: "object",
647
- additionalProperties: false,
648
- properties: {
649
- type: { enum: ["string"] },
650
- editor: { enum: ["select"] },
651
- title: { type: "string" },
652
- description: { type: "string" },
653
- nullable: { type: "boolean" },
654
- enum: {
655
- type: "array",
656
- items: { type: "string" },
657
- minItems: 1,
658
- uniqueItems: true
659
- },
660
- enumTitles: {
661
- type: "array",
662
- items: { type: "string" },
663
- minItems: 1
664
- }
665
- },
666
- required: ["type", "title", "description", "enum"]
667
- },
668
- subSchemaStringProperty: {
669
- title: "Sub-schema: String property",
670
- type: "object",
671
- additionalProperties: true,
672
- properties: {
673
- type: { enum: ["string"] },
674
- title: { type: "string" },
675
- description: { type: "string" },
676
- nullable: { type: "boolean" },
677
- editor: { enum: ["javascript", "python", "textfield", "textarea", "datepicker", "hidden", "fileupload"] }
678
- },
679
- required: ["type", "title", "description"],
680
- if: {
681
- properties: {
682
- editor: { const: "datepicker" }
683
- }
684
- },
685
- then: {
686
- additionalProperties: false,
687
- properties: {
688
- type: { enum: ["string"] },
689
- title: { type: "string" },
690
- description: { type: "string" },
691
- pattern: { type: "string" },
692
- nullable: { type: "boolean" },
693
- minLength: { type: "integer" },
694
- maxLength: { type: "integer" },
695
- editor: { enum: ["datepicker"] },
696
- dateType: { enum: ["absolute", "relative", "absoluteOrRelative"] }
697
- }
698
- },
699
- else: {
700
- additionalProperties: false,
701
- properties: {
702
- type: { enum: ["string"] },
703
- title: { type: "string" },
704
- description: { type: "string" },
705
- pattern: { type: "string" },
706
- nullable: { type: "boolean" },
707
- minLength: { type: "integer" },
708
- maxLength: { type: "integer" },
709
- editor: { enum: ["javascript", "python", "textfield", "textarea", "hidden", "fileupload"] }
710
- }
711
- }
712
- },
713
- subSchemaArrayProperty: {
714
- title: "Sub-schema: Array property",
715
- type: "object",
716
- properties: {
717
- type: { enum: ["array"] },
718
- editor: { enum: ["json", "requestListSources", "pseudoUrls", "globs", "keyValue", "stringList", "select", "hidden"] },
719
- title: { type: "string" },
720
- description: { type: "string" },
721
- nullable: { type: "boolean" },
722
- minItems: { type: "integer" },
723
- maxItems: { type: "integer" },
724
- uniqueItems: { type: "boolean" },
725
- placeholderKey: { type: "string" },
726
- placeholderValue: { type: "string" },
727
- patternKey: { type: "string" },
728
- patternValue: { type: "string" }
729
- },
730
- required: ["type", "title", "description"],
731
- unevaluatedProperties: false,
732
- oneOf: [
733
- {
734
- required: ["editor"],
735
- properties: {
736
- editor: { enum: ["select"] },
737
- items: { $ref: "#/definitions/arrayItemsSelect" }
738
- }
739
- },
740
- {
741
- required: ["editor"],
742
- properties: {
743
- editor: { enum: ["keyValue"] },
744
- items: { $ref: "#/definitions/arrayItemsKeyValue" }
745
- }
746
- },
747
- {
748
- required: ["editor"],
749
- properties: {
750
- editor: { enum: ["stringList"] },
751
- items: { $ref: "#/definitions/arrayItemsStringList" }
752
- }
753
- },
754
- {
755
- required: ["editor"],
756
- properties: {
757
- editor: { enum: ["globs"] },
758
- items: { $ref: "#/definitions/arrayItemsGlobs" }
759
- }
760
- },
761
- {
762
- required: ["editor"],
763
- properties: {
764
- editor: { enum: ["pseudoUrls"] },
765
- items: { $ref: "#/definitions/arrayItemsPseudoUrls" }
766
- }
767
- },
768
- {
769
- required: ["editor"],
770
- properties: {
771
- editor: { enum: ["requestListSources"] },
772
- items: { $ref: "#/definitions/arrayItemsRequestListSources" }
773
- }
774
- },
775
- {
776
- required: ["editor"],
777
- properties: {
778
- editor: { enum: ["json", "schemaBased", "hidden"] },
779
- items: { $ref: "#/definitions/arrayItems" }
780
- }
781
- },
782
- {
783
- not: { required: ["editor"] },
784
- properties: { items: { $ref: "#/definitions/arrayItems" } }
785
- }
786
- ]
787
- },
788
- subSchemaIntegerProperty: {
789
- title: "Sub-schema: Integer property",
790
- type: "object",
791
- additionalProperties: false,
792
- properties: {
793
- type: { enum: ["integer"] },
794
- title: { type: "string" },
795
- description: { type: "string" },
796
- nullable: { type: "boolean" },
797
- minimum: { type: "integer" },
798
- maximum: { type: "integer" },
799
- unit: { type: "string" },
800
- editor: { enum: ["number", "hidden"] }
801
- },
802
- required: ["type", "title", "description"]
803
- },
804
- subSchemaBooleanProperty: {
805
- title: "Sub-schema: Boolean property",
806
- type: "object",
807
- additionalProperties: false,
808
- properties: {
809
- type: { enum: ["boolean"] },
810
- title: { type: "string" },
811
- description: { type: "string" },
812
- nullable: { type: "boolean" },
813
- groupCaption: { type: "string" },
814
- groupDescription: { type: "string" },
815
- editor: { enum: ["checkbox", "hidden"] }
816
- },
817
- required: ["type", "title", "description"]
818
- },
819
- subSchemaObjectProperty: {
820
- title: "Sub-schema: Object property",
821
- type: "object",
822
- additionalProperties: false,
823
- properties: {
824
- type: { enum: ["object"] },
825
- title: { type: "string" },
826
- description: { type: "string" },
827
- patternKey: { type: "string" },
828
- patternValue: { type: "string" },
829
- nullable: { type: "boolean" },
830
- minProperties: { type: "integer" },
831
- maxProperties: { type: "integer" },
832
- editor: { enum: ["json", "proxy", "hidden"] },
833
- properties: { $ref: "#/definitions/subObjectProperties" },
834
- required: {
835
- type: "array",
836
- minItems: 0,
837
- items: { type: "string" },
838
- uniqueItems: true
839
- },
840
- additionalProperties: {
841
- type: "boolean"
842
- }
843
- },
844
- required: ["type", "title", "description"]
845
- },
846
- subSchemaResourceProperty: {
847
- title: "Sub-schema: Resource property",
848
- type: "object",
849
- additionalProperties: false,
850
- properties: {
851
- type: { enum: ["string"] },
852
- title: { type: "string" },
853
- description: { type: "string" },
854
- editor: { enum: ["resourcePicker", "hidden"] },
855
- resourceType: { enum: ["dataset", "keyValueStore", "requestQueue"] },
856
- resourcePermissions: {
857
- type: "array",
858
- items: {
859
- type: "string",
860
- enum: ["READ", "WRITE"]
861
- },
862
- minItems: 1,
863
- uniqueItems: true,
864
- contains: {
865
- const: "READ"
866
- }
867
- },
868
- nullable: { type: "boolean" }
869
- },
870
- required: ["type", "title", "description", "resourceType"]
871
- },
872
- subSchemaResourceArrayProperty: {
873
- title: "Sub-schema: Resource array property",
874
- type: "object",
875
- additionalProperties: false,
876
- properties: {
877
- type: { enum: ["array"] },
878
- title: { type: "string" },
879
- description: { type: "string" },
880
- editor: { enum: ["resourcePicker", "hidden"] },
881
- resourcePermissions: {
882
- type: "array",
883
- items: {
884
- type: "string",
885
- enum: ["READ", "WRITE"]
886
- },
887
- minItems: 1,
888
- uniqueItems: true,
889
- contains: {
890
- const: "READ"
891
- }
892
- },
893
- nullable: { type: "boolean" },
894
- minItems: { type: "integer" },
895
- maxItems: { type: "integer" },
896
- uniqueItems: { type: "boolean" },
897
- resourceType: { enum: ["dataset", "keyValueStore", "requestQueue"] }
898
- },
899
- required: ["type", "title", "description", "resourceType"]
900
- },
901
- arrayItems: {
902
- title: "Utils: Array items definition",
903
- type: "object",
904
- properties: {
905
- type: { enum: ["string", "integer", "boolean", "object", "array"] }
906
- },
907
- required: ["type"],
908
- if: {
909
- properties: {
910
- type: { enum: ["object"] }
911
- }
912
- },
913
- then: {
914
- additionalProperties: false,
915
- properties: {
916
- type: { enum: ["object"] },
917
- properties: {
918
- type: "object",
919
- patternProperties: {
920
- "^": {
921
- oneOf: [
922
- { $ref: "#/definitions/subSchemaStringProperty" },
923
- { $ref: "#/definitions/subSchemaStringEnumProperty" },
924
- { $ref: "#/definitions/subSchemaArrayProperty" },
925
- { $ref: "#/definitions/subSchemaObjectProperty" },
926
- { $ref: "#/definitions/subSchemaIntegerProperty" },
927
- { $ref: "#/definitions/subSchemaBooleanProperty" },
928
- { $ref: "#/definitions/subSchemaResourceProperty" },
929
- { $ref: "#/definitions/subSchemaResourceArrayProperty" }
930
- ]
931
- }
932
- },
933
- additionalProperties: false
934
- },
935
- required: {
936
- type: "array",
937
- minItems: 0,
938
- items: { type: "string" },
939
- uniqueItems: true
940
- },
941
- additionalProperties: {
942
- type: "boolean"
943
- }
944
- }
945
- },
946
- else: {
947
- if: {
948
- properties: { type: { const: "array" } }
949
- },
950
- then: {
951
- additionalProperties: false,
952
- properties: {
953
- type: { enum: ["array"] },
954
- items: {
955
- $ref: "#/definitions/arrayItems"
956
- }
957
- }
958
- },
959
- else: {
960
- additionalProperties: false,
961
- properties: {
962
- type: { enum: ["string", "integer", "boolean"] }
963
- }
964
- }
965
- }
966
- },
967
- arrayItemsSelect: {
968
- title: "Utils: Array items select definition",
969
- type: "object",
970
- additionalProperties: false,
971
- properties: {
972
- type: { enum: ["string"] },
973
- enum: {
974
- type: "array",
975
- items: { type: "string" },
976
- uniqueItems: true
977
- },
978
- enumTitles: {
979
- type: "array",
980
- items: { type: "string" }
981
- }
982
- },
983
- required: ["type", "enum"]
984
- },
985
- arrayItemsKeyValue: {
986
- title: "Utils: Array items keyValue definition",
987
- type: "object",
988
- additionalProperties: false,
989
- properties: {
990
- type: { enum: ["object"] },
991
- properties: {
992
- type: "object",
993
- properties: {
994
- key: {
995
- type: "object",
996
- additionalProperties: false,
997
- properties: {
998
- type: { enum: ["string"] },
999
- title: { type: "string" },
1000
- description: { type: "string" },
1001
- pattern: { type: "string" },
1002
- minLength: { type: "integer" },
1003
- maxLength: { type: "integer" }
1004
- },
1005
- required: ["type"]
1006
- },
1007
- value: {
1008
- type: "object",
1009
- additionalProperties: false,
1010
- properties: {
1011
- type: { enum: ["string"] },
1012
- title: { type: "string" },
1013
- description: { type: "string" },
1014
- pattern: { type: "string" },
1015
- minLength: { type: "integer" },
1016
- maxLength: { type: "integer" }
1017
- },
1018
- required: ["type"]
1019
- }
1020
- },
1021
- required: ["key", "value"],
1022
- additionalProperties: false
1023
- },
1024
- required: {
1025
- type: "array",
1026
- minItems: 0,
1027
- items: { type: "string" },
1028
- uniqueItems: true
1029
- },
1030
- additionalProperties: { type: "boolean" }
1031
- },
1032
- required: ["type", "properties"]
1033
- },
1034
- arrayItemsStringList: {
1035
- title: "Utils: Array items stringList definition",
1036
- type: "object",
1037
- additionalProperties: false,
1038
- properties: {
1039
- type: { enum: ["string"] },
1040
- pattern: { type: "string" },
1041
- minLength: { type: "integer" },
1042
- maxLength: { type: "integer" }
1043
- },
1044
- required: ["type"]
1045
- },
1046
- arrayItemsGlobs: {
1047
- title: "Utils: Array items globs definition",
1048
- type: "object",
1049
- additionalProperties: false,
1050
- properties: {
1051
- type: { enum: ["object"] },
1052
- properties: {
1053
- type: "object",
1054
- additionalProperties: false,
1055
- properties: {
1056
- glob: {
1057
- type: "object",
1058
- additionalProperties: false,
1059
- properties: {
1060
- type: { enum: ["string"] },
1061
- title: { type: "string" },
1062
- description: { type: "string" },
1063
- pattern: { type: "string" },
1064
- minLength: { type: "integer" },
1065
- maxLength: { type: "integer" }
1066
- },
1067
- required: ["type"]
1068
- },
1069
- method: {
1070
- type: "object",
1071
- additionalProperties: false,
1072
- properties: {
1073
- type: { enum: ["string"] },
1074
- title: { type: "string" },
1075
- description: { type: "string" },
1076
- pattern: { type: "string" },
1077
- minLength: { type: "integer" },
1078
- maxLength: { type: "integer" }
1079
- },
1080
- required: ["type"]
1081
- },
1082
- payload: {
1083
- type: "object",
1084
- additionalProperties: false,
1085
- properties: {
1086
- type: { enum: ["string"] },
1087
- title: { type: "string" },
1088
- description: { type: "string" },
1089
- pattern: { type: "string" },
1090
- minLength: { type: "integer" },
1091
- maxLength: { type: "integer" }
1092
- },
1093
- required: ["type"]
1094
- },
1095
- userData: {
1096
- type: "object",
1097
- additionalProperties: false,
1098
- properties: {
1099
- type: { enum: ["object"] },
1100
- title: { type: "string" },
1101
- description: { type: "string" },
1102
- properties: { type: "object" }
1103
- },
1104
- required: ["type"]
1105
- },
1106
- headers: {
1107
- type: "object",
1108
- additionalProperties: false,
1109
- properties: {
1110
- type: { enum: ["object"] },
1111
- title: { type: "string" },
1112
- description: { type: "string" },
1113
- properties: { type: "object" }
1114
- },
1115
- required: ["type"]
1116
- }
1117
- }
1118
- },
1119
- required: {
1120
- type: "array",
1121
- minItems: 0,
1122
- items: { type: "string" },
1123
- uniqueItems: true
1124
- },
1125
- additionalProperties: { type: "boolean" }
1126
- },
1127
- required: ["type"]
1128
- },
1129
- arrayItemsPseudoUrls: {
1130
- title: "Utils: Array items pseudoUrls definition",
1131
- type: "object",
1132
- additionalProperties: false,
1133
- properties: {
1134
- type: { enum: ["object"] },
1135
- properties: {
1136
- type: "object",
1137
- additionalProperties: false,
1138
- properties: {
1139
- purl: {
1140
- type: "object",
1141
- additionalProperties: false,
1142
- properties: {
1143
- type: { enum: ["string"] },
1144
- title: { type: "string" },
1145
- description: { type: "string" },
1146
- pattern: { type: "string" },
1147
- minLength: { type: "integer" },
1148
- maxLength: { type: "integer" }
1149
- },
1150
- required: ["type"]
1151
- },
1152
- method: {
1153
- type: "object",
1154
- additionalProperties: false,
1155
- properties: {
1156
- type: { enum: ["string"] },
1157
- title: { type: "string" },
1158
- description: { type: "string" },
1159
- pattern: { type: "string" },
1160
- minLength: { type: "integer" },
1161
- maxLength: { type: "integer" }
1162
- },
1163
- required: ["type"]
1164
- },
1165
- payload: {
1166
- type: "object",
1167
- additionalProperties: false,
1168
- properties: {
1169
- type: { enum: ["string"] },
1170
- title: { type: "string" },
1171
- description: { type: "string" },
1172
- pattern: { type: "string" },
1173
- minLength: { type: "integer" },
1174
- maxLength: { type: "integer" }
1175
- },
1176
- required: ["type"]
1177
- },
1178
- userData: {
1179
- type: "object",
1180
- additionalProperties: false,
1181
- properties: {
1182
- type: { enum: ["object"] },
1183
- title: { type: "string" },
1184
- description: { type: "string" },
1185
- properties: { type: "object" }
1186
- },
1187
- required: ["type"]
1188
- },
1189
- headers: {
1190
- type: "object",
1191
- additionalProperties: false,
1192
- properties: {
1193
- type: { enum: ["object"] },
1194
- title: { type: "string" },
1195
- description: { type: "string" },
1196
- properties: { type: "object" }
1197
- },
1198
- required: ["type"]
1199
- }
1200
- }
1201
- },
1202
- required: {
1203
- type: "array",
1204
- minItems: 0,
1205
- items: { type: "string" },
1206
- uniqueItems: true
1207
- },
1208
- additionalProperties: { type: "boolean" }
1209
- },
1210
- required: ["type"]
1211
- },
1212
- arrayItemsRequestListSources: {
1213
- title: "Utils: Array items requestListSources definition",
1214
- type: "object",
1215
- additionalProperties: false,
1216
- properties: {
1217
- type: { enum: ["object"] },
1218
- properties: {
1219
- type: "object",
1220
- additionalProperties: false,
1221
- properties: {
1222
- url: {
1223
- type: "object",
1224
- additionalProperties: false,
1225
- properties: {
1226
- type: { enum: ["string"] },
1227
- title: { type: "string" },
1228
- description: { type: "string" },
1229
- pattern: { type: "string" },
1230
- minLength: { type: "integer" },
1231
- maxLength: { type: "integer" }
1232
- },
1233
- required: ["type"]
1234
- },
1235
- method: {
1236
- type: "object",
1237
- additionalProperties: false,
1238
- properties: {
1239
- type: { enum: ["string"] },
1240
- title: { type: "string" },
1241
- description: { type: "string" },
1242
- pattern: { type: "string" },
1243
- minLength: { type: "integer" },
1244
- maxLength: { type: "integer" }
1245
- },
1246
- required: ["type"]
1247
- },
1248
- payload: {
1249
- type: "object",
1250
- additionalProperties: false,
1251
- properties: {
1252
- type: { enum: ["string"] },
1253
- title: { type: "string" },
1254
- description: { type: "string" },
1255
- pattern: { type: "string" },
1256
- minLength: { type: "integer" },
1257
- maxLength: { type: "integer" }
1258
- },
1259
- required: ["type"]
1260
- },
1261
- userData: {
1262
- type: "object",
1263
- additionalProperties: false,
1264
- properties: {
1265
- type: { enum: ["object"] },
1266
- title: { type: "string" },
1267
- description: { type: "string" },
1268
- properties: { type: "object" }
1269
- },
1270
- required: ["type"]
1271
- },
1272
- headers: {
1273
- type: "object",
1274
- additionalProperties: false,
1275
- properties: {
1276
- type: { enum: ["object"] },
1277
- title: { type: "string" },
1278
- description: { type: "string" },
1279
- properties: { type: "object" }
1280
- },
1281
- required: ["type"]
1282
- }
1283
- }
1284
- },
1285
- required: {
1286
- type: "array",
1287
- minItems: 0,
1288
- items: { type: "string" },
1289
- uniqueItems: true
1290
- },
1291
- additionalProperties: { type: "boolean" }
1292
- },
1293
- required: ["type"]
1294
- },
1295
- subObjectProperties: {
1296
- title: "Utils: Sub-object properties definition",
1297
- type: "object",
1298
- patternProperties: {
1299
- "^": {
1300
- oneOf: [
1301
- { $ref: "#/definitions/subSchemaStringProperty" },
1302
- { $ref: "#/definitions/subSchemaStringEnumProperty" },
1303
- { $ref: "#/definitions/subSchemaArrayProperty" },
1304
- { $ref: "#/definitions/subSchemaObjectProperty" },
1305
- { $ref: "#/definitions/subSchemaIntegerProperty" },
1306
- { $ref: "#/definitions/subSchemaBooleanProperty" },
1307
- { $ref: "#/definitions/subSchemaResourceProperty" },
1308
- { $ref: "#/definitions/subSchemaResourceArrayProperty" }
1309
- ]
1310
- }
1311
- },
1312
- additionalProperties: false
1313
- },
1314
- subObjectPropertiesProxy: {
1315
- title: "Utils: Sub-object properties proxy definition",
1316
- type: "object",
1317
- additionalProperties: false,
1318
- properties: {
1319
- useApifyProxy: {
1320
- type: "object",
1321
- additionalProperties: false,
1322
- properties: {
1323
- type: { enum: ["boolean"] },
1324
- title: { type: "string" },
1325
- description: { type: "string" }
1326
- },
1327
- required: ["type"]
1328
- },
1329
- apifyProxyGroups: {
1330
- type: "object",
1331
- additionalProperties: false,
1332
- properties: {
1333
- type: { enum: ["array"] },
1334
- title: { type: "string" },
1335
- description: { type: "string" },
1336
- items: {
1337
- type: ["object"],
1338
- properties: {
1339
- type: { enum: ["string"] }
1340
- },
1341
- additionalProperties: false,
1342
- required: ["type"]
1343
- }
1344
- },
1345
- required: ["type"]
1346
- },
1347
- proxyUrls: {
1348
- type: "object",
1349
- additionalProperties: false,
1350
- properties: {
1351
- type: { enum: ["array"] },
1352
- title: { type: "string" },
1353
- description: { type: "string" },
1354
- items: {
1355
- type: ["object"],
1356
- properties: {
1357
- type: { enum: ["string"] }
1358
- },
1359
- additionalProperties: false,
1360
- required: ["type"]
1361
- }
1362
- },
1363
- required: ["type"]
1364
- },
1365
- apifyProxyCountry: {
1366
- type: "object",
1367
- additionalProperties: false,
1368
- properties: {
1369
- type: { enum: ["string"] },
1370
- title: { type: "string" },
1371
- description: { type: "string" },
1372
- pattern: { type: "string" },
1373
- minLength: { type: "integer" },
1374
- maxLength: { type: "integer" }
1375
- },
1376
- required: ["type"]
1377
- }
1378
- }
1379
- }
1380
- }
1381
- };
37
+ // src/input_schema.ts
38
+ import { inputSchema as schema } from "@apify/json_schemas";
1382
39
 
1383
40
  // src/utilities.ts
1384
41
  import { parse } from "acorn-loose";
@@ -1629,7 +286,7 @@ function ensureAjvSupportsDraft2019(ajvInstance) {
1629
286
  __name(ensureAjvSupportsDraft2019, "ensureAjvSupportsDraft2019");
1630
287
 
1631
288
  // src/input_schema.ts
1632
- var { definitions } = schema_default;
289
+ var { definitions } = schema;
1633
290
  var [fieldDefinitions, subFieldDefinitions] = Object.values(definitions).reduce((acc, definition) => {
1634
291
  if (definition.title.startsWith("Utils:")) {
1635
292
  return acc;
@@ -1683,8 +340,8 @@ var validateAgainstSchemaOrThrow = /* @__PURE__ */ __name((validator, obj, input
1683
340
  }, "validateAgainstSchemaOrThrow");
1684
341
  function validateBasicStructure(validator, obj) {
1685
342
  const schemaWithoutProperties = {
1686
- ...schema_default,
1687
- properties: { ...schema_default.properties, properties: { type: "object" } }
343
+ ...schema,
344
+ properties: { ...schema.properties, properties: { type: "object" } }
1688
345
  };
1689
346
  validateAgainstSchemaOrThrow(validator, obj, schemaWithoutProperties, "schema");
1690
347
  }
@@ -1773,12 +430,12 @@ function validateInputSchema(validator, inputSchema) {
1773
430
  validateBasicStructure(validator, inputSchema);
1774
431
  validateProperties(inputSchema, validator);
1775
432
  validateExistenceOfRequiredFields(inputSchema);
1776
- validateAgainstSchemaOrThrow(validator, inputSchema, schema_default, "schema");
433
+ validateAgainstSchemaOrThrow(validator, inputSchema, schema, "schema");
1777
434
  }
1778
435
  __name(validateInputSchema, "validateInputSchema");
1779
436
  export {
1780
437
  ensureAjvSupportsDraft2019,
1781
- schema_default as inputSchema,
438
+ schema as inputSchema,
1782
439
  m,
1783
440
  makeInputJsFieldsReadable,
1784
441
  parseAjvError,