@cosmicdrift/kumiko-framework 0.336.1 → 0.338.0

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 (116) hide show
  1. package/dist/api/api-constants.d.ts +1 -0
  2. package/dist/api/api-constants.js +9 -0
  3. package/dist/api/auth-middleware.js +45 -21
  4. package/dist/api/auth-routes.d.ts +1 -0
  5. package/dist/api/auth-routes.js +20 -0
  6. package/dist/api/redis-sse-broker.d.ts +1 -0
  7. package/dist/api/redis-sse-broker.js +4 -5
  8. package/dist/api/server.js +14 -4
  9. package/dist/api/sse-route.js +14 -1
  10. package/dist/bun-db/query.js +6 -4
  11. package/dist/compliance/sub-processors.js +10 -1
  12. package/dist/crypto/kek-source.js +1 -0
  13. package/dist/db/blind-index-cleanup.d.ts +1 -0
  14. package/dist/db/blind-index-cleanup.js +12 -1
  15. package/dist/db/event-store-executor-read.js +30 -4
  16. package/dist/db/index.d.ts +1 -1
  17. package/dist/db/index.js +1 -1
  18. package/dist/db/queries/event-consumer.d.ts +2 -2
  19. package/dist/db/queries/event-consumer.js +5 -4
  20. package/dist/db/queries/event-store.js +6 -6
  21. package/dist/db/queries/projection-rebuild.js +4 -4
  22. package/dist/db/queries/seed-context.js +6 -6
  23. package/dist/db/tenant-db.js +16 -8
  24. package/dist/derivatives/derivatives-context.js +5 -2
  25. package/dist/engine/boot-validator/access-declarations.js +13 -7
  26. package/dist/engine/boot-validator/entity-handler.d.ts +1 -0
  27. package/dist/engine/boot-validator/entity-handler.js +26 -0
  28. package/dist/engine/boot-validator/index.js +2 -1
  29. package/dist/engine/boot-validator/pii-retention.js +11 -1
  30. package/dist/engine/boot-validator/projection-list-screens.d.ts +1 -1
  31. package/dist/engine/boot-validator/projection-list-screens.js +13 -0
  32. package/dist/engine/boot-validator/screens.js +12 -0
  33. package/dist/engine/build-config-feature-schema.js +4 -0
  34. package/dist/engine/config-helpers.d.ts +2 -1
  35. package/dist/engine/config-helpers.js +1 -0
  36. package/dist/engine/define-feature.js +1 -0
  37. package/dist/engine/extensions/escape-hatch-usage.js +3 -1
  38. package/dist/engine/feature-ast/extractors/hooks.js +7 -1
  39. package/dist/engine/feature-ast/extractors/index.d.ts +1 -1
  40. package/dist/engine/feature-ast/extractors/index.js +1 -1
  41. package/dist/engine/feature-ast/extractors/jobs-routes.js +6 -2
  42. package/dist/engine/feature-ast/extractors/round3.d.ts +2 -1
  43. package/dist/engine/feature-ast/extractors/round3.js +11 -0
  44. package/dist/engine/feature-ast/extractors/shared.js +1 -3
  45. package/dist/engine/feature-ast/index.d.ts +1 -1
  46. package/dist/engine/feature-ast/parse.js +3 -1
  47. package/dist/engine/feature-ast/patch.d.ts +3 -0
  48. package/dist/engine/feature-ast/patch.js +8 -11
  49. package/dist/engine/feature-ast/patcher.d.ts +6 -1
  50. package/dist/engine/feature-ast/patcher.js +3 -0
  51. package/dist/engine/feature-ast/pattern-change-schema.d.ts +630 -1
  52. package/dist/engine/feature-ast/pattern-change-schema.js +19 -2
  53. package/dist/engine/feature-ast/patterns.d.ts +8 -2
  54. package/dist/engine/feature-ast/patterns.js +1 -0
  55. package/dist/engine/feature-ast/render.js +9 -0
  56. package/dist/engine/feature-builder-state.d.ts +2 -1
  57. package/dist/engine/feature-builder-state.js +1 -0
  58. package/dist/engine/feature-config-events-jobs.d.ts +4 -1
  59. package/dist/engine/feature-config-events-jobs.js +25 -1
  60. package/dist/engine/feature-manifest.d.ts +1 -0
  61. package/dist/engine/feature-manifest.js +1 -0
  62. package/dist/engine/feature-ui-extensions.js +24 -21
  63. package/dist/engine/index.d.ts +1 -1
  64. package/dist/engine/pattern-library/library.js +2 -1
  65. package/dist/engine/pattern-library/static-schemas.d.ts +1 -0
  66. package/dist/engine/pattern-library/static-schemas.js +47 -4
  67. package/dist/engine/registry-facade.js +7 -0
  68. package/dist/engine/registry-ingest.js +7 -0
  69. package/dist/engine/registry-state.d.ts +2 -1
  70. package/dist/engine/registry-state.js +1 -0
  71. package/dist/engine/registry-validate.d.ts +1 -1
  72. package/dist/engine/registry-validate.js +39 -17
  73. package/dist/engine/registry.js +2 -2
  74. package/dist/engine/types/index.d.ts +3 -3
  75. package/dist/engine/types/index.js +1 -1
  76. package/dist/engine/types/screen.d.ts +1 -1
  77. package/dist/engine/types/screen.js +1 -1
  78. package/dist/errors/classes.d.ts +5 -0
  79. package/dist/errors/classes.js +15 -0
  80. package/dist/errors/index.d.ts +1 -1
  81. package/dist/errors/index.js +1 -1
  82. package/dist/i18n/required-surface-keys.js +3 -5
  83. package/dist/jobs/job-runner.js +2 -1
  84. package/dist/migrations/pending-rebuilds.d.ts +2 -0
  85. package/dist/migrations/pending-rebuilds.js +3 -0
  86. package/dist/pipeline/dispatch-query.js +3 -5
  87. package/dist/pipeline/dispatch-shared.js +32 -5
  88. package/dist/pipeline/dispatch-stream.js +2 -4
  89. package/dist/pipeline/dispatch-write.js +2 -4
  90. package/dist/pipeline/event-dispatcher-delivery.d.ts +0 -1
  91. package/dist/pipeline/event-dispatcher-delivery.js +1 -8
  92. package/dist/pipeline/event-dispatcher.js +16 -25
  93. package/dist/pipeline/handler-access-error.d.ts +3 -0
  94. package/dist/pipeline/handler-access-error.js +17 -0
  95. package/dist/pipeline/irreversible-operation-gate.js +9 -3
  96. package/dist/pipeline/member-read-only-transaction.js +8 -3
  97. package/dist/pipeline/system-hooks.js +7 -1
  98. package/dist/pipeline/system-identity-switch.js +11 -8
  99. package/dist/search/meilisearch-adapter.js +0 -2
  100. package/dist/stack/push-entity-projection-tables.js +5 -3
  101. package/dist/stack/redis.d.ts +1 -0
  102. package/dist/stack/redis.js +11 -2
  103. package/dist/stack/table-helpers.d.ts +3 -1
  104. package/dist/stack/table-helpers.js +9 -7
  105. package/dist/stack/test-stack.js +1 -7
  106. package/dist/testing/handler-context.js +3 -6
  107. package/dist/ui-types/index.d.ts +1 -1
  108. package/dist/ui-types/index.js +1 -1
  109. package/dist/upgrade-cli.js +29 -2
  110. package/package.json +4 -4
  111. package/src/changes.json +153 -0
  112. package/src/scripts/codemod/collect-source-files.ts +48 -0
  113. package/src/scripts/codemod/migrate-cross-tenant.ts +3 -23
  114. package/src/scripts/codemod/migrate-db-raw.ts +6 -23
  115. package/src/scripts/codemod/migrate-open-to-all.ts +4 -24
  116. package/src/scripts/codemod/unprocessable-error-details-reason.ts +47 -3
