@prisma-next/contract 0.3.0-pr.99.3 → 0.3.0-pr.99.5

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.
Files changed (39) hide show
  1. package/dist/framework-components-B-XOtXw3.d.mts +854 -0
  2. package/dist/framework-components-B-XOtXw3.d.mts.map +1 -0
  3. package/dist/framework-components.d.mts +2 -0
  4. package/dist/framework-components.mjs +70 -0
  5. package/dist/framework-components.mjs.map +1 -0
  6. package/dist/ir-B8zNqals.d.mts +79 -0
  7. package/dist/ir-B8zNqals.d.mts.map +1 -0
  8. package/dist/ir.d.mts +2 -0
  9. package/dist/ir.mjs +46 -0
  10. package/dist/ir.mjs.map +1 -0
  11. package/dist/pack-manifest-types.d.mts +2 -0
  12. package/dist/pack-manifest-types.mjs +1 -0
  13. package/dist/types.d.mts +2 -0
  14. package/dist/types.mjs +11 -0
  15. package/dist/types.mjs.map +1 -0
  16. package/package.json +15 -23
  17. package/src/ir.ts +3 -3
  18. package/dist/exports/framework-components.d.ts +0 -3
  19. package/dist/exports/framework-components.d.ts.map +0 -1
  20. package/dist/exports/framework-components.js +0 -57
  21. package/dist/exports/framework-components.js.map +0 -1
  22. package/dist/exports/ir.d.ts +0 -2
  23. package/dist/exports/ir.d.ts.map +0 -1
  24. package/dist/exports/ir.js +0 -35
  25. package/dist/exports/ir.js.map +0 -1
  26. package/dist/exports/pack-manifest-types.d.ts +0 -2
  27. package/dist/exports/pack-manifest-types.d.ts.map +0 -1
  28. package/dist/exports/pack-manifest-types.js +0 -1
  29. package/dist/exports/pack-manifest-types.js.map +0 -1
  30. package/dist/exports/types.d.ts +0 -3
  31. package/dist/exports/types.d.ts.map +0 -1
  32. package/dist/exports/types.js +0 -8
  33. package/dist/exports/types.js.map +0 -1
  34. package/dist/framework-components.d.ts +0 -526
  35. package/dist/framework-components.d.ts.map +0 -1
  36. package/dist/ir.d.ts +0 -76
  37. package/dist/ir.d.ts.map +0 -1
  38. package/dist/types.d.ts +0 -326
  39. package/dist/types.d.ts.map +0 -1
package/dist/ir.d.ts DELETED
@@ -1,76 +0,0 @@
1
- /**
2
- * ContractIR types and factories for building contract intermediate representation.
3
- * ContractIR is family-agnostic and used by authoring, emitter, and no-emit runtime.
4
- */
5
- /**
6
- * ContractIR represents the intermediate representation of a contract.
7
- * It is family-agnostic and contains generic storage, models, and relations.
8
- * Note: coreHash and profileHash are computed by the emitter, not part of the IR.
9
- */
10
- export interface ContractIR<TStorage extends Record<string, unknown> = Record<string, unknown>, TModels extends Record<string, unknown> = Record<string, unknown>, TRelations extends Record<string, unknown> = Record<string, unknown>> {
11
- readonly schemaVersion: string;
12
- readonly targetFamily: string;
13
- readonly target: string;
14
- readonly models: TModels;
15
- readonly relations: TRelations;
16
- readonly storage: TStorage;
17
- readonly extensionPacks: Record<string, unknown>;
18
- readonly capabilities: Record<string, Record<string, boolean>>;
19
- readonly meta: Record<string, unknown>;
20
- readonly sources: Record<string, unknown>;
21
- }
22
- /**
23
- * Creates the header portion of a ContractIR.
24
- * Contains schema version, target, target family, core hash, and optional profile hash.
25
- */
26
- export declare function irHeader(opts: {
27
- target: string;
28
- targetFamily: string;
29
- coreHash: string;
30
- profileHash?: string;
31
- }): {
32
- readonly schemaVersion: string;
33
- readonly target: string;
34
- readonly targetFamily: string;
35
- readonly coreHash: string;
36
- readonly profileHash?: string;
37
- };
38
- /**
39
- * Creates the meta portion of a ContractIR.
40
- * Contains capabilities, extensionPacks, meta, and sources with empty object defaults.
41
- * If a field is explicitly `undefined`, it will be omitted (for testing validation).
42
- */
43
- export declare function irMeta(opts?: {
44
- capabilities?: Record<string, Record<string, boolean>> | undefined;
45
- extensionPacks?: Record<string, unknown> | undefined;
46
- meta?: Record<string, unknown> | undefined;
47
- sources?: Record<string, unknown> | undefined;
48
- }): {
49
- readonly capabilities: Record<string, Record<string, boolean>>;
50
- readonly extensionPacks: Record<string, unknown>;
51
- readonly meta: Record<string, unknown>;
52
- readonly sources: Record<string, unknown>;
53
- };
54
- /**
55
- * Creates a complete ContractIR by combining header, meta, and family-specific sections.
56
- * This is a family-agnostic factory that accepts generic storage, models, and relations.
57
- */
58
- export declare function contractIR<TStorage extends Record<string, unknown>, TModels extends Record<string, unknown>, TRelations extends Record<string, unknown>>(opts: {
59
- header: {
60
- readonly schemaVersion: string;
61
- readonly target: string;
62
- readonly targetFamily: string;
63
- readonly coreHash: string;
64
- readonly profileHash?: string;
65
- };
66
- meta: {
67
- readonly capabilities: Record<string, Record<string, boolean>>;
68
- readonly extensionPacks: Record<string, unknown>;
69
- readonly meta: Record<string, unknown>;
70
- readonly sources: Record<string, unknown>;
71
- };
72
- storage: TStorage;
73
- models: TModels;
74
- relations: TRelations;
75
- }): ContractIR<TStorage, TModels, TRelations>;
76
- //# sourceMappingURL=ir.d.ts.map
package/dist/ir.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"ir.d.ts","sourceRoot":"","sources":["../src/ir.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AACH,MAAM,WAAW,UAAU,CACzB,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClE,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjE,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAEpE,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC;IAC3B,QAAQ,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AAE,UAAU,CAAC,CAW5C"}
package/dist/types.d.ts DELETED
@@ -1,326 +0,0 @@
1
- import type { OperationRegistry } from '@prisma-next/operations';
2
- import type { RenderTypeContext } from './framework-components';
3
- import type { ContractIR } from './ir';
4
- export interface ContractBase {
5
- readonly schemaVersion: string;
6
- readonly target: string;
7
- readonly targetFamily: string;
8
- readonly coreHash: string;
9
- readonly profileHash?: string;
10
- readonly capabilities: Record<string, Record<string, boolean>>;
11
- readonly extensionPacks: Record<string, unknown>;
12
- readonly meta: Record<string, unknown>;
13
- readonly sources: Record<string, Source>;
14
- }
15
- export interface FieldType {
16
- readonly type: string;
17
- readonly nullable: boolean;
18
- readonly items?: FieldType;
19
- readonly properties?: Record<string, FieldType>;
20
- }
21
- export interface Source {
22
- readonly readOnly: boolean;
23
- readonly projection: Record<string, FieldType>;
24
- readonly origin?: Record<string, unknown>;
25
- readonly capabilities?: Record<string, boolean>;
26
- }
27
- export interface DocIndex {
28
- readonly name: string;
29
- readonly keys: Record<string, 'asc' | 'desc'>;
30
- readonly unique?: boolean;
31
- readonly where?: Expr;
32
- }
33
- export type Expr = {
34
- readonly kind: 'eq';
35
- readonly path: ReadonlyArray<string>;
36
- readonly value: unknown;
37
- } | {
38
- readonly kind: 'exists';
39
- readonly path: ReadonlyArray<string>;
40
- };
41
- export interface DocCollection {
42
- readonly name: string;
43
- readonly id?: {
44
- readonly strategy: 'auto' | 'client' | 'uuid' | 'cuid' | 'objectId';
45
- };
46
- readonly fields: Record<string, FieldType>;
47
- readonly indexes?: ReadonlyArray<DocIndex>;
48
- readonly readOnly?: boolean;
49
- }
50
- export interface DocumentStorage {
51
- readonly document: {
52
- readonly collections: Record<string, DocCollection>;
53
- };
54
- }
55
- export interface DocumentContract extends ContractBase {
56
- readonly targetFamily: string;
57
- readonly storage: DocumentStorage;
58
- }
59
- export interface ParamDescriptor {
60
- readonly index?: number;
61
- readonly name?: string;
62
- readonly codecId?: string;
63
- readonly nativeType?: string;
64
- readonly nullable?: boolean;
65
- readonly source: 'dsl' | 'raw';
66
- readonly refs?: {
67
- table: string;
68
- column: string;
69
- };
70
- }
71
- export interface PlanRefs {
72
- readonly tables?: readonly string[];
73
- readonly columns?: ReadonlyArray<{
74
- table: string;
75
- column: string;
76
- }>;
77
- readonly indexes?: ReadonlyArray<{
78
- readonly table: string;
79
- readonly columns: ReadonlyArray<string>;
80
- readonly name?: string;
81
- }>;
82
- }
83
- export interface PlanMeta {
84
- readonly target: string;
85
- readonly targetFamily?: string;
86
- readonly coreHash: string;
87
- readonly profileHash?: string;
88
- readonly lane: string;
89
- readonly annotations?: {
90
- codecs?: Record<string, string>;
91
- [key: string]: unknown;
92
- };
93
- readonly paramDescriptors: ReadonlyArray<ParamDescriptor>;
94
- readonly refs?: PlanRefs;
95
- readonly projection?: Record<string, string> | ReadonlyArray<string>;
96
- /**
97
- * Optional mapping of projection alias → column type ID (fully qualified ns/name@version).
98
- * Used for codec resolution when AST+refs don't provide enough type info.
99
- */
100
- readonly projectionTypes?: Record<string, string>;
101
- }
102
- /**
103
- * Canonical execution plan shape used by runtimes.
104
- *
105
- * - Row is the inferred result row type (TypeScript-only).
106
- * - Ast is the optional, family-specific AST type (e.g. SQL QueryAst).
107
- *
108
- * The payload executed by the runtime is represented by the sql + params pair
109
- * for now; future families can specialize this via Ast or additional metadata.
110
- */
111
- export interface ExecutionPlan<Row = unknown, Ast = unknown> {
112
- readonly sql: string;
113
- readonly params: readonly unknown[];
114
- readonly ast?: Ast;
115
- readonly meta: PlanMeta;
116
- /**
117
- * Phantom property to carry the Row generic for type-level utilities.
118
- * Not set at runtime; used only for ResultType extraction.
119
- */
120
- readonly _row?: Row;
121
- }
122
- /**
123
- * Utility type to extract the Row type from an ExecutionPlan.
124
- * Example: `type Row = ResultType<typeof plan>`
125
- *
126
- * Works with both ExecutionPlan and SqlQueryPlan (SQL query plans before lowering).
127
- * SqlQueryPlan includes a phantom `_Row` property to preserve the generic parameter
128
- * for type extraction.
129
- */
130
- export type ResultType<P> = P extends ExecutionPlan<infer R, unknown> ? R : P extends {
131
- readonly _Row?: infer R;
132
- } ? R : never;
133
- /**
134
- * Type guard to check if a contract is a Document contract
135
- */
136
- export declare function isDocumentContract(contract: unknown): contract is DocumentContract;
137
- /**
138
- * Contract marker record stored in the database.
139
- * Represents the current contract identity for a database.
140
- */
141
- export interface ContractMarkerRecord {
142
- readonly coreHash: string;
143
- readonly profileHash: string;
144
- readonly contractJson: unknown | null;
145
- readonly canonicalVersion: number | null;
146
- readonly updatedAt: Date;
147
- readonly appTag: string | null;
148
- readonly meta: Record<string, unknown>;
149
- }
150
- /**
151
- * Specifies how to import TypeScript types from a package.
152
- * Used in extension pack manifests to declare codec and operation type imports.
153
- */
154
- export interface TypesImportSpec {
155
- readonly package: string;
156
- readonly named: string;
157
- readonly alias: string;
158
- }
159
- /**
160
- * Validation context passed to TargetFamilyHook.validateTypes().
161
- * Contains pre-assembled operation registry, type imports, and extension IDs.
162
- */
163
- export interface ValidationContext {
164
- readonly operationRegistry?: OperationRegistry;
165
- readonly codecTypeImports?: ReadonlyArray<TypesImportSpec>;
166
- readonly operationTypeImports?: ReadonlyArray<TypesImportSpec>;
167
- readonly extensionIds?: ReadonlyArray<string>;
168
- /**
169
- * Parameterized codec descriptors collected from adapters and extensions.
170
- * Map of codecId → descriptor for quick lookup during type generation.
171
- */
172
- readonly parameterizedCodecs?: Map<string, ParameterizedCodecDescriptor>;
173
- }
174
- /**
175
- * Context for rendering parameterized types during contract.d.ts generation.
176
- * Passed to type renderers so they can reference CodecTypes by name.
177
- */
178
- export interface TypeRenderContext {
179
- readonly codecTypesName: string;
180
- }
181
- /**
182
- * A normalized type renderer for parameterized codecs.
183
- * This is the interface expected by TargetFamilyHook.generateContractTypes.
184
- */
185
- export interface TypeRenderEntry {
186
- readonly codecId: string;
187
- readonly render: (params: Record<string, unknown>, ctx: TypeRenderContext) => string;
188
- }
189
- /**
190
- * Additional options for generateContractTypes.
191
- */
192
- export interface GenerateContractTypesOptions {
193
- /**
194
- * Normalized parameterized type renderers, keyed by codecId.
195
- * When a column has typeParams and a renderer exists for its codecId,
196
- * the renderer is called to produce the TypeScript type expression.
197
- */
198
- readonly parameterizedRenderers?: Map<string, TypeRenderEntry>;
199
- /**
200
- * Type imports for parameterized codecs.
201
- * These are merged with codec and operation type imports in contract.d.ts.
202
- */
203
- readonly parameterizedTypeImports?: ReadonlyArray<TypesImportSpec>;
204
- }
205
- /**
206
- * SPI interface for target family hooks that extend emission behavior.
207
- * Implemented by family-specific emitter hooks (e.g., SQL family).
208
- */
209
- export interface TargetFamilyHook {
210
- readonly id: string;
211
- /**
212
- * Validates that all type IDs in the contract come from referenced extension packs.
213
- * @param ir - Contract IR to validate
214
- * @param ctx - Validation context with operation registry and extension IDs
215
- */
216
- validateTypes(ir: ContractIR, ctx: ValidationContext): void;
217
- /**
218
- * Validates family-specific contract structure.
219
- * @param ir - Contract IR to validate
220
- */
221
- validateStructure(ir: ContractIR): void;
222
- /**
223
- * Generates contract.d.ts file content.
224
- * @param ir - Contract IR
225
- * @param codecTypeImports - Array of codec type import specs
226
- * @param operationTypeImports - Array of operation type import specs
227
- * @param options - Additional options including parameterized type renderers
228
- * @returns Generated TypeScript type definitions as string
229
- */
230
- generateContractTypes(ir: ContractIR, codecTypeImports: ReadonlyArray<TypesImportSpec>, operationTypeImports: ReadonlyArray<TypesImportSpec>, options?: GenerateContractTypesOptions): string;
231
- }
232
- export type ArgSpecManifest = {
233
- readonly kind: 'typeId';
234
- readonly type: string;
235
- } | {
236
- readonly kind: 'param';
237
- } | {
238
- readonly kind: 'literal';
239
- };
240
- export type ReturnSpecManifest = {
241
- readonly kind: 'typeId';
242
- readonly type: string;
243
- } | {
244
- readonly kind: 'builtin';
245
- readonly type: 'number' | 'boolean' | 'string';
246
- };
247
- export interface LoweringSpecManifest {
248
- readonly targetFamily: 'sql';
249
- readonly strategy: 'infix' | 'function';
250
- readonly template: string;
251
- }
252
- export interface OperationManifest {
253
- readonly for: string;
254
- readonly method: string;
255
- readonly args: ReadonlyArray<ArgSpecManifest>;
256
- readonly returns: ReturnSpecManifest;
257
- readonly lowering: LoweringSpecManifest;
258
- readonly capabilities?: ReadonlyArray<string>;
259
- }
260
- export type { RenderTypeContext };
261
- /**
262
- * Declarative type renderer that produces a TypeScript type expression.
263
- *
264
- * Renderers can be:
265
- * - A template string with `{{paramName}}` placeholders (e.g., `Vector<{{length}}>`)
266
- * - A function that receives typeParams and context and returns a type expression
267
- *
268
- * **Prefer template strings** for most cases:
269
- * - Templates are JSON-serializable (safe for pack-ref metadata)
270
- * - Templates can be statically analyzed by tooling
271
- *
272
- * Function renderers are allowed but have tradeoffs:
273
- * - Require runtime execution during emission (the emitter runs code)
274
- * - Not JSON-serializable (can't be stored in contract.json)
275
- * - The emitted artifacts (contract.json, contract.d.ts) still contain no
276
- * executable code - this constraint applies to outputs, not the emission process
277
- */
278
- export type TypeRenderer = string | ((params: Record<string, unknown>, ctx: RenderTypeContext) => string);
279
- /**
280
- * Descriptor for a codec that supports type parameters.
281
- *
282
- * Parameterized codecs allow columns to carry additional metadata (typeParams)
283
- * that affects the generated TypeScript types. For example:
284
- * - A vector codec can use `{ length: 1536 }` to generate `Vector<1536>`
285
- * - A decimal codec can use `{ precision: 10, scale: 2 }` to generate `Decimal<10, 2>`
286
- *
287
- * The SQL family emitter uses these descriptors to generate precise types
288
- * without hard-coding knowledge of specific codec IDs.
289
- *
290
- * @example
291
- * ```typescript
292
- * const vectorCodecDescriptor: ParameterizedCodecDescriptor = {
293
- * codecId: 'pg/vector@1',
294
- * outputTypeRenderer: 'Vector<{{length}}>',
295
- * // Optional: paramsSchema for runtime validation
296
- * };
297
- * ```
298
- */
299
- export interface ParameterizedCodecDescriptor {
300
- /** The codec ID this descriptor applies to (e.g., 'pg/vector@1') */
301
- readonly codecId: string;
302
- /**
303
- * Renderer for the output (read) type.
304
- * Can be a template string or function.
305
- *
306
- * This is the primary renderer used by SQL emission to generate
307
- * model field types in contract.d.ts.
308
- */
309
- readonly outputTypeRenderer: TypeRenderer;
310
- /**
311
- * Optional renderer for the input (write) type.
312
- * If not provided, outputTypeRenderer is used for both.
313
- *
314
- * **Reserved for future use**: Currently, SQL emission only uses
315
- * outputTypeRenderer. This field is defined for future support of
316
- * asymmetric codecs where input and output types differ (e.g., a
317
- * codec that accepts `string | number` but always returns `number`).
318
- */
319
- readonly inputTypeRenderer?: TypeRenderer;
320
- /**
321
- * Optional import spec for types used by this codec's renderers.
322
- * The emitter will add this import to contract.d.ts.
323
- */
324
- readonly typesImport?: TypesImportSpec;
325
- }
326
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAC/D,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C;AAED,MAAM,WAAW,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