@gonvex/protocol 0.1.2 → 0.1.8

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +16 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -35,6 +35,12 @@ export type BrowserTelemetryInfo = {
35
35
  connectionType?: string;
36
36
  effectiveConnectionType?: string;
37
37
  };
38
+ export type QueryCacheDirective = {
39
+ protocolVersion: 1;
40
+ scope: string;
41
+ epoch: string;
42
+ maxAgeMs: number;
43
+ };
38
44
  export type GonvexManifest = {
39
45
  project: string;
40
46
  generatedAt: string;
@@ -81,6 +87,14 @@ export type ClientMessage = {
81
87
  device?: BrowserTelemetryInfo;
82
88
  };
83
89
  export type ServerMessage = {
90
+ type: "session.ready";
91
+ project?: string;
92
+ tenant?: string;
93
+ queryCache?: QueryCacheDirective;
94
+ } | {
95
+ type: "session.scope";
96
+ queryCache?: QueryCacheDirective;
97
+ } | {
84
98
  type: "auth.result";
85
99
  id: string;
86
100
  result: JsonValue;
@@ -95,6 +109,8 @@ export type ServerMessage = {
95
109
  result: JsonValue;
96
110
  reason?: "initial" | "invalidate";
97
111
  trace?: MessageTrace;
112
+ cacheScope?: string;
113
+ cacheRevision?: string;
98
114
  } | {
99
115
  type: "query.error";
100
116
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gonvex/protocol",
3
- "version": "0.1.2",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"