@@ -1,6 +1,6 @@
1
1
  import * as z from "zod";
2
2
  import type { ConfigKeyDefinition, ConfigKeyType, JobDefinition } from "../types/config.js";
3
- import type { MetricOptions, SecretOptions } from "../types/feature.js";
3
+ import type { MetricOptions, SecretNamespaceOptions, SecretOptions } from "../types/feature.js";
4
4
  import type { EntityDefinition } from "../types/fields.js";
5
5
  import type { NavDefinition } from "../types/nav.js";
6
6
  import type { RelationDefinition } from "../types/relations.js";
@@ -94,6 +94,12 @@ export declare const PATTERN_SCHEMAS_BY_KIND: {
94
94
  shortName: z.ZodString;
95
95
  options: z.ZodType<SecretOptions, unknown, z.core.$ZodTypeInternals<SecretOptions, unknown>>;
96
96
  }, z.core.$strict>;
97
+ secretNamespace: z.ZodObject<{
98
+ kind: z.ZodLiteral<"secretNamespace">;
99
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
100
+ shortName: z.ZodString;
101
+ options: z.ZodType<SecretNamespaceOptions, unknown, z.core.$ZodTypeInternals<SecretNamespaceOptions, unknown>>;
102
+ }, z.core.$strict>;
97
103
  claimKey: z.ZodObject<{
98
104
  kind: z.ZodLiteral<"claimKey">;
99
105
  source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
@@ -191,6 +197,11 @@ export declare const PATTERN_SCHEMAS_BY_KIND: {
191
197
  }, z.core.$strict>]>>;
192
198
  escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
193
199
  reason: z.ZodString;
200
+ grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
201
+ globalWrites: "globalWrites";
202
+ systemIdentity: "systemIdentity";
203
+ unsafeRaw: "unsafeRaw";
204
+ }>>>;
194
205
  }, z.core.$strict>, z.ZodObject<{
195
206
  __raw: z.ZodString;
196
207
  }, z.core.$strict>]>>;
@@ -243,6 +254,11 @@ export declare const PATTERN_SCHEMAS_BY_KIND: {
243
254
  }, z.core.$strict>]>>;
244
255
  escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
245
256
  reason: z.ZodString;
257
+ grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
258
+ globalWrites: "globalWrites";
259
+ systemIdentity: "systemIdentity";
260
+ unsafeRaw: "unsafeRaw";
261
+ }>>>;
246
262
  }, z.core.$strict>, z.ZodObject<{
247
263
  __raw: z.ZodString;
248
264
  }, z.core.$strict>]>>;
