files-com 1.6.38__py3-none-any.whl → 1.6.40__py3-none-any.whl

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.

Potentially problematic release.


This version of files-com might be problematic. Click here for more details.

_VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.38
1
+ 1.6.40
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.38
3
+ Version: 1.6.40
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -1,7 +1,7 @@
1
1
  README.md,sha256=dJpTjuJA-JJIQ4CKgQhlbqyxanVatHk0RXgCD6KFl3A,28758
2
- _VERSION,sha256=2RtflCTAZElLJ5GC7rH9_xVHRFFuhvhHU6hd-34U1jc,7
3
- files_com-1.6.38.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
- files_sdk/__init__.py,sha256=zIBvgNC0ap6BWX6wkPUPj0qn7j8QCf68fUi3_iEv1rM,12884
2
+ _VERSION,sha256=oI-eJ1FxO1ZXoF38ctBHBvU50K0yaWu52FqOKw-uGQE,7
3
+ files_com-1.6.40.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
+ files_sdk/__init__.py,sha256=jvgoy3XxxboyGS1EGO_ra1dzfWyVdPUsiEt4sIu8Q8I,12884
5
5
  files_sdk/api.py,sha256=HOLk50HLQCbnHwnAr9OElQEWvdA_BABBSEvvFSt1S4A,1846
6
6
  files_sdk/api_client.py,sha256=cfFvm-o4Ao8SWADiJv7t7qnJfG_LJmWV3l6ALTC-Opo,11264
7
7
  files_sdk/error.py,sha256=lZKht6lYj9i99CzRbHschmdSs6T2Y51-YrZX_5Y_o7A,64945
@@ -94,7 +94,7 @@ files_sdk/models/sftp_host_key.py,sha256=3r5noHhRg-Hn3TLGBUDQYayKIw_Dn5waB9YmGSf
94
94
  files_sdk/models/share_group.py,sha256=rw-W2x5XFBPc48rvazaro28HfjOli885417i702Mowc,9066
95
95
  files_sdk/models/share_group_member.py,sha256=m0BUE4AhClJIoaV-_kU0yryCOwQ5EloZlyHQ4WaCVdU,1248
96
96
  files_sdk/models/siem_http_destination.py,sha256=BDExKltNMH8q3ZoKJO_fBRtjVliqzjnj1KHEKycXiCw,49945
97
- files_sdk/models/site.py,sha256=XqYd3bFupgLejXchndaz4WicIq41E_xBkZUmd0RArPw,69364
97
+ files_sdk/models/site.py,sha256=Nd7dzi5kqWgxN7iSwsDvk-9X2bKfC1lqDIgDg2SKU0Q,70438
98
98
  files_sdk/models/snapshot.py,sha256=zmdQWKR8EhUkF1mFQHFzWfreaEVXG1p_jEtmY4j3cKA,9840
99
99
  files_sdk/models/sso_strategy.py,sha256=vWNCPfot8z15xUhAoFsS52W-1vg8IpKIqAALZ6pBwd0,9112
100
100
  files_sdk/models/status.py,sha256=IIY3RiJ2RZ2yPByAAh8eIq_cgZFTj13eR4UpqHTANQI,1363
@@ -112,7 +112,7 @@ files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6q
112
112
  files_sdk/models/user_sftp_client_use.py,sha256=VnOo3ll6fwSc8grG5ZqGK8o3grYKg5P9b5B_hGS4vCs,2827
113
113
  files_sdk/models/web_dav_action_log.py,sha256=uMTIkTgSpW5mgKAEWnCmI4U5eqcAL2g8OHqB-lBir3A,76424
114
114
  files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
115
- files_com-1.6.38.dist-info/METADATA,sha256=51gZygSRt4p9pmy94osHflRx4zcGZSvvbUU80GP3MKU,29050
116
- files_com-1.6.38.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
- files_com-1.6.38.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
118
- files_com-1.6.38.dist-info/RECORD,,
115
+ files_com-1.6.40.dist-info/METADATA,sha256=9RTPtr_rCHY3JQcCaaGDVUAM3ICbjb49JpMPTKbqLlo,29050
116
+ files_com-1.6.40.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
+ files_com-1.6.40.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
118
+ files_com-1.6.40.dist-info/RECORD,,
files_sdk/__init__.py CHANGED
@@ -223,7 +223,7 @@ session_id = None
223
223
  source_ip = None
224
224
  base_url = "https://app.files.com"
225
225
  base_path = "api/rest/v1"
226
- version = "1.6.38"
226
+ version = "1.6.40"
227
227
 
228
228
  __version__ = version
229
229
 
files_sdk/models/site.py CHANGED
@@ -146,8 +146,10 @@ class Site:
146
146
  "sharing_enabled": None, # boolean - Allow bundle creation
147
147
  "show_user_notifications_log_in_link": None, # boolean - Show log in link in user notifications?
148
148
  "show_request_access_link": None, # boolean - Show request access link for users without access? Currently unused.
