@prisma-next/contract 0.1.0-pr.64.2 → 0.1.0-pr.65.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 CHANGED
@@ -104,7 +104,7 @@ const sqlFamily: FamilyDescriptor<'sql'> = {
104
104
  kind: 'family',
105
105
  id: 'sql',
106
106
  familyId: 'sql',
107
- manifest: { /* ... */ },
107
+ version: '1.0.0',
108
108
  };
109
109
 
110
110
  // Use TargetDescriptor for target components
@@ -113,7 +113,9 @@ const postgresTarget: TargetDescriptor<'sql', 'postgres'> = {
113
113
  id: 'postgres',
114
114
  familyId: 'sql',
115
115
  targetId: 'postgres',
116
- manifest: { /* ... */ },
116
+ version: '15.0.0',
117
+ targets: { postgres: { minVersion: '12' } },
118
+ capabilities: { postgres: { returning: true } },
117
119
  };
118
120
 
119
121
  // Identity instance bases are extended by plane-specific instances
@@ -1,7 +1,38 @@
1
- import { E as ExtensionPackManifest } from './pack-manifest-types-BYh8H2fb.js';
1
+ import { TypesImportSpec, OperationManifest } from './types.js';
2
2
  import '@prisma-next/operations';
3
3
  import './ir.js';
4
4
 
5
+ /**
6
+ * Declarative fields that describe component metadata.
7
+ * These fields are owned directly by descriptors (not nested under a manifest).
8
+ */
9
+ interface ComponentDeclarativeFields {
10
+ /** Component version (semver) */
11
+ readonly version: string;
12
+ /** Target metadata - which targets this component supports */
13
+ readonly targets?: Record<string, {
14
+ readonly minVersion?: string;
15
+ }>;
16
+ /** Capabilities this component provides */
17
+ readonly capabilities?: Record<string, unknown>;
18
+ /** Type imports for contract.d.ts generation */
19
+ readonly types?: {
20
+ readonly codecTypes?: {
21
+ readonly import: TypesImportSpec;
22
+ };
23
+ readonly operationTypes?: {
24
+ readonly import: TypesImportSpec;
25
+ };
26
+ readonly storage?: ReadonlyArray<{
27
+ readonly typeId: string;
28
+ readonly familyId: string;
29
+ readonly targetId: string;
30
+ readonly nativeType?: string;
31
+ }>;
32
+ };
33
+ /** Operation manifests for building operation registries */
34
+ readonly operations?: ReadonlyArray<OperationManifest>;
35
+ }
5
36
  /**
6
37
  * Base descriptor for any framework component.
7
38
  *
@@ -18,16 +49,14 @@ import './ir.js';
18
49
  * // All descriptors have these properties
19
50
  * descriptor.kind // The Kind type parameter (e.g., 'family', 'target', or custom kinds)
20
51
  * descriptor.id // Unique string identifier (e.g., 'sql', 'postgres')
21
- * descriptor.manifest // Package metadata (version, capabilities, types, etc.)
52
+ * descriptor.version // Component version (semver)
22
53
  * ```
23
54
  */
24
- interface ComponentDescriptor<Kind extends string> {
55
+ interface ComponentDescriptor<Kind extends string> extends ComponentDeclarativeFields {
25
56
  /** Discriminator identifying the component type */
26
57
  readonly kind: Kind;
27
58
  /** Unique identifier for this component (e.g., 'sql', 'postgres', 'pgvector') */
28
59
  readonly id: string;
29
- /** Package manifest containing version, capabilities, type imports, and operations */
30
- readonly manifest: ExtensionPackManifest;
31
60
  }
32
61
  /**
33
62
  * Descriptor for a family component.
@@ -1,3 +1,3 @@
1
- export { A as ArgSpecManifest, k as ExtensionPack, E as ExtensionPackManifest, L as LoweringSpecManifest, O as OperationManifest, l as ReturnSpecManifest } from './pack-manifest-types-BYh8H2fb.js';
1
+ export { A as ArgSpecManifest, E as ExtensionPack, a as ExtensionPackManifest, L as LoweringSpecManifest, OperationManifest, R as ReturnSpecManifest } from './types.js';
2
2
  import '@prisma-next/operations';
3
3
  import './ir.js';
@@ -1,3 +1,251 @@
1
- export { C as ContractBase, a as ContractMarkerRecord, D as DocCollection, b as DocIndex, c as DocumentContract, d as DocumentStorage, e as ExecutionPlan, f as Expr, F as FieldType, P as ParamDescriptor, g as PlanMeta, h as PlanRefs, R as ResultType, S as Source, T as TargetFamilyHook, i as TypesImportSpec, V as ValidationContext, j as isDocumentContract } from './pack-manifest-types-BYh8H2fb.js';
2
- import '@prisma-next/operations';
3
- import './ir.js';
1
+ import { OperationRegistry } from '@prisma-next/operations';
2
+ import { ContractIR } from './ir.js';
3
+
4
+ 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 extensions?: Record<string, unknown>;
12
+ readonly meta?: Record<string, unknown>;
13
+ readonly sources?: Record<string, Source>;
14
+ }
15
+ interface FieldType {
16
+ readonly type: string;
17
+ readonly nullable: boolean;
18
+ readonly items?: FieldType;
19
+ readonly properties?: Record<string, FieldType>;
20
+ }
21
+ 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
+ interface DocIndex {
28
+ readonly name: string;
29
+ readonly keys: Record<string, 'asc' | 'desc'>;
30
+ readonly unique?: boolean;
31
+ readonly where?: Expr;
32
+ }
33
+ 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
+ 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
+ interface DocumentStorage {
51
+ readonly document: {
52
+ readonly collections: Record<string, DocCollection>;
53
+ };
54
+ }
55
+ interface DocumentContract extends ContractBase {
56
+ readonly targetFamily: string;
57
+ readonly storage: DocumentStorage;
58
+ }
59
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ 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
+ interface ValidationContext {
164
+ readonly operationRegistry?: OperationRegistry;
165
+ readonly codecTypeImports?: ReadonlyArray<TypesImportSpec>;
166
+ readonly operationTypeImports?: ReadonlyArray<TypesImportSpec>;
167
+ readonly extensionIds?: ReadonlyArray<string>;
168
+ }
169
+ /**
170
+ * SPI interface for target family hooks that extend emission behavior.
171
+ * Implemented by family-specific emitter hooks (e.g., SQL family).
172
+ */
173
+ interface TargetFamilyHook {
174
+ readonly id: string;
175
+ /**
176
+ * Validates that all type IDs in the contract come from referenced extensions.
177
+ * @param ir - Contract IR to validate
178
+ * @param ctx - Validation context with operation registry and extension IDs
179
+ */
180
+ validateTypes(ir: ContractIR, ctx: ValidationContext): void;
181
+ /**
182
+ * Validates family-specific contract structure.
183
+ * @param ir - Contract IR to validate
184
+ */
185
+ validateStructure(ir: ContractIR): void;
186
+ /**
187
+ * Generates contract.d.ts file content.
188
+ * @param ir - Contract IR
189
+ * @param codecTypeImports - Array of codec type import specs
190
+ * @param operationTypeImports - Array of operation type import specs
191
+ * @returns Generated TypeScript type definitions as string
192
+ */
193
+ generateContractTypes(ir: ContractIR, codecTypeImports: ReadonlyArray<TypesImportSpec>, operationTypeImports: ReadonlyArray<TypesImportSpec>): string;
194
+ }
195
+ type ArgSpecManifest = {
196
+ readonly kind: 'typeId';
197
+ readonly type: string;
198
+ } | {
199
+ readonly kind: 'param';
200
+ } | {
201
+ readonly kind: 'literal';
202
+ };
203
+ type ReturnSpecManifest = {
204
+ readonly kind: 'typeId';
205
+ readonly type: string;
206
+ } | {
207
+ readonly kind: 'builtin';
208
+ readonly type: 'number' | 'boolean' | 'string';
209
+ };
210
+ interface LoweringSpecManifest {
211
+ readonly targetFamily: 'sql';
212
+ readonly strategy: 'infix' | 'function';
213
+ readonly template: string;
214
+ }
215
+ interface OperationManifest {
216
+ readonly for: string;
217
+ readonly method: string;
218
+ readonly args: ReadonlyArray<ArgSpecManifest>;
219
+ readonly returns: ReturnSpecManifest;
220
+ readonly lowering: LoweringSpecManifest;
221
+ readonly capabilities?: ReadonlyArray<string>;
222
+ }
223
+ interface ExtensionPackManifest {
224
+ readonly id: string;
225
+ readonly version: string;
226
+ readonly targets?: Record<string, {
227
+ readonly minVersion?: string;
228
+ }>;
229
+ readonly capabilities?: Record<string, unknown>;
230
+ readonly types?: {
231
+ readonly codecTypes?: {
232
+ readonly import: TypesImportSpec;
233
+ };
234
+ readonly operationTypes?: {
235
+ readonly import: TypesImportSpec;
236
+ };
237
+ readonly storage?: readonly {
238
+ readonly typeId: string;
239
+ readonly familyId: string;
240
+ readonly targetId: string;
241
+ readonly nativeType?: string;
242
+ }[];
243
+ };
244
+ readonly operations?: ReadonlyArray<OperationManifest>;
245
+ }
246
+ interface ExtensionPack {
247
+ readonly manifest: ExtensionPackManifest;
248
+ readonly path: string;
249
+ }
250
+
251
+ export { type ArgSpecManifest as A, type ContractBase, type ContractMarkerRecord, type DocCollection, type DocIndex, type DocumentContract, type DocumentStorage, type ExtensionPack as E, type ExecutionPlan, type Expr, type FieldType, type LoweringSpecManifest as L, type OperationManifest, type ParamDescriptor, type PlanMeta, type PlanRefs, type ReturnSpecManifest as R, type ResultType, type Source, type TargetFamilyHook, type TypesImportSpec, type ValidationContext, type ExtensionPackManifest as a, isDocumentContract };
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@prisma-next/contract",
3
- "version": "0.1.0-pr.64.2",
3
+ "version": "0.1.0-pr.65.1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "Data contract type definitions and JSON schema for Prisma Next",
7
7
  "dependencies": {
8
- "@prisma-next/operations": "0.1.0-pr.64.2"
8
+ "@prisma-next/operations": "0.1.0-pr.65.1"
9
9
  },
10
10
  "devDependencies": {
11
- "@vitest/coverage-v8": "^4.0.0",
11
+ "@vitest/coverage-v8": "^2.1.1",
12
12
  "tsup": "^8.3.0",
13
13
  "typescript": "^5.9.3",
14
14
  "vitest": "^4.0.16",
@@ -1,251 +0,0 @@
1
- import { OperationRegistry } from '@prisma-next/operations';
2
- import { ContractIR } from './ir.js';
3
-
4
- 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 extensions?: Record<string, unknown>;
12
- readonly meta?: Record<string, unknown>;
13
- readonly sources?: Record<string, Source>;
14
- }
15
- interface FieldType {
16
- readonly type: string;
17
- readonly nullable: boolean;
18
- readonly items?: FieldType;
19
- readonly properties?: Record<string, FieldType>;
20
- }
21
- 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
- interface DocIndex {
28
- readonly name: string;
29
- readonly keys: Record<string, 'asc' | 'desc'>;
30
- readonly unique?: boolean;
31
- readonly where?: Expr;
32
- }
33
- 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
- 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
- interface DocumentStorage {
51
- readonly document: {
52
- readonly collections: Record<string, DocCollection>;
53
- };
54
- }
55
- interface DocumentContract extends ContractBase {
56
- readonly targetFamily: string;
57
- readonly storage: DocumentStorage;
58
- }
59
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- interface ValidationContext {
164
- readonly operationRegistry?: OperationRegistry;
165
- readonly codecTypeImports?: ReadonlyArray<TypesImportSpec>;
166
- readonly operationTypeImports?: ReadonlyArray<TypesImportSpec>;
167
- readonly extensionIds?: ReadonlyArray<string>;
168
- }
169
- /**
170
- * SPI interface for target family hooks that extend emission behavior.
171
- * Implemented by family-specific emitter hooks (e.g., SQL family).
172
- */
173
- interface TargetFamilyHook {
174
- readonly id: string;
175
- /**
176
- * Validates that all type IDs in the contract come from referenced extensions.
177
- * @param ir - Contract IR to validate
178
- * @param ctx - Validation context with operation registry and extension IDs
179
- */
180
- validateTypes(ir: ContractIR, ctx: ValidationContext): void;
181
- /**
182
- * Validates family-specific contract structure.
183
- * @param ir - Contract IR to validate
184
- */
185
- validateStructure(ir: ContractIR): void;
186
- /**
187
- * Generates contract.d.ts file content.
188
- * @param ir - Contract IR
189
- * @param codecTypeImports - Array of codec type import specs
190
- * @param operationTypeImports - Array of operation type import specs
191
- * @returns Generated TypeScript type definitions as string
192
- */
193
- generateContractTypes(ir: ContractIR, codecTypeImports: ReadonlyArray<TypesImportSpec>, operationTypeImports: ReadonlyArray<TypesImportSpec>): string;
194
- }
195
- type ArgSpecManifest = {
196
- readonly kind: 'typeId';
197
- readonly type: string;
198
- } | {
199
- readonly kind: 'param';
200
- } | {
201
- readonly kind: 'literal';
202
- };
203
- type ReturnSpecManifest = {
204
- readonly kind: 'typeId';
205
- readonly type: string;
206
- } | {
207
- readonly kind: 'builtin';
208
- readonly type: 'number' | 'boolean' | 'string';
209
- };
210
- interface LoweringSpecManifest {
211
- readonly targetFamily: 'sql';
212
- readonly strategy: 'infix' | 'function';
213
- readonly template: string;
214
- }
215
- interface OperationManifest {
216
- readonly for: string;
217
- readonly method: string;
218
- readonly args: ReadonlyArray<ArgSpecManifest>;
219
- readonly returns: ReturnSpecManifest;
220
- readonly lowering: LoweringSpecManifest;
221
- readonly capabilities?: ReadonlyArray<string>;
222
- }
223
- interface ExtensionPackManifest {
224
- readonly id: string;
225
- readonly version: string;
226
- readonly targets?: Record<string, {
227
- readonly minVersion?: string;
228
- }>;
229
- readonly capabilities?: Record<string, unknown>;
230
- readonly types?: {
231
- readonly codecTypes?: {
232
- readonly import: TypesImportSpec;
233
- };
234
- readonly operationTypes?: {
235
- readonly import: TypesImportSpec;
236
- };
237
- readonly storage?: readonly {
238
- readonly typeId: string;
239
- readonly familyId: string;
240
- readonly targetId: string;
241
- readonly nativeType?: string;
242
- }[];
243
- };
244
- readonly operations?: ReadonlyArray<OperationManifest>;
245
- }
246
- interface ExtensionPack {
247
- readonly manifest: ExtensionPackManifest;
248
- readonly path: string;
249
- }
250
-
251
- export { type ArgSpecManifest as A, type ContractBase as C, type DocCollection as D, type ExtensionPackManifest as E, type FieldType as F, type LoweringSpecManifest as L, type OperationManifest as O, type ParamDescriptor as P, type ResultType as R, type Source as S, type TargetFamilyHook as T, type ValidationContext as V, type ContractMarkerRecord as a, type DocIndex as b, type DocumentContract as c, type DocumentStorage as d, type ExecutionPlan as e, type Expr as f, type PlanMeta as g, type PlanRefs as h, type TypesImportSpec as i, isDocumentContract as j, type ExtensionPack as k, type ReturnSpecManifest as l };