@@ -284,6 +300,11 @@ export declare const PATTERN_SCHEMAS_BY_KIND: {
284
300
  }, z.core.$strict>]>>;
285
301
  escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
286
302
  reason: z.ZodString;
303
+ grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
304
+ globalWrites: "globalWrites";
305
+ systemIdentity: "systemIdentity";
306
+ unsafeRaw: "unsafeRaw";
307
+ }>>>;
287
308
  }, z.core.$strict>, z.ZodObject<{
288
309
  __raw: z.ZodString;
289
310
  }, z.core.$strict>]>>;
@@ -315,6 +336,11 @@ export declare const PATTERN_SCHEMAS_BY_KIND: {
315
336
  }>>;
316
337
  escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
317
338
  reason: z.ZodString;
339
+ grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
340
+ globalWrites: "globalWrites";
341
+ systemIdentity: "systemIdentity";
342
+ unsafeRaw: "unsafeRaw";
343
+ }>>>;
318
344
  }, z.core.$strict>, z.ZodObject<{
319
345
  __raw: z.ZodString;
320
346
  }, z.core.$strict>]>>;
@@ -530,6 +556,501 @@ export declare const PATTERN_SCHEMAS_BY_KIND: {
530
556
  methodName: z.ZodString;
531
557
  }, z.core.$strict>;
532
558
  };
