@triveria/wallet 0.0.52 → 0.0.54

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 +27 -4
  2. package/api.js +32 -8
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -1061,6 +1061,12 @@ export interface Wallet {
1061
1061
  * @memberof Wallet
1062
1062
  */
1063
1063
  'name': string;
1064
+ /**
1065
+ * Based on the wallet configuration this property defines the roles which the wallet has. It may be one of \"holder\", \"issuer\" and \"verifier\".
1066
+ * @type {string}
1067
+ * @memberof Wallet
1068
+ */
1069
+ 'role'?: string;
1064
1070
  /**
1065
1071
  * Wallet metadata is a key value container for any custom data a client may want
1066
1072
  * @type {{ [key: string]: any; }}
@@ -1188,10 +1194,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1188
1194
  /**
1189
1195
  * Retrieves a list of credentials.
1190
1196
  * @param {string} walletId
1197
+ * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1198
+ * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1191
1199
  * @param {*} [options] Override http request option.
1192
1200
  * @throws {RequiredError}
1193
1201
  */
1194
- credentialList: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1202
+ credentialList: (walletId: string, interaction: CredentialListInteractionEnum, type?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1195
1203
  /**
1196
1204
  * 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.
1197
1205
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1408,10 +1416,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1408
1416
  /**
1409
1417
  * Retrieves a list of credentials.
1410
1418
  * @param {string} walletId
1419
+ * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1420
+ * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1411
1421
  * @param {*} [options] Override http request option.
1412
1422
  * @throws {RequiredError}
1413
1423
  */
1414
- credentialList(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialList>>;
1424
+ credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialList>>;
1415
1425
  /**
1416
1426
  * 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.
1417
1427
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1628,10 +1638,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1628
1638
  /**
1629
1639
  * Retrieves a list of credentials.
1630
1640
  * @param {string} walletId
1641
+ * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1642
+ * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1631
1643
  * @param {*} [options] Override http request option.
1632
1644
  * @throws {RequiredError}
1633
1645
  */
1634
- credentialList(walletId: string, options?: any): AxiosPromise<CredentialList>;
1646
+ credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, options?: any): AxiosPromise<CredentialList>;
1635
1647
  /**
1636
1648
  * 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.
1637
1649
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1854,11 +1866,13 @@ export declare class DefaultApi extends BaseAPI {
1854
1866
  /**
1855
1867
  * Retrieves a list of credentials.
1856
1868
  * @param {string} walletId
1869
+ * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1870
+ * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1857
1871
  * @param {*} [options] Override http request option.
1858
1872
  * @throws {RequiredError}
1859
1873
  * @memberof DefaultApi
1860
1874
  */
1861
- credentialList(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialList, any>>;
1875
+ credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialList, any>>;
1862
1876
  /**
1863
1877
  * 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.
1864
1878
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2059,3 +2073,12 @@ export declare class DefaultApi extends BaseAPI {
2059
2073
  */
2060
2074
  walletPatch(walletId: string, wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdObject, any>>;
2061
2075
  }
2076
+ /**
2077
+ * @export
2078
+ */
2079
+ export declare const CredentialListInteractionEnum: {
2080
+ readonly Issuance: "issuance";
2081
+ readonly Presentation: "presentation";
2082
+ readonly Receive: "receive";
2083
+ };
2084
+ export type CredentialListInteractionEnum = typeof CredentialListInteractionEnum[keyof typeof CredentialListInteractionEnum];
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.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventTypeEnum = exports.SystemImpactStatusEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialIssuerDefinitionCredentialFormatEnum = void 0;
28
+ exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WalletNotificationEventTypeEnum = exports.SystemImpactStatusEnum = exports.HealthStatusStatusEnum = exports.DeferredStatusEnum = exports.CredentialMetadataStatusEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialIssuerDefinitionCredentialFormatEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -214,12 +214,16 @@ const DefaultApiAxiosParamCreator = function (configuration) {
214
214
  /**
215
215
  * Retrieves a list of credentials.
216
216
  * @param {string} walletId
217
+ * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
218
+ * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
217
219
  * @param {*} [options] Override http request option.
218
220
  * @throws {RequiredError}
219
221
  */
220
- credentialList: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
222
+ credentialList: (walletId, interaction, type, options = {}) => __awaiter(this, void 0, void 0, function* () {
221
223
  // verify required parameter 'walletId' is not null or undefined
222
224
  (0, common_1.assertParamExists)('credentialList', 'walletId', walletId);
225
+ // verify required parameter 'interaction' is not null or undefined
226
+ (0, common_1.assertParamExists)('credentialList', 'interaction', interaction);
223
227
  const localVarPath = `/credentials`;
224
228
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
225
229
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -233,6 +237,12 @@ const DefaultApiAxiosParamCreator = function (configuration) {
233
237
  // authentication accessToken required
234
238
  // http bearer authentication required
235
239
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
240
+ if (interaction !== undefined) {
241
+ localVarQueryParameter['interaction'] = interaction;
242
+ }
243
+ if (type !== undefined) {
244
+ localVarQueryParameter['type'] = type;
245
+ }
236
246
  if (walletId != null) {
237
247
  localVarHeaderParameter['wallet-id'] = String(walletId);
238
248
  }
@@ -1098,13 +1108,15 @@ const DefaultApiFp = function (configuration) {
1098
1108
  /**
1099
1109
  * Retrieves a list of credentials.
1100
1110
  * @param {string} walletId
1111
+ * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1112
+ * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1101
1113
  * @param {*} [options] Override http request option.
1102
1114
  * @throws {RequiredError}
1103
1115
  */
1104
- credentialList(walletId, options) {
1116
+ credentialList(walletId, interaction, type, options) {
1105
1117
  var _a, _b, _c;
1106
1118
  return __awaiter(this, void 0, void 0, function* () {
1107
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(walletId, options);
1119
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(walletId, interaction, type, options);
1108
1120
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1109
1121
  const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialList']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
1110
1122
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -1522,11 +1534,13 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1522
1534
  /**
1523
1535
  * Retrieves a list of credentials.
1524
1536
  * @param {string} walletId
1537
+ * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1538
+ * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1525
1539
  * @param {*} [options] Override http request option.
1526
1540
  * @throws {RequiredError}
1527
1541
  */
1528
- credentialList(walletId, options) {
1529
- return localVarFp.credentialList(walletId, options).then((request) => request(axios, basePath));
1542
+ credentialList(walletId, interaction, type, options) {
1543
+ return localVarFp.credentialList(walletId, interaction, type, options).then((request) => request(axios, basePath));
1530
1544
  },
1531
1545
  /**
1532
1546
  * 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.
@@ -1806,12 +1820,14 @@ class DefaultApi extends base_1.BaseAPI {
1806
1820
  /**
1807
1821
  * Retrieves a list of credentials.
1808
1822
  * @param {string} walletId
1823
+ * @param {CredentialListInteractionEnum} interaction The interaction that is the origin of the credential.
1824
+ * @param {string} [type] The credential type. I.e. Europass,VerifiableAttestation.
1809
1825
  * @param {*} [options] Override http request option.
1810
1826
  * @throws {RequiredError}
1811
1827
  * @memberof DefaultApi
1812
1828
  */
1813
- credentialList(walletId, options) {
1814
- return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, options).then((request) => request(this.axios, this.basePath));
1829
+ credentialList(walletId, interaction, type, options) {
1830
+ return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, interaction, type, options).then((request) => request(this.axios, this.basePath));
1815
1831
  }
1816
1832
  /**
1817
1833
  * 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.
@@ -2060,3 +2076,11 @@ class DefaultApi extends base_1.BaseAPI {
2060
2076
  }
2061
2077
  }
2062
2078
  exports.DefaultApi = DefaultApi;
2079
+ /**
2080
+ * @export
2081
+ */
2082
+ exports.CredentialListInteractionEnum = {
2083
+ Issuance: 'issuance',
2084
+ Presentation: 'presentation',
2085
+ Receive: 'receive'
2086
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.52",
4
+ "version": "0.0.54",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {