@triveria/wallet 0.0.181 → 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.
Files changed (3) hide show
  1. package/api.d.ts +10 -75
  2. package/api.js +13 -82
  3. 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
- * The TAO issuer ID from which this wallet will request onboarding credentials
674
+ *
675
675
  * @type {string}
676
676
  * @memberof EbsiConfiguration
677
677
  */
678
- 'taoClientId': string;
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
@@ -2142,21 +2106,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2142
2106
  * @throws {RequiredError}
2143
2107
  */
2144
2108
  tfPrepareToAccredit: (walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2145
- /**
2146
- * Prepares another legal entity\'s wallet DID for onboarding.
2147
- * @param {string} walletId
2148
- * @param {*} [options] Override http request option.
2149
- * @throws {RequiredError}
2150
- */
2151
- tfPrepareToOnboard: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2152
2109
  /**
2153
2110
  * Revokes another legal entity\'s wallet DID accreditation.
2154
2111
  * @param {string} walletId
2155
- * @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
2112
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2156
2113
  * @param {*} [options] Override http request option.
2157
2114
  * @throws {RequiredError}
2158
2115
  */
2159
- tfRevokeAccreditation: (walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2116
+ tfRevokeAccreditation: (walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2160
2117
  /**
2161
2118
  * Returns an url where verifier accepts presentations from a holder.
2162
2119
  * @param {string} walletId
@@ -2475,21 +2432,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2475
2432
  * @throws {RequiredError}
2476
2433
  */
2477
2434
  tfPrepareToAccredit(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2478
- /**
2479
- * Prepares another legal entity\'s wallet DID for onboarding.
2480
- * @param {string} walletId
2481
- * @param {*} [options] Override http request option.
2482
- * @throws {RequiredError}
2483
- */
2484
- tfPrepareToOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2485
2435
  /**
2486
2436
  * Revokes another legal entity\'s wallet DID accreditation.
2487
2437
  * @param {string} walletId
2488
- * @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
2438
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2489
2439
  * @param {*} [options] Override http request option.
2490
2440
  * @throws {RequiredError}
2491
2441
  */
2492
- tfRevokeAccreditation(walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2442
+ tfRevokeAccreditation(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2493
2443
  /**
2494
2444
  * Returns an url where verifier accepts presentations from a holder.
2495
2445
  * @param {string} walletId
@@ -2808,21 +2758,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2808
2758
  * @throws {RequiredError}
2809
2759
  */
2810
2760
  tfPrepareToAccredit(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: any): AxiosPromise<void>;
2811
- /**
2812
- * Prepares another legal entity\'s wallet DID for onboarding.
2813
- * @param {string} walletId
2814
- * @param {*} [options] Override http request option.
2815
- * @throws {RequiredError}
2816
- */
2817
- tfPrepareToOnboard(walletId: string, options?: any): AxiosPromise<void>;
2818
2761
  /**
2819
2762
  * Revokes another legal entity\'s wallet DID accreditation.
2820
2763
  * @param {string} walletId
2821
- * @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
2764
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2822
2765
  * @param {*} [options] Override http request option.
2823
2766
  * @throws {RequiredError}
2824
2767
  */
2825
- tfRevokeAccreditation(walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: any): AxiosPromise<void>;
2768
+ tfRevokeAccreditation(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: any): AxiosPromise<void>;
2826
2769
  /**
2827
2770
  * Returns an url where verifier accepts presentations from a holder.
2828
2771
  * @param {string} walletId
@@ -3171,23 +3114,15 @@ export declare class DefaultApi extends BaseAPI {
3171
3114
  * @memberof DefaultApi
3172
3115
  */
3173
3116
  tfPrepareToAccredit(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3174
- /**
3175
- * Prepares another legal entity\'s wallet DID for onboarding.
3176
- * @param {string} walletId
3177
- * @param {*} [options] Override http request option.
3178
- * @throws {RequiredError}
3179
- * @memberof DefaultApi
3180
- */
3181
- tfPrepareToOnboard(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3182
3117
  /**
3183
3118
  * Revokes another legal entity\'s wallet DID accreditation.
3184
3119
  * @param {string} walletId
3185
- * @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
3120
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
3186
3121
  * @param {*} [options] Override http request option.
3187
3122
  * @throws {RequiredError}
3188
3123
  * @memberof DefaultApi
3189
3124
  */
3190
- tfRevokeAccreditation(walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3125
+ tfRevokeAccreditation(walletId: string, prepareToAccreditRequest?: PrepareToAccreditRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3191
3126
  /**
3192
3127
  * Returns an url where verifier accepts presentations from a holder.
3193
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.RevokeAccreditationRequestTypeEnum = 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.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',
@@ -1132,45 +1128,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1132
1128
  options: localVarRequestOptions,
1133
1129
  };
1134
1130
  }),
1135
- /**
1136
- * Prepares another legal entity\'s wallet DID for onboarding.
1137
- * @param {string} walletId
1138
- * @param {*} [options] Override http request option.
1139
- * @throws {RequiredError}
1140
- */
1141
- tfPrepareToOnboard: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1142
- // verify required parameter 'walletId' is not null or undefined
1143
- (0, common_1.assertParamExists)('tfPrepareToOnboard', 'walletId', walletId);
1144
- const localVarPath = `/tf/{wallet_id}/prepare-to-onboard`
1145
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1146
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1147
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1148
- let baseOptions;
1149
- if (configuration) {
1150
- baseOptions = configuration.baseOptions;
1151
- }
1152
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1153
- const localVarHeaderParameter = {};
1154
- const localVarQueryParameter = {};
1155
- // authentication accessToken required
1156
- // http bearer authentication required
1157
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1158
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1159
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1160
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1161
- return {
1162
- url: (0, common_1.toPathString)(localVarUrlObj),
1163
- options: localVarRequestOptions,
1164
- };
1165
- }),
1166
1131
  /**
1167
1132
  * Revokes another legal entity\'s wallet DID accreditation.
1168
1133
  * @param {string} walletId
1169
- * @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
1134
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
1170
1135
  * @param {*} [options] Override http request option.
1171
1136
  * @throws {RequiredError}
1172
1137
  */
1173
- tfRevokeAccreditation: (walletId, revokeAccreditationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1138
+ tfRevokeAccreditation: (walletId, prepareToAccreditRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1174
1139
  // verify required parameter 'walletId' is not null or undefined
1175
1140
  (0, common_1.assertParamExists)('tfRevokeAccreditation', 'walletId', walletId);
1176
1141
  const localVarPath = `/tf/{wallet_id}/revoke-accredit`
@@ -1191,7 +1156,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1191
1156
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1192
1157
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1193
1158
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1194
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(revokeAccreditationRequest, localVarRequestOptions, configuration);
1159
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(prepareToAccreditRequest, localVarRequestOptions, configuration);
1195
1160
  return {
1196
1161
  url: (0, common_1.toPathString)(localVarUrlObj),
1197
1162
  options: localVarRequestOptions,
@@ -2030,32 +1995,17 @@ const DefaultApiFp = function (configuration) {
2030
1995
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2031
1996
  });
2032
1997
  },
2033
- /**
2034
- * Prepares another legal entity\'s wallet DID for onboarding.
2035
- * @param {string} walletId
2036
- * @param {*} [options] Override http request option.
2037
- * @throws {RequiredError}
2038
- */
2039
- tfPrepareToOnboard(walletId, options) {
2040
- var _a, _b, _c;
2041
- return __awaiter(this, void 0, void 0, function* () {
2042
- const localVarAxiosArgs = yield localVarAxiosParamCreator.tfPrepareToOnboard(walletId, options);
2043
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2044
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tfPrepareToOnboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2045
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2046
- });
2047
- },
2048
1998
  /**
2049
1999
  * Revokes another legal entity\'s wallet DID accreditation.
2050
2000
  * @param {string} walletId
2051
- * @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
2001
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2052
2002
  * @param {*} [options] Override http request option.
2053
2003
  * @throws {RequiredError}
2054
2004
  */
2055
- tfRevokeAccreditation(walletId, revokeAccreditationRequest, options) {
2005
+ tfRevokeAccreditation(walletId, prepareToAccreditRequest, options) {
2056
2006
  var _a, _b, _c;
2057
2007
  return __awaiter(this, void 0, void 0, function* () {
2058
- const localVarAxiosArgs = yield localVarAxiosParamCreator.tfRevokeAccreditation(walletId, revokeAccreditationRequest, options);
2008
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tfRevokeAccreditation(walletId, prepareToAccreditRequest, options);
2059
2009
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2060
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;
2061
2011
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2527,24 +2477,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2527
2477
  tfPrepareToAccredit(walletId, prepareToAccreditRequest, options) {
2528
2478
  return localVarFp.tfPrepareToAccredit(walletId, prepareToAccreditRequest, options).then((request) => request(axios, basePath));
2529
2479
  },
2530
- /**
2531
- * Prepares another legal entity\'s wallet DID for onboarding.
2532
- * @param {string} walletId
2533
- * @param {*} [options] Override http request option.
2534
- * @throws {RequiredError}
2535
- */
2536
- tfPrepareToOnboard(walletId, options) {
2537
- return localVarFp.tfPrepareToOnboard(walletId, options).then((request) => request(axios, basePath));
2538
- },
2539
2480
  /**
2540
2481
  * Revokes another legal entity\'s wallet DID accreditation.
2541
2482
  * @param {string} walletId
2542
- * @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
2483
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2543
2484
  * @param {*} [options] Override http request option.
2544
2485
  * @throws {RequiredError}
2545
2486
  */
2546
- tfRevokeAccreditation(walletId, revokeAccreditationRequest, options) {
2547
- return localVarFp.tfRevokeAccreditation(walletId, revokeAccreditationRequest, options).then((request) => request(axios, basePath));
2487
+ tfRevokeAccreditation(walletId, prepareToAccreditRequest, options) {
2488
+ return localVarFp.tfRevokeAccreditation(walletId, prepareToAccreditRequest, options).then((request) => request(axios, basePath));
2548
2489
  },
2549
2490
  /**
2550
2491
  * Returns an url where verifier accepts presentations from a holder.
@@ -2974,26 +2915,16 @@ class DefaultApi extends base_1.BaseAPI {
2974
2915
  tfPrepareToAccredit(walletId, prepareToAccreditRequest, options) {
2975
2916
  return (0, exports.DefaultApiFp)(this.configuration).tfPrepareToAccredit(walletId, prepareToAccreditRequest, options).then((request) => request(this.axios, this.basePath));
2976
2917
  }
2977
- /**
2978
- * Prepares another legal entity\'s wallet DID for onboarding.
2979
- * @param {string} walletId
2980
- * @param {*} [options] Override http request option.
2981
- * @throws {RequiredError}
2982
- * @memberof DefaultApi
2983
- */
2984
- tfPrepareToOnboard(walletId, options) {
2985
- return (0, exports.DefaultApiFp)(this.configuration).tfPrepareToOnboard(walletId, options).then((request) => request(this.axios, this.basePath));
2986
- }
2987
2918
  /**
2988
2919
  * Revokes another legal entity\'s wallet DID accreditation.
2989
2920
  * @param {string} walletId
2990
- * @param {RevokeAccreditationRequest} [revokeAccreditationRequest]
2921
+ * @param {PrepareToAccreditRequest} [prepareToAccreditRequest]
2991
2922
  * @param {*} [options] Override http request option.
2992
2923
  * @throws {RequiredError}
2993
2924
  * @memberof DefaultApi
2994
2925
  */
2995
- tfRevokeAccreditation(walletId, revokeAccreditationRequest, options) {
2996
- return (0, exports.DefaultApiFp)(this.configuration).tfRevokeAccreditation(walletId, revokeAccreditationRequest, options).then((request) => request(this.axios, this.basePath));
2926
+ tfRevokeAccreditation(walletId, prepareToAccreditRequest, options) {
2927
+ return (0, exports.DefaultApiFp)(this.configuration).tfRevokeAccreditation(walletId, prepareToAccreditRequest, options).then((request) => request(this.axios, this.basePath));
2997
2928
  }
2998
2929
  /**
2999
2930
  * Returns an url where verifier accepts presentations from a holder.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.181",
4
+ "version": "0.0.182",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {