@angriff36/manifest 2.18.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.
- package/LICENSE +21 -0
- package/README.md +476 -0
- package/dist/manifest/agent-sdk/agent-runtime.d.ts +30 -0
- package/dist/manifest/agent-sdk/agent-runtime.d.ts.map +1 -0
- package/dist/manifest/agent-sdk/agent-runtime.js +232 -0
- package/dist/manifest/agent-sdk/agent-runtime.js.map +1 -0
- package/dist/manifest/agent-sdk/index.d.ts +17 -0
- package/dist/manifest/agent-sdk/index.d.ts.map +1 -0
- package/dist/manifest/agent-sdk/index.js +21 -0
- package/dist/manifest/agent-sdk/index.js.map +1 -0
- package/dist/manifest/agent-sdk/intent-mapper.d.ts +17 -0
- package/dist/manifest/agent-sdk/intent-mapper.d.ts.map +1 -0
- package/dist/manifest/agent-sdk/intent-mapper.js +115 -0
- package/dist/manifest/agent-sdk/intent-mapper.js.map +1 -0
- package/dist/manifest/agent-sdk/introspect.d.ts +42 -0
- package/dist/manifest/agent-sdk/introspect.d.ts.map +1 -0
- package/dist/manifest/agent-sdk/introspect.js +284 -0
- package/dist/manifest/agent-sdk/introspect.js.map +1 -0
- package/dist/manifest/agent-sdk/json-schema.d.ts +29 -0
- package/dist/manifest/agent-sdk/json-schema.d.ts.map +1 -0
- package/dist/manifest/agent-sdk/json-schema.js +132 -0
- package/dist/manifest/agent-sdk/json-schema.js.map +1 -0
- package/dist/manifest/agent-sdk/tool-definitions.d.ts +41 -0
- package/dist/manifest/agent-sdk/tool-definitions.d.ts.map +1 -0
- package/dist/manifest/agent-sdk/tool-definitions.js +288 -0
- package/dist/manifest/agent-sdk/tool-definitions.js.map +1 -0
- package/dist/manifest/agent-sdk/types.d.ts +293 -0
- package/dist/manifest/agent-sdk/types.d.ts.map +1 -0
- package/dist/manifest/agent-sdk/types.js +6 -0
- package/dist/manifest/agent-sdk/types.js.map +1 -0
- package/dist/manifest/api-diagnostics.d.ts +41 -0
- package/dist/manifest/api-diagnostics.d.ts.map +1 -0
- package/dist/manifest/api-diagnostics.js +105 -0
- package/dist/manifest/api-diagnostics.js.map +1 -0
- package/dist/manifest/approval/approval-store.d.ts +52 -0
- package/dist/manifest/approval/approval-store.d.ts.map +1 -0
- package/dist/manifest/approval/approval-store.js +25 -0
- package/dist/manifest/approval/approval-store.js.map +1 -0
- package/dist/manifest/approval/stores/memory.d.ts +33 -0
- package/dist/manifest/approval/stores/memory.d.ts.map +1 -0
- package/dist/manifest/approval/stores/memory.js +56 -0
- package/dist/manifest/approval/stores/memory.js.map +1 -0
- package/dist/manifest/approval/stores/postgres.d.ts +41 -0
- package/dist/manifest/approval/stores/postgres.d.ts.map +1 -0
- package/dist/manifest/approval/stores/postgres.js +124 -0
- package/dist/manifest/approval/stores/postgres.js.map +1 -0
- package/dist/manifest/audit/audit-sink.d.ts +53 -0
- package/dist/manifest/audit/audit-sink.d.ts.map +1 -0
- package/dist/manifest/audit/audit-sink.js +15 -0
- package/dist/manifest/audit/audit-sink.js.map +1 -0
- package/dist/manifest/audit/sinks/memory.d.ts +50 -0
- package/dist/manifest/audit/sinks/memory.d.ts.map +1 -0
- package/dist/manifest/audit/sinks/memory.js +66 -0
- package/dist/manifest/audit/sinks/memory.js.map +1 -0
- package/dist/manifest/audit/sinks/postgres.d.ts +31 -0
- package/dist/manifest/audit/sinks/postgres.d.ts.map +1 -0
- package/dist/manifest/audit/sinks/postgres.js +67 -0
- package/dist/manifest/audit/sinks/postgres.js.map +1 -0
- package/dist/manifest/binary-ir.d.ts +76 -0
- package/dist/manifest/binary-ir.d.ts.map +1 -0
- package/dist/manifest/binary-ir.js +124 -0
- package/dist/manifest/binary-ir.js.map +1 -0
- package/dist/manifest/breaking-change.d.ts +75 -0
- package/dist/manifest/breaking-change.d.ts.map +1 -0
- package/dist/manifest/breaking-change.js +704 -0
- package/dist/manifest/breaking-change.js.map +1 -0
- package/dist/manifest/compiler.d.ts +12 -0
- package/dist/manifest/compiler.d.ts.map +1 -0
- package/dist/manifest/compiler.js +23 -0
- package/dist/manifest/compiler.js.map +1 -0
- package/dist/manifest/config.d.ts +171 -0
- package/dist/manifest/config.d.ts.map +1 -0
- package/dist/manifest/config.js +65 -0
- package/dist/manifest/config.js.map +1 -0
- package/dist/manifest/constraint-analysis.d.ts +122 -0
- package/dist/manifest/constraint-analysis.d.ts.map +1 -0
- package/dist/manifest/constraint-analysis.js +340 -0
- package/dist/manifest/constraint-analysis.js.map +1 -0
- package/dist/manifest/date-time.d.ts +13 -0
- package/dist/manifest/date-time.d.ts.map +1 -0
- package/dist/manifest/date-time.js +60 -0
- package/dist/manifest/date-time.js.map +1 -0
- package/dist/manifest/debug/command-trace.d.ts +37 -0
- package/dist/manifest/debug/command-trace.d.ts.map +1 -0
- package/dist/manifest/debug/command-trace.js +51 -0
- package/dist/manifest/debug/command-trace.js.map +1 -0
- package/dist/manifest/debug/index.d.ts +3 -0
- package/dist/manifest/debug/index.d.ts.map +1 -0
- package/dist/manifest/debug/index.js +2 -0
- package/dist/manifest/debug/index.js.map +1 -0
- package/dist/manifest/domain-completeness.d.ts +13 -0
- package/dist/manifest/domain-completeness.d.ts.map +1 -0
- package/dist/manifest/domain-completeness.js +245 -0
- package/dist/manifest/domain-completeness.js.map +1 -0
- package/dist/manifest/entity-composition.d.ts +24 -0
- package/dist/manifest/entity-composition.d.ts.map +1 -0
- package/dist/manifest/entity-composition.js +157 -0
- package/dist/manifest/entity-composition.js.map +1 -0
- package/dist/manifest/examples.d.ts +6 -0
- package/dist/manifest/examples.d.ts.map +1 -0
- package/dist/manifest/examples.js +443 -0
- package/dist/manifest/examples.js.map +1 -0
- package/dist/manifest/federation/client.d.ts +52 -0
- package/dist/manifest/federation/client.d.ts.map +1 -0
- package/dist/manifest/federation/client.js +152 -0
- package/dist/manifest/federation/client.js.map +1 -0
- package/dist/manifest/federation/descriptor.d.ts +25 -0
- package/dist/manifest/federation/descriptor.d.ts.map +1 -0
- package/dist/manifest/federation/descriptor.js +97 -0
- package/dist/manifest/federation/descriptor.js.map +1 -0
- package/dist/manifest/federation/http-adapter.d.ts +26 -0
- package/dist/manifest/federation/http-adapter.d.ts.map +1 -0
- package/dist/manifest/federation/http-adapter.js +209 -0
- package/dist/manifest/federation/http-adapter.js.map +1 -0
- package/dist/manifest/federation/index.d.ts +51 -0
- package/dist/manifest/federation/index.d.ts.map +1 -0
- package/dist/manifest/federation/index.js +49 -0
- package/dist/manifest/federation/index.js.map +1 -0
- package/dist/manifest/federation/policy-bridge.d.ts +51 -0
- package/dist/manifest/federation/policy-bridge.d.ts.map +1 -0
- package/dist/manifest/federation/policy-bridge.js +122 -0
- package/dist/manifest/federation/policy-bridge.js.map +1 -0
- package/dist/manifest/federation/registry.d.ts +88 -0
- package/dist/manifest/federation/registry.d.ts.map +1 -0
- package/dist/manifest/federation/registry.js +165 -0
- package/dist/manifest/federation/registry.js.map +1 -0
- package/dist/manifest/federation/types.d.ts +209 -0
- package/dist/manifest/federation/types.d.ts.map +1 -0
- package/dist/manifest/federation/types.js +13 -0
- package/dist/manifest/federation/types.js.map +1 -0
- package/dist/manifest/generator.d.ts +44 -0
- package/dist/manifest/generator.d.ts.map +1 -0
- package/dist/manifest/generator.js +899 -0
- package/dist/manifest/generator.js.map +1 -0
- package/dist/manifest/ir-cache.d.ts +48 -0
- package/dist/manifest/ir-cache.d.ts.map +1 -0
- package/dist/manifest/ir-cache.js +91 -0
- package/dist/manifest/ir-cache.js.map +1 -0
- package/dist/manifest/ir-compiler.d.ts +135 -0
- package/dist/manifest/ir-compiler.d.ts.map +1 -0
- package/dist/manifest/ir-compiler.js +1477 -0
- package/dist/manifest/ir-compiler.js.map +1 -0
- package/dist/manifest/ir-diff.d.ts +266 -0
- package/dist/manifest/ir-diff.d.ts.map +1 -0
- package/dist/manifest/ir-diff.js +731 -0
- package/dist/manifest/ir-diff.js.map +1 -0
- package/dist/manifest/ir-version-store.d.ts +109 -0
- package/dist/manifest/ir-version-store.d.ts.map +1 -0
- package/dist/manifest/ir-version-store.js +162 -0
- package/dist/manifest/ir-version-store.js.map +1 -0
- package/dist/manifest/ir.d.ts +616 -0
- package/dist/manifest/ir.d.ts.map +1 -0
- package/dist/manifest/ir.js +2 -0
- package/dist/manifest/ir.js.map +1 -0
- package/dist/manifest/lexer.d.ts +37 -0
- package/dist/manifest/lexer.d.ts.map +1 -0
- package/dist/manifest/lexer.js +224 -0
- package/dist/manifest/lexer.js.map +1 -0
- package/dist/manifest/masking.d.ts +11 -0
- package/dist/manifest/masking.d.ts.map +1 -0
- package/dist/manifest/masking.js +34 -0
- package/dist/manifest/masking.js.map +1 -0
- package/dist/manifest/module-resolver.d.ts +42 -0
- package/dist/manifest/module-resolver.d.ts.map +1 -0
- package/dist/manifest/module-resolver.js +162 -0
- package/dist/manifest/module-resolver.js.map +1 -0
- package/dist/manifest/multi-compiler.d.ts +40 -0
- package/dist/manifest/multi-compiler.d.ts.map +1 -0
- package/dist/manifest/multi-compiler.js +324 -0
- package/dist/manifest/multi-compiler.js.map +1 -0
- package/dist/manifest/outbox/outbox-store.d.ts +56 -0
- package/dist/manifest/outbox/outbox-store.d.ts.map +1 -0
- package/dist/manifest/outbox/outbox-store.js +13 -0
- package/dist/manifest/outbox/outbox-store.js.map +1 -0
- package/dist/manifest/outbox/stores/dynamodb.d.ts +100 -0
- package/dist/manifest/outbox/stores/dynamodb.d.ts.map +1 -0
- package/dist/manifest/outbox/stores/dynamodb.js +239 -0
- package/dist/manifest/outbox/stores/dynamodb.js.map +1 -0
- package/dist/manifest/outbox/stores/memory.d.ts +54 -0
- package/dist/manifest/outbox/stores/memory.d.ts.map +1 -0
- package/dist/manifest/outbox/stores/memory.js +131 -0
- package/dist/manifest/outbox/stores/memory.js.map +1 -0
- package/dist/manifest/outbox/stores/mongodb.d.ts +58 -0
- package/dist/manifest/outbox/stores/mongodb.d.ts.map +1 -0
- package/dist/manifest/outbox/stores/mongodb.js +151 -0
- package/dist/manifest/outbox/stores/mongodb.js.map +1 -0
- package/dist/manifest/outbox/stores/postgres.d.ts +81 -0
- package/dist/manifest/outbox/stores/postgres.d.ts.map +1 -0
- package/dist/manifest/outbox/stores/postgres.js +182 -0
- package/dist/manifest/outbox/stores/postgres.js.map +1 -0
- package/dist/manifest/outbox/stores/redis.d.ts +95 -0
- package/dist/manifest/outbox/stores/redis.d.ts.map +1 -0
- package/dist/manifest/outbox/stores/redis.js +248 -0
- package/dist/manifest/outbox/stores/redis.js.map +1 -0
- package/dist/manifest/parser.d.ts +148 -0
- package/dist/manifest/parser.d.ts.map +1 -0
- package/dist/manifest/parser.js +2243 -0
- package/dist/manifest/parser.js.map +1 -0
- package/dist/manifest/plugin-api.d.ts +202 -0
- package/dist/manifest/plugin-api.d.ts.map +1 -0
- package/dist/manifest/plugin-api.js +101 -0
- package/dist/manifest/plugin-api.js.map +1 -0
- package/dist/manifest/plugin-loader.d.ts +101 -0
- package/dist/manifest/plugin-loader.d.ts.map +1 -0
- package/dist/manifest/plugin-loader.js +332 -0
- package/dist/manifest/plugin-loader.js.map +1 -0
- package/dist/manifest/profiling.d.ts +183 -0
- package/dist/manifest/profiling.d.ts.map +1 -0
- package/dist/manifest/profiling.js +186 -0
- package/dist/manifest/profiling.js.map +1 -0
- package/dist/manifest/projections/analytics/generator.d.ts +27 -0
- package/dist/manifest/projections/analytics/generator.d.ts.map +1 -0
- package/dist/manifest/projections/analytics/generator.js +686 -0
- package/dist/manifest/projections/analytics/generator.js.map +1 -0
- package/dist/manifest/projections/analytics/types.d.ts +46 -0
- package/dist/manifest/projections/analytics/types.d.ts.map +1 -0
- package/dist/manifest/projections/analytics/types.js +8 -0
- package/dist/manifest/projections/analytics/types.js.map +1 -0
- package/dist/manifest/projections/builtins.d.ts +29 -0
- package/dist/manifest/projections/builtins.d.ts.map +1 -0
- package/dist/manifest/projections/builtins.js +143 -0
- package/dist/manifest/projections/builtins.js.map +1 -0
- package/dist/manifest/projections/convex/expression.d.ts +52 -0
- package/dist/manifest/projections/convex/expression.d.ts.map +1 -0
- package/dist/manifest/projections/convex/expression.js +166 -0
- package/dist/manifest/projections/convex/expression.js.map +1 -0
- package/dist/manifest/projections/convex/functions.d.ts +22 -0
- package/dist/manifest/projections/convex/functions.d.ts.map +1 -0
- package/dist/manifest/projections/convex/functions.js +786 -0
- package/dist/manifest/projections/convex/functions.js.map +1 -0
- package/dist/manifest/projections/convex/generator.d.ts +79 -0
- package/dist/manifest/projections/convex/generator.d.ts.map +1 -0
- package/dist/manifest/projections/convex/generator.js +406 -0
- package/dist/manifest/projections/convex/generator.js.map +1 -0
- package/dist/manifest/projections/convex/index.d.ts +10 -0
- package/dist/manifest/projections/convex/index.d.ts.map +1 -0
- package/dist/manifest/projections/convex/index.js +10 -0
- package/dist/manifest/projections/convex/index.js.map +1 -0
- package/dist/manifest/projections/convex/options.d.ts +153 -0
- package/dist/manifest/projections/convex/options.d.ts.map +1 -0
- package/dist/manifest/projections/convex/options.js +60 -0
- package/dist/manifest/projections/convex/options.js.map +1 -0
- package/dist/manifest/projections/convex/orchestration.d.ts +23 -0
- package/dist/manifest/projections/convex/orchestration.d.ts.map +1 -0
- package/dist/manifest/projections/convex/orchestration.js +150 -0
- package/dist/manifest/projections/convex/orchestration.js.map +1 -0
- package/dist/manifest/projections/convex/type-mapping.d.ts +40 -0
- package/dist/manifest/projections/convex/type-mapping.d.ts.map +1 -0
- package/dist/manifest/projections/convex/type-mapping.js +71 -0
- package/dist/manifest/projections/convex/type-mapping.js.map +1 -0
- package/dist/manifest/projections/dart/generator.d.ts +33 -0
- package/dist/manifest/projections/dart/generator.d.ts.map +1 -0
- package/dist/manifest/projections/dart/generator.js +981 -0
- package/dist/manifest/projections/dart/generator.js.map +1 -0
- package/dist/manifest/projections/dart/types.d.ts +29 -0
- package/dist/manifest/projections/dart/types.d.ts.map +1 -0
- package/dist/manifest/projections/dart/types.js +5 -0
- package/dist/manifest/projections/dart/types.js.map +1 -0
- package/dist/manifest/projections/drizzle/generator.d.ts +27 -0
- package/dist/manifest/projections/drizzle/generator.d.ts.map +1 -0
- package/dist/manifest/projections/drizzle/generator.js +654 -0
- package/dist/manifest/projections/drizzle/generator.js.map +1 -0
- package/dist/manifest/projections/drizzle/index.d.ts +12 -0
- package/dist/manifest/projections/drizzle/index.d.ts.map +1 -0
- package/dist/manifest/projections/drizzle/index.js +12 -0
- package/dist/manifest/projections/drizzle/index.js.map +1 -0
- package/dist/manifest/projections/drizzle/options.d.ts +94 -0
- package/dist/manifest/projections/drizzle/options.d.ts.map +1 -0
- package/dist/manifest/projections/drizzle/options.js +31 -0
- package/dist/manifest/projections/drizzle/options.js.map +1 -0
- package/dist/manifest/projections/drizzle/type-mapping.d.ts +74 -0
- package/dist/manifest/projections/drizzle/type-mapping.d.ts.map +1 -0
- package/dist/manifest/projections/drizzle/type-mapping.js +101 -0
- package/dist/manifest/projections/drizzle/type-mapping.js.map +1 -0
- package/dist/manifest/projections/dynamodb/generator.d.ts +48 -0
- package/dist/manifest/projections/dynamodb/generator.d.ts.map +1 -0
- package/dist/manifest/projections/dynamodb/generator.js +341 -0
- package/dist/manifest/projections/dynamodb/generator.js.map +1 -0
- package/dist/manifest/projections/elasticsearch/generator.d.ts +44 -0
- package/dist/manifest/projections/elasticsearch/generator.d.ts.map +1 -0
- package/dist/manifest/projections/elasticsearch/generator.js +613 -0
- package/dist/manifest/projections/elasticsearch/generator.js.map +1 -0
- package/dist/manifest/projections/elasticsearch/options.d.ts +56 -0
- package/dist/manifest/projections/elasticsearch/options.d.ts.map +1 -0
- package/dist/manifest/projections/elasticsearch/options.js +37 -0
- package/dist/manifest/projections/elasticsearch/options.js.map +1 -0
- package/dist/manifest/projections/elasticsearch/type-mapping.d.ts +30 -0
- package/dist/manifest/projections/elasticsearch/type-mapping.d.ts.map +1 -0
- package/dist/manifest/projections/elasticsearch/type-mapping.js +34 -0
- package/dist/manifest/projections/elasticsearch/type-mapping.js.map +1 -0
- package/dist/manifest/projections/elasticsearch/types.d.ts +81 -0
- package/dist/manifest/projections/elasticsearch/types.d.ts.map +1 -0
- package/dist/manifest/projections/elasticsearch/types.js +10 -0
- package/dist/manifest/projections/elasticsearch/types.js.map +1 -0
- package/dist/manifest/projections/express/generator.d.ts +38 -0
- package/dist/manifest/projections/express/generator.d.ts.map +1 -0
- package/dist/manifest/projections/express/generator.js +620 -0
- package/dist/manifest/projections/express/generator.js.map +1 -0
- package/dist/manifest/projections/express/index.d.ts +8 -0
- package/dist/manifest/projections/express/index.d.ts.map +1 -0
- package/dist/manifest/projections/express/index.js +7 -0
- package/dist/manifest/projections/express/index.js.map +1 -0
- package/dist/manifest/projections/express/types.d.ts +92 -0
- package/dist/manifest/projections/express/types.d.ts.map +1 -0
- package/dist/manifest/projections/express/types.js +9 -0
- package/dist/manifest/projections/express/types.js.map +1 -0
- package/dist/manifest/projections/graphql/generator.d.ts +43 -0
- package/dist/manifest/projections/graphql/generator.d.ts.map +1 -0
- package/dist/manifest/projections/graphql/generator.js +662 -0
- package/dist/manifest/projections/graphql/generator.js.map +1 -0
- package/dist/manifest/projections/graphql/index.d.ts +11 -0
- package/dist/manifest/projections/graphql/index.d.ts.map +1 -0
- package/dist/manifest/projections/graphql/index.js +10 -0
- package/dist/manifest/projections/graphql/index.js.map +1 -0
- package/dist/manifest/projections/graphql/types.d.ts +69 -0
- package/dist/manifest/projections/graphql/types.d.ts.map +1 -0
- package/dist/manifest/projections/graphql/types.js +9 -0
- package/dist/manifest/projections/graphql/types.js.map +1 -0
- package/dist/manifest/projections/health/generator.d.ts +36 -0
- package/dist/manifest/projections/health/generator.d.ts.map +1 -0
- package/dist/manifest/projections/health/generator.js +355 -0
- package/dist/manifest/projections/health/generator.js.map +1 -0
- package/dist/manifest/projections/health/types.d.ts +67 -0
- package/dist/manifest/projections/health/types.d.ts.map +1 -0
- package/dist/manifest/projections/health/types.js +28 -0
- package/dist/manifest/projections/health/types.js.map +1 -0
- package/dist/manifest/projections/hono/generator.d.ts +36 -0
- package/dist/manifest/projections/hono/generator.d.ts.map +1 -0
- package/dist/manifest/projections/hono/generator.js +578 -0
- package/dist/manifest/projections/hono/generator.js.map +1 -0
- package/dist/manifest/projections/hono/types.d.ts +86 -0
- package/dist/manifest/projections/hono/types.d.ts.map +1 -0
- package/dist/manifest/projections/hono/types.js +10 -0
- package/dist/manifest/projections/hono/types.js.map +1 -0
- package/dist/manifest/projections/index.d.ts +58 -0
- package/dist/manifest/projections/index.d.ts.map +1 -0
- package/dist/manifest/projections/index.js +41 -0
- package/dist/manifest/projections/index.js.map +1 -0
- package/dist/manifest/projections/interface.d.ts +285 -0
- package/dist/manifest/projections/interface.d.ts.map +1 -0
- package/dist/manifest/projections/interface.js +8 -0
- package/dist/manifest/projections/interface.js.map +1 -0
- package/dist/manifest/projections/jsonschema/generator.d.ts +35 -0
- package/dist/manifest/projections/jsonschema/generator.d.ts.map +1 -0
- package/dist/manifest/projections/jsonschema/generator.js +347 -0
- package/dist/manifest/projections/jsonschema/generator.js.map +1 -0
- package/dist/manifest/projections/jsonschema/index.d.ts +3 -0
- package/dist/manifest/projections/jsonschema/index.d.ts.map +1 -0
- package/dist/manifest/projections/jsonschema/index.js +2 -0
- package/dist/manifest/projections/jsonschema/index.js.map +1 -0
- package/dist/manifest/projections/jsonschema/types.d.ts +31 -0
- package/dist/manifest/projections/jsonschema/types.d.ts.map +1 -0
- package/dist/manifest/projections/jsonschema/types.js +2 -0
- package/dist/manifest/projections/jsonschema/types.js.map +1 -0
- package/dist/manifest/projections/kysely/generator.d.ts +36 -0
- package/dist/manifest/projections/kysely/generator.d.ts.map +1 -0
- package/dist/manifest/projections/kysely/generator.js +325 -0
- package/dist/manifest/projections/kysely/generator.js.map +1 -0
- package/dist/manifest/projections/kysely/index.d.ts +4 -0
- package/dist/manifest/projections/kysely/index.d.ts.map +1 -0
- package/dist/manifest/projections/kysely/index.js +2 -0
- package/dist/manifest/projections/kysely/index.js.map +1 -0
- package/dist/manifest/projections/kysely/options.d.ts +61 -0
- package/dist/manifest/projections/kysely/options.d.ts.map +1 -0
- package/dist/manifest/projections/kysely/options.js +31 -0
- package/dist/manifest/projections/kysely/options.js.map +1 -0
- package/dist/manifest/projections/kysely/type-mapping.d.ts +61 -0
- package/dist/manifest/projections/kysely/type-mapping.d.ts.map +1 -0
- package/dist/manifest/projections/kysely/type-mapping.js +84 -0
- package/dist/manifest/projections/kysely/type-mapping.js.map +1 -0
- package/dist/manifest/projections/llm-context/generator.d.ts +24 -0
- package/dist/manifest/projections/llm-context/generator.d.ts.map +1 -0
- package/dist/manifest/projections/llm-context/generator.js +371 -0
- package/dist/manifest/projections/llm-context/generator.js.map +1 -0
- package/dist/manifest/projections/llm-context/types.d.ts +205 -0
- package/dist/manifest/projections/llm-context/types.d.ts.map +1 -0
- package/dist/manifest/projections/llm-context/types.js +9 -0
- package/dist/manifest/projections/llm-context/types.js.map +1 -0
- package/dist/manifest/projections/materialized-views/expression-to-sql.d.ts +29 -0
- package/dist/manifest/projections/materialized-views/expression-to-sql.d.ts.map +1 -0
- package/dist/manifest/projections/materialized-views/expression-to-sql.js +211 -0
- package/dist/manifest/projections/materialized-views/expression-to-sql.js.map +1 -0
- package/dist/manifest/projections/materialized-views/generator.d.ts +29 -0
- package/dist/manifest/projections/materialized-views/generator.d.ts.map +1 -0
- package/dist/manifest/projections/materialized-views/generator.js +263 -0
- package/dist/manifest/projections/materialized-views/generator.js.map +1 -0
- package/dist/manifest/projections/materialized-views/options.d.ts +59 -0
- package/dist/manifest/projections/materialized-views/options.d.ts.map +1 -0
- package/dist/manifest/projections/materialized-views/options.js +34 -0
- package/dist/manifest/projections/materialized-views/options.js.map +1 -0
- package/dist/manifest/projections/materialized-views/types.d.ts +100 -0
- package/dist/manifest/projections/materialized-views/types.d.ts.map +1 -0
- package/dist/manifest/projections/materialized-views/types.js +11 -0
- package/dist/manifest/projections/materialized-views/types.js.map +1 -0
- package/dist/manifest/projections/mermaid/generator.d.ts +46 -0
- package/dist/manifest/projections/mermaid/generator.d.ts.map +1 -0
- package/dist/manifest/projections/mermaid/generator.js +436 -0
- package/dist/manifest/projections/mermaid/generator.js.map +1 -0
- package/dist/manifest/projections/mongoose/options.d.ts +30 -0
- package/dist/manifest/projections/mongoose/options.d.ts.map +1 -0
- package/dist/manifest/projections/mongoose/options.js +18 -0
- package/dist/manifest/projections/mongoose/options.js.map +1 -0
- package/dist/manifest/projections/mongoose/type-mapping.d.ts +42 -0
- package/dist/manifest/projections/mongoose/type-mapping.d.ts.map +1 -0
- package/dist/manifest/projections/mongoose/type-mapping.js +64 -0
- package/dist/manifest/projections/mongoose/type-mapping.js.map +1 -0
- package/dist/manifest/projections/nextjs/defaults.d.ts +161 -0
- package/dist/manifest/projections/nextjs/defaults.d.ts.map +1 -0
- package/dist/manifest/projections/nextjs/defaults.js +157 -0
- package/dist/manifest/projections/nextjs/defaults.js.map +1 -0
- package/dist/manifest/projections/nextjs/generator.d.ts +78 -0
- package/dist/manifest/projections/nextjs/generator.d.ts.map +1 -0
- package/dist/manifest/projections/nextjs/generator.js +1339 -0
- package/dist/manifest/projections/nextjs/generator.js.map +1 -0
- package/dist/manifest/projections/nextjs/schedule-generator.d.ts +10 -0
- package/dist/manifest/projections/nextjs/schedule-generator.d.ts.map +1 -0
- package/dist/manifest/projections/nextjs/schedule-generator.js +54 -0
- package/dist/manifest/projections/nextjs/schedule-generator.js.map +1 -0
- package/dist/manifest/projections/openapi/generator.d.ts +37 -0
- package/dist/manifest/projections/openapi/generator.d.ts.map +1 -0
- package/dist/manifest/projections/openapi/generator.js +690 -0
- package/dist/manifest/projections/openapi/generator.js.map +1 -0
- package/dist/manifest/projections/openapi/index.d.ts +11 -0
- package/dist/manifest/projections/openapi/index.d.ts.map +1 -0
- package/dist/manifest/projections/openapi/index.js +10 -0
- package/dist/manifest/projections/openapi/index.js.map +1 -0
- package/dist/manifest/projections/openapi/types.d.ts +75 -0
- package/dist/manifest/projections/openapi/types.d.ts.map +1 -0
- package/dist/manifest/projections/openapi/types.js +9 -0
- package/dist/manifest/projections/openapi/types.js.map +1 -0
- package/dist/manifest/projections/prisma/generator.d.ts +32 -0
- package/dist/manifest/projections/prisma/generator.d.ts.map +1 -0
- package/dist/manifest/projections/prisma/generator.js +861 -0
- package/dist/manifest/projections/prisma/generator.js.map +1 -0
- package/dist/manifest/projections/prisma/index.d.ts +12 -0
- package/dist/manifest/projections/prisma/index.d.ts.map +1 -0
- package/dist/manifest/projections/prisma/index.js +12 -0
- package/dist/manifest/projections/prisma/index.js.map +1 -0
- package/dist/manifest/projections/prisma/options.d.ts +243 -0
- package/dist/manifest/projections/prisma/options.d.ts.map +1 -0
- package/dist/manifest/projections/prisma/options.js +59 -0
- package/dist/manifest/projections/prisma/options.js.map +1 -0
- package/dist/manifest/projections/prisma/type-mapping.d.ts +60 -0
- package/dist/manifest/projections/prisma/type-mapping.d.ts.map +1 -0
- package/dist/manifest/projections/prisma/type-mapping.js +95 -0
- package/dist/manifest/projections/prisma/type-mapping.js.map +1 -0
- package/dist/manifest/projections/prisma-store/generator.d.ts +12 -0
- package/dist/manifest/projections/prisma-store/generator.d.ts.map +1 -0
- package/dist/manifest/projections/prisma-store/generator.js +52 -0
- package/dist/manifest/projections/prisma-store/generator.js.map +1 -0
- package/dist/manifest/projections/prisma-store/metadata-builder.d.ts +11 -0
- package/dist/manifest/projections/prisma-store/metadata-builder.d.ts.map +1 -0
- package/dist/manifest/projections/prisma-store/metadata-builder.js +183 -0
- package/dist/manifest/projections/prisma-store/metadata-builder.js.map +1 -0
- package/dist/manifest/projections/prisma-store/options.d.ts +31 -0
- package/dist/manifest/projections/prisma-store/options.d.ts.map +1 -0
- package/dist/manifest/projections/prisma-store/options.js +21 -0
- package/dist/manifest/projections/prisma-store/options.js.map +1 -0
- package/dist/manifest/projections/prisma-store/persistence.d.ts +4 -0
- package/dist/manifest/projections/prisma-store/persistence.d.ts.map +1 -0
- package/dist/manifest/projections/prisma-store/persistence.js +24 -0
- package/dist/manifest/projections/prisma-store/persistence.js.map +1 -0
- package/dist/manifest/projections/pydantic/generator.d.ts +27 -0
- package/dist/manifest/projections/pydantic/generator.d.ts.map +1 -0
- package/dist/manifest/projections/pydantic/generator.js +798 -0
- package/dist/manifest/projections/pydantic/generator.js.map +1 -0
- package/dist/manifest/projections/pydantic/types.d.ts +32 -0
- package/dist/manifest/projections/pydantic/types.d.ts.map +1 -0
- package/dist/manifest/projections/pydantic/types.js +5 -0
- package/dist/manifest/projections/pydantic/types.js.map +1 -0
- package/dist/manifest/projections/react-query/generator.d.ts +87 -0
- package/dist/manifest/projections/react-query/generator.d.ts.map +1 -0
- package/dist/manifest/projections/react-query/generator.js +413 -0
- package/dist/manifest/projections/react-query/generator.js.map +1 -0
- package/dist/manifest/projections/registry.d.ts +59 -0
- package/dist/manifest/projections/registry.d.ts.map +1 -0
- package/dist/manifest/projections/registry.js +110 -0
- package/dist/manifest/projections/registry.js.map +1 -0
- package/dist/manifest/projections/remix/generator.d.ts +58 -0
- package/dist/manifest/projections/remix/generator.d.ts.map +1 -0
- package/dist/manifest/projections/remix/generator.js +788 -0
- package/dist/manifest/projections/remix/generator.js.map +1 -0
- package/dist/manifest/projections/routes/generator.d.ts +32 -0
- package/dist/manifest/projections/routes/generator.d.ts.map +1 -0
- package/dist/manifest/projections/routes/generator.js +401 -0
- package/dist/manifest/projections/routes/generator.js.map +1 -0
- package/dist/manifest/projections/routes/types.d.ts +104 -0
- package/dist/manifest/projections/routes/types.d.ts.map +1 -0
- package/dist/manifest/projections/routes/types.js +11 -0
- package/dist/manifest/projections/routes/types.js.map +1 -0
- package/dist/manifest/projections/shared/naming.d.ts +64 -0
- package/dist/manifest/projections/shared/naming.d.ts.map +1 -0
- package/dist/manifest/projections/shared/naming.js +138 -0
- package/dist/manifest/projections/shared/naming.js.map +1 -0
- package/dist/manifest/projections/storybook/generator.d.ts +38 -0
- package/dist/manifest/projections/storybook/generator.d.ts.map +1 -0
- package/dist/manifest/projections/storybook/generator.js +462 -0
- package/dist/manifest/projections/storybook/generator.js.map +1 -0
- package/dist/manifest/projections/sveltekit/generator.d.ts +64 -0
- package/dist/manifest/projections/sveltekit/generator.d.ts.map +1 -0
- package/dist/manifest/projections/sveltekit/generator.js +1043 -0
- package/dist/manifest/projections/sveltekit/generator.js.map +1 -0
- package/dist/manifest/projections/sveltekit/index.d.ts +11 -0
- package/dist/manifest/projections/sveltekit/index.d.ts.map +1 -0
- package/dist/manifest/projections/sveltekit/index.js +10 -0
- package/dist/manifest/projections/sveltekit/index.js.map +1 -0
- package/dist/manifest/projections/sveltekit/types.d.ts +122 -0
- package/dist/manifest/projections/sveltekit/types.d.ts.map +1 -0
- package/dist/manifest/projections/sveltekit/types.js +10 -0
- package/dist/manifest/projections/sveltekit/types.js.map +1 -0
- package/dist/manifest/projections/terraform/generator.d.ts +29 -0
- package/dist/manifest/projections/terraform/generator.d.ts.map +1 -0
- package/dist/manifest/projections/terraform/generator.js +722 -0
- package/dist/manifest/projections/terraform/generator.js.map +1 -0
- package/dist/manifest/projections/terraform/index.d.ts +7 -0
- package/dist/manifest/projections/terraform/index.d.ts.map +1 -0
- package/dist/manifest/projections/terraform/index.js +7 -0
- package/dist/manifest/projections/terraform/index.js.map +1 -0
- package/dist/manifest/projections/terraform/options.d.ts +92 -0
- package/dist/manifest/projections/terraform/options.d.ts.map +1 -0
- package/dist/manifest/projections/terraform/options.js +37 -0
- package/dist/manifest/projections/terraform/options.js.map +1 -0
- package/dist/manifest/projections/terraform/types.d.ts +55 -0
- package/dist/manifest/projections/terraform/types.d.ts.map +1 -0
- package/dist/manifest/projections/terraform/types.js +38 -0
- package/dist/manifest/projections/terraform/types.js.map +1 -0
- package/dist/manifest/projections/zod/generator.d.ts +27 -0
- package/dist/manifest/projections/zod/generator.d.ts.map +1 -0
- package/dist/manifest/projections/zod/generator.js +367 -0
- package/dist/manifest/projections/zod/generator.js.map +1 -0
- package/dist/manifest/projections/zod/index.d.ts +8 -0
- package/dist/manifest/projections/zod/index.d.ts.map +1 -0
- package/dist/manifest/projections/zod/index.js +7 -0
- package/dist/manifest/projections/zod/index.js.map +1 -0
- package/dist/manifest/projections/zod/types.d.ts +14 -0
- package/dist/manifest/projections/zod/types.d.ts.map +1 -0
- package/dist/manifest/projections/zod/types.js +5 -0
- package/dist/manifest/projections/zod/types.js.map +1 -0
- package/dist/manifest/reaction-completeness-checks.d.ts +11 -0
- package/dist/manifest/reaction-completeness-checks.d.ts.map +1 -0
- package/dist/manifest/reaction-completeness-checks.js +106 -0
- package/dist/manifest/reaction-completeness-checks.js.map +1 -0
- package/dist/manifest/reaction-completeness.d.ts +9 -0
- package/dist/manifest/reaction-completeness.d.ts.map +1 -0
- package/dist/manifest/reaction-completeness.js +35 -0
- package/dist/manifest/reaction-completeness.js.map +1 -0
- package/dist/manifest/registry/emit.d.ts +53 -0
- package/dist/manifest/registry/emit.d.ts.map +1 -0
- package/dist/manifest/registry/emit.js +96 -0
- package/dist/manifest/registry/emit.js.map +1 -0
- package/dist/manifest/runtime-command-extensions.d.ts +21 -0
- package/dist/manifest/runtime-command-extensions.d.ts.map +1 -0
- package/dist/manifest/runtime-command-extensions.js +136 -0
- package/dist/manifest/runtime-command-extensions.js.map +1 -0
- package/dist/manifest/runtime-engine.d.ts +1019 -0
- package/dist/manifest/runtime-engine.d.ts.map +1 -0
- package/dist/manifest/runtime-engine.js +3872 -0
- package/dist/manifest/runtime-engine.js.map +1 -0
- package/dist/manifest/runtime-profiling-bridge.d.ts +22 -0
- package/dist/manifest/runtime-profiling-bridge.d.ts.map +1 -0
- package/dist/manifest/runtime-profiling-bridge.js +69 -0
- package/dist/manifest/runtime-profiling-bridge.js.map +1 -0
- package/dist/manifest/runtime-rate-limit.d.ts +52 -0
- package/dist/manifest/runtime-rate-limit.d.ts.map +1 -0
- package/dist/manifest/runtime-rate-limit.js +70 -0
- package/dist/manifest/runtime-rate-limit.js.map +1 -0
- package/dist/manifest/runtime-retry.d.ts +68 -0
- package/dist/manifest/runtime-retry.d.ts.map +1 -0
- package/dist/manifest/runtime-retry.js +93 -0
- package/dist/manifest/runtime-retry.js.map +1 -0
- package/dist/manifest/runtime-schedule.d.ts +47 -0
- package/dist/manifest/runtime-schedule.d.ts.map +1 -0
- package/dist/manifest/runtime-schedule.js +95 -0
- package/dist/manifest/runtime-schedule.js.map +1 -0
- package/dist/manifest/schedule-utils.d.ts +15 -0
- package/dist/manifest/schedule-utils.d.ts.map +1 -0
- package/dist/manifest/schedule-utils.js +82 -0
- package/dist/manifest/schedule-utils.js.map +1 -0
- package/dist/manifest/standalone-generator.d.ts +32 -0
- package/dist/manifest/standalone-generator.d.ts.map +1 -0
- package/dist/manifest/standalone-generator.js +596 -0
- package/dist/manifest/standalone-generator.js.map +1 -0
- package/dist/manifest/stores/prisma-generic/coercion.d.ts +17 -0
- package/dist/manifest/stores/prisma-generic/coercion.d.ts.map +1 -0
- package/dist/manifest/stores/prisma-generic/coercion.js +83 -0
- package/dist/manifest/stores/prisma-generic/coercion.js.map +1 -0
- package/dist/manifest/stores/prisma-generic/index.d.ts +3 -0
- package/dist/manifest/stores/prisma-generic/index.d.ts.map +1 -0
- package/dist/manifest/stores/prisma-generic/index.js +2 -0
- package/dist/manifest/stores/prisma-generic/index.js.map +1 -0
- package/dist/manifest/stores/prisma-generic/store.d.ts +35 -0
- package/dist/manifest/stores/prisma-generic/store.d.ts.map +1 -0
- package/dist/manifest/stores/prisma-generic/store.js +216 -0
- package/dist/manifest/stores/prisma-generic/store.js.map +1 -0
- package/dist/manifest/stores/prisma-generic/types.d.ts +46 -0
- package/dist/manifest/stores/prisma-generic/types.d.ts.map +1 -0
- package/dist/manifest/stores/prisma-generic/types.js +6 -0
- package/dist/manifest/stores/prisma-generic/types.js.map +1 -0
- package/dist/manifest/stores.node.d.ts +248 -0
- package/dist/manifest/stores.node.d.ts.map +1 -0
- package/dist/manifest/stores.node.js +718 -0
- package/dist/manifest/stores.node.js.map +1 -0
- package/dist/manifest/test/postgres-live-env.d.ts +9 -0
- package/dist/manifest/test/postgres-live-env.d.ts.map +1 -0
- package/dist/manifest/test/postgres-live-env.js +14 -0
- package/dist/manifest/test/postgres-live-env.js.map +1 -0
- package/dist/manifest/types.d.ts +570 -0
- package/dist/manifest/types.d.ts.map +1 -0
- package/dist/manifest/types.js +2 -0
- package/dist/manifest/types.js.map +1 -0
- package/dist/manifest/version.d.ts +15 -0
- package/dist/manifest/version.d.ts.map +1 -0
- package/dist/manifest/version.js +15 -0
- package/dist/manifest/version.js.map +1 -0
- package/dist/manifest/wasm/index.d.ts +15 -0
- package/dist/manifest/wasm/index.d.ts.map +1 -0
- package/dist/manifest/wasm/index.js +15 -0
- package/dist/manifest/wasm/index.js.map +1 -0
- package/dist/manifest/wasm/wasm-evaluator.d.ts +93 -0
- package/dist/manifest/wasm/wasm-evaluator.d.ts.map +1 -0
- package/dist/manifest/wasm/wasm-evaluator.js +242 -0
- package/dist/manifest/wasm/wasm-evaluator.js.map +1 -0
- package/dist/manifest/wasm/wasm-loader.d.ts +56 -0
- package/dist/manifest/wasm/wasm-loader.d.ts.map +1 -0
- package/dist/manifest/wasm/wasm-loader.js +132 -0
- package/dist/manifest/wasm/wasm-loader.js.map +1 -0
- package/docs/spec/config/manifest.config.schema.json +737 -0
- package/docs/spec/config/prisma-projection.schema.json +173 -0
- package/docs/spec/ir/ir-v1.schema.json +2033 -0
- package/docs/spec/plugins/plugin.schema.json +104 -0
- package/docs/spec/registry/bypasses.schema.json +87 -0
- package/docs/spec/registry/commands.schema.json +61 -0
- package/docs/spec/registry/entities.schema.json +52 -0
- package/docs/spec/semantics.md +630 -0
- package/package.json +356 -0
- package/packages/cli/dist/audit/bypass-violations.d.ts +16 -0
- package/packages/cli/dist/audit/bypass-violations.d.ts.map +1 -0
- package/packages/cli/dist/audit/bypass-violations.js +98 -0
- package/packages/cli/dist/audit/bypass-violations.js.map +1 -0
- package/packages/cli/dist/audit/direct-writes.d.ts +15 -0
- package/packages/cli/dist/audit/direct-writes.d.ts.map +1 -0
- package/packages/cli/dist/audit/direct-writes.js +86 -0
- package/packages/cli/dist/audit/direct-writes.js.map +1 -0
- package/packages/cli/dist/audit/event-fabrication.d.ts +17 -0
- package/packages/cli/dist/audit/event-fabrication.d.ts.map +1 -0
- package/packages/cli/dist/audit/event-fabrication.js +101 -0
- package/packages/cli/dist/audit/event-fabrication.js.map +1 -0
- package/packages/cli/dist/audit/existing-command-available.d.ts +20 -0
- package/packages/cli/dist/audit/existing-command-available.d.ts.map +1 -0
- package/packages/cli/dist/audit/existing-command-available.js +158 -0
- package/packages/cli/dist/audit/existing-command-available.js.map +1 -0
- package/packages/cli/dist/audit/missing-tests.d.ts +17 -0
- package/packages/cli/dist/audit/missing-tests.d.ts.map +1 -0
- package/packages/cli/dist/audit/missing-tests.js +108 -0
- package/packages/cli/dist/audit/missing-tests.js.map +1 -0
- package/packages/cli/dist/audit/route-drift.d.ts +16 -0
- package/packages/cli/dist/audit/route-drift.d.ts.map +1 -0
- package/packages/cli/dist/audit/route-drift.js +86 -0
- package/packages/cli/dist/audit/route-drift.js.map +1 -0
- package/packages/cli/dist/audit/types.d.ts +63 -0
- package/packages/cli/dist/audit/types.d.ts.map +1 -0
- package/packages/cli/dist/audit/types.js +10 -0
- package/packages/cli/dist/audit/types.js.map +1 -0
- package/packages/cli/dist/audit/unregistered-command-call.d.ts +25 -0
- package/packages/cli/dist/audit/unregistered-command-call.d.ts.map +1 -0
- package/packages/cli/dist/audit/unregistered-command-call.js +196 -0
- package/packages/cli/dist/audit/unregistered-command-call.js.map +1 -0
- package/packages/cli/dist/audit/unregistered-entity-write.d.ts +16 -0
- package/packages/cli/dist/audit/unregistered-entity-write.d.ts.map +1 -0
- package/packages/cli/dist/audit/unregistered-entity-write.js +96 -0
- package/packages/cli/dist/audit/unregistered-entity-write.js.map +1 -0
- package/packages/cli/dist/audit/write-receiver.d.ts +23 -0
- package/packages/cli/dist/audit/write-receiver.d.ts.map +1 -0
- package/packages/cli/dist/audit/write-receiver.js +32 -0
- package/packages/cli/dist/audit/write-receiver.js.map +1 -0
- package/packages/cli/dist/checks/dispatcher-presence.d.ts +37 -0
- package/packages/cli/dist/checks/dispatcher-presence.d.ts.map +1 -0
- package/packages/cli/dist/checks/dispatcher-presence.js +57 -0
- package/packages/cli/dist/checks/dispatcher-presence.js.map +1 -0
- package/packages/cli/dist/checks/package-shape.d.ts +81 -0
- package/packages/cli/dist/checks/package-shape.d.ts.map +1 -0
- package/packages/cli/dist/checks/package-shape.js +359 -0
- package/packages/cli/dist/checks/package-shape.js.map +1 -0
- package/packages/cli/dist/checks/runtime-smoke.d.ts +42 -0
- package/packages/cli/dist/checks/runtime-smoke.d.ts.map +1 -0
- package/packages/cli/dist/checks/runtime-smoke.js +167 -0
- package/packages/cli/dist/checks/runtime-smoke.js.map +1 -0
- package/packages/cli/dist/commands/analyze.d.ts +97 -0
- package/packages/cli/dist/commands/analyze.d.ts.map +1 -0
- package/packages/cli/dist/commands/analyze.js +411 -0
- package/packages/cli/dist/commands/analyze.js.map +1 -0
- package/packages/cli/dist/commands/audit-bypasses.d.ts +31 -0
- package/packages/cli/dist/commands/audit-bypasses.d.ts.map +1 -0
- package/packages/cli/dist/commands/audit-bypasses.js +152 -0
- package/packages/cli/dist/commands/audit-bypasses.js.map +1 -0
- package/packages/cli/dist/commands/audit-constitution.d.ts +20 -0
- package/packages/cli/dist/commands/audit-constitution.d.ts.map +1 -0
- package/packages/cli/dist/commands/audit-constitution.js +18 -0
- package/packages/cli/dist/commands/audit-constitution.js.map +1 -0
- package/packages/cli/dist/commands/audit-governance.d.ts +37 -0
- package/packages/cli/dist/commands/audit-governance.d.ts.map +1 -0
- package/packages/cli/dist/commands/audit-governance.js +78 -0
- package/packages/cli/dist/commands/audit-governance.js.map +1 -0
- package/packages/cli/dist/commands/audit-routes.d.ts +135 -0
- package/packages/cli/dist/commands/audit-routes.d.ts.map +1 -0
- package/packages/cli/dist/commands/audit-routes.js +514 -0
- package/packages/cli/dist/commands/audit-routes.js.map +1 -0
- package/packages/cli/dist/commands/breaking-change.d.ts +15 -0
- package/packages/cli/dist/commands/breaking-change.d.ts.map +1 -0
- package/packages/cli/dist/commands/breaking-change.js +150 -0
- package/packages/cli/dist/commands/breaking-change.js.map +1 -0
- package/packages/cli/dist/commands/build.d.ts +26 -0
- package/packages/cli/dist/commands/build.d.ts.map +1 -0
- package/packages/cli/dist/commands/build.js +58 -0
- package/packages/cli/dist/commands/build.js.map +1 -0
- package/packages/cli/dist/commands/changelog.d.ts +26 -0
- package/packages/cli/dist/commands/changelog.d.ts.map +1 -0
- package/packages/cli/dist/commands/changelog.js +365 -0
- package/packages/cli/dist/commands/changelog.js.map +1 -0
- package/packages/cli/dist/commands/check.d.ts +21 -0
- package/packages/cli/dist/commands/check.d.ts.map +1 -0
- package/packages/cli/dist/commands/check.js +31 -0
- package/packages/cli/dist/commands/check.js.map +1 -0
- package/packages/cli/dist/commands/compile.d.ts +19 -0
- package/packages/cli/dist/commands/compile.d.ts.map +1 -0
- package/packages/cli/dist/commands/compile.js +325 -0
- package/packages/cli/dist/commands/compile.js.map +1 -0
- package/packages/cli/dist/commands/config.d.ts +23 -0
- package/packages/cli/dist/commands/config.d.ts.map +1 -0
- package/packages/cli/dist/commands/config.js +172 -0
- package/packages/cli/dist/commands/config.js.map +1 -0
- package/packages/cli/dist/commands/coverage.d.ts +55 -0
- package/packages/cli/dist/commands/coverage.d.ts.map +1 -0
- package/packages/cli/dist/commands/coverage.js +343 -0
- package/packages/cli/dist/commands/coverage.js.map +1 -0
- package/packages/cli/dist/commands/diagram.d.ts +22 -0
- package/packages/cli/dist/commands/diagram.d.ts.map +1 -0
- package/packages/cli/dist/commands/diagram.js +176 -0
- package/packages/cli/dist/commands/diagram.js.map +1 -0
- package/packages/cli/dist/commands/docs.d.ts +18 -0
- package/packages/cli/dist/commands/docs.d.ts.map +1 -0
- package/packages/cli/dist/commands/docs.js +722 -0
- package/packages/cli/dist/commands/docs.js.map +1 -0
- package/packages/cli/dist/commands/doctor-lib.d.ts +147 -0
- package/packages/cli/dist/commands/doctor-lib.d.ts.map +1 -0
- package/packages/cli/dist/commands/doctor-lib.js +491 -0
- package/packages/cli/dist/commands/doctor-lib.js.map +1 -0
- package/packages/cli/dist/commands/doctor.d.ts +31 -0
- package/packages/cli/dist/commands/doctor.d.ts.map +1 -0
- package/packages/cli/dist/commands/doctor.js +628 -0
- package/packages/cli/dist/commands/doctor.js.map +1 -0
- package/packages/cli/dist/commands/emit-registries.d.ts +33 -0
- package/packages/cli/dist/commands/emit-registries.d.ts.map +1 -0
- package/packages/cli/dist/commands/emit-registries.js +109 -0
- package/packages/cli/dist/commands/emit-registries.js.map +1 -0
- package/packages/cli/dist/commands/enforce-surface.d.ts +62 -0
- package/packages/cli/dist/commands/enforce-surface.d.ts.map +1 -0
- package/packages/cli/dist/commands/enforce-surface.js +172 -0
- package/packages/cli/dist/commands/enforce-surface.js.map +1 -0
- package/packages/cli/dist/commands/fmt.d.ts +17 -0
- package/packages/cli/dist/commands/fmt.d.ts.map +1 -0
- package/packages/cli/dist/commands/fmt.js +129 -0
- package/packages/cli/dist/commands/fmt.js.map +1 -0
- package/packages/cli/dist/commands/gen-tests.d.ts +41 -0
- package/packages/cli/dist/commands/gen-tests.d.ts.map +1 -0
- package/packages/cli/dist/commands/gen-tests.js +370 -0
- package/packages/cli/dist/commands/gen-tests.js.map +1 -0
- package/packages/cli/dist/commands/generate-from-prompt.d.ts +34 -0
- package/packages/cli/dist/commands/generate-from-prompt.d.ts.map +1 -0
- package/packages/cli/dist/commands/generate-from-prompt.js +990 -0
- package/packages/cli/dist/commands/generate-from-prompt.js.map +1 -0
- package/packages/cli/dist/commands/generate.d.ts +36 -0
- package/packages/cli/dist/commands/generate.d.ts.map +1 -0
- package/packages/cli/dist/commands/generate.js +371 -0
- package/packages/cli/dist/commands/generate.js.map +1 -0
- package/packages/cli/dist/commands/harness.d.ts +13 -0
- package/packages/cli/dist/commands/harness.d.ts.map +1 -0
- package/packages/cli/dist/commands/harness.js +276 -0
- package/packages/cli/dist/commands/harness.js.map +1 -0
- package/packages/cli/dist/commands/init-ci.d.ts +19 -0
- package/packages/cli/dist/commands/init-ci.d.ts.map +1 -0
- package/packages/cli/dist/commands/init-ci.js +148 -0
- package/packages/cli/dist/commands/init-ci.js.map +1 -0
- package/packages/cli/dist/commands/init.d.ts +33 -0
- package/packages/cli/dist/commands/init.d.ts.map +1 -0
- package/packages/cli/dist/commands/init.js +157 -0
- package/packages/cli/dist/commands/init.js.map +1 -0
- package/packages/cli/dist/commands/install-hooks.d.ts +29 -0
- package/packages/cli/dist/commands/install-hooks.d.ts.map +1 -0
- package/packages/cli/dist/commands/install-hooks.js +139 -0
- package/packages/cli/dist/commands/install-hooks.js.map +1 -0
- package/packages/cli/dist/commands/integration-check.d.ts +62 -0
- package/packages/cli/dist/commands/integration-check.d.ts.map +1 -0
- package/packages/cli/dist/commands/integration-check.js +298 -0
- package/packages/cli/dist/commands/integration-check.js.map +1 -0
- package/packages/cli/dist/commands/ir-diff.d.ts +8 -0
- package/packages/cli/dist/commands/ir-diff.d.ts.map +1 -0
- package/packages/cli/dist/commands/ir-diff.js +199 -0
- package/packages/cli/dist/commands/ir-diff.js.map +1 -0
- package/packages/cli/dist/commands/lint-routes.d.ts +56 -0
- package/packages/cli/dist/commands/lint-routes.d.ts.map +1 -0
- package/packages/cli/dist/commands/lint-routes.js +228 -0
- package/packages/cli/dist/commands/lint-routes.js.map +1 -0
- package/packages/cli/dist/commands/load-test.d.ts +61 -0
- package/packages/cli/dist/commands/load-test.d.ts.map +1 -0
- package/packages/cli/dist/commands/load-test.js +675 -0
- package/packages/cli/dist/commands/load-test.js.map +1 -0
- package/packages/cli/dist/commands/migrate.d.ts +21 -0
- package/packages/cli/dist/commands/migrate.d.ts.map +1 -0
- package/packages/cli/dist/commands/migrate.js +264 -0
- package/packages/cli/dist/commands/migrate.js.map +1 -0
- package/packages/cli/dist/commands/mock.d.ts +79 -0
- package/packages/cli/dist/commands/mock.d.ts.map +1 -0
- package/packages/cli/dist/commands/mock.js +324 -0
- package/packages/cli/dist/commands/mock.js.map +1 -0
- package/packages/cli/dist/commands/pack-unpack.d.ts +30 -0
- package/packages/cli/dist/commands/pack-unpack.d.ts.map +1 -0
- package/packages/cli/dist/commands/pack-unpack.js +108 -0
- package/packages/cli/dist/commands/pack-unpack.js.map +1 -0
- package/packages/cli/dist/commands/preflight.d.ts +31 -0
- package/packages/cli/dist/commands/preflight.d.ts.map +1 -0
- package/packages/cli/dist/commands/preflight.js +246 -0
- package/packages/cli/dist/commands/preflight.js.map +1 -0
- package/packages/cli/dist/commands/profile.d.ts +30 -0
- package/packages/cli/dist/commands/profile.d.ts.map +1 -0
- package/packages/cli/dist/commands/profile.js +201 -0
- package/packages/cli/dist/commands/profile.js.map +1 -0
- package/packages/cli/dist/commands/repl.d.ts +16 -0
- package/packages/cli/dist/commands/repl.d.ts.map +1 -0
- package/packages/cli/dist/commands/repl.js +772 -0
- package/packages/cli/dist/commands/repl.js.map +1 -0
- package/packages/cli/dist/commands/routes.d.ts +24 -0
- package/packages/cli/dist/commands/routes.d.ts.map +1 -0
- package/packages/cli/dist/commands/routes.js +144 -0
- package/packages/cli/dist/commands/routes.js.map +1 -0
- package/packages/cli/dist/commands/scan.d.ts +23 -0
- package/packages/cli/dist/commands/scan.d.ts.map +1 -0
- package/packages/cli/dist/commands/scan.js +722 -0
- package/packages/cli/dist/commands/scan.js.map +1 -0
- package/packages/cli/dist/commands/seed.d.ts +35 -0
- package/packages/cli/dist/commands/seed.d.ts.map +1 -0
- package/packages/cli/dist/commands/seed.js +503 -0
- package/packages/cli/dist/commands/seed.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai-ajv.d.ts +4 -0
- package/packages/cli/dist/commands/validate-ai-ajv.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai-ajv.js +78 -0
- package/packages/cli/dist/commands/validate-ai-ajv.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai-compiler.d.ts +5 -0
- package/packages/cli/dist/commands/validate-ai-compiler.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai-compiler.js +8 -0
- package/packages/cli/dist/commands/validate-ai-compiler.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai-report.d.ts +5 -0
- package/packages/cli/dist/commands/validate-ai-report.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai-report.js +80 -0
- package/packages/cli/dist/commands/validate-ai-report.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai-resolve-inputs.d.ts +6 -0
- package/packages/cli/dist/commands/validate-ai-resolve-inputs.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai-resolve-inputs.js +54 -0
- package/packages/cli/dist/commands/validate-ai-resolve-inputs.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai-semantic-checks.d.ts +4 -0
- package/packages/cli/dist/commands/validate-ai-semantic-checks.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai-semantic-checks.js +218 -0
- package/packages/cli/dist/commands/validate-ai-semantic-checks.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai-types.d.ts +41 -0
- package/packages/cli/dist/commands/validate-ai-types.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai-types.js +2 -0
- package/packages/cli/dist/commands/validate-ai-types.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai-validate-file.d.ts +5 -0
- package/packages/cli/dist/commands/validate-ai-validate-file.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai-validate-file.js +126 -0
- package/packages/cli/dist/commands/validate-ai-validate-file.js.map +1 -0
- package/packages/cli/dist/commands/validate-ai.d.ts +15 -0
- package/packages/cli/dist/commands/validate-ai.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate-ai.js +124 -0
- package/packages/cli/dist/commands/validate-ai.js.map +1 -0
- package/packages/cli/dist/commands/validate.d.ts +15 -0
- package/packages/cli/dist/commands/validate.d.ts.map +1 -0
- package/packages/cli/dist/commands/validate.js +205 -0
- package/packages/cli/dist/commands/validate.js.map +1 -0
- package/packages/cli/dist/commands/versions.d.ts +56 -0
- package/packages/cli/dist/commands/versions.d.ts.map +1 -0
- package/packages/cli/dist/commands/versions.js +427 -0
- package/packages/cli/dist/commands/versions.js.map +1 -0
- package/packages/cli/dist/commands/watch.d.ts +34 -0
- package/packages/cli/dist/commands/watch.d.ts.map +1 -0
- package/packages/cli/dist/commands/watch.js +253 -0
- package/packages/cli/dist/commands/watch.js.map +1 -0
- package/packages/cli/dist/index.d.ts +14 -0
- package/packages/cli/dist/index.d.ts.map +1 -0
- package/packages/cli/dist/index.js +1159 -0
- package/packages/cli/dist/index.js.map +1 -0
- package/packages/cli/dist/utils/config-validate.d.ts +48 -0
- package/packages/cli/dist/utils/config-validate.d.ts.map +1 -0
- package/packages/cli/dist/utils/config-validate.js +116 -0
- package/packages/cli/dist/utils/config-validate.js.map +1 -0
- package/packages/cli/dist/utils/config.d.ts +360 -0
- package/packages/cli/dist/utils/config.d.ts.map +1 -0
- package/packages/cli/dist/utils/config.js +567 -0
- package/packages/cli/dist/utils/config.js.map +1 -0
- package/packages/cli/dist/utils/schema.d.ts +8 -0
- package/packages/cli/dist/utils/schema.d.ts.map +1 -0
- package/packages/cli/dist/utils/schema.js +13 -0
- package/packages/cli/dist/utils/schema.js.map +1 -0
- package/packages/lsp-server/bin/manifest-lsp.js +3 -0
- package/packages/lsp-server/dist/compiler-bridge.d.ts +24 -0
- package/packages/lsp-server/dist/compiler-bridge.d.ts.map +1 -0
- package/packages/lsp-server/dist/compiler-bridge.js +32 -0
- package/packages/lsp-server/dist/compiler-bridge.js.map +1 -0
- package/packages/lsp-server/dist/document-store.d.ts +23 -0
- package/packages/lsp-server/dist/document-store.d.ts.map +1 -0
- package/packages/lsp-server/dist/document-store.js +40 -0
- package/packages/lsp-server/dist/document-store.js.map +1 -0
- package/packages/lsp-server/dist/features/completion.d.ts +23 -0
- package/packages/lsp-server/dist/features/completion.d.ts.map +1 -0
- package/packages/lsp-server/dist/features/completion.js +293 -0
- package/packages/lsp-server/dist/features/completion.js.map +1 -0
- package/packages/lsp-server/dist/features/definition.d.ts +9 -0
- package/packages/lsp-server/dist/features/definition.d.ts.map +1 -0
- package/packages/lsp-server/dist/features/definition.js +24 -0
- package/packages/lsp-server/dist/features/definition.js.map +1 -0
- package/packages/lsp-server/dist/features/diagnostics.d.ts +8 -0
- package/packages/lsp-server/dist/features/diagnostics.d.ts.map +1 -0
- package/packages/lsp-server/dist/features/diagnostics.js +40 -0
- package/packages/lsp-server/dist/features/diagnostics.js.map +1 -0
- package/packages/lsp-server/dist/features/document-symbols.d.ts +8 -0
- package/packages/lsp-server/dist/features/document-symbols.d.ts.map +1 -0
- package/packages/lsp-server/dist/features/document-symbols.js +164 -0
- package/packages/lsp-server/dist/features/document-symbols.js.map +1 -0
- package/packages/lsp-server/dist/features/hover.d.ts +9 -0
- package/packages/lsp-server/dist/features/hover.d.ts.map +1 -0
- package/packages/lsp-server/dist/features/hover.js +100 -0
- package/packages/lsp-server/dist/features/hover.js.map +1 -0
- package/packages/lsp-server/dist/index.d.ts +6 -0
- package/packages/lsp-server/dist/index.d.ts.map +1 -0
- package/packages/lsp-server/dist/index.js +11 -0
- package/packages/lsp-server/dist/index.js.map +1 -0
- package/packages/lsp-server/dist/position-utils.d.ts +25 -0
- package/packages/lsp-server/dist/position-utils.d.ts.map +1 -0
- package/packages/lsp-server/dist/position-utils.js +39 -0
- package/packages/lsp-server/dist/position-utils.js.map +1 -0
- package/packages/lsp-server/dist/server.d.ts +14 -0
- package/packages/lsp-server/dist/server.d.ts.map +1 -0
- package/packages/lsp-server/dist/server.js +96 -0
- package/packages/lsp-server/dist/server.js.map +1 -0
- package/packages/lsp-server/dist/symbols/builtin-docs.d.ts +34 -0
- package/packages/lsp-server/dist/symbols/builtin-docs.d.ts.map +1 -0
- package/packages/lsp-server/dist/symbols/builtin-docs.js +193 -0
- package/packages/lsp-server/dist/symbols/builtin-docs.js.map +1 -0
- package/packages/lsp-server/dist/symbols/symbol-index.d.ts +18 -0
- package/packages/lsp-server/dist/symbols/symbol-index.d.ts.map +1 -0
- package/packages/lsp-server/dist/symbols/symbol-index.js +107 -0
- package/packages/lsp-server/dist/symbols/symbol-index.js.map +1 -0
- package/packages/mcp-server/bin/manifest-mcp.js +27 -0
- package/packages/mcp-server/dist/index.d.ts +24 -0
- package/packages/mcp-server/dist/index.d.ts.map +1 -0
- package/packages/mcp-server/dist/index.js +36 -0
- package/packages/mcp-server/dist/index.js.map +1 -0
- package/packages/mcp-server/dist/resources/ir-cache.d.ts +9 -0
- package/packages/mcp-server/dist/resources/ir-cache.d.ts.map +1 -0
- package/packages/mcp-server/dist/resources/ir-cache.js +47 -0
- package/packages/mcp-server/dist/resources/ir-cache.js.map +1 -0
- package/packages/mcp-server/dist/resources/ir-schema.d.ts +8 -0
- package/packages/mcp-server/dist/resources/ir-schema.d.ts.map +1 -0
- package/packages/mcp-server/dist/resources/ir-schema.js +39 -0
- package/packages/mcp-server/dist/resources/ir-schema.js.map +1 -0
- package/packages/mcp-server/dist/resources/semantics.d.ts +8 -0
- package/packages/mcp-server/dist/resources/semantics.d.ts.map +1 -0
- package/packages/mcp-server/dist/resources/semantics.js +38 -0
- package/packages/mcp-server/dist/resources/semantics.js.map +1 -0
- package/packages/mcp-server/dist/server.d.ts +7 -0
- package/packages/mcp-server/dist/server.d.ts.map +1 -0
- package/packages/mcp-server/dist/server.js +22 -0
- package/packages/mcp-server/dist/server.js.map +1 -0
- package/packages/mcp-server/dist/state/session-store.d.ts +39 -0
- package/packages/mcp-server/dist/state/session-store.d.ts.map +1 -0
- package/packages/mcp-server/dist/state/session-store.js +58 -0
- package/packages/mcp-server/dist/state/session-store.js.map +1 -0
- package/packages/mcp-server/dist/tools/compile.d.ts +30 -0
- package/packages/mcp-server/dist/tools/compile.d.ts.map +1 -0
- package/packages/mcp-server/dist/tools/compile.js +54 -0
- package/packages/mcp-server/dist/tools/compile.js.map +1 -0
- package/packages/mcp-server/dist/tools/execute.d.ts +112 -0
- package/packages/mcp-server/dist/tools/execute.d.ts.map +1 -0
- package/packages/mcp-server/dist/tools/execute.js +103 -0
- package/packages/mcp-server/dist/tools/execute.js.map +1 -0
- package/packages/mcp-server/dist/tools/explain.d.ts +25 -0
- package/packages/mcp-server/dist/tools/explain.d.ts.map +1 -0
- package/packages/mcp-server/dist/tools/explain.js +254 -0
- package/packages/mcp-server/dist/tools/explain.js.map +1 -0
- package/packages/mcp-server/dist/tools/validate.d.ts +23 -0
- package/packages/mcp-server/dist/tools/validate.d.ts.map +1 -0
- package/packages/mcp-server/dist/tools/validate.js +38 -0
- package/packages/mcp-server/dist/tools/validate.js.map +1 -0
- package/src/manifest/audit/sinks/postgres.sql +51 -0
- package/src/manifest/outbox/stores/postgres.sql +61 -0
|
@@ -0,0 +1,2033 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://manifest.lang/spec/ir-v1.schema.json",
|
|
3
|
+
"title": "Manifest IR v1",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"version",
|
|
8
|
+
"provenance",
|
|
9
|
+
"modules",
|
|
10
|
+
"values",
|
|
11
|
+
"entities",
|
|
12
|
+
"enums",
|
|
13
|
+
"stores",
|
|
14
|
+
"events",
|
|
15
|
+
"commands",
|
|
16
|
+
"policies"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"version": {
|
|
20
|
+
"const": "1.0"
|
|
21
|
+
},
|
|
22
|
+
"provenance": {
|
|
23
|
+
"$ref": "#/definitions/IRProvenance"
|
|
24
|
+
},
|
|
25
|
+
"modules": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"$ref": "#/definitions/IRModule"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"entities": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"$ref": "#/definitions/IREntity"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"stores": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": {
|
|
40
|
+
"$ref": "#/definitions/IRStore"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"events": {
|
|
44
|
+
"type": "array",
|
|
45
|
+
"items": {
|
|
46
|
+
"$ref": "#/definitions/IREvent"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"commands": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"$ref": "#/definitions/IRCommand"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"policies": {
|
|
56
|
+
"type": "array",
|
|
57
|
+
"items": {
|
|
58
|
+
"$ref": "#/definitions/IRPolicy"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"enums": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"$ref": "#/definitions/IREnum"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"tenant": {
|
|
68
|
+
"$ref": "#/definitions/IRTenant",
|
|
69
|
+
"description": "Multi-tenancy isolation configuration. When present, persistent entities are tenant-scoped."
|
|
70
|
+
},
|
|
71
|
+
"values": {
|
|
72
|
+
"type": "array",
|
|
73
|
+
"items": {
|
|
74
|
+
"$ref": "#/definitions/IRValueObject"
|
|
75
|
+
},
|
|
76
|
+
"description": "Reusable composite value types (embedded, no separate table). Immutable by design."
|
|
77
|
+
},
|
|
78
|
+
"reactions": {
|
|
79
|
+
"type": "array",
|
|
80
|
+
"items": {
|
|
81
|
+
"$ref": "#/definitions/IRReactionRule"
|
|
82
|
+
},
|
|
83
|
+
"description": "Declarative event-reaction rules. When a matching event is emitted, the runtime dispatches the target command."
|
|
84
|
+
},
|
|
85
|
+
"sagas": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"items": {
|
|
88
|
+
"$ref": "#/definitions/IRSaga"
|
|
89
|
+
},
|
|
90
|
+
"description": "Saga orchestration definitions sequencing commands with compensation."
|
|
91
|
+
},
|
|
92
|
+
"roles": {
|
|
93
|
+
"type": "array",
|
|
94
|
+
"items": {
|
|
95
|
+
"$ref": "#/definitions/IRRole"
|
|
96
|
+
},
|
|
97
|
+
"description": "Role hierarchy with permission inheritance. effectivePermissions is the deny-resolved flattened set."
|
|
98
|
+
},
|
|
99
|
+
"webhooks": {
|
|
100
|
+
"type": "array",
|
|
101
|
+
"items": {
|
|
102
|
+
"$ref": "#/definitions/IRWebhook"
|
|
103
|
+
},
|
|
104
|
+
"description": "Webhook declarations mapping inbound HTTP payloads to Manifest command invocations."
|
|
105
|
+
},
|
|
106
|
+
"schedules": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"items": {
|
|
109
|
+
"$ref": "#/definitions/IRSchedule"
|
|
110
|
+
},
|
|
111
|
+
"description": "Scheduled command declarations with triggers and parameter bindings."
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"definitions": {
|
|
115
|
+
"IRProvenance": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"required": [
|
|
119
|
+
"contentHash",
|
|
120
|
+
"compilerVersion",
|
|
121
|
+
"schemaVersion",
|
|
122
|
+
"compiledAt"
|
|
123
|
+
],
|
|
124
|
+
"properties": {
|
|
125
|
+
"contentHash": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"description": "SHA-256 hash of the source manifest"
|
|
128
|
+
},
|
|
129
|
+
"irHash": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"description": "SHA-256 hash of the IR itself for runtime integrity verification"
|
|
132
|
+
},
|
|
133
|
+
"compilerVersion": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"description": "Version of the compiler that generated this IR"
|
|
136
|
+
},
|
|
137
|
+
"schemaVersion": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"description": "IR schema version"
|
|
140
|
+
},
|
|
141
|
+
"compiledAt": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"description": "ISO 8601 timestamp of compilation"
|
|
144
|
+
},
|
|
145
|
+
"sources": {
|
|
146
|
+
"type": "array",
|
|
147
|
+
"description": "Source files contributing to this IR. Present only for multi-file compilation.",
|
|
148
|
+
"items": {
|
|
149
|
+
"$ref": "#/definitions/IRProvenanceSource"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"IRProvenanceSource": {
|
|
155
|
+
"type": "object",
|
|
156
|
+
"additionalProperties": false,
|
|
157
|
+
"required": ["path", "contentHash"],
|
|
158
|
+
"properties": {
|
|
159
|
+
"path": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"description": "Relative path from project root"
|
|
162
|
+
},
|
|
163
|
+
"contentHash": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"description": "SHA-256 content hash of this source file"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"IRModule": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"additionalProperties": false,
|
|
172
|
+
"required": [
|
|
173
|
+
"name",
|
|
174
|
+
"entities",
|
|
175
|
+
"commands",
|
|
176
|
+
"stores",
|
|
177
|
+
"events",
|
|
178
|
+
"policies"
|
|
179
|
+
],
|
|
180
|
+
"properties": {
|
|
181
|
+
"name": {
|
|
182
|
+
"type": "string"
|
|
183
|
+
},
|
|
184
|
+
"entities": {
|
|
185
|
+
"type": "array",
|
|
186
|
+
"items": {
|
|
187
|
+
"type": "string"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"commands": {
|
|
191
|
+
"type": "array",
|
|
192
|
+
"items": {
|
|
193
|
+
"type": "string"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"stores": {
|
|
197
|
+
"type": "array",
|
|
198
|
+
"items": {
|
|
199
|
+
"type": "string"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"events": {
|
|
203
|
+
"type": "array",
|
|
204
|
+
"items": {
|
|
205
|
+
"type": "string"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"policies": {
|
|
209
|
+
"type": "array",
|
|
210
|
+
"items": {
|
|
211
|
+
"type": "string"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"enums": {
|
|
215
|
+
"type": "array",
|
|
216
|
+
"items": {
|
|
217
|
+
"type": "string"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"reactions": {
|
|
221
|
+
"type": "array",
|
|
222
|
+
"items": {
|
|
223
|
+
"type": "string"
|
|
224
|
+
},
|
|
225
|
+
"description": "Reaction rule names declared in this module"
|
|
226
|
+
},
|
|
227
|
+
"sagas": {
|
|
228
|
+
"type": "array",
|
|
229
|
+
"items": {
|
|
230
|
+
"type": "string"
|
|
231
|
+
},
|
|
232
|
+
"description": "Saga names declared in this module"
|
|
233
|
+
},
|
|
234
|
+
"roles": {
|
|
235
|
+
"type": "array",
|
|
236
|
+
"items": {
|
|
237
|
+
"type": "string"
|
|
238
|
+
},
|
|
239
|
+
"description": "Role names declared in this module"
|
|
240
|
+
},
|
|
241
|
+
"webhooks": {
|
|
242
|
+
"type": "array",
|
|
243
|
+
"items": {
|
|
244
|
+
"type": "string"
|
|
245
|
+
},
|
|
246
|
+
"description": "Webhook names declared in this module"
|
|
247
|
+
},
|
|
248
|
+
"schedules": {
|
|
249
|
+
"type": "array",
|
|
250
|
+
"items": {
|
|
251
|
+
"type": "string"
|
|
252
|
+
},
|
|
253
|
+
"description": "Schedule names declared in this module"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"IREnum": {
|
|
258
|
+
"type": "object",
|
|
259
|
+
"additionalProperties": false,
|
|
260
|
+
"required": [
|
|
261
|
+
"name",
|
|
262
|
+
"values"
|
|
263
|
+
],
|
|
264
|
+
"properties": {
|
|
265
|
+
"name": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"description": "Enum type name"
|
|
268
|
+
},
|
|
269
|
+
"module": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"description": "Module name if defined in a module"
|
|
272
|
+
},
|
|
273
|
+
"values": {
|
|
274
|
+
"type": "array",
|
|
275
|
+
"items": {
|
|
276
|
+
"$ref": "#/definitions/IREnumValue"
|
|
277
|
+
},
|
|
278
|
+
"description": "Enum member values"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"IREnumValue": {
|
|
283
|
+
"type": "object",
|
|
284
|
+
"additionalProperties": false,
|
|
285
|
+
"required": [
|
|
286
|
+
"name"
|
|
287
|
+
],
|
|
288
|
+
"properties": {
|
|
289
|
+
"name": {
|
|
290
|
+
"type": "string",
|
|
291
|
+
"description": "Enum member name (identifier)"
|
|
292
|
+
},
|
|
293
|
+
"label": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"description": "Display label for UI"
|
|
296
|
+
},
|
|
297
|
+
"ordinal": {
|
|
298
|
+
"type": "number",
|
|
299
|
+
"description": "Optional ordinal value for sorting/database mapping"
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"IREntity": {
|
|
304
|
+
"type": "object",
|
|
305
|
+
"additionalProperties": false,
|
|
306
|
+
"required": [
|
|
307
|
+
"name",
|
|
308
|
+
"properties",
|
|
309
|
+
"computedProperties",
|
|
310
|
+
"relationships",
|
|
311
|
+
"commands",
|
|
312
|
+
"constraints",
|
|
313
|
+
"policies"
|
|
314
|
+
],
|
|
315
|
+
"properties": {
|
|
316
|
+
"name": {
|
|
317
|
+
"type": "string"
|
|
318
|
+
},
|
|
319
|
+
"module": {
|
|
320
|
+
"type": "string"
|
|
321
|
+
},
|
|
322
|
+
"parent": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"description": "Parent entity name for inheritance (from `extends` keyword)"
|
|
325
|
+
},
|
|
326
|
+
"mixins": {
|
|
327
|
+
"type": "array",
|
|
328
|
+
"items": {
|
|
329
|
+
"type": "string"
|
|
330
|
+
},
|
|
331
|
+
"description": "Mixin entity names for composition (from `mixin` keyword)"
|
|
332
|
+
},
|
|
333
|
+
"properties": {
|
|
334
|
+
"type": "array",
|
|
335
|
+
"items": {
|
|
336
|
+
"$ref": "#/definitions/IRProperty"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"computedProperties": {
|
|
340
|
+
"type": "array",
|
|
341
|
+
"items": {
|
|
342
|
+
"$ref": "#/definitions/IRComputedProperty"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"relationships": {
|
|
346
|
+
"type": "array",
|
|
347
|
+
"items": {
|
|
348
|
+
"$ref": "#/definitions/IRRelationship"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"commands": {
|
|
352
|
+
"type": "array",
|
|
353
|
+
"items": {
|
|
354
|
+
"type": "string"
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"constraints": {
|
|
358
|
+
"type": "array",
|
|
359
|
+
"items": {
|
|
360
|
+
"$ref": "#/definitions/IRConstraint"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"policies": {
|
|
364
|
+
"type": "array",
|
|
365
|
+
"items": {
|
|
366
|
+
"type": "string"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"defaultPolicies": {
|
|
370
|
+
"type": "array",
|
|
371
|
+
"items": {
|
|
372
|
+
"type": "string"
|
|
373
|
+
},
|
|
374
|
+
"description": "Policy names inherited by all commands unless overridden (vNext)"
|
|
375
|
+
},
|
|
376
|
+
"key": {
|
|
377
|
+
"type": "array",
|
|
378
|
+
"items": {
|
|
379
|
+
"type": "string"
|
|
380
|
+
},
|
|
381
|
+
"description": "Composite primary key column names, e.g. [\"tenantId\", \"id\"]"
|
|
382
|
+
},
|
|
383
|
+
"alternateKeys": {
|
|
384
|
+
"type": "array",
|
|
385
|
+
"items": {
|
|
386
|
+
"type": "array",
|
|
387
|
+
"items": {
|
|
388
|
+
"type": "string"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"description": "Alternate unique constraints for non-PK FK reference targets"
|
|
392
|
+
},
|
|
393
|
+
"versionProperty": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"description": "Name of version field for optimistic concurrency control"
|
|
396
|
+
},
|
|
397
|
+
"versionAtProperty": {
|
|
398
|
+
"type": "string",
|
|
399
|
+
"description": "Name of timestamp field for version tracking"
|
|
400
|
+
},
|
|
401
|
+
"timestamps": {
|
|
402
|
+
"type": "boolean",
|
|
403
|
+
"description": "When true, createdAt/updatedAt are auto-injected and populated at runtime"
|
|
404
|
+
},
|
|
405
|
+
"realtime": {
|
|
406
|
+
"type": "boolean",
|
|
407
|
+
"description": "Projection hint: generate SSE subscription surfaces for this entity. No runtime execution semantics."
|
|
408
|
+
},
|
|
409
|
+
"external": {
|
|
410
|
+
"type": "boolean",
|
|
411
|
+
"description": "When true, the entity is a reference to one owned by another system/file (from the `external entity` modifier). Persistence projections skip it."
|
|
412
|
+
},
|
|
413
|
+
"transitions": {
|
|
414
|
+
"type": "array",
|
|
415
|
+
"items": {
|
|
416
|
+
"$ref": "#/definitions/IRTransition"
|
|
417
|
+
},
|
|
418
|
+
"description": "Optional allowed state transitions for validation"
|
|
419
|
+
},
|
|
420
|
+
"approvals": {
|
|
421
|
+
"type": "array",
|
|
422
|
+
"items": {
|
|
423
|
+
"$ref": "#/definitions/IRApproval"
|
|
424
|
+
},
|
|
425
|
+
"description": "Approval workflow declarations gating command execution"
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"IRTransition": {
|
|
430
|
+
"type": "object",
|
|
431
|
+
"additionalProperties": false,
|
|
432
|
+
"required": [
|
|
433
|
+
"property",
|
|
434
|
+
"from",
|
|
435
|
+
"to"
|
|
436
|
+
],
|
|
437
|
+
"properties": {
|
|
438
|
+
"property": {
|
|
439
|
+
"type": "string",
|
|
440
|
+
"description": "Property name that holds state"
|
|
441
|
+
},
|
|
442
|
+
"from": {
|
|
443
|
+
"type": "string",
|
|
444
|
+
"description": "Value the property transitions FROM"
|
|
445
|
+
},
|
|
446
|
+
"to": {
|
|
447
|
+
"type": "array",
|
|
448
|
+
"items": {
|
|
449
|
+
"type": "string"
|
|
450
|
+
},
|
|
451
|
+
"description": "Allowed values the property can transition TO"
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
"IRApprovalStage": {
|
|
456
|
+
"type": "object",
|
|
457
|
+
"additionalProperties": false,
|
|
458
|
+
"required": [
|
|
459
|
+
"name",
|
|
460
|
+
"policy",
|
|
461
|
+
"required"
|
|
462
|
+
],
|
|
463
|
+
"properties": {
|
|
464
|
+
"name": {
|
|
465
|
+
"type": "string",
|
|
466
|
+
"description": "Stage name (unique within the approval)"
|
|
467
|
+
},
|
|
468
|
+
"policy": {
|
|
469
|
+
"$ref": "#/definitions/IRExpression",
|
|
470
|
+
"description": "Boolean expression authorizing an approver for this stage"
|
|
471
|
+
},
|
|
472
|
+
"required": {
|
|
473
|
+
"type": "number",
|
|
474
|
+
"description": "Number of approvals required to satisfy this stage"
|
|
475
|
+
},
|
|
476
|
+
"when": {
|
|
477
|
+
"$ref": "#/definitions/IRExpression",
|
|
478
|
+
"description": "Optional condition gating whether this stage applies"
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
"IRApproval": {
|
|
483
|
+
"type": "object",
|
|
484
|
+
"additionalProperties": false,
|
|
485
|
+
"required": [
|
|
486
|
+
"name",
|
|
487
|
+
"command",
|
|
488
|
+
"stages",
|
|
489
|
+
"emits"
|
|
490
|
+
],
|
|
491
|
+
"properties": {
|
|
492
|
+
"name": {
|
|
493
|
+
"type": "string",
|
|
494
|
+
"description": "Approval workflow name"
|
|
495
|
+
},
|
|
496
|
+
"command": {
|
|
497
|
+
"type": "string",
|
|
498
|
+
"description": "Command name this approval gates"
|
|
499
|
+
},
|
|
500
|
+
"stages": {
|
|
501
|
+
"type": "array",
|
|
502
|
+
"items": {
|
|
503
|
+
"$ref": "#/definitions/IRApprovalStage"
|
|
504
|
+
},
|
|
505
|
+
"description": "Ordered approval stages"
|
|
506
|
+
},
|
|
507
|
+
"timeout": {
|
|
508
|
+
"type": "number",
|
|
509
|
+
"description": "Timeout in hours for pending approval"
|
|
510
|
+
},
|
|
511
|
+
"onTimeout": {
|
|
512
|
+
"type": "string",
|
|
513
|
+
"enum": ["cancel", "escalate"],
|
|
514
|
+
"description": "Behavior when approval times out"
|
|
515
|
+
},
|
|
516
|
+
"emits": {
|
|
517
|
+
"type": "array",
|
|
518
|
+
"items": {
|
|
519
|
+
"type": "string"
|
|
520
|
+
},
|
|
521
|
+
"description": "Lifecycle events emitted during the approval workflow"
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"IRProperty": {
|
|
526
|
+
"type": "object",
|
|
527
|
+
"additionalProperties": false,
|
|
528
|
+
"required": [
|
|
529
|
+
"name",
|
|
530
|
+
"type",
|
|
531
|
+
"modifiers"
|
|
532
|
+
],
|
|
533
|
+
"properties": {
|
|
534
|
+
"name": {
|
|
535
|
+
"type": "string"
|
|
536
|
+
},
|
|
537
|
+
"type": {
|
|
538
|
+
"$ref": "#/definitions/IRType"
|
|
539
|
+
},
|
|
540
|
+
"defaultValue": {
|
|
541
|
+
"$ref": "#/definitions/IRValue"
|
|
542
|
+
},
|
|
543
|
+
"autoNow": {
|
|
544
|
+
"type": "boolean",
|
|
545
|
+
"description": "Property default is a current-time call (= now()/= today()); runtime stamps current time on create."
|
|
546
|
+
},
|
|
547
|
+
"modifiers": {
|
|
548
|
+
"type": "array",
|
|
549
|
+
"items": {
|
|
550
|
+
"enum": [
|
|
551
|
+
"required",
|
|
552
|
+
"unique",
|
|
553
|
+
"indexed",
|
|
554
|
+
"private",
|
|
555
|
+
"readonly",
|
|
556
|
+
"optional",
|
|
557
|
+
"searchable",
|
|
558
|
+
"encrypted",
|
|
559
|
+
"masked"
|
|
560
|
+
]
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
"maskStrategy": {
|
|
564
|
+
"$ref": "#/definitions/IRMaskStrategy"
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
"IRMaskStrategy": {
|
|
569
|
+
"type": "object",
|
|
570
|
+
"additionalProperties": false,
|
|
571
|
+
"required": [
|
|
572
|
+
"type"
|
|
573
|
+
],
|
|
574
|
+
"properties": {
|
|
575
|
+
"type": {
|
|
576
|
+
"enum": [
|
|
577
|
+
"redact",
|
|
578
|
+
"partial",
|
|
579
|
+
"email",
|
|
580
|
+
"phone",
|
|
581
|
+
"last4"
|
|
582
|
+
]
|
|
583
|
+
},
|
|
584
|
+
"params": {
|
|
585
|
+
"type": "array",
|
|
586
|
+
"items": {
|
|
587
|
+
"type": "number"
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
"unmaskWhen": {
|
|
591
|
+
"$ref": "#/definitions/IRExpression"
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
"IRComputedPropertyCache": {
|
|
596
|
+
"type": "object",
|
|
597
|
+
"additionalProperties": false,
|
|
598
|
+
"required": ["strategy"],
|
|
599
|
+
"properties": {
|
|
600
|
+
"strategy": {
|
|
601
|
+
"type": "string",
|
|
602
|
+
"enum": ["request", "session", "ttl"]
|
|
603
|
+
},
|
|
604
|
+
"ttlSeconds": {
|
|
605
|
+
"type": "number"
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"IRComputedProperty": {
|
|
610
|
+
"type": "object",
|
|
611
|
+
"additionalProperties": false,
|
|
612
|
+
"required": [
|
|
613
|
+
"name",
|
|
614
|
+
"type",
|
|
615
|
+
"expression",
|
|
616
|
+
"dependencies"
|
|
617
|
+
],
|
|
618
|
+
"properties": {
|
|
619
|
+
"name": {
|
|
620
|
+
"type": "string"
|
|
621
|
+
},
|
|
622
|
+
"type": {
|
|
623
|
+
"$ref": "#/definitions/IRType"
|
|
624
|
+
},
|
|
625
|
+
"expression": {
|
|
626
|
+
"$ref": "#/definitions/IRExpression"
|
|
627
|
+
},
|
|
628
|
+
"dependencies": {
|
|
629
|
+
"type": "array",
|
|
630
|
+
"items": {
|
|
631
|
+
"type": "string"
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"cache": {
|
|
635
|
+
"$ref": "#/definitions/IRComputedPropertyCache"
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
"IRForeignKey": {
|
|
640
|
+
"type": "object",
|
|
641
|
+
"additionalProperties": false,
|
|
642
|
+
"required": [
|
|
643
|
+
"fields"
|
|
644
|
+
],
|
|
645
|
+
"properties": {
|
|
646
|
+
"fields": {
|
|
647
|
+
"type": "array",
|
|
648
|
+
"items": {
|
|
649
|
+
"type": "string"
|
|
650
|
+
},
|
|
651
|
+
"description": "Local FK column names"
|
|
652
|
+
},
|
|
653
|
+
"references": {
|
|
654
|
+
"type": "array",
|
|
655
|
+
"items": {
|
|
656
|
+
"type": "string"
|
|
657
|
+
},
|
|
658
|
+
"description": "Remote/referenced column names. Absent means projection defaults to [\"id\"]"
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
"IRRelationship": {
|
|
663
|
+
"type": "object",
|
|
664
|
+
"additionalProperties": false,
|
|
665
|
+
"required": [
|
|
666
|
+
"name",
|
|
667
|
+
"kind",
|
|
668
|
+
"target"
|
|
669
|
+
],
|
|
670
|
+
"properties": {
|
|
671
|
+
"name": {
|
|
672
|
+
"type": "string"
|
|
673
|
+
},
|
|
674
|
+
"kind": {
|
|
675
|
+
"enum": [
|
|
676
|
+
"hasMany",
|
|
677
|
+
"hasOne",
|
|
678
|
+
"belongsTo",
|
|
679
|
+
"ref"
|
|
680
|
+
]
|
|
681
|
+
},
|
|
682
|
+
"target": {
|
|
683
|
+
"type": "string"
|
|
684
|
+
},
|
|
685
|
+
"foreignKey": {
|
|
686
|
+
"$ref": "#/definitions/IRForeignKey"
|
|
687
|
+
},
|
|
688
|
+
"through": {
|
|
689
|
+
"type": "string"
|
|
690
|
+
},
|
|
691
|
+
"onDelete": {
|
|
692
|
+
"type": "string",
|
|
693
|
+
"enum": [
|
|
694
|
+
"cascade",
|
|
695
|
+
"restrict",
|
|
696
|
+
"setNull",
|
|
697
|
+
"setDefault",
|
|
698
|
+
"noAction"
|
|
699
|
+
],
|
|
700
|
+
"description": "Referential action on parent delete. Absent = let projection/DB default."
|
|
701
|
+
},
|
|
702
|
+
"onUpdate": {
|
|
703
|
+
"type": "string",
|
|
704
|
+
"enum": [
|
|
705
|
+
"cascade",
|
|
706
|
+
"restrict",
|
|
707
|
+
"setNull",
|
|
708
|
+
"setDefault",
|
|
709
|
+
"noAction"
|
|
710
|
+
],
|
|
711
|
+
"description": "Referential action on parent update. Absent = let projection/DB default."
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
"IRConstraint": {
|
|
716
|
+
"type": "object",
|
|
717
|
+
"additionalProperties": false,
|
|
718
|
+
"required": [
|
|
719
|
+
"name",
|
|
720
|
+
"code",
|
|
721
|
+
"expression"
|
|
722
|
+
],
|
|
723
|
+
"properties": {
|
|
724
|
+
"name": {
|
|
725
|
+
"type": "string"
|
|
726
|
+
},
|
|
727
|
+
"code": {
|
|
728
|
+
"type": "string",
|
|
729
|
+
"description": "Stable identifier for overrides/auditing (defaults to name)"
|
|
730
|
+
},
|
|
731
|
+
"expression": {
|
|
732
|
+
"$ref": "#/definitions/IRExpression"
|
|
733
|
+
},
|
|
734
|
+
"message": {
|
|
735
|
+
"type": "string"
|
|
736
|
+
},
|
|
737
|
+
"severity": {
|
|
738
|
+
"type": "string",
|
|
739
|
+
"enum": [
|
|
740
|
+
"ok",
|
|
741
|
+
"warn",
|
|
742
|
+
"block"
|
|
743
|
+
],
|
|
744
|
+
"description": "Constraint severity level (default: block)"
|
|
745
|
+
},
|
|
746
|
+
"messageTemplate": {
|
|
747
|
+
"type": "string",
|
|
748
|
+
"description": "Template for error messages with interpolation"
|
|
749
|
+
},
|
|
750
|
+
"detailsMapping": {
|
|
751
|
+
"type": "object",
|
|
752
|
+
"additionalProperties": {
|
|
753
|
+
"$ref": "#/definitions/IRExpression"
|
|
754
|
+
},
|
|
755
|
+
"description": "Structured details for UI (key-value pairs with expression values)"
|
|
756
|
+
},
|
|
757
|
+
"overrideable": {
|
|
758
|
+
"type": "boolean",
|
|
759
|
+
"description": "Can this constraint be overridden?"
|
|
760
|
+
},
|
|
761
|
+
"overridePolicyRef": {
|
|
762
|
+
"type": "string",
|
|
763
|
+
"description": "Policy that authorizes overrides"
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
"IRStore": {
|
|
768
|
+
"type": "object",
|
|
769
|
+
"additionalProperties": false,
|
|
770
|
+
"required": [
|
|
771
|
+
"entity",
|
|
772
|
+
"target",
|
|
773
|
+
"config"
|
|
774
|
+
],
|
|
775
|
+
"properties": {
|
|
776
|
+
"entity": {
|
|
777
|
+
"type": "string"
|
|
778
|
+
},
|
|
779
|
+
"target": {
|
|
780
|
+
"type": "string",
|
|
781
|
+
"description": "Built-in targets: memory, localStorage, postgres, supabase, durable. Custom adapter schemes (e.g. redis, dynamodb) are valid when a matching StoreAdapterPlugin is registered."
|
|
782
|
+
},
|
|
783
|
+
"config": {
|
|
784
|
+
"type": "object",
|
|
785
|
+
"additionalProperties": {
|
|
786
|
+
"$ref": "#/definitions/IRValue"
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
"IREvent": {
|
|
792
|
+
"type": "object",
|
|
793
|
+
"additionalProperties": false,
|
|
794
|
+
"required": [
|
|
795
|
+
"name",
|
|
796
|
+
"channel",
|
|
797
|
+
"payload"
|
|
798
|
+
],
|
|
799
|
+
"properties": {
|
|
800
|
+
"name": {
|
|
801
|
+
"type": "string"
|
|
802
|
+
},
|
|
803
|
+
"channel": {
|
|
804
|
+
"type": "string"
|
|
805
|
+
},
|
|
806
|
+
"payload": {
|
|
807
|
+
"oneOf": [
|
|
808
|
+
{
|
|
809
|
+
"$ref": "#/definitions/IRType"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"type": "array",
|
|
813
|
+
"items": {
|
|
814
|
+
"$ref": "#/definitions/IREventField"
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
]
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
"IREventField": {
|
|
822
|
+
"type": "object",
|
|
823
|
+
"additionalProperties": false,
|
|
824
|
+
"required": [
|
|
825
|
+
"name",
|
|
826
|
+
"type",
|
|
827
|
+
"required"
|
|
828
|
+
],
|
|
829
|
+
"properties": {
|
|
830
|
+
"name": {
|
|
831
|
+
"type": "string"
|
|
832
|
+
},
|
|
833
|
+
"type": {
|
|
834
|
+
"$ref": "#/definitions/IRType"
|
|
835
|
+
},
|
|
836
|
+
"required": {
|
|
837
|
+
"type": "boolean"
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
"IRCommand": {
|
|
842
|
+
"type": "object",
|
|
843
|
+
"additionalProperties": false,
|
|
844
|
+
"required": [
|
|
845
|
+
"name",
|
|
846
|
+
"parameters",
|
|
847
|
+
"guards",
|
|
848
|
+
"actions",
|
|
849
|
+
"emits"
|
|
850
|
+
],
|
|
851
|
+
"properties": {
|
|
852
|
+
"name": {
|
|
853
|
+
"type": "string"
|
|
854
|
+
},
|
|
855
|
+
"module": {
|
|
856
|
+
"type": "string"
|
|
857
|
+
},
|
|
858
|
+
"entity": {
|
|
859
|
+
"type": "string"
|
|
860
|
+
},
|
|
861
|
+
"parameters": {
|
|
862
|
+
"type": "array",
|
|
863
|
+
"items": {
|
|
864
|
+
"$ref": "#/definitions/IRParameter"
|
|
865
|
+
}
|
|
866
|
+
},
|
|
867
|
+
"guards": {
|
|
868
|
+
"type": "array",
|
|
869
|
+
"items": {
|
|
870
|
+
"$ref": "#/definitions/IRExpression"
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
"constraints": {
|
|
874
|
+
"type": "array",
|
|
875
|
+
"items": {
|
|
876
|
+
"$ref": "#/definitions/IRConstraint"
|
|
877
|
+
},
|
|
878
|
+
"description": "Command-level constraints (pre-execution validation)"
|
|
879
|
+
},
|
|
880
|
+
"policies": {
|
|
881
|
+
"type": "array",
|
|
882
|
+
"items": {
|
|
883
|
+
"type": "string"
|
|
884
|
+
},
|
|
885
|
+
"description": "Policy names for authorization (explicit or inherited from entity defaults)"
|
|
886
|
+
},
|
|
887
|
+
"retry": {
|
|
888
|
+
"$ref": "#/definitions/IRRetry",
|
|
889
|
+
"description": "Retry policy for resilient execution"
|
|
890
|
+
},
|
|
891
|
+
"rateLimit": {
|
|
892
|
+
"$ref": "#/definitions/IRRateLimit",
|
|
893
|
+
"description": "Rate limit policy for this command"
|
|
894
|
+
},
|
|
895
|
+
"actions": {
|
|
896
|
+
"type": "array",
|
|
897
|
+
"items": {
|
|
898
|
+
"$ref": "#/definitions/IRAction"
|
|
899
|
+
}
|
|
900
|
+
},
|
|
901
|
+
"emits": {
|
|
902
|
+
"type": "array",
|
|
903
|
+
"items": {
|
|
904
|
+
"type": "string"
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
"emitPayloads": {
|
|
908
|
+
"type": "array",
|
|
909
|
+
"description": "Explicit event payload field expressions from `emit Event { field: expr }`.",
|
|
910
|
+
"items": {
|
|
911
|
+
"$ref": "#/definitions/IREmitPayload"
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
"returns": {
|
|
915
|
+
"$ref": "#/definitions/IRType"
|
|
916
|
+
},
|
|
917
|
+
"async": {
|
|
918
|
+
"type": "boolean",
|
|
919
|
+
"description": "When true, defers action execution to a background worker queue. The command returns a JobId immediately after policies/guards pass."
|
|
920
|
+
},
|
|
921
|
+
"completionEvent": {
|
|
922
|
+
"type": "string",
|
|
923
|
+
"description": "Auto-derived completion event name, synthesized when async is true. Format: {commandName}Completed."
|
|
924
|
+
},
|
|
925
|
+
"failureEvent": {
|
|
926
|
+
"type": "string",
|
|
927
|
+
"description": "Auto-derived failure event name, synthesized when async is true. Format: {commandName}Failed."
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"IREmitPayload": {
|
|
932
|
+
"type": "object",
|
|
933
|
+
"additionalProperties": false,
|
|
934
|
+
"required": [
|
|
935
|
+
"eventName",
|
|
936
|
+
"fields"
|
|
937
|
+
],
|
|
938
|
+
"properties": {
|
|
939
|
+
"eventName": {
|
|
940
|
+
"type": "string"
|
|
941
|
+
},
|
|
942
|
+
"fields": {
|
|
943
|
+
"type": "array",
|
|
944
|
+
"items": {
|
|
945
|
+
"$ref": "#/definitions/IREmitPayloadField"
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
},
|
|
950
|
+
"IREmitPayloadField": {
|
|
951
|
+
"type": "object",
|
|
952
|
+
"additionalProperties": false,
|
|
953
|
+
"required": [
|
|
954
|
+
"name",
|
|
955
|
+
"expression"
|
|
956
|
+
],
|
|
957
|
+
"properties": {
|
|
958
|
+
"name": {
|
|
959
|
+
"type": "string"
|
|
960
|
+
},
|
|
961
|
+
"expression": {
|
|
962
|
+
"$ref": "#/definitions/IRExpression"
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
"IRParameter": {
|
|
967
|
+
"type": "object",
|
|
968
|
+
"additionalProperties": false,
|
|
969
|
+
"required": [
|
|
970
|
+
"name",
|
|
971
|
+
"type",
|
|
972
|
+
"required"
|
|
973
|
+
],
|
|
974
|
+
"properties": {
|
|
975
|
+
"name": {
|
|
976
|
+
"type": "string"
|
|
977
|
+
},
|
|
978
|
+
"type": {
|
|
979
|
+
"$ref": "#/definitions/IRType"
|
|
980
|
+
},
|
|
981
|
+
"required": {
|
|
982
|
+
"type": "boolean"
|
|
983
|
+
},
|
|
984
|
+
"defaultValue": {
|
|
985
|
+
"$ref": "#/definitions/IRValue"
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
},
|
|
989
|
+
"IRAction": {
|
|
990
|
+
"oneOf": [
|
|
991
|
+
{
|
|
992
|
+
"type": "object",
|
|
993
|
+
"additionalProperties": false,
|
|
994
|
+
"required": [
|
|
995
|
+
"kind",
|
|
996
|
+
"target",
|
|
997
|
+
"expression"
|
|
998
|
+
],
|
|
999
|
+
"properties": {
|
|
1000
|
+
"kind": {
|
|
1001
|
+
"const": "mutate"
|
|
1002
|
+
},
|
|
1003
|
+
"target": {
|
|
1004
|
+
"type": "string"
|
|
1005
|
+
},
|
|
1006
|
+
"expression": {
|
|
1007
|
+
"$ref": "#/definitions/IRExpression"
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"type": "object",
|
|
1013
|
+
"additionalProperties": false,
|
|
1014
|
+
"required": [
|
|
1015
|
+
"kind",
|
|
1016
|
+
"expression"
|
|
1017
|
+
],
|
|
1018
|
+
"properties": {
|
|
1019
|
+
"kind": {
|
|
1020
|
+
"enum": [
|
|
1021
|
+
"emit",
|
|
1022
|
+
"compute",
|
|
1023
|
+
"effect",
|
|
1024
|
+
"publish",
|
|
1025
|
+
"persist"
|
|
1026
|
+
]
|
|
1027
|
+
},
|
|
1028
|
+
"target": {
|
|
1029
|
+
"type": "string"
|
|
1030
|
+
},
|
|
1031
|
+
"expression": {
|
|
1032
|
+
"$ref": "#/definitions/IRExpression"
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
]
|
|
1037
|
+
},
|
|
1038
|
+
"IRPolicy": {
|
|
1039
|
+
"type": "object",
|
|
1040
|
+
"additionalProperties": false,
|
|
1041
|
+
"required": [
|
|
1042
|
+
"name",
|
|
1043
|
+
"action",
|
|
1044
|
+
"expression"
|
|
1045
|
+
],
|
|
1046
|
+
"properties": {
|
|
1047
|
+
"name": {
|
|
1048
|
+
"type": "string"
|
|
1049
|
+
},
|
|
1050
|
+
"module": {
|
|
1051
|
+
"type": "string"
|
|
1052
|
+
},
|
|
1053
|
+
"entity": {
|
|
1054
|
+
"type": "string"
|
|
1055
|
+
},
|
|
1056
|
+
"action": {
|
|
1057
|
+
"enum": [
|
|
1058
|
+
"read",
|
|
1059
|
+
"write",
|
|
1060
|
+
"delete",
|
|
1061
|
+
"execute",
|
|
1062
|
+
"all",
|
|
1063
|
+
"override"
|
|
1064
|
+
]
|
|
1065
|
+
},
|
|
1066
|
+
"expression": {
|
|
1067
|
+
"$ref": "#/definitions/IRExpression"
|
|
1068
|
+
},
|
|
1069
|
+
"rateLimit": {
|
|
1070
|
+
"$ref": "#/definitions/IRRateLimit",
|
|
1071
|
+
"description": "Rate limit policy for this policy"
|
|
1072
|
+
},
|
|
1073
|
+
"message": {
|
|
1074
|
+
"type": "string"
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
"IRType": {
|
|
1079
|
+
"type": "object",
|
|
1080
|
+
"additionalProperties": false,
|
|
1081
|
+
"required": [
|
|
1082
|
+
"name",
|
|
1083
|
+
"nullable"
|
|
1084
|
+
],
|
|
1085
|
+
"properties": {
|
|
1086
|
+
"name": {
|
|
1087
|
+
"type": "string"
|
|
1088
|
+
},
|
|
1089
|
+
"generic": {
|
|
1090
|
+
"$ref": "#/definitions/IRType"
|
|
1091
|
+
},
|
|
1092
|
+
"nullable": {
|
|
1093
|
+
"type": "boolean"
|
|
1094
|
+
},
|
|
1095
|
+
"params": {
|
|
1096
|
+
"type": "object",
|
|
1097
|
+
"additionalProperties": false,
|
|
1098
|
+
"description": "Type parameters such as precision/scale for decimal types",
|
|
1099
|
+
"properties": {
|
|
1100
|
+
"precision": {
|
|
1101
|
+
"type": "number",
|
|
1102
|
+
"description": "Total number of significant digits (for decimal/money types)"
|
|
1103
|
+
},
|
|
1104
|
+
"scale": {
|
|
1105
|
+
"type": "number",
|
|
1106
|
+
"description": "Number of digits after decimal point (for decimal/money types)"
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
"IRValue": {
|
|
1113
|
+
"oneOf": [
|
|
1114
|
+
{
|
|
1115
|
+
"type": "object",
|
|
1116
|
+
"additionalProperties": false,
|
|
1117
|
+
"required": [
|
|
1118
|
+
"kind",
|
|
1119
|
+
"value"
|
|
1120
|
+
],
|
|
1121
|
+
"properties": {
|
|
1122
|
+
"kind": {
|
|
1123
|
+
"const": "string"
|
|
1124
|
+
},
|
|
1125
|
+
"value": {
|
|
1126
|
+
"type": "string"
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"type": "object",
|
|
1132
|
+
"additionalProperties": false,
|
|
1133
|
+
"required": [
|
|
1134
|
+
"kind",
|
|
1135
|
+
"value"
|
|
1136
|
+
],
|
|
1137
|
+
"properties": {
|
|
1138
|
+
"kind": {
|
|
1139
|
+
"const": "number"
|
|
1140
|
+
},
|
|
1141
|
+
"value": {
|
|
1142
|
+
"type": "number"
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"type": "object",
|
|
1148
|
+
"additionalProperties": false,
|
|
1149
|
+
"required": [
|
|
1150
|
+
"kind",
|
|
1151
|
+
"value"
|
|
1152
|
+
],
|
|
1153
|
+
"properties": {
|
|
1154
|
+
"kind": {
|
|
1155
|
+
"const": "boolean"
|
|
1156
|
+
},
|
|
1157
|
+
"value": {
|
|
1158
|
+
"type": "boolean"
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"type": "object",
|
|
1164
|
+
"additionalProperties": false,
|
|
1165
|
+
"required": [
|
|
1166
|
+
"kind"
|
|
1167
|
+
],
|
|
1168
|
+
"properties": {
|
|
1169
|
+
"kind": {
|
|
1170
|
+
"const": "null"
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"type": "object",
|
|
1176
|
+
"additionalProperties": false,
|
|
1177
|
+
"required": [
|
|
1178
|
+
"kind",
|
|
1179
|
+
"elements"
|
|
1180
|
+
],
|
|
1181
|
+
"properties": {
|
|
1182
|
+
"kind": {
|
|
1183
|
+
"const": "array"
|
|
1184
|
+
},
|
|
1185
|
+
"elements": {
|
|
1186
|
+
"type": "array",
|
|
1187
|
+
"items": {
|
|
1188
|
+
"$ref": "#/definitions/IRValue"
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"type": "object",
|
|
1195
|
+
"additionalProperties": false,
|
|
1196
|
+
"required": [
|
|
1197
|
+
"kind",
|
|
1198
|
+
"properties"
|
|
1199
|
+
],
|
|
1200
|
+
"properties": {
|
|
1201
|
+
"kind": {
|
|
1202
|
+
"const": "object"
|
|
1203
|
+
},
|
|
1204
|
+
"properties": {
|
|
1205
|
+
"type": "object",
|
|
1206
|
+
"additionalProperties": {
|
|
1207
|
+
"$ref": "#/definitions/IRValue"
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
]
|
|
1213
|
+
},
|
|
1214
|
+
"IRExpression": {
|
|
1215
|
+
"oneOf": [
|
|
1216
|
+
{
|
|
1217
|
+
"type": "object",
|
|
1218
|
+
"additionalProperties": false,
|
|
1219
|
+
"required": [
|
|
1220
|
+
"kind",
|
|
1221
|
+
"value"
|
|
1222
|
+
],
|
|
1223
|
+
"properties": {
|
|
1224
|
+
"kind": {
|
|
1225
|
+
"const": "literal"
|
|
1226
|
+
},
|
|
1227
|
+
"value": {
|
|
1228
|
+
"$ref": "#/definitions/IRValue"
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"type": "object",
|
|
1234
|
+
"additionalProperties": false,
|
|
1235
|
+
"required": [
|
|
1236
|
+
"kind",
|
|
1237
|
+
"name"
|
|
1238
|
+
],
|
|
1239
|
+
"properties": {
|
|
1240
|
+
"kind": {
|
|
1241
|
+
"const": "identifier"
|
|
1242
|
+
},
|
|
1243
|
+
"name": {
|
|
1244
|
+
"type": "string"
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
"type": "object",
|
|
1250
|
+
"additionalProperties": false,
|
|
1251
|
+
"required": [
|
|
1252
|
+
"kind",
|
|
1253
|
+
"object",
|
|
1254
|
+
"property"
|
|
1255
|
+
],
|
|
1256
|
+
"properties": {
|
|
1257
|
+
"kind": {
|
|
1258
|
+
"const": "member"
|
|
1259
|
+
},
|
|
1260
|
+
"object": {
|
|
1261
|
+
"$ref": "#/definitions/IRExpression"
|
|
1262
|
+
},
|
|
1263
|
+
"property": {
|
|
1264
|
+
"type": "string"
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"type": "object",
|
|
1270
|
+
"additionalProperties": false,
|
|
1271
|
+
"required": [
|
|
1272
|
+
"kind",
|
|
1273
|
+
"operator",
|
|
1274
|
+
"left",
|
|
1275
|
+
"right"
|
|
1276
|
+
],
|
|
1277
|
+
"properties": {
|
|
1278
|
+
"kind": {
|
|
1279
|
+
"const": "binary"
|
|
1280
|
+
},
|
|
1281
|
+
"operator": {
|
|
1282
|
+
"type": "string"
|
|
1283
|
+
},
|
|
1284
|
+
"left": {
|
|
1285
|
+
"$ref": "#/definitions/IRExpression"
|
|
1286
|
+
},
|
|
1287
|
+
"right": {
|
|
1288
|
+
"$ref": "#/definitions/IRExpression"
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"type": "object",
|
|
1294
|
+
"additionalProperties": false,
|
|
1295
|
+
"required": [
|
|
1296
|
+
"kind",
|
|
1297
|
+
"operator",
|
|
1298
|
+
"operand"
|
|
1299
|
+
],
|
|
1300
|
+
"properties": {
|
|
1301
|
+
"kind": {
|
|
1302
|
+
"const": "unary"
|
|
1303
|
+
},
|
|
1304
|
+
"operator": {
|
|
1305
|
+
"type": "string"
|
|
1306
|
+
},
|
|
1307
|
+
"operand": {
|
|
1308
|
+
"$ref": "#/definitions/IRExpression"
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
"type": "object",
|
|
1314
|
+
"additionalProperties": false,
|
|
1315
|
+
"required": [
|
|
1316
|
+
"kind",
|
|
1317
|
+
"callee",
|
|
1318
|
+
"args"
|
|
1319
|
+
],
|
|
1320
|
+
"properties": {
|
|
1321
|
+
"kind": {
|
|
1322
|
+
"const": "call"
|
|
1323
|
+
},
|
|
1324
|
+
"callee": {
|
|
1325
|
+
"$ref": "#/definitions/IRExpression"
|
|
1326
|
+
},
|
|
1327
|
+
"args": {
|
|
1328
|
+
"type": "array",
|
|
1329
|
+
"items": {
|
|
1330
|
+
"$ref": "#/definitions/IRExpression"
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"type": "object",
|
|
1337
|
+
"additionalProperties": false,
|
|
1338
|
+
"required": [
|
|
1339
|
+
"kind",
|
|
1340
|
+
"condition",
|
|
1341
|
+
"consequent",
|
|
1342
|
+
"alternate"
|
|
1343
|
+
],
|
|
1344
|
+
"properties": {
|
|
1345
|
+
"kind": {
|
|
1346
|
+
"const": "conditional"
|
|
1347
|
+
},
|
|
1348
|
+
"condition": {
|
|
1349
|
+
"$ref": "#/definitions/IRExpression"
|
|
1350
|
+
},
|
|
1351
|
+
"consequent": {
|
|
1352
|
+
"$ref": "#/definitions/IRExpression"
|
|
1353
|
+
},
|
|
1354
|
+
"alternate": {
|
|
1355
|
+
"$ref": "#/definitions/IRExpression"
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
"type": "object",
|
|
1361
|
+
"additionalProperties": false,
|
|
1362
|
+
"required": [
|
|
1363
|
+
"kind",
|
|
1364
|
+
"elements"
|
|
1365
|
+
],
|
|
1366
|
+
"properties": {
|
|
1367
|
+
"kind": {
|
|
1368
|
+
"const": "array"
|
|
1369
|
+
},
|
|
1370
|
+
"elements": {
|
|
1371
|
+
"type": "array",
|
|
1372
|
+
"items": {
|
|
1373
|
+
"$ref": "#/definitions/IRExpression"
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"type": "object",
|
|
1380
|
+
"additionalProperties": false,
|
|
1381
|
+
"required": [
|
|
1382
|
+
"kind",
|
|
1383
|
+
"properties"
|
|
1384
|
+
],
|
|
1385
|
+
"properties": {
|
|
1386
|
+
"kind": {
|
|
1387
|
+
"const": "object"
|
|
1388
|
+
},
|
|
1389
|
+
"properties": {
|
|
1390
|
+
"type": "array",
|
|
1391
|
+
"items": {
|
|
1392
|
+
"type": "object",
|
|
1393
|
+
"additionalProperties": false,
|
|
1394
|
+
"required": [
|
|
1395
|
+
"key",
|
|
1396
|
+
"value"
|
|
1397
|
+
],
|
|
1398
|
+
"properties": {
|
|
1399
|
+
"key": {
|
|
1400
|
+
"type": "string"
|
|
1401
|
+
},
|
|
1402
|
+
"value": {
|
|
1403
|
+
"$ref": "#/definitions/IRExpression"
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
"type": "object",
|
|
1412
|
+
"additionalProperties": false,
|
|
1413
|
+
"required": [
|
|
1414
|
+
"kind",
|
|
1415
|
+
"params",
|
|
1416
|
+
"body"
|
|
1417
|
+
],
|
|
1418
|
+
"properties": {
|
|
1419
|
+
"kind": {
|
|
1420
|
+
"const": "lambda"
|
|
1421
|
+
},
|
|
1422
|
+
"params": {
|
|
1423
|
+
"type": "array",
|
|
1424
|
+
"items": {
|
|
1425
|
+
"type": "string"
|
|
1426
|
+
}
|
|
1427
|
+
},
|
|
1428
|
+
"body": {
|
|
1429
|
+
"$ref": "#/definitions/IRExpression"
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
"type": "object",
|
|
1435
|
+
"additionalProperties": false,
|
|
1436
|
+
"required": [
|
|
1437
|
+
"kind",
|
|
1438
|
+
"op",
|
|
1439
|
+
"entity",
|
|
1440
|
+
"predicates"
|
|
1441
|
+
],
|
|
1442
|
+
"properties": {
|
|
1443
|
+
"kind": {
|
|
1444
|
+
"const": "aggregate"
|
|
1445
|
+
},
|
|
1446
|
+
"op": {
|
|
1447
|
+
"const": "count"
|
|
1448
|
+
},
|
|
1449
|
+
"entity": {
|
|
1450
|
+
"type": "string",
|
|
1451
|
+
"description": "Entity whose rows are counted."
|
|
1452
|
+
},
|
|
1453
|
+
"predicates": {
|
|
1454
|
+
"type": "array",
|
|
1455
|
+
"description": "ANDed equality predicates: counted row.<field> == <value>. At least one (the foreign-key match) is expected.",
|
|
1456
|
+
"items": {
|
|
1457
|
+
"type": "object",
|
|
1458
|
+
"additionalProperties": false,
|
|
1459
|
+
"required": ["field", "value"],
|
|
1460
|
+
"properties": {
|
|
1461
|
+
"field": {
|
|
1462
|
+
"type": "string",
|
|
1463
|
+
"description": "Property on the counted entity."
|
|
1464
|
+
},
|
|
1465
|
+
"value": {
|
|
1466
|
+
"$ref": "#/definitions/IRExpression",
|
|
1467
|
+
"description": "Expression evaluated in the surrounding context (reaction params: the event payload)."
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
]
|
|
1475
|
+
},
|
|
1476
|
+
"ConstraintOutcome": {
|
|
1477
|
+
"type": "object",
|
|
1478
|
+
"additionalProperties": false,
|
|
1479
|
+
"required": [
|
|
1480
|
+
"code",
|
|
1481
|
+
"constraintName",
|
|
1482
|
+
"severity",
|
|
1483
|
+
"formatted",
|
|
1484
|
+
"passed"
|
|
1485
|
+
],
|
|
1486
|
+
"properties": {
|
|
1487
|
+
"code": {
|
|
1488
|
+
"type": "string",
|
|
1489
|
+
"description": "Stable constraint identifier"
|
|
1490
|
+
},
|
|
1491
|
+
"constraintName": {
|
|
1492
|
+
"type": "string",
|
|
1493
|
+
"description": "Constraint name for reference"
|
|
1494
|
+
},
|
|
1495
|
+
"severity": {
|
|
1496
|
+
"type": "string",
|
|
1497
|
+
"enum": [
|
|
1498
|
+
"ok",
|
|
1499
|
+
"warn",
|
|
1500
|
+
"block"
|
|
1501
|
+
],
|
|
1502
|
+
"description": "Severity level of the constraint"
|
|
1503
|
+
},
|
|
1504
|
+
"formatted": {
|
|
1505
|
+
"type": "string",
|
|
1506
|
+
"description": "Formatted expression string"
|
|
1507
|
+
},
|
|
1508
|
+
"message": {
|
|
1509
|
+
"type": "string",
|
|
1510
|
+
"description": "Optional message from constraint"
|
|
1511
|
+
},
|
|
1512
|
+
"details": {
|
|
1513
|
+
"type": "object",
|
|
1514
|
+
"additionalProperties": true,
|
|
1515
|
+
"description": "Structured details for UI (resolved values)"
|
|
1516
|
+
},
|
|
1517
|
+
"passed": {
|
|
1518
|
+
"type": "boolean",
|
|
1519
|
+
"description": "Whether the constraint passed"
|
|
1520
|
+
},
|
|
1521
|
+
"overridden": {
|
|
1522
|
+
"type": "boolean",
|
|
1523
|
+
"description": "Whether the constraint was overridden"
|
|
1524
|
+
},
|
|
1525
|
+
"overriddenBy": {
|
|
1526
|
+
"type": "string",
|
|
1527
|
+
"description": "User who authorized the override"
|
|
1528
|
+
},
|
|
1529
|
+
"resolved": {
|
|
1530
|
+
"type": "array",
|
|
1531
|
+
"items": {
|
|
1532
|
+
"type": "object",
|
|
1533
|
+
"required": [
|
|
1534
|
+
"expression",
|
|
1535
|
+
"value"
|
|
1536
|
+
],
|
|
1537
|
+
"properties": {
|
|
1538
|
+
"expression": {
|
|
1539
|
+
"type": "string"
|
|
1540
|
+
},
|
|
1541
|
+
"value": true
|
|
1542
|
+
}
|
|
1543
|
+
},
|
|
1544
|
+
"description": "Resolved expression values for debugging"
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
},
|
|
1548
|
+
"OverrideRequest": {
|
|
1549
|
+
"type": "object",
|
|
1550
|
+
"additionalProperties": false,
|
|
1551
|
+
"required": [
|
|
1552
|
+
"constraintCode",
|
|
1553
|
+
"reason",
|
|
1554
|
+
"authorizedBy",
|
|
1555
|
+
"timestamp"
|
|
1556
|
+
],
|
|
1557
|
+
"properties": {
|
|
1558
|
+
"constraintCode": {
|
|
1559
|
+
"type": "string",
|
|
1560
|
+
"description": "Constraint code to override"
|
|
1561
|
+
},
|
|
1562
|
+
"reason": {
|
|
1563
|
+
"type": "string",
|
|
1564
|
+
"description": "Reason for the override"
|
|
1565
|
+
},
|
|
1566
|
+
"authorizedBy": {
|
|
1567
|
+
"type": "string",
|
|
1568
|
+
"description": "User authorizing the override"
|
|
1569
|
+
},
|
|
1570
|
+
"timestamp": {
|
|
1571
|
+
"type": "number",
|
|
1572
|
+
"description": "Timestamp of override request"
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
},
|
|
1576
|
+
"ConcurrencyConflict": {
|
|
1577
|
+
"type": "object",
|
|
1578
|
+
"additionalProperties": false,
|
|
1579
|
+
"required": [
|
|
1580
|
+
"entityType",
|
|
1581
|
+
"entityId",
|
|
1582
|
+
"expectedVersion",
|
|
1583
|
+
"actualVersion",
|
|
1584
|
+
"conflictCode"
|
|
1585
|
+
],
|
|
1586
|
+
"properties": {
|
|
1587
|
+
"entityType": {
|
|
1588
|
+
"type": "string",
|
|
1589
|
+
"description": "Type of entity that conflicted"
|
|
1590
|
+
},
|
|
1591
|
+
"entityId": {
|
|
1592
|
+
"type": "string",
|
|
1593
|
+
"description": "ID of the entity instance"
|
|
1594
|
+
},
|
|
1595
|
+
"expectedVersion": {
|
|
1596
|
+
"type": "number",
|
|
1597
|
+
"description": "Expected version number"
|
|
1598
|
+
},
|
|
1599
|
+
"actualVersion": {
|
|
1600
|
+
"type": "number",
|
|
1601
|
+
"description": "Actual version in storage"
|
|
1602
|
+
},
|
|
1603
|
+
"conflictCode": {
|
|
1604
|
+
"type": "string",
|
|
1605
|
+
"description": "Conflict code for categorization"
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
},
|
|
1609
|
+
"IRValueObject": {
|
|
1610
|
+
"type": "object",
|
|
1611
|
+
"additionalProperties": false,
|
|
1612
|
+
"required": [
|
|
1613
|
+
"name",
|
|
1614
|
+
"properties"
|
|
1615
|
+
],
|
|
1616
|
+
"properties": {
|
|
1617
|
+
"name": {
|
|
1618
|
+
"type": "string"
|
|
1619
|
+
},
|
|
1620
|
+
"properties": {
|
|
1621
|
+
"type": "array",
|
|
1622
|
+
"items": {
|
|
1623
|
+
"$ref": "#/definitions/IRProperty"
|
|
1624
|
+
},
|
|
1625
|
+
"description": "Value object properties (immutable, embedded inline in entity properties)"
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
},
|
|
1629
|
+
"IRTenant": {
|
|
1630
|
+
"type": "object",
|
|
1631
|
+
"additionalProperties": false,
|
|
1632
|
+
"required": [
|
|
1633
|
+
"property",
|
|
1634
|
+
"type",
|
|
1635
|
+
"contextPath"
|
|
1636
|
+
],
|
|
1637
|
+
"properties": {
|
|
1638
|
+
"property": {
|
|
1639
|
+
"type": "string",
|
|
1640
|
+
"description": "Property name injected into tenant-scoped entities"
|
|
1641
|
+
},
|
|
1642
|
+
"type": {
|
|
1643
|
+
"$ref": "#/definitions/IRType"
|
|
1644
|
+
},
|
|
1645
|
+
"contextPath": {
|
|
1646
|
+
"type": "string",
|
|
1647
|
+
"description": "Context path to extract tenant value at runtime"
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
},
|
|
1651
|
+
"IRReactionRule": {
|
|
1652
|
+
"type": "object",
|
|
1653
|
+
"additionalProperties": false,
|
|
1654
|
+
"required": [
|
|
1655
|
+
"event",
|
|
1656
|
+
"targetEntity",
|
|
1657
|
+
"targetCommand"
|
|
1658
|
+
],
|
|
1659
|
+
"properties": {
|
|
1660
|
+
"event": {
|
|
1661
|
+
"type": "string",
|
|
1662
|
+
"description": "Name of the triggering event (must match a declared event)"
|
|
1663
|
+
},
|
|
1664
|
+
"targetEntity": {
|
|
1665
|
+
"type": "string",
|
|
1666
|
+
"description": "Entity type on which to invoke the command"
|
|
1667
|
+
},
|
|
1668
|
+
"targetCommand": {
|
|
1669
|
+
"type": "string",
|
|
1670
|
+
"description": "Command name to execute on the target entity"
|
|
1671
|
+
},
|
|
1672
|
+
"resolve": {
|
|
1673
|
+
"$ref": "#/definitions/IRExpression",
|
|
1674
|
+
"description": "Expression evaluated against event payload to resolve the target instance ID. Absent for fanOut reactions (the collection match replaces single-target resolution)."
|
|
1675
|
+
},
|
|
1676
|
+
"fanOut": {
|
|
1677
|
+
"type": "object",
|
|
1678
|
+
"additionalProperties": false,
|
|
1679
|
+
"required": ["matchField", "matchSource"],
|
|
1680
|
+
"properties": {
|
|
1681
|
+
"matchField": {
|
|
1682
|
+
"type": "string",
|
|
1683
|
+
"description": "Field on the target entity to match against matchSource"
|
|
1684
|
+
},
|
|
1685
|
+
"matchSource": {
|
|
1686
|
+
"$ref": "#/definitions/IRExpression",
|
|
1687
|
+
"description": "Expression evaluated against the event payload; the command runs on every target row where row.<matchField> == matchSource"
|
|
1688
|
+
}
|
|
1689
|
+
},
|
|
1690
|
+
"description": "When present, dispatch targetCommand on every targetEntity row matching matchField == matchSource (a 1:N cascade), instead of one resolved target."
|
|
1691
|
+
},
|
|
1692
|
+
"params": {
|
|
1693
|
+
"type": "array",
|
|
1694
|
+
"items": {
|
|
1695
|
+
"$ref": "#/definitions/IRReactionParam"
|
|
1696
|
+
},
|
|
1697
|
+
"description": "Parameter mappings from event payload to command input"
|
|
1698
|
+
},
|
|
1699
|
+
"module": {
|
|
1700
|
+
"type": "string",
|
|
1701
|
+
"description": "Module that declares this reaction"
|
|
1702
|
+
},
|
|
1703
|
+
"entity": {
|
|
1704
|
+
"type": "string",
|
|
1705
|
+
"description": "Entity that declares this reaction (if entity-scoped)"
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
},
|
|
1709
|
+
"IRReactionParam": {
|
|
1710
|
+
"type": "object",
|
|
1711
|
+
"additionalProperties": false,
|
|
1712
|
+
"required": [
|
|
1713
|
+
"name",
|
|
1714
|
+
"expression"
|
|
1715
|
+
],
|
|
1716
|
+
"properties": {
|
|
1717
|
+
"name": {
|
|
1718
|
+
"type": "string",
|
|
1719
|
+
"description": "Target command parameter name"
|
|
1720
|
+
},
|
|
1721
|
+
"expression": {
|
|
1722
|
+
"$ref": "#/definitions/IRExpression",
|
|
1723
|
+
"description": "Expression evaluated against event payload to produce the parameter value"
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
},
|
|
1727
|
+
"IRSaga": {
|
|
1728
|
+
"type": "object",
|
|
1729
|
+
"additionalProperties": false,
|
|
1730
|
+
"required": ["name", "steps", "onFailure", "emits"],
|
|
1731
|
+
"properties": {
|
|
1732
|
+
"name": {
|
|
1733
|
+
"type": "string",
|
|
1734
|
+
"description": "Saga name (unique within program)"
|
|
1735
|
+
},
|
|
1736
|
+
"module": {
|
|
1737
|
+
"type": "string",
|
|
1738
|
+
"description": "Module name if defined in a module"
|
|
1739
|
+
},
|
|
1740
|
+
"steps": {
|
|
1741
|
+
"type": "array",
|
|
1742
|
+
"items": {
|
|
1743
|
+
"$ref": "#/definitions/IRSagaStep"
|
|
1744
|
+
},
|
|
1745
|
+
"description": "Ordered saga steps"
|
|
1746
|
+
},
|
|
1747
|
+
"onFailure": {
|
|
1748
|
+
"type": "string",
|
|
1749
|
+
"enum": ["compensate", "abort"],
|
|
1750
|
+
"description": "Failure strategy: compensate runs completed steps in reverse, abort halts without compensation"
|
|
1751
|
+
},
|
|
1752
|
+
"emits": {
|
|
1753
|
+
"type": "array",
|
|
1754
|
+
"items": {
|
|
1755
|
+
"type": "string"
|
|
1756
|
+
},
|
|
1757
|
+
"description": "Lifecycle events emitted by the saga orchestrator"
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
},
|
|
1761
|
+
"IRSagaStep": {
|
|
1762
|
+
"type": "object",
|
|
1763
|
+
"additionalProperties": false,
|
|
1764
|
+
"required": ["name", "commandEntity", "command"],
|
|
1765
|
+
"properties": {
|
|
1766
|
+
"name": {
|
|
1767
|
+
"type": "string",
|
|
1768
|
+
"description": "Step identifier (unique within saga)"
|
|
1769
|
+
},
|
|
1770
|
+
"commandEntity": {
|
|
1771
|
+
"type": "string",
|
|
1772
|
+
"description": "Entity on which the forward command is invoked"
|
|
1773
|
+
},
|
|
1774
|
+
"command": {
|
|
1775
|
+
"type": "string",
|
|
1776
|
+
"description": "Forward command name"
|
|
1777
|
+
},
|
|
1778
|
+
"compensateEntity": {
|
|
1779
|
+
"type": "string",
|
|
1780
|
+
"description": "Entity for the compensating command (present only when compensate is declared)"
|
|
1781
|
+
},
|
|
1782
|
+
"compensate": {
|
|
1783
|
+
"type": "string",
|
|
1784
|
+
"description": "Compensating command name (absent = no compensation for this step)"
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
},
|
|
1788
|
+
"IRRolePermission": {
|
|
1789
|
+
"type": "object",
|
|
1790
|
+
"additionalProperties": false,
|
|
1791
|
+
"required": [
|
|
1792
|
+
"action"
|
|
1793
|
+
],
|
|
1794
|
+
"properties": {
|
|
1795
|
+
"action": {
|
|
1796
|
+
"type": "string",
|
|
1797
|
+
"minLength": 1,
|
|
1798
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
|
|
1799
|
+
"description": "Permission action. `all` is the wildcard and `read`/`write`/`delete`/`execute` are the conventional actions with built-in semantics (command-execution RBAC checks `execute`/`all`). Any other identifier is a custom, capability-style permission token, opaque to the engine and matched exactly (e.g. `salesAccess`)."
|
|
1800
|
+
},
|
|
1801
|
+
"target": {
|
|
1802
|
+
"type": "string",
|
|
1803
|
+
"description": "Optional command/entity name to narrow the permission scope"
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
},
|
|
1807
|
+
"IRRole": {
|
|
1808
|
+
"type": "object",
|
|
1809
|
+
"additionalProperties": false,
|
|
1810
|
+
"required": [
|
|
1811
|
+
"name",
|
|
1812
|
+
"allow",
|
|
1813
|
+
"deny",
|
|
1814
|
+
"effectivePermissions"
|
|
1815
|
+
],
|
|
1816
|
+
"properties": {
|
|
1817
|
+
"name": {
|
|
1818
|
+
"type": "string",
|
|
1819
|
+
"description": "Role name (unique within program)"
|
|
1820
|
+
},
|
|
1821
|
+
"module": {
|
|
1822
|
+
"type": "string",
|
|
1823
|
+
"description": "Module name if defined in a module"
|
|
1824
|
+
},
|
|
1825
|
+
"parent": {
|
|
1826
|
+
"type": "string",
|
|
1827
|
+
"description": "Parent role name for inheritance (single parent)"
|
|
1828
|
+
},
|
|
1829
|
+
"allow": {
|
|
1830
|
+
"type": "array",
|
|
1831
|
+
"items": {
|
|
1832
|
+
"$ref": "#/definitions/IRRolePermission"
|
|
1833
|
+
},
|
|
1834
|
+
"description": "Declared allow permissions (sorted)"
|
|
1835
|
+
},
|
|
1836
|
+
"deny": {
|
|
1837
|
+
"type": "array",
|
|
1838
|
+
"items": {
|
|
1839
|
+
"$ref": "#/definitions/IRRolePermission"
|
|
1840
|
+
},
|
|
1841
|
+
"description": "Declared deny permissions (sorted). Deny is absolute and overrides inherited allows."
|
|
1842
|
+
},
|
|
1843
|
+
"effectivePermissions": {
|
|
1844
|
+
"type": "array",
|
|
1845
|
+
"items": {
|
|
1846
|
+
"$ref": "#/definitions/IRRolePermission"
|
|
1847
|
+
},
|
|
1848
|
+
"description": "Compiler-computed flattened permission set after inheritance + deny resolution. Deterministic, sorted."
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
},
|
|
1852
|
+
"IRWebhookSignature": {
|
|
1853
|
+
"type": "object",
|
|
1854
|
+
"required": ["algorithm", "header", "secret"],
|
|
1855
|
+
"additionalProperties": false,
|
|
1856
|
+
"properties": {
|
|
1857
|
+
"algorithm": {
|
|
1858
|
+
"type": "string",
|
|
1859
|
+
"enum": ["hmac-sha256", "hmac-sha512"],
|
|
1860
|
+
"description": "HMAC signature algorithm for payload verification"
|
|
1861
|
+
},
|
|
1862
|
+
"header": {
|
|
1863
|
+
"type": "string",
|
|
1864
|
+
"description": "HTTP header containing the signature value (e.g. \"X-Hub-Signature-256\")"
|
|
1865
|
+
},
|
|
1866
|
+
"secret": {
|
|
1867
|
+
"type": "string",
|
|
1868
|
+
"description": "Context path to extract the shared secret at runtime (e.g. \"context.webhookSecret\")"
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
},
|
|
1872
|
+
"IRWebhookParam": {
|
|
1873
|
+
"type": "object",
|
|
1874
|
+
"required": ["name", "expression"],
|
|
1875
|
+
"additionalProperties": false,
|
|
1876
|
+
"properties": {
|
|
1877
|
+
"name": { "type": "string" },
|
|
1878
|
+
"expression": { "$ref": "#/definitions/IRExpression" }
|
|
1879
|
+
}
|
|
1880
|
+
},
|
|
1881
|
+
"IRWebhook": {
|
|
1882
|
+
"type": "object",
|
|
1883
|
+
"required": ["name", "path", "command"],
|
|
1884
|
+
"additionalProperties": false,
|
|
1885
|
+
"properties": {
|
|
1886
|
+
"name": { "type": "string" },
|
|
1887
|
+
"module": { "type": "string" },
|
|
1888
|
+
"path": {
|
|
1889
|
+
"type": "string",
|
|
1890
|
+
"description": "HTTP path pattern for this webhook route (e.g. \"/webhooks/stripe\")"
|
|
1891
|
+
},
|
|
1892
|
+
"method": {
|
|
1893
|
+
"type": "string",
|
|
1894
|
+
"description": "HTTP method to match. Defaults to POST at runtime."
|
|
1895
|
+
},
|
|
1896
|
+
"command": { "type": "string" },
|
|
1897
|
+
"entity": { "type": "string", "description": "Optional entity context for entity-scoped commands" },
|
|
1898
|
+
"signature": { "$ref": "#/definitions/IRWebhookSignature" },
|
|
1899
|
+
"idempotencyHeader": {
|
|
1900
|
+
"type": "string",
|
|
1901
|
+
"description": "HTTP header name from which to extract the idempotency key for deduplication"
|
|
1902
|
+
},
|
|
1903
|
+
"transform": {
|
|
1904
|
+
"type": "array",
|
|
1905
|
+
"items": { "$ref": "#/definitions/IRWebhookParam" },
|
|
1906
|
+
"description": "Payload transformation expressions: maps command parameter names to payload field expressions"
|
|
1907
|
+
}
|
|
1908
|
+
}
|
|
1909
|
+
},
|
|
1910
|
+
"IRRetry": {
|
|
1911
|
+
"type": "object",
|
|
1912
|
+
"required": ["maxAttempts", "backoff", "delayMs"],
|
|
1913
|
+
"additionalProperties": false,
|
|
1914
|
+
"properties": {
|
|
1915
|
+
"maxAttempts": {
|
|
1916
|
+
"type": "number",
|
|
1917
|
+
"description": "Maximum number of retry attempts"
|
|
1918
|
+
},
|
|
1919
|
+
"backoff": {
|
|
1920
|
+
"type": "string",
|
|
1921
|
+
"enum": ["fixed", "linear", "exponential"],
|
|
1922
|
+
"description": "Backoff strategy for retry delays"
|
|
1923
|
+
},
|
|
1924
|
+
"delayMs": {
|
|
1925
|
+
"type": "number",
|
|
1926
|
+
"description": "Base delay in milliseconds"
|
|
1927
|
+
},
|
|
1928
|
+
"jitter": {
|
|
1929
|
+
"type": "boolean",
|
|
1930
|
+
"description": "Whether to apply jitter to retry delays"
|
|
1931
|
+
},
|
|
1932
|
+
"retryOn": {
|
|
1933
|
+
"type": "array",
|
|
1934
|
+
"items": { "type": "string" },
|
|
1935
|
+
"description": "Error codes that trigger a retry (e.g. CONCURRENCY_CONFLICT, TIMEOUT)"
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
},
|
|
1939
|
+
"IRRateLimit": {
|
|
1940
|
+
"type": "object",
|
|
1941
|
+
"required": ["maxRequests", "windowMs", "scope"],
|
|
1942
|
+
"additionalProperties": false,
|
|
1943
|
+
"properties": {
|
|
1944
|
+
"maxRequests": {
|
|
1945
|
+
"type": "number",
|
|
1946
|
+
"description": "Maximum number of requests per window"
|
|
1947
|
+
},
|
|
1948
|
+
"windowMs": {
|
|
1949
|
+
"type": "number",
|
|
1950
|
+
"description": "Time window in milliseconds"
|
|
1951
|
+
},
|
|
1952
|
+
"scope": {
|
|
1953
|
+
"type": "string",
|
|
1954
|
+
"enum": ["user", "tenant", "global"],
|
|
1955
|
+
"description": "Scope of rate limiting: user, tenant, or global"
|
|
1956
|
+
},
|
|
1957
|
+
"burstAllowance": {
|
|
1958
|
+
"type": "number",
|
|
1959
|
+
"description": "Burst allowance: additive requests above maxRequests"
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
},
|
|
1963
|
+
"IRTrigger": {
|
|
1964
|
+
"type": "object",
|
|
1965
|
+
"required": ["kind"],
|
|
1966
|
+
"additionalProperties": false,
|
|
1967
|
+
"properties": {
|
|
1968
|
+
"kind": {
|
|
1969
|
+
"type": "string",
|
|
1970
|
+
"enum": ["cron", "interval", "every"],
|
|
1971
|
+
"description": "Trigger type: cron (expression-based), interval (milliseconds), or every (duration)"
|
|
1972
|
+
},
|
|
1973
|
+
"cron": {
|
|
1974
|
+
"type": "string",
|
|
1975
|
+
"description": "Cron expression (5 fields: minute hour day month dayOfWeek) when kind='cron'"
|
|
1976
|
+
},
|
|
1977
|
+
"durationMs": {
|
|
1978
|
+
"type": "number",
|
|
1979
|
+
"description": "Duration in milliseconds for interval or every triggers"
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1982
|
+
},
|
|
1983
|
+
"IRScheduleParam": {
|
|
1984
|
+
"type": "object",
|
|
1985
|
+
"required": ["name", "value"],
|
|
1986
|
+
"additionalProperties": false,
|
|
1987
|
+
"properties": {
|
|
1988
|
+
"name": {
|
|
1989
|
+
"type": "string",
|
|
1990
|
+
"description": "Parameter name"
|
|
1991
|
+
},
|
|
1992
|
+
"value": {
|
|
1993
|
+
"$ref": "#/definitions/IRValue",
|
|
1994
|
+
"description": "Parameter value"
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
},
|
|
1998
|
+
"IRSchedule": {
|
|
1999
|
+
"type": "object",
|
|
2000
|
+
"required": ["name", "commandName", "trigger"],
|
|
2001
|
+
"additionalProperties": false,
|
|
2002
|
+
"properties": {
|
|
2003
|
+
"name": {
|
|
2004
|
+
"type": "string",
|
|
2005
|
+
"description": "Schedule name (unique within program)"
|
|
2006
|
+
},
|
|
2007
|
+
"module": {
|
|
2008
|
+
"type": "string",
|
|
2009
|
+
"description": "Module name if defined in a module"
|
|
2010
|
+
},
|
|
2011
|
+
"entityName": {
|
|
2012
|
+
"type": "string",
|
|
2013
|
+
"description": "Entity on which the command is invoked (absent for global commands)"
|
|
2014
|
+
},
|
|
2015
|
+
"commandName": {
|
|
2016
|
+
"type": "string",
|
|
2017
|
+
"description": "Command name to invoke"
|
|
2018
|
+
},
|
|
2019
|
+
"trigger": {
|
|
2020
|
+
"$ref": "#/definitions/IRTrigger",
|
|
2021
|
+
"description": "Trigger configuration (cron, interval, or every)"
|
|
2022
|
+
},
|
|
2023
|
+
"params": {
|
|
2024
|
+
"type": "array",
|
|
2025
|
+
"items": {
|
|
2026
|
+
"$ref": "#/definitions/IRScheduleParam"
|
|
2027
|
+
},
|
|
2028
|
+
"description": "Parameters bound to the scheduled command"
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
}
|