@veltdev/sdk 4.5.2-beta.12 → 4.5.2-beta.14
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.
|
@@ -9,7 +9,6 @@ export interface GetUserPermissionsRequest {
|
|
|
9
9
|
organizationId?: string;
|
|
10
10
|
folderIds?: string[];
|
|
11
11
|
documentIds?: string[];
|
|
12
|
-
userIds?: string[];
|
|
13
12
|
}
|
|
14
13
|
export interface GetUserPermissionsResponse {
|
|
15
14
|
[userId: string]: {
|
|
@@ -18,6 +17,7 @@ export interface GetUserPermissionsResponse {
|
|
|
18
17
|
accessRole?: UserPermissionAccessRole;
|
|
19
18
|
expiresAt?: number;
|
|
20
19
|
error?: string;
|
|
20
|
+
errorCode?: UserPermissionAccessRoleResult;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
organization?: {
|
|
@@ -25,6 +25,7 @@ export interface GetUserPermissionsResponse {
|
|
|
25
25
|
accessRole?: UserPermissionAccessRole;
|
|
26
26
|
expiresAt?: number;
|
|
27
27
|
error?: string;
|
|
28
|
+
errorCode?: UserPermissionAccessRoleResult;
|
|
28
29
|
};
|
|
29
30
|
};
|
|
30
31
|
documents?: {
|
|
@@ -32,6 +33,7 @@ export interface GetUserPermissionsResponse {
|
|
|
32
33
|
accessRole?: UserPermissionAccessRole;
|
|
33
34
|
expiresAt?: number;
|
|
34
35
|
error?: string;
|
|
36
|
+
errorCode?: UserPermissionAccessRoleResult;
|
|
35
37
|
};
|
|
36
38
|
};
|
|
37
39
|
};
|
|
@@ -40,3 +42,8 @@ export declare enum UserPermissionAccessRole {
|
|
|
40
42
|
EDITOR = "editor",
|
|
41
43
|
VIEWER = "viewer"
|
|
42
44
|
}
|
|
45
|
+
export declare enum UserPermissionAccessRoleResult {
|
|
46
|
+
DOES_NOT_EXIST = "does_not_exist",
|
|
47
|
+
PERMISSION_DENIED = "permission_denied",
|
|
48
|
+
SOMETHING_WENT_WRONG = "something_went_wrong"
|
|
49
|
+
}
|
|
@@ -124,6 +124,36 @@ export declare class RecorderElement {
|
|
|
124
124
|
*/
|
|
125
125
|
askDevicePermission: (options: RecorderDevicePermissionOptions) => void;
|
|
126
126
|
|
|
127
|
+
/**
|
|
128
|
+
* To set max length
|
|
129
|
+
*/
|
|
130
|
+
setMaxLength: (seconds: number) => void;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* To open picture in picture
|
|
134
|
+
*/
|
|
135
|
+
openPictureInPicture: () => Promise<void>;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* To exit picture in picture
|
|
139
|
+
*/
|
|
140
|
+
exitPictureInPicture: () => Promise<void>;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* To request screen permission
|
|
144
|
+
*/
|
|
145
|
+
requestScreenPermission: () => Promise<MediaStream | null>;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* To enable picture in picture
|
|
149
|
+
*/
|
|
150
|
+
enablePictureInPicture: () => void;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* To disable picture in picture
|
|
154
|
+
*/
|
|
155
|
+
disablePictureInPicture: () => void;
|
|
156
|
+
|
|
127
157
|
constructor();
|
|
128
158
|
|
|
129
159
|
private _initRecording;
|
|
@@ -243,4 +273,34 @@ export declare class RecorderElement {
|
|
|
243
273
|
* To ask device permission
|
|
244
274
|
*/
|
|
245
275
|
private _askDevicePermission;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* To set max length
|
|
279
|
+
*/
|
|
280
|
+
private _setMaxLength;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* To open picture in picture
|
|
284
|
+
*/
|
|
285
|
+
private _openPictureInPicture;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* To exit picture in picture
|
|
289
|
+
*/
|
|
290
|
+
private _exitPictureInPicture;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* To request screen permission
|
|
294
|
+
*/
|
|
295
|
+
private _requestScreenPermission;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* To enable picture in picture
|
|
299
|
+
*/
|
|
300
|
+
private _enablePictureInPicture;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* To disable picture in picture
|
|
304
|
+
*/
|
|
305
|
+
private _disablePictureInPicture;
|
|
246
306
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.5.2-beta.
|
|
3
|
+
"version": "4.5.2-beta.14",
|
|
4
4
|
"description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
|
|
5
5
|
"homepage": "https://velt.dev",
|
|
6
6
|
"keywords": [
|