@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,109 @@
|
|
|
1
|
+
//#region src/integrations/providers/payments.d.ts
|
|
2
|
+
interface Money {
|
|
3
|
+
/** Amount denominated in the smallest currency unit (e.g., cents). */
|
|
4
|
+
amount: number;
|
|
5
|
+
currency: string;
|
|
6
|
+
}
|
|
7
|
+
type PaymentIntentStatus = 'requires_payment_method' | 'requires_confirmation' | 'requires_action' | 'processing' | 'succeeded' | 'canceled';
|
|
8
|
+
interface PaymentCustomer {
|
|
9
|
+
id: string;
|
|
10
|
+
email?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
metadata?: Record<string, string>;
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
}
|
|
16
|
+
interface CreateCustomerInput {
|
|
17
|
+
email?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
metadata?: Record<string, string>;
|
|
21
|
+
}
|
|
22
|
+
interface PaymentIntent {
|
|
23
|
+
id: string;
|
|
24
|
+
amount: Money;
|
|
25
|
+
status: PaymentIntentStatus;
|
|
26
|
+
customerId?: string;
|
|
27
|
+
clientSecret?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
metadata?: Record<string, string>;
|
|
30
|
+
createdAt?: Date;
|
|
31
|
+
updatedAt?: Date;
|
|
32
|
+
}
|
|
33
|
+
interface CreatePaymentIntentInput {
|
|
34
|
+
amount: Money;
|
|
35
|
+
customerId?: string;
|
|
36
|
+
confirmationMethod?: 'automatic' | 'manual';
|
|
37
|
+
captureMethod?: 'automatic' | 'manual';
|
|
38
|
+
description?: string;
|
|
39
|
+
metadata?: Record<string, string>;
|
|
40
|
+
statementDescriptor?: string;
|
|
41
|
+
returnUrl?: string;
|
|
42
|
+
}
|
|
43
|
+
interface CapturePaymentInput {
|
|
44
|
+
amount?: Money;
|
|
45
|
+
receiptEmail?: string;
|
|
46
|
+
metadata?: Record<string, string>;
|
|
47
|
+
}
|
|
48
|
+
interface PaymentRefund {
|
|
49
|
+
id: string;
|
|
50
|
+
paymentIntentId: string;
|
|
51
|
+
amount: Money;
|
|
52
|
+
status: 'pending' | 'succeeded' | 'failed' | 'canceled';
|
|
53
|
+
reason?: string;
|
|
54
|
+
metadata?: Record<string, string>;
|
|
55
|
+
createdAt?: Date;
|
|
56
|
+
}
|
|
57
|
+
interface RefundPaymentInput {
|
|
58
|
+
paymentIntentId: string;
|
|
59
|
+
amount?: Money;
|
|
60
|
+
reason?: string;
|
|
61
|
+
metadata?: Record<string, string>;
|
|
62
|
+
}
|
|
63
|
+
interface PaymentInvoice {
|
|
64
|
+
id: string;
|
|
65
|
+
number?: string;
|
|
66
|
+
status: 'draft' | 'open' | 'paid' | 'uncollectible' | 'void' | 'deleted';
|
|
67
|
+
amountDue: Money;
|
|
68
|
+
amountPaid?: Money;
|
|
69
|
+
customerId?: string;
|
|
70
|
+
dueDate?: Date;
|
|
71
|
+
hostedInvoiceUrl?: string;
|
|
72
|
+
metadata?: Record<string, string>;
|
|
73
|
+
createdAt?: Date;
|
|
74
|
+
updatedAt?: Date;
|
|
75
|
+
}
|
|
76
|
+
interface ListInvoicesQuery {
|
|
77
|
+
customerId?: string;
|
|
78
|
+
status?: PaymentInvoice['status'][];
|
|
79
|
+
limit?: number;
|
|
80
|
+
startingAfter?: string;
|
|
81
|
+
}
|
|
82
|
+
interface PaymentTransaction {
|
|
83
|
+
id: string;
|
|
84
|
+
paymentIntentId?: string;
|
|
85
|
+
amount: Money;
|
|
86
|
+
type: 'capture' | 'refund' | 'payout';
|
|
87
|
+
status: 'pending' | 'succeeded' | 'failed';
|
|
88
|
+
description?: string;
|
|
89
|
+
createdAt: Date;
|
|
90
|
+
metadata?: Record<string, string>;
|
|
91
|
+
}
|
|
92
|
+
interface ListTransactionsQuery {
|
|
93
|
+
customerId?: string;
|
|
94
|
+
paymentIntentId?: string;
|
|
95
|
+
limit?: number;
|
|
96
|
+
startingAfter?: string;
|
|
97
|
+
}
|
|
98
|
+
interface PaymentsProvider {
|
|
99
|
+
createCustomer(input: CreateCustomerInput): Promise<PaymentCustomer>;
|
|
100
|
+
getCustomer(customerId: string): Promise<PaymentCustomer | null>;
|
|
101
|
+
createPaymentIntent(input: CreatePaymentIntentInput): Promise<PaymentIntent>;
|
|
102
|
+
capturePayment(paymentIntentId: string, input?: CapturePaymentInput): Promise<PaymentIntent>;
|
|
103
|
+
cancelPaymentIntent(paymentIntentId: string): Promise<PaymentIntent>;
|
|
104
|
+
refundPayment(input: RefundPaymentInput): Promise<PaymentRefund>;
|
|
105
|
+
listInvoices(query?: ListInvoicesQuery): Promise<PaymentInvoice[]>;
|
|
106
|
+
listTransactions(query?: ListTransactionsQuery): Promise<PaymentTransaction[]>;
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
export { CapturePaymentInput, CreateCustomerInput, CreatePaymentIntentInput, ListInvoicesQuery, ListTransactionsQuery, Money, PaymentCustomer, PaymentIntent, PaymentIntentStatus, PaymentInvoice, PaymentRefund, PaymentTransaction, PaymentsProvider, RefundPaymentInput };
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IntegrationSpec, IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/providers/postmark.d.ts
|
|
5
|
+
declare const postmarkIntegrationSpec: IntegrationSpec;
|
|
6
|
+
declare function registerPostmarkIntegration(registry: IntegrationSpecRegistry): IntegrationSpecRegistry;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { postmarkIntegrationSpec, registerPostmarkIntegration };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
import { defineIntegration } from "../spec.js";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/providers/postmark.ts
|
|
5
|
+
const postmarkIntegrationSpec = defineIntegration({
|
|
6
|
+
meta: {
|
|
7
|
+
key: "email.postmark",
|
|
8
|
+
version: "1.0.0",
|
|
9
|
+
category: "email",
|
|
10
|
+
title: "Postmark Transactional Email",
|
|
11
|
+
description: "Postmark integration for transactional email delivery.",
|
|
12
|
+
domain: "communications",
|
|
13
|
+
owners: ["platform.messaging"],
|
|
14
|
+
tags: ["email", "transactional"],
|
|
15
|
+
stability: StabilityEnum.Stable
|
|
16
|
+
},
|
|
17
|
+
supportedModes: ["managed", "byok"],
|
|
18
|
+
capabilities: {
|
|
19
|
+
provides: [{
|
|
20
|
+
key: "email.transactional",
|
|
21
|
+
version: "1.0.0"
|
|
22
|
+
}],
|
|
23
|
+
requires: [{
|
|
24
|
+
key: "platform.webhooks",
|
|
25
|
+
optional: true,
|
|
26
|
+
reason: "Optional for inbound bounce handling"
|
|
27
|
+
}]
|
|
28
|
+
},
|
|
29
|
+
configSchema: {
|
|
30
|
+
schema: {
|
|
31
|
+
type: "object",
|
|
32
|
+
properties: {
|
|
33
|
+
messageStream: {
|
|
34
|
+
type: "string",
|
|
35
|
+
description: "Optional message stream identifier (e.g., transactional)."
|
|
36
|
+
},
|
|
37
|
+
fromEmail: {
|
|
38
|
+
type: "string",
|
|
39
|
+
description: "Default From address used for outbound messages."
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
example: {
|
|
44
|
+
messageStream: "outbound",
|
|
45
|
+
fromEmail: "notifications@example.com"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
secretSchema: {
|
|
49
|
+
schema: {
|
|
50
|
+
type: "object",
|
|
51
|
+
required: ["serverToken"],
|
|
52
|
+
properties: { serverToken: {
|
|
53
|
+
type: "string",
|
|
54
|
+
description: "Server token for the Postmark account."
|
|
55
|
+
} }
|
|
56
|
+
},
|
|
57
|
+
example: { serverToken: "server-***" }
|
|
58
|
+
},
|
|
59
|
+
healthCheck: {
|
|
60
|
+
method: "ping",
|
|
61
|
+
timeoutMs: 3e3
|
|
62
|
+
},
|
|
63
|
+
docsUrl: "https://postmarkapp.com/developer",
|
|
64
|
+
constraints: { rateLimit: { rpm: 500 } },
|
|
65
|
+
byokSetup: { setupInstructions: "Create a Postmark server token with outbound send permissions and configure allowed from addresses." }
|
|
66
|
+
});
|
|
67
|
+
function registerPostmarkIntegration(registry) {
|
|
68
|
+
return registry.register(postmarkIntegrationSpec);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
//#endregion
|
|
72
|
+
export { postmarkIntegrationSpec, registerPostmarkIntegration };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IntegrationSpec, IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/providers/powens.d.ts
|
|
5
|
+
declare const powensIntegrationSpec: IntegrationSpec;
|
|
6
|
+
declare function registerPowensIntegration(registry: IntegrationSpecRegistry): IntegrationSpecRegistry;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { powensIntegrationSpec, registerPowensIntegration };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
import { defineIntegration } from "../spec.js";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/providers/powens.ts
|
|
5
|
+
const powensIntegrationSpec = defineIntegration({
|
|
6
|
+
meta: {
|
|
7
|
+
key: "openbanking.powens",
|
|
8
|
+
version: "1.0.0",
|
|
9
|
+
category: "open-banking",
|
|
10
|
+
title: "Powens Open Banking (Read)",
|
|
11
|
+
description: "Read-only Open Banking integration powered by Powens, exposing accounts, transactions, and balances.",
|
|
12
|
+
domain: "finance",
|
|
13
|
+
owners: ["platform.finance"],
|
|
14
|
+
tags: [
|
|
15
|
+
"open-banking",
|
|
16
|
+
"powens",
|
|
17
|
+
"finance"
|
|
18
|
+
],
|
|
19
|
+
stability: StabilityEnum.Experimental
|
|
20
|
+
},
|
|
21
|
+
supportedModes: ["byok"],
|
|
22
|
+
capabilities: { provides: [
|
|
23
|
+
{
|
|
24
|
+
key: "openbanking.accounts.read",
|
|
25
|
+
version: "1.0.0"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: "openbanking.transactions.read",
|
|
29
|
+
version: "1.0.0"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
key: "openbanking.balances.read",
|
|
33
|
+
version: "1.0.0"
|
|
34
|
+
}
|
|
35
|
+
] },
|
|
36
|
+
configSchema: {
|
|
37
|
+
schema: {
|
|
38
|
+
type: "object",
|
|
39
|
+
required: ["environment"],
|
|
40
|
+
properties: {
|
|
41
|
+
environment: {
|
|
42
|
+
type: "string",
|
|
43
|
+
enum: ["sandbox", "production"],
|
|
44
|
+
description: "Powens environment to target. Sandbox uses Powens test API base URL, production uses live endpoints."
|
|
45
|
+
},
|
|
46
|
+
baseUrl: {
|
|
47
|
+
type: "string",
|
|
48
|
+
description: "Optional override for the Powens API base URL. Defaults to Powens environment defaults."
|
|
49
|
+
},
|
|
50
|
+
region: {
|
|
51
|
+
type: "string",
|
|
52
|
+
description: "Optional Powens region identifier when targeting a specific data residency cluster."
|
|
53
|
+
},
|
|
54
|
+
pollingIntervalMs: {
|
|
55
|
+
type: "number",
|
|
56
|
+
description: "Optional custom polling interval in milliseconds for background sync jobs (defaults to platform standard)."
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
example: {
|
|
61
|
+
environment: "sandbox",
|
|
62
|
+
baseUrl: "https://api-sandbox.powens.com/v2",
|
|
63
|
+
region: "eu-west-1",
|
|
64
|
+
pollingIntervalMs: 3e5
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
secretSchema: {
|
|
68
|
+
schema: {
|
|
69
|
+
type: "object",
|
|
70
|
+
required: ["clientId", "clientSecret"],
|
|
71
|
+
properties: {
|
|
72
|
+
clientId: {
|
|
73
|
+
type: "string",
|
|
74
|
+
description: "Powens OAuth client identifier obtained from the Powens Console (BYOK project)."
|
|
75
|
+
},
|
|
76
|
+
clientSecret: {
|
|
77
|
+
type: "string",
|
|
78
|
+
description: "Powens OAuth client secret used to exchange for access tokens."
|
|
79
|
+
},
|
|
80
|
+
apiKey: {
|
|
81
|
+
type: "string",
|
|
82
|
+
description: "Optional Powens API key (if the tenant project exposes a dedicated API token)."
|
|
83
|
+
},
|
|
84
|
+
webhookSecret: {
|
|
85
|
+
type: "string",
|
|
86
|
+
description: "Optional webhook signing secret used to verify Powens webhook payloads."
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
example: {
|
|
91
|
+
clientId: "powens-client-id",
|
|
92
|
+
clientSecret: "powens-client-secret",
|
|
93
|
+
apiKey: "powens-api-key",
|
|
94
|
+
webhookSecret: "powens-webhook-secret"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
healthCheck: {
|
|
98
|
+
method: "ping",
|
|
99
|
+
timeoutMs: 8e3
|
|
100
|
+
},
|
|
101
|
+
docsUrl: "https://docs.powens.com/",
|
|
102
|
+
constraints: { rateLimit: {
|
|
103
|
+
rph: 1e4,
|
|
104
|
+
rpm: 600
|
|
105
|
+
} },
|
|
106
|
+
byokSetup: {
|
|
107
|
+
setupInstructions: "Create a Powens BYOK project, generate OAuth credentials, and optionally configure webhook delivery for account/transaction updates.",
|
|
108
|
+
requiredScopes: [
|
|
109
|
+
"accounts:read",
|
|
110
|
+
"transactions:read",
|
|
111
|
+
"balances:read"
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
function registerPowensIntegration(registry) {
|
|
116
|
+
return registry.register(powensIntegrationSpec);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
//#endregion
|
|
120
|
+
export { powensIntegrationSpec, registerPowensIntegration };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IntegrationSpec, IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/providers/qdrant.d.ts
|
|
5
|
+
declare const qdrantIntegrationSpec: IntegrationSpec;
|
|
6
|
+
declare function registerQdrantIntegration(registry: IntegrationSpecRegistry): IntegrationSpecRegistry;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { qdrantIntegrationSpec, registerQdrantIntegration };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
import { defineIntegration } from "../spec.js";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/providers/qdrant.ts
|
|
5
|
+
const qdrantIntegrationSpec = defineIntegration({
|
|
6
|
+
meta: {
|
|
7
|
+
key: "vectordb.qdrant",
|
|
8
|
+
version: "1.0.0",
|
|
9
|
+
category: "vector-db",
|
|
10
|
+
title: "Qdrant Vector Database",
|
|
11
|
+
description: "Qdrant integration for vector search and embeddings storage.",
|
|
12
|
+
domain: "ai",
|
|
13
|
+
owners: ["platform.ai"],
|
|
14
|
+
tags: ["vector-db", "search"],
|
|
15
|
+
stability: StabilityEnum.Experimental
|
|
16
|
+
},
|
|
17
|
+
supportedModes: ["managed", "byok"],
|
|
18
|
+
capabilities: {
|
|
19
|
+
provides: [{
|
|
20
|
+
key: "vector-db.search",
|
|
21
|
+
version: "1.0.0"
|
|
22
|
+
}, {
|
|
23
|
+
key: "vector-db.storage",
|
|
24
|
+
version: "1.0.0"
|
|
25
|
+
}],
|
|
26
|
+
requires: [{
|
|
27
|
+
key: "ai.embeddings",
|
|
28
|
+
optional: true,
|
|
29
|
+
reason: "Required if vectors are generated via hosted embedding services"
|
|
30
|
+
}]
|
|
31
|
+
},
|
|
32
|
+
configSchema: {
|
|
33
|
+
schema: {
|
|
34
|
+
type: "object",
|
|
35
|
+
properties: {
|
|
36
|
+
apiUrl: {
|
|
37
|
+
type: "string",
|
|
38
|
+
description: "Base URL for the Qdrant instance (e.g., https://qdrant.example.com)."
|
|
39
|
+
},
|
|
40
|
+
collectionPrefix: {
|
|
41
|
+
type: "string",
|
|
42
|
+
description: "Prefix applied to all collection names for this tenant."
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
example: {
|
|
47
|
+
apiUrl: "https://qdrant.example.com",
|
|
48
|
+
collectionPrefix: "tenant_"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
secretSchema: {
|
|
52
|
+
schema: {
|
|
53
|
+
type: "object",
|
|
54
|
+
properties: { apiKey: {
|
|
55
|
+
type: "string",
|
|
56
|
+
description: "API key or token when authentication is enabled."
|
|
57
|
+
} }
|
|
58
|
+
},
|
|
59
|
+
example: { apiKey: "qdrant-api-key" }
|
|
60
|
+
},
|
|
61
|
+
healthCheck: {
|
|
62
|
+
method: "ping",
|
|
63
|
+
timeoutMs: 4e3
|
|
64
|
+
},
|
|
65
|
+
docsUrl: "https://qdrant.tech/documentation/quick-start/",
|
|
66
|
+
constraints: { quotas: {
|
|
67
|
+
collections: 100,
|
|
68
|
+
pointsPerCollection: 1e6
|
|
69
|
+
} },
|
|
70
|
+
byokSetup: { setupInstructions: "Provide the HTTPS endpoint of your Qdrant cluster and generate an API key with read/write access to the collections that will be managed." }
|
|
71
|
+
});
|
|
72
|
+
function registerQdrantIntegration(registry) {
|
|
73
|
+
return registry.register(qdrantIntegrationSpec);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
export { qdrantIntegrationSpec, registerQdrantIntegration };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/providers/registry.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Creates a registry containing all IntegrationSpec providers shipped by
|
|
7
|
+
* `@contractspec/lib.contracts`.
|
|
8
|
+
*/
|
|
9
|
+
declare function createDefaultIntegrationSpecRegistry(): IntegrationSpecRegistry;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { createDefaultIntegrationSpecRegistry };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
import { registerStripeIntegration } from "./stripe.js";
|
|
3
|
+
import { registerPostmarkIntegration } from "./postmark.js";
|
|
4
|
+
import { registerQdrantIntegration } from "./qdrant.js";
|
|
5
|
+
import { registerMistralIntegration } from "./mistral.js";
|
|
6
|
+
import { registerElevenLabsIntegration } from "./elevenlabs.js";
|
|
7
|
+
import { registerGmailIntegration } from "./gmail.js";
|
|
8
|
+
import { registerGoogleCalendarIntegration } from "./google-calendar.js";
|
|
9
|
+
import { registerTwilioSmsIntegration } from "./twilio-sms.js";
|
|
10
|
+
import { registerGcsStorageIntegration } from "./gcs-storage.js";
|
|
11
|
+
import { registerPowensIntegration } from "./powens.js";
|
|
12
|
+
|
|
13
|
+
//#region src/integrations/providers/registry.ts
|
|
14
|
+
/**
|
|
15
|
+
* Creates a registry containing all IntegrationSpec providers shipped by
|
|
16
|
+
* `@contractspec/lib.contracts`.
|
|
17
|
+
*/
|
|
18
|
+
function createDefaultIntegrationSpecRegistry() {
|
|
19
|
+
const registry = new IntegrationSpecRegistry();
|
|
20
|
+
registerStripeIntegration(registry);
|
|
21
|
+
registerPostmarkIntegration(registry);
|
|
22
|
+
registerQdrantIntegration(registry);
|
|
23
|
+
registerMistralIntegration(registry);
|
|
24
|
+
registerElevenLabsIntegration(registry);
|
|
25
|
+
registerGmailIntegration(registry);
|
|
26
|
+
registerGoogleCalendarIntegration(registry);
|
|
27
|
+
registerTwilioSmsIntegration(registry);
|
|
28
|
+
registerGcsStorageIntegration(registry);
|
|
29
|
+
registerPowensIntegration(registry);
|
|
30
|
+
return registry;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { createDefaultIntegrationSpecRegistry };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region src/integrations/providers/sms.d.ts
|
|
2
|
+
interface SmsMessage {
|
|
3
|
+
id: string;
|
|
4
|
+
to: string;
|
|
5
|
+
from: string;
|
|
6
|
+
body: string;
|
|
7
|
+
status: 'queued' | 'sending' | 'sent' | 'delivered' | 'undelivered' | 'failed';
|
|
8
|
+
providerMessageId?: string;
|
|
9
|
+
carrier?: string;
|
|
10
|
+
price?: number;
|
|
11
|
+
priceCurrency?: string;
|
|
12
|
+
sentAt?: Date;
|
|
13
|
+
deliveredAt?: Date;
|
|
14
|
+
errorCode?: string;
|
|
15
|
+
errorMessage?: string;
|
|
16
|
+
}
|
|
17
|
+
interface SendSmsInput {
|
|
18
|
+
to: string;
|
|
19
|
+
from?: string;
|
|
20
|
+
body: string;
|
|
21
|
+
metadata?: Record<string, string>;
|
|
22
|
+
}
|
|
23
|
+
interface SmsDeliveryStatus {
|
|
24
|
+
status: SmsMessage['status'];
|
|
25
|
+
errorCode?: string;
|
|
26
|
+
errorMessage?: string;
|
|
27
|
+
updatedAt: Date;
|
|
28
|
+
}
|
|
29
|
+
interface SmsProvider {
|
|
30
|
+
sendSms(input: SendSmsInput): Promise<SmsMessage>;
|
|
31
|
+
getDeliveryStatus(messageId: string): Promise<SmsDeliveryStatus>;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { SendSmsInput, SmsDeliveryStatus, SmsMessage, SmsProvider };
|
|
File without changes
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
//#region src/integrations/providers/storage.d.ts
|
|
2
|
+
interface StorageObjectMetadata {
|
|
3
|
+
bucket: string;
|
|
4
|
+
key: string;
|
|
5
|
+
sizeBytes?: number;
|
|
6
|
+
contentType?: string;
|
|
7
|
+
etag?: string;
|
|
8
|
+
checksum?: string;
|
|
9
|
+
lastModified?: Date;
|
|
10
|
+
metadata?: Record<string, string>;
|
|
11
|
+
}
|
|
12
|
+
type StorageObjectBody = {
|
|
13
|
+
data: Uint8Array;
|
|
14
|
+
stream?: never;
|
|
15
|
+
} | {
|
|
16
|
+
data?: never;
|
|
17
|
+
stream: AsyncIterable<Uint8Array>;
|
|
18
|
+
};
|
|
19
|
+
type GetObjectResult = StorageObjectMetadata & StorageObjectBody;
|
|
20
|
+
interface PutObjectInput {
|
|
21
|
+
bucket: string;
|
|
22
|
+
key: string;
|
|
23
|
+
data: Uint8Array | ArrayBuffer;
|
|
24
|
+
contentType?: string;
|
|
25
|
+
metadata?: Record<string, string>;
|
|
26
|
+
makePublic?: boolean;
|
|
27
|
+
}
|
|
28
|
+
interface DeleteObjectInput {
|
|
29
|
+
bucket: string;
|
|
30
|
+
key: string;
|
|
31
|
+
}
|
|
32
|
+
interface SignedUrlOptions {
|
|
33
|
+
bucket: string;
|
|
34
|
+
key: string;
|
|
35
|
+
expiresInSeconds: number;
|
|
36
|
+
method?: 'GET' | 'PUT';
|
|
37
|
+
contentType?: string;
|
|
38
|
+
}
|
|
39
|
+
interface ListObjectsQuery {
|
|
40
|
+
bucket: string;
|
|
41
|
+
prefix?: string;
|
|
42
|
+
maxResults?: number;
|
|
43
|
+
pageToken?: string;
|
|
44
|
+
}
|
|
45
|
+
interface ListObjectsResult {
|
|
46
|
+
objects: StorageObjectMetadata[];
|
|
47
|
+
nextPageToken?: string;
|
|
48
|
+
}
|
|
49
|
+
interface ObjectStorageProvider {
|
|
50
|
+
putObject(input: PutObjectInput): Promise<StorageObjectMetadata>;
|
|
51
|
+
getObject(input: DeleteObjectInput): Promise<GetObjectResult | null>;
|
|
52
|
+
deleteObject(input: DeleteObjectInput): Promise<void>;
|
|
53
|
+
generateSignedUrl(options: SignedUrlOptions): Promise<{
|
|
54
|
+
url: string;
|
|
55
|
+
expiresAt: Date;
|
|
56
|
+
}>;
|
|
57
|
+
listObjects(query: ListObjectsQuery): Promise<ListObjectsResult>;
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { DeleteObjectInput, GetObjectResult, ListObjectsQuery, ListObjectsResult, ObjectStorageProvider, PutObjectInput, SignedUrlOptions, StorageObjectBody, StorageObjectMetadata };
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IntegrationSpec, IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/providers/stripe.d.ts
|
|
5
|
+
declare const stripeIntegrationSpec: IntegrationSpec;
|
|
6
|
+
declare function registerStripeIntegration(registry: IntegrationSpecRegistry): IntegrationSpecRegistry;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { registerStripeIntegration, stripeIntegrationSpec };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
import { defineIntegration } from "../spec.js";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/providers/stripe.ts
|
|
5
|
+
const stripeIntegrationSpec = defineIntegration({
|
|
6
|
+
meta: {
|
|
7
|
+
key: "payments.stripe",
|
|
8
|
+
version: "1.0.0",
|
|
9
|
+
category: "payments",
|
|
10
|
+
title: "Stripe Payments",
|
|
11
|
+
description: "Stripe integration for payment processing, charges, and payouts.",
|
|
12
|
+
domain: "payments",
|
|
13
|
+
owners: ["platform.payments"],
|
|
14
|
+
tags: ["payments", "psp"],
|
|
15
|
+
stability: StabilityEnum.Stable
|
|
16
|
+
},
|
|
17
|
+
supportedModes: ["managed", "byok"],
|
|
18
|
+
capabilities: {
|
|
19
|
+
provides: [{
|
|
20
|
+
key: "payments.psp",
|
|
21
|
+
version: "1.0.0"
|
|
22
|
+
}],
|
|
23
|
+
requires: [{
|
|
24
|
+
key: "platform.webhooks",
|
|
25
|
+
optional: true,
|
|
26
|
+
reason: "Recommended for reliable event ingestion"
|
|
27
|
+
}]
|
|
28
|
+
},
|
|
29
|
+
configSchema: {
|
|
30
|
+
schema: {
|
|
31
|
+
type: "object",
|
|
32
|
+
properties: {
|
|
33
|
+
accountId: {
|
|
34
|
+
type: "string",
|
|
35
|
+
description: "Connected account ID when using Stripe Connect (BYOK)."
|
|
36
|
+
},
|
|
37
|
+
region: {
|
|
38
|
+
type: "string",
|
|
39
|
+
description: "Optional Stripe region or data residency hint."
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
example: {
|
|
44
|
+
accountId: "acct_123",
|
|
45
|
+
region: "us-east-1"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
secretSchema: {
|
|
49
|
+
schema: {
|
|
50
|
+
type: "object",
|
|
51
|
+
required: ["apiKey", "webhookSecret"],
|
|
52
|
+
properties: {
|
|
53
|
+
apiKey: {
|
|
54
|
+
type: "string",
|
|
55
|
+
description: "Stripe secret API key (sk_live_... or sk_test_...)."
|
|
56
|
+
},
|
|
57
|
+
webhookSecret: {
|
|
58
|
+
type: "string",
|
|
59
|
+
description: "Signing secret for webhook verification."
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
example: {
|
|
64
|
+
apiKey: "sk_live_***",
|
|
65
|
+
webhookSecret: "whsec_***"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
healthCheck: {
|
|
69
|
+
method: "ping",
|
|
70
|
+
timeoutMs: 5e3
|
|
71
|
+
},
|
|
72
|
+
docsUrl: "https://stripe.com/docs/api",
|
|
73
|
+
constraints: { rateLimit: {
|
|
74
|
+
rpm: 1e3,
|
|
75
|
+
rph: 2e4
|
|
76
|
+
} },
|
|
77
|
+
byokSetup: {
|
|
78
|
+
setupInstructions: "Create a restricted Stripe API key with write access to Charges and provide a webhook signing secret.",
|
|
79
|
+
requiredScopes: ["charges:write", "customers:read"]
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
function registerStripeIntegration(registry) {
|
|
83
|
+
return registry.register(stripeIntegrationSpec);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
//#endregion
|
|
87
|
+
export { registerStripeIntegration, stripeIntegrationSpec };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IntegrationSpec, IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
import "../index.js";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/providers/twilio-sms.d.ts
|
|
5
|
+
declare const twilioSmsIntegrationSpec: IntegrationSpec;
|
|
6
|
+
declare function registerTwilioSmsIntegration(registry: IntegrationSpecRegistry): IntegrationSpecRegistry;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { registerTwilioSmsIntegration, twilioSmsIntegrationSpec };
|