@wavehouse/chtypes 0.5.2 → 1.0.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 (195) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +34 -38
  3. package/dist/abi1/buildinfo.d.ts +40 -0
  4. package/dist/abi1/buildinfo.d.ts.map +1 -0
  5. package/dist/abi1/buildinfo.js +83 -0
  6. package/dist/abi1/buildinfo.js.map +1 -0
  7. package/dist/abi1/calls.gen.d.ts +55 -0
  8. package/dist/abi1/calls.gen.d.ts.map +1 -0
  9. package/dist/abi1/calls.gen.js +110 -0
  10. package/dist/abi1/calls.gen.js.map +1 -0
  11. package/dist/abi1/decls.gen.d.ts +115 -0
  12. package/dist/abi1/decls.gen.d.ts.map +1 -0
  13. package/dist/abi1/decls.gen.js +1613 -0
  14. package/dist/abi1/decls.gen.js.map +1 -0
  15. package/dist/abi1/errmap.gen.d.ts +18 -0
  16. package/dist/abi1/errmap.gen.d.ts.map +1 -0
  17. package/dist/abi1/errmap.gen.js +66 -0
  18. package/dist/abi1/errmap.gen.js.map +1 -0
  19. package/dist/abi1/errors.d.ts +107 -0
  20. package/dist/abi1/errors.d.ts.map +1 -0
  21. package/dist/abi1/errors.js +134 -0
  22. package/dist/abi1/errors.js.map +1 -0
  23. package/dist/abi1/handles.d.ts +31 -0
  24. package/dist/abi1/handles.d.ts.map +1 -0
  25. package/dist/abi1/handles.js +76 -0
  26. package/dist/abi1/handles.js.map +1 -0
  27. package/dist/abi1/index.d.ts +17 -0
  28. package/dist/abi1/index.d.ts.map +1 -0
  29. package/dist/abi1/index.js +17 -0
  30. package/dist/abi1/index.js.map +1 -0
  31. package/dist/abi1/libc.d.ts +54 -0
  32. package/dist/abi1/libc.d.ts.map +1 -0
  33. package/dist/abi1/libc.gen.d.ts +12 -0
  34. package/dist/abi1/libc.gen.d.ts.map +1 -0
  35. package/dist/abi1/libc.gen.js +75 -0
  36. package/dist/abi1/libc.gen.js.map +1 -0
  37. package/dist/abi1/libc.js +109 -0
  38. package/dist/abi1/libc.js.map +1 -0
  39. package/dist/abi1/loader.d.ts +99 -0
  40. package/dist/abi1/loader.d.ts.map +1 -0
  41. package/dist/abi1/loader.js +261 -0
  42. package/dist/abi1/loader.js.map +1 -0
  43. package/dist/abi1/raw.d.ts +104 -0
  44. package/dist/abi1/raw.d.ts.map +1 -0
  45. package/dist/abi1/raw.js +296 -0
  46. package/dist/abi1/raw.js.map +1 -0
  47. package/dist/abi1/strictjson.d.ts +19 -0
  48. package/dist/abi1/strictjson.d.ts.map +1 -0
  49. package/dist/abi1/strictjson.js +78 -0
  50. package/dist/abi1/strictjson.js.map +1 -0
  51. package/dist/abi1/vocab.gen.d.ts +169 -0
  52. package/dist/abi1/vocab.gen.d.ts.map +1 -0
  53. package/dist/abi1/vocab.gen.js +306 -0
  54. package/dist/abi1/vocab.gen.js.map +1 -0
  55. package/dist/cli.d.ts +25 -26
  56. package/dist/cli.d.ts.map +1 -1
  57. package/dist/cli.js +206 -218
  58. package/dist/cli.js.map +1 -1
  59. package/dist/documents.d.ts +195 -0
  60. package/dist/documents.d.ts.map +1 -0
  61. package/dist/documents.js +389 -0
  62. package/dist/documents.js.map +1 -0
  63. package/dist/env.d.ts +16 -0
  64. package/dist/env.d.ts.map +1 -0
  65. package/dist/env.js +57 -0
  66. package/dist/env.js.map +1 -0
  67. package/dist/index.d.ts +19 -24
  68. package/dist/index.d.ts.map +1 -1
  69. package/dist/index.js +17 -23
  70. package/dist/index.js.map +1 -1
  71. package/dist/json.d.ts +11 -89
  72. package/dist/json.d.ts.map +1 -1
  73. package/dist/json.js +16 -180
  74. package/dist/json.js.map +1 -1
  75. package/dist/library.d.ts +53 -309
  76. package/dist/library.d.ts.map +1 -1
  77. package/dist/library.js +77 -315
  78. package/dist/library.js.map +1 -1
  79. package/dist/ocifetch/constants.gen.d.ts +84 -0
  80. package/dist/ocifetch/constants.gen.d.ts.map +1 -0
  81. package/dist/ocifetch/constants.gen.js +92 -0
  82. package/dist/ocifetch/constants.gen.js.map +1 -0
  83. package/dist/ocifetch/dsse.d.ts +114 -0
  84. package/dist/ocifetch/dsse.d.ts.map +1 -0
  85. package/dist/ocifetch/dsse.js +331 -0
  86. package/dist/ocifetch/dsse.js.map +1 -0
  87. package/dist/ocifetch/ensure.d.ts +65 -0
  88. package/dist/ocifetch/ensure.d.ts.map +1 -0
  89. package/dist/ocifetch/ensure.js +775 -0
  90. package/dist/ocifetch/ensure.js.map +1 -0
  91. package/dist/ocifetch/errors.d.ts +92 -0
  92. package/dist/ocifetch/errors.d.ts.map +1 -0
  93. package/dist/ocifetch/errors.js +101 -0
  94. package/dist/ocifetch/errors.js.map +1 -0
  95. package/dist/ocifetch/goldens.d.ts +44 -0
  96. package/dist/ocifetch/goldens.d.ts.map +1 -0
  97. package/dist/ocifetch/goldens.js +62 -0
  98. package/dist/ocifetch/goldens.js.map +1 -0
  99. package/dist/ocifetch/http.d.ts +124 -0
  100. package/dist/ocifetch/http.d.ts.map +1 -0
  101. package/dist/ocifetch/http.js +549 -0
  102. package/dist/ocifetch/http.js.map +1 -0
  103. package/dist/ocifetch/index.d.ts +17 -0
  104. package/dist/ocifetch/index.d.ts.map +1 -0
  105. package/dist/ocifetch/index.js +14 -0
  106. package/dist/ocifetch/index.js.map +1 -0
  107. package/dist/ocifetch/layout.d.ts +126 -0
  108. package/dist/ocifetch/layout.d.ts.map +1 -0
  109. package/dist/ocifetch/layout.js +375 -0
  110. package/dist/ocifetch/layout.js.map +1 -0
  111. package/dist/ocifetch/localverify.d.ts +43 -0
  112. package/dist/ocifetch/localverify.d.ts.map +1 -0
  113. package/dist/ocifetch/localverify.js +164 -0
  114. package/dist/ocifetch/localverify.js.map +1 -0
  115. package/dist/ocifetch/lock.d.ts +39 -0
  116. package/dist/ocifetch/lock.d.ts.map +1 -0
  117. package/dist/ocifetch/lock.js +140 -0
  118. package/dist/ocifetch/lock.js.map +1 -0
  119. package/dist/ocifetch/oci.d.ts +100 -0
  120. package/dist/ocifetch/oci.d.ts.map +1 -0
  121. package/dist/ocifetch/oci.js +323 -0
  122. package/dist/ocifetch/oci.js.map +1 -0
  123. package/dist/ocifetch/referrers.d.ts +55 -0
  124. package/dist/ocifetch/referrers.d.ts.map +1 -0
  125. package/dist/ocifetch/referrers.js +132 -0
  126. package/dist/ocifetch/referrers.js.map +1 -0
  127. package/dist/ocifetch/types.d.ts +167 -0
  128. package/dist/ocifetch/types.d.ts.map +1 -0
  129. package/dist/ocifetch/types.js +88 -0
  130. package/dist/ocifetch/types.js.map +1 -0
  131. package/dist/ocifetch/unpack.d.ts +55 -0
  132. package/dist/ocifetch/unpack.d.ts.map +1 -0
  133. package/dist/ocifetch/unpack.js +205 -0
  134. package/dist/ocifetch/unpack.js.map +1 -0
  135. package/dist/registry.d.ts +38 -387
  136. package/dist/registry.d.ts.map +1 -1
  137. package/dist/registry.js +94 -819
  138. package/dist/registry.js.map +1 -1
  139. package/dist/schema.d.ts +77 -588
  140. package/dist/schema.d.ts.map +1 -1
  141. package/dist/schema.js +87 -549
  142. package/dist/schema.js.map +1 -1
  143. package/dist/settings.d.ts +27 -36
  144. package/dist/settings.d.ts.map +1 -1
  145. package/dist/settings.js +75 -25
  146. package/dist/settings.js.map +1 -1
  147. package/dist/setup.d.ts +37 -0
  148. package/dist/setup.d.ts.map +1 -0
  149. package/dist/setup.js +60 -0
  150. package/dist/setup.js.map +1 -0
  151. package/dist/tar.d.ts +27 -11
  152. package/dist/tar.d.ts.map +1 -1
  153. package/dist/tar.js +54 -32
  154. package/dist/tar.js.map +1 -1
  155. package/package.json +2 -2
  156. package/dist/discover.d.ts +0 -142
  157. package/dist/discover.d.ts.map +0 -1
  158. package/dist/discover.js +0 -288
  159. package/dist/discover.js.map +0 -1
  160. package/dist/error-codes.d.ts +0 -80
  161. package/dist/error-codes.d.ts.map +0 -1
  162. package/dist/error-codes.js +0 -139
  163. package/dist/error-codes.js.map +0 -1
  164. package/dist/errors.d.ts +0 -284
  165. package/dist/errors.d.ts.map +0 -1
  166. package/dist/errors.js +0 -321
  167. package/dist/errors.js.map +0 -1
  168. package/dist/fetch.d.ts +0 -382
  169. package/dist/fetch.d.ts.map +0 -1
  170. package/dist/fetch.js +0 -1498
  171. package/dist/fetch.js.map +0 -1
  172. package/dist/ffi.d.ts +0 -410
  173. package/dist/ffi.d.ts.map +0 -1
  174. package/dist/ffi.js +0 -1154
  175. package/dist/ffi.js.map +0 -1
  176. package/dist/format.d.ts +0 -128
  177. package/dist/format.d.ts.map +0 -1
  178. package/dist/format.js +0 -132
  179. package/dist/format.js.map +0 -1
  180. package/dist/numeric.d.ts +0 -20
  181. package/dist/numeric.d.ts.map +0 -1
  182. package/dist/numeric.js +0 -107
  183. package/dist/numeric.js.map +0 -1
  184. package/dist/paths.d.ts +0 -55
  185. package/dist/paths.d.ts.map +0 -1
  186. package/dist/paths.js +0 -87
  187. package/dist/paths.js.map +0 -1
  188. package/dist/results.d.ts +0 -495
  189. package/dist/results.d.ts.map +0 -1
  190. package/dist/results.js +0 -406
  191. package/dist/results.js.map +0 -1
  192. package/dist/transform.d.ts +0 -73
  193. package/dist/transform.d.ts.map +0 -1
  194. package/dist/transform.js +0 -533
  195. package/dist/transform.js.map +0 -1
