@sitecoreai-labs/sitecoreai-cli 0.1.2 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/agents/tasks/agent.js +2 -2
  2. package/dist/agents/tasks/resources.js +2 -2
  3. package/dist/agents/tasks/space.js +1 -1
  4. package/dist/brand/api/auth.d.ts +16 -9
  5. package/dist/brand/api/auth.js +29 -19
  6. package/dist/brand/credential.d.ts +71 -1
  7. package/dist/brand/credential.js +119 -2
  8. package/dist/brand/recipe/diff.js +7 -2
  9. package/dist/brand/recipe/kind.js +0 -0
  10. package/dist/brand/recipe/schema.d.ts +113 -7
  11. package/dist/brand/recipe/schema.js +137 -8
  12. package/dist/brand/seed.d.ts +9 -5
  13. package/dist/brand/seed.js +30 -5
  14. package/dist/brief/api/briefs.d.ts +8 -0
  15. package/dist/brief/api/briefs.js +49 -11
  16. package/dist/brief/index.d.ts +1 -1
  17. package/dist/brief/index.js +2 -1
  18. package/dist/brief/recipe/index.d.ts +11 -2
  19. package/dist/brief/recipe/index.js +17 -3
  20. package/dist/brief/recipe/instance-diff.d.ts +4 -0
  21. package/dist/brief/recipe/instance-diff.js +77 -0
  22. package/dist/brief/recipe/instance-kind.d.ts +4 -0
  23. package/dist/brief/recipe/instance-kind.js +190 -0
  24. package/dist/brief/recipe/instance-schema.d.ts +61 -0
  25. package/dist/brief/recipe/instance-schema.js +68 -0
  26. package/dist/brief/recipe/schema.js +4 -1
  27. package/dist/brief/tasks/index.d.ts +35 -0
  28. package/dist/brief/tasks/index.js +62 -1
  29. package/dist/campaigns/recipe/schema.d.ts +39 -8
  30. package/dist/campaigns/recipe/schema.js +40 -10
  31. package/dist/commands/agents/sync.js +2 -2
  32. package/dist/commands/brand/seed.js +1 -1
  33. package/dist/commands/brand/sync.js +2 -2
  34. package/dist/commands/brief/create.d.ts +2 -0
  35. package/dist/commands/brief/create.js +56 -0
  36. package/dist/commands/brief/index.d.ts +3 -1
  37. package/dist/commands/brief/index.js +11 -1
  38. package/dist/commands/brief/sync.d.ts +9 -6
  39. package/dist/commands/brief/sync.js +54 -22
  40. package/dist/commands/brief/update.d.ts +2 -0
  41. package/dist/commands/brief/update.js +84 -0
  42. package/dist/commands/campaign/sync.js +2 -2
  43. package/dist/mcp/descriptions.js +3 -3
  44. package/dist/mcp/tools/brief-recipe.js +67 -23
  45. package/dist/mcp/tools/brief.js +83 -6
  46. package/dist/recipe/compile/design-parameters-template.js +5 -3
  47. package/dist/recipe/compile/enumeration.js +6 -11
  48. package/dist/recipe/compile/shared.js +12 -12
  49. package/dist/recipe/compile.js +4 -4
  50. package/dist/recipe/io.d.ts +8 -3
  51. package/dist/recipe/io.js +11 -81
  52. package/dist/recipe/items/read-current.js +31 -24
  53. package/dist/recipe/schema/recipe.d.ts +167 -84
  54. package/dist/recipe/schema/recipe.js +130 -46
  55. package/dist/recipe/schema/source-fields.d.ts +20 -0
  56. package/dist/recipe/schema/source-fields.js +25 -1
  57. package/dist/recipe/validate.d.ts +3 -3
  58. package/dist/recipe/validate.js +20 -10
  59. package/dist/sync/aggregate-kinds.js +1 -0
  60. package/dist/sync/aggregate.js +2 -2
  61. package/dist/sync/io.d.ts +13 -3
  62. package/dist/sync/io.js +43 -17
  63. package/dist/sync/typescript-recipe.d.ts +30 -0
  64. package/dist/sync/typescript-recipe.js +112 -0
  65. package/package.json +1 -1
