-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdcql-vdx-openapi.yml
More file actions
280 lines (268 loc) · 11 KB
/
Copy pathdcql-vdx-openapi.yml
File metadata and controls
280 lines (268 loc) · 11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
openapi: 3.0.4
info:
title: OID4VP DCQL Query Configuration Admin API (Platform)
version: 0.1.0
description: >
Platform (VDX) administration layer for stored DCQL (Digital Credentials Query
Language) query configurations used by the OpenID4VP 1.0 verifier. This layer reuses
the full EDK enterprise surface (base CRUD plus authoring and version history) and adds
the multi-verifier binding surface: binding a DCQL query configuration to a verifier
instance, pinning a version, toggling and aliasing bindings, scheduling future
activations, and reverse-looking-up the verifier bindings that reference a configuration.
Authentication is an OIDC bearer (JWT) token; the tenant is resolved from that token.
The optional `X-Tenant-ID` and `X-User-ID` headers are impersonation hints only and are
never used for authentication or tenant resolution.
contact:
name: Sphereon International B.V.
email: support@sphereon.com
url: 'https://sphereon.com'
license:
name: Apache-2.0
url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: /api/dcql/v1
description: DCQL query configuration API base path.
security:
- bearer: []
tags:
- name: Queries
description: DCQL query configuration administration
- name: Bindings
description: Verifier-to-DCQL-query binding administration
paths:
# ── EDK enterprise surface (which itself reuses the IDK base), reused by path-item reference ──
/queries:
$ref: './dcql-edk-openapi.yml#/paths/~1queries'
/queries/{queryId}:
$ref: './dcql-edk-openapi.yml#/paths/~1queries~1{queryId}'
/queries/preview:
$ref: './dcql-edk-openapi.yml#/paths/~1queries~1preview'
/queries/authored:
$ref: './dcql-edk-openapi.yml#/paths/~1queries~1authored'
/queries/{queryId}/versions:
$ref: './dcql-edk-openapi.yml#/paths/~1queries~1{queryId}~1versions'
/queries/{queryId}/versions/{version}:
$ref: './dcql-edk-openapi.yml#/paths/~1queries~1{queryId}~1versions~1{version}'
/queries/{queryId}/versions/{version}/restore:
$ref: './dcql-edk-openapi.yml#/paths/~1queries~1{queryId}~1versions~1{version}~1restore'
# ── VDX verifier-binding surface ──
/queries/{queryId}/verifiers:
parameters:
- $ref: './dcql-components.yml#/components/parameters/QueryId'
get:
tags: [Bindings]
operationId: listDcqlBoundVerifiers
summary: List verifier bindings that reference a DCQL query configuration
description: >
Reverse lookup of the verifier bindings that reference the given configuration.
Returns an empty array in single-verifier deployments.
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
responses:
'200':
description: The verifier bindings referencing the configuration.
content:
application/json:
schema:
type: array
items:
$ref: './dcql-components.yml#/components/schemas/VerifierDcqlBinding'
'401':
$ref: './common-components.yml#/components/responses/Unauthorized'
'404':
$ref: './common-components.yml#/components/responses/NotFound'
/verifiers/{verifierId}/bindings:
parameters:
- $ref: './dcql-components.yml#/components/parameters/VerifierId'
get:
tags: [Bindings]
operationId: listVerifierDcqlBindings
summary: List a verifier's DCQL bindings
description: Lists the DCQL bindings for the given verifier.
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
responses:
'200':
description: The verifier's current bindings.
content:
application/json:
schema:
type: array
items:
$ref: './dcql-components.yml#/components/schemas/VerifierDcqlBinding'
'401':
$ref: './common-components.yml#/components/responses/Unauthorized'
'404':
$ref: './common-components.yml#/components/responses/NotFound'
post:
tags: [Bindings]
operationId: bindVerifierDcql
summary: Bind a DCQL query to a verifier
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
requestBody:
required: true
content:
application/json:
schema:
$ref: './dcql-components.yml#/components/schemas/BindVerifierDcqlRequest'
responses:
'201':
description: The created binding.
content:
application/json:
schema:
$ref: './dcql-components.yml#/components/schemas/VerifierDcqlBinding'
'400':
$ref: './common-components.yml#/components/responses/ValidationError'
'401':
$ref: './common-components.yml#/components/responses/Unauthorized'
'404':
$ref: './common-components.yml#/components/responses/NotFound'
/verifiers/{verifierId}/bindings/{queryId}:
parameters:
- $ref: './dcql-components.yml#/components/parameters/VerifierId'
- $ref: './dcql-components.yml#/components/parameters/QueryId'
get:
tags: [Bindings]
operationId: getVerifierDcqlBinding
summary: Read a verifier's binding for a DCQL query
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
responses:
'200':
description: The binding.
content:
application/json:
schema:
$ref: './dcql-components.yml#/components/schemas/VerifierDcqlBinding'
'401':
$ref: './common-components.yml#/components/responses/Unauthorized'
'404':
$ref: './common-components.yml#/components/responses/NotFound'
patch:
tags: [Bindings]
operationId: updateVerifierDcqlBinding
summary: Advance/roll back the pinned version, toggle enabled, or set the alias
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
requestBody:
required: true
content:
application/json:
schema:
$ref: './dcql-components.yml#/components/schemas/UpdateVerifierDcqlBindingRequest'
responses:
'200':
description: The updated binding.
content:
application/json:
schema:
$ref: './dcql-components.yml#/components/schemas/VerifierDcqlBinding'
'400':
$ref: './common-components.yml#/components/responses/ValidationError'
'401':
$ref: './common-components.yml#/components/responses/Unauthorized'
'404':
$ref: './common-components.yml#/components/responses/NotFound'
delete:
tags: [Bindings]
operationId: unbindVerifierDcql
summary: Unbind a DCQL query from a verifier
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
responses:
'200':
description: The binding that was removed.
content:
application/json:
schema:
$ref: './dcql-components.yml#/components/schemas/VerifierDcqlBinding'
'401':
$ref: './common-components.yml#/components/responses/Unauthorized'
'404':
$ref: './common-components.yml#/components/responses/NotFound'
/verifiers/{verifierId}/bindings/{queryId}/activations:
parameters:
- $ref: './dcql-components.yml#/components/parameters/VerifierId'
- $ref: './dcql-components.yml#/components/parameters/QueryId'
get:
tags: [Bindings]
operationId: listVerifierDcqlBindingActivations
summary: List the activations for a verifier's DCQL binding
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
responses:
'200':
description: The activations for the binding.
content:
application/json:
schema:
type: array
items:
$ref: './dcql-components.yml#/components/schemas/VerifierDcqlBindingActivation'
'401':
$ref: './common-components.yml#/components/responses/Unauthorized'
'404':
$ref: './common-components.yml#/components/responses/NotFound'
post:
tags: [Bindings]
operationId: activateVerifierDcqlBinding
summary: Activate a verifier's DCQL binding
description: Creates an activation that makes the binding effective for the verifier.
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
requestBody:
required: false
content:
application/json:
schema:
$ref: './dcql-components.yml#/components/schemas/ActivateVerifierDcqlBindingRequest'
responses:
'201':
description: The created activation.
content:
application/json:
schema:
$ref: './dcql-components.yml#/components/schemas/VerifierDcqlBindingActivation'
'400':
$ref: './common-components.yml#/components/responses/ValidationError'
'401':
$ref: './common-components.yml#/components/responses/Unauthorized'
'404':
$ref: './common-components.yml#/components/responses/NotFound'
/verifiers/{verifierId}/bindings/{queryId}/activations/{activationId}:
parameters:
- $ref: './dcql-components.yml#/components/parameters/VerifierId'
- $ref: './dcql-components.yml#/components/parameters/QueryId'
- $ref: './dcql-components.yml#/components/parameters/ActivationId'
delete:
tags: [Bindings]
operationId: deactivateVerifierDcqlBinding
summary: Deactivate a verifier's DCQL binding
parameters:
- $ref: './common-components.yml#/components/parameters/TenantId'
- $ref: './common-components.yml#/components/parameters/UserId'
responses:
'200':
description: The activation that was cancelled, with status CANCELLED.
content:
application/json:
schema:
$ref: './dcql-components.yml#/components/schemas/VerifierDcqlBindingActivation'
'401':
$ref: './common-components.yml#/components/responses/Unauthorized'
'404':
$ref: './common-components.yml#/components/responses/NotFound'
components:
securitySchemes:
bearer:
$ref: './common-components.yml#/components/securitySchemes/bearer'