@cosmicdrift/kumiko-framework 0.389.0 → 0.390.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 (616) hide show
  1. package/AGENTS.md +9 -4
  2. package/README.md +1 -1
  3. package/agents/examples/apex-surface-auth.md +2 -3
  4. package/agents/examples/api-worker-split.md +9 -2
  5. package/agents/examples/auth-claims.md +1 -1
  6. package/agents/examples/cross-feature-events.md +12 -12
  7. package/agents/examples/crypto-shredding-hr.md +2 -2
  8. package/agents/examples/encrypted-tenant-config.md +1 -1
  9. package/agents/examples/error-contract.md +12 -7
  10. package/agents/examples/event-sourcing.md +29 -29
  11. package/agents/examples/files-post-processing.md +10 -8
  12. package/agents/examples/inbound-mail-triage.md +1 -0
  13. package/agents/examples/lane-routing.md +2 -1
  14. package/agents/examples/legal-pages.md +2 -2
  15. package/agents/examples/lifecycle-hooks.md +3 -3
  16. package/agents/examples/managed-config.md +4 -4
  17. package/agents/examples/managed-pages.md +1 -1
  18. package/agents/examples/relations.md +19 -4
  19. package/agents/examples/search.md +4 -4
  20. package/agents/examples/secrets-demo.md +9 -6
  21. package/agents/examples/state-machine.md +2 -2
  22. package/agents/examples/tenant-settings.md +1 -1
  23. package/agents/examples/user-data-rights.md +3 -6
  24. package/agents/examples/workflow-engine.md +53 -47
  25. package/agents/examples.md +4 -4
  26. package/agents/features.md +1 -1
  27. package/dist/api/auth-middleware.js +1 -1
  28. package/dist/api/auth-routes-invite.js +2 -1
  29. package/dist/api/entity-read-access.d.ts +3 -1
  30. package/dist/api/export/export-columns.d.ts +3 -1
  31. package/dist/api/export/export-route.js +3 -2
  32. package/dist/api/export/export-screen.d.ts +2 -1
  33. package/dist/api/extra-route.d.ts +3 -1
  34. package/dist/api/index.d.ts +23 -27
  35. package/dist/api/index.js +13 -15
  36. package/dist/api/jwt.js +1 -1
  37. package/dist/api/observability-middleware.d.ts +1 -1
  38. package/dist/api/observability-middleware.js +2 -1
  39. package/dist/api/request-context-internals.d.ts +31 -0
  40. package/dist/api/request-context-internals.js +11 -0
  41. package/dist/api/request-context-scopes.d.ts +14 -0
  42. package/dist/api/request-context-scopes.js +69 -0
  43. package/dist/api/request-context.d.ts +1 -40
  44. package/dist/api/request-context.js +22 -51
  45. package/dist/api/request-id-middleware.d.ts +1 -1
  46. package/dist/api/route-registrars.d.ts +2 -1
  47. package/dist/api/route-registrars.js +1 -1
  48. package/dist/api/routes.js +7 -3
  49. package/dist/api/server-boot-checks.d.ts +1 -1
  50. package/dist/api/server-boot-checks.js +2 -2
  51. package/dist/api/server-event-dispatcher.d.ts +6 -1
  52. package/dist/api/server-event-dispatcher.js +3 -4
  53. package/dist/api/server-extra-routes.d.ts +1 -1
  54. package/dist/api/server-extra-routes.js +2 -1
  55. package/dist/api/server-middleware.js +3 -1
  56. package/dist/api/server-routes.d.ts +2 -1
  57. package/dist/api/server-wiring.js +6 -4
  58. package/dist/api/server.d.ts +2 -1
  59. package/dist/api/sse-route.d.ts +2 -1
  60. package/dist/api/tenant-scoped-secrets.d.ts +2 -0
  61. package/dist/api/tenant-scoped-secrets.js +13 -0
  62. package/dist/api/websocket-route.d.ts +1 -1
  63. package/dist/auth/index.d.ts +0 -1
  64. package/dist/auth/roles.d.ts +0 -5
  65. package/dist/compliance/duration-spec.d.ts +0 -1
  66. package/dist/compliance/duration-spec.js +0 -5
  67. package/dist/compliance/index.d.ts +4 -4
  68. package/dist/compliance/index.js +2 -2
  69. package/dist/compliance/profiles.d.ts +0 -15
  70. package/dist/compliance/profiles.js +0 -23
  71. package/dist/config/index.d.ts +10 -10
  72. package/dist/config/index.js +13 -1
  73. package/dist/config/internals.d.ts +9 -0
  74. package/dist/config/internals.js +1 -0
  75. package/dist/consumer-cli-internals.d.ts +4 -0
  76. package/dist/consumer-cli-internals.js +1 -0
  77. package/dist/consumer-cli.d.ts +1 -4
  78. package/dist/consumer-cli.js +5 -1
  79. package/dist/crypto/event-pii.js +1 -1
  80. package/dist/crypto/index.d.ts +8 -9
  81. package/dist/crypto/index.js +7 -8
  82. package/dist/crypto/pg-kms-adapter.js +6 -1
  83. package/dist/db/apply-entity-event.d.ts +1 -1
  84. package/dist/db/apply-entity-event.js +15 -47
  85. package/dist/db/blind-index-cleanup.js +91 -77
  86. package/dist/db/collect-table-metas.js +1 -1
  87. package/dist/db/compound-types.d.ts +1 -1
  88. package/dist/db/compound-types.js +0 -7
  89. package/dist/db/config-seed.d.ts +2 -1
  90. package/dist/db/config-seed.js +6 -1
  91. package/dist/db/connection.d.ts +3 -1
  92. package/dist/db/connection.js +15 -5
  93. package/dist/db/cross-tenant-reads.d.ts +1 -1
  94. package/dist/db/cross-tenant-reads.js +1 -1
  95. package/dist/db/dialect.d.ts +0 -5
  96. package/dist/db/dialect.js +0 -3
  97. package/dist/db/eagerload.d.ts +2 -1
  98. package/dist/db/entity-field-encryption.d.ts +1 -1
  99. package/dist/db/entity-table-meta.d.ts +1 -1
  100. package/dist/db/event-store-executor-context.d.ts +3 -1
  101. package/dist/db/event-store-executor-context.js +4 -3
  102. package/dist/db/event-store-executor-read-filter.d.ts +1 -1
  103. package/dist/db/event-store-executor-read-rows.d.ts +2 -1
  104. package/dist/db/event-store-executor-read-search.d.ts +2 -1
  105. package/dist/db/event-store-executor-read-sort.d.ts +2 -1
  106. package/dist/db/event-store-executor-read.js +2 -2
  107. package/dist/db/event-store-executor-write-atomic.js +8 -7
  108. package/dist/db/event-store-executor-write-steps.d.ts +3 -2
  109. package/dist/db/event-store-executor-write.js +7 -4
  110. package/dist/db/event-store-executor.d.ts +1 -1
  111. package/dist/db/executor-managed-tables.d.ts +7 -1
  112. package/dist/db/executor-managed-tables.js +11 -2
  113. package/dist/db/index.d.ts +29 -28
  114. package/dist/db/index.js +22 -20
  115. package/dist/db/known-table-names.d.ts +6 -0
  116. package/dist/db/known-table-names.js +21 -0
  117. package/dist/db/list-aggregate-labels.d.ts +1 -1
  118. package/dist/db/located-timestamp.d.ts +1 -1
  119. package/dist/db/located-timestamp.js +0 -5
  120. package/dist/db/migrate-generator.d.ts +17 -1
  121. package/dist/db/migrate-generator.js +50 -20
  122. package/dist/db/migrate-primary-key.d.ts +12 -0
  123. package/dist/db/migrate-primary-key.js +45 -0
  124. package/dist/db/migrate-rls-diff.d.ts +20 -0
  125. package/dist/db/migrate-rls-diff.js +61 -0
  126. package/dist/db/migrate-runner.js +4 -0
  127. package/dist/db/money.d.ts +1 -1
  128. package/dist/db/money.js +1 -1
  129. package/dist/db/parent-ref-clause.d.ts +2 -1
  130. package/dist/db/pg-error.d.ts +2 -0
  131. package/dist/db/pg-error.js +11 -0
  132. package/dist/db/queries/ddl.d.ts +3 -0
  133. package/dist/db/queries/ddl.js +34 -1
  134. package/dist/db/queries/event-store.js +4 -2
  135. package/dist/db/queries/event-tenants.d.ts +2 -0
  136. package/dist/db/queries/event-tenants.js +17 -0
  137. package/dist/db/queries/rebuild-rls-guard.d.ts +2 -0
  138. package/dist/db/queries/rebuild-rls-guard.js +29 -0
  139. package/dist/db/queries/rls-boot-catalog.d.ts +16 -0
  140. package/dist/db/queries/rls-boot-catalog.js +39 -0
  141. package/dist/db/queries/rls-catalog.d.ts +6 -0
  142. package/dist/db/queries/rls-catalog.js +82 -0
  143. package/dist/db/queries/rls-scope.d.ts +3 -0
  144. package/dist/db/queries/rls-scope.js +17 -0
  145. package/dist/db/queries/rls-shape.d.ts +10 -0
  146. package/dist/db/queries/rls-shape.js +42 -0
  147. package/dist/db/queries/session-advisory-lock.d.ts +2 -0
  148. package/dist/db/queries/session-advisory-lock.js +23 -0
  149. package/dist/db/queries/shadow-swap.d.ts +1 -2
  150. package/dist/db/queries/shadow-swap.js +9 -25
  151. package/dist/db/queries/test-stack.d.ts +4 -1
  152. package/dist/db/queries/test-stack.js +83 -2
  153. package/dist/db/query.js +11 -7
  154. package/dist/db/reference-data.d.ts +1 -1
  155. package/dist/db/reference-data.js +6 -1
  156. package/dist/db/render-ddl.d.ts +6 -2
  157. package/dist/db/render-ddl.js +7 -7
  158. package/dist/db/render-rls-ddl.d.ts +35 -0
  159. package/dist/db/render-rls-ddl.js +127 -0
  160. package/dist/db/replay-migration-sql.d.ts +3 -1
  161. package/dist/db/replay-migration-sql.js +22 -5
  162. package/dist/db/replay-rls.d.ts +25 -0
  163. package/dist/db/replay-rls.js +156 -0
  164. package/dist/db/row-level-security-boot-check.d.ts +5 -0
  165. package/dist/db/row-level-security-boot-check.js +85 -0
  166. package/dist/db/row-level-security-connection.d.ts +3 -0
  167. package/dist/db/row-level-security-connection.js +213 -0
  168. package/dist/db/row-level-security-scope.d.ts +33 -0
  169. package/dist/db/row-level-security-scope.js +127 -0
  170. package/dist/db/scope-tenant-db-to-tenant.d.ts +3 -0
  171. package/dist/db/scope-tenant-db-to-tenant.js +14 -0
  172. package/dist/db/sql-identifier.d.ts +1 -0
  173. package/dist/db/sql-identifier.js +3 -0
  174. package/dist/db/table-builder.d.ts +2 -1
  175. package/dist/db/table-builder.js +1 -1
  176. package/dist/db/table-info.js +1 -1
  177. package/dist/db/table-push.d.ts +11 -2
  178. package/dist/db/table-push.js +15 -2
  179. package/dist/db/tenant-db-runner.d.ts +3 -1
  180. package/dist/db/tenant-db-runner.js +4 -3
  181. package/dist/db/tenant-db-scoped-rebind.d.ts +10 -0
  182. package/dist/db/tenant-db-scoped-rebind.js +33 -0
  183. package/dist/db/tenant-db-statement-runner.d.ts +13 -0
  184. package/dist/db/tenant-db-statement-runner.js +48 -0
  185. package/dist/db/tenant-db.d.ts +17 -12
  186. package/dist/db/tenant-db.js +49 -120
  187. package/dist/db/tenant-id-filter.d.ts +3 -0
  188. package/dist/db/tenant-id-filter.js +30 -0
  189. package/dist/db/transaction-serialization.d.ts +6 -0
  190. package/dist/db/transaction-serialization.js +60 -0
  191. package/dist/derivatives/delete-stored-file.js +1 -1
  192. package/dist/derivatives/index.d.ts +2 -5
  193. package/dist/derivatives/index.js +2 -3
  194. package/dist/engine/access.d.ts +2 -1
  195. package/dist/engine/access.js +1 -1
  196. package/dist/engine/boot-validator/entity-handler.d.ts +2 -1
  197. package/dist/engine/boot-validator/entity-handler.js +1 -1
  198. package/dist/engine/boot-validator/entity-list-aggregate-options.d.ts +1 -1
  199. package/dist/engine/boot-validator/list-table-aggregate-options.d.ts +1 -1
  200. package/dist/engine/boot-validator/list-table-aggregate-query.d.ts +2 -1
  201. package/dist/engine/boot-validator/nav.d.ts +3 -1
  202. package/dist/engine/boot-validator/nav.js +1 -1
  203. package/dist/engine/boot-validator/ownership.d.ts +2 -1
  204. package/dist/engine/boot-validator/parent-ref.d.ts +2 -1
  205. package/dist/engine/boot-validator/projection-list-screens.d.ts +2 -1
  206. package/dist/engine/boot-validator/query-refs.d.ts +2 -1
  207. package/dist/engine/boot-validator/screens-forms.d.ts +2 -1
  208. package/dist/engine/boot-validator/screens-kind-shared.d.ts +3 -1
  209. package/dist/engine/boot-validator/screens.d.ts +2 -1
  210. package/dist/engine/boot-validator/workspaces.d.ts +3 -1
  211. package/dist/engine/bridge-stub.d.ts +5 -2
  212. package/dist/engine/bridge-stub.js +39 -24
  213. package/dist/engine/config-helpers.d.ts +2 -2
  214. package/dist/engine/config-helpers.js +0 -9
  215. package/dist/engine/constants.d.ts +0 -10
  216. package/dist/engine/constants.js +0 -8
  217. package/dist/engine/create-app.js +1 -1
  218. package/dist/engine/define-feature.d.ts +2 -1
  219. package/dist/engine/define-feature.js +1 -2
  220. package/dist/engine/define-handler.d.ts +1 -1
  221. package/dist/engine/define-step.d.ts +0 -1
  222. package/dist/engine/define-step.js +0 -3
  223. package/dist/engine/embedded-derived.d.ts +1 -1
  224. package/dist/engine/entity-handlers.d.ts +2 -1
  225. package/dist/engine/entity-handlers.js +7 -7
  226. package/dist/engine/entity-list-runtime-options.js +3 -1
  227. package/dist/engine/entity-list-searchability.d.ts +2 -1
  228. package/dist/engine/event-def.d.ts +2 -1
  229. package/dist/engine/event-helpers.d.ts +3 -1
  230. package/dist/engine/event-helpers.js +3 -3
  231. package/dist/engine/extension-names.d.ts +2 -8
  232. package/dist/engine/extension-names.js +2 -2
  233. package/dist/engine/extension-selector-plugins.d.ts +1 -1
  234. package/dist/engine/extensions/storage-provider.d.ts +1 -2
  235. package/dist/engine/extensions/user-data.d.ts +0 -8
  236. package/dist/engine/factories.d.ts +2 -1
  237. package/dist/engine/feature-builder-state.d.ts +8 -1
  238. package/dist/engine/feature-changelog.d.ts +1 -1
  239. package/dist/engine/feature-config-events-jobs.d.ts +4 -1
  240. package/dist/engine/feature-entity-handlers.d.ts +5 -1
  241. package/dist/engine/feature-manifest.js +1 -1
  242. package/dist/engine/feature-ui-extensions.d.ts +7 -1
  243. package/dist/engine/feature-ui-extensions.js +6 -4
  244. package/dist/engine/field-access.d.ts +2 -1
  245. package/dist/engine/handler-field-references.d.ts +0 -4
  246. package/dist/engine/index.d.ts +57 -54
  247. package/dist/engine/index.js +22 -27
  248. package/dist/engine/instruction-fields.d.ts +1 -1
  249. package/dist/engine/personal-data-fields.d.ts +1 -1
  250. package/dist/engine/qualified-name.d.ts +0 -1
  251. package/dist/engine/read-claim.d.ts +2 -1
  252. package/dist/engine/registry-facade.js +0 -3
  253. package/dist/engine/registry-ingest.d.ts +2 -1
  254. package/dist/engine/registry-ingest.js +1 -2
  255. package/dist/engine/registry-state.d.ts +12 -2
  256. package/dist/engine/registry-state.js +2 -3
  257. package/dist/engine/registry-validate.d.ts +3 -1
  258. package/dist/engine/registry-validate.js +7 -7
  259. package/dist/engine/run-in.d.ts +1 -1
  260. package/dist/engine/run-in.js +0 -1
  261. package/dist/engine/schema-builder.d.ts +1 -1
  262. package/dist/engine/schema-builder.js +1 -1
  263. package/dist/engine/screen-filter-ops.d.ts +2 -1
  264. package/dist/engine/screen-filter-ops.js +0 -5
  265. package/dist/engine/soft-delete-cleanup.d.ts +1 -1
  266. package/dist/engine/soft-delete-cleanup.js +4 -4
  267. package/dist/engine/state-machine.js +2 -1
  268. package/dist/engine/steps/_read-source.js +1 -1
  269. package/dist/engine/steps/aggregate-append-event.js +2 -2
  270. package/dist/engine/steps/call-feature.js +2 -2
  271. package/dist/engine/steps/mail-send.js +1 -1
  272. package/dist/engine/steps/retry.js +1 -1
  273. package/dist/engine/steps/wait-for-event.js +1 -1
  274. package/dist/engine/steps/wait.js +1 -1
  275. package/dist/engine/steps/webhook-send.js +1 -1
  276. package/dist/engine/template-variables.d.ts +2 -1
  277. package/dist/engine/transfer-adjacency.d.ts +1 -1
  278. package/dist/engine/types/index.d.ts +8 -31
  279. package/dist/engine/types/index.js +2 -10
  280. package/dist/engine/validation.d.ts +2 -1
  281. package/dist/entrypoint/index.d.ts +7 -35
  282. package/dist/entrypoint/index.js +7 -1
  283. package/dist/entrypoint/internals.d.ts +40 -0
  284. package/dist/entrypoint/internals.js +1 -0
  285. package/dist/entrypoint/row-level-security-mode-check.d.ts +3 -0
  286. package/dist/entrypoint/row-level-security-mode-check.js +19 -0
  287. package/dist/env/dry-run-internals.d.ts +10 -0
  288. package/dist/env/dry-run-internals.js +1 -0
  289. package/dist/env/dry-run.d.ts +1 -10
  290. package/dist/env/dry-run.js +2 -1
  291. package/dist/env/index.d.ts +1 -85
  292. package/dist/env/index.js +6 -50
  293. package/dist/env/internals.d.ts +87 -0
  294. package/dist/env/internals.js +53 -0
  295. package/dist/errors/classes.js +2 -2
  296. package/dist/errors/index.d.ts +5 -14
  297. package/dist/errors/index.js +4 -9
  298. package/dist/errors/member-resolution.js +1 -1
  299. package/dist/errors/reasons.d.ts +0 -1
  300. package/dist/errors/reasons.js +7 -7
  301. package/dist/errors/serialize.d.ts +0 -18
  302. package/dist/errors/serialize.js +0 -27
  303. package/dist/es-ops/index.d.ts +4 -4
  304. package/dist/es-ops/index.js +2 -2
  305. package/dist/es-ops/operations-schema.d.ts +1 -1
  306. package/dist/es-ops/types.d.ts +4 -5
  307. package/dist/event-store/admin-api-internals.d.ts +14 -0
  308. package/dist/event-store/admin-api-internals.js +1 -0
  309. package/dist/event-store/admin-api.d.ts +1 -14
  310. package/dist/event-store/admin-api.js +11 -6
  311. package/dist/event-store/archive.js +4 -2
  312. package/dist/event-store/errors.js +2 -2
  313. package/dist/event-store/event-store.js +41 -34
  314. package/dist/event-store/events-schema.js +4 -1
  315. package/dist/event-store/index.d.ts +11 -13
  316. package/dist/event-store/index.js +7 -9
  317. package/dist/event-store/rebuild-dead-letter.js +4 -2
  318. package/dist/event-store/snapshot.js +4 -3
  319. package/dist/event-store/stream-scope.d.ts +2 -0
  320. package/dist/event-store/stream-scope.js +6 -0
  321. package/dist/event-store/upcaster-dead-letter.js +4 -2
  322. package/dist/event-store/upcaster.d.ts +2 -1
  323. package/dist/files/action-form-upload.d.ts +2 -1
  324. package/dist/files/action-form-upload.js +1 -1
  325. package/dist/files/assert-file-refs-belong-to-tenant.d.ts +2 -1
  326. package/dist/files/assert-file-refs-belong-to-tenant.js +1 -1
  327. package/dist/files/bind-pending-file-refs.d.ts +2 -1
  328. package/dist/files/bind-pending-file-refs.js +2 -1
  329. package/dist/files/bind-referenced-files.write.js +1 -1
  330. package/dist/files/create-file-ref-from-bytes.d.ts +6 -3
  331. package/dist/files/create-file-ref-from-bytes.js +3 -3
  332. package/dist/files/create-file-ref.d.ts +3 -2
  333. package/dist/files/create-file-ref.js +2 -2
  334. package/dist/files/dispose-removed-file-refs.d.ts +2 -1
  335. package/dist/files/dispose-removed-file-refs.js +1 -1
  336. package/dist/files/feature.js +2 -2
  337. package/dist/files/file-handle.js +1 -1
  338. package/dist/files/file-routes.d.ts +1 -1
  339. package/dist/files/file-routes.js +12 -2
  340. package/dist/files/index.d.ts +11 -13
  341. package/dist/files/index.js +5 -7
  342. package/dist/files/load-save-file-refs.d.ts +2 -1
  343. package/dist/files/load-save-file-refs.js +1 -1
  344. package/dist/files/provider-resolver.d.ts +5 -4
  345. package/dist/files/provider-resolver.js +4 -4
  346. package/dist/files/storage-tracking.js +4 -2
  347. package/dist/files/sweep-orphaned-uploads.d.ts +1 -1
  348. package/dist/files/sweep-orphaned-uploads.js +1 -1
  349. package/dist/i18n/index.d.ts +2 -8
  350. package/dist/i18n/index.js +1 -1
  351. package/dist/i18n/internals.d.ts +7 -0
  352. package/dist/i18n/internals.js +1 -0
  353. package/dist/i18n/required-surface-keys.d.ts +4 -1
  354. package/dist/internal/row-level-security.d.ts +3 -0
  355. package/dist/internal/row-level-security.js +3 -0
  356. package/dist/internal/stack-support.d.ts +1 -1
  357. package/dist/internal/stack-support.js +1 -1
  358. package/dist/internal/testing.d.ts +1 -0
  359. package/dist/internal/testing.js +9 -5
  360. package/dist/jobs/index.d.ts +1 -1
  361. package/dist/jobs/job-append-event.d.ts +12 -0
  362. package/dist/jobs/job-append-event.js +30 -0
  363. package/dist/jobs/job-runner-context.d.ts +2 -2
  364. package/dist/jobs/job-runner-context.js +46 -16
  365. package/dist/jobs/job-runner-execution.d.ts +1 -1
  366. package/dist/jobs/job-runner-execution.js +6 -4
  367. package/dist/jobs/job-runner-gates.d.ts +1 -1
  368. package/dist/jobs/job-runner-gates.js +0 -1
  369. package/dist/jobs/job-runner-helpers.d.ts +11 -4
  370. package/dist/jobs/job-runner-helpers.js +10 -1
  371. package/dist/jobs/job-runner-scope.d.ts +5 -2
  372. package/dist/jobs/job-runner-types.d.ts +2 -1
  373. package/dist/jobs/job-runner.js +19 -6
  374. package/dist/jobs/max-per-tenant.d.ts +1 -1
  375. package/dist/logging/index.d.ts +1 -2
  376. package/dist/logging/index.js +1 -1
  377. package/dist/logging/pino-logger.js +1 -1
  378. package/dist/logging/utils.d.ts +1 -0
  379. package/dist/logging/utils.js +6 -0
  380. package/dist/migrations/index.d.ts +3 -3
  381. package/dist/migrations/index.js +3 -3
  382. package/dist/migrations/pending-rebuilds.d.ts +1 -1
  383. package/dist/migrations/pending-rebuilds.js +1 -1
  384. package/dist/migrations/pii-event-backfill.js +4 -1
  385. package/dist/observability/escape-hatch-report.d.ts +2 -1
  386. package/dist/observability/index.d.ts +7 -15
  387. package/dist/observability/index.js +4 -12
  388. package/dist/observability/metric-validator.js +1 -1
  389. package/dist/observability/metrics-handle.d.ts +0 -1
  390. package/dist/observability/metrics-handle.js +2 -15
  391. package/dist/observability/recording-tracer.d.ts +1 -2
  392. package/dist/observability/recording-tracer.js +0 -6
  393. package/dist/observability/sensitive-filter.d.ts +0 -2
  394. package/dist/observability/sensitive-filter.js +0 -29
  395. package/dist/pipeline/active-membership.d.ts +2 -1
  396. package/dist/pipeline/active-membership.js +6 -2
  397. package/dist/pipeline/append-event-core.d.ts +2 -1
  398. package/dist/pipeline/append-event-core.js +2 -2
  399. package/dist/pipeline/attach-outside-transaction.d.ts +3 -0
  400. package/dist/pipeline/attach-outside-transaction.js +13 -0
  401. package/dist/pipeline/auth-claims-resolver.d.ts +2 -1
  402. package/dist/pipeline/cascade-handler.d.ts +2 -1
  403. package/dist/pipeline/cascade-handler.js +3 -2
  404. package/dist/pipeline/config-accessor-factory.d.ts +1 -1
  405. package/dist/pipeline/config-accessor-factory.js +1 -1
  406. package/dist/pipeline/context-services.d.ts +56 -0
  407. package/dist/pipeline/context-services.js +73 -0
  408. package/dist/pipeline/dispatch-batch.d.ts +2 -1
  409. package/dist/pipeline/dispatch-batch.js +31 -18
  410. package/dist/pipeline/dispatch-query.js +5 -4
  411. package/dist/pipeline/dispatch-scope.d.ts +6 -0
  412. package/dist/pipeline/dispatch-scope.js +27 -0
  413. package/dist/pipeline/dispatch-shared.d.ts +13 -9
  414. package/dist/pipeline/dispatch-shared.js +75 -198
  415. package/dist/pipeline/dispatch-stream.js +8 -4
  416. package/dist/pipeline/dispatch-write.d.ts +2 -1
  417. package/dist/pipeline/dispatch-write.js +10 -8
  418. package/dist/pipeline/dispatcher-utils.d.ts +3 -1
  419. package/dist/pipeline/dispatcher-utils.js +8 -2
  420. package/dist/pipeline/dispatcher.d.ts +3 -2
  421. package/dist/pipeline/dispatcher.js +4 -3
  422. package/dist/pipeline/event-consumer-state.d.ts +0 -1
  423. package/dist/pipeline/event-dispatcher-delivery.d.ts +1 -1
  424. package/dist/pipeline/event-dispatcher-delivery.js +4 -2
  425. package/dist/pipeline/event-dispatcher.d.ts +2 -2
  426. package/dist/pipeline/event-dispatcher.js +7 -3
  427. package/dist/pipeline/event-retention.js +59 -56
  428. package/dist/pipeline/handler-access-error.js +2 -1
  429. package/dist/pipeline/handler-context-auth.d.ts +5 -6
  430. package/dist/pipeline/handler-context-auth.js +7 -4
  431. package/dist/pipeline/handler-context-config.d.ts +2 -5
  432. package/dist/pipeline/handler-context-config.js +2 -2
  433. package/dist/pipeline/handler-context-db.d.ts +32 -7
  434. package/dist/pipeline/handler-context-db.js +26 -17
  435. package/dist/pipeline/handler-context-dispatch.d.ts +13 -7
  436. package/dist/pipeline/handler-context-dispatch.js +9 -8
  437. package/dist/pipeline/handler-context-events.d.ts +22 -36
  438. package/dist/pipeline/handler-context-events.js +36 -31
  439. package/dist/pipeline/handler-context-member-resolution.d.ts +2 -0
  440. package/dist/pipeline/handler-context-member-resolution.js +110 -0
  441. package/dist/pipeline/handler-context-notify.d.ts +3 -2
  442. package/dist/pipeline/handler-context-notify.js +1 -1
  443. package/dist/pipeline/handler-context-observability.d.ts +2 -4
  444. package/dist/pipeline/handler-context-observability.js +7 -5
  445. package/dist/pipeline/handler-context-phase-denials.d.ts +11 -0
  446. package/dist/pipeline/handler-context-phase-denials.js +98 -0
  447. package/dist/pipeline/handler-context-scope.d.ts +7 -10
  448. package/dist/pipeline/handler-context-scope.js +18 -20
  449. package/dist/pipeline/index.d.ts +9 -21
  450. package/dist/pipeline/index.js +5 -7
  451. package/dist/pipeline/irreversible-operation-gate.d.ts +1 -1
  452. package/dist/pipeline/irreversible-operation-gate.js +2 -2
  453. package/dist/pipeline/lifecycle-pipeline.d.ts +8 -7
  454. package/dist/pipeline/lifecycle-pipeline.js +9 -15
  455. package/dist/pipeline/member-read-only-transaction.js +11 -3
  456. package/dist/pipeline/member-reader.d.ts +1 -1
  457. package/dist/pipeline/member-reader.js +2 -2
  458. package/dist/pipeline/msp-rebuild.js +5 -3
  459. package/dist/pipeline/multi-stream-apply-context.js +3 -2
  460. package/dist/pipeline/notify-scope.d.ts +2 -1
  461. package/dist/pipeline/pre-handler-gates.d.ts +2 -1
  462. package/dist/pipeline/pre-transaction-reservations.d.ts +3 -3
  463. package/dist/pipeline/pre-transaction-reservations.js +9 -7
  464. package/dist/pipeline/projection-rebuild.js +12 -5
  465. package/dist/pipeline/projection-state.d.ts +0 -6
  466. package/dist/pipeline/projection-state.js +0 -5
  467. package/dist/pipeline/projections-runner.d.ts +2 -1
  468. package/dist/pipeline/projections-runner.js +10 -6
  469. package/dist/pipeline/system-hooks.d.ts +3 -1
  470. package/dist/pipeline/system-hooks.js +6 -4
  471. package/dist/pipeline/system-identity-switch.d.ts +4 -2
  472. package/dist/pipeline/system-identity-switch.js +51 -36
  473. package/dist/pipeline/typed-append-event.d.ts +2 -0
  474. package/dist/pipeline/typed-append-event.js +4 -0
  475. package/dist/pipeline/write-origin.js +2 -2
  476. package/dist/pipeline/write-result-masking.d.ts +1 -1
  477. package/dist/random/index.d.ts +1 -2
  478. package/dist/random/index.js +1 -2
  479. package/dist/rate-limit/bucket.d.ts +2 -1
  480. package/dist/rate-limit/middleware.js +2 -1
  481. package/dist/redis/index.d.ts +3 -4
  482. package/dist/redis/index.js +2 -2
  483. package/dist/schema-cli/apply-command.js +5 -2
  484. package/dist/schema-cli/baseline-command.js +7 -2
  485. package/dist/schema-cli/generate-command.js +7 -9
  486. package/dist/schema-cli/shared.d.ts +4 -0
  487. package/dist/schema-cli/shared.js +21 -2
  488. package/dist/schema-cli/status-command.js +8 -2
  489. package/dist/schema-cli/validate-command.js +52 -4
  490. package/dist/schema-cli.d.ts +0 -1
  491. package/dist/search/configure-tenant-index.d.ts +1 -3
  492. package/dist/search/configure-tenant-index.js +0 -4
  493. package/dist/search/index.d.ts +1 -4
  494. package/dist/search/index.js +0 -2
  495. package/dist/search/meilisearch-adapter-internals.d.ts +8 -0
  496. package/dist/search/meilisearch-adapter-internals.js +9 -0
  497. package/dist/search/meilisearch-adapter.d.ts +1 -8
  498. package/dist/search/meilisearch-adapter.js +6 -7
  499. package/dist/search/meilisearch-peer.d.ts +2 -0
  500. package/dist/search/meilisearch-peer.js +5 -0
  501. package/dist/search/reindex-entity.js +93 -87
  502. package/dist/secrets/index.d.ts +3 -4
  503. package/dist/secrets/index.js +2 -3
  504. package/dist/seeding/index.d.ts +2 -2
  505. package/dist/seeding/index.js +1 -2
  506. package/dist/time/index.d.ts +2 -2
  507. package/dist/time/index.js +1 -1
  508. package/dist/time/tz-context.d.ts +0 -5
  509. package/dist/time/tz-context.js +0 -9
  510. package/dist/ui-types/index.d.ts +8 -11
  511. package/dist/ui-types/index.js +3 -3
  512. package/dist/upgrade-changelog.d.ts +3 -2
  513. package/dist/upgrade-changelog.js +12 -8
  514. package/dist/upgrade-cli-internals.d.ts +8 -0
  515. package/dist/upgrade-cli-internals.js +63 -0
  516. package/dist/upgrade-cli.d.ts +1 -9
  517. package/dist/upgrade-cli.js +10 -64
  518. package/dist/utils/import-optional-peer.d.ts +6 -0
  519. package/dist/utils/import-optional-peer.js +19 -0
  520. package/dist/utils/index.d.ts +1 -4
  521. package/dist/utils/index.js +1 -4
  522. package/package.json +22 -18
  523. package/src/changes.json +206 -0
  524. package/dist/crypto/request-kms-cache.d.ts +0 -8
  525. package/dist/crypto/request-kms-cache.js +0 -21
  526. package/dist/engine/codemod/index.d.ts +0 -2
  527. package/dist/engine/codemod/index.js +0 -1
  528. package/dist/engine/codemod/pipeline-codemod.d.ts +0 -50
  529. package/dist/engine/codemod/pipeline-codemod.js +0 -536
  530. package/dist/engine/feature-ast/entity-field-types.d.ts +0 -13
  531. package/dist/engine/feature-ast/entity-field-types.js +0 -35
  532. package/dist/engine/feature-ast/extractors/ai-steps.d.ts +0 -6
  533. package/dist/engine/feature-ast/extractors/ai-steps.js +0 -254
  534. package/dist/engine/feature-ast/extractors/events.d.ts +0 -5
  535. package/dist/engine/feature-ast/extractors/events.js +0 -275
  536. package/dist/engine/feature-ast/extractors/handlers.d.ts +0 -24
  537. package/dist/engine/feature-ast/extractors/handlers.js +0 -358
  538. package/dist/engine/feature-ast/extractors/hooks.d.ts +0 -24
  539. package/dist/engine/feature-ast/extractors/hooks.js +0 -248
  540. package/dist/engine/feature-ast/extractors/index.d.ts +0 -14
  541. package/dist/engine/feature-ast/extractors/index.js +0 -13
  542. package/dist/engine/feature-ast/extractors/jobs-routes.d.ts +0 -7
  543. package/dist/engine/feature-ast/extractors/jobs-routes.js +0 -145
  544. package/dist/engine/feature-ast/extractors/projections-screens.d.ts +0 -10
  545. package/dist/engine/feature-ast/extractors/projections-screens.js +0 -195
  546. package/dist/engine/feature-ast/extractors/resolve-import.d.ts +0 -21
  547. package/dist/engine/feature-ast/extractors/resolve-import.js +0 -180
  548. package/dist/engine/feature-ast/extractors/round1.d.ts +0 -11
  549. package/dist/engine/feature-ast/extractors/round1.js +0 -87
  550. package/dist/engine/feature-ast/extractors/round2.d.ts +0 -7
  551. package/dist/engine/feature-ast/extractors/round2.js +0 -191
  552. package/dist/engine/feature-ast/extractors/round3.d.ts +0 -23
  553. package/dist/engine/feature-ast/extractors/round3.js +0 -292
  554. package/dist/engine/feature-ast/extractors/round5.d.ts +0 -9
  555. package/dist/engine/feature-ast/extractors/round5.js +0 -68
  556. package/dist/engine/feature-ast/extractors/round6.d.ts +0 -4
  557. package/dist/engine/feature-ast/extractors/round6.js +0 -17
  558. package/dist/engine/feature-ast/extractors/shared.d.ts +0 -94
  559. package/dist/engine/feature-ast/extractors/shared.js +0 -343
  560. package/dist/engine/feature-ast/index.d.ts +0 -16
  561. package/dist/engine/feature-ast/index.js +0 -10
  562. package/dist/engine/feature-ast/parse.d.ts +0 -31
  563. package/dist/engine/feature-ast/parse.js +0 -485
  564. package/dist/engine/feature-ast/patch.d.ts +0 -212
  565. package/dist/engine/feature-ast/patch.js +0 -611
  566. package/dist/engine/feature-ast/patcher.d.ts +0 -217
  567. package/dist/engine/feature-ast/patcher.js +0 -281
  568. package/dist/engine/feature-ast/pattern-change-schema.d.ts +0 -1238
  569. package/dist/engine/feature-ast/pattern-change-schema.js +0 -1072
  570. package/dist/engine/feature-ast/pattern-id-matchers.d.ts +0 -7
  571. package/dist/engine/feature-ast/pattern-id-matchers.js +0 -211
  572. package/dist/engine/feature-ast/pattern-id-schema.d.ts +0 -251
  573. package/dist/engine/feature-ast/pattern-id-schema.js +0 -166
  574. package/dist/engine/feature-ast/patterns.d.ts +0 -322
  575. package/dist/engine/feature-ast/patterns.js +0 -107
  576. package/dist/engine/feature-ast/render.d.ts +0 -47
  577. package/dist/engine/feature-ast/render.js +0 -666
  578. package/dist/engine/feature-ast/source-location.d.ts +0 -17
  579. package/dist/engine/feature-ast/source-location.js +0 -27
  580. package/dist/engine/pattern-library/index.d.ts +0 -2
  581. package/dist/engine/pattern-library/index.js +0 -3
  582. package/dist/engine/pattern-library/library.d.ts +0 -14
  583. package/dist/engine/pattern-library/library.js +0 -94
  584. package/dist/engine/pattern-library/mixed-schemas.d.ts +0 -16
  585. package/dist/engine/pattern-library/mixed-schemas.js +0 -559
  586. package/dist/engine/pattern-library/opaque-schemas.d.ts +0 -7
  587. package/dist/engine/pattern-library/opaque-schemas.js +0 -115
  588. package/dist/engine/pattern-library/shared-fields.d.ts +0 -122
  589. package/dist/engine/pattern-library/shared-fields.js +0 -88
  590. package/dist/engine/pattern-library/static-schemas.d.ts +0 -21
  591. package/dist/engine/pattern-library/static-schemas.js +0 -487
  592. package/dist/engine/pattern-library/types.d.ts +0 -158
  593. package/dist/engine/pattern-library/types.js +0 -36
  594. package/dist/engine/resolve-config-or-param.d.ts +0 -18
  595. package/dist/engine/resolve-config-or-param.js +0 -76
  596. package/src/scripts/codemod/README.md +0 -187
  597. package/src/scripts/codemod/codemod-support.ts +0 -334
  598. package/src/scripts/codemod/collect-source-files.ts +0 -48
  599. package/src/scripts/codemod/crypto-shredding-testing-move.ts +0 -119
  600. package/src/scripts/codemod/db-factory.ts +0 -810
  601. package/src/scripts/codemod/feature-factory.ts +0 -429
  602. package/src/scripts/codemod/feature-layout.ts +0 -424
  603. package/src/scripts/codemod/import-extensions.ts +0 -118
  604. package/src/scripts/codemod/migrate-cross-tenant.ts +0 -328
  605. package/src/scripts/codemod/migrate-db-raw.ts +0 -401
  606. package/src/scripts/codemod/migrate-open-to-all.ts +0 -235
  607. package/src/scripts/codemod/object-form.ts +0 -746
  608. package/src/scripts/codemod/package-merge.ts +0 -299
  609. package/src/scripts/codemod/pii-personal-migration.ts +0 -816
  610. package/src/scripts/codemod/remove-engine-payload-casts.ts +0 -318
  611. package/src/scripts/codemod/s3-imports.ts +0 -236
  612. package/src/scripts/codemod/tenant-db-options.ts +0 -454
  613. package/src/scripts/codemod/testing-injection.ts +0 -215
  614. package/src/scripts/codemod/testing-move-targets.ts +0 -161
  615. package/src/scripts/codemod/testing-move.ts +0 -542
  616. package/src/scripts/codemod/unprocessable-error-details-reason.ts +0 -411
