@veltdev/sdk 4.5.8-beta.1 → 4.5.8-beta.3

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.
@@ -17,7 +17,6 @@ export interface ResolverResponse<T> {
17
17
  message?: string;
18
18
  timestamp?: number;
19
19
  statusCode: number;
20
- signature?: string;
21
20
  }
22
21
  export interface RetryConfig {
23
22
  retryCount?: number;
@@ -1,4 +1,3 @@
1
- import { ResolverResponse } from "./resolver.data.model";
2
1
  import { UserContact } from "./user-contact.data.model";
3
2
  import { UserPermissionAccessRole } from "./user-resolver.data.model";
4
3
  export declare class User {
@@ -118,9 +117,24 @@ export interface VeltAuthProvider {
118
117
  retryConfig?: AuthRetryConfig;
119
118
  generateToken?: () => Promise<string>;
120
119
  }
120
+ export declare enum RevokeAccessOnType {
121
+ DOCUMENT_UNSET = "document_unset",
122
+ USER_LOGOUT = "user_logout"
123
+ }
124
+ export declare enum PermissionSource {
125
+ SET_DOCUMENTS = "setDocuments",
126
+ IDENTIFY = "identify",
127
+ GET_NOTIFICATIONS = "getNotifications",
128
+ SET_NOTIFICATIONS = "setNotifications"
129
+ }
130
+ export interface RevokeAccessOn {
131
+ type: RevokeAccessOnType;
132
+ revokeOrganizationAccess?: boolean;
133
+ }
121
134
  export interface VeltPermissionProvider {
122
- onResourceAccessRequired: (requests: Array<PermissionQuery>) => Promise<ResolverResponse<PermissionResult[]>>;
123
135
  retryConfig?: AuthRetryConfig;
136
+ isProviderEnabled?: boolean;
137
+ revokeAccessOn?: RevokeAccessOn[];
124
138
  forceRefresh?: boolean;
125
139
  }
126
140
  export interface PermissionQuery {
@@ -128,12 +142,14 @@ export interface PermissionQuery {
128
142
  resource: {
129
143
  id: string;
130
144
  type: 'folder' | 'document' | 'organization';
131
- source: 'setDocuments' | 'identify' | 'getNotifications' | 'setNotifications';
145
+ source: PermissionSource;
146
+ organizationId: string;
132
147
  };
133
148
  }
134
149
  export interface PermissionResult {
135
150
  userId: string;
136
151
  resourceId: string;
152
+ organizationId: string;
137
153
  type: 'folder' | 'document' | 'organization';
138
154
  accessRole?: UserPermissionAccessRole;
139
155
  expiresAt?: number;
@@ -562,7 +562,7 @@ export declare class CommentElement {
562
562
  * To select comment by annotation id
563
563
  * @param annotationId Comment annotation id
564
564
  */
565
- public selectCommentByAnnotationId: (annotationId: string) => void;
565
+ public selectCommentByAnnotationId: (annotationId?: string) => void;
566
566
 
567
567
  /**
568
568
  * To enable showing recording summary in comments
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "4.5.8-beta.1",
3
+ "version": "4.5.8-beta.3",
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": [