@triveria/wallet 0.0.254 → 0.0.256

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 +9 -8
  2. package/api.js +11 -13
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -38,6 +38,7 @@ export interface AuthOffer {
38
38
  export interface CSRCreateRequest {
39
39
  'organizationName': string;
40
40
  'organizationWebsite': string;
41
+ 'email': string;
41
42
  'streetAddress': string;
42
43
  'locality': string;
43
44
  'postalCode': string;
@@ -1239,12 +1240,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1239
1240
  /**
1240
1241
  * Signs an XML document with XAdES signature
1241
1242
  * @param {string} walletId
1242
- * @param {File} xml
1243
1243
  * @param {XadesSignatureType} xadesSignatureType
1244
+ * @param {File} [xml]
1244
1245
  * @param {*} [options] Override http request option.
1245
1246
  * @throws {RequiredError}
1246
1247
  */
1247
- issuerXadesSign: (walletId: string, xml: File, xadesSignatureType: XadesSignatureType, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1248
+ issuerXadesSign: (walletId: string, xadesSignatureType: XadesSignatureType, xml?: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1248
1249
  /**
1249
1250
  * Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
1250
1251
  * @param {string} credentialId Verifiable Credential Identifier
@@ -1701,12 +1702,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1701
1702
  /**
1702
1703
  * Signs an XML document with XAdES signature
1703
1704
  * @param {string} walletId
1704
- * @param {File} xml
1705
1705
  * @param {XadesSignatureType} xadesSignatureType
1706
+ * @param {File} [xml]
1706
1707
  * @param {*} [options] Override http request option.
1707
1708
  * @throws {RequiredError}
1708
1709
  */
1709
- issuerXadesSign(walletId: string, xml: File, xadesSignatureType: XadesSignatureType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
1710
+ issuerXadesSign(walletId: string, xadesSignatureType: XadesSignatureType, xml?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
1710
1711
  /**
1711
1712
  * Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
1712
1713
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2165,12 +2166,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2165
2166
  /**
2166
2167
  * Signs an XML document with XAdES signature
2167
2168
  * @param {string} walletId
2168
- * @param {File} xml
2169
2169
  * @param {XadesSignatureType} xadesSignatureType
2170
+ * @param {File} [xml]
2170
2171
  * @param {*} [options] Override http request option.
2171
2172
  * @throws {RequiredError}
2172
2173
  */
2173
- issuerXadesSign(walletId: string, xml: File, xadesSignatureType: XadesSignatureType, options?: RawAxiosRequestConfig): AxiosPromise<object>;
2174
+ issuerXadesSign(walletId: string, xadesSignatureType: XadesSignatureType, xml?: File, options?: RawAxiosRequestConfig): AxiosPromise<object>;
2174
2175
  /**
2175
2176
  * Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
2176
2177
  * @param {string} credentialId Verifiable Credential Identifier
@@ -2629,12 +2630,12 @@ export declare class DefaultApi extends BaseAPI {
2629
2630
  /**
2630
2631
  * Signs an XML document with XAdES signature
2631
2632
  * @param {string} walletId
2632
- * @param {File} xml
2633
2633
  * @param {XadesSignatureType} xadesSignatureType
2634
+ * @param {File} [xml]
2634
2635
  * @param {*} [options] Override http request option.
2635
2636
  * @throws {RequiredError}
2636
2637
  */
2637
- issuerXadesSign(walletId: string, xml: File, xadesSignatureType: XadesSignatureType, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
2638
+ issuerXadesSign(walletId: string, xadesSignatureType: XadesSignatureType, xml?: File, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
2638
2639
  /**
2639
2640
  * Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
2640
2641
  * @param {string} credentialId Verifiable Credential Identifier
package/api.js CHANGED
@@ -1131,16 +1131,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1131
1131
  /**
1132
1132
  * Signs an XML document with XAdES signature
1133
1133
  * @param {string} walletId
1134
- * @param {File} xml
1135
1134
  * @param {XadesSignatureType} xadesSignatureType
1135
+ * @param {File} [xml]
1136
1136
  * @param {*} [options] Override http request option.
1137
1137
  * @throws {RequiredError}
1138
1138
  */
1139
- issuerXadesSign: (walletId, xml, xadesSignatureType, options = {}) => __awaiter(this, void 0, void 0, function* () {
1139
+ issuerXadesSign: (walletId, xadesSignatureType, xml, options = {}) => __awaiter(this, void 0, void 0, function* () {
1140
1140
  // verify required parameter 'walletId' is not null or undefined
1141
1141
  (0, common_1.assertParamExists)('issuerXadesSign', 'walletId', walletId);
1142
- // verify required parameter 'xml' is not null or undefined
1143
- (0, common_1.assertParamExists)('issuerXadesSign', 'xml', xml);
1144
1142
  // verify required parameter 'xadesSignatureType' is not null or undefined
1145
1143
  (0, common_1.assertParamExists)('issuerXadesSign', 'xadesSignatureType', xadesSignatureType);
1146
1144
  const localVarPath = `/issuer/xades`;
@@ -2649,15 +2647,15 @@ const DefaultApiFp = function (configuration) {
2649
2647
  /**
2650
2648
  * Signs an XML document with XAdES signature
2651
2649
  * @param {string} walletId
2652
- * @param {File} xml
2653
2650
  * @param {XadesSignatureType} xadesSignatureType
2651
+ * @param {File} [xml]
2654
2652
  * @param {*} [options] Override http request option.
2655
2653
  * @throws {RequiredError}
2656
2654
  */
2657
- issuerXadesSign(walletId, xml, xadesSignatureType, options) {
2655
+ issuerXadesSign(walletId, xadesSignatureType, xml, options) {
2658
2656
  var _a, _b, _c;
2659
2657
  return __awaiter(this, void 0, void 0, function* () {
2660
- const localVarAxiosArgs = yield localVarAxiosParamCreator.issuerXadesSign(walletId, xml, xadesSignatureType, options);
2658
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.issuerXadesSign(walletId, xadesSignatureType, xml, options);
2661
2659
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2662
2660
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.issuerXadesSign']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2663
2661
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3407,13 +3405,13 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
3407
3405
  /**
3408
3406
  * Signs an XML document with XAdES signature
3409
3407
  * @param {string} walletId
3410
- * @param {File} xml
3411
3408
  * @param {XadesSignatureType} xadesSignatureType
3409
+ * @param {File} [xml]
3412
3410
  * @param {*} [options] Override http request option.
3413
3411
  * @throws {RequiredError}
3414
3412
  */
3415
- issuerXadesSign(walletId, xml, xadesSignatureType, options) {
3416
- return localVarFp.issuerXadesSign(walletId, xml, xadesSignatureType, options).then((request) => request(axios, basePath));
3413
+ issuerXadesSign(walletId, xadesSignatureType, xml, options) {
3414
+ return localVarFp.issuerXadesSign(walletId, xadesSignatureType, xml, options).then((request) => request(axios, basePath));
3417
3415
  },
3418
3416
  /**
3419
3417
  * Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
@@ -3983,13 +3981,13 @@ class DefaultApi extends base_1.BaseAPI {
3983
3981
  /**
3984
3982
  * Signs an XML document with XAdES signature
3985
3983
  * @param {string} walletId
3986
- * @param {File} xml
3987
3984
  * @param {XadesSignatureType} xadesSignatureType
3985
+ * @param {File} [xml]
3988
3986
  * @param {*} [options] Override http request option.
3989
3987
  * @throws {RequiredError}
3990
3988
  */
3991
- issuerXadesSign(walletId, xml, xadesSignatureType, options) {
3992
- return (0, exports.DefaultApiFp)(this.configuration).issuerXadesSign(walletId, xml, xadesSignatureType, options).then((request) => request(this.axios, this.basePath));
3989
+ issuerXadesSign(walletId, xadesSignatureType, xml, options) {
3990
+ return (0, exports.DefaultApiFp)(this.configuration).issuerXadesSign(walletId, xadesSignatureType, xml, options).then((request) => request(this.axios, this.basePath));
3993
3991
  }
3994
3992
  /**
3995
3993
  * Returns a signed PDF contained in the verifiable credential containing the credential VP added as an attachment in incremental update.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.254",
4
+ "version": "0.0.256",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {