@party-stack/ontology-server 0.12.1 → 0.14.0
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/README.md +12 -3
- package/lib/authorization.js +1 -1
- package/lib/bindingFence.d.ts +5 -0
- package/lib/bindingFence.d.ts.map +1 -1
- package/lib/bindingFence.js +24 -3
- package/lib/bindingFence.js.map +1 -1
- package/lib/composition.d.ts +5 -17
- package/lib/composition.d.ts.map +1 -1
- package/lib/definitionProjection.d.ts.map +1 -1
- package/lib/definitionProjection.js +4 -4
- package/lib/definitionProjection.js.map +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/internalAccess.js +1 -4
- package/lib/internalAccess.js.map +1 -1
- package/lib/operations.d.ts +35 -166
- package/lib/operations.d.ts.map +1 -1
- package/lib/operations.js +3 -55
- package/lib/operations.js.map +1 -1
- package/lib/replicaBootstrap.d.ts +20 -26
- package/lib/replicaBootstrap.d.ts.map +1 -1
- package/lib/replicaBootstrap.js +78 -42
- package/lib/replicaBootstrap.js.map +1 -1
- package/lib/routing.d.ts +49 -19
- package/lib/routing.d.ts.map +1 -1
- package/lib/routing.js +80 -52
- package/lib/routing.js.map +1 -1
- package/lib/rpc.d.ts +655 -767
- package/lib/rpc.d.ts.map +1 -1
- package/lib/rpc.js +128 -35
- package/lib/rpc.js.map +1 -1
- package/lib/rpcLocal.d.ts.map +1 -1
- package/lib/rpcLocal.js +6 -1
- package/lib/rpcLocal.js.map +1 -1
- package/lib/rpcWorker.d.ts.map +1 -1
- package/lib/rpcWorker.js +4 -1
- package/lib/rpcWorker.js.map +1 -1
- package/package.json +7 -7
package/lib/rpc.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { BackendError, ObjectSelection } from "@party-stack/ontology-backend";
|
|
|
5
5
|
import { ClientSubmission, ClientView, OntologySource } from "@party-stack/ontology-backend/protocol";
|
|
6
6
|
import { Cause, Context, Effect, Layer, Schema, Scope, Stream } from "effect";
|
|
7
7
|
import { Rpc, RpcClient, RpcGroup, RpcMiddleware, RpcSchema } from "effect/rpc";
|
|
8
|
-
import {
|
|
8
|
+
import { ReplicaService } from "@party-stack/ontology-replica";
|
|
9
9
|
import { CompiledSubset } from "@party-stack/ontology-backend/subset";
|
|
10
10
|
import { ClientSession, ClientToken } from "@party-stack/ontology-backend/clients";
|
|
11
11
|
import { OntologyDescription, OntologyDescription as OntologyDescription$1 } from "@party-stack/ontology-backend/description";
|
|
@@ -13,59 +13,39 @@ import { Headers } from "effect/http/Headers";
|
|
|
13
13
|
import { TraceStore } from "@party-stack/runtime/tracing";
|
|
14
14
|
//#region src/rpc.d.ts
|
|
15
15
|
declare const DeliveryStrategy: Schema.Literals<readonly ["auto", "snapshot", "incremental"]>;
|
|
16
|
-
export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"
|
|
17
|
-
readonly
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
|
|
30
|
-
readonly
|
|
31
|
-
};
|
|
32
|
-
readonly replay?: {
|
|
33
|
-
readonly now: string;
|
|
34
|
-
readonly seed: string;
|
|
16
|
+
export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schema.Codec<import("@party-stack/ontology-spec/query").ObjectSubset, string, never, never>, Schema.Codec<{
|
|
17
|
+
readonly fulfilledSubset?: import("@party-stack/ontology-spec/query").ObjectSubset | undefined;
|
|
18
|
+
readonly fetchedRows?: number | undefined;
|
|
19
|
+
readonly pushdown?: {
|
|
20
|
+
readonly source: string;
|
|
21
|
+
readonly predicates: readonly {
|
|
22
|
+
readonly path: readonly number[];
|
|
23
|
+
readonly execution: "adapter" | "candidate" | "engine" | "source";
|
|
24
|
+
}[];
|
|
25
|
+
readonly sorting: "adapter" | "engine" | "none" | "source";
|
|
26
|
+
readonly pagination: "adapter" | "engine" | "none" | "source";
|
|
27
|
+
readonly rechecksFilter: boolean;
|
|
28
|
+
readonly native?: {
|
|
29
|
+
readonly language: string;
|
|
30
|
+
readonly text: string;
|
|
35
31
|
} | undefined;
|
|
36
|
-
};
|
|
37
|
-
readonly
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
readonly selection: {
|
|
42
|
-
readonly subsets: readonly {
|
|
43
|
-
readonly objectType: string;
|
|
44
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
45
|
-
}[];
|
|
46
|
-
readonly actionIds: readonly string[];
|
|
47
|
-
readonly inspectActions?: boolean | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
readonly rows: readonly {
|
|
34
|
+
readonly key: string | number;
|
|
35
|
+
readonly value: {
|
|
36
|
+
readonly [x: string]: unknown;
|
|
48
37
|
};
|
|
38
|
+
}[];
|
|
39
|
+
readonly complete: boolean;
|
|
40
|
+
readonly cursor?: string | undefined;
|
|
41
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"WatchSubset", Schema.Codec<import("@party-stack/ontology-spec/query").ObjectSubset, string, never, never>, RpcSchema.Stream<Schema.Literals<readonly ["reset", "invalidate"]>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Query", Schema.Codec<{
|
|
42
|
+
readonly document: import("@party-stack/ontology-spec").QueryDocument;
|
|
43
|
+
readonly inputs?: {
|
|
44
|
+
readonly [x: string]: unknown;
|
|
49
45
|
} | undefined;
|
|
50
|
-
}, string, never, never>, Schema.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
readonly streamId: Schema.NonEmptyString;
|
|
54
|
-
readonly sequence: Schema.Int;
|
|
55
|
-
}>;
|
|
56
|
-
}>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Acknowledge", Schema.Struct<{
|
|
57
|
-
session: Schema.Struct<{
|
|
58
|
-
readonly client: Schema.Struct<{
|
|
59
|
-
readonly sourceId: Schema.NonEmptyString;
|
|
60
|
-
readonly clientId: Schema.NonEmptyString;
|
|
61
|
-
readonly resumeKey: Schema.NonEmptyString;
|
|
62
|
-
}>;
|
|
63
|
-
readonly connectionId: Schema.NonEmptyString;
|
|
64
|
-
}>;
|
|
65
|
-
revision: Schema.Int;
|
|
66
|
-
through: Schema.Int;
|
|
67
|
-
viewGeneration: Schema.optional<Schema.Int>;
|
|
68
|
-
}>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ApplyAction", Schema.Codec<{
|
|
46
|
+
}, string, never, never>, Schema.Codec<{
|
|
47
|
+
readonly [x: string]: unknown;
|
|
48
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ApplyAction", Schema.Codec<{
|
|
69
49
|
readonly id: string;
|
|
70
50
|
readonly name: string;
|
|
71
51
|
readonly parameters: {
|
|
@@ -90,26 +70,43 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Co
|
|
|
90
70
|
readonly localId: Schema.String;
|
|
91
71
|
readonly remoteId: Schema.String;
|
|
92
72
|
}>>>;
|
|
93
|
-
}>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"
|
|
94
|
-
readonly
|
|
95
|
-
|
|
96
|
-
readonly
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
readonly
|
|
107
|
-
readonly
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
73
|
+
}>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"QueryFunction", Schema.Codec<{
|
|
74
|
+
readonly name: string;
|
|
75
|
+
readonly parameters: {
|
|
76
|
+
readonly [x: string]: unknown;
|
|
77
|
+
};
|
|
78
|
+
}, string, never, never>, Schema.Codec<unknown, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ResolveActionParameters", Schema.Codec<{
|
|
79
|
+
readonly name: string;
|
|
80
|
+
readonly parameters: {
|
|
81
|
+
readonly [x: string]: unknown;
|
|
82
|
+
};
|
|
83
|
+
}, string, never, never>, Schema.Codec<{
|
|
84
|
+
readonly [x: string]: unknown;
|
|
85
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ValidateAction", Schema.Codec<{
|
|
86
|
+
readonly name: string;
|
|
87
|
+
readonly parameters: {
|
|
88
|
+
readonly [x: string]: unknown;
|
|
89
|
+
};
|
|
90
|
+
readonly knownParameters?: readonly string[] | undefined;
|
|
91
|
+
}, string, never, never>, Schema.Codec<{
|
|
92
|
+
readonly certain: false;
|
|
93
|
+
} | {
|
|
94
|
+
readonly certain: true;
|
|
95
|
+
readonly value: {
|
|
96
|
+
readonly kind: "ok";
|
|
97
|
+
readonly value: void;
|
|
98
|
+
} | {
|
|
99
|
+
readonly kind: "err";
|
|
100
|
+
readonly value: readonly {
|
|
101
|
+
readonly message: string;
|
|
102
|
+
readonly path?: readonly (string | number)[] | undefined;
|
|
103
|
+
readonly code?: string | undefined;
|
|
104
|
+
readonly category?: "custom" | "input" | "reference" | undefined;
|
|
105
|
+
readonly source?: "parameter" | "submission" | "user-facing" | undefined;
|
|
106
|
+
readonly messageSource?: "configured" | "standard" | undefined;
|
|
107
|
+
}[];
|
|
108
|
+
};
|
|
109
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ControlOutbox", Schema.Codec<{
|
|
113
110
|
readonly operation: "edit" | "remove" | "retry";
|
|
114
111
|
readonly id: string;
|
|
115
112
|
readonly invocation?: {
|
|
@@ -124,164 +121,30 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Co
|
|
|
124
121
|
} | undefined;
|
|
125
122
|
} | undefined;
|
|
126
123
|
readonly allowUnknownOutcome?: boolean | undefined;
|
|
127
|
-
}, string, never, never>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"
|
|
128
|
-
readonly
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
readonly
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
readonly
|
|
139
|
-
readonly
|
|
140
|
-
|
|
141
|
-
readonly eager: Schema.optional<Schema.Boolean>;
|
|
142
|
-
}>, RpcSchema.Stream<Schema.Union<readonly [Schema.Struct<{
|
|
143
|
-
readonly kind: Schema.Literal<"ready">;
|
|
144
|
-
readonly uploadId: Schema.NonEmptyString;
|
|
145
|
-
}>, Schema.Struct<{
|
|
146
|
-
readonly kind: Schema.Literal<"complete">;
|
|
147
|
-
readonly attachment: Schema.Struct<{
|
|
148
|
-
readonly id: Schema.NonEmptyString;
|
|
149
|
-
readonly type: Schema.optional<Schema.String>;
|
|
150
|
-
readonly source: Schema.optional<Schema.Struct<{
|
|
151
|
-
readonly objectType: Schema.String;
|
|
152
|
-
readonly primaryKey: Schema.Union<readonly [Schema.String, Schema.Number]>;
|
|
153
|
-
readonly property: Schema.String;
|
|
154
|
-
}>>;
|
|
155
|
-
}>;
|
|
156
|
-
}>]>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Decrypt", Schema.Struct<{
|
|
157
|
-
readonly value: Schema.Struct<{
|
|
158
|
-
readonly ciphertext: Schema.NonEmptyString;
|
|
159
|
-
readonly source: Schema.optional<Schema.Struct<{
|
|
160
|
-
readonly objectType: Schema.NonEmptyString;
|
|
161
|
-
readonly primaryKey: Schema.Union<readonly [Schema.String, Schema.Finite]>;
|
|
162
|
-
readonly property: Schema.NonEmptyString;
|
|
163
|
-
}>>;
|
|
164
|
-
}>;
|
|
165
|
-
readonly cache: Schema.optional<Schema.Boolean>;
|
|
166
|
-
}>, Schema.Codec<{
|
|
167
|
-
readonly value: unknown;
|
|
168
|
-
readonly ciphertext?: string | undefined;
|
|
169
|
-
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"DeleteLocalData", Schema.Void, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Demand", Schema.Codec<{
|
|
170
|
-
readonly objectType: string;
|
|
171
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
172
|
-
}, string, never, never>, RpcSchema.Stream<Schema.Literal<"ready">, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Describe", Schema.Void, Schema.Struct<{
|
|
173
|
-
readonly version: Schema.Literal<1>;
|
|
174
|
-
readonly replication: Schema.Literals<readonly ["committed", "speculative"]>;
|
|
175
|
-
readonly definitionHash: Schema.optional<Schema.String>;
|
|
176
|
-
readonly sourceId: Schema.NonEmptyString;
|
|
177
|
-
readonly ir: Schema.optional<Schema.Codec<import("@party-stack/ontology-spec").OntologyIR, string, never, never>>;
|
|
178
|
-
readonly context: Schema.optional<Schema.Codec<{
|
|
179
|
-
readonly [x: string]: unknown;
|
|
180
|
-
}, string, never, never>>;
|
|
181
|
-
readonly supportsIdempotency: Schema.Boolean;
|
|
182
|
-
readonly delivery: Schema.optional<Schema.Boolean>;
|
|
183
|
-
readonly stateDelivery: Schema.optional<Schema.Boolean>;
|
|
184
|
-
readonly changes: Schema.optional<Schema.Boolean>;
|
|
185
|
-
readonly watchChanges: Schema.optional<Schema.Boolean>;
|
|
186
|
-
readonly watchSubset: Schema.optional<Schema.Boolean>;
|
|
187
|
-
readonly actionParameterResolution: Schema.optional<Schema.Boolean>;
|
|
188
|
-
readonly queries: Schema.optional<Schema.Boolean>;
|
|
189
|
-
readonly pins: Schema.optional<Schema.Boolean>;
|
|
190
|
-
readonly attachments: Schema.optional<Schema.Struct<{
|
|
191
|
-
readonly stage: Schema.Boolean;
|
|
192
|
-
}>>;
|
|
193
|
-
readonly encrypted: Schema.optional<Schema.Boolean>;
|
|
194
|
-
}>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"LoadSubset", Schema.Codec<import("@party-stack/ontology-spec/query").ObjectSubset, string, never, never>, Schema.Codec<{
|
|
195
|
-
readonly fulfilledSubset?: import("@party-stack/ontology-spec/query").ObjectSubset | undefined;
|
|
196
|
-
readonly fetchedRows?: number | undefined;
|
|
197
|
-
readonly pushdown?: {
|
|
198
|
-
readonly source: string;
|
|
199
|
-
readonly predicates: readonly {
|
|
200
|
-
readonly path: readonly number[];
|
|
201
|
-
readonly execution: "adapter" | "candidate" | "engine" | "source";
|
|
202
|
-
}[];
|
|
203
|
-
readonly sorting: "adapter" | "engine" | "none" | "source";
|
|
204
|
-
readonly pagination: "adapter" | "engine" | "none" | "source";
|
|
205
|
-
readonly rechecksFilter: boolean;
|
|
206
|
-
readonly native?: {
|
|
207
|
-
readonly language: string;
|
|
208
|
-
readonly text: string;
|
|
209
|
-
} | undefined;
|
|
210
|
-
} | undefined;
|
|
211
|
-
readonly rows: readonly {
|
|
212
|
-
readonly key: string | number;
|
|
213
|
-
readonly value: {
|
|
124
|
+
}, string, never, never>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Submit", Schema.Codec<{
|
|
125
|
+
readonly session: {
|
|
126
|
+
readonly client: {
|
|
127
|
+
readonly sourceId: string;
|
|
128
|
+
readonly clientId: string;
|
|
129
|
+
readonly resumeKey: string;
|
|
130
|
+
};
|
|
131
|
+
readonly connectionId: string;
|
|
132
|
+
};
|
|
133
|
+
readonly sequence: number;
|
|
134
|
+
readonly invocation: {
|
|
135
|
+
readonly id: string;
|
|
136
|
+
readonly name: string;
|
|
137
|
+
readonly parameters: {
|
|
214
138
|
readonly [x: string]: unknown;
|
|
215
139
|
};
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}
|
|
220
|
-
resume: Schema.optional<Schema.Struct<{
|
|
221
|
-
readonly sourceId: Schema.NonEmptyString;
|
|
222
|
-
readonly clientId: Schema.NonEmptyString;
|
|
223
|
-
readonly resumeKey: Schema.NonEmptyString;
|
|
224
|
-
}>>;
|
|
225
|
-
}>, Schema.Struct<{
|
|
226
|
-
readonly client: Schema.Struct<{
|
|
227
|
-
readonly sourceId: Schema.NonEmptyString;
|
|
228
|
-
readonly clientId: Schema.NonEmptyString;
|
|
229
|
-
readonly resumeKey: Schema.NonEmptyString;
|
|
230
|
-
}>;
|
|
231
|
-
readonly connectionId: Schema.NonEmptyString;
|
|
232
|
-
readonly expiresAt: Schema.Finite;
|
|
233
|
-
readonly acceptedThrough: Schema.Int;
|
|
234
|
-
readonly acknowledgedThrough: Schema.Int;
|
|
235
|
-
readonly deliveredThrough: Schema.Int;
|
|
236
|
-
readonly deliveredRevision: Schema.Int;
|
|
237
|
-
readonly appliedRevision: Schema.Int;
|
|
238
|
-
readonly viewGeneration: Schema.optional<Schema.Int>;
|
|
239
|
-
readonly viewIdentity: Schema.optional<Schema.String>;
|
|
240
|
-
readonly deliveredViewGeneration: Schema.optional<Schema.Int>;
|
|
241
|
-
}>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"PullChanges", Schema.Struct<{
|
|
242
|
-
readonly cursor: Schema.optional<Schema.String>;
|
|
243
|
-
readonly limit: Schema.optional<Schema.Int>;
|
|
244
|
-
}>, Schema.Codec<{
|
|
245
|
-
readonly commits: readonly {
|
|
246
|
-
readonly cursor: string;
|
|
247
|
-
readonly changes: readonly ({
|
|
248
|
-
readonly kind: "put";
|
|
249
|
-
readonly objectType: string;
|
|
250
|
-
readonly key: string | number;
|
|
251
|
-
readonly value: {
|
|
252
|
-
readonly [x: string]: unknown;
|
|
253
|
-
};
|
|
254
|
-
} | {
|
|
255
|
-
readonly kind: "delete";
|
|
256
|
-
readonly objectType: string;
|
|
257
|
-
readonly key: string | number;
|
|
258
|
-
})[];
|
|
259
|
-
readonly operationId?: string | undefined;
|
|
260
|
-
}[];
|
|
261
|
-
readonly cursor: string;
|
|
262
|
-
readonly hasMore: boolean;
|
|
263
|
-
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Query", Schema.Codec<{
|
|
264
|
-
readonly document: import("@party-stack/ontology-spec").QueryDocument;
|
|
265
|
-
readonly inputs?: {
|
|
266
|
-
readonly [x: string]: unknown;
|
|
267
|
-
} | undefined;
|
|
268
|
-
}, string, never, never>, Schema.Codec<{
|
|
269
|
-
readonly [x: string]: unknown;
|
|
270
|
-
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"QueryFunction", Schema.Codec<{
|
|
271
|
-
readonly name: string;
|
|
272
|
-
readonly parameters: {
|
|
273
|
-
readonly [x: string]: unknown;
|
|
140
|
+
readonly replay?: {
|
|
141
|
+
readonly now: string;
|
|
142
|
+
readonly seed: string;
|
|
143
|
+
} | undefined;
|
|
274
144
|
};
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
readonly sourceId: Schema.NonEmptyString;
|
|
279
|
-
readonly clientId: Schema.NonEmptyString;
|
|
280
|
-
readonly resumeKey: Schema.NonEmptyString;
|
|
281
|
-
}>;
|
|
282
|
-
readonly connectionId: Schema.NonEmptyString;
|
|
283
|
-
}>;
|
|
284
|
-
view: Schema.optional<Schema.Codec<{
|
|
145
|
+
readonly optimistic: boolean;
|
|
146
|
+
readonly stagedAttachments?: readonly string[] | undefined;
|
|
147
|
+
readonly view?: {
|
|
285
148
|
readonly generation: number;
|
|
286
149
|
readonly selection: {
|
|
287
150
|
readonly subsets: readonly {
|
|
@@ -291,8 +154,8 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Co
|
|
|
291
154
|
readonly actionIds: readonly string[];
|
|
292
155
|
readonly inspectActions?: boolean | undefined;
|
|
293
156
|
};
|
|
294
|
-
}
|
|
295
|
-
}>, Schema.Codec<{
|
|
157
|
+
} | undefined;
|
|
158
|
+
}, string, never, never>, Schema.Codec<{
|
|
296
159
|
readonly state: {
|
|
297
160
|
readonly sourceId: string;
|
|
298
161
|
readonly revision: number;
|
|
@@ -462,209 +325,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Co
|
|
|
462
325
|
readonly complete: boolean;
|
|
463
326
|
readonly cached?: boolean | undefined;
|
|
464
327
|
}[] | undefined;
|
|
465
|
-
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"
|
|
466
|
-
readonly id: Schema.NonEmptyString;
|
|
467
|
-
readonly type: Schema.optional<Schema.String>;
|
|
468
|
-
readonly source: Schema.optional<Schema.Struct<{
|
|
469
|
-
readonly objectType: Schema.String;
|
|
470
|
-
readonly primaryKey: Schema.Union<readonly [Schema.String, Schema.Number]>;
|
|
471
|
-
readonly property: Schema.String;
|
|
472
|
-
}>>;
|
|
473
|
-
}>, RpcSchema.Stream<Schema.Union<readonly [Schema.Struct<{
|
|
474
|
-
readonly kind: Schema.Literal<"metadata">;
|
|
475
|
-
readonly type: Schema.String;
|
|
476
|
-
readonly size: Schema.optional<Schema.Int>;
|
|
477
|
-
readonly name: Schema.optional<Schema.String>;
|
|
478
|
-
}>, Schema.Struct<{
|
|
479
|
-
readonly kind: Schema.Literal<"bytes">;
|
|
480
|
-
readonly bytes: Schema.Uint8ArrayFromBase64;
|
|
481
|
-
}>]>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ReadPin", Schema.Void, Schema.Codec<{
|
|
482
|
-
readonly query: import("@party-stack/ontology-spec").QueryDocument;
|
|
483
|
-
readonly inputs?: {
|
|
484
|
-
readonly [x: string]: unknown;
|
|
485
|
-
} | undefined;
|
|
486
|
-
readonly attachments: "all" | "none";
|
|
487
|
-
readonly ready: boolean;
|
|
488
|
-
readonly previousGraphRetained: boolean;
|
|
489
|
-
readonly retainedGraph?: {
|
|
490
|
-
readonly query: import("@party-stack/ontology-spec").QueryDocument;
|
|
491
|
-
readonly inputs?: {
|
|
492
|
-
readonly [x: string]: unknown;
|
|
493
|
-
} | undefined;
|
|
494
|
-
readonly attachments: "all" | "none";
|
|
495
|
-
} | undefined;
|
|
496
|
-
readonly error?: {
|
|
497
|
-
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
498
|
-
readonly message: string;
|
|
499
|
-
} | undefined;
|
|
500
|
-
} | undefined, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ReleaseOwner", Schema.Void, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ReplicaStatus", Schema.Void, RpcSchema.Stream<Schema.Codec<{
|
|
501
|
-
readonly capacity?: {
|
|
502
|
-
readonly memory?: {
|
|
503
|
-
readonly scope: "database" | "filesystem" | "isolate" | "origin" | "process";
|
|
504
|
-
readonly usedBytes?: number | undefined;
|
|
505
|
-
readonly limitBytes?: number | undefined;
|
|
506
|
-
readonly availableBytes?: number | undefined;
|
|
507
|
-
} | undefined;
|
|
508
|
-
readonly storage?: {
|
|
509
|
-
readonly scope: "database" | "filesystem" | "isolate" | "origin" | "process";
|
|
510
|
-
readonly usedBytes?: number | undefined;
|
|
511
|
-
readonly limitBytes?: number | undefined;
|
|
512
|
-
readonly availableBytes?: number | undefined;
|
|
513
|
-
} | undefined;
|
|
514
|
-
readonly memoryError?: string | undefined;
|
|
515
|
-
readonly storageError?: string | undefined;
|
|
516
|
-
} | undefined;
|
|
517
|
-
readonly cache?: {
|
|
518
|
-
readonly attachments?: {
|
|
519
|
-
readonly bytes: number;
|
|
520
|
-
readonly maxBytes?: number | undefined;
|
|
521
|
-
readonly targetBytes?: number | undefined;
|
|
522
|
-
} | undefined;
|
|
523
|
-
readonly objects: {
|
|
524
|
-
readonly byObjectType?: readonly {
|
|
525
|
-
readonly objectType: string;
|
|
526
|
-
readonly bytes: number;
|
|
527
|
-
}[] | undefined;
|
|
528
|
-
readonly bytes: number;
|
|
529
|
-
readonly maxBytes?: number | undefined;
|
|
530
|
-
readonly targetBytes?: number | undefined;
|
|
531
|
-
};
|
|
532
|
-
} | undefined;
|
|
533
|
-
readonly pin?: {
|
|
534
|
-
readonly ready: boolean;
|
|
535
|
-
readonly previousGraphRetained: boolean;
|
|
536
|
-
readonly error?: {
|
|
537
|
-
readonly kind: string;
|
|
538
|
-
readonly message: string;
|
|
539
|
-
} | undefined;
|
|
540
|
-
} | undefined;
|
|
541
|
-
readonly sourceId: string;
|
|
542
|
-
readonly upstreamId: string;
|
|
543
|
-
readonly mode: "adapter" | "protocol";
|
|
544
|
-
readonly networkOnline: boolean;
|
|
545
|
-
readonly authentication?: {
|
|
546
|
-
readonly status: "pending";
|
|
547
|
-
} | {
|
|
548
|
-
readonly status: "active";
|
|
549
|
-
readonly expiration?: {
|
|
550
|
-
readonly expiresAt: number;
|
|
551
|
-
readonly refreshable: boolean;
|
|
552
|
-
} | undefined;
|
|
553
|
-
} | {
|
|
554
|
-
readonly status: "inactive";
|
|
555
|
-
} | {
|
|
556
|
-
readonly status: "needs-auth";
|
|
557
|
-
readonly error?: string | undefined;
|
|
558
|
-
} | {
|
|
559
|
-
readonly status: "error";
|
|
560
|
-
readonly error: string;
|
|
561
|
-
} | undefined;
|
|
562
|
-
readonly watchError?: {
|
|
563
|
-
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
564
|
-
readonly message: string;
|
|
565
|
-
readonly retryable: boolean;
|
|
566
|
-
} | undefined;
|
|
567
|
-
readonly replicationError?: {
|
|
568
|
-
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
569
|
-
readonly message: string;
|
|
570
|
-
readonly recovery: "reconnect" | "session" | "snapshot" | "stop";
|
|
571
|
-
} | undefined;
|
|
572
|
-
readonly syncing: boolean;
|
|
573
|
-
readonly lastSync?: {
|
|
574
|
-
readonly startedAt: number;
|
|
575
|
-
readonly finishedAt: number;
|
|
576
|
-
readonly outcome: "failure" | "interrupted" | "success";
|
|
577
|
-
readonly error?: {
|
|
578
|
-
readonly kind: string;
|
|
579
|
-
readonly message: string;
|
|
580
|
-
} | undefined;
|
|
581
|
-
} | undefined;
|
|
582
|
-
readonly demands: readonly {
|
|
583
|
-
readonly objectType: string;
|
|
584
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
585
|
-
readonly references: number;
|
|
586
|
-
readonly idleUntil?: number | undefined;
|
|
587
|
-
readonly watchers: number;
|
|
588
|
-
readonly loadError?: {
|
|
589
|
-
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
590
|
-
readonly message: string;
|
|
591
|
-
readonly retryable: boolean;
|
|
592
|
-
} | undefined;
|
|
593
|
-
readonly watchError?: {
|
|
594
|
-
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
595
|
-
readonly message: string;
|
|
596
|
-
readonly retryable: boolean;
|
|
597
|
-
} | undefined;
|
|
598
|
-
readonly revision: number;
|
|
599
|
-
readonly installed: number;
|
|
600
|
-
readonly coveredBy?: {
|
|
601
|
-
readonly objectType: string;
|
|
602
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
603
|
-
} | undefined;
|
|
604
|
-
readonly coverageProof?: {
|
|
605
|
-
readonly reason: "collection" | "primary-key" | "query";
|
|
606
|
-
readonly maintainedBy: "journal" | "poll" | "snapshot" | "watch";
|
|
607
|
-
readonly pollIntervalMs?: number | undefined;
|
|
608
|
-
readonly stale?: boolean | undefined;
|
|
609
|
-
readonly confirmedAt?: number | undefined;
|
|
610
|
-
} | undefined;
|
|
611
|
-
}[];
|
|
612
|
-
readonly outbox: {
|
|
613
|
-
readonly [x: string]: number;
|
|
614
|
-
};
|
|
615
|
-
readonly loads: readonly {
|
|
616
|
-
readonly id: number;
|
|
617
|
-
readonly spanId?: string | undefined;
|
|
618
|
-
readonly traceId?: string | undefined;
|
|
619
|
-
readonly operation: "loadSubset" | "pullChanges";
|
|
620
|
-
readonly reason: "demand" | "journal" | "receipt" | "refresh" | "repair";
|
|
621
|
-
readonly subset?: {
|
|
622
|
-
readonly objectType: string;
|
|
623
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
624
|
-
} | undefined;
|
|
625
|
-
readonly startedAt: number;
|
|
626
|
-
readonly finishedAt?: number | undefined;
|
|
627
|
-
readonly outcome: "failure" | "interrupted" | "running" | "success";
|
|
628
|
-
readonly rows?: number | undefined;
|
|
629
|
-
readonly fetchedRows?: number | undefined;
|
|
630
|
-
readonly pushdown?: {
|
|
631
|
-
readonly source: string;
|
|
632
|
-
readonly predicates: readonly {
|
|
633
|
-
readonly path: readonly number[];
|
|
634
|
-
readonly execution: "adapter" | "candidate" | "engine" | "source";
|
|
635
|
-
}[];
|
|
636
|
-
readonly sorting: "adapter" | "engine" | "none" | "source";
|
|
637
|
-
readonly pagination: "adapter" | "engine" | "none" | "source";
|
|
638
|
-
readonly rechecksFilter: boolean;
|
|
639
|
-
readonly native?: {
|
|
640
|
-
readonly language: string;
|
|
641
|
-
readonly text: string;
|
|
642
|
-
} | undefined;
|
|
643
|
-
} | undefined;
|
|
644
|
-
readonly commits?: number | undefined;
|
|
645
|
-
readonly complete?: boolean | undefined;
|
|
646
|
-
readonly error?: {
|
|
647
|
-
readonly kind: string;
|
|
648
|
-
readonly message: string;
|
|
649
|
-
} | undefined;
|
|
650
|
-
}[];
|
|
651
|
-
readonly loadCount: number;
|
|
652
|
-
}, string, never, never>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ResolveActionParameters", Schema.Codec<{
|
|
653
|
-
readonly name: string;
|
|
654
|
-
readonly parameters: {
|
|
655
|
-
readonly [x: string]: unknown;
|
|
656
|
-
};
|
|
657
|
-
}, string, never, never>, Schema.Codec<{
|
|
658
|
-
readonly [x: string]: unknown;
|
|
659
|
-
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"SetPin", Schema.Struct<{
|
|
660
|
-
query: Schema.Codec<import("@party-stack/ontology-spec").QueryDocument, string, never, never>;
|
|
661
|
-
options: Schema.optional<Schema.Codec<{
|
|
662
|
-
readonly inputs?: {
|
|
663
|
-
readonly [x: string]: unknown;
|
|
664
|
-
} | undefined;
|
|
665
|
-
readonly attachments?: "all" | "none" | undefined;
|
|
666
|
-
}, string, never, never>>;
|
|
667
|
-
}>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Submit", Schema.Codec<{
|
|
328
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Accept", Schema.Codec<{
|
|
668
329
|
readonly session: {
|
|
669
330
|
readonly client: {
|
|
670
331
|
readonly sourceId: string;
|
|
@@ -698,177 +359,114 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Co
|
|
|
698
359
|
readonly inspectActions?: boolean | undefined;
|
|
699
360
|
};
|
|
700
361
|
} | undefined;
|
|
701
|
-
}, string, never, never>, Schema.Codec<{
|
|
702
|
-
readonly
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
readonly
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
readonly
|
|
745
|
-
readonly
|
|
746
|
-
readonly
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
readonly
|
|
762
|
-
readonly
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
readonly
|
|
766
|
-
readonly cursor?: string | undefined;
|
|
767
|
-
readonly providerOperationId?: string | undefined;
|
|
768
|
-
readonly affected?: readonly {
|
|
769
|
-
readonly objectType: string;
|
|
770
|
-
readonly keys?: readonly (string | number)[] | undefined;
|
|
771
|
-
}[] | undefined;
|
|
772
|
-
readonly affectedComplete?: boolean | undefined;
|
|
773
|
-
readonly attachmentIdMappings?: readonly {
|
|
774
|
-
readonly localId: string;
|
|
775
|
-
readonly remoteId: string;
|
|
776
|
-
}[] | undefined;
|
|
777
|
-
} | undefined;
|
|
778
|
-
readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
779
|
-
readonly submission?: {
|
|
780
|
-
readonly clientId: string;
|
|
781
|
-
readonly sequence: number;
|
|
782
|
-
} | undefined;
|
|
783
|
-
readonly prediction?: "applied" | "dropped" | "none" | undefined;
|
|
784
|
-
readonly predictionFailure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
785
|
-
readonly predictionMessage?: string | undefined;
|
|
786
|
-
}[];
|
|
787
|
-
readonly completed: readonly {
|
|
788
|
-
readonly invocation: {
|
|
789
|
-
readonly id: string;
|
|
790
|
-
readonly name: string;
|
|
791
|
-
readonly parameters: {
|
|
792
|
-
readonly [x: string]: unknown;
|
|
793
|
-
};
|
|
794
|
-
readonly replay?: {
|
|
795
|
-
readonly now: string;
|
|
796
|
-
readonly seed: string;
|
|
797
|
-
} | undefined;
|
|
362
|
+
}, string, never, never>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Demand", Schema.Codec<{
|
|
363
|
+
readonly objectType: string;
|
|
364
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
365
|
+
}, string, never, never>, RpcSchema.Stream<Schema.Literal<"ready">, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ReadAttachment", Schema.Struct<{
|
|
366
|
+
readonly id: Schema.NonEmptyString;
|
|
367
|
+
readonly type: Schema.optional<Schema.String>;
|
|
368
|
+
readonly source: Schema.optional<Schema.Struct<{
|
|
369
|
+
readonly objectType: Schema.String;
|
|
370
|
+
readonly primaryKey: Schema.Union<readonly [Schema.String, Schema.Number]>;
|
|
371
|
+
readonly property: Schema.String;
|
|
372
|
+
}>>;
|
|
373
|
+
}>, RpcSchema.Stream<Schema.Union<readonly [Schema.Struct<{
|
|
374
|
+
readonly kind: Schema.Literal<"metadata">;
|
|
375
|
+
readonly type: Schema.String;
|
|
376
|
+
readonly size: Schema.optional<Schema.Int>;
|
|
377
|
+
readonly name: Schema.optional<Schema.String>;
|
|
378
|
+
}>, Schema.Struct<{
|
|
379
|
+
readonly kind: Schema.Literal<"bytes">;
|
|
380
|
+
readonly bytes: Schema.Uint8ArrayFromBase64;
|
|
381
|
+
}>]>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"CreateAttachment", Schema.Struct<{
|
|
382
|
+
readonly size: Schema.optional<Schema.Int>;
|
|
383
|
+
readonly type: Schema.String;
|
|
384
|
+
readonly name: Schema.optional<Schema.String>;
|
|
385
|
+
readonly id: Schema.optional<Schema.NonEmptyString>;
|
|
386
|
+
readonly target: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
387
|
+
readonly kind: Schema.Literal<"objectProperty">;
|
|
388
|
+
readonly objectType: Schema.String;
|
|
389
|
+
readonly property: Schema.String;
|
|
390
|
+
}>, Schema.Struct<{
|
|
391
|
+
readonly kind: Schema.Literal<"actionParameter">;
|
|
392
|
+
readonly actionType: Schema.String;
|
|
393
|
+
readonly parameter: Schema.String;
|
|
394
|
+
}>]>>;
|
|
395
|
+
readonly eager: Schema.optional<Schema.Boolean>;
|
|
396
|
+
}>, RpcSchema.Stream<Schema.Union<readonly [Schema.Struct<{
|
|
397
|
+
readonly kind: Schema.Literal<"ready">;
|
|
398
|
+
readonly uploadId: Schema.NonEmptyString;
|
|
399
|
+
}>, Schema.Struct<{
|
|
400
|
+
readonly kind: Schema.Literal<"complete">;
|
|
401
|
+
readonly attachment: Schema.Struct<{
|
|
402
|
+
readonly id: Schema.NonEmptyString;
|
|
403
|
+
readonly type: Schema.optional<Schema.String>;
|
|
404
|
+
readonly source: Schema.optional<Schema.Struct<{
|
|
405
|
+
readonly objectType: Schema.String;
|
|
406
|
+
readonly primaryKey: Schema.Union<readonly [Schema.String, Schema.Number]>;
|
|
407
|
+
readonly property: Schema.String;
|
|
408
|
+
}>>;
|
|
409
|
+
}>;
|
|
410
|
+
}>]>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"WriteAttachmentChunk", Schema.Struct<{
|
|
411
|
+
readonly uploadId: Schema.NonEmptyString;
|
|
412
|
+
readonly sequence: Schema.Int;
|
|
413
|
+
readonly bytes: Schema.Uint8ArrayFromBase64;
|
|
414
|
+
readonly end: Schema.Boolean;
|
|
415
|
+
}>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"PullChanges", Schema.Struct<{
|
|
416
|
+
readonly cursor: Schema.optional<Schema.String>;
|
|
417
|
+
readonly limit: Schema.optional<Schema.Int>;
|
|
418
|
+
}>, Schema.Codec<{
|
|
419
|
+
readonly commits: readonly {
|
|
420
|
+
readonly cursor: string;
|
|
421
|
+
readonly changes: readonly ({
|
|
422
|
+
readonly kind: "put";
|
|
423
|
+
readonly objectType: string;
|
|
424
|
+
readonly key: string | number;
|
|
425
|
+
readonly value: {
|
|
426
|
+
readonly [x: string]: unknown;
|
|
798
427
|
};
|
|
799
|
-
|
|
800
|
-
readonly
|
|
801
|
-
readonly sequence: number;
|
|
802
|
-
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
803
|
-
readonly optimistic: boolean;
|
|
804
|
-
readonly attempts: number;
|
|
805
|
-
readonly retryFromAttempt?: number | undefined;
|
|
806
|
-
readonly nextAttemptAt?: number | undefined;
|
|
807
|
-
readonly failureMessage?: string | undefined;
|
|
808
|
-
readonly failureIssues?: readonly {
|
|
809
|
-
readonly message: string;
|
|
810
|
-
readonly path?: readonly (string | number)[] | undefined;
|
|
811
|
-
readonly code?: string | undefined;
|
|
812
|
-
readonly category?: "custom" | "input" | "reference" | undefined;
|
|
813
|
-
readonly source?: "parameter" | "submission" | "user-facing" | undefined;
|
|
814
|
-
readonly messageSource?: "configured" | "standard" | undefined;
|
|
815
|
-
}[] | undefined;
|
|
816
|
-
readonly completedAt?: number | undefined;
|
|
817
|
-
readonly retryRequiresAcknowledgement?: boolean | undefined;
|
|
818
|
-
readonly failureOutcome?: "not-committed" | "unknown" | undefined;
|
|
819
|
-
readonly failureRetryable?: boolean | undefined;
|
|
820
|
-
readonly receipt?: {
|
|
821
|
-
readonly operationId: string;
|
|
822
|
-
readonly outcome: "committed";
|
|
823
|
-
readonly result?: unknown;
|
|
824
|
-
readonly cursor?: string | undefined;
|
|
825
|
-
readonly providerOperationId?: string | undefined;
|
|
826
|
-
readonly affected?: readonly {
|
|
827
|
-
readonly objectType: string;
|
|
828
|
-
readonly keys?: readonly (string | number)[] | undefined;
|
|
829
|
-
}[] | undefined;
|
|
830
|
-
readonly affectedComplete?: boolean | undefined;
|
|
831
|
-
readonly attachmentIdMappings?: readonly {
|
|
832
|
-
readonly localId: string;
|
|
833
|
-
readonly remoteId: string;
|
|
834
|
-
}[] | undefined;
|
|
835
|
-
} | undefined;
|
|
836
|
-
readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
837
|
-
readonly submission?: {
|
|
838
|
-
readonly clientId: string;
|
|
839
|
-
readonly sequence: number;
|
|
840
|
-
} | undefined;
|
|
841
|
-
readonly prediction?: "applied" | "dropped" | "none" | undefined;
|
|
842
|
-
readonly predictionFailure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
843
|
-
readonly predictionMessage?: string | undefined;
|
|
844
|
-
}[];
|
|
845
|
-
};
|
|
846
|
-
readonly client: {
|
|
847
|
-
readonly client: {
|
|
848
|
-
readonly sourceId: string;
|
|
849
|
-
readonly clientId: string;
|
|
850
|
-
readonly resumeKey: string;
|
|
851
|
-
};
|
|
852
|
-
readonly connectionId: string;
|
|
853
|
-
readonly expiresAt: number;
|
|
854
|
-
readonly acceptedThrough: number;
|
|
855
|
-
readonly acknowledgedThrough: number;
|
|
856
|
-
readonly deliveredThrough: number;
|
|
857
|
-
readonly deliveredRevision: number;
|
|
858
|
-
readonly appliedRevision: number;
|
|
859
|
-
readonly viewGeneration?: number | undefined;
|
|
860
|
-
readonly viewIdentity?: string | undefined;
|
|
861
|
-
readonly deliveredViewGeneration?: number | undefined;
|
|
862
|
-
};
|
|
863
|
-
readonly coverage?: readonly {
|
|
864
|
-
readonly subset: {
|
|
428
|
+
} | {
|
|
429
|
+
readonly kind: "delete";
|
|
865
430
|
readonly objectType: string;
|
|
866
|
-
readonly
|
|
867
|
-
};
|
|
868
|
-
readonly
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
431
|
+
readonly key: string | number;
|
|
432
|
+
})[];
|
|
433
|
+
readonly operationId?: string | undefined;
|
|
434
|
+
}[];
|
|
435
|
+
readonly cursor: string;
|
|
436
|
+
readonly hasMore: boolean;
|
|
437
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Decrypt", Schema.Struct<{
|
|
438
|
+
readonly value: Schema.Struct<{
|
|
439
|
+
readonly ciphertext: Schema.NonEmptyString;
|
|
440
|
+
readonly source: Schema.optional<Schema.Struct<{
|
|
441
|
+
readonly objectType: Schema.NonEmptyString;
|
|
442
|
+
readonly primaryKey: Schema.Union<readonly [Schema.String, Schema.Finite]>;
|
|
443
|
+
readonly property: Schema.NonEmptyString;
|
|
444
|
+
}>>;
|
|
445
|
+
}>;
|
|
446
|
+
readonly cache: Schema.optional<Schema.Boolean>;
|
|
447
|
+
}>, Schema.Codec<{
|
|
448
|
+
readonly value: unknown;
|
|
449
|
+
readonly ciphertext?: string | undefined;
|
|
450
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"AttachmentMetadata", Schema.Struct<{
|
|
451
|
+
readonly attachment: Schema.Struct<{
|
|
452
|
+
readonly id: Schema.NonEmptyString;
|
|
453
|
+
readonly type: Schema.optional<Schema.String>;
|
|
454
|
+
readonly source: Schema.optional<Schema.Struct<{
|
|
455
|
+
readonly objectType: Schema.String;
|
|
456
|
+
readonly primaryKey: Schema.Union<readonly [Schema.String, Schema.Number]>;
|
|
457
|
+
readonly property: Schema.String;
|
|
458
|
+
}>>;
|
|
459
|
+
}>;
|
|
460
|
+
readonly select: Schema.optional<Schema.$Array<Schema.Literals<readonly ["size", "type", "name", "dimensions"]>>>;
|
|
461
|
+
}>, Schema.Struct<{
|
|
462
|
+
readonly size: Schema.optional<Schema.Number>;
|
|
463
|
+
readonly type: Schema.optional<Schema.String>;
|
|
464
|
+
readonly name: Schema.optional<Schema.String>;
|
|
465
|
+
readonly dimensions: Schema.optional<Schema.Struct<{
|
|
466
|
+
readonly width: Schema.Number;
|
|
467
|
+
readonly height: Schema.Number;
|
|
468
|
+
}>>;
|
|
469
|
+
}>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"SubscribeSelection", Schema.Struct<{
|
|
872
470
|
selection: Schema.Codec<{
|
|
873
471
|
readonly subsets: readonly import("@party-stack/ontology-spec/query").ObjectSubset[];
|
|
874
472
|
}, string, never, never>;
|
|
@@ -1166,7 +764,257 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Co
|
|
|
1166
764
|
readonly deliveredViewGeneration?: number | undefined;
|
|
1167
765
|
} | undefined;
|
|
1168
766
|
} | undefined;
|
|
1169
|
-
}, string, never, never>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"
|
|
767
|
+
}, string, never, never>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"UpdateView", Schema.Struct<{
|
|
768
|
+
session: Schema.Struct<{
|
|
769
|
+
readonly client: Schema.Struct<{
|
|
770
|
+
readonly sourceId: Schema.NonEmptyString;
|
|
771
|
+
readonly clientId: Schema.NonEmptyString;
|
|
772
|
+
readonly resumeKey: Schema.NonEmptyString;
|
|
773
|
+
}>;
|
|
774
|
+
readonly connectionId: Schema.NonEmptyString;
|
|
775
|
+
}>;
|
|
776
|
+
view: Schema.Codec<{
|
|
777
|
+
readonly generation: number;
|
|
778
|
+
readonly selection: {
|
|
779
|
+
readonly subsets: readonly {
|
|
780
|
+
readonly objectType: string;
|
|
781
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
782
|
+
}[];
|
|
783
|
+
readonly actionIds: readonly string[];
|
|
784
|
+
readonly inspectActions?: boolean | undefined;
|
|
785
|
+
};
|
|
786
|
+
}, string, never, never>;
|
|
787
|
+
}>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"AckDelivery", Schema.Struct<{
|
|
788
|
+
kind: Schema.Literals<readonly ["committed", "speculative"]>;
|
|
789
|
+
position: Schema.Struct<{
|
|
790
|
+
readonly streamId: Schema.NonEmptyString;
|
|
791
|
+
readonly sequence: Schema.Int;
|
|
792
|
+
}>;
|
|
793
|
+
}>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"OpenClient", Schema.Struct<{
|
|
794
|
+
resume: Schema.optional<Schema.Struct<{
|
|
795
|
+
readonly sourceId: Schema.NonEmptyString;
|
|
796
|
+
readonly clientId: Schema.NonEmptyString;
|
|
797
|
+
readonly resumeKey: Schema.NonEmptyString;
|
|
798
|
+
}>>;
|
|
799
|
+
}>, Schema.Struct<{
|
|
800
|
+
readonly client: Schema.Struct<{
|
|
801
|
+
readonly sourceId: Schema.NonEmptyString;
|
|
802
|
+
readonly clientId: Schema.NonEmptyString;
|
|
803
|
+
readonly resumeKey: Schema.NonEmptyString;
|
|
804
|
+
}>;
|
|
805
|
+
readonly connectionId: Schema.NonEmptyString;
|
|
806
|
+
readonly expiresAt: Schema.Finite;
|
|
807
|
+
readonly acceptedThrough: Schema.Int;
|
|
808
|
+
readonly acknowledgedThrough: Schema.Int;
|
|
809
|
+
readonly deliveredThrough: Schema.Int;
|
|
810
|
+
readonly deliveredRevision: Schema.Int;
|
|
811
|
+
readonly appliedRevision: Schema.Int;
|
|
812
|
+
readonly viewGeneration: Schema.optional<Schema.Int>;
|
|
813
|
+
readonly viewIdentity: Schema.optional<Schema.String>;
|
|
814
|
+
readonly deliveredViewGeneration: Schema.optional<Schema.Int>;
|
|
815
|
+
}>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Read", Schema.Struct<{
|
|
816
|
+
session: Schema.Struct<{
|
|
817
|
+
readonly client: Schema.Struct<{
|
|
818
|
+
readonly sourceId: Schema.NonEmptyString;
|
|
819
|
+
readonly clientId: Schema.NonEmptyString;
|
|
820
|
+
readonly resumeKey: Schema.NonEmptyString;
|
|
821
|
+
}>;
|
|
822
|
+
readonly connectionId: Schema.NonEmptyString;
|
|
823
|
+
}>;
|
|
824
|
+
view: Schema.optional<Schema.Codec<{
|
|
825
|
+
readonly generation: number;
|
|
826
|
+
readonly selection: {
|
|
827
|
+
readonly subsets: readonly {
|
|
828
|
+
readonly objectType: string;
|
|
829
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
830
|
+
}[];
|
|
831
|
+
readonly actionIds: readonly string[];
|
|
832
|
+
readonly inspectActions?: boolean | undefined;
|
|
833
|
+
};
|
|
834
|
+
}, string, never, never>>;
|
|
835
|
+
}>, Schema.Codec<{
|
|
836
|
+
readonly state: {
|
|
837
|
+
readonly sourceId: string;
|
|
838
|
+
readonly revision: number;
|
|
839
|
+
readonly definition: string;
|
|
840
|
+
readonly view?: {
|
|
841
|
+
readonly generation: number;
|
|
842
|
+
} | undefined;
|
|
843
|
+
readonly objects: readonly {
|
|
844
|
+
readonly objectType: string;
|
|
845
|
+
readonly base: readonly {
|
|
846
|
+
readonly key: string | number;
|
|
847
|
+
readonly value: {
|
|
848
|
+
readonly [x: string]: unknown;
|
|
849
|
+
};
|
|
850
|
+
}[];
|
|
851
|
+
readonly overrides: readonly {
|
|
852
|
+
readonly key: string | number;
|
|
853
|
+
readonly value: {
|
|
854
|
+
readonly deleted: true;
|
|
855
|
+
} | {
|
|
856
|
+
readonly deleted: false;
|
|
857
|
+
readonly value: {
|
|
858
|
+
readonly [x: string]: unknown;
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
}[];
|
|
862
|
+
}[];
|
|
863
|
+
readonly pending: readonly {
|
|
864
|
+
readonly invocation: {
|
|
865
|
+
readonly id: string;
|
|
866
|
+
readonly name: string;
|
|
867
|
+
readonly parameters: {
|
|
868
|
+
readonly [x: string]: unknown;
|
|
869
|
+
};
|
|
870
|
+
readonly replay?: {
|
|
871
|
+
readonly now: string;
|
|
872
|
+
readonly seed: string;
|
|
873
|
+
} | undefined;
|
|
874
|
+
};
|
|
875
|
+
readonly requestIdentity: string;
|
|
876
|
+
readonly createdAt: number;
|
|
877
|
+
readonly sequence: number;
|
|
878
|
+
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
879
|
+
readonly optimistic: boolean;
|
|
880
|
+
readonly attempts: number;
|
|
881
|
+
readonly retryFromAttempt?: number | undefined;
|
|
882
|
+
readonly nextAttemptAt?: number | undefined;
|
|
883
|
+
readonly failureMessage?: string | undefined;
|
|
884
|
+
readonly failureIssues?: readonly {
|
|
885
|
+
readonly message: string;
|
|
886
|
+
readonly path?: readonly (string | number)[] | undefined;
|
|
887
|
+
readonly code?: string | undefined;
|
|
888
|
+
readonly category?: "custom" | "input" | "reference" | undefined;
|
|
889
|
+
readonly source?: "parameter" | "submission" | "user-facing" | undefined;
|
|
890
|
+
readonly messageSource?: "configured" | "standard" | undefined;
|
|
891
|
+
}[] | undefined;
|
|
892
|
+
readonly completedAt?: number | undefined;
|
|
893
|
+
readonly retryRequiresAcknowledgement?: boolean | undefined;
|
|
894
|
+
readonly failureOutcome?: "not-committed" | "unknown" | undefined;
|
|
895
|
+
readonly failureRetryable?: boolean | undefined;
|
|
896
|
+
readonly receipt?: {
|
|
897
|
+
readonly operationId: string;
|
|
898
|
+
readonly outcome: "committed";
|
|
899
|
+
readonly result?: unknown;
|
|
900
|
+
readonly cursor?: string | undefined;
|
|
901
|
+
readonly providerOperationId?: string | undefined;
|
|
902
|
+
readonly affected?: readonly {
|
|
903
|
+
readonly objectType: string;
|
|
904
|
+
readonly keys?: readonly (string | number)[] | undefined;
|
|
905
|
+
}[] | undefined;
|
|
906
|
+
readonly affectedComplete?: boolean | undefined;
|
|
907
|
+
readonly attachmentIdMappings?: readonly {
|
|
908
|
+
readonly localId: string;
|
|
909
|
+
readonly remoteId: string;
|
|
910
|
+
}[] | undefined;
|
|
911
|
+
} | undefined;
|
|
912
|
+
readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
913
|
+
readonly submission?: {
|
|
914
|
+
readonly clientId: string;
|
|
915
|
+
readonly sequence: number;
|
|
916
|
+
} | undefined;
|
|
917
|
+
readonly prediction?: "applied" | "dropped" | "none" | undefined;
|
|
918
|
+
readonly predictionFailure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
919
|
+
readonly predictionMessage?: string | undefined;
|
|
920
|
+
}[];
|
|
921
|
+
readonly completed: readonly {
|
|
922
|
+
readonly invocation: {
|
|
923
|
+
readonly id: string;
|
|
924
|
+
readonly name: string;
|
|
925
|
+
readonly parameters: {
|
|
926
|
+
readonly [x: string]: unknown;
|
|
927
|
+
};
|
|
928
|
+
readonly replay?: {
|
|
929
|
+
readonly now: string;
|
|
930
|
+
readonly seed: string;
|
|
931
|
+
} | undefined;
|
|
932
|
+
};
|
|
933
|
+
readonly requestIdentity: string;
|
|
934
|
+
readonly createdAt: number;
|
|
935
|
+
readonly sequence: number;
|
|
936
|
+
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
937
|
+
readonly optimistic: boolean;
|
|
938
|
+
readonly attempts: number;
|
|
939
|
+
readonly retryFromAttempt?: number | undefined;
|
|
940
|
+
readonly nextAttemptAt?: number | undefined;
|
|
941
|
+
readonly failureMessage?: string | undefined;
|
|
942
|
+
readonly failureIssues?: readonly {
|
|
943
|
+
readonly message: string;
|
|
944
|
+
readonly path?: readonly (string | number)[] | undefined;
|
|
945
|
+
readonly code?: string | undefined;
|
|
946
|
+
readonly category?: "custom" | "input" | "reference" | undefined;
|
|
947
|
+
readonly source?: "parameter" | "submission" | "user-facing" | undefined;
|
|
948
|
+
readonly messageSource?: "configured" | "standard" | undefined;
|
|
949
|
+
}[] | undefined;
|
|
950
|
+
readonly completedAt?: number | undefined;
|
|
951
|
+
readonly retryRequiresAcknowledgement?: boolean | undefined;
|
|
952
|
+
readonly failureOutcome?: "not-committed" | "unknown" | undefined;
|
|
953
|
+
readonly failureRetryable?: boolean | undefined;
|
|
954
|
+
readonly receipt?: {
|
|
955
|
+
readonly operationId: string;
|
|
956
|
+
readonly outcome: "committed";
|
|
957
|
+
readonly result?: unknown;
|
|
958
|
+
readonly cursor?: string | undefined;
|
|
959
|
+
readonly providerOperationId?: string | undefined;
|
|
960
|
+
readonly affected?: readonly {
|
|
961
|
+
readonly objectType: string;
|
|
962
|
+
readonly keys?: readonly (string | number)[] | undefined;
|
|
963
|
+
}[] | undefined;
|
|
964
|
+
readonly affectedComplete?: boolean | undefined;
|
|
965
|
+
readonly attachmentIdMappings?: readonly {
|
|
966
|
+
readonly localId: string;
|
|
967
|
+
readonly remoteId: string;
|
|
968
|
+
}[] | undefined;
|
|
969
|
+
} | undefined;
|
|
970
|
+
readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
971
|
+
readonly submission?: {
|
|
972
|
+
readonly clientId: string;
|
|
973
|
+
readonly sequence: number;
|
|
974
|
+
} | undefined;
|
|
975
|
+
readonly prediction?: "applied" | "dropped" | "none" | undefined;
|
|
976
|
+
readonly predictionFailure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
977
|
+
readonly predictionMessage?: string | undefined;
|
|
978
|
+
}[];
|
|
979
|
+
};
|
|
980
|
+
readonly client: {
|
|
981
|
+
readonly client: {
|
|
982
|
+
readonly sourceId: string;
|
|
983
|
+
readonly clientId: string;
|
|
984
|
+
readonly resumeKey: string;
|
|
985
|
+
};
|
|
986
|
+
readonly connectionId: string;
|
|
987
|
+
readonly expiresAt: number;
|
|
988
|
+
readonly acceptedThrough: number;
|
|
989
|
+
readonly acknowledgedThrough: number;
|
|
990
|
+
readonly deliveredThrough: number;
|
|
991
|
+
readonly deliveredRevision: number;
|
|
992
|
+
readonly appliedRevision: number;
|
|
993
|
+
readonly viewGeneration?: number | undefined;
|
|
994
|
+
readonly viewIdentity?: string | undefined;
|
|
995
|
+
readonly deliveredViewGeneration?: number | undefined;
|
|
996
|
+
};
|
|
997
|
+
readonly coverage?: readonly {
|
|
998
|
+
readonly subset: {
|
|
999
|
+
readonly objectType: string;
|
|
1000
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
1001
|
+
};
|
|
1002
|
+
readonly complete: boolean;
|
|
1003
|
+
readonly cached?: boolean | undefined;
|
|
1004
|
+
}[] | undefined;
|
|
1005
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Acknowledge", Schema.Struct<{
|
|
1006
|
+
session: Schema.Struct<{
|
|
1007
|
+
readonly client: Schema.Struct<{
|
|
1008
|
+
readonly sourceId: Schema.NonEmptyString;
|
|
1009
|
+
readonly clientId: Schema.NonEmptyString;
|
|
1010
|
+
readonly resumeKey: Schema.NonEmptyString;
|
|
1011
|
+
}>;
|
|
1012
|
+
readonly connectionId: Schema.NonEmptyString;
|
|
1013
|
+
}>;
|
|
1014
|
+
revision: Schema.Int;
|
|
1015
|
+
through: Schema.Int;
|
|
1016
|
+
viewGeneration: Schema.optional<Schema.Int>;
|
|
1017
|
+
}>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Traces", Schema.Void, RpcSchema.Stream<Schema.$Array<Schema.Struct<{
|
|
1170
1018
|
readonly id: Schema.String;
|
|
1171
1019
|
readonly traceId: Schema.String;
|
|
1172
1020
|
readonly parentId: Schema.optional<Schema.String>;
|
|
@@ -1185,75 +1033,182 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Co
|
|
|
1185
1033
|
}>>>;
|
|
1186
1034
|
readonly eventCount: Schema.optional<Schema.Number>;
|
|
1187
1035
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1188
|
-
}>>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"
|
|
1189
|
-
|
|
1190
|
-
readonly
|
|
1191
|
-
readonly
|
|
1192
|
-
readonly
|
|
1193
|
-
readonly
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
readonly
|
|
1036
|
+
}>>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ReplicaStatus", Schema.Void, RpcSchema.Stream<Schema.Codec<{
|
|
1037
|
+
readonly capacity?: {
|
|
1038
|
+
readonly memory?: {
|
|
1039
|
+
readonly scope: "database" | "filesystem" | "isolate" | "origin" | "process";
|
|
1040
|
+
readonly usedBytes?: number | undefined;
|
|
1041
|
+
readonly limitBytes?: number | undefined;
|
|
1042
|
+
readonly availableBytes?: number | undefined;
|
|
1043
|
+
} | undefined;
|
|
1044
|
+
readonly storage?: {
|
|
1045
|
+
readonly scope: "database" | "filesystem" | "isolate" | "origin" | "process";
|
|
1046
|
+
readonly usedBytes?: number | undefined;
|
|
1047
|
+
readonly limitBytes?: number | undefined;
|
|
1048
|
+
readonly availableBytes?: number | undefined;
|
|
1049
|
+
} | undefined;
|
|
1050
|
+
readonly memoryError?: string | undefined;
|
|
1051
|
+
readonly storageError?: string | undefined;
|
|
1052
|
+
} | undefined;
|
|
1053
|
+
readonly cache?: {
|
|
1054
|
+
readonly attachments?: {
|
|
1055
|
+
readonly bytes: number;
|
|
1056
|
+
readonly maxBytes?: number | undefined;
|
|
1057
|
+
readonly targetBytes?: number | undefined;
|
|
1058
|
+
} | undefined;
|
|
1059
|
+
readonly objects: {
|
|
1060
|
+
readonly byObjectType?: readonly {
|
|
1201
1061
|
readonly objectType: string;
|
|
1202
|
-
readonly
|
|
1203
|
-
}[];
|
|
1204
|
-
readonly
|
|
1205
|
-
readonly
|
|
1062
|
+
readonly bytes: number;
|
|
1063
|
+
}[] | undefined;
|
|
1064
|
+
readonly bytes: number;
|
|
1065
|
+
readonly maxBytes?: number | undefined;
|
|
1066
|
+
readonly targetBytes?: number | undefined;
|
|
1206
1067
|
};
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
readonly
|
|
1210
|
-
readonly
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
}, string, never, never>, Schema.Codec<{
|
|
1215
|
-
readonly certain: false;
|
|
1216
|
-
} | {
|
|
1217
|
-
readonly certain: true;
|
|
1218
|
-
readonly value: {
|
|
1219
|
-
readonly kind: "ok";
|
|
1220
|
-
readonly value: void;
|
|
1068
|
+
} | undefined;
|
|
1069
|
+
readonly sourceId: string;
|
|
1070
|
+
readonly upstreamId: string;
|
|
1071
|
+
readonly mode: "adapter" | "protocol";
|
|
1072
|
+
readonly networkOnline: boolean;
|
|
1073
|
+
readonly authentication?: {
|
|
1074
|
+
readonly status: "pending";
|
|
1221
1075
|
} | {
|
|
1222
|
-
readonly
|
|
1223
|
-
readonly
|
|
1224
|
-
readonly
|
|
1225
|
-
readonly
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
readonly [x: string]: unknown;
|
|
1076
|
+
readonly status: "active";
|
|
1077
|
+
readonly expiration?: {
|
|
1078
|
+
readonly expiresAt: number;
|
|
1079
|
+
readonly refreshable: boolean;
|
|
1080
|
+
} | undefined;
|
|
1081
|
+
} | {
|
|
1082
|
+
readonly status: "inactive";
|
|
1083
|
+
} | {
|
|
1084
|
+
readonly status: "needs-auth";
|
|
1085
|
+
readonly error?: string | undefined;
|
|
1086
|
+
} | {
|
|
1087
|
+
readonly status: "error";
|
|
1088
|
+
readonly error: string;
|
|
1236
1089
|
} | undefined;
|
|
1237
|
-
readonly
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1090
|
+
readonly watchError?: {
|
|
1091
|
+
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
1092
|
+
readonly message: string;
|
|
1093
|
+
readonly retryable: boolean;
|
|
1094
|
+
} | undefined;
|
|
1095
|
+
readonly definition?: {
|
|
1096
|
+
readonly hash: string;
|
|
1097
|
+
readonly error?: {
|
|
1098
|
+
readonly hash?: string | undefined;
|
|
1099
|
+
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
1100
|
+
readonly message: string;
|
|
1244
1101
|
} | undefined;
|
|
1245
|
-
readonly attachments: "all" | "none";
|
|
1246
1102
|
} | undefined;
|
|
1247
|
-
readonly
|
|
1103
|
+
readonly replicationError?: {
|
|
1248
1104
|
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
1249
1105
|
readonly message: string;
|
|
1106
|
+
readonly recovery: "reconnect" | "session" | "snapshot" | "stop";
|
|
1250
1107
|
} | undefined;
|
|
1251
|
-
|
|
1252
|
-
readonly
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1108
|
+
readonly syncing: boolean;
|
|
1109
|
+
readonly lastSync?: {
|
|
1110
|
+
readonly startedAt: number;
|
|
1111
|
+
readonly finishedAt: number;
|
|
1112
|
+
readonly outcome: "failure" | "interrupted" | "success";
|
|
1113
|
+
readonly error?: {
|
|
1114
|
+
readonly kind: string;
|
|
1115
|
+
readonly message: string;
|
|
1116
|
+
} | undefined;
|
|
1117
|
+
} | undefined;
|
|
1118
|
+
readonly demands: readonly {
|
|
1119
|
+
readonly objectType: string;
|
|
1120
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
1121
|
+
readonly references: number;
|
|
1122
|
+
readonly idleUntil?: number | undefined;
|
|
1123
|
+
readonly watchers: number;
|
|
1124
|
+
readonly loadError?: {
|
|
1125
|
+
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
1126
|
+
readonly message: string;
|
|
1127
|
+
readonly retryable: boolean;
|
|
1128
|
+
} | undefined;
|
|
1129
|
+
readonly watchError?: {
|
|
1130
|
+
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
1131
|
+
readonly message: string;
|
|
1132
|
+
readonly retryable: boolean;
|
|
1133
|
+
} | undefined;
|
|
1134
|
+
readonly revision: number;
|
|
1135
|
+
readonly installed: number;
|
|
1136
|
+
readonly coveredBy?: {
|
|
1137
|
+
readonly objectType: string;
|
|
1138
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
1139
|
+
} | undefined;
|
|
1140
|
+
readonly coverageProof?: {
|
|
1141
|
+
readonly reason: "collection" | "primary-key" | "query";
|
|
1142
|
+
readonly maintainedBy: "journal" | "poll" | "snapshot" | "watch";
|
|
1143
|
+
readonly pollIntervalMs?: number | undefined;
|
|
1144
|
+
readonly stale?: boolean | undefined;
|
|
1145
|
+
readonly confirmedAt?: number | undefined;
|
|
1146
|
+
} | undefined;
|
|
1147
|
+
}[];
|
|
1148
|
+
readonly outbox: {
|
|
1149
|
+
readonly [x: string]: number;
|
|
1150
|
+
};
|
|
1151
|
+
readonly loads: readonly {
|
|
1152
|
+
readonly id: number;
|
|
1153
|
+
readonly spanId?: string | undefined;
|
|
1154
|
+
readonly traceId?: string | undefined;
|
|
1155
|
+
readonly operation: "loadSubset" | "pullChanges";
|
|
1156
|
+
readonly reason: "demand" | "journal" | "receipt" | "refresh" | "repair";
|
|
1157
|
+
readonly subset?: {
|
|
1158
|
+
readonly objectType: string;
|
|
1159
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
1160
|
+
} | undefined;
|
|
1161
|
+
readonly startedAt: number;
|
|
1162
|
+
readonly finishedAt?: number | undefined;
|
|
1163
|
+
readonly outcome: "failure" | "interrupted" | "running" | "success";
|
|
1164
|
+
readonly rows?: number | undefined;
|
|
1165
|
+
readonly fetchedRows?: number | undefined;
|
|
1166
|
+
readonly pushdown?: {
|
|
1167
|
+
readonly source: string;
|
|
1168
|
+
readonly predicates: readonly {
|
|
1169
|
+
readonly path: readonly number[];
|
|
1170
|
+
readonly execution: "adapter" | "candidate" | "engine" | "source";
|
|
1171
|
+
}[];
|
|
1172
|
+
readonly sorting: "adapter" | "engine" | "none" | "source";
|
|
1173
|
+
readonly pagination: "adapter" | "engine" | "none" | "source";
|
|
1174
|
+
readonly rechecksFilter: boolean;
|
|
1175
|
+
readonly native?: {
|
|
1176
|
+
readonly language: string;
|
|
1177
|
+
readonly text: string;
|
|
1178
|
+
} | undefined;
|
|
1179
|
+
} | undefined;
|
|
1180
|
+
readonly commits?: number | undefined;
|
|
1181
|
+
readonly complete?: boolean | undefined;
|
|
1182
|
+
readonly error?: {
|
|
1183
|
+
readonly kind: string;
|
|
1184
|
+
readonly message: string;
|
|
1185
|
+
} | undefined;
|
|
1186
|
+
}[];
|
|
1187
|
+
readonly loadCount: number;
|
|
1188
|
+
}, string, never, never>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Changes", Schema.Void, RpcSchema.Stream<Schema.Literal<"invalidate">, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"WatchChanges", Schema.Void, RpcSchema.Stream<Schema.Literal<"invalidate">, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Describe", Schema.Void, Schema.Struct<{
|
|
1189
|
+
readonly version: Schema.Literals<readonly [1, 2]>;
|
|
1190
|
+
readonly replication: Schema.Literals<readonly ["committed", "speculative"]>;
|
|
1191
|
+
readonly definitionHash: Schema.optional<Schema.String>;
|
|
1192
|
+
readonly contractHash: Schema.optional<Schema.String>;
|
|
1193
|
+
readonly sourceId: Schema.NonEmptyString;
|
|
1194
|
+
readonly context: Schema.optional<Schema.Codec<{
|
|
1195
|
+
readonly [x: string]: unknown;
|
|
1196
|
+
}, string, never, never>>;
|
|
1197
|
+
readonly supportsIdempotency: Schema.Boolean;
|
|
1198
|
+
readonly delivery: Schema.optional<Schema.Boolean>;
|
|
1199
|
+
readonly stateDelivery: Schema.optional<Schema.Boolean>;
|
|
1200
|
+
readonly changes: Schema.optional<Schema.Boolean>;
|
|
1201
|
+
readonly watchChanges: Schema.optional<Schema.Boolean>;
|
|
1202
|
+
readonly watchSubset: Schema.optional<Schema.Boolean>;
|
|
1203
|
+
readonly actionParameterResolution: Schema.optional<Schema.Boolean>;
|
|
1204
|
+
readonly queries: Schema.optional<Schema.Boolean>;
|
|
1205
|
+
readonly system: Schema.optional<Schema.Boolean>;
|
|
1206
|
+
readonly meta: Schema.optional<Schema.Boolean>;
|
|
1207
|
+
readonly attachments: Schema.optional<Schema.Struct<{
|
|
1208
|
+
readonly stage: Schema.Boolean;
|
|
1209
|
+
}>>;
|
|
1210
|
+
readonly encrypted: Schema.optional<Schema.Boolean>;
|
|
1211
|
+
}>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"DeleteLocalData", Schema.Void, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ReleaseOwner", Schema.Void, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never>>;
|
|
1257
1212
|
declare const SubscriptionTracing_base: RpcMiddleware.ServiceClass<SubscriptionTracing, "@party-stack/ontology-server/SubscriptionTracing", never, Schema.Never, never, never, true>;
|
|
1258
1213
|
declare class SubscriptionTracing extends SubscriptionTracing_base {}
|
|
1259
1214
|
export declare const makeTracedRpcClient: <Rpcs extends Rpc.Any>(group: RpcGroup.RpcGroup<Rpcs>) => Effect.Effect<RpcClient.RpcClient.From<Rpc.AddMiddleware<Rpcs, typeof SubscriptionTracing>, import("effect/rpc/RpcClientError").RpcClientError> extends (infer T) ? { [K in keyof T]: T[K]; } : never, never, RpcClient.Protocol | Scope.Scope | Exclude<Rpc.MiddlewareClient<Rpc.AddMiddleware<Rpcs, typeof SubscriptionTracing>>, RpcMiddleware.ForClient<SubscriptionTracing>>>;
|
|
@@ -1346,11 +1301,6 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
1346
1301
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1347
1302
|
readonly context?: Context.Context<never> | undefined;
|
|
1348
1303
|
} | undefined) => AsQueue extends true ? Effect.Effect<import("effect/Queue").Dequeue<"invalidate", BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced"> | Cause.Done<void> | import("effect/rpc/RpcClientError").RpcClientError>, never, Scope.Scope> : Stream.Stream<"invalidate", BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced"> | import("effect/rpc/RpcClientError").RpcClientError, never>;
|
|
1349
|
-
readonly ClearPin: <const AsQueue extends boolean = false, const Discard = false>(input: void, options?: {
|
|
1350
|
-
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1351
|
-
readonly context?: Context.Context<never> | undefined;
|
|
1352
|
-
readonly discard?: Discard | undefined;
|
|
1353
|
-
} | undefined) => Effect.Effect<Discard extends true ? void : void, BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced"> | import("effect/rpc/RpcClientError").RpcClientError | (Discard extends true ? never : BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced">), never>;
|
|
1354
1304
|
readonly ControlOutbox: <const AsQueue extends boolean = false, const Discard = false>(input: unknown, options?: {
|
|
1355
1305
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1356
1306
|
readonly context?: Context.Context<never> | undefined;
|
|
@@ -1439,11 +1389,11 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
1439
1389
|
readonly context?: Context.Context<never> | undefined;
|
|
1440
1390
|
readonly discard?: Discard | undefined;
|
|
1441
1391
|
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1442
|
-
readonly version: 1;
|
|
1392
|
+
readonly version: 1 | 2;
|
|
1443
1393
|
readonly replication: "committed" | "speculative";
|
|
1444
1394
|
readonly definitionHash?: string | undefined;
|
|
1395
|
+
readonly contractHash?: string | undefined;
|
|
1445
1396
|
readonly sourceId: string;
|
|
1446
|
-
readonly ir?: import("@party-stack/ontology-spec").OntologyIR | undefined;
|
|
1447
1397
|
readonly context?: {
|
|
1448
1398
|
readonly [x: string]: unknown;
|
|
1449
1399
|
} | undefined;
|
|
@@ -1455,7 +1405,8 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
1455
1405
|
readonly watchSubset?: boolean | undefined;
|
|
1456
1406
|
readonly actionParameterResolution?: boolean | undefined;
|
|
1457
1407
|
readonly queries?: boolean | undefined;
|
|
1458
|
-
readonly
|
|
1408
|
+
readonly system?: boolean | undefined;
|
|
1409
|
+
readonly meta?: boolean | undefined;
|
|
1459
1410
|
readonly attachments?: {
|
|
1460
1411
|
readonly stage: boolean;
|
|
1461
1412
|
} | undefined;
|
|
@@ -1772,30 +1723,6 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
1772
1723
|
readonly kind: "bytes";
|
|
1773
1724
|
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
1774
1725
|
}, BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced"> | import("effect/rpc/RpcClientError").RpcClientError, never>;
|
|
1775
|
-
readonly ReadPin: <const AsQueue extends boolean = false, const Discard = false>(input: void, options?: {
|
|
1776
|
-
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1777
|
-
readonly context?: Context.Context<never> | undefined;
|
|
1778
|
-
readonly discard?: Discard | undefined;
|
|
1779
|
-
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1780
|
-
readonly query: import("@party-stack/ontology-spec").QueryDocument;
|
|
1781
|
-
readonly inputs?: {
|
|
1782
|
-
readonly [x: string]: unknown;
|
|
1783
|
-
} | undefined;
|
|
1784
|
-
readonly attachments: "all" | "none";
|
|
1785
|
-
readonly ready: boolean;
|
|
1786
|
-
readonly previousGraphRetained: boolean;
|
|
1787
|
-
readonly retainedGraph?: {
|
|
1788
|
-
readonly query: import("@party-stack/ontology-spec").QueryDocument;
|
|
1789
|
-
readonly inputs?: {
|
|
1790
|
-
readonly [x: string]: unknown;
|
|
1791
|
-
} | undefined;
|
|
1792
|
-
readonly attachments: "all" | "none";
|
|
1793
|
-
} | undefined;
|
|
1794
|
-
readonly error?: {
|
|
1795
|
-
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
1796
|
-
readonly message: string;
|
|
1797
|
-
} | undefined;
|
|
1798
|
-
} | undefined, BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced"> | import("effect/rpc/RpcClientError").RpcClientError | (Discard extends true ? never : BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced">), never>;
|
|
1799
1726
|
readonly ReleaseOwner: <const AsQueue extends boolean = false, const Discard = false>(input: void, options?: {
|
|
1800
1727
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1801
1728
|
readonly context?: Context.Context<never> | undefined;
|
|
@@ -1839,14 +1766,6 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
1839
1766
|
readonly targetBytes?: number | undefined;
|
|
1840
1767
|
};
|
|
1841
1768
|
} | undefined;
|
|
1842
|
-
readonly pin?: {
|
|
1843
|
-
readonly ready: boolean;
|
|
1844
|
-
readonly previousGraphRetained: boolean;
|
|
1845
|
-
readonly error?: {
|
|
1846
|
-
readonly kind: string;
|
|
1847
|
-
readonly message: string;
|
|
1848
|
-
} | undefined;
|
|
1849
|
-
} | undefined;
|
|
1850
1769
|
readonly sourceId: string;
|
|
1851
1770
|
readonly upstreamId: string;
|
|
1852
1771
|
readonly mode: "adapter" | "protocol";
|
|
@@ -1873,6 +1792,14 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
1873
1792
|
readonly message: string;
|
|
1874
1793
|
readonly retryable: boolean;
|
|
1875
1794
|
} | undefined;
|
|
1795
|
+
readonly definition?: {
|
|
1796
|
+
readonly hash: string;
|
|
1797
|
+
readonly error?: {
|
|
1798
|
+
readonly hash?: string | undefined;
|
|
1799
|
+
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
1800
|
+
readonly message: string;
|
|
1801
|
+
} | undefined;
|
|
1802
|
+
} | undefined;
|
|
1876
1803
|
readonly replicationError?: {
|
|
1877
1804
|
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
1878
1805
|
readonly message: string;
|
|
@@ -1991,14 +1918,6 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
1991
1918
|
readonly targetBytes?: number | undefined;
|
|
1992
1919
|
};
|
|
1993
1920
|
} | undefined;
|
|
1994
|
-
readonly pin?: {
|
|
1995
|
-
readonly ready: boolean;
|
|
1996
|
-
readonly previousGraphRetained: boolean;
|
|
1997
|
-
readonly error?: {
|
|
1998
|
-
readonly kind: string;
|
|
1999
|
-
readonly message: string;
|
|
2000
|
-
} | undefined;
|
|
2001
|
-
} | undefined;
|
|
2002
1921
|
readonly sourceId: string;
|
|
2003
1922
|
readonly upstreamId: string;
|
|
2004
1923
|
readonly mode: "adapter" | "protocol";
|
|
@@ -2025,6 +1944,14 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2025
1944
|
readonly message: string;
|
|
2026
1945
|
readonly retryable: boolean;
|
|
2027
1946
|
} | undefined;
|
|
1947
|
+
readonly definition?: {
|
|
1948
|
+
readonly hash: string;
|
|
1949
|
+
readonly error?: {
|
|
1950
|
+
readonly hash?: string | undefined;
|
|
1951
|
+
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
1952
|
+
readonly message: string;
|
|
1953
|
+
} | undefined;
|
|
1954
|
+
} | undefined;
|
|
2028
1955
|
readonly replicationError?: {
|
|
2029
1956
|
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
2030
1957
|
readonly message: string;
|
|
@@ -2118,14 +2045,6 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2118
2045
|
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
2119
2046
|
readonly [x: string]: unknown;
|
|
2120
2047
|
}, BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced"> | import("effect/rpc/RpcClientError").RpcClientError | (Discard extends true ? never : BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced">), never>;
|
|
2121
|
-
readonly SetPin: <const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
2122
|
-
readonly query: unknown;
|
|
2123
|
-
readonly options?: unknown;
|
|
2124
|
-
}, options?: {
|
|
2125
|
-
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
2126
|
-
readonly context?: Context.Context<never> | undefined;
|
|
2127
|
-
readonly discard?: Discard | undefined;
|
|
2128
|
-
} | undefined) => Effect.Effect<Discard extends true ? void : void, BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced"> | import("effect/rpc/RpcClientError").RpcClientError | (Discard extends true ? never : BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced">), never>;
|
|
2129
2048
|
readonly Submit: <const AsQueue extends boolean = false, const Discard = false>(input: unknown, options?: {
|
|
2130
2049
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
2131
2050
|
readonly context?: Context.Context<never> | undefined;
|
|
@@ -2961,50 +2880,6 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2961
2880
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
2962
2881
|
readonly context?: Context.Context<never> | undefined;
|
|
2963
2882
|
} | undefined) => AsQueue extends true ? Effect.Effect<import("effect/Queue").Dequeue<"invalidate", BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced"> | Cause.Done<void> | import("effect/rpc/RpcClientError").RpcClientError>, never, Scope.Scope> : Stream.Stream<"invalidate", BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced"> | import("effect/rpc/RpcClientError").RpcClientError, never>;
|
|
2964
|
-
readonly WatchPin: <const AsQueue extends boolean = false, const Discard = false>(input: void, options?: {
|
|
2965
|
-
readonly asQueue?: AsQueue | undefined;
|
|
2966
|
-
readonly streamBufferSize?: number | undefined;
|
|
2967
|
-
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
2968
|
-
readonly context?: Context.Context<never> | undefined;
|
|
2969
|
-
} | undefined) => AsQueue extends true ? Effect.Effect<import("effect/Queue").Dequeue<{
|
|
2970
|
-
readonly query: import("@party-stack/ontology-spec").QueryDocument;
|
|
2971
|
-
readonly inputs?: {
|
|
2972
|
-
readonly [x: string]: unknown;
|
|
2973
|
-
} | undefined;
|
|
2974
|
-
readonly attachments: "all" | "none";
|
|
2975
|
-
readonly ready: boolean;
|
|
2976
|
-
readonly previousGraphRetained: boolean;
|
|
2977
|
-
readonly retainedGraph?: {
|
|
2978
|
-
readonly query: import("@party-stack/ontology-spec").QueryDocument;
|
|
2979
|
-
readonly inputs?: {
|
|
2980
|
-
readonly [x: string]: unknown;
|
|
2981
|
-
} | undefined;
|
|
2982
|
-
readonly attachments: "all" | "none";
|
|
2983
|
-
} | undefined;
|
|
2984
|
-
readonly error?: {
|
|
2985
|
-
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
2986
|
-
readonly message: string;
|
|
2987
|
-
} | undefined;
|
|
2988
|
-
} | undefined, BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced"> | Cause.Done<void> | import("effect/rpc/RpcClientError").RpcClientError>, never, Scope.Scope> : Stream.Stream<{
|
|
2989
|
-
readonly query: import("@party-stack/ontology-spec").QueryDocument;
|
|
2990
|
-
readonly inputs?: {
|
|
2991
|
-
readonly [x: string]: unknown;
|
|
2992
|
-
} | undefined;
|
|
2993
|
-
readonly attachments: "all" | "none";
|
|
2994
|
-
readonly ready: boolean;
|
|
2995
|
-
readonly previousGraphRetained: boolean;
|
|
2996
|
-
readonly retainedGraph?: {
|
|
2997
|
-
readonly query: import("@party-stack/ontology-spec").QueryDocument;
|
|
2998
|
-
readonly inputs?: {
|
|
2999
|
-
readonly [x: string]: unknown;
|
|
3000
|
-
} | undefined;
|
|
3001
|
-
readonly attachments: "all" | "none";
|
|
3002
|
-
} | undefined;
|
|
3003
|
-
readonly error?: {
|
|
3004
|
-
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
3005
|
-
readonly message: string;
|
|
3006
|
-
} | undefined;
|
|
3007
|
-
} | undefined, BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced"> | import("effect/rpc/RpcClientError").RpcClientError, never>;
|
|
3008
2883
|
readonly WatchSubset: <const AsQueue extends boolean = false, const Discard = false>(input: unknown, options?: {
|
|
3009
2884
|
readonly asQueue?: AsQueue | undefined;
|
|
3010
2885
|
readonly streamBufferSize?: number | undefined;
|
|
@@ -3023,8 +2898,20 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
3023
2898
|
} | undefined) => Effect.Effect<Discard extends true ? void : void, BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced"> | import("effect/rpc/RpcClientError").RpcClientError | (Discard extends true ? never : BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced">), never>;
|
|
3024
2899
|
}, never, RpcClient.Protocol | Scope.Scope>;
|
|
3025
2900
|
export interface OntologyClientOptions {
|
|
2901
|
+
/** @internal The networks the transport reaches the server on, for the client's backends
|
|
2902
|
+
* (`OntologyBackendService.networks`). A transport on the same device is on none. */
|
|
2903
|
+
readonly networks?: readonly string[];
|
|
3026
2904
|
/** Previously accepted, public source binding; never inferred from cached rows. */
|
|
3027
2905
|
readonly description?: OntologyDescription$1;
|
|
2906
|
+
/** The definition `description` was accepted with. Required with `description`; otherwise
|
|
2907
|
+
* the client reads the definition from the server's `meta` resource. */
|
|
2908
|
+
readonly ir?: import("@party-stack/ontology-spec").OntologyIR;
|
|
2909
|
+
/** Open one of the endpoint's system resources (the definition as meta ontology rows, or
|
|
2910
|
+
* downloads) instead of the ontology itself. */
|
|
2911
|
+
readonly resource?: OntologyResource;
|
|
2912
|
+
/** @internal The server's own definition, for a client in the same runtime: used instead of
|
|
2913
|
+
* reading a copy while it is the one described. */
|
|
2914
|
+
readonly localDefinition?: Effect.Effect<import("@party-stack/ontology-spec").OntologyIR | undefined>;
|
|
3028
2915
|
/** Validate/adopt definition compatibility after source/context/protocol checks. */
|
|
3029
2916
|
readonly validate?: (fresh: OntologyDescription$1) => Effect.Effect<void, BackendError>;
|
|
3030
2917
|
/** Notification only. Coordinate replacement outside this client scope. */
|
|
@@ -3055,10 +2942,11 @@ export interface OntologyClient {
|
|
|
3055
2942
|
readonly ir?: import("@party-stack/ontology-spec").OntologyIR;
|
|
3056
2943
|
readonly context?: Record<string, unknown>;
|
|
3057
2944
|
readonly operations: OntologyOperationsClient;
|
|
3058
|
-
/**
|
|
3059
|
-
readonly
|
|
3060
|
-
/**
|
|
3061
|
-
|
|
2945
|
+
/** Ordinary ontology operations over the endpoint's system ontology: its downloads and replica status. */
|
|
2946
|
+
readonly systemBackend?: Effect.Effect<import("@party-stack/ontology-backend").OntologyBackendService, BackendError, Scope.Scope>;
|
|
2947
|
+
/** The endpoint's current definition as meta ontology rows (`@party-stack/ontology-spec/meta`).
|
|
2948
|
+
* It follows the endpoint: after a definition change it serves the new one. */
|
|
2949
|
+
readonly metaBackend?: Effect.Effect<import("@party-stack/ontology-backend").OntologyBackendService, BackendError, Scope.Scope>;
|
|
3062
2950
|
/** Finite operations are available for all server roles. */
|
|
3063
2951
|
readonly backend: import("@party-stack/ontology-backend").OntologyBackendService;
|
|
3064
2952
|
readonly replication: {
|
|
@@ -3125,7 +3013,6 @@ export interface OntologyRpcServerOptions<R = never> extends ErrorProjectionOpti
|
|
|
3125
3013
|
readonly delivery?: import("@party-stack/ontology-backend/delivery").DeliveryPolicy;
|
|
3126
3014
|
readonly source?: OntologySource;
|
|
3127
3015
|
readonly replica?: ReplicaService;
|
|
3128
|
-
readonly pins?: ReplicaPinControls;
|
|
3129
3016
|
readonly traces?: TraceStore;
|
|
3130
3017
|
readonly backend?: import("@party-stack/ontology-backend").OntologyBackendService;
|
|
3131
3018
|
/** Worker bootstrap may run while transport starts accepting requests. */
|
|
@@ -3137,7 +3024,8 @@ export interface OntologyRpcServerOptions<R = never> extends ErrorProjectionOpti
|
|
|
3137
3024
|
}
|
|
3138
3025
|
/** Administrative resources use the same ontology RPCs and transport. Access is
|
|
3139
3026
|
* still gated by the parent endpoint before the resource is acquired. */
|
|
3140
|
-
export declare const ontologyRpcHandlers: <R>(options: OntologyRpcServerOptions<R>) => Layer.Layer<Rpc.Handler<"Accept"> | Rpc.Handler<"AckDelivery"> | Rpc.Handler<"Acknowledge"> | Rpc.Handler<"ApplyAction"> | Rpc.Handler<"AttachmentMetadata"> | Rpc.Handler<"Changes"> | Rpc.Handler<"
|
|
3027
|
+
export declare const ontologyRpcHandlers: <R>(options: OntologyRpcServerOptions<R>) => Layer.Layer<Rpc.Handler<"Accept"> | Rpc.Handler<"AckDelivery"> | Rpc.Handler<"Acknowledge"> | Rpc.Handler<"ApplyAction"> | Rpc.Handler<"AttachmentMetadata"> | Rpc.Handler<"Changes"> | Rpc.Handler<"ControlOutbox"> | Rpc.Handler<"CreateAttachment"> | Rpc.Handler<"Decrypt"> | Rpc.Handler<"DeleteLocalData"> | Rpc.Handler<"Demand"> | Rpc.Handler<"Describe"> | Rpc.Handler<"LoadSubset"> | Rpc.Handler<"OpenClient"> | Rpc.Handler<"PullChanges"> | Rpc.Handler<"Query"> | Rpc.Handler<"QueryFunction"> | Rpc.Handler<"Read"> | Rpc.Handler<"ReadAttachment"> | Rpc.Handler<"ReleaseOwner"> | Rpc.Handler<"ReplicaStatus"> | Rpc.Handler<"ResolveActionParameters"> | Rpc.Handler<"Submit"> | Rpc.Handler<"SubscribeSelection"> | Rpc.Handler<"SubscribeState"> | Rpc.Handler<"Traces"> | Rpc.Handler<"UpdateView"> | Rpc.Handler<"ValidateAction"> | Rpc.Handler<"WatchChanges"> | Rpc.Handler<"WatchSubset"> | Rpc.Handler<"WriteAttachmentChunk"> | OntologyErrorProjection, never, Exclude<Exclude<R, never>, Scope.Scope> | Exclude<Exclude<Exclude<R, never>, Scope.Scope>, Scope.Scope>>;
|
|
3028
|
+
export type OntologyResource = "system" | "meta";
|
|
3141
3029
|
export type OntologyRpcClient = Effect.Success<ReturnType<typeof RpcClient.make<RpcGroup.Rpcs<typeof OntologyRpcs>>>>;
|
|
3142
3030
|
/** HTTP byte operations use the same incompatibility notification as typed RPC. */
|
|
3143
3031
|
export declare const observeOntologyClientFailure: <A, R>(client: OntologyClient, work: Effect.Effect<A, BackendError, R>) => Effect.Effect<A, BackendError<"Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced">, R>;
|