@query-farm/vgi 0.45.0 → 0.47.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.
Files changed (102) hide show
  1. package/README.md +19 -6
  2. package/dist/arrow/impl-arrowjs/index.d.ts +1 -1
  3. package/dist/arrow/impl-arrowjs/iterate.d.ts +2 -0
  4. package/dist/arrow/impl-flechette/canonical.d.ts +1 -1
  5. package/dist/arrow/impl-flechette/index.d.ts +1 -1
  6. package/dist/arrow/impl-flechette/iterate.d.ts +2 -0
  7. package/dist/arrow/impl-flechette/schema.d.ts +19 -5
  8. package/dist/arrow/index.d.ts +1 -1
  9. package/dist/catalog/column-expressions.d.ts +8 -0
  10. package/dist/catalog/column-metadata.d.ts +11 -0
  11. package/dist/catalog/composite.d.ts +2 -1
  12. package/dist/catalog/descriptors.d.ts +21 -29
  13. package/dist/catalog/interface.d.ts +15 -20
  14. package/dist/catalog/macro-overloads.d.ts +4 -0
  15. package/dist/catalog/read-only.d.ts +1 -1
  16. package/dist/catalog/unconstrained-columns.d.ts +2 -0
  17. package/dist/client/client.d.ts +38 -14
  18. package/dist/client-entry.js +806 -115
  19. package/dist/client-entry.js.map +18 -14
  20. package/dist/functions/continuation.d.ts +69 -0
  21. package/dist/functions/projection.d.ts +18 -0
  22. package/dist/functions/table-in-out.d.ts +51 -7
  23. package/dist/functions/table.d.ts +6 -1
  24. package/dist/functions/types.d.ts +21 -0
  25. package/dist/generated/vgi-client.d.ts +178 -36
  26. package/dist/generated/vgi-protocol-schemas.d.ts +51 -1
  27. package/dist/generated/vgi-protocol-types.d.ts +317 -3
  28. package/dist/generated/vgi-service.d.ts +266 -29
  29. package/dist/index.core.d.ts +3 -1
  30. package/dist/index.js +1747 -320
  31. package/dist/index.js.map +45 -37
  32. package/dist/protocol/dispatch.d.ts +9 -9
  33. package/dist/protocol/handlers/aggregate.d.ts +1 -1
  34. package/dist/protocol/handlers/catalog/index.d.ts +1 -1
  35. package/dist/protocol/handlers/catalog/metadata.d.ts +1 -0
  36. package/dist/protocol/handlers/function.d.ts +1 -1
  37. package/dist/protocol/handlers/table-buffering.d.ts +1 -1
  38. package/dist/protocol/handlers/unimplemented.d.ts +1 -1
  39. package/dist/protocol/serializers/bind.d.ts +5 -1
  40. package/dist/protocol/types.d.ts +5 -0
  41. package/dist/rpc-server.d.ts +6 -6
  42. package/dist/serve-entry.js +1607 -436
  43. package/dist/serve-entry.js.map +33 -27
  44. package/dist/util/arrow/index.d.ts +1 -1
  45. package/dist/util/parent-rows.d.ts +8 -0
  46. package/dist/worker-cf-entry.d.ts +1 -1
  47. package/dist/worker-cf-entry.js +1901 -526
  48. package/dist/worker-cf-entry.js.map +45 -37
  49. package/dist/worker.d.ts +1 -1
  50. package/package.json +8 -7
  51. package/src/arrow/impl-arrowjs/index.ts +1 -1
  52. package/src/arrow/impl-arrowjs/iterate.ts +9 -1
  53. package/src/arrow/impl-arrowjs/project.ts +1 -1
  54. package/src/arrow/impl-flechette/canonical.ts +7 -5
  55. package/src/arrow/impl-flechette/index.ts +1 -1
  56. package/src/arrow/impl-flechette/ipc.ts +12 -0
  57. package/src/arrow/impl-flechette/iterate.ts +5 -0
  58. package/src/arrow/impl-flechette/project.ts +6 -8
  59. package/src/arrow/index.ts +1 -1
  60. package/src/catalog/column-expressions.ts +224 -0
  61. package/src/catalog/column-metadata.ts +151 -0
  62. package/src/catalog/composite.ts +5 -1
  63. package/src/catalog/contents-codec.ts +6 -1
  64. package/src/catalog/descriptors.ts +21 -29
  65. package/src/catalog/interface.ts +70 -55
  66. package/src/catalog/macro-overloads.ts +44 -0
  67. package/src/catalog/read-only.ts +69 -71
  68. package/src/catalog/unconstrained-columns.ts +23 -0
  69. package/src/client/client.ts +180 -69
  70. package/src/codec/asd.ts +3 -1
  71. package/src/filter-pushdown/collector.ts +17 -1
  72. package/src/functions/continuation.ts +202 -0
  73. package/src/functions/projection.ts +207 -0
  74. package/src/functions/table-in-out.ts +131 -56
  75. package/src/functions/table.ts +10 -0
  76. package/src/functions/types.ts +21 -0
  77. package/src/generated/vgi-client.ts +200 -37
  78. package/src/generated/vgi-protocol-schemas.ts +456 -41
  79. package/src/generated/vgi-protocol-types.ts +879 -5
  80. package/src/generated/vgi-service.ts +514 -42
  81. package/src/http/client-bundle.ts +1 -1
  82. package/src/http/fetch.ts +1 -1
  83. package/src/index.core.ts +10 -0
  84. package/src/protocol/dispatch.ts +9 -9
  85. package/src/protocol/handlers/aggregate.ts +1 -1
  86. package/src/protocol/handlers/catalog/admin.ts +10 -5
  87. package/src/protocol/handlers/catalog/index.ts +2 -2
  88. package/src/protocol/handlers/catalog/macro.ts +6 -5
  89. package/src/protocol/handlers/catalog/metadata.ts +16 -0
  90. package/src/protocol/handlers/catalog/table.ts +72 -26
  91. package/src/protocol/handlers/catalog/view.ts +24 -3
  92. package/src/protocol/handlers/function.ts +79 -1
  93. package/src/protocol/handlers/table-buffering.ts +1 -1
  94. package/src/protocol/handlers/unimplemented.ts +6 -6
  95. package/src/protocol/serializers/bind.ts +17 -1
  96. package/src/protocol/state-serializer.ts +7 -1
  97. package/src/protocol/types.ts +6 -0
  98. package/src/rpc-server.ts +9 -9
  99. package/src/util/arrow/index.ts +1 -1
  100. package/src/util/parent-rows.ts +41 -0
  101. package/src/worker-cf-entry.ts +3 -0
  102. package/src/worker.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /** Canonical fingerprint of the nested catalog wire schemas. */
