@cipherstash/stack 0.16.0 → 0.18.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/CHANGELOG.md +52 -0
- package/dist/{chunk-6FD7OBGM.js → chunk-LLCCNKDL.js} +3 -3
- package/dist/chunk-LLCCNKDL.js.map +1 -0
- package/dist/{chunk-MD6742R6.js → chunk-VPOTNP4K.js} +1 -1
- package/dist/chunk-VPOTNP4K.js.map +1 -0
- package/dist/{chunk-4RNBI3UH.js → chunk-XWPGAHBZ.js} +1 -1
- package/dist/chunk-XWPGAHBZ.js.map +1 -0
- package/dist/{chunk-JDZ2QUUF.js → chunk-YWQXTZ5M.js} +4 -2
- package/dist/{chunk-JDZ2QUUF.js.map → chunk-YWQXTZ5M.js.map} +1 -1
- package/dist/{chunk-CY5B4LIF.js → chunk-ZYOZHZMJ.js} +160 -52
- package/dist/chunk-ZYOZHZMJ.js.map +1 -0
- package/dist/{client-BLbA6aFD.d.ts → client-CIsfZ2zg.d.ts} +17 -22
- package/dist/{client-C_7TF8EL.d.cts → client-Dt98Rugc.d.cts} +17 -22
- package/dist/client.cjs +2 -0
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/drizzle/index.cjs +6 -3
- package/dist/drizzle/index.cjs.map +1 -1
- package/dist/drizzle/index.d.cts +2 -2
- package/dist/drizzle/index.d.ts +2 -2
- package/dist/drizzle/index.js +6 -5
- package/dist/drizzle/index.js.map +1 -1
- package/dist/dynamodb/index.cjs +14 -4
- package/dist/dynamodb/index.cjs.map +1 -1
- package/dist/dynamodb/index.d.cts +12 -12
- package/dist/dynamodb/index.d.ts +12 -12
- package/dist/dynamodb/index.js +9 -3
- package/dist/dynamodb/index.js.map +1 -1
- package/dist/encryption/index.cjs +168 -50
- package/dist/encryption/index.cjs.map +1 -1
- package/dist/encryption/index.d.cts +2 -2
- package/dist/encryption/index.d.ts +2 -2
- package/dist/encryption/index.js +25 -5
- package/dist/identity/index.cjs +2 -2
- package/dist/identity/index.cjs.map +1 -1
- package/dist/identity/index.js +3 -3
- package/dist/index.cjs +150 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -5
- package/dist/schema/index.cjs +3 -1
- package/dist/schema/index.cjs.map +1 -1
- package/dist/schema/index.d.cts +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.js +1 -1
- package/dist/supabase/index.cjs +2 -2
- package/dist/supabase/index.cjs.map +1 -1
- package/dist/supabase/index.d.cts +2 -2
- package/dist/supabase/index.d.ts +2 -2
- package/dist/supabase/index.js +3 -3
- package/dist/{types-public-Dv-r6Ik0.d.ts → types-public-BTxqjmtv.d.cts} +95 -80
- package/dist/{types-public-Dv-r6Ik0.d.cts → types-public-BTxqjmtv.d.ts} +95 -80
- package/dist/types-public.cjs.map +1 -1
- package/dist/types-public.d.cts +1 -1
- package/dist/types-public.d.ts +1 -1
- package/dist/types-public.js +1 -1
- package/package.json +12 -12
- package/dist/chunk-4RNBI3UH.js.map +0 -1
- package/dist/chunk-6FD7OBGM.js.map +0 -1
- package/dist/chunk-CY5B4LIF.js.map +0 -1
- package/dist/chunk-MD6742R6.js.map +0 -1
package/dist/supabase/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bulkModelsToEncryptedPgComposites,
|
|
3
3
|
modelToEncryptedPgComposites
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-XWPGAHBZ.js";
|
|
5
5
|
import {
|
|
6
6
|
EncryptedColumn
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-YWQXTZ5M.js";
|
|
8
8
|
import {
|
|
9
9
|
logger
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-LLCCNKDL.js";
|
|
11
11
|
|
|
12
12
|
// src/supabase/helpers.ts
|
|
13
13
|
function getEncryptedColumnNames(schema) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { Encrypted as Encrypted$1, newClient, JsPlaintext } from '@cipherstash/protect-ffi';
|
|
2
|
+
import { Encrypted as Encrypted$1, newClient, EncryptedQuery as EncryptedQuery$1, JsPlaintext } from '@cipherstash/protect-ffi';
|
|
3
3
|
|
|
4
4
|
/** Brand symbol for nominal typing */
|
|
5
5
|
declare const __brand: unique symbol;
|
|
@@ -10,8 +10,18 @@ type Brand<T, B extends string> = T & {
|
|
|
10
10
|
type Client = Awaited<ReturnType<typeof newClient>> | undefined;
|
|
11
11
|
/** A branded type representing encrypted data. Cannot be accidentally used as plaintext. */
|
|
12
12
|
type EncryptedValue = Brand<Encrypted$1, 'encrypted'>;
|
|
13
|
-
/** Structural type representing encrypted data
|
|
13
|
+
/** Structural type representing encrypted data stored in the database. Always
|
|
14
|
+
* carries a ciphertext. See also `EncryptedValue` for branded nominal typing,
|
|
15
|
+
* and {@link EncryptedQuery} for the search-term shape returned by
|
|
16
|
+
* `encryptQuery`. */
|
|
14
17
|
type Encrypted = Encrypted$1;
|
|
18
|
+
/** Structural type representing an encrypted query term (search needle)
|
|
19
|
+
* returned by `encryptQuery` / `encryptQueryBulk` for scalar
|
|
20
|
+
* (`unique` / `match` / `ore`) lookups and `ste_vec_selector` JSON path
|
|
21
|
+
* queries. Carries no ciphertext — matched against stored values, never
|
|
22
|
+
* decrypted. JSON containment queries (`ste_vec_term`) return a
|
|
23
|
+
* storage-shaped {@link Encrypted} payload instead. */
|
|
24
|
+
type EncryptedQuery = EncryptedQuery$1;
|
|
15
25
|
type KeysetIdentifier = {
|
|
16
26
|
name: string;
|
|
17
27
|
} | {
|
|
@@ -73,10 +83,15 @@ type SearchTerm = {
|
|
|
73
83
|
table: EncryptedTable<EncryptedTableColumn>;
|
|
74
84
|
returnType?: EncryptedReturnType;
|
|
75
85
|
};
|
|
76
|
-
/** Encrypted search term result
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
86
|
+
/** Encrypted search term result. `eql` return type yields either a storage
|
|
87
|
+
* payload (`Encrypted`, for `ste_vec_term`) or a query-only term
|
|
88
|
+
* (`EncryptedQuery`, for scalar lookups and `ste_vec_selector`); the
|
|
89
|
+
* `composite-literal` return types yield a string. */
|
|
90
|
+
type EncryptedSearchTerm = Encrypted | EncryptedQuery | string;
|
|
91
|
+
/** Result of encryptQuery (single or batch). `eql` return type yields either a
|
|
92
|
+
* storage payload (`Encrypted`) or a query-only term (`EncryptedQuery`); the
|
|
93
|
+
* `composite-literal` return types yield a string. */
|
|
94
|
+
type EncryptedQueryResult = Encrypted | EncryptedQuery | string | null;
|
|
80
95
|
type EncryptedFields<T> = {
|
|
81
96
|
[K in keyof T as NonNullable<T[K]> extends Encrypted ? K : never]: T[K];
|
|
82
97
|
};
|
|
@@ -114,17 +129,17 @@ type EncryptedFromSchema<T, S extends EncryptedTableColumn> = {
|
|
|
114
129
|
};
|
|
115
130
|
type BulkEncryptPayload = Array<{
|
|
116
131
|
id?: string;
|
|
117
|
-
plaintext: JsPlaintext;
|
|
132
|
+
plaintext: JsPlaintext | null;
|
|
118
133
|
}>;
|
|
119
134
|
type BulkEncryptedData = Array<{
|
|
120
135
|
id?: string;
|
|
121
|
-
data: Encrypted;
|
|
136
|
+
data: Encrypted | null;
|
|
122
137
|
}>;
|
|
123
138
|
type BulkDecryptPayload = Array<{
|
|
124
139
|
id?: string;
|
|
125
|
-
data: Encrypted;
|
|
140
|
+
data: Encrypted | null;
|
|
126
141
|
}>;
|
|
127
|
-
type BulkDecryptedData = Array<DecryptionResult<JsPlaintext>>;
|
|
142
|
+
type BulkDecryptedData = Array<DecryptionResult<JsPlaintext | null>>;
|
|
128
143
|
type DecryptionSuccess<T> = {
|
|
129
144
|
error?: never;
|
|
130
145
|
data: T;
|
|
@@ -421,6 +436,12 @@ declare const columnSchema: z.ZodDefault<z.ZodObject<{
|
|
|
421
436
|
} | undefined;
|
|
422
437
|
}>>;
|
|
423
438
|
}, "strip", z.ZodTypeAny, {
|
|
439
|
+
ore?: {} | undefined;
|
|
440
|
+
unique?: {
|
|
441
|
+
token_filters?: {
|
|
442
|
+
kind: "downcase";
|
|
443
|
+
}[] | undefined;
|
|
444
|
+
} | undefined;
|
|
424
445
|
match?: {
|
|
425
446
|
token_filters?: {
|
|
426
447
|
kind: "downcase";
|
|
@@ -435,12 +456,6 @@ declare const columnSchema: z.ZodDefault<z.ZodObject<{
|
|
|
435
456
|
m?: number | undefined;
|
|
436
457
|
include_original?: boolean | undefined;
|
|
437
458
|
} | undefined;
|
|
438
|
-
ore?: {} | undefined;
|
|
439
|
-
unique?: {
|
|
440
|
-
token_filters?: {
|
|
441
|
-
kind: "downcase";
|
|
442
|
-
}[] | undefined;
|
|
443
|
-
} | undefined;
|
|
444
459
|
ste_vec?: {
|
|
445
460
|
prefix: string;
|
|
446
461
|
array_index_mode?: "all" | "none" | {
|
|
@@ -450,6 +465,12 @@ declare const columnSchema: z.ZodDefault<z.ZodObject<{
|
|
|
450
465
|
} | undefined;
|
|
451
466
|
} | undefined;
|
|
452
467
|
}, {
|
|
468
|
+
ore?: {} | undefined;
|
|
469
|
+
unique?: {
|
|
470
|
+
token_filters?: {
|
|
471
|
+
kind: "downcase";
|
|
472
|
+
}[] | undefined;
|
|
473
|
+
} | undefined;
|
|
453
474
|
match?: {
|
|
454
475
|
token_filters?: {
|
|
455
476
|
kind: "downcase";
|
|
@@ -464,12 +485,6 @@ declare const columnSchema: z.ZodDefault<z.ZodObject<{
|
|
|
464
485
|
m?: number | undefined;
|
|
465
486
|
include_original?: boolean | undefined;
|
|
466
487
|
} | undefined;
|
|
467
|
-
ore?: {} | undefined;
|
|
468
|
-
unique?: {
|
|
469
|
-
token_filters?: {
|
|
470
|
-
kind: "downcase";
|
|
471
|
-
}[] | undefined;
|
|
472
|
-
} | undefined;
|
|
473
488
|
ste_vec?: {
|
|
474
489
|
prefix: string;
|
|
475
490
|
array_index_mode?: "all" | "none" | {
|
|
@@ -480,8 +495,14 @@ declare const columnSchema: z.ZodDefault<z.ZodObject<{
|
|
|
480
495
|
} | undefined;
|
|
481
496
|
}>>;
|
|
482
497
|
}, "strip", z.ZodTypeAny, {
|
|
483
|
-
cast_as: "string" | "number" | "bigint" | "boolean" | "
|
|
498
|
+
cast_as: "string" | "number" | "bigint" | "boolean" | "date" | "json" | "text";
|
|
484
499
|
indexes: {
|
|
500
|
+
ore?: {} | undefined;
|
|
501
|
+
unique?: {
|
|
502
|
+
token_filters?: {
|
|
503
|
+
kind: "downcase";
|
|
504
|
+
}[] | undefined;
|
|
505
|
+
} | undefined;
|
|
485
506
|
match?: {
|
|
486
507
|
token_filters?: {
|
|
487
508
|
kind: "downcase";
|
|
@@ -496,12 +517,6 @@ declare const columnSchema: z.ZodDefault<z.ZodObject<{
|
|
|
496
517
|
m?: number | undefined;
|
|
497
518
|
include_original?: boolean | undefined;
|
|
498
519
|
} | undefined;
|
|
499
|
-
ore?: {} | undefined;
|
|
500
|
-
unique?: {
|
|
501
|
-
token_filters?: {
|
|
502
|
-
kind: "downcase";
|
|
503
|
-
}[] | undefined;
|
|
504
|
-
} | undefined;
|
|
505
520
|
ste_vec?: {
|
|
506
521
|
prefix: string;
|
|
507
522
|
array_index_mode?: "all" | "none" | {
|
|
@@ -512,8 +527,14 @@ declare const columnSchema: z.ZodDefault<z.ZodObject<{
|
|
|
512
527
|
} | undefined;
|
|
513
528
|
};
|
|
514
529
|
}, {
|
|
515
|
-
cast_as?: "string" | "number" | "bigint" | "boolean" | "
|
|
530
|
+
cast_as?: "string" | "number" | "bigint" | "boolean" | "date" | "json" | "text" | undefined;
|
|
516
531
|
indexes?: {
|
|
532
|
+
ore?: {} | undefined;
|
|
533
|
+
unique?: {
|
|
534
|
+
token_filters?: {
|
|
535
|
+
kind: "downcase";
|
|
536
|
+
}[] | undefined;
|
|
537
|
+
} | undefined;
|
|
517
538
|
match?: {
|
|
518
539
|
token_filters?: {
|
|
519
540
|
kind: "downcase";
|
|
@@ -528,12 +549,6 @@ declare const columnSchema: z.ZodDefault<z.ZodObject<{
|
|
|
528
549
|
m?: number | undefined;
|
|
529
550
|
include_original?: boolean | undefined;
|
|
530
551
|
} | undefined;
|
|
531
|
-
ore?: {} | undefined;
|
|
532
|
-
unique?: {
|
|
533
|
-
token_filters?: {
|
|
534
|
-
kind: "downcase";
|
|
535
|
-
}[] | undefined;
|
|
536
|
-
} | undefined;
|
|
537
552
|
ste_vec?: {
|
|
538
553
|
prefix: string;
|
|
539
554
|
array_index_mode?: "all" | "none" | {
|
|
@@ -653,6 +668,12 @@ declare const encryptConfigSchema: z.ZodObject<{
|
|
|
653
668
|
} | undefined;
|
|
654
669
|
}>>;
|
|
655
670
|
}, "strip", z.ZodTypeAny, {
|
|
671
|
+
ore?: {} | undefined;
|
|
672
|
+
unique?: {
|
|
673
|
+
token_filters?: {
|
|
674
|
+
kind: "downcase";
|
|
675
|
+
}[] | undefined;
|
|
676
|
+
} | undefined;
|
|
656
677
|
match?: {
|
|
657
678
|
token_filters?: {
|
|
658
679
|
kind: "downcase";
|
|
@@ -667,12 +688,6 @@ declare const encryptConfigSchema: z.ZodObject<{
|
|
|
667
688
|
m?: number | undefined;
|
|
668
689
|
include_original?: boolean | undefined;
|
|
669
690
|
} | undefined;
|
|
670
|
-
ore?: {} | undefined;
|
|
671
|
-
unique?: {
|
|
672
|
-
token_filters?: {
|
|
673
|
-
kind: "downcase";
|
|
674
|
-
}[] | undefined;
|
|
675
|
-
} | undefined;
|
|
676
691
|
ste_vec?: {
|
|
677
692
|
prefix: string;
|
|
678
693
|
array_index_mode?: "all" | "none" | {
|
|
@@ -682,6 +697,12 @@ declare const encryptConfigSchema: z.ZodObject<{
|
|
|
682
697
|
} | undefined;
|
|
683
698
|
} | undefined;
|
|
684
699
|
}, {
|
|
700
|
+
ore?: {} | undefined;
|
|
701
|
+
unique?: {
|
|
702
|
+
token_filters?: {
|
|
703
|
+
kind: "downcase";
|
|
704
|
+
}[] | undefined;
|
|
705
|
+
} | undefined;
|
|
685
706
|
match?: {
|
|
686
707
|
token_filters?: {
|
|
687
708
|
kind: "downcase";
|
|
@@ -696,12 +717,6 @@ declare const encryptConfigSchema: z.ZodObject<{
|
|
|
696
717
|
m?: number | undefined;
|
|
697
718
|
include_original?: boolean | undefined;
|
|
698
719
|
} | undefined;
|
|
699
|
-
ore?: {} | undefined;
|
|
700
|
-
unique?: {
|
|
701
|
-
token_filters?: {
|
|
702
|
-
kind: "downcase";
|
|
703
|
-
}[] | undefined;
|
|
704
|
-
} | undefined;
|
|
705
720
|
ste_vec?: {
|
|
706
721
|
prefix: string;
|
|
707
722
|
array_index_mode?: "all" | "none" | {
|
|
@@ -712,8 +727,14 @@ declare const encryptConfigSchema: z.ZodObject<{
|
|
|
712
727
|
} | undefined;
|
|
713
728
|
}>>;
|
|
714
729
|
}, "strip", z.ZodTypeAny, {
|
|
715
|
-
cast_as: "string" | "number" | "bigint" | "boolean" | "
|
|
730
|
+
cast_as: "string" | "number" | "bigint" | "boolean" | "date" | "json" | "text";
|
|
716
731
|
indexes: {
|
|
732
|
+
ore?: {} | undefined;
|
|
733
|
+
unique?: {
|
|
734
|
+
token_filters?: {
|
|
735
|
+
kind: "downcase";
|
|
736
|
+
}[] | undefined;
|
|
737
|
+
} | undefined;
|
|
717
738
|
match?: {
|
|
718
739
|
token_filters?: {
|
|
719
740
|
kind: "downcase";
|
|
@@ -728,12 +749,6 @@ declare const encryptConfigSchema: z.ZodObject<{
|
|
|
728
749
|
m?: number | undefined;
|
|
729
750
|
include_original?: boolean | undefined;
|
|
730
751
|
} | undefined;
|
|
731
|
-
ore?: {} | undefined;
|
|
732
|
-
unique?: {
|
|
733
|
-
token_filters?: {
|
|
734
|
-
kind: "downcase";
|
|
735
|
-
}[] | undefined;
|
|
736
|
-
} | undefined;
|
|
737
752
|
ste_vec?: {
|
|
738
753
|
prefix: string;
|
|
739
754
|
array_index_mode?: "all" | "none" | {
|
|
@@ -744,8 +759,14 @@ declare const encryptConfigSchema: z.ZodObject<{
|
|
|
744
759
|
} | undefined;
|
|
745
760
|
};
|
|
746
761
|
}, {
|
|
747
|
-
cast_as?: "string" | "number" | "bigint" | "boolean" | "
|
|
762
|
+
cast_as?: "string" | "number" | "bigint" | "boolean" | "date" | "json" | "text" | undefined;
|
|
748
763
|
indexes?: {
|
|
764
|
+
ore?: {} | undefined;
|
|
765
|
+
unique?: {
|
|
766
|
+
token_filters?: {
|
|
767
|
+
kind: "downcase";
|
|
768
|
+
}[] | undefined;
|
|
769
|
+
} | undefined;
|
|
749
770
|
match?: {
|
|
750
771
|
token_filters?: {
|
|
751
772
|
kind: "downcase";
|
|
@@ -760,12 +781,6 @@ declare const encryptConfigSchema: z.ZodObject<{
|
|
|
760
781
|
m?: number | undefined;
|
|
761
782
|
include_original?: boolean | undefined;
|
|
762
783
|
} | undefined;
|
|
763
|
-
ore?: {} | undefined;
|
|
764
|
-
unique?: {
|
|
765
|
-
token_filters?: {
|
|
766
|
-
kind: "downcase";
|
|
767
|
-
}[] | undefined;
|
|
768
|
-
} | undefined;
|
|
769
784
|
ste_vec?: {
|
|
770
785
|
prefix: string;
|
|
771
786
|
array_index_mode?: "all" | "none" | {
|
|
@@ -779,8 +794,14 @@ declare const encryptConfigSchema: z.ZodObject<{
|
|
|
779
794
|
}, "strip", z.ZodTypeAny, {
|
|
780
795
|
v: number;
|
|
781
796
|
tables: Record<string, Record<string, {
|
|
782
|
-
cast_as: "string" | "number" | "bigint" | "boolean" | "
|
|
797
|
+
cast_as: "string" | "number" | "bigint" | "boolean" | "date" | "json" | "text";
|
|
783
798
|
indexes: {
|
|
799
|
+
ore?: {} | undefined;
|
|
800
|
+
unique?: {
|
|
801
|
+
token_filters?: {
|
|
802
|
+
kind: "downcase";
|
|
803
|
+
}[] | undefined;
|
|
804
|
+
} | undefined;
|
|
784
805
|
match?: {
|
|
785
806
|
token_filters?: {
|
|
786
807
|
kind: "downcase";
|
|
@@ -795,12 +816,6 @@ declare const encryptConfigSchema: z.ZodObject<{
|
|
|
795
816
|
m?: number | undefined;
|
|
796
817
|
include_original?: boolean | undefined;
|
|
797
818
|
} | undefined;
|
|
798
|
-
ore?: {} | undefined;
|
|
799
|
-
unique?: {
|
|
800
|
-
token_filters?: {
|
|
801
|
-
kind: "downcase";
|
|
802
|
-
}[] | undefined;
|
|
803
|
-
} | undefined;
|
|
804
819
|
ste_vec?: {
|
|
805
820
|
prefix: string;
|
|
806
821
|
array_index_mode?: "all" | "none" | {
|
|
@@ -814,8 +829,14 @@ declare const encryptConfigSchema: z.ZodObject<{
|
|
|
814
829
|
}, {
|
|
815
830
|
v: number;
|
|
816
831
|
tables?: Record<string, Record<string, {
|
|
817
|
-
cast_as?: "string" | "number" | "bigint" | "boolean" | "
|
|
832
|
+
cast_as?: "string" | "number" | "bigint" | "boolean" | "date" | "json" | "text" | undefined;
|
|
818
833
|
indexes?: {
|
|
834
|
+
ore?: {} | undefined;
|
|
835
|
+
unique?: {
|
|
836
|
+
token_filters?: {
|
|
837
|
+
kind: "downcase";
|
|
838
|
+
}[] | undefined;
|
|
839
|
+
} | undefined;
|
|
819
840
|
match?: {
|
|
820
841
|
token_filters?: {
|
|
821
842
|
kind: "downcase";
|
|
@@ -830,12 +851,6 @@ declare const encryptConfigSchema: z.ZodObject<{
|
|
|
830
851
|
m?: number | undefined;
|
|
831
852
|
include_original?: boolean | undefined;
|
|
832
853
|
} | undefined;
|
|
833
|
-
ore?: {} | undefined;
|
|
834
|
-
unique?: {
|
|
835
|
-
token_filters?: {
|
|
836
|
-
kind: "downcase";
|
|
837
|
-
}[] | undefined;
|
|
838
|
-
} | undefined;
|
|
839
854
|
ste_vec?: {
|
|
840
855
|
prefix: string;
|
|
841
856
|
array_index_mode?: "all" | "none" | {
|
|
@@ -903,7 +918,7 @@ declare class EncryptedField {
|
|
|
903
918
|
*/
|
|
904
919
|
dataType(castAs: CastAs): this;
|
|
905
920
|
build(): {
|
|
906
|
-
cast_as: "string" | "number" | "bigint" | "boolean" | "
|
|
921
|
+
cast_as: "string" | "number" | "bigint" | "boolean" | "date" | "json" | "text";
|
|
907
922
|
indexes: {};
|
|
908
923
|
};
|
|
909
924
|
getName(): string;
|
|
@@ -1022,7 +1037,7 @@ declare class EncryptedColumn {
|
|
|
1022
1037
|
*/
|
|
1023
1038
|
searchableJson(): this;
|
|
1024
1039
|
build(): {
|
|
1025
|
-
cast_as: "string" | "number" | "bigint" | "boolean" | "
|
|
1040
|
+
cast_as: "string" | "number" | "bigint" | "boolean" | "date" | "json" | "text";
|
|
1026
1041
|
indexes: {
|
|
1027
1042
|
ore?: OreIndexOpts;
|
|
1028
1043
|
unique?: UniqueIndexOpts;
|
|
@@ -1178,7 +1193,7 @@ declare function encryptedField(valueName: string): EncryptedField;
|
|
|
1178
1193
|
/**
|
|
1179
1194
|
* Build an encrypt config from a list of encrypted tables.
|
|
1180
1195
|
*
|
|
1181
|
-
* @param
|
|
1196
|
+
* @param protectTables - The list of encrypted tables to build the config from.
|
|
1182
1197
|
* @returns An encrypt config object.
|
|
1183
1198
|
*
|
|
1184
1199
|
* @example
|
|
@@ -1199,4 +1214,4 @@ declare function encryptedField(valueName: string): EncryptedField;
|
|
|
1199
1214
|
*/
|
|
1200
1215
|
declare function buildEncryptConfig(...protectTables: Array<EncryptedTable<EncryptedTableColumn>>): EncryptConfig;
|
|
1201
1216
|
|
|
1202
|
-
export { eqlCastAsEnum as A, type BulkDecryptedData as B, type CastAs as C, type Decrypted as D, type Encrypted as E, toEqlCastAs as F, type ClientConfig as G, type DecryptedFields as H, type InferEncrypted as I, type DecryptionResult as J, type KeysetIdentifier as K, type EncryptedFields as L, type MatchIndexOpts as M, type
|
|
1217
|
+
export { eqlCastAsEnum as A, type BulkDecryptedData as B, type CastAs as C, type Decrypted as D, type Encrypted as E, toEqlCastAs as F, type ClientConfig as G, type DecryptedFields as H, type InferEncrypted as I, type DecryptionResult as J, type KeysetIdentifier as K, type EncryptedFields as L, type MatchIndexOpts as M, type EncryptedQuery as N, type OreIndexOpts as O, type EncryptedSearchTerm as P, type QueryTypeName as Q, type OtherFields as R, type ScalarQueryTerm as S, type TokenFilter as T, type UniqueIndexOpts as U, type SearchTerm as V, queryTypes as W, encryptedField as a, encryptedTable as b, EncryptedTable as c, type EncryptedTableColumn as d, encryptedColumn as e, EncryptedColumn as f, type EncryptedValue as g, type EncryptedQueryResult as h, type Client as i, type BulkDecryptPayload as j, type BulkEncryptedData as k, type BulkEncryptPayload as l, type EncryptOptions as m, EncryptedField as n, type EncryptQueryOptions as o, type EncryptedReturnType as p, type EncryptConfig as q, type EncryptedFromSchema as r, type EncryptionClientConfig as s, type InferPlaintext as t, type ColumnSchema as u, type EqlCastAs as v, type SteVecIndexOpts as w, buildEncryptConfig as x, castAsEnum as y, encryptConfigSchema as z };
|