files-com 1.6.171__py3-none-any.whl → 1.6.227__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.
_VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.171
1
+ 1.6.227
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.171
3
+ Version: 1.6.227
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -1,33 +1,33 @@
1
1
  README.md,sha256=8aKN5Kzi5hFh2nzFLY_3V3TF0_B83n6kIP-nPWktZzk,32129
2
- _VERSION,sha256=5aUJcoa81Z84Sw9_uXjWPR0MpdscPyfGIlzUcMpjikE,8
3
- files_com-1.6.171.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
- files_sdk/__init__.py,sha256=4yTPKxiutgJkzpdT9NyUWLjIjj0IpF2XWl55gE5RmFQ,13766
2
+ _VERSION,sha256=7Px5OTnXpByOLwVzPJsGpjeYESQNCZogUSMoFI3tnd0,8
3
+ files_com-1.6.227.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
+ files_sdk/__init__.py,sha256=t6PQLd3NKnwOA6U1hLRnQDi0UpTwX59veLaYXyVqeoo,13862
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=iC7_kFNXRn-xpHfnCix0J5UIT3JtkUpVotp1Okrm3u0,67004
8
8
  files_sdk/list_obj.py,sha256=MWgmESLAmfh1uaSw76PWxmnf9f6_08TLUHe8_mCYKL4,1157
9
9
  files_sdk/path_util.py,sha256=7x8X3JLoMkcqNefCaBeHYXD8MGvPby4AOy-xnBX_LNk,1694
10
10
  files_sdk/util.py,sha256=6aA4N0Wq_ykINW7eMrs2ntFAL2hRLM6IvJf6n_yP34c,962
11
- files_sdk/models/__init__.py,sha256=AyqC5l7XxBb3sQeKoFrsFHcvCwMrdtEpYnUZB7_lfzA,6267
11
+ files_sdk/models/__init__.py,sha256=CRP7NwvJ8oZgUKw6k8g7vCLbVy0hUhtekwyvTIO6g-Y,6316
12
12
  files_sdk/models/account_line_item.py,sha256=8FLg83Aqpz4y_QYy3fZ_KZsZFWv1f1KGD9T5CH1WSGs,1929
13
13
  files_sdk/models/action.py,sha256=M1lyMybE7SKht2nGXtYWp2l8b4oVkeImo6KF8DLiCos,2034
14
14
  files_sdk/models/action_notification_export.py,sha256=4cdEo2ZCDV3RH3GLSqHV7RWyJ2ONRSUq0glCEi94zd0,6636
15
15
  files_sdk/models/action_notification_export_result.py,sha256=yusHopmVJ9zO5lHG2C4sq4-kDnX3trRdb52SRL-R9Go,4071
16
16
  files_sdk/models/agent_push_update.py,sha256=ruFoLVbY6OLmE3ah3YU0XmbjJuV8CfGiarhj8qdimnA,1419
17
- files_sdk/models/api_key.py,sha256=YI8-qL7OJL3buOcKCzgDxtVGADPTKHA_wkts-4yA2UM,17939
17
+ files_sdk/models/api_key.py,sha256=l2kHHSg6zFLnSwICnxRaQG88gQdduH_6vOpXb0-lNjc,16297
18
18
  files_sdk/models/api_request_log.py,sha256=B3H8hwo9Qadh3C9q1UI-RcS9Yetx_gYeDQtCxxmykhQ,86447
19
19
  files_sdk/models/app.py,sha256=JiK40FW3FOp_sUehb3RCWfkc9-1OcjWai15tn9BtxbU,4678
20
- files_sdk/models/as2_incoming_message.py,sha256=uYQeiMtbpEnHop57e1SENOa-G95FircOC6CUGAJ8ek4,6981
21
- files_sdk/models/as2_outgoing_message.py,sha256=zA64f54lWRWRf5Ju2ZtG8mJg-iAOHg8I3JQjh15E4b8,6524
22
- files_sdk/models/as2_partner.py,sha256=sDqrfVmr31ZCMbijuahVEDHvnEfi8UrAyExZg9AG9hY,23052
23
- files_sdk/models/as2_station.py,sha256=XKgf0t8HVPevF1nkx8IrvGb00leahz-LSU9RG6Rn2Y4,11003
20
+ files_sdk/models/as2_incoming_message.py,sha256=YbH4X9mNdWIlDGKrKRnT_KSylKgOEPW9urEga4F2-So,7315
21
+ files_sdk/models/as2_outgoing_message.py,sha256=_RQHQkAMh3qfGwMGSph1myAd8xKrmOdb8AvUC7SOwR0,6858
22
+ files_sdk/models/as2_partner.py,sha256=AH4rc9j0Ds1RpBJ_gRYO5CNIlF138j8yi1XQkJ66Td0,23246
23
+ files_sdk/models/as2_station.py,sha256=0vLfQnAWgF9WJBmLe4n6g-GpyxHGN9RWzPWFj5URM4A,11746
24
24
  files_sdk/models/auto.py,sha256=nODYUPqEsTw7suz0s6zDTsFd8j5yeSIzBELTiaXxzRE,995
25
- files_sdk/models/automation.py,sha256=DuuBQxVVwRtldonVveDIZO-zZ1oHqOEt7oPSk9vzO5g,50784
25
+ files_sdk/models/automation.py,sha256=XhTlhVZNGTGsGtfRXxXn_tONSrz-Ya0M49C0wP-bEDA,51409
26
26
  files_sdk/models/automation_log.py,sha256=jFaFfDJTTpY9Jsy1lVRjFtIHYTzbmxuFTTBp4aVEq8E,20922
