files.com 1.0.298 → 1.0.300

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3e5ba413e3894bc38bc4fe3d8632f8eb7809368963095101fb8c4c479246dd8
4
- data.tar.gz: d7179818843d71a47f74c67a74d524209646232a447b451569564456b5db0fee
3
+ metadata.gz: d254f2d5da5d785a5be384cc526a1697a3774a8a31df315dfba7dfc689c115b8
4
+ data.tar.gz: 3303a48addebc1b06e1a0a16a9019254b1dfea5733f74adeeac7c9e53aeed0de
5
5
  SHA512:
6
- metadata.gz: 1c279c4636e00579259cdc6960fa7c7171f302954bd7a74dc375d45d4514c60694a111443d72394173ef19d134d6d0f2df6ac9a4569fdccd6b309b850560f838
7
- data.tar.gz: 9e5437da0aa30ec3e9d3ae2b9b7f2c36d26503249cb712996e7d8aed65cd2ad92e3c65a6bee29b0ba70a138239a53e3851295b7d92bcc8a9d16f13fda60f1455
6
+ metadata.gz: 9e5f9056389ef70a9b40e56f167e1c02959fd182a69ce214191d0920f2a7f5df7917b75e739aafb53a1ffa8464a5956ac1de3aa34792e764493418b5478487f2
7
+ data.tar.gz: 0b563cf3388670d93ed033108464e2be0f4fbec633c6be0476d6fe9be48243047bb77f543e87d0a6639cbe71aaa4559c5f0aca414b4a27d37512022e4a33c571
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.298
1
+ 1.0.300
data/docs/api_key.md CHANGED
@@ -15,6 +15,7 @@
15
15
  "path": "shared/docs",
16
16
  "permission_set": "full",
17
17
  "platform": "win32",
18
+ "url": "example",
18
19
  "user_id": 1
19
20
  }
20
21
  ```
@@ -30,6 +31,7 @@
30
31
  * `path` (string): Folder path restriction for this api key. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
31
32
  * `permission_set` (string): Permissions for this API Key. Keys with the `desktop_app` permission set only have the ability to do the functions provided in our Desktop App (File and Share Link operations). Additional permission sets may become available in the future, such as for a Site Admin to give a key with no administrator privileges. If you have ideas for permission sets, please let us know.
32
33
  * `platform` (string): If this API key represents a Desktop app, what platform was it created on?
34
+ * `url` (string): URL for API host.
33
35
  * `user_id` (int64): User ID for the owner of this API Key. May be blank for Site-wide API Keys.
34
36
 
35
37
 
data/docs/bundle.md CHANGED
@@ -19,9 +19,11 @@
19
19
  "skip_company": true,
20
20
  "id": 1,
21
21
  "created_at": "2000-01-01T01:00:00Z",
22
+ "dont_separate_submissions_by_folder": true,
22
23
  "expires_at": "2000-01-01T01:00:00Z",
23
24
  "max_uses": 1,
24
25
  "note": "The internal note on the bundle.",
26
+ "path_template": "{{name}}_{{ip}}",
25
27
  "user_id": 1,
26
28
  "username": "user",
27
29
  "clickwrap_id": 1,
@@ -52,9 +54,11 @@
52
54
  * `skip_company` (boolean): BundleRegistrations can be saved without providing company?
53
55
  * `id` (int64): Bundle ID
54
56
  * `created_at` (date-time): Bundle created at date/time
57
+ * `dont_separate_submissions_by_folder` (boolean): Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
55
58
  * `expires_at` (date-time): Bundle expiration date/time
56
59
  * `max_uses` (int64): Maximum number of times bundle can be accessed
57
60
  * `note` (string): Bundle internal note
61
+ * `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
58
62
  * `user_id` (int64): Bundle creator user ID
59
63
  * `username` (string): Bundle creator username
