@contractspec/lib.contracts-spec 2.0.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/README.md +3 -0
- package/dist/app-config/app-config.capability.d.ts +1 -0
- package/dist/app-config/app-config.capability.js +730 -0
- package/dist/app-config/app-config.contracts.d.ts +239 -0
- package/dist/app-config/app-config.contracts.js +713 -0
- package/dist/app-config/app-config.contracts.test.d.ts +1 -0
- package/dist/app-config/app-config.feature.d.ts +5 -0
- package/dist/app-config/app-config.feature.js +255 -0
- package/dist/app-config/branding.d.ts +52 -0
- package/dist/app-config/branding.js +1 -0
- package/dist/app-config/branding.test.d.ts +1 -0
- package/dist/app-config/docs/app-config.docblock.d.ts +2 -0
- package/dist/app-config/docs/app-config.docblock.js +383 -0
- package/dist/app-config/events.d.ts +115 -0
- package/dist/app-config/events.js +386 -0
- package/dist/app-config/events.test.d.ts +1 -0
- package/dist/app-config/index.d.ts +9 -0
- package/dist/app-config/index.js +2899 -0
- package/dist/app-config/lifecycle-contracts.d.ts +265 -0
- package/dist/app-config/lifecycle-contracts.js +870 -0
- package/dist/app-config/lifecycle-contracts.test.d.ts +1 -0
- package/dist/app-config/lifecycle.d.ts +23 -0
- package/dist/app-config/lifecycle.js +1 -0
- package/dist/app-config/lifecycle.test.d.ts +1 -0
- package/dist/app-config/runtime.d.ts +111 -0
- package/dist/app-config/runtime.js +734 -0
- package/dist/app-config/runtime.test.d.ts +1 -0
- package/dist/app-config/spec.d.ts +169 -0
- package/dist/app-config/spec.js +229 -0
- package/dist/app-config/spec.test.d.ts +1 -0
- package/dist/app-config/validation.d.ts +43 -0
- package/dist/app-config/validation.js +650 -0
- package/dist/app-config/validation.test.d.ts +1 -0
- package/dist/capabilities/capabilities.d.ts +96 -0
- package/dist/capabilities/capabilities.js +217 -0
- package/dist/capabilities/capabilities.test.d.ts +1 -0
- package/dist/capabilities/context.d.ts +110 -0
- package/dist/capabilities/context.js +101 -0
- package/dist/capabilities/context.test.d.ts +1 -0
- package/dist/capabilities/docs/capabilities.docblock.d.ts +2 -0
- package/dist/capabilities/docs/capabilities.docblock.js +353 -0
- package/dist/capabilities/guards.d.ts +121 -0
- package/dist/capabilities/guards.js +177 -0
- package/dist/capabilities/index.d.ts +6 -0
- package/dist/capabilities/index.js +739 -0
- package/dist/capabilities/meeting-recorder.d.ts +5 -0
- package/dist/capabilities/meeting-recorder.js +154 -0
- package/dist/capabilities/openbanking.d.ts +5 -0
- package/dist/capabilities/openbanking.js +166 -0
- package/dist/capabilities/validation.d.ts +79 -0
- package/dist/capabilities/validation.js +185 -0
- package/dist/capabilities/validation.test.d.ts +1 -0
- package/dist/contract-registry/index.d.ts +3 -0
- package/dist/contract-registry/index.js +129 -0
- package/dist/contract-registry/schemas.d.ts +120 -0
- package/dist/contract-registry/schemas.js +129 -0
- package/dist/contract-registry/schemas.test.d.ts +1 -0
- package/dist/contract-registry/types.d.ts +42 -0
- package/dist/contract-registry/types.js +1 -0
- package/dist/data-views/data-views.d.ts +4 -0
- package/dist/data-views/data-views.js +232 -0
- package/dist/data-views/data-views.test.d.ts +1 -0
- package/dist/data-views/docs/data-views.docblock.d.ts +2 -0
- package/dist/data-views/docs/data-views.docblock.js +164 -0
- package/dist/data-views/index.d.ts +4 -0
- package/dist/data-views/index.js +232 -0
- package/dist/data-views/query-generator.d.ts +35 -0
- package/dist/data-views/query-generator.js +89 -0
- package/dist/data-views/registry.d.ts +12 -0
- package/dist/data-views/registry.js +226 -0
- package/dist/data-views/registry.test.d.ts +1 -0
- package/dist/data-views/report/contractVerificationTable.d.ts +4 -0
- package/dist/data-views/report/contractVerificationTable.js +240 -0
- package/dist/data-views/report/contractVerificationTable.test.d.ts +1 -0
- package/dist/data-views/runtime.d.ts +25 -0
- package/dist/data-views/runtime.js +108 -0
- package/dist/data-views/runtime.test.d.ts +1 -0
- package/dist/data-views/spec.d.ts +22 -0
- package/dist/data-views/spec.js +38 -0
- package/dist/data-views/spec.test.d.ts +1 -0
- package/dist/data-views/types.d.ts +152 -0
- package/dist/data-views/types.js +1 -0
- package/dist/data-views/types.test.d.ts +1 -0
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.d.ts +2 -0
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.js +513 -0
- package/dist/docs/capabilities/documentationSystem.capability.d.ts +1 -0
- package/dist/docs/capabilities/documentationSystem.capability.js +784 -0
- package/dist/docs/capabilities/index.d.ts +1 -0
- package/dist/docs/capabilities/index.js +784 -0
- package/dist/docs/commands/docsGenerate.command.d.ts +88 -0
- package/dist/docs/commands/docsGenerate.command.js +802 -0
- package/dist/docs/commands/docsPublish.command.d.ts +57 -0
- package/dist/docs/commands/docsPublish.command.js +781 -0
- package/dist/docs/commands/index.d.ts +2 -0
- package/dist/docs/commands/index.js +906 -0
- package/dist/docs/constants.d.ts +4 -0
- package/dist/docs/constants.js +78 -0
- package/dist/docs/contracts.d.ts +430 -0
- package/dist/docs/contracts.js +1611 -0
- package/dist/docs/ensure-docblocks.d.ts +1 -0
- package/dist/docs/ensure-docblocks.js +264 -0
- package/dist/docs/events/docsGenerated.event.d.ts +56 -0
- package/dist/docs/events/docsGenerated.event.js +533 -0
- package/dist/docs/events/docsPublished.event.d.ts +64 -0
- package/dist/docs/events/docsPublished.event.js +534 -0
- package/dist/docs/events/index.d.ts +2 -0
- package/dist/docs/events/index.js +567 -0
- package/dist/docs/forms/docsSearch.form.d.ts +16 -0
- package/dist/docs/forms/docsSearch.form.js +676 -0
- package/dist/docs/forms/index.d.ts +1 -0
- package/dist/docs/forms/index.js +676 -0
- package/dist/docs/index.d.ts +40 -0
- package/dist/docs/index.js +4719 -0
- package/dist/docs/meta.docs.d.ts +2 -0
- package/dist/docs/meta.docs.js +176 -0
- package/dist/docs/presentations/docsLayout.presentation.d.ts +2 -0
- package/dist/docs/presentations/docsLayout.presentation.js +527 -0
- package/dist/docs/presentations/docsReferencePage.presentation.d.ts +2 -0
- package/dist/docs/presentations/docsReferencePage.presentation.js +527 -0
- package/dist/docs/presentations/index.d.ts +2 -0
- package/dist/docs/presentations/index.js +555 -0
- package/dist/docs/presentations.d.ts +27 -0
- package/dist/docs/presentations.js +97 -0
- package/dist/docs/presentations.test.d.ts +1 -0
- package/dist/docs/queries/contractReference.query.d.ts +211 -0
- package/dist/docs/queries/contractReference.query.js +752 -0
- package/dist/docs/queries/docsIndex.query.d.ts +266 -0
- package/dist/docs/queries/docsIndex.query.js +752 -0
- package/dist/docs/queries/index.d.ts +2 -0
- package/dist/docs/queries/index.js +827 -0
- package/dist/docs/registry.d.ts +19 -0
- package/dist/docs/registry.js +153 -0
- package/dist/docs/registry.test.d.ts +1 -0
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.d.ts +2 -0
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.js +221 -0
- package/dist/docs/tech/cli.docblock.d.ts +2 -0
- package/dist/docs/tech/cli.docblock.js +291 -0
- package/dist/docs/tech/contracts/README.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/README.docblock.js +164 -0
- package/dist/docs/tech/contracts/migrations.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/migrations.docblock.js +164 -0
- package/dist/docs/tech/contracts/openapi-export.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/openapi-export.docblock.js +201 -0
- package/dist/docs/tech/contracts/openapi-import.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/openapi-import.docblock.js +207 -0
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.js +225 -0
- package/dist/docs/tech/contracts/overlays.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/overlays.docblock.js +231 -0
- package/dist/docs/tech/contracts/tests.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/tests.docblock.js +164 -0
- package/dist/docs/tech/contracts/themes.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/themes.docblock.js +257 -0
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.d.ts +2 -0
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.js +269 -0
- package/dist/docs/tech/docs-system.docblock.d.ts +1 -0
- package/dist/docs/tech/docs-system.docblock.js +264 -0
- package/dist/docs/tech/lifecycle-stage-system.docblock.d.ts +2 -0
- package/dist/docs/tech/lifecycle-stage-system.docblock.js +376 -0
- package/dist/docs/tech/llm/llm-integration.docblock.d.ts +7 -0
- package/dist/docs/tech/llm/llm-integration.docblock.js +482 -0
- package/dist/docs/tech/mcp-endpoints.docblock.d.ts +2 -0
- package/dist/docs/tech/mcp-endpoints.docblock.js +185 -0
- package/dist/docs/tech/presentation-runtime.docblock.d.ts +2 -0
- package/dist/docs/tech/presentation-runtime.docblock.js +221 -0
- package/dist/docs/tech/report-verification-table.docblock.d.ts +1 -0
- package/dist/docs/tech/report-verification-table.docblock.js +191 -0
- package/dist/docs/tech/report-verification-table.test.d.ts +1 -0
- package/dist/docs/tech/schema/README.docblock.d.ts +2 -0
- package/dist/docs/tech/schema/README.docblock.js +164 -0
- package/dist/docs/tech/studio/learning-events.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/learning-events.docblock.js +190 -0
- package/dist/docs/tech/studio/learning-journeys.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/learning-journeys.docblock.js +227 -0
- package/dist/docs/tech/studio/platform-admin-panel.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/platform-admin-panel.docblock.js +226 -0
- package/dist/docs/tech/studio/project-access-teams.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/project-access-teams.docblock.js +200 -0
- package/dist/docs/tech/studio/project-routing.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/project-routing.docblock.js +209 -0
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.js +183 -0
- package/dist/docs/tech/studio/team-invitations.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/team-invitations.docblock.js +228 -0
- package/dist/docs/tech/studio/workspace-ops.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/workspace-ops.docblock.js +189 -0
- package/dist/docs/tech/studio/workspaces.docblock.d.ts +2 -0
- package/dist/docs/tech/studio/workspaces.docblock.js +204 -0
- package/dist/docs/tech/telemetry-ingest.docblock.d.ts +2 -0
- package/dist/docs/tech/telemetry-ingest.docblock.js +305 -0
- package/dist/docs/tech/vscode-extension.docblock.d.ts +2 -0
- package/dist/docs/tech/vscode-extension.docblock.js +241 -0
- package/dist/docs/tech-contracts.docs.d.ts +2 -0
- package/dist/docs/tech-contracts.docs.js +239 -0
- package/dist/docs/types.d.ts +37 -0
- package/dist/docs/types.js +1 -0
- package/dist/docs/views/contractReference.dataView.d.ts +2 -0
- package/dist/docs/views/contractReference.dataView.js +838 -0
- package/dist/docs/views/docsIndex.dataView.d.ts +2 -0
- package/dist/docs/views/docsIndex.dataView.js +832 -0
- package/dist/docs/views/exampleCatalog.dataView.d.ts +2 -0
- package/dist/docs/views/exampleCatalog.dataView.js +816 -0
- package/dist/docs/views/index.d.ts +3 -0
- package/dist/docs/views/index.js +1031 -0
- package/dist/events.d.ts +142 -0
- package/dist/events.js +228 -0
- package/dist/events.test.d.ts +1 -0
- package/dist/examples/define.d.ts +5 -0
- package/dist/examples/define.js +36 -0
- package/dist/examples/docs/examples.docblock.d.ts +2 -0
- package/dist/examples/docs/examples.docblock.js +307 -0
- package/dist/examples/index.d.ts +7 -0
- package/dist/examples/index.js +604 -0
- package/dist/examples/registry.d.ts +38 -0
- package/dist/examples/registry.js +286 -0
- package/dist/examples/registry.test.d.ts +1 -0
- package/dist/examples/schema.d.ts +278 -0
- package/dist/examples/schema.js +166 -0
- package/dist/examples/schema.test.d.ts +1 -0
- package/dist/examples/types.d.ts +162 -0
- package/dist/examples/types.js +77 -0
- package/dist/examples/types.test.d.ts +1 -0
- package/dist/examples/validation.d.ts +61 -0
- package/dist/examples/validation.js +287 -0
- package/dist/examples/validation.test.d.ts +1 -0
- package/dist/experiments/docs/experiments.docblock.d.ts +2 -0
- package/dist/experiments/docs/experiments.docblock.js +291 -0
- package/dist/experiments/evaluator.d.ts +33 -0
- package/dist/experiments/evaluator.js +155 -0
- package/dist/experiments/evaluator.test.d.ts +1 -0
- package/dist/experiments/spec-resolver.d.ts +12 -0
- package/dist/experiments/spec-resolver.js +1 -0
- package/dist/experiments/spec.d.ts +79 -0
- package/dist/experiments/spec.js +227 -0
- package/dist/experiments/spec.test.d.ts +1 -0
- package/dist/features/index.d.ts +5 -0
- package/dist/features/index.js +275 -0
- package/dist/features/install.d.ts +14 -0
- package/dist/features/install.js +95 -0
- package/dist/features/install.test.d.ts +1 -0
- package/dist/features/registry.d.ts +21 -0
- package/dist/features/registry.js +192 -0
- package/dist/features/registry.test.d.ts +1 -0
- package/dist/features/types.d.ts +82 -0
- package/dist/features/types.js +36 -0
- package/dist/features/types.test.d.ts +1 -0
- package/dist/features/validation.d.ts +4 -0
- package/dist/features/validation.js +48 -0
- package/dist/features/validation.test.d.ts +1 -0
- package/dist/features.capabilities.test.d.ts +1 -0
- package/dist/forms/docs/forms.docblock.d.ts +2 -0
- package/dist/forms/docs/forms.docblock.js +164 -0
- package/dist/forms/forms.d.ts +264 -0
- package/dist/forms/forms.js +332 -0
- package/dist/forms/index.d.ts +1 -0
- package/dist/forms/index.js +332 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +2195 -0
- package/dist/install.d.ts +75 -0
- package/dist/install.js +60 -0
- package/dist/integrations/binding.d.ts +14 -0
- package/dist/integrations/binding.js +1 -0
- package/dist/integrations/connection.d.ts +47 -0
- package/dist/integrations/connection.js +1 -0
- package/dist/integrations/docs/integrations.docblock.d.ts +2 -0
- package/dist/integrations/docs/integrations.docblock.js +140 -0
- package/dist/integrations/health.d.ts +17 -0
- package/dist/integrations/health.js +103 -0
- package/dist/integrations/health.test.d.ts +1 -0
- package/dist/integrations/index.d.ts +11 -0
- package/dist/integrations/index.js +3293 -0
- package/dist/integrations/integrations.capability.d.ts +1 -0
- package/dist/integrations/integrations.capability.js +48 -0
- package/dist/integrations/integrations.feature.d.ts +5 -0
- package/dist/integrations/integrations.feature.js +63 -0
- package/dist/integrations/meeting-recorder/contracts/index.d.ts +7 -0
- package/dist/integrations/meeting-recorder/contracts/index.js +504 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.d.ts +451 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.js +249 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.d.ts +166 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.js +317 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.d.ts +85 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.js +202 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.d.ts +1 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.js +48 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.d.ts +5 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.js +63 -0
- package/dist/integrations/meeting-recorder/models.d.ts +402 -0
- package/dist/integrations/meeting-recorder/models.js +152 -0
- package/dist/integrations/meeting-recorder/telemetry.d.ts +13 -0
- package/dist/integrations/meeting-recorder/telemetry.js +84 -0
- package/dist/integrations/openbanking/contracts/accounts.d.ts +282 -0
- package/dist/integrations/openbanking/contracts/accounts.js +358 -0
- package/dist/integrations/openbanking/contracts/balances.d.ts +158 -0
- package/dist/integrations/openbanking/contracts/balances.js +322 -0
- package/dist/integrations/openbanking/contracts/index.d.ts +7 -0
- package/dist/integrations/openbanking/contracts/index.js +674 -0
- package/dist/integrations/openbanking/contracts/transactions.d.ts +206 -0
- package/dist/integrations/openbanking/contracts/transactions.js +328 -0
- package/dist/integrations/openbanking/guards.d.ts +8 -0
- package/dist/integrations/openbanking/guards.js +72 -0
- package/dist/integrations/openbanking/guards.test.d.ts +1 -0
- package/dist/integrations/openbanking/models.d.ts +223 -0
- package/dist/integrations/openbanking/models.js +140 -0
- package/dist/integrations/openbanking/openbanking.capability.d.ts +1 -0
- package/dist/integrations/openbanking/openbanking.capability.js +48 -0
- package/dist/integrations/openbanking/openbanking.feature.d.ts +5 -0
- package/dist/integrations/openbanking/openbanking.feature.js +65 -0
- package/dist/integrations/openbanking/telemetry.d.ts +12 -0
- package/dist/integrations/openbanking/telemetry.js +81 -0
- package/dist/integrations/operations.d.ts +430 -0
- package/dist/integrations/operations.js +327 -0
- package/dist/integrations/operations.test.d.ts +1 -0
- package/dist/integrations/providers/analytics-reader.d.ts +103 -0
- package/dist/integrations/providers/analytics-reader.js +1 -0
- package/dist/integrations/providers/analytics-writer.d.ts +6 -0
- package/dist/integrations/providers/analytics-writer.js +1 -0
- package/dist/integrations/providers/analytics.d.ts +47 -0
- package/dist/integrations/providers/analytics.js +1 -0
- package/dist/integrations/providers/calendar.d.ts +75 -0
- package/dist/integrations/providers/calendar.js +1 -0
- package/dist/integrations/providers/database.d.ts +12 -0
- package/dist/integrations/providers/database.js +1 -0
- package/dist/integrations/providers/elevenlabs.d.ts +3 -0
- package/dist/integrations/providers/elevenlabs.js +116 -0
- package/dist/integrations/providers/email.d.ts +83 -0
- package/dist/integrations/providers/email.js +1 -0
- package/dist/integrations/providers/embedding.d.ts +21 -0
- package/dist/integrations/providers/embedding.js +1 -0
- package/dist/integrations/providers/fal.d.ts +3 -0
- package/dist/integrations/providers/fal.js +142 -0
- package/dist/integrations/providers/fathom.d.ts +3 -0
- package/dist/integrations/providers/fathom.js +156 -0
- package/dist/integrations/providers/fireflies.d.ts +3 -0
- package/dist/integrations/providers/fireflies.js +136 -0
- package/dist/integrations/providers/gcs-storage.d.ts +3 -0
- package/dist/integrations/providers/gcs-storage.js +127 -0
- package/dist/integrations/providers/gmail.d.ts +3 -0
- package/dist/integrations/providers/gmail.js +139 -0
- package/dist/integrations/providers/google-calendar.d.ts +3 -0
- package/dist/integrations/providers/google-calendar.js +122 -0
- package/dist/integrations/providers/gradium.d.ts +3 -0
- package/dist/integrations/providers/gradium.js +140 -0
- package/dist/integrations/providers/granola.d.ts +3 -0
- package/dist/integrations/providers/granola.js +137 -0
- package/dist/integrations/providers/index.d.ts +38 -0
- package/dist/integrations/providers/index.js +2124 -0
- package/dist/integrations/providers/jira.d.ts +3 -0
- package/dist/integrations/providers/jira.js +138 -0
- package/dist/integrations/providers/linear.d.ts +3 -0
- package/dist/integrations/providers/linear.js +137 -0
- package/dist/integrations/providers/llm.d.ts +79 -0
- package/dist/integrations/providers/llm.js +1 -0
- package/dist/integrations/providers/meeting-recorder.d.ts +129 -0
- package/dist/integrations/providers/meeting-recorder.js +1 -0
- package/dist/integrations/providers/mistral.d.ts +3 -0
- package/dist/integrations/providers/mistral.js +124 -0
- package/dist/integrations/providers/notion.d.ts +3 -0
- package/dist/integrations/providers/notion.js +143 -0
- package/dist/integrations/providers/openbanking.d.ts +125 -0
- package/dist/integrations/providers/openbanking.js +1 -0
- package/dist/integrations/providers/payments.d.ts +106 -0
- package/dist/integrations/providers/payments.js +1 -0
- package/dist/integrations/providers/posthog-llm-telemetry.d.ts +51 -0
- package/dist/integrations/providers/posthog-llm-telemetry.js +206 -0
- package/dist/integrations/providers/posthog.d.ts +3 -0
- package/dist/integrations/providers/posthog.js +136 -0
- package/dist/integrations/providers/postmark.d.ts +3 -0
- package/dist/integrations/providers/postmark.js +128 -0
- package/dist/integrations/providers/powens.d.ts +3 -0
- package/dist/integrations/providers/powens.js +154 -0
- package/dist/integrations/providers/project-management.d.ts +32 -0
- package/dist/integrations/providers/project-management.js +1 -0
- package/dist/integrations/providers/providers.test.d.ts +1 -0
- package/dist/integrations/providers/qdrant.d.ts +3 -0
- package/dist/integrations/providers/qdrant.js +131 -0
- package/dist/integrations/providers/registry.d.ts +6 -0
- package/dist/integrations/providers/registry.js +1908 -0
- package/dist/integrations/providers/sms.d.ts +31 -0
- package/dist/integrations/providers/sms.js +1 -0
- package/dist/integrations/providers/storage.d.ts +57 -0
- package/dist/integrations/providers/storage.js +1 -0
- package/dist/integrations/providers/stripe.d.ts +3 -0
- package/dist/integrations/providers/stripe.js +135 -0
- package/dist/integrations/providers/supabase-postgres.d.ts +3 -0
- package/dist/integrations/providers/supabase-postgres.js +117 -0
- package/dist/integrations/providers/supabase-vector.d.ts +3 -0
- package/dist/integrations/providers/supabase-vector.js +137 -0
- package/dist/integrations/providers/tldv.d.ts +3 -0
- package/dist/integrations/providers/tldv.js +136 -0
- package/dist/integrations/providers/twilio-sms.d.ts +3 -0
- package/dist/integrations/providers/twilio-sms.js +121 -0
- package/dist/integrations/providers/vector-store.d.ts +39 -0
- package/dist/integrations/providers/vector-store.js +1 -0
- package/dist/integrations/providers/voice.d.ts +31 -0
- package/dist/integrations/providers/voice.js +1 -0
- package/dist/integrations/runtime.d.ts +95 -0
- package/dist/integrations/runtime.js +239 -0
- package/dist/integrations/runtime.test.d.ts +1 -0
- package/dist/integrations/secrets/aws-secret-manager.d.ts +28 -0
- package/dist/integrations/secrets/aws-secret-manager.js +376 -0
- package/dist/integrations/secrets/env-secret-provider.d.ts +28 -0
- package/dist/integrations/secrets/env-secret-provider.js +189 -0
- package/dist/integrations/secrets/gcp-secret-manager.d.ts +29 -0
- package/dist/integrations/secrets/gcp-secret-manager.js +377 -0
- package/dist/integrations/secrets/index.d.ts +6 -0
- package/dist/integrations/secrets/index.js +1159 -0
- package/dist/integrations/secrets/manager.d.ts +44 -0
- package/dist/integrations/secrets/manager.js +213 -0
- package/dist/integrations/secrets/provider.d.ts +49 -0
- package/dist/integrations/secrets/provider.js +104 -0
- package/dist/integrations/secrets/provider.test.d.ts +1 -0
- package/dist/integrations/secrets/scaleway-secret-manager.d.ts +35 -0
- package/dist/integrations/secrets/scaleway-secret-manager.js +405 -0
- package/dist/integrations/secrets-types.d.ts +14 -0
- package/dist/integrations/secrets-types.js +1 -0
- package/dist/integrations/spec.d.ts +72 -0
- package/dist/integrations/spec.js +52 -0
- package/dist/integrations/spec.test.d.ts +1 -0
- package/dist/jobs/define-job.d.ts +15 -0
- package/dist/jobs/define-job.js +41 -0
- package/dist/jobs/gcp-cloud-tasks.d.ts +38 -0
- package/dist/jobs/gcp-cloud-tasks.js +103 -0
- package/dist/jobs/gcp-pubsub.d.ts +22 -0
- package/dist/jobs/gcp-pubsub.js +91 -0
- package/dist/jobs/handlers/gmail-sync-handler.d.ts +5 -0
- package/dist/jobs/handlers/gmail-sync-handler.js +40 -0
- package/dist/jobs/handlers/handlers.test.d.ts +1 -0
- package/dist/jobs/handlers/index.d.ts +5 -0
- package/dist/jobs/handlers/index.js +83 -0
- package/dist/jobs/handlers/ping-handler.d.ts +6 -0
- package/dist/jobs/handlers/ping-handler.js +47 -0
- package/dist/jobs/handlers/storage-document-handler.d.ts +8 -0
- package/dist/jobs/handlers/storage-document-handler.js +47 -0
- package/dist/jobs/index.d.ts +2 -0
- package/dist/jobs/index.js +64 -0
- package/dist/jobs/memory-queue.d.ts +14 -0
- package/dist/jobs/memory-queue.js +129 -0
- package/dist/jobs/queue.d.ts +126 -0
- package/dist/jobs/queue.js +55 -0
- package/dist/jobs/queue.test.d.ts +1 -0
- package/dist/jobs/scaleway-sqs-queue.d.ts +27 -0
- package/dist/jobs/scaleway-sqs-queue.js +222 -0
- package/dist/jsonschema.d.ts +39 -0
- package/dist/jsonschema.js +73 -0
- package/dist/jsonschema.test.d.ts +1 -0
- package/dist/knowledge/binding.d.ts +22 -0
- package/dist/knowledge/binding.js +1 -0
- package/dist/knowledge/docs/knowledge.docblock.d.ts +2 -0
- package/dist/knowledge/docs/knowledge.docblock.js +301 -0
- package/dist/knowledge/index.d.ts +4 -0
- package/dist/knowledge/index.js +467 -0
- package/dist/knowledge/ingestion/document-processor.d.ts +22 -0
- package/dist/knowledge/ingestion/document-processor.js +95 -0
- package/dist/knowledge/ingestion/embedding-service.d.ts +8 -0
- package/dist/knowledge/ingestion/embedding-service.js +57 -0
- package/dist/knowledge/ingestion/gmail-adapter.d.ts +14 -0
- package/dist/knowledge/ingestion/gmail-adapter.js +103 -0
- package/dist/knowledge/ingestion/index.d.ts +5 -0
- package/dist/knowledge/ingestion/index.js +252 -0
- package/dist/knowledge/ingestion/ingestion.test.d.ts +1 -0
- package/dist/knowledge/ingestion/storage-adapter.d.ts +11 -0
- package/dist/knowledge/ingestion/storage-adapter.js +62 -0
- package/dist/knowledge/ingestion/vector-indexer.d.ts +14 -0
- package/dist/knowledge/ingestion/vector-indexer.js +63 -0
- package/dist/knowledge/knowledge.capability.d.ts +1 -0
- package/dist/knowledge/knowledge.capability.js +726 -0
- package/dist/knowledge/knowledge.feature.d.ts +5 -0
- package/dist/knowledge/knowledge.feature.js +300 -0
- package/dist/knowledge/operations.d.ts +311 -0
- package/dist/knowledge/operations.js +619 -0
- package/dist/knowledge/operations.test.d.ts +1 -0
- package/dist/knowledge/query/index.d.ts +1 -0
- package/dist/knowledge/query/index.js +110 -0
- package/dist/knowledge/query/service.d.ts +25 -0
- package/dist/knowledge/query/service.js +110 -0
- package/dist/knowledge/query/service.test.d.ts +1 -0
- package/dist/knowledge/runtime.d.ts +28 -0
- package/dist/knowledge/runtime.js +91 -0
- package/dist/knowledge/runtime.test.d.ts +1 -0
- package/dist/knowledge/source.d.ts +29 -0
- package/dist/knowledge/source.js +1 -0
- package/dist/knowledge/spaces/email-threads.d.ts +3 -0
- package/dist/knowledge/spaces/email-threads.js +102 -0
- package/dist/knowledge/spaces/financial-docs.d.ts +3 -0
- package/dist/knowledge/spaces/financial-docs.js +102 -0
- package/dist/knowledge/spaces/financial-overview.d.ts +3 -0
- package/dist/knowledge/spaces/financial-overview.js +102 -0
- package/dist/knowledge/spaces/index.d.ts +6 -0
- package/dist/knowledge/spaces/index.js +273 -0
- package/dist/knowledge/spaces/product-canon.d.ts +3 -0
- package/dist/knowledge/spaces/product-canon.js +102 -0
- package/dist/knowledge/spaces/spaces.test.d.ts +1 -0
- package/dist/knowledge/spaces/support-faq.d.ts +3 -0
- package/dist/knowledge/spaces/support-faq.js +103 -0
- package/dist/knowledge/spaces/uploaded-docs.d.ts +3 -0
- package/dist/knowledge/spaces/uploaded-docs.js +102 -0
- package/dist/knowledge/spec.d.ts +42 -0
- package/dist/knowledge/spec.js +228 -0
- package/dist/knowledge/spec.test.d.ts +1 -0
- package/dist/llm/exporters.d.ts +68 -0
- package/dist/llm/exporters.js +1011 -0
- package/dist/llm/index.d.ts +12 -0
- package/dist/llm/index.js +1465 -0
- package/dist/llm/prompts.d.ts +53 -0
- package/dist/llm/prompts.js +1456 -0
- package/dist/llm/types.d.ts +212 -0
- package/dist/llm/types.js +1 -0
- package/dist/markdown.d.ts +16 -0
- package/dist/markdown.js +529 -0
- package/dist/migrations.d.ts +48 -0
- package/dist/migrations.js +67 -0
- package/dist/migrations.test.d.ts +1 -0
- package/dist/model-registry.d.ts +9 -0
- package/dist/model-registry.js +64 -0
- package/dist/model-registry.test.d.ts +1 -0
- package/dist/node/app-config/app-config.capability.js +730 -0
- package/dist/node/app-config/app-config.contracts.js +713 -0
- package/dist/node/app-config/app-config.feature.js +255 -0
- package/dist/node/app-config/branding.js +0 -0
- package/dist/node/app-config/docs/app-config.docblock.js +383 -0
- package/dist/node/app-config/events.js +386 -0
- package/dist/node/app-config/index.js +2899 -0
- package/dist/node/app-config/lifecycle-contracts.js +870 -0
- package/dist/node/app-config/lifecycle.js +0 -0
- package/dist/node/app-config/runtime.js +734 -0
- package/dist/node/app-config/spec.js +229 -0
- package/dist/node/app-config/validation.js +650 -0
- package/dist/node/capabilities/capabilities.js +217 -0
- package/dist/node/capabilities/context.js +101 -0
- package/dist/node/capabilities/docs/capabilities.docblock.js +353 -0
- package/dist/node/capabilities/guards.js +177 -0
- package/dist/node/capabilities/index.js +739 -0
- package/dist/node/capabilities/meeting-recorder.js +154 -0
- package/dist/node/capabilities/openbanking.js +166 -0
- package/dist/node/capabilities/validation.js +185 -0
- package/dist/node/contract-registry/index.js +129 -0
- package/dist/node/contract-registry/schemas.js +129 -0
- package/dist/node/contract-registry/types.js +0 -0
- package/dist/node/data-views/data-views.js +232 -0
- package/dist/node/data-views/docs/data-views.docblock.js +164 -0
- package/dist/node/data-views/index.js +232 -0
- package/dist/node/data-views/query-generator.js +89 -0
- package/dist/node/data-views/registry.js +226 -0
- package/dist/node/data-views/report/contractVerificationTable.js +240 -0
- package/dist/node/data-views/runtime.js +108 -0
- package/dist/node/data-views/spec.js +38 -0
- package/dist/node/data-views/types.js +0 -0
- package/dist/node/docs/accessibility_wcag_compliance_specs.docblock.js +513 -0
- package/dist/node/docs/capabilities/documentationSystem.capability.js +784 -0
- package/dist/node/docs/capabilities/index.js +784 -0
- package/dist/node/docs/commands/docsGenerate.command.js +802 -0
- package/dist/node/docs/commands/docsPublish.command.js +781 -0
- package/dist/node/docs/commands/index.js +906 -0
- package/dist/node/docs/constants.js +78 -0
- package/dist/node/docs/contracts.js +1611 -0
- package/dist/node/docs/ensure-docblocks.js +264 -0
- package/dist/node/docs/events/docsGenerated.event.js +533 -0
- package/dist/node/docs/events/docsPublished.event.js +534 -0
- package/dist/node/docs/events/index.js +567 -0
- package/dist/node/docs/forms/docsSearch.form.js +676 -0
- package/dist/node/docs/forms/index.js +676 -0
- package/dist/node/docs/index.js +4719 -0
- package/dist/node/docs/meta.docs.js +176 -0
- package/dist/node/docs/presentations/docsLayout.presentation.js +527 -0
- package/dist/node/docs/presentations/docsReferencePage.presentation.js +527 -0
- package/dist/node/docs/presentations/index.js +555 -0
- package/dist/node/docs/presentations.js +97 -0
- package/dist/node/docs/queries/contractReference.query.js +752 -0
- package/dist/node/docs/queries/docsIndex.query.js +752 -0
- package/dist/node/docs/queries/index.js +827 -0
- package/dist/node/docs/registry.js +153 -0
- package/dist/node/docs/tech/auth/better-auth-nextjs.docblock.js +221 -0
- package/dist/node/docs/tech/cli.docblock.js +291 -0
- package/dist/node/docs/tech/contracts/README.docblock.js +164 -0
- package/dist/node/docs/tech/contracts/migrations.docblock.js +164 -0
- package/dist/node/docs/tech/contracts/openapi-export.docblock.js +201 -0
- package/dist/node/docs/tech/contracts/openapi-import.docblock.js +207 -0
- package/dist/node/docs/tech/contracts/ops-to-presentation-linking.docblock.js +225 -0
- package/dist/node/docs/tech/contracts/overlays.docblock.js +231 -0
- package/dist/node/docs/tech/contracts/tests.docblock.js +164 -0
- package/dist/node/docs/tech/contracts/themes.docblock.js +257 -0
- package/dist/node/docs/tech/contracts/vertical-pocket-family-office.docblock.js +269 -0
- package/dist/node/docs/tech/docs-system.docblock.js +264 -0
- package/dist/node/docs/tech/lifecycle-stage-system.docblock.js +376 -0
- package/dist/node/docs/tech/llm/llm-integration.docblock.js +482 -0
- package/dist/node/docs/tech/mcp-endpoints.docblock.js +185 -0
- package/dist/node/docs/tech/presentation-runtime.docblock.js +221 -0
- package/dist/node/docs/tech/report-verification-table.docblock.js +191 -0
- package/dist/node/docs/tech/schema/README.docblock.js +164 -0
- package/dist/node/docs/tech/studio/learning-events.docblock.js +190 -0
- package/dist/node/docs/tech/studio/learning-journeys.docblock.js +227 -0
- package/dist/node/docs/tech/studio/platform-admin-panel.docblock.js +226 -0
- package/dist/node/docs/tech/studio/project-access-teams.docblock.js +200 -0
- package/dist/node/docs/tech/studio/project-routing.docblock.js +209 -0
- package/dist/node/docs/tech/studio/sandbox-unlogged.docblock.js +183 -0
- package/dist/node/docs/tech/studio/team-invitations.docblock.js +228 -0
- package/dist/node/docs/tech/studio/workspace-ops.docblock.js +189 -0
- package/dist/node/docs/tech/studio/workspaces.docblock.js +204 -0
- package/dist/node/docs/tech/telemetry-ingest.docblock.js +305 -0
- package/dist/node/docs/tech/vscode-extension.docblock.js +241 -0
- package/dist/node/docs/tech-contracts.docs.js +239 -0
- package/dist/node/docs/types.js +0 -0
- package/dist/node/docs/views/contractReference.dataView.js +838 -0
- package/dist/node/docs/views/docsIndex.dataView.js +832 -0
- package/dist/node/docs/views/exampleCatalog.dataView.js +816 -0
- package/dist/node/docs/views/index.js +1031 -0
- package/dist/node/events.js +228 -0
- package/dist/node/examples/define.js +36 -0
- package/dist/node/examples/docs/examples.docblock.js +307 -0
- package/dist/node/examples/index.js +604 -0
- package/dist/node/examples/registry.js +286 -0
- package/dist/node/examples/schema.js +166 -0
- package/dist/node/examples/types.js +77 -0
- package/dist/node/examples/validation.js +287 -0
- package/dist/node/experiments/docs/experiments.docblock.js +291 -0
- package/dist/node/experiments/evaluator.js +155 -0
- package/dist/node/experiments/spec-resolver.js +0 -0
- package/dist/node/experiments/spec.js +227 -0
- package/dist/node/features/index.js +275 -0
- package/dist/node/features/install.js +95 -0
- package/dist/node/features/registry.js +192 -0
- package/dist/node/features/types.js +36 -0
- package/dist/node/features/validation.js +48 -0
- package/dist/node/forms/docs/forms.docblock.js +164 -0
- package/dist/node/forms/forms.js +332 -0
- package/dist/node/forms/index.js +332 -0
- package/dist/node/index.js +2195 -0
- package/dist/node/install.js +60 -0
- package/dist/node/integrations/binding.js +0 -0
- package/dist/node/integrations/connection.js +0 -0
- package/dist/node/integrations/docs/integrations.docblock.js +140 -0
- package/dist/node/integrations/health.js +103 -0
- package/dist/node/integrations/index.js +3293 -0
- package/dist/node/integrations/integrations.capability.js +48 -0
- package/dist/node/integrations/integrations.feature.js +63 -0
- package/dist/node/integrations/meeting-recorder/contracts/index.js +504 -0
- package/dist/node/integrations/meeting-recorder/contracts/meetings.js +249 -0
- package/dist/node/integrations/meeting-recorder/contracts/transcripts.js +317 -0
- package/dist/node/integrations/meeting-recorder/contracts/webhooks.js +202 -0
- package/dist/node/integrations/meeting-recorder/meeting-recorder.capability.js +48 -0
- package/dist/node/integrations/meeting-recorder/meeting-recorder.feature.js +63 -0
- package/dist/node/integrations/meeting-recorder/models.js +152 -0
- package/dist/node/integrations/meeting-recorder/telemetry.js +84 -0
- package/dist/node/integrations/openbanking/contracts/accounts.js +358 -0
- package/dist/node/integrations/openbanking/contracts/balances.js +322 -0
- package/dist/node/integrations/openbanking/contracts/index.js +674 -0
- package/dist/node/integrations/openbanking/contracts/transactions.js +328 -0
- package/dist/node/integrations/openbanking/guards.js +72 -0
- package/dist/node/integrations/openbanking/models.js +140 -0
- package/dist/node/integrations/openbanking/openbanking.capability.js +48 -0
- package/dist/node/integrations/openbanking/openbanking.feature.js +65 -0
- package/dist/node/integrations/openbanking/telemetry.js +81 -0
- package/dist/node/integrations/operations.js +327 -0
- package/dist/node/integrations/providers/analytics-reader.js +0 -0
- package/dist/node/integrations/providers/analytics-writer.js +0 -0
- package/dist/node/integrations/providers/analytics.js +0 -0
- package/dist/node/integrations/providers/calendar.js +0 -0
- package/dist/node/integrations/providers/database.js +0 -0
- package/dist/node/integrations/providers/elevenlabs.js +116 -0
- package/dist/node/integrations/providers/email.js +0 -0
- package/dist/node/integrations/providers/embedding.js +0 -0
- package/dist/node/integrations/providers/fal.js +142 -0
- package/dist/node/integrations/providers/fathom.js +156 -0
- package/dist/node/integrations/providers/fireflies.js +136 -0
- package/dist/node/integrations/providers/gcs-storage.js +127 -0
- package/dist/node/integrations/providers/gmail.js +139 -0
- package/dist/node/integrations/providers/google-calendar.js +122 -0
- package/dist/node/integrations/providers/gradium.js +140 -0
- package/dist/node/integrations/providers/granola.js +137 -0
- package/dist/node/integrations/providers/index.js +2124 -0
- package/dist/node/integrations/providers/jira.js +138 -0
- package/dist/node/integrations/providers/linear.js +137 -0
- package/dist/node/integrations/providers/llm.js +0 -0
- package/dist/node/integrations/providers/meeting-recorder.js +0 -0
- package/dist/node/integrations/providers/mistral.js +124 -0
- package/dist/node/integrations/providers/notion.js +143 -0
- package/dist/node/integrations/providers/openbanking.js +0 -0
- package/dist/node/integrations/providers/payments.js +0 -0
- package/dist/node/integrations/providers/posthog-llm-telemetry.js +206 -0
- package/dist/node/integrations/providers/posthog.js +136 -0
- package/dist/node/integrations/providers/postmark.js +128 -0
- package/dist/node/integrations/providers/powens.js +154 -0
- package/dist/node/integrations/providers/project-management.js +0 -0
- package/dist/node/integrations/providers/qdrant.js +131 -0
- package/dist/node/integrations/providers/registry.js +1908 -0
- package/dist/node/integrations/providers/sms.js +0 -0
- package/dist/node/integrations/providers/storage.js +0 -0
- package/dist/node/integrations/providers/stripe.js +135 -0
- package/dist/node/integrations/providers/supabase-postgres.js +117 -0
- package/dist/node/integrations/providers/supabase-vector.js +137 -0
- package/dist/node/integrations/providers/tldv.js +136 -0
- package/dist/node/integrations/providers/twilio-sms.js +121 -0
- package/dist/node/integrations/providers/vector-store.js +0 -0
- package/dist/node/integrations/providers/voice.js +0 -0
- package/dist/node/integrations/runtime.js +239 -0
- package/dist/node/integrations/secrets/aws-secret-manager.js +376 -0
- package/dist/node/integrations/secrets/env-secret-provider.js +189 -0
- package/dist/node/integrations/secrets/gcp-secret-manager.js +377 -0
- package/dist/node/integrations/secrets/index.js +1159 -0
- package/dist/node/integrations/secrets/manager.js +213 -0
- package/dist/node/integrations/secrets/provider.js +104 -0
- package/dist/node/integrations/secrets/scaleway-secret-manager.js +405 -0
- package/dist/node/integrations/secrets-types.js +0 -0
- package/dist/node/integrations/spec.js +52 -0
- package/dist/node/jobs/define-job.js +41 -0
- package/dist/node/jobs/gcp-cloud-tasks.js +103 -0
- package/dist/node/jobs/gcp-pubsub.js +91 -0
- package/dist/node/jobs/handlers/gmail-sync-handler.js +40 -0
- package/dist/node/jobs/handlers/index.js +83 -0
- package/dist/node/jobs/handlers/ping-handler.js +47 -0
- package/dist/node/jobs/handlers/storage-document-handler.js +47 -0
- package/dist/node/jobs/index.js +64 -0
- package/dist/node/jobs/memory-queue.js +129 -0
- package/dist/node/jobs/queue.js +55 -0
- package/dist/node/jobs/scaleway-sqs-queue.js +222 -0
- package/dist/node/jsonschema.js +73 -0
- package/dist/node/knowledge/binding.js +0 -0
- package/dist/node/knowledge/docs/knowledge.docblock.js +301 -0
- package/dist/node/knowledge/index.js +467 -0
- package/dist/node/knowledge/ingestion/document-processor.js +95 -0
- package/dist/node/knowledge/ingestion/embedding-service.js +57 -0
- package/dist/node/knowledge/ingestion/gmail-adapter.js +103 -0
- package/dist/node/knowledge/ingestion/index.js +252 -0
- package/dist/node/knowledge/ingestion/storage-adapter.js +62 -0
- package/dist/node/knowledge/ingestion/vector-indexer.js +63 -0
- package/dist/node/knowledge/knowledge.capability.js +726 -0
- package/dist/node/knowledge/knowledge.feature.js +300 -0
- package/dist/node/knowledge/operations.js +619 -0
- package/dist/node/knowledge/query/index.js +110 -0
- package/dist/node/knowledge/query/service.js +110 -0
- package/dist/node/knowledge/runtime.js +91 -0
- package/dist/node/knowledge/source.js +0 -0
- package/dist/node/knowledge/spaces/email-threads.js +102 -0
- package/dist/node/knowledge/spaces/financial-docs.js +102 -0
- package/dist/node/knowledge/spaces/financial-overview.js +102 -0
- package/dist/node/knowledge/spaces/index.js +273 -0
- package/dist/node/knowledge/spaces/product-canon.js +102 -0
- package/dist/node/knowledge/spaces/support-faq.js +103 -0
- package/dist/node/knowledge/spaces/uploaded-docs.js +102 -0
- package/dist/node/knowledge/spec.js +228 -0
- package/dist/node/llm/exporters.js +1011 -0
- package/dist/node/llm/index.js +1465 -0
- package/dist/node/llm/prompts.js +1456 -0
- package/dist/node/llm/types.js +0 -0
- package/dist/node/markdown.js +529 -0
- package/dist/node/migrations.js +67 -0
- package/dist/node/model-registry.js +64 -0
- package/dist/node/onboarding-base.js +597 -0
- package/dist/node/openapi.js +151 -0
- package/dist/node/operations/index.js +408 -0
- package/dist/node/operations/operation.js +51 -0
- package/dist/node/operations/registry.js +405 -0
- package/dist/node/operations/report/getContractVerificationStatus.js +170 -0
- package/dist/node/operations/report/index.js +305 -0
- package/dist/node/ownership.js +73 -0
- package/dist/node/policy/context.js +206 -0
- package/dist/node/policy/docs/policy.docblock.js +313 -0
- package/dist/node/policy/engine.js +325 -0
- package/dist/node/policy/guards.js +387 -0
- package/dist/node/policy/index.js +1313 -0
- package/dist/node/policy/opa-adapter.js +110 -0
- package/dist/node/policy/registry.js +221 -0
- package/dist/node/policy/spec.js +0 -0
- package/dist/node/policy/validation.js +391 -0
- package/dist/node/presentations/docs/presentations-conventions.docblock.js +171 -0
- package/dist/node/presentations/index.js +227 -0
- package/dist/node/presentations/presentations.js +38 -0
- package/dist/node/presentations/registry.js +221 -0
- package/dist/node/presentations/transform-engine.js +600 -0
- package/dist/node/product-intent/contract-patch-intent.js +68 -0
- package/dist/node/product-intent/contract-spec-patch.js +75 -0
- package/dist/node/product-intent/evidence.js +45 -0
- package/dist/node/product-intent/findings.js +81 -0
- package/dist/node/product-intent/impact-report.js +62 -0
- package/dist/node/product-intent/index.js +742 -0
- package/dist/node/product-intent/insights.js +63 -0
- package/dist/node/product-intent/opportunity-brief.js +106 -0
- package/dist/node/product-intent/problems.js +55 -0
- package/dist/node/product-intent/registry.js +242 -0
- package/dist/node/product-intent/runtime.js +320 -0
- package/dist/node/product-intent/spec.js +425 -0
- package/dist/node/product-intent/task-pack.js +69 -0
- package/dist/node/product-intent/tickets.js +57 -0
- package/dist/node/product-intent/types.js +378 -0
- package/dist/node/product-intent/ui-wireframe.js +73 -0
- package/dist/node/prompt.js +38 -0
- package/dist/node/promptRegistry.js +63 -0
- package/dist/node/regenerator/adapters.js +0 -0
- package/dist/node/regenerator/docs/regenerator.docblock.js +164 -0
- package/dist/node/regenerator/executor.js +157 -0
- package/dist/node/regenerator/index.js +341 -0
- package/dist/node/regenerator/service.js +183 -0
- package/dist/node/regenerator/sinks.js +64 -0
- package/dist/node/regenerator/types.js +0 -0
- package/dist/node/regenerator/utils.js +87 -0
- package/dist/node/registry-utils.js +163 -0
- package/dist/node/registry.js +215 -0
- package/dist/node/resources.js +83 -0
- package/dist/node/schema-to-markdown.js +278 -0
- package/dist/node/serialization/index.js +179 -0
- package/dist/node/serialization/serializers.js +180 -0
- package/dist/node/serialization/types.js +0 -0
- package/dist/node/telemetry/anomaly.js +91 -0
- package/dist/node/telemetry/docs/telemetry.docblock.js +164 -0
- package/dist/node/telemetry/index.js +417 -0
- package/dist/node/telemetry/spec.js +261 -0
- package/dist/node/telemetry/tracker.js +129 -0
- package/dist/node/tests/index.js +231 -0
- package/dist/node/tests/runner.js +189 -0
- package/dist/node/tests/spec.js +74 -0
- package/dist/node/themes.js +225 -0
- package/dist/node/translations/catalog.js +0 -0
- package/dist/node/translations/index.js +533 -0
- package/dist/node/translations/registry.js +170 -0
- package/dist/node/translations/spec.js +36 -0
- package/dist/node/translations/tenant.js +0 -0
- package/dist/node/translations/validation.js +392 -0
- package/dist/node/types.js +0 -0
- package/dist/node/versioning/index.js +274 -0
- package/dist/node/versioning/refs.js +99 -0
- package/dist/node/versioning/types.js +55 -0
- package/dist/node/versioning/utils.js +184 -0
- package/dist/node/workflow/adapters/db-adapter.js +127 -0
- package/dist/node/workflow/adapters/file-adapter.js +38 -0
- package/dist/node/workflow/adapters/index.js +194 -0
- package/dist/node/workflow/adapters/memory-store.js +93 -0
- package/dist/node/workflow/context.js +247 -0
- package/dist/node/workflow/expression.js +157 -0
- package/dist/node/workflow/index.js +1546 -0
- package/dist/node/workflow/overview.docblock.js +164 -0
- package/dist/node/workflow/runner.js +532 -0
- package/dist/node/workflow/sla-monitor.js +84 -0
- package/dist/node/workflow/spec.js +221 -0
- package/dist/node/workflow/state.js +0 -0
- package/dist/node/workflow/validation.js +425 -0
- package/dist/node/workspace-config/contractsrc-schema.js +344 -0
- package/dist/node/workspace-config/contractsrc-types.js +0 -0
- package/dist/node/workspace-config/index.js +325 -0
- package/dist/node/workspace-config/workspace-config.docblock.js +188 -0
- package/dist/onboarding-base.d.ts +131 -0
- package/dist/onboarding-base.js +597 -0
- package/dist/openapi.d.ts +33 -0
- package/dist/openapi.js +151 -0
- package/dist/operations/index.d.ts +2 -0
- package/dist/operations/index.js +408 -0
- package/dist/operations/operation.d.ts +191 -0
- package/dist/operations/operation.js +51 -0
- package/dist/operations/registry.d.ts +58 -0
- package/dist/operations/registry.js +405 -0
- package/dist/operations/report/getContractVerificationStatus.d.ts +68 -0
- package/dist/operations/report/getContractVerificationStatus.js +170 -0
- package/dist/operations/report/getContractVerificationStatus.test.d.ts +1 -0
- package/dist/operations/report/index.d.ts +10 -0
- package/dist/operations/report/index.js +305 -0
- package/dist/operations/report/index.test.d.ts +1 -0
- package/dist/ownership.d.ts +211 -0
- package/dist/ownership.js +73 -0
- package/dist/ownership.test.d.ts +1 -0
- package/dist/policy/context.d.ts +234 -0
- package/dist/policy/context.js +206 -0
- package/dist/policy/context.test.d.ts +1 -0
- package/dist/policy/docs/policy.docblock.d.ts +2 -0
- package/dist/policy/docs/policy.docblock.js +313 -0
- package/dist/policy/engine.d.ts +36 -0
- package/dist/policy/engine.js +325 -0
- package/dist/policy/engine.test.d.ts +1 -0
- package/dist/policy/guards.d.ts +156 -0
- package/dist/policy/guards.js +387 -0
- package/dist/policy/guards.test.d.ts +1 -0
- package/dist/policy/index.d.ts +12 -0
- package/dist/policy/index.js +1313 -0
- package/dist/policy/opa-adapter.d.ts +41 -0
- package/dist/policy/opa-adapter.js +110 -0
- package/dist/policy/opa-adapter.test.d.ts +1 -0
- package/dist/policy/registry.d.ts +5 -0
- package/dist/policy/registry.js +221 -0
- package/dist/policy/spec.d.ts +102 -0
- package/dist/policy/spec.js +1 -0
- package/dist/policy/validation.d.ts +84 -0
- package/dist/policy/validation.js +391 -0
- package/dist/policy/validation.test.d.ts +1 -0
- package/dist/presentations/docs/presentations-conventions.docblock.d.ts +2 -0
- package/dist/presentations/docs/presentations-conventions.docblock.js +171 -0
- package/dist/presentations/index.d.ts +2 -0
- package/dist/presentations/index.js +227 -0
- package/dist/presentations/presentations.d.ts +52 -0
- package/dist/presentations/presentations.js +38 -0
- package/dist/presentations/registry.d.ts +6 -0
- package/dist/presentations/registry.js +221 -0
- package/dist/presentations/transform-engine.d.ts +62 -0
- package/dist/presentations/transform-engine.js +600 -0
- package/dist/presentations/transform-engine.test.d.ts +1 -0
- package/dist/product-intent/contract-patch-intent.d.ts +100 -0
- package/dist/product-intent/contract-patch-intent.js +68 -0
- package/dist/product-intent/contract-spec-patch.d.ts +86 -0
- package/dist/product-intent/contract-spec-patch.js +75 -0
- package/dist/product-intent/evidence.d.ts +14 -0
- package/dist/product-intent/evidence.js +45 -0
- package/dist/product-intent/findings.d.ts +57 -0
- package/dist/product-intent/findings.js +81 -0
- package/dist/product-intent/impact-report.d.ts +57 -0
- package/dist/product-intent/impact-report.js +62 -0
- package/dist/product-intent/index.d.ts +13 -0
- package/dist/product-intent/index.js +742 -0
- package/dist/product-intent/insights.d.ts +62 -0
- package/dist/product-intent/insights.js +63 -0
- package/dist/product-intent/opportunity-brief.d.ts +192 -0
- package/dist/product-intent/opportunity-brief.js +106 -0
- package/dist/product-intent/problems.d.ts +59 -0
- package/dist/product-intent/problems.js +55 -0
- package/dist/product-intent/registry.d.ts +28 -0
- package/dist/product-intent/registry.js +242 -0
- package/dist/product-intent/registry.test.d.ts +1 -0
- package/dist/product-intent/runtime.d.ts +92 -0
- package/dist/product-intent/runtime.js +320 -0
- package/dist/product-intent/runtime.test.d.ts +1 -0
- package/dist/product-intent/spec.d.ts +664 -0
- package/dist/product-intent/spec.js +425 -0
- package/dist/product-intent/task-pack.d.ts +98 -0
- package/dist/product-intent/task-pack.js +69 -0
- package/dist/product-intent/tickets.d.ts +67 -0
- package/dist/product-intent/tickets.js +57 -0
- package/dist/product-intent/types.d.ts +11 -0
- package/dist/product-intent/types.js +378 -0
- package/dist/product-intent/ui-wireframe.d.ts +100 -0
- package/dist/product-intent/ui-wireframe.js +73 -0
- package/dist/prompt.d.ts +49 -0
- package/dist/prompt.js +38 -0
- package/dist/prompt.test.d.ts +1 -0
- package/dist/promptRegistry.d.ts +11 -0
- package/dist/promptRegistry.js +63 -0
- package/dist/promptRegistry.test.d.ts +1 -0
- package/dist/regenerator/adapters.d.ts +15 -0
- package/dist/regenerator/adapters.js +1 -0
- package/dist/regenerator/docs/regenerator.docblock.d.ts +2 -0
- package/dist/regenerator/docs/regenerator.docblock.js +164 -0
- package/dist/regenerator/executor.d.ts +66 -0
- package/dist/regenerator/executor.js +157 -0
- package/dist/regenerator/executor.test.d.ts +1 -0
- package/dist/regenerator/index.d.ts +6 -0
- package/dist/regenerator/index.js +341 -0
- package/dist/regenerator/service.d.ts +29 -0
- package/dist/regenerator/service.js +183 -0
- package/dist/regenerator/service.test.d.ts +1 -0
- package/dist/regenerator/sinks.d.ts +23 -0
- package/dist/regenerator/sinks.js +64 -0
- package/dist/regenerator/sinks.test.d.ts +1 -0
- package/dist/regenerator/types.d.ts +103 -0
- package/dist/regenerator/types.js +1 -0
- package/dist/regenerator/utils.d.ts +6 -0
- package/dist/regenerator/utils.js +87 -0
- package/dist/registry-utils.d.ts +105 -0
- package/dist/registry-utils.js +163 -0
- package/dist/registry-utils.test.d.ts +1 -0
- package/dist/registry.d.ts +27 -0
- package/dist/registry.js +215 -0
- package/dist/resources.d.ts +60 -0
- package/dist/resources.js +83 -0
- package/dist/schema-to-markdown.d.ts +56 -0
- package/dist/schema-to-markdown.js +278 -0
- package/dist/serialization/index.d.ts +10 -0
- package/dist/serialization/index.js +179 -0
- package/dist/serialization/serializers.d.ts +35 -0
- package/dist/serialization/serializers.js +180 -0
- package/dist/serialization/types.d.ts +100 -0
- package/dist/serialization/types.js +1 -0
- package/dist/telemetry/anomaly.d.ts +23 -0
- package/dist/telemetry/anomaly.js +91 -0
- package/dist/telemetry/anomaly.test.d.ts +1 -0
- package/dist/telemetry/docs/telemetry.docblock.d.ts +2 -0
- package/dist/telemetry/docs/telemetry.docblock.js +164 -0
- package/dist/telemetry/index.d.ts +3 -0
- package/dist/telemetry/index.js +417 -0
- package/dist/telemetry/spec.d.ts +87 -0
- package/dist/telemetry/spec.js +261 -0
- package/dist/telemetry/spec.test.d.ts +1 -0
- package/dist/telemetry/tracker.d.ts +48 -0
- package/dist/telemetry/tracker.js +129 -0
- package/dist/telemetry/tracker.test.d.ts +1 -0
- package/dist/tests/index.d.ts +2 -0
- package/dist/tests/index.js +231 -0
- package/dist/tests/runner.d.ts +38 -0
- package/dist/tests/runner.js +189 -0
- package/dist/tests/runner.test.d.ts +1 -0
- package/dist/tests/spec.d.ts +82 -0
- package/dist/tests/spec.js +74 -0
- package/dist/tests/spec.test.d.ts +1 -0
- package/dist/themes.d.ts +50 -0
- package/dist/themes.js +225 -0
- package/dist/themes.test.d.ts +1 -0
- package/dist/translations/catalog.d.ts +25 -0
- package/dist/translations/catalog.js +1 -0
- package/dist/translations/index.d.ts +44 -0
- package/dist/translations/index.js +533 -0
- package/dist/translations/registry.d.ts +172 -0
- package/dist/translations/registry.js +170 -0
- package/dist/translations/registry.test.d.ts +1 -0
- package/dist/translations/spec.d.ts +153 -0
- package/dist/translations/spec.js +36 -0
- package/dist/translations/spec.test.d.ts +1 -0
- package/dist/translations/tenant.d.ts +11 -0
- package/dist/translations/tenant.js +1 -0
- package/dist/translations/validation.d.ts +106 -0
- package/dist/translations/validation.js +392 -0
- package/dist/translations/validation.test.d.ts +1 -0
- package/dist/types.d.ts +212 -0
- package/dist/types.js +1 -0
- package/dist/versioning/index.d.ts +9 -0
- package/dist/versioning/index.js +274 -0
- package/dist/versioning/refs.d.ts +176 -0
- package/dist/versioning/refs.js +99 -0
- package/dist/versioning/refs.test.d.ts +4 -0
- package/dist/versioning/types.d.ts +130 -0
- package/dist/versioning/types.js +55 -0
- package/dist/versioning/utils.d.ts +93 -0
- package/dist/versioning/utils.js +184 -0
- package/dist/versioning/utils.test.d.ts +4 -0
- package/dist/workflow/adapters/db-adapter.d.ts +43 -0
- package/dist/workflow/adapters/db-adapter.js +127 -0
- package/dist/workflow/adapters/file-adapter.d.ts +10 -0
- package/dist/workflow/adapters/file-adapter.js +38 -0
- package/dist/workflow/adapters/index.d.ts +3 -0
- package/dist/workflow/adapters/index.js +194 -0
- package/dist/workflow/adapters/memory-store.d.ts +13 -0
- package/dist/workflow/adapters/memory-store.js +93 -0
- package/dist/workflow/context.d.ts +217 -0
- package/dist/workflow/context.js +247 -0
- package/dist/workflow/context.test.d.ts +1 -0
- package/dist/workflow/expression.d.ts +6 -0
- package/dist/workflow/expression.js +157 -0
- package/dist/workflow/expression.test.d.ts +1 -0
- package/dist/workflow/index.d.ts +13 -0
- package/dist/workflow/index.js +1546 -0
- package/dist/workflow/overview.docblock.d.ts +2 -0
- package/dist/workflow/overview.docblock.js +164 -0
- package/dist/workflow/runner.d.ts +71 -0
- package/dist/workflow/runner.js +532 -0
- package/dist/workflow/runner.test.d.ts +1 -0
- package/dist/workflow/sla-monitor.d.ts +16 -0
- package/dist/workflow/sla-monitor.js +84 -0
- package/dist/workflow/spec.d.ts +81 -0
- package/dist/workflow/spec.js +221 -0
- package/dist/workflow/state.d.ts +31 -0
- package/dist/workflow/state.js +1 -0
- package/dist/workflow/validation.d.ts +87 -0
- package/dist/workflow/validation.js +425 -0
- package/dist/workflow/validation.test.d.ts +1 -0
- package/dist/workspace-config/contractsrc-schema.d.ts +144 -0
- package/dist/workspace-config/contractsrc-schema.js +344 -0
- package/dist/workspace-config/contractsrc-schema.test.d.ts +1 -0
- package/dist/workspace-config/contractsrc-types.d.ts +342 -0
- package/dist/workspace-config/contractsrc-types.js +1 -0
- package/dist/workspace-config/index.d.ts +5 -0
- package/dist/workspace-config/index.js +325 -0
- package/dist/workspace-config/workspace-config.docblock.d.ts +2 -0
- package/dist/workspace-config/workspace-config.docblock.js +188 -0
- package/package.json +4426 -0
|
@@ -0,0 +1,600 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
|
7
|
+
var __toCommonJS = (from) => {
|
|
8
|
+
var entry = __moduleCache.get(from), desc;
|
|
9
|
+
if (entry)
|
|
10
|
+
return entry;
|
|
11
|
+
entry = __defProp({}, "__esModule", { value: true });
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function")
|
|
13
|
+
__getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
}));
|
|
17
|
+
__moduleCache.set(from, entry);
|
|
18
|
+
return entry;
|
|
19
|
+
};
|
|
20
|
+
var __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, {
|
|
23
|
+
get: all[name],
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
set: (newValue) => all[name] = () => newValue
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
30
|
+
var __require = import.meta.require;
|
|
31
|
+
|
|
32
|
+
// src/schema-to-markdown.ts
|
|
33
|
+
import { isSchemaModel } from "@contractspec/lib.schema/SchemaModel";
|
|
34
|
+
function schemaToMarkdown(schema, data, options = {}) {
|
|
35
|
+
const { format = "auto", title, description, maxDepth = 2 } = options;
|
|
36
|
+
const lines = [];
|
|
37
|
+
if (title) {
|
|
38
|
+
lines.push(`# ${title}`, "");
|
|
39
|
+
}
|
|
40
|
+
if (description) {
|
|
41
|
+
lines.push(`> ${description}`, "");
|
|
42
|
+
}
|
|
43
|
+
const effectiveFormat = format === "auto" ? Array.isArray(data) ? "table" : "detail" : format;
|
|
44
|
+
if (effectiveFormat === "table" && Array.isArray(data)) {
|
|
45
|
+
lines.push(schemaToMarkdownTable(schema, data, options));
|
|
46
|
+
} else if (effectiveFormat === "list" && Array.isArray(data)) {
|
|
47
|
+
lines.push(schemaToMarkdownList(schema, data, options));
|
|
48
|
+
} else if (!Array.isArray(data) && data !== null && typeof data === "object") {
|
|
49
|
+
lines.push(schemaToMarkdownDetail(schema, data, { ...options, maxDepth }));
|
|
50
|
+
} else {
|
|
51
|
+
lines.push(`**Data:** ${String(data)}`, "");
|
|
52
|
+
}
|
|
53
|
+
return lines.join(`
|
|
54
|
+
`);
|
|
55
|
+
}
|
|
56
|
+
function schemaToMarkdownTable(schema, items, options = {}) {
|
|
57
|
+
const { maxItems = 100, includeFields, excludeFields = [] } = options;
|
|
58
|
+
const fields = getFieldMeta(schema, includeFields, excludeFields);
|
|
59
|
+
if (fields.length === 0 || items.length === 0) {
|
|
60
|
+
return `_No data available_
|
|
61
|
+
`;
|
|
62
|
+
}
|
|
63
|
+
const limitedItems = items.slice(0, maxItems);
|
|
64
|
+
const lines = [];
|
|
65
|
+
const headers = fields.map((f) => f.label);
|
|
66
|
+
lines.push(`| ${headers.join(" | ")} |`);
|
|
67
|
+
lines.push(`| ${headers.map(() => "---").join(" | ")} |`);
|
|
68
|
+
for (const item of limitedItems) {
|
|
69
|
+
const row = fields.map((f) => formatCellValue(getFieldValue(item, f.name)));
|
|
70
|
+
lines.push(`| ${row.join(" | ")} |`);
|
|
71
|
+
}
|
|
72
|
+
if (items.length > maxItems) {
|
|
73
|
+
lines.push("", `_Showing ${maxItems} of ${items.length} items_`);
|
|
74
|
+
}
|
|
75
|
+
lines.push("");
|
|
76
|
+
return lines.join(`
|
|
77
|
+
`);
|
|
78
|
+
}
|
|
79
|
+
function schemaToMarkdownList(schema, items, options = {}) {
|
|
80
|
+
const {
|
|
81
|
+
maxItems = 50,
|
|
82
|
+
summaryFields,
|
|
83
|
+
includeFields,
|
|
84
|
+
excludeFields = []
|
|
85
|
+
} = options;
|
|
86
|
+
const fields = getFieldMeta(schema, includeFields, excludeFields);
|
|
87
|
+
const displayFields = summaryFields ? fields.filter((f) => summaryFields.includes(f.name)) : fields.slice(0, 3);
|
|
88
|
+
if (displayFields.length === 0 || items.length === 0) {
|
|
89
|
+
return `_No data available_
|
|
90
|
+
`;
|
|
91
|
+
}
|
|
92
|
+
const limitedItems = items.slice(0, maxItems);
|
|
93
|
+
const lines = [];
|
|
94
|
+
for (const item of limitedItems) {
|
|
95
|
+
const primaryValue = formatCellValue(getFieldValue(item, displayFields[0]?.name ?? "id"));
|
|
96
|
+
const secondaryValues = displayFields.slice(1).map((f) => `${f.label}: ${formatCellValue(getFieldValue(item, f.name))}`).join(" \xB7 ");
|
|
97
|
+
const itemLine = secondaryValues ? `- **${primaryValue}** (${secondaryValues})` : `- **${primaryValue}**`;
|
|
98
|
+
lines.push(itemLine);
|
|
99
|
+
}
|
|
100
|
+
if (items.length > maxItems) {
|
|
101
|
+
lines.push("", `_Showing ${maxItems} of ${items.length} items_`);
|
|
102
|
+
}
|
|
103
|
+
lines.push("");
|
|
104
|
+
return lines.join(`
|
|
105
|
+
`);
|
|
106
|
+
}
|
|
107
|
+
function schemaToMarkdownDetail(schema, item, options = {}) {
|
|
108
|
+
const { includeFields, excludeFields = [], maxDepth = 2 } = options;
|
|
109
|
+
if (item === null || typeof item !== "object") {
|
|
110
|
+
return `_No data available_
|
|
111
|
+
`;
|
|
112
|
+
}
|
|
113
|
+
const fields = getFieldMeta(schema, includeFields, excludeFields);
|
|
114
|
+
if (fields.length === 0) {
|
|
115
|
+
return `_No fields to display_
|
|
116
|
+
`;
|
|
117
|
+
}
|
|
118
|
+
const lines = [];
|
|
119
|
+
for (const field of fields) {
|
|
120
|
+
const value = getFieldValue(item, field.name);
|
|
121
|
+
const formattedValue = formatDetailValue(value, maxDepth, 0);
|
|
122
|
+
lines.push(`**${field.label}:** ${formattedValue}`);
|
|
123
|
+
}
|
|
124
|
+
lines.push("");
|
|
125
|
+
return lines.join(`
|
|
126
|
+
`);
|
|
127
|
+
}
|
|
128
|
+
function schemaToMarkdownSummary(items, options = {}) {
|
|
129
|
+
const { numericFields = [], countByField } = options;
|
|
130
|
+
const lines = [];
|
|
131
|
+
lines.push(`**Total Items:** ${items.length}`);
|
|
132
|
+
for (const fieldName of numericFields) {
|
|
133
|
+
const values = items.map((item) => getFieldValue(item, fieldName)).filter((v) => typeof v === "number");
|
|
134
|
+
if (values.length > 0) {
|
|
135
|
+
const sum = values.reduce((a, b) => a + b, 0);
|
|
136
|
+
const avg = sum / values.length;
|
|
137
|
+
const min = Math.min(...values);
|
|
138
|
+
const max = Math.max(...values);
|
|
139
|
+
lines.push(`**${formatFieldName(fieldName)}:** Sum: ${formatNumber(sum)}, Avg: ${formatNumber(avg)}, Min: ${formatNumber(min)}, Max: ${formatNumber(max)}`);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
if (countByField) {
|
|
143
|
+
const counts = {};
|
|
144
|
+
for (const item of items) {
|
|
145
|
+
const value = String(getFieldValue(item, countByField) ?? "Unknown");
|
|
146
|
+
counts[value] = (counts[value] ?? 0) + 1;
|
|
147
|
+
}
|
|
148
|
+
lines.push("", `**By ${formatFieldName(countByField)}:**`);
|
|
149
|
+
for (const [value, count] of Object.entries(counts)) {
|
|
150
|
+
lines.push(`- ${value}: ${count}`);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
lines.push("");
|
|
154
|
+
return lines.join(`
|
|
155
|
+
`);
|
|
156
|
+
}
|
|
157
|
+
function getFieldMeta(schema, includeFields, excludeFields = []) {
|
|
158
|
+
if (!isSchemaModel(schema)) {
|
|
159
|
+
return [];
|
|
160
|
+
}
|
|
161
|
+
const schemaFields = schema.config.fields;
|
|
162
|
+
const fieldNames = Object.keys(schemaFields);
|
|
163
|
+
const filteredFields = fieldNames.filter((name) => {
|
|
164
|
+
if (excludeFields.includes(name))
|
|
165
|
+
return false;
|
|
166
|
+
if (includeFields && !includeFields.includes(name))
|
|
167
|
+
return false;
|
|
168
|
+
return true;
|
|
169
|
+
});
|
|
170
|
+
return filteredFields.map((name) => {
|
|
171
|
+
const fieldConfig = schemaFields[name];
|
|
172
|
+
const isNested = Boolean(fieldConfig?.type && typeof fieldConfig.type === "object" && "config" in fieldConfig.type && typeof fieldConfig.type.config?.fields === "object");
|
|
173
|
+
return {
|
|
174
|
+
name,
|
|
175
|
+
label: formatFieldName(name),
|
|
176
|
+
isOptional: fieldConfig?.isOptional ?? false,
|
|
177
|
+
isArray: fieldConfig?.isArray === true,
|
|
178
|
+
isNested
|
|
179
|
+
};
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
function getFieldValue(item, fieldName) {
|
|
183
|
+
if (item === null || typeof item !== "object")
|
|
184
|
+
return;
|
|
185
|
+
const obj = item;
|
|
186
|
+
if (fieldName.includes(".")) {
|
|
187
|
+
const parts = fieldName.split(".");
|
|
188
|
+
let current = obj;
|
|
189
|
+
for (const part of parts) {
|
|
190
|
+
if (current === null || typeof current !== "object")
|
|
191
|
+
return;
|
|
192
|
+
current = current[part];
|
|
193
|
+
}
|
|
194
|
+
return current;
|
|
195
|
+
}
|
|
196
|
+
return obj[fieldName];
|
|
197
|
+
}
|
|
198
|
+
function formatCellValue(value) {
|
|
199
|
+
if (value === null || value === undefined)
|
|
200
|
+
return "-";
|
|
201
|
+
if (typeof value === "boolean")
|
|
202
|
+
return value ? "\u2713" : "\u2717";
|
|
203
|
+
if (typeof value === "number")
|
|
204
|
+
return formatNumber(value);
|
|
205
|
+
if (value instanceof Date)
|
|
206
|
+
return formatDate(value);
|
|
207
|
+
if (typeof value === "string" && isISODate(value))
|
|
208
|
+
return formatDate(new Date(value));
|
|
209
|
+
if (Array.isArray(value))
|
|
210
|
+
return `[${value.length} items]`;
|
|
211
|
+
if (typeof value === "object")
|
|
212
|
+
return "[Object]";
|
|
213
|
+
const str = String(value);
|
|
214
|
+
return str.length > 50 ? `${str.slice(0, 47)}...` : str.replace(/\|/g, "\\|");
|
|
215
|
+
}
|
|
216
|
+
function formatDetailValue(value, maxDepth, currentDepth) {
|
|
217
|
+
if (value === null || value === undefined)
|
|
218
|
+
return "_none_";
|
|
219
|
+
if (typeof value === "boolean")
|
|
220
|
+
return value ? "Yes" : "No";
|
|
221
|
+
if (typeof value === "number")
|
|
222
|
+
return formatNumber(value);
|
|
223
|
+
if (value instanceof Date)
|
|
224
|
+
return formatDate(value);
|
|
225
|
+
if (typeof value === "string" && isISODate(value))
|
|
226
|
+
return formatDate(new Date(value));
|
|
227
|
+
if (Array.isArray(value)) {
|
|
228
|
+
if (value.length === 0)
|
|
229
|
+
return "_empty list_";
|
|
230
|
+
if (currentDepth >= maxDepth)
|
|
231
|
+
return `[${value.length} items]`;
|
|
232
|
+
if (value.length <= 5 && value.every((v) => typeof v !== "object")) {
|
|
233
|
+
return value.map((v) => formatCellValue(v)).join(", ");
|
|
234
|
+
}
|
|
235
|
+
return `[${value.length} items]`;
|
|
236
|
+
}
|
|
237
|
+
if (typeof value === "object") {
|
|
238
|
+
if (currentDepth >= maxDepth)
|
|
239
|
+
return "[Object]";
|
|
240
|
+
const keys = Object.keys(value);
|
|
241
|
+
return `{${keys.length} fields}`;
|
|
242
|
+
}
|
|
243
|
+
return String(value);
|
|
244
|
+
}
|
|
245
|
+
function formatFieldName(name) {
|
|
246
|
+
return name.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/_/g, " ").replace(/^\w/, (c) => c.toUpperCase());
|
|
247
|
+
}
|
|
248
|
+
function formatNumber(value) {
|
|
249
|
+
if (Math.abs(value) >= 1000) {
|
|
250
|
+
return new Intl.NumberFormat("en-US", {
|
|
251
|
+
maximumFractionDigits: 2
|
|
252
|
+
}).format(value);
|
|
253
|
+
}
|
|
254
|
+
if (Number.isInteger(value)) {
|
|
255
|
+
return String(value);
|
|
256
|
+
}
|
|
257
|
+
return value.toFixed(2);
|
|
258
|
+
}
|
|
259
|
+
function formatDate(date) {
|
|
260
|
+
return date.toLocaleDateString("en-US", {
|
|
261
|
+
year: "numeric",
|
|
262
|
+
month: "short",
|
|
263
|
+
day: "numeric"
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
function isISODate(str) {
|
|
267
|
+
if (!/^\d{4}-\d{2}-\d{2}/.test(str))
|
|
268
|
+
return false;
|
|
269
|
+
const date = new Date(str);
|
|
270
|
+
return !isNaN(date.getTime());
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
// src/presentations/transform-engine.ts
|
|
274
|
+
import React from "react";
|
|
275
|
+
import TurndownService from "turndown";
|
|
276
|
+
var turndown = new TurndownService;
|
|
277
|
+
function renderTextNode(node) {
|
|
278
|
+
const text = node.text ?? "";
|
|
279
|
+
if (!node.marks || node.marks.length === 0)
|
|
280
|
+
return text;
|
|
281
|
+
return node.marks.reduce((acc, mark) => {
|
|
282
|
+
switch (mark.type) {
|
|
283
|
+
case "bold":
|
|
284
|
+
return `**${acc}**`;
|
|
285
|
+
case "italic":
|
|
286
|
+
return `*${acc}*`;
|
|
287
|
+
case "underline":
|
|
288
|
+
return `__${acc}__`;
|
|
289
|
+
case "strike":
|
|
290
|
+
return `~~${acc}~~`;
|
|
291
|
+
case "code":
|
|
292
|
+
return `\`${acc}\``;
|
|
293
|
+
case "link": {
|
|
294
|
+
const href = mark.attrs?.href ?? "";
|
|
295
|
+
return href ? `[${acc}](${href})` : acc;
|
|
296
|
+
}
|
|
297
|
+
default:
|
|
298
|
+
return acc;
|
|
299
|
+
}
|
|
300
|
+
}, text);
|
|
301
|
+
}
|
|
302
|
+
function renderInline(nodes) {
|
|
303
|
+
if (!nodes?.length)
|
|
304
|
+
return "";
|
|
305
|
+
return nodes.map((child) => renderNode(child)).join("");
|
|
306
|
+
}
|
|
307
|
+
function renderList(nodes, ordered = false) {
|
|
308
|
+
if (!nodes?.length)
|
|
309
|
+
return "";
|
|
310
|
+
let counter = 1;
|
|
311
|
+
return nodes.map((item) => {
|
|
312
|
+
const body = renderInline(item.content ?? []);
|
|
313
|
+
if (!body)
|
|
314
|
+
return "";
|
|
315
|
+
const prefix = ordered ? `${counter++}. ` : "- ";
|
|
316
|
+
return `${prefix}${body}`;
|
|
317
|
+
}).filter(Boolean).join(`
|
|
318
|
+
`);
|
|
319
|
+
}
|
|
320
|
+
function renderNode(node) {
|
|
321
|
+
switch (node.type) {
|
|
322
|
+
case "doc":
|
|
323
|
+
return renderInline(node.content);
|
|
324
|
+
case "paragraph": {
|
|
325
|
+
const text = renderInline(node.content);
|
|
326
|
+
return text.trim().length ? text : "";
|
|
327
|
+
}
|
|
328
|
+
case "heading": {
|
|
329
|
+
const levelAttr = node.attrs?.level;
|
|
330
|
+
const levelVal = typeof levelAttr === "number" ? levelAttr : 1;
|
|
331
|
+
const level = Math.min(Math.max(levelVal, 1), 6);
|
|
332
|
+
return `${"#".repeat(level)} ${renderInline(node.content)}`.trim();
|
|
333
|
+
}
|
|
334
|
+
case "bullet_list":
|
|
335
|
+
return renderList(node.content, false);
|
|
336
|
+
case "ordered_list":
|
|
337
|
+
return renderList(node.content, true);
|
|
338
|
+
case "list_item":
|
|
339
|
+
return renderInline(node.content);
|
|
340
|
+
case "blockquote": {
|
|
341
|
+
const body = renderInline(node.content);
|
|
342
|
+
return body.split(`
|
|
343
|
+
`).map((line) => `> ${line}`).join(`
|
|
344
|
+
`);
|
|
345
|
+
}
|
|
346
|
+
case "code_block": {
|
|
347
|
+
const body = renderInline(node.content);
|
|
348
|
+
return body ? `\`\`\`
|
|
349
|
+
${body}
|
|
350
|
+
\`\`\`` : "";
|
|
351
|
+
}
|
|
352
|
+
case "horizontal_rule":
|
|
353
|
+
return "---";
|
|
354
|
+
case "hard_break":
|
|
355
|
+
return `
|
|
356
|
+
`;
|
|
357
|
+
case "text":
|
|
358
|
+
return renderTextNode(node);
|
|
359
|
+
default:
|
|
360
|
+
if (node.text)
|
|
361
|
+
return renderTextNode(node);
|
|
362
|
+
return "";
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
function blockNoteToMarkdown(docJson) {
|
|
366
|
+
if (typeof docJson === "string")
|
|
367
|
+
return docJson;
|
|
368
|
+
if (docJson && typeof docJson === "object" && "html" in docJson) {
|
|
369
|
+
const html = String(docJson.html);
|
|
370
|
+
return turndown.turndown(html);
|
|
371
|
+
}
|
|
372
|
+
const root = docJson;
|
|
373
|
+
if (root?.type === "doc" || root?.content) {
|
|
374
|
+
const blocks = (root.content ?? []).map((n) => renderNode(n)).filter(Boolean);
|
|
375
|
+
return blocks.join(`
|
|
376
|
+
|
|
377
|
+
`).trim();
|
|
378
|
+
}
|
|
379
|
+
try {
|
|
380
|
+
return JSON.stringify(docJson, null, 2);
|
|
381
|
+
} catch {
|
|
382
|
+
return String(docJson);
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
class TransformEngine {
|
|
387
|
+
renderers = new Map;
|
|
388
|
+
validators = [];
|
|
389
|
+
register(renderer) {
|
|
390
|
+
const arr = this.renderers.get(renderer.target) ?? [];
|
|
391
|
+
arr.push(renderer);
|
|
392
|
+
this.renderers.set(renderer.target, arr);
|
|
393
|
+
return this;
|
|
394
|
+
}
|
|
395
|
+
prependRegister(renderer) {
|
|
396
|
+
const arr = this.renderers.get(renderer.target) ?? [];
|
|
397
|
+
arr.unshift(renderer);
|
|
398
|
+
this.renderers.set(renderer.target, arr);
|
|
399
|
+
return this;
|
|
400
|
+
}
|
|
401
|
+
addValidator(v) {
|
|
402
|
+
this.validators.push(v);
|
|
403
|
+
return this;
|
|
404
|
+
}
|
|
405
|
+
async render(target, desc, ctx) {
|
|
406
|
+
if (!desc.targets.includes(target))
|
|
407
|
+
throw new Error(`Target ${target} not declared for ${desc.meta.key}.v${desc.meta.version}`);
|
|
408
|
+
for (const v of this.validators)
|
|
409
|
+
await v.validate(desc, target, ctx);
|
|
410
|
+
const arr = this.renderers.get(target) ?? [];
|
|
411
|
+
for (const r of arr) {
|
|
412
|
+
try {
|
|
413
|
+
const out = await r.render(desc, ctx);
|
|
414
|
+
return out;
|
|
415
|
+
} catch (_e) {}
|
|
416
|
+
}
|
|
417
|
+
throw new Error(`No renderer available for ${target}`);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
function createDefaultTransformEngine() {
|
|
421
|
+
const engine = new TransformEngine;
|
|
422
|
+
const applyPii = (desc, obj) => {
|
|
423
|
+
const clone = JSON.parse(JSON.stringify(obj));
|
|
424
|
+
const paths = desc.policy?.pii ?? [];
|
|
425
|
+
const setAtPath = (root, path) => {
|
|
426
|
+
const segs = path.replace(/^\//, "").replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
|
|
427
|
+
let cur = root;
|
|
428
|
+
for (let i = 0;i < segs.length - 1; i++) {
|
|
429
|
+
const k = segs[i];
|
|
430
|
+
if (!k)
|
|
431
|
+
continue;
|
|
432
|
+
if (cur && typeof cur === "object" && k in cur) {
|
|
433
|
+
cur = cur[k];
|
|
434
|
+
} else
|
|
435
|
+
return;
|
|
436
|
+
}
|
|
437
|
+
const last = segs[segs.length - 1];
|
|
438
|
+
if (cur && typeof cur === "object" && last && last in cur)
|
|
439
|
+
cur[last] = "[REDACTED]";
|
|
440
|
+
};
|
|
441
|
+
for (const p of paths)
|
|
442
|
+
setAtPath(clone, p);
|
|
443
|
+
return clone;
|
|
444
|
+
};
|
|
445
|
+
engine.register({
|
|
446
|
+
target: "markdown",
|
|
447
|
+
async render(desc, ctx) {
|
|
448
|
+
let data = ctx?.data;
|
|
449
|
+
if (!data && ctx?.fetchData) {
|
|
450
|
+
data = await ctx.fetchData();
|
|
451
|
+
}
|
|
452
|
+
if (desc.source.type === "component" && desc.source.props && data !== undefined) {
|
|
453
|
+
const isArray = Array.isArray(data);
|
|
454
|
+
const isSimpleObject = !isArray && typeof data === "object" && data !== null && !Object.values(data).some((v) => Array.isArray(v) || typeof v === "object" && v !== null);
|
|
455
|
+
if (isArray || isSimpleObject) {
|
|
456
|
+
const body = schemaToMarkdown(desc.source.props, data, {
|
|
457
|
+
title: desc.meta.description ?? desc.meta.key,
|
|
458
|
+
description: `${desc.meta.key} v${desc.meta.version}`
|
|
459
|
+
});
|
|
460
|
+
return { mimeType: "text/markdown", body };
|
|
461
|
+
}
|
|
462
|
+
throw new Error(`Complex data structure for ${desc.meta.key} - expecting custom renderer`);
|
|
463
|
+
}
|
|
464
|
+
if (desc.source.type === "blocknotejs") {
|
|
465
|
+
const markdown = blockNoteToMarkdown(desc.source.docJson);
|
|
466
|
+
const redacted = applyPii(desc, { text: markdown });
|
|
467
|
+
return { mimeType: "text/markdown", body: String(redacted.text) };
|
|
468
|
+
}
|
|
469
|
+
if (desc.source.type === "component" && data !== undefined) {
|
|
470
|
+
throw new Error(`No schema (source.props) available for ${desc.meta.key} - expecting custom renderer`);
|
|
471
|
+
}
|
|
472
|
+
if (desc.source.type === "component") {
|
|
473
|
+
const header = `# ${desc.meta.key} v${desc.meta.version}`;
|
|
474
|
+
const about = desc.meta.description ? `
|
|
475
|
+
|
|
476
|
+
${desc.meta.description}` : "";
|
|
477
|
+
const tags = desc.meta.tags && desc.meta.tags.length ? `
|
|
478
|
+
|
|
479
|
+
Tags: ${desc.meta.tags.join(", ")}` : "";
|
|
480
|
+
const owners = desc.meta.owners && desc.meta.owners.length ? `
|
|
481
|
+
|
|
482
|
+
Owners: ${desc.meta.owners.join(", ")}` : "";
|
|
483
|
+
const comp = `
|
|
484
|
+
|
|
485
|
+
Component: \`${desc.source.componentKey}\``;
|
|
486
|
+
const policy = desc.policy?.pii?.length ? `
|
|
487
|
+
|
|
488
|
+
Redacted paths: ${desc.policy.pii.map((p) => `\`${p}\``).join(", ")}` : "";
|
|
489
|
+
const body = `${header}${about}${tags}${owners}${comp}${policy}`;
|
|
490
|
+
return { mimeType: "text/markdown", body };
|
|
491
|
+
}
|
|
492
|
+
throw new Error("unsupported");
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
engine.register({
|
|
496
|
+
target: "application/json",
|
|
497
|
+
async render(desc) {
|
|
498
|
+
const payload = applyPii(desc, { meta: desc.meta, source: desc.source });
|
|
499
|
+
return {
|
|
500
|
+
mimeType: "application/json",
|
|
501
|
+
body: JSON.stringify(payload, null, 2)
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
engine.register({
|
|
506
|
+
target: "application/xml",
|
|
507
|
+
async render(desc) {
|
|
508
|
+
const json = applyPii(desc, { meta: desc.meta, source: desc.source });
|
|
509
|
+
const body = `<presentation name="${desc.meta.key}" version="${desc.meta.version}"><json>${encodeURIComponent(JSON.stringify(json))}</json></presentation>`;
|
|
510
|
+
return { mimeType: "application/xml", body };
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
return engine;
|
|
514
|
+
}
|
|
515
|
+
function registerDefaultReactRenderer(engine) {
|
|
516
|
+
engine.register({
|
|
517
|
+
target: "react",
|
|
518
|
+
async render(desc) {
|
|
519
|
+
if (desc.source.type === "component") {
|
|
520
|
+
const props = desc.source.props ? desc.source.props.getZod().safeParse({}).success ? {} : undefined : undefined;
|
|
521
|
+
return {
|
|
522
|
+
kind: "react_component",
|
|
523
|
+
componentKey: desc.source.componentKey,
|
|
524
|
+
props
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
return {
|
|
528
|
+
kind: "blocknotejs",
|
|
529
|
+
docJson: desc.source.docJson,
|
|
530
|
+
blockConfig: desc.source.blockConfig
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
return engine;
|
|
535
|
+
}
|
|
536
|
+
function registerBasicValidation(engine) {
|
|
537
|
+
engine.addValidator({
|
|
538
|
+
validate(desc) {
|
|
539
|
+
if (!desc.meta.description || desc.meta.description.length < 3)
|
|
540
|
+
throw new Error(`Presentation ${desc.meta.key}.v${desc.meta.version} missing meta.description`);
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
return engine;
|
|
544
|
+
}
|
|
545
|
+
function registerReactToMarkdownRenderer(engine, componentMap) {
|
|
546
|
+
const turndownService = new TurndownService({
|
|
547
|
+
headingStyle: "atx",
|
|
548
|
+
codeBlockStyle: "fenced",
|
|
549
|
+
bulletListMarker: "-"
|
|
550
|
+
});
|
|
551
|
+
turndownService.addRule("link", {
|
|
552
|
+
filter: "a",
|
|
553
|
+
replacement: (content, node) => {
|
|
554
|
+
const href = node.href;
|
|
555
|
+
if (href && content) {
|
|
556
|
+
return `[${content}](${href})`;
|
|
557
|
+
}
|
|
558
|
+
return content || "";
|
|
559
|
+
}
|
|
560
|
+
});
|
|
561
|
+
engine.prependRegister({
|
|
562
|
+
target: "markdown",
|
|
563
|
+
async render(desc, _ctx) {
|
|
564
|
+
if (desc.source.type !== "component") {
|
|
565
|
+
throw new Error("React-to-markdown renderer only handles component presentations");
|
|
566
|
+
}
|
|
567
|
+
const { renderToStaticMarkup } = await import("react-dom/server");
|
|
568
|
+
const Component = componentMap[desc.source.componentKey];
|
|
569
|
+
if (!Component) {
|
|
570
|
+
throw new Error(`Component ${desc.source.componentKey} not found in componentMap`);
|
|
571
|
+
}
|
|
572
|
+
let html;
|
|
573
|
+
try {
|
|
574
|
+
const element = React.createElement(Component, desc.source.props ? {} : undefined);
|
|
575
|
+
html = renderToStaticMarkup(element);
|
|
576
|
+
} catch (error) {
|
|
577
|
+
throw new Error(`Failed to render component ${desc.source.componentKey}: ${error instanceof Error ? error.message : "Unknown error"}`);
|
|
578
|
+
}
|
|
579
|
+
let markdown;
|
|
580
|
+
try {
|
|
581
|
+
markdown = turndownService.turndown(html);
|
|
582
|
+
} catch (error) {
|
|
583
|
+
throw new Error(`Failed to convert HTML to markdown: ${error instanceof Error ? error.message : "Unknown error"}`);
|
|
584
|
+
}
|
|
585
|
+
if (desc.policy?.pii && desc.policy.pii.length > 0) {
|
|
586
|
+
const redacted = markdown.replace(/\[REDACTED\]/g, "[REDACTED]");
|
|
587
|
+
return { mimeType: "text/markdown", body: redacted };
|
|
588
|
+
}
|
|
589
|
+
return { mimeType: "text/markdown", body: markdown };
|
|
590
|
+
}
|
|
591
|
+
});
|
|
592
|
+
return engine;
|
|
593
|
+
}
|
|
594
|
+
export {
|
|
595
|
+
registerReactToMarkdownRenderer,
|
|
596
|
+
registerDefaultReactRenderer,
|
|
597
|
+
registerBasicValidation,
|
|
598
|
+
createDefaultTransformEngine,
|
|
599
|
+
TransformEngine
|
|
600
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ZodSchemaType } from '@contractspec/lib.schema';
|
|
2
|
+
import * as z from 'zod';
|
|
3
|
+
declare const PatchChangeTypeSchema: z.ZodEnum<{
|
|
4
|
+
other: "other";
|
|
5
|
+
add_field: "add_field";
|
|
6
|
+
remove_field: "remove_field";
|
|
7
|
+
rename_field: "rename_field";
|
|
8
|
+
add_event: "add_event";
|
|
9
|
+
update_event: "update_event";
|
|
10
|
+
add_operation: "add_operation";
|
|
11
|
+
update_operation: "update_operation";
|
|
12
|
+
update_form: "update_form";
|
|
13
|
+
update_policy: "update_policy";
|
|
14
|
+
add_enum_value: "add_enum_value";
|
|
15
|
+
remove_enum_value: "remove_enum_value";
|
|
16
|
+
}>;
|
|
17
|
+
export type PatchChangeType = z.infer<typeof PatchChangeTypeSchema>;
|
|
18
|
+
declare const PatchChangeSchema: z.ZodObject<{
|
|
19
|
+
type: z.ZodEnum<{
|
|
20
|
+
other: "other";
|
|
21
|
+
add_field: "add_field";
|
|
22
|
+
remove_field: "remove_field";
|
|
23
|
+
rename_field: "rename_field";
|
|
24
|
+
add_event: "add_event";
|
|
25
|
+
update_event: "update_event";
|
|
26
|
+
add_operation: "add_operation";
|
|
27
|
+
update_operation: "update_operation";
|
|
28
|
+
update_form: "update_form";
|
|
29
|
+
update_policy: "update_policy";
|
|
30
|
+
add_enum_value: "add_enum_value";
|
|
31
|
+
remove_enum_value: "remove_enum_value";
|
|
32
|
+
}>;
|
|
33
|
+
target: z.ZodString;
|
|
34
|
+
detail: z.ZodString;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const PatchChangeModel: ZodSchemaType<z.ZodObject<{
|
|
37
|
+
type: z.ZodEnum<{
|
|
38
|
+
other: "other";
|
|
39
|
+
add_field: "add_field";
|
|
40
|
+
remove_field: "remove_field";
|
|
41
|
+
rename_field: "rename_field";
|
|
42
|
+
add_event: "add_event";
|
|
43
|
+
update_event: "update_event";
|
|
44
|
+
add_operation: "add_operation";
|
|
45
|
+
update_operation: "update_operation";
|
|
46
|
+
update_form: "update_form";
|
|
47
|
+
update_policy: "update_policy";
|
|
48
|
+
add_enum_value: "add_enum_value";
|
|
49
|
+
remove_enum_value: "remove_enum_value";
|
|
50
|
+
}>;
|
|
51
|
+
target: z.ZodString;
|
|
52
|
+
detail: z.ZodString;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
export type PatchChange = z.infer<typeof PatchChangeSchema>;
|
|
55
|
+
declare const ContractPatchIntentSchema: z.ZodObject<{
|
|
56
|
+
featureKey: z.ZodString;
|
|
57
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
58
|
+
type: z.ZodEnum<{
|
|
59
|
+
other: "other";
|
|
60
|
+
add_field: "add_field";
|
|
61
|
+
remove_field: "remove_field";
|
|
62
|
+
rename_field: "rename_field";
|
|
63
|
+
add_event: "add_event";
|
|
64
|
+
update_event: "update_event";
|
|
65
|
+
add_operation: "add_operation";
|
|
66
|
+
update_operation: "update_operation";
|
|
67
|
+
update_form: "update_form";
|
|
68
|
+
update_policy: "update_policy";
|
|
69
|
+
add_enum_value: "add_enum_value";
|
|
70
|
+
remove_enum_value: "remove_enum_value";
|
|
71
|
+
}>;
|
|
72
|
+
target: z.ZodString;
|
|
73
|
+
detail: z.ZodString;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
acceptanceCriteria: z.ZodArray<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export declare const ContractPatchIntentModel: ZodSchemaType<z.ZodObject<{
|
|
78
|
+
featureKey: z.ZodString;
|
|
79
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
80
|
+
type: z.ZodEnum<{
|
|
81
|
+
other: "other";
|
|
82
|
+
add_field: "add_field";
|
|
83
|
+
remove_field: "remove_field";
|
|
84
|
+
rename_field: "rename_field";
|
|
85
|
+
add_event: "add_event";
|
|
86
|
+
update_event: "update_event";
|
|
87
|
+
add_operation: "add_operation";
|
|
88
|
+
update_operation: "update_operation";
|
|
89
|
+
update_form: "update_form";
|
|
90
|
+
update_policy: "update_policy";
|
|
91
|
+
add_enum_value: "add_enum_value";
|
|
92
|
+
remove_enum_value: "remove_enum_value";
|
|
93
|
+
}>;
|
|
94
|
+
target: z.ZodString;
|
|
95
|
+
detail: z.ZodString;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
acceptanceCriteria: z.ZodArray<z.ZodString>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
export type ContractPatchIntent = z.infer<typeof ContractPatchIntentSchema>;
|
|
100
|
+
export {};
|