27
- files_sdk/models/automation_run.py,sha256=ThDA_5inLYaunKOcNgXFD9QLlhndJXC2TOl7-GqK098,5341
27
+ files_sdk/models/automation_run.py,sha256=aM-RVDPhEdTx9KQTSjPO5odv_E-rnlOlxFMvXkLqunw,5519
28
28
  files_sdk/models/bandwidth_snapshot.py,sha256=IBcRP5r_iFl86lhHOb5o5UZdsT8_-cBrAjKyPAc7OBw,4722
29
- files_sdk/models/behavior.py,sha256=0LnyXfOo3v3z0t2LXvbYcTSXcAdaKgC8am_2sDbjqC4,17847
30
- files_sdk/models/bundle.py,sha256=AarFYeaoRP_9rxLU7jR-vTBLVVDLK_i9355RLFOn4JI,36698
29
+ files_sdk/models/behavior.py,sha256=kkocek6zCU84c-OrfrSRw_w3o9wvWBcPqlyNeGpIe2M,17701
30
+ files_sdk/models/bundle.py,sha256=COoBxrhCyGq2lWzT9E9wlxIbP-3Ij0CwQRFMY_t8r8o,38328
31
31
  files_sdk/models/bundle_action.py,sha256=Ze0A2n0EyzSxNHO_joS9fOYuQ7fmlOX_RJwC5FWSwyQ,5430
32
32
  files_sdk/models/bundle_download.py,sha256=ZSjf6R0kCiFGgjQq7bu5nsFAtaW0sE72IZhCx2g5D10,4832
33
33
  files_sdk/models/bundle_notification.py,sha256=tMauRH6qmejEisqsneVeprh4rb6UIjB43i6GY022NK8,10081
@@ -53,8 +53,8 @@ files_sdk/models/folder.py,sha256=rY5drNd1G0sLsRdeLeTSeYchKlOO3PSoNeTqSPAuzi8,11
53
53
  files_sdk/models/form_field.py,sha256=xaaLnvctZ3Do5lnppn-s6UQguzfsyVpfdmz-Ykij9Nw,1509
54
54
  files_sdk/models/form_field_set.py,sha256=7hms9QZNWmSoCdZZUsYoQvTaT5lmDwDGz5YdwBZxOq8,10528
55
55
  files_sdk/models/ftp_action_log.py,sha256=Hcd-cSsDDuqKpWlneQs2rciVl91tdLsSBZO7x6CltFw,168584
56
- files_sdk/models/gpg_key.py,sha256=BIIcwo1pWEpwuK3PBtAuIp_nkzx7o8A1PDCPN_N91u8,13597
57
- files_sdk/models/group.py,sha256=NCWhnhjBK8jAeCgLp2qYLV2lURxuSD1QO4EsmTF_tzw,16062
56
+ files_sdk/models/gpg_key.py,sha256=9TB3w6AuIeKjZAs-PTtzaVE_NY2HDyTqmzoqKvCAEAk,15593
57
+ files_sdk/models/group.py,sha256=n1-lVfOZdcXp43c4zZzVEOuUGnew_1ANwdXegnsXA-c,16444
58
58
  files_sdk/models/group_user.py,sha256=ZVl2vQ2FuPFC9YW5Geo9iST438eLvs6Pc_BlQRGg9Sg,10087
59
59
  files_sdk/models/history.py,sha256=Elc04ji3rWWhEc68KzPzcEeCqfMSA4Jmjb9sAZ4LvKc,14138
60
60
  files_sdk/models/history_export.py,sha256=yaHqn1ogmd_t9J_OSb1O6iMvykdLA88EYuxnO_Ns_R8,14466
@@ -76,7 +76,7 @@ files_sdk/models/message_comment_reaction.py,sha256=h9Kuk1Y2ztqMG7XkyP-ufGQyS7Od
76
76
  files_sdk/models/message_reaction.py,sha256=ZGir-4Qj9k_FRC_X3Av7Yek-SZzFBK-IbvPn5HmaG5g,6288
77
77
  files_sdk/models/notification.py,sha256=HEPLDynR4lCF_vZ7-RJD8hoxaWMl3BrrkGEIbQk6-yg,21993
78
78
  files_sdk/models/outbound_connection_log.py,sha256=RJbcCNDZnbEX4aywguA6Rm4ddYtqOfQdJRHur5LXozs,45923
79
- files_sdk/models/partner.py,sha256=eao0fMooiPmoqJ236lO50-TL2ES9Nap0w9_U5RMiWN8,13848
79
+ files_sdk/models/partner.py,sha256=9y7UKUjTTLEYVGS5lFrSrxGHynJNXqFEyp6g1Fi3ZOY,14517
80
80
  files_sdk/models/payment.py,sha256=UUWxK3x2RVYQdRAWeA-WA_Oegh5TDXYPQA_m3BYd0bQ,3753
81
81
  files_sdk/models/payment_line_item.py,sha256=x97h4kBtul5S1EqI_jskhbebnucwA-EOnQn1oV8Hid0,1284
82
82
  files_sdk/models/permission.py,sha256=llVIdqsQjP7xcTPN-GuaP17hQ0GvQhKHIQhcafyg9mk,9410
@@ -85,12 +85,12 @@ files_sdk/models/priority.py,sha256=kByzhOOVwKVSxrMI5xJb1RwUtQdSuFFBLBNEHYzWSm0,
85
85
  files_sdk/models/project.py,sha256=nDpX0qc7jY6evRprjQ7l4YgjM9WNH0aXaRbE2mpo6zk,7510
86
86
  files_sdk/models/public_hosting_request_log.py,sha256=YOgcT8NX-x7Ag5ti2KU8npPRIjFItpbTHBo_ARhVtyc,7641
