@triveria/wallet 0.0.176 → 0.0.178
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 +34 -10
- package/api.js +17 -13
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -671,11 +671,11 @@ export interface Did {
|
|
|
671
671
|
*/
|
|
672
672
|
export interface EbsiConfiguration {
|
|
673
673
|
/**
|
|
674
|
-
*
|
|
674
|
+
* The TAO issuer ID from which this wallet will request onboarding credentials
|
|
675
675
|
* @type {string}
|
|
676
676
|
* @memberof EbsiConfiguration
|
|
677
677
|
*/
|
|
678
|
-
'
|
|
678
|
+
'taoClientId': string;
|
|
679
679
|
/**
|
|
680
680
|
*
|
|
681
681
|
* @type {string}
|
|
@@ -1560,6 +1560,30 @@ export interface RefreshServiceItem {
|
|
|
1560
1560
|
*/
|
|
1561
1561
|
'type': string;
|
|
1562
1562
|
}
|
|
1563
|
+
/**
|
|
1564
|
+
* Info needed to revoke legal entity\'s DID
|
|
1565
|
+
* @export
|
|
1566
|
+
* @interface RevokeAccreditationRequest
|
|
1567
|
+
*/
|
|
1568
|
+
export interface RevokeAccreditationRequest {
|
|
1569
|
+
/**
|
|
1570
|
+
*
|
|
1571
|
+
* @type {string}
|
|
1572
|
+
* @memberof RevokeAccreditationRequest
|
|
1573
|
+
*/
|
|
1574
|
+
'did': string;
|
|
1575
|
+
/**
|
|
1576
|
+
*
|
|
1577
|
+
* @type {string}
|
|
1578
|
+
* @memberof RevokeAccreditationRequest
|
|
1579
|
+
*/
|
|
1580
|
+
'type': RevokeAccreditationRequestTypeEnum;
|
|
1581
|
+
}
|
|
1582
|
+
export declare const RevokeAccreditationRequestTypeEnum: {
|
|
1583
|
+
readonly TrustedIssuer: "TrustedIssuer";
|
|
1584
|
+
readonly TrustedAccreditationOrganisation: "TrustedAccreditationOrganisation";
|
|
1585
|
+
};
|
|
1586
|
+
export type RevokeAccreditationRequestTypeEnum = typeof RevokeAccreditationRequestTypeEnum[keyof typeof RevokeAccreditationRequestTypeEnum];
|
|
1563
1587
|
/**
|
|
1564
1588
|
* The subsystem status impact on the overall system
|
|
1565
1589
|
* @export
|
|
@@ -2115,11 +2139,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2115
2139
|
/**
|
|
2116
2140
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2117
2141
|
* @param {string} walletId
|
|
2118
|
-
* @param {
|
|
2142
|
+
* @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
|
|
2119
2143
|
* @param {*} [options] Override http request option.
|
|
2120
2144
|
* @throws {RequiredError}
|
|
2121
2145
|
*/
|
|
2122
|
-
tfRevokeAccreditation: (walletId: string,
|
|
2146
|
+
tfRevokeAccreditation: (walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2123
2147
|
/**
|
|
2124
2148
|
* Returns an url where verifier accepts presentations from a holder.
|
|
2125
2149
|
* @param {string} walletId
|
|
@@ -2441,11 +2465,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2441
2465
|
/**
|
|
2442
2466
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2443
2467
|
* @param {string} walletId
|
|
2444
|
-
* @param {
|
|
2468
|
+
* @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
|
|
2445
2469
|
* @param {*} [options] Override http request option.
|
|
2446
2470
|
* @throws {RequiredError}
|
|
2447
2471
|
*/
|
|
2448
|
-
tfRevokeAccreditation(walletId: string,
|
|
2472
|
+
tfRevokeAccreditation(walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2449
2473
|
/**
|
|
2450
2474
|
* Returns an url where verifier accepts presentations from a holder.
|
|
2451
2475
|
* @param {string} walletId
|
|
@@ -2767,11 +2791,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2767
2791
|
/**
|
|
2768
2792
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2769
2793
|
* @param {string} walletId
|
|
2770
|
-
* @param {
|
|
2794
|
+
* @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
|
|
2771
2795
|
* @param {*} [options] Override http request option.
|
|
2772
2796
|
* @throws {RequiredError}
|
|
2773
2797
|
*/
|
|
2774
|
-
tfRevokeAccreditation(walletId: string,
|
|
2798
|
+
tfRevokeAccreditation(walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: any): AxiosPromise<void>;
|
|
2775
2799
|
/**
|
|
2776
2800
|
* Returns an url where verifier accepts presentations from a holder.
|
|
2777
2801
|
* @param {string} walletId
|
|
@@ -3123,12 +3147,12 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3123
3147
|
/**
|
|
3124
3148
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
3125
3149
|
* @param {string} walletId
|
|
3126
|
-
* @param {
|
|
3150
|
+
* @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
|
|
3127
3151
|
* @param {*} [options] Override http request option.
|
|
3128
3152
|
* @throws {RequiredError}
|
|
3129
3153
|
* @memberof DefaultApi
|
|
3130
3154
|
*/
|
|
3131
|
-
tfRevokeAccreditation(walletId: string,
|
|
3155
|
+
tfRevokeAccreditation(walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3132
3156
|
/**
|
|
3133
3157
|
* Returns an url where verifier accepts presentations from a holder.
|
|
3134
3158
|
* @param {string} walletId
|
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.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;
|
|
28
|
+
exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventType = exports.WalletConfigTrustFrameworkEnum = exports.WalletCapability = exports.SystemImpactStatusEnum = exports.RevokeAccreditationRequestTypeEnum = 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
|
|
@@ -87,6 +87,10 @@ exports.PresentationDefinitionSubmissionRequirementsRuleEnum = {
|
|
|
87
87
|
All: 'all',
|
|
88
88
|
Pick: 'pick'
|
|
89
89
|
};
|
|
90
|
+
exports.RevokeAccreditationRequestTypeEnum = {
|
|
91
|
+
TrustedIssuer: 'TrustedIssuer',
|
|
92
|
+
TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation'
|
|
93
|
+
};
|
|
90
94
|
exports.SystemImpactStatusEnum = {
|
|
91
95
|
Ok: 'ok',
|
|
92
96
|
Limited: 'limited',
|
|
@@ -1131,11 +1135,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1131
1135
|
/**
|
|
1132
1136
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
1133
1137
|
* @param {string} walletId
|
|
1134
|
-
* @param {
|
|
1138
|
+
* @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
|
|
1135
1139
|
* @param {*} [options] Override http request option.
|
|
1136
1140
|
* @throws {RequiredError}
|
|
1137
1141
|
*/
|
|
1138
|
-
tfRevokeAccreditation: (walletId,
|
|
1142
|
+
tfRevokeAccreditation: (walletId, revokeAccreditationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1139
1143
|
// verify required parameter 'walletId' is not null or undefined
|
|
1140
1144
|
(0, common_1.assertParamExists)('tfRevokeAccreditation', 'walletId', walletId);
|
|
1141
1145
|
const localVarPath = `/tf/{wallet_id}/revoke-accredit`
|
|
@@ -1156,7 +1160,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1156
1160
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1157
1161
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1158
1162
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1159
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1163
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(revokeAccreditationRequest, localVarRequestOptions, configuration);
|
|
1160
1164
|
return {
|
|
1161
1165
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1162
1166
|
options: localVarRequestOptions,
|
|
@@ -1998,14 +2002,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
1998
2002
|
/**
|
|
1999
2003
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2000
2004
|
* @param {string} walletId
|
|
2001
|
-
* @param {
|
|
2005
|
+
* @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
|
|
2002
2006
|
* @param {*} [options] Override http request option.
|
|
2003
2007
|
* @throws {RequiredError}
|
|
2004
2008
|
*/
|
|
2005
|
-
tfRevokeAccreditation(walletId,
|
|
2009
|
+
tfRevokeAccreditation(walletId, revokeAccreditationRequest, options) {
|
|
2006
2010
|
var _a, _b, _c;
|
|
2007
2011
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2008
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.tfRevokeAccreditation(walletId,
|
|
2012
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tfRevokeAccreditation(walletId, revokeAccreditationRequest, options);
|
|
2009
2013
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2010
2014
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tfRevokeAccreditation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2011
2015
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2480,12 +2484,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2480
2484
|
/**
|
|
2481
2485
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2482
2486
|
* @param {string} walletId
|
|
2483
|
-
* @param {
|
|
2487
|
+
* @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
|
|
2484
2488
|
* @param {*} [options] Override http request option.
|
|
2485
2489
|
* @throws {RequiredError}
|
|
2486
2490
|
*/
|
|
2487
|
-
tfRevokeAccreditation(walletId,
|
|
2488
|
-
return localVarFp.tfRevokeAccreditation(walletId,
|
|
2491
|
+
tfRevokeAccreditation(walletId, revokeAccreditationRequest, options) {
|
|
2492
|
+
return localVarFp.tfRevokeAccreditation(walletId, revokeAccreditationRequest, options).then((request) => request(axios, basePath));
|
|
2489
2493
|
},
|
|
2490
2494
|
/**
|
|
2491
2495
|
* Returns an url where verifier accepts presentations from a holder.
|
|
@@ -2918,13 +2922,13 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2918
2922
|
/**
|
|
2919
2923
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2920
2924
|
* @param {string} walletId
|
|
2921
|
-
* @param {
|
|
2925
|
+
* @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
|
|
2922
2926
|
* @param {*} [options] Override http request option.
|
|
2923
2927
|
* @throws {RequiredError}
|
|
2924
2928
|
* @memberof DefaultApi
|
|
2925
2929
|
*/
|
|
2926
|
-
tfRevokeAccreditation(walletId,
|
|
2927
|
-
return (0, exports.DefaultApiFp)(this.configuration).tfRevokeAccreditation(walletId,
|
|
2930
|
+
tfRevokeAccreditation(walletId, revokeAccreditationRequest, options) {
|
|
2931
|
+
return (0, exports.DefaultApiFp)(this.configuration).tfRevokeAccreditation(walletId, revokeAccreditationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2928
2932
|
}
|
|
2929
2933
|
/**
|
|
2930
2934
|
* Returns an url where verifier accepts presentations from a holder.
|