@eudiplo/cli 9.1.0-main.e4e29b5 → 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 (138) hide show
  1. package/dist/commands/completion/action.js +3 -1
  2. package/dist/commands/completion/action.js.map +1 -1
  3. package/dist/commands/config/index.d.ts.map +1 -1
  4. package/dist/commands/config/index.js +1 -1
  5. package/dist/commands/config/index.js.map +1 -1
  6. package/dist/commands/config/portability/action.d.ts.map +1 -1
  7. package/dist/commands/config/portability/action.js +129 -13
  8. package/dist/commands/config/portability/action.js.map +1 -1
  9. package/dist/commands/config/portability/folder-bundle.d.ts +60 -0
  10. package/dist/commands/config/portability/folder-bundle.d.ts.map +1 -0
  11. package/dist/commands/config/portability/folder-bundle.js +270 -0
  12. package/dist/commands/config/portability/folder-bundle.js.map +1 -0
  13. package/dist/commands/config/portability/folder-export.d.ts +22 -0
  14. package/dist/commands/config/portability/folder-export.d.ts.map +1 -0
  15. package/dist/commands/config/portability/folder-export.js +146 -0
  16. package/dist/commands/config/portability/folder-export.js.map +1 -0
  17. package/dist/commands/config/portability/index.d.ts.map +1 -1
  18. package/dist/commands/config/portability/index.js +8 -4
  19. package/dist/commands/config/portability/index.js.map +1 -1
  20. package/dist/commands/config/portability/migrations.spec.js +6 -2
  21. package/dist/commands/config/portability/migrations.spec.js.map +1 -1
  22. package/dist/commands/config/portability/upgrade.d.ts +2 -0
  23. package/dist/commands/config/portability/upgrade.d.ts.map +1 -1
  24. package/dist/commands/config/portability/upgrade.js +51 -18
  25. package/dist/commands/config/portability/upgrade.js.map +1 -1
  26. package/dist/commands/config/tenant/action.d.ts.map +1 -1
  27. package/dist/commands/config/tenant/action.js +3 -2
  28. package/dist/commands/config/tenant/action.js.map +1 -1
  29. package/dist/commands/config/validate/action.d.ts.map +1 -1
  30. package/dist/commands/config/validate/action.js +2 -1
  31. package/dist/commands/config/validate/action.js.map +1 -1
  32. package/dist/commands/config/validate/registry.d.ts +3 -0
  33. package/dist/commands/config/validate/registry.d.ts.map +1 -1
  34. package/dist/commands/config/validate/registry.js +5 -0
  35. package/dist/commands/config/validate/registry.js.map +1 -1
  36. package/dist/commands/config/validate/registry.json +15 -5
  37. package/dist/commands/config/validate/report.d.ts +4 -0
  38. package/dist/commands/config/validate/report.d.ts.map +1 -1
  39. package/dist/commands/config/validate/report.js +7 -0
  40. package/dist/commands/config/validate/report.js.map +1 -1
  41. package/dist/commands/config/validate/types.d.ts +6 -0
  42. package/dist/commands/config/validate/types.d.ts.map +1 -1
  43. package/dist/commands/config/validate/validator.d.ts +10 -1
  44. package/dist/commands/config/validate/validator.d.ts.map +1 -1
  45. package/dist/commands/config/validate/validator.js +52 -18
  46. package/dist/commands/config/validate/validator.js.map +1 -1
  47. package/dist/commands/init/action.d.ts.map +1 -1
  48. package/dist/commands/init/action.js +1 -11
  49. package/dist/commands/init/action.js.map +1 -1
  50. package/dist/commands/instance/action.d.ts +2 -0
  51. package/dist/commands/instance/action.d.ts.map +1 -1
  52. package/dist/commands/instance/action.js +68 -12
  53. package/dist/commands/instance/action.js.map +1 -1
  54. package/dist/commands/instance/index.d.ts.map +1 -1
  55. package/dist/commands/instance/index.js +21 -3
  56. package/dist/commands/instance/index.js.map +1 -1
  57. package/dist/commands/open/action.d.ts.map +1 -1
  58. package/dist/commands/open/action.js +13 -2
  59. package/dist/commands/open/action.js.map +1 -1
  60. package/dist/commands/status/action.d.ts.map +1 -1
  61. package/dist/commands/status/action.js +2 -1
  62. package/dist/commands/status/action.js.map +1 -1
  63. package/dist/commands/version/action.d.ts.map +1 -1
  64. package/dist/commands/version/action.js.map +1 -1
  65. package/dist/index.js +26146 -6729
  66. package/dist/runtime.js +1 -1
  67. package/dist/runtime.js.map +1 -1
  68. package/dist/services/api-auth.d.ts.map +1 -1
  69. package/dist/services/api-auth.js +3 -2
  70. package/dist/services/api-auth.js.map +1 -1
  71. package/dist/services/browser.d.ts.map +1 -1
  72. package/dist/services/browser.js +3 -2
  73. package/dist/services/browser.js.map +1 -1
  74. package/dist/services/cli-config.d.ts +41 -1
  75. package/dist/services/cli-config.d.ts.map +1 -1
  76. package/dist/services/cli-config.js +218 -30
  77. package/dist/services/cli-config.js.map +1 -1
  78. package/dist/services/compose-project.d.ts +6 -0
  79. package/dist/services/compose-project.d.ts.map +1 -1
  80. package/dist/services/compose-project.js +13 -2
  81. package/dist/services/compose-project.js.map +1 -1
  82. package/dist/services/deployment-drivers.d.ts.map +1 -1
  83. package/dist/services/deployment-drivers.js +3 -3
  84. package/dist/services/deployment-drivers.js.map +1 -1
  85. package/dist/services/diagnostics.d.ts.map +1 -1
  86. package/dist/services/diagnostics.js +9 -8
  87. package/dist/services/diagnostics.js.map +1 -1
  88. package/dist/services/instance-selection.d.ts.map +1 -1
  89. package/dist/services/instance-selection.js +2 -5
  90. package/dist/services/instance-selection.js.map +1 -1
  91. package/dist/services/url.d.ts +21 -0
  92. package/dist/services/url.d.ts.map +1 -0
  93. package/dist/services/url.js +61 -0
  94. package/dist/services/url.js.map +1 -0
  95. package/package.json +7 -6
  96. package/templates/demo-config/clients/presentation-test.json +1 -1
  97. package/templates/demo-config/clients/test.json +6 -2
  98. package/templates/demo-config/info.json +1 -1
  99. package/templates/demo-config/issuance/credentials/citizen.json +1 -1
  100. package/templates/demo-config/issuance/credentials/pid-key.json +1 -1
  101. package/templates/demo-config/issuance/credentials/pid-mdoc.json +1 -1
  102. package/templates/demo-config/issuance/credentials/pid.json +1 -1
  103. package/templates/demo-config/issuance/issuance.json +1 -1
  104. package/templates/demo-config/key-chains/access.json +1 -1
  105. package/templates/demo-config/key-chains/attestation.json +3 -2
  106. package/templates/demo-config/key-chains/status-list.json +6 -5
  107. package/templates/demo-config/key-chains/trust-list.json +1 -1
  108. package/templates/demo-config/presentation/age-over-18.json +1 -1
  109. package/templates/demo-config/presentation/pid.json +1 -1
  110. package/templates/demo-config/trust-lists/trustlist-580831bc-ef11-43f4-a3be-a2b6bf1b29a3-config.json +4 -2
  111. package/templates/docker-compose.yml +2 -2
  112. package/templates/schemas/ClientConfigFile.schema.json +134 -1
  113. package/templates/schemas/CreateClientDto.schema.json +5 -1
  114. package/templates/schemas/CreateFederationTrustAnchorDto.schema.json +82 -0
  115. package/templates/schemas/CreateTenantDto.schema.json +8 -4
  116. package/templates/schemas/CredentialConfigCreate.schema.json +251 -15
  117. package/templates/schemas/CredentialConfigFile.schema.json +1823 -1
  118. package/templates/schemas/DCQL.schema.json +168 -52
  119. package/templates/schemas/{RegistrarConfigFile.schema.json → FederationTrustAnchorConfigFile.schema.json} +20 -4
  120. package/templates/schemas/IssuanceConfig.schema.json +125 -20
  121. package/templates/schemas/IssuanceConfigFile.schema.json +3064 -1
  122. package/templates/schemas/KeyChainConfigFile.schema.json +875 -119
  123. package/templates/schemas/KeyChainCreateDto.schema.json +12 -1
  124. package/templates/schemas/KeyChainDefaultsConfigFile.schema.json +123 -0
  125. package/templates/schemas/KeyChainImportDto.schema.json +10 -0
  126. package/templates/schemas/KmsConfigDto.schema.json +186 -0
  127. package/templates/schemas/KmsConfigFile.schema.json +1026 -1
  128. package/templates/schemas/PresentationConfigCreateDto.schema.json +214 -163
  129. package/templates/schemas/PresentationConfigFile.schema.json +1623 -1
  130. package/templates/schemas/RotationPolicyCreateDto.schema.json +1 -1
  131. package/templates/schemas/TenantConfigFile.schema.json +334 -64
  132. package/templates/schemas/TrustListConfigFile.schema.json +263 -1
  133. package/templates/schemas/TrustListCreateDto.schema.json +556 -22
  134. package/templates/schemas/UpdateClientDto.schema.json +5 -1
  135. package/templates/schemas/UpdateFederationTrustAnchorDto.schema.json +70 -0
  136. package/templates/schemas/UpdateStatusListConfigDto.schema.json +5 -5
  137. package/templates/schemas.manifest.json +4 -2
  138. package/templates/schemas/CreateRegistrarConfigDto.schema.json +0 -61