@@ -0,0 +1,1613 @@
1
+ /* GENERATED by scripts/abi-v1/gen.py from spec/abi-v1/abi.json (CHS_ABI_FINGERPRINT sha256:856e5cb7543db291b4db716662bf6e487b2258973b959bbf5d58b4bd46d73285) — DO NOT EDIT */
2
+ /*
3
+ * The ABI description as DATA: every described symbol's name, its parameter and return
4
+ * shape, and the chs_status enum, both directions. See this emitter's module docstring
5
+ * (scripts/abi-v1/emit/ts.py) for why this file carries no ffi-rs declare() calls: those
6
+ * live in the hand-written ts/src/abi1/raw.ts, which is driven entirely by this data and
7
+ * therefore never hand-spells a chs_* name of its own.
8
+ *
9
+ * SYMBOL.<NAME> is the canonical way hand code refers to a described function by name
10
+ * without ever writing the literal `chs_` prefix itself: `rawCall(raw, SYMBOL.BUF_FREE, ...)`.
11
+ * CAMEL_NAMES maps the same chs_* name to the key ts/src/abi1/raw.ts's define() table uses.
12
+ */
13
+ /** Every described function's shape, keyed by its chs_* name. */
14
+ export const FUNCTION_SPECS = {
15
+ "chs_abi_revision": {
16
+ "cls": "tombstone",
17
+ "mayReturn": [],
18
+ "params": [],
19
+ "returns": {
20
+ "borrows": null,
21
+ "constant": "CHS_ABI_REVISION_TOMBSTONE",
22
+ "content": null,
23
+ "kind": "scalar",
24
+ "nullable": false,
25
+ "owned": false,
26
+ "type": "int"
27
+ },
28
+ "thread": "any"
29
+ },
30
+ "chs_abi_version": {
31
+ "cls": "handshake",
32
+ "mayReturn": [],
33
+ "params": [],
34
+ "returns": {
35
+ "borrows": null,
36
+ "constant": null,
37
+ "content": null,
38
+ "kind": "scalar",
39
+ "nullable": false,
40
+ "owned": false,
41
+ "type": "int32"
42
+ },
43
+ "thread": "any"
44
+ },
45
+ "chs_back_quote": {
46
+ "cls": "api",
47
+ "mayReturn": [
48
+ "CHS_OK",
49
+ "CHS_INVALID_ARGUMENT",
50
+ "CHS_INTERNAL"
51
+ ],
52
+ "params": [
53
+ {
54
+ "content": "name",
55
+ "kind": "bytes_in",
56
+ "name": "name",
57
+ "nullable": false,
58
+ "type": null
59
+ },
60
+ {
61
+ "content": "sql",
62
+ "kind": "out_handle",
63
+ "name": "out",
64
+ "nullable": false,
65
+ "type": "chs_buf"
66
+ },
67
+ {
68
+ "content": null,
69
+ "kind": "out_error",
70
+ "name": "err",
71
+ "nullable": true,
72
+ "type": "chs_error"
73
+ }
74
+ ],
75
+ "returns": {
76
+ "borrows": null,
77
+ "constant": null,
78
+ "content": null,
79
+ "kind": "status",
80
+ "nullable": false,
81
+ "owned": false,
82
+ "type": "chs_status"
83
+ },
84
+ "thread": "any"
85
+ },
86
+ "chs_back_quote_if_needed": {
87
+ "cls": "api",
88
+ "mayReturn": [
89
+ "CHS_OK",
90
+ "CHS_INVALID_ARGUMENT",
91
+ "CHS_INTERNAL"
92
+ ],
93
+ "params": [
94
+ {
95
+ "content": "name",
96
+ "kind": "bytes_in",
97
+ "name": "name",
98
+ "nullable": false,
99
+ "type": null
100
+ },
101
+ {
102
+ "content": "sql",
103
+ "kind": "out_handle",
104
+ "name": "out",
105
+ "nullable": false,
106
+ "type": "chs_buf"
107
+ },
108
+ {
109
+ "content": null,
110
+ "kind": "out_error",
111
+ "name": "err",
112
+ "nullable": true,
113
+ "type": "chs_error"
114
+ }
115
+ ],
116
+ "returns": {
117
+ "borrows": null,
118
+ "constant": null,
119
+ "content": null,
120
+ "kind": "status",
121
+ "nullable": false,
122
+ "owned": false,
123
+ "type": "chs_status"
124
+ },
125
+ "thread": "any"
126
+ },
127
+ "chs_block_create": {
128
+ "cls": "api",
129
+ "mayReturn": [
130
+ "CHS_OK",
131
+ "CHS_REJECTED",
132
+ "CHS_DECLINED",
133
+ "CHS_INVALID_ARGUMENT",
134
+ "CHS_INTERNAL"
135
+ ],
136
+ "params": [
137
+ {
138
+ "content": null,
139
+ "kind": "handle",
140
+ "name": "schema",
141
+ "nullable": false,
142
+ "type": "chs_schema"
143
+ },
144
+ {
145
+ "content": null,
146
+ "kind": "enum",
147
+ "name": "format",
148
+ "nullable": false,
149
+ "type": "chs_format"
150
+ },
151
+ {
152
+ "content": "bytes",
153
+ "kind": "bytes_in",
154
+ "name": "body",
155
+ "nullable": false,
156
+ "type": null
157
+ },
158
+ {
159
+ "content": "json_object_string_values",
160
+ "kind": "bytes_in",
161
+ "name": "settings",
162
+ "nullable": false,
163
+ "type": null
164
+ },
165
+ {
166
+ "content": "json_array_names",
167
+ "kind": "bytes_in",
168
+ "name": "columns",
169
+ "nullable": false,
170
+ "type": null
171
+ },
172
+ {
173
+ "content": null,
174
+ "kind": "out_handle",
175
+ "name": "out",
176
+ "nullable": false,
177
+ "type": "chs_block"
178
+ },
179
+ {
180
+ "content": null,
181
+ "kind": "out_error",
182
+ "name": "err",
183
+ "nullable": true,
184
+ "type": "chs_error"
185
+ }
186
+ ],
187
+ "returns": {
188
+ "borrows": null,
189
+ "constant": null,
190
+ "content": null,
191
+ "kind": "status",
192
+ "nullable": false,
193
+ "owned": false,
194
+ "type": "chs_status"
195
+ },
196
+ "thread": "shared"
197
+ },
198
+ "chs_block_free": {
199
+ "cls": "api",
200
+ "mayReturn": [],
201
+ "params": [
202
+ {
203
+ "content": null,
204
+ "kind": "handle",
205
+ "name": "block",
206
+ "nullable": true,
207
+ "type": "chs_block"
208
+ }
209
+ ],
210
+ "returns": {
211
+ "borrows": null,
212
+ "constant": null,
213
+ "content": null,
214
+ "kind": "void",
215
+ "nullable": false,
216
+ "owned": false,
217
+ "type": null
218
+ },
219
+ "thread": "handle_serial"
220
+ },
221
+ "chs_buf_data": {
222
+ "cls": "api",
223
+ "mayReturn": [],
224
+ "params": [
225
+ {
226
+ "content": null,
227
+ "kind": "handle",
228
+ "name": "buf",
229
+ "nullable": false,
230
+ "type": "chs_buf"
231
+ }
232
+ ],
233
+ "returns": {
234
+ "borrows": "buf",
235
+ "constant": null,
236
+ "content": null,
237
+ "kind": "scalar",
238
+ "nullable": false,
239
+ "owned": false,
240
+ "type": "u8ptr_const"
241
+ },
242
+ "thread": "shared"
243
+ },
244
+ "chs_buf_free": {
245
+ "cls": "api",
246
+ "mayReturn": [],
247
+ "params": [
248
+ {
249
+ "content": null,
250
+ "kind": "handle",
251
+ "name": "buf",
252
+ "nullable": true,
253
+ "type": "chs_buf"
254
+ }
255
+ ],
256
+ "returns": {
257
+ "borrows": null,
258
+ "constant": null,
259
+ "content": null,
260
+ "kind": "void",
261
+ "nullable": false,
262
+ "owned": false,
263
+ "type": null
264
+ },
265
+ "thread": "handle_serial"
266
+ },
267
+ "chs_buf_len": {
268
+ "cls": "api",
269
+ "mayReturn": [],
270
+ "params": [
271
+ {
272
+ "content": null,
273
+ "kind": "handle",
274
+ "name": "buf",
275
+ "nullable": false,
276
+ "type": "chs_buf"
277
+ }
278
+ ],
279
+ "returns": {
280
+ "borrows": null,
281
+ "constant": null,
282
+ "content": null,
283
+ "kind": "scalar",
284
+ "nullable": false,
285
+ "owned": false,
286
+ "type": "size"
287
+ },
288
+ "thread": "shared"
289
+ },
290
+ "chs_build_info": {
291
+ "cls": "handshake",
292
+ "mayReturn": [],
293
+ "params": [],
294
+ "returns": {
295
+ "borrows": null,
296
+ "constant": null,
297
+ "content": null,
298
+ "kind": "scalar",
299
+ "nullable": false,
300
+ "owned": false,
301
+ "type": "cstr_static"
302
+ },
303
+ "thread": "any"
304
+ },
305
+ "chs_clickhouse_version": {
306
+ "cls": "handshake",
307
+ "mayReturn": [],
308
+ "params": [],
309
+ "returns": {
310
+ "borrows": null,
311
+ "constant": null,
312
+ "content": null,
313
+ "kind": "scalar",
314
+ "nullable": false,
315
+ "owned": false,
316
+ "type": "cstr_static"
317
+ },
318
+ "thread": "any"
319
+ },
320
+ "chs_discover_columns": {
321
+ "cls": "api",
322
+ "mayReturn": [
323
+ "CHS_OK",
324
+ "CHS_REJECTED",
325
+ "CHS_DECLINED",
326
+ "CHS_INVALID_ARGUMENT",
327
+ "CHS_INTERNAL"
328
+ ],
329
+ "params": [
330
+ {
331
+ "content": "bytes",
332
+ "kind": "bytes_in",
333
+ "name": "rows",
334
+ "nullable": false,
335
+ "type": null
336
+ },
337
+ {
338
+ "content": "document:discovery",
339
+ "kind": "out_handle",
340
+ "name": "out",
341
+ "nullable": false,
342
+ "type": "chs_buf"
343
+ },
344
+ {
345
+ "content": null,
346
+ "kind": "out_error",
347
+ "name": "err",
348
+ "nullable": true,
349
+ "type": "chs_error"
350
+ }
351
+ ],
352
+ "returns": {
353
+ "borrows": null,
354
+ "constant": null,
355
+ "content": null,
356
+ "kind": "status",
357
+ "nullable": false,
358
+ "owned": false,
359
+ "type": "chs_status"
360
+ },
361
+ "thread": "any"
362
+ },
363
+ "chs_discover_query": {
364
+ "cls": "api",
365
+ "mayReturn": [
366
+ "CHS_OK",
367
+ "CHS_INVALID_ARGUMENT",
368
+ "CHS_INTERNAL"
369
+ ],
370
+ "params": [
371
+ {
372
+ "content": "sql",
373
+ "kind": "out_handle",
374
+ "name": "out",
375
+ "nullable": false,
376
+ "type": "chs_buf"
377
+ },
378
+ {
379
+ "content": null,
380
+ "kind": "out_error",
381
+ "name": "err",
382
+ "nullable": true,
383
+ "type": "chs_error"
384
+ }
385
+ ],
386
+ "returns": {
387
+ "borrows": null,
388
+ "constant": null,
389
+ "content": null,
390
+ "kind": "status",
391
+ "nullable": false,
392
+ "owned": false,
393
+ "type": "chs_status"
394
+ },
395
+ "thread": "any"
396
+ },
397
+ "chs_error_ch_code": {
398
+ "cls": "api",
399
+ "mayReturn": [],
400
+ "params": [
401
+ {
402
+ "content": null,
403
+ "kind": "handle",
404
+ "name": "error",
405
+ "nullable": false,
406
+ "type": "chs_error"
407
+ }
408
+ ],
409
+ "returns": {
410
+ "borrows": null,
411
+ "constant": null,
412
+ "content": null,
413
+ "kind": "scalar",
414
+ "nullable": false,
415
+ "owned": false,
416
+ "type": "int32"
417
+ },
418
+ "thread": "shared"
419
+ },
420
+ "chs_error_ch_name": {
421
+ "cls": "api",
422
+ "mayReturn": [],
423
+ "params": [
424
+ {
425
+ "content": null,
426
+ "kind": "handle",
427
+ "name": "error",
428
+ "nullable": false,
429
+ "type": "chs_error"
430
+ }
431
+ ],
432
+ "returns": {
433
+ "borrows": null,
434
+ "constant": null,
435
+ "content": "ascii",
436
+ "kind": "handle",
437
+ "nullable": true,
438
+ "owned": true,
439
+ "type": "chs_buf"
440
+ },
441
+ "thread": "shared"
442
+ },
443
+ "chs_error_codes": {
444
+ "cls": "api",
445
+ "mayReturn": [
446
+ "CHS_OK",
447
+ "CHS_INVALID_ARGUMENT",
448
+ "CHS_INTERNAL"
449
+ ],
450
+ "params": [
451
+ {
452
+ "content": "document:error_code_table",
453
+ "kind": "out_handle",
454
+ "name": "out",
455
+ "nullable": false,
456
+ "type": "chs_buf"
457
+ },
458
+ {
459
+ "content": null,
460
+ "kind": "out_error",
461
+ "name": "err",
462
+ "nullable": true,
463
+ "type": "chs_error"
464
+ }
465
+ ],
466
+ "returns": {
467
+ "borrows": null,
468
+ "constant": null,
469
+ "content": null,
470
+ "kind": "status",
471
+ "nullable": false,
472
+ "owned": false,
473
+ "type": "chs_status"
474
+ },
475
+ "thread": "any"
476
+ },
477
+ "chs_error_column": {
478
+ "cls": "api",
479
+ "mayReturn": [],
480
+ "params": [
481
+ {
482
+ "content": null,
483
+ "kind": "handle",
484
+ "name": "error",
485
+ "nullable": false,
486
+ "type": "chs_error"
487
+ }
488
+ ],
489
+ "returns": {
490
+ "borrows": null,
491
+ "constant": null,
492
+ "content": "name",
493
+ "kind": "handle",
494
+ "nullable": true,
495
+ "owned": true,
496
+ "type": "chs_buf"
497
+ },
498
+ "thread": "shared"
499
+ },
500
+ "chs_error_free": {
501
+ "cls": "api",
502
+ "mayReturn": [],
503
+ "params": [
504
+ {
505
+ "content": null,
506
+ "kind": "handle",
507
+ "name": "error",
508
+ "nullable": true,
509
+ "type": "chs_error"
510
+ }
511
+ ],
512
+ "returns": {
513
+ "borrows": null,
514
+ "constant": null,
515
+ "content": null,
516
+ "kind": "void",
517
+ "nullable": false,
518
+ "owned": false,
519
+ "type": null
520
+ },
521
+ "thread": "handle_serial"
522
+ },
523
+ "chs_error_message": {
524
+ "cls": "api",
525
+ "mayReturn": [],
526
+ "params": [
527
+ {
528
+ "content": null,
529
+ "kind": "handle",
530
+ "name": "error",
531
+ "nullable": false,
532
+ "type": "chs_error"
533
+ }
534
+ ],
535
+ "returns": {
536
+ "borrows": null,
537
+ "constant": null,
538
+ "content": "message",
539
+ "kind": "handle",
540
+ "nullable": true,
541
+ "owned": true,
542
+ "type": "chs_buf"
543
+ },
544
+ "thread": "shared"
545
+ },
546
+ "chs_error_status": {
547
+ "cls": "api",
548
+ "mayReturn": [],
549
+ "params": [
550
+ {
551
+ "content": null,
552
+ "kind": "handle",
553
+ "name": "error",
554
+ "nullable": false,
555
+ "type": "chs_error"
556
+ }
557
+ ],
558
+ "returns": {
559
+ "borrows": null,
560
+ "constant": null,
561
+ "content": null,
562
+ "kind": "enum",
563
+ "nullable": false,
564
+ "owned": false,
565
+ "type": "chs_status"
566
+ },
567
+ "thread": "shared"
568
+ },
569
+ "chs_filter_create": {
570
+ "cls": "api",
571
+ "mayReturn": [
572
+ "CHS_OK",
573
+ "CHS_REJECTED",
574
+ "CHS_DECLINED",
575
+ "CHS_INVALID_ARGUMENT",
576
+ "CHS_INTERNAL"
577
+ ],
578
+ "params": [
579
+ {
580
+ "content": null,
581
+ "kind": "handle",
582
+ "name": "schema",
583
+ "nullable": false,
584
+ "type": "chs_schema"
585
+ },
586
+ {
587
+ "content": "sql",
588
+ "kind": "bytes_in",
589
+ "name": "expr",
590
+ "nullable": false,
591
+ "type": null
592
+ },
593
+ {
594
+ "content": "json_object_string_values",
595
+ "kind": "bytes_in",
596
+ "name": "query_params",
597
+ "nullable": false,
598
+ "type": null
599
+ },
600
+ {
601
+ "content": "json_object_string_values",
602
+ "kind": "bytes_in",
603
+ "name": "settings",
604
+ "nullable": false,
605
+ "type": null
606
+ },
607
+ {
608
+ "content": null,
609
+ "kind": "out_handle",
610
+ "name": "out",
611
+ "nullable": false,
612
+ "type": "chs_filter"
613
+ },
614
+ {
615
+ "content": null,
616
+ "kind": "out_error",
617
+ "name": "err",
618
+ "nullable": true,
619
+ "type": "chs_error"
620
+ }
621
+ ],
622
+ "returns": {
623
+ "borrows": null,
624
+ "constant": null,
625
+ "content": null,
626
+ "kind": "status",
627
+ "nullable": false,
628
+ "owned": false,
629
+ "type": "chs_status"
630
+ },
631
+ "thread": "shared"
632
+ },
633
+ "chs_filter_eval_block": {
634
+ "cls": "api",
635
+ "mayReturn": [
636
+ "CHS_OK",
637
+ "CHS_REJECTED",
638
+ "CHS_DECLINED",
639
+ "CHS_INVALID_ARGUMENT",
640
+ "CHS_INTERNAL"
641
+ ],
642
+ "params": [
643
+ {
644
+ "content": null,
645
+ "kind": "handle",
646
+ "name": "filter",
647
+ "nullable": false,
648
+ "type": "chs_filter"
649
+ },
650
+ {
651
+ "content": null,
652
+ "kind": "handle",
653
+ "name": "block",
654
+ "nullable": false,
655
+ "type": "chs_block"
656
+ },
657
+ {
658
+ "content": "document:filter_result",
659
+ "kind": "out_handle",
660
+ "name": "out",
661
+ "nullable": false,
662
+ "type": "chs_buf"
663
+ },
664
+ {
665
+ "content": null,
666
+ "kind": "out_error",
667
+ "name": "err",
668
+ "nullable": true,
669
+ "type": "chs_error"
670
+ }
671
+ ],
672
+ "returns": {
673
+ "borrows": null,
674
+ "constant": null,
675
+ "content": null,
676
+ "kind": "status",
677
+ "nullable": false,
678
+ "owned": false,
679
+ "type": "chs_status"
680
+ },
681
+ "thread": "shared"
682
+ },
683
+ "chs_filter_eval_body": {
684
+ "cls": "api",
685
+ "mayReturn": [
686
+ "CHS_OK",
687
+ "CHS_REJECTED",
688
+ "CHS_DECLINED",
689
+ "CHS_INVALID_ARGUMENT",
690
+ "CHS_INTERNAL"
691
+ ],
692
+ "params": [
693
+ {
694
+ "content": null,
695
+ "kind": "handle",
696
+ "name": "filter",
697
+ "nullable": false,
698
+ "type": "chs_filter"
699
+ },
700
+ {
701
+ "content": null,
702
+ "kind": "enum",
703
+ "name": "format",
704
+ "nullable": false,
705
+ "type": "chs_format"
706
+ },
707
+ {
708
+ "content": "bytes",
709
+ "kind": "bytes_in",
710
+ "name": "body",
711
+ "nullable": false,
712
+ "type": null
713
+ },
714
+ {
715
+ "content": "json_object_string_values",
716
+ "kind": "bytes_in",
717
+ "name": "settings",
718
+ "nullable": false,
719
+ "type": null
720
+ },
721
+ {
722
+ "content": "document:filter_result",
723
+ "kind": "out_handle",
724
+ "name": "out",
725
+ "nullable": false,
726
+ "type": "chs_buf"
727
+ },
728
+ {
729
+ "content": null,
730
+ "kind": "out_error",
731
+ "name": "err",
732
+ "nullable": true,
733
+ "type": "chs_error"
734
+ }
735
+ ],
736
+ "returns": {
737
+ "borrows": null,
738
+ "constant": null,
739
+ "content": null,
740
+ "kind": "status",
741
+ "nullable": false,
742
+ "owned": false,
743
+ "type": "chs_status"
744
+ },
745
+ "thread": "shared"
746
+ },
747
+ "chs_filter_free": {
748
+ "cls": "api",
749
+ "mayReturn": [],
750
+ "params": [
751
+ {
752
+ "content": null,
753
+ "kind": "handle",
754
+ "name": "filter",
755
+ "nullable": true,
756
+ "type": "chs_filter"
757
+ }
758
+ ],
759
+ "returns": {
760
+ "borrows": null,
761
+ "constant": null,
762
+ "content": null,
763
+ "kind": "void",
764
+ "nullable": false,
765
+ "owned": false,
766
+ "type": null
767
+ },
768
+ "thread": "handle_serial"
769
+ },
770
+ "chs_function_flags": {
771
+ "cls": "tooling",
772
+ "mayReturn": [
773
+ "CHS_OK",
774
+ "CHS_INVALID_ARGUMENT",
775
+ "CHS_INTERNAL"
776
+ ],
777
+ "params": [
778
+ {
779
+ "content": "ascii",
780
+ "kind": "out_handle",
781
+ "name": "out",
782
+ "nullable": false,
783
+ "type": "chs_buf"
784
+ },
785
+ {
786
+ "content": null,
787
+ "kind": "out_error",
788
+ "name": "err",
789
+ "nullable": true,
790
+ "type": "chs_error"
791
+ }
792
+ ],
793
+ "returns": {
794
+ "borrows": null,
795
+ "constant": null,
796
+ "content": null,
797
+ "kind": "status",
798
+ "nullable": false,
799
+ "owned": false,
800
+ "type": "chs_status"
801
+ },
802
+ "thread": "process_serial"
803
+ },
804
+ "chs_initialize": {
805
+ "cls": "api",
806
+ "mayReturn": [
807
+ "CHS_OK",
808
+ "CHS_REJECTED",
809
+ "CHS_INVALID_ARGUMENT",
810
+ "CHS_INTERNAL"
811
+ ],
812
+ "params": [
813
+ {
814
+ "content": "timezone",
815
+ "kind": "bytes_in",
816
+ "name": "timezone",
817
+ "nullable": false,
818
+ "type": null
819
+ },
820
+ {
821
+ "content": null,
822
+ "kind": "out_error",
823
+ "name": "err",
824
+ "nullable": true,
825
+ "type": "chs_error"
826
+ }
827
+ ],
828
+ "returns": {
829
+ "borrows": null,
830
+ "constant": null,
831
+ "content": null,
832
+ "kind": "status",
833
+ "nullable": false,
834
+ "owned": false,
835
+ "type": "chs_status"
836
+ },
837
+ "thread": "process_once"
838
+ },
839
+ "chs_live_handles": {
840
+ "cls": "api",
841
+ "mayReturn": [
842
+ "CHS_OK",
843
+ "CHS_INVALID_ARGUMENT",
844
+ "CHS_INTERNAL"
845
+ ],
846
+ "params": [
847
+ {
848
+ "content": "document:live_handles",
849
+ "kind": "out_handle",
850
+ "name": "out",
851
+ "nullable": false,
852
+ "type": "chs_buf"
853
+ },
854
+ {
855
+ "content": null,
856
+ "kind": "out_error",
857
+ "name": "err",
858
+ "nullable": true,
859
+ "type": "chs_error"
860
+ }
861
+ ],
862
+ "returns": {
863
+ "borrows": null,
864
+ "constant": null,
865
+ "content": null,
866
+ "kind": "status",
867
+ "nullable": false,
868
+ "owned": false,
869
+ "type": "chs_status"
870
+ },
871
+ "thread": "any"
872
+ },
873
+ "chs_preview_batch": {
874
+ "cls": "api",
875
+ "mayReturn": [
876
+ "CHS_OK",
877
+ "CHS_REJECTED",
878
+ "CHS_DECLINED",
879
+ "CHS_INVALID_ARGUMENT",
880
+ "CHS_INTERNAL"
881
+ ],
882
+ "params": [
883
+ {
884
+ "content": null,
885
+ "kind": "handle",
886
+ "name": "schema",
887
+ "nullable": false,
888
+ "type": "chs_schema"
889
+ },
890
+ {
891
+ "content": null,
892
+ "kind": "enum",
893
+ "name": "format",
894
+ "nullable": false,
895
+ "type": "chs_format"
896
+ },
897
+ {
898
+ "content": "bytes",
899
+ "kind": "bytes_in",
900
+ "name": "body",
901
+ "nullable": false,
902
+ "type": null
903
+ },
904
+ {
905
+ "content": "json_object_string_values",
906
+ "kind": "bytes_in",
907
+ "name": "settings",
908
+ "nullable": false,
909
+ "type": null
910
+ },
911
+ {
912
+ "content": "json_array_names",
913
+ "kind": "bytes_in",
914
+ "name": "columns",
915
+ "nullable": false,
916
+ "type": null
917
+ },
918
+ {
919
+ "content": null,
920
+ "kind": "handle",
921
+ "name": "filter",
922
+ "nullable": true,
923
+ "type": "chs_filter"
924
+ },
925
+ {
926
+ "content": null,
927
+ "kind": "scalar",
928
+ "name": "export_format",
929
+ "nullable": false,
930
+ "type": "int32"
931
+ },
932
+ {
933
+ "content": null,
934
+ "kind": "scalar",
935
+ "name": "doc_flags",
936
+ "nullable": false,
937
+ "type": "uint32"
938
+ },
939
+ {
940
+ "content": "document:batch",
941
+ "kind": "out_handle",
942
+ "name": "out",
943
+ "nullable": false,
944
+ "type": "chs_buf"
945
+ },
946
+ {
947
+ "content": "bytes",
948
+ "kind": "out_handle",
949
+ "name": "out_export",
950
+ "nullable": true,
951
+ "type": "chs_buf"
952
+ },
953
+ {
954
+ "content": null,
955
+ "kind": "out_error",
956
+ "name": "err",
957
+ "nullable": true,
958
+ "type": "chs_error"
959
+ }
960
+ ],
961
+ "returns": {
962
+ "borrows": null,
963
+ "constant": null,
964
+ "content": null,
965
+ "kind": "status",
966
+ "nullable": false,
967
+ "owned": false,
968
+ "type": "chs_status"
969
+ },
970
+ "thread": "shared"
971
+ },
972
+ "chs_preview_row": {
973
+ "cls": "api",
974
+ "mayReturn": [
975
+ "CHS_OK",
976
+ "CHS_REJECTED",
977
+ "CHS_DECLINED",
978
+ "CHS_INVALID_ARGUMENT",
979
+ "CHS_INTERNAL"
980
+ ],
981
+ "params": [
982
+ {
983
+ "content": null,
984
+ "kind": "handle",
985
+ "name": "schema",
986
+ "nullable": false,
987
+ "type": "chs_schema"
988
+ },
989
+ {
990
+ "content": null,
991
+ "kind": "enum",
992
+ "name": "format",
993
+ "nullable": false,
994
+ "type": "chs_format"
995
+ },
996
+ {
997
+ "content": "bytes",
998
+ "kind": "bytes_in",
999
+ "name": "body",
1000
+ "nullable": false,
1001
+ "type": null
1002
+ },
1003
+ {
1004
+ "content": "json_object_string_values",
1005
+ "kind": "bytes_in",
1006
+ "name": "settings",
1007
+ "nullable": false,
1008
+ "type": null
1009
+ },
1010
+ {
1011
+ "content": "json_array_names",
1012
+ "kind": "bytes_in",
1013
+ "name": "columns",
1014
+ "nullable": false,
1015
+ "type": null
1016
+ },
1017
+ {
1018
+ "content": "document:row",
1019
+ "kind": "out_handle",
1020
+ "name": "out",
1021
+ "nullable": false,
1022
+ "type": "chs_buf"
1023
+ },
1024
+ {
1025
+ "content": null,
1026
+ "kind": "out_error",
1027
+ "name": "err",
1028
+ "nullable": true,
1029
+ "type": "chs_error"
1030
+ }
1031
+ ],
1032
+ "returns": {
1033
+ "borrows": null,
1034
+ "constant": null,
1035
+ "content": null,
1036
+ "kind": "status",
1037
+ "nullable": false,
1038
+ "owned": false,
1039
+ "type": "chs_status"
1040
+ },
1041
+ "thread": "shared"
1042
+ },
1043
+ "chs_quote_string": {
1044
+ "cls": "api",
1045
+ "mayReturn": [
1046
+ "CHS_OK",
1047
+ "CHS_INVALID_ARGUMENT",
1048
+ "CHS_INTERNAL"
1049
+ ],
1050
+ "params": [
1051
+ {
1052
+ "content": "bytes",
1053
+ "kind": "bytes_in",
1054
+ "name": "text",
1055
+ "nullable": false,
1056
+ "type": null
1057
+ },
1058
+ {
1059
+ "content": "sql",
1060
+ "kind": "out_handle",
1061
+ "name": "out",
1062
+ "nullable": false,
1063
+ "type": "chs_buf"
1064
+ },
1065
+ {
1066
+ "content": null,
1067
+ "kind": "out_error",
1068
+ "name": "err",
1069
+ "nullable": true,
1070
+ "type": "chs_error"
1071
+ }
1072
+ ],
1073
+ "returns": {
1074
+ "borrows": null,
1075
+ "constant": null,
1076
+ "content": null,
1077
+ "kind": "status",
1078
+ "nullable": false,
1079
+ "owned": false,
1080
+ "type": "chs_status"
1081
+ },
1082
+ "thread": "any"
1083
+ },
1084
+ "chs_reference_type": {
1085
+ "cls": "tooling",
1086
+ "mayReturn": [
1087
+ "CHS_OK",
1088
+ "CHS_REJECTED",
1089
+ "CHS_DECLINED",
1090
+ "CHS_INVALID_ARGUMENT",
1091
+ "CHS_INTERNAL"
1092
+ ],
1093
+ "params": [
1094
+ {
1095
+ "content": "sql",
1096
+ "kind": "bytes_in",
1097
+ "name": "type_expr",
1098
+ "nullable": false,
1099
+ "type": null
1100
+ },
1101
+ {
1102
+ "content": "sql",
1103
+ "kind": "out_handle",
1104
+ "name": "out",
1105
+ "nullable": false,
1106
+ "type": "chs_buf"
1107
+ },
1108
+ {
1109
+ "content": null,
1110
+ "kind": "out_error",
1111
+ "name": "err",
1112
+ "nullable": true,
1113
+ "type": "chs_error"
1114
+ }
1115
+ ],
1116
+ "returns": {
1117
+ "borrows": null,
1118
+ "constant": null,
1119
+ "content": null,
1120
+ "kind": "status",
1121
+ "nullable": false,
1122
+ "owned": false,
1123
+ "type": "chs_status"
1124
+ },
1125
+ "thread": "process_serial"
1126
+ },
1127
+ "chs_registered_families": {
1128
+ "cls": "tooling",
1129
+ "mayReturn": [
1130
+ "CHS_OK",
1131
+ "CHS_INVALID_ARGUMENT",
1132
+ "CHS_INTERNAL"
1133
+ ],
1134
+ "params": [
1135
+ {
1136
+ "content": "ascii",
1137
+ "kind": "out_handle",
1138
+ "name": "out",
1139
+ "nullable": false,
1140
+ "type": "chs_buf"
1141
+ },
1142
+ {
1143
+ "content": null,
1144
+ "kind": "out_error",
1145
+ "name": "err",
1146
+ "nullable": true,
1147
+ "type": "chs_error"
1148
+ }
1149
+ ],
1150
+ "returns": {
1151
+ "borrows": null,
1152
+ "constant": null,
1153
+ "content": null,
1154
+ "kind": "status",
1155
+ "nullable": false,
1156
+ "owned": false,
1157
+ "type": "chs_status"
1158
+ },
1159
+ "thread": "process_serial"
1160
+ },
1161
+ "chs_schema_create": {
1162
+ "cls": "api",
1163
+ "mayReturn": [
1164
+ "CHS_OK",
1165
+ "CHS_REJECTED",
1166
+ "CHS_DECLINED",
1167
+ "CHS_INVALID_ARGUMENT",
1168
+ "CHS_INTERNAL"
1169
+ ],
1170
+ "params": [
1171
+ {
1172
+ "content": "sql",
1173
+ "kind": "bytes_in",
1174
+ "name": "create_table",
1175
+ "nullable": false,
1176
+ "type": null
1177
+ },
1178
+ {
1179
+ "content": "json_object_string_values",
1180
+ "kind": "bytes_in",
1181
+ "name": "settings",
1182
+ "nullable": false,
1183
+ "type": null
1184
+ },
1185
+ {
1186
+ "content": null,
1187
+ "kind": "out_handle",
1188
+ "name": "out",
1189
+ "nullable": false,
1190
+ "type": "chs_schema"
1191
+ },
1192
+ {
1193
+ "content": null,
1194
+ "kind": "out_error",
1195
+ "name": "err",
1196
+ "nullable": true,
1197
+ "type": "chs_error"
1198
+ }
1199
+ ],
1200
+ "returns": {
1201
+ "borrows": null,
1202
+ "constant": null,
1203
+ "content": null,
1204
+ "kind": "status",
1205
+ "nullable": false,
1206
+ "owned": false,
1207
+ "type": "chs_status"
1208
+ },
1209
+ "thread": "any"
1210
+ },
1211
+ "chs_schema_describe": {
1212
+ "cls": "api",
1213
+ "mayReturn": [
1214
+ "CHS_OK",
1215
+ "CHS_INVALID_ARGUMENT",
1216
+ "CHS_INTERNAL"
1217
+ ],
1218
+ "params": [
1219
+ {
1220
+ "content": null,
1221
+ "kind": "handle",
1222
+ "name": "schema",
1223
+ "nullable": false,
1224
+ "type": "chs_schema"
1225
+ },
1226
+ {
1227
+ "content": "document:schema_description",
1228
+ "kind": "out_handle",
1229
+ "name": "out",
1230
+ "nullable": false,
1231
+ "type": "chs_buf"
1232
+ },
1233
+ {
1234
+ "content": null,
1235
+ "kind": "out_error",
1236
+ "name": "err",
1237
+ "nullable": true,
1238
+ "type": "chs_error"
1239
+ }
1240
+ ],
1241
+ "returns": {
1242
+ "borrows": null,
1243
+ "constant": null,
1244
+ "content": null,
1245
+ "kind": "status",
1246
+ "nullable": false,
1247
+ "owned": false,
1248
+ "type": "chs_status"
1249
+ },
1250
+ "thread": "shared"
1251
+ },
1252
+ "chs_schema_free": {
1253
+ "cls": "api",
1254
+ "mayReturn": [],
1255
+ "params": [
1256
+ {
1257
+ "content": null,
1258
+ "kind": "handle",
1259
+ "name": "schema",
1260
+ "nullable": true,
1261
+ "type": "chs_schema"
1262
+ }
1263
+ ],
1264
+ "returns": {
1265
+ "borrows": null,
1266
+ "constant": null,
1267
+ "content": null,
1268
+ "kind": "void",
1269
+ "nullable": false,
1270
+ "owned": false,
1271
+ "type": null
1272
+ },
1273
+ "thread": "handle_serial"
1274
+ },
1275
+ "chs_set_defaults": {
1276
+ "cls": "api",
1277
+ "mayReturn": [
1278
+ "CHS_OK",
1279
+ "CHS_REJECTED",
1280
+ "CHS_DECLINED",
1281
+ "CHS_INVALID_ARGUMENT",
1282
+ "CHS_INTERNAL"
1283
+ ],
1284
+ "params": [
1285
+ {
1286
+ "content": "json_object_string_values",
1287
+ "kind": "bytes_in",
1288
+ "name": "settings",
1289
+ "nullable": false,
1290
+ "type": null
1291
+ },
1292
+ {
1293
+ "content": null,
1294
+ "kind": "out_error",
1295
+ "name": "err",
1296
+ "nullable": true,
1297
+ "type": "chs_error"
1298
+ }
1299
+ ],
1300
+ "returns": {
1301
+ "borrows": null,
1302
+ "constant": null,
1303
+ "content": null,
1304
+ "kind": "status",
1305
+ "nullable": false,
1306
+ "owned": false,
1307
+ "type": "chs_status"
1308
+ },
1309
+ "thread": "process_serial"
1310
+ },
1311
+ "chs_shutdown": {
1312
+ "cls": "api",
1313
+ "mayReturn": [],
1314
+ "params": [],
1315
+ "returns": {
1316
+ "borrows": null,
1317
+ "constant": null,
1318
+ "content": null,
1319
+ "kind": "void",
1320
+ "nullable": false,
1321
+ "owned": false,
1322
+ "type": null
1323
+ },
1324
+ "thread": "process_serial"
1325
+ },
1326
+ "chs_type_validate": {
1327
+ "cls": "api",
1328
+ "mayReturn": [
1329
+ "CHS_OK",
1330
+ "CHS_REJECTED",
1331
+ "CHS_DECLINED",
1332
+ "CHS_INVALID_ARGUMENT",
1333
+ "CHS_INTERNAL"
1334
+ ],
1335
+ "params": [
1336
+ {
1337
+ "content": "sql",
1338
+ "kind": "bytes_in",
1339
+ "name": "type_expr",
1340
+ "nullable": false,
1341
+ "type": null
1342
+ },
1343
+ {
1344
+ "content": "sql",
1345
+ "kind": "out_handle",
1346
+ "name": "out",
1347
+ "nullable": false,
1348
+ "type": "chs_buf"
1349
+ },
1350
+ {
1351
+ "content": null,
1352
+ "kind": "out_error",
1353
+ "name": "err",
1354
+ "nullable": true,
1355
+ "type": "chs_error"
1356
+ }
1357
+ ],
1358
+ "returns": {
1359
+ "borrows": null,
1360
+ "constant": null,
1361
+ "content": null,
1362
+ "kind": "status",
1363
+ "nullable": false,
1364
+ "owned": false,
1365
+ "type": "chs_status"
1366
+ },
1367
+ "thread": "any"
1368
+ }
1369
+ };
1370
+ /** chs_* name -> the key ts/src/abi1/raw.ts's ffi-rs define() table uses for it. */
1371
+ export const CAMEL_NAMES = {
1372
+ "chs_abi_revision": "abiRevision",
1373
+ "chs_abi_version": "abiVersion",
1374
+ "chs_back_quote": "backQuote",
1375
+ "chs_back_quote_if_needed": "backQuoteIfNeeded",
1376
+ "chs_block_create": "blockCreate",
1377
+ "chs_block_free": "blockFree",
1378
+ "chs_buf_data": "bufData",
1379
+ "chs_buf_free": "bufFree",
1380
+ "chs_buf_len": "bufLen",
1381
+ "chs_build_info": "buildInfo",
1382
+ "chs_clickhouse_version": "clickhouseVersion",
1383
+ "chs_discover_columns": "discoverColumns",
1384
+ "chs_discover_query": "discoverQuery",
1385
+ "chs_error_ch_code": "errorChCode",
1386
+ "chs_error_ch_name": "errorChName",
1387
+ "chs_error_codes": "errorCodes",
1388
+ "chs_error_column": "errorColumn",
1389
+ "chs_error_free": "errorFree",
1390
+ "chs_error_message": "errorMessage",
1391
+ "chs_error_status": "errorStatus",
1392
+ "chs_filter_create": "filterCreate",
1393
+ "chs_filter_eval_block": "filterEvalBlock",
1394
+ "chs_filter_eval_body": "filterEvalBody",
1395
+ "chs_filter_free": "filterFree",
1396
+ "chs_function_flags": "functionFlags",
1397
+ "chs_initialize": "initialize",
1398
+ "chs_live_handles": "liveHandles",
1399
+ "chs_preview_batch": "previewBatch",
1400
+ "chs_preview_row": "previewRow",
1401
+ "chs_quote_string": "quoteString",
1402
+ "chs_reference_type": "referenceType",
1403
+ "chs_registered_families": "registeredFamilies",
1404
+ "chs_schema_create": "schemaCreate",
1405
+ "chs_schema_describe": "schemaDescribe",
1406
+ "chs_schema_free": "schemaFree",
1407
+ "chs_set_defaults": "setDefaults",
1408
+ "chs_shutdown": "shutdown",
1409
+ "chs_type_validate": "typeValidate"
1410
+ };
1411
+ /**
1412
+ * Every described chs_* name, reachable WITHOUT spelling it: hand code writes
1413
+ * `SYMBOL.BUF_FREE`, never the string `"chs_buf_free"`. Generated so the one place that
1414
+ * spells a chs_* name is this file, machine-checked against spec/abi-v1/abi.json.
1415
+ *
1416
+ * Deliberately NOT typed `Record<string, string>`: each key's value is its own string
1417
+ * LITERAL type, so a known key (`SYMBOL.BUF_FREE`) is never widened to `string | undefined`
1418
+ * by `noUncheckedIndexedAccess` the way an index signature would be. Nothing here is ever
1419
+ * looked up with a variable key — `CAMEL_NAMES` and `FUNCTION_SPECS` are, and keep their
1420
+ * `Record` types for that reason.
1421
+ */
1422
+ export const SYMBOL = {
1423
+ "ABI_REVISION": "chs_abi_revision",
1424
+ "ABI_VERSION": "chs_abi_version",
1425
+ "BACK_QUOTE": "chs_back_quote",
1426
+ "BACK_QUOTE_IF_NEEDED": "chs_back_quote_if_needed",
1427
+ "BLOCK_CREATE": "chs_block_create",
1428
+ "BLOCK_FREE": "chs_block_free",
1429
+ "BUF_DATA": "chs_buf_data",
1430
+ "BUF_FREE": "chs_buf_free",
1431
+ "BUF_LEN": "chs_buf_len",
1432
+ "BUILD_INFO": "chs_build_info",
1433
+ "CLICKHOUSE_VERSION": "chs_clickhouse_version",
1434
+ "DISCOVER_COLUMNS": "chs_discover_columns",
1435
+ "DISCOVER_QUERY": "chs_discover_query",
1436
+ "ERROR_CH_CODE": "chs_error_ch_code",
1437
+ "ERROR_CH_NAME": "chs_error_ch_name",
1438
+ "ERROR_CODES": "chs_error_codes",
1439
+ "ERROR_COLUMN": "chs_error_column",
1440
+ "ERROR_FREE": "chs_error_free",
1441
+ "ERROR_MESSAGE": "chs_error_message",
1442
+ "ERROR_STATUS": "chs_error_status",
1443
+ "FILTER_CREATE": "chs_filter_create",
1444
+ "FILTER_EVAL_BLOCK": "chs_filter_eval_block",
1445
+ "FILTER_EVAL_BODY": "chs_filter_eval_body",
1446
+ "FILTER_FREE": "chs_filter_free",
1447
+ "FUNCTION_FLAGS": "chs_function_flags",
1448
+ "INITIALIZE": "chs_initialize",
1449
+ "LIVE_HANDLES": "chs_live_handles",
1450
+ "PREVIEW_BATCH": "chs_preview_batch",
1451
+ "PREVIEW_ROW": "chs_preview_row",
1452
+ "QUOTE_STRING": "chs_quote_string",
1453
+ "REFERENCE_TYPE": "chs_reference_type",
1454
+ "REGISTERED_FAMILIES": "chs_registered_families",
1455
+ "SCHEMA_CREATE": "chs_schema_create",
1456
+ "SCHEMA_DESCRIBE": "chs_schema_describe",
1457
+ "SCHEMA_FREE": "chs_schema_free",
1458
+ "SET_DEFAULTS": "chs_set_defaults",
1459
+ "SHUTDOWN": "chs_shutdown",
1460
+ "TYPE_VALIDATE": "chs_type_validate"
1461
+ };
1462
+ /** Every described handle kind: its free function (a SYMBOL.* value) and what it holds. */
1463
+ export const HANDLE_INFO = {
1464
+ "chs_block": {
1465
+ "className": "Block",
1466
+ "free": "chs_block_free",
1467
+ "holds": [
1468
+ "chs_schema"
1469
+ ]
1470
+ },
1471
+ "chs_buf": {
1472
+ "className": "Buf",
1473
+ "free": "chs_buf_free",
1474
+ "holds": []
1475
+ },
1476
+ "chs_error": {
1477
+ "className": "Error",
1478
+ "free": "chs_error_free",
1479
+ "holds": []
1480
+ },
1481
+ "chs_filter": {
1482
+ "className": "Filter",
1483
+ "free": "chs_filter_free",
1484
+ "holds": [
1485
+ "chs_schema"
1486
+ ]
1487
+ },
1488
+ "chs_schema": {
1489
+ "className": "Schema",
1490
+ "free": "chs_schema_free",
1491
+ "holds": []
1492
+ }
1493
+ };
1494
+ /** chs_status, both directions (the wire int32 and its C name). */
1495
+ export const STATUS_NAMES = {
1496
+ "0": "CHS_OK",
1497
+ "1": "CHS_REJECTED",
1498
+ "2": "CHS_DECLINED",
1499
+ "3": "CHS_INVALID_ARGUMENT",
1500
+ "4": "CHS_INTERNAL"
1501
+ };
1502
+ export const STATUS_VALUES = {
1503
+ "CHS_DECLINED": 2,
1504
+ "CHS_INTERNAL": 4,
1505
+ "CHS_INVALID_ARGUMENT": 3,
1506
+ "CHS_OK": 0,
1507
+ "CHS_REJECTED": 1
1508
+ };
1509
+ /** Every exported symbol, sorted — the loader's step 6 resolve-all sweep. */
1510
+ export const DESCRIBED_SYMBOLS = [
1511
+ "chs_abi_revision",
1512
+ "chs_abi_version",
1513
+ "chs_back_quote",
1514
+ "chs_back_quote_if_needed",
1515
+ "chs_block_create",
1516
+ "chs_block_free",
1517
+ "chs_buf_data",
1518
+ "chs_buf_free",
1519
+ "chs_buf_len",
1520
+ "chs_build_info",
1521
+ "chs_clickhouse_version",
1522
+ "chs_discover_columns",
1523
+ "chs_discover_query",
1524
+ "chs_error_ch_code",
1525
+ "chs_error_ch_name",
1526
+ "chs_error_codes",
1527
+ "chs_error_column",
1528
+ "chs_error_free",
1529
+ "chs_error_message",
1530
+ "chs_error_status",
1531
+ "chs_filter_create",
1532
+ "chs_filter_eval_block",
1533
+ "chs_filter_eval_body",
1534
+ "chs_filter_free",
1535
+ "chs_function_flags",
1536
+ "chs_initialize",
1537
+ "chs_live_handles",
1538
+ "chs_preview_batch",
1539
+ "chs_preview_row",
1540
+ "chs_quote_string",
1541
+ "chs_reference_type",
1542
+ "chs_registered_families",
1543
+ "chs_schema_create",
1544
+ "chs_schema_describe",
1545
+ "chs_schema_free",
1546
+ "chs_set_defaults",
1547
+ "chs_shutdown",
1548
+ "chs_type_validate"
1549
+ ];
1550
+ /**
1551
+ * The buf handle's own chs_* name (D2/D3's universal owned-output type), named so hand
1552
+ * code can compare `ParamSpec.type`/`ReturnSpec.type` against it without ever spelling
1553
+ * the literal itself (a literal would read as a hand-written chs_ reference to
1554
+ * scripts/abi-v1/check-no-hand-decls.py once this file's own `define(`-adjacent code also
1555
+ * names it — see ts/src/abi1/raw.ts's module comment).
1556
+ */
1557
+ export const BUF_HANDLE = 'chs_buf';
1558
+ /**
1559
+ * This binding's own compiled-in ABI identity (D1.1/§1.7's "one computation, copied
1560
+ * everywhere else" — never recomputed, byte-compared against a loaded library's
1561
+ * chs_build_info().abi_fingerprint at loader step 4).
1562
+ */
1563
+ export const ABI_VERSION = 1;
1564
+ export const ABI_FINGERPRINT = "sha256:856e5cb7543db291b4db716662bf6e487b2258973b959bbf5d58b4bd46d73285";
1565
+ /** spec/abi-v1/sdk.json's cross_check table: loader step 5's nine fields. */
1566
+ export const CROSS_CHECK = [
1567
+ {
1568
+ "buildInfo": "abi",
1569
+ "compare": "int",
1570
+ "predicate": "abi"
1571
+ },
1572
+ {
1573
+ "buildInfo": "abi_fingerprint",
1574
+ "compare": "bytes",
1575
+ "predicate": "abi_fingerprint"
1576
+ },
1577
+ {
1578
+ "buildInfo": "clickhouse_version",
1579
+ "compare": "bytes",
1580
+ "predicate": "clickhouse_version"
1581
+ },
1582
+ {
1583
+ "buildInfo": "channel",
1584
+ "compare": "bytes",
1585
+ "predicate": "channel"
1586
+ },
1587
+ {
1588
+ "buildInfo": "build",
1589
+ "compare": "bytes",
1590
+ "predicate": "build"
1591
+ },
1592
+ {
1593
+ "buildInfo": "os",
1594
+ "compare": "bytes",
1595
+ "predicate": "os"
1596
+ },
1597
+ {
1598
+ "buildInfo": "arch",
1599
+ "compare": "bytes",
1600
+ "predicate": "arch"
1601
+ },
1602
+ {
1603
+ "buildInfo": "core_commit",
1604
+ "compare": "bytes",
1605
+ "predicate": "core_commit"
1606
+ },
1607
+ {
1608
+ "buildInfo": "inputs_sha256",
1609
+ "compare": "bytes",
1610
+ "predicate": "inputs_sha256"
1611
+ }
1612
+ ];
1613
+ //# sourceMappingURL=decls.gen.js.map