@appsemble/types 0.29.11 → 0.30.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/action.d.ts +1 -1
- package/app.d.ts +0 -25
- package/index.d.ts +255 -122
- package/index.js +3 -3
- package/{user.d.ts → oauth2.d.ts} +0 -26
- package/oauth2.js +2 -0
- package/package.json +1 -1
- package/permissions.d.ts +385 -0
- package/permissions.js +411 -0
- package/resource.d.ts +14 -0
- package/roles.d.ts +48 -0
- package/roles.js +202 -0
- package/appMember.d.ts +0 -19
- package/appMember.js +0 -2
- package/team.d.ts +0 -20
- package/team.js +0 -2
- package/user.js +0 -2
package/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './action.js';
|
|
2
2
|
export * from './app.js';
|
|
3
|
-
export * from './appMember.js';
|
|
4
3
|
export * from './asset.js';
|
|
5
4
|
export * from './authentication.js';
|
|
6
5
|
export * from './author.js';
|
|
@@ -12,9 +11,10 @@ export * from './snapshot.js';
|
|
|
12
11
|
export * from './resource.js';
|
|
13
12
|
export * from './saml.js';
|
|
14
13
|
export * from './ssl.js';
|
|
15
|
-
export * from './team.js';
|
|
16
14
|
export * from './template.js';
|
|
17
15
|
export * from './theme.js';
|
|
18
|
-
export * from './
|
|
16
|
+
export * from './oauth2.js';
|
|
19
17
|
export * from './quota.js';
|
|
18
|
+
export * from './permissions.js';
|
|
19
|
+
export * from './roles.js';
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A user email registration.
|
|
3
|
-
*/
|
|
4
|
-
export interface UserEmail {
|
|
5
|
-
/**
|
|
6
|
-
* The registered email address
|
|
7
|
-
*/
|
|
8
|
-
email: string;
|
|
9
|
-
/**
|
|
10
|
-
* Wether or not the email address has been verified.
|
|
11
|
-
*/
|
|
12
|
-
verified: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Whether or not this is the user’s primary email address.
|
|
15
|
-
*/
|
|
16
|
-
primary?: boolean;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* A user as they are represented by the API.
|
|
20
|
-
*/
|
|
21
|
-
export interface User {
|
|
22
|
-
/**
|
|
23
|
-
* A list of email addresses that belong to the user.
|
|
24
|
-
*/
|
|
25
|
-
emails: UserEmail[];
|
|
26
|
-
}
|
|
27
1
|
/**
|
|
28
2
|
* OAuth2 client credentials as they are returned by the API.
|
|
29
3
|
*/
|
package/oauth2.js
ADDED
package/package.json
CHANGED
package/permissions.d.ts
ADDED
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A permission an app member may have within an app because of their given role.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum AppPermission {
|
|
5
|
+
/**
|
|
6
|
+
* The permission to create app invites.
|
|
7
|
+
*/
|
|
8
|
+
CreateAppInvites = "$member:invite",
|
|
9
|
+
/**
|
|
10
|
+
* The permission to query app members.
|
|
11
|
+
*/
|
|
12
|
+
QueryAppMembers = "$member:query",
|
|
13
|
+
/**
|
|
14
|
+
* The permission to query app members.
|
|
15
|
+
*/
|
|
16
|
+
DeleteAppMembers = "$member:delete",
|
|
17
|
+
/**
|
|
18
|
+
* The permission to update the role of app members.
|
|
19
|
+
*/
|
|
20
|
+
UpdateAppMemberRoles = "$member:role:update",
|
|
21
|
+
/**
|
|
22
|
+
* The permission to patch the properties of app members.
|
|
23
|
+
*/
|
|
24
|
+
PatchAppMemberProperties = "$member:properties:patch",
|
|
25
|
+
/**
|
|
26
|
+
* The permission to query app groups.
|
|
27
|
+
*/
|
|
28
|
+
QueryGroups = "$group:query",
|
|
29
|
+
/**
|
|
30
|
+
* The permission to create app groups.
|
|
31
|
+
*/
|
|
32
|
+
CreateGroups = "$group:create",
|
|
33
|
+
/**
|
|
34
|
+
* The permission to update app groups.
|
|
35
|
+
*/
|
|
36
|
+
UpdateGroups = "$group:update",
|
|
37
|
+
/**
|
|
38
|
+
* The permission to create app groups.
|
|
39
|
+
*/
|
|
40
|
+
DeleteGroups = "$group:delete",
|
|
41
|
+
/**
|
|
42
|
+
* The permission to create group invites.
|
|
43
|
+
*/
|
|
44
|
+
CreateGroupInvites = "$group:member:invite",
|
|
45
|
+
/**
|
|
46
|
+
* The permission to query app members.
|
|
47
|
+
*/
|
|
48
|
+
QueryGroupMembers = "$group:member:query",
|
|
49
|
+
/**
|
|
50
|
+
* The permission to delete group members.
|
|
51
|
+
*/
|
|
52
|
+
RemoveGroupMembers = "$group:member:delete",
|
|
53
|
+
/**
|
|
54
|
+
* The permission to change the role of members in a group.
|
|
55
|
+
*/
|
|
56
|
+
UpdateGroupMemberRoles = "$group:member:role:update",
|
|
57
|
+
/**
|
|
58
|
+
* The permission to create any app resources.
|
|
59
|
+
*/
|
|
60
|
+
CreateResources = "$resource:all:create",
|
|
61
|
+
/**
|
|
62
|
+
* The permission to query app resources.
|
|
63
|
+
*/
|
|
64
|
+
QueryResources = "$resource:all:query",
|
|
65
|
+
/**
|
|
66
|
+
* The permission to get app resources.
|
|
67
|
+
*/
|
|
68
|
+
GetResources = "$resource:all:get",
|
|
69
|
+
/**
|
|
70
|
+
* The permission to update app resources.
|
|
71
|
+
*/
|
|
72
|
+
UpdateResources = "$resource:all:update",
|
|
73
|
+
/**
|
|
74
|
+
* The permission to patch app resources.
|
|
75
|
+
*/
|
|
76
|
+
PatchResources = "$resource:all:patch",
|
|
77
|
+
/**
|
|
78
|
+
* The permission to delete app resources.
|
|
79
|
+
*/
|
|
80
|
+
DeleteResources = "$resource:all:delete",
|
|
81
|
+
/**
|
|
82
|
+
* The permission to query own app resources.
|
|
83
|
+
*/
|
|
84
|
+
QueryOwnResources = "$resource:all:own:query",
|
|
85
|
+
/**
|
|
86
|
+
* The permission to get own app resources.
|
|
87
|
+
*/
|
|
88
|
+
GetOwnResources = "$resource:all:own:get",
|
|
89
|
+
/**
|
|
90
|
+
* The permission to update own app resources.
|
|
91
|
+
*/
|
|
92
|
+
UpdateOwnResources = "$resource:all:own:update",
|
|
93
|
+
/**
|
|
94
|
+
* The permission to patch own app resources.
|
|
95
|
+
*/
|
|
96
|
+
PatchOwnResources = "$resource:all:own:patch",
|
|
97
|
+
/**
|
|
98
|
+
* The permission to delete own app resources.
|
|
99
|
+
*/
|
|
100
|
+
DeleteOwnResources = "$resource:all:own:delete"
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* A permission a user may have within the platform because of their given role.
|
|
104
|
+
*/
|
|
105
|
+
export declare enum OrganizationPermission {
|
|
106
|
+
/**
|
|
107
|
+
* The permission to publish blocks for an organization.
|
|
108
|
+
*/
|
|
109
|
+
PublishBlocks = 0,
|
|
110
|
+
/**
|
|
111
|
+
* The permission to delete blocks for an organization.
|
|
112
|
+
*/
|
|
113
|
+
DeleteBlocks = 1,
|
|
114
|
+
/**
|
|
115
|
+
* The permission to create apps in an organization
|
|
116
|
+
*/
|
|
117
|
+
CreateApps = 2,
|
|
118
|
+
/**
|
|
119
|
+
* The permission to view private apps of an organization.
|
|
120
|
+
*/
|
|
121
|
+
QueryApps = 3,
|
|
122
|
+
/**
|
|
123
|
+
* The permission to update apps in an organization.
|
|
124
|
+
*/
|
|
125
|
+
UpdateApps = 4,
|
|
126
|
+
/**
|
|
127
|
+
* The permission to delete apps in an organization.
|
|
128
|
+
*/
|
|
129
|
+
DeleteApps = 5,
|
|
130
|
+
/**
|
|
131
|
+
* The permission to query app translations.
|
|
132
|
+
*/
|
|
133
|
+
QueryAppMessages = 6,
|
|
134
|
+
/**
|
|
135
|
+
* The permission to create app translations.
|
|
136
|
+
*/
|
|
137
|
+
CreateAppMessages = 7,
|
|
138
|
+
/**
|
|
139
|
+
* The permission to update app translations.
|
|
140
|
+
*/
|
|
141
|
+
UpdateAppMessages = 8,
|
|
142
|
+
/**
|
|
143
|
+
* The permission to delete app translations.
|
|
144
|
+
*/
|
|
145
|
+
DeleteAppMessages = 9,
|
|
146
|
+
/**
|
|
147
|
+
* The permission to read app settings.
|
|
148
|
+
*/
|
|
149
|
+
ReadAppSettings = 10,
|
|
150
|
+
/**
|
|
151
|
+
* The permission to update app settings.
|
|
152
|
+
*/
|
|
153
|
+
UpdateAppSettings = 11,
|
|
154
|
+
/**
|
|
155
|
+
* The permission to create app screenshots.
|
|
156
|
+
*/
|
|
157
|
+
CreateAppScreenshots = 12,
|
|
158
|
+
/**
|
|
159
|
+
* The permission to delete app screenshots.
|
|
160
|
+
*/
|
|
161
|
+
DeleteAppScreenshots = 13,
|
|
162
|
+
/**
|
|
163
|
+
* The permission to create app readmes.
|
|
164
|
+
*/
|
|
165
|
+
CreateAppReadmes = 14,
|
|
166
|
+
/**
|
|
167
|
+
* The permission to delete app readmes.
|
|
168
|
+
*/
|
|
169
|
+
DeleteAppReadmes = 15,
|
|
170
|
+
/**
|
|
171
|
+
* The permission to create app secrets.
|
|
172
|
+
*/
|
|
173
|
+
CreateAppSecrets = 16,
|
|
174
|
+
/**
|
|
175
|
+
* The permission to query app secrets.
|
|
176
|
+
*/
|
|
177
|
+
QueryAppSecrets = 17,
|
|
178
|
+
/**
|
|
179
|
+
* The permission to update app secrets.
|
|
180
|
+
*/
|
|
181
|
+
UpdateAppSecrets = 18,
|
|
182
|
+
/**
|
|
183
|
+
* The permission to delete app secrets.
|
|
184
|
+
*/
|
|
185
|
+
DeleteAppSecrets = 19,
|
|
186
|
+
/**
|
|
187
|
+
* The permission to query app variables.
|
|
188
|
+
*/
|
|
189
|
+
QueryAppVariables = 20,
|
|
190
|
+
/**
|
|
191
|
+
* The permission to create app variables.
|
|
192
|
+
*/
|
|
193
|
+
CreateAppVariables = 21,
|
|
194
|
+
/**
|
|
195
|
+
* The permission to update app variables.
|
|
196
|
+
*/
|
|
197
|
+
UpdateAppVariables = 22,
|
|
198
|
+
/**
|
|
199
|
+
* The permission to delete app variables.
|
|
200
|
+
*/
|
|
201
|
+
DeleteAppVariables = 23,
|
|
202
|
+
/**
|
|
203
|
+
* The permission to create app resources.
|
|
204
|
+
*/
|
|
205
|
+
CreateAppResources = 24,
|
|
206
|
+
/**
|
|
207
|
+
* The permission to query app resources.
|
|
208
|
+
*/
|
|
209
|
+
QueryAppResources = 25,
|
|
210
|
+
/**
|
|
211
|
+
* The permission to get app resources.
|
|
212
|
+
*/
|
|
213
|
+
GetAppResources = 26,
|
|
214
|
+
/**
|
|
215
|
+
* The permission to update app resources.
|
|
216
|
+
*/
|
|
217
|
+
UpdateAppResources = 27,
|
|
218
|
+
/**
|
|
219
|
+
* The permission to patch app resources.
|
|
220
|
+
*/
|
|
221
|
+
PatchAppResources = 28,
|
|
222
|
+
/**
|
|
223
|
+
* The permission to delete app resources.
|
|
224
|
+
*/
|
|
225
|
+
DeleteAppResources = 29,
|
|
226
|
+
/**
|
|
227
|
+
* The permission to create app assets.
|
|
228
|
+
*/
|
|
229
|
+
CreateAppAssets = 30,
|
|
230
|
+
/**
|
|
231
|
+
* The permission to query app assets.
|
|
232
|
+
*/
|
|
233
|
+
QueryAppAssets = 31,
|
|
234
|
+
/**
|
|
235
|
+
* The permission to update app assets.
|
|
236
|
+
*/
|
|
237
|
+
UpdateAppAssets = 32,
|
|
238
|
+
/**
|
|
239
|
+
* The permission to delete app assets.
|
|
240
|
+
*/
|
|
241
|
+
DeleteAppAssets = 33,
|
|
242
|
+
/**
|
|
243
|
+
* The permission to update organizations.
|
|
244
|
+
*/
|
|
245
|
+
UpdateOrganizations = 34,
|
|
246
|
+
/**
|
|
247
|
+
* The permission to delete organizations.
|
|
248
|
+
*/
|
|
249
|
+
DeleteOrganizations = 35,
|
|
250
|
+
/**
|
|
251
|
+
* The permission to create organization invites.
|
|
252
|
+
*/
|
|
253
|
+
CreateOrganizationInvites = 36,
|
|
254
|
+
/**
|
|
255
|
+
* The permission to query organization invites.
|
|
256
|
+
*/
|
|
257
|
+
QueryOrganizationInvites = 37,
|
|
258
|
+
/**
|
|
259
|
+
* The permission to update organization invites.
|
|
260
|
+
*/
|
|
261
|
+
UpdateOrganizationInvites = 38,
|
|
262
|
+
/**
|
|
263
|
+
* The permission to delete organization invites.
|
|
264
|
+
*/
|
|
265
|
+
DeleteOrganizationInvites = 39,
|
|
266
|
+
/**
|
|
267
|
+
* The permission to view the list of members in an organization.
|
|
268
|
+
*/
|
|
269
|
+
QueryOrganizationMembers = 40,
|
|
270
|
+
/**
|
|
271
|
+
* The permission to remove organization members.
|
|
272
|
+
*/
|
|
273
|
+
RemoveOrganizationMembers = 41,
|
|
274
|
+
/**
|
|
275
|
+
* The permission to change the roles of organization members.
|
|
276
|
+
*/
|
|
277
|
+
UpdateOrganizationMemberRoles = 42,
|
|
278
|
+
/**
|
|
279
|
+
* The permission to create app invites.
|
|
280
|
+
*/
|
|
281
|
+
CreateAppInvites = 43,
|
|
282
|
+
/**
|
|
283
|
+
* The permission to query app invites,
|
|
284
|
+
*/
|
|
285
|
+
QueryAppInvites = 44,
|
|
286
|
+
/**
|
|
287
|
+
* The permission to query app members.
|
|
288
|
+
*/
|
|
289
|
+
QueryAppMembers = 45,
|
|
290
|
+
/**
|
|
291
|
+
* The permission to delete app members.
|
|
292
|
+
*/
|
|
293
|
+
DeleteAppMembers = 46,
|
|
294
|
+
/**
|
|
295
|
+
* The permission to update the role of app members.
|
|
296
|
+
*/
|
|
297
|
+
UpdateAppMemberRoles = 47,
|
|
298
|
+
/**
|
|
299
|
+
* The permission to patch the properties of app members.
|
|
300
|
+
*/
|
|
301
|
+
PatchAppMemberProperties = 48,
|
|
302
|
+
/**
|
|
303
|
+
* The permission to query app groups.
|
|
304
|
+
*/
|
|
305
|
+
QueryGroups = 49,
|
|
306
|
+
/**
|
|
307
|
+
* The permission to create app groups.
|
|
308
|
+
*/
|
|
309
|
+
CreateGroups = 50,
|
|
310
|
+
/**
|
|
311
|
+
* The permission to update app groups.
|
|
312
|
+
*/
|
|
313
|
+
UpdateGroups = 51,
|
|
314
|
+
/**
|
|
315
|
+
* The permission to create app groups.
|
|
316
|
+
*/
|
|
317
|
+
DeleteGroups = 52,
|
|
318
|
+
/**
|
|
319
|
+
* The permission to create group invites.
|
|
320
|
+
*/
|
|
321
|
+
CreateGroupInvites = 53,
|
|
322
|
+
/**
|
|
323
|
+
* The permission to query group invites.
|
|
324
|
+
*/
|
|
325
|
+
QueryGroupInvites = 54,
|
|
326
|
+
/**
|
|
327
|
+
* The permission to query group members.
|
|
328
|
+
*/
|
|
329
|
+
QueryGroupMembers = 55,
|
|
330
|
+
/**
|
|
331
|
+
* The permission to remove group members.
|
|
332
|
+
*/
|
|
333
|
+
RemoveGroupMembers = 56,
|
|
334
|
+
/**
|
|
335
|
+
* The permission to update group member roles.
|
|
336
|
+
*/
|
|
337
|
+
UpdateGroupMemberRoles = 57,
|
|
338
|
+
/**
|
|
339
|
+
* The permission to query app snapshots.
|
|
340
|
+
*/
|
|
341
|
+
QueryAppSnapshots = 58,
|
|
342
|
+
/**
|
|
343
|
+
* The permission to create app collections.
|
|
344
|
+
*/
|
|
345
|
+
CreateAppCollections = 59,
|
|
346
|
+
/**
|
|
347
|
+
* The permission to delete app collections.
|
|
348
|
+
*/
|
|
349
|
+
DeleteAppCollections = 60,
|
|
350
|
+
/**
|
|
351
|
+
* The permission to update app collections.
|
|
352
|
+
*/
|
|
353
|
+
UpdateAppCollections = 61,
|
|
354
|
+
/**
|
|
355
|
+
* The permission to send manual push notifications for an app.
|
|
356
|
+
*/
|
|
357
|
+
PushAppNotifications = 62,
|
|
358
|
+
/**
|
|
359
|
+
* The permission to create trainings.
|
|
360
|
+
*/
|
|
361
|
+
CreateTrainings = 63,
|
|
362
|
+
/**
|
|
363
|
+
* The permission to update trainings.
|
|
364
|
+
*/
|
|
365
|
+
UpdateTrainings = 64,
|
|
366
|
+
/**
|
|
367
|
+
* The permission to delete trainings.
|
|
368
|
+
*/
|
|
369
|
+
DeleteTrainings = 65,
|
|
370
|
+
/**
|
|
371
|
+
* The permission to create training blocks.
|
|
372
|
+
*/
|
|
373
|
+
CreateTrainingBlocks = 66,
|
|
374
|
+
/**
|
|
375
|
+
* The permission to update training blocks.
|
|
376
|
+
*/
|
|
377
|
+
UpdateTrainingBlocks = 67,
|
|
378
|
+
/**
|
|
379
|
+
* The permission to delete training blocks.
|
|
380
|
+
*/
|
|
381
|
+
DeleteTrainingBlocks = 68
|
|
382
|
+
}
|
|
383
|
+
export declare const appOrganizationPermissionMapping: {
|
|
384
|
+
[key in AppPermission]: OrganizationPermission;
|
|
385
|
+
};
|