559
+ export declare const patternSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
560
+ kind: z.ZodLiteral<"entity">;
561
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
562
+ entityName: z.ZodString;
563
+ definition: z.ZodType<EntityDefinition, unknown, z.core.$ZodTypeInternals<EntityDefinition, unknown>>;
564
+ }, z.core.$strict>, z.ZodObject<{
565
+ kind: z.ZodLiteral<"relation">;
566
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
567
+ entityName: z.ZodString;
568
+ relationName: z.ZodString;
569
+ definition: z.ZodType<RelationDefinition, unknown, z.core.$ZodTypeInternals<RelationDefinition, unknown>>;
570
+ }, z.core.$strict>, z.ZodObject<{
571
+ kind: z.ZodLiteral<"nav">;
572
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
573
+ definition: z.ZodType<NavDefinition, unknown, z.core.$ZodTypeInternals<NavDefinition, unknown>>;
574
+ }, z.core.$strict>, z.ZodObject<{
575
+ kind: z.ZodLiteral<"workspace">;
576
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
577
+ definition: z.ZodType<WorkspaceDefinition, unknown, z.core.$ZodTypeInternals<WorkspaceDefinition, unknown>>;
578
+ }, z.core.$strict>, z.ZodObject<{
579
+ kind: z.ZodLiteral<"config">;
580
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
581
+ keys: z.ZodType<Readonly<Record<string, ConfigKeyDefinition<ConfigKeyType>>>, unknown, z.core.$ZodTypeInternals<Readonly<Record<string, ConfigKeyDefinition<ConfigKeyType>>>, unknown>>;
582
+ }, z.core.$strict>, z.ZodObject<{
583
+ kind: z.ZodLiteral<"translations">;
584
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
585
+ keys: z.ZodType<Readonly<Record<string, Readonly<Record<string, import("@cosmicdrift/kumiko-types/config").TranslationValue>>>>, unknown, z.core.$ZodTypeInternals<Readonly<Record<string, Readonly<Record<string, import("@cosmicdrift/kumiko-types/config").TranslationValue>>>>, unknown>>;
586
+ }, z.core.$strict>, z.ZodObject<{
587
+ kind: z.ZodLiteral<"requires">;
588
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
589
+ featureNames: z.ZodType<readonly string[], unknown, z.core.$ZodTypeInternals<readonly string[], unknown>>;
590
+ }, z.core.$strict>, z.ZodObject<{
591
+ kind: z.ZodLiteral<"optionalRequires">;
592
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
593
+ featureNames: z.ZodType<readonly string[], unknown, z.core.$ZodTypeInternals<readonly string[], unknown>>;
594
+ }, z.core.$strict>, z.ZodObject<{
595
+ kind: z.ZodLiteral<"systemScope">;
596
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
597
+ }, z.core.$strict>, z.ZodObject<{
598
+ kind: z.ZodLiteral<"toggleable">;
599
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
600
+ default: z.ZodBoolean;
601
+ }, z.core.$strict>, z.ZodObject<{
602
+ kind: z.ZodLiteral<"describe">;
603
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
604
+ text: z.ZodString;
605
+ }, z.core.$strict>, z.ZodObject<{
606
+ kind: z.ZodLiteral<"uiHints">;
607
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
608
+ }, z.core.$strict>, z.ZodObject<{
609
+ kind: z.ZodLiteral<"metric">;
610
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
611
+ shortName: z.ZodString;
612
+ options: z.ZodType<MetricOptions, unknown, z.core.$ZodTypeInternals<MetricOptions, unknown>>;
613
+ }, z.core.$strict>, z.ZodObject<{
614
+ kind: z.ZodLiteral<"secret">;
615
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
616
+ shortName: z.ZodString;
617
+ options: z.ZodType<SecretOptions, unknown, z.core.$ZodTypeInternals<SecretOptions, unknown>>;
618
+ }, z.core.$strict>, z.ZodObject<{
619
+ kind: z.ZodLiteral<"secretNamespace">;
620
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
621
+ shortName: z.ZodString;
622
+ options: z.ZodType<SecretNamespaceOptions, unknown, z.core.$ZodTypeInternals<SecretNamespaceOptions, unknown>>;
623
+ }, z.core.$strict>, z.ZodObject<{
624
+ kind: z.ZodLiteral<"claimKey">;
625
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
626
+ shortName: z.ZodString;
627
+ claimType: z.ZodEnum<{
628
+ boolean: "boolean";
629
+ number: "number";
630
+ object: "object";
631
+ string: "string";
632
+ "string[]": "string[]";
633
+ }>;
634
+ }, z.core.$strict>, z.ZodObject<{
635
+ kind: z.ZodLiteral<"referenceData">;
636
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
637
+ entityName: z.ZodString;
638
+ data: z.ZodCustom<readonly Record<string, unknown>[], readonly Record<string, unknown>[]>;
639
+ upsertKey: z.ZodOptional<z.ZodString>;
640
+ }, z.core.$strict>, z.ZodObject<{
641
+ kind: z.ZodLiteral<"readsConfig">;
642
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
643
+ qualifiedKeys: z.ZodType<readonly string[], unknown, z.core.$ZodTypeInternals<readonly string[], unknown>>;
644
+ }, z.core.$strict>, z.ZodObject<{
645
+ kind: z.ZodLiteral<"useExtension">;
646
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
647
+ extensionName: z.ZodString;
648
+ extensionNameRaw: z.ZodOptional<z.ZodString>;
649
+ entityName: z.ZodString;
650
+ options: z.ZodOptional<z.ZodType<Readonly<Record<string, unknown>>, unknown, z.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, unknown>>>;
651
+ }, z.core.$strict>, z.ZodObject<{
652
+ kind: z.ZodLiteral<"usesApi">;
653
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
654
+ apiName: z.ZodString;
655
+ }, z.core.$strict>, z.ZodObject<{
656
+ kind: z.ZodLiteral<"exposesApi">;
657
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
658
+ apiName: z.ZodString;
659
+ }, z.core.$strict>, z.ZodObject<{
660
+ kind: z.ZodLiteral<"treeActions">;
661
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
662
+ definitions: z.ZodType<Readonly<Record<string, TreeActionDef>>, unknown, z.core.$ZodTypeInternals<Readonly<Record<string, TreeActionDef>>, unknown>>;
663
+ }, z.core.$strict>, z.ZodObject<{
664
+ kind: z.ZodLiteral<"screen">;
665
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
666
+ definition: z.ZodType<ScreenDefinition, unknown, z.core.$ZodTypeInternals<ScreenDefinition, unknown>>;
667
+ opaqueProps: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>>>;
668
+ }, z.core.$strict>, z.ZodObject<{
669
+ description: z.ZodOptional<z.ZodString>;
670
+ unsafeSkipTransitionGuard: z.ZodOptional<z.ZodBoolean>;
671
+ access: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
672
+ roles: z.ZodArray<z.ZodString>;
673
+ personalData: z.ZodOptional<z.ZodLiteral<"public-intake">>;
674
+ }, z.core.$strict>, z.ZodObject<{
675
+ openToAll: z.ZodObject<{
676
+ reason: z.ZodString;
677
+ personalData: z.ZodOptional<z.ZodLiteral<"tenant-members">>;
678
+ }, z.core.$strict>;
679
+ }, z.core.$strict>]>, z.ZodObject<{
680
+ __raw: z.ZodString;
681
+ }, z.core.$strict>]>>;
682
+ agent: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
683
+ expose: z.ZodOptional<z.ZodBoolean>;
684
+ risk: z.ZodOptional<z.ZodEnum<{
685
+ high: "high";
686
+ low: "low";
687
+ mid: "mid";
688
+ }>>;
689
+ }, z.core.$strict>, z.ZodObject<{
690
+ __raw: z.ZodString;
691
+ }, z.core.$strict>]>>;
692
+ rateLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
693
+ per: z.ZodEnum<{
694
+ ip: "ip";
695
+ "ip+handler": "ip+handler";
696
+ tenant: "tenant";
697
+ "tenant+handler": "tenant+handler";
698
+ user: "user";
699
+ "user+handler": "user+handler";
700
+ }>;
701
+ limit: z.ZodNumber;
702
+ windowSeconds: z.ZodNumber;
703
+ cost: z.ZodOptional<z.ZodNumber>;
704
+ }, z.core.$strict>, z.ZodObject<{
705
+ disabled: z.ZodLiteral<true>;
706
+ reason: z.ZodString;
707
+ }, z.core.$strict>]>, z.ZodObject<{
708
+ __raw: z.ZodString;
709
+ }, z.core.$strict>]>>;
710
+ escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
711
+ reason: z.ZodString;
712
+ grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
713
+ globalWrites: "globalWrites";
714
+ systemIdentity: "systemIdentity";
715
+ unsafeRaw: "unsafeRaw";
716
+ }>>>;
717
+ }, z.core.$strict>, z.ZodObject<{
718
+ __raw: z.ZodString;
719
+ }, z.core.$strict>]>>;
720
+ kind: z.ZodLiteral<"writeHandler">;
721
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
722
+ handlerName: z.ZodOptional<z.ZodString>;
723
+ schemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
724
+ handlerBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
725
+ }, z.core.$strict>, z.ZodObject<{
726
+ description: z.ZodOptional<z.ZodString>;
727
+ access: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
728
+ roles: z.ZodArray<z.ZodString>;
729
+ personalData: z.ZodOptional<z.ZodLiteral<"public-intake">>;
730
+ }, z.core.$strict>, z.ZodObject<{
731
+ openToAll: z.ZodObject<{
732
+ reason: z.ZodString;
733
+ personalData: z.ZodOptional<z.ZodLiteral<"tenant-members">>;
734
+ }, z.core.$strict>;
735
+ }, z.core.$strict>]>, z.ZodObject<{
736
+ __raw: z.ZodString;
737
+ }, z.core.$strict>]>>;
738
+ agent: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
739
+ expose: z.ZodOptional<z.ZodBoolean>;
740
+ risk: z.ZodOptional<z.ZodEnum<{
741
+ high: "high";
742
+ low: "low";
743
+ mid: "mid";
744
+ }>>;
745
+ }, z.core.$strict>, z.ZodObject<{
746
+ __raw: z.ZodString;
747
+ }, z.core.$strict>]>>;
748
+ rateLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
749
+ per: z.ZodEnum<{
750
+ ip: "ip";
751
+ "ip+handler": "ip+handler";
752
+ tenant: "tenant";
753
+ "tenant+handler": "tenant+handler";
754
+ user: "user";
755
+ "user+handler": "user+handler";
756
+ }>;
757
+ limit: z.ZodNumber;
758
+ windowSeconds: z.ZodNumber;
759
+ cost: z.ZodOptional<z.ZodNumber>;
760
+ }, z.core.$strict>, z.ZodObject<{
761
+ disabled: z.ZodLiteral<true>;
762
+ reason: z.ZodString;
763
+ }, z.core.$strict>]>, z.ZodObject<{
764
+ __raw: z.ZodString;
765
+ }, z.core.$strict>]>>;
766
+ escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
767
+ reason: z.ZodString;
768
+ grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
769
+ globalWrites: "globalWrites";
770
+ systemIdentity: "systemIdentity";
771
+ unsafeRaw: "unsafeRaw";
772
+ }>>>;
773
+ }, z.core.$strict>, z.ZodObject<{
774
+ __raw: z.ZodString;
775
+ }, z.core.$strict>]>>;
776
+ kind: z.ZodLiteral<"queryHandler">;
777
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
778
+ handlerName: z.ZodOptional<z.ZodString>;
779
+ schemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
780
+ handlerBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
781
+ }, z.core.$strict>, z.ZodObject<{
782
+ access: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
783
+ roles: z.ZodArray<z.ZodString>;
784
+ personalData: z.ZodOptional<z.ZodLiteral<"public-intake">>;
785
+ }, z.core.$strict>, z.ZodObject<{
786
+ openToAll: z.ZodObject<{
787
+ reason: z.ZodString;
788
+ personalData: z.ZodOptional<z.ZodLiteral<"tenant-members">>;
789
+ }, z.core.$strict>;
790
+ }, z.core.$strict>]>, z.ZodObject<{
791
+ __raw: z.ZodString;
792
+ }, z.core.$strict>]>>;
793
+ rateLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
794
+ per: z.ZodEnum<{
795
+ ip: "ip";
796
+ "ip+handler": "ip+handler";
797
+ tenant: "tenant";
798
+ "tenant+handler": "tenant+handler";
799
+ user: "user";
800
+ "user+handler": "user+handler";
801
+ }>;
802
+ limit: z.ZodNumber;
803
+ windowSeconds: z.ZodNumber;
804
+ cost: z.ZodOptional<z.ZodNumber>;
805
+ }, z.core.$strict>, z.ZodObject<{
806
+ disabled: z.ZodLiteral<true>;
807
+ reason: z.ZodString;
808
+ }, z.core.$strict>]>, z.ZodObject<{
809
+ __raw: z.ZodString;
810
+ }, z.core.$strict>]>>;
811
+ escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
812
+ reason: z.ZodString;
813
+ grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
814
+ globalWrites: "globalWrites";
815
+ systemIdentity: "systemIdentity";
816
+ unsafeRaw: "unsafeRaw";
817
+ }>>>;
818
+ }, z.core.$strict>, z.ZodObject<{
819
+ __raw: z.ZodString;
820
+ }, z.core.$strict>]>>;
821
+ kind: z.ZodLiteral<"streamHandler">;
822
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
823
+ handlerName: z.ZodOptional<z.ZodString>;
824
+ schemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
825
+ handlerBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
826
+ }, z.core.$strict>, z.ZodObject<{
827
+ kind: z.ZodLiteral<"hook">;
828
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
829
+ hookType: z.ZodEnum<{
830
+ postDelete: "postDelete";
831
+ postQuery: "postQuery";
832
+ postSave: "postSave";
833
+ preDelete: "preDelete";
834
+ preQuery: "preQuery";
835
+ preSave: "preSave";
836
+ validation: "validation";
837
+ }>;
838
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodObject<{
839
+ allOf: z.ZodString;
840
+ }, z.core.$strict>]>;
841
+ fnBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
842
+ phase: z.ZodOptional<z.ZodEnum<{
843
+ afterCommit: "afterCommit";
844
+ inTransaction: "inTransaction";
845
+ }>>;
846
+ escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
847
+ reason: z.ZodString;
848
+ grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
849
+ globalWrites: "globalWrites";
850
+ systemIdentity: "systemIdentity";
851
+ unsafeRaw: "unsafeRaw";
852
+ }>>>;
853
+ }, z.core.$strict>, z.ZodObject<{
854
+ __raw: z.ZodString;
855
+ }, z.core.$strict>]>>;
856
+ }, z.core.$strict>, z.ZodObject<{
857
+ kind: z.ZodLiteral<"job">;
858
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
859
+ jobName: z.ZodString;
860
+ options: z.ZodType<Omit<JobDefinition, "handler" | "name">, unknown, z.core.$ZodTypeInternals<Omit<JobDefinition, "handler" | "name">, unknown>>;
861
+ handlerBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
862
+ }, z.core.$strict>, z.ZodObject<{
863
+ kind: z.ZodLiteral<"notification">;
864
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
865
+ notificationName: z.ZodString;
866
+ trigger: z.ZodObject<{
867
+ on: z.ZodString;
868
+ }, z.core.$strict>;
869
+ recipientBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
870
+ dataBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
871
+ templates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>>;
872
+ }, z.core.$strict>, z.ZodObject<{
873
+ kind: z.ZodLiteral<"authClaims">;
874
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
875
+ fnBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
876
+ }, z.core.$strict>, z.ZodObject<{
877
+ kind: z.ZodLiteral<"httpRoute">;
878
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
879
+ method: z.ZodEnum<{
880
+ DELETE: "DELETE";
881
+ GET: "GET";
882
+ HEAD: "HEAD";
883
+ OPTIONS: "OPTIONS";
884
+ PATCH: "PATCH";
885
+ POST: "POST";
886
+ PUT: "PUT";
887
+ }>;
888
+ path: z.ZodString;
889
+ anonymous: z.ZodBoolean;
890
+ handlerBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
891
+ }, z.core.$strict>, z.ZodObject<{
892
+ kind: z.ZodLiteral<"projection">;
893
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
894
+ name: z.ZodString;
895
+ sourceEntity: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
896
+ applyBodies: z.ZodRecord<z.ZodString, z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
897
+ }, z.core.$strict>, z.ZodObject<{
898
+ kind: z.ZodLiteral<"multiStreamProjection">;
899
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
900
+ name: z.ZodString;
901
+ applyBodies: z.ZodRecord<z.ZodString, z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
902
+ errorMode: z.ZodOptional<z.ZodObject<{
903
+ continuous: z.ZodOptional<z.ZodObject<{
904
+ skipApplyErrors: z.ZodOptional<z.ZodBoolean>;
905
+ }, z.core.$strict>>;
906
+ rebuild: z.ZodOptional<z.ZodObject<{
907
+ skipApplyErrors: z.ZodOptional<z.ZodBoolean>;
908
+ }, z.core.$strict>>;
909
+ }, z.core.$strict>>;
910
+ runIn: z.ZodOptional<z.ZodEnum<{
911
+ api: "api";
912
+ both: "both";
913
+ worker: "worker";
914
+ }>>;
915
+ delivery: z.ZodOptional<z.ZodEnum<{
916
+ "per-instance": "per-instance";
917
+ shared: "shared";
918
+ }>>;
919
+ }, z.core.$strict>, z.ZodObject<{
920
+ kind: z.ZodLiteral<"defineEvent">;
921
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
922
+ eventName: z.ZodString;
923
+ eventNameRaw: z.ZodOptional<z.ZodString>;
924
+ schemaSource: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
925
+ version: z.ZodOptional<z.ZodNumber>;
926
+ piiFields: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
927
+ migrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>>;
928
+ }, z.core.$strict>, z.ZodObject<{
929
+ kind: z.ZodLiteral<"extendsRegistrar">;
930
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
931
+ extensionName: z.ZodString;
932
+ extensionNameRaw: z.ZodOptional<z.ZodString>;
933
+ defBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
934
+ }, z.core.$strict>, z.ZodObject<{
935
+ kind: z.ZodLiteral<"envSchema">;
936
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
937
+ schemaBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
938
+ }, z.core.$strict>, z.ZodObject<{
939
+ kind: z.ZodLiteral<"ai.generate">;
940
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
941
+ argsSource: z.ZodOptional<z.ZodCustom<{
942
+ readonly __raw: string;
943
+ }, {
944
+ readonly __raw: string;
945
+ }>>;
946
+ stepKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
947
+ readonly __raw: string;
948
+ }, {
949
+ readonly __raw: string;
950
+ }>]>>;
951
+ promptKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
952
+ readonly __raw: string;
953
+ }, {
954
+ readonly __raw: string;
955
+ }>]>>;
956
+ promptFallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
957
+ readonly __raw: string;
958
+ }, {
959
+ readonly __raw: string;
960
+ }>]>>;
961
+ defaults: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
962
+ enabled: z.ZodBoolean;
963
+ providerId: z.ZodOptional<z.ZodString>;
964
+ model: z.ZodOptional<z.ZodString>;
965
+ params: z.ZodCustom<Record<string, unknown>, Record<string, unknown>>;
966
+ }, z.core.$strict>, z.ZodCustom<{
967
+ readonly __raw: string;
968
+ }, {
969
+ readonly __raw: string;
970
+ }>]>>;
971
+ paramsSchemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
972
+ inputBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
973
+ }, z.core.$strict>, z.ZodObject<{
974
+ kind: z.ZodLiteral<"ai.extract">;
975
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
976
+ argsSource: z.ZodOptional<z.ZodCustom<{
977
+ readonly __raw: string;
978
+ }, {
979
+ readonly __raw: string;
980
+ }>>;
981
+ stepKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
982
+ readonly __raw: string;
983
+ }, {
984
+ readonly __raw: string;
985
+ }>]>>;
986
+ promptKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
987
+ readonly __raw: string;
988
+ }, {
989
+ readonly __raw: string;
990
+ }>]>>;
991
+ promptFallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
992
+ readonly __raw: string;
993
+ }, {
994
+ readonly __raw: string;
995
+ }>]>>;
996
+ defaults: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
997
+ enabled: z.ZodBoolean;
998
+ providerId: z.ZodOptional<z.ZodString>;
999
+ model: z.ZodOptional<z.ZodString>;
1000
+ params: z.ZodCustom<Record<string, unknown>, Record<string, unknown>>;
1001
+ }, z.core.$strict>, z.ZodCustom<{
1002
+ readonly __raw: string;
1003
+ }, {
1004
+ readonly __raw: string;
1005
+ }>]>>;
1006
+ paramsSchemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1007
+ outputSchemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1008
+ instructionsBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1009
+ documentBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1010
+ }, z.core.$strict>, z.ZodObject<{
1011
+ kind: z.ZodLiteral<"ai.classify">;
1012
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1013
+ argsSource: z.ZodOptional<z.ZodCustom<{
1014
+ readonly __raw: string;
1015
+ }, {
1016
+ readonly __raw: string;
1017
+ }>>;
1018
+ stepKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
1019
+ readonly __raw: string;
1020
+ }, {
1021
+ readonly __raw: string;
1022
+ }>]>>;
1023
+ promptKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
1024
+ readonly __raw: string;
1025
+ }, {
1026
+ readonly __raw: string;
1027
+ }>]>>;
1028
+ promptFallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
1029
+ readonly __raw: string;
1030
+ }, {
1031
+ readonly __raw: string;
1032
+ }>]>>;
1033
+ defaults: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1034
+ enabled: z.ZodBoolean;
1035
+ providerId: z.ZodOptional<z.ZodString>;
1036
+ model: z.ZodOptional<z.ZodString>;
1037
+ params: z.ZodCustom<Record<string, unknown>, Record<string, unknown>>;
1038
+ }, z.core.$strict>, z.ZodCustom<{
1039
+ readonly __raw: string;
1040
+ }, {
1041
+ readonly __raw: string;
1042
+ }>]>>;
1043
+ paramsSchemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1044
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1045
+ type: z.ZodString;
1046
+ description: z.ZodString;
1047
+ }, z.core.$strict>>>;
1048
+ inputBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1049
+ }, z.core.$strict>, z.ZodObject<{
1050
+ kind: z.ZodLiteral<"unknown">;
1051
+ source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1052
+ methodName: z.ZodString;
1053
+ }, z.core.$strict>], "kind">;
533
1054
  export declare const PATTERN_ID_SCHEMAS_BY_KIND: {
534
1055
  entity: z.ZodObject<{
535
1056
  kind: z.ZodLiteral<"entity">;
@@ -579,6 +1100,10 @@ export declare const PATTERN_ID_SCHEMAS_BY_KIND: {
579
1100
  kind: z.ZodLiteral<"secret">;
580
1101
  shortName: z.ZodString;
581
1102
  }, z.core.$strict>;
1103
+ secretNamespace: z.ZodObject<{
1104
+ kind: z.ZodLiteral<"secretNamespace">;
1105
+ shortName: z.ZodString;
1106
+ }, z.core.$strict>;
582
1107
  claimKey: z.ZodObject<{
583
1108
  kind: z.ZodLiteral<"claimKey">;
584
1109
  shortName: z.ZodString;
@@ -667,4 +1192,108 @@ export declare const PATTERN_ID_SCHEMAS_BY_KIND: {
667
1192
  kind: z.ZodLiteral<"treeActions">;
668
1193
  }, z.core.$strict>;
669
1194
  };
1195
+ export declare const patternIdSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1196
+ kind: z.ZodLiteral<"entity">;
1197
+ entityName: z.ZodString;
1198
+ }, z.core.$strict>, z.ZodObject<{
1199
+ kind: z.ZodLiteral<"relation">;
1200
+ entityName: z.ZodString;
1201
+ relationName: z.ZodString;
1202
+ }, z.core.$strict>, z.ZodObject<{
1203
+ kind: z.ZodLiteral<"nav">;
1204
+ id: z.ZodString;
1205
+ }, z.core.$strict>, z.ZodObject<{
1206
+ kind: z.ZodLiteral<"workspace">;
1207
+ id: z.ZodString;
1208
+ }, z.core.$strict>, z.ZodObject<{
1209
+ kind: z.ZodLiteral<"screen">;
1210
+ id: z.ZodString;
1211
+ }, z.core.$strict>, z.ZodObject<{
1212
+ kind: z.ZodLiteral<"writeHandler">;
1213
+ handlerName: z.ZodString;
1214
+ }, z.core.$strict>, z.ZodObject<{
1215
+ kind: z.ZodLiteral<"queryHandler">;
1216
+ handlerName: z.ZodString;
1217
+ }, z.core.$strict>, z.ZodObject<{
1218
+ kind: z.ZodLiteral<"streamHandler">;
1219
+ handlerName: z.ZodString;
1220
+ }, z.core.$strict>, z.ZodObject<{
1221
+ kind: z.ZodLiteral<"hook">;
1222
+ hookType: z.ZodString;
1223
+ target: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1224
+ allOf: z.ZodString;
1225
+ }, z.core.$strict>]>;
1226
+ }, z.core.$strict>, z.ZodObject<{
1227
+ kind: z.ZodLiteral<"metric">;
1228
+ shortName: z.ZodString;
1229
+ }, z.core.$strict>, z.ZodObject<{
1230
+ kind: z.ZodLiteral<"secret">;
1231
+ shortName: z.ZodString;
1232
+ }, z.core.$strict>, z.ZodObject<{
1233
+ kind: z.ZodLiteral<"secretNamespace">;
1234
+ shortName: z.ZodString;
1235
+ }, z.core.$strict>, z.ZodObject<{
1236
+ kind: z.ZodLiteral<"claimKey">;
1237
+ shortName: z.ZodString;
1238
+ }, z.core.$strict>, z.ZodObject<{
1239
+ kind: z.ZodLiteral<"referenceData">;
1240
+ entityName: z.ZodString;
1241
+ }, z.core.$strict>, z.ZodObject<{
1242
+ kind: z.ZodLiteral<"useExtension">;
1243
+ extensionName: z.ZodString;
1244
+ entityName: z.ZodString;
1245
+ }, z.core.$strict>, z.ZodObject<{
1246
+ kind: z.ZodLiteral<"job">;
1247
+ jobName: z.ZodString;
1248
+ }, z.core.$strict>, z.ZodObject<{
1249
+ kind: z.ZodLiteral<"notification">;
1250
+ notificationName: z.ZodString;
1251
+ }, z.core.$strict>, z.ZodObject<{
1252
+ kind: z.ZodLiteral<"httpRoute">;
1253
+ method: z.ZodString;
1254
+ path: z.ZodString;
1255
+ }, z.core.$strict>, z.ZodObject<{
1256
+ kind: z.ZodLiteral<"projection">;
1257
+ name: z.ZodString;
1258
+ }, z.core.$strict>, z.ZodObject<{
1259
+ kind: z.ZodLiteral<"multiStreamProjection">;
1260
+ name: z.ZodString;
1261
+ }, z.core.$strict>, z.ZodObject<{
1262
+ kind: z.ZodLiteral<"defineEvent">;
1263
+ eventName: z.ZodString;
1264
+ }, z.core.$strict>, z.ZodObject<{
1265
+ kind: z.ZodLiteral<"extendsRegistrar">;
1266
+ extensionName: z.ZodString;
1267
+ }, z.core.$strict>, z.ZodObject<{
1268
+ kind: z.ZodLiteral<"ai.generate">;
1269
+ stepKey: z.ZodString;
1270
+ }, z.core.$strict>, z.ZodObject<{
1271
+ kind: z.ZodLiteral<"ai.extract">;
1272
+ stepKey: z.ZodString;
1273
+ }, z.core.$strict>, z.ZodObject<{
1274
+ kind: z.ZodLiteral<"ai.classify">;
1275
+ stepKey: z.ZodString;
1276
+ }, z.core.$strict>, z.ZodObject<{
1277
+ kind: z.ZodLiteral<"requires">;
1278
+ }, z.core.$strict>, z.ZodObject<{
1279
+ kind: z.ZodLiteral<"optionalRequires">;
1280
+ }, z.core.$strict>, z.ZodObject<{
1281
+ kind: z.ZodLiteral<"readsConfig">;
1282
+ }, z.core.$strict>, z.ZodObject<{
1283
+ kind: z.ZodLiteral<"systemScope">;
1284
+ }, z.core.$strict>, z.ZodObject<{
1285
+ kind: z.ZodLiteral<"toggleable">;
1286
+ }, z.core.$strict>, z.ZodObject<{
1287
+ kind: z.ZodLiteral<"describe">;
1288
+ }, z.core.$strict>, z.ZodObject<{
1289
+ kind: z.ZodLiteral<"uiHints">;
1290
+ }, z.core.$strict>, z.ZodObject<{
1291
+ kind: z.ZodLiteral<"config">;
1292
+ }, z.core.$strict>, z.ZodObject<{
1293
+ kind: z.ZodLiteral<"translations">;
1294
+ }, z.core.$strict>, z.ZodObject<{
1295
+ kind: z.ZodLiteral<"authClaims">;
1296
+ }, z.core.$strict>, z.ZodObject<{
1297
+ kind: z.ZodLiteral<"treeActions">;
1298
+ }, z.core.$strict>], "kind">;
670
1299
  export declare function parsePatternChanges(input: unknown): PatternChangesParseResult;