@@ -1,18 +1,32 @@
1
1
  import { z } from "zod";
2
2
  /**
3
- * Sitecore-side override on a field or param. Defaults apply when omitted.
3
+ * The picker-scope source ("Sitecore's Source field") expressed as a
4
+ * discriminated union over the two real modes:
4
5
  *
5
- * The picker-scope concept (Sitecore's `Source` field) is expressed as
6
- * three composable structured fields rather than a stringly-typed
7
- * mini-language. They combine: e.g. `sourceScope` + `sourceTypes` becomes
8
- * `DataSource=<path>&IncludeTemplatesForSelection={GUID},...` on emit.
6
+ * - `filter` composable structured fields. `types` is a picker
7
+ * filter restricting which recipe-defined templates appear; `query`
8
+ * is a Sitecore Query; `scope` is a fixed content-tree path. They
9
+ * combine, e.g. `scope + types` → `DataSource=<path>&IncludeTemplatesForSelection=...`.
10
+ * - `raw` — verbatim Source string, the escape hatch. Use when the
11
+ * structured surface doesn't fit (e.g. a bare path Treelist source
12
+ * like `/sitecore/content/Tags`).
9
13
  *
10
- * sourceTypes — "picker filter": only items of these recipe handles.
11
- * sourceQuery — "where to look": a Sitecore Query (e.g. `$site/...`).
12
- * sourceScope — "where to look": a fixed content-tree path.
13
- * sourceRaw — escape hatch; verbatim Source string (mutually exclusive
14
- * with the structured fields).
14
+ * Previously the four fields were peers on `SitecoreFieldAugment` with
15
+ * a `.refine` enforcing the mutex; the union makes the constraint
16
+ * structural so JSON Schema's `oneOf` expresses it natively and Agent
17
+ * Studio can't emit an invalid combination. See
18
+ * `docs/recipe-schema-audit.md` (A1).
15
19
  */
20
+ export declare const SitecoreFieldSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
21
+ kind: z.ZodLiteral<"filter">;
22
+ types: z.ZodOptional<z.ZodArray<z.ZodString>>;
23
+ query: z.ZodOptional<z.ZodString>;
24
+ scope: z.ZodOptional<z.ZodString>;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ kind: z.ZodLiteral<"raw">;
27
+ value: z.ZodString;
28
+ }, z.core.$strip>], "kind">;
29
+ export type SitecoreFieldSource = z.infer<typeof SitecoreFieldSourceSchema>;
16
30
  export declare const SitecoreFieldAugmentSchema: z.ZodObject<{
17
31
  type: z.ZodOptional<z.ZodEnum<{
18
32
  number: "number";
@@ -33,10 +47,15 @@ export declare const SitecoreFieldAugmentSchema: z.ZodObject<{
33
47
  treelist: "treelist";
34
48
  "treelist-with-search": "treelist-with-search";
35
49
  }>>;
36
- sourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
- sourceQuery: z.ZodOptional<z.ZodString>;
38
- sourceScope: z.ZodOptional<z.ZodString>;
39
- sourceRaw: z.ZodOptional<z.ZodString>;
50
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
51
+ kind: z.ZodLiteral<"filter">;
52
+ types: z.ZodOptional<z.ZodArray<z.ZodString>>;
53
+ query: z.ZodOptional<z.ZodString>;
54
+ scope: z.ZodOptional<z.ZodString>;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ kind: z.ZodLiteral<"raw">;
57
+ value: z.ZodString;
58
+ }, z.core.$strip>], "kind">>;
40
59
  hint: z.ZodOptional<z.ZodString>;
41
60
  required: z.ZodOptional<z.ZodBoolean>;
