@defai.digital/contracts 13.0.3
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 +214 -0
- package/dist/ability/v1/index.d.ts +5 -0
- package/dist/ability/v1/index.d.ts.map +1 -0
- package/dist/ability/v1/index.js +5 -0
- package/dist/ability/v1/index.js.map +1 -0
- package/dist/ability/v1/schema.d.ts +288 -0
- package/dist/ability/v1/schema.d.ts.map +1 -0
- package/dist/ability/v1/schema.js +138 -0
- package/dist/ability/v1/schema.js.map +1 -0
- package/dist/agent/v1/index.d.ts +8 -0
- package/dist/agent/v1/index.d.ts.map +1 -0
- package/dist/agent/v1/index.js +31 -0
- package/dist/agent/v1/index.js.map +1 -0
- package/dist/agent/v1/schema.d.ts +4055 -0
- package/dist/agent/v1/schema.d.ts.map +1 -0
- package/dist/agent/v1/schema.js +970 -0
- package/dist/agent/v1/schema.js.map +1 -0
- package/dist/agent/v1/storage-port.d.ts +172 -0
- package/dist/agent/v1/storage-port.d.ts.map +1 -0
- package/dist/agent/v1/storage-port.js +10 -0
- package/dist/agent/v1/storage-port.js.map +1 -0
- package/dist/analysis/v1/index.d.ts +7 -0
- package/dist/analysis/v1/index.d.ts.map +1 -0
- package/dist/analysis/v1/index.js +21 -0
- package/dist/analysis/v1/index.js.map +1 -0
- package/dist/analysis/v1/schema.d.ts +348 -0
- package/dist/analysis/v1/schema.d.ts.map +1 -0
- package/dist/analysis/v1/schema.js +252 -0
- package/dist/analysis/v1/schema.js.map +1 -0
- package/dist/cli/v1/index.d.ts +8 -0
- package/dist/cli/v1/index.d.ts.map +1 -0
- package/dist/cli/v1/index.js +46 -0
- package/dist/cli/v1/index.js.map +1 -0
- package/dist/cli/v1/output.d.ts +347 -0
- package/dist/cli/v1/output.d.ts.map +1 -0
- package/dist/cli/v1/output.js +288 -0
- package/dist/cli/v1/output.js.map +1 -0
- package/dist/cli/v1/schema.d.ts +494 -0
- package/dist/cli/v1/schema.d.ts.map +1 -0
- package/dist/cli/v1/schema.js +342 -0
- package/dist/cli/v1/schema.js.map +1 -0
- package/dist/config/v1/config.d.ts +887 -0
- package/dist/config/v1/config.d.ts.map +1 -0
- package/dist/config/v1/config.js +348 -0
- package/dist/config/v1/config.js.map +1 -0
- package/dist/config/v1/errors.d.ts +84 -0
- package/dist/config/v1/errors.d.ts.map +1 -0
- package/dist/config/v1/errors.js +150 -0
- package/dist/config/v1/errors.js.map +1 -0
- package/dist/config/v1/events.d.ts +416 -0
- package/dist/config/v1/events.d.ts.map +1 -0
- package/dist/config/v1/events.js +204 -0
- package/dist/config/v1/events.js.map +1 -0
- package/dist/config/v1/index.d.ts +11 -0
- package/dist/config/v1/index.d.ts.map +1 -0
- package/dist/config/v1/index.js +49 -0
- package/dist/config/v1/index.js.map +1 -0
- package/dist/config/v1/operations.d.ts +293 -0
- package/dist/config/v1/operations.d.ts.map +1 -0
- package/dist/config/v1/operations.js +172 -0
- package/dist/config/v1/operations.js.map +1 -0
- package/dist/config/v1/provider-config.d.ts +124 -0
- package/dist/config/v1/provider-config.d.ts.map +1 -0
- package/dist/config/v1/provider-config.js +123 -0
- package/dist/config/v1/provider-config.js.map +1 -0
- package/dist/constants.d.ts +292 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +370 -0
- package/dist/constants.js.map +1 -0
- package/dist/context/v1/index.d.ts +5 -0
- package/dist/context/v1/index.d.ts.map +1 -0
- package/dist/context/v1/index.js +13 -0
- package/dist/context/v1/index.js.map +1 -0
- package/dist/context/v1/schema.d.ts +289 -0
- package/dist/context/v1/schema.d.ts.map +1 -0
- package/dist/context/v1/schema.js +145 -0
- package/dist/context/v1/schema.js.map +1 -0
- package/dist/cross-cutting/v1/dead-letter.d.ts +305 -0
- package/dist/cross-cutting/v1/dead-letter.d.ts.map +1 -0
- package/dist/cross-cutting/v1/dead-letter.js +172 -0
- package/dist/cross-cutting/v1/dead-letter.js.map +1 -0
- package/dist/cross-cutting/v1/idempotency.d.ts +222 -0
- package/dist/cross-cutting/v1/idempotency.d.ts.map +1 -0
- package/dist/cross-cutting/v1/idempotency.js +170 -0
- package/dist/cross-cutting/v1/idempotency.js.map +1 -0
- package/dist/cross-cutting/v1/index.d.ts +14 -0
- package/dist/cross-cutting/v1/index.d.ts.map +1 -0
- package/dist/cross-cutting/v1/index.js +18 -0
- package/dist/cross-cutting/v1/index.js.map +1 -0
- package/dist/cross-cutting/v1/retention.d.ts +347 -0
- package/dist/cross-cutting/v1/retention.d.ts.map +1 -0
- package/dist/cross-cutting/v1/retention.js +178 -0
- package/dist/cross-cutting/v1/retention.js.map +1 -0
- package/dist/cross-cutting/v1/saga.d.ts +358 -0
- package/dist/cross-cutting/v1/saga.d.ts.map +1 -0
- package/dist/cross-cutting/v1/saga.js +219 -0
- package/dist/cross-cutting/v1/saga.js.map +1 -0
- package/dist/design/v1/index.d.ts +5 -0
- package/dist/design/v1/index.d.ts.map +1 -0
- package/dist/design/v1/index.js +5 -0
- package/dist/design/v1/index.js.map +1 -0
- package/dist/design/v1/schema.d.ts +748 -0
- package/dist/design/v1/schema.d.ts.map +1 -0
- package/dist/design/v1/schema.js +316 -0
- package/dist/design/v1/schema.js.map +1 -0
- package/dist/discussion/v1/index.d.ts +10 -0
- package/dist/discussion/v1/index.d.ts.map +1 -0
- package/dist/discussion/v1/index.js +21 -0
- package/dist/discussion/v1/index.js.map +1 -0
- package/dist/discussion/v1/schema.d.ts +1186 -0
- package/dist/discussion/v1/schema.d.ts.map +1 -0
- package/dist/discussion/v1/schema.js +560 -0
- package/dist/discussion/v1/schema.js.map +1 -0
- package/dist/file-system/v1/index.d.ts +7 -0
- package/dist/file-system/v1/index.d.ts.map +1 -0
- package/dist/file-system/v1/index.js +7 -0
- package/dist/file-system/v1/index.js.map +1 -0
- package/dist/file-system/v1/schema.d.ts +644 -0
- package/dist/file-system/v1/schema.d.ts.map +1 -0
- package/dist/file-system/v1/schema.js +278 -0
- package/dist/file-system/v1/schema.js.map +1 -0
- package/dist/guard/v1/index.d.ts +9 -0
- package/dist/guard/v1/index.d.ts.map +1 -0
- package/dist/guard/v1/index.js +10 -0
- package/dist/guard/v1/index.js.map +1 -0
- package/dist/guard/v1/schema.d.ts +308 -0
- package/dist/guard/v1/schema.d.ts.map +1 -0
- package/dist/guard/v1/schema.js +267 -0
- package/dist/guard/v1/schema.js.map +1 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +117 -0
- package/dist/index.js.map +1 -0
- package/dist/iterate/v1/index.d.ts +5 -0
- package/dist/iterate/v1/index.d.ts.map +1 -0
- package/dist/iterate/v1/index.js +13 -0
- package/dist/iterate/v1/index.js.map +1 -0
- package/dist/iterate/v1/schema.d.ts +693 -0
- package/dist/iterate/v1/schema.d.ts.map +1 -0
- package/dist/iterate/v1/schema.js +244 -0
- package/dist/iterate/v1/schema.js.map +1 -0
- package/dist/mcp/v1/index.d.ts +8 -0
- package/dist/mcp/v1/index.d.ts.map +1 -0
- package/dist/mcp/v1/index.js +20 -0
- package/dist/mcp/v1/index.js.map +1 -0
- package/dist/mcp/v1/prompts/index.d.ts +5 -0
- package/dist/mcp/v1/prompts/index.d.ts.map +1 -0
- package/dist/mcp/v1/prompts/index.js +5 -0
- package/dist/mcp/v1/prompts/index.js.map +1 -0
- package/dist/mcp/v1/prompts/schema.d.ts +266 -0
- package/dist/mcp/v1/prompts/schema.d.ts.map +1 -0
- package/dist/mcp/v1/prompts/schema.js +138 -0
- package/dist/mcp/v1/prompts/schema.js.map +1 -0
- package/dist/mcp/v1/rate-limit.schema.d.ts +175 -0
- package/dist/mcp/v1/rate-limit.schema.d.ts.map +1 -0
- package/dist/mcp/v1/rate-limit.schema.js +164 -0
- package/dist/mcp/v1/rate-limit.schema.js.map +1 -0
- package/dist/mcp/v1/resources/index.d.ts +5 -0
- package/dist/mcp/v1/resources/index.d.ts.map +1 -0
- package/dist/mcp/v1/resources/index.js +5 -0
- package/dist/mcp/v1/resources/index.js.map +1 -0
- package/dist/mcp/v1/resources/schema.d.ts +169 -0
- package/dist/mcp/v1/resources/schema.d.ts.map +1 -0
- package/dist/mcp/v1/resources/schema.js +118 -0
- package/dist/mcp/v1/resources/schema.js.map +1 -0
- package/dist/mcp/v1/runtime/cache.d.ts +204 -0
- package/dist/mcp/v1/runtime/cache.d.ts.map +1 -0
- package/dist/mcp/v1/runtime/cache.js +92 -0
- package/dist/mcp/v1/runtime/cache.js.map +1 -0
- package/dist/mcp/v1/runtime/index.d.ts +5 -0
- package/dist/mcp/v1/runtime/index.d.ts.map +1 -0
- package/dist/mcp/v1/runtime/index.js +9 -0
- package/dist/mcp/v1/runtime/index.js.map +1 -0
- package/dist/mcp/v1/runtime/limits.d.ts +113 -0
- package/dist/mcp/v1/runtime/limits.d.ts.map +1 -0
- package/dist/mcp/v1/runtime/limits.js +95 -0
- package/dist/mcp/v1/runtime/limits.js.map +1 -0
- package/dist/mcp/v1/runtime/response.d.ts +467 -0
- package/dist/mcp/v1/runtime/response.d.ts.map +1 -0
- package/dist/mcp/v1/runtime/response.js +130 -0
- package/dist/mcp/v1/runtime/response.js.map +1 -0
- package/dist/mcp/v1/runtime/timeout.d.ts +116 -0
- package/dist/mcp/v1/runtime/timeout.d.ts.map +1 -0
- package/dist/mcp/v1/runtime/timeout.js +116 -0
- package/dist/mcp/v1/runtime/timeout.js.map +1 -0
- package/dist/mcp/v1/schema.d.ts +171 -0
- package/dist/mcp/v1/schema.d.ts.map +1 -0
- package/dist/mcp/v1/schema.js +97 -0
- package/dist/mcp/v1/schema.js.map +1 -0
- package/dist/mcp/v1/tools/agent.d.ts +485 -0
- package/dist/mcp/v1/tools/agent.d.ts.map +1 -0
- package/dist/mcp/v1/tools/agent.js +264 -0
- package/dist/mcp/v1/tools/agent.js.map +1 -0
- package/dist/mcp/v1/tools/guard.d.ts +243 -0
- package/dist/mcp/v1/tools/guard.d.ts.map +1 -0
- package/dist/mcp/v1/tools/guard.js +136 -0
- package/dist/mcp/v1/tools/guard.js.map +1 -0
- package/dist/mcp/v1/tools/index.d.ts +15 -0
- package/dist/mcp/v1/tools/index.d.ts.map +1 -0
- package/dist/mcp/v1/tools/index.js +22 -0
- package/dist/mcp/v1/tools/index.js.map +1 -0
- package/dist/mcp/v1/tools/memory.d.ts +569 -0
- package/dist/mcp/v1/tools/memory.d.ts.map +1 -0
- package/dist/mcp/v1/tools/memory.js +319 -0
- package/dist/mcp/v1/tools/memory.js.map +1 -0
- package/dist/mcp/v1/tools/session.d.ts +545 -0
- package/dist/mcp/v1/tools/session.d.ts.map +1 -0
- package/dist/mcp/v1/tools/session.js +309 -0
- package/dist/mcp/v1/tools/session.js.map +1 -0
- package/dist/mcp/v1/tools/tool-list-schemas.d.ts +354 -0
- package/dist/mcp/v1/tools/tool-list-schemas.d.ts.map +1 -0
- package/dist/mcp/v1/tools/tool-list-schemas.js +140 -0
- package/dist/mcp/v1/tools/tool-list-schemas.js.map +1 -0
- package/dist/mcp/v1/tools/trace.d.ts +282 -0
- package/dist/mcp/v1/tools/trace.d.ts.map +1 -0
- package/dist/mcp/v1/tools/trace.js +94 -0
- package/dist/mcp/v1/tools/trace.js.map +1 -0
- package/dist/mcp/v1/tools/workflow.d.ts +146 -0
- package/dist/mcp/v1/tools/workflow.d.ts.map +1 -0
- package/dist/mcp/v1/tools/workflow.js +68 -0
- package/dist/mcp/v1/tools/workflow.js.map +1 -0
- package/dist/mcp/v1/trace/index.d.ts +5 -0
- package/dist/mcp/v1/trace/index.d.ts.map +1 -0
- package/dist/mcp/v1/trace/index.js +5 -0
- package/dist/mcp/v1/trace/index.js.map +1 -0
- package/dist/mcp/v1/trace/tool-trace.d.ts +107 -0
- package/dist/mcp/v1/trace/tool-trace.d.ts.map +1 -0
- package/dist/mcp/v1/trace/tool-trace.js +91 -0
- package/dist/mcp/v1/trace/tool-trace.js.map +1 -0
- package/dist/memory/v1/index.d.ts +2 -0
- package/dist/memory/v1/index.d.ts.map +1 -0
- package/dist/memory/v1/index.js +2 -0
- package/dist/memory/v1/index.js.map +1 -0
- package/dist/memory/v1/schema.d.ts +188 -0
- package/dist/memory/v1/schema.d.ts.map +1 -0
- package/dist/memory/v1/schema.js +108 -0
- package/dist/memory/v1/schema.js.map +1 -0
- package/dist/ml-lifecycle/v1/index.d.ts +12 -0
- package/dist/ml-lifecycle/v1/index.d.ts.map +1 -0
- package/dist/ml-lifecycle/v1/index.js +12 -0
- package/dist/ml-lifecycle/v1/index.js.map +1 -0
- package/dist/ml-lifecycle/v1/schema.d.ts +1207 -0
- package/dist/ml-lifecycle/v1/schema.d.ts.map +1 -0
- package/dist/ml-lifecycle/v1/schema.js +481 -0
- package/dist/ml-lifecycle/v1/schema.js.map +1 -0
- package/dist/orchestration/v1/index.d.ts +5 -0
- package/dist/orchestration/v1/index.d.ts.map +1 -0
- package/dist/orchestration/v1/index.js +23 -0
- package/dist/orchestration/v1/index.js.map +1 -0
- package/dist/orchestration/v1/schema.d.ts +1384 -0
- package/dist/orchestration/v1/schema.d.ts.map +1 -0
- package/dist/orchestration/v1/schema.js +394 -0
- package/dist/orchestration/v1/schema.js.map +1 -0
- package/dist/provider/v1/circuit-breaker.d.ts +151 -0
- package/dist/provider/v1/circuit-breaker.d.ts.map +1 -0
- package/dist/provider/v1/circuit-breaker.js +119 -0
- package/dist/provider/v1/circuit-breaker.js.map +1 -0
- package/dist/provider/v1/health.d.ts +246 -0
- package/dist/provider/v1/health.d.ts.map +1 -0
- package/dist/provider/v1/health.js +190 -0
- package/dist/provider/v1/health.js.map +1 -0
- package/dist/provider/v1/index.d.ts +13 -0
- package/dist/provider/v1/index.d.ts.map +1 -0
- package/dist/provider/v1/index.js +17 -0
- package/dist/provider/v1/index.js.map +1 -0
- package/dist/provider/v1/port.d.ts +237 -0
- package/dist/provider/v1/port.d.ts.map +1 -0
- package/dist/provider/v1/port.js +113 -0
- package/dist/provider/v1/port.js.map +1 -0
- package/dist/provider/v1/rate-limit.d.ts +214 -0
- package/dist/provider/v1/rate-limit.d.ts.map +1 -0
- package/dist/provider/v1/rate-limit.js +165 -0
- package/dist/provider/v1/rate-limit.js.map +1 -0
- package/dist/resilience/v1/circuit-breaker.d.ts +135 -0
- package/dist/resilience/v1/circuit-breaker.d.ts.map +1 -0
- package/dist/resilience/v1/circuit-breaker.js +105 -0
- package/dist/resilience/v1/circuit-breaker.js.map +1 -0
- package/dist/resilience/v1/index.d.ts +17 -0
- package/dist/resilience/v1/index.d.ts.map +1 -0
- package/dist/resilience/v1/index.js +17 -0
- package/dist/resilience/v1/index.js.map +1 -0
- package/dist/resilience/v1/loop-guard.d.ts +123 -0
- package/dist/resilience/v1/loop-guard.d.ts.map +1 -0
- package/dist/resilience/v1/loop-guard.js +96 -0
- package/dist/resilience/v1/loop-guard.js.map +1 -0
- package/dist/resilience/v1/metrics.d.ts +323 -0
- package/dist/resilience/v1/metrics.d.ts.map +1 -0
- package/dist/resilience/v1/metrics.js +183 -0
- package/dist/resilience/v1/metrics.js.map +1 -0
- package/dist/resilience/v1/rate-limiter.d.ts +122 -0
- package/dist/resilience/v1/rate-limiter.d.ts.map +1 -0
- package/dist/resilience/v1/rate-limiter.js +119 -0
- package/dist/resilience/v1/rate-limiter.js.map +1 -0
- package/dist/resilience/v1/resource-limits.d.ts +146 -0
- package/dist/resilience/v1/resource-limits.d.ts.map +1 -0
- package/dist/resilience/v1/resource-limits.js +130 -0
- package/dist/resilience/v1/resource-limits.js.map +1 -0
- package/dist/review/v1/index.d.ts +7 -0
- package/dist/review/v1/index.d.ts.map +1 -0
- package/dist/review/v1/index.js +23 -0
- package/dist/review/v1/index.js.map +1 -0
- package/dist/review/v1/schema.d.ts +1284 -0
- package/dist/review/v1/schema.d.ts.map +1 -0
- package/dist/review/v1/schema.js +423 -0
- package/dist/review/v1/schema.js.map +1 -0
- package/dist/routing/v1/index.d.ts +2 -0
- package/dist/routing/v1/index.d.ts.map +1 -0
- package/dist/routing/v1/index.js +2 -0
- package/dist/routing/v1/index.js.map +1 -0
- package/dist/routing/v1/schema.d.ts +315 -0
- package/dist/routing/v1/schema.d.ts.map +1 -0
- package/dist/routing/v1/schema.js +103 -0
- package/dist/routing/v1/schema.js.map +1 -0
- package/dist/scaffold/v1/index.d.ts +7 -0
- package/dist/scaffold/v1/index.d.ts.map +1 -0
- package/dist/scaffold/v1/index.js +7 -0
- package/dist/scaffold/v1/index.js.map +1 -0
- package/dist/scaffold/v1/schema.d.ts +351 -0
- package/dist/scaffold/v1/schema.d.ts.map +1 -0
- package/dist/scaffold/v1/schema.js +238 -0
- package/dist/scaffold/v1/schema.js.map +1 -0
- package/dist/session/v1/index.d.ts +7 -0
- package/dist/session/v1/index.d.ts.map +1 -0
- package/dist/session/v1/index.js +23 -0
- package/dist/session/v1/index.js.map +1 -0
- package/dist/session/v1/schema.d.ts +1156 -0
- package/dist/session/v1/schema.d.ts.map +1 -0
- package/dist/session/v1/schema.js +315 -0
- package/dist/session/v1/schema.js.map +1 -0
- package/dist/storage/v1/index.d.ts +9 -0
- package/dist/storage/v1/index.d.ts.map +1 -0
- package/dist/storage/v1/index.js +21 -0
- package/dist/storage/v1/index.js.map +1 -0
- package/dist/storage/v1/schema.d.ts +411 -0
- package/dist/storage/v1/schema.d.ts.map +1 -0
- package/dist/storage/v1/schema.js +167 -0
- package/dist/storage/v1/schema.js.map +1 -0
- package/dist/telemetry/v1/index.d.ts +5 -0
- package/dist/telemetry/v1/index.d.ts.map +1 -0
- package/dist/telemetry/v1/index.js +5 -0
- package/dist/telemetry/v1/index.js.map +1 -0
- package/dist/telemetry/v1/schema.d.ts +747 -0
- package/dist/telemetry/v1/schema.d.ts.map +1 -0
- package/dist/telemetry/v1/schema.js +300 -0
- package/dist/telemetry/v1/schema.js.map +1 -0
- package/dist/token-budget/v1/index.d.ts +7 -0
- package/dist/token-budget/v1/index.d.ts.map +1 -0
- package/dist/token-budget/v1/index.js +25 -0
- package/dist/token-budget/v1/index.js.map +1 -0
- package/dist/token-budget/v1/schema.d.ts +588 -0
- package/dist/token-budget/v1/schema.d.ts.map +1 -0
- package/dist/token-budget/v1/schema.js +239 -0
- package/dist/token-budget/v1/schema.js.map +1 -0
- package/dist/trace/v1/index.d.ts +2 -0
- package/dist/trace/v1/index.d.ts.map +1 -0
- package/dist/trace/v1/index.js +4 -0
- package/dist/trace/v1/index.js.map +1 -0
- package/dist/trace/v1/schema.d.ts +531 -0
- package/dist/trace/v1/schema.d.ts.map +1 -0
- package/dist/trace/v1/schema.js +243 -0
- package/dist/trace/v1/schema.js.map +1 -0
- package/dist/workflow/v1/index.d.ts +3 -0
- package/dist/workflow/v1/index.d.ts.map +1 -0
- package/dist/workflow/v1/index.js +8 -0
- package/dist/workflow/v1/index.js.map +1 -0
- package/dist/workflow/v1/schema.d.ts +267 -0
- package/dist/workflow/v1/schema.d.ts.map +1 -0
- package/dist/workflow/v1/schema.js +95 -0
- package/dist/workflow/v1/schema.js.map +1 -0
- package/dist/workflow/v1/step-guard.d.ts +571 -0
- package/dist/workflow/v1/step-guard.d.ts.map +1 -0
- package/dist/workflow/v1/step-guard.js +305 -0
- package/dist/workflow/v1/step-guard.js.map +1 -0
- package/dist/workflow-templates/v1/index.d.ts +8 -0
- package/dist/workflow-templates/v1/index.d.ts.map +1 -0
- package/dist/workflow-templates/v1/index.js +8 -0
- package/dist/workflow-templates/v1/index.js.map +1 -0
- package/dist/workflow-templates/v1/schema.d.ts +714 -0
- package/dist/workflow-templates/v1/schema.d.ts.map +1 -0
- package/dist/workflow-templates/v1/schema.js +168 -0
- package/dist/workflow-templates/v1/schema.js.map +1 -0
- package/package.json +142 -0
- package/src/guard/v1/policy.schema.json +56 -0
- package/src/mcp/v1/tools.schema.json +108 -0
- package/src/memory/v1/event.schema.json +136 -0
- package/src/routing/v1/decision.schema.json +155 -0
- package/src/trace/v1/event.schema.json +197 -0
- package/src/workflow/v1/workflow.schema.json +142 -0
|
@@ -0,0 +1,748 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Design Domain Contracts v1
|
|
3
|
+
*
|
|
4
|
+
* Schemas for architecture and component design tools.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
/**
|
|
8
|
+
* Design artifact type
|
|
9
|
+
*/
|
|
10
|
+
export declare const DesignTypeSchema: z.ZodEnum<["api", "component", "schema", "architecture", "flow", "data-model", "interface", "other"]>;
|
|
11
|
+
export type DesignType = z.infer<typeof DesignTypeSchema>;
|
|
12
|
+
/**
|
|
13
|
+
* Design format
|
|
14
|
+
*/
|
|
15
|
+
export declare const DesignFormatSchema: z.ZodEnum<["openapi", "asyncapi", "graphql", "json-schema", "typescript", "mermaid", "plantuml", "markdown", "other"]>;
|
|
16
|
+
export type DesignFormat = z.infer<typeof DesignFormatSchema>;
|
|
17
|
+
/**
|
|
18
|
+
* Design status
|
|
19
|
+
*/
|
|
20
|
+
export declare const DesignStatusSchema: z.ZodEnum<["draft", "review", "approved", "implemented", "deprecated"]>;
|
|
21
|
+
export type DesignStatus = z.infer<typeof DesignStatusSchema>;
|
|
22
|
+
/**
|
|
23
|
+
* Design artifact
|
|
24
|
+
*/
|
|
25
|
+
export declare const DesignArtifactSchema: z.ZodObject<{
|
|
26
|
+
designId: z.ZodString;
|
|
27
|
+
type: z.ZodEnum<["api", "component", "schema", "architecture", "flow", "data-model", "interface", "other"]>;
|
|
28
|
+
format: z.ZodEnum<["openapi", "asyncapi", "graphql", "json-schema", "typescript", "mermaid", "plantuml", "markdown", "other"]>;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31
|
+
version: z.ZodDefault<z.ZodString>;
|
|
32
|
+
status: z.ZodDefault<z.ZodEnum<["draft", "review", "approved", "implemented", "deprecated"]>>;
|
|
33
|
+
content: z.ZodString;
|
|
34
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
35
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
36
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
37
|
+
createdAt: z.ZodString;
|
|
38
|
+
updatedAt: z.ZodString;
|
|
39
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
type: "api" | "component" | "schema" | "architecture" | "flow" | "data-model" | "interface" | "other";
|
|
42
|
+
status: "draft" | "review" | "approved" | "implemented" | "deprecated";
|
|
43
|
+
name: string;
|
|
44
|
+
version: string;
|
|
45
|
+
createdAt: string;
|
|
46
|
+
updatedAt: string;
|
|
47
|
+
designId: string;
|
|
48
|
+
format: "other" | "openapi" | "asyncapi" | "graphql" | "json-schema" | "typescript" | "mermaid" | "plantuml" | "markdown";
|
|
49
|
+
content: string;
|
|
50
|
+
description?: string | undefined;
|
|
51
|
+
metadata?: Record<string, unknown> | undefined;
|
|
52
|
+
tags?: string[] | undefined;
|
|
53
|
+
filePath?: string | undefined;
|
|
54
|
+
dependencies?: string[] | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
type: "api" | "component" | "schema" | "architecture" | "flow" | "data-model" | "interface" | "other";
|
|
57
|
+
name: string;
|
|
58
|
+
createdAt: string;
|
|
59
|
+
updatedAt: string;
|
|
60
|
+
designId: string;
|
|
61
|
+
format: "other" | "openapi" | "asyncapi" | "graphql" | "json-schema" | "typescript" | "mermaid" | "plantuml" | "markdown";
|
|
62
|
+
content: string;
|
|
63
|
+
status?: "draft" | "review" | "approved" | "implemented" | "deprecated" | undefined;
|
|
64
|
+
version?: string | undefined;
|
|
65
|
+
description?: string | undefined;
|
|
66
|
+
metadata?: Record<string, unknown> | undefined;
|
|
67
|
+
tags?: string[] | undefined;
|
|
68
|
+
filePath?: string | undefined;
|
|
69
|
+
dependencies?: string[] | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
export type DesignArtifact = z.infer<typeof DesignArtifactSchema>;
|
|
72
|
+
/**
|
|
73
|
+
* HTTP method
|
|
74
|
+
*/
|
|
75
|
+
export declare const HttpMethodSchema: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
76
|
+
export type HttpMethod = z.infer<typeof HttpMethodSchema>;
|
|
77
|
+
/**
|
|
78
|
+
* API endpoint design
|
|
79
|
+
*/
|
|
80
|
+
export declare const ApiEndpointSchema: z.ZodObject<{
|
|
81
|
+
path: z.ZodString;
|
|
82
|
+
method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
83
|
+
summary: z.ZodString;
|
|
84
|
+
description: z.ZodOptional<z.ZodString>;
|
|
85
|
+
requestBody: z.ZodOptional<z.ZodString>;
|
|
86
|
+
responseBody: z.ZodOptional<z.ZodString>;
|
|
87
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
in: z.ZodEnum<["path", "query", "header", "cookie"]>;
|
|
90
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
91
|
+
type: z.ZodString;
|
|
92
|
+
description: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
type: string;
|
|
95
|
+
name: string;
|
|
96
|
+
in: "path" | "query" | "header" | "cookie";
|
|
97
|
+
required: boolean;
|
|
98
|
+
description?: string | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
type: string;
|
|
101
|
+
name: string;
|
|
102
|
+
in: "path" | "query" | "header" | "cookie";
|
|
103
|
+
description?: string | undefined;
|
|
104
|
+
required?: boolean | undefined;
|
|
105
|
+
}>, "many">>;
|
|
106
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
path: string;
|
|
109
|
+
summary: string;
|
|
110
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
|
|
111
|
+
description?: string | undefined;
|
|
112
|
+
tags?: string[] | undefined;
|
|
113
|
+
requestBody?: string | undefined;
|
|
114
|
+
responseBody?: string | undefined;
|
|
115
|
+
parameters?: {
|
|
116
|
+
type: string;
|
|
117
|
+
name: string;
|
|
118
|
+
in: "path" | "query" | "header" | "cookie";
|
|
119
|
+
required: boolean;
|
|
120
|
+
description?: string | undefined;
|
|
121
|
+
}[] | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
path: string;
|
|
124
|
+
summary: string;
|
|
125
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
|
|
126
|
+
description?: string | undefined;
|
|
127
|
+
tags?: string[] | undefined;
|
|
128
|
+
requestBody?: string | undefined;
|
|
129
|
+
responseBody?: string | undefined;
|
|
130
|
+
parameters?: {
|
|
131
|
+
type: string;
|
|
132
|
+
name: string;
|
|
133
|
+
in: "path" | "query" | "header" | "cookie";
|
|
134
|
+
description?: string | undefined;
|
|
135
|
+
required?: boolean | undefined;
|
|
136
|
+
}[] | undefined;
|
|
137
|
+
}>;
|
|
138
|
+
export type ApiEndpoint = z.infer<typeof ApiEndpointSchema>;
|
|
139
|
+
/**
|
|
140
|
+
* API design request
|
|
141
|
+
*/
|
|
142
|
+
export declare const ApiDesignRequestSchema: z.ZodObject<{
|
|
143
|
+
name: z.ZodString;
|
|
144
|
+
description: z.ZodOptional<z.ZodString>;
|
|
145
|
+
endpoints: z.ZodArray<z.ZodObject<{
|
|
146
|
+
path: z.ZodString;
|
|
147
|
+
method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]>;
|
|
148
|
+
summary: z.ZodString;
|
|
149
|
+
description: z.ZodOptional<z.ZodString>;
|
|
150
|
+
requestBody: z.ZodOptional<z.ZodString>;
|
|
151
|
+
responseBody: z.ZodOptional<z.ZodString>;
|
|
152
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
153
|
+
name: z.ZodString;
|
|
154
|
+
in: z.ZodEnum<["path", "query", "header", "cookie"]>;
|
|
155
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
156
|
+
type: z.ZodString;
|
|
157
|
+
description: z.ZodOptional<z.ZodString>;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
type: string;
|
|
160
|
+
name: string;
|
|
161
|
+
in: "path" | "query" | "header" | "cookie";
|
|
162
|
+
required: boolean;
|
|
163
|
+
description?: string | undefined;
|
|
164
|
+
}, {
|
|
165
|
+
type: string;
|
|
166
|
+
name: string;
|
|
167
|
+
in: "path" | "query" | "header" | "cookie";
|
|
168
|
+
description?: string | undefined;
|
|
169
|
+
required?: boolean | undefined;
|
|
170
|
+
}>, "many">>;
|
|
171
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
172
|
+
}, "strip", z.ZodTypeAny, {
|
|
173
|
+
path: string;
|
|
174
|
+
summary: string;
|
|
175
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
|
|
176
|
+
description?: string | undefined;
|
|
177
|
+
tags?: string[] | undefined;
|
|
178
|
+
requestBody?: string | undefined;
|
|
179
|
+
responseBody?: string | undefined;
|
|
180
|
+
parameters?: {
|
|
181
|
+
type: string;
|
|
182
|
+
name: string;
|
|
183
|
+
in: "path" | "query" | "header" | "cookie";
|
|
184
|
+
required: boolean;
|
|
185
|
+
description?: string | undefined;
|
|
186
|
+
}[] | undefined;
|
|
187
|
+
}, {
|
|
188
|
+
path: string;
|
|
189
|
+
summary: string;
|
|
190
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
|
|
191
|
+
description?: string | undefined;
|
|
192
|
+
tags?: string[] | undefined;
|
|
193
|
+
requestBody?: string | undefined;
|
|
194
|
+
responseBody?: string | undefined;
|
|
195
|
+
parameters?: {
|
|
196
|
+
type: string;
|
|
197
|
+
name: string;
|
|
198
|
+
in: "path" | "query" | "header" | "cookie";
|
|
199
|
+
description?: string | undefined;
|
|
200
|
+
required?: boolean | undefined;
|
|
201
|
+
}[] | undefined;
|
|
202
|
+
}>, "many">;
|
|
203
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
204
|
+
version: z.ZodDefault<z.ZodString>;
|
|
205
|
+
format: z.ZodDefault<z.ZodEnum<["openapi", "asyncapi"]>>;
|
|
206
|
+
outputPath: z.ZodOptional<z.ZodString>;
|
|
207
|
+
}, "strip", z.ZodTypeAny, {
|
|
208
|
+
name: string;
|
|
209
|
+
version: string;
|
|
210
|
+
format: "openapi" | "asyncapi";
|
|
211
|
+
endpoints: {
|
|
212
|
+
path: string;
|
|
213
|
+
summary: string;
|
|
214
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
|
|
215
|
+
description?: string | undefined;
|
|
216
|
+
tags?: string[] | undefined;
|
|
217
|
+
requestBody?: string | undefined;
|
|
218
|
+
responseBody?: string | undefined;
|
|
219
|
+
parameters?: {
|
|
220
|
+
type: string;
|
|
221
|
+
name: string;
|
|
222
|
+
in: "path" | "query" | "header" | "cookie";
|
|
223
|
+
required: boolean;
|
|
224
|
+
description?: string | undefined;
|
|
225
|
+
}[] | undefined;
|
|
226
|
+
}[];
|
|
227
|
+
description?: string | undefined;
|
|
228
|
+
baseUrl?: string | undefined;
|
|
229
|
+
outputPath?: string | undefined;
|
|
230
|
+
}, {
|
|
231
|
+
name: string;
|
|
232
|
+
endpoints: {
|
|
233
|
+
path: string;
|
|
234
|
+
summary: string;
|
|
235
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
|
|
236
|
+
description?: string | undefined;
|
|
237
|
+
tags?: string[] | undefined;
|
|
238
|
+
requestBody?: string | undefined;
|
|
239
|
+
responseBody?: string | undefined;
|
|
240
|
+
parameters?: {
|
|
241
|
+
type: string;
|
|
242
|
+
name: string;
|
|
243
|
+
in: "path" | "query" | "header" | "cookie";
|
|
244
|
+
description?: string | undefined;
|
|
245
|
+
required?: boolean | undefined;
|
|
246
|
+
}[] | undefined;
|
|
247
|
+
}[];
|
|
248
|
+
version?: string | undefined;
|
|
249
|
+
description?: string | undefined;
|
|
250
|
+
format?: "openapi" | "asyncapi" | undefined;
|
|
251
|
+
baseUrl?: string | undefined;
|
|
252
|
+
outputPath?: string | undefined;
|
|
253
|
+
}>;
|
|
254
|
+
export type ApiDesignRequest = z.infer<typeof ApiDesignRequestSchema>;
|
|
255
|
+
/**
|
|
256
|
+
* API design result
|
|
257
|
+
*/
|
|
258
|
+
export declare const ApiDesignResultSchema: z.ZodObject<{
|
|
259
|
+
designId: z.ZodString;
|
|
260
|
+
name: z.ZodString;
|
|
261
|
+
format: z.ZodString;
|
|
262
|
+
content: z.ZodString;
|
|
263
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
264
|
+
createdAt: z.ZodString;
|
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
|
266
|
+
name: string;
|
|
267
|
+
createdAt: string;
|
|
268
|
+
designId: string;
|
|
269
|
+
format: string;
|
|
270
|
+
content: string;
|
|
271
|
+
filePath?: string | undefined;
|
|
272
|
+
}, {
|
|
273
|
+
name: string;
|
|
274
|
+
createdAt: string;
|
|
275
|
+
designId: string;
|
|
276
|
+
format: string;
|
|
277
|
+
content: string;
|
|
278
|
+
filePath?: string | undefined;
|
|
279
|
+
}>;
|
|
280
|
+
export type ApiDesignResult = z.infer<typeof ApiDesignResultSchema>;
|
|
281
|
+
/**
|
|
282
|
+
* Component type
|
|
283
|
+
*/
|
|
284
|
+
export declare const ComponentTypeSchema: z.ZodEnum<["function", "class", "module", "service", "controller", "repository", "factory", "adapter", "hook", "component", "other"]>;
|
|
285
|
+
export type ComponentType = z.infer<typeof ComponentTypeSchema>;
|
|
286
|
+
/**
|
|
287
|
+
* Component design request
|
|
288
|
+
*/
|
|
289
|
+
export declare const ComponentDesignRequestSchema: z.ZodObject<{
|
|
290
|
+
name: z.ZodString;
|
|
291
|
+
type: z.ZodEnum<["function", "class", "module", "service", "controller", "repository", "factory", "adapter", "hook", "component", "other"]>;
|
|
292
|
+
description: z.ZodString;
|
|
293
|
+
inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
294
|
+
name: z.ZodString;
|
|
295
|
+
type: z.ZodString;
|
|
296
|
+
description: z.ZodOptional<z.ZodString>;
|
|
297
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
|
299
|
+
type: string;
|
|
300
|
+
name: string;
|
|
301
|
+
required: boolean;
|
|
302
|
+
description?: string | undefined;
|
|
303
|
+
}, {
|
|
304
|
+
type: string;
|
|
305
|
+
name: string;
|
|
306
|
+
description?: string | undefined;
|
|
307
|
+
required?: boolean | undefined;
|
|
308
|
+
}>, "many">>;
|
|
309
|
+
outputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
310
|
+
name: z.ZodString;
|
|
311
|
+
type: z.ZodString;
|
|
312
|
+
description: z.ZodOptional<z.ZodString>;
|
|
313
|
+
}, "strip", z.ZodTypeAny, {
|
|
314
|
+
type: string;
|
|
315
|
+
name: string;
|
|
316
|
+
description?: string | undefined;
|
|
317
|
+
}, {
|
|
318
|
+
type: string;
|
|
319
|
+
name: string;
|
|
320
|
+
description?: string | undefined;
|
|
321
|
+
}>, "many">>;
|
|
322
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
323
|
+
patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
324
|
+
constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
325
|
+
language: z.ZodDefault<z.ZodEnum<["typescript", "javascript", "python", "go", "rust", "java", "other"]>>;
|
|
326
|
+
outputPath: z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, "strip", z.ZodTypeAny, {
|
|
328
|
+
type: "function" | "component" | "other" | "class" | "module" | "service" | "controller" | "repository" | "factory" | "adapter" | "hook";
|
|
329
|
+
name: string;
|
|
330
|
+
description: string;
|
|
331
|
+
language: "other" | "typescript" | "javascript" | "python" | "go" | "rust" | "java";
|
|
332
|
+
dependencies?: string[] | undefined;
|
|
333
|
+
outputPath?: string | undefined;
|
|
334
|
+
inputs?: {
|
|
335
|
+
type: string;
|
|
336
|
+
name: string;
|
|
337
|
+
required: boolean;
|
|
338
|
+
description?: string | undefined;
|
|
339
|
+
}[] | undefined;
|
|
340
|
+
outputs?: {
|
|
341
|
+
type: string;
|
|
342
|
+
name: string;
|
|
343
|
+
description?: string | undefined;
|
|
344
|
+
}[] | undefined;
|
|
345
|
+
patterns?: string[] | undefined;
|
|
346
|
+
constraints?: string[] | undefined;
|
|
347
|
+
}, {
|
|
348
|
+
type: "function" | "component" | "other" | "class" | "module" | "service" | "controller" | "repository" | "factory" | "adapter" | "hook";
|
|
349
|
+
name: string;
|
|
350
|
+
description: string;
|
|
351
|
+
dependencies?: string[] | undefined;
|
|
352
|
+
outputPath?: string | undefined;
|
|
353
|
+
inputs?: {
|
|
354
|
+
type: string;
|
|
355
|
+
name: string;
|
|
356
|
+
description?: string | undefined;
|
|
357
|
+
required?: boolean | undefined;
|
|
358
|
+
}[] | undefined;
|
|
359
|
+
outputs?: {
|
|
360
|
+
type: string;
|
|
361
|
+
name: string;
|
|
362
|
+
description?: string | undefined;
|
|
363
|
+
}[] | undefined;
|
|
364
|
+
patterns?: string[] | undefined;
|
|
365
|
+
constraints?: string[] | undefined;
|
|
366
|
+
language?: "other" | "typescript" | "javascript" | "python" | "go" | "rust" | "java" | undefined;
|
|
367
|
+
}>;
|
|
368
|
+
export type ComponentDesignRequest = z.infer<typeof ComponentDesignRequestSchema>;
|
|
369
|
+
/**
|
|
370
|
+
* Component design result
|
|
371
|
+
*/
|
|
372
|
+
export declare const ComponentDesignResultSchema: z.ZodObject<{
|
|
373
|
+
designId: z.ZodString;
|
|
374
|
+
name: z.ZodString;
|
|
375
|
+
type: z.ZodEnum<["function", "class", "module", "service", "controller", "repository", "factory", "adapter", "hook", "component", "other"]>;
|
|
376
|
+
interface: z.ZodString;
|
|
377
|
+
implementation: z.ZodOptional<z.ZodString>;
|
|
378
|
+
tests: z.ZodOptional<z.ZodString>;
|
|
379
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
380
|
+
createdAt: z.ZodString;
|
|
381
|
+
}, "strip", z.ZodTypeAny, {
|
|
382
|
+
type: "function" | "component" | "other" | "class" | "module" | "service" | "controller" | "repository" | "factory" | "adapter" | "hook";
|
|
383
|
+
name: string;
|
|
384
|
+
createdAt: string;
|
|
385
|
+
interface: string;
|
|
386
|
+
designId: string;
|
|
387
|
+
filePath?: string | undefined;
|
|
388
|
+
implementation?: string | undefined;
|
|
389
|
+
tests?: string | undefined;
|
|
390
|
+
}, {
|
|
391
|
+
type: "function" | "component" | "other" | "class" | "module" | "service" | "controller" | "repository" | "factory" | "adapter" | "hook";
|
|
392
|
+
name: string;
|
|
393
|
+
createdAt: string;
|
|
394
|
+
interface: string;
|
|
395
|
+
designId: string;
|
|
396
|
+
filePath?: string | undefined;
|
|
397
|
+
implementation?: string | undefined;
|
|
398
|
+
tests?: string | undefined;
|
|
399
|
+
}>;
|
|
400
|
+
export type ComponentDesignResult = z.infer<typeof ComponentDesignResultSchema>;
|
|
401
|
+
/**
|
|
402
|
+
* Schema field type
|
|
403
|
+
*/
|
|
404
|
+
export declare const SchemaFieldTypeSchema: z.ZodEnum<["string", "number", "integer", "boolean", "array", "object", "null", "date", "datetime", "uuid", "email", "url", "enum", "ref"]>;
|
|
405
|
+
export type SchemaFieldType = z.infer<typeof SchemaFieldTypeSchema>;
|
|
406
|
+
/**
|
|
407
|
+
* Schema field
|
|
408
|
+
*/
|
|
409
|
+
export declare const SchemaFieldSchema: z.ZodObject<{
|
|
410
|
+
name: z.ZodString;
|
|
411
|
+
type: z.ZodEnum<["string", "number", "integer", "boolean", "array", "object", "null", "date", "datetime", "uuid", "email", "url", "enum", "ref"]>;
|
|
412
|
+
description: z.ZodOptional<z.ZodString>;
|
|
413
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
414
|
+
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
415
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
416
|
+
enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
417
|
+
refSchema: z.ZodOptional<z.ZodString>;
|
|
418
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
419
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
420
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
421
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
422
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
423
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
425
|
+
min?: number | undefined;
|
|
426
|
+
max?: number | undefined;
|
|
427
|
+
pattern?: string | undefined;
|
|
428
|
+
minLength?: number | undefined;
|
|
429
|
+
maxLength?: number | undefined;
|
|
430
|
+
}, {
|
|
431
|
+
min?: number | undefined;
|
|
432
|
+
max?: number | undefined;
|
|
433
|
+
pattern?: string | undefined;
|
|
434
|
+
minLength?: number | undefined;
|
|
435
|
+
maxLength?: number | undefined;
|
|
436
|
+
}>>;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
type: "string" | "number" | "boolean" | "object" | "integer" | "date" | "null" | "array" | "datetime" | "uuid" | "email" | "url" | "enum" | "ref";
|
|
439
|
+
name: string;
|
|
440
|
+
required: boolean;
|
|
441
|
+
nullable: boolean;
|
|
442
|
+
validation?: {
|
|
443
|
+
min?: number | undefined;
|
|
444
|
+
max?: number | undefined;
|
|
445
|
+
pattern?: string | undefined;
|
|
446
|
+
minLength?: number | undefined;
|
|
447
|
+
maxLength?: number | undefined;
|
|
448
|
+
} | undefined;
|
|
449
|
+
description?: string | undefined;
|
|
450
|
+
default?: unknown;
|
|
451
|
+
enumValues?: string[] | undefined;
|
|
452
|
+
refSchema?: string | undefined;
|
|
453
|
+
}, {
|
|
454
|
+
type: "string" | "number" | "boolean" | "object" | "integer" | "date" | "null" | "array" | "datetime" | "uuid" | "email" | "url" | "enum" | "ref";
|
|
455
|
+
name: string;
|
|
456
|
+
validation?: {
|
|
457
|
+
min?: number | undefined;
|
|
458
|
+
max?: number | undefined;
|
|
459
|
+
pattern?: string | undefined;
|
|
460
|
+
minLength?: number | undefined;
|
|
461
|
+
maxLength?: number | undefined;
|
|
462
|
+
} | undefined;
|
|
463
|
+
description?: string | undefined;
|
|
464
|
+
required?: boolean | undefined;
|
|
465
|
+
nullable?: boolean | undefined;
|
|
466
|
+
default?: unknown;
|
|
467
|
+
enumValues?: string[] | undefined;
|
|
468
|
+
refSchema?: string | undefined;
|
|
469
|
+
}>;
|
|
470
|
+
export type SchemaField = z.infer<typeof SchemaFieldSchema>;
|
|
471
|
+
/**
|
|
472
|
+
* Schema design request
|
|
473
|
+
*/
|
|
474
|
+
export declare const SchemaDesignRequestSchema: z.ZodObject<{
|
|
475
|
+
name: z.ZodString;
|
|
476
|
+
description: z.ZodOptional<z.ZodString>;
|
|
477
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
478
|
+
name: z.ZodString;
|
|
479
|
+
type: z.ZodEnum<["string", "number", "integer", "boolean", "array", "object", "null", "date", "datetime", "uuid", "email", "url", "enum", "ref"]>;
|
|
480
|
+
description: z.ZodOptional<z.ZodString>;
|
|
481
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
482
|
+
nullable: z.ZodDefault<z.ZodBoolean>;
|
|
483
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
484
|
+
enumValues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
485
|
+
refSchema: z.ZodOptional<z.ZodString>;
|
|
486
|
+
validation: z.ZodOptional<z.ZodObject<{
|
|
487
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
488
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
489
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
490
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
491
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
492
|
+
}, "strip", z.ZodTypeAny, {
|
|
493
|
+
min?: number | undefined;
|
|
494
|
+
max?: number | undefined;
|
|
495
|
+
pattern?: string | undefined;
|
|
496
|
+
minLength?: number | undefined;
|
|
497
|
+
maxLength?: number | undefined;
|
|
498
|
+
}, {
|
|
499
|
+
min?: number | undefined;
|
|
500
|
+
max?: number | undefined;
|
|
501
|
+
pattern?: string | undefined;
|
|
502
|
+
minLength?: number | undefined;
|
|
503
|
+
maxLength?: number | undefined;
|
|
504
|
+
}>>;
|
|
505
|
+
}, "strip", z.ZodTypeAny, {
|
|
506
|
+
type: "string" | "number" | "boolean" | "object" | "integer" | "date" | "null" | "array" | "datetime" | "uuid" | "email" | "url" | "enum" | "ref";
|
|
507
|
+
name: string;
|
|
508
|
+
required: boolean;
|
|
509
|
+
nullable: boolean;
|
|
510
|
+
validation?: {
|
|
511
|
+
min?: number | undefined;
|
|
512
|
+
max?: number | undefined;
|
|
513
|
+
pattern?: string | undefined;
|
|
514
|
+
minLength?: number | undefined;
|
|
515
|
+
maxLength?: number | undefined;
|
|
516
|
+
} | undefined;
|
|
517
|
+
description?: string | undefined;
|
|
518
|
+
default?: unknown;
|
|
519
|
+
enumValues?: string[] | undefined;
|
|
520
|
+
refSchema?: string | undefined;
|
|
521
|
+
}, {
|
|
522
|
+
type: "string" | "number" | "boolean" | "object" | "integer" | "date" | "null" | "array" | "datetime" | "uuid" | "email" | "url" | "enum" | "ref";
|
|
523
|
+
name: string;
|
|
524
|
+
validation?: {
|
|
525
|
+
min?: number | undefined;
|
|
526
|
+
max?: number | undefined;
|
|
527
|
+
pattern?: string | undefined;
|
|
528
|
+
minLength?: number | undefined;
|
|
529
|
+
maxLength?: number | undefined;
|
|
530
|
+
} | undefined;
|
|
531
|
+
description?: string | undefined;
|
|
532
|
+
required?: boolean | undefined;
|
|
533
|
+
nullable?: boolean | undefined;
|
|
534
|
+
default?: unknown;
|
|
535
|
+
enumValues?: string[] | undefined;
|
|
536
|
+
refSchema?: string | undefined;
|
|
537
|
+
}>, "many">;
|
|
538
|
+
format: z.ZodDefault<z.ZodEnum<["zod", "json-schema", "typescript", "prisma", "drizzle"]>>;
|
|
539
|
+
outputPath: z.ZodOptional<z.ZodString>;
|
|
540
|
+
}, "strip", z.ZodTypeAny, {
|
|
541
|
+
name: string;
|
|
542
|
+
format: "json-schema" | "typescript" | "zod" | "prisma" | "drizzle";
|
|
543
|
+
fields: {
|
|
544
|
+
type: "string" | "number" | "boolean" | "object" | "integer" | "date" | "null" | "array" | "datetime" | "uuid" | "email" | "url" | "enum" | "ref";
|
|
545
|
+
name: string;
|
|
546
|
+
required: boolean;
|
|
547
|
+
nullable: boolean;
|
|
548
|
+
validation?: {
|
|
549
|
+
min?: number | undefined;
|
|
550
|
+
max?: number | undefined;
|
|
551
|
+
pattern?: string | undefined;
|
|
552
|
+
minLength?: number | undefined;
|
|
553
|
+
maxLength?: number | undefined;
|
|
554
|
+
} | undefined;
|
|
555
|
+
description?: string | undefined;
|
|
556
|
+
default?: unknown;
|
|
557
|
+
enumValues?: string[] | undefined;
|
|
558
|
+
refSchema?: string | undefined;
|
|
559
|
+
}[];
|
|
560
|
+
description?: string | undefined;
|
|
561
|
+
outputPath?: string | undefined;
|
|
562
|
+
}, {
|
|
563
|
+
name: string;
|
|
564
|
+
fields: {
|
|
565
|
+
type: "string" | "number" | "boolean" | "object" | "integer" | "date" | "null" | "array" | "datetime" | "uuid" | "email" | "url" | "enum" | "ref";
|
|
566
|
+
name: string;
|
|
567
|
+
validation?: {
|
|
568
|
+
min?: number | undefined;
|
|
569
|
+
max?: number | undefined;
|
|
570
|
+
pattern?: string | undefined;
|
|
571
|
+
minLength?: number | undefined;
|
|
572
|
+
maxLength?: number | undefined;
|
|
573
|
+
} | undefined;
|
|
574
|
+
description?: string | undefined;
|
|
575
|
+
required?: boolean | undefined;
|
|
576
|
+
nullable?: boolean | undefined;
|
|
577
|
+
default?: unknown;
|
|
578
|
+
enumValues?: string[] | undefined;
|
|
579
|
+
refSchema?: string | undefined;
|
|
580
|
+
}[];
|
|
581
|
+
description?: string | undefined;
|
|
582
|
+
format?: "json-schema" | "typescript" | "zod" | "prisma" | "drizzle" | undefined;
|
|
583
|
+
outputPath?: string | undefined;
|
|
584
|
+
}>;
|
|
585
|
+
export type SchemaDesignRequest = z.infer<typeof SchemaDesignRequestSchema>;
|
|
586
|
+
/**
|
|
587
|
+
* Schema design result
|
|
588
|
+
*/
|
|
589
|
+
export declare const SchemaDesignResultSchema: z.ZodObject<{
|
|
590
|
+
designId: z.ZodString;
|
|
591
|
+
name: z.ZodString;
|
|
592
|
+
format: z.ZodString;
|
|
593
|
+
content: z.ZodString;
|
|
594
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
595
|
+
createdAt: z.ZodString;
|
|
596
|
+
}, "strip", z.ZodTypeAny, {
|
|
597
|
+
name: string;
|
|
598
|
+
createdAt: string;
|
|
599
|
+
designId: string;
|
|
600
|
+
format: string;
|
|
601
|
+
content: string;
|
|
602
|
+
filePath?: string | undefined;
|
|
603
|
+
}, {
|
|
604
|
+
name: string;
|
|
605
|
+
createdAt: string;
|
|
606
|
+
designId: string;
|
|
607
|
+
format: string;
|
|
608
|
+
content: string;
|
|
609
|
+
filePath?: string | undefined;
|
|
610
|
+
}>;
|
|
611
|
+
export type SchemaDesignResult = z.infer<typeof SchemaDesignResultSchema>;
|
|
612
|
+
/**
|
|
613
|
+
* Architecture pattern
|
|
614
|
+
*/
|
|
615
|
+
export declare const ArchitecturePatternSchema: z.ZodEnum<["hexagonal", "clean", "layered", "microservices", "event-driven", "cqrs", "ddd", "mvc", "mvvm", "pipe-filter", "other"]>;
|
|
616
|
+
export type ArchitecturePattern = z.infer<typeof ArchitecturePatternSchema>;
|
|
617
|
+
/**
|
|
618
|
+
* Architecture component
|
|
619
|
+
*/
|
|
620
|
+
export declare const ArchitectureComponentSchema: z.ZodObject<{
|
|
621
|
+
id: z.ZodString;
|
|
622
|
+
name: z.ZodString;
|
|
623
|
+
type: z.ZodEnum<["domain", "application", "infrastructure", "presentation", "adapter", "port", "service", "database", "queue", "cache", "external"]>;
|
|
624
|
+
description: z.ZodOptional<z.ZodString>;
|
|
625
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
626
|
+
}, "strip", z.ZodTypeAny, {
|
|
627
|
+
type: "service" | "adapter" | "domain" | "application" | "infrastructure" | "presentation" | "port" | "database" | "queue" | "cache" | "external";
|
|
628
|
+
name: string;
|
|
629
|
+
id: string;
|
|
630
|
+
description?: string | undefined;
|
|
631
|
+
dependencies?: string[] | undefined;
|
|
632
|
+
}, {
|
|
633
|
+
type: "service" | "adapter" | "domain" | "application" | "infrastructure" | "presentation" | "port" | "database" | "queue" | "cache" | "external";
|
|
634
|
+
name: string;
|
|
635
|
+
id: string;
|
|
636
|
+
description?: string | undefined;
|
|
637
|
+
dependencies?: string[] | undefined;
|
|
638
|
+
}>;
|
|
639
|
+
export type ArchitectureComponent = z.infer<typeof ArchitectureComponentSchema>;
|
|
640
|
+
/**
|
|
641
|
+
* Architecture design request
|
|
642
|
+
*/
|
|
643
|
+
export declare const ArchitectureDesignRequestSchema: z.ZodObject<{
|
|
644
|
+
name: z.ZodString;
|
|
645
|
+
description: z.ZodString;
|
|
646
|
+
pattern: z.ZodEnum<["hexagonal", "clean", "layered", "microservices", "event-driven", "cqrs", "ddd", "mvc", "mvvm", "pipe-filter", "other"]>;
|
|
647
|
+
components: z.ZodArray<z.ZodObject<{
|
|
648
|
+
id: z.ZodString;
|
|
649
|
+
name: z.ZodString;
|
|
650
|
+
type: z.ZodEnum<["domain", "application", "infrastructure", "presentation", "adapter", "port", "service", "database", "queue", "cache", "external"]>;
|
|
651
|
+
description: z.ZodOptional<z.ZodString>;
|
|
652
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
653
|
+
}, "strip", z.ZodTypeAny, {
|
|
654
|
+
type: "service" | "adapter" | "domain" | "application" | "infrastructure" | "presentation" | "port" | "database" | "queue" | "cache" | "external";
|
|
655
|
+
name: string;
|
|
656
|
+
id: string;
|
|
657
|
+
description?: string | undefined;
|
|
658
|
+
dependencies?: string[] | undefined;
|
|
659
|
+
}, {
|
|
660
|
+
type: "service" | "adapter" | "domain" | "application" | "infrastructure" | "presentation" | "port" | "database" | "queue" | "cache" | "external";
|
|
661
|
+
name: string;
|
|
662
|
+
id: string;
|
|
663
|
+
description?: string | undefined;
|
|
664
|
+
dependencies?: string[] | undefined;
|
|
665
|
+
}>, "many">;
|
|
666
|
+
constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
667
|
+
format: z.ZodDefault<z.ZodEnum<["mermaid", "plantuml", "markdown", "c4"]>>;
|
|
668
|
+
outputPath: z.ZodOptional<z.ZodString>;
|
|
669
|
+
}, "strip", z.ZodTypeAny, {
|
|
670
|
+
name: string;
|
|
671
|
+
description: string;
|
|
672
|
+
format: "mermaid" | "plantuml" | "markdown" | "c4";
|
|
673
|
+
pattern: "other" | "hexagonal" | "clean" | "layered" | "microservices" | "event-driven" | "cqrs" | "ddd" | "mvc" | "mvvm" | "pipe-filter";
|
|
674
|
+
components: {
|
|
675
|
+
type: "service" | "adapter" | "domain" | "application" | "infrastructure" | "presentation" | "port" | "database" | "queue" | "cache" | "external";
|
|
676
|
+
name: string;
|
|
677
|
+
id: string;
|
|
678
|
+
description?: string | undefined;
|
|
679
|
+
dependencies?: string[] | undefined;
|
|
680
|
+
}[];
|
|
681
|
+
outputPath?: string | undefined;
|
|
682
|
+
constraints?: string[] | undefined;
|
|
683
|
+
}, {
|
|
684
|
+
name: string;
|
|
685
|
+
description: string;
|
|
686
|
+
pattern: "other" | "hexagonal" | "clean" | "layered" | "microservices" | "event-driven" | "cqrs" | "ddd" | "mvc" | "mvvm" | "pipe-filter";
|
|
687
|
+
components: {
|
|
688
|
+
type: "service" | "adapter" | "domain" | "application" | "infrastructure" | "presentation" | "port" | "database" | "queue" | "cache" | "external";
|
|
689
|
+
name: string;
|
|
690
|
+
id: string;
|
|
691
|
+
description?: string | undefined;
|
|
692
|
+
dependencies?: string[] | undefined;
|
|
693
|
+
}[];
|
|
694
|
+
format?: "mermaid" | "plantuml" | "markdown" | "c4" | undefined;
|
|
695
|
+
outputPath?: string | undefined;
|
|
696
|
+
constraints?: string[] | undefined;
|
|
697
|
+
}>;
|
|
698
|
+
export type ArchitectureDesignRequest = z.infer<typeof ArchitectureDesignRequestSchema>;
|
|
699
|
+
/**
|
|
700
|
+
* Architecture design result
|
|
701
|
+
*/
|
|
702
|
+
export declare const ArchitectureDesignResultSchema: z.ZodObject<{
|
|
703
|
+
designId: z.ZodString;
|
|
704
|
+
name: z.ZodString;
|
|
705
|
+
pattern: z.ZodEnum<["hexagonal", "clean", "layered", "microservices", "event-driven", "cqrs", "ddd", "mvc", "mvvm", "pipe-filter", "other"]>;
|
|
706
|
+
diagram: z.ZodString;
|
|
707
|
+
documentation: z.ZodOptional<z.ZodString>;
|
|
708
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
709
|
+
createdAt: z.ZodString;
|
|
710
|
+
}, "strip", z.ZodTypeAny, {
|
|
711
|
+
name: string;
|
|
712
|
+
createdAt: string;
|
|
713
|
+
designId: string;
|
|
714
|
+
pattern: "other" | "hexagonal" | "clean" | "layered" | "microservices" | "event-driven" | "cqrs" | "ddd" | "mvc" | "mvvm" | "pipe-filter";
|
|
715
|
+
diagram: string;
|
|
716
|
+
filePath?: string | undefined;
|
|
717
|
+
documentation?: string | undefined;
|
|
718
|
+
}, {
|
|
719
|
+
name: string;
|
|
720
|
+
createdAt: string;
|
|
721
|
+
designId: string;
|
|
722
|
+
pattern: "other" | "hexagonal" | "clean" | "layered" | "microservices" | "event-driven" | "cqrs" | "ddd" | "mvc" | "mvvm" | "pipe-filter";
|
|
723
|
+
diagram: string;
|
|
724
|
+
filePath?: string | undefined;
|
|
725
|
+
documentation?: string | undefined;
|
|
726
|
+
}>;
|
|
727
|
+
export type ArchitectureDesignResult = z.infer<typeof ArchitectureDesignResultSchema>;
|
|
728
|
+
export declare const DesignErrorCode: {
|
|
729
|
+
readonly DESIGN_NOT_FOUND: "DESIGN_NOT_FOUND";
|
|
730
|
+
readonly INVALID_FORMAT: "INVALID_FORMAT";
|
|
731
|
+
readonly GENERATION_FAILED: "GENERATION_FAILED";
|
|
732
|
+
readonly VALIDATION_FAILED: "VALIDATION_FAILED";
|
|
733
|
+
readonly DEPENDENCY_ERROR: "DEPENDENCY_ERROR";
|
|
734
|
+
readonly FILE_WRITE_ERROR: "FILE_WRITE_ERROR";
|
|
735
|
+
};
|
|
736
|
+
export type DesignErrorCode = (typeof DesignErrorCode)[keyof typeof DesignErrorCode];
|
|
737
|
+
export declare function validateApiDesignRequest(data: unknown): ApiDesignRequest;
|
|
738
|
+
export declare function validateComponentDesignRequest(data: unknown): ComponentDesignRequest;
|
|
739
|
+
export declare function validateSchemaDesignRequest(data: unknown): SchemaDesignRequest;
|
|
740
|
+
export declare function validateArchitectureDesignRequest(data: unknown): ArchitectureDesignRequest;
|
|
741
|
+
export declare function safeValidateApiDesignRequest(data: unknown): {
|
|
742
|
+
success: true;
|
|
743
|
+
data: ApiDesignRequest;
|
|
744
|
+
} | {
|
|
745
|
+
success: false;
|
|
746
|
+
error: z.ZodError;
|
|
747
|
+
};
|
|
748
|
+
//# sourceMappingURL=schema.d.ts.map
|