149
- "site_footer": None, # string - Custom site footer text
150
- "site_header": None, # string - Custom site header text
149
+ "site_footer": None, # string - Custom site footer text for authenticated pages
150
+ "site_header": None, # string - Custom site header text for authenticated pages
151
+ "site_public_footer": None, # string - Custom site footer text for public pages
152
+ "site_public_header": None, # string - Custom site header text for public pages
151
153
  "smtp_address": None, # string - SMTP server hostname or IP
152
154
  "smtp_authentication": None, # string - SMTP server authentication type
153
155
  "smtp_from": None, # string - From address to use when mailing through custom SMTP
@@ -159,7 +161,7 @@ class Site:
159
161
  "ssl_required": None, # boolean - Is SSL required? Disabling this is insecure.
160
162
  "subdomain": None, # string - Site subdomain
161
163
  "switch_to_plan_date": None, # date-time - If switching plans, when does the new plan take effect?
162
- "tls_disabled": None, # boolean - DO NOT ENABLE. This setting allows TLSv1.0 and TLSv1.1 to be used on your site. We intend to remove this capability entirely in early 2024. If set, the `sftp_insecure_ciphers` flag will be automatically set to true.
164
+ "tls_disabled": None, # boolean - This setting enables Legacy Support for Insecure Ciphers across SFTP and FTP. See our documentation for more information. Contrary to its name, this setting does not disable TLS (it used to do that a long time ago), but rather enables certain ciphers which are known to be insecure but required for broad MFT compatibility.
163
165
  "trial_days_left": None, # int64 - Number of days left in trial
164
166
  "trial_until": None, # date-time - When does this Site trial expire?
165
167
  "use_dedicated_ips_for_smtp": None, # boolean - If using custom SMTP, should we use dedicated IPs to deliver emails?
@@ -266,7 +268,7 @@ def get_usage(params=None, options=None):
266
268
  # migrate_remote_server_sync_to_sync - boolean - If true, we will migrate all remote server syncs to the new Sync model.
267
269
  # session_expiry - double - Session expiry in hours
268
270
  # ssl_required - boolean - Is SSL required? Disabling this is insecure.
269
- # tls_disabled - boolean - DO NOT ENABLE. This setting allows TLSv1.0 and TLSv1.1 to be used on your site. We intend to remove this capability entirely in early 2024. If set, the `sftp_insecure_ciphers` flag will be automatically set to true.
271
+ # tls_disabled - boolean - This setting enables Legacy Support for Insecure Ciphers across SFTP and FTP. See our documentation for more information. Contrary to its name, this setting does not disable TLS (it used to do that a long time ago), but rather enables certain ciphers which are known to be insecure but required for broad MFT compatibility.
270
272
  # sftp_insecure_ciphers - boolean - If true, we will allow weak and known insecure ciphers to be used for SFTP connections. Enabling this setting severely weakens the security of your site and it is not recommend, except as a last resort for compatibility.
271
273
  # sftp_insecure_diffie_hellman - boolean - If true, we will allow weak Diffie Hellman parameters to be used within ciphers for SFTP that are otherwise on our secure list. This has the effect of making the cipher weaker than our normal threshold for security, but is required to support certain legacy or broken SSH and MFT clients. Enabling this weakens security, but not nearly as much as enabling the full `sftp_insecure_ciphers` option.
272
274
  # disable_files_certificate_generation - boolean - If set, Files.com will not set the CAA records required to generate future SSL certificates for this domain.
@@ -340,8 +342,10 @@ def get_usage(params=None, options=None):
340
342
  # color2_link - string - Top bar link color
341
343
  # color2_text - string - Page link and button color
342
344
  # color2_top_text - string - Top bar text color
343
- # site_header - string - Custom site header text
344
- # site_footer - string - Custom site footer text
345
+ # site_header - string - Custom site header text for authenticated pages
346
+ # site_footer - string - Custom site footer text for authenticated pages
347
+ # site_public_header - string - Custom site header text for public pages
348
+ # site_public_footer - string - Custom site footer text for public pages
345
349
  # login_help_text - string - Login help text
346
350
  # use_dedicated_ips_for_smtp - boolean - If using custom SMTP, should we use dedicated IPs to deliver emails?
347
351
  # smtp_address - string - SMTP server hostname or IP
@@ -1078,6 +1082,18 @@ def update(params=None, options=None):
1078
1082
  raise InvalidParameterError(
1079
1083
  "Bad parameter: site_footer must be an str"
1080
1084
  )
1085
+ if "site_public_header" in params and not isinstance(
1086
+ params["site_public_header"], str
1087
+ ):
1088
+ raise InvalidParameterError(
1089
+ "Bad parameter: site_public_header must be an str"
1090
+ )
1091
+ if "site_public_footer" in params and not isinstance(
1092
+ params["site_public_footer"], str
1093
+ ):
1094
+ raise InvalidParameterError(
1095
+ "Bad parameter: site_public_footer must be an str"
1096
+ )
1081
1097
  if "login_help_text" in params and not isinstance(
1082
1098
  params["login_help_text"], str
1083
1099
  ):