@triveria/wallet 0.0.68 → 0.0.70

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 +36 -0
  2. package/api.js +70 -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
@@ -1192,6 +1198,7 @@ export interface WalletNotification {
1192
1198
  }
1193
1199
  export declare const WalletNotificationEventTypeEnum: {
1194
1200
  readonly VpVerified: "vp.verified";
1201
+ readonly VpInvalid: "vp.invalid";
1195
1202
  readonly IdTokenReceived: "idToken.received";
1196
1203
  };
1197
1204
  export type WalletNotificationEventTypeEnum = typeof WalletNotificationEventTypeEnum[keyof typeof WalletNotificationEventTypeEnum];
@@ -1308,6 +1315,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1308
1315
  * @throws {RequiredError}
1309
1316
  */
1310
1317
  holderCreateAuthOffer: (walletId: string, holderAuthOfferCreationRequest?: HolderAuthOfferCreationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1318
+ /**
1319
+ * TBD
1320
+ * @param {string} walletId
1321
+ * @param {*} [options] Override http request option.
1322
+ * @throws {RequiredError}
1323
+ */
1324
+ insertIssuerProxy: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1311
1325
  /**
1312
1326
  * 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
1327
  * @param {string} url
@@ -1538,6 +1552,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1538
1552
  * @throws {RequiredError}
1539
1553
  */
1540
1554
  holderCreateAuthOffer(walletId: string, holderAuthOfferCreationRequest?: HolderAuthOfferCreationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1555
+ /**
1556
+ * TBD
1557
+ * @param {string} walletId
1558
+ * @param {*} [options] Override http request option.
1559
+ * @throws {RequiredError}
1560
+ */
1561
+ insertIssuerProxy(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1541
1562
  /**
1542
1563
  * 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
1564
  * @param {string} url
@@ -1768,6 +1789,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1768
1789
  * @throws {RequiredError}
1769
1790
  */
1770
1791
  holderCreateAuthOffer(walletId: string, holderAuthOfferCreationRequest?: HolderAuthOfferCreationRequest, options?: any): AxiosPromise<void>;
1792
+ /**
1793
+ * TBD
1794
+ * @param {string} walletId
1795
+ * @param {*} [options] Override http request option.
1796
+ * @throws {RequiredError}
1797
+ */
1798
+ insertIssuerProxy(walletId: string, options?: any): AxiosPromise<void>;
1771
1799
  /**
1772
1800
  * 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
1801
  * @param {string} url
@@ -2013,6 +2041,14 @@ export declare class DefaultApi extends BaseAPI {
2013
2041
  * @memberof DefaultApi
2014
2042
  */
2015
2043
  holderCreateAuthOffer(walletId: string, holderAuthOfferCreationRequest?: HolderAuthOfferCreationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2044
+ /**
2045
+ * TBD
2046
+ * @param {string} walletId
2047
+ * @param {*} [options] Override http request option.
2048
+ * @throws {RequiredError}
2049
+ * @memberof DefaultApi
2050
+ */
2051
+ insertIssuerProxy(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2016
2052
  /**
2017
2053
  * 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
2054
  * @param {string} url
package/api.js CHANGED
@@ -62,6 +62,7 @@ exports.SystemImpactStatusEnum = {
62
62
  };
63
63
  exports.WalletNotificationEventTypeEnum = {
64
64
  VpVerified: 'vp.verified',
65
+ VpInvalid: 'vp.invalid',
65
66
  IdTokenReceived: 'idToken.received'
66
67
  };
67
68
  /**
@@ -79,7 +80,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
79
80
  accreditAsTrustedIssuer: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
80
81
  // verify required parameter 'walletId' is not null or undefined
81
82
  (0, common_1.assertParamExists)('accreditAsTrustedIssuer', 'walletId', walletId);
82
- const localVarPath = `/wallets/accredit-as-trusted-issuer`;
83
+ const localVarPath = `/wallets/{wallet_id}/accredit-as-trusted-issuer`
84
+ .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
83
85
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
84
86
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
85
87
  let baseOptions;
@@ -92,9 +94,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
92
94
  // authentication accessToken required
93
95
  // http bearer authentication required
94
96
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
95
- if (walletId != null) {
96
- localVarHeaderParameter['wallet-id'] = String(walletId);
97
- }
98
97
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
99
98
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
100
99
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -532,6 +531,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
532
531
  options: localVarRequestOptions,
533
532
  };
534
533
  }),
534
+ /**
535
+ * TBD
536
+ * @param {string} walletId
537
+ * @param {*} [options] Override http request option.
538
+ * @throws {RequiredError}
539
+ */
540
+ insertIssuerProxy: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
541
+ // verify required parameter 'walletId' is not null or undefined
542
+ (0, common_1.assertParamExists)('insertIssuerProxy', 'walletId', walletId);
543
+ const localVarPath = `/wallets/{wallet_id}/insert-issuer-proxy`
544
+ .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
545
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
546
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
547
+ let baseOptions;
548
+ if (configuration) {
549
+ baseOptions = configuration.baseOptions;
550
+ }
551
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
552
+ const localVarHeaderParameter = {};
553
+ const localVarQueryParameter = {};
554
+ // authentication accessToken required
555
+ // http bearer authentication required
556
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
557
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
558
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
559
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
560
+ return {
561
+ url: (0, common_1.toPathString)(localVarUrlObj),
562
+ options: localVarRequestOptions,
563
+ };
564
+ }),
535
565
  /**
536
566
  * 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
567
  * @param {string} url
@@ -893,7 +923,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
893
923
  onboardLegalEntity: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
894
924
  // verify required parameter 'walletId' is not null or undefined
895
925
  (0, common_1.assertParamExists)('onboardLegalEntity', 'walletId', walletId);
896
- const localVarPath = `/wallets/onboard-legal-entity`;
926
+ const localVarPath = `/wallets/{wallet_id}/onboard-legal-entity`
927
+ .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
897
928
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
898
929
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
899
930
  let baseOptions;
@@ -906,9 +937,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
906
937
  // authentication accessToken required
907
938
  // http bearer authentication required
908
939
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
909
- if (walletId != null) {
910
- localVarHeaderParameter['wallet-id'] = String(walletId);
911
- }
912
940
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
913
941
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
914
942
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1287,6 +1315,21 @@ const DefaultApiFp = function (configuration) {
1287
1315
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1288
1316
  });
1289
1317
  },
1318
+ /**
1319
+ * TBD
1320
+ * @param {string} walletId
1321
+ * @param {*} [options] Override http request option.
1322
+ * @throws {RequiredError}
1323
+ */
1324
+ insertIssuerProxy(walletId, options) {
1325
+ var _a, _b, _c;
1326
+ return __awaiter(this, void 0, void 0, function* () {
1327
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.insertIssuerProxy(walletId, options);
1328
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1329
+ 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;
1330
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1331
+ });
1332
+ },
1290
1333
  /**
1291
1334
  * 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
1335
  * @param {string} url
@@ -1675,6 +1718,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1675
1718
  holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options) {
1676
1719
  return localVarFp.holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options).then((request) => request(axios, basePath));
1677
1720
  },
1721
+ /**
1722
+ * TBD
1723
+ * @param {string} walletId
1724
+ * @param {*} [options] Override http request option.
1725
+ * @throws {RequiredError}
1726
+ */
1727
+ insertIssuerProxy(walletId, options) {
1728
+ return localVarFp.insertIssuerProxy(walletId, options).then((request) => request(axios, basePath));
1729
+ },
1678
1730
  /**
1679
1731
  * 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
1732
  * @param {string} url
@@ -1980,6 +2032,16 @@ class DefaultApi extends base_1.BaseAPI {
1980
2032
  holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options) {
1981
2033
  return (0, exports.DefaultApiFp)(this.configuration).holderCreateAuthOffer(walletId, holderAuthOfferCreationRequest, options).then((request) => request(this.axios, this.basePath));
1982
2034
  }
2035
+ /**
2036
+ * TBD
2037
+ * @param {string} walletId
2038
+ * @param {*} [options] Override http request option.
2039
+ * @throws {RequiredError}
2040
+ * @memberof DefaultApi
2041
+ */
2042
+ insertIssuerProxy(walletId, options) {
2043
+ return (0, exports.DefaultApiFp)(this.configuration).insertIssuerProxy(walletId, options).then((request) => request(this.axios, this.basePath));
2044
+ }
1983
2045
  /**
1984
2046
  * 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
2047
  * @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.70",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {