@eudiplo/cli 9.1.0-main.e69fe20 → 9.1.0-main.e70bc63

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.
Files changed (98) hide show
  1. package/dist/commands/config/index.d.ts.map +1 -1
  2. package/dist/commands/config/index.js +1 -1
  3. package/dist/commands/config/index.js.map +1 -1
  4. package/dist/commands/config/portability/action.d.ts.map +1 -1
  5. package/dist/commands/config/portability/action.js +129 -13
  6. package/dist/commands/config/portability/action.js.map +1 -1
  7. package/dist/commands/config/portability/folder-bundle.d.ts +60 -0
  8. package/dist/commands/config/portability/folder-bundle.d.ts.map +1 -0
  9. package/dist/commands/config/portability/folder-bundle.js +270 -0
  10. package/dist/commands/config/portability/folder-bundle.js.map +1 -0
  11. package/dist/commands/config/portability/folder-export.d.ts +22 -0
  12. package/dist/commands/config/portability/folder-export.d.ts.map +1 -0
  13. package/dist/commands/config/portability/folder-export.js +146 -0
  14. package/dist/commands/config/portability/folder-export.js.map +1 -0
  15. package/dist/commands/config/portability/index.d.ts.map +1 -1
  16. package/dist/commands/config/portability/index.js +8 -4
  17. package/dist/commands/config/portability/index.js.map +1 -1
  18. package/dist/commands/config/portability/migrations.spec.js +4 -2
  19. package/dist/commands/config/portability/migrations.spec.js.map +1 -1
  20. package/dist/commands/config/portability/upgrade.d.ts +2 -0
  21. package/dist/commands/config/portability/upgrade.d.ts.map +1 -1
  22. package/dist/commands/config/portability/upgrade.js +46 -17
  23. package/dist/commands/config/portability/upgrade.js.map +1 -1
  24. package/dist/commands/config/tenant/action.d.ts.map +1 -1
  25. package/dist/commands/config/tenant/action.js +3 -2
  26. package/dist/commands/config/tenant/action.js.map +1 -1
  27. package/dist/commands/config/validate/registry.d.ts +3 -0
  28. package/dist/commands/config/validate/registry.d.ts.map +1 -1
  29. package/dist/commands/config/validate/registry.js +5 -0
  30. package/dist/commands/config/validate/registry.js.map +1 -1
  31. package/dist/commands/config/validate/registry.json +5 -5
  32. package/dist/commands/config/validate/report.d.ts +4 -0
  33. package/dist/commands/config/validate/report.d.ts.map +1 -1
  34. package/dist/commands/config/validate/report.js +7 -0
  35. package/dist/commands/config/validate/report.js.map +1 -1
  36. package/dist/commands/config/validate/types.d.ts +6 -0
  37. package/dist/commands/config/validate/types.d.ts.map +1 -1
  38. package/dist/commands/config/validate/validator.d.ts +10 -1
  39. package/dist/commands/config/validate/validator.d.ts.map +1 -1
  40. package/dist/commands/config/validate/validator.js +52 -18
  41. package/dist/commands/config/validate/validator.js.map +1 -1
  42. package/dist/commands/init/action.js +1 -1
  43. package/dist/commands/init/action.js.map +1 -1
  44. package/dist/commands/status/action.js +1 -1
  45. package/dist/commands/status/action.js.map +1 -1
  46. package/dist/commands/version/action.d.ts.map +1 -1
  47. package/dist/commands/version/action.js.map +1 -1
  48. package/dist/index.js +21679 -6924
  49. package/dist/runtime.js +1 -1
  50. package/dist/runtime.js.map +1 -1
  51. package/dist/services/cli-config.d.ts.map +1 -1
  52. package/dist/services/cli-config.js +1 -1
  53. package/dist/services/cli-config.js.map +1 -1
  54. package/dist/services/compose-project.d.ts +6 -0
  55. package/dist/services/compose-project.d.ts.map +1 -1
  56. package/dist/services/compose-project.js +13 -2
  57. package/dist/services/compose-project.js.map +1 -1
  58. package/dist/services/deployment-drivers.d.ts.map +1 -1
  59. package/dist/services/deployment-drivers.js +3 -3
  60. package/dist/services/deployment-drivers.js.map +1 -1
  61. package/dist/services/diagnostics.d.ts.map +1 -1
  62. package/dist/services/diagnostics.js +1 -1
  63. package/dist/services/diagnostics.js.map +1 -1
  64. package/package.json +5 -5
  65. package/templates/demo-config/info.json +1 -1
  66. package/templates/demo-config/issuance/credentials/citizen.json +1 -1
  67. package/templates/demo-config/issuance/credentials/pid-key.json +1 -1
  68. package/templates/demo-config/issuance/credentials/pid-mdoc.json +1 -1
  69. package/templates/demo-config/issuance/credentials/pid.json +1 -1
  70. package/templates/demo-config/issuance/issuance.json +1 -1
  71. package/templates/demo-config/key-chains/access.json +1 -1
  72. package/templates/demo-config/key-chains/attestation.json +1 -1
  73. package/templates/demo-config/key-chains/status-list.json +1 -1
  74. package/templates/demo-config/key-chains/trust-list.json +1 -1
  75. package/templates/demo-config/presentation/age-over-18.json +1 -1
  76. package/templates/demo-config/presentation/pid.json +1 -1
  77. package/templates/demo-config/trust-lists/trustlist-580831bc-ef11-43f4-a3be-a2b6bf1b29a3-config.json +4 -2
  78. package/templates/docker-compose.yml +2 -2
  79. package/templates/schemas/CreateTenantDto.schema.json +3 -3
  80. package/templates/schemas/CredentialConfigCreate.schema.json +251 -15
  81. package/templates/schemas/CredentialConfigFile.schema.json +1823 -1
  82. package/templates/schemas/DCQL.schema.json +168 -52
  83. package/templates/schemas/ImportTenantDto.schema.json +0 -12
  84. package/templates/schemas/IssuanceConfig.schema.json +7 -20
  85. package/templates/schemas/IssuanceConfigFile.schema.json +1631 -1
  86. package/templates/schemas/KeyChainConfigFile.schema.json +371 -1
  87. package/templates/schemas/KeyChainCreateDto.schema.json +1 -0
  88. package/templates/schemas/KeyChainDefaultsConfigFile.schema.json +123 -0
  89. package/templates/schemas/KeyChainImportDto.schema.json +1 -0
  90. package/templates/schemas/PresentationConfigCreateDto.schema.json +214 -163
  91. package/templates/schemas/PresentationConfigFile.schema.json +1623 -1
  92. package/templates/schemas/TenantConfigFile.schema.json +139 -25
  93. package/templates/schemas/TrustListConfigFile.schema.json +263 -1
  94. package/templates/schemas/TrustListCreateDto.schema.json +556 -22
  95. package/templates/schemas/UpdateTenantDto.schema.json +0 -20
  96. package/templates/schemas.manifest.json +1 -2
  97. package/templates/schemas/CreateRegistrarConfigDto.schema.json +0 -90
  98. package/templates/schemas/RegistrarConfigFile.schema.json +0 -144
