@triveria/wallet 0.0.122 → 0.0.123

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 +24 -44
  2. package/api.js +32 -77
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -1582,20 +1582,15 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1582
1582
  oauth2Auth: (walletId: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1583
1583
  /**
1584
1584
  *
1585
- * @param {string} grantType Value MUST be set to \&quot;authorization_code\&quot;.
1586
- * @param {string} code The authorization code received at the /auth endpoint.
1587
- * @param {string} redirectUri
1588
- * @param {string} clientId
1589
- * @param {string} clientSecret
1590
- * @param {string} grantType2 Value MUST be set to \\\&quot;authorization_code\\\&quot;.
1591
- * @param {string} code2 The authorization code received from the.
1592
- * @param {string} redirectUri2 REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
1593
- * @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
1594
- * @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
1585
+ * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
1586
+ * @param {string} code The authorization code received from the.
1587
+ * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
1588
+ * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
1589
+ * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
1595
1590
  * @param {*} [options] Override http request option.
1596
1591
  * @throws {RequiredError}
1597
1592
  */
1598
- oauth2Token: (grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, grantType2: string, code2: string, redirectUri2: string, clientId2: string, clientSecret2: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1593
+ oauth2Token: (grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1599
1594
  /**
1600
1595
  * Issue verifiable credential using OIDC4VCI offer acceptance
1601
1596
  * @param {string} walletId
@@ -1892,20 +1887,15 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1892
1887
  oauth2Auth(walletId: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2RedirectUriResponse>>;
1893
1888
  /**
1894
1889
  *
1895
- * @param {string} grantType Value MUST be set to \&quot;authorization_code\&quot;.
1896
- * @param {string} code The authorization code received at the /auth endpoint.
1897
- * @param {string} redirectUri
1898
- * @param {string} clientId
1899
- * @param {string} clientSecret
1900
- * @param {string} grantType2 Value MUST be set to \\\&quot;authorization_code\\\&quot;.
1901
- * @param {string} code2 The authorization code received from the.
1902
- * @param {string} redirectUri2 REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
1903
- * @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
1904
- * @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
1890
+ * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
1891
+ * @param {string} code The authorization code received from the.
1892
+ * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
1893
+ * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
1894
+ * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
1905
1895
  * @param {*} [options] Override http request option.
1906
1896
  * @throws {RequiredError}
1907
1897
  */
1908
- oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, grantType2: string, code2: string, redirectUri2: string, clientId2: string, clientSecret2: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2AccessTokenResponse>>;
1898
+ oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2AccessTokenResponse>>;
1909
1899
  /**
1910
1900
  * Issue verifiable credential using OIDC4VCI offer acceptance
1911
1901
  * @param {string} walletId
@@ -2202,20 +2192,15 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2202
2192
  oauth2Auth(walletId: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: any): AxiosPromise<Oauth2RedirectUriResponse>;
2203
2193
  /**
2204
2194
  *
2205
- * @param {string} grantType Value MUST be set to \&quot;authorization_code\&quot;.
2206
- * @param {string} code The authorization code received at the /auth endpoint.
2207
- * @param {string} redirectUri
2208
- * @param {string} clientId
2209
- * @param {string} clientSecret
2210
- * @param {string} grantType2 Value MUST be set to \\\&quot;authorization_code\\\&quot;.
2211
- * @param {string} code2 The authorization code received from the.
2212
- * @param {string} redirectUri2 REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
2213
- * @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
2214
- * @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
2195
+ * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
2196
+ * @param {string} code The authorization code received from the.
2197
+ * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
2198
+ * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
2199
+ * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
2215
2200
  * @param {*} [options] Override http request option.
2216
2201
  * @throws {RequiredError}
2217
2202
  */
2218
- oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, grantType2: string, code2: string, redirectUri2: string, clientId2: string, clientSecret2: string, options?: any): AxiosPromise<Oauth2AccessTokenResponse>;
2203
+ oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: any): AxiosPromise<Oauth2AccessTokenResponse>;
2219
2204
  /**
2220
2205
  * Issue verifiable credential using OIDC4VCI offer acceptance
2221
2206
  * @param {string} walletId
@@ -2531,21 +2516,16 @@ export declare class DefaultApi extends BaseAPI {
2531
2516
  oauth2Auth(walletId: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2RedirectUriResponse, any>>;
2532
2517
  /**
2533
2518
  *
2534
- * @param {string} grantType Value MUST be set to \&quot;authorization_code\&quot;.
2535
- * @param {string} code The authorization code received at the /auth endpoint.
2536
- * @param {string} redirectUri
2537
- * @param {string} clientId
2538
- * @param {string} clientSecret
2539
- * @param {string} grantType2 Value MUST be set to \\\&quot;authorization_code\\\&quot;.
2540
- * @param {string} code2 The authorization code received from the.
2541
- * @param {string} redirectUri2 REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
2542
- * @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
2543
- * @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
2519
+ * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
2520
+ * @param {string} code The authorization code received from the.
2521
+ * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
2522
+ * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
2523
+ * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
2544
2524
  * @param {*} [options] Override http request option.
2545
2525
  * @throws {RequiredError}
2546
2526
  * @memberof DefaultApi
2547
2527
  */
2548
- oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, grantType2: string, code2: string, redirectUri2: string, clientId2: string, clientSecret2: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2AccessTokenResponse, any>>;
2528
+ oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2AccessTokenResponse, any>>;
2549
2529
  /**
2550
2530
  * Issue verifiable credential using OIDC4VCI offer acceptance
2551
2531
  * @param {string} walletId
package/api.js CHANGED
@@ -726,20 +726,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
726
726
  }),
727
727
  /**
728
728
  *
729
- * @param {string} grantType Value MUST be set to \&quot;authorization_code\&quot;.
730
- * @param {string} code The authorization code received at the /auth endpoint.
731
- * @param {string} redirectUri
732
- * @param {string} clientId
733
- * @param {string} clientSecret
734
- * @param {string} grantType2 Value MUST be set to \\\&quot;authorization_code\\\&quot;.
735
- * @param {string} code2 The authorization code received from the.
736
- * @param {string} redirectUri2 REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
737
- * @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
738
- * @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
729
+ * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
730
+ * @param {string} code The authorization code received from the.
731
+ * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
732
+ * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
733
+ * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
739
734
  * @param {*} [options] Override http request option.
740
735
  * @throws {RequiredError}
741
736
  */
742
- oauth2Token: (grantType, code, redirectUri, clientId, clientSecret, grantType2, code2, redirectUri2, clientId2, clientSecret2, options = {}) => __awaiter(this, void 0, void 0, function* () {
737
+ oauth2Token: (grantType, code, redirectUri, clientId, clientSecret, options = {}) => __awaiter(this, void 0, void 0, function* () {
743
738
  // verify required parameter 'grantType' is not null or undefined
744
739
  (0, common_1.assertParamExists)('oauth2Token', 'grantType', grantType);
745
740
  // verify required parameter 'code' is not null or undefined
@@ -750,16 +745,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
750
745
  (0, common_1.assertParamExists)('oauth2Token', 'clientId', clientId);
751
746
  // verify required parameter 'clientSecret' is not null or undefined
752
747
  (0, common_1.assertParamExists)('oauth2Token', 'clientSecret', clientSecret);
753
- // verify required parameter 'grantType2' is not null or undefined
754
- (0, common_1.assertParamExists)('oauth2Token', 'grantType2', grantType2);
755
- // verify required parameter 'code2' is not null or undefined
756
- (0, common_1.assertParamExists)('oauth2Token', 'code2', code2);
757
- // verify required parameter 'redirectUri2' is not null or undefined
758
- (0, common_1.assertParamExists)('oauth2Token', 'redirectUri2', redirectUri2);
759
- // verify required parameter 'clientId2' is not null or undefined
760
- (0, common_1.assertParamExists)('oauth2Token', 'clientId2', clientId2);
761
- // verify required parameter 'clientSecret2' is not null or undefined
762
- (0, common_1.assertParamExists)('oauth2Token', 'clientSecret2', clientSecret2);
763
748
  const localVarPath = `/oauth2/token`;
764
749
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
765
750
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -772,34 +757,19 @@ const DefaultApiAxiosParamCreator = function (configuration) {
772
757
  const localVarQueryParameter = {};
773
758
  const localVarFormParams = new URLSearchParams();
774
759
  if (grantType !== undefined) {
775
- localVarQueryParameter['grant_type'] = grantType;
760
+ localVarFormParams.set('grant_type', grantType);
776
761
  }
777
762
  if (code !== undefined) {
778
- localVarQueryParameter['code'] = code;
763
+ localVarFormParams.set('code', code);
779
764
  }
780
765
  if (redirectUri !== undefined) {
781
- localVarQueryParameter['redirect_uri'] = redirectUri;
766
+ localVarFormParams.set('redirect_uri', redirectUri);
782
767
  }
783
768
  if (clientId !== undefined) {
784
- localVarQueryParameter['client_id'] = clientId;
769
+ localVarFormParams.set('client_id', clientId);
785
770
  }
786
771
  if (clientSecret !== undefined) {
787
- localVarQueryParameter['client_secret'] = clientSecret;
788
- }
789
- if (grantType2 !== undefined) {
790
- localVarFormParams.set('grant_type', grantType2);
791
- }
792
- if (code2 !== undefined) {
793
- localVarFormParams.set('code', code2);
794
- }
795
- if (redirectUri2 !== undefined) {
796
- localVarFormParams.set('redirect_uri', redirectUri2);
797
- }
798
- if (clientId2 !== undefined) {
799
- localVarFormParams.set('client_id', clientId2);
800
- }
801
- if (clientSecret2 !== undefined) {
802
- localVarFormParams.set('client_secret', clientSecret2);
772
+ localVarFormParams.set('client_secret', clientSecret);
803
773
  }
804
774
  localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
805
775
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -1754,23 +1724,18 @@ const DefaultApiFp = function (configuration) {
1754
1724
  },
1755
1725
  /**
1756
1726
  *
1757
- * @param {string} grantType Value MUST be set to \&quot;authorization_code\&quot;.
1758
- * @param {string} code The authorization code received at the /auth endpoint.
1759
- * @param {string} redirectUri
1760
- * @param {string} clientId
1761
- * @param {string} clientSecret
1762
- * @param {string} grantType2 Value MUST be set to \\\&quot;authorization_code\\\&quot;.
1763
- * @param {string} code2 The authorization code received from the.
1764
- * @param {string} redirectUri2 REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
1765
- * @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
1766
- * @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
1727
+ * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
1728
+ * @param {string} code The authorization code received from the.
1729
+ * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
1730
+ * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
1731
+ * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
1767
1732
  * @param {*} [options] Override http request option.
1768
1733
  * @throws {RequiredError}
1769
1734
  */
1770
- oauth2Token(grantType, code, redirectUri, clientId, clientSecret, grantType2, code2, redirectUri2, clientId2, clientSecret2, options) {
1735
+ oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options) {
1771
1736
  var _a, _b, _c;
1772
1737
  return __awaiter(this, void 0, void 0, function* () {
1773
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Token(grantType, code, redirectUri, clientId, clientSecret, grantType2, code2, redirectUri2, clientId2, clientSecret2, options);
1738
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options);
1774
1739
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1775
1740
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oauth2Token']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1776
1741
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2262,21 +2227,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2262
2227
  },
2263
2228
  /**
2264
2229
  *
2265
- * @param {string} grantType Value MUST be set to \&quot;authorization_code\&quot;.
2266
- * @param {string} code The authorization code received at the /auth endpoint.
2267
- * @param {string} redirectUri
2268
- * @param {string} clientId
2269
- * @param {string} clientSecret
2270
- * @param {string} grantType2 Value MUST be set to \\\&quot;authorization_code\\\&quot;.
2271
- * @param {string} code2 The authorization code received from the.
2272
- * @param {string} redirectUri2 REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
2273
- * @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
2274
- * @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
2230
+ * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
2231
+ * @param {string} code The authorization code received from the.
2232
+ * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
2233
+ * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
2234
+ * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
2275
2235
  * @param {*} [options] Override http request option.
2276
2236
  * @throws {RequiredError}
2277
2237
  */
2278
- oauth2Token(grantType, code, redirectUri, clientId, clientSecret, grantType2, code2, redirectUri2, clientId2, clientSecret2, options) {
2279
- return localVarFp.oauth2Token(grantType, code, redirectUri, clientId, clientSecret, grantType2, code2, redirectUri2, clientId2, clientSecret2, options).then((request) => request(axios, basePath));
2238
+ oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options) {
2239
+ return localVarFp.oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options).then((request) => request(axios, basePath));
2280
2240
  },
2281
2241
  /**
2282
2242
  * Issue verifiable credential using OIDC4VCI offer acceptance
@@ -2667,22 +2627,17 @@ class DefaultApi extends base_1.BaseAPI {
2667
2627
  }
2668
2628
  /**
2669
2629
  *
2670
- * @param {string} grantType Value MUST be set to \&quot;authorization_code\&quot;.
2671
- * @param {string} code The authorization code received at the /auth endpoint.
2672
- * @param {string} redirectUri
2673
- * @param {string} clientId
2674
- * @param {string} clientSecret
2675
- * @param {string} grantType2 Value MUST be set to \\\&quot;authorization_code\\\&quot;.
2676
- * @param {string} code2 The authorization code received from the.
2677
- * @param {string} redirectUri2 REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
2678
- * @param {string} clientId2 REQUIRED, if the client is not authenticating with the authorization server.
2679
- * @param {string} clientSecret2 REQUIRED, if the client is not authenticating with the authorization server.
2630
+ * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
2631
+ * @param {string} code The authorization code received from the.
2632
+ * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
2633
+ * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
2634
+ * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
2680
2635
  * @param {*} [options] Override http request option.
2681
2636
  * @throws {RequiredError}
2682
2637
  * @memberof DefaultApi
2683
2638
  */
2684
- oauth2Token(grantType, code, redirectUri, clientId, clientSecret, grantType2, code2, redirectUri2, clientId2, clientSecret2, options) {
2685
- return (0, exports.DefaultApiFp)(this.configuration).oauth2Token(grantType, code, redirectUri, clientId, clientSecret, grantType2, code2, redirectUri2, clientId2, clientSecret2, options).then((request) => request(this.axios, this.basePath));
2639
+ oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options) {
2640
+ return (0, exports.DefaultApiFp)(this.configuration).oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options).then((request) => request(this.axios, this.basePath));
2686
2641
  }
2687
2642
  /**
2688
2643
  * Issue verifiable credential using OIDC4VCI offer acceptance
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.122",
4
+ "version": "0.0.123",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {