files.com 1.2.290 → 1.2.292

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 CHANGED
@@ -1 +1 @@
1
- 1.2.290
1
+ 1.2.292
@@ -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): Your GPG public key
83
- * `private_key` (string): Your GPG private key.
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): Your GPG public key
110
- * `private_key` (string): Your GPG private key.
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]"
@@ -167,8 +167,8 @@ await User.list({
167
167
 
168
168
  * `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
169
169
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
170
- * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `name`, `company`, `password_validity_days`, `ssl_required`, `username` or `site_admin`.
171
- * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `name`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ site_admin, username ]`, `[ not_site_admin, username ]` or `[ company, name ]`.
170
+ * `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `name`, `company`, `password_validity_days`, `ssl_required`, `username`, `site_admin` or `disabled`.
171
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `name`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until`, `not_site_admin` or `disabled`. Valid field combinations are `[ site_admin, username ]`, `[ not_site_admin, username ]` or `[ company, name ]`.
172
172
  * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
173
173
  * `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
174
174
  * `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `username`, `name`, `email` or `company`. Valid field combinations are `[ company, name ]`.
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.290';
15
+ var version = '1.2.292';
16
16
  var userAgent = "Files.com JavaScript SDK v".concat(version);
17
17
  var logLevel = _Logger.LogLevel.INFO;
18
18
  var debugRequest = false;
@@ -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 - Your GPG public key
114
- // private_key - string - Your GPG private key.
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 - Your GPG public key
394
- // private_key - string - Your GPG private key.
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.
@@ -1075,8 +1075,8 @@ _User = User;
1075
1075
  // Parameters:
1076
1076
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
1077
1077
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
1078
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `name`, `company`, `password_validity_days`, `ssl_required`, `username` or `site_admin`.
1079
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `name`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ site_admin, username ]`, `[ not_site_admin, username ]` or `[ company, name ]`.
1078
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `name`, `company`, `password_validity_days`, `ssl_required`, `username`, `site_admin` or `disabled`.
1079
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `name`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until`, `not_site_admin` or `disabled`. Valid field combinations are `[ site_admin, username ]`, `[ not_site_admin, username ]` or `[ company, name ]`.
1080
1080
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
1081
1081
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
1082
1082
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `username`, `name`, `email` or `company`. Valid field combinations are `[ company, name ]`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.290",
3
+ "version": "1.2.292",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -6,7 +6,7 @@ let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
8
  let language = null
9
- const version = '1.2.290'
9
+ const version = '1.2.292'
10
10
  let userAgent = `Files.com JavaScript SDK v${version}`
11
11
 
12
12
  let logLevel = LogLevel.INFO
@@ -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 - Your GPG public key
110
- // private_key - string - Your GPG private key.
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 - Your GPG public key
250
- // private_key - string - Your GPG private key.
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.
@@ -866,8 +866,8 @@ class User {
866
866
  // Parameters:
867
867
  // cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
868
868
  // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
869
- // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `name`, `company`, `password_validity_days`, `ssl_required`, `username` or `site_admin`.
870
- // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `name`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until` or `not_site_admin`. Valid field combinations are `[ site_admin, username ]`, `[ not_site_admin, username ]` or `[ company, name ]`.
869
+ // sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `name`, `company`, `password_validity_days`, `ssl_required`, `username`, `site_admin` or `disabled`.
870
+ // filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `username`, `name`, `email`, `company`, `site_admin`, `password_validity_days`, `ssl_required`, `last_login_at`, `authenticate_until`, `not_site_admin` or `disabled`. Valid field combinations are `[ site_admin, username ]`, `[ not_site_admin, username ]` or `[ company, name ]`.
871
871
  // filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
872
872
  // filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `password_validity_days`, `last_login_at` or `authenticate_until`.
873
873
  // filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `username`, `name`, `email` or `company`. Valid field combinations are `[ company, name ]`.