agentlang 0.9.4 → 0.9.5

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.
Files changed (53) hide show
  1. package/out/api/http.js +8 -2
  2. package/out/api/http.js.map +1 -1
  3. package/out/extension/main.cjs +3 -3
  4. package/out/extension/main.cjs.map +1 -1
  5. package/out/language/generated/ast.d.ts +1918 -149
  6. package/out/language/generated/ast.d.ts.map +1 -1
  7. package/out/language/generated/ast.js +2050 -1261
  8. package/out/language/generated/ast.js.map +1 -1
  9. package/out/language/generated/grammar.d.ts +1 -1
  10. package/out/language/generated/grammar.d.ts.map +1 -1
  11. package/out/language/generated/grammar.js +217 -544
  12. package/out/language/generated/grammar.js.map +1 -1
  13. package/out/language/generated/module.d.ts +1 -1
  14. package/out/language/generated/module.js +1 -1
  15. package/out/language/main.cjs +7271 -3565
  16. package/out/language/main.cjs.map +4 -4
  17. package/out/runtime/auth/defs.d.ts +1 -1
  18. package/out/runtime/auth/defs.js +1 -1
  19. package/out/runtime/defs.d.ts +1 -1
  20. package/out/runtime/defs.js +1 -1
  21. package/out/runtime/loader.js +1 -1
  22. package/out/runtime/resolvers/sqldb/database.d.ts +1 -0
  23. package/out/runtime/resolvers/sqldb/database.d.ts.map +1 -1
  24. package/out/runtime/resolvers/sqldb/database.js +2 -1
  25. package/out/runtime/resolvers/sqldb/database.js.map +1 -1
  26. package/out/runtime/state.d.ts +36 -367
  27. package/out/runtime/state.d.ts.map +1 -1
  28. package/out/setupClassic.d.ts +98 -0
  29. package/out/setupClassic.d.ts.map +1 -0
  30. package/out/setupClassic.js +38 -0
  31. package/out/setupClassic.js.map +1 -0
  32. package/out/setupCommon.d.ts +2 -0
  33. package/out/setupCommon.d.ts.map +1 -0
  34. package/out/setupCommon.js +33 -0
  35. package/out/setupCommon.js.map +1 -0
  36. package/out/setupExtended.d.ts +40 -0
  37. package/out/setupExtended.d.ts.map +1 -0
  38. package/out/setupExtended.js +67 -0
  39. package/out/setupExtended.js.map +1 -0
  40. package/out/syntaxes/agentlang.monarch.js +3 -3
  41. package/out/syntaxes/agentlang.monarch.js.map +1 -1
  42. package/out/utils/runtime.d.ts +7 -6
  43. package/out/utils/runtime.d.ts.map +1 -1
  44. package/package.json +185 -187
  45. package/src/api/http.ts +8 -2
  46. package/src/language/generated/ast.ts +2108 -1320
  47. package/src/language/generated/grammar.ts +217 -544
  48. package/src/language/generated/module.ts +1 -1
  49. package/src/runtime/auth/defs.ts +1 -1
  50. package/src/runtime/defs.ts +1 -1
  51. package/src/runtime/loader.ts +1 -1
  52. package/src/runtime/resolvers/sqldb/database.ts +2 -1
  53. package/src/syntaxes/agentlang.monarch.ts +3 -3
@@ -1,5 +1,5 @@
1
1
  /******************************************************************************
2
- * This file was generated by langium-cli 3.5.2.
2
+ * This file was generated by langium-cli 4.1.0.
3
3
  * DO NOT EDIT MANUALLY!
4
4
  ******************************************************************************/
5
5
 
@@ -7,9 +7,9 @@
7
7
  import * as langium from 'langium';
8
8
 
