@lssm/lib.contracts-integrations 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +536 -0
- package/dist/contracts-integrations.feature.d.ts +1 -0
- package/dist/contracts-integrations.feature.js +2 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +22 -0
- package/dist/integrations/advertising/index.d.ts +4 -0
- package/dist/integrations/advertising/index.js +2 -0
- package/dist/integrations/advertising/recipe-schema.d.ts +114 -0
- package/dist/integrations/advertising/recipe-schema.js +2 -0
- package/dist/integrations/advertising/recipe.d.ts +53 -0
- package/dist/integrations/advertising/recipe.js +1 -0
- package/dist/integrations/advertising/specs.d.ts +5 -0
- package/dist/integrations/advertising/specs.js +2 -0
- package/dist/integrations/advertising/types.d.ts +97 -0
- package/dist/integrations/advertising/types.js +2 -0
- package/dist/integrations/attio/events.d.ts +4 -0
- package/dist/integrations/attio/events.js +2 -0
- package/dist/integrations/attio/events.test.d.ts +1 -0
- package/dist/integrations/attio/index.d.ts +2 -0
- package/dist/integrations/attio/index.js +2 -0
- package/dist/integrations/attio/operations.d.ts +4 -0
- package/dist/integrations/attio/operations.js +2 -0
- package/dist/integrations/attio/operations.test.d.ts +1 -0
- package/dist/integrations/auth-helpers.d.ts +58 -0
- package/dist/integrations/auth-helpers.js +2 -0
- package/dist/integrations/auth-helpers.test.d.ts +1 -0
- package/dist/integrations/auth.d.ts +96 -0
- package/dist/integrations/auth.js +2 -0
- package/dist/integrations/auth.test.d.ts +1 -0
- package/dist/integrations/binding.d.ts +1 -0
- package/dist/integrations/binding.js +1 -0
- package/dist/integrations/byok.d.ts +75 -0
- package/dist/integrations/byok.js +2 -0
- package/dist/integrations/byok.test.d.ts +1 -0
- package/dist/integrations/catalog.d.ts +84 -0
- package/dist/integrations/catalog.js +2 -0
- package/dist/integrations/catalog.test.d.ts +1 -0
- package/dist/integrations/clay/events.d.ts +93 -0
- package/dist/integrations/clay/events.js +2 -0
- package/dist/integrations/clay/events.test.d.ts +1 -0
- package/dist/integrations/clay/index.d.ts +2 -0
- package/dist/integrations/clay/index.js +2 -0
- package/dist/integrations/clay/operations.d.ts +4 -0
- package/dist/integrations/clay/operations.js +2 -0
- package/dist/integrations/clay/operations.test.d.ts +1 -0
- package/dist/integrations/connection.d.ts +68 -0
- package/dist/integrations/connection.js +1 -0
- package/dist/integrations/credentials.d.ts +56 -0
- package/dist/integrations/credentials.js +2 -0
- package/dist/integrations/credentials.test.d.ts +1 -0
- package/dist/integrations/deployment-topology-model.d.ts +75 -0
- package/dist/integrations/deployment-topology-model.js +2 -0
- package/dist/integrations/deployment-topology-receipt.d.ts +8 -0
- package/dist/integrations/deployment-topology-receipt.js +2 -0
- package/dist/integrations/deployment-topology-validation.d.ts +5 -0
- package/dist/integrations/deployment-topology-validation.js +2 -0
- package/dist/integrations/deployment-topology.d.ts +3 -0
- package/dist/integrations/deployment-topology.js +2 -0
- package/dist/integrations/deployment-topology.test.d.ts +1 -0
- package/dist/integrations/docs/integrations.docblock.d.ts +2 -0
- package/dist/integrations/docs/integrations.docblock.js +101 -0
- package/dist/integrations/email-operations.d.ts +152 -0
- package/dist/integrations/email-operations.js +2 -0
- package/dist/integrations/gtm/capability-ledger.d.ts +48 -0
- package/dist/integrations/gtm/capability-ledger.fixture-helpers.d.ts +9 -0
- package/dist/integrations/gtm/capability-ledger.fixture-helpers.js +2 -0
- package/dist/integrations/gtm/capability-ledger.fixtures.d.ts +5 -0
- package/dist/integrations/gtm/capability-ledger.fixtures.js +2 -0
- package/dist/integrations/gtm/capability-ledger.js +2 -0
- package/dist/integrations/gtm/capability-ledger.test.d.ts +1 -0
- package/dist/integrations/gtm/hosted-mcp.d.ts +12 -0
- package/dist/integrations/gtm/hosted-mcp.js +2 -0
- package/dist/integrations/gtm/index.d.ts +5 -0
- package/dist/integrations/gtm/index.js +2 -0
- package/dist/integrations/gtm/inventory/attio.d.ts +2 -0
- package/dist/integrations/gtm/inventory/attio.js +2 -0
- package/dist/integrations/gtm/inventory/clay.d.ts +2 -0
- package/dist/integrations/gtm/inventory/clay.js +2 -0
- package/dist/integrations/gtm/inventory/fullenrich.d.ts +2 -0
- package/dist/integrations/gtm/inventory/fullenrich.js +2 -0
- package/dist/integrations/gtm/inventory/index.d.ts +4 -0
- package/dist/integrations/gtm/inventory/index.js +2 -0
- package/dist/integrations/gtm/inventory/inventory.test.d.ts +1 -0
- package/dist/integrations/gtm/inventory/types.d.ts +26 -0
- package/dist/integrations/gtm/inventory/types.js +1 -0
- package/dist/integrations/gtm/preflight.d.ts +20 -0
- package/dist/integrations/gtm/preflight.js +2 -0
- package/dist/integrations/gtm/preflight.test.d.ts +1 -0
- package/dist/integrations/gtm/schemas.d.ts +291 -0
- package/dist/integrations/gtm/schemas.js +2 -0
- package/dist/integrations/gtm/webhook-ingress.d.ts +37 -0
- package/dist/integrations/gtm/webhook-ingress.js +2 -0
- package/dist/integrations/gtm/webhook-ingress.test.d.ts +1 -0
- package/dist/integrations/health/contracts/activities.d.ts +162 -0
- package/dist/integrations/health/contracts/activities.js +2 -0
- package/dist/integrations/health/contracts/biometrics.d.ts +156 -0
- package/dist/integrations/health/contracts/biometrics.js +2 -0
- package/dist/integrations/health/contracts/contracts.test.d.ts +1 -0
- package/dist/integrations/health/contracts/index.d.ts +10 -0
- package/dist/integrations/health/contracts/index.js +2 -0
- package/dist/integrations/health/contracts/nutrition.d.ts +162 -0
- package/dist/integrations/health/contracts/nutrition.js +2 -0
- package/dist/integrations/health/contracts/sleep.d.ts +166 -0
- package/dist/integrations/health/contracts/sleep.js +2 -0
- package/dist/integrations/health/contracts/webhooks.d.ts +73 -0
- package/dist/integrations/health/contracts/webhooks.js +2 -0
- package/dist/integrations/health/contracts/workouts.d.ts +166 -0
- package/dist/integrations/health/contracts/workouts.js +2 -0
- package/dist/integrations/health/guards.d.ts +8 -0
- package/dist/integrations/health/guards.js +2 -0
- package/dist/integrations/health/guards.test.d.ts +1 -0
- package/dist/integrations/health/health.capability.d.ts +1 -0
- package/dist/integrations/health/health.capability.js +2 -0
- package/dist/integrations/health/health.feature.d.ts +1 -0
- package/dist/integrations/health/health.feature.js +2 -0
- package/dist/integrations/health/models.d.ts +361 -0
- package/dist/integrations/health/models.js +2 -0
- package/dist/integrations/health/telemetry.d.ts +17 -0
- package/dist/integrations/health/telemetry.js +2 -0
- package/dist/integrations/health/telemetry.test.d.ts +1 -0
- package/dist/integrations/health.d.ts +17 -0
- package/dist/integrations/health.js +2 -0
- package/dist/integrations/health.test.d.ts +1 -0
- package/dist/integrations/index.d.ts +30 -0
- package/dist/integrations/index.js +22 -0
- package/dist/integrations/integrations.capability.d.ts +1 -0
- package/dist/integrations/integrations.capability.js +2 -0
- package/dist/integrations/integrations.feature.d.ts +5 -0
- package/dist/integrations/integrations.feature.js +2 -0
- package/dist/integrations/linkedin/advertising.d.ts +52 -0
- package/dist/integrations/linkedin/advertising.js +1 -0
- package/dist/integrations/linkedin/analytics.d.ts +25 -0
- package/dist/integrations/linkedin/analytics.js +1 -0
- package/dist/integrations/linkedin/capabilities.d.ts +54 -0
- package/dist/integrations/linkedin/capabilities.js +2 -0
- package/dist/integrations/linkedin/capability-evaluation.test.d.ts +1 -0
- package/dist/integrations/linkedin/community.d.ts +77 -0
- package/dist/integrations/linkedin/community.js +1 -0
- package/dist/integrations/linkedin/credentials.d.ts +17 -0
- package/dist/integrations/linkedin/credentials.js +2 -0
- package/dist/integrations/linkedin/host.d.ts +53 -0
- package/dist/integrations/linkedin/host.js +2 -0
- package/dist/integrations/linkedin/host.test.d.ts +1 -0
- package/dist/integrations/linkedin/identity.d.ts +29 -0
- package/dist/integrations/linkedin/identity.js +1 -0
- package/dist/integrations/linkedin/index.d.ts +16 -0
- package/dist/integrations/linkedin/index.js +2 -0
- package/dist/integrations/linkedin/installation.d.ts +54 -0
- package/dist/integrations/linkedin/installation.js +2 -0
- package/dist/integrations/linkedin/linkedin.test.d.ts +1 -0
- package/dist/integrations/linkedin/media-job-state.d.ts +70 -0
- package/dist/integrations/linkedin/media-job-state.js +2 -0
- package/dist/integrations/linkedin/media-job.d.ts +88 -0
- package/dist/integrations/linkedin/media-job.js +2 -0
- package/dist/integrations/linkedin/media-session.d.ts +37 -0
- package/dist/integrations/linkedin/media-session.js +2 -0
- package/dist/integrations/linkedin/media.d.ts +51 -0
- package/dist/integrations/linkedin/media.js +2 -0
- package/dist/integrations/linkedin/messaging.d.ts +70 -0
- package/dist/integrations/linkedin/messaging.js +1 -0
- package/dist/integrations/linkedin/models.d.ts +42 -0
- package/dist/integrations/linkedin/models.js +1 -0
- package/dist/integrations/linkedin/native-publication.d.ts +43 -0
- package/dist/integrations/linkedin/native-publication.js +2 -0
- package/dist/integrations/linkedin/native-withdrawal.d.ts +12 -0
- package/dist/integrations/linkedin/native-withdrawal.js +2 -0
- package/dist/integrations/linkedin/operation-catalog.d.ts +314 -0
- package/dist/integrations/linkedin/operation-catalog.js +2 -0
- package/dist/integrations/linkedin/operations.d.ts +66 -0
- package/dist/integrations/linkedin/operations.js +2 -0
- package/dist/integrations/linkedin/provider.d.ts +72 -0
- package/dist/integrations/linkedin/provider.js +2 -0
- package/dist/integrations/linkedin/sales.d.ts +57 -0
- package/dist/integrations/linkedin/sales.js +1 -0
- package/dist/integrations/linkedin/sync.d.ts +41 -0
- package/dist/integrations/linkedin/sync.js +1 -0
- package/dist/integrations/linkedin/webhooks.d.ts +38 -0
- package/dist/integrations/linkedin/webhooks.js +1 -0
- package/dist/integrations/meeting-recorder/contracts/index.d.ts +7 -0
- package/dist/integrations/meeting-recorder/contracts/index.js +2 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.d.ts +451 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.js +2 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.d.ts +166 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.js +2 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.d.ts +85 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.js +2 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.d.ts +1 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.js +2 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.d.ts +5 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.js +2 -0
- package/dist/integrations/meeting-recorder/models.d.ts +402 -0
- package/dist/integrations/meeting-recorder/models.js +2 -0
- package/dist/integrations/meeting-recorder/telemetry.d.ts +13 -0
- package/dist/integrations/meeting-recorder/telemetry.js +2 -0
- package/dist/integrations/openbanking/contracts/accounts.d.ts +282 -0
- package/dist/integrations/openbanking/contracts/accounts.js +2 -0
- package/dist/integrations/openbanking/contracts/balances.d.ts +158 -0
- package/dist/integrations/openbanking/contracts/balances.js +2 -0
- package/dist/integrations/openbanking/contracts/index.d.ts +7 -0
- package/dist/integrations/openbanking/contracts/index.js +2 -0
- package/dist/integrations/openbanking/contracts/transactions.d.ts +206 -0
- package/dist/integrations/openbanking/contracts/transactions.js +2 -0
- package/dist/integrations/openbanking/guards.d.ts +8 -0
- package/dist/integrations/openbanking/guards.js +2 -0
- package/dist/integrations/openbanking/guards.test.d.ts +1 -0
- package/dist/integrations/openbanking/models.d.ts +223 -0
- package/dist/integrations/openbanking/models.js +2 -0
- package/dist/integrations/openbanking/openbanking.capability.d.ts +1 -0
- package/dist/integrations/openbanking/openbanking.capability.js +2 -0
- package/dist/integrations/openbanking/openbanking.feature.d.ts +5 -0
- package/dist/integrations/openbanking/openbanking.feature.js +2 -0
- package/dist/integrations/openbanking/telemetry.d.ts +12 -0
- package/dist/integrations/openbanking/telemetry.js +2 -0
- package/dist/integrations/operations.d.ts +430 -0
- package/dist/integrations/operations.js +22 -0
- package/dist/integrations/operations.test.d.ts +1 -0
- package/dist/integrations/providers/analytics-reader.d.ts +103 -0
- package/dist/integrations/providers/analytics-reader.js +1 -0
- package/dist/integrations/providers/analytics-writer.d.ts +6 -0
- package/dist/integrations/providers/analytics-writer.js +1 -0
- package/dist/integrations/providers/analytics.d.ts +47 -0
- package/dist/integrations/providers/analytics.js +1 -0
- package/dist/integrations/providers/apify.d.ts +3 -0
- package/dist/integrations/providers/apify.js +2 -0
- package/dist/integrations/providers/apple-health.d.ts +3 -0
- package/dist/integrations/providers/apple-health.js +2 -0
- package/dist/integrations/providers/async-media-record.d.ts +26 -0
- package/dist/integrations/providers/async-media-record.js +2 -0
- package/dist/integrations/providers/async-media.d.ts +112 -0
- package/dist/integrations/providers/async-media.js +1 -0
- package/dist/integrations/providers/attio.d.ts +4 -0
- package/dist/integrations/providers/attio.js +2 -0
- package/dist/integrations/providers/bright-data.d.ts +3 -0
- package/dist/integrations/providers/bright-data.js +2 -0
- package/dist/integrations/providers/browserbase.d.ts +3 -0
- package/dist/integrations/providers/browserbase.js +2 -0
- package/dist/integrations/providers/calendar.d.js +1 -0
- package/dist/integrations/providers/calendar.d.ts +81 -0
- package/dist/integrations/providers/calendar.js +1 -0
- package/dist/integrations/providers/catalog.d.ts +2 -0
- package/dist/integrations/providers/catalog.js +2 -0
- package/dist/integrations/providers/clay.d.ts +4 -0
- package/dist/integrations/providers/clay.js +2 -0
- package/dist/integrations/providers/communication-channel.d.ts +45 -0
- package/dist/integrations/providers/communication-channel.js +2 -0
- package/dist/integrations/providers/communication-channel.test.d.ts +1 -0
- package/dist/integrations/providers/composio.d.ts +3 -0
- package/dist/integrations/providers/composio.js +2 -0
- package/dist/integrations/providers/crm-external-profiles.test.d.ts +1 -0
- package/dist/integrations/providers/crm-fixture-core.d.ts +20 -0
- package/dist/integrations/providers/crm-fixture-core.js +2 -0
- package/dist/integrations/providers/crm-hubspot-fixture.d.ts +14 -0
- package/dist/integrations/providers/crm-hubspot-fixture.js +2 -0
- package/dist/integrations/providers/crm-salesforce-fixture.d.ts +17 -0
- package/dist/integrations/providers/crm-salesforce-fixture.js +2 -0
- package/dist/integrations/providers/crm-write-proposal-types.d.ts +83 -0
- package/dist/integrations/providers/crm-write-proposal-types.js +2 -0
- package/dist/integrations/providers/crm-write-proposal.d.ts +7 -0
- package/dist/integrations/providers/crm-write-proposal.js +2 -0
- package/dist/integrations/providers/crm-write-proposal.test.d.ts +1 -0
- package/dist/integrations/providers/crm.d.ts +94 -0
- package/dist/integrations/providers/crm.js +2 -0
- package/dist/integrations/providers/crm.test.d.ts +1 -0
- package/dist/integrations/providers/database.d.ts +12 -0
- package/dist/integrations/providers/database.js +1 -0
- package/dist/integrations/providers/deepgram.d.ts +3 -0
- package/dist/integrations/providers/deepgram.js +2 -0
- package/dist/integrations/providers/direct-fetch.d.ts +3 -0
- package/dist/integrations/providers/direct-fetch.js +2 -0
- package/dist/integrations/providers/eightsleep.d.ts +3 -0
- package/dist/integrations/providers/eightsleep.js +2 -0
- package/dist/integrations/providers/elevenlabs.d.ts +3 -0
- package/dist/integrations/providers/elevenlabs.js +2 -0
- package/dist/integrations/providers/email-delivery-events.d.ts +22 -0
- package/dist/integrations/providers/email-delivery-events.js +1 -0
- package/dist/integrations/providers/email.d.ts +187 -0
- package/dist/integrations/providers/email.js +1 -0
- package/dist/integrations/providers/embedding.d.ts +52 -0
- package/dist/integrations/providers/embedding.js +1 -0
- package/dist/integrations/providers/embedding.test.d.ts +1 -0
- package/dist/integrations/providers/fal-image.d.ts +3 -0
- package/dist/integrations/providers/fal-image.js +2 -0
- package/dist/integrations/providers/fal.d.ts +3 -0
- package/dist/integrations/providers/fal.js +2 -0
- package/dist/integrations/providers/fathom.d.ts +3 -0
- package/dist/integrations/providers/fathom.js +2 -0
- package/dist/integrations/providers/firecrawl.d.ts +3 -0
- package/dist/integrations/providers/firecrawl.js +2 -0
- package/dist/integrations/providers/fireflies.d.ts +3 -0
- package/dist/integrations/providers/fireflies.js +2 -0
- package/dist/integrations/providers/fitbit.d.ts +3 -0
- package/dist/integrations/providers/fitbit.js +2 -0
- package/dist/integrations/providers/fullenrich.d.ts +3 -0
- package/dist/integrations/providers/fullenrich.js +2 -0
- package/dist/integrations/providers/garmin.d.ts +3 -0
- package/dist/integrations/providers/garmin.js +2 -0
- package/dist/integrations/providers/gcs-storage.d.ts +3 -0
- package/dist/integrations/providers/gcs-storage.js +2 -0
- package/dist/integrations/providers/gmail.d.ts +3 -0
- package/dist/integrations/providers/gmail.js +2 -0
- package/dist/integrations/providers/google-calendar.d.ts +3 -0
- package/dist/integrations/providers/google-calendar.js +2 -0
- package/dist/integrations/providers/google-drive.d.ts +54 -0
- package/dist/integrations/providers/google-drive.js +2 -0
- package/dist/integrations/providers/gradium.d.ts +3 -0
- package/dist/integrations/providers/gradium.js +2 -0
- package/dist/integrations/providers/granola.d.ts +3 -0
- package/dist/integrations/providers/granola.js +2 -0
- package/dist/integrations/providers/gtm-providers.test.d.ts +1 -0
- package/dist/integrations/providers/health-provider-shared.d.ts +28 -0
- package/dist/integrations/providers/health-provider-shared.js +2 -0
- package/dist/integrations/providers/health-providers.test.d.ts +1 -0
- package/dist/integrations/providers/health.d.ts +186 -0
- package/dist/integrations/providers/health.js +1 -0
- package/dist/integrations/providers/higgsfield.d.ts +3 -0
- package/dist/integrations/providers/higgsfield.js +2 -0
- package/dist/integrations/providers/image.d.ts +85 -0
- package/dist/integrations/providers/image.js +2 -0
- package/dist/integrations/providers/index.d.ts +101 -0
- package/dist/integrations/providers/index.js +2 -0
- package/dist/integrations/providers/jira.d.ts +3 -0
- package/dist/integrations/providers/jira.js +2 -0
- package/dist/integrations/providers/linear.d.ts +3 -0
- package/dist/integrations/providers/linear.js +2 -0
- package/dist/integrations/providers/linkedin-community.d.ts +3 -0
- package/dist/integrations/providers/linkedin-community.js +2 -0
- package/dist/integrations/providers/linkedin-marketing.d.ts +3 -0
- package/dist/integrations/providers/linkedin-marketing.js +2 -0
- package/dist/integrations/providers/linkedin-member.d.ts +3 -0
- package/dist/integrations/providers/linkedin-member.js +2 -0
- package/dist/integrations/providers/linkedin-messaging.d.ts +3 -0
- package/dist/integrations/providers/linkedin-messaging.js +2 -0
- package/dist/integrations/providers/linkedin-providers.test.d.ts +1 -0
- package/dist/integrations/providers/linkedin-sales-navigator.d.ts +3 -0
- package/dist/integrations/providers/linkedin-sales-navigator.js +2 -0
- package/dist/integrations/providers/linkedin-spec-shared.d.ts +16 -0
- package/dist/integrations/providers/linkedin-spec-shared.js +2 -0
- package/dist/integrations/providers/linkup.d.ts +3 -0
- package/dist/integrations/providers/linkup.js +2 -0
- package/dist/integrations/providers/llm.d.ts +79 -0
- package/dist/integrations/providers/llm.js +1 -0
- package/dist/integrations/providers/massive.d.ts +5 -0
- package/dist/integrations/providers/massive.js +2 -0
- package/dist/integrations/providers/meeting-capture.d.ts +56 -0
- package/dist/integrations/providers/meeting-capture.js +1 -0
- package/dist/integrations/providers/meeting-recorder.d.ts +129 -0
- package/dist/integrations/providers/meeting-recorder.js +1 -0
- package/dist/integrations/providers/messaging-github.d.ts +9 -0
- package/dist/integrations/providers/messaging-github.js +2 -0
- package/dist/integrations/providers/messaging-matrix.d.ts +3 -0
- package/dist/integrations/providers/messaging-matrix.js +2 -0
- package/dist/integrations/providers/messaging-slack.d.ts +9 -0
- package/dist/integrations/providers/messaging-slack.js +2 -0
- package/dist/integrations/providers/messaging-teams.d.ts +10 -0
- package/dist/integrations/providers/messaging-teams.js +2 -0
- package/dist/integrations/providers/messaging-telegram.d.ts +3 -0
- package/dist/integrations/providers/messaging-telegram.js +2 -0
- package/dist/integrations/providers/messaging-whatsapp-meta.d.ts +3 -0
- package/dist/integrations/providers/messaging-whatsapp-meta.js +2 -0
- package/dist/integrations/providers/messaging-whatsapp-twilio.d.ts +3 -0
- package/dist/integrations/providers/messaging-whatsapp-twilio.js +2 -0
- package/dist/integrations/providers/messaging.d.ts +30 -0
- package/dist/integrations/providers/messaging.js +1 -0
- package/dist/integrations/providers/mistral-conversational.d.ts +3 -0
- package/dist/integrations/providers/mistral-conversational.js +2 -0
- package/dist/integrations/providers/mistral-stt.d.ts +3 -0
- package/dist/integrations/providers/mistral-stt.js +2 -0
- package/dist/integrations/providers/mistral.d.ts +3 -0
- package/dist/integrations/providers/mistral.js +2 -0
- package/dist/integrations/providers/mode-exemptions.d.ts +10 -0
- package/dist/integrations/providers/mode-exemptions.js +2 -0
- package/dist/integrations/providers/myfitnesspal.d.ts +3 -0
- package/dist/integrations/providers/myfitnesspal.js +2 -0
- package/dist/integrations/providers/notion.d.ts +9 -0
- package/dist/integrations/providers/notion.js +2 -0
- package/dist/integrations/providers/openai-image.d.ts +3 -0
- package/dist/integrations/providers/openai-image.js +2 -0
- package/dist/integrations/providers/openai-realtime.d.ts +3 -0
- package/dist/integrations/providers/openai-realtime.js +2 -0
- package/dist/integrations/providers/openbanking.d.ts +125 -0
- package/dist/integrations/providers/openbanking.js +1 -0
- package/dist/integrations/providers/openwearables.d.ts +3 -0
- package/dist/integrations/providers/openwearables.js +2 -0
- package/dist/integrations/providers/oura.d.ts +3 -0
- package/dist/integrations/providers/oura.js +2 -0
- package/dist/integrations/providers/oxylabs.d.ts +3 -0
- package/dist/integrations/providers/oxylabs.js +2 -0
- package/dist/integrations/providers/payments/capabilities-billing.d.ts +67 -0
- package/dist/integrations/providers/payments/capabilities-billing.js +1 -0
- package/dist/integrations/providers/payments/capabilities-payments.d.ts +57 -0
- package/dist/integrations/providers/payments/capabilities-payments.js +1 -0
- package/dist/integrations/providers/payments/capabilities.d.ts +2 -0
- package/dist/integrations/providers/payments/capabilities.js +1 -0
- package/dist/integrations/providers/payments/context.d.ts +75 -0
- package/dist/integrations/providers/payments/context.js +2 -0
- package/dist/integrations/providers/payments/provider.d.ts +22 -0
- package/dist/integrations/providers/payments/provider.js +1 -0
- package/dist/integrations/providers/payments/resources.d.ts +97 -0
- package/dist/integrations/providers/payments/resources.js +1 -0
- package/dist/integrations/providers/payments/shared.d.ts +61 -0
- package/dist/integrations/providers/payments/shared.js +2 -0
- package/dist/integrations/providers/payments.d.ts +5 -0
- package/dist/integrations/providers/payments.js +2 -0
- package/dist/integrations/providers/payments.test.d.ts +1 -0
- package/dist/integrations/providers/paypal.d.ts +3 -0
- package/dist/integrations/providers/paypal.js +2 -0
- package/dist/integrations/providers/peloton.d.ts +3 -0
- package/dist/integrations/providers/peloton.js +2 -0
- package/dist/integrations/providers/posthog-llm-telemetry.d.ts +51 -0
- package/dist/integrations/providers/posthog-llm-telemetry.js +2 -0
- package/dist/integrations/providers/posthog.d.ts +3 -0
- package/dist/integrations/providers/posthog.js +2 -0
- package/dist/integrations/providers/postmark.d.ts +3 -0
- package/dist/integrations/providers/postmark.js +2 -0
- package/dist/integrations/providers/powens.d.ts +3 -0
- package/dist/integrations/providers/powens.js +2 -0
- package/dist/integrations/providers/project-management.d.ts +196 -0
- package/dist/integrations/providers/project-management.js +2 -0
- package/dist/integrations/providers/provider-delta.d.ts +45 -0
- package/dist/integrations/providers/provider-delta.js +2 -0
- package/dist/integrations/providers/provider-delta.test.d.ts +1 -0
- package/dist/integrations/providers/provider-modes-coverage.test.d.ts +1 -0
- package/dist/integrations/providers/providers.test.d.ts +1 -0
- package/dist/integrations/providers/qdrant.d.ts +3 -0
- package/dist/integrations/providers/qdrant.js +2 -0
- package/dist/integrations/providers/registry.d.ts +24 -0
- package/dist/integrations/providers/registry.js +2 -0
- package/dist/integrations/providers/reworkd.d.ts +3 -0
- package/dist/integrations/providers/reworkd.js +2 -0
- package/dist/integrations/providers/serper.d.ts +3 -0
- package/dist/integrations/providers/serper.js +2 -0
- package/dist/integrations/providers/sillage.d.ts +4 -0
- package/dist/integrations/providers/sillage.js +2 -0
- package/dist/integrations/providers/slng.d.ts +3 -0
- package/dist/integrations/providers/slng.js +2 -0
- package/dist/integrations/providers/sms.d.ts +31 -0
- package/dist/integrations/providers/sms.js +1 -0
- package/dist/integrations/providers/social.d.ts +8 -0
- package/dist/integrations/providers/social.js +2 -0
- package/dist/integrations/providers/storage.d.ts +65 -0
- package/dist/integrations/providers/storage.js +1 -0
- package/dist/integrations/providers/strava.d.ts +3 -0
- package/dist/integrations/providers/strava.js +2 -0
- package/dist/integrations/providers/stripe.d.ts +3 -0
- package/dist/integrations/providers/stripe.js +2 -0
- package/dist/integrations/providers/supabase-postgres.d.ts +3 -0
- package/dist/integrations/providers/supabase-postgres.js +2 -0
- package/dist/integrations/providers/supabase-vector.d.ts +3 -0
- package/dist/integrations/providers/supabase-vector.js +2 -0
- package/dist/integrations/providers/tavily.d.ts +8 -0
- package/dist/integrations/providers/tavily.js +2 -0
- package/dist/integrations/providers/tldv.d.ts +3 -0
- package/dist/integrations/providers/tldv.js +2 -0
- package/dist/integrations/providers/twilio-sms.d.ts +3 -0
- package/dist/integrations/providers/twilio-sms.js +2 -0
- package/dist/integrations/providers/vector-store.d.ts +39 -0
- package/dist/integrations/providers/vector-store.js +1 -0
- package/dist/integrations/providers/video.d.ts +181 -0
- package/dist/integrations/providers/video.js +2 -0
- package/dist/integrations/providers/voice-video-sync.d.ts +29 -0
- package/dist/integrations/providers/voice-video-sync.js +1 -0
- package/dist/integrations/providers/voice.d.ts +180 -0
- package/dist/integrations/providers/voice.js +1 -0
- package/dist/integrations/providers/web-access-shared.d.ts +18 -0
- package/dist/integrations/providers/web-access-shared.js +2 -0
- package/dist/integrations/providers/whoop.d.ts +3 -0
- package/dist/integrations/providers/whoop.js +2 -0
- package/dist/integrations/runtime-transport.test.d.ts +1 -0
- package/dist/integrations/runtime.d.ts +140 -0
- package/dist/integrations/runtime.js +2 -0
- package/dist/integrations/runtime.test.d.ts +1 -0
- package/dist/integrations/sales-intelligence/events.d.ts +182 -0
- package/dist/integrations/sales-intelligence/events.js +2 -0
- package/dist/integrations/sales-intelligence/events.test.d.ts +1 -0
- package/dist/integrations/sales-intelligence/fullenrich-cancel-operation.d.ts +39 -0
- package/dist/integrations/sales-intelligence/fullenrich-cancel-operation.js +2 -0
- package/dist/integrations/sales-intelligence/index.d.ts +7 -0
- package/dist/integrations/sales-intelligence/index.js +2 -0
- package/dist/integrations/sales-intelligence/operation-helpers.d.ts +4 -0
- package/dist/integrations/sales-intelligence/operation-helpers.js +2 -0
- package/dist/integrations/sales-intelligence/operations.d.ts +873 -0
- package/dist/integrations/sales-intelligence/operations.js +2 -0
- package/dist/integrations/sales-intelligence/operations.test.d.ts +1 -0
- package/dist/integrations/sales-intelligence/schemas-events.d.ts +78 -0
- package/dist/integrations/sales-intelligence/schemas-events.js +2 -0
- package/dist/integrations/sales-intelligence/schemas-results.d.ts +69 -0
- package/dist/integrations/sales-intelligence/schemas-results.js +2 -0
- package/dist/integrations/sales-intelligence/schemas.d.ts +73 -0
- package/dist/integrations/sales-intelligence/schemas.js +2 -0
- package/dist/integrations/secrets/aws-secret-manager.d.ts +28 -0
- package/dist/integrations/secrets/aws-secret-manager.js +2 -0
- package/dist/integrations/secrets/env-secret-provider.d.ts +28 -0
- package/dist/integrations/secrets/env-secret-provider.js +2 -0
- package/dist/integrations/secrets/gcp-secret-manager.d.ts +29 -0
- package/dist/integrations/secrets/gcp-secret-manager.js +2 -0
- package/dist/integrations/secrets/index.d.ts +6 -0
- package/dist/integrations/secrets/index.js +2 -0
- package/dist/integrations/secrets/manager.d.ts +44 -0
- package/dist/integrations/secrets/manager.js +2 -0
- package/dist/integrations/secrets/provider.d.ts +49 -0
- package/dist/integrations/secrets/provider.js +2 -0
- package/dist/integrations/secrets/provider.test.d.ts +1 -0
- package/dist/integrations/secrets/scaleway-secret-manager.d.ts +35 -0
- package/dist/integrations/secrets/scaleway-secret-manager.js +2 -0
- package/dist/integrations/secrets-types.d.ts +14 -0
- package/dist/integrations/secrets-types.js +1 -0
- package/dist/integrations/social/index.d.ts +7 -0
- package/dist/integrations/social/index.js +2 -0
- package/dist/integrations/social/instagram.d.ts +86 -0
- package/dist/integrations/social/instagram.js +1 -0
- package/dist/integrations/social/models.d.ts +107 -0
- package/dist/integrations/social/models.js +1 -0
- package/dist/integrations/social/provider.d.ts +46 -0
- package/dist/integrations/social/provider.js +2 -0
- package/dist/integrations/social/social.test.d.ts +1 -0
- package/dist/integrations/social/tracking-models.d.ts +153 -0
- package/dist/integrations/social/tracking-models.js +2 -0
- package/dist/integrations/social/tracking-provider.d.ts +53 -0
- package/dist/integrations/social/tracking-provider.js +1 -0
- package/dist/integrations/social/tracking-store.d.ts +78 -0
- package/dist/integrations/social/tracking-store.js +1 -0
- package/dist/integrations/social/x-publication.d.ts +143 -0
- package/dist/integrations/social/x-publication.js +2 -0
- package/dist/integrations/social/x-upload-state.d.ts +53 -0
- package/dist/integrations/social/x-upload-state.js +2 -0
- package/dist/integrations/social/x-upload.d.ts +111 -0
- package/dist/integrations/social/x-upload.js +2 -0
- package/dist/integrations/social/x-withdrawal.d.ts +13 -0
- package/dist/integrations/social/x-withdrawal.js +2 -0
- package/dist/integrations/social/x.d.ts +84 -0
- package/dist/integrations/social/x.js +1 -0
- package/dist/integrations/spec.d.ts +119 -0
- package/dist/integrations/spec.js +2 -0
- package/dist/integrations/spec.test.d.ts +1 -0
- package/dist/integrations/transport.d.ts +115 -0
- package/dist/integrations/transport.js +2 -0
- package/dist/integrations/transport.test.d.ts +1 -0
- package/dist/integrations/versioning.d.ts +51 -0
- package/dist/integrations/versioning.js +2 -0
- package/dist/integrations/versioning.test.d.ts +1 -0
- package/dist/integrations/web-access/browser-automation.d.ts +134 -0
- package/dist/integrations/web-access/browser-automation.js +2 -0
- package/dist/integrations/web-access/capability-ledger.d.ts +50 -0
- package/dist/integrations/web-access/capability-ledger.js +2 -0
- package/dist/integrations/web-access/capability-ledger.test.d.ts +1 -0
- package/dist/integrations/web-access/events.d.ts +105 -0
- package/dist/integrations/web-access/events.js +2 -0
- package/dist/integrations/web-access/index.d.ts +16 -0
- package/dist/integrations/web-access/index.js +22 -0
- package/dist/integrations/web-access/inventory-definitions-expanded.d.ts +2 -0
- package/dist/integrations/web-access/inventory-definitions-expanded.js +2 -0
- package/dist/integrations/web-access/inventory-definitions.d.ts +17 -0
- package/dist/integrations/web-access/inventory-definitions.js +2 -0
- package/dist/integrations/web-access/inventory-evidence.d.ts +24 -0
- package/dist/integrations/web-access/inventory-evidence.js +2 -0
- package/dist/integrations/web-access/inventory-mappings-browserbase.d.ts +2 -0
- package/dist/integrations/web-access/inventory-mappings-browserbase.js +2 -0
- package/dist/integrations/web-access/inventory-mappings.d.ts +54 -0
- package/dist/integrations/web-access/inventory-mappings.js +2 -0
- package/dist/integrations/web-access/inventory.d.ts +4 -0
- package/dist/integrations/web-access/inventory.js +2 -0
- package/dist/integrations/web-access/models.d.ts +145 -0
- package/dist/integrations/web-access/models.js +2 -0
- package/dist/integrations/web-access/operation-definitions.d.ts +19 -0
- package/dist/integrations/web-access/operation-definitions.js +2 -0
- package/dist/integrations/web-access/operation-errors.d.ts +56 -0
- package/dist/integrations/web-access/operation-errors.js +2 -0
- package/dist/integrations/web-access/operation-output-models.d.ts +177 -0
- package/dist/integrations/web-access/operation-output-models.js +2 -0
- package/dist/integrations/web-access/operation-schema-models.d.ts +453 -0
- package/dist/integrations/web-access/operation-schema-models.js +2 -0
- package/dist/integrations/web-access/operation-schemas.d.ts +165 -0
- package/dist/integrations/web-access/operation-schemas.js +2 -0
- package/dist/integrations/web-access/operations.d.ts +22 -0
- package/dist/integrations/web-access/operations.js +22 -0
- package/dist/integrations/web-access/operations.test.d.ts +1 -0
- package/dist/integrations/web-access/providers.d.ts +56 -0
- package/dist/integrations/web-access/providers.js +1 -0
- package/dist/integrations/web-access/providers.test.d.ts +1 -0
- package/dist/integrations/web-access/schemas.d.ts +118 -0
- package/dist/integrations/web-access/schemas.js +2 -0
- package/dist/node/contracts-integrations.feature.js +1 -0
- package/dist/node/index.js +21 -0
- package/dist/node/integrations/advertising/index.js +1 -0
- package/dist/node/integrations/advertising/recipe-schema.js +1 -0
- package/dist/node/integrations/advertising/recipe.js +0 -0
- package/dist/node/integrations/advertising/specs.js +1 -0
- package/dist/node/integrations/advertising/types.js +1 -0
- package/dist/node/integrations/attio/events.js +1 -0
- package/dist/node/integrations/attio/index.js +1 -0
- package/dist/node/integrations/attio/operations.js +1 -0
- package/dist/node/integrations/auth-helpers.js +1 -0
- package/dist/node/integrations/auth.js +1 -0
- package/dist/node/integrations/binding.js +0 -0
- package/dist/node/integrations/byok.js +1 -0
- package/dist/node/integrations/catalog.js +1 -0
- package/dist/node/integrations/clay/events.js +1 -0
- package/dist/node/integrations/clay/index.js +1 -0
- package/dist/node/integrations/clay/operations.js +1 -0
- package/dist/node/integrations/connection.js +0 -0
- package/dist/node/integrations/credentials.js +1 -0
- package/dist/node/integrations/deployment-topology-model.js +1 -0
- package/dist/node/integrations/deployment-topology-receipt.js +1 -0
- package/dist/node/integrations/deployment-topology-validation.js +1 -0
- package/dist/node/integrations/deployment-topology.js +1 -0
- package/dist/node/integrations/docs/integrations.docblock.js +100 -0
- package/dist/node/integrations/email-operations.js +1 -0
- package/dist/node/integrations/gtm/capability-ledger.fixture-helpers.js +1 -0
- package/dist/node/integrations/gtm/capability-ledger.fixtures.js +1 -0
- package/dist/node/integrations/gtm/capability-ledger.js +1 -0
- package/dist/node/integrations/gtm/hosted-mcp.js +1 -0
- package/dist/node/integrations/gtm/index.js +1 -0
- package/dist/node/integrations/gtm/inventory/attio.js +1 -0
- package/dist/node/integrations/gtm/inventory/clay.js +1 -0
- package/dist/node/integrations/gtm/inventory/fullenrich.js +1 -0
- package/dist/node/integrations/gtm/inventory/index.js +1 -0
- package/dist/node/integrations/gtm/inventory/types.js +0 -0
- package/dist/node/integrations/gtm/preflight.js +1 -0
- package/dist/node/integrations/gtm/schemas.js +1 -0
- package/dist/node/integrations/gtm/webhook-ingress.js +1 -0
- package/dist/node/integrations/health/contracts/activities.js +1 -0
- package/dist/node/integrations/health/contracts/biometrics.js +1 -0
- package/dist/node/integrations/health/contracts/index.js +1 -0
- package/dist/node/integrations/health/contracts/nutrition.js +1 -0
- package/dist/node/integrations/health/contracts/sleep.js +1 -0
- package/dist/node/integrations/health/contracts/webhooks.js +1 -0
- package/dist/node/integrations/health/contracts/workouts.js +1 -0
- package/dist/node/integrations/health/guards.js +1 -0
- package/dist/node/integrations/health/health.capability.js +1 -0
- package/dist/node/integrations/health/health.feature.js +1 -0
- package/dist/node/integrations/health/models.js +1 -0
- package/dist/node/integrations/health/telemetry.js +1 -0
- package/dist/node/integrations/health.js +1 -0
- package/dist/node/integrations/index.js +21 -0
- package/dist/node/integrations/integrations.capability.js +1 -0
- package/dist/node/integrations/integrations.feature.js +1 -0
- package/dist/node/integrations/linkedin/advertising.js +0 -0
- package/dist/node/integrations/linkedin/analytics.js +0 -0
- package/dist/node/integrations/linkedin/capabilities.js +1 -0
- package/dist/node/integrations/linkedin/community.js +0 -0
- package/dist/node/integrations/linkedin/credentials.js +1 -0
- package/dist/node/integrations/linkedin/host.js +1 -0
- package/dist/node/integrations/linkedin/identity.js +0 -0
- package/dist/node/integrations/linkedin/index.js +1 -0
- package/dist/node/integrations/linkedin/installation.js +1 -0
- package/dist/node/integrations/linkedin/media-job-state.js +1 -0
- package/dist/node/integrations/linkedin/media-job.js +1 -0
- package/dist/node/integrations/linkedin/media-session.js +1 -0
- package/dist/node/integrations/linkedin/media.js +1 -0
- package/dist/node/integrations/linkedin/messaging.js +0 -0
- package/dist/node/integrations/linkedin/models.js +0 -0
- package/dist/node/integrations/linkedin/native-publication.js +1 -0
- package/dist/node/integrations/linkedin/native-withdrawal.js +1 -0
- package/dist/node/integrations/linkedin/operation-catalog.js +1 -0
- package/dist/node/integrations/linkedin/operations.js +1 -0
- package/dist/node/integrations/linkedin/provider.js +1 -0
- package/dist/node/integrations/linkedin/sales.js +0 -0
- package/dist/node/integrations/linkedin/sync.js +0 -0
- package/dist/node/integrations/linkedin/webhooks.js +0 -0
- package/dist/node/integrations/meeting-recorder/contracts/index.js +1 -0
- package/dist/node/integrations/meeting-recorder/contracts/meetings.js +1 -0
- package/dist/node/integrations/meeting-recorder/contracts/transcripts.js +1 -0
- package/dist/node/integrations/meeting-recorder/contracts/webhooks.js +1 -0
- package/dist/node/integrations/meeting-recorder/meeting-recorder.capability.js +1 -0
- package/dist/node/integrations/meeting-recorder/meeting-recorder.feature.js +1 -0
- package/dist/node/integrations/meeting-recorder/models.js +1 -0
- package/dist/node/integrations/meeting-recorder/telemetry.js +1 -0
- package/dist/node/integrations/openbanking/contracts/accounts.js +1 -0
- package/dist/node/integrations/openbanking/contracts/balances.js +1 -0
- package/dist/node/integrations/openbanking/contracts/index.js +1 -0
- package/dist/node/integrations/openbanking/contracts/transactions.js +1 -0
- package/dist/node/integrations/openbanking/guards.js +1 -0
- package/dist/node/integrations/openbanking/models.js +1 -0
- package/dist/node/integrations/openbanking/openbanking.capability.js +1 -0
- package/dist/node/integrations/openbanking/openbanking.feature.js +1 -0
- package/dist/node/integrations/openbanking/telemetry.js +1 -0
- package/dist/node/integrations/operations.js +21 -0
- package/dist/node/integrations/providers/analytics-reader.js +0 -0
- package/dist/node/integrations/providers/analytics-writer.js +0 -0
- package/dist/node/integrations/providers/analytics.js +0 -0
- package/dist/node/integrations/providers/apify.js +1 -0
- package/dist/node/integrations/providers/apple-health.js +1 -0
- package/dist/node/integrations/providers/async-media-record.js +1 -0
- package/dist/node/integrations/providers/async-media.js +0 -0
- package/dist/node/integrations/providers/attio.js +1 -0
- package/dist/node/integrations/providers/bright-data.js +1 -0
- package/dist/node/integrations/providers/browserbase.js +1 -0
- package/dist/node/integrations/providers/calendar.d.js +0 -0
- package/dist/node/integrations/providers/calendar.js +0 -0
- package/dist/node/integrations/providers/catalog.js +1 -0
- package/dist/node/integrations/providers/clay.js +1 -0
- package/dist/node/integrations/providers/communication-channel.js +1 -0
- package/dist/node/integrations/providers/composio.js +1 -0
- package/dist/node/integrations/providers/crm-fixture-core.js +1 -0
- package/dist/node/integrations/providers/crm-hubspot-fixture.js +1 -0
- package/dist/node/integrations/providers/crm-salesforce-fixture.js +1 -0
- package/dist/node/integrations/providers/crm-write-proposal-types.js +1 -0
- package/dist/node/integrations/providers/crm-write-proposal.js +1 -0
- package/dist/node/integrations/providers/crm.js +1 -0
- package/dist/node/integrations/providers/database.js +0 -0
- package/dist/node/integrations/providers/deepgram.js +1 -0
- package/dist/node/integrations/providers/direct-fetch.js +1 -0
- package/dist/node/integrations/providers/eightsleep.js +1 -0
- package/dist/node/integrations/providers/elevenlabs.js +1 -0
- package/dist/node/integrations/providers/email-delivery-events.js +0 -0
- package/dist/node/integrations/providers/email.js +0 -0
- package/dist/node/integrations/providers/embedding.js +0 -0
- package/dist/node/integrations/providers/fal-image.js +1 -0
- package/dist/node/integrations/providers/fal.js +1 -0
- package/dist/node/integrations/providers/fathom.js +1 -0
- package/dist/node/integrations/providers/firecrawl.js +1 -0
- package/dist/node/integrations/providers/fireflies.js +1 -0
- package/dist/node/integrations/providers/fitbit.js +1 -0
- package/dist/node/integrations/providers/fullenrich.js +1 -0
- package/dist/node/integrations/providers/garmin.js +1 -0
- package/dist/node/integrations/providers/gcs-storage.js +1 -0
- package/dist/node/integrations/providers/gmail.js +1 -0
- package/dist/node/integrations/providers/google-calendar.js +1 -0
- package/dist/node/integrations/providers/google-drive.js +1 -0
- package/dist/node/integrations/providers/gradium.js +1 -0
- package/dist/node/integrations/providers/granola.js +1 -0
- package/dist/node/integrations/providers/health-provider-shared.js +1 -0
- package/dist/node/integrations/providers/health.js +0 -0
- package/dist/node/integrations/providers/higgsfield.js +1 -0
- package/dist/node/integrations/providers/image.js +1 -0
- package/dist/node/integrations/providers/index.js +1 -0
- package/dist/node/integrations/providers/jira.js +1 -0
- package/dist/node/integrations/providers/linear.js +1 -0
- package/dist/node/integrations/providers/linkedin-community.js +1 -0
- package/dist/node/integrations/providers/linkedin-marketing.js +1 -0
- package/dist/node/integrations/providers/linkedin-member.js +1 -0
- package/dist/node/integrations/providers/linkedin-messaging.js +1 -0
- package/dist/node/integrations/providers/linkedin-sales-navigator.js +1 -0
- package/dist/node/integrations/providers/linkedin-spec-shared.js +1 -0
- package/dist/node/integrations/providers/linkup.js +1 -0
- package/dist/node/integrations/providers/llm.js +0 -0
- package/dist/node/integrations/providers/massive.js +1 -0
- package/dist/node/integrations/providers/meeting-capture.js +0 -0
- package/dist/node/integrations/providers/meeting-recorder.js +0 -0
- package/dist/node/integrations/providers/messaging-github.js +1 -0
- package/dist/node/integrations/providers/messaging-matrix.js +1 -0
- package/dist/node/integrations/providers/messaging-slack.js +1 -0
- package/dist/node/integrations/providers/messaging-teams.js +1 -0
- package/dist/node/integrations/providers/messaging-telegram.js +1 -0
- package/dist/node/integrations/providers/messaging-whatsapp-meta.js +1 -0
- package/dist/node/integrations/providers/messaging-whatsapp-twilio.js +1 -0
- package/dist/node/integrations/providers/messaging.js +0 -0
- package/dist/node/integrations/providers/mistral-conversational.js +1 -0
- package/dist/node/integrations/providers/mistral-stt.js +1 -0
- package/dist/node/integrations/providers/mistral.js +1 -0
- package/dist/node/integrations/providers/mode-exemptions.js +1 -0
- package/dist/node/integrations/providers/myfitnesspal.js +1 -0
- package/dist/node/integrations/providers/notion.js +1 -0
- package/dist/node/integrations/providers/openai-image.js +1 -0
- package/dist/node/integrations/providers/openai-realtime.js +1 -0
- package/dist/node/integrations/providers/openbanking.js +0 -0
- package/dist/node/integrations/providers/openwearables.js +1 -0
- package/dist/node/integrations/providers/oura.js +1 -0
- package/dist/node/integrations/providers/oxylabs.js +1 -0
- package/dist/node/integrations/providers/payments/capabilities-billing.js +0 -0
- package/dist/node/integrations/providers/payments/capabilities-payments.js +0 -0
- package/dist/node/integrations/providers/payments/capabilities.js +0 -0
- package/dist/node/integrations/providers/payments/context.js +1 -0
- package/dist/node/integrations/providers/payments/provider.js +0 -0
- package/dist/node/integrations/providers/payments/resources.js +0 -0
- package/dist/node/integrations/providers/payments/shared.js +1 -0
- package/dist/node/integrations/providers/payments.js +1 -0
- package/dist/node/integrations/providers/paypal.js +1 -0
- package/dist/node/integrations/providers/peloton.js +1 -0
- package/dist/node/integrations/providers/posthog-llm-telemetry.js +1 -0
- package/dist/node/integrations/providers/posthog.js +1 -0
- package/dist/node/integrations/providers/postmark.js +1 -0
- package/dist/node/integrations/providers/powens.js +1 -0
- package/dist/node/integrations/providers/project-management.js +1 -0
- package/dist/node/integrations/providers/provider-delta.js +1 -0
- package/dist/node/integrations/providers/qdrant.js +1 -0
- package/dist/node/integrations/providers/registry.js +1 -0
- package/dist/node/integrations/providers/reworkd.js +1 -0
- package/dist/node/integrations/providers/serper.js +1 -0
- package/dist/node/integrations/providers/sillage.js +1 -0
- package/dist/node/integrations/providers/slng.js +1 -0
- package/dist/node/integrations/providers/sms.js +0 -0
- package/dist/node/integrations/providers/social.js +1 -0
- package/dist/node/integrations/providers/storage.js +0 -0
- package/dist/node/integrations/providers/strava.js +1 -0
- package/dist/node/integrations/providers/stripe.js +1 -0
- package/dist/node/integrations/providers/supabase-postgres.js +1 -0
- package/dist/node/integrations/providers/supabase-vector.js +1 -0
- package/dist/node/integrations/providers/tavily.js +1 -0
- package/dist/node/integrations/providers/tldv.js +1 -0
- package/dist/node/integrations/providers/twilio-sms.js +1 -0
- package/dist/node/integrations/providers/vector-store.js +0 -0
- package/dist/node/integrations/providers/video.js +1 -0
- package/dist/node/integrations/providers/voice-video-sync.js +0 -0
- package/dist/node/integrations/providers/voice.js +0 -0
- package/dist/node/integrations/providers/web-access-shared.js +1 -0
- package/dist/node/integrations/providers/whoop.js +1 -0
- package/dist/node/integrations/runtime.js +1 -0
- package/dist/node/integrations/sales-intelligence/events.js +1 -0
- package/dist/node/integrations/sales-intelligence/fullenrich-cancel-operation.js +1 -0
- package/dist/node/integrations/sales-intelligence/index.js +1 -0
- package/dist/node/integrations/sales-intelligence/operation-helpers.js +1 -0
- package/dist/node/integrations/sales-intelligence/operations.js +1 -0
- package/dist/node/integrations/sales-intelligence/schemas-events.js +1 -0
- package/dist/node/integrations/sales-intelligence/schemas-results.js +1 -0
- package/dist/node/integrations/sales-intelligence/schemas.js +1 -0
- package/dist/node/integrations/secrets/aws-secret-manager.js +1 -0
- package/dist/node/integrations/secrets/env-secret-provider.js +1 -0
- package/dist/node/integrations/secrets/gcp-secret-manager.js +1 -0
- package/dist/node/integrations/secrets/index.js +1 -0
- package/dist/node/integrations/secrets/manager.js +1 -0
- package/dist/node/integrations/secrets/provider.js +1 -0
- package/dist/node/integrations/secrets/scaleway-secret-manager.js +1 -0
- package/dist/node/integrations/secrets-types.js +0 -0
- package/dist/node/integrations/social/index.js +1 -0
- package/dist/node/integrations/social/instagram.js +0 -0
- package/dist/node/integrations/social/models.js +0 -0
- package/dist/node/integrations/social/provider.js +1 -0
- package/dist/node/integrations/social/tracking-models.js +1 -0
- package/dist/node/integrations/social/tracking-provider.js +0 -0
- package/dist/node/integrations/social/tracking-store.js +0 -0
- package/dist/node/integrations/social/x-publication.js +1 -0
- package/dist/node/integrations/social/x-upload-state.js +1 -0
- package/dist/node/integrations/social/x-upload.js +1 -0
- package/dist/node/integrations/social/x-withdrawal.js +1 -0
- package/dist/node/integrations/social/x.js +0 -0
- package/dist/node/integrations/spec.js +1 -0
- package/dist/node/integrations/transport.js +1 -0
- package/dist/node/integrations/versioning.js +1 -0
- package/dist/node/integrations/web-access/browser-automation.js +1 -0
- package/dist/node/integrations/web-access/capability-ledger.js +1 -0
- package/dist/node/integrations/web-access/events.js +1 -0
- package/dist/node/integrations/web-access/index.js +21 -0
- package/dist/node/integrations/web-access/inventory-definitions-expanded.js +1 -0
- package/dist/node/integrations/web-access/inventory-definitions.js +1 -0
- package/dist/node/integrations/web-access/inventory-evidence.js +1 -0
- package/dist/node/integrations/web-access/inventory-mappings-browserbase.js +1 -0
- package/dist/node/integrations/web-access/inventory-mappings.js +1 -0
- package/dist/node/integrations/web-access/inventory.js +1 -0
- package/dist/node/integrations/web-access/models.js +1 -0
- package/dist/node/integrations/web-access/operation-definitions.js +1 -0
- package/dist/node/integrations/web-access/operation-errors.js +1 -0
- package/dist/node/integrations/web-access/operation-output-models.js +1 -0
- package/dist/node/integrations/web-access/operation-schema-models.js +1 -0
- package/dist/node/integrations/web-access/operation-schemas.js +1 -0
- package/dist/node/integrations/web-access/operations.js +21 -0
- package/dist/node/integrations/web-access/providers.js +0 -0
- package/dist/node/integrations/web-access/schemas.js +1 -0
- package/package.json +3606 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const XPublicationPartSchema: z.ZodObject<{
|
|
3
|
+
text: z.ZodString;
|
|
4
|
+
madeWithAi: z.ZodBoolean;
|
|
5
|
+
paidPartnership: z.ZodBoolean;
|
|
6
|
+
media: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
|
+
kind: z.ZodLiteral<"images">;
|
|
8
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
key: z.ZodString;
|
|
11
|
+
}, z.core.$strict>>;
|
|
12
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13
|
+
kind: z.ZodLiteral<"video">;
|
|
14
|
+
asset: z.ZodObject<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
key: z.ZodString;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
19
|
+
kind: z.ZodLiteral<"gif">;
|
|
20
|
+
asset: z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
key: z.ZodString;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
}, z.core.$strict>], "kind">>;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
/** The host qualifies weighted text limits, account tier, reply eligibility, media ownership and disclosures. */
|
|
27
|
+
export declare const XPublicationPlanSchema: z.ZodObject<{
|
|
28
|
+
tenantId: z.ZodString;
|
|
29
|
+
accountId: z.ZodString;
|
|
30
|
+
contentRevisionId: z.ZodString;
|
|
31
|
+
contentDigest: z.ZodString;
|
|
32
|
+
authorId: z.ZodString;
|
|
33
|
+
qualificationRef: z.ZodString;
|
|
34
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
35
|
+
text: z.ZodString;
|
|
36
|
+
madeWithAi: z.ZodBoolean;
|
|
37
|
+
paidPartnership: z.ZodBoolean;
|
|
38
|
+
media: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39
|
+
kind: z.ZodLiteral<"images">;
|
|
40
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
41
|
+
id: z.ZodString;
|
|
42
|
+
key: z.ZodString;
|
|
43
|
+
}, z.core.$strict>>;
|
|
44
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
45
|
+
kind: z.ZodLiteral<"video">;
|
|
46
|
+
asset: z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
key: z.ZodString;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51
|
+
kind: z.ZodLiteral<"gif">;
|
|
52
|
+
asset: z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
key: z.ZodString;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
}, z.core.$strict>], "kind">>;
|
|
57
|
+
}, z.core.$strict>>;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
export declare const XPublicationRecordSchema: z.ZodObject<{
|
|
60
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
key: z.ZodString;
|
|
63
|
+
plan: z.ZodObject<{
|
|
64
|
+
tenantId: z.ZodString;
|
|
65
|
+
accountId: z.ZodString;
|
|
66
|
+
contentRevisionId: z.ZodString;
|
|
67
|
+
contentDigest: z.ZodString;
|
|
68
|
+
authorId: z.ZodString;
|
|
69
|
+
qualificationRef: z.ZodString;
|
|
70
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
71
|
+
text: z.ZodString;
|
|
72
|
+
madeWithAi: z.ZodBoolean;
|
|
73
|
+
paidPartnership: z.ZodBoolean;
|
|
74
|
+
media: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
75
|
+
kind: z.ZodLiteral<"images">;
|
|
76
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
77
|
+
id: z.ZodString;
|
|
78
|
+
key: z.ZodString;
|
|
79
|
+
}, z.core.$strict>>;
|
|
80
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
81
|
+
kind: z.ZodLiteral<"video">;
|
|
82
|
+
asset: z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
key: z.ZodString;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
87
|
+
kind: z.ZodLiteral<"gif">;
|
|
88
|
+
asset: z.ZodObject<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
key: z.ZodString;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
}, z.core.$strict>], "kind">>;
|
|
93
|
+
}, z.core.$strict>>;
|
|
94
|
+
}, z.core.$strict>;
|
|
95
|
+
planDigest: z.ZodString;
|
|
96
|
+
version: z.ZodNumber;
|
|
97
|
+
parts: z.ZodArray<z.ZodObject<{
|
|
98
|
+
state: z.ZodEnum<{
|
|
99
|
+
confirmed: "confirmed";
|
|
100
|
+
created: "created";
|
|
101
|
+
dispatching: "dispatching";
|
|
102
|
+
pending: "pending";
|
|
103
|
+
unknown: "unknown";
|
|
104
|
+
}>;
|
|
105
|
+
postId: z.ZodOptional<z.ZodString>;
|
|
106
|
+
requestDigest: z.ZodOptional<z.ZodString>;
|
|
107
|
+
authorityRef: z.ZodOptional<z.ZodString>;
|
|
108
|
+
grantRef: z.ZodOptional<z.ZodString>;
|
|
109
|
+
evidenceRef: z.ZodOptional<z.ZodString>;
|
|
110
|
+
submittedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
111
|
+
confirmation: z.ZodOptional<z.ZodObject<{
|
|
112
|
+
postId: z.ZodString;
|
|
113
|
+
authorId: z.ZodString;
|
|
114
|
+
authorityRef: z.ZodString;
|
|
115
|
+
replyToId: z.ZodOptional<z.ZodString>;
|
|
116
|
+
observedAt: z.ZodISODateTime;
|
|
117
|
+
responseDigest: z.ZodString;
|
|
118
|
+
mediaKeys: z.ZodArray<z.ZodString>;
|
|
119
|
+
media: z.ZodArray<z.ZodObject<{
|
|
120
|
+
key: z.ZodString;
|
|
121
|
+
type: z.ZodEnum<{
|
|
122
|
+
animated_gif: "animated_gif";
|
|
123
|
+
photo: "photo";
|
|
124
|
+
video: "video";
|
|
125
|
+
}>;
|
|
126
|
+
}, z.core.$strict>>;
|
|
127
|
+
}, z.core.$strict>>;
|
|
128
|
+
}, z.core.$strict>>;
|
|
129
|
+
}, z.core.$strict>;
|
|
130
|
+
export type XPublicationPlan = z.infer<typeof XPublicationPlanSchema>;
|
|
131
|
+
export type XPublicationRecord = z.infer<typeof XPublicationRecordSchema>;
|
|
132
|
+
export interface XPublicationStore {
|
|
133
|
+
get(tenantId: string, accountId: string, key: string): Promise<XPublicationRecord | undefined>;
|
|
134
|
+
reserve(record: XPublicationRecord): Promise<XPublicationRecord>;
|
|
135
|
+
save(record: XPublicationRecord, expectedVersion: number): Promise<boolean>;
|
|
136
|
+
}
|
|
137
|
+
export declare function xPublicationDigest(value: unknown): Promise<string>;
|
|
138
|
+
export declare function xPublicationBody(record: XPublicationRecord, index: number): Record<string, unknown>;
|
|
139
|
+
export declare function xPublicationMedia(record: XPublicationRecord, index: number): {
|
|
140
|
+
id: string;
|
|
141
|
+
key: string;
|
|
142
|
+
}[];
|
|
143
|
+
export declare function xPublicationRequestDigest(record: XPublicationRecord, index: number): Promise<string>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{z as e}from"zod";var a=e.string().trim().min(1).max(200),c=e.string().regex(/^[0-9]{1,30}$/),d=e.string().regex(/^sha256:[a-f0-9]{64}$/),u=e.strictObject({id:c,key:a}),p=e.strictObject({text:e.string().max(25000),madeWithAi:e.boolean(),paidPartnership:e.boolean(),media:e.discriminatedUnion("kind",[e.strictObject({kind:e.literal("images"),assets:e.array(u).min(1).max(4)}),e.strictObject({kind:e.literal("video"),asset:u}),e.strictObject({kind:e.literal("gif"),asset:u})]).optional()}).refine((i)=>i.text.trim().length>0||!!i.media,"A post requires text or media."),m=e.strictObject({tenantId:a,accountId:a,contentRevisionId:a,contentDigest:d,authorId:c,qualificationRef:a,parts:e.array(p).min(1).max(25)}),y=e.strictObject({schemaVersion:e.literal(1),id:a,key:a,plan:m,planDigest:d,version:e.number().int().positive(),parts:e.array(e.strictObject({state:e.enum(["pending","dispatching","created","confirmed","unknown"]),postId:c.optional(),requestDigest:d.optional(),authorityRef:a.optional(),grantRef:a.optional(),evidenceRef:a.optional(),submittedAt:e.iso.datetime().optional(),confirmation:e.strictObject({postId:c,authorId:c,authorityRef:a,replyToId:c.optional(),observedAt:e.iso.datetime(),responseDigest:d,mediaKeys:e.array(a).max(4),media:e.array(e.strictObject({key:a,type:e.enum(["photo","video","animated_gif"])})).max(4)}).optional()})).min(1).max(25)}).superRefine((i,n)=>{if(i.parts.length!==i.plan.parts.length)n.addIssue({code:"custom",message:"Part count changed."});for(let t of i.parts){if(t.state==="pending"&&(t.postId||t.requestDigest||t.authorityRef||t.grantRef||t.submittedAt||t.evidenceRef||t.confirmation))n.addIssue({code:"custom",message:"Pending parts cannot carry execution evidence."});if(t.state!=="pending"&&(!t.requestDigest||!t.authorityRef||!t.submittedAt||!t.grantRef))n.addIssue({code:"custom",message:"Dispatched parts require authority and request evidence."});if(["created","confirmed"].includes(t.state)&&!t.postId)n.addIssue({code:"custom",message:"Created parts require native identity."});if(t.state==="confirmed"&&(!t.evidenceRef||!t.confirmation))n.addIssue({code:"custom",message:"Confirmed parts require read evidence."})}});async function l(i){let n=(r)=>Array.isArray(r)?r.map(n):r&&typeof r==="object"?Object.fromEntries(Object.entries(r).sort(([o],[s])=>o<s?-1:o>s?1:0).map(([o,s])=>[o,n(s)])):r,t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(JSON.stringify(n(i))));return`sha256:${Array.from(new Uint8Array(t),(r)=>r.toString(16).padStart(2,"0")).join("")}`}function f(i,n){let t=i.plan.parts[n];if(!t)throw Error("X_PART_MISSING");let r=n>0?i.parts[n-1]?.postId:void 0;if(n>0&&!r)throw Error("X_PREDECESSOR_UNRESOLVED");let o=t.media?b(i,n).map((s)=>s.id):void 0;return{text:t.text,made_with_ai:t.madeWithAi,paid_partnership:t.paidPartnership,...o?{media:{media_ids:o}}:{},...r?{reply:{in_reply_to_tweet_id:r}}:{}}}function b(i,n){let t=i.plan.parts[n]?.media;return!t?[]:("assets"in t)?t.assets:[t.asset]}function h(i,n){return l({tenantId:i.plan.tenantId,accountId:i.plan.accountId,authorId:i.plan.authorId,publicationKey:i.key,partIndex:n,method:"POST",path:"/2/tweets",body:f(i,n)})}export{p as XPublicationPartSchema,m as XPublicationPlanSchema,y as XPublicationRecordSchema,f as xPublicationBody,l as xPublicationDigest,b as xPublicationMedia,h as xPublicationRequestDigest};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type XUploadRecord } from './x-upload.js';
|
|
2
|
+
export declare function xUploadAction(record: XUploadRecord, index: number): "append" | "finalize" | "initialize";
|
|
3
|
+
export declare function xUploadRequestDigest(record: XUploadRecord, index: number): Promise<string>;
|
|
4
|
+
/** Shared persistence invariant; no mutation may reset an uncertain request for resubmission. */
|
|
5
|
+
export declare function validateXUploadTransition(before: XUploadRecord, raw: XUploadRecord): Promise<{
|
|
6
|
+
schemaVersion: 1;
|
|
7
|
+
plan: {
|
|
8
|
+
tenantId: string;
|
|
9
|
+
workspaceId: string;
|
|
10
|
+
accountId: string;
|
|
11
|
+
key: string;
|
|
12
|
+
assetRevisionRef: string;
|
|
13
|
+
assetDigest: string;
|
|
14
|
+
rightsGrantRef: string;
|
|
15
|
+
qualificationRef: string;
|
|
16
|
+
category: "tweet_gif" | "tweet_image" | "tweet_video";
|
|
17
|
+
mediaType: "image/gif" | "image/jpeg" | "image/png" | "image/webp" | "video/mp4" | "video/quicktime" | "video/webm";
|
|
18
|
+
chunks: {
|
|
19
|
+
bytes: number;
|
|
20
|
+
digest: string;
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
planDigest: string;
|
|
24
|
+
version: number;
|
|
25
|
+
state: "expired" | "failed" | "processing" | "ready" | "uploading";
|
|
26
|
+
steps: {
|
|
27
|
+
state: "confirmed" | "dispatching" | "pending" | "unknown";
|
|
28
|
+
requestDigest?: string | undefined;
|
|
29
|
+
authorityRef?: string | undefined;
|
|
30
|
+
submittedAt?: string | undefined;
|
|
31
|
+
evidenceRef?: string | undefined;
|
|
32
|
+
}[];
|
|
33
|
+
native?: {
|
|
34
|
+
id: string;
|
|
35
|
+
key: string;
|
|
36
|
+
expiresAt: string;
|
|
37
|
+
} | undefined;
|
|
38
|
+
nextPollAt?: string | undefined;
|
|
39
|
+
processingEvidence?: {
|
|
40
|
+
observedAt: string;
|
|
41
|
+
responseDigest: string;
|
|
42
|
+
authorityRef: string;
|
|
43
|
+
} | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
/** Ready identity is usable only in its original scope and before native expiry. Rights are rechecked at publication. */
|
|
46
|
+
export declare function xUploadedAsset(record: XUploadRecord, scope: {
|
|
47
|
+
tenantId: string;
|
|
48
|
+
accountId: string;
|
|
49
|
+
assetRevisionRef: string;
|
|
50
|
+
}, now: Date): {
|
|
51
|
+
id: string;
|
|
52
|
+
key: string;
|
|
53
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{z as n}from"zod";var r=n.string().trim().min(1).max(200),p=n.string().regex(/^[0-9]{1,30}$/),g=n.string().regex(/^sha256:[a-f0-9]{64}$/),y=n.strictObject({id:p,key:r}),R=n.strictObject({text:n.string().max(25000),madeWithAi:n.boolean(),paidPartnership:n.boolean(),media:n.discriminatedUnion("kind",[n.strictObject({kind:n.literal("images"),assets:n.array(y).min(1).max(4)}),n.strictObject({kind:n.literal("video"),asset:y}),n.strictObject({kind:n.literal("gif"),asset:y})]).optional()}).refine((e)=>e.text.trim().length>0||!!e.media,"A post requires text or media."),b=n.strictObject({tenantId:r,accountId:r,contentRevisionId:r,contentDigest:g,authorId:p,qualificationRef:r,parts:n.array(R).min(1).max(25)}),U=n.strictObject({schemaVersion:n.literal(1),id:r,key:r,plan:b,planDigest:g,version:n.number().int().positive(),parts:n.array(n.strictObject({state:n.enum(["pending","dispatching","created","confirmed","unknown"]),postId:p.optional(),requestDigest:g.optional(),authorityRef:r.optional(),grantRef:r.optional(),evidenceRef:r.optional(),submittedAt:n.iso.datetime().optional(),confirmation:n.strictObject({postId:p,authorId:p,authorityRef:r,replyToId:p.optional(),observedAt:n.iso.datetime(),responseDigest:g,mediaKeys:n.array(r).max(4),media:n.array(n.strictObject({key:r,type:n.enum(["photo","video","animated_gif"])})).max(4)}).optional()})).min(1).max(25)}).superRefine((e,i)=>{if(e.parts.length!==e.plan.parts.length)i.addIssue({code:"custom",message:"Part count changed."});for(let t of e.parts){if(t.state==="pending"&&(t.postId||t.requestDigest||t.authorityRef||t.grantRef||t.submittedAt||t.evidenceRef||t.confirmation))i.addIssue({code:"custom",message:"Pending parts cannot carry execution evidence."});if(t.state!=="pending"&&(!t.requestDigest||!t.authorityRef||!t.submittedAt||!t.grantRef))i.addIssue({code:"custom",message:"Dispatched parts require authority and request evidence."});if(["created","confirmed"].includes(t.state)&&!t.postId)i.addIssue({code:"custom",message:"Created parts require native identity."});if(t.state==="confirmed"&&(!t.evidenceRef||!t.confirmation))i.addIssue({code:"custom",message:"Confirmed parts require read evidence."})}});async function u(e){let i=(o)=>Array.isArray(o)?o.map(i):o&&typeof o==="object"?Object.fromEntries(Object.entries(o).sort(([a],[d])=>a<d?-1:a>d?1:0).map(([a,d])=>[a,i(d)])):o,t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(JSON.stringify(i(e))));return`sha256:${Array.from(new Uint8Array(t),(o)=>o.toString(16).padStart(2,"0")).join("")}`}function v(e,i){let t=e.plan.parts[i];if(!t)throw Error("X_PART_MISSING");let o=i>0?e.parts[i-1]?.postId:void 0;if(i>0&&!o)throw Error("X_PREDECESSOR_UNRESOLVED");let a=t.media?I(e,i).map((d)=>d.id):void 0;return{text:t.text,made_with_ai:t.madeWithAi,paid_partnership:t.paidPartnership,...a?{media:{media_ids:a}}:{},...o?{reply:{in_reply_to_tweet_id:o}}:{}}}function I(e,i){let t=e.plan.parts[i]?.media;return!t?[]:("assets"in t)?t.assets:[t.asset]}function _(e,i){return u({tenantId:e.plan.tenantId,accountId:e.plan.accountId,authorId:e.plan.authorId,publicationKey:e.key,partIndex:i,method:"POST",path:"/2/tweets",body:v(e,i)})}import{z as s}from"zod";var c=s.string().trim().min(1).max(200),m=s.string().regex(/^sha256:[a-f0-9]{64}$/),P=s.strictObject({tenantId:c,workspaceId:c,accountId:c,key:c,assetRevisionRef:c,assetDigest:m,rightsGrantRef:c,qualificationRef:c,category:s.enum(["tweet_image","tweet_video","tweet_gif"]),mediaType:s.enum(["image/jpeg","image/png","image/webp","image/gif","video/mp4","video/webm","video/quicktime"]),chunks:s.array(s.strictObject({bytes:s.number().int().positive().max(5000000),digest:m})).min(1).max(500)}).superRefine((e,i)=>{if(!(e.category==="tweet_gif"?e.mediaType==="image/gif":e.category==="tweet_video"?e.mediaType.startsWith("video/"):e.mediaType.startsWith("image/")&&e.mediaType!=="image/gif"))i.addIssue({code:"custom",message:"Media type/category mismatch."})}),h=s.strictObject({schemaVersion:s.literal(1),plan:P,planDigest:m,version:s.number().int().positive(),state:s.enum(["uploading","processing","ready","failed","expired"]),steps:s.array(s.strictObject({state:s.enum(["pending","dispatching","unknown","confirmed"]),requestDigest:m.optional(),authorityRef:c.optional(),submittedAt:s.iso.datetime().optional(),evidenceRef:c.optional()})).min(3).max(502),native:s.strictObject({id:s.string().regex(/^[0-9]{1,19}$/),key:c,expiresAt:s.iso.datetime()}).optional(),nextPollAt:s.iso.datetime().optional(),processingEvidence:s.strictObject({observedAt:s.iso.datetime(),responseDigest:m,authorityRef:c}).optional()}).superRefine((e,i)=>{let t=(a)=>i.addIssue({code:"custom",message:a});if(e.steps.length!==e.plan.chunks.length+2)t("Upload step count changed.");let o=!1;for(let a of e.steps){if(o&&a.state!=="pending")t("Upload steps must execute sequentially.");if(a.state!=="confirmed")o=!0;if(a.state==="pending"&&Object.keys(a).length!==1)t("Pending steps have no dispatch evidence.");if(a.state!=="pending"&&(!a.requestDigest||!a.authorityRef||!a.submittedAt))t("Dispatched steps require evidence.");if(a.state==="confirmed"&&!a.evidenceRef)t("Confirmed steps require evidence.")}if(e.steps[0]?.state==="confirmed"&&!e.native)t("Initialized uploads require native identity.");if(["processing","ready"].includes(e.state)&&e.steps.some((a)=>a.state!=="confirmed"))t("Processing requires completed upload.");if(e.state==="ready"&&!e.processingEvidence)t("Ready media requires processing evidence.")});function x(e,i){return i===0?"initialize":i===e.steps.length-1?"finalize":"append"}async function w(e,i){return u({planDigest:e.planDigest,index:i,action:x(e,i),nativeId:i?e.native?.id:void 0})}async function T(e,i){let t=h.parse(i);if(t.version!==e.version+1||t.planDigest!==e.planDigest||await u(t.plan)!==e.planDigest)throw Error("X_UPLOAD_IMMUTABLE");if(e.native&&JSON.stringify(e.native)!==JSON.stringify(t.native))throw Error("X_UPLOAD_NATIVE_IMMUTABLE");if(["ready","failed","expired"].includes(e.state)){if(!(e.state==="ready"&&t.state==="expired"))throw Error("X_UPLOAD_TERMINAL")}let o=[];for(let a=0;a<e.steps.length;a++){let d=e.steps[a],l=t.steps[a];if(await u(d)===await u(l))continue;if(o.push(a),!{pending:["dispatching"],dispatching:["unknown","confirmed"],unknown:["confirmed"],confirmed:[]}[d.state].includes(l.state)||l.requestDigest!==await w(e,a))throw Error("X_UPLOAD_TRANSITION");for(let f of["requestDigest","authorityRef","submittedAt"])if(d[f]&&d[f]!==l[f])throw Error("X_UPLOAD_EVIDENCE_IMMUTABLE")}if(o.length>1||!e.native&&t.native&&!(o[0]===0&&t.steps[0]?.state==="confirmed"))throw Error("X_UPLOAD_TRANSITION");if(e.state==="processing"&&!["processing","ready","failed","expired"].includes(t.state))throw Error("X_UPLOAD_TRANSITION");if(!o.length&&t.state==="uploading")throw Error("X_UPLOAD_TRANSITION");return t}function q(e,i,t){if(h.parse(e),e.plan.tenantId!==i.tenantId||e.plan.accountId!==i.accountId||e.plan.assetRevisionRef!==i.assetRevisionRef||e.state!=="ready"||!e.native||!Number.isFinite(t.getTime())||Date.parse(e.native.expiresAt)<=t.getTime())throw Error("X_UPLOAD_NOT_READY");return{id:e.native.id,key:e.native.key}}export{T as validateXUploadTransition,x as xUploadAction,w as xUploadRequestDigest,q as xUploadedAsset};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const XUploadPlanSchema: z.ZodObject<{
|
|
3
|
+
tenantId: z.ZodString;
|
|
4
|
+
workspaceId: z.ZodString;
|
|
5
|
+
accountId: z.ZodString;
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
assetRevisionRef: z.ZodString;
|
|
8
|
+
assetDigest: z.ZodString;
|
|
9
|
+
rightsGrantRef: z.ZodString;
|
|
10
|
+
qualificationRef: z.ZodString;
|
|
11
|
+
category: z.ZodEnum<{
|
|
12
|
+
tweet_gif: "tweet_gif";
|
|
13
|
+
tweet_image: "tweet_image";
|
|
14
|
+
tweet_video: "tweet_video";
|
|
15
|
+
}>;
|
|
16
|
+
mediaType: z.ZodEnum<{
|
|
17
|
+
"image/gif": "image/gif";
|
|
18
|
+
"image/jpeg": "image/jpeg";
|
|
19
|
+
"image/png": "image/png";
|
|
20
|
+
"image/webp": "image/webp";
|
|
21
|
+
"video/mp4": "video/mp4";
|
|
22
|
+
"video/quicktime": "video/quicktime";
|
|
23
|
+
"video/webm": "video/webm";
|
|
24
|
+
}>;
|
|
25
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
26
|
+
bytes: z.ZodNumber;
|
|
27
|
+
digest: z.ZodString;
|
|
28
|
+
}, z.core.$strict>>;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
export declare const XUploadRecordSchema: z.ZodObject<{
|
|
31
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
32
|
+
plan: z.ZodObject<{
|
|
33
|
+
tenantId: z.ZodString;
|
|
34
|
+
workspaceId: z.ZodString;
|
|
35
|
+
accountId: z.ZodString;
|
|
36
|
+
key: z.ZodString;
|
|
37
|
+
assetRevisionRef: z.ZodString;
|
|
38
|
+
assetDigest: z.ZodString;
|
|
39
|
+
rightsGrantRef: z.ZodString;
|
|
40
|
+
qualificationRef: z.ZodString;
|
|
41
|
+
category: z.ZodEnum<{
|
|
42
|
+
tweet_gif: "tweet_gif";
|
|
43
|
+
tweet_image: "tweet_image";
|
|
44
|
+
tweet_video: "tweet_video";
|
|
45
|
+
}>;
|
|
46
|
+
mediaType: z.ZodEnum<{
|
|
47
|
+
"image/gif": "image/gif";
|
|
48
|
+
"image/jpeg": "image/jpeg";
|
|
49
|
+
"image/png": "image/png";
|
|
50
|
+
"image/webp": "image/webp";
|
|
51
|
+
"video/mp4": "video/mp4";
|
|
52
|
+
"video/quicktime": "video/quicktime";
|
|
53
|
+
"video/webm": "video/webm";
|
|
54
|
+
}>;
|
|
55
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
56
|
+
bytes: z.ZodNumber;
|
|
57
|
+
digest: z.ZodString;
|
|
58
|
+
}, z.core.$strict>>;
|
|
59
|
+
}, z.core.$strict>;
|
|
60
|
+
planDigest: z.ZodString;
|
|
61
|
+
version: z.ZodNumber;
|
|
62
|
+
state: z.ZodEnum<{
|
|
63
|
+
expired: "expired";
|
|
64
|
+
failed: "failed";
|
|
65
|
+
processing: "processing";
|
|
66
|
+
ready: "ready";
|
|
67
|
+
uploading: "uploading";
|
|
68
|
+
}>;
|
|
69
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
70
|
+
state: z.ZodEnum<{
|
|
71
|
+
confirmed: "confirmed";
|
|
72
|
+
dispatching: "dispatching";
|
|
73
|
+
pending: "pending";
|
|
74
|
+
unknown: "unknown";
|
|
75
|
+
}>;
|
|
76
|
+
requestDigest: z.ZodOptional<z.ZodString>;
|
|
77
|
+
authorityRef: z.ZodOptional<z.ZodString>;
|
|
78
|
+
submittedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
79
|
+
evidenceRef: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strict>>;
|
|
81
|
+
native: z.ZodOptional<z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
key: z.ZodString;
|
|
84
|
+
expiresAt: z.ZodISODateTime;
|
|
85
|
+
}, z.core.$strict>>;
|
|
86
|
+
nextPollAt: z.ZodOptional<z.ZodISODateTime>;
|
|
87
|
+
processingEvidence: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
observedAt: z.ZodISODateTime;
|
|
89
|
+
responseDigest: z.ZodString;
|
|
90
|
+
authorityRef: z.ZodString;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
export type XUploadPlan = z.infer<typeof XUploadPlanSchema>;
|
|
94
|
+
export type XUploadRecord = z.infer<typeof XUploadRecordSchema>;
|
|
95
|
+
export interface XUploadStore {
|
|
96
|
+
get(tenantId: string, accountId: string, key: string): Promise<XUploadRecord | undefined>;
|
|
97
|
+
reserve(record: XUploadRecord): Promise<XUploadRecord>;
|
|
98
|
+
save(record: XUploadRecord, expectedVersion: number): Promise<boolean>;
|
|
99
|
+
}
|
|
100
|
+
/** Host validates the immutable asset manifest, native access, technical limits and rights. */
|
|
101
|
+
export interface XUploadAuthority {
|
|
102
|
+
authorize(input: {
|
|
103
|
+
record: XUploadRecord;
|
|
104
|
+
action: 'read' | 'initialize' | 'append' | 'finalize' | 'status';
|
|
105
|
+
stepIndex?: number;
|
|
106
|
+
requestDigest?: string;
|
|
107
|
+
}): Promise<{
|
|
108
|
+
credentialRef: string;
|
|
109
|
+
receiptRef: string;
|
|
110
|
+
}>;
|
|
111
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{z as e}from"zod";var s=e.string().trim().min(1).max(200),n=e.string().regex(/^sha256:[a-f0-9]{64}$/),d=e.strictObject({tenantId:s,workspaceId:s,accountId:s,key:s,assetRevisionRef:s,assetDigest:n,rightsGrantRef:s,qualificationRef:s,category:e.enum(["tweet_image","tweet_video","tweet_gif"]),mediaType:e.enum(["image/jpeg","image/png","image/webp","image/gif","video/mp4","video/webm","video/quicktime"]),chunks:e.array(e.strictObject({bytes:e.number().int().positive().max(5000000),digest:n})).min(1).max(500)}).superRefine((t,o)=>{if(!(t.category==="tweet_gif"?t.mediaType==="image/gif":t.category==="tweet_video"?t.mediaType.startsWith("video/"):t.mediaType.startsWith("image/")&&t.mediaType!=="image/gif"))o.addIssue({code:"custom",message:"Media type/category mismatch."})}),c=e.strictObject({schemaVersion:e.literal(1),plan:d,planDigest:n,version:e.number().int().positive(),state:e.enum(["uploading","processing","ready","failed","expired"]),steps:e.array(e.strictObject({state:e.enum(["pending","dispatching","unknown","confirmed"]),requestDigest:n.optional(),authorityRef:s.optional(),submittedAt:e.iso.datetime().optional(),evidenceRef:s.optional()})).min(3).max(502),native:e.strictObject({id:e.string().regex(/^[0-9]{1,19}$/),key:s,expiresAt:e.iso.datetime()}).optional(),nextPollAt:e.iso.datetime().optional(),processingEvidence:e.strictObject({observedAt:e.iso.datetime(),responseDigest:n,authorityRef:s}).optional()}).superRefine((t,o)=>{let a=(i)=>o.addIssue({code:"custom",message:i});if(t.steps.length!==t.plan.chunks.length+2)a("Upload step count changed.");let r=!1;for(let i of t.steps){if(r&&i.state!=="pending")a("Upload steps must execute sequentially.");if(i.state!=="confirmed")r=!0;if(i.state==="pending"&&Object.keys(i).length!==1)a("Pending steps have no dispatch evidence.");if(i.state!=="pending"&&(!i.requestDigest||!i.authorityRef||!i.submittedAt))a("Dispatched steps require evidence.");if(i.state==="confirmed"&&!i.evidenceRef)a("Confirmed steps require evidence.")}if(t.steps[0]?.state==="confirmed"&&!t.native)a("Initialized uploads require native identity.");if(["processing","ready"].includes(t.state)&&t.steps.some((i)=>i.state!=="confirmed"))a("Processing requires completed upload.");if(t.state==="ready"&&!t.processingEvidence)a("Ready media requires processing evidence.")});export{d as XUploadPlanSchema,c as XUploadRecordSchema};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Authorized immutable mapping from a registered content use to its native post. */
|
|
3
|
+
export declare const XWithdrawalTargetSchema: z.ZodObject<{
|
|
4
|
+
tenantId: z.ZodString;
|
|
5
|
+
workspaceId: z.ZodString;
|
|
6
|
+
accountId: z.ZodString;
|
|
7
|
+
useId: z.ZodString;
|
|
8
|
+
publicationRef: z.ZodString;
|
|
9
|
+
postId: z.ZodString;
|
|
10
|
+
authorId: z.ZodString;
|
|
11
|
+
ownershipEvidenceRef: z.ZodString;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export type XWithdrawalTarget = z.infer<typeof XWithdrawalTargetSchema>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{z as t}from"zod";var i=t.strictObject({tenantId:t.string().min(1),workspaceId:t.string().min(1),accountId:t.string().min(1),useId:t.string().min(1),publicationRef:t.string().min(1),postId:t.string().regex(/^[0-9]{1,19}$/),authorId:t.string().regex(/^[0-9]{1,19}$/),ownershipEvidenceRef:t.string().min(1)});export{i as XWithdrawalTargetSchema};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export type XCapabilityId = 'x.content.read' | 'x.profile.read';
|
|
2
|
+
export interface XCapabilityDecision {
|
|
3
|
+
capability: XCapabilityId;
|
|
4
|
+
state: 'approval_required' | 'available' | 'disabled' | 'unavailable';
|
|
5
|
+
reason: string;
|
|
6
|
+
}
|
|
7
|
+
export interface XInstallation {
|
|
8
|
+
capabilities: readonly XCapabilityDecision[];
|
|
9
|
+
}
|
|
10
|
+
export interface XRequestContext {
|
|
11
|
+
capability: XCapabilityId;
|
|
12
|
+
connectionId: string;
|
|
13
|
+
installationId: string;
|
|
14
|
+
requestId: string;
|
|
15
|
+
tenantId: string;
|
|
16
|
+
workspaceId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface XProfileRecord {
|
|
19
|
+
description?: string;
|
|
20
|
+
displayName?: string;
|
|
21
|
+
followersCount?: number;
|
|
22
|
+
followingCount?: number;
|
|
23
|
+
id: string;
|
|
24
|
+
native: Record<string, unknown>;
|
|
25
|
+
profileImageUrl?: string;
|
|
26
|
+
tweetCount?: number;
|
|
27
|
+
username: string;
|
|
28
|
+
verified?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface XContentRecord {
|
|
31
|
+
authorId?: string;
|
|
32
|
+
commentCount?: number;
|
|
33
|
+
id: string;
|
|
34
|
+
kind: 'post' | 'reply' | 'repost' | 'thread';
|
|
35
|
+
likeCount?: number;
|
|
36
|
+
native: Record<string, unknown>;
|
|
37
|
+
permalink?: string;
|
|
38
|
+
publishedAt?: string;
|
|
39
|
+
text: string;
|
|
40
|
+
viewCount?: number;
|
|
41
|
+
}
|
|
42
|
+
export interface XPageInfo {
|
|
43
|
+
cursor?: string;
|
|
44
|
+
hasMore: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface XOperationResult<T> {
|
|
47
|
+
capability: XCapabilityDecision;
|
|
48
|
+
output: T;
|
|
49
|
+
providerRequestId?: string;
|
|
50
|
+
requestId: string;
|
|
51
|
+
}
|
|
52
|
+
export interface XSocialProvider {
|
|
53
|
+
discoverCapabilities(installation: XInstallation, requested?: readonly XCapabilityId[]): Promise<readonly XCapabilityDecision[]>;
|
|
54
|
+
getContent(request: {
|
|
55
|
+
context: XRequestContext;
|
|
56
|
+
effect: 'read';
|
|
57
|
+
input: {
|
|
58
|
+
id: string;
|
|
59
|
+
};
|
|
60
|
+
operationKey: 'x.content.get';
|
|
61
|
+
}): Promise<XOperationResult<XContentRecord>>;
|
|
62
|
+
getProfile(request: {
|
|
63
|
+
context: XRequestContext;
|
|
64
|
+
effect: 'read';
|
|
65
|
+
input: {
|
|
66
|
+
id?: string;
|
|
67
|
+
username?: string;
|
|
68
|
+
};
|
|
69
|
+
operationKey: 'x.profile.get';
|
|
70
|
+
}): Promise<XOperationResult<XProfileRecord>>;
|
|
71
|
+
listContent(request: {
|
|
72
|
+
context: XRequestContext;
|
|
73
|
+
effect: 'read';
|
|
74
|
+
input: {
|
|
75
|
+
cursor?: string;
|
|
76
|
+
limit?: number;
|
|
77
|
+
userId?: string;
|
|
78
|
+
};
|
|
79
|
+
operationKey: 'x.content.list';
|
|
80
|
+
}): Promise<XOperationResult<{
|
|
81
|
+
items: readonly XContentRecord[];
|
|
82
|
+
page: XPageInfo;
|
|
83
|
+
}>>;
|
|
84
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { IntegrationCategory, IntegrationOwnershipMode } from '@lssm/lib.contracts-spec/app-config';
|
|
2
|
+
import type { CapabilityRef, CapabilityRequirement } from '@lssm/lib.contracts-spec/capabilities';
|
|
3
|
+
import type { OwnerShipMeta } from '@lssm/lib.contracts-spec/ownership';
|
|
4
|
+
import { SpecContractRegistry } from '@lssm/lib.contracts-spec/registry';
|
|
5
|
+
import type { IntegrationAuthConfig } from './auth.js';
|
|
6
|
+
import type { IntegrationCredentialManifest } from './credentials.js';
|
|
7
|
+
import type { IntegrationTransportConfig, IntegrationTransportType } from './transport.js';
|
|
8
|
+
import type { IntegrationVersionPolicy } from './versioning.js';
|
|
9
|
+
export type { IntegrationCategory, IntegrationOwnershipMode };
|
|
10
|
+
export interface IntegrationMeta extends OwnerShipMeta {
|
|
11
|
+
category: IntegrationCategory;
|
|
12
|
+
}
|
|
13
|
+
export interface IntegrationCapabilityMapping {
|
|
14
|
+
/** Which CapabilitySpec this integration provides. */
|
|
15
|
+
provides: CapabilityRef[];
|
|
16
|
+
/** Optional: which capabilities it requires (e.g., storage for caching). */
|
|
17
|
+
requires?: CapabilityRequirement[];
|
|
18
|
+
}
|
|
19
|
+
export type IntegrationBridgeTargetChannel = 'email' | 'sms' | 'slack' | 'discord' | 'signal' | 'telegram' | 'whatsapp' | 'teams' | 'github' | 'irc' | 'xmpp' | 'zulip' | 'mattermost' | 'matrix' | 'custom';
|
|
20
|
+
export interface IntegrationBridgeTarget {
|
|
21
|
+
/** Human-readable or provider key for the bridged channel. */
|
|
22
|
+
key: IntegrationBridgeTargetChannel;
|
|
23
|
+
/** Optional bridge implementation or appservice identifier. */
|
|
24
|
+
bridgeKey?: string;
|
|
25
|
+
/** Capabilities that are expected through the bridge. */
|
|
26
|
+
capabilities: CapabilityRef[];
|
|
27
|
+
/** Whether a first-party/direct provider remains the preferred path. */
|
|
28
|
+
directProviderPreferred?: boolean;
|
|
29
|
+
/** Descriptive caveats such as unsupported attachments, threading, or reactions. */
|
|
30
|
+
caveats?: string[];
|
|
31
|
+
}
|
|
32
|
+
export interface IntegrationBridgeMetadata {
|
|
33
|
+
/** Provider can act as an interoperability hub for these bridged targets. */
|
|
34
|
+
targets: IntegrationBridgeTarget[];
|
|
35
|
+
/** Whether bridge setup is only described, not provisioned by this package. */
|
|
36
|
+
provisioning: 'not-managed' | 'external' | 'managed';
|
|
37
|
+
/** Explicit guard that bridged metadata must not replace direct provider specs. */
|
|
38
|
+
preserveDirectProviders?: boolean;
|
|
39
|
+
/** Neutral docs or ecosystem references for operator setup. */
|
|
40
|
+
docsUrl?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface IntegrationConfigSchema {
|
|
43
|
+
/** JSON Schema or SchemaModel defining required config fields. */
|
|
44
|
+
schema: unknown;
|
|
45
|
+
/** Example configuration (for docs/UI). */
|
|
46
|
+
example?: Record<string, unknown>;
|
|
47
|
+
}
|
|
48
|
+
export interface IntegrationSecretSchema {
|
|
49
|
+
/** JSON Schema or SchemaModel describing secret fields. */
|
|
50
|
+
schema: unknown;
|
|
51
|
+
/** Redacted example for documentation/UI. */
|
|
52
|
+
example?: Record<string, string>;
|
|
53
|
+
}
|
|
54
|
+
export interface IntegrationByokSetup {
|
|
55
|
+
/** Human-readable instructions for tenants configuring BYOK accounts. */
|
|
56
|
+
setupInstructions?: string;
|
|
57
|
+
/** Required scopes/permissions for BYOK accounts. */
|
|
58
|
+
requiredScopes?: string[];
|
|
59
|
+
/** Provider endpoint that can be called to validate a BYOK key. */
|
|
60
|
+
validationEndpoint?: string;
|
|
61
|
+
/** Whether the provider supports programmatic key rotation. */
|
|
62
|
+
keyRotationSupported?: boolean;
|
|
63
|
+
/** Whether quota usage can be tracked per BYOK key. */
|
|
64
|
+
quotaTrackingSupported?: boolean;
|
|
65
|
+
/** Ordered steps a tenant must follow to provision BYOK credentials. */
|
|
66
|
+
provisioningSteps?: string[];
|
|
67
|
+
}
|
|
68
|
+
export interface IntegrationHealthCheck {
|
|
69
|
+
/** Endpoint or method to validate connection health. */
|
|
70
|
+
method?: 'ping' | 'list' | 'custom';
|
|
71
|
+
/** Timeout in ms for health check. */
|
|
72
|
+
timeoutMs?: number;
|
|
73
|
+
}
|
|
74
|
+
export interface IntegrationSpec {
|
|
75
|
+
meta: IntegrationMeta;
|
|
76
|
+
/** Supported ownership modes for this provider. */
|
|
77
|
+
supportedModes: IntegrationOwnershipMode[];
|
|
78
|
+
/** Which capabilities this integration provides/requires. */
|
|
79
|
+
capabilities: IntegrationCapabilityMapping;
|
|
80
|
+
/** Configuration schema (API keys, endpoints, etc.). */
|
|
81
|
+
configSchema: IntegrationConfigSchema;
|
|
82
|
+
/** Secret schema (API/key material stored via secretRef). */
|
|
83
|
+
secretSchema: IntegrationSecretSchema;
|
|
84
|
+
/** Optional health check configuration. */
|
|
85
|
+
healthCheck?: IntegrationHealthCheck;
|
|
86
|
+
/** Documentation URL. */
|
|
87
|
+
docsUrl?: string;
|
|
88
|
+
/** Rate limits or usage constraints. */
|
|
89
|
+
constraints?: {
|
|
90
|
+
rateLimit?: {
|
|
91
|
+
rpm?: number;
|
|
92
|
+
rph?: number;
|
|
93
|
+
};
|
|
94
|
+
quotas?: Record<string, number>;
|
|
95
|
+
};
|
|
96
|
+
/** Provider-specific metadata for BYOK setup flows. */
|
|
97
|
+
byokSetup?: IntegrationByokSetup;
|
|
98
|
+
/** Bridge/interoperability metadata for providers that can relay to other channels. */
|
|
99
|
+
bridgeMetadata?: IntegrationBridgeMetadata;
|
|
100
|
+
/** Managed/BYOK credential setup requirements for config, secrets, env aliases, validation, and rotation. */
|
|
101
|
+
credentialManifest?: IntegrationCredentialManifest;
|
|
102
|
+
/** Transports this integration supports (REST, MCP, Webhook, SDK). */
|
|
103
|
+
transports?: IntegrationTransportConfig[];
|
|
104
|
+
/** Preferred transport when multiple are available. */
|
|
105
|
+
preferredTransport?: IntegrationTransportType;
|
|
106
|
+
/** Authentication methods this integration supports. */
|
|
107
|
+
supportedAuthMethods?: IntegrationAuthConfig[];
|
|
108
|
+
/** API version policy for this provider. */
|
|
109
|
+
versionPolicy?: IntegrationVersionPolicy;
|
|
110
|
+
}
|
|
111
|
+
export declare class IntegrationSpecRegistry extends SpecContractRegistry<'integration', IntegrationSpec> {
|
|
112
|
+
constructor(items?: IntegrationSpec[]);
|
|
113
|
+
getByCategory(category: IntegrationCategory): IntegrationSpec[];
|
|
114
|
+
}
|
|
115
|
+
export declare function makeIntegrationSpecKey(meta: IntegrationMeta): string;
|
|
116
|
+
/**
|
|
117
|
+
* Helper to define an Integration.
|
|
118
|
+
*/
|
|
119
|
+
export declare const defineIntegration: (spec: IntegrationSpec) => IntegrationSpec;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{SpecContractRegistry as r}from"@lssm/lib.contracts-spec/registry";var n=(t)=>`${t.key}.v${t.version}`;class i extends r{constructor(t){super("integration",t)}getByCategory(t){return this.list().filter((e)=>e.meta.category===t)}}function o(t){return n(t)}var p=(t)=>t;export{i as IntegrationSpecRegistry,p as defineIntegration,o as makeIntegrationSpecKey};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|