60
64
  * `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
@@ -117,11 +121,13 @@ Files::Bundle.create(
117
121
  paths: ["file.txt"],
118
122
  password: "Password",
119
123
  form_field_set_id: 1,
124
+ dont_separate_submissions_by_folder: true,
120
125
  expires_at: "2000-01-01T01:00:00Z",
121
126
  max_uses: 1,
122
127
  description: "The public description of the bundle.",
123
128
  note: "The internal note on the bundle.",
124
129
  code: "abc123",
130
+ path_template: "{{name}}_{{ip}}",
125
131
  permissions: "read",
126
132
  preview_only: true,
127
133
  require_registration: true,
@@ -140,11 +146,13 @@ Files::Bundle.create(
140
146
  * `paths` (array(string)): Required - A list of paths to include in this bundle.
141
147
  * `password` (string): Password for this bundle.
142
148
  * `form_field_set_id` (int64): Id of Form Field Set to use with this bundle
149
+ * `dont_separate_submissions_by_folder` (boolean): Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
143
150
  * `expires_at` (string): Bundle expiration date/time
144
151
  * `max_uses` (int64): Maximum number of times bundle can be accessed
145
152
  * `description` (string): Public description
146
153
  * `note` (string): Bundle internal note
147
154
  * `code` (string): Bundle code. This code forms the end part of the Public URL.
155
+ * `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
148
156
  * `permissions` (string): Permissions that apply to Folders in this Share Link.
149
157
  * `preview_only` (boolean): Restrict users to previewing files only?
150
158
  * `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
@@ -189,10 +197,12 @@ Files::Bundle.update(id,
189
197
  clickwrap_id: 1,
190
198
  code: "abc123",
191
199
  description: "The public description of the bundle.",
200
+ dont_separate_submissions_by_folder: true,
192
201
  expires_at: "2000-01-01T01:00:00Z",
193
202
  inbox_id: 1,
194
203
  max_uses: 1,
195
204
  note: "The internal note on the bundle.",
205
+ path_template: "{{name}}_{{ip}}",
196
206
  permissions: "read",
197
207
  preview_only: true,
198
208
  require_registration: true,
@@ -213,10 +223,12 @@ Files::Bundle.update(id,
213
223
  * `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
214
224
  * `code` (string): Bundle code. This code forms the end part of the Public URL.
215
225
  * `description` (string): Public description
226
+ * `dont_separate_submissions_by_folder` (boolean): Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
216
227
  * `expires_at` (string): Bundle expiration date/time
217
228
  * `inbox_id` (int64): ID of the associated inbox, if available.
218
229
  * `max_uses` (int64): Maximum number of times bundle can be accessed
219
230
  * `note` (string): Bundle internal note
231
+ * `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
220
232
  * `permissions` (string): Permissions that apply to Folders in this Share Link.
221
233
  * `preview_only` (boolean): Restrict users to previewing files only?
222
234
  * `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