9
9
  export const AgentlangTerminals = {
10
- ID: /(([_a-zA-Z][\w_]*)(\/([_a-zA-Z][\w_]*))?)/,
11
- QUOTED_STRING: /("(((\\([\s\S]))|((?!(((\\|")|\r)|\n))[\s\S]*?))|(\r?\n))*")/,
12
- TICK_QUOTED_STRING: /(`(((\\([\s\S]))|((?!(((\\|`)|\r)|\n))[\s\S]*?))|(\r?\n))*`)/,
10
+ ID: /(?:[_a-zA-Z][\w_]*)(\/(?:[_a-zA-Z][\w_]*))?/,
11
+ QUOTED_STRING: /"(\\(?:[\s\S])|(?:(?!(\\|"|\r|\n))[\s\S]*?)|\r?\n)*"/,
12
+ TICK_QUOTED_STRING: /`(\\(?:[\s\S])|(?:(?!(\\|`|\r|\n))[\s\S]*?)|\r?\n)*`/,
13
13
  INT: /-?[0-9]+/,
14
14
  WS: /\s+/,
15
15
  ML_COMMENT: /\/\*[\s\S]*?\*\//,
@@ -127,132 +127,6 @@ export type AgentlangKeywordNames =
127
127
 
128
128
  export type AgentlangTokenNames = AgentlangTerminalNames | AgentlangKeywordNames;
129
129
 
130
- export type AttributeValueExpression = Expr;
131
-
132
- export const AttributeValueExpression = 'AttributeValueExpression';
133
-
134
- export function isAttributeValueExpression(item: unknown): item is AttributeValueExpression {
135
- return reflection.isInstance(item, AttributeValueExpression);
136
- }
137
-
138
- export type Boolean = 'false' | 'true';
139
-
140
- export function isBoolean(item: unknown): item is Boolean {
141
- return item === 'true' || item === 'false';
142
- }
143
-
144
- export type Decimal = number;
145
-
146
- export function isDecimal(item: unknown): item is Decimal {
147
- return typeof item === 'number';
148
- }
149
-
150
- export type Definition = AgentDefinition | DecisionDefinition | DirectiveDefinition | FlowDefinition | GlossaryEntryDefinition | PublicAgentDefinition | PublicWorkflowDefinition | RelationshipDefinition | ResolverDefinition | RetryDefinition | ScenarioDefinition | SchemaDefinition | StandaloneStatement | WorkflowDefinition;
151
-
152
- export const Definition = 'Definition';
153
-
154
- export function isDefinition(item: unknown): item is Definition {
155
- return reflection.isInstance(item, Definition);
156
- }
157
-
158
- export type Expr = BinExpr | PrimExpr;
159
-
160
- export const Expr = 'Expr';
161
-
162
- export function isExpr(item: unknown): item is Expr {
163
- return reflection.isInstance(item, Expr);
164
- }
165
-
166
- export type FlowStepSpec = Statement;
167
-
168
- export const FlowStepSpec = 'FlowStepSpec';
169
-
170
- export function isFlowStepSpec(item: unknown): item is FlowStepSpec {
171
- return reflection.isInstance(item, FlowStepSpec);
172
- }
173
-
174
- export type GenericName = STRING | string;
175
-
176
- export function isGenericName(item: unknown): item is GenericName {
177
- return isSTRING(item) || (typeof item === 'string' && (/(([_a-zA-Z][\w_]*)(\/([_a-zA-Z][\w_]*))?)/.test(item)));
178
- }
179
-
180
- export type JoinType = '@full_join' | '@inner_join' | '@join' | '@left_join' | '@right_join';
181
-
182
- export function isJoinType(item: unknown): item is JoinType {
183
- return item === '@join' || item === '@inner_join' || item === '@left_join' || item === '@right_join' || item === '@full_join';
184
- }
185
-
186
- export type PrimExpr = Group | Literal | NegExpr | NotExpr;
187
-
188
- export const PrimExpr = 'PrimExpr';
189
-
190
- export function isPrimExpr(item: unknown): item is PrimExpr {
191
- return reflection.isInstance(item, PrimExpr);
192
- }
193
-
194
- export type QualifiedName = Ref | string;
195
-
196
- export function isQualifiedName(item: unknown): item is QualifiedName {
197
- return isRef(item) || (typeof item === 'string' && (/(([_a-zA-Z][\w_]*)(\/([_a-zA-Z][\w_]*))?)/.test(item)));
198
- }
199
-
200
- export type QueryId = string;
201
-
202
- export function isQueryId(item: unknown): item is QueryId {
203
- return typeof item === 'string';
204
- }
205
-
206
- export type Ref = string;
207
-
208
- export function isRef(item: unknown): item is Ref {
209
- return typeof item === 'string';
210
- }
211
-
212
- export type ResolverPathEntry = GenericName | QualifiedName;
213
-
214
- export function isResolverPathEntry(item: unknown): item is ResolverPathEntry {
215
- return isQualifiedName(item) || isGenericName(item);
216
- }
217
-
218
- export type SchemaDefinition = EntityDefinition | EventDefinition | PublicEventDefinition | RecordDefinition;
219
-
220
- export const SchemaDefinition = 'SchemaDefinition';
221
-
222
- export function isSchemaDefinition(item: unknown): item is SchemaDefinition {
223
- return reflection.isInstance(item, SchemaDefinition);
224
- }
225
-
226
- export type SqlComparisonOpr = '!=' | '<' | '<=' | '<>' | '=' | '>' | '>=' | 'between' | 'in' | 'like';
227
-
228
- export function isSqlComparisonOpr(item: unknown): item is SqlComparisonOpr {
229
- return item === '=' || item === '<>' || item === '!=' || item === '<' || item === '<=' || item === '>' || item === '>=' || item === 'in' || item === 'like' || item === 'between';
230
- }
231
-
232
- export type STRING = string;
233
-
234
- export function isSTRING(item: unknown): item is STRING {
235
- return (typeof item === 'string' && (/("(((\\([\s\S]))|((?!(((\\|")|\r)|\n))[\s\S]*?))|(\r?\n))*")/.test(item) || /(`(((\\([\s\S]))|((?!(((\\|`)|\r)|\n))[\s\S]*?))|(\r?\n))*`)/.test(item)));
236
- }
237
-
238
- export type TaggedId = string;
239
-
240
- export function isTaggedId(item: unknown): item is TaggedId {
241
- return typeof item === 'string';
242
- }
243
-
244
- export type WorkflowHeaderPrefix = 'create' | 'delete' | 'update';
245
-
246
- export function isWorkflowHeaderPrefix(item: unknown): item is WorkflowHeaderPrefix {
247
- return item === 'create' || item === 'update' || item === 'delete';
248
- }
249
-
250
- export type WorkflowHeaderTag = '@after' | '@before';
251
-
252
- export function isWorkflowHeaderTag(item: unknown): item is WorkflowHeaderTag {
253
- return item === '@after' || item === '@before';
254
- }
255
-
256
130
  export interface ActionEntry extends langium.AstNode {
257
131
  readonly $container: EntityActionsDefinitions;
258
132
  readonly $type: 'ActionEntry';
@@ -260,10 +134,14 @@ export interface ActionEntry extends langium.AstNode {
260
134
  name: string;
261
135
  }
262
136
 
263
- export const ActionEntry = 'ActionEntry';
137
+ export const ActionEntry = {
138
+ $type: 'ActionEntry',
139
+ event: 'event',
140
+ name: 'name'
141
+ } as const;
264
142
 
265
143
  export function isActionEntry(item: unknown): item is ActionEntry {
266
- return reflection.isInstance(item, ActionEntry);
144
+ return reflection.isInstance(item, ActionEntry.$type);
267
145
  }
268
146
 
269
147
  export interface AfterTriggerDefinition extends langium.AstNode {
@@ -272,10 +150,13 @@ export interface AfterTriggerDefinition extends langium.AstNode {
272
150
  triggers: TriggerDefinition;
273
151
  }
274
152
 
275
- export const AfterTriggerDefinition = 'AfterTriggerDefinition';
153
+ export const AfterTriggerDefinition = {
154
+ $type: 'AfterTriggerDefinition',
155
+ triggers: 'triggers'
156
+ } as const;
276
157
 
277
158
  export function isAfterTriggerDefinition(item: unknown): item is AfterTriggerDefinition {
278
- return reflection.isInstance(item, AfterTriggerDefinition);
159
+ return reflection.isInstance(item, AfterTriggerDefinition.$type);
279
160
  }
280
161
 
281
162
  export interface AgentDefinition extends langium.AstNode {
@@ -285,10 +166,14 @@ export interface AgentDefinition extends langium.AstNode {
285
166
  name: GenericName;
286
167
  }
287
168
 
288
- export const AgentDefinition = 'AgentDefinition';
169
+ export const AgentDefinition = {
170
+ $type: 'AgentDefinition',
171
+ body: 'body',
172
+ name: 'name'
173
+ } as const;
289
174
 
290
175
  export function isAgentDefinition(item: unknown): item is AgentDefinition {
291
- return reflection.isInstance(item, AgentDefinition);
176
+ return reflection.isInstance(item, AgentDefinition.$type);
292
177
  }
293
178
 
294
179
  export interface AgentXtraAttribute extends langium.AstNode {
@@ -298,10 +183,14 @@ export interface AgentXtraAttribute extends langium.AstNode {
298
183
  value: STRING;
299
184
  }
300
185
 
301
- export const AgentXtraAttribute = 'AgentXtraAttribute';
186
+ export const AgentXtraAttribute = {
187
+ $type: 'AgentXtraAttribute',
188
+ name: 'name',
189
+ value: 'value'
190
+ } as const;
302
191
 
303
192
  export function isAgentXtraAttribute(item: unknown): item is AgentXtraAttribute {
304
- return reflection.isInstance(item, AgentXtraAttribute);
193
+ return reflection.isInstance(item, AgentXtraAttribute.$type);
305
194
  }
306
195
 
307
196
  export interface AgentXtraSpec extends langium.AstNode {
@@ -310,10 +199,13 @@ export interface AgentXtraSpec extends langium.AstNode {
310
199
  attributes: Array<AgentXtraAttribute>;
311
200
  }
312
201
 
313
- export const AgentXtraSpec = 'AgentXtraSpec';
202
+ export const AgentXtraSpec = {
203
+ $type: 'AgentXtraSpec',
204
+ attributes: 'attributes'
205
+ } as const;
314
206
 
315
207
  export function isAgentXtraSpec(item: unknown): item is AgentXtraSpec {
316
- return reflection.isInstance(item, AgentXtraSpec);
208
+ return reflection.isInstance(item, AgentXtraSpec.$type);
317
209
  }
318
210
 
319
211
  export interface AggregateFunctionSpec extends langium.AstNode {
@@ -323,10 +215,14 @@ export interface AggregateFunctionSpec extends langium.AstNode {
323
215
  name: string;
324
216
  }
325
217
 
326
- export const AggregateFunctionSpec = 'AggregateFunctionSpec';
218
+ export const AggregateFunctionSpec = {
219
+ $type: 'AggregateFunctionSpec',
220
+ args: 'args',
221
+ name: 'name'
222
+ } as const;
327
223
 
328
224
  export function isAggregateFunctionSpec(item: unknown): item is AggregateFunctionSpec {
329
- return reflection.isInstance(item, AggregateFunctionSpec);
225
+ return reflection.isInstance(item, AggregateFunctionSpec.$type);
330
226
  }
331
227
 
332
228
  export interface AliasSpec extends langium.AstNode {
@@ -336,10 +232,14 @@ export interface AliasSpec extends langium.AstNode {
336
232
  aliases: Array<string>;
337
233
  }
338
234
 
339
- export const AliasSpec = 'AliasSpec';
235
+ export const AliasSpec = {
236
+ $type: 'AliasSpec',
237
+ alias: 'alias',
238
+ aliases: 'aliases'
239
+ } as const;
340
240
 
341
241
  export function isAliasSpec(item: unknown): item is AliasSpec {
342
- return reflection.isInstance(item, AliasSpec);
242
+ return reflection.isInstance(item, AliasSpec.$type);
343
243
  }
344
244
 
345
245
  export interface ArrayLiteral extends langium.AstNode {
@@ -348,10 +248,13 @@ export interface ArrayLiteral extends langium.AstNode {
348
248
  vals: Array<Statement>;
349
249
  }
350
250
 
351
- export const ArrayLiteral = 'ArrayLiteral';
251
+ export const ArrayLiteral = {
252
+ $type: 'ArrayLiteral',
253
+ vals: 'vals'
254
+ } as const;
352
255
 
353
256
  export function isArrayLiteral(item: unknown): item is ArrayLiteral {
354
- return reflection.isInstance(item, ArrayLiteral);
257
+ return reflection.isInstance(item, ArrayLiteral.$type);
355
258
  }
356
259
 
357
260
  export interface AsyncFnCall extends langium.AstNode {
@@ -360,10 +263,13 @@ export interface AsyncFnCall extends langium.AstNode {
360
263
  fnCall: FnCall;
361
264
  }
362
265
 
363
- export const AsyncFnCall = 'AsyncFnCall';
266
+ export const AsyncFnCall = {
267
+ $type: 'AsyncFnCall',
268
+ fnCall: 'fnCall'
269
+ } as const;
364
270
 
365
271
  export function isAsyncFnCall(item: unknown): item is AsyncFnCall {
366
- return reflection.isInstance(item, AsyncFnCall);
272
+ return reflection.isInstance(item, AsyncFnCall.$type);
367
273
  }
368
274
 
369
275
  export interface AttributeDefinition extends langium.AstNode {
@@ -379,10 +285,30 @@ export interface AttributeDefinition extends langium.AstNode {
379
285
  type?: QualifiedName;
380
286
  }
381
287
 
382
- export const AttributeDefinition = 'AttributeDefinition';
288
+ export const AttributeDefinition = {
289
+ $type: 'AttributeDefinition',
290
+ arrayType: 'arrayType',
291
+ enumSpec: 'enumSpec',
292
+ expr: 'expr',
293
+ name: 'name',
294
+ oneOfSpec: 'oneOfSpec',
295
+ properties: 'properties',
296
+ refSpec: 'refSpec',
297
+ type: 'type'
298
+ } as const;
383
299
 
384
300
  export function isAttributeDefinition(item: unknown): item is AttributeDefinition {
385
- return reflection.isInstance(item, AttributeDefinition);
301
+ return reflection.isInstance(item, AttributeDefinition.$type);
302
+ }
303
+
304
+ export type AttributeValueExpression = Expr;
305
+
306
+ export const AttributeValueExpression = {
307
+ $type: 'AttributeValueExpression'
308
+ } as const;
309
+
310
+ export function isAttributeValueExpression(item: unknown): item is AttributeValueExpression {
311
+ return reflection.isInstance(item, AttributeValueExpression.$type);
386
312
  }
387
313
 
388
314
  export interface BackoffSpec extends langium.AstNode {
@@ -391,10 +317,13 @@ export interface BackoffSpec extends langium.AstNode {
391
317
  attributes: Array<SetAttribute>;
392
318
  }
393
319
 
394
- export const BackoffSpec = 'BackoffSpec';
320
+ export const BackoffSpec = {
321
+ $type: 'BackoffSpec',
322
+ attributes: 'attributes'
323
+ } as const;
395
324
 
396
325
  export function isBackoffSpec(item: unknown): item is BackoffSpec {
397
- return reflection.isInstance(item, BackoffSpec);
326
+ return reflection.isInstance(item, BackoffSpec.$type);
398
327
  }
399
328
 
400
329
  export interface BeforeTriggerDefinition extends langium.AstNode {
@@ -403,10 +332,13 @@ export interface BeforeTriggerDefinition extends langium.AstNode {
403
332
  triggers: TriggerDefinition;
404
333
  }
405
334
 
406
- export const BeforeTriggerDefinition = 'BeforeTriggerDefinition';
335
+ export const BeforeTriggerDefinition = {
336
+ $type: 'BeforeTriggerDefinition',
337
+ triggers: 'triggers'
338
+ } as const;
407
339
 
408
340
  export function isBeforeTriggerDefinition(item: unknown): item is BeforeTriggerDefinition {
409
- return reflection.isInstance(item, BeforeTriggerDefinition);
341
+ return reflection.isInstance(item, BeforeTriggerDefinition.$type);
410
342
  }
411
343
 
412
344
  export interface BinExpr extends langium.AstNode {
@@ -417,10 +349,21 @@ export interface BinExpr extends langium.AstNode {
417
349
  op: '!=' | '*' | '+' | '-' | '/' | '<' | '<=' | '<>' | '==' | '>' | '>=' | 'and' | 'in' | 'like' | 'or';
418
350
  }
419
351
 
420
- export const BinExpr = 'BinExpr';
352
+ export const BinExpr = {
353
+ $type: 'BinExpr',
354
+ e1: 'e1',
355
+ e2: 'e2',
356
+ op: 'op'
357
+ } as const;
421
358
 
422
359
  export function isBinExpr(item: unknown): item is BinExpr {
423
- return reflection.isInstance(item, BinExpr);
360
+ return reflection.isInstance(item, BinExpr.$type);
361
+ }
362
+
363
+ export type Boolean = 'false' | 'true';
364
+
365
+ export function isBoolean(item: unknown): item is Boolean {
366
+ return item === 'true' || item === 'false';
424
367
  }
425
368
 
426
369
  export interface CaseEntry extends langium.AstNode {
@@ -430,10 +373,14 @@ export interface CaseEntry extends langium.AstNode {
430
373
  statements: Array<Statement>;
431
374
  }
432
375
 
433
- export const CaseEntry = 'CaseEntry';
376
+ export const CaseEntry = {
377
+ $type: 'CaseEntry',
378
+ cond: 'cond',
379
+ statements: 'statements'
380
+ } as const;
434
381
 
435
382
  export function isCaseEntry(item: unknown): item is CaseEntry {
436
- return reflection.isInstance(item, CaseEntry);
383
+ return reflection.isInstance(item, CaseEntry.$type);
437
384
  }
438
385
 
439
386
  export interface CatchSpec extends langium.AstNode {
@@ -442,10 +389,13 @@ export interface CatchSpec extends langium.AstNode {
442
389
  handlers: Array<Handler>;
443
390
  }
444
391
 
445
- export const CatchSpec = 'CatchSpec';
392
+ export const CatchSpec = {
393
+ $type: 'CatchSpec',
394
+ handlers: 'handlers'
395
+ } as const;
446
396
 
447
397
  export function isCatchSpec(item: unknown): item is CatchSpec {
448
- return reflection.isInstance(item, CatchSpec);
398
+ return reflection.isInstance(item, CatchSpec.$type);
449
399
  }
450
400
 
451
401
  export interface CompositeUniqueDefinition extends langium.AstNode {
@@ -454,10 +404,13 @@ export interface CompositeUniqueDefinition extends langium.AstNode {
454
404
  attrs: Array<string>;
455
405
  }
456
406
 
457
- export const CompositeUniqueDefinition = 'CompositeUniqueDefinition';
407
+ export const CompositeUniqueDefinition = {
408
+ $type: 'CompositeUniqueDefinition',
409
+ attrs: 'attrs'
410
+ } as const;
458
411
 
459
412
  export function isCompositeUniqueDefinition(item: unknown): item is CompositeUniqueDefinition {
460
- return reflection.isInstance(item, CompositeUniqueDefinition);
413
+ return reflection.isInstance(item, CompositeUniqueDefinition.$type);
461
414
  }
462
415
 
463
416
  export interface ConditionalFlowStep extends langium.AstNode {
@@ -467,10 +420,14 @@ export interface ConditionalFlowStep extends langium.AstNode {
467
420
  next: FlowStepSpec;
468
421
  }
469
422
 
470
- export const ConditionalFlowStep = 'ConditionalFlowStep';
423
+ export const ConditionalFlowStep = {
424
+ $type: 'ConditionalFlowStep',
425
+ expr: 'expr',
426
+ next: 'next'
427
+ } as const;
471
428
 
472
429
  export function isConditionalFlowStep(item: unknown): item is ConditionalFlowStep {
473
- return reflection.isInstance(item, ConditionalFlowStep);
430
+ return reflection.isInstance(item, ConditionalFlowStep.$type);
474
431
  }
475
432
 
476
433
  export interface CrudMap extends langium.AstNode {
@@ -489,10 +446,23 @@ export interface CrudMap extends langium.AstNode {
489
446
  where?: WhereSpec;
490
447
  }
491
448
 
492
- export const CrudMap = 'CrudMap';
449
+ export const CrudMap = {
450
+ $type: 'CrudMap',
451
+ body: 'body',
452
+ distinct: 'distinct',
453
+ groupByClause: 'groupByClause',
454
+ into: 'into',
455
+ joins: 'joins',
456
+ name: 'name',
457
+ orderByClause: 'orderByClause',
458
+ relationships: 'relationships',
459
+ source: 'source',
460
+ upsert: 'upsert',
461
+ where: 'where'
462
+ } as const;
493
463
 
494
464
  export function isCrudMap(item: unknown): item is CrudMap {
495
- return reflection.isInstance(item, CrudMap);
465
+ return reflection.isInstance(item, CrudMap.$type);
496
466
  }
497
467
 
498
468
  export interface CrudMapBody extends langium.AstNode {
@@ -502,10 +472,20 @@ export interface CrudMapBody extends langium.AstNode {
502
472
  properties: Array<PropertyDefinition>;
503
473
  }
504
474
 
505
- export const CrudMapBody = 'CrudMapBody';
475
+ export const CrudMapBody = {
476
+ $type: 'CrudMapBody',
477
+ attributes: 'attributes',
478
+ properties: 'properties'
479
+ } as const;
506
480
 
507
481
  export function isCrudMapBody(item: unknown): item is CrudMapBody {
508
- return reflection.isInstance(item, CrudMapBody);
482
+ return reflection.isInstance(item, CrudMapBody.$type);
483
+ }
484
+
485
+ export type Decimal = number;
486
+
487
+ export function isDecimal(item: unknown): item is Decimal {
488
+ return typeof item === 'number';
509
489
  }
510
490
 
511
491
  export interface DecisionDefBody extends langium.AstNode {
@@ -514,10 +494,13 @@ export interface DecisionDefBody extends langium.AstNode {
514
494
  cases: Array<CaseEntry>;
515
495
  }
516
496
 
517
- export const DecisionDefBody = 'DecisionDefBody';
497
+ export const DecisionDefBody = {
498
+ $type: 'DecisionDefBody',
499
+ cases: 'cases'
500
+ } as const;
518
501
 
519
502
  export function isDecisionDefBody(item: unknown): item is DecisionDefBody {
520
- return reflection.isInstance(item, DecisionDefBody);
503
+ return reflection.isInstance(item, DecisionDefBody.$type);
521
504
  }
522
505
 
523
506
  export interface DecisionDefinition extends langium.AstNode {
@@ -527,10 +510,24 @@ export interface DecisionDefinition extends langium.AstNode {
527
510
  name: GenericName;
528
511
  }
529
512
 
530
- export const DecisionDefinition = 'DecisionDefinition';
513
+ export const DecisionDefinition = {
514
+ $type: 'DecisionDefinition',
515
+ body: 'body',
516
+ name: 'name'
517
+ } as const;
531
518
 
532
519
  export function isDecisionDefinition(item: unknown): item is DecisionDefinition {
533
- return reflection.isInstance(item, DecisionDefinition);
520
+ return reflection.isInstance(item, DecisionDefinition.$type);
521
+ }
522
+
523
+ export type Definition = AgentDefinition | DecisionDefinition | DirectiveDefinition | FlowDefinition | GlossaryEntryDefinition | PublicAgentDefinition | PublicWorkflowDefinition | RelationshipDefinition | ResolverDefinition | RetryDefinition | ScenarioDefinition | SchemaDefinition | StandaloneStatement | WorkflowDefinition;
524
+
525
+ export const Definition = {
526
+ $type: 'Definition'
527
+ } as const;
528
+
529
+ export function isDefinition(item: unknown): item is Definition {
530
+ return reflection.isInstance(item, Definition.$type);
534
531
  }
535
532
 
536
533
  export interface Delete extends langium.AstNode {
@@ -539,10 +536,13 @@ export interface Delete extends langium.AstNode {
539
536
  pattern: Pattern;
540
537
  }
541
538
 
542
- export const Delete = 'Delete';
539
+ export const Delete = {
540
+ $type: 'Delete',
541
+ pattern: 'pattern'
542
+ } as const;
543
543
 
544
544
  export function isDelete(item: unknown): item is Delete {
545
- return reflection.isInstance(item, Delete);
545
+ return reflection.isInstance(item, Delete.$type);
546
546
  }
547
547
 
548
548
  export interface DirectiveDefinition extends langium.AstNode {
@@ -553,10 +553,15 @@ export interface DirectiveDefinition extends langium.AstNode {
553
553
  name: Ref;
554
554
  }
555
555
 
556
- export const DirectiveDefinition = 'DirectiveDefinition';
556
+ export const DirectiveDefinition = {
557
+ $type: 'DirectiveDefinition',
558
+ body: 'body',
559
+ dir: 'dir',
560
+ name: 'name'
561
+ } as const;
557
562
 
558
563
  export function isDirectiveDefinition(item: unknown): item is DirectiveDefinition {
559
- return reflection.isInstance(item, DirectiveDefinition);
564
+ return reflection.isInstance(item, DirectiveDefinition.$type);
560
565
  }
561
566
 
562
567
  export interface Else extends langium.AstNode {
@@ -565,10 +570,13 @@ export interface Else extends langium.AstNode {
565
570
  statements: Array<Statement>;
566
571
  }
567
572
 
568
- export const Else = 'Else';
573
+ export const Else = {
574
+ $type: 'Else',
575
+ statements: 'statements'
576
+ } as const;
569
577
 
570
578
  export function isElse(item: unknown): item is Else {
571
- return reflection.isInstance(item, Else);
579
+ return reflection.isInstance(item, Else.$type);
572
580
  }
573
581
 
574
582
  export interface EntityActionsDefinitions extends langium.AstNode {
@@ -577,10 +585,13 @@ export interface EntityActionsDefinitions extends langium.AstNode {
577
585
  entries: Array<ActionEntry>;
578
586
  }
579
587
 
580
- export const EntityActionsDefinitions = 'EntityActionsDefinitions';
588
+ export const EntityActionsDefinitions = {
589
+ $type: 'EntityActionsDefinitions',
590
+ entries: 'entries'
591
+ } as const;
581
592
 
582
593
  export function isEntityActionsDefinitions(item: unknown): item is EntityActionsDefinitions {
583
- return reflection.isInstance(item, EntityActionsDefinitions);
594
+ return reflection.isInstance(item, EntityActionsDefinitions.$type);
584
595
  }
585
596
 
586
597
  export interface EntityDefinition extends langium.AstNode {
@@ -591,10 +602,15 @@ export interface EntityDefinition extends langium.AstNode {
591
602
  schema: RecordSchemaDefinition;
592
603
  }
593
604
 
594
- export const EntityDefinition = 'EntityDefinition';
605
+ export const EntityDefinition = {
606
+ $type: 'EntityDefinition',
607
+ extends: 'extends',
608
+ name: 'name',
609
+ schema: 'schema'
610
+ } as const;
595
611
 
596
612
  export function isEntityDefinition(item: unknown): item is EntityDefinition {
597
- return reflection.isInstance(item, EntityDefinition);
613
+ return reflection.isInstance(item, EntityDefinition.$type);
598
614
  }
599
615
 
600
616
  export interface EnumSpec extends langium.AstNode {
@@ -604,10 +620,14 @@ export interface EnumSpec extends langium.AstNode {
604
620
  values: Array<STRING>;
605
621
  }
606
622
 
607
- export const EnumSpec = 'EnumSpec';
623
+ export const EnumSpec = {
624
+ $type: 'EnumSpec',
625
+ type: 'type',
626
+ values: 'values'
627
+ } as const;
608
628
 
609
629
  export function isEnumSpec(item: unknown): item is EnumSpec {
610
- return reflection.isInstance(item, EnumSpec);
630
+ return reflection.isInstance(item, EnumSpec.$type);
611
631
  }
612
632
 
613
633
  export interface EventDefinition extends langium.AstNode {
@@ -618,10 +638,25 @@ export interface EventDefinition extends langium.AstNode {
618
638
  schema: RecordSchemaDefinition;
619
639
  }
620
640
 
621
- export const EventDefinition = 'EventDefinition';
641
+ export const EventDefinition = {
642
+ $type: 'EventDefinition',
643
+ extends: 'extends',
644
+ name: 'name',
645
+ schema: 'schema'
646
+ } as const;
622
647
 
623
648
  export function isEventDefinition(item: unknown): item is EventDefinition {
624
- return reflection.isInstance(item, EventDefinition);
649
+ return reflection.isInstance(item, EventDefinition.$type);
650
+ }
651
+
652
+ export type Expr = BinExpr | PrimExpr;
653
+
654
+ export const Expr = {
655
+ $type: 'Expr'
656
+ } as const;
657
+
658
+ export function isExpr(item: unknown): item is Expr {
659
+ return reflection.isInstance(item, Expr.$type);
625
660
  }
626
661
 
627
662
  export interface ExtendsClause extends langium.AstNode {
@@ -630,10 +665,13 @@ export interface ExtendsClause extends langium.AstNode {
630
665
  parentName: QualifiedName;
631
666
  }
632
667
 
633
- export const ExtendsClause = 'ExtendsClause';
668
+ export const ExtendsClause = {
669
+ $type: 'ExtendsClause',
670
+ parentName: 'parentName'
671
+ } as const;
634
672
 
635
673
  export function isExtendsClause(item: unknown): item is ExtendsClause {
636
- return reflection.isInstance(item, ExtendsClause);
674
+ return reflection.isInstance(item, ExtendsClause.$type);
637
675
  }
638
676
 
639
677
  export interface FlowDefBody extends langium.AstNode {
@@ -642,10 +680,13 @@ export interface FlowDefBody extends langium.AstNode {
642
680
  entries: Array<FlowEntry>;
643
681
  }
644
682
 
645
- export const FlowDefBody = 'FlowDefBody';
683
+ export const FlowDefBody = {
684
+ $type: 'FlowDefBody',
685
+ entries: 'entries'
686
+ } as const;
646
687
 
647
688
  export function isFlowDefBody(item: unknown): item is FlowDefBody {
648
- return reflection.isInstance(item, FlowDefBody);
689
+ return reflection.isInstance(item, FlowDefBody.$type);
649
690
  }
650
691
 
651
692
  export interface FlowDefinition extends langium.AstNode {
@@ -655,10 +696,14 @@ export interface FlowDefinition extends langium.AstNode {
655
696
  name: GenericName;
656
697
  }
657
698
 
658
- export const FlowDefinition = 'FlowDefinition';
699
+ export const FlowDefinition = {
700
+ $type: 'FlowDefinition',
701
+ body: 'body',
702
+ name: 'name'
703
+ } as const;
659
704
 
660
705
  export function isFlowDefinition(item: unknown): item is FlowDefinition {
661
- return reflection.isInstance(item, FlowDefinition);
706
+ return reflection.isInstance(item, FlowDefinition.$type);
662
707
  }
663
708
 
664
709
  export interface FlowEntry extends langium.AstNode {
@@ -669,10 +714,25 @@ export interface FlowEntry extends langium.AstNode {
669
714
  root: QueryId;
670
715
  }
671
716
 
672
- export const FlowEntry = 'FlowEntry';
717
+ export const FlowEntry = {
718
+ $type: 'FlowEntry',
719
+ cond: 'cond',
720
+ next: 'next',
721
+ root: 'root'
722
+ } as const;
673
723
 
674
724
  export function isFlowEntry(item: unknown): item is FlowEntry {
675
- return reflection.isInstance(item, FlowEntry);
725
+ return reflection.isInstance(item, FlowEntry.$type);
726
+ }
727
+
728
+ export type FlowStepSpec = Statement;
729
+
730
+ export const FlowStepSpec = {
731
+ $type: 'FlowStepSpec'
732
+ } as const;
733
+
734
+ export function isFlowStepSpec(item: unknown): item is FlowStepSpec {
735
+ return reflection.isInstance(item, FlowStepSpec.$type);
676
736
  }
677
737
 
678
738
  export interface FnCall extends langium.AstNode {
@@ -682,10 +742,14 @@ export interface FnCall extends langium.AstNode {
682
742
  name: Ref | string;
683
743
  }
684
744
 
685
- export const FnCall = 'FnCall';
745
+ export const FnCall = {
746
+ $type: 'FnCall',
747
+ args: 'args',
748
+ name: 'name'
749
+ } as const;
686
750
 
687
751
  export function isFnCall(item: unknown): item is FnCall {
688
- return reflection.isInstance(item, FnCall);
752
+ return reflection.isInstance(item, FnCall.$type);
689
753
  }
690
754
 
691
755
  export interface ForEach extends langium.AstNode {
@@ -696,10 +760,15 @@ export interface ForEach extends langium.AstNode {
696
760
  var: string;
697
761
  }
698
762
 
699
- export const ForEach = 'ForEach';
763
+ export const ForEach = {
764
+ $type: 'ForEach',
765
+ src: 'src',
766
+ statements: 'statements',
767
+ var: 'var'
768
+ } as const;
700
769
 
701
770
  export function isForEach(item: unknown): item is ForEach {
702
- return reflection.isInstance(item, ForEach);
771
+ return reflection.isInstance(item, ForEach.$type);
703
772
  }
704
773
 
705
774
  export interface FullTextSearch extends langium.AstNode {
@@ -710,10 +779,15 @@ export interface FullTextSearch extends langium.AstNode {
710
779
  query: Literal;
711
780
  }
712
781
 
713
- export const FullTextSearch = 'FullTextSearch';
782
+ export const FullTextSearch = {
783
+ $type: 'FullTextSearch',
784
+ name: 'name',
785
+ options: 'options',
786
+ query: 'query'
787
+ } as const;
714
788
 
715
789
  export function isFullTextSearch(item: unknown): item is FullTextSearch {
716
- return reflection.isInstance(item, FullTextSearch);
790
+ return reflection.isInstance(item, FullTextSearch.$type);
717
791
  }
718
792
 
719
793
  export interface GenericDefBody extends langium.AstNode {
@@ -722,10 +796,19 @@ export interface GenericDefBody extends langium.AstNode {
722
796
  attributes: Array<GenericPropertyDef>;
723
797
  }
724
798
 
725
- export const GenericDefBody = 'GenericDefBody';
799
+ export const GenericDefBody = {
800
+ $type: 'GenericDefBody',
801
+ attributes: 'attributes'
802
+ } as const;
726
803
 
727
804
  export function isGenericDefBody(item: unknown): item is GenericDefBody {
728
- return reflection.isInstance(item, GenericDefBody);
805
+ return reflection.isInstance(item, GenericDefBody.$type);
806
+ }
807
+
808
+ export type GenericName = STRING | string;
809
+
810
+ export function isGenericName(item: unknown): item is GenericName {
811
+ return isSTRING(item) || (typeof item === 'string' && (/(?:[_a-zA-Z][\w_]*)(\/(?:[_a-zA-Z][\w_]*))?/.test(item)));
729
812
  }
730
813
 
731
814
  export interface GenericPropertyDef extends langium.AstNode {
@@ -735,10 +818,14 @@ export interface GenericPropertyDef extends langium.AstNode {
735
818
  value: Literal;
736
819
  }
737
820
 
738
- export const GenericPropertyDef = 'GenericPropertyDef';
821
+ export const GenericPropertyDef = {
822
+ $type: 'GenericPropertyDef',
823
+ name: 'name',
824
+ value: 'value'
825
+ } as const;
739
826
 
740
827
  export function isGenericPropertyDef(item: unknown): item is GenericPropertyDef {
741
- return reflection.isInstance(item, GenericPropertyDef);
828
+ return reflection.isInstance(item, GenericPropertyDef.$type);
742
829
  }
743
830
 
744
831
  export interface GlossaryEntryDefinition extends langium.AstNode {
@@ -749,10 +836,15 @@ export interface GlossaryEntryDefinition extends langium.AstNode {
749
836
  name: Ref;
750
837
  }
751
838
 
752
- export const GlossaryEntryDefinition = 'GlossaryEntryDefinition';
839
+ export const GlossaryEntryDefinition = {
840
+ $type: 'GlossaryEntryDefinition',
841
+ body: 'body',
842
+ glos: 'glos',
843
+ name: 'name'
844
+ } as const;
753
845
 
754
846
  export function isGlossaryEntryDefinition(item: unknown): item is GlossaryEntryDefinition {
755
- return reflection.isInstance(item, GlossaryEntryDefinition);
847
+ return reflection.isInstance(item, GlossaryEntryDefinition.$type);
756
848
  }
757
849
 
758
850
  export interface Group extends langium.AstNode {
@@ -761,10 +853,13 @@ export interface Group extends langium.AstNode {
761
853
  ge: Expr;
762
854
  }
763
855
 
764
- export const Group = 'Group';
856
+ export const Group = {
857
+ $type: 'Group',
858
+ ge: 'ge'
859
+ } as const;
765
860
 
766
861
  export function isGroup(item: unknown): item is Group {
767
- return reflection.isInstance(item, Group);
862
+ return reflection.isInstance(item, Group.$type);
768
863
  }
769
864
 
770
865
  export interface GroupByClause extends langium.AstNode {
@@ -773,10 +868,13 @@ export interface GroupByClause extends langium.AstNode {
773
868
  colNames: Array<QualifiedName>;
774
869
  }
775
870
 
776
- export const GroupByClause = 'GroupByClause';
871
+ export const GroupByClause = {
872
+ $type: 'GroupByClause',
873
+ colNames: 'colNames'
874
+ } as const;
777
875
 
778
876
  export function isGroupByClause(item: unknown): item is GroupByClause {
779
- return reflection.isInstance(item, GroupByClause);
877
+ return reflection.isInstance(item, GroupByClause.$type);
780
878
  }
781
879
 
782
880
  export interface Handler extends langium.AstNode {
@@ -786,10 +884,14 @@ export interface Handler extends langium.AstNode {
786
884
  stmt: Statement;
787
885
  }
788
886
 
789
- export const Handler = 'Handler';
887
+ export const Handler = {
888
+ $type: 'Handler',
889
+ except: 'except',
890
+ stmt: 'stmt'
891
+ } as const;
790
892
 
791
893
  export function isHandler(item: unknown): item is Handler {
792
- return reflection.isInstance(item, Handler);
894
+ return reflection.isInstance(item, Handler.$type);
793
895
  }
794
896
 
795
897
  export interface If extends langium.AstNode {
@@ -800,10 +902,15 @@ export interface If extends langium.AstNode {
800
902
  statements: Array<Statement>;
801
903
  }
802
904
 
803
- export const If = 'If';
905
+ export const If = {
906
+ $type: 'If',
907
+ cond: 'cond',
908
+ else: 'else',
909
+ statements: 'statements'
910
+ } as const;
804
911
 
805
912
  export function isIf(item: unknown): item is If {
806
- return reflection.isInstance(item, If);
913
+ return reflection.isInstance(item, If.$type);
807
914
  }
808
915
 
809
916
  export interface IfWithAlias extends langium.AstNode {
@@ -812,10 +919,13 @@ export interface IfWithAlias extends langium.AstNode {
812
919
  if: If;
813
920
  }
814
921
 
815
- export const IfWithAlias = 'IfWithAlias';
922
+ export const IfWithAlias = {
923
+ $type: 'IfWithAlias',
924
+ if: 'if'
925
+ } as const;
816
926
 
817
927
  export function isIfWithAlias(item: unknown): item is IfWithAlias {
818
- return reflection.isInstance(item, IfWithAlias);
928
+ return reflection.isInstance(item, IfWithAlias.$type);
819
929
  }
820
930
 
821
931
  export interface Import extends langium.AstNode {
@@ -825,10 +935,14 @@ export interface Import extends langium.AstNode {
825
935
  path: STRING;
826
936
  }
827
937
 
828
- export const Import = 'Import';
938
+ export const Import = {
939
+ $type: 'Import',
940
+ name: 'name',
941
+ path: 'path'
942
+ } as const;
829
943
 
830
944
  export function isImport(item: unknown): item is Import {
831
- return reflection.isInstance(item, Import);
945
+ return reflection.isInstance(item, Import.$type);
832
946
  }
833
947
 
834
948
  export interface JoinSpec extends langium.AstNode {
@@ -841,10 +955,23 @@ export interface JoinSpec extends langium.AstNode {
841
955
  type: JoinType;
842
956
  }
843
957
 
844
- export const JoinSpec = 'JoinSpec';
958
+ export const JoinSpec = {
959
+ $type: 'JoinSpec',
960
+ lhs: 'lhs',
961
+ name: 'name',
962
+ op: 'op',
963
+ rhs: 'rhs',
964
+ type: 'type'
965
+ } as const;
845
966
 
846
967
  export function isJoinSpec(item: unknown): item is JoinSpec {
847
- return reflection.isInstance(item, JoinSpec);
968
+ return reflection.isInstance(item, JoinSpec.$type);
969
+ }
970
+
971
+ export type JoinType = '@full_join' | '@inner_join' | '@join' | '@left_join' | '@right_join';
972
+
973
+ export function isJoinType(item: unknown): item is JoinType {
974
+ return item === '@join' || item === '@inner_join' || item === '@left_join' || item === '@right_join' || item === '@full_join';
848
975
  }
849
976
 
850
977
  export interface KvPair extends langium.AstNode {
@@ -854,10 +981,14 @@ export interface KvPair extends langium.AstNode {
854
981
  value: Literal;
855
982
  }
856
983
 
857
- export const KvPair = 'KvPair';
984
+ export const KvPair = {
985
+ $type: 'KvPair',
986
+ key: 'key',
987
+ value: 'value'
988
+ } as const;
858
989
 
859
990
  export function isKvPair(item: unknown): item is KvPair {
860
- return reflection.isInstance(item, KvPair);
991
+ return reflection.isInstance(item, KvPair.$type);
861
992
  }
862
993
 
863
994
  export interface KvPairs extends langium.AstNode {
@@ -866,10 +997,13 @@ export interface KvPairs extends langium.AstNode {
866
997
  pairs: Array<KvPair>;
867
998
  }
868
999
 
869
- export const KvPairs = 'KvPairs';
1000
+ export const KvPairs = {
1001
+ $type: 'KvPairs',
1002
+ pairs: 'pairs'
1003
+ } as const;
870
1004
 
871
1005
  export function isKvPairs(item: unknown): item is KvPairs {
872
- return reflection.isInstance(item, KvPairs);
1006
+ return reflection.isInstance(item, KvPairs.$type);
873
1007
  }
874
1008
 
875
1009
  export interface Literal extends langium.AstNode {
@@ -886,10 +1020,21 @@ export interface Literal extends langium.AstNode {
886
1020
  str?: STRING;
887
1021
  }
888
1022
 
889
- export const Literal = 'Literal';
1023
+ export const Literal = {
1024
+ $type: 'Literal',
1025
+ array: 'array',
1026
+ asyncFnCall: 'asyncFnCall',
1027
+ bool: 'bool',
1028
+ fnCall: 'fnCall',
1029
+ id: 'id',
1030
+ map: 'map',
1031
+ num: 'num',
1032
+ ref: 'ref',
1033
+ str: 'str'
1034
+ } as const;
890
1035
 
891
1036
  export function isLiteral(item: unknown): item is Literal {
892
- return reflection.isInstance(item, Literal);
1037
+ return reflection.isInstance(item, Literal.$type);
893
1038
  }
894
1039
 
895
1040
  export interface MapEntry extends langium.AstNode {
@@ -899,10 +1044,14 @@ export interface MapEntry extends langium.AstNode {
899
1044
  value: Expr;
900
1045
  }
901
1046
 
902
- export const MapEntry = 'MapEntry';
1047
+ export const MapEntry = {
1048
+ $type: 'MapEntry',
1049
+ key: 'key',
1050
+ value: 'value'
1051
+ } as const;
903
1052
 
904
1053
  export function isMapEntry(item: unknown): item is MapEntry {
905
- return reflection.isInstance(item, MapEntry);
1054
+ return reflection.isInstance(item, MapEntry.$type);
906
1055
  }
907
1056
 
908
1057
  export interface MapKey extends langium.AstNode {
@@ -913,10 +1062,15 @@ export interface MapKey extends langium.AstNode {
913
1062
  str?: STRING;
914
1063
  }
915
1064
 
916
- export const MapKey = 'MapKey';
1065
+ export const MapKey = {
1066
+ $type: 'MapKey',
1067
+ bool: 'bool',
1068
+ num: 'num',
1069
+ str: 'str'
1070
+ } as const;
917
1071
 
918
1072
  export function isMapKey(item: unknown): item is MapKey {
919
- return reflection.isInstance(item, MapKey);
1073
+ return reflection.isInstance(item, MapKey.$type);
920
1074
  }
921
1075
 
922
1076
  export interface MapLiteral extends langium.AstNode {
@@ -925,10 +1079,13 @@ export interface MapLiteral extends langium.AstNode {
925
1079
  entries: Array<MapEntry>;
926
1080
  }
927
1081
 
928
- export const MapLiteral = 'MapLiteral';
1082
+ export const MapLiteral = {
1083
+ $type: 'MapLiteral',
1084
+ entries: 'entries'
1085
+ } as const;
929
1086
 
930
1087
  export function isMapLiteral(item: unknown): item is MapLiteral {
931
- return reflection.isInstance(item, MapLiteral);
1088
+ return reflection.isInstance(item, MapLiteral.$type);
932
1089
  }
933
1090
 
934
1091
  export interface MetaDefinition extends langium.AstNode {
@@ -937,10 +1094,13 @@ export interface MetaDefinition extends langium.AstNode {
937
1094
  spec: MapLiteral;
938
1095
  }
939
1096
 
940
- export const MetaDefinition = 'MetaDefinition';
1097
+ export const MetaDefinition = {
1098
+ $type: 'MetaDefinition',
1099
+ spec: 'spec'
1100
+ } as const;
941
1101
 
942
1102
  export function isMetaDefinition(item: unknown): item is MetaDefinition {
943
- return reflection.isInstance(item, MetaDefinition);
1103
+ return reflection.isInstance(item, MetaDefinition.$type);
944
1104
  }
945
1105
 
946
1106
  export interface ModuleDefinition extends langium.AstNode {
@@ -950,10 +1110,15 @@ export interface ModuleDefinition extends langium.AstNode {
950
1110
  name: QualifiedName;
951
1111
  }
952
1112
 
953
- export const ModuleDefinition = 'ModuleDefinition';
1113
+ export const ModuleDefinition = {
1114
+ $type: 'ModuleDefinition',
1115
+ defs: 'defs',
1116
+ imports: 'imports',
1117
+ name: 'name'
1118
+ } as const;
954
1119
 
955
1120
  export function isModuleDefinition(item: unknown): item is ModuleDefinition {
956
- return reflection.isInstance(item, ModuleDefinition);
1121
+ return reflection.isInstance(item, ModuleDefinition.$type);
957
1122
  }
958
1123
 
959
1124
  export interface NegExpr extends langium.AstNode {
@@ -962,10 +1127,13 @@ export interface NegExpr extends langium.AstNode {
962
1127
  ne: Expr;
963
1128
  }
964
1129
 
965
- export const NegExpr = 'NegExpr';
1130
+ export const NegExpr = {
1131
+ $type: 'NegExpr',
1132
+ ne: 'ne'
1133
+ } as const;
966
1134
 
967
1135
  export function isNegExpr(item: unknown): item is NegExpr {
968
- return reflection.isInstance(item, NegExpr);
1136
+ return reflection.isInstance(item, NegExpr.$type);
969
1137
  }
970
1138
 
971
1139
  export interface NodeDefinition extends langium.AstNode {
@@ -975,10 +1143,14 @@ export interface NodeDefinition extends langium.AstNode {
975
1143
  name: QualifiedName;
976
1144
  }
977
1145
 
978
- export const NodeDefinition = 'NodeDefinition';
1146
+ export const NodeDefinition = {
1147
+ $type: 'NodeDefinition',
1148
+ alias: 'alias',
1149
+ name: 'name'
1150
+ } as const;
979
1151
 
980
1152
  export function isNodeDefinition(item: unknown): item is NodeDefinition {
981
- return reflection.isInstance(item, NodeDefinition);
1153
+ return reflection.isInstance(item, NodeDefinition.$type);
982
1154
  }
983
1155
 
984
1156
  export interface NotExpr extends langium.AstNode {
@@ -987,10 +1159,13 @@ export interface NotExpr extends langium.AstNode {
987
1159
  ne: Expr;
988
1160
  }
989
1161
 
990
- export const NotExpr = 'NotExpr';
1162
+ export const NotExpr = {
1163
+ $type: 'NotExpr',
1164
+ ne: 'ne'
1165
+ } as const;
991
1166
 
992
1167
  export function isNotExpr(item: unknown): item is NotExpr {
993
- return reflection.isInstance(item, NotExpr);
1168
+ return reflection.isInstance(item, NotExpr.$type);
994
1169
  }
995
1170
 
996
1171
  export interface OneOfSpec extends langium.AstNode {
@@ -999,10 +1174,13 @@ export interface OneOfSpec extends langium.AstNode {
999
1174
  ref: Ref;
1000
1175
  }
1001
1176
 
1002
- export const OneOfSpec = 'OneOfSpec';
1177
+ export const OneOfSpec = {
1178
+ $type: 'OneOfSpec',
1179
+ ref: 'ref'
1180
+ } as const;
1003
1181
 
1004
1182
  export function isOneOfSpec(item: unknown): item is OneOfSpec {
1005
- return reflection.isInstance(item, OneOfSpec);
1183
+ return reflection.isInstance(item, OneOfSpec.$type);
1006
1184
  }
1007
1185
 
1008
1186
  export interface OrderByClause extends langium.AstNode {
@@ -1012,10 +1190,14 @@ export interface OrderByClause extends langium.AstNode {
1012
1190
  order?: '@asc' | '@desc';
1013
1191
  }
1014
1192
 
1015
- export const OrderByClause = 'OrderByClause';
1193
+ export const OrderByClause = {
1194
+ $type: 'OrderByClause',
1195
+ colNames: 'colNames',
1196
+ order: 'order'
1197
+ } as const;
1016
1198
 
1017
1199
  export function isOrderByClause(item: unknown): item is OrderByClause {
1018
- return reflection.isInstance(item, OrderByClause);
1200
+ return reflection.isInstance(item, OrderByClause.$type);
1019
1201
  }
1020
1202
 
1021
1203
  export interface Pattern extends langium.AstNode {
@@ -1033,10 +1215,22 @@ export interface Pattern extends langium.AstNode {
1033
1215
  throwError?: ThrowError;
1034
1216
  }
1035
1217
 
1036
- export const Pattern = 'Pattern';
1218
+ export const Pattern = {
1219
+ $type: 'Pattern',
1220
+ crudMap: 'crudMap',
1221
+ delete: 'delete',
1222
+ expr: 'expr',
1223
+ forEach: 'forEach',
1224
+ fullTextSearch: 'fullTextSearch',
1225
+ if: 'if',
1226
+ ifWithAlias: 'ifWithAlias',
1227
+ purge: 'purge',
1228
+ return: 'return',
1229
+ throwError: 'throwError'
1230
+ } as const;
1037
1231
 
1038
1232
  export function isPattern(item: unknown): item is Pattern {
1039
- return reflection.isInstance(item, Pattern);
1233
+ return reflection.isInstance(item, Pattern.$type);
1040
1234
  }
1041
1235
 
1042
1236
  export interface PrePostTriggerDefinition extends langium.AstNode {
@@ -1046,10 +1240,24 @@ export interface PrePostTriggerDefinition extends langium.AstNode {
1046
1240
  before?: BeforeTriggerDefinition;
1047
1241
  }
1048
1242
 
1049
- export const PrePostTriggerDefinition = 'PrePostTriggerDefinition';
1243
+ export const PrePostTriggerDefinition = {
1244
+ $type: 'PrePostTriggerDefinition',
1245
+ after: 'after',
1246
+ before: 'before'
1247
+ } as const;
1050
1248
 
1051
1249
  export function isPrePostTriggerDefinition(item: unknown): item is PrePostTriggerDefinition {
1052
- return reflection.isInstance(item, PrePostTriggerDefinition);
1250
+ return reflection.isInstance(item, PrePostTriggerDefinition.$type);
1251
+ }
1252
+
1253
+ export type PrimExpr = Group | Literal | NegExpr | NotExpr;
1254
+
1255
+ export const PrimExpr = {
1256
+ $type: 'PrimExpr'
1257
+ } as const;
1258
+
1259
+ export function isPrimExpr(item: unknown): item is PrimExpr {
1260
+ return reflection.isInstance(item, PrimExpr.$type);
1053
1261
  }
1054
1262
 
1055
1263
  export interface PropertyDefinition extends langium.AstNode {
@@ -1059,10 +1267,14 @@ export interface PropertyDefinition extends langium.AstNode {
1059
1267
  value?: KvPairs;
1060
1268
  }
1061
1269
 
1062
- export const PropertyDefinition = 'PropertyDefinition';
1270
+ export const PropertyDefinition = {
1271
+ $type: 'PropertyDefinition',
1272
+ name: 'name',
1273
+ value: 'value'
1274
+ } as const;
1063
1275
 
1064
1276
  export function isPropertyDefinition(item: unknown): item is PropertyDefinition {
1065
- return reflection.isInstance(item, PropertyDefinition);
1277
+ return reflection.isInstance(item, PropertyDefinition.$type);
1066
1278
  }
1067
1279
 
1068
1280
  export interface PublicAgentDefinition extends langium.AstNode {
@@ -1071,10 +1283,13 @@ export interface PublicAgentDefinition extends langium.AstNode {
1071
1283
  def: AgentDefinition;
1072
1284
  }
1073
1285
 
1074
- export const PublicAgentDefinition = 'PublicAgentDefinition';
1286
+ export const PublicAgentDefinition = {
1287
+ $type: 'PublicAgentDefinition',
1288
+ def: 'def'
1289
+ } as const;
1075
1290
 
1076
1291
  export function isPublicAgentDefinition(item: unknown): item is PublicAgentDefinition {
1077
- return reflection.isInstance(item, PublicAgentDefinition);
1292
+ return reflection.isInstance(item, PublicAgentDefinition.$type);
1078
1293
  }
1079
1294
 
1080
1295
  export interface PublicEventDefinition extends langium.AstNode {
@@ -1083,10 +1298,13 @@ export interface PublicEventDefinition extends langium.AstNode {
1083
1298
  def: EventDefinition;
1084
1299
  }
1085
1300
 
1086
- export const PublicEventDefinition = 'PublicEventDefinition';
1301
+ export const PublicEventDefinition = {
1302
+ $type: 'PublicEventDefinition',
1303
+ def: 'def'
1304
+ } as const;
1087
1305
 
1088
1306
  export function isPublicEventDefinition(item: unknown): item is PublicEventDefinition {
1089
- return reflection.isInstance(item, PublicEventDefinition);
1307
+ return reflection.isInstance(item, PublicEventDefinition.$type);
1090
1308
  }
1091
1309
 
1092
1310
  export interface PublicWorkflowDefinition extends langium.AstNode {
@@ -1095,10 +1313,13 @@ export interface PublicWorkflowDefinition extends langium.AstNode {
1095
1313
  def: WorkflowDefinition;
1096
1314
  }
1097
1315
 
1098
- export const PublicWorkflowDefinition = 'PublicWorkflowDefinition';
1316
+ export const PublicWorkflowDefinition = {
1317
+ $type: 'PublicWorkflowDefinition',
1318
+ def: 'def'
1319
+ } as const;
1099
1320
 
1100
1321
  export function isPublicWorkflowDefinition(item: unknown): item is PublicWorkflowDefinition {
1101
- return reflection.isInstance(item, PublicWorkflowDefinition);
1322
+ return reflection.isInstance(item, PublicWorkflowDefinition.$type);
1102
1323
  }
1103
1324
 
1104
1325
  export interface Purge extends langium.AstNode {
@@ -1107,10 +1328,25 @@ export interface Purge extends langium.AstNode {
1107
1328
  pattern: Pattern;
1108
1329
  }
1109
1330
 
1110
- export const Purge = 'Purge';
1331
+ export const Purge = {
1332
+ $type: 'Purge',
1333
+ pattern: 'pattern'
1334
+ } as const;
1111
1335
 
1112
1336
  export function isPurge(item: unknown): item is Purge {
1113
- return reflection.isInstance(item, Purge);
1337
+ return reflection.isInstance(item, Purge.$type);
1338
+ }
1339
+
1340
+ export type QualifiedName = Ref | string;
1341
+
1342
+ export function isQualifiedName(item: unknown): item is QualifiedName {
1343
+ return isRef(item) || (typeof item === 'string' && (/(?:[_a-zA-Z][\w_]*)(\/(?:[_a-zA-Z][\w_]*))?/.test(item)));
1344
+ }
1345
+
1346
+ export type QueryId = string;
1347
+
1348
+ export function isQueryId(item: unknown): item is QueryId {
1349
+ return typeof item === 'string';
1114
1350
  }
1115
1351
 
1116
1352
  export interface RbacAllowSpec extends langium.AstNode {
@@ -1119,10 +1355,13 @@ export interface RbacAllowSpec extends langium.AstNode {
1119
1355
  oprs: Array<RbacOpr>;
1120
1356
  }
1121
1357
 
1122
- export const RbacAllowSpec = 'RbacAllowSpec';
1358
+ export const RbacAllowSpec = {
1359
+ $type: 'RbacAllowSpec',
1360
+ oprs: 'oprs'
1361
+ } as const;
1123
1362
 
1124
1363
  export function isRbacAllowSpec(item: unknown): item is RbacAllowSpec {
1125
- return reflection.isInstance(item, RbacAllowSpec);
1364
+ return reflection.isInstance(item, RbacAllowSpec.$type);
1126
1365
  }
1127
1366
 
1128
1367
  export interface RbacExpressionSpec extends langium.AstNode {
@@ -1132,10 +1371,14 @@ export interface RbacExpressionSpec extends langium.AstNode {
1132
1371
  rhs: Ref;
1133
1372
  }
1134
1373
 
1135
- export const RbacExpressionSpec = 'RbacExpressionSpec';
1374
+ export const RbacExpressionSpec = {
1375
+ $type: 'RbacExpressionSpec',
1376
+ lhs: 'lhs',
1377
+ rhs: 'rhs'
1378
+ } as const;
1136
1379
 
1137
1380
  export function isRbacExpressionSpec(item: unknown): item is RbacExpressionSpec {
1138
- return reflection.isInstance(item, RbacExpressionSpec);
1381
+ return reflection.isInstance(item, RbacExpressionSpec.$type);
1139
1382
  }
1140
1383
 
1141
1384
  export interface RbacOpr extends langium.AstNode {
@@ -1144,10 +1387,13 @@ export interface RbacOpr extends langium.AstNode {
1144
1387
  value: 'create' | 'delete' | 'read' | 'update';
1145
1388
  }
1146
1389
 
1147
- export const RbacOpr = 'RbacOpr';
1390
+ export const RbacOpr = {
1391
+ $type: 'RbacOpr',
1392
+ value: 'value'
1393
+ } as const;
1148
1394
 
1149
1395
  export function isRbacOpr(item: unknown): item is RbacOpr {
1150
- return reflection.isInstance(item, RbacOpr);
1396
+ return reflection.isInstance(item, RbacOpr.$type);
1151
1397
  }
1152
1398
 
1153
1399
  export interface RbacRolesSpec extends langium.AstNode {
@@ -1156,10 +1402,13 @@ export interface RbacRolesSpec extends langium.AstNode {
1156
1402
  roles: Array<'*' | string>;
1157
1403
  }
1158
1404
 
1159
- export const RbacRolesSpec = 'RbacRolesSpec';
1405
+ export const RbacRolesSpec = {
1406
+ $type: 'RbacRolesSpec',
1407
+ roles: 'roles'
1408
+ } as const;
1160
1409
 
1161
1410
  export function isRbacRolesSpec(item: unknown): item is RbacRolesSpec {
1162
- return reflection.isInstance(item, RbacRolesSpec);
1411
+ return reflection.isInstance(item, RbacRolesSpec.$type);
1163
1412
  }
1164
1413
 
1165
1414
  export interface RbacSpecDefinition extends langium.AstNode {
@@ -1168,10 +1417,13 @@ export interface RbacSpecDefinition extends langium.AstNode {
1168
1417
  specEntries: Array<RbacSpecEntries>;
1169
1418
  }
1170
1419
 
1171
- export const RbacSpecDefinition = 'RbacSpecDefinition';
1420
+ export const RbacSpecDefinition = {
1421
+ $type: 'RbacSpecDefinition',
1422
+ specEntries: 'specEntries'
1423
+ } as const;
1172
1424
 
1173
1425
  export function isRbacSpecDefinition(item: unknown): item is RbacSpecDefinition {
1174
- return reflection.isInstance(item, RbacSpecDefinition);
1426
+ return reflection.isInstance(item, RbacSpecDefinition.$type);
1175
1427
  }
1176
1428
 
1177
1429
  export interface RbacSpecEntries extends langium.AstNode {
@@ -1180,10 +1432,13 @@ export interface RbacSpecEntries extends langium.AstNode {
1180
1432
  entries: Array<RbacSpecEntry>;
1181
1433
  }
1182
1434
 
1183
- export const RbacSpecEntries = 'RbacSpecEntries';
1435
+ export const RbacSpecEntries = {
1436
+ $type: 'RbacSpecEntries',
1437
+ entries: 'entries'
1438
+ } as const;
1184
1439
 
1185
1440
  export function isRbacSpecEntries(item: unknown): item is RbacSpecEntries {
1186
- return reflection.isInstance(item, RbacSpecEntries);
1441
+ return reflection.isInstance(item, RbacSpecEntries.$type);
1187
1442
  }
1188
1443
 
1189
1444
  export interface RbacSpecEntry extends langium.AstNode {
@@ -1194,10 +1449,15 @@ export interface RbacSpecEntry extends langium.AstNode {
1194
1449
  role?: RbacRolesSpec;
1195
1450
  }
1196
1451
 
1197
- export const RbacSpecEntry = 'RbacSpecEntry';
1452
+ export const RbacSpecEntry = {
1453
+ $type: 'RbacSpecEntry',
1454
+ allow: 'allow',
1455
+ expr: 'expr',
1456
+ role: 'role'
1457
+ } as const;
1198
1458
 
1199
1459
  export function isRbacSpecEntry(item: unknown): item is RbacSpecEntry {
1200
- return reflection.isInstance(item, RbacSpecEntry);
1460
+ return reflection.isInstance(item, RbacSpecEntry.$type);
1201
1461
  }
1202
1462
 
1203
1463
  export interface RecordDefinition extends langium.AstNode {
@@ -1208,10 +1468,15 @@ export interface RecordDefinition extends langium.AstNode {
1208
1468
  schema: RecordSchemaDefinition;
1209
1469
  }
1210
1470
 
1211
- export const RecordDefinition = 'RecordDefinition';
1471
+ export const RecordDefinition = {
1472
+ $type: 'RecordDefinition',
1473
+ extends: 'extends',
1474
+ name: 'name',
1475
+ schema: 'schema'
1476
+ } as const;
1212
1477
 
1213
1478
  export function isRecordDefinition(item: unknown): item is RecordDefinition {
1214
- return reflection.isInstance(item, RecordDefinition);
1479
+ return reflection.isInstance(item, RecordDefinition.$type);
1215
1480
  }
1216
1481
 
1217
1482
  export interface RecordExtraDefinition extends langium.AstNode {
@@ -1224,10 +1489,17 @@ export interface RecordExtraDefinition extends langium.AstNode {
1224
1489
  uq?: CompositeUniqueDefinition;
1225
1490
  }
1226
1491
 
1227
- export const RecordExtraDefinition = 'RecordExtraDefinition';
1492
+ export const RecordExtraDefinition = {
1493
+ $type: 'RecordExtraDefinition',
1494
+ actions: 'actions',
1495
+ meta: 'meta',
1496
+ prePost: 'prePost',
1497
+ rbacSpec: 'rbacSpec',
1498
+ uq: 'uq'
1499
+ } as const;
1228
1500
 
1229
1501
  export function isRecordExtraDefinition(item: unknown): item is RecordExtraDefinition {
1230
- return reflection.isInstance(item, RecordExtraDefinition);
1502
+ return reflection.isInstance(item, RecordExtraDefinition.$type);
1231
1503
  }
1232
1504
 
1233
1505
  export interface RecordSchemaDefinition extends langium.AstNode {
@@ -1237,10 +1509,20 @@ export interface RecordSchemaDefinition extends langium.AstNode {
1237
1509
  extras: Array<RecordExtraDefinition>;
1238
1510
  }
1239
1511
 
1240
- export const RecordSchemaDefinition = 'RecordSchemaDefinition';
1512
+ export const RecordSchemaDefinition = {
1513
+ $type: 'RecordSchemaDefinition',
1514
+ attributes: 'attributes',
1515
+ extras: 'extras'
1516
+ } as const;
1241
1517
 
1242
1518
  export function isRecordSchemaDefinition(item: unknown): item is RecordSchemaDefinition {
1243
- return reflection.isInstance(item, RecordSchemaDefinition);
1519
+ return reflection.isInstance(item, RecordSchemaDefinition.$type);
1520
+ }
1521
+
1522
+ export type Ref = string;
1523
+
1524
+ export function isRef(item: unknown): item is Ref {
1525
+ return typeof item === 'string';
1244
1526
  }
1245
1527
 
1246
1528
  export interface RefSpec extends langium.AstNode {
@@ -1250,10 +1532,14 @@ export interface RefSpec extends langium.AstNode {
1250
1532
  type?: QualifiedName;
1251
1533
  }
1252
1534
 
1253
- export const RefSpec = 'RefSpec';
1535
+ export const RefSpec = {
1536
+ $type: 'RefSpec',
1537
+ ref: 'ref',
1538
+ type: 'type'
1539
+ } as const;
1254
1540
 
1255
1541
  export function isRefSpec(item: unknown): item is RefSpec {
1256
- return reflection.isInstance(item, RefSpec);
1542
+ return reflection.isInstance(item, RefSpec.$type);
1257
1543
  }
1258
1544
 
1259
1545
  export interface RelationshipDefinition extends langium.AstNode {
@@ -1266,10 +1552,17 @@ export interface RelationshipDefinition extends langium.AstNode {
1266
1552
  type: 'between' | 'contains';
1267
1553
  }
1268
1554
 
1269
- export const RelationshipDefinition = 'RelationshipDefinition';
1555
+ export const RelationshipDefinition = {
1556
+ $type: 'RelationshipDefinition',
1557
+ name: 'name',
1558
+ nodes: 'nodes',
1559
+ properties: 'properties',
1560
+ schema: 'schema',
1561
+ type: 'type'
1562
+ } as const;
1270
1563
 
1271
1564
  export function isRelationshipDefinition(item: unknown): item is RelationshipDefinition {
1272
- return reflection.isInstance(item, RelationshipDefinition);
1565
+ return reflection.isInstance(item, RelationshipDefinition.$type);
1273
1566
  }
1274
1567
 
1275
1568
  export interface RelationshipPattern extends langium.AstNode {
@@ -1279,10 +1572,14 @@ export interface RelationshipPattern extends langium.AstNode {
1279
1572
  pattern: Pattern;
1280
1573
  }
1281
1574
 
1282
- export const RelationshipPattern = 'RelationshipPattern';
1575
+ export const RelationshipPattern = {
1576
+ $type: 'RelationshipPattern',
1577
+ name: 'name',
1578
+ pattern: 'pattern'
1579
+ } as const;
1283
1580
 
1284
1581
  export function isRelationshipPattern(item: unknown): item is RelationshipPattern {
1285
- return reflection.isInstance(item, RelationshipPattern);
1582
+ return reflection.isInstance(item, RelationshipPattern.$type);
1286
1583
  }
1287
1584
 
1288
1585
  export interface RelNodes extends langium.AstNode {
@@ -1292,10 +1589,14 @@ export interface RelNodes extends langium.AstNode {
1292
1589
  node2: NodeDefinition;
1293
1590
  }
1294
1591
 
1295
- export const RelNodes = 'RelNodes';
1592
+ export const RelNodes = {
1593
+ $type: 'RelNodes',
1594
+ node1: 'node1',
1595
+ node2: 'node2'
1596
+ } as const;
1296
1597
 
1297
1598
  export function isRelNodes(item: unknown): item is RelNodes {
1298
- return reflection.isInstance(item, RelNodes);
1599
+ return reflection.isInstance(item, RelNodes.$type);
1299
1600
  }
1300
1601
 
1301
1602
  export interface ResolverDefinition extends langium.AstNode {
@@ -1306,10 +1607,15 @@ export interface ResolverDefinition extends langium.AstNode {
1306
1607
  paths: Array<ResolverPathEntry>;
1307
1608
  }
1308
1609
 
1309
- export const ResolverDefinition = 'ResolverDefinition';
1610
+ export const ResolverDefinition = {
1611
+ $type: 'ResolverDefinition',
1612
+ methods: 'methods',
1613
+ name: 'name',
1614
+ paths: 'paths'
1615
+ } as const;
1310
1616
 
1311
1617
  export function isResolverDefinition(item: unknown): item is ResolverDefinition {
1312
- return reflection.isInstance(item, ResolverDefinition);
1618
+ return reflection.isInstance(item, ResolverDefinition.$type);
1313
1619
  }
1314
1620
 
1315
1621
  export interface ResolverFnName extends langium.AstNode {
@@ -1318,10 +1624,13 @@ export interface ResolverFnName extends langium.AstNode {
1318
1624
  name: Ref | STRING | string;
1319
1625
  }
1320
1626
 
1321
- export const ResolverFnName = 'ResolverFnName';
1627
+ export const ResolverFnName = {
1628
+ $type: 'ResolverFnName',
1629
+ name: 'name'
1630
+ } as const;
1322
1631
 
1323
1632
  export function isResolverFnName(item: unknown): item is ResolverFnName {
1324
- return reflection.isInstance(item, ResolverFnName);
1633
+ return reflection.isInstance(item, ResolverFnName.$type);
1325
1634
  }
1326
1635
 
1327
1636
  export interface ResolverMethodName extends langium.AstNode {
@@ -1330,10 +1639,13 @@ export interface ResolverMethodName extends langium.AstNode {
1330
1639
  name: 'commitTransaction' | 'create' | 'delete' | 'onSubscription' | 'query' | 'rollbackTransaction' | 'startTransaction' | 'subscribe' | 'update' | 'upsert';
1331
1640
  }
1332
1641
 
1333
- export const ResolverMethodName = 'ResolverMethodName';
1642
+ export const ResolverMethodName = {
1643
+ $type: 'ResolverMethodName',
1644
+ name: 'name'
1645
+ } as const;
1334
1646
 
1335
1647
  export function isResolverMethodName(item: unknown): item is ResolverMethodName {
1336
- return reflection.isInstance(item, ResolverMethodName);
1648
+ return reflection.isInstance(item, ResolverMethodName.$type);
1337
1649
  }
1338
1650
 
1339
1651
  export interface ResolverMethodSpec extends langium.AstNode {
@@ -1343,10 +1655,20 @@ export interface ResolverMethodSpec extends langium.AstNode {
1343
1655
  key: ResolverMethodName;
1344
1656
  }
1345
1657
 
1346
- export const ResolverMethodSpec = 'ResolverMethodSpec';
1658
+ export const ResolverMethodSpec = {
1659
+ $type: 'ResolverMethodSpec',
1660
+ fn: 'fn',
1661
+ key: 'key'
1662
+ } as const;
1347
1663
 
1348
1664
  export function isResolverMethodSpec(item: unknown): item is ResolverMethodSpec {
1349
- return reflection.isInstance(item, ResolverMethodSpec);
1665
+ return reflection.isInstance(item, ResolverMethodSpec.$type);
1666
+ }
1667
+
1668
+ export type ResolverPathEntry = GenericName | QualifiedName;
1669
+
1670
+ export function isResolverPathEntry(item: unknown): item is ResolverPathEntry {
1671
+ return isQualifiedName(item) || isGenericName(item);
1350
1672
  }
1351
1673
 
1352
1674
  export interface RetryDefinition extends langium.AstNode {
@@ -1357,10 +1679,15 @@ export interface RetryDefinition extends langium.AstNode {
1357
1679
  name: string;
1358
1680
  }
1359
1681
 
1360
- export const RetryDefinition = 'RetryDefinition';
1682
+ export const RetryDefinition = {
1683
+ $type: 'RetryDefinition',
1684
+ attempts: 'attempts',
1685
+ backoff: 'backoff',
1686
+ name: 'name'
1687
+ } as const;
1361
1688
 
1362
1689
  export function isRetryDefinition(item: unknown): item is RetryDefinition {
1363
- return reflection.isInstance(item, RetryDefinition);
1690
+ return reflection.isInstance(item, RetryDefinition.$type);
1364
1691
  }
1365
1692
 
1366
1693
  export interface Return extends langium.AstNode {
@@ -1369,10 +1696,13 @@ export interface Return extends langium.AstNode {
1369
1696
  pattern: Pattern;
1370
1697
  }
1371
1698
 
1372
- export const Return = 'Return';
1699
+ export const Return = {
1700
+ $type: 'Return',
1701
+ pattern: 'pattern'
1702
+ } as const;
1373
1703
 
1374
1704
  export function isReturn(item: unknown): item is Return {
1375
- return reflection.isInstance(item, Return);
1705
+ return reflection.isInstance(item, Return.$type);
1376
1706
  }
1377
1707
 
1378
1708
  export interface RuntimeHint extends langium.AstNode {
@@ -1383,10 +1713,15 @@ export interface RuntimeHint extends langium.AstNode {
1383
1713
  thenSpec?: ThenSpec;
1384
1714
  }
1385
1715
 
1386
- export const RuntimeHint = 'RuntimeHint';
1716
+ export const RuntimeHint = {
1717
+ $type: 'RuntimeHint',
1718
+ aliasSpec: 'aliasSpec',
1719
+ catchSpec: 'catchSpec',
1720
+ thenSpec: 'thenSpec'
1721
+ } as const;
1387
1722
 
1388
1723
  export function isRuntimeHint(item: unknown): item is RuntimeHint {
1389
- return reflection.isInstance(item, RuntimeHint);
1724
+ return reflection.isInstance(item, RuntimeHint.$type);
1390
1725
  }
1391
1726
 
1392
1727
  export interface ScenarioDefinition extends langium.AstNode {
@@ -1397,10 +1732,25 @@ export interface ScenarioDefinition extends langium.AstNode {
1397
1732
  scn?: If;
1398
1733
  }
1399
1734
 
1400
- export const ScenarioDefinition = 'ScenarioDefinition';
1735
+ export const ScenarioDefinition = {
1736
+ $type: 'ScenarioDefinition',
1737
+ body: 'body',
1738
+ name: 'name',
1739
+ scn: 'scn'
1740
+ } as const;
1401
1741
 
1402
1742
  export function isScenarioDefinition(item: unknown): item is ScenarioDefinition {
1403
- return reflection.isInstance(item, ScenarioDefinition);
1743
+ return reflection.isInstance(item, ScenarioDefinition.$type);
1744
+ }
1745
+
1746
+ export type SchemaDefinition = EntityDefinition | EventDefinition | PublicEventDefinition | RecordDefinition;
1747
+
1748
+ export const SchemaDefinition = {
1749
+ $type: 'SchemaDefinition'
1750
+ } as const;
1751
+
1752
+ export function isSchemaDefinition(item: unknown): item is SchemaDefinition {
1753
+ return reflection.isInstance(item, SchemaDefinition.$type);
1404
1754
  }
1405
1755
 
1406
1756
  export interface SelectIntoEntry extends langium.AstNode {
@@ -1411,10 +1761,15 @@ export interface SelectIntoEntry extends langium.AstNode {
1411
1761
  attribute?: Ref;
1412
1762
  }
1413
1763
 
1414
- export const SelectIntoEntry = 'SelectIntoEntry';
1764
+ export const SelectIntoEntry = {
1765
+ $type: 'SelectIntoEntry',
1766
+ aggregate: 'aggregate',
1767
+ alias: 'alias',
1768
+ attribute: 'attribute'
1769
+ } as const;
1415
1770
 
1416
1771
  export function isSelectIntoEntry(item: unknown): item is SelectIntoEntry {
1417
- return reflection.isInstance(item, SelectIntoEntry);
1772
+ return reflection.isInstance(item, SelectIntoEntry.$type);
1418
1773
  }
1419
1774
 
1420
1775
  export interface SelectIntoSpec extends langium.AstNode {
@@ -1423,10 +1778,13 @@ export interface SelectIntoSpec extends langium.AstNode {
1423
1778
  entries: Array<SelectIntoEntry>;
1424
1779
  }
1425
1780
 
1426
- export const SelectIntoSpec = 'SelectIntoSpec';
1781
+ export const SelectIntoSpec = {
1782
+ $type: 'SelectIntoSpec',
1783
+ entries: 'entries'
1784
+ } as const;
1427
1785
 
1428
1786
  export function isSelectIntoSpec(item: unknown): item is SelectIntoSpec {
1429
- return reflection.isInstance(item, SelectIntoSpec);
1787
+ return reflection.isInstance(item, SelectIntoSpec.$type);
1430
1788
  }
1431
1789
 
1432
1790
  export interface SetAttribute extends langium.AstNode {
@@ -1438,10 +1796,22 @@ export interface SetAttribute extends langium.AstNode {
1438
1796
  value?: AttributeValueExpression;
1439
1797
  }
1440
1798
 
1441
- export const SetAttribute = 'SetAttribute';
1799
+ export const SetAttribute = {
1800
+ $type: 'SetAttribute',
1801
+ aggregate: 'aggregate',
1802
+ name: 'name',
1803
+ op: 'op',
1804
+ value: 'value'
1805
+ } as const;
1442
1806
 
1443
1807
  export function isSetAttribute(item: unknown): item is SetAttribute {
1444
- return reflection.isInstance(item, SetAttribute);
1808
+ return reflection.isInstance(item, SetAttribute.$type);
1809
+ }
1810
+
1811
+ export type SqlComparisonOpr = '!=' | '<' | '<=' | '<>' | '=' | '>' | '>=' | 'between' | 'in' | 'like';
1812
+
1813
+ export function isSqlComparisonOpr(item: unknown): item is SqlComparisonOpr {
1814
+ return item === '=' || item === '<>' || item === '!=' || item === '<' || item === '<=' || item === '>' || item === '>=' || item === 'in' || item === 'like' || item === 'between';
1445
1815
  }
1446
1816
 
1447
1817
  export interface StandaloneStatement extends langium.AstNode {
@@ -1450,10 +1820,13 @@ export interface StandaloneStatement extends langium.AstNode {
1450
1820
  stmt: Statement;
1451
1821
  }
1452
1822
 
1453
- export const StandaloneStatement = 'StandaloneStatement';
1823
+ export const StandaloneStatement = {
1824
+ $type: 'StandaloneStatement',
1825
+ stmt: 'stmt'
1826
+ } as const;
1454
1827
 
1455
1828
  export function isStandaloneStatement(item: unknown): item is StandaloneStatement {
1456
- return reflection.isInstance(item, StandaloneStatement);
1829
+ return reflection.isInstance(item, StandaloneStatement.$type);
1457
1830
  }
1458
1831
 
1459
1832
  export interface Statement extends langium.AstNode {
@@ -1463,10 +1836,26 @@ export interface Statement extends langium.AstNode {
1463
1836
  pattern: Pattern;
1464
1837
  }
1465
1838
 
1466
- export const Statement = 'Statement';
1839
+ export const Statement = {
1840
+ $type: 'Statement',
1841
+ hints: 'hints',
1842
+ pattern: 'pattern'
1843
+ } as const;
1467
1844
 
1468
1845
  export function isStatement(item: unknown): item is Statement {
1469
- return reflection.isInstance(item, Statement);
1846
+ return reflection.isInstance(item, Statement.$type);
1847
+ }
1848
+
1849
+ export type STRING = string;
1850
+
1851
+ export function isSTRING(item: unknown): item is STRING {
1852
+ return (typeof item === 'string' && (/"(\\(?:[\s\S])|(?:(?!(\\|"|\r|\n))[\s\S]*?)|\r?\n)*"/.test(item) || /`(\\(?:[\s\S])|(?:(?!(\\|`|\r|\n))[\s\S]*?)|\r?\n)*`/.test(item)));
1853
+ }
1854
+
1855
+ export type TaggedId = string;
1856
+
1857
+ export function isTaggedId(item: unknown): item is TaggedId {
1858
+ return typeof item === 'string';
1470
1859
  }
1471
1860
 
1472
1861
  export interface ThenSpec extends langium.AstNode {
@@ -1475,10 +1864,13 @@ export interface ThenSpec extends langium.AstNode {
1475
1864
  statements: Array<Statement>;
1476
1865
  }
1477
1866
 
1478
- export const ThenSpec = 'ThenSpec';
1867
+ export const ThenSpec = {
1868
+ $type: 'ThenSpec',
1869
+ statements: 'statements'
1870
+ } as const;
1479
1871
 
1480
1872
  export function isThenSpec(item: unknown): item is ThenSpec {
1481
- return reflection.isInstance(item, ThenSpec);
1873
+ return reflection.isInstance(item, ThenSpec.$type);
1482
1874
  }
1483
1875
 
1484
1876
  export interface ThrowError extends langium.AstNode {
@@ -1487,10 +1879,13 @@ export interface ThrowError extends langium.AstNode {
1487
1879
  reason: Expr;
1488
1880
  }
1489
1881
 
1490
- export const ThrowError = 'ThrowError';
1882
+ export const ThrowError = {
1883
+ $type: 'ThrowError',
1884
+ reason: 'reason'
1885
+ } as const;
1491
1886
 
1492
1887
  export function isThrowError(item: unknown): item is ThrowError {
1493
- return reflection.isInstance(item, ThrowError);
1888
+ return reflection.isInstance(item, ThrowError.$type);
1494
1889
  }
1495
1890
 
1496
1891
  export interface TriggerDefinition extends langium.AstNode {
@@ -1499,10 +1894,13 @@ export interface TriggerDefinition extends langium.AstNode {
1499
1894
  entries: Array<TriggerEntry>;
1500
1895
  }
1501
1896
 
1502
- export const TriggerDefinition = 'TriggerDefinition';
1897
+ export const TriggerDefinition = {
1898
+ $type: 'TriggerDefinition',
1899
+ entries: 'entries'
1900
+ } as const;
1503
1901
 
1504
1902
  export function isTriggerDefinition(item: unknown): item is TriggerDefinition {
1505
- return reflection.isInstance(item, TriggerDefinition);
1903
+ return reflection.isInstance(item, TriggerDefinition.$type);
1506
1904
  }
1507
1905
 
1508
1906
  export interface TriggerEntry extends langium.AstNode {
@@ -1513,10 +1911,15 @@ export interface TriggerEntry extends langium.AstNode {
1513
1911
  on: 'create' | 'delete' | 'update';
1514
1912
  }
1515
1913
 
1516
- export const TriggerEntry = 'TriggerEntry';
1914
+ export const TriggerEntry = {
1915
+ $type: 'TriggerEntry',
1916
+ async: 'async',
1917
+ event: 'event',
1918
+ on: 'on'
1919
+ } as const;
1517
1920
 
1518
1921
  export function isTriggerEntry(item: unknown): item is TriggerEntry {
1519
- return reflection.isInstance(item, TriggerEntry);
1922
+ return reflection.isInstance(item, TriggerEntry.$type);
1520
1923
  }
1521
1924
 
1522
1925
  export interface WhereSpec extends langium.AstNode {
@@ -1525,10 +1928,13 @@ export interface WhereSpec extends langium.AstNode {
1525
1928
  clauses: Array<WhereSpecClause>;
1526
1929
  }
1527
1930
 
1528
- export const WhereSpec = 'WhereSpec';
1931
+ export const WhereSpec = {
1932
+ $type: 'WhereSpec',
1933
+ clauses: 'clauses'
1934
+ } as const;
1529
1935
 
1530
1936
  export function isWhereSpec(item: unknown): item is WhereSpec {
1531
- return reflection.isInstance(item, WhereSpec);
1937
+ return reflection.isInstance(item, WhereSpec.$type);
1532
1938
  }
1533
1939
 
1534
1940
  export interface WhereSpecClause extends langium.AstNode {
@@ -1539,10 +1945,15 @@ export interface WhereSpecClause extends langium.AstNode {
1539
1945
  rhs: Expr;
1540
1946
  }
1541
1947
 
1542
- export const WhereSpecClause = 'WhereSpecClause';
1948
+ export const WhereSpecClause = {
1949
+ $type: 'WhereSpecClause',
1950
+ lhs: 'lhs',
1951
+ op: 'op',
1952
+ rhs: 'rhs'
1953
+ } as const;
1543
1954
 
1544
1955
  export function isWhereSpecClause(item: unknown): item is WhereSpecClause {
1545
- return reflection.isInstance(item, WhereSpecClause);
1956
+ return reflection.isInstance(item, WhereSpecClause.$type);
1546
1957
  }
1547
1958
 
1548
1959
  export interface WorkflowDefinition extends langium.AstNode {
@@ -1553,10 +1964,15 @@ export interface WorkflowDefinition extends langium.AstNode {
1553
1964
  statements: Array<Statement>;
1554
1965
  }
1555
1966
 
1556
- export const WorkflowDefinition = 'WorkflowDefinition';
1967
+ export const WorkflowDefinition = {
1968
+ $type: 'WorkflowDefinition',
1969
+ header: 'header',
1970
+ name: 'name',
1971
+ statements: 'statements'
1972
+ } as const;
1557
1973
 
1558
1974
  export function isWorkflowDefinition(item: unknown): item is WorkflowDefinition {
1559
- return reflection.isInstance(item, WorkflowDefinition);
1975
+ return reflection.isInstance(item, WorkflowDefinition.$type);
1560
1976
  }
1561
1977
 
1562
1978
  export interface WorkflowHeader extends langium.AstNode {
@@ -1567,10 +1983,27 @@ export interface WorkflowHeader extends langium.AstNode {
1567
1983
  tag: WorkflowHeaderTag;
1568
1984
  }
1569
1985
 
1570
- export const WorkflowHeader = 'WorkflowHeader';
1986
+ export const WorkflowHeader = {
1987
+ $type: 'WorkflowHeader',
1988
+ name: 'name',
1989
+ prefix: 'prefix',
1990
+ tag: 'tag'
1991
+ } as const;
1571
1992
 
1572
1993
  export function isWorkflowHeader(item: unknown): item is WorkflowHeader {
1573
- return reflection.isInstance(item, WorkflowHeader);
1994
+ return reflection.isInstance(item, WorkflowHeader.$type);
1995
+ }
1996
+
1997
+ export type WorkflowHeaderPrefix = 'create' | 'delete' | 'update';
1998
+
1999
+ export function isWorkflowHeaderPrefix(item: unknown): item is WorkflowHeaderPrefix {
2000
+ return item === 'create' || item === 'update' || item === 'delete';
2001
+ }
2002
+
2003
+ export type WorkflowHeaderTag = '@after' | '@before';
2004
+
2005
+ export function isWorkflowHeaderTag(item: unknown): item is WorkflowHeaderTag {
2006
+ return item === '@after' || item === '@before';
1574
2007
  }
1575
2008
 
1576
2009
  export type AgentlangAstType = {
@@ -1683,997 +2116,1352 @@ export type AgentlangAstType = {
1683
2116
  }
1684
2117
 
1685
2118
  export class AgentlangAstReflection extends langium.AbstractAstReflection {
1686
-
1687
- getAllTypes(): string[] {
1688
- return [ActionEntry, AfterTriggerDefinition, AgentDefinition, AgentXtraAttribute, AgentXtraSpec, AggregateFunctionSpec, AliasSpec, ArrayLiteral, AsyncFnCall, AttributeDefinition, AttributeValueExpression, BackoffSpec, BeforeTriggerDefinition, BinExpr, CaseEntry, CatchSpec, CompositeUniqueDefinition, ConditionalFlowStep, CrudMap, CrudMapBody, DecisionDefBody, DecisionDefinition, Definition, Delete, DirectiveDefinition, Else, EntityActionsDefinitions, EntityDefinition, EnumSpec, EventDefinition, Expr, ExtendsClause, FlowDefBody, FlowDefinition, FlowEntry, FlowStepSpec, FnCall, ForEach, FullTextSearch, GenericDefBody, GenericPropertyDef, GlossaryEntryDefinition, Group, GroupByClause, Handler, If, IfWithAlias, Import, JoinSpec, KvPair, KvPairs, Literal, MapEntry, MapKey, MapLiteral, MetaDefinition, ModuleDefinition, NegExpr, NodeDefinition, NotExpr, OneOfSpec, OrderByClause, Pattern, PrePostTriggerDefinition, PrimExpr, PropertyDefinition, PublicAgentDefinition, PublicEventDefinition, PublicWorkflowDefinition, Purge, RbacAllowSpec, RbacExpressionSpec, RbacOpr, RbacRolesSpec, RbacSpecDefinition, RbacSpecEntries, RbacSpecEntry, RecordDefinition, RecordExtraDefinition, RecordSchemaDefinition, RefSpec, RelNodes, RelationshipDefinition, RelationshipPattern, ResolverDefinition, ResolverFnName, ResolverMethodName, ResolverMethodSpec, RetryDefinition, Return, RuntimeHint, ScenarioDefinition, SchemaDefinition, SelectIntoEntry, SelectIntoSpec, SetAttribute, StandaloneStatement, Statement, ThenSpec, ThrowError, TriggerDefinition, TriggerEntry, WhereSpec, WhereSpecClause, WorkflowDefinition, WorkflowHeader];
1689
- }
1690
-
1691
- protected override computeIsSubtype(subtype: string, supertype: string): boolean {
1692
- switch (subtype) {
1693
- case AgentDefinition:
1694
- case DecisionDefinition:
1695
- case DirectiveDefinition:
1696
- case FlowDefinition:
1697
- case GlossaryEntryDefinition:
1698
- case PublicAgentDefinition:
1699
- case PublicWorkflowDefinition:
1700
- case RelationshipDefinition:
1701
- case ResolverDefinition:
1702
- case RetryDefinition:
1703
- case ScenarioDefinition:
1704
- case SchemaDefinition:
1705
- case StandaloneStatement:
1706
- case WorkflowDefinition: {
1707
- return this.isSubtype(Definition, supertype);
1708
- }
1709
- case BinExpr:
1710
- case PrimExpr: {
1711
- return this.isSubtype(Expr, supertype);
1712
- }
1713
- case EntityDefinition:
1714
- case EventDefinition:
1715
- case PublicEventDefinition:
1716
- case RecordDefinition: {
1717
- return this.isSubtype(SchemaDefinition, supertype);
1718
- }
1719
- case Expr: {
1720
- return this.isSubtype(AttributeValueExpression, supertype);
1721
- }
1722
- case Group:
1723
- case Literal:
1724
- case NegExpr:
1725
- case NotExpr: {
1726
- return this.isSubtype(PrimExpr, supertype);
1727
- }
1728
- case Statement: {
1729
- return this.isSubtype(FlowStepSpec, supertype);
1730
- }
1731
- default: {
1732
- return false;
1733
- }
1734
- }
1735
- }
1736
-
1737
- getReferenceType(refInfo: langium.ReferenceInfo): string {
1738
- const referenceId = `${refInfo.container.$type}:${refInfo.property}`;
1739
- switch (referenceId) {
1740
- default: {
1741
- throw new Error(`${referenceId} is not a valid reference id.`);
1742
- }
1743
- }
1744
- }
1745
-
1746
- getTypeMetaData(type: string): langium.TypeMetaData {
1747
- switch (type) {
1748
- case ActionEntry: {
1749
- return {
1750
- name: ActionEntry,
1751
- properties: [
1752
- { name: 'event' },
1753
- { name: 'name' }
1754
- ]
1755
- };
1756
- }
1757
- case AfterTriggerDefinition: {
1758
- return {
1759
- name: AfterTriggerDefinition,
1760
- properties: [
1761
- { name: 'triggers' }
1762
- ]
1763
- };
1764
- }
1765
- case AgentDefinition: {
1766
- return {
1767
- name: AgentDefinition,
1768
- properties: [
1769
- { name: 'body' },
1770
- { name: 'name' }
1771
- ]
1772
- };
1773
- }
1774
- case AgentXtraAttribute: {
1775
- return {
1776
- name: AgentXtraAttribute,
1777
- properties: [
1778
- { name: 'name' },
1779
- { name: 'value' }
1780
- ]
1781
- };
1782
- }
1783
- case AgentXtraSpec: {
1784
- return {
1785
- name: AgentXtraSpec,
1786
- properties: [
1787
- { name: 'attributes', defaultValue: [] }
1788
- ]
1789
- };
1790
- }
1791
- case AggregateFunctionSpec: {
1792
- return {
1793
- name: AggregateFunctionSpec,
1794
- properties: [
1795
- { name: 'args', defaultValue: [] },
1796
- { name: 'name' }
1797
- ]
1798
- };
1799
- }
1800
- case AliasSpec: {
1801
- return {
1802
- name: AliasSpec,
1803
- properties: [
1804
- { name: 'alias' },
1805
- { name: 'aliases', defaultValue: [] }
1806
- ]
1807
- };
1808
- }
1809
- case ArrayLiteral: {
1810
- return {
1811
- name: ArrayLiteral,
1812
- properties: [
1813
- { name: 'vals', defaultValue: [] }
1814
- ]
1815
- };
1816
- }
1817
- case AsyncFnCall: {
1818
- return {
1819
- name: AsyncFnCall,
1820
- properties: [
1821
- { name: 'fnCall' }
1822
- ]
1823
- };
1824
- }
1825
- case AttributeDefinition: {
1826
- return {
1827
- name: AttributeDefinition,
1828
- properties: [
1829
- { name: 'arrayType' },
1830
- { name: 'enumSpec' },
1831
- { name: 'expr' },
1832
- { name: 'name' },
1833
- { name: 'oneOfSpec' },
1834
- { name: 'properties', defaultValue: [] },
1835
- { name: 'refSpec' },
1836
- { name: 'type' }
1837
- ]
1838
- };
1839
- }
1840
- case BackoffSpec: {
1841
- return {
1842
- name: BackoffSpec,
1843
- properties: [
1844
- { name: 'attributes', defaultValue: [] }
1845
- ]
1846
- };
1847
- }
1848
- case BeforeTriggerDefinition: {
1849
- return {
1850
- name: BeforeTriggerDefinition,
1851
- properties: [
1852
- { name: 'triggers' }
1853
- ]
1854
- };
1855
- }
1856
- case BinExpr: {
1857
- return {
1858
- name: BinExpr,
1859
- properties: [
1860
- { name: 'e1' },
1861
- { name: 'e2' },
1862
- { name: 'op' }
1863
- ]
1864
- };
1865
- }
1866
- case CaseEntry: {
1867
- return {
1868
- name: CaseEntry,
1869
- properties: [
1870
- { name: 'cond' },
1871
- { name: 'statements', defaultValue: [] }
1872
- ]
1873
- };
1874
- }
1875
- case CatchSpec: {
1876
- return {
1877
- name: CatchSpec,
1878
- properties: [
1879
- { name: 'handlers', defaultValue: [] }
1880
- ]
1881
- };
1882
- }
1883
- case CompositeUniqueDefinition: {
1884
- return {
1885
- name: CompositeUniqueDefinition,
1886
- properties: [
1887
- { name: 'attrs', defaultValue: [] }
1888
- ]
1889
- };
1890
- }
1891
- case ConditionalFlowStep: {
1892
- return {
1893
- name: ConditionalFlowStep,
1894
- properties: [
1895
- { name: 'expr' },
1896
- { name: 'next' }
1897
- ]
1898
- };
1899
- }
1900
- case CrudMap: {
1901
- return {
1902
- name: CrudMap,
1903
- properties: [
1904
- { name: 'body' },
1905
- { name: 'distinct', defaultValue: [] },
1906
- { name: 'groupByClause' },
1907
- { name: 'into' },
1908
- { name: 'joins', defaultValue: [] },
1909
- { name: 'name' },
1910
- { name: 'orderByClause' },
1911
- { name: 'relationships', defaultValue: [] },
1912
- { name: 'source' },
1913
- { name: 'upsert', defaultValue: [] },
1914
- { name: 'where' }
1915
- ]
1916
- };
1917
- }
1918
- case CrudMapBody: {
1919
- return {
1920
- name: CrudMapBody,
1921
- properties: [
1922
- { name: 'attributes', defaultValue: [] },
1923
- { name: 'properties', defaultValue: [] }
1924
- ]
1925
- };
1926
- }
1927
- case DecisionDefBody: {
1928
- return {
1929
- name: DecisionDefBody,
1930
- properties: [
1931
- { name: 'cases', defaultValue: [] }
1932
- ]
1933
- };
1934
- }
1935
- case DecisionDefinition: {
1936
- return {
1937
- name: DecisionDefinition,
1938
- properties: [
1939
- { name: 'body' },
1940
- { name: 'name' }
1941
- ]
1942
- };
1943
- }
1944
- case Delete: {
1945
- return {
1946
- name: Delete,
1947
- properties: [
1948
- { name: 'pattern' }
1949
- ]
1950
- };
1951
- }
1952
- case DirectiveDefinition: {
1953
- return {
1954
- name: DirectiveDefinition,
1955
- properties: [
1956
- { name: 'body' },
1957
- { name: 'dir' },
1958
- { name: 'name' }
1959
- ]
1960
- };
1961
- }
1962
- case Else: {
1963
- return {
1964
- name: Else,
1965
- properties: [
1966
- { name: 'statements', defaultValue: [] }
1967
- ]
1968
- };
1969
- }
1970
- case EntityActionsDefinitions: {
1971
- return {
1972
- name: EntityActionsDefinitions,
1973
- properties: [
1974
- { name: 'entries', defaultValue: [] }
1975
- ]
1976
- };
1977
- }
1978
- case EntityDefinition: {
1979
- return {
1980
- name: EntityDefinition,
1981
- properties: [
1982
- { name: 'extends' },
1983
- { name: 'name' },
1984
- { name: 'schema' }
1985
- ]
1986
- };
1987
- }
1988
- case EnumSpec: {
1989
- return {
1990
- name: EnumSpec,
1991
- properties: [
1992
- { name: 'type' },
1993
- { name: 'values', defaultValue: [] }
1994
- ]
1995
- };
1996
- }
1997
- case EventDefinition: {
1998
- return {
1999
- name: EventDefinition,
2000
- properties: [
2001
- { name: 'extends' },
2002
- { name: 'name' },
2003
- { name: 'schema' }
2004
- ]
2005
- };
2006
- }
2007
- case ExtendsClause: {
2008
- return {
2009
- name: ExtendsClause,
2010
- properties: [
2011
- { name: 'parentName' }
2012
- ]
2013
- };
2014
- }
2015
- case FlowDefBody: {
2016
- return {
2017
- name: FlowDefBody,
2018
- properties: [
2019
- { name: 'entries', defaultValue: [] }
2020
- ]
2021
- };
2022
- }
2023
- case FlowDefinition: {
2024
- return {
2025
- name: FlowDefinition,
2026
- properties: [
2027
- { name: 'body' },
2028
- { name: 'name' }
2029
- ]
2030
- };
2031
- }
2032
- case FlowEntry: {
2033
- return {
2034
- name: FlowEntry,
2035
- properties: [
2036
- { name: 'cond' },
2037
- { name: 'next' },
2038
- { name: 'root' }
2039
- ]
2040
- };
2041
- }
2042
- case FnCall: {
2043
- return {
2044
- name: FnCall,
2045
- properties: [
2046
- { name: 'args', defaultValue: [] },
2047
- { name: 'name' }
2048
- ]
2049
- };
2050
- }
2051
- case ForEach: {
2052
- return {
2053
- name: ForEach,
2054
- properties: [
2055
- { name: 'src' },
2056
- { name: 'statements', defaultValue: [] },
2057
- { name: 'var' }
2058
- ]
2059
- };
2060
- }
2061
- case FullTextSearch: {
2062
- return {
2063
- name: FullTextSearch,
2064
- properties: [
2065
- { name: 'name' },
2066
- { name: 'options' },
2067
- { name: 'query' }
2068
- ]
2069
- };
2070
- }
2071
- case GenericDefBody: {
2072
- return {
2073
- name: GenericDefBody,
2074
- properties: [
2075
- { name: 'attributes', defaultValue: [] }
2076
- ]
2077
- };
2078
- }
2079
- case GenericPropertyDef: {
2080
- return {
2081
- name: GenericPropertyDef,
2082
- properties: [
2083
- { name: 'name' },
2084
- { name: 'value' }
2085
- ]
2086
- };
2087
- }
2088
- case GlossaryEntryDefinition: {
2089
- return {
2090
- name: GlossaryEntryDefinition,
2091
- properties: [
2092
- { name: 'body' },
2093
- { name: 'glos' },
2094
- { name: 'name' }
2095
- ]
2096
- };
2097
- }
2098
- case Group: {
2099
- return {
2100
- name: Group,
2101
- properties: [
2102
- { name: 'ge' }
2103
- ]
2104
- };
2105
- }
2106
- case GroupByClause: {
2107
- return {
2108
- name: GroupByClause,
2109
- properties: [
2110
- { name: 'colNames', defaultValue: [] }
2111
- ]
2112
- };
2113
- }
2114
- case Handler: {
2115
- return {
2116
- name: Handler,
2117
- properties: [
2118
- { name: 'except' },
2119
- { name: 'stmt' }
2120
- ]
2121
- };
2122
- }
2123
- case If: {
2124
- return {
2125
- name: If,
2126
- properties: [
2127
- { name: 'cond' },
2128
- { name: 'else' },
2129
- { name: 'statements', defaultValue: [] }
2130
- ]
2131
- };
2132
- }
2133
- case IfWithAlias: {
2134
- return {
2135
- name: IfWithAlias,
2136
- properties: [
2137
- { name: 'if' }
2138
- ]
2139
- };
2140
- }
2141
- case Import: {
2142
- return {
2143
- name: Import,
2144
- properties: [
2145
- { name: 'name' },
2146
- { name: 'path' }
2147
- ]
2148
- };
2149
- }
2150
- case JoinSpec: {
2151
- return {
2152
- name: JoinSpec,
2153
- properties: [
2154
- { name: 'lhs' },
2155
- { name: 'name' },
2156
- { name: 'op' },
2157
- { name: 'rhs' },
2158
- { name: 'type' }
2159
- ]
2160
- };
2161
- }
2162
- case KvPair: {
2163
- return {
2164
- name: KvPair,
2165
- properties: [
2166
- { name: 'key' },
2167
- { name: 'value' }
2168
- ]
2169
- };
2170
- }
2171
- case KvPairs: {
2172
- return {
2173
- name: KvPairs,
2174
- properties: [
2175
- { name: 'pairs', defaultValue: [] }
2176
- ]
2177
- };
2178
- }
2179
- case Literal: {
2180
- return {
2181
- name: Literal,
2182
- properties: [
2183
- { name: 'array' },
2184
- { name: 'asyncFnCall' },
2185
- { name: 'bool' },
2186
- { name: 'fnCall' },
2187
- { name: 'id' },
2188
- { name: 'map' },
2189
- { name: 'num' },
2190
- { name: 'ref' },
2191
- { name: 'str' }
2192
- ]
2193
- };
2194
- }
2195
- case MapEntry: {
2196
- return {
2197
- name: MapEntry,
2198
- properties: [
2199
- { name: 'key' },
2200
- { name: 'value' }
2201
- ]
2202
- };
2203
- }
2204
- case MapKey: {
2205
- return {
2206
- name: MapKey,
2207
- properties: [
2208
- { name: 'bool' },
2209
- { name: 'num' },
2210
- { name: 'str' }
2211
- ]
2212
- };
2213
- }
2214
- case MapLiteral: {
2215
- return {
2216
- name: MapLiteral,
2217
- properties: [
2218
- { name: 'entries', defaultValue: [] }
2219
- ]
2220
- };
2221
- }
2222
- case MetaDefinition: {
2223
- return {
2224
- name: MetaDefinition,
2225
- properties: [
2226
- { name: 'spec' }
2227
- ]
2228
- };
2229
- }
2230
- case ModuleDefinition: {
2231
- return {
2232
- name: ModuleDefinition,
2233
- properties: [
2234
- { name: 'defs', defaultValue: [] },
2235
- { name: 'imports', defaultValue: [] },
2236
- { name: 'name' }
2237
- ]
2238
- };
2239
- }
2240
- case NegExpr: {
2241
- return {
2242
- name: NegExpr,
2243
- properties: [
2244
- { name: 'ne' }
2245
- ]
2246
- };
2247
- }
2248
- case NodeDefinition: {
2249
- return {
2250
- name: NodeDefinition,
2251
- properties: [
2252
- { name: 'alias' },
2253
- { name: 'name' }
2254
- ]
2255
- };
2256
- }
2257
- case NotExpr: {
2258
- return {
2259
- name: NotExpr,
2260
- properties: [
2261
- { name: 'ne' }
2262
- ]
2263
- };
2264
- }
2265
- case OneOfSpec: {
2266
- return {
2267
- name: OneOfSpec,
2268
- properties: [
2269
- { name: 'ref' }
2270
- ]
2271
- };
2272
- }
2273
- case OrderByClause: {
2274
- return {
2275
- name: OrderByClause,
2276
- properties: [
2277
- { name: 'colNames', defaultValue: [] },
2278
- { name: 'order' }
2279
- ]
2280
- };
2281
- }
2282
- case Pattern: {
2283
- return {
2284
- name: Pattern,
2285
- properties: [
2286
- { name: 'crudMap' },
2287
- { name: 'delete' },
2288
- { name: 'expr' },
2289
- { name: 'forEach' },
2290
- { name: 'fullTextSearch' },
2291
- { name: 'if' },
2292
- { name: 'ifWithAlias' },
2293
- { name: 'purge' },
2294
- { name: 'return' },
2295
- { name: 'throwError' }
2296
- ]
2297
- };
2298
- }
2299
- case PrePostTriggerDefinition: {
2300
- return {
2301
- name: PrePostTriggerDefinition,
2302
- properties: [
2303
- { name: 'after' },
2304
- { name: 'before' }
2305
- ]
2306
- };
2307
- }
2308
- case PropertyDefinition: {
2309
- return {
2310
- name: PropertyDefinition,
2311
- properties: [
2312
- { name: 'name' },
2313
- { name: 'value' }
2314
- ]
2315
- };
2316
- }
2317
- case PublicAgentDefinition: {
2318
- return {
2319
- name: PublicAgentDefinition,
2320
- properties: [
2321
- { name: 'def' }
2322
- ]
2323
- };
2324
- }
2325
- case PublicEventDefinition: {
2326
- return {
2327
- name: PublicEventDefinition,
2328
- properties: [
2329
- { name: 'def' }
2330
- ]
2331
- };
2332
- }
2333
- case PublicWorkflowDefinition: {
2334
- return {
2335
- name: PublicWorkflowDefinition,
2336
- properties: [
2337
- { name: 'def' }
2338
- ]
2339
- };
2340
- }
2341
- case Purge: {
2342
- return {
2343
- name: Purge,
2344
- properties: [
2345
- { name: 'pattern' }
2346
- ]
2347
- };
2348
- }
2349
- case RbacAllowSpec: {
2350
- return {
2351
- name: RbacAllowSpec,
2352
- properties: [
2353
- { name: 'oprs', defaultValue: [] }
2354
- ]
2355
- };
2356
- }
2357
- case RbacExpressionSpec: {
2358
- return {
2359
- name: RbacExpressionSpec,
2360
- properties: [
2361
- { name: 'lhs' },
2362
- { name: 'rhs' }
2363
- ]
2364
- };
2365
- }
2366
- case RbacOpr: {
2367
- return {
2368
- name: RbacOpr,
2369
- properties: [
2370
- { name: 'value' }
2371
- ]
2372
- };
2373
- }
2374
- case RbacRolesSpec: {
2375
- return {
2376
- name: RbacRolesSpec,
2377
- properties: [
2378
- { name: 'roles', defaultValue: [] }
2379
- ]
2380
- };
2381
- }
2382
- case RbacSpecDefinition: {
2383
- return {
2384
- name: RbacSpecDefinition,
2385
- properties: [
2386
- { name: 'specEntries', defaultValue: [] }
2387
- ]
2388
- };
2389
- }
2390
- case RbacSpecEntries: {
2391
- return {
2392
- name: RbacSpecEntries,
2393
- properties: [
2394
- { name: 'entries', defaultValue: [] }
2395
- ]
2396
- };
2397
- }
2398
- case RbacSpecEntry: {
2399
- return {
2400
- name: RbacSpecEntry,
2401
- properties: [
2402
- { name: 'allow' },
2403
- { name: 'expr' },
2404
- { name: 'role' }
2405
- ]
2406
- };
2407
- }
2408
- case RecordDefinition: {
2409
- return {
2410
- name: RecordDefinition,
2411
- properties: [
2412
- { name: 'extends' },
2413
- { name: 'name' },
2414
- { name: 'schema' }
2415
- ]
2416
- };
2417
- }
2418
- case RecordExtraDefinition: {
2419
- return {
2420
- name: RecordExtraDefinition,
2421
- properties: [
2422
- { name: 'actions' },
2423
- { name: 'meta' },
2424
- { name: 'prePost' },
2425
- { name: 'rbacSpec' },
2426
- { name: 'uq' }
2427
- ]
2428
- };
2429
- }
2430
- case RecordSchemaDefinition: {
2431
- return {
2432
- name: RecordSchemaDefinition,
2433
- properties: [
2434
- { name: 'attributes', defaultValue: [] },
2435
- { name: 'extras', defaultValue: [] }
2436
- ]
2437
- };
2438
- }
2439
- case RefSpec: {
2440
- return {
2441
- name: RefSpec,
2442
- properties: [
2443
- { name: 'ref' },
2444
- { name: 'type' }
2445
- ]
2446
- };
2447
- }
2448
- case RelationshipDefinition: {
2449
- return {
2450
- name: RelationshipDefinition,
2451
- properties: [
2452
- { name: 'name' },
2453
- { name: 'nodes' },
2454
- { name: 'properties', defaultValue: [] },
2455
- { name: 'schema' },
2456
- { name: 'type' }
2457
- ]
2458
- };
2459
- }
2460
- case RelationshipPattern: {
2461
- return {
2462
- name: RelationshipPattern,
2463
- properties: [
2464
- { name: 'name' },
2465
- { name: 'pattern' }
2466
- ]
2467
- };
2468
- }
2469
- case RelNodes: {
2470
- return {
2471
- name: RelNodes,
2472
- properties: [
2473
- { name: 'node1' },
2474
- { name: 'node2' }
2475
- ]
2476
- };
2477
- }
2478
- case ResolverDefinition: {
2479
- return {
2480
- name: ResolverDefinition,
2481
- properties: [
2482
- { name: 'methods', defaultValue: [] },
2483
- { name: 'name' },
2484
- { name: 'paths', defaultValue: [] }
2485
- ]
2486
- };
2487
- }
2488
- case ResolverFnName: {
2489
- return {
2490
- name: ResolverFnName,
2491
- properties: [
2492
- { name: 'name' }
2493
- ]
2494
- };
2495
- }
2496
- case ResolverMethodName: {
2497
- return {
2498
- name: ResolverMethodName,
2499
- properties: [
2500
- { name: 'name' }
2501
- ]
2502
- };
2503
- }
2504
- case ResolverMethodSpec: {
2505
- return {
2506
- name: ResolverMethodSpec,
2507
- properties: [
2508
- { name: 'fn' },
2509
- { name: 'key' }
2510
- ]
2511
- };
2512
- }
2513
- case RetryDefinition: {
2514
- return {
2515
- name: RetryDefinition,
2516
- properties: [
2517
- { name: 'attempts' },
2518
- { name: 'backoff' },
2519
- { name: 'name' }
2520
- ]
2521
- };
2522
- }
2523
- case Return: {
2524
- return {
2525
- name: Return,
2526
- properties: [
2527
- { name: 'pattern' }
2528
- ]
2529
- };
2530
- }
2531
- case RuntimeHint: {
2532
- return {
2533
- name: RuntimeHint,
2534
- properties: [
2535
- { name: 'aliasSpec' },
2536
- { name: 'catchSpec' },
2537
- { name: 'thenSpec' }
2538
- ]
2539
- };
2540
- }
2541
- case ScenarioDefinition: {
2542
- return {
2543
- name: ScenarioDefinition,
2544
- properties: [
2545
- { name: 'body' },
2546
- { name: 'name' },
2547
- { name: 'scn' }
2548
- ]
2549
- };
2550
- }
2551
- case SelectIntoEntry: {
2552
- return {
2553
- name: SelectIntoEntry,
2554
- properties: [
2555
- { name: 'aggregate' },
2556
- { name: 'alias' },
2557
- { name: 'attribute' }
2558
- ]
2559
- };
2560
- }
2561
- case SelectIntoSpec: {
2562
- return {
2563
- name: SelectIntoSpec,
2564
- properties: [
2565
- { name: 'entries', defaultValue: [] }
2566
- ]
2567
- };
2568
- }
2569
- case SetAttribute: {
2570
- return {
2571
- name: SetAttribute,
2572
- properties: [
2573
- { name: 'aggregate' },
2574
- { name: 'name' },
2575
- { name: 'op' },
2576
- { name: 'value' }
2577
- ]
2578
- };
2579
- }
2580
- case StandaloneStatement: {
2581
- return {
2582
- name: StandaloneStatement,
2583
- properties: [
2584
- { name: 'stmt' }
2585
- ]
2586
- };
2587
- }
2588
- case Statement: {
2589
- return {
2590
- name: Statement,
2591
- properties: [
2592
- { name: 'hints', defaultValue: [] },
2593
- { name: 'pattern' }
2594
- ]
2595
- };
2596
- }
2597
- case ThenSpec: {
2598
- return {
2599
- name: ThenSpec,
2600
- properties: [
2601
- { name: 'statements', defaultValue: [] }
2602
- ]
2603
- };
2604
- }
2605
- case ThrowError: {
2606
- return {
2607
- name: ThrowError,
2608
- properties: [
2609
- { name: 'reason' }
2610
- ]
2611
- };
2612
- }
2613
- case TriggerDefinition: {
2614
- return {
2615
- name: TriggerDefinition,
2616
- properties: [
2617
- { name: 'entries', defaultValue: [] }
2618
- ]
2619
- };
2620
- }
2621
- case TriggerEntry: {
2622
- return {
2623
- name: TriggerEntry,
2624
- properties: [
2625
- { name: 'async' },
2626
- { name: 'event' },
2627
- { name: 'on' }
2628
- ]
2629
- };
2630
- }
2631
- case WhereSpec: {
2632
- return {
2633
- name: WhereSpec,
2634
- properties: [
2635
- { name: 'clauses', defaultValue: [] }
2636
- ]
2637
- };
2638
- }
2639
- case WhereSpecClause: {
2640
- return {
2641
- name: WhereSpecClause,
2642
- properties: [
2643
- { name: 'lhs' },
2644
- { name: 'op' },
2645
- { name: 'rhs' }
2646
- ]
2647
- };
2648
- }
2649
- case WorkflowDefinition: {
2650
- return {
2651
- name: WorkflowDefinition,
2652
- properties: [
2653
- { name: 'header' },
2654
- { name: 'name' },
2655
- { name: 'statements', defaultValue: [] }
2656
- ]
2657
- };
2658
- }
2659
- case WorkflowHeader: {
2660
- return {
2661
- name: WorkflowHeader,
2662
- properties: [
2663
- { name: 'name' },
2664
- { name: 'prefix' },
2665
- { name: 'tag' }
2666
- ]
2667
- };
2668
- }
2669
- default: {
2670
- return {
2671
- name: type,
2672
- properties: []
2673
- };
2674
- }
2119
+ override readonly types = {
2120
+ ActionEntry: {
2121
+ name: ActionEntry.$type,
2122
+ properties: {
2123
+ event: {
2124
+ name: ActionEntry.event
2125
+ },
2126
+ name: {
2127
+ name: ActionEntry.name
2128
+ }
2129
+ },
2130
+ superTypes: []
2131
+ },
2132
+ AfterTriggerDefinition: {
2133
+ name: AfterTriggerDefinition.$type,
2134
+ properties: {
2135
+ triggers: {
2136
+ name: AfterTriggerDefinition.triggers
2137
+ }
2138
+ },
2139
+ superTypes: []
2140
+ },
2141
+ AgentDefinition: {
2142
+ name: AgentDefinition.$type,
2143
+ properties: {
2144
+ body: {
2145
+ name: AgentDefinition.body
2146
+ },
2147
+ name: {
2148
+ name: AgentDefinition.name
2149
+ }
2150
+ },
2151
+ superTypes: [Definition.$type]
2152
+ },
2153
+ AgentXtraAttribute: {
2154
+ name: AgentXtraAttribute.$type,
2155
+ properties: {
2156
+ name: {
2157
+ name: AgentXtraAttribute.name
2158
+ },
2159
+ value: {
2160
+ name: AgentXtraAttribute.value
2161
+ }
2162
+ },
2163
+ superTypes: []
2164
+ },
2165
+ AgentXtraSpec: {
2166
+ name: AgentXtraSpec.$type,
2167
+ properties: {
2168
+ attributes: {
2169
+ name: AgentXtraSpec.attributes,
2170
+ defaultValue: []
2171
+ }
2172
+ },
2173
+ superTypes: []
2174
+ },
2175
+ AggregateFunctionSpec: {
2176
+ name: AggregateFunctionSpec.$type,
2177
+ properties: {
2178
+ args: {
2179
+ name: AggregateFunctionSpec.args,
2180
+ defaultValue: []
2181
+ },
2182
+ name: {
2183
+ name: AggregateFunctionSpec.name
2184
+ }
2185
+ },
2186
+ superTypes: []
2187
+ },
2188
+ AliasSpec: {
2189
+ name: AliasSpec.$type,
2190
+ properties: {
2191
+ alias: {
2192
+ name: AliasSpec.alias
2193
+ },
2194
+ aliases: {
2195
+ name: AliasSpec.aliases,
2196
+ defaultValue: []
2197
+ }
2198
+ },
2199
+ superTypes: []
2200
+ },
2201
+ ArrayLiteral: {
2202
+ name: ArrayLiteral.$type,
2203
+ properties: {
2204
+ vals: {
2205
+ name: ArrayLiteral.vals,
2206
+ defaultValue: []
2207
+ }
2208
+ },
2209
+ superTypes: []
2210
+ },
2211
+ AsyncFnCall: {
2212
+ name: AsyncFnCall.$type,
2213
+ properties: {
2214
+ fnCall: {
2215
+ name: AsyncFnCall.fnCall
2216
+ }
2217
+ },
2218
+ superTypes: []
2219
+ },
2220
+ AttributeDefinition: {
2221
+ name: AttributeDefinition.$type,
2222
+ properties: {
2223
+ arrayType: {
2224
+ name: AttributeDefinition.arrayType
2225
+ },
2226
+ enumSpec: {
2227
+ name: AttributeDefinition.enumSpec
2228
+ },
2229
+ expr: {
2230
+ name: AttributeDefinition.expr
2231
+ },
2232
+ name: {
2233
+ name: AttributeDefinition.name
2234
+ },
2235
+ oneOfSpec: {
2236
+ name: AttributeDefinition.oneOfSpec
2237
+ },
2238
+ properties: {
2239
+ name: AttributeDefinition.properties,
2240
+ defaultValue: []
2241
+ },
2242
+ refSpec: {
2243
+ name: AttributeDefinition.refSpec
2244
+ },
2245
+ type: {
2246
+ name: AttributeDefinition.type
2247
+ }
2248
+ },
2249
+ superTypes: []
2250
+ },
2251
+ AttributeValueExpression: {
2252
+ name: AttributeValueExpression.$type,
2253
+ properties: {
2254
+ },
2255
+ superTypes: []
2256
+ },
2257
+ BackoffSpec: {
2258
+ name: BackoffSpec.$type,
2259
+ properties: {
2260
+ attributes: {
2261
+ name: BackoffSpec.attributes,
2262
+ defaultValue: []
2263
+ }
2264
+ },
2265
+ superTypes: []
2266
+ },
2267
+ BeforeTriggerDefinition: {
2268
+ name: BeforeTriggerDefinition.$type,
2269
+ properties: {
2270
+ triggers: {
2271
+ name: BeforeTriggerDefinition.triggers
2272
+ }
2273
+ },
2274
+ superTypes: []
2275
+ },
2276
+ BinExpr: {
2277
+ name: BinExpr.$type,
2278
+ properties: {
2279
+ e1: {
2280
+ name: BinExpr.e1
2281
+ },
2282
+ e2: {
2283
+ name: BinExpr.e2
2284
+ },
2285
+ op: {
2286
+ name: BinExpr.op
2287
+ }
2288
+ },
2289
+ superTypes: [Expr.$type]
2290
+ },
2291
+ CaseEntry: {
2292
+ name: CaseEntry.$type,
2293
+ properties: {
2294
+ cond: {
2295
+ name: CaseEntry.cond
2296
+ },
2297
+ statements: {
2298
+ name: CaseEntry.statements,
2299
+ defaultValue: []
2300
+ }
2301
+ },
2302
+ superTypes: []
2303
+ },
2304
+ CatchSpec: {
2305
+ name: CatchSpec.$type,
2306
+ properties: {
2307
+ handlers: {
2308
+ name: CatchSpec.handlers,
2309
+ defaultValue: []
2310
+ }
2311
+ },
2312
+ superTypes: []
2313
+ },
2314
+ CompositeUniqueDefinition: {
2315
+ name: CompositeUniqueDefinition.$type,
2316
+ properties: {
2317
+ attrs: {
2318
+ name: CompositeUniqueDefinition.attrs,
2319
+ defaultValue: []
2320
+ }
2321
+ },
2322
+ superTypes: []
2323
+ },
2324
+ ConditionalFlowStep: {
2325
+ name: ConditionalFlowStep.$type,
2326
+ properties: {
2327
+ expr: {
2328
+ name: ConditionalFlowStep.expr
2329
+ },
2330
+ next: {
2331
+ name: ConditionalFlowStep.next
2332
+ }
2333
+ },
2334
+ superTypes: []
2335
+ },
2336
+ CrudMap: {
2337
+ name: CrudMap.$type,
2338
+ properties: {
2339
+ body: {
2340
+ name: CrudMap.body
2341
+ },
2342
+ distinct: {
2343
+ name: CrudMap.distinct,
2344
+ defaultValue: []
2345
+ },
2346
+ groupByClause: {
2347
+ name: CrudMap.groupByClause
2348
+ },
2349
+ into: {
2350
+ name: CrudMap.into
2351
+ },
2352
+ joins: {
2353
+ name: CrudMap.joins,
2354
+ defaultValue: []
2355
+ },
2356
+ name: {
2357
+ name: CrudMap.name
2358
+ },
2359
+ orderByClause: {
2360
+ name: CrudMap.orderByClause
2361
+ },
2362
+ relationships: {
2363
+ name: CrudMap.relationships,
2364
+ defaultValue: []
2365
+ },
2366
+ source: {
2367
+ name: CrudMap.source
2368
+ },
2369
+ upsert: {
2370
+ name: CrudMap.upsert,
2371
+ defaultValue: []
2372
+ },
2373
+ where: {
2374
+ name: CrudMap.where
2375
+ }
2376
+ },
2377
+ superTypes: []
2378
+ },
2379
+ CrudMapBody: {
2380
+ name: CrudMapBody.$type,
2381
+ properties: {
2382
+ attributes: {
2383
+ name: CrudMapBody.attributes,
2384
+ defaultValue: []
2385
+ },
2386
+ properties: {
2387
+ name: CrudMapBody.properties,
2388
+ defaultValue: []
2389
+ }
2390
+ },
2391
+ superTypes: []
2392
+ },
2393
+ DecisionDefBody: {
2394
+ name: DecisionDefBody.$type,
2395
+ properties: {
2396
+ cases: {
2397
+ name: DecisionDefBody.cases,
2398
+ defaultValue: []
2399
+ }
2400
+ },
2401
+ superTypes: []
2402
+ },
2403
+ DecisionDefinition: {
2404
+ name: DecisionDefinition.$type,
2405
+ properties: {
2406
+ body: {
2407
+ name: DecisionDefinition.body
2408
+ },
2409
+ name: {
2410
+ name: DecisionDefinition.name
2411
+ }
2412
+ },
2413
+ superTypes: [Definition.$type]
2414
+ },
2415
+ Definition: {
2416
+ name: Definition.$type,
2417
+ properties: {
2418
+ },
2419
+ superTypes: []
2420
+ },
2421
+ Delete: {
2422
+ name: Delete.$type,
2423
+ properties: {
2424
+ pattern: {
2425
+ name: Delete.pattern
2426
+ }
2427
+ },
2428
+ superTypes: []
2429
+ },
2430
+ DirectiveDefinition: {
2431
+ name: DirectiveDefinition.$type,
2432
+ properties: {
2433
+ body: {
2434
+ name: DirectiveDefinition.body
2435
+ },
2436
+ dir: {
2437
+ name: DirectiveDefinition.dir
2438
+ },
2439
+ name: {
2440
+ name: DirectiveDefinition.name
2441
+ }
2442
+ },
2443
+ superTypes: [Definition.$type]
2444
+ },
2445
+ Else: {
2446
+ name: Else.$type,
2447
+ properties: {
2448
+ statements: {
2449
+ name: Else.statements,
2450
+ defaultValue: []
2451
+ }
2452
+ },
2453
+ superTypes: []
2454
+ },
2455
+ EntityActionsDefinitions: {
2456
+ name: EntityActionsDefinitions.$type,
2457
+ properties: {
2458
+ entries: {
2459
+ name: EntityActionsDefinitions.entries,
2460
+ defaultValue: []
2461
+ }
2462
+ },
2463
+ superTypes: []
2464
+ },
2465
+ EntityDefinition: {
2466
+ name: EntityDefinition.$type,
2467
+ properties: {
2468
+ extends: {
2469
+ name: EntityDefinition.extends
2470
+ },
2471
+ name: {
2472
+ name: EntityDefinition.name
2473
+ },
2474
+ schema: {
2475
+ name: EntityDefinition.schema
2476
+ }
2477
+ },
2478
+ superTypes: [SchemaDefinition.$type]
2479
+ },
2480
+ EnumSpec: {
2481
+ name: EnumSpec.$type,
2482
+ properties: {
2483
+ type: {
2484
+ name: EnumSpec.type
2485
+ },
2486
+ values: {
2487
+ name: EnumSpec.values,
2488
+ defaultValue: []
2489
+ }
2490
+ },
2491
+ superTypes: []
2492
+ },
2493
+ EventDefinition: {
2494
+ name: EventDefinition.$type,
2495
+ properties: {
2496
+ extends: {
2497
+ name: EventDefinition.extends
2498
+ },
2499
+ name: {
2500
+ name: EventDefinition.name
2501
+ },
2502
+ schema: {
2503
+ name: EventDefinition.schema
2504
+ }
2505
+ },
2506
+ superTypes: [SchemaDefinition.$type]
2507
+ },
2508
+ Expr: {
2509
+ name: Expr.$type,
2510
+ properties: {
2511
+ },
2512
+ superTypes: [AttributeValueExpression.$type]
2513
+ },
2514
+ ExtendsClause: {
2515
+ name: ExtendsClause.$type,
2516
+ properties: {
2517
+ parentName: {
2518
+ name: ExtendsClause.parentName
2519
+ }
2520
+ },
2521
+ superTypes: []
2522
+ },
2523
+ FlowDefBody: {
2524
+ name: FlowDefBody.$type,
2525
+ properties: {
2526
+ entries: {
2527
+ name: FlowDefBody.entries,
2528
+ defaultValue: []
2529
+ }
2530
+ },
2531
+ superTypes: []
2532
+ },
2533
+ FlowDefinition: {
2534
+ name: FlowDefinition.$type,
2535
+ properties: {
2536
+ body: {
2537
+ name: FlowDefinition.body
2538
+ },
2539
+ name: {
2540
+ name: FlowDefinition.name
2541
+ }
2542
+ },
2543
+ superTypes: [Definition.$type]
2544
+ },
2545
+ FlowEntry: {
2546
+ name: FlowEntry.$type,
2547
+ properties: {
2548
+ cond: {
2549
+ name: FlowEntry.cond
2550
+ },
2551
+ next: {
2552
+ name: FlowEntry.next
2553
+ },
2554
+ root: {
2555
+ name: FlowEntry.root
2556
+ }
2557
+ },
2558
+ superTypes: []
2559
+ },
2560
+ FlowStepSpec: {
2561
+ name: FlowStepSpec.$type,
2562
+ properties: {
2563
+ },
2564
+ superTypes: []
2565
+ },
2566
+ FnCall: {
2567
+ name: FnCall.$type,
2568
+ properties: {
2569
+ args: {
2570
+ name: FnCall.args,
2571
+ defaultValue: []
2572
+ },
2573
+ name: {
2574
+ name: FnCall.name
2575
+ }
2576
+ },
2577
+ superTypes: []
2578
+ },
2579
+ ForEach: {
2580
+ name: ForEach.$type,
2581
+ properties: {
2582
+ src: {
2583
+ name: ForEach.src
2584
+ },
2585
+ statements: {
2586
+ name: ForEach.statements,
2587
+ defaultValue: []
2588
+ },
2589
+ var: {
2590
+ name: ForEach.var
2591
+ }
2592
+ },
2593
+ superTypes: []
2594
+ },
2595
+ FullTextSearch: {
2596
+ name: FullTextSearch.$type,
2597
+ properties: {
2598
+ name: {
2599
+ name: FullTextSearch.name
2600
+ },
2601
+ options: {
2602
+ name: FullTextSearch.options
2603
+ },
2604
+ query: {
2605
+ name: FullTextSearch.query
2606
+ }
2607
+ },
2608
+ superTypes: []
2609
+ },
2610
+ GenericDefBody: {
2611
+ name: GenericDefBody.$type,
2612
+ properties: {
2613
+ attributes: {
2614
+ name: GenericDefBody.attributes,
2615
+ defaultValue: []
2616
+ }
2617
+ },
2618
+ superTypes: []
2619
+ },
2620
+ GenericPropertyDef: {
2621
+ name: GenericPropertyDef.$type,
2622
+ properties: {
2623
+ name: {
2624
+ name: GenericPropertyDef.name
2625
+ },
2626
+ value: {
2627
+ name: GenericPropertyDef.value
2628
+ }
2629
+ },
2630
+ superTypes: []
2631
+ },
2632
+ GlossaryEntryDefinition: {
2633
+ name: GlossaryEntryDefinition.$type,
2634
+ properties: {
2635
+ body: {
2636
+ name: GlossaryEntryDefinition.body
2637
+ },
2638
+ glos: {
2639
+ name: GlossaryEntryDefinition.glos
2640
+ },
2641
+ name: {
2642
+ name: GlossaryEntryDefinition.name
2643
+ }
2644
+ },
2645
+ superTypes: [Definition.$type]
2646
+ },
2647
+ Group: {
2648
+ name: Group.$type,
2649
+ properties: {
2650
+ ge: {
2651
+ name: Group.ge
2652
+ }
2653
+ },
2654
+ superTypes: [PrimExpr.$type]
2655
+ },
2656
+ GroupByClause: {
2657
+ name: GroupByClause.$type,
2658
+ properties: {
2659
+ colNames: {
2660
+ name: GroupByClause.colNames,
2661
+ defaultValue: []
2662
+ }
2663
+ },
2664
+ superTypes: []
2665
+ },
2666
+ Handler: {
2667
+ name: Handler.$type,
2668
+ properties: {
2669
+ except: {
2670
+ name: Handler.except
2671
+ },
2672
+ stmt: {
2673
+ name: Handler.stmt
2674
+ }
2675
+ },
2676
+ superTypes: []
2677
+ },
2678
+ If: {
2679
+ name: If.$type,
2680
+ properties: {
2681
+ cond: {
2682
+ name: If.cond
2683
+ },
2684
+ else: {
2685
+ name: If.else
2686
+ },
2687
+ statements: {
2688
+ name: If.statements,
2689
+ defaultValue: []
2690
+ }
2691
+ },
2692
+ superTypes: []
2693
+ },
2694
+ IfWithAlias: {
2695
+ name: IfWithAlias.$type,
2696
+ properties: {
2697
+ if: {
2698
+ name: IfWithAlias.if
2699
+ }
2700
+ },
2701
+ superTypes: []
2702
+ },
2703
+ Import: {
2704
+ name: Import.$type,
2705
+ properties: {
2706
+ name: {
2707
+ name: Import.name
2708
+ },
2709
+ path: {
2710
+ name: Import.path
2711
+ }
2712
+ },
2713
+ superTypes: []
2714
+ },
2715
+ JoinSpec: {
2716
+ name: JoinSpec.$type,
2717
+ properties: {
2718
+ lhs: {
2719
+ name: JoinSpec.lhs
2720
+ },
2721
+ name: {
2722
+ name: JoinSpec.name
2723
+ },
2724
+ op: {
2725
+ name: JoinSpec.op
2726
+ },
2727
+ rhs: {
2728
+ name: JoinSpec.rhs
2729
+ },
2730
+ type: {
2731
+ name: JoinSpec.type
2732
+ }
2733
+ },
2734
+ superTypes: []
2735
+ },
2736
+ KvPair: {
2737
+ name: KvPair.$type,
2738
+ properties: {
2739
+ key: {
2740
+ name: KvPair.key
2741
+ },
2742
+ value: {
2743
+ name: KvPair.value
2744
+ }
2745
+ },
2746
+ superTypes: []
2747
+ },
2748
+ KvPairs: {
2749
+ name: KvPairs.$type,
2750
+ properties: {
2751
+ pairs: {
2752
+ name: KvPairs.pairs,
2753
+ defaultValue: []
2754
+ }
2755
+ },
2756
+ superTypes: []
2757
+ },
2758
+ Literal: {
2759
+ name: Literal.$type,
2760
+ properties: {
2761
+ array: {
2762
+ name: Literal.array
2763
+ },
2764
+ asyncFnCall: {
2765
+ name: Literal.asyncFnCall
2766
+ },
2767
+ bool: {
2768
+ name: Literal.bool
2769
+ },
2770
+ fnCall: {
2771
+ name: Literal.fnCall
2772
+ },
2773
+ id: {
2774
+ name: Literal.id
2775
+ },
2776
+ map: {
2777
+ name: Literal.map
2778
+ },
2779
+ num: {
2780
+ name: Literal.num
2781
+ },
2782
+ ref: {
2783
+ name: Literal.ref
2784
+ },
2785
+ str: {
2786
+ name: Literal.str
2787
+ }
2788
+ },
2789
+ superTypes: [PrimExpr.$type]
2790
+ },
2791
+ MapEntry: {
2792
+ name: MapEntry.$type,
2793
+ properties: {
2794
+ key: {
2795
+ name: MapEntry.key
2796
+ },
2797
+ value: {
2798
+ name: MapEntry.value
2799
+ }
2800
+ },
2801
+ superTypes: []
2802
+ },
2803
+ MapKey: {
2804
+ name: MapKey.$type,
2805
+ properties: {
2806
+ bool: {
2807
+ name: MapKey.bool
2808
+ },
2809
+ num: {
2810
+ name: MapKey.num
2811
+ },
2812
+ str: {
2813
+ name: MapKey.str
2814
+ }
2815
+ },
2816
+ superTypes: []
2817
+ },
2818
+ MapLiteral: {
2819
+ name: MapLiteral.$type,
2820
+ properties: {
2821
+ entries: {
2822
+ name: MapLiteral.entries,
2823
+ defaultValue: []
2824
+ }
2825
+ },
2826
+ superTypes: []
2827
+ },
2828
+ MetaDefinition: {
2829
+ name: MetaDefinition.$type,
2830
+ properties: {
2831
+ spec: {
2832
+ name: MetaDefinition.spec
2833
+ }
2834
+ },
2835
+ superTypes: []
2836
+ },
2837
+ ModuleDefinition: {
2838
+ name: ModuleDefinition.$type,
2839
+ properties: {
2840
+ defs: {
2841
+ name: ModuleDefinition.defs,
2842
+ defaultValue: []
2843
+ },
2844
+ imports: {
2845
+ name: ModuleDefinition.imports,
2846
+ defaultValue: []
2847
+ },
2848
+ name: {
2849
+ name: ModuleDefinition.name
2850
+ }
2851
+ },
2852
+ superTypes: []
2853
+ },
2854
+ NegExpr: {
2855
+ name: NegExpr.$type,
2856
+ properties: {
2857
+ ne: {
2858
+ name: NegExpr.ne
2859
+ }
2860
+ },
2861
+ superTypes: [PrimExpr.$type]
2862
+ },
2863
+ NodeDefinition: {
2864
+ name: NodeDefinition.$type,
2865
+ properties: {
2866
+ alias: {
2867
+ name: NodeDefinition.alias
2868
+ },
2869
+ name: {
2870
+ name: NodeDefinition.name
2871
+ }
2872
+ },
2873
+ superTypes: []
2874
+ },
2875
+ NotExpr: {
2876
+ name: NotExpr.$type,
2877
+ properties: {
2878
+ ne: {
2879
+ name: NotExpr.ne
2880
+ }
2881
+ },
2882
+ superTypes: [PrimExpr.$type]
2883
+ },
2884
+ OneOfSpec: {
2885
+ name: OneOfSpec.$type,
2886
+ properties: {
2887
+ ref: {
2888
+ name: OneOfSpec.ref
2889
+ }
2890
+ },
2891
+ superTypes: []
2892
+ },
2893
+ OrderByClause: {
2894
+ name: OrderByClause.$type,
2895
+ properties: {
2896
+ colNames: {
2897
+ name: OrderByClause.colNames,
2898
+ defaultValue: []
2899
+ },
2900
+ order: {
2901
+ name: OrderByClause.order
2902
+ }
2903
+ },
2904
+ superTypes: []
2905
+ },
2906
+ Pattern: {
2907
+ name: Pattern.$type,
2908
+ properties: {
2909
+ crudMap: {
2910
+ name: Pattern.crudMap
2911
+ },
2912
+ delete: {
2913
+ name: Pattern.delete
2914
+ },
2915
+ expr: {
2916
+ name: Pattern.expr
2917
+ },
2918
+ forEach: {
2919
+ name: Pattern.forEach
2920
+ },
2921
+ fullTextSearch: {
2922
+ name: Pattern.fullTextSearch
2923
+ },
2924
+ if: {
2925
+ name: Pattern.if
2926
+ },
2927
+ ifWithAlias: {
2928
+ name: Pattern.ifWithAlias
2929
+ },
2930
+ purge: {
2931
+ name: Pattern.purge
2932
+ },
2933
+ return: {
2934
+ name: Pattern.return
2935
+ },
2936
+ throwError: {
2937
+ name: Pattern.throwError
2938
+ }
2939
+ },
2940
+ superTypes: []
2941
+ },
2942
+ PrePostTriggerDefinition: {
2943
+ name: PrePostTriggerDefinition.$type,
2944
+ properties: {
2945
+ after: {
2946
+ name: PrePostTriggerDefinition.after
2947
+ },
2948
+ before: {
2949
+ name: PrePostTriggerDefinition.before
2950
+ }
2951
+ },
2952
+ superTypes: []
2953
+ },
2954
+ PrimExpr: {
2955
+ name: PrimExpr.$type,
2956
+ properties: {
2957
+ },
2958
+ superTypes: [Expr.$type]
2959
+ },
2960
+ PropertyDefinition: {
2961
+ name: PropertyDefinition.$type,
2962
+ properties: {
2963
+ name: {
2964
+ name: PropertyDefinition.name
2965
+ },
2966
+ value: {
2967
+ name: PropertyDefinition.value
2968
+ }
2969
+ },
2970
+ superTypes: []
2971
+ },
2972
+ PublicAgentDefinition: {
2973
+ name: PublicAgentDefinition.$type,
2974
+ properties: {
2975
+ def: {
2976
+ name: PublicAgentDefinition.def
2977
+ }
2978
+ },
2979
+ superTypes: [Definition.$type]
2980
+ },
2981
+ PublicEventDefinition: {
2982
+ name: PublicEventDefinition.$type,
2983
+ properties: {
2984
+ def: {
2985
+ name: PublicEventDefinition.def
2986
+ }
2987
+ },
2988
+ superTypes: [SchemaDefinition.$type]
2989
+ },
2990
+ PublicWorkflowDefinition: {
2991
+ name: PublicWorkflowDefinition.$type,
2992
+ properties: {
2993
+ def: {
2994
+ name: PublicWorkflowDefinition.def
2995
+ }
2996
+ },
2997
+ superTypes: [Definition.$type]
2998
+ },
2999
+ Purge: {
3000
+ name: Purge.$type,
3001
+ properties: {
3002
+ pattern: {
3003
+ name: Purge.pattern
3004
+ }
3005
+ },
3006
+ superTypes: []
3007
+ },
3008
+ RbacAllowSpec: {
3009
+ name: RbacAllowSpec.$type,
3010
+ properties: {
3011
+ oprs: {
3012
+ name: RbacAllowSpec.oprs,
3013
+ defaultValue: []
3014
+ }
3015
+ },
3016
+ superTypes: []
3017
+ },
3018
+ RbacExpressionSpec: {
3019
+ name: RbacExpressionSpec.$type,
3020
+ properties: {
3021
+ lhs: {
3022
+ name: RbacExpressionSpec.lhs
3023
+ },
3024
+ rhs: {
3025
+ name: RbacExpressionSpec.rhs
3026
+ }
3027
+ },
3028
+ superTypes: []
3029
+ },
3030
+ RbacOpr: {
3031
+ name: RbacOpr.$type,
3032
+ properties: {
3033
+ value: {
3034
+ name: RbacOpr.value
3035
+ }
3036
+ },
3037
+ superTypes: []
3038
+ },
3039
+ RbacRolesSpec: {
3040
+ name: RbacRolesSpec.$type,
3041
+ properties: {
3042
+ roles: {
3043
+ name: RbacRolesSpec.roles,
3044
+ defaultValue: []
3045
+ }
3046
+ },
3047
+ superTypes: []
3048
+ },
3049
+ RbacSpecDefinition: {
3050
+ name: RbacSpecDefinition.$type,
3051
+ properties: {
3052
+ specEntries: {
3053
+ name: RbacSpecDefinition.specEntries,
3054
+ defaultValue: []
3055
+ }
3056
+ },
3057
+ superTypes: []
3058
+ },
3059
+ RbacSpecEntries: {
3060
+ name: RbacSpecEntries.$type,
3061
+ properties: {
3062
+ entries: {
3063
+ name: RbacSpecEntries.entries,
3064
+ defaultValue: []
3065
+ }
3066
+ },
3067
+ superTypes: []
3068
+ },
3069
+ RbacSpecEntry: {
3070
+ name: RbacSpecEntry.$type,
3071
+ properties: {
3072
+ allow: {
3073
+ name: RbacSpecEntry.allow
3074
+ },
3075
+ expr: {
3076
+ name: RbacSpecEntry.expr
3077
+ },
3078
+ role: {
3079
+ name: RbacSpecEntry.role
3080
+ }
3081
+ },
3082
+ superTypes: []
3083
+ },
3084
+ RecordDefinition: {
3085
+ name: RecordDefinition.$type,
3086
+ properties: {
3087
+ extends: {
3088
+ name: RecordDefinition.extends
3089
+ },
3090
+ name: {
3091
+ name: RecordDefinition.name
3092
+ },
3093
+ schema: {
3094
+ name: RecordDefinition.schema
3095
+ }
3096
+ },
3097
+ superTypes: [SchemaDefinition.$type]
3098
+ },
3099
+ RecordExtraDefinition: {
3100
+ name: RecordExtraDefinition.$type,
3101
+ properties: {
3102
+ actions: {
3103
+ name: RecordExtraDefinition.actions
3104
+ },
3105
+ meta: {
3106
+ name: RecordExtraDefinition.meta
3107
+ },
3108
+ prePost: {
3109
+ name: RecordExtraDefinition.prePost
3110
+ },
3111
+ rbacSpec: {
3112
+ name: RecordExtraDefinition.rbacSpec
3113
+ },
3114
+ uq: {
3115
+ name: RecordExtraDefinition.uq
3116
+ }
3117
+ },
3118
+ superTypes: []
3119
+ },
3120
+ RecordSchemaDefinition: {
3121
+ name: RecordSchemaDefinition.$type,
3122
+ properties: {
3123
+ attributes: {
3124
+ name: RecordSchemaDefinition.attributes,
3125
+ defaultValue: []
3126
+ },
3127
+ extras: {
3128
+ name: RecordSchemaDefinition.extras,
3129
+ defaultValue: []
3130
+ }
3131
+ },
3132
+ superTypes: []
3133
+ },
3134
+ RefSpec: {
3135
+ name: RefSpec.$type,
3136
+ properties: {
3137
+ ref: {
3138
+ name: RefSpec.ref
3139
+ },
3140
+ type: {
3141
+ name: RefSpec.type
3142
+ }
3143
+ },
3144
+ superTypes: []
3145
+ },
3146
+ RelNodes: {
3147
+ name: RelNodes.$type,
3148
+ properties: {
3149
+ node1: {
3150
+ name: RelNodes.node1
3151
+ },
3152
+ node2: {
3153
+ name: RelNodes.node2
3154
+ }
3155
+ },
3156
+ superTypes: []
3157
+ },
3158
+ RelationshipDefinition: {
3159
+ name: RelationshipDefinition.$type,
3160
+ properties: {
3161
+ name: {
3162
+ name: RelationshipDefinition.name
3163
+ },
3164
+ nodes: {
3165
+ name: RelationshipDefinition.nodes
3166
+ },
3167
+ properties: {
3168
+ name: RelationshipDefinition.properties,
3169
+ defaultValue: []
3170
+ },
3171
+ schema: {
3172
+ name: RelationshipDefinition.schema
3173
+ },
3174
+ type: {
3175
+ name: RelationshipDefinition.type
3176
+ }
3177
+ },
3178
+ superTypes: [Definition.$type]
3179
+ },
3180
+ RelationshipPattern: {
3181
+ name: RelationshipPattern.$type,
3182
+ properties: {
3183
+ name: {
3184
+ name: RelationshipPattern.name
3185
+ },
3186
+ pattern: {
3187
+ name: RelationshipPattern.pattern
3188
+ }
3189
+ },
3190
+ superTypes: []
3191
+ },
3192
+ ResolverDefinition: {
3193
+ name: ResolverDefinition.$type,
3194
+ properties: {
3195
+ methods: {
3196
+ name: ResolverDefinition.methods,
3197
+ defaultValue: []
3198
+ },
3199
+ name: {
3200
+ name: ResolverDefinition.name
3201
+ },
3202
+ paths: {
3203
+ name: ResolverDefinition.paths,
3204
+ defaultValue: []
3205
+ }
3206
+ },
3207
+ superTypes: [Definition.$type]
3208
+ },
3209
+ ResolverFnName: {
3210
+ name: ResolverFnName.$type,
3211
+ properties: {
3212
+ name: {
3213
+ name: ResolverFnName.name
3214
+ }
3215
+ },
3216
+ superTypes: []
3217
+ },
3218
+ ResolverMethodName: {
3219
+ name: ResolverMethodName.$type,
3220
+ properties: {
3221
+ name: {
3222
+ name: ResolverMethodName.name
3223
+ }
3224
+ },
3225
+ superTypes: []
3226
+ },
3227
+ ResolverMethodSpec: {
3228
+ name: ResolverMethodSpec.$type,
3229
+ properties: {
3230
+ fn: {
3231
+ name: ResolverMethodSpec.fn
3232
+ },
3233
+ key: {
3234
+ name: ResolverMethodSpec.key
3235
+ }
3236
+ },
3237
+ superTypes: []
3238
+ },
3239
+ RetryDefinition: {
3240
+ name: RetryDefinition.$type,
3241
+ properties: {
3242
+ attempts: {
3243
+ name: RetryDefinition.attempts
3244
+ },
3245
+ backoff: {
3246
+ name: RetryDefinition.backoff
3247
+ },
3248
+ name: {
3249
+ name: RetryDefinition.name
3250
+ }
3251
+ },
3252
+ superTypes: [Definition.$type]
3253
+ },
3254
+ Return: {
3255
+ name: Return.$type,
3256
+ properties: {
3257
+ pattern: {
3258
+ name: Return.pattern
3259
+ }
3260
+ },
3261
+ superTypes: []
3262
+ },
3263
+ RuntimeHint: {
3264
+ name: RuntimeHint.$type,
3265
+ properties: {
3266
+ aliasSpec: {
3267
+ name: RuntimeHint.aliasSpec
3268
+ },
3269
+ catchSpec: {
3270
+ name: RuntimeHint.catchSpec
3271
+ },
3272
+ thenSpec: {
3273
+ name: RuntimeHint.thenSpec
3274
+ }
3275
+ },
3276
+ superTypes: []
3277
+ },
3278
+ ScenarioDefinition: {
3279
+ name: ScenarioDefinition.$type,
3280
+ properties: {
3281
+ body: {
3282
+ name: ScenarioDefinition.body
3283
+ },
3284
+ name: {
3285
+ name: ScenarioDefinition.name
3286
+ },
3287
+ scn: {
3288
+ name: ScenarioDefinition.scn
3289
+ }
3290
+ },
3291
+ superTypes: [Definition.$type]
3292
+ },
3293
+ SchemaDefinition: {
3294
+ name: SchemaDefinition.$type,
3295
+ properties: {
3296
+ },
3297
+ superTypes: [Definition.$type]
3298
+ },
3299
+ SelectIntoEntry: {
3300
+ name: SelectIntoEntry.$type,
3301
+ properties: {
3302
+ aggregate: {
3303
+ name: SelectIntoEntry.aggregate
3304
+ },
3305
+ alias: {
3306
+ name: SelectIntoEntry.alias
3307
+ },
3308
+ attribute: {
3309
+ name: SelectIntoEntry.attribute
3310
+ }
3311
+ },
3312
+ superTypes: []
3313
+ },
3314
+ SelectIntoSpec: {
3315
+ name: SelectIntoSpec.$type,
3316
+ properties: {
3317
+ entries: {
3318
+ name: SelectIntoSpec.entries,
3319
+ defaultValue: []
3320
+ }
3321
+ },
3322
+ superTypes: []
3323
+ },
3324
+ SetAttribute: {
3325
+ name: SetAttribute.$type,
3326
+ properties: {
3327
+ aggregate: {
3328
+ name: SetAttribute.aggregate
3329
+ },
3330
+ name: {
3331
+ name: SetAttribute.name
3332
+ },
3333
+ op: {
3334
+ name: SetAttribute.op
3335
+ },
3336
+ value: {
3337
+ name: SetAttribute.value
3338
+ }
3339
+ },
3340
+ superTypes: []
3341
+ },
3342
+ StandaloneStatement: {
3343
+ name: StandaloneStatement.$type,
3344
+ properties: {
3345
+ stmt: {
3346
+ name: StandaloneStatement.stmt
3347
+ }
3348
+ },
3349
+ superTypes: [Definition.$type]
3350
+ },
3351
+ Statement: {
3352
+ name: Statement.$type,
3353
+ properties: {
3354
+ hints: {
3355
+ name: Statement.hints,
3356
+ defaultValue: []
3357
+ },
3358
+ pattern: {
3359
+ name: Statement.pattern
3360
+ }
3361
+ },
3362
+ superTypes: [FlowStepSpec.$type]
3363
+ },
3364
+ ThenSpec: {
3365
+ name: ThenSpec.$type,
3366
+ properties: {
3367
+ statements: {
3368
+ name: ThenSpec.statements,
3369
+ defaultValue: []
3370
+ }
3371
+ },
3372
+ superTypes: []
3373
+ },
3374
+ ThrowError: {
3375
+ name: ThrowError.$type,
3376
+ properties: {
3377
+ reason: {
3378
+ name: ThrowError.reason
3379
+ }
3380
+ },
3381
+ superTypes: []
3382
+ },
3383
+ TriggerDefinition: {
3384
+ name: TriggerDefinition.$type,
3385
+ properties: {
3386
+ entries: {
3387
+ name: TriggerDefinition.entries,
3388
+ defaultValue: []
3389
+ }
3390
+ },
3391
+ superTypes: []
3392
+ },
3393
+ TriggerEntry: {
3394
+ name: TriggerEntry.$type,
3395
+ properties: {
3396
+ async: {
3397
+ name: TriggerEntry.async
3398
+ },
3399
+ event: {
3400
+ name: TriggerEntry.event
3401
+ },
3402
+ on: {
3403
+ name: TriggerEntry.on
3404
+ }
3405
+ },
3406
+ superTypes: []
3407
+ },
3408
+ WhereSpec: {
3409
+ name: WhereSpec.$type,
3410
+ properties: {
3411
+ clauses: {
3412
+ name: WhereSpec.clauses,
3413
+ defaultValue: []
3414
+ }
3415
+ },
3416
+ superTypes: []
3417
+ },
3418
+ WhereSpecClause: {
3419
+ name: WhereSpecClause.$type,
3420
+ properties: {
3421
+ lhs: {
3422
+ name: WhereSpecClause.lhs
3423
+ },
3424
+ op: {
3425
+ name: WhereSpecClause.op
3426
+ },
3427
+ rhs: {
3428
+ name: WhereSpecClause.rhs
3429
+ }
3430
+ },
3431
+ superTypes: []
3432
+ },
3433
+ WorkflowDefinition: {
3434
+ name: WorkflowDefinition.$type,
3435
+ properties: {
3436
+ header: {
3437
+ name: WorkflowDefinition.header
3438
+ },
3439
+ name: {
3440
+ name: WorkflowDefinition.name
3441
+ },
3442
+ statements: {
3443
+ name: WorkflowDefinition.statements,
3444
+ defaultValue: []
3445
+ }
3446
+ },
3447
+ superTypes: [Definition.$type]
3448
+ },
3449
+ WorkflowHeader: {
3450
+ name: WorkflowHeader.$type,
3451
+ properties: {
3452
+ name: {
3453
+ name: WorkflowHeader.name
3454
+ },
3455
+ prefix: {
3456
+ name: WorkflowHeader.prefix
3457
+ },
3458
+ tag: {
3459
+ name: WorkflowHeader.tag
3460
+ }
3461
+ },
3462
+ superTypes: []
2675
3463
  }
2676
- }
3464
+ } as const satisfies langium.AstMetaData
2677
3465
  }
2678
3466
 
2679
3467
  export const reflection = new AgentlangAstReflection();