87
87
  files_sdk/models/public_ip_address.py,sha256=5VSlJ4PZQilV6tpGRCnyvGJzqRzdSRpwVDZxKwsplcU,1259
88
- files_sdk/models/public_key.py,sha256=3cxoQAD3TdBGgSKHtDeYT1NIKytmPi80jHiNL62jUaY,12809
88
+ files_sdk/models/public_key.py,sha256=adaLO8Z3XM0B4EhaTy_PwGIYL8iMWiFBVhg5t5AfLik,12925
89
89
  files_sdk/models/remote_bandwidth_snapshot.py,sha256=kryNewGqe_ZN4D3JBL26DoVYKDowubUNLXn7NQtEJb8,4476
90
90
  files_sdk/models/remote_mount_backend.py,sha256=TZ6pLJPLy8se4poHMuREHYNavCOKiznBxPLti008CBY,19360
91
- files_sdk/models/remote_server.py,sha256=dpDH1wFSOfRXSzkdiQwCM8VlkQH1oci-ool0rQkuJGQ,88089
91
+ files_sdk/models/remote_server.py,sha256=mmw-pHBNhfZF6Mds2AzC9FkHqCF7jTG7UkO9j1il1D4,88672
92
92
  files_sdk/models/remote_server_configuration_file.py,sha256=So6cK83z_6xwLnHJYgEwzSb9eBkDK5XG2Q4k8kp9nno,3476
93
- files_sdk/models/remote_server_credential.py,sha256=kNZuzTvsc5wLIQlg0GAOm9rmbAPaXWeArjAPd3gCJ3g,37640
93
+ files_sdk/models/remote_server_credential.py,sha256=fHO5K_tm_M3idNfveyC6bAPlmsSaGkKocB6AnbeW0is,36208
94
94
  files_sdk/models/request.py,sha256=mWOS36b5pRiAZqDuf1tGidw-FAikYPDqfv5LXdDJA9Q,8867
95
95
  files_sdk/models/restore.py,sha256=fDxydLjxeVPwDxxHGKI9sjGLR1fB7DcgGow2EgGU-A0,8620
96
96
  files_sdk/models/scim_log.py,sha256=4j_IynVzpnSttAUAxTGhT2t56_Mx7KNvZdhVplxLmPM,3747
@@ -106,20 +106,21 @@ files_sdk/models/snapshot.py,sha256=zmdQWKR8EhUkF1mFQHFzWfreaEVXG1p_jEtmY4j3cKA,
106
106
  files_sdk/models/sso_strategy.py,sha256=PA_B4cF4XUnzaTjH0Ld0yUNwWCy8Wpea46YuJrrXtXM,9305
107
107
  files_sdk/models/status.py,sha256=IIY3RiJ2RZ2yPByAAh8eIq_cgZFTj13eR4UpqHTANQI,1363
108
108
  files_sdk/models/style.py,sha256=KZY0fZ4kP4AtwZpCi24EtNXL8WFLhE9a1Jme1gA6Kkw,5201
109
- files_sdk/models/sync.py,sha256=-joZVMyzbgTFFmEtak9J1JVppoBN64oKHQrM37N206A,28892
109
+ files_sdk/models/sync.py,sha256=N5vsuNYYorzbMp-UC9LPz2rqK2kk89K1PV21eP-dUVw,29608
110
110
  files_sdk/models/sync_log.py,sha256=DjJaLnCgAE-FINRbkHYQ3JCsERucRy6Hc7zQoKBntRc,18062
111
- files_sdk/models/sync_run.py,sha256=O-rpqkNWQ8qo8qsPiPcZUmtBiZUrOfRr3qqjbT--4pg,6955
111
+ files_sdk/models/sync_run.py,sha256=FKoVwhPkmjnKnVI2TwUAM2QGzYkBMMI_EIvUQ0vQ48Y,7733
112
112
  files_sdk/models/usage_by_top_level_dir.py,sha256=o_dETvzcgEA9lsdES_yzwPVAZVFk4ZcnsCTugR8O8eY,1185
113
113
  files_sdk/models/usage_daily_snapshot.py,sha256=rWf6GaTlN9spkUPwfF4IJ0Y6z-JTV9TAWjsFrxI-UFg,5477
114
114
  files_sdk/models/usage_snapshot.py,sha256=3GzMIxBjKelgNP7ksWq4XlrRlAFcYxzd_J6vAgb52qc,4005
115
- files_sdk/models/user.py,sha256=hs0QtLzaGKdJZV1ZhYZHKYBM6OW8VYW8Tk4p_i4LYmk,64862
115
+ files_sdk/models/user.py,sha256=44JB-0x7HgkVCo3KZkTpLo_Bl9wLBTrc9we8Apxh1Ss,66234
116
116
  files_sdk/models/user_cipher_use.py,sha256=5Mto-oU87rG2jGIq8TQoOdNZgJA4_ViikvOdM9_jdt0,4994
117
117
  files_sdk/models/user_lifecycle_rule.py,sha256=cphIpz9lbHh8g1kIeK91N46LVAQRk-1Wbrjs51byOOA,16422
118
118
  files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6qxgU,6187
119
119
  files_sdk/models/user_sftp_client_use.py,sha256=VnOo3ll6fwSc8grG5ZqGK8o3grYKg5P9b5B_hGS4vCs,2827
120
120
  files_sdk/models/web_dav_action_log.py,sha256=q--_QSmpOhtoJUP2ATx5OQq1tp1eQT5zkzyow8R3B_o,76414
121
121
  files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
