-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathcommon.stone
More file actions
88 lines (65 loc) · 2.97 KB
/
Copy pathcommon.stone
File metadata and controls
88 lines (65 loc) · 2.97 KB
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
namespace common
alias EmailAddress = String(max_length=255, pattern="^['#&A-Za-z0-9._%+-]+@[A-Za-z0-9-][A-Za-z0-9.-]*\\.[A-Za-z]{2,15}$")
alias NamePart = String(max_length=50, min_length=1, pattern="[^\/:?*<>\"|]*")
alias OptionalNamePart = String(max_length=50, pattern="[^\/:?*<>\"|]*")
alias DisplayName = String(pattern="[^\/:?*<>\"|]*")
alias DisplayNameLegacy = String
alias NamespaceId = String(pattern="[-_0-9a-zA-Z:]+")
alias SharedFolderId = NamespaceId
alias SessionId = String
alias LanguageCode = String(min_length=2)
union PathRoot
home
"Paths are relative to the authenticating user's home namespace,
whether or not that user belongs to a team."
root NamespaceId
"Paths are relative to the authenticating user's root namespace
(This results in :field:`PathRootError.invalid_root` if the
user's root namespace has changed.)."
namespace_id NamespaceId
"Paths are relative to given namespace id (This results in
:field:`PathRootError.no_permission` if you don't have access
to this namespace.)."
struct RootInfo
"Information about current user's root."
union
team TeamRootInfo
user UserRootInfo
root_namespace_id NamespaceId
"The namespace ID for user's root namespace. It will be the namespace ID
of the shared team root if the user is member of a team with a separate team root,
or the user root if user is member of a team with separate distinct roots for users.
Otherwise it will be the same as :field:`RootInfo.home_namespace_id`."
home_namespace_id NamespaceId
"The namespace ID for user's home namespace."
example default
user = default
struct DropboxDuration
seconds Int64
nanos Int32
struct TeamRootInfo extends RootInfo
"Root info when user is member of a team with a separate root namespace ID."
home_path String
"The path for user's home directory under the shared team root."
struct UserRootInfo extends RootInfo
"Root info when user is not member of a team or
the user is a member of a team and the team does not have a separate root namespace."
home_path String?
"The path for user's home directory under the distinct user root."
example default
home_namespace_id = "3235641"
root_namespace_id = "3235641"
union PathRootError
invalid_root RootInfo
"The root namespace id in Dropbox-API-Path-Root header is not valid. The value
of this error is the user's latest root info."
no_permission
"You don't have permission to access the namespace id in Dropbox-API-Path-Root
header."
# Annotates fields to serialize a subset of total fields, depending on caller type
# Annotates fields to redact information before storing in logs
# Annotates fields for documentation changes
annotation Deprecated = Deprecated()
annotation Preview = Preview()
alias DropboxTimestamp = Timestamp("%Y-%m-%dT%H:%M:%SZ")
alias Date = Timestamp("%Y-%m-%d")