-
Notifications
You must be signed in to change notification settings - Fork 41
/
team_linked_apps.stone
254 lines (192 loc) · 7.87 KB
/
team_linked_apps.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
namespace team
import common
#
# Structures for linked_apps/list_member_linked_apps
#
struct ListMemberAppsArg
team_member_id String
"The team member id."
example default
team_member_id = "dbmid:AAFdgehTzw7WlXhZJsbGCLePe8RvQGYDr-I"
struct ApiApp
"Information on linked third party applications."
app_id String
"The application unique id."
app_name String
"The application name."
publisher String?
"The application publisher name."
publisher_url String?
"The publisher's URL."
linked common.DropboxTimestamp?
"The time this application was linked."
is_app_folder Boolean
"Whether the linked application uses a dedicated folder."
example default
app_id = "dbaid:AAFdgehTzw7WlXhZJsbGCLePe8RvQGYDr-I"
app_name = "Notes"
publisher = "Notes company"
publisher_url = "http://company.com"
linked = "2015-05-12T15:50:38Z"
is_app_folder = true
struct ListMemberAppsResult
linked_api_apps List(ApiApp)
"List of third party applications linked by this team member."
example default
linked_api_apps = [default]
union ListMemberAppsError
"Error returned by :route:`linked_apps/list_member_linked_apps`."
member_not_found
"Member not found."
#
# Route: linked_apps/list_member_linked_apps
#
route linked_apps/list_member_linked_apps(ListMemberAppsArg, ListMemberAppsResult, ListMemberAppsError)
"List all linked applications of the team member.
Note, this endpoint does not list any team-linked applications."
attrs
auth = "team"
scope = "sessions.list"
#
# Structs for linked_apps/list_members_linked_apps
#
struct ListMembersAppsArg
"Arguments for :route:`linked_apps/list_members_linked_apps`."
cursor String?
"At the first call to the :route:`linked_apps/list_members_linked_apps` the cursor shouldn't be
passed. Then, if the result of the call includes a cursor, the following requests should
include the received cursors in order to receive the next sub list of the team applications."
example default
cursor = "AADAQO8ZWKvBkSMXb1J9dAYVvwZ0wcvfyzIBo2e1H-_N-67pfrYKTb4oN_3LG9_ilWjblZXuiR8ubjjiQQkHq-MvDjbe_6bkcJgjnTpowrRaQA"
struct MemberLinkedApps
"Information on linked applications of a team member."
team_member_id String
"The member unique Id."
linked_api_apps List(ApiApp)
"List of third party applications linked by this team member."
example default
team_member_id = "dbmid:AAFdgehTzw7WlXhZJsbGCLePe8RvQGYDr-I"
linked_api_apps = [default]
struct ListMembersAppsResult
"Information returned by :route:`linked_apps/list_members_linked_apps`."
apps List(MemberLinkedApps)
"The linked applications of each member of the team."
has_more Boolean
"If true, then there are more apps available. Pass the
cursor to :route:`linked_apps/list_members_linked_apps` to retrieve the rest."
cursor String?
"Pass the cursor into :route:`linked_apps/list_members_linked_apps` to receive the next
sub list of team's applications."
example default
apps = [default]
has_more = true
cursor = "AADAQO8ZWKvBkSMXb1J9dAYVvwZ0wcvfyzIBo2e1H-_N-67pfrYKTb4oN_3LG9_ilWjblZXuiR8ubjjiQQkHq-MvDjbe_6bkcJgjnTpowrRaQA"
union ListMembersAppsError
"Error returned by :route:`linked_apps/list_members_linked_apps`."
reset
"Indicates that the cursor has been invalidated. Call
:route:`linked_apps/list_members_linked_apps` again with an empty cursor to obtain a new cursor."
#
# Route: linked_apps/list_members_linked_apps
#
route linked_apps/list_members_linked_apps(ListMembersAppsArg, ListMembersAppsResult, ListMembersAppsError)
"List all applications linked to the team members' accounts.
Note, this endpoint does not list any team-linked applications."
attrs
auth = "team"
scope = "sessions.list"
#
# Structs for linked_apps/revoke_linked_app
#
struct RevokeLinkedApiAppArg
app_id String
"The application's unique id."
team_member_id String
"The unique id of the member owning the device."
keep_app_folder Boolean = true
"This flag is not longer supported, the application dedicated folder (in case the application uses
one) will be kept."
example default
app_id = "dbaid:AAFdgehTzw7WlXhZJsbGCLePe8RvQGYDr-I"
team_member_id = "dbmid:AAFdgehTzw7WlXhZJsbGCLePe8RvQGYDr-I"
union RevokeLinkedAppError
"Error returned by :route:`linked_apps/revoke_linked_app`."
app_not_found
"Application not found."
member_not_found
"Member not found."
app_folder_removal_not_supported
"App folder removal is not supported."
#
# Route: linked_apps/revoke_linked_app
#
route linked_apps/revoke_linked_app(RevokeLinkedApiAppArg, Void, RevokeLinkedAppError)
"Revoke a linked application of the team member."
attrs
auth = "team"
scope = "sessions.modify"
#
# structs for linked_apps/revoke_linked_app_batch
#
struct RevokeLinkedApiAppBatchArg
revoke_linked_app List(RevokeLinkedApiAppArg)
example default
revoke_linked_app = [default]
struct RevokeLinkedAppStatus
success Boolean
"Result of the revoking request."
error_type RevokeLinkedAppError?
"The error cause in case of a failure."
example default
success = false
error_type = app_not_found
struct RevokeLinkedAppBatchResult
revoke_linked_app_status List(RevokeLinkedAppStatus)
example default
revoke_linked_app_status = [default]
union RevokeLinkedAppBatchError
"Error returned by :route:`linked_apps/revoke_linked_app_batch`."
#
# Route: linked_apps/revoke_linked_app_batch
#
route linked_apps/revoke_linked_app_batch(RevokeLinkedApiAppBatchArg, RevokeLinkedAppBatchResult, RevokeLinkedAppBatchError)
"Revoke a list of linked applications of the team members."
attrs
auth = "team"
scope = "sessions.modify"
#
# Deprecated endpoints
#
struct ListTeamAppsArg
"Arguments for :route:`linked_apps/list_team_linked_apps`."
cursor String?
"At the first call to the :route:`linked_apps/list_team_linked_apps` the cursor shouldn't be
passed. Then, if the result of the call includes a cursor, the following requests should
include the received cursors in order to receive the next sub list of the team applications."
example default
cursor = "AADAQO8ZWKvBkSMXb1J9dAYVvwZ0wcvfyzIBo2e1H-_N-67pfrYKTb4oN_3LG9_ilWjblZXuiR8ubjjiQQkHq-MvDjbe_6bkcJgjnTpowrRaQA"
struct ListTeamAppsResult
"Information returned by :route:`linked_apps/list_team_linked_apps`."
apps List(MemberLinkedApps)
"The linked applications of each member of the team."
has_more Boolean
"If true, then there are more apps available. Pass the
cursor to :route:`linked_apps/list_team_linked_apps` to retrieve the rest."
cursor String?
"Pass the cursor into :route:`linked_apps/list_team_linked_apps` to receive the next
sub list of team's applications."
example default
apps = [default]
has_more = true
cursor = "AADAQO8ZWKvBkSMXb1J9dAYVvwZ0wcvfyzIBo2e1H-_N-67pfrYKTb4oN_3LG9_ilWjblZXuiR8ubjjiQQkHq-MvDjbe_6bkcJgjnTpowrRaQA"
union ListTeamAppsError
"Error returned by :route:`linked_apps/list_team_linked_apps`."
reset
"Indicates that the cursor has been invalidated. Call
:route:`linked_apps/list_team_linked_apps` again with an empty cursor to obtain a new cursor."
route linked_apps/list_team_linked_apps(ListTeamAppsArg, ListTeamAppsResult, ListTeamAppsError) deprecated by linked_apps/list_members_linked_apps
"List all applications linked to the team members' accounts.
Note, this endpoint doesn't list any team-linked applications."
attrs
auth = "team"
scope = "sessions.list"