files.com 1.2.255 → 1.2.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.
- package/_VERSION +1 -1
- package/docs/models/PublicKey.md +3 -0
- package/lib/Files.js +1 -1
- package/lib/models/PublicKey.js +7 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/PublicKey.js +7 -0
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.256
|
package/docs/models/PublicKey.md
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
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
11
|
"fingerprint_sha256": "V5Q5t/ghT3R8Tol5GX9385bzmpygWVRnLuI9EXNrjCX",
|
|
12
|
+
"last_login_at": "2000-01-01T01:00:00Z",
|
|
12
13
|
"username": "User",
|
|
13
14
|
"user_id": 1
|
|
14
15
|
}
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
* `created_at` (date-time): Public key created at date/time
|
|
20
21
|
* `fingerprint` (string): Public key fingerprint (MD5)
|
|
21
22
|
* `fingerprint_sha256` (string): Public key fingerprint (SHA256)
|
|
23
|
+
* `last_login_at` (date-time): Key's most recent login time via SFTP
|
|
22
24
|
* `username` (string): Username of the user this public key is associated with
|
|
23
25
|
* `user_id` (int64): User ID this public key is associated with
|
|
24
26
|
* `public_key` (string): Actual contents of SSH key.
|
|
@@ -103,6 +105,7 @@ await public_key.update({
|
|
|
103
105
|
"created_at": "2000-01-01T01:00:00Z",
|
|
104
106
|
"fingerprint": "43:51:43:a1:b5:fc:8b:b7:0a:3a:a9:b1:0f:66:73:a8",
|
|
105
107
|
"fingerprint_sha256": "V5Q5t/ghT3R8Tol5GX9385bzmpygWVRnLuI9EXNrjCX",
|
|
108
|
+
"last_login_at": "2000-01-01T01:00:00Z",
|
|
106
109
|
"username": "User",
|
|
107
110
|
"user_id": 1
|
|
108
111
|
}
|
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.256';
|
|
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/PublicKey.js
CHANGED
|
@@ -64,6 +64,13 @@ var PublicKey = /*#__PURE__*/(0, _createClass2.default)(function PublicKey() {
|
|
|
64
64
|
(0, _defineProperty2.default)(this, "setFingerprintSha256", function (value) {
|
|
65
65
|
_this.attributes.fingerprint_sha256 = value;
|
|
66
66
|
});
|
|
67
|
+
// date-time # Key's most recent login time via SFTP
|
|
68
|
+
(0, _defineProperty2.default)(this, "getLastLoginAt", function () {
|
|
69
|
+
return _this.attributes.last_login_at;
|
|
70
|
+
});
|
|
71
|
+
(0, _defineProperty2.default)(this, "setLastLoginAt", function (value) {
|
|
72
|
+
_this.attributes.last_login_at = value;
|
|
73
|
+
});
|
|
67
74
|
// string # Username of the user this public key is associated with
|
|
68
75
|
(0, _defineProperty2.default)(this, "getUsername", function () {
|
|
69
76
|
return _this.attributes.username;
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/PublicKey.js
CHANGED
|
@@ -59,6 +59,13 @@ class PublicKey {
|
|
|
59
59
|
this.attributes.fingerprint_sha256 = value
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
// date-time # Key's most recent login time via SFTP
|
|
63
|
+
getLastLoginAt = () => this.attributes.last_login_at
|
|
64
|
+
|
|
65
|
+
setLastLoginAt = value => {
|
|
66
|
+
this.attributes.last_login_at = value
|
|
67
|
+
}
|
|
68
|
+
|
|
62
69
|
// string # Username of the user this public key is associated with
|
|
63
70
|
getUsername = () => this.attributes.username
|
|
64
71
|
|