42
61
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -48,7 +67,7 @@ export declare const SitecoreFieldAugmentSchema: z.ZodObject<{
48
67
  versioned: "versioned";
49
68
  shared: "shared";
50
69
  }>>;
51
- }, z.core.$strip>;
70
+ }, z.core.$loose>;
52
71
  export type SitecoreFieldAugment = z.infer<typeof SitecoreFieldAugmentSchema>;
53
72
  export declare const FieldDefinitionSchema: z.ZodObject<{
54
73
  name: z.ZodString;
@@ -88,10 +107,15 @@ export declare const FieldDefinitionSchema: z.ZodObject<{
88
107
  treelist: "treelist";
89
108
  "treelist-with-search": "treelist-with-search";
90
109
  }>>;
91
- sourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
92
- sourceQuery: z.ZodOptional<z.ZodString>;
93
- sourceScope: z.ZodOptional<z.ZodString>;
94
- sourceRaw: z.ZodOptional<z.ZodString>;
110
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
111
+ kind: z.ZodLiteral<"filter">;
112
+ types: z.ZodOptional<z.ZodArray<z.ZodString>>;
113
+ query: z.ZodOptional<z.ZodString>;
114
+ scope: z.ZodOptional<z.ZodString>;
115
+ }, z.core.$strip>, z.ZodObject<{
116
+ kind: z.ZodLiteral<"raw">;
117
+ value: z.ZodString;
118
+ }, z.core.$strip>], "kind">>;
95
119
  hint: z.ZodOptional<z.ZodString>;
96
120
  required: z.ZodOptional<z.ZodBoolean>;
97
121
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -103,7 +127,7 @@ export declare const FieldDefinitionSchema: z.ZodObject<{
103
127
  versioned: "versioned";
104
128
  shared: "shared";
105
129
  }>>;
106
- }, z.core.$strip>>;
130
+ }, z.core.$loose>>;
107
131
  }, z.core.$strip>;
108
132
  export type FieldDefinition = z.infer<typeof FieldDefinitionSchema>;
109
133
  export declare const DesignParameterSchema: z.ZodObject<{
@@ -143,10 +167,15 @@ export declare const DesignParameterSchema: z.ZodObject<{
143
167
  treelist: "treelist";
144
168
  "treelist-with-search": "treelist-with-search";
145
169
  }>>;
146
- sourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
147
- sourceQuery: z.ZodOptional<z.ZodString>;
148
- sourceScope: z.ZodOptional<z.ZodString>;
149
- sourceRaw: z.ZodOptional<z.ZodString>;
170
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
171
+ kind: z.ZodLiteral<"filter">;
172
+ types: z.ZodOptional<z.ZodArray<z.ZodString>>;
173
+ query: z.ZodOptional<z.ZodString>;
174
+ scope: z.ZodOptional<z.ZodString>;
175
+ }, z.core.$strip>, z.ZodObject<{
176
+ kind: z.ZodLiteral<"raw">;
177
+ value: z.ZodString;
178
+ }, z.core.$strip>], "kind">>;
150
179
  hint: z.ZodOptional<z.ZodString>;
151
180
  required: z.ZodOptional<z.ZodBoolean>;
152
181
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -158,7 +187,7 @@ export declare const DesignParameterSchema: z.ZodObject<{
158
187
  versioned: "versioned";
159
188
  shared: "shared";
160
189
  }>>;
161
- }, z.core.$strip>>;
190
+ }, z.core.$loose>>;
162
191
  }, z.core.$strip>;
163
192
  export type DesignParameter = z.infer<typeof DesignParameterSchema>;
