@triveria/wallet 0.0.124 → 0.0.126

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 +38 -0
  2. package/api.js +58 -0
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -856,6 +856,19 @@ export interface Oauth2AccessTokenResponse {
856
856
  */
857
857
  'expires_in': string;
858
858
  }
859
+ /**
860
+ *
861
+ * @export
862
+ * @interface Oauth2ProfileJSONResponse
863
+ */
864
+ export interface Oauth2ProfileJSONResponse {
865
+ /**
866
+ *
867
+ * @type {string}
868
+ * @memberof Oauth2ProfileJSONResponse
869
+ */
870
+ 'user_id': string;
871
+ }
859
872
  /**
860
873
  *
861
874
  * @export
@@ -1580,6 +1593,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1580
1593
  * @throws {RequiredError}
1581
1594
  */
1582
1595
  oauth2Auth: (walletId: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1596
+ /**
1597
+ *
1598
+ * @param {*} [options] Override http request option.
1599
+ * @throws {RequiredError}
1600
+ */
1601
+ oauth2Profile: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1583
1602
  /**
1584
1603
  *
1585
1604
  * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
@@ -1885,6 +1904,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1885
1904
  * @throws {RequiredError}
1886
1905
  */
1887
1906
  oauth2Auth(walletId: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2RedirectUriResponse>>;
1907
+ /**
1908
+ *
1909
+ * @param {*} [options] Override http request option.
1910
+ * @throws {RequiredError}
1911
+ */
1912
+ oauth2Profile(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2ProfileJSONResponse>>;
1888
1913
  /**
1889
1914
  *
1890
1915
  * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
@@ -2190,6 +2215,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2190
2215
  * @throws {RequiredError}
2191
2216
  */
2192
2217
  oauth2Auth(walletId: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: any): AxiosPromise<Oauth2RedirectUriResponse>;
2218
+ /**
2219
+ *
2220
+ * @param {*} [options] Override http request option.
2221
+ * @throws {RequiredError}
2222
+ */
2223
+ oauth2Profile(options?: any): AxiosPromise<Oauth2ProfileJSONResponse>;
2193
2224
  /**
2194
2225
  *
2195
2226
  * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
@@ -2514,6 +2545,13 @@ export declare class DefaultApi extends BaseAPI {
2514
2545
  * @memberof DefaultApi
2515
2546
  */
2516
2547
  oauth2Auth(walletId: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2RedirectUriResponse, any>>;
2548
+ /**
2549
+ *
2550
+ * @param {*} [options] Override http request option.
2551
+ * @throws {RequiredError}
2552
+ * @memberof DefaultApi
2553
+ */
2554
+ oauth2Profile(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2ProfileJSONResponse, any>>;
2517
2555
  /**
2518
2556
  *
2519
2557
  * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
package/api.js CHANGED
@@ -724,6 +724,33 @@ const DefaultApiAxiosParamCreator = function (configuration) {
724
724
  options: localVarRequestOptions,
725
725
  };
726
726
  }),
727
+ /**
728
+ *
729
+ * @param {*} [options] Override http request option.
730
+ * @throws {RequiredError}
731
+ */
732
+ oauth2Profile: (options = {}) => __awaiter(this, void 0, void 0, function* () {
733
+ const localVarPath = `/oauth2/profile`;
734
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
735
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
736
+ let baseOptions;
737
+ if (configuration) {
738
+ baseOptions = configuration.baseOptions;
739
+ }
740
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
741
+ const localVarHeaderParameter = {};
742
+ const localVarQueryParameter = {};
743
+ // authentication accessToken required
744
+ // http bearer authentication required
745
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
746
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
747
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
748
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
749
+ return {
750
+ url: (0, common_1.toPathString)(localVarUrlObj),
751
+ options: localVarRequestOptions,
752
+ };
753
+ }),
727
754
  /**
728
755
  *
729
756
  * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
@@ -1722,6 +1749,20 @@ const DefaultApiFp = function (configuration) {
1722
1749
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1723
1750
  });
1724
1751
  },
1752
+ /**
1753
+ *
1754
+ * @param {*} [options] Override http request option.
1755
+ * @throws {RequiredError}
1756
+ */
1757
+ oauth2Profile(options) {
1758
+ var _a, _b, _c;
1759
+ return __awaiter(this, void 0, void 0, function* () {
1760
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Profile(options);
1761
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1762
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oauth2Profile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1763
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1764
+ });
1765
+ },
1725
1766
  /**
1726
1767
  *
1727
1768
  * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
@@ -2225,6 +2266,14 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2225
2266
  oauth2Auth(walletId, clientId, redirectUri, responseType, state, nonce, options) {
2226
2267
  return localVarFp.oauth2Auth(walletId, clientId, redirectUri, responseType, state, nonce, options).then((request) => request(axios, basePath));
2227
2268
  },
2269
+ /**
2270
+ *
2271
+ * @param {*} [options] Override http request option.
2272
+ * @throws {RequiredError}
2273
+ */
2274
+ oauth2Profile(options) {
2275
+ return localVarFp.oauth2Profile(options).then((request) => request(axios, basePath));
2276
+ },
2228
2277
  /**
2229
2278
  *
2230
2279
  * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
@@ -2625,6 +2674,15 @@ class DefaultApi extends base_1.BaseAPI {
2625
2674
  oauth2Auth(walletId, clientId, redirectUri, responseType, state, nonce, options) {
2626
2675
  return (0, exports.DefaultApiFp)(this.configuration).oauth2Auth(walletId, clientId, redirectUri, responseType, state, nonce, options).then((request) => request(this.axios, this.basePath));
2627
2676
  }
2677
+ /**
2678
+ *
2679
+ * @param {*} [options] Override http request option.
2680
+ * @throws {RequiredError}
2681
+ * @memberof DefaultApi
2682
+ */
2683
+ oauth2Profile(options) {
2684
+ return (0, exports.DefaultApiFp)(this.configuration).oauth2Profile(options).then((request) => request(this.axios, this.basePath));
2685
+ }
2628
2686
  /**
2629
2687
  *
2630
2688
  * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.124",
4
+ "version": "0.0.126",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {