-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathshared_content_links.stone
150 lines (127 loc) · 5.42 KB
/
shared_content_links.stone
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
namespace sharing
import common
union LinkExpiry
remove_expiry
"Remove the currently set expiry for the link."
set_expiry common.DropboxTimestamp
"Set a new expiry or change an existing expiry."
union LinkPassword
remove_password
"Remove the currently set password for the link."
set_password String
"Set a new password or change an existing password."
struct LinkSettings
"Settings that apply to a link."
access_level AccessLevel?
"The access level on the link for this file. Currently,
it only accepts 'viewer' and 'viewer_no_comment'."
audience LinkAudience?
"The type of audience on the link for this file."
expiry LinkExpiry?
"An expiry timestamp to set on a link."
password LinkPassword?
"The password for the link."
union LinkAudience
public
"Link is accessible by anyone."
team
"Link is accessible only by team members."
no_one
"The link can be used by no one. The link merely points the user to the content, and does
not grant additional rights to the user. Members of the content who use this link can only
access the content with their pre-existing access rights."
password
"Use `require_password` instead. A link-specific password is required to access the
link. Login is not required."
members
"Link is accessible only by members of the content."
struct LinkPermission
"Permissions for actions that can be performed on a link."
action LinkAction
allow Boolean
reason PermissionDeniedReason?
example default
action = change_audience
allow = true
union LinkAction
"Actions that can be performed on a link."
change_access_level
"Change the access level of the link."
change_audience
"Change the audience of the link."
remove_expiry
"Remove the expiry date of the link."
remove_password
"Remove the password of the link."
set_expiry
"Create or modify the expiry date of the link."
set_password
"Create or modify the password of the link."
struct SharedContentLinkMetadataBase
access_level AccessLevel?
"The access level on the link for this file."
audience_options List(LinkAudience)
"The audience options that are available for the content. Some audience options may be
unavailable. For example, team_only may be unavailable if the content is not owned by a
user on a team. The 'default' audience option is always available if the user can modify
link settings."
audience_restricting_shared_folder AudienceRestrictingSharedFolder?
"The shared folder that prevents the link audience for this link from being more
restrictive."
current_audience LinkAudience
"The current audience of the link."
expiry common.DropboxTimestamp?
"Whether the link has an expiry set on it. A link with an expiry will have its
audience changed to members when the expiry is reached."
link_permissions List(LinkPermission)
"A list of permissions for actions you can perform on the link."
password_protected Boolean
"Whether the link is protected by a password."
struct SharedContentLinkMetadata extends SharedContentLinkMetadataBase
"Metadata of a shared link for a file or folder."
audience_exceptions AudienceExceptions?
"The content inside this folder with link audience different than this folder's. This is
only returned when an endpoint that returns metadata for a single shared folder is called,
e.g. /get_folder_metadata."
url String
"The URL of the link."
example default
audience_options = [public, team, members]
current_audience = public
link_permissions = [default]
password_protected = false
url = ""
struct ExpectedSharedContentLinkMetadata extends SharedContentLinkMetadataBase
"The expected metadata of a shared link for a file or folder when a link is first created for
the content. Absent if the link already exists."
example default
audience_options = [public, team, members]
current_audience = public
link_permissions = [default]
password_protected = false
struct AudienceRestrictingSharedFolder
"Information about the shared folder that prevents the link audience for this link from being
more restrictive."
shared_folder_id common.SharedFolderId
"The ID of the shared folder."
name String
"The name of the shared folder."
audience LinkAudience
"The link audience of the shared folder."
struct AudienceExceptions
"The total count and truncated list of information of content inside this folder that has a
different audience than the link on this folder. This is only returned for folders."
count UInt32
exceptions List(AudienceExceptionContentInfo)
"A truncated list of some of the content that is an exception. The length of this list could
be smaller than the count since it is only a sample but will not be empty as long as
count is not 0."
example default
count = 0
exceptions = []
struct AudienceExceptionContentInfo
"Information about the content that has a link audience different than that of this folder."
name String
"The name of the content, which is either a file or a folder."
example default
name = "sample file name"