@triveria/wallet 0.0.68 → 0.0.69

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 +35 -0
  2. package/api.js +69 -8
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -518,6 +518,12 @@ export interface EbsiSpecificWalletData {
518
518
  * @memberof EbsiSpecificWalletData
519
519
  */
520
520
  'attributeId'?: string;
521
+ /**
522
+ *
523
+ * @type {string}
524
+ * @memberof EbsiSpecificWalletData
525
+ */
526
+ 'proxyUrl'?: string;
521
527
  }
522
528
  /**
523
529
  * 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
@@ -1308,6 +1314,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1308
1314
  * @throws {RequiredError}
1309
1315
  */
1310
1316
  holderCreateAuthOffer: (walletId: string, holderAuthOfferCreationRequest?: HolderAuthOfferCreationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1317
+ /**
1318
+ * TBD
1319
+ * @param {string} walletId
1320
+ * @param {*} [options] Override http request option.
1321
+ * @throws {RequiredError}
1322
+ */
1323
+ insertIssuerProxy: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1311
1324
  /**
1312
1325
  * Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
1313
1326
  * @param {string} url
@@ -1538,6 +1551,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1538
1551
  * @throws {RequiredError}
1539
1552
  */
1540
1553
  holderCreateAuthOffer(walletId: string, holderAuthOfferCreationRequest?: HolderAuthOfferCreationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1554
+ /**
1555
+ * TBD
1556
+ * @param {string} walletId
1557
+ * @param {*} [options] Override http request option.
1558
+ * @throws {RequiredError}
1559
+ */
1560
+ insertIssuerProxy(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1541
1561
  /**
1542
1562
  * Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
1543
1563
  * @param {string} url
@@ -1768,6 +1788,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1768
1788
  * @throws {RequiredError}
1769
1789
  */
1770
1790
  holderCreateAuthOffer(walletId: string, holderAuthOfferCreationRequest?: HolderAuthOfferCreationRequest, options?: any): AxiosPromise<void>;
1791
+ /**
1792
+ * TBD
1793
+ * @param {string} walletId
1794
+ * @param {*} [options] Override http request option.
1795
+ * @throws {RequiredError}
1796
+ */
1797
+ insertIssuerProxy(walletId: string, options?: any): AxiosPromise<void>;
1771
1798
  /**
1772
1799
  * Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
1773
1800
  * @param {string} url
@@ -2013,6 +2040,14 @@ export declare class DefaultApi extends BaseAPI {
2013
2040
  * @memberof DefaultApi
2014
2041
  */
2015
2042
  holderCreateAuthOffer(walletId: string, holderAuthOfferCreationRequest?: HolderAuthOfferCreationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2043
+ /**
2044
+ * TBD
2045
+ * @param {string} walletId
2046
+ * @param {*} [options] Override http request option.
2047
+ * @throws {RequiredError}
2048
+ * @memberof DefaultApi
2049
+ */
2050
+ insertIssuerProxy(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2016
2051
  /**
2017
2052
  * Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
2018
2053
  * @param {string} url
package/api.js CHANGED
@@ -79,7 +79,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
79
79
  accreditAsTrustedIssuer: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
80
80
  // verify required parameter 'walletId' is not null or undefined
81
81
  (0, common_1.assertParamExists)('accreditAsTrustedIssuer', 'walletId', walletId);
82
- const localVarPath = `/wallets/accredit-as-trusted-issuer`;
82
+ const localVarPath = `/wallets/{wallet_id}/accredit-as-trusted-issuer`
83
+ .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
83
84
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
84
85
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
85
86
  let baseOptions;
@@ -92,9 +93,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
92
93
  // authentication accessToken required
93
94
  // http bearer authentication required
94
95
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
95
- if (walletId != null) {
96
- localVarHeaderParameter['wallet-id'] = String(walletId);
97
- }
98
96
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
99
97
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
100
98
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -532,6 +530,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
532
530
  options: localVarRequestOptions,
533
531
  };
534
532
  }),
533
+ /**
534
+ * TBD
535
+ * @param {string} walletId
536
+ * @param {*} [options] Override http request option.
537
+ * @throws {RequiredError}
538
+ */
539
+ insertIssuerProxy: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
540
+ // verify required parameter 'walletId' is not null or undefined
541
+ (0, common_1.assertParamExists)('insertIssuerProxy', 'walletId', walletId);
542
+ const localVarPath = `/wallets/{wallet_id}/insert-issuer-proxy`
543
+ .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
544
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
545
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
546
+ let baseOptions;
547
+ if (configuration) {
548
+ baseOptions = configuration.baseOptions;
549
+ }
550
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
551
+ const localVarHeaderParameter = {};
552
+ const localVarQueryParameter = {};
553
+ // authentication accessToken required
554
+ // http bearer authentication required
555
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
556
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
557
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
558
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
559
+ return {
560
+ url: (0, common_1.toPathString)(localVarUrlObj),
561
+ options: localVarRequestOptions,
562
+ };
563
+ }),
535
564
  /**
536
565
  * Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
537
566
  * @param {string} url
@@ -893,7 +922,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
893
922
  onboardLegalEntity: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
894
923
  // verify required parameter 'walletId' is not null or undefined
895
924
  (0, common_1.assertParamExists)('onboardLegalEntity', 'walletId', walletId);
896
- const localVarPath = `/wallets/onboard-legal-entity`;
925
+ const localVarPath = `/wallets/{wallet_id}/onboard-legal-entity`
926
+ .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
897
927
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
898
928
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
899
929
  let baseOptions;
@@ -906,9 +936,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
906
936
  // authentication accessToken required
907
937
  // http bearer authentication required
908
938
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
909
- if (walletId != null) {
910
- localVarHeaderParameter['wallet-id'] = String(walletId);
911
- }
912
939
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
913
940
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
914
941
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1287,6 +1314,21 @@ const DefaultApiFp = function (configuration) {
1287
1314
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1288
1315
  });
1289
1316
  },
1317
+ /**
1318
+ * TBD
1319
+ * @param {string} walletId
1320
+ * @param {*} [options] Override http request option.
1321
+ * @throws {RequiredError}
1322
+ */
1323
+ insertIssuerProxy(walletId, options) {
1324
+ var _a, _b, _c;
1325
+ return __awaiter(this, void 0, void 0, function* () {
1326
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.insertIssuerProxy(walletId, options);
1327
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1328
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.insertIssuerProxy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1329
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1330
+ });
1331
+ },
1290
1332
  /**
1291
1333
  * Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
1292
1334
  * @param {string} url
@@ -1675,6 +1717,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1675
1717
  holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options) {
1676
1718
  return localVarFp.holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options).then((request) => request(axios, basePath));
1677
1719
  },
1720
+ /**
1721
+ * TBD
1722
+ * @param {string} walletId
1723
+ * @param {*} [options] Override http request option.
1724
+ * @throws {RequiredError}
1725
+ */
1726
+ insertIssuerProxy(walletId, options) {
1727
+ return localVarFp.insertIssuerProxy(walletId, options).then((request) => request(axios, basePath));
1728
+ },
1678
1729
  /**
1679
1730
  * Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
1680
1731
  * @param {string} url
@@ -1980,6 +2031,16 @@ class DefaultApi extends base_1.BaseAPI {
1980
2031
  holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options) {
1981
2032
  return (0, exports.DefaultApiFp)(this.configuration).holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options).then((request) => request(this.axios, this.basePath));
1982
2033
  }
2034
+ /**
2035
+ * TBD
2036
+ * @param {string} walletId
2037
+ * @param {*} [options] Override http request option.
2038
+ * @throws {RequiredError}
2039
+ * @memberof DefaultApi
2040
+ */
2041
+ insertIssuerProxy(walletId, options) {
2042
+ return (0, exports.DefaultApiFp)(this.configuration).insertIssuerProxy(walletId, options).then((request) => request(this.axios, this.basePath));
2043
+ }
1983
2044
  /**
1984
2045
  * Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
1985
2046
  * @param {string} url
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.68",
4
+ "version": "0.0.69",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {