@eudiplo/cli 9.1.0-main.a78cbb4 → 9.1.0-main.ab5c9f8

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
@@ -15156,7 +15156,7 @@ function unzipSync(data, opts) {
15156
15156
  return files;
15157
15157
  }
15158
15158
 
15159
- // ../../node_modules/.pnpm/re2js@2.9.0/node_modules/re2js/build/index.js
15159
+ // ../../node_modules/.pnpm/re2js@2.9.1/node_modules/re2js/build/index.js
15160
15160
  var RE2Flags = class RE2Flags2 {
15161
15161
  static FOLD_CASE = 1;
15162
15162
  static LITERAL = 2;
@@ -22157,6 +22157,61 @@ function duplicateDisplayLocaleMessage(duplicate) {
22157
22157
  return `Locale ${duplicate.locale} is already used by display entry ${duplicate.firstIndex + 1}. OID4VCI allows one display entry per language.`;
22158
22158
  }
22159
22159
 
22160
+ // ../../packages/eudiplo-config-format/dist/trust-list-entity-info.js
22161
+ var TRUST_LIST_COUNTRY_CODES = [
22162
+ ..."AD AE AF AG AI AL AM AO AQ AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BV BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GD GE GF GG GH GI GL GM GN GP GQ GS GT GU GW GY HK HM HN HR HT HU ID IE IL IM IN IO IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PN PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TF TG TH TJ TK TL TM TN TO TR TT TV TW TZ UA UG UM US UY UZ VA VC VE VG VI VN VU WF WS YE YT ZA ZM ZW".split(" "),
22163
+ "UK",
22164
+ "EL",
22165
+ "EU"
22166
+ ].sort((a, b) => a.localeCompare(b));
22167
+ var COUNTRY_CODE_EXCEPTIONS = {
22168
+ GB: "UK",
22169
+ GR: "EL"
22170
+ };
22171
+ var TRUST_LIST_COUNTRY_MESSAGE = 'Use an ISO 3166-1 alpha-2 code in capital letters, for example DE, with "UK" for the United Kingdom, "EL" for Greece and "EU" for the European Union (ETSI TS 119 602 clause 6.1.5).';
22172
+ var TRUST_LIST_LANGUAGE_TAG_PATTERN = String.raw`^(?:(?:[a-z]{2,3}(?:-[a-z]{3}){0,3}|[a-z]{4,8})(?:-[a-z]{4})?(?:-(?:[a-z]{2}|[0-9]{3}))?(?:-(?:[a-z0-9]{5,8}|[0-9][a-z0-9]{3}))*(?:-[0-9a-wy-z](?:-[a-z0-9]{2,8})+)*(?:-x(?:-[a-z0-9]{1,8})+)?)$`;
22173
+ var LANGUAGE_TAG = new RegExp(TRUST_LIST_LANGUAGE_TAG_PATTERN);
22174
+ var TRUST_LIST_LANGUAGE_MESSAGE = "Use an IETF RFC 5646 language tag in lower case, for example en or de-at (ETSI TS 119 602 clause 6.1.4).";
22175
+ var TRUST_LIST_URI_MESSAGE = "Use an absolute URI written as a URL parser serializes it (RFC 3986 syntax), for example https://example.com/about.";
22176
+ function isTrustListCountryCode(value) {
22177
+ return TRUST_LIST_COUNTRY_CODES.includes(value);
22178
+ }
22179
+ function isTrustListLanguageTag(value) {
22180
+ return LANGUAGE_TAG.test(value);
22181
+ }
22182
+ function trustListCountryCode(value) {
22183
+ if (typeof value !== "string")
22184
+ return void 0;
22185
+ const upper = value.trim().toUpperCase();
22186
+ const code = COUNTRY_CODE_EXCEPTIONS[upper] ?? upper;
22187
+ return isTrustListCountryCode(code) ? code : void 0;
22188
+ }
22189
+ function trustListLanguageTag(value) {
22190
+ if (typeof value !== "string")
22191
+ return void 0;
22192
+ const tag = value.trim().toLowerCase();
22193
+ return isTrustListLanguageTag(tag) ? tag : void 0;
22194
+ }
22195
+ function isTrustListEntityUri(value) {
22196
+ let url;
22197
+ try {
22198
+ url = new URL(value);
22199
+ } catch {
22200
+ return false;
22201
+ }
22202
+ return url.href === value || url.href === `${value}/`;
22203
+ }
22204
+ var TRUST_LIST_EMAIL_PATTERN = String.raw`^(?:mailto:)?[A-Za-z0-9!$'*+_~-]+(?:\.[A-Za-z0-9!$'*+_~-]+)*@[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)+$`;
22205
+ var EMAIL = new RegExp(TRUST_LIST_EMAIL_PATTERN);
22206
+ var TRUST_LIST_EMAIL_MESSAGE = "Use one e-mail address, for example info@example.com or mailto:info@example.com, in ASCII characters (ETSI TS 119 602 clause 6.5.3.2).";
22207
+ var TRUST_LIST_WEBSITE_PATTERN = String.raw`^https?://[^\s/?#]+(?:[/?#]\S*)?$`;
22208
+ var TRUST_LIST_WEBSITE_MESSAGE = "Use an absolute http or https URI written as a URL parser serializes it, for example https://example.com/ (ETSI TS 119 602 clause 6.5.3.2).";
22209
+ var TRUST_LIST_PHONE_PATTERN = String.raw`^(?:tel:)?\+(?:[0-9][().-]?){2,14}[0-9]$`;
22210
+ var PHONE = new RegExp(TRUST_LIST_PHONE_PATTERN);
22211
+ function isTrustListEmail(value) {
22212
+ return EMAIL.test(value);
22213
+ }
22214
+
22160
22215
  // ../../packages/eudiplo-config-format/dist/config-format.js
22161
22216
  var CONFIG_FORMATS = {
22162
22217
  Tenant: { slug: "tenant", file: "TenantConfigFile", version: 4 },
@@ -22198,7 +22253,7 @@ var CONFIG_FORMATS = {
22198
22253
  file: "WebhookEndpointConfigFile",
22199
22254
  version: 1
22200
22255
  },
22201
- TrustList: { slug: "trust-list", file: "TrustListConfigFile", version: 1 },
22256
+ TrustList: { slug: "trust-list", file: "TrustListConfigFile", version: 2 },
22202
22257
  FederationTrustAnchor: {
22203
22258
  slug: "federation-trust-anchor",
22204
22259
  file: "FederationTrustAnchorConfigFile",
@@ -22473,6 +22528,84 @@ var credentialConfigV3ToV4 = {
22473
22528
  };
22474
22529
  }
22475
22530
  };
22531
+ var trustListV1ToV2 = {
22532
+ id: "trust-list-v2-etsi-entity-info",
22533
+ kind: "TrustList",
22534
+ from: 1,
22535
+ to: 2,
22536
+ // Report-only: v1 has no website field, so the step always ends with a
22537
+ // required input and migrateDocument keeps the v1 document. It names
22538
+ // every value the author must write differently in the v2 file.
22539
+ migrate(spec) {
22540
+ if (!Array.isArray(spec.entities))
22541
+ return { spec };
22542
+ const issues = [];
22543
+ spec.entities.forEach((entity, index) => {
22544
+ if (!object(entity) || !object(entity.info))
22545
+ return;
22546
+ const info = entity.info;
22547
+ const path2 = `/spec/entities/${index}/info`;
22548
+ for (const { key, fix, message, invalid } of [
22549
+ {
22550
+ key: "country",
22551
+ fix: trustListCountryCode,
22552
+ message: TRUST_LIST_COUNTRY_MESSAGE,
22553
+ invalid: "TRUST_LIST_COUNTRY_INVALID"
22554
+ },
22555
+ {
22556
+ key: "lang",
22557
+ fix: trustListLanguageTag,
22558
+ message: TRUST_LIST_LANGUAGE_MESSAGE,
22559
+ invalid: "TRUST_LIST_LANGUAGE_INVALID"
22560
+ }
22561
+ ]) {
22562
+ const value = info[key];
22563
+ if (value === void 0)
22564
+ continue;
22565
+ const fixed = fix(value);
22566
+ if (fixed === value)
22567
+ continue;
22568
+ issues.push({
22569
+ severity: "required-input",
22570
+ code: invalid,
22571
+ path: `${path2}/${key}`,
22572
+ message: fixed === void 0 ? `${JSON.stringify(value)} cannot be published. ${message}` : `Write ${JSON.stringify(fixed)} instead of ${JSON.stringify(value)}. ${message}`
22573
+ });
22574
+ }
22575
+ if (info.uri !== void 0 && !(typeof info.uri === "string" && isTrustListEntityUri(info.uri))) {
22576
+ issues.push({
22577
+ severity: "required-input",
22578
+ code: "TRUST_LIST_URI_INVALID",
22579
+ path: `${path2}/uri`,
22580
+ message: `${JSON.stringify(info.uri)} cannot be published. ${TRUST_LIST_URI_MESSAGE} Or remove uri.`
22581
+ });
22582
+ }
22583
+ const contactUri = info.contactUri;
22584
+ if (contactUri === void 0) {
22585
+ issues.push({
22586
+ severity: "required-input",
22587
+ code: "TRUST_LIST_CONTACT_URI_MISSING",
22588
+ path: `${path2}/contactUri`,
22589
+ message: `Add contactUri: ETSI TS 119 602 clause 6.5.3.2 requires an e-mail address. ${TRUST_LIST_EMAIL_MESSAGE}`
22590
+ });
22591
+ } else if (!(typeof contactUri === "string" && isTrustListEmail(contactUri))) {
22592
+ issues.push({
22593
+ severity: "required-input",
22594
+ code: "TRUST_LIST_CONTACT_URI_INVALID",
22595
+ path: `${path2}/contactUri`,
22596
+ message: `${JSON.stringify(contactUri)} cannot be published. ${TRUST_LIST_EMAIL_MESSAGE}`
22597
+ });
22598
+ }
22599
+ issues.push({
22600
+ severity: "required-input",
22601
+ code: "TRUST_LIST_WEBSITE_MISSING",
22602
+ path: `${path2}/website`,
22603
+ message: `Add website after changing $schema to ${schemaUrl("TrustList", 2)}: ETSI TS 119 602 clause 6.5.3.2 requires a web site, and v1 has no such field. ${TRUST_LIST_WEBSITE_MESSAGE}`
22604
+ });
22605
+ });
22606
+ return { spec, issues };
22607
+ }
22608
+ };
22476
22609
  var CONFIG_MIGRATIONS = [
22477
22610
  {
22478
22611
  id: "issuance-config-v2-offer-lifetime",
@@ -22632,7 +22765,8 @@ var CONFIG_MIGRATIONS = [
22632
22765
  // v4 adds the optional allowedOrigins: a v3 spec is a valid v4 spec,
22633
22766
  // and without the field any expected_origin is accepted as before.
22634
22767
  migrate: (spec) => ({ spec })
22635
- }
22768
+ },
22769
+ trustListV1ToV2
22636
22770
  ];
22637
22771
  function schemaUrl(kind, version = CONFIG_FORMATS[kind].version) {
22638
22772
  if (!Number.isSafeInteger(version) || version < 1)
@@ -32102,6 +32236,802 @@ var CONFIG_SCHEMAS = [
32102
32236
  ],
32103
32237
  "additionalProperties": false
32104
32238
  },
32239
+ {
32240
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
32241
+ "$id": "https://eudiplo.dev/schemas/v2/TrustListConfigFile.schema.json",
32242
+ "title": "TrustListConfigFile",
32243
+ "type": "object",
32244
+ "properties": {
32245
+ "$schema": {
32246
+ "type": "string",
32247
+ "const": "https://eudiplo.dev/schemas/v2/TrustListConfigFile.schema.json"
32248
+ },
32249
+ "metadata": {
32250
+ "type": "object",
32251
+ "properties": {
32252
+ "generation": {
32253
+ "type": "integer",
32254
+ "minimum": 1,
32255
+ "description": "Monotonically increasing configuration generation."
32256
+ },
32257
+ "ownership": {
32258
+ "type": "string",
32259
+ "enum": [
32260
+ "unmanaged",
32261
+ "file-managed"
32262
+ ],
32263
+ "description": "Requested ownership recorded when the document is applied."
32264
+ }
32265
+ },
32266
+ "additionalProperties": false
32267
+ },
32268
+ "spec": {
32269
+ "allOf": [
32270
+ {
32271
+ "$ref": "#/$defs/TrustListCreateDto"
32272
+ },
32273
+ {
32274
+ "type": "object",
32275
+ "required": [
32276
+ "id"
32277
+ ],
32278
+ "properties": {
32279
+ "id": {
32280
+ "type": "string",
32281
+ "minLength": 1
32282
+ }
32283
+ }
32284
+ }
32285
+ ]
32286
+ }
32287
+ },
32288
+ "required": [
32289
+ "$schema",
32290
+ "spec"
32291
+ ],
32292
+ "additionalProperties": false,
32293
+ "$defs": {
32294
+ "TrustListCreateDto": {
32295
+ "type": "object",
32296
+ "properties": {
32297
+ "id": {
32298
+ "description": "Optional trust list id. If omitted, one may be generated.",
32299
+ "type": "string",
32300
+ "minLength": 1
32301
+ },
32302
+ "description": {
32303
+ "description": "Optional trust list description.",
32304
+ "type": "string"
32305
+ },
32306
+ "keyChainId": {
32307
+ "description": "Optional key chain id used to sign trust list payloads.",
32308
+ "type": "string",
32309
+ "minLength": 1
32310
+ },
32311
+ "entities": {
32312
+ "minItems": 1,
32313
+ "type": "array",
32314
+ "items": {
32315
+ "oneOf": [
32316
+ {
32317
+ "type": "object",
32318
+ "properties": {
32319
+ "type": {
32320
+ "type": "string",
32321
+ "const": "internal",
32322
+ "description": "`internal` references key chains of this tenant; `external` carries the certificates directly, as PEM or Base64 DER."
32323
+ },
32324
+ "issuerKeyChainId": {
32325
+ "type": "string",
32326
+ "minLength": 1,
32327
+ "description": "Key chain id for issuer certificate material."
32328
+ },
32329
+ "revocationKeyChainId": {
32330
+ "type": "string",
32331
+ "minLength": 1,
32332
+ "description": "Key chain id for revocation/status list certificate material."
32333
+ },
32334
+ "providerType": {
32335
+ "description": "Provider role; defaults to attestation-provider.",
32336
+ "type": "string",
32337
+ "enum": [
32338
+ "attestation-provider",
32339
+ "wallet-provider"
32340
+ ]
32341
+ },
32342
+ "info": {
32343
+ "type": "object",
32344
+ "properties": {
32345
+ "name": {
32346
+ "type": "string",
32347
+ "minLength": 1,
32348
+ "description": "Display name of the trusted entity."
32349
+ },
32350
+ "lang": {
32351
+ "description": "Optional language of the entity's name, postal address, contact and information URI: an IETF RFC 5646 language tag in lower case, for example en or de-at (ETSI TS 119 602 clause 6.1.4). Defaults to en. With another language, the list publishes these texts in that language and again under en with the same text, since every list supports English (clause 6.1.4); service names are published in English only.",
32352
+ "type": "string",
32353
+ "pattern": "^(?:(?:[a-z]{2,3}(?:-[a-z]{3}){0,3}|[a-z]{4,8})(?:-[a-z]{4})?(?:-(?:[a-z]{2}|[0-9]{3}))?(?:-(?:[a-z0-9]{5,8}|[0-9][a-z0-9]{3}))*(?:-[0-9a-wy-z](?:-[a-z0-9]{2,8})+)*(?:-x(?:-[a-z0-9]{1,8})+)?)$"
32354
+ },
32355
+ "locale": {
32356
+ "description": "Optional locale identifier.",
32357
+ "type": "string"
32358
+ },
32359
+ "uri": {
32360
+ "description": "Optional absolute URI where relying parties find information about the entity, published as TEInformationURI. Write it as a URL parser serializes it, for example https://example.com/about with spaces percent-encoded.",
32361
+ "type": "string",
32362
+ "format": "uri"
32363
+ },
32364
+ "country": {
32365
+ "description": 'Optional country of the postal address: an ISO 3166-1 alpha-2 code in capital letters, with "UK" for the United Kingdom, "EL" for Greece and "EU" for the European Union (ETSI TS 119 602 clause 6.1.5). Defaults to EU.',
32366
+ "type": "string",
32367
+ "enum": [
32368
+ "AD",
32369
+ "AE",
32370
+ "AF",
32371
+ "AG",
32372
+ "AI",
32373
+ "AL",
32374
+ "AM",
32375
+ "AO",
32376
+ "AQ",
32377
+ "AR",
32378
+ "AS",
32379
+ "AT",
32380
+ "AU",
32381
+ "AW",
32382
+ "AX",
32383
+ "AZ",
32384
+ "BA",
32385
+ "BB",
32386
+ "BD",
32387
+ "BE",
32388
+ "BF",
32389
+ "BG",
32390
+ "BH",
32391
+ "BI",
32392
+ "BJ",
32393
+ "BL",
32394
+ "BM",
32395
+ "BN",
32396
+ "BO",
32397
+ "BQ",
32398
+ "BR",
32399
+ "BS",
32400
+ "BT",
32401
+ "BV",
32402
+ "BW",
32403
+ "BY",
32404
+ "BZ",
32405
+ "CA",
32406
+ "CC",
32407
+ "CD",
32408
+ "CF",
32409
+ "CG",
32410
+ "CH",
32411
+ "CI",
32412
+ "CK",
32413
+ "CL",
32414
+ "CM",
32415
+ "CN",
32416
+ "CO",
32417
+ "CR",
32418
+ "CU",
32419
+ "CV",
32420
+ "CW",
32421
+ "CX",
32422
+ "CY",
32423
+ "CZ",
32424
+ "DE",
32425
+ "DJ",
32426
+ "DK",
32427
+ "DM",
32428
+ "DO",
32429
+ "DZ",
32430
+ "EC",
32431
+ "EE",
32432
+ "EG",
32433
+ "EH",
32434
+ "EL",
32435
+ "ER",
32436
+ "ES",
32437
+ "ET",
32438
+ "EU",
32439
+ "FI",
32440
+ "FJ",
32441
+ "FK",
32442
+ "FM",
32443
+ "FO",
32444
+ "FR",
32445
+ "GA",
32446
+ "GD",
32447
+ "GE",
32448
+ "GF",
32449
+ "GG",
32450
+ "GH",
32451
+ "GI",
32452
+ "GL",
32453
+ "GM",
32454
+ "GN",
32455
+ "GP",
32456
+ "GQ",
32457
+ "GS",
32458
+ "GT",
32459
+ "GU",
32460
+ "GW",
32461
+ "GY",
32462
+ "HK",
32463
+ "HM",
32464
+ "HN",
32465
+ "HR",
32466
+ "HT",
32467
+ "HU",
32468
+ "ID",
32469
+ "IE",
32470
+ "IL",
32471
+ "IM",
32472
+ "IN",
32473
+ "IO",
32474
+ "IQ",
32475
+ "IR",
32476
+ "IS",
32477
+ "IT",
32478
+ "JE",
32479
+ "JM",
32480
+ "JO",
32481
+ "JP",
32482
+ "KE",
32483
+ "KG",
32484
+ "KH",
32485
+ "KI",
32486
+ "KM",
32487
+ "KN",
32488
+ "KP",
32489
+ "KR",
32490
+ "KW",
32491
+ "KY",
32492
+ "KZ",
32493
+ "LA",
32494
+ "LB",
32495
+ "LC",
32496
+ "LI",
32497
+ "LK",
32498
+ "LR",
32499
+ "LS",
32500
+ "LT",
32501
+ "LU",
32502
+ "LV",
32503
+ "LY",
32504
+ "MA",
32505
+ "MC",
32506
+ "MD",
32507
+ "ME",
32508
+ "MF",
32509
+ "MG",
32510
+ "MH",
32511
+ "MK",
32512
+ "ML",
32513
+ "MM",
32514
+ "MN",
32515
+ "MO",
32516
+ "MP",
32517
+ "MQ",
32518
+ "MR",
32519
+ "MS",
32520
+ "MT",
32521
+ "MU",
32522
+ "MV",
32523
+ "MW",
32524
+ "MX",
32525
+ "MY",
32526
+ "MZ",
32527
+ "NA",
32528
+ "NC",
32529
+ "NE",
32530
+ "NF",
32531
+ "NG",
32532
+ "NI",
32533
+ "NL",
32534
+ "NO",
32535
+ "NP",
32536
+ "NR",
32537
+ "NU",
32538
+ "NZ",
32539
+ "OM",
32540
+ "PA",
32541
+ "PE",
32542
+ "PF",
32543
+ "PG",
32544
+ "PH",
32545
+ "PK",
32546
+ "PL",
32547
+ "PM",
32548
+ "PN",
32549
+ "PR",
32550
+ "PS",
32551
+ "PT",
32552
+ "PW",
32553
+ "PY",
32554
+ "QA",
32555
+ "RE",
32556
+ "RO",
32557
+ "RS",
32558
+ "RU",
32559
+ "RW",
32560
+ "SA",
32561
+ "SB",
32562
+ "SC",
32563
+ "SD",
32564
+ "SE",
32565
+ "SG",
32566
+ "SH",
32567
+ "SI",
32568
+ "SJ",
32569
+ "SK",
32570
+ "SL",
32571
+ "SM",
32572
+ "SN",
32573
+ "SO",
32574
+ "SR",
32575
+ "SS",
32576
+ "ST",
32577
+ "SV",
32578
+ "SX",
32579
+ "SY",
32580
+ "SZ",
32581
+ "TC",
32582
+ "TD",
32583
+ "TF",
32584
+ "TG",
32585
+ "TH",
32586
+ "TJ",
32587
+ "TK",
32588
+ "TL",
32589
+ "TM",
32590
+ "TN",
32591
+ "TO",
32592
+ "TR",
32593
+ "TT",
32594
+ "TV",
32595
+ "TW",
32596
+ "TZ",
32597
+ "UA",
32598
+ "UG",
32599
+ "UK",
32600
+ "UM",
32601
+ "US",
32602
+ "UY",
32603
+ "UZ",
32604
+ "VA",
32605
+ "VC",
32606
+ "VE",
32607
+ "VG",
32608
+ "VI",
32609
+ "VN",
32610
+ "VU",
32611
+ "WF",
32612
+ "WS",
32613
+ "YE",
32614
+ "YT",
32615
+ "ZA",
32616
+ "ZM",
32617
+ "ZW"
32618
+ ]
32619
+ },
32620
+ "locality": {
32621
+ "description": "Optional locality or city.",
32622
+ "type": "string"
32623
+ },
32624
+ "postalCode": {
32625
+ "description": "Optional postal code.",
32626
+ "type": "string"
32627
+ },
32628
+ "streetAddress": {
32629
+ "description": "Optional street address.",
32630
+ "type": "string"
32631
+ },
32632
+ "contactUri": {
32633
+ "type": "string",
32634
+ "pattern": "^(?:mailto:)?[A-Za-z0-9!$'*+_~-]+(?:\\.[A-Za-z0-9!$'*+_~-]+)*@[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)+$",
32635
+ "description": "E-mail address of the entity, for example info@example.com or mailto:info@example.com, published as a mailto: URI in TEElectronicAddress (ETSI TS 119 602 clause 6.5.3.2). Use ASCII characters; write an internationalized domain in its xn-- form."
32636
+ },
32637
+ "website": {
32638
+ "type": "string",
32639
+ "pattern": "^https?:\\/\\/[^\\s/?#]+(?:[/?#]\\S*)?$",
32640
+ "description": "Web site of the entity, an absolute http or https URI published in TEElectronicAddress (ETSI TS 119 602 clause 6.5.3.2). Write it as a URL parser serializes it, for example https://example.com/."
32641
+ },
32642
+ "phone": {
32643
+ "description": "Optional telephone number of the entity in international form, for example +49-30-1234567 or tel:+49-30-1234567, published as a tel: URI in TEElectronicAddress (ETSI TS 119 602 clause 6.5.3.2).",
32644
+ "type": "string",
32645
+ "pattern": "^(?:tel:)?\\+(?:[0-9][().-]?){2,14}[0-9]$"
32646
+ }
32647
+ },
32648
+ "required": [
32649
+ "name",
32650
+ "contactUri",
32651
+ "website"
32652
+ ],
32653
+ "additionalProperties": false,
32654
+ "description": "Entity metadata."
32655
+ }
32656
+ },
32657
+ "required": [
32658
+ "type",
32659
+ "issuerKeyChainId",
32660
+ "revocationKeyChainId",
32661
+ "info"
32662
+ ],
32663
+ "additionalProperties": false
32664
+ },
32665
+ {
32666
+ "type": "object",
32667
+ "properties": {
32668
+ "type": {
32669
+ "type": "string",
32670
+ "const": "external",
32671
+ "description": "`internal` references key chains of this tenant; `external` carries the certificates directly, as PEM or Base64 DER."
32672
+ },
32673
+ "issuerCertPem": {
32674
+ "type": "string",
32675
+ "minLength": 1,
32676
+ "description": "Issuer certificate as PEM or Base64 DER."
32677
+ },
32678
+ "revocationCertPem": {
32679
+ "type": "string",
32680
+ "minLength": 1,
32681
+ "description": "Revocation/status certificate as PEM or Base64 DER."
32682
+ },
32683
+ "providerType": {
32684
+ "description": "Provider role; defaults to attestation-provider.",
32685
+ "type": "string",
32686
+ "enum": [
32687
+ "attestation-provider",
32688
+ "wallet-provider"
32689
+ ]
32690
+ },
32691
+ "info": {
32692
+ "type": "object",
32693
+ "properties": {
32694
+ "name": {
32695
+ "type": "string",
32696
+ "minLength": 1,
32697
+ "description": "Display name of the trusted entity."
32698
+ },
32699
+ "lang": {
32700
+ "description": "Optional language of the entity's name, postal address, contact and information URI: an IETF RFC 5646 language tag in lower case, for example en or de-at (ETSI TS 119 602 clause 6.1.4). Defaults to en. With another language, the list publishes these texts in that language and again under en with the same text, since every list supports English (clause 6.1.4); service names are published in English only.",
32701
+ "type": "string",
32702
+ "pattern": "^(?:(?:[a-z]{2,3}(?:-[a-z]{3}){0,3}|[a-z]{4,8})(?:-[a-z]{4})?(?:-(?:[a-z]{2}|[0-9]{3}))?(?:-(?:[a-z0-9]{5,8}|[0-9][a-z0-9]{3}))*(?:-[0-9a-wy-z](?:-[a-z0-9]{2,8})+)*(?:-x(?:-[a-z0-9]{1,8})+)?)$"
32703
+ },
32704
+ "locale": {
32705
+ "description": "Optional locale identifier.",
32706
+ "type": "string"
32707
+ },
32708
+ "uri": {
32709
+ "description": "Optional absolute URI where relying parties find information about the entity, published as TEInformationURI. Write it as a URL parser serializes it, for example https://example.com/about with spaces percent-encoded.",
32710
+ "type": "string",
32711
+ "format": "uri"
32712
+ },
32713
+ "country": {
32714
+ "description": 'Optional country of the postal address: an ISO 3166-1 alpha-2 code in capital letters, with "UK" for the United Kingdom, "EL" for Greece and "EU" for the European Union (ETSI TS 119 602 clause 6.1.5). Defaults to EU.',
32715
+ "type": "string",
32716
+ "enum": [
32717
+ "AD",
32718
+ "AE",
32719
+ "AF",
32720
+ "AG",
32721
+ "AI",
32722
+ "AL",
32723
+ "AM",
32724
+ "AO",
32725
+ "AQ",
32726
+ "AR",
32727
+ "AS",
32728
+ "AT",
32729
+ "AU",
32730
+ "AW",
32731
+ "AX",
32732
+ "AZ",
32733
+ "BA",
32734
+ "BB",
32735
+ "BD",
32736
+ "BE",
32737
+ "BF",
32738
+ "BG",
32739
+ "BH",
32740
+ "BI",
32741
+ "BJ",
32742
+ "BL",
32743
+ "BM",
32744
+ "BN",
32745
+ "BO",
32746
+ "BQ",
32747
+ "BR",
32748
+ "BS",
32749
+ "BT",
32750
+ "BV",
32751
+ "BW",
32752
+ "BY",
32753
+ "BZ",
32754
+ "CA",
32755
+ "CC",
32756
+ "CD",
32757
+ "CF",
32758
+ "CG",
32759
+ "CH",
32760
+ "CI",
32761
+ "CK",
32762
+ "CL",
32763
+ "CM",
32764
+ "CN",
32765
+ "CO",
32766
+ "CR",
32767
+ "CU",
32768
+ "CV",
32769
+ "CW",
32770
+ "CX",
32771
+ "CY",
32772
+ "CZ",
32773
+ "DE",
32774
+ "DJ",
32775
+ "DK",
32776
+ "DM",
32777
+ "DO",
32778
+ "DZ",
32779
+ "EC",
32780
+ "EE",
32781
+ "EG",
32782
+ "EH",
32783
+ "EL",
32784
+ "ER",
32785
+ "ES",
32786
+ "ET",
32787
+ "EU",
32788
+ "FI",
32789
+ "FJ",
32790
+ "FK",
32791
+ "FM",
32792
+ "FO",
32793
+ "FR",
32794
+ "GA",
32795
+ "GD",
32796
+ "GE",
32797
+ "GF",
32798
+ "GG",
32799
+ "GH",
32800
+ "GI",
32801
+ "GL",
32802
+ "GM",
32803
+ "GN",
32804
+ "GP",
32805
+ "GQ",
32806
+ "GS",
32807
+ "GT",
32808
+ "GU",
32809
+ "GW",
32810
+ "GY",
32811
+ "HK",
32812
+ "HM",
32813
+ "HN",
32814
+ "HR",
32815
+ "HT",
32816
+ "HU",
32817
+ "ID",
32818
+ "IE",
32819
+ "IL",
32820
+ "IM",
32821
+ "IN",
32822
+ "IO",
32823
+ "IQ",
32824
+ "IR",
32825
+ "IS",
32826
+ "IT",
32827
+ "JE",
32828
+ "JM",
32829
+ "JO",
32830
+ "JP",
32831
+ "KE",
32832
+ "KG",
32833
+ "KH",
32834
+ "KI",
32835
+ "KM",
32836
+ "KN",
32837
+ "KP",
32838
+ "KR",
32839
+ "KW",
32840
+ "KY",
32841
+ "KZ",
32842
+ "LA",
32843
+ "LB",
32844
+ "LC",
32845
+ "LI",
32846
+ "LK",
32847
+ "LR",
32848
+ "LS",
32849
+ "LT",
32850
+ "LU",
32851
+ "LV",
32852
+ "LY",
32853
+ "MA",
32854
+ "MC",
32855
+ "MD",
32856
+ "ME",
32857
+ "MF",
32858
+ "MG",
32859
+ "MH",
32860
+ "MK",
32861
+ "ML",
32862
+ "MM",
32863
+ "MN",
32864
+ "MO",
32865
+ "MP",
32866
+ "MQ",
32867
+ "MR",
32868
+ "MS",
32869
+ "MT",
32870
+ "MU",
32871
+ "MV",
32872
+ "MW",
32873
+ "MX",
32874
+ "MY",
32875
+ "MZ",
32876
+ "NA",
32877
+ "NC",
32878
+ "NE",
32879
+ "NF",
32880
+ "NG",
32881
+ "NI",
32882
+ "NL",
32883
+ "NO",
32884
+ "NP",
32885
+ "NR",
32886
+ "NU",
32887
+ "NZ",
32888
+ "OM",
32889
+ "PA",
32890
+ "PE",
32891
+ "PF",
32892
+ "PG",
32893
+ "PH",
32894
+ "PK",
32895
+ "PL",
32896
+ "PM",
32897
+ "PN",
32898
+ "PR",
32899
+ "PS",
32900
+ "PT",
32901
+ "PW",
32902
+ "PY",
32903
+ "QA",
32904
+ "RE",
32905
+ "RO",
32906
+ "RS",
32907
+ "RU",
32908
+ "RW",
32909
+ "SA",
32910
+ "SB",
32911
+ "SC",
32912
+ "SD",
32913
+ "SE",
32914
+ "SG",
32915
+ "SH",
32916
+ "SI",
32917
+ "SJ",
32918
+ "SK",
32919
+ "SL",
32920
+ "SM",
32921
+ "SN",
32922
+ "SO",
32923
+ "SR",
32924
+ "SS",
32925
+ "ST",
32926
+ "SV",
32927
+ "SX",
32928
+ "SY",
32929
+ "SZ",
32930
+ "TC",
32931
+ "TD",
32932
+ "TF",
32933
+ "TG",
32934
+ "TH",
32935
+ "TJ",
32936
+ "TK",
32937
+ "TL",
32938
+ "TM",
32939
+ "TN",
32940
+ "TO",
32941
+ "TR",
32942
+ "TT",
32943
+ "TV",
32944
+ "TW",
32945
+ "TZ",
32946
+ "UA",
32947
+ "UG",
32948
+ "UK",
32949
+ "UM",
32950
+ "US",
32951
+ "UY",
32952
+ "UZ",
32953
+ "VA",
32954
+ "VC",
32955
+ "VE",
32956
+ "VG",
32957
+ "VI",
32958
+ "VN",
32959
+ "VU",
32960
+ "WF",
32961
+ "WS",
32962
+ "YE",
32963
+ "YT",
32964
+ "ZA",
32965
+ "ZM",
32966
+ "ZW"
32967
+ ]
32968
+ },
32969
+ "locality": {
32970
+ "description": "Optional locality or city.",
32971
+ "type": "string"
32972
+ },
32973
+ "postalCode": {
32974
+ "description": "Optional postal code.",
32975
+ "type": "string"
32976
+ },
32977
+ "streetAddress": {
32978
+ "description": "Optional street address.",
32979
+ "type": "string"
32980
+ },
32981
+ "contactUri": {
32982
+ "type": "string",
32983
+ "pattern": "^(?:mailto:)?[A-Za-z0-9!$'*+_~-]+(?:\\.[A-Za-z0-9!$'*+_~-]+)*@[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)+$",
32984
+ "description": "E-mail address of the entity, for example info@example.com or mailto:info@example.com, published as a mailto: URI in TEElectronicAddress (ETSI TS 119 602 clause 6.5.3.2). Use ASCII characters; write an internationalized domain in its xn-- form."
32985
+ },
32986
+ "website": {
32987
+ "type": "string",
32988
+ "pattern": "^https?:\\/\\/[^\\s/?#]+(?:[/?#]\\S*)?$",
32989
+ "description": "Web site of the entity, an absolute http or https URI published in TEElectronicAddress (ETSI TS 119 602 clause 6.5.3.2). Write it as a URL parser serializes it, for example https://example.com/."
32990
+ },
32991
+ "phone": {
32992
+ "description": "Optional telephone number of the entity in international form, for example +49-30-1234567 or tel:+49-30-1234567, published as a tel: URI in TEElectronicAddress (ETSI TS 119 602 clause 6.5.3.2).",
32993
+ "type": "string",
32994
+ "pattern": "^(?:tel:)?\\+(?:[0-9][().-]?){2,14}[0-9]$"
32995
+ }
32996
+ },
32997
+ "required": [
32998
+ "name",
32999
+ "contactUri",
33000
+ "website"
33001
+ ],
33002
+ "additionalProperties": false,
33003
+ "description": "Entity metadata."
33004
+ }
33005
+ },
33006
+ "required": [
33007
+ "type",
33008
+ "issuerCertPem",
33009
+ "revocationCertPem",
33010
+ "info"
33011
+ ],
33012
+ "additionalProperties": false
33013
+ }
33014
+ ]
33015
+ },
33016
+ "description": "One or more entities included in this trust list."
33017
+ },
33018
+ "data": {
33019
+ "description": "Optional additional custom payload data.",
33020
+ "type": "object",
33021
+ "propertyNames": {
33022
+ "type": "string"
33023
+ },
33024
+ "additionalProperties": {}
33025
+ }
33026
+ },
33027
+ "required": [
33028
+ "entities"
33029
+ ],
33030
+ "additionalProperties": false,
33031
+ "title": "TrustListCreateDto"
33032
+ }
33033
+ }
33034
+ },
32105
33035
  {
32106
33036
  "$schema": "https://json-schema.org/draft/2020-12/schema",
32107
33037
  "$id": "https://eudiplo.dev/schemas/v3/CredentialConfigFile.schema.json",
@@ -35341,7 +36271,7 @@ var CONFIG_SCHEMAS = [
35341
36271
  ]
35342
36272
  },
35343
36273
  "webhookEndpointId": {
35344
- "description": "Not used for notifications: they go to the webhook endpoint of the offer.",
36274
+ "description": "Receives the wallet unit revocation webhook (revokeWithWalletUnit). Not used for notifications: they go to the webhook endpoint of the offer.",
35345
36275
  "type": [
35346
36276
  "string",
35347
36277
  "null"
@@ -35434,6 +36364,10 @@ var CONFIG_SCHEMAS = [
35434
36364
  }
35435
36365
  ]
35436
36366
  },
36367
+ "revokeWithWalletUnit": {
36368
+ "description": "Revoke issued credentials when the wallet unit attestation (the key attestation of the proof) they were bound to is revoked. Requires statusManagement and config.keyAttestationsRequired.",
36369
+ "type": "boolean"
36370
+ },
35437
36371
  "iaeActions": {
35438
36372
  "description": "Interactive authorization steps (a presentation or a web flow) that the wallet completes, in order, before the credential is issued.",
35439
36373
  "anyOf": [
@@ -39002,7 +39936,7 @@ var CONFIG_SCHEMAS = [
39002
39936
  }
39003
39937
  },
39004
39938
  "walletAttestationStatusCheckMode": {
39005
- "description": "Default status check mode for wallet attestations at managed authorization servers: strict, best_effort (default) or disabled.",
39939
+ "description": "Status check mode for key attestations at the credential endpoint, and default for wallet attestations at managed authorization servers: strict, best_effort (default) or disabled.",
39006
39940
  "anyOf": [
39007
39941
  {
39008
39942
  "type": "string",
@@ -39624,6 +40558,15 @@ var CONFIG_SCHEMAS = [
39624
40558
  "supportUri": {
39625
40559
  "description": "Optional support URI.",
39626
40560
  "type": "string"
40561
+ },
40562
+ "renewal": {
40563
+ "description": "When a generated certificate is renewed. onCredentialConfigChange (default): in the background after a credential or issuance configuration changes, and when issuer metadata is built. onMetadataRequest: only when issuer metadata is built. manual: only with Regenerate now. In every mode a missing or expired certificate is requested when issuer metadata is built.",
40564
+ "type": "string",
40565
+ "enum": [
40566
+ "onCredentialConfigChange",
40567
+ "onMetadataRequest",
40568
+ "manual"
40569
+ ]
39627
40570
  }
39628
40571
  },
39629
40572
  "additionalProperties": false
@@ -42531,7 +43474,7 @@ function createDeploymentCommands(context, setExitCode) {
42531
43474
  // package.json
42532
43475
  var package_default = {
42533
43476
  name: "@eudiplo/cli",
42534
- version: "9.1.0-main.a78cbb4",
43477
+ version: "9.1.0-main.ab5c9f8",
42535
43478
  description: "Deployment-aware command line tools for EUDIPLO",
42536
43479
  private: false,
42537
43480
  type: "module",
@@ -42592,12 +43535,12 @@ var package_default = {
42592
43535
  "jsonc-parser": "^3.3.1"
42593
43536
  },
42594
43537
  devDependencies: {
42595
- "@biomejs/biome": "2.6.3",
43538
+ "@biomejs/biome": "2.6.4",
42596
43539
  "@types/node": "^26.6.5",
42597
43540
  esbuild: "^0.28.2",
42598
43541
  tsx: "^4.23.15",
42599
43542
  typescript: "^7.0.2",
42600
- vitest: "5.0.5"
43543
+ vitest: "5.1.0"
42601
43544
  }
42602
43545
  };
42603
43546
 
@@ -44371,7 +45314,7 @@ re2js/build/index.js:
44371
45314
  * re2js
44372
45315
  * RE2JS is the JavaScript port of RE2, a regular expression engine that provides linear time matching
44373
45316
  *
44374
- * @version v2.9.0
45317
+ * @version v2.9.1
44375
45318
  * @author Oleksii Vasyliev
44376
45319
  * @homepage https://github.com/le0pard/re2js#readme
44377
45320
  * @repository [object Object]