@cipherstash/stack 0.6.0 → 0.8.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 +12 -0
- package/README.md +8 -0
- package/dist/bin/stash.js +22 -3
- package/dist/bin/stash.js.map +1 -1
- package/dist/{chunk-YLISU7FD.js → chunk-3BOJHROP.js} +3 -3
- package/dist/{chunk-TGUELLJS.js → chunk-4C52Q5R6.js} +10 -2
- package/dist/chunk-4C52Q5R6.js.map +1 -0
- package/dist/{chunk-Y35W4WFN.js → chunk-Y3KSTOVR.js} +35 -4
- package/dist/chunk-Y3KSTOVR.js.map +1 -0
- package/dist/{client-CJueivkw.d.cts → client-CV7X5Hrt.d.cts} +7 -1
- package/dist/{client-hHEpZIZH.d.ts → client-_63nbmO7.d.ts} +7 -1
- package/dist/client.cjs +14 -3
- 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 +14 -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 +1 -1
- package/dist/dynamodb/index.d.cts +2 -2
- package/dist/dynamodb/index.d.ts +2 -2
- package/dist/encryption/index.cjs +19 -0
- 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 +2 -2
- package/dist/index.cjs +22 -3
- 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 +3 -3
- package/dist/schema/index.cjs +38 -5
- 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 +7 -3
- package/dist/secrets/index.cjs +22 -3
- package/dist/secrets/index.cjs.map +1 -1
- package/dist/secrets/index.d.cts +1 -1
- package/dist/secrets/index.d.ts +1 -1
- package/dist/secrets/index.js +3 -3
- package/dist/supabase/index.cjs +28 -5
- 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 +17 -5
- package/dist/supabase/index.js.map +1 -1
- package/dist/{types-public-07ilcGY-.d.ts → types-public-B5YxQhR6.d.cts} +25 -9
- package/dist/{types-public-07ilcGY-.d.cts → types-public-B5YxQhR6.d.ts} +25 -9
- package/dist/types-public.d.cts +1 -1
- package/dist/types-public.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-TGUELLJS.js.map +0 -1
- package/dist/chunk-Y35W4WFN.js.map +0 -1
- /package/dist/{chunk-YLISU7FD.js.map → chunk-3BOJHROP.js.map} +0 -0
package/dist/drizzle/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
2
2
|
import { PgTable, PgCustomColumn } from 'drizzle-orm/pg-core';
|
|
3
|
-
import { c as EncryptedTable, f as EncryptedColumn, C as CastAs, M as MatchIndexOpts, T as TokenFilter } from '../types-public-
|
|
4
|
-
import { a as EncryptionClient } from '../client-
|
|
3
|
+
import { c as EncryptedTable, f as EncryptedColumn, C as CastAs, M as MatchIndexOpts, T as TokenFilter } from '../types-public-B5YxQhR6.cjs';
|
|
4
|
+
import { a as EncryptionClient } from '../client-CV7X5Hrt.cjs';
|
|
5
5
|
import { SQLWrapper, SQL, exists, notExists, isNull, isNotNull, not, arrayContains, arrayContained, arrayOverlaps } from 'drizzle-orm';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '@cipherstash/protect-ffi';
|
package/dist/drizzle/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
2
2
|
import { PgTable, PgCustomColumn } from 'drizzle-orm/pg-core';
|
|
3
|
-
import { c as EncryptedTable, f as EncryptedColumn, C as CastAs, M as MatchIndexOpts, T as TokenFilter } from '../types-public-
|
|
4
|
-
import { a as EncryptionClient } from '../client-
|
|
3
|
+
import { c as EncryptedTable, f as EncryptedColumn, C as CastAs, M as MatchIndexOpts, T as TokenFilter } from '../types-public-B5YxQhR6.js';
|
|
4
|
+
import { a as EncryptionClient } from '../client-_63nbmO7.js';
|
|
5
5
|
import { SQLWrapper, SQL, exists, notExists, isNull, isNotNull, not, arrayContains, arrayContained, arrayOverlaps } from 'drizzle-orm';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '@cipherstash/protect-ffi';
|
package/dist/drizzle/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as EncryptionClient } from '../client-
|
|
2
|
-
import { D as Decrypted, g as EncryptedValue, c as EncryptedTable, d as EncryptedTableColumn } from '../types-public-
|
|
1
|
+
import { a as EncryptionClient } from '../client-CV7X5Hrt.cjs';
|
|
2
|
+
import { D as Decrypted, g as EncryptedValue, c as EncryptedTable, d as EncryptedTableColumn } from '../types-public-B5YxQhR6.cjs';
|
|
3
3
|
import { ProtectErrorCode } from '@cipherstash/protect-ffi';
|
|
4
4
|
import { Result } from '@byteslice/result';
|
|
5
5
|
import '../errors/index.cjs';
|
package/dist/dynamodb/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as EncryptionClient } from '../client-
|
|
2
|
-
import { D as Decrypted, g as EncryptedValue, c as EncryptedTable, d as EncryptedTableColumn } from '../types-public-
|
|
1
|
+
import { a as EncryptionClient } from '../client-_63nbmO7.js';
|
|
2
|
+
import { D as Decrypted, g as EncryptedValue, c as EncryptedTable, d as EncryptedTableColumn } from '../types-public-B5YxQhR6.js';
|
|
3
3
|
import { ProtectErrorCode } from '@cipherstash/protect-ffi';
|
|
4
4
|
import { Result } from '@byteslice/result';
|
|
5
5
|
import '../errors/index.js';
|
|
@@ -47,6 +47,17 @@ var EncryptionErrorTypes = {
|
|
|
47
47
|
|
|
48
48
|
// src/schema/index.ts
|
|
49
49
|
var import_zod = require("zod");
|
|
50
|
+
var eqlCastAsEnum = import_zod.z.enum([
|
|
51
|
+
"text",
|
|
52
|
+
"int",
|
|
53
|
+
"small_int",
|
|
54
|
+
"big_int",
|
|
55
|
+
"real",
|
|
56
|
+
"double",
|
|
57
|
+
"boolean",
|
|
58
|
+
"date",
|
|
59
|
+
"jsonb"
|
|
60
|
+
]).default("text");
|
|
50
61
|
var castAsEnum = import_zod.z.enum(["bigint", "boolean", "date", "number", "string", "json", "text"]).default("text");
|
|
51
62
|
var tokenFilterSchema = import_zod.z.object({
|
|
52
63
|
kind: import_zod.z.literal("downcase")
|
|
@@ -2539,6 +2550,14 @@ var EncryptionClient = class {
|
|
|
2539
2550
|
workspaceId: this.workspaceId
|
|
2540
2551
|
};
|
|
2541
2552
|
}
|
|
2553
|
+
/**
|
|
2554
|
+
* Get the encrypt config object.
|
|
2555
|
+
*
|
|
2556
|
+
* @returns The encrypt config object.
|
|
2557
|
+
*/
|
|
2558
|
+
getEncryptConfig() {
|
|
2559
|
+
return this.encryptConfig;
|
|
2560
|
+
}
|
|
2542
2561
|
};
|
|
2543
2562
|
var Encryption = async (config) => {
|
|
2544
2563
|
const { schemas, config: clientConfig } = config;
|