@veltdev/types-dev 4.5.8-beta.20 → 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;
@@ -1259,16 +1259,6 @@ export declare class CommentElement {
1259
1259
  */
1260
1260
  public markAsUnread: (annotationId: string) => Promise<void>;
1261
1261
 
1262
- /**
1263
- * To enable screenshot
1264
- */
1265
- public enableScreenshot: () => void;
1266
-
1267
- /**
1268
- * To disable screenshot
1269
- */
1270
- public disableScreenshot: () => void;
1271
-
1272
1262
  constructor();
1273
1263
  /**
1274
1264
  * Subscribe to comments on the current document.
@@ -2506,14 +2496,4 @@ export declare class CommentElement {
2506
2496
  * To mark comment annotation as unread
2507
2497
  */
2508
2498
  private _markAsUnread;
2509
-
2510
- /**
2511
- * To enable screenshot
2512
- */
2513
- private _enableScreenshot;
2514
-
2515
- /**
2516
- * To disable screenshot
2517
- */
2518
- private _disableScreenshot;
2519
2499
  }
@@ -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/types-dev",
3
- "version": "4.5.8-beta.20",
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": [
@@ -1,10 +0,0 @@
1
- import { AreaAnnotation } from "./area-annotation.data.model";
2
- import { CommentAnnotation } from "./comment-annotation.data.model";
3
- export interface ScreenshotData {
4
- source?: string;
5
- sourceData?: {
6
- commentAnnotation?: CommentAnnotation;
7
- areaAnnotation?: AreaAnnotation;
8
- };
9
- eventType: string;
10
- }