@@ -9,7 +9,7 @@
9
9
  "properties": {
10
10
  "$schema": {
11
11
  "type": "string",
12
- "const": "https://eudiplo.dev/schemas/v3/PresentationConfigFile.schema.json"
12
+ "const": "https://eudiplo.dev/schemas/v5/PresentationConfigFile.schema.json"
13
13
  },
14
14
  "metadata": {
15
15
  "type": "object",
@@ -1496,6 +1496,1628 @@
1496
1496
  "title": "PresentationConfigCreateDto"
1497
1497
  }
1498
1498
  }
1499
+ },
1500
+ {
1501
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1502
+ "$id": "https://eudiplo.dev/schemas/v3/PresentationConfigFile.schema.json",
1503
+ "title": "PresentationConfigFile",
1504
+ "type": "object",
1505
+ "properties": {
1506
+ "$schema": {
1507
+ "type": "string",
1508
+ "const": "https://eudiplo.dev/schemas/v3/PresentationConfigFile.schema.json"
1509
+ },
1510
+ "metadata": {
1511
+ "type": "object",
1512
+ "properties": {
1513
+ "generation": {
1514
+ "type": "integer",
1515
+ "minimum": 1,
1516
+ "description": "Monotonically increasing configuration generation."
1517
+ },
1518
+ "ownership": {
1519
+ "type": "string",
1520
+ "enum": [
1521
+ "unmanaged",
1522
+ "file-managed"
1523
+ ],
1524
+ "description": "Requested ownership recorded when the document is applied."
1525
+ }
1526
+ },
1527
+ "additionalProperties": false
1528
+ },
1529
+ "spec": {
1530
+ "allOf": [
1531
+ {
1532
+ "$ref": "#/$defs/PresentationConfigCreateDto"
1533
+ },
1534
+ {
1535
+ "type": "object",
1536
+ "required": [
1537
+ "id"
1538
+ ],
1539
+ "properties": {
1540
+ "id": {
1541
+ "type": "string",
1542
+ "minLength": 1
1543
+ }
1544
+ }
1545
+ }
1546
+ ]
1547
+ }
1548
+ },
1549
+ "required": [
1550
+ "$schema",
1551
+ "spec"
1552
+ ],
1553
+ "additionalProperties": false,
1554
+ "$defs": {
1555
+ "PresentationConfigCreateDto": {
1556
+ "type": "object",
1557
+ "properties": {
1558
+ "id": {
1559
+ "type": "string",
1560
+ "minLength": 1,
1561
+ "description": "Presentation configuration identifier."
1562
+ },
1563
+ "description": {
1564
+ "description": "Optional presentation configuration description.",
1565
+ "type": [
1566
+ "string",
1567
+ "null"
1568
+ ]
1569
+ },
1570
+ "lifeTime": {
1571
+ "description": "Presentation request lifetime in seconds.",
1572
+ "type": "integer",
1573
+ "minimum": 1,
1574
+ "maximum": 9007199254740991
1575
+ },
1576
+ "skewSeconds": {
1577
+ "description": "Clock skew tolerance in seconds.",
1578
+ "type": "integer",
1579
+ "minimum": 0,
1580
+ "maximum": 9007199254740991
1581
+ },
1582
+ "statusCheckMode": {
1583
+ "description": "Revocation/status check mode.",
1584
+ "type": "string",
1585
+ "enum": [
1586
+ "strict",
1587
+ "best_effort",
1588
+ "disabled"
1589
+ ]
1590
+ },
1591
+ "dcql_query": {
1592
+ "type": "object",
1593
+ "properties": {
1594
+ "credentials": {
1595
+ "minItems": 1,
1596
+ "type": "array",
1597
+ "items": {
1598
+ "oneOf": [
1599
+ {
1600
+ "type": "object",
1601
+ "properties": {
1602
+ "id": {
1603
+ "type": "string",
1604
+ "minLength": 1,
1605
+ "pattern": "^[A-Za-z0-9_-]+$",
1606
+ "description": "Credential query identifier."
1607
+ },
1608
+ "multiple": {
1609
+ "description": "Allow multiple matching credentials.",
1610
+ "type": "boolean"
1611
+ },
1612
+ "claim_sets": {
1613
+ "description": "Optional claim set constraints.",
1614
+ "type": "array",
1615
+ "items": {
1616
+ "type": "array",
1617
+ "items": {
1618
+ "type": "string"
1619
+ }
1620
+ }
1621
+ },
1622
+ "trusted_authorities": {
1623
+ "description": "Optional trusted authority constraints.",
1624
+ "type": "array",
1625
+ "items": {
1626
+ "oneOf": [
1627
+ {
1628
+ "type": "object",
1629
+ "properties": {
1630
+ "type": {
1631
+ "type": "string",
1632
+ "const": "etsi_tl",
1633
+ "description": "Trusted authority type discriminator for ETSI trust lists."
1634
+ },
1635
+ "values": {
1636
+ "type": "array",
1637
+ "items": {
1638
+ "type": "object",
1639
+ "properties": {
1640
+ "trustListId": {
1641
+ "description": "Optional trust list id reference.",
1642
+ "type": "string"
1643
+ },
1644
+ "url": {
1645
+ "description": "Optional trust list URL reference.",
1646
+ "anyOf": [
1647
+ {
1648
+ "type": "string",
1649
+ "format": "uri"
1650
+ },
1651
+ {
1652
+ "type": "string",
1653
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
1654
+ }
1655
+ ]
1656
+ },
1657
+ "verifierKey": {
1658
+ "description": "Optional verifier key material.",
1659
+ "type": "object",
1660
+ "propertyNames": {
1661
+ "type": "string"
1662
+ },
1663
+ "additionalProperties": {}
1664
+ },
1665
+ "verifierX509Der": {
1666
+ "description": "Optional verifier certificate in DER/base64 form.",
1667
+ "type": "string"
1668
+ }
1669
+ },
1670
+ "additionalProperties": false
1671
+ },
1672
+ "description": "Trust list references for ETSI TL verification."
1673
+ }
1674
+ },
1675
+ "required": [
1676
+ "type",
1677
+ "values"
1678
+ ],
1679
+ "additionalProperties": false
1680
+ },
1681
+ {
1682
+ "type": "object",
1683
+ "properties": {
1684
+ "type": {
1685
+ "type": "string",
1686
+ "const": "openid_federation",
1687
+ "description": "Trusted authority type discriminator for OpenID Federation."
1688
+ },
1689
+ "values": {
1690
+ "type": "array",
1691
+ "items": {
1692
+ "type": "string"
1693
+ },
1694
+ "description": "OpenID Federation authority identifiers."
1695
+ }
1696
+ },
1697
+ "required": [
1698
+ "type",
1699
+ "values"
1700
+ ],
1701
+ "additionalProperties": false
1702
+ }
1703
+ ]
1704
+ }
1705
+ },
1706
+ "format": {
1707
+ "type": "string",
1708
+ "const": "dc+sd-jwt",
1709
+ "description": "Credential format discriminator."
1710
+ },
1711
+ "meta": {
1712
+ "type": "object",
1713
+ "properties": {
1714
+ "vct_values": {
1715
+ "minItems": 1,
1716
+ "type": "array",
1717
+ "items": {
1718
+ "type": "string"
1719
+ },
1720
+ "description": "Accepted VCT values."
1721
+ }
1722
+ },
1723
+ "required": [
1724
+ "vct_values"
1725
+ ],
1726
+ "additionalProperties": false
1727
+ },
1728
+ "claims": {
1729
+ "description": "Optional claim-level constraints.",
1730
+ "type": "array",
1731
+ "items": {
1732
+ "type": "object",
1733
+ "properties": {
1734
+ "id": {
1735
+ "description": "Optional claim query id.",
1736
+ "type": "string"
1737
+ },
1738
+ "path": {
1739
+ "type": "array",
1740
+ "items": {
1741
+ "type": [
1742
+ "string",
1743
+ "number"
1744
+ ]
1745
+ },
1746
+ "description": "Path to the claim value in presented credentials."
1747
+ },
1748
+ "values": {
1749
+ "description": "Optional allowed values for the claim. A disclosed value must equal one of them in type and value.",
1750
+ "minItems": 1,
1751
+ "type": "array",
1752
+ "items": {
1753
+ "anyOf": [
1754
+ {
1755
+ "type": "string"
1756
+ },
1757
+ {
1758
+ "type": "integer",
1759
+ "minimum": -9007199254740991,
1760
+ "maximum": 9007199254740991
1761
+ },
1762
+ {
1763
+ "type": "boolean"
1764
+ }
1765
+ ]
1766
+ }
1767
+ }
1768
+ },
1769
+ "required": [
1770
+ "path"
1771
+ ],
1772
+ "additionalProperties": false
1773
+ }
1774
+ }
1775
+ },
1776
+ "required": [
1777
+ "id",
1778
+ "format",
1779
+ "meta"
1780
+ ],
1781
+ "additionalProperties": false
1782
+ },
1783
+ {
1784
+ "type": "object",
1785
+ "properties": {
1786
+ "id": {
1787
+ "type": "string",
1788
+ "minLength": 1,
1789
+ "pattern": "^[A-Za-z0-9_-]+$",
1790
+ "description": "Credential query identifier."
1791
+ },
1792
+ "multiple": {
1793
+ "description": "Allow multiple matching credentials.",
1794
+ "type": "boolean"
1795
+ },
1796
+ "claim_sets": {
1797
+ "description": "Optional claim set constraints.",
1798
+ "type": "array",
1799
+ "items": {
1800
+ "type": "array",
1801
+ "items": {
1802
+ "type": "string"
1803
+ }
1804
+ }
1805
+ },
1806
+ "trusted_authorities": {
1807
+ "description": "Optional trusted authority constraints.",
1808
+ "type": "array",
1809
+ "items": {
1810
+ "oneOf": [
1811
+ {
1812
+ "type": "object",
1813
+ "properties": {
1814
+ "type": {
1815
+ "type": "string",
1816
+ "const": "etsi_tl",
1817
+ "description": "Trusted authority type discriminator for ETSI trust lists."
1818
+ },
1819
+ "values": {
1820
+ "type": "array",
1821
+ "items": {
1822
+ "type": "object",
1823
+ "properties": {
1824
+ "trustListId": {
1825
+ "description": "Optional trust list id reference.",
1826
+ "type": "string"
1827
+ },
1828
+ "url": {
1829
+ "description": "Optional trust list URL reference.",
1830
+ "anyOf": [
1831
+ {
1832
+ "type": "string",
1833
+ "format": "uri"
1834
+ },
1835
+ {
1836
+ "type": "string",
1837
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
1838
+ }
1839
+ ]
1840
+ },
1841
+ "verifierKey": {
1842
+ "description": "Optional verifier key material.",
1843
+ "type": "object",
1844
+ "propertyNames": {
1845
+ "type": "string"
1846
+ },
1847
+ "additionalProperties": {}
1848
+ },
1849
+ "verifierX509Der": {
1850
+ "description": "Optional verifier certificate in DER/base64 form.",
1851
+ "type": "string"
1852
+ }
1853
+ },
1854
+ "additionalProperties": false
1855
+ },
1856
+ "description": "Trust list references for ETSI TL verification."
1857
+ }
1858
+ },
1859
+ "required": [
1860
+ "type",
1861
+ "values"
1862
+ ],
1863
+ "additionalProperties": false
1864
+ },
1865
+ {
1866
+ "type": "object",
1867
+ "properties": {
1868
+ "type": {
1869
+ "type": "string",
1870
+ "const": "openid_federation",
1871
+ "description": "Trusted authority type discriminator for OpenID Federation."
1872
+ },
1873
+ "values": {
1874
+ "type": "array",
1875
+ "items": {
1876
+ "type": "string"
1877
+ },
1878
+ "description": "OpenID Federation authority identifiers."
1879
+ }
1880
+ },
1881
+ "required": [
1882
+ "type",
1883
+ "values"
1884
+ ],
1885
+ "additionalProperties": false
1886
+ }
1887
+ ]
1888
+ }
1889
+ },
1890
+ "format": {
1891
+ "type": "string",
1892
+ "const": "mso_mdoc",
1893
+ "description": "Credential format discriminator."
1894
+ },
1895
+ "meta": {
1896
+ "type": "object",
1897
+ "properties": {
1898
+ "doctype_value": {
1899
+ "type": "string",
1900
+ "minLength": 1,
1901
+ "description": "Expected mDoc doctype value."
1902
+ }
1903
+ },
1904
+ "required": [
1905
+ "doctype_value"
1906
+ ],
1907
+ "additionalProperties": false
1908
+ },
1909
+ "claims": {
1910
+ "description": "Optional mDoc claim-level constraints.",
1911
+ "type": "array",
1912
+ "items": {
1913
+ "type": "object",
1914
+ "properties": {
1915
+ "id": {
1916
+ "description": "Optional claim query id.",
1917
+ "type": "string"
1918
+ },
1919
+ "path": {
1920
+ "type": "array",
1921
+ "items": {
1922
+ "type": [
1923
+ "string",
1924
+ "number"
1925
+ ]
1926
+ },
1927
+ "description": "Path to the claim value in presented credentials."
1928
+ },
1929
+ "values": {
1930
+ "description": "Optional allowed values for the claim. A disclosed value must equal one of them in type and value.",
1931
+ "minItems": 1,
1932
+ "type": "array",
1933
+ "items": {
1934
+ "anyOf": [
1935
+ {
1936
+ "type": "string"
1937
+ },
1938
+ {
1939
+ "type": "integer",
1940
+ "minimum": -9007199254740991,
1941
+ "maximum": 9007199254740991
1942
+ },
1943
+ {
1944
+ "type": "boolean"
1945
+ }
1946
+ ]
1947
+ }
1948
+ },
1949
+ "intent_to_retain": {
1950
+ "description": "Whether relying party intends to retain the claim.",
1951
+ "type": "boolean"
1952
+ }
1953
+ },
1954
+ "required": [
1955
+ "path"
1956
+ ],
1957
+ "additionalProperties": false
1958
+ }
1959
+ }
1960
+ },
1961
+ "required": [
1962
+ "id",
1963
+ "format",
1964
+ "meta"
1965
+ ],
1966
+ "additionalProperties": false
1967
+ }
1968
+ ]
1969
+ },
1970
+ "description": "Credential queries requested by the verifier."
1971
+ },
1972
+ "credential_sets": {
1973
+ "description": "Optional higher-level credential set requirements.",
1974
+ "type": "array",
1975
+ "items": {
1976
+ "type": "object",
1977
+ "properties": {
1978
+ "options": {
1979
+ "minItems": 1,
1980
+ "type": "array",
1981
+ "items": {
1982
+ "minItems": 1,
1983
+ "type": "array",
1984
+ "items": {
1985
+ "type": "string"
1986
+ }
1987
+ },
1988
+ "description": "Alternative credential query id combinations."
1989
+ },
1990
+ "required": {
1991
+ "description": "Whether this credential set is mandatory.",
1992
+ "type": "boolean"
1993
+ }
1994
+ },
1995
+ "required": [
1996
+ "options"
1997
+ ],
1998
+ "additionalProperties": false
1999
+ }
2000
+ }
2001
+ },
2002
+ "required": [
2003
+ "credentials"
2004
+ ],
2005
+ "additionalProperties": false,
2006
+ "description": "DCQL query defining requested credentials and claims."
2007
+ },
2008
+ "transaction_data": {
2009
+ "description": "Optional transaction data descriptors.",
2010
+ "anyOf": [
2011
+ {
2012
+ "type": "array",
2013
+ "items": {
2014
+ "type": "object",
2015
+ "properties": {
2016
+ "type": {
2017
+ "type": "string",
2018
+ "description": "Transaction data type identifier."
2019
+ },
2020
+ "credential_ids": {
2021
+ "type": "array",
2022
+ "items": {
2023
+ "type": "string"
2024
+ },
2025
+ "description": "Credential query ids this transaction data applies to."
2026
+ },
2027
+ "payload": {
2028
+ "description": "Transaction details. Required for TS12 SCA transaction data."
2029
+ }
2030
+ },
2031
+ "required": [
2032
+ "type",
2033
+ "credential_ids"
2034
+ ],
2035
+ "additionalProperties": {}
2036
+ }
2037
+ },
2038
+ {
2039
+ "type": "null"
2040
+ }
2041
+ ]
2042
+ },
2043
+ "registration_cert": {
2044
+ "description": "Optional registration certificate request settings.",
2045
+ "anyOf": [
2046
+ {
2047
+ "type": "object",
2048
+ "properties": {
2049
+ "id": {
2050
+ "type": "string"
2051
+ },
2052
+ "body": {
2053
+ "type": "object",
2054
+ "properties": {
2055
+ "privacy_policy": {
2056
+ "type": "string"
2057
+ },
2058
+ "support_uri": {
2059
+ "type": "string"
2060
+ },
2061
+ "intermediary": {
2062
+ "type": "string"
2063
+ },
2064
+ "purpose": {
2065
+ "type": "array",
2066
+ "items": {
2067
+ "type": "object",
2068
+ "properties": {
2069
+ "lang": {
2070
+ "type": "string"
2071
+ },
2072
+ "content": {
2073
+ "type": "string"
2074
+ }
2075
+ },
2076
+ "required": [
2077
+ "lang",
2078
+ "content"
2079
+ ],
2080
+ "additionalProperties": false
2081
+ }
2082
+ },
2083
+ "credentials": {
2084
+ "type": "array",
2085
+ "items": {
2086
+ "type": "object",
2087
+ "propertyNames": {
2088
+ "type": "string"
2089
+ },
2090
+ "additionalProperties": {}
2091
+ }
2092
+ },
2093
+ "provides_attestations": {
2094
+ "type": "array",
2095
+ "items": {
2096
+ "type": "string",
2097
+ "minLength": 1
2098
+ }
2099
+ }
2100
+ },
2101
+ "additionalProperties": false
2102
+ },
2103
+ "jwt": {
2104
+ "type": "string"
2105
+ }
2106
+ },
2107
+ "additionalProperties": false
2108
+ },
2109
+ {
2110
+ "type": "null"
2111
+ }
2112
+ ]
2113
+ },
2114
+ "registrationCertImportJwt": {
2115
+ "description": "Optional imported registration certificate JWT.",
2116
+ "type": [
2117
+ "string",
2118
+ "null"
2119
+ ]
2120
+ },
2121
+ "registrationCertImportId": {
2122
+ "description": "Optional registrar-side registration certificate id.",
2123
+ "type": [
2124
+ "string",
2125
+ "null"
2126
+ ]
2127
+ },
2128
+ "registrationCertBodyPrivacyPolicy": {
2129
+ "description": "Optional registration certificate privacy policy URI.",
2130
+ "type": [
2131
+ "string",
2132
+ "null"
2133
+ ]
2134
+ },
2135
+ "registrationCertBodySupportUri": {
2136
+ "description": "Optional registration certificate support URI.",
2137
+ "type": [
2138
+ "string",
2139
+ "null"
2140
+ ]
2141
+ },
2142
+ "registrationCertBodyIntermediary": {
2143
+ "description": "Optional registration certificate intermediary.",
2144
+ "type": [
2145
+ "string",
2146
+ "null"
2147
+ ]
2148
+ },
2149
+ "registrationCertBodyPurpose": {
2150
+ "description": "Optional registration certificate purpose entries.",
2151
+ "anyOf": [
2152
+ {
2153
+ "type": "array",
2154
+ "items": {
2155
+ "type": "object",
2156
+ "properties": {
2157
+ "lang": {
2158
+ "type": "string"
2159
+ },
2160
+ "content": {
2161
+ "type": "string"
2162
+ }
2163
+ },
2164
+ "additionalProperties": false
2165
+ }
2166
+ },
2167
+ {
2168
+ "type": "null"
2169
+ }
2170
+ ]
2171
+ },
2172
+ "webhookEndpointId": {
2173
+ "description": "Optional webhook endpoint id for presentation callbacks.",
2174
+ "type": [
2175
+ "string",
2176
+ "null"
2177
+ ]
2178
+ },
2179
+ "attached": {
2180
+ "description": "Optional attachments included with presentation requests.",
2181
+ "anyOf": [
2182
+ {
2183
+ "type": "array",
2184
+ "items": {
2185
+ "type": "object",
2186
+ "properties": {
2187
+ "format": {
2188
+ "type": "string",
2189
+ "description": "Attachment format identifier."
2190
+ },
2191
+ "data": {
2192
+ "description": "Attachment payload."
2193
+ },
2194
+ "credential_ids": {
2195
+ "description": "Optional credential query ids bound to this attachment.",
2196
+ "type": "array",
2197
+ "items": {
2198
+ "type": "string"
2199
+ }
2200
+ }
2201
+ },
2202
+ "required": [
2203
+ "format",
2204
+ "data"
2205
+ ],
2206
+ "additionalProperties": false
2207
+ }
2208
+ },
2209
+ {
2210
+ "type": "null"
2211
+ }
2212
+ ]
2213
+ },
2214
+ "redirectUri": {
2215
+ "description": "Optional redirect URI after presentation completion.",
2216
+ "type": [
2217
+ "string",
2218
+ "null"
2219
+ ]
2220
+ },
2221
+ "accessKeyChainId": {
2222
+ "description": "Optional key chain id for access token/auth operations.",
2223
+ "type": [
2224
+ "string",
2225
+ "null"
2226
+ ]
2227
+ },
2228
+ "readerAuth": {
2229
+ "description": "Whether reader authentication is required for mDoc requests.",
2230
+ "type": [
2231
+ "boolean",
2232
+ "null"
2233
+ ]
2234
+ }
2235
+ },
2236
+ "required": [
2237
+ "id",
2238
+ "dcql_query"
2239
+ ],
2240
+ "additionalProperties": false,
2241
+ "title": "PresentationConfigCreateDto"
2242
+ }
2243
+ }
2244
+ },
2245
+ {
2246
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2247
+ "$id": "https://eudiplo.dev/schemas/v4/PresentationConfigFile.schema.json",
2248
+ "title": "PresentationConfigFile",
2249
+ "type": "object",
2250
+ "properties": {
2251
+ "$schema": {
2252
+ "type": "string",
2253
+ "const": "https://eudiplo.dev/schemas/v4/PresentationConfigFile.schema.json"
2254
+ },
2255
+ "metadata": {
2256
+ "type": "object",
2257
+ "properties": {
2258
+ "generation": {
2259
+ "type": "integer",
2260
+ "minimum": 1,
2261
+ "description": "Monotonically increasing configuration generation."
2262
+ },
2263
+ "ownership": {
2264
+ "type": "string",
2265
+ "enum": [
2266
+ "unmanaged",
2267
+ "file-managed"
2268
+ ],
2269
+ "description": "Requested ownership recorded when the document is applied."
2270
+ }
2271
+ },
2272
+ "additionalProperties": false
2273
+ },
2274
+ "spec": {
2275
+ "allOf": [
2276
+ {
2277
+ "$ref": "#/$defs/PresentationConfigCreateDto"
2278
+ },
2279
+ {
2280
+ "type": "object",
2281
+ "required": [
2282
+ "id"
2283
+ ],
2284
+ "properties": {
2285
+ "id": {
2286
+ "type": "string",
2287
+ "minLength": 1
2288
+ }
2289
+ }
2290
+ }
2291
+ ]
2292
+ }
2293
+ },
2294
+ "required": [
2295
+ "$schema",
2296
+ "spec"
2297
+ ],
2298
+ "additionalProperties": false,
2299
+ "$defs": {
2300
+ "PresentationConfigCreateDto": {
2301
+ "type": "object",
2302
+ "properties": {
2303
+ "id": {
2304
+ "type": "string",
2305
+ "minLength": 1,
2306
+ "description": "Presentation configuration identifier."
2307
+ },
2308
+ "description": {
2309
+ "description": "Optional presentation configuration description.",
2310
+ "type": [
2311
+ "string",
2312
+ "null"
2313
+ ]
2314
+ },
2315
+ "lifeTime": {
2316
+ "description": "Presentation request lifetime in seconds.",
2317
+ "type": "integer",
2318
+ "minimum": 1,
2319
+ "maximum": 9007199254740991
2320
+ },
2321
+ "skewSeconds": {
2322
+ "description": "Clock skew tolerance in seconds.",
2323
+ "type": "integer",
2324
+ "minimum": 0,
2325
+ "maximum": 9007199254740991
2326
+ },
2327
+ "statusCheckMode": {
2328
+ "description": "Revocation/status check mode.",
2329
+ "type": "string",
2330
+ "enum": [
2331
+ "strict",
2332
+ "best_effort",
2333
+ "disabled"
2334
+ ]
2335
+ },
2336
+ "dcql_query": {
2337
+ "type": "object",
2338
+ "properties": {
2339
+ "credentials": {
2340
+ "minItems": 1,
2341
+ "type": "array",
2342
+ "items": {
2343
+ "oneOf": [
2344
+ {
2345
+ "type": "object",
2346
+ "properties": {
2347
+ "id": {
2348
+ "type": "string",
2349
+ "minLength": 1,
2350
+ "pattern": "^[A-Za-z0-9_-]+$",
2351
+ "description": "Credential query identifier."
2352
+ },
2353
+ "multiple": {
2354
+ "description": "Allow multiple matching credentials.",
2355
+ "type": "boolean"
2356
+ },
2357
+ "claim_sets": {
2358
+ "description": "Optional claim set constraints.",
2359
+ "type": "array",
2360
+ "items": {
2361
+ "type": "array",
2362
+ "items": {
2363
+ "type": "string"
2364
+ }
2365
+ }
2366
+ },
2367
+ "trusted_authorities": {
2368
+ "description": "Optional trusted authority constraints.",
2369
+ "type": "array",
2370
+ "items": {
2371
+ "oneOf": [
2372
+ {
2373
+ "type": "object",
2374
+ "properties": {
2375
+ "type": {
2376
+ "type": "string",
2377
+ "const": "etsi_tl",
2378
+ "description": "Trusted authority type discriminator for ETSI trust lists."
2379
+ },
2380
+ "values": {
2381
+ "type": "array",
2382
+ "items": {
2383
+ "anyOf": [
2384
+ {
2385
+ "type": "object",
2386
+ "properties": {
2387
+ "format": {
2388
+ "description": "Format of the list: a List of Trusted Entities (ETSI TS 119 602) as JWT. Default.",
2389
+ "type": "string",
2390
+ "const": "lote"
2391
+ },
2392
+ "trustListId": {
2393
+ "description": "Optional trust list id reference.",
2394
+ "type": "string"
2395
+ },
2396
+ "url": {
2397
+ "description": "Optional trust list URL reference.",
2398
+ "anyOf": [
2399
+ {
2400
+ "type": "string",
2401
+ "format": "uri"
2402
+ },
2403
+ {
2404
+ "type": "string",
2405
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
2406
+ }
2407
+ ]
2408
+ },
2409
+ "verifierKey": {
2410
+ "description": "Optional verifier key material.",
2411
+ "type": "object",
2412
+ "propertyNames": {
2413
+ "type": "string"
2414
+ },
2415
+ "additionalProperties": {}
2416
+ },
2417
+ "verifierX509Der": {
2418
+ "description": "Optional verifier certificate in DER/base64 form.",
2419
+ "type": "string"
2420
+ }
2421
+ },
2422
+ "additionalProperties": false
2423
+ },
2424
+ {
2425
+ "type": "object",
2426
+ "properties": {
2427
+ "format": {
2428
+ "type": "string",
2429
+ "const": "trusted-list",
2430
+ "description": "Format of the list: an ETSI TS 119 612 Trusted List or list of trusted lists as XML."
2431
+ },
2432
+ "url": {
2433
+ "anyOf": [
2434
+ {
2435
+ "type": "string",
2436
+ "format": "uri"
2437
+ },
2438
+ {
2439
+ "type": "string",
2440
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
2441
+ }
2442
+ ],
2443
+ "description": "URL of the Trusted List, or of a list of trusted lists (LOTL) whose national lists are followed."
2444
+ },
2445
+ "signingCertificates": {
2446
+ "minItems": 1,
2447
+ "type": "array",
2448
+ "items": {
2449
+ "type": "string",
2450
+ "minLength": 1,
2451
+ "pattern": "^[A-Za-z0-9+/\\s]+={0,2}$"
2452
+ },
2453
+ "description": "Base64 DER certificates one of which must have signed the list: for a list of trusted lists, the signing certificates its operator publishes; for a national list, its scheme operator certificates."
2454
+ },
2455
+ "schemeTerritories": {
2456
+ "description": "For a list of trusted lists: the SchemeTerritory values of the national lists to follow, such as DE. All when absent.",
2457
+ "minItems": 1,
2458
+ "type": "array",
2459
+ "items": {
2460
+ "type": "string",
2461
+ "minLength": 1
2462
+ }
2463
+ }
2464
+ },
2465
+ "required": [
2466
+ "format",
2467
+ "url",
2468
+ "signingCertificates"
2469
+ ],
2470
+ "additionalProperties": false
2471
+ }
2472
+ ],
2473
+ "description": "Reference to a trust list used for authority verification."
2474
+ },
2475
+ "description": "Trust list references for ETSI TL verification."
2476
+ }
2477
+ },
2478
+ "required": [
2479
+ "type",
2480
+ "values"
2481
+ ],
2482
+ "additionalProperties": false
2483
+ },
2484
+ {
2485
+ "type": "object",
2486
+ "properties": {
2487
+ "type": {
2488
+ "type": "string",
2489
+ "const": "openid_federation",
2490
+ "description": "Trusted authority type discriminator for OpenID Federation."
2491
+ },
2492
+ "values": {
2493
+ "type": "array",
2494
+ "items": {
2495
+ "type": "string"
2496
+ },
2497
+ "description": "OpenID Federation authority identifiers."
2498
+ }
2499
+ },
2500
+ "required": [
2501
+ "type",
2502
+ "values"
2503
+ ],
2504
+ "additionalProperties": false
2505
+ }
2506
+ ]
2507
+ }
2508
+ },
2509
+ "format": {
2510
+ "type": "string",
2511
+ "const": "dc+sd-jwt",
2512
+ "description": "Credential format discriminator."
2513
+ },
2514
+ "meta": {
2515
+ "type": "object",
2516
+ "properties": {
2517
+ "vct_values": {
2518
+ "minItems": 1,
2519
+ "type": "array",
2520
+ "items": {
2521
+ "type": "string"
2522
+ },
2523
+ "description": "Accepted VCT values."
2524
+ }
2525
+ },
2526
+ "required": [
2527
+ "vct_values"
2528
+ ],
2529
+ "additionalProperties": false
2530
+ },
2531
+ "claims": {
2532
+ "description": "Optional claim-level constraints.",
2533
+ "type": "array",
2534
+ "items": {
2535
+ "type": "object",
2536
+ "properties": {
2537
+ "id": {
2538
+ "description": "Optional claim query id.",
2539
+ "type": "string"
2540
+ },
2541
+ "path": {
2542
+ "type": "array",
2543
+ "items": {
2544
+ "type": [
2545
+ "string",
2546
+ "number"
2547
+ ]
2548
+ },
2549
+ "description": "Path to the claim value in presented credentials."
2550
+ },
2551
+ "values": {
2552
+ "description": "Optional allowed values for the claim. A disclosed value must equal one of them in type and value.",
2553
+ "minItems": 1,
2554
+ "type": "array",
2555
+ "items": {
2556
+ "anyOf": [
2557
+ {
2558
+ "type": "string"
2559
+ },
2560
+ {
2561
+ "type": "integer",
2562
+ "minimum": -9007199254740991,
2563
+ "maximum": 9007199254740991
2564
+ },
2565
+ {
2566
+ "type": "boolean"
2567
+ }
2568
+ ]
2569
+ }
2570
+ }
2571
+ },
2572
+ "required": [
2573
+ "path"
2574
+ ],
2575
+ "additionalProperties": false
2576
+ }
2577
+ }
2578
+ },
2579
+ "required": [
2580
+ "id",
2581
+ "format",
2582
+ "meta"
2583
+ ],
2584
+ "additionalProperties": false
2585
+ },
2586
+ {
2587
+ "type": "object",
2588
+ "properties": {
2589
+ "id": {
2590
+ "type": "string",
2591
+ "minLength": 1,
2592
+ "pattern": "^[A-Za-z0-9_-]+$",
2593
+ "description": "Credential query identifier."
2594
+ },
2595
+ "multiple": {
2596
+ "description": "Allow multiple matching credentials.",
2597
+ "type": "boolean"
2598
+ },
2599
+ "claim_sets": {
2600
+ "description": "Optional claim set constraints.",
2601
+ "type": "array",
2602
+ "items": {
2603
+ "type": "array",
2604
+ "items": {
2605
+ "type": "string"
2606
+ }
2607
+ }
2608
+ },
2609
+ "trusted_authorities": {
2610
+ "description": "Optional trusted authority constraints.",
2611
+ "type": "array",
2612
+ "items": {
2613
+ "oneOf": [
2614
+ {
2615
+ "type": "object",
2616
+ "properties": {
2617
+ "type": {
2618
+ "type": "string",
2619
+ "const": "etsi_tl",
2620
+ "description": "Trusted authority type discriminator for ETSI trust lists."
2621
+ },
2622
+ "values": {
2623
+ "type": "array",
2624
+ "items": {
2625
+ "anyOf": [
2626
+ {
2627
+ "type": "object",
2628
+ "properties": {
2629
+ "format": {
2630
+ "description": "Format of the list: a List of Trusted Entities (ETSI TS 119 602) as JWT. Default.",
2631
+ "type": "string",
2632
+ "const": "lote"
2633
+ },
2634
+ "trustListId": {
2635
+ "description": "Optional trust list id reference.",
2636
+ "type": "string"
2637
+ },
2638
+ "url": {
2639
+ "description": "Optional trust list URL reference.",
2640
+ "anyOf": [
2641
+ {
2642
+ "type": "string",
2643
+ "format": "uri"
2644
+ },
2645
+ {
2646
+ "type": "string",
2647
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
2648
+ }
2649
+ ]
2650
+ },
2651
+ "verifierKey": {
2652
+ "description": "Optional verifier key material.",
2653
+ "type": "object",
2654
+ "propertyNames": {
2655
+ "type": "string"
2656
+ },
2657
+ "additionalProperties": {}
2658
+ },
2659
+ "verifierX509Der": {
2660
+ "description": "Optional verifier certificate in DER/base64 form.",
2661
+ "type": "string"
2662
+ }
2663
+ },
2664
+ "additionalProperties": false
2665
+ },
2666
+ {
2667
+ "type": "object",
2668
+ "properties": {
2669
+ "format": {
2670
+ "type": "string",
2671
+ "const": "trusted-list",
2672
+ "description": "Format of the list: an ETSI TS 119 612 Trusted List or list of trusted lists as XML."
2673
+ },
2674
+ "url": {
2675
+ "anyOf": [
2676
+ {
2677
+ "type": "string",
2678
+ "format": "uri"
2679
+ },
2680
+ {
2681
+ "type": "string",
2682
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
2683
+ }
2684
+ ],
2685
+ "description": "URL of the Trusted List, or of a list of trusted lists (LOTL) whose national lists are followed."
2686
+ },
2687
+ "signingCertificates": {
2688
+ "minItems": 1,
2689
+ "type": "array",
2690
+ "items": {
2691
+ "type": "string",
2692
+ "minLength": 1,
2693
+ "pattern": "^[A-Za-z0-9+/\\s]+={0,2}$"
2694
+ },
2695
+ "description": "Base64 DER certificates one of which must have signed the list: for a list of trusted lists, the signing certificates its operator publishes; for a national list, its scheme operator certificates."
2696
+ },
2697
+ "schemeTerritories": {
2698
+ "description": "For a list of trusted lists: the SchemeTerritory values of the national lists to follow, such as DE. All when absent.",
2699
+ "minItems": 1,
2700
+ "type": "array",
2701
+ "items": {
2702
+ "type": "string",
2703
+ "minLength": 1
2704
+ }
2705
+ }
2706
+ },
2707
+ "required": [
2708
+ "format",
2709
+ "url",
2710
+ "signingCertificates"
2711
+ ],
2712
+ "additionalProperties": false
2713
+ }
2714
+ ],
2715
+ "description": "Reference to a trust list used for authority verification."
2716
+ },
2717
+ "description": "Trust list references for ETSI TL verification."
2718
+ }
2719
+ },
2720
+ "required": [
2721
+ "type",
2722
+ "values"
2723
+ ],
2724
+ "additionalProperties": false
2725
+ },
2726
+ {
2727
+ "type": "object",
2728
+ "properties": {
2729
+ "type": {
2730
+ "type": "string",
2731
+ "const": "openid_federation",
2732
+ "description": "Trusted authority type discriminator for OpenID Federation."
2733
+ },
2734
+ "values": {
2735
+ "type": "array",
2736
+ "items": {
2737
+ "type": "string"
2738
+ },
2739
+ "description": "OpenID Federation authority identifiers."
2740
+ }
2741
+ },
2742
+ "required": [
2743
+ "type",
2744
+ "values"
2745
+ ],
2746
+ "additionalProperties": false
2747
+ }
2748
+ ]
2749
+ }
2750
+ },
2751
+ "format": {
2752
+ "type": "string",
2753
+ "const": "mso_mdoc",
2754
+ "description": "Credential format discriminator."
2755
+ },
2756
+ "meta": {
2757
+ "type": "object",
2758
+ "properties": {
2759
+ "doctype_value": {
2760
+ "type": "string",
2761
+ "minLength": 1,
2762
+ "description": "Expected mDoc doctype value."
2763
+ }
2764
+ },
2765
+ "required": [
2766
+ "doctype_value"
2767
+ ],
2768
+ "additionalProperties": false
2769
+ },
2770
+ "claims": {
2771
+ "description": "Optional mDoc claim-level constraints.",
2772
+ "type": "array",
2773
+ "items": {
2774
+ "type": "object",
2775
+ "properties": {
2776
+ "id": {
2777
+ "description": "Optional claim query id.",
2778
+ "type": "string"
2779
+ },
2780
+ "path": {
2781
+ "type": "array",
2782
+ "items": {
2783
+ "type": [
2784
+ "string",
2785
+ "number"
2786
+ ]
2787
+ },
2788
+ "description": "Path to the claim value in presented credentials."
2789
+ },
2790
+ "values": {
2791
+ "description": "Optional allowed values for the claim. A disclosed value must equal one of them in type and value.",
2792
+ "minItems": 1,
2793
+ "type": "array",
2794
+ "items": {
2795
+ "anyOf": [
2796
+ {
2797
+ "type": "string"
2798
+ },
2799
+ {
2800
+ "type": "integer",
2801
+ "minimum": -9007199254740991,
2802
+ "maximum": 9007199254740991
2803
+ },
2804
+ {
2805
+ "type": "boolean"
2806
+ }
2807
+ ]
2808
+ }
2809
+ },
2810
+ "intent_to_retain": {
2811
+ "description": "Whether relying party intends to retain the claim.",
2812
+ "type": "boolean"
2813
+ }
2814
+ },
2815
+ "required": [
2816
+ "path"
2817
+ ],
2818
+ "additionalProperties": false
2819
+ }
2820
+ }
2821
+ },
2822
+ "required": [
2823
+ "id",
2824
+ "format",
2825
+ "meta"
2826
+ ],
2827
+ "additionalProperties": false
2828
+ }
2829
+ ]
2830
+ },
2831
+ "description": "Credential queries requested by the verifier."
2832
+ },
2833
+ "credential_sets": {
2834
+ "description": "Optional higher-level credential set requirements.",
2835
+ "type": "array",
2836
+ "items": {
2837
+ "type": "object",
2838
+ "properties": {
2839
+ "options": {
2840
+ "minItems": 1,
2841
+ "type": "array",
2842
+ "items": {
2843
+ "minItems": 1,
2844
+ "type": "array",
2845
+ "items": {
2846
+ "type": "string"
2847
+ }
2848
+ },
2849
+ "description": "Alternative credential query id combinations."
2850
+ },
2851
+ "required": {
2852
+ "description": "Whether this credential set is mandatory.",
2853
+ "type": "boolean"
2854
+ }
2855
+ },
2856
+ "required": [
2857
+ "options"
2858
+ ],
2859
+ "additionalProperties": false
2860
+ }
2861
+ }
2862
+ },
2863
+ "required": [
2864
+ "credentials"
2865
+ ],
2866
+ "additionalProperties": false,
2867
+ "description": "DCQL query defining requested credentials and claims."
2868
+ },
2869
+ "transaction_data": {
2870
+ "description": "Optional transaction data descriptors.",
2871
+ "anyOf": [
2872
+ {
2873
+ "type": "array",
2874
+ "items": {
2875
+ "type": "object",
2876
+ "properties": {
2877
+ "type": {
2878
+ "type": "string",
2879
+ "description": "Transaction data type identifier."
2880
+ },
2881
+ "credential_ids": {
2882
+ "type": "array",
2883
+ "items": {
2884
+ "type": "string"
2885
+ },
2886
+ "description": "Credential query ids this transaction data applies to."
2887
+ },
2888
+ "payload": {
2889
+ "description": "Transaction details. Required for TS12 SCA transaction data."
2890
+ }
2891
+ },
2892
+ "required": [
2893
+ "type",
2894
+ "credential_ids"
2895
+ ],
2896
+ "additionalProperties": {}
2897
+ }
2898
+ },
2899
+ {
2900
+ "type": "null"
2901
+ }
2902
+ ]
2903
+ },
2904
+ "registration_cert": {
2905
+ "description": "Optional registration certificate request settings.",
2906
+ "anyOf": [
2907
+ {
2908
+ "type": "object",
2909
+ "properties": {
2910
+ "id": {
2911
+ "type": "string"
2912
+ },
2913
+ "body": {
2914
+ "type": "object",
2915
+ "properties": {
2916
+ "privacy_policy": {
2917
+ "type": "string"
2918
+ },
2919
+ "support_uri": {
2920
+ "type": "string"
2921
+ },
2922
+ "intermediary": {
2923
+ "type": "string"
2924
+ },
2925
+ "purpose": {
2926
+ "type": "array",
2927
+ "items": {
2928
+ "type": "object",
2929
+ "properties": {
2930
+ "lang": {
2931
+ "type": "string"
2932
+ },
2933
+ "content": {
2934
+ "type": "string"
2935
+ }
2936
+ },
2937
+ "required": [
2938
+ "lang",
2939
+ "content"
2940
+ ],
2941
+ "additionalProperties": false
2942
+ }
2943
+ },
2944
+ "credentials": {
2945
+ "type": "array",
2946
+ "items": {
2947
+ "type": "object",
2948
+ "propertyNames": {
2949
+ "type": "string"
2950
+ },
2951
+ "additionalProperties": {}
2952
+ }
2953
+ },
2954
+ "provides_attestations": {
2955
+ "type": "array",
2956
+ "items": {
2957
+ "type": "string",
2958
+ "minLength": 1
2959
+ }
2960
+ }
2961
+ },
2962
+ "additionalProperties": false
2963
+ },
2964
+ "jwt": {
2965
+ "type": "string"
2966
+ }
2967
+ },
2968
+ "additionalProperties": false
2969
+ },
2970
+ {
2971
+ "type": "null"
2972
+ }
2973
+ ]
2974
+ },
2975
+ "registrationCertImportJwt": {
2976
+ "description": "Optional imported registration certificate JWT.",
2977
+ "type": [
2978
+ "string",
2979
+ "null"
2980
+ ]
2981
+ },
2982
+ "registrationCertImportId": {
2983
+ "description": "Optional registrar-side registration certificate id.",
2984
+ "type": [
2985
+ "string",
2986
+ "null"
2987
+ ]
2988
+ },
2989
+ "registrationCertBodyPrivacyPolicy": {
2990
+ "description": "Optional registration certificate privacy policy URI.",
2991
+ "type": [
2992
+ "string",
2993
+ "null"
2994
+ ]
2995
+ },
2996
+ "registrationCertBodySupportUri": {
2997
+ "description": "Optional registration certificate support URI.",
2998
+ "type": [
2999
+ "string",
3000
+ "null"
3001
+ ]
3002
+ },
3003
+ "registrationCertBodyIntermediary": {
3004
+ "description": "Optional registration certificate intermediary.",
3005
+ "type": [
3006
+ "string",
3007
+ "null"
3008
+ ]
3009
+ },
3010
+ "registrationCertBodyPurpose": {
3011
+ "description": "Optional registration certificate purpose entries.",
3012
+ "anyOf": [
3013
+ {
3014
+ "type": "array",
3015
+ "items": {
3016
+ "type": "object",
3017
+ "properties": {
3018
+ "lang": {
3019
+ "type": "string"
3020
+ },
3021
+ "content": {
3022
+ "type": "string"
3023
+ }
3024
+ },
3025
+ "additionalProperties": false
3026
+ }
3027
+ },
3028
+ {
3029
+ "type": "null"
3030
+ }
3031
+ ]
3032
+ },
3033
+ "webhookEndpointId": {
3034
+ "description": "Optional webhook endpoint id for presentation callbacks.",
3035
+ "type": [
3036
+ "string",
3037
+ "null"
3038
+ ]
3039
+ },
3040
+ "attached": {
3041
+ "description": "Optional attachments included with presentation requests.",
3042
+ "anyOf": [
3043
+ {
3044
+ "type": "array",
3045
+ "items": {
3046
+ "type": "object",
3047
+ "properties": {
3048
+ "format": {
3049
+ "type": "string",
3050
+ "description": "Attachment format identifier."
3051
+ },
3052
+ "data": {
3053
+ "description": "Attachment payload."
3054
+ },
3055
+ "credential_ids": {
3056
+ "description": "Optional credential query ids bound to this attachment.",
3057
+ "type": "array",
3058
+ "items": {
3059
+ "type": "string"
3060
+ }
3061
+ }
3062
+ },
3063
+ "required": [
3064
+ "format",
3065
+ "data"
3066
+ ],
3067
+ "additionalProperties": false
3068
+ }
3069
+ },
3070
+ {
3071
+ "type": "null"
3072
+ }
3073
+ ]
3074
+ },
3075
+ "redirectUri": {
3076
+ "description": "Optional redirect URI after presentation completion.",
3077
+ "type": [
3078
+ "string",
3079
+ "null"
3080
+ ]
3081
+ },
3082
+ "accessKeyChainId": {
3083
+ "description": "Optional key chain id for access token/auth operations.",
3084
+ "type": [
3085
+ "string",
3086
+ "null"
3087
+ ]
3088
+ },
3089
+ "allowedOrigins": {
3090
+ "description": "Origins (http(s)://host[:port]) of the web pages allowed to request this presentation over the Digital Credentials API. When set, dc-api and iso-18013-7 offers are refused for any other expected_origin, and an offer without expected_origin uses the only listed origin. Unset: any expected_origin is accepted. Not used for uri requests.",
3091
+ "anyOf": [
3092
+ {
3093
+ "maxItems": 100,
3094
+ "type": "array",
3095
+ "items": {
3096
+ "type": "string",
3097
+ "pattern": "^(?:https:\\/\\/(?:[a-z0-9.-]+|\\[[0-9a-f:.]+\\])(?::(?:[1-9]|[1-9][0-9]|[1-35-9][0-9]{2}|4[0-35-9][0-9]|44[0-24-9]|[1-9][0-9]{3,4}))?|http:\\/\\/(?:[a-z0-9.-]+|\\[[0-9a-f:.]+\\])(?::(?:[1-9]|[1-79][0-9]|8[1-9]|[1-9][0-9]{2,4}))?)$"
3098
+ }
3099
+ },
3100
+ {
3101
+ "type": "null"
3102
+ }
3103
+ ]
3104
+ },
3105
+ "readerAuth": {
3106
+ "description": "Whether reader authentication is required for mDoc requests.",
3107
+ "type": [
3108
+ "boolean",
3109
+ "null"
3110
+ ]
3111
+ }
3112
+ },
3113
+ "required": [
3114
+ "id",
3115
+ "dcql_query"
3116
+ ],
3117
+ "additionalProperties": false,
3118
+ "title": "PresentationConfigCreateDto"
3119
+ }
3120
+ }
1499
3121
  }
1500
3122
  ]
1501
3123
  }