@prisma-next/framework-components 0.5.0-dev.60 → 0.5.0-dev.61
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 +11 -12
- package/dist/codec-BUBJeOk4.d.mts +168 -0
- package/dist/codec-BUBJeOk4.d.mts.map +1 -0
- package/dist/codec.d.mts +49 -2
- package/dist/codec.d.mts.map +1 -0
- package/dist/codec.mjs +54 -25
- package/dist/codec.mjs.map +1 -1
- package/dist/components.d.mts +2 -2
- package/dist/control.d.mts +3 -3
- package/dist/control.d.mts.map +1 -1
- package/dist/control.mjs +27 -10
- package/dist/control.mjs.map +1 -1
- package/dist/execution.d.mts +2 -2
- package/dist/{framework-components-BvzjH6Pt.d.mts → framework-components-BVqm1I48.d.mts} +23 -49
- package/dist/framework-components-BVqm1I48.d.mts.map +1 -0
- package/dist/framework-components-BsWST1Rn.mjs.map +1 -1
- package/dist/psl-ast-BlDveJZ4.d.mts.map +1 -1
- package/dist/runtime.d.mts +1 -1
- package/dist/runtime.d.mts.map +1 -1
- package/package.json +6 -6
- package/src/control/control-stack.ts +52 -13
- package/src/exports/codec.ts +20 -7
- package/src/shared/codec-descriptor.ts +87 -0
- package/src/shared/codec-types.ts +22 -204
- package/src/shared/codec.ts +80 -0
- package/src/shared/column-spec.ts +83 -0
- package/src/shared/framework-components.ts +22 -48
- package/dist/codec-types-MWvfFmu1.d.mts +0 -207
- package/dist/codec-types-MWvfFmu1.d.mts.map +0 -1
- package/dist/framework-components-BvzjH6Pt.d.mts.map +0 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `column()` packager + `ColumnSpec<R, P>` shape + `ColumnHelperFor<D>` variants for tying per-codec column helpers to their descriptor.
|
|
3
|
+
*
|
|
4
|
+
* `ColumnSpec<R, P>` extends {@link ColumnTypeDescriptor} so it remains a drop-in for contract authoring sites that consume `ColumnTypeDescriptor` shapes — both types live at the framework-components layer so the `extends` clause is real (no structural mirror).
|
|
5
|
+
*
|
|
6
|
+
* `column()` is a trivial, non-polymorphic packager. Generic over `R` (the codec instance type returned by the descriptor's curried factory) and `P` (the typeParams record). The framework does NOT try to infer `R` and `P` from a descriptor — that path is the variance trap. Per-codec helpers absorb the descriptor relationship instead and tie themselves to their descriptor via `satisfies ColumnHelperFor<D>` or `satisfies ColumnHelperForStrict<D>`.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import type { CodecDescriptor } from './codec-descriptor';
|
|
10
|
+
import type { CodecInstanceContext } from './codec-types';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Authored column-type descriptor — the data shape an authoring site (PSL or TypeScript builders) attaches to a column to identify its codec and its native database type.
|
|
14
|
+
*
|
|
15
|
+
* Lives at the framework-components layer alongside the codec types so codec-author packages (e.g. column-spec / `column()` packagers) can extend it directly without crossing layer boundaries.
|
|
16
|
+
*
|
|
17
|
+
* @template TCodecId Narrowed codec id literal for sites that thread a specific codec id through the type system.
|
|
18
|
+
*/
|
|
19
|
+
export type ColumnTypeDescriptor<TCodecId extends string = string> = {
|
|
20
|
+
readonly codecId: TCodecId;
|
|
21
|
+
readonly nativeType: string;
|
|
22
|
+
readonly typeParams?: Record<string, unknown> | undefined;
|
|
23
|
+
readonly typeRef?: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Column spec carrying the codec factory closure alongside the {@link ColumnTypeDescriptor} fields. Codec authors return a `ColumnSpec` from per-codec column helpers; the runtime materializes the codec instance by calling `codecFactory(ctx)` once it knows the column's `CodecInstanceContext`.
|
|
28
|
+
*
|
|
29
|
+
* Extends {@link ColumnTypeDescriptor} so `ColumnSpec` instances flow directly into contract-authoring sites that consume the descriptor shape — no structural mirroring required.
|
|
30
|
+
*/
|
|
31
|
+
export interface ColumnSpec<R, P extends Record<string, unknown> | undefined>
|
|
32
|
+
extends ColumnTypeDescriptor {
|
|
33
|
+
readonly codecFactory: (ctx: CodecInstanceContext) => R;
|
|
34
|
+
readonly typeParams: P;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Trivial column packager. Per-codec helpers call this directly with the result of `descriptor.factory(params)` — direct method invocation binds the descriptor's method-level generic at the call site and the literal flows through `R`.
|
|
39
|
+
*
|
|
40
|
+
* `nativeType` is the column's database-native type spelling — the value the postgres adapter's migration planner, the SQL renderer's cast policy, and the contract's `meta.db.<family>.<target>.nativeType` slot read. Per-codec helpers pass the literal native-type string for their codec (e.g. `'text'`, `'int4'`, `'character varying'`); for codecs whose native-type spelling depends on parameters (none today; reserved for future shapes), the helper computes the rendered string before calling `column`. The framework does not derive the value from `codecId` — that mapping is target-specific and lives at the helper.
|
|
41
|
+
*/
|
|
42
|
+
export function column<R, P extends Record<string, unknown> | undefined>(
|
|
43
|
+
codecFactory: (ctx: CodecInstanceContext) => R,
|
|
44
|
+
codecId: string,
|
|
45
|
+
typeParams: P,
|
|
46
|
+
nativeType: string,
|
|
47
|
+
): ColumnSpec<R, P> {
|
|
48
|
+
return {
|
|
49
|
+
codecFactory,
|
|
50
|
+
codecId,
|
|
51
|
+
typeParams,
|
|
52
|
+
nativeType,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Coarse `satisfies` shape — checks the helper's typeParams record matches the descriptor's factory params. Catches "wrong typeParams shape" wiring mistakes; does NOT catch "wrong descriptor's factory" mistakes (the codec slot is left as `unknown`).
|
|
58
|
+
*
|
|
59
|
+
* Use when the codec's `ReturnType<factory>` is unstable (e.g. heavily overloaded factories where extraction widens too much).
|
|
60
|
+
*/
|
|
61
|
+
// biome-ignore lint/suspicious/noExplicitAny: variance erasure — `CodecDescriptor<P>` is invariant in P, so concrete subclasses do not extend `CodecDescriptor<unknown>`; matches the existing `AnyCodecDescriptor` pattern
|
|
62
|
+
export type ColumnHelperFor<D extends CodecDescriptor<any>> = (
|
|
63
|
+
// biome-ignore lint/suspicious/noExplicitAny: helper signature is the verification subject; satisfies clauses can't narrow this without circular inference
|
|
64
|
+
...args: any[]
|
|
65
|
+
) => ColumnSpec<unknown, ColumnHelperParams<D>>;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Strict `satisfies` shape — also checks the helper's codec is at least the *base* codec instance type the descriptor's factory returns. `ReturnType<ReturnType<D['factory']>>` widens method generics to their constraint, so this only sanity-checks the wiring at the base type level. Literal preservation comes from the direct `descriptor.factory(...)` call inside the helper, not from `satisfies`.
|
|
69
|
+
*/
|
|
70
|
+
// biome-ignore lint/suspicious/noExplicitAny: variance erasure — `CodecDescriptor<P>` is invariant in P, so concrete subclasses do not extend `CodecDescriptor<unknown>`; matches the existing `AnyCodecDescriptor` pattern
|
|
71
|
+
export type ColumnHelperForStrict<D extends CodecDescriptor<any>> = (
|
|
72
|
+
// biome-ignore lint/suspicious/noExplicitAny: helper signature is the verification subject; satisfies clauses can't narrow this without circular inference
|
|
73
|
+
...args: any[]
|
|
74
|
+
) => ColumnSpec<ReturnType<ReturnType<D['factory']>>, ColumnHelperParams<D>>;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Coerce a descriptor's `factory` first parameter into the typeParams shape `ColumnSpec` accepts. Non-parameterized descriptors (factory with no params, or `params: void`) collapse to `undefined`; parameterized descriptors keep the params record shape.
|
|
78
|
+
*/
|
|
79
|
+
// biome-ignore lint/suspicious/noExplicitAny: variance erasure — see above
|
|
80
|
+
type ColumnHelperParams<D extends CodecDescriptor<any>> =
|
|
81
|
+
Parameters<D['factory']>[0] extends Record<string, unknown>
|
|
82
|
+
? Parameters<D['factory']>[0]
|
|
83
|
+
: undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AnyCodecDescriptor } from './codec-descriptor';
|
|
2
2
|
import type { AuthoringContributions } from './framework-authoring';
|
|
3
3
|
import type { ControlMutationDefaults } from './mutation-default-types';
|
|
4
4
|
import type { TypesImportSpec } from './types-import-spec';
|
|
@@ -13,10 +13,7 @@ export interface ComponentMetadata {
|
|
|
13
13
|
/**
|
|
14
14
|
* Capabilities this component provides.
|
|
15
15
|
*
|
|
16
|
-
* For adapters, capabilities must be declared on the adapter descriptor (so they are emitted into
|
|
17
|
-
* the contract) and also exposed in runtime adapter code (e.g. `adapter.profile.capabilities`);
|
|
18
|
-
* keep these declarations in sync. Targets are identifiers/descriptors and typically do not
|
|
19
|
-
* declare capabilities.
|
|
16
|
+
* For adapters, capabilities must be declared on the adapter descriptor (so they are emitted into the contract) and also exposed in runtime adapter code (e.g. `adapter.profile.capabilities`); keep these declarations in sync. Targets are identifiers/descriptors and typically do not declare capabilities.
|
|
20
17
|
*/
|
|
21
18
|
readonly capabilities?: Record<string, unknown>;
|
|
22
19
|
|
|
@@ -24,29 +21,25 @@ export interface ComponentMetadata {
|
|
|
24
21
|
readonly types?: {
|
|
25
22
|
readonly codecTypes?: {
|
|
26
23
|
/**
|
|
27
|
-
* Base codec types import spec.
|
|
28
|
-
* Optional: adapters typically provide this, extensions usually don't.
|
|
24
|
+
* Base codec types import spec. Optional: adapters typically provide this, extensions usually don't.
|
|
29
25
|
*/
|
|
30
26
|
readonly import?: TypesImportSpec;
|
|
31
27
|
/**
|
|
32
28
|
* Additional type-only imports for parameterized codec branded types.
|
|
33
29
|
*
|
|
34
|
-
* These imports are included in generated `contract.d.ts` but are NOT treated as
|
|
35
|
-
* codec type maps (i.e., they should not be intersected into `export type CodecTypes = ...`).
|
|
30
|
+
* These imports are included in generated `contract.d.ts` but are NOT treated as codec type maps (i.e., they should not be intersected into `export type CodecTypes = ...`).
|
|
36
31
|
*
|
|
37
32
|
* Example: `Vector<N>` for pgvector codecs that emit `Vector<1536>`
|
|
38
33
|
*/
|
|
39
34
|
readonly typeImports?: ReadonlyArray<TypesImportSpec>;
|
|
40
35
|
/**
|
|
41
|
-
* Optional control-plane hooks keyed by codecId.
|
|
42
|
-
* Used by family-specific planners/verifiers to handle storage types.
|
|
36
|
+
* Optional control-plane hooks keyed by codecId. Used by family-specific planners/verifiers to handle storage types.
|
|
43
37
|
*/
|
|
44
38
|
readonly controlPlaneHooks?: Record<string, unknown>;
|
|
45
39
|
/**
|
|
46
|
-
* Codec
|
|
47
|
-
* Used to build a CodecLookup for codec-dispatched type rendering during emission.
|
|
40
|
+
* Codec descriptors contributed by this component. Source of truth for codec-id-keyed metadata (`traits`, `targetTypes`, `meta`, `renderOutputType`) consumed by `extractCodecLookup`, and used to materialize representative `Codec` instances for codec-dispatched type rendering during emission.
|
|
48
41
|
*/
|
|
49
|
-
readonly
|
|
42
|
+
readonly codecDescriptors?: ReadonlyArray<AnyCodecDescriptor>;
|
|
50
43
|
};
|
|
51
44
|
readonly operationTypes?: { readonly import: TypesImportSpec };
|
|
52
45
|
readonly queryOperationTypes?: { readonly import: TypesImportSpec };
|
|
@@ -61,21 +54,17 @@ export interface ComponentMetadata {
|
|
|
61
54
|
/**
|
|
62
55
|
* Optional pure-data authoring contributions exposed by this component.
|
|
63
56
|
*
|
|
64
|
-
* These contributions are safe to include on pack refs and descriptors because
|
|
65
|
-
* they contain only declarative metadata. Higher-level authoring packages may
|
|
66
|
-
* project them into concrete helper functions for TS-first workflows.
|
|
57
|
+
* These contributions are safe to include on pack refs and descriptors because they contain only declarative metadata. Higher-level authoring packages may project them into concrete helper functions for TS-first workflows.
|
|
67
58
|
*/
|
|
68
59
|
readonly authoring?: AuthoringContributions;
|
|
69
60
|
|
|
70
61
|
/**
|
|
71
|
-
* Scalar type name to codec ID mapping contributed by this component.
|
|
72
|
-
* Assembled by `createControlStack` with duplicate detection.
|
|
62
|
+
* Scalar type name to codec ID mapping contributed by this component. Assembled by `createControlStack` with duplicate detection.
|
|
73
63
|
*/
|
|
74
64
|
readonly scalarTypeDescriptors?: ReadonlyMap<string, string>;
|
|
75
65
|
|
|
76
66
|
/**
|
|
77
|
-
* Mutation default function handlers and generator descriptors contributed
|
|
78
|
-
* by this component. Assembled by `createControlStack` with duplicate detection.
|
|
67
|
+
* Mutation default function handlers and generator descriptors contributed by this component. Assembled by `createControlStack` with duplicate detection.
|
|
79
68
|
*/
|
|
80
69
|
readonly controlMutationDefaults?: ControlMutationDefaults;
|
|
81
70
|
}
|
|
@@ -83,13 +72,9 @@ export interface ComponentMetadata {
|
|
|
83
72
|
/**
|
|
84
73
|
* Base descriptor for any framework component.
|
|
85
74
|
*
|
|
86
|
-
* All component descriptors share these fundamental properties that identify
|
|
87
|
-
* the component and provide its metadata. This interface is extended by
|
|
88
|
-
* specific descriptor types (FamilyDescriptor, TargetDescriptor, etc.).
|
|
75
|
+
* All component descriptors share these fundamental properties that identify the component and provide its metadata. This interface is extended by specific descriptor types (FamilyDescriptor, TargetDescriptor, etc.).
|
|
89
76
|
*
|
|
90
|
-
* @template Kind - Discriminator literal identifying the component type.
|
|
91
|
-
* Built-in kinds are 'family', 'target', 'adapter', 'driver', 'extension',
|
|
92
|
-
* but the type accepts any string to allow ecosystem extensions.
|
|
77
|
+
* @template Kind - Discriminator literal identifying the component type. Built-in kinds are 'family', 'target', 'adapter', 'driver', 'extension', but the type accepts any string to allow ecosystem extensions.
|
|
93
78
|
*
|
|
94
79
|
* @example
|
|
95
80
|
* ```ts
|
|
@@ -163,14 +148,12 @@ export function checkContractComponentRequirements(
|
|
|
163
148
|
/**
|
|
164
149
|
* Descriptor for a family component.
|
|
165
150
|
*
|
|
166
|
-
* A "family" represents a category of data sources with shared semantics
|
|
167
|
-
* (e.g., SQL databases, document stores). Families define:
|
|
151
|
+
* A "family" represents a category of data sources with shared semantics (e.g., SQL databases, document stores). Families define:
|
|
168
152
|
* - Query semantics and operations (SELECT, INSERT, find, aggregate, etc.)
|
|
169
153
|
* - Contract structure (tables vs collections, columns vs fields)
|
|
170
154
|
* - Type system and codecs
|
|
171
155
|
*
|
|
172
|
-
* Families are the top-level grouping. Each family contains multiple targets
|
|
173
|
-
* (e.g., SQL family contains Postgres, MySQL, SQLite targets).
|
|
156
|
+
* Families are the top-level grouping. Each family contains multiple targets (e.g., SQL family contains Postgres, MySQL, SQLite targets).
|
|
174
157
|
*
|
|
175
158
|
* Extended by plane-specific descriptors:
|
|
176
159
|
* - `ControlFamilyDescriptor` - adds `emission` for CLI/tooling operations
|
|
@@ -195,13 +178,11 @@ export interface FamilyDescriptor<TFamilyId extends string> extends ComponentDes
|
|
|
195
178
|
/**
|
|
196
179
|
* Descriptor for a target component.
|
|
197
180
|
*
|
|
198
|
-
* A "target" represents a specific database or data store within a family
|
|
199
|
-
* (e.g., Postgres, MySQL, MongoDB). Targets define:
|
|
181
|
+
* A "target" represents a specific database or data store within a family (e.g., Postgres, MySQL, MongoDB). Targets define:
|
|
200
182
|
* - Native type mappings (e.g., Postgres int4 → TypeScript number)
|
|
201
183
|
* - Target-specific capabilities (e.g., RETURNING, LATERAL joins)
|
|
202
184
|
*
|
|
203
|
-
* Targets are bound to a family and provide the target-specific implementation
|
|
204
|
-
* details that adapters and drivers use.
|
|
185
|
+
* Targets are bound to a family and provide the target-specific implementation details that adapters and drivers use.
|
|
205
186
|
*
|
|
206
187
|
* Extended by plane-specific descriptors:
|
|
207
188
|
* - `ControlTargetDescriptor` - adds optional `migrations` capability
|
|
@@ -229,8 +210,7 @@ export interface TargetDescriptor<TFamilyId extends string, TTargetId extends st
|
|
|
229
210
|
}
|
|
230
211
|
|
|
231
212
|
/**
|
|
232
|
-
* Base shape for any pack reference.
|
|
233
|
-
* Pack refs are pure JSON-friendly objects safe to import in authoring flows.
|
|
213
|
+
* Base shape for any pack reference. Pack refs are pure JSON-friendly objects safe to import in authoring flows.
|
|
234
214
|
*/
|
|
235
215
|
export interface PackRefBase<Kind extends string, TFamilyId extends string>
|
|
236
216
|
extends ComponentMetadata {
|
|
@@ -274,14 +254,12 @@ export type DriverPackRef<
|
|
|
274
254
|
/**
|
|
275
255
|
* Descriptor for an adapter component.
|
|
276
256
|
*
|
|
277
|
-
* An "adapter" provides the protocol and dialect implementation for a target.
|
|
278
|
-
* Adapters handle:
|
|
257
|
+
* An "adapter" provides the protocol and dialect implementation for a target. Adapters handle:
|
|
279
258
|
* - SQL/query generation (lowering AST to target-specific syntax)
|
|
280
259
|
* - Codec registration (encoding/decoding between JS and wire types)
|
|
281
260
|
* - Type mappings and coercions
|
|
282
261
|
*
|
|
283
|
-
* Adapters are bound to a specific family+target combination and work with
|
|
284
|
-
* any compatible driver for that target.
|
|
262
|
+
* Adapters are bound to a specific family+target combination and work with any compatible driver for that target.
|
|
285
263
|
*
|
|
286
264
|
* Extended by plane-specific descriptors:
|
|
287
265
|
* - `ControlAdapterDescriptor` - control-plane factory
|
|
@@ -311,16 +289,13 @@ export interface AdapterDescriptor<TFamilyId extends string, TTargetId extends s
|
|
|
311
289
|
/**
|
|
312
290
|
* Descriptor for a driver component.
|
|
313
291
|
*
|
|
314
|
-
* A "driver" provides the connection and execution layer for a target.
|
|
315
|
-
* Drivers handle:
|
|
292
|
+
* A "driver" provides the connection and execution layer for a target. Drivers handle:
|
|
316
293
|
* - Connection management (pooling, timeouts, retries)
|
|
317
294
|
* - Query execution (sending SQL/commands, receiving results)
|
|
318
295
|
* - Transaction management
|
|
319
296
|
* - Wire protocol communication
|
|
320
297
|
*
|
|
321
|
-
* Drivers are bound to a specific family+target and work with any compatible
|
|
322
|
-
* adapter. Multiple drivers can exist for the same target (e.g., node-postgres
|
|
323
|
-
* vs postgres.js for Postgres).
|
|
298
|
+
* Drivers are bound to a specific family+target and work with any compatible adapter. Multiple drivers can exist for the same target (e.g., node-postgres vs postgres.js for Postgres).
|
|
324
299
|
*
|
|
325
300
|
* Extended by plane-specific descriptors:
|
|
326
301
|
* - `ControlDriverDescriptor` - creates driver from connection URL
|
|
@@ -355,8 +330,7 @@ export interface DriverDescriptor<TFamilyId extends string, TTargetId extends st
|
|
|
355
330
|
* - Custom types and codecs (e.g., vector type)
|
|
356
331
|
* - Extended query capabilities
|
|
357
332
|
*
|
|
358
|
-
* Extensions are bound to a specific family+target and are registered in the
|
|
359
|
-
* config alongside the core components. Multiple extensions can be used together.
|
|
333
|
+
* Extensions are bound to a specific family+target and are registered in the config alongside the core components. Multiple extensions can be used together.
|
|
360
334
|
*
|
|
361
335
|
* Extended by plane-specific descriptors:
|
|
362
336
|
* - `ControlExtensionDescriptor` - control-plane extension factory
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import { JsonValue } from "@prisma-next/contract/types";
|
|
2
|
-
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
3
|
-
|
|
4
|
-
//#region src/shared/codec-types.d.ts
|
|
5
|
-
type CodecTrait = 'equality' | 'order' | 'boolean' | 'numeric' | 'textual'
|
|
6
|
-
/**
|
|
7
|
-
* The codec carries a per-instance `validate(value: unknown) =>
|
|
8
|
-
* JsonSchemaValidationResult` function on the resolved codec object that
|
|
9
|
-
* the framework's `JsonSchemaValidatorRegistry` consults at runtime. The
|
|
10
|
-
* trait gates the `extractValidator` cast from structurally-typed
|
|
11
|
-
* `unknown` to a typed validator view.
|
|
12
|
-
*
|
|
13
|
-
* Retirement target. The unified `CodecDescriptor` model moves
|
|
14
|
-
* validation into the resolved codec's `decode` body; the parallel
|
|
15
|
-
* `JsonSchemaValidatorRegistry` (and this trait alongside it) retires
|
|
16
|
-
* under TML-2357 (T3.5.12). Per-library JSON extensions like
|
|
17
|
-
* `@prisma-next/extension-arktype-json` already follow the new pattern.
|
|
18
|
-
*/ | 'json-validator';
|
|
19
|
-
/**
|
|
20
|
-
* Per-call context the runtime threads to every `codec.encode` /
|
|
21
|
-
* `codec.decode` invocation for a single `runtime.execute()` call.
|
|
22
|
-
*
|
|
23
|
-
* The framework-level shape is family-agnostic and carries one field:
|
|
24
|
-
*
|
|
25
|
-
* - `signal?: AbortSignal` — per-query cancellation. The runtime returns
|
|
26
|
-
* a `RUNTIME.ABORTED` envelope when the signal aborts; codec authors
|
|
27
|
-
* who forward `signal` to their underlying SDK get true cancellation
|
|
28
|
-
* of in-flight network calls.
|
|
29
|
-
*
|
|
30
|
-
* Family layers extend this base with their own shape-of-call metadata:
|
|
31
|
-
* the SQL family adds `column?: SqlColumnRef` via `SqlCodecCallContext`
|
|
32
|
-
* (see `@prisma-next/sql-relational-core`). Mongo currently uses this
|
|
33
|
-
* framework type unchanged. Column metadata is intentionally **not** on
|
|
34
|
-
* the framework type — it is a SQL-family concept rooted in SQL's
|
|
35
|
-
* `(table, column)` addressing model and would not generalise to other
|
|
36
|
-
* families.
|
|
37
|
-
*
|
|
38
|
-
* The interface is named explicitly (not inlined) so future framework
|
|
39
|
-
* fields and family extensions can land additively without breaking
|
|
40
|
-
* codec author signatures.
|
|
41
|
-
*/
|
|
42
|
-
interface CodecCallContext {
|
|
43
|
-
readonly signal?: AbortSignal;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* A codec is the contract between an application value and its on-wire and
|
|
47
|
-
* on-contract-disk representations.
|
|
48
|
-
*
|
|
49
|
-
* The author's mental model is two JS-side types — `TInput` (the
|
|
50
|
-
* application JS type) and `TWire` (the database driver wire format) —
|
|
51
|
-
* plus `JsonValue` for build-time contract artifacts. The codec translates
|
|
52
|
-
* `TInput` to `TWire` on writes and back on reads, and to/from `JsonValue`
|
|
53
|
-
* during contract emission and loading.
|
|
54
|
-
*
|
|
55
|
-
* Three representations participate:
|
|
56
|
-
* - **Input** (`TInput`): the JS type at the application boundary.
|
|
57
|
-
* - **Wire** (`TWire`): the format exchanged with the database driver.
|
|
58
|
-
* - **JSON** (`JsonValue`): a JSON-safe form used in contract artifacts.
|
|
59
|
-
*
|
|
60
|
-
* Codec methods split into two groups:
|
|
61
|
-
*
|
|
62
|
-
* - **Query-time** methods (`encode`, `decode`) run per row/parameter at the
|
|
63
|
-
* IO boundary; they are required and Promise-returning. The per-family
|
|
64
|
-
* codec factory accepts sync or async author functions and lifts sync
|
|
65
|
-
* ones to Promise-shaped methods automatically.
|
|
66
|
-
* - **Build-time** methods (`encodeJson`, `decodeJson`, `renderOutputType`)
|
|
67
|
-
* run when the contract is serialized, loaded, or when client types are
|
|
68
|
-
* emitted. They stay synchronous so contract validation and client
|
|
69
|
-
* construction are synchronous.
|
|
70
|
-
*
|
|
71
|
-
* Target-family codec interfaces extend this base with target-shaped
|
|
72
|
-
* metadata.
|
|
73
|
-
*/
|
|
74
|
-
interface Codec<Id extends string = string, TTraits extends readonly CodecTrait[] = readonly CodecTrait[], TWire = unknown, TInput = unknown> {
|
|
75
|
-
/** Unique codec identifier in `namespace/name@version` format (e.g. `pg/timestamptz@1`). */
|
|
76
|
-
readonly id: Id;
|
|
77
|
-
/** Database-native type names this codec handles (e.g. `['timestamptz']`). */
|
|
78
|
-
readonly targetTypes: readonly string[];
|
|
79
|
-
/** Semantic traits for operator gating (e.g. equality, order, numeric). */
|
|
80
|
-
readonly traits?: TTraits;
|
|
81
|
-
/** Converts a JS value to the wire format expected by the database driver. Always Promise-returning at the boundary. The {@link CodecCallContext} is supplied by the runtime on every call (allocated once per `runtime.execute()`); family layers may narrow the ctx to extend it (e.g. SQL adds `column`). Author-side single-arg `(value) => …` functions remain legal via TypeScript's bivariance for trailing parameters. */
|
|
82
|
-
encode(value: TInput, ctx: CodecCallContext): Promise<TWire>;
|
|
83
|
-
/** Converts a wire value from the database driver into the JS application type. Always Promise-returning at the boundary. The {@link CodecCallContext} is supplied by the runtime on every call (allocated once per `runtime.execute()`); family layers may narrow the ctx to extend it (e.g. SQL adds `column`). Author-side single-arg `(wire) => …` functions remain legal via TypeScript's bivariance for trailing parameters. */
|
|
84
|
-
decode(wire: TWire, ctx: CodecCallContext): Promise<TInput>;
|
|
85
|
-
/** Converts a JS value to a JSON-safe representation for contract serialization. Synchronous; called during contract emission. */
|
|
86
|
-
encodeJson(value: TInput): JsonValue;
|
|
87
|
-
/** Converts a JSON representation back to the JS input type. Synchronous; called during contract loading via `validateContract`. */
|
|
88
|
-
decodeJson(json: JsonValue): TInput;
|
|
89
|
-
/** Produces the TypeScript output type expression for a field given its `typeParams`. Synchronous; used during contract.d.ts emission. */
|
|
90
|
-
renderOutputType?(typeParams: Record<string, unknown>): string | undefined;
|
|
91
|
-
}
|
|
92
|
-
interface CodecLookup {
|
|
93
|
-
get(id: string): Codec | undefined;
|
|
94
|
-
}
|
|
95
|
-
declare const emptyCodecLookup: CodecLookup;
|
|
96
|
-
/**
|
|
97
|
-
* Family-agnostic per-instance context supplied by the framework when
|
|
98
|
-
* applying a higher-order codec factory. Allows stateful codecs (e.g.
|
|
99
|
-
* column-scoped encryption) to derive per-instance state from the
|
|
100
|
-
* materialization site.
|
|
101
|
-
*
|
|
102
|
-
* - `name` — the family-agnostic instance identity. For SQL, the runtime
|
|
103
|
-
* populates this as the `storage.types` instance name (e.g.
|
|
104
|
-
* `Embedding1536`) for typeRef-shaped columns, the synthesized
|
|
105
|
-
* anonymous instance name (`<anon:Document.embedding>`) for inline-
|
|
106
|
-
* `typeParams` columns, or a shared sentinel (`<shared:pg/text@1>`)
|
|
107
|
-
* for non-parameterized codec ids. Other families pick the analogous
|
|
108
|
-
* identity for their materialization sites.
|
|
109
|
-
*
|
|
110
|
-
* Family-specific extensions (e.g. {@link import('@prisma-next/sql-relational-core/ast').SqlCodecInstanceContext}
|
|
111
|
-
* in the SQL layer) augment this base with domain-shaped column-set
|
|
112
|
-
* metadata. Codec authors target the base when they don't read family-
|
|
113
|
-
* specific metadata; they target the family extension when they do.
|
|
114
|
-
*/
|
|
115
|
-
interface CodecInstanceContext {
|
|
116
|
-
readonly name: string;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Family-agnostic codec metadata. Family-specific extensions augment the
|
|
120
|
-
* base `db.<family>.<target>` block with native-type information; the base
|
|
121
|
-
* shape is an empty object so non-relational codecs can carry no metadata.
|
|
122
|
-
*/
|
|
123
|
-
interface CodecMeta {
|
|
124
|
-
readonly db?: Record<string, unknown>;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Unified codec descriptor. Every codec in the framework registers through
|
|
128
|
-
* this shape — non-parameterized codecs use `P = void` and a constant
|
|
129
|
-
* factory that returns the same shared codec instance for every column;
|
|
130
|
-
* parameterized codecs use a non-empty `P` and a curried higher-order
|
|
131
|
-
* factory that returns a per-instance codec.
|
|
132
|
-
*
|
|
133
|
-
* The descriptor is the codec-id-keyed source of truth for static metadata
|
|
134
|
-
* (`traits`, `targetTypes`, `meta`) and registration concerns
|
|
135
|
-
* (`paramsSchema` for JSON-boundary validation; optional `renderOutputType`
|
|
136
|
-
* for the `contract.d.ts` emit path). The runtime `Codec` instance returned
|
|
137
|
-
* by `factory(params)(ctx)` carries only the conversion behavior.
|
|
138
|
-
*
|
|
139
|
-
* Whether a codec id "is parameterized" stops being a registration-time
|
|
140
|
-
* distinction — it's a property of `P` on the descriptor. The descriptor
|
|
141
|
-
* map indexes every descriptor by `codecId`; both `descriptorFor(codecId)`
|
|
142
|
-
* and `forColumn(table, column)` resolve through the same map without
|
|
143
|
-
* branching on parameterization.
|
|
144
|
-
*
|
|
145
|
-
* @template P - The shape of the params accepted by the factory (`void` for
|
|
146
|
-
* non-parameterized codecs; a record like `{ length: number }` for
|
|
147
|
-
* parameterized codecs).
|
|
148
|
-
*
|
|
149
|
-
* Codec-registry-unification project § Decision.
|
|
150
|
-
*/
|
|
151
|
-
interface CodecDescriptor<P = void> {
|
|
152
|
-
/** The codec ID this descriptor applies to (e.g. `pg/vector@1`, `pg/text@1`). */
|
|
153
|
-
readonly codecId: string;
|
|
154
|
-
/** Semantic traits for operator gating (e.g. equality, order, numeric). */
|
|
155
|
-
readonly traits: readonly CodecTrait[];
|
|
156
|
-
/** Database-native type names this codec handles (e.g. `['timestamptz']`). */
|
|
157
|
-
readonly targetTypes: readonly string[];
|
|
158
|
-
/** Optional family-specific metadata (e.g. SQL-side `db.sql.postgres.nativeType`). */
|
|
159
|
-
readonly meta?: CodecMeta;
|
|
160
|
-
/**
|
|
161
|
-
* Standard Schema validator for the factory's params. Validates JSON-
|
|
162
|
-
* sourced params at the contract boundary (PSL → IR; `contract.json` →
|
|
163
|
-
* runtime). For non-parameterized codecs (`P = void`), the schema
|
|
164
|
-
* validates `void`/`undefined` — the framework supplies no params at the
|
|
165
|
-
* call boundary.
|
|
166
|
-
*/
|
|
167
|
-
readonly paramsSchema: StandardSchemaV1<P>;
|
|
168
|
-
/**
|
|
169
|
-
* Emit-path string renderer for `contract.d.ts`. Returns the TypeScript
|
|
170
|
-
* output type expression for given params (e.g. `Vector<1536>`).
|
|
171
|
-
* Optional; absent renderers cause the emitter to fall back to the
|
|
172
|
-
* codec's base output type. Non-parameterized codecs typically omit it.
|
|
173
|
-
*/
|
|
174
|
-
readonly renderOutputType?: (params: P) => string | undefined;
|
|
175
|
-
/**
|
|
176
|
-
* The curried higher-order codec. For non-parameterized codecs, the
|
|
177
|
-
* factory is constant — every call returns the same shared codec
|
|
178
|
-
* instance. For parameterized codecs, the factory is called once per
|
|
179
|
-
* `storage.types` instance (or once per inline-`typeParams` column),
|
|
180
|
-
* with `ctx` carrying the column set the resulting codec serves.
|
|
181
|
-
*/
|
|
182
|
-
readonly factory: (params: P) => (ctx: CodecInstanceContext) => Codec;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Standard Schema validator for `void` params. Accepts only `undefined`
|
|
186
|
-
* (or absent input); rejects any other value so a contract that tries to
|
|
187
|
-
* thread `typeParams` through a non-parameterized codec id fails fast at
|
|
188
|
-
* the JSON boundary instead of silently coercing the value away. Used by
|
|
189
|
-
* the framework-supplied non-parameterized descriptor synthesizer.
|
|
190
|
-
*/
|
|
191
|
-
declare const voidParamsSchema: StandardSchemaV1<void>;
|
|
192
|
-
/**
|
|
193
|
-
* Synthesize a `CodecDescriptor<void>` for a non-parameterized codec
|
|
194
|
-
* runtime instance. The factory is constant — every call returns the same
|
|
195
|
-
* shared codec instance — so columns sharing this codec id share one
|
|
196
|
-
* resolved codec.
|
|
197
|
-
*
|
|
198
|
-
* Codec-registry-unification spec § Decision (Case T — non-parameterized
|
|
199
|
-
* text codec). This is the bridge while non-parameterized codec
|
|
200
|
-
* contributors still register through the legacy `codecs:` slot; once they
|
|
201
|
-
* migrate to ship descriptors directly (TML-2357 T3.5.3), this synthesis
|
|
202
|
-
* steps aside.
|
|
203
|
-
*/
|
|
204
|
-
declare function synthesizeNonParameterizedDescriptor(codec: Codec): CodecDescriptor<void>;
|
|
205
|
-
//#endregion
|
|
206
|
-
export { CodecLookup as a, emptyCodecLookup as c, CodecInstanceContext as i, synthesizeNonParameterizedDescriptor as l, CodecCallContext as n, CodecMeta as o, CodecDescriptor as r, CodecTrait as s, Codec as t, voidParamsSchema as u };
|
|
207
|
-
//# sourceMappingURL=codec-types-MWvfFmu1.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codec-types-MWvfFmu1.d.mts","names":[],"sources":["../src/shared/codec-types.ts"],"sourcesContent":[],"mappings":";;;;KAGY,UAAA;;AAAZ;AA4CA;AAiCA;;;;;;;;;MAe2B,gBAAA;;;;;;;;;AAS3B;AAIA;AAuBA;AASA;AA6BA;;;;;;;;;;AAyCA;AA6BgB,UAhMC,gBAAA,CAgMD;oBA/LI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAgCH,2DAEU,wBAAwB;;eAKpC;;;;oBAIK;;gBAEJ,aAAa,mBAAmB,QAAQ;;eAEzC,YAAY,mBAAmB,QAAQ;;oBAElC,SAAS;;mBAEV,YAAY;;gCAEC;;UAGf,WAAA;mBACE;;cAGN,kBAAkB;;;;;;;;;;;;;;;;;;;;UAuBd,oBAAA;;;;;;;;UASA,SAAA;gBACD;;;;;;;;;;;;;;;;;;;;;;;;;;;UA4BC;;;;4BAIW;;;;kBAIV;;;;;;;;yBAQO,iBAAiB;;;;;;;uCAOH;;;;;;;;6BAQV,YAAY,yBAAyB;;;;;;;;;cAUrD,kBAAkB;;;;;;;;;;;;;iBA6Bf,oCAAA,QAA4C,QAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"framework-components-BvzjH6Pt.d.mts","names":[],"sources":["../src/shared/mutation-default-types.ts","../src/shared/framework-components.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