files.com 1.2.21 → 1.2.23

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.21
1
+ 1.2.23
package/docs/Errors.md CHANGED
@@ -127,6 +127,7 @@ These errors are derived from the error groups listed above.
127
127
  ### NotAuthorized_ReauthenticationFailedError
128
128
  ### NotAuthorized_ReauthenticationFailedFinalError
129
129
  ### NotAuthorized_ReauthenticationNeededActionError
130
+ ### NotAuthorized_RecaptchaFailedError
130
131
  ### NotAuthorized_SelfManagedRequiredError
131
132
  ### NotAuthorized_SiteAdminRequiredError
132
133
  ### NotAuthorized_SiteFilesAreImmutableError
@@ -6,6 +6,7 @@
6
6
  {
7
7
  "id": 1,
8
8
  "name": "owners",
9
+ "allowed_ips": "10.0.0.0/8\n127.0.0.1",
9
10
  "admin_ids": "1",
10
11
  "notes": "example",
11
12
  "user_ids": "1",
@@ -19,6 +20,7 @@
19
20
 
20
21
  * `id` (int64): Group ID
21
22
  * `name` (string): Group name
23
+ * `allowed_ips` (string): A list of allowed IPs if applicable. Newline delimited
22
24
  * `admin_ids` (string): Comma-delimited list of user IDs who are group administrators (separated by commas)
23
25
  * `notes` (string): Notes about this group
24
26
  * `user_ids` (string): Comma-delimited list of user IDs who belong to this group (separated by commas)
@@ -74,6 +76,7 @@ await Group.create({
74
76
  'sftp_permission': true,
75
77
  'dav_permission': true,
76
78
  'restapi_permission': true,
79
+ 'allowed_ips': "10.0.0.0/8\n127.0.0.1",
77
80
  'name': "name",
78
81
  })
79
82
  ```
@@ -88,6 +91,7 @@ await Group.create({
88
91
  * `sftp_permission` (boolean): If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
89
92
  * `dav_permission` (boolean): If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
90
93
  * `restapi_permission` (boolean): If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
94
+ * `allowed_ips` (string): A list of allowed IPs if applicable. Newline delimited
91
95
  * `name` (string): Required - Group name.
92
96
 
93
97
  ---
@@ -105,6 +109,7 @@ await group.update({
105
109
  'sftp_permission': true,
106
110
  'dav_permission': true,
107
111
  'restapi_permission': true,
112
+ 'allowed_ips': "10.0.0.0/8\n127.0.0.1",
108
113
  'name': "owners",
109
114
  })
110
115
  ```
@@ -119,6 +124,7 @@ await group.update({
119
124
  * `sftp_permission` (boolean): If true, users in this group can use SFTP to login. This will override a false value of `sftp_permission` on the user level.
120
125
  * `dav_permission` (boolean): If true, users in this group can use WebDAV to login. This will override a false value of `dav_permission` on the user level.
121
126
  * `restapi_permission` (boolean): If true, users in this group can use the REST API to login. This will override a false value of `restapi_permission` on the user level.
127
+ * `allowed_ips` (string): A list of allowed IPs if applicable. Newline delimited
122
128
  * `name` (string): Group name.
123
129
 
124
130
  ### Example Response
@@ -127,6 +133,7 @@ await group.update({
127
133
  {
128
134
  "id": 1,
129
135
  "name": "owners",
136
+ "allowed_ips": "10.0.0.0/8\n127.0.0.1",
130
137
  "admin_ids": "1",
131
138
  "notes": "example",
132
139
  "user_ids": "1",
@@ -194,7 +194,7 @@
194
194
  "admin_group_ids": [
195
195
  1
196
196
  ],
197
- "allowed_ips": "127.0.0.1",
197
+ "allowed_ips": "10.0.0.0/8\n127.0.0.1",
198
198
  "attachments_permission": true,
199
199
  "api_keys_count": 1,
200
200
  "authenticate_until": "2000-01-01T01:00:00Z",
@@ -9,7 +9,7 @@
9
9
  "admin_group_ids": [
10
10
  1
11
11
  ],
12
- "allowed_ips": "127.0.0.1",
12
+ "allowed_ips": "10.0.0.0/8\n127.0.0.1",
13
13
  "attachments_permission": true,
14
14
  "api_keys_count": 1,
15
15
  "authenticate_until": "2000-01-01T01:00:00Z",
@@ -189,7 +189,7 @@ await User.create({
189
189
  'group_id': 1,
190
190
  'group_ids': "example",
191
191
  'announcements_read': true,
192
- 'allowed_ips': "127.0.0.1",
192
+ 'allowed_ips': "10.0.0.0/8\n127.0.0.1",
193
193
  'attachments_permission': true,
194
194
  'authenticate_until': "2000-01-01T01:00:00Z",
195
195
  'authentication_method': "password",
@@ -332,7 +332,7 @@ await user.update({
332
332
  'group_id': 1,
333
333
  'group_ids': "example",
334
334
  'announcements_read': true,
335
- 'allowed_ips': "127.0.0.1",
335
+ 'allowed_ips': "10.0.0.0/8\n127.0.0.1",
336
336
  'attachments_permission': true,
337
337
  'authenticate_until': "2000-01-01T01:00:00Z",
338
338
  'authentication_method': "password",
@@ -426,7 +426,7 @@ await user.update({
426
426
  "admin_group_ids": [
427
427
  1
428
428
  ],
429
- "allowed_ips": "127.0.0.1",
429
+ "allowed_ips": "10.0.0.0/8\n127.0.0.1",
430
430
  "attachments_permission": true,
431
431
  "api_keys_count": 1,
432
432
  "authenticate_until": "2000-01-01T01:00:00Z",