@triveria/wallet 0.0.157 → 0.0.159

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 +43 -222
  2. package/api.js +0 -494
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -490,6 +490,12 @@ export interface CredentialVerifierDefinition {
490
490
  * @memberof CredentialVerifierDefinition
491
491
  */
492
492
  'presentationDefinition': PresentationDefinition;
493
+ /**
494
+ * Additional JSON schema that will be used to validate credential. This can be used to narrow down the validation process to a specific set of attributes on top of the credential validity.
495
+ * @type {Array<PresentationDefinitionInputConstraintField>}
496
+ * @memberof CredentialVerifierDefinition
497
+ */
498
+ 'credentialValidationConstraints'?: Array<PresentationDefinitionInputConstraintField>;
493
499
  }
494
500
  /**
495
501
  * The wrapper contains Verifiable Credential in both, the Credential and as Base64 signed format alongside with metadata.
@@ -960,6 +966,43 @@ export interface Oauth2AccessToken {
960
966
  */
961
967
  'expires_in': string;
962
968
  }
969
+ /**
970
+ *
971
+ * @export
972
+ * @interface Oauth2AccessTokenRequest
973
+ */
974
+ export interface Oauth2AccessTokenRequest {
975
+ /**
976
+ * Value MUST be set to \"authorization_code\".
977
+ * @type {string}
978
+ * @memberof Oauth2AccessTokenRequest
979
+ */
980
+ 'grant_type': string;
981
+ /**
982
+ * The authorization code received from the.
983
+ * @type {string}
984
+ * @memberof Oauth2AccessTokenRequest
985
+ */
986
+ 'code': string;
987
+ /**
988
+ * REQUIRED, if the \"redirect_uri\" parameter was included in the authorization request.
989
+ * @type {string}
990
+ * @memberof Oauth2AccessTokenRequest
991
+ */
992
+ 'redirect_uri': string;
993
+ /**
994
+ * REQUIRED, if the client is not authenticating with the authorization server.
995
+ * @type {string}
996
+ * @memberof Oauth2AccessTokenRequest
997
+ */
998
+ 'client_id': string;
999
+ /**
1000
+ * REQUIRED, if the client is not authenticating with the authorization server.
1001
+ * @type {string}
1002
+ * @memberof Oauth2AccessTokenRequest
1003
+ */
1004
+ 'client_secret': string;
1005
+ }
963
1006
  /**
964
1007
  *
965
1008
  * @export
@@ -1751,60 +1794,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1751
1794
  * @throws {RequiredError}
1752
1795
  */
