@cipherstash/protect-ffi 0.26.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -0
- package/dist/wasm/protect_ffi_bg.js +11 -11
- package/dist/wasm/protect_ffi_bg.wasm +0 -0
- package/dist/wasm/protect_ffi_bg.wasm.d.ts +5 -5
- package/dist/wasm/protect_ffi_inline.js +1 -1
- package/lib/eql-v3-types/Bigint.d.ts +13 -0
- package/lib/eql-v3-types/Bigint.js +2 -0
- package/lib/eql-v3-types/BigintEq.d.ts +15 -0
- package/lib/eql-v3-types/BigintEq.js +2 -0
- package/lib/eql-v3-types/BigintOrd.d.ts +15 -0
- package/lib/eql-v3-types/BigintOrd.js +2 -0
- package/lib/eql-v3-types/BigintOrdOpe.d.ts +15 -0
- package/lib/eql-v3-types/BigintOrdOpe.js +2 -0
- package/lib/eql-v3-types/BigintOrdOre.d.ts +15 -0
- package/lib/eql-v3-types/BigintOrdOre.js +2 -0
- package/lib/eql-v3-types/BloomFilter.d.ts +9 -0
- package/lib/eql-v3-types/BloomFilter.js +5 -0
- package/lib/eql-v3-types/Boolean.d.ts +13 -0
- package/lib/eql-v3-types/Boolean.js +2 -0
- package/lib/eql-v3-types/Ciphertext.d.ts +6 -0
- package/lib/eql-v3-types/Ciphertext.js +5 -0
- package/lib/eql-v3-types/Date.d.ts +13 -0
- package/lib/eql-v3-types/Date.js +2 -0
- package/lib/eql-v3-types/DateEq.d.ts +15 -0
- package/lib/eql-v3-types/DateEq.js +2 -0
- package/lib/eql-v3-types/DateOrd.d.ts +15 -0
- package/lib/eql-v3-types/DateOrd.js +2 -0
- package/lib/eql-v3-types/DateOrdOpe.d.ts +15 -0
- package/lib/eql-v3-types/DateOrdOpe.js +2 -0
- package/lib/eql-v3-types/DateOrdOre.d.ts +15 -0
- package/lib/eql-v3-types/DateOrdOre.js +2 -0
- package/lib/eql-v3-types/Double.d.ts +13 -0
- package/lib/eql-v3-types/Double.js +2 -0
- package/lib/eql-v3-types/DoubleEq.d.ts +15 -0
- package/lib/eql-v3-types/DoubleEq.js +2 -0
- package/lib/eql-v3-types/DoubleOrd.d.ts +15 -0
- package/lib/eql-v3-types/DoubleOrd.js +2 -0
- package/lib/eql-v3-types/DoubleOrdOpe.d.ts +15 -0
- package/lib/eql-v3-types/DoubleOrdOpe.js +2 -0
- package/lib/eql-v3-types/DoubleOrdOre.d.ts +15 -0
- package/lib/eql-v3-types/DoubleOrdOre.js +2 -0
- package/lib/eql-v3-types/Hmac256.d.ts +5 -0
- package/lib/eql-v3-types/Hmac256.js +5 -0
- package/lib/eql-v3-types/Identifier.d.ts +15 -0
- package/lib/eql-v3-types/Identifier.js +5 -0
- package/lib/eql-v3-types/Integer.d.ts +13 -0
- package/lib/eql-v3-types/Integer.js +2 -0
- package/lib/eql-v3-types/IntegerEq.d.ts +15 -0
- package/lib/eql-v3-types/IntegerEq.js +2 -0
- package/lib/eql-v3-types/IntegerOrd.d.ts +15 -0
- package/lib/eql-v3-types/IntegerOrd.js +2 -0
- package/lib/eql-v3-types/IntegerOrdOpe.d.ts +15 -0
- package/lib/eql-v3-types/IntegerOrdOpe.js +2 -0
- package/lib/eql-v3-types/IntegerOrdOre.d.ts +15 -0
- package/lib/eql-v3-types/IntegerOrdOre.js +2 -0
- package/lib/eql-v3-types/Numeric.d.ts +13 -0
- package/lib/eql-v3-types/Numeric.js +2 -0
- package/lib/eql-v3-types/NumericEq.d.ts +15 -0
- package/lib/eql-v3-types/NumericEq.js +2 -0
- package/lib/eql-v3-types/NumericOrd.d.ts +15 -0
- package/lib/eql-v3-types/NumericOrd.js +2 -0
- package/lib/eql-v3-types/NumericOrdOpe.d.ts +15 -0
- package/lib/eql-v3-types/NumericOrdOpe.js +2 -0
- package/lib/eql-v3-types/NumericOrdOre.d.ts +15 -0
- package/lib/eql-v3-types/NumericOrdOre.js +2 -0
- package/lib/eql-v3-types/OpeCllw.d.ts +9 -0
- package/lib/eql-v3-types/OpeCllw.js +5 -0
- package/lib/eql-v3-types/OreBlock256.d.ts +9 -0
- package/lib/eql-v3-types/OreBlock256.js +5 -0
- package/lib/eql-v3-types/OreCllw.d.ts +7 -0
- package/lib/eql-v3-types/OreCllw.js +5 -0
- package/lib/eql-v3-types/Real.d.ts +13 -0
- package/lib/eql-v3-types/Real.js +2 -0
- package/lib/eql-v3-types/RealEq.d.ts +15 -0
- package/lib/eql-v3-types/RealEq.js +2 -0
- package/lib/eql-v3-types/RealOrd.d.ts +15 -0
- package/lib/eql-v3-types/RealOrd.js +2 -0
- package/lib/eql-v3-types/RealOrdOpe.d.ts +15 -0
- package/lib/eql-v3-types/RealOrdOpe.js +2 -0
- package/lib/eql-v3-types/RealOrdOre.d.ts +15 -0
- package/lib/eql-v3-types/RealOrdOre.js +2 -0
- package/lib/eql-v3-types/SchemaVersion.d.ts +10 -0
- package/lib/eql-v3-types/SchemaVersion.js +5 -0
- package/lib/eql-v3-types/Selector.d.ts +5 -0
- package/lib/eql-v3-types/Selector.js +5 -0
- package/lib/eql-v3-types/Smallint.d.ts +13 -0
- package/lib/eql-v3-types/Smallint.js +2 -0
- package/lib/eql-v3-types/SmallintEq.d.ts +15 -0
- package/lib/eql-v3-types/SmallintEq.js +2 -0
- package/lib/eql-v3-types/SmallintOrd.d.ts +15 -0
- package/lib/eql-v3-types/SmallintOrd.js +2 -0
- package/lib/eql-v3-types/SmallintOrdOpe.d.ts +15 -0
- package/lib/eql-v3-types/SmallintOrdOpe.js +2 -0
- package/lib/eql-v3-types/SmallintOrdOre.d.ts +15 -0
- package/lib/eql-v3-types/SmallintOrdOre.js +2 -0
- package/lib/eql-v3-types/SteVecDocument.d.ts +15 -0
- package/lib/eql-v3-types/SteVecDocument.js +2 -0
- package/lib/eql-v3-types/SteVecEntry.d.ts +19 -0
- package/lib/eql-v3-types/SteVecEntry.js +2 -0
- package/lib/eql-v3-types/SteVecForm.d.ts +18 -0
- package/lib/eql-v3-types/SteVecForm.js +5 -0
- package/lib/eql-v3-types/SteVecQuery.d.ts +7 -0
- package/lib/eql-v3-types/SteVecQuery.js +2 -0
- package/lib/eql-v3-types/SteVecQueryEntry.d.ts +15 -0
- package/lib/eql-v3-types/SteVecQueryEntry.js +2 -0
- package/lib/eql-v3-types/SteVecTerm.d.ts +11 -0
- package/lib/eql-v3-types/SteVecTerm.js +2 -0
- package/lib/eql-v3-types/Text.d.ts +13 -0
- package/lib/eql-v3-types/Text.js +2 -0
- package/lib/eql-v3-types/TextEq.d.ts +15 -0
- package/lib/eql-v3-types/TextEq.js +2 -0
- package/lib/eql-v3-types/TextMatch.d.ts +15 -0
- package/lib/eql-v3-types/TextMatch.js +2 -0
- package/lib/eql-v3-types/TextOrd.d.ts +17 -0
- package/lib/eql-v3-types/TextOrd.js +2 -0
- package/lib/eql-v3-types/TextOrdOpe.d.ts +17 -0
- package/lib/eql-v3-types/TextOrdOpe.js +2 -0
- package/lib/eql-v3-types/TextOrdOre.d.ts +17 -0
- package/lib/eql-v3-types/TextOrdOre.js +2 -0
- package/lib/eql-v3-types/TextSearch.d.ts +19 -0
- package/lib/eql-v3-types/TextSearch.js +2 -0
- package/lib/eql-v3-types/Timestamp.d.ts +13 -0
- package/lib/eql-v3-types/Timestamp.js +2 -0
- package/lib/eql-v3-types/TimestampEq.d.ts +15 -0
- package/lib/eql-v3-types/TimestampEq.js +2 -0
- package/lib/eql-v3-types/TimestampOrd.d.ts +15 -0
- package/lib/eql-v3-types/TimestampOrd.js +2 -0
- package/lib/eql-v3-types/TimestampOrdOpe.d.ts +15 -0
- package/lib/eql-v3-types/TimestampOrdOpe.js +2 -0
- package/lib/eql-v3-types/TimestampOrdOre.d.ts +15 -0
- package/lib/eql-v3-types/TimestampOrdOre.js +2 -0
- package/lib/eql-v3.d.ts +90 -0
- package/lib/eql-v3.js +6 -0
- package/lib/errors.d.ts +14 -0
- package/lib/errors.js +77 -0
- package/lib/index.cjs +32 -59
- package/lib/index.d.cts +63 -24
- package/lib/normalizeEncryptConfig.d.ts +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
4
|
+
/**
|
|
5
|
+
* `eql_v3.bigint` — storage-only domain.
|
|
6
|
+
*
|
|
7
|
+
* Operators: none. Required keys: `v` `i` `c`.
|
|
8
|
+
*/
|
|
9
|
+
export type Bigint = {
|
|
10
|
+
v: SchemaVersion;
|
|
11
|
+
i: Identifier;
|
|
12
|
+
c: Ciphertext;
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Hmac256 } from "./Hmac256";
|
|
3
|
+
import type { Identifier } from "./Identifier";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.bigint_eq` — equality domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>`. Required keys: `v` `i` `c` `hm`.
|
|
9
|
+
*/
|
|
10
|
+
export type BigintEq = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
hm: Hmac256;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { OreBlock256 } from "./OreBlock256";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.bigint_ord` — ordering domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>` `<` `<=` `>` `>=`. Required keys: `v` `i` `c` `ob`.
|
|
9
|
+
*/
|
|
10
|
+
export type BigintOrd = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
ob: OreBlock256;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { OpeCllw } from "./OpeCllw";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.bigint_ord_ope` — ordering domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>` `<` `<=` `>` `>=`. Required keys: `v` `i` `c` `op`.
|
|
9
|
+
*/
|
|
10
|
+
export type BigintOrdOpe = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
op: OpeCllw;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { OreBlock256 } from "./OreBlock256";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.bigint_ord_ore` — ordering domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>` `<` `<=` `>` `>=`. Required keys: `v` `i` `c` `ob`.
|
|
9
|
+
*/
|
|
10
|
+
export type BigintOrdOre = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
ob: OreBlock256;
|
|
15
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bloom-filter match term — the `bf` wire key. Backs the `_match` domains
|
|
3
|
+
* (`@>`/`<@` containment).
|
|
4
|
+
*
|
|
5
|
+
* **Signed** i16, not u16: EQL stores the filter as PostgreSQL `smallint[]`,
|
|
6
|
+
* and filters sized above 32768 emit upper-half bit positions as negative
|
|
7
|
+
* signed values.
|
|
8
|
+
*/
|
|
9
|
+
export type BloomFilter = Array<number>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated — vendored from eql-bindings bindings/v3 (encrypt-query-language).
|
|
3
|
+
// Do not hand-edit. Refresh with scripts/sync-eql-v3-types.sh.
|
|
4
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
4
|
+
/**
|
|
5
|
+
* `eql_v3.boolean` — storage-only domain.
|
|
6
|
+
*
|
|
7
|
+
* Operators: none. Required keys: `v` `i` `c`.
|
|
8
|
+
*/
|
|
9
|
+
export type Boolean = {
|
|
10
|
+
v: SchemaVersion;
|
|
11
|
+
i: Identifier;
|
|
12
|
+
c: Ciphertext;
|
|
13
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated — vendored from eql-bindings bindings/v3 (encrypt-query-language).
|
|
3
|
+
// Do not hand-edit. Refresh with scripts/sync-eql-v3-types.sh.
|
|
4
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
4
|
+
/**
|
|
5
|
+
* `eql_v3.date` — storage-only domain.
|
|
6
|
+
*
|
|
7
|
+
* Operators: none. Required keys: `v` `i` `c`.
|
|
8
|
+
*/
|
|
9
|
+
export type Date = {
|
|
10
|
+
v: SchemaVersion;
|
|
11
|
+
i: Identifier;
|
|
12
|
+
c: Ciphertext;
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Hmac256 } from "./Hmac256";
|
|
3
|
+
import type { Identifier } from "./Identifier";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.date_eq` — equality domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>`. Required keys: `v` `i` `c` `hm`.
|
|
9
|
+
*/
|
|
10
|
+
export type DateEq = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
hm: Hmac256;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { OreBlock256 } from "./OreBlock256";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.date_ord` — ordering domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>` `<` `<=` `>` `>=`. Required keys: `v` `i` `c` `ob`.
|
|
9
|
+
*/
|
|
10
|
+
export type DateOrd = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
ob: OreBlock256;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { OpeCllw } from "./OpeCllw";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.date_ord_ope` — ordering domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>` `<` `<=` `>` `>=`. Required keys: `v` `i` `c` `op`.
|
|
9
|
+
*/
|
|
10
|
+
export type DateOrdOpe = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
op: OpeCllw;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { OreBlock256 } from "./OreBlock256";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.date_ord_ore` — ordering domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>` `<` `<=` `>` `>=`. Required keys: `v` `i` `c` `ob`.
|
|
9
|
+
*/
|
|
10
|
+
export type DateOrdOre = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
ob: OreBlock256;
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
4
|
+
/**
|
|
5
|
+
* `eql_v3.double` — storage-only domain.
|
|
6
|
+
*
|
|
7
|
+
* Operators: none. Required keys: `v` `i` `c`.
|
|
8
|
+
*/
|
|
9
|
+
export type Double = {
|
|
10
|
+
v: SchemaVersion;
|
|
11
|
+
i: Identifier;
|
|
12
|
+
c: Ciphertext;
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Hmac256 } from "./Hmac256";
|
|
3
|
+
import type { Identifier } from "./Identifier";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.double_eq` — equality domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>`. Required keys: `v` `i` `c` `hm`.
|
|
9
|
+
*/
|
|
10
|
+
export type DoubleEq = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
hm: Hmac256;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { OreBlock256 } from "./OreBlock256";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.double_ord` — ordering domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>` `<` `<=` `>` `>=`. Required keys: `v` `i` `c` `ob`.
|
|
9
|
+
*/
|
|
10
|
+
export type DoubleOrd = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
ob: OreBlock256;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { OpeCllw } from "./OpeCllw";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.double_ord_ope` — ordering domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>` `<` `<=` `>` `>=`. Required keys: `v` `i` `c` `op`.
|
|
9
|
+
*/
|
|
10
|
+
export type DoubleOrdOpe = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
op: OpeCllw;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { OreBlock256 } from "./OreBlock256";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.double_ord_ore` — ordering domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>` `<` `<=` `>` `>=`. Required keys: `v` `i` `c` `ob`.
|
|
9
|
+
*/
|
|
10
|
+
export type DoubleOrdOre = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
ob: OreBlock256;
|
|
15
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated — vendored from eql-bindings bindings/v3 (encrypt-query-language).
|
|
3
|
+
// Do not hand-edit. Refresh with scripts/sync-eql-v3-types.sh.
|
|
4
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated — vendored from eql-bindings bindings/v3 (encrypt-query-language).
|
|
3
|
+
// Do not hand-edit. Refresh with scripts/sync-eql-v3-types.sh.
|
|
4
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
4
|
+
/**
|
|
5
|
+
* `eql_v3.integer` — storage-only domain.
|
|
6
|
+
*
|
|
7
|
+
* Operators: none. Required keys: `v` `i` `c`.
|
|
8
|
+
*/
|
|
9
|
+
export type Integer = {
|
|
10
|
+
v: SchemaVersion;
|
|
11
|
+
i: Identifier;
|
|
12
|
+
c: Ciphertext;
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Hmac256 } from "./Hmac256";
|
|
3
|
+
import type { Identifier } from "./Identifier";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.integer_eq` — equality domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>`. Required keys: `v` `i` `c` `hm`.
|
|
9
|
+
*/
|
|
10
|
+
export type IntegerEq = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
hm: Hmac256;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { OreBlock256 } from "./OreBlock256";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.integer_ord` — ordering domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>` `<` `<=` `>` `>=`. Required keys: `v` `i` `c` `ob`.
|
|
9
|
+
*/
|
|
10
|
+
export type IntegerOrd = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
ob: OreBlock256;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { OpeCllw } from "./OpeCllw";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.integer_ord_ope` — ordering domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>` `<` `<=` `>` `>=`. Required keys: `v` `i` `c` `op`.
|
|
9
|
+
*/
|
|
10
|
+
export type IntegerOrdOpe = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
op: OpeCllw;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { OreBlock256 } from "./OreBlock256";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.integer_ord_ore` — ordering domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>` `<` `<=` `>` `>=`. Required keys: `v` `i` `c` `ob`.
|
|
9
|
+
*/
|
|
10
|
+
export type IntegerOrdOre = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
ob: OreBlock256;
|
|
15
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
4
|
+
/**
|
|
5
|
+
* `eql_v3.numeric` — storage-only domain.
|
|
6
|
+
*
|
|
7
|
+
* Operators: none. Required keys: `v` `i` `c`.
|
|
8
|
+
*/
|
|
9
|
+
export type Numeric = {
|
|
10
|
+
v: SchemaVersion;
|
|
11
|
+
i: Identifier;
|
|
12
|
+
c: Ciphertext;
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Hmac256 } from "./Hmac256";
|
|
3
|
+
import type { Identifier } from "./Identifier";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.numeric_eq` — equality domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>`. Required keys: `v` `i` `c` `hm`.
|
|
9
|
+
*/
|
|
10
|
+
export type NumericEq = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
hm: Hmac256;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { OreBlock256 } from "./OreBlock256";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.numeric_ord` — ordering domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>` `<` `<=` `>` `>=`. Required keys: `v` `i` `c` `ob`.
|
|
9
|
+
*/
|
|
10
|
+
export type NumericOrd = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
ob: OreBlock256;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { OpeCllw } from "./OpeCllw";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.numeric_ord_ope` — ordering domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>` `<` `<=` `>` `>=`. Required keys: `v` `i` `c` `op`.
|
|
9
|
+
*/
|
|
10
|
+
export type NumericOrdOpe = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
op: OpeCllw;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ciphertext } from "./Ciphertext";
|
|
2
|
+
import type { Identifier } from "./Identifier";
|
|
3
|
+
import type { OreBlock256 } from "./OreBlock256";
|
|
4
|
+
import type { SchemaVersion } from "./SchemaVersion";
|
|
5
|
+
/**
|
|
6
|
+
* `eql_v3.numeric_ord_ore` — ordering domain.
|
|
7
|
+
*
|
|
8
|
+
* Operators: `=` `<>` `<` `<=` `>` `>=`. Required keys: `v` `i` `c` `ob`.
|
|
9
|
+
*/
|
|
10
|
+
export type NumericOrdOre = {
|
|
11
|
+
v: SchemaVersion;
|
|
12
|
+
i: Identifier;
|
|
13
|
+
c: Ciphertext;
|
|
14
|
+
ob: OreBlock256;
|
|
15
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLLW-OPE order term — the `op` wire key. Backs the scalar `_ord_ope`
|
|
3
|
+
* domains (`=` `<>` `<` `<=` `>` `>=`): a hex-encoded CLLW OPE ciphertext,
|
|
4
|
+
* sortable via native bytea comparison after hex-decode — unlike `ob`
|
|
5
|
+
* (block-ORE) and `oc` (CLLW-ORE) it needs no custom comparator. SQL-side
|
|
6
|
+
* constructor: `eql_v3_internal.ope_cllw`. Distinct from [`OreCllw`] (`oc`), the
|
|
7
|
+
* SteVec CLLW-*ORE* term compared by the custom per-byte protocol.
|
|
8
|
+
*/
|
|
9
|
+
export type OpeCllw = string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated — vendored from eql-bindings bindings/v3 (encrypt-query-language).
|
|
3
|
+
// Do not hand-edit. Refresh with scripts/sync-eql-v3-types.sh.
|
|
4
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Block-ORE order term — the `ob` wire key. Backs the `_ord` / `_ord_ore`
|
|
3
|
+
* domains (`=` `<>` `<` `<=` `>` `>=`); ORE is lossless over the scalar's
|
|
4
|
+
* domain, so it serves equality too. The block count is width-agnostic on the
|
|
5
|
+
* wire (8 for the int scalars, 12 for timestamp, 14 for numeric) — the
|
|
6
|
+
* array just carries more block strings. SQL-side constructor:
|
|
7
|
+
* `eql_v3_internal.ore_block_256`.
|
|
8
|
+
*/
|
|
9
|
+
export type OreBlock256 = Array<string>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @generated — vendored from eql-bindings bindings/v3 (encrypt-query-language).
|
|
3
|
+
// Do not hand-edit. Refresh with scripts/sync-eql-v3-types.sh.
|
|
4
|
+
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|