@lssm/lib.contracts 0.0.0-canary-20251120170226
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +98 -0
- package/dist/app-config/branding.d.ts +56 -0
- package/dist/app-config/branding.d.ts.map +1 -0
- package/dist/app-config/branding.js +0 -0
- package/dist/app-config/contracts.d.ts +245 -0
- package/dist/app-config/contracts.d.ts.map +1 -0
- package/dist/app-config/contracts.js +2 -0
- package/dist/app-config/contracts.js.map +1 -0
- package/dist/app-config/events.d.ts +123 -0
- package/dist/app-config/events.d.ts.map +1 -0
- package/dist/app-config/events.js +2 -0
- package/dist/app-config/events.js.map +1 -0
- package/dist/app-config/index.d.ts +8 -0
- package/dist/app-config/index.js +1 -0
- package/dist/app-config/lifecycle-contracts.d.ts +383 -0
- package/dist/app-config/lifecycle-contracts.d.ts.map +1 -0
- package/dist/app-config/lifecycle-contracts.js +2 -0
- package/dist/app-config/lifecycle-contracts.js.map +1 -0
- package/dist/app-config/lifecycle.d.ts +28 -0
- package/dist/app-config/lifecycle.d.ts.map +1 -0
- package/dist/app-config/lifecycle.js +0 -0
- package/dist/app-config/runtime.d.ts +115 -0
- package/dist/app-config/runtime.d.ts.map +1 -0
- package/dist/app-config/runtime.js +2 -0
- package/dist/app-config/runtime.js.map +1 -0
- package/dist/app-config/spec.d.ts +176 -0
- package/dist/app-config/spec.d.ts.map +1 -0
- package/dist/app-config/spec.js +2 -0
- package/dist/app-config/spec.js.map +1 -0
- package/dist/app-config/validation.d.ts +48 -0
- package/dist/app-config/validation.d.ts.map +1 -0
- package/dist/app-config/validation.js +2 -0
- package/dist/app-config/validation.js.map +1 -0
- package/dist/capabilities/openbanking.d.ts +10 -0
- package/dist/capabilities/openbanking.d.ts.map +1 -0
- package/dist/capabilities/openbanking.js +2 -0
- package/dist/capabilities/openbanking.js.map +1 -0
- package/dist/capabilities.d.ts +45 -0
- package/dist/capabilities.d.ts.map +1 -0
- package/dist/capabilities.js +2 -0
- package/dist/capabilities.js.map +1 -0
- package/dist/client/index.d.ts +6 -0
- package/dist/client/index.js +1 -0
- package/dist/client/react/drivers/rn-reusables.d.ts +23 -0
- package/dist/client/react/drivers/rn-reusables.d.ts.map +1 -0
- package/dist/client/react/drivers/rn-reusables.js +2 -0
- package/dist/client/react/drivers/rn-reusables.js.map +1 -0
- package/dist/client/react/drivers/shadcn.d.ts +13 -0
- package/dist/client/react/drivers/shadcn.d.ts.map +1 -0
- package/dist/client/react/drivers/shadcn.js +2 -0
- package/dist/client/react/drivers/shadcn.js.map +1 -0
- package/dist/client/react/feature-render.d.ts +21 -0
- package/dist/client/react/feature-render.d.ts.map +1 -0
- package/dist/client/react/feature-render.js +2 -0
- package/dist/client/react/feature-render.js.map +1 -0
- package/dist/client/react/form-render.d.ts +92 -0
- package/dist/client/react/form-render.d.ts.map +1 -0
- package/dist/client/react/form-render.js +2 -0
- package/dist/client/react/form-render.js.map +1 -0
- package/dist/client/react/index.d.ts +5 -0
- package/dist/client/react/index.js +1 -0
- package/dist/contracts-adapter-hydration.d.ts +16 -0
- package/dist/contracts-adapter-hydration.d.ts.map +1 -0
- package/dist/contracts-adapter-hydration.js +2 -0
- package/dist/contracts-adapter-hydration.js.map +1 -0
- package/dist/contracts-adapter-input.d.ts +11 -0
- package/dist/contracts-adapter-input.d.ts.map +1 -0
- package/dist/contracts-adapter-input.js +2 -0
- package/dist/contracts-adapter-input.js.map +1 -0
- package/dist/data-views/query-generator.d.ts +40 -0
- package/dist/data-views/query-generator.d.ts.map +1 -0
- package/dist/data-views/query-generator.js +2 -0
- package/dist/data-views/query-generator.js.map +1 -0
- package/dist/data-views/runtime.d.ts +27 -0
- package/dist/data-views/runtime.d.ts.map +1 -0
- package/dist/data-views/runtime.js +2 -0
- package/dist/data-views/runtime.js.map +1 -0
- package/dist/data-views.d.ts +132 -0
- package/dist/data-views.d.ts.map +1 -0
- package/dist/data-views.js +2 -0
- package/dist/data-views.js.map +1 -0
- package/dist/events.d.ts +45 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +2 -0
- package/dist/events.js.map +1 -0
- package/dist/experiments/evaluator.d.ts +38 -0
- package/dist/experiments/evaluator.d.ts.map +1 -0
- package/dist/experiments/evaluator.js +2 -0
- package/dist/experiments/evaluator.js.map +1 -0
- package/dist/experiments/spec.d.ts +90 -0
- package/dist/experiments/spec.d.ts.map +1 -0
- package/dist/experiments/spec.js +2 -0
- package/dist/experiments/spec.js.map +1 -0
- package/dist/features.d.ts +88 -0
- package/dist/features.d.ts.map +1 -0
- package/dist/features.js +2 -0
- package/dist/features.js.map +1 -0
- package/dist/forms.d.ts +259 -0
- package/dist/forms.d.ts.map +1 -0
- package/dist/forms.js +2 -0
- package/dist/forms.js.map +1 -0
- package/dist/graphql-federation/dist/index.js +2 -0
- package/dist/graphql-federation/dist/index.js.map +1 -0
- package/dist/index.d.ts +129 -0
- package/dist/index.js +1 -0
- package/dist/install.d.ts +77 -0
- package/dist/install.d.ts.map +1 -0
- package/dist/install.js +2 -0
- package/dist/install.js.map +1 -0
- package/dist/integrations/binding.d.ts +18 -0
- package/dist/integrations/binding.d.ts.map +1 -0
- package/dist/integrations/binding.js +0 -0
- package/dist/integrations/connection.d.ts +52 -0
- package/dist/integrations/connection.d.ts.map +1 -0
- package/dist/integrations/connection.js +0 -0
- package/dist/integrations/contracts.d.ts +436 -0
- package/dist/integrations/contracts.d.ts.map +1 -0
- package/dist/integrations/contracts.js +2 -0
- package/dist/integrations/contracts.js.map +1 -0
- package/dist/integrations/health.d.ts +22 -0
- package/dist/integrations/health.d.ts.map +1 -0
- package/dist/integrations/health.js +2 -0
- package/dist/integrations/health.js.map +1 -0
- package/dist/integrations/index.d.ts +53 -0
- package/dist/integrations/index.js +1 -0
- package/dist/integrations/openbanking/contracts/accounts.d.ts +288 -0
- package/dist/integrations/openbanking/contracts/accounts.d.ts.map +1 -0
- package/dist/integrations/openbanking/contracts/accounts.js +2 -0
- package/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
- package/dist/integrations/openbanking/contracts/balances.d.ts +164 -0
- package/dist/integrations/openbanking/contracts/balances.d.ts.map +1 -0
- package/dist/integrations/openbanking/contracts/balances.js +2 -0
- package/dist/integrations/openbanking/contracts/balances.js.map +1 -0
- package/dist/integrations/openbanking/contracts/index.d.ts +10 -0
- package/dist/integrations/openbanking/contracts/index.d.ts.map +1 -0
- package/dist/integrations/openbanking/contracts/index.js +2 -0
- package/dist/integrations/openbanking/contracts/index.js.map +1 -0
- package/dist/integrations/openbanking/contracts/transactions.d.ts +212 -0
- package/dist/integrations/openbanking/contracts/transactions.d.ts.map +1 -0
- package/dist/integrations/openbanking/contracts/transactions.js +2 -0
- package/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
- package/dist/integrations/openbanking/guards.d.ts +13 -0
- package/dist/integrations/openbanking/guards.d.ts.map +1 -0
- package/dist/integrations/openbanking/guards.js +2 -0
- package/dist/integrations/openbanking/guards.js.map +1 -0
- package/dist/integrations/openbanking/models.d.ts +229 -0
- package/dist/integrations/openbanking/models.d.ts.map +1 -0
- package/dist/integrations/openbanking/models.js +2 -0
- package/dist/integrations/openbanking/models.js.map +1 -0
- package/dist/integrations/openbanking/telemetry.d.ts +16 -0
- package/dist/integrations/openbanking/telemetry.d.ts.map +1 -0
- package/dist/integrations/openbanking/telemetry.js +2 -0
- package/dist/integrations/openbanking/telemetry.js.map +1 -0
- package/dist/integrations/providers/calendar.d.ts +79 -0
- package/dist/integrations/providers/calendar.d.ts.map +1 -0
- package/dist/integrations/providers/calendar.js +0 -0
- package/dist/integrations/providers/elevenlabs.d.ts +8 -0
- package/dist/integrations/providers/elevenlabs.d.ts.map +1 -0
- package/dist/integrations/providers/elevenlabs.js +2 -0
- package/dist/integrations/providers/elevenlabs.js.map +1 -0
- package/dist/integrations/providers/email.d.ts +87 -0
- package/dist/integrations/providers/email.d.ts.map +1 -0
- package/dist/integrations/providers/email.js +0 -0
- package/dist/integrations/providers/embedding.d.ts +25 -0
- package/dist/integrations/providers/embedding.d.ts.map +1 -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.d.ts.map +1 -0
- package/dist/integrations/providers/gcs-storage.js +2 -0
- package/dist/integrations/providers/gcs-storage.js.map +1 -0
- package/dist/integrations/providers/gmail.d.ts +8 -0
- package/dist/integrations/providers/gmail.d.ts.map +1 -0
- package/dist/integrations/providers/gmail.js +2 -0
- package/dist/integrations/providers/gmail.js.map +1 -0
- package/dist/integrations/providers/google-calendar.d.ts +8 -0
- package/dist/integrations/providers/google-calendar.d.ts.map +1 -0
- package/dist/integrations/providers/google-calendar.js +2 -0
- package/dist/integrations/providers/google-calendar.js.map +1 -0
- package/dist/integrations/providers/impls/elevenlabs-voice.d.ts +21 -0
- package/dist/integrations/providers/impls/elevenlabs-voice.d.ts.map +1 -0
- package/dist/integrations/providers/impls/elevenlabs-voice.js +2 -0
- package/dist/integrations/providers/impls/elevenlabs-voice.js.map +1 -0
- package/dist/integrations/providers/impls/gcs-storage.d.ts +25 -0
- package/dist/integrations/providers/impls/gcs-storage.d.ts.map +1 -0
- package/dist/integrations/providers/impls/gcs-storage.js +2 -0
- package/dist/integrations/providers/impls/gcs-storage.js.map +1 -0
- package/dist/integrations/providers/impls/gmail-inbound.d.ts +27 -0
- package/dist/integrations/providers/impls/gmail-inbound.d.ts.map +1 -0
- package/dist/integrations/providers/impls/gmail-inbound.js +2 -0
- package/dist/integrations/providers/impls/gmail-inbound.js.map +1 -0
- package/dist/integrations/providers/impls/gmail-outbound.d.ts +19 -0
- package/dist/integrations/providers/impls/gmail-outbound.d.ts.map +1 -0
- package/dist/integrations/providers/impls/gmail-outbound.js +7 -0
- package/dist/integrations/providers/impls/gmail-outbound.js.map +1 -0
- package/dist/integrations/providers/impls/google-calendar.d.ts +24 -0
- package/dist/integrations/providers/impls/google-calendar.d.ts.map +1 -0
- package/dist/integrations/providers/impls/google-calendar.js +2 -0
- package/dist/integrations/providers/impls/google-calendar.js.map +1 -0
- package/dist/integrations/providers/impls/index.d.ts +15 -0
- package/dist/integrations/providers/impls/index.js +1 -0
- package/dist/integrations/providers/impls/mistral-embedding.d.ts +24 -0
- package/dist/integrations/providers/impls/mistral-embedding.d.ts.map +1 -0
- package/dist/integrations/providers/impls/mistral-embedding.js +2 -0
- package/dist/integrations/providers/impls/mistral-embedding.js.map +1 -0
- package/dist/integrations/providers/impls/mistral-llm.d.ts +32 -0
- package/dist/integrations/providers/impls/mistral-llm.d.ts.map +1 -0
- package/dist/integrations/providers/impls/mistral-llm.js +2 -0
- package/dist/integrations/providers/impls/mistral-llm.js.map +1 -0
- package/dist/integrations/providers/impls/postmark-email.d.ts +20 -0
- package/dist/integrations/providers/impls/postmark-email.d.ts.map +1 -0
- package/dist/integrations/providers/impls/postmark-email.js +2 -0
- package/dist/integrations/providers/impls/postmark-email.js.map +1 -0
- package/dist/integrations/providers/impls/powens-client.d.ts +125 -0
- package/dist/integrations/providers/impls/powens-client.d.ts.map +1 -0
- package/dist/integrations/providers/impls/powens-client.js +2 -0
- package/dist/integrations/providers/impls/powens-client.js.map +1 -0
- package/dist/integrations/providers/impls/powens-openbanking.d.ts +28 -0
- package/dist/integrations/providers/impls/powens-openbanking.d.ts.map +1 -0
- package/dist/integrations/providers/impls/powens-openbanking.js +2 -0
- package/dist/integrations/providers/impls/powens-openbanking.js.map +1 -0
- package/dist/integrations/providers/impls/provider-factory.d.ts +27 -0
- package/dist/integrations/providers/impls/provider-factory.d.ts.map +1 -0
- package/dist/integrations/providers/impls/provider-factory.js +2 -0
- package/dist/integrations/providers/impls/provider-factory.js.map +1 -0
- package/dist/integrations/providers/impls/qdrant-vector.d.ts +25 -0
- package/dist/integrations/providers/impls/qdrant-vector.d.ts.map +1 -0
- package/dist/integrations/providers/impls/qdrant-vector.js +2 -0
- package/dist/integrations/providers/impls/qdrant-vector.js.map +1 -0
- package/dist/integrations/providers/impls/stripe-payments.d.ts +29 -0
- package/dist/integrations/providers/impls/stripe-payments.d.ts.map +1 -0
- package/dist/integrations/providers/impls/stripe-payments.js +2 -0
- package/dist/integrations/providers/impls/stripe-payments.js.map +1 -0
- package/dist/integrations/providers/impls/twilio-sms.d.ts +21 -0
- package/dist/integrations/providers/impls/twilio-sms.d.ts.map +1 -0
- package/dist/integrations/providers/impls/twilio-sms.js +2 -0
- package/dist/integrations/providers/impls/twilio-sms.js.map +1 -0
- package/dist/integrations/providers/index.d.ts +36 -0
- package/dist/integrations/providers/index.js +1 -0
- package/dist/integrations/providers/llm.d.ts +83 -0
- package/dist/integrations/providers/llm.d.ts.map +1 -0
- package/dist/integrations/providers/llm.js +0 -0
- package/dist/integrations/providers/mistral.d.ts +8 -0
- package/dist/integrations/providers/mistral.d.ts.map +1 -0
- package/dist/integrations/providers/mistral.js +2 -0
- package/dist/integrations/providers/mistral.js.map +1 -0
- package/dist/integrations/providers/openbanking.d.ts +129 -0
- package/dist/integrations/providers/openbanking.d.ts.map +1 -0
- package/dist/integrations/providers/openbanking.js +0 -0
- package/dist/integrations/providers/payments.d.ts +110 -0
- package/dist/integrations/providers/payments.d.ts.map +1 -0
- package/dist/integrations/providers/payments.js +0 -0
- package/dist/integrations/providers/postmark.d.ts +8 -0
- package/dist/integrations/providers/postmark.d.ts.map +1 -0
- package/dist/integrations/providers/postmark.js +2 -0
- package/dist/integrations/providers/postmark.js.map +1 -0
- package/dist/integrations/providers/powens.d.ts +8 -0
- package/dist/integrations/providers/powens.d.ts.map +1 -0
- package/dist/integrations/providers/powens.js +2 -0
- package/dist/integrations/providers/powens.js.map +1 -0
- package/dist/integrations/providers/qdrant.d.ts +8 -0
- package/dist/integrations/providers/qdrant.d.ts.map +1 -0
- package/dist/integrations/providers/qdrant.js +2 -0
- package/dist/integrations/providers/qdrant.js.map +1 -0
- package/dist/integrations/providers/sms.d.ts +35 -0
- package/dist/integrations/providers/sms.d.ts.map +1 -0
- package/dist/integrations/providers/sms.js +0 -0
- package/dist/integrations/providers/storage.d.ts +61 -0
- package/dist/integrations/providers/storage.d.ts.map +1 -0
- package/dist/integrations/providers/storage.js +0 -0
- package/dist/integrations/providers/stripe.d.ts +8 -0
- package/dist/integrations/providers/stripe.d.ts.map +1 -0
- package/dist/integrations/providers/stripe.js +2 -0
- package/dist/integrations/providers/stripe.js.map +1 -0
- package/dist/integrations/providers/twilio-sms.d.ts +8 -0
- package/dist/integrations/providers/twilio-sms.d.ts.map +1 -0
- package/dist/integrations/providers/twilio-sms.js +2 -0
- package/dist/integrations/providers/twilio-sms.js.map +1 -0
- package/dist/integrations/providers/vector-store.d.ts +44 -0
- package/dist/integrations/providers/vector-store.d.ts.map +1 -0
- package/dist/integrations/providers/vector-store.js +0 -0
- package/dist/integrations/providers/voice.d.ts +35 -0
- package/dist/integrations/providers/voice.d.ts.map +1 -0
- package/dist/integrations/providers/voice.js +0 -0
- package/dist/integrations/runtime.d.ts +100 -0
- package/dist/integrations/runtime.d.ts.map +1 -0
- package/dist/integrations/runtime.js +2 -0
- package/dist/integrations/runtime.js.map +1 -0
- package/dist/integrations/secrets/env-secret-provider.d.ts +32 -0
- package/dist/integrations/secrets/env-secret-provider.d.ts.map +1 -0
- package/dist/integrations/secrets/env-secret-provider.js +2 -0
- package/dist/integrations/secrets/env-secret-provider.js.map +1 -0
- package/dist/integrations/secrets/gcp-secret-manager.d.ts +33 -0
- package/dist/integrations/secrets/gcp-secret-manager.d.ts.map +1 -0
- package/dist/integrations/secrets/gcp-secret-manager.js +2 -0
- package/dist/integrations/secrets/gcp-secret-manager.js.map +1 -0
- package/dist/integrations/secrets/index.d.ts +5 -0
- package/dist/integrations/secrets/index.js +1 -0
- package/dist/integrations/secrets/manager.d.ts +48 -0
- package/dist/integrations/secrets/manager.d.ts.map +1 -0
- package/dist/integrations/secrets/manager.js +2 -0
- package/dist/integrations/secrets/manager.js.map +1 -0
- package/dist/integrations/secrets/provider.d.ts +53 -0
- package/dist/integrations/secrets/provider.d.ts.map +1 -0
- package/dist/integrations/secrets/provider.js +2 -0
- package/dist/integrations/secrets/provider.js.map +1 -0
- package/dist/integrations/spec.d.ts +80 -0
- package/dist/integrations/spec.d.ts.map +1 -0
- package/dist/integrations/spec.js +2 -0
- package/dist/integrations/spec.js.map +1 -0
- package/dist/jobs/gcp-cloud-tasks.d.ts +42 -0
- package/dist/jobs/gcp-cloud-tasks.d.ts.map +1 -0
- package/dist/jobs/gcp-cloud-tasks.js +2 -0
- package/dist/jobs/gcp-cloud-tasks.js.map +1 -0
- package/dist/jobs/gcp-pubsub.d.ts +26 -0
- package/dist/jobs/gcp-pubsub.d.ts.map +1 -0
- package/dist/jobs/gcp-pubsub.js +2 -0
- package/dist/jobs/gcp-pubsub.js.map +1 -0
- package/dist/jobs/handlers/gmail-sync-handler.d.ts +10 -0
- package/dist/jobs/handlers/gmail-sync-handler.d.ts.map +1 -0
- package/dist/jobs/handlers/gmail-sync-handler.js +2 -0
- package/dist/jobs/handlers/gmail-sync-handler.js.map +1 -0
- package/dist/jobs/handlers/index.d.ts +3 -0
- package/dist/jobs/handlers/index.js +1 -0
- package/dist/jobs/handlers/storage-document-handler.d.ts +13 -0
- package/dist/jobs/handlers/storage-document-handler.d.ts.map +1 -0
- package/dist/jobs/handlers/storage-document-handler.js +2 -0
- package/dist/jobs/handlers/storage-document-handler.js.map +1 -0
- package/dist/jobs/index.d.ts +7 -0
- package/dist/jobs/index.js +1 -0
- package/dist/jobs/memory-queue.d.ts +19 -0
- package/dist/jobs/memory-queue.d.ts.map +1 -0
- package/dist/jobs/memory-queue.js +2 -0
- package/dist/jobs/memory-queue.js.map +1 -0
- package/dist/jobs/queue.d.ts +27 -0
- package/dist/jobs/queue.d.ts.map +1 -0
- package/dist/jobs/queue.js +0 -0
- package/dist/jsonschema.d.ts +27 -0
- package/dist/jsonschema.d.ts.map +1 -0
- package/dist/jsonschema.js +2 -0
- package/dist/jsonschema.js.map +1 -0
- package/dist/knowledge/binding.d.ts +26 -0
- package/dist/knowledge/binding.d.ts.map +1 -0
- package/dist/knowledge/binding.js +0 -0
- package/dist/knowledge/contracts.d.ts +317 -0
- package/dist/knowledge/contracts.d.ts.map +1 -0
- package/dist/knowledge/contracts.js +2 -0
- package/dist/knowledge/contracts.js.map +1 -0
- package/dist/knowledge/index.d.ts +10 -0
- package/dist/knowledge/index.js +1 -0
- package/dist/knowledge/ingestion/document-processor.d.ts +25 -0
- package/dist/knowledge/ingestion/document-processor.d.ts.map +1 -0
- package/dist/knowledge/ingestion/document-processor.js +2 -0
- package/dist/knowledge/ingestion/document-processor.js.map +1 -0
- package/dist/knowledge/ingestion/embedding-service.d.ts +13 -0
- package/dist/knowledge/ingestion/embedding-service.d.ts.map +1 -0
- package/dist/knowledge/ingestion/embedding-service.js +2 -0
- package/dist/knowledge/ingestion/embedding-service.js.map +1 -0
- package/dist/knowledge/ingestion/gmail-adapter.d.ts +19 -0
- package/dist/knowledge/ingestion/gmail-adapter.d.ts.map +1 -0
- package/dist/knowledge/ingestion/gmail-adapter.js +7 -0
- package/dist/knowledge/ingestion/gmail-adapter.js.map +1 -0
- package/dist/knowledge/ingestion/index.d.ts +6 -0
- package/dist/knowledge/ingestion/index.js +1 -0
- package/dist/knowledge/ingestion/storage-adapter.d.ts +16 -0
- package/dist/knowledge/ingestion/storage-adapter.d.ts.map +1 -0
- package/dist/knowledge/ingestion/storage-adapter.js +2 -0
- package/dist/knowledge/ingestion/storage-adapter.js.map +1 -0
- package/dist/knowledge/ingestion/vector-indexer.d.ts +19 -0
- package/dist/knowledge/ingestion/vector-indexer.d.ts.map +1 -0
- package/dist/knowledge/ingestion/vector-indexer.js +2 -0
- package/dist/knowledge/ingestion/vector-indexer.js.map +1 -0
- package/dist/knowledge/query/index.d.ts +2 -0
- package/dist/knowledge/query/index.js +1 -0
- package/dist/knowledge/query/service.d.ts +30 -0
- package/dist/knowledge/query/service.d.ts.map +1 -0
- package/dist/knowledge/query/service.js +4 -0
- package/dist/knowledge/query/service.js.map +1 -0
- package/dist/knowledge/runtime.d.ts +33 -0
- package/dist/knowledge/runtime.d.ts.map +1 -0
- package/dist/knowledge/runtime.js +2 -0
- package/dist/knowledge/runtime.js.map +1 -0
- package/dist/knowledge/source.d.ts +33 -0
- package/dist/knowledge/source.d.ts.map +1 -0
- package/dist/knowledge/source.js +0 -0
- package/dist/knowledge/spaces/email-threads.d.ts +8 -0
- package/dist/knowledge/spaces/email-threads.d.ts.map +1 -0
- package/dist/knowledge/spaces/email-threads.js +2 -0
- package/dist/knowledge/spaces/email-threads.js.map +1 -0
- package/dist/knowledge/spaces/financial-docs.d.ts +8 -0
- package/dist/knowledge/spaces/financial-docs.d.ts.map +1 -0
- package/dist/knowledge/spaces/financial-docs.js +2 -0
- package/dist/knowledge/spaces/financial-docs.js.map +1 -0
- package/dist/knowledge/spaces/financial-overview.d.ts +8 -0
- package/dist/knowledge/spaces/financial-overview.d.ts.map +1 -0
- package/dist/knowledge/spaces/financial-overview.js +2 -0
- package/dist/knowledge/spaces/financial-overview.js.map +1 -0
- package/dist/knowledge/spaces/index.d.ts +7 -0
- package/dist/knowledge/spaces/index.js +1 -0
- package/dist/knowledge/spaces/product-canon.d.ts +8 -0
- package/dist/knowledge/spaces/product-canon.d.ts.map +1 -0
- package/dist/knowledge/spaces/product-canon.js +2 -0
- package/dist/knowledge/spaces/product-canon.js.map +1 -0
- package/dist/knowledge/spaces/support-faq.d.ts +8 -0
- package/dist/knowledge/spaces/support-faq.d.ts.map +1 -0
- package/dist/knowledge/spaces/support-faq.js +2 -0
- package/dist/knowledge/spaces/support-faq.js.map +1 -0
- package/dist/knowledge/spaces/uploaded-docs.d.ts +8 -0
- package/dist/knowledge/spaces/uploaded-docs.d.ts.map +1 -0
- package/dist/knowledge/spaces/uploaded-docs.js +2 -0
- package/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
- package/dist/knowledge/spec.d.ts +53 -0
- package/dist/knowledge/spec.d.ts.map +1 -0
- package/dist/knowledge/spec.js +2 -0
- package/dist/knowledge/spec.js.map +1 -0
- package/dist/markdown.d.ts +22 -0
- package/dist/markdown.d.ts.map +1 -0
- package/dist/markdown.js +4 -0
- package/dist/markdown.js.map +1 -0
- package/dist/migrations.d.ts +53 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +2 -0
- package/dist/migrations.js.map +1 -0
- package/dist/onboarding-base.d.ts +138 -0
- package/dist/onboarding-base.d.ts.map +1 -0
- package/dist/onboarding-base.js +2 -0
- package/dist/onboarding-base.js.map +1 -0
- package/dist/ownership.d.ts +76 -0
- package/dist/ownership.d.ts.map +1 -0
- package/dist/ownership.js +2 -0
- package/dist/ownership.js.map +1 -0
- package/dist/policy/engine.d.ts +40 -0
- package/dist/policy/engine.d.ts.map +1 -0
- package/dist/policy/engine.js +2 -0
- package/dist/policy/engine.js.map +1 -0
- package/dist/policy/opa-adapter.d.ts +46 -0
- package/dist/policy/opa-adapter.d.ts.map +1 -0
- package/dist/policy/opa-adapter.js +2 -0
- package/dist/policy/opa-adapter.js.map +1 -0
- package/dist/policy/spec.d.ts +115 -0
- package/dist/policy/spec.d.ts.map +1 -0
- package/dist/policy/spec.js +2 -0
- package/dist/policy/spec.js.map +1 -0
- package/dist/presentations.backcompat.d.ts +8 -0
- package/dist/presentations.backcompat.d.ts.map +1 -0
- package/dist/presentations.backcompat.js +2 -0
- package/dist/presentations.backcompat.js.map +1 -0
- package/dist/presentations.d.ts +97 -0
- package/dist/presentations.d.ts.map +1 -0
- package/dist/presentations.js +2 -0
- package/dist/presentations.js.map +1 -0
- package/dist/presentations.v2.d.ts +96 -0
- package/dist/presentations.v2.d.ts.map +1 -0
- package/dist/presentations.v2.js +2 -0
- package/dist/presentations.v2.js.map +1 -0
- package/dist/prompt.d.ts +61 -0
- package/dist/prompt.d.ts.map +1 -0
- package/dist/prompt.js +2 -0
- package/dist/prompt.js.map +1 -0
- package/dist/promptRegistry.d.ts +16 -0
- package/dist/promptRegistry.d.ts.map +1 -0
- package/dist/promptRegistry.js +2 -0
- package/dist/promptRegistry.js.map +1 -0
- package/dist/regenerator/adapters.d.ts +20 -0
- package/dist/regenerator/adapters.d.ts.map +1 -0
- package/dist/regenerator/adapters.js +0 -0
- package/dist/regenerator/executor.d.ts +71 -0
- package/dist/regenerator/executor.d.ts.map +1 -0
- package/dist/regenerator/executor.js +2 -0
- package/dist/regenerator/executor.js.map +1 -0
- package/dist/regenerator/index.d.ts +7 -0
- package/dist/regenerator/index.js +1 -0
- package/dist/regenerator/service.d.ts +34 -0
- package/dist/regenerator/service.d.ts.map +1 -0
- package/dist/regenerator/service.js +2 -0
- package/dist/regenerator/service.js.map +1 -0
- package/dist/regenerator/sinks.d.ts +27 -0
- package/dist/regenerator/sinks.d.ts.map +1 -0
- package/dist/regenerator/sinks.js +2 -0
- package/dist/regenerator/sinks.js.map +1 -0
- package/dist/regenerator/types.d.ts +108 -0
- package/dist/regenerator/types.d.ts.map +1 -0
- package/dist/regenerator/types.js +0 -0
- package/dist/regenerator/utils.d.ts +10 -0
- package/dist/regenerator/utils.d.ts.map +1 -0
- package/dist/regenerator/utils.js +2 -0
- package/dist/regenerator/utils.js.map +1 -0
- package/dist/registry.d.ts +73 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +2 -0
- package/dist/registry.js.map +1 -0
- package/dist/resources.d.ts +65 -0
- package/dist/resources.d.ts.map +1 -0
- package/dist/resources.js +2 -0
- package/dist/resources.js.map +1 -0
- package/dist/schema/dist/EnumType.js +1 -0
- package/dist/schema/dist/FieldType.js +2 -0
- package/dist/schema/dist/FieldType.js.map +1 -0
- package/dist/schema/dist/ScalarTypeEnum.js +2 -0
- package/dist/schema/dist/ScalarTypeEnum.js.map +1 -0
- package/dist/schema/dist/SchemaModel.js +2 -0
- package/dist/schema/dist/SchemaModel.js.map +1 -0
- package/dist/schema/dist/index.js +1 -0
- package/dist/server/graphql-pothos.d.ts +32 -0
- package/dist/server/graphql-pothos.d.ts.map +1 -0
- package/dist/server/graphql-pothos.js +2 -0
- package/dist/server/graphql-pothos.js.map +1 -0
- package/dist/server/graphql-schema-export.d.ts +7 -0
- package/dist/server/graphql-schema-export.d.ts.map +1 -0
- package/dist/server/graphql-schema-export.js +2 -0
- package/dist/server/graphql-schema-export.js.map +1 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.js +1 -0
- package/dist/server/provider-mcp.d.ts +52 -0
- package/dist/server/provider-mcp.d.ts.map +1 -0
- package/dist/server/provider-mcp.js +2 -0
- package/dist/server/provider-mcp.js.map +1 -0
- package/dist/server/rest-elysia.d.ts +41 -0
- package/dist/server/rest-elysia.d.ts.map +1 -0
- package/dist/server/rest-elysia.js +2 -0
- package/dist/server/rest-elysia.js.map +1 -0
- package/dist/server/rest-express.d.ts +17 -0
- package/dist/server/rest-express.d.ts.map +1 -0
- package/dist/server/rest-express.js +2 -0
- package/dist/server/rest-express.js.map +1 -0
- package/dist/server/rest-generic.d.ts +33 -0
- package/dist/server/rest-generic.d.ts.map +1 -0
- package/dist/server/rest-generic.js +2 -0
- package/dist/server/rest-generic.js.map +1 -0
- package/dist/server/rest-next-app.d.ts +36 -0
- package/dist/server/rest-next-app.d.ts.map +1 -0
- package/dist/server/rest-next-app.js +2 -0
- package/dist/server/rest-next-app.js.map +1 -0
- package/dist/server/rest-next-mcp.d.ts +12 -0
- package/dist/server/rest-next-mcp.d.ts.map +1 -0
- package/dist/server/rest-next-mcp.js +2 -0
- package/dist/server/rest-next-mcp.js.map +1 -0
- package/dist/server/rest-next-pages.d.ts +10 -0
- package/dist/server/rest-next-pages.d.ts.map +1 -0
- package/dist/server/rest-next-pages.js +2 -0
- package/dist/server/rest-next-pages.js.map +1 -0
- package/dist/spec.d.ts +172 -0
- package/dist/spec.d.ts.map +1 -0
- package/dist/spec.js +2 -0
- package/dist/spec.js.map +1 -0
- package/dist/telemetry/anomaly.d.ts +28 -0
- package/dist/telemetry/anomaly.d.ts.map +1 -0
- package/dist/telemetry/anomaly.js +2 -0
- package/dist/telemetry/anomaly.js.map +1 -0
- package/dist/telemetry/index.d.ts +4 -0
- package/dist/telemetry/index.js +1 -0
- package/dist/telemetry/spec.d.ts +99 -0
- package/dist/telemetry/spec.d.ts.map +1 -0
- package/dist/telemetry/spec.js +2 -0
- package/dist/telemetry/spec.js.map +1 -0
- package/dist/telemetry/tracker.d.ts +52 -0
- package/dist/telemetry/tracker.d.ts.map +1 -0
- package/dist/telemetry/tracker.js +2 -0
- package/dist/telemetry/tracker.js.map +1 -0
- package/dist/tests/index.d.ts +3 -0
- package/dist/tests/index.js +1 -0
- package/dist/tests/runner.d.ts +44 -0
- package/dist/tests/runner.d.ts.map +1 -0
- package/dist/tests/runner.js +2 -0
- package/dist/tests/runner.js.map +1 -0
- package/dist/tests/spec.d.ts +90 -0
- package/dist/tests/spec.d.ts.map +1 -0
- package/dist/tests/spec.js +2 -0
- package/dist/tests/spec.js.map +1 -0
- package/dist/themes.d.ts +56 -0
- package/dist/themes.d.ts.map +1 -0
- package/dist/themes.js +2 -0
- package/dist/themes.js.map +1 -0
- package/dist/translations/catalog.d.ts +29 -0
- package/dist/translations/catalog.d.ts.map +1 -0
- package/dist/translations/catalog.js +0 -0
- package/dist/translations/tenant.d.ts +16 -0
- package/dist/translations/tenant.d.ts.map +1 -0
- package/dist/translations/tenant.js +0 -0
- package/dist/types/all.d.ts +60 -0
- package/dist/types/all.js +0 -0
- package/dist/types.d.ts +86 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +0 -0
- package/dist/workflow/adapters/db-adapter.d.ts +35 -0
- package/dist/workflow/adapters/db-adapter.d.ts.map +1 -0
- package/dist/workflow/adapters/db-adapter.js +2 -0
- package/dist/workflow/adapters/db-adapter.js.map +1 -0
- package/dist/workflow/adapters/file-adapter.d.ts +15 -0
- package/dist/workflow/adapters/file-adapter.d.ts.map +1 -0
- package/dist/workflow/adapters/file-adapter.js +2 -0
- package/dist/workflow/adapters/file-adapter.js.map +1 -0
- package/dist/workflow/adapters/index.d.ts +4 -0
- package/dist/workflow/adapters/index.js +1 -0
- package/dist/workflow/adapters/memory-store.d.ts +19 -0
- package/dist/workflow/adapters/memory-store.d.ts.map +1 -0
- package/dist/workflow/adapters/memory-store.js +2 -0
- package/dist/workflow/adapters/memory-store.js.map +1 -0
- package/dist/workflow/expression.d.ts +10 -0
- package/dist/workflow/expression.d.ts.map +1 -0
- package/dist/workflow/expression.js +2 -0
- package/dist/workflow/expression.js.map +1 -0
- package/dist/workflow/index.d.ts +10 -0
- package/dist/workflow/index.js +1 -0
- package/dist/workflow/runner.d.ts +75 -0
- package/dist/workflow/runner.d.ts.map +1 -0
- package/dist/workflow/runner.js +2 -0
- package/dist/workflow/runner.js.map +1 -0
- package/dist/workflow/sla-monitor.d.ts +21 -0
- package/dist/workflow/sla-monitor.d.ts.map +1 -0
- package/dist/workflow/sla-monitor.js +2 -0
- package/dist/workflow/sla-monitor.js.map +1 -0
- package/dist/workflow/spec.d.ts +100 -0
- package/dist/workflow/spec.d.ts.map +1 -0
- package/dist/workflow/spec.js +2 -0
- package/dist/workflow/spec.js.map +1 -0
- package/dist/workflow/state.d.ts +36 -0
- package/dist/workflow/state.d.ts.map +1 -0
- package/dist/workflow/state.js +0 -0
- package/dist/workflow/validation.d.ts +29 -0
- package/dist/workflow/validation.d.ts.map +1 -0
- package/dist/workflow/validation.js +2 -0
- package/dist/workflow/validation.js.map +1 -0
- package/package.json +403 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"stripe";var t=class{stripe;constructor(t){this.stripe=t.stripe??new e(t.apiKey,{apiVersion:`2025-10-29.clover`})}async createCustomer(e){let t=await this.stripe.customers.create({email:e.email,name:e.name,description:e.description,metadata:e.metadata});return this.toCustomer(t)}async getCustomer(e){let t=await this.stripe.customers.retrieve(e);return t.deleted?null:this.toCustomer(t)}async createPaymentIntent(e){let t=await this.stripe.paymentIntents.create({amount:e.amount.amount,currency:e.amount.currency,customer:e.customerId,description:e.description,capture_method:e.captureMethod??`automatic`,confirmation_method:e.confirmationMethod??`automatic`,automatic_payment_methods:{enabled:!0},metadata:e.metadata,return_url:e.returnUrl,statement_descriptor:e.statementDescriptor});return this.toPaymentIntent(t)}async capturePayment(e,t){let n=await this.stripe.paymentIntents.capture(e,t?.amount?{amount_to_capture:t.amount.amount}:void 0);return this.toPaymentIntent(n)}async cancelPaymentIntent(e){let t=await this.stripe.paymentIntents.cancel(e);return this.toPaymentIntent(t)}async refundPayment(e){let t=await this.stripe.refunds.create({payment_intent:e.paymentIntentId,amount:e.amount?.amount,reason:n(e.reason),metadata:e.metadata}),r=typeof t.payment_intent==`string`?t.payment_intent:t.payment_intent?.id??``;return{id:t.id,paymentIntentId:r,amount:{amount:t.amount??0,currency:t.currency?.toUpperCase()??`USD`},status:i(t.status),reason:t.reason??void 0,metadata:this.toMetadata(t.metadata),createdAt:t.created?new Date(t.created*1e3):void 0}}async listInvoices(e){let t=e?.status?.[0],n=t&&t!==`deleted`?t:void 0;return(await this.stripe.invoices.list({customer:e?.customerId,status:n,limit:e?.limit,starting_after:e?.startingAfter})).data.map(e=>this.toInvoice(e))}async listTransactions(e){return(await this.stripe.charges.list({customer:e?.customerId,payment_intent:e?.paymentIntentId,limit:e?.limit,starting_after:e?.startingAfter})).data.map(e=>({id:e.id,paymentIntentId:typeof e.payment_intent==`string`?e.payment_intent:e.payment_intent?.id,amount:{amount:e.amount,currency:e.currency?.toUpperCase()??`USD`},type:`capture`,status:a(e.status),description:e.description??void 0,createdAt:new Date(e.created*1e3),metadata:this.mergeMetadata(this.toMetadata(e.metadata),{balanceTransaction:typeof e.balance_transaction==`string`?e.balance_transaction:void 0})}))}toCustomer(e){let t=this.toMetadata(e.metadata),n=t?.updatedAt;return{id:e.id,email:e.email??void 0,name:e.name??void 0,metadata:t,createdAt:e.created?new Date(e.created*1e3):void 0,updatedAt:n?new Date(n):void 0}}toPaymentIntent(e){let t=this.toMetadata(e.metadata);return{id:e.id,amount:this.toMoney(e.amount_received??e.amount??0,e.currency),status:r(e.status),customerId:typeof e.customer==`string`?e.customer:e.customer?.id,description:e.description??void 0,clientSecret:e.client_secret??void 0,metadata:t,createdAt:new Date(e.created*1e3),updatedAt:e.canceled_at==null?new Date(e.created*1e3):new Date(e.canceled_at*1e3)}}toInvoice(e){let t=this.toMetadata(e.metadata);return{id:e.id,number:e.number??void 0,status:e.status??`draft`,amountDue:this.toMoney(e.amount_due??0,e.currency),amountPaid:this.toMoney(e.amount_paid??0,e.currency),customerId:typeof e.customer==`string`?e.customer:e.customer?.id,dueDate:e.due_date?new Date(e.due_date*1e3):void 0,hostedInvoiceUrl:e.hosted_invoice_url??void 0,metadata:t,createdAt:e.created?new Date(e.created*1e3):void 0,updatedAt:e.status_transitions?.finalized_at?new Date(e.status_transitions.finalized_at*1e3):void 0}}toMoney(e,t){return{amount:e,currency:t?.toUpperCase()??`USD`}}toMetadata(e){if(!e)return;let t=Object.entries(e).filter(e=>typeof e[1]==`string`);if(t.length!==0)return Object.fromEntries(t)}mergeMetadata(e,t){let n=Object.entries(t).filter(e=>typeof e[1]==`string`);if(!(!e&&n.length===0))return{...e??{},...Object.fromEntries(n)}}};function n(e){if(e)return[`duplicate`,`fraudulent`,`requested_by_customer`].includes(e)?e:void 0}function r(e){switch(e){case`requires_payment_method`:return`requires_payment_method`;case`requires_confirmation`:return`requires_confirmation`;case`requires_action`:case`requires_capture`:return`requires_action`;case`processing`:return`processing`;case`succeeded`:return`succeeded`;case`canceled`:return`canceled`;default:return`requires_payment_method`}}function i(e){switch(e){case`pending`:case`succeeded`:case`failed`:case`canceled`:return e;default:return`pending`}}function a(e){switch(e){case`pending`:case`processing`:return`pending`;case`succeeded`:return`succeeded`;case`failed`:case`canceled`:return`failed`;default:return`pending`}}export{t as StripePaymentsProvider};
|
|
2
|
+
//# sourceMappingURL=stripe-payments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripe-payments.js","names":["API_VERSION: Stripe.LatestApiVersion"],"sources":["../../../../src/integrations/providers/impls/stripe-payments.ts"],"sourcesContent":["import Stripe from 'stripe';\n\nimport type {\n CapturePaymentInput,\n CreateCustomerInput,\n CreatePaymentIntentInput,\n ListInvoicesQuery,\n ListTransactionsQuery,\n Money,\n PaymentCustomer,\n PaymentIntent,\n PaymentInvoice,\n PaymentRefund,\n PaymentTransaction,\n PaymentsProvider,\n RefundPaymentInput,\n} from '../payments';\n\nexport interface StripePaymentsProviderOptions {\n apiKey: string;\n stripe?: Stripe;\n}\n\nconst API_VERSION: Stripe.LatestApiVersion = '2025-10-29.clover';\n\nexport class StripePaymentsProvider implements PaymentsProvider {\n private readonly stripe: Stripe;\n\n constructor(options: StripePaymentsProviderOptions) {\n this.stripe =\n options.stripe ??\n new Stripe(options.apiKey, {\n apiVersion: API_VERSION,\n });\n }\n\n async createCustomer(input: CreateCustomerInput): Promise<PaymentCustomer> {\n const customer = await this.stripe.customers.create({\n email: input.email,\n name: input.name,\n description: input.description,\n metadata: input.metadata,\n });\n return this.toCustomer(customer);\n }\n\n async getCustomer(customerId: string): Promise<PaymentCustomer | null> {\n const customer = await this.stripe.customers.retrieve(customerId);\n if (customer.deleted) return null;\n return this.toCustomer(customer);\n }\n\n async createPaymentIntent(\n input: CreatePaymentIntentInput\n ): Promise<PaymentIntent> {\n const intent = await this.stripe.paymentIntents.create({\n amount: input.amount.amount,\n currency: input.amount.currency,\n customer: input.customerId,\n description: input.description,\n capture_method: input.captureMethod ?? 'automatic',\n confirmation_method: input.confirmationMethod ?? 'automatic',\n automatic_payment_methods: { enabled: true },\n metadata: input.metadata,\n return_url: input.returnUrl,\n statement_descriptor: input.statementDescriptor,\n });\n return this.toPaymentIntent(intent);\n }\n\n async capturePayment(\n paymentIntentId: string,\n input?: CapturePaymentInput\n ): Promise<PaymentIntent> {\n const intent = await this.stripe.paymentIntents.capture(\n paymentIntentId,\n input?.amount ? { amount_to_capture: input.amount.amount } : undefined\n );\n return this.toPaymentIntent(intent);\n }\n\n async cancelPaymentIntent(paymentIntentId: string): Promise<PaymentIntent> {\n const intent = await this.stripe.paymentIntents.cancel(paymentIntentId);\n return this.toPaymentIntent(intent);\n }\n\n async refundPayment(input: RefundPaymentInput): Promise<PaymentRefund> {\n const refund = await this.stripe.refunds.create({\n payment_intent: input.paymentIntentId,\n amount: input.amount?.amount,\n reason: mapRefundReason(input.reason),\n metadata: input.metadata,\n });\n const paymentIntentId =\n typeof refund.payment_intent === 'string'\n ? refund.payment_intent\n : refund.payment_intent?.id ?? '';\n return {\n id: refund.id,\n paymentIntentId,\n amount: {\n amount: refund.amount ?? 0,\n currency: refund.currency?.toUpperCase() ?? 'USD',\n },\n status: mapRefundStatus(refund.status),\n reason: refund.reason ?? undefined,\n metadata: this.toMetadata(refund.metadata),\n createdAt: refund.created ? new Date(refund.created * 1000) : undefined,\n };\n }\n\n async listInvoices(query?: ListInvoicesQuery): Promise<PaymentInvoice[]> {\n const requestedStatus = query?.status?.[0];\n const stripeStatus =\n requestedStatus && requestedStatus !== 'deleted' ? requestedStatus : undefined;\n const response = await this.stripe.invoices.list({\n customer: query?.customerId,\n status: stripeStatus,\n limit: query?.limit,\n starting_after: query?.startingAfter,\n });\n return response.data.map((invoice) => this.toInvoice(invoice));\n }\n\n async listTransactions(\n query?: ListTransactionsQuery\n ): Promise<PaymentTransaction[]> {\n const response = await this.stripe.charges.list({\n customer: query?.customerId,\n payment_intent: query?.paymentIntentId,\n limit: query?.limit,\n starting_after: query?.startingAfter,\n });\n return response.data.map((charge) => ({\n id: charge.id,\n paymentIntentId:\n typeof charge.payment_intent === 'string'\n ? charge.payment_intent\n : charge.payment_intent?.id,\n amount: {\n amount: charge.amount,\n currency: charge.currency?.toUpperCase() ?? 'USD',\n },\n type: 'capture',\n status: mapChargeStatus(charge.status),\n description: charge.description ?? undefined,\n createdAt: new Date(charge.created * 1000),\n metadata: this.mergeMetadata(this.toMetadata(charge.metadata), {\n balanceTransaction: typeof charge.balance_transaction === 'string'\n ? charge.balance_transaction\n : undefined,\n }),\n }));\n }\n\n private toCustomer(customer: Stripe.Customer): PaymentCustomer {\n const metadata = this.toMetadata(customer.metadata);\n const updatedAtValue = metadata?.updatedAt;\n return {\n id: customer.id,\n email: customer.email ?? undefined,\n name: customer.name ?? undefined,\n metadata,\n createdAt: customer.created ? new Date(customer.created * 1000) : undefined,\n updatedAt: updatedAtValue ? new Date(updatedAtValue) : undefined,\n };\n }\n\n private toPaymentIntent(intent: Stripe.PaymentIntent): PaymentIntent {\n const metadata = this.toMetadata(intent.metadata);\n return {\n id: intent.id,\n amount: this.toMoney(\n intent.amount_received ?? intent.amount ?? 0,\n intent.currency\n ),\n status: mapPaymentIntentStatus(intent.status),\n customerId:\n typeof intent.customer === 'string'\n ? intent.customer\n : intent.customer?.id,\n description: intent.description ?? undefined,\n clientSecret: intent.client_secret ?? undefined,\n metadata,\n createdAt: new Date(intent.created * 1000),\n updatedAt:\n intent.canceled_at != null\n ? new Date(intent.canceled_at * 1000)\n : new Date(intent.created * 1000),\n };\n }\n\n private toInvoice(invoice: Stripe.Invoice): PaymentInvoice {\n const metadata = this.toMetadata(invoice.metadata);\n return {\n id: invoice.id,\n number: invoice.number ?? undefined,\n status: (invoice.status as PaymentInvoice['status']) ?? 'draft',\n amountDue: this.toMoney(invoice.amount_due ?? 0, invoice.currency),\n amountPaid: this.toMoney(invoice.amount_paid ?? 0, invoice.currency),\n customerId:\n typeof invoice.customer === 'string'\n ? invoice.customer\n : invoice.customer?.id,\n dueDate: invoice.due_date ? new Date(invoice.due_date * 1000) : undefined,\n hostedInvoiceUrl: invoice.hosted_invoice_url ?? undefined,\n metadata,\n createdAt: invoice.created ? new Date(invoice.created * 1000) : undefined,\n updatedAt: invoice.status_transitions?.finalized_at\n ? new Date(invoice.status_transitions.finalized_at * 1000)\n : undefined,\n };\n }\n\n private toMoney(amount: number, currency?: string | null): Money {\n return {\n amount,\n currency: currency?.toUpperCase() ?? 'USD',\n };\n }\n\n private toMetadata(\n metadata: Stripe.Metadata | Stripe.Metadata | null | undefined\n ): Record<string, string> | undefined {\n if (!metadata) return undefined;\n const entries = Object.entries(metadata).filter(\n (entry): entry is [string, string] => typeof entry[1] === 'string'\n );\n if (entries.length === 0) return undefined;\n return Object.fromEntries(entries);\n }\n\n private mergeMetadata(\n base: Record<string, string> | undefined,\n extras: Record<string, string | undefined>\n ): Record<string, string> | undefined {\n const filteredExtras = Object.entries(extras).filter(\n (entry): entry is [string, string] => typeof entry[1] === 'string'\n );\n if (!base && filteredExtras.length === 0) {\n return undefined;\n }\n return {\n ...(base ?? {}),\n ...Object.fromEntries(filteredExtras),\n };\n }\n}\n\nfunction mapRefundReason(\n reason?: string\n): Stripe.RefundCreateParams.Reason | undefined {\n if (!reason) return undefined;\n const allowed: Stripe.RefundCreateParams.Reason[] = [\n 'duplicate',\n 'fraudulent',\n 'requested_by_customer',\n ];\n return allowed.includes(reason as Stripe.RefundCreateParams.Reason)\n ? (reason as Stripe.RefundCreateParams.Reason)\n : undefined;\n}\n\nfunction mapPaymentIntentStatus(\n status: string | null | undefined\n): PaymentIntent['status'] {\n switch (status) {\n case 'requires_payment_method':\n return 'requires_payment_method';\n case 'requires_confirmation':\n return 'requires_confirmation';\n case 'requires_action':\n case 'requires_capture':\n return 'requires_action';\n case 'processing':\n return 'processing';\n case 'succeeded':\n return 'succeeded';\n case 'canceled':\n return 'canceled';\n default:\n return 'requires_payment_method';\n }\n}\n\nfunction mapRefundStatus(\n status: string | null | undefined\n): PaymentRefund['status'] {\n switch (status) {\n case 'pending':\n case 'succeeded':\n case 'failed':\n case 'canceled':\n return status;\n default:\n return 'pending';\n }\n}\n\nfunction mapChargeStatus(\n status: string | null | undefined\n): PaymentTransaction['status'] {\n switch (status) {\n case 'pending':\n case 'processing':\n return 'pending';\n case 'succeeded':\n return 'succeeded';\n case 'failed':\n case 'canceled':\n return 'failed';\n default:\n return 'pending';\n }\n}\n\n\n"],"mappings":"sBAyBA,IAAa,EAAb,KAAgE,CAC9D,OAEA,YAAY,EAAwC,CAClD,KAAK,OACH,EAAQ,QACR,IAAI,EAAO,EAAQ,OAAQ,CACzB,WAAY,oBACb,CAAC,CAGN,MAAM,eAAe,EAAsD,CACzE,IAAM,EAAW,MAAM,KAAK,OAAO,UAAU,OAAO,CAClD,MAAO,EAAM,MACb,KAAM,EAAM,KACZ,YAAa,EAAM,YACnB,SAAU,EAAM,SACjB,CAAC,CACF,OAAO,KAAK,WAAW,EAAS,CAGlC,MAAM,YAAY,EAAqD,CACrE,IAAM,EAAW,MAAM,KAAK,OAAO,UAAU,SAAS,EAAW,CAEjE,OADI,EAAS,QAAgB,KACtB,KAAK,WAAW,EAAS,CAGlC,MAAM,oBACJ,EACwB,CACxB,IAAM,EAAS,MAAM,KAAK,OAAO,eAAe,OAAO,CACrD,OAAQ,EAAM,OAAO,OACrB,SAAU,EAAM,OAAO,SACvB,SAAU,EAAM,WAChB,YAAa,EAAM,YACnB,eAAgB,EAAM,eAAiB,YACvC,oBAAqB,EAAM,oBAAsB,YACjD,0BAA2B,CAAE,QAAS,GAAM,CAC5C,SAAU,EAAM,SAChB,WAAY,EAAM,UAClB,qBAAsB,EAAM,oBAC7B,CAAC,CACF,OAAO,KAAK,gBAAgB,EAAO,CAGrC,MAAM,eACJ,EACA,EACwB,CACxB,IAAM,EAAS,MAAM,KAAK,OAAO,eAAe,QAC9C,EACA,GAAO,OAAS,CAAE,kBAAmB,EAAM,OAAO,OAAQ,CAAG,IAAA,GAC9D,CACD,OAAO,KAAK,gBAAgB,EAAO,CAGrC,MAAM,oBAAoB,EAAiD,CACzE,IAAM,EAAS,MAAM,KAAK,OAAO,eAAe,OAAO,EAAgB,CACvE,OAAO,KAAK,gBAAgB,EAAO,CAGrC,MAAM,cAAc,EAAmD,CACrE,IAAM,EAAS,MAAM,KAAK,OAAO,QAAQ,OAAO,CAC9C,eAAgB,EAAM,gBACtB,OAAQ,EAAM,QAAQ,OACtB,OAAQ,EAAgB,EAAM,OAAO,CACrC,SAAU,EAAM,SACjB,CAAC,CACI,EACJ,OAAO,EAAO,gBAAmB,SAC7B,EAAO,eACP,EAAO,gBAAgB,IAAM,GACnC,MAAO,CACL,GAAI,EAAO,GACX,kBACA,OAAQ,CACN,OAAQ,EAAO,QAAU,EACzB,SAAU,EAAO,UAAU,aAAa,EAAI,MAC7C,CACD,OAAQ,EAAgB,EAAO,OAAO,CACtC,OAAQ,EAAO,QAAU,IAAA,GACzB,SAAU,KAAK,WAAW,EAAO,SAAS,CAC1C,UAAW,EAAO,QAAU,IAAI,KAAK,EAAO,QAAU,IAAK,CAAG,IAAA,GAC/D,CAGH,MAAM,aAAa,EAAsD,CACvE,IAAM,EAAkB,GAAO,SAAS,GAClC,EACJ,GAAmB,IAAoB,UAAY,EAAkB,IAAA,GAOvE,OANiB,MAAM,KAAK,OAAO,SAAS,KAAK,CAC/C,SAAU,GAAO,WACjB,OAAQ,EACR,MAAO,GAAO,MACd,eAAgB,GAAO,cACxB,CAAC,EACc,KAAK,IAAK,GAAY,KAAK,UAAU,EAAQ,CAAC,CAGhE,MAAM,iBACJ,EAC+B,CAO/B,OANiB,MAAM,KAAK,OAAO,QAAQ,KAAK,CAC9C,SAAU,GAAO,WACjB,eAAgB,GAAO,gBACvB,MAAO,GAAO,MACd,eAAgB,GAAO,cACxB,CAAC,EACc,KAAK,IAAK,IAAY,CACpC,GAAI,EAAO,GACX,gBACE,OAAO,EAAO,gBAAmB,SAC7B,EAAO,eACP,EAAO,gBAAgB,GAC7B,OAAQ,CACN,OAAQ,EAAO,OACf,SAAU,EAAO,UAAU,aAAa,EAAI,MAC7C,CACD,KAAM,UACN,OAAQ,EAAgB,EAAO,OAAO,CACtC,YAAa,EAAO,aAAe,IAAA,GACnC,UAAW,IAAI,KAAK,EAAO,QAAU,IAAK,CAC1C,SAAU,KAAK,cAAc,KAAK,WAAW,EAAO,SAAS,CAAE,CAC7D,mBAAoB,OAAO,EAAO,qBAAwB,SACtD,EAAO,oBACP,IAAA,GACL,CAAC,CACH,EAAE,CAGL,WAAmB,EAA4C,CAC7D,IAAM,EAAW,KAAK,WAAW,EAAS,SAAS,CAC7C,EAAiB,GAAU,UACjC,MAAO,CACL,GAAI,EAAS,GACb,MAAO,EAAS,OAAS,IAAA,GACzB,KAAM,EAAS,MAAQ,IAAA,GACvB,WACA,UAAW,EAAS,QAAU,IAAI,KAAK,EAAS,QAAU,IAAK,CAAG,IAAA,GAClE,UAAW,EAAiB,IAAI,KAAK,EAAe,CAAG,IAAA,GACxD,CAGH,gBAAwB,EAA6C,CACnE,IAAM,EAAW,KAAK,WAAW,EAAO,SAAS,CACjD,MAAO,CACL,GAAI,EAAO,GACX,OAAQ,KAAK,QACX,EAAO,iBAAmB,EAAO,QAAU,EAC3C,EAAO,SACR,CACD,OAAQ,EAAuB,EAAO,OAAO,CAC7C,WACE,OAAO,EAAO,UAAa,SACvB,EAAO,SACP,EAAO,UAAU,GACvB,YAAa,EAAO,aAAe,IAAA,GACnC,aAAc,EAAO,eAAiB,IAAA,GACtC,WACA,UAAW,IAAI,KAAK,EAAO,QAAU,IAAK,CAC1C,UACE,EAAO,aAAe,KAElB,IAAI,KAAK,EAAO,QAAU,IAAK,CAD/B,IAAI,KAAK,EAAO,YAAc,IAAK,CAE1C,CAGH,UAAkB,EAAyC,CACzD,IAAM,EAAW,KAAK,WAAW,EAAQ,SAAS,CAClD,MAAO,CACL,GAAI,EAAQ,GACZ,OAAQ,EAAQ,QAAU,IAAA,GAC1B,OAAS,EAAQ,QAAuC,QACxD,UAAW,KAAK,QAAQ,EAAQ,YAAc,EAAG,EAAQ,SAAS,CAClE,WAAY,KAAK,QAAQ,EAAQ,aAAe,EAAG,EAAQ,SAAS,CACpE,WACE,OAAO,EAAQ,UAAa,SACxB,EAAQ,SACR,EAAQ,UAAU,GACxB,QAAS,EAAQ,SAAW,IAAI,KAAK,EAAQ,SAAW,IAAK,CAAG,IAAA,GAChE,iBAAkB,EAAQ,oBAAsB,IAAA,GAChD,WACA,UAAW,EAAQ,QAAU,IAAI,KAAK,EAAQ,QAAU,IAAK,CAAG,IAAA,GAChE,UAAW,EAAQ,oBAAoB,aACnC,IAAI,KAAK,EAAQ,mBAAmB,aAAe,IAAK,CACxD,IAAA,GACL,CAGH,QAAgB,EAAgB,EAAiC,CAC/D,MAAO,CACL,SACA,SAAU,GAAU,aAAa,EAAI,MACtC,CAGH,WACE,EACoC,CACpC,GAAI,CAAC,EAAU,OACf,IAAM,EAAU,OAAO,QAAQ,EAAS,CAAC,OACtC,GAAqC,OAAO,EAAM,IAAO,SAC3D,CACG,KAAQ,SAAW,EACvB,OAAO,OAAO,YAAY,EAAQ,CAGpC,cACE,EACA,EACoC,CACpC,IAAM,EAAiB,OAAO,QAAQ,EAAO,CAAC,OAC3C,GAAqC,OAAO,EAAM,IAAO,SAC3D,CACG,MAAC,GAAQ,EAAe,SAAW,GAGvC,MAAO,CACL,GAAI,GAAQ,EAAE,CACd,GAAG,OAAO,YAAY,EAAe,CACtC,GAIL,SAAS,EACP,EAC8C,CACzC,KAML,MALoD,CAClD,YACA,aACA,wBACD,CACc,SAAS,EAA2C,CAC9D,EACD,IAAA,GAGN,SAAS,EACP,EACyB,CACzB,OAAQ,EAAR,CACE,IAAK,0BACH,MAAO,0BACT,IAAK,wBACH,MAAO,wBACT,IAAK,kBACL,IAAK,mBACH,MAAO,kBACT,IAAK,aACH,MAAO,aACT,IAAK,YACH,MAAO,YACT,IAAK,WACH,MAAO,WACT,QACE,MAAO,2BAIb,SAAS,EACP,EACyB,CACzB,OAAQ,EAAR,CACE,IAAK,UACL,IAAK,YACL,IAAK,SACL,IAAK,WACH,OAAO,EACT,QACE,MAAO,WAIb,SAAS,EACP,EAC8B,CAC9B,OAAQ,EAAR,CACE,IAAK,UACL,IAAK,aACH,MAAO,UACT,IAAK,YACH,MAAO,YACT,IAAK,SACL,IAAK,WACH,MAAO,SACT,QACE,MAAO"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SendSmsInput, SmsDeliveryStatus, SmsMessage, SmsProvider } from "../sms.js";
|
|
2
|
+
import Twilio from "twilio";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/providers/impls/twilio-sms.d.ts
|
|
5
|
+
type TwilioClient = ReturnType<typeof Twilio>;
|
|
6
|
+
interface TwilioSmsProviderOptions {
|
|
7
|
+
accountSid: string;
|
|
8
|
+
authToken: string;
|
|
9
|
+
fromNumber?: string;
|
|
10
|
+
client?: TwilioClient;
|
|
11
|
+
}
|
|
12
|
+
declare class TwilioSmsProvider implements SmsProvider {
|
|
13
|
+
private readonly client;
|
|
14
|
+
private readonly fromNumber?;
|
|
15
|
+
constructor(options: TwilioSmsProviderOptions);
|
|
16
|
+
sendSms(input: SendSmsInput): Promise<SmsMessage>;
|
|
17
|
+
getDeliveryStatus(messageId: string): Promise<SmsDeliveryStatus>;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { TwilioSmsProvider, TwilioSmsProviderOptions };
|
|
21
|
+
//# sourceMappingURL=twilio-sms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twilio-sms.d.ts","names":[],"sources":["../../../../src/integrations/providers/impls/twilio-sms.ts"],"sourcesContent":[],"mappings":";;;;KASK,YAAA,GAAe,kBAAkB;UAErB,wBAAA;EAFZ,UAAA,EAAA,MAAY;EAEA,SAAA,EAAA,MAAA;EAOJ,UAAA,CAAA,EAAA,MAAA;EAIU,MAAA,CAAA,EAPZ,YAOY;;AAMuB,cAVjC,iBAAA,YAA6B,WAUI,CAAA;EAAR,iBAAA,MAAA;EAyBgB,iBAAA,UAAA;EAAR,WAAA,CAAA,OAAA,EA/BvB,wBA+BuB;EAnCJ,OAAA,CAAA,KAAA,EAUnB,YAVmB,CAAA,EAUJ,OAVI,CAUI,UAVJ,CAAA;EAAW,iBAAA,CAAA,SAAA,EAAA,MAAA,CAAA,EAmCP,OAnCO,CAmCC,iBAnCD,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"twilio";var t=class{client;fromNumber;constructor(t){this.client=t.client??e(t.accountSid,t.authToken),this.fromNumber=t.fromNumber}async sendSms(e){let t=await this.client.messages.create({to:e.to,from:e.from??this.fromNumber,body:e.body});return{id:t.sid,to:t.to??e.to,from:t.from??e.from??this.fromNumber??``,body:t.body??e.body,status:n(t.status),sentAt:t.dateCreated?new Date(t.dateCreated):void 0,deliveredAt:t.status===`delivered`&&t.dateUpdated?new Date(t.dateUpdated):void 0,price:t.price?Number(t.price):void 0,priceCurrency:t.priceUnit??void 0,errorCode:t.errorCode?String(t.errorCode):void 0,errorMessage:t.errorMessage??void 0}}async getDeliveryStatus(e){let t=await this.client.messages(e).fetch();return{status:n(t.status),errorCode:t.errorCode?String(t.errorCode):void 0,errorMessage:t.errorMessage??void 0,updatedAt:t.dateUpdated?new Date(t.dateUpdated):new Date}}};function n(e){switch(e){case`queued`:case`accepted`:case`scheduled`:return`queued`;case`sending`:case`processing`:return`sending`;case`sent`:return`sent`;case`delivered`:return`delivered`;case`undelivered`:return`undelivered`;case`failed`:case`canceled`:return`failed`;default:return`queued`}}export{t as TwilioSmsProvider};
|
|
2
|
+
//# sourceMappingURL=twilio-sms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twilio-sms.js","names":[],"sources":["../../../../src/integrations/providers/impls/twilio-sms.ts"],"sourcesContent":["import Twilio from 'twilio';\n\nimport type {\n SendSmsInput,\n SmsDeliveryStatus,\n SmsMessage,\n SmsProvider,\n} from '../sms';\n\ntype TwilioClient = ReturnType<typeof Twilio>;\n\nexport interface TwilioSmsProviderOptions {\n accountSid: string;\n authToken: string;\n fromNumber?: string;\n client?: TwilioClient;\n}\n\nexport class TwilioSmsProvider implements SmsProvider {\n private readonly client: TwilioClient;\n private readonly fromNumber?: string;\n\n constructor(options: TwilioSmsProviderOptions) {\n this.client =\n options.client ?? Twilio(options.accountSid, options.authToken);\n this.fromNumber = options.fromNumber;\n }\n\n async sendSms(input: SendSmsInput): Promise<SmsMessage> {\n const message = await this.client.messages.create({\n to: input.to,\n from: input.from ?? this.fromNumber,\n body: input.body,\n });\n\n return {\n id: message.sid,\n to: message.to ?? input.to,\n from: message.from ?? input.from ?? this.fromNumber ?? '',\n body: message.body ?? input.body,\n status: mapStatus(message.status),\n sentAt: message.dateCreated ? new Date(message.dateCreated) : undefined,\n deliveredAt:\n message.status === 'delivered' && message.dateUpdated\n ? new Date(message.dateUpdated)\n : undefined,\n price: message.price ? Number(message.price) : undefined,\n priceCurrency: message.priceUnit ?? undefined,\n errorCode: message.errorCode ? String(message.errorCode) : undefined,\n errorMessage: message.errorMessage ?? undefined,\n };\n }\n\n async getDeliveryStatus(messageId: string): Promise<SmsDeliveryStatus> {\n const message = await this.client.messages(messageId).fetch();\n return {\n status: mapStatus(message.status),\n errorCode: message.errorCode ? String(message.errorCode) : undefined,\n errorMessage: message.errorMessage ?? undefined,\n updatedAt: message.dateUpdated\n ? new Date(message.dateUpdated)\n : new Date(),\n };\n }\n}\n\nfunction mapStatus(\n status: string | null\n): SmsMessage['status'] {\n switch (status) {\n case 'queued':\n case 'accepted':\n case 'scheduled':\n return 'queued';\n case 'sending':\n case 'processing':\n return 'sending';\n case 'sent':\n return 'sent';\n case 'delivered':\n return 'delivered';\n case 'undelivered':\n return 'undelivered';\n case 'failed':\n case 'canceled':\n return 'failed';\n default:\n return 'queued';\n }\n}\n\n\n"],"mappings":"sBAkBA,IAAa,EAAb,KAAsD,CACpD,OACA,WAEA,YAAY,EAAmC,CAC7C,KAAK,OACH,EAAQ,QAAU,EAAO,EAAQ,WAAY,EAAQ,UAAU,CACjE,KAAK,WAAa,EAAQ,WAG5B,MAAM,QAAQ,EAA0C,CACtD,IAAM,EAAU,MAAM,KAAK,OAAO,SAAS,OAAO,CAChD,GAAI,EAAM,GACV,KAAM,EAAM,MAAQ,KAAK,WACzB,KAAM,EAAM,KACb,CAAC,CAEF,MAAO,CACL,GAAI,EAAQ,IACZ,GAAI,EAAQ,IAAM,EAAM,GACxB,KAAM,EAAQ,MAAQ,EAAM,MAAQ,KAAK,YAAc,GACvD,KAAM,EAAQ,MAAQ,EAAM,KAC5B,OAAQ,EAAU,EAAQ,OAAO,CACjC,OAAQ,EAAQ,YAAc,IAAI,KAAK,EAAQ,YAAY,CAAG,IAAA,GAC9D,YACE,EAAQ,SAAW,aAAe,EAAQ,YACtC,IAAI,KAAK,EAAQ,YAAY,CAC7B,IAAA,GACN,MAAO,EAAQ,MAAQ,OAAO,EAAQ,MAAM,CAAG,IAAA,GAC/C,cAAe,EAAQ,WAAa,IAAA,GACpC,UAAW,EAAQ,UAAY,OAAO,EAAQ,UAAU,CAAG,IAAA,GAC3D,aAAc,EAAQ,cAAgB,IAAA,GACvC,CAGH,MAAM,kBAAkB,EAA+C,CACrE,IAAM,EAAU,MAAM,KAAK,OAAO,SAAS,EAAU,CAAC,OAAO,CAC7D,MAAO,CACL,OAAQ,EAAU,EAAQ,OAAO,CACjC,UAAW,EAAQ,UAAY,OAAO,EAAQ,UAAU,CAAG,IAAA,GAC3D,aAAc,EAAQ,cAAgB,IAAA,GACtC,UAAW,EAAQ,YACf,IAAI,KAAK,EAAQ,YAAY,CAC7B,IAAI,KACT,GAIL,SAAS,EACP,EACsB,CACtB,OAAQ,EAAR,CACE,IAAK,SACL,IAAK,WACL,IAAK,YACH,MAAO,SACT,IAAK,UACL,IAAK,aACH,MAAO,UACT,IAAK,OACH,MAAO,OACT,IAAK,YACH,MAAO,YACT,IAAK,cACH,MAAO,cACT,IAAK,SACL,IAAK,WACH,MAAO,SACT,QACE,MAAO"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CapturePaymentInput, CreateCustomerInput, CreatePaymentIntentInput, ListInvoicesQuery, ListTransactionsQuery, Money, PaymentCustomer, PaymentIntent, PaymentIntentStatus, PaymentInvoice, PaymentRefund, PaymentTransaction, PaymentsProvider, RefundPaymentInput } from "./payments.js";
|
|
2
|
+
import { LLMChatOptions, LLMContentPart, LLMMessage, LLMProvider, LLMResponse, LLMRole, LLMStreamChunk, LLMTextPart, LLMTokenUsage, LLMToolCallPart, LLMToolDefinition, LLMToolResultPart, TokenCountResult } from "./llm.js";
|
|
3
|
+
import { EmbeddingDocument, EmbeddingProvider, EmbeddingResult, EmbeddingVector } from "./embedding.js";
|
|
4
|
+
import { VectorDeleteRequest, VectorDocument, VectorSearchQuery, VectorSearchResult, VectorStoreProvider, VectorUpsertRequest } from "./vector-store.js";
|
|
5
|
+
import { EmailAddress, EmailAttachment, EmailInboundProvider, EmailMessage, EmailMessagesSinceQuery, EmailOutboundMessage, EmailOutboundProvider, EmailOutboundResult, EmailThread, EmailThreadListQuery } from "./email.js";
|
|
6
|
+
import { CalendarAttendee, CalendarEvent, CalendarEventInput, CalendarEventUpdateInput, CalendarListEventsQuery, CalendarListEventsResult, CalendarProvider, CalendarReminder } from "./calendar.js";
|
|
7
|
+
import { SendSmsInput, SmsDeliveryStatus, SmsMessage, SmsProvider } from "./sms.js";
|
|
8
|
+
import { Voice, VoiceProvider, VoiceSynthesisInput, VoiceSynthesisResult } from "./voice.js";
|
|
9
|
+
import { DeleteObjectInput, GetObjectResult, ListObjectsQuery, ListObjectsResult, ObjectStorageProvider, PutObjectInput, SignedUrlOptions, StorageObjectBody, StorageObjectMetadata } from "./storage.js";
|
|
10
|
+
import { registerStripeIntegration, stripeIntegrationSpec } from "./stripe.js";
|
|
11
|
+
import { postmarkIntegrationSpec, registerPostmarkIntegration } from "./postmark.js";
|
|
12
|
+
import { qdrantIntegrationSpec, registerQdrantIntegration } from "./qdrant.js";
|
|
13
|
+
import { mistralIntegrationSpec, registerMistralIntegration } from "./mistral.js";
|
|
14
|
+
import { elevenLabsIntegrationSpec, registerElevenLabsIntegration } from "./elevenlabs.js";
|
|
15
|
+
import { gmailIntegrationSpec, registerGmailIntegration } from "./gmail.js";
|
|
16
|
+
import { googleCalendarIntegrationSpec, registerGoogleCalendarIntegration } from "./google-calendar.js";
|
|
17
|
+
import { registerTwilioSmsIntegration, twilioSmsIntegrationSpec } from "./twilio-sms.js";
|
|
18
|
+
import { gcsStorageIntegrationSpec, registerGcsStorageIntegration } from "./gcs-storage.js";
|
|
19
|
+
import { powensIntegrationSpec, registerPowensIntegration } from "./powens.js";
|
|
20
|
+
import { MistralLLMProvider, MistralLLMProviderOptions } from "./impls/mistral-llm.js";
|
|
21
|
+
import { MistralEmbeddingProvider, MistralEmbeddingProviderOptions } from "./impls/mistral-embedding.js";
|
|
22
|
+
import { QdrantVectorProvider, QdrantVectorProviderOptions } from "./impls/qdrant-vector.js";
|
|
23
|
+
import { GmailInboundProvider, GmailInboundProviderOptions } from "./impls/gmail-inbound.js";
|
|
24
|
+
import { GmailOutboundProvider, GmailOutboundProviderOptions } from "./impls/gmail-outbound.js";
|
|
25
|
+
import { GoogleCalendarProvider, GoogleCalendarProviderOptions } from "./impls/google-calendar.js";
|
|
26
|
+
import { ElevenLabsVoiceProvider, ElevenLabsVoiceProviderOptions } from "./impls/elevenlabs-voice.js";
|
|
27
|
+
import { GoogleCloudStorageProvider, GoogleCloudStorageProviderOptions } from "./impls/gcs-storage.js";
|
|
28
|
+
import { StripePaymentsProvider, StripePaymentsProviderOptions } from "./impls/stripe-payments.js";
|
|
29
|
+
import { PostmarkEmailProvider, PostmarkEmailProviderOptions } from "./impls/postmark-email.js";
|
|
30
|
+
import { TwilioSmsProvider, TwilioSmsProviderOptions } from "./impls/twilio-sms.js";
|
|
31
|
+
import { PowensAccount, PowensAccountListResponse, PowensBalance, PowensClient, PowensClientError, PowensClientOptions, PowensConnectionStatusResponse, PowensEnvironment, PowensTransaction, PowensTransactionListResponse } from "./impls/powens-client.js";
|
|
32
|
+
import { OpenBankingAccountBalance, OpenBankingAccountDetails, OpenBankingAccountOwnership, OpenBankingAccountSummary, OpenBankingBalanceType, OpenBankingConnectionStatus, OpenBankingGetAccountDetailsParams, OpenBankingGetBalancesParams, OpenBankingGetConnectionStatusParams, OpenBankingListAccountsParams, OpenBankingListAccountsResult, OpenBankingListTransactionsParams, OpenBankingListTransactionsResult, OpenBankingProvider, OpenBankingTransaction } from "./openbanking.js";
|
|
33
|
+
import { PowensOpenBankingProvider, PowensOpenBankingProviderOptions } from "./impls/powens-openbanking.js";
|
|
34
|
+
import { IntegrationProviderFactory } from "./impls/provider-factory.js";
|
|
35
|
+
import "./impls/index.js";
|
|
36
|
+
export { CalendarAttendee, CalendarEvent, CalendarEventInput, CalendarEventUpdateInput, CalendarListEventsQuery, CalendarListEventsResult, CalendarProvider, CalendarReminder, CapturePaymentInput, CreateCustomerInput, CreatePaymentIntentInput, DeleteObjectInput, ElevenLabsVoiceProvider, ElevenLabsVoiceProviderOptions, EmailAddress, EmailAttachment, EmailInboundProvider, EmailMessage, EmailMessagesSinceQuery, EmailOutboundMessage, EmailOutboundProvider, EmailOutboundResult, EmailThread, EmailThreadListQuery, EmbeddingDocument, EmbeddingProvider, EmbeddingResult, EmbeddingVector, GetObjectResult, GmailInboundProvider, GmailInboundProviderOptions, GmailOutboundProvider, GmailOutboundProviderOptions, GoogleCalendarProvider, GoogleCalendarProviderOptions, GoogleCloudStorageProvider, GoogleCloudStorageProviderOptions, IntegrationProviderFactory, LLMChatOptions, LLMContentPart, LLMMessage, LLMProvider, LLMResponse, LLMRole, LLMStreamChunk, LLMTextPart, LLMTokenUsage, LLMToolCallPart, LLMToolDefinition, LLMToolResultPart, ListInvoicesQuery, ListObjectsQuery, ListObjectsResult, ListTransactionsQuery, MistralEmbeddingProvider, MistralEmbeddingProviderOptions, MistralLLMProvider, MistralLLMProviderOptions, Money, ObjectStorageProvider, OpenBankingAccountBalance, OpenBankingAccountDetails, OpenBankingAccountOwnership, OpenBankingAccountSummary, OpenBankingBalanceType, OpenBankingConnectionStatus, OpenBankingGetAccountDetailsParams, OpenBankingGetBalancesParams, OpenBankingGetConnectionStatusParams, OpenBankingListAccountsParams, OpenBankingListAccountsResult, OpenBankingListTransactionsParams, OpenBankingListTransactionsResult, OpenBankingProvider, OpenBankingTransaction, PaymentCustomer, PaymentIntent, PaymentIntentStatus, PaymentInvoice, PaymentRefund, PaymentTransaction, PaymentsProvider, PostmarkEmailProvider, PostmarkEmailProviderOptions, PowensAccount, PowensAccountListResponse, PowensBalance, PowensClient, PowensClientError, PowensClientOptions, PowensConnectionStatusResponse, PowensEnvironment, PowensOpenBankingProvider, PowensOpenBankingProviderOptions, PowensTransaction, PowensTransactionListResponse, PutObjectInput, QdrantVectorProvider, QdrantVectorProviderOptions, RefundPaymentInput, SendSmsInput, SignedUrlOptions, SmsDeliveryStatus, SmsMessage, SmsProvider, StorageObjectBody, StorageObjectMetadata, StripePaymentsProvider, StripePaymentsProviderOptions, TokenCountResult, TwilioSmsProvider, TwilioSmsProviderOptions, VectorDeleteRequest, VectorDocument, VectorSearchQuery, VectorSearchResult, VectorStoreProvider, VectorUpsertRequest, Voice, VoiceProvider, VoiceSynthesisInput, VoiceSynthesisResult, elevenLabsIntegrationSpec, gcsStorageIntegrationSpec, gmailIntegrationSpec, googleCalendarIntegrationSpec, mistralIntegrationSpec, postmarkIntegrationSpec, powensIntegrationSpec, qdrantIntegrationSpec, registerElevenLabsIntegration, registerGcsStorageIntegration, registerGmailIntegration, registerGoogleCalendarIntegration, registerMistralIntegration, registerPostmarkIntegration, registerPowensIntegration, registerQdrantIntegration, registerStripeIntegration, registerTwilioSmsIntegration, stripeIntegrationSpec, twilioSmsIntegrationSpec };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{registerStripeIntegration as e,stripeIntegrationSpec as t}from"./stripe.js";import{postmarkIntegrationSpec as n,registerPostmarkIntegration as r}from"./postmark.js";import{qdrantIntegrationSpec as i,registerQdrantIntegration as a}from"./qdrant.js";import{mistralIntegrationSpec as o,registerMistralIntegration as s}from"./mistral.js";import{elevenLabsIntegrationSpec as c,registerElevenLabsIntegration as l}from"./elevenlabs.js";import{gmailIntegrationSpec as u,registerGmailIntegration as d}from"./gmail.js";import{googleCalendarIntegrationSpec as f,registerGoogleCalendarIntegration as p}from"./google-calendar.js";import{registerTwilioSmsIntegration as m,twilioSmsIntegrationSpec as h}from"./twilio-sms.js";import{gcsStorageIntegrationSpec as g,registerGcsStorageIntegration as _}from"./gcs-storage.js";import{powensIntegrationSpec as v,registerPowensIntegration as y}from"./powens.js";import{MistralLLMProvider as b}from"./impls/mistral-llm.js";import{MistralEmbeddingProvider as x}from"./impls/mistral-embedding.js";import{QdrantVectorProvider as S}from"./impls/qdrant-vector.js";import{GmailInboundProvider as C}from"./impls/gmail-inbound.js";import{GmailOutboundProvider as w}from"./impls/gmail-outbound.js";import{GoogleCalendarProvider as T}from"./impls/google-calendar.js";import{ElevenLabsVoiceProvider as E}from"./impls/elevenlabs-voice.js";import{GoogleCloudStorageProvider as D}from"./impls/gcs-storage.js";import{StripePaymentsProvider as O}from"./impls/stripe-payments.js";import{PostmarkEmailProvider as k}from"./impls/postmark-email.js";import{TwilioSmsProvider as A}from"./impls/twilio-sms.js";import{PowensClient as j,PowensClientError as M}from"./impls/powens-client.js";import{PowensOpenBankingProvider as N}from"./impls/powens-openbanking.js";import{IntegrationProviderFactory as P}from"./impls/provider-factory.js";import"./impls/index.js";export{E as ElevenLabsVoiceProvider,C as GmailInboundProvider,w as GmailOutboundProvider,T as GoogleCalendarProvider,D as GoogleCloudStorageProvider,P as IntegrationProviderFactory,x as MistralEmbeddingProvider,b as MistralLLMProvider,k as PostmarkEmailProvider,j as PowensClient,M as PowensClientError,N as PowensOpenBankingProvider,S as QdrantVectorProvider,O as StripePaymentsProvider,A as TwilioSmsProvider,c as elevenLabsIntegrationSpec,g as gcsStorageIntegrationSpec,u as gmailIntegrationSpec,f as googleCalendarIntegrationSpec,o as mistralIntegrationSpec,n as postmarkIntegrationSpec,v as powensIntegrationSpec,i as qdrantIntegrationSpec,l as registerElevenLabsIntegration,_ as registerGcsStorageIntegration,d as registerGmailIntegration,p as registerGoogleCalendarIntegration,s as registerMistralIntegration,r as registerPostmarkIntegration,y as registerPowensIntegration,a as registerQdrantIntegration,e as registerStripeIntegration,m as registerTwilioSmsIntegration,t as stripeIntegrationSpec,h as twilioSmsIntegrationSpec};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
//#region src/integrations/providers/llm.d.ts
|
|
2
|
+
type LLMRole = 'system' | 'user' | 'assistant' | 'tool';
|
|
3
|
+
interface LLMTextPart {
|
|
4
|
+
type: 'text';
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
interface LLMToolCallPart {
|
|
8
|
+
type: 'tool-call';
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
arguments: string;
|
|
12
|
+
}
|
|
13
|
+
interface LLMToolResultPart {
|
|
14
|
+
type: 'tool-result';
|
|
15
|
+
toolCallId: string;
|
|
16
|
+
output: string;
|
|
17
|
+
}
|
|
18
|
+
type LLMContentPart = LLMTextPart | LLMToolCallPart | LLMToolResultPart;
|
|
19
|
+
interface LLMMessage {
|
|
20
|
+
role: LLMRole;
|
|
21
|
+
content: LLMContentPart[];
|
|
22
|
+
name?: string;
|
|
23
|
+
toolCallId?: string;
|
|
24
|
+
metadata?: Record<string, string>;
|
|
25
|
+
}
|
|
26
|
+
interface LLMToolDefinition {
|
|
27
|
+
name: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
inputSchema: unknown;
|
|
30
|
+
}
|
|
31
|
+
interface LLMTokenUsage {
|
|
32
|
+
promptTokens: number;
|
|
33
|
+
completionTokens: number;
|
|
34
|
+
totalTokens: number;
|
|
35
|
+
}
|
|
36
|
+
interface LLMChatOptions {
|
|
37
|
+
model?: string;
|
|
38
|
+
temperature?: number;
|
|
39
|
+
topP?: number;
|
|
40
|
+
maxOutputTokens?: number;
|
|
41
|
+
stopSequences?: string[];
|
|
42
|
+
responseFormat?: 'text' | 'json';
|
|
43
|
+
tools?: LLMToolDefinition[];
|
|
44
|
+
userId?: string;
|
|
45
|
+
metadata?: Record<string, string>;
|
|
46
|
+
timeoutMs?: number;
|
|
47
|
+
signal?: AbortSignal;
|
|
48
|
+
}
|
|
49
|
+
interface LLMResponse {
|
|
50
|
+
message: LLMMessage;
|
|
51
|
+
usage?: LLMTokenUsage;
|
|
52
|
+
finishReason?: 'stop' | 'length' | 'tool_call' | 'content_filter';
|
|
53
|
+
raw?: unknown;
|
|
54
|
+
}
|
|
55
|
+
type LLMStreamChunk = {
|
|
56
|
+
type: 'message_delta';
|
|
57
|
+
delta: LLMContentPart;
|
|
58
|
+
index: number;
|
|
59
|
+
} | {
|
|
60
|
+
type: 'tool_call';
|
|
61
|
+
call: LLMToolCallPart;
|
|
62
|
+
index: number;
|
|
63
|
+
} | {
|
|
64
|
+
type: 'usage';
|
|
65
|
+
usage: LLMTokenUsage;
|
|
66
|
+
} | {
|
|
67
|
+
type: 'error';
|
|
68
|
+
error: Error;
|
|
69
|
+
} | {
|
|
70
|
+
type: 'end';
|
|
71
|
+
response: LLMResponse;
|
|
72
|
+
};
|
|
73
|
+
interface TokenCountResult {
|
|
74
|
+
promptTokens: number;
|
|
75
|
+
}
|
|
76
|
+
interface LLMProvider {
|
|
77
|
+
chat(messages: LLMMessage[], options?: LLMChatOptions): Promise<LLMResponse>;
|
|
78
|
+
stream(messages: LLMMessage[], options?: LLMChatOptions): AsyncIterable<LLMStreamChunk>;
|
|
79
|
+
countTokens(messages: LLMMessage[]): Promise<TokenCountResult>;
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
export { LLMChatOptions, LLMContentPart, LLMMessage, LLMProvider, LLMResponse, LLMRole, LLMStreamChunk, LLMTextPart, LLMTokenUsage, LLMToolCallPart, LLMToolDefinition, LLMToolResultPart, TokenCountResult };
|
|
83
|
+
//# sourceMappingURL=llm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llm.d.ts","names":[],"sources":["../../../src/integrations/providers/llm.ts"],"sourcesContent":[],"mappings":";KAAY,OAAA;AAAA,UAEK,WAAA,CAFE;EAEF,IAAA,EAAA,MAAA;EAKA,IAAA,EAAA,MAAA;AAOjB;AAMY,UAbK,eAAA,CAaS;EACtB,IAAA,EAAA,WAAA;EACA,EAAA,EAAA,MAAA;EACA,IAAA,EAAA,MAAA;EAAiB,SAAA,EAAA,MAAA;AAErB;AACQ,UAZS,iBAAA,CAYT;EACG,IAAA,EAAA,aAAA;EAGE,UAAA,EAAA,MAAA;EAAM,MAAA,EAAA,MAAA;AAGnB;AAMiB,KAnBL,cAAA,GACR,WAkB0B,GAjB1B,eAiB0B,GAhB1B,iBAgB0B;AAMb,UApBA,UAAA,CAoBc;EAOrB,IAAA,EA1BF,OA0BE;EAEG,OAAA,EA3BF,cA2BE,EAAA;EAEF,IAAA,CAAA,EAAA,MAAA;EAAW,UAAA,CAAA,EAAA,MAAA;EAGL,QAAA,CAAA,EA7BJ,MA6Be,CAAA,MAAA,EAAA,MACjB,CAAA;AAMX;AAGa,UApCI,iBAAA,CAoCJ;EAKD,IAAA,EAAA,MAAA;EAKC,WAAA,CAAA,EAAA,MAAA;EAIA,WAAA,EAAA,OAAA;;AAIc,UAhDV,aAAA,CAgDU;EAGV,YAAA,EAAA,MAAgB;EAIhB,gBAAW,EAAA,MAAA;EAEd,WAAA,EAAA,MAAA;;AAED,UArDI,cAAA,CAqDJ;EAAR,KAAA,CAAA,EAAA,MAAA;EAES,WAAA,CAAA,EAAA,MAAA;EACA,IAAA,CAAA,EAAA,MAAA;EACK,eAAA,CAAA,EAAA,MAAA;EAAd,aAAA,CAAA,EAAA,MAAA,EAAA;EACmB,cAAA,CAAA,EAAA,MAAA,GAAA,MAAA;EAAuB,KAAA,CAAA,EAnDrC,iBAmDqC,EAAA;EAAR,MAAA,CAAA,EAAA,MAAA;EAAO,QAAA,CAAA,EAjDjC,MAiDiC,CAAA,MAAA,EAAA,MAAA,CAAA;;WA/CnC;;UAGM,WAAA;WACN;UACD;;;;KAKE,cAAA;;SAGC;;;;QAKD;;;;SAKC;;;SAIA;;;YAIG;;UAGC,gBAAA;;;UAIA,WAAA;iBAEH,wBACA,iBACT,QAAQ;mBAEC,wBACA,iBACT,cAAc;wBACK,eAAe,QAAQ"}
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IntegrationSpec, IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/providers/mistral.d.ts
|
|
4
|
+
declare const mistralIntegrationSpec: IntegrationSpec;
|
|
5
|
+
declare function registerMistralIntegration(registry: IntegrationSpecRegistry): IntegrationSpecRegistry;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { mistralIntegrationSpec, registerMistralIntegration };
|
|
8
|
+
//# sourceMappingURL=mistral.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mistral.d.ts","names":[],"sources":["../../../src/integrations/providers/mistral.ts"],"sourcesContent":[],"mappings":";;;cAGa,wBAAwB;iBAuErB,0BAAA,WACJ,0BACT"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{StabilityEnum as e}from"../../ownership.js";const t={meta:{key:`ai-llm.mistral`,version:1,category:`ai-llm`,displayName:`Mistral AI`,title:`Mistral Large Language Model`,description:`Mistral integration providing chat completions and embedding generation.`,domain:`ai`,owners:[`platform.ai`],tags:[`ai`,`llm`,`embeddings`],stability:e.Experimental},supportedModes:[`managed`,`byok`],capabilities:{provides:[{key:`ai.chat`,version:1},{key:`ai.embeddings`,version:1}]},configSchema:{schema:{type:`object`,properties:{model:{type:`string`,description:`Default chat completion model (e.g., mistral-large-latest).`},embeddingModel:{type:`string`,description:`Embedding model identifier.`}}},example:{model:`mistral-large-latest`,embeddingModel:`mistral-embed`}},secretSchema:{schema:{type:`object`,required:[`apiKey`],properties:{apiKey:{type:`string`,description:`Mistral API key with access to chat and embeddings endpoints.`}}},example:{apiKey:`mistral-***`}},healthCheck:{method:`custom`,timeoutMs:5e3},docsUrl:`https://docs.mistral.ai/platform/endpoints`,constraints:{rateLimit:{rpm:600}},byokSetup:{setupInstructions:`Generate an API key within the Mistral console and ensure the selected models are enabled for the account.`}};function n(e){return e.register(t)}export{t as mistralIntegrationSpec,n as registerMistralIntegration};
|
|
2
|
+
//# sourceMappingURL=mistral.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mistral.js","names":["mistralIntegrationSpec: IntegrationSpec"],"sources":["../../../src/integrations/providers/mistral.ts"],"sourcesContent":["import { StabilityEnum } from '../../ownership';\nimport type { IntegrationSpec, IntegrationSpecRegistry } from '../spec';\n\nexport const mistralIntegrationSpec: IntegrationSpec = {\n meta: {\n key: 'ai-llm.mistral',\n version: 1,\n category: 'ai-llm',\n displayName: 'Mistral AI',\n title: 'Mistral Large Language Model',\n description:\n 'Mistral integration providing chat completions and embedding generation.',\n domain: 'ai',\n owners: ['platform.ai'],\n tags: ['ai', 'llm', 'embeddings'],\n stability: StabilityEnum.Experimental,\n },\n supportedModes: ['managed', 'byok'],\n capabilities: {\n provides: [\n { key: 'ai.chat', version: 1 },\n { key: 'ai.embeddings', version: 1 },\n ],\n },\n configSchema: {\n schema: {\n type: 'object',\n properties: {\n model: {\n type: 'string',\n description: 'Default chat completion model (e.g., mistral-large-latest).',\n },\n embeddingModel: {\n type: 'string',\n description: 'Embedding model identifier.',\n },\n },\n },\n example: {\n model: 'mistral-large-latest',\n embeddingModel: 'mistral-embed',\n },\n },\n secretSchema: {\n schema: {\n type: 'object',\n required: ['apiKey'],\n properties: {\n apiKey: {\n type: 'string',\n description: 'Mistral API key with access to chat and embeddings endpoints.',\n },\n },\n },\n example: {\n apiKey: 'mistral-***',\n },\n },\n healthCheck: {\n method: 'custom',\n timeoutMs: 5000,\n },\n docsUrl: 'https://docs.mistral.ai/platform/endpoints',\n constraints: {\n rateLimit: {\n rpm: 600,\n },\n },\n byokSetup: {\n setupInstructions:\n 'Generate an API key within the Mistral console and ensure the selected models are enabled for the account.',\n },\n};\n\nexport function registerMistralIntegration(\n registry: IntegrationSpecRegistry\n): IntegrationSpecRegistry {\n return registry.register(mistralIntegrationSpec);\n}\n\n\n"],"mappings":"mDAGA,MAAaA,EAA0C,CACrD,KAAM,CACJ,IAAK,iBACL,QAAS,EACT,SAAU,SACV,YAAa,aACb,MAAO,+BACP,YACE,2EACF,OAAQ,KACR,OAAQ,CAAC,cAAc,CACvB,KAAM,CAAC,KAAM,MAAO,aAAa,CACjC,UAAW,EAAc,aAC1B,CACD,eAAgB,CAAC,UAAW,OAAO,CACnC,aAAc,CACZ,SAAU,CACR,CAAE,IAAK,UAAW,QAAS,EAAG,CAC9B,CAAE,IAAK,gBAAiB,QAAS,EAAG,CACrC,CACF,CACD,aAAc,CACZ,OAAQ,CACN,KAAM,SACN,WAAY,CACV,MAAO,CACL,KAAM,SACN,YAAa,8DACd,CACD,eAAgB,CACd,KAAM,SACN,YAAa,8BACd,CACF,CACF,CACD,QAAS,CACP,MAAO,uBACP,eAAgB,gBACjB,CACF,CACD,aAAc,CACZ,OAAQ,CACN,KAAM,SACN,SAAU,CAAC,SAAS,CACpB,WAAY,CACV,OAAQ,CACN,KAAM,SACN,YAAa,gEACd,CACF,CACF,CACD,QAAS,CACP,OAAQ,cACT,CACF,CACD,YAAa,CACX,OAAQ,SACR,UAAW,IACZ,CACD,QAAS,6CACT,YAAa,CACX,UAAW,CACT,IAAK,IACN,CACF,CACD,UAAW,CACT,kBACE,6GACH,CACF,CAED,SAAgB,EACd,EACyB,CACzB,OAAO,EAAS,SAAS,EAAuB"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
//#region src/integrations/providers/openbanking.d.ts
|
|
2
|
+
type OpenBankingAccountOwnership = 'individual' | 'joint' | 'business' | 'unknown';
|
|
3
|
+
interface OpenBankingAccountSummary {
|
|
4
|
+
id: string;
|
|
5
|
+
externalId: string;
|
|
6
|
+
tenantId: string;
|
|
7
|
+
connectionId: string;
|
|
8
|
+
userId?: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
institutionId: string;
|
|
11
|
+
institutionName: string;
|
|
12
|
+
institutionLogoUrl?: string;
|
|
13
|
+
accountType: string;
|
|
14
|
+
iban?: string;
|
|
15
|
+
bic?: string;
|
|
16
|
+
currency: string;
|
|
17
|
+
accountNumberMasked?: string;
|
|
18
|
+
ownership?: OpenBankingAccountOwnership;
|
|
19
|
+
status?: 'active' | 'inactive' | 'closed' | 'suspended';
|
|
20
|
+
lastSyncedAt?: string;
|
|
21
|
+
metadata?: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
interface OpenBankingAccountDetails extends OpenBankingAccountSummary {
|
|
24
|
+
productCode?: string;
|
|
25
|
+
openedAt?: string;
|
|
26
|
+
closedAt?: string;
|
|
27
|
+
availableBalance?: number;
|
|
28
|
+
currentBalance?: number;
|
|
29
|
+
creditLimit?: number;
|
|
30
|
+
customFields?: Record<string, unknown>;
|
|
31
|
+
}
|
|
32
|
+
interface OpenBankingTransaction {
|
|
33
|
+
id: string;
|
|
34
|
+
externalId: string;
|
|
35
|
+
tenantId: string;
|
|
36
|
+
accountId: string;
|
|
37
|
+
connectionId: string;
|
|
38
|
+
amount: number;
|
|
39
|
+
currency: string;
|
|
40
|
+
direction: 'debit' | 'credit';
|
|
41
|
+
description?: string;
|
|
42
|
+
bookingDate?: string;
|
|
43
|
+
valueDate?: string;
|
|
44
|
+
postedAt?: string;
|
|
45
|
+
category?: string;
|
|
46
|
+
rawCategory?: string;
|
|
47
|
+
merchantName?: string;
|
|
48
|
+
merchantCategoryCode?: string;
|
|
49
|
+
counterpartyName?: string;
|
|
50
|
+
counterpartyAccount?: string;
|
|
51
|
+
reference?: string;
|
|
52
|
+
status?: 'pending' | 'booked' | 'cancelled';
|
|
53
|
+
metadata?: Record<string, unknown>;
|
|
54
|
+
}
|
|
55
|
+
type OpenBankingBalanceType = 'current' | 'available' | 'authorised' | 'uncleared' | 'credit' | (string & {});
|
|
56
|
+
interface OpenBankingAccountBalance {
|
|
57
|
+
accountId: string;
|
|
58
|
+
connectionId: string;
|
|
59
|
+
tenantId: string;
|
|
60
|
+
type: OpenBankingBalanceType;
|
|
61
|
+
currency: string;
|
|
62
|
+
amount: number;
|
|
63
|
+
lastUpdatedAt: string;
|
|
64
|
+
metadata?: Record<string, unknown>;
|
|
65
|
+
}
|
|
66
|
+
interface OpenBankingConnectionStatus {
|
|
67
|
+
connectionId: string;
|
|
68
|
+
tenantId: string;
|
|
69
|
+
status: 'healthy' | 'degraded' | 'error' | 'disconnected';
|
|
70
|
+
lastCheckedAt?: string;
|
|
71
|
+
errorCode?: string;
|
|
72
|
+
errorMessage?: string;
|
|
73
|
+
details?: Record<string, unknown>;
|
|
74
|
+
}
|
|
75
|
+
interface OpenBankingListAccountsParams {
|
|
76
|
+
tenantId: string;
|
|
77
|
+
connectionId: string;
|
|
78
|
+
userId?: string;
|
|
79
|
+
cursor?: string;
|
|
80
|
+
pageSize?: number;
|
|
81
|
+
includeBalances?: boolean;
|
|
82
|
+
institutionId?: string;
|
|
83
|
+
}
|
|
84
|
+
interface OpenBankingListAccountsResult {
|
|
85
|
+
accounts: OpenBankingAccountSummary[];
|
|
86
|
+
nextCursor?: string;
|
|
87
|
+
hasMore?: boolean;
|
|
88
|
+
}
|
|
89
|
+
interface OpenBankingGetAccountDetailsParams {
|
|
90
|
+
tenantId: string;
|
|
91
|
+
accountId: string;
|
|
92
|
+
connectionId: string;
|
|
93
|
+
includeBalances?: boolean;
|
|
94
|
+
}
|
|
95
|
+
interface OpenBankingListTransactionsParams {
|
|
96
|
+
tenantId: string;
|
|
97
|
+
accountId: string;
|
|
98
|
+
connectionId: string;
|
|
99
|
+
from?: string;
|
|
100
|
+
to?: string;
|
|
101
|
+
cursor?: string;
|
|
102
|
+
pageSize?: number;
|
|
103
|
+
includePending?: boolean;
|
|
104
|
+
}
|
|
105
|
+
interface OpenBankingListTransactionsResult {
|
|
106
|
+
transactions: OpenBankingTransaction[];
|
|
107
|
+
nextCursor?: string;
|
|
108
|
+
hasMore?: boolean;
|
|
109
|
+
}
|
|
110
|
+
interface OpenBankingGetBalancesParams {
|
|
111
|
+
tenantId: string;
|
|
112
|
+
accountId: string;
|
|
113
|
+
connectionId: string;
|
|
114
|
+
balanceTypes?: OpenBankingBalanceType[];
|
|
115
|
+
}
|
|
116
|
+
interface OpenBankingGetConnectionStatusParams {
|
|
117
|
+
tenantId: string;
|
|
118
|
+
connectionId: string;
|
|
119
|
+
}
|
|
120
|
+
interface OpenBankingProvider {
|
|
121
|
+
listAccounts(params: OpenBankingListAccountsParams): Promise<OpenBankingListAccountsResult>;
|
|
122
|
+
getAccountDetails(params: OpenBankingGetAccountDetailsParams): Promise<OpenBankingAccountDetails>;
|
|
123
|
+
listTransactions(params: OpenBankingListTransactionsParams): Promise<OpenBankingListTransactionsResult>;
|
|
124
|
+
getBalances(params: OpenBankingGetBalancesParams): Promise<OpenBankingAccountBalance[]>;
|
|
125
|
+
getConnectionStatus(params: OpenBankingGetConnectionStatusParams): Promise<OpenBankingConnectionStatus>;
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
export { OpenBankingAccountBalance, OpenBankingAccountDetails, OpenBankingAccountOwnership, OpenBankingAccountSummary, OpenBankingBalanceType, OpenBankingConnectionStatus, OpenBankingGetAccountDetailsParams, OpenBankingGetBalancesParams, OpenBankingGetConnectionStatusParams, OpenBankingListAccountsParams, OpenBankingListAccountsResult, OpenBankingListTransactionsParams, OpenBankingListTransactionsResult, OpenBankingProvider, OpenBankingTransaction };
|
|
129
|
+
//# sourceMappingURL=openbanking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openbanking.d.ts","names":[],"sources":["../../../src/integrations/providers/openbanking.ts"],"sourcesContent":[],"mappings":";KAAY,2BAAA;AAAA,UAMK,yBAAA,CANsB;EAMtB,EAAA,EAAA,MAAA;EAqBA,UAAA,EAAA,MAAA;EAUA,QAAA,EAAA,MAAA;EAwBL,YAAA,EAAA,MAAA;EAQK,MAAA,CAAA,EAAA,MAAA;EAWA,WAAA,EAAA,MAAA;EAUA,aAAA,EAAA,MAAA;EAUA,eAAA,EAAA,MAAA;EAMA,kBAAA,CAAA,EAAA,MAAA;EAOA,WAAA,EAAA,MAAA;EAWA,IAAA,CAAA,EAAA,MAAA;EAMA,GAAA,CAAA,EAAA,MAAA;EAOA,QAAA,EAAA,MAAA;EAKA,mBAAA,CAAA,EAAmB,MAAA;EAExB,SAAA,CAAA,EA3HE,2BA2HF;EACC,MAAA,CAAA,EAAA,QAAA,GAAA,UAAA,GAAA,QAAA,GAAA,WAAA;EAAR,YAAA,CAAA,EAAA,MAAA;EAEO,QAAA,CAAA,EA3HC,MA2HD,CAAA,MAAA,EAAA,OAAA,CAAA;;AACP,UAzHY,yBAAA,SAAkC,yBAyH9C,CAAA;EAEO,WAAA,CAAA,EAAA,MAAA;EACC,QAAA,CAAA,EAAA,MAAA;EAAR,QAAA,CAAA,EAAA,MAAA;EAEO,gBAAA,CAAA,EAAA,MAAA;EACC,cAAA,CAAA,EAAA,MAAA;EAAR,WAAA,CAAA,EAAA,MAAA;EAEO,YAAA,CAAA,EA1HK,MA0HL,CAAA,MAAA,EAAA,OAAA,CAAA;;AACP,UAxHY,sBAAA,CAwHZ;EAAO,EAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;aAnGC;;KAGD,sBAAA;UAQK,yBAAA;;;;QAIT;;;;aAIK;;UAGI,2BAAA;;;;;;;YAOL;;UAGK,6BAAA;;;;;;;;;UAUA,6BAAA;YACL;;;;UAKK,kCAAA;;;;;;UAOA,iCAAA;;;;;;;;;;UAWA,iCAAA;gBACD;;;;UAKC,4BAAA;;;;iBAIA;;UAGA,oCAAA;;;;UAKA,mBAAA;uBAEL,gCACP,QAAQ;4BAED,qCACP,QAAQ;2BAED,oCACP,QAAQ;sBAED,+BACP,QAAQ;8BAED,uCACP,QAAQ"}
|
|
File without changes
|
|
@@ -0,0 +1,110 @@
|
|
|
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 };
|
|
110
|
+
//# sourceMappingURL=payments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments.d.ts","names":[],"sources":["../../../src/integrations/providers/payments.ts"],"sourcesContent":[],"mappings":";UAAiB,KAAA;EAAA;EAML,MAAA,EAAA,MAAA;EAQK,QAAA,EAAA,MAAA;;AAKH,KAbF,mBAAA,GAaE,yBAAA,GAAA,uBAAA,GAAA,iBAAA,GAAA,YAAA,GAAA,WAAA,GAAA,UAAA;AACA,UANG,eAAA,CAMH;EAAI,EAAA,EAAA,MAAA;EAGD,KAAA,CAAA,EAAA,MAAA;EAOA,IAAA,CAAA,EAAA,MAAA;EAEP,QAAA,CAAA,EAdG,MAcH,CAAA,MAAA,EAAA,MAAA,CAAA;EACA,SAAA,CAAA,EAdI,IAcJ;EAIG,SAAA,CAAA,EAjBC,IAiBD;;AAEC,UAhBG,mBAAA,CAgBH;EAAI,KAAA,CAAA,EAAA,MAAA;EAGD,IAAA,CAAA,EAAA,MAAA;EAWA,WAAA,CAAA,EAAA,MAAA;EAMA,QAAA,CAAA,EAhCJ,MAgCiB,CAAA,MAAA,EAAA,MAAA,CAAA;;AAMjB,UAnCI,aAAA,CAmCJ;EACC,EAAA,EAAA,MAAA;EAAI,MAAA,EAlCR,KAkCQ;EAGD,MAAA,EApCP,mBAoCyB;EAOlB,UAAA,CAAA,EAAA,MAAc;EAUlB,YAAA,CAAA,EAAA,MAAA;EACE,WAAA,CAAA,EAAA,MAAA;EAEH,QAAA,CAAA,EApDC,MAoDD,CAAA,MAAA,EAAA,MAAA,CAAA;EAEC,SAAA,CAAA,EArDC,IAqDD;EACC,SAAA,CAAA,EArDA,IAqDA;;AACI,UAnDD,wBAAA,CAmDC;EAGD,MAAA,EArDP,KAqDO;EAOA,UAAA,CAAA,EAAA,MAAA;EAGP,kBAAA,CAAA,EAAA,WAAA,GAAA,QAAA;EAIG,aAAA,CAAA,EAAA,WAAA,GAAA,QAAA;EACA,WAAA,CAAA,EAAA,MAAA;EAAM,QAAA,CAAA,EA/DN,MA+DM,CAAA,MAAA,EAAA,MAAA,CAAA;EAGF,mBAAA,CAAA,EAAA,MAAqB;EAOrB,SAAA,CAAA,EAAA,MAAA;;AACqC,UArErC,mBAAA,CAqEqC;EAAR,MAAA,CAAA,EApEnC,KAoEmC;EACH,YAAA,CAAA,EAAA,MAAA;EAAR,QAAA,CAAA,EAnEtB,MAmEsB,CAAA,MAAA,EAAA,MAAA,CAAA;;AAGtB,UAnEI,aAAA,CAmEJ;EAAR,EAAA,EAAA,MAAA;EAGO,eAAA,EAAA,MAAA;EACC,MAAA,EApEH,KAoEG;EAAR,MAAA,EAAA,SAAA,GAAA,WAAA,GAAA,QAAA,GAAA,UAAA;EACmD,MAAA,CAAA,EAAA,MAAA;EAAR,QAAA,CAAA,EAlEnC,MAkEmC,CAAA,MAAA,EAAA,MAAA,CAAA;EACzB,SAAA,CAAA,EAlET,IAkES;;AAAqB,UA/D3B,kBAAA,CA+D2B;EACrB,eAAA,EAAA,MAAA;EAA4B,MAAA,CAAA,EA9DxC,KA8DwC;EAAR,MAAA,CAAA,EAAA,MAAA;EAE/B,QAAA,CAAA,EA9DC,MA8DD,CAAA,MAAA,EAAA,MAAA,CAAA;;AACP,UA5DY,cAAA,CA4DZ;EAAO,EAAA,EAAA,MAAA;;;aAlDC;eACE;;YAEH;;aAEC;cACC;cACA;;UAGG,iBAAA;;WAEN;;;;UAKM,kBAAA;;;UAGP;;;;aAIG;aACA;;UAGI,qBAAA;;;;;;UAOA,gBAAA;wBACO,sBAAsB,QAAQ;mCACnB,QAAQ;6BAEhC,2BACN,QAAQ;kDAGD,sBACP,QAAQ;gDACmC,QAAQ;uBACjC,qBAAqB,QAAQ;uBAC7B,oBAAoB,QAAQ;2BAEvC,wBACP,QAAQ"}
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IntegrationSpec, IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/providers/postmark.d.ts
|
|
4
|
+
declare const postmarkIntegrationSpec: IntegrationSpec;
|
|
5
|
+
declare function registerPostmarkIntegration(registry: IntegrationSpecRegistry): IntegrationSpecRegistry;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { postmarkIntegrationSpec, registerPostmarkIntegration };
|
|
8
|
+
//# sourceMappingURL=postmark.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postmark.d.ts","names":[],"sources":["../../../src/integrations/providers/postmark.ts"],"sourcesContent":[],"mappings":";;;cAGa,yBAAyB;iBA0EtB,2BAAA,WACJ,0BACT"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{StabilityEnum as e}from"../../ownership.js";const t={meta:{key:`email.postmark`,version:1,category:`email`,displayName:`Postmark`,title:`Postmark Transactional Email`,description:`Postmark integration for transactional email delivery.`,domain:`communications`,owners:[`platform.messaging`],tags:[`email`,`transactional`],stability:e.Stable},supportedModes:[`managed`,`byok`],capabilities:{provides:[{key:`email.transactional`,version:1}],requires:[{key:`platform.webhooks`,optional:!0,reason:`Optional for inbound bounce handling`}]},configSchema:{schema:{type:`object`,properties:{messageStream:{type:`string`,description:`Optional message stream identifier (e.g., transactional).`},fromEmail:{type:`string`,description:`Default From address used for outbound messages.`}}},example:{messageStream:`outbound`,fromEmail:`notifications@example.com`}},secretSchema:{schema:{type:`object`,required:[`serverToken`],properties:{serverToken:{type:`string`,description:`Server token for the Postmark account.`}}},example:{serverToken:`server-***`}},healthCheck:{method:`ping`,timeoutMs:3e3},docsUrl:`https://postmarkapp.com/developer`,constraints:{rateLimit:{rpm:500}},byokSetup:{setupInstructions:`Create a Postmark server token with outbound send permissions and configure allowed from addresses.`}};function n(e){return e.register(t)}export{t as postmarkIntegrationSpec,n as registerPostmarkIntegration};
|
|
2
|
+
//# sourceMappingURL=postmark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postmark.js","names":["postmarkIntegrationSpec: IntegrationSpec"],"sources":["../../../src/integrations/providers/postmark.ts"],"sourcesContent":["import { StabilityEnum } from '../../ownership';\nimport type { IntegrationSpec, IntegrationSpecRegistry } from '../spec';\n\nexport const postmarkIntegrationSpec: IntegrationSpec = {\n meta: {\n key: 'email.postmark',\n version: 1,\n category: 'email',\n displayName: 'Postmark',\n title: 'Postmark Transactional Email',\n description: 'Postmark integration for transactional email delivery.',\n domain: 'communications',\n owners: ['platform.messaging'],\n tags: ['email', 'transactional'],\n stability: StabilityEnum.Stable,\n },\n supportedModes: ['managed', 'byok'],\n capabilities: {\n provides: [{ key: 'email.transactional', version: 1 }],\n requires: [\n {\n key: 'platform.webhooks',\n optional: true,\n reason: 'Optional for inbound bounce handling',\n },\n ],\n },\n configSchema: {\n schema: {\n type: 'object',\n properties: {\n messageStream: {\n type: 'string',\n description: 'Optional message stream identifier (e.g., transactional).',\n },\n fromEmail: {\n type: 'string',\n description: 'Default From address used for outbound messages.',\n },\n },\n },\n example: {\n messageStream: 'outbound',\n fromEmail: 'notifications@example.com',\n },\n },\n secretSchema: {\n schema: {\n type: 'object',\n required: ['serverToken'],\n properties: {\n serverToken: {\n type: 'string',\n description: 'Server token for the Postmark account.',\n },\n },\n },\n example: {\n serverToken: 'server-***',\n },\n },\n healthCheck: {\n method: 'ping',\n timeoutMs: 3000,\n },\n docsUrl: 'https://postmarkapp.com/developer',\n constraints: {\n rateLimit: {\n rpm: 500,\n },\n },\n byokSetup: {\n setupInstructions:\n 'Create a Postmark server token with outbound send permissions and configure allowed from addresses.',\n },\n};\n\nexport function registerPostmarkIntegration(\n registry: IntegrationSpecRegistry\n): IntegrationSpecRegistry {\n return registry.register(postmarkIntegrationSpec);\n}\n\n"],"mappings":"mDAGA,MAAaA,EAA2C,CACtD,KAAM,CACJ,IAAK,iBACL,QAAS,EACT,SAAU,QACV,YAAa,WACb,MAAO,+BACP,YAAa,yDACb,OAAQ,iBACR,OAAQ,CAAC,qBAAqB,CAC9B,KAAM,CAAC,QAAS,gBAAgB,CAChC,UAAW,EAAc,OAC1B,CACD,eAAgB,CAAC,UAAW,OAAO,CACnC,aAAc,CACZ,SAAU,CAAC,CAAE,IAAK,sBAAuB,QAAS,EAAG,CAAC,CACtD,SAAU,CACR,CACE,IAAK,oBACL,SAAU,GACV,OAAQ,uCACT,CACF,CACF,CACD,aAAc,CACZ,OAAQ,CACN,KAAM,SACN,WAAY,CACV,cAAe,CACb,KAAM,SACN,YAAa,4DACd,CACD,UAAW,CACT,KAAM,SACN,YAAa,mDACd,CACF,CACF,CACD,QAAS,CACP,cAAe,WACf,UAAW,4BACZ,CACF,CACD,aAAc,CACZ,OAAQ,CACN,KAAM,SACN,SAAU,CAAC,cAAc,CACzB,WAAY,CACV,YAAa,CACX,KAAM,SACN,YAAa,yCACd,CACF,CACF,CACD,QAAS,CACP,YAAa,aACd,CACF,CACD,YAAa,CACX,OAAQ,OACR,UAAW,IACZ,CACD,QAAS,oCACT,YAAa,CACX,UAAW,CACT,IAAK,IACN,CACF,CACD,UAAW,CACT,kBACE,sGACH,CACF,CAED,SAAgB,EACd,EACyB,CACzB,OAAO,EAAS,SAAS,EAAwB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IntegrationSpec, IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/providers/powens.d.ts
|
|
4
|
+
declare const powensIntegrationSpec: IntegrationSpec;
|
|
5
|
+
declare function registerPowensIntegration(registry: IntegrationSpecRegistry): IntegrationSpecRegistry;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { powensIntegrationSpec, registerPowensIntegration };
|
|
8
|
+
//# sourceMappingURL=powens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"powens.d.ts","names":[],"sources":["../../../src/integrations/providers/powens.ts"],"sourcesContent":[],"mappings":";;;cAIa,uBAAuB;AAAvB,iBA6GG,yBAAA,CA7GoB,QA2GnC,EAGW,uBAHX,CAAA,EAIE,uBAJF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{StabilityEnum as e}from"../../ownership.js";const t={meta:{key:`openbanking.powens`,version:1,category:`open-banking`,displayName:`Powens Open Banking`,title:`Powens Open Banking (Read)`,description:`Read-only Open Banking integration powered by Powens, exposing accounts, transactions, and balances.`,domain:`finance`,owners:[`platform.finance`],tags:[`open-banking`,`powens`,`finance`],stability:e.Experimental},supportedModes:[`byok`],capabilities:{provides:[{key:`openbanking.accounts.read`,version:1},{key:`openbanking.transactions.read`,version:1},{key:`openbanking.balances.read`,version:1}]},configSchema:{schema:{type:`object`,required:[`environment`],properties:{environment:{type:`string`,enum:[`sandbox`,`production`],description:`Powens environment to target. Sandbox uses Powens test API base URL, production uses live endpoints.`},baseUrl:{type:`string`,description:`Optional override for the Powens API base URL. Defaults to Powens environment defaults.`},region:{type:`string`,description:`Optional Powens region identifier when targeting a specific data residency cluster.`},pollingIntervalMs:{type:`number`,description:`Optional custom polling interval in milliseconds for background sync jobs (defaults to platform standard).`}}},example:{environment:`sandbox`,baseUrl:`https://api-sandbox.powens.com/v2`,region:`eu-west-1`,pollingIntervalMs:3e5}},secretSchema:{schema:{type:`object`,required:[`clientId`,`clientSecret`],properties:{clientId:{type:`string`,description:`Powens OAuth client identifier obtained from the Powens Console (BYOK project).`},clientSecret:{type:`string`,description:`Powens OAuth client secret used to exchange for access tokens.`},apiKey:{type:`string`,description:`Optional Powens API key (if the tenant project exposes a dedicated API token).`},webhookSecret:{type:`string`,description:`Optional webhook signing secret used to verify Powens webhook payloads.`}}},example:{clientId:`powens-client-id`,clientSecret:`powens-client-secret`,apiKey:`powens-api-key`,webhookSecret:`powens-webhook-secret`}},healthCheck:{method:`ping`,timeoutMs:8e3},docsUrl:`https://docs.powens.com/`,constraints:{rateLimit:{rph:1e4,rpm:600}},byokSetup:{setupInstructions:`Create a Powens BYOK project, generate OAuth credentials, and optionally configure webhook delivery for account/transaction updates.`,requiredScopes:[`accounts:read`,`transactions:read`,`balances:read`]}};function n(e){return e.register(t)}export{t as powensIntegrationSpec,n as registerPowensIntegration};
|
|
2
|
+
//# sourceMappingURL=powens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"powens.js","names":["powensIntegrationSpec: IntegrationSpec"],"sources":["../../../src/integrations/providers/powens.ts"],"sourcesContent":["import { StabilityEnum } from '../../ownership';\nimport type { IntegrationSpec } from '../spec';\nimport type { IntegrationSpecRegistry } from '../spec';\n\nexport const powensIntegrationSpec: IntegrationSpec = {\n meta: {\n key: 'openbanking.powens',\n version: 1,\n category: 'open-banking',\n displayName: 'Powens Open Banking',\n title: 'Powens Open Banking (Read)',\n description:\n 'Read-only Open Banking integration powered by Powens, exposing accounts, transactions, and balances.',\n domain: 'finance',\n owners: ['platform.finance'],\n tags: ['open-banking', 'powens', 'finance'],\n stability: StabilityEnum.Experimental,\n },\n supportedModes: ['byok'],\n capabilities: {\n provides: [\n { key: 'openbanking.accounts.read', version: 1 },\n { key: 'openbanking.transactions.read', version: 1 },\n { key: 'openbanking.balances.read', version: 1 },\n ],\n },\n configSchema: {\n schema: {\n type: 'object',\n required: ['environment'],\n properties: {\n environment: {\n type: 'string',\n enum: ['sandbox', 'production'],\n description:\n 'Powens environment to target. Sandbox uses Powens test API base URL, production uses live endpoints.',\n },\n baseUrl: {\n type: 'string',\n description:\n 'Optional override for the Powens API base URL. Defaults to Powens environment defaults.',\n },\n region: {\n type: 'string',\n description:\n 'Optional Powens region identifier when targeting a specific data residency cluster.',\n },\n pollingIntervalMs: {\n type: 'number',\n description:\n 'Optional custom polling interval in milliseconds for background sync jobs (defaults to platform standard).',\n },\n },\n },\n example: {\n environment: 'sandbox',\n baseUrl: 'https://api-sandbox.powens.com/v2',\n region: 'eu-west-1',\n pollingIntervalMs: 300000,\n },\n },\n secretSchema: {\n schema: {\n type: 'object',\n required: ['clientId', 'clientSecret'],\n properties: {\n clientId: {\n type: 'string',\n description:\n 'Powens OAuth client identifier obtained from the Powens Console (BYOK project).',\n },\n clientSecret: {\n type: 'string',\n description:\n 'Powens OAuth client secret used to exchange for access tokens.',\n },\n apiKey: {\n type: 'string',\n description:\n 'Optional Powens API key (if the tenant project exposes a dedicated API token).',\n },\n webhookSecret: {\n type: 'string',\n description:\n 'Optional webhook signing secret used to verify Powens webhook payloads.',\n },\n },\n },\n example: {\n clientId: 'powens-client-id',\n clientSecret: 'powens-client-secret',\n apiKey: 'powens-api-key',\n webhookSecret: 'powens-webhook-secret',\n },\n },\n healthCheck: {\n method: 'ping',\n timeoutMs: 8000,\n },\n docsUrl: 'https://docs.powens.com/',\n constraints: {\n rateLimit: {\n rph: 10000,\n rpm: 600,\n },\n },\n byokSetup: {\n setupInstructions:\n 'Create a Powens BYOK project, generate OAuth credentials, and optionally configure webhook delivery for account/transaction updates.',\n requiredScopes: ['accounts:read', 'transactions:read', 'balances:read'],\n },\n};\n\nexport function registerPowensIntegration(\n registry: IntegrationSpecRegistry\n): IntegrationSpecRegistry {\n return registry.register(powensIntegrationSpec);\n}\n\n\n\n\n\n"],"mappings":"mDAIA,MAAaA,EAAyC,CACpD,KAAM,CACJ,IAAK,qBACL,QAAS,EACT,SAAU,eACV,YAAa,sBACb,MAAO,6BACP,YACE,uGACF,OAAQ,UACR,OAAQ,CAAC,mBAAmB,CAC5B,KAAM,CAAC,eAAgB,SAAU,UAAU,CAC3C,UAAW,EAAc,aAC1B,CACD,eAAgB,CAAC,OAAO,CACxB,aAAc,CACZ,SAAU,CACR,CAAE,IAAK,4BAA6B,QAAS,EAAG,CAChD,CAAE,IAAK,gCAAiC,QAAS,EAAG,CACpD,CAAE,IAAK,4BAA6B,QAAS,EAAG,CACjD,CACF,CACD,aAAc,CACZ,OAAQ,CACN,KAAM,SACN,SAAU,CAAC,cAAc,CACzB,WAAY,CACV,YAAa,CACX,KAAM,SACN,KAAM,CAAC,UAAW,aAAa,CAC/B,YACE,uGACH,CACD,QAAS,CACP,KAAM,SACN,YACE,0FACH,CACD,OAAQ,CACN,KAAM,SACN,YACE,sFACH,CACD,kBAAmB,CACjB,KAAM,SACN,YACE,6GACH,CACF,CACF,CACD,QAAS,CACP,YAAa,UACb,QAAS,oCACT,OAAQ,YACR,kBAAmB,IACpB,CACF,CACD,aAAc,CACZ,OAAQ,CACN,KAAM,SACN,SAAU,CAAC,WAAY,eAAe,CACtC,WAAY,CACV,SAAU,CACR,KAAM,SACN,YACE,kFACH,CACD,aAAc,CACZ,KAAM,SACN,YACE,iEACH,CACD,OAAQ,CACN,KAAM,SACN,YACE,iFACH,CACD,cAAe,CACb,KAAM,SACN,YACE,0EACH,CACF,CACF,CACD,QAAS,CACP,SAAU,mBACV,aAAc,uBACd,OAAQ,iBACR,cAAe,wBAChB,CACF,CACD,YAAa,CACX,OAAQ,OACR,UAAW,IACZ,CACD,QAAS,2BACT,YAAa,CACX,UAAW,CACT,IAAK,IACL,IAAK,IACN,CACF,CACD,UAAW,CACT,kBACE,uIACF,eAAgB,CAAC,gBAAiB,oBAAqB,gBAAgB,CACxE,CACF,CAED,SAAgB,EACd,EACyB,CACzB,OAAO,EAAS,SAAS,EAAsB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IntegrationSpec, IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/providers/qdrant.d.ts
|
|
4
|
+
declare const qdrantIntegrationSpec: IntegrationSpec;
|
|
5
|
+
declare function registerQdrantIntegration(registry: IntegrationSpecRegistry): IntegrationSpecRegistry;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { qdrantIntegrationSpec, registerQdrantIntegration };
|
|
8
|
+
//# sourceMappingURL=qdrant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qdrant.d.ts","names":[],"sources":["../../../src/integrations/providers/qdrant.ts"],"sourcesContent":[],"mappings":";;;cAGa,uBAAuB;iBA6EpB,yBAAA,WACJ,0BACT"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{StabilityEnum as e}from"../../ownership.js";const t={meta:{key:`vectordb.qdrant`,version:1,category:`vector-db`,displayName:`Qdrant`,title:`Qdrant Vector Database`,description:`Qdrant integration for vector search and embeddings storage.`,domain:`ai`,owners:[`platform.ai`],tags:[`vector-db`,`search`],stability:e.Experimental},supportedModes:[`managed`,`byok`],capabilities:{provides:[{key:`vector-db.search`,version:1},{key:`vector-db.storage`,version:1}],requires:[{key:`ai.embeddings`,optional:!0,reason:`Required if vectors are generated via hosted embedding services`}]},configSchema:{schema:{type:`object`,properties:{apiUrl:{type:`string`,description:`Base URL for the Qdrant instance (e.g., https://qdrant.example.com).`},collectionPrefix:{type:`string`,description:`Prefix applied to all collection names for this tenant.`}}},example:{apiUrl:`https://qdrant.example.com`,collectionPrefix:`tenant_`}},secretSchema:{schema:{type:`object`,properties:{apiKey:{type:`string`,description:`API key or token when authentication is enabled.`}}},example:{apiKey:`qdrant-api-key`}},healthCheck:{method:`ping`,timeoutMs:4e3},docsUrl:`https://qdrant.tech/documentation/quick-start/`,constraints:{quotas:{collections:100,pointsPerCollection:1e6}},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.`}};function n(e){return e.register(t)}export{t as qdrantIntegrationSpec,n as registerQdrantIntegration};
|
|
2
|
+
//# sourceMappingURL=qdrant.js.map
|