files.com 1.2.11 → 1.2.13

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.11
1
+ 1.2.13
@@ -11,11 +11,26 @@
11
11
  "currency": "USD",
12
12
  "download_uri": "https://url...",
13
13
  "invoice_line_items": [
14
- null
14
+ {
15
+ "amount": 1.0,
16
+ "created_at": "2000-01-01T01:00:00Z",
17
+ "description": "Service from 2019-01-01 through 2019-12-31",
18
+ "type": "invoice",
19
+ "service_end_at": "2000-01-01T01:00:00Z",
20
+ "service_start_at": "2000-01-01T01:00:00Z",
21
+ "updated_at": "2000-01-01T01:00:00Z",
22
+ "plan": "Premier",
23
+ "site": "My site"
24
+ }
15
25
  ],
16
26
  "method": "paypal",
17
27
  "payment_line_items": [
18
- null
28
+ {
29
+ "amount": 1.0,
30
+ "created_at": "2000-01-01T01:00:00Z",
31
+ "invoice_id": 1,
32
+ "payment_id": 1
33
+ }
19
34
  ],
20
35
  "payment_reversed_at": "2000-01-01T01:00:00Z",
21
36
  "payment_type": "example",
@@ -24,7 +24,16 @@
24
24
  "name": "example",
25
25
  "path": "example",
26
26
  "recurring_day": 25,
27
- "schedule": "example",
27
+ "schedule_days_of_week": [
28
+ 0,
29
+ 2,
30
+ 4
31
+ ],
32
+ "schedule_times_of_day": [
33
+ "06:30",
34
+ "14:30"
35
+ ],
36
+ "schedule_time_zone": "Eastern Time (US & Canada)",
28
37
  "source": "example",
