@triveria/wallet 0.0.237 → 0.0.239

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.
Files changed (3) hide show
  1. package/api.d.ts +152 -5
  2. package/api.js +2 -2
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -62,6 +62,12 @@ export interface AuthOffer {
62
62
  * @memberof AuthOffer
63
63
  */
64
64
  'validUntil': string;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof AuthOffer
69
+ */
70
+ 'offerId': string;
65
71
  }
66
72
  /**
67
73
  * Accompanying information about the verifiable credential draft - schema, type, format etc.
@@ -210,6 +216,12 @@ export interface CredentialIssuedNotification {
210
216
  * @memberof CredentialIssuedNotification
211
217
  */
212
218
  'holderDid': string;
219
+ /**
220
+ *
221
+ * @type {string}
222
+ * @memberof CredentialIssuedNotification
223
+ */
224
+ 'offerId': string;
213
225
  /**
214
226
  *
215
227
  * @type {string}
@@ -669,6 +681,12 @@ export interface CredentialVerifierDefinition {
669
681
  * @memberof CredentialVerifierDefinition
670
682
  */
671
683
  'presentationDefinition': PresentationDefinition;
684
+ /**
685
+ *
686
+ * @type {DCQLQuery}
687
+ * @memberof CredentialVerifierDefinition
688
+ */
689
+ 'dcqlQuery'?: DCQLQuery;
672
690
  }
673
691
  /**
674
692
  * The wrapper contains Verifiable Credential in both, the Credential and as Base64 signed format alongside with metadata.
@@ -714,6 +732,98 @@ export interface CtWalletSameIssuerConfig {
714
732
  */
715
733
  'defaultCredentialSubject'?: object;
716
734
  }
735
+ /**
736
+ * JSON-based query language used to request credential presentations by verifiers.
737
+ * @export
738
+ * @interface DCQLQuery
739
+ */
740
+ export interface DCQLQuery {
741
+ /**
742
+ *
743
+ * @type {Array<DCQLQueryCredentials>}
744
+ * @memberof DCQLQuery
745
+ */
746
+ 'credentials': Array<DCQLQueryCredentials>;
747
+ }
748
+ /**
749
+ *
750
+ * @export
751
+ * @interface DCQLQueryClaim
752
+ */
753
+ export interface DCQLQueryClaim {
754
+ /**
755
+ *
756
+ * @type {string}
757
+ * @memberof DCQLQueryClaim
758
+ */
759
+ 'id': string;
760
+ /**
761
+ *
762
+ * @type {Array<DCQLQueryClaimPathInner>}
763
+ * @memberof DCQLQueryClaim
764
+ */
765
+ 'path': Array<DCQLQueryClaimPathInner>;
766
+ /**
767
+ *
768
+ * @type {Array<DCQLQueryClaimValuesInner>}
769
+ * @memberof DCQLQueryClaim
770
+ */
771
+ 'values'?: Array<DCQLQueryClaimValuesInner>;
772
+ }
773
+ /**
774
+ * @type DCQLQueryClaimPathInner
775
+ * @export
776
+ */
777
+ export type DCQLQueryClaimPathInner = number | string;
778
+ /**
779
+ * @type DCQLQueryClaimValuesInner
780
+ * @export
781
+ */
782
+ export type DCQLQueryClaimValuesInner = boolean | number | string;
783
+ /**
784
+ *
785
+ * @export
786
+ * @interface DCQLQueryCredentials
787
+ */
788
+ export interface DCQLQueryCredentials {
789
+ /**
790
+ * A string identifying the Credential in the response.
791
+ * @type {string}
792
+ * @memberof DCQLQueryCredentials
793
+ */
794
+ 'id': string;
795
+ /**
796
+ *
797
+ * @type {string}
798
+ * @memberof DCQLQueryCredentials
799
+ */
800
+ 'format': string;
801
+ /**
802
+ *
803
+ * @type {DCQLQuerySdJwtVcMeta}
804
+ * @memberof DCQLQueryCredentials
805
+ */
806
+ 'meta'?: DCQLQuerySdJwtVcMeta;
807
+ /**
808
+ *
809
+ * @type {Array<DCQLQueryClaim>}
810
+ * @memberof DCQLQueryCredentials
811
+ */
812
+ 'claims'?: Array<DCQLQueryClaim>;
813
+ }
814
+ /**
815
+ *
816
+ * @export
817
+ * @interface DCQLQuerySdJwtVcMeta
818
+ */
819
+ export interface DCQLQuerySdJwtVcMeta {
820
+ /**
821
+ *
822
+ * @type {Array<string>}
823
+ * @memberof DCQLQuerySdJwtVcMeta
824
+ */
825
+ 'vct_values'?: Array<string>;
826
+ }
717
827
  /**
718
828
  * The deferred process status. Can be either in progress, or completed, or error. When the status is completed, the Id property will be set to the value of the resulting object ID.
719
829
  * @export
@@ -844,6 +954,19 @@ export interface EbsiSpecificWalletData {
844
954
  */
845
955
  'configuration': EbsiConfiguration;
846
956
  }
957
+ /**
958
+ * URLs of EUDI services
959
+ * @export
960
+ * @interface EudiConfiguration
961
+ */
962
+ export interface EudiConfiguration {
963
+ /**
964
+ * URL of EUDI Trusted List
965
+ * @type {string}
966
+ * @memberof EudiConfiguration
967
+ */
968
+ 'tslUrl': string;
969
+ }
847
970
  /**
848
971
  * Presented credential field that will be matched
849
972
  * @export
@@ -1107,6 +1230,12 @@ export interface InteractionAuthorizationRequirements {
1107
1230
  * @memberof InteractionAuthorizationRequirements
1108
1231
  */