122
- files_com-1.6.171.dist-info/METADATA,sha256=6EYwZZ_TNcDhZyx_mKN7V-0HpGtDZmpMT1LxkFqZRx4,32422
123
- files_com-1.6.171.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
124
- files_com-1.6.171.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
125
- files_com-1.6.171.dist-info/RECORD,,
122
+ files_sdk/models/workspace.py,sha256=t8oCa7nZqvoqxVwPV5hpbTHn1ixLUvTiUzE88Ibh7kg,7648
123
+ files_com-1.6.227.dist-info/METADATA,sha256=8G1Y1eYjhrgKcsquJ-YR3X_fMvc_7KpSy93vwF_qPrI,32422
124
+ files_com-1.6.227.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
125
+ files_com-1.6.227.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
126
+ files_com-1.6.227.dist-info/RECORD,,
files_sdk/__init__.py CHANGED
@@ -109,6 +109,7 @@ import files_sdk.models.user_request as user_request
109
109
  import files_sdk.models.user_sftp_client_use as user_sftp_client_use
110
110
  import files_sdk.models.web_dav_action_log as web_dav_action_log
111
111
  import files_sdk.models.webhook_test as webhook_test
112
+ import files_sdk.models.workspace as workspace
112
113
 
113
114
  from files_sdk.models.account_line_item import AccountLineItem
114
115
  from files_sdk.models.action import Action
@@ -228,6 +229,7 @@ from files_sdk.models.user_request import UserRequest
228
229
  from files_sdk.models.user_sftp_client_use import UserSftpClientUse
229
230
  from files_sdk.models.web_dav_action_log import WebDavActionLog
230
231
  from files_sdk.models.webhook_test import WebhookTest
232
+ from files_sdk.models.workspace import Workspace
231
233
 
232
234
  import files_sdk.path_util
233
235
  import socket
@@ -239,7 +241,7 @@ session_id = None
239
241
  source_ip = None
240
242
  base_url = "https://app.files.com"
241
243
  base_path = "api/rest/v1"
242
- version = "1.6.171"
244
+ version = "1.6.227"
243
245
 
244
246
  __version__ = version
245
247
 
@@ -116,3 +116,4 @@ from files_sdk.models.user_request import UserRequest
116
116
  from files_sdk.models.user_sftp_client_use import UserSftpClientUse
117
117
  from files_sdk.models.web_dav_action_log import WebDavActionLog
118
118
  from files_sdk.models.webhook_test import WebhookTest
119
+ from files_sdk.models.workspace import Workspace
@@ -50,7 +50,6 @@ class ApiKey:
50
50
  # Parameters:
51
51
  # description - string - User-supplied description of API key.
52
52
  # expires_at - string - API Key expiration date
53
- # permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
54
53
  # name - string - Internal name for the API Key. For your use.
55
54
  def update(self, params=None):
56
55
  if not isinstance(params, dict):
@@ -76,12 +75,6 @@ class ApiKey:
76
75
  raise InvalidParameterError(
77
76
  "Bad parameter: expires_at must be an str"
78
77
  )
79
- if "permission_set" in params and not isinstance(
80
- params["permission_set"], str
81
- ):
82
- raise InvalidParameterError(
83
- "Bad parameter: permission_set must be an str"
84
- )
85
78
  if "name" in params and not isinstance(params["name"], str):
86
79
  raise InvalidParameterError("Bad parameter: name must be an str")
87
80
  response, _options = Api.send_request(
@@ -204,10 +197,10 @@ def get(id, params=None, options=None):
204
197
  # user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
205
198
  # description - string - User-supplied description of API key.
206
199
  # expires_at - string - API Key expiration date
207
- # permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
208
200
  # name (required) - string - Internal name for the API Key. For your use.
209
201
  # aws_style_credentials - boolean - If `true`, this API key will be usable with AWS-compatible endpoints, such as our Inbound S3-compatible endpoint.
210
202
  # path - string - Folder path restriction for `office_integration` permission set API keys.
203
+ # permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
211
204
  def create(params=None, options=None):
212
205
  if not isinstance(params, dict):
213
206
  params = {}
@@ -221,12 +214,6 @@ def create(params=None, options=None):
221
214
  )
222
215
  if "expires_at" in params and not isinstance(params["expires_at"], str):
223
216
  raise InvalidParameterError("Bad parameter: expires_at must be an str")
224
- if "permission_set" in params and not isinstance(
225
- params["permission_set"], str
226
- ):
227
- raise InvalidParameterError(
228
- "Bad parameter: permission_set must be an str"
229
- )
230
217
  if "name" in params and not isinstance(params["name"], str):
231
218
  raise InvalidParameterError("Bad parameter: name must be an str")
232
219
  if "aws_style_credentials" in params and not isinstance(
@@ -237,6 +224,12 @@ def create(params=None, options=None):
237
224
  )
238
225
  if "path" in params and not isinstance(params["path"], str):
239
226
  raise InvalidParameterError("Bad parameter: path must be an str")
227
+ if "permission_set" in params and not isinstance(
228
+ params["permission_set"], str
229
+ ):
230
+ raise InvalidParameterError(
231
+ "Bad parameter: permission_set must be an str"
232
+ )
240
233
  if "name" not in params:
241
234
  raise MissingParameterError("Parameter missing: name")
242
235
  response, options = Api.send_request("POST", "/api_keys", params, options)
@@ -269,7 +262,6 @@ def update_current(params=None, options=None):
269
262
  # Parameters:
270
263
  # description - string - User-supplied description of API key.
271
264
  # expires_at - string - API Key expiration date
