@type-bridge/node 1.5.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.
@@ -0,0 +1,469 @@
1
+ import { loadNative } from "./native.js";
2
+ export type ValueType = "string" | "long" | "double" | "boolean" | "date" | "datetime" | "datetime-tz" | "decimal" | "duration";
3
+ export type Annotation = "Key" | "Unique" | "Distinct" | {
4
+ Card: [number, number | null];
5
+ };
6
+ export interface OwnedAttributeDescriptor {
7
+ field_name: string;
8
+ attr_name: string;
9
+ value_type: ValueType;
10
+ annotations: Annotation[];
11
+ is_optional: boolean;
12
+ /** Whether this ownership is declared as an ordered list (`owns name[]`).
13
+ * Instance-level list semantics are engine-unimplemented (REP256); this is a
14
+ * schema-emission marker only. */
15
+ is_ordered: boolean;
16
+ parent_type?: string | null;
17
+ is_abstract?: boolean;
18
+ is_independent?: boolean;
19
+ regex?: string | null;
20
+ allowed_values?: string[] | null;
21
+ range?: [string | null, string | null] | null;
22
+ }
23
+ export interface EntityDescriptor {
24
+ type_name: string;
25
+ is_abstract: boolean;
26
+ parent_type: string | null;
27
+ owned_attributes: OwnedAttributeDescriptor[];
28
+ }
29
+ export interface RoleDescriptor {
30
+ role_name: string;
31
+ player_type_names: string[];
32
+ cardinality: [number, number | null] | null;
33
+ /** Plays-side cardinality for this role's players. Authoring datum consumed
34
+ * by `SchemaInfo.from_descriptors` to build the per-player `plays_cardinalities`
35
+ * overlay. `null` when no plays-side constraint is declared. */
36
+ plays_cardinality: [number, number | null] | null;
37
+ overrides: string | null;
38
+ is_abstract: boolean;
39
+ /** Whether this role is declared as an ordered list (`relates name[]`).
40
+ * Instance-level list semantics are engine-unimplemented (REP256); this is a
41
+ * schema-emission marker only. */
42
+ ordered: boolean;
43
+ /** Whether this role carries `@distinct`. Valid only when `ordered` is true. */
44
+ distinct: boolean;
45
+ }
46
+ export interface RelationDescriptor {
47
+ type_name: string;
48
+ is_abstract: boolean;
49
+ parent_type: string | null;
50
+ owned_attributes: OwnedAttributeDescriptor[];
51
+ roles: RoleDescriptor[];
52
+ }
53
+ export type TypeDescriptor = {
54
+ kind: "entity";
55
+ descriptor: EntityDescriptor;
56
+ } | {
57
+ kind: "relation";
58
+ descriptor: RelationDescriptor;
59
+ };
60
+ export interface OwnedAttributeEntry {
61
+ attr_name: string;
62
+ value_type: ValueType;
63
+ annotations: Annotation[];
64
+ /** Whether this ownership is declared as an ordered list (`owns name[]`).
65
+ * Instance-level list semantics are engine-unimplemented (REP256); this is a
66
+ * schema-emission marker only. */
67
+ is_ordered: boolean;
68
+ }
69
+ export interface RoleEntry {
70
+ role_name: string;
71
+ player_type_names: string[];
72
+ cardinality: [number, number | null] | null;
73
+ /** Plays-side cardinality authoring datum. Mirrors `RoleDescriptor.plays_cardinality`
74
+ * at the SchemaInfo (info-level) role entry. `null` when not declared. */
75
+ plays_cardinality: [number, number | null] | null;
76
+ overrides: string | null;
77
+ is_abstract: boolean;
78
+ /** Whether this role is declared as an ordered list (`relates name[]`).
79
+ * Instance-level list semantics are engine-unimplemented (REP256); this is a
80
+ * schema-emission marker only. */
81
+ ordered: boolean;
82
+ /** Whether this role carries `@distinct`. Valid only when `ordered` is true. */
83
+ distinct: boolean;
84
+ }
85
+ export interface EntitySchemaEntry {
86
+ type_name: string;
87
+ is_abstract: boolean;
88
+ parent_type: string | null;
89
+ owned_attributes: OwnedAttributeEntry[];
90
+ plays_cardinalities?: Record<string, [number, number | null]>;
91
+ }
92
+ export interface RelationSchemaEntry extends EntitySchemaEntry {
93
+ roles: RoleEntry[];
94
+ }
95
+ export interface AttributeSchemaEntry {
96
+ attr_name: string;
97
+ value_type: ValueType;
98
+ parent_type?: string | null;
99
+ is_abstract?: boolean;
100
+ is_independent?: boolean;
101
+ regex?: string | null;
102
+ allowed_values?: string[] | null;
103
+ range?: [string | null, string | null] | null;
104
+ }
105
+ export interface SchemaInfo {
106
+ entities: Record<string, EntitySchemaEntry>;
107
+ relations: Record<string, RelationSchemaEntry>;
108
+ attributes: Record<string, AttributeSchemaEntry>;
109
+ }
110
+ export type TransactionType = "read" | "write" | "schema";
111
+ export type AttributeValue = {
112
+ value_type: "string";
113
+ value: string;
114
+ } | {
115
+ value_type: "long";
116
+ value: string;
117
+ } | {
118
+ value_type: "double";
119
+ value: number;
120
+ } | {
121
+ value_type: "boolean";
122
+ value: boolean;
123
+ } | {
124
+ value_type: "date";
125
+ value: string;
126
+ } | {
127
+ value_type: "datetime";
128
+ value: string;
129
+ } | {
130
+ value_type: "datetime-tz";
131
+ value: string;
132
+ } | {
133
+ value_type: "decimal";
134
+ value: string;
135
+ } | {
136
+ value_type: "duration";
137
+ value: string;
138
+ };
139
+ export type AttributeInput = Record<string, AttributeValue | AttributeValue[] | null | undefined>;
140
+ export interface FilterInput {
141
+ attr_name: string;
142
+ operator?: string;
143
+ value: AttributeValue;
144
+ }
145
+ export interface AggregateInput {
146
+ result_key: string;
147
+ function: string;
148
+ attr_name?: string | null;
149
+ }
150
+ export interface RolePlayerInput {
151
+ role_name: string;
152
+ /**
153
+ * The concrete type of the player. The binding validates only that the role
154
+ * exists; whether this type may actually play the role (including via
155
+ * subtyping of an abstract declared player type) is enforced by TypeDB at
156
+ * insert time, so an incompatible type surfaces as a TypeDB error, not a
157
+ * binding error.
158
+ */
159
+ player_type_name: string;
160
+ iid?: string | null;
161
+ key_attr?: string | null;
162
+ key_value?: AttributeValue | null;
163
+ }
164
+ export interface RelationWriteInput {
165
+ attributes?: AttributeInput | null;
166
+ role_players: RolePlayerInput[];
167
+ }
168
+ export type RuntimeAttributeValue = {
169
+ String: string;
170
+ } | {
171
+ Long: string;
172
+ } | {
173
+ Double: number;
174
+ } | {
175
+ Boolean: boolean;
176
+ } | {
177
+ Date: string;
178
+ } | {
179
+ DateTime: string;
180
+ } | {
181
+ DateTimeTZ: string;
182
+ } | {
183
+ Decimal: string;
184
+ } | {
185
+ Duration: string;
186
+ };
187
+ export { Attribute, attr, type AttributeBase, type AttributeTypeOptions, type AttributeTypeParent, type ComparableAttributeBase, type NumericAttributeBase, type StringAttributeBase, } from "./attribute.js";
188
+ export { AggregateSpec, BooleanExpr, ComparisonExpr, NotExpr, QueryExpr, SortExpr, TypedGroupByQuery, TypedQuery, TypedQueryError, agg, } from "./query.js";
189
+ export { AttributeFlags, Card, Flag, Key, TypeFlags, TypeNameCase, Unique, formatTypeName, resolveFlags, type AttributeFlagsOptions, type CardSpec, type FlagInput, type FlagSpec, type ResolvedAttributeFlags, type ResolvedTypeFlags, type TypeFlagsOptions, } from "./flags.js";
190
+ export { Entity, FieldSpec, ListFieldSpec, Relation, RoleSpec, field, role, type AttributeClass, type EntitySchema, type FieldValue, type IidBearing, type InstanceDict, type InstanceFields, type MergedSchema, type ModelClass, type ModelInstance, type ParentModelClass, type ParentOption, type PlainFieldValue, type RelationSchema, type SchemaSpec, } from "./model.js";
191
+ export { TypedCodecError, attributeToPlain, hydrateAttributeEntries, hydrateAttributes, keyAttributeDescriptor, lowerAttributes, lowerAttributeValue, lowerFilters, plainToAttribute, runtimeAttributeValueFromUnknown, } from "./codec.js";
192
+ export { TypedEntityManager, TypedRelationManager, buildRolePlayers, entityManagerFor, relationManagerFor, type ExactFilters, type ManagerConnection, } from "./manager.js";
193
+ export { parseSchema, type SchemaParserNative, type AttributeType as SchemaAttributeType, type Cardinality as SchemaCardinality, type EntityType as SchemaEntityType, type FunctionType as SchemaFunctionType, type OwnedAttribute as SchemaOwnedAttribute, type Parameter as SchemaParameter, type PlayedRole as SchemaPlayedRole, type RelationType as SchemaRelationType, type ReturnType as SchemaReturnType, type ReturnTypeItem as SchemaReturnTypeItem, type RoleSpec as SchemaRoleSpec, type StructField as SchemaStructField, type StructType as SchemaStructType, type TypeSchema, } from "./parser.js";
194
+ export interface DynamicEntityRow {
195
+ iid: string | null;
196
+ type_name: string | null;
197
+ attributes: [string, RuntimeAttributeValue][];
198
+ }
199
+ export interface DynamicRolePlayer {
200
+ role_name: string;
201
+ player_iid: string | null;
202
+ player_type_name: string | null;
203
+ attributes: [string, unknown][];
204
+ }
205
+ export interface DynamicRelationRow extends DynamicEntityRow {
206
+ role_players: DynamicRolePlayer[];
207
+ }
208
+ /**
209
+ * Wire shape of the Rust `DynamicComparisonOp`. `starts_with`/`ends_with` carry
210
+ * the raw literal only — Rust owns regex anchoring and escaping.
211
+ */
212
+ export type DynamicComparisonOp = "eq" | "neq" | "gt" | "gte" | "lt" | "lte" | "contains" | "like" | "starts_with" | "ends_with";
213
+ /**
214
+ * Wire shape of the Rust `DynamicExpr` expression tree. Comparison values use the
215
+ * same precision-safe {@link AttributeValue} `{ value_type, value }` encoding as
216
+ * CRUD filters (`long` carried as a string) — the Node binding decodes them
217
+ * through its shared value convention, so `long` keeps full i64 precision rather
218
+ * than being capped at the JS safe-integer range.
219
+ */
220
+ export type DynamicExpr = {
221
+ kind: "compare";
222
+ attr_name: string;
223
+ operator: DynamicComparisonOp;
224
+ value: AttributeValue;
225
+ } | {
226
+ kind: "iid";
227
+ iid: string;
228
+ } | {
229
+ kind: "is_null";
230
+ attr_name: string;
231
+ is_null: boolean;
232
+ } | {
233
+ kind: "and";
234
+ exprs: DynamicExpr[];
235
+ } | {
236
+ kind: "or";
237
+ exprs: DynamicExpr[];
238
+ } | {
239
+ kind: "not";
240
+ expr: DynamicExpr;
241
+ } | {
242
+ kind: "role_player";
243
+ role_name: string;
244
+ expr: DynamicExpr;
245
+ };
246
+ /** Wire shape of the Rust `SortDir` (bare PascalCase variant names). */
247
+ export type DynamicSortDir = "Asc" | "Desc";
248
+ /** Wire shape of the Rust `DynamicSort`. */
249
+ export type DynamicSort = {
250
+ kind: "attribute";
251
+ attr_name: string;
252
+ direction: DynamicSortDir;
253
+ } | {
254
+ kind: "role_player_attribute";
255
+ role_name: string;
256
+ attr_name: string;
257
+ direction: DynamicSortDir;
258
+ };
259
+ /**
260
+ * Wire shape of the Rust `DynamicQuerySpecJson`. All fields are optional; an empty
261
+ * `expr` matches every row. `limit`/`offset` apply only to `query`, not to
262
+ * `queryCount`/`queryAggregate`/`queryGroupByAggregate`.
263
+ */
264
+ export interface DynamicQuerySpec {
265
+ expr?: DynamicExpr[];
266
+ sort?: DynamicSort[];
267
+ limit?: number | null;
268
+ offset?: number | null;
269
+ }
270
+ export declare function string(value: string): AttributeValue;
271
+ export declare function long(value: bigint): AttributeValue;
272
+ export declare function longFromNumberUnsafe(value: number): AttributeValue;
273
+ export declare function double(value: number): AttributeValue;
274
+ export declare function boolean(value: boolean): AttributeValue;
275
+ export declare function date(value: string): AttributeValue;
276
+ export declare function datetime(value: string): AttributeValue;
277
+ export declare function datetimetz(value: string): AttributeValue;
278
+ export declare function decimal(value: string): AttributeValue;
279
+ export declare function duration(value: string): AttributeValue;
280
+ interface NativeDescriptorRegistry {
281
+ registerEntityJson(descriptorJson: string): string;
282
+ registerRelationJson(descriptorJson: string): string;
283
+ entityJson(typeName: string): string;
284
+ relationJson(typeName: string): string;
285
+ snapshotJson(): string;
286
+ schemaInfoJson(): string;
287
+ }
288
+ interface NativeMarshalling {
289
+ normalizeAttributeValueJson(valueJson: string): string;
290
+ normalizeEntityAttributesJson(descriptorJson: string, attributesJson: string): string;
291
+ normalizeRelationAttributesJson(descriptorJson: string, attributesJson: string): string;
292
+ normalizeFiltersJson(descriptorJson: string, filtersJson: string): string;
293
+ normalizeRelationFiltersJson(descriptorJson: string, filtersJson: string): string;
294
+ normalizeAggregatesJson(descriptorJson: string, aggregatesJson: string): string;
295
+ normalizeRolePlayersJson(descriptorJson: string, rolePlayersJson: string): string;
296
+ normalizeRelationWriteBatchJson(descriptorJson: string, batchJson: string): string;
297
+ }
298
+ export interface NativeRustDatabase {
299
+ isConnected(): boolean;
300
+ databaseName(): string;
301
+ transaction(transactionType?: TransactionType): NativeRustTransactionContext;
302
+ entityManagerJson(descriptorJson: string): NativeDynamicEntityManager;
303
+ relationManagerJson(descriptorJson: string): NativeDynamicRelationManager;
304
+ }
305
+ export interface NativeRustTransactionContext {
306
+ queryJson(query: string): string;
307
+ commit(): void;
308
+ rollback(): void;
309
+ close(): void;
310
+ transactionType(): TransactionType;
311
+ entityManagerJson(descriptorJson: string): NativeDynamicEntityManager;
312
+ relationManagerJson(descriptorJson: string): NativeDynamicRelationManager;
313
+ }
314
+ export interface NativeDynamicEntityManager {
315
+ insertJson(attributesJson: string): string;
316
+ insertManyJson(batchJson: string): string;
317
+ putJson(attributesJson: string): string;
318
+ putManyJson(batchJson: string): string;
319
+ updateJson(attributesJson: string, iid?: string | null): void;
320
+ getJson(filtersJson?: string | null): string;
321
+ getByIidJson(iid: string): string;
322
+ allJson(): string;
323
+ countJson(filtersJson?: string | null): string;
324
+ aggregateJson(aggregatesJson: string, filtersJson?: string | null): string;
325
+ groupByAggregateJson(groupFieldsJson: string, aggregatesJson: string, filtersJson?: string | null): string;
326
+ deleteByIid(iid: string): void;
327
+ queryJson(specJson: string): string;
328
+ queryCountJson(specJson: string): string;
329
+ queryAggregateJson(specJson: string, aggregatesJson: string): string;
330
+ queryGroupByAggregateJson(specJson: string, groupFieldsJson: string, aggregatesJson: string): string;
331
+ }
332
+ export interface NativeDynamicRelationManager {
333
+ insertJson(attributesJson: string, rolePlayersJson: string): string;
334
+ insertManyJson(batchJson: string): string;
335
+ putJson(attributesJson: string, rolePlayersJson: string): string;
336
+ putManyJson(batchJson: string): string;
337
+ updateJson(attributesJson: string, rolePlayersJson: string, iid?: string | null): void;
338
+ getJson(filtersJson?: string | null): string;
339
+ getWithRolePlayersJson(filtersJson?: string | null, rolePlayersJson?: string | null): string;
340
+ getByIidJson(iid: string): string;
341
+ allJson(): string;
342
+ countJson(filtersJson?: string | null): string;
343
+ aggregateJson(aggregatesJson: string, filtersJson?: string | null): string;
344
+ groupByAggregateJson(groupFieldsJson: string, aggregatesJson: string, filtersJson?: string | null): string;
345
+ deleteByIid(iid: string): void;
346
+ queryJson(specJson: string): string;
347
+ queryCountJson(specJson: string): string;
348
+ queryAggregateJson(specJson: string, aggregatesJson: string): string;
349
+ queryGroupByAggregateJson(specJson: string, groupFieldsJson: string, aggregatesJson: string): string;
350
+ }
351
+ export interface NativeRuntime {
352
+ ensureRustDatabase(address: string, database: string, username?: string | null, password?: string | null, httpPort?: number | null): void;
353
+ connectRustDatabase(address: string, database: string, username?: string | null, password?: string | null, httpPort?: number | null): NativeRustDatabase;
354
+ }
355
+ interface NativeSchemaParser {
356
+ parseSchemaJson(input: string): string;
357
+ }
358
+ export interface NativeModule extends NativeRuntime, NativeMarshalling, NativeSchemaParser {
359
+ NodeDescriptorRegistry: new () => NativeDescriptorRegistry;
360
+ generateDefineBlockJson(schemaInfoJson: string): string;
361
+ }
362
+ export interface RustDatabaseConnectOptions {
363
+ username?: string | null;
364
+ password?: string | null;
365
+ /** Port of the TypeDB HTTP API used for the connect-time version probe. */
366
+ httpPort?: number;
367
+ }
368
+ export interface EnsureDatabaseOptions {
369
+ username?: string | null;
370
+ password?: string | null;
371
+ /** Port of the TypeDB HTTP API used for the connect-time version probe. */
372
+ httpPort?: number;
373
+ }
374
+ /**
375
+ * Ensure the named TypeDB database exists, creating it if absent.
376
+ *
377
+ * Fails hard when TypeDB is unreachable — callers should let the error
378
+ * propagate so that a missing server shows up as a clear failure, not a
379
+ * silent skip.
380
+ */
381
+ export declare function ensureDatabase(address: string, database: string, options?: EnsureDatabaseOptions): void;
382
+ export { loadNative };
383
+ export declare function generateDefineBlock(info: SchemaInfo): string;
384
+ export declare class DescriptorRegistry {
385
+ #private;
386
+ constructor(nativeRegistry?: NativeDescriptorRegistry | null);
387
+ registerEntity(descriptor: EntityDescriptor): EntityDescriptor;
388
+ registerRelation(descriptor: RelationDescriptor): RelationDescriptor;
389
+ entity(typeName: string): EntityDescriptor;
390
+ relation(typeName: string): RelationDescriptor;
391
+ snapshot(): TypeDescriptor[];
392
+ schemaInfo(): SchemaInfo;
393
+ }
394
+ export declare class Marshalling {
395
+ #private;
396
+ constructor(nativeMarshalling?: NativeMarshalling | null);
397
+ attributeValue(value: AttributeValue): unknown;
398
+ entityAttributes(descriptor: EntityDescriptor, attributes: AttributeInput): unknown;
399
+ relationAttributes(descriptor: RelationDescriptor, attributes: AttributeInput): unknown;
400
+ filters(descriptor: EntityDescriptor, filters: Record<string, AttributeValue> | FilterInput[]): unknown;
401
+ relationFilters(descriptor: RelationDescriptor, filters: Record<string, AttributeValue> | FilterInput[]): unknown;
402
+ aggregates(descriptor: EntityDescriptor, aggregates: AggregateInput[]): unknown;
403
+ rolePlayers(descriptor: RelationDescriptor, rolePlayers: RolePlayerInput[]): unknown;
404
+ relationWriteBatch(descriptor: RelationDescriptor, batch: RelationWriteInput[]): unknown;
405
+ }
406
+ export declare class RustDatabase {
407
+ #private;
408
+ private constructor();
409
+ static connect(address: string, database: string, options?: RustDatabaseConnectOptions): RustDatabase;
410
+ static connect(native: NativeRuntime, address: string, database: string, options?: RustDatabaseConnectOptions): RustDatabase;
411
+ isConnected(): boolean;
412
+ databaseName(): string;
413
+ transaction(transactionType?: TransactionType): RustTransactionContext;
414
+ entityManager(descriptor: EntityDescriptor): RustDynamicEntityManager;
415
+ relationManager(descriptor: RelationDescriptor): RustDynamicRelationManager;
416
+ }
417
+ export declare class RustTransactionContext {
418
+ #private;
419
+ constructor(native: NativeRustTransactionContext);
420
+ query(query: string): unknown[];
421
+ commit(): void;
422
+ rollback(): void;
423
+ close(): void;
424
+ transactionType(): TransactionType;
425
+ entityManager(descriptor: EntityDescriptor): RustDynamicEntityManager;
426
+ relationManager(descriptor: RelationDescriptor): RustDynamicRelationManager;
427
+ }
428
+ export declare class RustDynamicEntityManager {
429
+ #private;
430
+ constructor(native: NativeDynamicEntityManager);
431
+ insert(attributes: AttributeInput): string;
432
+ insertMany(batch: AttributeInput[]): string[];
433
+ put(attributes: AttributeInput): string;
434
+ putMany(batch: AttributeInput[]): string[];
435
+ update(attributes: AttributeInput, iid?: string | null): void;
436
+ get(filters?: Record<string, AttributeValue> | FilterInput[] | null): DynamicEntityRow[];
437
+ getByIid(iid: string): DynamicEntityRow | null;
438
+ all(): DynamicEntityRow[];
439
+ count(filters?: Record<string, AttributeValue> | FilterInput[] | null): bigint;
440
+ aggregate(aggregates: AggregateInput[], filters?: Record<string, AttributeValue> | FilterInput[] | null): unknown[];
441
+ groupByAggregate(groupFields: string[], aggregates: AggregateInput[], filters?: Record<string, AttributeValue> | FilterInput[] | null): unknown[];
442
+ query(spec: DynamicQuerySpec): DynamicEntityRow[];
443
+ queryCount(spec: DynamicQuerySpec): bigint;
444
+ queryAggregate(spec: DynamicQuerySpec, aggregates: AggregateInput[]): unknown[];
445
+ queryGroupByAggregate(spec: DynamicQuerySpec, groupFields: string[], aggregates: AggregateInput[]): unknown[];
446
+ deleteByIid(iid: string): void;
447
+ }
448
+ export declare class RustDynamicRelationManager {
449
+ #private;
450
+ constructor(native: NativeDynamicRelationManager);
451
+ insert(attributes: AttributeInput, rolePlayers: RolePlayerInput[]): string;
452
+ insertMany(batch: RelationWriteInput[]): string[];
453
+ put(attributes: AttributeInput, rolePlayers: RolePlayerInput[]): string;
454
+ putMany(batch: RelationWriteInput[]): string[];
455
+ update(attributes: AttributeInput, rolePlayers: RolePlayerInput[], iid?: string | null): void;
456
+ get(filters?: Record<string, AttributeValue> | FilterInput[] | null): DynamicRelationRow[];
457
+ getWithRolePlayers(filters?: Record<string, AttributeValue> | FilterInput[] | null, rolePlayers?: RolePlayerInput[] | null): DynamicRelationRow[];
458
+ getByIid(iid: string): DynamicRelationRow[];
459
+ all(): DynamicRelationRow[];
460
+ count(filters?: Record<string, AttributeValue> | FilterInput[] | null): bigint;
461
+ aggregate(aggregates: AggregateInput[], filters?: Record<string, AttributeValue> | FilterInput[] | null): unknown[];
462
+ groupByAggregate(groupFields: string[], aggregates: AggregateInput[], filters?: Record<string, AttributeValue> | FilterInput[] | null): unknown[];
463
+ query(spec: DynamicQuerySpec): DynamicRelationRow[];
464
+ queryCount(spec: DynamicQuerySpec): bigint;
465
+ queryAggregate(spec: DynamicQuerySpec, aggregates: AggregateInput[]): unknown[];
466
+ queryGroupByAggregate(spec: DynamicQuerySpec, groupFields: string[], aggregates: AggregateInput[]): unknown[];
467
+ deleteByIid(iid: string): void;
468
+ }
469
+ export { generateModels, type GenerateModelsOptions, type NamingOptions, } from "./generator/index.js";