Skip to content

Commit 32f570b

Browse files
author
Rajat Goel
authored
Merge pull request #99 from dropbox/update-spec
Update spec
2 parents f7dc1dd + 87475eb commit 32f570b

File tree

6 files changed

+531
-17
lines changed

6 files changed

+531
-17
lines changed

v6/dropbox/files/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ type Client interface {
164164
// https://content.dropboxapi.com/apitul/1/bNi2uIYF51cVBND --header
165165
// "Content-Type: application/octet-stream" --data-binary @local_file.txt A
166166
// successful temporary upload link consumption request returns the content
167-
// hash of the uploaded data in JSON format. Example succesful temporary
167+
// hash of the uploaded data in JSON format. Example successful temporary
168168
// upload link consumption response: {"content-hash":
169169
// "599d71033d700ac892a0e48fa61b125d2f5994"} An unsuccessful temporary
170170
// upload link consumption request returns any of the following status

v6/dropbox/sdk.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const (
4242
hostContent = "content"
4343
hostNotify = "notify"
4444
sdkVersion = "6.0.2"
45-
specVersion = "85f2eff"
45+
specVersion = "444efad"
4646
)
4747

4848
// Version returns the current SDK version and API Spec version

v6/dropbox/sharing/types.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ type AddFileMemberArgs struct {
7878
// File : File to which to add members.
7979
File string `json:"file"`
8080
// Members : Members to add. Note that even an email address is given, this
81-
// may result in a user being directy added to the membership if that email
81+
// may result in a user being directly added to the membership if that email
8282
// is the user's main account email.
8383
Members []*MemberSelector `json:"members"`
8484
// CustomMessage : Message to send to added members in their invitation.
@@ -3914,11 +3914,10 @@ const (
39143914

39153915
// SharedLinkSettings : has no documentation (yet)
39163916
type SharedLinkSettings struct {
3917-
// RequestedVisibility : The requested access for this shared link.
3918-
RequestedVisibility *RequestedVisibility `json:"requested_visibility,omitempty"`
3919-
// LinkPassword : If `requested_visibility` is
3920-
// `RequestedVisibility.password` this is needed to specify the password to
3921-
// access the link.
3917+
// RequirePassword : Boolean flag to enable or disable password protection.
3918+
RequirePassword bool `json:"require_password,omitempty"`
3919+
// LinkPassword : If `require_password` is true, this is needed to specify
3920+
// the password to access the link.
39223921
LinkPassword string `json:"link_password,omitempty"`
39233922
// Expires : Expiration time of the shared link. By default the link won't
39243923
// expire.
@@ -3932,6 +3931,9 @@ type SharedLinkSettings struct {
39323931
// Access : Requested access level you want the audience to gain from this
39333932
// link. Note, modifying access level for an existing link is not supported.
39343933
Access *RequestedLinkAccessLevel `json:"access,omitempty"`
3934+
// RequestedVisibility : Use `audience` instead. The requested access for
3935+
// this shared link.
3936+
RequestedVisibility *RequestedVisibility `json:"requested_visibility,omitempty"`
39353937
}
39363938

39373939
// NewSharedLinkSettings returns a new SharedLinkSettings instance

v6/dropbox/team/types.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func NewActiveWebSession(SessionId string, UserAgent string, Os string, Browser
8282
// AddSecondaryEmailResult : Result of trying to add a secondary email to a
8383
// user. 'success' is the only value indicating that a secondary email was
8484
// successfully added to a user. The other values explain the type of error that
85-
// occurred, and include the email for which the error occured.
85+
// occurred, and include the email for which the error occurred.
8686
type AddSecondaryEmailResult struct {
8787
dropbox.Tagged
8888
// Success : Describes a secondary email that was successfully added to a
@@ -464,7 +464,7 @@ const (
464464
// DeleteSecondaryEmailResult : Result of trying to delete a secondary email
465465
// address. 'success' is the only value indicating that a secondary email was
466466
// successfully deleted. The other values explain the type of error that
467-
// occurred, and include the email for which the error occured.
467+
// occurred, and include the email for which the error occurred.
468468
type DeleteSecondaryEmailResult struct {
469469
dropbox.Tagged
470470
// Success : The secondary email was successfully deleted.
@@ -1951,8 +1951,8 @@ type LegalHoldPolicy struct {
19511951
Description string `json:"description,omitempty"`
19521952
// ActivationTime : The time at which the legal hold was activated.
19531953
ActivationTime *time.Time `json:"activation_time,omitempty"`
1954-
// Members : Team members IDs and number of permanetly deleted members under
1955-
// hold.
1954+
// Members : Team members IDs and number of permanently deleted members
1955+
// under hold.
19561956
Members *MembersInfo `json:"members"`
19571957
// Status : The current state of the hold.
19581958
Status *LegalHoldStatus `json:"status"`
@@ -4440,7 +4440,7 @@ func NewRemovedStatus(IsRecoverable bool, IsDisconnected bool) *RemovedStatus {
44404440
// ResendSecondaryEmailResult : Result of trying to resend verification email to
44414441
// a secondary email address. 'success' is the only value indicating that a
44424442
// verification email was successfully sent. The other values explain the type
4443-
// of error that occurred, and include the email for which the error occured.
4443+
// of error that occurred, and include the email for which the error occurred.
44444444
type ResendSecondaryEmailResult struct {
44454445
dropbox.Tagged
44464446
// Success : A verification email was successfully sent to the secondary
@@ -5844,7 +5844,7 @@ func (u *UploadApiRateLimitValue) UnmarshalJSON(body []byte) error {
58445844
// UserAddResult : Result of trying to add secondary emails to a user. 'success'
58455845
// is the only value indicating that a user was successfully retrieved for
58465846
// adding secondary emails. The other values explain the type of error that
5847-
// occurred, and include the user for which the error occured.
5847+
// occurred, and include the user for which the error occurred.
58485848
type UserAddResult struct {
58495849
dropbox.Tagged
58505850
// Success : Describes a user and the results for each attempt to add a
@@ -5968,7 +5968,7 @@ func NewUserDeleteEmailsResult(User *UserSelectorArg, Results []*DeleteSecondary
59685968
// UserDeleteResult : Result of trying to delete a user's secondary emails.
59695969
// 'success' is the only value indicating that a user was successfully retrieved
59705970
// for deleting secondary emails. The other values explain the type of error
5971-
// that occurred, and include the user for which the error occured.
5971+
// that occurred, and include the user for which the error occurred.
59725972
type UserDeleteResult struct {
59735973
dropbox.Tagged
59745974
// Success : Describes a user and the results for each attempt to delete a
@@ -6036,7 +6036,7 @@ func NewUserResendEmailsResult(User *UserSelectorArg, Results []*ResendSecondary
60366036
// UserResendResult : Result of trying to resend verification emails to a user.
60376037
// 'success' is the only value indicating that a user was successfully retrieved
60386038
// for sending verification emails. The other values explain the type of error
6039-
// that occurred, and include the user for which the error occured.
6039+
// that occurred, and include the user for which the error occurred.
60406040
type UserResendResult struct {
60416041
dropbox.Tagged
60426042
// Success : Describes a user and the results for each attempt to resend

0 commit comments

Comments
 (0)