@triveria/wallet 0.0.180 → 0.0.182
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 +10 -46
- package/api.js +13 -17
- 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
|
+
*
|
|
675
675
|
* @type {string}
|
|
676
676
|
* @memberof EbsiConfiguration
|
|
677
677
|
*/
|
|
678
|
-
'
|
|
678
|
+
'conformanceClientId': string;
|
|
679
679
|
/**
|
|
680
680
|
*
|
|
681
681
|
* @type {string}
|
|
@@ -1212,12 +1212,6 @@ export interface OfferReceivedNotification {
|
|
|
1212
1212
|
* @memberof OfferReceivedNotification
|
|
1213
1213
|
*/
|
|
1214
1214
|
'holderDid': string;
|
|
1215
|
-
/**
|
|
1216
|
-
*
|
|
1217
|
-
* @type {string}
|
|
1218
|
-
* @memberof OfferReceivedNotification
|
|
1219
|
-
*/
|
|
1220
|
-
'credentialId'?: string;
|
|
1221
1215
|
}
|
|
1222
1216
|
/**
|
|
1223
1217
|
* On successful EBSI-onboarding result contains \"did:ebsi\" decentralized identifier
|
|
@@ -1281,12 +1275,6 @@ export interface PrepareToAccreditRequest {
|
|
|
1281
1275
|
* @memberof PrepareToAccreditRequest
|
|
1282
1276
|
*/
|
|
1283
1277
|
'type': PrepareToAccreditRequestTypeEnum;
|
|
1284
|
-
/**
|
|
1285
|
-
* Base64 encoded json to be used for the `accreditedFor` property of the credential
|
|
1286
|
-
* @type {string}
|
|
1287
|
-
* @memberof PrepareToAccreditRequest
|
|
1288
|
-
*/
|
|
1289
|
-
'accreditedFor': string;
|
|
1290
1278
|
}
|
|
1291
1279
|
export declare const PrepareToAccreditRequestTypeEnum: {
|
|
1292
1280
|
readonly TrustedIssuer: "TrustedIssuer";
|
|
@@ -1566,30 +1554,6 @@ export interface RefreshServiceItem {
|
|
|
1566
1554
|
*/
|
|
1567
1555
|
'type': string;
|
|
1568
1556
|
}
|
|
1569
|
-
/**
|
|
1570
|
-
* Info needed to revoke legal entity\'s DID
|
|
1571
|
-
* @export
|
|
1572
|
-
* @interface RevokeAccreditationRequest
|
|
1573
|
-
*/
|
|
1574
|
-
export interface RevokeAccreditationRequest {
|
|
1575
|
-
/**
|
|
1576
|
-
*
|
|
1577
|
-
* @type {string}
|
|
1578
|
-
* @memberof RevokeAccreditationRequest
|
|
1579
|
-
*/
|
|
1580
|
-
'did': string;
|
|
1581
|
-
/**
|
|
1582
|
-
*
|
|
1583
|
-
* @type {string}
|
|
1584
|
-
* @memberof RevokeAccreditationRequest
|
|
1585
|
-
*/
|
|
1586
|
-
'type': RevokeAccreditationRequestTypeEnum;
|
|
1587
|
-
}
|
|
1588
|
-
export declare const RevokeAccreditationRequestTypeEnum: {
|
|
1589
|
-
readonly TrustedIssuer: "TrustedIssuer";
|
|
1590
|
-
readonly TrustedAccreditationOrganisation: "TrustedAccreditationOrganisation";
|
|
1591
|
-
};
|
|
1592
|
-
export type RevokeAccreditationRequestTypeEnum = typeof RevokeAccreditationRequestTypeEnum[keyof typeof RevokeAccreditationRequestTypeEnum];
|
|
1593
1557
|
/**
|
|
1594
1558
|
* The subsystem status impact on the overall system
|
|
1595
1559
|
* @export
|
|
@@ -2145,11 +2109,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2145
2109
|
/**
|
|
2146
2110
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2147
2111
|
* @param {string} walletId
|
|
2148
|
-
* @param {
|
|
2112
|
+
* @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
|
|
2149
2113
|
* @param {*} [options] Override http request option.
|
|
2150
2114
|
* @throws {RequiredError}
|
|
2151
2115
|
*/
|
|
2152
|
-
tfRevokeAccreditation: (walletId: string,
|
|
2116
|
+
tfRevokeAccreditation: (walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2153
2117
|
/**
|
|
2154
2118
|
* Returns an url where verifier accepts presentations from a holder.
|
|
2155
2119
|
* @param {string} walletId
|
|
@@ -2471,11 +2435,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2471
2435
|
/**
|
|
2472
2436
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2473
2437
|
* @param {string} walletId
|
|
2474
|
-
* @param {
|
|
2438
|
+
* @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
|
|
2475
2439
|
* @param {*} [options] Override http request option.
|
|
2476
2440
|
* @throws {RequiredError}
|
|
2477
2441
|
*/
|
|
2478
|
-
tfRevokeAccreditation(walletId: string,
|
|
2442
|
+
tfRevokeAccreditation(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
2479
2443
|
/**
|
|
2480
2444
|
* Returns an url where verifier accepts presentations from a holder.
|
|
2481
2445
|
* @param {string} walletId
|
|
@@ -2797,11 +2761,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2797
2761
|
/**
|
|
2798
2762
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2799
2763
|
* @param {string} walletId
|
|
2800
|
-
* @param {
|
|
2764
|
+
* @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
|
|
2801
2765
|
* @param {*} [options] Override http request option.
|
|
2802
2766
|
* @throws {RequiredError}
|
|
2803
2767
|
*/
|
|
2804
|
-
tfRevokeAccreditation(walletId: string,
|
|
2768
|
+
tfRevokeAccreditation(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: any): AxiosPromise<void>;
|
|
2805
2769
|
/**
|
|
2806
2770
|
* Returns an url where verifier accepts presentations from a holder.
|
|
2807
2771
|
* @param {string} walletId
|
|
@@ -3153,12 +3117,12 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3153
3117
|
/**
|
|
3154
3118
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
3155
3119
|
* @param {string} walletId
|
|
3156
|
-
* @param {
|
|
3120
|
+
* @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
|
|
3157
3121
|
* @param {*} [options] Override http request option.
|
|
3158
3122
|
* @throws {RequiredError}
|
|
3159
3123
|
* @memberof DefaultApi
|
|
3160
3124
|
*/
|
|
3161
|
-
tfRevokeAccreditation(walletId: string,
|
|
3125
|
+
tfRevokeAccreditation(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3162
3126
|
/**
|
|
3163
3127
|
* Returns an url where verifier accepts presentations from a holder.
|
|
3164
3128
|
* @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.
|
|
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
|
|
@@ -87,10 +87,6 @@ exports.PresentationDefinitionSubmissionRequirementsRuleEnum = {
|
|
|
87
87
|
All: 'all',
|
|
88
88
|
Pick: 'pick'
|
|
89
89
|
};
|
|
90
|
-
exports.RevokeAccreditationRequestTypeEnum = {
|
|
91
|
-
TrustedIssuer: 'TrustedIssuer',
|
|
92
|
-
TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation'
|
|
93
|
-
};
|
|
94
90
|
exports.SystemImpactStatusEnum = {
|
|
95
91
|
Ok: 'ok',
|
|
96
92
|
Limited: 'limited',
|
|
@@ -1135,11 +1131,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1135
1131
|
/**
|
|
1136
1132
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
1137
1133
|
* @param {string} walletId
|
|
1138
|
-
* @param {
|
|
1134
|
+
* @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
|
|
1139
1135
|
* @param {*} [options] Override http request option.
|
|
1140
1136
|
* @throws {RequiredError}
|
|
1141
1137
|
*/
|
|
1142
|
-
tfRevokeAccreditation: (walletId,
|
|
1138
|
+
tfRevokeAccreditation: (walletId, prepareToAccreditRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1143
1139
|
// verify required parameter 'walletId' is not null or undefined
|
|
1144
1140
|
(0, common_1.assertParamExists)('tfRevokeAccreditation', 'walletId', walletId);
|
|
1145
1141
|
const localVarPath = `/tf/{wallet_id}/revoke-accredit`
|
|
@@ -1160,7 +1156,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1160
1156
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1161
1157
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1162
1158
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1163
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1159
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(prepareToAccreditRequest, localVarRequestOptions, configuration);
|
|
1164
1160
|
return {
|
|
1165
1161
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1166
1162
|
options: localVarRequestOptions,
|
|
@@ -2002,14 +1998,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
2002
1998
|
/**
|
|
2003
1999
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2004
2000
|
* @param {string} walletId
|
|
2005
|
-
* @param {
|
|
2001
|
+
* @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
|
|
2006
2002
|
* @param {*} [options] Override http request option.
|
|
2007
2003
|
* @throws {RequiredError}
|
|
2008
2004
|
*/
|
|
2009
|
-
tfRevokeAccreditation(walletId,
|
|
2005
|
+
tfRevokeAccreditation(walletId, prepareToAccreditRequest, options) {
|
|
2010
2006
|
var _a, _b, _c;
|
|
2011
2007
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2012
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.tfRevokeAccreditation(walletId,
|
|
2008
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tfRevokeAccreditation(walletId, prepareToAccreditRequest, options);
|
|
2013
2009
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2014
2010
|
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;
|
|
2015
2011
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2484,12 +2480,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2484
2480
|
/**
|
|
2485
2481
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2486
2482
|
* @param {string} walletId
|
|
2487
|
-
* @param {
|
|
2483
|
+
* @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
|
|
2488
2484
|
* @param {*} [options] Override http request option.
|
|
2489
2485
|
* @throws {RequiredError}
|
|
2490
2486
|
*/
|
|
2491
|
-
tfRevokeAccreditation(walletId,
|
|
2492
|
-
return localVarFp.tfRevokeAccreditation(walletId,
|
|
2487
|
+
tfRevokeAccreditation(walletId, prepareToAccreditRequest, options) {
|
|
2488
|
+
return localVarFp.tfRevokeAccreditation(walletId, prepareToAccreditRequest, options).then((request) => request(axios, basePath));
|
|
2493
2489
|
},
|
|
2494
2490
|
/**
|
|
2495
2491
|
* Returns an url where verifier accepts presentations from a holder.
|
|
@@ -2922,13 +2918,13 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2922
2918
|
/**
|
|
2923
2919
|
* Revokes another legal entity\'s wallet DID accreditation.
|
|
2924
2920
|
* @param {string} walletId
|
|
2925
|
-
* @param {
|
|
2921
|
+
* @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
|
|
2926
2922
|
* @param {*} [options] Override http request option.
|
|
2927
2923
|
* @throws {RequiredError}
|
|
2928
2924
|
* @memberof DefaultApi
|
|
2929
2925
|
*/
|
|
2930
|
-
tfRevokeAccreditation(walletId,
|
|
2931
|
-
return (0, exports.DefaultApiFp)(this.configuration).tfRevokeAccreditation(walletId,
|
|
2926
|
+
tfRevokeAccreditation(walletId, prepareToAccreditRequest, options) {
|
|
2927
|
+
return (0, exports.DefaultApiFp)(this.configuration).tfRevokeAccreditation(walletId, prepareToAccreditRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2932
2928
|
}
|
|
2933
2929
|
/**
|
|
2934
2930
|
* Returns an url where verifier accepts presentations from a holder.
|