files.com 1.1.21 → 1.1.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_VERSION +1 -1
- data/docs/account_line_item.md +17 -2
- data/docs/automation.md +31 -8
- data/docs/behavior.md +3 -3
- data/docs/bundle.md +18 -2
- data/docs/file_comment.md +4 -1
- data/docs/form_field_set.md +17 -4
- data/docs/invoice.md +17 -2
- data/docs/message.md +10 -1
- data/docs/message_comment.md +4 -1
- data/docs/payment.md +17 -2
- data/docs/site.md +54 -11
- data/docs/status.md +8 -1
- data/lib/files.com/models/automation.rb +41 -10
- data/lib/files.com/models/behavior.rb +3 -3
- data/lib/files.com/models/site.rb +8 -0
- data/lib/files.com/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81fa17098a2aa6a52bff8065332abb7d27db07decb3e1918f7e45ba343be6ec5
|
4
|
+
data.tar.gz: 1cb889b27b301f2a9c37f5908bb592a2e6923e8ccec8773c7d0a6b650636b5c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e9fa0ab3854ab9bc6a34bf7f7163a588a2bb442a565fa34d2cd6a2abf073c8b1b7d0704e6ca34cd8f2f83d0d8a8a9deab2d4085d6c9f604ef18ca93eba9cf63
|
7
|
+
data.tar.gz: 6fa7a6e197bc479759d60f1c632d093a4130d82bddb09c3b5f50f39908f5418889c6f388207308286a436c6012aa3d599e277ae04e0321ab51f8d84d89451fad
|
data/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.23
|
data/docs/account_line_item.md
CHANGED
@@ -11,11 +11,26 @@
|
|
11
11
|
"currency": "USD",
|
12
12
|
"download_uri": "https://url...",
|
13
13
|
"invoice_line_items": [
|
14
|
-
|
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
|
-
|
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",
|
data/docs/automation.md
CHANGED
@@ -24,7 +24,16 @@
|
|
24
24
|
"name": "example",
|
25
25
|
"path": "example",
|
26
26
|
"recurring_day": 25,
|
27
|
-
"
|
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
|
-
* `
|
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
|
@@ -125,7 +136,9 @@ Files::Automation.create(
|
|
125
136
|
sync_ids: [1,2],
|
126
137
|
user_ids: [1,2],
|
127
138
|
group_ids: [1,2],
|
128
|
-
|
139
|
+
schedule_days_of_week: [0,1,3],
|
140
|
+
schedule_times_of_day: ["7:30","11:30"],
|
141
|
+
schedule_time_zone: "Eastern Time (US & Canada)",
|
129
142
|
always_overwrite_size_matching_files: true,
|
130
143
|
description: "example",
|
131
144
|
disabled: true,
|
@@ -150,7 +163,9 @@ Files::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
|
-
* `
|
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.
|
@@ -190,7 +205,9 @@ Files::Automation.update(id,
|
|
190
205
|
sync_ids: [1,2],
|
191
206
|
user_ids: [1,2],
|
192
207
|
group_ids: [1,2],
|
193
|
-
|
208
|
+
schedule_days_of_week: [0,1,3],
|
209
|
+
schedule_times_of_day: ["7:30","11:30"],
|
210
|
+
schedule_time_zone: "Eastern Time (US & Canada)",
|
194
211
|
always_overwrite_size_matching_files: true,
|
195
212
|
description: "example",
|
196
213
|
disabled: true,
|
@@ -216,7 +233,9 @@ Files::Automation.update(id,
|
|
216
233
|
* `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
217
234
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
218
235
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
219
|
-
* `
|
236
|
+
* `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.
|
237
|
+
* `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.
|
238
|
+
* `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
|
220
239
|
* `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.
|
221
240
|
* `description` (string): Description for the this Automation.
|
222
241
|
* `disabled` (boolean): If true, this automation will not run.
|
@@ -273,7 +292,9 @@ automation.update(
|
|
273
292
|
sync_ids: [1,2],
|
274
293
|
user_ids: [1,2],
|
275
294
|
group_ids: [1,2],
|
276
|
-
|
295
|
+
schedule_days_of_week: [0,1,3],
|
296
|
+
schedule_times_of_day: ["7:30","11:30"],
|
297
|
+
schedule_time_zone: "Eastern Time (US & Canada)",
|
277
298
|
always_overwrite_size_matching_files: true,
|
278
299
|
description: "example",
|
279
300
|
disabled: true,
|
@@ -299,7 +320,9 @@ automation.update(
|
|
299
320
|
* `sync_ids` (string): A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
300
321
|
* `user_ids` (string): A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
301
322
|
* `group_ids` (string): A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
302
|
-
* `
|
323
|
+
* `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.
|
324
|
+
* `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.
|
325
|
+
* `schedule_time_zone` (string): If trigger is `custom_schedule`. Time zone for the schedule.
|
303
326
|
* `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.
|
304
327
|
* `description` (string): Description for the this Automation.
|
305
328
|
* `disabled` (boolean): If true, this automation will not run.
|
data/docs/behavior.md
CHANGED
@@ -98,7 +98,7 @@ Files::Behavior.create(
|
|
98
98
|
|
99
99
|
### Parameters
|
100
100
|
|
101
|
-
* `value` (string): The value of the folder behavior. Can be
|
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.
|
@@ -149,7 +149,7 @@ Files::Behavior.update(id,
|
|
149
149
|
### Parameters
|
150
150
|
|
151
151
|
* `id` (int64): Required - Behavior ID.
|
152
|
-
* `value` (string): The value of the folder behavior. Can be
|
152
|
+
* `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.
|
153
153
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
154
154
|
* `name` (string): Name for this behavior.
|
155
155
|
* `description` (string): Description for this behavior.
|
@@ -191,7 +191,7 @@ behavior.update(
|
|
191
191
|
### Parameters
|
192
192
|
|
193
193
|
* `id` (int64): Required - Behavior ID.
|
194
|
-
* `value` (string): The value of the folder behavior. Can be
|
194
|
+
* `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.
|
195
195
|
* `attachment_file` (file): Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
196
196
|
* `name` (string): Name for this behavior.
|
197
197
|
* `description` (string): Description for this behavior.
|
data/docs/bundle.md
CHANGED
@@ -30,7 +30,20 @@
|
|
30
30
|
4
|
31
31
|
],
|
32
32
|
"form_fields": [
|
33
|
-
|
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":
|
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
|
},
|
data/docs/file_comment.md
CHANGED
data/docs/form_field_set.md
CHANGED
@@ -13,7 +13,20 @@
|
|
13
13
|
4
|
14
14
|
],
|
15
15
|
"form_fields": [
|
16
|
-
|
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,
|
@@ -73,7 +86,7 @@ Files::FormFieldSet.create(
|
|
73
86
|
skip_email: true,
|
74
87
|
skip_name: true,
|
75
88
|
skip_company: true,
|
76
|
-
form_fields: [
|
89
|
+
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}]
|
77
90
|
)
|
78
91
|
```
|
79
92
|
|
@@ -97,7 +110,7 @@ Files::FormFieldSet.update(id,
|
|
97
110
|
skip_email: true,
|
98
111
|
skip_name: true,
|
99
112
|
skip_company: true,
|
100
|
-
form_fields: [
|
113
|
+
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}]
|
101
114
|
)
|
102
115
|
```
|
103
116
|
|
@@ -136,7 +149,7 @@ form_field_set.update(
|
|
136
149
|
skip_email: true,
|
137
150
|
skip_name: true,
|
138
151
|
skip_company: true,
|
139
|
-
form_fields: [
|
152
|
+
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}]
|
140
153
|
)
|
141
154
|
```
|
142
155
|
|
data/docs/invoice.md
CHANGED
@@ -11,11 +11,26 @@
|
|
11
11
|
"currency": "USD",
|
12
12
|
"download_uri": "https://url...",
|
13
13
|
"invoice_line_items": [
|
14
|
-
|
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
|
-
|
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",
|
data/docs/message.md
CHANGED
@@ -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
|
-
|
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
|
```
|
data/docs/message_comment.md
CHANGED
data/docs/payment.md
CHANGED
@@ -11,11 +11,26 @@
|
|
11
11
|
"currency": "USD",
|
12
12
|
"download_uri": "https://url...",
|
13
13
|
"invoice_line_items": [
|
14
|
-
|
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
|
-
|
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",
|
data/docs/site.md
CHANGED
@@ -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":
|
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":
|
71
|
-
|
72
|
-
|
73
|
-
|
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":
|
95
|
-
|
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
|
-
"
|
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":
|
166
|
-
"bypass_site_allowed_ips":
|
167
|
-
"bypass_inactive_disable":
|
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.
|
@@ -503,6 +543,7 @@ Files::Site.update(
|
|
503
543
|
allowed_2fa_method_totp: true,
|
504
544
|
allowed_2fa_method_webauthn: true,
|
505
545
|
allowed_2fa_method_yubi: true,
|
546
|
+
allowed_2fa_method_email: true,
|
506
547
|
allowed_2fa_method_bypass_for_ftp_sftp_dav: true,
|
507
548
|
require_2fa: true,
|
508
549
|
require_2fa_user_type: "`site_admins`",
|
@@ -582,6 +623,7 @@ Files::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 @@ Files::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)?
|
data/docs/status.md
CHANGED
@@ -144,13 +144,31 @@ module Files
|
|
144
144
|
@attributes[:recurring_day] = value
|
145
145
|
end
|
146
146
|
|
147
|
-
#
|
148
|
-
def
|
149
|
-
@attributes[:
|
147
|
+
# array - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
|
148
|
+
def schedule_days_of_week
|
149
|
+
@attributes[:schedule_days_of_week]
|
150
150
|
end
|
151
151
|
|
152
|
-
def
|
153
|
-
@attributes[:
|
152
|
+
def schedule_days_of_week=(value)
|
153
|
+
@attributes[:schedule_days_of_week] = value
|
154
|
+
end
|
155
|
+
|
156
|
+
# array - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
|
157
|
+
def schedule_times_of_day
|
158
|
+
@attributes[:schedule_times_of_day]
|
159
|
+
end
|
160
|
+
|
161
|
+
def schedule_times_of_day=(value)
|
162
|
+
@attributes[:schedule_times_of_day] = value
|
163
|
+
end
|
164
|
+
|
165
|
+
# string - If trigger is `custom_schedule`, Custom schedule description for when the automation should be run.
|
166
|
+
def schedule_time_zone
|
167
|
+
@attributes[:schedule_time_zone]
|
168
|
+
end
|
169
|
+
|
170
|
+
def schedule_time_zone=(value)
|
171
|
+
@attributes[:schedule_time_zone] = value
|
154
172
|
end
|
155
173
|
|
156
174
|
# string - Source Path
|
@@ -256,7 +274,9 @@ module Files
|
|
256
274
|
# sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
257
275
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
258
276
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
259
|
-
#
|
277
|
+
# 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.
|
278
|
+
# 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.
|
279
|
+
# schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
260
280
|
# 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.
|
261
281
|
# description - string - Description for the this Automation.
|
262
282
|
# disabled - boolean - If true, this automation will not run.
|
@@ -281,6 +301,9 @@ module Files
|
|
281
301
|
raise InvalidParameterError.new("Bad parameter: sync_ids must be an String") if params[:sync_ids] and !params[:sync_ids].is_a?(String)
|
282
302
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
283
303
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params[:group_ids] and !params[:group_ids].is_a?(String)
|
304
|
+
raise InvalidParameterError.new("Bad parameter: schedule_days_of_week must be an Array") if params[:schedule_days_of_week] and !params[:schedule_days_of_week].is_a?(Array)
|
305
|
+
raise InvalidParameterError.new("Bad parameter: schedule_times_of_day must be an Array") if params[:schedule_times_of_day] and !params[:schedule_times_of_day].is_a?(Array)
|
306
|
+
raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
|
284
307
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
285
308
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
286
309
|
raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
|
@@ -374,7 +397,9 @@ module Files
|
|
374
397
|
# sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
375
398
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
376
399
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
377
|
-
#
|
400
|
+
# 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.
|
401
|
+
# 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.
|
402
|
+
# schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
378
403
|
# 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.
|
379
404
|
# description - string - Description for the this Automation.
|
380
405
|
# disabled - boolean - If true, this automation will not run.
|
@@ -395,7 +420,9 @@ module Files
|
|
395
420
|
raise InvalidParameterError.new("Bad parameter: sync_ids must be an String") if params[:sync_ids] and !params[:sync_ids].is_a?(String)
|
396
421
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
397
422
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params[:group_ids] and !params[:group_ids].is_a?(String)
|
398
|
-
raise InvalidParameterError.new("Bad parameter:
|
423
|
+
raise InvalidParameterError.new("Bad parameter: schedule_days_of_week must be an Array") if params[:schedule_days_of_week] and !params[:schedule_days_of_week].is_a?(Array)
|
424
|
+
raise InvalidParameterError.new("Bad parameter: schedule_times_of_day must be an Array") if params[:schedule_times_of_day] and !params[:schedule_times_of_day].is_a?(Array)
|
425
|
+
raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
|
399
426
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
400
427
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
401
428
|
raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
|
@@ -431,7 +458,9 @@ module Files
|
|
431
458
|
# sync_ids - string - A list of sync IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
432
459
|
# user_ids - string - A list of user IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
433
460
|
# group_ids - string - A list of group IDs the automation is associated with. If sent as a string, it should be comma-delimited.
|
434
|
-
#
|
461
|
+
# 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.
|
462
|
+
# 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.
|
463
|
+
# schedule_time_zone - string - If trigger is `custom_schedule`. Time zone for the schedule.
|
435
464
|
# 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.
|
436
465
|
# description - string - Description for the this Automation.
|
437
466
|
# disabled - boolean - If true, this automation will not run.
|
@@ -455,7 +484,9 @@ module Files
|
|
455
484
|
raise InvalidParameterError.new("Bad parameter: sync_ids must be an String") if params[:sync_ids] and !params[:sync_ids].is_a?(String)
|
456
485
|
raise InvalidParameterError.new("Bad parameter: user_ids must be an String") if params[:user_ids] and !params[:user_ids].is_a?(String)
|
457
486
|
raise InvalidParameterError.new("Bad parameter: group_ids must be an String") if params[:group_ids] and !params[:group_ids].is_a?(String)
|
458
|
-
raise InvalidParameterError.new("Bad parameter:
|
487
|
+
raise InvalidParameterError.new("Bad parameter: schedule_days_of_week must be an Array") if params[:schedule_days_of_week] and !params[:schedule_days_of_week].is_a?(Array)
|
488
|
+
raise InvalidParameterError.new("Bad parameter: schedule_times_of_day must be an Array") if params[:schedule_times_of_day] and !params[:schedule_times_of_day].is_a?(Array)
|
489
|
+
raise InvalidParameterError.new("Bad parameter: schedule_time_zone must be an String") if params[:schedule_time_zone] and !params[:schedule_time_zone].is_a?(String)
|
459
490
|
raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
|
460
491
|
raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String)
|
461
492
|
raise InvalidParameterError.new("Bad parameter: trigger must be an String") if params[:trigger] and !params[:trigger].is_a?(String)
|
@@ -91,7 +91,7 @@ module Files
|
|
91
91
|
end
|
92
92
|
|
93
93
|
# Parameters:
|
94
|
-
# value - string - The value of the folder behavior. Can be
|
94
|
+
# 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.
|
95
95
|
# attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
96
96
|
# name - string - Name for this behavior.
|
97
97
|
# description - string - Description for this behavior.
|
@@ -205,7 +205,7 @@ module Files
|
|
205
205
|
end
|
206
206
|
|
207
207
|
# Parameters:
|
208
|
-
# value - string - The value of the folder behavior. Can be
|
208
|
+
# 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.
|
209
209
|
# attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
210
210
|
# name - string - Name for this behavior.
|
211
211
|
# description - string - Description for this behavior.
|
@@ -245,7 +245,7 @@ module Files
|
|
245
245
|
end
|
246
246
|
|
247
247
|
# Parameters:
|
248
|
-
# value - string - The value of the folder behavior. Can be
|
248
|
+
# 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.
|
249
249
|
# attachment_file - file - Certain behaviors may require a file, for instance, the "watermark" behavior requires a watermark image
|
250
250
|
# name - string - Name for this behavior.
|
251
251
|
# description - string - Description for this behavior.
|
@@ -39,6 +39,11 @@ module Files
|
|
39
39
|
@attributes[:allowed_2fa_method_yubi]
|
40
40
|
end
|
41
41
|
|
42
|
+
# boolean - Is OTP via email two factor authentication allowed?
|
43
|
+
def allowed_2fa_method_email
|
44
|
+
@attributes[:allowed_2fa_method_email]
|
45
|
+
end
|
46
|
+
|
42
47
|
# boolean - Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
|
43
48
|
def allowed_2fa_method_bypass_for_ftp_sftp_dav
|
44
49
|
@attributes[:allowed_2fa_method_bypass_for_ftp_sftp_dav]
|
@@ -812,6 +817,7 @@ module Files
|
|
812
817
|
# motd_text - string - A message to show users when they connect via FTP or SFTP.
|
813
818
|
# motd_use_for_ftp - boolean - Show message to users connecting via FTP
|
814
819
|
# motd_use_for_sftp - boolean - Show message to users connecting via SFTP
|
820
|
+
# left_navigation_visibility - object - Visibility settings for account navigation
|
815
821
|
# session_expiry - double - Session expiry in hours
|
816
822
|
# ssl_required - boolean - Is SSL required? Disabling this is insecure.
|
817
823
|
# tls_disabled - boolean - Are Insecure TLS and SFTP Ciphers allowed? Enabling this is insecure.
|
@@ -874,6 +880,7 @@ module Files
|
|
874
880
|
# allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
|
875
881
|
# allowed_2fa_method_webauthn - boolean - Is WebAuthn two factor authentication allowed?
|
876
882
|
# allowed_2fa_method_yubi - boolean - Is yubikey two factor authentication allowed?
|
883
|
+
# allowed_2fa_method_email - boolean - Is OTP via email two factor authentication allowed?
|
877
884
|
# 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?
|
878
885
|
# require_2fa - boolean - Require two-factor authentication for all users?
|
879
886
|
# 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)?
|
@@ -944,6 +951,7 @@ module Files
|
|
944
951
|
raise InvalidParameterError.new("Bad parameter: welcome_screen must be an String") if params[:welcome_screen] and !params[:welcome_screen].is_a?(String)
|
945
952
|
raise InvalidParameterError.new("Bad parameter: office_integration_type must be an String") if params[:office_integration_type] and !params[:office_integration_type].is_a?(String)
|
946
953
|
raise InvalidParameterError.new("Bad parameter: motd_text must be an String") if params[:motd_text] and !params[:motd_text].is_a?(String)
|
954
|
+
raise InvalidParameterError.new("Bad parameter: left_navigation_visibility must be an Hash") if params[:left_navigation_visibility] and !params[:left_navigation_visibility].is_a?(Hash)
|
947
955
|
raise InvalidParameterError.new("Bad parameter: session_expiry must be an Float") if params[:session_expiry] and !params[:session_expiry].is_a?(Float)
|
948
956
|
raise InvalidParameterError.new("Bad parameter: user_lockout_tries must be an Integer") if params[:user_lockout_tries] and !params[:user_lockout_tries].is_a?(Integer)
|
949
957
|
raise InvalidParameterError.new("Bad parameter: user_lockout_within must be an Integer") if params[:user_lockout_within] and !params[:user_lockout_within].is_a?(Integer)
|
data/lib/files.com/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: files.com
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- files.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|