@triveria/wallet 0.0.237 → 0.0.238
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/api.d.ts +128 -5
- package/api.js +2 -2
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -669,6 +669,12 @@ export interface CredentialVerifierDefinition {
|
|
|
669
669
|
* @memberof CredentialVerifierDefinition
|
|
670
670
|
*/
|
|
671
671
|
'presentationDefinition': PresentationDefinition;
|
|
672
|
+
/**
|
|
673
|
+
*
|
|
674
|
+
* @type {DCQLQuery}
|
|
675
|
+
* @memberof CredentialVerifierDefinition
|
|
676
|
+
*/
|
|
677
|
+
'dcqlQuery'?: DCQLQuery;
|
|
672
678
|
}
|
|
673
679
|
/**
|
|
674
680
|
* The wrapper contains Verifiable Credential in both, the Credential and as Base64 signed format alongside with metadata.
|
|
@@ -714,6 +720,98 @@ export interface CtWalletSameIssuerConfig {
|
|
|
714
720
|
*/
|
|
715
721
|
'defaultCredentialSubject'?: object;
|
|
716
722
|
}
|
|
723
|
+
/**
|
|
724
|
+
* JSON-based query language used to request credential presentations by verifiers.
|
|
725
|
+
* @export
|
|
726
|
+
* @interface DCQLQuery
|
|
727
|
+
*/
|
|
728
|
+
export interface DCQLQuery {
|
|
729
|
+
/**
|
|
730
|
+
*
|
|
731
|
+
* @type {Array<DCQLQueryCredentials>}
|
|
732
|
+
* @memberof DCQLQuery
|
|
733
|
+
*/
|
|
734
|
+
'credentials': Array<DCQLQueryCredentials>;
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @export
|
|
739
|
+
* @interface DCQLQueryClaim
|
|
740
|
+
*/
|
|
741
|
+
export interface DCQLQueryClaim {
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @type {string}
|
|
745
|
+
* @memberof DCQLQueryClaim
|
|
746
|
+
*/
|
|
747
|
+
'id': string;
|
|
748
|
+
/**
|
|
749
|
+
*
|
|
750
|
+
* @type {Array<DCQLQueryClaimPathInner>}
|
|
751
|
+
* @memberof DCQLQueryClaim
|
|
752
|
+
*/
|
|
753
|
+
'path': Array<DCQLQueryClaimPathInner>;
|
|
754
|
+
/**
|
|
755
|
+
*
|
|
756
|
+
* @type {Array<DCQLQueryClaimValuesInner>}
|
|
757
|
+
* @memberof DCQLQueryClaim
|
|
758
|
+
*/
|
|
759
|
+
'values'?: Array<DCQLQueryClaimValuesInner>;
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* @type DCQLQueryClaimPathInner
|
|
763
|
+
* @export
|
|
764
|
+
*/
|
|
765
|
+
export type DCQLQueryClaimPathInner = number | string;
|
|
766
|
+
/**
|
|
767
|
+
* @type DCQLQueryClaimValuesInner
|
|
768
|
+
* @export
|
|
769
|
+
*/
|
|
770
|
+
export type DCQLQueryClaimValuesInner = boolean | number | string;
|
|
771
|
+
/**
|
|
772
|
+
*
|
|
773
|
+
* @export
|
|
774
|
+
* @interface DCQLQueryCredentials
|
|
775
|
+
*/
|
|
776
|
+
export interface DCQLQueryCredentials {
|
|
777
|
+
/**
|
|
778
|
+
* A string identifying the Credential in the response.
|
|
779
|
+
* @type {string}
|
|
780
|
+
* @memberof DCQLQueryCredentials
|
|
781
|
+
*/
|
|
782
|
+
'id': string;
|
|
783
|
+
/**
|
|
784
|
+
*
|
|
785
|
+
* @type {string}
|
|
786
|
+
* @memberof DCQLQueryCredentials
|
|
787
|
+
*/
|
|
788
|
+
'format': string;
|
|
789
|
+
/**
|
|
790
|
+
*
|
|
791
|
+
* @type {DCQLQuerySdJwtVcMeta}
|
|
792
|
+
* @memberof DCQLQueryCredentials
|
|
793
|
+
*/
|
|
794
|
+
'meta'?: DCQLQuerySdJwtVcMeta;
|
|
795
|
+
/**
|
|
796
|
+
*
|
|
797
|
+
* @type {Array<DCQLQueryClaim>}
|
|
798
|
+
* @memberof DCQLQueryCredentials
|
|
799
|
+
*/
|
|
800
|
+
'claims'?: Array<DCQLQueryClaim>;
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @export
|
|
805
|
+
* @interface DCQLQuerySdJwtVcMeta
|
|
806
|
+
*/
|
|
807
|
+
export interface DCQLQuerySdJwtVcMeta {
|
|
808
|
+
/**
|
|
809
|
+
*
|
|
810
|
+
* @type {Array<string>}
|
|
811
|
+
* @memberof DCQLQuerySdJwtVcMeta
|
|
812
|
+
*/
|
|
813
|
+
'vct_values'?: Array<string>;
|
|
814
|
+
}
|
|
717
815
|
/**
|
|
718
816
|
* 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
817
|
* @export
|
|
@@ -844,6 +942,19 @@ export interface EbsiSpecificWalletData {
|
|
|
844
942
|
*/
|
|
845
943
|
'configuration': EbsiConfiguration;
|
|
846
944
|
}
|
|
945
|
+
/**
|
|
946
|
+
* URLs of EUDI services
|
|
947
|
+
* @export
|
|
948
|
+
* @interface EudiConfiguration
|
|
949
|
+
*/
|
|
950
|
+
export interface EudiConfiguration {
|
|
951
|
+
/**
|
|
952
|
+
* URL of EUDI Trusted List
|
|
953
|
+
* @type {string}
|
|
954
|
+
* @memberof EudiConfiguration
|
|
955
|
+
*/
|
|
956
|
+
'tslUrl': string;
|
|
957
|
+
}
|
|
847
958
|
/**
|
|
848
959
|
* Presented credential field that will be matched
|
|
849
960
|
* @export
|
|
@@ -1107,6 +1218,12 @@ export interface InteractionAuthorizationRequirements {
|
|
|
1107
1218
|
* @memberof InteractionAuthorizationRequirements
|
|
1108
1219
|
*/
|
|
1109
1220
|
'presentationDefinition'?: PresentationDefinition;
|
|
1221
|
+
/**
|
|
1222
|
+
*
|
|
1223
|
+
* @type {DCQLQuery}
|
|
1224
|
+
* @memberof InteractionAuthorizationRequirements
|
|
1225
|
+
*/
|
|
1226
|
+
'dcqlQuery'?: DCQLQuery;
|
|
1110
1227
|
/**
|
|
1111
1228
|
* List of credentials suitable for presentation.
|
|
1112
1229
|
* @type {Array<InputDescriptorSuitableCredentials>}
|
|
@@ -1133,6 +1250,7 @@ export interface InteractionAuthorizationRequirements {
|
|
|
1133
1250
|
'issuerDisplay'?: Array<IssuerDisplayItem>;
|
|
1134
1251
|
}
|
|
1135
1252
|
export declare const InteractionAuthorizationRequirementsRequirementTypeEnum: {
|
|
1253
|
+
readonly None: "none";
|
|
1136
1254
|
readonly IdToken: "id_token";
|
|
1137
1255
|
readonly VpToken: "vp_token";
|
|
1138
1256
|
readonly Pin: "pin";
|
|
@@ -1394,7 +1512,7 @@ export interface OfferReceivedNotification {
|
|
|
1394
1512
|
'credentialId'?: string;
|
|
1395
1513
|
}
|
|
1396
1514
|
/**
|
|
1397
|
-
*
|
|
1515
|
+
* 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
1516
|
* @export
|
|
1399
1517
|
* @interface OidcRevision
|
|
1400
1518
|
*/
|
|
@@ -1404,18 +1522,17 @@ export interface OidcRevision {
|
|
|
1404
1522
|
* @type {string}
|
|
1405
1523
|
* @memberof OidcRevision
|
|
1406
1524
|
*/
|
|
1407
|
-
'oidc4vci'
|
|
1525
|
+
'oidc4vci': OidcRevisionOidc4vciEnum;
|
|
1408
1526
|
/**
|
|
1409
1527
|
*
|
|
1410
1528
|
* @type {string}
|
|
1411
1529
|
* @memberof OidcRevision
|
|
1412
1530
|
*/
|
|
1413
|
-
'oidc4vp'
|
|
1531
|
+
'oidc4vp': OidcRevisionOidc4vpEnum;
|
|
1414
1532
|
}
|
|
1415
1533
|
export declare const OidcRevisionOidc4vciEnum: {
|
|
1416
1534
|
readonly Draft11: "Draft11";
|
|
1417
|
-
readonly
|
|
1418
|
-
readonly Release10: "Release10";
|
|
1535
|
+
readonly Draft15: "Draft15";
|
|
1419
1536
|
};
|
|
1420
1537
|
export type OidcRevisionOidc4vciEnum = typeof OidcRevisionOidc4vciEnum[keyof typeof OidcRevisionOidc4vciEnum];
|
|
1421
1538
|
export declare const OidcRevisionOidc4vpEnum: {
|
|
@@ -2062,6 +2179,12 @@ export interface WalletConfig {
|
|
|
2062
2179
|
* @memberof WalletConfig
|
|
2063
2180
|
*/
|
|
2064
2181
|
'EBSI'?: EbsiSpecificWalletData;
|
|
2182
|
+
/**
|
|
2183
|
+
*
|
|
2184
|
+
* @type {EudiConfiguration}
|
|
2185
|
+
* @memberof WalletConfig
|
|
2186
|
+
*/
|
|
2187
|
+
'EUDI'?: EudiConfiguration;
|
|
2065
2188
|
/**
|
|
2066
2189
|
* Expiration time in seconds for credential status lists. Used only if the wallet is a credential issuer
|
|
2067
2190
|
* @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
|
-
|
|
94
|
-
Release10: 'Release10'
|
|
94
|
+
Draft15: 'Draft15'
|
|
95
95
|
};
|
|
96
96
|
exports.OidcRevisionOidc4vpEnum = {
|
|
97
97
|
Draft16: 'Draft16',
|