@@ -89,7 +89,7 @@ services:
89
89
  - eudiplo-network
90
90
 
91
91
  rustfs:
92
- image: rustfs/rustfs:1.0.0
92
+ image: rustfs/rustfs:1.0.3
93
93
  restart: always
94
94
  profiles: ['s3', 'standard', 'full']
95
95
  ports:
@@ -114,7 +114,7 @@ services:
114
114
 
115
115
  # S3 bucket initialization using the AWS CLI
116
116
  rustfs-init:
117
- image: amazon/aws-cli:2.37.4
117
+ image: amazon/aws-cli:2.38.5
118
118
  profiles: ['s3', 'standard', 'full']
119
119
  depends_on:
120
120
  rustfs:
@@ -9,7 +9,7 @@
9
9
  "properties": {
10
10
  "$schema": {
11
11
  "type": "string",
12
- "const": "https://eudiplo.dev/schemas/v1/ClientConfigFile.schema.json"
12
+ "const": "https://eudiplo.dev/schemas/v2/ClientConfigFile.schema.json"
13
13
  },
14
14
  "metadata": {
15
15
  "type": "object",
@@ -55,6 +55,139 @@
55
55
  "spec"
56
56
  ],
57
57
  "additionalProperties": false
58
+ },
59
+ {
60
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
61
+ "$id": "https://eudiplo.dev/schemas/v1/ClientConfigFile.schema.json",
62
+ "title": "ClientConfigFile",
63
+ "type": "object",
64
+ "properties": {
65
+ "$schema": {
66
+ "type": "string",
67
+ "const": "https://eudiplo.dev/schemas/v1/ClientConfigFile.schema.json"
68
+ },
69
+ "metadata": {
70
+ "type": "object",
71
+ "properties": {
72
+ "generation": {
73
+ "type": "integer",
74
+ "minimum": 1,
75
+ "description": "Monotonically increasing configuration generation."
76
+ },
77
+ "ownership": {
78
+ "type": "string",
79
+ "enum": [
80
+ "unmanaged",
81
+ "file-managed"
82
+ ],
83
+ "description": "Requested ownership recorded when the document is applied."
84
+ }
85
+ },
86
+ "additionalProperties": false
87
+ },
88
+ "spec": {
89
+ "allOf": [
90
+ {
91
+ "$ref": "#/$defs/CreateClientDto"
92
+ },
93
+ {
94
+ "type": "object",
95
+ "required": [
96
+ "clientId"
97
+ ],
98
+ "properties": {
99
+ "clientId": {
100
+ "type": "string",
101
+ "minLength": 1
102
+ }
103
+ }
104
+ }
105
+ ]
106
+ }
107
+ },
108
+ "required": [
109
+ "$schema",
110
+ "spec"
111
+ ],
112
+ "additionalProperties": false,
113
+ "$defs": {
114
+ "CreateClientDto": {
115
+ "type": "object",
116
+ "properties": {
117
+ "clientId": {
118
+ "type": "string",
119
+ "minLength": 1,
120
+ "pattern": "^[A-Za-z0-9._:-]+$",
121
+ "description": "Unique client identifier."
122
+ },
123
+ "secret": {
124
+ "description": "Optional client secret for confidential clients.",
125
+ "type": "string",
126
+ "minLength": 1
127
+ },
128
+ "description": {
129
+ "description": "Optional human-readable client description.",
130
+ "type": "string",
131
+ "minLength": 1
132
+ },
133
+ "roles": {
134
+ "minItems": 1,
135
+ "type": "array",
136
+ "items": {
137
+ "type": "string",
138
+ "enum": [
139
+ "presentation:manage",
140
+ "presentation:request",
141
+ "issuance:manage",
142
+ "issuance:offer",
143
+ "clients:manage",
144
+ "users:manage",
145
+ "tenants:manage",
146
+ "tenant:admin",
147
+ "registrar:manage"
148
+ ]
149
+ },
150
+ "description": "Roles assigned to the client. At least one role is required."
151
+ },
152
+ "allowedPresentationConfigs": {
153
+ "description": "Optional allow-list of presentation config ids this client can use.",
154
+ "anyOf": [
155
+ {
156
+ "type": "array",
157
+ "items": {
158
+ "type": "string",
159
+ "minLength": 1
160
+ }
161
+ },
162
+ {
163
+ "type": "null"
164
+ }
165
+ ]
166
+ },
167
+ "allowedIssuanceConfigs": {
168
+ "description": "Optional allow-list of issuance config ids this client can use.",
169
+ "anyOf": [
170
+ {
171
+ "type": "array",
172
+ "items": {
173
+ "type": "string",
174
+ "minLength": 1
175
+ }
176
+ },
177
+ {
178
+ "type": "null"
179
+ }
180
+ ]
181
+ }
182
+ },
183
+ "required": [
184
+ "clientId",
185
+ "roles"
186
+ ],
187
+ "additionalProperties": false,
188
+ "title": "CreateClientDto"
189
+ }
190
+ }
58
191
  }
