@triveria/wallet 0.0.160 → 0.0.162
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 +125 -12
- package/api.js +1 -4
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -146,6 +146,18 @@ export interface Credential {
|
|
|
146
146
|
* @memberof Credential
|
|
147
147
|
*/
|
|
148
148
|
'issuer'?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Array of specific VC field disclosures
|
|
151
|
+
* @type {Array<string>}
|
|
152
|
+
* @memberof Credential
|
|
153
|
+
*/
|
|
154
|
+
'_sd'?: Array<string>;
|
|
155
|
+
/**
|
|
156
|
+
* Algorithm used for hashing disclosure digests
|
|
157
|
+
* @type {string}
|
|
158
|
+
* @memberof Credential
|
|
159
|
+
*/
|
|
160
|
+
'_sd_alg'?: string;
|
|
149
161
|
/**
|
|
150
162
|
*
|
|
151
163
|
* @type {RefreshService}
|
|
@@ -209,12 +221,6 @@ export interface CredentialIssuerDefinition {
|
|
|
209
221
|
* @memberof CredentialIssuerDefinition
|
|
210
222
|
*/
|
|
211
223
|
'name': string;
|
|
212
|
-
/**
|
|
213
|
-
* Credential format ex. `jwt_vc`.
|
|
214
|
-
* @type {string}
|
|
215
|
-
* @memberof CredentialIssuerDefinition
|
|
216
|
-
*/
|
|
217
|
-
'credentialFormat': CredentialIssuerDefinitionCredentialFormatEnum;
|
|
218
224
|
/**
|
|
219
225
|
* Type of credentials for which the specified credential issuer will be used.
|
|
220
226
|
* @type {Array<string>}
|
|
@@ -227,11 +233,13 @@ export interface CredentialIssuerDefinition {
|
|
|
227
233
|
* @memberof CredentialIssuerDefinition
|
|
228
234
|
*/
|
|
229
235
|
'credentialIssuer': CredentialIssuerDefinitionCredentialIssuerEnum;
|
|
236
|
+
/**
|
|
237
|
+
* JSON paths of credential claims which will support being disclosed partially.
|
|
238
|
+
* @type {Array<string>}
|
|
239
|
+
* @memberof CredentialIssuerDefinition
|
|
240
|
+
*/
|
|
241
|
+
'disclosableClaims'?: Array<string>;
|
|
230
242
|
}
|
|
231
|
-
export declare const CredentialIssuerDefinitionCredentialFormatEnum: {
|
|
232
|
-
readonly JwtVc: "jwt_vc";
|
|
233
|
-
};
|
|
234
|
-
export type CredentialIssuerDefinitionCredentialFormatEnum = typeof CredentialIssuerDefinitionCredentialFormatEnum[keyof typeof CredentialIssuerDefinitionCredentialFormatEnum];
|
|
235
243
|
export declare const CredentialIssuerDefinitionCredentialIssuerEnum: {
|
|
236
244
|
readonly CtWalletSame: "CtWalletSame";
|
|
237
245
|
readonly CtRevocable: "CtRevocable";
|
|
@@ -300,6 +308,18 @@ export interface CredentialMetadata {
|
|
|
300
308
|
* @memberof CredentialMetadata
|
|
301
309
|
*/
|
|
302
310
|
'status': CredentialMetadataStatusEnum;
|
|
311
|
+
/**
|
|
312
|
+
*
|
|
313
|
+
* @type {Array<string>}
|
|
314
|
+
* @memberof CredentialMetadata
|
|
315
|
+
*/
|
|
316
|
+
'disclosableFields'?: Array<string>;
|
|
317
|
+
/**
|
|
318
|
+
* Array of objects, where each object contains display properties of a Credential Issuer for a certain language.
|
|
319
|
+
* @type {Array<IssuerDisplayItem>}
|
|
320
|
+
* @memberof CredentialMetadata
|
|
321
|
+
*/
|
|
322
|
+
'issuerDisplay'?: Array<IssuerDisplayItem>;
|
|
303
323
|
}
|
|
304
324
|
export declare const CredentialMetadataStatusEnum: {
|
|
305
325
|
readonly Draft: "draft";
|
|
@@ -339,6 +359,12 @@ export interface CredentialRequest {
|
|
|
339
359
|
* @memberof CredentialRequest
|
|
340
360
|
*/
|
|
341
361
|
'types': Array<string>;
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
* @type {string}
|
|
365
|
+
* @memberof CredentialRequest
|
|
366
|
+
*/
|
|
367
|
+
'format': string;
|
|
342
368
|
/**
|
|
343
369
|
*
|
|
344
370
|
* @type {string}
|
|
@@ -446,6 +472,31 @@ export interface CredentialSubjectItem {
|
|
|
446
472
|
* @memberof CredentialSubjectItem
|
|
447
473
|
*/
|
|
448
474
|
'id'?: string;
|
|
475
|
+
/**
|
|
476
|
+
* Array of specific VC subject field disclosures
|
|
477
|
+
* @type {Array<string>}
|
|
478
|
+
* @memberof CredentialSubjectItem
|
|
479
|
+
*/
|
|
480
|
+
'_sd'?: Array<string>;
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
*
|
|
484
|
+
* @export
|
|
485
|
+
* @interface CredentialToPresentWrapper
|
|
486
|
+
*/
|
|
487
|
+
export interface CredentialToPresentWrapper {
|
|
488
|
+
/**
|
|
489
|
+
*
|
|
490
|
+
* @type {CredentialMetadata}
|
|
491
|
+
* @memberof CredentialToPresentWrapper
|
|
492
|
+
*/
|
|
493
|
+
'credential': CredentialMetadata;
|
|
494
|
+
/**
|
|
495
|
+
* Array of json paths of claims that will be disclosed from this credential.
|
|
496
|
+
* @type {Array<string>}
|
|
497
|
+
* @memberof CredentialToPresentWrapper
|
|
498
|
+
*/
|
|
499
|
+
'fieldsToDisclose': Array<string>;
|
|
449
500
|
}
|
|
450
501
|
/**
|
|
451
502
|
* A credential type that can be issued by the issuer - format: the verifiable credential format (for example \"jwt_vc\") - type: the verifiable credential type, usually provided as list of strings (for example: \"VerifiableCredential\", \"VerifiableAttestation\", \"VerifiableId\")
|
|
@@ -703,6 +754,12 @@ export interface HolderAuthOfferCreationRequest {
|
|
|
703
754
|
* @memberof HolderAuthOfferCreationRequest
|
|
704
755
|
*/
|
|
705
756
|
'types': Array<string>;
|
|
757
|
+
/**
|
|
758
|
+
*
|
|
759
|
+
* @type {string}
|
|
760
|
+
* @memberof HolderAuthOfferCreationRequest
|
|
761
|
+
*/
|
|
762
|
+
'format': string;
|
|
706
763
|
/**
|
|
707
764
|
*
|
|
708
765
|
* @type {string}
|
|
@@ -773,6 +830,12 @@ export interface InitAuthOffer {
|
|
|
773
830
|
* @memberof InitAuthOffer
|
|
774
831
|
*/
|
|
775
832
|
'credentialTypes': Array<string>;
|
|
833
|
+
/**
|
|
834
|
+
*
|
|
835
|
+
* @type {string}
|
|
836
|
+
* @memberof InitAuthOffer
|
|
837
|
+
*/
|
|
838
|
+
'format': string;
|
|
776
839
|
/**
|
|
777
840
|
*
|
|
778
841
|
* @type {string}
|
|
@@ -804,6 +867,12 @@ export interface InitPreAuthOffer {
|
|
|
804
867
|
* @memberof InitPreAuthOffer
|
|
805
868
|
*/
|
|
806
869
|
'credentialTypes': Array<string>;
|
|
870
|
+
/**
|
|
871
|
+
*
|
|
872
|
+
* @type {string}
|
|
873
|
+
* @memberof InitPreAuthOffer
|
|
874
|
+
*/
|
|
875
|
+
'format': string;
|
|
807
876
|
/**
|
|
808
877
|
*
|
|
809
878
|
* @type {string}
|
|
@@ -825,10 +894,10 @@ export interface InputDescriptorSuitableCredentials {
|
|
|
825
894
|
'descriptorId': string;
|
|
826
895
|
/**
|
|
827
896
|
* Credential ID list of credentials suitable for presentation according to the specified input descriptor.
|
|
828
|
-
* @type {Array<
|
|
897
|
+
* @type {Array<CredentialToPresentWrapper>}
|
|
829
898
|
* @memberof InputDescriptorSuitableCredentials
|
|
830
899
|
*/
|
|
831
|
-
'credentials': Array<
|
|
900
|
+
'credentials': Array<CredentialToPresentWrapper>;
|
|
832
901
|
}
|
|
833
902
|
/**
|
|
834
903
|
*
|
|
@@ -905,6 +974,50 @@ export interface IssuanceQueueCredentialAdd {
|
|
|
905
974
|
*/
|
|
906
975
|
'idTokenRequestId'?: string;
|
|
907
976
|
}
|
|
977
|
+
/**
|
|
978
|
+
*
|
|
979
|
+
* @export
|
|
980
|
+
* @interface IssuerDisplayItem
|
|
981
|
+
*/
|
|
982
|
+
export interface IssuerDisplayItem {
|
|
983
|
+
/**
|
|
984
|
+
*
|
|
985
|
+
* @type {string}
|
|
986
|
+
* @memberof IssuerDisplayItem
|
|
987
|
+
*/
|
|
988
|
+
'name'?: string;
|
|
989
|
+
/**
|
|
990
|
+
*
|
|
991
|
+
* @type {string}
|
|
992
|
+
* @memberof IssuerDisplayItem
|
|
993
|
+
*/
|
|
994
|
+
'locale'?: string;
|
|
995
|
+
/**
|
|
996
|
+
*
|
|
997
|
+
* @type {IssuerLogoImage}
|
|
998
|
+
* @memberof IssuerDisplayItem
|
|
999
|
+
*/
|
|
1000
|
+
'logo'?: IssuerLogoImage;
|
|
1001
|
+
}
|
|
1002
|
+
/**
|
|
1003
|
+
*
|
|
1004
|
+
* @export
|
|
1005
|
+
* @interface IssuerLogoImage
|
|
1006
|
+
*/
|
|
1007
|
+
export interface IssuerLogoImage {
|
|
1008
|
+
/**
|
|
1009
|
+
*
|
|
1010
|
+
* @type {string}
|
|
1011
|
+
* @memberof IssuerLogoImage
|
|
1012
|
+
*/
|
|
1013
|
+
'uri'?: string;
|
|
1014
|
+
/**
|
|
1015
|
+
*
|
|
1016
|
+
* @type {string}
|
|
1017
|
+
* @memberof IssuerLogoImage
|
|
1018
|
+
*/
|
|
1019
|
+
'alt_text'?: string;
|
|
1020
|
+
}
|
|
908
1021
|
/**
|
|
909
1022
|
* TBD
|
|
910
1023
|
* @export
|
package/api.js
CHANGED
|
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventType = exports.WalletConfigTrustFrameworkEnum = exports.WalletRoleEnum = exports.SystemImpactStatusEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.
|
|
28
|
+
exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventType = exports.WalletConfigTrustFrameworkEnum = exports.WalletRoleEnum = exports.SystemImpactStatusEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.AccreditationRequestTypeEnum = void 0;
|
|
29
29
|
const axios_1 = __importDefault(require("axios"));
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -36,9 +36,6 @@ exports.AccreditationRequestTypeEnum = {
|
|
|
36
36
|
TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation',
|
|
37
37
|
RootTrustedAccreditationOrganisation: 'RootTrustedAccreditationOrganisation'
|
|
38
38
|
};
|
|
39
|
-
exports.CredentialIssuerDefinitionCredentialFormatEnum = {
|
|
40
|
-
JwtVc: 'jwt_vc'
|
|
41
|
-
};
|
|
42
39
|
exports.CredentialIssuerDefinitionCredentialIssuerEnum = {
|
|
43
40
|
CtWalletSame: 'CtWalletSame',
|
|
44
41
|
CtRevocable: 'CtRevocable',
|