lsync API
Preparing search index...
@lsync/transport
clientMessageSchema
Variable clientMessageSchema
Const
clientMessageSchema
:
ZodDiscriminatedUnion
<
[
ZodObject
<
{
id
:
ZodUnion
<
readonly
[
ZodString
,
ZodNumber
]
>
;
input
:
ZodObject
<
{
collection
:
ZodString
;
cursor
:
ZodOptional
<
ZodObject
<
{
lastKey
:
ZodOptional
<
ZodUnion
<
(...)
>
>
;
whereCurrent
:
ZodType
<
ReadPredicate
,
unknown
,
$ZodTypeInternals
<
(...)
,
(...)
>
,
>
;
whereFrom
:
ZodType
<
ReadPredicate
,
unknown
,
$ZodTypeInternals
<
(...)
,
(...)
>
,
>
;
}
,
$strip
,
>
,
>
;
filters
:
ZodOptional
<
ZodArray
<
ZodObject
<
{
field
:
ZodString
;
op
:
ZodDefault
<
(...)
>
;
value
:
ZodUnknown
}
,
$strip
,
>
,
>
,
>
;
limit
:
ZodOptional
<
ZodNumber
>
;
offset
:
ZodOptional
<
ZodNumber
>
;
orderBy
:
ZodOptional
<
ZodArray
<
ZodObject
<
{
direction
:
ZodDefault
<
(...)
>
;
field
:
ZodString
}
,
$strip
,
>
,
>
,
>
;
predicate
:
ZodOptional
<
ZodType
<
ReadPredicate
,
unknown
,
$ZodTypeInternals
<
ReadPredicate
,
unknown
>
,
>
,
>
;
}
,
$strip
,
>
;
type
:
ZodLiteral
<
"read"
>
;
version
:
ZodLiteral
<
1
>
;
}
,
$strip
,
>
,
ZodObject
<
{
id
:
ZodUnion
<
readonly
[
ZodString
,
ZodNumber
]
>
;
input
:
ZodObject
<
{
updates
:
ZodArray
<
ZodObject
<
{
clientId
:
ZodOptional
<
ZodString
>
;
collection
:
ZodString
;
createdAt
:
ZodNumber
;
id
:
ZodString
;
key
:
ZodUnion
<
readonly
[
(...)
,
(...)
]
>
;
path
:
ZodOptional
<
ZodString
>
;
previousValue
:
ZodOptional
<
ZodUnknown
>
;
type
:
ZodEnum
<
{
delete
:
...
;
insert
:
...
;
update
:
...
}
>
;
value
:
ZodOptional
<
ZodUnknown
>
;
}
,
$strip
,
>
,
>
;
}
,
$strip
,
>
;
type
:
ZodLiteral
<
"push"
>
;
version
:
ZodLiteral
<
1
>
;
}
,
$strip
,
>
,
ZodObject
<
{
id
:
ZodUnion
<
readonly
[
ZodString
,
ZodNumber
]
>
;
input
:
ZodObject
<
{
collections
:
ZodRecord
<
ZodString
,
ZodNumber
>
;
limit
:
ZodOptional
<
ZodNumber
>
;
}
,
$strip
,
>
;
type
:
ZodLiteral
<
"changes"
>
;
version
:
ZodLiteral
<
1
>
;
}
,
$strip
,
>
,
ZodObject
<
{
id
:
ZodUnion
<
readonly
[
ZodString
,
ZodNumber
]
>
;
input
:
ZodObject
<
{
input
:
ZodOptional
<
ZodUnknown
>
;
path
:
ZodString
}
,
$strip
,
>
;
type
:
ZodLiteral
<
"api"
>
;
version
:
ZodLiteral
<
1
>
;
}
,
$strip
,
>
,
ZodObject
<
{
id
:
ZodUnion
<
readonly
[
ZodString
,
ZodNumber
]
>
;
input
:
ZodObject
<
{
collection
:
ZodString
}
,
$strip
>
;
type
:
ZodEnum
<
{
subscribe
:
"subscribe"
;
unsubscribe
:
"unsubscribe"
}
>
;
version
:
ZodLiteral
<
1
>
;
}
,
$strip
,
>
,
]
,
"type"
,
>
= ...
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
lsync API
Loading...