@query-farm/vgi 0.29.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -1
- package/dist/arguments/argument-spec.d.ts +4 -2
- package/dist/catalog/composite.d.ts +13 -13
- package/dist/catalog/descriptors.d.ts +7 -3
- package/dist/catalog/interface.d.ts +67 -40
- package/dist/catalog/read-only.d.ts +32 -15
- package/dist/client/client.d.ts +36 -29
- package/dist/client/types.d.ts +2 -0
- package/dist/client-entry.d.ts +1 -1
- package/dist/client-entry.js +442 -283
- package/dist/client-entry.js.map +12 -11
- package/dist/filter-pushdown/capabilities.d.ts +3 -0
- package/dist/filter-pushdown/deserialize.d.ts +14 -15
- package/dist/filter-pushdown/evaluate.d.ts +14 -44
- package/dist/filter-pushdown/index.d.ts +2 -2
- package/dist/filter-pushdown/types.d.ts +120 -68
- package/dist/functions/aggregate.d.ts +4 -0
- package/dist/functions/registry.d.ts +5 -5
- package/dist/functions/scalar.d.ts +6 -1
- package/dist/functions/table-buffering.d.ts +9 -0
- package/dist/functions/table-in-out.d.ts +13 -0
- package/dist/functions/table.d.ts +9 -2
- package/dist/functions/types.d.ts +22 -2
- package/dist/generated/vgi-client.d.ts +57 -31
- package/dist/generated/vgi-protocol-schemas.d.ts +15 -0
- package/dist/http/fetch.d.ts +7 -1
- package/dist/index.core.d.ts +2 -1
- package/dist/index.js +2320 -1363
- package/dist/index.js.map +44 -41
- package/dist/metadata/types.d.ts +15 -2
- package/dist/protocol/handlers/shared.d.ts +3 -1
- package/dist/protocol/serializers/splits.d.ts +1 -1
- package/dist/protocol/types.d.ts +9 -3
- package/dist/schema-path.d.ts +7 -0
- package/dist/serve-entry.d.ts +22 -1
- package/dist/serve-entry.js +414 -243
- package/dist/serve-entry.js.map +28 -27
- package/dist/split-token.d.ts +1 -1
- package/dist/types.d.ts +8 -0
- package/dist/worker-cf-entry.js +2033 -1210
- package/dist/worker-cf-entry.js.map +41 -37
- package/dist/worker.d.ts +1 -1
- package/package.json +3 -3
- package/src/arguments/argument-spec.ts +12 -4
- package/src/catalog/composite.ts +26 -26
- package/src/catalog/descriptors.ts +12 -3
- package/src/catalog/interface.ts +98 -48
- package/src/catalog/read-only.ts +125 -71
- package/src/client/client.ts +92 -72
- package/src/client/types.ts +2 -0
- package/src/client-entry.ts +2 -1
- package/src/filter-pushdown/capabilities.ts +13 -0
- package/src/filter-pushdown/collector.ts +22 -35
- package/src/filter-pushdown/deserialize.ts +657 -221
- package/src/filter-pushdown/evaluate.ts +410 -499
- package/src/filter-pushdown/index.ts +16 -2
- package/src/filter-pushdown/types.ts +88 -71
- package/src/functions/aggregate.ts +9 -1
- package/src/functions/registry.ts +24 -22
- package/src/functions/scalar.ts +26 -0
- package/src/functions/table-buffering.ts +46 -7
- package/src/functions/table-in-out.ts +187 -30
- package/src/functions/table.ts +58 -20
- package/src/functions/types.ts +24 -1
- package/src/generated/vgi-client.ts +62 -33
- package/src/generated/vgi-protocol-schemas.ts +226 -58
- package/src/http/client-bundle.ts +1 -1
- package/src/http/fetch.ts +12 -0
- package/src/index.core.ts +2 -0
- package/src/metadata/resolve.ts +43 -1
- package/src/metadata/serialize.ts +43 -5
- package/src/metadata/types.ts +17 -1
- package/src/protocol/dispatch.ts +1 -1
- package/src/protocol/handlers/aggregate.ts +13 -7
- package/src/protocol/handlers/catalog/admin.ts +6 -6
- package/src/protocol/handlers/catalog/index_methods.ts +2 -2
- package/src/protocol/handlers/catalog/macro.ts +4 -4
- package/src/protocol/handlers/catalog/shared.ts +2 -0
- package/src/protocol/handlers/catalog/table.ts +16 -16
- package/src/protocol/handlers/catalog/view.ts +5 -5
- package/src/protocol/handlers/function.ts +2 -2
- package/src/protocol/handlers/shared.ts +12 -3
- package/src/protocol/handlers/table-buffering.ts +4 -4
- package/src/protocol/serializers/bind.ts +15 -6
- package/src/protocol/serializers/splits.ts +4 -2
- package/src/protocol/types.ts +9 -3
- package/src/schema-path.ts +25 -0
- package/src/serve-entry.ts +65 -3
- package/src/split-token.ts +2 -2
- package/src/types.ts +9 -0
- package/src/worker.ts +49 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type ArgumentMonotonicity = "UNKNOWN" | "CONSTANT" | "NON_DECREASING" | "STRICTLY_INCREASING" | "NON_INCREASING" | "STRICTLY_DECREASING";
|
|
1
2
|
export type DistinctDependence = "DISTINCT_DEPENDENT" | "NOT_DISTINCT_DEPENDENT";
|
|
2
3
|
export type FunctionStability = "CONSISTENT" | "VOLATILE" | "CONSISTENT_WITHIN_QUERY";
|
|
3
4
|
export type FunctionType = "SCALAR" | "TABLE" | "TABLE_BUFFERING" | "AGGREGATE";
|
|
@@ -31,24 +32,21 @@ export interface SchemaInfo {
|
|
|
31
32
|
comment?: string | null;
|
|
32
33
|
tags: Record<string, string>;
|
|
33
34
|
attach_opaque_data: Uint8Array;
|
|
34
|
-
|
|
35
|
+
path: string[];
|
|
35
36
|
estimated_object_count?: Record<string, number> | null;
|
|
36
37
|
}
|
|
37
38
|
export interface TableInfo {
|
|
38
39
|
comment?: string | null;
|
|
39
40
|
tags: Record<string, string>;
|
|
40
41
|
name: string;
|
|
41
|
-
|
|
42
|
+
schema_path: string[];
|
|
42
43
|
columns: Uint8Array;
|
|
43
44
|
not_null_constraints: number[];
|
|
44
45
|
unique_constraints: number[][];
|
|
45
46
|
check_constraints: string[];
|
|
46
47
|
primary_key_constraints: number[][];
|
|
47
48
|
foreign_key_constraints: Uint8Array[];
|
|
48
|
-
|
|
49
|
-
supports_update: boolean;
|
|
50
|
-
supports_delete: boolean;
|
|
51
|
-
supports_returning: boolean;
|
|
49
|
+
write_result_modes: Record<string, string>;
|
|
52
50
|
supports_column_statistics: boolean;
|
|
53
51
|
scan_function?: Uint8Array | null;
|
|
54
52
|
insert_function?: Uint8Array | null;
|
|
@@ -64,7 +62,7 @@ export interface ViewInfo {
|
|
|
64
62
|
comment?: string | null;
|
|
65
63
|
tags: Record<string, string>;
|
|
66
64
|
name: string;
|
|
67
|
-
|
|
65
|
+
schema_path: string[];
|
|
68
66
|
definition: string;
|
|
69
67
|
column_comments: Record<string, string>;
|
|
70
68
|
}
|
|
@@ -73,6 +71,20 @@ export interface CatalogExample {
|
|
|
73
71
|
description: string;
|
|
74
72
|
expected_output?: string | null;
|
|
75
73
|
}
|
|
74
|
+
export interface FilterFunctionCapability {
|
|
75
|
+
namespace: string;
|
|
76
|
+
name: string;
|
|
77
|
+
version: number;
|
|
78
|
+
}
|
|
79
|
+
export interface RuntimeFilterAlgorithmCapability {
|
|
80
|
+
namespace: string;
|
|
81
|
+
name: string;
|
|
82
|
+
version: number;
|
|
83
|
+
}
|
|
84
|
+
export interface EvaluationContextCapability {
|
|
85
|
+
profile: string;
|
|
86
|
+
provider_fingerprint?: string | null;
|
|
87
|
+
}
|
|
76
88
|
export interface SecretLookupEntry {
|
|
77
89
|
secret_type: string;
|
|
78
90
|
scope?: string | null;
|
|
@@ -82,12 +94,14 @@ export interface FunctionInfo {
|
|
|
82
94
|
comment?: string | null;
|
|
83
95
|
tags: Record<string, string>;
|
|
84
96
|
name: string;
|
|
85
|
-
|
|
97
|
+
schema_path: string[];
|
|
86
98
|
function_type: FunctionType;
|
|
87
99
|
arguments: Uint8Array;
|
|
88
100
|
output_schema: Uint8Array;
|
|
101
|
+
parameter_default_values?: /** @record-batch */ Uint8Array | null;
|
|
89
102
|
stability?: FunctionStability | null;
|
|
90
103
|
null_handling?: NullHandling | null;
|
|
104
|
+
argument_monotonicity?: ArgumentMonotonicity[] | null;
|
|
91
105
|
description: string;
|
|
92
106
|
examples: CatalogExample[];
|
|
93
107
|
categories: string[];
|
|
@@ -95,7 +109,10 @@ export interface FunctionInfo {
|
|
|
95
109
|
filter_pushdown?: boolean | null;
|
|
96
110
|
sampling_pushdown?: boolean | null;
|
|
97
111
|
late_materialization?: boolean | null;
|
|
98
|
-
|
|
112
|
+
filter_semantic_profiles: string[];
|
|
113
|
+
additional_filter_functions: FilterFunctionCapability[];
|
|
114
|
+
runtime_filter_algorithms: RuntimeFilterAlgorithmCapability[];
|
|
115
|
+
filter_evaluation_contexts: EvaluationContextCapability[];
|
|
99
116
|
order_preservation?: OrderPreservation | null;
|
|
100
117
|
max_workers?: number | null;
|
|
101
118
|
supports_batch_index: boolean;
|
|
@@ -120,7 +137,7 @@ export interface MacroInfo {
|
|
|
120
137
|
comment?: string | null;
|
|
121
138
|
tags: Record<string, string>;
|
|
122
139
|
name: string;
|
|
123
|
-
|
|
140
|
+
schema_path: string[];
|
|
124
141
|
macro_type: MacroType;
|
|
125
142
|
parameters: string[];
|
|
126
143
|
parameter_default_values?: /** @record-batch */ Uint8Array | null;
|
|
@@ -131,7 +148,7 @@ export interface IndexInfo {
|
|
|
131
148
|
comment?: string | null;
|
|
132
149
|
tags: Record<string, string>;
|
|
133
150
|
name: string;
|
|
134
|
-
|
|
151
|
+
schema_path: string[];
|
|
135
152
|
table_name: string;
|
|
136
153
|
index_type: string;
|
|
137
154
|
constraint_type: IndexConstraintType;
|
|
@@ -145,7 +162,8 @@ export interface AggregateBindRequest {
|
|
|
145
162
|
settings?: /** @record-batch */ Uint8Array | null;
|
|
146
163
|
secrets?: /** @record-batch */ Uint8Array | null;
|
|
147
164
|
attach_opaque_data?: Uint8Array | null;
|
|
148
|
-
|
|
165
|
+
schema_path?: string[] | null;
|
|
166
|
+
argument_names?: (string | null)[] | null;
|
|
149
167
|
}
|
|
150
168
|
export interface AggregateBindResponse {
|
|
151
169
|
output_schema: Uint8Array;
|
|
@@ -156,7 +174,7 @@ export interface AggregateCombineRequest {
|
|
|
156
174
|
execution_id: Uint8Array;
|
|
157
175
|
merge_batch: Uint8Array;
|
|
158
176
|
attach_opaque_data?: Uint8Array | null;
|
|
159
|
-
|
|
177
|
+
schema_path?: string[] | null;
|
|
160
178
|
}
|
|
161
179
|
export interface AggregateCombineResponse {
|
|
162
180
|
}
|
|
@@ -165,7 +183,7 @@ export interface AggregateDestructorRequest {
|
|
|
165
183
|
execution_id: Uint8Array;
|
|
166
184
|
group_ids_batch: Uint8Array;
|
|
167
185
|
attach_opaque_data?: Uint8Array | null;
|
|
168
|
-
|
|
186
|
+
schema_path?: string[] | null;
|
|
169
187
|
}
|
|
170
188
|
export interface AggregateDestructorResponse {
|
|
171
189
|
}
|
|
@@ -175,7 +193,7 @@ export interface AggregateFinalizeRequest {
|
|
|
175
193
|
group_ids_batch: Uint8Array;
|
|
176
194
|
output_schema: Uint8Array;
|
|
177
195
|
attach_opaque_data?: Uint8Array | null;
|
|
178
|
-
|
|
196
|
+
schema_path?: string[] | null;
|
|
179
197
|
}
|
|
180
198
|
export interface AggregateFinalizeResponse {
|
|
181
199
|
result_batch: Uint8Array;
|
|
@@ -185,7 +203,7 @@ export interface AggregateStreamingChunkRequest {
|
|
|
185
203
|
execution_id: Uint8Array;
|
|
186
204
|
input_batch: Uint8Array;
|
|
187
205
|
attach_opaque_data?: Uint8Array | null;
|
|
188
|
-
|
|
206
|
+
schema_path?: string[] | null;
|
|
189
207
|
}
|
|
190
208
|
export interface AggregateStreamingChunkResponse {
|
|
191
209
|
result_batch: Uint8Array;
|
|
@@ -194,7 +212,7 @@ export interface AggregateStreamingCloseRequest {
|
|
|
194
212
|
function_name: string;
|
|
195
213
|
execution_id: Uint8Array;
|
|
196
214
|
attach_opaque_data?: Uint8Array | null;
|
|
197
|
-
|
|
215
|
+
schema_path?: string[] | null;
|
|
198
216
|
}
|
|
199
217
|
export interface AggregateStreamingCloseResponse {
|
|
200
218
|
}
|
|
@@ -208,7 +226,7 @@ export interface AggregateStreamingOpenRequest {
|
|
|
208
226
|
settings?: /** @record-batch */ Uint8Array | null;
|
|
209
227
|
secrets?: /** @record-batch */ Uint8Array | null;
|
|
210
228
|
attach_opaque_data?: Uint8Array | null;
|
|
211
|
-
|
|
229
|
+
schema_path?: string[] | null;
|
|
212
230
|
}
|
|
213
231
|
export interface AggregateStreamingOpenResponse {
|
|
214
232
|
execution_id: Uint8Array;
|
|
@@ -218,7 +236,7 @@ export interface AggregateUpdateRequest {
|
|
|
218
236
|
execution_id: Uint8Array;
|
|
219
237
|
input_batch: Uint8Array;
|
|
220
238
|
attach_opaque_data?: Uint8Array | null;
|
|
221
|
-
|
|
239
|
+
schema_path?: string[] | null;
|
|
222
240
|
}
|
|
223
241
|
export interface AggregateUpdateResponse {
|
|
224
242
|
}
|
|
@@ -230,7 +248,7 @@ export interface AggregateWindowRequest {
|
|
|
230
248
|
frame_starts: number[];
|
|
231
249
|
frame_ends: number[];
|
|
232
250
|
attach_opaque_data?: Uint8Array | null;
|
|
233
|
-
|
|
251
|
+
schema_path?: string[] | null;
|
|
234
252
|
}
|
|
235
253
|
export interface AggregateWindowResponse {
|
|
236
254
|
result_batch: Uint8Array;
|
|
@@ -245,7 +263,7 @@ export interface AggregateWindowBatchRequest {
|
|
|
245
263
|
frame_starts: number[];
|
|
246
264
|
frame_ends: number[];
|
|
247
265
|
attach_opaque_data?: Uint8Array | null;
|
|
248
|
-
|
|
266
|
+
schema_path?: string[] | null;
|
|
249
267
|
}
|
|
250
268
|
export interface AggregateWindowBatchResponse {
|
|
251
269
|
result_batch: Uint8Array;
|
|
@@ -255,7 +273,7 @@ export interface AggregateWindowDestructorRequest {
|
|
|
255
273
|
execution_id: Uint8Array;
|
|
256
274
|
partition_id: number;
|
|
257
275
|
attach_opaque_data?: Uint8Array | null;
|
|
258
|
-
|
|
276
|
+
schema_path?: string[] | null;
|
|
259
277
|
}
|
|
260
278
|
export interface AggregateWindowDestructorResponse {
|
|
261
279
|
}
|
|
@@ -270,7 +288,7 @@ export interface AggregateWindowInitRequest {
|
|
|
270
288
|
frame_stats: Uint8Array;
|
|
271
289
|
all_valid: Uint8Array;
|
|
272
290
|
attach_opaque_data?: Uint8Array | null;
|
|
273
|
-
|
|
291
|
+
schema_path?: string[] | null;
|
|
274
292
|
}
|
|
275
293
|
export interface AggregateWindowInitResponse {
|
|
276
294
|
}
|
|
@@ -297,7 +315,8 @@ export interface BindRequest {
|
|
|
297
315
|
at_value?: string | null;
|
|
298
316
|
copy_from?: CopyFromContext | null;
|
|
299
317
|
copy_to?: CopyToContext | null;
|
|
300
|
-
|
|
318
|
+
schema_path?: string[] | null;
|
|
319
|
+
argument_names?: (string | null)[] | null;
|
|
301
320
|
}
|
|
302
321
|
export interface BindResponse {
|
|
303
322
|
output_schema: Uint8Array;
|
|
@@ -306,12 +325,19 @@ export interface BindResponse {
|
|
|
306
325
|
lookup_scopes: string[];
|
|
307
326
|
lookup_names: string[];
|
|
308
327
|
}
|
|
328
|
+
export interface ClientCapabilities {
|
|
329
|
+
engine: string;
|
|
330
|
+
native_formats: string[];
|
|
331
|
+
catalogs: string[];
|
|
332
|
+
can_stream: boolean;
|
|
333
|
+
filter_encodings: string[];
|
|
334
|
+
}
|
|
309
335
|
export interface CatalogAttachRequest {
|
|
310
336
|
name: string;
|
|
311
337
|
options?: /** @record-batch */ Uint8Array | null;
|
|
312
338
|
data_version_spec?: string | null;
|
|
313
339
|
implementation_version?: string | null;
|
|
314
|
-
client_capabilities?:
|
|
340
|
+
client_capabilities?: ClientCapabilities | null;
|
|
315
341
|
}
|
|
316
342
|
export interface CatalogAttachResult {
|
|
317
343
|
attach_opaque_data: Uint8Array;
|
|
@@ -345,7 +371,7 @@ export interface CatalogCreateRequest {
|
|
|
345
371
|
}
|
|
346
372
|
export interface IndexCreateRequest {
|
|
347
373
|
attach_opaque_data: Uint8Array;
|
|
348
|
-
|
|
374
|
+
schema_path: string[];
|
|
349
375
|
name: string;
|
|
350
376
|
table_name: string;
|
|
351
377
|
index_type: string;
|
|
@@ -360,7 +386,7 @@ export interface IndexesResponse {
|
|
|
360
386
|
}
|
|
361
387
|
export interface MacroCreateRequest {
|
|
362
388
|
attach_opaque_data: Uint8Array;
|
|
363
|
-
|
|
389
|
+
schema_path: string[];
|
|
364
390
|
name: string;
|
|
365
391
|
macro_type: MacroType;
|
|
366
392
|
parameters: string[];
|
|
@@ -387,7 +413,7 @@ export interface SchemasResponse {
|
|
|
387
413
|
}
|
|
388
414
|
export interface TableCreateRequest {
|
|
389
415
|
attach_opaque_data: Uint8Array;
|
|
390
|
-
|
|
416
|
+
schema_path: string[];
|
|
391
417
|
name: string;
|
|
392
418
|
columns: Uint8Array;
|
|
393
419
|
on_conflict: OnConflict;
|
|
@@ -431,7 +457,7 @@ export interface TableBufferingCombineRequest {
|
|
|
431
457
|
state_ids: Uint8Array[];
|
|
432
458
|
attach_opaque_data?: Uint8Array | null;
|
|
433
459
|
transaction_id?: Uint8Array | null;
|
|
434
|
-
|
|
460
|
+
schema_path?: string[] | null;
|
|
435
461
|
}
|
|
436
462
|
export interface TableBufferingCombineResponse {
|
|
437
463
|
finalize_state_ids: Uint8Array[];
|
|
@@ -441,7 +467,7 @@ export interface TableBufferingDestructorRequest {
|
|
|
441
467
|
execution_id: Uint8Array;
|
|
442
468
|
attach_opaque_data?: Uint8Array | null;
|
|
443
469
|
transaction_id?: Uint8Array | null;
|
|
444
|
-
|
|
470
|
+
schema_path?: string[] | null;
|
|
445
471
|
}
|
|
446
472
|
export interface TableBufferingDestructorResponse {
|
|
447
473
|
}
|
|
@@ -452,7 +478,7 @@ export interface TableBufferingProcessRequest {
|
|
|
452
478
|
attach_opaque_data?: Uint8Array | null;
|
|
453
479
|
transaction_id?: Uint8Array | null;
|
|
454
480
|
batch_index?: number | null;
|
|
455
|
-
|
|
481
|
+
schema_path?: string[] | null;
|
|
456
482
|
}
|
|
457
483
|
export interface TableBufferingProcessResponse {
|
|
458
484
|
state_id: Uint8Array;
|
|
@@ -11,22 +11,37 @@ export declare const ScanBranchesResultSchema: import("../index.core.js").VgiSch
|
|
|
11
11
|
export declare const ScanBranchSchema: import("../index.core.js").VgiSchema;
|
|
12
12
|
export declare const ScanSplitSchema: import("../index.core.js").VgiSchema;
|
|
13
13
|
export declare const AttachCatalogInfoSchema: import("../index.core.js").VgiSchema;
|
|
14
|
+
export declare const ForeignKeyInfoSchema: import("../index.core.js").VgiSchema;
|
|
14
15
|
export declare const AggregateBindRequestSchema: import("../index.core.js").VgiSchema;
|
|
15
16
|
export declare const AggregateCombineRequestSchema: import("../index.core.js").VgiSchema;
|
|
16
17
|
export declare const AggregateDestructorRequestSchema: import("../index.core.js").VgiSchema;
|
|
17
18
|
export declare const AggregateFinalizeRequestSchema: import("../index.core.js").VgiSchema;
|
|
19
|
+
export declare const AggregateStreamingChunkRequestSchema: import("../index.core.js").VgiSchema;
|
|
20
|
+
export declare const AggregateStreamingCloseRequestSchema: import("../index.core.js").VgiSchema;
|
|
21
|
+
export declare const AggregateStreamingOpenRequestSchema: import("../index.core.js").VgiSchema;
|
|
18
22
|
export declare const AggregateUpdateRequestSchema: import("../index.core.js").VgiSchema;
|
|
23
|
+
export declare const AggregateWindowBatchRequestSchema: import("../index.core.js").VgiSchema;
|
|
24
|
+
export declare const AggregateWindowDestructorRequestSchema: import("../index.core.js").VgiSchema;
|
|
25
|
+
export declare const AggregateWindowInitRequestSchema: import("../index.core.js").VgiSchema;
|
|
26
|
+
export declare const AggregateWindowRequestSchema: import("../index.core.js").VgiSchema;
|
|
19
27
|
export declare const BindRequestSchema: import("../index.core.js").VgiSchema;
|
|
20
28
|
export declare const CatalogAttachRequestSchema: import("../index.core.js").VgiSchema;
|
|
29
|
+
export declare const CatalogCreateRequestSchema: import("../index.core.js").VgiSchema;
|
|
30
|
+
export declare const ClientCapabilitiesSchema: import("../index.core.js").VgiSchema;
|
|
21
31
|
export declare const CopyFromContextSchema: import("../index.core.js").VgiSchema;
|
|
22
32
|
export declare const CopyToContextSchema: import("../index.core.js").VgiSchema;
|
|
23
33
|
export declare const GlobalInitResponseSchema: import("../index.core.js").VgiSchema;
|
|
34
|
+
export declare const IndexCreateRequestSchema: import("../index.core.js").VgiSchema;
|
|
24
35
|
export declare const InitRequestSchema: import("../index.core.js").VgiSchema;
|
|
36
|
+
export declare const MacroCreateRequestSchema: import("../index.core.js").VgiSchema;
|
|
37
|
+
export declare const TableCreateRequestSchema: import("../index.core.js").VgiSchema;
|
|
25
38
|
export declare const TableBufferingCombineRequestSchema: import("../index.core.js").VgiSchema;
|
|
26
39
|
export declare const TableBufferingDestructorRequestSchema: import("../index.core.js").VgiSchema;
|
|
27
40
|
export declare const TableBufferingProcessRequestSchema: import("../index.core.js").VgiSchema;
|
|
28
41
|
export declare const TableFunctionCardinalityRequestSchema: import("../index.core.js").VgiSchema;
|
|
42
|
+
export declare const TableFunctionDynamicToStringRequestSchema: import("../index.core.js").VgiSchema;
|
|
29
43
|
export declare const TableFunctionPlanRequestSchema: import("../index.core.js").VgiSchema;
|
|
44
|
+
export declare const TableFunctionStatisticsRequestSchema: import("../index.core.js").VgiSchema;
|
|
30
45
|
export declare const AggregateBindResultSchema: import("../index.core.js").VgiSchema;
|
|
31
46
|
export declare const AggregateCombineResultSchema: import("../index.core.js").VgiSchema;
|
|
32
47
|
export declare const AggregateDestructorResultSchema: import("../index.core.js").VgiSchema;
|
package/dist/http/fetch.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AuthenticateFn } from "@query-farm/vgi-rpc";
|
|
1
|
+
import { type AuthenticateFn, type PeerAuthenticationPolicy, type PeerIdentityProvider, type PeerResolutionOptions } from "@query-farm/vgi-rpc";
|
|
2
2
|
import { type ProtocolConfig } from "../protocol/dispatch.js";
|
|
3
3
|
import { type LandingInfo } from "./landing.js";
|
|
4
4
|
export interface VgiFetchOptions {
|
|
@@ -52,6 +52,12 @@ export interface VgiFetchOptions {
|
|
|
52
52
|
* and the identity it returns is the one the worker seals `attach_opaque_data`
|
|
53
53
|
* and split tokens under. */
|
|
54
54
|
authenticate?: AuthenticateFn;
|
|
55
|
+
/** Off-wire transport identities, including a trusted Iroh HTTP bridge. */
|
|
56
|
+
peerIdentityProviders?: readonly PeerIdentityProvider[];
|
|
57
|
+
/** Policy composing peer evidence with application authentication. */
|
|
58
|
+
peerAuthenticationPolicy?: PeerAuthenticationPolicy;
|
|
59
|
+
/** Host adapter supplying the physical peer and multiplicity-preserving headers. */
|
|
60
|
+
peerResolutionContext?: (request: Request) => PeerResolutionOptions | Promise<PeerResolutionOptions>;
|
|
55
61
|
}
|
|
56
62
|
/**
|
|
57
63
|
* Build a fetch handler suitable for `export default { fetch }` in a CF
|
package/dist/index.core.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type { CatalogDescriptor, SchemaDescriptor, TableDescriptor, ViewDescript
|
|
|
12
12
|
export { ReadOnlyCatalogInterface } from "./catalog/read-only.js";
|
|
13
13
|
export { CompositeCatalogInterface } from "./catalog/composite.js";
|
|
14
14
|
export { FunctionRegistry } from "./functions/registry.js";
|
|
15
|
-
export { FunctionType, FunctionStability, NullHandling, OrderPreservation, OrderDependence, DistinctDependence, TableInOutPhase, DEFAULT_MAX_WORKERS, } from "./types.js";
|
|
15
|
+
export { FunctionType, FunctionStability, NullHandling, ArgumentMonotonicity, OrderPreservation, OrderDependence, DistinctDependence, TableInOutPhase, DEFAULT_MAX_WORKERS, } from "./types.js";
|
|
16
16
|
export type { BindRequest, BindResponse, CopyFromContext, CopyToContext, InitRequest, GlobalInitResponse, TableCardinality, } from "./protocol/types.js";
|
|
17
17
|
export { Arguments } from "./arguments/arguments.js";
|
|
18
18
|
export { type ArgumentSpec, type ArgumentConstraints, argumentSpecsToSchema, schemaToArgumentSpecs, macroArgumentsSchema, macroParameterDocsFromSchema, formatRange, constraintSpecFields } from "./arguments/argument-spec.js";
|
|
@@ -43,3 +43,4 @@ export type { VgiClientOptions, TableFunctionOptions, ScalarFunctionOptions, Tab
|
|
|
43
43
|
export { str, bytes, int, int32, float, float32, bool, toSchema, OutputCollector, AuthContext } from "@query-farm/vgi-rpc";
|
|
44
44
|
export { subprocessConnect, httpConnect, tcpConnect } from "@query-farm/vgi-rpc";
|
|
45
45
|
export type { RpcClient, StreamSession, LogMessage } from "@query-farm/vgi-rpc";
|
|
46
|
+
export { normalizeSchemaPath, schemaPathDisplay, schemaPathKey, schemaPathsEqual, type SchemaPath } from "./schema-path.js";
|