@triveria/wallet 0.0.129 → 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 +37 -25
- package/api.js +15 -15
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -834,51 +834,57 @@ export interface ModelError {
|
|
|
834
834
|
/**
|
|
835
835
|
*
|
|
836
836
|
* @export
|
|
837
|
-
* @interface
|
|
837
|
+
* @interface Oauth2AccessToken
|
|
838
838
|
*/
|
|
839
|
-
export interface
|
|
839
|
+
export interface Oauth2AccessToken {
|
|
840
840
|
/**
|
|
841
841
|
*
|
|
842
842
|
* @type {string}
|
|
843
|
-
* @memberof
|
|
843
|
+
* @memberof Oauth2AccessToken
|
|
844
844
|
*/
|
|
845
845
|
'access_token': string;
|
|
846
846
|
/**
|
|
847
847
|
*
|
|
848
848
|
* @type {string}
|
|
849
|
-
* @memberof
|
|
849
|
+
* @memberof Oauth2AccessToken
|
|
850
850
|
*/
|
|
851
851
|
'token_type': string;
|
|
852
852
|
/**
|
|
853
853
|
*
|
|
854
854
|
* @type {string}
|
|
855
|
-
* @memberof
|
|
855
|
+
* @memberof Oauth2AccessToken
|
|
856
856
|
*/
|
|
857
857
|
'expires_in': string;
|
|
858
858
|
}
|
|
859
859
|
/**
|
|
860
860
|
*
|
|
861
861
|
* @export
|
|
862
|
-
* @interface
|
|
862
|
+
* @interface Oauth2Profile
|
|
863
863
|
*/
|
|
864
|
-
export interface
|
|
864
|
+
export interface Oauth2Profile {
|
|
865
865
|
/**
|
|
866
866
|
*
|
|
867
867
|
* @type {string}
|
|
868
|
-
* @memberof
|
|
868
|
+
* @memberof Oauth2Profile
|
|
869
869
|
*/
|
|
870
870
|
'user_id': string;
|
|
871
|
+
/**
|
|
872
|
+
*
|
|
873
|
+
* @type {string}
|
|
874
|
+
* @memberof Oauth2Profile
|
|
875
|
+
*/
|
|
876
|
+
'email': string;
|
|
871
877
|
}
|
|
872
878
|
/**
|
|
873
879
|
*
|
|
874
880
|
* @export
|
|
875
|
-
* @interface
|
|
881
|
+
* @interface Oauth2RedirectUri
|
|
876
882
|
*/
|
|
877
|
-
export interface
|
|
883
|
+
export interface Oauth2RedirectUri {
|
|
878
884
|
/**
|
|
879
885
|
*
|
|
880
886
|
* @type {string}
|
|
881
|
-
* @memberof
|
|
887
|
+
* @memberof Oauth2RedirectUri
|
|
882
888
|
*/
|
|
883
889
|
'redirect_uri': string;
|
|
884
890
|
}
|
|
@@ -1271,6 +1277,12 @@ export interface VerifyInitResponse {
|
|
|
1271
1277
|
* @memberof VerifyInitResponse
|
|
1272
1278
|
*/
|
|
1273
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;
|
|
1274
1286
|
}
|
|
1275
1287
|
/**
|
|
1276
1288
|
*
|
|
@@ -1583,7 +1595,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1583
1595
|
issuerCredentialTypesList: (url: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1584
1596
|
/**
|
|
1585
1597
|
*
|
|
1586
|
-
* @param {string}
|
|
1598
|
+
* @param {string} verifierState
|
|
1587
1599
|
* @param {string} clientId
|
|
1588
1600
|
* @param {string} redirectUri
|
|
1589
1601
|
* @param {string} responseType
|
|
@@ -1592,7 +1604,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1592
1604
|
* @param {*} [options] Override http request option.
|
|
1593
1605
|
* @throws {RequiredError}
|
|
1594
1606
|
*/
|
|
1595
|
-
oauth2Auth: (
|
|
1607
|
+
oauth2Auth: (verifierState: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1596
1608
|
/**
|
|
1597
1609
|
*
|
|
1598
1610
|
* @param {*} [options] Override http request option.
|
|
@@ -1894,7 +1906,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1894
1906
|
issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CredentialType>>>;
|
|
1895
1907
|
/**
|
|
1896
1908
|
*
|
|
1897
|
-
* @param {string}
|
|
1909
|
+
* @param {string} verifierState
|
|
1898
1910
|
* @param {string} clientId
|
|
1899
1911
|
* @param {string} redirectUri
|
|
1900
1912
|
* @param {string} responseType
|
|
@@ -1903,13 +1915,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1903
1915
|
* @param {*} [options] Override http request option.
|
|
1904
1916
|
* @throws {RequiredError}
|
|
1905
1917
|
*/
|
|
1906
|
-
oauth2Auth(
|
|
1918
|
+
oauth2Auth(verifierState: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2RedirectUri>>;
|
|
1907
1919
|
/**
|
|
1908
1920
|
*
|
|
1909
1921
|
* @param {*} [options] Override http request option.
|
|
1910
1922
|
* @throws {RequiredError}
|
|
1911
1923
|
*/
|
|
1912
|
-
oauth2Profile(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1924
|
+
oauth2Profile(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2Profile>>;
|
|
1913
1925
|
/**
|
|
1914
1926
|
*
|
|
1915
1927
|
* @param {string} grantType Value MUST be set to \\\"authorization_code\\\".
|
|
@@ -1920,7 +1932,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1920
1932
|
* @param {*} [options] Override http request option.
|
|
1921
1933
|
* @throws {RequiredError}
|
|
1922
1934
|
*/
|
|
1923
|
-
oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
1935
|
+
oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2AccessToken>>;
|
|
1924
1936
|
/**
|
|
1925
1937
|
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
1926
1938
|
* @param {string} walletId
|
|
@@ -2205,7 +2217,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2205
2217
|
issuerCredentialTypesList(url: string, options?: any): AxiosPromise<Array<CredentialType>>;
|
|
2206
2218
|
/**
|
|
2207
2219
|
*
|
|
2208
|
-
* @param {string}
|
|
2220
|
+
* @param {string} verifierState
|
|
2209
2221
|
* @param {string} clientId
|
|
2210
2222
|
* @param {string} redirectUri
|
|
2211
2223
|
* @param {string} responseType
|
|
@@ -2214,13 +2226,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2214
2226
|
* @param {*} [options] Override http request option.
|
|
2215
2227
|
* @throws {RequiredError}
|
|
2216
2228
|
*/
|
|
2217
|
-
oauth2Auth(
|
|
2229
|
+
oauth2Auth(verifierState: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: any): AxiosPromise<Oauth2RedirectUri>;
|
|
2218
2230
|
/**
|
|
2219
2231
|
*
|
|
2220
2232
|
* @param {*} [options] Override http request option.
|
|
2221
2233
|
* @throws {RequiredError}
|
|
2222
2234
|
*/
|
|
2223
|
-
oauth2Profile(options?: any): AxiosPromise<
|
|
2235
|
+
oauth2Profile(options?: any): AxiosPromise<Oauth2Profile>;
|
|
2224
2236
|
/**
|
|
2225
2237
|
*
|
|
2226
2238
|
* @param {string} grantType Value MUST be set to \\\"authorization_code\\\".
|
|
@@ -2231,7 +2243,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2231
2243
|
* @param {*} [options] Override http request option.
|
|
2232
2244
|
* @throws {RequiredError}
|
|
2233
2245
|
*/
|
|
2234
|
-
oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: any): AxiosPromise<
|
|
2246
|
+
oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: any): AxiosPromise<Oauth2AccessToken>;
|
|
2235
2247
|
/**
|
|
2236
2248
|
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
2237
2249
|
* @param {string} walletId
|
|
@@ -2534,7 +2546,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2534
2546
|
issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialType[], any>>;
|
|
2535
2547
|
/**
|
|
2536
2548
|
*
|
|
2537
|
-
* @param {string}
|
|
2549
|
+
* @param {string} verifierState
|
|
2538
2550
|
* @param {string} clientId
|
|
2539
2551
|
* @param {string} redirectUri
|
|
2540
2552
|
* @param {string} responseType
|
|
@@ -2544,14 +2556,14 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2544
2556
|
* @throws {RequiredError}
|
|
2545
2557
|
* @memberof DefaultApi
|
|
2546
2558
|
*/
|
|
2547
|
-
oauth2Auth(
|
|
2559
|
+
oauth2Auth(verifierState: string, clientId: string, redirectUri: string, responseType: string, state: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2RedirectUri, any>>;
|
|
2548
2560
|
/**
|
|
2549
2561
|
*
|
|
2550
2562
|
* @param {*} [options] Override http request option.
|
|
2551
2563
|
* @throws {RequiredError}
|
|
2552
2564
|
* @memberof DefaultApi
|
|
2553
2565
|
*/
|
|
2554
|
-
oauth2Profile(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
2566
|
+
oauth2Profile(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2Profile, any>>;
|
|
2555
2567
|
/**
|
|
2556
2568
|
*
|
|
2557
2569
|
* @param {string} grantType Value MUST be set to \\\"authorization_code\\\".
|
|
@@ -2563,7 +2575,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2563
2575
|
* @throws {RequiredError}
|
|
2564
2576
|
* @memberof DefaultApi
|
|
2565
2577
|
*/
|
|
2566
|
-
oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
2578
|
+
oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2AccessToken, any>>;
|
|
2567
2579
|
/**
|
|
2568
2580
|
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
2569
2581
|
* @param {string} walletId
|
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
|
*
|