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