1753
1796
  issuerCredentialTypesList: (url: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1754
- /**
1755
- *
1756
- * @param {string} clientId
1757
- * @param {string} redirectUri
1758
- * @param {string} responseType
1759
- * @param {string} state
1760
- * @param {string} verifierState
1761
- * @param {string} [nonce]
1762
- * @param {*} [options] Override http request option.
1763
- * @throws {RequiredError}
1764
- */
1765
- oauth2Auth: (clientId: string, redirectUri: string, responseType: string, state: string, verifierState: string, nonce?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1766
- /**
1767
- *
1768
- * @param {string} clientId
1769
- * @param {string} redirectUri
1770
- * @param {string} responseType
1771
- * @param {string} state
1772
- * @param {string} scope
1773
- * @param {string} [nonce]
1774
- * @param {*} [options] Override http request option.
1775
- * @throws {RequiredError}
1776
- */
1777
- oauth2AuthGet: (clientId: string, redirectUri: string, responseType: string, state: string, scope: string, nonce?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1778
- /**
1779
- *
1780
- * @param {string} code
1781
- * @param {*} [options] Override http request option.
1782
- * @throws {RequiredError}
1783
- */
1784
- oauth2Callback: (code: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1785
- /**
1786
- *
1787
- * @param {*} [options] Override http request option.
1788
- * @throws {RequiredError}
1789
- */
1790
- oauth2Keys: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1791
- /**
1792
- *
1793
- * @param {*} [options] Override http request option.
1794
- * @throws {RequiredError}
1795
- */
1796
- oauth2Profile: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1797
- /**
1798
- *
1799
- * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
1800
- * @param {string} code The authorization code received from the.
1801
- * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
1802
- * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
1803
- * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
1804
- * @param {*} [options] Override http request option.
1805
- * @throws {RequiredError}
1806
- */
1807
- oauth2Token: (grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1808
1797
  /**
1809
1798
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
1810
1799
  * @param {string} credentialId
@@ -2131,60 +2120,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2131
2120
  * @throws {RequiredError}
2132
2121
  */
2133
2122
  issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CredentialType>>>;
2134
- /**
2135
- *
2136
- * @param {string} clientId
2137
- * @param {string} redirectUri
2138
- * @param {string} responseType
2139
- * @param {string} state
2140
- * @param {string} verifierState
2141
- * @param {string} [nonce]
2142
- * @param {*} [options] Override http request option.
2143
- * @throws {RequiredError}
2144
- */
2145
- oauth2Auth(clientId: string, redirectUri: string, responseType: string, state: string, verifierState: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2RedirectUri>>;
2146
- /**
2147
- *
2148
- * @param {string} clientId
2149
- * @param {string} redirectUri
2150
- * @param {string} responseType
2151
- * @param {string} state
2152
- * @param {string} scope
2153
- * @param {string} [nonce]
2154
- * @param {*} [options] Override http request option.
2155
- * @throws {RequiredError}
2156
- */
2157
- oauth2AuthGet(clientId: string, redirectUri: string, responseType: string, state: string, scope: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2158
- /**
2159
- *
2160
- * @param {string} code
2161
- * @param {*} [options] Override http request option.
2162
- * @throws {RequiredError}
2163
- */
2164
- oauth2Callback(code: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2165
- /**
2166
- *
2167
- * @param {*} [options] Override http request option.
2168
- * @throws {RequiredError}
2169
- */
2170
- oauth2Keys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Jwks>>;
2171
- /**
2172
- *
2173
- * @param {*} [options] Override http request option.
2174
- * @throws {RequiredError}
2175
- */
2176
- oauth2Profile(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2Profile>>;
2177
- /**
2178
- *
2179
- * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
2180
- * @param {string} code The authorization code received from the.
2181
- * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
2182
- * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
2183
- * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
2184
- * @param {*} [options] Override http request option.
2185
- * @throws {RequiredError}
2186
- */
2187
- oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Oauth2AccessToken>>;
2188
2123
  /**
2189
2124
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
2190
2125
  * @param {string} credentialId
@@ -2511,60 +2446,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2511
2446
  * @throws {RequiredError}
2512
2447
  */
2513
2448
  issuerCredentialTypesList(url: string, options?: any): AxiosPromise<Array<CredentialType>>;
2514
- /**
2515
- *
2516
- * @param {string} clientId
2517
- * @param {string} redirectUri
2518
- * @param {string} responseType
2519
- * @param {string} state
2520
- * @param {string} verifierState
2521
- * @param {string} [nonce]
2522
- * @param {*} [options] Override http request option.
2523
- * @throws {RequiredError}
2524
- */
2525
- oauth2Auth(clientId: string, redirectUri: string, responseType: string, state: string, verifierState: string, nonce?: string, options?: any): AxiosPromise<Oauth2RedirectUri>;
2526
- /**
2527
- *
2528
- * @param {string} clientId
2529
- * @param {string} redirectUri
2530
- * @param {string} responseType
2531
- * @param {string} state
2532
- * @param {string} scope
2533
- * @param {string} [nonce]
2534
- * @param {*} [options] Override http request option.
2535
- * @throws {RequiredError}
2536
- */
2537
- oauth2AuthGet(clientId: string, redirectUri: string, responseType: string, state: string, scope: string, nonce?: string, options?: any): AxiosPromise<void>;
2538
- /**
2539
- *
2540
- * @param {string} code
2541
- * @param {*} [options] Override http request option.
2542
- * @throws {RequiredError}
2543
- */
2544
- oauth2Callback(code: string, options?: any): AxiosPromise<void>;
2545
- /**
2546
- *
2547
- * @param {*} [options] Override http request option.
2548
- * @throws {RequiredError}
2549
- */
2550
- oauth2Keys(options?: any): AxiosPromise<Jwks>;
2551
- /**
2552
- *
2553
- * @param {*} [options] Override http request option.
2554
- * @throws {RequiredError}
2555
- */
2556
- oauth2Profile(options?: any): AxiosPromise<Oauth2Profile>;
2557
- /**
2558
- *
2559
- * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
2560
- * @param {string} code The authorization code received from the.
2561
- * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
2562
- * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
2563
- * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
2564
- * @param {*} [options] Override http request option.
2565
- * @throws {RequiredError}
2566
- */
2567
- oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: any): AxiosPromise<Oauth2AccessToken>;
2568
2449
  /**
2569
2450
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
2570
2451
  * @param {string} credentialId
@@ -2908,66 +2789,6 @@ export declare class DefaultApi extends BaseAPI {
2908
2789
  * @memberof DefaultApi
2909
2790
  */
2910
2791
  issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialType[], any>>;
2911
- /**
2912
- *
2913
- * @param {string} clientId
2914
- * @param {string} redirectUri
2915
- * @param {string} responseType
2916
- * @param {string} state
2917
- * @param {string} verifierState
2918
- * @param {string} [nonce]
2919
- * @param {*} [options] Override http request option.
2920
- * @throws {RequiredError}
2921
- * @memberof DefaultApi
2922
- */
2923
- oauth2Auth(clientId: string, redirectUri: string, responseType: string, state: string, verifierState: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2RedirectUri, any>>;
2924
- /**
2925
- *
2926
- * @param {string} clientId
2927
- * @param {string} redirectUri
2928
- * @param {string} responseType
2929
- * @param {string} state
2930
- * @param {string} scope
2931
- * @param {string} [nonce]
2932
- * @param {*} [options] Override http request option.
2933
- * @throws {RequiredError}
2934
- * @memberof DefaultApi
2935
- */
2936
- oauth2AuthGet(clientId: string, redirectUri: string, responseType: string, state: string, scope: string, nonce?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2937
- /**
2938
- *
2939
- * @param {string} code
2940
- * @param {*} [options] Override http request option.
2941
- * @throws {RequiredError}
2942
- * @memberof DefaultApi
2943
- */
2944
- oauth2Callback(code: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
2945
- /**
2946
- *
2947
- * @param {*} [options] Override http request option.
2948
- * @throws {RequiredError}
2949
- * @memberof DefaultApi
2950
- */
2951
- oauth2Keys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Jwks, any>>;
2952
- /**
2953
- *
2954
- * @param {*} [options] Override http request option.
2955
- * @throws {RequiredError}
2956
- * @memberof DefaultApi
2957
- */
2958
- oauth2Profile(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2Profile, any>>;
2959
- /**
2960
- *
2961
- * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
2962
- * @param {string} code The authorization code received from the.
2963
- * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
2964
- * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
2965
- * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
2966
- * @param {*} [options] Override http request option.
2967
- * @throws {RequiredError}
2968
- * @memberof DefaultApi
2969
- */
2970
- oauth2Token(grantType: string, code: string, redirectUri: string, clientId: string, clientSecret: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Oauth2AccessToken, any>>;
2971
2792
  /**
2972
2793
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
2973
2794
  * @param {string} credentialId
package/api.js CHANGED
@@ -653,260 +653,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
653
653
  options: localVarRequestOptions,
654
654
  };
655
655
  }),
656
- /**
657
- *
658
- * @param {string} clientId
659
- * @param {string} redirectUri
660
- * @param {string} responseType
661
- * @param {string} state
662
- * @param {string} verifierState
663
- * @param {string} [nonce]
664
- * @param {*} [options] Override http request option.
665
- * @throws {RequiredError}
666
- */
667
- oauth2Auth: (clientId, redirectUri, responseType, state, verifierState, nonce, options = {}) => __awaiter(this, void 0, void 0, function* () {
668
- // verify required parameter 'clientId' is not null or undefined
669
- (0, common_1.assertParamExists)('oauth2Auth', 'clientId', clientId);
670
- // verify required parameter 'redirectUri' is not null or undefined
671
- (0, common_1.assertParamExists)('oauth2Auth', 'redirectUri', redirectUri);
672
- // verify required parameter 'responseType' is not null or undefined
673
- (0, common_1.assertParamExists)('oauth2Auth', 'responseType', responseType);
674
- // verify required parameter 'state' is not null or undefined
675
- (0, common_1.assertParamExists)('oauth2Auth', 'state', state);
676
- // verify required parameter 'verifierState' is not null or undefined
677
- (0, common_1.assertParamExists)('oauth2Auth', 'verifierState', verifierState);
678
- const localVarPath = `/oauth2/auth`;
679
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
680
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
681
- let baseOptions;
682
- if (configuration) {
683
- baseOptions = configuration.baseOptions;
684
- }
685
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
686
- const localVarHeaderParameter = {};
687
- const localVarQueryParameter = {};
688
- if (clientId !== undefined) {
689
- localVarQueryParameter['client_id'] = clientId;
690
- }
691
- if (redirectUri !== undefined) {
692
- localVarQueryParameter['redirect_uri'] = redirectUri;
693
- }
694
- if (responseType !== undefined) {
695
- localVarQueryParameter['response_type'] = responseType;
696
- }
697
- if (state !== undefined) {
698
- localVarQueryParameter['state'] = state;
699
- }
700
- if (nonce !== undefined) {
701
- localVarQueryParameter['nonce'] = nonce;
702
- }
703
- if (verifierState != null) {
704
- localVarHeaderParameter['verifier-state'] = String(verifierState);
705
- }
706
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
707
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
708
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
709
- return {
710
- url: (0, common_1.toPathString)(localVarUrlObj),
711
- options: localVarRequestOptions,
712
- };
713
- }),
714
- /**
715
- *
716
- * @param {string} clientId
717
- * @param {string} redirectUri
718
- * @param {string} responseType
719
- * @param {string} state
720
- * @param {string} scope
721
- * @param {string} [nonce]
722
- * @param {*} [options] Override http request option.
723
- * @throws {RequiredError}
724
- */
725
- oauth2AuthGet: (clientId, redirectUri, responseType, state, scope, nonce, options = {}) => __awaiter(this, void 0, void 0, function* () {
726
- // verify required parameter 'clientId' is not null or undefined
727
- (0, common_1.assertParamExists)('oauth2AuthGet', 'clientId', clientId);
728
- // verify required parameter 'redirectUri' is not null or undefined
729
- (0, common_1.assertParamExists)('oauth2AuthGet', 'redirectUri', redirectUri);
730
- // verify required parameter 'responseType' is not null or undefined
731
- (0, common_1.assertParamExists)('oauth2AuthGet', 'responseType', responseType);
732
- // verify required parameter 'state' is not null or undefined
733
- (0, common_1.assertParamExists)('oauth2AuthGet', 'state', state);
734
- // verify required parameter 'scope' is not null or undefined
735
- (0, common_1.assertParamExists)('oauth2AuthGet', 'scope', scope);
736
- const localVarPath = `/oauth2/auth`;
737
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
738
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
739
- let baseOptions;
740
- if (configuration) {
741
- baseOptions = configuration.baseOptions;
742
- }
743
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
744
- const localVarHeaderParameter = {};
745
- const localVarQueryParameter = {};
746
- if (clientId !== undefined) {
747
- localVarQueryParameter['client_id'] = clientId;
748
- }
749
- if (redirectUri !== undefined) {
750
- localVarQueryParameter['redirect_uri'] = redirectUri;
751
- }
752
- if (responseType !== undefined) {
753
- localVarQueryParameter['response_type'] = responseType;
754
- }
755
- if (state !== undefined) {
756
- localVarQueryParameter['state'] = state;
757
- }
758
- if (nonce !== undefined) {
759
- localVarQueryParameter['nonce'] = nonce;
760
- }
761
- if (scope !== undefined) {
762
- localVarQueryParameter['scope'] = scope;
763
- }
764
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
765
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
766
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
767
- return {
768
- url: (0, common_1.toPathString)(localVarUrlObj),
769
- options: localVarRequestOptions,
770
- };
771
- }),
772
- /**
773
- *
774
- * @param {string} code
775
- * @param {*} [options] Override http request option.
776
- * @throws {RequiredError}
777
- */
778
- oauth2Callback: (code, options = {}) => __awaiter(this, void 0, void 0, function* () {
779
- // verify required parameter 'code' is not null or undefined
780
- (0, common_1.assertParamExists)('oauth2Callback', 'code', code);
781
- const localVarPath = `/oauth2/callback`;
782
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
783
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
784
- let baseOptions;
785
- if (configuration) {
786
- baseOptions = configuration.baseOptions;
787
- }
788
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
789
- const localVarHeaderParameter = {};
790
- const localVarQueryParameter = {};
791
- if (code !== undefined) {
792
- localVarQueryParameter['code'] = code;
793
- }
794
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
795
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
796
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
797
- return {
798
- url: (0, common_1.toPathString)(localVarUrlObj),
799
- options: localVarRequestOptions,
800
- };
801
- }),
802
- /**
803
- *
804
- * @param {*} [options] Override http request option.
805
- * @throws {RequiredError}
806
- */
807
- oauth2Keys: (options = {}) => __awaiter(this, void 0, void 0, function* () {
808
- const localVarPath = `/oauth2/keys`;
809
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
810
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
811
- let baseOptions;
812
- if (configuration) {
813
- baseOptions = configuration.baseOptions;
814
- }
815
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
816
- const localVarHeaderParameter = {};
817
- const localVarQueryParameter = {};
818
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
819
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
820
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
821
- return {
822
- url: (0, common_1.toPathString)(localVarUrlObj),
823
- options: localVarRequestOptions,
824
- };
825
- }),
826
- /**
827
- *
828
- * @param {*} [options] Override http request option.
829
- * @throws {RequiredError}
830
- */
831
- oauth2Profile: (options = {}) => __awaiter(this, void 0, void 0, function* () {
832
- const localVarPath = `/oauth2/profile`;
833
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
834
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
835
- let baseOptions;
836
- if (configuration) {
837
- baseOptions = configuration.baseOptions;
838
- }
839
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
840
- const localVarHeaderParameter = {};
841
- const localVarQueryParameter = {};
842
- // authentication accessToken required
843
- // http bearer authentication required
844
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
845
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
846
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
847
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
848
- return {
849
- url: (0, common_1.toPathString)(localVarUrlObj),
850
- options: localVarRequestOptions,
851
- };
852
- }),
853
- /**
854
- *
855
- * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
856
- * @param {string} code The authorization code received from the.
857
- * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
858
- * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
859
- * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
860
- * @param {*} [options] Override http request option.
861
- * @throws {RequiredError}
862
- */
863
- oauth2Token: (grantType, code, redirectUri, clientId, clientSecret, options = {}) => __awaiter(this, void 0, void 0, function* () {
864
- // verify required parameter 'grantType' is not null or undefined
865
- (0, common_1.assertParamExists)('oauth2Token', 'grantType', grantType);
866
- // verify required parameter 'code' is not null or undefined
867
- (0, common_1.assertParamExists)('oauth2Token', 'code', code);
868
- // verify required parameter 'redirectUri' is not null or undefined
869
- (0, common_1.assertParamExists)('oauth2Token', 'redirectUri', redirectUri);
870
- // verify required parameter 'clientId' is not null or undefined
871
- (0, common_1.assertParamExists)('oauth2Token', 'clientId', clientId);
872
- // verify required parameter 'clientSecret' is not null or undefined
873
- (0, common_1.assertParamExists)('oauth2Token', 'clientSecret', clientSecret);
874
- const localVarPath = `/oauth2/token`;
875
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
876
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
877
- let baseOptions;
878
- if (configuration) {
879
- baseOptions = configuration.baseOptions;
880
- }
881
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
882
- const localVarHeaderParameter = {};
883
- const localVarQueryParameter = {};
884
- const localVarFormParams = new URLSearchParams();
885
- if (grantType !== undefined) {
886
- localVarFormParams.set('grant_type', grantType);
887
- }
888
- if (code !== undefined) {
889
- localVarFormParams.set('code', code);
890
- }
891
- if (redirectUri !== undefined) {
892
- localVarFormParams.set('redirect_uri', redirectUri);
893
- }
894
- if (clientId !== undefined) {
895
- localVarFormParams.set('client_id', clientId);
896
- }
897
- if (clientSecret !== undefined) {
898
- localVarFormParams.set('client_secret', clientSecret);
899
- }
900
- localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
901
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
902
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
903
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
904
- localVarRequestOptions.data = localVarFormParams.toString();
905
- return {
906
- url: (0, common_1.toPathString)(localVarUrlObj),
907
- options: localVarRequestOptions,
908
- };
909
- }),
910
656
  /**
911
657
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
912
658
  * @param {string} credentialId
@@ -2029,108 +1775,6 @@ const DefaultApiFp = function (configuration) {
2029
1775
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2030
1776
  });
2031
1777
  },
2032
- /**
2033
- *
2034
- * @param {string} clientId
2035
- * @param {string} redirectUri
2036
- * @param {string} responseType
2037
- * @param {string} state
2038
- * @param {string} verifierState
2039
- * @param {string} [nonce]
2040
- * @param {*} [options] Override http request option.
2041
- * @throws {RequiredError}
2042
- */
2043
- oauth2Auth(clientId, redirectUri, responseType, state, verifierState, nonce, options) {
2044
- var _a, _b, _c;
2045
- return __awaiter(this, void 0, void 0, function* () {
2046
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Auth(clientId, redirectUri, responseType, state, verifierState, nonce, options);
2047
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2048
- 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;
2049
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2050
- });
2051
- },
2052
- /**
2053
- *
2054
- * @param {string} clientId
2055
- * @param {string} redirectUri
2056
- * @param {string} responseType
2057
- * @param {string} state
2058
- * @param {string} scope
2059
- * @param {string} [nonce]
2060
- * @param {*} [options] Override http request option.
2061
- * @throws {RequiredError}
2062
- */
2063
- oauth2AuthGet(clientId, redirectUri, responseType, state, scope, nonce, options) {
2064
- var _a, _b, _c;
2065
- return __awaiter(this, void 0, void 0, function* () {
2066
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2AuthGet(clientId, redirectUri, responseType, state, scope, nonce, options);
2067
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2068
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oauth2AuthGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2069
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2070
- });
2071
- },
2072
- /**
2073
- *
2074
- * @param {string} code
2075
- * @param {*} [options] Override http request option.
2076
- * @throws {RequiredError}
2077
- */
2078
- oauth2Callback(code, options) {
2079
- var _a, _b, _c;
2080
- return __awaiter(this, void 0, void 0, function* () {
2081
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Callback(code, options);
2082
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2083
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oauth2Callback']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2084
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2085
- });
2086
- },
2087
- /**
2088
- *
2089
- * @param {*} [options] Override http request option.
2090
- * @throws {RequiredError}
2091
- */
2092
- oauth2Keys(options) {
2093
- var _a, _b, _c;
2094
- return __awaiter(this, void 0, void 0, function* () {
2095
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Keys(options);
2096
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2097
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oauth2Keys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2098
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2099
- });
2100
- },
2101
- /**
2102
- *
2103
- * @param {*} [options] Override http request option.
2104
- * @throws {RequiredError}
2105
- */
2106
- oauth2Profile(options) {
2107
- var _a, _b, _c;
2108
- return __awaiter(this, void 0, void 0, function* () {
2109
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Profile(options);
2110
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2111
- 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;
2112
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2113
- });
2114
- },
2115
- /**
2116
- *
2117
- * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
2118
- * @param {string} code The authorization code received from the.
2119
- * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
2120
- * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
2121
- * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
2122
- * @param {*} [options] Override http request option.
2123
- * @throws {RequiredError}
2124
- */
2125
- oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options) {
2126
- var _a, _b, _c;
2127
- return __awaiter(this, void 0, void 0, function* () {
2128
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options);
2129
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2130
- 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;
2131
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2132
- });
2133
- },
2134
1778
  /**
2135
1779
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
2136
1780
  * @param {string} credentialId
@@ -2691,72 +2335,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2691
2335
  issuerCredentialTypesList(url, options) {
2692
2336
  return localVarFp.issuerCredentialTypesList(url, options).then((request) => request(axios, basePath));
2693
2337
  },
2694
- /**
2695
- *
2696
- * @param {string} clientId
2697
- * @param {string} redirectUri
2698
- * @param {string} responseType
2699
- * @param {string} state
2700
- * @param {string} verifierState
2701
- * @param {string} [nonce]
2702
- * @param {*} [options] Override http request option.
2703
- * @throws {RequiredError}
2704
- */
2705
- oauth2Auth(clientId, redirectUri, responseType, state, verifierState, nonce, options) {
2706
- return localVarFp.oauth2Auth(clientId, redirectUri, responseType, state, verifierState, nonce, options).then((request) => request(axios, basePath));
2707
- },
2708
- /**
2709
- *
2710
- * @param {string} clientId
2711
- * @param {string} redirectUri
2712
- * @param {string} responseType
2713
- * @param {string} state
2714
- * @param {string} scope
2715
- * @param {string} [nonce]
2716
- * @param {*} [options] Override http request option.
2717
- * @throws {RequiredError}
2718
- */
2719
- oauth2AuthGet(clientId, redirectUri, responseType, state, scope, nonce, options) {
2720
- return localVarFp.oauth2AuthGet(clientId, redirectUri, responseType, state, scope, nonce, options).then((request) => request(axios, basePath));
2721
- },
2722
- /**
2723
- *
2724
- * @param {string} code
2725
- * @param {*} [options] Override http request option.
2726
- * @throws {RequiredError}
2727
- */
2728
- oauth2Callback(code, options) {
2729
- return localVarFp.oauth2Callback(code, options).then((request) => request(axios, basePath));
2730
- },
2731
- /**
2732
- *
2733
- * @param {*} [options] Override http request option.
2734
- * @throws {RequiredError}
2735
- */
2736
- oauth2Keys(options) {
2737
- return localVarFp.oauth2Keys(options).then((request) => request(axios, basePath));
2738
- },
2739
- /**
2740
- *
2741
- * @param {*} [options] Override http request option.
2742
- * @throws {RequiredError}
2743
- */
2744
- oauth2Profile(options) {
2745
- return localVarFp.oauth2Profile(options).then((request) => request(axios, basePath));
2746
- },
2747
- /**
2748
- *
2749
- * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
2750
- * @param {string} code The authorization code received from the.
2751
- * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
2752
- * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
2753
- * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
2754
- * @param {*} [options] Override http request option.
2755
- * @throws {RequiredError}
2756
- */
2757
- oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options) {
2758
- return localVarFp.oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options).then((request) => request(axios, basePath));
2759
- },
2760
2338
  /**
2761
2339
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
2762
2340
  * @param {string} credentialId
@@ -3182,78 +2760,6 @@ class DefaultApi extends base_1.BaseAPI {
3182
2760
  issuerCredentialTypesList(url, options) {
3183
2761
  return (0, exports.DefaultApiFp)(this.configuration).issuerCredentialTypesList(url, options).then((request) => request(this.axios, this.basePath));
3184
2762
  }
3185
- /**
3186
- *
3187
- * @param {string} clientId
3188
- * @param {string} redirectUri
3189
- * @param {string} responseType
3190
- * @param {string} state
3191
- * @param {string} verifierState
3192
- * @param {string} [nonce]
3193
- * @param {*} [options] Override http request option.
3194
- * @throws {RequiredError}
3195
- * @memberof DefaultApi
3196
- */
3197
- oauth2Auth(clientId, redirectUri, responseType, state, verifierState, nonce, options) {
3198
- return (0, exports.DefaultApiFp)(this.configuration).oauth2Auth(clientId, redirectUri, responseType, state, verifierState, nonce, options).then((request) => request(this.axios, this.basePath));
3199
- }
3200
- /**
3201
- *
3202
- * @param {string} clientId
3203
- * @param {string} redirectUri
3204
- * @param {string} responseType
3205
- * @param {string} state
3206
- * @param {string} scope
3207
- * @param {string} [nonce]
3208
- * @param {*} [options] Override http request option.
3209
- * @throws {RequiredError}
3210
- * @memberof DefaultApi
3211
- */
3212
- oauth2AuthGet(clientId, redirectUri, responseType, state, scope, nonce, options) {
3213
- return (0, exports.DefaultApiFp)(this.configuration).oauth2AuthGet(clientId, redirectUri, responseType, state, scope, nonce, options).then((request) => request(this.axios, this.basePath));
3214
- }
3215
- /**
3216
- *
3217
- * @param {string} code
3218
- * @param {*} [options] Override http request option.
3219
- * @throws {RequiredError}
3220
- * @memberof DefaultApi
3221
- */
3222
- oauth2Callback(code, options) {
3223
- return (0, exports.DefaultApiFp)(this.configuration).oauth2Callback(code, options).then((request) => request(this.axios, this.basePath));
3224
- }
3225
- /**
3226
- *
3227
- * @param {*} [options] Override http request option.
3228
- * @throws {RequiredError}
3229
- * @memberof DefaultApi
3230
- */
3231
- oauth2Keys(options) {
3232
- return (0, exports.DefaultApiFp)(this.configuration).oauth2Keys(options).then((request) => request(this.axios, this.basePath));
3233
- }
3234
- /**
3235
- *
3236
- * @param {*} [options] Override http request option.
3237
- * @throws {RequiredError}
3238
- * @memberof DefaultApi
3239
- */
3240
- oauth2Profile(options) {
3241
- return (0, exports.DefaultApiFp)(this.configuration).oauth2Profile(options).then((request) => request(this.axios, this.basePath));
3242
- }
3243
- /**
3244
- *
3245
- * @param {string} grantType Value MUST be set to \\\&quot;authorization_code\\\&quot;.
3246
- * @param {string} code The authorization code received from the.
3247
- * @param {string} redirectUri REQUIRED, if the \\\&quot;redirect_uri\\\&quot; parameter was included in the authorization request.
3248
- * @param {string} clientId REQUIRED, if the client is not authenticating with the authorization server.
3249
- * @param {string} clientSecret REQUIRED, if the client is not authenticating with the authorization server.
3250
- * @param {*} [options] Override http request option.
3251
- * @throws {RequiredError}
3252
- * @memberof DefaultApi
3253
- */
3254
- oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options) {
3255
- return (0, exports.DefaultApiFp)(this.configuration).oauth2Token(grantType, code, redirectUri, clientId, clientSecret, options).then((request) => request(this.axios, this.basePath));
3256
- }
3257
2763
  /**
3258
2764
  * Adds created Verifiable Credential draft to issuance queue for a specified client using authorized in-time or deferred flow.
3259
2765
  * @param {string} credentialId
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.157",
4
+ "version": "0.0.159",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {