@veltdev/sdk 4.6.5 → 4.6.6

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.
@@ -305,6 +305,11 @@ export declare class Snippyly {
305
305
  */
306
306
  getUserPermissions: (request?: GetUserPermissionsRequest) => Promise<GetUserPermissionsResponse>;
307
307
 
308
+ /**
309
+ * To get current user permissions.
310
+ */
311
+ getCurrentUserPermissions: () => Observable<GetUserPermissionsResponse | null>;
312
+
308
313
  /**
309
314
  * To check if plan is expired or not.
310
315
  */
@@ -65,6 +65,14 @@ export type PermissionProviderEventType = {
65
65
  RESOURCE_ACCESS_RESULT: 'resourceAccessResult';
66
66
  RESOURCE_ACCESS_ERROR: 'resourceAccessError';
67
67
  RESOURCE_ACCESS_RESULT_FROM_CACHE: 'resourceAccessResultFromCache';
68
+ REVOKE_ACCESS_ON_DOCUMENT_UNSET_TRIGGERED: 'revokeAccessOnDocumentUnsetTriggered';
69
+ REVOKE_ACCESS_ON_DOCUMENT_UNSET_FORMED: 'revokeAccessOnDocumentUnsetFormed';
70
+ REVOKE_ACCESS_ON_DOCUMENT_UNSET_RESULT: 'revokeAccessOnDocumentUnsetResult';
71
+ REVOKE_ACCESS_ON_USER_LOGOUT_TRIGGERED: 'revokeAccessOnUserLogoutTriggered';
72
+ REVOKE_ACCESS_ON_USER_LOGOUT_FORMED: 'revokeAccessOnUserLogoutFormed';
73
+ REVOKE_ACCESS_ON_USER_LOGOUT_RESULT: 'revokeAccessOnUserLogoutResult';
74
+ REVOKE_ACCESS_ON_DOCUMENT_UNSET_ERROR: 'revokeAccessOnDocumentUnsetError';
75
+ REVOKE_ACCESS_ON_USER_LOGOUT_ERROR: 'revokeAccessOnUserLogoutError';
68
76
  };
69
77
  export type UserResolverEvent = BaseResolverEvent<UserResolverEventType, UserResolverSource>;
70
78
  export type UserResolverEventType = {
@@ -1,4 +1,5 @@
1
1
  import { DocumentMetadata } from "./document-metadata.model";
2
+ import { SetDocumentsContext } from "./document.data.model";
2
3
  import { FolderMetadata } from "./folder-metadata.model";
3
4
  import { Location } from "./location.model";
4
5
  import { OrganizationMetadata } from "./organization-metadata.model";
@@ -18,6 +19,7 @@ export interface VeltDebugInfo {
18
19
  locations?: Location[];
19
20
  folder?: FolderMetadata;
20
21
  user?: User;
22
+ accessFields?: Array<string>;
21
23
  };
22
24
  clientMap?: {
23
25
  organization?: OrganizationMetadata;
@@ -25,5 +27,6 @@ export interface VeltDebugInfo {
25
27
  locations?: Location[];
26
28
  folder?: FolderMetadata;
27
29
  user?: User;
30
+ context?: SetDocumentsContext;
28
31
  };
29
32
  }
@@ -36,6 +36,9 @@ export interface GetUserPermissionsResponse {
36
36
  errorCode?: UserPermissionAccessRoleResult;
37
37
  };
38
38
  };
39
+ context?: {
40
+ accessFields?: Array<string>;
41
+ };
39
42
  };
40
43
  }
41
44
  export declare enum UserPermissionAccessRole {
@@ -272,7 +272,7 @@ export type RecorderVariant = 'default' | 'embed';
272
272
  export type ReactionPinType = 'timeline' | 'comment';
273
273
  export type SidebarPosition = 'left' | 'right';
274
274
  export type SidebarSortingCriteria = 'date' | 'unread' | null;
275
- export type SidebarFilterCriteria = 'all' | 'read' | 'unread' | 'resolved';
275
+ export type SidebarFilterCriteria = 'all' | 'read' | 'unread' | 'resolved' | null;
276
276
  export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'involved' | 'pages' | 'documents' | 'statuses' | 'priorities' | 'categories' | 'versions' | string;
277
277
  export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
278
278
  export type NotificationPanelMode = 'popover' | 'sidebar';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "4.6.5",
3
+ "version": "4.6.6",
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": [