@triveria/wallet 0.0.130 → 0.0.131
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.
- package/api.d.ts +14 -8
- package/api.js +15 -15
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -1277,6 +1277,12 @@ export interface VerifyInitResponse {
|
|
|
1277
1277
|
* @memberof VerifyInitResponse
|
|
1278
1278
|
*/
|
|
1279
1279
|
'verifierUrl': string;
|
|
1280
|
+
/**
|
|
1281
|
+
* A code that can be used to match the verified credential for later use.
|
|
1282
|
+
* @type {string}
|
|
1283
|
+
* @memberof VerifyInitResponse
|
|
1284
|
+
*/
|
|
1285
|
+
'verifierState': string;
|
|
1280
1286
|
}
|
|
1281
1287
|
/**
|
|
1282
1288
|
*
|
|
@@ -1589,7 +1595,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1589
1595
|
issuerCredentialTypesList: (url: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1590
1596
|
/**
|
|
1591
1597
|
*
|
|
1592
|
-
* @param {string}
|
|
1598
|
+
* @param {string} verifierState
|
|
1593
1599
|
* @param {string} clientId
|
|
1594
1600
|
* @param {string} redirectUri
|
|
1595
1601
|
* @param {string} responseType
|
|
@@ -1598,7 +1604,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1598
1604
|
* @param {*} [options] Override http request option.
|
|
1599
1605
|
* @throws {RequiredError}
|
|
1600
1606
|
*/
|
|
1601
|
-
oauth2Auth: (
|
|
1607
|
+
oauth2Auth: (verifierState: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1602
1608
|
/**
|
|
1603
1609
|
*
|
|
1604
1610
|
* @param {*} [options] Override http request option.
|
|
@@ -1900,7 +1906,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1900
1906
|
issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CredentialType>>>;
|
|
1901
1907
|
/**
|
|
1902
1908
|
*
|
|
1903
|
-
* @param {string}
|
|
1909
|
+
* @param {string} verifierState
|
|
1904
1910
|
* @param {string} clientId
|
|
1905
1911
|
* @param {string} redirectUri
|
|
1906
1912
|
* @param {string} responseType
|
|
@@ -1909,7 +1915,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1909
1915
|
* @param {*} [options] Override http request option.
|
|
1910
1916
|
* @throws {RequiredError}
|
|
1911
1917
|
*/
|
|
1912
|
-
oauth2Auth(
|
|
1918
|
+
oauth2Auth(verifierState: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2RedirectUri>>;
|
|
1913
1919
|
/**
|
|
1914
1920
|
*
|
|
1915
1921
|
* @param {*} [options] Override http request option.
|
|
@@ -2211,7 +2217,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2211
2217
|
issuerCredentialTypesList(url: string, options?: any): AxiosPromise<Array<CredentialType>>;
|
|
2212
2218
|
/**
|
|
2213
2219
|
*
|
|
2214
|
-
* @param {string}
|
|
2220
|
+
* @param {string} verifierState
|
|
2215
2221
|
* @param {string} clientId
|
|
2216
2222
|
* @param {string} redirectUri
|
|
2217
2223
|
* @param {string} responseType
|
|
@@ -2220,7 +2226,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2220
2226
|
* @param {*} [options] Override http request option.
|
|
2221
2227
|
* @throws {RequiredError}
|
|
2222
2228
|
*/
|
|
2223
|
-
oauth2Auth(
|
|
2229
|
+
oauth2Auth(verifierState: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: any): AxiosPromise<Oauth2RedirectUri>;
|
|
2224
2230
|
/**
|
|
2225
2231
|
*
|
|
2226
2232
|
* @param {*} [options] Override http request option.
|
|
@@ -2540,7 +2546,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2540
2546
|
issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialType[], any>>;
|
|
2541
2547
|
/**
|
|
2542
2548
|
*
|
|
2543
|
-
* @param {string}
|
|
2549
|
+
* @param {string} verifierState
|
|
2544
2550
|
* @param {string} clientId
|
|
2545
2551
|
* @param {string} redirectUri
|
|
2546
2552
|
* @param {string} responseType
|
|
@@ -2550,7 +2556,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2550
2556
|
* @throws {RequiredError}
|
|
2551
2557
|
* @memberof DefaultApi
|
|
2552
2558
|
*/
|
|
2553
|
-
oauth2Auth(
|
|
2559
|
+
oauth2Auth(verifierState: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2RedirectUri, any>>;
|
|
2554
2560
|
/**
|
|
2555
2561
|
*
|
|
2556
2562
|
* @param {*} [options] Override http request option.
|
package/api.js
CHANGED
|
@@ -665,7 +665,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
665
665
|
}),
|
|
666
666
|
/**
|
|
667
667
|
*
|
|
668
|
-
* @param {string}
|
|
668
|
+
* @param {string} verifierState
|
|
669
669
|
* @param {string} clientId
|
|
670
670
|
* @param {string} redirectUri
|
|
671
671
|
* @param {string} responseType
|
|
@@ -674,9 +674,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
674
674
|
* @param {*} [options] Override http request option.
|
|
675
675
|
* @throws {RequiredError}
|
|
676
676
|
*/
|
|
677
|
-
oauth2Auth: (
|
|
678
|
-
// verify required parameter '
|
|
679
|
-
(0, common_1.assertParamExists)('oauth2Auth', '
|
|
677
|
+
oauth2Auth: (verifierState, clientId, redirectUri, responseType, state, nonce, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
678
|
+
// verify required parameter 'verifierState' is not null or undefined
|
|
679
|
+
(0, common_1.assertParamExists)('oauth2Auth', 'verifierState', verifierState);
|
|
680
680
|
// verify required parameter 'clientId' is not null or undefined
|
|
681
681
|
(0, common_1.assertParamExists)('oauth2Auth', 'clientId', clientId);
|
|
682
682
|
// verify required parameter 'redirectUri' is not null or undefined
|
|
@@ -713,8 +713,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
713
713
|
if (nonce !== undefined) {
|
|
714
714
|
localVarQueryParameter['nonce'] = nonce;
|
|
715
715
|
}
|
|
716
|
-
if (
|
|
717
|
-
localVarHeaderParameter['
|
|
716
|
+
if (verifierState != null) {
|
|
717
|
+
localVarHeaderParameter['verifier-state'] = String(verifierState);
|
|
718
718
|
}
|
|
719
719
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
720
720
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1731,7 +1731,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
1731
1731
|
},
|
|
1732
1732
|
/**
|
|
1733
1733
|
*
|
|
1734
|
-
* @param {string}
|
|
1734
|
+
* @param {string} verifierState
|
|
1735
1735
|
* @param {string} clientId
|
|
1736
1736
|
* @param {string} redirectUri
|
|
1737
1737
|
* @param {string} responseType
|
|
@@ -1740,10 +1740,10 @@ const DefaultApiFp = function (configuration) {
|
|
|
1740
1740
|
* @param {*} [options] Override http request option.
|
|
1741
1741
|
* @throws {RequiredError}
|
|
1742
1742
|
*/
|
|
1743
|
-
oauth2Auth(
|
|
1743
|
+
oauth2Auth(verifierState, clientId, redirectUri, responseType, state, nonce, options) {
|
|
1744
1744
|
var _a, _b, _c;
|
|
1745
1745
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1746
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Auth(
|
|
1746
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Auth(verifierState, clientId, redirectUri, responseType, state, nonce, options);
|
|
1747
1747
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1748
1748
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oauth2Auth']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1749
1749
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2254,7 +2254,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2254
2254
|
},
|
|
2255
2255
|
/**
|
|
2256
2256
|
*
|
|
2257
|
-
* @param {string}
|
|
2257
|
+
* @param {string} verifierState
|
|
2258
2258
|
* @param {string} clientId
|
|
2259
2259
|
* @param {string} redirectUri
|
|
2260
2260
|
* @param {string} responseType
|
|
@@ -2263,8 +2263,8 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2263
2263
|
* @param {*} [options] Override http request option.
|
|
2264
2264
|
* @throws {RequiredError}
|
|
2265
2265
|
*/
|
|
2266
|
-
oauth2Auth(
|
|
2267
|
-
return localVarFp.oauth2Auth(
|
|
2266
|
+
oauth2Auth(verifierState, clientId, redirectUri, responseType, state, nonce, options) {
|
|
2267
|
+
return localVarFp.oauth2Auth(verifierState, clientId, redirectUri, responseType, state, nonce, options).then((request) => request(axios, basePath));
|
|
2268
2268
|
},
|
|
2269
2269
|
/**
|
|
2270
2270
|
*
|
|
@@ -2661,7 +2661,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2661
2661
|
}
|
|
2662
2662
|
/**
|
|
2663
2663
|
*
|
|
2664
|
-
* @param {string}
|
|
2664
|
+
* @param {string} verifierState
|
|
2665
2665
|
* @param {string} clientId
|
|
2666
2666
|
* @param {string} redirectUri
|
|
2667
2667
|
* @param {string} responseType
|
|
@@ -2671,8 +2671,8 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2671
2671
|
* @throws {RequiredError}
|
|
2672
2672
|
* @memberof DefaultApi
|
|
2673
2673
|
*/
|
|
2674
|
-
oauth2Auth(
|
|
2675
|
-
return (0, exports.DefaultApiFp)(this.configuration).oauth2Auth(
|
|
2674
|
+
oauth2Auth(verifierState, clientId, redirectUri, responseType, state, nonce, options) {
|
|
2675
|
+
return (0, exports.DefaultApiFp)(this.configuration).oauth2Auth(verifierState, clientId, redirectUri, responseType, state, nonce, options).then((request) => request(this.axios, this.basePath));
|
|
2676
2676
|
}
|
|
2677
2677
|
/**
|
|
2678
2678
|
*
|