@triveria/wallet 0.0.283 → 0.0.285

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Triveria Wallet API
3
- * Triveria Wallet API
3
+ * Triveria Wallet API.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0.0
6
6
  *
@@ -1437,7 +1437,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1437
1437
  */
1438
1438
  pdfCredentialTwinGet: (credentialId: string, walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1439
1439
  /**
1440
- * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximal size of the PDF document is 50 MB.
1440
+ * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximum size of the PDF document is 50 MB.
1441
1441
  * @param {string} credentialId Verifiable Credential Identifier
1442
1442
  * @param {string} walletId
1443
1443
  * @param {File} [pdf]
@@ -1963,7 +1963,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1963
1963
  */
1964
1964
  pdfCredentialTwinGet(credentialId: string, walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
1965
1965
  /**
1966
- * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximal size of the PDF document is 50 MB.
1966
+ * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximum size of the PDF document is 50 MB.
1967
1967
  * @param {string} credentialId Verifiable Credential Identifier
1968
1968
  * @param {string} walletId
1969
1969
  * @param {File} [pdf]
@@ -2491,7 +2491,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2491
2491
  */
2492
2492
  pdfCredentialTwinGet(credentialId: string, walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
2493
2493
  /**
2494
- * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximal size of the PDF document is 50 MB.
2494
+ * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximum size of the PDF document is 50 MB.
2495
2495
  * @param {string} credentialId Verifiable Credential Identifier
2496
2496
  * @param {string} walletId
2497
2497
  * @param {File} [pdf]
@@ -3019,7 +3019,7 @@ export declare class DefaultApi extends BaseAPI {
3019
3019
  */
3020
3020
  pdfCredentialTwinGet(credentialId: string, walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
3021
3021
  /**
3022
- * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximal size of the PDF document is 50 MB.
3022
+ * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximum size of the PDF document is 50 MB.
3023
3023
  * @param {string} credentialId Verifiable Credential Identifier
3024
3024
  * @param {string} walletId
3025
3025
  * @param {File} [pdf]
package/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Triveria Wallet API
6
- * Triveria Wallet API
6
+ * Triveria Wallet API.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0.0
9
9
  *
@@ -1355,7 +1355,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1355
1355
  };
1356
1356
  }),
1357
1357
  /**
1358
- * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximal size of the PDF document is 50 MB.
1358
+ * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximum size of the PDF document is 50 MB.
1359
1359
  * @param {string} credentialId Verifiable Credential Identifier
1360
1360
  * @param {string} walletId
1361
1361
  * @param {File} [pdf]
@@ -3117,7 +3117,7 @@ const DefaultApiFp = function (configuration) {
3117
3117
  });
3118
3118
  },
3119
3119
  /**
3120
- * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximal size of the PDF document is 50 MB.
3120
+ * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximum size of the PDF document is 50 MB.
3121
3121
  * @param {string} credentialId Verifiable Credential Identifier
3122
3122
  * @param {string} walletId
3123
3123
  * @param {File} [pdf]
@@ -3979,7 +3979,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
3979
3979
  return localVarFp.pdfCredentialTwinGet(credentialId, walletId, options).then((request) => request(axios, basePath));
3980
3980
  },
3981
3981
  /**
3982
- * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximal size of the PDF document is 50 MB.
3982
+ * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximum size of the PDF document is 50 MB.
3983
3983
  * @param {string} credentialId Verifiable Credential Identifier
3984
3984
  * @param {string} walletId
3985
3985
  * @param {File} [pdf]
@@ -4635,7 +4635,7 @@ class DefaultApi extends base_1.BaseAPI {
4635
4635
  return (0, exports.DefaultApiFp)(this.configuration).pdfCredentialTwinGet(credentialId, walletId, options).then((request) => request(this.axios, this.basePath));
4636
4636
  }
4637
4637
  /**
4638
- * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximal size of the PDF document is 50 MB.
4638
+ * Uploads a PDF that will be signed and embedded with the verifiable credential when it will be issued. Can be used only for credentials in Draft state. Maximum size of the PDF document is 50 MB.
4639
4639
  * @param {string} credentialId Verifiable Credential Identifier
4640
4640
  * @param {string} walletId
4641
4641
  * @param {File} [pdf]
package/auth.js CHANGED
@@ -14,30 +14,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.RequestToken = RequestToken;
16
16
  const axios_1 = __importDefault(require("axios"));
17
- const node_localstorage_1 = require("node-localstorage");
18
- const jwt_decode_1 = require("jwt-decode");
19
17
  function RequestToken(tokenUrl, audience, clientId, clientSecret) {
20
18
  return __awaiter(this, void 0, void 0, function* () {
21
- let storage;
22
- // Check whether we are in browser (window not undefined) or not and use the according storage
23
- if (typeof window !== "undefined") {
24
- storage = localStorage;
25
- }
26
- else {
27
- storage = new node_localstorage_1.LocalStorage('./.data');
28
- }
29
- const token = storage.getItem("token");
30
- if (token !== null) {
31
- const decoded = (0, jwt_decode_1.jwtDecode)(token);
32
- if (decoded.exp !== undefined && decoded.exp > Date.now() / 1000) {
33
- return token;
34
- }
35
- }
36
19
  const body = `{"client_id":"${clientId}","client_secret":"${clientSecret}","audience":"${audience}","grant_type":"client_credentials"}`, headers = { 'content-type': 'application/json' };
37
20
  const { data: { access_token } } = yield axios_1.default.post(`${tokenUrl}`, body, {
38
21
  headers,
39
22
  });
40
- storage.setItem("token", access_token);
41
23
  return access_token;
42
24
  });
43
25
  }
package/base.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Triveria Wallet API
3
- * Triveria Wallet API
3
+ * Triveria Wallet API.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0.0
6
6
  *
package/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Triveria Wallet API
6
- * Triveria Wallet API
6
+ * Triveria Wallet API.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0.0
9
9
  *
package/common.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Triveria Wallet API
3
- * Triveria Wallet API
3
+ * Triveria Wallet API.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0.0
6
6
  *
package/common.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Triveria Wallet API
6
- * Triveria Wallet API
6
+ * Triveria Wallet API.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0.0
9
9
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Triveria Wallet API
3
- * Triveria Wallet API
3
+ * Triveria Wallet API.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0.0
6
6
  *
package/configuration.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* tslint:disable */
3
3
  /**
4
4
  * Triveria Wallet API
5
- * Triveria Wallet API
5
+ * Triveria Wallet API.
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0.0
8
8
  *
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Triveria Wallet API
3
- * Triveria Wallet API
3
+ * Triveria Wallet API.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0.0
6
6
  *
package/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Triveria Wallet API
6
- * Triveria Wallet API
6
+ * Triveria Wallet API.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0.0
9
9
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.283",
4
+ "version": "0.0.285",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {