@triveria/wallet 0.0.53 → 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 +21 -4
  2. package/api.js +32 -8
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -1194,10 +1194,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1194
1194
  /**
1195
1195
  * Retrieves a list of credentials.
1196
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.
1197
1199
  * @param {*} [options] Override http request option.
1198
1200
  * @throws {RequiredError}
1199
1201
  */
1200
- credentialList: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1202
+ credentialList: (walletId: string, interaction: CredentialListInteractionEnum, type?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1201
1203
  /**
1202
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.
1203
1205
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1414,10 +1416,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1414
1416
  /**
1415
1417
  * Retrieves a list of credentials.
1416
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.
1417
1421
  * @param {*} [options] Override http request option.
1418
1422
  * @throws {RequiredError}
1419
1423
  */
1420
- 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>>;
1421
1425
  /**
1422
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.
1423
1427
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1634,10 +1638,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1634
1638
  /**
1635
1639
  * Retrieves a list of credentials.
1636
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.
1637
1643
  * @param {*} [options] Override http request option.
1638
1644
  * @throws {RequiredError}
1639
1645
  */
1640
- credentialList(walletId: string, options?: any): AxiosPromise<CredentialList>;
1646
+ credentialList(walletId: string, interaction: CredentialListInteractionEnum, type?: string, options?: any): AxiosPromise<CredentialList>;
1641
1647
  /**
1642
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.
1643
1649
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1860,11 +1866,13 @@ export declare class DefaultApi extends BaseAPI {
1860
1866
  /**
1861
1867
  * Retrieves a list of credentials.
1862
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.
1863
1871
  * @param {*} [options] Override http request option.
1864
1872
  * @throws {RequiredError}
1865
1873
  * @memberof DefaultApi
1866
1874
  */
1867
- 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>>;
1868
1876
  /**
1869
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.
1870
1878
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2065,3 +2073,12 @@ export declare class DefaultApi extends BaseAPI {
2065
2073
  */
2066
2074
  walletPatch(walletId: string, wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdObject, any>>;
2067
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.53",
4
+ "version": "0.0.54",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {