@veltdev/sdk-staging 4.5.8-beta.11 → 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.
@@ -25,7 +25,7 @@ import { UserContact } from "../models/data/user-contact.data.model";
25
25
  import { DocumentMetadata } from "../models/data/document-metadata.model";
26
26
  import { ReactionElement } from "../models/element/reaction-element.model";
27
27
  import { CrdtElement } from "../models/element/crdt-element.model";
28
- import { VeltEventMetadata, VeltDebugInfo } from "../models/data/event-metadata.data.model";
28
+ import { VeltEventMetadata } from "../models/data/event-metadata.data.model";
29
29
  import { CoreEventTypesMap } from "../models/data/core-events.data.model";
30
30
  import { Document, SetDocumentsRequestOptions, FetchDocumentsRequest, FetchFoldersRequest, UpdateDocumentsRequest, UpdateLocationsRequest } from "../models/data/document.data.model";
31
31
  import { FetchDocumentsResponse, FetchFoldersResponse } from "../models/data/document-events.data.model";
@@ -243,15 +243,6 @@ export declare class Snippyly {
243
243
  * Get the metadata of the current resource.
244
244
  */
245
245
  getMetadata: () => Promise<VeltEventMetadata | null>;
246
- /**
247
- * To fetch debug info.
248
- */
249
- fetchDebugInfo: () => Promise<VeltDebugInfo | null>;
250
- /**
251
- * To subscribe to debug info.
252
- */
253
- getDebugInfo: () => Observable<VeltDebugInfo | null>;
254
-
255
246
  /**
256
247
  * To signout a user
257
248
  */
@@ -1,21 +1,16 @@
1
1
  import { DocumentMetadata } from "./document-metadata.model";
2
+ import { Context } from "./user.data.model";
2
3
  export interface Document {
3
4
  id: string;
4
5
  metadata?: DocumentMetadata;
5
6
  }
6
- export interface SetDocumentsContext {
7
- access: {
8
- [key: string]: Array<string | number>;
9
- };
10
- accessFields?: Array<string>;
11
- }
12
7
  export interface SetDocumentsRequestOptions {
13
8
  organizationId?: string;
14
9
  folderId?: string;
15
10
  allDocuments?: boolean;
16
11
  locationId?: string;
17
12
  rootDocumentId?: string;
18
- context?: SetDocumentsContext;
13
+ context?: Context;
19
14
  }
20
15
  export interface UpdateDocumentsRequest<T = unknown> {
21
16
  organizationId?: string;
@@ -1,29 +1,9 @@
1
1
  import { DocumentMetadata } from "./document-metadata.model";
2
- import { FolderMetadata } from "./folder-metadata.model";
3
2
  import { Location } from "./location.model";
4
3
  import { OrganizationMetadata } from "./organization-metadata.model";
5
- import { User } from "./user.data.model";
6
4
  export interface VeltEventMetadata {
7
5
  organization?: OrganizationMetadata | null;
8
6
  documents?: DocumentMetadata[];
9
7
  locations?: Location[];
10
8
  folderId?: string;
11
9
  }
12
- export interface VeltDebugInfo {
13
- veltVersion?: string;
14
- apiKey?: string;
15
- serverMap?: {
16
- organization?: OrganizationMetadata;
17
- documents?: DocumentMetadata[];
18
- locations?: Location[];
19
- folder?: FolderMetadata;
20
- user?: User;
21
- };
22
- clientMap?: {
23
- organization?: OrganizationMetadata;
24
- documents?: DocumentMetadata[];
25
- locations?: Location[];
26
- folder?: FolderMetadata;
27
- user?: User;
28
- };
29
- }
@@ -11,7 +11,6 @@ export declare class UserIAM {
11
11
  * The user's contact details
12
12
  */
13
13
  user: UserContact;
14
- accessFields?: string[];
15
14
  documentIds?: string[];
16
15
  viewerDocumentIds?: string[];
17
16
  folderIds?: string[];
@@ -106,13 +106,14 @@ export interface AuthRetryConfig {
106
106
  }
107
107
  export interface Context {
108
108
  access: {
109
- [key: string]: string | number;
109
+ [key: string]: Array<string | number> | null;
110
110
  };
111
111
  accessFields?: Array<string>;
112
112
  }
113
113
  export interface VeltAuthProvider {
114
114
  user: User;
115
115
  options?: Options;
116
+ context?: Context;
116
117
  retryConfig?: AuthRetryConfig;
117
118
  generateToken?: () => Promise<string>;
118
119
  }
@@ -132,31 +133,24 @@ export interface RevokeAccessOn {
132
133
  }
133
134
  export interface VeltPermissionProvider {
134
135
  retryConfig?: AuthRetryConfig;
135
- isContextEnabled?: boolean;
136
+ isProviderEnabled?: boolean;
136
137
  revokeAccessOn?: RevokeAccessOn[];
137
138
  forceRefresh?: boolean;
138
139
  }
139
- export declare enum PermissionResourceType {
140
- FOLDER = "folder",
141
- DOCUMENT = "document",
142
- ORGANIZATION = "organization",
143
- CONTEXT = "context"
144
- }
145
140
  export interface PermissionQuery {
146
141
  userId: string;
147
142
  resource: {
148
143
  id: string;
149
- type: PermissionResourceType;
144
+ type: 'folder' | 'document' | 'organization';
150
145
  source: PermissionSource;
151
146
  organizationId: string;
152
- context?: Context;
153
147
  };
154
148
  }
155
149
  export interface PermissionResult {
156
150
  userId: string;
157
151
  resourceId: string;
158
152
  organizationId: string;
159
- type: PermissionResourceType;
153
+ type: 'folder' | 'document' | 'organization';
160
154
  accessRole?: UserPermissionAccessRole;
161
155
  expiresAt?: number;
162
156
  hasAccess: boolean;
@@ -1254,16 +1254,6 @@ export declare class CommentElement {
1254
1254
  */
1255
1255
  public markAsUnread: (annotationId: string) => Promise<void>;
1256
1256
 
1257
- /**
1258
- * To enable screenshot
1259
- */
1260
- public enableScreenshot: () => void;
1261
-
1262
- /**
1263
- * To disable screenshot
1264
- */
1265
- public disableScreenshot: () => void;
1266
-
1267
1257
  constructor();
1268
1258
  /**
1269
1259
  * Subscribe to comments on the current document.
@@ -2496,14 +2486,4 @@ export declare class CommentElement {
2496
2486
  * To mark comment annotation as unread
2497
2487
  */
2498
2488
  private _markAsUnread;
2499
-
2500
- /**
2501
- * To enable screenshot
2502
- */
2503
- private _enableScreenshot;
2504
-
2505
- /**
2506
- * To disable screenshot
2507
- */
2508
- private _disableScreenshot;
2509
2489
  }
@@ -9,8 +9,6 @@ export declare class Constants {
9
9
  static NO_ORGANIZATION_ID: string;
10
10
  static DEFAULT_QUERY_HASH: string;
11
11
  static LISTENER_BATCH_SIZE: number;
12
- static LISTENER_CONTEXT_BATCH_SIZE: number;
13
- static DEFAULT_VELT_CONTEXT: string;
14
12
  static FIREBASE_PARTIAL_PATH_ORGANIZATIONS: string;
15
13
  static FIREBASE_PARTIAL_PATH_FOLDERS: string;
16
14
  static FIREBASE_PARTIAL_PATH_DOCS: string;
package/models.d.ts CHANGED
@@ -48,7 +48,6 @@ export * from './app/models/data/recorder-annotation.data.model';
48
48
  export * from './app/models/data/recorder-events.data.model';
49
49
  export * from './app/models/data/rewriter-annotation.data.model';
50
50
  export * from './app/models/data/screen-size.data.model';
51
- export * from './app/models/data/screenshot.data.model';
52
51
  export * from './app/models/data/selection.model';
53
52
  export * from './app/models/data/sync-video-player.data.model';
54
53
  export * from './app/models/data/tag-annotation.data.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk-staging",
3
- "version": "4.5.8-beta.11",
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": [