-
Notifications
You must be signed in to change notification settings - Fork 41
/
account.stone
49 lines (35 loc) · 1.23 KB
/
account.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
namespace account
import common
#
# Route set_profile_photo
#
union PhotoSourceArg
base64_data String
"Image data in base64-encoded bytes."
example default
base64_data = "SW1hZ2UgZGF0YSBpbiBiYXNlNjQtZW5jb2RlZCBieXRlcy4gTm90IGEgdmFsaWQgZXhhbXBsZS4="
struct SetProfilePhotoArg
photo PhotoSourceArg
"Image to set as the user's new profile photo."
example default
photo = default
struct SetProfilePhotoResult
profile_photo_url String
"URL for the photo representing the user, if one is set."
example default
profile_photo_url = "https://dl-web.dropbox.com/account_photo/get/dbaphid%3AAAHWGmIXV3sUuOmBfTz0wPsiqHUpBWvv3ZA?vers=1556069330102&size=128x128"
union SetProfilePhotoError
file_type_error
"File cannot be set as profile photo."
file_size_error
"File cannot exceed 10 MB."
dimension_error
"Image must be larger than 128 x 128."
thumbnail_error
"Image could not be thumbnailed."
transient_error
"Temporary infrastructure failure, please retry."
route set_profile_photo(SetProfilePhotoArg, SetProfilePhotoResult, SetProfilePhotoError)
"Sets a user's profile photo."
attrs
scope = "account_info.write"