@gonvex/protocol 0.1.10 → 0.1.12
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.
- package/dist/index.d.ts +44 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,26 @@ export type FunctionManifestEntry = {
|
|
|
6
6
|
kind: FunctionKind;
|
|
7
7
|
handler: string;
|
|
8
8
|
file: string;
|
|
9
|
+
dependencies?: FunctionDependencies;
|
|
10
|
+
};
|
|
11
|
+
export type FunctionDependencies = {
|
|
12
|
+
reads?: Array<{
|
|
13
|
+
table: string;
|
|
14
|
+
columns?: string[];
|
|
15
|
+
filters?: string[];
|
|
16
|
+
ordersBy?: string[];
|
|
17
|
+
windowed?: boolean;
|
|
18
|
+
predicate?: string;
|
|
19
|
+
}>;
|
|
20
|
+
writes?: Array<{
|
|
21
|
+
table: string;
|
|
22
|
+
columns?: string[];
|
|
23
|
+
}>;
|
|
24
|
+
shareByPermissions?: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type SubscriptionRevision = {
|
|
27
|
+
epoch: string;
|
|
28
|
+
sequence: number;
|
|
9
29
|
};
|
|
10
30
|
export type MessageTrace = {
|
|
11
31
|
clientSentAtMs?: number;
|
|
@@ -78,7 +98,7 @@ export type ClientMessage = {
|
|
|
78
98
|
id: string;
|
|
79
99
|
kind: "query" | "mutation" | "action";
|
|
80
100
|
path: string;
|
|
81
|
-
reason?: "initial" | "invalidate";
|
|
101
|
+
reason?: "initial" | "invalidate" | "recover";
|
|
82
102
|
outcome: "ok" | "error";
|
|
83
103
|
error?: string;
|
|
84
104
|
clientSentAtMs?: number;
|
|
@@ -108,10 +128,32 @@ export type ServerMessage = {
|
|
|
108
128
|
id: string;
|
|
109
129
|
path?: string;
|
|
110
130
|
result: JsonValue;
|
|
111
|
-
reason?: "initial" | "invalidate";
|
|
131
|
+
reason?: "initial" | "invalidate" | "recover";
|
|
112
132
|
trace?: MessageTrace;
|
|
113
133
|
cacheScope?: string;
|
|
114
134
|
cacheRevision?: string;
|
|
135
|
+
subscriptionRevision?: SubscriptionRevision;
|
|
136
|
+
} | {
|
|
137
|
+
type: "query.progress";
|
|
138
|
+
id: string;
|
|
139
|
+
path?: string;
|
|
140
|
+
reason?: "initial" | "invalidate" | "recover";
|
|
141
|
+
throughRevision: SubscriptionRevision;
|
|
142
|
+
trace?: MessageTrace;
|
|
143
|
+
} | {
|
|
144
|
+
type: "query.patch";
|
|
145
|
+
id: string;
|
|
146
|
+
path?: string;
|
|
147
|
+
reason?: "initial" | "invalidate" | "recover";
|
|
148
|
+
baseRevision: SubscriptionRevision;
|
|
149
|
+
subscriptionRevision: SubscriptionRevision;
|
|
150
|
+
inserted?: JsonValue[];
|
|
151
|
+
updated?: JsonValue[];
|
|
152
|
+
deleted?: string[];
|
|
153
|
+
order?: string[];
|
|
154
|
+
cacheScope?: string;
|
|
155
|
+
cacheRevision?: string;
|
|
156
|
+
trace?: MessageTrace;
|
|
115
157
|
} | {
|
|
116
158
|
type: "query.error";
|
|
117
159
|
id: string;
|