Skip to content

Commit c36ba27

Browse files
update specs (dropbox#74)
Co-authored-by: Bruce Zhang <brucez@dropbox.com>
1 parent f91238c commit c36ba27

File tree

5 files changed

+57
-9
lines changed

5 files changed

+57
-9
lines changed

file_tagging.stone

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ struct AddTagArg
3434
"Path to the item to be tagged."
3535

3636
tag_text TagText
37-
"The value of the tag to add."
37+
"The value of the tag to add. Will be automatically converted to lowercase letters."
3838

3939
example default
4040
path = "/Prime_Numbers.txt"
41-
tag_text = "MyTag"
41+
tag_text = "my_tag"
4242

4343
union AddTagError extends BaseTagError
4444
too_many_tags
@@ -62,11 +62,11 @@ struct RemoveTagArg
6262
"Path to the item to tag."
6363

6464
tag_text TagText
65-
"The tag to remove."
65+
"The tag to remove. Will be automatically converted to lowercase letters."
6666

6767
example default
6868
path = "/Prime_Numbers.txt"
69-
tag_text = "MyTag"
69+
tag_text = "my_tag"
7070

7171
union RemoveTagError extends BaseTagError
7272
tag_not_present

openid_openid.stone

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# @generated by protoc-gen-stone. DO NOT EDIT.
2+
# source: configs/proto/dropbox/proto/openid/openid.proto
3+
namespace openid
4+
5+
route userinfo (UserInfoArgs, UserInfoResult, UserInfoError)
6+
"This route is used for refreshing the info that is found in the id_token during the OIDC flow.
7+
This route doesn't require any arguments and will use the scopes approved for the given access token."
8+
9+
attrs
10+
allow_app_folder_app = true
11+
auth = "user"
12+
is_preview = true
13+
scope = "openid"
14+

openid_openid_types.stone

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,23 @@ struct UserInfoError
1414
union
1515
auth_error AuthError = invalid_token
1616
error_message String = ""
17+
"Brief explanation of the error."
1718

1819
struct UserInfoArgs
1920
"This struct is empty. The comment here is intentionally emitted to avoid indentation issues with Stone."
2021

2122
struct UserInfoResult
2223
family_name String?
24+
"Last name of user."
2325
given_name String?
26+
"First name of user."
2427
email String?
28+
"Email address of user."
2529
email_verified Boolean?
30+
"If user is email verified."
2631
iss String = ""
32+
"Issuer of token (in this case Dropbox)."
2733
sub String = ""
34+
"An identifier for the user. This is the Dropbox account_id, a string
35+
value such as dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc."
2836

sharing_files.stone

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ struct FileMemberActionResult
207207

208208
union_closed FileMemberActionIndividualResult
209209
success AccessLevel?
210-
"Member was successfully removed from this file. If AccessLevel is given,
210+
"Part of the response for both add_file_member and remove_file_member_v1 (deprecated).
211+
For add_file_member, indicates giving access was successful and at what AccessLevel.
212+
For remove_file_member_v1, indicates member was successfully removed from the file. If AccessLevel is given,
211213
the member still has access via a parent shared folder."
212214
member_error FileMemberActionError
213215
"User was not able to perform this action."

team_log_generated.stone

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,7 @@ struct TeamLogInfo
940940
union TeamMembershipType
941941
free
942942
full
943+
guest
943944

944945
union TeamMergeRequestAcceptedExtraDetails
945946
"Team merge request acceptance details"
@@ -5508,7 +5509,7 @@ struct AccountCaptureChangePolicyDetails
55085509
previous_value = disabled
55095510

55105511
struct AdminEmailRemindersChangedDetails
5511-
"Changed admin email reminder policy for team requests to join."
5512+
"Changed admin reminder settings for requests to join the team."
55125513

55135514
new_value AdminEmailRemindersPolicy
55145515
"To."
@@ -5777,6 +5778,18 @@ struct FileLockingPolicyChangedDetails
57775778
new_value = disabled
57785779
previous_value = disabled
57795780

5781+
struct FileProviderMigrationPolicyChangedDetails
5782+
"Changed File Provider Migration policy for team."
5783+
5784+
new_value team_policies.FileProviderMigrationPolicyState
5785+
"To."
5786+
previous_value team_policies.FileProviderMigrationPolicyState
5787+
"From."
5788+
5789+
example default
5790+
new_value = default
5791+
previous_value = default
5792+
57805793
struct FileRequestsChangePolicyDetails
57815794
"Enabled/disabled file requests."
57825795

@@ -7158,6 +7171,7 @@ union EventDetails
71587171
external_drive_backup_policy_changed_details ExternalDriveBackupPolicyChangedDetails
71597172
file_comments_change_policy_details FileCommentsChangePolicyDetails
71607173
file_locking_policy_changed_details FileLockingPolicyChangedDetails
7174+
file_provider_migration_policy_changed_details FileProviderMigrationPolicyChangedDetails
71617175
file_requests_change_policy_details FileRequestsChangePolicyDetails
71627176
file_requests_emails_enabled_details FileRequestsEmailsEnabledDetails
71637177
file_requests_emails_restricted_to_team_only_details FileRequestsEmailsRestrictedToTeamOnlyDetails
@@ -9392,7 +9406,7 @@ struct AdminEmailRemindersChangedType
93929406
description String
93939407

93949408
example default
9395-
description = "(team_policies) Changed admin email reminder policy for team requests to join"
9409+
description = "(team_policies) Changed admin reminder settings for requests to join the team"
93969410

93979411
struct AllowDownloadDisabledType
93989412
description String
@@ -9556,6 +9570,12 @@ struct FileLockingPolicyChangedType
95569570
example default
95579571
description = "(team_policies) Changed file locking policy for team"
95589572

9573+
struct FileProviderMigrationPolicyChangedType
9574+
description String
9575+
9576+
example default
9577+
description = "(team_policies) Changed File Provider Migration policy for team"
9578+
95599579
struct FileRequestsChangePolicyType
95609580
description String
95619581

@@ -10873,7 +10893,7 @@ union EventType
1087310893
account_capture_change_policy AccountCaptureChangePolicyType
1087410894
"(team_policies) Changed account capture setting on team domain"
1087510895
admin_email_reminders_changed AdminEmailRemindersChangedType
10876-
"(team_policies) Changed admin email reminder policy for team requests to join"
10896+
"(team_policies) Changed admin reminder settings for requests to join the team"
1087710897
allow_download_disabled AllowDownloadDisabledType
1087810898
"(team_policies) Disabled downloads (deprecated, no longer logged)"
1087910899
allow_download_enabled AllowDownloadEnabledType
@@ -10928,6 +10948,8 @@ union EventType
1092810948
"(team_policies) Enabled/disabled commenting on team files"
1092910949
file_locking_policy_changed FileLockingPolicyChangedType
1093010950
"(team_policies) Changed file locking policy for team"
10951+
file_provider_migration_policy_changed FileProviderMigrationPolicyChangedType
10952+
"(team_policies) Changed File Provider Migration policy for team"
1093110953
file_requests_change_policy FileRequestsChangePolicyType
1093210954
"(team_policies) Enabled/disabled file requests"
1093310955
file_requests_emails_enabled FileRequestsEmailsEnabledType
@@ -11845,7 +11867,7 @@ union EventTypeArg
1184511867
account_capture_change_policy
1184611868
"(team_policies) Changed account capture setting on team domain"
1184711869
admin_email_reminders_changed
11848-
"(team_policies) Changed admin email reminder policy for team requests to join"
11870+
"(team_policies) Changed admin reminder settings for requests to join the team"
1184911871
allow_download_disabled
1185011872
"(team_policies) Disabled downloads (deprecated, no longer logged)"
1185111873
allow_download_enabled
@@ -11900,6 +11922,8 @@ union EventTypeArg
1190011922
"(team_policies) Enabled/disabled commenting on team files"
1190111923
file_locking_policy_changed
1190211924
"(team_policies) Changed file locking policy for team"
11925+
file_provider_migration_policy_changed
11926+
"(team_policies) Changed File Provider Migration policy for team"
1190311927
file_requests_change_policy
1190411928
"(team_policies) Enabled/disabled file requests"
1190511929
file_requests_emails_enabled

0 commit comments

Comments
 (0)