@party-stack/ontology-server 0.14.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/operations.d.ts +2 -1
- package/lib/operations.d.ts.map +1 -1
- package/lib/operations.js +7 -10
- package/lib/operations.js.map +1 -1
- package/lib/rpc.d.ts +804 -773
- 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: {
|
|
@@ -55,6 +76,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
55
76
|
readonly now: string;
|
|
56
77
|
readonly seed: string;
|
|
57
78
|
} | undefined;
|
|
79
|
+
readonly timeoutMs?: number | undefined;
|
|
58
80
|
}, string, never, never>, Schema.Struct<{
|
|
59
81
|
readonly operationId: Schema.String;
|
|
60
82
|
readonly outcome: Schema.Literal<"committed">;
|
|
@@ -70,43 +92,26 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
70
92
|
readonly localId: Schema.String;
|
|
71
93
|
readonly remoteId: Schema.String;
|
|
72
94
|
}>>>;
|
|
73
|
-
}>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"
|
|
74
|
-
readonly
|
|
75
|
-
|
|
76
|
-
readonly
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
readonly
|
|
87
|
-
readonly
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
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<{
|
|
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<{
|
|
110
115
|
readonly operation: "edit" | "remove" | "retry";
|
|
111
116
|
readonly id: string;
|
|
112
117
|
readonly invocation?: {
|
|
@@ -119,65 +124,200 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
119
124
|
readonly now: string;
|
|
120
125
|
readonly seed: string;
|
|
121
126
|
} | undefined;
|
|
127
|
+
readonly timeoutMs?: number | undefined;
|
|
122
128
|
} | undefined;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
readonly
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
readonly
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
readonly
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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;
|
|
143
212
|
} | undefined;
|
|
144
|
-
};
|
|
145
|
-
readonly optimistic: boolean;
|
|
146
|
-
readonly stagedAttachments?: readonly string[] | undefined;
|
|
147
|
-
readonly view?: {
|
|
148
|
-
readonly generation: number;
|
|
149
|
-
readonly selection: {
|
|
150
|
-
readonly subsets: readonly {
|
|
151
|
-
readonly objectType: string;
|
|
152
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
153
|
-
}[];
|
|
154
|
-
readonly actionIds: readonly string[];
|
|
155
|
-
readonly inspectActions?: boolean | undefined;
|
|
156
|
-
};
|
|
157
213
|
} | undefined;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
readonly
|
|
161
|
-
|
|
162
|
-
|
|
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
|
+
} | {
|
|
319
|
+
readonly deleted: false;
|
|
320
|
+
readonly value: {
|
|
181
321
|
readonly [x: string]: unknown;
|
|
182
322
|
};
|
|
183
323
|
};
|
|
@@ -194,6 +334,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
194
334
|
readonly now: string;
|
|
195
335
|
readonly seed: string;
|
|
196
336
|
} | undefined;
|
|
337
|
+
readonly timeoutMs?: number | undefined;
|
|
197
338
|
};
|
|
198
339
|
readonly requestIdentity: string;
|
|
199
340
|
readonly createdAt: number;
|
|
@@ -201,6 +342,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
201
342
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
202
343
|
readonly optimistic: boolean;
|
|
203
344
|
readonly attempts: number;
|
|
345
|
+
readonly blockedBy?: string | true | undefined;
|
|
204
346
|
readonly retryFromAttempt?: number | undefined;
|
|
205
347
|
readonly nextAttemptAt?: number | undefined;
|
|
206
348
|
readonly failureMessage?: string | undefined;
|
|
@@ -252,6 +394,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
252
394
|
readonly now: string;
|
|
253
395
|
readonly seed: string;
|
|
254
396
|
} | undefined;
|
|
397
|
+
readonly timeoutMs?: number | undefined;
|
|
255
398
|
};
|
|
256
399
|
readonly requestIdentity: string;
|
|
257
400
|
readonly createdAt: number;
|
|
@@ -259,6 +402,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
259
402
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
260
403
|
readonly optimistic: boolean;
|
|
261
404
|
readonly attempts: number;
|
|
405
|
+
readonly blockedBy?: string | true | undefined;
|
|
262
406
|
readonly retryFromAttempt?: number | undefined;
|
|
263
407
|
readonly nextAttemptAt?: number | undefined;
|
|
264
408
|
readonly failureMessage?: string | undefined;
|
|
@@ -325,44 +469,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
325
469
|
readonly complete: boolean;
|
|
326
470
|
readonly cached?: boolean | undefined;
|
|
327
471
|
}[] | undefined;
|
|
328
|
-
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"
|
|
329
|
-
readonly session: {
|
|
330
|
-
readonly client: {
|
|
331
|
-
readonly sourceId: string;
|
|
332
|
-
readonly clientId: string;
|
|
333
|
-
readonly resumeKey: string;
|
|
334
|
-
};
|
|
335
|
-
readonly connectionId: string;
|
|
336
|
-
};
|
|
337
|
-
readonly sequence: number;
|
|
338
|
-
readonly invocation: {
|
|
339
|
-
readonly id: string;
|
|
340
|
-
readonly name: string;
|
|
341
|
-
readonly parameters: {
|
|
342
|
-
readonly [x: string]: unknown;
|
|
343
|
-
};
|
|
344
|
-
readonly replay?: {
|
|
345
|
-
readonly now: string;
|
|
346
|
-
readonly seed: string;
|
|
347
|
-
} | undefined;
|
|
348
|
-
};
|
|
349
|
-
readonly optimistic: boolean;
|
|
350
|
-
readonly stagedAttachments?: readonly string[] | undefined;
|
|
351
|
-
readonly view?: {
|
|
352
|
-
readonly generation: number;
|
|
353
|
-
readonly selection: {
|
|
354
|
-
readonly subsets: readonly {
|
|
355
|
-
readonly objectType: string;
|
|
356
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
357
|
-
}[];
|
|
358
|
-
readonly actionIds: readonly string[];
|
|
359
|
-
readonly inspectActions?: boolean | undefined;
|
|
360
|
-
};
|
|
361
|
-
} | 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<{
|
|
472
|
+
}, string, never, never>, typeof BackendError, typeof OntologyErrorProjection, never> | Rpc.Rpc<"ReadAttachment", Schema.Struct<{
|
|
366
473
|
readonly id: Schema.NonEmptyString;
|
|
367
474
|
readonly type: Schema.optional<Schema.String>;
|
|
368
475
|
readonly source: Schema.optional<Schema.Struct<{
|
|
@@ -378,450 +485,190 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
378
485
|
}>, Schema.Struct<{
|
|
379
486
|
readonly kind: Schema.Literal<"bytes">;
|
|
380
487
|
readonly bytes: Schema.Uint8ArrayFromBase64;
|
|
381
|
-
}>]>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"
|
|
382
|
-
readonly
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
readonly
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
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;
|
|
427
|
-
};
|
|
428
|
-
} | {
|
|
429
|
-
readonly kind: "delete";
|
|
430
|
-
readonly objectType: string;
|
|
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<{
|
|
470
|
-
selection: Schema.Codec<{
|
|
471
|
-
readonly subsets: readonly import("@party-stack/ontology-spec/query").ObjectSubset[];
|
|
472
|
-
}, string, never, never>;
|
|
473
|
-
resume: Schema.optional<Schema.Struct<{
|
|
474
|
-
readonly streamId: Schema.NonEmptyString;
|
|
475
|
-
readonly sequence: Schema.Int;
|
|
476
|
-
}>>;
|
|
477
|
-
}>, RpcSchema.Stream<Schema.Codec<{
|
|
478
|
-
readonly streamId: string;
|
|
479
|
-
readonly sequence: number;
|
|
480
|
-
readonly previous: number;
|
|
481
|
-
readonly part: number;
|
|
482
|
-
readonly kind: "patch" | "snapshot";
|
|
483
|
-
readonly changes: readonly ({
|
|
484
|
-
readonly kind: "put";
|
|
485
|
-
readonly record: {
|
|
486
|
-
readonly kind: "base";
|
|
487
|
-
readonly objectType: string;
|
|
488
|
-
readonly key: string | number;
|
|
489
|
-
readonly value: {
|
|
490
|
-
readonly [x: string]: unknown;
|
|
491
|
-
};
|
|
492
|
-
} | {
|
|
493
|
-
readonly kind: "override";
|
|
494
|
-
readonly objectType: string;
|
|
495
|
-
readonly key: string | number;
|
|
496
|
-
readonly value: {
|
|
497
|
-
readonly deleted: true;
|
|
498
|
-
} | {
|
|
499
|
-
readonly deleted: false;
|
|
500
|
-
readonly value: {
|
|
501
|
-
readonly [x: string]: unknown;
|
|
502
|
-
};
|
|
503
|
-
};
|
|
504
|
-
} | {
|
|
505
|
-
readonly kind: "completed" | "pending";
|
|
506
|
-
readonly id: string;
|
|
507
|
-
readonly value: {
|
|
508
|
-
readonly invocation: {
|
|
509
|
-
readonly id: string;
|
|
510
|
-
readonly name: string;
|
|
511
|
-
readonly parameters: {
|
|
512
|
-
readonly [x: string]: unknown;
|
|
513
|
-
};
|
|
514
|
-
readonly replay?: {
|
|
515
|
-
readonly now: string;
|
|
516
|
-
readonly seed: string;
|
|
517
|
-
} | undefined;
|
|
518
|
-
};
|
|
519
|
-
readonly requestIdentity: string;
|
|
520
|
-
readonly createdAt: number;
|
|
521
|
-
readonly sequence: number;
|
|
522
|
-
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
523
|
-
readonly optimistic: boolean;
|
|
524
|
-
readonly attempts: number;
|
|
525
|
-
readonly retryFromAttempt?: number | undefined;
|
|
526
|
-
readonly nextAttemptAt?: number | undefined;
|
|
527
|
-
readonly failureMessage?: string | undefined;
|
|
528
|
-
readonly failureIssues?: readonly {
|
|
529
|
-
readonly message: string;
|
|
530
|
-
readonly path?: readonly (string | number)[] | undefined;
|
|
531
|
-
readonly code?: string | undefined;
|
|
532
|
-
readonly category?: "custom" | "input" | "reference" | undefined;
|
|
533
|
-
readonly source?: "parameter" | "submission" | "user-facing" | undefined;
|
|
534
|
-
readonly messageSource?: "configured" | "standard" | undefined;
|
|
535
|
-
}[] | undefined;
|
|
536
|
-
readonly completedAt?: number | undefined;
|
|
537
|
-
readonly retryRequiresAcknowledgement?: boolean | undefined;
|
|
538
|
-
readonly failureOutcome?: "not-committed" | "unknown" | undefined;
|
|
539
|
-
readonly failureRetryable?: boolean | undefined;
|
|
540
|
-
readonly receipt?: {
|
|
541
|
-
readonly operationId: string;
|
|
542
|
-
readonly outcome: "committed";
|
|
543
|
-
readonly result?: unknown;
|
|
544
|
-
readonly cursor?: string | undefined;
|
|
545
|
-
readonly providerOperationId?: string | undefined;
|
|
546
|
-
readonly affected?: readonly {
|
|
547
|
-
readonly objectType: string;
|
|
548
|
-
readonly keys?: readonly (string | number)[] | undefined;
|
|
549
|
-
}[] | undefined;
|
|
550
|
-
readonly affectedComplete?: boolean | undefined;
|
|
551
|
-
readonly attachmentIdMappings?: readonly {
|
|
552
|
-
readonly localId: string;
|
|
553
|
-
readonly remoteId: string;
|
|
554
|
-
}[] | undefined;
|
|
555
|
-
} | undefined;
|
|
556
|
-
readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
557
|
-
readonly submission?: {
|
|
558
|
-
readonly clientId: string;
|
|
559
|
-
readonly sequence: number;
|
|
560
|
-
} | undefined;
|
|
561
|
-
readonly prediction?: "applied" | "dropped" | "none" | undefined;
|
|
562
|
-
readonly predictionFailure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
563
|
-
readonly predictionMessage?: string | undefined;
|
|
564
|
-
};
|
|
565
|
-
};
|
|
566
|
-
} | {
|
|
567
|
-
readonly kind: "remove";
|
|
568
|
-
readonly ref: {
|
|
569
|
-
readonly kind: "base" | "override";
|
|
570
|
-
readonly objectType: string;
|
|
571
|
-
readonly key: string | number;
|
|
572
|
-
} | {
|
|
573
|
-
readonly kind: "completed" | "pending";
|
|
574
|
-
readonly id: string;
|
|
575
|
-
};
|
|
576
|
-
})[];
|
|
577
|
-
readonly end: boolean;
|
|
578
|
-
readonly metadata?: {
|
|
579
|
-
readonly sourceId: string;
|
|
580
|
-
readonly schemaHash: string;
|
|
581
|
-
readonly generation: number;
|
|
582
|
-
readonly revision: number;
|
|
583
|
-
readonly cursor?: string | undefined;
|
|
584
|
-
readonly coverage: readonly {
|
|
585
|
-
readonly subset: {
|
|
586
|
-
readonly objectType: string;
|
|
587
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
588
|
-
};
|
|
589
|
-
readonly complete: boolean;
|
|
590
|
-
readonly cached?: boolean | undefined;
|
|
591
|
-
}[];
|
|
592
|
-
readonly client?: {
|
|
593
|
-
readonly client: {
|
|
594
|
-
readonly sourceId: string;
|
|
595
|
-
readonly clientId: string;
|
|
596
|
-
readonly resumeKey: string;
|
|
597
|
-
};
|
|
598
|
-
readonly connectionId: string;
|
|
599
|
-
readonly expiresAt: number;
|
|
600
|
-
readonly acceptedThrough: number;
|
|
601
|
-
readonly acknowledgedThrough: number;
|
|
602
|
-
readonly deliveredThrough: number;
|
|
603
|
-
readonly deliveredRevision: number;
|
|
604
|
-
readonly appliedRevision: number;
|
|
605
|
-
readonly viewGeneration?: number | undefined;
|
|
606
|
-
readonly viewIdentity?: string | undefined;
|
|
607
|
-
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;
|
|
608
501
|
} | undefined;
|
|
502
|
+
readonly memoryError?: string | undefined;
|
|
503
|
+
readonly storageError?: string | undefined;
|
|
609
504
|
} | undefined;
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
readonly
|
|
614
|
-
readonly
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
}>;
|
|
619
|
-
view: Schema.Codec<{
|
|
620
|
-
readonly generation: number;
|
|
621
|
-
readonly selection: {
|
|
622
|
-
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 {
|
|
623
513
|
readonly objectType: string;
|
|
624
|
-
readonly
|
|
625
|
-
}[];
|
|
626
|
-
readonly
|
|
627
|
-
readonly
|
|
628
|
-
|
|
629
|
-
}, string, never, never>;
|
|
630
|
-
resume: Schema.optional<Schema.Struct<{
|
|
631
|
-
readonly streamId: Schema.NonEmptyString;
|
|
632
|
-
readonly sequence: Schema.Int;
|
|
633
|
-
}>>;
|
|
634
|
-
}>, RpcSchema.Stream<Schema.Codec<{
|
|
635
|
-
readonly streamId: string;
|
|
636
|
-
readonly sequence: number;
|
|
637
|
-
readonly previous: number;
|
|
638
|
-
readonly part: number;
|
|
639
|
-
readonly kind: "patch" | "snapshot";
|
|
640
|
-
readonly changes: readonly ({
|
|
641
|
-
readonly kind: "put";
|
|
642
|
-
readonly record: {
|
|
643
|
-
readonly kind: "base";
|
|
644
|
-
readonly objectType: string;
|
|
645
|
-
readonly key: string | number;
|
|
646
|
-
readonly value: {
|
|
647
|
-
readonly [x: string]: unknown;
|
|
648
|
-
};
|
|
649
|
-
} | {
|
|
650
|
-
readonly kind: "override";
|
|
651
|
-
readonly objectType: string;
|
|
652
|
-
readonly key: string | number;
|
|
653
|
-
readonly value: {
|
|
654
|
-
readonly deleted: true;
|
|
655
|
-
} | {
|
|
656
|
-
readonly deleted: false;
|
|
657
|
-
readonly value: {
|
|
658
|
-
readonly [x: string]: unknown;
|
|
659
|
-
};
|
|
660
|
-
};
|
|
661
|
-
} | {
|
|
662
|
-
readonly kind: "completed" | "pending";
|
|
663
|
-
readonly id: string;
|
|
664
|
-
readonly value: {
|
|
665
|
-
readonly invocation: {
|
|
666
|
-
readonly id: string;
|
|
667
|
-
readonly name: string;
|
|
668
|
-
readonly parameters: {
|
|
669
|
-
readonly [x: string]: unknown;
|
|
670
|
-
};
|
|
671
|
-
readonly replay?: {
|
|
672
|
-
readonly now: string;
|
|
673
|
-
readonly seed: string;
|
|
674
|
-
} | undefined;
|
|
675
|
-
};
|
|
676
|
-
readonly requestIdentity: string;
|
|
677
|
-
readonly createdAt: number;
|
|
678
|
-
readonly sequence: number;
|
|
679
|
-
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
680
|
-
readonly optimistic: boolean;
|
|
681
|
-
readonly attempts: number;
|
|
682
|
-
readonly retryFromAttempt?: number | undefined;
|
|
683
|
-
readonly nextAttemptAt?: number | undefined;
|
|
684
|
-
readonly failureMessage?: string | undefined;
|
|
685
|
-
readonly failureIssues?: readonly {
|
|
686
|
-
readonly message: string;
|
|
687
|
-
readonly path?: readonly (string | number)[] | undefined;
|
|
688
|
-
readonly code?: string | undefined;
|
|
689
|
-
readonly category?: "custom" | "input" | "reference" | undefined;
|
|
690
|
-
readonly source?: "parameter" | "submission" | "user-facing" | undefined;
|
|
691
|
-
readonly messageSource?: "configured" | "standard" | undefined;
|
|
692
|
-
}[] | undefined;
|
|
693
|
-
readonly completedAt?: number | undefined;
|
|
694
|
-
readonly retryRequiresAcknowledgement?: boolean | undefined;
|
|
695
|
-
readonly failureOutcome?: "not-committed" | "unknown" | undefined;
|
|
696
|
-
readonly failureRetryable?: boolean | undefined;
|
|
697
|
-
readonly receipt?: {
|
|
698
|
-
readonly operationId: string;
|
|
699
|
-
readonly outcome: "committed";
|
|
700
|
-
readonly result?: unknown;
|
|
701
|
-
readonly cursor?: string | undefined;
|
|
702
|
-
readonly providerOperationId?: string | undefined;
|
|
703
|
-
readonly affected?: readonly {
|
|
704
|
-
readonly objectType: string;
|
|
705
|
-
readonly keys?: readonly (string | number)[] | undefined;
|
|
706
|
-
}[] | undefined;
|
|
707
|
-
readonly affectedComplete?: boolean | undefined;
|
|
708
|
-
readonly attachmentIdMappings?: readonly {
|
|
709
|
-
readonly localId: string;
|
|
710
|
-
readonly remoteId: string;
|
|
711
|
-
}[] | undefined;
|
|
712
|
-
} | undefined;
|
|
713
|
-
readonly failure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
714
|
-
readonly submission?: {
|
|
715
|
-
readonly clientId: string;
|
|
716
|
-
readonly sequence: number;
|
|
717
|
-
} | undefined;
|
|
718
|
-
readonly prediction?: "applied" | "dropped" | "none" | undefined;
|
|
719
|
-
readonly predictionFailure?: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced" | undefined;
|
|
720
|
-
readonly predictionMessage?: string | undefined;
|
|
721
|
-
};
|
|
514
|
+
readonly bytes: number;
|
|
515
|
+
}[] | undefined;
|
|
516
|
+
readonly bytes: number;
|
|
517
|
+
readonly maxBytes?: number | undefined;
|
|
518
|
+
readonly targetBytes?: number | undefined;
|
|
722
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";
|
|
723
527
|
} | {
|
|
724
|
-
readonly
|
|
725
|
-
readonly
|
|
726
|
-
readonly kind: "base" | "override";
|
|
727
|
-
readonly objectType: string;
|
|
728
|
-
readonly key: string | number;
|
|
729
|
-
} | {
|
|
730
|
-
readonly kind: "completed" | "pending";
|
|
731
|
-
readonly id: string;
|
|
732
|
-
};
|
|
733
|
-
})[];
|
|
734
|
-
readonly end: boolean;
|
|
735
|
-
readonly metadata?: {
|
|
736
|
-
readonly sourceId: string;
|
|
737
|
-
readonly schemaHash: string;
|
|
738
|
-
readonly generation: number;
|
|
739
|
-
readonly revision: number;
|
|
740
|
-
readonly cursor?: string | undefined;
|
|
741
|
-
readonly coverage: readonly {
|
|
742
|
-
readonly subset: {
|
|
743
|
-
readonly objectType: string;
|
|
744
|
-
readonly query?: import("@party-stack/ontology-storage").Query | undefined;
|
|
745
|
-
};
|
|
746
|
-
readonly complete: boolean;
|
|
747
|
-
readonly cached?: boolean | undefined;
|
|
748
|
-
}[];
|
|
749
|
-
readonly client?: {
|
|
750
|
-
readonly client: {
|
|
751
|
-
readonly sourceId: string;
|
|
752
|
-
readonly clientId: string;
|
|
753
|
-
readonly resumeKey: string;
|
|
754
|
-
};
|
|
755
|
-
readonly connectionId: string;
|
|
528
|
+
readonly status: "active";
|
|
529
|
+
readonly expiration?: {
|
|
756
530
|
readonly expiresAt: number;
|
|
757
|
-
readonly
|
|
758
|
-
readonly acknowledgedThrough: number;
|
|
759
|
-
readonly deliveredThrough: number;
|
|
760
|
-
readonly deliveredRevision: number;
|
|
761
|
-
readonly appliedRevision: number;
|
|
762
|
-
readonly viewGeneration?: number | undefined;
|
|
763
|
-
readonly viewIdentity?: string | undefined;
|
|
764
|
-
readonly deliveredViewGeneration?: number | undefined;
|
|
531
|
+
readonly refreshable: boolean;
|
|
765
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;
|
|
766
541
|
} | undefined;
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
readonly
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
readonly
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
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";
|
|
782
623
|
}[];
|
|
783
|
-
readonly
|
|
784
|
-
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;
|
|
785
653
|
};
|
|
786
|
-
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
readonly
|
|
791
|
-
readonly
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
readonly
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
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<{
|
|
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?: {
|
|
825
672
|
readonly generation: number;
|
|
826
673
|
readonly selection: {
|
|
827
674
|
readonly subsets: readonly {
|
|
@@ -831,8 +678,8 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
831
678
|
readonly actionIds: readonly string[];
|
|
832
679
|
readonly inspectActions?: boolean | undefined;
|
|
833
680
|
};
|
|
834
|
-
}
|
|
835
|
-
}>, Schema.Codec<{
|
|
681
|
+
} | undefined;
|
|
682
|
+
}, string, never, never>, Schema.Codec<{
|
|
836
683
|
readonly state: {
|
|
837
684
|
readonly sourceId: string;
|
|
838
685
|
readonly revision: number;
|
|
@@ -871,6 +718,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
871
718
|
readonly now: string;
|
|
872
719
|
readonly seed: string;
|
|
873
720
|
} | undefined;
|
|
721
|
+
readonly timeoutMs?: number | undefined;
|
|
874
722
|
};
|
|
875
723
|
readonly requestIdentity: string;
|
|
876
724
|
readonly createdAt: number;
|
|
@@ -878,6 +726,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
878
726
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
879
727
|
readonly optimistic: boolean;
|
|
880
728
|
readonly attempts: number;
|
|
729
|
+
readonly blockedBy?: string | true | undefined;
|
|
881
730
|
readonly retryFromAttempt?: number | undefined;
|
|
882
731
|
readonly nextAttemptAt?: number | undefined;
|
|
883
732
|
readonly failureMessage?: string | undefined;
|
|
@@ -929,6 +778,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
929
778
|
readonly now: string;
|
|
930
779
|
readonly seed: string;
|
|
931
780
|
} | undefined;
|
|
781
|
+
readonly timeoutMs?: number | undefined;
|
|
932
782
|
};
|
|
933
783
|
readonly requestIdentity: string;
|
|
934
784
|
readonly createdAt: number;
|
|
@@ -936,6 +786,7 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
936
786
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
937
787
|
readonly optimistic: boolean;
|
|
938
788
|
readonly attempts: number;
|
|
789
|
+
readonly blockedBy?: string | true | undefined;
|
|
939
790
|
readonly retryFromAttempt?: number | undefined;
|
|
940
791
|
readonly nextAttemptAt?: number | undefined;
|
|
941
792
|
readonly failureMessage?: string | undefined;
|
|
@@ -1002,7 +853,150 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
1002
853
|
readonly complete: boolean;
|
|
1003
854
|
readonly cached?: boolean | undefined;
|
|
1004
855
|
}[] | undefined;
|
|
1005
|
-
}, 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<{
|
|
1006
1000
|
session: Schema.Struct<{
|
|
1007
1001
|
readonly client: Schema.Struct<{
|
|
1008
1002
|
readonly sourceId: Schema.NonEmptyString;
|
|
@@ -1011,10 +1005,157 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
1011
1005
|
}>;
|
|
1012
1006
|
readonly connectionId: Schema.NonEmptyString;
|
|
1013
1007
|
}>;
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
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<{
|
|
1018
1159
|
readonly id: Schema.String;
|
|
1019
1160
|
readonly traceId: Schema.String;
|
|
1020
1161
|
readonly parentId: Schema.optional<Schema.String>;
|
|
@@ -1033,182 +1174,56 @@ export declare const OntologyRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"LoadSubset", Schem
|
|
|
1033
1174
|
}>>>;
|
|
1034
1175
|
readonly eventCount: Schema.optional<Schema.Number>;
|
|
1035
1176
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1036
|
-
}>>, typeof BackendError>, Schema.Never, typeof OntologyErrorProjection, never> | Rpc.Rpc<"
|
|
1037
|
-
|
|
1038
|
-
readonly
|
|
1039
|
-
readonly
|
|
1040
|
-
readonly
|
|
1041
|
-
readonly
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
readonly
|
|
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 {
|
|
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 {
|
|
1061
1190
|
readonly objectType: string;
|
|
1062
|
-
readonly
|
|
1063
|
-
}[]
|
|
1064
|
-
readonly
|
|
1065
|
-
readonly
|
|
1066
|
-
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;
|
|
1067
1195
|
};
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
readonly
|
|
1071
|
-
readonly
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
readonly status: "inactive";
|
|
1083
|
-
} | {
|
|
1084
|
-
readonly status: "needs-auth";
|
|
1085
|
-
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;
|
|
1086
1210
|
} | {
|
|
1087
|
-
readonly
|
|
1088
|
-
readonly
|
|
1089
|
-
} | undefined;
|
|
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;
|
|
1101
|
-
} | undefined;
|
|
1102
|
-
} | undefined;
|
|
1103
|
-
readonly replicationError?: {
|
|
1104
|
-
readonly kind: "Conflict" | "Forbidden" | "HistoryExpired" | "Internal" | "InvalidConfiguration" | "InvalidRequest" | "InvalidResponse" | "NotFound" | "NotImplemented" | "RateLimited" | "ResultExpired" | "SchemaMismatch" | "SessionExpired" | "SessionReplaced" | "SourceMismatch" | "Unauthenticated" | "Unavailable" | "ValidationFailed" | "ViewReplaced";
|
|
1105
|
-
readonly message: string;
|
|
1106
|
-
readonly recovery: "reconnect" | "session" | "snapshot" | "stop";
|
|
1107
|
-
} | undefined;
|
|
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";
|
|
1211
|
+
readonly kind: "err";
|
|
1212
|
+
readonly value: readonly {
|
|
1131
1213
|
readonly message: string;
|
|
1132
|
-
readonly
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
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;
|
|
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
|
+
}[];
|
|
1150
1220
|
};
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
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>>;
|
|
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>>;
|
|
1212
1227
|
declare const SubscriptionTracing_base: RpcMiddleware.ServiceClass<SubscriptionTracing, "@party-stack/ontology-server/SubscriptionTracing", never, Schema.Never, never, never, true>;
|
|
1213
1228
|
declare class SubscriptionTracing extends SubscriptionTracing_base {}
|
|
1214
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>>>;
|
|
@@ -1561,6 +1576,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
1561
1576
|
readonly now: string;
|
|
1562
1577
|
readonly seed: string;
|
|
1563
1578
|
} | undefined;
|
|
1579
|
+
readonly timeoutMs?: number | undefined;
|
|
1564
1580
|
};
|
|
1565
1581
|
readonly requestIdentity: string;
|
|
1566
1582
|
readonly createdAt: number;
|
|
@@ -1568,6 +1584,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
1568
1584
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
1569
1585
|
readonly optimistic: boolean;
|
|
1570
1586
|
readonly attempts: number;
|
|
1587
|
+
readonly blockedBy?: string | true | undefined;
|
|
1571
1588
|
readonly retryFromAttempt?: number | undefined;
|
|
1572
1589
|
readonly nextAttemptAt?: number | undefined;
|
|
1573
1590
|
readonly failureMessage?: string | undefined;
|
|
@@ -1619,6 +1636,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
1619
1636
|
readonly now: string;
|
|
1620
1637
|
readonly seed: string;
|
|
1621
1638
|
} | undefined;
|
|
1639
|
+
readonly timeoutMs?: number | undefined;
|
|
1622
1640
|
};
|
|
1623
1641
|
readonly requestIdentity: string;
|
|
1624
1642
|
readonly createdAt: number;
|
|
@@ -1626,6 +1644,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
1626
1644
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
1627
1645
|
readonly optimistic: boolean;
|
|
1628
1646
|
readonly attempts: number;
|
|
1647
|
+
readonly blockedBy?: string | true | undefined;
|
|
1629
1648
|
readonly retryFromAttempt?: number | undefined;
|
|
1630
1649
|
readonly nextAttemptAt?: number | undefined;
|
|
1631
1650
|
readonly failureMessage?: string | undefined;
|
|
@@ -2088,6 +2107,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2088
2107
|
readonly now: string;
|
|
2089
2108
|
readonly seed: string;
|
|
2090
2109
|
} | undefined;
|
|
2110
|
+
readonly timeoutMs?: number | undefined;
|
|
2091
2111
|
};
|
|
2092
2112
|
readonly requestIdentity: string;
|
|
2093
2113
|
readonly createdAt: number;
|
|
@@ -2095,6 +2115,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2095
2115
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
2096
2116
|
readonly optimistic: boolean;
|
|
2097
2117
|
readonly attempts: number;
|
|
2118
|
+
readonly blockedBy?: string | true | undefined;
|
|
2098
2119
|
readonly retryFromAttempt?: number | undefined;
|
|
2099
2120
|
readonly nextAttemptAt?: number | undefined;
|
|
2100
2121
|
readonly failureMessage?: string | undefined;
|
|
@@ -2146,6 +2167,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2146
2167
|
readonly now: string;
|
|
2147
2168
|
readonly seed: string;
|
|
2148
2169
|
} | undefined;
|
|
2170
|
+
readonly timeoutMs?: number | undefined;
|
|
2149
2171
|
};
|
|
2150
2172
|
readonly requestIdentity: string;
|
|
2151
2173
|
readonly createdAt: number;
|
|
@@ -2153,6 +2175,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2153
2175
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
2154
2176
|
readonly optimistic: boolean;
|
|
2155
2177
|
readonly attempts: number;
|
|
2178
|
+
readonly blockedBy?: string | true | undefined;
|
|
2156
2179
|
readonly retryFromAttempt?: number | undefined;
|
|
2157
2180
|
readonly nextAttemptAt?: number | undefined;
|
|
2158
2181
|
readonly failureMessage?: string | undefined;
|
|
@@ -2272,6 +2295,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2272
2295
|
readonly now: string;
|
|
2273
2296
|
readonly seed: string;
|
|
2274
2297
|
} | undefined;
|
|
2298
|
+
readonly timeoutMs?: number | undefined;
|
|
2275
2299
|
};
|
|
2276
2300
|
readonly requestIdentity: string;
|
|
2277
2301
|
readonly createdAt: number;
|
|
@@ -2279,6 +2303,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2279
2303
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
2280
2304
|
readonly optimistic: boolean;
|
|
2281
2305
|
readonly attempts: number;
|
|
2306
|
+
readonly blockedBy?: string | true | undefined;
|
|
2282
2307
|
readonly retryFromAttempt?: number | undefined;
|
|
2283
2308
|
readonly nextAttemptAt?: number | undefined;
|
|
2284
2309
|
readonly failureMessage?: string | undefined;
|
|
@@ -2405,6 +2430,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2405
2430
|
readonly now: string;
|
|
2406
2431
|
readonly seed: string;
|
|
2407
2432
|
} | undefined;
|
|
2433
|
+
readonly timeoutMs?: number | undefined;
|
|
2408
2434
|
};
|
|
2409
2435
|
readonly requestIdentity: string;
|
|
2410
2436
|
readonly createdAt: number;
|
|
@@ -2412,6 +2438,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2412
2438
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
2413
2439
|
readonly optimistic: boolean;
|
|
2414
2440
|
readonly attempts: number;
|
|
2441
|
+
readonly blockedBy?: string | true | undefined;
|
|
2415
2442
|
readonly retryFromAttempt?: number | undefined;
|
|
2416
2443
|
readonly nextAttemptAt?: number | undefined;
|
|
2417
2444
|
readonly failureMessage?: string | undefined;
|
|
@@ -2558,6 +2585,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2558
2585
|
readonly now: string;
|
|
2559
2586
|
readonly seed: string;
|
|
2560
2587
|
} | undefined;
|
|
2588
|
+
readonly timeoutMs?: number | undefined;
|
|
2561
2589
|
};
|
|
2562
2590
|
readonly requestIdentity: string;
|
|
2563
2591
|
readonly createdAt: number;
|
|
@@ -2565,6 +2593,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2565
2593
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
2566
2594
|
readonly optimistic: boolean;
|
|
2567
2595
|
readonly attempts: number;
|
|
2596
|
+
readonly blockedBy?: string | true | undefined;
|
|
2568
2597
|
readonly retryFromAttempt?: number | undefined;
|
|
2569
2598
|
readonly nextAttemptAt?: number | undefined;
|
|
2570
2599
|
readonly failureMessage?: string | undefined;
|
|
@@ -2691,6 +2720,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2691
2720
|
readonly now: string;
|
|
2692
2721
|
readonly seed: string;
|
|
2693
2722
|
} | undefined;
|
|
2723
|
+
readonly timeoutMs?: number | undefined;
|
|
2694
2724
|
};
|
|
2695
2725
|
readonly requestIdentity: string;
|
|
2696
2726
|
readonly createdAt: number;
|
|
@@ -2698,6 +2728,7 @@ export declare const makeOntologyRpcClient: Effect.Effect<{
|
|
|
2698
2728
|
readonly state: "acknowledged" | "blocked" | "queued" | "sending";
|
|
2699
2729
|
readonly optimistic: boolean;
|
|
2700
2730
|
readonly attempts: number;
|
|
2731
|
+
readonly blockedBy?: string | true | undefined;
|
|
2701
2732
|
readonly retryFromAttempt?: number | undefined;
|
|
2702
2733
|
readonly nextAttemptAt?: number | undefined;
|
|
2703
2734
|
readonly failureMessage?: string | undefined;
|