files.com 1.2.154 → 1.2.156
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/File.md +8 -0
- package/docs/models/Folder.md +4 -0
- package/docs/models/History.md +1 -1
- package/docs/models/Site.md +25 -0
- package/lib/Files.js +1 -1
- package/lib/models/File.js +14 -0
- package/lib/models/Folder.js +14 -0
- package/lib/models/History.js +1 -1
- package/lib/models/Site.js +25 -0
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/File.js +14 -0
- package/src/models/Folder.js +14 -0
- package/src/models/History.js +1 -1
- package/src/models/Site.js +20 -0
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.156
|
package/docs/models/File.md
CHANGED
|
@@ -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",
|
package/docs/models/Folder.md
CHANGED
|
@@ -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
|
package/docs/models/History.md
CHANGED
|
@@ -119,7 +119,7 @@ await History.listLogins({
|
|
|
119
119
|
* `display` (string): Display format. Leave blank or set to `full` or `parent`.
|
|
120
120
|
* `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.
|
|
121
121
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
122
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
|
122
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `action_login` or `created_at`.
|
|
123
123
|
|
|
124
124
|
---
|
|
125
125
|
|
package/docs/models/Site.md
CHANGED
|
@@ -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.
|
|
14
|
+
var version = '1.2.156';
|
|
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/File.js
CHANGED
|
@@ -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;
|
package/lib/models/Folder.js
CHANGED
|
@@ -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;
|
package/lib/models/History.js
CHANGED
|
@@ -373,7 +373,7 @@ _History = History;
|
|
|
373
373
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
|
374
374
|
// 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.
|
|
375
375
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
376
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
|
376
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `action_login` or `created_at`.
|
|
377
377
|
(0, _defineProperty2.default)(History, "listLogins", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
378
378
|
var _response$data4;
|
|
379
379
|
var params,
|
package/lib/models/Site.js
CHANGED
|
@@ -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
package/src/Files.js
CHANGED
package/src/models/File.js
CHANGED
|
@@ -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
|
|
package/src/models/Folder.js
CHANGED
|
@@ -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
|
|
package/src/models/History.js
CHANGED
|
@@ -223,7 +223,7 @@ class History {
|
|
|
223
223
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
|
224
224
|
// 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.
|
|
225
225
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
226
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
|
226
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `site_id`, `action_login` or `created_at`.
|
|
227
227
|
static listLogins = async (params = {}, options = {}) => {
|
|
228
228
|
if (params.start_at && !isString(params.start_at)) {
|
|
229
229
|
throw new errors.InvalidParameterError(`Bad parameter: start_at must be of type String, received ${getType(params.start_at)}`)
|
package/src/models/Site.js
CHANGED
|
@@ -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.
|