@@ -277,10 +289,12 @@ bundle.update(
277
289
  clickwrap_id: 1,
278
290
  code: "abc123",
279
291
  description: "The public description of the bundle.",
292
+ dont_separate_submissions_by_folder: true,
280
293
  expires_at: "2000-01-01T01:00:00Z",
281
294
  inbox_id: 1,
282
295
  max_uses: 1,
283
296
  note: "The internal note on the bundle.",
297
+ path_template: "{{name}}_{{ip}}",
284
298
  permissions: "read",
285
299
  preview_only: true,
286
300
  require_registration: true,
@@ -301,10 +315,12 @@ bundle.update(
301
315
  * `clickwrap_id` (int64): ID of the clickwrap to use with this bundle.
302
316
  * `code` (string): Bundle code. This code forms the end part of the Public URL.
303
317
  * `description` (string): Public description
318
+ * `dont_separate_submissions_by_folder` (boolean): Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
304
319
  * `expires_at` (string): Bundle expiration date/time
305
320
  * `inbox_id` (int64): ID of the associated inbox, if available.
306
321
  * `max_uses` (int64): Maximum number of times bundle can be accessed
307
322
  * `note` (string): Bundle internal note
323
+ * `path_template` (string): Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
308
324
  * `permissions` (string): Permissions that apply to Folders in this Share Link.
309
325
  * `preview_only` (boolean): Restrict users to previewing files only?
310
326
  * `require_registration` (boolean): Show a registration page that captures the downloader's name and email address?
data/docs/site.md CHANGED
@@ -107,6 +107,8 @@
107
107
  "session": "",
108
108
  "session_pinned_by_ip": true,
109
109
  "sftp_enabled": true,
110
+ "sftp_host_key_type": "default",
111
+ "active_sftp_host_key_id": 1,
110
112
  "sftp_insecure_ciphers": true,
111
113
  "sftp_user_root_enabled": true,
112
114
  "sharing_enabled": true,
@@ -245,6 +247,8 @@
245
247
  * `session` (Session): Current session
246
248
  * `session_pinned_by_ip` (boolean): Are sessions locked to the same IP? (i.e. do users need to log in again if they change IPs?)
247
249
  * `sftp_enabled` (boolean): Is SFTP enabled?
250
+ * `sftp_host_key_type` (string): Sftp Host Key Type
251
+ * `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
248
252
  * `sftp_insecure_ciphers` (boolean): Are Insecure Ciphers allowed for SFTP? Note: Settting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
249
253
  * `sftp_user_root_enabled` (boolean): Use user FTP roots also for SFTP?
250
254
  * `sharing_enabled` (boolean): Allow bundle creation
@@ -377,6 +381,8 @@ Files::Site.update(
377
381
  user_requests_notify_admins: true,
378
382
  ftp_enabled: true,
379
383
  sftp_enabled: true,
384
+ sftp_host_key_type: "default",
385
+ active_sftp_host_key_id: 1,
380
386
  bundle_watermark_value: {"key":"example value"},
381
387
  allowed_2fa_method_sms: true,
382
388
  allowed_2fa_method_u2f: true,
@@ -499,6 +505,8 @@ Files::Site.update(
499
505
  * `user_requests_notify_admins` (boolean): Send email to site admins when a user request is received?
500
506
  * `ftp_enabled` (boolean): Is FTP enabled?
501
507
  * `sftp_enabled` (boolean): Is SFTP enabled?
508
+ * `sftp_host_key_type` (string): Sftp Host Key Type
509
+ * `active_sftp_host_key_id` (int64): Id of the currently selected custom SFTP Host Key
502
510
  * `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
503
511
  * `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
504
512
  * `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
@@ -104,6 +104,15 @@ module Files
104
104
  @attributes[:platform] = value
105
105
  end
106
106
 
107
+ # string - URL for API host.
108
+ def url
109
+ @attributes[:url]
110
+ end
111
+
112
+ def url=(value)
113
+ @attributes[:url] = value
114
+ end
115
+
107
116
  # int64 - User ID for the owner of this API Key. May be blank for Site-wide API Keys.
108
117
  def user_id
109
118
  @attributes[:user_id]
@@ -140,6 +140,15 @@ module Files
140
140
  @attributes[:created_at]
141
141
  end
142
142
 
143
+ # boolean - Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
144
+ def dont_separate_submissions_by_folder
145
+ @attributes[:dont_separate_submissions_by_folder]
146
+ end
147
+
148
+ def dont_separate_submissions_by_folder=(value)
149
+ @attributes[:dont_separate_submissions_by_folder] = value
150
+ end
151
+
143
152
  # date-time - Bundle expiration date/time
144
153
  def expires_at
145
154
  @attributes[:expires_at]
@@ -167,6 +176,15 @@ module Files
167
176
  @attributes[:note] = value
168
177
  end
169
178
 
179
+ # string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
180
+ def path_template
181
+ @attributes[:path_template]
182
+ end
183
+
184
+ def path_template=(value)
185
+ @attributes[:path_template] = value
186
+ end
187
+
170
188
  # int64 - Bundle creator user ID
171
189
  def user_id
172
190
  @attributes[:user_id]
@@ -301,10 +319,12 @@ module Files
301
319
  # clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
302
320
  # code - string - Bundle code. This code forms the end part of the Public URL.
303
321
  # description - string - Public description
322
+ # dont_separate_submissions_by_folder - boolean - Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
304
323
  # expires_at - string - Bundle expiration date/time
305
324
  # inbox_id - int64 - ID of the associated inbox, if available.
306
325
  # max_uses - int64 - Maximum number of times bundle can be accessed
307
326
  # note - string - Bundle internal note
327
+ # path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
308
328
  # permissions - string - Permissions that apply to Folders in this Share Link.
309
329
  # preview_only - boolean - Restrict users to previewing files only?
310
330
  # require_registration - boolean - Show a registration page that captures the downloader's name and email address?
@@ -329,6 +349,7 @@ module Files
329
349
  raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params[:inbox_id] and !params[:inbox_id].is_a?(Integer)
330
350
  raise InvalidParameterError.new("Bad parameter: max_uses must be an Integer") if params[:max_uses] and !params[:max_uses].is_a?(Integer)
331
351
  raise InvalidParameterError.new("Bad parameter: note must be an String") if params[:note] and !params[:note].is_a?(String)
352
+ raise InvalidParameterError.new("Bad parameter: path_template must be an String") if params[:path_template] and !params[:path_template].is_a?(String)
332
353
  raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
333
354
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
334
355
 
@@ -411,11 +432,13 @@ module Files
411
432
  # paths (required) - array(string) - A list of paths to include in this bundle.
412
433
  # password - string - Password for this bundle.
413
434
  # form_field_set_id - int64 - Id of Form Field Set to use with this bundle
435
+ # dont_separate_submissions_by_folder - boolean - Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
414
436
  # expires_at - string - Bundle expiration date/time
415
437
  # max_uses - int64 - Maximum number of times bundle can be accessed
416
438
  # description - string - Public description
417
439
  # note - string - Bundle internal note
418
440
  # code - string - Bundle code. This code forms the end part of the Public URL.
441
+ # path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
419
442
  # permissions - string - Permissions that apply to Folders in this Share Link.
420
443
  # preview_only - boolean - Restrict users to previewing files only?
421
444
  # require_registration - boolean - Show a registration page that captures the downloader's name and email address?
@@ -436,6 +459,7 @@ module Files
436
459
  raise InvalidParameterError.new("Bad parameter: description must be an String") if params[:description] and !params[:description].is_a?(String)
437
460
  raise InvalidParameterError.new("Bad parameter: note must be an String") if params[:note] and !params[:note].is_a?(String)
438
461
  raise InvalidParameterError.new("Bad parameter: code must be an String") if params[:code] and !params[:code].is_a?(String)
462
+ raise InvalidParameterError.new("Bad parameter: path_template must be an String") if params[:path_template] and !params[:path_template].is_a?(String)
439
463
  raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
440
464
  raise InvalidParameterError.new("Bad parameter: clickwrap_id must be an Integer") if params[:clickwrap_id] and !params[:clickwrap_id].is_a?(Integer)
441
465
  raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params[:inbox_id] and !params[:inbox_id].is_a?(Integer)
@@ -471,10 +495,12 @@ module Files
471
495
  # clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
472
496
  # code - string - Bundle code. This code forms the end part of the Public URL.
473
497
  # description - string - Public description
498
+ # dont_separate_submissions_by_folder - boolean - Do not create subfolders for files uploaded to this share. Note: there are subtle security pitfalls with allowing anonymous uploads from multiple users to live in the same folder. We strongly discourage use of this option unless absolutely required.
474
499
  # expires_at - string - Bundle expiration date/time
475
500
  # inbox_id - int64 - ID of the associated inbox, if available.
476
501
  # max_uses - int64 - Maximum number of times bundle can be accessed
477
502
  # note - string - Bundle internal note
503
+ # path_template - string - Template for creating submission subfolders. Can use the uploader's name, email address, ip, company, and any custom form data.
478
504
  # permissions - string - Permissions that apply to Folders in this Share Link.
479
505
  # preview_only - boolean - Restrict users to previewing files only?
480
506
  # require_registration - boolean - Show a registration page that captures the downloader's name and email address?
@@ -498,6 +524,7 @@ module Files
498
524
  raise InvalidParameterError.new("Bad parameter: inbox_id must be an Integer") if params[:inbox_id] and !params[:inbox_id].is_a?(Integer)
499
525
  raise InvalidParameterError.new("Bad parameter: max_uses must be an Integer") if params[:max_uses] and !params[:max_uses].is_a?(Integer)
500
526
  raise InvalidParameterError.new("Bad parameter: note must be an String") if params[:note] and !params[:note].is_a?(String)
527
+ raise InvalidParameterError.new("Bad parameter: path_template must be an String") if params[:path_template] and !params[:path_template].is_a?(String)
501
528
  raise InvalidParameterError.new("Bad parameter: permissions must be an String") if params[:permissions] and !params[:permissions].is_a?(String)
502
529
  raise MissingParameterError.new("Parameter missing: id") unless params[:id]
503
530
 
@@ -514,6 +514,16 @@ module Files
514
514
  @attributes[:sftp_enabled]
515
515
  end
516
516
 
517
+ # string - Sftp Host Key Type
518
+ def sftp_host_key_type
519
+ @attributes[:sftp_host_key_type]
520
+ end
521
+
522
+ # int64 - Id of the currently selected custom SFTP Host Key
523
+ def active_sftp_host_key_id
524
+ @attributes[:active_sftp_host_key_id]
525
+ end
526
+
517
527
  # boolean - Are Insecure Ciphers allowed for SFTP? Note: Settting TLS Disabled -> True will always allow insecure ciphers for SFTP as well. Enabling this is insecure.
518
528
  def sftp_insecure_ciphers
519
529
  @attributes[:sftp_insecure_ciphers]
@@ -767,6 +777,8 @@ module Files
767
777
  # user_requests_notify_admins - boolean - Send email to site admins when a user request is received?
768
778
  # ftp_enabled - boolean - Is FTP enabled?
769
779
  # sftp_enabled - boolean - Is SFTP enabled?
780
+ # sftp_host_key_type - string - Sftp Host Key Type
781
+ # active_sftp_host_key_id - int64 - Id of the currently selected custom SFTP Host Key
770
782
  # bundle_watermark_value - object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
771
783
  # allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
772
784
  # allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
@@ -850,6 +862,8 @@ module Files
850
862
  raise InvalidParameterError.new("Bad parameter: password_validity_days must be an Integer") if params[:password_validity_days] and !params[:password_validity_days].is_a?(Integer)
851
863
  raise InvalidParameterError.new("Bad parameter: password_min_length must be an Integer") if params[:password_min_length] and !params[:password_min_length].is_a?(Integer)
852
864
  raise InvalidParameterError.new("Bad parameter: disable_users_from_inactivity_period_days must be an Integer") if params[:disable_users_from_inactivity_period_days] and !params[:disable_users_from_inactivity_period_days].is_a?(Integer)
865
+ raise InvalidParameterError.new("Bad parameter: sftp_host_key_type must be an String") if params[:sftp_host_key_type] and !params[:sftp_host_key_type].is_a?(String)
866
+ raise InvalidParameterError.new("Bad parameter: active_sftp_host_key_id must be an Integer") if params[:active_sftp_host_key_id] and !params[:active_sftp_host_key_id].is_a?(Integer)
853
867
  raise InvalidParameterError.new("Bad parameter: bundle_watermark_value must be an Hash") if params[:bundle_watermark_value] and !params[:bundle_watermark_value].is_a?(Hash)
854
868
  raise InvalidParameterError.new("Bad parameter: require_2fa_user_type must be an String") if params[:require_2fa_user_type] and !params[:require_2fa_user_type].is_a?(String)
855
869
  raise InvalidParameterError.new("Bad parameter: color2_top must be an String") if params[:color2_top] and !params[:color2_top].is_a?(String)
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.0.298
4
+ version: 1.0.300
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-03 00:00:00.000000000 Z
11
+ date: 2022-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable