@contractspec/lib.contracts 1.44.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/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/_virtual/rolldown_runtime.js +37 -0
- package/dist/app-config/app-config.feature.d.ts +12 -0
- package/dist/app-config/app-config.feature.js +54 -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 +9 -0
- package/dist/app-config/index.js +8 -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 +173 -0
- package/dist/app-config/spec.js +36 -0
- package/dist/app-config/validation.d.ts +49 -0
- package/dist/app-config/validation.js +538 -0
- package/dist/capabilities/capabilities.d.ts +48 -0
- package/dist/capabilities/capabilities.js +50 -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 +298 -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 +4 -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 +51 -0
- package/dist/data-views/registry.js +82 -0
- package/dist/data-views/runtime.d.ts +28 -0
- package/dist/data-views/runtime.js +39 -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 +29 -0
- package/dist/docs/meta.docs.d.ts +6 -0
- package/dist/docs/meta.docs.js +29 -0
- package/dist/docs/presentations.d.ts +33 -0
- package/dist/docs/presentations.js +64 -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/contracts/README.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/README.docblock.js +21 -0
- package/dist/docs/tech/contracts/create-subscription.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/create-subscription.docblock.js +21 -0
- package/dist/docs/tech/contracts/graphql-typed-outputs.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/graphql-typed-outputs.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 +21 -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 +46 -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/templates/runtime.docblock.d.ts +6 -0
- package/dist/docs/tech/templates/runtime.docblock.js +21 -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/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 +82 -0
- package/dist/experiments/spec.js +33 -0
- package/dist/features/index.d.ts +5 -0
- package/dist/features/index.js +5 -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 +146 -0
- package/dist/forms/index.d.ts +2 -0
- package/dist/forms/index.js +3 -0
- package/dist/index.d.ts +147 -0
- package/dist/index.js +121 -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.feature.d.ts +12 -0
- package/dist/integrations/integrations.feature.js +60 -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.feature.d.ts +12 -0
- package/dist/integrations/openbanking/openbanking.feature.js +69 -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 +7 -0
- package/dist/integrations/providers/elevenlabs.js +55 -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 +7 -0
- package/dist/integrations/providers/gcs-storage.js +78 -0
- package/dist/integrations/providers/gmail.d.ts +7 -0
- package/dist/integrations/providers/gmail.js +90 -0
- package/dist/integrations/providers/google-calendar.d.ts +7 -0
- package/dist/integrations/providers/google-calendar.js +69 -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 +145 -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 +7 -0
- package/dist/integrations/providers/mistral.js +71 -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 +7 -0
- package/dist/integrations/providers/postmark.js +71 -0
- package/dist/integrations/providers/powens.d.ts +7 -0
- package/dist/integrations/providers/powens.js +119 -0
- package/dist/integrations/providers/qdrant.d.ts +7 -0
- package/dist/integrations/providers/qdrant.js +76 -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 +7 -0
- package/dist/integrations/providers/stripe.js +86 -0
- package/dist/integrations/providers/twilio-sms.d.ts +7 -0
- package/dist/integrations/providers/twilio-sms.js +64 -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 +75 -0
- package/dist/integrations/spec.js +39 -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 +27 -0
- package/dist/jsonschema.js +32 -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.feature.d.ts +12 -0
- package/dist/knowledge/knowledge.feature.js +61 -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 +48 -0
- package/dist/knowledge/spec.js +39 -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 +33 -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 +75 -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 +103 -0
- package/dist/operations/registry.js +252 -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 +223 -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 +60 -0
- package/dist/prompt.js +10 -0
- package/dist/promptRegistry.d.ts +15 -0
- package/dist/promptRegistry.js +34 -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 +31 -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 +63 -0
- package/dist/server/mcp/registerPrompts.d.ts +8 -0
- package/dist/server/mcp/registerPrompts.js +37 -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 +69 -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 +81 -0
- package/dist/tests/spec.js +33 -0
- package/dist/themes.d.ts +53 -0
- package/dist/themes.js +39 -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/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 +10 -0
- package/dist/workflow/index.js +9 -0
- package/dist/workflow/overview.docblock.d.ts +6 -0
- package/dist/workflow/overview.docblock.js +21 -0
- package/dist/workflow/runner.d.ts +75 -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 +106 -0
- package/dist/workflow/spec.js +55 -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 +862 -0
- package/dist/workspace-config/contractsrc-schema.js +281 -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 +598 -0
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import { defineCommand, defineQuery } from "../operations/operation.js";
|
|
2
|
+
import "../operations/index.js";
|
|
3
|
+
import { ScalarTypeEnum, SchemaModel } from "@contractspec/lib.schema";
|
|
4
|
+
|
|
5
|
+
//#region src/integrations/operations.ts
|
|
6
|
+
const IntegrationConnectionRecord = new SchemaModel({
|
|
7
|
+
name: "IntegrationConnectionRecord",
|
|
8
|
+
fields: {
|
|
9
|
+
id: {
|
|
10
|
+
type: ScalarTypeEnum.ID(),
|
|
11
|
+
isOptional: false
|
|
12
|
+
},
|
|
13
|
+
tenantId: {
|
|
14
|
+
type: ScalarTypeEnum.ID(),
|
|
15
|
+
isOptional: false
|
|
16
|
+
},
|
|
17
|
+
integrationKey: {
|
|
18
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
19
|
+
isOptional: false
|
|
20
|
+
},
|
|
21
|
+
integrationVersion: {
|
|
22
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
23
|
+
isOptional: false
|
|
24
|
+
},
|
|
25
|
+
label: {
|
|
26
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
27
|
+
isOptional: false
|
|
28
|
+
},
|
|
29
|
+
ownershipMode: {
|
|
30
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
31
|
+
isOptional: false
|
|
32
|
+
},
|
|
33
|
+
externalAccountId: {
|
|
34
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
35
|
+
isOptional: true
|
|
36
|
+
},
|
|
37
|
+
secretProvider: {
|
|
38
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
39
|
+
isOptional: false
|
|
40
|
+
},
|
|
41
|
+
secretRef: {
|
|
42
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
43
|
+
isOptional: false
|
|
44
|
+
},
|
|
45
|
+
status: {
|
|
46
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
47
|
+
isOptional: false
|
|
48
|
+
},
|
|
49
|
+
environment: {
|
|
50
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
51
|
+
isOptional: true
|
|
52
|
+
},
|
|
53
|
+
healthStatus: {
|
|
54
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
55
|
+
isOptional: true
|
|
56
|
+
},
|
|
57
|
+
healthCheckedAt: {
|
|
58
|
+
type: ScalarTypeEnum.DateTime(),
|
|
59
|
+
isOptional: true
|
|
60
|
+
},
|
|
61
|
+
healthLatencyMs: {
|
|
62
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
63
|
+
isOptional: true
|
|
64
|
+
},
|
|
65
|
+
healthErrorCode: {
|
|
66
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
67
|
+
isOptional: true
|
|
68
|
+
},
|
|
69
|
+
healthErrorMessage: {
|
|
70
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
71
|
+
isOptional: true
|
|
72
|
+
},
|
|
73
|
+
usageRequestCount: {
|
|
74
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
75
|
+
isOptional: true
|
|
76
|
+
},
|
|
77
|
+
usageSuccessCount: {
|
|
78
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
79
|
+
isOptional: true
|
|
80
|
+
},
|
|
81
|
+
usageErrorCount: {
|
|
82
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
83
|
+
isOptional: true
|
|
84
|
+
},
|
|
85
|
+
usageLastUsedAt: {
|
|
86
|
+
type: ScalarTypeEnum.DateTime(),
|
|
87
|
+
isOptional: true
|
|
88
|
+
},
|
|
89
|
+
usageLastErrorAt: {
|
|
90
|
+
type: ScalarTypeEnum.DateTime(),
|
|
91
|
+
isOptional: true
|
|
92
|
+
},
|
|
93
|
+
usageLastErrorCode: {
|
|
94
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
95
|
+
isOptional: true
|
|
96
|
+
},
|
|
97
|
+
createdAt: {
|
|
98
|
+
type: ScalarTypeEnum.DateTime(),
|
|
99
|
+
isOptional: true
|
|
100
|
+
},
|
|
101
|
+
updatedAt: {
|
|
102
|
+
type: ScalarTypeEnum.DateTime(),
|
|
103
|
+
isOptional: true
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
const CreateIntegrationConnectionInput = new SchemaModel({
|
|
108
|
+
name: "CreateIntegrationConnectionInput",
|
|
109
|
+
fields: {
|
|
110
|
+
tenantId: {
|
|
111
|
+
type: ScalarTypeEnum.ID(),
|
|
112
|
+
isOptional: false
|
|
113
|
+
},
|
|
114
|
+
integrationKey: {
|
|
115
|
+
type: ScalarTypeEnum.NonEmptyString(),
|
|
116
|
+
isOptional: false
|
|
117
|
+
},
|
|
118
|
+
integrationVersion: {
|
|
119
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
120
|
+
isOptional: false
|
|
121
|
+
},
|
|
122
|
+
label: {
|
|
123
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
124
|
+
isOptional: false
|
|
125
|
+
},
|
|
126
|
+
ownershipMode: {
|
|
127
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
128
|
+
isOptional: false
|
|
129
|
+
},
|
|
130
|
+
externalAccountId: {
|
|
131
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
132
|
+
isOptional: true
|
|
133
|
+
},
|
|
134
|
+
secretProvider: {
|
|
135
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
136
|
+
isOptional: false
|
|
137
|
+
},
|
|
138
|
+
secretRef: {
|
|
139
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
140
|
+
isOptional: false
|
|
141
|
+
},
|
|
142
|
+
environment: {
|
|
143
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
144
|
+
isOptional: true
|
|
145
|
+
},
|
|
146
|
+
config: {
|
|
147
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
148
|
+
isOptional: false
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
const UpdateIntegrationConnectionInput = new SchemaModel({
|
|
153
|
+
name: "UpdateIntegrationConnectionInput",
|
|
154
|
+
fields: {
|
|
155
|
+
connectionId: {
|
|
156
|
+
type: ScalarTypeEnum.ID(),
|
|
157
|
+
isOptional: false
|
|
158
|
+
},
|
|
159
|
+
label: {
|
|
160
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
161
|
+
isOptional: true
|
|
162
|
+
},
|
|
163
|
+
status: {
|
|
164
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
165
|
+
isOptional: true
|
|
166
|
+
},
|
|
167
|
+
ownershipMode: {
|
|
168
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
169
|
+
isOptional: true
|
|
170
|
+
},
|
|
171
|
+
externalAccountId: {
|
|
172
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
173
|
+
isOptional: true
|
|
174
|
+
},
|
|
175
|
+
secretProvider: {
|
|
176
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
177
|
+
isOptional: true
|
|
178
|
+
},
|
|
179
|
+
secretRef: {
|
|
180
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
181
|
+
isOptional: true
|
|
182
|
+
},
|
|
183
|
+
config: {
|
|
184
|
+
type: ScalarTypeEnum.JSONObject(),
|
|
185
|
+
isOptional: true
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
const DeleteIntegrationConnectionInput = new SchemaModel({
|
|
190
|
+
name: "DeleteIntegrationConnectionInput",
|
|
191
|
+
fields: { connectionId: {
|
|
192
|
+
type: ScalarTypeEnum.ID(),
|
|
193
|
+
isOptional: false
|
|
194
|
+
} }
|
|
195
|
+
});
|
|
196
|
+
const ListIntegrationConnectionsInput = new SchemaModel({
|
|
197
|
+
name: "ListIntegrationConnectionsInput",
|
|
198
|
+
fields: {
|
|
199
|
+
tenantId: {
|
|
200
|
+
type: ScalarTypeEnum.ID(),
|
|
201
|
+
isOptional: false
|
|
202
|
+
},
|
|
203
|
+
category: {
|
|
204
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
205
|
+
isOptional: true
|
|
206
|
+
},
|
|
207
|
+
status: {
|
|
208
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
209
|
+
isOptional: true
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
const ListIntegrationConnectionsOutput = new SchemaModel({
|
|
214
|
+
name: "ListIntegrationConnectionsOutput",
|
|
215
|
+
fields: { connections: {
|
|
216
|
+
type: IntegrationConnectionRecord,
|
|
217
|
+
isOptional: false,
|
|
218
|
+
isArray: true
|
|
219
|
+
} }
|
|
220
|
+
});
|
|
221
|
+
const TestIntegrationConnectionInput = new SchemaModel({
|
|
222
|
+
name: "TestIntegrationConnectionInput",
|
|
223
|
+
fields: { connectionId: {
|
|
224
|
+
type: ScalarTypeEnum.ID(),
|
|
225
|
+
isOptional: false
|
|
226
|
+
} }
|
|
227
|
+
});
|
|
228
|
+
const TestIntegrationConnectionOutput = new SchemaModel({
|
|
229
|
+
name: "TestIntegrationConnectionOutput",
|
|
230
|
+
fields: {
|
|
231
|
+
success: {
|
|
232
|
+
type: ScalarTypeEnum.Boolean(),
|
|
233
|
+
isOptional: false
|
|
234
|
+
},
|
|
235
|
+
status: {
|
|
236
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
237
|
+
isOptional: true
|
|
238
|
+
},
|
|
239
|
+
latencyMs: {
|
|
240
|
+
type: ScalarTypeEnum.Float_unsecure(),
|
|
241
|
+
isOptional: true
|
|
242
|
+
},
|
|
243
|
+
error: {
|
|
244
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
245
|
+
isOptional: true
|
|
246
|
+
},
|
|
247
|
+
errorCode: {
|
|
248
|
+
type: ScalarTypeEnum.String_unsecure(),
|
|
249
|
+
isOptional: true
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
const DeleteIntegrationConnectionOutput = new SchemaModel({
|
|
254
|
+
name: "DeleteIntegrationConnectionOutput",
|
|
255
|
+
fields: { success: {
|
|
256
|
+
type: ScalarTypeEnum.Boolean(),
|
|
257
|
+
isOptional: false
|
|
258
|
+
} }
|
|
259
|
+
});
|
|
260
|
+
const CreateIntegrationConnection = defineCommand({
|
|
261
|
+
meta: {
|
|
262
|
+
key: "integrations.connection.create",
|
|
263
|
+
title: "Create Integration Connection",
|
|
264
|
+
version: 1,
|
|
265
|
+
description: "Create a new integration connection for a tenant.",
|
|
266
|
+
goal: "Provision a tenant-scoped connection to an external provider.",
|
|
267
|
+
context: "Used by Ops or the App Studio to configure external integrations such as Stripe or Qdrant.",
|
|
268
|
+
owners: ["@platform.integrations"],
|
|
269
|
+
tags: ["integration", "connections"],
|
|
270
|
+
stability: "experimental"
|
|
271
|
+
},
|
|
272
|
+
io: {
|
|
273
|
+
input: CreateIntegrationConnectionInput,
|
|
274
|
+
output: IntegrationConnectionRecord
|
|
275
|
+
},
|
|
276
|
+
policy: {
|
|
277
|
+
auth: "admin",
|
|
278
|
+
policies: [{
|
|
279
|
+
key: "platform.integration.manage",
|
|
280
|
+
version: 1
|
|
281
|
+
}]
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
const UpdateIntegrationConnection = defineCommand({
|
|
285
|
+
meta: {
|
|
286
|
+
key: "integrations.connection.update",
|
|
287
|
+
title: "Update Integration Connection",
|
|
288
|
+
version: 1,
|
|
289
|
+
description: "Update metadata or credentials for an integration connection.",
|
|
290
|
+
goal: "Allow secure rotation of credentials and metadata adjustments.",
|
|
291
|
+
context: "Supports rotating API keys, toggling status, or updating labels for tenant integrations.",
|
|
292
|
+
owners: ["@platform.integrations"],
|
|
293
|
+
tags: ["integration", "connections"],
|
|
294
|
+
stability: "experimental"
|
|
295
|
+
},
|
|
296
|
+
io: {
|
|
297
|
+
input: UpdateIntegrationConnectionInput,
|
|
298
|
+
output: IntegrationConnectionRecord
|
|
299
|
+
},
|
|
300
|
+
policy: {
|
|
301
|
+
auth: "admin",
|
|
302
|
+
policies: [{
|
|
303
|
+
key: "platform.integration.manage",
|
|
304
|
+
version: 1
|
|
305
|
+
}]
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
const DeleteIntegrationConnection = defineCommand({
|
|
309
|
+
meta: {
|
|
310
|
+
key: "integrations.connection.delete",
|
|
311
|
+
title: "Delete Integration Connection",
|
|
312
|
+
version: 1,
|
|
313
|
+
description: "Delete an integration connection for a tenant.",
|
|
314
|
+
goal: "Safely remove credentials and disable connector usage.",
|
|
315
|
+
context: "Ensures connections are de-provisioned when no longer needed or breached.",
|
|
316
|
+
owners: ["@platform.integrations"],
|
|
317
|
+
tags: ["integration", "connections"],
|
|
318
|
+
stability: "experimental"
|
|
319
|
+
},
|
|
320
|
+
io: {
|
|
321
|
+
input: DeleteIntegrationConnectionInput,
|
|
322
|
+
output: DeleteIntegrationConnectionOutput
|
|
323
|
+
},
|
|
324
|
+
policy: {
|
|
325
|
+
auth: "admin",
|
|
326
|
+
policies: [{
|
|
327
|
+
key: "platform.integration.manage",
|
|
328
|
+
version: 1
|
|
329
|
+
}]
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
const ListIntegrationConnections = defineQuery({
|
|
333
|
+
meta: {
|
|
334
|
+
key: "integrations.connection.list",
|
|
335
|
+
title: "List Integration Connections",
|
|
336
|
+
version: 1,
|
|
337
|
+
description: "List integration connections for a tenant.",
|
|
338
|
+
goal: "Provide visibility into configured integrations and their status.",
|
|
339
|
+
context: "Used by the App Studio and Ops flows to show bindings and health.",
|
|
340
|
+
owners: ["@platform.integrations"],
|
|
341
|
+
tags: ["integration", "connections"],
|
|
342
|
+
stability: "experimental"
|
|
343
|
+
},
|
|
344
|
+
io: {
|
|
345
|
+
input: ListIntegrationConnectionsInput,
|
|
346
|
+
output: ListIntegrationConnectionsOutput
|
|
347
|
+
},
|
|
348
|
+
policy: {
|
|
349
|
+
auth: "admin",
|
|
350
|
+
policies: [{
|
|
351
|
+
key: "platform.integration.read",
|
|
352
|
+
version: 1
|
|
353
|
+
}]
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
const TestIntegrationConnection = defineCommand({
|
|
357
|
+
meta: {
|
|
358
|
+
key: "integrations.connection.test",
|
|
359
|
+
title: "Test Integration Connection",
|
|
360
|
+
version: 1,
|
|
361
|
+
description: "Run a health check against a configured integration connection.",
|
|
362
|
+
goal: "Validate credentials and connectivity for external providers.",
|
|
363
|
+
context: "Triggered manually or by background monitors to confirm provider availability.",
|
|
364
|
+
owners: ["@platform.integrations"],
|
|
365
|
+
tags: ["integration", "connections"],
|
|
366
|
+
stability: "experimental"
|
|
367
|
+
},
|
|
368
|
+
io: {
|
|
369
|
+
input: TestIntegrationConnectionInput,
|
|
370
|
+
output: TestIntegrationConnectionOutput
|
|
371
|
+
},
|
|
372
|
+
policy: {
|
|
373
|
+
auth: "admin",
|
|
374
|
+
policies: [{
|
|
375
|
+
key: "platform.integration.manage",
|
|
376
|
+
version: 1
|
|
377
|
+
}]
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
const integrationContracts = {
|
|
381
|
+
CreateIntegrationConnection,
|
|
382
|
+
UpdateIntegrationConnection,
|
|
383
|
+
DeleteIntegrationConnection,
|
|
384
|
+
ListIntegrationConnections,
|
|
385
|
+
TestIntegrationConnection
|
|
386
|
+
};
|
|
387
|
+
function registerIntegrationContracts(registry) {
|
|
388
|
+
return registry.register(CreateIntegrationConnection).register(UpdateIntegrationConnection).register(DeleteIntegrationConnection).register(ListIntegrationConnections).register(TestIntegrationConnection);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
//#endregion
|
|
392
|
+
export { CreateIntegrationConnection, DeleteIntegrationConnection, ListIntegrationConnections, TestIntegrationConnection, UpdateIntegrationConnection, integrationContracts, registerIntegrationContracts };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
//#region src/integrations/providers/calendar.d.ts
|
|
2
|
+
interface CalendarAttendee {
|
|
3
|
+
email: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
optional?: boolean;
|
|
6
|
+
responseStatus?: 'needsAction' | 'declined' | 'tentative' | 'accepted';
|
|
7
|
+
}
|
|
8
|
+
interface CalendarReminder {
|
|
9
|
+
method: 'email' | 'popup';
|
|
10
|
+
minutesBeforeStart: number;
|
|
11
|
+
}
|
|
12
|
+
interface CalendarEvent {
|
|
13
|
+
id: string;
|
|
14
|
+
calendarId: string;
|
|
15
|
+
title: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
location?: string;
|
|
18
|
+
start: Date;
|
|
19
|
+
end: Date;
|
|
20
|
+
allDay?: boolean;
|
|
21
|
+
attendees?: CalendarAttendee[];
|
|
22
|
+
reminders?: CalendarReminder[];
|
|
23
|
+
conferenceLink?: string;
|
|
24
|
+
metadata?: Record<string, string>;
|
|
25
|
+
createdAt?: Date;
|
|
26
|
+
updatedAt?: Date;
|
|
27
|
+
}
|
|
28
|
+
interface CalendarEventInput {
|
|
29
|
+
calendarId: string;
|
|
30
|
+
title: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
location?: string;
|
|
33
|
+
start: Date;
|
|
34
|
+
end: Date;
|
|
35
|
+
allDay?: boolean;
|
|
36
|
+
attendees?: CalendarAttendee[];
|
|
37
|
+
reminders?: CalendarReminder[];
|
|
38
|
+
conference?: {
|
|
39
|
+
create: boolean;
|
|
40
|
+
type?: 'google_meet' | 'zoom' | 'custom';
|
|
41
|
+
};
|
|
42
|
+
metadata?: Record<string, string>;
|
|
43
|
+
}
|
|
44
|
+
interface CalendarEventUpdateInput {
|
|
45
|
+
title?: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
location?: string;
|
|
48
|
+
start?: Date;
|
|
49
|
+
end?: Date;
|
|
50
|
+
allDay?: boolean;
|
|
51
|
+
attendees?: CalendarAttendee[];
|
|
52
|
+
reminders?: CalendarReminder[];
|
|
53
|
+
conference?: {
|
|
54
|
+
create?: boolean;
|
|
55
|
+
type?: 'google_meet' | 'zoom' | 'custom';
|
|
56
|
+
};
|
|
57
|
+
metadata?: Record<string, string>;
|
|
58
|
+
}
|
|
59
|
+
interface CalendarListEventsQuery {
|
|
60
|
+
calendarId: string;
|
|
61
|
+
timeMin?: Date;
|
|
62
|
+
timeMax?: Date;
|
|
63
|
+
maxResults?: number;
|
|
64
|
+
pageToken?: string;
|
|
65
|
+
includeCancelled?: boolean;
|
|
66
|
+
}
|
|
67
|
+
interface CalendarListEventsResult {
|
|
68
|
+
events: CalendarEvent[];
|
|
69
|
+
nextPageToken?: string;
|
|
70
|
+
}
|
|
71
|
+
interface CalendarProvider {
|
|
72
|
+
listEvents(query: CalendarListEventsQuery): Promise<CalendarListEventsResult>;
|
|
73
|
+
createEvent(input: CalendarEventInput): Promise<CalendarEvent>;
|
|
74
|
+
updateEvent(calendarId: string, eventId: string, input: CalendarEventUpdateInput): Promise<CalendarEvent>;
|
|
75
|
+
deleteEvent(calendarId: string, eventId: string): Promise<void>;
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
export { CalendarAttendee, CalendarEvent, CalendarEventInput, CalendarEventUpdateInput, CalendarListEventsQuery, CalendarListEventsResult, CalendarProvider, CalendarReminder };
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IntegrationSpec, IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/providers/elevenlabs.d.ts
|
|
4
|
+
declare const elevenLabsIntegrationSpec: IntegrationSpec;
|
|
5
|
+
declare function registerElevenLabsIntegration(registry: IntegrationSpecRegistry): IntegrationSpecRegistry;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { elevenLabsIntegrationSpec, registerElevenLabsIntegration };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { StabilityEnum } from "../../ownership.js";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/providers/elevenlabs.ts
|
|
4
|
+
const elevenLabsIntegrationSpec = {
|
|
5
|
+
meta: {
|
|
6
|
+
key: "ai-voice.elevenlabs",
|
|
7
|
+
version: 1,
|
|
8
|
+
category: "ai-voice",
|
|
9
|
+
title: "ElevenLabs Text-to-Speech",
|
|
10
|
+
description: "ElevenLabs integration for neural voice synthesis and voice catalog access.",
|
|
11
|
+
domain: "ai",
|
|
12
|
+
owners: ["platform.ai"],
|
|
13
|
+
tags: ["voice", "tts"],
|
|
14
|
+
stability: StabilityEnum.Beta
|
|
15
|
+
},
|
|
16
|
+
supportedModes: ["managed", "byok"],
|
|
17
|
+
capabilities: { provides: [{
|
|
18
|
+
key: "ai.voice.synthesis",
|
|
19
|
+
version: 1
|
|
20
|
+
}] },
|
|
21
|
+
configSchema: {
|
|
22
|
+
schema: {
|
|
23
|
+
type: "object",
|
|
24
|
+
properties: { defaultVoiceId: {
|
|
25
|
+
type: "string",
|
|
26
|
+
description: "Optional default voice identifier for synthesis requests."
|
|
27
|
+
} }
|
|
28
|
+
},
|
|
29
|
+
example: { defaultVoiceId: "pNInz6obpgDQGcFmaJgB" }
|
|
30
|
+
},
|
|
31
|
+
secretSchema: {
|
|
32
|
+
schema: {
|
|
33
|
+
type: "object",
|
|
34
|
+
required: ["apiKey"],
|
|
35
|
+
properties: { apiKey: {
|
|
36
|
+
type: "string",
|
|
37
|
+
description: "ElevenLabs API key with text-to-speech permissions."
|
|
38
|
+
} }
|
|
39
|
+
},
|
|
40
|
+
example: { apiKey: "eleven-***" }
|
|
41
|
+
},
|
|
42
|
+
healthCheck: {
|
|
43
|
+
method: "custom",
|
|
44
|
+
timeoutMs: 4e3
|
|
45
|
+
},
|
|
46
|
+
docsUrl: "https://elevenlabs.io/docs/api-reference/text-to-speech",
|
|
47
|
+
constraints: { rateLimit: { rpm: 120 } },
|
|
48
|
+
byokSetup: { setupInstructions: "Create an ElevenLabs API key and ensure the desired voices are accessible to the key scope." }
|
|
49
|
+
};
|
|
50
|
+
function registerElevenLabsIntegration(registry) {
|
|
51
|
+
return registry.register(elevenLabsIntegrationSpec);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
export { elevenLabsIntegrationSpec, registerElevenLabsIntegration };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
//#region src/integrations/providers/email.d.ts
|
|
2
|
+
interface EmailAddress {
|
|
3
|
+
email: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
}
|
|
6
|
+
interface EmailAttachment {
|
|
7
|
+
id: string;
|
|
8
|
+
filename: string;
|
|
9
|
+
contentType: string;
|
|
10
|
+
sizeBytes?: number;
|
|
11
|
+
data?: Uint8Array;
|
|
12
|
+
downloadUrl?: string;
|
|
13
|
+
}
|
|
14
|
+
interface EmailOutboundMessage {
|
|
15
|
+
from: EmailAddress;
|
|
16
|
+
to: EmailAddress[];
|
|
17
|
+
cc?: EmailAddress[];
|
|
18
|
+
bcc?: EmailAddress[];
|
|
19
|
+
replyTo?: EmailAddress;
|
|
20
|
+
subject: string;
|
|
21
|
+
textBody?: string;
|
|
22
|
+
htmlBody?: string;
|
|
23
|
+
headers?: Record<string, string>;
|
|
24
|
+
attachments?: EmailAttachment[];
|
|
25
|
+
metadata?: Record<string, string>;
|
|
26
|
+
}
|
|
27
|
+
interface EmailOutboundResult {
|
|
28
|
+
id: string;
|
|
29
|
+
providerMessageId?: string;
|
|
30
|
+
queuedAt?: Date;
|
|
31
|
+
deliveredAt?: Date;
|
|
32
|
+
}
|
|
33
|
+
interface EmailThread {
|
|
34
|
+
id: string;
|
|
35
|
+
subject?: string;
|
|
36
|
+
snippet?: string;
|
|
37
|
+
participants: EmailAddress[];
|
|
38
|
+
messages: EmailMessage[];
|
|
39
|
+
updatedAt: Date;
|
|
40
|
+
labels?: string[];
|
|
41
|
+
metadata?: Record<string, string>;
|
|
42
|
+
}
|
|
43
|
+
interface EmailMessage {
|
|
44
|
+
id: string;
|
|
45
|
+
threadId: string;
|
|
46
|
+
subject?: string;
|
|
47
|
+
from: EmailAddress;
|
|
48
|
+
to: EmailAddress[];
|
|
49
|
+
cc?: EmailAddress[];
|
|
50
|
+
bcc?: EmailAddress[];
|
|
51
|
+
replyTo?: EmailAddress;
|
|
52
|
+
sentAt: Date;
|
|
53
|
+
receivedAt?: Date;
|
|
54
|
+
textBody?: string;
|
|
55
|
+
htmlBody?: string;
|
|
56
|
+
attachments?: EmailAttachment[];
|
|
57
|
+
headers?: Record<string, string>;
|
|
58
|
+
metadata?: Record<string, string>;
|
|
59
|
+
}
|
|
60
|
+
interface EmailThreadListQuery {
|
|
61
|
+
label?: string;
|
|
62
|
+
query?: string;
|
|
63
|
+
pageSize?: number;
|
|
64
|
+
pageToken?: string;
|
|
65
|
+
includeArchived?: boolean;
|
|
66
|
+
updatedSince?: Date;
|
|
67
|
+
}
|
|
68
|
+
interface EmailMessagesSinceQuery {
|
|
69
|
+
label?: string;
|
|
70
|
+
since?: Date;
|
|
71
|
+
pageSize?: number;
|
|
72
|
+
pageToken?: string;
|
|
73
|
+
}
|
|
74
|
+
interface EmailOutboundProvider {
|
|
75
|
+
sendEmail(message: EmailOutboundMessage): Promise<EmailOutboundResult>;
|
|
76
|
+
}
|
|
77
|
+
interface EmailInboundProvider {
|
|
78
|
+
listThreads(query?: EmailThreadListQuery): Promise<EmailThread[]>;
|
|
79
|
+
getThread(threadId: string): Promise<EmailThread | null>;
|
|
80
|
+
listMessagesSince(query: EmailMessagesSinceQuery): Promise<{
|
|
81
|
+
messages: EmailMessage[];
|
|
82
|
+
nextPageToken?: string;
|
|
83
|
+
}>;
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
export { EmailAddress, EmailAttachment, EmailInboundProvider, EmailMessage, EmailMessagesSinceQuery, EmailOutboundMessage, EmailOutboundProvider, EmailOutboundResult, EmailThread, EmailThreadListQuery };
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/integrations/providers/embedding.d.ts
|
|
2
|
+
type EmbeddingVector = number[];
|
|
3
|
+
interface EmbeddingDocument {
|
|
4
|
+
id: string;
|
|
5
|
+
text: string;
|
|
6
|
+
metadata?: Record<string, string | number | boolean>;
|
|
7
|
+
}
|
|
8
|
+
interface EmbeddingResult {
|
|
9
|
+
id: string;
|
|
10
|
+
vector: EmbeddingVector;
|
|
11
|
+
dimensions: number;
|
|
12
|
+
model: string;
|
|
13
|
+
metadata?: Record<string, string>;
|
|
14
|
+
}
|
|
15
|
+
interface EmbeddingProvider {
|
|
16
|
+
embedDocuments(documents: EmbeddingDocument[], options?: {
|
|
17
|
+
model?: string;
|
|
18
|
+
}): Promise<EmbeddingResult[]>;
|
|
19
|
+
embedQuery(query: string, options?: {
|
|
20
|
+
model?: string;
|
|
21
|
+
}): Promise<EmbeddingResult>;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { EmbeddingDocument, EmbeddingProvider, EmbeddingResult, EmbeddingVector };
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IntegrationSpec, IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/providers/gcs-storage.d.ts
|
|
4
|
+
declare const gcsStorageIntegrationSpec: IntegrationSpec;
|
|
5
|
+
declare function registerGcsStorageIntegration(registry: IntegrationSpecRegistry): IntegrationSpecRegistry;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { gcsStorageIntegrationSpec, registerGcsStorageIntegration };
|