@triveria/wallet 0.0.189 → 0.0.191
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 +28 -45
- package/api.js +34 -100
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -902,6 +902,12 @@ export interface InitAuthOffer {
|
|
|
902
902
|
* @memberof InitAuthOffer
|
|
903
903
|
*/
|
|
904
904
|
'offerEndpoint'?: string;
|
|
905
|
+
/**
|
|
906
|
+
*
|
|
907
|
+
* @type {boolean}
|
|
908
|
+
* @memberof InitAuthOffer
|
|
909
|
+
*/
|
|
910
|
+
'deferred'?: boolean;
|
|
905
911
|
}
|
|
906
912
|
/**
|
|
907
913
|
* Request for pre-authorized issuance process start. Consists of client id or id token request id, credential offer endpoint(most commonly only schema) and id\'s of credentials to be issued to client. Either clientId or idTokenRequestId MUST be present in the request.
|
|
@@ -939,6 +945,12 @@ export interface InitPreAuthOffer {
|
|
|
939
945
|
* @memberof InitPreAuthOffer
|
|
940
946
|
*/
|
|
941
947
|
'offerEndpoint'?: string;
|
|
948
|
+
/**
|
|
949
|
+
*
|
|
950
|
+
* @type {boolean}
|
|
951
|
+
* @memberof InitPreAuthOffer
|
|
952
|
+
*/
|
|
953
|
+
'deferred'?: boolean;
|
|
942
954
|
}
|
|
943
955
|
/**
|
|
944
956
|
*
|
|
@@ -1984,6 +1996,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1984
1996
|
* Retrieves a list of credentials.
|
|
1985
1997
|
* @param {string} walletId
|
|
1986
1998
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
1999
|
+
* @param {boolean} [valid] The credential validity flag. If not provided credentials with any validity will be returned.
|
|
1987
2000
|
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
1988
2001
|
* @param {number} [limit] The number of items
|
|
1989
2002
|
* @param {string} [nextMarker] Marking the next set of items
|
|
@@ -1993,7 +2006,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1993
2006
|
* @param {*} [options] Override http request option.
|
|
1994
2007
|
* @throws {RequiredError}
|
|
1995
2008
|
*/
|
|
1996
|
-
credentialList: (walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, nextMarker?: string, sort?: ListSort, path?: string, filter?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2009
|
+
credentialList: (walletId: string, interaction: CredentialListInteractionEnum, valid?: boolean, type?: string, limit?: number, nextMarker?: string, sort?: ListSort, path?: string, filter?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1997
2010
|
/**
|
|
1998
2011
|
* Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
|
|
1999
2012
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -2113,14 +2126,6 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2113
2126
|
* @throws {RequiredError}
|
|
2114
2127
|
*/
|
|
2115
2128
|
issuerCredentialTypesList: (url: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2116
|
-
/**
|
|
2117
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
2118
|
-
* @param {string} walletId
|
|
2119
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
2120
|
-
* @param {*} [options] Override http request option.
|
|
2121
|
-
* @throws {RequiredError}
|
|
2122
|
-
*/
|
|
2123
|
-
issuerInitiateDeferred: (walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2124
2129
|
/**
|
|
2125
2130
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
2126
2131
|
* @param {string} walletId
|
|
@@ -2128,7 +2133,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2128
2133
|
* @param {*} [options] Override http request option.
|
|
2129
2134
|
* @throws {RequiredError}
|
|
2130
2135
|
*/
|
|
2131
|
-
|
|
2136
|
+
issuerInitiateAuthOffer: (walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2132
2137
|
/**
|
|
2133
2138
|
* Initiates issuing of Verifiable Credentials using pre-authorized flow.
|
|
2134
2139
|
* @param {string} walletId
|
|
@@ -2136,7 +2141,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2136
2141
|
* @param {*} [options] Override http request option.
|
|
2137
2142
|
* @throws {RequiredError}
|
|
2138
2143
|
*/
|
|
2139
|
-
|
|
2144
|
+
issuerInitiatePreauthOffer: (walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2140
2145
|
/**
|
|
2141
2146
|
* Accredits a legal entity as RTAO or TAO.
|
|
2142
2147
|
* @param {string} walletId
|
|
@@ -2317,6 +2322,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2317
2322
|
* Retrieves a list of credentials.
|
|
2318
2323
|
* @param {string} walletId
|
|
2319
2324
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
2325
|
+
* @param {boolean} [valid] The credential validity flag. If not provided credentials with any validity will be returned.
|
|
2320
2326
|
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
2321
2327
|
* @param {number} [limit] The number of items
|
|
2322
2328
|
* @param {string} [nextMarker] Marking the next set of items
|
|
@@ -2326,7 +2332,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2326
2332
|
* @param {*} [options] Override http request option.
|
|
2327
2333
|
* @throws {RequiredError}
|
|
2328
2334
|
*/
|
|
2329
|
-
credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, nextMarker?: string, sort?: ListSort, path?: string, filter?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialList>>;
|
|
2335
|
+
credentialList(walletId: string, interaction: CredentialListInteractionEnum, valid?: boolean, type?: string, limit?: number, nextMarker?: string, sort?: ListSort, path?: string, filter?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialList>>;
|
|
2330
2336
|
/**
|
|
2331
2337
|
* Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
|
|
2332
2338
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -2446,14 +2452,6 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2446
2452
|
* @throws {RequiredError}
|
|
2447
2453
|
*/
|
|
2448
2454
|
issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CredentialType>>>;
|
|
2449
|
-
/**
|
|
2450
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
2451
|
-
* @param {string} walletId
|
|
2452
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
2453
|
-
* @param {*} [options] Override http request option.
|
|
2454
|
-
* @throws {RequiredError}
|
|
2455
|
-
*/
|
|
2456
|
-
issuerInitiateDeferred(walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthOffer>>;
|
|
2457
2455
|
/**
|
|
2458
2456
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
2459
2457
|
* @param {string} walletId
|
|
@@ -2461,7 +2459,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2461
2459
|
* @param {*} [options] Override http request option.
|
|
2462
2460
|
* @throws {RequiredError}
|
|
2463
2461
|
*/
|
|
2464
|
-
|
|
2462
|
+
issuerInitiateAuthOffer(walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthOffer>>;
|
|
2465
2463
|
/**
|
|
2466
2464
|
* Initiates issuing of Verifiable Credentials using pre-authorized flow.
|
|
2467
2465
|
* @param {string} walletId
|
|
@@ -2469,7 +2467,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2469
2467
|
* @param {*} [options] Override http request option.
|
|
2470
2468
|
* @throws {RequiredError}
|
|
2471
2469
|
*/
|
|
2472
|
-
|
|
2470
|
+
issuerInitiatePreauthOffer(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreAuthOffer>>;
|
|
2473
2471
|
/**
|
|
2474
2472
|
* Accredits a legal entity as RTAO or TAO.
|
|
2475
2473
|
* @param {string} walletId
|
|
@@ -2650,6 +2648,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2650
2648
|
* Retrieves a list of credentials.
|
|
2651
2649
|
* @param {string} walletId
|
|
2652
2650
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
2651
|
+
* @param {boolean} [valid] The credential validity flag. If not provided credentials with any validity will be returned.
|
|
2653
2652
|
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
2654
2653
|
* @param {number} [limit] The number of items
|
|
2655
2654
|
* @param {string} [nextMarker] Marking the next set of items
|
|
@@ -2659,7 +2658,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2659
2658
|
* @param {*} [options] Override http request option.
|
|
2660
2659
|
* @throws {RequiredError}
|
|
2661
2660
|
*/
|
|
2662
|
-
credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, nextMarker?: string, sort?: ListSort, path?: string, filter?: string, options?: RawAxiosRequestConfig): AxiosPromise<CredentialList>;
|
|
2661
|
+
credentialList(walletId: string, interaction: CredentialListInteractionEnum, valid?: boolean, type?: string, limit?: number, nextMarker?: string, sort?: ListSort, path?: string, filter?: string, options?: RawAxiosRequestConfig): AxiosPromise<CredentialList>;
|
|
2663
2662
|
/**
|
|
2664
2663
|
* Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
|
|
2665
2664
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -2779,14 +2778,6 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2779
2778
|
* @throws {RequiredError}
|
|
2780
2779
|
*/
|
|
2781
2780
|
issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CredentialType>>;
|
|
2782
|
-
/**
|
|
2783
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
2784
|
-
* @param {string} walletId
|
|
2785
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
2786
|
-
* @param {*} [options] Override http request option.
|
|
2787
|
-
* @throws {RequiredError}
|
|
2788
|
-
*/
|
|
2789
|
-
issuerInitiateDeferred(walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): AxiosPromise<AuthOffer>;
|
|
2790
2781
|
/**
|
|
2791
2782
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
2792
2783
|
* @param {string} walletId
|
|
@@ -2794,7 +2785,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2794
2785
|
* @param {*} [options] Override http request option.
|
|
2795
2786
|
* @throws {RequiredError}
|
|
2796
2787
|
*/
|
|
2797
|
-
|
|
2788
|
+
issuerInitiateAuthOffer(walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): AxiosPromise<AuthOffer>;
|
|
2798
2789
|
/**
|
|
2799
2790
|
* Initiates issuing of Verifiable Credentials using pre-authorized flow.
|
|
2800
2791
|
* @param {string} walletId
|
|
@@ -2802,7 +2793,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2802
2793
|
* @param {*} [options] Override http request option.
|
|
2803
2794
|
* @throws {RequiredError}
|
|
2804
2795
|
*/
|
|
2805
|
-
|
|
2796
|
+
issuerInitiatePreauthOffer(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): AxiosPromise<PreAuthOffer>;
|
|
2806
2797
|
/**
|
|
2807
2798
|
* Accredits a legal entity as RTAO or TAO.
|
|
2808
2799
|
* @param {string} walletId
|
|
@@ -2989,6 +2980,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2989
2980
|
* Retrieves a list of credentials.
|
|
2990
2981
|
* @param {string} walletId
|
|
2991
2982
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
2983
|
+
* @param {boolean} [valid] The credential validity flag. If not provided credentials with any validity will be returned.
|
|
2992
2984
|
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
2993
2985
|
* @param {number} [limit] The number of items
|
|
2994
2986
|
* @param {string} [nextMarker] Marking the next set of items
|
|
@@ -2999,7 +2991,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2999
2991
|
* @throws {RequiredError}
|
|
3000
2992
|
* @memberof DefaultApi
|
|
3001
2993
|
*/
|
|
3002
|
-
credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, nextMarker?: string, sort?: ListSort, path?: string, filter?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialList, any>>;
|
|
2994
|
+
credentialList(walletId: string, interaction: CredentialListInteractionEnum, valid?: boolean, type?: string, limit?: number, nextMarker?: string, sort?: ListSort, path?: string, filter?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialList, any>>;
|
|
3003
2995
|
/**
|
|
3004
2996
|
* Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
|
|
3005
2997
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -3134,15 +3126,6 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3134
3126
|
* @memberof DefaultApi
|
|
3135
3127
|
*/
|
|
3136
3128
|
issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialType[], any>>;
|
|
3137
|
-
/**
|
|
3138
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
3139
|
-
* @param {string} walletId
|
|
3140
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
3141
|
-
* @param {*} [options] Override http request option.
|
|
3142
|
-
* @throws {RequiredError}
|
|
3143
|
-
* @memberof DefaultApi
|
|
3144
|
-
*/
|
|
3145
|
-
issuerInitiateDeferred(walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthOffer, any>>;
|
|
3146
3129
|
/**
|
|
3147
3130
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
3148
3131
|
* @param {string} walletId
|
|
@@ -3151,7 +3134,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3151
3134
|
* @throws {RequiredError}
|
|
3152
3135
|
* @memberof DefaultApi
|
|
3153
3136
|
*/
|
|
3154
|
-
|
|
3137
|
+
issuerInitiateAuthOffer(walletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthOffer, any>>;
|
|
3155
3138
|
/**
|
|
3156
3139
|
* Initiates issuing of Verifiable Credentials using pre-authorized flow.
|
|
3157
3140
|
* @param {string} walletId
|
|
@@ -3160,7 +3143,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3160
3143
|
* @throws {RequiredError}
|
|
3161
3144
|
* @memberof DefaultApi
|
|
3162
3145
|
*/
|
|
3163
|
-
|
|
3146
|
+
issuerInitiatePreauthOffer(walletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PreAuthOffer, any>>;
|
|
3164
3147
|
/**
|
|
3165
3148
|
* Accredits a legal entity as RTAO or TAO.
|
|
3166
3149
|
* @param {string} walletId
|
package/api.js
CHANGED
|
@@ -287,6 +287,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
287
287
|
* Retrieves a list of credentials.
|
|
288
288
|
* @param {string} walletId
|
|
289
289
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
290
|
+
* @param {boolean} [valid] The credential validity flag. If not provided credentials with any validity will be returned.
|
|
290
291
|
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
291
292
|
* @param {number} [limit] The number of items
|
|
292
293
|
* @param {string} [nextMarker] Marking the next set of items
|
|
@@ -296,7 +297,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
296
297
|
* @param {*} [options] Override http request option.
|
|
297
298
|
* @throws {RequiredError}
|
|
298
299
|
*/
|
|
299
|
-
credentialList: (walletId, interaction, type, limit, nextMarker, sort, path, filter, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
300
|
+
credentialList: (walletId, interaction, valid, type, limit, nextMarker, sort, path, filter, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
300
301
|
// verify required parameter 'walletId' is not null or undefined
|
|
301
302
|
(0, common_1.assertParamExists)('credentialList', 'walletId', walletId);
|
|
302
303
|
// verify required parameter 'interaction' is not null or undefined
|
|
@@ -317,6 +318,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
317
318
|
if (interaction !== undefined) {
|
|
318
319
|
localVarQueryParameter['interaction'] = interaction;
|
|
319
320
|
}
|
|
321
|
+
if (valid !== undefined) {
|
|
322
|
+
localVarQueryParameter['valid'] = valid;
|
|
323
|
+
}
|
|
320
324
|
if (type !== undefined) {
|
|
321
325
|
localVarQueryParameter['type'] = type;
|
|
322
326
|
}
|
|
@@ -868,42 +872,6 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
868
872
|
options: localVarRequestOptions,
|
|
869
873
|
};
|
|
870
874
|
}),
|
|
871
|
-
/**
|
|
872
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
873
|
-
* @param {string} walletId
|
|
874
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
875
|
-
* @param {*} [options] Override http request option.
|
|
876
|
-
* @throws {RequiredError}
|
|
877
|
-
*/
|
|
878
|
-
issuerInitiateDeferred: (walletId, initAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
879
|
-
// verify required parameter 'walletId' is not null or undefined
|
|
880
|
-
(0, common_1.assertParamExists)('issuerInitiateDeferred', 'walletId', walletId);
|
|
881
|
-
const localVarPath = `/issuer/initiate/deferred`;
|
|
882
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
883
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
884
|
-
let baseOptions;
|
|
885
|
-
if (configuration) {
|
|
886
|
-
baseOptions = configuration.baseOptions;
|
|
887
|
-
}
|
|
888
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
889
|
-
const localVarHeaderParameter = {};
|
|
890
|
-
const localVarQueryParameter = {};
|
|
891
|
-
// authentication accessToken required
|
|
892
|
-
// http bearer authentication required
|
|
893
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
894
|
-
if (walletId != null) {
|
|
895
|
-
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
896
|
-
}
|
|
897
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
898
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
899
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
900
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
901
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initAuthOffer, localVarRequestOptions, configuration);
|
|
902
|
-
return {
|
|
903
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
904
|
-
options: localVarRequestOptions,
|
|
905
|
-
};
|
|
906
|
-
}),
|
|
907
875
|
/**
|
|
908
876
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
909
877
|
* @param {string} walletId
|
|
@@ -911,10 +879,10 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
911
879
|
* @param {*} [options] Override http request option.
|
|
912
880
|
* @throws {RequiredError}
|
|
913
881
|
*/
|
|
914
|
-
|
|
882
|
+
issuerInitiateAuthOffer: (walletId, initAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
915
883
|
// verify required parameter 'walletId' is not null or undefined
|
|
916
|
-
(0, common_1.assertParamExists)('
|
|
917
|
-
const localVarPath = `/issuer/
|
|
884
|
+
(0, common_1.assertParamExists)('issuerInitiateAuthOffer', 'walletId', walletId);
|
|
885
|
+
const localVarPath = `/issuer/offer/auth`;
|
|
918
886
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
919
887
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
920
888
|
let baseOptions;
|
|
@@ -947,10 +915,10 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
947
915
|
* @param {*} [options] Override http request option.
|
|
948
916
|
* @throws {RequiredError}
|
|
949
917
|
*/
|
|
950
|
-
|
|
918
|
+
issuerInitiatePreauthOffer: (walletId, initPreAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
951
919
|
// verify required parameter 'walletId' is not null or undefined
|
|
952
|
-
(0, common_1.assertParamExists)('
|
|
953
|
-
const localVarPath = `/issuer/
|
|
920
|
+
(0, common_1.assertParamExists)('issuerInitiatePreauthOffer', 'walletId', walletId);
|
|
921
|
+
const localVarPath = `/issuer/offer/preauth`;
|
|
954
922
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
955
923
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
956
924
|
let baseOptions;
|
|
@@ -1653,6 +1621,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
1653
1621
|
* Retrieves a list of credentials.
|
|
1654
1622
|
* @param {string} walletId
|
|
1655
1623
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
1624
|
+
* @param {boolean} [valid] The credential validity flag. If not provided credentials with any validity will be returned.
|
|
1656
1625
|
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
1657
1626
|
* @param {number} [limit] The number of items
|
|
1658
1627
|
* @param {string} [nextMarker] Marking the next set of items
|
|
@@ -1662,10 +1631,10 @@ const DefaultApiFp = function (configuration) {
|
|
|
1662
1631
|
* @param {*} [options] Override http request option.
|
|
1663
1632
|
* @throws {RequiredError}
|
|
1664
1633
|
*/
|
|
1665
|
-
credentialList(walletId, interaction, type, limit, nextMarker, sort, path, filter, options) {
|
|
1634
|
+
credentialList(walletId, interaction, valid, type, limit, nextMarker, sort, path, filter, options) {
|
|
1666
1635
|
var _a, _b, _c;
|
|
1667
1636
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1668
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(walletId, interaction, type, limit, nextMarker, sort, path, filter, options);
|
|
1637
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(walletId, interaction, valid, type, limit, nextMarker, sort, path, filter, options);
|
|
1669
1638
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1670
1639
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1671
1640
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1910,22 +1879,6 @@ const DefaultApiFp = function (configuration) {
|
|
|
1910
1879
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1911
1880
|
});
|
|
1912
1881
|
},
|
|
1913
|
-
/**
|
|
1914
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
1915
|
-
* @param {string} walletId
|
|
1916
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
1917
|
-
* @param {*} [options] Override http request option.
|
|
1918
|
-
* @throws {RequiredError}
|
|
1919
|
-
*/
|
|
1920
|
-
issuerInitiateDeferred(walletId, initAuthOffer, options) {
|
|
1921
|
-
var _a, _b, _c;
|
|
1922
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1923
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.issuerInitiateDeferred(walletId, initAuthOffer, options);
|
|
1924
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1925
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.issuerInitiateDeferred']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1926
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1927
|
-
});
|
|
1928
|
-
},
|
|
1929
1882
|
/**
|
|
1930
1883
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
1931
1884
|
* @param {string} walletId
|
|
@@ -1933,12 +1886,12 @@ const DefaultApiFp = function (configuration) {
|
|
|
1933
1886
|
* @param {*} [options] Override http request option.
|
|
1934
1887
|
* @throws {RequiredError}
|
|
1935
1888
|
*/
|
|
1936
|
-
|
|
1889
|
+
issuerInitiateAuthOffer(walletId, initAuthOffer, options) {
|
|
1937
1890
|
var _a, _b, _c;
|
|
1938
1891
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1939
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1892
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.issuerInitiateAuthOffer(walletId, initAuthOffer, options);
|
|
1940
1893
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1941
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
1894
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.issuerInitiateAuthOffer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1942
1895
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1943
1896
|
});
|
|
1944
1897
|
},
|
|
@@ -1949,12 +1902,12 @@ const DefaultApiFp = function (configuration) {
|
|
|
1949
1902
|
* @param {*} [options] Override http request option.
|
|
1950
1903
|
* @throws {RequiredError}
|
|
1951
1904
|
*/
|
|
1952
|
-
|
|
1905
|
+
issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options) {
|
|
1953
1906
|
var _a, _b, _c;
|
|
1954
1907
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1955
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1908
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options);
|
|
1956
1909
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1957
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
1910
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.issuerInitiatePreauthOffer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1958
1911
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1959
1912
|
});
|
|
1960
1913
|
},
|
|
@@ -2294,6 +2247,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2294
2247
|
* Retrieves a list of credentials.
|
|
2295
2248
|
* @param {string} walletId
|
|
2296
2249
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
2250
|
+
* @param {boolean} [valid] The credential validity flag. If not provided credentials with any validity will be returned.
|
|
2297
2251
|
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
2298
2252
|
* @param {number} [limit] The number of items
|
|
2299
2253
|
* @param {string} [nextMarker] Marking the next set of items
|
|
@@ -2303,8 +2257,8 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2303
2257
|
* @param {*} [options] Override http request option.
|
|
2304
2258
|
* @throws {RequiredError}
|
|
2305
2259
|
*/
|
|
2306
|
-
credentialList(walletId, interaction, type, limit, nextMarker, sort, path, filter, options) {
|
|
2307
|
-
return localVarFp.credentialList(walletId, interaction, type, limit, nextMarker, sort, path, filter, options).then((request) => request(axios, basePath));
|
|
2260
|
+
credentialList(walletId, interaction, valid, type, limit, nextMarker, sort, path, filter, options) {
|
|
2261
|
+
return localVarFp.credentialList(walletId, interaction, valid, type, limit, nextMarker, sort, path, filter, options).then((request) => request(axios, basePath));
|
|
2308
2262
|
},
|
|
2309
2263
|
/**
|
|
2310
2264
|
* Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
|
|
@@ -2455,16 +2409,6 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2455
2409
|
issuerCredentialTypesList(url, options) {
|
|
2456
2410
|
return localVarFp.issuerCredentialTypesList(url, options).then((request) => request(axios, basePath));
|
|
2457
2411
|
},
|
|
2458
|
-
/**
|
|
2459
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
2460
|
-
* @param {string} walletId
|
|
2461
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
2462
|
-
* @param {*} [options] Override http request option.
|
|
2463
|
-
* @throws {RequiredError}
|
|
2464
|
-
*/
|
|
2465
|
-
issuerInitiateDeferred(walletId, initAuthOffer, options) {
|
|
2466
|
-
return localVarFp.issuerInitiateDeferred(walletId, initAuthOffer, options).then((request) => request(axios, basePath));
|
|
2467
|
-
},
|
|
2468
2412
|
/**
|
|
2469
2413
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
2470
2414
|
* @param {string} walletId
|
|
@@ -2472,8 +2416,8 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2472
2416
|
* @param {*} [options] Override http request option.
|
|
2473
2417
|
* @throws {RequiredError}
|
|
2474
2418
|
*/
|
|
2475
|
-
|
|
2476
|
-
return localVarFp.
|
|
2419
|
+
issuerInitiateAuthOffer(walletId, initAuthOffer, options) {
|
|
2420
|
+
return localVarFp.issuerInitiateAuthOffer(walletId, initAuthOffer, options).then((request) => request(axios, basePath));
|
|
2477
2421
|
},
|
|
2478
2422
|
/**
|
|
2479
2423
|
* Initiates issuing of Verifiable Credentials using pre-authorized flow.
|
|
@@ -2482,8 +2426,8 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2482
2426
|
* @param {*} [options] Override http request option.
|
|
2483
2427
|
* @throws {RequiredError}
|
|
2484
2428
|
*/
|
|
2485
|
-
|
|
2486
|
-
return localVarFp.
|
|
2429
|
+
issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options) {
|
|
2430
|
+
return localVarFp.issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options).then((request) => request(axios, basePath));
|
|
2487
2431
|
},
|
|
2488
2432
|
/**
|
|
2489
2433
|
* Accredits a legal entity as RTAO or TAO.
|
|
@@ -2717,6 +2661,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2717
2661
|
* Retrieves a list of credentials.
|
|
2718
2662
|
* @param {string} walletId
|
|
2719
2663
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
2664
|
+
* @param {boolean} [valid] The credential validity flag. If not provided credentials with any validity will be returned.
|
|
2720
2665
|
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
2721
2666
|
* @param {number} [limit] The number of items
|
|
2722
2667
|
* @param {string} [nextMarker] Marking the next set of items
|
|
@@ -2727,8 +2672,8 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2727
2672
|
* @throws {RequiredError}
|
|
2728
2673
|
* @memberof DefaultApi
|
|
2729
2674
|
*/
|
|
2730
|
-
credentialList(walletId, interaction, type, limit, nextMarker, sort, path, filter, options) {
|
|
2731
|
-
return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, interaction, type, limit, nextMarker, sort, path, filter, options).then((request) => request(this.axios, this.basePath));
|
|
2675
|
+
credentialList(walletId, interaction, valid, type, limit, nextMarker, sort, path, filter, options) {
|
|
2676
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, interaction, valid, type, limit, nextMarker, sort, path, filter, options).then((request) => request(this.axios, this.basePath));
|
|
2732
2677
|
}
|
|
2733
2678
|
/**
|
|
2734
2679
|
* Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
|
|
@@ -2894,17 +2839,6 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2894
2839
|
issuerCredentialTypesList(url, options) {
|
|
2895
2840
|
return (0, exports.DefaultApiFp)(this.configuration).issuerCredentialTypesList(url, options).then((request) => request(this.axios, this.basePath));
|
|
2896
2841
|
}
|
|
2897
|
-
/**
|
|
2898
|
-
* Initiates issuing of Verifiable Credentials using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
2899
|
-
* @param {string} walletId
|
|
2900
|
-
* @param {InitAuthOffer} [initAuthOffer]
|
|
2901
|
-
* @param {*} [options] Override http request option.
|
|
2902
|
-
* @throws {RequiredError}
|
|
2903
|
-
* @memberof DefaultApi
|
|
2904
|
-
*/
|
|
2905
|
-
issuerInitiateDeferred(walletId, initAuthOffer, options) {
|
|
2906
|
-
return (0, exports.DefaultApiFp)(this.configuration).issuerInitiateDeferred(walletId, initAuthOffer, options).then((request) => request(this.axios, this.basePath));
|
|
2907
|
-
}
|
|
2908
2842
|
/**
|
|
2909
2843
|
* Initiates issuing of Verifiable Credentials using authorized flow.
|
|
2910
2844
|
* @param {string} walletId
|
|
@@ -2913,8 +2847,8 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2913
2847
|
* @throws {RequiredError}
|
|
2914
2848
|
* @memberof DefaultApi
|
|
2915
2849
|
*/
|
|
2916
|
-
|
|
2917
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
2850
|
+
issuerInitiateAuthOffer(walletId, initAuthOffer, options) {
|
|
2851
|
+
return (0, exports.DefaultApiFp)(this.configuration).issuerInitiateAuthOffer(walletId, initAuthOffer, options).then((request) => request(this.axios, this.basePath));
|
|
2918
2852
|
}
|
|
2919
2853
|
/**
|
|
2920
2854
|
* Initiates issuing of Verifiable Credentials using pre-authorized flow.
|
|
@@ -2924,8 +2858,8 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2924
2858
|
* @throws {RequiredError}
|
|
2925
2859
|
* @memberof DefaultApi
|
|
2926
2860
|
*/
|
|
2927
|
-
|
|
2928
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
2861
|
+
issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options) {
|
|
2862
|
+
return (0, exports.DefaultApiFp)(this.configuration).issuerInitiatePreauthOffer(walletId, initPreAuthOffer, options).then((request) => request(this.axios, this.basePath));
|
|
2929
2863
|
}
|
|
2930
2864
|
/**
|
|
2931
2865
|
* Accredits a legal entity as RTAO or TAO.
|