164
193
  export declare const RenderingVariantDefinitionSchema: z.ZodObject<{
@@ -182,7 +211,7 @@ export type RenderingVariantDefinition = z.infer<typeof RenderingVariantDefiniti
182
211
  export declare const PlaceholderDefinitionSchema: z.ZodObject<{
183
212
  key: z.ZodString;
184
213
  displayName: z.ZodOptional<z.ZodString>;
185
- folder: z.ZodOptional<z.ZodString>;
214
+ folder: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
186
215
  dynamic: z.ZodOptional<z.ZodBoolean>;
187
216
  allowedComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
188
217
  }, z.core.$strip>;
@@ -213,7 +242,7 @@ export declare const PlaceholderRecipeSchema: z.ZodObject<{
213
242
  displayName: z.ZodString;
214
243
  description: z.ZodOptional<z.ZodString>;
215
244
  icon: z.ZodOptional<z.ZodString>;
216
- folder: z.ZodOptional<z.ZodString>;
245
+ folder: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
217
246
  dynamic: z.ZodDefault<z.ZodBoolean>;
218
247
  allowedComponents: z.ZodDefault<z.ZodArray<z.ZodString>>;
219
248
  }, z.core.$strip>;
@@ -364,10 +393,15 @@ export declare const ComponentTemplateRecipeSchema: z.ZodObject<{
364
393
  treelist: "treelist";
365
394
  "treelist-with-search": "treelist-with-search";
366
395
  }>>;
367
- sourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
368
- sourceQuery: z.ZodOptional<z.ZodString>;
369
- sourceScope: z.ZodOptional<z.ZodString>;
370
- sourceRaw: z.ZodOptional<z.ZodString>;
396
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
397
+ kind: z.ZodLiteral<"filter">;
398
+ types: z.ZodOptional<z.ZodArray<z.ZodString>>;
399
+ query: z.ZodOptional<z.ZodString>;
400
+ scope: z.ZodOptional<z.ZodString>;
401
+ }, z.core.$strip>, z.ZodObject<{
402
+ kind: z.ZodLiteral<"raw">;
403
+ value: z.ZodString;
404
+ }, z.core.$strip>], "kind">>;
371
405
  hint: z.ZodOptional<z.ZodString>;
372
406
  required: z.ZodOptional<z.ZodBoolean>;
373
407
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -379,7 +413,7 @@ export declare const ComponentTemplateRecipeSchema: z.ZodObject<{
379
413
  versioned: "versioned";
380
414
  shared: "shared";
381
415
  }>>;
382
- }, z.core.$strip>>;
416
+ }, z.core.$loose>>;
383
417
  }, z.core.$strip>>>;
384
418
  insertOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
385
419
  datasource: z.ZodOptional<z.ZodObject<{
@@ -444,10 +478,15 @@ export declare const ComponentTemplateRecipeSchema: z.ZodObject<{
444
478
  treelist: "treelist";
445
479
  "treelist-with-search": "treelist-with-search";
446
480
  }>>;
447
- sourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
448
- sourceQuery: z.ZodOptional<z.ZodString>;
449
- sourceScope: z.ZodOptional<z.ZodString>;
450
- sourceRaw: z.ZodOptional<z.ZodString>;
481
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
482
+ kind: z.ZodLiteral<"filter">;
483
+ types: z.ZodOptional<z.ZodArray<z.ZodString>>;
484
+ query: z.ZodOptional<z.ZodString>;
485
+ scope: z.ZodOptional<z.ZodString>;
486
+ }, z.core.$strip>, z.ZodObject<{
487
+ kind: z.ZodLiteral<"raw">;
488
+ value: z.ZodString;
489
+ }, z.core.$strip>], "kind">>;
451
490
  hint: z.ZodOptional<z.ZodString>;
452
491
  required: z.ZodOptional<z.ZodBoolean>;
453
492
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -459,13 +498,13 @@ export declare const ComponentTemplateRecipeSchema: z.ZodObject<{
459
498
  versioned: "versioned";
460
499
  shared: "shared";
461
500
  }>>;
462
- }, z.core.$strip>>;
501
+ }, z.core.$loose>>;
463
502
  }, z.core.$strip>>>;
464
503
  placedIn: z.ZodDefault<z.ZodArray<z.ZodString>>;
