@almadar/core 1.0.15 → 1.0.17
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/domain-language/index.d.ts +1 -1
- package/dist/domain-language/index.js +33 -10
- package/dist/domain-language/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +34 -11
- package/dist/index.js.map +1 -1
- package/dist/{schema-DFOz4rEu.d.ts → schema-DYj-zJWb.d.ts} +91 -43
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +34 -11
- package/dist/types/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -167,34 +167,75 @@ type ExpressionInput = z.input<typeof ExpressionSchema>;
|
|
|
167
167
|
*/
|
|
168
168
|
type FieldType = 'string' | 'number' | 'boolean' | 'date' | 'timestamp' | 'datetime' | 'array' | 'object' | 'enum' | 'relation';
|
|
169
169
|
declare const FieldTypeSchema: z.ZodEnum<["string", "number", "boolean", "date", "timestamp", "datetime", "array", "object", "enum", "relation"]>;
|
|
170
|
+
/**
|
|
171
|
+
* Cardinality for relation fields.
|
|
172
|
+
* Matches Rust compiler's Cardinality enum.
|
|
173
|
+
*/
|
|
174
|
+
type RelationCardinality = 'one' | 'many' | 'one-to-many' | 'many-to-one' | 'many-to-many';
|
|
170
175
|
/**
|
|
171
176
|
* Configuration for relation fields (foreign keys).
|
|
177
|
+
* Matches Rust compiler's RelationDefinition format.
|
|
172
178
|
*/
|
|
173
179
|
interface RelationConfig {
|
|
174
|
-
/** Target entity name (e.g., 'User', 'Task') */
|
|
180
|
+
/** Target entity name (e.g., 'User', 'Task') - matches Rust's `entity` field */
|
|
175
181
|
entity: string;
|
|
176
182
|
/** Field on target entity (defaults to 'id') */
|
|
177
183
|
field?: string;
|
|
178
|
-
/**
|
|
179
|
-
|
|
184
|
+
/**
|
|
185
|
+
* Cardinality: one, many, one-to-many, many-to-one, many-to-many
|
|
186
|
+
* Matches Rust compiler's cardinality format
|
|
187
|
+
*/
|
|
188
|
+
cardinality?: RelationCardinality;
|
|
180
189
|
/** Delete behavior */
|
|
181
190
|
onDelete?: 'cascade' | 'nullify' | 'restrict';
|
|
191
|
+
/**
|
|
192
|
+
* Foreign key field name (for legacy compatibility).
|
|
193
|
+
* @deprecated Use field instead
|
|
194
|
+
*/
|
|
195
|
+
foreignKey?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Target entity name (for legacy compatibility).
|
|
198
|
+
* @deprecated Use entity instead
|
|
199
|
+
*/
|
|
200
|
+
target?: string;
|
|
201
|
+
/**
|
|
202
|
+
* Cardinality type alias (for legacy compatibility).
|
|
203
|
+
* @deprecated Use cardinality instead
|
|
204
|
+
*/
|
|
205
|
+
type?: RelationCardinality;
|
|
182
206
|
}
|
|
183
|
-
declare const RelationConfigSchema: z.ZodObject<{
|
|
207
|
+
declare const RelationConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
184
208
|
entity: z.ZodString;
|
|
185
209
|
field: z.ZodOptional<z.ZodString>;
|
|
186
|
-
cardinality: z.ZodOptional<z.ZodEnum<["one", "many"]>>;
|
|
210
|
+
cardinality: z.ZodOptional<z.ZodEnum<["one", "many", "one-to-many", "many-to-one", "many-to-many"]>>;
|
|
187
211
|
onDelete: z.ZodOptional<z.ZodEnum<["cascade", "nullify", "restrict"]>>;
|
|
212
|
+
foreignKey: z.ZodOptional<z.ZodString>;
|
|
213
|
+
target: z.ZodOptional<z.ZodString>;
|
|
214
|
+
type: z.ZodOptional<z.ZodEnum<["one", "many", "one-to-many", "many-to-one", "many-to-many"]>>;
|
|
188
215
|
}, "strip", z.ZodTypeAny, {
|
|
189
216
|
entity: string;
|
|
190
217
|
field?: string | undefined;
|
|
191
|
-
cardinality?: "one" | "many" | undefined;
|
|
218
|
+
cardinality?: "one" | "many" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
|
|
192
219
|
onDelete?: "cascade" | "nullify" | "restrict" | undefined;
|
|
220
|
+
foreignKey?: string | undefined;
|
|
221
|
+
target?: string | undefined;
|
|
222
|
+
type?: "one" | "many" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
|
|
193
223
|
}, {
|
|
194
224
|
entity: string;
|
|
195
225
|
field?: string | undefined;
|
|
196
|
-
cardinality?: "one" | "many" | undefined;
|
|
226
|
+
cardinality?: "one" | "many" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
|
|
227
|
+
onDelete?: "cascade" | "nullify" | "restrict" | undefined;
|
|
228
|
+
foreignKey?: string | undefined;
|
|
229
|
+
target?: string | undefined;
|
|
230
|
+
type?: "one" | "many" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
|
|
231
|
+
}>, RelationConfig, {
|
|
232
|
+
entity: string;
|
|
233
|
+
field?: string | undefined;
|
|
234
|
+
cardinality?: "one" | "many" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
|
|
197
235
|
onDelete?: "cascade" | "nullify" | "restrict" | undefined;
|
|
236
|
+
foreignKey?: string | undefined;
|
|
237
|
+
target?: string | undefined;
|
|
238
|
+
type?: "one" | "many" | "one-to-many" | "many-to-one" | "many-to-many" | undefined;
|
|
198
239
|
}>;
|
|
199
240
|
/**
|
|
200
241
|
* Field format validators for string fields.
|
|
@@ -3733,6 +3774,13 @@ declare const OrbitalTraitRefSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
3733
3774
|
*/
|
|
3734
3775
|
type DomainCategory = "healthcare" | "education" | "finance" | "ecommerce" | "real-estate" | "logistics" | "hospitality" | "hr-management" | "project-management" | "social" | "content-management" | "iot" | "analytics" | "game" | "custom";
|
|
3735
3776
|
declare const DomainCategorySchema: z.ZodEnum<["healthcare", "education", "finance", "ecommerce", "real-estate", "logistics", "hospitality", "hr-management", "project-management", "social", "content-management", "iot", "analytics", "game", "custom"]>;
|
|
3777
|
+
/**
|
|
3778
|
+
* Simplified domain categories used by the agent tools for application classification.
|
|
3779
|
+
* All agent tools and skill generators should derive from this constant.
|
|
3780
|
+
*/
|
|
3781
|
+
declare const AGENT_DOMAIN_CATEGORIES: readonly ["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"];
|
|
3782
|
+
type AgentDomainCategory = (typeof AGENT_DOMAIN_CATEGORIES)[number];
|
|
3783
|
+
declare const AgentDomainCategorySchema: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
|
|
3736
3784
|
/**
|
|
3737
3785
|
* Game genre sub-categories
|
|
3738
3786
|
*/
|
|
@@ -3820,7 +3868,7 @@ interface DomainContext {
|
|
|
3820
3868
|
*/
|
|
3821
3869
|
requestFragment?: string;
|
|
3822
3870
|
/** Domain category */
|
|
3823
|
-
category:
|
|
3871
|
+
category: AgentDomainCategory;
|
|
3824
3872
|
/** Sub-domain for more specific classification */
|
|
3825
3873
|
subDomain?: string;
|
|
3826
3874
|
/** User personas */
|
|
@@ -3831,7 +3879,7 @@ interface DomainContext {
|
|
|
3831
3879
|
declare const DomainContextSchema: z.ZodObject<{
|
|
3832
3880
|
request: z.ZodString;
|
|
3833
3881
|
requestFragment: z.ZodOptional<z.ZodString>;
|
|
3834
|
-
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social"]>;
|
|
3882
|
+
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
|
|
3835
3883
|
subDomain: z.ZodOptional<z.ZodString>;
|
|
3836
3884
|
personas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3837
3885
|
name: z.ZodString;
|
|
@@ -3848,7 +3896,7 @@ declare const DomainContextSchema: z.ZodObject<{
|
|
|
3848
3896
|
}>, "many">>;
|
|
3849
3897
|
vocabulary: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
3850
3898
|
}, "strip", z.ZodTypeAny, {
|
|
3851
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
3899
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
3852
3900
|
request: string;
|
|
3853
3901
|
requestFragment?: string | undefined;
|
|
3854
3902
|
subDomain?: string | undefined;
|
|
@@ -3859,7 +3907,7 @@ declare const DomainContextSchema: z.ZodObject<{
|
|
|
3859
3907
|
}[] | undefined;
|
|
3860
3908
|
vocabulary?: Record<string, string> | undefined;
|
|
3861
3909
|
}, {
|
|
3862
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
3910
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
3863
3911
|
request: string;
|
|
3864
3912
|
requestFragment?: string | undefined;
|
|
3865
3913
|
subDomain?: string | undefined;
|
|
@@ -6584,7 +6632,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
|
|
|
6584
6632
|
domainContext: z.ZodOptional<z.ZodObject<{
|
|
6585
6633
|
request: z.ZodString;
|
|
6586
6634
|
requestFragment: z.ZodOptional<z.ZodString>;
|
|
6587
|
-
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social"]>;
|
|
6635
|
+
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
|
|
6588
6636
|
subDomain: z.ZodOptional<z.ZodString>;
|
|
6589
6637
|
personas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6590
6638
|
name: z.ZodString;
|
|
@@ -6601,7 +6649,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
|
|
|
6601
6649
|
}>, "many">>;
|
|
6602
6650
|
vocabulary: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
6603
6651
|
}, "strip", z.ZodTypeAny, {
|
|
6604
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
6652
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
6605
6653
|
request: string;
|
|
6606
6654
|
requestFragment?: string | undefined;
|
|
6607
6655
|
subDomain?: string | undefined;
|
|
@@ -6612,7 +6660,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
|
|
|
6612
6660
|
}[] | undefined;
|
|
6613
6661
|
vocabulary?: Record<string, string> | undefined;
|
|
6614
6662
|
}, {
|
|
6615
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
6663
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
6616
6664
|
request: string;
|
|
6617
6665
|
requestFragment?: string | undefined;
|
|
6618
6666
|
subDomain?: string | undefined;
|
|
@@ -6937,7 +6985,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
|
|
|
6937
6985
|
})[] | undefined;
|
|
6938
6986
|
exposes?: string[] | undefined;
|
|
6939
6987
|
domainContext?: {
|
|
6940
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
6988
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
6941
6989
|
request: string;
|
|
6942
6990
|
requestFragment?: string | undefined;
|
|
6943
6991
|
subDomain?: string | undefined;
|
|
@@ -7194,7 +7242,7 @@ declare const OrbitalDefinitionSchema: z.ZodObject<{
|
|
|
7194
7242
|
})[] | undefined;
|
|
7195
7243
|
exposes?: string[] | undefined;
|
|
7196
7244
|
domainContext?: {
|
|
7197
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
7245
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
7198
7246
|
request: string;
|
|
7199
7247
|
requestFragment?: string | undefined;
|
|
7200
7248
|
subDomain?: string | undefined;
|
|
@@ -8224,7 +8272,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
|
|
|
8224
8272
|
domainContext: z.ZodOptional<z.ZodObject<{
|
|
8225
8273
|
request: z.ZodString;
|
|
8226
8274
|
requestFragment: z.ZodOptional<z.ZodString>;
|
|
8227
|
-
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social"]>;
|
|
8275
|
+
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
|
|
8228
8276
|
subDomain: z.ZodOptional<z.ZodString>;
|
|
8229
8277
|
personas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8230
8278
|
name: z.ZodString;
|
|
@@ -8241,7 +8289,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
|
|
|
8241
8289
|
}>, "many">>;
|
|
8242
8290
|
vocabulary: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
8243
8291
|
}, "strip", z.ZodTypeAny, {
|
|
8244
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
8292
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
8245
8293
|
request: string;
|
|
8246
8294
|
requestFragment?: string | undefined;
|
|
8247
8295
|
subDomain?: string | undefined;
|
|
@@ -8252,7 +8300,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
|
|
|
8252
8300
|
}[] | undefined;
|
|
8253
8301
|
vocabulary?: Record<string, string> | undefined;
|
|
8254
8302
|
}, {
|
|
8255
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
8303
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
8256
8304
|
request: string;
|
|
8257
8305
|
requestFragment?: string | undefined;
|
|
8258
8306
|
subDomain?: string | undefined;
|
|
@@ -8577,7 +8625,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
|
|
|
8577
8625
|
})[] | undefined;
|
|
8578
8626
|
exposes?: string[] | undefined;
|
|
8579
8627
|
domainContext?: {
|
|
8580
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
8628
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
8581
8629
|
request: string;
|
|
8582
8630
|
requestFragment?: string | undefined;
|
|
8583
8631
|
subDomain?: string | undefined;
|
|
@@ -8834,7 +8882,7 @@ declare const OrbitalSchema$1: z.ZodObject<{
|
|
|
8834
8882
|
})[] | undefined;
|
|
8835
8883
|
exposes?: string[] | undefined;
|
|
8836
8884
|
domainContext?: {
|
|
8837
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
8885
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
8838
8886
|
request: string;
|
|
8839
8887
|
requestFragment?: string | undefined;
|
|
8840
8888
|
subDomain?: string | undefined;
|
|
@@ -9871,7 +9919,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
|
|
|
9871
9919
|
domainContext: z.ZodOptional<z.ZodObject<{
|
|
9872
9920
|
request: z.ZodString;
|
|
9873
9921
|
requestFragment: z.ZodOptional<z.ZodString>;
|
|
9874
|
-
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social"]>;
|
|
9922
|
+
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
|
|
9875
9923
|
subDomain: z.ZodOptional<z.ZodString>;
|
|
9876
9924
|
personas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9877
9925
|
name: z.ZodString;
|
|
@@ -9888,7 +9936,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
|
|
|
9888
9936
|
}>, "many">>;
|
|
9889
9937
|
vocabulary: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
9890
9938
|
}, "strip", z.ZodTypeAny, {
|
|
9891
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
9939
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
9892
9940
|
request: string;
|
|
9893
9941
|
requestFragment?: string | undefined;
|
|
9894
9942
|
subDomain?: string | undefined;
|
|
@@ -9899,7 +9947,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
|
|
|
9899
9947
|
}[] | undefined;
|
|
9900
9948
|
vocabulary?: Record<string, string> | undefined;
|
|
9901
9949
|
}, {
|
|
9902
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
9950
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
9903
9951
|
request: string;
|
|
9904
9952
|
requestFragment?: string | undefined;
|
|
9905
9953
|
subDomain?: string | undefined;
|
|
@@ -10224,7 +10272,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
|
|
|
10224
10272
|
})[] | undefined;
|
|
10225
10273
|
exposes?: string[] | undefined;
|
|
10226
10274
|
domainContext?: {
|
|
10227
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
10275
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
10228
10276
|
request: string;
|
|
10229
10277
|
requestFragment?: string | undefined;
|
|
10230
10278
|
subDomain?: string | undefined;
|
|
@@ -10481,7 +10529,7 @@ declare const OrbitalUnitSchema: z.ZodObject<{
|
|
|
10481
10529
|
})[] | undefined;
|
|
10482
10530
|
exposes?: string[] | undefined;
|
|
10483
10531
|
domainContext?: {
|
|
10484
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
10532
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
10485
10533
|
request: string;
|
|
10486
10534
|
requestFragment?: string | undefined;
|
|
10487
10535
|
subDomain?: string | undefined;
|
|
@@ -10627,7 +10675,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
|
|
|
10627
10675
|
domainContext: z.ZodOptional<z.ZodObject<{
|
|
10628
10676
|
request: z.ZodString;
|
|
10629
10677
|
requestFragment: z.ZodOptional<z.ZodString>;
|
|
10630
|
-
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social"]>;
|
|
10678
|
+
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
|
|
10631
10679
|
subDomain: z.ZodOptional<z.ZodString>;
|
|
10632
10680
|
personas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10633
10681
|
name: z.ZodString;
|
|
@@ -10644,7 +10692,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
|
|
|
10644
10692
|
}>, "many">>;
|
|
10645
10693
|
vocabulary: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
10646
10694
|
}, "strip", z.ZodTypeAny, {
|
|
10647
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
10695
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
10648
10696
|
request: string;
|
|
10649
10697
|
requestFragment?: string | undefined;
|
|
10650
10698
|
subDomain?: string | undefined;
|
|
@@ -10655,7 +10703,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
|
|
|
10655
10703
|
}[] | undefined;
|
|
10656
10704
|
vocabulary?: Record<string, string> | undefined;
|
|
10657
10705
|
}, {
|
|
10658
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
10706
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
10659
10707
|
request: string;
|
|
10660
10708
|
requestFragment?: string | undefined;
|
|
10661
10709
|
subDomain?: string | undefined;
|
|
@@ -11759,7 +11807,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
|
|
|
11759
11807
|
domainContext: z.ZodOptional<z.ZodObject<{
|
|
11760
11808
|
request: z.ZodString;
|
|
11761
11809
|
requestFragment: z.ZodOptional<z.ZodString>;
|
|
11762
|
-
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social"]>;
|
|
11810
|
+
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
|
|
11763
11811
|
subDomain: z.ZodOptional<z.ZodString>;
|
|
11764
11812
|
personas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11765
11813
|
name: z.ZodString;
|
|
@@ -11776,7 +11824,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
|
|
|
11776
11824
|
}>, "many">>;
|
|
11777
11825
|
vocabulary: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
11778
11826
|
}, "strip", z.ZodTypeAny, {
|
|
11779
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
11827
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
11780
11828
|
request: string;
|
|
11781
11829
|
requestFragment?: string | undefined;
|
|
11782
11830
|
subDomain?: string | undefined;
|
|
@@ -11787,7 +11835,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
|
|
|
11787
11835
|
}[] | undefined;
|
|
11788
11836
|
vocabulary?: Record<string, string> | undefined;
|
|
11789
11837
|
}, {
|
|
11790
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
11838
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
11791
11839
|
request: string;
|
|
11792
11840
|
requestFragment?: string | undefined;
|
|
11793
11841
|
subDomain?: string | undefined;
|
|
@@ -12112,7 +12160,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
|
|
|
12112
12160
|
})[] | undefined;
|
|
12113
12161
|
exposes?: string[] | undefined;
|
|
12114
12162
|
domainContext?: {
|
|
12115
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
12163
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
12116
12164
|
request: string;
|
|
12117
12165
|
requestFragment?: string | undefined;
|
|
12118
12166
|
subDomain?: string | undefined;
|
|
@@ -12369,7 +12417,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
|
|
|
12369
12417
|
})[] | undefined;
|
|
12370
12418
|
exposes?: string[] | undefined;
|
|
12371
12419
|
domainContext?: {
|
|
12372
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
12420
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
12373
12421
|
request: string;
|
|
12374
12422
|
requestFragment?: string | undefined;
|
|
12375
12423
|
subDomain?: string | undefined;
|
|
@@ -12804,7 +12852,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
|
|
|
12804
12852
|
})[] | undefined;
|
|
12805
12853
|
exposes?: string[] | undefined;
|
|
12806
12854
|
domainContext?: {
|
|
12807
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
12855
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
12808
12856
|
request: string;
|
|
12809
12857
|
requestFragment?: string | undefined;
|
|
12810
12858
|
subDomain?: string | undefined;
|
|
@@ -12887,7 +12935,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
|
|
|
12887
12935
|
env?: Record<string, string> | undefined;
|
|
12888
12936
|
})[] | undefined;
|
|
12889
12937
|
domainContext?: {
|
|
12890
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
12938
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
12891
12939
|
request: string;
|
|
12892
12940
|
requestFragment?: string | undefined;
|
|
12893
12941
|
subDomain?: string | undefined;
|
|
@@ -13150,7 +13198,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
|
|
|
13150
13198
|
})[] | undefined;
|
|
13151
13199
|
exposes?: string[] | undefined;
|
|
13152
13200
|
domainContext?: {
|
|
13153
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
13201
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
13154
13202
|
request: string;
|
|
13155
13203
|
requestFragment?: string | undefined;
|
|
13156
13204
|
subDomain?: string | undefined;
|
|
@@ -13233,7 +13281,7 @@ declare const OrbitalSchemaSchema: z.ZodObject<{
|
|
|
13233
13281
|
env?: Record<string, string> | undefined;
|
|
13234
13282
|
})[] | undefined;
|
|
13235
13283
|
domainContext?: {
|
|
13236
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
13284
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
13237
13285
|
request: string;
|
|
13238
13286
|
requestFragment?: string | undefined;
|
|
13239
13287
|
subDomain?: string | undefined;
|
|
@@ -13504,7 +13552,7 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
|
|
|
13504
13552
|
})[] | undefined;
|
|
13505
13553
|
exposes?: string[] | undefined;
|
|
13506
13554
|
domainContext?: {
|
|
13507
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
13555
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
13508
13556
|
request: string;
|
|
13509
13557
|
requestFragment?: string | undefined;
|
|
13510
13558
|
subDomain?: string | undefined;
|
|
@@ -13587,7 +13635,7 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
|
|
|
13587
13635
|
env?: Record<string, string> | undefined;
|
|
13588
13636
|
})[] | undefined;
|
|
13589
13637
|
domainContext?: {
|
|
13590
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
13638
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
13591
13639
|
request: string;
|
|
13592
13640
|
requestFragment?: string | undefined;
|
|
13593
13641
|
subDomain?: string | undefined;
|
|
@@ -13850,7 +13898,7 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
|
|
|
13850
13898
|
})[] | undefined;
|
|
13851
13899
|
exposes?: string[] | undefined;
|
|
13852
13900
|
domainContext?: {
|
|
13853
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
13901
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
13854
13902
|
request: string;
|
|
13855
13903
|
requestFragment?: string | undefined;
|
|
13856
13904
|
subDomain?: string | undefined;
|
|
@@ -13933,7 +13981,7 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
|
|
|
13933
13981
|
env?: Record<string, string> | undefined;
|
|
13934
13982
|
})[] | undefined;
|
|
13935
13983
|
domainContext?: {
|
|
13936
|
-
category: "dashboard" | "content" | "form" | "social" | "game" | "business";
|
|
13984
|
+
category: "dashboard" | "content" | "form" | "ecommerce" | "social" | "game" | "business" | "workflow";
|
|
13937
13985
|
request: string;
|
|
13938
13986
|
requestFragment?: string | undefined;
|
|
13939
13987
|
subDomain?: string | undefined;
|
|
@@ -13974,4 +14022,4 @@ declare function safeParseOrbitalSchema(data: unknown): z.SafeParseReturnType<{
|
|
|
13974
14022
|
type OrbitalSchemaInput = z.input<typeof OrbitalSchemaSchema>;
|
|
13975
14023
|
type OrbitalConfigInput = z.input<typeof OrbitalConfigSchema>;
|
|
13976
14024
|
|
|
13977
|
-
export {
|
|
14025
|
+
export { EntityRefStringSchema as $, AGENT_DOMAIN_CATEGORIES as A, DesignPreferencesSchema as B, CORE_BINDINGS as C, type DesignPreferences as D, type DesignTokens as E, type DesignTokensInput as F, DesignTokensSchema as G, type DomainCategory as H, DomainCategorySchema as I, type DomainContext as J, type DomainContextInput as K, DomainContextSchema as L, type DomainVocabulary as M, DomainVocabularySchema as N, type OrbitalSchema as O, ENTITY_ROLES as P, type Effect as Q, type EffectInput as R, EffectSchema as S, type Entity as T, type EntityField as U, type EntityFieldInput as V, EntityFieldSchema as W, type EntityPersistence as X, EntityPersistenceSchema as Y, type EntityRef as Z, EntityRefSchema as _, ALLOWED_CUSTOM_COMPONENTS as a, type PageRefObject as a$, type EntityRole as a0, EntityRoleSchema as a1, EntitySchema as a2, type EntitySemanticRole as a3, EntitySemanticRoleSchema as a4, type Event as a5, type EventInput as a6, type EventListener as a7, EventListenerSchema as a8, type EventPayloadField as a9, type McpServiceDef as aA, McpServiceDefSchema as aB, type NodeClassification as aC, NodeClassificationSchema as aD, type OrbitalConfig as aE, type OrbitalConfigInput as aF, OrbitalConfigSchema as aG, type OrbitalDefinition as aH, OrbitalDefinitionSchema as aI, type OrbitalEntity as aJ, type OrbitalEntityInput as aK, OrbitalEntitySchema as aL, type OrbitalInput as aM, type OrbitalPage as aN, type OrbitalPageInput as aO, OrbitalPageSchema as aP, type OrbitalPageStrictInput as aQ, OrbitalPageStrictSchema as aR, type OrbitalSchemaInput as aS, OrbitalSchemaSchema as aT, type OrbitalTraitRef as aU, OrbitalTraitRefSchema as aV, type OrbitalUnit as aW, OrbitalUnitSchema as aX, OrbitalSchema$1 as aY, type Page as aZ, type PageRef as a_, EventPayloadFieldSchema as aa, EventSchema as ab, type EventScope as ac, EventScopeSchema as ad, type EventSemanticRole as ae, EventSemanticRoleSchema as af, type EventSource as ag, EventSourceSchema as ah, type Expression as ai, type ExpressionInput as aj, ExpressionSchema as ak, type Field as al, type FieldFormat as am, FieldFormatSchema as an, FieldSchema as ao, type FieldType as ap, FieldTypeSchema as aq, type Orbital as ar, GAME_TYPES as as, type GameSubCategory as at, GameSubCategorySchema as au, type GameType as av, GameTypeSchema as aw, type Guard as ax, type GuardInput as ay, GuardSchema as az, type AgentDomainCategory as b, type Trait as b$, PageRefObjectSchema as b0, PageRefSchema as b1, PageRefStringSchema as b2, PageSchema as b3, type PageTraitRef as b4, PageTraitRefSchema as b5, type ParsedBinding as b6, type PayloadField as b7, PayloadFieldSchema as b8, type PresentationType as b9, ServiceRefSchema as bA, ServiceRefStringSchema as bB, type ServiceType as bC, ServiceTypeSchema as bD, type SocketEvents as bE, SocketEventsSchema as bF, type SocketServiceDef as bG, SocketServiceDefSchema as bH, type State as bI, type StateInput as bJ, type StateMachine as bK, type StateMachineInput as bL, StateMachineSchema as bM, StateSchema as bN, type StateSemanticRole as bO, StateSemanticRoleSchema as bP, type SuggestedGuard as bQ, SuggestedGuardSchema as bR, type ThemeDefinition as bS, ThemeDefinitionSchema as bT, type ThemeRef as bU, ThemeRefSchema as bV, ThemeRefStringSchema as bW, type ThemeTokens as bX, ThemeTokensSchema as bY, type ThemeVariant as bZ, ThemeVariantSchema as b_, type RelatedLink as ba, RelatedLinkSchema as bb, type RelationConfig as bc, RelationConfigSchema as bd, type RenderUIConfig as be, type RequiredField as bf, RequiredFieldSchema as bg, type ResolvedAsset as bh, type ResolvedAssetInput as bi, ResolvedAssetSchema as bj, type RestAuthConfig as bk, RestAuthConfigSchema as bl, type RestServiceDef as bm, RestServiceDefSchema as bn, SERVICE_TYPES as bo, type SExpr as bp, type SExprAtom as bq, SExprAtomSchema as br, type SExprInput as bs, SExprSchema as bt, type SemanticAssetRef as bu, type SemanticAssetRefInput as bv, SemanticAssetRefSchema as bw, type ServiceDefinition as bx, ServiceDefinitionSchema as by, type ServiceRef as bz, AgentDomainCategorySchema as c, isPageReferenceString as c$, type TraitCategory as c0, TraitCategorySchema as c1, type TraitDataEntity as c2, TraitDataEntitySchema as c3, type TraitEntityField as c4, TraitEntityFieldSchema as c5, type TraitEventContract as c6, TraitEventContractSchema as c7, type TraitEventListener as c8, TraitEventListenerSchema as c9, type VisualStyle as cA, VisualStyleSchema as cB, callService as cC, collectBindings as cD, createAssetKey as cE, deriveCollection as cF, despawn as cG, doEffects as cH, emit as cI, findService as cJ, getArgs as cK, getDefaultAnimationsForRole as cL, getOperator as cM, getServiceNames as cN, getTraitConfig as cO, getTraitName as cP, hasService as cQ, isBinding as cR, isCircuitEvent as cS, isEffect as cT, isEntityReference as cU, isImportedTraitRef as cV, isInlineTrait as cW, isMcpService as cX, isOrbitalDefinition as cY, isPageReference as cZ, isPageReferenceObject as c_, type TraitInput as ca, type TraitRef as cb, TraitRefSchema as cc, type TraitReference as cd, type TraitReferenceInput as ce, TraitReferenceSchema as cf, TraitSchema as cg, type TraitTick as ch, TraitTickSchema as ci, type TraitUIBinding as cj, type Transition as ck, type TransitionInput as cl, TransitionSchema as cm, type UISlot as cn, UISlotSchema as co, UI_SLOTS as cp, type UXHints as cq, UXHintsSchema as cr, type UseDeclaration as cs, UseDeclarationSchema as ct, type UserPersona as cu, type UserPersonaInput as cv, UserPersonaSchema as cw, VISUAL_STYLES as cx, type ViewType as cy, ViewTypeSchema as cz, type AllowedCustomComponent as d, isRestService as d0, isRuntimeEntity as d1, isSExpr as d2, isSExprAtom as d3, isSExprCall as d4, isSExprEffect as d5, isServiceReference as d6, isSingletonEntity as d7, isSocketService as d8, isThemeReference as d9, isValidBinding as da, navigate as db, normalizeTraitRef as dc, notify as dd, parseAssetKey as de, parseBinding as df, parseEntityRef as dg, parseImportedTraitRef as dh, parseOrbitalSchema as di, parsePageRef as dj, parseServiceRef as dk, persist as dl, renderUI as dm, safeParseOrbitalSchema as dn, set as dp, sexpr as dq, spawn as dr, validateAssetAnimations as ds, walkSExpr as dt, type AnimationDef as e, type AnimationDefInput as f, AnimationDefSchema as g, type AssetMap as h, type AssetMapInput as i, AssetMapSchema as j, type AssetMapping as k, type AssetMappingInput as l, AssetMappingSchema as m, type CallServiceConfig as n, type ComputedEventContract as o, ComputedEventContractSchema as p, type ComputedEventListener as q, ComputedEventListenerSchema as r, type CoreBinding as s, type CustomPatternDefinition as t, type CustomPatternDefinitionInput as u, CustomPatternDefinitionSchema as v, type CustomPatternMap as w, type CustomPatternMapInput as x, CustomPatternMapSchema as y, type DesignPreferencesInput as z };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as
|
|
1
|
+
import { bp as SExpr } from '../schema-DYj-zJWb.js';
|
|
2
|
+
export { A as AGENT_DOMAIN_CATEGORIES, a as ALLOWED_CUSTOM_COMPONENTS, b as AgentDomainCategory, c as AgentDomainCategorySchema, d as AllowedCustomComponent, e as AnimationDef, f as AnimationDefInput, g as AnimationDefSchema, O as AppSchema, h as AssetMap, i as AssetMapInput, j as AssetMapSchema, k as AssetMapping, l as AssetMappingInput, m as AssetMappingSchema, C as CORE_BINDINGS, n as CallServiceConfig, o as ComputedEventContract, p as ComputedEventContractSchema, q as ComputedEventListener, r as ComputedEventListenerSchema, s as CoreBinding, t as CustomPatternDefinition, u as CustomPatternDefinitionInput, v as CustomPatternDefinitionSchema, w as CustomPatternMap, x as CustomPatternMapInput, y as CustomPatternMapSchema, D as DesignPreferences, z as DesignPreferencesInput, B as DesignPreferencesSchema, E as DesignTokens, F as DesignTokensInput, G as DesignTokensSchema, H as DomainCategory, I as DomainCategorySchema, J as DomainContext, K as DomainContextInput, L as DomainContextSchema, M as DomainVocabulary, N as DomainVocabularySchema, P as ENTITY_ROLES, Q as Effect, R as EffectInput, S as EffectSchema, T as Entity, U as EntityField, V as EntityFieldInput, W as EntityFieldSchema, X as EntityPersistence, Y as EntityPersistenceSchema, Z as EntityRef, _ as EntityRefSchema, $ as EntityRefStringSchema, a0 as EntityRole, a1 as EntityRoleSchema, a2 as EntitySchema, a3 as EntitySemanticRole, a4 as EntitySemanticRoleSchema, a5 as Event, a6 as EventInput, a7 as EventListener, a8 as EventListenerSchema, a9 as EventPayloadField, aa as EventPayloadFieldSchema, ab as EventSchema, ac as EventScope, ad as EventScopeSchema, ae as EventSemanticRole, af as EventSemanticRoleSchema, ag as EventSource, ah as EventSourceSchema, ai as Expression, aj as ExpressionInput, ak as ExpressionSchema, al as Field, am as FieldFormat, an as FieldFormatSchema, ao as FieldSchema, ap as FieldType, aq as FieldTypeSchema, ar as FullOrbitalUnit, as as GAME_TYPES, at as GameSubCategory, au as GameSubCategorySchema, av as GameType, aw as GameTypeSchema, ax as Guard, ay as GuardInput, az as GuardSchema, aA as McpServiceDef, aB as McpServiceDefSchema, aC as NodeClassification, aD as NodeClassificationSchema, ar as Orbital, aE as OrbitalConfig, aF as OrbitalConfigInput, aG as OrbitalConfigSchema, aH as OrbitalDefinition, aI as OrbitalDefinitionSchema, aJ as OrbitalEntity, aK as OrbitalEntityInput, aL as OrbitalEntitySchema, aM as OrbitalInput, aN as OrbitalPage, aO as OrbitalPageInput, aP as OrbitalPageSchema, aQ as OrbitalPageStrictInput, aR as OrbitalPageStrictSchema, O as OrbitalSchema, aS as OrbitalSchemaInput, aT as OrbitalSchemaSchema, aU as OrbitalTraitRef, aV as OrbitalTraitRefSchema, aW as OrbitalUnit, aX as OrbitalUnitSchema, aY as OrbitalZodSchema, aZ as Page, a_ as PageRef, a$ as PageRefObject, b0 as PageRefObjectSchema, b1 as PageRefSchema, b2 as PageRefStringSchema, b3 as PageSchema, b4 as PageTraitRef, b5 as PageTraitRefSchema, b6 as ParsedBinding, b7 as PayloadField, b8 as PayloadFieldSchema, b9 as PresentationType, ba as RelatedLink, bb as RelatedLinkSchema, bc as RelationConfig, bd as RelationConfigSchema, be as RenderUIConfig, bf as RequiredField, bg as RequiredFieldSchema, bh as ResolvedAsset, bi as ResolvedAssetInput, bj as ResolvedAssetSchema, bk as RestAuthConfig, bl as RestAuthConfigSchema, bm as RestServiceDef, bn as RestServiceDefSchema, bo as SERVICE_TYPES, bq as SExprAtom, br as SExprAtomSchema, bs as SExprInput, bt as SExprSchema, bu as SemanticAssetRef, bv as SemanticAssetRefInput, bw as SemanticAssetRefSchema, bx as ServiceDefinition, by as ServiceDefinitionSchema, bz as ServiceRef, bA as ServiceRefSchema, bB as ServiceRefStringSchema, bC as ServiceType, bD as ServiceTypeSchema, bE as SocketEvents, bF as SocketEventsSchema, bG as SocketServiceDef, bH as SocketServiceDefSchema, bI as State, bJ as StateInput, bK as StateMachine, bL as StateMachineInput, bM as StateMachineSchema, bN as StateSchema, bO as StateSemanticRole, bP as StateSemanticRoleSchema, bQ as SuggestedGuard, bR as SuggestedGuardSchema, bS as ThemeDefinition, bT as ThemeDefinitionSchema, bU as ThemeRef, bV as ThemeRefSchema, bW as ThemeRefStringSchema, bX as ThemeTokens, bY as ThemeTokensSchema, bZ as ThemeVariant, b_ as ThemeVariantSchema, b$ as Trait, c0 as TraitCategory, c1 as TraitCategorySchema, c2 as TraitDataEntity, c3 as TraitDataEntitySchema, c4 as TraitEntityField, c5 as TraitEntityFieldSchema, c6 as TraitEventContract, c7 as TraitEventContractSchema, c8 as TraitEventListener, c9 as TraitEventListenerSchema, ca as TraitInput, cb as TraitRef, cc as TraitRefSchema, cd as TraitReference, ce as TraitReferenceInput, cf as TraitReferenceSchema, cg as TraitSchema, ch as TraitTick, ci as TraitTickSchema, cj as TraitUIBinding, ck as Transition, cl as TransitionInput, cm as TransitionSchema, cn as UISlot, co as UISlotSchema, cp as UI_SLOTS, cq as UXHints, cr as UXHintsSchema, cs as UseDeclaration, ct as UseDeclarationSchema, cu as UserPersona, cv as UserPersonaInput, cw as UserPersonaSchema, cx as VISUAL_STYLES, cy as ViewType, cz as ViewTypeSchema, cA as VisualStyle, cB as VisualStyleSchema, cC as callService, cD as collectBindings, cE as createAssetKey, cF as deriveCollection, cG as despawn, cH as doEffects, cI as emit, cJ as findService, cK as getArgs, cL as getDefaultAnimationsForRole, cM as getOperator, cN as getServiceNames, cO as getTraitConfig, cP as getTraitName, cQ as hasService, cR as isBinding, cS as isCircuitEvent, cT as isEffect, cU as isEntityReference, cV as isImportedTraitRef, cW as isInlineTrait, cX as isMcpService, cY as isOrbitalDefinition, cZ as isPageReference, c_ as isPageReferenceObject, c$ as isPageReferenceString, d0 as isRestService, d1 as isRuntimeEntity, d2 as isSExpr, d3 as isSExprAtom, d4 as isSExprCall, d5 as isSExprEffect, d6 as isServiceReference, d7 as isSingletonEntity, d8 as isSocketService, d9 as isThemeReference, da as isValidBinding, db as navigate, dc as normalizeTraitRef, dd as notify, de as parseAssetKey, df as parseBinding, dg as parseEntityRef, dh as parseImportedTraitRef, di as parseOrbitalSchema, dj as parsePageRef, dk as parseServiceRef, dl as persist, dm as renderUI, dn as safeParseOrbitalSchema, dp as set, dq as sexpr, dr as spawn, ds as validateAssetAnimations, dt as walkSExpr } from '../schema-DYj-zJWb.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
export { CATEGORIES, CategoryMeta, OPERATORS, OPERATORS_SCHEMA, OPERATOR_NAMES, OperatorCategory, OperatorMeta, OperatorStats, OperatorsSchema, TargetPlatform, getOperatorMeta, getOperatorStats, getOperatorsByCategory, getOperatorsForTarget, isEffectOperator, isGuardOperator, isKnownOperator, validateOperatorArity } from '@almadar/operators';
|
|
5
5
|
export { PATTERN_TYPES, PatternConfig, PatternType, isValidPatternType } from '@almadar/patterns';
|
package/dist/types/index.js
CHANGED
|
@@ -17,11 +17,30 @@ var FieldTypeSchema = z.enum([
|
|
|
17
17
|
"enum",
|
|
18
18
|
"relation"
|
|
19
19
|
]);
|
|
20
|
+
var RelationCardinalitySchema = z.enum([
|
|
21
|
+
"one",
|
|
22
|
+
"many",
|
|
23
|
+
"one-to-many",
|
|
24
|
+
"many-to-one",
|
|
25
|
+
"many-to-many"
|
|
26
|
+
]);
|
|
20
27
|
var RelationConfigSchema = z.object({
|
|
21
28
|
entity: z.string().min(1, "Target entity is required"),
|
|
22
29
|
field: z.string().optional(),
|
|
23
|
-
cardinality:
|
|
24
|
-
onDelete: z.enum(["cascade", "nullify", "restrict"]).optional()
|
|
30
|
+
cardinality: RelationCardinalitySchema.optional(),
|
|
31
|
+
onDelete: z.enum(["cascade", "nullify", "restrict"]).optional(),
|
|
32
|
+
// Legacy compatibility fields
|
|
33
|
+
foreignKey: z.string().optional(),
|
|
34
|
+
target: z.string().optional(),
|
|
35
|
+
type: RelationCardinalitySchema.optional()
|
|
36
|
+
}).transform((data) => {
|
|
37
|
+
const normalized = {
|
|
38
|
+
entity: data.entity || data.target || "",
|
|
39
|
+
cardinality: data.cardinality || data.type,
|
|
40
|
+
field: data.field,
|
|
41
|
+
onDelete: data.onDelete
|
|
42
|
+
};
|
|
43
|
+
return normalized;
|
|
25
44
|
});
|
|
26
45
|
var FieldFormatSchema = z.enum([
|
|
27
46
|
"email",
|
|
@@ -584,6 +603,17 @@ var DomainCategorySchema = z.enum([
|
|
|
584
603
|
"game",
|
|
585
604
|
"custom"
|
|
586
605
|
]);
|
|
606
|
+
var AGENT_DOMAIN_CATEGORIES = [
|
|
607
|
+
"game",
|
|
608
|
+
"business",
|
|
609
|
+
"dashboard",
|
|
610
|
+
"form",
|
|
611
|
+
"content",
|
|
612
|
+
"social",
|
|
613
|
+
"ecommerce",
|
|
614
|
+
"workflow"
|
|
615
|
+
];
|
|
616
|
+
var AgentDomainCategorySchema = z.enum([...AGENT_DOMAIN_CATEGORIES]);
|
|
587
617
|
var GameSubCategorySchema = z.enum([
|
|
588
618
|
"platformer",
|
|
589
619
|
"shooter",
|
|
@@ -640,14 +670,7 @@ var UserPersonaSchema = z.object({
|
|
|
640
670
|
var DomainContextSchema = z.object({
|
|
641
671
|
request: z.string().min(1, "Original request is required"),
|
|
642
672
|
requestFragment: z.string().optional(),
|
|
643
|
-
category:
|
|
644
|
-
"game",
|
|
645
|
-
"business",
|
|
646
|
-
"dashboard",
|
|
647
|
-
"form",
|
|
648
|
-
"content",
|
|
649
|
-
"social"
|
|
650
|
-
]),
|
|
673
|
+
category: AgentDomainCategorySchema,
|
|
651
674
|
subDomain: z.string().optional(),
|
|
652
675
|
personas: z.array(UserPersonaSchema).optional(),
|
|
653
676
|
vocabulary: DomainVocabularySchema.optional()
|
|
@@ -1148,6 +1171,6 @@ function isResolvedIR(ir) {
|
|
|
1148
1171
|
return typeof r.appName === "string" && r.traits instanceof Map && r.pages instanceof Map;
|
|
1149
1172
|
}
|
|
1150
1173
|
|
|
1151
|
-
export { ALLOWED_CUSTOM_COMPONENTS, AnimationDefSchema, AssetMapSchema, AssetMappingSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BindingSchema, CORE_BINDINGS, ComputedEventContractSchema, ComputedEventListenerSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GAME_TYPES, GameSubCategorySchema, GameTypeSchema, GuardSchema, InteractionModelSchema, McpServiceDefSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PatternTypeSchema, PayloadFieldSchema, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, ResolvedAssetSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SocketEventsSchema, SocketServiceDefSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SuggestedGuardSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TraitCategorySchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, callService, collectBindings, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createResolvedField, deriveCollection, despawn, doEffects, emit, findService, getAllOperators, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, inferTsType, isBinding, isCircuitEvent, isEffect, isEntityReference, isImportedTraitRef, isInlineTrait, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isSingletonEntity, isSocketService, isThemeReference, isValidBinding, navigate, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, renderUI, safeParseOrbitalSchema, set, sexpr, spawn, validateAssetAnimations, validateBindingInContext, walkSExpr };
|
|
1174
|
+
export { AGENT_DOMAIN_CATEGORIES, ALLOWED_CUSTOM_COMPONENTS, AgentDomainCategorySchema, AnimationDefSchema, AssetMapSchema, AssetMappingSchema, BINDING_CONTEXT_RULES, BINDING_DOCS, BindingSchema, CORE_BINDINGS, ComputedEventContractSchema, ComputedEventListenerSchema, CustomPatternDefinitionSchema, CustomPatternMapSchema, DEFAULT_INTERACTION_MODELS, DesignPreferencesSchema, DesignTokensSchema, DomainCategorySchema, DomainContextSchema, DomainVocabularySchema, ENTITY_ROLES, EffectSchema, EntityFieldSchema, EntityPersistenceSchema, EntityRefSchema, EntityRefStringSchema, EntityRoleSchema, EntitySchema, EntitySemanticRoleSchema, EventListenerSchema, EventPayloadFieldSchema, EventSchema, EventScopeSchema, EventSemanticRoleSchema, EventSourceSchema, ExpressionSchema, FieldFormatSchema, FieldSchema, FieldTypeSchema, GAME_TYPES, GameSubCategorySchema, GameTypeSchema, GuardSchema, InteractionModelSchema, McpServiceDefSchema, NodeClassificationSchema, OrbitalConfigSchema, OrbitalDefinitionSchema, OrbitalEntitySchema, OrbitalPageSchema, OrbitalPageStrictSchema, OrbitalSchemaSchema, OrbitalTraitRefSchema, OrbitalUnitSchema, OrbitalSchema as OrbitalZodSchema, PageRefObjectSchema, PageRefSchema, PageRefStringSchema, PageSchema, PageTraitRefSchema, PatternTypeSchema, PayloadFieldSchema, RelatedLinkSchema, RelationConfigSchema, RequiredFieldSchema, ResolvedAssetSchema, RestAuthConfigSchema, RestServiceDefSchema, SERVICE_TYPES, SExprAtomSchema, SExprSchema, SemanticAssetRefSchema, ServiceDefinitionSchema, ServiceRefSchema, ServiceRefStringSchema, ServiceTypeSchema, SocketEventsSchema, SocketServiceDefSchema, StateMachineSchema, StateSchema, StateSemanticRoleSchema, SuggestedGuardSchema, ThemeDefinitionSchema, ThemeRefSchema, ThemeRefStringSchema, ThemeTokensSchema, ThemeVariantSchema, TraitCategorySchema, TraitDataEntitySchema, TraitEntityFieldSchema, TraitEventContractSchema, TraitEventListenerSchema, TraitRefSchema, TraitReferenceSchema, TraitSchema, TraitTickSchema, TransitionSchema, UISlotSchema, UI_SLOTS, UXHintsSchema, UseDeclarationSchema, UserPersonaSchema, VISUAL_STYLES, ViewTypeSchema, VisualStyleSchema, callService, collectBindings, createAssetKey, createEmptyResolvedPage, createEmptyResolvedTrait, createResolvedField, deriveCollection, despawn, doEffects, emit, findService, getAllOperators, getAllPatternTypes, getArgs, getBindingExamples, getDefaultAnimationsForRole, getInteractionModelForDomain, getOperator, getServiceNames, getTraitConfig, getTraitName, hasService, inferTsType, isBinding, isCircuitEvent, isEffect, isEntityReference, isImportedTraitRef, isInlineTrait, isMcpService, isOrbitalDefinition, isPageReference, isPageReferenceObject, isPageReferenceString, isResolvedIR, isRestService, isRuntimeEntity, isSExpr, isSExprAtom, isSExprCall, isSExprEffect, isServiceReference, isSingletonEntity, isSocketService, isThemeReference, isValidBinding, navigate, normalizeTraitRef, notify, parseAssetKey, parseBinding, parseEntityRef, parseImportedTraitRef, parseOrbitalSchema, parsePageRef, parseServiceRef, persist, renderUI, safeParseOrbitalSchema, set, sexpr, spawn, validateAssetAnimations, validateBindingInContext, walkSExpr };
|
|
1152
1175
|
//# sourceMappingURL=index.js.map
|
|
1153
1176
|
//# sourceMappingURL=index.js.map
|