@triveria/wallet 0.0.170 → 0.0.172
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 +43 -0
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -243,6 +243,18 @@ export interface CredentialIssuerDefinition {
|
|
|
243
243
|
* @memberof CredentialIssuerDefinition
|
|
244
244
|
*/
|
|
245
245
|
'credentialIssuer': CredentialIssuerDefinitionCredentialIssuerEnum;
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @type {CredentialRequirements}
|
|
249
|
+
* @memberof CredentialIssuerDefinition
|
|
250
|
+
*/
|
|
251
|
+
'credentialRequirements'?: CredentialRequirements;
|
|
252
|
+
/**
|
|
253
|
+
* Format of the issued credential
|
|
254
|
+
* @type {string}
|
|
255
|
+
* @memberof CredentialIssuerDefinition
|
|
256
|
+
*/
|
|
257
|
+
'credentialFormat'?: string;
|
|
246
258
|
/**
|
|
247
259
|
* JSON paths of credential claims which will support being disclosed partially.
|
|
248
260
|
* @type {Array<string>}
|
|
@@ -394,6 +406,37 @@ export interface CredentialRequest {
|
|
|
394
406
|
*/
|
|
395
407
|
'legalEntity': boolean;
|
|
396
408
|
}
|
|
409
|
+
/**
|
|
410
|
+
*
|
|
411
|
+
* @export
|
|
412
|
+
* @interface CredentialRequirements
|
|
413
|
+
*/
|
|
414
|
+
export interface CredentialRequirements {
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* @type {string}
|
|
418
|
+
* @memberof CredentialRequirements
|
|
419
|
+
*/
|
|
420
|
+
'credentialVerifier': string;
|
|
421
|
+
/**
|
|
422
|
+
*
|
|
423
|
+
* @type {string}
|
|
424
|
+
* @memberof CredentialRequirements
|
|
425
|
+
*/
|
|
426
|
+
'schema': string;
|
|
427
|
+
/**
|
|
428
|
+
* Expiration interval in seconds
|
|
429
|
+
* @type {number}
|
|
430
|
+
* @memberof CredentialRequirements
|
|
431
|
+
*/
|
|
432
|
+
'expirationDuration': number;
|
|
433
|
+
/**
|
|
434
|
+
* Mapping of the input values set as JSONPath elements to the output credential claims.
|
|
435
|
+
* @type {object}
|
|
436
|
+
* @memberof CredentialRequirements
|
|
437
|
+
*/
|
|
438
|
+
'mapping': object;
|
|
439
|
+
}
|
|
397
440
|
/**
|
|
398
441
|
* @type CredentialSchema
|
|
399
442
|
* One or more data schemas that provide verifiers with enough information to determine if the provided data conforms to the provided schema(s) https://www.w3.org/TR/vc-data-model-2.0/#defn-credentialSchema
|