465
504
  placeholders: z.ZodDefault<z.ZodArray<z.ZodObject<{
466
505
  key: z.ZodString;
467
506
  displayName: z.ZodOptional<z.ZodString>;
468
- folder: z.ZodOptional<z.ZodString>;
507
+ folder: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
469
508
  dynamic: z.ZodOptional<z.ZodBoolean>;
470
509
  allowedComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
471
510
  }, z.core.$strip>>>;
@@ -564,10 +603,15 @@ export declare const ContentTemplateRecipeSchema: z.ZodObject<{
564
603
  treelist: "treelist";
565
604
  "treelist-with-search": "treelist-with-search";
566
605
  }>>;
567
- sourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
568
- sourceQuery: z.ZodOptional<z.ZodString>;
569
- sourceScope: z.ZodOptional<z.ZodString>;
570
- sourceRaw: z.ZodOptional<z.ZodString>;
606
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
607
+ kind: z.ZodLiteral<"filter">;
608
+ types: z.ZodOptional<z.ZodArray<z.ZodString>>;
609
+ query: z.ZodOptional<z.ZodString>;
610
+ scope: z.ZodOptional<z.ZodString>;
611
+ }, z.core.$strip>, z.ZodObject<{
612
+ kind: z.ZodLiteral<"raw">;
613
+ value: z.ZodString;
614
+ }, z.core.$strip>], "kind">>;
571
615
  hint: z.ZodOptional<z.ZodString>;
572
616
  required: z.ZodOptional<z.ZodBoolean>;
573
617
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -579,7 +623,7 @@ export declare const ContentTemplateRecipeSchema: z.ZodObject<{
579
623
  versioned: "versioned";
580
624
  shared: "shared";
581
625
  }>>;
582
- }, z.core.$strip>>;
626
+ }, z.core.$loose>>;
583
627
  }, z.core.$strip>>>;
584
628
  insertOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
585
629
  defaultWorkflow: z.ZodOptional<z.ZodString>;
@@ -613,7 +657,9 @@ export declare const DesignParametersTemplateRecipeSchema: z.ZodObject<{
613
657
  displayName: z.ZodString;
614
658
  description: z.ZodOptional<z.ZodString>;
615
659
  icon: z.ZodOptional<z.ZodString>;
616
- section: z.ZodString;
660
+ section: z.ZodObject<{
661
+ handle: z.ZodString;
662
+ }, z.core.$strip>;
617
663
  params: z.ZodDefault<z.ZodArray<z.ZodObject<{
618
664
  name: z.ZodString;
619
665
  shape: z.ZodEnum<{
@@ -651,10 +697,15 @@ export declare const DesignParametersTemplateRecipeSchema: z.ZodObject<{
651
697
  treelist: "treelist";
652
698
  "treelist-with-search": "treelist-with-search";
653
699
  }>>;
654
- sourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
655
- sourceQuery: z.ZodOptional<z.ZodString>;
656
- sourceScope: z.ZodOptional<z.ZodString>;
657
- sourceRaw: z.ZodOptional<z.ZodString>;
700
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
701
+ kind: z.ZodLiteral<"filter">;
702
+ types: z.ZodOptional<z.ZodArray<z.ZodString>>;
703
+ query: z.ZodOptional<z.ZodString>;
704
+ scope: z.ZodOptional<z.ZodString>;
705
+ }, z.core.$strip>, z.ZodObject<{
706
+ kind: z.ZodLiteral<"raw">;
707
+ value: z.ZodString;
708
+ }, z.core.$strip>], "kind">>;
658
709
  hint: z.ZodOptional<z.ZodString>;
659
710
  required: z.ZodOptional<z.ZodBoolean>;
660
711
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -666,7 +717,7 @@ export declare const DesignParametersTemplateRecipeSchema: z.ZodObject<{
666
717
  versioned: "versioned";
667
718
  shared: "shared";
668
719
  }>>;
669
- }, z.core.$strip>>;
720
+ }, z.core.$loose>>;
670
721
  }, z.core.$strip>>>;
671
722
  }, z.core.$strip>;