2
- export declare const VGI_CATALOG_CONTRACT_HASH = "121e8fe1c074bce00a6d0fcec49d7a90f05e45498cd9ca8a5a3b4a9ae2377a2d";
2
+ export declare const VGI_CATALOG_CONTRACT_HASH = "1d12ce672b43ca1510721f89637bb374d27693b100d357ac2ead99fcddc27e9f";
3
3
  export declare const CatalogInfoSchema: import("../index.core.js").VgiSchema;
4
4
  export declare const SchemaInfoSchema: import("../index.core.js").VgiSchema;
5
5
  export declare const TableInfoSchema: import("../index.core.js").VgiSchema;
@@ -8,6 +8,36 @@ export declare const FunctionInfoSchema: import("../index.core.js").VgiSchema;
8
8
  export declare const MacroInfoSchema: import("../index.core.js").VgiSchema;
9
9
  export declare const IndexInfoSchema: import("../index.core.js").VgiSchema;
10
10
  export declare const CopyFromFormatInfoSchema: import("../index.core.js").VgiSchema;
11
+ export declare const MacroParameterSchema: import("../index.core.js").VgiSchema;
12
+ export declare const MacroOverloadSchema: import("../index.core.js").VgiSchema;
13
+ export declare const ClientQueryCapabilitiesSchema: import("../index.core.js").VgiSchema;
14
+ export declare const QueryCapabilitiesSchema: import("../index.core.js").VgiSchema;
15
+ export declare const QueryEvaluationContextSchema: import("../index.core.js").VgiSchema;
16
+ export declare const QueryObjectReferenceSchema: import("../index.core.js").VgiSchema;
17
+ export declare const CatalogQueryPrepareRequestSchema: import("../index.core.js").VgiSchema;
18
+ export declare const CatalogQueryPrepareResultSchema: import("../index.core.js").VgiSchema;
19
+ export declare const CatalogCapabilitiesSchema: import("../index.core.js").VgiSchema;
20
+ export declare const CatalogMetadataChangesSchema: import("../index.core.js").VgiSchema;
21
+ export declare const CatalogObjectRefSchema: import("../index.core.js").VgiSchema;
22
+ export declare const ObjectDependencySchema: import("../index.core.js").VgiSchema;
23
+ export declare const DependencySnapshotSchema: import("../index.core.js").VgiSchema;
24
+ export declare const OptionDefinitionsSchema: import("../index.core.js").VgiSchema;
25
+ export declare const SqlExpressionSchema: import("../index.core.js").VgiSchema;
26
+ export declare const SqlStatementSchema: import("../index.core.js").VgiSchema;
27
+ export declare const ForeignKeyDefinitionSchema: import("../index.core.js").VgiSchema;
28
+ export declare const ConstraintDefinitionSchema: import("../index.core.js").VgiSchema;
29
+ export declare const ConstraintInfoSchema: import("../index.core.js").VgiSchema;
30
+ export declare const ConstraintChangeSchema: import("../index.core.js").VgiSchema;
31
+ export declare const ConstraintSnapshotSchema: import("../index.core.js").VgiSchema;
32
+ export declare const ConstraintsApplyRequestSchema: import("../index.core.js").VgiSchema;
33
+ export declare const IndexKeySchema: import("../index.core.js").VgiSchema;
34
+ export declare const IndexDefinitionSchema: import("../index.core.js").VgiSchema;
35
+ export declare const SortKeySchema: import("../index.core.js").VgiSchema;
36
+ export declare const TableLayoutSchema: import("../index.core.js").VgiSchema;
37
+ export declare const TableLayoutChangeSchema: import("../index.core.js").VgiSchema;
38
+ export declare const OptionChangesSchema: import("../index.core.js").VgiSchema;
39
+ export declare const OptionStateSchema: import("../index.core.js").VgiSchema;
40
+ export declare const RequiredFilterPathsSchema: import("../index.core.js").VgiSchema;
11
41
  export declare const ScanFunctionResultSchema: import("../index.core.js").VgiSchema;
12
42
  export declare const ScanBranchesResultSchema: import("../index.core.js").VgiSchema;
13
43
  export declare const ScanBranchSchema: import("../index.core.js").VgiSchema;
