@triveria/wallet 0.0.100 → 0.0.101
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 +99 -37
- package/api.js +123 -39
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -256,12 +256,6 @@ export interface CredentialList {
|
|
|
256
256
|
* @memberof CredentialList
|
|
257
257
|
*/
|
|
258
258
|
'next': string;
|
|
259
|
-
/**
|
|
260
|
-
*
|
|
261
|
-
* @type {string}
|
|
262
|
-
* @memberof CredentialList
|
|
263
|
-
*/
|
|
264
|
-
'previous': string;
|
|
265
259
|
}
|
|
266
260
|
/**
|
|
267
261
|
* Any Credential related accompanying key, value pairs that are not part of the Issued Credential
|
|
@@ -1263,7 +1257,13 @@ export interface Wallet {
|
|
|
1263
1257
|
* @type {string}
|
|
1264
1258
|
* @memberof Wallet
|
|
1265
1259
|
*/
|
|
1266
|
-
'role'?:
|
|
1260
|
+
'role'?: WalletRoleEnum;
|
|
1261
|
+
/**
|
|
1262
|
+
*
|
|
1263
|
+
* @type {string}
|
|
1264
|
+
* @memberof Wallet
|
|
1265
|
+
*/
|
|
1266
|
+
'did'?: string;
|
|
1267
1267
|
/**
|
|
1268
1268
|
* Wallet metadata is a key value container for any custom data a client may want
|
|
1269
1269
|
* @type {{ [key: string]: any; }}
|
|
@@ -1279,6 +1279,12 @@ export interface Wallet {
|
|
|
1279
1279
|
*/
|
|
1280
1280
|
'config': WalletConfig;
|
|
1281
1281
|
}
|
|
1282
|
+
export declare const WalletRoleEnum: {
|
|
1283
|
+
readonly Holder: "holder";
|
|
1284
|
+
readonly Verifier: "verifier";
|
|
1285
|
+
readonly Issuer: "issuer";
|
|
1286
|
+
};
|
|
1287
|
+
export type WalletRoleEnum = typeof WalletRoleEnum[keyof typeof WalletRoleEnum];
|
|
1282
1288
|
/**
|
|
1283
1289
|
* Wallet specific configuration.
|
|
1284
1290
|
* @export
|
|
@@ -1373,6 +1379,25 @@ export type WalletNotificationEventTypeEnum = typeof WalletNotificationEventType
|
|
|
1373
1379
|
* @export
|
|
1374
1380
|
*/
|
|
1375
1381
|
export type WalletNotificationEventDetails = IdTokenReceivedNotification | OfferReceivedNotification | VpVerifiedNotification;
|
|
1382
|
+
/**
|
|
1383
|
+
*
|
|
1384
|
+
* @export
|
|
1385
|
+
* @interface WalletNotificationListPermanent
|
|
1386
|
+
*/
|
|
1387
|
+
export interface WalletNotificationListPermanent {
|
|
1388
|
+
/**
|
|
1389
|
+
*
|
|
1390
|
+
* @type {Array<WalletNotification>}
|
|
1391
|
+
* @memberof WalletNotificationListPermanent
|
|
1392
|
+
*/
|
|
1393
|
+
'list': Array<WalletNotification>;
|
|
1394
|
+
/**
|
|
1395
|
+
*
|
|
1396
|
+
* @type {string}
|
|
1397
|
+
* @memberof WalletNotificationListPermanent
|
|
1398
|
+
*/
|
|
1399
|
+
'next': string;
|
|
1400
|
+
}
|
|
1376
1401
|
/**
|
|
1377
1402
|
* DefaultApi - axios parameter creator
|
|
1378
1403
|
* @export
|
|
@@ -1421,15 +1446,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1421
1446
|
* Retrieves a list of credentials.
|
|
1422
1447
|
* @param {string} walletId
|
|
1423
1448
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
1424
|
-
* @param {string} [type] The credential type.
|
|
1449
|
+
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
1425
1450
|
* @param {number} [limit] The number of items
|
|
1426
|
-
* @param {
|
|
1427
|
-
* @param {
|
|
1428
|
-
* @param {CredentialListSortFieldEnum} [sortField] The sorting field.
|
|
1451
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
1452
|
+
* @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
|
|
1429
1453
|
* @param {*} [options] Override http request option.
|
|
1430
1454
|
* @throws {RequiredError}
|
|
1431
1455
|
*/
|
|
1432
|
-
credentialList: (walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number,
|
|
1456
|
+
credentialList: (walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, nextMarker?: string, sort?: CredentialListSortEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1433
1457
|
/**
|
|
1434
1458
|
* 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.
|
|
1435
1459
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1616,6 +1640,16 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1616
1640
|
* @throws {RequiredError}
|
|
1617
1641
|
*/
|
|
1618
1642
|
walletDelete: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1643
|
+
/**
|
|
1644
|
+
* Provides wallet events that can be used to audit the wallet activity.
|
|
1645
|
+
* @param {string} walletId Wallet ID
|
|
1646
|
+
* @param {number} [limit] The number of items
|
|
1647
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
1648
|
+
* @param {WalletEventsSortEnum} [sort] Sort flag controls the sort direction by the time created
|
|
1649
|
+
* @param {*} [options] Override http request option.
|
|
1650
|
+
* @throws {RequiredError}
|
|
1651
|
+
*/
|
|
1652
|
+
walletEvents: (walletId: string, limit?: number, nextMarker?: string, sort?: WalletEventsSortEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1619
1653
|
/**
|
|
1620
1654
|
* Provides wallet details
|
|
1621
1655
|
* @param {string} walletId
|
|
@@ -1630,7 +1664,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1630
1664
|
*/
|
|
1631
1665
|
walletList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1632
1666
|
/**
|
|
1633
|
-
* Provides
|
|
1667
|
+
* Provides first-in-first-out queue of notifications for a specific wallet.
|
|
1634
1668
|
* @param {string} walletId Wallet ID
|
|
1635
1669
|
* @param {*} [options] Override http request option.
|
|
1636
1670
|
* @throws {RequiredError}
|
|
@@ -1693,15 +1727,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1693
1727
|
* Retrieves a list of credentials.
|
|
1694
1728
|
* @param {string} walletId
|
|
1695
1729
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
1696
|
-
* @param {string} [type] The credential type.
|
|
1730
|
+
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
1697
1731
|
* @param {number} [limit] The number of items
|
|
1698
|
-
* @param {
|
|
1699
|
-
* @param {
|
|
1700
|
-
* @param {CredentialListSortFieldEnum} [sortField] The sorting field.
|
|
1732
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
1733
|
+
* @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
|
|
1701
1734
|
* @param {*} [options] Override http request option.
|
|
1702
1735
|
* @throws {RequiredError}
|
|
1703
1736
|
*/
|
|
1704
|
-
credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number,
|
|
1737
|
+
credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, nextMarker?: string, sort?: CredentialListSortEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialList>>;
|
|
1705
1738
|
/**
|
|
1706
1739
|
* 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.
|
|
1707
1740
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -1888,6 +1921,16 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1888
1921
|
* @throws {RequiredError}
|
|
1889
1922
|
*/
|
|
1890
1923
|
walletDelete(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1924
|
+
/**
|
|
1925
|
+
* Provides wallet events that can be used to audit the wallet activity.
|
|
1926
|
+
* @param {string} walletId Wallet ID
|
|
1927
|
+
* @param {number} [limit] The number of items
|
|
1928
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
1929
|
+
* @param {WalletEventsSortEnum} [sort] Sort flag controls the sort direction by the time created
|
|
1930
|
+
* @param {*} [options] Override http request option.
|
|
1931
|
+
* @throws {RequiredError}
|
|
1932
|
+
*/
|
|
1933
|
+
walletEvents(walletId: string, limit?: number, nextMarker?: string, sort?: WalletEventsSortEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletNotificationListPermanent>>;
|
|
1891
1934
|
/**
|
|
1892
1935
|
* Provides wallet details
|
|
1893
1936
|
* @param {string} walletId
|
|
@@ -1902,7 +1945,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
1902
1945
|
*/
|
|
1903
1946
|
walletList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Wallet>>>;
|
|
1904
1947
|
/**
|
|
1905
|
-
* Provides
|
|
1948
|
+
* Provides first-in-first-out queue of notifications for a specific wallet.
|
|
1906
1949
|
* @param {string} walletId Wallet ID
|
|
1907
1950
|
* @param {*} [options] Override http request option.
|
|
1908
1951
|
* @throws {RequiredError}
|
|
@@ -1965,15 +2008,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
1965
2008
|
* Retrieves a list of credentials.
|
|
1966
2009
|
* @param {string} walletId
|
|
1967
2010
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
1968
|
-
* @param {string} [type] The credential type.
|
|
2011
|
+
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
1969
2012
|
* @param {number} [limit] The number of items
|
|
1970
|
-
* @param {
|
|
1971
|
-
* @param {
|
|
1972
|
-
* @param {CredentialListSortFieldEnum} [sortField] The sorting field.
|
|
2013
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
2014
|
+
* @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
|
|
1973
2015
|
* @param {*} [options] Override http request option.
|
|
1974
2016
|
* @throws {RequiredError}
|
|
1975
2017
|
*/
|
|
1976
|
-
credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number,
|
|
2018
|
+
credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, nextMarker?: string, sort?: CredentialListSortEnum, options?: any): AxiosPromise<CredentialList>;
|
|
1977
2019
|
/**
|
|
1978
2020
|
* 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.
|
|
1979
2021
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -2160,6 +2202,16 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2160
2202
|
* @throws {RequiredError}
|
|
2161
2203
|
*/
|
|
2162
2204
|
walletDelete(walletId: string, options?: any): AxiosPromise<void>;
|
|
2205
|
+
/**
|
|
2206
|
+
* Provides wallet events that can be used to audit the wallet activity.
|
|
2207
|
+
* @param {string} walletId Wallet ID
|
|
2208
|
+
* @param {number} [limit] The number of items
|
|
2209
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
2210
|
+
* @param {WalletEventsSortEnum} [sort] Sort flag controls the sort direction by the time created
|
|
2211
|
+
* @param {*} [options] Override http request option.
|
|
2212
|
+
* @throws {RequiredError}
|
|
2213
|
+
*/
|
|
2214
|
+
walletEvents(walletId: string, limit?: number, nextMarker?: string, sort?: WalletEventsSortEnum, options?: any): AxiosPromise<WalletNotificationListPermanent>;
|
|
2163
2215
|
/**
|
|
2164
2216
|
* Provides wallet details
|
|
2165
2217
|
* @param {string} walletId
|
|
@@ -2174,7 +2226,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
2174
2226
|
*/
|
|
2175
2227
|
walletList(options?: any): AxiosPromise<Array<Wallet>>;
|
|
2176
2228
|
/**
|
|
2177
|
-
* Provides
|
|
2229
|
+
* Provides first-in-first-out queue of notifications for a specific wallet.
|
|
2178
2230
|
* @param {string} walletId Wallet ID
|
|
2179
2231
|
* @param {*} [options] Override http request option.
|
|
2180
2232
|
* @throws {RequiredError}
|
|
@@ -2244,16 +2296,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2244
2296
|
* Retrieves a list of credentials.
|
|
2245
2297
|
* @param {string} walletId
|
|
2246
2298
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
2247
|
-
* @param {string} [type] The credential type.
|
|
2299
|
+
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
2248
2300
|
* @param {number} [limit] The number of items
|
|
2249
|
-
* @param {
|
|
2250
|
-
* @param {
|
|
2251
|
-
* @param {CredentialListSortFieldEnum} [sortField] The sorting field.
|
|
2301
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
2302
|
+
* @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
|
|
2252
2303
|
* @param {*} [options] Override http request option.
|
|
2253
2304
|
* @throws {RequiredError}
|
|
2254
2305
|
* @memberof DefaultApi
|
|
2255
2306
|
*/
|
|
2256
|
-
credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number,
|
|
2307
|
+
credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, limit?: number, nextMarker?: string, sort?: CredentialListSortEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialList, any>>;
|
|
2257
2308
|
/**
|
|
2258
2309
|
* 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.
|
|
2259
2310
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
@@ -2464,6 +2515,17 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2464
2515
|
* @memberof DefaultApi
|
|
2465
2516
|
*/
|
|
2466
2517
|
walletDelete(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
2518
|
+
/**
|
|
2519
|
+
* Provides wallet events that can be used to audit the wallet activity.
|
|
2520
|
+
* @param {string} walletId Wallet ID
|
|
2521
|
+
* @param {number} [limit] The number of items
|
|
2522
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
2523
|
+
* @param {WalletEventsSortEnum} [sort] Sort flag controls the sort direction by the time created
|
|
2524
|
+
* @param {*} [options] Override http request option.
|
|
2525
|
+
* @throws {RequiredError}
|
|
2526
|
+
* @memberof DefaultApi
|
|
2527
|
+
*/
|
|
2528
|
+
walletEvents(walletId: string, limit?: number, nextMarker?: string, sort?: WalletEventsSortEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletNotificationListPermanent, any>>;
|
|
2467
2529
|
/**
|
|
2468
2530
|
* Provides wallet details
|
|
2469
2531
|
* @param {string} walletId
|
|
@@ -2480,7 +2542,7 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
2480
2542
|
*/
|
|
2481
2543
|
walletList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Wallet[], any>>;
|
|
2482
2544
|
/**
|
|
2483
|
-
* Provides
|
|
2545
|
+
* Provides first-in-first-out queue of notifications for a specific wallet.
|
|
2484
2546
|
* @param {string} walletId Wallet ID
|
|
2485
2547
|
* @param {*} [options] Override http request option.
|
|
2486
2548
|
* @throws {RequiredError}
|
|
@@ -2509,16 +2571,16 @@ export type CredentialListInteractionEnum = typeof CredentialListInteractionEnum
|
|
|
2509
2571
|
/**
|
|
2510
2572
|
* @export
|
|
2511
2573
|
*/
|
|
2512
|
-
export declare const
|
|
2574
|
+
export declare const CredentialListSortEnum: {
|
|
2513
2575
|
readonly Asc: "asc";
|
|
2514
2576
|
readonly Desc: "desc";
|
|
2515
2577
|
};
|
|
2516
|
-
export type
|
|
2578
|
+
export type CredentialListSortEnum = typeof CredentialListSortEnum[keyof typeof CredentialListSortEnum];
|
|
2517
2579
|
/**
|
|
2518
2580
|
* @export
|
|
2519
2581
|
*/
|
|
2520
|
-
export declare const
|
|
2521
|
-
readonly
|
|
2522
|
-
readonly
|
|
2582
|
+
export declare const WalletEventsSortEnum: {
|
|
2583
|
+
readonly Asc: "asc";
|
|
2584
|
+
readonly Desc: "desc";
|
|
2523
2585
|
};
|
|
2524
|
-
export type
|
|
2586
|
+
export type WalletEventsSortEnum = typeof WalletEventsSortEnum[keyof typeof WalletEventsSortEnum];
|
package/api.js
CHANGED
|
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.
|
|
28
|
+
exports.WalletEventsSortEnum = exports.CredentialListSortEnum = exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventTypeEnum = exports.WalletConfigTrustFrameworkEnum = exports.WalletRoleEnum = exports.SystemImpactStatusEnum = exports.PrepareToAccreditRequestTypeEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialIssuerDefinitionCredentialFormatEnum = exports.AccreditationRequestTypeEnum = void 0;
|
|
29
29
|
const axios_1 = __importDefault(require("axios"));
|
|
30
30
|
// Some imports not used depending on template conditions
|
|
31
31
|
// @ts-ignore
|
|
@@ -68,6 +68,11 @@ exports.SystemImpactStatusEnum = {
|
|
|
68
68
|
Limited: 'limited',
|
|
69
69
|
Critical: 'critical'
|
|
70
70
|
};
|
|
71
|
+
exports.WalletRoleEnum = {
|
|
72
|
+
Holder: 'holder',
|
|
73
|
+
Verifier: 'verifier',
|
|
74
|
+
Issuer: 'issuer'
|
|
75
|
+
};
|
|
71
76
|
exports.WalletConfigTrustFrameworkEnum = {
|
|
72
77
|
Ebsi: 'EBSI',
|
|
73
78
|
Tts: 'TTS',
|
|
@@ -264,15 +269,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
264
269
|
* Retrieves a list of credentials.
|
|
265
270
|
* @param {string} walletId
|
|
266
271
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
267
|
-
* @param {string} [type] The credential type.
|
|
272
|
+
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
268
273
|
* @param {number} [limit] The number of items
|
|
269
|
-
* @param {
|
|
270
|
-
* @param {
|
|
271
|
-
* @param {CredentialListSortFieldEnum} [sortField] The sorting field.
|
|
274
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
275
|
+
* @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
|
|
272
276
|
* @param {*} [options] Override http request option.
|
|
273
277
|
* @throws {RequiredError}
|
|
274
278
|
*/
|
|
275
|
-
credentialList: (walletId, interaction, type, limit,
|
|
279
|
+
credentialList: (walletId, interaction, type, limit, nextMarker, sort, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
276
280
|
// verify required parameter 'walletId' is not null or undefined
|
|
277
281
|
(0, common_1.assertParamExists)('credentialList', 'walletId', walletId);
|
|
278
282
|
// verify required parameter 'interaction' is not null or undefined
|
|
@@ -299,14 +303,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
299
303
|
if (limit !== undefined) {
|
|
300
304
|
localVarQueryParameter['limit'] = limit;
|
|
301
305
|
}
|
|
302
|
-
if (
|
|
303
|
-
localVarQueryParameter['
|
|
304
|
-
}
|
|
305
|
-
if (sortDirection !== undefined) {
|
|
306
|
-
localVarQueryParameter['sortDirection'] = sortDirection;
|
|
306
|
+
if (nextMarker !== undefined) {
|
|
307
|
+
localVarQueryParameter['nextMarker'] = nextMarker;
|
|
307
308
|
}
|
|
308
|
-
if (
|
|
309
|
-
localVarQueryParameter['
|
|
309
|
+
if (sort !== undefined) {
|
|
310
|
+
localVarQueryParameter['sort'] = sort;
|
|
310
311
|
}
|
|
311
312
|
if (walletId != null) {
|
|
312
313
|
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
@@ -1139,6 +1140,49 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1139
1140
|
options: localVarRequestOptions,
|
|
1140
1141
|
};
|
|
1141
1142
|
}),
|
|
1143
|
+
/**
|
|
1144
|
+
* Provides wallet events that can be used to audit the wallet activity.
|
|
1145
|
+
* @param {string} walletId Wallet ID
|
|
1146
|
+
* @param {number} [limit] The number of items
|
|
1147
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
1148
|
+
* @param {WalletEventsSortEnum} [sort] Sort flag controls the sort direction by the time created
|
|
1149
|
+
* @param {*} [options] Override http request option.
|
|
1150
|
+
* @throws {RequiredError}
|
|
1151
|
+
*/
|
|
1152
|
+
walletEvents: (walletId, limit, nextMarker, sort, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1153
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
1154
|
+
(0, common_1.assertParamExists)('walletEvents', 'walletId', walletId);
|
|
1155
|
+
const localVarPath = `/wallets/{wallet_id}/events`
|
|
1156
|
+
.replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
|
|
1157
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1158
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1159
|
+
let baseOptions;
|
|
1160
|
+
if (configuration) {
|
|
1161
|
+
baseOptions = configuration.baseOptions;
|
|
1162
|
+
}
|
|
1163
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1164
|
+
const localVarHeaderParameter = {};
|
|
1165
|
+
const localVarQueryParameter = {};
|
|
1166
|
+
// authentication accessToken required
|
|
1167
|
+
// http bearer authentication required
|
|
1168
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1169
|
+
if (limit !== undefined) {
|
|
1170
|
+
localVarQueryParameter['limit'] = limit;
|
|
1171
|
+
}
|
|
1172
|
+
if (nextMarker !== undefined) {
|
|
1173
|
+
localVarQueryParameter['nextMarker'] = nextMarker;
|
|
1174
|
+
}
|
|
1175
|
+
if (sort !== undefined) {
|
|
1176
|
+
localVarQueryParameter['sort'] = sort;
|
|
1177
|
+
}
|
|
1178
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1179
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1180
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1181
|
+
return {
|
|
1182
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1183
|
+
options: localVarRequestOptions,
|
|
1184
|
+
};
|
|
1185
|
+
}),
|
|
1142
1186
|
/**
|
|
1143
1187
|
* Provides wallet details
|
|
1144
1188
|
* @param {string} walletId
|
|
@@ -1198,7 +1242,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1198
1242
|
};
|
|
1199
1243
|
}),
|
|
1200
1244
|
/**
|
|
1201
|
-
* Provides
|
|
1245
|
+
* Provides first-in-first-out queue of notifications for a specific wallet.
|
|
1202
1246
|
* @param {string} walletId Wallet ID
|
|
1203
1247
|
* @param {*} [options] Override http request option.
|
|
1204
1248
|
* @throws {RequiredError}
|
|
@@ -1355,18 +1399,17 @@ const DefaultApiFp = function (configuration) {
|
|
|
1355
1399
|
* Retrieves a list of credentials.
|
|
1356
1400
|
* @param {string} walletId
|
|
1357
1401
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
1358
|
-
* @param {string} [type] The credential type.
|
|
1402
|
+
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
1359
1403
|
* @param {number} [limit] The number of items
|
|
1360
|
-
* @param {
|
|
1361
|
-
* @param {
|
|
1362
|
-
* @param {CredentialListSortFieldEnum} [sortField] The sorting field.
|
|
1404
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
1405
|
+
* @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
|
|
1363
1406
|
* @param {*} [options] Override http request option.
|
|
1364
1407
|
* @throws {RequiredError}
|
|
1365
1408
|
*/
|
|
1366
|
-
credentialList(walletId, interaction, type, limit,
|
|
1409
|
+
credentialList(walletId, interaction, type, limit, nextMarker, sort, options) {
|
|
1367
1410
|
var _a, _b, _c;
|
|
1368
1411
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1369
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(walletId, interaction, type, limit,
|
|
1412
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(walletId, interaction, type, limit, nextMarker, sort, options);
|
|
1370
1413
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1371
1414
|
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;
|
|
1372
1415
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1750,6 +1793,24 @@ const DefaultApiFp = function (configuration) {
|
|
|
1750
1793
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1751
1794
|
});
|
|
1752
1795
|
},
|
|
1796
|
+
/**
|
|
1797
|
+
* Provides wallet events that can be used to audit the wallet activity.
|
|
1798
|
+
* @param {string} walletId Wallet ID
|
|
1799
|
+
* @param {number} [limit] The number of items
|
|
1800
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
1801
|
+
* @param {WalletEventsSortEnum} [sort] Sort flag controls the sort direction by the time created
|
|
1802
|
+
* @param {*} [options] Override http request option.
|
|
1803
|
+
* @throws {RequiredError}
|
|
1804
|
+
*/
|
|
1805
|
+
walletEvents(walletId, limit, nextMarker, sort, options) {
|
|
1806
|
+
var _a, _b, _c;
|
|
1807
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1808
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletEvents(walletId, limit, nextMarker, sort, options);
|
|
1809
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1810
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1811
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1812
|
+
});
|
|
1813
|
+
},
|
|
1753
1814
|
/**
|
|
1754
1815
|
* Provides wallet details
|
|
1755
1816
|
* @param {string} walletId
|
|
@@ -1780,7 +1841,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
1780
1841
|
});
|
|
1781
1842
|
},
|
|
1782
1843
|
/**
|
|
1783
|
-
* Provides
|
|
1844
|
+
* Provides first-in-first-out queue of notifications for a specific wallet.
|
|
1784
1845
|
* @param {string} walletId Wallet ID
|
|
1785
1846
|
* @param {*} [options] Override http request option.
|
|
1786
1847
|
* @throws {RequiredError}
|
|
@@ -1873,16 +1934,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1873
1934
|
* Retrieves a list of credentials.
|
|
1874
1935
|
* @param {string} walletId
|
|
1875
1936
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
1876
|
-
* @param {string} [type] The credential type.
|
|
1937
|
+
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
1877
1938
|
* @param {number} [limit] The number of items
|
|
1878
|
-
* @param {
|
|
1879
|
-
* @param {
|
|
1880
|
-
* @param {CredentialListSortFieldEnum} [sortField] The sorting field.
|
|
1939
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
1940
|
+
* @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
|
|
1881
1941
|
* @param {*} [options] Override http request option.
|
|
1882
1942
|
* @throws {RequiredError}
|
|
1883
1943
|
*/
|
|
1884
|
-
credentialList(walletId, interaction, type, limit,
|
|
1885
|
-
return localVarFp.credentialList(walletId, interaction, type, limit,
|
|
1944
|
+
credentialList(walletId, interaction, type, limit, nextMarker, sort, options) {
|
|
1945
|
+
return localVarFp.credentialList(walletId, interaction, type, limit, nextMarker, sort, options).then((request) => request(axios, basePath));
|
|
1886
1946
|
},
|
|
1887
1947
|
/**
|
|
1888
1948
|
* 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.
|
|
@@ -2118,6 +2178,18 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2118
2178
|
walletDelete(walletId, options) {
|
|
2119
2179
|
return localVarFp.walletDelete(walletId, options).then((request) => request(axios, basePath));
|
|
2120
2180
|
},
|
|
2181
|
+
/**
|
|
2182
|
+
* Provides wallet events that can be used to audit the wallet activity.
|
|
2183
|
+
* @param {string} walletId Wallet ID
|
|
2184
|
+
* @param {number} [limit] The number of items
|
|
2185
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
2186
|
+
* @param {WalletEventsSortEnum} [sort] Sort flag controls the sort direction by the time created
|
|
2187
|
+
* @param {*} [options] Override http request option.
|
|
2188
|
+
* @throws {RequiredError}
|
|
2189
|
+
*/
|
|
2190
|
+
walletEvents(walletId, limit, nextMarker, sort, options) {
|
|
2191
|
+
return localVarFp.walletEvents(walletId, limit, nextMarker, sort, options).then((request) => request(axios, basePath));
|
|
2192
|
+
},
|
|
2121
2193
|
/**
|
|
2122
2194
|
* Provides wallet details
|
|
2123
2195
|
* @param {string} walletId
|
|
@@ -2136,7 +2208,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2136
2208
|
return localVarFp.walletList(options).then((request) => request(axios, basePath));
|
|
2137
2209
|
},
|
|
2138
2210
|
/**
|
|
2139
|
-
* Provides
|
|
2211
|
+
* Provides first-in-first-out queue of notifications for a specific wallet.
|
|
2140
2212
|
* @param {string} walletId Wallet ID
|
|
2141
2213
|
* @param {*} [options] Override http request option.
|
|
2142
2214
|
* @throws {RequiredError}
|
|
@@ -2222,17 +2294,16 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2222
2294
|
* Retrieves a list of credentials.
|
|
2223
2295
|
* @param {string} walletId
|
|
2224
2296
|
* @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
|
|
2225
|
-
* @param {string} [type] The credential type.
|
|
2297
|
+
* @param {string} [type] The credential type as comma delimited list representing a single type. I.e. VerifiableCredential,VerifiableAttestation,Europass.
|
|
2226
2298
|
* @param {number} [limit] The number of items
|
|
2227
|
-
* @param {
|
|
2228
|
-
* @param {
|
|
2229
|
-
* @param {CredentialListSortFieldEnum} [sortField] The sorting field.
|
|
2299
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
2300
|
+
* @param {CredentialListSortEnum} [sort] Sort flag controls the sort direction by the time updated or issued
|
|
2230
2301
|
* @param {*} [options] Override http request option.
|
|
2231
2302
|
* @throws {RequiredError}
|
|
2232
2303
|
* @memberof DefaultApi
|
|
2233
2304
|
*/
|
|
2234
|
-
credentialList(walletId, interaction, type, limit,
|
|
2235
|
-
return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, interaction, type, limit,
|
|
2305
|
+
credentialList(walletId, interaction, type, limit, nextMarker, sort, options) {
|
|
2306
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, interaction, type, limit, nextMarker, sort, options).then((request) => request(this.axios, this.basePath));
|
|
2236
2307
|
}
|
|
2237
2308
|
/**
|
|
2238
2309
|
* 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.
|
|
@@ -2492,6 +2563,19 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2492
2563
|
walletDelete(walletId, options) {
|
|
2493
2564
|
return (0, exports.DefaultApiFp)(this.configuration).walletDelete(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
2494
2565
|
}
|
|
2566
|
+
/**
|
|
2567
|
+
* Provides wallet events that can be used to audit the wallet activity.
|
|
2568
|
+
* @param {string} walletId Wallet ID
|
|
2569
|
+
* @param {number} [limit] The number of items
|
|
2570
|
+
* @param {string} [nextMarker] Marking the next set of items
|
|
2571
|
+
* @param {WalletEventsSortEnum} [sort] Sort flag controls the sort direction by the time created
|
|
2572
|
+
* @param {*} [options] Override http request option.
|
|
2573
|
+
* @throws {RequiredError}
|
|
2574
|
+
* @memberof DefaultApi
|
|
2575
|
+
*/
|
|
2576
|
+
walletEvents(walletId, limit, nextMarker, sort, options) {
|
|
2577
|
+
return (0, exports.DefaultApiFp)(this.configuration).walletEvents(walletId, limit, nextMarker, sort, options).then((request) => request(this.axios, this.basePath));
|
|
2578
|
+
}
|
|
2495
2579
|
/**
|
|
2496
2580
|
* Provides wallet details
|
|
2497
2581
|
* @param {string} walletId
|
|
@@ -2512,7 +2596,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2512
2596
|
return (0, exports.DefaultApiFp)(this.configuration).walletList(options).then((request) => request(this.axios, this.basePath));
|
|
2513
2597
|
}
|
|
2514
2598
|
/**
|
|
2515
|
-
* Provides
|
|
2599
|
+
* Provides first-in-first-out queue of notifications for a specific wallet.
|
|
2516
2600
|
* @param {string} walletId Wallet ID
|
|
2517
2601
|
* @param {*} [options] Override http request option.
|
|
2518
2602
|
* @throws {RequiredError}
|
|
@@ -2545,14 +2629,14 @@ exports.CredentialListInteractionEnum = {
|
|
|
2545
2629
|
/**
|
|
2546
2630
|
* @export
|
|
2547
2631
|
*/
|
|
2548
|
-
exports.
|
|
2632
|
+
exports.CredentialListSortEnum = {
|
|
2549
2633
|
Asc: 'asc',
|
|
2550
2634
|
Desc: 'desc'
|
|
2551
2635
|
};
|
|
2552
2636
|
/**
|
|
2553
2637
|
* @export
|
|
2554
2638
|
*/
|
|
2555
|
-
exports.
|
|
2556
|
-
|
|
2557
|
-
|
|
2639
|
+
exports.WalletEventsSortEnum = {
|
|
2640
|
+
Asc: 'asc',
|
|
2641
|
+
Desc: 'desc'
|
|
2558
2642
|
};
|