672
723
  export type DesignParametersTemplateRecipe = z.infer<typeof DesignParametersTemplateRecipeSchema>;
@@ -1449,10 +1500,15 @@ export declare const PageTemplateRecipeSchema: z.ZodObject<{
1449
1500
  treelist: "treelist";
1450
1501
  "treelist-with-search": "treelist-with-search";
1451
1502
  }>>;
1452
- sourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1453
- sourceQuery: z.ZodOptional<z.ZodString>;
1454
- sourceScope: z.ZodOptional<z.ZodString>;
1455
- sourceRaw: z.ZodOptional<z.ZodString>;
1503
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1504
+ kind: z.ZodLiteral<"filter">;
1505
+ types: z.ZodOptional<z.ZodArray<z.ZodString>>;
1506
+ query: z.ZodOptional<z.ZodString>;
1507
+ scope: z.ZodOptional<z.ZodString>;
1508
+ }, z.core.$strip>, z.ZodObject<{
1509
+ kind: z.ZodLiteral<"raw">;
1510
+ value: z.ZodString;
1511
+ }, z.core.$strip>], "kind">>;
1456
1512
  hint: z.ZodOptional<z.ZodString>;
1457
1513
  required: z.ZodOptional<z.ZodBoolean>;
1458
1514
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -1464,7 +1520,7 @@ export declare const PageTemplateRecipeSchema: z.ZodObject<{
1464
1520
  versioned: "versioned";
1465
1521
  shared: "shared";
1466
1522
  }>>;
1467
- }, z.core.$strip>>;
1523
+ }, z.core.$loose>>;
1468
1524
  }, z.core.$strip>>>;
1469
1525
  insertOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
1470
1526
  layout: z.ZodOptional<z.ZodObject<{
@@ -1861,7 +1917,7 @@ export declare const EnumerationRecipeSchema: z.ZodObject<{
1861
1917
  site: "site";
1862
1918
  siteCollection: "siteCollection";
1863
1919
  }>;
1864
- folder: z.ZodOptional<z.ZodString>;
1920
+ folder: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
1865
1921
  }, z.core.$strip>>;
1866
1922
  values: z.ZodArray<z.ZodObject<{
1867
1923
  name: z.ZodString;
@@ -2045,10 +2101,15 @@ export declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2045
2101
  treelist: "treelist";
2046
2102
  "treelist-with-search": "treelist-with-search";
2047
2103
  }>>;
2048
- sourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2049
- sourceQuery: z.ZodOptional<z.ZodString>;
2050
- sourceScope: z.ZodOptional<z.ZodString>;
2051
- sourceRaw: z.ZodOptional<z.ZodString>;
2104
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2105
+ kind: z.ZodLiteral<"filter">;
2106
+ types: z.ZodOptional<z.ZodArray<z.ZodString>>;
2107
+ query: z.ZodOptional<z.ZodString>;
2108
+ scope: z.ZodOptional<z.ZodString>;
2109
+ }, z.core.$strip>, z.ZodObject<{
2110
+ kind: z.ZodLiteral<"raw">;
2111
+ value: z.ZodString;
2112
+ }, z.core.$strip>], "kind">>;
2052
2113
  hint: z.ZodOptional<z.ZodString>;
2053
2114
  required: z.ZodOptional<z.ZodBoolean>;
2054
2115
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -2060,7 +2121,7 @@ export declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2060
2121
  versioned: "versioned";
2061
2122
  shared: "shared";
2062
2123
  }>>;
2063
- }, z.core.$strip>>;
2124
+ }, z.core.$loose>>;
2064
2125
  }, z.core.$strip>>>;
2065
2126
  insertOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2066
2127
  datasource: z.ZodOptional<z.ZodObject<{
@@ -2125,10 +2186,15 @@ export declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2125
2186
  treelist: "treelist";
2126
2187
  "treelist-with-search": "treelist-with-search";
2127
2188
  }>>;
2128
- sourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2129
- sourceQuery: z.ZodOptional<z.ZodString>;
2130
- sourceScope: z.ZodOptional<z.ZodString>;
2131
- sourceRaw: z.ZodOptional<z.ZodString>;
2189
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2190
+ kind: z.ZodLiteral<"filter">;
2191
+ types: z.ZodOptional<z.ZodArray<z.ZodString>>;
2192
+ query: z.ZodOptional<z.ZodString>;
2193
+ scope: z.ZodOptional<z.ZodString>;
2194
+ }, z.core.$strip>, z.ZodObject<{
2195
+ kind: z.ZodLiteral<"raw">;
2196
+ value: z.ZodString;
2197
+ }, z.core.$strip>], "kind">>;
2132
2198
  hint: z.ZodOptional<z.ZodString>;
2133
2199
  required: z.ZodOptional<z.ZodBoolean>;
2134
2200
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -2140,13 +2206,13 @@ export declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2140
2206
  versioned: "versioned";
2141
2207
  shared: "shared";
2142
2208
  }>>;
2143
- }, z.core.$strip>>;
2209
+ }, z.core.$loose>>;
2144
2210
  }, z.core.$strip>>>;
2145
2211
  placedIn: z.ZodDefault<z.ZodArray<z.ZodString>>;
2146
2212
  placeholders: z.ZodDefault<z.ZodArray<z.ZodObject<{
2147
2213
  key: z.ZodString;
2148
2214
  displayName: z.ZodOptional<z.ZodString>;
2149
- folder: z.ZodOptional<z.ZodString>;
2215
+ folder: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
2150
2216
  dynamic: z.ZodOptional<z.ZodBoolean>;
2151
2217
  allowedComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
2152
2218
  }, z.core.$strip>>>;
@@ -2205,10 +2271,15 @@ export declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2205
2271
  treelist: "treelist";
2206
2272
  "treelist-with-search": "treelist-with-search";
2207
2273
  }>>;
2208
- sourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2209
- sourceQuery: z.ZodOptional<z.ZodString>;
2210
- sourceScope: z.ZodOptional<z.ZodString>;
2211
- sourceRaw: z.ZodOptional<z.ZodString>;
2274
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2275
+ kind: z.ZodLiteral<"filter">;
2276
+ types: z.ZodOptional<z.ZodArray<z.ZodString>>;
2277
+ query: z.ZodOptional<z.ZodString>;
2278
+ scope: z.ZodOptional<z.ZodString>;
2279
+ }, z.core.$strip>, z.ZodObject<{
2280
+ kind: z.ZodLiteral<"raw">;
2281
+ value: z.ZodString;
2282
+ }, z.core.$strip>], "kind">>;
2212
2283
  hint: z.ZodOptional<z.ZodString>;
2213
2284
  required: z.ZodOptional<z.ZodBoolean>;
2214
2285
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -2220,7 +2291,7 @@ export declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2220
2291
  versioned: "versioned";
2221
2292
  shared: "shared";
2222
2293
  }>>;
2223
- }, z.core.$strip>>;
2294
+ }, z.core.$loose>>;
2224
2295
  }, z.core.$strip>>>;
2225
2296
  insertOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2226
2297
  defaultWorkflow: z.ZodOptional<z.ZodString>;
@@ -2554,10 +2625,15 @@ export declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2554
2625
  treelist: "treelist";
2555
2626
  "treelist-with-search": "treelist-with-search";
2556
2627
  }>>;
2557
- sourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2558
- sourceQuery: z.ZodOptional<z.ZodString>;
2559
- sourceScope: z.ZodOptional<z.ZodString>;
2560
- sourceRaw: z.ZodOptional<z.ZodString>;
2628
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2629
+ kind: z.ZodLiteral<"filter">;
2630
+ types: z.ZodOptional<z.ZodArray<z.ZodString>>;
2631
+ query: z.ZodOptional<z.ZodString>;
2632
+ scope: z.ZodOptional<z.ZodString>;
2633
+ }, z.core.$strip>, z.ZodObject<{
2634
+ kind: z.ZodLiteral<"raw">;
2635
+ value: z.ZodString;
2636
+ }, z.core.$strip>], "kind">>;
2561
2637
  hint: z.ZodOptional<z.ZodString>;
