Skip to content

js-bao-wss-client


js-bao-wss-client / CollectionDocumentInfo

Interface: CollectionDocumentInfo ​

A document's membership in a collection, including the document's own metadata and the caller's effective permission on it. Returned by collections.addDocument() and collections.listDocuments().

Properties ​

addedAt ​

addedAt: string

ISO timestamp of when the document entered this collection.


addedBy ​

addedBy: string

UserId of the caller who added the document to the collection.


collectionId ​

collectionId: string


createdAt ​

createdAt: string

ISO timestamp of when the document was created.


createdBy ​

createdBy: string

UserId of the document's creator.


documentId ​

documentId: string


lastModified ​

lastModified: string

ISO timestamp of when the document was last modified.


permission ​

permission: "owner" | "read-write" | "reader"

The caller's effective permission on this specific document. App admins/owners always see "owner". For other callers this resolves via DocumentPermissionService.resolveEffectivePermission (direct permission OR group-derived).


tags? ​

optional tags?: string[]

Document tags (omitted when the document has no tags).


title ​

title: string

Document title.

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30