@prisma-next/extension-cipherstash 0.0.1
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 +153 -0
- package/dist/call-classes-CSvD7w8U.mjs +206 -0
- package/dist/call-classes-CSvD7w8U.mjs.map +1 -0
- package/dist/column-types.d.mts +33 -0
- package/dist/column-types.d.mts.map +1 -0
- package/dist/column-types.mjs +42 -0
- package/dist/column-types.mjs.map +1 -0
- package/dist/constants-BDxL9Pe3.d.mts +22 -0
- package/dist/constants-BDxL9Pe3.d.mts.map +1 -0
- package/dist/constants-B_2TNvUi.mjs +46 -0
- package/dist/constants-B_2TNvUi.mjs.map +1 -0
- package/dist/control.d.mts +7 -0
- package/dist/control.d.mts.map +1 -0
- package/dist/control.mjs +430 -0
- package/dist/control.mjs.map +1 -0
- package/dist/descriptor-meta-BgQfZTAF.mjs +129 -0
- package/dist/descriptor-meta-BgQfZTAF.mjs.map +1 -0
- package/dist/envelope-P9BxfJNr.mjs +271 -0
- package/dist/envelope-P9BxfJNr.mjs.map +1 -0
- package/dist/middleware.d.mts +13 -0
- package/dist/middleware.d.mts.map +1 -0
- package/dist/middleware.mjs +129 -0
- package/dist/middleware.mjs.map +1 -0
- package/dist/migration.d.mts +141 -0
- package/dist/migration.d.mts.map +1 -0
- package/dist/migration.mjs +2 -0
- package/dist/operation-types.d.mts +49 -0
- package/dist/operation-types.d.mts.map +1 -0
- package/dist/operation-types.mjs +1 -0
- package/dist/pack.d.mts +86 -0
- package/dist/pack.d.mts.map +1 -0
- package/dist/pack.mjs +2 -0
- package/dist/runtime.d.mts +207 -0
- package/dist/runtime.d.mts.map +1 -0
- package/dist/runtime.mjs +429 -0
- package/dist/runtime.mjs.map +1 -0
- package/dist/sdk-D5FTGyzp.d.mts +67 -0
- package/dist/sdk-D5FTGyzp.d.mts.map +1 -0
- package/package.json +69 -0
- package/src/contract/authoring.ts +62 -0
- package/src/contract/contract.d.ts +149 -0
- package/src/contract/contract.json +104 -0
- package/src/contract/contract.prisma +46 -0
- package/src/execution/abort.ts +143 -0
- package/src/execution/codec-runtime.ts +209 -0
- package/src/execution/decrypt-all.ts +217 -0
- package/src/execution/envelope.ts +263 -0
- package/src/execution/operators.ts +211 -0
- package/src/execution/parameterized.ts +71 -0
- package/src/execution/routing.ts +93 -0
- package/src/execution/sdk.ts +68 -0
- package/src/exports/column-types.ts +62 -0
- package/src/exports/contract-space-typing.ts +86 -0
- package/src/exports/control.ts +120 -0
- package/src/exports/middleware.ts +24 -0
- package/src/exports/migration.ts +43 -0
- package/src/exports/operation-types.ts +16 -0
- package/src/exports/pack.ts +13 -0
- package/src/exports/runtime.ts +110 -0
- package/src/extension-metadata/codec-metadata.ts +81 -0
- package/src/extension-metadata/constants.ts +70 -0
- package/src/extension-metadata/descriptor-meta.ts +76 -0
- package/src/middleware/bulk-encrypt.ts +192 -0
- package/src/migration/call-classes.ts +350 -0
- package/src/migration/cipherstash-codec.ts +157 -0
- package/src/migration/eql-bundle.ts +29 -0
- package/src/migration/eql-install.generated.ts +5751 -0
- package/src/types/operation-types.ts +81 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vendored CipherStash EQL bundle SQL.
|
|
3
|
+
*
|
|
4
|
+
* The CipherStash team ships the bundle as a single Postgres script
|
|
5
|
+
* (~5,750 lines, currently `eql-2.2.1`) that creates the `eql_v2`
|
|
6
|
+
* schema, the `eql_v2_*` composite types / domains, the
|
|
7
|
+
* `eql_v2_configuration` table, plus roughly 169 functions, 46
|
|
8
|
+
* operators, 4 casts, and 9 operator classes / families. CipherStash
|
|
9
|
+
* treats the bundle as one indivisible artefact: its contents flow
|
|
10
|
+
* into the `cipherstash:install-eql-bundle-v1` migration op
|
|
11
|
+
* **byte-for-byte** with no fork or split.
|
|
12
|
+
*
|
|
13
|
+
* The bundle source lives in {@link ./eql-install.generated} — a
|
|
14
|
+
* single committed `.generated.ts` file produced by
|
|
15
|
+
* `scripts/vendor-eql-install.ts`. Bumping the bundle version
|
|
16
|
+
* regenerates that file and re-runs
|
|
17
|
+
* `pnpm --filter @prisma-next/extension-cipherstash test` to confirm
|
|
18
|
+
* descriptor self-consistency.
|
|
19
|
+
*
|
|
20
|
+
* Hash impact: the bundle string lives inside the `installEqlBundle`
|
|
21
|
+
* migration op's `execute[]`, **not** in `contract.json` — so swapping
|
|
22
|
+
* the bundle changes `migrationHash` (consumed by the runner at apply
|
|
23
|
+
* time, see `packages/1-framework/3-tooling/migration/src/hash.ts`)
|
|
24
|
+
* but leaves `headRef.hash` (which only digests the contract IR)
|
|
25
|
+
* untouched. The descriptor self-consistency test in
|
|
26
|
+
* `test/descriptor.test.ts` re-runs `assertDescriptorSelfConsistency`
|
|
27
|
+
* to confirm that invariant.
|
|
28
|
+
*/
|
|
29
|
+
export { EQL_INSTALL_SQL as EQL_BUNDLE_SQL, EQL_INSTALL_VERSION } from './eql-install.generated';
|