db4ai 0.2.0 → 0.3.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/dist/chunk-3DWAMVV5.js +305 -0
- package/dist/chunk-3DWAMVV5.js.map +1 -0
- package/dist/chunk-COTPYBYM.js +618 -0
- package/dist/chunk-COTPYBYM.js.map +1 -0
- package/dist/chunk-EERD6CDF.js +735 -0
- package/dist/chunk-EERD6CDF.js.map +1 -0
- package/dist/chunk-FUF4HJTC.js +758 -0
- package/dist/chunk-FUF4HJTC.js.map +1 -0
- package/dist/chunk-JLL6FH5L.js +16 -0
- package/dist/chunk-JLL6FH5L.js.map +1 -0
- package/dist/chunk-JXFW6AIT.js +192 -0
- package/dist/chunk-JXFW6AIT.js.map +1 -0
- package/dist/chunk-XLSYCQPG.js +854 -0
- package/dist/chunk-XLSYCQPG.js.map +1 -0
- package/dist/chunk-Y5IXAS7F.js +569 -0
- package/dist/chunk-Y5IXAS7F.js.map +1 -0
- package/dist/cli/bin.d.ts +13 -12
- package/dist/cli/bin.js +277 -307
- package/dist/cli/bin.js.map +1 -1
- package/dist/cli/dashboard/index.d.ts +295 -14
- package/dist/cli/dashboard/index.js +60 -15
- package/dist/cli/dashboard/index.js.map +1 -1
- package/dist/cli/index.d.ts +10 -16
- package/dist/cli/index.js +94 -47
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/runtime/index.d.ts +52 -23
- package/dist/cli/runtime/index.js +10 -704
- package/dist/cli/runtime/index.js.map +1 -1
- package/dist/cli/scanner/index.d.ts +17 -15
- package/dist/cli/scanner/index.js +8 -639
- package/dist/cli/scanner/index.js.map +1 -1
- package/dist/cli/seed/index.d.ts +16 -12
- package/dist/cli/seed/index.js +12 -773
- package/dist/cli/seed/index.js.map +1 -1
- package/dist/cli/sync/index.d.ts +54 -53
- package/dist/cli/sync/index.js +23 -704
- package/dist/cli/sync/index.js.map +1 -1
- package/dist/cli/terminal.d.ts +9 -8
- package/dist/cli/terminal.js +6 -209
- package/dist/cli/terminal.js.map +1 -1
- package/dist/cli/workflow/index.d.ts +18 -10
- package/dist/cli/workflow/index.js +6 -307
- package/dist/cli/workflow/index.js.map +1 -1
- package/dist/handlers.d.ts +10 -9
- package/dist/handlers.js +6 -38
- package/dist/handlers.js.map +1 -1
- package/dist/index.d.ts +134 -117
- package/dist/index.js +1963 -3067
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
- package/dist/cli/bin.d.ts.map +0 -1
- package/dist/cli/dashboard/App.d.ts +0 -16
- package/dist/cli/dashboard/App.d.ts.map +0 -1
- package/dist/cli/dashboard/App.js +0 -116
- package/dist/cli/dashboard/App.js.map +0 -1
- package/dist/cli/dashboard/components/index.d.ts +0 -70
- package/dist/cli/dashboard/components/index.d.ts.map +0 -1
- package/dist/cli/dashboard/components/index.js +0 -192
- package/dist/cli/dashboard/components/index.js.map +0 -1
- package/dist/cli/dashboard/hooks/index.d.ts +0 -76
- package/dist/cli/dashboard/hooks/index.d.ts.map +0 -1
- package/dist/cli/dashboard/hooks/index.js +0 -201
- package/dist/cli/dashboard/hooks/index.js.map +0 -1
- package/dist/cli/dashboard/index.d.ts.map +0 -1
- package/dist/cli/dashboard/types.d.ts +0 -84
- package/dist/cli/dashboard/types.d.ts.map +0 -1
- package/dist/cli/dashboard/types.js +0 -5
- package/dist/cli/dashboard/types.js.map +0 -1
- package/dist/cli/dashboard/views/index.d.ts +0 -51
- package/dist/cli/dashboard/views/index.d.ts.map +0 -1
- package/dist/cli/dashboard/views/index.js +0 -72
- package/dist/cli/dashboard/views/index.js.map +0 -1
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/runtime/index.d.ts.map +0 -1
- package/dist/cli/scanner/index.d.ts.map +0 -1
- package/dist/cli/seed/index.d.ts.map +0 -1
- package/dist/cli/sync/index.d.ts.map +0 -1
- package/dist/cli/terminal.d.ts.map +0 -1
- package/dist/cli/workflow/index.d.ts.map +0 -1
- package/dist/errors.d.ts +0 -43
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -47
- package/dist/errors.js.map +0 -1
- package/dist/handlers.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/types.d.ts +0 -276
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -12
- package/dist/types.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { SerializedFunction } from './handlers.js';
|
|
3
|
+
export { EntityHandlerType, HandlerExecutionResult, HandlerLogEntry, LifecycleHandlerType, SchemaHandlerType, StateHandlerType, serializeFunction } from './handlers.js';
|
|
4
|
+
|
|
4
5
|
/**
|
|
5
6
|
* Error codes for schema validation errors.
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
+
type SchemaValidationErrorCode = 'MISSING_CONTEXT' | 'MISSING_NAMESPACE' | 'INVALID_FIELD_TYPE';
|
|
8
9
|
/**
|
|
9
10
|
* Error thrown when schema validation fails.
|
|
10
11
|
*
|
|
@@ -17,14 +18,14 @@ export type SchemaValidationErrorCode = 'MISSING_CONTEXT' | 'MISSING_NAMESPACE'
|
|
|
17
18
|
* }
|
|
18
19
|
* }
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
+
declare class SchemaValidationError extends Error {
|
|
21
22
|
code: SchemaValidationErrorCode;
|
|
22
23
|
constructor(code: SchemaValidationErrorCode, message: string);
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* Error codes for API errors.
|
|
26
27
|
*/
|
|
27
|
-
|
|
28
|
+
type APIErrorCode = 'REGISTRATION_FAILED' | 'GENERATION_FAILED' | 'REFERENCE_RESOLUTION_FAILED';
|
|
28
29
|
/**
|
|
29
30
|
* Error thrown when API operations fail.
|
|
30
31
|
*
|
|
@@ -38,12 +39,12 @@ export type APIErrorCode = 'REGISTRATION_FAILED' | 'GENERATION_FAILED' | 'REFERE
|
|
|
38
39
|
* }
|
|
39
40
|
* }
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
|
+
declare class APIError extends Error {
|
|
42
43
|
code: APIErrorCode;
|
|
43
44
|
statusCode?: number;
|
|
44
45
|
constructor(code: APIErrorCode, message: string, statusCode?: number);
|
|
45
46
|
}
|
|
46
|
-
|
|
47
|
+
type Components = {
|
|
47
48
|
App: ComponentType;
|
|
48
49
|
List: ComponentType;
|
|
49
50
|
ListItem: ComponentType;
|
|
@@ -51,7 +52,7 @@ export type Components = {
|
|
|
51
52
|
Edit: ComponentType;
|
|
52
53
|
Chat: ComponentType;
|
|
53
54
|
};
|
|
54
|
-
|
|
55
|
+
declare function UI(components: Components): Components;
|
|
55
56
|
/**
|
|
56
57
|
* Parse namespace from a $id URL.
|
|
57
58
|
*
|
|
@@ -64,15 +65,15 @@ export declare function UI(components: Components): Components;
|
|
|
64
65
|
* parseNamespaceFromId('https://db.sb/') // null
|
|
65
66
|
* parseNamespaceFromId('invalid') // null
|
|
66
67
|
*/
|
|
67
|
-
|
|
68
|
+
declare function parseNamespaceFromId(id: string): string | null;
|
|
68
69
|
/**
|
|
69
70
|
* Computed field - a function that derives a value from the entity.
|
|
70
71
|
*/
|
|
71
|
-
|
|
72
|
+
type ComputedFieldFn<E = any, R = any> = (entity: E, $?: any) => R;
|
|
72
73
|
/**
|
|
73
74
|
* Nested object field value - used for complex structures like StoryBrand.hero.wants
|
|
74
75
|
*/
|
|
75
|
-
|
|
76
|
+
interface NestedFieldValue {
|
|
76
77
|
[key: string]: string | string[] | boolean | NestedFieldValue | ComputedFieldFn;
|
|
77
78
|
}
|
|
78
79
|
/**
|
|
@@ -83,43 +84,43 @@ export interface NestedFieldValue {
|
|
|
83
84
|
* - `boolean` - Relationship marker (e.g., '->Entity[]': true)
|
|
84
85
|
* - `Function` - Computed field
|
|
85
86
|
*/
|
|
86
|
-
|
|
87
|
+
type FieldValue = string | string[] | boolean | NestedFieldValue | ComputedFieldFn;
|
|
87
88
|
/**
|
|
88
89
|
* Entity lifecycle handler.
|
|
89
90
|
*/
|
|
90
|
-
|
|
91
|
+
type EntityHandler<E = any> = (entity: E, $: any) => void | Promise<void>;
|
|
91
92
|
/**
|
|
92
93
|
* Entity update handler with previous state.
|
|
93
94
|
*/
|
|
94
|
-
|
|
95
|
+
type EntityUpdateHandler<E = any> = (entity: E, previous: E, $: any) => void | Promise<void>;
|
|
95
96
|
/**
|
|
96
97
|
* Schema lifecycle handler.
|
|
97
98
|
*/
|
|
98
|
-
|
|
99
|
+
type SchemaHandler = ($: any) => void | Promise<void>;
|
|
99
100
|
/**
|
|
100
101
|
* Schema error handler.
|
|
101
102
|
*/
|
|
102
|
-
|
|
103
|
+
type SchemaErrorHandler = (error: Error, $: any) => void | Promise<void>;
|
|
103
104
|
/**
|
|
104
105
|
* Input state machine configuration for entity definitions.
|
|
105
106
|
* This is the raw format before parsing - use RawStateConfig from state machine types.
|
|
106
107
|
*/
|
|
107
|
-
|
|
108
|
+
type InputStateConfig = {
|
|
108
109
|
$initial: string;
|
|
109
110
|
} & Record<string, unknown>;
|
|
110
111
|
/**
|
|
111
112
|
* Evaluation definition stub.
|
|
112
113
|
*/
|
|
113
|
-
|
|
114
|
+
type EvalDefinition = Record<string, unknown>;
|
|
114
115
|
/**
|
|
115
116
|
* Schema experiment definition stub.
|
|
116
117
|
*/
|
|
117
|
-
|
|
118
|
+
type SchemaExperiment = Record<string, unknown>;
|
|
118
119
|
/**
|
|
119
120
|
* Schema analytics configuration stub.
|
|
120
121
|
*/
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
type SchemaAnalytics = Record<string, unknown>;
|
|
123
|
+
interface SchemaMetadata {
|
|
123
124
|
/** Unique identifier/URL for this schema */
|
|
124
125
|
$id?: string;
|
|
125
126
|
/** Shared namespace for composing multiple DB() schemas */
|
|
@@ -146,7 +147,7 @@ export interface SchemaMetadata {
|
|
|
146
147
|
/**
|
|
147
148
|
* Entity-level directives that can appear in type definitions.
|
|
148
149
|
*/
|
|
149
|
-
|
|
150
|
+
interface EntityDirectives {
|
|
150
151
|
/** Seed data source URL */
|
|
151
152
|
$seed?: string;
|
|
152
153
|
/** JSONPath or transform for entity ID from seed data (e.g., '$.slug', 'PascalCase($.name)') */
|
|
@@ -178,13 +179,13 @@ export interface EntityDirectives {
|
|
|
178
179
|
* Type definition: entity directives + field definitions.
|
|
179
180
|
* Allows any string key for fields and relationship markers.
|
|
180
181
|
*/
|
|
181
|
-
|
|
182
|
+
type TypeDefinition = EntityDirectives & Record<string, FieldValue | undefined>;
|
|
182
183
|
/**
|
|
183
184
|
* Schema: metadata + type definitions.
|
|
184
185
|
* Allows entity type definitions with all directives and field types.
|
|
185
186
|
*/
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
type SchemaDefinition = SchemaMetadata & Record<string, TypeDefinition | string | undefined>;
|
|
188
|
+
interface StringField {
|
|
188
189
|
type: 'string';
|
|
189
190
|
description: string;
|
|
190
191
|
optional?: boolean;
|
|
@@ -206,7 +207,7 @@ export interface StringField {
|
|
|
206
207
|
* { posts: '<-Post' } // Find Posts that reference this entity
|
|
207
208
|
* { related: '<~Article' } // Find semantically related Articles
|
|
208
209
|
*/
|
|
209
|
-
|
|
210
|
+
declare const OPERATORS: {
|
|
210
211
|
/** Forward exact reference: `->Type` - resolves to exact ID match */
|
|
211
212
|
readonly FORWARD_EXACT: "->";
|
|
212
213
|
/** Forward fuzzy reference: `~>Type` - resolves by semantic similarity */
|
|
@@ -217,9 +218,9 @@ export declare const OPERATORS: {
|
|
|
217
218
|
readonly BACKWARD_FUZZY: "<~";
|
|
218
219
|
};
|
|
219
220
|
/** Type for all valid reference operators */
|
|
220
|
-
|
|
221
|
+
type ReferenceOperator = (typeof OPERATORS)[keyof typeof OPERATORS];
|
|
221
222
|
/** Parsed operator information returned by parseOperator */
|
|
222
|
-
|
|
223
|
+
type ParsedOperator = {
|
|
223
224
|
direction: 'forward';
|
|
224
225
|
fuzzy: boolean;
|
|
225
226
|
} | {
|
|
@@ -241,7 +242,7 @@ export type ParsedOperator = {
|
|
|
241
242
|
* parseOperator('<-') // { direction: 'backward', mode: 'exact' }
|
|
242
243
|
* parseOperator('<~') // { direction: 'backward', mode: 'fuzzy' }
|
|
243
244
|
*/
|
|
244
|
-
|
|
245
|
+
declare function parseOperator(prefix: string): ParsedOperator;
|
|
245
246
|
/**
|
|
246
247
|
* Parsed reference field from the schema DSL.
|
|
247
248
|
*
|
|
@@ -266,7 +267,7 @@ export declare function parseOperator(prefix: string): ParsedOperator;
|
|
|
266
267
|
* parseFieldType('<~Post[]')
|
|
267
268
|
* // { type: 'reference', ref: 'Post', isArray: true, optional: false, direction: 'backward', mode: 'fuzzy' }
|
|
268
269
|
*/
|
|
269
|
-
|
|
270
|
+
interface ReferenceField {
|
|
270
271
|
type: 'reference';
|
|
271
272
|
/** Single reference target type (mutually exclusive with `refs`) */
|
|
272
273
|
ref?: string;
|
|
@@ -283,7 +284,7 @@ export interface ReferenceField {
|
|
|
283
284
|
/** For backward references: 'exact' (`<-`) or 'fuzzy' (`<~`) */
|
|
284
285
|
mode?: 'exact' | 'fuzzy';
|
|
285
286
|
}
|
|
286
|
-
|
|
287
|
+
interface ArrayField {
|
|
287
288
|
type: 'array';
|
|
288
289
|
items: {
|
|
289
290
|
type: 'string';
|
|
@@ -297,39 +298,39 @@ export interface ArrayField {
|
|
|
297
298
|
max: number;
|
|
298
299
|
};
|
|
299
300
|
}
|
|
300
|
-
|
|
301
|
+
interface ObjectField {
|
|
301
302
|
type: 'object';
|
|
302
303
|
properties: Record<string, StringField>;
|
|
303
304
|
optional?: boolean;
|
|
304
305
|
}
|
|
305
|
-
|
|
306
|
+
interface EmbeddedField {
|
|
306
307
|
type: 'embedded';
|
|
307
308
|
embeddedType: string;
|
|
308
309
|
isArray?: boolean;
|
|
309
310
|
optional?: boolean;
|
|
310
311
|
}
|
|
311
|
-
|
|
312
|
+
interface JSONPathField {
|
|
312
313
|
type: 'jsonpath';
|
|
313
314
|
path: string;
|
|
314
315
|
transform?: string;
|
|
315
316
|
}
|
|
316
|
-
|
|
317
|
+
interface JSONPathEmbeddedField {
|
|
317
318
|
type: 'jsonpath-embedded';
|
|
318
319
|
path: string;
|
|
319
320
|
embeddedType: string;
|
|
320
321
|
isArray: boolean;
|
|
321
322
|
optional?: boolean;
|
|
322
323
|
}
|
|
323
|
-
|
|
324
|
+
interface ComputedField {
|
|
324
325
|
type: 'computed';
|
|
325
326
|
source: string;
|
|
326
327
|
}
|
|
327
|
-
|
|
328
|
+
interface PromptField {
|
|
328
329
|
type: 'prompt';
|
|
329
330
|
prompt: string;
|
|
330
331
|
}
|
|
331
|
-
|
|
332
|
-
|
|
332
|
+
type ParsedField = StringField | ReferenceField | ArrayField | ObjectField | EmbeddedField | JSONPathField | JSONPathEmbeddedField | ComputedField | PromptField;
|
|
333
|
+
interface TypeReference {
|
|
333
334
|
field: string;
|
|
334
335
|
ref: string;
|
|
335
336
|
refs?: string[];
|
|
@@ -338,7 +339,7 @@ export interface TypeReference {
|
|
|
338
339
|
fuzzy?: boolean;
|
|
339
340
|
backRef?: boolean;
|
|
340
341
|
}
|
|
341
|
-
|
|
342
|
+
interface SeedConfig {
|
|
342
343
|
url: string;
|
|
343
344
|
format?: 'tsv' | 'csv' | 'json';
|
|
344
345
|
idField?: string;
|
|
@@ -359,7 +360,7 @@ export interface SeedConfig {
|
|
|
359
360
|
* parseIdConfig('kebab-case($.title)') // { path: '$.title', transform: 'kebab-case' }
|
|
360
361
|
* parseIdConfig('slug') // { path: 'slug' }
|
|
361
362
|
*/
|
|
362
|
-
|
|
363
|
+
declare function parseIdConfig(idField: string): {
|
|
363
364
|
path: string;
|
|
364
365
|
transform?: string;
|
|
365
366
|
};
|
|
@@ -384,7 +385,7 @@ export declare function parseIdConfig(idField: string): {
|
|
|
384
385
|
* isValidJSONPath('title') // false (missing $.)
|
|
385
386
|
* isValidJSONPath('$50 price') // false (not a valid path)
|
|
386
387
|
*/
|
|
387
|
-
|
|
388
|
+
declare function isValidJSONPath(path: string): boolean;
|
|
388
389
|
/**
|
|
389
390
|
* Type guard to check if a ParsedField is a JSONPathField.
|
|
390
391
|
*
|
|
@@ -394,7 +395,7 @@ export declare function isValidJSONPath(path: string): boolean;
|
|
|
394
395
|
* console.log(field.path) // TypeScript knows field.path exists
|
|
395
396
|
* }
|
|
396
397
|
*/
|
|
397
|
-
|
|
398
|
+
declare function isJSONPathField(field: ParsedField): field is JSONPathField;
|
|
398
399
|
/**
|
|
399
400
|
* Type guard to check if a ParsedField is a JSONPathEmbeddedField.
|
|
400
401
|
*
|
|
@@ -404,7 +405,7 @@ export declare function isJSONPathField(field: ParsedField): field is JSONPathFi
|
|
|
404
405
|
* console.log(field.embeddedType) // TypeScript knows field.embeddedType exists
|
|
405
406
|
* }
|
|
406
407
|
*/
|
|
407
|
-
|
|
408
|
+
declare function isJSONPathEmbeddedField(field: ParsedField): field is JSONPathEmbeddedField;
|
|
408
409
|
/**
|
|
409
410
|
* Type guard to check if a ParsedField is a PromptField.
|
|
410
411
|
*
|
|
@@ -414,21 +415,21 @@ export declare function isJSONPathEmbeddedField(field: ParsedField): field is JS
|
|
|
414
415
|
* console.log(field.prompt) // TypeScript knows field.prompt exists
|
|
415
416
|
* }
|
|
416
417
|
*/
|
|
417
|
-
|
|
418
|
+
declare function isPromptField(field: ParsedField): field is PromptField;
|
|
418
419
|
/**
|
|
419
420
|
* Type guard to check if a ParsedField is a StringField.
|
|
420
421
|
*/
|
|
421
|
-
|
|
422
|
-
|
|
422
|
+
declare function isStringField(field: ParsedField): field is StringField;
|
|
423
|
+
interface OAuthConfig {
|
|
423
424
|
tokenUrl: string;
|
|
424
425
|
clientId: string;
|
|
425
426
|
clientSecret: string;
|
|
426
427
|
}
|
|
427
|
-
|
|
428
|
+
interface AsyncConfig {
|
|
428
429
|
start: string;
|
|
429
430
|
result: string;
|
|
430
431
|
}
|
|
431
|
-
|
|
432
|
+
interface SourceConfig {
|
|
432
433
|
$api: string;
|
|
433
434
|
$apiKey?: string;
|
|
434
435
|
$bearer?: string;
|
|
@@ -436,54 +437,54 @@ export interface SourceConfig {
|
|
|
436
437
|
$data?: string;
|
|
437
438
|
$async?: AsyncConfig;
|
|
438
439
|
}
|
|
439
|
-
|
|
440
|
-
|
|
440
|
+
type SourceInput = Record<string, 'string' | 'string?'>;
|
|
441
|
+
interface ImageConfig {
|
|
441
442
|
aspectRatio?: string;
|
|
442
443
|
style?: string;
|
|
443
444
|
}
|
|
444
|
-
|
|
445
|
+
interface SpeechConfig {
|
|
445
446
|
voice?: string;
|
|
446
447
|
speed?: number;
|
|
447
448
|
format?: string;
|
|
448
449
|
}
|
|
449
|
-
|
|
450
|
+
interface DiagramConfig {
|
|
450
451
|
type?: string;
|
|
451
452
|
direction?: string;
|
|
452
453
|
format?: string;
|
|
453
454
|
}
|
|
454
|
-
|
|
455
|
+
interface ConventionsConfig {
|
|
455
456
|
nodes?: string;
|
|
456
457
|
edges?: string;
|
|
457
458
|
events?: string;
|
|
458
459
|
}
|
|
459
|
-
|
|
460
|
+
interface CodeConfig {
|
|
460
461
|
language?: string;
|
|
461
462
|
runtime?: string;
|
|
462
463
|
framework?: string;
|
|
463
464
|
}
|
|
464
465
|
/** Transition configuration - simple string or complex object */
|
|
465
|
-
|
|
466
|
+
interface TransitionConfig {
|
|
466
467
|
to: string | null;
|
|
467
468
|
if?: SerializedFunction;
|
|
468
469
|
do?: SerializedFunction;
|
|
469
470
|
}
|
|
470
471
|
/** State configuration with transitions */
|
|
471
|
-
|
|
472
|
+
interface StateConfig {
|
|
472
473
|
transitions: Record<string, TransitionConfig>;
|
|
473
474
|
$entry?: SerializedFunction;
|
|
474
475
|
$exit?: SerializedFunction;
|
|
475
476
|
}
|
|
476
477
|
/** Parsed state machine configuration */
|
|
477
|
-
|
|
478
|
+
interface ParsedStateConfig {
|
|
478
479
|
$initial: string;
|
|
479
480
|
states: Record<string, StateConfig>;
|
|
480
481
|
}
|
|
481
482
|
/** Raw state config - input format before parsing */
|
|
482
|
-
|
|
483
|
+
type RawStateConfig = {
|
|
483
484
|
$initial: string;
|
|
484
485
|
} & Record<string, unknown>;
|
|
485
486
|
/** State validation error */
|
|
486
|
-
|
|
487
|
+
interface StateValidationError {
|
|
487
488
|
code: string;
|
|
488
489
|
message: string;
|
|
489
490
|
state?: string;
|
|
@@ -491,7 +492,7 @@ export interface StateValidationError {
|
|
|
491
492
|
transition?: string;
|
|
492
493
|
}
|
|
493
494
|
/** State validation result */
|
|
494
|
-
|
|
495
|
+
interface StateValidationResult {
|
|
495
496
|
valid: boolean;
|
|
496
497
|
errors: StateValidationError[];
|
|
497
498
|
}
|
|
@@ -499,7 +500,7 @@ export interface StateValidationResult {
|
|
|
499
500
|
* Validate a raw state machine configuration.
|
|
500
501
|
* Checks for: valid $initial, reachable states, no orphan states, valid transitions.
|
|
501
502
|
*/
|
|
502
|
-
|
|
503
|
+
declare function validateStateConfig(config: RawStateConfig): StateValidationResult;
|
|
503
504
|
/**
|
|
504
505
|
* Parse a raw state machine configuration into the normalized format.
|
|
505
506
|
* Converts string functions to SerializedFunction objects.
|
|
@@ -520,8 +521,8 @@ export declare function validateStateConfig(config: RawStateConfig): StateValida
|
|
|
520
521
|
* approved: null // terminal state
|
|
521
522
|
* })
|
|
522
523
|
*/
|
|
523
|
-
|
|
524
|
-
|
|
524
|
+
declare function parseStateConfig(config: RawStateConfig): ParsedStateConfig;
|
|
525
|
+
interface ParsedType {
|
|
525
526
|
name: string;
|
|
526
527
|
fields: Record<string, ParsedField>;
|
|
527
528
|
references: TypeReference[];
|
|
@@ -547,10 +548,10 @@ export interface ParsedType {
|
|
|
547
548
|
eval?: Record<string, EvalDefinition>;
|
|
548
549
|
experiment?: SchemaExperiment;
|
|
549
550
|
}
|
|
550
|
-
|
|
551
|
+
interface SchemaSettings {
|
|
551
552
|
iconLibrary?: string;
|
|
552
553
|
}
|
|
553
|
-
|
|
554
|
+
interface ParsedSchema {
|
|
554
555
|
types: Record<string, ParsedType>;
|
|
555
556
|
hash: string;
|
|
556
557
|
settings?: SchemaSettings;
|
|
@@ -561,7 +562,7 @@ export interface ParsedSchema {
|
|
|
561
562
|
analytics?: SchemaAnalytics;
|
|
562
563
|
handlers?: Record<string, SerializedFunction>;
|
|
563
564
|
}
|
|
564
|
-
|
|
565
|
+
interface JSONSchemaProperty {
|
|
565
566
|
type: string;
|
|
566
567
|
description?: string;
|
|
567
568
|
items?: {
|
|
@@ -576,13 +577,13 @@ export interface JSONSchemaProperty {
|
|
|
576
577
|
minItems?: number;
|
|
577
578
|
maxItems?: number;
|
|
578
579
|
}
|
|
579
|
-
|
|
580
|
+
interface JSONSchema {
|
|
580
581
|
type: 'object';
|
|
581
582
|
properties: Record<string, JSONSchemaProperty>;
|
|
582
583
|
required: string[];
|
|
583
584
|
additionalProperties: boolean;
|
|
584
585
|
}
|
|
585
|
-
|
|
586
|
+
declare function extractCountFromDescription(description: string): number | {
|
|
586
587
|
min: number;
|
|
587
588
|
max: number;
|
|
588
589
|
} | undefined;
|
|
@@ -663,12 +664,12 @@ export declare function extractCountFromDescription(description: string): number
|
|
|
663
664
|
* parseFieldType({ street: 'Street address', city: 'City name' })
|
|
664
665
|
* // { type: 'object', properties: { street: {...}, city: {...} } }
|
|
665
666
|
*/
|
|
666
|
-
|
|
667
|
+
declare function parseFieldType(value: FieldValue | Function): ParsedField;
|
|
667
668
|
/**
|
|
668
669
|
* Parsed reference field info for generation.
|
|
669
670
|
* Used by the two-phase generation pipeline to understand reference fields.
|
|
670
671
|
*/
|
|
671
|
-
|
|
672
|
+
interface ParsedGenerationReference {
|
|
672
673
|
/** Reference mode: exact (->) or fuzzy (~>) */
|
|
673
674
|
mode: 'exact' | 'fuzzy';
|
|
674
675
|
/** Target type name (or first type for union types) */
|
|
@@ -705,7 +706,7 @@ export interface ParsedGenerationReference {
|
|
|
705
706
|
* parseGenerationReference('->User|Organization')
|
|
706
707
|
* // { mode: 'exact', targetType: 'User', targetTypes: ['User', 'Organization'], isOptional: false, isArray: false }
|
|
707
708
|
*/
|
|
708
|
-
|
|
709
|
+
declare function parseGenerationReference(fieldDef: string): ParsedGenerationReference | null;
|
|
709
710
|
/**
|
|
710
711
|
* Parse array field definition for generation.
|
|
711
712
|
*
|
|
@@ -718,7 +719,7 @@ export declare function parseGenerationReference(fieldDef: string): ParsedGenera
|
|
|
718
719
|
* parseGenerationArrayReference(['~>Investor'])
|
|
719
720
|
* // { mode: 'fuzzy', targetType: 'Investor', isOptional: false, isArray: true }
|
|
720
721
|
*/
|
|
721
|
-
|
|
722
|
+
declare function parseGenerationArrayReference(fieldDef: string[]): ParsedGenerationReference | null;
|
|
722
723
|
/**
|
|
723
724
|
* Check if a field definition is a reference field.
|
|
724
725
|
*
|
|
@@ -732,21 +733,21 @@ export declare function parseGenerationArrayReference(fieldDef: string[]): Parse
|
|
|
732
733
|
* isReferenceField('User name') // false
|
|
733
734
|
* isReferenceField(['tags']) // false
|
|
734
735
|
*/
|
|
735
|
-
|
|
736
|
+
declare function isReferenceField(fieldDef: string | string[]): boolean;
|
|
736
737
|
/**
|
|
737
738
|
* Extract reference mode from a field definition.
|
|
738
739
|
*
|
|
739
740
|
* @param fieldDef - The field definition
|
|
740
741
|
* @returns 'exact' | 'fuzzy' | null
|
|
741
742
|
*/
|
|
742
|
-
|
|
743
|
+
declare function getReferenceMode(fieldDef: string | string[]): 'exact' | 'fuzzy' | null;
|
|
743
744
|
/**
|
|
744
745
|
* Extract target type(s) from a reference field.
|
|
745
746
|
*
|
|
746
747
|
* @param fieldDef - The field definition
|
|
747
748
|
* @returns Target type string, array of types for unions, or null if not a reference
|
|
748
749
|
*/
|
|
749
|
-
|
|
750
|
+
declare function getReferenceTargetType(fieldDef: string | string[]): string | string[] | null;
|
|
750
751
|
/**
|
|
751
752
|
* Parse seed configuration from a schema type's `$seed` field.
|
|
752
753
|
*
|
|
@@ -784,7 +785,7 @@ export declare function getReferenceTargetType(fieldDef: string | string[]): str
|
|
|
784
785
|
* })
|
|
785
786
|
* // { url: '...', format: 'json', data: '$.items', next: '$.pagination.next' }
|
|
786
787
|
*/
|
|
787
|
-
|
|
788
|
+
declare function parseSeedConfig(value: string | Record<string, string>): SeedConfig;
|
|
788
789
|
/**
|
|
789
790
|
* Converts string fields to prompt fields in a seeded type's field map.
|
|
790
791
|
*
|
|
@@ -814,7 +815,7 @@ export declare function parseSeedConfig(value: string | Record<string, string>):
|
|
|
814
815
|
* This function is called during parseSchema when a type has `$seed` defined.
|
|
815
816
|
* Only StringField types are converted; all other field types pass through unchanged.
|
|
816
817
|
*/
|
|
817
|
-
|
|
818
|
+
declare function convertStringsToPromptsInSeededType(fields: Record<string, ParsedField>): Record<string, ParsedField>;
|
|
818
819
|
/**
|
|
819
820
|
* Parse an entire schema definition into a structured ParsedSchema.
|
|
820
821
|
*
|
|
@@ -869,7 +870,7 @@ export declare function convertStringsToPromptsInSeededType(fields: Record<strin
|
|
|
869
870
|
* // schema.types.Company.icon === 'building'
|
|
870
871
|
* // schema.types.Company.seed.url === 'https://api.example.com/companies.json'
|
|
871
872
|
*/
|
|
872
|
-
|
|
873
|
+
declare function parseSchema(schema: SchemaDefinition): ParsedSchema;
|
|
873
874
|
/**
|
|
874
875
|
* Convert a parsed type definition to a JSON Schema representation.
|
|
875
876
|
*
|
|
@@ -928,7 +929,7 @@ export declare function parseSchema(schema: SchemaDefinition): ParsedSchema;
|
|
|
928
929
|
* const jsonSchema = toJSONSchema(schema.types.User, schema)
|
|
929
930
|
* // properties.address will contain the full Address schema inline
|
|
930
931
|
*/
|
|
931
|
-
|
|
932
|
+
declare function toJSONSchema(parsedType: ParsedType, parsedSchemaOrIncludeRefs?: ParsedSchema | boolean, seen?: Set<string>): JSONSchema;
|
|
932
933
|
/**
|
|
933
934
|
* Generate a deterministic hash for a schema definition.
|
|
934
935
|
*
|
|
@@ -961,9 +962,9 @@ export declare function toJSONSchema(parsedType: ParsedType, parsedSchemaOrInclu
|
|
|
961
962
|
* console.log(schema.hash)
|
|
962
963
|
* // The hash can be used to detect schema changes and trigger migrations
|
|
963
964
|
*/
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
965
|
+
declare function schemaHash(schema: SchemaDefinition): string;
|
|
966
|
+
type JobStatus = 'queued' | 'running' | 'completed' | 'failed';
|
|
967
|
+
interface Job<T = void> {
|
|
967
968
|
id: string;
|
|
968
969
|
status: JobStatus;
|
|
969
970
|
result?: T;
|
|
@@ -974,7 +975,16 @@ export interface Job<T = void> {
|
|
|
974
975
|
* - As factory: `await db.Idea('id', { concept: '...' })`
|
|
975
976
|
* - As collection: `for (const idea of db.Idea) { ... }`
|
|
976
977
|
*/
|
|
977
|
-
|
|
978
|
+
/** Options for listing entities */
|
|
979
|
+
interface ListOptions {
|
|
980
|
+
/** Maximum number of entities to return */
|
|
981
|
+
limit?: number;
|
|
982
|
+
/** Number of entities to skip */
|
|
983
|
+
offset?: number;
|
|
984
|
+
/** Filter criteria */
|
|
985
|
+
filter?: Record<string, unknown>;
|
|
986
|
+
}
|
|
987
|
+
interface EntityCollection<T extends Record<string, unknown> = Record<string, unknown>> extends Iterable<T> {
|
|
978
988
|
/** The type name of entities in this collection */
|
|
979
989
|
readonly $type: string;
|
|
980
990
|
/** Current count of entities in the local collection */
|
|
@@ -987,17 +997,23 @@ export interface EntityCollection<T extends Record<string, unknown> = Record<str
|
|
|
987
997
|
where(predicate: (item: T) => boolean): Combinable<T>;
|
|
988
998
|
/** Fetch all entities from API and populate collection */
|
|
989
999
|
fetchAll(): Promise<T[]>;
|
|
1000
|
+
/** List entities with optional limit, offset, and filter */
|
|
1001
|
+
list(options?: ListOptions): Promise<T[]>;
|
|
1002
|
+
/** Get a single entity by ID */
|
|
1003
|
+
get(id: string): Promise<T | undefined>;
|
|
1004
|
+
/** Create a new entity with the given data */
|
|
1005
|
+
create(data: Partial<T>): Promise<T>;
|
|
990
1006
|
/** Factory function signature - call the collection to generate/fetch an entity */
|
|
991
1007
|
(id: string, context?: Record<string, unknown>): Promise<T>;
|
|
992
1008
|
}
|
|
993
|
-
|
|
1009
|
+
interface DBInstance<T = Record<string, unknown>> {
|
|
994
1010
|
id: string;
|
|
995
1011
|
type: string;
|
|
996
1012
|
data: T;
|
|
997
1013
|
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1014
|
+
type GeneratedObject = Record<string, unknown>;
|
|
1015
|
+
type TypeFactory = (id: string, context?: Record<string, unknown>) => Promise<GeneratedObject>;
|
|
1016
|
+
interface DBResultBase {
|
|
1001
1017
|
schema: SchemaDefinition;
|
|
1002
1018
|
types: Record<string, ParsedType>;
|
|
1003
1019
|
hash: string;
|
|
@@ -1009,7 +1025,7 @@ export interface DBResultBase {
|
|
|
1009
1025
|
toJSONSchema: (typeName: string) => JSONSchema;
|
|
1010
1026
|
registerSchema: () => Promise<void>;
|
|
1011
1027
|
}
|
|
1012
|
-
|
|
1028
|
+
type DBResult = DBResultBase & Record<string, EntityCollection>;
|
|
1013
1029
|
/**
|
|
1014
1030
|
* Create a database instance from a schema definition.
|
|
1015
1031
|
*
|
|
@@ -1080,7 +1096,7 @@ export type DBResult = DBResultBase & Record<string, EntityCollection>;
|
|
|
1080
1096
|
* }
|
|
1081
1097
|
* })
|
|
1082
1098
|
*/
|
|
1083
|
-
|
|
1099
|
+
declare function DB(schema: SchemaDefinition): DBResult;
|
|
1084
1100
|
/**
|
|
1085
1101
|
* A lazy pipeline builder for cartesian products and collection transformations.
|
|
1086
1102
|
*
|
|
@@ -1133,7 +1149,7 @@ export declare function DB(schema: SchemaDefinition): DBResult;
|
|
|
1133
1149
|
* .map(user => user.email)
|
|
1134
1150
|
* .all()
|
|
1135
1151
|
*/
|
|
1136
|
-
|
|
1152
|
+
declare class Combinable<T> implements Iterable<T> {
|
|
1137
1153
|
private readonly source;
|
|
1138
1154
|
constructor(source: () => Generator<T>);
|
|
1139
1155
|
/**
|
|
@@ -1169,14 +1185,14 @@ export declare class Combinable<T> implements Iterable<T> {
|
|
|
1169
1185
|
*/
|
|
1170
1186
|
[Symbol.iterator](): Iterator<T>;
|
|
1171
1187
|
}
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1188
|
+
declare function combine<A, B>(a: Iterable<A>, b: Iterable<B>): Combinable<[A, B]>;
|
|
1189
|
+
declare function combine<A, B, C>(a: Iterable<A>, b: Iterable<B>, c: Iterable<C>): Combinable<[A, B, C]>;
|
|
1190
|
+
declare function combine<A, B, C, D>(a: Iterable<A>, b: Iterable<B>, c: Iterable<C>, d: Iterable<D>): Combinable<[A, B, C, D]>;
|
|
1191
|
+
declare function combine<A, B, C, D, E>(a: Iterable<A>, b: Iterable<B>, c: Iterable<C>, d: Iterable<D>, e: Iterable<E>): Combinable<[A, B, C, D, E]>;
|
|
1176
1192
|
/**
|
|
1177
1193
|
* Result of parsing MDX frontmatter
|
|
1178
1194
|
*/
|
|
1179
|
-
|
|
1195
|
+
interface ParseMDXResult {
|
|
1180
1196
|
/** Parsed schema definition from YAML frontmatter */
|
|
1181
1197
|
schema: SchemaDefinition;
|
|
1182
1198
|
/** Remaining MDX body after frontmatter */
|
|
@@ -1202,18 +1218,18 @@ export interface ParseMDXResult {
|
|
|
1202
1218
|
* // schema = { $context: 'https://db.sb', Idea: { concept: 'What is the concept?' } }
|
|
1203
1219
|
* // body = '\n<App>content</App>'
|
|
1204
1220
|
*/
|
|
1205
|
-
|
|
1221
|
+
declare function parseMDX(mdx: string): ParseMDXResult;
|
|
1206
1222
|
/**
|
|
1207
1223
|
* Hook context passed to entity hooks
|
|
1208
1224
|
*/
|
|
1209
|
-
|
|
1225
|
+
interface HookContext {
|
|
1210
1226
|
generate: (types: string | string[]) => Promise<void>;
|
|
1211
1227
|
changed?: Record<string, boolean>;
|
|
1212
1228
|
}
|
|
1213
1229
|
/**
|
|
1214
1230
|
* Entity lifecycle hooks
|
|
1215
1231
|
*/
|
|
1216
|
-
|
|
1232
|
+
interface EntityHooks {
|
|
1217
1233
|
onCreate?: (entity: unknown, ctx: HookContext) => Promise<void>;
|
|
1218
1234
|
onUpdate?: (entity: unknown, ctx: HookContext) => Promise<void>;
|
|
1219
1235
|
onDelete?: (entity: unknown) => Promise<void>;
|
|
@@ -1221,7 +1237,7 @@ export interface EntityHooks {
|
|
|
1221
1237
|
/**
|
|
1222
1238
|
* Navigation group in the sidebar
|
|
1223
1239
|
*/
|
|
1224
|
-
|
|
1240
|
+
interface NavigationGroup {
|
|
1225
1241
|
name: string;
|
|
1226
1242
|
icon?: string;
|
|
1227
1243
|
children: (NavigationGroup | string)[];
|
|
@@ -1229,7 +1245,7 @@ export interface NavigationGroup {
|
|
|
1229
1245
|
/**
|
|
1230
1246
|
* Field configuration from <Field> elements
|
|
1231
1247
|
*/
|
|
1232
|
-
|
|
1248
|
+
interface FieldConfig {
|
|
1233
1249
|
name: string;
|
|
1234
1250
|
lines?: number;
|
|
1235
1251
|
placeholder?: string;
|
|
@@ -1248,7 +1264,7 @@ export interface FieldConfig {
|
|
|
1248
1264
|
/**
|
|
1249
1265
|
* Section configuration from <Section> elements
|
|
1250
1266
|
*/
|
|
1251
|
-
|
|
1267
|
+
interface SectionConfig {
|
|
1252
1268
|
label: string;
|
|
1253
1269
|
collapsed?: boolean;
|
|
1254
1270
|
children?: (FieldConfig | SectionConfig)[];
|
|
@@ -1256,20 +1272,20 @@ export interface SectionConfig {
|
|
|
1256
1272
|
/**
|
|
1257
1273
|
* Search configuration from <Search> elements
|
|
1258
1274
|
*/
|
|
1259
|
-
|
|
1275
|
+
interface SearchConfig {
|
|
1260
1276
|
fields?: string[];
|
|
1261
1277
|
}
|
|
1262
1278
|
/**
|
|
1263
1279
|
* Filter configuration from <Filter> elements
|
|
1264
1280
|
*/
|
|
1265
|
-
|
|
1281
|
+
interface FilterConfig {
|
|
1266
1282
|
field: string;
|
|
1267
1283
|
exists?: boolean;
|
|
1268
1284
|
}
|
|
1269
1285
|
/**
|
|
1270
1286
|
* Action configuration for generate/built-in actions
|
|
1271
1287
|
*/
|
|
1272
|
-
|
|
1288
|
+
interface ActionConfig {
|
|
1273
1289
|
type: 'generate' | 'delete' | 'duplicate' | 'export' | 'import';
|
|
1274
1290
|
entity?: string;
|
|
1275
1291
|
context?: string[];
|
|
@@ -1279,20 +1295,20 @@ export interface ActionConfig {
|
|
|
1279
1295
|
/**
|
|
1280
1296
|
* Role-based permission configuration
|
|
1281
1297
|
*/
|
|
1282
|
-
|
|
1298
|
+
interface RoleConfig {
|
|
1283
1299
|
name: string;
|
|
1284
1300
|
actions: string[];
|
|
1285
1301
|
}
|
|
1286
1302
|
/**
|
|
1287
1303
|
* Template configuration for Cards/Detail views
|
|
1288
1304
|
*/
|
|
1289
|
-
|
|
1305
|
+
interface TemplateConfig {
|
|
1290
1306
|
jsx: string;
|
|
1291
1307
|
}
|
|
1292
1308
|
/**
|
|
1293
1309
|
* Form configuration from <Form> elements
|
|
1294
1310
|
*/
|
|
1295
|
-
|
|
1311
|
+
interface FormConfig {
|
|
1296
1312
|
layout?: 'stack' | 'grid';
|
|
1297
1313
|
fields?: string[];
|
|
1298
1314
|
children?: (FieldConfig | SectionConfig)[];
|
|
@@ -1300,7 +1316,7 @@ export interface FormConfig {
|
|
|
1300
1316
|
/**
|
|
1301
1317
|
* Display component configuration
|
|
1302
1318
|
*/
|
|
1303
|
-
|
|
1319
|
+
interface DisplayConfig {
|
|
1304
1320
|
type: 'table' | 'grid' | 'cards';
|
|
1305
1321
|
columns?: string[];
|
|
1306
1322
|
sortable?: boolean;
|
|
@@ -1309,7 +1325,7 @@ export interface DisplayConfig {
|
|
|
1309
1325
|
/**
|
|
1310
1326
|
* View configuration (List, Detail, Edit, Create)
|
|
1311
1327
|
*/
|
|
1312
|
-
|
|
1328
|
+
interface ViewConfig {
|
|
1313
1329
|
search?: SearchConfig;
|
|
1314
1330
|
filters?: FilterConfig[];
|
|
1315
1331
|
display?: DisplayConfig;
|
|
@@ -1322,7 +1338,7 @@ export interface ViewConfig {
|
|
|
1322
1338
|
/**
|
|
1323
1339
|
* Collection configuration for a schema type
|
|
1324
1340
|
*/
|
|
1325
|
-
|
|
1341
|
+
interface CollectionConfig {
|
|
1326
1342
|
view?: 'table' | 'cards' | 'grid';
|
|
1327
1343
|
columns?: string[];
|
|
1328
1344
|
searchable?: boolean;
|
|
@@ -1339,7 +1355,7 @@ export interface CollectionConfig {
|
|
|
1339
1355
|
/**
|
|
1340
1356
|
* Complete UI configuration parsed from JSX
|
|
1341
1357
|
*/
|
|
1342
|
-
|
|
1358
|
+
interface UIConfig {
|
|
1343
1359
|
hooks: Record<string, EntityHooks>;
|
|
1344
1360
|
navigation: NavigationGroup[];
|
|
1345
1361
|
collections: Record<string, CollectionConfig>;
|
|
@@ -1365,11 +1381,11 @@ export interface UIConfig {
|
|
|
1365
1381
|
* // config.navigation = [{ name: 'Planning', icon: 'lightbulb', children: ['Idea'] }]
|
|
1366
1382
|
* // config.collections = { Idea: { view: 'cards' } }
|
|
1367
1383
|
*/
|
|
1368
|
-
|
|
1384
|
+
declare function parseJSXUI(jsx: string, schema: ParsedSchema): UIConfig;
|
|
1369
1385
|
/**
|
|
1370
1386
|
* Result of processing an MDX file
|
|
1371
1387
|
*/
|
|
1372
|
-
|
|
1388
|
+
interface ProcessMDXResult {
|
|
1373
1389
|
/** Raw YAML schema definition */
|
|
1374
1390
|
schema: SchemaDefinition;
|
|
1375
1391
|
/** Parsed schema with types, fields, and references */
|
|
@@ -1382,5 +1398,6 @@ export interface ProcessMDXResult {
|
|
|
1382
1398
|
/**
|
|
1383
1399
|
* Process an MDX file and return all parsed components.
|
|
1384
1400
|
*/
|
|
1385
|
-
|
|
1386
|
-
|
|
1401
|
+
declare function processMDX(mdx: string): ProcessMDXResult;
|
|
1402
|
+
|
|
1403
|
+
export { APIError, type APIErrorCode, type ActionConfig, type ArrayField, type AsyncConfig, type CodeConfig, type CollectionConfig, Combinable, type Components, type ComputedField, type ComputedFieldFn, type ConventionsConfig, DB, type DBInstance, type DBResult, type DBResultBase, type DiagramConfig, type DisplayConfig, type EmbeddedField, type EntityCollection, type EntityDirectives, type EntityHandler, type EntityHooks, type EntityUpdateHandler, type EvalDefinition, type FieldConfig, type FieldValue, type FilterConfig, type FormConfig, type GeneratedObject, type HookContext, type ImageConfig, type InputStateConfig, type JSONPathEmbeddedField, type JSONPathField, type JSONSchema, type JSONSchemaProperty, type Job, type JobStatus, type ListOptions, type NavigationGroup, type NestedFieldValue, type OAuthConfig, OPERATORS, type ObjectField, type ParseMDXResult, type ParsedField, type ParsedGenerationReference, type ParsedOperator, type ParsedSchema, type ParsedStateConfig, type ParsedType, type ProcessMDXResult, type PromptField, type RawStateConfig, type ReferenceField, type ReferenceOperator, type RoleConfig, type SchemaAnalytics, type SchemaDefinition, type SchemaErrorHandler, type SchemaExperiment, type SchemaHandler, type SchemaMetadata, type SchemaSettings, SchemaValidationError, type SchemaValidationErrorCode, type SearchConfig, type SectionConfig, type SeedConfig, SerializedFunction, type SourceConfig, type SourceInput, type SpeechConfig, type StateConfig, type StateValidationError, type StateValidationResult, type StringField, type TemplateConfig, type TransitionConfig, type TypeDefinition, type TypeFactory, type TypeReference, UI, type UIConfig, type ViewConfig, combine, convertStringsToPromptsInSeededType, extractCountFromDescription, getReferenceMode, getReferenceTargetType, isJSONPathEmbeddedField, isJSONPathField, isPromptField, isReferenceField, isStringField, isValidJSONPath, parseFieldType, parseGenerationArrayReference, parseGenerationReference, parseIdConfig, parseJSXUI, parseMDX, parseNamespaceFromId, parseOperator, parseSchema, parseSeedConfig, parseStateConfig, processMDX, schemaHash, toJSONSchema, validateStateConfig };
|