files.com 1.2.290 → 1.2.291
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/_VERSION +1 -1
- package/docs/models/GpgKey.md +10 -4
- package/lib/Files.js +1 -1
- package/lib/models/GpgKey.js +18 -4
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/GpgKey.js +18 -4
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.291
|
package/docs/models/GpgKey.md
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
"expires_at": "2000-01-01T01:00:00Z",
|
|
9
9
|
"name": "key name",
|
|
10
10
|
"user_id": 1,
|
|
11
|
+
"public_key_md5": "7f8bc1210b09b9ddf469e6b6b8920e76",
|
|
12
|
+
"private_key_md5": "ab236cfe4a195f0226bc2e674afdd6b0",
|
|
11
13
|
"public_key": "7f8bc1210b09b9ddf469e6b6b8920e76",
|
|
12
14
|
"private_key": "ab236cfe4a195f0226bc2e674afdd6b0",
|
|
13
15
|
"private_key_password": "[your GPG private key password]"
|
|
@@ -18,6 +20,8 @@
|
|
|
18
20
|
* `expires_at` (date-time): Your GPG key expiration date.
|
|
19
21
|
* `name` (string): Your GPG key name.
|
|
20
22
|
* `user_id` (int64): GPG owner's user id
|
|
23
|
+
* `public_key_md5` (string): MD5 hash of your GPG public key
|
|
24
|
+
* `private_key_md5` (string): MD5 hash of your GPG private key.
|
|
21
25
|
* `public_key` (string): Your GPG public key
|
|
22
26
|
* `private_key` (string): Your GPG private key.
|
|
23
27
|
* `private_key_password` (string): Your GPG private key password. Only required for password protected keys.
|
|
@@ -79,8 +83,8 @@ await GpgKey.create({
|
|
|
79
83
|
### Parameters
|
|
80
84
|
|
|
81
85
|
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
|
82
|
-
* `public_key` (string):
|
|
83
|
-
* `private_key` (string):
|
|
86
|
+
* `public_key` (string): MD5 hash of your GPG public key
|
|
87
|
+
* `private_key` (string): MD5 hash of your GPG private key.
|
|
84
88
|
* `private_key_password` (string): Your GPG private key password. Only required for password protected keys.
|
|
85
89
|
* `name` (string): Required - Your GPG key name.
|
|
86
90
|
* `generate_expires_at` (string): Expiration date of the key. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
|
|
@@ -106,8 +110,8 @@ await gpg_key.update({
|
|
|
106
110
|
### Parameters
|
|
107
111
|
|
|
108
112
|
* `id` (int64): Required - Gpg Key ID.
|
|
109
|
-
* `public_key` (string):
|
|
110
|
-
* `private_key` (string):
|
|
113
|
+
* `public_key` (string): MD5 hash of your GPG public key
|
|
114
|
+
* `private_key` (string): MD5 hash of your GPG private key.
|
|
111
115
|
* `private_key_password` (string): Your GPG private key password. Only required for password protected keys.
|
|
112
116
|
* `name` (string): Your GPG key name.
|
|
113
117
|
|
|
@@ -119,6 +123,8 @@ await gpg_key.update({
|
|
|
119
123
|
"expires_at": "2000-01-01T01:00:00Z",
|
|
120
124
|
"name": "key name",
|
|
121
125
|
"user_id": 1,
|
|
126
|
+
"public_key_md5": "7f8bc1210b09b9ddf469e6b6b8920e76",
|
|
127
|
+
"private_key_md5": "ab236cfe4a195f0226bc2e674afdd6b0",
|
|
122
128
|
"public_key": "7f8bc1210b09b9ddf469e6b6b8920e76",
|
|
123
129
|
"private_key": "ab236cfe4a195f0226bc2e674afdd6b0",
|
|
124
130
|
"private_key_password": "[your GPG private key password]"
|
package/lib/Files.js
CHANGED
|
@@ -12,7 +12,7 @@ var apiKey;
|
|
|
12
12
|
var baseUrl = 'https://app.files.com';
|
|
13
13
|
var sessionId = null;
|
|
14
14
|
var language = null;
|
|
15
|
-
var version = '1.2.
|
|
15
|
+
var version = '1.2.291';
|
|
16
16
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
|
17
17
|
var logLevel = _Logger.LogLevel.INFO;
|
|
18
18
|
var debugRequest = false;
|
package/lib/models/GpgKey.js
CHANGED
|
@@ -60,6 +60,20 @@ var GpgKey = /*#__PURE__*/(0, _createClass2.default)(function GpgKey() {
|
|
|
60
60
|
(0, _defineProperty2.default)(this, "setUserId", function (value) {
|
|
61
61
|
_this.attributes.user_id = value;
|
|
62
62
|
});
|
|
63
|
+
// string # MD5 hash of your GPG public key
|
|
64
|
+
(0, _defineProperty2.default)(this, "getPublicKeyMd5", function () {
|
|
65
|
+
return _this.attributes.public_key_md5;
|
|
66
|
+
});
|
|
67
|
+
(0, _defineProperty2.default)(this, "setPublicKeyMd5", function (value) {
|
|
68
|
+
_this.attributes.public_key_md5 = value;
|
|
69
|
+
});
|
|
70
|
+
// string # MD5 hash of your GPG private key.
|
|
71
|
+
(0, _defineProperty2.default)(this, "getPrivateKeyMd5", function () {
|
|
72
|
+
return _this.attributes.private_key_md5;
|
|
73
|
+
});
|
|
74
|
+
(0, _defineProperty2.default)(this, "setPrivateKeyMd5", function (value) {
|
|
75
|
+
_this.attributes.private_key_md5 = value;
|
|
76
|
+
});
|
|
63
77
|
// string # Your GPG public key
|
|
64
78
|
(0, _defineProperty2.default)(this, "getPublicKey", function () {
|
|
65
79
|
return _this.attributes.public_key;
|
|
@@ -110,8 +124,8 @@ var GpgKey = /*#__PURE__*/(0, _createClass2.default)(function GpgKey() {
|
|
|
110
124
|
_this.attributes.generate_email = value;
|
|
111
125
|
});
|
|
112
126
|
// Parameters:
|
|
113
|
-
// public_key - string -
|
|
114
|
-
// private_key - string -
|
|
127
|
+
// public_key - string - MD5 hash of your GPG public key
|
|
128
|
+
// private_key - string - MD5 hash of your GPG private key.
|
|
115
129
|
// private_key_password - string - Your GPG private key password. Only required for password protected keys.
|
|
116
130
|
// name - string - Your GPG key name.
|
|
117
131
|
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
@@ -390,8 +404,8 @@ _GpgKey = GpgKey;
|
|
|
390
404
|
});
|
|
391
405
|
// Parameters:
|
|
392
406
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
393
|
-
// public_key - string -
|
|
394
|
-
// private_key - string -
|
|
407
|
+
// public_key - string - MD5 hash of your GPG public key
|
|
408
|
+
// private_key - string - MD5 hash of your GPG private key.
|
|
395
409
|
// private_key_password - string - Your GPG private key password. Only required for password protected keys.
|
|
396
410
|
// name (required) - string - Your GPG key name.
|
|
397
411
|
// generate_expires_at - string - Expiration date of the key. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/GpgKey.js
CHANGED
|
@@ -56,6 +56,20 @@ class GpgKey {
|
|
|
56
56
|
this.attributes.user_id = value
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
// string # MD5 hash of your GPG public key
|
|
60
|
+
getPublicKeyMd5 = () => this.attributes.public_key_md5
|
|
61
|
+
|
|
62
|
+
setPublicKeyMd5 = value => {
|
|
63
|
+
this.attributes.public_key_md5 = value
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// string # MD5 hash of your GPG private key.
|
|
67
|
+
getPrivateKeyMd5 = () => this.attributes.private_key_md5
|
|
68
|
+
|
|
69
|
+
setPrivateKeyMd5 = value => {
|
|
70
|
+
this.attributes.private_key_md5 = value
|
|
71
|
+
}
|
|
72
|
+
|
|
59
73
|
// string # Your GPG public key
|
|
60
74
|
getPublicKey = () => this.attributes.public_key
|
|
61
75
|
|
|
@@ -106,8 +120,8 @@ class GpgKey {
|
|
|
106
120
|
}
|
|
107
121
|
|
|
108
122
|
// Parameters:
|
|
109
|
-
// public_key - string -
|
|
110
|
-
// private_key - string -
|
|
123
|
+
// public_key - string - MD5 hash of your GPG public key
|
|
124
|
+
// private_key - string - MD5 hash of your GPG private key.
|
|
111
125
|
// private_key_password - string - Your GPG private key password. Only required for password protected keys.
|
|
112
126
|
// name - string - Your GPG key name.
|
|
113
127
|
update = async (params = {}) => {
|
|
@@ -246,8 +260,8 @@ class GpgKey {
|
|
|
246
260
|
|
|
247
261
|
// Parameters:
|
|
248
262
|
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
|
249
|
-
// public_key - string -
|
|
250
|
-
// private_key - string -
|
|
263
|
+
// public_key - string - MD5 hash of your GPG public key
|
|
264
|
+
// private_key - string - MD5 hash of your GPG private key.
|
|
251
265
|
// private_key_password - string - Your GPG private key password. Only required for password protected keys.
|
|
252
266
|
// name (required) - string - Your GPG key name.
|
|
253
267
|
// generate_expires_at - string - Expiration date of the key. Used for the generation of the key. Will be ignored if `generate_keypair` is false.
|