@@ -1,1238 +0,0 @@
1
- import * as z from "zod";
2
- import type { ConfigKeyDefinition, ConfigKeyType, JobDefinition } from "../types/config.ts";
3
- import type { MetricOptions, SecretNamespaceOptions, SecretOptions } from "../types/feature.ts";
4
- import type { EntityDefinition } from "../types/fields.ts";
5
- import type { NavDefinition } from "../types/nav.ts";
6
- import type { RelationDefinition } from "../types/relations.ts";
7
- import type { ScreenDefinition } from "../types/screen.ts";
8
- import type { TreeActionDef } from "../types/tree-node.ts";
9
- import type { WorkspaceDefinition } from "../types/workspace.ts";
10
- import type { RawRefSentinel } from "./extractors/shared.ts";
11
- import type { PatternChange } from "./patch.ts";
12
- import type { SourceLocation } from "./source-location.ts";
13
- export type PatternChangeIssue = {
14
- readonly path: string;
15
- readonly message: string;
16
- };
17
- export type PatternChangesParseResult = {
18
- readonly ok: true;
19
- readonly changes: readonly PatternChange[];
20
- } | {
21
- readonly ok: false;
22
- readonly issues: readonly PatternChangeIssue[];
23
- };
24
- export declare const PATTERN_SCHEMAS_BY_KIND: {
25
- entity: z.ZodObject<{
26
- kind: z.ZodLiteral<"entity">;
27
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
28
- entityName: z.ZodString;
29
- definition: z.ZodType<EntityDefinition, unknown, z.core.$ZodTypeInternals<EntityDefinition, unknown>>;
30
- backingTable: z.ZodOptional<z.ZodType<RawRefSentinel, unknown, z.core.$ZodTypeInternals<RawRefSentinel, unknown>>>;
31
- }, z.core.$strict>;
32
- relation: z.ZodObject<{
33
- kind: z.ZodLiteral<"relation">;
34
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
35
- entityName: z.ZodString;
36
- relationName: z.ZodString;
37
- definition: z.ZodType<RelationDefinition, unknown, z.core.$ZodTypeInternals<RelationDefinition, unknown>>;
38
- }, z.core.$strict>;
39
- nav: z.ZodObject<{
40
- kind: z.ZodLiteral<"nav">;
41
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
42
- definition: z.ZodType<NavDefinition, unknown, z.core.$ZodTypeInternals<NavDefinition, unknown>>;
43
- }, z.core.$strict>;
44
- workspace: z.ZodObject<{
45
- kind: z.ZodLiteral<"workspace">;
46
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
47
- definition: z.ZodType<WorkspaceDefinition, unknown, z.core.$ZodTypeInternals<WorkspaceDefinition, unknown>>;
48
- }, z.core.$strict>;
49
- config: z.ZodObject<{
50
- kind: z.ZodLiteral<"config">;
51
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
52
- keys: z.ZodType<Readonly<Record<string, ConfigKeyDefinition<ConfigKeyType>>>, unknown, z.core.$ZodTypeInternals<Readonly<Record<string, ConfigKeyDefinition<ConfigKeyType>>>, unknown>>;
53
- }, z.core.$strict>;
54
- translations: z.ZodObject<{
55
- kind: z.ZodLiteral<"translations">;
56
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
57
- 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>>;
58
- }, z.core.$strict>;
59
- requires: z.ZodObject<{
60
- kind: z.ZodLiteral<"requires">;
61
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
62
- featureNames: z.ZodType<readonly string[], unknown, z.core.$ZodTypeInternals<readonly string[], unknown>>;
63
- }, z.core.$strict>;
64
- optionalRequires: z.ZodObject<{
65
- kind: z.ZodLiteral<"optionalRequires">;
66
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
67
- featureNames: z.ZodType<readonly string[], unknown, z.core.$ZodTypeInternals<readonly string[], unknown>>;
68
- }, z.core.$strict>;
69
- systemScope: z.ZodObject<{
70
- kind: z.ZodLiteral<"systemScope">;
71
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
72
- }, z.core.$strict>;
73
- toggleable: z.ZodObject<{
74
- kind: z.ZodLiteral<"toggleable">;
75
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
76
- default: z.ZodBoolean;
77
- }, z.core.$strict>;
78
- describe: z.ZodObject<{
79
- kind: z.ZodLiteral<"describe">;
80
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
81
- text: z.ZodString;
82
- }, z.core.$strict>;
83
- uiHints: z.ZodObject<{
84
- kind: z.ZodLiteral<"uiHints">;
85
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
86
- }, z.core.$strict>;
87
- adoptsBundledLists: z.ZodObject<{
88
- kind: z.ZodLiteral<"adoptsBundledLists">;
89
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
90
- }, z.core.$strict>;
91
- metric: z.ZodObject<{
92
- kind: z.ZodLiteral<"metric">;
93
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
94
- shortName: z.ZodString;
95
- options: z.ZodType<MetricOptions, unknown, z.core.$ZodTypeInternals<MetricOptions, unknown>>;
96
- }, z.core.$strict>;
97
- secret: z.ZodObject<{
98
- kind: z.ZodLiteral<"secret">;
99
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
100
- shortName: z.ZodString;
101
- options: z.ZodType<SecretOptions, unknown, z.core.$ZodTypeInternals<SecretOptions, unknown>>;
102
- }, z.core.$strict>;
103
- secretNamespace: z.ZodObject<{
104
- kind: z.ZodLiteral<"secretNamespace">;
105
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
106
- shortName: z.ZodString;
107
- options: z.ZodType<SecretNamespaceOptions, unknown, z.core.$ZodTypeInternals<SecretNamespaceOptions, unknown>>;
108
- }, z.core.$strict>;
109
- claimKey: z.ZodObject<{
110
- kind: z.ZodLiteral<"claimKey">;
111
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
112
- shortName: z.ZodString;
113
- claimType: z.ZodEnum<{
114
- boolean: "boolean";
115
- number: "number";
116
- object: "object";
117
- string: "string";
118
- "string[]": "string[]";
119
- }>;
120
- }, z.core.$strict>;
121
- referenceData: z.ZodObject<{
122
- kind: z.ZodLiteral<"referenceData">;
123
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
124
- entityName: z.ZodString;
125
- data: z.ZodCustom<readonly Record<string, unknown>[], readonly Record<string, unknown>[]>;
126
- upsertKey: z.ZodOptional<z.ZodString>;
127
- }, z.core.$strict>;
128
- readsConfig: z.ZodObject<{
129
- kind: z.ZodLiteral<"readsConfig">;
130
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
131
- qualifiedKeys: z.ZodType<readonly string[], unknown, z.core.$ZodTypeInternals<readonly string[], unknown>>;
132
- }, z.core.$strict>;
133
- useExtension: z.ZodObject<{
134
- kind: z.ZodLiteral<"useExtension">;
135
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
136
- extensionName: z.ZodString;
137
- extensionNameRaw: z.ZodOptional<z.ZodString>;
138
- entityName: z.ZodString;
139
- options: z.ZodOptional<z.ZodType<Readonly<Record<string, unknown>>, unknown, z.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, unknown>>>;
140
- }, z.core.$strict>;
141
- usesApi: z.ZodObject<{
142
- kind: z.ZodLiteral<"usesApi">;
143
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
144
- apiName: z.ZodString;
145
- }, z.core.$strict>;
146
- exposesApi: z.ZodObject<{
147
- kind: z.ZodLiteral<"exposesApi">;
148
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
149
- apiName: z.ZodString;
150
- }, z.core.$strict>;
151
- treeActions: z.ZodObject<{
152
- kind: z.ZodLiteral<"treeActions">;
153
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
154
- definitions: z.ZodType<Readonly<Record<string, TreeActionDef>>, unknown, z.core.$ZodTypeInternals<Readonly<Record<string, TreeActionDef>>, unknown>>;
155
- }, z.core.$strict>;
156
- screen: z.ZodObject<{
157
- kind: z.ZodLiteral<"screen">;
158
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
159
- definition: z.ZodType<ScreenDefinition, unknown, z.core.$ZodTypeInternals<ScreenDefinition, unknown>>;
160
- opaqueProps: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>>>;
161
- }, z.core.$strict>;
162
- writeHandler: z.ZodObject<{
163
- description: z.ZodOptional<z.ZodString>;
164
- unsafeSkipTransitionGuard: z.ZodOptional<z.ZodBoolean>;
165
- access: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
166
- roles: z.ZodArray<z.ZodString>;
167
- personalData: z.ZodOptional<z.ZodLiteral<"public-intake">>;
168
- }, z.core.$strict>, z.ZodObject<{
169
- openToAll: z.ZodObject<{
170
- reason: z.ZodString;
171
- personalData: z.ZodOptional<z.ZodLiteral<"tenant-members">>;
172
- }, z.core.$strict>;
173
- }, z.core.$strict>]>, z.ZodObject<{
174
- __raw: z.ZodString;
175
- }, z.core.$strict>]>>;
176
- agent: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
177
- expose: z.ZodOptional<z.ZodBoolean>;
178
- risk: z.ZodOptional<z.ZodEnum<{
179
- high: "high";
180
- low: "low";
181
- mid: "mid";
182
- }>>;
183
- }, z.core.$strict>, z.ZodObject<{
184
- __raw: z.ZodString;
185
- }, z.core.$strict>]>>;
186
- rateLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
187
- per: z.ZodEnum<{
188
- ip: "ip";
189
- "ip+handler": "ip+handler";
190
- tenant: "tenant";
191
- "tenant+handler": "tenant+handler";
192
- user: "user";
193
- "user+handler": "user+handler";
194
- }>;
195
- limit: z.ZodNumber;
196
- windowSeconds: z.ZodNumber;
197
- cost: z.ZodOptional<z.ZodNumber>;
198
- }, z.core.$strict>, z.ZodTuple<[z.ZodObject<{
199
- per: z.ZodEnum<{
200
- ip: "ip";
201
- "ip+handler": "ip+handler";
202
- tenant: "tenant";
203
- "tenant+handler": "tenant+handler";
204
- user: "user";
205
- "user+handler": "user+handler";
206
- }>;
207
- limit: z.ZodNumber;
208
- windowSeconds: z.ZodNumber;
209
- cost: z.ZodOptional<z.ZodNumber>;
210
- }, z.core.$strict>], z.ZodObject<{
211
- per: z.ZodEnum<{
212
- ip: "ip";
213
- "ip+handler": "ip+handler";
214
- tenant: "tenant";
215
- "tenant+handler": "tenant+handler";
216
- user: "user";
217
- "user+handler": "user+handler";
218
- }>;
219
- limit: z.ZodNumber;
220
- windowSeconds: z.ZodNumber;
221
- cost: z.ZodOptional<z.ZodNumber>;
222
- }, z.core.$strict>>, z.ZodObject<{
223
- disabled: z.ZodLiteral<true>;
224
- reason: z.ZodString;
225
- }, z.core.$strict>]>, z.ZodObject<{
226
- __raw: z.ZodString;
227
- }, z.core.$strict>]>>;
228
- additionalRateLimits: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
229
- per: z.ZodObject<{
230
- payloadField: z.ZodString;
231
- }, z.core.$strict>;
232
- limit: z.ZodNumber;
233
- windowSeconds: z.ZodNumber;
234
- cost: z.ZodOptional<z.ZodNumber>;
235
- normalize: z.ZodOptional<z.ZodLiteral<"email">>;
236
- }, z.core.$strict>>, z.ZodObject<{
237
- __raw: z.ZodString;
238
- }, z.core.$strict>]>>;
239
- escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
240
- reason: z.ZodString;
241
- grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
242
- crossTenantReads: "crossTenantReads";
243
- globalWrites: "globalWrites";
244
- systemIdentity: "systemIdentity";
245
- unsafeRaw: "unsafeRaw";
246
- }>>>;
247
- }, z.core.$strict>, z.ZodObject<{
248
- __raw: z.ZodString;
249
- }, z.core.$strict>]>>;
250
- kind: z.ZodLiteral<"writeHandler">;
251
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
252
- handlerName: z.ZodOptional<z.ZodString>;
253
- schemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
254
- handlerBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
255
- }, z.core.$strict>;
256
- queryHandler: z.ZodObject<{
257
- description: z.ZodOptional<z.ZodString>;
258
- access: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
259
- roles: z.ZodArray<z.ZodString>;
260
- personalData: z.ZodOptional<z.ZodLiteral<"public-intake">>;
261
- }, z.core.$strict>, z.ZodObject<{
262
- openToAll: z.ZodObject<{
263
- reason: z.ZodString;
264
- personalData: z.ZodOptional<z.ZodLiteral<"tenant-members">>;
265
- }, z.core.$strict>;
266
- }, z.core.$strict>]>, z.ZodObject<{
267
- __raw: z.ZodString;
268
- }, z.core.$strict>]>>;
269
- agent: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
270
- expose: z.ZodOptional<z.ZodBoolean>;
271
- risk: z.ZodOptional<z.ZodEnum<{
272
- high: "high";
273
- low: "low";
274
- mid: "mid";
275
- }>>;
276
- }, z.core.$strict>, z.ZodObject<{
277
- __raw: z.ZodString;
278
- }, z.core.$strict>]>>;
279
- rateLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
280
- per: z.ZodEnum<{
281
- ip: "ip";
282
- "ip+handler": "ip+handler";
283
- tenant: "tenant";
284
- "tenant+handler": "tenant+handler";
285
- user: "user";
286
- "user+handler": "user+handler";
287
- }>;
288
- limit: z.ZodNumber;
289
- windowSeconds: z.ZodNumber;
290
- cost: z.ZodOptional<z.ZodNumber>;
291
- }, z.core.$strict>, z.ZodTuple<[z.ZodObject<{
292
- per: z.ZodEnum<{
293
- ip: "ip";
294
- "ip+handler": "ip+handler";
295
- tenant: "tenant";
296
- "tenant+handler": "tenant+handler";
297
- user: "user";
298
- "user+handler": "user+handler";
299
- }>;
300
- limit: z.ZodNumber;
301
- windowSeconds: z.ZodNumber;
302
- cost: z.ZodOptional<z.ZodNumber>;
303
- }, z.core.$strict>], z.ZodObject<{
304
- per: z.ZodEnum<{
305
- ip: "ip";
306
- "ip+handler": "ip+handler";
307
- tenant: "tenant";
308
- "tenant+handler": "tenant+handler";
309
- user: "user";
310
- "user+handler": "user+handler";
311
- }>;
312
- limit: z.ZodNumber;
313
- windowSeconds: z.ZodNumber;
314
- cost: z.ZodOptional<z.ZodNumber>;
315
- }, z.core.$strict>>, z.ZodObject<{
316
- disabled: z.ZodLiteral<true>;
317
- reason: z.ZodString;
318
- }, z.core.$strict>]>, z.ZodObject<{
319
- __raw: z.ZodString;
320
- }, z.core.$strict>]>>;
321
- escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
322
- reason: z.ZodString;
323
- grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
324
- crossTenantReads: "crossTenantReads";
325
- globalWrites: "globalWrites";
326
- systemIdentity: "systemIdentity";
327
- unsafeRaw: "unsafeRaw";
328
- }>>>;
329
- }, z.core.$strict>, z.ZodObject<{
330
- __raw: z.ZodString;
331
- }, z.core.$strict>]>>;
332
- kind: z.ZodLiteral<"queryHandler">;
333
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
334
- handlerName: z.ZodOptional<z.ZodString>;
335
- schemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
336
- handlerBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
337
- }, z.core.$strict>;
338
- streamHandler: z.ZodObject<{
339
- access: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
340
- roles: z.ZodArray<z.ZodString>;
341
- personalData: z.ZodOptional<z.ZodLiteral<"public-intake">>;
342
- }, z.core.$strict>, z.ZodObject<{
343
- openToAll: z.ZodObject<{
344
- reason: z.ZodString;
345
- personalData: z.ZodOptional<z.ZodLiteral<"tenant-members">>;
346
- }, z.core.$strict>;
347
- }, z.core.$strict>]>, z.ZodObject<{
348
- __raw: z.ZodString;
349
- }, z.core.$strict>]>>;
350
- rateLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
351
- per: z.ZodEnum<{
352
- ip: "ip";
353
- "ip+handler": "ip+handler";
354
- tenant: "tenant";
355
- "tenant+handler": "tenant+handler";
356
- user: "user";
357
- "user+handler": "user+handler";
358
- }>;
359
- limit: z.ZodNumber;
360
- windowSeconds: z.ZodNumber;
361
- cost: z.ZodOptional<z.ZodNumber>;
362
- }, z.core.$strict>, z.ZodTuple<[z.ZodObject<{
363
- per: z.ZodEnum<{
364
- ip: "ip";
365
- "ip+handler": "ip+handler";
366
- tenant: "tenant";
367
- "tenant+handler": "tenant+handler";
368
- user: "user";
369
- "user+handler": "user+handler";
370
- }>;
371
- limit: z.ZodNumber;
372
- windowSeconds: z.ZodNumber;
373
- cost: z.ZodOptional<z.ZodNumber>;
374
- }, z.core.$strict>], z.ZodObject<{
375
- per: z.ZodEnum<{
376
- ip: "ip";
377
- "ip+handler": "ip+handler";
378
- tenant: "tenant";
379
- "tenant+handler": "tenant+handler";
380
- user: "user";
381
- "user+handler": "user+handler";
382
- }>;
383
- limit: z.ZodNumber;
384
- windowSeconds: z.ZodNumber;
385
- cost: z.ZodOptional<z.ZodNumber>;
386
- }, z.core.$strict>>, z.ZodObject<{
387
- disabled: z.ZodLiteral<true>;
388
- reason: z.ZodString;
389
- }, z.core.$strict>]>, z.ZodObject<{
390
- __raw: z.ZodString;
391
- }, z.core.$strict>]>>;
392
- escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
393
- reason: z.ZodString;
394
- grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
395
- crossTenantReads: "crossTenantReads";
396
- globalWrites: "globalWrites";
397
- systemIdentity: "systemIdentity";
398
- unsafeRaw: "unsafeRaw";
399
- }>>>;
400
- }, z.core.$strict>, z.ZodObject<{
401
- __raw: z.ZodString;
402
- }, z.core.$strict>]>>;
403
- kind: z.ZodLiteral<"streamHandler">;
404
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
405
- handlerName: z.ZodOptional<z.ZodString>;
406
- schemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
407
- handlerBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
408
- }, z.core.$strict>;
409
- hook: z.ZodObject<{
410
- kind: z.ZodLiteral<"hook">;
411
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
412
- hookType: z.ZodEnum<{
413
- postDelete: "postDelete";
414
- postQuery: "postQuery";
415
- postSave: "postSave";
416
- preDelete: "preDelete";
417
- preQuery: "preQuery";
418
- preSave: "preSave";
419
- validation: "validation";
420
- }>;
421
- target: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodObject<{
422
- allOf: z.ZodString;
423
- }, z.core.$strict>]>;
424
- fnBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
425
- phase: z.ZodOptional<z.ZodEnum<{
426
- afterCommit: "afterCommit";
427
- inTransaction: "inTransaction";
428
- }>>;
429
- escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
430
- reason: z.ZodString;
431
- grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
432
- crossTenantReads: "crossTenantReads";
433
- globalWrites: "globalWrites";
434
- systemIdentity: "systemIdentity";
435
- unsafeRaw: "unsafeRaw";
436
- }>>>;
437
- }, z.core.$strict>, z.ZodObject<{
438
- __raw: z.ZodString;
439
- }, z.core.$strict>]>>;
440
- }, z.core.$strict>;
441
- job: z.ZodObject<{
442
- kind: z.ZodLiteral<"job">;
443
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
444
- jobName: z.ZodString;
445
- options: z.ZodType<Omit<JobDefinition, "handler" | "name">, unknown, z.core.$ZodTypeInternals<Omit<JobDefinition, "handler" | "name">, unknown>>;
446
- handlerBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
447
- }, z.core.$strict>;
448
- notification: z.ZodObject<{
449
- kind: z.ZodLiteral<"notification">;
450
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
451
- notificationName: z.ZodString;
452
- trigger: z.ZodOptional<z.ZodObject<{
453
- on: z.ZodString;
454
- }, z.core.$strict>>;
455
- recipientBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
456
- dataBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
457
- templates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>>;
458
- }, z.core.$strict>;
459
- authClaims: z.ZodObject<{
460
- kind: z.ZodLiteral<"authClaims">;
461
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
462
- fnBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
463
- }, z.core.$strict>;
464
- httpRoute: z.ZodObject<{
465
- kind: z.ZodLiteral<"httpRoute">;
466
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
467
- method: z.ZodEnum<{
468
- DELETE: "DELETE";
469
- GET: "GET";
470
- HEAD: "HEAD";
471
- OPTIONS: "OPTIONS";
472
- PATCH: "PATCH";
473
- POST: "POST";
474
- PUT: "PUT";
475
- }>;
476
- path: z.ZodString;
477
- anonymous: z.ZodBoolean;
478
- handlerBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
479
- }, z.core.$strict>;
480
- projection: z.ZodObject<{
481
- kind: z.ZodLiteral<"projection">;
482
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
483
- name: z.ZodString;
484
- sourceEntity: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
485
- applyBodies: z.ZodRecord<z.ZodString, z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
486
- }, z.core.$strict>;
487
- multiStreamProjection: z.ZodObject<{
488
- kind: z.ZodLiteral<"multiStreamProjection">;
489
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
490
- name: z.ZodString;
491
- applyBodies: z.ZodRecord<z.ZodString, z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
492
- errorMode: z.ZodOptional<z.ZodObject<{
493
- continuous: z.ZodOptional<z.ZodObject<{
494
- skipApplyErrors: z.ZodOptional<z.ZodBoolean>;
495
- }, z.core.$strict>>;
496
- rebuild: z.ZodOptional<z.ZodObject<{
497
- skipApplyErrors: z.ZodOptional<z.ZodBoolean>;
498
- }, z.core.$strict>>;
499
- }, z.core.$strict>>;
500
- runIn: z.ZodOptional<z.ZodEnum<{
501
- api: "api";
502
- both: "both";
503
- worker: "worker";
504
- }>>;
505
- delivery: z.ZodOptional<z.ZodEnum<{
506
- "per-instance": "per-instance";
507
- shared: "shared";
508
- }>>;
509
- }, z.core.$strict>;
510
- defineEvent: z.ZodObject<{
511
- kind: z.ZodLiteral<"defineEvent">;
512
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
513
- eventName: z.ZodString;
514
- eventNameRaw: z.ZodOptional<z.ZodString>;
515
- schemaSource: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
516
- version: z.ZodOptional<z.ZodNumber>;
517
- piiFields: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
518
- migrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>>;
519
- }, z.core.$strict>;
520
- extendsRegistrar: z.ZodObject<{
521
- kind: z.ZodLiteral<"extendsRegistrar">;
522
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
523
- extensionName: z.ZodString;
524
- extensionNameRaw: z.ZodOptional<z.ZodString>;
525
- defBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
526
- }, z.core.$strict>;
527
- envSchema: z.ZodObject<{
528
- kind: z.ZodLiteral<"envSchema">;
529
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
530
- schemaBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
531
- }, z.core.$strict>;
532
- "ai.generate": z.ZodObject<{
533
- kind: z.ZodLiteral<"ai.generate">;
534
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
535
- argsSource: z.ZodOptional<z.ZodCustom<{
536
- readonly __raw: string;
537
- }, {
538
- readonly __raw: string;
539
- }>>;
540
- stepKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
541
- readonly __raw: string;
542
- }, {
543
- readonly __raw: string;
544
- }>]>>;
545
- promptKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
546
- readonly __raw: string;
547
- }, {
548
- readonly __raw: string;
549
- }>]>>;
550
- promptFallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
551
- readonly __raw: string;
552
- }, {
553
- readonly __raw: string;
554
- }>]>>;
555
- defaults: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
556
- enabled: z.ZodBoolean;
557
- providerId: z.ZodOptional<z.ZodString>;
558
- model: z.ZodOptional<z.ZodString>;
559
- params: z.ZodCustom<Record<string, unknown>, Record<string, unknown>>;
560
- }, z.core.$strict>, z.ZodCustom<{
561
- readonly __raw: string;
562
- }, {
563
- readonly __raw: string;
564
- }>]>>;
565
- paramsSchemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
566
- inputBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
567
- }, z.core.$strict>;
568
- "ai.extract": z.ZodObject<{
569
- kind: z.ZodLiteral<"ai.extract">;
570
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
571
- argsSource: z.ZodOptional<z.ZodCustom<{
572
- readonly __raw: string;
573
- }, {
574
- readonly __raw: string;
575
- }>>;
576
- stepKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
577
- readonly __raw: string;
578
- }, {
579
- readonly __raw: string;
580
- }>]>>;
581
- promptKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
582
- readonly __raw: string;
583
- }, {
584
- readonly __raw: string;
585
- }>]>>;
586
- promptFallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
587
- readonly __raw: string;
588
- }, {
589
- readonly __raw: string;
590
- }>]>>;
591
- defaults: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
592
- enabled: z.ZodBoolean;
593
- providerId: z.ZodOptional<z.ZodString>;
594
- model: z.ZodOptional<z.ZodString>;
595
- params: z.ZodCustom<Record<string, unknown>, Record<string, unknown>>;
596
- }, z.core.$strict>, z.ZodCustom<{
597
- readonly __raw: string;
598
- }, {
599
- readonly __raw: string;
600
- }>]>>;
601
- paramsSchemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
602
- outputSchemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
603
- instructionsBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
604
- documentBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
605
- }, z.core.$strict>;
606
- "ai.classify": z.ZodObject<{
607
- kind: z.ZodLiteral<"ai.classify">;
608
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
609
- argsSource: z.ZodOptional<z.ZodCustom<{
610
- readonly __raw: string;
611
- }, {
612
- readonly __raw: string;
613
- }>>;
614
- stepKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
615
- readonly __raw: string;
616
- }, {
617
- readonly __raw: string;
618
- }>]>>;
619
- promptKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
620
- readonly __raw: string;
621
- }, {
622
- readonly __raw: string;
623
- }>]>>;
624
- promptFallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
625
- readonly __raw: string;
626
- }, {
627
- readonly __raw: string;
628
- }>]>>;
629
- defaults: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
630
- enabled: z.ZodBoolean;
631
- providerId: z.ZodOptional<z.ZodString>;
632
- model: z.ZodOptional<z.ZodString>;
633
- params: z.ZodCustom<Record<string, unknown>, Record<string, unknown>>;
634
- }, z.core.$strict>, z.ZodCustom<{
635
- readonly __raw: string;
636
- }, {
637
- readonly __raw: string;
638
- }>]>>;
639
- paramsSchemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
640
- actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
641
- type: z.ZodString;
642
- description: z.ZodString;
643
- }, z.core.$strict>>>;
644
- inputBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
645
- }, z.core.$strict>;
646
- unknown: z.ZodObject<{
647
- kind: z.ZodLiteral<"unknown">;
648
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
649
- methodName: z.ZodString;
650
- }, z.core.$strict>;
651
- };
652
- export declare const patternSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
653
- kind: z.ZodLiteral<"entity">;
654
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
655
- entityName: z.ZodString;
656
- definition: z.ZodType<EntityDefinition, unknown, z.core.$ZodTypeInternals<EntityDefinition, unknown>>;
657
- backingTable: z.ZodOptional<z.ZodType<RawRefSentinel, unknown, z.core.$ZodTypeInternals<RawRefSentinel, unknown>>>;
658
- }, z.core.$strict>, z.ZodObject<{
659
- kind: z.ZodLiteral<"relation">;
660
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
661
- entityName: z.ZodString;
662
- relationName: z.ZodString;
663
- definition: z.ZodType<RelationDefinition, unknown, z.core.$ZodTypeInternals<RelationDefinition, unknown>>;
664
- }, z.core.$strict>, z.ZodObject<{
665
- kind: z.ZodLiteral<"nav">;
666
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
667
- definition: z.ZodType<NavDefinition, unknown, z.core.$ZodTypeInternals<NavDefinition, unknown>>;
668
- }, z.core.$strict>, z.ZodObject<{
669
- kind: z.ZodLiteral<"workspace">;
670
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
671
- definition: z.ZodType<WorkspaceDefinition, unknown, z.core.$ZodTypeInternals<WorkspaceDefinition, unknown>>;
672
- }, z.core.$strict>, z.ZodObject<{
673
- kind: z.ZodLiteral<"config">;
674
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
675
- keys: z.ZodType<Readonly<Record<string, ConfigKeyDefinition<ConfigKeyType>>>, unknown, z.core.$ZodTypeInternals<Readonly<Record<string, ConfigKeyDefinition<ConfigKeyType>>>, unknown>>;
676
- }, z.core.$strict>, z.ZodObject<{
677
- kind: z.ZodLiteral<"translations">;
678
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
679
- 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>>;
680
- }, z.core.$strict>, z.ZodObject<{
681
- kind: z.ZodLiteral<"requires">;
682
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
683
- featureNames: z.ZodType<readonly string[], unknown, z.core.$ZodTypeInternals<readonly string[], unknown>>;
684
- }, z.core.$strict>, z.ZodObject<{
685
- kind: z.ZodLiteral<"optionalRequires">;
686
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
687
- featureNames: z.ZodType<readonly string[], unknown, z.core.$ZodTypeInternals<readonly string[], unknown>>;
688
- }, z.core.$strict>, z.ZodObject<{
689
- kind: z.ZodLiteral<"systemScope">;
690
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
691
- }, z.core.$strict>, z.ZodObject<{
692
- kind: z.ZodLiteral<"toggleable">;
693
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
694
- default: z.ZodBoolean;
695
- }, z.core.$strict>, z.ZodObject<{
696
- kind: z.ZodLiteral<"describe">;
697
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
698
- text: z.ZodString;
699
- }, z.core.$strict>, z.ZodObject<{
700
- kind: z.ZodLiteral<"uiHints">;
701
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
702
- }, z.core.$strict>, z.ZodObject<{
703
- kind: z.ZodLiteral<"adoptsBundledLists">;
704
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
705
- }, z.core.$strict>, z.ZodObject<{
706
- kind: z.ZodLiteral<"metric">;
707
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
708
- shortName: z.ZodString;
709
- options: z.ZodType<MetricOptions, unknown, z.core.$ZodTypeInternals<MetricOptions, unknown>>;
710
- }, z.core.$strict>, z.ZodObject<{
711
- kind: z.ZodLiteral<"secret">;
712
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
713
- shortName: z.ZodString;
714
- options: z.ZodType<SecretOptions, unknown, z.core.$ZodTypeInternals<SecretOptions, unknown>>;
715
- }, z.core.$strict>, z.ZodObject<{
716
- kind: z.ZodLiteral<"secretNamespace">;
717
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
718
- shortName: z.ZodString;
719
- options: z.ZodType<SecretNamespaceOptions, unknown, z.core.$ZodTypeInternals<SecretNamespaceOptions, unknown>>;
720
- }, z.core.$strict>, z.ZodObject<{
721
- kind: z.ZodLiteral<"claimKey">;
722
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
723
- shortName: z.ZodString;
724
- claimType: z.ZodEnum<{
725
- boolean: "boolean";
726
- number: "number";
727
- object: "object";
728
- string: "string";
729
- "string[]": "string[]";
730
- }>;
731
- }, z.core.$strict>, z.ZodObject<{
732
- kind: z.ZodLiteral<"referenceData">;
733
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
734
- entityName: z.ZodString;
735
- data: z.ZodCustom<readonly Record<string, unknown>[], readonly Record<string, unknown>[]>;
736
- upsertKey: z.ZodOptional<z.ZodString>;
737
- }, z.core.$strict>, z.ZodObject<{
738
- kind: z.ZodLiteral<"readsConfig">;
739
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
740
- qualifiedKeys: z.ZodType<readonly string[], unknown, z.core.$ZodTypeInternals<readonly string[], unknown>>;
741
- }, z.core.$strict>, z.ZodObject<{
742
- kind: z.ZodLiteral<"useExtension">;
743
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
744
- extensionName: z.ZodString;
745
- extensionNameRaw: z.ZodOptional<z.ZodString>;
746
- entityName: z.ZodString;
747
- options: z.ZodOptional<z.ZodType<Readonly<Record<string, unknown>>, unknown, z.core.$ZodTypeInternals<Readonly<Record<string, unknown>>, unknown>>>;
748
- }, z.core.$strict>, z.ZodObject<{
749
- kind: z.ZodLiteral<"usesApi">;
750
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
751
- apiName: z.ZodString;
752
- }, z.core.$strict>, z.ZodObject<{
753
- kind: z.ZodLiteral<"exposesApi">;
754
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
755
- apiName: z.ZodString;
756
- }, z.core.$strict>, z.ZodObject<{
757
- kind: z.ZodLiteral<"treeActions">;
758
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
759
- definitions: z.ZodType<Readonly<Record<string, TreeActionDef>>, unknown, z.core.$ZodTypeInternals<Readonly<Record<string, TreeActionDef>>, unknown>>;
760
- }, z.core.$strict>, z.ZodObject<{
761
- kind: z.ZodLiteral<"screen">;
762
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
763
- definition: z.ZodType<ScreenDefinition, unknown, z.core.$ZodTypeInternals<ScreenDefinition, unknown>>;
764
- opaqueProps: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>>>;
765
- }, z.core.$strict>, z.ZodObject<{
766
- description: z.ZodOptional<z.ZodString>;
767
- unsafeSkipTransitionGuard: z.ZodOptional<z.ZodBoolean>;
768
- access: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
769
- roles: z.ZodArray<z.ZodString>;
770
- personalData: z.ZodOptional<z.ZodLiteral<"public-intake">>;
771
- }, z.core.$strict>, z.ZodObject<{
772
- openToAll: z.ZodObject<{
773
- reason: z.ZodString;
774
- personalData: z.ZodOptional<z.ZodLiteral<"tenant-members">>;
775
- }, z.core.$strict>;
776
- }, z.core.$strict>]>, z.ZodObject<{
777
- __raw: z.ZodString;
778
- }, z.core.$strict>]>>;
779
- agent: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
780
- expose: z.ZodOptional<z.ZodBoolean>;
781
- risk: z.ZodOptional<z.ZodEnum<{
782
- high: "high";
783
- low: "low";
784
- mid: "mid";
785
- }>>;
786
- }, z.core.$strict>, z.ZodObject<{
787
- __raw: z.ZodString;
788
- }, z.core.$strict>]>>;
789
- rateLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
790
- per: z.ZodEnum<{
791
- ip: "ip";
792
- "ip+handler": "ip+handler";
793
- tenant: "tenant";
794
- "tenant+handler": "tenant+handler";
795
- user: "user";
796
- "user+handler": "user+handler";
797
- }>;
798
- limit: z.ZodNumber;
799
- windowSeconds: z.ZodNumber;
800
- cost: z.ZodOptional<z.ZodNumber>;
801
- }, z.core.$strict>, z.ZodTuple<[z.ZodObject<{
802
- per: z.ZodEnum<{
803
- ip: "ip";
804
- "ip+handler": "ip+handler";
805
- tenant: "tenant";
806
- "tenant+handler": "tenant+handler";
807
- user: "user";
808
- "user+handler": "user+handler";
809
- }>;
810
- limit: z.ZodNumber;
811
- windowSeconds: z.ZodNumber;
812
- cost: z.ZodOptional<z.ZodNumber>;
813
- }, z.core.$strict>], z.ZodObject<{
814
- per: z.ZodEnum<{
815
- ip: "ip";
816
- "ip+handler": "ip+handler";
817
- tenant: "tenant";
818
- "tenant+handler": "tenant+handler";
819
- user: "user";
820
- "user+handler": "user+handler";
821
- }>;
822
- limit: z.ZodNumber;
823
- windowSeconds: z.ZodNumber;
824
- cost: z.ZodOptional<z.ZodNumber>;
825
- }, z.core.$strict>>, z.ZodObject<{
826
- disabled: z.ZodLiteral<true>;
827
- reason: z.ZodString;
828
- }, z.core.$strict>]>, z.ZodObject<{
829
- __raw: z.ZodString;
830
- }, z.core.$strict>]>>;
831
- additionalRateLimits: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
832
- per: z.ZodObject<{
833
- payloadField: z.ZodString;
834
- }, z.core.$strict>;
835
- limit: z.ZodNumber;
836
- windowSeconds: z.ZodNumber;
837
- cost: z.ZodOptional<z.ZodNumber>;
838
- normalize: z.ZodOptional<z.ZodLiteral<"email">>;
839
- }, z.core.$strict>>, z.ZodObject<{
840
- __raw: z.ZodString;
841
- }, z.core.$strict>]>>;
842
- escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
843
- reason: z.ZodString;
844
- grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
845
- crossTenantReads: "crossTenantReads";
846
- globalWrites: "globalWrites";
847
- systemIdentity: "systemIdentity";
848
- unsafeRaw: "unsafeRaw";
849
- }>>>;
850
- }, z.core.$strict>, z.ZodObject<{
851
- __raw: z.ZodString;
852
- }, z.core.$strict>]>>;
853
- kind: z.ZodLiteral<"writeHandler">;
854
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
855
- handlerName: z.ZodOptional<z.ZodString>;
856
- schemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
857
- handlerBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
858
- }, z.core.$strict>, z.ZodObject<{
859
- description: z.ZodOptional<z.ZodString>;
860
- access: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
861
- roles: z.ZodArray<z.ZodString>;
862
- personalData: z.ZodOptional<z.ZodLiteral<"public-intake">>;
863
- }, z.core.$strict>, z.ZodObject<{
864
- openToAll: z.ZodObject<{
865
- reason: z.ZodString;
866
- personalData: z.ZodOptional<z.ZodLiteral<"tenant-members">>;
867
- }, z.core.$strict>;
868
- }, z.core.$strict>]>, z.ZodObject<{
869
- __raw: z.ZodString;
870
- }, z.core.$strict>]>>;
871
- agent: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
872
- expose: z.ZodOptional<z.ZodBoolean>;
873
- risk: z.ZodOptional<z.ZodEnum<{
874
- high: "high";
875
- low: "low";
876
- mid: "mid";
877
- }>>;
878
- }, z.core.$strict>, z.ZodObject<{
879
- __raw: z.ZodString;
880
- }, z.core.$strict>]>>;
881
- rateLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
882
- per: z.ZodEnum<{
883
- ip: "ip";
884
- "ip+handler": "ip+handler";
885
- tenant: "tenant";
886
- "tenant+handler": "tenant+handler";
887
- user: "user";
888
- "user+handler": "user+handler";
889
- }>;
890
- limit: z.ZodNumber;
891
- windowSeconds: z.ZodNumber;
892
- cost: z.ZodOptional<z.ZodNumber>;
893
- }, z.core.$strict>, z.ZodTuple<[z.ZodObject<{
894
- per: z.ZodEnum<{
895
- ip: "ip";
896
- "ip+handler": "ip+handler";
897
- tenant: "tenant";
898
- "tenant+handler": "tenant+handler";
899
- user: "user";
900
- "user+handler": "user+handler";
901
- }>;
902
- limit: z.ZodNumber;
903
- windowSeconds: z.ZodNumber;
904
- cost: z.ZodOptional<z.ZodNumber>;
905
- }, z.core.$strict>], z.ZodObject<{
906
- per: z.ZodEnum<{
907
- ip: "ip";
908
- "ip+handler": "ip+handler";
909
- tenant: "tenant";
910
- "tenant+handler": "tenant+handler";
911
- user: "user";
912
- "user+handler": "user+handler";
913
- }>;
914
- limit: z.ZodNumber;
915
- windowSeconds: z.ZodNumber;
916
- cost: z.ZodOptional<z.ZodNumber>;
917
- }, z.core.$strict>>, z.ZodObject<{
918
- disabled: z.ZodLiteral<true>;
919
- reason: z.ZodString;
920
- }, z.core.$strict>]>, z.ZodObject<{
921
- __raw: z.ZodString;
922
- }, z.core.$strict>]>>;
923
- escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
924
- reason: z.ZodString;
925
- grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
926
- crossTenantReads: "crossTenantReads";
927
- globalWrites: "globalWrites";
928
- systemIdentity: "systemIdentity";
929
- unsafeRaw: "unsafeRaw";
930
- }>>>;
931
- }, z.core.$strict>, z.ZodObject<{
932
- __raw: z.ZodString;
933
- }, z.core.$strict>]>>;
934
- kind: z.ZodLiteral<"queryHandler">;
935
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
936
- handlerName: z.ZodOptional<z.ZodString>;
937
- schemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
938
- handlerBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
939
- }, z.core.$strict>, z.ZodObject<{
940
- access: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
941
- roles: z.ZodArray<z.ZodString>;
942
- personalData: z.ZodOptional<z.ZodLiteral<"public-intake">>;
943
- }, z.core.$strict>, z.ZodObject<{
944
- openToAll: z.ZodObject<{
945
- reason: z.ZodString;
946
- personalData: z.ZodOptional<z.ZodLiteral<"tenant-members">>;
947
- }, z.core.$strict>;
948
- }, z.core.$strict>]>, z.ZodObject<{
949
- __raw: z.ZodString;
950
- }, z.core.$strict>]>>;
951
- rateLimit: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
952
- per: z.ZodEnum<{
953
- ip: "ip";
954
- "ip+handler": "ip+handler";
955
- tenant: "tenant";
956
- "tenant+handler": "tenant+handler";
957
- user: "user";
958
- "user+handler": "user+handler";
959
- }>;
960
- limit: z.ZodNumber;
961
- windowSeconds: z.ZodNumber;
962
- cost: z.ZodOptional<z.ZodNumber>;
963
- }, z.core.$strict>, z.ZodTuple<[z.ZodObject<{
964
- per: z.ZodEnum<{
965
- ip: "ip";
966
- "ip+handler": "ip+handler";
967
- tenant: "tenant";
968
- "tenant+handler": "tenant+handler";
969
- user: "user";
970
- "user+handler": "user+handler";
971
- }>;
972
- limit: z.ZodNumber;
973
- windowSeconds: z.ZodNumber;
974
- cost: z.ZodOptional<z.ZodNumber>;
975
- }, z.core.$strict>], z.ZodObject<{
976
- per: z.ZodEnum<{
977
- ip: "ip";
978
- "ip+handler": "ip+handler";
979
- tenant: "tenant";
980
- "tenant+handler": "tenant+handler";
981
- user: "user";
982
- "user+handler": "user+handler";
983
- }>;
984
- limit: z.ZodNumber;
985
- windowSeconds: z.ZodNumber;
986
- cost: z.ZodOptional<z.ZodNumber>;
987
- }, z.core.$strict>>, z.ZodObject<{
988
- disabled: z.ZodLiteral<true>;
989
- reason: z.ZodString;
990
- }, z.core.$strict>]>, z.ZodObject<{
991
- __raw: z.ZodString;
992
- }, z.core.$strict>]>>;
993
- escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
994
- reason: z.ZodString;
995
- grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
996
- crossTenantReads: "crossTenantReads";
997
- globalWrites: "globalWrites";
998
- systemIdentity: "systemIdentity";
999
- unsafeRaw: "unsafeRaw";
1000
- }>>>;
1001
- }, z.core.$strict>, z.ZodObject<{
1002
- __raw: z.ZodString;
1003
- }, z.core.$strict>]>>;
1004
- kind: z.ZodLiteral<"streamHandler">;
1005
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1006
- handlerName: z.ZodOptional<z.ZodString>;
1007
- schemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1008
- handlerBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1009
- }, z.core.$strict>, z.ZodObject<{
1010
- kind: z.ZodLiteral<"hook">;
1011
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1012
- hookType: z.ZodEnum<{
1013
- postDelete: "postDelete";
1014
- postQuery: "postQuery";
1015
- postSave: "postSave";
1016
- preDelete: "preDelete";
1017
- preQuery: "preQuery";
1018
- preSave: "preSave";
1019
- validation: "validation";
1020
- }>;
1021
- target: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodObject<{
1022
- allOf: z.ZodString;
1023
- }, z.core.$strict>]>;
1024
- fnBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1025
- phase: z.ZodOptional<z.ZodEnum<{
1026
- afterCommit: "afterCommit";
1027
- inTransaction: "inTransaction";
1028
- }>>;
1029
- escapeHatch: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1030
- reason: z.ZodString;
1031
- grants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
1032
- crossTenantReads: "crossTenantReads";
1033
- globalWrites: "globalWrites";
1034
- systemIdentity: "systemIdentity";
1035
- unsafeRaw: "unsafeRaw";
1036
- }>>>;
1037
- }, z.core.$strict>, z.ZodObject<{
1038
- __raw: z.ZodString;
1039
- }, z.core.$strict>]>>;
1040
- }, z.core.$strict>, z.ZodObject<{
1041
- kind: z.ZodLiteral<"job">;
1042
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1043
- jobName: z.ZodString;
1044
- options: z.ZodType<Omit<JobDefinition, "handler" | "name">, unknown, z.core.$ZodTypeInternals<Omit<JobDefinition, "handler" | "name">, unknown>>;
1045
- handlerBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1046
- }, z.core.$strict>, z.ZodObject<{
1047
- kind: z.ZodLiteral<"notification">;
1048
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1049
- notificationName: z.ZodString;
1050
- trigger: z.ZodOptional<z.ZodObject<{
1051
- on: z.ZodString;
1052
- }, z.core.$strict>>;
1053
- recipientBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1054
- dataBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1055
- templates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>>;
1056
- }, z.core.$strict>, z.ZodObject<{
1057
- kind: z.ZodLiteral<"authClaims">;
1058
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1059
- fnBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1060
- }, z.core.$strict>, z.ZodObject<{
1061
- kind: z.ZodLiteral<"httpRoute">;
1062
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1063
- method: z.ZodEnum<{
1064
- DELETE: "DELETE";
1065
- GET: "GET";
1066
- HEAD: "HEAD";
1067
- OPTIONS: "OPTIONS";
1068
- PATCH: "PATCH";
1069
- POST: "POST";
1070
- PUT: "PUT";
1071
- }>;
1072
- path: z.ZodString;
1073
- anonymous: z.ZodBoolean;
1074
- handlerBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1075
- }, z.core.$strict>, z.ZodObject<{
1076
- kind: z.ZodLiteral<"projection">;
1077
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1078
- name: z.ZodString;
1079
- sourceEntity: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
1080
- applyBodies: z.ZodRecord<z.ZodString, z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1081
- }, z.core.$strict>, z.ZodObject<{
1082
- kind: z.ZodLiteral<"multiStreamProjection">;
1083
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1084
- name: z.ZodString;
1085
- applyBodies: z.ZodRecord<z.ZodString, z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1086
- errorMode: z.ZodOptional<z.ZodObject<{
1087
- continuous: z.ZodOptional<z.ZodObject<{
1088
- skipApplyErrors: z.ZodOptional<z.ZodBoolean>;
1089
- }, z.core.$strict>>;
1090
- rebuild: z.ZodOptional<z.ZodObject<{
1091
- skipApplyErrors: z.ZodOptional<z.ZodBoolean>;
1092
- }, z.core.$strict>>;
1093
- }, z.core.$strict>>;
1094
- runIn: z.ZodOptional<z.ZodEnum<{
1095
- api: "api";
1096
- both: "both";
1097
- worker: "worker";
1098
- }>>;
1099
- delivery: z.ZodOptional<z.ZodEnum<{
1100
- "per-instance": "per-instance";
1101
- shared: "shared";
1102
- }>>;
1103
- }, z.core.$strict>, z.ZodObject<{
1104
- kind: z.ZodLiteral<"defineEvent">;
1105
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1106
- eventName: z.ZodString;
1107
- eventNameRaw: z.ZodOptional<z.ZodString>;
1108
- schemaSource: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1109
- version: z.ZodOptional<z.ZodNumber>;
1110
- piiFields: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1111
- migrations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>>;
1112
- }, z.core.$strict>, z.ZodObject<{
1113
- kind: z.ZodLiteral<"extendsRegistrar">;
1114
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1115
- extensionName: z.ZodString;
1116
- extensionNameRaw: z.ZodOptional<z.ZodString>;
1117
- defBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1118
- }, z.core.$strict>, z.ZodObject<{
1119
- kind: z.ZodLiteral<"envSchema">;
1120
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1121
- schemaBody: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1122
- }, z.core.$strict>, z.ZodObject<{
1123
- kind: z.ZodLiteral<"ai.generate">;
1124
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1125
- argsSource: z.ZodOptional<z.ZodCustom<{
1126
- readonly __raw: string;
1127
- }, {
1128
- readonly __raw: string;
1129
- }>>;
1130
- stepKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
1131
- readonly __raw: string;
1132
- }, {
1133
- readonly __raw: string;
1134
- }>]>>;
1135
- promptKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
1136
- readonly __raw: string;
1137
- }, {
1138
- readonly __raw: string;
1139
- }>]>>;
1140
- promptFallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
1141
- readonly __raw: string;
1142
- }, {
1143
- readonly __raw: string;
1144
- }>]>>;
1145
- defaults: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1146
- enabled: z.ZodBoolean;
1147
- providerId: z.ZodOptional<z.ZodString>;
1148
- model: z.ZodOptional<z.ZodString>;
1149
- params: z.ZodCustom<Record<string, unknown>, Record<string, unknown>>;
1150
- }, z.core.$strict>, z.ZodCustom<{
1151
- readonly __raw: string;
1152
- }, {
1153
- readonly __raw: string;
1154
- }>]>>;
1155
- paramsSchemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1156
- inputBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1157
- }, z.core.$strict>, z.ZodObject<{
1158
- kind: z.ZodLiteral<"ai.extract">;
1159
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1160
- argsSource: z.ZodOptional<z.ZodCustom<{
1161
- readonly __raw: string;
1162
- }, {
1163
- readonly __raw: string;
1164
- }>>;
1165
- stepKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
1166
- readonly __raw: string;
1167
- }, {
1168
- readonly __raw: string;
1169
- }>]>>;
1170
- promptKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
1171
- readonly __raw: string;
1172
- }, {
1173
- readonly __raw: string;
1174
- }>]>>;
1175
- promptFallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
1176
- readonly __raw: string;
1177
- }, {
1178
- readonly __raw: string;
1179
- }>]>>;
1180
- defaults: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1181
- enabled: z.ZodBoolean;
1182
- providerId: z.ZodOptional<z.ZodString>;
1183
- model: z.ZodOptional<z.ZodString>;
1184
- params: z.ZodCustom<Record<string, unknown>, Record<string, unknown>>;
1185
- }, z.core.$strict>, z.ZodCustom<{
1186
- readonly __raw: string;
1187
- }, {
1188
- readonly __raw: string;
1189
- }>]>>;
1190
- paramsSchemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1191
- outputSchemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1192
- instructionsBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1193
- documentBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1194
- }, z.core.$strict>, z.ZodObject<{
1195
- kind: z.ZodLiteral<"ai.classify">;
1196
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1197
- argsSource: z.ZodOptional<z.ZodCustom<{
1198
- readonly __raw: string;
1199
- }, {
1200
- readonly __raw: string;
1201
- }>>;
1202
- stepKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
1203
- readonly __raw: string;
1204
- }, {
1205
- readonly __raw: string;
1206
- }>]>>;
1207
- promptKey: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
1208
- readonly __raw: string;
1209
- }, {
1210
- readonly __raw: string;
1211
- }>]>>;
1212
- promptFallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodCustom<{
1213
- readonly __raw: string;
1214
- }, {
1215
- readonly __raw: string;
1216
- }>]>>;
1217
- defaults: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1218
- enabled: z.ZodBoolean;
1219
- providerId: z.ZodOptional<z.ZodString>;
1220
- model: z.ZodOptional<z.ZodString>;
1221
- params: z.ZodCustom<Record<string, unknown>, Record<string, unknown>>;
1222
- }, z.core.$strict>, z.ZodCustom<{
1223
- readonly __raw: string;
1224
- }, {
1225
- readonly __raw: string;
1226
- }>]>>;
1227
- paramsSchemaSource: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1228
- actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1229
- type: z.ZodString;
1230
- description: z.ZodString;
1231
- }, z.core.$strict>>>;
1232
- inputBody: z.ZodOptional<z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>>;
1233
- }, z.core.$strict>, z.ZodObject<{
1234
- kind: z.ZodLiteral<"unknown">;
1235
- source: z.ZodType<SourceLocation, unknown, z.core.$ZodTypeInternals<SourceLocation, unknown>>;
1236
- methodName: z.ZodString;
1237
- }, z.core.$strict>], "kind">;
1238
- export declare function parsePatternChanges(input: unknown): PatternChangesParseResult;