@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,674 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
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 = /* @__PURE__ */ createRequire(import.meta.url);
|
|
31
|
+
|
|
32
|
+
// src/integrations/openbanking/models.ts
|
|
33
|
+
import { ScalarTypeEnum, SchemaModel } from "@contractspec/lib.schema";
|
|
34
|
+
var BankAccountRecord = new SchemaModel({
|
|
35
|
+
name: "BankAccountRecord",
|
|
36
|
+
description: "Canonical representation of a bank account synced from an open banking provider.",
|
|
37
|
+
fields: {
|
|
38
|
+
id: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
39
|
+
tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
40
|
+
userId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
41
|
+
connectionId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
42
|
+
externalId: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
43
|
+
institutionId: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
44
|
+
institutionName: {
|
|
45
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
46
|
+
isOptional: false
|
|
47
|
+
},
|
|
48
|
+
institutionLogoUrl: { type: ScalarTypeEnum.URL(), isOptional: true },
|
|
49
|
+
iban: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
50
|
+
bic: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
51
|
+
accountType: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
52
|
+
currency: { type: ScalarTypeEnum.Currency(), isOptional: false },
|
|
53
|
+
displayName: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
54
|
+
accountNumberMasked: {
|
|
55
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
56
|
+
isOptional: true
|
|
57
|
+
},
|
|
58
|
+
productCode: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
59
|
+
balance: { type: ScalarTypeEnum.Float_unsecure(), isOptional: true },
|
|
60
|
+
availableBalance: {
|
|
61
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
62
|
+
isOptional: true
|
|
63
|
+
},
|
|
64
|
+
lastSyncedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
65
|
+
createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
66
|
+
updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
67
|
+
metadata: { type: ScalarTypeEnum.JSONObject(), isOptional: true }
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
var BankTransactionRecord = new SchemaModel({
|
|
71
|
+
name: "BankTransactionRecord",
|
|
72
|
+
description: "Canonical transaction entry mapped from Powens into the open banking ledger.",
|
|
73
|
+
fields: {
|
|
74
|
+
id: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
75
|
+
accountId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
76
|
+
tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
77
|
+
connectionId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
78
|
+
externalId: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
79
|
+
amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
80
|
+
currency: { type: ScalarTypeEnum.Currency(), isOptional: false },
|
|
81
|
+
date: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
82
|
+
bookingDate: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
83
|
+
valueDate: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
84
|
+
description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
85
|
+
counterpartyName: {
|
|
86
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
87
|
+
isOptional: true
|
|
88
|
+
},
|
|
89
|
+
counterpartyAccount: {
|
|
90
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
91
|
+
isOptional: true
|
|
92
|
+
},
|
|
93
|
+
merchantCategoryCode: {
|
|
94
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
95
|
+
isOptional: true
|
|
96
|
+
},
|
|
97
|
+
rawCategory: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
98
|
+
standardizedCategory: {
|
|
99
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
100
|
+
isOptional: true
|
|
101
|
+
},
|
|
102
|
+
transactionType: {
|
|
103
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
104
|
+
isOptional: false
|
|
105
|
+
},
|
|
106
|
+
status: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
107
|
+
runningBalance: { type: ScalarTypeEnum.Float_unsecure(), isOptional: true },
|
|
108
|
+
metadata: { type: ScalarTypeEnum.JSONObject(), isOptional: true },
|
|
109
|
+
createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
110
|
+
updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
var AccountBalanceRecord = new SchemaModel({
|
|
114
|
+
name: "AccountBalanceRecord",
|
|
115
|
+
description: "Canonical balance snapshot computed from Powens balance payloads.",
|
|
116
|
+
fields: {
|
|
117
|
+
id: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
118
|
+
accountId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
119
|
+
tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
120
|
+
connectionId: { type: ScalarTypeEnum.ID(), isOptional: false },
|
|
121
|
+
balanceType: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
122
|
+
currentBalance: {
|
|
123
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
124
|
+
isOptional: false
|
|
125
|
+
},
|
|
126
|
+
availableBalance: {
|
|
127
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
128
|
+
isOptional: true
|
|
129
|
+
},
|
|
130
|
+
currency: { type: ScalarTypeEnum.Currency(), isOptional: false },
|
|
131
|
+
lastUpdatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
132
|
+
createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
133
|
+
metadata: { type: ScalarTypeEnum.JSONObject(), isOptional: true }
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
// src/integrations/openbanking/telemetry.ts
|
|
138
|
+
var OPENBANKING_PII_FIELDS = [
|
|
139
|
+
"iban",
|
|
140
|
+
"bic",
|
|
141
|
+
"accountNumberMasked",
|
|
142
|
+
"accountNumber",
|
|
143
|
+
"counterpartyName",
|
|
144
|
+
"counterpartyAccount",
|
|
145
|
+
"description",
|
|
146
|
+
"merchantName",
|
|
147
|
+
"merchantCategoryCode",
|
|
148
|
+
"reference"
|
|
149
|
+
];
|
|
150
|
+
var OPENBANKING_TELEMETRY_EVENTS = {
|
|
151
|
+
accountsSynced: "openbanking.accounts.synced",
|
|
152
|
+
accountsSyncFailed: "openbanking.accounts.sync_failed",
|
|
153
|
+
transactionsSynced: "openbanking.transactions.synced",
|
|
154
|
+
transactionsSyncFailed: "openbanking.transactions.sync_failed",
|
|
155
|
+
balancesRefreshed: "openbanking.balances.refreshed",
|
|
156
|
+
balancesRefreshFailed: "openbanking.balances.refresh_failed",
|
|
157
|
+
overviewGenerated: "openbanking.overview.generated"
|
|
158
|
+
};
|
|
159
|
+
function redactOpenBankingTelemetryPayload(payload) {
|
|
160
|
+
const redacted = {};
|
|
161
|
+
for (const [key, value] of Object.entries(payload)) {
|
|
162
|
+
if (OPENBANKING_PII_FIELDS.includes(key)) {
|
|
163
|
+
redacted[key] = maskValue(value);
|
|
164
|
+
} else if (Array.isArray(value)) {
|
|
165
|
+
redacted[key] = value.map((item) => typeof item === "object" && item !== null ? redactOpenBankingTelemetryPayload(item) : item);
|
|
166
|
+
} else if (typeof value === "object" && value !== null) {
|
|
167
|
+
redacted[key] = redactOpenBankingTelemetryPayload(value);
|
|
168
|
+
} else {
|
|
169
|
+
redacted[key] = value;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return redacted;
|
|
173
|
+
}
|
|
174
|
+
function maskValue(value) {
|
|
175
|
+
if (value == null)
|
|
176
|
+
return "";
|
|
177
|
+
const str = String(value);
|
|
178
|
+
if (str.length <= 4)
|
|
179
|
+
return "*".repeat(str.length);
|
|
180
|
+
return `${"*".repeat(Math.max(str.length - 4, 0))}${str.slice(-4)}`;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// src/integrations/openbanking/contracts/accounts.ts
|
|
184
|
+
import { ScalarTypeEnum as ScalarTypeEnum2, SchemaModel as SchemaModel2 } from "@contractspec/lib.schema";
|
|
185
|
+
import {
|
|
186
|
+
defineCommand,
|
|
187
|
+
defineQuery
|
|
188
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
189
|
+
var OpenBankingListAccountsInput = new SchemaModel2({
|
|
190
|
+
name: "OpenBankingListAccountsInput",
|
|
191
|
+
description: "Parameters for listing bank accounts through the open banking provider.",
|
|
192
|
+
fields: {
|
|
193
|
+
tenantId: { type: ScalarTypeEnum2.ID(), isOptional: false },
|
|
194
|
+
userId: { type: ScalarTypeEnum2.ID(), isOptional: false },
|
|
195
|
+
connectionId: { type: ScalarTypeEnum2.ID(), isOptional: true },
|
|
196
|
+
includeBalances: { type: ScalarTypeEnum2.Boolean(), isOptional: true },
|
|
197
|
+
institutionId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
198
|
+
cursor: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
199
|
+
pageSize: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true }
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
var OpenBankingListAccountsOutput = new SchemaModel2({
|
|
203
|
+
name: "OpenBankingListAccountsOutput",
|
|
204
|
+
description: "Paginated list of bank accounts available to the tenant and user.",
|
|
205
|
+
fields: {
|
|
206
|
+
accounts: {
|
|
207
|
+
type: BankAccountRecord,
|
|
208
|
+
isOptional: false,
|
|
209
|
+
isArray: true
|
|
210
|
+
},
|
|
211
|
+
nextCursor: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
|
|
212
|
+
hasMore: { type: ScalarTypeEnum2.Boolean(), isOptional: true }
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
var OpenBankingGetAccountInput = new SchemaModel2({
|
|
216
|
+
name: "OpenBankingGetAccountInput",
|
|
217
|
+
description: "Parameters for retrieving a specific bank account.",
|
|
218
|
+
fields: {
|
|
219
|
+
tenantId: { type: ScalarTypeEnum2.ID(), isOptional: false },
|
|
220
|
+
accountId: { type: ScalarTypeEnum2.ID(), isOptional: false },
|
|
221
|
+
includeBalances: { type: ScalarTypeEnum2.Boolean(), isOptional: true },
|
|
222
|
+
includeLatestTransactions: {
|
|
223
|
+
type: ScalarTypeEnum2.Boolean(),
|
|
224
|
+
isOptional: true
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
var OpenBankingSyncAccountsInput = new SchemaModel2({
|
|
229
|
+
name: "OpenBankingSyncAccountsInput",
|
|
230
|
+
description: "Command payload to trigger an account synchronisation against the open banking provider.",
|
|
231
|
+
fields: {
|
|
232
|
+
tenantId: { type: ScalarTypeEnum2.ID(), isOptional: false },
|
|
233
|
+
userId: { type: ScalarTypeEnum2.ID(), isOptional: true },
|
|
234
|
+
connectionId: { type: ScalarTypeEnum2.ID(), isOptional: false },
|
|
235
|
+
accountIds: {
|
|
236
|
+
type: ScalarTypeEnum2.ID(),
|
|
237
|
+
isArray: true,
|
|
238
|
+
isOptional: true
|
|
239
|
+
},
|
|
240
|
+
forceFullRefresh: { type: ScalarTypeEnum2.Boolean(), isOptional: true },
|
|
241
|
+
triggerWorkflows: { type: ScalarTypeEnum2.Boolean(), isOptional: true }
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
var OpenBankingSyncAccountsOutput = new SchemaModel2({
|
|
245
|
+
name: "OpenBankingSyncAccountsOutput",
|
|
246
|
+
description: "Result of a bank account synchronisation run.",
|
|
247
|
+
fields: {
|
|
248
|
+
synced: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: false },
|
|
249
|
+
failed: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: false },
|
|
250
|
+
errors: {
|
|
251
|
+
type: ScalarTypeEnum2.String_unsecure(),
|
|
252
|
+
isArray: true,
|
|
253
|
+
isOptional: true
|
|
254
|
+
},
|
|
255
|
+
nextSyncSuggestedAt: {
|
|
256
|
+
type: ScalarTypeEnum2.DateTime(),
|
|
257
|
+
isOptional: true
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
var OpenBankingListAccounts = defineQuery({
|
|
262
|
+
meta: {
|
|
263
|
+
key: "openbanking.accounts.list",
|
|
264
|
+
version: "1.0.0",
|
|
265
|
+
description: "List bank accounts available to a tenant/user via Powens Open Banking.",
|
|
266
|
+
goal: "Provide downstream workflows with the set of accounts accessible via the configured open banking connection.",
|
|
267
|
+
context: "Used by Pocket Family Office dashboards and sync workflows to enumerate bank accounts prior to syncing balances or transactions.",
|
|
268
|
+
owners: ["@platform.finance"],
|
|
269
|
+
tags: ["open-banking", "powens", "accounts"],
|
|
270
|
+
stability: "experimental"
|
|
271
|
+
},
|
|
272
|
+
io: {
|
|
273
|
+
input: OpenBankingListAccountsInput,
|
|
274
|
+
output: OpenBankingListAccountsOutput
|
|
275
|
+
},
|
|
276
|
+
policy: {
|
|
277
|
+
auth: "user"
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
var OpenBankingGetAccount = defineQuery({
|
|
281
|
+
meta: {
|
|
282
|
+
key: "openbanking.accounts.get",
|
|
283
|
+
version: "1.0.0",
|
|
284
|
+
description: "Retrieve the canonical bank account record for the given account identifier.",
|
|
285
|
+
goal: "Allow user-facing experiences and automations to display up-to-date account metadata.",
|
|
286
|
+
context: "Invoked by UI surfaces and workflow automation steps that require detailed metadata for a specific bank account.",
|
|
287
|
+
owners: ["@platform.finance"],
|
|
288
|
+
tags: ["open-banking", "powens", "accounts"],
|
|
289
|
+
stability: "experimental"
|
|
290
|
+
},
|
|
291
|
+
io: {
|
|
292
|
+
input: OpenBankingGetAccountInput,
|
|
293
|
+
output: BankAccountRecord
|
|
294
|
+
},
|
|
295
|
+
policy: {
|
|
296
|
+
auth: "user"
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
var OpenBankingSyncAccounts = defineCommand({
|
|
300
|
+
meta: {
|
|
301
|
+
key: "openbanking.accounts.sync",
|
|
302
|
+
version: "1.0.0",
|
|
303
|
+
description: "Initiate a synchronisation run to refresh bank account metadata from Powens.",
|
|
304
|
+
goal: "Keep canonical bank account records aligned with the external open banking provider.",
|
|
305
|
+
context: "Triggered by scheduled workflows or manual operator actions to reconcile account metadata prior to transaction/balance syncs.",
|
|
306
|
+
owners: ["@platform.finance"],
|
|
307
|
+
tags: ["open-banking", "powens", "accounts"],
|
|
308
|
+
stability: "experimental"
|
|
309
|
+
},
|
|
310
|
+
io: {
|
|
311
|
+
input: OpenBankingSyncAccountsInput,
|
|
312
|
+
output: OpenBankingSyncAccountsOutput
|
|
313
|
+
},
|
|
314
|
+
policy: {
|
|
315
|
+
auth: "admin"
|
|
316
|
+
},
|
|
317
|
+
telemetry: {
|
|
318
|
+
success: {
|
|
319
|
+
event: { key: OPENBANKING_TELEMETRY_EVENTS.accountsSynced },
|
|
320
|
+
properties: ({ input, output }) => {
|
|
321
|
+
const payload = input;
|
|
322
|
+
const result = output;
|
|
323
|
+
return {
|
|
324
|
+
tenantId: payload?.tenantId,
|
|
325
|
+
connectionId: payload?.connectionId,
|
|
326
|
+
synced: result?.synced,
|
|
327
|
+
failed: result?.failed
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
failure: {
|
|
332
|
+
event: { key: OPENBANKING_TELEMETRY_EVENTS.accountsSyncFailed },
|
|
333
|
+
properties: ({ input, error }) => {
|
|
334
|
+
const payload = input;
|
|
335
|
+
return {
|
|
336
|
+
tenantId: payload?.tenantId,
|
|
337
|
+
connectionId: payload?.connectionId,
|
|
338
|
+
error: error instanceof Error ? error.message : String(error ?? "unknown")
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
var openBankingAccountContracts = {
|
|
345
|
+
OpenBankingListAccounts,
|
|
346
|
+
OpenBankingGetAccount,
|
|
347
|
+
OpenBankingSyncAccounts
|
|
348
|
+
};
|
|
349
|
+
function registerOpenBankingAccountContracts(registry) {
|
|
350
|
+
return registry.register(OpenBankingListAccounts).register(OpenBankingGetAccount).register(OpenBankingSyncAccounts);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
// src/integrations/openbanking/contracts/transactions.ts
|
|
354
|
+
import { ScalarTypeEnum as ScalarTypeEnum3, SchemaModel as SchemaModel3 } from "@contractspec/lib.schema";
|
|
355
|
+
import {
|
|
356
|
+
defineCommand as defineCommand2,
|
|
357
|
+
defineQuery as defineQuery2
|
|
358
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
359
|
+
var OpenBankingListTransactionsInput = new SchemaModel3({
|
|
360
|
+
name: "OpenBankingListTransactionsInput",
|
|
361
|
+
description: "Parameters for listing bank transactions from the canonical ledger.",
|
|
362
|
+
fields: {
|
|
363
|
+
tenantId: { type: ScalarTypeEnum3.ID(), isOptional: false },
|
|
364
|
+
accountId: { type: ScalarTypeEnum3.ID(), isOptional: false },
|
|
365
|
+
from: { type: ScalarTypeEnum3.DateTime(), isOptional: true },
|
|
366
|
+
to: { type: ScalarTypeEnum3.DateTime(), isOptional: true },
|
|
367
|
+
cursor: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
368
|
+
pageSize: { type: ScalarTypeEnum3.Int_unsecure(), isOptional: true },
|
|
369
|
+
direction: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
370
|
+
minimumAmount: { type: ScalarTypeEnum3.Float_unsecure(), isOptional: true },
|
|
371
|
+
maximumAmount: { type: ScalarTypeEnum3.Float_unsecure(), isOptional: true },
|
|
372
|
+
category: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true }
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
var OpenBankingListTransactionsOutput = new SchemaModel3({
|
|
376
|
+
name: "OpenBankingListTransactionsOutput",
|
|
377
|
+
description: "Paginated list of transactions for a bank account.",
|
|
378
|
+
fields: {
|
|
379
|
+
transactions: {
|
|
380
|
+
type: BankTransactionRecord,
|
|
381
|
+
isOptional: false,
|
|
382
|
+
isArray: true
|
|
383
|
+
},
|
|
384
|
+
nextCursor: { type: ScalarTypeEnum3.String_unsecure(), isOptional: true },
|
|
385
|
+
hasMore: { type: ScalarTypeEnum3.Boolean(), isOptional: true }
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
var OpenBankingSyncTransactionsInput = new SchemaModel3({
|
|
389
|
+
name: "OpenBankingSyncTransactionsInput",
|
|
390
|
+
description: "Command payload to synchronise transactions from the open banking provider into the canonical ledger.",
|
|
391
|
+
fields: {
|
|
392
|
+
tenantId: { type: ScalarTypeEnum3.ID(), isOptional: false },
|
|
393
|
+
accountId: { type: ScalarTypeEnum3.ID(), isOptional: false },
|
|
394
|
+
from: { type: ScalarTypeEnum3.DateTime(), isOptional: true },
|
|
395
|
+
to: { type: ScalarTypeEnum3.DateTime(), isOptional: true },
|
|
396
|
+
connectionId: { type: ScalarTypeEnum3.ID(), isOptional: true },
|
|
397
|
+
includePending: { type: ScalarTypeEnum3.Boolean(), isOptional: true },
|
|
398
|
+
backfillDays: { type: ScalarTypeEnum3.Int_unsecure(), isOptional: true }
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
var OpenBankingSyncTransactionsOutput = new SchemaModel3({
|
|
402
|
+
name: "OpenBankingSyncTransactionsOutput",
|
|
403
|
+
description: "Result of a transaction synchronisation run.",
|
|
404
|
+
fields: {
|
|
405
|
+
synced: { type: ScalarTypeEnum3.Int_unsecure(), isOptional: false },
|
|
406
|
+
failed: { type: ScalarTypeEnum3.Int_unsecure(), isOptional: false },
|
|
407
|
+
earliestSyncedAt: { type: ScalarTypeEnum3.DateTime(), isOptional: true },
|
|
408
|
+
latestSyncedAt: { type: ScalarTypeEnum3.DateTime(), isOptional: true },
|
|
409
|
+
nextSinceToken: {
|
|
410
|
+
type: ScalarTypeEnum3.String_unsecure(),
|
|
411
|
+
isOptional: true
|
|
412
|
+
},
|
|
413
|
+
errors: {
|
|
414
|
+
type: ScalarTypeEnum3.String_unsecure(),
|
|
415
|
+
isArray: true,
|
|
416
|
+
isOptional: true
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
var OpenBankingListTransactions = defineQuery2({
|
|
421
|
+
meta: {
|
|
422
|
+
key: "openbanking.transactions.list",
|
|
423
|
+
version: "1.0.0",
|
|
424
|
+
description: "List bank transactions that have been normalised into the canonical ledger.",
|
|
425
|
+
goal: "Allow downstream analytics and UI surfaces to page through canonical bank transactions.",
|
|
426
|
+
context: "Used by Pocket Family Office dashboards, reconciliation workflows, and analytics data views.",
|
|
427
|
+
owners: ["@platform.finance"],
|
|
428
|
+
tags: ["open-banking", "powens", "transactions"],
|
|
429
|
+
stability: "experimental"
|
|
430
|
+
},
|
|
431
|
+
io: {
|
|
432
|
+
input: OpenBankingListTransactionsInput,
|
|
433
|
+
output: OpenBankingListTransactionsOutput
|
|
434
|
+
},
|
|
435
|
+
policy: {
|
|
436
|
+
auth: "user"
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
var OpenBankingSyncTransactions = defineCommand2({
|
|
440
|
+
meta: {
|
|
441
|
+
key: "openbanking.transactions.sync",
|
|
442
|
+
version: "1.0.0",
|
|
443
|
+
description: "Synchronise transactions for a bank account by calling the configured open banking provider.",
|
|
444
|
+
goal: "Ensure the canonical transaction ledger stays aligned with the external provider.",
|
|
445
|
+
context: "Triggered by scheduled workflows or on-demand actions when activity is expected on an account.",
|
|
446
|
+
owners: ["@platform.finance"],
|
|
447
|
+
tags: ["open-banking", "powens", "transactions"],
|
|
448
|
+
stability: "experimental"
|
|
449
|
+
},
|
|
450
|
+
io: {
|
|
451
|
+
input: OpenBankingSyncTransactionsInput,
|
|
452
|
+
output: OpenBankingSyncTransactionsOutput
|
|
453
|
+
},
|
|
454
|
+
policy: {
|
|
455
|
+
auth: "admin"
|
|
456
|
+
},
|
|
457
|
+
telemetry: {
|
|
458
|
+
success: {
|
|
459
|
+
event: { key: OPENBANKING_TELEMETRY_EVENTS.transactionsSynced },
|
|
460
|
+
properties: ({ input, output }) => {
|
|
461
|
+
const payload = input;
|
|
462
|
+
const result = output;
|
|
463
|
+
return {
|
|
464
|
+
tenantId: payload?.tenantId,
|
|
465
|
+
accountId: payload?.accountId,
|
|
466
|
+
synced: result?.synced,
|
|
467
|
+
failed: result?.failed,
|
|
468
|
+
earliestSyncedAt: result?.earliestSyncedAt,
|
|
469
|
+
latestSyncedAt: result?.latestSyncedAt
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
failure: {
|
|
474
|
+
event: { key: OPENBANKING_TELEMETRY_EVENTS.transactionsSyncFailed },
|
|
475
|
+
properties: ({ input, error }) => {
|
|
476
|
+
const payload = input;
|
|
477
|
+
return {
|
|
478
|
+
tenantId: payload?.tenantId,
|
|
479
|
+
accountId: payload?.accountId,
|
|
480
|
+
error: error instanceof Error ? error.message : String(error ?? "unknown")
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
var openBankingTransactionContracts = {
|
|
487
|
+
OpenBankingListTransactions,
|
|
488
|
+
OpenBankingSyncTransactions
|
|
489
|
+
};
|
|
490
|
+
function registerOpenBankingTransactionContracts(registry) {
|
|
491
|
+
return registry.register(OpenBankingListTransactions).register(OpenBankingSyncTransactions);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
// src/integrations/openbanking/contracts/balances.ts
|
|
495
|
+
import { ScalarTypeEnum as ScalarTypeEnum4, SchemaModel as SchemaModel4 } from "@contractspec/lib.schema";
|
|
496
|
+
import {
|
|
497
|
+
defineCommand as defineCommand3,
|
|
498
|
+
defineQuery as defineQuery3
|
|
499
|
+
} from "@contractspec/lib.contracts-spec/operations";
|
|
500
|
+
var OpenBankingGetBalancesInput = new SchemaModel4({
|
|
501
|
+
name: "OpenBankingGetBalancesInput",
|
|
502
|
+
description: "Parameters for retrieving bank account balances from the canonical ledger.",
|
|
503
|
+
fields: {
|
|
504
|
+
tenantId: { type: ScalarTypeEnum4.ID(), isOptional: false },
|
|
505
|
+
accountId: { type: ScalarTypeEnum4.ID(), isOptional: false },
|
|
506
|
+
balanceTypes: {
|
|
507
|
+
type: ScalarTypeEnum4.String_unsecure(),
|
|
508
|
+
isArray: true,
|
|
509
|
+
isOptional: true
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
var OpenBankingGetBalancesOutput = new SchemaModel4({
|
|
514
|
+
name: "OpenBankingGetBalancesOutput",
|
|
515
|
+
description: "Canonical balances for a bank account.",
|
|
516
|
+
fields: {
|
|
517
|
+
balances: {
|
|
518
|
+
type: AccountBalanceRecord,
|
|
519
|
+
isOptional: false,
|
|
520
|
+
isArray: true
|
|
521
|
+
},
|
|
522
|
+
asOf: { type: ScalarTypeEnum4.DateTime(), isOptional: true }
|
|
523
|
+
}
|
|
524
|
+
});
|
|
525
|
+
var OpenBankingRefreshBalancesInput = new SchemaModel4({
|
|
526
|
+
name: "OpenBankingRefreshBalancesInput",
|
|
527
|
+
description: "Command payload to refresh balances for a bank account via the open banking provider.",
|
|
528
|
+
fields: {
|
|
529
|
+
tenantId: { type: ScalarTypeEnum4.ID(), isOptional: false },
|
|
530
|
+
accountId: { type: ScalarTypeEnum4.ID(), isOptional: false },
|
|
531
|
+
connectionId: { type: ScalarTypeEnum4.ID(), isOptional: true },
|
|
532
|
+
balanceTypes: {
|
|
533
|
+
type: ScalarTypeEnum4.String_unsecure(),
|
|
534
|
+
isArray: true,
|
|
535
|
+
isOptional: true
|
|
536
|
+
},
|
|
537
|
+
forceRefresh: { type: ScalarTypeEnum4.Boolean(), isOptional: true }
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
var OpenBankingRefreshBalancesOutput = new SchemaModel4({
|
|
541
|
+
name: "OpenBankingRefreshBalancesOutput",
|
|
542
|
+
description: "Result of a balance refresh against the open banking provider.",
|
|
543
|
+
fields: {
|
|
544
|
+
balances: {
|
|
545
|
+
type: AccountBalanceRecord,
|
|
546
|
+
isOptional: false,
|
|
547
|
+
isArray: true
|
|
548
|
+
},
|
|
549
|
+
refreshedAt: { type: ScalarTypeEnum4.DateTime(), isOptional: false },
|
|
550
|
+
errors: {
|
|
551
|
+
type: ScalarTypeEnum4.String_unsecure(),
|
|
552
|
+
isArray: true,
|
|
553
|
+
isOptional: true
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
});
|
|
557
|
+
var OpenBankingGetBalances = defineQuery3({
|
|
558
|
+
meta: {
|
|
559
|
+
key: "openbanking.balances.get",
|
|
560
|
+
version: "1.0.0",
|
|
561
|
+
description: "Retrieve the latest cached balances for a bank account.",
|
|
562
|
+
goal: "Expose current and available balances required by dashboards and analytics.",
|
|
563
|
+
context: "Used by Pocket Family Office UI surfaces and automation steps that require balance totals prior to generating summaries.",
|
|
564
|
+
owners: ["@platform.finance"],
|
|
565
|
+
tags: ["open-banking", "powens", "balances"],
|
|
566
|
+
stability: "experimental"
|
|
567
|
+
},
|
|
568
|
+
io: {
|
|
569
|
+
input: OpenBankingGetBalancesInput,
|
|
570
|
+
output: OpenBankingGetBalancesOutput
|
|
571
|
+
},
|
|
572
|
+
policy: {
|
|
573
|
+
auth: "user"
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
var OpenBankingRefreshBalances = defineCommand3({
|
|
577
|
+
meta: {
|
|
578
|
+
key: "openbanking.balances.refresh",
|
|
579
|
+
version: "1.0.0",
|
|
580
|
+
description: "Refresh balances for a bank account via the configured open banking provider.",
|
|
581
|
+
goal: "Ensure canonical balance records reflect the latest values from Powens.",
|
|
582
|
+
context: "Triggered by scheduled workflows before generating summaries or forecasting cashflow.",
|
|
583
|
+
owners: ["@platform.finance"],
|
|
584
|
+
tags: ["open-banking", "powens", "balances"],
|
|
585
|
+
stability: "experimental"
|
|
586
|
+
},
|
|
587
|
+
io: {
|
|
588
|
+
input: OpenBankingRefreshBalancesInput,
|
|
589
|
+
output: OpenBankingRefreshBalancesOutput
|
|
590
|
+
},
|
|
591
|
+
policy: {
|
|
592
|
+
auth: "admin"
|
|
593
|
+
},
|
|
594
|
+
telemetry: {
|
|
595
|
+
success: {
|
|
596
|
+
event: { key: OPENBANKING_TELEMETRY_EVENTS.balancesRefreshed },
|
|
597
|
+
properties: ({ input, output }) => {
|
|
598
|
+
const payload = input;
|
|
599
|
+
const result = output;
|
|
600
|
+
return {
|
|
601
|
+
tenantId: payload?.tenantId,
|
|
602
|
+
accountId: payload?.accountId,
|
|
603
|
+
refreshedAt: result?.refreshedAt,
|
|
604
|
+
balanceCount: Array.isArray(result?.balances) ? result?.balances.length : undefined
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
failure: {
|
|
609
|
+
event: { key: OPENBANKING_TELEMETRY_EVENTS.balancesRefreshFailed },
|
|
610
|
+
properties: ({ input, error }) => {
|
|
611
|
+
const payload = input;
|
|
612
|
+
return {
|
|
613
|
+
tenantId: payload?.tenantId,
|
|
614
|
+
accountId: payload?.accountId,
|
|
615
|
+
error: error instanceof Error ? error.message : String(error ?? "unknown")
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
var openBankingBalanceContracts = {
|
|
622
|
+
OpenBankingGetBalances,
|
|
623
|
+
OpenBankingRefreshBalances
|
|
624
|
+
};
|
|
625
|
+
function registerOpenBankingBalanceContracts(registry) {
|
|
626
|
+
return registry.register(OpenBankingGetBalances).register(OpenBankingRefreshBalances);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
// src/integrations/openbanking/openbanking.feature.ts
|
|
630
|
+
import { defineFeature } from "@contractspec/lib.contracts-spec/features";
|
|
631
|
+
var OpenBankingFeature = defineFeature({
|
|
632
|
+
meta: {
|
|
633
|
+
key: "openbanking",
|
|
634
|
+
version: "1.0.0",
|
|
635
|
+
title: "Open Banking Integration",
|
|
636
|
+
description: "Open banking account sync, balance refresh, and transaction synchronization",
|
|
637
|
+
domain: "integrations",
|
|
638
|
+
owners: ["@platform.finance"],
|
|
639
|
+
tags: ["open-banking", "powens", "finance", "banking"],
|
|
640
|
+
stability: "experimental"
|
|
641
|
+
},
|
|
642
|
+
operations: [
|
|
643
|
+
{ key: "openbanking.accounts.sync", version: "1.0.0" },
|
|
644
|
+
{ key: "openbanking.accounts.list", version: "1.0.0" },
|
|
645
|
+
{ key: "openbanking.accounts.get", version: "1.0.0" },
|
|
646
|
+
{ key: "openbanking.balances.refresh", version: "1.0.0" },
|
|
647
|
+
{ key: "openbanking.balances.get", version: "1.0.0" },
|
|
648
|
+
{ key: "openbanking.transactions.sync", version: "1.0.0" },
|
|
649
|
+
{ key: "openbanking.transactions.list", version: "1.0.0" }
|
|
650
|
+
],
|
|
651
|
+
events: [],
|
|
652
|
+
presentations: [],
|
|
653
|
+
opToPresentation: [],
|
|
654
|
+
presentationsTargets: [],
|
|
655
|
+
capabilities: {
|
|
656
|
+
provides: [{ key: "openbanking", version: "1.0.0" }],
|
|
657
|
+
requires: [{ key: "identity", version: "1.0.0" }]
|
|
658
|
+
}
|
|
659
|
+
});
|
|
660
|
+
// src/integrations/openbanking/contracts/index.ts
|
|
661
|
+
function registerOpenBankingContracts(registry) {
|
|
662
|
+
return registerOpenBankingBalanceContracts(registerOpenBankingTransactionContracts(registerOpenBankingAccountContracts(registry)));
|
|
663
|
+
}
|
|
664
|
+
export {
|
|
665
|
+
registerOpenBankingContracts,
|
|
666
|
+
OpenBankingSyncTransactions,
|
|
667
|
+
OpenBankingSyncAccounts,
|
|
668
|
+
OpenBankingRefreshBalances,
|
|
669
|
+
OpenBankingListTransactions,
|
|
670
|
+
OpenBankingListAccounts,
|
|
671
|
+
OpenBankingGetBalances,
|
|
672
|
+
OpenBankingGetAccount,
|
|
673
|
+
OpenBankingFeature
|
|
674
|
+
};
|