Skip to content

Commit 69f7bb2

Browse files
Brent1LTBrent Bumann
andauthored
Spec Update 05/18/2022 (#71)
Change Notes: files Namespace - Update examples shared_links Namespace - Update get_shared_link_metadata route to include app and user auth team_folders Namespace - Update team_folder/create, team_folder/rename, team_folder/list, team_folder/list/continue, team_folder/get_info, team_folder/activate, team_folder/archive, team_folder/archive/check, team_folder/permanently_delete, team_folder/update_sync_settings routes to include updated scopes team_legal_holds Namespace - Update legal_holds/create_policy, legal_holds/get_policy, legal_holds/list_policies, legal_holds/list_held_revisions, legal_holds/list_held_revisions_continue, legal_holds/update_policy, legal_holds/release_policy routes to include updated scopes team_log_generated Namespace - Update AdminAlertingAlertConfiguration to include text and excluded_file_extensions - Update PlacementRestriction to include us_s3_only - Update examples Co-authored-by: Brent Bumann <bbumann@dropbox.com>
1 parent ef6b168 commit 69f7bb2

File tree

5 files changed

+34
-18
lines changed

5 files changed

+34
-18
lines changed

files.stone

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,9 @@ route download_zip (DownloadZipArg, DownloadZipResult, DownloadZipError)
677677
"Download a folder from the user's Dropbox, as a zip file. The folder must be less than 20 GB
678678
in size and any single file within must be less than 4 GB in size. The resulting zip must have
679679
fewer than 10,000 total file and folder entries, including the top level folder. The input
680-
cannot be a single file."
680+
cannot be a single file.
681+
682+
Note: this endpoint does not support HTTP range requests."
681683

682684
attrs
683685
host = "content"
@@ -1159,6 +1161,10 @@ struct UploadArg extends CommitInfo
11591161
does not match this hash, an error will be returned. For more information see our
11601162
:link:`Content hash https://www.dropbox.com/developers/reference/content-hash` page."
11611163

1164+
example default
1165+
path = "/Homework/math/Matrices.txt"
1166+
content_hash = null
1167+
11621168
route upload (UploadArg, FileMetadata, UploadError)
11631169
"Create a new file with the contents provided in the request.
11641170

shared_links.stone

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ route get_shared_link_metadata(GetSharedLinkMetadataArg, SharedLinkMetadata, Sha
266266
"Get the shared link's metadata."
267267

268268
attrs
269+
auth = "app, user"
269270
allow_app_folder_app = true
270271
scope = "sharing.read"
271272

team_folders.stone

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ route team_folder/create(TeamFolderCreateArg, TeamFolderMetadata, TeamFolderCrea
9393

9494
attrs
9595
auth = "team"
96-
scope = "team_data.team_space"
96+
scope = "team_data.content.write"
9797

9898
struct TeamFolderCreateArg
9999
name String
@@ -127,7 +127,7 @@ route team_folder/rename(TeamFolderRenameArg, TeamFolderMetadata, TeamFolderRena
127127

128128
attrs
129129
auth = "team"
130-
scope = "team_data.team_space"
130+
scope = "team_data.content.write"
131131

132132
struct TeamFolderRenameArg extends TeamFolderIdArg
133133
name String
@@ -155,7 +155,7 @@ route team_folder/list(TeamFolderListArg, TeamFolderListResult, TeamFolderListEr
155155
Permission : Team member file access."
156156
attrs
157157
auth = "team"
158-
scope = "team_data.team_space"
158+
scope = "team_data.content.read"
159159

160160
struct TeamFolderListArg
161161
limit UInt32(min_value=1, max_value=1000) = 1000
@@ -195,7 +195,7 @@ route team_folder/list/continue(TeamFolderListContinueArg, TeamFolderListResult,
195195

196196
attrs
197197
auth = "team"
198-
scope = "team_data.team_space"
198+
scope = "team_data.content.read"
199199

200200
struct TeamFolderListContinueArg
201201
cursor String
@@ -219,7 +219,7 @@ route team_folder/get_info(TeamFolderIdListArg, List(TeamFolderGetInfoItem), Voi
219219

220220
attrs
221221
auth = "team"
222-
scope = "team_data.team_space"
222+
scope = "team_data.content.read"
223223

224224
union_closed TeamFolderGetInfoItem
225225
id_not_found String
@@ -239,7 +239,7 @@ route team_folder/activate(TeamFolderIdArg, TeamFolderMetadata, TeamFolderActiva
239239

240240
attrs
241241
auth = "team"
242-
scope = "team_data.team_space"
242+
scope = "team_data.content.write"
243243

244244
union TeamFolderActivateError extends BaseTeamFolderError
245245
""
@@ -256,7 +256,7 @@ route team_folder/archive(TeamFolderArchiveArg, TeamFolderArchiveLaunch, TeamFol
256256

257257
attrs
258258
auth = "team"
259-
scope = "team_data.team_space"
259+
scope = "team_data.content.write"
260260

261261
struct TeamFolderArchiveArg extends TeamFolderIdArg
262262
force_async_off Boolean = false
@@ -285,7 +285,7 @@ route team_folder/archive/check(async.PollArg, TeamFolderArchiveJobStatus, async
285285

286286
attrs
287287
auth = "team"
288-
scope = "team_data.team_space"
288+
scope = "team_data.content.write"
289289

290290
union_closed TeamFolderArchiveJobStatus extends async.PollResultBase
291291
complete TeamFolderMetadata
@@ -308,7 +308,7 @@ route team_folder/permanently_delete(TeamFolderIdArg, Void, TeamFolderPermanentl
308308

309309
attrs
310310
auth = "team"
311-
scope = "team_data.team_space"
311+
scope = "team_data.content.write"
312312

313313
union TeamFolderPermanentlyDeleteError extends BaseTeamFolderError
314314
""
@@ -338,4 +338,4 @@ route team_folder/update_sync_settings(TeamFolderUpdateSyncSettingsArg, TeamFold
338338

339339
attrs
340340
auth = "team"
341-
scope = "team_data.team_space"
341+
scope = "team_data.content.write"

team_legal_holds.stone

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ route legal_holds/create_policy(LegalHoldsPolicyCreateArg, LegalHoldsPolicyCreat
116116

117117
attrs
118118
auth = "team"
119-
scope = "team_data.member"
119+
scope = "team_data.governance.write"
120120

121121
#
122122
# route legal_holds/get_policy
@@ -142,7 +142,7 @@ route legal_holds/get_policy(LegalHoldsGetPolicyArg, LegalHoldsGetPolicyResult,
142142

143143
attrs
144144
auth = "team"
145-
scope = "team_data.member"
145+
scope = "team_data.governance.write"
146146

147147

148148
#
@@ -173,7 +173,7 @@ route legal_holds/list_policies(LegalHoldsListPoliciesArg, LegalHoldsListPolicie
173173

174174
attrs
175175
auth = "team"
176-
scope = "team_data.member"
176+
scope = "team_data.governance.write"
177177

178178

179179
#
@@ -254,7 +254,7 @@ route legal_holds/list_held_revisions(LegalHoldsListHeldRevisionsArg, LegalHolds
254254

255255
attrs
256256
auth = "team"
257-
scope = "team_data.member"
257+
scope = "team_data.governance.write"
258258

259259

260260
#
@@ -286,7 +286,7 @@ route legal_holds/list_held_revisions_continue(LegalHoldsListHeldRevisionsContin
286286

287287
attrs
288288
auth = "team"
289-
scope = "team_data.member"
289+
scope = "team_data.governance.write"
290290

291291
#
292292
# route legal_holds/update_policy
@@ -334,7 +334,7 @@ route legal_holds/update_policy(LegalHoldsPolicyUpdateArg, LegalHoldsPolicyUpdat
334334

335335
attrs
336336
auth = "team"
337-
scope = "team_data.member"
337+
scope = "team_data.governance.write"
338338

339339
#
340340
# route legal_holds/release_policy
@@ -362,4 +362,4 @@ route legal_holds/release_policy(LegalHoldsPolicyReleaseArg, Void, LegalHoldsPol
362362

363363
attrs
364364
auth = "team"
365-
scope = "team_data.member"
365+
scope = "team_data.governance.write"

team_log_generated.stone

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,16 +221,24 @@ struct AdminAlertingAlertConfiguration
221221
"Sensitivity level."
222222
recipients_settings RecipientsConfiguration?
223223
"Recipient settings."
224+
text String?
225+
"Text."
226+
excluded_file_extensions String?
227+
"Excluded file extensions."
224228

225229
example default
226230
alert_state = off
227231
sensitivity_level = invalid
228232
recipients_settings = default
233+
text = "abc"
234+
excluded_file_extensions = "abc"
229235

230236
example default2
231237
alert_state = off
232238
sensitivity_level = invalid
233239
recipients_settings = default2
240+
text = "xyz"
241+
excluded_file_extensions = "xyz"
234242

235243
struct RecipientsConfiguration
236244
"Recipients Configuration"
@@ -774,6 +782,7 @@ union PlacementRestriction
774782
japan_only
775783
none
776784
uk_only
785+
us_s3_only
777786

778787
union PolicyType
779788
disposition

0 commit comments

Comments
 (0)