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