@eudiplo/cli 8.1.0-main.d5dca08 → 8.1.0-main.f1c8fc3

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
@@ -14907,7 +14907,7 @@ var CONFIG_FORMATS = {
14907
14907
  PresentationConfig: {
14908
14908
  slug: "presentation-config",
14909
14909
  file: "PresentationConfigFile",
14910
- version: 2
14910
+ version: 3
14911
14911
  },
14912
14912
  AttributeProvider: {
14913
14913
  slug: "attribute-provider",
@@ -14980,7 +14980,18 @@ var CONFIG_MIGRATIONS = [
14980
14980
  // valid v2 spec whose offers keep having no lifetime.
14981
14981
  migrate: (spec) => ({ spec })
14982
14982
  },
14983
- presentationConfigV1ToV2
14983
+ presentationConfigV1ToV2,
14984
+ {
14985
+ id: "presentation-config-v3-typed-claim-values",
14986
+ kind: "PresentationConfig",
14987
+ from: 2,
14988
+ to: 3,
14989
+ // v3 accepts integer and boolean DCQL claim `values` besides strings
14990
+ // and requires them to be non-empty. A v2 spec with non-empty string
14991
+ // values is a valid v3 spec; an empty `values` array fails v3
14992
+ // validation, since it could never match a disclosed claim.
14993
+ migrate: (spec) => ({ spec })
14994
+ }
14984
14995
  ];
14985
14996
  function schemaUrl(kind, version = CONFIG_FORMATS[kind].version) {
14986
14997
  if (!Number.isSafeInteger(version) || version < 1)
@@ -21440,6 +21451,751 @@ var CONFIG_SCHEMAS = [
21440
21451
  "title": "PresentationConfigCreateDto"
21441
21452
  }
21442
21453
  }
21454
+ },
21455
+ {
21456
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
21457
+ "$id": "https://eudiplo.dev/schemas/v3/PresentationConfigFile.schema.json",
21458
+ "title": "PresentationConfigFile",
21459
+ "type": "object",
21460
+ "properties": {
21461
+ "$schema": {
21462
+ "type": "string",
21463
+ "const": "https://eudiplo.dev/schemas/v3/PresentationConfigFile.schema.json"
21464
+ },
21465
+ "metadata": {
21466
+ "type": "object",
21467
+ "properties": {
21468
+ "generation": {
21469
+ "type": "integer",
21470
+ "minimum": 1,
21471
+ "description": "Monotonically increasing configuration generation."
21472
+ },
21473
+ "ownership": {
21474
+ "type": "string",
21475
+ "enum": [
21476
+ "unmanaged",
21477
+ "file-managed"
21478
+ ],
21479
+ "description": "Requested ownership recorded when the document is applied."
21480
+ }
21481
+ },
21482
+ "additionalProperties": false
21483
+ },
21484
+ "spec": {
21485
+ "allOf": [
21486
+ {
21487
+ "$ref": "#/$defs/PresentationConfigCreateDto"
21488
+ },
21489
+ {
21490
+ "type": "object",
21491
+ "required": [
21492
+ "id"
21493
+ ],
21494
+ "properties": {
21495
+ "id": {
21496
+ "type": "string",
21497
+ "minLength": 1
21498
+ }
21499
+ }
21500
+ }
21501
+ ]
21502
+ }
21503
+ },
21504
+ "required": [
21505
+ "$schema",
21506
+ "spec"
21507
+ ],
21508
+ "additionalProperties": false,
21509
+ "$defs": {
21510
+ "PresentationConfigCreateDto": {
21511
+ "type": "object",
21512
+ "properties": {
21513
+ "id": {
21514
+ "type": "string",
21515
+ "minLength": 1,
21516
+ "description": "Presentation configuration identifier."
21517
+ },
21518
+ "description": {
21519
+ "description": "Optional presentation configuration description.",
21520
+ "type": [
21521
+ "string",
21522
+ "null"
21523
+ ]
21524
+ },
21525
+ "lifeTime": {
21526
+ "description": "Presentation request lifetime in seconds.",
21527
+ "type": "integer",
21528
+ "minimum": 1,
21529
+ "maximum": 9007199254740991
21530
+ },
21531
+ "skewSeconds": {
21532
+ "description": "Clock skew tolerance in seconds.",
21533
+ "type": "integer",
21534
+ "minimum": 0,
21535
+ "maximum": 9007199254740991
21536
+ },
21537
+ "statusCheckMode": {
21538
+ "description": "Revocation/status check mode.",
21539
+ "type": "string",
21540
+ "enum": [
21541
+ "strict",
21542
+ "best_effort",
21543
+ "disabled"
21544
+ ]
21545
+ },
21546
+ "dcql_query": {
21547
+ "type": "object",
21548
+ "properties": {
21549
+ "credentials": {
21550
+ "minItems": 1,
21551
+ "type": "array",
21552
+ "items": {
21553
+ "oneOf": [
21554
+ {
21555
+ "type": "object",
21556
+ "properties": {
21557
+ "id": {
21558
+ "type": "string",
21559
+ "minLength": 1,
21560
+ "pattern": "^[A-Za-z0-9_-]+$",
21561
+ "description": "Credential query identifier."
21562
+ },
21563
+ "multiple": {
21564
+ "description": "Allow multiple matching credentials.",
21565
+ "type": "boolean"
21566
+ },
21567
+ "claim_sets": {
21568
+ "description": "Optional claim set constraints.",
21569
+ "type": "array",
21570
+ "items": {
21571
+ "type": "array",
21572
+ "items": {
21573
+ "type": "string"
21574
+ }
21575
+ }
21576
+ },
21577
+ "trusted_authorities": {
21578
+ "description": "Optional trusted authority constraints.",
21579
+ "type": "array",
21580
+ "items": {
21581
+ "oneOf": [
21582
+ {
21583
+ "type": "object",
21584
+ "properties": {
21585
+ "type": {
21586
+ "type": "string",
21587
+ "const": "etsi_tl",
21588
+ "description": "Trusted authority type discriminator for ETSI trust lists."
21589
+ },
21590
+ "values": {
21591
+ "type": "array",
21592
+ "items": {
21593
+ "type": "object",
21594
+ "properties": {
21595
+ "trustListId": {
21596
+ "description": "Optional trust list id reference.",
21597
+ "type": "string"
21598
+ },
21599
+ "url": {
21600
+ "description": "Optional trust list URL reference.",
21601
+ "anyOf": [
21602
+ {
21603
+ "type": "string",
21604
+ "format": "uri"
21605
+ },
21606
+ {
21607
+ "type": "string",
21608
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
21609
+ }
21610
+ ]
21611
+ },
21612
+ "verifierKey": {
21613
+ "description": "Optional verifier key material.",
21614
+ "type": "object",
21615
+ "propertyNames": {
21616
+ "type": "string"
21617
+ },
21618
+ "additionalProperties": {}
21619
+ },
21620
+ "verifierX509Der": {
21621
+ "description": "Optional verifier certificate in DER/base64 form.",
21622
+ "type": "string"
21623
+ }
21624
+ },
21625
+ "additionalProperties": false
21626
+ },
21627
+ "description": "Trust list references for ETSI TL verification."
21628
+ }
21629
+ },
21630
+ "required": [
21631
+ "type",
21632
+ "values"
21633
+ ],
21634
+ "additionalProperties": false
21635
+ },
21636
+ {
21637
+ "type": "object",
21638
+ "properties": {
21639
+ "type": {
21640
+ "type": "string",
21641
+ "const": "openid_federation",
21642
+ "description": "Trusted authority type discriminator for OpenID Federation."
21643
+ },
21644
+ "values": {
21645
+ "type": "array",
21646
+ "items": {
21647
+ "type": "string"
21648
+ },
21649
+ "description": "OpenID Federation authority identifiers."
21650
+ }
21651
+ },
21652
+ "required": [
21653
+ "type",
21654
+ "values"
21655
+ ],
21656
+ "additionalProperties": false
21657
+ }
21658
+ ]
21659
+ }
21660
+ },
21661
+ "format": {
21662
+ "type": "string",
21663
+ "const": "dc+sd-jwt",
21664
+ "description": "Credential format discriminator."
21665
+ },
21666
+ "meta": {
21667
+ "type": "object",
21668
+ "properties": {
21669
+ "vct_values": {
21670
+ "minItems": 1,
21671
+ "type": "array",
21672
+ "items": {
21673
+ "type": "string"
21674
+ },
21675
+ "description": "Accepted VCT values."
21676
+ }
21677
+ },
21678
+ "required": [
21679
+ "vct_values"
21680
+ ],
21681
+ "additionalProperties": false
21682
+ },
21683
+ "claims": {
21684
+ "description": "Optional claim-level constraints.",
21685
+ "type": "array",
21686
+ "items": {
21687
+ "type": "object",
21688
+ "properties": {
21689
+ "id": {
21690
+ "description": "Optional claim query id.",
21691
+ "type": "string"
21692
+ },
21693
+ "path": {
21694
+ "type": "array",
21695
+ "items": {
21696
+ "type": [
21697
+ "string",
21698
+ "number"
21699
+ ]
21700
+ },
21701
+ "description": "Path to the claim value in presented credentials."
21702
+ },
21703
+ "values": {
21704
+ "description": "Optional allowed values for the claim. A disclosed value must equal one of them in type and value.",
21705
+ "minItems": 1,
21706
+ "type": "array",
21707
+ "items": {
21708
+ "anyOf": [
21709
+ {
21710
+ "type": "string"
21711
+ },
21712
+ {
21713
+ "type": "integer",
21714
+ "minimum": -9007199254740991,
21715
+ "maximum": 9007199254740991
21716
+ },
21717
+ {
21718
+ "type": "boolean"
21719
+ }
21720
+ ]
21721
+ }
21722
+ }
21723
+ },
21724
+ "required": [
21725
+ "path"
21726
+ ],
21727
+ "additionalProperties": false
21728
+ }
21729
+ }
21730
+ },
21731
+ "required": [
21732
+ "id",
21733
+ "format",
21734
+ "meta"
21735
+ ],
21736
+ "additionalProperties": false
21737
+ },
21738
+ {
21739
+ "type": "object",
21740
+ "properties": {
21741
+ "id": {
21742
+ "type": "string",
21743
+ "minLength": 1,
21744
+ "pattern": "^[A-Za-z0-9_-]+$",
21745
+ "description": "Credential query identifier."
21746
+ },
21747
+ "multiple": {
21748
+ "description": "Allow multiple matching credentials.",
21749
+ "type": "boolean"
21750
+ },
21751
+ "claim_sets": {
21752
+ "description": "Optional claim set constraints.",
21753
+ "type": "array",
21754
+ "items": {
21755
+ "type": "array",
21756
+ "items": {
21757
+ "type": "string"
21758
+ }
21759
+ }
21760
+ },
21761
+ "trusted_authorities": {
21762
+ "description": "Optional trusted authority constraints.",
21763
+ "type": "array",
21764
+ "items": {
21765
+ "oneOf": [
21766
+ {
21767
+ "type": "object",
21768
+ "properties": {
21769
+ "type": {
21770
+ "type": "string",
21771
+ "const": "etsi_tl",
21772
+ "description": "Trusted authority type discriminator for ETSI trust lists."
21773
+ },
21774
+ "values": {
21775
+ "type": "array",
21776
+ "items": {
21777
+ "type": "object",
21778
+ "properties": {
21779
+ "trustListId": {
21780
+ "description": "Optional trust list id reference.",
21781
+ "type": "string"
21782
+ },
21783
+ "url": {
21784
+ "description": "Optional trust list URL reference.",
21785
+ "anyOf": [
21786
+ {
21787
+ "type": "string",
21788
+ "format": "uri"
21789
+ },
21790
+ {
21791
+ "type": "string",
21792
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
21793
+ }
21794
+ ]
21795
+ },
21796
+ "verifierKey": {
21797
+ "description": "Optional verifier key material.",
21798
+ "type": "object",
21799
+ "propertyNames": {
21800
+ "type": "string"
21801
+ },
21802
+ "additionalProperties": {}
21803
+ },
21804
+ "verifierX509Der": {
21805
+ "description": "Optional verifier certificate in DER/base64 form.",
21806
+ "type": "string"
21807
+ }
21808
+ },
21809
+ "additionalProperties": false
21810
+ },
21811
+ "description": "Trust list references for ETSI TL verification."
21812
+ }
21813
+ },
21814
+ "required": [
21815
+ "type",
21816
+ "values"
21817
+ ],
21818
+ "additionalProperties": false
21819
+ },
21820
+ {
21821
+ "type": "object",
21822
+ "properties": {
21823
+ "type": {
21824
+ "type": "string",
21825
+ "const": "openid_federation",
21826
+ "description": "Trusted authority type discriminator for OpenID Federation."
21827
+ },
21828
+ "values": {
21829
+ "type": "array",
21830
+ "items": {
21831
+ "type": "string"
21832
+ },
21833
+ "description": "OpenID Federation authority identifiers."
21834
+ }
21835
+ },
21836
+ "required": [
21837
+ "type",
21838
+ "values"
21839
+ ],
21840
+ "additionalProperties": false
21841
+ }
21842
+ ]
21843
+ }
21844
+ },
21845
+ "format": {
21846
+ "type": "string",
21847
+ "const": "mso_mdoc",
21848
+ "description": "Credential format discriminator."
21849
+ },
21850
+ "meta": {
21851
+ "type": "object",
21852
+ "properties": {
21853
+ "doctype_value": {
21854
+ "type": "string",
21855
+ "minLength": 1,
21856
+ "description": "Expected mDoc doctype value."
21857
+ }
21858
+ },
21859
+ "required": [
21860
+ "doctype_value"
21861
+ ],
21862
+ "additionalProperties": false
21863
+ },
21864
+ "claims": {
21865
+ "description": "Optional mDoc claim-level constraints.",
21866
+ "type": "array",
21867
+ "items": {
21868
+ "type": "object",
21869
+ "properties": {
21870
+ "id": {
21871
+ "description": "Optional claim query id.",
21872
+ "type": "string"
21873
+ },
21874
+ "path": {
21875
+ "type": "array",
21876
+ "items": {
21877
+ "type": [
21878
+ "string",
21879
+ "number"
21880
+ ]
21881
+ },
21882
+ "description": "Path to the claim value in presented credentials."
21883
+ },
21884
+ "values": {
21885
+ "description": "Optional allowed values for the claim. A disclosed value must equal one of them in type and value.",
21886
+ "minItems": 1,
21887
+ "type": "array",
21888
+ "items": {
21889
+ "anyOf": [
21890
+ {
21891
+ "type": "string"
21892
+ },
21893
+ {
21894
+ "type": "integer",
21895
+ "minimum": -9007199254740991,
21896
+ "maximum": 9007199254740991
21897
+ },
21898
+ {
21899
+ "type": "boolean"
21900
+ }
21901
+ ]
21902
+ }
21903
+ },
21904
+ "intent_to_retain": {
21905
+ "description": "Whether relying party intends to retain the claim.",
21906
+ "type": "boolean"
21907
+ }
21908
+ },
21909
+ "required": [
21910
+ "path"
21911
+ ],
21912
+ "additionalProperties": false
21913
+ }
21914
+ }
21915
+ },
21916
+ "required": [
21917
+ "id",
21918
+ "format",
21919
+ "meta"
21920
+ ],
21921
+ "additionalProperties": false
21922
+ }
21923
+ ]
21924
+ },
21925
+ "description": "Credential queries requested by the verifier."
21926
+ },
21927
+ "credential_sets": {
21928
+ "description": "Optional higher-level credential set requirements.",
21929
+ "type": "array",
21930
+ "items": {
21931
+ "type": "object",
21932
+ "properties": {
21933
+ "options": {
21934
+ "minItems": 1,
21935
+ "type": "array",
21936
+ "items": {
21937
+ "minItems": 1,
21938
+ "type": "array",
21939
+ "items": {
21940
+ "type": "string"
21941
+ }
21942
+ },
21943
+ "description": "Alternative credential query id combinations."
21944
+ },
21945
+ "required": {
21946
+ "description": "Whether this credential set is mandatory.",
21947
+ "type": "boolean"
21948
+ }
21949
+ },
21950
+ "required": [
21951
+ "options"
21952
+ ],
21953
+ "additionalProperties": false
21954
+ }
21955
+ }
21956
+ },
21957
+ "required": [
21958
+ "credentials"
21959
+ ],
21960
+ "additionalProperties": false,
21961
+ "description": "DCQL query defining requested credentials and claims."
21962
+ },
21963
+ "transaction_data": {
21964
+ "description": "Optional transaction data descriptors.",
21965
+ "anyOf": [
21966
+ {
21967
+ "type": "array",
21968
+ "items": {
21969
+ "type": "object",
21970
+ "properties": {
21971
+ "type": {
21972
+ "type": "string",
21973
+ "description": "Transaction data type identifier."
21974
+ },
21975
+ "credential_ids": {
21976
+ "type": "array",
21977
+ "items": {
21978
+ "type": "string"
21979
+ },
21980
+ "description": "Credential query ids this transaction data applies to."
21981
+ },
21982
+ "payload": {
21983
+ "description": "Transaction details. Required for TS12 SCA transaction data."
21984
+ }
21985
+ },
21986
+ "required": [
21987
+ "type",
21988
+ "credential_ids"
21989
+ ],
21990
+ "additionalProperties": {}
21991
+ }
21992
+ },
21993
+ {
21994
+ "type": "null"
21995
+ }
21996
+ ]
21997
+ },
21998
+ "registration_cert": {
21999
+ "description": "Optional registration certificate request settings.",
22000
+ "anyOf": [
22001
+ {
22002
+ "type": "object",
22003
+ "properties": {
22004
+ "id": {
22005
+ "type": "string"
22006
+ },
22007
+ "body": {
22008
+ "type": "object",
22009
+ "properties": {
22010
+ "privacy_policy": {
22011
+ "type": "string"
22012
+ },
22013
+ "support_uri": {
22014
+ "type": "string"
22015
+ },
22016
+ "intermediary": {
22017
+ "type": "string"
22018
+ },
22019
+ "purpose": {
22020
+ "type": "array",
22021
+ "items": {
22022
+ "type": "object",
22023
+ "properties": {
22024
+ "lang": {
22025
+ "type": "string"
22026
+ },
22027
+ "content": {
22028
+ "type": "string"
22029
+ }
22030
+ },
22031
+ "required": [
22032
+ "lang",
22033
+ "content"
22034
+ ],
22035
+ "additionalProperties": false
22036
+ }
22037
+ },
22038
+ "credentials": {
22039
+ "type": "array",
22040
+ "items": {
22041
+ "type": "object",
22042
+ "propertyNames": {
22043
+ "type": "string"
22044
+ },
22045
+ "additionalProperties": {}
22046
+ }
22047
+ },
22048
+ "provides_attestations": {
22049
+ "type": "array",
22050
+ "items": {
22051
+ "type": "string",
22052
+ "minLength": 1
22053
+ }
22054
+ }
22055
+ },
22056
+ "additionalProperties": false
22057
+ },
22058
+ "jwt": {
22059
+ "type": "string"
22060
+ }
22061
+ },
22062
+ "additionalProperties": false
22063
+ },
22064
+ {
22065
+ "type": "null"
22066
+ }
22067
+ ]
22068
+ },
22069
+ "registrationCertImportJwt": {
22070
+ "description": "Optional imported registration certificate JWT.",
22071
+ "type": [
22072
+ "string",
22073
+ "null"
22074
+ ]
22075
+ },
22076
+ "registrationCertImportId": {
22077
+ "description": "Optional registrar-side registration certificate id.",
22078
+ "type": [
22079
+ "string",
22080
+ "null"
22081
+ ]
22082
+ },
22083
+ "registrationCertBodyPrivacyPolicy": {
22084
+ "description": "Optional registration certificate privacy policy URI.",
22085
+ "type": [
22086
+ "string",
22087
+ "null"
22088
+ ]
22089
+ },
22090
+ "registrationCertBodySupportUri": {
22091
+ "description": "Optional registration certificate support URI.",
22092
+ "type": [
22093
+ "string",
22094
+ "null"
22095
+ ]
22096
+ },
22097
+ "registrationCertBodyIntermediary": {
22098
+ "description": "Optional registration certificate intermediary.",
22099
+ "type": [
22100
+ "string",
22101
+ "null"
22102
+ ]
22103
+ },
22104
+ "registrationCertBodyPurpose": {
22105
+ "description": "Optional registration certificate purpose entries.",
22106
+ "anyOf": [
22107
+ {
22108
+ "type": "array",
22109
+ "items": {
22110
+ "type": "object",
22111
+ "properties": {
22112
+ "lang": {
22113
+ "type": "string"
22114
+ },
22115
+ "content": {
22116
+ "type": "string"
22117
+ }
22118
+ },
22119
+ "additionalProperties": false
22120
+ }
22121
+ },
22122
+ {
22123
+ "type": "null"
22124
+ }
22125
+ ]
22126
+ },
22127
+ "webhookEndpointId": {
22128
+ "description": "Optional webhook endpoint id for presentation callbacks.",
22129
+ "type": [
22130
+ "string",
22131
+ "null"
22132
+ ]
22133
+ },
22134
+ "attached": {
22135
+ "description": "Optional attachments included with presentation requests.",
22136
+ "anyOf": [
22137
+ {
22138
+ "type": "array",
22139
+ "items": {
22140
+ "type": "object",
22141
+ "properties": {
22142
+ "format": {
22143
+ "type": "string",
22144
+ "description": "Attachment format identifier."
22145
+ },
22146
+ "data": {
22147
+ "description": "Attachment payload."
22148
+ },
22149
+ "credential_ids": {
22150
+ "description": "Optional credential query ids bound to this attachment.",
22151
+ "type": "array",
22152
+ "items": {
22153
+ "type": "string"
22154
+ }
22155
+ }
22156
+ },
22157
+ "required": [
22158
+ "format",
22159
+ "data"
22160
+ ],
22161
+ "additionalProperties": false
22162
+ }
22163
+ },
22164
+ {
22165
+ "type": "null"
22166
+ }
22167
+ ]
22168
+ },
22169
+ "redirectUri": {
22170
+ "description": "Optional redirect URI after presentation completion.",
22171
+ "type": [
22172
+ "string",
22173
+ "null"
22174
+ ]
22175
+ },
22176
+ "accessKeyChainId": {
22177
+ "description": "Optional key chain id for access token/auth operations.",
22178
+ "type": [
22179
+ "string",
22180
+ "null"
22181
+ ]
22182
+ },
22183
+ "readerAuth": {
22184
+ "description": "Whether reader authentication is required for mDoc requests.",
22185
+ "type": [
22186
+ "boolean",
22187
+ "null"
22188
+ ]
22189
+ }
22190
+ },
22191
+ "required": [
22192
+ "id",
22193
+ "dcql_query"
22194
+ ],
22195
+ "additionalProperties": false,
22196
+ "title": "PresentationConfigCreateDto"
22197
+ }
22198
+ }
21443
22199
  }
21444
22200
  ];
21445
22201
 
@@ -24161,7 +24917,7 @@ function createDeploymentCommands(context, setExitCode) {
24161
24917
  // package.json
24162
24918
  var package_default = {
24163
24919
  name: "@eudiplo/cli",
24164
- version: "8.1.0-main.d5dca08",
24920
+ version: "8.1.0-main.f1c8fc3",
24165
24921
  description: "Deployment-aware command line tools for EUDIPLO",
24166
24922
  private: false,
24167
24923
  type: "module",