files.com 1.1.17 → 1.1.18
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/PublicKey.md +4 -1
- package/lib/Files.js +1 -1
- package/lib/models/PublicKey.js +8 -1
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/PublicKey.js +8 -1
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.18
|
package/docs/models/PublicKey.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
"title": "My public key",
|
9
9
|
"created_at": "2000-01-01T01:00:00Z",
|
10
10
|
"fingerprint": "43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8",
|
11
|
+
"fingerprint_sha256": "V5Q5t/ghT3R8Tol5GX9385bzmpygWVRnLuI9EXNrjCX",
|
11
12
|
"username": "User",
|
12
13
|
"user_id": 1
|
13
14
|
}
|
@@ -16,7 +17,8 @@
|
|
16
17
|
* `id` (int64): Public key ID
|
17
18
|
* `title` (string): Public key title
|
18
19
|
* `created_at` (date-time): Public key created at date/time
|
19
|
-
* `fingerprint` (string): Public key fingerprint
|
20
|
+
* `fingerprint` (string): Public key fingerprint (MD5)
|
21
|
+
* `fingerprint_sha256` (string): Public key fingerprint (SHA256)
|
20
22
|
* `username` (string): Username of the user this public key is associated with
|
21
23
|
* `user_id` (int64): User ID this public key is associated with
|
22
24
|
* `public_key` (string): Actual contents of SSH key.
|
@@ -96,6 +98,7 @@ await public_key.update({
|
|
96
98
|
"title": "My public key",
|
97
99
|
"created_at": "2000-01-01T01:00:00Z",
|
98
100
|
"fingerprint": "43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8",
|
101
|
+
"fingerprint_sha256": "V5Q5t/ghT3R8Tol5GX9385bzmpygWVRnLuI9EXNrjCX",
|
99
102
|
"username": "User",
|
100
103
|
"user_id": 1
|
101
104
|
}
|
package/lib/Files.js
CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
|
|
11
11
|
var apiKey;
|
12
12
|
var baseUrl = 'https://app.files.com';
|
13
13
|
var sessionId = null;
|
14
|
-
var version = '1.1.
|
14
|
+
var version = '1.1.18';
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
17
17
|
var debugRequest = false;
|
package/lib/models/PublicKey.js
CHANGED
@@ -51,13 +51,20 @@ var PublicKey = /*#__PURE__*/(0, _createClass2.default)(function PublicKey() {
|
|
51
51
|
(0, _defineProperty2.default)(this, "getCreatedAt", function () {
|
52
52
|
return _this.attributes.created_at;
|
53
53
|
});
|
54
|
-
// string # Public key fingerprint
|
54
|
+
// string # Public key fingerprint (MD5)
|
55
55
|
(0, _defineProperty2.default)(this, "getFingerprint", function () {
|
56
56
|
return _this.attributes.fingerprint;
|
57
57
|
});
|
58
58
|
(0, _defineProperty2.default)(this, "setFingerprint", function (value) {
|
59
59
|
_this.attributes.fingerprint = value;
|
60
60
|
});
|
61
|
+
// string # Public key fingerprint (SHA256)
|
62
|
+
(0, _defineProperty2.default)(this, "getFingerprintSha256", function () {
|
63
|
+
return _this.attributes.fingerprint_sha256;
|
64
|
+
});
|
65
|
+
(0, _defineProperty2.default)(this, "setFingerprintSha256", function (value) {
|
66
|
+
_this.attributes.fingerprint_sha256 = value;
|
67
|
+
});
|
61
68
|
// string # Username of the user this public key is associated with
|
62
69
|
(0, _defineProperty2.default)(this, "getUsername", function () {
|
63
70
|
return _this.attributes.username;
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/PublicKey.js
CHANGED
@@ -41,13 +41,20 @@ class PublicKey {
|
|
41
41
|
// date-time # Public key created at date/time
|
42
42
|
getCreatedAt = () => this.attributes.created_at
|
43
43
|
|
44
|
-
// string # Public key fingerprint
|
44
|
+
// string # Public key fingerprint (MD5)
|
45
45
|
getFingerprint = () => this.attributes.fingerprint
|
46
46
|
|
47
47
|
setFingerprint = value => {
|
48
48
|
this.attributes.fingerprint = value
|
49
49
|
}
|
50
50
|
|
51
|
+
// string # Public key fingerprint (SHA256)
|
52
|
+
getFingerprintSha256 = () => this.attributes.fingerprint_sha256
|
53
|
+
|
54
|
+
setFingerprintSha256 = value => {
|
55
|
+
this.attributes.fingerprint_sha256 = value
|
56
|
+
}
|
57
|
+
|
51
58
|
// string # Username of the user this public key is associated with
|
52
59
|
getUsername = () => this.attributes.username
|
53
60
|
|