@apify/input_schema 3.16.1 → 3.17.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
@@ -1,4 +1,5 @@
1
1
  import Ajv, { ErrorObject, ValidateFunction } from 'ajv';
2
+ import Ajv$1 from 'ajv/dist/2019';
2
3
 
3
4
  /**
4
5
  * Helper function to simulate intl formatMessage function
@@ -378,6 +379,7 @@ var definitions = {
378
379
  "keyValue",
379
380
  "stringList",
380
381
  "select",
382
+ "schemaBased",
381
383
  "hidden"
382
384
  ]
383
385
  },
@@ -385,7 +387,6 @@ var definitions = {
385
387
  type: "boolean"
386
388
  }
387
389
  },
388
- additionalProperties: true,
389
390
  required: [
390
391
  "type",
391
392
  "title",
@@ -402,168 +403,185 @@ var definitions = {
402
403
  }
403
404
  },
404
405
  then: {
405
- "if": {
406
- properties: {
407
- editor: {
408
- "const": "select"
409
- }
406
+ properties: {
407
+ type: {
408
+ "enum": [
409
+ "array"
410
+ ]
411
+ },
412
+ title: {
413
+ type: "string"
414
+ },
415
+ description: {
416
+ type: "string"
417
+ },
418
+ "default": {
419
+ type: "array"
420
+ },
421
+ prefill: {
422
+ type: "array"
423
+ },
424
+ example: {
425
+ type: "array"
426
+ },
427
+ nullable: {
428
+ type: "boolean"
429
+ },
430
+ minItems: {
431
+ type: "integer"
432
+ },
433
+ maxItems: {
434
+ type: "integer"
435
+ },
436
+ uniqueItems: {
437
+ type: "boolean"
438
+ },
439
+ sectionCaption: {
440
+ type: "string"
441
+ },
442
+ sectionDescription: {
443
+ type: "string"
444
+ },
445
+ placeholderKey: {
446
+ type: "string"
447
+ },
448
+ placeholderValue: {
449
+ type: "string"
450
+ },
451
+ patternKey: {
452
+ type: "string"
453
+ },
454
+ patternValue: {
455
+ type: "string"
456
+ },
457
+ isSecret: {
458
+ "enum": [
459
+ false
460
+ ]
410
461
  }
411
462
  },
412
- then: {
413
- additionalProperties: false,
414
- required: [
415
- "items"
416
- ],
417
- properties: {
418
- type: {
419
- "enum": [
420
- "array"
421
- ]
422
- },
423
- editor: {
424
- "enum": [
425
- "select"
426
- ]
427
- },
428
- title: {
429
- type: "string"
430
- },
431
- description: {
432
- type: "string"
433
- },
434
- "default": {
435
- type: "array"
436
- },
437
- prefill: {
438
- type: "array"
439
- },
440
- example: {
441
- type: "array"
442
- },
443
- nullable: {
444
- type: "boolean"
445
- },
446
- minItems: {
447
- type: "integer"
448
- },
449
- maxItems: {
450
- type: "integer"
451
- },
452
- uniqueItems: {
453
- type: "boolean"
454
- },
455
- sectionCaption: {
456
- type: "string"
457
- },
458
- sectionDescription: {
459
- type: "string"
460
- },
461
- items: {
462
- type: "object",
463
- additionalProperties: false,
464
- properties: {
465
- type: {
466
- "enum": [
467
- "string"
468
- ]
469
- },
470
- "enum": {
471
- type: "array",
472
- items: {
473
- type: "string"
474
- },
475
- uniqueItems: true
476
- },
477
- enumTitles: {
478
- type: "array",
479
- items: {
480
- type: "string"
481
- }
482
- }
463
+ unevaluatedProperties: false,
464
+ oneOf: [
465
+ {
466
+ required: [
467
+ "editor"
468
+ ],
469
+ properties: {
470
+ editor: {
471
+ "enum": [
472
+ "select"
473
+ ]
483
474
  },
484
- required: [
485
- "type",
486
- "enum"
487
- ]
488
- },
489
- isSecret: {
490
- "enum": [
491
- false
492
- ]
475
+ items: {
476
+ $ref: "#/definitions/arrayItemsSelect"
477
+ }
493
478
  }
494
- }
495
- },
496
- "else": {
497
- additionalProperties: false,
498
- properties: {
499
- type: {
500
- "enum": [
501
- "array"
502
- ]
503
- },
504
- editor: {
505
- "enum": [
506
- "json",
507
- "requestListSources",
508
- "pseudoUrls",
509
- "globs",
510
- "keyValue",
511
- "stringList",
512
- "hidden"
479
+ },
480
+ {
481
+ required: [
482
+ "editor"
483
+ ],
484
+ properties: {
485
+ editor: {
486
+ "enum": [
487
+ "keyValue"
488
+ ]
489
+ },
490
+ items: {
491
+ $ref: "#/definitions/arrayItemsKeyValue"
492
+ }
493
+ }
494
+ },
495
+ {
496
+ required: [
497
+ "editor"
498
+ ],
499
+ properties: {
500
+ editor: {
501
+ "enum": [
502
+ "stringList"
503
+ ]
504
+ },
505
+ items: {
506
+ $ref: "#/definitions/arrayItemsStringList"
507
+ }
508
+ }
509
+ },
510
+ {
511
+ required: [
512
+ "editor"
513
+ ],
514
+ properties: {
515
+ editor: {
516
+ "enum": [
517
+ "globs"
518
+ ]
519
+ },
520
+ items: {
521
+ $ref: "#/definitions/arrayItemsGlobs"
522
+ }
523
+ }
524
+ },
525
+ {
526
+ required: [
527
+ "editor"
528
+ ],
529
+ properties: {
530
+ editor: {
531
+ "enum": [
532
+ "pseudoUrls"
533
+ ]
534
+ },
535
+ items: {
536
+ $ref: "#/definitions/arrayItemsPseudoUrls"
537
+ }
538
+ }
539
+ },
540
+ {
541
+ required: [
542
+ "editor"
543
+ ],
544
+ properties: {
545
+ editor: {
546
+ "enum": [
547
+ "requestListSources"
548
+ ]
549
+ },
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
+ ]
566
+ },
567
+ items: {
568
+ $ref: "#/definitions/arrayItems"
569
+ }
570
+ }
571
+ },
572
+ {
573
+ not: {
574
+ required: [
575
+ "editor"
513
576
  ]
514
577
  },
515
- title: {
516
- type: "string"
517
- },
518
- description: {
519
- type: "string"
520
- },
521
- "default": {
522
- type: "array"
523
- },
524
- prefill: {
525
- type: "array"
526
- },
527
- example: {
528
- type: "array"
529
- },
530
- nullable: {
531
- type: "boolean"
532
- },
533
- minItems: {
534
- type: "integer"
535
- },
536
- maxItems: {
537
- type: "integer"
538
- },
539
- uniqueItems: {
540
- type: "boolean"
541
- },
542
- sectionCaption: {
543
- type: "string"
544
- },
545
- sectionDescription: {
546
- type: "string"
547
- },
548
- placeholderKey: {
549
- type: "string"
550
- },
551
- placeholderValue: {
552
- type: "string"
553
- },
554
- patternKey: {
555
- type: "string"
556
- },
557
- patternValue: {
558
- type: "string"
559
- },
560
- isSecret: {
561
- "enum": [
562
- false
563
- ]
578
+ properties: {
579
+ items: {
580
+ $ref: "#/definitions/arrayItems"
581
+ }
564
582
  }
565
583
  }
566
- }
584
+ ]
567
585
  },
568
586
  "else": {
569
587
  additionalProperties: false,
@@ -609,6 +627,9 @@ var definitions = {
609
627
  sectionDescription: {
610
628
  type: "string"
611
629
  },
630
+ items: {
631
+ $ref: "#/definitions/arrayItems"
632
+ },
612
633
  isSecret: {
613
634
  "enum": [
614
635
  true
@@ -620,7 +641,6 @@ var definitions = {
620
641
  objectProperty: {
621
642
  title: "Object property",
622
643
  type: "object",
623
- additionalProperties: true,
624
644
  properties: {
625
645
  type: {
626
646
  "enum": [
@@ -637,6 +657,7 @@ var definitions = {
637
657
  "enum": [
638
658
  "json",
639
659
  "proxy",
660
+ "schemaBased",
640
661
  "hidden"
641
662
  ]
642
663
  },
@@ -660,7 +681,6 @@ var definitions = {
660
681
  }
661
682
  },
662
683
  then: {
663
- additionalProperties: false,
664
684
  properties: {
665
685
  type: {
666
686
  "enum": [
@@ -701,6 +721,7 @@ var definitions = {
701
721
  "enum": [
702
722
  "json",
703
723
  "proxy",
724
+ "schemaBased",
704
725
  "hidden"
705
726
  ]
706
727
  },
@@ -714,8 +735,48 @@ var definitions = {
714
735
  "enum": [
715
736
  false
716
737
  ]
738
+ },
739
+ required: {
740
+ type: "array",
741
+ minItems: 0,
742
+ items: {
743
+ type: "string"
744
+ },
745
+ uniqueItems: true
746
+ },
747
+ additionalProperties: {
748
+ type: "boolean"
717
749
  }
718
- }
750
+ },
751
+ unevaluatedProperties: false,
752
+ oneOf: [
753
+ {
754
+ properties: {
755
+ editor: {
756
+ "enum": [
757
+ "proxy"
758
+ ]
759
+ },
760
+ properties: {
761
+ $ref: "#/definitions/subObjectPropertiesProxy"
762
+ }
763
+ }
764
+ },
765
+ {
766
+ properties: {
767
+ editor: {
768
+ "enum": [
769
+ "json",
770
+ "schemaBased",
771
+ "hidden"
772
+ ]
773
+ },
774
+ properties: {
775
+ $ref: "#/definitions/subObjectProperties"
776
+ }
777
+ }
778
+ }
779
+ ]
719
780
  },
720
781
  "else": {
721
782
  additionalProperties: false,
@@ -764,10 +825,24 @@ var definitions = {
764
825
  sectionDescription: {
765
826
  type: "string"
766
827
  },
828
+ properties: {
829
+ $ref: "#/definitions/subObjectProperties"
830
+ },
767
831
  isSecret: {
768
832
  "enum": [
769
833
  true
770
834
  ]
835
+ },
836
+ required: {
837
+ type: "array",
838
+ minItems: 0,
839
+ items: {
840
+ type: "string"
841
+ },
842
+ uniqueItems: true
843
+ },
844
+ additionalProperties: {
845
+ type: "boolean"
771
846
  }
772
847
  }
773
848
  }
@@ -1158,32 +1233,1560 @@ var definitions = {
1158
1233
  "description",
1159
1234
  "editor"
1160
1235
  ]
1161
- }
1162
- };
1163
- var schema = {
1164
- title: title,
1165
- type: type,
1166
- properties: properties,
1167
- additionalProperties: additionalProperties,
1168
- required: required,
1169
- definitions: definitions
1170
- };
1171
-
1172
- type CommonFieldDefinition<T> = {
1173
- title: string;
1174
- description: string;
1175
- default?: T;
1176
- prefill?: T;
1177
- example?: T;
1178
- nullable?: boolean;
1179
- sectionCaption?: string;
1180
- sectionDescription?: string;
1181
- };
1182
- type StringFieldDefinition = CommonFieldDefinition<string> & {
1183
- type: 'string';
1184
- editor: 'textfield' | 'textarea' | 'javascript' | 'python' | 'select' | 'datepicker' | 'hidden' | 'json' | 'fileupload';
1185
- pattern?: string;
1186
- minLength?: number;
1236
+ },
1237
+ subSchemaStringEnumProperty: {
1238
+ title: "Sub-schema: Enum property",
1239
+ type: "object",
1240
+ additionalProperties: false,
1241
+ properties: {
1242
+ type: {
1243
+ "enum": [
1244
+ "string"
1245
+ ]
1246
+ },
1247
+ editor: {
1248
+ "enum": [
1249
+ "select"
1250
+ ]
1251
+ },
1252
+ title: {
1253
+ type: "string"
1254
+ },
1255
+ description: {
1256
+ type: "string"
1257
+ },
1258
+ nullable: {
1259
+ type: "boolean"
1260
+ },
1261
+ "enum": {
1262
+ type: "array",
1263
+ items: {
1264
+ type: "string"
1265
+ },
1266
+ minItems: 1,
1267
+ uniqueItems: true
1268
+ },
1269
+ enumTitles: {
1270
+ type: "array",
1271
+ items: {
1272
+ type: "string"
1273
+ },
1274
+ minItems: 1
1275
+ }
1276
+ },
1277
+ required: [
1278
+ "type",
1279
+ "title",
1280
+ "description",
1281
+ "enum"
1282
+ ]
1283
+ },
1284
+ subSchemaStringProperty: {
1285
+ title: "Sub-schema: String property",
1286
+ type: "object",
1287
+ additionalProperties: true,
1288
+ properties: {
1289
+ type: {
1290
+ "enum": [
1291
+ "string"
1292
+ ]
1293
+ },
1294
+ title: {
1295
+ type: "string"
1296
+ },
1297
+ description: {
1298
+ type: "string"
1299
+ },
1300
+ nullable: {
1301
+ type: "boolean"
1302
+ },
1303
+ editor: {
1304
+ "enum": [
1305
+ "javascript",
1306
+ "python",
1307
+ "textfield",
1308
+ "textarea",
1309
+ "datepicker",
1310
+ "hidden",
1311
+ "fileupload"
1312
+ ]
1313
+ }
1314
+ },
1315
+ required: [
1316
+ "type",
1317
+ "title",
1318
+ "description"
1319
+ ],
1320
+ "if": {
1321
+ properties: {
1322
+ editor: {
1323
+ "const": "datepicker"
1324
+ }
1325
+ }
1326
+ },
1327
+ then: {
1328
+ additionalProperties: false,
1329
+ properties: {
1330
+ type: {
1331
+ "enum": [
1332
+ "string"
1333
+ ]
1334
+ },
1335
+ title: {
1336
+ type: "string"
1337
+ },
1338
+ description: {
1339
+ type: "string"
1340
+ },
1341
+ pattern: {
1342
+ type: "string"
1343
+ },
1344
+ nullable: {
1345
+ type: "boolean"
1346
+ },
1347
+ minLength: {
1348
+ type: "integer"
1349
+ },
1350
+ maxLength: {
1351
+ type: "integer"
1352
+ },
1353
+ editor: {
1354
+ "enum": [
1355
+ "datepicker"
1356
+ ]
1357
+ },
1358
+ dateType: {
1359
+ "enum": [
1360
+ "absolute",
1361
+ "relative",
1362
+ "absoluteOrRelative"
1363
+ ]
1364
+ }
1365
+ }
1366
+ },
1367
+ "else": {
1368
+ additionalProperties: false,
1369
+ properties: {
1370
+ type: {
1371
+ "enum": [
1372
+ "string"
1373
+ ]
1374
+ },
1375
+ title: {
1376
+ type: "string"
1377
+ },
1378
+ description: {
1379
+ type: "string"
1380
+ },
1381
+ pattern: {
1382
+ type: "string"
1383
+ },
1384
+ nullable: {
1385
+ type: "boolean"
1386
+ },
1387
+ minLength: {
1388
+ type: "integer"
1389
+ },
1390
+ maxLength: {
1391
+ type: "integer"
1392
+ },
1393
+ editor: {
1394
+ "enum": [
1395
+ "javascript",
1396
+ "python",
1397
+ "textfield",
1398
+ "textarea",
1399
+ "hidden",
1400
+ "fileupload"
1401
+ ]
1402
+ }
1403
+ }
1404
+ }
1405
+ },
1406
+ subSchemaArrayProperty: {
1407
+ title: "Sub-schema: Array property",
1408
+ type: "object",
1409
+ properties: {
1410
+ type: {
1411
+ "enum": [
1412
+ "array"
1413
+ ]
1414
+ },
1415
+ editor: {
1416
+ "enum": [
1417
+ "json",
1418
+ "requestListSources",
1419
+ "pseudoUrls",
1420
+ "globs",
1421
+ "keyValue",
1422
+ "stringList",
1423
+ "select",
1424
+ "hidden"
1425
+ ]
1426
+ },
1427
+ title: {
1428
+ type: "string"
1429
+ },
1430
+ description: {
1431
+ type: "string"
1432
+ },
1433
+ nullable: {
1434
+ type: "boolean"
1435
+ },
1436
+ minItems: {
1437
+ type: "integer"
1438
+ },
1439
+ maxItems: {
1440
+ type: "integer"
1441
+ },
1442
+ uniqueItems: {
1443
+ type: "boolean"
1444
+ },
1445
+ placeholderKey: {
1446
+ type: "string"
1447
+ },
1448
+ placeholderValue: {
1449
+ type: "string"
1450
+ },
1451
+ patternKey: {
1452
+ type: "string"
1453
+ },
1454
+ patternValue: {
1455
+ type: "string"
1456
+ }
1457
+ },
1458
+ required: [
1459
+ "type",
1460
+ "title",
1461
+ "description"
1462
+ ],
1463
+ unevaluatedProperties: false,
1464
+ oneOf: [
1465
+ {
1466
+ required: [
1467
+ "editor"
1468
+ ],
1469
+ properties: {
1470
+ editor: {
1471
+ "enum": [
1472
+ "select"
1473
+ ]
1474
+ },
1475
+ items: {
1476
+ $ref: "#/definitions/arrayItemsSelect"
1477
+ }
1478
+ }
1479
+ },
1480
+ {
1481
+ required: [
1482
+ "editor"
1483
+ ],
1484
+ properties: {
1485
+ editor: {
1486
+ "enum": [
1487
+ "keyValue"
1488
+ ]
1489
+ },
1490
+ items: {
1491
+ $ref: "#/definitions/arrayItemsKeyValue"
1492
+ }
1493
+ }
1494
+ },
1495
+ {
1496
+ required: [
1497
+ "editor"
1498
+ ],
1499
+ properties: {
1500
+ editor: {
1501
+ "enum": [
1502
+ "stringList"
1503
+ ]
1504
+ },
1505
+ items: {
1506
+ $ref: "#/definitions/arrayItemsStringList"
1507
+ }
1508
+ }
1509
+ },
1510
+ {
1511
+ required: [
1512
+ "editor"
1513
+ ],
1514
+ properties: {
1515
+ editor: {
1516
+ "enum": [
1517
+ "globs"
1518
+ ]
1519
+ },
1520
+ items: {
1521
+ $ref: "#/definitions/arrayItemsGlobs"
1522
+ }
1523
+ }
1524
+ },
1525
+ {
1526
+ required: [
1527
+ "editor"
1528
+ ],
1529
+ properties: {
1530
+ editor: {
1531
+ "enum": [
1532
+ "pseudoUrls"
1533
+ ]
1534
+ },
1535
+ items: {
1536
+ $ref: "#/definitions/arrayItemsPseudoUrls"
1537
+ }
1538
+ }
1539
+ },
1540
+ {
1541
+ required: [
1542
+ "editor"
1543
+ ],
1544
+ properties: {
1545
+ editor: {
1546
+ "enum": [
1547
+ "requestListSources"
1548
+ ]
1549
+ },
1550
+ items: {
1551
+ $ref: "#/definitions/arrayItemsRequestListSources"
1552
+ }
1553
+ }
1554
+ },
1555
+ {
1556
+ required: [
1557
+ "editor"
1558
+ ],
1559
+ properties: {
1560
+ editor: {
1561
+ "enum": [
1562
+ "json",
1563
+ "schemaBased",
1564
+ "hidden"
1565
+ ]
1566
+ },
1567
+ items: {
1568
+ $ref: "#/definitions/arrayItems"
1569
+ }
1570
+ }
1571
+ },
1572
+ {
1573
+ not: {
1574
+ required: [
1575
+ "editor"
1576
+ ]
1577
+ },
1578
+ properties: {
1579
+ items: {
1580
+ $ref: "#/definitions/arrayItems"
1581
+ }
1582
+ }
1583
+ }
1584
+ ]
1585
+ },
1586
+ subSchemaIntegerProperty: {
1587
+ title: "Sub-schema: Integer property",
1588
+ type: "object",
1589
+ additionalProperties: false,
1590
+ properties: {
1591
+ type: {
1592
+ "enum": [
1593
+ "integer"
1594
+ ]
1595
+ },
1596
+ title: {
1597
+ type: "string"
1598
+ },
1599
+ description: {
1600
+ type: "string"
1601
+ },
1602
+ nullable: {
1603
+ type: "boolean"
1604
+ },
1605
+ minimum: {
1606
+ type: "integer"
1607
+ },
1608
+ maximum: {
1609
+ type: "integer"
1610
+ },
1611
+ unit: {
1612
+ type: "string"
1613
+ },
1614
+ editor: {
1615
+ "enum": [
1616
+ "number",
1617
+ "hidden"
1618
+ ]
1619
+ }
1620
+ },
1621
+ required: [
1622
+ "type",
1623
+ "title",
1624
+ "description"
1625
+ ]
1626
+ },
1627
+ subSchemaBooleanProperty: {
1628
+ title: "Sub-schema: Boolean property",
1629
+ type: "object",
1630
+ additionalProperties: false,
1631
+ properties: {
1632
+ type: {
1633
+ "enum": [
1634
+ "boolean"
1635
+ ]
1636
+ },
1637
+ title: {
1638
+ type: "string"
1639
+ },
1640
+ description: {
1641
+ type: "string"
1642
+ },
1643
+ nullable: {
1644
+ type: "boolean"
1645
+ },
1646
+ groupCaption: {
1647
+ type: "string"
1648
+ },
1649
+ groupDescription: {
1650
+ type: "string"
1651
+ },
1652
+ editor: {
1653
+ "enum": [
1654
+ "checkbox",
1655
+ "hidden"
1656
+ ]
1657
+ }
1658
+ },
1659
+ required: [
1660
+ "type",
1661
+ "title",
1662
+ "description"
1663
+ ]
1664
+ },
1665
+ subSchemaObjectProperty: {
1666
+ title: "Sub-schema: Object property",
1667
+ type: "object",
1668
+ additionalProperties: false,
1669
+ properties: {
1670
+ type: {
1671
+ "enum": [
1672
+ "object"
1673
+ ]
1674
+ },
1675
+ title: {
1676
+ type: "string"
1677
+ },
1678
+ description: {
1679
+ type: "string"
1680
+ },
1681
+ patternKey: {
1682
+ type: "string"
1683
+ },
1684
+ patternValue: {
1685
+ type: "string"
1686
+ },
1687
+ nullable: {
1688
+ type: "boolean"
1689
+ },
1690
+ minProperties: {
1691
+ type: "integer"
1692
+ },
1693
+ maxProperties: {
1694
+ type: "integer"
1695
+ },
1696
+ editor: {
1697
+ "enum": [
1698
+ "json",
1699
+ "proxy",
1700
+ "hidden"
1701
+ ]
1702
+ },
1703
+ properties: {
1704
+ $ref: "#/definitions/subObjectProperties"
1705
+ },
1706
+ required: {
1707
+ type: "array",
1708
+ minItems: 0,
1709
+ items: {
1710
+ type: "string"
1711
+ },
1712
+ uniqueItems: true
1713
+ },
1714
+ additionalProperties: {
1715
+ type: "boolean"
1716
+ }
1717
+ },
1718
+ required: [
1719
+ "type",
1720
+ "title",
1721
+ "description"
1722
+ ]
1723
+ },
1724
+ subSchemaResourceProperty: {
1725
+ title: "Sub-schema: Resource property",
1726
+ type: "object",
1727
+ additionalProperties: false,
1728
+ properties: {
1729
+ type: {
1730
+ "enum": [
1731
+ "string"
1732
+ ]
1733
+ },
1734
+ title: {
1735
+ type: "string"
1736
+ },
1737
+ description: {
1738
+ type: "string"
1739
+ },
1740
+ editor: {
1741
+ "enum": [
1742
+ "resourcePicker",
1743
+ "hidden"
1744
+ ]
1745
+ },
1746
+ resourceType: {
1747
+ "enum": [
1748
+ "dataset",
1749
+ "keyValueStore",
1750
+ "requestQueue"
1751
+ ]
1752
+ },
1753
+ resourcePermissions: {
1754
+ type: "array",
1755
+ items: {
1756
+ type: "string",
1757
+ "enum": [
1758
+ "READ",
1759
+ "WRITE"
1760
+ ]
1761
+ },
1762
+ minItems: 1,
1763
+ uniqueItems: true,
1764
+ contains: {
1765
+ "const": "READ"
1766
+ }
1767
+ },
1768
+ nullable: {
1769
+ type: "boolean"
1770
+ }
1771
+ },
1772
+ required: [
1773
+ "type",
1774
+ "title",
1775
+ "description",
1776
+ "resourceType"
1777
+ ]
1778
+ },
1779
+ subSchemaResourceArrayProperty: {
1780
+ title: "Sub-schema: Resource array property",
1781
+ type: "object",
1782
+ additionalProperties: false,
1783
+ properties: {
1784
+ type: {
1785
+ "enum": [
1786
+ "array"
1787
+ ]
1788
+ },
1789
+ title: {
1790
+ type: "string"
1791
+ },
1792
+ description: {
1793
+ type: "string"
1794
+ },
1795
+ editor: {
1796
+ "enum": [
1797
+ "resourcePicker",
1798
+ "hidden"
1799
+ ]
1800
+ },
1801
+ resourcePermissions: {
1802
+ type: "array",
1803
+ items: {
1804
+ type: "string",
1805
+ "enum": [
1806
+ "READ",
1807
+ "WRITE"
1808
+ ]
1809
+ },
1810
+ minItems: 1,
1811
+ uniqueItems: true,
1812
+ contains: {
1813
+ "const": "READ"
1814
+ }
1815
+ },
1816
+ nullable: {
1817
+ type: "boolean"
1818
+ },
1819
+ minItems: {
1820
+ type: "integer"
1821
+ },
1822
+ maxItems: {
1823
+ type: "integer"
1824
+ },
1825
+ uniqueItems: {
1826
+ type: "boolean"
1827
+ },
1828
+ resourceType: {
1829
+ "enum": [
1830
+ "dataset",
1831
+ "keyValueStore",
1832
+ "requestQueue"
1833
+ ]
1834
+ }
1835
+ },
1836
+ required: [
1837
+ "type",
1838
+ "title",
1839
+ "description",
1840
+ "resourceType"
1841
+ ]
1842
+ },
1843
+ arrayItems: {
1844
+ title: "Utils: Array items definition",
1845
+ type: "object",
1846
+ properties: {
1847
+ type: {
1848
+ "enum": [
1849
+ "string",
1850
+ "integer",
1851
+ "boolean",
1852
+ "object",
1853
+ "array"
1854
+ ]
1855
+ }
1856
+ },
1857
+ required: [
1858
+ "type"
1859
+ ],
1860
+ "if": {
1861
+ properties: {
1862
+ type: {
1863
+ "enum": [
1864
+ "object"
1865
+ ]
1866
+ }
1867
+ }
1868
+ },
1869
+ then: {
1870
+ additionalProperties: false,
1871
+ properties: {
1872
+ type: {
1873
+ "enum": [
1874
+ "object"
1875
+ ]
1876
+ },
1877
+ properties: {
1878
+ type: "object",
1879
+ patternProperties: {
1880
+ "^": {
1881
+ oneOf: [
1882
+ {
1883
+ $ref: "#/definitions/subSchemaStringProperty"
1884
+ },
1885
+ {
1886
+ $ref: "#/definitions/subSchemaStringEnumProperty"
1887
+ },
1888
+ {
1889
+ $ref: "#/definitions/subSchemaArrayProperty"
1890
+ },
1891
+ {
1892
+ $ref: "#/definitions/subSchemaObjectProperty"
1893
+ },
1894
+ {
1895
+ $ref: "#/definitions/subSchemaIntegerProperty"
1896
+ },
1897
+ {
1898
+ $ref: "#/definitions/subSchemaBooleanProperty"
1899
+ },
1900
+ {
1901
+ $ref: "#/definitions/subSchemaResourceProperty"
1902
+ },
1903
+ {
1904
+ $ref: "#/definitions/subSchemaResourceArrayProperty"
1905
+ }
1906
+ ]
1907
+ }
1908
+ },
1909
+ additionalProperties: false
1910
+ },
1911
+ required: {
1912
+ type: "array",
1913
+ minItems: 0,
1914
+ items: {
1915
+ type: "string"
1916
+ },
1917
+ uniqueItems: true
1918
+ },
1919
+ additionalProperties: {
1920
+ type: "boolean"
1921
+ }
1922
+ }
1923
+ },
1924
+ "else": {
1925
+ "if": {
1926
+ properties: {
1927
+ type: {
1928
+ "const": "array"
1929
+ }
1930
+ }
1931
+ },
1932
+ then: {
1933
+ additionalProperties: false,
1934
+ properties: {
1935
+ type: {
1936
+ "enum": [
1937
+ "array"
1938
+ ]
1939
+ },
1940
+ items: {
1941
+ $ref: "#/definitions/arrayItems"
1942
+ }
1943
+ }
1944
+ },
1945
+ "else": {
1946
+ additionalProperties: false,
1947
+ properties: {
1948
+ type: {
1949
+ "enum": [
1950
+ "string",
1951
+ "integer",
1952
+ "boolean"
1953
+ ]
1954
+ }
1955
+ }
1956
+ }
1957
+ }
1958
+ },
1959
+ arrayItemsSelect: {
1960
+ title: "Utils: Array items select definition",
1961
+ type: "object",
1962
+ additionalProperties: false,
1963
+ properties: {
1964
+ type: {
1965
+ "enum": [
1966
+ "string"
1967
+ ]
1968
+ },
1969
+ "enum": {
1970
+ type: "array",
1971
+ items: {
1972
+ type: "string"
1973
+ },
1974
+ uniqueItems: true
1975
+ },
1976
+ enumTitles: {
1977
+ type: "array",
1978
+ items: {
1979
+ type: "string"
1980
+ }
1981
+ }
1982
+ },
1983
+ required: [
1984
+ "type",
1985
+ "enum"
1986
+ ]
1987
+ },
1988
+ arrayItemsKeyValue: {
1989
+ title: "Utils: Array items keyValue definition",
1990
+ type: "object",
1991
+ additionalProperties: false,
1992
+ properties: {
1993
+ type: {
1994
+ "enum": [
1995
+ "object"
1996
+ ]
1997
+ },
1998
+ properties: {
1999
+ type: "object",
2000
+ properties: {
2001
+ key: {
2002
+ type: "object",
2003
+ additionalProperties: false,
2004
+ properties: {
2005
+ type: {
2006
+ "enum": [
2007
+ "string"
2008
+ ]
2009
+ },
2010
+ title: {
2011
+ type: "string"
2012
+ },
2013
+ description: {
2014
+ type: "string"
2015
+ },
2016
+ pattern: {
2017
+ type: "string"
2018
+ },
2019
+ minLength: {
2020
+ type: "integer"
2021
+ },
2022
+ maxLength: {
2023
+ type: "integer"
2024
+ }
2025
+ },
2026
+ required: [
2027
+ "type"
2028
+ ]
2029
+ },
2030
+ value: {
2031
+ type: "object",
2032
+ additionalProperties: false,
2033
+ properties: {
2034
+ type: {
2035
+ "enum": [
2036
+ "string"
2037
+ ]
2038
+ },
2039
+ title: {
2040
+ type: "string"
2041
+ },
2042
+ description: {
2043
+ type: "string"
2044
+ },
2045
+ pattern: {
2046
+ type: "string"
2047
+ },
2048
+ minLength: {
2049
+ type: "integer"
2050
+ },
2051
+ maxLength: {
2052
+ type: "integer"
2053
+ }
2054
+ },
2055
+ required: [
2056
+ "type"
2057
+ ]
2058
+ }
2059
+ },
2060
+ required: [
2061
+ "key",
2062
+ "value"
2063
+ ],
2064
+ additionalProperties: false
2065
+ },
2066
+ required: {
2067
+ type: "array",
2068
+ minItems: 0,
2069
+ items: {
2070
+ type: "string"
2071
+ },
2072
+ uniqueItems: true
2073
+ },
2074
+ additionalProperties: {
2075
+ type: "boolean"
2076
+ }
2077
+ },
2078
+ required: [
2079
+ "type",
2080
+ "properties"
2081
+ ]
2082
+ },
2083
+ arrayItemsStringList: {
2084
+ title: "Utils: Array items stringList definition",
2085
+ type: "object",
2086
+ additionalProperties: false,
2087
+ properties: {
2088
+ type: {
2089
+ "enum": [
2090
+ "string"
2091
+ ]
2092
+ },
2093
+ pattern: {
2094
+ type: "string"
2095
+ },
2096
+ minLength: {
2097
+ type: "integer"
2098
+ },
2099
+ maxLength: {
2100
+ type: "integer"
2101
+ }
2102
+ },
2103
+ required: [
2104
+ "type"
2105
+ ]
2106
+ },
2107
+ arrayItemsGlobs: {
2108
+ title: "Utils: Array items globs definition",
2109
+ type: "object",
2110
+ additionalProperties: false,
2111
+ properties: {
2112
+ type: {
2113
+ "enum": [
2114
+ "object"
2115
+ ]
2116
+ },
2117
+ properties: {
2118
+ type: "object",
2119
+ additionalProperties: false,
2120
+ properties: {
2121
+ glob: {
2122
+ type: "object",
2123
+ additionalProperties: false,
2124
+ properties: {
2125
+ type: {
2126
+ "enum": [
2127
+ "string"
2128
+ ]
2129
+ },
2130
+ title: {
2131
+ type: "string"
2132
+ },
2133
+ description: {
2134
+ type: "string"
2135
+ },
2136
+ pattern: {
2137
+ type: "string"
2138
+ },
2139
+ minLength: {
2140
+ type: "integer"
2141
+ },
2142
+ maxLength: {
2143
+ type: "integer"
2144
+ }
2145
+ },
2146
+ required: [
2147
+ "type"
2148
+ ]
2149
+ },
2150
+ method: {
2151
+ type: "object",
2152
+ additionalProperties: false,
2153
+ properties: {
2154
+ type: {
2155
+ "enum": [
2156
+ "string"
2157
+ ]
2158
+ },
2159
+ title: {
2160
+ type: "string"
2161
+ },
2162
+ description: {
2163
+ type: "string"
2164
+ },
2165
+ pattern: {
2166
+ type: "string"
2167
+ },
2168
+ minLength: {
2169
+ type: "integer"
2170
+ },
2171
+ maxLength: {
2172
+ type: "integer"
2173
+ }
2174
+ },
2175
+ required: [
2176
+ "type"
2177
+ ]
2178
+ },
2179
+ payload: {
2180
+ type: "object",
2181
+ additionalProperties: false,
2182
+ properties: {
2183
+ type: {
2184
+ "enum": [
2185
+ "string"
2186
+ ]
2187
+ },
2188
+ title: {
2189
+ type: "string"
2190
+ },
2191
+ description: {
2192
+ type: "string"
2193
+ },
2194
+ pattern: {
2195
+ type: "string"
2196
+ },
2197
+ minLength: {
2198
+ type: "integer"
2199
+ },
2200
+ maxLength: {
2201
+ type: "integer"
2202
+ }
2203
+ },
2204
+ required: [
2205
+ "type"
2206
+ ]
2207
+ },
2208
+ userData: {
2209
+ type: "object",
2210
+ additionalProperties: false,
2211
+ properties: {
2212
+ type: {
2213
+ "enum": [
2214
+ "object"
2215
+ ]
2216
+ },
2217
+ title: {
2218
+ type: "string"
2219
+ },
2220
+ description: {
2221
+ type: "string"
2222
+ },
2223
+ properties: {
2224
+ type: "object"
2225
+ }
2226
+ },
2227
+ required: [
2228
+ "type"
2229
+ ]
2230
+ },
2231
+ headers: {
2232
+ type: "object",
2233
+ additionalProperties: false,
2234
+ properties: {
2235
+ type: {
2236
+ "enum": [
2237
+ "object"
2238
+ ]
2239
+ },
2240
+ title: {
2241
+ type: "string"
2242
+ },
2243
+ description: {
2244
+ type: "string"
2245
+ },
2246
+ properties: {
2247
+ type: "object"
2248
+ }
2249
+ },
2250
+ required: [
2251
+ "type"
2252
+ ]
2253
+ }
2254
+ }
2255
+ },
2256
+ required: {
2257
+ type: "array",
2258
+ minItems: 0,
2259
+ items: {
2260
+ type: "string"
2261
+ },
2262
+ uniqueItems: true
2263
+ },
2264
+ additionalProperties: {
2265
+ type: "boolean"
2266
+ }
2267
+ },
2268
+ required: [
2269
+ "type"
2270
+ ]
2271
+ },
2272
+ arrayItemsPseudoUrls: {
2273
+ title: "Utils: Array items pseudoUrls definition",
2274
+ type: "object",
2275
+ additionalProperties: false,
2276
+ properties: {
2277
+ type: {
2278
+ "enum": [
2279
+ "object"
2280
+ ]
2281
+ },
2282
+ properties: {
2283
+ type: "object",
2284
+ additionalProperties: false,
2285
+ properties: {
2286
+ purl: {
2287
+ type: "object",
2288
+ additionalProperties: false,
2289
+ properties: {
2290
+ type: {
2291
+ "enum": [
2292
+ "string"
2293
+ ]
2294
+ },
2295
+ title: {
2296
+ type: "string"
2297
+ },
2298
+ description: {
2299
+ type: "string"
2300
+ },
2301
+ pattern: {
2302
+ type: "string"
2303
+ },
2304
+ minLength: {
2305
+ type: "integer"
2306
+ },
2307
+ maxLength: {
2308
+ type: "integer"
2309
+ }
2310
+ },
2311
+ required: [
2312
+ "type"
2313
+ ]
2314
+ },
2315
+ method: {
2316
+ type: "object",
2317
+ additionalProperties: false,
2318
+ properties: {
2319
+ type: {
2320
+ "enum": [
2321
+ "string"
2322
+ ]
2323
+ },
2324
+ title: {
2325
+ type: "string"
2326
+ },
2327
+ description: {
2328
+ type: "string"
2329
+ },
2330
+ pattern: {
2331
+ type: "string"
2332
+ },
2333
+ minLength: {
2334
+ type: "integer"
2335
+ },
2336
+ maxLength: {
2337
+ type: "integer"
2338
+ }
2339
+ },
2340
+ required: [
2341
+ "type"
2342
+ ]
2343
+ },
2344
+ payload: {
2345
+ type: "object",
2346
+ additionalProperties: false,
2347
+ properties: {
2348
+ type: {
2349
+ "enum": [
2350
+ "string"
2351
+ ]
2352
+ },
2353
+ title: {
2354
+ type: "string"
2355
+ },
2356
+ description: {
2357
+ type: "string"
2358
+ },
2359
+ pattern: {
2360
+ type: "string"
2361
+ },
2362
+ minLength: {
2363
+ type: "integer"
2364
+ },
2365
+ maxLength: {
2366
+ type: "integer"
2367
+ }
2368
+ },
2369
+ required: [
2370
+ "type"
2371
+ ]
2372
+ },
2373
+ userData: {
2374
+ type: "object",
2375
+ additionalProperties: false,
2376
+ properties: {
2377
+ type: {
2378
+ "enum": [
2379
+ "object"
2380
+ ]
2381
+ },
2382
+ title: {
2383
+ type: "string"
2384
+ },
2385
+ description: {
2386
+ type: "string"
2387
+ },
2388
+ properties: {
2389
+ type: "object"
2390
+ }
2391
+ },
2392
+ required: [
2393
+ "type"
2394
+ ]
2395
+ },
2396
+ headers: {
2397
+ type: "object",
2398
+ additionalProperties: false,
2399
+ properties: {
2400
+ type: {
2401
+ "enum": [
2402
+ "object"
2403
+ ]
2404
+ },
2405
+ title: {
2406
+ type: "string"
2407
+ },
2408
+ description: {
2409
+ type: "string"
2410
+ },
2411
+ properties: {
2412
+ type: "object"
2413
+ }
2414
+ },
2415
+ required: [
2416
+ "type"
2417
+ ]
2418
+ }
2419
+ }
2420
+ },
2421
+ required: {
2422
+ type: "array",
2423
+ minItems: 0,
2424
+ items: {
2425
+ type: "string"
2426
+ },
2427
+ uniqueItems: true
2428
+ },
2429
+ additionalProperties: {
2430
+ type: "boolean"
2431
+ }
2432
+ },
2433
+ required: [
2434
+ "type"
2435
+ ]
2436
+ },
2437
+ arrayItemsRequestListSources: {
2438
+ title: "Utils: Array items requestListSources definition",
2439
+ type: "object",
2440
+ additionalProperties: false,
2441
+ properties: {
2442
+ type: {
2443
+ "enum": [
2444
+ "object"
2445
+ ]
2446
+ },
2447
+ properties: {
2448
+ type: "object",
2449
+ additionalProperties: false,
2450
+ properties: {
2451
+ url: {
2452
+ type: "object",
2453
+ additionalProperties: false,
2454
+ properties: {
2455
+ type: {
2456
+ "enum": [
2457
+ "string"
2458
+ ]
2459
+ },
2460
+ title: {
2461
+ type: "string"
2462
+ },
2463
+ description: {
2464
+ type: "string"
2465
+ },
2466
+ pattern: {
2467
+ type: "string"
2468
+ },
2469
+ minLength: {
2470
+ type: "integer"
2471
+ },
2472
+ maxLength: {
2473
+ type: "integer"
2474
+ }
2475
+ },
2476
+ required: [
2477
+ "type"
2478
+ ]
2479
+ },
2480
+ method: {
2481
+ type: "object",
2482
+ additionalProperties: false,
2483
+ properties: {
2484
+ type: {
2485
+ "enum": [
2486
+ "string"
2487
+ ]
2488
+ },
2489
+ title: {
2490
+ type: "string"
2491
+ },
2492
+ description: {
2493
+ type: "string"
2494
+ },
2495
+ pattern: {
2496
+ type: "string"
2497
+ },
2498
+ minLength: {
2499
+ type: "integer"
2500
+ },
2501
+ maxLength: {
2502
+ type: "integer"
2503
+ }
2504
+ },
2505
+ required: [
2506
+ "type"
2507
+ ]
2508
+ },
2509
+ payload: {
2510
+ type: "object",
2511
+ additionalProperties: false,
2512
+ properties: {
2513
+ type: {
2514
+ "enum": [
2515
+ "string"
2516
+ ]
2517
+ },
2518
+ title: {
2519
+ type: "string"
2520
+ },
2521
+ description: {
2522
+ type: "string"
2523
+ },
2524
+ pattern: {
2525
+ type: "string"
2526
+ },
2527
+ minLength: {
2528
+ type: "integer"
2529
+ },
2530
+ maxLength: {
2531
+ type: "integer"
2532
+ }
2533
+ },
2534
+ required: [
2535
+ "type"
2536
+ ]
2537
+ },
2538
+ userData: {
2539
+ type: "object",
2540
+ additionalProperties: false,
2541
+ properties: {
2542
+ type: {
2543
+ "enum": [
2544
+ "object"
2545
+ ]
2546
+ },
2547
+ title: {
2548
+ type: "string"
2549
+ },
2550
+ description: {
2551
+ type: "string"
2552
+ },
2553
+ properties: {
2554
+ type: "object"
2555
+ }
2556
+ },
2557
+ required: [
2558
+ "type"
2559
+ ]
2560
+ },
2561
+ headers: {
2562
+ type: "object",
2563
+ additionalProperties: false,
2564
+ properties: {
2565
+ type: {
2566
+ "enum": [
2567
+ "object"
2568
+ ]
2569
+ },
2570
+ title: {
2571
+ type: "string"
2572
+ },
2573
+ description: {
2574
+ type: "string"
2575
+ },
2576
+ properties: {
2577
+ type: "object"
2578
+ }
2579
+ },
2580
+ required: [
2581
+ "type"
2582
+ ]
2583
+ }
2584
+ }
2585
+ },
2586
+ required: {
2587
+ type: "array",
2588
+ minItems: 0,
2589
+ items: {
2590
+ type: "string"
2591
+ },
2592
+ uniqueItems: true
2593
+ },
2594
+ additionalProperties: {
2595
+ type: "boolean"
2596
+ }
2597
+ },
2598
+ required: [
2599
+ "type"
2600
+ ]
2601
+ },
2602
+ subObjectProperties: {
2603
+ title: "Utils: Sub-object properties definition",
2604
+ type: "object",
2605
+ patternProperties: {
2606
+ "^": {
2607
+ oneOf: [
2608
+ {
2609
+ $ref: "#/definitions/subSchemaStringProperty"
2610
+ },
2611
+ {
2612
+ $ref: "#/definitions/subSchemaStringEnumProperty"
2613
+ },
2614
+ {
2615
+ $ref: "#/definitions/subSchemaArrayProperty"
2616
+ },
2617
+ {
2618
+ $ref: "#/definitions/subSchemaObjectProperty"
2619
+ },
2620
+ {
2621
+ $ref: "#/definitions/subSchemaIntegerProperty"
2622
+ },
2623
+ {
2624
+ $ref: "#/definitions/subSchemaBooleanProperty"
2625
+ },
2626
+ {
2627
+ $ref: "#/definitions/subSchemaResourceProperty"
2628
+ },
2629
+ {
2630
+ $ref: "#/definitions/subSchemaResourceArrayProperty"
2631
+ }
2632
+ ]
2633
+ }
2634
+ },
2635
+ additionalProperties: false
2636
+ },
2637
+ subObjectPropertiesProxy: {
2638
+ title: "Utils: Sub-object properties proxy definition",
2639
+ type: "object",
2640
+ additionalProperties: false,
2641
+ properties: {
2642
+ useApifyProxy: {
2643
+ type: "object",
2644
+ additionalProperties: false,
2645
+ properties: {
2646
+ type: {
2647
+ "enum": [
2648
+ "boolean"
2649
+ ]
2650
+ },
2651
+ title: {
2652
+ type: "string"
2653
+ },
2654
+ description: {
2655
+ type: "string"
2656
+ }
2657
+ },
2658
+ required: [
2659
+ "type"
2660
+ ]
2661
+ },
2662
+ apifyProxyGroups: {
2663
+ type: "object",
2664
+ additionalProperties: false,
2665
+ properties: {
2666
+ type: {
2667
+ "enum": [
2668
+ "array"
2669
+ ]
2670
+ },
2671
+ title: {
2672
+ type: "string"
2673
+ },
2674
+ description: {
2675
+ type: "string"
2676
+ },
2677
+ items: {
2678
+ type: [
2679
+ "object"
2680
+ ],
2681
+ properties: {
2682
+ type: {
2683
+ "enum": [
2684
+ "string"
2685
+ ]
2686
+ }
2687
+ },
2688
+ additionalProperties: false,
2689
+ required: [
2690
+ "type"
2691
+ ]
2692
+ }
2693
+ },
2694
+ required: [
2695
+ "type"
2696
+ ]
2697
+ },
2698
+ proxyUrls: {
2699
+ type: "object",
2700
+ additionalProperties: false,
2701
+ properties: {
2702
+ type: {
2703
+ "enum": [
2704
+ "array"
2705
+ ]
2706
+ },
2707
+ title: {
2708
+ type: "string"
2709
+ },
2710
+ description: {
2711
+ type: "string"
2712
+ },
2713
+ items: {
2714
+ type: [
2715
+ "object"
2716
+ ],
2717
+ properties: {
2718
+ type: {
2719
+ "enum": [
2720
+ "string"
2721
+ ]
2722
+ }
2723
+ },
2724
+ additionalProperties: false,
2725
+ required: [
2726
+ "type"
2727
+ ]
2728
+ }
2729
+ },
2730
+ required: [
2731
+ "type"
2732
+ ]
2733
+ },
2734
+ apifyProxyCountry: {
2735
+ type: "object",
2736
+ additionalProperties: false,
2737
+ properties: {
2738
+ type: {
2739
+ "enum": [
2740
+ "string"
2741
+ ]
2742
+ },
2743
+ title: {
2744
+ type: "string"
2745
+ },
2746
+ description: {
2747
+ type: "string"
2748
+ },
2749
+ pattern: {
2750
+ type: "string"
2751
+ },
2752
+ minLength: {
2753
+ type: "integer"
2754
+ },
2755
+ maxLength: {
2756
+ type: "integer"
2757
+ }
2758
+ },
2759
+ required: [
2760
+ "type"
2761
+ ]
2762
+ }
2763
+ }
2764
+ }
2765
+ };
2766
+ var schema = {
2767
+ title: title,
2768
+ type: type,
2769
+ properties: properties,
2770
+ additionalProperties: additionalProperties,
2771
+ required: required,
2772
+ definitions: definitions
2773
+ };
2774
+
2775
+ type CommonFieldDefinition<T> = {
2776
+ title: string;
2777
+ description: string;
2778
+ default?: T;
2779
+ prefill?: T;
2780
+ example?: T;
2781
+ nullable?: boolean;
2782
+ sectionCaption?: string;
2783
+ sectionDescription?: string;
2784
+ };
2785
+ type StringFieldDefinition = CommonFieldDefinition<string> & {
2786
+ type: 'string';
2787
+ editor: 'textfield' | 'textarea' | 'javascript' | 'python' | 'select' | 'datepicker' | 'hidden' | 'json' | 'fileupload';
2788
+ pattern?: string;
2789
+ minLength?: number;
1187
2790
  maxLength?: number;
1188
2791
  enum?: readonly string[];
1189
2792
  enumTitles?: readonly string[];
@@ -1281,6 +2884,10 @@ declare function validateExistenceOfRequiredFields(inputSchema: InputSchema): vo
1281
2884
  * then checks that all required fields are present and finally checks fully against the whole schema.
1282
2885
  *
1283
2886
  * This way we get the most accurate error message for user.
2887
+ *
2888
+ * @param validator An instance of AJV validator. Important: The JSON Schema that the passed input schema is validated against
2889
+ * is using features from JSON Schema 2019 draft, so the AJV instance must support it.
2890
+ * @param inputSchema Input schema to validate.
1284
2891
  */
