@veltdev/types 6.0.23 → 6.0.25

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.
@@ -47,6 +47,27 @@ export declare class Attachment {
47
47
  * Preview images of an attachment
48
48
  */
49
49
  previewImages?: string[];
50
+ /**
51
+ * Self-hosted (portable backend) only: the organization, in CLIENT form, of the document the file is stored under.
52
+ * Set by the SDK when it uploads the file; reading and deleting the file use it. Not set on Velt-hosted storage.
53
+ */
54
+ clientOrganizationId?: string;
55
+ /**
56
+ * Self-hosted (portable backend) only: the document, in CLIENT form, the file is stored under. On a page with
57
+ * several documents this can differ from the document the comment is saved in. Set by the SDK when it uploads the
58
+ * file; reading and deleting the file use it. Not set on Velt-hosted storage.
59
+ */
60
+ clientDocumentId?: string;
61
+ }
62
+ /**
63
+ * The document a comment attachment belongs to, in CLIENT ids (the comment's own `metadata.clientOrganizationId` /
64
+ * `clientDocumentId`, else the current document's). Passed only by the comment attachment callers, and read only on a
65
+ * portable (Tier B) session, where the gateway's attachment ops are document-scoped (specs/self-hosting-tier2
66
+ * iteration-32). Hosted ignores it.
67
+ */
68
+ export interface PortableAttachmentScope {
69
+ organizationId?: string | null;
70
+ documentId?: string | null;
50
71
  }
51
72
  export interface UploadFileOptions {
52
73
  path: string;
@@ -54,6 +75,8 @@ export interface UploadFileOptions {
54
75
  useAttachmentResolver?: boolean;
55
76
  metadata?: any;
56
77
  attachmentScope?: string;
78
+ /** See {@link PortableAttachmentScope}. Absent ⇒ hosted's path on every tier (the recorder and tag callers). */
79
+ portableScope?: PortableAttachmentScope;
57
80
  }
58
81
  export interface UploadFileData {
59
82
  files: File[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types",
3
- "version": "6.0.23",
3
+ "version": "6.0.25",
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": [