@veltdev/sdk 4.5.6 → 4.5.8-beta.1

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.
@@ -4,7 +4,7 @@ import { CursorPosition } from "./cursor-position.data.model";
4
4
  import { Location } from "./location.model";
5
5
  import { PageInfo } from "./page-info.model";
6
6
  import { TargetElement } from "./target-element.data.model";
7
- import { User } from "./user.data.model";
7
+ import { Context, User } from "./user.data.model";
8
8
  export declare class AreaAnnotation {
9
9
  /**
10
10
  * Unique identifier for the area pin annotation.
@@ -12,6 +12,7 @@ export declare class AreaAnnotation {
12
12
  * Auto generated.
13
13
  */
14
14
  annotationId: string;
15
+ context?: Context;
15
16
  /**
16
17
  * The user who created this area pin annotation.
17
18
  *
@@ -43,6 +43,10 @@ export declare class Attachment {
43
43
  * Mime type of an attachment
44
44
  */
45
45
  mimeType?: any;
46
+ /**
47
+ * Preview images of an attachment
48
+ */
49
+ previewImages?: string[];
46
50
  }
47
51
  export interface UploadFileOptions {
48
52
  path: string;
@@ -1,4 +1,5 @@
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;
@@ -9,6 +10,7 @@ export interface SetDocumentsRequestOptions {
9
10
  allDocuments?: boolean;
10
11
  locationId?: string;
11
12
  rootDocumentId?: string;
13
+ context?: Context;
12
14
  }
13
15
  export interface UpdateDocumentsRequest<T = unknown> {
14
16
  organizationId?: string;
@@ -4,7 +4,7 @@ import { Location } from "./location.model";
4
4
  import { PageInfo } from "./page-info.model";
5
5
  import { Reaction } from "./reaction.data.model";
6
6
  import { TargetElement } from "./target-element.data.model";
7
- import { User } from "./user.data.model";
7
+ import { Context, User } from "./user.data.model";
8
8
  export declare class ReactionAnnotation {
9
9
  /**
10
10
  * Unique identifier for the reaction pin annotation.
@@ -12,6 +12,7 @@ export declare class ReactionAnnotation {
12
12
  * Auto generated.
13
13
  */
14
14
  annotationId: string;
15
+ context?: Context;
15
16
  /**
16
17
  * Connected comment annotation id of reaction annotation
17
18
  */
@@ -6,8 +6,9 @@ import { Location } from "./location.model";
6
6
  import { PageInfo } from "./page-info.model";
7
7
  import { TargetElement } from "./target-element.data.model";
8
8
  import { Transcription } from "./transcription.data.model";
9
- import { User } from "./user.data.model";
9
+ import { Context, User } from "./user.data.model";
10
10
  export declare class RecorderAnnotation {
11
+ context?: Context;
11
12
  /**
12
13
  * Unique identifier for the recorder pin annotation.
13
14
  *
@@ -105,9 +105,16 @@ export interface AuthRetryConfig {
105
105
  retryCount?: number;
106
106
  retryDelay?: number;
107
107
  }
108
+ export interface Context {
109
+ access: {
110
+ [key: string]: Array<string | number> | null;
111
+ };
112
+ accessFields?: Array<string>;
113
+ }
108
114
  export interface VeltAuthProvider {
109
115
  user: User;
110
116
  options?: Options;
117
+ context?: Context;
111
118
  retryConfig?: AuthRetryConfig;
112
119
  generateToken?: () => Promise<string>;
113
120
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "4.5.6",
3
+ "version": "4.5.8-beta.1",
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": [