Field Notes
Field Notes home
Docs
Playground
Preparing search index...
@fieldnotes/sync-server
AuthorizeLayerContext
Interface AuthorizeLayerContext
interface
AuthorizeLayerContext
{
currentRecord
?:
LayerRecord
;
op
:
|
{
editor
:
string
;
kind
:
"layer-upsert"
;
layer
:
Layer
;
version
:
number
;
}
|
{
editor
:
string
;
id
:
string
;
kind
:
"layer-remove"
;
version
:
number
}
;
role
?:
string
;
room
:
string
;
userId
?:
string
;
}
Index
Properties
current
Record?
op
role?
room
user
Id?
Properties
Optional
current
Record
currentRecord
?:
LayerRecord
The hub's current record for the target layer, tombstones included.
op
op
:
|
{
editor
:
string
;
kind
:
"layer-upsert"
;
layer
:
Layer
;
version
:
number
;
}
|
{
editor
:
string
;
id
:
string
;
kind
:
"layer-remove"
;
version
:
number
}
Optional
role
role
?:
string
room
room
:
string
Optional
user
Id
userId
?:
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
current
Record
op
role
room
user
Id
Field Notes home
Docs
Playground
Field Notes
Loading...
The hub's current record for the target layer, tombstones included.