@wavehouse/chtypes 2.0.0-dev.10 → 2.0.0-dev.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +2 -2
- package/dist/abi2/calls.gen.d.ts +5 -5
- package/dist/abi2/calls.gen.d.ts.map +1 -1
- package/dist/abi2/calls.gen.js +11 -11
- package/dist/abi2/calls.gen.js.map +1 -1
- package/dist/abi2/decls.gen.d.ts +2 -1
- package/dist/abi2/decls.gen.d.ts.map +1 -1
- package/dist/abi2/decls.gen.js +78 -21
- package/dist/abi2/decls.gen.js.map +1 -1
- package/dist/abi2/errmap.gen.js +1 -1
- package/dist/abi2/errors.d.ts +5 -2
- package/dist/abi2/errors.d.ts.map +1 -1
- package/dist/abi2/errors.js +4 -2
- package/dist/abi2/errors.js.map +1 -1
- package/dist/abi2/libc.gen.js +1 -1
- package/dist/abi2/loader.d.ts +4 -2
- package/dist/abi2/loader.d.ts.map +1 -1
- package/dist/abi2/raw.d.ts.map +1 -1
- package/dist/abi2/raw.js +4 -1
- package/dist/abi2/raw.js.map +1 -1
- package/dist/abi2/vocab.gen.d.ts +49 -1
- package/dist/abi2/vocab.gen.d.ts.map +1 -1
- package/dist/abi2/vocab.gen.js +81 -5
- package/dist/abi2/vocab.gen.js.map +1 -1
- package/dist/documents.d.ts +42 -9
- package/dist/documents.d.ts.map +1 -1
- package/dist/documents.js +60 -8
- package/dist/documents.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/library.d.ts.map +1 -1
- package/dist/library.js +5 -4
- package/dist/library.js.map +1 -1
- package/dist/ocifetch/ensure.d.ts.map +1 -1
- package/dist/ocifetch/ensure.js +32 -6
- package/dist/ocifetch/ensure.js.map +1 -1
- package/dist/ocifetch/layout.d.ts +10 -0
- package/dist/ocifetch/layout.d.ts.map +1 -1
- package/dist/ocifetch/layout.js +21 -2
- package/dist/ocifetch/layout.js.map +1 -1
- package/dist/ocifetch/localverify.d.ts +30 -6
- package/dist/ocifetch/localverify.d.ts.map +1 -1
- package/dist/ocifetch/localverify.js +58 -26
- package/dist/ocifetch/localverify.js.map +1 -1
- package/dist/schema.d.ts +44 -10
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +7 -7
- package/dist/schema.js.map +1 -1
- package/dist/settings.d.ts +83 -12
- package/dist/settings.d.ts.map +1 -1
- package/dist/settings.js +180 -41
- package/dist/settings.js.map +1 -1
- package/dist/setup.d.ts +3 -2
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +2 -3
- package/dist/setup.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,9 @@ The four bindings in this repository are released together and give one answer,
|
|
|
8
8
|
|
|
9
9
|
### Added
|
|
10
10
|
|
|
11
|
+
- Tests: the shared revocation-statement table (`tests/fixtures/revocation-statement/cases.json`) runs against `verifyRevocation` and `checkInstalled`: `superseded_by` must be a string (`""` = no fix), and the first verifying revocation in a listing wins. No behavior changed.
|
|
12
|
+
- `columnDefaults` is covered by unit tests (ABI v2): the exact `insert_options` JSON for a UTF-8 value, a non-UTF-8 value (`value_b64`), an empty value (sent as `""`) and two entries in order. The decode of `default_override` was already tested. The batches guide gains a usage section. No behavior changed.
|
|
13
|
+
- `CODE_DECLINED` (ABI v2, -2): the code a declined row, outcome or verdict carries, generated from the description and exported from the package, as `bindings-v1.md` section 3 promises.
|
|
11
14
|
- `registry.fetch(request): Promise<Resolved>`, the fetch-only call (#492): it resolves, fetches, verifies and installs the build a request names into the cache, as `chtypes fetch` does, and opens nothing (no library is loaded, the process setup is untouched, nothing appears in `libraries()`). It honors the registry's fetch options, its errors are the fetch codes (a refused spelling is a `UsageError`, as for `for`), and it shares one fetch with a concurrent open or `fetch` of the same request: an open that misses the cache now waits on the same fetch.
|
|
12
15
|
- `chtypes resolve <spelling> [--json] [--offline]` (#493): the version, build and platform manifest digest the spelling resolves to on every platform the registry offers, one `resolved <version> <platform> <build> <manifest>` line each in platform order (`--json`: one compact JSON array of `{platform, version, build, manifest}`), each verified exactly as a fetch verifies it, with no layer downloaded and nothing written. `--offline` answers from the cache. A refused spelling (a `v` prefix, a channel suffix) exits with the usage status.
|
|
13
16
|
- `chtypes prune [--line <line>] [--keep <n>] [--dry-run]`, and the in-use hold (#494): prune removes from the cache the installed builds of each line that newer installed builds of the same line and platform supersede, keeping the newest `n` (default 1), with their `index.json` entries and every blob no remaining build names. It never touches a system directory or another fingerprint's build, and never removes a build a live process holds: every build a registry opens or fetches is held by that process until it exits, by a shared `flock` on the entry's `verified.json` (prune takes the exclusive lock without waiting, and reports a held build `in-use`).
|
|
@@ -26,9 +29,16 @@ The four bindings in this repository are released together and give one answer,
|
|
|
26
29
|
- Build-level revocation for generation 2 (#625; `docs/guides/fetch-v1.md`, "Build-level revocation"). A build its signed revocation refuses is the new code `CHTYPES_ARTIFACT_REVOKED`, exit status 11 (`CODE_ARTIFACT_REVOKED`, `ArtifactRevokedError`), whose message names the advisory and whose `revocation` carries it for programs (`Revocation`, `Advisory`). An install reads a revocation from the trust listing it already makes and refuses before the layer; `--frozen` makes one listing, warm or cold, so a warm frozen fetch makes 1 request instead of 0 (`--frozen --offline` stays at 0); a registry open, `preload` and a fetch that finds the build installed check it at most once per build per process, one attempt per base, no backoff and one 5 s deadline (`checkInstalled`); `--lock` and `update` refuse a revoked build on every platform they pin. A verified revocation is stored in the build's cache entry (`revocation.json`) and refuses it from then on with no request, offline too; `chtypes verify` reports it and exits 11. A revocation that does not verify is ignored with one warning; a status that cannot be read is one warning, or with `FetchOptions.requireRevocationCheck` (`--require-revocation-check`) the transport's error. `FetchOptions.allowRevoked` (`--allow-revoked`) uses a revoked build for one call, with a warning, never for a lock or an update. A `410` whose body's `errors[0].detail.revoked` is an object is `CHTYPES_ARTIFACT_REVOKED`; every other `410` stays `CHTYPES_SOURCE_RETIRED`. The v1 contract is unchanged.
|
|
27
30
|
- The public server handle (ABI v2): `lib.newServer(profile)` describes one ClickHouse server (`ServerProfile`: `timezone`, `settings`, `macros`), `compileTable(createTable, { server })` compiles a table on it, and `Server` has `close()` and `[Symbol.dispose]()`. A schema description carries `server` (`SchemaServer`) and `replicated` (`SchemaReplicated`: `zookeeperPath`, `replicaName`), each `undefined` when absent. Absent `macros` is not `{}`: absent means the server's macros are unknown, present (even `{}`) is its complete set. The binding validates nothing in the profile. Follows the Go binding.
|
|
28
31
|
- A 2.0.0-dev SDK prefers the newest build of its own fingerprint (#511). A version request resolves `<tag>--fp-<fingerprint>` first, the alias the staging dev registry serves beside every dev tag, with the binding's own generated ABI fingerprint, and the tag itself only when every base answers the alias 404; any other failure of the alias request is that failure, with no fallback, and an alias whose index lacks the platform is `CHTYPES_ARTIFACT_UNPUBLISHED`. The dev channel's cache lookups (the installed-build lookup a registry open makes first, the offline answer, and the monotonic rule of a fetch) now see only records whose signed `abi_fingerprint` is the SDK's own, so a newer build of another fingerprint, installed by another dev SDK in the shared cache, is never returned or kept over this one's own, and is never removed or rewritten. So a dev build of a newer fingerprint no longer strands an older dev SDK until its consumers upgrade. Trust is unchanged (the signed predicate and the load checks decide), a listing never shows an alias, nothing records one, `list` and `where` are unchanged, and there is no option: both steps are the dev channel's alone, and the v1 contract and every production channel never take them. The rule is `docs/guides/fetch-v1.md` section 3, and the `dev-alias-*`, `resolve-installed-dev-alias-*` and `list-tags-dev-alias` conformance cases hold all four bindings to it.
|
|
32
|
+
- `CallError.reason` (ABI v2): the error's catalog id, read through `chs_error_reason` beside the other `chs_error_*` fields and passed through verbatim (ASCII, empty if none), on all four call classes and on `CallErrorFields`. A misuse the binding detects itself carries the empty string.
|
|
33
|
+
- Spec batch 2, the options documents (ABI v2; moves the dev fingerprint): `insertableColumns`, `columnDefaults` (a list of `ColumnDefault`), `verdictBasis` (`VerdictBasis.Input`, `VerdictBasis.Export`) and `deferDefaults` (`DeferDefaults.None`, `DeferDefaults.Server`) build `insert_options` for `schema.row`, `schema.rows`, `schema.parseBlock` and `filter.rows`; `paramEncoding` (`ParamEncoding.Escaped`, `ParamEncoding.Raw`) builds `filter_options` for `compileFilter`; `posture` (`Posture.Create`, `Posture.Load`) builds `schema_options` for `compileTable`. `insertOptionsExtra`, `filterOptionsExtra` and `schemaOptionsExtra` pass a member the binding has no name for through as JSON text, so the library, which refuses an unknown key (rule r1), is the only judge. A document with no member set is not sent. `columns` now applies to `filter.rows` too (`chs_filter_eval_body` takes the column list).
|
|
34
|
+
- Docs: `docs/guides/batches.md` shows how a `column_defaults` value is read, in the body format's own field encoding (CSV quoting, TSV escapes, a JSON string or number), with a value that doesn't read refused at the call before any body byte.
|
|
35
|
+
- Spec batch 2, a value that is not UTF-8 (ABI v2): a settings value, a query-parameter value, a `setup` default and a server profile's settings value may be a `Uint8Array` (`SettingValue` is `string | Uint8Array`), and bytes that are not valid UTF-8 are sent as `{"b64": ...}` (the content `json_object_byte_values`), where the binding used to refuse the value; so may `sessionTimezone`. `SchemaServer.settings` decodes the same form back to a `Buffer`.
|
|
36
|
+
- Spec batch 2, the decline and refusal members (ABI v2): `RowResult`, `BatchResult` and `FilterResult` carry `reason` (the catalog id, present where the code is -2, `CHS_CODE_DECLINED`), `refusedAt` (a `RefusalSite`: `Call`, `BodyRead`, `Row`, `BodyStep`) and `refusedRow`; `RowResult.verdictReason`; `FilterRowError.reason`; `BatchResult.exportColumns` and `BatchResult.exportDeclinedReason`. All are `undefined` when the document carries none.
|
|
37
|
+
- Spec batch 2, the schema description (ABI v2): `SchemaDescription.posture`, and `Column.defaultSupport` (a `DefaultSupport`), `Column.defaultSupportReason` and `Column.reads`, reserved members a build reports when it implements them. `Source.DefaultDeferred`, `Source.DefaultOverride` (stored) and `DeclinedTier.ServerRefuses` join the vocabularies.
|
|
29
38
|
|
|
30
39
|
### Changed
|
|
31
40
|
|
|
41
|
+
- **Breaking (vs the 2.0.0-dev releases):** the batch preview's default `docFlags` is now 0 (the lean result): `schema.rows` without `docFlags` returns no per-value documents. Pass `docFlags: DocFlags.All` explicitly to get every column's per-value documents.
|
|
32
42
|
- `chtypes list` and the tag listing name the published lines only (two-part, numeric order), as Go's always did; `chtypes resolve <line>` prints the exact version a line resolves to (#613).
|
|
33
43
|
- `chtypes fetch` of a refused spelling (a `v` prefix, a `-lts`/`-stable` suffix) exits with the usage status, 2, as Go's does, and prints the refusal alone; it exited 1 and printed a stack trace.
|
|
34
44
|
- **Breaking: the public surface the parity gate carried as exceptions is resolved, before the v2 lock (#500).** A convenience exists in every binding or in none (`docs/reference/bindings-v1.md` §1, principle 2). Migration, old → new:
|
|
@@ -74,13 +84,21 @@ The four bindings in this repository are released together and give one answer,
|
|
|
74
84
|
- **Enforcement gate lifted** for `26.8` on `darwin-arm64`.
|
|
75
85
|
- **Enforcement gate lifted** for `26.9` on `darwin-arm64`.
|
|
76
86
|
- `docs/limitations.md` is re-checked against artifact build `20261012.142240` (v2-dev.13), the library half measured on that build: functions that need a server, in a column expression, and a body the server may read serially or in parallel under a non-zero error budget are listed under "Declined by design"; the known divergence for a column expression that calls a function needing a server is retired, since that build declines those schemas (on 26.8 and 26.9 the `AI*` and `ai*` functions compile, as the page says); and the `lossy` raw-NUL TSV gap is marked fixed on that build and still present in the 1.0 libraries. `docs/guides/filters.md` gains a section on subcolumn filters and a JSON value typed by its batch.
|
|
87
|
+
- **Breaking (ABI v2 dev): `BatchResult.spans` is `(Span | null)[]`**, one entry per `rows` entry and index-aligned with it: `row_spans` carries `null` for a row the export did not carry (a skipped row, or a row a filter cut). It was the spans of the exported rows only. Code that reads `span.off` from every entry throws a `TypeError` on a `null` entry: check each entry before reading it. The type system flags this only with `strictNullChecks`.
|
|
88
|
+
- **Breaking (ABI v2 dev): `AtMergeEntry.row` is `AtMergeEntry.partRow`**, the document's `part_row`.
|
|
89
|
+
- **Breaking (ABI v2 dev): `Settings` values and `sessionTimezone` take `string | Uint8Array`**, and a string holding a lone surrogate (no bytes) is still refused as a `UsageError`; the refusal of a value that is not UTF-8 is gone for a `Uint8Array`, while a key that is not valid UTF-8 is still refused.
|
|
90
|
+
- A document's `code` can be -2 for a row, batch, filter result or verdict this build declined, and every decline names its `reason`; a `Source` the description does not list reads the description's fallback (`skipped`), not stored.
|
|
91
|
+
- The ABI v2 spec now states the INSERT-time settings layering the library already uses, since artifact build `20261021.025722` (#632): at the INSERT, the schema's own settings (the compile profile) reach only the parse, minus a type gate, and every expression the INSERT evaluates and its limits (`max_partitions_per_insert_block` among them) run under the call's own settings, the server profile and the setup defaults only. A setting your INSERT session carries for those goes in the call's settings or the server profile (`docs/guides/settings.md`). No API change.
|
|
77
92
|
|
|
78
93
|
### Removed
|
|
79
94
|
|
|
80
95
|
- `SchemaServer.filterDeclinedSettings` (a breaking change inside v2 dev, #588): the server member no longer carries the list. Read `SchemaDescription.filterDeclinedSettings`, whose `server`-layer entries are the profile's.
|
|
96
|
+
- **`RowResult.unsupportedSettings`** (ABI v2 dev): the row document no longer carries `unsupported_settings`; the batch's and the filter result's lists stay.
|
|
81
97
|
|
|
82
98
|
### Fixed
|
|
83
99
|
|
|
100
|
+
- An offline lookup no longer reads every cached blob once per pre-seeded entry (#690). For each `index.json` entry with no record, the lookup read every blob of the layout, layers included, to find its signature, so entries it could not install cost entries × cache bytes on every lookup. The signature referrers are now read once per lookup, and never a layer, because a blob larger than `limits.manifest_bytes` cannot be a manifest; an entry whose record is in the system directory it came from is no longer re-verified; and a signature referrer must name the platform manifest as its `subject`, as in the other three bindings (it was matched on the signed layer digest alone). The build that is installed is verified exactly as before: its manifest against its descriptor, its whole layer against its digest, and its signature, platform, request and fingerprint. A unit test counts the blob reads of one lookup that installs nothing and holds them to at most two per blob and five per entry, with no layer read, at 2 and at 20 entries alike.
|
|
101
|
+
- Docs: `docs/guides/settings.md` names the ABI v2 admission time budget `chtypes_default_eval_cpu_nanos`, the evaluating thread's CPU time. Its examples used the 1.x name `chtypes_default_eval_wall_nanos`, which v2 refuses with `CHS_INVALID_ARGUMENT`.
|
|
84
102
|
- A response body cut off part way (shorter than its Content-Length, a reset, a TLS close) is retried like a 5xx and, once the retry table is spent, is `CHTYPES_SOURCE_UNREACHABLE`; only an oversize body is `CHTYPES_ARTIFACT_CORRUPT`, and it is never retried (#641). Go and TypeScript already behaved this way; the fetch spec now states it. The rule is `docs/guides/fetch-v1.md` section 7, and the new `body-cut-off-then-ok` and `body-cut-off-exhausted` conformance cases hold every binding to it.
|
|
85
103
|
- A chunked response body cut off before its terminating zero-length chunk is held to the same rule (#644): the new `body-cut-off-chunked-then-ok` and `body-cut-off-chunked-exhausted` conformance cases cut one on the layer blob GET, and this binding already retried it and ended as `CHTYPES_SOURCE_UNREACHABLE` once the retry table was spent. No behavior change; the case now holds it.
|
|
86
104
|
- A settings or query-parameter key or value that is not valid UTF-8 is refused as a usage error; it was silently replaced with U+FFFD, so the library saw a different value. A string holding a lone surrogate was sent as a `\udXXX` escape; the same inputs are refused now, for the per-call zone, the setup defaults and the server profile too. Valid UTF-8 serializes as before.
|
package/README.md
CHANGED
|
@@ -23,14 +23,14 @@ The dev builds are published under npm's `dev` dist-tag, so a plain `pnpm add @w
|
|
|
23
23
|
## Quickstart
|
|
24
24
|
|
|
25
25
|
```ts
|
|
26
|
-
import { Format, Registry, setup } from '@wavehouse/chtypes';
|
|
26
|
+
import { DocFlags, Format, Registry, setup } from '@wavehouse/chtypes';
|
|
27
27
|
|
|
28
28
|
setup({ timezone: 'UTC' }); // optional; once, before the first open
|
|
29
29
|
const registry = await Registry.open({ autofetch: true });
|
|
30
30
|
const lib = await registry.for('26.8'); // two, three or four parts; never a nearest match
|
|
31
31
|
const schema = lib.compileTable('CREATE TABLE t (x UInt8, ts DateTime DEFAULT now()) ENGINE = Memory');
|
|
32
32
|
|
|
33
|
-
const batch = schema.rows(Format.JSONEachRow, Buffer.from('{"x":256}\n'));
|
|
33
|
+
const batch = schema.rows(Format.JSONEachRow, Buffer.from('{"x":256}\n'), { docFlags: DocFlags.All });
|
|
34
34
|
const row = batch.rows[0];
|
|
35
35
|
console.log(batch.outcome); // accepted
|
|
36
36
|
console.log(row?.values[0]?.text.toString()); // 0 what would actually be stored
|
package/dist/abi2/calls.gen.d.ts
CHANGED
|
@@ -38,18 +38,18 @@ export declare class Calls {
|
|
|
38
38
|
/** The generated call wrapper for chs_schema_describe. */
|
|
39
39
|
schemaDescribe(schema: SchemaHandle): Buffer;
|
|
40
40
|
/** The generated call wrapper for chs_preview_row. */
|
|
41
|
-
previewRow(schema: SchemaHandle, format: number, body: Uint8Array, settings: Uint8Array, columns: Uint8Array): Buffer;
|
|
41
|
+
previewRow(schema: SchemaHandle, format: number, body: Uint8Array, settings: Uint8Array, columns: Uint8Array, options: Uint8Array): Buffer;
|
|
42
42
|
/** The generated call wrapper for chs_preview_batch. */
|
|
43
|
-
previewBatch(schema: SchemaHandle, format: number, body: Uint8Array, settings: Uint8Array, columns: Uint8Array, filter: FilterHandle | null, exportFormat: number, docFlags: number): {
|
|
43
|
+
previewBatch(schema: SchemaHandle, format: number, body: Uint8Array, settings: Uint8Array, columns: Uint8Array, filter: FilterHandle | null, exportFormat: number, docFlags: number, options: Uint8Array): {
|
|
44
44
|
readonly out: Buffer;
|
|
45
45
|
readonly outExport: Buffer;
|
|
46
46
|
};
|
|
47
47
|
/** The generated call wrapper for chs_filter_create. */
|
|
48
|
-
filterCreate(schema: SchemaHandle, expr: Uint8Array, queryParams: Uint8Array, settings: Uint8Array): FilterHandle;
|
|
48
|
+
filterCreate(schema: SchemaHandle, expr: Uint8Array, queryParams: Uint8Array, settings: Uint8Array, options: Uint8Array): FilterHandle;
|
|
49
49
|
/** The generated call wrapper for chs_filter_eval_body. */
|
|
50
|
-
filterEvalBody(filter: FilterHandle, format: number, body: Uint8Array, settings: Uint8Array): Buffer;
|
|
50
|
+
filterEvalBody(filter: FilterHandle, format: number, body: Uint8Array, settings: Uint8Array, columns: Uint8Array, options: Uint8Array): Buffer;
|
|
51
51
|
/** The generated call wrapper for chs_block_create. */
|
|
52
|
-
blockCreate(schema: SchemaHandle, format: number, body: Uint8Array, settings: Uint8Array, columns: Uint8Array): BlockHandle;
|
|
52
|
+
blockCreate(schema: SchemaHandle, format: number, body: Uint8Array, settings: Uint8Array, columns: Uint8Array, options: Uint8Array): BlockHandle;
|
|
53
53
|
/** The generated call wrapper for chs_filter_eval_block. */
|
|
54
54
|
filterEvalBlock(filter: FilterHandle, block: BlockHandle): Buffer;
|
|
55
55
|
/** The generated call wrapper for chs_discover_query. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calls.gen.d.ts","sourceRoot":"","sources":["../../src/abi2/calls.gen.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,UAAU,EAAc,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAwD,KAAK,MAAM,EAAW,MAAM,UAAU,CAAC;AAEtG,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC;AACxE,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC;AACxE,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC;AACxE,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAAE,CAAC;AAEtE,qBAAa,KAAK;IAChB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB,YAAY,GAAG,EAAE,MAAM,EAEtB;IAED,uDAAuD;IACvD,WAAW,IAAI,MAAM,CAGpB;IAED,sDAAsD;IACtD,UAAU,IAAI,MAAM,CAGnB;IAED,qDAAqD;IACrD,UAAU,CAAC,QAAQ,EAAE,UAAU,GAAG,IAAI,CAErC;IAED,uDAAuD;IACvD,WAAW,CAAC,QAAQ,EAAE,UAAU,GAAG,IAA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ec/abi-v2/abi.json (CHS_ABI_FINGERPRINT sha256:
|
|
1
|
+
/* GENERATED by scripts/abi-v1/gen.py --major 2 from spec/abi-v2/abi.json (CHS_ABI_FINGERPRINT sha256:d53239933966e15a3c363e631a94fbba1231d84c4300337115d3ae5377bb41c2) — DO NOT EDIT */
|
|
2
2
|
/*
|
|
3
3
|
* One typed, copy-then-free method per described call, named without the `chs_` prefix.
|
|
4
4
|
* Each marshals through the generic `rawCall`, throws the error class sdk.json's status
|
|
@@ -69,31 +69,31 @@ export class Calls {
|
|
|
69
69
|
return outs["out"];
|
|
70
70
|
}
|
|
71
71
|
/** The generated call wrapper for chs_preview_row. */
|
|
72
|
-
previewRow(schema, format, body, settings, columns) {
|
|
73
|
-
const outs = checkStatus(rawCall(this.raw, SYMBOL.PREVIEW_ROW, [schema.ptr, format, asBuffer(body), asBuffer(settings), asBuffer(columns)]));
|
|
72
|
+
previewRow(schema, format, body, settings, columns, options) {
|
|
73
|
+
const outs = checkStatus(rawCall(this.raw, SYMBOL.PREVIEW_ROW, [schema.ptr, format, asBuffer(body), asBuffer(settings), asBuffer(columns), asBuffer(options)]));
|
|
74
74
|
return outs["out"];
|
|
75
75
|
}
|
|
76
76
|
/** The generated call wrapper for chs_preview_batch. */
|
|
77
|
-
previewBatch(schema, format, body, settings, columns, filter, exportFormat, docFlags) {
|
|
78
|
-
const outs = checkStatus(rawCall(this.raw, SYMBOL.PREVIEW_BATCH, [schema.ptr, format, asBuffer(body), asBuffer(settings), asBuffer(columns), filter === null ? NULL_EXTERNAL : filter.ptr, exportFormat, docFlags]));
|
|
77
|
+
previewBatch(schema, format, body, settings, columns, filter, exportFormat, docFlags, options) {
|
|
78
|
+
const outs = checkStatus(rawCall(this.raw, SYMBOL.PREVIEW_BATCH, [schema.ptr, format, asBuffer(body), asBuffer(settings), asBuffer(columns), filter === null ? NULL_EXTERNAL : filter.ptr, exportFormat, docFlags, asBuffer(options)]));
|
|
79
79
|
return {
|
|
80
80
|
out: outs["out"],
|
|
81
81
|
outExport: outs["out_export"],
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
/** The generated call wrapper for chs_filter_create. */
|
|
85
|
-
filterCreate(schema, expr, queryParams, settings) {
|
|
86
|
-
const outs = checkStatus(rawCall(this.raw, SYMBOL.FILTER_CREATE, [schema.ptr, asBuffer(expr), asBuffer(queryParams), asBuffer(settings)]));
|
|
85
|
+
filterCreate(schema, expr, queryParams, settings, options) {
|
|
86
|
+
const outs = checkStatus(rawCall(this.raw, SYMBOL.FILTER_CREATE, [schema.ptr, asBuffer(expr), asBuffer(queryParams), asBuffer(settings), asBuffer(options)]));
|
|
87
87
|
return wrapHandle(this.raw, outs["out"]);
|
|
88
88
|
}
|
|
89
89
|
/** The generated call wrapper for chs_filter_eval_body. */
|
|
90
|
-
filterEvalBody(filter, format, body, settings) {
|
|
91
|
-
const outs = checkStatus(rawCall(this.raw, SYMBOL.FILTER_EVAL_BODY, [filter.ptr, format, asBuffer(body), asBuffer(settings)]));
|
|
90
|
+
filterEvalBody(filter, format, body, settings, columns, options) {
|
|
91
|
+
const outs = checkStatus(rawCall(this.raw, SYMBOL.FILTER_EVAL_BODY, [filter.ptr, format, asBuffer(body), asBuffer(settings), asBuffer(columns), asBuffer(options)]));
|
|
92
92
|
return outs["out"];
|
|
93
93
|
}
|
|
94
94
|
/** The generated call wrapper for chs_block_create. */
|
|
95
|
-
blockCreate(schema, format, body, settings, columns) {
|
|
96
|
-
const outs = checkStatus(rawCall(this.raw, SYMBOL.BLOCK_CREATE, [schema.ptr, format, asBuffer(body), asBuffer(settings), asBuffer(columns)]));
|
|
95
|
+
blockCreate(schema, format, body, settings, columns, options) {
|
|
96
|
+
const outs = checkStatus(rawCall(this.raw, SYMBOL.BLOCK_CREATE, [schema.ptr, format, asBuffer(body), asBuffer(settings), asBuffer(columns), asBuffer(options)]));
|
|
97
97
|
return wrapHandle(this.raw, outs["out"]);
|
|
98
98
|
}
|
|
99
99
|
/** The generated call wrapper for chs_filter_e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@@ -58,6 +58,7 @@ export declare const SYMBOL: {
|
|
|
58
58
|
readonly ERROR_COLUMN: "chs_error_column";
|
|
59
59
|
readonly ERROR_FREE: "chs_error_free";
|
|
60
60
|
readonly ERROR_MESSAGE: "chs_error_message";
|
|
61
|
+
readonly ERROR_REASON: "chs_error_reason";
|
|
61
62
|
readonly ERROR_STATUS: "chs_error_status";
|
|
62
63
|
readonly FILTER_CREATE: "chs_filter_create";
|
|
63
64
|
readonly FILTER_EVAL_BLOCK: "chs_filter_eval_block";
|
|
@@ -106,7 +107,7 @@ export declare const BUF_HANDLE: 'chs_buf';
|
|
|
106
107
|
* chs_build_info().abi_fingerprint at loader step 4).
|
|
107
108
|
*/
|
|
108
109
|
export declare const ABI_VERSION = 2;
|
|
109
|
-
export declare const ABI_FINGERPRINT = "sha256:
|
|
110
|
+
export declare const ABI_FINGERPRINT = "sha256:d53239933966e15a3c363e631a94fbba1231d84c4300337115d3ae5377bb41c2";
|
|
110
111
|
/**
|
|
111
112
|
* The description's stability: "unstable" while this generation is being designed, so
|
|
112
113
|
* ABI_FINGERPRINT moves with every change, and "locked" after (spec/abi-v2/docs.md, rule
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decls.gen.d.ts","sourceRoot":"","sources":["../../src/abi2/decls.gen.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,YAAY,CAAC;AAC9G,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE1E,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE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ED,2FAA2F;AAC3F,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAqCnD,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAMhD,CAAC;AACX,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAMjD,CAAC;AAEX,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB,EAAE,SAAS,MAAM,EA0C9C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,SAAqB,CAAC;AAE/C;;;;GAIG;AACH,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B,eAAO,MAAM,eAAe,4EAA4E,CAAC;AACzG;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,MAAmB,CAAC;AAEhD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,KAAK,CAAC;CACnC;AAED,6EAA6E;AAC7E,eAAO,MAAM,WAAW,EAAE,SAAS,eAAe,EA8CjD,CAAC"}
|
package/dist/abi2/decls.gen.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* GENERATED by scripts/abi-v1/gen.py --major 2 from spec/abi-v2/abi.json (CHS_ABI_FINGERPRINT sha256:
|
|
1
|
+
/* GENERATED by scripts/abi-v1/gen.py --major 2 from spec/abi-v2/abi.json (CHS_ABI_FINGERPRINT sha256:d53239933966e15a3c363e631a94fbba1231d84c4300337115d3ae5377bb41c2) — DO NOT EDIT */
|
|
2
2
|
/*
|
|
3
3
|
* The ABI description as DATA: every described symbol's name, its parameter and return
|
|
4
4
|
* shape, and the chs_status enum, both directions. See this emitter's module docstring
|
|
@@ -128,8 +128,6 @@ export const FUNCTION_SPECS = {
|
|
|
128
128
|
"cls": "api",
|
|
129
129
|
"mayReturn": [
|
|
130
130
|
"CHS_OK",
|
|
131
|
-
"CHS_REJECTED",
|
|
132
|
-
"CHS_DECLINED",
|
|
133
131
|
"CHS_INVALID_ARGUMENT",
|
|
134
132
|
"CHS_INTERNAL"
|
|
135
133
|
],
|
|
@@ -156,7 +154,7 @@ export const FUNCTION_SPECS = {
|
|
|
156
154
|
"type": null
|
|
157
155
|
},
|
|
158
156
|
{
|
|
159
|
-
"content": "
|
|
157
|
+
"content": "json_object_byte_values",
|
|
160
158
|
"kind": "bytes_in",
|
|
161
159
|
"name": "settings",
|
|
162
160
|
"nullable": false,
|
|
@@ -169,6 +167,13 @@ export const FUNCTION_SPECS = {
|
|
|
169
167
|
"nullable": false,
|
|
170
168
|
"type": null
|
|
171
169
|
},
|
|
170
|
+
{
|
|
171
|
+
"content": "input:insert_options",
|
|
172
|
+
"kind": "bytes_in",
|
|
173
|
+
"name": "options",
|
|
174
|
+
"nullable": false,
|
|
175
|
+
"type": null
|
|
176
|
+
},
|
|
172
177
|
{
|
|
173
178
|
"content": null,
|
|
174
179
|
"kind": "out_handle",
|
|
@@ -543,6 +548,29 @@ export const FUNCTION_SPECS = {
|
|
|
543
548
|
},
|
|
544
549
|
"thread": "shared"
|
|
545
550
|
},
|
|
551
|
+
"chs_error_reason": {
|
|
552
|
+
"cls": "api",
|
|
553
|
+
"mayReturn": [],
|
|
554
|
+
"params": [
|
|
555
|
+
{
|
|
556
|
+
"content": null,
|
|
557
|
+
"kind": "handle",
|
|
558
|
+
"name": "error",
|
|
559
|
+
"nullable": false,
|
|
560
|
+
"type": "chs_error"
|
|
561
|
+
}
|
|
562
|
+
],
|
|
563
|
+
"returns": {
|
|
564
|
+
"borrows": null,
|
|
565
|
+
"constant": null,
|
|
566
|
+
"content": "ascii",
|
|
567
|
+
"kind": "handle",
|
|
568
|
+
"nullable": true,
|
|
569
|
+
"owned": true,
|
|
570
|
+
"type": "chs_buf"
|
|
571
|
+
},
|
|
572
|
+
"thread": "shared"
|
|
573
|
+
},
|
|
546
574
|
"chs_error_status": {
|
|
547
575
|
"cls": "api",
|
|
548
576
|
"mayReturn": [],
|
|
@@ -591,19 +619,26 @@ export const FUNCTION_SPECS = {
|
|
|
591
619
|
"type": null
|
|
592
620
|
},
|
|
593
621
|
{
|
|
594
|
-
"content": "
|
|
622
|
+
"content": "json_object_byte_values",
|
|
595
623
|
"kind": "bytes_in",
|
|
596
624
|
"name": "query_params",
|
|
597
625
|
"nullable": false,
|
|
598
626
|
"type": null
|
|
599
627
|
},
|
|
600
628
|
{
|
|
601
|
-
"content": "
|
|
629
|
+
"content": "json_object_byte_values",
|
|
602
630
|
"kind": "bytes_in",
|
|
603
631
|
"name": "settings",
|
|
604
632
|
"nullable": false,
|
|
605
633
|
"type": null
|
|
606
634
|
},
|
|
635
|
+
{
|
|
636
|
+
"content": "input:filter_options",
|
|
637
|
+
"kind": "bytes_in",
|
|
638
|
+
"name": "options",
|
|
639
|
+
"nullable": false,
|
|
640
|
+
"type": null
|
|
641
|
+
},
|
|
607
642
|
{
|
|
608
643
|
"content": null,
|
|
609
644
|
"kind": "out_handle",
|
|
@@ -634,8 +669,6 @@ export const FUNCTION_SPECS = {
|
|
|
634
669
|
"cls": "api",
|
|
635
670
|
"mayReturn": [
|
|
636
671
|
"CHS_OK",
|
|
637
|
-
"CHS_REJECTED",
|
|
638
|
-
"CHS_DECLINED",
|
|
639
672
|
"CHS_INVALID_ARGUMENT",
|
|
640
673
|
"CHS_INTERNAL"
|
|
641
674
|
],
|
|
@@ -684,8 +717,6 @@ export const FUNCTION_SPECS = {
|
|
|
684
717
|
"cls": "api",
|
|
685
718
|
"mayReturn": [
|
|
686
719
|
"CHS_OK",
|
|
687
|
-
"CHS_REJECTED",
|
|
688
|
-
"CHS_DECLINED",
|
|
689
720
|
"CHS_INVALID_ARGUMENT",
|
|
690
721
|
"CHS_INTERNAL"
|
|
691
722
|
],
|
|
@@ -712,12 +743,26 @@ export const FUNCTION_SPECS = {
|
|
|
712
743
|
"type": null
|
|
713
744
|
},
|
|
714
745
|
{
|
|
715
|
-
"content": "
|
|
746
|
+
"content": "json_object_byte_values",
|
|
716
747
|
"kind": "bytes_in",
|
|
717
748
|
"name": "settings",
|
|
718
749
|
"nullable": false,
|
|
719
750
|
"type": null
|
|
720
751
|
},
|
|
752
|
+
{
|
|
753
|
+
"content": "json_array_names",
|
|
754
|
+
"kind": "bytes_in",
|
|
755
|
+
"name": "columns",
|
|
756
|
+
"nullable": false,
|
|
757
|
+
"type": null
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"content": "input:insert_options",
|
|
761
|
+
"kind": "bytes_in",
|
|
762
|
+
"name": "options",
|
|
763
|
+
"nullable": false,
|
|
764
|
+
"type": null
|
|
765
|
+
},
|
|
721
766
|
{
|
|
722
767
|
"content": "document:filter_result",
|
|
723
768
|
"kind": "out_handle",
|
|
@@ -874,8 +919,6 @@ export const FUNCTION_SPECS = {
|
|
|
874
919
|
"cls": "api",
|
|
875
920
|
"mayReturn": [
|
|
876
921
|
"CHS_OK",
|
|
877
|
-
"CHS_REJECTED",
|
|
878
|
-
"CHS_DECLINED",
|
|
879
922
|
"CHS_INVALID_ARGUMENT",
|
|
880
923
|
"CHS_INTERNAL"
|
|
881
924
|
],
|
|
@@ -902,7 +945,7 @@ export const FUNCTION_SPECS = {
|
|
|
902
945
|
"type": null
|
|
903
946
|
},
|
|
904
947
|
{
|
|
905
|
-
"content": "
|
|
948
|
+
"content": "json_object_byte_values",
|
|
906
949
|
"kind": "bytes_in",
|
|
907
950
|
"name": "settings",
|
|
908
951
|
"nullable": false,
|
|
@@ -936,6 +979,13 @@ export const FUNCTION_SPECS = {
|
|
|
936
979
|
"nullable": false,
|
|
937
980
|
"type": "uint32"
|
|
938
981
|
},
|
|
982
|
+
{
|
|
983
|
+
"content": "input:insert_options",
|
|
984
|
+
"kind": "bytes_in",
|
|
985
|
+
"name": "options",
|
|
986
|
+
"nullable": false,
|
|
987
|
+
"type": null
|
|
988
|
+
},
|
|
939
989
|
{
|
|
940
990
|
"content": "document:batch",
|
|
941
991
|
"kind": "out_handle",
|
|
@@ -973,8 +1023,6 @@ export const FUNCTION_SPECS = {
|
|
|
973
1023
|
"cls": "api",
|
|
974
1024
|
"mayReturn": [
|
|
975
1025
|
"CHS_OK",
|
|
976
|
-
"CHS_REJECTED",
|
|
977
|
-
"CHS_DECLINED",
|
|
978
1026
|
"CHS_INVALID_ARGUMENT",
|
|
979
1027
|
"CHS_INTERNAL"
|
|
980
1028
|
],
|
|
@@ -1001,7 +1049,7 @@ export const FUNCTION_SPECS = {
|
|
|
1001
1049
|
"type": null
|
|
1002
1050
|
},
|
|
1003
1051
|
{
|
|
1004
|
-
"content": "
|
|
1052
|
+
"content": "json_object_byte_values",
|
|
1005
1053
|
"kind": "bytes_in",
|
|
1006
1054
|
"name": "settings",
|
|
1007
1055
|
"nullable": false,
|
|
@@ -1014,6 +1062,13 @@ export const FUNCTION_SPECS = {
|
|
|
1014
1062
|
"nullable": false,
|
|
1015
1063
|
"type": null
|
|
1016
1064
|
},
|
|
1065
|
+
{
|
|
1066
|
+
"content": "input:insert_options",
|
|
1067
|
+
"kind": "bytes_in",
|
|
1068
|
+
"name": "options",
|
|
1069
|
+
"nullable": false,
|
|
1070
|
+
"type": null
|
|
1071
|
+
},
|
|
1017
1072
|
{
|
|
1018
1073
|
"content": "document:row",
|
|
1019
1074
|
"kind": "out_handle",
|
|
@@ -1183,7 +1238,7 @@ export const FUNCTION_SPECS = {
|
|
|
1183
1238
|
"type": null
|
|
1184
1239
|
},
|
|
1185
1240
|
{
|
|
1186
|
-
"content": "
|
|
1241
|
+
"content": "json_object_byte_values",
|
|
1187
1242
|
"kind": "bytes_in",
|
|
1188
1243
|
"name": "settings",
|
|
1189
1244
|
"nullable": false,
|
|
@@ -1226,7 +1281,6 @@ export const FUNCTION_SPECS = {
|
|
|
1226
1281
|
"cls": "api",
|
|
1227
1282
|
"mayReturn": [
|
|
1228
1283
|
"CHS_OK",
|
|
1229
|
-
"CHS_REJECTED",
|
|
1230
1284
|
"CHS_INVALID_ARGUMENT",
|
|
1231
1285
|
"CHS_INTERNAL"
|
|
1232
1286
|
],
|
|
@@ -1371,7 +1425,7 @@ export const FUNCTION_SPECS = {
|
|
|
1371
1425
|
],
|
|
1372
1426
|
"params": [
|
|
1373
1427
|
{
|
|
1374
|
-
"content": "
|
|
1428
|
+
"content": "json_object_byte_values",
|
|
1375
1429
|
"kind": "bytes_in",
|
|
1376
1430
|
"name": "settings",
|
|
1377
1431
|
"nullable": false,
|
|
@@ -1476,6 +1530,7 @@ export const CAMEL_NAMES = {
|
|
|
1476
1530
|
"chs_error_column": "errorColumn",
|
|
1477
1531
|
"chs_error_free": "errorFree",
|
|
1478
1532
|
"chs_error_message": "errorMessage",
|
|
1533
|
+
"chs_error_reason": "errorReason",
|
|
1479
1534
|
"chs_error_status": "errorStatus",
|
|
1480
1535
|
"chs_filter_create": "filterCreate",
|
|
1481
1536
|
"chs_filter_eval_block": "filterEvalBlock",
|
|
@@ -1529,6 +1584,7 @@ export const SYMBOL = {
|
|
|
1529
1584
|
"ERROR_COLUMN": "chs_error_column",
|
|
1530
1585
|
"ERROR_FREE": "chs_error_free",
|
|
1531
1586
|
"ERROR_MESSAGE": "chs_error_message",
|
|
1587
|
+
"ERROR_REASON": "chs_error_reason",
|
|
1532
1588
|
"ERROR_STATUS": "chs_error_status",
|
|
1533
1589
|
"FILTER_CREATE": "chs_filter_create",
|
|
1534
1590
|
"FILTER_EVAL_BLOCK": "chs_filter_eval_block",
|
|
@@ -1626,6 +1682,7 @@ export const DESCRIBED_SYMBOLS = [
|
|
|
1626
1682
|
"chs_error_column",
|
|
1627
1683
|
"chs_error_free",
|
|
1628
1684
|
"chs_error_message",
|
|
1685
|
+
"chs_error_reason",
|
|
1629
1686
|
"chs_error_status",
|
|
1630
1687
|
"chs_filter_create",
|
|
1631
1688
|
"chs_filter_eval_block",
|
|
@@ -1662,7 +1719,7 @@ export const BUF_HANDLE = 'chs_buf';
|
|
|
1662
1719
|
* chs_build_info().abi_fingerprint at loader step 4).
|
|
1663
1720
|
*/
|
|
1664
1721
|
export const ABI_VERSION = 2;
|
|
1665
|
-
export const ABI_FINGERPRINT = "sha256:
|
|
1722
|
+
export const ABI_FINGERPRINT = "sha256:d53239933966e15a3c363e631a94fbba1231d84c4300337115d3ae5377bb41c2";
|
|
1666
1723
|
/**
|
|
1667
1724
|
* The description's stability: "unstable" while this generation is being designed, so
|
|
1668
1725
|
* ABI_FINGERPRINT moves with every change, and "locked" after (spec/abi-v2/docs.md, rule
|