files.com 1.2.155 → 1.2.157

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.155
1
+ 1.2.157
@@ -89,7 +89,7 @@
89
89
  * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
90
90
  * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run. Times of day in HH:MM format.
91
91
  * `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule Time Zone for when the automation should be run.
92
- * `source` (string): Source path. Supports globs, except on remote mounts.
92
+ * `source` (string): Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
93
93
  * `sync_ids` (array(int64)): IDs of remote sync folder behaviors to run by this Automation
94
94
  * `trigger_actions` (array(string)): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
95
95
  * `trigger` (string): How this automation is triggered to run.
@@ -137,7 +137,7 @@ await Automation.find(id)
137
137
 
138
138
  ```
139
139
  await Automation.create({
140
- 'source': "source",
140
+ 'source': "example",
141
141
  'destinations': ["folder_a/file_a.txt",{"folder_path":"folder_b","file_path":"file_b.txt"},{"folder_path":"folder_c"}],
142
142
  'destination_replace_from': "example",
143
143
  'destination_replace_to': "example",
@@ -170,12 +170,12 @@ await Automation.create({
170
170
 
171
171
  ### Parameters
172
172
 
173
- * `source` (string): Source Path
173
+ * `source` (string): Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
174
174
  * `destinations` (array(string)): A list of String destination paths or Hash of folder_path and optional file_path.
175
175
  * `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
176
176
  * `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
177
177
  * `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
178
- * `path` (string): Path on which this Automation runs. Supports globs.
178
+ * `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts.
179
179
  * `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
180
180
  * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
181
181
  * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
@@ -221,7 +221,7 @@ await automation.manual_run()
221
221
  const automation = await Automation.find(id)
222
222
 
223
223
  await automation.update({
224
- 'source': "source",
224
+ 'source': "example",
225
225
  'destinations': ["folder_a/file_a.txt",{"folder_path":"folder_b","file_path":"file_b.txt"},{"folder_path":"folder_c"}],
226
226
  'destination_replace_from': "example",
227
227
  'destination_replace_to': "example",
@@ -254,12 +254,12 @@ await automation.update({
254
254
  ### Parameters
255
255
 
256
256
  * `id` (int64): Required - Automation ID.
257
- * `source` (string): Source Path
257
+ * `source` (string): Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
258
258
  * `destinations` (array(string)): A list of String destination paths or Hash of folder_path and optional file_path.
259
259
  * `destination_replace_from` (string): If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
260
260
  * `destination_replace_to` (string): If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
261
261
  * `interval` (string): How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
262
- * `path` (string): Path on which this Automation runs. Supports globs.
262
+ * `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts.
263
263
  * `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
264
264
  * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
265
265
  * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
@@ -30,6 +30,8 @@
30
30
  "provided_mtime": "2000-01-01T01:00:00Z",
31
31
  "crc32": "70976923",
32
32
  "md5": "17c54824e9931a4688ca032d03f6663c",
33
+ "sha1": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
34
+ "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
33
35
  "mime_type": "application/octet-stream",
34
36
  "region": "us-east-1",
35
37
  "permissions": "rwd",
@@ -72,6 +74,8 @@
72
74
  * `provided_mtime` (date-time): File last modified date/time, according to the client who set it. Files.com allows desktop, FTP, SFTP, and WebDAV clients to set modified at times. This allows Desktop<->Cloud syncing to preserve modified at times.
73
75
  * `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
74
76
  * `md5` (string): File MD5 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
77
+ * `sha1` (string): File SHA1 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
78
+ * `sha256` (string): File SHA256 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
75
79
  * `mime_type` (string): MIME Type. This is determined by the filename extension and is not stored separately internally.
76
80
  * `region` (string): Region location
77
81
  * `permissions` (string): A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
@@ -196,6 +200,8 @@ await file.download({
196
200
  "provided_mtime": "2000-01-01T01:00:00Z",
197
201
  "crc32": "70976923",
198
202
  "md5": "17c54824e9931a4688ca032d03f6663c",
203
+ "sha1": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
204
+ "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
199
205
  "mime_type": "application/octet-stream",
200
206
  "region": "us-east-1",
201
207
  "permissions": "rwd",
@@ -265,6 +271,8 @@ await file.update({
265
271
  "provided_mtime": "2000-01-01T01:00:00Z",
266
272
  "crc32": "70976923",
267
273
  "md5": "17c54824e9931a4688ca032d03f6663c",
274
+ "sha1": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
275
+ "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
268
276
  "mime_type": "application/octet-stream",
269
277
  "region": "us-east-1",
270
278
  "permissions": "rwd",
@@ -30,6 +30,8 @@
30
30
  "provided_mtime": "2000-01-01T01:00:00Z",
31
31
  "crc32": "70976923",
32
32
  "md5": "17c54824e9931a4688ca032d03f6663c",
33
+ "sha1": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
34
+ "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
33
35
  "mime_type": "application/octet-stream",
34
36
  "region": "us-east-1",
35
37
  "permissions": "rwd",
@@ -72,6 +74,8 @@
72
74
  * `provided_mtime` (date-time): File last modified date/time, according to the client who set it. Files.com allows desktop, FTP, SFTP, and WebDAV clients to set modified at times. This allows Desktop<->Cloud syncing to preserve modified at times.
73
75
  * `crc32` (string): File CRC32 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
74
76
  * `md5` (string): File MD5 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
77
+ * `sha1` (string): File SHA1 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
78
+ * `sha256` (string): File SHA256 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
75
79
  * `mime_type` (string): MIME Type. This is determined by the filename extension and is not stored separately internally.
76
80
  * `region` (string): Region location
77
81
  * `permissions` (string): A short string representing the current user's permissions. Can be `r` (Read),`w` (Write),`d` (Delete), `l` (List) or any combination
@@ -44,6 +44,10 @@
44
44
  "bundle_watermark_value": {
45
45
  "key": "example value"
46
46
  },
47
+ "calculate_file_checksums_crc32": true,
48
+ "calculate_file_checksums_md5": true,
49
+ "calculate_file_checksums_sha1": true,
50
+ "calculate_file_checksums_sha256": true,
47
51
  "uploads_via_email_authentication": true,
48
52
  "color2_left": "#0066a7",
49
53
  "color2_link": "#d34f5d",
@@ -62,6 +66,7 @@
62
66
  "desktop_app": true,
63
67
  "desktop_app_session_ip_pinning": true,
64
68
  "desktop_app_session_lifetime": 1,
69
+ "legacy_checksums_mode": true,
65
70
  "mobile_app": true,
66
71
  "mobile_app_session_ip_pinning": true,
67
72
  "mobile_app_session_lifetime": 1,
@@ -170,6 +175,11 @@
170
175
  "allowed_2fa_method_totp": true,
171
176
  "allowed_2fa_method_webauthn": true,
172
177
  "allowed_2fa_method_yubi": true,
178
+ "calculate_file_checksums_crc32": true,
179
+ "calculate_file_checksums_md5": true,
180
+ "calculate_file_checksums_sha1": true,
181
+ "calculate_file_checksums_sha256": true,
182
+ "legacy_checksums_mode": true,
173
183
  "use_provided_modified_at": true,
174
184
  "windows_mode_ftp": false,
175
185
  "user_belongs_to_parent_site": false
@@ -321,6 +331,10 @@
321
331
  * `bundle_upload_receipt_notifications` (string): Do Bundle uploaders receive upload confirmation notifications?
322
332
  * `bundle_watermark_attachment` (Image): Preview watermark image applied to all bundle items.
323
333
  * `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
334
+ * `calculate_file_checksums_crc32` (boolean): Calculate CRC32 checksums for files?
335
+ * `calculate_file_checksums_md5` (boolean): Calculate MD5 checksums for files?
336
+ * `calculate_file_checksums_sha1` (boolean): Calculate SHA1 checksums for files?
337
+ * `calculate_file_checksums_sha256` (boolean): Calculate SHA256 checksums for files?
324
338
  * `uploads_via_email_authentication` (boolean): Do incoming emails in the Inboxes require checking for SPF/DKIM/DMARC?
325
339
  * `color2_left` (string): Page link and button color
326
340
  * `color2_link` (string): Top bar link color
@@ -339,6 +353,7 @@
339
353
  * `desktop_app` (boolean): Is the desktop app enabled?
340
354
  * `desktop_app_session_ip_pinning` (boolean): Is desktop app session IP pinning enabled?
341
355
  * `desktop_app_session_lifetime` (int64): Desktop app session lifetime (in hours)
356
+ * `legacy_checksums_mode` (boolean): Use legacy checksums mode?
342
357
  * `mobile_app` (boolean): Is the mobile app enabled?
343
358
  * `mobile_app_session_ip_pinning` (boolean): Is mobile app session IP pinning enabled?
344
359
  * `mobile_app_session_lifetime` (int64): Mobile app session lifetime (in hours)
@@ -515,6 +530,11 @@ await Site.update({
515
530
  'additional_text_file_types': ["example"],
516
531
  'bundle_require_note': true,
517
532
  'bundle_send_shared_receipts': true,
533
+ 'calculate_file_checksums_crc32': true,
534
+ 'calculate_file_checksums_md5': true,
535
+ 'calculate_file_checksums_sha1': true,
536
+ 'calculate_file_checksums_sha256': true,
537
+ 'legacy_checksums_mode': true,
518
538
  'session_expiry': 1.0,
519
539
  'ssl_required': true,
520
540
  'tls_disabled': true,
@@ -669,6 +689,11 @@ await Site.update({
669
689
  * `additional_text_file_types` (array(string)): Additional extensions that are considered text files
670
690
  * `bundle_require_note` (boolean): Do Bundles require internal notes?
671
691
  * `bundle_send_shared_receipts` (boolean): Do Bundle creators receive receipts of invitations?
692
+ * `calculate_file_checksums_crc32` (boolean): Calculate CRC32 checksums for files?
693
+ * `calculate_file_checksums_md5` (boolean): Calculate MD5 checksums for files?
694
+ * `calculate_file_checksums_sha1` (boolean): Calculate SHA1 checksums for files?
695
+ * `calculate_file_checksums_sha256` (boolean): Calculate SHA256 checksums for files?
696
+ * `legacy_checksums_mode` (boolean): Use legacy checksums mode?
672
697
  * `session_expiry` (double): Session expiry in hours
673
698
  * `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
674
699
  * `tls_disabled` (boolean): DO NOT ENABLE. This setting allows TLSv1.0 and TLSv1.1 to be used on your site. We intend to remove this capability entirely in early 2024. If set, the `sftp_insecure_ciphers` flag will be automatically set to true.
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.2.155';
14
+ var version = '1.2.157';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -215,7 +215,7 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
215
215
  (0, _defineProperty2.default)(this, "setScheduleTimeZone", function (value) {
216
216
  _this.attributes.schedule_time_zone = value;
217
217
  });
218
- // string # Source path. Supports globs, except on remote mounts.
218
+ // string # Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
219
219
  (0, _defineProperty2.default)(this, "getSource", function () {
220
220
  return _this.attributes.source;
221
221
  });
@@ -321,12 +321,12 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
321
321
  }, _callee);
322
322
  })));
323
323
  // Parameters:
324
- // source - string - Source Path
324
+ // source - string - Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
325
325
  // destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
326
326
  // destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
327
327
  // destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
328
328
  // interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
329
- // path - string - Path on which this Automation runs. Supports globs.
329
+ // path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
330
330
  // sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
331
331
  // user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
332
332
  // group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
@@ -717,12 +717,12 @@ _Automation = Automation;
717
717
  return _Automation.find(id, params, options);
718
718
  });
719
719
  // Parameters:
720
- // source - string - Source Path
720
+ // source - string - Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
721
721
  // destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
722
722
  // destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
723
723
  // destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
724
724
  // interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
725
- // path - string - Path on which this Automation runs. Supports globs.
725
+ // path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
726
726
  // sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
727
727
  // user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
728
728
  // group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
@@ -330,6 +330,20 @@ var File = /*#__PURE__*/(0, _createClass2.default)(function File() {
330
330
  (0, _defineProperty2.default)(this, "setMd5", function (value) {
331
331
  _this.attributes.md5 = value;
332
332
  });
333
+ // string # File SHA1 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
334
+ (0, _defineProperty2.default)(this, "getSha1", function () {
335
+ return _this.attributes.sha1;
336
+ });
337
+ (0, _defineProperty2.default)(this, "setSha1", function (value) {
338
+ _this.attributes.sha1 = value;
339
+ });
340
+ // string # File SHA256 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
341
+ (0, _defineProperty2.default)(this, "getSha256", function () {
342
+ return _this.attributes.sha256;
343
+ });
344
+ (0, _defineProperty2.default)(this, "setSha256", function (value) {
345
+ _this.attributes.sha256 = value;
346
+ });
333
347
  // string # MIME Type. This is determined by the filename extension and is not stored separately internally.
334
348
  (0, _defineProperty2.default)(this, "getMimeType", function () {
335
349
  return _this.attributes.mime_type;
@@ -196,6 +196,20 @@ var Folder = /*#__PURE__*/(0, _createClass2.default)(function Folder() {
196
196
  (0, _defineProperty2.default)(this, "setMd5", function (value) {
197
197
  _this.attributes.md5 = value;
198
198
  });
199
+ // string # File SHA1 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
200
+ (0, _defineProperty2.default)(this, "getSha1", function () {
201
+ return _this.attributes.sha1;
202
+ });
203
+ (0, _defineProperty2.default)(this, "setSha1", function (value) {
204
+ _this.attributes.sha1 = value;
205
+ });
206
+ // string # File SHA256 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
207
+ (0, _defineProperty2.default)(this, "getSha256", function () {
208
+ return _this.attributes.sha256;
209
+ });
210
+ (0, _defineProperty2.default)(this, "setSha256", function (value) {
211
+ _this.attributes.sha256 = value;
212
+ });
199
213
  // string # MIME Type. This is determined by the filename extension and is not stored separately internally.
200
214
  (0, _defineProperty2.default)(this, "getMimeType", function () {
201
215
  return _this.attributes.mime_type;
@@ -157,6 +157,22 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
157
157
  (0, _defineProperty2.default)(this, "getBundleWatermarkValue", function () {
158
158
  return _this.attributes.bundle_watermark_value;
159
159
  });
160
+ // boolean # Calculate CRC32 checksums for files?
161
+ (0, _defineProperty2.default)(this, "getCalculateFileChecksumsCrc32", function () {
162
+ return _this.attributes.calculate_file_checksums_crc32;
163
+ });
164
+ // boolean # Calculate MD5 checksums for files?
165
+ (0, _defineProperty2.default)(this, "getCalculateFileChecksumsMd5", function () {
166
+ return _this.attributes.calculate_file_checksums_md5;
167
+ });
168
+ // boolean # Calculate SHA1 checksums for files?
169
+ (0, _defineProperty2.default)(this, "getCalculateFileChecksumsSha1", function () {
170
+ return _this.attributes.calculate_file_checksums_sha1;
171
+ });
172
+ // boolean # Calculate SHA256 checksums for files?
173
+ (0, _defineProperty2.default)(this, "getCalculateFileChecksumsSha256", function () {
174
+ return _this.attributes.calculate_file_checksums_sha256;
175
+ });
160
176
  // boolean # Do incoming emails in the Inboxes require checking for SPF/DKIM/DMARC?
161
177
  (0, _defineProperty2.default)(this, "getUploadsViaEmailAuthentication", function () {
162
178
  return _this.attributes.uploads_via_email_authentication;
@@ -229,6 +245,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
229
245
  (0, _defineProperty2.default)(this, "getDesktopAppSessionLifetime", function () {
230
246
  return _this.attributes.desktop_app_session_lifetime;
231
247
  });
248
+ // boolean # Use legacy checksums mode?
249
+ (0, _defineProperty2.default)(this, "getLegacyChecksumsMode", function () {
250
+ return _this.attributes.legacy_checksums_mode;
251
+ });
232
252
  // boolean # Is the mobile app enabled?
233
253
  (0, _defineProperty2.default)(this, "getMobileApp", function () {
234
254
  return _this.attributes.mobile_app;
@@ -781,6 +801,11 @@ _Site = Site;
781
801
  // additional_text_file_types - array(string) - Additional extensions that are considered text files
782
802
  // bundle_require_note - boolean - Do Bundles require internal notes?
783
803
  // bundle_send_shared_receipts - boolean - Do Bundle creators receive receipts of invitations?
804
+ // calculate_file_checksums_crc32 - boolean - Calculate CRC32 checksums for files?
805
+ // calculate_file_checksums_md5 - boolean - Calculate MD5 checksums for files?
806
+ // calculate_file_checksums_sha1 - boolean - Calculate SHA1 checksums for files?
807
+ // calculate_file_checksums_sha256 - boolean - Calculate SHA256 checksums for files?
808
+ // legacy_checksums_mode - boolean - Use legacy checksums mode?
784
809
  // session_expiry - double - Session expiry in hours
785
810
  // ssl_required - boolean - Is SSL required? Disabling this is insecure.
786
811
  // tls_disabled - boolean - DO NOT ENABLE. This setting allows TLSv1.0 and TLSv1.1 to be used on your site. We intend to remove this capability entirely in early 2024. If set, the `sftp_insecure_ciphers` flag will be automatically set to true.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.155",
3
+ "version": "1.2.157",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.155'
8
+ const version = '1.2.157'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -210,7 +210,7 @@ class Automation {
210
210
  this.attributes.schedule_time_zone = value
211
211
  }
212
212
 
213
- // string # Source path. Supports globs, except on remote mounts.
213
+ // string # Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
214
214
  getSource = () => this.attributes.source
215
215
 
216
216
  setSource = value => {
@@ -293,12 +293,12 @@ class Automation {
293
293
  }
294
294
 
295
295
  // Parameters:
296
- // source - string - Source Path
296
+ // source - string - Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
297
297
  // destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
298
298
  // destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
299
299
  // destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
300
300
  // interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
301
- // path - string - Path on which this Automation runs. Supports globs.
301
+ // path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
302
302
  // sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
303
303
  // user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
304
304
  // group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
@@ -519,12 +519,12 @@ class Automation {
519
519
  Automation.find(id, params, options)
520
520
 
521
521
  // Parameters:
522
- // source - string - Source Path
522
+ // source - string - Source path/glob. See Automation docs for exact description, but this is used to filter for files in the `path` to find files to operate on. Supports globs, except on remote mounts.
523
523
  // destinations - array(string) - A list of String destination paths or Hash of folder_path and optional file_path.
524
524
  // destination_replace_from - string - If set, this string in the destination path will be replaced with the value in `destination_replace_to`.
525
525
  // destination_replace_to - string - If set, this string will replace the value `destination_replace_from` in the destination filename. You can use special patterns here.
526
526
  // interval - string - How often to run this automation? One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
527
- // path - string - Path on which this Automation runs. Supports globs.
527
+ // path - string - Path on which this Automation runs. Supports globs, except on remote mounts.
528
528
  // sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
529
529
  // user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
530
530
  // group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
@@ -473,6 +473,20 @@ class File {
473
473
  this.attributes.md5 = value
474
474
  }
475
475
 
476
+ // string # File SHA1 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
477
+ getSha1 = () => this.attributes.sha1
478
+
479
+ setSha1 = value => {
480
+ this.attributes.sha1 = value
481
+ }
482
+
483
+ // string # File SHA256 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
484
+ getSha256 = () => this.attributes.sha256
485
+
486
+ setSha256 = value => {
487
+ this.attributes.sha256 = value
488
+ }
489
+
476
490
  // string # MIME Type. This is determined by the filename extension and is not stored separately internally.
477
491
  getMimeType = () => this.attributes.mime_type
478
492
 
@@ -192,6 +192,20 @@ class Folder {
192
192
  this.attributes.md5 = value
193
193
  }
194
194
 
195
+ // string # File SHA1 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
196
+ getSha1 = () => this.attributes.sha1
197
+
198
+ setSha1 = value => {
199
+ this.attributes.sha1 = value
200
+ }
201
+
202
+ // string # File SHA256 checksum. This is sometimes delayed, so if you get a blank response, wait and try again.
203
+ getSha256 = () => this.attributes.sha256
204
+
205
+ setSha256 = value => {
206
+ this.attributes.sha256 = value
207
+ }
208
+
195
209
  // string # MIME Type. This is determined by the filename extension and is not stored separately internally.
196
210
  getMimeType = () => this.attributes.mime_type
197
211
 
@@ -121,6 +121,18 @@ class Site {
121
121
  // object # Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
122
122
  getBundleWatermarkValue = () => this.attributes.bundle_watermark_value
123
123
 
124
+ // boolean # Calculate CRC32 checksums for files?
125
+ getCalculateFileChecksumsCrc32 = () => this.attributes.calculate_file_checksums_crc32
126
+
127
+ // boolean # Calculate MD5 checksums for files?
128
+ getCalculateFileChecksumsMd5 = () => this.attributes.calculate_file_checksums_md5
129
+
130
+ // boolean # Calculate SHA1 checksums for files?
131
+ getCalculateFileChecksumsSha1 = () => this.attributes.calculate_file_checksums_sha1
132
+
133
+ // boolean # Calculate SHA256 checksums for files?
134
+ getCalculateFileChecksumsSha256 = () => this.attributes.calculate_file_checksums_sha256
135
+
124
136
  // boolean # Do incoming emails in the Inboxes require checking for SPF/DKIM/DMARC?
125
137
  getUploadsViaEmailAuthentication = () => this.attributes.uploads_via_email_authentication
126
138
 
@@ -175,6 +187,9 @@ class Site {
175
187
  // int64 # Desktop app session lifetime (in hours)
176
188
  getDesktopAppSessionLifetime = () => this.attributes.desktop_app_session_lifetime
177
189
 
190
+ // boolean # Use legacy checksums mode?
191
+ getLegacyChecksumsMode = () => this.attributes.legacy_checksums_mode
192
+
178
193
  // boolean # Is the mobile app enabled?
179
194
  getMobileApp = () => this.attributes.mobile_app
180
195
 
@@ -571,6 +586,11 @@ class Site {
571
586
  // additional_text_file_types - array(string) - Additional extensions that are considered text files
572
587
  // bundle_require_note - boolean - Do Bundles require internal notes?
573
588
  // bundle_send_shared_receipts - boolean - Do Bundle creators receive receipts of invitations?
589
+ // calculate_file_checksums_crc32 - boolean - Calculate CRC32 checksums for files?
590
+ // calculate_file_checksums_md5 - boolean - Calculate MD5 checksums for files?
591
+ // calculate_file_checksums_sha1 - boolean - Calculate SHA1 checksums for files?
592
+ // calculate_file_checksums_sha256 - boolean - Calculate SHA256 checksums for files?
593
+ // legacy_checksums_mode - boolean - Use legacy checksums mode?
574
594
  // session_expiry - double - Session expiry in hours
575
595
  // ssl_required - boolean - Is SSL required? Disabling this is insecure.
576
596
  // tls_disabled - boolean - DO NOT ENABLE. This setting allows TLSv1.0 and TLSv1.1 to be used on your site. We intend to remove this capability entirely in early 2024. If set, the `sftp_insecure_ciphers` flag will be automatically set to true.