2562
2638
  required: z.ZodOptional<z.ZodBoolean>;
2563
2639
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -2569,7 +2645,7 @@ export declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2569
2645
  versioned: "versioned";
2570
2646
  shared: "shared";
2571
2647
  }>>;
2572
- }, z.core.$strip>>;
2648
+ }, z.core.$loose>>;
2573
2649
  }, z.core.$strip>>>;
2574
2650
  insertOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
2575
2651
  layout: z.ZodOptional<z.ZodObject<{
@@ -2668,7 +2744,7 @@ export declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2668
2744
  displayName: z.ZodString;
2669
2745
  description: z.ZodOptional<z.ZodString>;
2670
2746
  icon: z.ZodOptional<z.ZodString>;
2671
- folder: z.ZodOptional<z.ZodString>;
2747
+ folder: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
2672
2748
  dynamic: z.ZodDefault<z.ZodBoolean>;
2673
2749
  allowedComponents: z.ZodDefault<z.ZodArray<z.ZodString>>;
2674
2750
  }, z.core.$strip>, z.ZodObject<{
@@ -2679,7 +2755,9 @@ export declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2679
2755
  displayName: z.ZodString;
2680
2756
  description: z.ZodOptional<z.ZodString>;
2681
2757
  icon: z.ZodOptional<z.ZodString>;
2682
- section: z.ZodString;
2758
+ section: z.ZodObject<{
2759
+ handle: z.ZodString;
2760
+ }, z.core.$strip>;
2683
2761
  params: z.ZodDefault<z.ZodArray<z.ZodObject<{
2684
2762
  name: z.ZodString;
2685
2763
  shape: z.ZodEnum<{
@@ -2717,10 +2795,15 @@ export declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2717
2795
  treelist: "treelist";
2718
2796
  "treelist-with-search": "treelist-with-search";
2719
2797
  }>>;
2720
- sourceTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
2721
- sourceQuery: z.ZodOptional<z.ZodString>;
2722
- sourceScope: z.ZodOptional<z.ZodString>;
2723
- sourceRaw: z.ZodOptional<z.ZodString>;
2798
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2799
+ kind: z.ZodLiteral<"filter">;
2800
+ types: z.ZodOptional<z.ZodArray<z.ZodString>>;
2801
+ query: z.ZodOptional<z.ZodString>;
2802
+ scope: z.ZodOptional<z.ZodString>;
2803
+ }, z.core.$strip>, z.ZodObject<{
2804
+ kind: z.ZodLiteral<"raw">;
2805
+ value: z.ZodString;
2806
+ }, z.core.$strip>], "kind">>;
2724
2807
  hint: z.ZodOptional<z.ZodString>;
2725
2808
  required: z.ZodOptional<z.ZodBoolean>;
2726
2809
  defaultValue: z.ZodOptional<z.ZodString>;
@@ -2732,7 +2815,7 @@ export declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2732
2815
  versioned: "versioned";
2733
2816
  shared: "shared";
2734
2817
  }>>;
2735
- }, z.core.$strip>>;
2818
+ }, z.core.$loose>>;
2736
2819
  }, z.core.$strip>>>;
2737
2820
  }, z.core.$strip>, z.ZodObject<{
2738
2821
  kind: z.ZodLiteral<"section-definition">;
@@ -2847,7 +2930,7 @@ export declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2847
2930
  site: "site";
2848
2931
  siteCollection: "siteCollection";
2849
2932
  }>;
2850
- folder: z.ZodOptional<z.ZodString>;
2933
+ folder: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodString>>>;
2851
2934
  }, z.core.$strip>>;
2852
2935
  values: z.ZodArray<z.ZodObject<{
2853
2936
  name: z.ZodString;