1285
2892
  declare function validateInputSchema(validator: Ajv, inputSchema: Record<string, unknown>): asserts inputSchema is InputSchema;
1286
2893
 
@@ -1305,5 +2912,6 @@ declare function validateInputUsingValidator(validator: ValidateFunction, inputS
1305
2912
  * stringified JSON except the first line with globalSpacing spaces.
1306
2913
  */
1307
2914
  declare function makeInputJsFieldsReadable(json: string, jsFields: string[], jsonSpacing?: number, globalSpacing?: number): string;
2915
+ declare function ensureAjvSupportsDraft2019(ajvInstance: Ajv$1): void;
1308
2916
 
1309
- export { type ArrayFieldDefinition, type BooleanFieldDefinition, type FieldDefinition, type InputSchema, type IntegerFieldDefinition, type MixedFieldDefinition, type ObjectFieldDefinition, type StringFieldDefinition, schema as inputSchema, m, makeInputJsFieldsReadable, parseAjvError, validateExistenceOfRequiredFields, validateInputSchema, validateInputUsingValidator };
2917
+ export { type ArrayFieldDefinition, type BooleanFieldDefinition, type FieldDefinition, type InputSchema, type IntegerFieldDefinition, type MixedFieldDefinition, type ObjectFieldDefinition, type StringFieldDefinition, ensureAjvSupportsDraft2019, schema as inputSchema, m, makeInputJsFieldsReadable, parseAjvError, validateExistenceOfRequiredFields, validateInputSchema, validateInputUsingValidator };