@triveria/wallet 0.0.166 → 0.0.168
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 +35 -6
- package/api.js +14 -4
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -688,6 +688,24 @@ export interface EbsiSpecificWalletData {
|
|
|
688
688
|
* @memberof EbsiSpecificWalletData
|
|
689
689
|
*/
|
|
690
690
|
'proxyUrl'?: string;
|
|
691
|
+
/**
|
|
692
|
+
* Defines if the specific wallet is eligible to request a credential from EBSI to get Accredited as RTAO
|
|
693
|
+
* @type {boolean}
|
|
694
|
+
* @memberof EbsiSpecificWalletData
|
|
695
|
+
*/
|
|
696
|
+
'rTaoEligible'?: boolean;
|
|
697
|
+
/**
|
|
698
|
+
* EBSI specific role in the trust chain
|
|
699
|
+
* @type {string}
|
|
700
|
+
* @memberof EbsiSpecificWalletData
|
|
701
|
+
*/
|
|
702
|
+
'trustChainRole'?: EbsiSpecificWalletDataTrustChainRoleEnum;
|
|
703
|
+
/**
|
|
704
|
+
* List of credential DIDs that authorize this specific wallet to accredit other wallets.
|
|
705
|
+
* @type {Array<string>}
|
|
706
|
+
* @memberof EbsiSpecificWalletData
|
|
707
|
+
*/
|
|
708
|
+
'authorizationCredentials'?: Array<string>;
|
|
691
709
|
/**
|
|
692
710
|
*
|
|
693
711
|
* @type {EbsiConfiguration}
|
|
@@ -695,6 +713,12 @@ export interface EbsiSpecificWalletData {
|
|
|
695
713
|
*/
|
|
696
714
|
'configuration': EbsiConfiguration;
|
|
697
715
|
}
|
|
716
|
+
export declare const EbsiSpecificWalletDataTrustChainRoleEnum: {
|
|
717
|
+
readonly Rtao: "rtao";
|
|
718
|
+
readonly Tao: "tao";
|
|
719
|
+
readonly Ti: "ti";
|
|
720
|
+
};
|
|
721
|
+
export type EbsiSpecificWalletDataTrustChainRoleEnum = typeof EbsiSpecificWalletDataTrustChainRoleEnum[keyof typeof EbsiSpecificWalletDataTrustChainRoleEnum];
|
|
698
722
|
/**
|
|
699
723
|
* A scheme providing enough information for a verifier to determine whether the evidence gathered by the issuer meets its confidence requirements for relying on the credential
|
|
700
724
|
* @export
|
|
@@ -1658,11 +1682,11 @@ export interface Wallet {
|
|
|
1658
1682
|
*/
|
|
1659
1683
|
'name': string;
|
|
1660
1684
|
/**
|
|
1661
|
-
*
|
|
1662
|
-
* @type {
|
|
1685
|
+
* This property defines the capabilities which the wallet has. It may be any of \"holder\", \"issuer\" and \"verifier\".
|
|
1686
|
+
* @type {Array<WalletCapability>}
|
|
1663
1687
|
* @memberof Wallet
|
|
1664
1688
|
*/
|
|
1665
|
-
'
|
|
1689
|
+
'capabilities'?: Array<WalletCapability>;
|
|
1666
1690
|
/**
|
|
1667
1691
|
* Wallet metadata is a key value container for any custom data a client may want
|
|
1668
1692
|
* @type {{ [key: string]: any; }}
|
|
@@ -1678,12 +1702,17 @@ export interface Wallet {
|
|
|
1678
1702
|
*/
|
|
1679
1703
|
'config': WalletConfig;
|
|
1680
1704
|
}
|
|
1681
|
-
|
|
1705
|
+
/**
|
|
1706
|
+
*
|
|
1707
|
+
* @export
|
|
1708
|
+
* @enum {string}
|
|
1709
|
+
*/
|
|
1710
|
+
export declare const WalletCapability: {
|
|
1682
1711
|
readonly Holder: "holder";
|
|
1683
|
-
readonly Verifier: "verifier";
|
|
1684
1712
|
readonly Issuer: "issuer";
|
|
1713
|
+
readonly Verifier: "verifier";
|
|
1685
1714
|
};
|
|
1686
|
-
export type
|
|
1715
|
+
export type WalletCapability = typeof WalletCapability[keyof typeof WalletCapability];
|
|
1687
1716
|
/**
|
|
1688
1717
|
* Wallet specific configuration.
|
|
1689
1718
|
* @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.EbsiSpecificWalletDataTrustChainRoleEnum = 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
|
|
@@ -60,6 +60,11 @@ exports.DeferredStatusEnum = {
|
|
|
60
60
|
Completed: 'completed',
|
|
61
61
|
Error: 'error'
|
|
62
62
|
};
|
|
63
|
+
exports.EbsiSpecificWalletDataTrustChainRoleEnum = {
|
|
64
|
+
Rtao: 'rtao',
|
|
65
|
+
Tao: 'tao',
|
|
66
|
+
Ti: 'ti'
|
|
67
|
+
};
|
|
63
68
|
exports.HealthStatusStatusEnum = {
|
|
64
69
|
Ok: 'ok',
|
|
65
70
|
Limited: 'limited',
|
|
@@ -92,10 +97,15 @@ exports.SystemImpactStatusEnum = {
|
|
|
92
97
|
Limited: 'limited',
|
|
93
98
|
Critical: 'critical'
|
|
94
99
|
};
|
|
95
|
-
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @export
|
|
103
|
+
* @enum {string}
|
|
104
|
+
*/
|
|
105
|
+
exports.WalletCapability = {
|
|
96
106
|
Holder: 'holder',
|
|
97
|
-
|
|
98
|
-
|
|
107
|
+
Issuer: 'issuer',
|
|
108
|
+
Verifier: 'verifier'
|
|
99
109
|
};
|
|
100
110
|
exports.WalletConfigTrustFrameworkEnum = {
|
|
101
111
|
Ebsi: 'EBSI',
|