272
- # permission_set - string - Permissions for this API Key. It must be full for site-wide API Keys. 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). Keys with the `office_integration` permission set are auto generated, and automatically expire, to allow users to interact with office integration platforms. 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.
273
265
  # name - string - Internal name for the API Key. For your use.
274
266
  def update(id, params=None, options=None):
275
267
  if not isinstance(params, dict):
@@ -285,12 +277,6 @@ def update(id, params=None, options=None):
285
277
  )
286
278
  if "expires_at" in params and not isinstance(params["expires_at"], str):
287
279
  raise InvalidParameterError("Bad parameter: expires_at must be an str")
288
- if "permission_set" in params and not isinstance(
289
- params["permission_set"], str
290
- ):
291
- raise InvalidParameterError(
292
- "Bad parameter: permission_set must be an str"
293
- )
294
280
  if "name" in params and not isinstance(params["name"], str):
295
281
  raise InvalidParameterError("Bad parameter: name must be an str")
296
282
  if "id" not in params:
@@ -11,6 +11,7 @@ from files_sdk.error import ( # noqa: F401
11
11
  class As2IncomingMessage:
12
12
  default_attributes = {
13
13
  "id": None, # int64 - Id of the AS2 Partner.
14
+ "workspace_id": None, # int64 - ID of the Workspace associated with this AS2 Incoming Message.
14
15
  "as2_partner_id": None, # int64 - Id of the AS2 Partner associated with this message.
15
16
  "as2_station_id": None, # int64 - Id of the AS2 Station associated with this message.
16
17
  "uuid": None, # string - UUID assigned to this message.
@@ -72,8 +73,8 @@ class As2IncomingMessage:
72
73
  # Parameters:
73
74
  # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
74
75
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
75
- # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at` and `as2_partner_id`.
76
- # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `as2_station_id` or `as2_partner_id`. Valid field combinations are `[ as2_station_id, created_at ]` and `[ as2_partner_id, created_at ]`.
76
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `created_at` or `as2_partner_id`.
77
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `as2_station_id`, `workspace_id` or `as2_partner_id`. Valid field combinations are `[ as2_station_id, created_at ]`, `[ workspace_id, created_at ]`, `[ as2_partner_id, created_at ]`, `[ workspace_id, as2_station_id ]`, `[ workspace_id, as2_partner_id ]`, `[ workspace_id, as2_station_id, created_at ]` or `[ workspace_id, as2_partner_id, created_at ]`.
77
78
  # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
78
79
  # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
79
80
  # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
@@ -11,6 +11,7 @@ from files_sdk.error import ( # noqa: F401
11
11
  class As2OutgoingMessage:
12
12
  default_attributes = {
13
13
  "id": None, # int64 - Id of the AS2 Partner.
14
+ "workspace_id": None, # int64 - ID of the Workspace associated with this AS2 Outgoing Message.
14
15
  "as2_partner_id": None, # int64 - Id of the AS2 Partner associated with this message.
15
16
  "as2_station_id": None, # int64 - Id of the AS2 Station associated with this message.
16
17
  "uuid": None, # string - UUID assigned to this message.
@@ -68,8 +69,8 @@ class As2OutgoingMessage:
68
69
  # Parameters:
69
70
  # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
70
71
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
71
- # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `created_at` and `as2_partner_id`.
72
- # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `as2_station_id` or `as2_partner_id`. Valid field combinations are `[ as2_station_id, created_at ]` and `[ as2_partner_id, created_at ]`.
72
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `created_at` or `as2_partner_id`.
73
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`, `as2_station_id`, `workspace_id` or `as2_partner_id`. Valid field combinations are `[ as2_station_id, created_at ]`, `[ workspace_id, created_at ]`, `[ as2_partner_id, created_at ]`, `[ workspace_id, as2_station_id ]`, `[ workspace_id, as2_partner_id ]`, `[ workspace_id, as2_station_id, created_at ]` or `[ workspace_id, as2_partner_id, created_at ]`.
73
74
  # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
74
75
  # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `created_at`.
75
76
  # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
@@ -11,6 +11,7 @@ from files_sdk.error import ( # noqa: F401
11
11
  class As2Partner:
12
12
  default_attributes = {
13
13
  "id": None, # int64 - ID of the AS2 Partner.
14
+ "workspace_id": None, # int64 - ID of the Workspace associated with this AS2 Partner.
14
15
  "as2_station_id": None, # int64 - ID of the AS2 Station associated with this partner.
15
16
  "name": None, # string - The partner's formal AS2 name.
16
17
  "uri": None, # string - Public URI where we will send the AS2 messages (via HTTP/HTTPS).
@@ -165,8 +166,8 @@ class As2Partner:
165
166
  # Parameters:
166
167
  # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
167
168
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
168
- # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `as2_station_id` and `name`.
169
- # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `as2_station_id`.
169
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `as2_station_id` or `name`.
170
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `as2_station_id` and `workspace_id`. Valid field combinations are `[ workspace_id, as2_station_id ]`.
170
171
  def list(params=None, options=None):
171
172
  if not isinstance(params, dict):
172
173
  params = {}
@@ -11,6 +11,7 @@ from files_sdk.error import ( # noqa: F401
11
11
  class As2Station:
12
12
  default_attributes = {
13
13
  "id": None, # int64 - Id of the AS2 Station.
14
+ "workspace_id": None, # int64 - ID of the Workspace associated with this AS2 Station.
14
15
  "name": None, # string - The station's formal AS2 name.
15
16
  "uri": None, # string - Public URI for sending AS2 message to.
16
17
  "domain": None, # string - The station's AS2 domain name.
@@ -48,7 +49,7 @@ class As2Station:
48
49
  }
49
50
 
50
51
  # Parameters:
51
- # name - string - AS2 Name
52
+ # name - string - The station's formal AS2 name.
52
53
  # public_certificate - string
53
54
  # private_key - string
54
55
  # private_key_password - string
@@ -128,7 +129,8 @@ class As2Station:
128
129
  # Parameters:
129
130
  # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
130
131
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
131
- # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `name`.
132
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id` and `name`.
133
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `workspace_id`.
132
134
  def list(params=None, options=None):
133
135
  if not isinstance(params, dict):
134
136
  params = {}
@@ -140,6 +142,8 @@ def list(params=None, options=None):
140
142
  raise InvalidParameterError("Bad parameter: per_page must be an int")
141
143
  if "sort_by" in params and not isinstance(params["sort_by"], dict):
142
144
  raise InvalidParameterError("Bad parameter: sort_by must be an dict")
145
+ if "filter" in params and not isinstance(params["filter"], dict):
146
+ raise InvalidParameterError("Bad parameter: filter must be an dict")
143
147
  return ListObj(As2Station, "GET", "/as2_stations", params, options)
144
148
 
145
149
 
@@ -170,7 +174,8 @@ def get(id, params=None, options=None):
170
174
 
171
175
 
172
176
  # Parameters:
173
- # name (required) - string - AS2 Name
177
+ # name (required) - string - The station's formal AS2 name.
178
+ # workspace_id - int64 - ID of the Workspace associated with this AS2 Station.
174
179
  # public_certificate (required) - string
175
180
  # private_key (required) - string
176
181
  # private_key_password - string
@@ -181,6 +186,12 @@ def create(params=None, options=None):
181
186
  options = {}
182
187
  if "name" in params and not isinstance(params["name"], str):
183
188
  raise InvalidParameterError("Bad parameter: name must be an str")
189
+ if "workspace_id" in params and not isinstance(
190
+ params["workspace_id"], int
191
+ ):
192
+ raise InvalidParameterError(
193
+ "Bad parameter: workspace_id must be an int"
194
+ )
184
195
  if "public_certificate" in params and not isinstance(
185
196
  params["public_certificate"], str
186
197
  ):
@@ -210,7 +221,7 @@ def create(params=None, options=None):
210
221
 
211
222
 
212
223
  # Parameters:
213
- # name - string - AS2 Name
224
+ # name - string - The station's formal AS2 name.
214
225
  # public_certificate - string
215
226
  # private_key - string
216
227
  # private_key_password - string
@@ -11,6 +11,7 @@ from files_sdk.error import ( # noqa: F401
11
11
  class Automation:
12
12
  default_attributes = {
13
13
  "id": None, # int64 - Automation ID
14
+ "workspace_id": None, # int64 - Workspace ID
14
15
  "always_serialize_jobs": None, # boolean - Ordinarily, we will allow automation runs to run in parallel for non-scheduled automations. If this flag is `true` we will force automation runs to be serialized (run one at a time, one after another). This can resolve some issues with race conditions on remote systems at the cost of some performance.
15
16
  "always_overwrite_size_matching_files": None, # boolean - Ordinarily, files with identical size in the source and destination will be skipped from copy operations to prevent wasted transfer. If this flag is `true` we will overwrite the destination file always. Note that this may cause large amounts of wasted transfer usage. This setting has no effect unless `overwrite_files` is also set to `true`.
16
17
  "automation": None, # string - Automation type
@@ -312,8 +313,8 @@ class Automation:
312
313
  # Parameters:
313
314
  # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
314
315
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
315
- # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation`, `disabled`, `last_modified_at` or `name`.
316
- # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at` or `automation`. Valid field combinations are `[ disabled, last_modified_at ]`, `[ automation, disabled ]`, `[ automation, last_modified_at ]` or `[ automation, disabled, last_modified_at ]`.
316
+ # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `workspace_id`, `name`, `automation`, `last_modified_at` or `disabled`.
317
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `disabled`, `last_modified_at`, `workspace_id` or `automation`. Valid field combinations are `[ disabled, last_modified_at ]`, `[ workspace_id, disabled ]`, `[ disabled, automation ]`, `[ workspace_id, last_modified_at ]`, `[ automation, last_modified_at ]`, `[ workspace_id, automation ]`, `[ workspace_id, disabled, last_modified_at ]`, `[ disabled, automation, last_modified_at ]`, `[ workspace_id, disabled, automation ]`, `[ workspace_id, automation, last_modified_at ]` or `[ workspace_id, disabled, automation, last_modified_at ]`.
317
318
  # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `last_modified_at`.
318
319
  # filter_gteq - object - If set, return records where the specified field is greater than or equal the supplied value. Valid fields are `last_modified_at`.
319
320
  # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `last_modified_at`.
@@ -406,6 +407,7 @@ def get(id, params=None, options=None):
406
407
  # value - object - A Hash of attributes specific to the automation type.
407
408
  # 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`.
408
409
  # automation (required) - string - Automation type
410
+ # workspace_id - int64 - Workspace ID
409
411
  def create(params=None, options=None):
410
412
  if not isinstance(params, dict):
411
413
  params = {}
@@ -563,6 +565,12 @@ def create(params=None, options=None):
563
565
  )
564
566
  if "automation" in params and not isinstance(params["automation"], str):
565
567
  raise InvalidParameterError("Bad parameter: automation must be an str")
568
+ if "workspace_id" in params and not isinstance(
569
+ params["workspace_id"], int
570
+ ):
571
+ raise InvalidParameterError(
572
+ "Bad parameter: workspace_id must be an int"
573
+ )
566
574
  if "automation" not in params:
567
575
  raise MissingParameterError("Parameter missing: automation")
568
576
  response, options = Api.send_request(
@@ -12,6 +12,7 @@ class AutomationRun:
12
12
  default_attributes = {
13
13
  "id": None, # int64 - ID.
14
14
  "automation_id": None, # int64 - ID of the associated Automation.
15
+ "workspace_id": None, # int64 - Workspace ID.
15
16
  "completed_at": None, # date-time - Automation run completion/failure date/time.
16
17
  "created_at": None, # date-time - Automation run start date/time.
17
18
  "retry_at": None, # date-time - If set, this automation will be retried at this date/time due to `failure` or `partial_failure`.
@@ -53,7 +54,7 @@ class AutomationRun:
53
54
  # cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
54
55
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
55
56
  # sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction. Valid fields are `automation_id`, `created_at` or `status`.
56
- # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status` and `automation_id`. Valid field combinations are `[ automation_id, status ]`.
57
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `status`, `workspace_id` or `automation_id`. Valid field combinations are `[ workspace_id, status ]`, `[ automation_id, status ]`, `[ workspace_id, automation_id ]` or `[ workspace_id, automation_id, status ]`.
57
58
  # automation_id (required) - int64 - ID of the associated Automation.
58
59
  def list(params=None, options=None):
59
60
  if not isinstance(params, dict):
@@ -43,7 +43,7 @@ class Behavior:
43
43
  }
44
44
 
45
45
  # Parameters:
46
- # value - string - This field stores a hash of data specific to the type of behavior. See The Behavior Types section for example values for each type of behavior.
46
+ # value - object - This field stores a hash of data specific to the type of behavior. See The Behavior Types section for example values for each type of behavior.
47
47
  # attachment_file - file - Certain behaviors may require a file, for instance, the `watermark` behavior requires a watermark image. Attach that file here.
48
48
  # disable_parent_folder_behavior - boolean - If `true`, the parent folder's behavior will be disabled for this folder and its children. This is the main mechanism for canceling out a `recursive` behavior higher in the folder tree.
49
49
  # recursive - boolean - If `true`, behavior is treated as recursive, meaning that it impacts child folders as well.
@@ -62,8 +62,6 @@ class Behavior:
62
62
  raise MissingParameterError("Parameter missing: id")
63
63
  if "id" in params and not isinstance(params["id"], int):
64
64
  raise InvalidParameterError("Bad parameter: id must be an int")
65
- if "value" in params and not isinstance(params["value"], str):
66
- raise InvalidParameterError("Bad parameter: value must be an str")
67
65
  if "name" in params and not isinstance(params["name"], str):
68
66
  raise InvalidParameterError("Bad parameter: name must be an str")
69
67
  if "description" in params and not isinstance(
@@ -201,7 +199,7 @@ def list_for(path, params=None, options=None):
201
199
 
202
200
 
203
201
  # Parameters:
204
- # value - string - This field stores a hash of data specific to the type of behavior. See The Behavior Types section for example values for each type of behavior.
202
+ # value - object - This field stores a hash of data specific to the type of behavior. See The Behavior Types section for example values for each type of behavior.
205
203
  # attachment_file - file - Certain behaviors may require a file, for instance, the `watermark` behavior requires a watermark image. Attach that file here.
206
204
  # disable_parent_folder_behavior - boolean - If `true`, the parent folder's behavior will be disabled for this folder and its children. This is the main mechanism for canceling out a `recursive` behavior higher in the folder tree.
207
205
  # recursive - boolean - If `true`, behavior is treated as recursive, meaning that it impacts child folders as well.
@@ -214,8 +212,8 @@ def create(params=None, options=None):
214
212
  params = {}
215
213
  if not isinstance(options, dict):
216
214
  options = {}
217
- if "value" in params and not isinstance(params["value"], str):
218
- raise InvalidParameterError("Bad parameter: value must be an str")
215
+ if "value" in params and not isinstance(params["value"], dict):
216
+ raise InvalidParameterError("Bad parameter: value must be an dict")
219
217
  if "disable_parent_folder_behavior" in params and not isinstance(
220
218
  params["disable_parent_folder_behavior"], bool
221
219
  ):
@@ -272,7 +270,7 @@ def webhook_test(params=None, options=None):
272
270
 
273
271
 
274
272
  # Parameters:
275
- # value - string - This field stores a hash of data specific to the type of behavior. See The Behavior Types section for example values for each type of behavior.
273
+ # value - object - This field stores a hash of data specific to the type of behavior. See The Behavior Types section for example values for each type of behavior.
276
274
  # attachment_file - file - Certain behaviors may require a file, for instance, the `watermark` behavior requires a watermark image. Attach that file here.
277
275
  # disable_parent_folder_behavior - boolean - If `true`, the parent folder's behavior will be disabled for this folder and its children. This is the main mechanism for canceling out a `recursive` behavior higher in the folder tree.
278
276
  # recursive - boolean - If `true`, behavior is treated as recursive, meaning that it impacts child folders as well.
@@ -285,12 +283,12 @@ def update(id, params=None, options=None):
285
283
  if not isinstance(options, dict):
286
284
  options = {}
287
285
  params["id"] = id
288
- if "id" in params and not isinstance(params["id"], (str, int, dict)):
286
+ if "id" in params and not isinstance(params["id"], (dict, str, int)):
289
287
  raise InvalidParameterError(
290
- "Bad parameter: id must be one of str, int, dict"
288
+ "Bad parameter: id must be one of dict, str, int"
291
289
  )
292
- if "value" in params and not isinstance(params["value"], str):
293
- raise InvalidParameterError("Bad parameter: value must be an str")
290
+ if "value" in params and not isinstance(params["value"], dict):
291
+ raise InvalidParameterError("Bad parameter: value must be an dict")
294
292
  if "disable_parent_folder_behavior" in params and not isinstance(
295
293
  params["disable_parent_folder_behavior"], bool
296
294
  ):
@@ -306,10 +304,10 @@ def update(id, params=None, options=None):
306
304
  "Bad parameter: description must be an str"
307
305
  )
308
306
  if "attachment_delete" in params and not isinstance(
309
- params["attachment_delete"], (str, int, dict)
307
+ params["attachment_delete"], (dict, str, int)
310
308
  ):
311
309
  raise InvalidParameterError(
312
- "Bad parameter: attachment_delete must be one of str, int, dict"
310
+ "Bad parameter: attachment_delete must be one of dict, str, int"
313
311
  )
314
312
  if "id" not in params:
315
313
  raise MissingParameterError("Parameter missing: id")
@@ -46,6 +46,7 @@ class Bundle:
46
46
  "inbox_id": None, # int64 - ID of the associated inbox, if available.
47
47
  "watermark_attachment": None, # Image - Preview watermark image applied to all bundle items.
48
48
  "watermark_value": None, # object - Preview watermark settings applied to all bundle items. Uses the same keys as Behavior.value
49
+ "send_one_time_password_to_recipient_at_registration": None, # boolean - If true, require_share_recipient bundles will send a one-time password to the recipient when they register. Cannot be enabled if the bundle has a password set.
49
50
  "has_inbox": None, # boolean - Does this bundle have an associated inbox?
50
51
  "dont_allow_folders_in_uploads": None, # boolean - Should folder uploads be prevented?
51
52
  "paths": None, # array(string) - A list of paths in this bundle. For performance reasons, this is not provided when listing bundles.
@@ -131,6 +132,7 @@ class Bundle:
131
132
  # permissions - string - Permissions that apply to Folders in this Share Link.
132
133
  # require_registration - boolean - Show a registration page that captures the downloader's name and email address?
133
134
  # require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
135
+ # send_one_time_password_to_recipient_at_registration - boolean - If true, require_share_recipient bundles will send a one-time password to the recipient when they register. Cannot be enabled if the bundle has a password set.
134
136
  # send_email_receipt_to_uploader - boolean - Send delivery receipt to the uploader. Note: For writable share only
135
137
  # skip_company - boolean - BundleRegistrations can be saved without providing company?
136
138
  # start_access_on_date - string - Date when share will start to be accessible. If `nil` access granted right after create.
@@ -357,6 +359,7 @@ def get(id, params=None, options=None):
357
359
  # clickwrap_id - int64 - ID of the clickwrap to use with this bundle.
358
360
  # inbox_id - int64 - ID of the associated inbox, if available.
359
361
  # require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
362
+ # send_one_time_password_to_recipient_at_registration - boolean - If true, require_share_recipient bundles will send a one-time password to the recipient when they register. Cannot be enabled if the bundle has a password set.
360
363
  # send_email_receipt_to_uploader - boolean - Send delivery receipt to the uploader. Note: For writable share only
361
364
  # skip_email - boolean - BundleRegistrations can be saved without providing email?
362
365
  # skip_name - boolean - BundleRegistrations can be saved without providing name?
@@ -447,6 +450,15 @@ def create(params=None, options=None):
447
450
  raise InvalidParameterError(
448
451
  "Bad parameter: require_share_recipient must be an bool"
449
452
  )
453
+ if (
454
+ "send_one_time_password_to_recipient_at_registration" in params
455
+ and not isinstance(
456
+ params["send_one_time_password_to_recipient_at_registration"], bool
457
+ )
458
+ ):
459
+ raise InvalidParameterError(
460
+ "Bad parameter: send_one_time_password_to_recipient_at_registration must be an bool"
461
+ )
450
462
  if "send_email_receipt_to_uploader" in params and not isinstance(
451
463
  params["send_email_receipt_to_uploader"], bool
452
464
  ):
@@ -531,6 +543,7 @@ def share(id, params=None, options=None):
531
543
  # permissions - string - Permissions that apply to Folders in this Share Link.
532
544
  # require_registration - boolean - Show a registration page that captures the downloader's name and email address?
533
545
  # require_share_recipient - boolean - Only allow access to recipients who have explicitly received the share via an email sent through the Files.com UI?
546
+ # send_one_time_password_to_recipient_at_registration - boolean - If true, require_share_recipient bundles will send a one-time password to the recipient when they register. Cannot be enabled if the bundle has a password set.
534
547
  # send_email_receipt_to_uploader - boolean - Send delivery receipt to the uploader. Note: For writable share only
535
548
  # skip_company - boolean - BundleRegistrations can be saved without providing company?
536
549
  # start_access_on_date - string - Date when share will start to be accessible. If `nil` access granted right after create.
@@ -623,6 +636,15 @@ def update(id, params=None, options=None):
623
636
  raise InvalidParameterError(
624
637
  "Bad parameter: require_share_recipient must be an bool"
625
638
  )
639
+ if (
640
+ "send_one_time_password_to_recipient_at_registration" in params
641
+ and not isinstance(
642
+ params["send_one_time_password_to_recipient_at_registration"], bool
643
+ )
644
+ ):
645
+ raise InvalidParameterError(
646
+ "Bad parameter: send_one_time_password_to_recipient_at_registration must be an bool"
647
+ )
626
648
  if "send_email_receipt_to_uploader" in params and not isinstance(
627
649
  params["send_email_receipt_to_uploader"], bool
628
650
  ):