29
38
  "sync_ids": [
30
39
  1,
@@ -61,7 +70,9 @@
61
70
  * `name` (string): Name for this automation.
62
71
  * `path` (string): Path on which this Automation runs. Supports globs, except on remote mounts. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
63
72
  * `recurring_day` (int64): If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
64
- * `schedule` (object): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
73
+ * `schedule_days_of_week` (array): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
74
+ * `schedule_times_of_day` (array): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
75
+ * `schedule_time_zone` (string): If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
65
76
  * `source` (string): Source Path
66
77
  * `sync_ids` (array): IDs of remote sync folder behaviors to run by this Automation
67
78
  * `trigger_actions` (array): If trigger is `action`, this is the list of action types on which to trigger the automation. Valid actions are create, read, update, destroy, move, copy
@@ -124,7 +135,9 @@ await Automation.create({
124
135
  'sync_ids': [1,2],
125
136
  'user_ids': [1,2],
126
137
  'group_ids': [1,2],
127
- 'schedule': {"days_of_week":[0,1,3],"times_of_day":["7:30","11:30"],"time_zone":"Eastern Time (US & Canada)"},
138
+ 'schedule_days_of_week': [0,1,3],
139
+ 'schedule_times_of_day': ["7:30","11:30"],
140
+ 'schedule_time_zone': "Eastern Time (US & Canada)",
128
141
  'always_overwrite_size_matching_files': true,
129
142
  'description': "example",
130
143
  'disabled': true,
@@ -150,7 +163,9 @@ await Automation.create({
150
163
  * `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
151
164
  * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
152
165
  * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
153
- * `schedule` (object): Custom schedule for running this automation.
166
+ * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
167
+ * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
168
+ * `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
154
169
  * `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
155
170
  * `description` (string): Description for the this Automation.
156
171
  * `disabled` (boolean): If true, this automation will not run.
@@ -193,7 +208,9 @@ await automation.update({
193
208
  'sync_ids': [1,2],
194
209
  'user_ids': [1,2],
195
210
  'group_ids': [1,2],
196
- 'schedule': {"days_of_week":[0,1,3],"times_of_day":["7:30","11:30"],"time_zone":"Eastern Time (US & Canada)"},
211
+ 'schedule_days_of_week': [0,1,3],
212
+ 'schedule_times_of_day': ["7:30","11:30"],
213
+ 'schedule_time_zone': "Eastern Time (US & Canada)",
197
214
  'always_overwrite_size_matching_files': true,
198
215
  'description': "example",
199
216
  'disabled': true,
@@ -219,7 +236,9 @@ await automation.update({
219
236
  * `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
220
237
  * `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
221
238
  * `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
222
- * `schedule` (object): Custom schedule for running this automation.
239
+ * `schedule_days_of_week` (array(int64)): If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
240
+ * `schedule_times_of_day` (array(string)): If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
241
+ * `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
223
242
  * `always_overwrite_size_matching_files` (boolean): Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
224
243
  * `description` (string): Description for the this Automation.
225
244
  * `disabled` (boolean): If true, this automation will not run.
@@ -254,7 +273,16 @@ await automation.update({
254
273
  "name": "example",
255
274
  "path": "example",
256
275
  "recurring_day": 25,
257
- "schedule": "example",
276
+ "schedule_days_of_week": [
277
+ 0,
278
+ 2,
279
+ 4
280
+ ],
281
+ "schedule_times_of_day": [
282
+ "06:30",
283
+ "14:30"
284
+ ],
285
+ "schedule_time_zone": "Eastern Time (US & Canada)",
258
286
  "source": "example",
259
287
  "sync_ids": [
260
288
  1,
@@ -98,7 +98,7 @@ await Behavior.create({
98
98
 
99
99
  ### Parameters
100
100
 
101
- * `value` (string): The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
101
+ * `value` (string): The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
102
102
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
103
103
  * `name` (string): Name for this behavior.
104
104
  * `description` (string): Description for this behavior.
@@ -150,7 +150,7 @@ await behavior.update({
150
150
  ### Parameters
151
151
 
152
152
  * `id` (int64): Required - Behavior ID.
153
- * `value` (string): The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
153
+ * `value` (string): The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
154
154
  * `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
155
155
  * `name` (string): Name for this behavior.
156
156
  * `description` (string): Description for this behavior.
@@ -30,7 +30,20 @@
30
30
  4
31
31
  ],
32
32
  "form_fields": [
33
- null
33
+ {
34
+ "id": 1,
35
+ "label": "Sample Label",
36
+ "required": true,
37
+ "help_text": "Help Text",
38
+ "field_type": "text",
39
+ "options_for_select": [
40
+ "red",
41
+ "green",
42
+ "blue"
43
+ ],
44
+ "default_option": "red",
45
+ "form_field_set_id": 1
46
+ }
34
47
  ],
35
48
  "skip_name": true,
36
49
  "skip_email": true,
@@ -52,7 +65,10 @@
52
65
  "username": "user",
53
66
  "clickwrap_id": 1,
54
67
  "inbox_id": 1,
55
- "watermark_attachment": null,
68
+ "watermark_attachment": {
69
+ "name": "My logo",
70
+ "uri": "https://mysite.files.com/.../my_image.png"
71
+ },
56
72
  "watermark_value": {
57
73
  "key": "example value"
58
74
  },
@@ -324,7 +340,20 @@ await bundle.update({
324
340
  4
325
341
  ],
326
342
  "form_fields": [
327
- null
343
+ {
344
+ "id": 1,
345
+ "label": "Sample Label",
346
+ "required": true,
347
+ "help_text": "Help Text",
348
+ "field_type": "text",
349
+ "options_for_select": [
350
+ "red",
351
+ "green",
352
+ "blue"
353
+ ],
354
+ "default_option": "red",
355
+ "form_field_set_id": 1
356
+ }
328
357
  ],
329
358
  "skip_name": true,
330
359
  "skip_email": true,
@@ -346,7 +375,10 @@ await bundle.update({
346
375
  "username": "user",
347
376
  "clickwrap_id": 1,
348
377
  "inbox_id": 1,
349
- "watermark_attachment": null,
378
+ "watermark_attachment": {
379
+ "name": "My logo",
380
+ "uri": "https://mysite.files.com/.../my_image.png"
381
+ },
350
382
  "watermark_value": {
351
383
  "key": "example value"
352
384
  },
@@ -7,7 +7,10 @@
7
7
  "id": 1,
8
8
  "body": "What a great file!",
9
9
  "reactions": [
10
- null
10
+ {
11
+ "id": 1,
12
+ "emoji": "👍"
13
+ }
11
14
  ]
12
15
  }
13
16
  ```
@@ -75,7 +78,10 @@ await file_comment.update({
75
78
  "id": 1,
76
79
  "body": "What a great file!",
77
80
  "reactions": [
78
- null
81
+ {
82
+ "id": 1,
83
+ "emoji": "👍"
84
+ }
79
85
  ]
80
86
  }
81
87
  ```
@@ -13,7 +13,20 @@
13
13
  4
14
14
  ],
15
15
  "form_fields": [
16
- null
16
+ {
17
+ "id": 1,
18
+ "label": "Sample Label",
19
+ "required": true,
20
+ "help_text": "Help Text",
21
+ "field_type": "text",
22
+ "options_for_select": [
23
+ "red",
24
+ "green",
25
+ "blue"
26
+ ],
27
+ "default_option": "red",
28
+ "form_field_set_id": 1
29
+ }
17
30
  ],
18
31
  "skip_name": true,
19
32
  "skip_email": true,
@@ -72,7 +85,7 @@ await FormFieldSet.create({
72
85
  'skip_email': true,
73
86
  'skip_name': true,
74
87
  'skip_company': true,
75
- 'form_fields': [null],
88
+ 'form_fields': [{"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1}],
76
89
  })
77
90
  ```
78
91
 
@@ -98,7 +111,7 @@ await form_field_set.update({
98
111
  'skip_email': true,
99
112
  'skip_name': true,
100
113
  'skip_company': true,
101
- 'form_fields': [null],
114
+ 'form_fields': [{"id":1,"label":"Sample Label","required":true,"help_text":"Help Text","field_type":"text","options_for_select":["red","green","blue"],"default_option":"red","form_field_set_id":1}],
102
115
  })
103
116
  ```
104
117
 
@@ -124,7 +137,20 @@ await form_field_set.update({
124
137
  4
125
138
  ],
126
139
  "form_fields": [
127
- null
140
+ {
141
+ "id": 1,
142
+ "label": "Sample Label",
143
+ "required": true,
144
+ "help_text": "Help Text",
145
+ "field_type": "text",
146
+ "options_for_select": [
147
+ "red",
148
+ "green",
149
+ "blue"
150
+ ],
151
+ "default_option": "red",
152
+ "form_field_set_id": 1
153
+ }
128
154
  ],
129
155
  "skip_name": true,
130
156
  "skip_email": true,
@@ -11,11 +11,26 @@
11
11
  "currency": "USD",
12
12
  "download_uri": "https://url...",
13
13
  "invoice_line_items": [
14
- null
14
+ {
15
+ "amount": 1.0,
16
+ "created_at": "2000-01-01T01:00:00Z",
17
+ "description": "Service from 2019-01-01 through 2019-12-31",
18
+ "type": "invoice",
19
+ "service_end_at": "2000-01-01T01:00:00Z",
20
+ "service_start_at": "2000-01-01T01:00:00Z",
21
+ "updated_at": "2000-01-01T01:00:00Z",
22
+ "plan": "Premier",
23
+ "site": "My site"
24
+ }
15
25
  ],
16
26
  "method": "paypal",
17
27
  "payment_line_items": [
18
- null
28
+ {
29
+ "amount": 1.0,
30
+ "created_at": "2000-01-01T01:00:00Z",
31
+ "invoice_id": 1,
32
+ "payment_id": 1
33
+ }
19
34
  ],
20
35
  "payment_reversed_at": "2000-01-01T01:00:00Z",
21
36
  "payment_type": "example",
@@ -8,7 +8,16 @@
8
8
  "subject": "Files.com Account Upgrade",
9
9
  "body": "We should upgrade our Files.com account!",
10
10
  "comments": [
11
- null
11
+ {
12
+ "id": 1,
13
+ "body": "What a great idea, thank you!",
14
+ "reactions": [
15
+ {
16
+ "id": 1,
17
+ "emoji": "👍"
18
+ }
19
+ ]
20
+ }
12
21
  ]
13
22
  }
14
23
  ```
@@ -103,7 +112,16 @@ await message.update({
103
112
  "subject": "Files.com Account Upgrade",
104
113
  "body": "We should upgrade our Files.com account!",
105
114
  "comments": [
106
- null
115
+ {
116
+ "id": 1,
117
+ "body": "What a great idea, thank you!",
118
+ "reactions": [
119
+ {
120
+ "id": 1,
121
+ "emoji": "👍"
122
+ }
123
+ ]
124
+ }
107
125
  ]
108
126
  }
109
127
  ```
@@ -7,7 +7,10 @@
7
7
  "id": 1,
8
8
  "body": "What a great idea, thank you!",
9
9
  "reactions": [
10
- null
10
+ {
11
+ "id": 1,
12
+ "emoji": "👍"
13
+ }
11
14
  ]
12
15
  }
13
16
  ```
@@ -91,7 +94,10 @@ await message_comment.update({
91
94
  "id": 1,
92
95
  "body": "What a great idea, thank you!",
93
96
  "reactions": [
94
- null
97
+ {
98
+ "id": 1,
99
+ "emoji": "👍"
100
+ }
95
101
  ]
96
102
  }
97
103
  ```
@@ -11,11 +11,26 @@
11
11
  "currency": "USD",
12
12
  "download_uri": "https://url...",
13
13
  "invoice_line_items": [
14
- null
14
+ {
15
+ "amount": 1.0,
16
+ "created_at": "2000-01-01T01:00:00Z",
17
+ "description": "Service from 2019-01-01 through 2019-12-31",
18
+ "type": "invoice",
19
+ "service_end_at": "2000-01-01T01:00:00Z",
20
+ "service_start_at": "2000-01-01T01:00:00Z",
21
+ "updated_at": "2000-01-01T01:00:00Z",
22
+ "plan": "Premier",
23
+ "site": "My site"
24
+ }
15
25
  ],
16
26
  "method": "paypal",
17
27
  "payment_line_items": [
18
- null
28
+ {
29
+ "amount": 1.0,
30
+ "created_at": "2000-01-01T01:00:00Z",
31
+ "invoice_id": 1,
32
+ "payment_id": 1
33
+ }
19
34
  ],
20
35
  "payment_reversed_at": "2000-01-01T01:00:00Z",
21
36
  "payment_type": "example",
@@ -10,6 +10,7 @@
10
10
  "allowed_2fa_method_u2f": true,
11
11
  "allowed_2fa_method_webauthn": true,
12
12
  "allowed_2fa_method_yubi": true,
13
+ "allowed_2fa_method_email": true,
13
14
  "allowed_2fa_method_bypass_for_ftp_sftp_dav": true,
14
15
  "admin_user_id": 1,
15
16
  "admins_bypass_locked_subfolders": true,
@@ -29,7 +30,10 @@
29
30
  "bundle_require_registration": true,
30
31
  "bundle_require_share_recipient": true,
31
32
  "bundle_upload_receipt_notifications": "never",
32
- "bundle_watermark_attachment": null,
33
+ "bundle_watermark_attachment": {
34
+ "name": "My logo",
35
+ "uri": "https://mysite.files.com/.../my_image.png"
36
+ },
33
37
  "bundle_watermark_value": {
34
38
  "key": "example value"
35
39
  },
@@ -67,10 +71,22 @@
67
71
  "non_sso_users_allowed": true,
68
72
  "folder_permissions_groups_only": true,
69
73
  "hipaa": true,
70
- "icon128": null,
71
- "icon16": null,
72
- "icon32": null,
73
- "icon48": null,
74
+ "icon128": {
75
+ "name": "My logo",
76
+ "uri": "https://mysite.files.com/.../my_image.png"
77
+ },
78
+ "icon16": {
79
+ "name": "My logo",
80
+ "uri": "https://mysite.files.com/.../my_image.png"
81
+ },
82
+ "icon32": {
83
+ "name": "My logo",
84
+ "uri": "https://mysite.files.com/.../my_image.png"
85
+ },
86
+ "icon48": {
87
+ "name": "My logo",
88
+ "uri": "https://mysite.files.com/.../my_image.png"
89
+ },
74
90
  "immutable_files_set_at": "2000-01-01T01:00:00Z",
75
91
  "include_password_in_welcome_email": true,
76
92
  "language": "en",
@@ -91,8 +107,14 @@
91
107
  "ldap_username": "[ldap username]",
92
108
  "ldap_username_field": "sAMAccountName",
93
109
  "login_help_text": "Login page help text.",
94
- "logo": null,
95
- "login_page_background_image": null,
110
+ "logo": {
111
+ "name": "My logo",
112
+ "uri": "https://mysite.files.com/.../my_image.png"
113
+ },
114
+ "login_page_background_image": {
115
+ "name": "My logo",
116
+ "uri": "https://mysite.files.com/.../my_image.png"
117
+ },
96
118
  "max_prior_passwords": 1,
97
119
  "motd_text": "example",
98
120
  "motd_use_for_ftp": true,
@@ -122,8 +144,24 @@
122
144
  "session": {
123
145
  "id": "60525f92e859c4c3d74cb02fd176b1525901b525",
124
146
  "language": "en",
147
+ "login_token": "@tok-randomcode",
148
+ "login_token_domain": "https://mysite.files.com",
149
+ "max_dir_listing_size": 1,
150
+ "multiple_regions": true,
125
151
  "read_only": true,
126
- "sftp_insecure_ciphers": true
152
+ "root_path": "example",
153
+ "sftp_insecure_ciphers": false,
154
+ "site_id": 1,
155
+ "ssl_required": true,
156
+ "tls_disabled": false,
157
+ "two_factor_setup_needed": false,
158
+ "allowed_2fa_method_sms": true,
159
+ "allowed_2fa_method_totp": true,
160
+ "allowed_2fa_method_u2f": true,
161
+ "allowed_2fa_method_webauthn": true,
162
+ "allowed_2fa_method_yubi": true,
163
+ "use_provided_modified_at": true,
164
+ "windows_mode_ftp": false
127
165
  },
128
166
  "session_pinned_by_ip": true,
129
167
  "sftp_enabled": true,
@@ -162,9 +200,9 @@
162
200
  "authenticate_until": "2000-01-01T01:00:00Z",
163
201
  "authentication_method": "password",
164
202
  "avatar_url": "example",
165
- "billing_permission": true,
166
- "bypass_site_allowed_ips": true,
167
- "bypass_inactive_disable": true,
203
+ "billing_permission": false,
204
+ "bypass_site_allowed_ips": false,
205
+ "bypass_inactive_disable": false,
168
206
  "created_at": "2000-01-01T01:00:00Z",
169
207
  "dav_permission": true,
170
208
  "disabled": true,
@@ -210,6 +248,7 @@
210
248
  "externally_managed": true,
211
249
  "time_zone": "Pacific Time (US & Canada)",
212
250
  "type_of_2fa": "yubi",
251
+ "updated_at": "2000-01-01T01:00:00Z",
213
252
  "user_root": "example",
214
253
  "days_remaining_until_password_expire": 1,
215
254
  "password_expire_at": "2000-01-01T01:00:00Z"
@@ -237,6 +276,7 @@
237
276
  * `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
238
277
  * `allowed_2fa_method_webauthn` (boolean): Is WebAuthn two factor authentication allowed?
239
278
  * `allowed_2fa_method_yubi` (boolean): Is yubikey two factor authentication allowed?
279
+ * `allowed_2fa_method_email` (boolean): Is OTP via email two factor authentication allowed?
240
280
  * `allowed_2fa_method_bypass_for_ftp_sftp_dav` (boolean): Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
241
281
  * `admin_user_id` (int64): User ID for the main site administrator
242
282
  * `admins_bypass_locked_subfolders` (boolean): Allow admins to bypass the locked subfolders setting.
@@ -502,6 +542,7 @@ await Site.update({
502
542
  'allowed_2fa_method_totp': true,
503
543
  'allowed_2fa_method_webauthn': true,
504
544
  'allowed_2fa_method_yubi': true,
545
+ 'allowed_2fa_method_email': true,
505
546
  'allowed_2fa_method_bypass_for_ftp_sftp_dav': true,
506
547
  'require_2fa': true,
507
548
  'require_2fa_user_type': "`site_admins`",
@@ -582,6 +623,7 @@ await Site.update({
582
623
  * `motd_text` (string): A message to show users when they connect via FTP or SFTP.
583
624
  * `motd_use_for_ftp` (boolean): Show message to users connecting via FTP
584
625
  * `motd_use_for_sftp` (boolean): Show message to users connecting via SFTP
626
+ * `left_navigation_visibility` (object): Visibility settings for account navigation
585
627
  * `session_expiry` (double): Session expiry in hours
586
628
  * `ssl_required` (boolean): Is SSL required? Disabling this is insecure.
587
629
  * `tls_disabled` (boolean): Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
@@ -644,6 +686,7 @@ await Site.update({
644
686
  * `allowed_2fa_method_totp` (boolean): Is TOTP two factor authentication allowed?
645
687
  * `allowed_2fa_method_webauthn` (boolean): Is WebAuthn two factor authentication allowed?
646
688
  * `allowed_2fa_method_yubi` (boolean): Is yubikey two factor authentication allowed?
689
+ * `allowed_2fa_method_email` (boolean): Is OTP via email two factor authentication allowed?
647
690
  * `allowed_2fa_method_bypass_for_ftp_sftp_dav` (boolean): Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
648
691
  * `require_2fa` (boolean): Require two-factor authentication for all users?
649
692
  * `require_2fa_user_type` (string): What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
@@ -9,7 +9,14 @@
9
9
  "status": "",
10
10
  "data": "example",
11
11
  "errors": [
12
- null
12
+ {
13
+ "fields": [
14
+
15
+ ],
16
+ "messages": [
17
+
18
+ ]
19
+ }
13
20
  ],
14
21
  "clickwrap_id": 1,
15
22
  "clickwrap_body": "example"
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.11';
14
+ var version = '1.2.13';
15
15
  var userAgent = "Files.com JavaScript SDK v".concat(version);
16
16
  var logLevel = _Logger.LogLevel.INFO;
17
17
  var debugRequest = false;
@@ -138,12 +138,26 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
138
138
  (0, _defineProperty2.default)(this, "setRecurringDay", function (value) {
139
139
  _this.attributes.recurring_day = value;
140
140
  });
141
- // object # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
142
- (0, _defineProperty2.default)(this, "getSchedule", function () {
143
- return _this.attributes.schedule;
141
+ // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
142
+ (0, _defineProperty2.default)(this, "getScheduleDaysOfWeek", function () {
143
+ return _this.attributes.schedule_days_of_week;
144
144
  });
145
- (0, _defineProperty2.default)(this, "setSchedule", function (value) {
146
- _this.attributes.schedule = value;
145
+ (0, _defineProperty2.default)(this, "setScheduleDaysOfWeek", function (value) {
146
+ _this.attributes.schedule_days_of_week = value;
147
+ });
148
+ // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
149
+ (0, _defineProperty2.default)(this, "getScheduleTimesOfDay", function () {
150
+ return _this.attributes.schedule_times_of_day;
151
+ });
152
+ (0, _defineProperty2.default)(this, "setScheduleTimesOfDay", function (value) {
153
+ _this.attributes.schedule_times_of_day = value;
154
+ });
155
+ // string # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
156
+ (0, _defineProperty2.default)(this, "getScheduleTimeZone", function () {
157
+ return _this.attributes.schedule_time_zone;
158
+ });
159
+ (0, _defineProperty2.default)(this, "setScheduleTimeZone", function (value) {
160
+ _this.attributes.schedule_time_zone = value;
147
161
  });
148
162
  // string # Source Path
149
163
  (0, _defineProperty2.default)(this, "getSource", function () {
@@ -268,7 +282,9 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
268
282
  // sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
269
283
  // user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
270
284
  // group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
271
- // schedule - object - Custom schedule for running this automation.
285
+ // schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
286
+ // schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
287
+ // schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
272
288
  // always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
273
289
  // description - string - Description for the this Automation.
274
290
  // disabled - boolean - If true, this automation will not run.
@@ -365,62 +381,80 @@ var Automation = /*#__PURE__*/(0, _createClass2.default)(function Automation() {
365
381
  }
366
382
  throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(params.group_ids)));
367
383
  case 28:
368
- if (!(params.description && !(0, _utils.isString)(params.description))) {
384
+ if (!(params.schedule_days_of_week && !(0, _utils.isArray)(params.schedule_days_of_week))) {
369
385
  _context2.next = 30;
370
386
  break;
371
387
  }
372
- throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params.description)));
388
+ throw new errors.InvalidParameterError("Bad parameter: schedule_days_of_week must be of type Array, received ".concat((0, _utils.getType)(params.schedule_days_of_week)));
373
389
  case 30:
374
- if (!(params.name && !(0, _utils.isString)(params.name))) {
390
+ if (!(params.schedule_times_of_day && !(0, _utils.isArray)(params.schedule_times_of_day))) {
375
391
  _context2.next = 32;
376
392
  break;
377
393
  }
378
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
394
+ throw new errors.InvalidParameterError("Bad parameter: schedule_times_of_day must be of type Array, received ".concat((0, _utils.getType)(params.schedule_times_of_day)));
379
395
  case 32:
380
- if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
396
+ if (!(params.schedule_time_zone && !(0, _utils.isString)(params.schedule_time_zone))) {
381
397
  _context2.next = 34;
382
398
  break;
383
399
  }
384
- throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
400
+ throw new errors.InvalidParameterError("Bad parameter: schedule_time_zone must be of type String, received ".concat((0, _utils.getType)(params.schedule_time_zone)));
385
401
  case 34:
386
- if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
402
+ if (!(params.description && !(0, _utils.isString)(params.description))) {
387
403
  _context2.next = 36;
388
404
  break;
389
405
  }
390
- throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
406
+ throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params.description)));
391
407
  case 36:
392
- if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
408
+ if (!(params.name && !(0, _utils.isString)(params.name))) {
393
409
  _context2.next = 38;
394
410
  break;
395
411
  }
396
- throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
412
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
397
413
  case 38:
398
- if (!(params.automation && !(0, _utils.isString)(params.automation))) {
414
+ if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
399
415
  _context2.next = 40;
400
416
  break;
401
417
  }
402
- throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
418
+ throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
403
419
  case 40:
404
- if (params.id) {
420
+ if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
421
+ _context2.next = 42;
422
+ break;
423
+ }
424
+ throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
425
+ case 42:
426
+ if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
427
+ _context2.next = 44;
428
+ break;
429
+ }
430
+ throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
431
+ case 44:
432
+ if (!(params.automation && !(0, _utils.isString)(params.automation))) {
405
433
  _context2.next = 46;
406
434
  break;
407
435
  }
436
+ throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
437
+ case 46:
438
+ if (params.id) {
439
+ _context2.next = 52;
440
+ break;
441
+ }
408
442
  if (!_this.attributes.id) {
409
- _context2.next = 45;
443
+ _context2.next = 51;
410
444
  break;
411
445
  }
412
446
  params.id = _this.id;
413
- _context2.next = 46;
447
+ _context2.next = 52;
414
448
  break;
415
- case 45:
449
+ case 51:
416
450
  throw new errors.MissingParameterError('Parameter missing: id');
417
- case 46:
418
- _context2.next = 48;
451
+ case 52:
452
+ _context2.next = 54;
419
453
  return _Api.default.sendRequest("/automations/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
420
- case 48:
454
+ case 54:
421
455
  response = _context2.sent;
422
456
  return _context2.abrupt("return", new Automation(response === null || response === void 0 ? void 0 : response.data, _this.options));
423
- case 50:
457
+ case 56:
424
458
  case "end":
425
459
  return _context2.stop();
426
460
  }
@@ -634,7 +668,9 @@ _Automation = Automation;
634
668
  // sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
635
669
  // user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
636
670
  // group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
637
- // schedule - object - Custom schedule for running this automation.
671
+ // schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
672
+ // schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
673
+ // schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
638
674
  // always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
639
675
  // description - string - Description for the this Automation.
640
676
  // disabled - boolean - If true, this automation will not run.
@@ -720,48 +756,66 @@ _Automation = Automation;
720
756
  }
721
757
  throw new errors.InvalidParameterError("Bad parameter: group_ids must be of type String, received ".concat((0, _utils.getType)(params.group_ids)));
722
758
  case 24:
723
- if (!(params.description && !(0, _utils.isString)(params.description))) {
759
+ if (!(params.schedule_days_of_week && !(0, _utils.isArray)(params.schedule_days_of_week))) {
724
760
  _context7.next = 26;
725
761
  break;
726
762
  }
727
- throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params.description)));
763
+ throw new errors.InvalidParameterError("Bad parameter: schedule_days_of_week must be of type Array, received ".concat((0, _utils.getType)(params.schedule_days_of_week)));
728
764
  case 26:
729
- if (!(params.name && !(0, _utils.isString)(params.name))) {
765
+ if (!(params.schedule_times_of_day && !(0, _utils.isArray)(params.schedule_times_of_day))) {
730
766
  _context7.next = 28;
731
767
  break;
732
768
  }
733
- throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
769
+ throw new errors.InvalidParameterError("Bad parameter: schedule_times_of_day must be of type Array, received ".concat((0, _utils.getType)(params.schedule_times_of_day)));
734
770
  case 28:
735
- if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
771
+ if (!(params.schedule_time_zone && !(0, _utils.isString)(params.schedule_time_zone))) {
736
772
  _context7.next = 30;
737
773
  break;
738
774
  }
739
- throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
775
+ throw new errors.InvalidParameterError("Bad parameter: schedule_time_zone must be of type String, received ".concat((0, _utils.getType)(params.schedule_time_zone)));
740
776
  case 30:
741
- if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
777
+ if (!(params.description && !(0, _utils.isString)(params.description))) {
742
778
  _context7.next = 32;
743
779
  break;
744
780
  }
745
- throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
781
+ throw new errors.InvalidParameterError("Bad parameter: description must be of type String, received ".concat((0, _utils.getType)(params.description)));
746
782
  case 32:
747
- if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
783
+ if (!(params.name && !(0, _utils.isString)(params.name))) {
748
784
  _context7.next = 34;
749
785
  break;
750
786
  }
751
- throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
787
+ throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
752
788
  case 34:
753
- if (!(params.automation && !(0, _utils.isString)(params.automation))) {
789
+ if (!(params.trigger && !(0, _utils.isString)(params.trigger))) {
754
790
  _context7.next = 36;
755
791
  break;
756
792
  }
757
- throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
793
+ throw new errors.InvalidParameterError("Bad parameter: trigger must be of type String, received ".concat((0, _utils.getType)(params.trigger)));
758
794
  case 36:
759
- _context7.next = 38;
760
- return _Api.default.sendRequest('/automations', 'POST', params, options);
795
+ if (!(params.trigger_actions && !(0, _utils.isArray)(params.trigger_actions))) {
796
+ _context7.next = 38;
797
+ break;
798
+ }
799
+ throw new errors.InvalidParameterError("Bad parameter: trigger_actions must be of type Array, received ".concat((0, _utils.getType)(params.trigger_actions)));
761
800
  case 38:
801
+ if (!(params.recurring_day && !(0, _utils.isInt)(params.recurring_day))) {
802
+ _context7.next = 40;
803
+ break;
804
+ }
805
+ throw new errors.InvalidParameterError("Bad parameter: recurring_day must be of type Int, received ".concat((0, _utils.getType)(params.recurring_day)));
806
+ case 40:
807
+ if (!(params.automation && !(0, _utils.isString)(params.automation))) {
808
+ _context7.next = 42;
809
+ break;
810
+ }
811
+ throw new errors.InvalidParameterError("Bad parameter: automation must be of type String, received ".concat((0, _utils.getType)(params.automation)));
812
+ case 42:
813
+ _context7.next = 44;
814
+ return _Api.default.sendRequest('/automations', 'POST', params, options);
815
+ case 44:
762
816
  response = _context7.sent;
763
817
  return _context7.abrupt("return", new _Automation(response === null || response === void 0 ? void 0 : response.data, options));
764
- case 40:
818
+ case 46:
765
819
  case "end":
766
820
  return _context7.stop();
767
821
  }
@@ -97,7 +97,7 @@ var Behavior = /*#__PURE__*/(0, _createClass2.default)(function Behavior() {
97
97
  _this.attributes.attachment_delete = value;
98
98
  });
99
99
  // Parameters:
100
- // value - string - The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
100
+ // value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
101
101
  // attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
102
102
  // name - string - Name for this behavior.
103
103
  // description - string - Description for this behavior.
@@ -461,7 +461,7 @@ _Behavior = Behavior;
461
461
  };
462
462
  }());
463
463
  // Parameters:
464
- // value - string - The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
464
+ // value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
465
465
  // attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
466
466
  // name - string - Name for this behavior.
467
467
  // description - string - Description for this behavior.
@@ -57,6 +57,10 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
57
57
  (0, _defineProperty2.default)(this, "getAllowed2faMethodYubi", function () {
58
58
  return _this.attributes.allowed_2fa_method_yubi;
59
59
  });
60
+ // boolean # Is OTP via email two factor authentication allowed?
61
+ (0, _defineProperty2.default)(this, "getAllowed2faMethodEmail", function () {
62
+ return _this.attributes.allowed_2fa_method_email;
63
+ });
60
64
  // boolean # Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
61
65
  (0, _defineProperty2.default)(this, "getAllowed2faMethodBypassForFtpSftpDav", function () {
62
66
  return _this.attributes.allowed_2fa_method_bypass_for_ftp_sftp_dav;
@@ -728,6 +732,7 @@ _Site = Site;
728
732
  // motd_text - string - A message to show users when they connect via FTP or SFTP.
729
733
  // motd_use_for_ftp - boolean - Show message to users connecting via FTP
730
734
  // motd_use_for_sftp - boolean - Show message to users connecting via SFTP
735
+ // left_navigation_visibility - object - Visibility settings for account navigation
731
736
  // session_expiry - double - Session expiry in hours
732
737
  // ssl_required - boolean - Is SSL required? Disabling this is insecure.
733
738
  // tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
@@ -790,6 +795,7 @@ _Site = Site;
790
795
  // allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
791
796
  // allowed_2fa_method_webauthn - boolean - Is WebAuthn two factor authentication allowed?
792
797
  // allowed_2fa_method_yubi - boolean - Is yubikey two factor authentication allowed?
798
+ // allowed_2fa_method_email - boolean - Is OTP via email two factor authentication allowed?
793
799
  // allowed_2fa_method_bypass_for_ftp_sftp_dav - boolean - Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
794
800
  // require_2fa - boolean - Require two-factor authentication for all users?
795
801
  // require_2fa_user_type - string - What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
package/src/Files.js CHANGED
@@ -5,7 +5,7 @@ const endpointPrefix = '/api/rest/v1'
5
5
  let apiKey
6
6
  let baseUrl = 'https://app.files.com'
7
7
  let sessionId = null
8
- const version = '1.2.11'
8
+ const version = '1.2.13'
9
9
  let userAgent = `Files.com JavaScript SDK v${version}`
10
10
 
11
11
  let logLevel = LogLevel.INFO
@@ -133,11 +133,25 @@ class Automation {
133
133
  this.attributes.recurring_day = value
134
134
  }
135
135
 
136
- // object # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
137
- getSchedule = () => this.attributes.schedule
136
+ // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
137
+ getScheduleDaysOfWeek = () => this.attributes.schedule_days_of_week
138
138
 
139
- setSchedule = value => {
140
- this.attributes.schedule = value
139
+ setScheduleDaysOfWeek = value => {
140
+ this.attributes.schedule_days_of_week = value
141
+ }
142
+
143
+ // array # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
144
+ getScheduleTimesOfDay = () => this.attributes.schedule_times_of_day
145
+
146
+ setScheduleTimesOfDay = value => {
147
+ this.attributes.schedule_times_of_day = value
148
+ }
149
+
150
+ // string # If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
151
+ getScheduleTimeZone = () => this.attributes.schedule_time_zone
152
+
153
+ setScheduleTimeZone = value => {
154
+ this.attributes.schedule_time_zone = value
141
155
  }
142
156
 
143
157
  // string # Source Path
@@ -240,7 +254,9 @@ class Automation {
240
254
  // sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
241
255
  // user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
242
256
  // group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
243
- // schedule - object - Custom schedule for running this automation.
257
+ // schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
258
+ // schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
259
+ // schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
244
260
  // always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
245
261
  // description - string - Description for the this Automation.
246
262
  // disabled - boolean - If true, this automation will not run.
@@ -304,6 +320,18 @@ class Automation {
304
320
  throw new errors.InvalidParameterError(`Bad parameter: group_ids must be of type String, received ${getType(params.group_ids)}`)
305
321
  }
306
322
 
323
+ if (params.schedule_days_of_week && !isArray(params.schedule_days_of_week)) {
324
+ throw new errors.InvalidParameterError(`Bad parameter: schedule_days_of_week must be of type Array, received ${getType(params.schedule_days_of_week)}`)
325
+ }
326
+
327
+ if (params.schedule_times_of_day && !isArray(params.schedule_times_of_day)) {
328
+ throw new errors.InvalidParameterError(`Bad parameter: schedule_times_of_day must be of type Array, received ${getType(params.schedule_times_of_day)}`)
329
+ }
330
+
331
+ if (params.schedule_time_zone && !isString(params.schedule_time_zone)) {
332
+ throw new errors.InvalidParameterError(`Bad parameter: schedule_time_zone must be of type String, received ${getType(params.schedule_time_zone)}`)
333
+ }
334
+
307
335
  if (params.description && !isString(params.description)) {
308
336
  throw new errors.InvalidParameterError(`Bad parameter: description must be of type String, received ${getType(params.description)}`)
309
337
  }
@@ -444,7 +472,9 @@ class Automation {
444
472
  // sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
445
473
  // user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
446
474
  // group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
447
- // schedule - object - Custom schedule for running this automation.
475
+ // schedule_days_of_week - array(int64) - If trigger is `custom_schedule`. A list of days of the week to run this automation. 0 is Sunday, 1 is Monday, etc.
476
+ // schedule_times_of_day - array(string) - If trigger is `custom_schedule`. A list of times of day to run this automation. 24-hour time format.
477
+ // schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
448
478
  // always_overwrite_size_matching_files - boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage.
449
479
  // description - string - Description for the this Automation.
450
480
  // disabled - boolean - If true, this automation will not run.
@@ -499,6 +529,18 @@ class Automation {
499
529
  throw new errors.InvalidParameterError(`Bad parameter: group_ids must be of type String, received ${getType(params.group_ids)}`)
500
530
  }
501
531
 
532
+ if (params.schedule_days_of_week && !isArray(params.schedule_days_of_week)) {
533
+ throw new errors.InvalidParameterError(`Bad parameter: schedule_days_of_week must be of type Array, received ${getType(params.schedule_days_of_week)}`)
534
+ }
535
+
536
+ if (params.schedule_times_of_day && !isArray(params.schedule_times_of_day)) {
537
+ throw new errors.InvalidParameterError(`Bad parameter: schedule_times_of_day must be of type Array, received ${getType(params.schedule_times_of_day)}`)
538
+ }
539
+
540
+ if (params.schedule_time_zone && !isString(params.schedule_time_zone)) {
541
+ throw new errors.InvalidParameterError(`Bad parameter: schedule_time_zone must be of type String, received ${getType(params.schedule_time_zone)}`)
542
+ }
543
+
502
544
  if (params.description && !isString(params.description)) {
503
545
  throw new errors.InvalidParameterError(`Bad parameter: description must be of type String, received ${getType(params.description)}`)
504
546
  }
@@ -92,7 +92,7 @@ class Behavior {
92
92
  }
93
93
 
94
94
  // Parameters:
95
- // value - string - The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
95
+ // value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
96
96
  // attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
97
97
  // name - string - Name for this behavior.
98
98
  // description - string - Description for this behavior.
@@ -280,7 +280,7 @@ class Behavior {
280
280
  }
281
281
 
282
282
  // Parameters:
283
- // value - string - The value of the folder behavior. Can be a integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
283
+ // value - string - The value of the folder behavior. Can be an integer, array, or hash depending on the type of folder behavior. See The Behavior Types section for example values for each type of behavior.
284
284
  // attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
285
285
  // name - string - Name for this behavior.
286
286
  // description - string - Description for this behavior.
@@ -46,6 +46,9 @@ class Site {
46
46
  // boolean # Is yubikey two factor authentication allowed?
47
47
  getAllowed2faMethodYubi = () => this.attributes.allowed_2fa_method_yubi
48
48
 
49
+ // boolean # Is OTP via email two factor authentication allowed?
50
+ getAllowed2faMethodEmail = () => this.attributes.allowed_2fa_method_email
51
+
49
52
  // boolean # Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
50
53
  getAllowed2faMethodBypassForFtpSftpDav = () => this.attributes.allowed_2fa_method_bypass_for_ftp_sftp_dav
51
54
 
@@ -530,6 +533,7 @@ class Site {
530
533
  // motd_text - string - A message to show users when they connect via FTP or SFTP.
531
534
  // motd_use_for_ftp - boolean - Show message to users connecting via FTP
532
535
  // motd_use_for_sftp - boolean - Show message to users connecting via SFTP
536
+ // left_navigation_visibility - object - Visibility settings for account navigation
533
537
  // session_expiry - double - Session expiry in hours
534
538
  // ssl_required - boolean - Is SSL required? Disabling this is insecure.
535
539
  // tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
@@ -592,6 +596,7 @@ class Site {
592
596
  // allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
593
597
  // allowed_2fa_method_webauthn - boolean - Is WebAuthn two factor authentication allowed?
594
598
  // allowed_2fa_method_yubi - boolean - Is yubikey two factor authentication allowed?
599
+ // allowed_2fa_method_email - boolean - Is OTP via email two factor authentication allowed?
595
600
  // allowed_2fa_method_bypass_for_ftp_sftp_dav - boolean - Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
596
601
  // require_2fa - boolean - Require two-factor authentication for all users?
597
602
  // require_2fa_user_type - string - What type of user is required to use two-factor authentication (when require_2fa is set to `true` for this site)?