@triveria/wallet 0.0.165 → 0.0.167
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 +11 -12
- package/api.js +9 -4
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -551,12 +551,6 @@ export interface CredentialVerifierDefinition {
|
|
|
551
551
|
* @memberof CredentialVerifierDefinition
|
|
552
552
|
*/
|
|
553
553
|
'presentationDefinition': PresentationDefinition;
|
|
554
|
-
/**
|
|
555
|
-
* Additional JSON schema that will be used to validate credential. This can be used to narrow down the validation process to a specific set of attributes on top of the credential validity.
|
|
556
|
-
* @type {Array<PresentationDefinitionInputConstraintField>}
|
|
557
|
-
* @memberof CredentialVerifierDefinition
|
|
558
|
-
*/
|
|
559
|
-
'credentialValidationConstraints'?: Array<PresentationDefinitionInputConstraintField>;
|
|
560
554
|
}
|
|
561
555
|
/**
|
|
562
556
|
* The wrapper contains Verifiable Credential in both, the Credential and as Base64 signed format alongside with metadata.
|
|
@@ -1664,11 +1658,11 @@ export interface Wallet {
|
|
|
1664
1658
|
*/
|
|
1665
1659
|
'name': string;
|
|
1666
1660
|
/**
|
|
1667
|
-
*
|
|
1668
|
-
* @type {
|
|
1661
|
+
* This property defines the capabilities which the wallet has. It may be any of \"holder\", \"issuer\" and \"verifier\".
|
|
1662
|
+
* @type {Array<WalletCapability>}
|
|
1669
1663
|
* @memberof Wallet
|
|
1670
1664
|
*/
|
|
1671
|
-
'
|
|
1665
|
+
'capabilities'?: Array<WalletCapability>;
|
|
1672
1666
|
/**
|
|
1673
1667
|
* Wallet metadata is a key value container for any custom data a client may want
|
|
1674
1668
|
* @type {{ [key: string]: any; }}
|
|
@@ -1684,12 +1678,17 @@ export interface Wallet {
|
|
|
1684
1678
|
*/
|
|
1685
1679
|
'config': WalletConfig;
|
|
1686
1680
|
}
|
|
1687
|
-
|
|
1681
|
+
/**
|
|
1682
|
+
*
|
|
1683
|
+
* @export
|
|
1684
|
+
* @enum {string}
|
|
1685
|
+
*/
|
|
1686
|
+
export declare const WalletCapability: {
|
|
1688
1687
|
readonly Holder: "holder";
|
|
1689
|
-
readonly Verifier: "verifier";
|
|
1690
1688
|
readonly Issuer: "issuer";
|
|
1689
|
+
readonly Verifier: "verifier";
|
|
1691
1690
|
};
|
|
1692
|
-
export type
|
|
1691
|
+
export type WalletCapability = typeof WalletCapability[keyof typeof WalletCapability];
|
|
1693
1692
|
/**
|
|
1694
1693
|
* Wallet specific configuration.
|
|
1695
1694
|
* @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.
|
|
28
|
+
exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventType = exports.WalletConfigTrustFrameworkEnum = exports.WalletCapability = exports.SystemImpactStatusEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.PrepareToAccreditRequestTypeEnum = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = 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
|
|
@@ -92,10 +92,15 @@ exports.SystemImpactStatusEnum = {
|
|
|
92
92
|
Limited: 'limited',
|
|
93
93
|
Critical: 'critical'
|
|
94
94
|
};
|
|
95
|
-
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @export
|
|
98
|
+
* @enum {string}
|
|
99
|
+
*/
|
|
100
|
+
exports.WalletCapability = {
|
|
96
101
|
Holder: 'holder',
|
|
97
|
-
|
|
98
|
-
|
|
102
|
+
Issuer: 'issuer',
|
|
103
|
+
Verifier: 'verifier'
|
|
99
104
|
};
|
|
100
105
|
exports.WalletConfigTrustFrameworkEnum = {
|
|
101
106
|
Ebsi: 'EBSI',
|