@eudiplo/cli 9.1.0-main.1c850e1 → 9.1.0-main.279c7e7

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/index.js CHANGED
@@ -13749,6 +13749,16 @@ var registry_default = [
13749
13749
  "/apps/backend/test/fixtures/*/attribute-providers/*.json"
13750
13750
  ]
13751
13751
  },
13752
+ {
13753
+ kind: "directory",
13754
+ subfolder: "federation-trust-anchors",
13755
+ resourceType: "federation trust anchor",
13756
+ schemaFile: "FederationTrustAnchorConfigFile.schema.json",
13757
+ fileMatch: [
13758
+ "/assets/config/*/federation-trust-anchors/*.json",
13759
+ "/apps/backend/test/fixtures/*/federation-trust-anchors/*.json"
13760
+ ]
13761
+ },
13752
13762
  {
13753
13763
  kind: "directory",
13754
13764
  subfolder: "webhook-endpoints",
@@ -15084,16 +15094,16 @@ var CONFIG_FORMATS = {
15084
15094
  Tenant: { slug: "tenant", file: "TenantConfigFile", version: 1 },
15085
15095
  Client: { slug: "client", file: "ClientConfigFile", version: 2 },
15086
15096
  KmsConfig: { slug: "kms-config", file: "KmsConfigFile", version: 2 },
15087
- KeyChain: { slug: "key-chain", file: "KeyChainConfigFile", version: 2 },
15097
+ KeyChain: { slug: "key-chain", file: "KeyChainConfigFile", version: 3 },
15088
15098
  RegistrarConfig: {
15089
15099
  slug: "registrar-config",
15090
15100
  file: "RegistrarConfigFile",
15091
- version: 1
15101
+ version: 2
15092
15102
  },
15093
15103
  IssuanceConfig: {
15094
15104
  slug: "issuance-config",
15095
15105
  file: "IssuanceConfigFile",
15096
- version: 4
15106
+ version: 5
15097
15107
  },
15098
15108
  CredentialConfig: {
15099
15109
  slug: "credential-config",
@@ -15116,6 +15126,11 @@ var CONFIG_FORMATS = {
15116
15126
  version: 1
15117
15127
  },
15118
15128
  TrustList: { slug: "trust-list", file: "TrustListConfigFile", version: 1 },
15129
+ FederationTrustAnchor: {
15130
+ slug: "federation-trust-anchor",
15131
+ file: "FederationTrustAnchorConfigFile",
15132
+ version: 1
15133
+ },
15119
15134
  StatusList: {
15120
15135
  slug: "status-list",
15121
15136
  file: "StatusListConfigFile",
@@ -15143,14 +15158,69 @@ function resourceId(input) {
15143
15158
  return id;
15144
15159
  }
15145
15160
  function bareFileVersion(kind, spec) {
15146
- if (kind === "KeyChain")
15161
+ if (kind === "KeyChain") {
15162
+ if (spec.usageType === "federation")
15163
+ return 3;
15147
15164
  return "type" in spec ? 2 : 1;
15165
+ }
15166
+ if (kind === "RegistrarConfig")
15167
+ return "relyingPartyContact" in spec ? 2 : 1;
15148
15168
  if (kind === "KmsConfig") {
15149
15169
  const providers = Array.isArray(spec.providers) ? spec.providers : [];
15150
15170
  return providers.some((provider) => typeof provider === "object" && provider !== null && ("algorithms" in provider || "defaultAlgorithm" in provider)) ? 2 : 1;
15151
15171
  }
15152
15172
  return 1;
15153
15173
  }
15174
+ var issuanceConfigV4ToV5 = {
15175
+ id: "issuance-config-v5-federation-entity",
15176
+ kind: "IssuanceConfig",
15177
+ from: 4,
15178
+ to: 5,
15179
+ migrate(spec) {
15180
+ const federation = spec.federation;
15181
+ const problem = object(federation) && typeof federation.entityId === "string" && federation.entityId !== "" ? federationEntityIdProblem(federation.entityId, {
15182
+ allowHttp: true
15183
+ }) : void 0;
15184
+ if (!problem)
15185
+ return { spec };
15186
+ return {
15187
+ spec,
15188
+ issues: [
15189
+ {
15190
+ severity: "required-input",
15191
+ code: "FEDERATION_ENTITY_ID_INVALID",
15192
+ path: "/spec/federation/entityId",
15193
+ message: `${problem}: set an https URL with a host and without query or fragment, usually <PUBLIC_URL>/issuers/<tenant>`
15194
+ }
15195
+ ]
15196
+ };
15197
+ }
15198
+ };
15199
+ function federationEntityIdProblem(entityId, options) {
15200
+ const value = `federation.entityId '${JSON.stringify(entityId).slice(1, -1)}'`;
15201
+ if (/[\s\u0000-\u001f\u007f]/.test(entityId)) {
15202
+ return `${value} must not contain whitespace or control characters`;
15203
+ }
15204
+ if (entityId.includes("?") || entityId.includes("#")) {
15205
+ return `${value} must not have a query or fragment`;
15206
+ }
15207
+ let url;
15208
+ try {
15209
+ url = new URL(entityId);
15210
+ } catch {
15211
+ return `${value} is not a URL`;
15212
+ }
15213
+ if (url.protocol !== "https:" && !(options.allowHttp && url.protocol === "http:")) {
15214
+ return options.allowHttp ? `${value} must be an https or http URL` : `${value} must be an https URL (http only with OUTBOUND_URL_ALLOW_HTTP=true)`;
15215
+ }
15216
+ if (url.href !== entityId && url.href !== `${entityId}/`) {
15217
+ return `${value} must be written as the URL it stands for: ${url.href}`;
15218
+ }
15219
+ if (url.username || url.password) {
15220
+ return `${value} must not contain credentials`;
15221
+ }
15222
+ return void 0;
15223
+ }
15154
15224
  var presentationConfigV1ToV2 = {
15155
15225
  id: "presentation-config-v2-provides-attestations",
15156
15226
  kind: "PresentationConfig",
@@ -15204,6 +15274,7 @@ var CONFIG_MIGRATIONS = [
15204
15274
  // a valid v4 spec.
15205
15275
  migrate: (spec) => ({ spec })
15206
15276
  },
15277
+ issuanceConfigV4ToV5,
15207
15278
  {
15208
15279
  id: "client-v2-read-and-status-roles",
15209
15280
  kind: "Client",
@@ -15223,6 +15294,16 @@ var CONFIG_MIGRATIONS = [
15223
15294
  // their default algorithms.
15224
15295
  migrate: (spec) => ({ spec })
15225
15296
  },
15297
+ {
15298
+ id: "registrar-config-v2-relying-party-contact",
15299
+ kind: "RegistrarConfig",
15300
+ from: 1,
15301
+ to: 2,
15302
+ // v2 only adds the optional relyingPartyContact: a v1 spec is a
15303
+ // valid v2 spec, whose relying party is registered without contact
15304
+ // as before.
15305
+ migrate: (spec) => ({ spec })
15306
+ },
15226
15307
  {
15227
15308
  id: "key-chain-v2-type",
15228
15309
  kind: "KeyChain",
@@ -15232,6 +15313,15 @@ var CONFIG_MIGRATIONS = [
15232
15313
  // spec, imported as before.
15233
15314
  migrate: (spec) => ({ spec })
15234
15315
  },
15316
+ {
15317
+ id: "key-chain-v3-federation-usage",
15318
+ kind: "KeyChain",
15319
+ from: 2,
15320
+ to: 3,
15321
+ // v3 only adds the usage type `federation`: a v2 spec is a valid v3
15322
+ // spec.
15323
+ migrate: (spec) => ({ spec })
15324
+ },
15235
15325
  {
15236
15326
  id: "credential-config-v2-x509-trusted-authority",
15237
15327
  kind: "CredentialConfig",
@@ -16794,6 +16884,143 @@ var CONFIG_SCHEMAS = [
16794
16884
  }
16795
16885
  }
16796
16886
  },
16887
+ {
16888
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
16889
+ "$id": "https://eudiplo.dev/schemas/v1/FederationTrustAnchorConfigFile.schema.json",
16890
+ "title": "FederationTrustAnchorConfigFile",
16891
+ "type": "object",
16892
+ "properties": {
16893
+ "$schema": {
16894
+ "type": "string",
16895
+ "const": "https://eudiplo.dev/schemas/v1/FederationTrustAnchorConfigFile.schema.json"
16896
+ },
16897
+ "metadata": {
16898
+ "type": "object",
16899
+ "properties": {
16900
+ "generation": {
16901
+ "type": "integer",
16902
+ "minimum": 1,
16903
+ "description": "Monotonically increasing configuration generation."
16904
+ },
16905
+ "ownership": {
16906
+ "type": "string",
16907
+ "enum": [
16908
+ "unmanaged",
16909
+ "file-managed"
16910
+ ],
16911
+ "description": "Requested ownership recorded when the document is applied."
16912
+ }
16913
+ },
16914
+ "additionalProperties": false
16915
+ },
16916
+ "spec": {
16917
+ "allOf": [
16918
+ {
16919
+ "$ref": "#/$defs/CreateFederationTrustAnchorDto"
16920
+ },
16921
+ {
16922
+ "type": "object",
16923
+ "required": [
16924
+ "id"
16925
+ ],
16926
+ "properties": {
16927
+ "id": {
16928
+ "type": "string",
16929
+ "minLength": 1
16930
+ }
16931
+ }
16932
+ }
16933
+ ]
16934
+ }
16935
+ },
16936
+ "required": [
16937
+ "$schema",
16938
+ "spec"
16939
+ ],
16940
+ "additionalProperties": false,
16941
+ "$defs": {
16942
+ "CreateFederationTrustAnchorDto": {
16943
+ "type": "object",
16944
+ "properties": {
16945
+ "id": {
16946
+ "type": "string",
16947
+ "minLength": 1,
16948
+ "maxLength": 255,
16949
+ "pattern": "^[A-Za-z0-9._-]+$",
16950
+ "description": "Unique identifier of the trust anchor in the tenant."
16951
+ },
16952
+ "entityId": {
16953
+ "type": "string",
16954
+ "minLength": 1,
16955
+ "maxLength": 2048,
16956
+ "description": "Entity identifier of the trust anchor, exactly as configured in `federation.trustAnchors` and DCQL `openid_federation` values."
16957
+ },
16958
+ "description": {
16959
+ "anyOf": [
16960
+ {
16961
+ "type": "string",
16962
+ "minLength": 1,
16963
+ "maxLength": 1e3
16964
+ },
16965
+ {
16966
+ "type": "null"
16967
+ }
16968
+ ],
16969
+ "description": "Optional description of the trust anchor."
16970
+ },
16971
+ "jwks": {
16972
+ "type": "object",
16973
+ "properties": {
16974
+ "keys": {
16975
+ "minItems": 1,
16976
+ "maxItems": 20,
16977
+ "type": "array",
16978
+ "items": {
16979
+ "type": "object",
16980
+ "properties": {
16981
+ "kty": {
16982
+ "type": "string",
16983
+ "enum": [
16984
+ "EC",
16985
+ "RSA",
16986
+ "OKP"
16987
+ ],
16988
+ "description": "Key type of the public federation key."
16989
+ },
16990
+ "kid": {
16991
+ "type": "string",
16992
+ "minLength": 1,
16993
+ "maxLength": 256,
16994
+ "description": "Key ID. Federation statements name their signing key with `kid`."
16995
+ }
16996
+ },
16997
+ "required": [
16998
+ "kty",
16999
+ "kid"
17000
+ ],
17001
+ "additionalProperties": {},
17002
+ "description": "Public federation key of the trust anchor as a JWK."
17003
+ },
17004
+ "description": "The trust anchor's federation keys."
17005
+ }
17006
+ },
17007
+ "required": [
17008
+ "keys"
17009
+ ],
17010
+ "additionalProperties": false,
17011
+ "description": "JWK set with the federation keys of the trust anchor, obtained out of band (OpenID Federation 1.0 Section 10.2)."
17012
+ }
17013
+ },
17014
+ "required": [
17015
+ "id",
17016
+ "entityId",
17017
+ "jwks"
17018
+ ],
17019
+ "additionalProperties": false,
17020
+ "title": "CreateFederationTrustAnchorDto"
17021
+ }
17022
+ }
17023
+ },
16797
17024
  {
16798
17025
  "$schema": "https://json-schema.org/draft/2020-12/schema",
16799
17026
  "$id": "https://eudiplo.dev/schemas/v1/IssuanceConfigFile.schema.json",
@@ -24227,13 +24454,13 @@ var CONFIG_SCHEMAS = [
24227
24454
  },
24228
24455
  {
24229
24456
  "$schema": "https://json-schema.org/draft/2020-12/schema",
24230
- "$id": "https://eudiplo.dev/schemas/v3/IssuanceConfigFile.schema.json",
24231
- "title": "IssuanceConfigFile",
24457
+ "$id": "https://eudiplo.dev/schemas/v2/RegistrarConfigFile.schema.json",
24458
+ "title": "RegistrarConfigFile",
24232
24459
  "type": "object",
24233
24460
  "properties": {
24234
24461
  "$schema": {
24235
24462
  "type": "string",
24236
- "const": "https://eudiplo.dev/schemas/v3/IssuanceConfigFile.schema.json"
24463
+ "const": "https://eudiplo.dev/schemas/v2/RegistrarConfigFile.schema.json"
24237
24464
  },
24238
24465
  "metadata": {
24239
24466
  "type": "object",
@@ -24255,7 +24482,7 @@ var CONFIG_SCHEMAS = [
24255
24482
  "additionalProperties": false
24256
24483
  },
24257
24484
  "spec": {
24258
- "$ref": "#/$defs/IssuanceConfig"
24485
+ "$ref": "#/$defs/CreateRegistrarConfigDto"
24259
24486
  }
24260
24487
  },
24261
24488
  "required": [
@@ -24264,68 +24491,197 @@ var CONFIG_SCHEMAS = [
24264
24491
  ],
24265
24492
  "additionalProperties": false,
24266
24493
  "$defs": {
24267
- "IssuanceConfig": {
24494
+ "CreateRegistrarConfigDto": {
24268
24495
  "type": "object",
24269
24496
  "properties": {
24270
- "batchSize": {
24271
- "description": "Optional issuance batch size.",
24272
- "type": "integer",
24273
- "minimum": 1,
24274
- "maximum": 9007199254740991
24497
+ "registrarUrl": {
24498
+ "type": "string",
24499
+ "format": "uri",
24500
+ "description": "Base URL of the registrar service."
24275
24501
  },
24276
- "dPopRequired": {
24277
- "description": "Require DPoP proofs for issuance endpoints.",
24278
- "type": "boolean"
24502
+ "oidcUrl": {
24503
+ "type": "string",
24504
+ "format": "uri",
24505
+ "description": "OIDC discovery or issuer URL used for authentication."
24279
24506
  },
24280
- "walletAttestationRequired": {
24281
- "description": "Default wallet attestation requirement for managed authorization servers.",
24282
- "type": "boolean"
24507
+ "clientId": {
24508
+ "type": "string",
24509
+ "minLength": 1,
24510
+ "description": "OAuth client ID used against the registrar."
24283
24511
  },
24284
- "walletProviderTrustLists": {
24285
- "description": "Shared wallet provider trust lists for key attestations and default authorization server wallet authentication.",
24286
- "type": "array",
24287
- "items": {
24288
- "type": "object",
24289
- "properties": {
24290
- "trustListId": {
24291
- "type": "string",
24292
- "minLength": 1
24293
- },
24294
- "url": {
24295
- "description": "URL of the wallet provider trust list.",
24296
- "type": "string",
24297
- "format": "uri"
24512
+ "clientSecret": {
24513
+ "description": "Optional OAuth client secret for registrar authentication.",
24514
+ "type": "string",
24515
+ "minLength": 1
24516
+ },
24517
+ "username": {
24518
+ "type": "string",
24519
+ "minLength": 1,
24520
+ "description": "Username used for registrar authentication."
24521
+ },
24522
+ "password": {
24523
+ "type": "string",
24524
+ "minLength": 1,
24525
+ "description": "Password used for registrar authentication."
24526
+ },
24527
+ "registrationCertificateDefaults": {
24528
+ "description": "Optional default registration certificate values.",
24529
+ "anyOf": [
24530
+ {
24531
+ "type": "object",
24532
+ "propertyNames": {
24533
+ "type": "string"
24298
24534
  },
24299
- "verifierKey": {
24300
- "description": "Optional verifier key material used for trust list verification.",
24301
- "type": "object",
24302
- "propertyNames": {
24303
- "type": "string"
24535
+ "additionalProperties": {}
24536
+ },
24537
+ {
24538
+ "type": "null"
24539
+ }
24540
+ ]
24541
+ },
24542
+ "relyingPartyContact": {
24543
+ "description": "Contact of the relying party, sent when EUDIPLO registers the relying party at the registrar. The registrar needs at least one contact value to issue access certificates. A relying party that is already registered keeps its contact.",
24544
+ "anyOf": [
24545
+ {
24546
+ "type": "object",
24547
+ "properties": {
24548
+ "supportUri": {
24549
+ "description": "https URL where the relying party can be contacted.",
24550
+ "type": "string",
24551
+ "format": "uri"
24304
24552
  },
24305
- "additionalProperties": {}
24306
- },
24307
- "verifierKeyPem": {
24308
- "description": "Optional verifier public key in SPKI PEM form (-----BEGIN PUBLIC KEY-----).",
24309
- "type": "string",
24310
- "pattern": "^\\s*-----BEGIN PUBLIC KEY-----[A-Za-z0-9+/=\\s]+-----END PUBLIC KEY-----\\s*$"
24553
+ "email": {
24554
+ "description": "Email address of the relying party.",
24555
+ "type": "string",
24556
+ "pattern": "^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$"
24557
+ },
24558
+ "phone": {
24559
+ "description": "Phone number of the relying party.",
24560
+ "type": "string",
24561
+ "pattern": "^[+0-9()\\-\\s]{5,40}$"
24562
+ }
24311
24563
  },
24312
- "verifierX509Der": {
24313
- "description": "Optional verifier certificate in DER/base64 form.",
24314
- "type": "string"
24315
- }
24564
+ "additionalProperties": false
24316
24565
  },
24317
- "additionalProperties": false
24318
- }
24319
- },
24320
- "signingKeyId": {
24321
- "description": "Default signing key chain id for credential issuance.",
24322
- "type": "string",
24323
- "minLength": 1
24324
- },
24325
- "authorizationServers": {
24326
- "minItems": 1,
24327
- "type": "array",
24328
- "items": {
24566
+ {
24567
+ "type": "null"
24568
+ }
24569
+ ]
24570
+ }
24571
+ },
24572
+ "required": [
24573
+ "registrarUrl",
24574
+ "oidcUrl",
24575
+ "clientId",
24576
+ "username",
24577
+ "password"
24578
+ ],
24579
+ "additionalProperties": false,
24580
+ "title": "CreateRegistrarConfigDto"
24581
+ }
24582
+ }
24583
+ },
24584
+ {
24585
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
24586
+ "$id": "https://eudiplo.dev/schemas/v3/IssuanceConfigFile.schema.json",
24587
+ "title": "IssuanceConfigFile",
24588
+ "type": "object",
24589
+ "properties": {
24590
+ "$schema": {
24591
+ "type": "string",
24592
+ "const": "https://eudiplo.dev/schemas/v3/IssuanceConfigFile.schema.json"
24593
+ },
24594
+ "metadata": {
24595
+ "type": "object",
24596
+ "properties": {
24597
+ "generation": {
24598
+ "type": "integer",
24599
+ "minimum": 1,
24600
+ "description": "Monotonically increasing configuration generation."
24601
+ },
24602
+ "ownership": {
24603
+ "type": "string",
24604
+ "enum": [
24605
+ "unmanaged",
24606
+ "file-managed"
24607
+ ],
24608
+ "description": "Requested ownership recorded when the document is applied."
24609
+ }
24610
+ },
24611
+ "additionalProperties": false
24612
+ },
24613
+ "spec": {
24614
+ "$ref": "#/$defs/IssuanceConfig"
24615
+ }
24616
+ },
24617
+ "required": [
24618
+ "$schema",
24619
+ "spec"
24620
+ ],
24621
+ "additionalProperties": false,
24622
+ "$defs": {
24623
+ "IssuanceConfig": {
24624
+ "type": "object",
24625
+ "properties": {
24626
+ "batchSize": {
24627
+ "description": "Optional issuance batch size.",
24628
+ "type": "integer",
24629
+ "minimum": 1,
24630
+ "maximum": 9007199254740991
24631
+ },
24632
+ "dPopRequired": {
24633
+ "description": "Require DPoP proofs for issuance endpoints.",
24634
+ "type": "boolean"
24635
+ },
24636
+ "walletAttestationRequired": {
24637
+ "description": "Default wallet attestation requirement for managed authorization servers.",
24638
+ "type": "boolean"
24639
+ },
24640
+ "walletProviderTrustLists": {
24641
+ "description": "Shared wallet provider trust lists for key attestations and default authorization server wallet authentication.",
24642
+ "type": "array",
24643
+ "items": {
24644
+ "type": "object",
24645
+ "properties": {
24646
+ "trustListId": {
24647
+ "type": "string",
24648
+ "minLength": 1
24649
+ },
24650
+ "url": {
24651
+ "description": "URL of the wallet provider trust list.",
24652
+ "type": "string",
24653
+ "format": "uri"
24654
+ },
24655
+ "verifierKey": {
24656
+ "description": "Optional verifier key material used for trust list verification.",
24657
+ "type": "object",
24658
+ "propertyNames": {
24659
+ "type": "string"
24660
+ },
24661
+ "additionalProperties": {}
24662
+ },
24663
+ "verifierKeyPem": {
24664
+ "description": "Optional verifier public key in SPKI PEM form (-----BEGIN PUBLIC KEY-----).",
24665
+ "type": "string",
24666
+ "pattern": "^\\s*-----BEGIN PUBLIC KEY-----[A-Za-z0-9+/=\\s]+-----END PUBLIC KEY-----\\s*$"
24667
+ },
24668
+ "verifierX509Der": {
24669
+ "description": "Optional verifier certificate in DER/base64 form.",
24670
+ "type": "string"
24671
+ }
24672
+ },
24673
+ "additionalProperties": false
24674
+ }
24675
+ },
24676
+ "signingKeyId": {
24677
+ "description": "Default signing key chain id for credential issuance.",
24678
+ "type": "string",
24679
+ "minLength": 1
24680
+ },
24681
+ "authorizationServers": {
24682
+ "minItems": 1,
24683
+ "type": "array",
24684
+ "items": {
24329
24685
  "oneOf": [
24330
24686
  {
24331
24687
  "type": "object",
@@ -24922,13 +25278,13 @@ var CONFIG_SCHEMAS = [
24922
25278
  },
24923
25279
  {
24924
25280
  "$schema": "https://json-schema.org/draft/2020-12/schema",
24925
- "$id": "https://eudiplo.dev/schemas/v3/PresentationConfigFile.schema.json",
24926
- "title": "PresentationConfigFile",
25281
+ "$id": "https://eudiplo.dev/schemas/v3/KeyChainConfigFile.schema.json",
25282
+ "title": "KeyChainConfigFile",
24927
25283
  "type": "object",
24928
25284
  "properties": {
24929
25285
  "$schema": {
24930
25286
  "type": "string",
24931
- "const": "https://eudiplo.dev/schemas/v3/PresentationConfigFile.schema.json"
25287
+ "const": "https://eudiplo.dev/schemas/v3/KeyChainConfigFile.schema.json"
24932
25288
  },
24933
25289
  "metadata": {
24934
25290
  "type": "object",
@@ -24936,144 +25292,696 @@ var CONFIG_SCHEMAS = [
24936
25292
  "generation": {
24937
25293
  "type": "integer",
24938
25294
  "minimum": 1,
24939
- "description": "Monotonically increasing configuration generation."
25295
+ "maximum": 9007199254740991
24940
25296
  },
24941
25297
  "ownership": {
24942
25298
  "type": "string",
24943
25299
  "enum": [
24944
25300
  "unmanaged",
24945
25301
  "file-managed"
24946
- ],
24947
- "description": "Requested ownership recorded when the document is applied."
25302
+ ]
24948
25303
  }
24949
25304
  },
24950
25305
  "additionalProperties": false
24951
25306
  },
24952
25307
  "spec": {
24953
- "allOf": [
24954
- {
24955
- "$ref": "#/$defs/PresentationConfigCreateDto"
24956
- },
24957
- {
24958
- "type": "object",
24959
- "required": [
24960
- "id"
24961
- ],
24962
- "properties": {
24963
- "id": {
24964
- "type": "string",
24965
- "minLength": 1
24966
- }
24967
- }
24968
- }
24969
- ]
24970
- }
24971
- },
24972
- "required": [
24973
- "$schema",
24974
- "spec"
24975
- ],
24976
- "additionalProperties": false,
24977
- "$defs": {
24978
- "PresentationConfigCreateDto": {
24979
25308
  "type": "object",
24980
25309
  "properties": {
24981
25310
  "id": {
24982
- "type": "string",
24983
- "minLength": 1,
24984
- "description": "Presentation configuration identifier."
25311
+ "type": "string"
24985
25312
  },
24986
25313
  "description": {
24987
- "description": "Optional presentation configuration description.",
24988
- "type": [
24989
- "string",
24990
- "null"
24991
- ]
24992
- },
24993
- "lifeTime": {
24994
- "description": "Presentation request lifetime in seconds.",
24995
- "type": "integer",
24996
- "minimum": 1,
24997
- "maximum": 9007199254740991
25314
+ "type": "string"
24998
25315
  },
24999
- "skewSeconds": {
25000
- "description": "Clock skew tolerance in seconds.",
25001
- "type": "integer",
25002
- "minimum": 0,
25003
- "maximum": 9007199254740991
25316
+ "usageType": {
25317
+ "type": "string",
25318
+ "enum": [
25319
+ "access",
25320
+ "attestation",
25321
+ "trustList",
25322
+ "statusList",
25323
+ "federation",
25324
+ "encrypt"
25325
+ ]
25004
25326
  },
25005
- "statusCheckMode": {
25006
- "description": "Revocation/status check mode.",
25327
+ "type": {
25328
+ "description": "Key chain type. For a `private-jwk` key source without `activeJwk`, `standalone` makes `jwk` the signing key and `crt` its chain, leaf first; `internalChain` makes `jwk` a CA key and the last `crt` entry its CA certificate (created if `crt` is omitted), and the import generates a new signing key with a certificate issued by it. Without `type`, `jwk` is a CA key only if `rotationPolicy.enabled` is true and `crt` is not a single self-signed certificate that is not a CA. For `regenerate`, it is the type of the new key chain and must equal `keySource.keyChainType` if both are set. For the other key sources, it must match the key chain they describe.",
25007
25329
  "type": "string",
25008
25330
  "enum": [
25009
- "strict",
25010
- "best_effort",
25011
- "disabled"
25331
+ "standalone",
25332
+ "internalChain"
25012
25333
  ]
25013
25334
  },
25014
- "dcql_query": {
25015
- "type": "object",
25016
- "properties": {
25017
- "credentials": {
25018
- "minItems": 1,
25019
- "type": "array",
25020
- "items": {
25021
- "oneOf": [
25022
- {
25023
- "type": "object",
25024
- "properties": {
25025
- "id": {
25026
- "type": "string",
25027
- "minLength": 1,
25028
- "pattern": "^[A-Za-z0-9_-]+$",
25029
- "description": "Credential query identifier."
25030
- },
25031
- "multiple": {
25032
- "description": "Allow multiple matching credentials.",
25033
- "type": "boolean"
25034
- },
25035
- "claim_sets": {
25036
- "description": "Optional claim set constraints.",
25037
- "type": "array",
25038
- "items": {
25039
- "type": "array",
25040
- "items": {
25041
- "type": "string"
25042
- }
25043
- }
25044
- },
25045
- "trusted_authorities": {
25046
- "description": "Optional trusted authority constraints.",
25047
- "type": "array",
25048
- "items": {
25049
- "oneOf": [
25050
- {
25051
- "type": "object",
25052
- "properties": {
25053
- "type": {
25054
- "type": "string",
25055
- "const": "etsi_tl",
25056
- "description": "Trusted authority type discriminator for ETSI trust lists."
25057
- },
25058
- "values": {
25059
- "type": "array",
25060
- "items": {
25061
- "type": "object",
25062
- "properties": {
25063
- "trustListId": {
25064
- "description": "Optional trust list id reference.",
25065
- "type": "string"
25066
- },
25067
- "url": {
25068
- "description": "Optional trust list URL reference.",
25069
- "anyOf": [
25070
- {
25071
- "type": "string",
25072
- "format": "uri"
25073
- },
25074
- {
25075
- "type": "string",
25076
- "pattern": "^<TENANT_URL>(?:\\/.*)?$"
25335
+ "keySource": {
25336
+ "oneOf": [
25337
+ {
25338
+ "type": "object",
25339
+ "properties": {
25340
+ "type": {
25341
+ "type": "string",
25342
+ "const": "private-jwk"
25343
+ },
25344
+ "jwk": {
25345
+ "type": "object",
25346
+ "properties": {
25347
+ "kty": {
25348
+ "type": "string",
25349
+ "description": "Key type (for example EC)."
25350
+ },
25351
+ "x": {
25352
+ "type": "string",
25353
+ "description": "Elliptic curve public x coordinate."
25354
+ },
25355
+ "y": {
25356
+ "type": "string",
25357
+ "description": "Elliptic curve public y coordinate."
25358
+ },
25359
+ "crv": {
25360
+ "type": "string",
25361
+ "description": "Elliptic curve name."
25362
+ },
25363
+ "d": {
25364
+ "type": "string",
25365
+ "description": "Private key value."
25366
+ },
25367
+ "alg": {
25368
+ "description": "Optional algorithm hint.",
25369
+ "type": "string"
25370
+ },
25371
+ "kid": {
25372
+ "description": "Optional key identifier.",
25373
+ "type": "string"
25374
+ }
25375
+ },
25376
+ "required": [
25377
+ "kty",
25378
+ "x",
25379
+ "y",
25380
+ "crv",
25381
+ "d"
25382
+ ],
25383
+ "additionalProperties": false
25384
+ },
25385
+ "activeJwk": {
25386
+ "type": "object",
25387
+ "properties": {
25388
+ "kty": {
25389
+ "type": "string",
25390
+ "description": "Key type (for example EC)."
25391
+ },
25392
+ "x": {
25393
+ "type": "string",
25394
+ "description": "Elliptic curve public x coordinate."
25395
+ },
25396
+ "y": {
25397
+ "type": "string",
25398
+ "description": "Elliptic curve public y coordinate."
25399
+ },
25400
+ "crv": {
25401
+ "type": "string",
25402
+ "description": "Elliptic curve name."
25403
+ },
25404
+ "d": {
25405
+ "type": "string",
25406
+ "description": "Private key value."
25407
+ },
25408
+ "alg": {
25409
+ "description": "Optional algorithm hint.",
25410
+ "type": "string"
25411
+ },
25412
+ "kid": {
25413
+ "description": "Optional key identifier.",
25414
+ "type": "string"
25415
+ }
25416
+ },
25417
+ "required": [
25418
+ "kty",
25419
+ "x",
25420
+ "y",
25421
+ "crv",
25422
+ "d"
25423
+ ],
25424
+ "additionalProperties": false
25425
+ }
25426
+ },
25427
+ "required": [
25428
+ "type",
25429
+ "jwk"
25430
+ ],
25431
+ "additionalProperties": false
25432
+ },
25433
+ {
25434
+ "type": "object",
25435
+ "properties": {
25436
+ "type": {
25437
+ "type": "string",
25438
+ "const": "external-reference"
25439
+ },
25440
+ "provider": {
25441
+ "type": "string"
25442
+ },
25443
+ "externalKeyId": {
25444
+ "type": "string"
25445
+ },
25446
+ "publicJwk": {
25447
+ "type": "object",
25448
+ "properties": {
25449
+ "kty": {
25450
+ "type": "string"
25451
+ },
25452
+ "x": {
25453
+ "type": "string"
25454
+ },
25455
+ "y": {
25456
+ "type": "string"
25457
+ },
25458
+ "crv": {
25459
+ "type": "string"
25460
+ },
25461
+ "alg": {
25462
+ "type": "string"
25463
+ },
25464
+ "kid": {
25465
+ "type": "string"
25466
+ }
25467
+ },
25468
+ "required": [
25469
+ "kty",
25470
+ "x",
25471
+ "y",
25472
+ "crv"
25473
+ ],
25474
+ "additionalProperties": false
25475
+ },
25476
+ "activeExternalKeyId": {
25477
+ "type": "string"
25478
+ },
25479
+ "activePublicJwk": {
25480
+ "type": "object",
25481
+ "properties": {
25482
+ "kty": {
25483
+ "type": "string"
25484
+ },
25485
+ "x": {
25486
+ "type": "string"
25487
+ },
25488
+ "y": {
25489
+ "type": "string"
25490
+ },
25491
+ "crv": {
25492
+ "type": "string"
25493
+ },
25494
+ "alg": {
25495
+ "type": "string"
25496
+ },
25497
+ "kid": {
25498
+ "type": "string"
25499
+ }
25500
+ },
25501
+ "required": [
25502
+ "kty",
25503
+ "x",
25504
+ "y",
25505
+ "crv"
25506
+ ],
25507
+ "additionalProperties": false
25508
+ }
25509
+ },
25510
+ "required": [
25511
+ "type",
25512
+ "provider",
25513
+ "externalKeyId",
25514
+ "publicJwk"
25515
+ ],
25516
+ "additionalProperties": false
25517
+ },
25518
+ {
25519
+ "type": "object",
25520
+ "properties": {
25521
+ "type": {
25522
+ "type": "string",
25523
+ "const": "required"
25524
+ },
25525
+ "publicJwk": {
25526
+ "type": "object",
25527
+ "properties": {
25528
+ "kty": {
25529
+ "type": "string"
25530
+ },
25531
+ "x": {
25532
+ "type": "string"
25533
+ },
25534
+ "y": {
25535
+ "type": "string"
25536
+ },
25537
+ "crv": {
25538
+ "type": "string"
25539
+ },
25540
+ "alg": {
25541
+ "type": "string"
25542
+ },
25543
+ "kid": {
25544
+ "type": "string"
25545
+ }
25546
+ },
25547
+ "required": [
25548
+ "kty",
25549
+ "x",
25550
+ "y",
25551
+ "crv"
25552
+ ],
25553
+ "additionalProperties": false
25554
+ }
25555
+ },
25556
+ "required": [
25557
+ "type"
25558
+ ],
25559
+ "additionalProperties": false
25560
+ },
25561
+ {
25562
+ "type": "object",
25563
+ "properties": {
25564
+ "type": {
25565
+ "type": "string",
25566
+ "const": "regenerate"
25567
+ },
25568
+ "keyChainType": {
25569
+ "type": "string",
25570
+ "enum": [
25571
+ "standalone",
25572
+ "internalChain"
25573
+ ]
25574
+ }
25575
+ },
25576
+ "required": [
25577
+ "type"
25578
+ ],
25579
+ "additionalProperties": false
25580
+ }
25581
+ ]
25582
+ },
25583
+ "crt": {
25584
+ "type": "array",
25585
+ "items": {
25586
+ "type": "string"
25587
+ }
25588
+ },
25589
+ "activeCertificate": {
25590
+ "description": "Active certificate for an internal key chain.",
25591
+ "type": "string"
25592
+ },
25593
+ "kmsProvider": {
25594
+ "type": "string"
25595
+ },
25596
+ "rotationPolicy": {
25597
+ "type": "object",
25598
+ "properties": {
25599
+ "enabled": {
25600
+ "type": "boolean"
25601
+ },
25602
+ "intervalDays": {
25603
+ "anyOf": [
25604
+ {
25605
+ "type": "number",
25606
+ "minimum": 1,
25607
+ "maximum": 3650
25608
+ },
25609
+ {
25610
+ "type": "null"
25611
+ }
25612
+ ]
25613
+ },
25614
+ "certValidityDays": {
25615
+ "anyOf": [
25616
+ {
25617
+ "type": "number",
25618
+ "minimum": 1,
25619
+ "maximum": 3650
25620
+ },
25621
+ {
25622
+ "type": "null"
25623
+ }
25624
+ ]
25625
+ }
25626
+ },
25627
+ "required": [
25628
+ "enabled"
25629
+ ],
25630
+ "additionalProperties": false
25631
+ }
25632
+ },
25633
+ "required": [
25634
+ "usageType",
25635
+ "keySource"
25636
+ ],
25637
+ "additionalProperties": false
25638
+ }
25639
+ },
25640
+ "required": [
25641
+ "$schema",
25642
+ "metadata",
25643
+ "spec"
25644
+ ],
25645
+ "additionalProperties": false
25646
+ },
25647
+ {
25648
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
25649
+ "$id": "https://eudiplo.dev/schemas/v3/PresentationConfigFile.schema.json",
25650
+ "title": "PresentationConfigFile",
25651
+ "type": "object",
25652
+ "properties": {
25653
+ "$schema": {
25654
+ "type": "string",
25655
+ "const": "https://eudiplo.dev/schemas/v3/PresentationConfigFile.schema.json"
25656
+ },
25657
+ "metadata": {
25658
+ "type": "object",
25659
+ "properties": {
25660
+ "generation": {
25661
+ "type": "integer",
25662
+ "minimum": 1,
25663
+ "description": "Monotonically increasing configuration generation."
25664
+ },
25665
+ "ownership": {
25666
+ "type": "string",
25667
+ "enum": [
25668
+ "unmanaged",
25669
+ "file-managed"
25670
+ ],
25671
+ "description": "Requested ownership recorded when the document is applied."
25672
+ }
25673
+ },
25674
+ "additionalProperties": false
25675
+ },
25676
+ "spec": {
25677
+ "allOf": [
25678
+ {
25679
+ "$ref": "#/$defs/PresentationConfigCreateDto"
25680
+ },
25681
+ {
25682
+ "type": "object",
25683
+ "required": [
25684
+ "id"
25685
+ ],
25686
+ "properties": {
25687
+ "id": {
25688
+ "type": "string",
25689
+ "minLength": 1
25690
+ }
25691
+ }
25692
+ }
25693
+ ]
25694
+ }
25695
+ },
25696
+ "required": [
25697
+ "$schema",
25698
+ "spec"
25699
+ ],
25700
+ "additionalProperties": false,
25701
+ "$defs": {
25702
+ "PresentationConfigCreateDto": {
25703
+ "type": "object",
25704
+ "properties": {
25705
+ "id": {
25706
+ "type": "string",
25707
+ "minLength": 1,
25708
+ "description": "Presentation configuration identifier."
25709
+ },
25710
+ "description": {
25711
+ "description": "Optional presentation configuration description.",
25712
+ "type": [
25713
+ "string",
25714
+ "null"
25715
+ ]
25716
+ },
25717
+ "lifeTime": {
25718
+ "description": "Presentation request lifetime in seconds.",
25719
+ "type": "integer",
25720
+ "minimum": 1,
25721
+ "maximum": 9007199254740991
25722
+ },
25723
+ "skewSeconds": {
25724
+ "description": "Clock skew tolerance in seconds.",
25725
+ "type": "integer",
25726
+ "minimum": 0,
25727
+ "maximum": 9007199254740991
25728
+ },
25729
+ "statusCheckMode": {
25730
+ "description": "Revocation/status check mode.",
25731
+ "type": "string",
25732
+ "enum": [
25733
+ "strict",
25734
+ "best_effort",
25735
+ "disabled"
25736
+ ]
25737
+ },
25738
+ "dcql_query": {
25739
+ "type": "object",
25740
+ "properties": {
25741
+ "credentials": {
25742
+ "minItems": 1,
25743
+ "type": "array",
25744
+ "items": {
25745
+ "oneOf": [
25746
+ {
25747
+ "type": "object",
25748
+ "properties": {
25749
+ "id": {
25750
+ "type": "string",
25751
+ "minLength": 1,
25752
+ "pattern": "^[A-Za-z0-9_-]+$",
25753
+ "description": "Credential query identifier."
25754
+ },
25755
+ "multiple": {
25756
+ "description": "Allow multiple matching credentials.",
25757
+ "type": "boolean"
25758
+ },
25759
+ "claim_sets": {
25760
+ "description": "Optional claim set constraints.",
25761
+ "type": "array",
25762
+ "items": {
25763
+ "type": "array",
25764
+ "items": {
25765
+ "type": "string"
25766
+ }
25767
+ }
25768
+ },
25769
+ "trusted_authorities": {
25770
+ "description": "Optional trusted authority constraints.",
25771
+ "type": "array",
25772
+ "items": {
25773
+ "oneOf": [
25774
+ {
25775
+ "type": "object",
25776
+ "properties": {
25777
+ "type": {
25778
+ "type": "string",
25779
+ "const": "etsi_tl",
25780
+ "description": "Trusted authority type discriminator for ETSI trust lists."
25781
+ },
25782
+ "values": {
25783
+ "type": "array",
25784
+ "items": {
25785
+ "type": "object",
25786
+ "properties": {
25787
+ "trustListId": {
25788
+ "description": "Optional trust list id reference.",
25789
+ "type": "string"
25790
+ },
25791
+ "url": {
25792
+ "description": "Optional trust list URL reference.",
25793
+ "anyOf": [
25794
+ {
25795
+ "type": "string",
25796
+ "format": "uri"
25797
+ },
25798
+ {
25799
+ "type": "string",
25800
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
25801
+ }
25802
+ ]
25803
+ },
25804
+ "verifierKey": {
25805
+ "description": "Optional verifier key material.",
25806
+ "type": "object",
25807
+ "propertyNames": {
25808
+ "type": "string"
25809
+ },
25810
+ "additionalProperties": {}
25811
+ },
25812
+ "verifierX509Der": {
25813
+ "description": "Optional verifier certificate in DER/base64 form.",
25814
+ "type": "string"
25815
+ }
25816
+ },
25817
+ "additionalProperties": false
25818
+ },
25819
+ "description": "Trust list references for ETSI TL verification."
25820
+ }
25821
+ },
25822
+ "required": [
25823
+ "type",
25824
+ "values"
25825
+ ],
25826
+ "additionalProperties": false
25827
+ },
25828
+ {
25829
+ "type": "object",
25830
+ "properties": {
25831
+ "type": {
25832
+ "type": "string",
25833
+ "const": "openid_federation",
25834
+ "description": "Trusted authority type discriminator for OpenID Federation."
25835
+ },
25836
+ "values": {
25837
+ "type": "array",
25838
+ "items": {
25839
+ "type": "string"
25840
+ },
25841
+ "description": "OpenID Federation authority identifiers."
25842
+ }
25843
+ },
25844
+ "required": [
25845
+ "type",
25846
+ "values"
25847
+ ],
25848
+ "additionalProperties": false
25849
+ }
25850
+ ]
25851
+ }
25852
+ },
25853
+ "format": {
25854
+ "type": "string",
25855
+ "const": "dc+sd-jwt",
25856
+ "description": "Credential format discriminator."
25857
+ },
25858
+ "meta": {
25859
+ "type": "object",
25860
+ "properties": {
25861
+ "vct_values": {
25862
+ "minItems": 1,
25863
+ "type": "array",
25864
+ "items": {
25865
+ "type": "string"
25866
+ },
25867
+ "description": "Accepted VCT values."
25868
+ }
25869
+ },
25870
+ "required": [
25871
+ "vct_values"
25872
+ ],
25873
+ "additionalProperties": false
25874
+ },
25875
+ "claims": {
25876
+ "description": "Optional claim-level constraints.",
25877
+ "type": "array",
25878
+ "items": {
25879
+ "type": "object",
25880
+ "properties": {
25881
+ "id": {
25882
+ "description": "Optional claim query id.",
25883
+ "type": "string"
25884
+ },
25885
+ "path": {
25886
+ "type": "array",
25887
+ "items": {
25888
+ "type": [
25889
+ "string",
25890
+ "number"
25891
+ ]
25892
+ },
25893
+ "description": "Path to the claim value in presented credentials."
25894
+ },
25895
+ "values": {
25896
+ "description": "Optional allowed values for the claim. A disclosed value must equal one of them in type and value.",
25897
+ "minItems": 1,
25898
+ "type": "array",
25899
+ "items": {
25900
+ "anyOf": [
25901
+ {
25902
+ "type": "string"
25903
+ },
25904
+ {
25905
+ "type": "integer",
25906
+ "minimum": -9007199254740991,
25907
+ "maximum": 9007199254740991
25908
+ },
25909
+ {
25910
+ "type": "boolean"
25911
+ }
25912
+ ]
25913
+ }
25914
+ }
25915
+ },
25916
+ "required": [
25917
+ "path"
25918
+ ],
25919
+ "additionalProperties": false
25920
+ }
25921
+ }
25922
+ },
25923
+ "required": [
25924
+ "id",
25925
+ "format",
25926
+ "meta"
25927
+ ],
25928
+ "additionalProperties": false
25929
+ },
25930
+ {
25931
+ "type": "object",
25932
+ "properties": {
25933
+ "id": {
25934
+ "type": "string",
25935
+ "minLength": 1,
25936
+ "pattern": "^[A-Za-z0-9_-]+$",
25937
+ "description": "Credential query identifier."
25938
+ },
25939
+ "multiple": {
25940
+ "description": "Allow multiple matching credentials.",
25941
+ "type": "boolean"
25942
+ },
25943
+ "claim_sets": {
25944
+ "description": "Optional claim set constraints.",
25945
+ "type": "array",
25946
+ "items": {
25947
+ "type": "array",
25948
+ "items": {
25949
+ "type": "string"
25950
+ }
25951
+ }
25952
+ },
25953
+ "trusted_authorities": {
25954
+ "description": "Optional trusted authority constraints.",
25955
+ "type": "array",
25956
+ "items": {
25957
+ "oneOf": [
25958
+ {
25959
+ "type": "object",
25960
+ "properties": {
25961
+ "type": {
25962
+ "type": "string",
25963
+ "const": "etsi_tl",
25964
+ "description": "Trusted authority type discriminator for ETSI trust lists."
25965
+ },
25966
+ "values": {
25967
+ "type": "array",
25968
+ "items": {
25969
+ "type": "object",
25970
+ "properties": {
25971
+ "trustListId": {
25972
+ "description": "Optional trust list id reference.",
25973
+ "type": "string"
25974
+ },
25975
+ "url": {
25976
+ "description": "Optional trust list URL reference.",
25977
+ "anyOf": [
25978
+ {
25979
+ "type": "string",
25980
+ "format": "uri"
25981
+ },
25982
+ {
25983
+ "type": "string",
25984
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
25077
25985
  }
25078
25986
  ]
25079
25987
  },
@@ -25128,405 +26036,968 @@ var CONFIG_SCHEMAS = [
25128
26036
  },
25129
26037
  "format": {
25130
26038
  "type": "string",
25131
- "const": "dc+sd-jwt",
25132
- "description": "Credential format discriminator."
25133
- },
25134
- "meta": {
25135
- "type": "object",
25136
- "properties": {
25137
- "vct_values": {
25138
- "minItems": 1,
25139
- "type": "array",
25140
- "items": {
25141
- "type": "string"
25142
- },
25143
- "description": "Accepted VCT values."
25144
- }
25145
- },
25146
- "required": [
25147
- "vct_values"
25148
- ],
25149
- "additionalProperties": false
26039
+ "const": "mso_mdoc",
26040
+ "description": "Credential format discriminator."
26041
+ },
26042
+ "meta": {
26043
+ "type": "object",
26044
+ "properties": {
26045
+ "doctype_value": {
26046
+ "type": "string",
26047
+ "minLength": 1,
26048
+ "description": "Expected mDoc doctype value."
26049
+ }
26050
+ },
26051
+ "required": [
26052
+ "doctype_value"
26053
+ ],
26054
+ "additionalProperties": false
26055
+ },
26056
+ "claims": {
26057
+ "description": "Optional mDoc claim-level constraints.",
26058
+ "type": "array",
26059
+ "items": {
26060
+ "type": "object",
26061
+ "properties": {
26062
+ "id": {
26063
+ "description": "Optional claim query id.",
26064
+ "type": "string"
26065
+ },
26066
+ "path": {
26067
+ "type": "array",
26068
+ "items": {
26069
+ "type": [
26070
+ "string",
26071
+ "number"
26072
+ ]
26073
+ },
26074
+ "description": "Path to the claim value in presented credentials."
26075
+ },
26076
+ "values": {
26077
+ "description": "Optional allowed values for the claim. A disclosed value must equal one of them in type and value.",
26078
+ "minItems": 1,
26079
+ "type": "array",
26080
+ "items": {
26081
+ "anyOf": [
26082
+ {
26083
+ "type": "string"
26084
+ },
26085
+ {
26086
+ "type": "integer",
26087
+ "minimum": -9007199254740991,
26088
+ "maximum": 9007199254740991
26089
+ },
26090
+ {
26091
+ "type": "boolean"
26092
+ }
26093
+ ]
26094
+ }
26095
+ },
26096
+ "intent_to_retain": {
26097
+ "description": "Whether relying party intends to retain the claim.",
26098
+ "type": "boolean"
26099
+ }
26100
+ },
26101
+ "required": [
26102
+ "path"
26103
+ ],
26104
+ "additionalProperties": false
26105
+ }
26106
+ }
26107
+ },
26108
+ "required": [
26109
+ "id",
26110
+ "format",
26111
+ "meta"
26112
+ ],
26113
+ "additionalProperties": false
26114
+ }
26115
+ ]
26116
+ },
26117
+ "description": "Credential queries requested by the verifier."
26118
+ },
26119
+ "credential_sets": {
26120
+ "description": "Optional higher-level credential set requirements.",
26121
+ "type": "array",
26122
+ "items": {
26123
+ "type": "object",
26124
+ "properties": {
26125
+ "options": {
26126
+ "minItems": 1,
26127
+ "type": "array",
26128
+ "items": {
26129
+ "minItems": 1,
26130
+ "type": "array",
26131
+ "items": {
26132
+ "type": "string"
26133
+ }
26134
+ },
26135
+ "description": "Alternative credential query id combinations."
26136
+ },
26137
+ "required": {
26138
+ "description": "Whether this credential set is mandatory.",
26139
+ "type": "boolean"
26140
+ }
26141
+ },
26142
+ "required": [
26143
+ "options"
26144
+ ],
26145
+ "additionalProperties": false
26146
+ }
26147
+ }
26148
+ },
26149
+ "required": [
26150
+ "credentials"
26151
+ ],
26152
+ "additionalProperties": false,
26153
+ "description": "DCQL query defining requested credentials and claims."
26154
+ },
26155
+ "transaction_data": {
26156
+ "description": "Optional transaction data descriptors.",
26157
+ "anyOf": [
26158
+ {
26159
+ "type": "array",
26160
+ "items": {
26161
+ "type": "object",
26162
+ "properties": {
26163
+ "type": {
26164
+ "type": "string",
26165
+ "description": "Transaction data type identifier."
26166
+ },
26167
+ "credential_ids": {
26168
+ "type": "array",
26169
+ "items": {
26170
+ "type": "string"
26171
+ },
26172
+ "description": "Credential query ids this transaction data applies to."
26173
+ },
26174
+ "payload": {
26175
+ "description": "Transaction details. Required for TS12 SCA transaction data."
26176
+ }
26177
+ },
26178
+ "required": [
26179
+ "type",
26180
+ "credential_ids"
26181
+ ],
26182
+ "additionalProperties": {}
26183
+ }
26184
+ },
26185
+ {
26186
+ "type": "null"
26187
+ }
26188
+ ]
26189
+ },
26190
+ "registration_cert": {
26191
+ "description": "Optional registration certificate request settings.",
26192
+ "anyOf": [
26193
+ {
26194
+ "type": "object",
26195
+ "properties": {
26196
+ "id": {
26197
+ "type": "string"
26198
+ },
26199
+ "body": {
26200
+ "type": "object",
26201
+ "properties": {
26202
+ "privacy_policy": {
26203
+ "type": "string"
26204
+ },
26205
+ "support_uri": {
26206
+ "type": "string"
26207
+ },
26208
+ "intermediary": {
26209
+ "type": "string"
26210
+ },
26211
+ "purpose": {
26212
+ "type": "array",
26213
+ "items": {
26214
+ "type": "object",
26215
+ "properties": {
26216
+ "lang": {
26217
+ "type": "string"
26218
+ },
26219
+ "content": {
26220
+ "type": "string"
26221
+ }
26222
+ },
26223
+ "required": [
26224
+ "lang",
26225
+ "content"
26226
+ ],
26227
+ "additionalProperties": false
26228
+ }
26229
+ },
26230
+ "credentials": {
26231
+ "type": "array",
26232
+ "items": {
26233
+ "type": "object",
26234
+ "propertyNames": {
26235
+ "type": "string"
26236
+ },
26237
+ "additionalProperties": {}
26238
+ }
26239
+ },
26240
+ "provides_attestations": {
26241
+ "type": "array",
26242
+ "items": {
26243
+ "type": "string",
26244
+ "minLength": 1
26245
+ }
26246
+ }
26247
+ },
26248
+ "additionalProperties": false
26249
+ },
26250
+ "jwt": {
26251
+ "type": "string"
26252
+ }
26253
+ },
26254
+ "additionalProperties": false
26255
+ },
26256
+ {
26257
+ "type": "null"
26258
+ }
26259
+ ]
26260
+ },
26261
+ "registrationCertImportJwt": {
26262
+ "description": "Optional imported registration certificate JWT.",
26263
+ "type": [
26264
+ "string",
26265
+ "null"
26266
+ ]
26267
+ },
26268
+ "registrationCertImportId": {
26269
+ "description": "Optional registrar-side registration certificate id.",
26270
+ "type": [
26271
+ "string",
26272
+ "null"
26273
+ ]
26274
+ },
26275
+ "registrationCertBodyPrivacyPolicy": {
26276
+ "description": "Optional registration certificate privacy policy URI.",
26277
+ "type": [
26278
+ "string",
26279
+ "null"
26280
+ ]
26281
+ },
26282
+ "registrationCertBodySupportUri": {
26283
+ "description": "Optional registration certificate support URI.",
26284
+ "type": [
26285
+ "string",
26286
+ "null"
26287
+ ]
26288
+ },
26289
+ "registrationCertBodyIntermediary": {
26290
+ "description": "Optional registration certificate intermediary.",
26291
+ "type": [
26292
+ "string",
26293
+ "null"
26294
+ ]
26295
+ },
26296
+ "registrationCertBodyPurpose": {
26297
+ "description": "Optional registration certificate purpose entries.",
26298
+ "anyOf": [
26299
+ {
26300
+ "type": "array",
26301
+ "items": {
26302
+ "type": "object",
26303
+ "properties": {
26304
+ "lang": {
26305
+ "type": "string"
26306
+ },
26307
+ "content": {
26308
+ "type": "string"
26309
+ }
26310
+ },
26311
+ "additionalProperties": false
26312
+ }
26313
+ },
26314
+ {
26315
+ "type": "null"
26316
+ }
26317
+ ]
26318
+ },
26319
+ "webhookEndpointId": {
26320
+ "description": "Optional webhook endpoint id for presentation callbacks.",
26321
+ "type": [
26322
+ "string",
26323
+ "null"
26324
+ ]
26325
+ },
26326
+ "attached": {
26327
+ "description": "Optional attachments included with presentation requests.",
26328
+ "anyOf": [
26329
+ {
26330
+ "type": "array",
26331
+ "items": {
26332
+ "type": "object",
26333
+ "properties": {
26334
+ "format": {
26335
+ "type": "string",
26336
+ "description": "Attachment format identifier."
26337
+ },
26338
+ "data": {
26339
+ "description": "Attachment payload."
26340
+ },
26341
+ "credential_ids": {
26342
+ "description": "Optional credential query ids bound to this attachment.",
26343
+ "type": "array",
26344
+ "items": {
26345
+ "type": "string"
26346
+ }
26347
+ }
26348
+ },
26349
+ "required": [
26350
+ "format",
26351
+ "data"
26352
+ ],
26353
+ "additionalProperties": false
26354
+ }
26355
+ },
26356
+ {
26357
+ "type": "null"
26358
+ }
26359
+ ]
26360
+ },
26361
+ "redirectUri": {
26362
+ "description": "Optional redirect URI after presentation completion.",
26363
+ "type": [
26364
+ "string",
26365
+ "null"
26366
+ ]
26367
+ },
26368
+ "accessKeyChainId": {
26369
+ "description": "Optional key chain id for access token/auth operations.",
26370
+ "type": [
26371
+ "string",
26372
+ "null"
26373
+ ]
26374
+ },
26375
+ "readerAuth": {
26376
+ "description": "Whether reader authentication is required for mDoc requests.",
26377
+ "type": [
26378
+ "boolean",
26379
+ "null"
26380
+ ]
26381
+ }
26382
+ },
26383
+ "required": [
26384
+ "id",
26385
+ "dcql_query"
26386
+ ],
26387
+ "additionalProperties": false,
26388
+ "title": "PresentationConfigCreateDto"
26389
+ }
26390
+ }
26391
+ },
26392
+ {
26393
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
26394
+ "$id": "https://eudiplo.dev/schemas/v4/IssuanceConfigFile.schema.json",
26395
+ "title": "IssuanceConfigFile",
26396
+ "type": "object",
26397
+ "properties": {
26398
+ "$schema": {
26399
+ "type": "string",
26400
+ "const": "https://eudiplo.dev/schemas/v4/IssuanceConfigFile.schema.json"
26401
+ },
26402
+ "metadata": {
26403
+ "type": "object",
26404
+ "properties": {
26405
+ "generation": {
26406
+ "type": "integer",
26407
+ "minimum": 1,
26408
+ "description": "Monotonically increasing configuration generation."
26409
+ },
26410
+ "ownership": {
26411
+ "type": "string",
26412
+ "enum": [
26413
+ "unmanaged",
26414
+ "file-managed"
26415
+ ],
26416
+ "description": "Requested ownership recorded when the document is applied."
26417
+ }
26418
+ },
26419
+ "additionalProperties": false
26420
+ },
26421
+ "spec": {
26422
+ "$ref": "#/$defs/IssuanceConfig"
26423
+ }
26424
+ },
26425
+ "required": [
26426
+ "$schema",
26427
+ "spec"
26428
+ ],
26429
+ "additionalProperties": false,
26430
+ "$defs": {
26431
+ "IssuanceConfig": {
26432
+ "type": "object",
26433
+ "properties": {
26434
+ "batchSize": {
26435
+ "description": "Optional issuance batch size.",
26436
+ "type": "integer",
26437
+ "minimum": 1,
26438
+ "maximum": 9007199254740991
26439
+ },
26440
+ "dPopRequired": {
26441
+ "description": "Require DPoP proofs for issuance endpoints.",
26442
+ "type": "boolean"
26443
+ },
26444
+ "walletAttestationRequired": {
26445
+ "description": "Default wallet attestation requirement for managed authorization servers.",
26446
+ "type": "boolean"
26447
+ },
26448
+ "walletProviderTrustLists": {
26449
+ "description": "Shared wallet provider trust lists for key attestations and default authorization server wallet authentication.",
26450
+ "type": "array",
26451
+ "items": {
26452
+ "type": "object",
26453
+ "properties": {
26454
+ "trustListId": {
26455
+ "type": "string",
26456
+ "minLength": 1
26457
+ },
26458
+ "url": {
26459
+ "description": "URL of the wallet provider trust list.",
26460
+ "type": "string",
26461
+ "format": "uri"
26462
+ },
26463
+ "verifierKey": {
26464
+ "description": "Optional verifier key material used for trust list verification.",
26465
+ "type": "object",
26466
+ "propertyNames": {
26467
+ "type": "string"
26468
+ },
26469
+ "additionalProperties": {}
26470
+ },
26471
+ "verifierKeyPem": {
26472
+ "description": "Optional verifier public key in SPKI PEM form (-----BEGIN PUBLIC KEY-----).",
26473
+ "type": "string",
26474
+ "pattern": "^\\s*-----BEGIN PUBLIC KEY-----[A-Za-z0-9+/=\\s]+-----END PUBLIC KEY-----\\s*$"
26475
+ },
26476
+ "verifierX509Der": {
26477
+ "description": "Optional verifier certificate in DER/base64 form.",
26478
+ "type": "string"
26479
+ }
26480
+ },
26481
+ "additionalProperties": false
26482
+ }
26483
+ },
26484
+ "walletAttestationStatusCheckMode": {
26485
+ "description": "Default status check mode for wallet attestations at managed authorization servers: strict, best_effort (default) or disabled.",
26486
+ "anyOf": [
26487
+ {
26488
+ "type": "string",
26489
+ "enum": [
26490
+ "strict",
26491
+ "best_effort",
26492
+ "disabled"
26493
+ ]
26494
+ },
26495
+ {
26496
+ "type": "null"
26497
+ }
26498
+ ]
26499
+ },
26500
+ "signingKeyId": {
26501
+ "description": "Default signing key chain id for credential issuance.",
26502
+ "type": "string",
26503
+ "minLength": 1
26504
+ },
26505
+ "authorizationServers": {
26506
+ "minItems": 1,
26507
+ "type": "array",
26508
+ "items": {
26509
+ "oneOf": [
26510
+ {
26511
+ "type": "object",
26512
+ "properties": {
26513
+ "type": {
26514
+ "type": "string",
26515
+ "const": "external",
26516
+ "description": "Use an externally managed authorization server."
26517
+ },
26518
+ "id": {
26519
+ "type": "string",
26520
+ "minLength": 1,
26521
+ "description": "Authorization server identifier."
26522
+ },
26523
+ "issuer": {
26524
+ "type": "string",
26525
+ "format": "uri",
26526
+ "description": "Issuer URL for the external authorization server."
26527
+ },
26528
+ "sessionBinding": {
26529
+ "description": "Explicit mapping from an external access-token claim to an existing issuance session.",
26530
+ "type": "object",
26531
+ "properties": {
26532
+ "method": {
26533
+ "type": "string",
26534
+ "const": "access_token_claim",
26535
+ "description": "Read the correlation value from a configured access-token claim."
25150
26536
  },
25151
- "claims": {
25152
- "description": "Optional claim-level constraints.",
25153
- "type": "array",
25154
- "items": {
25155
- "type": "object",
25156
- "properties": {
25157
- "id": {
25158
- "description": "Optional claim query id.",
25159
- "type": "string"
25160
- },
25161
- "path": {
25162
- "type": "array",
25163
- "items": {
25164
- "type": [
25165
- "string",
25166
- "number"
25167
- ]
25168
- },
25169
- "description": "Path to the claim value in presented credentials."
25170
- },
25171
- "values": {
25172
- "description": "Optional allowed values for the claim. A disclosed value must equal one of them in type and value.",
25173
- "minItems": 1,
25174
- "type": "array",
25175
- "items": {
25176
- "anyOf": [
25177
- {
25178
- "type": "string"
25179
- },
25180
- {
25181
- "type": "integer",
25182
- "minimum": -9007199254740991,
25183
- "maximum": 9007199254740991
25184
- },
25185
- {
25186
- "type": "boolean"
25187
- }
25188
- ]
25189
- }
25190
- }
25191
- },
25192
- "required": [
25193
- "path"
25194
- ],
25195
- "additionalProperties": false
25196
- }
26537
+ "claim": {
26538
+ "type": "string",
26539
+ "minLength": 1,
26540
+ "description": "Claim name that contains the issuance-session correlation value."
25197
26541
  }
25198
26542
  },
25199
26543
  "required": [
25200
- "id",
25201
- "format",
25202
- "meta"
26544
+ "method",
26545
+ "claim"
25203
26546
  ],
25204
26547
  "additionalProperties": false
25205
26548
  },
25206
- {
26549
+ "label": {
26550
+ "description": "Optional display label for UI selection.",
26551
+ "type": "string"
26552
+ },
26553
+ "enabled": {
26554
+ "description": "Whether this authorization server entry is enabled.",
26555
+ "type": "boolean"
26556
+ }
26557
+ },
26558
+ "required": [
26559
+ "type",
26560
+ "id",
26561
+ "issuer"
26562
+ ],
26563
+ "additionalProperties": false
26564
+ },
26565
+ {
26566
+ "type": "object",
26567
+ "properties": {
26568
+ "type": {
26569
+ "type": "string",
26570
+ "const": "oid4vp",
26571
+ "description": "Use OID4VP-based authorization server chaining."
26572
+ },
26573
+ "id": {
26574
+ "type": "string",
26575
+ "minLength": 1,
26576
+ "description": "Authorization server identifier."
26577
+ },
26578
+ "presentationConfigId": {
26579
+ "type": "string",
26580
+ "minLength": 1,
26581
+ "description": "Presentation configuration id used during authorization."
26582
+ },
26583
+ "immediateWalletRedirect": {
26584
+ "description": "Redirect wallets immediately after authorization response creation.",
26585
+ "type": "boolean"
26586
+ },
26587
+ "token": {
26588
+ "description": "Optional token issuance settings.",
26589
+ "type": "object",
26590
+ "properties": {
26591
+ "lifetimeSeconds": {
26592
+ "description": "Access token lifetime in seconds.",
26593
+ "type": "number",
26594
+ "minimum": 60
26595
+ },
26596
+ "signingKeyId": {
26597
+ "description": "Optional key chain id used to sign issued tokens.",
26598
+ "type": "string",
26599
+ "minLength": 1
26600
+ },
26601
+ "refreshTokenEnabled": {
26602
+ "description": "Enable issuing refresh tokens.",
26603
+ "type": "boolean"
26604
+ },
26605
+ "refreshTokenExpiresInSeconds": {
26606
+ "description": "Refresh token lifetime in seconds.",
26607
+ "type": "number",
26608
+ "minimum": 60
26609
+ }
26610
+ },
26611
+ "additionalProperties": false
26612
+ },
26613
+ "requireDPoP": {
26614
+ "description": "Require DPoP proofs for token/credential requests.",
26615
+ "type": "boolean"
26616
+ },
26617
+ "walletAttestationRequired": {
26618
+ "description": "Require wallet attestation for this authorization server.",
26619
+ "type": "boolean"
26620
+ },
26621
+ "walletProviderTrustLists": {
26622
+ "description": "Optional wallet provider trust list references for this authorization server.",
26623
+ "type": "array",
26624
+ "items": {
26625
+ "type": "object",
26626
+ "properties": {
26627
+ "trustListId": {
26628
+ "type": "string",
26629
+ "minLength": 1
26630
+ },
26631
+ "url": {
26632
+ "description": "URL of the wallet provider trust list.",
26633
+ "type": "string",
26634
+ "format": "uri"
26635
+ },
26636
+ "verifierKey": {
26637
+ "description": "Optional verifier key material used for trust list verification.",
26638
+ "type": "object",
26639
+ "propertyNames": {
26640
+ "type": "string"
26641
+ },
26642
+ "additionalProperties": {}
26643
+ },
26644
+ "verifierKeyPem": {
26645
+ "description": "Optional verifier public key in SPKI PEM form (-----BEGIN PUBLIC KEY-----).",
26646
+ "type": "string",
26647
+ "pattern": "^\\s*-----BEGIN PUBLIC KEY-----[A-Za-z0-9+/=\\s]+-----END PUBLIC KEY-----\\s*$"
26648
+ },
26649
+ "verifierX509Der": {
26650
+ "description": "Optional verifier certificate in DER/base64 form.",
26651
+ "type": "string"
26652
+ }
26653
+ },
26654
+ "additionalProperties": false
26655
+ }
26656
+ },
26657
+ "walletAttestationStatusCheckMode": {
26658
+ "description": "Status check mode for wallet attestations at this authorization server. Omit to inherit the issuance default.",
26659
+ "type": "string",
26660
+ "enum": [
26661
+ "strict",
26662
+ "best_effort",
26663
+ "disabled"
26664
+ ]
26665
+ },
26666
+ "label": {
26667
+ "description": "Optional display label for UI selection.",
26668
+ "type": "string"
26669
+ },
26670
+ "enabled": {
26671
+ "description": "Whether this authorization server entry is enabled.",
26672
+ "type": "boolean"
26673
+ }
26674
+ },
26675
+ "required": [
26676
+ "type",
26677
+ "id",
26678
+ "presentationConfigId"
26679
+ ],
26680
+ "additionalProperties": false
26681
+ },
26682
+ {
26683
+ "type": "object",
26684
+ "properties": {
26685
+ "type": {
26686
+ "type": "string",
26687
+ "const": "chained",
26688
+ "description": "Use upstream OIDC as authorization source."
26689
+ },
26690
+ "id": {
26691
+ "type": "string",
26692
+ "minLength": 1,
26693
+ "description": "Authorization server identifier."
26694
+ },
26695
+ "upstream": {
25207
26696
  "type": "object",
25208
26697
  "properties": {
25209
- "id": {
26698
+ "issuer": {
25210
26699
  "type": "string",
25211
- "minLength": 1,
25212
- "pattern": "^[A-Za-z0-9_-]+$",
25213
- "description": "Credential query identifier."
26700
+ "format": "uri",
26701
+ "description": "Upstream OIDC issuer URL."
25214
26702
  },
25215
- "multiple": {
25216
- "description": "Allow multiple matching credentials.",
25217
- "type": "boolean"
26703
+ "clientId": {
26704
+ "type": "string",
26705
+ "minLength": 1,
26706
+ "description": "Client id for upstream OIDC authentication."
25218
26707
  },
25219
- "claim_sets": {
25220
- "description": "Optional claim set constraints.",
25221
- "type": "array",
25222
- "items": {
25223
- "type": "array",
25224
- "items": {
25225
- "type": "string"
25226
- }
25227
- }
26708
+ "clientSecret": {
26709
+ "description": "Optional client secret for upstream OIDC authentication.",
26710
+ "type": "string",
26711
+ "minLength": 1
25228
26712
  },
25229
- "trusted_authorities": {
25230
- "description": "Optional trusted authority constraints.",
26713
+ "scopes": {
26714
+ "description": "Optional scopes requested from the upstream issuer.",
25231
26715
  "type": "array",
25232
26716
  "items": {
25233
- "oneOf": [
25234
- {
25235
- "type": "object",
25236
- "properties": {
25237
- "type": {
25238
- "type": "string",
25239
- "const": "etsi_tl",
25240
- "description": "Trusted authority type discriminator for ETSI trust lists."
25241
- },
25242
- "values": {
25243
- "type": "array",
25244
- "items": {
25245
- "type": "object",
25246
- "properties": {
25247
- "trustListId": {
25248
- "description": "Optional trust list id reference.",
25249
- "type": "string"
25250
- },
25251
- "url": {
25252
- "description": "Optional trust list URL reference.",
25253
- "anyOf": [
25254
- {
25255
- "type": "string",
25256
- "format": "uri"
25257
- },
25258
- {
25259
- "type": "string",
25260
- "pattern": "^<TENANT_URL>(?:\\/.*)?$"
25261
- }
25262
- ]
25263
- },
25264
- "verifierKey": {
25265
- "description": "Optional verifier key material.",
25266
- "type": "object",
25267
- "propertyNames": {
25268
- "type": "string"
25269
- },
25270
- "additionalProperties": {}
25271
- },
25272
- "verifierX509Der": {
25273
- "description": "Optional verifier certificate in DER/base64 form.",
25274
- "type": "string"
25275
- }
25276
- },
25277
- "additionalProperties": false
25278
- },
25279
- "description": "Trust list references for ETSI TL verification."
25280
- }
25281
- },
25282
- "required": [
25283
- "type",
25284
- "values"
25285
- ],
25286
- "additionalProperties": false
25287
- },
25288
- {
25289
- "type": "object",
25290
- "properties": {
25291
- "type": {
25292
- "type": "string",
25293
- "const": "openid_federation",
25294
- "description": "Trusted authority type discriminator for OpenID Federation."
25295
- },
25296
- "values": {
25297
- "type": "array",
25298
- "items": {
25299
- "type": "string"
25300
- },
25301
- "description": "OpenID Federation authority identifiers."
25302
- }
25303
- },
25304
- "required": [
25305
- "type",
25306
- "values"
25307
- ],
25308
- "additionalProperties": false
25309
- }
25310
- ]
26717
+ "type": "string",
26718
+ "minLength": 1
25311
26719
  }
26720
+ }
26721
+ },
26722
+ "required": [
26723
+ "issuer",
26724
+ "clientId"
26725
+ ],
26726
+ "additionalProperties": false,
26727
+ "description": "Upstream OIDC connection settings."
26728
+ },
26729
+ "token": {
26730
+ "description": "Optional token issuance settings.",
26731
+ "type": "object",
26732
+ "properties": {
26733
+ "lifetimeSeconds": {
26734
+ "description": "Access token lifetime in seconds.",
26735
+ "type": "number",
26736
+ "minimum": 60
25312
26737
  },
25313
- "format": {
26738
+ "signingKeyId": {
26739
+ "description": "Optional key chain id used to sign issued tokens.",
25314
26740
  "type": "string",
25315
- "const": "mso_mdoc",
25316
- "description": "Credential format discriminator."
26741
+ "minLength": 1
25317
26742
  },
25318
- "meta": {
25319
- "type": "object",
25320
- "properties": {
25321
- "doctype_value": {
25322
- "type": "string",
25323
- "minLength": 1,
25324
- "description": "Expected mDoc doctype value."
25325
- }
25326
- },
25327
- "required": [
25328
- "doctype_value"
25329
- ],
25330
- "additionalProperties": false
26743
+ "refreshTokenEnabled": {
26744
+ "description": "Enable issuing refresh tokens.",
26745
+ "type": "boolean"
25331
26746
  },
25332
- "claims": {
25333
- "description": "Optional mDoc claim-level constraints.",
25334
- "type": "array",
25335
- "items": {
25336
- "type": "object",
25337
- "properties": {
25338
- "id": {
25339
- "description": "Optional claim query id.",
25340
- "type": "string"
25341
- },
25342
- "path": {
25343
- "type": "array",
25344
- "items": {
25345
- "type": [
25346
- "string",
25347
- "number"
25348
- ]
25349
- },
25350
- "description": "Path to the claim value in presented credentials."
25351
- },
25352
- "values": {
25353
- "description": "Optional allowed values for the claim. A disclosed value must equal one of them in type and value.",
25354
- "minItems": 1,
25355
- "type": "array",
25356
- "items": {
25357
- "anyOf": [
25358
- {
25359
- "type": "string"
25360
- },
25361
- {
25362
- "type": "integer",
25363
- "minimum": -9007199254740991,
25364
- "maximum": 9007199254740991
25365
- },
25366
- {
25367
- "type": "boolean"
25368
- }
25369
- ]
25370
- }
25371
- },
25372
- "intent_to_retain": {
25373
- "description": "Whether relying party intends to retain the claim.",
25374
- "type": "boolean"
25375
- }
25376
- },
25377
- "required": [
25378
- "path"
25379
- ],
25380
- "additionalProperties": false
25381
- }
26747
+ "refreshTokenExpiresInSeconds": {
26748
+ "description": "Refresh token lifetime in seconds.",
26749
+ "type": "number",
26750
+ "minimum": 60
25382
26751
  }
25383
26752
  },
25384
- "required": [
25385
- "id",
25386
- "format",
25387
- "meta"
25388
- ],
25389
26753
  "additionalProperties": false
25390
- }
25391
- ]
25392
- },
25393
- "description": "Credential queries requested by the verifier."
25394
- },
25395
- "credential_sets": {
25396
- "description": "Optional higher-level credential set requirements.",
25397
- "type": "array",
25398
- "items": {
25399
- "type": "object",
25400
- "properties": {
25401
- "options": {
25402
- "minItems": 1,
26754
+ },
26755
+ "requireDPoP": {
26756
+ "description": "Require DPoP proofs for token/credential requests.",
26757
+ "type": "boolean"
26758
+ },
26759
+ "walletAttestationRequired": {
26760
+ "description": "Require wallet attestation for this authorization server.",
26761
+ "type": "boolean"
26762
+ },
26763
+ "walletProviderTrustLists": {
26764
+ "description": "Optional wallet provider trust list references for this authorization server.",
25403
26765
  "type": "array",
25404
26766
  "items": {
25405
- "minItems": 1,
25406
- "type": "array",
25407
- "items": {
25408
- "type": "string"
25409
- }
25410
- },
25411
- "description": "Alternative credential query id combinations."
26767
+ "type": "object",
26768
+ "properties": {
26769
+ "trustListId": {
26770
+ "type": "string",
26771
+ "minLength": 1
26772
+ },
26773
+ "url": {
26774
+ "description": "URL of the wallet provider trust list.",
26775
+ "type": "string",
26776
+ "format": "uri"
26777
+ },
26778
+ "verifierKey": {
26779
+ "description": "Optional verifier key material used for trust list verification.",
26780
+ "type": "object",
26781
+ "propertyNames": {
26782
+ "type": "string"
26783
+ },
26784
+ "additionalProperties": {}
26785
+ },
26786
+ "verifierKeyPem": {
26787
+ "description": "Optional verifier public key in SPKI PEM form (-----BEGIN PUBLIC KEY-----).",
26788
+ "type": "string",
26789
+ "pattern": "^\\s*-----BEGIN PUBLIC KEY-----[A-Za-z0-9+/=\\s]+-----END PUBLIC KEY-----\\s*$"
26790
+ },
26791
+ "verifierX509Der": {
26792
+ "description": "Optional verifier certificate in DER/base64 form.",
26793
+ "type": "string"
26794
+ }
26795
+ },
26796
+ "additionalProperties": false
26797
+ }
25412
26798
  },
25413
- "required": {
25414
- "description": "Whether this credential set is mandatory.",
26799
+ "walletAttestationStatusCheckMode": {
26800
+ "description": "Status check mode for wallet attestations at this authorization server. Omit to inherit the issuance default.",
26801
+ "type": "string",
26802
+ "enum": [
26803
+ "strict",
26804
+ "best_effort",
26805
+ "disabled"
26806
+ ]
26807
+ },
26808
+ "label": {
26809
+ "description": "Optional display label for UI selection.",
26810
+ "type": "string"
26811
+ },
26812
+ "enabled": {
26813
+ "description": "Whether this authorization server entry is enabled.",
25415
26814
  "type": "boolean"
25416
26815
  }
25417
26816
  },
25418
26817
  "required": [
25419
- "options"
26818
+ "type",
26819
+ "id",
26820
+ "upstream"
25420
26821
  ],
25421
26822
  "additionalProperties": false
25422
- }
25423
- }
25424
- },
25425
- "required": [
25426
- "credentials"
25427
- ],
25428
- "additionalProperties": false,
25429
- "description": "DCQL query defining requested credentials and claims."
25430
- },
25431
- "transaction_data": {
25432
- "description": "Optional transaction data descriptors.",
25433
- "anyOf": [
25434
- {
25435
- "type": "array",
25436
- "items": {
26823
+ },
26824
+ {
25437
26825
  "type": "object",
25438
26826
  "properties": {
25439
26827
  "type": {
25440
26828
  "type": "string",
25441
- "description": "Transaction data type identifier."
26829
+ "const": "built-in",
26830
+ "description": "Use EUDIPLO built-in authorization server."
25442
26831
  },
25443
- "credential_ids": {
26832
+ "id": {
26833
+ "type": "string",
26834
+ "minLength": 1,
26835
+ "description": "Authorization server identifier."
26836
+ },
26837
+ "token": {
26838
+ "description": "Optional token issuance settings.",
26839
+ "type": "object",
26840
+ "properties": {
26841
+ "lifetimeSeconds": {
26842
+ "description": "Access token lifetime in seconds.",
26843
+ "type": "number",
26844
+ "minimum": 60
26845
+ },
26846
+ "signingKeyId": {
26847
+ "description": "Optional key chain id used to sign issued tokens.",
26848
+ "type": "string",
26849
+ "minLength": 1
26850
+ },
26851
+ "refreshTokenEnabled": {
26852
+ "description": "Enable issuing refresh tokens.",
26853
+ "type": "boolean"
26854
+ },
26855
+ "refreshTokenExpiresInSeconds": {
26856
+ "description": "Refresh token lifetime in seconds.",
26857
+ "type": "number",
26858
+ "minimum": 60
26859
+ }
26860
+ },
26861
+ "additionalProperties": false
26862
+ },
26863
+ "requireDPoP": {
26864
+ "description": "Require DPoP proofs for token/credential requests.",
26865
+ "type": "boolean"
26866
+ },
26867
+ "walletAttestationRequired": {
26868
+ "description": "Require wallet attestation for this authorization server.",
26869
+ "type": "boolean"
26870
+ },
26871
+ "walletProviderTrustLists": {
26872
+ "description": "Optional wallet provider trust list references for this authorization server.",
25444
26873
  "type": "array",
25445
26874
  "items": {
25446
- "type": "string"
25447
- },
25448
- "description": "Credential query ids this transaction data applies to."
26875
+ "type": "object",
26876
+ "properties": {
26877
+ "trustListId": {
26878
+ "type": "string",
26879
+ "minLength": 1
26880
+ },
26881
+ "url": {
26882
+ "description": "URL of the wallet provider trust list.",
26883
+ "type": "string",
26884
+ "format": "uri"
26885
+ },
26886
+ "verifierKey": {
26887
+ "description": "Optional verifier key material used for trust list verification.",
26888
+ "type": "object",
26889
+ "propertyNames": {
26890
+ "type": "string"
26891
+ },
26892
+ "additionalProperties": {}
26893
+ },
26894
+ "verifierKeyPem": {
26895
+ "description": "Optional verifier public key in SPKI PEM form (-----BEGIN PUBLIC KEY-----).",
26896
+ "type": "string",
26897
+ "pattern": "^\\s*-----BEGIN PUBLIC KEY-----[A-Za-z0-9+/=\\s]+-----END PUBLIC KEY-----\\s*$"
26898
+ },
26899
+ "verifierX509Der": {
26900
+ "description": "Optional verifier certificate in DER/base64 form.",
26901
+ "type": "string"
26902
+ }
26903
+ },
26904
+ "additionalProperties": false
26905
+ }
25449
26906
  },
25450
- "payload": {
25451
- "description": "Transaction details. Required for TS12 SCA transaction data."
26907
+ "walletAttestationStatusCheckMode": {
26908
+ "description": "Status check mode for wallet attestations at this authorization server. Omit to inherit the issuance default.",
26909
+ "type": "string",
26910
+ "enum": [
26911
+ "strict",
26912
+ "best_effort",
26913
+ "disabled"
26914
+ ]
26915
+ },
26916
+ "label": {
26917
+ "description": "Optional display label for UI selection.",
26918
+ "type": "string"
26919
+ },
26920
+ "enabled": {
26921
+ "description": "Whether this authorization server entry is enabled.",
26922
+ "type": "boolean"
25452
26923
  }
25453
26924
  },
25454
26925
  "required": [
25455
26926
  "type",
25456
- "credential_ids"
26927
+ "id"
25457
26928
  ],
25458
- "additionalProperties": {}
26929
+ "additionalProperties": false
25459
26930
  }
25460
- },
25461
- {
25462
- "type": "null"
25463
- }
25464
- ]
26931
+ ],
26932
+ "description": "Supported authorization server configurations."
26933
+ },
26934
+ "description": "Configured authorization server entries."
25465
26935
  },
25466
- "registration_cert": {
25467
- "description": "Optional registration certificate request settings.",
26936
+ "federation": {
26937
+ "description": "Optional OpenID Federation settings.",
25468
26938
  "anyOf": [
25469
26939
  {
25470
26940
  "type": "object",
25471
26941
  "properties": {
25472
- "id": {
26942
+ "role": {
26943
+ "description": "Federation role for this issuer.",
26944
+ "type": "string",
26945
+ "enum": [
26946
+ "trust_anchor",
26947
+ "intermediate",
26948
+ "leaf"
26949
+ ]
26950
+ },
26951
+ "mode": {
26952
+ "description": "Federation operation mode.",
26953
+ "type": "string",
26954
+ "enum": [
26955
+ "federation-only",
26956
+ "hybrid"
26957
+ ]
26958
+ },
26959
+ "entityId": {
26960
+ "description": "Optional local federation entity id.",
25473
26961
  "type": "string"
25474
26962
  },
25475
- "body": {
25476
- "type": "object",
25477
- "properties": {
25478
- "privacy_policy": {
25479
- "type": "string"
25480
- },
25481
- "support_uri": {
25482
- "type": "string"
25483
- },
25484
- "intermediary": {
25485
- "type": "string"
25486
- },
25487
- "purpose": {
25488
- "type": "array",
25489
- "items": {
25490
- "type": "object",
25491
- "properties": {
25492
- "lang": {
25493
- "type": "string"
25494
- },
25495
- "content": {
25496
- "type": "string"
25497
- }
25498
- },
25499
- "required": [
25500
- "lang",
25501
- "content"
25502
- ],
25503
- "additionalProperties": false
25504
- }
25505
- },
25506
- "credentials": {
25507
- "type": "array",
25508
- "items": {
25509
- "type": "object",
25510
- "propertyNames": {
25511
- "type": "string"
25512
- },
25513
- "additionalProperties": {}
25514
- }
25515
- },
25516
- "provides_attestations": {
25517
- "type": "array",
25518
- "items": {
26963
+ "enforceSigningPolicy": {
26964
+ "description": "Enforce strict signing policy checks.",
26965
+ "type": "boolean"
26966
+ },
26967
+ "cacheTtlSeconds": {
26968
+ "description": "Cache time-to-live for federation metadata in seconds.",
26969
+ "type": "integer",
26970
+ "minimum": 1,
26971
+ "maximum": 9007199254740991
26972
+ },
26973
+ "trustAnchors": {
26974
+ "type": "array",
26975
+ "items": {
26976
+ "type": "object",
26977
+ "properties": {
26978
+ "entityId": {
26979
+ "type": "string",
26980
+ "minLength": 1,
26981
+ "description": "Federation trust anchor entity id."
26982
+ },
26983
+ "entityConfigurationUri": {
25519
26984
  "type": "string",
25520
- "minLength": 1
26985
+ "format": "uri",
26986
+ "description": "Entity configuration URI for the trust anchor."
25521
26987
  }
25522
- }
26988
+ },
26989
+ "required": [
26990
+ "entityId",
26991
+ "entityConfigurationUri"
26992
+ ],
26993
+ "additionalProperties": false
25523
26994
  },
25524
- "additionalProperties": false
25525
- },
25526
- "jwt": {
25527
- "type": "string"
26995
+ "description": "Federation trust anchors."
25528
26996
  }
25529
26997
  },
26998
+ "required": [
26999
+ "trustAnchors"
27000
+ ],
25530
27001
  "additionalProperties": false
25531
27002
  },
25532
27003
  {
@@ -25534,146 +27005,137 @@ var CONFIG_SCHEMAS = [
25534
27005
  }
25535
27006
  ]
25536
27007
  },
25537
- "registrationCertImportJwt": {
25538
- "description": "Optional imported registration certificate JWT.",
25539
- "type": [
25540
- "string",
25541
- "null"
25542
- ]
25543
- },
25544
- "registrationCertImportId": {
25545
- "description": "Optional registrar-side registration certificate id.",
25546
- "type": [
25547
- "string",
25548
- "null"
25549
- ]
25550
- },
25551
- "registrationCertBodyPrivacyPolicy": {
25552
- "description": "Optional registration certificate privacy policy URI.",
25553
- "type": [
25554
- "string",
25555
- "null"
25556
- ]
25557
- },
25558
- "registrationCertBodySupportUri": {
25559
- "description": "Optional registration certificate support URI.",
25560
- "type": [
25561
- "string",
25562
- "null"
25563
- ]
25564
- },
25565
- "registrationCertBodyIntermediary": {
25566
- "description": "Optional registration certificate intermediary.",
25567
- "type": [
25568
- "string",
25569
- "null"
25570
- ]
25571
- },
25572
- "registrationCertBodyPurpose": {
25573
- "description": "Optional registration certificate purpose entries.",
27008
+ "registrationCertificate": {
27009
+ "description": "Optional registration certificate settings.",
25574
27010
  "anyOf": [
25575
27011
  {
25576
- "type": "array",
25577
- "items": {
25578
- "type": "object",
25579
- "properties": {
25580
- "lang": {
25581
- "type": "string"
25582
- },
25583
- "content": {
25584
- "type": "string"
25585
- }
27012
+ "type": "object",
27013
+ "properties": {
27014
+ "enabled": {
27015
+ "description": "Enable issuer registration certificate support.",
27016
+ "type": "boolean"
25586
27017
  },
25587
- "additionalProperties": false
25588
- }
27018
+ "mode": {
27019
+ "description": "How registration certificate data is provided.",
27020
+ "type": "string",
27021
+ "enum": [
27022
+ "import",
27023
+ "generate"
27024
+ ]
27025
+ },
27026
+ "jwt": {
27027
+ "description": "Optional registration certificate JWT when using import mode.",
27028
+ "type": "string"
27029
+ },
27030
+ "privacyPolicy": {
27031
+ "description": "Optional privacy policy URI.",
27032
+ "type": "string"
27033
+ },
27034
+ "supportUri": {
27035
+ "description": "Optional support URI.",
27036
+ "type": "string"
27037
+ }
27038
+ },
27039
+ "additionalProperties": false
25589
27040
  },
25590
27041
  {
25591
27042
  "type": "null"
25592
27043
  }
25593
27044
  ]
25594
27045
  },
25595
- "webhookEndpointId": {
25596
- "description": "Optional webhook endpoint id for presentation callbacks.",
25597
- "type": [
25598
- "string",
25599
- "null"
25600
- ]
25601
- },
25602
- "attached": {
25603
- "description": "Optional attachments included with presentation requests.",
25604
- "anyOf": [
25605
- {
25606
- "type": "array",
25607
- "items": {
27046
+ "display": {
27047
+ "description": "Localized issuer metadata shown to wallets.",
27048
+ "type": "array",
27049
+ "items": {
27050
+ "type": "object",
27051
+ "properties": {
27052
+ "name": {
27053
+ "description": "Issuer display name.",
27054
+ "type": "string"
27055
+ },
27056
+ "locale": {
27057
+ "description": "Locale tag for this display entry.",
27058
+ "type": "string"
27059
+ },
27060
+ "logo": {
27061
+ "description": "Optional issuer logo metadata.",
25608
27062
  "type": "object",
25609
27063
  "properties": {
25610
- "format": {
27064
+ "uri": {
25611
27065
  "type": "string",
25612
- "description": "Attachment format identifier."
25613
- },
25614
- "data": {
25615
- "description": "Attachment payload."
27066
+ "minLength": 1,
27067
+ "description": "Logo URI."
25616
27068
  },
25617
- "credential_ids": {
25618
- "description": "Optional credential query ids bound to this attachment.",
25619
- "type": "array",
25620
- "items": {
25621
- "type": "string"
25622
- }
27069
+ "alt_text": {
27070
+ "description": "Optional localized alternative text.",
27071
+ "type": "string"
25623
27072
  }
25624
27073
  },
25625
27074
  "required": [
25626
- "format",
25627
- "data"
27075
+ "uri"
25628
27076
  ],
25629
- "additionalProperties": false
27077
+ "additionalProperties": {}
25630
27078
  }
25631
27079
  },
27080
+ "additionalProperties": {}
27081
+ }
27082
+ },
27083
+ "notificationEndpointEnabled": {
27084
+ "description": "Whether the OID4VCI notification endpoint is exposed for this issuance configuration.",
27085
+ "type": "boolean"
27086
+ },
27087
+ "credentialResponseEncryption": {
27088
+ "description": "Enable encrypted credential responses.",
27089
+ "type": "boolean"
27090
+ },
27091
+ "credentialRequestEncryption": {
27092
+ "description": "Require encrypted credential requests.",
27093
+ "type": "boolean"
27094
+ },
27095
+ "txCodeMaxAttempts": {
27096
+ "description": "Maximum verification attempts for transaction codes. Null resets to defaults.",
27097
+ "anyOf": [
27098
+ {
27099
+ "type": "integer",
27100
+ "minimum": 1,
27101
+ "maximum": 9007199254740991
27102
+ },
25632
27103
  {
25633
27104
  "type": "null"
25634
27105
  }
25635
27106
  ]
25636
27107
  },
25637
- "redirectUri": {
25638
- "description": "Optional redirect URI after presentation completion.",
25639
- "type": [
25640
- "string",
25641
- "null"
25642
- ]
25643
- },
25644
- "accessKeyChainId": {
25645
- "description": "Optional key chain id for access token/auth operations.",
25646
- "type": [
25647
- "string",
25648
- "null"
25649
- ]
25650
- },
25651
- "readerAuth": {
25652
- "description": "Whether reader authentication is required for mDoc requests.",
25653
- "type": [
25654
- "boolean",
25655
- "null"
27108
+ "offerLifetimeSeconds": {
27109
+ "description": "Default lifetime of credential offers in seconds. Can be overridden per offer request. Null or unset: offers do not expire.",
27110
+ "anyOf": [
27111
+ {
27112
+ "type": "integer",
27113
+ "minimum": 1,
27114
+ "maximum": 9007199254740991
27115
+ },
27116
+ {
27117
+ "type": "null"
27118
+ }
25656
27119
  ]
25657
27120
  }
25658
27121
  },
25659
27122
  "required": [
25660
- "id",
25661
- "dcql_query"
27123
+ "authorizationServers"
25662
27124
  ],
25663
27125
  "additionalProperties": false,
25664
- "title": "PresentationConfigCreateDto"
27126
+ "title": "IssuanceConfig"
25665
27127
  }
25666
27128
  }
25667
27129
  },
25668
27130
  {
25669
27131
  "$schema": "https://json-schema.org/draft/2020-12/schema",
25670
- "$id": "https://eudiplo.dev/schemas/v4/IssuanceConfigFile.schema.json",
27132
+ "$id": "https://eudiplo.dev/schemas/v5/IssuanceConfigFile.schema.json",
25671
27133
  "title": "IssuanceConfigFile",
25672
27134
  "type": "object",
25673
27135
  "properties": {
25674
27136
  "$schema": {
25675
27137
  "type": "string",
25676
- "const": "https://eudiplo.dev/schemas/v4/IssuanceConfigFile.schema.json"
27138
+ "const": "https://eudiplo.dev/schemas/v5/IssuanceConfigFile.schema.json"
25677
27139
  },
25678
27140
  "metadata": {
25679
27141
  "type": "object",
@@ -26233,8 +27695,9 @@ var CONFIG_SCHEMAS = [
26233
27695
  ]
26234
27696
  },
26235
27697
  "entityId": {
26236
- "description": "Optional local federation entity id.",
26237
- "type": "string"
27698
+ "description": "Entity Identifier of the tenant's federation entity, usually {PUBLIC_URL}/issuers/{tenantId}: an https URL with a host and without query or fragment (OpenID Federation 1.0 Section 1.2). http is accepted only when OUTBOUND_URL_ALLOW_HTTP is true.",
27699
+ "type": "string",
27700
+ "pattern": "^(https?:\\/\\/[^\\s?#]+)?$"
26238
27701
  },
26239
27702
  "enforceSigningPolicy": {
26240
27703
  "description": "Enforce strict signing policy checks.",
@@ -26269,6 +27732,80 @@ var CONFIG_SCHEMAS = [
26269
27732
  "additionalProperties": false
26270
27733
  },
26271
27734
  "description": "Federation trust anchors."
27735
+ },
27736
+ "entityTypes": {
27737
+ "description": "Roles the entity configuration publishes metadata for. Defaults to openid_credential_issuer.",
27738
+ "minItems": 1,
27739
+ "type": "array",
27740
+ "items": {
27741
+ "type": "string",
27742
+ "enum": [
27743
+ "openid_credential_issuer",
27744
+ "openid_credential_verifier"
27745
+ ]
27746
+ }
27747
+ },
27748
+ "authorityHints": {
27749
+ "description": "authority_hints of the entity configuration: the superiors that issue a subordinate statement about this entity. Defaults to the trust anchor entity ids.",
27750
+ "type": "array",
27751
+ "items": {
27752
+ "type": "string",
27753
+ "format": "uri"
27754
+ }
27755
+ },
27756
+ "entityKeyChainId": {
27757
+ "description": "Key chain with usage type 'federation' that signs the entity configuration. Without it, a federation key chain of the tenant is used; set it when the tenant has several.",
27758
+ "type": "string",
27759
+ "minLength": 1
27760
+ },
27761
+ "entityConfigurationLifetimeSeconds": {
27762
+ "description": "Lifetime (exp - iat) of the entity configuration in seconds. Defaults to 86400.",
27763
+ "type": "integer",
27764
+ "minimum": 60,
27765
+ "maximum": 31536e3
27766
+ },
27767
+ "trustMarks": {
27768
+ "description": "Trust mark JWTs issued to this entity, published in the entity configuration.",
27769
+ "type": "array",
27770
+ "items": {
27771
+ "type": "string",
27772
+ "minLength": 1
27773
+ }
27774
+ },
27775
+ "entityMetadata": {
27776
+ "description": "Informational federation_entity metadata of the entity configuration.",
27777
+ "type": "object",
27778
+ "properties": {
27779
+ "organization_name": {
27780
+ "type": "string",
27781
+ "minLength": 1
27782
+ },
27783
+ "contacts": {
27784
+ "minItems": 1,
27785
+ "type": "array",
27786
+ "items": {
27787
+ "type": "string",
27788
+ "minLength": 1
27789
+ }
27790
+ },
27791
+ "logo_uri": {
27792
+ "type": "string",
27793
+ "format": "uri"
27794
+ },
27795
+ "policy_uri": {
27796
+ "type": "string",
27797
+ "format": "uri"
27798
+ },
27799
+ "homepage_uri": {
27800
+ "type": "string",
27801
+ "format": "uri"
27802
+ }
27803
+ },
27804
+ "additionalProperties": false
27805
+ },
27806
+ "includeTrustChain": {
27807
+ "description": "Add the trust chain of this entity as trust_chain header to federation SD-JWT VCs and OID4VP request objects.",
27808
+ "type": "boolean"
26272
27809
  }
26273
27810
  },
26274
27811
  "required": [
@@ -29183,7 +30720,7 @@ function createDeploymentCommands(context, setExitCode) {
29183
30720
  // package.json
29184
30721
  var package_default = {
29185
30722
  name: "@eudiplo/cli",
29186
- version: "9.1.0-main.1c850e1",
30723
+ version: "9.1.0-main.279c7e7",
29187
30724
  description: "Deployment-aware command line tools for EUDIPLO",
29188
30725
  private: false,
29189
30726
  type: "module",
@@ -29198,11 +30735,12 @@ var package_default = {
29198
30735
  scripts: {
29199
30736
  "assets:sync": "node scripts/sync-cli-assets.cjs",
29200
30737
  "assets:check": "node scripts/check-cli-assets.cjs",
30738
+ "build:deps": 'pnpm --silent --filter "@eudiplo/cli^..." build',
29201
30739
  build: "pnpm assets:sync && pnpm assets:check && tsc -p tsconfig.json",
29202
30740
  "build:publish": "pnpm build && esbuild src/index.ts --bundle --platform=node --format=esm --target=node22.12 --alias:jsonc-parser=jsonc-parser/lib/esm/main.js --outfile=dist/index.js",
29203
30741
  "build:sea:bundle": "pnpm assets:sync && pnpm assets:check && esbuild src/index.ts --bundle --platform=node --format=esm --target=node22.12 --alias:jsonc-parser=jsonc-parser/lib/esm/main.js --outfile=dist-sea/index.js",
29204
30742
  "build:sea": "node scripts/build-cli-sea.mjs",
29205
- dev: "tsx src/index.ts",
30743
+ dev: "pnpm -s build:deps && tsx src/index.ts",
29206
30744
  test: "vitest run --root ../.. --project cli",
29207
30745
  lint: "biome lint .",
29208
30746
  format: "biome format --write .",