The following is the basic document model used for indexing a new document to Glean. There are other fields too which you can use for advanced functionality. You can refer to them in the API reference docs here.

FieldDescription
datasourceRepresents the document datasource
idUnique identifier for the document
bodyContent which will be used to populate the document body and its mime type
allowedUsersList of users who will be able to view this document
viewURLDocument view url
allowAnonymousAccessIf set to true, anyone who is signed into Glean can view search results for the document
allowAllDatasourceUsersAccessIf set to true, all users of the datasource (as uploaded using the Identity APIs) can view this document
customPropertiesList of name - value pairs used to populate additional facets