@party-stack/ontology-server 0.15.0 → 0.15.1
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/lib/rpc.d.ts +776 -776
- package/lib/rpc.d.ts.map +1 -1
- package/package.json +7 -7
package/lib/rpc.d.ts
CHANGED
|
@@ -13,39 +13,60 @@ 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 text: string;
|
|
31
|
-
} | undefined;
|
|
32
|
-
} | undefined;
|
|
33
|
-
readonly rows: readonly {
|
|
34
|
-
readonly key: string | number;
|
|
35
|
-
readonly value: {
|
|
16
|
+
export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Accept", Schema.Codec<{
|
|
17
|
+
readonly session: {
|
|
18
|
+
readonly client: {
|
|
19
|
+
readonly sourceId: string;
|
|
20
|
+
readonly clientId: string;
|
|
21
|
+
readonly resumeKey: string;
|
|
22
|
+
};
|
|
23
|
+
readonly connectionId: string;
|
|
24
|
+
};
|
|
25
|
+
readonly sequence: number;
|
|
26
|
+
readonly invocation: {
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly name: string;
|
|
29
|
+
readonly parameters: {
|
|
36
30
|
readonly [x: string]: unknown;
|
|
37
31
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
readonly replay?: {
|
|
33
|
+
readonly now: string;
|
|
34
|
+
readonly seed: string;
|
|
35
|
+
} | undefined;
|
|
36
|
+
readonly timeoutMs?: number | undefined;
|
|
37
|
+
};
|
|
38
|
+
readonly optimistic: boolean;
|
|
39
|
+
readonly stagedAttachments?: readonly string[] | undefined;
|
|
40
|
+
readonly view?: {
|
|
41
|
+
readonly generation: number;
|
|
42
|
+
readonly selection: {
|
|
43
|
+
readonly subsets: readonly {
|
|
44
|
+
readonly objectType: string;
|
|
45
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
46
|
+
}[];
|
|
47
|
+
readonly actionIds: readonly string[];
|
|
48
|
+
readonly inspectActions?: boolean | undefined;
|
|
49
|
+
};
|
|
45
50
|
} | undefined;
|
|
46
|
-
}, string, never, never>, Schema.
|
|
47
|
-
readonly [
|
|
48
|
-
|
|
51
|
+
}, string, never, never>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"AckDelivery", Schema.Struct<{
|
|
52
|
+
kind: Schema.Literals<readonly ["committed", "speculative"]>;
|
|
53
|
+
position: Schema.Struct<{
|
|
54
|
+
readonly streamId: Schema.NonEmptyString;
|
|
55
|
+
readonly sequence: Schema.Int;
|
|
56
|
+
}>;
|
|
57
|
+
}>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Acknowledge", Schema.Struct<{
|
|
58
|
+
session: Schema.Struct<{
|
|
59
|
+
readonly client: Schema.Struct<{
|
|
60
|
+
readonly sourceId: Schema.NonEmptyString;
|
|
61
|
+
readonly clientId: Schema.NonEmptyString;
|
|
62
|
+
readonly resumeKey: Schema.NonEmptyString;
|
|
63
|
+
}>;
|
|
64
|
+
readonly connectionId: Schema.NonEmptyString;
|
|
65
|
+
}>;
|
|
66
|
+
revision: Schema.Int;
|
|
67
|
+
through: Schema.Int;
|
|
68
|
+
viewGeneration: Schema.optional<Schema.Int>;
|
|
69
|
+
}>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ApplyAction", Schema.Codec<{
|
|
49
70
|
readonly id: string;
|
|
50
71
|
readonly name: string;
|
|
51
72
|
readonly parameters: {
|
|
@@ -71,43 +92,26 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
71
92
|
readonly localId: Schema.String;
|
|
72
93
|
readonly remoteId: Schema.String;
|
|
73
94
|
}>>>;
|
|
74
|
-
}>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"
|
|
75
|
-
readonly
|
|
76
|
-
|
|
77
|
-
readonly
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
} | {
|
|
95
|
-
readonly certain: true;
|
|
96
|
-
readonly value: {
|
|
97
|
-
readonly kind: "ok";
|
|
98
|
-
readonly value: void;
|
|
99
|
-
} | {
|
|
100
|
-
readonly kind: "err";
|
|
101
|
-
readonly value: readonly {
|
|
102
|
-
readonly message: string;
|
|
103
|
-
readonly path?: readonly (string | number)[] | undefined;
|
|
104
|
-
readonly code?: string | undefined;
|
|
105
|
-
readonly category?: "custom" | "input" | "reference" | undefined;
|
|
106
|
-
readonly source?: "parameter" | "submission" | "user-facing" | undefined;
|
|
107
|
-
readonly messageSource?: "configured" | "standard" | undefined;
|
|
108
|
-
}[];
|
|
109
|
-
};
|
|
110
|
-
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ControlOutbox", Schema.Codec<{
|
|
95
|
+
}>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"AttachmentMetadata", Schema.Struct<{
|
|
96
|
+
readonly attachment: Schema.Struct<{
|
|
97
|
+
readonly id: Schema.NonEmptyString;
|
|
98
|
+
readonly type: Schema.optional<Schema.String>;
|
|
99
|
+
readonly source: Schema.optional<Schema.Struct<{
|
|
100
|
+
readonly objectType: Schema.String;
|
|
101
|
+
readonly primaryKey: Schema.Union<readonly [Schema.String, Schema.Number]>;
|
|
102
|
+
readonly property: Schema.String;
|
|
103
|
+
}>>;
|
|
104
|
+
}>;
|
|
105
|
+
readonly select: Schema.optional<Schema.$Array<Schema.Literals<readonly ["size", "type", "name", "dimensions"]>>>;
|
|
106
|
+
}>, Schema.Struct<{
|
|
107
|
+
readonly size: Schema.optional<Schema.Number>;
|
|
108
|
+
readonly type: Schema.optional<Schema.String>;
|
|
109
|
+
readonly name: Schema.optional<Schema.String>;
|
|
110
|
+
readonly dimensions: Schema.optional<Schema.Struct<{
|
|
111
|
+
readonly width: Schema.Number;
|
|
112
|
+
readonly height: Schema.Number;
|
|
113
|
+
}>>;
|
|
114
|
+
}>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Changes", Schema.Void, RpcSchema.Stream<Schema.Literal<"invalidate">, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ControlOutbox", Schema.Codec<{
|
|
111
115
|
readonly operation: "edit" | "remove" | "retry";
|
|
112
116
|
readonly id: string;
|
|
113
117
|
readonly invocation?: {
|
|
@@ -122,62 +126,196 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
122
126
|
} | undefined;
|
|
123
127
|
readonly timeoutMs?: number | undefined;
|
|
124
128
|
} | undefined;
|
|
125
|
-
}, string, never, never>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"
|
|
126
|
-
readonly
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
readonly
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
readonly
|
|
137
|
-
readonly
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
129
|
+
}, string, never, never>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"CreateAttachment", Schema.Struct<{
|
|
130
|
+
readonly size: Schema.optional<Schema.Int>;
|
|
131
|
+
readonly type: Schema.String;
|
|
132
|
+
readonly name: Schema.optional<Schema.String>;
|
|
133
|
+
readonly id: Schema.optional<Schema.NonEmptyString>;
|
|
134
|
+
readonly target: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
135
|
+
readonly kind: Schema.Literal<"objectProperty">;
|
|
136
|
+
readonly objectType: Schema.String;
|
|
137
|
+
readonly property: Schema.String;
|
|
138
|
+
}>, Schema.Struct<{
|
|
139
|
+
readonly kind: Schema.Literal<"actionParameter">;
|
|
140
|
+
readonly actionType: Schema.String;
|
|
141
|
+
readonly parameter: Schema.String;
|
|
142
|
+
}>]>>;
|
|
143
|
+
readonly eager: Schema.optional<Schema.Boolean>;
|
|
144
|
+
}>, RpcSchema.Stream<Schema.Union<readonly [Schema.Struct<{
|
|
145
|
+
readonly kind: Schema.Literal<"ready">;
|
|
146
|
+
readonly uploadId: Schema.NonEmptyString;
|
|
147
|
+
}>, Schema.Struct<{
|
|
148
|
+
readonly kind: Schema.Literal<"complete">;
|
|
149
|
+
readonly attachment: Schema.Struct<{
|
|
150
|
+
readonly id: Schema.NonEmptyString;
|
|
151
|
+
readonly type: Schema.optional<Schema.String>;
|
|
152
|
+
readonly source: Schema.optional<Schema.Struct<{
|
|
153
|
+
readonly objectType: Schema.String;
|
|
154
|
+
readonly primaryKey: Schema.Union<readonly [Schema.String, Schema.Number]>;
|
|
155
|
+
readonly property: Schema.String;
|
|
156
|
+
}>>;
|
|
157
|
+
}>;
|
|
158
|
+
}>]>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Decrypt", Schema.Struct<{
|
|
159
|
+
readonly value: Schema.Struct<{
|
|
160
|
+
readonly ciphertext: Schema.NonEmptyString;
|
|
161
|
+
readonly source: Schema.optional<Schema.Struct<{
|
|
162
|
+
readonly objectType: Schema.NonEmptyString;
|
|
163
|
+
readonly primaryKey: Schema.Union<readonly [Schema.String, Schema.Finite]>;
|
|
164
|
+
readonly property: Schema.NonEmptyString;
|
|
165
|
+
}>>;
|
|
166
|
+
}>;
|
|
167
|
+
readonly cache: Schema.optional<Schema.Boolean>;
|
|
168
|
+
}>, Schema.Codec<{
|
|
169
|
+
readonly value: unknown;
|
|
170
|
+
readonly ciphertext?: string | undefined;
|
|
171
|
+
}, 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<{
|
|
172
|
+
readonly objectType: string;
|
|
173
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
174
|
+
}, string, never, never>, RpcSchema.Stream<Schema.Literal<"ready">, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Describe", Schema.Void, Schema.Struct<{
|
|
175
|
+
readonly version: Schema.Literals<readonly [1, 2]>;
|
|
176
|
+
readonly replication: Schema.Literals<readonly ["committed", "speculative"]>;
|
|
177
|
+
readonly definitionHash: Schema.optional<Schema.String>;
|
|
178
|
+
readonly contractHash: Schema.optional<Schema.String>;
|
|
179
|
+
readonly sourceId: Schema.NonEmptyString;
|
|
180
|
+
readonly context: Schema.optional<Schema.Codec<{
|
|
181
|
+
readonly [x: string]: unknown;
|
|
182
|
+
}, string, never, never>>;
|
|
183
|
+
readonly supportsIdempotency: Schema.Boolean;
|
|
184
|
+
readonly delivery: Schema.optional<Schema.Boolean>;
|
|
185
|
+
readonly stateDelivery: Schema.optional<Schema.Boolean>;
|
|
186
|
+
readonly changes: Schema.optional<Schema.Boolean>;
|
|
187
|
+
readonly watchChanges: Schema.optional<Schema.Boolean>;
|
|
188
|
+
readonly watchSubset: Schema.optional<Schema.Boolean>;
|
|
189
|
+
readonly actionParameterResolution: Schema.optional<Schema.Boolean>;
|
|
190
|
+
readonly queries: Schema.optional<Schema.Boolean>;
|
|
191
|
+
readonly system: Schema.optional<Schema.Boolean>;
|
|
192
|
+
readonly meta: Schema.optional<Schema.Boolean>;
|
|
193
|
+
readonly attachments: Schema.optional<Schema.Struct<{
|
|
194
|
+
readonly stage: Schema.Boolean;
|
|
195
|
+
}>>;
|
|
196
|
+
readonly encrypted: Schema.optional<Schema.Boolean>;
|
|
197
|
+
}>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"LoadSubset", Schema.Codec<import("@party-stack/ontology-spec/query").ObjectSubset, string, never, never>, Schema.Codec<{
|
|
198
|
+
readonly fulfilledSubset?: import("@party-stack/ontology-spec/query").ObjectSubset | undefined;
|
|
199
|
+
readonly fetchedRows?: number | undefined;
|
|
200
|
+
readonly pushdown?: {
|
|
201
|
+
readonly source: string;
|
|
202
|
+
readonly predicates: readonly {
|
|
203
|
+
readonly path: readonly number[];
|
|
204
|
+
readonly execution: "adapter" | "candidate" | "engine" | "source";
|
|
205
|
+
}[];
|
|
206
|
+
readonly sorting: "adapter" | "engine" | "none" | "source";
|
|
207
|
+
readonly pagination: "adapter" | "engine" | "none" | "source";
|
|
208
|
+
readonly rechecksFilter: boolean;
|
|
209
|
+
readonly native?: {
|
|
210
|
+
readonly language: string;
|
|
211
|
+
readonly text: string;
|
|
144
212
|
} | undefined;
|
|
145
|
-
readonly timeoutMs?: number | undefined;
|
|
146
|
-
};
|
|
147
|
-
readonly optimistic: boolean;
|
|
148
|
-
readonly stagedAttachments?: readonly string[] | undefined;
|
|
149
|
-
readonly view?: {
|
|
150
|
-
readonly generation: number;
|
|
151
|
-
readonly selection: {
|
|
152
|
-
readonly subsets: readonly {
|
|
153
|
-
readonly objectType: string;
|
|
154
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
155
|
-
}[];
|
|
156
|
-
readonly actionIds: readonly string[];
|
|
157
|
-
readonly inspectActions?: boolean | undefined;
|
|
158
|
-
};
|
|
159
213
|
} | undefined;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
readonly
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
214
|
+
readonly rows: readonly {
|
|
215
|
+
readonly key: string | number;
|
|
216
|
+
readonly value: {
|
|
217
|
+
readonly [x: string]: unknown;
|
|
218
|
+
};
|
|
219
|
+
}[];
|
|
220
|
+
readonly complete: boolean;
|
|
221
|
+
readonly cursor?: string | undefined;
|
|
222
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"OpenClient", Schema.Struct<{
|
|
223
|
+
resume: Schema.optional<Schema.Struct<{
|
|
224
|
+
readonly sourceId: Schema.NonEmptyString;
|
|
225
|
+
readonly clientId: Schema.NonEmptyString;
|
|
226
|
+
readonly resumeKey: Schema.NonEmptyString;
|
|
227
|
+
}>>;
|
|
228
|
+
}>, Schema.Struct<{
|
|
229
|
+
readonly client: Schema.Struct<{
|
|
230
|
+
readonly sourceId: Schema.NonEmptyString;
|
|
231
|
+
readonly clientId: Schema.NonEmptyString;
|
|
232
|
+
readonly resumeKey: Schema.NonEmptyString;
|
|
233
|
+
}>;
|
|
234
|
+
readonly connectionId: Schema.NonEmptyString;
|
|
235
|
+
readonly expiresAt: Schema.Finite;
|
|
236
|
+
readonly acceptedThrough: Schema.Int;
|
|
237
|
+
readonly acknowledgedThrough: Schema.Int;
|
|
238
|
+
readonly deliveredThrough: Schema.Int;
|
|
239
|
+
readonly deliveredRevision: Schema.Int;
|
|
240
|
+
readonly appliedRevision: Schema.Int;
|
|
241
|
+
readonly viewGeneration: Schema.optional<Schema.Int>;
|
|
242
|
+
readonly viewIdentity: Schema.optional<Schema.String>;
|
|
243
|
+
readonly deliveredViewGeneration: Schema.optional<Schema.Int>;
|
|
244
|
+
}>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"PullChanges", Schema.Struct<{
|
|
245
|
+
readonly cursor: Schema.optional<Schema.String>;
|
|
246
|
+
readonly limit: Schema.optional<Schema.Int>;
|
|
247
|
+
}>, Schema.Codec<{
|
|
248
|
+
readonly commits: readonly {
|
|
249
|
+
readonly cursor: string;
|
|
250
|
+
readonly changes: readonly ({
|
|
251
|
+
readonly kind: "put";
|
|
252
|
+
readonly objectType: string;
|
|
253
|
+
readonly key: string | number;
|
|
254
|
+
readonly value: {
|
|
255
|
+
readonly [x: string]: unknown;
|
|
256
|
+
};
|
|
257
|
+
} | {
|
|
258
|
+
readonly kind: "delete";
|
|
259
|
+
readonly objectType: string;
|
|
260
|
+
readonly key: string | number;
|
|
261
|
+
})[];
|
|
262
|
+
readonly operationId?: string | undefined;
|
|
263
|
+
}[];
|
|
264
|
+
readonly cursor: string;
|
|
265
|
+
readonly hasMore: boolean;
|
|
266
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Query", Schema.Codec<{
|
|
267
|
+
readonly document: import("@party-stack/ontology-spec").QueryDocument;
|
|
268
|
+
readonly inputs?: {
|
|
269
|
+
readonly [x: string]: unknown;
|
|
270
|
+
} | undefined;
|
|
271
|
+
}, string, never, never>, Schema.Codec<{
|
|
272
|
+
readonly [x: string]: unknown;
|
|
273
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"QueryFunction", Schema.Codec<{
|
|
274
|
+
readonly name: string;
|
|
275
|
+
readonly parameters: {
|
|
276
|
+
readonly [x: string]: unknown;
|
|
277
|
+
};
|
|
278
|
+
}, string, never, never>, Schema.Codec<unknown, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Read", Schema.Struct<{
|
|
279
|
+
session: Schema.Struct<{
|
|
280
|
+
readonly client: Schema.Struct<{
|
|
281
|
+
readonly sourceId: Schema.NonEmptyString;
|
|
282
|
+
readonly clientId: Schema.NonEmptyString;
|
|
283
|
+
readonly resumeKey: Schema.NonEmptyString;
|
|
284
|
+
}>;
|
|
285
|
+
readonly connectionId: Schema.NonEmptyString;
|
|
286
|
+
}>;
|
|
287
|
+
view: Schema.optional<Schema.Codec<{
|
|
288
|
+
readonly generation: number;
|
|
289
|
+
readonly selection: {
|
|
290
|
+
readonly subsets: readonly {
|
|
291
|
+
readonly objectType: string;
|
|
292
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
293
|
+
}[];
|
|
294
|
+
readonly actionIds: readonly string[];
|
|
295
|
+
readonly inspectActions?: boolean | undefined;
|
|
296
|
+
};
|
|
297
|
+
}, string, never, never>>;
|
|
298
|
+
}>, Schema.Codec<{
|
|
299
|
+
readonly state: {
|
|
300
|
+
readonly sourceId: string;
|
|
301
|
+
readonly revision: number;
|
|
302
|
+
readonly definition: string;
|
|
303
|
+
readonly view?: {
|
|
304
|
+
readonly generation: number;
|
|
305
|
+
} | undefined;
|
|
306
|
+
readonly objects: readonly {
|
|
307
|
+
readonly objectType: string;
|
|
308
|
+
readonly base: readonly {
|
|
309
|
+
readonly key: string | number;
|
|
310
|
+
readonly value: {
|
|
311
|
+
readonly [x: string]: unknown;
|
|
312
|
+
};
|
|
313
|
+
}[];
|
|
314
|
+
readonly overrides: readonly {
|
|
315
|
+
readonly key: string | number;
|
|
316
|
+
readonly value: {
|
|
317
|
+
readonly deleted: true;
|
|
318
|
+
} | {
|
|
181
319
|
readonly deleted: false;
|
|
182
320
|
readonly value: {
|
|
183
321
|
readonly [x: string]: unknown;
|
|
@@ -331,45 +469,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
331
469
|
readonly complete: boolean;
|
|
332
470
|
readonly cached?: boolean | undefined;
|
|
333
471
|
}[] | undefined;
|
|
334
|
-
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"
|
|
335
|
-
readonly session: {
|
|
336
|
-
readonly client: {
|
|
337
|
-
readonly sourceId: string;
|
|
338
|
-
readonly clientId: string;
|
|
339
|
-
readonly resumeKey: string;
|
|
340
|
-
};
|
|
341
|
-
readonly connectionId: string;
|
|
342
|
-
};
|
|
343
|
-
readonly sequence: number;
|
|
344
|
-
readonly invocation: {
|
|
345
|
-
readonly id: string;
|
|
346
|
-
readonly name: string;
|
|
347
|
-
readonly parameters: {
|
|
348
|
-
readonly [x: string]: unknown;
|
|
349
|
-
};
|
|
350
|
-
readonly replay?: {
|
|
351
|
-
readonly now: string;
|
|
352
|
-
readonly seed: string;
|
|
353
|
-
} | undefined;
|
|
354
|
-
readonly timeoutMs?: number | undefined;
|
|
355
|
-
};
|
|
356
|
-
readonly optimistic: boolean;
|
|
357
|
-
readonly stagedAttachments?: readonly string[] | undefined;
|
|
358
|
-
readonly view?: {
|
|
359
|
-
readonly generation: number;
|
|
360
|
-
readonly selection: {
|
|
361
|
-
readonly subsets: readonly {
|
|
362
|
-
readonly objectType: string;
|
|
363
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
364
|
-
}[];
|
|
365
|
-
readonly actionIds: readonly string[];
|
|
366
|
-
readonly inspectActions?: boolean | undefined;
|
|
367
|
-
};
|
|
368
|
-
} | undefined;
|
|
369
|
-
}, string, never, never>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Demand", Schema.Codec<{
|
|
370
|
-
readonly objectType: string;
|
|
371
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
372
|
-
}, string, never, never>, RpcSchema.Stream<Schema.Literal<"ready">, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ReadAttachment", Schema.Struct<{
|
|
472
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ReadAttachment", Schema.Struct<{
|
|
373
473
|
readonly id: Schema.NonEmptyString;
|
|
374
474
|
readonly type: Schema.optional<Schema.String>;
|
|
375
475
|
readonly source: Schema.optional<Schema.Struct<{
|
|
@@ -385,454 +485,190 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
385
485
|
}>, Schema.Struct<{
|
|
386
486
|
readonly kind: Schema.Literal<"bytes">;
|
|
387
487
|
readonly bytes: Schema.Uint8ArrayFromBase64;
|
|
388
|
-
}>]>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"
|
|
389
|
-
readonly
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
readonly
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
}>]>>;
|
|
402
|
-
readonly eager: Schema.optional<Schema.Boolean>;
|
|
403
|
-
}>, RpcSchema.Stream<Schema.Union<readonly [Schema.Struct<{
|
|
404
|
-
readonly kind: Schema.Literal<"ready">;
|
|
405
|
-
readonly uploadId: Schema.NonEmptyString;
|
|
406
|
-
}>, Schema.Struct<{
|
|
407
|
-
readonly kind: Schema.Literal<"complete">;
|
|
408
|
-
readonly attachment: Schema.Struct<{
|
|
409
|
-
readonly id: Schema.NonEmptyString;
|
|
410
|
-
readonly type: Schema.optional<Schema.String>;
|
|
411
|
-
readonly source: Schema.optional<Schema.Struct<{
|
|
412
|
-
readonly objectType: Schema.String;
|
|
413
|
-
readonly primaryKey: Schema.Union<readonly [Schema.String, Schema.Number]>;
|
|
414
|
-
readonly property: Schema.String;
|
|
415
|
-
}>>;
|
|
416
|
-
}>;
|
|
417
|
-
}>]>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"WriteAttachmentChunk", Schema.Struct<{
|
|
418
|
-
readonly uploadId: Schema.NonEmptyString;
|
|
419
|
-
readonly sequence: Schema.Int;
|
|
420
|
-
readonly bytes: Schema.Uint8ArrayFromBase64;
|
|
421
|
-
readonly end: Schema.Boolean;
|
|
422
|
-
}>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"PullChanges", Schema.Struct<{
|
|
423
|
-
readonly cursor: Schema.optional<Schema.String>;
|
|
424
|
-
readonly limit: Schema.optional<Schema.Int>;
|
|
425
|
-
}>, Schema.Codec<{
|
|
426
|
-
readonly commits: readonly {
|
|
427
|
-
readonly cursor: string;
|
|
428
|
-
readonly changes: readonly ({
|
|
429
|
-
readonly kind: "put";
|
|
430
|
-
readonly objectType: string;
|
|
431
|
-
readonly key: string | number;
|
|
432
|
-
readonly value: {
|
|
433
|
-
readonly [x: string]: unknown;
|
|
434
|
-
};
|
|
435
|
-
} | {
|
|
436
|
-
readonly kind: "delete";
|
|
437
|
-
readonly objectType: string;
|
|
438
|
-
readonly key: string | number;
|
|
439
|
-
})[];
|
|
440
|
-
readonly operationId?: string | undefined;
|
|
441
|
-
}[];
|
|
442
|
-
readonly cursor: string;
|
|
443
|
-
readonly hasMore: boolean;
|
|
444
|
-
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Decrypt", Schema.Struct<{
|
|
445
|
-
readonly value: Schema.Struct<{
|
|
446
|
-
readonly ciphertext: Schema.NonEmptyString;
|
|
447
|
-
readonly source: Schema.optional<Schema.Struct<{
|
|
448
|
-
readonly objectType: Schema.NonEmptyString;
|
|
449
|
-
readonly primaryKey: Schema.Union<readonly [Schema.String, Schema.Finite]>;
|
|
450
|
-
readonly property: Schema.NonEmptyString;
|
|
451
|
-
}>>;
|
|
452
|
-
}>;
|
|
453
|
-
readonly cache: Schema.optional<Schema.Boolean>;
|
|
454
|
-
}>, Schema.Codec<{
|
|
455
|
-
readonly value: unknown;
|
|
456
|
-
readonly ciphertext?: string | undefined;
|
|
457
|
-
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"AttachmentMetadata", Schema.Struct<{
|
|
458
|
-
readonly attachment: Schema.Struct<{
|
|
459
|
-
readonly id: Schema.NonEmptyString;
|
|
460
|
-
readonly type: Schema.optional<Schema.String>;
|
|
461
|
-
readonly source: Schema.optional<Schema.Struct<{
|
|
462
|
-
readonly objectType: Schema.String;
|
|
463
|
-
readonly primaryKey: Schema.Union<readonly [Schema.String, Schema.Number]>;
|
|
464
|
-
readonly property: Schema.String;
|
|
465
|
-
}>>;
|
|
466
|
-
}>;
|
|
467
|
-
readonly select: Schema.optional<Schema.$Array<Schema.Literals<readonly ["size", "type", "name", "dimensions"]>>>;
|
|
468
|
-
}>, Schema.Struct<{
|
|
469
|
-
readonly size: Schema.optional<Schema.Number>;
|
|
470
|
-
readonly type: Schema.optional<Schema.String>;
|
|
471
|
-
readonly name: Schema.optional<Schema.String>;
|
|
472
|
-
readonly dimensions: Schema.optional<Schema.Struct<{
|
|
473
|
-
readonly width: Schema.Number;
|
|
474
|
-
readonly height: Schema.Number;
|
|
475
|
-
}>>;
|
|
476
|
-
}>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"SubscribeSelection", Schema.Struct<{
|
|
477
|
-
selection: Schema.Codec<{
|
|
478
|
-
readonly subsets: readonly import("@party-stack/ontology-spec/query").ObjectSubset[];
|
|
479
|
-
}, string, never, never>;
|
|
480
|
-
resume: Schema.optional<Schema.Struct<{
|
|
481
|
-
readonly streamId: Schema.NonEmptyString;
|
|
482
|
-
readonly sequence: Schema.Int;
|
|
483
|
-
}>>;
|
|
484
|
-
}>, RpcSchema.Stream<Schema.Codec<{
|
|
485
|
-
readonly streamId: string;
|
|
486
|
-
readonly sequence: number;
|
|
487
|
-
readonly previous: number;
|
|
488
|
-
readonly part: number;
|
|
489
|
-
readonly kind: "patch" | "snapshot";
|
|
490
|
-
readonly changes: readonly ({
|
|
491
|
-
readonly kind: "put";
|
|
492
|
-
readonly record: {
|
|
493
|
-
readonly kind: "base";
|
|
494
|
-
readonly objectType: string;
|
|
495
|
-
readonly key: string | number;
|
|
496
|
-
readonly value: {
|
|
497
|
-
readonly [x: string]: unknown;
|
|
498
|
-
};
|
|
499
|
-
} | {
|
|
500
|
-
readonly kind: "override";
|
|
501
|
-
readonly objectType: string;
|
|
502
|
-
readonly key: string | number;
|
|
503
|
-
readonly value: {
|
|
504
|
-
readonly deleted: true;
|
|
505
|
-
} | {
|
|
506
|
-
readonly deleted: false;
|
|
507
|
-
readonly value: {
|
|
508
|
-
readonly [x: string]: unknown;
|
|
509
|
-
};
|
|
510
|
-
};
|
|
511
|
-
} | {
|
|
512
|
-
readonly kind: "completed" | "pending";
|
|
513
|
-
readonly id: string;
|
|
514
|
-
readonly value: {
|
|
515
|
-
readonly invocation: {
|
|
516
|
-
readonly id: string;
|
|
517
|
-
readonly name: string;
|
|
518
|
-
readonly parameters: {
|
|
519
|
-
readonly [x: string]: unknown;
|
|
520
|
-
};
|
|
521
|
-
readonly replay?: {
|
|
522
|
-
readonly now: string;
|
|
523
|
-
readonly seed: string;
|
|
524
|
-
} | undefined;
|
|
525
|
-
readonly timeoutMs?: number | undefined;
|
|
526
|
-
};
|
|
527
|
-
readonly requestIdentity: string;
|
|
528
|
-
readonly createdAt: number;
|
|
529
|
-
readonly sequence: number;
|
|
530
|
-
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
531
|
-
readonly optimistic: boolean;
|
|
532
|
-
readonly attempts: number;
|
|
533
|
-
readonly blockedBy?: string | true | undefined;
|
|
534
|
-
readonly retryFromAttempt?: number | undefined;
|
|
535
|
-
readonly nextAttemptAt?: number | undefined;
|
|
536
|
-
readonly failureMessage?: string | undefined;
|
|
537
|
-
readonly failureIssues?: readonly {
|
|
538
|
-
readonly message: string;
|
|
539
|
-
readonly path?: readonly (string | number)[] | undefined;
|
|
540
|
-
readonly code?: string | undefined;
|
|
541
|
-
readonly category?: "custom" | "input" | "reference" | undefined;
|
|
542
|
-
readonly source?: "parameter" | "submission" | "user-facing" | undefined;
|
|
543
|
-
readonly messageSource?: "configured" | "standard" | undefined;
|
|
544
|
-
}[] | undefined;
|
|
545
|
-
readonly completedAt?: number | undefined;
|
|
546
|
-
readonly retryRequiresAcknowledgement?: boolean | undefined;
|
|
547
|
-
readonly failureOutcome?: "not-committed" | "unknown" | undefined;
|
|
548
|
-
readonly failureRetryable?: boolean | undefined;
|
|
549
|
-
readonly receipt?: {
|
|
550
|
-
readonly operationId: string;
|
|
551
|
-
readonly outcome: "committed";
|
|
552
|
-
readonly result?: unknown;
|
|
553
|
-
readonly cursor?: string | undefined;
|
|
554
|
-
readonly providerOperationId?: string | undefined;
|
|
555
|
-
readonly affected?: readonly {
|
|
556
|
-
readonly objectType: string;
|
|
557
|
-
readonly keys?: readonly (string | number)[] | undefined;
|
|
558
|
-
}[] | undefined;
|
|
559
|
-
readonly affectedComplete?: boolean | undefined;
|
|
560
|
-
readonly attachmentIdMappings?: readonly {
|
|
561
|
-
readonly localId: string;
|
|
562
|
-
readonly remoteId: string;
|
|
563
|
-
}[] | undefined;
|
|
564
|
-
} | undefined;
|
|
565
|
-
readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
566
|
-
readonly submission?: {
|
|
567
|
-
readonly clientId: string;
|
|
568
|
-
readonly sequence: number;
|
|
569
|
-
} | undefined;
|
|
570
|
-
readonly prediction?: "applied" | "dropped" | "none" | undefined;
|
|
571
|
-
readonly predictionFailure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
572
|
-
readonly predictionMessage?: string | undefined;
|
|
573
|
-
};
|
|
574
|
-
};
|
|
575
|
-
} | {
|
|
576
|
-
readonly kind: "remove";
|
|
577
|
-
readonly ref: {
|
|
578
|
-
readonly kind: "base" | "override";
|
|
579
|
-
readonly objectType: string;
|
|
580
|
-
readonly key: string | number;
|
|
581
|
-
} | {
|
|
582
|
-
readonly kind: "completed" | "pending";
|
|
583
|
-
readonly id: string;
|
|
584
|
-
};
|
|
585
|
-
})[];
|
|
586
|
-
readonly end: boolean;
|
|
587
|
-
readonly metadata?: {
|
|
588
|
-
readonly sourceId: string;
|
|
589
|
-
readonly schemaHash: string;
|
|
590
|
-
readonly generation: number;
|
|
591
|
-
readonly revision: number;
|
|
592
|
-
readonly cursor?: string | undefined;
|
|
593
|
-
readonly coverage: readonly {
|
|
594
|
-
readonly subset: {
|
|
595
|
-
readonly objectType: string;
|
|
596
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
597
|
-
};
|
|
598
|
-
readonly complete: boolean;
|
|
599
|
-
readonly cached?: boolean | undefined;
|
|
600
|
-
}[];
|
|
601
|
-
readonly client?: {
|
|
602
|
-
readonly client: {
|
|
603
|
-
readonly sourceId: string;
|
|
604
|
-
readonly clientId: string;
|
|
605
|
-
readonly resumeKey: string;
|
|
606
|
-
};
|
|
607
|
-
readonly connectionId: string;
|
|
608
|
-
readonly expiresAt: number;
|
|
609
|
-
readonly acceptedThrough: number;
|
|
610
|
-
readonly acknowledgedThrough: number;
|
|
611
|
-
readonly deliveredThrough: number;
|
|
612
|
-
readonly deliveredRevision: number;
|
|
613
|
-
readonly appliedRevision: number;
|
|
614
|
-
readonly viewGeneration?: number | undefined;
|
|
615
|
-
readonly viewIdentity?: string | undefined;
|
|
616
|
-
readonly deliveredViewGeneration?: number | undefined;
|
|
488
|
+
}>]>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ReleaseOwner", Schema.Void, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ReplicaStatus", Schema.Void, RpcSchema.Stream<Schema.Codec<{
|
|
489
|
+
readonly capacity?: {
|
|
490
|
+
readonly memory?: {
|
|
491
|
+
readonly scope: "database" | "filesystem" | "isolate" | "origin" | "process";
|
|
492
|
+
readonly usedBytes?: number | undefined;
|
|
493
|
+
readonly limitBytes?: number | undefined;
|
|
494
|
+
readonly availableBytes?: number | undefined;
|
|
495
|
+
} | undefined;
|
|
496
|
+
readonly storage?: {
|
|
497
|
+
readonly scope: "database" | "filesystem" | "isolate" | "origin" | "process";
|
|
498
|
+
readonly usedBytes?: number | undefined;
|
|
499
|
+
readonly limitBytes?: number | undefined;
|
|
500
|
+
readonly availableBytes?: number | undefined;
|
|
617
501
|
} | undefined;
|
|
502
|
+
readonly memoryError?: string | undefined;
|
|
503
|
+
readonly storageError?: string | undefined;
|
|
618
504
|
} | undefined;
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
readonly
|
|
623
|
-
readonly
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
}>;
|
|
628
|
-
view: Schema.Codec<{
|
|
629
|
-
readonly generation: number;
|
|
630
|
-
readonly selection: {
|
|
631
|
-
readonly subsets: readonly {
|
|
505
|
+
readonly cache?: {
|
|
506
|
+
readonly attachments?: {
|
|
507
|
+
readonly bytes: number;
|
|
508
|
+
readonly maxBytes?: number | undefined;
|
|
509
|
+
readonly targetBytes?: number | undefined;
|
|
510
|
+
} | undefined;
|
|
511
|
+
readonly objects: {
|
|
512
|
+
readonly byObjectType?: readonly {
|
|
632
513
|
readonly objectType: string;
|
|
633
|
-
readonly
|
|
634
|
-
}[];
|
|
635
|
-
readonly
|
|
636
|
-
readonly
|
|
637
|
-
|
|
638
|
-
}, string, never, never>;
|
|
639
|
-
resume: Schema.optional<Schema.Struct<{
|
|
640
|
-
readonly streamId: Schema.NonEmptyString;
|
|
641
|
-
readonly sequence: Schema.Int;
|
|
642
|
-
}>>;
|
|
643
|
-
}>, RpcSchema.Stream<Schema.Codec<{
|
|
644
|
-
readonly streamId: string;
|
|
645
|
-
readonly sequence: number;
|
|
646
|
-
readonly previous: number;
|
|
647
|
-
readonly part: number;
|
|
648
|
-
readonly kind: "patch" | "snapshot";
|
|
649
|
-
readonly changes: readonly ({
|
|
650
|
-
readonly kind: "put";
|
|
651
|
-
readonly record: {
|
|
652
|
-
readonly kind: "base";
|
|
653
|
-
readonly objectType: string;
|
|
654
|
-
readonly key: string | number;
|
|
655
|
-
readonly value: {
|
|
656
|
-
readonly [x: string]: unknown;
|
|
657
|
-
};
|
|
658
|
-
} | {
|
|
659
|
-
readonly kind: "override";
|
|
660
|
-
readonly objectType: string;
|
|
661
|
-
readonly key: string | number;
|
|
662
|
-
readonly value: {
|
|
663
|
-
readonly deleted: true;
|
|
664
|
-
} | {
|
|
665
|
-
readonly deleted: false;
|
|
666
|
-
readonly value: {
|
|
667
|
-
readonly [x: string]: unknown;
|
|
668
|
-
};
|
|
669
|
-
};
|
|
670
|
-
} | {
|
|
671
|
-
readonly kind: "completed" | "pending";
|
|
672
|
-
readonly id: string;
|
|
673
|
-
readonly value: {
|
|
674
|
-
readonly invocation: {
|
|
675
|
-
readonly id: string;
|
|
676
|
-
readonly name: string;
|
|
677
|
-
readonly parameters: {
|
|
678
|
-
readonly [x: string]: unknown;
|
|
679
|
-
};
|
|
680
|
-
readonly replay?: {
|
|
681
|
-
readonly now: string;
|
|
682
|
-
readonly seed: string;
|
|
683
|
-
} | undefined;
|
|
684
|
-
readonly timeoutMs?: number | undefined;
|
|
685
|
-
};
|
|
686
|
-
readonly requestIdentity: string;
|
|
687
|
-
readonly createdAt: number;
|
|
688
|
-
readonly sequence: number;
|
|
689
|
-
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
690
|
-
readonly optimistic: boolean;
|
|
691
|
-
readonly attempts: number;
|
|
692
|
-
readonly blockedBy?: string | true | undefined;
|
|
693
|
-
readonly retryFromAttempt?: number | undefined;
|
|
694
|
-
readonly nextAttemptAt?: number | undefined;
|
|
695
|
-
readonly failureMessage?: string | undefined;
|
|
696
|
-
readonly failureIssues?: readonly {
|
|
697
|
-
readonly message: string;
|
|
698
|
-
readonly path?: readonly (string | number)[] | undefined;
|
|
699
|
-
readonly code?: string | undefined;
|
|
700
|
-
readonly category?: "custom" | "input" | "reference" | undefined;
|
|
701
|
-
readonly source?: "parameter" | "submission" | "user-facing" | undefined;
|
|
702
|
-
readonly messageSource?: "configured" | "standard" | undefined;
|
|
703
|
-
}[] | undefined;
|
|
704
|
-
readonly completedAt?: number | undefined;
|
|
705
|
-
readonly retryRequiresAcknowledgement?: boolean | undefined;
|
|
706
|
-
readonly failureOutcome?: "not-committed" | "unknown" | undefined;
|
|
707
|
-
readonly failureRetryable?: boolean | undefined;
|
|
708
|
-
readonly receipt?: {
|
|
709
|
-
readonly operationId: string;
|
|
710
|
-
readonly outcome: "committed";
|
|
711
|
-
readonly result?: unknown;
|
|
712
|
-
readonly cursor?: string | undefined;
|
|
713
|
-
readonly providerOperationId?: string | undefined;
|
|
714
|
-
readonly affected?: readonly {
|
|
715
|
-
readonly objectType: string;
|
|
716
|
-
readonly keys?: readonly (string | number)[] | undefined;
|
|
717
|
-
}[] | undefined;
|
|
718
|
-
readonly affectedComplete?: boolean | undefined;
|
|
719
|
-
readonly attachmentIdMappings?: readonly {
|
|
720
|
-
readonly localId: string;
|
|
721
|
-
readonly remoteId: string;
|
|
722
|
-
}[] | undefined;
|
|
723
|
-
} | undefined;
|
|
724
|
-
readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
725
|
-
readonly submission?: {
|
|
726
|
-
readonly clientId: string;
|
|
727
|
-
readonly sequence: number;
|
|
728
|
-
} | undefined;
|
|
729
|
-
readonly prediction?: "applied" | "dropped" | "none" | undefined;
|
|
730
|
-
readonly predictionFailure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
731
|
-
readonly predictionMessage?: string | undefined;
|
|
732
|
-
};
|
|
514
|
+
readonly bytes: number;
|
|
515
|
+
}[] | undefined;
|
|
516
|
+
readonly bytes: number;
|
|
517
|
+
readonly maxBytes?: number | undefined;
|
|
518
|
+
readonly targetBytes?: number | undefined;
|
|
733
519
|
};
|
|
520
|
+
} | undefined;
|
|
521
|
+
readonly sourceId: string;
|
|
522
|
+
readonly upstreamId: string;
|
|
523
|
+
readonly mode: "adapter" | "protocol";
|
|
524
|
+
readonly networkOnline: boolean;
|
|
525
|
+
readonly authentication?: {
|
|
526
|
+
readonly status: "pending";
|
|
734
527
|
} | {
|
|
735
|
-
readonly
|
|
736
|
-
readonly
|
|
737
|
-
readonly kind: "base" | "override";
|
|
738
|
-
readonly objectType: string;
|
|
739
|
-
readonly key: string | number;
|
|
740
|
-
} | {
|
|
741
|
-
readonly kind: "completed" | "pending";
|
|
742
|
-
readonly id: string;
|
|
743
|
-
};
|
|
744
|
-
})[];
|
|
745
|
-
readonly end: boolean;
|
|
746
|
-
readonly metadata?: {
|
|
747
|
-
readonly sourceId: string;
|
|
748
|
-
readonly schemaHash: string;
|
|
749
|
-
readonly generation: number;
|
|
750
|
-
readonly revision: number;
|
|
751
|
-
readonly cursor?: string | undefined;
|
|
752
|
-
readonly coverage: readonly {
|
|
753
|
-
readonly subset: {
|
|
754
|
-
readonly objectType: string;
|
|
755
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
756
|
-
};
|
|
757
|
-
readonly complete: boolean;
|
|
758
|
-
readonly cached?: boolean | undefined;
|
|
759
|
-
}[];
|
|
760
|
-
readonly client?: {
|
|
761
|
-
readonly client: {
|
|
762
|
-
readonly sourceId: string;
|
|
763
|
-
readonly clientId: string;
|
|
764
|
-
readonly resumeKey: string;
|
|
765
|
-
};
|
|
766
|
-
readonly connectionId: string;
|
|
528
|
+
readonly status: "active";
|
|
529
|
+
readonly expiration?: {
|
|
767
530
|
readonly expiresAt: number;
|
|
768
|
-
readonly
|
|
769
|
-
readonly acknowledgedThrough: number;
|
|
770
|
-
readonly deliveredThrough: number;
|
|
771
|
-
readonly deliveredRevision: number;
|
|
772
|
-
readonly appliedRevision: number;
|
|
773
|
-
readonly viewGeneration?: number | undefined;
|
|
774
|
-
readonly viewIdentity?: string | undefined;
|
|
775
|
-
readonly deliveredViewGeneration?: number | undefined;
|
|
531
|
+
readonly refreshable: boolean;
|
|
776
532
|
} | undefined;
|
|
533
|
+
} | {
|
|
534
|
+
readonly status: "inactive";
|
|
535
|
+
} | {
|
|
536
|
+
readonly status: "needs-auth";
|
|
537
|
+
readonly error?: string | undefined;
|
|
538
|
+
} | {
|
|
539
|
+
readonly status: "error";
|
|
540
|
+
readonly error: string;
|
|
777
541
|
} | undefined;
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
readonly
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
readonly
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
542
|
+
readonly watchError?: {
|
|
543
|
+
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
544
|
+
readonly message: string;
|
|
545
|
+
readonly retryable: boolean;
|
|
546
|
+
} | undefined;
|
|
547
|
+
readonly definition?: {
|
|
548
|
+
readonly hash: string;
|
|
549
|
+
readonly error?: {
|
|
550
|
+
readonly hash?: string | undefined;
|
|
551
|
+
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
552
|
+
readonly message: string;
|
|
553
|
+
} | undefined;
|
|
554
|
+
} | undefined;
|
|
555
|
+
readonly replicationError?: {
|
|
556
|
+
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
557
|
+
readonly message: string;
|
|
558
|
+
readonly recovery: "reconnect" | "session" | "snapshot" | "stop";
|
|
559
|
+
} | undefined;
|
|
560
|
+
readonly syncing: boolean;
|
|
561
|
+
readonly lastSync?: {
|
|
562
|
+
readonly startedAt: number;
|
|
563
|
+
readonly finishedAt: number;
|
|
564
|
+
readonly outcome: "failure" | "interrupted" | "success";
|
|
565
|
+
readonly error?: {
|
|
566
|
+
readonly kind: string;
|
|
567
|
+
readonly message: string;
|
|
568
|
+
} | undefined;
|
|
569
|
+
} | undefined;
|
|
570
|
+
readonly demands: readonly {
|
|
571
|
+
readonly objectType: string;
|
|
572
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
573
|
+
readonly references: number;
|
|
574
|
+
readonly idleUntil?: number | undefined;
|
|
575
|
+
readonly watchers: number;
|
|
576
|
+
readonly loadError?: {
|
|
577
|
+
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
578
|
+
readonly message: string;
|
|
579
|
+
readonly retryable: boolean;
|
|
580
|
+
} | undefined;
|
|
581
|
+
readonly watchError?: {
|
|
582
|
+
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
583
|
+
readonly message: string;
|
|
584
|
+
readonly retryable: boolean;
|
|
585
|
+
} | undefined;
|
|
586
|
+
readonly revision: number;
|
|
587
|
+
readonly installed: number;
|
|
588
|
+
readonly coveredBy?: {
|
|
589
|
+
readonly objectType: string;
|
|
590
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
591
|
+
} | undefined;
|
|
592
|
+
readonly coverageProof?: {
|
|
593
|
+
readonly reason: "collection" | "primary-key" | "query";
|
|
594
|
+
readonly maintainedBy: "journal" | "poll" | "snapshot" | "watch";
|
|
595
|
+
readonly pollIntervalMs?: number | undefined;
|
|
596
|
+
readonly stale?: boolean | undefined;
|
|
597
|
+
readonly confirmedAt?: number | undefined;
|
|
598
|
+
} | undefined;
|
|
599
|
+
}[];
|
|
600
|
+
readonly outbox: {
|
|
601
|
+
readonly [x: string]: number;
|
|
602
|
+
};
|
|
603
|
+
readonly loads: readonly {
|
|
604
|
+
readonly id: number;
|
|
605
|
+
readonly spanId?: string | undefined;
|
|
606
|
+
readonly traceId?: string | undefined;
|
|
607
|
+
readonly operation: "loadSubset" | "pullChanges";
|
|
608
|
+
readonly reason: "demand" | "journal" | "receipt" | "refresh" | "repair";
|
|
609
|
+
readonly subset?: {
|
|
610
|
+
readonly objectType: string;
|
|
611
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
612
|
+
} | undefined;
|
|
613
|
+
readonly startedAt: number;
|
|
614
|
+
readonly finishedAt?: number | undefined;
|
|
615
|
+
readonly outcome: "failure" | "interrupted" | "running" | "success";
|
|
616
|
+
readonly rows?: number | undefined;
|
|
617
|
+
readonly fetchedRows?: number | undefined;
|
|
618
|
+
readonly pushdown?: {
|
|
619
|
+
readonly source: string;
|
|
620
|
+
readonly predicates: readonly {
|
|
621
|
+
readonly path: readonly number[];
|
|
622
|
+
readonly execution: "adapter" | "candidate" | "engine" | "source";
|
|
793
623
|
}[];
|
|
794
|
-
readonly
|
|
795
|
-
readonly
|
|
624
|
+
readonly sorting: "adapter" | "engine" | "none" | "source";
|
|
625
|
+
readonly pagination: "adapter" | "engine" | "none" | "source";
|
|
626
|
+
readonly rechecksFilter: boolean;
|
|
627
|
+
readonly native?: {
|
|
628
|
+
readonly language: string;
|
|
629
|
+
readonly text: string;
|
|
630
|
+
} | undefined;
|
|
631
|
+
} | undefined;
|
|
632
|
+
readonly commits?: number | undefined;
|
|
633
|
+
readonly complete?: boolean | undefined;
|
|
634
|
+
readonly error?: {
|
|
635
|
+
readonly kind: string;
|
|
636
|
+
readonly message: string;
|
|
637
|
+
} | undefined;
|
|
638
|
+
}[];
|
|
639
|
+
readonly loadCount: number;
|
|
640
|
+
}, string, never, never>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ResolveActionParameters", Schema.Codec<{
|
|
641
|
+
readonly name: string;
|
|
642
|
+
readonly parameters: {
|
|
643
|
+
readonly [x: string]: unknown;
|
|
644
|
+
};
|
|
645
|
+
}, string, never, never>, Schema.Codec<{
|
|
646
|
+
readonly [x: string]: unknown;
|
|
647
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Submit", Schema.Codec<{
|
|
648
|
+
readonly session: {
|
|
649
|
+
readonly client: {
|
|
650
|
+
readonly sourceId: string;
|
|
651
|
+
readonly clientId: string;
|
|
652
|
+
readonly resumeKey: string;
|
|
796
653
|
};
|
|
797
|
-
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
readonly
|
|
802
|
-
readonly
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
readonly
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
}>;
|
|
816
|
-
readonly connectionId: Schema.NonEmptyString;
|
|
817
|
-
readonly expiresAt: Schema.Finite;
|
|
818
|
-
readonly acceptedThrough: Schema.Int;
|
|
819
|
-
readonly acknowledgedThrough: Schema.Int;
|
|
820
|
-
readonly deliveredThrough: Schema.Int;
|
|
821
|
-
readonly deliveredRevision: Schema.Int;
|
|
822
|
-
readonly appliedRevision: Schema.Int;
|
|
823
|
-
readonly viewGeneration: Schema.optional<Schema.Int>;
|
|
824
|
-
readonly viewIdentity: Schema.optional<Schema.String>;
|
|
825
|
-
readonly deliveredViewGeneration: Schema.optional<Schema.Int>;
|
|
826
|
-
}>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Read", Schema.Struct<{
|
|
827
|
-
session: Schema.Struct<{
|
|
828
|
-
readonly client: Schema.Struct<{
|
|
829
|
-
readonly sourceId: Schema.NonEmptyString;
|
|
830
|
-
readonly clientId: Schema.NonEmptyString;
|
|
831
|
-
readonly resumeKey: Schema.NonEmptyString;
|
|
832
|
-
}>;
|
|
833
|
-
readonly connectionId: Schema.NonEmptyString;
|
|
834
|
-
}>;
|
|
835
|
-
view: Schema.optional<Schema.Codec<{
|
|
654
|
+
readonly connectionId: string;
|
|
655
|
+
};
|
|
656
|
+
readonly sequence: number;
|
|
657
|
+
readonly invocation: {
|
|
658
|
+
readonly id: string;
|
|
659
|
+
readonly name: string;
|
|
660
|
+
readonly parameters: {
|
|
661
|
+
readonly [x: string]: unknown;
|
|
662
|
+
};
|
|
663
|
+
readonly replay?: {
|
|
664
|
+
readonly now: string;
|
|
665
|
+
readonly seed: string;
|
|
666
|
+
} | undefined;
|
|
667
|
+
readonly timeoutMs?: number | undefined;
|
|
668
|
+
};
|
|
669
|
+
readonly optimistic: boolean;
|
|
670
|
+
readonly stagedAttachments?: readonly string[] | undefined;
|
|
671
|
+
readonly view?: {
|
|
836
672
|
readonly generation: number;
|
|
837
673
|
readonly selection: {
|
|
838
674
|
readonly subsets: readonly {
|
|
@@ -842,8 +678,8 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
842
678
|
readonly actionIds: readonly string[];
|
|
843
679
|
readonly inspectActions?: boolean | undefined;
|
|
844
680
|
};
|
|
845
|
-
}
|
|
846
|
-
}>, Schema.Codec<{
|
|
681
|
+
} | undefined;
|
|
682
|
+
}, string, never, never>, Schema.Codec<{
|
|
847
683
|
readonly state: {
|
|
848
684
|
readonly sourceId: string;
|
|
849
685
|
readonly revision: number;
|
|
@@ -1017,7 +853,150 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
1017
853
|
readonly complete: boolean;
|
|
1018
854
|
readonly cached?: boolean | undefined;
|
|
1019
855
|
}[] | undefined;
|
|
1020
|
-
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"
|
|
856
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"SubscribeSelection", Schema.Struct<{
|
|
857
|
+
selection: Schema.Codec<{
|
|
858
|
+
readonly subsets: readonly import("@party-stack/ontology-spec/query").ObjectSubset[];
|
|
859
|
+
}, string, never, never>;
|
|
860
|
+
resume: Schema.optional<Schema.Struct<{
|
|
861
|
+
readonly streamId: Schema.NonEmptyString;
|
|
862
|
+
readonly sequence: Schema.Int;
|
|
863
|
+
}>>;
|
|
864
|
+
}>, RpcSchema.Stream<Schema.Codec<{
|
|
865
|
+
readonly streamId: string;
|
|
866
|
+
readonly sequence: number;
|
|
867
|
+
readonly previous: number;
|
|
868
|
+
readonly part: number;
|
|
869
|
+
readonly kind: "patch" | "snapshot";
|
|
870
|
+
readonly changes: readonly ({
|
|
871
|
+
readonly kind: "put";
|
|
872
|
+
readonly record: {
|
|
873
|
+
readonly kind: "base";
|
|
874
|
+
readonly objectType: string;
|
|
875
|
+
readonly key: string | number;
|
|
876
|
+
readonly value: {
|
|
877
|
+
readonly [x: string]: unknown;
|
|
878
|
+
};
|
|
879
|
+
} | {
|
|
880
|
+
readonly kind: "override";
|
|
881
|
+
readonly objectType: string;
|
|
882
|
+
readonly key: string | number;
|
|
883
|
+
readonly value: {
|
|
884
|
+
readonly deleted: true;
|
|
885
|
+
} | {
|
|
886
|
+
readonly deleted: false;
|
|
887
|
+
readonly value: {
|
|
888
|
+
readonly [x: string]: unknown;
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
} | {
|
|
892
|
+
readonly kind: "completed" | "pending";
|
|
893
|
+
readonly id: string;
|
|
894
|
+
readonly value: {
|
|
895
|
+
readonly invocation: {
|
|
896
|
+
readonly id: string;
|
|
897
|
+
readonly name: string;
|
|
898
|
+
readonly parameters: {
|
|
899
|
+
readonly [x: string]: unknown;
|
|
900
|
+
};
|
|
901
|
+
readonly replay?: {
|
|
902
|
+
readonly now: string;
|
|
903
|
+
readonly seed: string;
|
|
904
|
+
} | undefined;
|
|
905
|
+
readonly timeoutMs?: number | undefined;
|
|
906
|
+
};
|
|
907
|
+
readonly requestIdentity: string;
|
|
908
|
+
readonly createdAt: number;
|
|
909
|
+
readonly sequence: number;
|
|
910
|
+
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
911
|
+
readonly optimistic: boolean;
|
|
912
|
+
readonly attempts: number;
|
|
913
|
+
readonly blockedBy?: string | true | undefined;
|
|
914
|
+
readonly retryFromAttempt?: number | undefined;
|
|
915
|
+
readonly nextAttemptAt?: number | undefined;
|
|
916
|
+
readonly failureMessage?: string | undefined;
|
|
917
|
+
readonly failureIssues?: readonly {
|
|
918
|
+
readonly message: string;
|
|
919
|
+
readonly path?: readonly (string | number)[] | undefined;
|
|
920
|
+
readonly code?: string | undefined;
|
|
921
|
+
readonly category?: "custom" | "input" | "reference" | undefined;
|
|
922
|
+
readonly source?: "parameter" | "submission" | "user-facing" | undefined;
|
|
923
|
+
readonly messageSource?: "configured" | "standard" | undefined;
|
|
924
|
+
}[] | undefined;
|
|
925
|
+
readonly completedAt?: number | undefined;
|
|
926
|
+
readonly retryRequiresAcknowledgement?: boolean | undefined;
|
|
927
|
+
readonly failureOutcome?: "not-committed" | "unknown" | undefined;
|
|
928
|
+
readonly failureRetryable?: boolean | undefined;
|
|
929
|
+
readonly receipt?: {
|
|
930
|
+
readonly operationId: string;
|
|
931
|
+
readonly outcome: "committed";
|
|
932
|
+
readonly result?: unknown;
|
|
933
|
+
readonly cursor?: string | undefined;
|
|
934
|
+
readonly providerOperationId?: string | undefined;
|
|
935
|
+
readonly affected?: readonly {
|
|
936
|
+
readonly objectType: string;
|
|
937
|
+
readonly keys?: readonly (string | number)[] | undefined;
|
|
938
|
+
}[] | undefined;
|
|
939
|
+
readonly affectedComplete?: boolean | undefined;
|
|
940
|
+
readonly attachmentIdMappings?: readonly {
|
|
941
|
+
readonly localId: string;
|
|
942
|
+
readonly remoteId: string;
|
|
943
|
+
}[] | undefined;
|
|
944
|
+
} | undefined;
|
|
945
|
+
readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
946
|
+
readonly submission?: {
|
|
947
|
+
readonly clientId: string;
|
|
948
|
+
readonly sequence: number;
|
|
949
|
+
} | undefined;
|
|
950
|
+
readonly prediction?: "applied" | "dropped" | "none" | undefined;
|
|
951
|
+
readonly predictionFailure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
952
|
+
readonly predictionMessage?: string | undefined;
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
} | {
|
|
956
|
+
readonly kind: "remove";
|
|
957
|
+
readonly ref: {
|
|
958
|
+
readonly kind: "base" | "override";
|
|
959
|
+
readonly objectType: string;
|
|
960
|
+
readonly key: string | number;
|
|
961
|
+
} | {
|
|
962
|
+
readonly kind: "completed" | "pending";
|
|
963
|
+
readonly id: string;
|
|
964
|
+
};
|
|
965
|
+
})[];
|
|
966
|
+
readonly end: boolean;
|
|
967
|
+
readonly metadata?: {
|
|
968
|
+
readonly sourceId: string;
|
|
969
|
+
readonly schemaHash: string;
|
|
970
|
+
readonly generation: number;
|
|
971
|
+
readonly revision: number;
|
|
972
|
+
readonly cursor?: string | undefined;
|
|
973
|
+
readonly coverage: readonly {
|
|
974
|
+
readonly subset: {
|
|
975
|
+
readonly objectType: string;
|
|
976
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
977
|
+
};
|
|
978
|
+
readonly complete: boolean;
|
|
979
|
+
readonly cached?: boolean | undefined;
|
|
980
|
+
}[];
|
|
981
|
+
readonly client?: {
|
|
982
|
+
readonly client: {
|
|
983
|
+
readonly sourceId: string;
|
|
984
|
+
readonly clientId: string;
|
|
985
|
+
readonly resumeKey: string;
|
|
986
|
+
};
|
|
987
|
+
readonly connectionId: string;
|
|
988
|
+
readonly expiresAt: number;
|
|
989
|
+
readonly acceptedThrough: number;
|
|
990
|
+
readonly acknowledgedThrough: number;
|
|
991
|
+
readonly deliveredThrough: number;
|
|
992
|
+
readonly deliveredRevision: number;
|
|
993
|
+
readonly appliedRevision: number;
|
|
994
|
+
readonly viewGeneration?: number | undefined;
|
|
995
|
+
readonly viewIdentity?: string | undefined;
|
|
996
|
+
readonly deliveredViewGeneration?: number | undefined;
|
|
997
|
+
} | undefined;
|
|
998
|
+
} | undefined;
|
|
999
|
+
}, string, never, never>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"SubscribeState", Schema.Struct<{
|
|
1021
1000
|
session: Schema.Struct<{
|
|
1022
1001
|
readonly client: Schema.Struct<{
|
|
1023
1002
|
readonly sourceId: Schema.NonEmptyString;
|
|
@@ -1026,10 +1005,157 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
1026
1005
|
}>;
|
|
1027
1006
|
readonly connectionId: Schema.NonEmptyString;
|
|
1028
1007
|
}>;
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1008
|
+
view: Schema.Codec<{
|
|
1009
|
+
readonly generation: number;
|
|
1010
|
+
readonly selection: {
|
|
1011
|
+
readonly subsets: readonly {
|
|
1012
|
+
readonly objectType: string;
|
|
1013
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
1014
|
+
}[];
|
|
1015
|
+
readonly actionIds: readonly string[];
|
|
1016
|
+
readonly inspectActions?: boolean | undefined;
|
|
1017
|
+
};
|
|
1018
|
+
}, string, never, never>;
|
|
1019
|
+
resume: Schema.optional<Schema.Struct<{
|
|
1020
|
+
readonly streamId: Schema.NonEmptyString;
|
|
1021
|
+
readonly sequence: Schema.Int;
|
|
1022
|
+
}>>;
|
|
1023
|
+
}>, RpcSchema.Stream<Schema.Codec<{
|
|
1024
|
+
readonly streamId: string;
|
|
1025
|
+
readonly sequence: number;
|
|
1026
|
+
readonly previous: number;
|
|
1027
|
+
readonly part: number;
|
|
1028
|
+
readonly kind: "patch" | "snapshot";
|
|
1029
|
+
readonly changes: readonly ({
|
|
1030
|
+
readonly kind: "put";
|
|
1031
|
+
readonly record: {
|
|
1032
|
+
readonly kind: "base";
|
|
1033
|
+
readonly objectType: string;
|
|
1034
|
+
readonly key: string | number;
|
|
1035
|
+
readonly value: {
|
|
1036
|
+
readonly [x: string]: unknown;
|
|
1037
|
+
};
|
|
1038
|
+
} | {
|
|
1039
|
+
readonly kind: "override";
|
|
1040
|
+
readonly objectType: string;
|
|
1041
|
+
readonly key: string | number;
|
|
1042
|
+
readonly value: {
|
|
1043
|
+
readonly deleted: true;
|
|
1044
|
+
} | {
|
|
1045
|
+
readonly deleted: false;
|
|
1046
|
+
readonly value: {
|
|
1047
|
+
readonly [x: string]: unknown;
|
|
1048
|
+
};
|
|
1049
|
+
};
|
|
1050
|
+
} | {
|
|
1051
|
+
readonly kind: "completed" | "pending";
|
|
1052
|
+
readonly id: string;
|
|
1053
|
+
readonly value: {
|
|
1054
|
+
readonly invocation: {
|
|
1055
|
+
readonly id: string;
|
|
1056
|
+
readonly name: string;
|
|
1057
|
+
readonly parameters: {
|
|
1058
|
+
readonly [x: string]: unknown;
|
|
1059
|
+
};
|
|
1060
|
+
readonly replay?: {
|
|
1061
|
+
readonly now: string;
|
|
1062
|
+
readonly seed: string;
|
|
1063
|
+
} | undefined;
|
|
1064
|
+
readonly timeoutMs?: number | undefined;
|
|
1065
|
+
};
|
|
1066
|
+
readonly requestIdentity: string;
|
|
1067
|
+
readonly createdAt: number;
|
|
1068
|
+
readonly sequence: number;
|
|
1069
|
+
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
1070
|
+
readonly optimistic: boolean;
|
|
1071
|
+
readonly attempts: number;
|
|
1072
|
+
readonly blockedBy?: string | true | undefined;
|
|
1073
|
+
readonly retryFromAttempt?: number | undefined;
|
|
1074
|
+
readonly nextAttemptAt?: number | undefined;
|
|
1075
|
+
readonly failureMessage?: string | undefined;
|
|
1076
|
+
readonly failureIssues?: readonly {
|
|
1077
|
+
readonly message: string;
|
|
1078
|
+
readonly path?: readonly (string | number)[] | undefined;
|
|
1079
|
+
readonly code?: string | undefined;
|
|
1080
|
+
readonly category?: "custom" | "input" | "reference" | undefined;
|
|
1081
|
+
readonly source?: "parameter" | "submission" | "user-facing" | undefined;
|
|
1082
|
+
readonly messageSource?: "configured" | "standard" | undefined;
|
|
1083
|
+
}[] | undefined;
|
|
1084
|
+
readonly completedAt?: number | undefined;
|
|
1085
|
+
readonly retryRequiresAcknowledgement?: boolean | undefined;
|
|
1086
|
+
readonly failureOutcome?: "not-committed" | "unknown" | undefined;
|
|
1087
|
+
readonly failureRetryable?: boolean | undefined;
|
|
1088
|
+
readonly receipt?: {
|
|
1089
|
+
readonly operationId: string;
|
|
1090
|
+
readonly outcome: "committed";
|
|
1091
|
+
readonly result?: unknown;
|
|
1092
|
+
readonly cursor?: string | undefined;
|
|
1093
|
+
readonly providerOperationId?: string | undefined;
|
|
1094
|
+
readonly affected?: readonly {
|
|
1095
|
+
readonly objectType: string;
|
|
1096
|
+
readonly keys?: readonly (string | number)[] | undefined;
|
|
1097
|
+
}[] | undefined;
|
|
1098
|
+
readonly affectedComplete?: boolean | undefined;
|
|
1099
|
+
readonly attachmentIdMappings?: readonly {
|
|
1100
|
+
readonly localId: string;
|
|
1101
|
+
readonly remoteId: string;
|
|
1102
|
+
}[] | undefined;
|
|
1103
|
+
} | undefined;
|
|
1104
|
+
readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
1105
|
+
readonly submission?: {
|
|
1106
|
+
readonly clientId: string;
|
|
1107
|
+
readonly sequence: number;
|
|
1108
|
+
} | undefined;
|
|
1109
|
+
readonly prediction?: "applied" | "dropped" | "none" | undefined;
|
|
1110
|
+
readonly predictionFailure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
1111
|
+
readonly predictionMessage?: string | undefined;
|
|
1112
|
+
};
|
|
1113
|
+
};
|
|
1114
|
+
} | {
|
|
1115
|
+
readonly kind: "remove";
|
|
1116
|
+
readonly ref: {
|
|
1117
|
+
readonly kind: "base" | "override";
|
|
1118
|
+
readonly objectType: string;
|
|
1119
|
+
readonly key: string | number;
|
|
1120
|
+
} | {
|
|
1121
|
+
readonly kind: "completed" | "pending";
|
|
1122
|
+
readonly id: string;
|
|
1123
|
+
};
|
|
1124
|
+
})[];
|
|
1125
|
+
readonly end: boolean;
|
|
1126
|
+
readonly metadata?: {
|
|
1127
|
+
readonly sourceId: string;
|
|
1128
|
+
readonly schemaHash: string;
|
|
1129
|
+
readonly generation: number;
|
|
1130
|
+
readonly revision: number;
|
|
1131
|
+
readonly cursor?: string | undefined;
|
|
1132
|
+
readonly coverage: readonly {
|
|
1133
|
+
readonly subset: {
|
|
1134
|
+
readonly objectType: string;
|
|
1135
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
1136
|
+
};
|
|
1137
|
+
readonly complete: boolean;
|
|
1138
|
+
readonly cached?: boolean | undefined;
|
|
1139
|
+
}[];
|
|
1140
|
+
readonly client?: {
|
|
1141
|
+
readonly client: {
|
|
1142
|
+
readonly sourceId: string;
|
|
1143
|
+
readonly clientId: string;
|
|
1144
|
+
readonly resumeKey: string;
|
|
1145
|
+
};
|
|
1146
|
+
readonly connectionId: string;
|
|
1147
|
+
readonly expiresAt: number;
|
|
1148
|
+
readonly acceptedThrough: number;
|
|
1149
|
+
readonly acknowledgedThrough: number;
|
|
1150
|
+
readonly deliveredThrough: number;
|
|
1151
|
+
readonly deliveredRevision: number;
|
|
1152
|
+
readonly appliedRevision: number;
|
|
1153
|
+
readonly viewGeneration?: number | undefined;
|
|
1154
|
+
readonly viewIdentity?: string | undefined;
|
|
1155
|
+
readonly deliveredViewGeneration?: number | undefined;
|
|
1156
|
+
} | undefined;
|
|
1157
|
+
} | undefined;
|
|
1158
|
+
}, string, never, never>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"Traces", Schema.Void, RpcSchema.Stream<Schema.$Array<Schema.Struct<{
|
|
1033
1159
|
readonly id: Schema.String;
|
|
1034
1160
|
readonly traceId: Schema.String;
|
|
1035
1161
|
readonly parentId: Schema.optional<Schema.String>;
|
|
@@ -1048,182 +1174,56 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
1048
1174
|
}>>>;
|
|
1049
1175
|
readonly eventCount: Schema.optional<Schema.Number>;
|
|
1050
1176
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1051
|
-
}>>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"
|
|
1052
|
-
|
|
1053
|
-
readonly
|
|
1054
|
-
readonly
|
|
1055
|
-
readonly
|
|
1056
|
-
readonly
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
readonly
|
|
1064
|
-
} | undefined;
|
|
1065
|
-
readonly memoryError?: string | undefined;
|
|
1066
|
-
readonly storageError?: string | undefined;
|
|
1067
|
-
} | undefined;
|
|
1068
|
-
readonly cache?: {
|
|
1069
|
-
readonly attachments?: {
|
|
1070
|
-
readonly bytes: number;
|
|
1071
|
-
readonly maxBytes?: number | undefined;
|
|
1072
|
-
readonly targetBytes?: number | undefined;
|
|
1073
|
-
} | undefined;
|
|
1074
|
-
readonly objects: {
|
|
1075
|
-
readonly byObjectType?: readonly {
|
|
1177
|
+
}>>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"UpdateView", Schema.Struct<{
|
|
1178
|
+
session: Schema.Struct<{
|
|
1179
|
+
readonly client: Schema.Struct<{
|
|
1180
|
+
readonly sourceId: Schema.NonEmptyString;
|
|
1181
|
+
readonly clientId: Schema.NonEmptyString;
|
|
1182
|
+
readonly resumeKey: Schema.NonEmptyString;
|
|
1183
|
+
}>;
|
|
1184
|
+
readonly connectionId: Schema.NonEmptyString;
|
|
1185
|
+
}>;
|
|
1186
|
+
view: Schema.Codec<{
|
|
1187
|
+
readonly generation: number;
|
|
1188
|
+
readonly selection: {
|
|
1189
|
+
readonly subsets: readonly {
|
|
1076
1190
|
readonly objectType: string;
|
|
1077
|
-
readonly
|
|
1078
|
-
}[]
|
|
1079
|
-
readonly
|
|
1080
|
-
readonly
|
|
1081
|
-
readonly targetBytes?: number | undefined;
|
|
1191
|
+
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
1192
|
+
}[];
|
|
1193
|
+
readonly actionIds: readonly string[];
|
|
1194
|
+
readonly inspectActions?: boolean | undefined;
|
|
1082
1195
|
};
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
readonly
|
|
1086
|
-
readonly
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
readonly status: "inactive";
|
|
1098
|
-
} | {
|
|
1099
|
-
readonly status: "needs-auth";
|
|
1100
|
-
readonly error?: string | undefined;
|
|
1196
|
+
}, string, never, never>;
|
|
1197
|
+
}>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ValidateAction", Schema.Codec<{
|
|
1198
|
+
readonly name: string;
|
|
1199
|
+
readonly parameters: {
|
|
1200
|
+
readonly [x: string]: unknown;
|
|
1201
|
+
};
|
|
1202
|
+
readonly knownParameters?: readonly string[] | undefined;
|
|
1203
|
+
}, string, never, never>, Schema.Codec<{
|
|
1204
|
+
readonly certain: false;
|
|
1205
|
+
} | {
|
|
1206
|
+
readonly certain: true;
|
|
1207
|
+
readonly value: {
|
|
1208
|
+
readonly kind: "ok";
|
|
1209
|
+
readonly value: void;
|
|
1101
1210
|
} | {
|
|
1102
|
-
readonly
|
|
1103
|
-
readonly
|
|
1104
|
-
} | undefined;
|
|
1105
|
-
readonly watchError?: {
|
|
1106
|
-
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
1107
|
-
readonly message: string;
|
|
1108
|
-
readonly retryable: boolean;
|
|
1109
|
-
} | undefined;
|
|
1110
|
-
readonly definition?: {
|
|
1111
|
-
readonly hash: string;
|
|
1112
|
-
readonly error?: {
|
|
1113
|
-
readonly hash?: string | undefined;
|
|
1114
|
-
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
1115
|
-
readonly message: string;
|
|
1116
|
-
} | undefined;
|
|
1117
|
-
} | undefined;
|
|
1118
|
-
readonly replicationError?: {
|
|
1119
|
-
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
1120
|
-
readonly message: string;
|
|
1121
|
-
readonly recovery: "reconnect" | "session" | "snapshot" | "stop";
|
|
1122
|
-
} | undefined;
|
|
1123
|
-
readonly syncing: boolean;
|
|
1124
|
-
readonly lastSync?: {
|
|
1125
|
-
readonly startedAt: number;
|
|
1126
|
-
readonly finishedAt: number;
|
|
1127
|
-
readonly outcome: "failure" | "interrupted" | "success";
|
|
1128
|
-
readonly error?: {
|
|
1129
|
-
readonly kind: string;
|
|
1130
|
-
readonly message: string;
|
|
1131
|
-
} | undefined;
|
|
1132
|
-
} | undefined;
|
|
1133
|
-
readonly demands: readonly {
|
|
1134
|
-
readonly objectType: string;
|
|
1135
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
1136
|
-
readonly references: number;
|
|
1137
|
-
readonly idleUntil?: number | undefined;
|
|
1138
|
-
readonly watchers: number;
|
|
1139
|
-
readonly loadError?: {
|
|
1140
|
-
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
1141
|
-
readonly message: string;
|
|
1142
|
-
readonly retryable: boolean;
|
|
1143
|
-
} | undefined;
|
|
1144
|
-
readonly watchError?: {
|
|
1145
|
-
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
1211
|
+
readonly kind: "err";
|
|
1212
|
+
readonly value: readonly {
|
|
1146
1213
|
readonly message: string;
|
|
1147
|
-
readonly
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
1154
|
-
} | undefined;
|
|
1155
|
-
readonly coverageProof?: {
|
|
1156
|
-
readonly reason: "collection" | "primary-key" | "query";
|
|
1157
|
-
readonly maintainedBy: "journal" | "poll" | "snapshot" | "watch";
|
|
1158
|
-
readonly pollIntervalMs?: number | undefined;
|
|
1159
|
-
readonly stale?: boolean | undefined;
|
|
1160
|
-
readonly confirmedAt?: number | undefined;
|
|
1161
|
-
} | undefined;
|
|
1162
|
-
}[];
|
|
1163
|
-
readonly outbox: {
|
|
1164
|
-
readonly [x: string]: number;
|
|
1214
|
+
readonly path?: readonly (string | number)[] | undefined;
|
|
1215
|
+
readonly code?: string | undefined;
|
|
1216
|
+
readonly category?: "custom" | "input" | "reference" | undefined;
|
|
1217
|
+
readonly source?: "parameter" | "submission" | "user-facing" | undefined;
|
|
1218
|
+
readonly messageSource?: "configured" | "standard" | undefined;
|
|
1219
|
+
}[];
|
|
1165
1220
|
};
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
readonly subset?: {
|
|
1173
|
-
readonly objectType: string;
|
|
1174
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
1175
|
-
} | undefined;
|
|
1176
|
-
readonly startedAt: number;
|
|
1177
|
-
readonly finishedAt?: number | undefined;
|
|
1178
|
-
readonly outcome: "failure" | "interrupted" | "running" | "success";
|
|
1179
|
-
readonly rows?: number | undefined;
|
|
1180
|
-
readonly fetchedRows?: number | undefined;
|
|
1181
|
-
readonly pushdown?: {
|
|
1182
|
-
readonly source: string;
|
|
1183
|
-
readonly predicates: readonly {
|
|
1184
|
-
readonly path: readonly number[];
|
|
1185
|
-
readonly execution: "adapter" | "candidate" | "engine" | "source";
|
|
1186
|
-
}[];
|
|
1187
|
-
readonly sorting: "adapter" | "engine" | "none" | "source";
|
|
1188
|
-
readonly pagination: "adapter" | "engine" | "none" | "source";
|
|
1189
|
-
readonly rechecksFilter: boolean;
|
|
1190
|
-
readonly native?: {
|
|
1191
|
-
readonly language: string;
|
|
1192
|
-
readonly text: string;
|
|
1193
|
-
} | undefined;
|
|
1194
|
-
} | undefined;
|
|
1195
|
-
readonly commits?: number | undefined;
|
|
1196
|
-
readonly complete?: boolean | undefined;
|
|
1197
|
-
readonly error?: {
|
|
1198
|
-
readonly kind: string;
|
|
1199
|
-
readonly message: string;
|
|
1200
|
-
} | undefined;
|
|
1201
|
-
}[];
|
|
1202
|
-
readonly loadCount: number;
|
|
1203
|
-
}, 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<{
|
|
1204
|
-
readonly version: Schema.Literals<readonly [1, 2]>;
|
|
1205
|
-
readonly replication: Schema.Literals<readonly ["committed", "speculative"]>;
|
|
1206
|
-
readonly definitionHash: Schema.optional<Schema.String>;
|
|
1207
|
-
readonly contractHash: Schema.optional<Schema.String>;
|
|
1208
|
-
readonly sourceId: Schema.NonEmptyString;
|
|
1209
|
-
readonly context: Schema.optional<Schema.Codec<{
|
|
1210
|
-
readonly [x: string]: unknown;
|
|
1211
|
-
}, string, never, never>>;
|
|
1212
|
-
readonly supportsIdempotency: Schema.Boolean;
|
|
1213
|
-
readonly delivery: Schema.optional<Schema.Boolean>;
|
|
1214
|
-
readonly stateDelivery: Schema.optional<Schema.Boolean>;
|
|
1215
|
-
readonly changes: Schema.optional<Schema.Boolean>;
|
|
1216
|
-
readonly watchChanges: Schema.optional<Schema.Boolean>;
|
|
1217
|
-
readonly watchSubset: Schema.optional<Schema.Boolean>;
|
|
1218
|
-
readonly actionParameterResolution: Schema.optional<Schema.Boolean>;
|
|
1219
|
-
readonly queries: Schema.optional<Schema.Boolean>;
|
|
1220
|
-
readonly system: Schema.optional<Schema.Boolean>;
|
|
1221
|
-
readonly meta: Schema.optional<Schema.Boolean>;
|
|
1222
|
-
readonly attachments: Schema.optional<Schema.Struct<{
|
|
1223
|
-
readonly stage: Schema.Boolean;
|
|
1224
|
-
}>>;
|
|
1225
|
-
readonly encrypted: Schema.optional<Schema.Boolean>;
|
|
1226
|
-
}>, 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>>;
|
|
1221
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"WatchChanges", Schema.Void, RpcSchema.Stream<Schema.Literal<"invalidate">, typeof BackendError>, Schema.Never, 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<"WriteAttachmentChunk", Schema.Struct<{
|
|
1222
|
+
readonly uploadId: Schema.NonEmptyString;
|
|
1223
|
+
readonly sequence: Schema.Int;
|
|
1224
|
+
readonly bytes: Schema.Uint8ArrayFromBase64;
|
|
1225
|
+
readonly end: Schema.Boolean;
|
|
1226
|
+
}>, Schema.Void, typeof BackendError, typeof OntologyErrorProjection, never>>;
|
|
1227
1227
|
declare const SubscriptionTracing_base: RpcMiddleware.ServiceClass<SubscriptionTracing, "@party-stack/ontology-server/SubscriptionTracing", never, Schema.Never, never, never, true>;
|
|
1228
1228
|
declare class SubscriptionTracing extends SubscriptionTracing_base {}
|
|
1229
1229
|
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>>>;
|