@triveria/wallet 0.0.161 → 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 +75 -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,12 @@ 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>;
|
|
303
317
|
/**
|
|
304
318
|
* Array of objects, where each object contains display properties of a Credential Issuer for a certain language.
|
|
305
319
|
* @type {Array<IssuerDisplayItem>}
|
|
@@ -345,6 +359,12 @@ export interface CredentialRequest {
|
|
|
345
359
|
* @memberof CredentialRequest
|
|
346
360
|
*/
|
|
347
361
|
'types': Array<string>;
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
* @type {string}
|
|
365
|
+
* @memberof CredentialRequest
|
|
366
|
+
*/
|
|
367
|
+
'format': string;
|
|
348
368
|
/**
|
|
349
369
|
*
|
|
350
370
|
* @type {string}
|
|
@@ -452,6 +472,31 @@ export interface CredentialSubjectItem {
|
|
|
452
472
|
* @memberof CredentialSubjectItem
|
|
453
473
|
*/
|
|
454
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>;
|
|
455
500
|
}
|
|
456
501
|
/**
|
|
457
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\")
|
|
@@ -709,6 +754,12 @@ export interface HolderAuthOfferCreationRequest {
|
|
|
709
754
|
* @memberof HolderAuthOfferCreationRequest
|
|
710
755
|
*/
|
|
711
756
|
'types': Array<string>;
|
|
757
|
+
/**
|
|
758
|
+
*
|
|
759
|
+
* @type {string}
|
|
760
|
+
* @memberof HolderAuthOfferCreationRequest
|
|
761
|
+
*/
|
|
762
|
+
'format': string;
|
|
712
763
|
/**
|
|
713
764
|
*
|
|
714
765
|
* @type {string}
|
|
@@ -779,6 +830,12 @@ export interface InitAuthOffer {
|
|
|
779
830
|
* @memberof InitAuthOffer
|
|
780
831
|
*/
|
|
781
832
|
'credentialTypes': Array<string>;
|
|
833
|
+
/**
|
|
834
|
+
*
|
|
835
|
+
* @type {string}
|
|
836
|
+
* @memberof InitAuthOffer
|
|
837
|
+
*/
|
|
838
|
+
'format': string;
|
|
782
839
|
/**
|
|
783
840
|
*
|
|
784
841
|
* @type {string}
|
|
@@ -810,6 +867,12 @@ export interface InitPreAuthOffer {
|
|
|
810
867
|
* @memberof InitPreAuthOffer
|
|
811
868
|
*/
|
|
812
869
|
'credentialTypes': Array<string>;
|
|
870
|
+
/**
|
|
871
|
+
*
|
|
872
|
+
* @type {string}
|
|
873
|
+
* @memberof InitPreAuthOffer
|
|
874
|
+
*/
|
|
875
|
+
'format': string;
|
|
813
876
|
/**
|
|
814
877
|
*
|
|
815
878
|
* @type {string}
|
|
@@ -831,10 +894,10 @@ export interface InputDescriptorSuitableCredentials {
|
|
|
831
894
|
'descriptorId': string;
|
|
832
895
|
/**
|
|
833
896
|
* Credential ID list of credentials suitable for presentation according to the specified input descriptor.
|
|
834
|
-
* @type {Array<
|
|
897
|
+
* @type {Array<CredentialToPresentWrapper>}
|
|
835
898
|
* @memberof InputDescriptorSuitableCredentials
|
|
836
899
|
*/
|
|
837
|
-
'credentials': Array<
|
|
900
|
+
'credentials': Array<CredentialToPresentWrapper>;
|
|
838
901
|
}
|
|
839
902
|
/**
|
|
840
903
|
*
|
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',
|