@contractspec/lib.contracts 0.0.0-canary-20260113162409
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/_virtual/rolldown_runtime.js +37 -0
- package/dist/app-config/app-config.capability.d.ts +7 -0
- package/dist/app-config/app-config.capability.js +23 -0
- package/dist/app-config/app-config.feature.d.ts +11 -0
- package/dist/app-config/app-config.feature.js +61 -0
- package/dist/app-config/branding.d.ts +55 -0
- package/dist/app-config/branding.js +0 -0
- package/dist/app-config/contracts.d.ts +245 -0
- package/dist/app-config/contracts.js +395 -0
- package/dist/app-config/docs/app-config.docblock.d.ts +6 -0
- package/dist/app-config/docs/app-config.docblock.js +21 -0
- package/dist/app-config/events.d.ts +122 -0
- package/dist/app-config/events.js +174 -0
- package/dist/app-config/index.d.ts +10 -0
- package/dist/app-config/index.js +9 -0
- package/dist/app-config/lifecycle-contracts.d.ts +273 -0
- package/dist/app-config/lifecycle-contracts.js +440 -0
- package/dist/app-config/lifecycle.d.ts +27 -0
- package/dist/app-config/lifecycle.js +0 -0
- package/dist/app-config/runtime.d.ts +120 -0
- package/dist/app-config/runtime.js +617 -0
- package/dist/app-config/spec.d.ts +175 -0
- package/dist/app-config/spec.js +19 -0
- package/dist/app-config/validation.d.ts +49 -0
- package/dist/app-config/validation.js +538 -0
- package/dist/capabilities/capabilities.d.ts +41 -0
- package/dist/capabilities/capabilities.js +48 -0
- package/dist/capabilities/docs/capabilities.docblock.d.ts +6 -0
- package/dist/capabilities/docs/capabilities.docblock.js +21 -0
- package/dist/capabilities/index.d.ts +3 -0
- package/dist/capabilities/index.js +4 -0
- package/dist/capabilities/openbanking.d.ts +10 -0
- package/dist/capabilities/openbanking.js +92 -0
- package/dist/client/index.d.ts +6 -0
- package/dist/client/index.js +9 -0
- package/dist/client/react/drivers/rn-reusables.d.ts +22 -0
- package/dist/client/react/drivers/rn-reusables.js +21 -0
- package/dist/client/react/drivers/shadcn.d.ts +12 -0
- package/dist/client/react/drivers/shadcn.js +11 -0
- package/dist/client/react/feature-render.d.ts +23 -0
- package/dist/client/react/feature-render.js +44 -0
- package/dist/client/react/form-render.d.ts +92 -0
- package/dist/client/react/form-render.js +301 -0
- package/dist/client/react/index.d.ts +5 -0
- package/dist/client/react/index.js +8 -0
- package/dist/contract-registry/index.d.ts +3 -0
- package/dist/contract-registry/index.js +3 -0
- package/dist/contract-registry/schemas.d.ts +124 -0
- package/dist/contract-registry/schemas.js +61 -0
- package/dist/contract-registry/types.d.ts +46 -0
- package/dist/contract-registry/types.js +0 -0
- package/dist/data-views/data-views.d.ts +5 -0
- package/dist/data-views/data-views.js +5 -0
- package/dist/data-views/docs/data-views.docblock.d.ts +6 -0
- package/dist/data-views/docs/data-views.docblock.js +21 -0
- package/dist/data-views/index.d.ts +4 -0
- package/dist/data-views/index.js +4 -0
- package/dist/data-views/query-generator.d.ts +40 -0
- package/dist/data-views/query-generator.js +48 -0
- package/dist/data-views/registry.d.ts +17 -0
- package/dist/data-views/registry.js +20 -0
- package/dist/data-views/runtime.d.ts +32 -0
- package/dist/data-views/runtime.js +68 -0
- package/dist/data-views/spec.d.ts +32 -0
- package/dist/data-views/spec.js +10 -0
- package/dist/data-views/types.d.ts +157 -0
- package/dist/data-views/types.js +0 -0
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.d.ts +6 -0
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.js +17 -0
- package/dist/docs/index.d.ts +6 -0
- package/dist/docs/index.js +30 -0
- package/dist/docs/meta.docs.d.ts +6 -0
- package/dist/docs/meta.docs.js +29 -0
- package/dist/docs/presentations.d.ts +31 -0
- package/dist/docs/presentations.js +57 -0
- package/dist/docs/registry.d.ts +23 -0
- package/dist/docs/registry.js +51 -0
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.d.ts +6 -0
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.js +81 -0
- package/dist/docs/tech/cli.docblock.d.ts +6 -0
- package/dist/docs/tech/cli.docblock.js +138 -0
- package/dist/docs/tech/contracts/README.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/README.docblock.js +21 -0
- package/dist/docs/tech/contracts/migrations.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/migrations.docblock.js +21 -0
- package/dist/docs/tech/contracts/openapi-export.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/openapi-export.docblock.js +58 -0
- package/dist/docs/tech/contracts/openapi-import.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/openapi-import.docblock.js +65 -0
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.js +21 -0
- package/dist/docs/tech/contracts/overlays.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/overlays.docblock.js +21 -0
- package/dist/docs/tech/contracts/tests.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/tests.docblock.js +21 -0
- package/dist/docs/tech/contracts/themes.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/themes.docblock.js +21 -0
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.js +126 -0
- package/dist/docs/tech/lifecycle-stage-system.docblock.d.ts +6 -0
- package/dist/docs/tech/lifecycle-stage-system.docblock.js +17 -0
- package/dist/docs/tech/llm/llm-integration.docblock.d.ts +7 -0
- package/dist/docs/tech/llm/llm-integration.docblock.js +358 -0
- package/dist/docs/tech/mcp-endpoints.docblock.d.ts +6 -0
- package/dist/docs/tech/mcp-endpoints.docblock.js +38 -0
- package/dist/docs/tech/presentation-runtime.docblock.d.ts +6 -0
- package/dist/docs/tech/presentation-runtime.docblock.js +17 -0
- package/dist/docs/tech/schema/README.docblock.d.ts +6 -0
- package/dist/docs/tech/schema/README.docblock.js +21 -0
- package/dist/docs/tech/studio/learning-events.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/learning-events.docblock.js +49 -0
- package/dist/docs/tech/studio/learning-journeys.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/learning-journeys.docblock.js +80 -0
- package/dist/docs/tech/studio/platform-admin-panel.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/platform-admin-panel.docblock.js +85 -0
- package/dist/docs/tech/studio/project-access-teams.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/project-access-teams.docblock.js +48 -0
- package/dist/docs/tech/studio/project-routing.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/project-routing.docblock.js +68 -0
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.js +41 -0
- package/dist/docs/tech/studio/team-invitations.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/team-invitations.docblock.js +70 -0
- package/dist/docs/tech/studio/workspace-ops.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/workspace-ops.docblock.js +48 -0
- package/dist/docs/tech/studio/workspaces.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/workspaces.docblock.js +63 -0
- package/dist/docs/tech/telemetry-ingest.docblock.d.ts +6 -0
- package/dist/docs/tech/telemetry-ingest.docblock.js +156 -0
- package/dist/docs/tech/vscode-extension.docblock.d.ts +6 -0
- package/dist/docs/tech/vscode-extension.docblock.js +102 -0
- package/dist/docs/tech-contracts.docs.d.ts +6 -0
- package/dist/docs/tech-contracts.docs.js +96 -0
- package/dist/docs/types.d.ts +41 -0
- package/dist/docs/types.js +0 -0
- package/dist/events.d.ts +47 -0
- package/dist/events.js +19 -0
- package/dist/examples/docs/examples.docblock.d.ts +6 -0
- package/dist/examples/docs/examples.docblock.js +165 -0
- package/dist/examples/index.d.ts +13 -0
- package/dist/examples/index.js +13 -0
- package/dist/examples/registry.d.ts +43 -0
- package/dist/examples/registry.js +88 -0
- package/dist/examples/schema.d.ts +282 -0
- package/dist/examples/schema.js +125 -0
- package/dist/examples/types.d.ts +167 -0
- package/dist/examples/types.js +43 -0
- package/dist/examples/validation.d.ts +65 -0
- package/dist/examples/validation.js +144 -0
- package/dist/experiments/docs/experiments.docblock.d.ts +6 -0
- package/dist/experiments/docs/experiments.docblock.js +21 -0
- package/dist/experiments/evaluator.d.ts +37 -0
- package/dist/experiments/evaluator.js +101 -0
- package/dist/experiments/spec-resolver.d.ts +17 -0
- package/dist/experiments/spec-resolver.js +0 -0
- package/dist/experiments/spec.d.ts +80 -0
- package/dist/experiments/spec.js +15 -0
- package/dist/features/index.d.ts +13 -0
- package/dist/features/index.js +12 -0
- package/dist/features/install.d.ts +22 -0
- package/dist/features/install.js +36 -0
- package/dist/features/registry.d.ts +26 -0
- package/dist/features/registry.js +49 -0
- package/dist/features/types.d.ts +88 -0
- package/dist/features/types.js +0 -0
- package/dist/features/validation.d.ts +8 -0
- package/dist/features/validation.js +14 -0
- package/dist/forms/docs/forms.docblock.d.ts +6 -0
- package/dist/forms/docs/forms.docblock.js +21 -0
- package/dist/forms/forms.d.ts +266 -0
- package/dist/forms/forms.js +143 -0
- package/dist/forms/index.d.ts +2 -0
- package/dist/forms/index.js +3 -0
- package/dist/index.d.ts +154 -0
- package/dist/index.js +132 -0
- package/dist/install.d.ts +77 -0
- package/dist/install.js +40 -0
- package/dist/integrations/binding.d.ts +17 -0
- package/dist/integrations/binding.js +0 -0
- package/dist/integrations/connection.d.ts +51 -0
- package/dist/integrations/connection.js +0 -0
- package/dist/integrations/docs/integrations.docblock.d.ts +6 -0
- package/dist/integrations/docs/integrations.docblock.js +94 -0
- package/dist/integrations/health.d.ts +21 -0
- package/dist/integrations/health.js +69 -0
- package/dist/integrations/index.d.ts +34 -0
- package/dist/integrations/index.js +23 -0
- package/dist/integrations/integrations.capability.d.ts +7 -0
- package/dist/integrations/integrations.capability.js +17 -0
- package/dist/integrations/integrations.feature.d.ts +11 -0
- package/dist/integrations/integrations.feature.js +67 -0
- package/dist/integrations/openbanking/contracts/accounts.d.ts +289 -0
- package/dist/integrations/openbanking/contracts/accounts.js +236 -0
- package/dist/integrations/openbanking/contracts/balances.d.ts +165 -0
- package/dist/integrations/openbanking/contracts/balances.js +166 -0
- package/dist/integrations/openbanking/contracts/index.d.ts +10 -0
- package/dist/integrations/openbanking/contracts/index.js +12 -0
- package/dist/integrations/openbanking/contracts/transactions.d.ts +213 -0
- package/dist/integrations/openbanking/contracts/transactions.js +217 -0
- package/dist/integrations/openbanking/guards.d.ts +12 -0
- package/dist/integrations/openbanking/guards.js +33 -0
- package/dist/integrations/openbanking/models.d.ts +228 -0
- package/dist/integrations/openbanking/models.js +240 -0
- package/dist/integrations/openbanking/openbanking.capability.d.ts +7 -0
- package/dist/integrations/openbanking/openbanking.capability.js +21 -0
- package/dist/integrations/openbanking/openbanking.feature.d.ts +11 -0
- package/dist/integrations/openbanking/openbanking.feature.js +76 -0
- package/dist/integrations/openbanking/telemetry.d.ts +15 -0
- package/dist/integrations/openbanking/telemetry.js +39 -0
- package/dist/integrations/operations.d.ts +437 -0
- package/dist/integrations/operations.js +392 -0
- package/dist/integrations/providers/calendar.d.ts +78 -0
- package/dist/integrations/providers/calendar.js +0 -0
- package/dist/integrations/providers/elevenlabs.d.ts +8 -0
- package/dist/integrations/providers/elevenlabs.js +56 -0
- package/dist/integrations/providers/email.d.ts +86 -0
- package/dist/integrations/providers/email.js +0 -0
- package/dist/integrations/providers/embedding.d.ts +24 -0
- package/dist/integrations/providers/embedding.js +0 -0
- package/dist/integrations/providers/gcs-storage.d.ts +8 -0
- package/dist/integrations/providers/gcs-storage.js +79 -0
- package/dist/integrations/providers/gmail.d.ts +8 -0
- package/dist/integrations/providers/gmail.js +91 -0
- package/dist/integrations/providers/google-calendar.d.ts +8 -0
- package/dist/integrations/providers/google-calendar.js +70 -0
- package/dist/integrations/providers/impls/elevenlabs-voice.d.ts +20 -0
- package/dist/integrations/providers/impls/elevenlabs-voice.js +95 -0
- package/dist/integrations/providers/impls/gcs-storage.d.ts +24 -0
- package/dist/integrations/providers/impls/gcs-storage.js +88 -0
- package/dist/integrations/providers/impls/gmail-inbound.d.ts +26 -0
- package/dist/integrations/providers/impls/gmail-inbound.js +200 -0
- package/dist/integrations/providers/impls/gmail-outbound.d.ts +18 -0
- package/dist/integrations/providers/impls/gmail-outbound.js +105 -0
- package/dist/integrations/providers/impls/google-calendar.d.ts +23 -0
- package/dist/integrations/providers/impls/google-calendar.js +154 -0
- package/dist/integrations/providers/impls/index.d.ts +15 -0
- package/dist/integrations/providers/impls/index.js +16 -0
- package/dist/integrations/providers/impls/mistral-embedding.d.ts +23 -0
- package/dist/integrations/providers/impls/mistral-embedding.js +41 -0
- package/dist/integrations/providers/impls/mistral-llm.d.ts +31 -0
- package/dist/integrations/providers/impls/mistral-llm.js +247 -0
- package/dist/integrations/providers/impls/postmark-email.d.ts +19 -0
- package/dist/integrations/providers/impls/postmark-email.js +55 -0
- package/dist/integrations/providers/impls/powens-client.d.ts +124 -0
- package/dist/integrations/providers/impls/powens-client.js +171 -0
- package/dist/integrations/providers/impls/powens-openbanking.d.ts +27 -0
- package/dist/integrations/providers/impls/powens-openbanking.js +218 -0
- package/dist/integrations/providers/impls/provider-factory.d.ts +26 -0
- package/dist/integrations/providers/impls/provider-factory.js +146 -0
- package/dist/integrations/providers/impls/qdrant-vector.d.ts +24 -0
- package/dist/integrations/providers/impls/qdrant-vector.js +69 -0
- package/dist/integrations/providers/impls/stripe-payments.d.ts +28 -0
- package/dist/integrations/providers/impls/stripe-payments.js +202 -0
- package/dist/integrations/providers/impls/twilio-sms.d.ts +20 -0
- package/dist/integrations/providers/impls/twilio-sms.js +58 -0
- package/dist/integrations/providers/index.d.ts +22 -0
- package/dist/integrations/providers/index.js +13 -0
- package/dist/integrations/providers/llm.d.ts +82 -0
- package/dist/integrations/providers/llm.js +0 -0
- package/dist/integrations/providers/mistral.d.ts +8 -0
- package/dist/integrations/providers/mistral.js +72 -0
- package/dist/integrations/providers/openbanking.d.ts +128 -0
- package/dist/integrations/providers/openbanking.js +0 -0
- package/dist/integrations/providers/payments.d.ts +109 -0
- package/dist/integrations/providers/payments.js +0 -0
- package/dist/integrations/providers/postmark.d.ts +8 -0
- package/dist/integrations/providers/postmark.js +72 -0
- package/dist/integrations/providers/powens.d.ts +8 -0
- package/dist/integrations/providers/powens.js +120 -0
- package/dist/integrations/providers/qdrant.d.ts +8 -0
- package/dist/integrations/providers/qdrant.js +77 -0
- package/dist/integrations/providers/registry.d.ts +11 -0
- package/dist/integrations/providers/registry.js +34 -0
- package/dist/integrations/providers/sms.d.ts +34 -0
- package/dist/integrations/providers/sms.js +0 -0
- package/dist/integrations/providers/storage.d.ts +60 -0
- package/dist/integrations/providers/storage.js +0 -0
- package/dist/integrations/providers/stripe.d.ts +8 -0
- package/dist/integrations/providers/stripe.js +87 -0
- package/dist/integrations/providers/twilio-sms.d.ts +8 -0
- package/dist/integrations/providers/twilio-sms.js +65 -0
- package/dist/integrations/providers/vector-store.d.ts +43 -0
- package/dist/integrations/providers/vector-store.js +0 -0
- package/dist/integrations/providers/voice.d.ts +34 -0
- package/dist/integrations/providers/voice.js +0 -0
- package/dist/integrations/runtime.d.ts +99 -0
- package/dist/integrations/runtime.js +186 -0
- package/dist/integrations/secrets/aws-secret-manager.d.ts +31 -0
- package/dist/integrations/secrets/aws-secret-manager.js +231 -0
- package/dist/integrations/secrets/env-secret-provider.d.ts +31 -0
- package/dist/integrations/secrets/env-secret-provider.js +81 -0
- package/dist/integrations/secrets/gcp-secret-manager.d.ts +32 -0
- package/dist/integrations/secrets/gcp-secret-manager.js +229 -0
- package/dist/integrations/secrets/index.d.ts +7 -0
- package/dist/integrations/secrets/index.js +8 -0
- package/dist/integrations/secrets/manager.d.ts +47 -0
- package/dist/integrations/secrets/manager.js +103 -0
- package/dist/integrations/secrets/provider.d.ts +52 -0
- package/dist/integrations/secrets/provider.js +58 -0
- package/dist/integrations/secrets/scaleway-secret-manager.d.ts +38 -0
- package/dist/integrations/secrets/scaleway-secret-manager.js +247 -0
- package/dist/integrations/secrets-types.d.ts +17 -0
- package/dist/integrations/secrets-types.js +0 -0
- package/dist/integrations/spec.d.ts +77 -0
- package/dist/integrations/spec.js +22 -0
- package/dist/jobs/define-job.d.ts +18 -0
- package/dist/jobs/define-job.js +16 -0
- package/dist/jobs/gcp-cloud-tasks.d.ts +41 -0
- package/dist/jobs/gcp-cloud-tasks.js +53 -0
- package/dist/jobs/gcp-pubsub.d.ts +25 -0
- package/dist/jobs/gcp-pubsub.js +39 -0
- package/dist/jobs/handlers/gmail-sync-handler.d.ts +9 -0
- package/dist/jobs/handlers/gmail-sync-handler.js +9 -0
- package/dist/jobs/handlers/index.d.ts +9 -0
- package/dist/jobs/handlers/index.js +12 -0
- package/dist/jobs/handlers/ping-handler.d.ts +10 -0
- package/dist/jobs/handlers/ping-handler.js +15 -0
- package/dist/jobs/handlers/storage-document-handler.d.ts +12 -0
- package/dist/jobs/handlers/storage-document-handler.js +14 -0
- package/dist/jobs/index.d.ts +3 -0
- package/dist/jobs/index.js +4 -0
- package/dist/jobs/memory-queue.d.ts +18 -0
- package/dist/jobs/memory-queue.js +71 -0
- package/dist/jobs/queue.d.ts +131 -0
- package/dist/jobs/queue.js +33 -0
- package/dist/jobs/scaleway-sqs-queue.d.ts +30 -0
- package/dist/jobs/scaleway-sqs-queue.js +153 -0
- package/dist/jsonschema.d.ts +42 -0
- package/dist/jsonschema.js +51 -0
- package/dist/knowledge/binding.d.ts +25 -0
- package/dist/knowledge/binding.js +0 -0
- package/dist/knowledge/docs/knowledge.docblock.d.ts +6 -0
- package/dist/knowledge/docs/knowledge.docblock.js +21 -0
- package/dist/knowledge/index.d.ts +11 -0
- package/dist/knowledge/index.js +10 -0
- package/dist/knowledge/ingestion/document-processor.d.ts +24 -0
- package/dist/knowledge/ingestion/document-processor.js +54 -0
- package/dist/knowledge/ingestion/embedding-service.d.ts +12 -0
- package/dist/knowledge/ingestion/embedding-service.js +25 -0
- package/dist/knowledge/ingestion/gmail-adapter.d.ts +18 -0
- package/dist/knowledge/ingestion/gmail-adapter.js +51 -0
- package/dist/knowledge/ingestion/index.d.ts +6 -0
- package/dist/knowledge/ingestion/index.js +7 -0
- package/dist/knowledge/ingestion/storage-adapter.d.ts +15 -0
- package/dist/knowledge/ingestion/storage-adapter.js +26 -0
- package/dist/knowledge/ingestion/vector-indexer.d.ts +18 -0
- package/dist/knowledge/ingestion/vector-indexer.js +32 -0
- package/dist/knowledge/knowledge.capability.d.ts +7 -0
- package/dist/knowledge/knowledge.capability.js +21 -0
- package/dist/knowledge/knowledge.feature.d.ts +11 -0
- package/dist/knowledge/knowledge.feature.js +68 -0
- package/dist/knowledge/operations.d.ts +318 -0
- package/dist/knowledge/operations.js +321 -0
- package/dist/knowledge/query/index.d.ts +2 -0
- package/dist/knowledge/query/index.js +3 -0
- package/dist/knowledge/query/service.d.ts +29 -0
- package/dist/knowledge/query/service.js +65 -0
- package/dist/knowledge/runtime.d.ts +32 -0
- package/dist/knowledge/runtime.js +49 -0
- package/dist/knowledge/source.d.ts +32 -0
- package/dist/knowledge/source.js +0 -0
- package/dist/knowledge/spaces/email-threads.d.ts +7 -0
- package/dist/knowledge/spaces/email-threads.js +37 -0
- package/dist/knowledge/spaces/financial-docs.d.ts +7 -0
- package/dist/knowledge/spaces/financial-docs.js +37 -0
- package/dist/knowledge/spaces/financial-overview.d.ts +7 -0
- package/dist/knowledge/spaces/financial-overview.js +41 -0
- package/dist/knowledge/spaces/index.d.ts +7 -0
- package/dist/knowledge/spaces/index.js +8 -0
- package/dist/knowledge/spaces/product-canon.d.ts +7 -0
- package/dist/knowledge/spaces/product-canon.js +37 -0
- package/dist/knowledge/spaces/support-faq.d.ts +7 -0
- package/dist/knowledge/spaces/support-faq.js +40 -0
- package/dist/knowledge/spaces/uploaded-docs.d.ts +7 -0
- package/dist/knowledge/spaces/uploaded-docs.js +37 -0
- package/dist/knowledge/spec.d.ts +46 -0
- package/dist/knowledge/spec.js +17 -0
- package/dist/llm/exporters.d.ts +70 -0
- package/dist/llm/exporters.js +542 -0
- package/dist/llm/index.d.ts +4 -0
- package/dist/llm/index.js +4 -0
- package/dist/llm/prompts.d.ts +52 -0
- package/dist/llm/prompts.js +410 -0
- package/dist/llm/types.d.ts +215 -0
- package/dist/llm/types.js +0 -0
- package/dist/markdown.d.ts +22 -0
- package/dist/markdown.js +119 -0
- package/dist/migrations.d.ts +52 -0
- package/dist/migrations.js +31 -0
- package/dist/model-registry.d.ts +13 -0
- package/dist/model-registry.js +33 -0
- package/dist/onboarding-base.d.ts +138 -0
- package/dist/onboarding-base.js +195 -0
- package/dist/openapi.d.ts +31 -0
- package/dist/openapi.js +82 -0
- package/dist/operations/index.d.ts +3 -0
- package/dist/operations/index.js +4 -0
- package/dist/operations/operation.d.ts +186 -0
- package/dist/operations/operation.js +35 -0
- package/dist/operations/registry.d.ts +54 -0
- package/dist/operations/registry.js +176 -0
- package/dist/ownership.d.ts +84 -0
- package/dist/ownership.js +38 -0
- package/dist/policy/docs/policy.docblock.d.ts +6 -0
- package/dist/policy/docs/policy.docblock.js +21 -0
- package/dist/policy/engine.d.ts +40 -0
- package/dist/policy/engine.js +225 -0
- package/dist/policy/index.d.ts +5 -0
- package/dist/policy/index.js +5 -0
- package/dist/policy/opa-adapter.d.ts +45 -0
- package/dist/policy/opa-adapter.js +71 -0
- package/dist/policy/registry.d.ts +9 -0
- package/dist/policy/registry.js +11 -0
- package/dist/policy/spec.d.ts +103 -0
- package/dist/policy/spec.js +0 -0
- package/dist/presentations/docs/presentations-conventions.docblock.d.ts +6 -0
- package/dist/presentations/docs/presentations-conventions.docblock.js +21 -0
- package/dist/presentations/index.d.ts +4 -0
- package/dist/presentations/index.js +5 -0
- package/dist/presentations/presentations.d.ts +50 -0
- package/dist/presentations/presentations.js +7 -0
- package/dist/presentations/registry.d.ts +10 -0
- package/dist/presentations/registry.js +12 -0
- package/dist/presentations/transform-engine.d.ts +66 -0
- package/dist/presentations/transform-engine.js +282 -0
- package/dist/prompt.d.ts +53 -0
- package/dist/prompt.js +10 -0
- package/dist/promptRegistry.d.ts +15 -0
- package/dist/promptRegistry.js +31 -0
- package/dist/regenerator/adapters.d.ts +19 -0
- package/dist/regenerator/adapters.js +0 -0
- package/dist/regenerator/docs/regenerator.docblock.d.ts +6 -0
- package/dist/regenerator/docs/regenerator.docblock.js +21 -0
- package/dist/regenerator/executor.d.ts +70 -0
- package/dist/regenerator/executor.js +86 -0
- package/dist/regenerator/index.d.ts +7 -0
- package/dist/regenerator/index.js +6 -0
- package/dist/regenerator/service.d.ts +33 -0
- package/dist/regenerator/service.js +93 -0
- package/dist/regenerator/sinks.d.ts +26 -0
- package/dist/regenerator/sinks.js +32 -0
- package/dist/regenerator/types.d.ts +107 -0
- package/dist/regenerator/types.js +0 -0
- package/dist/regenerator/utils.d.ts +9 -0
- package/dist/regenerator/utils.js +51 -0
- package/dist/registry-utils.d.ts +106 -0
- package/dist/registry-utils.js +122 -0
- package/dist/registry.d.ts +32 -0
- package/dist/registry.js +61 -0
- package/dist/resources.d.ts +64 -0
- package/dist/resources.js +50 -0
- package/dist/schema-to-markdown.d.ts +54 -0
- package/dist/schema-to-markdown.js +217 -0
- package/dist/server/contracts-adapter-hydration.d.ts +15 -0
- package/dist/server/contracts-adapter-hydration.js +41 -0
- package/dist/server/contracts-adapter-input.d.ts +9 -0
- package/dist/server/contracts-adapter-input.js +83 -0
- package/dist/server/graphql-pothos.d.ts +31 -0
- package/dist/server/graphql-pothos.js +134 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.js +10 -0
- package/dist/server/mcp/createMcpServer.d.ts +15 -0
- package/dist/server/mcp/createMcpServer.js +27 -0
- package/dist/server/mcp/mcpTypes.d.ts +27 -0
- package/dist/server/mcp/mcpTypes.js +0 -0
- package/dist/server/mcp/registerPresentations.d.ts +7 -0
- package/dist/server/mcp/registerPresentations.js +54 -0
- package/dist/server/mcp/registerPrompts.d.ts +8 -0
- package/dist/server/mcp/registerPrompts.js +41 -0
- package/dist/server/mcp/registerResources.d.ts +8 -0
- package/dist/server/mcp/registerResources.js +35 -0
- package/dist/server/mcp/registerTools.d.ts +8 -0
- package/dist/server/mcp/registerTools.js +22 -0
- package/dist/server/provider-mcp.d.ts +2 -0
- package/dist/server/provider-mcp.js +3 -0
- package/dist/server/rest-elysia.d.ts +40 -0
- package/dist/server/rest-elysia.js +20 -0
- package/dist/server/rest-express.d.ts +16 -0
- package/dist/server/rest-express.js +36 -0
- package/dist/server/rest-generic.d.ts +32 -0
- package/dist/server/rest-generic.js +124 -0
- package/dist/server/rest-next-app.d.ts +35 -0
- package/dist/server/rest-next-app.js +38 -0
- package/dist/server/rest-next-mcp.d.ts +11 -0
- package/dist/server/rest-next-mcp.js +45 -0
- package/dist/server/rest-next-pages.d.ts +9 -0
- package/dist/server/rest-next-pages.js +22 -0
- package/dist/telemetry/anomaly.d.ts +27 -0
- package/dist/telemetry/anomaly.js +48 -0
- package/dist/telemetry/docs/telemetry.docblock.d.ts +6 -0
- package/dist/telemetry/docs/telemetry.docblock.js +21 -0
- package/dist/telemetry/index.d.ts +4 -0
- package/dist/telemetry/index.js +5 -0
- package/dist/telemetry/spec.d.ts +91 -0
- package/dist/telemetry/spec.js +42 -0
- package/dist/telemetry/tracker.d.ts +51 -0
- package/dist/telemetry/tracker.js +76 -0
- package/dist/tests/index.d.ts +3 -0
- package/dist/tests/index.js +4 -0
- package/dist/tests/runner.d.ts +43 -0
- package/dist/tests/runner.js +150 -0
- package/dist/tests/spec.d.ts +82 -0
- package/dist/tests/spec.js +34 -0
- package/dist/themes.d.ts +51 -0
- package/dist/themes.js +17 -0
- package/dist/translations/catalog.d.ts +28 -0
- package/dist/translations/catalog.js +0 -0
- package/dist/translations/tenant.d.ts +15 -0
- package/dist/translations/tenant.js +0 -0
- package/dist/types.d.ts +92 -0
- package/dist/types.js +0 -0
- package/dist/versioning/index.d.ts +3 -0
- package/dist/versioning/index.js +4 -0
- package/dist/versioning/types.d.ts +127 -0
- package/dist/versioning/types.js +24 -0
- package/dist/versioning/utils.d.ts +95 -0
- package/dist/versioning/utils.js +180 -0
- package/dist/workflow/adapters/db-adapter.d.ts +46 -0
- package/dist/workflow/adapters/db-adapter.js +83 -0
- package/dist/workflow/adapters/file-adapter.d.ts +14 -0
- package/dist/workflow/adapters/file-adapter.js +11 -0
- package/dist/workflow/adapters/index.d.ts +4 -0
- package/dist/workflow/adapters/index.js +5 -0
- package/dist/workflow/adapters/memory-store.d.ts +18 -0
- package/dist/workflow/adapters/memory-store.js +58 -0
- package/dist/workflow/expression.d.ts +9 -0
- package/dist/workflow/expression.js +99 -0
- package/dist/workflow/index.d.ts +17 -0
- package/dist/workflow/index.js +16 -0
- package/dist/workflow/overview.docblock.d.ts +6 -0
- package/dist/workflow/overview.docblock.js +21 -0
- package/dist/workflow/runner.d.ts +77 -0
- package/dist/workflow/runner.js +337 -0
- package/dist/workflow/sla-monitor.d.ts +20 -0
- package/dist/workflow/sla-monitor.js +47 -0
- package/dist/workflow/spec.d.ts +93 -0
- package/dist/workflow/spec.js +11 -0
- package/dist/workflow/state.d.ts +35 -0
- package/dist/workflow/state.js +0 -0
- package/dist/workflow/validation.d.ts +29 -0
- package/dist/workflow/validation.js +176 -0
- package/dist/workspace-config/contractsrc-schema.d.ts +1162 -0
- package/dist/workspace-config/contractsrc-schema.js +421 -0
- package/dist/workspace-config/index.d.ts +2 -0
- package/dist/workspace-config/index.js +3 -0
- package/dist/workspace-config/workspace-config.docblock.d.ts +6 -0
- package/dist/workspace-config/workspace-config.docblock.js +45 -0
- package/package.json +618 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { StabilityEnum } from "../ownership.js";
|
|
2
|
+
|
|
3
|
+
//#region src/capabilities/openbanking.ts
|
|
4
|
+
const OWNERS = ["platform.finance"];
|
|
5
|
+
const TAGS = ["open-banking", "finance"];
|
|
6
|
+
const openBankingAccountsReadCapability = {
|
|
7
|
+
meta: {
|
|
8
|
+
key: "openbanking.accounts.read",
|
|
9
|
+
version: "1.0.0",
|
|
10
|
+
kind: "integration",
|
|
11
|
+
title: "Open Banking Accounts (Read)",
|
|
12
|
+
description: "Provides read-only access to linked bank accounts, including account summaries and metadata.",
|
|
13
|
+
domain: "finance",
|
|
14
|
+
owners: [...OWNERS],
|
|
15
|
+
tags: [...TAGS],
|
|
16
|
+
stability: StabilityEnum.Experimental
|
|
17
|
+
},
|
|
18
|
+
provides: [
|
|
19
|
+
{
|
|
20
|
+
surface: "operation",
|
|
21
|
+
key: "openbanking.accounts.list",
|
|
22
|
+
version: "1.0.0",
|
|
23
|
+
description: "List bank accounts linked to a Powens open banking connection."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
surface: "operation",
|
|
27
|
+
key: "openbanking.accounts.get",
|
|
28
|
+
version: "1.0.0",
|
|
29
|
+
description: "Retrieve the canonical bank account record for a specific account."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
surface: "operation",
|
|
33
|
+
key: "openbanking.accounts.sync",
|
|
34
|
+
version: "1.0.0",
|
|
35
|
+
description: "Trigger a refresh of bank account metadata from the open banking provider."
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
const openBankingTransactionsReadCapability = {
|
|
40
|
+
meta: {
|
|
41
|
+
key: "openbanking.transactions.read",
|
|
42
|
+
version: "1.0.0",
|
|
43
|
+
kind: "integration",
|
|
44
|
+
title: "Open Banking Transactions (Read)",
|
|
45
|
+
description: "Enables retrieval of transaction history for linked bank accounts via open banking providers.",
|
|
46
|
+
domain: "finance",
|
|
47
|
+
owners: [...OWNERS],
|
|
48
|
+
tags: [...TAGS, "transactions"],
|
|
49
|
+
stability: StabilityEnum.Experimental
|
|
50
|
+
},
|
|
51
|
+
provides: [{
|
|
52
|
+
surface: "operation",
|
|
53
|
+
key: "openbanking.transactions.list",
|
|
54
|
+
version: "1.0.0",
|
|
55
|
+
description: "List transactions for a given bank account with optional date filtering."
|
|
56
|
+
}, {
|
|
57
|
+
surface: "operation",
|
|
58
|
+
key: "openbanking.transactions.sync",
|
|
59
|
+
version: "1.0.0",
|
|
60
|
+
description: "Synchronise transactions from the open banking provider into the canonical ledger."
|
|
61
|
+
}]
|
|
62
|
+
};
|
|
63
|
+
const openBankingBalancesReadCapability = {
|
|
64
|
+
meta: {
|
|
65
|
+
key: "openbanking.balances.read",
|
|
66
|
+
version: "1.0.0",
|
|
67
|
+
kind: "integration",
|
|
68
|
+
title: "Open Banking Balances (Read)",
|
|
69
|
+
description: "Allows querying of current and available balances for linked bank accounts via open banking providers.",
|
|
70
|
+
domain: "finance",
|
|
71
|
+
owners: [...OWNERS],
|
|
72
|
+
tags: [...TAGS, "balances"],
|
|
73
|
+
stability: StabilityEnum.Experimental
|
|
74
|
+
},
|
|
75
|
+
provides: [{
|
|
76
|
+
surface: "operation",
|
|
77
|
+
key: "openbanking.balances.get",
|
|
78
|
+
version: "1.0.0",
|
|
79
|
+
description: "Retrieve the latest known balances for a specified bank account."
|
|
80
|
+
}, {
|
|
81
|
+
surface: "operation",
|
|
82
|
+
key: "openbanking.balances.refresh",
|
|
83
|
+
version: "1.0.0",
|
|
84
|
+
description: "Force a balance refresh from the open banking provider."
|
|
85
|
+
}]
|
|
86
|
+
};
|
|
87
|
+
function registerOpenBankingCapabilities(registry) {
|
|
88
|
+
return registry.register(openBankingAccountsReadCapability).register(openBankingTransactionsReadCapability).register(openBankingBalancesReadCapability);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
//#endregion
|
|
92
|
+
export { openBankingAccountsReadCapability, openBankingBalancesReadCapability, openBankingTransactionsReadCapability, registerOpenBankingCapabilities };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { createEngineWithDefaults, createFeatureModule, registerFeature, renderFeaturePresentation } from "./react/feature-render.js";
|
|
2
|
+
import { ComputationMap, CreateRendererOptions, DriverSlots, RenderOptions, ResolverMap, createFormRenderer } from "./react/form-render.js";
|
|
3
|
+
import { ShadcnDriver, shadcnDriver } from "./react/drivers/shadcn.js";
|
|
4
|
+
import { RnReusablesDriver, rnReusablesDriver } from "./react/drivers/rn-reusables.js";
|
|
5
|
+
import "./react/index.js";
|
|
6
|
+
export { ComputationMap, CreateRendererOptions, DriverSlots, RenderOptions, ResolverMap, RnReusablesDriver, ShadcnDriver, createEngineWithDefaults, createFeatureModule, createFormRenderer, registerFeature, renderFeaturePresentation, rnReusablesDriver, shadcnDriver };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { createEngineWithDefaults, createFeatureModule, registerFeature, renderFeaturePresentation } from "./react/feature-render.js";
|
|
4
|
+
import { createFormRenderer } from "./react/form-render.js";
|
|
5
|
+
import { shadcnDriver } from "./react/drivers/shadcn.js";
|
|
6
|
+
import { rnReusablesDriver } from "./react/drivers/rn-reusables.js";
|
|
7
|
+
import "./react/index.js";
|
|
8
|
+
|
|
9
|
+
export { createEngineWithDefaults, createFeatureModule, createFormRenderer, registerFeature, renderFeaturePresentation, rnReusablesDriver, shadcnDriver };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DriverSlots } from "../form-render.js";
|
|
2
|
+
|
|
3
|
+
//#region src/client/react/drivers/rn-reusables.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Create a React Native UI-kit driver by mapping required slots to components.
|
|
7
|
+
* Host apps should import their UI-kit primitives and pass them here.
|
|
8
|
+
*
|
|
9
|
+
* Example usage:
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { rnReusablesDriver } from '@contractspec/lib.contracts/client/react/drivers/rn-reusables';
|
|
12
|
+
* import { Input, Textarea, Button } from '@contractspec/lib.ui-kit/ui';
|
|
13
|
+
*
|
|
14
|
+
* const driver = rnReusablesDriver({
|
|
15
|
+
* Input, Textarea, Button, // ... other components
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
declare function rnReusablesDriver(slots: DriverSlots): DriverSlots;
|
|
20
|
+
type RnReusablesDriver = ReturnType<typeof rnReusablesDriver>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { RnReusablesDriver, rnReusablesDriver };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/client/react/drivers/rn-reusables.ts
|
|
2
|
+
/**
|
|
3
|
+
* Create a React Native UI-kit driver by mapping required slots to components.
|
|
4
|
+
* Host apps should import their UI-kit primitives and pass them here.
|
|
5
|
+
*
|
|
6
|
+
* Example usage:
|
|
7
|
+
* ```tsx
|
|
8
|
+
* import { rnReusablesDriver } from '@contractspec/lib.contracts/client/react/drivers/rn-reusables';
|
|
9
|
+
* import { Input, Textarea, Button } from '@contractspec/lib.ui-kit/ui';
|
|
10
|
+
*
|
|
11
|
+
* const driver = rnReusablesDriver({
|
|
12
|
+
* Input, Textarea, Button, // ... other components
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
function rnReusablesDriver(slots) {
|
|
17
|
+
return slots;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { rnReusablesDriver };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DriverSlots } from "../form-render.js";
|
|
2
|
+
|
|
3
|
+
//#region src/client/react/drivers/shadcn.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Create a shadcn/ui driver by mapping required slots to components.
|
|
7
|
+
* Host apps should import their shadcn primitives and pass them here.
|
|
8
|
+
*/
|
|
9
|
+
declare function shadcnDriver(slots: DriverSlots): DriverSlots;
|
|
10
|
+
type ShadcnDriver = ReturnType<typeof shadcnDriver>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ShadcnDriver, shadcnDriver };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/client/react/drivers/shadcn.ts
|
|
2
|
+
/**
|
|
3
|
+
* Create a shadcn/ui driver by mapping required slots to components.
|
|
4
|
+
* Host apps should import their shadcn primitives and pass them here.
|
|
5
|
+
*/
|
|
6
|
+
function shadcnDriver(slots) {
|
|
7
|
+
return slots;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { shadcnDriver };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PresentationSpec, PresentationTarget } from "../../presentations/presentations.js";
|
|
2
|
+
import { FeatureModuleSpec } from "../../features/types.js";
|
|
3
|
+
import { FeatureRegistry } from "../../features/registry.js";
|
|
4
|
+
import { ComponentMap, TransformEngine } from "../../presentations/transform-engine.js";
|
|
5
|
+
import "../../presentations/index.js";
|
|
6
|
+
import "../../features/index.js";
|
|
7
|
+
import React from "react";
|
|
8
|
+
import { BlockConfig } from "@blocknote/core";
|
|
9
|
+
|
|
10
|
+
//#region src/client/react/feature-render.d.ts
|
|
11
|
+
declare function createEngineWithDefaults(): TransformEngine;
|
|
12
|
+
declare function renderFeaturePresentation(engine: TransformEngine, target: PresentationTarget, desc: PresentationSpec, options?: {
|
|
13
|
+
componentMap?: ComponentMap;
|
|
14
|
+
reactProps?: Record<string, unknown>;
|
|
15
|
+
renderBlockNote?: (docJson: unknown, blockConfig?: BlockConfig) => React.ReactElement;
|
|
16
|
+
}): Promise<React.ReactElement | {
|
|
17
|
+
mimeType: string;
|
|
18
|
+
body: string;
|
|
19
|
+
} | null>;
|
|
20
|
+
declare function createFeatureModule(meta: FeatureModuleSpec['meta'], refs: Partial<Pick<FeatureModuleSpec, 'operations' | 'events' | 'presentations' | 'presentationsTargets'>>): FeatureModuleSpec;
|
|
21
|
+
declare function registerFeature(registry: FeatureRegistry, feature: FeatureModuleSpec): FeatureRegistry;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { createEngineWithDefaults, createFeatureModule, registerFeature, renderFeaturePresentation };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createDefaultTransformEngine, registerBasicValidation, registerDefaultReactRenderer } from "../../presentations/transform-engine.js";
|
|
2
|
+
import "../../presentations/index.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/client/react/feature-render.ts
|
|
6
|
+
function createEngineWithDefaults() {
|
|
7
|
+
return registerBasicValidation(registerDefaultReactRenderer(createDefaultTransformEngine()));
|
|
8
|
+
}
|
|
9
|
+
async function renderFeaturePresentation(engine, target, desc, options) {
|
|
10
|
+
if (target === "react") {
|
|
11
|
+
const rd = await engine.render("react", desc);
|
|
12
|
+
if (rd.kind === "react_component") {
|
|
13
|
+
const C = (options?.componentMap ?? {})[rd.componentKey];
|
|
14
|
+
if (!C) return null;
|
|
15
|
+
const merged = {
|
|
16
|
+
...rd.props ?? {},
|
|
17
|
+
...options?.reactProps ?? {}
|
|
18
|
+
};
|
|
19
|
+
return React.createElement(C, merged);
|
|
20
|
+
}
|
|
21
|
+
if (rd.kind === "blocknotejs") {
|
|
22
|
+
if (options?.renderBlockNote) return options.renderBlockNote(rd.docJson, rd.blockConfig);
|
|
23
|
+
return React.createElement("div", {}, "[BlockNote renderer not configured]");
|
|
24
|
+
}
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
if (target === "markdown") return engine.render(target, desc);
|
|
28
|
+
if (target === "application/json") return engine.render(target, desc);
|
|
29
|
+
if (target === "application/xml") return engine.render(target, desc);
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
function createFeatureModule(meta, refs) {
|
|
33
|
+
return {
|
|
34
|
+
meta,
|
|
35
|
+
...refs
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function registerFeature(registry, feature) {
|
|
39
|
+
registry.register(feature);
|
|
40
|
+
return registry;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { createEngineWithDefaults, createFeatureModule, registerFeature, renderFeaturePresentation };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { FormOption, FormSpec, FormValuesFor } from "../../forms/forms.js";
|
|
2
|
+
import "../../forms/index.js";
|
|
3
|
+
import { AnySchemaModel } from "@contractspec/lib.schema";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/client/react/form-render.d.ts
|
|
8
|
+
interface DriverSlots {
|
|
9
|
+
Field: React.ComponentType<React.PropsWithChildren<{
|
|
10
|
+
'data-invalid'?: boolean;
|
|
11
|
+
hidden?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}>>;
|
|
14
|
+
FieldLabel: React.ComponentType<React.PropsWithChildren<{
|
|
15
|
+
htmlFor?: string;
|
|
16
|
+
}>>;
|
|
17
|
+
FieldDescription: React.ComponentType<React.PropsWithChildren<{}>>;
|
|
18
|
+
FieldError: React.ComponentType<{
|
|
19
|
+
errors: {
|
|
20
|
+
message?: string;
|
|
21
|
+
}[];
|
|
22
|
+
}>;
|
|
23
|
+
FieldGroup?: React.ComponentType<React.PropsWithChildren<{
|
|
24
|
+
className?: string;
|
|
25
|
+
}>>;
|
|
26
|
+
FieldSet?: React.ComponentType<React.PropsWithChildren<{
|
|
27
|
+
className?: string;
|
|
28
|
+
}>>;
|
|
29
|
+
FieldLegend?: React.ComponentType<React.PropsWithChildren<{
|
|
30
|
+
variant?: 'label' | 'default';
|
|
31
|
+
}>>;
|
|
32
|
+
Input: React.ComponentType<React.InputHTMLAttributes<HTMLInputElement>>;
|
|
33
|
+
Textarea: React.ComponentType<React.TextareaHTMLAttributes<HTMLTextAreaElement>>;
|
|
34
|
+
Select: React.ComponentType<{
|
|
35
|
+
id?: string;
|
|
36
|
+
name?: string;
|
|
37
|
+
value?: unknown;
|
|
38
|
+
onChange?: (v: unknown) => void;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
'aria-invalid'?: boolean;
|
|
41
|
+
options: FormOption[];
|
|
42
|
+
} & Record<string, unknown>>;
|
|
43
|
+
Checkbox: React.ComponentType<{
|
|
44
|
+
id?: string;
|
|
45
|
+
name?: string;
|
|
46
|
+
checked?: boolean;
|
|
47
|
+
onCheckedChange?: (v: boolean) => void;
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
} & Record<string, unknown>>;
|
|
50
|
+
RadioGroup: React.ComponentType<{
|
|
51
|
+
id?: string;
|
|
52
|
+
name?: string;
|
|
53
|
+
value?: unknown;
|
|
54
|
+
onValueChange?: (v: unknown) => void;
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
options: FormOption[];
|
|
57
|
+
} & Record<string, unknown>>;
|
|
58
|
+
Switch: React.ComponentType<{
|
|
59
|
+
id?: string;
|
|
60
|
+
name?: string;
|
|
61
|
+
checked?: boolean;
|
|
62
|
+
onCheckedChange?: (v: boolean) => void;
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
} & Record<string, unknown>>;
|
|
65
|
+
Button: React.ComponentType<React.PropsWithChildren<{
|
|
66
|
+
type?: 'button' | 'submit' | 'reset';
|
|
67
|
+
variant?: string;
|
|
68
|
+
size?: string;
|
|
69
|
+
onClick?: () => void;
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
}>>;
|
|
72
|
+
}
|
|
73
|
+
type ResolverMap<TValues> = Record<string, (values: TValues, args?: unknown) => Promise<FormOption[]> | FormOption[]>;
|
|
74
|
+
type ComputationMap<TValues> = Record<string, (values: TValues) => unknown>;
|
|
75
|
+
interface CreateRendererOptions<TValues = Record<string, unknown>> {
|
|
76
|
+
driver: DriverSlots;
|
|
77
|
+
formOptions?: Record<string, unknown>;
|
|
78
|
+
onSubmitOverride?: (values: TValues, actionKey: string) => Promise<void> | void;
|
|
79
|
+
activeFlags?: string[];
|
|
80
|
+
resolvers?: ResolverMap<TValues>;
|
|
81
|
+
computations?: ComputationMap<TValues>;
|
|
82
|
+
unmountStrategy?: 'keep' | 'clear';
|
|
83
|
+
}
|
|
84
|
+
interface RenderOptions<TValues = Record<string, unknown>> {
|
|
85
|
+
defaultValues?: Partial<TValues>;
|
|
86
|
+
overrides?: Partial<CreateRendererOptions<TValues>>;
|
|
87
|
+
}
|
|
88
|
+
declare function createFormRenderer<M extends AnySchemaModel = AnySchemaModel>(base: CreateRendererOptions<FormValuesFor<M>>): {
|
|
89
|
+
render: (spec: FormSpec<M>, options?: RenderOptions<FormValuesFor<M>>) => react_jsx_runtime0.JSX.Element;
|
|
90
|
+
};
|
|
91
|
+
//#endregion
|
|
92
|
+
export { ComputationMap, CreateRendererOptions, DriverSlots, RenderOptions, ResolverMap, createFormRenderer };
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { buildZodWithRelations, evalPredicate } from "../../forms/forms.js";
|
|
4
|
+
import "../../forms/index.js";
|
|
5
|
+
import React, { useEffect, useMemo, useState } from "react";
|
|
6
|
+
import { Controller, useFieldArray, useForm } from "react-hook-form";
|
|
7
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
8
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
//#region src/client/react/form-render.tsx
|
|
11
|
+
function toOptionsArray(src) {
|
|
12
|
+
if (!src) return void 0;
|
|
13
|
+
if (Array.isArray(src)) return {
|
|
14
|
+
kind: "static",
|
|
15
|
+
options: src
|
|
16
|
+
};
|
|
17
|
+
return src;
|
|
18
|
+
}
|
|
19
|
+
function getAtPath(values, path) {
|
|
20
|
+
if (!path) return void 0;
|
|
21
|
+
const segs = path.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
|
|
22
|
+
let cur = values;
|
|
23
|
+
for (const s of segs) {
|
|
24
|
+
if (cur == null) return void 0;
|
|
25
|
+
cur = cur[s];
|
|
26
|
+
}
|
|
27
|
+
return cur;
|
|
28
|
+
}
|
|
29
|
+
function makeDepsKey(values, deps) {
|
|
30
|
+
if (!deps || deps.length === 0) return "[]";
|
|
31
|
+
try {
|
|
32
|
+
return JSON.stringify(deps.map((d) => getAtPath(values, d)));
|
|
33
|
+
} catch {
|
|
34
|
+
return "[]";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function useResolvedOptions(values, source, resolvers) {
|
|
38
|
+
const [opts, setOpts] = useState([]);
|
|
39
|
+
useEffect(() => {
|
|
40
|
+
let mounted = true;
|
|
41
|
+
const run = async () => {
|
|
42
|
+
if (!source) return setOpts([]);
|
|
43
|
+
if (source.kind === "static") return setOpts([...source.options ?? []]);
|
|
44
|
+
const fn = resolvers?.[source.resolverKey];
|
|
45
|
+
if (!fn) return setOpts([]);
|
|
46
|
+
const res = await fn(values, source.args);
|
|
47
|
+
if (mounted) setOpts([...res ?? []]);
|
|
48
|
+
};
|
|
49
|
+
run();
|
|
50
|
+
return () => {
|
|
51
|
+
mounted = false;
|
|
52
|
+
};
|
|
53
|
+
}, [useMemo(() => {
|
|
54
|
+
if (!source) return "nil";
|
|
55
|
+
if (source.kind === "static") return JSON.stringify(source.options ?? []);
|
|
56
|
+
return makeDepsKey(values, source.deps);
|
|
57
|
+
}, [source, values]), source && source.kind === "resolver" ? source.resolverKey : void 0]);
|
|
58
|
+
return opts;
|
|
59
|
+
}
|
|
60
|
+
function fieldPath(parent, name, arrayIndex) {
|
|
61
|
+
if (!name) return parent ?? "";
|
|
62
|
+
const child = typeof arrayIndex === "number" ? `${name.replace(/^\$index$/, String(arrayIndex))}` : name;
|
|
63
|
+
return parent ? `${parent}${typeof arrayIndex === "number" ? `.${arrayIndex}` : ""}.${child}`.replace(/\.+/g, ".") : child;
|
|
64
|
+
}
|
|
65
|
+
function createFormRenderer(base) {
|
|
66
|
+
const conf = base;
|
|
67
|
+
const { driver } = conf;
|
|
68
|
+
function InternalForm(props) {
|
|
69
|
+
const { spec, options, merged } = props;
|
|
70
|
+
const baseZod = useMemo(() => buildZodWithRelations(spec), [spec]);
|
|
71
|
+
const form = useForm({
|
|
72
|
+
...merged.formOptions,
|
|
73
|
+
resolver: zodResolver(baseZod),
|
|
74
|
+
defaultValues: options?.defaultValues
|
|
75
|
+
});
|
|
76
|
+
const values = form.watch();
|
|
77
|
+
const renderOne = (f, parent, arrayIndex) => {
|
|
78
|
+
const DriverField = driver.Field;
|
|
79
|
+
const DriverLabel = driver.FieldLabel;
|
|
80
|
+
const DriverDesc = driver.FieldDescription;
|
|
81
|
+
const DriverError = driver.FieldError;
|
|
82
|
+
const name = fieldPath(parent, f.name, arrayIndex);
|
|
83
|
+
const visible = evalPredicate(values, f.visibleWhen);
|
|
84
|
+
const enabled = evalPredicate(values, f.enabledWhen);
|
|
85
|
+
const invalid = Boolean(form.getFieldState(name)?.invalid);
|
|
86
|
+
if (!visible) return null;
|
|
87
|
+
const id = name?.replace(/\./g, "-");
|
|
88
|
+
const commonWrapProps = {
|
|
89
|
+
"data-invalid": invalid,
|
|
90
|
+
hidden: !visible,
|
|
91
|
+
disabled: !enabled
|
|
92
|
+
};
|
|
93
|
+
const labelNode = f.labelI18n ? /* @__PURE__ */ jsx(DriverLabel, {
|
|
94
|
+
htmlFor: id,
|
|
95
|
+
children: f.labelI18n
|
|
96
|
+
}) : null;
|
|
97
|
+
const descNode = f.descriptionI18n ? /* @__PURE__ */ jsx(DriverDesc, { children: f.descriptionI18n }) : null;
|
|
98
|
+
if (f.kind === "group") {
|
|
99
|
+
const children = f.fields.map((c, i) => /* @__PURE__ */ jsx(React.Fragment, { children: renderOne(c, name, arrayIndex) }, `${name}-${i}`));
|
|
100
|
+
return /* @__PURE__ */ jsxs(DriverField, {
|
|
101
|
+
...commonWrapProps,
|
|
102
|
+
children: [
|
|
103
|
+
labelNode,
|
|
104
|
+
children,
|
|
105
|
+
descNode
|
|
106
|
+
]
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
if (f.kind === "array") return renderArray(f, parent);
|
|
110
|
+
return /* @__PURE__ */ jsx(Controller, {
|
|
111
|
+
name,
|
|
112
|
+
control: form.control,
|
|
113
|
+
render: ({ field, fieldState }) => {
|
|
114
|
+
const err = fieldState.error ? [fieldState.error] : [];
|
|
115
|
+
const ariaInvalid = fieldState.invalid || void 0;
|
|
116
|
+
if (f.kind === "text") {
|
|
117
|
+
const textField = f;
|
|
118
|
+
const Input = driver.Input;
|
|
119
|
+
return /* @__PURE__ */ jsxs(DriverField, {
|
|
120
|
+
...commonWrapProps,
|
|
121
|
+
children: [
|
|
122
|
+
labelNode,
|
|
123
|
+
/* @__PURE__ */ jsx(Input, {
|
|
124
|
+
id,
|
|
125
|
+
"aria-invalid": ariaInvalid,
|
|
126
|
+
placeholder: f.placeholderI18n,
|
|
127
|
+
autoComplete: textField.autoComplete,
|
|
128
|
+
inputMode: textField.inputMode,
|
|
129
|
+
maxLength: textField.maxLength,
|
|
130
|
+
minLength: textField.minLength,
|
|
131
|
+
disabled: !enabled,
|
|
132
|
+
...field,
|
|
133
|
+
...f.uiProps
|
|
134
|
+
}),
|
|
135
|
+
descNode,
|
|
136
|
+
fieldState.invalid ? /* @__PURE__ */ jsx(DriverError, { errors: err }) : null
|
|
137
|
+
]
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
if (f.kind === "textarea") {
|
|
141
|
+
const textareaField = f;
|
|
142
|
+
const Textarea = driver.Textarea;
|
|
143
|
+
return /* @__PURE__ */ jsxs(DriverField, {
|
|
144
|
+
...commonWrapProps,
|
|
145
|
+
children: [
|
|
146
|
+
labelNode,
|
|
147
|
+
/* @__PURE__ */ jsx(Textarea, {
|
|
148
|
+
id,
|
|
149
|
+
"aria-invalid": ariaInvalid,
|
|
150
|
+
placeholder: f.placeholderI18n,
|
|
151
|
+
rows: textareaField.rows,
|
|
152
|
+
maxLength: textareaField.maxLength,
|
|
153
|
+
disabled: !enabled,
|
|
154
|
+
...field,
|
|
155
|
+
...f.uiProps
|
|
156
|
+
}),
|
|
157
|
+
descNode,
|
|
158
|
+
fieldState.invalid ? /* @__PURE__ */ jsx(DriverError, { errors: err }) : null
|
|
159
|
+
]
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
if (f.kind === "select") {
|
|
163
|
+
const selectField = f;
|
|
164
|
+
const Select = driver.Select;
|
|
165
|
+
const opts = useResolvedOptions(values, toOptionsArray(selectField.options), merged.resolvers);
|
|
166
|
+
return /* @__PURE__ */ jsxs(DriverField, {
|
|
167
|
+
...commonWrapProps,
|
|
168
|
+
children: [
|
|
169
|
+
labelNode,
|
|
170
|
+
/* @__PURE__ */ jsx(Select, {
|
|
171
|
+
id,
|
|
172
|
+
name,
|
|
173
|
+
"aria-invalid": ariaInvalid,
|
|
174
|
+
disabled: !enabled,
|
|
175
|
+
value: field.value,
|
|
176
|
+
onChange: (v) => field.onChange(v),
|
|
177
|
+
options: opts,
|
|
178
|
+
...f.uiProps
|
|
179
|
+
}),
|
|
180
|
+
descNode,
|
|
181
|
+
fieldState.invalid ? /* @__PURE__ */ jsx(DriverError, { errors: err }) : null
|
|
182
|
+
]
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
if (f.kind === "checkbox") {
|
|
186
|
+
const Checkbox = driver.Checkbox;
|
|
187
|
+
return /* @__PURE__ */ jsxs(DriverField, {
|
|
188
|
+
...commonWrapProps,
|
|
189
|
+
children: [
|
|
190
|
+
labelNode,
|
|
191
|
+
/* @__PURE__ */ jsx(Checkbox, {
|
|
192
|
+
id,
|
|
193
|
+
name,
|
|
194
|
+
disabled: !enabled,
|
|
195
|
+
checked: !!field.value,
|
|
196
|
+
onCheckedChange: (v) => field.onChange(v),
|
|
197
|
+
...f.uiProps
|
|
198
|
+
}),
|
|
199
|
+
descNode,
|
|
200
|
+
fieldState.invalid ? /* @__PURE__ */ jsx(DriverError, { errors: err }) : null
|
|
201
|
+
]
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
if (f.kind === "radio") {
|
|
205
|
+
const radioField = f;
|
|
206
|
+
const RadioGroup = driver.RadioGroup;
|
|
207
|
+
const opts = useResolvedOptions(values, toOptionsArray(radioField.options), merged.resolvers);
|
|
208
|
+
return /* @__PURE__ */ jsxs(DriverField, {
|
|
209
|
+
...commonWrapProps,
|
|
210
|
+
children: [
|
|
211
|
+
labelNode,
|
|
212
|
+
/* @__PURE__ */ jsx(RadioGroup, {
|
|
213
|
+
id,
|
|
214
|
+
name,
|
|
215
|
+
disabled: !enabled,
|
|
216
|
+
value: field.value,
|
|
217
|
+
onValueChange: (v) => field.onChange(v),
|
|
218
|
+
options: opts,
|
|
219
|
+
...f.uiProps
|
|
220
|
+
}),
|
|
221
|
+
descNode,
|
|
222
|
+
fieldState.invalid ? /* @__PURE__ */ jsx(DriverError, { errors: err }) : null
|
|
223
|
+
]
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
if (f.kind === "switch") {
|
|
227
|
+
const Switch = driver.Switch;
|
|
228
|
+
return /* @__PURE__ */ jsxs(DriverField, {
|
|
229
|
+
...commonWrapProps,
|
|
230
|
+
children: [
|
|
231
|
+
labelNode,
|
|
232
|
+
/* @__PURE__ */ jsx(Switch, {
|
|
233
|
+
id,
|
|
234
|
+
name,
|
|
235
|
+
disabled: !enabled,
|
|
236
|
+
checked: !!field.value,
|
|
237
|
+
onCheckedChange: (v) => field.onChange(v),
|
|
238
|
+
...f.uiProps
|
|
239
|
+
}),
|
|
240
|
+
descNode,
|
|
241
|
+
fieldState.invalid ? /* @__PURE__ */ jsx(DriverError, { errors: err }) : null
|
|
242
|
+
]
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
return /* @__PURE__ */ jsx(Fragment, {});
|
|
246
|
+
}
|
|
247
|
+
}, name);
|
|
248
|
+
};
|
|
249
|
+
const renderArray = (f, parent) => {
|
|
250
|
+
const name = fieldPath(parent, f.name);
|
|
251
|
+
const { fields, append, remove } = useFieldArray({
|
|
252
|
+
control: form.control,
|
|
253
|
+
name
|
|
254
|
+
});
|
|
255
|
+
const canAdd = f.max == null || fields.length < f.max;
|
|
256
|
+
const canRemove = (idx) => (f.min == null ? fields.length > 0 : fields.length > f.min) && idx >= 0;
|
|
257
|
+
const Button$1 = driver.Button;
|
|
258
|
+
const Label = driver.FieldLabel;
|
|
259
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
260
|
+
f.labelI18n ? /* @__PURE__ */ jsx(Label, { children: f.labelI18n }) : null,
|
|
261
|
+
fields.map((row, idx) => /* @__PURE__ */ jsxs("div", { children: [renderOne(f.of, name, idx), canRemove(idx) ? /* @__PURE__ */ jsx(Button$1, {
|
|
262
|
+
type: "button",
|
|
263
|
+
variant: "ghost",
|
|
264
|
+
size: "sm",
|
|
265
|
+
onClick: () => remove(idx),
|
|
266
|
+
children: "Remove"
|
|
267
|
+
}) : null] }, row.id ?? idx)),
|
|
268
|
+
canAdd ? /* @__PURE__ */ jsx(Button$1, {
|
|
269
|
+
type: "button",
|
|
270
|
+
variant: "outline",
|
|
271
|
+
size: "sm",
|
|
272
|
+
onClick: () => append({}),
|
|
273
|
+
children: "Add"
|
|
274
|
+
}) : null
|
|
275
|
+
] }, name);
|
|
276
|
+
};
|
|
277
|
+
const onSubmit = async (data) => {
|
|
278
|
+
const actionKey = spec.actions?.[0]?.key ?? "submit";
|
|
279
|
+
if (merged.onSubmitOverride) return merged.onSubmitOverride(data, actionKey);
|
|
280
|
+
};
|
|
281
|
+
const Button = driver.Button;
|
|
282
|
+
return /* @__PURE__ */ jsxs("form", {
|
|
283
|
+
onSubmit: form.handleSubmit(onSubmit),
|
|
284
|
+
children: [(spec.fields || []).map((f, i) => /* @__PURE__ */ jsx(React.Fragment, { children: renderOne(f) }, i)), spec.actions && spec.actions.length ? /* @__PURE__ */ jsx("div", { children: spec.actions.map((a) => /* @__PURE__ */ jsx(Button, {
|
|
285
|
+
type: "submit",
|
|
286
|
+
children: a.labelI18n
|
|
287
|
+
}, a.key)) }) : null]
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
return { render: (spec, options) => /* @__PURE__ */ jsx(InternalForm, {
|
|
291
|
+
spec,
|
|
292
|
+
options,
|
|
293
|
+
merged: {
|
|
294
|
+
...conf,
|
|
295
|
+
...options?.overrides ?? {}
|
|
296
|
+
}
|
|
297
|
+
}) };
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
//#endregion
|
|
301
|
+
export { createFormRenderer };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { createEngineWithDefaults, createFeatureModule, registerFeature, renderFeaturePresentation } from "./feature-render.js";
|
|
2
|
+
import { ComputationMap, CreateRendererOptions, DriverSlots, RenderOptions, ResolverMap, createFormRenderer } from "./form-render.js";
|
|
3
|
+
import { ShadcnDriver, shadcnDriver } from "./drivers/shadcn.js";
|
|
4
|
+
import { RnReusablesDriver, rnReusablesDriver } from "./drivers/rn-reusables.js";
|
|
5
|
+
export { ComputationMap, CreateRendererOptions, DriverSlots, RenderOptions, ResolverMap, RnReusablesDriver, ShadcnDriver, createEngineWithDefaults, createFeatureModule, createFormRenderer, registerFeature, renderFeaturePresentation, rnReusablesDriver, shadcnDriver };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { createEngineWithDefaults, createFeatureModule, registerFeature, renderFeaturePresentation } from "./feature-render.js";
|
|
4
|
+
import { createFormRenderer } from "./form-render.js";
|
|
5
|
+
import { shadcnDriver } from "./drivers/shadcn.js";
|
|
6
|
+
import { rnReusablesDriver } from "./drivers/rn-reusables.js";
|
|
7
|
+
|
|
8
|
+
export { createEngineWithDefaults, createFeatureModule, createFormRenderer, registerFeature, renderFeaturePresentation, rnReusablesDriver, shadcnDriver };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ContractRegistryFile, ContractRegistryItem, ContractRegistryItemType, ContractRegistryManifest, JsonSchema } from "./types.js";
|
|
2
|
+
import { ContractRegistryFileSchema, ContractRegistryItemParsed, ContractRegistryItemSchema, ContractRegistryItemTypeSchema, ContractRegistryManifestParsed, ContractRegistryManifestSchema } from "./schemas.js";
|
|
3
|
+
export { type ContractRegistryFile, ContractRegistryFileSchema, type ContractRegistryItem, type ContractRegistryItemParsed, ContractRegistryItemSchema, type ContractRegistryItemType, ContractRegistryItemTypeSchema, type ContractRegistryManifest, type ContractRegistryManifestParsed, ContractRegistryManifestSchema, type JsonSchema };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema, ContractRegistryManifestSchema } from "./schemas.js";
|
|
2
|
+
|
|
3
|
+
export { ContractRegistryFileSchema, ContractRegistryItemSchema, ContractRegistryItemTypeSchema, ContractRegistryManifestSchema };
|