@veltdev/sdk 4.5.8-beta.5 → 4.5.8-beta.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.
@@ -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 } from "../models/data/event-metadata.data.model";
28
+ import { VeltEventMetadata, VeltDebugInfo } 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,6 +243,15 @@ 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
+
246
255
  /**
247
256
  * To signout a user
248
257
  */
@@ -1,9 +1,29 @@
1
1
  import { DocumentMetadata } from "./document-metadata.model";
2
+ import { FolderMetadata } from "./folder-metadata.model";
2
3
  import { Location } from "./location.model";
3
4
  import { OrganizationMetadata } from "./organization-metadata.model";
5
+ import { User } from "./user.data.model";
4
6
  export interface VeltEventMetadata {
5
7
  organization?: OrganizationMetadata | null;
6
8
  documents?: DocumentMetadata[];
7
9
  locations?: Location[];
8
10
  folderId?: string;
9
11
  }
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,6 +11,7 @@ export declare class UserIAM {
11
11
  * The user's contact details
12
12
  */
13
13
  user: UserContact;
14
+ accessFields?: string[];
14
15
  documentIds?: string[];
15
16
  viewerDocumentIds?: string[];
16
17
  folderIds?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "4.5.8-beta.5",
3
+ "version": "4.5.8-beta.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": [