59
192
  ]
60
193
  }
@@ -32,7 +32,11 @@
32
32
  "users:manage",
33
33
  "tenants:manage",
34
34
  "tenant:admin",
35
- "registrar:manage"
35
+ "registrar:manage",
36
+ "audit:read",
37
+ "sessions:read",
38
+ "credentials:status",
39
+ "keys:manage"
36
40
  ]
37
41
  },
38
42
  "description": "Roles assigned to the client. At least one role is required."
@@ -0,0 +1,82 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string",
7
+ "minLength": 1,
8
+ "maxLength": 255,
9
+ "pattern": "^[A-Za-z0-9._-]+$",
10
+ "description": "Unique identifier of the trust anchor in the tenant."
11
+ },
12
+ "entityId": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "maxLength": 2048,
16
+ "description": "Entity identifier of the trust anchor, exactly as configured in `federation.trustAnchors` and DCQL `openid_federation` values."
17
+ },
18
+ "description": {
19
+ "anyOf": [
20
+ {
21
+ "type": "string",
22
+ "minLength": 1,
23
+ "maxLength": 1000
24
+ },
25
+ {
26
+ "type": "null"
27
+ }
28
+ ],
29
+ "description": "Optional description of the trust anchor."
30
+ },
31
+ "jwks": {
32
+ "type": "object",
33
+ "properties": {
34
+ "keys": {
35
+ "minItems": 1,
36
+ "maxItems": 20,
37
+ "type": "array",
38
+ "items": {
39
+ "type": "object",
40
+ "properties": {
41
+ "kty": {
42
+ "type": "string",
43
+ "enum": [
44
+ "EC",
45
+ "RSA",
46
+ "OKP"
47
+ ],
48
+ "description": "Key type of the public federation key."
49
+ },
50
+ "kid": {
51
+ "type": "string",
52
+ "minLength": 1,
53
+ "maxLength": 256,
54
+ "description": "Key ID. Federation statements name their signing key with `kid`."
55
+ }
56
+ },
57
+ "required": [
58
+ "kty",
59
+ "kid"
60
+ ],
61
+ "additionalProperties": {},
62
+ "description": "Public federation key of the trust anchor as a JWK."
63
+ },
64
+ "description": "The trust anchor's federation keys."
65
+ }
66
+ },
67
+ "required": [
68
+ "keys"
69
+ ],
70
+ "additionalProperties": false,
71
+ "description": "JWK set with the federation keys of the trust anchor, obtained out of band (OpenID Federation 1.0 Section 10.2)."
72
+ }
73
+ },
74
+ "required": [
75
+ "id",
76
+ "entityId",
77
+ "jwks"
78
+ ],
79
+ "additionalProperties": false,
80
+ "$id": "./CreateFederationTrustAnchorDto.schema.json",
81
+ "title": "CreateFederationTrustAnchorDto"
82
+ }
@@ -4,8 +4,8 @@
4
4
  "properties": {
5
5
  "id": {
6
6
  "type": "string",
7
- "minLength": 1,
8
- "description": "Unique tenant identifier."
7
+ "pattern": "^[a-z0-9][a-z0-9_-]{0,62}$",
8
+ "description": "Unique tenant identifier: lowercase letters, digits, `-` and `_`, starting with a letter or digit, at most 63 characters. It is also the name of the tenant's configuration folder."
9
9
  },
10
10
  "name": {
11
11
  "default": "EUDIPLO",
@@ -19,7 +19,7 @@
19
19
  "minLength": 1
20
20
  },
21
21
  "roles": {
22
- "description": "Roles of the tenant's admin client `<id>-admin`, which also gets clients:manage. They are all that client can grant, unless they include tenant:admin. Without roles, no admin client is created.",
22
+ "description": "Roles of the tenant's admin client `<id>-admin`, which also gets clients:manage. They are all that client can grant, unless they include tenant:admin. Without roles, or with an empty list, no admin client is created.",
23
23
  "type": "array",
24
24
  "items": {
25
25
  "type": "string",
@@ -32,7 +32,11 @@
32
32
  "clients:manage",
33
33
  "users:manage",
34
34
  "registrar:manage",
35
- "tenant:admin"
35
+ "tenant:admin",
36
+ "audit:read",
37
+ "sessions:read",
38
+ "credentials:status",
39
+ "keys:manage"
36
40
  ]
37
41
  }
38
42
  },
@@ -33,24 +33,26 @@
33
33
  "locale": {
34
34
  "type": "string",
35
35
  "minLength": 1,
36
- "description": "Locale tag for the display entry."
36
+ "description": "Language tag of this entry, for example en-US. Each locale may appear once."
37
37
  },
38
38
  "name": {
39
39
  "type": "string",
40
40
  "minLength": 1,
41
- "description": "Human-readable field name."
41
+ "description": "Credential name shown by wallets."
42
42
  },
43
43
  "description": {
44
- "description": "Optional field description for this locale.",
44
+ "description": "Optional description of the credential for this locale.",
45
45
  "type": "string"
46
46
  },
47
47
  "background_color": {
48
- "description": "Optional background color for card-style rendering.",
49
- "type": "string"
48
+ "description": "Optional background color for card-style rendering, as a CSS Color Level 3 numerical value: #rgb, #rrggbb, transparent, or lowercase rgb(), rgba(), hsl() or hsla() with comma-separated values. Without it, wallets use their own.",
49
+ "type": "string",
50
+ "pattern": "^(?:#(?:[0-9a-fA-F]{3}){1,2}|rgb\\( *[+-]?\\d+ *, *[+-]?\\d+ *, *[+-]?\\d+ *\\)|rgb\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *\\)|rgba\\( *[+-]?\\d+ *, *[+-]?\\d+ *, *[+-]?\\d+ *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *\\)|rgba\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *\\)|hsl\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *\\)|hsla\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *\\)|transparent)$"
50
51
  },
51
52
  "text_color": {
52
- "description": "Optional text color for card-style rendering.",
53
- "type": "string"
53
+ "description": "Optional text color for card-style rendering, as a CSS Color Level 3 numerical value: #rgb, #rrggbb, transparent, or lowercase rgb(), rgba(), hsl() or hsla() with comma-separated values. Without it, wallets use their own.",
54
+ "type": "string",
55
+ "pattern": "^(?:#(?:[0-9a-fA-F]{3}){1,2}|rgb\\( *[+-]?\\d+ *, *[+-]?\\d+ *, *[+-]?\\d+ *\\)|rgb\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *\\)|rgba\\( *[+-]?\\d+ *, *[+-]?\\d+ *, *[+-]?\\d+ *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *\\)|rgba\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *\\)|hsl\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *\\)|hsla\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *\\)|transparent)$"
54
56
  },
55
57
  "background_image": {
56
58
  "description": "Optional background image.",
@@ -89,7 +91,7 @@
89
91
  ],
90
92
  "additionalProperties": false
91
93
  },
92
- "description": "Display metadata shown by wallets."
94
+ "description": "Display metadata shown by wallets, one entry per locale."
93
95
  },
94
96
  "scope": {
95
97
  "description": "Optional OAuth scope associated with this credential type.",
@@ -209,7 +211,7 @@
209
211
  ]
210
212
  },
211
213
  "webhookEndpointId": {
212
- "description": "Not used for notifications: they go to the webhook endpoint of the offer.",
214
+ "description": "Receives the wallet unit revocation webhook (revokeWithWalletUnit). Not used for notifications: they go to the webhook endpoint of the offer.",
213
215
  "type": [
214
216
  "string",
215
217
  "null"
@@ -302,6 +304,10 @@
302
304
  }
303
305
  ]
304
306
  },
307
+ "revokeWithWalletUnit": {
308
+ "description": "Revoke issued credentials when the wallet unit attestation (the key attestation of the proof) they were bound to is revoked. Requires statusManagement and config.keyAttestationsRequired.",
309
+ "type": "boolean"
310
+ },
305
311
  "iaeActions": {
306
312
  "description": "Interactive authorization steps (a presentation or a web flow) that the wallet completes, in order, before the credential is issued.",
307
313
  "anyOf": [
@@ -714,12 +720,8 @@
714
720
  }
715
721
  },
716
722
  "constraints": {
717
- "description": "Optional validation constraints for the claim value.",
718
- "type": "object",
719
- "propertyNames": {
720
- "type": "string"
721
- },
722
- "additionalProperties": {}
723
+ "description": "Optional JSON Schema 2020-12 validation keywords for the claim value. Only the JSON Schema keywords listed under Constraints in the claims documentation are accepted (validation keywords such as pattern, minLength or enum, subschemas such as items or properties, and annotations); other keys, such as format or $ref, are refused.",
724
+ "$ref": "#/$defs/ClaimConstraints"
723
725
  },
724
726
  "children": {
725
727
  "description": "Nested child claim definitions for object or array fields.",
@@ -734,6 +736,240 @@
734
736
  "type"
735
737
  ],
736
738
  "additionalProperties": false
739
+ },
740
+ "ClaimConstraints": {
741
+ "type": "object",
742
+ "properties": {
743
+ "type": {},
744
+ "enum": {},
745
+ "const": {},
746
+ "multipleOf": {},
747
+ "maximum": {},
748
+ "exclusiveMaximum": {},
749
+ "minimum": {},
750
+ "exclusiveMinimum": {},
751
+ "maxLength": {},
752
+ "minLength": {},
753
+ "pattern": {},
754
+ "maxItems": {},
755
+ "minItems": {},
756
+ "uniqueItems": {},
757
+ "maxContains": {},
758
+ "minContains": {},
759
+ "maxProperties": {},
760
+ "minProperties": {},
761
+ "required": {},
762
+ "dependentRequired": {},
763
+ "title": {},
764
+ "description": {},
765
+ "default": {},
766
+ "examples": {},
767
+ "deprecated": {},
768
+ "readOnly": {},
769
+ "writeOnly": {},
770
+ "$comment": {},
771
+ "items": {
772
+ "anyOf": [
773
+ {
774
+ "type": "boolean"
775
+ },
776
+ {
777
+ "$ref": "#/$defs/ClaimConstraints"
778
+ }
779
+ ]
780
+ },
781
+ "contains": {
782
+ "anyOf": [
783
+ {
784
+ "type": "boolean"
785
+ },
786
+ {
787
+ "$ref": "#/$defs/ClaimConstraints"
788
+ }
789
+ ]
790
+ },
791
+ "additionalProperties": {
792
+ "anyOf": [
793
+ {
794
+ "type": "boolean"
795
+ },
796
+ {
797
+ "$ref": "#/$defs/ClaimConstraints"
798
+ }
799
+ ]
800
+ },
801
+ "propertyNames": {
802
+ "anyOf": [
803
+ {
804
+ "type": "boolean"
805
+ },
806
+ {
807
+ "$ref": "#/$defs/ClaimConstraints"
808
+ }
809
+ ]
810
+ },
811
+ "not": {
812
+ "anyOf": [
813
+ {
814
+ "type": "boolean"
815
+ },
816
+ {
817
+ "$ref": "#/$defs/ClaimConstraints"
818
+ }
819
+ ]
820
+ },
821
+ "if": {
822
+ "anyOf": [
823
+ {
824
+ "type": "boolean"
825
+ },
826
+ {
827
+ "$ref": "#/$defs/ClaimConstraints"
828
+ }
829
+ ]
830
+ },
831
+ "then": {
832
+ "anyOf": [
833
+ {
834
+ "type": "boolean"
835
+ },
836
+ {
837
+ "$ref": "#/$defs/ClaimConstraints"
838
+ }
839
+ ]
840
+ },
841
+ "else": {
842
+ "anyOf": [
843
+ {
844
+ "type": "boolean"
845
+ },
846
+ {
847
+ "$ref": "#/$defs/ClaimConstraints"
848
+ }
849
+ ]
850
+ },
851
+ "unevaluatedItems": {
852
+ "anyOf": [
853
+ {
854
+ "type": "boolean"
855
+ },
856
+ {
857
+ "$ref": "#/$defs/ClaimConstraints"
858
+ }
859
+ ]
860
+ },
861
+ "unevaluatedProperties": {
862
+ "anyOf": [
863
+ {
864
+ "type": "boolean"
865
+ },
866
+ {
867
+ "$ref": "#/$defs/ClaimConstraints"
868
+ }
869
+ ]
870
+ },
871
+ "prefixItems": {
872
+ "type": "array",
873
+ "items": {
874
+ "anyOf": [
875
+ {
876
+ "type": "boolean"
877
+ },
878
+ {
879
+ "$ref": "#/$defs/ClaimConstraints"
880
+ }
881
+ ]
882
+ }
883
+ },
884
+ "allOf": {
885
+ "type": "array",
886
+ "items": {
887
+ "anyOf": [
888
+ {
889
+ "type": "boolean"
890
+ },
891
+ {
892
+ "$ref": "#/$defs/ClaimConstraints"
893
+ }
894
+ ]
895
+ }
896
+ },
897
+ "anyOf": {
898
+ "type": "array",
899
+ "items": {
900
+ "anyOf": [
901
+ {
902
+ "type": "boolean"
903
+ },
904
+ {
905
+ "$ref": "#/$defs/ClaimConstraints"
906
+ }
907
+ ]
908
+ }
909
+ },
910
+ "oneOf": {
911
+ "type": "array",
912
+ "items": {
913
+ "anyOf": [
914
+ {
915
+ "type": "boolean"
916
+ },
917
+ {
918
+ "$ref": "#/$defs/ClaimConstraints"
919
+ }
920
+ ]
921
+ }
922
+ },
923
+ "properties": {
924
+ "type": "object",
925
+ "propertyNames": {
926
+ "type": "string"
927
+ },
928
+ "additionalProperties": {
929
+ "anyOf": [
930
+ {
931
+ "type": "boolean"
932
+ },
933
+ {
934
+ "$ref": "#/$defs/ClaimConstraints"
935
+ }
936
+ ]
937
+ }
938
+ },
939
+ "patternProperties": {
940
+ "type": "object",
941
+ "propertyNames": {
942
+ "type": "string"
943
+ },
944
+ "additionalProperties": {
945
+ "anyOf": [
946
+ {
947
+ "type": "boolean"
948
+ },
949
+ {
950
+ "$ref": "#/$defs/ClaimConstraints"
951
+ }
952
+ ]
953
+ }
954
+ },
955
+ "dependentSchemas": {
956
+ "type": "object",
957
+ "propertyNames": {
958
+ "type": "string"
959
+ },
960
+ "additionalProperties": {
961
+ "anyOf": [
962
+ {
963
+ "type": "boolean"
964
+ },
965
+ {
966
+ "$ref": "#/$defs/ClaimConstraints"
967
+ }
968
+ ]
969
+ }
970
+ }
971
+ },
972
+ "additionalProperties": false
737
973
  }
738
974
  },
739
975
  "$id": "./CredentialConfigCreate.schema.json",