@triveria/wallet 0.0.203 → 0.0.205
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 +70 -6
- package/api.js +2 -1
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -226,6 +226,12 @@ export interface CredentialImport {
|
|
|
226
226
|
* @interface CredentialIssuanceInit
|
|
227
227
|
*/
|
|
228
228
|
export interface CredentialIssuanceInit {
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* @type {string}
|
|
232
|
+
* @memberof CredentialIssuanceInit
|
|
233
|
+
*/
|
|
234
|
+
'issuerId': string;
|
|
229
235
|
/**
|
|
230
236
|
*
|
|
231
237
|
* @type {string}
|
|
@@ -238,6 +244,12 @@ export interface CredentialIssuanceInit {
|
|
|
238
244
|
* @memberof CredentialIssuanceInit
|
|
239
245
|
*/
|
|
240
246
|
'idTokenRequestId'?: string;
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @type {IssuanceRequirementsToVerify}
|
|
250
|
+
* @memberof CredentialIssuanceInit
|
|
251
|
+
*/
|
|
252
|
+
'issuanceRequirementsToVerify'?: IssuanceRequirementsToVerify;
|
|
241
253
|
}
|
|
242
254
|
/**
|
|
243
255
|
*
|
|
@@ -251,6 +263,12 @@ export interface CredentialIssuerDefinition {
|
|
|
251
263
|
* @memberof CredentialIssuerDefinition
|
|
252
264
|
*/
|
|
253
265
|
'name': string;
|
|
266
|
+
/**
|
|
267
|
+
* Unique identifier of the issuer
|
|
268
|
+
* @type {string}
|
|
269
|
+
* @memberof CredentialIssuerDefinition
|
|
270
|
+
*/
|
|
271
|
+
'id': string;
|
|
254
272
|
/**
|
|
255
273
|
* Type of credentials for which the specified credential issuer will be used.
|
|
256
274
|
* @type {Array<string>}
|
|
@@ -287,6 +305,7 @@ export declare const CredentialIssuerDefinitionCredentialIssuerEnum: {
|
|
|
287
305
|
readonly CtRevocable: "CtRevocable";
|
|
288
306
|
readonly IssuanceQueue: "IssuanceQueue";
|
|
289
307
|
readonly VpDriven: "VPDriven";
|
|
308
|
+
readonly CredentialRequirements: "CredentialRequirements";
|
|
290
309
|
};
|
|
291
310
|
export type CredentialIssuerDefinitionCredentialIssuerEnum = typeof CredentialIssuerDefinitionCredentialIssuerEnum[keyof typeof CredentialIssuerDefinitionCredentialIssuerEnum];
|
|
292
311
|
/**
|
|
@@ -874,6 +893,32 @@ export interface EvidenceItem {
|
|
|
874
893
|
*/
|
|
875
894
|
'type': Array<string>;
|
|
876
895
|
}
|
|
896
|
+
/**
|
|
897
|
+
* Presented credential field that will be matched
|
|
898
|
+
* @export
|
|
899
|
+
* @interface FieldsToVerify
|
|
900
|
+
*/
|
|
901
|
+
export interface FieldsToVerify {
|
|
902
|
+
/**
|
|
903
|
+
* JSON Path of the field
|
|
904
|
+
* @type {string}
|
|
905
|
+
* @memberof FieldsToVerify
|
|
906
|
+
*/
|
|
907
|
+
'path': string;
|
|
908
|
+
/**
|
|
909
|
+
*
|
|
910
|
+
* @type {FieldsToVerifyValue}
|
|
911
|
+
* @memberof FieldsToVerify
|
|
912
|
+
*/
|
|
913
|
+
'value': FieldsToVerifyValue;
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
* Required value of the field
|
|
917
|
+
* @export
|
|
918
|
+
* @interface FieldsToVerifyValue
|
|
919
|
+
*/
|
|
920
|
+
export interface FieldsToVerifyValue {
|
|
921
|
+
}
|
|
877
922
|
/**
|
|
878
923
|
* Health status of the system
|
|
879
924
|
* @export
|
|
@@ -994,11 +1039,11 @@ export interface IdTokenSendRequest {
|
|
|
994
1039
|
*/
|
|
995
1040
|
export interface InitAuthOffer {
|
|
996
1041
|
/**
|
|
997
|
-
*
|
|
998
|
-
* @type {
|
|
1042
|
+
* ID of the issuer used to issue the credential.
|
|
1043
|
+
* @type {string}
|
|
999
1044
|
* @memberof InitAuthOffer
|
|
1000
1045
|
*/
|
|
1001
|
-
'
|
|
1046
|
+
'issuerId': string;
|
|
1002
1047
|
/**
|
|
1003
1048
|
*
|
|
1004
1049
|
* @type {CredentialFormat}
|
|
@@ -1037,11 +1082,11 @@ export interface InitPreAuthOffer {
|
|
|
1037
1082
|
*/
|
|
1038
1083
|
'idTokenRequestId'?: string;
|
|
1039
1084
|
/**
|
|
1040
|
-
*
|
|
1041
|
-
* @type {
|
|
1085
|
+
* ID of the issuer used to issue the credential.
|
|
1086
|
+
* @type {string}
|
|
1042
1087
|
* @memberof InitPreAuthOffer
|
|
1043
1088
|
*/
|
|
1044
|
-
'
|
|
1089
|
+
'issuerId': string;
|
|
1045
1090
|
/**
|
|
1046
1091
|
*
|
|
1047
1092
|
* @type {CredentialFormat}
|
|
@@ -1136,6 +1181,25 @@ export declare const InteractionAuthorizationRequirementsRequirementTypeEnum: {
|
|
|
1136
1181
|
readonly Pin: "pin";
|
|
1137
1182
|
};
|
|
1138
1183
|
export type InteractionAuthorizationRequirementsRequirementTypeEnum = typeof InteractionAuthorizationRequirementsRequirementTypeEnum[keyof typeof InteractionAuthorizationRequirementsRequirementTypeEnum];
|
|
1184
|
+
/**
|
|
1185
|
+
*
|
|
1186
|
+
* @export
|
|
1187
|
+
* @interface IssuanceRequirementsToVerify
|
|
1188
|
+
*/
|
|
1189
|
+
export interface IssuanceRequirementsToVerify {
|
|
1190
|
+
/**
|
|
1191
|
+
* ID of the verifier used for the verification of presented credential.
|
|
1192
|
+
* @type {string}
|
|
1193
|
+
* @memberof IssuanceRequirementsToVerify
|
|
1194
|
+
*/
|
|
1195
|
+
'credentialVerifierId': string;
|
|
1196
|
+
/**
|
|
1197
|
+
*
|
|
1198
|
+
* @type {Array<FieldsToVerify>}
|
|
1199
|
+
* @memberof IssuanceRequirementsToVerify
|
|
1200
|
+
*/
|
|
1201
|
+
'verifiedFields': Array<FieldsToVerify>;
|
|
1202
|
+
}
|
|
1139
1203
|
/**
|
|
1140
1204
|
*
|
|
1141
1205
|
* @export
|
package/api.js
CHANGED
|
@@ -49,7 +49,8 @@ exports.CredentialIssuerDefinitionCredentialIssuerEnum = {
|
|
|
49
49
|
CtWalletSame: 'CtWalletSame',
|
|
50
50
|
CtRevocable: 'CtRevocable',
|
|
51
51
|
IssuanceQueue: 'IssuanceQueue',
|
|
52
|
-
VpDriven: 'VPDriven'
|
|
52
|
+
VpDriven: 'VPDriven',
|
|
53
|
+
CredentialRequirements: 'CredentialRequirements'
|
|
53
54
|
};
|
|
54
55
|
exports.CredentialMetadataInteractionEnum = {
|
|
55
56
|
Issuance: 'issuance',
|