@eudiplo/sdk-core 9.1.0-main.db0db97 → 9.1.0-main.e7a42e0
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/dist/api/client.gen.d.mts +1 -1
- package/dist/api/client.gen.d.ts +1 -1
- package/dist/api/index.d.mts +3 -3
- package/dist/api/index.d.ts +3 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/{types.gen-DutIMATM.d.mts → types.gen-Dz2t37TR.d.mts} +238 -36
- package/dist/{types.gen-DutIMATM.d.ts → types.gen-Dz2t37TR.d.ts} +238 -36
- package/package.json +1 -1
|
@@ -1567,42 +1567,46 @@ type OfferRequestDto = {
|
|
|
1567
1567
|
};
|
|
1568
1568
|
type WebHookAuthConfigNone = {
|
|
1569
1569
|
/**
|
|
1570
|
-
*
|
|
1570
|
+
* Disable authentication.
|
|
1571
1571
|
*/
|
|
1572
1572
|
type: 'none';
|
|
1573
1573
|
};
|
|
1574
1574
|
type ApiKeyConfig = {
|
|
1575
1575
|
/**
|
|
1576
|
-
* The name
|
|
1576
|
+
* The header name used to send the API key.
|
|
1577
1577
|
*/
|
|
1578
1578
|
headerName: string;
|
|
1579
1579
|
/**
|
|
1580
|
-
* The
|
|
1580
|
+
* The API key value.
|
|
1581
1581
|
*/
|
|
1582
1582
|
value: string;
|
|
1583
1583
|
};
|
|
1584
1584
|
type WebHookAuthConfigHeader = {
|
|
1585
1585
|
/**
|
|
1586
|
-
*
|
|
1586
|
+
* Use API key authentication.
|
|
1587
1587
|
*/
|
|
1588
1588
|
type: 'apiKey';
|
|
1589
1589
|
/**
|
|
1590
|
-
*
|
|
1591
|
-
* This is required if the type is 'apiKey'.
|
|
1590
|
+
* API key authentication settings.
|
|
1592
1591
|
*/
|
|
1593
1592
|
config: ApiKeyConfig & {
|
|
1593
|
+
/**
|
|
1594
|
+
* The header name used to send the API key.
|
|
1595
|
+
*/
|
|
1594
1596
|
headerName?: string;
|
|
1597
|
+
/**
|
|
1598
|
+
* The API key value.
|
|
1599
|
+
*/
|
|
1595
1600
|
value?: string;
|
|
1596
1601
|
};
|
|
1597
1602
|
};
|
|
1598
1603
|
type WebhookConfig = {
|
|
1599
1604
|
/**
|
|
1600
|
-
*
|
|
1601
|
-
* If not provided, no authentication will be used.
|
|
1605
|
+
* Webhook authentication strategy.
|
|
1602
1606
|
*/
|
|
1603
1607
|
auth: WebHookAuthConfigNone | WebHookAuthConfigHeader;
|
|
1604
1608
|
/**
|
|
1605
|
-
* List of credential IDs to include raw tokens for (
|
|
1609
|
+
* List of credential IDs to include raw tokens for (for example ['sca_credential']).
|
|
1606
1610
|
*/
|
|
1607
1611
|
includeRawTokensFor?: Array<string>;
|
|
1608
1612
|
/**
|
|
@@ -1681,7 +1685,8 @@ type Session = {
|
|
|
1681
1685
|
*/
|
|
1682
1686
|
client_key_jkt?: string;
|
|
1683
1687
|
/**
|
|
1684
|
-
*
|
|
1688
|
+
* SHA-256 hash of the refresh token for the session, which is used to
|
|
1689
|
+
* obtain a new access token. The token itself is not stored.
|
|
1685
1690
|
*/
|
|
1686
1691
|
refresh_token?: string;
|
|
1687
1692
|
/**
|
|
@@ -1787,6 +1792,7 @@ type Session = {
|
|
|
1787
1792
|
redirectUri?: string | null;
|
|
1788
1793
|
/**
|
|
1789
1794
|
* Where to send the claims webhook response.
|
|
1795
|
+
* The webhook API key is encrypted at rest.
|
|
1790
1796
|
*/
|
|
1791
1797
|
parsedWebhook?: WebhookConfig;
|
|
1792
1798
|
/**
|
|
@@ -2230,19 +2236,19 @@ type WebhookEndpointEntity = {
|
|
|
2230
2236
|
};
|
|
2231
2237
|
type SchemaUriEntry = {
|
|
2232
2238
|
/**
|
|
2233
|
-
* Credential
|
|
2239
|
+
* Credential configuration whose schema EUDIPLO builds and uploads; `uri` and `meta` are not needed.
|
|
2234
2240
|
*/
|
|
2235
2241
|
credentialConfigId?: string;
|
|
2236
2242
|
/**
|
|
2237
|
-
* Attestation format
|
|
2243
|
+
* Attestation format of the schema, for example `dc+sd-jwt` or `mso_mdoc`. Required with `uri`; with `credentialConfigId`, the format of the configuration takes precedence.
|
|
2238
2244
|
*/
|
|
2239
2245
|
format?: string;
|
|
2240
2246
|
/**
|
|
2241
|
-
*
|
|
2247
|
+
* URL of a schema document that EUDIPLO downloads and uploads to the registrar. Requires `format` and `meta`.
|
|
2242
2248
|
*/
|
|
2243
2249
|
uri?: string;
|
|
2244
2250
|
/**
|
|
2245
|
-
*
|
|
2251
|
+
* Format-specific schema metadata, for example `{ "vct": "urn:example:vct" }` for `dc+sd-jwt`. Required with `uri`.
|
|
2246
2252
|
*/
|
|
2247
2253
|
meta?: {
|
|
2248
2254
|
[key: string]: unknown;
|
|
@@ -2250,19 +2256,19 @@ type SchemaUriEntry = {
|
|
|
2250
2256
|
};
|
|
2251
2257
|
type TrustAuthorityEntry = {
|
|
2252
2258
|
/**
|
|
2253
|
-
* Trust list
|
|
2259
|
+
* Trust list of the tenant. EUDIPLO publishes it as `etsi_tl` authority with its URL and the certificate of the trust list's key chain; the other fields are not needed.
|
|
2254
2260
|
*/
|
|
2255
2261
|
trustListId?: string;
|
|
2256
2262
|
/**
|
|
2257
|
-
* Trust framework
|
|
2263
|
+
* Trust framework of an external authority. `x509` takes a root certificate in `value` and no `verificationMethod`.
|
|
2258
2264
|
*/
|
|
2259
2265
|
frameworkType?: 'aki' | 'etsi_tl' | 'openid_federation' | 'x509';
|
|
2260
2266
|
/**
|
|
2261
|
-
*
|
|
2267
|
+
* Authority value, for example the trust list URL for `etsi_tl` or the base64 DER root certificate for `x509`.
|
|
2262
2268
|
*/
|
|
2263
2269
|
value?: string;
|
|
2264
2270
|
/**
|
|
2265
|
-
*
|
|
2271
|
+
* Verification material of an external authority, for example a JWK, as object or JSON string. Required, except for `x509` (must be omitted) and for a `value` that is a trust list URL of this tenant (EUDIPLO adds the certificate).
|
|
2266
2272
|
*/
|
|
2267
2273
|
verificationMethod?: {
|
|
2268
2274
|
[key: string]: unknown;
|
|
@@ -2270,47 +2276,71 @@ type TrustAuthorityEntry = {
|
|
|
2270
2276
|
};
|
|
2271
2277
|
type SchemaMetaConfig = {
|
|
2272
2278
|
/**
|
|
2273
|
-
*
|
|
2279
|
+
* Schema ID (attestation identifier URI). `publish` passes it to the registrar when set; `publish-version` requires the ID of the existing schema. With `credentialConfigId` and no `rulebookURI`, `publish` only links that credential configuration to this ID and uploads nothing.
|
|
2274
2280
|
*/
|
|
2275
2281
|
id?: string;
|
|
2276
2282
|
/**
|
|
2277
|
-
* Human-readable name
|
|
2283
|
+
* Human-readable name. Required when publishing; not needed for a link-only request.
|
|
2278
2284
|
*/
|
|
2279
2285
|
name?: string;
|
|
2280
2286
|
/**
|
|
2281
|
-
* Schema version
|
|
2287
|
+
* Schema version, for example `1.0.0`.
|
|
2282
2288
|
*/
|
|
2283
|
-
version
|
|
2289
|
+
version: string;
|
|
2284
2290
|
/**
|
|
2285
|
-
*
|
|
2291
|
+
* URL of the attestation rulebook, which EUDIPLO downloads and uploads to the registrar. Required when publishing.
|
|
2286
2292
|
*/
|
|
2287
2293
|
rulebookURI?: string;
|
|
2288
2294
|
/**
|
|
2289
|
-
* Attestation
|
|
2295
|
+
* Attestation level of security.
|
|
2290
2296
|
*/
|
|
2291
|
-
attestationLoS
|
|
2297
|
+
attestationLoS: 'iso_18045_high' | 'iso_18045_moderate' | 'iso_18045_enhanced-basic' | 'iso_18045_basic';
|
|
2292
2298
|
/**
|
|
2293
|
-
* Cryptographic binding type
|
|
2299
|
+
* Cryptographic binding type.
|
|
2294
2300
|
*/
|
|
2295
|
-
bindingType
|
|
2301
|
+
bindingType: 'claim' | 'key' | 'biometric' | 'none';
|
|
2296
2302
|
/**
|
|
2297
|
-
*
|
|
2303
|
+
* Schemas per attestation format. When omitted, the schema of `credentialConfigId` is used.
|
|
2298
2304
|
*/
|
|
2299
2305
|
schemaURIs?: Array<{
|
|
2306
|
+
/**
|
|
2307
|
+
* Credential configuration whose schema EUDIPLO builds and uploads; `uri` and `meta` are not needed.
|
|
2308
|
+
*/
|
|
2300
2309
|
credentialConfigId?: string;
|
|
2310
|
+
/**
|
|
2311
|
+
* Attestation format of the schema, for example `dc+sd-jwt` or `mso_mdoc`. Required with `uri`; with `credentialConfigId`, the format of the configuration takes precedence.
|
|
2312
|
+
*/
|
|
2301
2313
|
format?: string;
|
|
2314
|
+
/**
|
|
2315
|
+
* URL of a schema document that EUDIPLO downloads and uploads to the registrar. Requires `format` and `meta`.
|
|
2316
|
+
*/
|
|
2302
2317
|
uri?: string;
|
|
2318
|
+
/**
|
|
2319
|
+
* Format-specific schema metadata, for example `{ "vct": "urn:example:vct" }` for `dc+sd-jwt`. Required with `uri`.
|
|
2320
|
+
*/
|
|
2303
2321
|
meta?: {
|
|
2304
2322
|
[key: string]: unknown;
|
|
2305
2323
|
};
|
|
2306
2324
|
}>;
|
|
2307
2325
|
/**
|
|
2308
|
-
*
|
|
2326
|
+
* Trusted authorities for issuers of this attestation. Required when publishing: at least one entry must provide an X.509 certificate (`trustListId`, an `x509` entry or a `verificationMethod` with `x509Certificate`).
|
|
2309
2327
|
*/
|
|
2310
2328
|
trustedAuthorities?: Array<{
|
|
2329
|
+
/**
|
|
2330
|
+
* Trust list of the tenant. EUDIPLO publishes it as `etsi_tl` authority with its URL and the certificate of the trust list's key chain; the other fields are not needed.
|
|
2331
|
+
*/
|
|
2311
2332
|
trustListId?: string;
|
|
2333
|
+
/**
|
|
2334
|
+
* Trust framework of an external authority. `x509` takes a root certificate in `value` and no `verificationMethod`.
|
|
2335
|
+
*/
|
|
2312
2336
|
frameworkType?: 'aki' | 'etsi_tl' | 'openid_federation' | 'x509';
|
|
2337
|
+
/**
|
|
2338
|
+
* Authority value, for example the trust list URL for `etsi_tl` or the base64 DER root certificate for `x509`.
|
|
2339
|
+
*/
|
|
2313
2340
|
value?: string;
|
|
2341
|
+
/**
|
|
2342
|
+
* Verification material of an external authority, for example a JWK, as object or JSON string. Required, except for `x509` (must be omitted) and for a `value` that is a trust list URL of this tenant (EUDIPLO adds the certificate).
|
|
2343
|
+
*/
|
|
2314
2344
|
verificationMethod?: {
|
|
2315
2345
|
[key: string]: unknown;
|
|
2316
2346
|
} | string;
|
|
@@ -4071,16 +4101,40 @@ type AuthenticationUrlConfig = {
|
|
|
4071
4101
|
* Optional webhook configuration for authentication callbacks
|
|
4072
4102
|
*/
|
|
4073
4103
|
webhook?: WebhookConfig & {
|
|
4104
|
+
/**
|
|
4105
|
+
* The URL to which the webhook will send notifications.
|
|
4106
|
+
*/
|
|
4074
4107
|
url?: string;
|
|
4108
|
+
/**
|
|
4109
|
+
* Webhook authentication strategy.
|
|
4110
|
+
*/
|
|
4075
4111
|
auth?: {
|
|
4112
|
+
/**
|
|
4113
|
+
* Disable authentication.
|
|
4114
|
+
*/
|
|
4076
4115
|
type: 'none';
|
|
4077
4116
|
} | {
|
|
4117
|
+
/**
|
|
4118
|
+
* Use API key authentication.
|
|
4119
|
+
*/
|
|
4078
4120
|
type: 'apiKey';
|
|
4121
|
+
/**
|
|
4122
|
+
* API key authentication settings.
|
|
4123
|
+
*/
|
|
4079
4124
|
config: {
|
|
4125
|
+
/**
|
|
4126
|
+
* The header name used to send the API key.
|
|
4127
|
+
*/
|
|
4080
4128
|
headerName: string;
|
|
4129
|
+
/**
|
|
4130
|
+
* The API key value.
|
|
4131
|
+
*/
|
|
4081
4132
|
value: string;
|
|
4082
4133
|
};
|
|
4083
4134
|
};
|
|
4135
|
+
/**
|
|
4136
|
+
* List of credential IDs to include raw tokens for (for example ['sca_credential']).
|
|
4137
|
+
*/
|
|
4084
4138
|
includeRawTokensFor?: Array<string>;
|
|
4085
4139
|
};
|
|
4086
4140
|
};
|
|
@@ -4089,16 +4143,40 @@ type AuthenticationMethodAuth = {
|
|
|
4089
4143
|
config: AuthenticationUrlConfig & {
|
|
4090
4144
|
url?: string;
|
|
4091
4145
|
webhook?: {
|
|
4146
|
+
/**
|
|
4147
|
+
* The URL to which the webhook will send notifications.
|
|
4148
|
+
*/
|
|
4092
4149
|
url: string;
|
|
4150
|
+
/**
|
|
4151
|
+
* Webhook authentication strategy.
|
|
4152
|
+
*/
|
|
4093
4153
|
auth: {
|
|
4154
|
+
/**
|
|
4155
|
+
* Disable authentication.
|
|
4156
|
+
*/
|
|
4094
4157
|
type: 'none';
|
|
4095
4158
|
} | {
|
|
4159
|
+
/**
|
|
4160
|
+
* Use API key authentication.
|
|
4161
|
+
*/
|
|
4096
4162
|
type: 'apiKey';
|
|
4163
|
+
/**
|
|
4164
|
+
* API key authentication settings.
|
|
4165
|
+
*/
|
|
4097
4166
|
config: {
|
|
4167
|
+
/**
|
|
4168
|
+
* The header name used to send the API key.
|
|
4169
|
+
*/
|
|
4098
4170
|
headerName: string;
|
|
4171
|
+
/**
|
|
4172
|
+
* The API key value.
|
|
4173
|
+
*/
|
|
4099
4174
|
value: string;
|
|
4100
4175
|
};
|
|
4101
4176
|
};
|
|
4177
|
+
/**
|
|
4178
|
+
* List of credential IDs to include raw tokens for (for example ['sca_credential']).
|
|
4179
|
+
*/
|
|
4102
4180
|
includeRawTokensFor?: Array<string>;
|
|
4103
4181
|
};
|
|
4104
4182
|
};
|
|
@@ -4591,35 +4669,83 @@ type SignSchemaMetaConfigDto = {
|
|
|
4591
4669
|
* The schema metadata configuration to submit. Registrar builds and signs the final schema metadata.
|
|
4592
4670
|
*/
|
|
4593
4671
|
config: SchemaMetaConfig & {
|
|
4672
|
+
/**
|
|
4673
|
+
* Schema ID (attestation identifier URI). `publish` passes it to the registrar when set; `publish-version` requires the ID of the existing schema. With `credentialConfigId` and no `rulebookURI`, `publish` only links that credential configuration to this ID and uploads nothing.
|
|
4674
|
+
*/
|
|
4594
4675
|
id?: string;
|
|
4676
|
+
/**
|
|
4677
|
+
* Human-readable name. Required when publishing; not needed for a link-only request.
|
|
4678
|
+
*/
|
|
4595
4679
|
name?: string;
|
|
4680
|
+
/**
|
|
4681
|
+
* Schema version, for example `1.0.0`.
|
|
4682
|
+
*/
|
|
4596
4683
|
version?: string;
|
|
4684
|
+
/**
|
|
4685
|
+
* URL of the attestation rulebook, which EUDIPLO downloads and uploads to the registrar. Required when publishing.
|
|
4686
|
+
*/
|
|
4597
4687
|
rulebookURI?: string;
|
|
4688
|
+
/**
|
|
4689
|
+
* Attestation level of security.
|
|
4690
|
+
*/
|
|
4598
4691
|
attestationLoS?: 'iso_18045_high' | 'iso_18045_moderate' | 'iso_18045_enhanced-basic' | 'iso_18045_basic';
|
|
4692
|
+
/**
|
|
4693
|
+
* Cryptographic binding type.
|
|
4694
|
+
*/
|
|
4599
4695
|
bindingType?: 'claim' | 'key' | 'biometric' | 'none';
|
|
4696
|
+
/**
|
|
4697
|
+
* Schemas per attestation format. When omitted, the schema of `credentialConfigId` is used.
|
|
4698
|
+
*/
|
|
4600
4699
|
schemaURIs?: Array<{
|
|
4700
|
+
/**
|
|
4701
|
+
* Credential configuration whose schema EUDIPLO builds and uploads; `uri` and `meta` are not needed.
|
|
4702
|
+
*/
|
|
4601
4703
|
credentialConfigId?: string;
|
|
4704
|
+
/**
|
|
4705
|
+
* Attestation format of the schema, for example `dc+sd-jwt` or `mso_mdoc`. Required with `uri`; with `credentialConfigId`, the format of the configuration takes precedence.
|
|
4706
|
+
*/
|
|
4602
4707
|
format?: string;
|
|
4708
|
+
/**
|
|
4709
|
+
* URL of a schema document that EUDIPLO downloads and uploads to the registrar. Requires `format` and `meta`.
|
|
4710
|
+
*/
|
|
4603
4711
|
uri?: string;
|
|
4712
|
+
/**
|
|
4713
|
+
* Format-specific schema metadata, for example `{ "vct": "urn:example:vct" }` for `dc+sd-jwt`. Required with `uri`.
|
|
4714
|
+
*/
|
|
4604
4715
|
meta?: {
|
|
4605
4716
|
[key: string]: unknown;
|
|
4606
4717
|
};
|
|
4607
4718
|
}>;
|
|
4719
|
+
/**
|
|
4720
|
+
* Trusted authorities for issuers of this attestation. Required when publishing: at least one entry must provide an X.509 certificate (`trustListId`, an `x509` entry or a `verificationMethod` with `x509Certificate`).
|
|
4721
|
+
*/
|
|
4608
4722
|
trustedAuthorities?: Array<{
|
|
4723
|
+
/**
|
|
4724
|
+
* Trust list of the tenant. EUDIPLO publishes it as `etsi_tl` authority with its URL and the certificate of the trust list's key chain; the other fields are not needed.
|
|
4725
|
+
*/
|
|
4609
4726
|
trustListId?: string;
|
|
4727
|
+
/**
|
|
4728
|
+
* Trust framework of an external authority. `x509` takes a root certificate in `value` and no `verificationMethod`.
|
|
4729
|
+
*/
|
|
4610
4730
|
frameworkType?: 'aki' | 'etsi_tl' | 'openid_federation' | 'x509';
|
|
4731
|
+
/**
|
|
4732
|
+
* Authority value, for example the trust list URL for `etsi_tl` or the base64 DER root certificate for `x509`.
|
|
4733
|
+
*/
|
|
4611
4734
|
value?: string;
|
|
4735
|
+
/**
|
|
4736
|
+
* Verification material of an external authority, for example a JWK, as object or JSON string. Required, except for `x509` (must be omitted) and for a `value` that is a trust list URL of this tenant (EUDIPLO adds the certificate).
|
|
4737
|
+
*/
|
|
4612
4738
|
verificationMethod?: {
|
|
4613
4739
|
[key: string]: unknown;
|
|
4614
4740
|
} | string;
|
|
4615
4741
|
}>;
|
|
4616
4742
|
};
|
|
4617
4743
|
/**
|
|
4618
|
-
*
|
|
4744
|
+
* Credential configuration to link to the published schema metadata ID.
|
|
4619
4745
|
*/
|
|
4620
4746
|
credentialConfigId?: string;
|
|
4621
4747
|
/**
|
|
4622
|
-
* How to update
|
|
4748
|
+
* How to update the schema metadata pin of `credentialConfigId`: `keep_current` (default) keeps a pin to the same ID, `update_to_new_version` updates the pinned version under the same ID, `replace_id` repoints the pin to the new ID. A configuration without a pin is always linked. If it is pinned to another ID, only `replace_id` succeeds; the others answer `400` after the schema metadata was published.
|
|
4623
4749
|
*/
|
|
4624
4750
|
pinMode?: 'keep_current' | 'update_to_new_version' | 'replace_id';
|
|
4625
4751
|
};
|
|
@@ -4628,35 +4754,83 @@ type SignVersionSchemaMetaConfigDto = {
|
|
|
4628
4754
|
* The schema metadata configuration to submit as a new version. Must include the existing id.
|
|
4629
4755
|
*/
|
|
4630
4756
|
config: SchemaMetaConfig & {
|
|
4757
|
+
/**
|
|
4758
|
+
* Schema ID (attestation identifier URI). `publish` passes it to the registrar when set; `publish-version` requires the ID of the existing schema. With `credentialConfigId` and no `rulebookURI`, `publish` only links that credential configuration to this ID and uploads nothing.
|
|
4759
|
+
*/
|
|
4631
4760
|
id?: string;
|
|
4761
|
+
/**
|
|
4762
|
+
* Human-readable name. Required when publishing; not needed for a link-only request.
|
|
4763
|
+
*/
|
|
4632
4764
|
name?: string;
|
|
4765
|
+
/**
|
|
4766
|
+
* Schema version, for example `1.0.0`.
|
|
4767
|
+
*/
|
|
4633
4768
|
version?: string;
|
|
4769
|
+
/**
|
|
4770
|
+
* URL of the attestation rulebook, which EUDIPLO downloads and uploads to the registrar. Required when publishing.
|
|
4771
|
+
*/
|
|
4634
4772
|
rulebookURI?: string;
|
|
4773
|
+
/**
|
|
4774
|
+
* Attestation level of security.
|
|
4775
|
+
*/
|
|
4635
4776
|
attestationLoS?: 'iso_18045_high' | 'iso_18045_moderate' | 'iso_18045_enhanced-basic' | 'iso_18045_basic';
|
|
4777
|
+
/**
|
|
4778
|
+
* Cryptographic binding type.
|
|
4779
|
+
*/
|
|
4636
4780
|
bindingType?: 'claim' | 'key' | 'biometric' | 'none';
|
|
4781
|
+
/**
|
|
4782
|
+
* Schemas per attestation format. When omitted, the schema of `credentialConfigId` is used.
|
|
4783
|
+
*/
|
|
4637
4784
|
schemaURIs?: Array<{
|
|
4785
|
+
/**
|
|
4786
|
+
* Credential configuration whose schema EUDIPLO builds and uploads; `uri` and `meta` are not needed.
|
|
4787
|
+
*/
|
|
4638
4788
|
credentialConfigId?: string;
|
|
4789
|
+
/**
|
|
4790
|
+
* Attestation format of the schema, for example `dc+sd-jwt` or `mso_mdoc`. Required with `uri`; with `credentialConfigId`, the format of the configuration takes precedence.
|
|
4791
|
+
*/
|
|
4639
4792
|
format?: string;
|
|
4793
|
+
/**
|
|
4794
|
+
* URL of a schema document that EUDIPLO downloads and uploads to the registrar. Requires `format` and `meta`.
|
|
4795
|
+
*/
|
|
4640
4796
|
uri?: string;
|
|
4797
|
+
/**
|
|
4798
|
+
* Format-specific schema metadata, for example `{ "vct": "urn:example:vct" }` for `dc+sd-jwt`. Required with `uri`.
|
|
4799
|
+
*/
|
|
4641
4800
|
meta?: {
|
|
4642
4801
|
[key: string]: unknown;
|
|
4643
4802
|
};
|
|
4644
4803
|
}>;
|
|
4804
|
+
/**
|
|
4805
|
+
* Trusted authorities for issuers of this attestation. Required when publishing: at least one entry must provide an X.509 certificate (`trustListId`, an `x509` entry or a `verificationMethod` with `x509Certificate`).
|
|
4806
|
+
*/
|
|
4645
4807
|
trustedAuthorities?: Array<{
|
|
4808
|
+
/**
|
|
4809
|
+
* Trust list of the tenant. EUDIPLO publishes it as `etsi_tl` authority with its URL and the certificate of the trust list's key chain; the other fields are not needed.
|
|
4810
|
+
*/
|
|
4646
4811
|
trustListId?: string;
|
|
4812
|
+
/**
|
|
4813
|
+
* Trust framework of an external authority. `x509` takes a root certificate in `value` and no `verificationMethod`.
|
|
4814
|
+
*/
|
|
4647
4815
|
frameworkType?: 'aki' | 'etsi_tl' | 'openid_federation' | 'x509';
|
|
4816
|
+
/**
|
|
4817
|
+
* Authority value, for example the trust list URL for `etsi_tl` or the base64 DER root certificate for `x509`.
|
|
4818
|
+
*/
|
|
4648
4819
|
value?: string;
|
|
4820
|
+
/**
|
|
4821
|
+
* Verification material of an external authority, for example a JWK, as object or JSON string. Required, except for `x509` (must be omitted) and for a `value` that is a trust list URL of this tenant (EUDIPLO adds the certificate).
|
|
4822
|
+
*/
|
|
4649
4823
|
verificationMethod?: {
|
|
4650
4824
|
[key: string]: unknown;
|
|
4651
4825
|
} | string;
|
|
4652
4826
|
}>;
|
|
4653
4827
|
};
|
|
4654
4828
|
/**
|
|
4655
|
-
*
|
|
4829
|
+
* Credential configuration to link to the new version.
|
|
4656
4830
|
*/
|
|
4657
4831
|
credentialConfigId?: string;
|
|
4658
4832
|
/**
|
|
4659
|
-
* How to update
|
|
4833
|
+
* How to update the schema metadata pin of `credentialConfigId`: `keep_current` (default) keeps a pin to the same ID, `update_to_new_version` updates the pinned version under the same ID, `replace_id` repoints the pin to `config.id`. A configuration without a pin is always linked. If it is pinned to another ID, only `replace_id` succeeds; the others answer `400` after the schema metadata was published.
|
|
4660
4834
|
*/
|
|
4661
4835
|
pinMode?: 'keep_current' | 'update_to_new_version' | 'replace_id';
|
|
4662
4836
|
};
|
|
@@ -5150,16 +5324,40 @@ type PresentationRequest = {
|
|
|
5150
5324
|
* If not provided, the configured webhook from the configuration will be used.
|
|
5151
5325
|
*/
|
|
5152
5326
|
webhook?: WebhookConfig & {
|
|
5327
|
+
/**
|
|
5328
|
+
* The URL to which the webhook will send notifications.
|
|
5329
|
+
*/
|
|
5153
5330
|
url?: string;
|
|
5331
|
+
/**
|
|
5332
|
+
* Webhook authentication strategy.
|
|
5333
|
+
*/
|
|
5154
5334
|
auth?: {
|
|
5335
|
+
/**
|
|
5336
|
+
* Disable authentication.
|
|
5337
|
+
*/
|
|
5155
5338
|
type: 'none';
|
|
5156
5339
|
} | {
|
|
5340
|
+
/**
|
|
5341
|
+
* Use API key authentication.
|
|
5342
|
+
*/
|
|
5157
5343
|
type: 'apiKey';
|
|
5344
|
+
/**
|
|
5345
|
+
* API key authentication settings.
|
|
5346
|
+
*/
|
|
5158
5347
|
config: {
|
|
5348
|
+
/**
|
|
5349
|
+
* The header name used to send the API key.
|
|
5350
|
+
*/
|
|
5159
5351
|
headerName: string;
|
|
5352
|
+
/**
|
|
5353
|
+
* The API key value.
|
|
5354
|
+
*/
|
|
5160
5355
|
value: string;
|
|
5161
5356
|
};
|
|
5162
5357
|
};
|
|
5358
|
+
/**
|
|
5359
|
+
* List of credential IDs to include raw tokens for (for example ['sca_credential']).
|
|
5360
|
+
*/
|
|
5163
5361
|
includeRawTokensFor?: Array<string>;
|
|
5164
5362
|
};
|
|
5165
5363
|
/**
|
|
@@ -5791,7 +5989,7 @@ type RegistrarControllerCreateAccessCertificateData = {
|
|
|
5791
5989
|
};
|
|
5792
5990
|
type RegistrarControllerCreateAccessCertificateErrors = {
|
|
5793
5991
|
/**
|
|
5794
|
-
*
|
|
5992
|
+
* The registrar rejected the relying-party registration or the certificate request
|
|
5795
5993
|
*/
|
|
5796
5994
|
400: unknown;
|
|
5797
5995
|
/**
|
|
@@ -5807,11 +6005,15 @@ type RegistrarControllerCreateAccessCertificateResponses = {
|
|
|
5807
6005
|
/**
|
|
5808
6006
|
* The certificate ID at the registrar
|
|
5809
6007
|
*/
|
|
5810
|
-
id
|
|
6008
|
+
id: string;
|
|
6009
|
+
/**
|
|
6010
|
+
* ID of the key chain that now holds the certificate
|
|
6011
|
+
*/
|
|
6012
|
+
certId: string;
|
|
5811
6013
|
/**
|
|
5812
6014
|
* The certificate in PEM format
|
|
5813
6015
|
*/
|
|
5814
|
-
crt
|
|
6016
|
+
crt: string;
|
|
5815
6017
|
};
|
|
5816
6018
|
};
|
|
5817
6019
|
type RegistrarControllerCreateAccessCertificateResponse = RegistrarControllerCreateAccessCertificateResponses[keyof RegistrarControllerCreateAccessCertificateResponses];
|