@apify/input_schema 3.17.0 → 3.18.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.d.mts CHANGED
@@ -87,7 +87,7 @@ var definitions = {
87
87
  stringEnumProperty: {
88
88
  title: "Enum property",
89
89
  type: "object",
90
- additionalProperties: false,
90
+ unevaluatedProperties: false,
91
91
  properties: {
92
92
  type: {
93
93
  "enum": [
@@ -105,9 +105,6 @@ var definitions = {
105
105
  description: {
106
106
  type: "string"
107
107
  },
108
- "default": {
109
- type: "string"
110
- },
111
108
  prefill: {
112
109
  type: "string"
113
110
  },
@@ -144,7 +141,31 @@ var definitions = {
144
141
  "title",
145
142
  "description",
146
143
  "enum"
147
- ]
144
+ ],
145
+ "if": {
146
+ properties: {
147
+ nullable: {
148
+ "const": false
149
+ }
150
+ }
151
+ },
152
+ then: {
153
+ properties: {
154
+ "default": {
155
+ type: "string"
156
+ }
157
+ }
158
+ },
159
+ "else": {
160
+ properties: {
161
+ "default": {
162
+ type: [
163
+ "string",
164
+ "null"
165
+ ]
166
+ }
167
+ }
168
+ }
148
169
  },
149
170
  stringProperty: {
150
171
  title: "String property",
@@ -196,126 +217,116 @@ var definitions = {
196
217
  }
197
218
  },
198
219
  then: {
199
- "if": {
200
- properties: {
201
- editor: {
202
- "const": "datepicker"
203
- }
220
+ properties: {
221
+ type: {
222
+ "enum": [
223
+ "string"
224
+ ]
225
+ },
226
+ title: {
227
+ type: "string"
228
+ },
229
+ description: {
230
+ type: "string"
231
+ },
232
+ prefill: {
233
+ type: "string"
234
+ },
235
+ example: {
236
+ type: "string"
237
+ },
238
+ pattern: {
239
+ type: "string"
240
+ },
241
+ nullable: {
242
+ type: "boolean"
243
+ },
244
+ minLength: {
245
+ type: "integer"
246
+ },
247
+ maxLength: {
248
+ type: "integer"
249
+ },
250
+ sectionCaption: {
251
+ type: "string"
252
+ },
253
+ sectionDescription: {
254
+ type: "string"
255
+ },
256
+ isSecret: {
257
+ "enum": [
258
+ false
259
+ ]
204
260
  }
205
261
  },
206
- then: {
207
- additionalProperties: false,
208
- properties: {
209
- type: {
210
- "enum": [
211
- "string"
212
- ]
213
- },
214
- title: {
215
- type: "string"
216
- },
217
- description: {
218
- type: "string"
219
- },
220
- "default": {
221
- type: "string"
222
- },
223
- prefill: {
224
- type: "string"
225
- },
226
- example: {
227
- type: "string"
228
- },
229
- pattern: {
230
- type: "string"
231
- },
232
- nullable: {
233
- type: "boolean"
234
- },
235
- minLength: {
236
- type: "integer"
237
- },
238
- maxLength: {
239
- type: "integer"
240
- },
241
- editor: {
242
- "enum": [
243
- "datepicker"
244
- ]
245
- },
246
- sectionCaption: {
247
- type: "string"
262
+ unevaluatedProperties: false,
263
+ allOf: [
264
+ {
265
+ "if": {
266
+ properties: {
267
+ editor: {
268
+ "const": "datepicker"
269
+ }
270
+ }
248
271
  },
249
- sectionDescription: {
250
- type: "string"
272
+ then: {
273
+ properties: {
274
+ editor: {
275
+ "enum": [
276
+ "datepicker"
277
+ ]
278
+ },
279
+ dateType: {
280
+ "enum": [
281
+ "absolute",
282
+ "relative",
283
+ "absoluteOrRelative"
284
+ ]
285
+ }
286
+ }
251
287
  },
252
- dateType: {
253
- "enum": [
254
- "absolute",
255
- "relative",
256
- "absoluteOrRelative"
257
- ]
288
+ "else": {
289
+ properties: {
290
+ editor: {
291
+ "enum": [
292
+ "javascript",
293
+ "python",
294
+ "textfield",
295
+ "textarea",
296
+ "hidden",
297
+ "fileupload"
298
+ ]
299
+ }
300
+ }
258
301
  }
259
- }
260
- },
261
- "else": {
262
- additionalProperties: false,
263
- properties: {
264
- type: {
265
- "enum": [
266
- "string"
267
- ]
268
- },
269
- title: {
270
- type: "string"
271
- },
272
- description: {
273
- type: "string"
274
- },
275
- "default": {
276
- type: "string"
277
- },
278
- prefill: {
279
- type: "string"
280
- },
281
- example: {
282
- type: "string"
283
- },
284
- pattern: {
285
- type: "string"
286
- },
287
- nullable: {
288
- type: "boolean"
289
- },
290
- minLength: {
291
- type: "integer"
292
- },
293
- maxLength: {
294
- type: "integer"
295
- },
296
- editor: {
297
- "enum": [
298
- "javascript",
299
- "python",
300
- "textfield",
301
- "textarea",
302
- "hidden",
303
- "fileupload"
304
- ]
305
- },
306
- isSecret: {
307
- "enum": [
308
- false
309
- ]
302
+ },
303
+ {
304
+ "if": {
305
+ properties: {
306
+ nullable: {
307
+ "const": false
308
+ }
309
+ }
310
310
  },
311
- sectionCaption: {
312
- type: "string"
311
+ then: {
312
+ properties: {
313
+ "default": {
314
+ type: "string"
315
+ }
316
+ }
313
317
  },
314
- sectionDescription: {
315
- type: "string"
318
+ "else": {
319
+ properties: {
320
+ "default": {
321
+ type: [
322
+ "string",
323
+ "null"
324
+ ]
325
+ }
326
+ }
316
327
  }
317
328
  }
318
- }
329
+ ]
319
330
  },
320
331
  "else": {
321
332
  additionalProperties: false,
@@ -415,9 +426,6 @@ var definitions = {
415
426
  description: {
416
427
  type: "string"
417
428
  },
418
- "default": {
419
- type: "array"
420
- },
421
429
  prefill: {
422
430
  type: "array"
423
431
  },
@@ -461,123 +469,153 @@ var definitions = {
461
469
  }
462
470
  },
463
471
  unevaluatedProperties: false,
464
- oneOf: [
472
+ allOf: [
465
473
  {
466
- required: [
467
- "editor"
468
- ],
469
- properties: {
470
- editor: {
471
- "enum": [
472
- "select"
473
- ]
474
+ oneOf: [
475
+ {
476
+ required: [
477
+ "editor"
478
+ ],
479
+ properties: {
480
+ editor: {
481
+ "enum": [
482
+ "select"
483
+ ]
484
+ },
485
+ items: {
486
+ $ref: "#/definitions/arrayItemsSelect"
487
+ }
488
+ }
474
489
  },
475
- items: {
476
- $ref: "#/definitions/arrayItemsSelect"
477
- }
478
- }
479
- },
480
- {
481
- required: [
482
- "editor"
483
- ],
484
- properties: {
485
- editor: {
486
- "enum": [
487
- "keyValue"
488
- ]
490
+ {
491
+ required: [
492
+ "editor"
493
+ ],
494
+ properties: {
495
+ editor: {
496
+ "enum": [
497
+ "keyValue"
498
+ ]
499
+ },
500
+ items: {
501
+ $ref: "#/definitions/arrayItemsKeyValue"
502
+ }
503
+ }
489
504
  },
490
- items: {
491
- $ref: "#/definitions/arrayItemsKeyValue"
492
- }
493
- }
494
- },
495
- {
496
- required: [
497
- "editor"
498
- ],
499
- properties: {
500
- editor: {
501
- "enum": [
502
- "stringList"
503
- ]
505
+ {
506
+ required: [
507
+ "editor"
508
+ ],
509
+ properties: {
510
+ editor: {
511
+ "enum": [
512
+ "stringList"
513
+ ]
514
+ },
515
+ items: {
516
+ $ref: "#/definitions/arrayItemsStringList"
517
+ }
518
+ }
504
519
  },
505
- items: {
506
- $ref: "#/definitions/arrayItemsStringList"
507
- }
508
- }
509
- },
510
- {
511
- required: [
512
- "editor"
513
- ],
514
- properties: {
515
- editor: {
516
- "enum": [
517
- "globs"
518
- ]
520
+ {
521
+ required: [
522
+ "editor"
523
+ ],
524
+ properties: {
525
+ editor: {
526
+ "enum": [
527
+ "globs"
528
+ ]
529
+ },
530
+ items: {
531
+ $ref: "#/definitions/arrayItemsGlobs"
532
+ }
533
+ }
519
534
  },
520
- items: {
521
- $ref: "#/definitions/arrayItemsGlobs"
522
- }
523
- }
524
- },
525
- {
526
- required: [
527
- "editor"
528
- ],
529
- properties: {
530
- editor: {
531
- "enum": [
532
- "pseudoUrls"
533
- ]
535
+ {
536
+ required: [
537
+ "editor"
538
+ ],
539
+ properties: {
540
+ editor: {
541
+ "enum": [
542
+ "pseudoUrls"
543
+ ]
544
+ },
545
+ items: {
546
+ $ref: "#/definitions/arrayItemsPseudoUrls"
547
+ }
548
+ }
534
549
  },
535
- items: {
536
- $ref: "#/definitions/arrayItemsPseudoUrls"
537
- }
538
- }
539
- },
540
- {
541
- required: [
542
- "editor"
543
- ],
544
- properties: {
545
- editor: {
546
- "enum": [
547
- "requestListSources"
548
- ]
550
+ {
551
+ required: [
552
+ "editor"
553
+ ],
554
+ properties: {
555
+ editor: {
556
+ "enum": [
557
+ "requestListSources"
558
+ ]
559
+ },
560
+ items: {
561
+ $ref: "#/definitions/arrayItemsRequestListSources"
562
+ }
563
+ }
549
564
  },
550
- items: {
551
- $ref: "#/definitions/arrayItemsRequestListSources"
552
- }
553
- }
554
- },
555
- {
556
- required: [
557
- "editor"
558
- ],
559
- properties: {
560
- editor: {
561
- "enum": [
562
- "json",
563
- "schemaBased",
564
- "hidden"
565
- ]
565
+ {
566
+ required: [
567
+ "editor"
568
+ ],
569
+ properties: {
570
+ editor: {
571
+ "enum": [
572
+ "json",
573
+ "schemaBased",
574
+ "hidden"
575
+ ]
576
+ },
577
+ items: {
578
+ $ref: "#/definitions/arrayItems"
579
+ }
580
+ }
566
581
  },
567
- items: {
568
- $ref: "#/definitions/arrayItems"
582
+ {
583
+ not: {
584
+ required: [
585
+ "editor"
586
+ ]
587
+ },
588
+ properties: {
589
+ items: {
590
+ $ref: "#/definitions/arrayItems"
591
+ }
592
+ }
569
593
  }
570
- }
594
+ ]
571
595
  },
572
596
  {
573
- not: {
574
- required: [
575
- "editor"
576
- ]
597
+ "if": {
598
+ properties: {
599
+ nullable: {
600
+ "const": false
601
+ }
602
+ }
577
603
  },
578
- properties: {
579
- items: {
580
- $ref: "#/definitions/arrayItems"
604
+ then: {
605
+ properties: {
606
+ "default": {
607
+ type: "array"
608
+ }
609
+ }
610
+ },
611
+ "else": {
612
+ properties: {
613
+ "default": {
614
+ type: [
615
+ "array",
616
+ "null"
617
+ ]
618
+ }
581
619
  }
582
620
  }
583
621
  }
@@ -693,9 +731,6 @@ var definitions = {
693
731
  description: {
694
732
  type: "string"
695
733
  },
696
- "default": {
697
- type: "object"
698
- },
699
734
  prefill: {
700
735
  type: "object"
701
736
  },
@@ -749,30 +784,60 @@ var definitions = {
749
784
  }
750
785
  },
751
786
  unevaluatedProperties: false,
752
- oneOf: [
787
+ allOf: [
753
788
  {
754
- properties: {
755
- editor: {
756
- "enum": [
757
- "proxy"
758
- ]
789
+ oneOf: [
790
+ {
791
+ properties: {
792
+ editor: {
793
+ "enum": [
794
+ "proxy"
795
+ ]
796
+ },
797
+ properties: {
798
+ $ref: "#/definitions/subObjectPropertiesProxy"
799
+ }
800
+ }
759
801
  },
760
- properties: {
761
- $ref: "#/definitions/subObjectPropertiesProxy"
802
+ {
803
+ properties: {
804
+ editor: {
805
+ "enum": [
806
+ "json",
807
+ "schemaBased",
808
+ "hidden"
809
+ ]
810
+ },
811
+ properties: {
812
+ $ref: "#/definitions/subObjectProperties"
813
+ }
814
+ }
762
815
  }
763
- }
816
+ ]
764
817
  },
765
818
  {
766
- properties: {
767
- editor: {
768
- "enum": [
769
- "json",
770
- "schemaBased",
771
- "hidden"
772
- ]
773
- },
819
+ "if": {
820
+ properties: {
821
+ nullable: {
822
+ "const": false
823
+ }
824
+ }
825
+ },
826
+ then: {
827
+ properties: {
828
+ "default": {
829
+ type: "object"
830
+ }
831
+ }
832
+ },
833
+ "else": {
774
834
  properties: {
775
- $ref: "#/definitions/subObjectProperties"
835
+ "default": {
836
+ type: [
837
+ "object",
838
+ "null"
839
+ ]
840
+ }
776
841
  }
777
842
  }
778
843
  }
@@ -850,7 +915,7 @@ var definitions = {
850
915
  integerProperty: {
851
916
  title: "Integer property",
852
917
  type: "object",
853
- additionalProperties: false,
918
+ unevaluatedProperties: false,
854
919
  properties: {
855
920
  type: {
856
921
  "enum": [
@@ -863,9 +928,6 @@ var definitions = {
863
928
  description: {
864
929
  type: "string"
865
930
  },
866
- "default": {
867
- type: "integer"
868
- },
869
931
  prefill: {
870
932
  type: "integer"
871
933
  },
@@ -901,12 +963,36 @@ var definitions = {
901
963
  "type",
902
964
  "title",
903
965
  "description"
904
- ]
966
+ ],
967
+ "if": {
968
+ properties: {
969
+ nullable: {
970
+ "const": false
971
+ }
972
+ }
973
+ },
974
+ then: {
975
+ properties: {
976
+ "default": {
977
+ type: "integer"
978
+ }
979
+ }
980
+ },
981
+ "else": {
982
+ properties: {
983
+ "default": {
984
+ type: [
985
+ "integer",
986
+ "null"
987
+ ]
988
+ }
989
+ }
990
+ }
905
991
  },
906
992
  booleanProperty: {
907
993
  title: "Boolean property",
908
994
  type: "object",
909
- additionalProperties: false,
995
+ unevaluatedProperties: false,
910
996
  properties: {
911
997
  type: {
912
998
  "enum": [
@@ -919,9 +1005,6 @@ var definitions = {
919
1005
  description: {
920
1006
  type: "string"
921
1007
  },
922
- "default": {
923
- type: "boolean"
924
- },
925
1008
  prefill: {
926
1009
  type: "boolean"
927
1010
  },
@@ -954,12 +1037,36 @@ var definitions = {
954
1037
  "type",
955
1038
  "title",
956
1039
  "description"
957
- ]
1040
+ ],
1041
+ "if": {
1042
+ properties: {
1043
+ nullable: {
1044
+ "const": false
1045
+ }
1046
+ }
1047
+ },
1048
+ then: {
1049
+ properties: {
1050
+ "default": {
1051
+ type: "boolean"
1052
+ }
1053
+ }
1054
+ },
1055
+ "else": {
1056
+ properties: {
1057
+ "default": {
1058
+ type: [
1059
+ "boolean",
1060
+ "null"
1061
+ ]
1062
+ }
1063
+ }
1064
+ }
958
1065
  },
959
1066
  resourceProperty: {
960
1067
  title: "Resource property",
961
1068
  type: "object",
962
- additionalProperties: false,
1069
+ unevaluatedProperties: false,
963
1070
  properties: {
964
1071
  type: {
965
1072
  "enum": [
@@ -1000,9 +1107,6 @@ var definitions = {
1000
1107
  "const": "READ"
1001
1108
  }
1002
1109
  },
1003
- "default": {
1004
- type: "string"
1005
- },
1006
1110
  prefill: {
1007
1111
  type: "string"
1008
1112
  },
@@ -1048,13 +1152,39 @@ var definitions = {
1048
1152
  ]
1049
1153
  }
1050
1154
  }
1155
+ },
1156
+ {
1157
+ "if": {
1158
+ properties: {
1159
+ nullable: {
1160
+ "const": false
1161
+ }
1162
+ }
1163
+ },
1164
+ then: {
1165
+ properties: {
1166
+ "default": {
1167
+ type: "string"
1168
+ }
1169
+ }
1170
+ },
1171
+ "else": {
1172
+ properties: {
1173
+ "default": {
1174
+ type: [
1175
+ "string",
1176
+ "null"
1177
+ ]
1178
+ }
1179
+ }
1180
+ }
1051
1181
  }
1052
1182
  ]
1053
1183
  },
1054
1184
  resourceArrayProperty: {
1055
1185
  title: "Resource array property",
1056
1186
  type: "object",
1057
- additionalProperties: false,
1187
+ unevaluatedProperties: false,
1058
1188
  properties: {
1059
1189
  type: {
1060
1190
  "enum": [
@@ -1088,9 +1218,6 @@ var definitions = {
1088
1218
  "const": "READ"
1089
1219
  }
1090
1220
  },
1091
- "default": {
1092
- type: "array"
1093
- },
1094
1221
  prefill: {
1095
1222
  type: "array"
1096
1223
  },
@@ -1152,13 +1279,39 @@ var definitions = {
1152
1279
  ]
1153
1280
  }
1154
1281
  }
1282
+ },
1283
+ {
1284
+ "if": {
1285
+ properties: {
1286
+ nullable: {
1287
+ "const": false
1288
+ }
1289
+ }
1290
+ },
1291
+ then: {
1292
+ properties: {
1293
+ "default": {
1294
+ type: "array"
1295
+ }
1296
+ }
1297
+ },
1298
+ "else": {
1299
+ properties: {
1300
+ "default": {
1301
+ type: [
1302
+ "array",
1303
+ "null"
1304
+ ]
1305
+ }
1306
+ }
1307
+ }
1155
1308
  }
1156
1309
  ]
1157
1310
  },
1158
1311
  anyProperty: {
1159
1312
  title: "Any property",
1160
1313
  type: "object",
1161
- additionalProperties: false,
1314
+ unevaluatedProperties: false,
1162
1315
  properties: {
1163
1316
  type: {
1164
1317
  type: [
@@ -1184,15 +1337,6 @@ var definitions = {
1184
1337
  description: {
1185
1338
  type: "string"
1186
1339
  },
1187
- "default": {
1188
- type: [
1189
- "object",
1190
- "array",
1191
- "string",
1192
- "integer",
1193
- "boolean"
1194
- ]
1195
- },
1196
1340
  prefill: {
1197
1341
  type: [
1198
1342
  "object",
@@ -1232,7 +1376,41 @@ var definitions = {
1232
1376
  "title",
1233
1377
  "description",
1234
1378
  "editor"
1235
- ]
1379
+ ],
1380
+ "if": {
1381
+ properties: {
1382
+ nullable: {
1383
+ "const": false
1384
+ }
1385
+ }
1386
+ },
1387
+ then: {
1388
+ properties: {
1389
+ "default": {
1390
+ type: [
1391
+ "object",
1392
+ "array",
1393
+ "string",
1394
+ "integer",
1395
+ "boolean"
1396
+ ]
1397
+ }
1398
+ }
1399
+ },
1400
+ "else": {
1401
+ properties: {
1402
+ "default": {
1403
+ type: [
1404
+ "object",
1405
+ "array",
1406
+ "string",
1407
+ "integer",
1408
+ "boolean",
1409
+ "null"
1410
+ ]
1411
+ }
1412
+ }
1413
+ }
1236
1414
  },
1237
1415
  subSchemaStringEnumProperty: {
1238
1416
  title: "Sub-schema: Enum property",