@frontal-labs/ontology 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -0
- package/dist/constants.d.ts +9 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +468 -0
- package/dist/index.mjs +434 -0
- package/dist/keys.d.ts +6 -0
- package/dist/keys.d.ts.map +1 -0
- package/dist/schemas.d.ts +426 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/service.d.ts +139 -0
- package/dist/service.d.ts.map +1 -0
- package/package.json +80 -0
- package/src/constants.ts +9 -0
- package/src/index.ts +45 -0
- package/src/keys.ts +29 -0
- package/src/schemas.ts +191 -0
- package/src/service.ts +269 -0
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FieldTypeSchema: z.ZodEnum<{
|
|
3
|
+
string: "string";
|
|
4
|
+
boolean: "boolean";
|
|
5
|
+
integer: "integer";
|
|
6
|
+
float: "float";
|
|
7
|
+
uuid: "uuid";
|
|
8
|
+
timestamp: "timestamp";
|
|
9
|
+
currency: "currency";
|
|
10
|
+
json: "json";
|
|
11
|
+
array: "array";
|
|
12
|
+
enum: "enum";
|
|
13
|
+
vector: "vector";
|
|
14
|
+
text: "text";
|
|
15
|
+
}>;
|
|
16
|
+
export declare const RelationshipTypeSchema: z.ZodEnum<{
|
|
17
|
+
hasOne: "hasOne";
|
|
18
|
+
hasMany: "hasMany";
|
|
19
|
+
belongsTo: "belongsTo";
|
|
20
|
+
manyToMany: "manyToMany";
|
|
21
|
+
}>;
|
|
22
|
+
export declare const FieldDefinitionSchema: z.ZodObject<{
|
|
23
|
+
type: z.ZodEnum<{
|
|
24
|
+
string: "string";
|
|
25
|
+
boolean: "boolean";
|
|
26
|
+
integer: "integer";
|
|
27
|
+
float: "float";
|
|
28
|
+
uuid: "uuid";
|
|
29
|
+
timestamp: "timestamp";
|
|
30
|
+
currency: "currency";
|
|
31
|
+
json: "json";
|
|
32
|
+
array: "array";
|
|
33
|
+
enum: "enum";
|
|
34
|
+
vector: "vector";
|
|
35
|
+
text: "text";
|
|
36
|
+
}>;
|
|
37
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
38
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
39
|
+
unique: z.ZodDefault<z.ZodBoolean>;
|
|
40
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
41
|
+
substrate: z.ZodOptional<z.ZodString>;
|
|
42
|
+
computed: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
derivedBy: z.ZodOptional<z.ZodString>;
|
|
44
|
+
cache: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
ttl: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
auto: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
49
|
+
dimensions: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
items: z.ZodOptional<z.ZodString>;
|
|
51
|
+
description: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, z.core.$loose>;
|
|
53
|
+
export declare const RelationshipDefinitionSchema: z.ZodObject<{
|
|
54
|
+
name: z.ZodOptional<z.ZodString>;
|
|
55
|
+
type: z.ZodEnum<{
|
|
56
|
+
hasOne: "hasOne";
|
|
57
|
+
hasMany: "hasMany";
|
|
58
|
+
belongsTo: "belongsTo";
|
|
59
|
+
manyToMany: "manyToMany";
|
|
60
|
+
}>;
|
|
61
|
+
targetEntity: z.ZodString;
|
|
62
|
+
foreignKey: z.ZodOptional<z.ZodString>;
|
|
63
|
+
substrate: z.ZodOptional<z.ZodString>;
|
|
64
|
+
cascade: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
delete: z.ZodEnum<{
|
|
66
|
+
hard: "hard";
|
|
67
|
+
soft: "soft";
|
|
68
|
+
restrict: "restrict";
|
|
69
|
+
nullify: "nullify";
|
|
70
|
+
}>;
|
|
71
|
+
update: z.ZodEnum<{
|
|
72
|
+
restrict: "restrict";
|
|
73
|
+
cascade: "cascade";
|
|
74
|
+
}>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
computed: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
77
|
+
description: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$loose>;
|
|
79
|
+
export declare const SubstrateRoutingSchema: z.ZodObject<{
|
|
80
|
+
operational: z.ZodOptional<z.ZodString>;
|
|
81
|
+
analytical: z.ZodOptional<z.ZodString>;
|
|
82
|
+
semantic: z.ZodOptional<z.ZodString>;
|
|
83
|
+
cache: z.ZodOptional<z.ZodString>;
|
|
84
|
+
}, z.core.$loose>;
|
|
85
|
+
export declare const SemanticMetadataSchema: z.ZodObject<{
|
|
86
|
+
description: z.ZodOptional<z.ZodString>;
|
|
87
|
+
lifecycle: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
88
|
+
criticalFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
|
+
significantEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
90
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
91
|
+
}, z.core.$loose>;
|
|
92
|
+
export declare const IndexDefinitionSchema: z.ZodObject<{
|
|
93
|
+
name: z.ZodOptional<z.ZodString>;
|
|
94
|
+
fields: z.ZodArray<z.ZodString>;
|
|
95
|
+
substrate: z.ZodOptional<z.ZodString>;
|
|
96
|
+
unique: z.ZodDefault<z.ZodBoolean>;
|
|
97
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
98
|
+
btree: "btree";
|
|
99
|
+
hash: "hash";
|
|
100
|
+
gin: "gin";
|
|
101
|
+
gist: "gist";
|
|
102
|
+
brin: "brin";
|
|
103
|
+
}>>;
|
|
104
|
+
}, z.core.$loose>;
|
|
105
|
+
export declare const ModelDefinitionSchema: z.ZodObject<{
|
|
106
|
+
name: z.ZodString;
|
|
107
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
108
|
+
description: z.ZodOptional<z.ZodString>;
|
|
109
|
+
extends: z.ZodOptional<z.ZodString>;
|
|
110
|
+
mixins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
111
|
+
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
112
|
+
type: z.ZodEnum<{
|
|
113
|
+
string: "string";
|
|
114
|
+
boolean: "boolean";
|
|
115
|
+
integer: "integer";
|
|
116
|
+
float: "float";
|
|
117
|
+
uuid: "uuid";
|
|
118
|
+
timestamp: "timestamp";
|
|
119
|
+
currency: "currency";
|
|
120
|
+
json: "json";
|
|
121
|
+
array: "array";
|
|
122
|
+
enum: "enum";
|
|
123
|
+
vector: "vector";
|
|
124
|
+
text: "text";
|
|
125
|
+
}>;
|
|
126
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
127
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
128
|
+
unique: z.ZodDefault<z.ZodBoolean>;
|
|
129
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
130
|
+
substrate: z.ZodOptional<z.ZodString>;
|
|
131
|
+
computed: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
+
derivedBy: z.ZodOptional<z.ZodString>;
|
|
133
|
+
cache: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
ttl: z.ZodString;
|
|
135
|
+
}, z.core.$strip>>;
|
|
136
|
+
auto: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
138
|
+
dimensions: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
items: z.ZodOptional<z.ZodString>;
|
|
140
|
+
description: z.ZodOptional<z.ZodString>;
|
|
141
|
+
}, z.core.$loose>>;
|
|
142
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
143
|
+
name: z.ZodOptional<z.ZodString>;
|
|
144
|
+
type: z.ZodEnum<{
|
|
145
|
+
hasOne: "hasOne";
|
|
146
|
+
hasMany: "hasMany";
|
|
147
|
+
belongsTo: "belongsTo";
|
|
148
|
+
manyToMany: "manyToMany";
|
|
149
|
+
}>;
|
|
150
|
+
targetEntity: z.ZodString;
|
|
151
|
+
foreignKey: z.ZodOptional<z.ZodString>;
|
|
152
|
+
substrate: z.ZodOptional<z.ZodString>;
|
|
153
|
+
cascade: z.ZodOptional<z.ZodObject<{
|
|
154
|
+
delete: z.ZodEnum<{
|
|
155
|
+
hard: "hard";
|
|
156
|
+
soft: "soft";
|
|
157
|
+
restrict: "restrict";
|
|
158
|
+
nullify: "nullify";
|
|
159
|
+
}>;
|
|
160
|
+
update: z.ZodEnum<{
|
|
161
|
+
restrict: "restrict";
|
|
162
|
+
cascade: "cascade";
|
|
163
|
+
}>;
|
|
164
|
+
}, z.core.$strip>>;
|
|
165
|
+
computed: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
166
|
+
description: z.ZodOptional<z.ZodString>;
|
|
167
|
+
}, z.core.$loose>>>;
|
|
168
|
+
substrates: z.ZodOptional<z.ZodObject<{
|
|
169
|
+
operational: z.ZodOptional<z.ZodString>;
|
|
170
|
+
analytical: z.ZodOptional<z.ZodString>;
|
|
171
|
+
semantic: z.ZodOptional<z.ZodString>;
|
|
172
|
+
cache: z.ZodOptional<z.ZodString>;
|
|
173
|
+
}, z.core.$loose>>;
|
|
174
|
+
semantics: z.ZodOptional<z.ZodObject<{
|
|
175
|
+
description: z.ZodOptional<z.ZodString>;
|
|
176
|
+
lifecycle: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
177
|
+
criticalFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
178
|
+
significantEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
179
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
180
|
+
}, z.core.$loose>>;
|
|
181
|
+
indexes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
182
|
+
name: z.ZodOptional<z.ZodString>;
|
|
183
|
+
fields: z.ZodArray<z.ZodString>;
|
|
184
|
+
substrate: z.ZodOptional<z.ZodString>;
|
|
185
|
+
unique: z.ZodDefault<z.ZodBoolean>;
|
|
186
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
187
|
+
btree: "btree";
|
|
188
|
+
hash: "hash";
|
|
189
|
+
gin: "gin";
|
|
190
|
+
gist: "gist";
|
|
191
|
+
brin: "brin";
|
|
192
|
+
}>>;
|
|
193
|
+
}, z.core.$loose>>>;
|
|
194
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
195
|
+
draft: "draft";
|
|
196
|
+
active: "active";
|
|
197
|
+
deprecated: "deprecated";
|
|
198
|
+
}>>;
|
|
199
|
+
}, z.core.$strict>;
|
|
200
|
+
export declare const ModelSchema: z.ZodObject<{
|
|
201
|
+
name: z.ZodString;
|
|
202
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
203
|
+
description: z.ZodOptional<z.ZodString>;
|
|
204
|
+
extends: z.ZodOptional<z.ZodString>;
|
|
205
|
+
mixins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
206
|
+
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
207
|
+
type: z.ZodEnum<{
|
|
208
|
+
string: "string";
|
|
209
|
+
boolean: "boolean";
|
|
210
|
+
integer: "integer";
|
|
211
|
+
float: "float";
|
|
212
|
+
uuid: "uuid";
|
|
213
|
+
timestamp: "timestamp";
|
|
214
|
+
currency: "currency";
|
|
215
|
+
json: "json";
|
|
216
|
+
array: "array";
|
|
217
|
+
enum: "enum";
|
|
218
|
+
vector: "vector";
|
|
219
|
+
text: "text";
|
|
220
|
+
}>;
|
|
221
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
222
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
223
|
+
unique: z.ZodDefault<z.ZodBoolean>;
|
|
224
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
225
|
+
substrate: z.ZodOptional<z.ZodString>;
|
|
226
|
+
computed: z.ZodOptional<z.ZodBoolean>;
|
|
227
|
+
derivedBy: z.ZodOptional<z.ZodString>;
|
|
228
|
+
cache: z.ZodOptional<z.ZodObject<{
|
|
229
|
+
ttl: z.ZodString;
|
|
230
|
+
}, z.core.$strip>>;
|
|
231
|
+
auto: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
233
|
+
dimensions: z.ZodOptional<z.ZodNumber>;
|
|
234
|
+
items: z.ZodOptional<z.ZodString>;
|
|
235
|
+
description: z.ZodOptional<z.ZodString>;
|
|
236
|
+
}, z.core.$loose>>;
|
|
237
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
238
|
+
name: z.ZodOptional<z.ZodString>;
|
|
239
|
+
type: z.ZodEnum<{
|
|
240
|
+
hasOne: "hasOne";
|
|
241
|
+
hasMany: "hasMany";
|
|
242
|
+
belongsTo: "belongsTo";
|
|
243
|
+
manyToMany: "manyToMany";
|
|
244
|
+
}>;
|
|
245
|
+
targetEntity: z.ZodString;
|
|
246
|
+
foreignKey: z.ZodOptional<z.ZodString>;
|
|
247
|
+
substrate: z.ZodOptional<z.ZodString>;
|
|
248
|
+
cascade: z.ZodOptional<z.ZodObject<{
|
|
249
|
+
delete: z.ZodEnum<{
|
|
250
|
+
hard: "hard";
|
|
251
|
+
soft: "soft";
|
|
252
|
+
restrict: "restrict";
|
|
253
|
+
nullify: "nullify";
|
|
254
|
+
}>;
|
|
255
|
+
update: z.ZodEnum<{
|
|
256
|
+
restrict: "restrict";
|
|
257
|
+
cascade: "cascade";
|
|
258
|
+
}>;
|
|
259
|
+
}, z.core.$strip>>;
|
|
260
|
+
computed: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
261
|
+
description: z.ZodOptional<z.ZodString>;
|
|
262
|
+
}, z.core.$loose>>>;
|
|
263
|
+
substrates: z.ZodOptional<z.ZodObject<{
|
|
264
|
+
operational: z.ZodOptional<z.ZodString>;
|
|
265
|
+
analytical: z.ZodOptional<z.ZodString>;
|
|
266
|
+
semantic: z.ZodOptional<z.ZodString>;
|
|
267
|
+
cache: z.ZodOptional<z.ZodString>;
|
|
268
|
+
}, z.core.$loose>>;
|
|
269
|
+
semantics: z.ZodOptional<z.ZodObject<{
|
|
270
|
+
description: z.ZodOptional<z.ZodString>;
|
|
271
|
+
lifecycle: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
272
|
+
criticalFields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
273
|
+
significantEvents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
274
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
275
|
+
}, z.core.$loose>>;
|
|
276
|
+
indexes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
277
|
+
name: z.ZodOptional<z.ZodString>;
|
|
278
|
+
fields: z.ZodArray<z.ZodString>;
|
|
279
|
+
substrate: z.ZodOptional<z.ZodString>;
|
|
280
|
+
unique: z.ZodDefault<z.ZodBoolean>;
|
|
281
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
282
|
+
btree: "btree";
|
|
283
|
+
hash: "hash";
|
|
284
|
+
gin: "gin";
|
|
285
|
+
gist: "gist";
|
|
286
|
+
brin: "brin";
|
|
287
|
+
}>>;
|
|
288
|
+
}, z.core.$loose>>>;
|
|
289
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
290
|
+
draft: "draft";
|
|
291
|
+
active: "active";
|
|
292
|
+
deprecated: "deprecated";
|
|
293
|
+
}>>;
|
|
294
|
+
id: z.ZodString;
|
|
295
|
+
version: z.ZodNumber;
|
|
296
|
+
createdAt: z.ZodPipe<z.ZodDate, z.ZodTransform<Date, Date>>;
|
|
297
|
+
updatedAt: z.ZodPipe<z.ZodDate, z.ZodTransform<Date, Date>>;
|
|
298
|
+
entityCount: z.ZodOptional<z.ZodNumber>;
|
|
299
|
+
}, z.core.$loose>;
|
|
300
|
+
export declare const MigrationPlanSchema: z.ZodObject<{
|
|
301
|
+
id: z.ZodString;
|
|
302
|
+
modelId: z.ZodString;
|
|
303
|
+
fromVersion: z.ZodNumber;
|
|
304
|
+
toVersion: z.ZodNumber;
|
|
305
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
306
|
+
type: z.ZodEnum<{
|
|
307
|
+
"add-field": "add-field";
|
|
308
|
+
"remove-field": "remove-field";
|
|
309
|
+
"modify-field": "modify-field";
|
|
310
|
+
"add-relationship": "add-relationship";
|
|
311
|
+
"remove-relationship": "remove-relationship";
|
|
312
|
+
}>;
|
|
313
|
+
description: z.ZodString;
|
|
314
|
+
impact: z.ZodEnum<{
|
|
315
|
+
breaking: "breaking";
|
|
316
|
+
"non-breaking": "non-breaking";
|
|
317
|
+
"data-loss": "data-loss";
|
|
318
|
+
}>;
|
|
319
|
+
sql: z.ZodOptional<z.ZodString>;
|
|
320
|
+
}, z.core.$strip>>;
|
|
321
|
+
riskLevel: z.ZodEnum<{
|
|
322
|
+
low: "low";
|
|
323
|
+
medium: "medium";
|
|
324
|
+
high: "high";
|
|
325
|
+
critical: "critical";
|
|
326
|
+
}>;
|
|
327
|
+
estimatedDowntime: z.ZodOptional<z.ZodString>;
|
|
328
|
+
rolloutStrategy: z.ZodEnum<{
|
|
329
|
+
"zero-downtime": "zero-downtime";
|
|
330
|
+
"maintenance-window": "maintenance-window";
|
|
331
|
+
immediate: "immediate";
|
|
332
|
+
}>;
|
|
333
|
+
createdAt: z.ZodPipe<z.ZodDate, z.ZodTransform<Date, Date>>;
|
|
334
|
+
}, z.core.$loose>;
|
|
335
|
+
export declare const RuleDefinitionSchema: z.ZodObject<{
|
|
336
|
+
name: z.ZodString;
|
|
337
|
+
description: z.ZodOptional<z.ZodString>;
|
|
338
|
+
entityTypes: z.ZodArray<z.ZodString>;
|
|
339
|
+
condition: z.ZodString;
|
|
340
|
+
action: z.ZodEnum<{
|
|
341
|
+
transform: "transform";
|
|
342
|
+
validate: "validate";
|
|
343
|
+
notify: "notify";
|
|
344
|
+
}>;
|
|
345
|
+
severity: z.ZodEnum<{
|
|
346
|
+
error: "error";
|
|
347
|
+
warning: "warning";
|
|
348
|
+
info: "info";
|
|
349
|
+
}>;
|
|
350
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
351
|
+
}, z.core.$strict>;
|
|
352
|
+
export declare const MixinDefinitionSchema: z.ZodObject<{
|
|
353
|
+
name: z.ZodString;
|
|
354
|
+
description: z.ZodOptional<z.ZodString>;
|
|
355
|
+
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
356
|
+
type: z.ZodEnum<{
|
|
357
|
+
string: "string";
|
|
358
|
+
boolean: "boolean";
|
|
359
|
+
integer: "integer";
|
|
360
|
+
float: "float";
|
|
361
|
+
uuid: "uuid";
|
|
362
|
+
timestamp: "timestamp";
|
|
363
|
+
currency: "currency";
|
|
364
|
+
json: "json";
|
|
365
|
+
array: "array";
|
|
366
|
+
enum: "enum";
|
|
367
|
+
vector: "vector";
|
|
368
|
+
text: "text";
|
|
369
|
+
}>;
|
|
370
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
371
|
+
primary: z.ZodDefault<z.ZodBoolean>;
|
|
372
|
+
unique: z.ZodDefault<z.ZodBoolean>;
|
|
373
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
374
|
+
substrate: z.ZodOptional<z.ZodString>;
|
|
375
|
+
computed: z.ZodOptional<z.ZodBoolean>;
|
|
376
|
+
derivedBy: z.ZodOptional<z.ZodString>;
|
|
377
|
+
cache: z.ZodOptional<z.ZodObject<{
|
|
378
|
+
ttl: z.ZodString;
|
|
379
|
+
}, z.core.$strip>>;
|
|
380
|
+
auto: z.ZodOptional<z.ZodBoolean>;
|
|
381
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
382
|
+
dimensions: z.ZodOptional<z.ZodNumber>;
|
|
383
|
+
items: z.ZodOptional<z.ZodString>;
|
|
384
|
+
description: z.ZodOptional<z.ZodString>;
|
|
385
|
+
}, z.core.$loose>>;
|
|
386
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
387
|
+
name: z.ZodOptional<z.ZodString>;
|
|
388
|
+
type: z.ZodEnum<{
|
|
389
|
+
hasOne: "hasOne";
|
|
390
|
+
hasMany: "hasMany";
|
|
391
|
+
belongsTo: "belongsTo";
|
|
392
|
+
manyToMany: "manyToMany";
|
|
393
|
+
}>;
|
|
394
|
+
targetEntity: z.ZodString;
|
|
395
|
+
foreignKey: z.ZodOptional<z.ZodString>;
|
|
396
|
+
substrate: z.ZodOptional<z.ZodString>;
|
|
397
|
+
cascade: z.ZodOptional<z.ZodObject<{
|
|
398
|
+
delete: z.ZodEnum<{
|
|
399
|
+
hard: "hard";
|
|
400
|
+
soft: "soft";
|
|
401
|
+
restrict: "restrict";
|
|
402
|
+
nullify: "nullify";
|
|
403
|
+
}>;
|
|
404
|
+
update: z.ZodEnum<{
|
|
405
|
+
restrict: "restrict";
|
|
406
|
+
cascade: "cascade";
|
|
407
|
+
}>;
|
|
408
|
+
}, z.core.$strip>>;
|
|
409
|
+
computed: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
410
|
+
description: z.ZodOptional<z.ZodString>;
|
|
411
|
+
}, z.core.$loose>>>;
|
|
412
|
+
appliesTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
413
|
+
}, z.core.$strict>;
|
|
414
|
+
export type FieldType = z.infer<typeof FieldTypeSchema>;
|
|
415
|
+
export type RelationshipType = z.infer<typeof RelationshipTypeSchema>;
|
|
416
|
+
export type FieldDefinition = z.infer<typeof FieldDefinitionSchema>;
|
|
417
|
+
export type RelationshipDefinition = z.infer<typeof RelationshipDefinitionSchema>;
|
|
418
|
+
export type SubstrateRouting = z.infer<typeof SubstrateRoutingSchema>;
|
|
419
|
+
export type SemanticMetadata = z.infer<typeof SemanticMetadataSchema>;
|
|
420
|
+
export type IndexDefinition = z.infer<typeof IndexDefinitionSchema>;
|
|
421
|
+
export type ModelDefinition = z.infer<typeof ModelDefinitionSchema>;
|
|
422
|
+
export type Model = z.infer<typeof ModelSchema>;
|
|
423
|
+
export type MigrationPlan = z.infer<typeof MigrationPlanSchema>;
|
|
424
|
+
export type RuleDefinition = z.infer<typeof RuleDefinitionSchema>;
|
|
425
|
+
export type MixinDefinition = z.infer<typeof MixinDefinitionSchema>;
|
|
426
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;;;;;;;;;EAa1B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;EAKjC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBlB,CAAC;AAEjB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBzB,CAAC;AAEjB,eAAO,MAAM,sBAAsB;;;;;iBAOnB,CAAC;AAEjB,eAAO,MAAM,sBAAsB;;;;;;iBAQnB,CAAC;AAEjB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;iBAQlB,CAAC;AAEjB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAgBvB,CAAC;AAEZ,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { type HttpClient, type PageResult } from "@frontal-labs/core";
|
|
2
|
+
import type { z } from "zod";
|
|
3
|
+
import * as S from "./schemas";
|
|
4
|
+
export declare class OntologyService {
|
|
5
|
+
private readonly http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
use(name: string): ModelAccessor;
|
|
8
|
+
list(opts?: {
|
|
9
|
+
status?: z.infer<typeof S.ModelSchema>["status"];
|
|
10
|
+
substrate?: string;
|
|
11
|
+
limit?: number;
|
|
12
|
+
cursor?: string;
|
|
13
|
+
}): Promise<PageResult<S.Model>>;
|
|
14
|
+
create(definition: S.ModelDefinition): Promise<S.Model>;
|
|
15
|
+
validate(definition: S.ModelDefinition): Promise<{
|
|
16
|
+
valid: boolean;
|
|
17
|
+
errors?: unknown[];
|
|
18
|
+
warnings?: unknown[];
|
|
19
|
+
}>;
|
|
20
|
+
checkIntegrity(): Promise<{
|
|
21
|
+
valid: boolean;
|
|
22
|
+
violations?: unknown[];
|
|
23
|
+
}>;
|
|
24
|
+
readonly migrations: MigrationsNamespace;
|
|
25
|
+
readonly rules: RulesNamespace;
|
|
26
|
+
readonly mixins: MixinsNamespace;
|
|
27
|
+
readonly generation: GenerationNamespace;
|
|
28
|
+
}
|
|
29
|
+
export declare class ModelAccessor {
|
|
30
|
+
readonly _name: string;
|
|
31
|
+
private readonly http;
|
|
32
|
+
constructor(_name: string, http: HttpClient);
|
|
33
|
+
get(version?: number): Promise<S.Model>;
|
|
34
|
+
update(definition: Partial<S.ModelDefinition>): Promise<S.Model>;
|
|
35
|
+
delete(force?: boolean): Promise<void>;
|
|
36
|
+
relationships(): Promise<{
|
|
37
|
+
data: S.RelationshipDefinition[];
|
|
38
|
+
}>;
|
|
39
|
+
addRelationship(definition: S.RelationshipDefinition): Promise<S.RelationshipDefinition>;
|
|
40
|
+
removeRelationship(relationshipId: string): Promise<void>;
|
|
41
|
+
validateData(): Promise<{
|
|
42
|
+
entityType: string;
|
|
43
|
+
totalChecked: number;
|
|
44
|
+
violations: unknown[];
|
|
45
|
+
}>;
|
|
46
|
+
versions(): Promise<{
|
|
47
|
+
data: Array<{
|
|
48
|
+
version: number;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
changedBy: string;
|
|
51
|
+
changesSummary: string;
|
|
52
|
+
migrationId?: string;
|
|
53
|
+
}>;
|
|
54
|
+
}>;
|
|
55
|
+
}
|
|
56
|
+
export declare class MigrationsNamespace {
|
|
57
|
+
private readonly http;
|
|
58
|
+
constructor(http: HttpClient);
|
|
59
|
+
plan(request: {
|
|
60
|
+
modelId?: string;
|
|
61
|
+
changes?: S.ModelDefinition[];
|
|
62
|
+
}): Promise<S.MigrationPlan>;
|
|
63
|
+
apply(planId: string, strategy?: string): Promise<{
|
|
64
|
+
id: string;
|
|
65
|
+
status: string;
|
|
66
|
+
appliedAt: string;
|
|
67
|
+
}>;
|
|
68
|
+
rollback(_migrationId: string): Promise<{
|
|
69
|
+
id: string;
|
|
70
|
+
status: string;
|
|
71
|
+
rolledBackAt: string;
|
|
72
|
+
}>;
|
|
73
|
+
history(opts?: {
|
|
74
|
+
limit?: number;
|
|
75
|
+
cursor?: string;
|
|
76
|
+
}): Promise<PageResult<{
|
|
77
|
+
id: string;
|
|
78
|
+
modelId: string;
|
|
79
|
+
fromVersion: number;
|
|
80
|
+
toVersion: number;
|
|
81
|
+
status: string;
|
|
82
|
+
createdAt: string;
|
|
83
|
+
}>>;
|
|
84
|
+
}
|
|
85
|
+
export declare class RulesNamespace {
|
|
86
|
+
private readonly http;
|
|
87
|
+
constructor(http: HttpClient);
|
|
88
|
+
list(): Promise<{
|
|
89
|
+
data: S.RuleDefinition[];
|
|
90
|
+
}>;
|
|
91
|
+
create(definition: S.RuleDefinition): Promise<S.RuleDefinition>;
|
|
92
|
+
update(_ruleId: string, definition: Partial<S.RuleDefinition>): Promise<S.RuleDefinition>;
|
|
93
|
+
delete(ruleId: string): Promise<void>;
|
|
94
|
+
evaluate(opts: {
|
|
95
|
+
entityType?: string;
|
|
96
|
+
ruleIds?: string[];
|
|
97
|
+
sample?: number;
|
|
98
|
+
}): Promise<{
|
|
99
|
+
results: unknown[];
|
|
100
|
+
summary: unknown;
|
|
101
|
+
}>;
|
|
102
|
+
}
|
|
103
|
+
export declare class MixinsNamespace {
|
|
104
|
+
private readonly http;
|
|
105
|
+
constructor(http: HttpClient);
|
|
106
|
+
list(): Promise<{
|
|
107
|
+
data: S.MixinDefinition[];
|
|
108
|
+
}>;
|
|
109
|
+
create(definition: S.MixinDefinition): Promise<S.MixinDefinition>;
|
|
110
|
+
}
|
|
111
|
+
export declare class GenerationNamespace {
|
|
112
|
+
private readonly http;
|
|
113
|
+
constructor(http: HttpClient);
|
|
114
|
+
generate(description: string, opts: {
|
|
115
|
+
context?: {
|
|
116
|
+
existingModels?: string[];
|
|
117
|
+
};
|
|
118
|
+
substrates?: string[];
|
|
119
|
+
}): Promise<{
|
|
120
|
+
proposal: S.ModelDefinition;
|
|
121
|
+
confidence: number;
|
|
122
|
+
reasoning: string;
|
|
123
|
+
}>;
|
|
124
|
+
infer(opts: {
|
|
125
|
+
substrates?: string[];
|
|
126
|
+
confidence?: "low" | "medium" | "high";
|
|
127
|
+
merge?: boolean;
|
|
128
|
+
}): Promise<{
|
|
129
|
+
proposals: unknown[];
|
|
130
|
+
}>;
|
|
131
|
+
suggestions(opts?: {
|
|
132
|
+
status?: "pending" | "accepted" | "rejected";
|
|
133
|
+
}): Promise<{
|
|
134
|
+
data: unknown[];
|
|
135
|
+
}>;
|
|
136
|
+
acceptSuggestion(_suggestionId: string): Promise<unknown>;
|
|
137
|
+
rejectSuggestion(_suggestionId: string, reason?: string): Promise<unknown>;
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"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CAAC;IAIzB,gBAAgB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIzD,gBAAgB,CACpB,aAAa,EAAE,MAAM,EACrB,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,OAAO,CAAC;CAKpB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@frontal-labs/ontology",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Frontal Ontology SDK — semantic model and schema management, migrations, and AI-powered inference",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"javascript",
|
|
7
|
+
"typescript",
|
|
8
|
+
"ontology",
|
|
9
|
+
"semantic-model",
|
|
10
|
+
"schemas",
|
|
11
|
+
"migrations",
|
|
12
|
+
"ai-inference",
|
|
13
|
+
"entity-management",
|
|
14
|
+
"cloud",
|
|
15
|
+
"frontal"
|
|
16
|
+
],
|
|
17
|
+
"homepage": "https://github.com/frontal-labs/sdk-typescript/tree/master/packages/ontology",
|
|
18
|
+
"bugs": "https://github.com/frontal-labs/sdk-typescript/issues",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"author": "Frontal Labs",
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"src"
|
|
24
|
+
],
|
|
25
|
+
"main": "dist/index.cjs",
|
|
26
|
+
"module": "dist/index.mjs",
|
|
27
|
+
"types": "dist/index.d.ts",
|
|
28
|
+
"bin": {
|
|
29
|
+
"frontal-ontology": "./dist/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"import": {
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"default": "./dist/index.mjs"
|
|
36
|
+
},
|
|
37
|
+
"require": {
|
|
38
|
+
"types": "./dist/index.d.ts",
|
|
39
|
+
"default": "./dist/index.cjs"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"./dist/*": "./dist/*",
|
|
43
|
+
"./package.json": "./package.json"
|
|
44
|
+
},
|
|
45
|
+
"sideEffects": false,
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "https://github.com/frontal-labs/sdk-typescript.git",
|
|
49
|
+
"directory": "packages/ontology"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"build": "tsup && tsc --emitDeclarationOnly",
|
|
53
|
+
"build:watch": "tsup --watch",
|
|
54
|
+
"type-check": "tsc --noEmit",
|
|
55
|
+
"test": "bun test",
|
|
56
|
+
"lint": "biome lint src/ tests/",
|
|
57
|
+
"clean": "rm -rf dist",
|
|
58
|
+
"docs": "typedoc --entryPoints src/index.ts --out docs/v2 --entryPoints src/packages/* --excludePrivate --excludeProtected",
|
|
59
|
+
"docs:json": "typedoc --json docs/v2/spec.json --entryPoints src/index.ts --entryPoints src/packages/* --excludePrivate --excludeExternals --excludeProtected"
|
|
60
|
+
},
|
|
61
|
+
"jsdelivr": "dist/umd/ontology.js",
|
|
62
|
+
"unpkg": "dist/umd/ontology.js",
|
|
63
|
+
"publishConfig": {"access": "public"},
|
|
64
|
+
"engines": {
|
|
65
|
+
"bun": ">=1.3.8",
|
|
66
|
+
"node": ">=18.0.0"
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"@frontal-labs/core": "^1.0.1",
|
|
70
|
+
"@t3-oss/env-core": "^0.13.10",
|
|
71
|
+
"tslib": "^2.8.1",
|
|
72
|
+
"zod": "^4.3.6"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@frontal-labs/testing": "^1.0.1",
|
|
76
|
+
"@types/bun": "^1.3.8",
|
|
77
|
+
"@types/node": "^25.2.1",
|
|
78
|
+
"tsup": "^8.5.1"
|
|
79
|
+
}
|
|
80
|
+
}
|