@triveria/wallet 0.0.175 → 0.0.177
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 +38 -8
- package/api.js +17 -13
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -1275,6 +1275,12 @@ export interface PrepareToAccreditRequest {
|
|
|
1275
1275
|
* @memberof PrepareToAccreditRequest
|
|
1276
1276
|
*/
|
|
1277
1277
|
'type': PrepareToAccreditRequestTypeEnum;
|
|
1278
|
+
/**
|
|
1279
|
+
*
|
|
1280
|
+
* @type {string}
|
|
1281
|
+
* @memberof PrepareToAccreditRequest
|
|
1282
|
+
*/
|
|
1283
|
+
'limitJurisdiction': string;
|
|
1278
1284
|
}
|
|
1279
1285
|
export declare const PrepareToAccreditRequestTypeEnum: {
|
|
1280
1286
|
readonly TrustedIssuer: "TrustedIssuer";
|
|
@@ -1554,6 +1560,30 @@ export interface RefreshServiceItem {
|
|
|
1554
1560
|
*/
|
|
1555
1561
|
'type': string;
|
|
1556
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];
|
|
1557
1587
|
/**
|
|
1558
1588
|
* The subsystem status impact on the overall system
|
|
1559
1589
|
* @export
|
|
@@ -2109,11 +2139,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2109
2139
|
/**
|
|
2110
2140
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2111
2141
|
* @param {string} walletId
|
|
2112
|
-
* @param {
|
|
2142
|
+
* @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
|
|
2113
2143
|
* @param {*} [options] Override http request option.
|
|
2114
2144
|
* @throws {RequiredError}
|
|
2115
2145
|
*/
|
|
2116
|
-
tfRevokeAccreditation: (walletId: string,
|
|
2146
|
+
tfRevokeAccreditation: (walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2117
2147
|
/**
|
|
2118
2148
|
* Returns an url where verifier accepts presentations from a holder.
|
|
2119
2149
|
* @param {string} walletId
|
|
@@ -2435,11 +2465,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2435
2465
|
/**
|
|
2436
2466
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2437
2467
|
* @param {string} walletId
|
|
2438
|
-
* @param {
|
|
2468
|
+
* @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
|
|
2439
2469
|
* @param {*} [options] Override http request option.
|
|
2440
2470
|
* @throws {RequiredError}
|
|
2441
2471
|
*/
|
|
2442
|
-
tfRevokeAccreditation(walletId: string,
|
|
2472
|
+
tfRevokeAccreditation(walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2443
2473
|
/**
|
|
2444
2474
|
* Returns an url where verifier accepts presentations from a holder.
|
|
2445
2475
|
* @param {string} walletId
|
|
@@ -2761,11 +2791,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2761
2791
|
/**
|
|
2762
2792
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2763
2793
|
* @param {string} walletId
|
|
2764
|
-
* @param {
|
|
2794
|
+
* @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
|
|
2765
2795
|
* @param {*} [options] Override http request option.
|
|
2766
2796
|
* @throws {RequiredError}
|
|
2767
2797
|
*/
|
|
2768
|
-
tfRevokeAccreditation(walletId: string,
|
|
2798
|
+
tfRevokeAccreditation(walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: any): AxiosPromise<void>;
|
|
2769
2799
|
/**
|
|
2770
2800
|
* Returns an url where verifier accepts presentations from a holder.
|
|
2771
2801
|
* @param {string} walletId
|
|
@@ -3117,12 +3147,12 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3117
3147
|
/**
|
|
3118
3148
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
3119
3149
|
* @param {string} walletId
|
|
3120
|
-
* @param {
|
|
3150
|
+
* @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
|
|
3121
3151
|
* @param {*} [options] Override http request option.
|
|
3122
3152
|
* @throws {RequiredError}
|
|
3123
3153
|
* @memberof DefaultApi
|
|
3124
3154
|
*/
|
|
3125
|
-
tfRevokeAccreditation(walletId: string,
|
|
3155
|
+
tfRevokeAccreditation(walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3126
3156
|
/**
|
|
3127
3157
|
* Returns an url where verifier accepts presentations from a holder.
|
|
3128
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.
|