files.com 1.0.213 → 1.0.217

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e045daa127987d2f0eb06955dbe9bbc09207311d00cef771bfb1a49a8d967c5a
4
- data.tar.gz: 45db1790ded201753f0a9649a98336f68be1e5b87dffbcff4a09970cbca1b184
3
+ metadata.gz: df4541a5bc5eba15a7adca76540ac107518332f7afb3f03cc967ca520dc00cb5
4
+ data.tar.gz: 4215a8fea2ad437b8689050d8396a998eccb7d82ca137071cecb0868426089b4
5
5
  SHA512:
6
- metadata.gz: 92fe4d433c889b9e34ec8e0d6de04a3aa37bb69696685255f5d3955e959b60cb2dc9afe9ed484c35d1f1c636393618b754ef4d9802642e976341e4a47c69614c
7
- data.tar.gz: e8d38b379e51963e1b2865dbff139914e1dac9662833b12802ca0f2694d4c637dcba8b32defcee00d543cc3429577878695737bf5c000e4d573b8f3ce1aaa4b2
6
+ metadata.gz: bcea32ba1ebddc4f10841a384a0cd4fa56153e9ce0f09bc502e2a55842d5ea01e57a3408dc1d5a8ed2a56b1eced97dfac5aa608552db01a98c0d63a049f28b61
7
+ data.tar.gz: a2ffe21e7323618a841c1aae62dfbe336d1c80e1335824dd0b5a6833773b5e8ef260492040721dfc2f0255c91df06a6ed1da249c400f2ce94a9e7f68fe2bf72a
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.213
1
+ 1.0.217
@@ -32,4 +32,11 @@ Files::AutomationRun.list(
32
32
  * `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
33
33
  * `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
34
34
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
35
+ * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `created_at` and `status`.
36
+ * `filter` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `status`.
37
+ * `filter_gt` (object): If set, return records where the specifiied field is greater than the supplied value. Valid fields are `status`.
38
+ * `filter_gteq` (object): If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `status`.
39
+ * `filter_like` (object): If set, return records where the specifiied field is equal to the supplied value. Valid fields are `status`.
40
+ * `filter_lt` (object): If set, return records where the specifiied field is less than the supplied value. Valid fields are `status`.
41
+ * `filter_lteq` (object): If set, return records where the specifiied field is less than or equal to the supplied value. Valid fields are `status`.
35
42
  * `automation_id` (int64): Required - ID of the associated Automation.
data/docs/site.md CHANGED
@@ -17,6 +17,11 @@
17
17
  "bundle_expiration": 1,
18
18
  "bundle_password_required": true,
19
19
  "bundle_require_share_recipient": true,
20
+ "bundle_watermark_attachment": {
21
+ "name": "My logo",
22
+ "uri": "https://mysite.files.com/.../my_image.png"
23
+ },
24
+ "bundle_watermark_value": "",
20
25
  "color2_left": "#0066a7",
21
26
  "color2_link": "#d34f5d",
22
27
  "color2_text": "#0066a7",
@@ -38,6 +43,8 @@
38
43
  "disable_notifications": true,
39
44
  "disable_password_reset": true,
40
45
  "domain": "my-custom-domain.com",
46
+ "domain_hsts_header": true,
47
+ "domain_letsencrypt_chain": "",
41
48
  "email": "john.doe@files.com",
42
49
  "ftp_enabled": true,
43
50
  "reply_to_email": "jane.doe@files.com",
@@ -228,6 +235,8 @@
228
235
  * `bundle_expiration` (int64): Site-wide Bundle expiration in days
229
236
  * `bundle_password_required` (boolean): Do Bundles require password protection?
230
237
  * `bundle_require_share_recipient` (boolean): Do Bundles require recipients for sharing?
238
+ * `bundle_watermark_attachment`: Preview watermark image applied to all bundle items.
239
+ * `bundle_watermark_value` (object): Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
231
240
  * `color2_left` (string): Page link and button color
232
241
  * `color2_link` (string): Top bar link color
233
242
  * `color2_text` (string): Page link and button color
@@ -249,6 +258,8 @@
249
258
  * `disable_notifications` (boolean): Are notifications disabled?
250
259
  * `disable_password_reset` (boolean): Is password reset disabled?
251
260
  * `domain` (string): Custom domain
261
+ * `domain_hsts_header` (boolean): Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
262
+ * `domain_letsencrypt_chain` (string): Letsencrypt chain to use when registering SSL Certificate for domain.
252
263
  * `email` (email): Main email for this site
253
264
  * `ftp_enabled` (boolean): Is FTP enabled?
254
265
  * `reply_to_email` (email): Reply-to email for this site
@@ -366,6 +377,7 @@ Files::Site.update(
366
377
  name: "My Site",
367
378
  subdomain: "mysite",
368
379
  domain: "my-custom-domain.com",
380
+ domain_hsts_header: true,
369
381
  email: "john.doe@files.com",
370
382
  reply_to_email: "jane.doe@files.com",
371
383
  allow_bundle_names: true,
@@ -458,6 +470,7 @@ Files::Site.update(
458
470
  icon48_delete: true,
459
471
  icon128_delete: true,
460
472
  logo_delete: true,
473
+ bundle_watermark_attachment_delete: true,
461
474
  disable_2fa_with_delay: true
462
475
  )
463
476
  ```
@@ -467,6 +480,8 @@ Files::Site.update(
467
480
  * `name` (string): Site name
468
481
  * `subdomain` (string): Site subdomain
469
482
  * `domain` (string): Custom domain
483
+ * `domain_hsts_header` (boolean): Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
484
+ * `domain_letsencrypt_chain` (string): Letsencrypt chain to use when registering SSL Certificate for domain.
470
485
  * `email` (string): Main email for this site
471
486
  * `reply_to_email` (string): Reply-to email for this site
472
487
  * `allow_bundle_names` (boolean): Are manual Bundle names allowed?
@@ -572,6 +587,8 @@ Files::Site.update(
572
587
  * `icon128_delete` (boolean): If true, will delete the file stored in icon128
573
588
  * `logo_file` (file):
574
589
  * `logo_delete` (boolean): If true, will delete the file stored in logo
590
+ * `bundle_watermark_attachment_file` (file):
591
+ * `bundle_watermark_attachment_delete` (boolean): If true, will delete the file stored in bundle_watermark_attachment
575
592
  * `disable_2fa_with_delay` (boolean): If set to true, we will begin the process of disabling 2FA on this site.
576
593
  * `ldap_password_change` (string): New LDAP password.
577
594
  * `ldap_password_change_confirmation` (string): Confirm new LDAP password.
@@ -28,11 +28,25 @@ module Files
28
28
  # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
29
29
  # cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via the X-Files-Cursor-Next header.
30
30
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
31
+ # sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `created_at` and `status`.
32
+ # filter - object - If set, return records where the specifiied field is equal to the supplied value. Valid fields are `status`.
33
+ # filter_gt - object - If set, return records where the specifiied field is greater than the supplied value. Valid fields are `status`.
34
+ # filter_gteq - object - If set, return records where the specifiied field is greater than or equal to the supplied value. Valid fields are `status`.
35
+ # filter_like - object - If set, return records where the specifiied field is equal to the supplied value. Valid fields are `status`.
36
+ # filter_lt - object - If set, return records where the specifiied field is less than the supplied value. Valid fields are `status`.
37
+ # filter_lteq - object - If set, return records where the specifiied field is less than or equal to the supplied value. Valid fields are `status`.
31
38
  # automation_id (required) - int64 - ID of the associated Automation.
32
39
  def self.list(params = {}, options = {})
33
40
  raise InvalidParameterError.new("Bad parameter: user_id must be an Integer") if params.dig(:user_id) and !params.dig(:user_id).is_a?(Integer)
34
41
  raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params.dig(:cursor) and !params.dig(:cursor).is_a?(String)
35
42
  raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params.dig(:per_page) and !params.dig(:per_page).is_a?(Integer)
43
+ raise InvalidParameterError.new("Bad parameter: sort_by must be an Hash") if params.dig(:sort_by) and !params.dig(:sort_by).is_a?(Hash)
44
+ raise InvalidParameterError.new("Bad parameter: filter must be an Hash") if params.dig(:filter) and !params.dig(:filter).is_a?(Hash)
45
+ raise InvalidParameterError.new("Bad parameter: filter_gt must be an Hash") if params.dig(:filter_gt) and !params.dig(:filter_gt).is_a?(Hash)
46
+ raise InvalidParameterError.new("Bad parameter: filter_gteq must be an Hash") if params.dig(:filter_gteq) and !params.dig(:filter_gteq).is_a?(Hash)
47
+ raise InvalidParameterError.new("Bad parameter: filter_like must be an Hash") if params.dig(:filter_like) and !params.dig(:filter_like).is_a?(Hash)
48
+ raise InvalidParameterError.new("Bad parameter: filter_lt must be an Hash") if params.dig(:filter_lt) and !params.dig(:filter_lt).is_a?(Hash)
49
+ raise InvalidParameterError.new("Bad parameter: filter_lteq must be an Hash") if params.dig(:filter_lteq) and !params.dig(:filter_lteq).is_a?(Hash)
36
50
  raise InvalidParameterError.new("Bad parameter: automation_id must be an Integer") if params.dig(:automation_id) and !params.dig(:automation_id).is_a?(Integer)
37
51
  raise MissingParameterError.new("Parameter missing: automation_id") unless params.dig(:automation_id)
38
52
 
@@ -74,6 +74,16 @@ module Files
74
74
  @attributes[:bundle_require_share_recipient]
75
75
  end
76
76
 
77
+ # Preview watermark image applied to all bundle items.
78
+ def bundle_watermark_attachment
79
+ @attributes[:bundle_watermark_attachment]
80
+ end
81
+
82
+ # object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
83
+ def bundle_watermark_value
84
+ @attributes[:bundle_watermark_value]
85
+ end
86
+
77
87
  # string - Page link and button color
78
88
  def color2_left
79
89
  @attributes[:color2_left]
@@ -179,6 +189,16 @@ module Files
179
189
  @attributes[:domain]
180
190
  end
181
191
 
192
+ # boolean - Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
193
+ def domain_hsts_header
194
+ @attributes[:domain_hsts_header]
195
+ end
196
+
197
+ # string - Letsencrypt chain to use when registering SSL Certificate for domain.
198
+ def domain_letsencrypt_chain
199
+ @attributes[:domain_letsencrypt_chain]
200
+ end
201
+
182
202
  # email - Main email for this site
183
203
  def email
184
204
  @attributes[:email]
@@ -633,6 +653,8 @@ module Files
633
653
  # name - string - Site name
634
654
  # subdomain - string - Site subdomain
635
655
  # domain - string - Custom domain
656
+ # domain_hsts_header - boolean - Send HSTS (HTTP Strict Transport Security) header when visitors access the site via a custom domain?
657
+ # domain_letsencrypt_chain - string - Letsencrypt chain to use when registering SSL Certificate for domain.
636
658
  # email - string - Main email for this site
637
659
  # reply_to_email - string - Reply-to email for this site
638
660
  # allow_bundle_names - boolean - Are manual Bundle names allowed?
@@ -738,6 +760,8 @@ module Files
738
760
  # icon128_delete - boolean - If true, will delete the file stored in icon128
739
761
  # logo_file - file
740
762
  # logo_delete - boolean - If true, will delete the file stored in logo
763
+ # bundle_watermark_attachment_file - file
764
+ # bundle_watermark_attachment_delete - boolean - If true, will delete the file stored in bundle_watermark_attachment
741
765
  # disable_2fa_with_delay - boolean - If set to true, we will begin the process of disabling 2FA on this site.
742
766
  # ldap_password_change - string - New LDAP password.
743
767
  # ldap_password_change_confirmation - string - Confirm new LDAP password.
@@ -746,6 +770,7 @@ module Files
746
770
  raise InvalidParameterError.new("Bad parameter: name must be an String") if params.dig(:name) and !params.dig(:name).is_a?(String)
747
771
  raise InvalidParameterError.new("Bad parameter: subdomain must be an String") if params.dig(:subdomain) and !params.dig(:subdomain).is_a?(String)
748
772
  raise InvalidParameterError.new("Bad parameter: domain must be an String") if params.dig(:domain) and !params.dig(:domain).is_a?(String)
773
+ raise InvalidParameterError.new("Bad parameter: domain_letsencrypt_chain must be an String") if params.dig(:domain_letsencrypt_chain) and !params.dig(:domain_letsencrypt_chain).is_a?(String)
749
774
  raise InvalidParameterError.new("Bad parameter: email must be an String") if params.dig(:email) and !params.dig(:email).is_a?(String)
750
775
  raise InvalidParameterError.new("Bad parameter: reply_to_email must be an String") if params.dig(:reply_to_email) and !params.dig(:reply_to_email).is_a?(String)
751
776
  raise InvalidParameterError.new("Bad parameter: bundle_expiration must be an Integer") if params.dig(:bundle_expiration) and !params.dig(:bundle_expiration).is_a?(Integer)
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.213
4
+ version: 1.0.217
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-21 00:00:00.000000000 Z
11
+ date: 2021-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable