files-com 1.6.19__py3-none-any.whl → 1.6.21__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.19
1
+ 1.6.21
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.19
3
+ Version: 1.6.21
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=_WyQuyYt3AUEsIVc-zxdLVl3kcxWOU5gghlycmfk11Q,7
3
- files_com-1.6.19.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
- files_sdk/__init__.py,sha256=0Q1sVUu-YSF3WAGENLFWppYJ5lHWIwE6a_58lVE9ikw,12631
2
+ _VERSION,sha256=YLmP7xdvh3MBv9DqDXx8Hi6eHuq3Rs1t5WxTuh4tGes,7
3
+ files_com-1.6.21.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
+ files_sdk/__init__.py,sha256=aAa61dEqjb5C6tGDX9RkP8WgqpmEWX4Mxg6G1-vlV1E,12631
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
@@ -18,7 +18,7 @@ files_sdk/models/api_request_log.py,sha256=s6i_YzKWbT8ioqIK8tMtHYWdInOrLDYwokfCe
18
18
  files_sdk/models/app.py,sha256=JiK40FW3FOp_sUehb3RCWfkc9-1OcjWai15tn9BtxbU,4678
19
19
  files_sdk/models/as2_incoming_message.py,sha256=VEkva5pSbXo_mM4UWQLcaL3EZSgBWIPqNY8PMLTMn2o,7153
20
20
  files_sdk/models/as2_outgoing_message.py,sha256=7mSM2Ce-9HUsk7klRmS30kBBPMJBRWsXmWCI7Uz85MQ,6696
21
- files_sdk/models/as2_partner.py,sha256=VEaRaGXJBOk4OS6zrhxNmMcPCANiy7o8mKoIekL7_c4,20022
21
+ files_sdk/models/as2_partner.py,sha256=e7gPlPqTYZorX7XZSA8iSaDAkV9U12ANAFKCviw3T3U,22467
22
22
  files_sdk/models/as2_station.py,sha256=XKgf0t8HVPevF1nkx8IrvGb00leahz-LSU9RG6Rn2Y4,11003
23
23
  files_sdk/models/auto.py,sha256=nODYUPqEsTw7suz0s6zDTsFd8j5yeSIzBELTiaXxzRE,995
24
24
  files_sdk/models/automation.py,sha256=MmzKUW6VbOGUcNOEQdyhMPAT49M8sIvuf3jakXG4m6s,48097
@@ -97,7 +97,7 @@ files_sdk/models/snapshot.py,sha256=zmdQWKR8EhUkF1mFQHFzWfreaEVXG1p_jEtmY4j3cKA,
97
97
  files_sdk/models/sso_strategy.py,sha256=vWNCPfot8z15xUhAoFsS52W-1vg8IpKIqAALZ6pBwd0,9112
98
98
  files_sdk/models/status.py,sha256=IIY3RiJ2RZ2yPByAAh8eIq_cgZFTj13eR4UpqHTANQI,1363
99
99
  files_sdk/models/style.py,sha256=KZY0fZ4kP4AtwZpCi24EtNXL8WFLhE9a1Jme1gA6Kkw,5201
100
- files_sdk/models/sync.py,sha256=OKyppJbUmeu_7j20n396cDy0fGkcMDssQ-tqv6MWJgQ,23152
100
+ files_sdk/models/sync.py,sha256=WFSdutJ0roY0F-M6EuGlX_xVb1Luh25RVDz1gOWg_sg,23530
101
101
  files_sdk/models/sync_log.py,sha256=N8hRyRNkvKYJhQkSlwre47aFL_JWLlvj_bVrvHBVPsE,40135
102
102
  files_sdk/models/sync_run.py,sha256=bQR0v8iL9_2Rvx72Py-djFqCxPIaWz--9WqMu1jDicg,5393
103
103
  files_sdk/models/usage_by_top_level_dir.py,sha256=o_dETvzcgEA9lsdES_yzwPVAZVFk4ZcnsCTugR8O8eY,1185
@@ -110,7 +110,7 @@ files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6q
110
110
  files_sdk/models/user_sftp_client_use.py,sha256=VnOo3ll6fwSc8grG5ZqGK8o3grYKg5P9b5B_hGS4vCs,2827
111
111
  files_sdk/models/web_dav_action_log.py,sha256=7__LZvb_fInvXwy90ur7IrcRSxKOwF8L6OwpjJbS73Y,355354
112
112
  files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
113
- files_com-1.6.19.dist-info/METADATA,sha256=20yWpnNDUue9Rm3x-NcRhe4HoSCXFwypcUtGia3K2Xo,29050
114
- files_com-1.6.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
115
- files_com-1.6.19.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
116
- files_com-1.6.19.dist-info/RECORD,,
113
+ files_com-1.6.21.dist-info/METADATA,sha256=HKj3lG9blYFCmVgdhamlozZv7sfRvqE_M_HbUDVSSJU,29050
114
+ files_com-1.6.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
115
+ files_com-1.6.21.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
116
+ files_com-1.6.21.dist-info/RECORD,,
files_sdk/__init__.py CHANGED
@@ -219,7 +219,7 @@ session_id = None
219
219
  source_ip = None
220
220
  base_url = "https://app.files.com"
221
221
  base_path = "api/rest/v1"
222
- version = "1.6.19"
222
+ version = "1.6.21"
223
223
 
224
224
  __version__ = version
225
225
 
@@ -18,7 +18,8 @@ class As2Partner:
18
18
  "http_auth_username": None, # string - Username to send to server for HTTP Authentication.
19
19
  "additional_http_headers": None, # object - Additional HTTP Headers for outgoing message sent to this partner.
20
20
  "default_mime_type": None, # string - Default mime type of the file attached to the encrypted message
21
- "mdn_validation_level": None, # string - How should Files.com evaluate message transfer success based on a partner's MDN response? This setting does not affect MDN storage; all MDNs received from a partner are always stored. `none`: MDN is stored for informational purposes only, a successful HTTPS transfer is a successful AS2 transfer. `weak`: Inspect the MDN for MIC and Disposition only. `normal`: `weak` plus validate MDN signature matches body, `strict`: `normal` but do not allow signatures from self-signed or incorrectly purposed certificates.
21
+ "mdn_validation_level": None, # string - How should Files.com evaluate message transfer success based on a partner's MDN response? This setting does not affect MDN storage; all MDNs received from a partner are always stored. `none`: MDN is stored for informational purposes only, a successful HTTPS transfer is a successful AS2 transfer. `weak`: Inspect the MDN for MIC and Disposition only. `normal`: `weak` plus validate MDN signature matches body, `strict`: `normal` but do not allow signatures from self-signed or incorrectly purposed certificates. `auto`: Automatically set the correct value for this setting based on next mdn received.
22
+ "signature_validation_level": None, # string - Should Files.com require signatures on incoming AS2 messages? `normal`: require that incoming messages are signed with a valid matching signature. `none`: Unsigned incoming messages are allowed. `auto`: Automatically set the correct value for this setting based on next message received.
22
23
  "enable_dedicated_ips": None, # boolean - If `true`, we will use your site's dedicated IPs for all outbound connections to this AS2 Partner.
23
24
  "hex_public_certificate_serial": None, # string - Serial of public certificate used for message security in hex format.
24
25
  "public_certificate": None, # string - Public certificate used for message security.
@@ -54,7 +55,8 @@ class As2Partner:
54
55
  # enable_dedicated_ips - boolean - If `true`, we will use your site's dedicated IPs for all outbound connections to this AS2 Partner.
55
56
  # http_auth_username - string - Username to send to server for HTTP Authentication.
56
57
  # http_auth_password - string - Password to send to server for HTTP Authentication.
57
- # mdn_validation_level - string - How should Files.com evaluate message transfer success based on a partner's MDN response? This setting does not affect MDN storage; all MDNs received from a partner are always stored. `none`: MDN is stored for informational purposes only, a successful HTTPS transfer is a successful AS2 transfer. `weak`: Inspect the MDN for MIC and Disposition only. `normal`: `weak` plus validate MDN signature matches body, `strict`: `normal` but do not allow signatures from self-signed or incorrectly purposed certificates.
58
+ # mdn_validation_level - string - How should Files.com evaluate message transfer success based on a partner's MDN response? This setting does not affect MDN storage; all MDNs received from a partner are always stored. `none`: MDN is stored for informational purposes only, a successful HTTPS transfer is a successful AS2 transfer. `weak`: Inspect the MDN for MIC and Disposition only. `normal`: `weak` plus validate MDN signature matches body, `strict`: `normal` but do not allow signatures from self-signed or incorrectly purposed certificates. `auto`: Automatically set the correct value for this setting based on next mdn received.
59
+ # signature_validation_level - string - Should Files.com require signatures on incoming AS2 messages? `normal`: require that incoming messages are signed with a valid matching signature. `none`: Unsigned incoming messages are allowed. `auto`: Automatically set the correct value for this setting based on next message received.
58
60
  # server_certificate - string - Should we require that the remote HTTP server have a valid SSL Certificate for HTTPS? (This only applies to Outgoing AS2 message from Files.com to a Partner.)
59
61
  # default_mime_type - string - Default mime type of the file attached to the encrypted message
60
62
  # additional_http_headers - object - Additional HTTP Headers for outgoing message sent to this partner.
@@ -91,6 +93,12 @@ class As2Partner:
91
93
  raise InvalidParameterError(
92
94
  "Bad parameter: mdn_validation_level must be an str"
93
95
  )
96
+ if "signature_validation_level" in params and not isinstance(
97
+ params["signature_validation_level"], str
98
+ ):
99
+ raise InvalidParameterError(
100
+ "Bad parameter: signature_validation_level must be an str"
101
+ )
94
102
  if "server_certificate" in params and not isinstance(
95
103
  params["server_certificate"], str
96
104
  ):
@@ -199,7 +207,8 @@ def get(id, params=None, options=None):
199
207
  # enable_dedicated_ips - boolean - If `true`, we will use your site's dedicated IPs for all outbound connections to this AS2 Partner.
200
208
  # http_auth_username - string - Username to send to server for HTTP Authentication.
201
209
  # http_auth_password - string - Password to send to server for HTTP Authentication.
202
- # mdn_validation_level - string - How should Files.com evaluate message transfer success based on a partner's MDN response? This setting does not affect MDN storage; all MDNs received from a partner are always stored. `none`: MDN is stored for informational purposes only, a successful HTTPS transfer is a successful AS2 transfer. `weak`: Inspect the MDN for MIC and Disposition only. `normal`: `weak` plus validate MDN signature matches body, `strict`: `normal` but do not allow signatures from self-signed or incorrectly purposed certificates.
210
+ # mdn_validation_level - string - How should Files.com evaluate message transfer success based on a partner's MDN response? This setting does not affect MDN storage; all MDNs received from a partner are always stored. `none`: MDN is stored for informational purposes only, a successful HTTPS transfer is a successful AS2 transfer. `weak`: Inspect the MDN for MIC and Disposition only. `normal`: `weak` plus validate MDN signature matches body, `strict`: `normal` but do not allow signatures from self-signed or incorrectly purposed certificates. `auto`: Automatically set the correct value for this setting based on next mdn received.
211
+ # signature_validation_level - string - Should Files.com require signatures on incoming AS2 messages? `normal`: require that incoming messages are signed with a valid matching signature. `none`: Unsigned incoming messages are allowed. `auto`: Automatically set the correct value for this setting based on next message received.
203
212
  # server_certificate - string - Should we require that the remote HTTP server have a valid SSL Certificate for HTTPS? (This only applies to Outgoing AS2 message from Files.com to a Partner.)
204
213
  # default_mime_type - string - Default mime type of the file attached to the encrypted message
205
214
  # additional_http_headers - object - Additional HTTP Headers for outgoing message sent to this partner.
@@ -236,6 +245,12 @@ def create(params=None, options=None):
236
245
  raise InvalidParameterError(
237
246
  "Bad parameter: mdn_validation_level must be an str"
238
247
  )
248
+ if "signature_validation_level" in params and not isinstance(
249
+ params["signature_validation_level"], str
250
+ ):
251
+ raise InvalidParameterError(
252
+ "Bad parameter: signature_validation_level must be an str"
253
+ )
239
254
  if "server_certificate" in params and not isinstance(
240
255
  params["server_certificate"], str
241
256
  ):
@@ -288,7 +303,8 @@ def create(params=None, options=None):
288
303
  # enable_dedicated_ips - boolean - If `true`, we will use your site's dedicated IPs for all outbound connections to this AS2 Partner.
289
304
  # http_auth_username - string - Username to send to server for HTTP Authentication.
290
305
  # http_auth_password - string - Password to send to server for HTTP Authentication.
291
- # mdn_validation_level - string - How should Files.com evaluate message transfer success based on a partner's MDN response? This setting does not affect MDN storage; all MDNs received from a partner are always stored. `none`: MDN is stored for informational purposes only, a successful HTTPS transfer is a successful AS2 transfer. `weak`: Inspect the MDN for MIC and Disposition only. `normal`: `weak` plus validate MDN signature matches body, `strict`: `normal` but do not allow signatures from self-signed or incorrectly purposed certificates.
306
+ # mdn_validation_level - string - How should Files.com evaluate message transfer success based on a partner's MDN response? This setting does not affect MDN storage; all MDNs received from a partner are always stored. `none`: MDN is stored for informational purposes only, a successful HTTPS transfer is a successful AS2 transfer. `weak`: Inspect the MDN for MIC and Disposition only. `normal`: `weak` plus validate MDN signature matches body, `strict`: `normal` but do not allow signatures from self-signed or incorrectly purposed certificates. `auto`: Automatically set the correct value for this setting based on next mdn received.
307
+ # signature_validation_level - string - Should Files.com require signatures on incoming AS2 messages? `normal`: require that incoming messages are signed with a valid matching signature. `none`: Unsigned incoming messages are allowed. `auto`: Automatically set the correct value for this setting based on next message received.
292
308
  # server_certificate - string - Should we require that the remote HTTP server have a valid SSL Certificate for HTTPS? (This only applies to Outgoing AS2 message from Files.com to a Partner.)
293
309
  # default_mime_type - string - Default mime type of the file attached to the encrypted message
294
310
  # additional_http_headers - object - Additional HTTP Headers for outgoing message sent to this partner.
@@ -327,6 +343,12 @@ def update(id, params=None, options=None):
327
343
  raise InvalidParameterError(
328
344
  "Bad parameter: mdn_validation_level must be an str"
329
345
  )
346
+ if "signature_validation_level" in params and not isinstance(
347
+ params["signature_validation_level"], str
348
+ ):
349
+ raise InvalidParameterError(
350
+ "Bad parameter: signature_validation_level must be an str"
351
+ )
330
352
  if "server_certificate" in params and not isinstance(
331
353
  params["server_certificate"], str
332
354
  ):
files_sdk/models/sync.py CHANGED
@@ -23,7 +23,6 @@ class Sync:
23
23
  "keep_after_copy": None, # boolean - Keep files after copying?
24
24
  "delete_empty_folders": None, # boolean - Delete empty folders after sync?
25
25
  "disabled": None, # boolean - Is this sync disabled?
26
- "interval": None, # string - If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
27
26
  "trigger": None, # string - Trigger type: daily, custom_schedule, or manual
28
27
  "trigger_file": None, # string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
29
28
  "include_patterns": None, # array(string) - Array of glob patterns to include
@@ -31,6 +30,7 @@ class Sync:
31
30
  "created_at": None, # date-time - When this sync was created
32
31
  "updated_at": None, # date-time - When this sync was last updated
33
32
  "sync_interval_minutes": None, # int64 - Frequency in minutes between syncs. If set, this value must be greater than or equal to the `remote_sync_interval` value for the site's plan. If left blank, the plan's `remote_sync_interval` will be used. This setting is only used if `trigger` is empty.
33
+ "interval": None, # string - If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
34
34
  "recurring_day": None, # int64 - If trigger type is `daily`, this specifies a day number to run in one of the supported intervals: `week`, `month`, `quarter`, `year`.
35
35
  "schedule_days_of_week": None, # array(int64) - If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. 0-based days of the week. 0 is Sunday, 1 is Monday, etc.
36
36
  "schedule_times_of_day": None, # array(string) - If trigger is `custom_schedule`, Custom schedule description for when the sync should be run. Times of day in HH:MM format.
@@ -67,7 +67,7 @@ class Sync:
67
67
  # keep_after_copy - boolean - Keep files after copying?
68
68
  # delete_empty_folders - boolean - Delete empty folders after sync?
69
69
  # disabled - boolean - Is this sync disabled?
70
- # interval - int64 - Interval in minutes for sync (if scheduled)
70
+ # interval - string - If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
71
71
  # trigger - string - Trigger type: daily, custom_schedule, or manual
72
72
  # trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
73
73
  # 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`.
@@ -114,9 +114,9 @@ class Sync:
114
114
  raise InvalidParameterError(
115
115
  "Bad parameter: dest_remote_server_id must be an int"
116
116
  )
117
- if "interval" in params and not isinstance(params["interval"], int):
117
+ if "interval" in params and not isinstance(params["interval"], str):
118
118
  raise InvalidParameterError(
119
- "Bad parameter: interval must be an int"
119
+ "Bad parameter: interval must be an str"
120
120
  )
121
121
  if "trigger" in params and not isinstance(params["trigger"], str):
122
122
  raise InvalidParameterError(
@@ -245,7 +245,7 @@ def get(id, params=None, options=None):
245
245
  # keep_after_copy - boolean - Keep files after copying?
246
246
  # delete_empty_folders - boolean - Delete empty folders after sync?
247
247
  # disabled - boolean - Is this sync disabled?
248
- # interval - int64 - Interval in minutes for sync (if scheduled)
248
+ # interval - string - If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
249
249
  # trigger - string - Trigger type: daily, custom_schedule, or manual
250
250
  # trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
251
251
  # 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`.
@@ -295,8 +295,8 @@ def create(params=None, options=None):
295
295
  )
296
296
  if "disabled" in params and not isinstance(params["disabled"], bool):
297
297
  raise InvalidParameterError("Bad parameter: disabled must be an bool")
298
- if "interval" in params and not isinstance(params["interval"], int):
299
- raise InvalidParameterError("Bad parameter: interval must be an int")
298
+ if "interval" in params and not isinstance(params["interval"], str):
299
+ raise InvalidParameterError("Bad parameter: interval must be an str")
300
300
  if "trigger" in params and not isinstance(params["trigger"], str):
301
301
  raise InvalidParameterError("Bad parameter: trigger must be an str")
302
302
  if "trigger_file" in params and not isinstance(
@@ -352,7 +352,7 @@ def create_migrate_to(params=None, options=None):
352
352
  # keep_after_copy - boolean - Keep files after copying?
353
353
  # delete_empty_folders - boolean - Delete empty folders after sync?
354
354
  # disabled - boolean - Is this sync disabled?
355
- # interval - int64 - Interval in minutes for sync (if scheduled)
355
+ # interval - string - If trigger is `daily`, this specifies how often to run this sync. One of: `day`, `week`, `week_end`, `month`, `month_end`, `quarter`, `quarter_end`, `year`, `year_end`
356
356
  # trigger - string - Trigger type: daily, custom_schedule, or manual
357
357
  # trigger_file - string - Some MFT services request an empty file (known as a trigger file) to signal the sync is complete and they can begin further processing. If trigger_file is set, a zero-byte file will be sent at the end of the sync.
358
358
  # 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`.
@@ -405,8 +405,8 @@ def update(id, params=None, options=None):
405
405
  )
406
406
  if "disabled" in params and not isinstance(params["disabled"], bool):
407
407
  raise InvalidParameterError("Bad parameter: disabled must be an bool")
408
- if "interval" in params and not isinstance(params["interval"], int):
409
- raise InvalidParameterError("Bad parameter: interval must be an int")
408
+ if "interval" in params and not isinstance(params["interval"], str):
409
+ raise InvalidParameterError("Bad parameter: interval must be an str")
410
410
  if "trigger" in params and not isinstance(params["trigger"], str):
411
411
  raise InvalidParameterError("Bad parameter: trigger must be an str")
412
412
  if "trigger_file" in params and not isinstance(