files.com 1.2.157 → 1.2.159
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/Behavior.md +2 -2
- package/docs/models/BundleAction.md +3 -8
- package/docs/models/BundleRecipient.md +1 -1
- package/docs/models/ExternalEvent.md +1 -1
- package/docs/models/History.md +5 -5
- package/docs/models/InboxRecipient.md +1 -1
- package/docs/models/Permission.md +1 -1
- package/docs/models/Request.md +2 -2
- package/docs/models/UsageDailySnapshot.md +1 -1
- package/docs/models/User.md +1 -1
- package/lib/Files.js +1 -1
- package/lib/models/Behavior.js +2 -2
- package/lib/models/BundleAction.js +5 -19
- package/lib/models/BundleRecipient.js +1 -1
- package/lib/models/ExternalEvent.js +1 -1
- package/lib/models/History.js +5 -5
- package/lib/models/InboxRecipient.js +1 -1
- package/lib/models/Permission.js +1 -1
- package/lib/models/Request.js +2 -2
- package/lib/models/UsageDailySnapshot.js +1 -1
- package/lib/models/User.js +1 -1
- package/package.json +1 -1
- package/src/Files.js +1 -1
- package/src/models/Behavior.js +2 -2
- package/src/models/BundleAction.js +2 -12
- package/src/models/BundleRecipient.js +1 -1
- package/src/models/ExternalEvent.js +1 -1
- package/src/models/History.js +5 -5
- package/src/models/InboxRecipient.js +1 -1
- package/src/models/Permission.js +1 -1
- package/src/models/Request.js +2 -2
- package/src/models/UsageDailySnapshot.js +1 -1
- package/src/models/User.js +1 -1
package/_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.159
|
package/docs/models/Behavior.md
CHANGED
|
@@ -43,7 +43,7 @@ await Behavior.list
|
|
|
43
43
|
|
|
44
44
|
* `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.
|
|
45
45
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
46
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior
|
|
46
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
|
|
47
47
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
|
48
48
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
|
49
49
|
|
|
@@ -75,7 +75,7 @@ await Behavior.listFor(path, {
|
|
|
75
75
|
|
|
76
76
|
* `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.
|
|
77
77
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
78
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior
|
|
78
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
|
|
79
79
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
|
80
80
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
|
81
81
|
* `path` (string): Required - Path to operate on.
|
|
@@ -41,10 +41,7 @@
|
|
|
41
41
|
## List Bundle Actions
|
|
42
42
|
|
|
43
43
|
```
|
|
44
|
-
await BundleAction.list
|
|
45
|
-
'bundle_id': 1,
|
|
46
|
-
'bundle_registration_id': 1,
|
|
47
|
-
})
|
|
44
|
+
await BundleAction.list
|
|
48
45
|
```
|
|
49
46
|
|
|
50
47
|
|
|
@@ -52,11 +49,9 @@ await BundleAction.list({
|
|
|
52
49
|
|
|
53
50
|
* `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.
|
|
54
51
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
55
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
|
56
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
|
52
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
53
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `bundle_id` or `bundle_registration_id`. Valid field combinations are `[ created_at, bundle_id ]`, `[ created_at, bundle_registration_id ]`, `[ bundle_id, bundle_registration_id ]` or `[ created_at, bundle_id, bundle_registration_id ]`.
|
|
57
54
|
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
58
55
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
59
56
|
* `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
60
57
|
* `filter_lteq` (object): If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
|
61
|
-
* `bundle_id` (int64): Bundle ID
|
|
62
|
-
* `bundle_registration_id` (int64): BundleRegistration ID
|
|
@@ -35,7 +35,7 @@ await BundleRecipient.list({
|
|
|
35
35
|
|
|
36
36
|
* `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.
|
|
37
37
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
38
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
|
38
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
39
39
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
|
40
40
|
* `bundle_id` (int64): Required - List recipients for the bundle with this ID.
|
|
41
41
|
|
|
@@ -49,7 +49,7 @@ await ExternalEvent.list
|
|
|
49
49
|
|
|
50
50
|
* `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.
|
|
51
51
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
52
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `
|
|
52
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `folder_behavior_id`, `siem_http_destination_id`, `created_at`, `event_type` or `status`.
|
|
53
53
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ created_at, event_type ]`, `[ created_at, remote_server_type ]`, `[ created_at, status ]`, `[ event_type, status ]` or `[ created_at, event_type, status ]`.
|
|
54
54
|
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
55
55
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
package/docs/models/History.md
CHANGED
|
@@ -56,7 +56,7 @@ await History.listForFile(path, {
|
|
|
56
56
|
* `display` (string): Display format. Leave blank or set to `full` or `parent`.
|
|
57
57
|
* `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.
|
|
58
58
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
59
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
|
59
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path` and `created_at`.
|
|
60
60
|
* `path` (string): Required - Path to operate on.
|
|
61
61
|
|
|
62
62
|
---
|
|
@@ -77,7 +77,7 @@ await History.listForFolder(path, {
|
|
|
77
77
|
* `display` (string): Display format. Leave blank or set to `full` or `parent`.
|
|
78
78
|
* `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.
|
|
79
79
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
80
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
|
80
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
|
81
81
|
* `path` (string): Required - Path to operate on.
|
|
82
82
|
|
|
83
83
|
---
|
|
@@ -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 `created_at`.
|
|
123
123
|
|
|
124
124
|
---
|
|
125
125
|
|
|
@@ -139,6 +139,6 @@ await History.list({
|
|
|
139
139
|
* `display` (string): Display format. Leave blank or set to `full` or `parent`.
|
|
140
140
|
* `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.
|
|
141
141
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
142
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `
|
|
143
|
-
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
|
142
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `created_at` or `user_id`.
|
|
143
|
+
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`. Valid field combinations are `[ user_id, folder ]`, `[ user_id, path ]`, `[ folder, path ]` or `[ user_id, folder, path ]`.
|
|
144
144
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
|
@@ -35,7 +35,7 @@ await InboxRecipient.list({
|
|
|
35
35
|
|
|
36
36
|
* `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.
|
|
37
37
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
38
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
|
38
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
39
39
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
|
40
40
|
* `inbox_id` (int64): Required - List recipients for the inbox with this ID.
|
|
41
41
|
|
|
@@ -42,7 +42,7 @@ await Permission.list({
|
|
|
42
42
|
|
|
43
43
|
* `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.
|
|
44
44
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
45
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `group_id`, `path
|
|
45
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `group_id`, `path` or `user_id`.
|
|
46
46
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id` or `user_id`. Valid field combinations are `[ path, group_id ]`, `[ path, user_id ]` or `[ group_id, user_id ]`.
|
|
47
47
|
* `filter_prefix` (object): If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
|
48
48
|
* `path` (string): Permission path. If provided, will scope all permissions(including upward) to this path.
|
package/docs/models/Request.md
CHANGED
|
@@ -38,7 +38,7 @@ await Request.list({
|
|
|
38
38
|
|
|
39
39
|
* `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.
|
|
40
40
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
41
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
|
41
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
42
42
|
* `mine` (boolean): Only show requests of the current user? (Defaults to true if current user is not a site admin.)
|
|
43
43
|
* `path` (string): Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
|
|
44
44
|
|
|
@@ -57,7 +57,7 @@ await Request.getFolder(path, {
|
|
|
57
57
|
|
|
58
58
|
* `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.
|
|
59
59
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
60
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
|
60
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
61
61
|
* `mine` (boolean): Only show requests of the current user? (Defaults to true if current user is not a site admin.)
|
|
62
62
|
* `path` (string): Required - Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
|
|
63
63
|
|
|
@@ -45,7 +45,7 @@ await UsageDailySnapshot.list
|
|
|
45
45
|
|
|
46
46
|
* `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.
|
|
47
47
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
48
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `date
|
|
48
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `date`.
|
|
49
49
|
* `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `date` and `usage_snapshot_id`. Valid field combinations are `[ date, usage_snapshot_id ]`.
|
|
50
50
|
* `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `date`.
|
|
51
51
|
* `filter_gteq` (object): If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `date`.
|
package/docs/models/User.md
CHANGED
|
@@ -163,7 +163,7 @@ await User.list
|
|
|
163
163
|
|
|
164
164
|
* `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.
|
|
165
165
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
166
|
-
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `name`, `company`, `site_admin`, `
|
|
166
|
+
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `name`, `company`, `site_admin`, `password_validity_days` or `ssl_required`.
|
|
167
167
|
* `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 `[ username, not_site_admin ]` and `[ name, company ]`.
|
|
168
168
|
* `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`.
|
|
169
169
|
* `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`.
|
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.159';
|
|
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/Behavior.js
CHANGED
|
@@ -285,7 +285,7 @@ _Behavior = Behavior;
|
|
|
285
285
|
// Parameters:
|
|
286
286
|
// 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.
|
|
287
287
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
288
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior
|
|
288
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
|
|
289
289
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
|
290
290
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
|
291
291
|
(0, _defineProperty2.default)(Behavior, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
@@ -384,7 +384,7 @@ _Behavior = Behavior;
|
|
|
384
384
|
// Parameters:
|
|
385
385
|
// 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.
|
|
386
386
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
387
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior
|
|
387
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
|
|
388
388
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
|
389
389
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
|
390
390
|
// path (required) - string - Path to operate on.
|
|
@@ -74,14 +74,12 @@ _BundleAction = BundleAction;
|
|
|
74
74
|
// Parameters:
|
|
75
75
|
// 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.
|
|
76
76
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
77
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
|
78
|
-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
|
77
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
78
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `bundle_id` or `bundle_registration_id`. Valid field combinations are `[ created_at, bundle_id ]`, `[ created_at, bundle_registration_id ]`, `[ bundle_id, bundle_registration_id ]` or `[ created_at, bundle_id, bundle_registration_id ]`.
|
|
79
79
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
80
80
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
81
81
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
82
82
|
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
|
83
|
-
// bundle_id - int64 - Bundle ID
|
|
84
|
-
// bundle_registration_id - int64 - BundleRegistration ID
|
|
85
83
|
(0, _defineProperty2.default)(BundleAction, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
86
84
|
var _response$data;
|
|
87
85
|
var params,
|
|
@@ -105,26 +103,14 @@ _BundleAction = BundleAction;
|
|
|
105
103
|
}
|
|
106
104
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params.per_page)));
|
|
107
105
|
case 6:
|
|
108
|
-
|
|
109
|
-
_context.next = 8;
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_id)));
|
|
113
|
-
case 8:
|
|
114
|
-
if (!(params.bundle_registration_id && !(0, _utils.isInt)(params.bundle_registration_id))) {
|
|
115
|
-
_context.next = 10;
|
|
116
|
-
break;
|
|
117
|
-
}
|
|
118
|
-
throw new errors.InvalidParameterError("Bad parameter: bundle_registration_id must be of type Int, received ".concat((0, _utils.getType)(params.bundle_registration_id)));
|
|
119
|
-
case 10:
|
|
120
|
-
_context.next = 12;
|
|
106
|
+
_context.next = 8;
|
|
121
107
|
return _Api.default.sendRequest('/bundle_actions', 'GET', params, options);
|
|
122
|
-
case
|
|
108
|
+
case 8:
|
|
123
109
|
response = _context.sent;
|
|
124
110
|
return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
|
125
111
|
return new _BundleAction(obj, options);
|
|
126
112
|
})) || []);
|
|
127
|
-
case
|
|
113
|
+
case 10:
|
|
128
114
|
case "end":
|
|
129
115
|
return _context.stop();
|
|
130
116
|
}
|
|
@@ -122,7 +122,7 @@ _BundleRecipient = BundleRecipient;
|
|
|
122
122
|
// Parameters:
|
|
123
123
|
// 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.
|
|
124
124
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
125
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
|
125
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
126
126
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
|
127
127
|
// bundle_id (required) - int64 - List recipients for the bundle with this ID.
|
|
128
128
|
(0, _defineProperty2.default)(BundleRecipient, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
@@ -168,7 +168,7 @@ _ExternalEvent = ExternalEvent;
|
|
|
168
168
|
// Parameters:
|
|
169
169
|
// 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.
|
|
170
170
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
171
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `
|
|
171
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `folder_behavior_id`, `siem_http_destination_id`, `created_at`, `event_type` or `status`.
|
|
172
172
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ created_at, event_type ]`, `[ created_at, remote_server_type ]`, `[ created_at, status ]`, `[ event_type, status ]` or `[ created_at, event_type, status ]`.
|
|
173
173
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
174
174
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
package/lib/models/History.js
CHANGED
|
@@ -109,7 +109,7 @@ _History = History;
|
|
|
109
109
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
|
110
110
|
// 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.
|
|
111
111
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
112
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
|
112
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path` and `created_at`.
|
|
113
113
|
// path (required) - string - Path to operate on.
|
|
114
114
|
(0, _defineProperty2.default)(History, "listForFile", /*#__PURE__*/function () {
|
|
115
115
|
var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(path) {
|
|
@@ -197,7 +197,7 @@ _History = History;
|
|
|
197
197
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
|
198
198
|
// 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.
|
|
199
199
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
200
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
|
200
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
|
201
201
|
// path (required) - string - Path to operate on.
|
|
202
202
|
(0, _defineProperty2.default)(History, "listForFolder", /*#__PURE__*/function () {
|
|
203
203
|
var _ref4 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(path) {
|
|
@@ -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 `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,
|
|
@@ -436,8 +436,8 @@ _History = History;
|
|
|
436
436
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
|
437
437
|
// 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.
|
|
438
438
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
439
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `
|
|
440
|
-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
|
439
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `created_at` or `user_id`.
|
|
440
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`. Valid field combinations are `[ user_id, folder ]`, `[ user_id, path ]`, `[ folder, path ]` or `[ user_id, folder, path ]`.
|
|
441
441
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
|
442
442
|
(0, _defineProperty2.default)(History, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
443
443
|
var _response$data5;
|
|
@@ -122,7 +122,7 @@ _InboxRecipient = InboxRecipient;
|
|
|
122
122
|
// Parameters:
|
|
123
123
|
// 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.
|
|
124
124
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
125
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
|
125
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
126
126
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
|
127
127
|
// inbox_id (required) - int64 - List recipients for the inbox with this ID.
|
|
128
128
|
(0, _defineProperty2.default)(InboxRecipient, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
package/lib/models/Permission.js
CHANGED
|
@@ -181,7 +181,7 @@ _Permission = Permission;
|
|
|
181
181
|
// Parameters:
|
|
182
182
|
// 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.
|
|
183
183
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
184
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `group_id`, `path
|
|
184
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `group_id`, `path` or `user_id`.
|
|
185
185
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id` or `user_id`. Valid field combinations are `[ path, group_id ]`, `[ path, user_id ]` or `[ group_id, user_id ]`.
|
|
186
186
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
|
187
187
|
// path - string - Permission path. If provided, will scope all permissions(including upward) to this path.
|
package/lib/models/Request.js
CHANGED
|
@@ -181,7 +181,7 @@ _Request = Request;
|
|
|
181
181
|
// Parameters:
|
|
182
182
|
// 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.
|
|
183
183
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
184
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
|
184
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
185
185
|
// mine - boolean - Only show requests of the current user? (Defaults to true if current user is not a site admin.)
|
|
186
186
|
// path - string - Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
|
|
187
187
|
(0, _defineProperty2.default)(Request, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
@@ -234,7 +234,7 @@ _Request = Request;
|
|
|
234
234
|
// Parameters:
|
|
235
235
|
// 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.
|
|
236
236
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
237
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
|
237
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
238
238
|
// mine - boolean - Only show requests of the current user? (Defaults to true if current user is not a site admin.)
|
|
239
239
|
// path (required) - string - Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
|
|
240
240
|
(0, _defineProperty2.default)(Request, "getFolder", /*#__PURE__*/function () {
|
|
@@ -94,7 +94,7 @@ _UsageDailySnapshot = UsageDailySnapshot;
|
|
|
94
94
|
// Parameters:
|
|
95
95
|
// 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.
|
|
96
96
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
97
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `date
|
|
97
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `date`.
|
|
98
98
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `date` and `usage_snapshot_id`. Valid field combinations are `[ date, usage_snapshot_id ]`.
|
|
99
99
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `date`.
|
|
100
100
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `date`.
|
package/lib/models/User.js
CHANGED
|
@@ -1061,7 +1061,7 @@ _User = User;
|
|
|
1061
1061
|
// Parameters:
|
|
1062
1062
|
// 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.
|
|
1063
1063
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
1064
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `name`, `company`, `site_admin`, `
|
|
1064
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `name`, `company`, `site_admin`, `password_validity_days` or `ssl_required`.
|
|
1065
1065
|
// 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 `[ username, not_site_admin ]` and `[ name, company ]`.
|
|
1066
1066
|
// 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`.
|
|
1067
1067
|
// 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`.
|
package/package.json
CHANGED
package/src/Files.js
CHANGED
package/src/models/Behavior.js
CHANGED
|
@@ -195,7 +195,7 @@ class Behavior {
|
|
|
195
195
|
// Parameters:
|
|
196
196
|
// 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.
|
|
197
197
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
198
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior
|
|
198
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
|
|
199
199
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
|
200
200
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
|
201
201
|
static list = async (params = {}, options = {}) => {
|
|
@@ -243,7 +243,7 @@ class Behavior {
|
|
|
243
243
|
// Parameters:
|
|
244
244
|
// 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.
|
|
245
245
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
246
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior
|
|
246
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `behavior`.
|
|
247
247
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `impacts_ui` and `behavior`.
|
|
248
248
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `behavior`.
|
|
249
249
|
// path (required) - string - Path to operate on.
|
|
@@ -49,14 +49,12 @@ class BundleAction {
|
|
|
49
49
|
// Parameters:
|
|
50
50
|
// 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.
|
|
51
51
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
52
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
|
53
|
-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
|
52
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
53
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `bundle_id` or `bundle_registration_id`. Valid field combinations are `[ created_at, bundle_id ]`, `[ created_at, bundle_registration_id ]`, `[ bundle_id, bundle_registration_id ]` or `[ created_at, bundle_id, bundle_registration_id ]`.
|
|
54
54
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
55
55
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
|
56
56
|
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
|
57
57
|
// filter_lteq - object - If set, return records where the specified field is less than or equal the supplied value. Valid fields are `created_at`.
|
|
58
|
-
// bundle_id - int64 - Bundle ID
|
|
59
|
-
// bundle_registration_id - int64 - BundleRegistration ID
|
|
60
58
|
static list = async (params = {}, options = {}) => {
|
|
61
59
|
if (params.cursor && !isString(params.cursor)) {
|
|
62
60
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params.cursor)}`)
|
|
@@ -66,14 +64,6 @@ class BundleAction {
|
|
|
66
64
|
throw new errors.InvalidParameterError(`Bad parameter: per_page must be of type Int, received ${getType(params.per_page)}`)
|
|
67
65
|
}
|
|
68
66
|
|
|
69
|
-
if (params.bundle_id && !isInt(params.bundle_id)) {
|
|
70
|
-
throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type Int, received ${getType(params.bundle_id)}`)
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if (params.bundle_registration_id && !isInt(params.bundle_registration_id)) {
|
|
74
|
-
throw new errors.InvalidParameterError(`Bad parameter: bundle_registration_id must be of type Int, received ${getType(params.bundle_registration_id)}`)
|
|
75
|
-
}
|
|
76
|
-
|
|
77
67
|
const response = await Api.sendRequest('/bundle_actions', 'GET', params, options)
|
|
78
68
|
|
|
79
69
|
return response?.data?.map(obj => new BundleAction(obj, options)) || []
|
|
@@ -90,7 +90,7 @@ class BundleRecipient {
|
|
|
90
90
|
// Parameters:
|
|
91
91
|
// 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.
|
|
92
92
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
93
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
|
93
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
94
94
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
|
95
95
|
// bundle_id (required) - int64 - List recipients for the bundle with this ID.
|
|
96
96
|
static list = async (params = {}, options = {}) => {
|
|
@@ -135,7 +135,7 @@ class ExternalEvent {
|
|
|
135
135
|
// Parameters:
|
|
136
136
|
// 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.
|
|
137
137
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
138
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `
|
|
138
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `remote_server_type`, `folder_behavior_id`, `siem_http_destination_id`, `created_at`, `event_type` or `status`.
|
|
139
139
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `event_type`, `remote_server_type`, `status`, `folder_behavior_id` or `siem_http_destination_id`. Valid field combinations are `[ created_at, event_type ]`, `[ created_at, remote_server_type ]`, `[ created_at, status ]`, `[ event_type, status ]` or `[ created_at, event_type, status ]`.
|
|
140
140
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
|
141
141
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
|
package/src/models/History.js
CHANGED
|
@@ -76,7 +76,7 @@ class History {
|
|
|
76
76
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
|
77
77
|
// 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.
|
|
78
78
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
79
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
|
79
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path` and `created_at`.
|
|
80
80
|
// path (required) - string - Path to operate on.
|
|
81
81
|
static listForFile = async (path, params = {}, options = {}) => {
|
|
82
82
|
if (!isObject(params)) {
|
|
@@ -125,7 +125,7 @@ class History {
|
|
|
125
125
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
|
126
126
|
// 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.
|
|
127
127
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
128
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `
|
|
128
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at`.
|
|
129
129
|
// path (required) - string - Path to operate on.
|
|
130
130
|
static listForFolder = async (path, params = {}, options = {}) => {
|
|
131
131
|
if (!isObject(params)) {
|
|
@@ -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 `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)}`)
|
|
@@ -257,8 +257,8 @@ class History {
|
|
|
257
257
|
// display - string - Display format. Leave blank or set to `full` or `parent`.
|
|
258
258
|
// 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.
|
|
259
259
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
260
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `
|
|
261
|
-
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`.
|
|
260
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `path`, `created_at` or `user_id`.
|
|
261
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `user_id`, `folder` or `path`. Valid field combinations are `[ user_id, folder ]`, `[ user_id, path ]`, `[ folder, path ]` or `[ user_id, folder, path ]`.
|
|
262
262
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
|
263
263
|
static list = async (params = {}, options = {}) => {
|
|
264
264
|
if (params.start_at && !isString(params.start_at)) {
|
|
@@ -90,7 +90,7 @@ class InboxRecipient {
|
|
|
90
90
|
// Parameters:
|
|
91
91
|
// 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.
|
|
92
92
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
93
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
|
93
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
94
94
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `has_registrations`.
|
|
95
95
|
// inbox_id (required) - int64 - List recipients for the inbox with this ID.
|
|
96
96
|
static list = async (params = {}, options = {}) => {
|
package/src/models/Permission.js
CHANGED
|
@@ -125,7 +125,7 @@ class Permission {
|
|
|
125
125
|
// Parameters:
|
|
126
126
|
// 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.
|
|
127
127
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
128
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `group_id`, `path
|
|
128
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `group_id`, `path` or `user_id`.
|
|
129
129
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `path`, `group_id` or `user_id`. Valid field combinations are `[ path, group_id ]`, `[ path, user_id ]` or `[ group_id, user_id ]`.
|
|
130
130
|
// filter_prefix - object - If set, return records where the specified field is prefixed by the supplied value. Valid fields are `path`.
|
|
131
131
|
// path - string - Permission path. If provided, will scope all permissions(including upward) to this path.
|
package/src/models/Request.js
CHANGED
|
@@ -125,7 +125,7 @@ class Request {
|
|
|
125
125
|
// Parameters:
|
|
126
126
|
// 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.
|
|
127
127
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
128
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
|
128
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
129
129
|
// mine - boolean - Only show requests of the current user? (Defaults to true if current user is not a site admin.)
|
|
130
130
|
// path - string - Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
|
|
131
131
|
static list = async (params = {}, options = {}) => {
|
|
@@ -152,7 +152,7 @@ class Request {
|
|
|
152
152
|
// Parameters:
|
|
153
153
|
// 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.
|
|
154
154
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
155
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are
|
|
155
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are .
|
|
156
156
|
// mine - boolean - Only show requests of the current user? (Defaults to true if current user is not a site admin.)
|
|
157
157
|
// path (required) - string - Path to show requests for. If omitted, shows all paths. Send `/` to represent the root directory.
|
|
158
158
|
static getFolder = async (path, params = {}, options = {}) => {
|
|
@@ -64,7 +64,7 @@ class UsageDailySnapshot {
|
|
|
64
64
|
// Parameters:
|
|
65
65
|
// 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.
|
|
66
66
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
67
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `date
|
|
67
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `date`.
|
|
68
68
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `date` and `usage_snapshot_id`. Valid field combinations are `[ date, usage_snapshot_id ]`.
|
|
69
69
|
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `date`.
|
|
70
70
|
// filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `date`.
|
package/src/models/User.js
CHANGED
|
@@ -853,7 +853,7 @@ class User {
|
|
|
853
853
|
// Parameters:
|
|
854
854
|
// 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.
|
|
855
855
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
|
856
|
-
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `name`, `company`, `site_admin`, `
|
|
856
|
+
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `authenticate_until`, `email`, `last_desktop_login_at`, `last_login_at`, `username`, `name`, `company`, `site_admin`, `password_validity_days` or `ssl_required`.
|
|
857
857
|
// 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 `[ username, not_site_admin ]` and `[ name, company ]`.
|
|
858
858
|
// 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`.
|
|
859
859
|
// 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`.
|