@@ -44,6 +74,7 @@ export declare const TableBufferingProcessRequestSchema: import("../index.core.j
44
74
  export declare const TableFunctionCardinalityRequestSchema: import("../index.core.js").VgiSchema;
45
75
  export declare const TableFunctionDynamicToStringRequestSchema: import("../index.core.js").VgiSchema;
46
76
  export declare const TableFunctionPlanRequestSchema: import("../index.core.js").VgiSchema;
77
+ export declare const TableFunctionProjectionRequestSchema: import("../index.core.js").VgiSchema;
47
78
  export declare const TableFunctionStatisticsRequestSchema: import("../index.core.js").VgiSchema;
48
79
  export declare const AggregateBindResultSchema: import("../index.core.js").VgiSchema;
49
80
  export declare const AggregateCombineResultSchema: import("../index.core.js").VgiSchema;
@@ -62,7 +93,9 @@ export declare const CatalogAttachResultSchema: import("../index.core.js").VgiSc
62
93
  export declare const CatalogCatalogsResultSchema: import("../index.core.js").VgiSchema;
63
94
  export declare const CatalogContentsResultSchema: import("../index.core.js").VgiSchema;
64
95
  export declare const CatalogCopyFromFormatsResultSchema: import("../index.core.js").VgiSchema;
96
+ export declare const CatalogDependenciesResultSchema: import("../index.core.js").VgiSchema;
65
97
  export declare const CatalogIndexGetResultSchema: import("../index.core.js").VgiSchema;
98
+ export declare const CatalogIndexOptionDefinitionsResultSchema: import("../index.core.js").VgiSchema;
66
99
  export declare const CatalogMacroGetResultSchema: import("../index.core.js").VgiSchema;
67
100
  export declare const CatalogSchemaContentsFunctionsResultSchema: import("../index.core.js").VgiSchema;
68
101
  export declare const CatalogSchemaContentsIndexesResultSchema: import("../index.core.js").VgiSchema;
@@ -70,8 +103,11 @@ export declare const CatalogSchemaContentsMacrosResultSchema: import("../index.c
70
103
  export declare const CatalogSchemaContentsTablesResultSchema: import("../index.core.js").VgiSchema;
71
104
  export declare const CatalogSchemaContentsViewsResultSchema: import("../index.core.js").VgiSchema;
72
105
  export declare const CatalogSchemaGetResultSchema: import("../index.core.js").VgiSchema;
106
+ export declare const CatalogSchemaOptionDefinitionsResultSchema: import("../index.core.js").VgiSchema;
73
107
  export declare const CatalogSchemasResultSchema: import("../index.core.js").VgiSchema;
108
+ export declare const CatalogTableConstraintsApplyResultSchema: import("../index.core.js").VgiSchema;
74
109
  export declare const CatalogTableGetResultSchema: import("../index.core.js").VgiSchema;
110
+ export declare const CatalogTableOptionDefinitionsResultSchema: import("../index.core.js").VgiSchema;
75
111
  export declare const CatalogTransactionBeginResultSchema: import("../index.core.js").VgiSchema;
76
112
  export declare const CatalogVersionResultSchema: import("../index.core.js").VgiSchema;
77
113
  export declare const CatalogViewGetResultSchema: import("../index.core.js").VgiSchema;
@@ -81,6 +117,7 @@ export declare const TableBufferingProcessResultSchema: import("../index.core.js
81
117
  export declare const TableFunctionCardinalityResultSchema: import("../index.core.js").VgiSchema;
82
118
  export declare const TableFunctionDynamicToStringResultSchema: import("../index.core.js").VgiSchema;
83
119
  export declare const TableFunctionPlanResultSchema: import("../index.core.js").VgiSchema;
120
+ export declare const TableFunctionProjectionResultSchema: import("../index.core.js").VgiSchema;
84
121
  export declare const AggregateBindParamsSchema: import("../index.core.js").VgiSchema;
85
122
  export declare const AggregateCombineParamsSchema: import("../index.core.js").VgiSchema;
86
123
  export declare const AggregateDestructorParamsSchema: import("../index.core.js").VgiSchema;
@@ -99,14 +136,20 @@ export declare const CatalogCatalogsParamsSchema: import("../index.core.js").Vgi
99
136
  export declare const CatalogContentsParamsSchema: import("../index.core.js").VgiSchema;
100
137
  export declare const CatalogCopyFromFormatsParamsSchema: import("../index.core.js").VgiSchema;
101
138
  export declare const CatalogCreateParamsSchema: import("../index.core.js").VgiSchema;
139
+ export declare const CatalogDependenciesParamsSchema: import("../index.core.js").VgiSchema;
102
140
  export declare const CatalogDetachParamsSchema: import("../index.core.js").VgiSchema;
103
141
  export declare const CatalogDropParamsSchema: import("../index.core.js").VgiSchema;
104
142
  export declare const CatalogIndexCreateParamsSchema: import("../index.core.js").VgiSchema;
105
143
  export declare const CatalogIndexDropParamsSchema: import("../index.core.js").VgiSchema;
106
144
  export declare const CatalogIndexGetParamsSchema: import("../index.core.js").VgiSchema;
145
+ export declare const CatalogIndexOptionDefinitionsParamsSchema: import("../index.core.js").VgiSchema;
107
146
  export declare const CatalogMacroCreateParamsSchema: import("../index.core.js").VgiSchema;
108
147
  export declare const CatalogMacroDropParamsSchema: import("../index.core.js").VgiSchema;
109
148
  export declare const CatalogMacroGetParamsSchema: import("../index.core.js").VgiSchema;
149
+ export declare const CatalogQueryPrepareParamsSchema: import("../index.core.js").VgiSchema;
150
+ export declare const CatalogQueryReleaseParamsSchema: import("../index.core.js").VgiSchema;
151
+ export declare const CatalogSchemaAlterMetadataParamsSchema: import("../index.core.js").VgiSchema;
152
+ export declare const CatalogSchemaAlterOptionsParamsSchema: import("../index.core.js").VgiSchema;
110
153
  export declare const CatalogSchemaContentsFunctionsParamsSchema: import("../index.core.js").VgiSchema;
111
154
  export declare const CatalogSchemaContentsIndexesParamsSchema: import("../index.core.js").VgiSchema;
112
155
  export declare const CatalogSchemaContentsMacrosParamsSchema: import("../index.core.js").VgiSchema;
@@ -115,7 +158,10 @@ export declare const CatalogSchemaContentsViewsParamsSchema: import("../index.co
115
158
  export declare const CatalogSchemaCreateParamsSchema: import("../index.core.js").VgiSchema;
116
159
  export declare const CatalogSchemaDropParamsSchema: import("../index.core.js").VgiSchema;
117
160
  export declare const CatalogSchemaGetParamsSchema: import("../index.core.js").VgiSchema;
161
+ export declare const CatalogSchemaOptionDefinitionsParamsSchema: import("../index.core.js").VgiSchema;
118
162
  export declare const CatalogSchemasParamsSchema: import("../index.core.js").VgiSchema;
163
+ export declare const CatalogTableAlterLayoutParamsSchema: import("../index.core.js").VgiSchema;
164
+ export declare const CatalogTableAlterOptionsParamsSchema: import("../index.core.js").VgiSchema;
119
165
  export declare const CatalogTableColumnAddParamsSchema: import("../index.core.js").VgiSchema;
120
166
  export declare const CatalogTableColumnCommentSetParamsSchema: import("../index.core.js").VgiSchema;
121
167
  export declare const CatalogTableColumnDefaultDropParamsSchema: import("../index.core.js").VgiSchema;
@@ -125,6 +171,7 @@ export declare const CatalogTableColumnRenameParamsSchema: import("../index.core
125
171
  export declare const CatalogTableColumnStatisticsGetParamsSchema: import("../index.core.js").VgiSchema;
126
172
  export declare const CatalogTableColumnTypeChangeParamsSchema: import("../index.core.js").VgiSchema;
127
173
  export declare const CatalogTableCommentSetParamsSchema: import("../index.core.js").VgiSchema;
174
+ export declare const CatalogTableConstraintsApplyParamsSchema: import("../index.core.js").VgiSchema;
128
175
  export declare const CatalogTableCreateParamsSchema: import("../index.core.js").VgiSchema;
129
176
  export declare const CatalogTableDeleteFunctionGetParamsSchema: import("../index.core.js").VgiSchema;
130
177
  export declare const CatalogTableDropParamsSchema: import("../index.core.js").VgiSchema;
@@ -132,6 +179,7 @@ export declare const CatalogTableGetParamsSchema: import("../index.core.js").Vgi
132
179
  export declare const CatalogTableInsertFunctionGetParamsSchema: import("../index.core.js").VgiSchema;
133
180
  export declare const CatalogTableNotNullDropParamsSchema: import("../index.core.js").VgiSchema;
134
181
  export declare const CatalogTableNotNullSetParamsSchema: import("../index.core.js").VgiSchema;
182
+ export declare const CatalogTableOptionDefinitionsParamsSchema: import("../index.core.js").VgiSchema;
135
183
  export declare const CatalogTableRenameParamsSchema: import("../index.core.js").VgiSchema;
136
184
  export declare const CatalogTableScanBranchesGetParamsSchema: import("../index.core.js").VgiSchema;
137
185
  export declare const CatalogTableScanFunctionGetParamsSchema: import("../index.core.js").VgiSchema;
@@ -140,6 +188,7 @@ export declare const CatalogTransactionBeginParamsSchema: import("../index.core.
140
188
  export declare const CatalogTransactionCommitParamsSchema: import("../index.core.js").VgiSchema;
141
189
  export declare const CatalogTransactionRollbackParamsSchema: import("../index.core.js").VgiSchema;
142
190
  export declare const CatalogVersionParamsSchema: import("../index.core.js").VgiSchema;
191
+ export declare const CatalogViewColumnCommentSetParamsSchema: import("../index.core.js").VgiSchema;
143
192
  export declare const CatalogViewCommentSetParamsSchema: import("../index.core.js").VgiSchema;
144
193
  export declare const CatalogViewCreateParamsSchema: import("../index.core.js").VgiSchema;
145
194
  export declare const CatalogViewDropParamsSchema: import("../index.core.js").VgiSchema;
@@ -152,4 +201,5 @@ export declare const TableBufferingProcessParamsSchema: import("../index.core.js
152
201
  export declare const TableFunctionCardinalityParamsSchema: import("../index.core.js").VgiSchema;
153
202
  export declare const TableFunctionDynamicToStringParamsSchema: import("../index.core.js").VgiSchema;
154
203
  export declare const TableFunctionPlanParamsSchema: import("../index.core.js").VgiSchema;
204
+ export declare const TableFunctionProjectionParamsSchema: import("../index.core.js").VgiSchema;
155
205
  export declare const TableFunctionStatisticsParamsSchema: import("../index.core.js").VgiSchema;
@@ -1,7 +1,321 @@
1
- import type { CatalogAttachResult, CatalogContentsResponse } from "./vgi-client.js";
2
- export type { CatalogAttachResult, CatalogContentsResponse };
1
+ import type { CatalogAttachResult, CatalogCapabilities, CatalogContentsResponse, CatalogObjectRef, CatalogQueryPrepareRequest, CatalogQueryPrepareResult, ClientQueryCapabilities, ConstraintSnapshot, ConstraintsApplyRequest, DependencySnapshot, IndexDefinition, MacroOverload, MacroParameter, OptionDefinitions, OptionState, QueryCapabilities, QueryEvaluationContext, QueryObjectReference, SqlExpression, TableLayout } from "./vgi-client.js";
2
+ export type { CatalogAttachResult, CatalogCapabilities, CatalogContentsResponse, CatalogObjectRef, CatalogQueryPrepareRequest, CatalogQueryPrepareResult, ClientQueryCapabilities, ConstraintSnapshot, ConstraintsApplyRequest, DependencySnapshot, IndexDefinition, MacroOverload, MacroParameter, OptionDefinitions, OptionState, QueryCapabilities, QueryEvaluationContext, QueryObjectReference, SqlExpression, TableLayout };
3
+ /** Fields of `MacroParameter` that have a protocol default. */
4
+ export type MacroParameterDefaultedField = "declared_type" | "default_value" | "default_expression" | "documentation";
5
+ /** `MacroParameter` with every field that has a protocol default optional. */
6
+ export type MacroParameterInit = Omit<MacroParameter, MacroParameterDefaultedField> & Partial<Pick<MacroParameter, MacroParameterDefaultedField>>;
7
+ /** Build a complete `MacroParameter`, filling the protocol defaults, in wire order. */
8
+ export declare function buildMacroParameter(init: MacroParameterInit): MacroParameter;
9
+ export declare const encodeMacroParameter: (v: MacroParameter) => Uint8Array;
10
+ export declare const decodeMacroParameter: (b: Uint8Array) => MacroParameter;
11
+ /** `MacroOverload` has no defaulted fields, so its init is the record itself. */
12
+ export type MacroOverloadInit = MacroOverload;
13
+ /** Build a complete `MacroOverload`, filling the protocol defaults, in wire order. */
14
+ export declare function buildMacroOverload(init: MacroOverloadInit): MacroOverload;
15
+ export declare const encodeMacroOverload: (v: MacroOverload) => Uint8Array;
16
+ export declare const decodeMacroOverload: (b: Uint8Array) => MacroOverload;
17
+ /** Fields of `ClientQueryCapabilities` that have a protocol default. */
18
+ export type ClientQueryCapabilitiesDefaultedField = "max_query_bytes";
19
+ /** `ClientQueryCapabilities` with every field that has a protocol default optional. */
20
+ export type ClientQueryCapabilitiesInit = Omit<ClientQueryCapabilities, ClientQueryCapabilitiesDefaultedField> & Partial<Pick<ClientQueryCapabilities, ClientQueryCapabilitiesDefaultedField>>;
21
+ /** Build a complete `ClientQueryCapabilities`, filling the protocol defaults, in wire order. */
22
+ export declare function buildClientQueryCapabilities(init: ClientQueryCapabilitiesInit): ClientQueryCapabilities;
23
+ export declare const encodeClientQueryCapabilities: (v: ClientQueryCapabilities) => Uint8Array;
24
+ export declare const decodeClientQueryCapabilities: (b: Uint8Array) => ClientQueryCapabilities;
25
+ /** Fields of `QueryCapabilities` that have a protocol default. */
26
+ export type QueryCapabilitiesDefaultedField = "max_query_bytes";
27
+ /** `QueryCapabilities` with every field that has a protocol default optional. */
28
+ export type QueryCapabilitiesInit = Omit<QueryCapabilities, QueryCapabilitiesDefaultedField> & Partial<Pick<QueryCapabilities, QueryCapabilitiesDefaultedField>>;
29
+ /** Build a complete `QueryCapabilities`, filling the protocol defaults, in wire order. */
30
+ export declare function buildQueryCapabilities(init: QueryCapabilitiesInit): QueryCapabilities;
31
+ export declare const encodeQueryCapabilities: (v: QueryCapabilities) => Uint8Array;
32
+ export declare const decodeQueryCapabilities: (b: Uint8Array) => QueryCapabilities;
33
+ /** Fields of `QueryEvaluationContext` that have a protocol default. */
34
+ export type QueryEvaluationContextDefaultedField = "timezone" | "collation" | "default_order" | "default_null_order" | "preserve_insertion_order";
35
+ /** `QueryEvaluationContext` with every field that has a protocol default optional. */
36
+ export type QueryEvaluationContextInit = Omit<QueryEvaluationContext, QueryEvaluationContextDefaultedField> & Partial<Pick<QueryEvaluationContext, QueryEvaluationContextDefaultedField>>;
37
+ /** Build a complete `QueryEvaluationContext`, filling the protocol defaults, in wire order. */
38
+ export declare function buildQueryEvaluationContext(init: QueryEvaluationContextInit): QueryEvaluationContext;
39
+ export declare const encodeQueryEvaluationContext: (v: QueryEvaluationContext) => Uint8Array;
40
+ export declare const decodeQueryEvaluationContext: (b: Uint8Array) => QueryEvaluationContext;
41
+ /** `QueryObjectReference` has no defaulted fields, so its init is the record itself. */
42
+ export type QueryObjectReferenceInit = QueryObjectReference;
43
+ /** Build a complete `QueryObjectReference`, filling the protocol defaults, in wire order. */
44
+ export declare function buildQueryObjectReference(init: QueryObjectReferenceInit): QueryObjectReference;
45
+ export declare const encodeQueryObjectReference: (v: QueryObjectReference) => Uint8Array;
46
+ export declare const decodeQueryObjectReference: (b: Uint8Array) => QueryObjectReference;
47
+ /** Fields of `CatalogQueryPrepareRequest` that have a protocol default. */
48
+ export type CatalogQueryPrepareRequestDefaultedField = "transaction_opaque_data" | "catalog_version" | "catalog_etag" | "referenced_objects" | "expected_output_schema" | "required_ordering";
49
+ /** `CatalogQueryPrepareRequest` with every field that has a protocol default optional. */
50
+ export type CatalogQueryPrepareRequestInit = Omit<CatalogQueryPrepareRequest, CatalogQueryPrepareRequestDefaultedField> & Partial<Pick<CatalogQueryPrepareRequest, CatalogQueryPrepareRequestDefaultedField>>;
51
+ /** Build a complete `CatalogQueryPrepareRequest`, filling the protocol defaults, in wire order. */
52
+ export declare function buildCatalogQueryPrepareRequest(init: CatalogQueryPrepareRequestInit): CatalogQueryPrepareRequest;
53
+ export declare const encodeCatalogQueryPrepareRequest: (v: CatalogQueryPrepareRequest) => Uint8Array;
54
+ export declare const decodeCatalogQueryPrepareRequest: (b: Uint8Array) => CatalogQueryPrepareRequest;
55
+ /** Fields of `CatalogQueryPrepareResult` that have a protocol default. */
56
+ export type CatalogQueryPrepareResultDefaultedField = "reason_code" | "reason_detail" | "prepared_query_token" | "output_schema" | "result_ordering" | "validated_catalog_version" | "validated_catalog_etag" | "context_digest" | "expires_at_epoch_ms" | "estimated_rows" | "estimated_bytes";
57
+ /** `CatalogQueryPrepareResult` with every field that has a protocol default optional. */
58
+ export type CatalogQueryPrepareResultInit = Omit<CatalogQueryPrepareResult, CatalogQueryPrepareResultDefaultedField> & Partial<Pick<CatalogQueryPrepareResult, CatalogQueryPrepareResultDefaultedField>>;
59
+ /** Build a complete `CatalogQueryPrepareResult`, filling the protocol defaults, in wire order. */
60
+ export declare function buildCatalogQueryPrepareResult(init: CatalogQueryPrepareResultInit): CatalogQueryPrepareResult;
61
+ export declare const encodeCatalogQueryPrepareResult: (v: CatalogQueryPrepareResult) => Uint8Array;
62
+ export declare const decodeCatalogQueryPrepareResult: (b: Uint8Array) => CatalogQueryPrepareResult;
63
+ /** Fields of `CatalogCapabilities` that have a protocol default. */
64
+ export type CatalogCapabilitiesDefaultedField = "read" | "ddl" | "write" | "transaction";
65
+ /** `CatalogCapabilities` with every field that has a protocol default optional. */
66
+ export type CatalogCapabilitiesInit = Omit<CatalogCapabilities, CatalogCapabilitiesDefaultedField> & Partial<Pick<CatalogCapabilities, CatalogCapabilitiesDefaultedField>>;
67
+ /** Build a complete `CatalogCapabilities`, filling the protocol defaults, in wire order. */
68
+ export declare function buildCatalogCapabilities(init: CatalogCapabilitiesInit): CatalogCapabilities;
69
+ export declare const encodeCatalogCapabilities: (v: CatalogCapabilities) => Uint8Array;
70
+ export declare const decodeCatalogCapabilities: (b: Uint8Array) => CatalogCapabilities;
71
+ /** A reusable patch with explicit comment presence and per-key tag changes. `set_comment=False` leaves the comment unchanged and requires `comment` to be NULL. With `set_comment=True`, NULL clears the comment; an empty string stores an empty comment. Tag keys are literal, case-sensitive strings. Setting an empty value differs from removing a key. SET/REMOVE overlap and duplicate removals are invalid, including when the target does not exist. */
72
+ export interface CatalogMetadataChanges {
73
+ set_comment: boolean;
74
+ comment?: string | null;
75
+ set_tags: Record<string, string>;
76
+ remove_tags: string[];
77
+ }
78
+ /** Fields of `CatalogMetadataChanges` that have a protocol default. */
79
+ export type CatalogMetadataChangesDefaultedField = "set_comment" | "comment" | "set_tags" | "remove_tags";
80
+ /** `CatalogMetadataChanges` with every field that has a protocol default optional. */
81
+ export type CatalogMetadataChangesInit = Omit<CatalogMetadataChanges, CatalogMetadataChangesDefaultedField> & Partial<Pick<CatalogMetadataChanges, CatalogMetadataChangesDefaultedField>>;
82
+ /** Build a complete `CatalogMetadataChanges`, filling the protocol defaults, in wire order. */
83
+ export declare function buildCatalogMetadataChanges(init: CatalogMetadataChangesInit): CatalogMetadataChanges;
84
+ export declare const encodeCatalogMetadataChanges: (v: CatalogMetadataChanges) => Uint8Array;
85
+ export declare const decodeCatalogMetadataChanges: (b: Uint8Array) => CatalogMetadataChanges;
86
+ /** Fields of `CatalogObjectRef` that have a protocol default. */
87
+ export type CatalogObjectRefDefaultedField = "owner_table";
88
+ /** `CatalogObjectRef` with every field that has a protocol default optional. */
89
+ export type CatalogObjectRefInit = Omit<CatalogObjectRef, CatalogObjectRefDefaultedField> & Partial<Pick<CatalogObjectRef, CatalogObjectRefDefaultedField>>;
90
+ /** Build a complete `CatalogObjectRef`, filling the protocol defaults, in wire order. */
91
+ export declare function buildCatalogObjectRef(init: CatalogObjectRefInit): CatalogObjectRef;
92
+ export declare const encodeCatalogObjectRef: (v: CatalogObjectRef) => Uint8Array;
93
+ export declare const decodeCatalogObjectRef: (b: Uint8Array) => CatalogObjectRef;
94
+ /** An edge from dependent to subject, both CatalogObjectRef IPC records. `requires` blocks RESTRICT; CASCADE deletes the dependent. `owned` automatically deletes the dependent when its owner is dropped, even under RESTRICT. Dropping a dependent never drops its subject. Owned objects can be dropped explicitly, have at most one owner, and cannot form owner cycles. Schema membership and parent schemas use requires, not owned. */
95
+ export interface ObjectDependency {
96
+ dependent: Uint8Array;
97
+ subject: Uint8Array;
98
+ blocks_alter: boolean;
99
+ kind: string;
100
+ subject_column_paths?: string[][] | null;
101
+ dependent_column_path?: string[] | null;
102
+ }
103
+ /** Fields of `ObjectDependency` that have a protocol default. */
104
+ export type ObjectDependencyDefaultedField = "kind" | "subject_column_paths" | "dependent_column_path";
105
+ /** `ObjectDependency` with every field that has a protocol default optional. */
106
+ export type ObjectDependencyInit = Omit<ObjectDependency, ObjectDependencyDefaultedField> & Partial<Pick<ObjectDependency, ObjectDependencyDefaultedField>>;
107
+ /** Build a complete `ObjectDependency`, filling the protocol defaults, in wire order. */
108
+ export declare function buildObjectDependency(init: ObjectDependencyInit): ObjectDependency;
109
+ export declare const encodeObjectDependency: (v: ObjectDependency) => Uint8Array;
110
+ export declare const decodeObjectDependency: (b: Uint8Array) => ObjectDependency;
111
+ /** Fields of `DependencySnapshot` that have a protocol default. */
112
+ export type DependencySnapshotDefaultedField = "objects" | "dependencies";
113
+ /** `DependencySnapshot` with every field that has a protocol default optional. */
114
+ export type DependencySnapshotInit = Omit<DependencySnapshot, DependencySnapshotDefaultedField> & Partial<Pick<DependencySnapshot, DependencySnapshotDefaultedField>>;
115
+ /** Build a complete `DependencySnapshot`, filling the protocol defaults, in wire order. */
116
+ export declare function buildDependencySnapshot(init: DependencySnapshotInit): DependencySnapshot;
117
+ export declare const encodeDependencySnapshot: (v: DependencySnapshot) => Uint8Array;
118
+ export declare const decodeDependencySnapshot: (b: Uint8Array) => DependencySnapshot;
119
+ /** Fields of `OptionDefinitions` that have a protocol default. */
120
+ export type OptionDefinitionsDefaultedField = "create_names" | "alter_names";
121
+ /** `OptionDefinitions` with every field that has a protocol default optional. */
122
+ export type OptionDefinitionsInit = Omit<OptionDefinitions, OptionDefinitionsDefaultedField> & Partial<Pick<OptionDefinitions, OptionDefinitionsDefaultedField>>;
123
+ /** Build a complete `OptionDefinitions`, filling the protocol defaults, in wire order. */
124
+ export declare function buildOptionDefinitions(init: OptionDefinitionsInit): OptionDefinitions;
125
+ export declare const encodeOptionDefinitions: (v: OptionDefinitions) => Uint8Array;
126
+ export declare const decodeOptionDefinitions: (b: Uint8Array) => OptionDefinitions;
127
+ /** `SqlExpression` has no defaulted fields, so its init is the record itself. */
128
+ export type SqlExpressionInit = SqlExpression;
129
+ /** Build a complete `SqlExpression`, filling the protocol defaults, in wire order. */
130
+ export declare function buildSqlExpression(init: SqlExpressionInit): SqlExpression;
131
+ export declare const encodeSqlExpression: (v: SqlExpression) => Uint8Array;
132
+ export declare const decodeSqlExpression: (b: Uint8Array) => SqlExpression;
133
+ /** One profiled query or DML statement; the codec grants no execution rights. */
134
+ export interface SqlStatement {
135
+ sql: string;
136
+ profile: string;
137
+ schema_path: string[];
138
+ evaluation_context: QueryEvaluationContext;
139
+ }
140
+ /** `SqlStatement` has no defaulted fields, so its init is the record itself. */
141
+ export type SqlStatementInit = SqlStatement;
142
+ /** Build a complete `SqlStatement`, filling the protocol defaults, in wire order. */
143
+ export declare function buildSqlStatement(init: SqlStatementInit): SqlStatement;
144
+ export declare const encodeSqlStatement: (v: SqlStatement) => Uint8Array;
145
+ export declare const decodeSqlStatement: (b: Uint8Array) => SqlStatement;
146
+ /** An attachment-relative FK target and explicit immediate match/actions. */
147
+ export interface ForeignKeyDefinition {
148
+ referenced_table: Uint8Array;
149
+ referenced_column_paths: string[][];
150
+ match: string;
151
+ on_update: string;
152
+ on_delete: string;
153
+ }
154
+ /** Fields of `ForeignKeyDefinition` that have a protocol default. */
155
+ export type ForeignKeyDefinitionDefaultedField = "match" | "on_update" | "on_delete";
156
+ /** `ForeignKeyDefinition` with every field that has a protocol default optional. */
157
+ export type ForeignKeyDefinitionInit = Omit<ForeignKeyDefinition, ForeignKeyDefinitionDefaultedField> & Partial<Pick<ForeignKeyDefinition, ForeignKeyDefinitionDefaultedField>>;
158
+ /** Build a complete `ForeignKeyDefinition`, filling the protocol defaults, in wire order. */
159
+ export declare function buildForeignKeyDefinition(init: ForeignKeyDefinitionInit): ForeignKeyDefinition;
160
+ export declare const encodeForeignKeyDefinition: (v: ForeignKeyDefinition) => Uint8Array;
161
+ export declare const decodeForeignKeyDefinition: (b: Uint8Array) => ForeignKeyDefinition;
162
+ /** Exactly one constraint definition; labels are never mutation identity. */
163
+ export interface ConstraintDefinition {
164
+ kind: string;
165
+ column_paths: string[][];
166
+ declared_name?: string | null;
167
+ check_expression?: Uint8Array | null;
168
+ foreign_key?: Uint8Array | null;
169
+ }
170
+ /** Fields of `ConstraintDefinition` that have a protocol default. */
171
+ export type ConstraintDefinitionDefaultedField = "column_paths" | "declared_name" | "check_expression" | "foreign_key";
172
+ /** `ConstraintDefinition` with every field that has a protocol default optional. */
173
+ export type ConstraintDefinitionInit = Omit<ConstraintDefinition, ConstraintDefinitionDefaultedField> & Partial<Pick<ConstraintDefinition, ConstraintDefinitionDefaultedField>>;
174
+ /** Build a complete `ConstraintDefinition`, filling the protocol defaults, in wire order. */
175
+ export declare function buildConstraintDefinition(init: ConstraintDefinitionInit): ConstraintDefinition;
176
+ export declare const encodeConstraintDefinition: (v: ConstraintDefinition) => Uint8Array;
177
+ export declare const decodeConstraintDefinition: (b: Uint8Array) => ConstraintDefinition;
178
+ /** Canonical readback with stable logical identity and explicit trust state. */
179
+ export interface ConstraintInfo {
180
+ ref: Uint8Array;
181
+ definition: Uint8Array;
182
+ enforcement: string;
183
+ validation: string;
184
+ referenced_constraint?: Uint8Array | null;
185
+ }
186
+ /** Fields of `ConstraintInfo` that have a protocol default. */
187
+ export type ConstraintInfoDefaultedField = "referenced_constraint";
188
+ /** `ConstraintInfo` with every field that has a protocol default optional. */
189
+ export type ConstraintInfoInit = Omit<ConstraintInfo, ConstraintInfoDefaultedField> & Partial<Pick<ConstraintInfo, ConstraintInfoDefaultedField>>;
190
+ /** Build a complete `ConstraintInfo`, filling the protocol defaults, in wire order. */
191
+ export declare function buildConstraintInfo(init: ConstraintInfoInit): ConstraintInfo;
192
+ export declare const encodeConstraintInfo: (v: ConstraintInfo) => Uint8Array;
193
+ export declare const decodeConstraintInfo: (b: Uint8Array) => ConstraintInfo;
194
+ /** Strict ADD/DROP/RENAME/REPLACE union for one atomic apply request. */
195
+ export interface ConstraintChange {
196
+ operation: string;
197
+ ref?: Uint8Array | null;
198
+ definition?: Uint8Array | null;
199
+ enforcement?: string | null;
200
+ validation?: string | null;
201
+ cascade?: boolean | null;
202
+ declared_name?: string | null;
203
+ }
204
+ /** Fields of `ConstraintChange` that have a protocol default. */
205
+ export type ConstraintChangeDefaultedField = "ref" | "definition" | "enforcement" | "validation" | "cascade" | "declared_name";
206
+ /** `ConstraintChange` with every field that has a protocol default optional. */
207
+ export type ConstraintChangeInit = Omit<ConstraintChange, ConstraintChangeDefaultedField> & Partial<Pick<ConstraintChange, ConstraintChangeDefaultedField>>;
208
+ /** Build a complete `ConstraintChange`, filling the protocol defaults, in wire order. */
209
+ export declare function buildConstraintChange(init: ConstraintChangeInit): ConstraintChange;
210
+ export declare const encodeConstraintChange: (v: ConstraintChange) => Uint8Array;
211
+ export declare const decodeConstraintChange: (b: Uint8Array) => ConstraintChange;
212
+ /** `ConstraintSnapshot` has no defaulted fields, so its init is the record itself. */
213
+ export type ConstraintSnapshotInit = ConstraintSnapshot;
214
+ /** Build a complete `ConstraintSnapshot`, filling the protocol defaults, in wire order. */
215
+ export declare function buildConstraintSnapshot(init: ConstraintSnapshotInit): ConstraintSnapshot;
216
+ export declare const encodeConstraintSnapshot: (v: ConstraintSnapshot) => Uint8Array;
217
+ export declare const decodeConstraintSnapshot: (b: Uint8Array) => ConstraintSnapshot;
218
+ /** Fields of `ConstraintsApplyRequest` that have a protocol default. */
219
+ export type ConstraintsApplyRequestDefaultedField = "transaction_opaque_data";
220
+ /** `ConstraintsApplyRequest` with every field that has a protocol default optional. */
221
+ export type ConstraintsApplyRequestInit = Omit<ConstraintsApplyRequest, ConstraintsApplyRequestDefaultedField> & Partial<Pick<ConstraintsApplyRequest, ConstraintsApplyRequestDefaultedField>>;
222
+ /** Build a complete `ConstraintsApplyRequest`, filling the protocol defaults, in wire order. */
223
+ export declare function buildConstraintsApplyRequest(init: ConstraintsApplyRequestInit): ConstraintsApplyRequest;
224
+ export declare const encodeConstraintsApplyRequest: (v: ConstraintsApplyRequest) => Uint8Array;
225
+ export declare const decodeConstraintsApplyRequest: (b: Uint8Array) => ConstraintsApplyRequest;
226
+ /** Exactly one raw column path or explicitly contextual SQL expression. Raw keys require provider-established binary column collation in the initial profile. Direction and physical ordering require an algorithm profile. */
227
+ export interface IndexKey {
228
+ column_path?: string[] | null;
229
+ expression?: Uint8Array | null;
230
+ }
231
+ /** Fields of `IndexKey` that have a protocol default. */
232
+ export type IndexKeyDefaultedField = "column_path" | "expression";
233
+ /** `IndexKey` with every field that has a protocol default optional. */
234
+ export type IndexKeyInit = Omit<IndexKey, IndexKeyDefaultedField> & Partial<Pick<IndexKey, IndexKeyDefaultedField>>;
235
+ /** Build a complete `IndexKey`, filling the protocol defaults, in wire order. */
236
+ export declare function buildIndexKey(init: IndexKeyInit): IndexKey;
237
+ export declare const encodeIndexKey: (v: IndexKey) => Uint8Array;
238
+ export declare const decodeIndexKey: (b: Uint8Array) => IndexKey;
239
+ /** Fields of `IndexDefinition` that have a protocol default. */
240
+ export type IndexDefinitionDefaultedField = "associated_constraint";
241
+ /** `IndexDefinition` with every field that has a protocol default optional. */
242
+ export type IndexDefinitionInit = Omit<IndexDefinition, IndexDefinitionDefaultedField> & Partial<Pick<IndexDefinition, IndexDefinitionDefaultedField>>;
243
+ /** Build a complete `IndexDefinition`, filling the protocol defaults, in wire order. */
244
+ export declare function buildIndexDefinition(init: IndexDefinitionInit): IndexDefinition;
245
+ export declare const encodeIndexDefinition: (v: IndexDefinition) => Uint8Array;
246
+ export declare const decodeIndexDefinition: (b: Uint8Array) => IndexDefinition;
247
+ /** Scalar key, direction and NULL order for a table layout. */
248
+ export interface SortKey {
249
+ expression: Uint8Array;
250
+ direction: string;
251
+ null_order: string;
252
+ }
253
+ /** `SortKey` has no defaulted fields, so its init is the record itself. */
254
+ export type SortKeyInit = SortKey;
255
+ /** Build a complete `SortKey`, filling the protocol defaults, in wire order. */
256
+ export declare function buildSortKey(init: SortKeyInit): SortKey;
257
+ export declare const encodeSortKey: (v: SortKey) => Uint8Array;
258
+ export declare const decodeSortKey: (b: Uint8Array) => SortKey;
259
+ /** Fields of `TableLayout` that have a protocol default. */
260
+ export type TableLayoutDefaultedField = "partition_by" | "sorted_by" | "coverage";
261
+ /** `TableLayout` with every field that has a protocol default optional. */
262
+ export type TableLayoutInit = Omit<TableLayout, TableLayoutDefaultedField> & Partial<Pick<TableLayout, TableLayoutDefaultedField>>;
263
+ /** Build a complete `TableLayout`, filling the protocol defaults, in wire order. */
264
+ export declare function buildTableLayout(init: TableLayoutInit): TableLayout;
265
+ export declare const encodeTableLayout: (v: TableLayout) => Uint8Array;
266
+ export declare const decodeTableLayout: (b: Uint8Array) => TableLayout;
267
+ /** Replace either layout component, atomically under the requested mode. NULL leaves a component unchanged; an empty list clears it. REWRITE succeeds only after all existing data conforms to the replacement layout. A provider that cannot honor the mode must reject it before mutation. No implicit retry. */
268
+ export interface TableLayoutChange {
269
+ mode: string;
270
+ partition_by?: Uint8Array[] | null;
271
+ sorted_by?: Uint8Array[] | null;
272
+ }
273
+ /** Fields of `TableLayoutChange` that have a protocol default. */
274
+ export type TableLayoutChangeDefaultedField = "partition_by" | "sorted_by";
275
+ /** `TableLayoutChange` with every field that has a protocol default optional. */
276
+ export type TableLayoutChangeInit = Omit<TableLayoutChange, TableLayoutChangeDefaultedField> & Partial<Pick<TableLayoutChange, TableLayoutChangeDefaultedField>>;
277
+ /** Build a complete `TableLayoutChange`, filling the protocol defaults, in wire order. */
278
+ export declare function buildTableLayoutChange(init: TableLayoutChangeInit): TableLayoutChange;
279
+ export declare const encodeTableLayoutChange: (v: TableLayoutChange) => Uint8Array;
280
+ export declare const decodeTableLayoutChange: (b: Uint8Array) => TableLayoutChange;
281
+ /** An atomic candidate change to literal catalog options. All identifiers are canonical provider option names. Every supplied field is a SET, including a typed NULL. Missing fields are unchanged. RESET drops an override and restores the provider default from the mutation's snapshot. Expressions are not encoded as strings masquerading as literal values. */
282
+ export interface OptionChanges {
283
+ /** Optional one-row batch containing only options to set. */
284
+ set_values?: Uint8Array | null;
285
+ /** Options whose stored overrides should be removed. */
286
+ reset_names: string[];
287
+ }
288
+ /** Fields of `OptionChanges` that have a protocol default. */
289
+ export type OptionChangesDefaultedField = "set_values" | "reset_names";
290
+ /** `OptionChanges` with every field that has a protocol default optional. */
291
+ export type OptionChangesInit = Omit<OptionChanges, OptionChangesDefaultedField> & Partial<Pick<OptionChanges, OptionChangesDefaultedField>>;
292
+ /** Build a complete `OptionChanges`, filling the protocol defaults, in wire order. */
293
+ export declare function buildOptionChanges(init: OptionChangesInit): OptionChanges;
294
+ export declare const encodeOptionChanges: (v: OptionChanges) => Uint8Array;
295
+ export declare const decodeOptionChanges: (b: Uint8Array) => OptionChanges;
296
+ /** Fields of `OptionState` that have a protocol default. */
297
+ export type OptionStateDefaultedField = "explicit_names";
298
+ /** `OptionState` with every field that has a protocol default optional. */
299
+ export type OptionStateInit = Omit<OptionState, OptionStateDefaultedField> & Partial<Pick<OptionState, OptionStateDefaultedField>>;
300
+ /** Build a complete `OptionState`, filling the protocol defaults, in wire order. */
301
+ export declare function buildOptionState(init: OptionStateInit): OptionState;
302
+ export declare const encodeOptionState: (v: OptionState) => Uint8Array;
303
+ export declare const decodeOptionState: (b: Uint8Array) => OptionState;
304
+ /** AND-of-OR groups of raw column paths required by a table scan. A group is satisfied when a present filter path is a component prefix of at least one member. Filtering `["a"]` satisfies `["a", "b"]`; filtering `["a.b"]` does not. An empty outer list means no requirements; an empty group is invalid. These are column-presence requirements, not a proof that a predicate was enforced remotely or that it restricts any rows. */
305
+ export interface RequiredFilterPaths {
306
+ /** Ordered AND groups, each containing one or more OR alternatives. */
307
+ groups: string[][][];
308
+ }
309
+ /** Fields of `RequiredFilterPaths` that have a protocol default. */
310
+ export type RequiredFilterPathsDefaultedField = "groups";
311
+ /** `RequiredFilterPaths` with every field that has a protocol default optional. */
312
+ export type RequiredFilterPathsInit = Omit<RequiredFilterPaths, RequiredFilterPathsDefaultedField> & Partial<Pick<RequiredFilterPaths, RequiredFilterPathsDefaultedField>>;
313
+ /** Build a complete `RequiredFilterPaths`, filling the protocol defaults, in wire order. */
314
+ export declare function buildRequiredFilterPaths(init: RequiredFilterPathsInit): RequiredFilterPaths;
315
+ export declare const encodeRequiredFilterPaths: (v: RequiredFilterPaths) => Uint8Array;
316
+ export declare const decodeRequiredFilterPaths: (b: Uint8Array) => RequiredFilterPaths;
3
317
  /** Fields of `CatalogAttachResult` that have a protocol default. */
4
- export type CatalogAttachResultDefaultedField = "attach_opaque_data_required" | "default_schema" | "settings" | "secret_types" | "attach_catalogs" | "comment" | "tags" | "supports_column_statistics" | "global_functions" | "global_function_prefix" | "supports_catalog_contents";
318
+ export type CatalogAttachResultDefaultedField = "attach_opaque_data_required" | "default_schema" | "settings" | "secret_types" | "attach_catalogs" | "comment" | "tags" | "supports_column_statistics" | "global_functions" | "global_function_prefix" | "supports_catalog_contents" | "catalog_capabilities" | "selected_capabilities" | "query_pushdown";
5
319
  /** `CatalogAttachResult` with every field that has a protocol default optional. */
6
320
  export type CatalogAttachResultInit = Omit<CatalogAttachResult, CatalogAttachResultDefaultedField> & Partial<Pick<CatalogAttachResult, CatalogAttachResultDefaultedField>>;
7
321
  /** Build a complete `CatalogAttachResult`, filling the protocol defaults, in wire order. */