Skip to content

Commit c836440

Browse files
sdericksonScott Erickson
andauthored
Spec Update 04/26/2023 (#<TODO>) (#77)
Change Notes: check_api_v2_types Namespace - Update EchoArg DataType.STRUCT files Namespace - Update DeleteBatchArg DataType.STRUCT - Update RelocationBatchArgBase DataType.STRUCT - Update save_url DataType.ROUTE team_log_generated Namespace - Add RansomwareRestoreProcessCompletedDetails, RansomwareRestoreProcessStartedDetails, TeamEncryptionKeyCancelKeyDeletionDetails, TeamEncryptionKeyCreateKeyDetails, TeamEncryptionKeyDeleteKeyDetails, TeamEncryptionKeyDisableKeyDetails, TeamEncryptionKeyEnableKeyDetails, TeamEncryptionKeyRotateKeyDetails, TeamEncryptionKeyScheduleKeyDeletionDetails, FileAddFromAutomationDetails, ReplayFileDeleteDetails, BackupAdminInvitationSentDetails, BackupInvitationOpenedDetails, RansomwareAlertCreateReportDetails, RansomwareAlertCreateReportFailedDetails, ReplayFileSharedLinkCreatedDetails, ReplayFileSharedLinkModifiedDetails, ReplayProjectTeamAddDetails, ReplayProjectTeamDeleteDetails, RansomwareRestoreProcessCompletedType, RansomwareRestoreProcessStartedType, TeamEncryptionKeyCancelKeyDeletionType, TeamEncryptionKeyCreateKeyType, TeamEncryptionKeyDeleteKeyType, TeamEncryptionKeyDisableKeyType, TeamEncryptionKeyEnableKeyType, TeamEncryptionKeyRotateKeyType, TeamEncryptionKeyScheduleKeyDeletionType, FileAddFromAutomationType, ReplayFileDeleteType, BackupAdminInvitationSentType, BackupInvitationOpenedType, RansomwareAlertCreateReportType, RansomwareAlertCreateReportFailedType, ReplayFileSharedLinkCreatedType, ReplayFileSharedLinkModifiedType, ReplayProjectTeamAddType, ReplayProjectTeamDeleteType structs team_member_space_limits Namespace - Update member_space_limits/set_custom_quota(SetCustomQuotaArg, List DataType.ROUTE - Update member_space_limits/remove_custom_quota(CustomQuotaUsersArg, List DataType.ROUTE - Update member_space_limits/get_custom_quota(CustomQuotaUsersArg, List DataType.ROUTE - Update member_space_limits/get_custom_quota(CustomQuotaUsersArg, List DataType.ROUTE team_policies Namespace - Add SharedFolderBlanketLinkRestrictionPolicy unions Co-authored-by: Scott Erickson <serickson@dropbox.com>
1 parent 3d1080a commit c836440

10 files changed

+357
-16
lines changed

auth.stone

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ union TokenFromOAuth1Error
7878
app_id_mismatch
7979
"The authorized app does not match the app associated with the supplied access token."
8080

81-
route token/from_oauth1(TokenFromOAuth1Arg, TokenFromOAuth1Result, TokenFromOAuth1Error)
81+
route token/from_oauth1(TokenFromOAuth1Arg, TokenFromOAuth1Result, TokenFromOAuth1Error) deprecated
8282
"Creates an OAuth 2.0 access token from the supplied OAuth 1.0 access token."
8383
attrs
8484
auth = "app"

check_api_v2_types.stone

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace check
55
import common
66

77
struct EchoArg
8-
"EchoArg contains the arguments to be sent to the Dropbox servers."
8+
"Contains the arguments to be sent to the Dropbox servers."
99
query String(max_length=500) = ""
1010
"The string that you'd like to be echoed back to you."
1111

file_requests.stone

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ route list:2(ListFileRequestsArg, ListFileRequestsV2Result, ListFileRequestsErro
135135

136136
attrs
137137
allow_app_folder_app = true
138-
is_preview = true
139138
scope = "file_requests.read"
140139

141140
struct ListFileRequestsArg
@@ -172,7 +171,6 @@ route list/continue(ListFileRequestsContinueArg, ListFileRequestsV2Result, ListF
172171
:route:`list/continue`."
173172
attrs
174173
allow_app_folder_app = true
175-
is_preview = true
176174
scope = "file_requests.read"
177175

178176
struct ListFileRequestsContinueArg

file_tagging.stone

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace files
33
import common
44
import async
55

6-
alias TagText = String(min_length=1, max_length=32, pattern="[A-Za-z0-9\_]+")
6+
alias TagText = String(min_length=1, max_length=32, pattern="[\\w]+")
77

88
union Tag
99
"Tag that can be added in multiple ways."

files.stone

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,7 @@ union DeleteError
17831783
"There are too many files in one request. Please retry with fewer files."
17841784

17851785
struct DeleteBatchArg
1786-
entries List(DeleteArg)
1786+
entries List(DeleteArg, max_items=1000)
17871787

17881788
example default
17891789
entries = [delete]
@@ -1987,7 +1987,7 @@ struct RelocationResult extends FileOpsResult
19871987
metadata = default
19881988

19891989
struct RelocationBatchArgBase
1990-
entries List(RelocationPath, min_items=1)
1990+
entries List(RelocationPath, min_items=1, max_items=1000)
19911991
"List of entries to be moved or copied. Each entry is :type:`RelocationPath`."
19921992
autorename Boolean = false
19931993
"If there's a conflict with any file, have the Dropbox server try to
@@ -2864,7 +2864,7 @@ union SaveUrlError
28642864
route save_url(SaveUrlArg, SaveUrlResult, SaveUrlError)
28652865
"Save the data from a specified URL into a file in user's Dropbox.
28662866

2867-
Note that the transfer from the URL must complete within 5 minutes, or the
2867+
Note that the transfer from the URL must complete within 15 minutes, or the
28682868
operation will time out and the job will fail.
28692869

28702870
If the given path already exists, the file will be renamed to avoid the

sharing_folders.stone

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ union AccessLevel
2525
traverse
2626
"The collaborator can only view the shared folder that they have
2727
access to."
28+
no_access
29+
"If there is a Righteous Link on the folder which grants access
30+
and the user has visited such link, they are allowed to perform
31+
certain action (i.e. add themselves to the folder) via the link
32+
access even though the user themselves are not a member on the
33+
shared folder yet."
2834

2935
struct FolderPolicy
3036
"A set of policies governing membership and privileges for a shared
@@ -349,6 +355,9 @@ struct SharedFolderMetadataBase
349355
"The ID of the parent shared folder. This field is present only if the
350356
folder is contained within another shared folder."
351357

358+
path_display String?
359+
"The full path of this shared folder. Absent for unmounted folders."
360+
352361
path_lower String?
353362
"The lower-cased full path of this shared folder. Absent for unmounted folders."
354363

@@ -425,6 +434,8 @@ union SharedFolderAccessError
425434
not_a_member
426435
"The user is not a member of the shared folder
427436
thus cannot access it."
437+
invalid_member
438+
"The user does not exist or their account is disabled."
428439
email_unverified
429440
"Never set."
430441
unmounted
@@ -666,9 +677,9 @@ struct ShareFolderArgBase
666677
member_policy MemberPolicy?
667678
"Who can be a member of this shared folder. Only applicable if the
668679
current user is on a team."
669-
path files.WritePath
670-
"The path to the folder to share. If it does not exist, then a new one
671-
is created."
680+
path files.WritePathOrId
681+
"The path or the file id to the folder to share. If it does not exist,
682+
then a new one is created."
672683
shared_link_policy SharedLinkPolicy?
673684
"The policy to apply to shared links created for content inside this
674685
shared folder. The current user must be on a team to set this policy to

team.stone

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ struct TeamGetInfoResult
159159
num_provisioned_users UInt32
160160
"The number of accounts that have been invited or are already active members of the team."
161161

162-
num_used_licenses UInt32
162+
num_used_licenses UInt32 = 0
163163
"The number of licenses used on the team."
164164

165165
policies team_policies.TeamMemberPolicies

0 commit comments

Comments
 (0)