1109
1232
  'presentationDefinition'?: PresentationDefinition;
1233
+ /**
1234
+ *
1235
+ * @type {DCQLQuery}
1236
+ * @memberof InteractionAuthorizationRequirements
1237
+ */
1238
+ 'dcqlQuery'?: DCQLQuery;
1110
1239
  /**
1111
1240
  * List of credentials suitable for presentation.
1112
1241
  * @type {Array<InputDescriptorSuitableCredentials>}
@@ -1133,6 +1262,7 @@ export interface InteractionAuthorizationRequirements {
1133
1262
  'issuerDisplay'?: Array<IssuerDisplayItem>;
1134
1263
  }
1135
1264
  export declare const InteractionAuthorizationRequirementsRequirementTypeEnum: {
1265
+ readonly None: "none";
1136
1266
  readonly IdToken: "id_token";
1137
1267
  readonly VpToken: "vp_token";
1138
1268
  readonly Pin: "pin";
@@ -1386,6 +1516,12 @@ export interface OfferReceivedNotification {
1386
1516
  * @memberof OfferReceivedNotification
1387
1517
  */
1388
1518
  'holderDid': string;
1519
+ /**
1520
+ *
1521
+ * @type {string}
1522
+ * @memberof OfferReceivedNotification
1523
+ */
1524
+ 'offerId': string;
1389
1525
  /**
1390
1526
  *
1391
1527
  * @type {string}
@@ -1394,7 +1530,7 @@ export interface OfferReceivedNotification {
1394
1530
  'credentialId'?: string;
1395
1531
  }
1396
1532
  /**
1397
- * OIDC specifications are differs drastically from version to version. EBSI needs Draft 11 revision, EUDI uses Release 1.0 revision, so this field should set the revision wallet uses. If omited Draft11 for OIDC4VCI, and Draft16 for OIDC4VP are used for the EBSI compatibility
1533
+ * Specifies the revision of OIDC4VCI and OIDC4VP specifications for issuer and verifier wallets. EBSI uses OIDC4VCI Draft11, OIDC4VP Draft16, EUDI uses OIDC4VCI Draft15, OIDC4VP Draft23. OIDC4VCI Draft11 and OIDC4VP Draft 16 are used by default for EBSI compatibility.
1398
1534
  * @export
1399
1535
  * @interface OidcRevision
1400
1536
  */
@@ -1404,18 +1540,17 @@ export interface OidcRevision {
1404
1540
  * @type {string}
1405
1541
  * @memberof OidcRevision
1406
1542
  */
1407
- 'oidc4vci'?: OidcRevisionOidc4vciEnum;
1543
+ 'oidc4vci': OidcRevisionOidc4vciEnum;
1408
1544
  /**
1409
1545
  *
1410
1546
  * @type {string}
1411
1547
  * @memberof OidcRevision
1412
1548
  */
1413
- 'oidc4vp'?: OidcRevisionOidc4vpEnum;
1549
+ 'oidc4vp': OidcRevisionOidc4vpEnum;
1414
1550
  }
1415
1551
  export declare const OidcRevisionOidc4vciEnum: {
1416
1552
  readonly Draft11: "Draft11";
1417
- readonly Draft13: "Draft13";
1418
- readonly Release10: "Release10";
1553
+ readonly Draft15: "Draft15";
1419
1554
  };
1420
1555
  export type OidcRevisionOidc4vciEnum = typeof OidcRevisionOidc4vciEnum[keyof typeof OidcRevisionOidc4vciEnum];
1421
1556
  export declare const OidcRevisionOidc4vpEnum: {
@@ -1472,6 +1607,12 @@ export interface PreAuthOffer {
1472
1607
  * @memberof PreAuthOffer
1473
1608
  */
1474
1609
  'validUntil': string;
1610
+ /**
1611
+ *
1612
+ * @type {string}
1613
+ * @memberof PreAuthOffer
1614
+ */
1615
+ 'offerId': string;
1475
1616
  }
1476
1617
  /**
1477
1618
  * Prepares to accredit legal entity\'s DID
@@ -2062,6 +2203,12 @@ export interface WalletConfig {
2062
2203
  * @memberof WalletConfig
2063
2204
  */
2064
2205
  'EBSI'?: EbsiSpecificWalletData;
2206
+ /**
2207
+ *
2208
+ * @type {EudiConfiguration}
2209
+ * @memberof WalletConfig
2210
+ */
2211
+ 'EUDI'?: EudiConfiguration;
2065
2212
  /**
2066
2213
  * Expiration time in seconds for credential status lists. Used only if the wallet is a credential issuer
2067
2214
  * @type {number}
package/api.js CHANGED
@@ -75,6 +75,7 @@ exports.HealthStatusStatusEnum = {
75
75
  Critical: 'critical'
76
76
  };
77
77
  exports.InteractionAuthorizationRequirementsRequirementTypeEnum = {
78
+ None: 'none',
78
79
  IdToken: 'id_token',
79
80
  VpToken: 'vp_token',
80
81
  Pin: 'pin'
@@ -90,8 +91,7 @@ exports.ListSort = {
90
91
  };
91
92
  exports.OidcRevisionOidc4vciEnum = {
92
93
  Draft11: 'Draft11',
93
- Draft13: 'Draft13',
94
- Release10: 'Release10'
94
+ Draft15: 'Draft15'
95
95
  };
96
96
  exports.OidcRevisionOidc4vpEnum = {
97
97
  Draft16: 'Draft16',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.237",
4
+ "version": "0.0.239",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {