@contractspec/lib.contracts 1.56.1 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-config/app-config.capability.d.ts +2 -7
- package/dist/app-config/app-config.capability.d.ts.map +1 -0
- package/dist/app-config/app-config.capability.js +729 -22
- package/dist/app-config/app-config.contracts.d.ts +226 -231
- package/dist/app-config/app-config.contracts.d.ts.map +1 -0
- package/dist/app-config/app-config.contracts.js +908 -376
- package/dist/app-config/app-config.contracts.test.d.ts +2 -0
- package/dist/app-config/app-config.contracts.test.d.ts.map +1 -0
- package/dist/app-config/app-config.feature.d.ts +2 -7
- package/dist/app-config/app-config.feature.d.ts.map +1 -0
- package/dist/app-config/app-config.feature.js +252 -58
- package/dist/app-config/branding.d.ts +47 -49
- package/dist/app-config/branding.d.ts.map +1 -0
- package/dist/app-config/branding.js +1 -0
- package/dist/app-config/branding.test.d.ts +2 -0
- package/dist/app-config/branding.test.d.ts.map +1 -0
- package/dist/app-config/docs/app-config.docblock.d.ts +3 -6
- package/dist/app-config/docs/app-config.docblock.d.ts.map +1 -0
- package/dist/app-config/docs/app-config.docblock.js +382 -20
- package/dist/app-config/events.d.ts +112 -118
- package/dist/app-config/events.d.ts.map +1 -0
- package/dist/app-config/events.js +380 -168
- package/dist/app-config/events.test.d.ts +2 -0
- package/dist/app-config/events.test.d.ts.map +1 -0
- package/dist/app-config/index.d.ts +10 -10
- package/dist/app-config/index.d.ts.map +1 -0
- package/dist/app-config/index.js +3113 -9
- package/dist/app-config/lifecycle-contracts.d.ts +249 -256
- package/dist/app-config/lifecycle-contracts.d.ts.map +1 -0
- package/dist/app-config/lifecycle-contracts.js +1078 -434
- package/dist/app-config/lifecycle-contracts.test.d.ts +2 -0
- package/dist/app-config/lifecycle-contracts.test.d.ts.map +1 -0
- package/dist/app-config/lifecycle.d.ts +21 -24
- package/dist/app-config/lifecycle.d.ts.map +1 -0
- package/dist/app-config/lifecycle.js +1 -0
- package/dist/app-config/lifecycle.test.d.ts +2 -0
- package/dist/app-config/lifecycle.test.d.ts.map +1 -0
- package/dist/app-config/runtime.d.ts +103 -111
- package/dist/app-config/runtime.d.ts.map +1 -0
- package/dist/app-config/runtime.js +672 -555
- package/dist/app-config/runtime.test.d.ts +2 -0
- package/dist/app-config/runtime.test.d.ts.map +1 -0
- package/dist/app-config/spec.d.ts +153 -158
- package/dist/app-config/spec.d.ts.map +1 -0
- package/dist/app-config/spec.js +226 -16
- package/dist/app-config/spec.test.d.ts +2 -0
- package/dist/app-config/spec.test.d.ts.map +1 -0
- package/dist/app-config/validation.d.ts +41 -46
- package/dist/app-config/validation.d.ts.map +1 -0
- package/dist/app-config/validation.js +607 -495
- package/dist/app-config/validation.test.d.ts +2 -0
- package/dist/app-config/validation.test.d.ts.map +1 -0
- package/dist/capabilities/capabilities.d.ts +77 -80
- package/dist/capabilities/capabilities.d.ts.map +1 -0
- package/dist/capabilities/capabilities.js +209 -165
- package/dist/capabilities/capabilities.test.d.ts +2 -0
- package/dist/capabilities/capabilities.test.d.ts.map +1 -0
- package/dist/capabilities/context.d.ts +73 -50
- package/dist/capabilities/context.d.ts.map +1 -0
- package/dist/capabilities/context.js +93 -79
- package/dist/capabilities/context.test.d.ts +2 -0
- package/dist/capabilities/context.test.d.ts.map +1 -0
- package/dist/capabilities/docs/capabilities.docblock.d.ts +3 -6
- package/dist/capabilities/docs/capabilities.docblock.d.ts.map +1 -0
- package/dist/capabilities/docs/capabilities.docblock.js +165 -22
- package/dist/capabilities/guards.d.ts +40 -28
- package/dist/capabilities/guards.d.ts.map +1 -0
- package/dist/capabilities/guards.js +158 -127
- package/dist/capabilities/index.d.ts +7 -6
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/index.js +738 -6
- package/dist/capabilities/meeting-recorder.d.ts +6 -0
- package/dist/capabilities/meeting-recorder.d.ts.map +1 -0
- package/dist/capabilities/meeting-recorder.js +154 -0
- package/dist/capabilities/openbanking.d.ts +6 -10
- package/dist/capabilities/openbanking.d.ts.map +1 -0
- package/dist/capabilities/openbanking.js +160 -86
- package/dist/capabilities/validation.d.ts +42 -38
- package/dist/capabilities/validation.d.ts.map +1 -0
- package/dist/capabilities/validation.js +179 -135
- package/dist/capabilities/validation.test.d.ts +2 -0
- package/dist/capabilities/validation.test.d.ts.map +1 -0
- package/dist/client/index.d.ts +2 -6
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +1377 -7
- package/dist/client/react/drivers/rn-reusables.d.ts +8 -8
- package/dist/client/react/drivers/rn-reusables.d.ts.map +1 -0
- package/dist/client/react/drivers/rn-reusables.js +36 -19
- package/dist/client/react/drivers/shadcn.d.ts +4 -8
- package/dist/client/react/drivers/shadcn.d.ts.map +1 -0
- package/dist/client/react/drivers/shadcn.js +36 -9
- package/dist/client/react/feature-render.d.ts +14 -21
- package/dist/client/react/feature-render.d.ts.map +1 -0
- package/dist/client/react/feature-render.js +824 -35
- package/dist/client/react/form-render.d.ts +83 -88
- package/dist/client/react/form-render.d.ts.map +1 -0
- package/dist/client/react/form-render.js +667 -287
- package/dist/client/react/index.d.ts +5 -5
- package/dist/client/react/index.d.ts.map +1 -0
- package/dist/client/react/index.js +1374 -6
- package/dist/contract-registry/index.d.ts +4 -3
- package/dist/contract-registry/index.d.ts.map +1 -0
- package/dist/contract-registry/index.js +128 -2
- package/dist/contract-registry/schemas.d.ts +88 -91
- package/dist/contract-registry/schemas.d.ts.map +1 -0
- package/dist/contract-registry/schemas.js +124 -56
- package/dist/contract-registry/schemas.test.d.ts +2 -0
- package/dist/contract-registry/schemas.test.d.ts.map +1 -0
- package/dist/contract-registry/types.d.ts +40 -43
- package/dist/contract-registry/types.d.ts.map +1 -0
- package/dist/contract-registry/types.js +1 -0
- package/dist/data-views/data-views.d.ts +5 -6
- package/dist/data-views/data-views.d.ts.map +1 -0
- package/dist/data-views/data-views.js +231 -4
- package/dist/data-views/data-views.test.d.ts +2 -0
- package/dist/data-views/data-views.test.d.ts.map +1 -0
- package/dist/data-views/docs/data-views.docblock.d.ts +3 -6
- package/dist/data-views/docs/data-views.docblock.d.ts.map +1 -0
- package/dist/data-views/docs/data-views.docblock.js +162 -19
- package/dist/data-views/index.d.ts +5 -5
- package/dist/data-views/index.d.ts.map +1 -0
- package/dist/data-views/index.js +231 -3
- package/dist/data-views/query-generator.d.ts +32 -36
- package/dist/data-views/query-generator.d.ts.map +1 -0
- package/dist/data-views/query-generator.js +87 -46
- package/dist/data-views/registry.d.ts +6 -10
- package/dist/data-views/registry.d.ts.map +1 -0
- package/dist/data-views/registry.js +223 -17
- package/dist/data-views/registry.test.d.ts +2 -0
- package/dist/data-views/registry.test.d.ts.map +1 -0
- package/dist/data-views/report/contractVerificationTable.d.ts +2 -7
- package/dist/data-views/report/contractVerificationTable.d.ts.map +1 -0
- package/dist/data-views/report/contractVerificationTable.js +237 -92
- package/dist/data-views/report/contractVerificationTable.test.d.ts +2 -0
- package/dist/data-views/report/contractVerificationTable.test.d.ts.map +1 -0
- package/dist/data-views/runtime.d.ts +23 -29
- package/dist/data-views/runtime.d.ts.map +1 -0
- package/dist/data-views/runtime.js +104 -64
- package/dist/data-views/runtime.test.d.ts +2 -0
- package/dist/data-views/runtime.test.d.ts.map +1 -0
- package/dist/data-views/spec.d.ts +16 -19
- package/dist/data-views/spec.d.ts.map +1 -0
- package/dist/data-views/spec.js +36 -8
- package/dist/data-views/spec.test.d.ts +2 -0
- package/dist/data-views/spec.test.d.ts.map +1 -0
- package/dist/data-views/types.d.ts +91 -95
- package/dist/data-views/types.d.ts.map +1 -0
- package/dist/data-views/types.js +1 -0
- package/dist/data-views/types.test.d.ts +2 -0
- package/dist/data-views/types.test.d.ts.map +1 -0
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.d.ts +3 -6
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.d.ts.map +1 -0
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.js +512 -16
- package/dist/docs/capabilities/documentationSystem.capability.d.ts +2 -7
- package/dist/docs/capabilities/documentationSystem.capability.d.ts.map +1 -0
- package/dist/docs/capabilities/documentationSystem.capability.js +782 -69
- package/dist/docs/capabilities/index.d.ts +2 -2
- package/dist/docs/capabilities/index.d.ts.map +1 -0
- package/dist/docs/capabilities/index.js +783 -2
- package/dist/docs/commands/docsGenerate.command.d.ts +82 -88
- package/dist/docs/commands/docsGenerate.command.d.ts.map +1 -0
- package/dist/docs/commands/docsGenerate.command.js +1011 -137
- package/dist/docs/commands/docsPublish.command.d.ts +55 -61
- package/dist/docs/commands/docsPublish.command.d.ts.map +1 -0
- package/dist/docs/commands/docsPublish.command.js +991 -103
- package/dist/docs/commands/index.d.ts +3 -3
- package/dist/docs/commands/index.d.ts.map +1 -0
- package/dist/docs/commands/index.js +1119 -3
- package/dist/docs/constants.d.ts +5 -7
- package/dist/docs/constants.d.ts.map +1 -0
- package/dist/docs/constants.js +76 -8
- package/dist/docs/contracts.d.ts +411 -422
- package/dist/docs/contracts.d.ts.map +1 -0
- package/dist/docs/contracts.js +2383 -58
- package/dist/docs/ensure-docblocks.d.ts +2 -1
- package/dist/docs/ensure-docblocks.d.ts.map +1 -0
- package/dist/docs/ensure-docblocks.js +264 -1
- package/dist/docs/events/docsGenerated.event.d.ts +55 -60
- package/dist/docs/events/docsGenerated.event.d.ts.map +1 -0
- package/dist/docs/events/docsGenerated.event.js +530 -50
- package/dist/docs/events/docsPublished.event.d.ts +63 -68
- package/dist/docs/events/docsPublished.event.d.ts.map +1 -0
- package/dist/docs/events/docsPublished.event.js +531 -54
- package/dist/docs/events/index.d.ts +3 -3
- package/dist/docs/events/index.d.ts.map +1 -0
- package/dist/docs/events/index.js +566 -3
- package/dist/docs/forms/docsSearch.form.d.ts +16 -21
- package/dist/docs/forms/docsSearch.form.d.ts.map +1 -0
- package/dist/docs/forms/docsSearch.form.js +673 -110
- package/dist/docs/forms/index.d.ts +2 -2
- package/dist/docs/forms/index.d.ts.map +1 -0
- package/dist/docs/forms/index.js +675 -2
- package/dist/docs/index.d.ts +41 -28
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +5491 -54
- package/dist/docs/meta.docs.d.ts +3 -6
- package/dist/docs/meta.docs.d.ts.map +1 -0
- package/dist/docs/meta.docs.js +162 -15
- package/dist/docs/presentations/docsLayout.presentation.d.ts +3 -7
- package/dist/docs/presentations/docsLayout.presentation.d.ts.map +1 -0
- package/dist/docs/presentations/docsLayout.presentation.js +1088 -33
- package/dist/docs/presentations/docsReferencePage.presentation.d.ts +3 -7
- package/dist/docs/presentations/docsReferencePage.presentation.d.ts.map +1 -0
- package/dist/docs/presentations/docsReferencePage.presentation.js +1088 -33
- package/dist/docs/presentations/index.d.ts +3 -3
- package/dist/docs/presentations/index.d.ts.map +1 -0
- package/dist/docs/presentations/index.js +1117 -3
- package/dist/docs/presentations.d.ts +26 -29
- package/dist/docs/presentations.d.ts.map +1 -0
- package/dist/docs/presentations.js +83 -43
- package/dist/docs/presentations.test.d.ts +2 -0
- package/dist/docs/presentations.test.d.ts.map +1 -0
- package/dist/docs/queries/contractReference.query.d.ts +190 -195
- package/dist/docs/queries/contractReference.query.d.ts.map +1 -0
- package/dist/docs/queries/contractReference.query.js +961 -120
- package/dist/docs/queries/docsIndex.query.d.ts +238 -243
- package/dist/docs/queries/docsIndex.query.d.ts.map +1 -0
- package/dist/docs/queries/docsIndex.query.js +961 -128
- package/dist/docs/queries/index.d.ts +3 -3
- package/dist/docs/queries/index.d.ts.map +1 -0
- package/dist/docs/queries/index.js +1040 -3
- package/dist/docs/registry.d.ts +18 -21
- package/dist/docs/registry.d.ts.map +1 -0
- package/dist/docs/registry.js +145 -43
- package/dist/docs/registry.test.d.ts +2 -0
- package/dist/docs/registry.test.d.ts.map +1 -0
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.d.ts +3 -6
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.d.ts.map +1 -0
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.js +164 -24
- package/dist/docs/tech/cli.docblock.d.ts +3 -6
- package/dist/docs/tech/cli.docblock.d.ts.map +1 -0
- package/dist/docs/tech/cli.docblock.js +164 -21
- package/dist/docs/tech/contracts/README.docblock.d.ts +3 -6
- package/dist/docs/tech/contracts/README.docblock.d.ts.map +1 -0
- package/dist/docs/tech/contracts/README.docblock.js +162 -19
- package/dist/docs/tech/contracts/migrations.docblock.d.ts +3 -6
- package/dist/docs/tech/contracts/migrations.docblock.d.ts.map +1 -0
- package/dist/docs/tech/contracts/migrations.docblock.js +162 -19
- package/dist/docs/tech/contracts/openapi-export.docblock.d.ts +3 -6
- package/dist/docs/tech/contracts/openapi-export.docblock.d.ts.map +1 -0
- package/dist/docs/tech/contracts/openapi-export.docblock.js +165 -22
- package/dist/docs/tech/contracts/openapi-import.docblock.d.ts +3 -6
- package/dist/docs/tech/contracts/openapi-import.docblock.d.ts.map +1 -0
- package/dist/docs/tech/contracts/openapi-import.docblock.js +163 -21
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.d.ts +3 -6
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.d.ts.map +1 -0
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.js +224 -20
- package/dist/docs/tech/contracts/overlays.docblock.d.ts +3 -6
- package/dist/docs/tech/contracts/overlays.docblock.d.ts.map +1 -0
- package/dist/docs/tech/contracts/overlays.docblock.js +230 -20
- package/dist/docs/tech/contracts/tests.docblock.d.ts +3 -6
- package/dist/docs/tech/contracts/tests.docblock.d.ts.map +1 -0
- package/dist/docs/tech/contracts/tests.docblock.js +162 -19
- package/dist/docs/tech/contracts/themes.docblock.d.ts +3 -6
- package/dist/docs/tech/contracts/themes.docblock.d.ts.map +1 -0
- package/dist/docs/tech/contracts/themes.docblock.js +256 -20
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.d.ts +3 -6
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.d.ts.map +1 -0
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.js +163 -20
- package/dist/docs/tech/docs-system.docblock.d.ts +2 -1
- package/dist/docs/tech/docs-system.docblock.d.ts.map +1 -0
- package/dist/docs/tech/docs-system.docblock.js +211 -75
- package/dist/docs/tech/lifecycle-stage-system.docblock.d.ts +3 -6
- package/dist/docs/tech/lifecycle-stage-system.docblock.d.ts.map +1 -0
- package/dist/docs/tech/lifecycle-stage-system.docblock.js +375 -16
- package/dist/docs/tech/llm/llm-integration.docblock.d.ts +8 -7
- package/dist/docs/tech/llm/llm-integration.docblock.d.ts.map +1 -0
- package/dist/docs/tech/llm/llm-integration.docblock.js +193 -69
- package/dist/docs/tech/mcp-endpoints.docblock.d.ts +3 -6
- package/dist/docs/tech/mcp-endpoints.docblock.d.ts.map +1 -0
- package/dist/docs/tech/mcp-endpoints.docblock.js +170 -23
- package/dist/docs/tech/presentation-runtime.docblock.d.ts +3 -6
- package/dist/docs/tech/presentation-runtime.docblock.d.ts.map +1 -0
- package/dist/docs/tech/presentation-runtime.docblock.js +220 -16
- package/dist/docs/tech/report-verification-table.docblock.d.ts +2 -1
- package/dist/docs/tech/report-verification-table.docblock.d.ts.map +1 -0
- package/dist/docs/tech/report-verification-table.docblock.js +163 -22
- package/dist/docs/tech/report-verification-table.test.d.ts +2 -0
- package/dist/docs/tech/report-verification-table.test.d.ts.map +1 -0
- package/dist/docs/tech/schema/README.docblock.d.ts +3 -6
- package/dist/docs/tech/schema/README.docblock.d.ts.map +1 -0
- package/dist/docs/tech/schema/README.docblock.js +162 -19
- package/dist/docs/tech/studio/learning-events.docblock.d.ts +3 -6
- package/dist/docs/tech/studio/learning-events.docblock.d.ts.map +1 -0
- package/dist/docs/tech/studio/learning-events.docblock.js +168 -27
- package/dist/docs/tech/studio/learning-journeys.docblock.d.ts +3 -6
- package/dist/docs/tech/studio/learning-journeys.docblock.d.ts.map +1 -0
- package/dist/docs/tech/studio/learning-journeys.docblock.js +178 -31
- package/dist/docs/tech/studio/platform-admin-panel.docblock.d.ts +3 -6
- package/dist/docs/tech/studio/platform-admin-panel.docblock.d.ts.map +1 -0
- package/dist/docs/tech/studio/platform-admin-panel.docblock.js +163 -22
- package/dist/docs/tech/studio/project-access-teams.docblock.d.ts +3 -6
- package/dist/docs/tech/studio/project-access-teams.docblock.d.ts.map +1 -0
- package/dist/docs/tech/studio/project-access-teams.docblock.js +176 -24
- package/dist/docs/tech/studio/project-routing.docblock.d.ts +3 -6
- package/dist/docs/tech/studio/project-routing.docblock.d.ts.map +1 -0
- package/dist/docs/tech/studio/project-routing.docblock.js +173 -32
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.d.ts +3 -6
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.d.ts.map +1 -0
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.js +163 -21
- package/dist/docs/tech/studio/team-invitations.docblock.d.ts +3 -6
- package/dist/docs/tech/studio/team-invitations.docblock.d.ts.map +1 -0
- package/dist/docs/tech/studio/team-invitations.docblock.js +198 -40
- package/dist/docs/tech/studio/workspace-ops.docblock.d.ts +3 -6
- package/dist/docs/tech/studio/workspace-ops.docblock.d.ts.map +1 -0
- package/dist/docs/tech/studio/workspace-ops.docblock.js +163 -22
- package/dist/docs/tech/studio/workspaces.docblock.d.ts +3 -6
- package/dist/docs/tech/studio/workspaces.docblock.d.ts.map +1 -0
- package/dist/docs/tech/studio/workspaces.docblock.js +164 -23
- package/dist/docs/tech/telemetry-ingest.docblock.d.ts +3 -6
- package/dist/docs/tech/telemetry-ingest.docblock.d.ts.map +1 -0
- package/dist/docs/tech/telemetry-ingest.docblock.js +177 -38
- package/dist/docs/tech/vscode-extension.docblock.d.ts +3 -6
- package/dist/docs/tech/vscode-extension.docblock.d.ts.map +1 -0
- package/dist/docs/tech/vscode-extension.docblock.js +175 -36
- package/dist/docs/tech-contracts.docs.d.ts +3 -6
- package/dist/docs/tech-contracts.docs.d.ts.map +1 -0
- package/dist/docs/tech-contracts.docs.js +166 -23
- package/dist/docs/types.d.ts +36 -39
- package/dist/docs/types.d.ts.map +1 -0
- package/dist/docs/types.js +1 -0
- package/dist/docs/views/contractReference.dataView.d.ts +3 -7
- package/dist/docs/views/contractReference.dataView.d.ts.map +1 -0
- package/dist/docs/views/contractReference.dataView.js +1045 -79
- package/dist/docs/views/docsIndex.dataView.d.ts +3 -7
- package/dist/docs/views/docsIndex.dataView.d.ts.map +1 -0
- package/dist/docs/views/docsIndex.dataView.js +1039 -134
- package/dist/docs/views/exampleCatalog.dataView.d.ts +3 -7
- package/dist/docs/views/exampleCatalog.dataView.d.ts.map +1 -0
- package/dist/docs/views/exampleCatalog.dataView.js +1023 -89
- package/dist/docs/views/index.d.ts +4 -4
- package/dist/docs/views/index.d.ts.map +1 -0
- package/dist/docs/views/index.js +1239 -4
- package/dist/events.d.ts +77 -47
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +225 -46
- package/dist/events.test.d.ts +2 -0
- package/dist/events.test.d.ts.map +1 -0
- package/dist/examples/docs/examples.docblock.d.ts +3 -6
- package/dist/examples/docs/examples.docblock.d.ts.map +1 -0
- package/dist/examples/docs/examples.docblock.js +163 -21
- package/dist/examples/index.d.ts +9 -10
- package/dist/examples/index.d.ts.map +1 -0
- package/dist/examples/index.js +604 -13
- package/dist/examples/registry.d.ts +23 -27
- package/dist/examples/registry.d.ts.map +1 -0
- package/dist/examples/registry.js +284 -86
- package/dist/examples/registry.test.d.ts +2 -0
- package/dist/examples/registry.test.d.ts.map +1 -0
- package/dist/examples/schema.d.ts +255 -258
- package/dist/examples/schema.d.ts.map +1 -0
- package/dist/examples/schema.js +141 -100
- package/dist/examples/schema.test.d.ts +2 -0
- package/dist/examples/schema.test.d.ts.map +1 -0
- package/dist/examples/types.d.ts +102 -106
- package/dist/examples/types.d.ts.map +1 -0
- package/dist/examples/types.js +66 -32
- package/dist/examples/types.test.d.ts +2 -0
- package/dist/examples/types.test.d.ts.map +1 -0
- package/dist/examples/validation.d.ts +37 -40
- package/dist/examples/validation.d.ts.map +1 -0
- package/dist/examples/validation.js +278 -135
- package/dist/examples/validation.test.d.ts +2 -0
- package/dist/examples/validation.test.d.ts.map +1 -0
- package/dist/experiments/docs/experiments.docblock.d.ts +3 -6
- package/dist/experiments/docs/experiments.docblock.d.ts.map +1 -0
- package/dist/experiments/docs/experiments.docblock.js +290 -20
- package/dist/experiments/evaluator.d.ts +30 -33
- package/dist/experiments/evaluator.d.ts.map +1 -0
- package/dist/experiments/evaluator.js +153 -99
- package/dist/experiments/evaluator.test.d.ts +2 -0
- package/dist/experiments/evaluator.test.d.ts.map +1 -0
- package/dist/experiments/spec-resolver.d.ts +12 -16
- package/dist/experiments/spec-resolver.d.ts.map +1 -0
- package/dist/experiments/spec-resolver.js +1 -0
- package/dist/experiments/spec.d.ts +66 -69
- package/dist/experiments/spec.d.ts.map +1 -0
- package/dist/experiments/spec.js +224 -12
- package/dist/experiments/spec.test.d.ts +2 -0
- package/dist/experiments/spec.test.d.ts.map +1 -0
- package/dist/features/index.d.ts +7 -10
- package/dist/features/index.d.ts.map +1 -0
- package/dist/features/index.js +275 -12
- package/dist/features/install.d.ts +12 -19
- package/dist/features/install.d.ts.map +1 -0
- package/dist/features/install.js +93 -34
- package/dist/features/install.test.d.ts +2 -0
- package/dist/features/install.test.d.ts.map +1 -0
- package/dist/features/registry.d.ts +20 -24
- package/dist/features/registry.d.ts.map +1 -0
- package/dist/features/registry.js +188 -45
- package/dist/features/registry.test.d.ts +2 -0
- package/dist/features/registry.test.d.ts.map +1 -0
- package/dist/features/types.d.ts +52 -57
- package/dist/features/types.d.ts.map +1 -0
- package/dist/features/types.js +1 -0
- package/dist/features/types.test.d.ts +2 -0
- package/dist/features/types.test.d.ts.map +1 -0
- package/dist/features/validation.d.ts +4 -7
- package/dist/features/validation.d.ts.map +1 -0
- package/dist/features/validation.js +46 -12
- package/dist/features/validation.test.d.ts +2 -0
- package/dist/features/validation.test.d.ts.map +1 -0
- package/dist/features.capabilities.test.d.ts +2 -0
- package/dist/features.capabilities.test.d.ts.map +1 -0
- package/dist/forms/docs/forms.docblock.d.ts +3 -6
- package/dist/forms/docs/forms.docblock.d.ts.map +1 -0
- package/dist/forms/docs/forms.docblock.js +162 -19
- package/dist/forms/forms.d.ts +222 -223
- package/dist/forms/forms.d.ts.map +1 -0
- package/dist/forms/forms.js +321 -132
- package/dist/forms/index.d.ts +2 -2
- package/dist/forms/index.d.ts.map +1 -0
- package/dist/forms/index.js +331 -2
- package/dist/index.d.ts +50 -185
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18233 -157
- package/dist/install.d.ts +53 -54
- package/dist/install.d.ts.map +1 -0
- package/dist/install.js +53 -33
- package/dist/integrations/binding.d.ts +14 -16
- package/dist/integrations/binding.d.ts.map +1 -0
- package/dist/integrations/binding.js +1 -0
- package/dist/integrations/connection.d.ts +44 -47
- package/dist/integrations/connection.d.ts.map +1 -0
- package/dist/integrations/connection.js +1 -0
- package/dist/integrations/docs/integrations.docblock.d.ts +3 -6
- package/dist/integrations/docs/integrations.docblock.d.ts.map +1 -0
- package/dist/integrations/docs/integrations.docblock.js +191 -30
- package/dist/integrations/health.d.ts +15 -18
- package/dist/integrations/health.d.ts.map +1 -0
- package/dist/integrations/health.js +100 -66
- package/dist/integrations/health.test.d.ts +2 -0
- package/dist/integrations/health.test.d.ts.map +1 -0
- package/dist/integrations/index.d.ts +12 -34
- package/dist/integrations/index.d.ts.map +1 -0
- package/dist/integrations/index.js +3809 -23
- package/dist/integrations/integrations.capability.d.ts +2 -7
- package/dist/integrations/integrations.capability.d.ts.map +1 -0
- package/dist/integrations/integrations.capability.js +726 -17
- package/dist/integrations/integrations.feature.d.ts +2 -7
- package/dist/integrations/integrations.feature.d.ts.map +1 -0
- package/dist/integrations/integrations.feature.js +298 -64
- package/dist/integrations/meeting-recorder/contracts/index.d.ts +8 -0
- package/dist/integrations/meeting-recorder/contracts/index.d.ts.map +1 -0
- package/dist/integrations/meeting-recorder/contracts/index.js +1231 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.d.ts +452 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.d.ts.map +1 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.js +866 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.d.ts +167 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.d.ts.map +1 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.js +933 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.d.ts +86 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.d.ts.map +1 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.js +819 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.d.ts +2 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.d.ts.map +1 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.js +726 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.d.ts +6 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.d.ts.map +1 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.js +301 -0
- package/dist/integrations/meeting-recorder/models.d.ts +403 -0
- package/dist/integrations/meeting-recorder/models.d.ts.map +1 -0
- package/dist/integrations/meeting-recorder/models.js +152 -0
- package/dist/integrations/meeting-recorder/telemetry.d.ts +14 -0
- package/dist/integrations/meeting-recorder/telemetry.d.ts.map +1 -0
- package/dist/integrations/meeting-recorder/telemetry.js +84 -0
- package/dist/integrations/openbanking/contracts/accounts.d.ts +258 -264
- package/dist/integrations/openbanking/contracts/accounts.d.ts.map +1 -0
- package/dist/integrations/openbanking/contracts/accounts.js +971 -233
- package/dist/integrations/openbanking/contracts/balances.d.ts +151 -157
- package/dist/integrations/openbanking/contracts/balances.d.ts.map +1 -0
- package/dist/integrations/openbanking/contracts/balances.js +935 -163
- package/dist/integrations/openbanking/contracts/index.d.ts +8 -10
- package/dist/integrations/openbanking/contracts/index.d.ts.map +1 -0
- package/dist/integrations/openbanking/contracts/index.js +1396 -9
- package/dist/integrations/openbanking/contracts/transactions.d.ts +190 -196
- package/dist/integrations/openbanking/contracts/transactions.d.ts.map +1 -0
- package/dist/integrations/openbanking/contracts/transactions.js +941 -214
- package/dist/integrations/openbanking/guards.d.ts +8 -11
- package/dist/integrations/openbanking/guards.d.ts.map +1 -0
- package/dist/integrations/openbanking/guards.js +68 -29
- package/dist/integrations/openbanking/guards.test.d.ts +2 -0
- package/dist/integrations/openbanking/guards.test.d.ts.map +1 -0
- package/dist/integrations/openbanking/models.d.ts +221 -225
- package/dist/integrations/openbanking/models.d.ts.map +1 -0
- package/dist/integrations/openbanking/models.js +136 -236
- package/dist/integrations/openbanking/openbanking.capability.d.ts +2 -7
- package/dist/integrations/openbanking/openbanking.capability.d.ts.map +1 -0
- package/dist/integrations/openbanking/openbanking.capability.js +726 -21
- package/dist/integrations/openbanking/openbanking.feature.d.ts +2 -7
- package/dist/integrations/openbanking/openbanking.feature.d.ts.map +1 -0
- package/dist/integrations/openbanking/openbanking.feature.js +300 -73
- package/dist/integrations/openbanking/telemetry.d.ts +12 -14
- package/dist/integrations/openbanking/telemetry.d.ts.map +1 -0
- package/dist/integrations/openbanking/telemetry.js +75 -33
- package/dist/integrations/operations.d.ts +421 -427
- package/dist/integrations/operations.d.ts.map +1 -0
- package/dist/integrations/operations.js +926 -375
- package/dist/integrations/operations.test.d.ts +2 -0
- package/dist/integrations/operations.test.d.ts.map +1 -0
- package/dist/integrations/providers/analytics-reader.d.ts +104 -0
- package/dist/integrations/providers/analytics-reader.d.ts.map +1 -0
- package/dist/integrations/providers/analytics-reader.js +1 -0
- package/dist/integrations/providers/analytics-writer.d.ts +7 -0
- package/dist/integrations/providers/analytics-writer.d.ts.map +1 -0
- package/dist/integrations/providers/analytics-writer.js +1 -0
- package/dist/integrations/providers/analytics.d.ts +48 -0
- package/dist/integrations/providers/analytics.d.ts.map +1 -0
- package/dist/integrations/providers/analytics.js +1 -0
- package/dist/integrations/providers/calendar.d.ts +68 -70
- package/dist/integrations/providers/calendar.d.ts.map +1 -0
- package/dist/integrations/providers/calendar.js +1 -0
- package/dist/integrations/providers/database.d.ts +13 -0
- package/dist/integrations/providers/database.d.ts.map +1 -0
- package/dist/integrations/providers/database.js +1 -0
- package/dist/integrations/providers/elevenlabs.d.ts +4 -8
- package/dist/integrations/providers/elevenlabs.d.ts.map +1 -0
- package/dist/integrations/providers/elevenlabs.js +327 -52
- package/dist/integrations/providers/email.d.ts +74 -76
- package/dist/integrations/providers/email.d.ts.map +1 -0
- package/dist/integrations/providers/email.js +1 -0
- package/dist/integrations/providers/embedding.d.ts +19 -21
- package/dist/integrations/providers/embedding.d.ts.map +1 -0
- package/dist/integrations/providers/embedding.js +1 -0
- package/dist/integrations/providers/fal.d.ts +4 -0
- package/dist/integrations/providers/fal.d.ts.map +1 -0
- package/dist/integrations/providers/fal.js +357 -0
- package/dist/integrations/providers/fathom.d.ts +4 -0
- package/dist/integrations/providers/fathom.d.ts.map +1 -0
- package/dist/integrations/providers/fathom.js +371 -0
- package/dist/integrations/providers/fireflies.d.ts +4 -0
- package/dist/integrations/providers/fireflies.d.ts.map +1 -0
- package/dist/integrations/providers/fireflies.js +351 -0
- package/dist/integrations/providers/gcs-storage.d.ts +4 -8
- package/dist/integrations/providers/gcs-storage.d.ts.map +1 -0
- package/dist/integrations/providers/gcs-storage.js +338 -75
- package/dist/integrations/providers/gmail.d.ts +4 -8
- package/dist/integrations/providers/gmail.d.ts.map +1 -0
- package/dist/integrations/providers/gmail.js +350 -87
- package/dist/integrations/providers/google-calendar.d.ts +4 -8
- package/dist/integrations/providers/google-calendar.d.ts.map +1 -0
- package/dist/integrations/providers/google-calendar.js +333 -66
- package/dist/integrations/providers/gradium.d.ts +4 -0
- package/dist/integrations/providers/gradium.d.ts.map +1 -0
- package/dist/integrations/providers/gradium.js +355 -0
- package/dist/integrations/providers/granola.d.ts +4 -0
- package/dist/integrations/providers/granola.d.ts.map +1 -0
- package/dist/integrations/providers/granola.js +352 -0
- package/dist/integrations/providers/index.d.ts +38 -22
- package/dist/integrations/providers/index.d.ts.map +1 -0
- package/dist/integrations/providers/index.js +2142 -13
- package/dist/integrations/providers/jira.d.ts +4 -0
- package/dist/integrations/providers/jira.d.ts.map +1 -0
- package/dist/integrations/providers/jira.js +353 -0
- package/dist/integrations/providers/linear.d.ts +4 -0
- package/dist/integrations/providers/linear.d.ts.map +1 -0
- package/dist/integrations/providers/linear.js +352 -0
- package/dist/integrations/providers/llm.d.ts +65 -67
- package/dist/integrations/providers/llm.d.ts.map +1 -0
- package/dist/integrations/providers/llm.js +1 -0
- package/dist/integrations/providers/meeting-recorder.d.ts +130 -0
- package/dist/integrations/providers/meeting-recorder.d.ts.map +1 -0
- package/dist/integrations/providers/meeting-recorder.js +1 -0
- package/dist/integrations/providers/mistral.d.ts +4 -8
- package/dist/integrations/providers/mistral.d.ts.map +1 -0
- package/dist/integrations/providers/mistral.js +335 -68
- package/dist/integrations/providers/notion.d.ts +4 -0
- package/dist/integrations/providers/notion.d.ts.map +1 -0
- package/dist/integrations/providers/notion.js +358 -0
- package/dist/integrations/providers/openbanking.d.ts +113 -115
- package/dist/integrations/providers/openbanking.d.ts.map +1 -0
- package/dist/integrations/providers/openbanking.js +1 -0
- package/dist/integrations/providers/payments.d.ts +94 -96
- package/dist/integrations/providers/payments.d.ts.map +1 -0
- package/dist/integrations/providers/payments.js +1 -0
- package/dist/integrations/providers/posthog.d.ts +4 -0
- package/dist/integrations/providers/posthog.d.ts.map +1 -0
- package/dist/integrations/providers/posthog.js +349 -0
- package/dist/integrations/providers/postmark.d.ts +4 -8
- package/dist/integrations/providers/postmark.d.ts.map +1 -0
- package/dist/integrations/providers/postmark.js +339 -68
- package/dist/integrations/providers/powens.d.ts +4 -8
- package/dist/integrations/providers/powens.d.ts.map +1 -0
- package/dist/integrations/providers/powens.js +365 -116
- package/dist/integrations/providers/project-management.d.ts +33 -0
- package/dist/integrations/providers/project-management.d.ts.map +1 -0
- package/dist/integrations/providers/project-management.js +1 -0
- package/dist/integrations/providers/providers.test.d.ts +2 -0
- package/dist/integrations/providers/providers.test.d.ts.map +1 -0
- package/dist/integrations/providers/qdrant.d.ts +4 -8
- package/dist/integrations/providers/qdrant.d.ts.map +1 -0
- package/dist/integrations/providers/qdrant.js +342 -73
- package/dist/integrations/providers/registry.d.ts +3 -7
- package/dist/integrations/providers/registry.d.ts.map +1 -0
- package/dist/integrations/providers/registry.js +2099 -33
- package/dist/integrations/providers/sms.d.ts +28 -30
- package/dist/integrations/providers/sms.d.ts.map +1 -0
- package/dist/integrations/providers/sms.js +1 -0
- package/dist/integrations/providers/storage.d.ts +49 -51
- package/dist/integrations/providers/storage.d.ts.map +1 -0
- package/dist/integrations/providers/storage.js +1 -0
- package/dist/integrations/providers/stripe.d.ts +4 -8
- package/dist/integrations/providers/stripe.d.ts.map +1 -0
- package/dist/integrations/providers/stripe.js +346 -83
- package/dist/integrations/providers/supabase-postgres.d.ts +4 -0
- package/dist/integrations/providers/supabase-postgres.d.ts.map +1 -0
- package/dist/integrations/providers/supabase-postgres.js +332 -0
- package/dist/integrations/providers/supabase-vector.d.ts +4 -0
- package/dist/integrations/providers/supabase-vector.d.ts.map +1 -0
- package/dist/integrations/providers/supabase-vector.js +352 -0
- package/dist/integrations/providers/tldv.d.ts +4 -0
- package/dist/integrations/providers/tldv.d.ts.map +1 -0
- package/dist/integrations/providers/tldv.js +351 -0
- package/dist/integrations/providers/twilio-sms.d.ts +4 -8
- package/dist/integrations/providers/twilio-sms.d.ts.map +1 -0
- package/dist/integrations/providers/twilio-sms.js +332 -61
- package/dist/integrations/providers/vector-store.d.ts +34 -37
- package/dist/integrations/providers/vector-store.d.ts.map +1 -0
- package/dist/integrations/providers/vector-store.js +1 -0
- package/dist/integrations/providers/voice.d.ts +28 -30
- package/dist/integrations/providers/voice.d.ts.map +1 -0
- package/dist/integrations/providers/voice.js +1 -0
- package/dist/integrations/runtime.d.ts +87 -90
- package/dist/integrations/runtime.d.ts.map +1 -0
- package/dist/integrations/runtime.js +234 -181
- package/dist/integrations/runtime.test.d.ts +2 -0
- package/dist/integrations/runtime.test.d.ts.map +1 -0
- package/dist/integrations/secrets/aws-secret-manager.d.ts +24 -26
- package/dist/integrations/secrets/aws-secret-manager.d.ts.map +1 -0
- package/dist/integrations/secrets/aws-secret-manager.js +367 -222
- package/dist/integrations/secrets/env-secret-provider.d.ts +21 -23
- package/dist/integrations/secrets/env-secret-provider.d.ts.map +1 -0
- package/dist/integrations/secrets/env-secret-provider.js +187 -79
- package/dist/integrations/secrets/gcp-secret-manager.d.ts +26 -28
- package/dist/integrations/secrets/gcp-secret-manager.d.ts.map +1 -0
- package/dist/integrations/secrets/gcp-secret-manager.js +369 -221
- package/dist/integrations/secrets/index.d.ts +7 -7
- package/dist/integrations/secrets/index.d.ts.map +1 -0
- package/dist/integrations/secrets/index.js +1159 -8
- package/dist/integrations/secrets/manager.d.ts +33 -35
- package/dist/integrations/secrets/manager.d.ts.map +1 -0
- package/dist/integrations/secrets/manager.js +210 -100
- package/dist/integrations/secrets/provider.d.ts +43 -45
- package/dist/integrations/secrets/provider.d.ts.map +1 -0
- package/dist/integrations/secrets/provider.js +99 -53
- package/dist/integrations/secrets/provider.test.d.ts +2 -0
- package/dist/integrations/secrets/provider.test.d.ts.map +1 -0
- package/dist/integrations/secrets/scaleway-secret-manager.d.ts +33 -35
- package/dist/integrations/secrets/scaleway-secret-manager.d.ts.map +1 -0
- package/dist/integrations/secrets/scaleway-secret-manager.js +394 -236
- package/dist/integrations/secrets-types.d.ts +9 -11
- package/dist/integrations/secrets-types.d.ts.map +1 -0
- package/dist/integrations/secrets-types.js +1 -0
- package/dist/integrations/spec.d.ts +61 -65
- package/dist/integrations/spec.d.ts.map +1 -0
- package/dist/integrations/spec.js +229 -19
- package/dist/integrations/spec.test.d.ts +2 -0
- package/dist/integrations/spec.test.d.ts.map +1 -0
- package/dist/jobs/define-job.d.ts +9 -11
- package/dist/jobs/define-job.d.ts.map +1 -0
- package/dist/jobs/define-job.js +39 -14
- package/dist/jobs/gcp-cloud-tasks.d.ts +34 -36
- package/dist/jobs/gcp-cloud-tasks.d.ts.map +1 -0
- package/dist/jobs/gcp-cloud-tasks.js +100 -50
- package/dist/jobs/gcp-pubsub.d.ts +19 -21
- package/dist/jobs/gcp-pubsub.d.ts.map +1 -0
- package/dist/jobs/gcp-pubsub.js +88 -36
- package/dist/jobs/handlers/gmail-sync-handler.d.ts +6 -9
- package/dist/jobs/handlers/gmail-sync-handler.d.ts.map +1 -0
- package/dist/jobs/handlers/gmail-sync-handler.js +38 -7
- package/dist/jobs/handlers/handlers.test.d.ts +2 -0
- package/dist/jobs/handlers/handlers.test.d.ts.map +1 -0
- package/dist/jobs/handlers/index.d.ts +6 -9
- package/dist/jobs/handlers/index.d.ts.map +1 -0
- package/dist/jobs/handlers/index.js +80 -9
- package/dist/jobs/handlers/ping-handler.d.ts +7 -10
- package/dist/jobs/handlers/ping-handler.d.ts.map +1 -0
- package/dist/jobs/handlers/ping-handler.js +45 -13
- package/dist/jobs/handlers/storage-document-handler.d.ts +8 -11
- package/dist/jobs/handlers/storage-document-handler.d.ts.map +1 -0
- package/dist/jobs/handlers/storage-document-handler.js +45 -12
- package/dist/jobs/index.d.ts +3 -3
- package/dist/jobs/index.d.ts.map +1 -0
- package/dist/jobs/index.js +63 -3
- package/dist/jobs/memory-queue.d.ts +14 -17
- package/dist/jobs/memory-queue.d.ts.map +1 -0
- package/dist/jobs/memory-queue.js +126 -68
- package/dist/jobs/queue.d.ts +88 -92
- package/dist/jobs/queue.d.ts.map +1 -0
- package/dist/jobs/queue.js +49 -27
- package/dist/jobs/queue.test.d.ts +2 -0
- package/dist/jobs/queue.test.d.ts.map +1 -0
- package/dist/jobs/scaleway-sqs-queue.d.ts +25 -27
- package/dist/jobs/scaleway-sqs-queue.d.ts.map +1 -0
- package/dist/jobs/scaleway-sqs-queue.js +219 -150
- package/dist/jsonschema.d.ts +23 -25
- package/dist/jsonschema.d.ts.map +1 -0
- package/dist/jsonschema.js +60 -38
- package/dist/jsonschema.test.d.ts +2 -0
- package/dist/jsonschema.test.d.ts.map +1 -0
- package/dist/knowledge/binding.d.ts +22 -24
- package/dist/knowledge/binding.d.ts.map +1 -0
- package/dist/knowledge/binding.js +1 -0
- package/dist/knowledge/docs/knowledge.docblock.d.ts +3 -6
- package/dist/knowledge/docs/knowledge.docblock.d.ts.map +1 -0
- package/dist/knowledge/docs/knowledge.docblock.js +300 -20
- package/dist/knowledge/index.d.ts +5 -11
- package/dist/knowledge/index.d.ts.map +1 -0
- package/dist/knowledge/index.js +468 -10
- package/dist/knowledge/ingestion/document-processor.d.ts +19 -20
- package/dist/knowledge/ingestion/document-processor.d.ts.map +1 -0
- package/dist/knowledge/ingestion/document-processor.js +93 -52
- package/dist/knowledge/ingestion/embedding-service.d.ts +8 -11
- package/dist/knowledge/ingestion/embedding-service.d.ts.map +1 -0
- package/dist/knowledge/ingestion/embedding-service.js +55 -23
- package/dist/knowledge/ingestion/gmail-adapter.d.ts +14 -17
- package/dist/knowledge/ingestion/gmail-adapter.d.ts.map +1 -0
- package/dist/knowledge/ingestion/gmail-adapter.js +96 -44
- package/dist/knowledge/ingestion/index.d.ts +6 -6
- package/dist/knowledge/ingestion/index.d.ts.map +1 -0
- package/dist/knowledge/ingestion/index.js +251 -6
- package/dist/knowledge/ingestion/ingestion.test.d.ts +2 -0
- package/dist/knowledge/ingestion/ingestion.test.d.ts.map +1 -0
- package/dist/knowledge/ingestion/storage-adapter.d.ts +11 -14
- package/dist/knowledge/ingestion/storage-adapter.d.ts.map +1 -0
- package/dist/knowledge/ingestion/storage-adapter.js +60 -24
- package/dist/knowledge/ingestion/vector-indexer.d.ts +13 -16
- package/dist/knowledge/ingestion/vector-indexer.d.ts.map +1 -0
- package/dist/knowledge/ingestion/vector-indexer.js +61 -30
- package/dist/knowledge/knowledge.capability.d.ts +2 -7
- package/dist/knowledge/knowledge.capability.d.ts.map +1 -0
- package/dist/knowledge/knowledge.capability.js +726 -21
- package/dist/knowledge/knowledge.feature.d.ts +2 -7
- package/dist/knowledge/knowledge.feature.d.ts.map +1 -0
- package/dist/knowledge/knowledge.feature.js +298 -65
- package/dist/knowledge/operations.d.ts +283 -289
- package/dist/knowledge/operations.d.ts.map +1 -0
- package/dist/knowledge/operations.js +851 -303
- package/dist/knowledge/operations.test.d.ts +2 -0
- package/dist/knowledge/operations.test.d.ts.map +1 -0
- package/dist/knowledge/query/index.d.ts +2 -2
- package/dist/knowledge/query/index.d.ts.map +1 -0
- package/dist/knowledge/query/index.js +109 -2
- package/dist/knowledge/query/service.d.ts +23 -26
- package/dist/knowledge/query/service.d.ts.map +1 -0
- package/dist/knowledge/query/service.js +105 -60
- package/dist/knowledge/query/service.test.d.ts +2 -0
- package/dist/knowledge/query/service.test.d.ts.map +1 -0
- package/dist/knowledge/runtime.d.ts +25 -28
- package/dist/knowledge/runtime.d.ts.map +1 -0
- package/dist/knowledge/runtime.js +89 -47
- package/dist/knowledge/runtime.test.d.ts +2 -0
- package/dist/knowledge/runtime.test.d.ts.map +1 -0
- package/dist/knowledge/source.d.ts +28 -30
- package/dist/knowledge/source.d.ts.map +1 -0
- package/dist/knowledge/source.js +1 -0
- package/dist/knowledge/spaces/email-threads.d.ts +4 -7
- package/dist/knowledge/spaces/email-threads.d.ts.map +1 -0
- package/dist/knowledge/spaces/email-threads.js +98 -33
- package/dist/knowledge/spaces/financial-docs.d.ts +4 -7
- package/dist/knowledge/spaces/financial-docs.d.ts.map +1 -0
- package/dist/knowledge/spaces/financial-docs.js +98 -33
- package/dist/knowledge/spaces/financial-overview.d.ts +4 -7
- package/dist/knowledge/spaces/financial-overview.d.ts.map +1 -0
- package/dist/knowledge/spaces/financial-overview.js +98 -37
- package/dist/knowledge/spaces/index.d.ts +7 -7
- package/dist/knowledge/spaces/index.d.ts.map +1 -0
- package/dist/knowledge/spaces/index.js +273 -8
- package/dist/knowledge/spaces/product-canon.d.ts +4 -7
- package/dist/knowledge/spaces/product-canon.d.ts.map +1 -0
- package/dist/knowledge/spaces/product-canon.js +98 -33
- package/dist/knowledge/spaces/spaces.test.d.ts +2 -0
- package/dist/knowledge/spaces/spaces.test.d.ts.map +1 -0
- package/dist/knowledge/spaces/support-faq.d.ts +4 -7
- package/dist/knowledge/spaces/support-faq.d.ts.map +1 -0
- package/dist/knowledge/spaces/support-faq.js +99 -36
- package/dist/knowledge/spaces/uploaded-docs.d.ts +4 -7
- package/dist/knowledge/spaces/uploaded-docs.d.ts.map +1 -0
- package/dist/knowledge/spaces/uploaded-docs.js +98 -33
- package/dist/knowledge/spec.d.ts +37 -40
- package/dist/knowledge/spec.d.ts.map +1 -0
- package/dist/knowledge/spec.js +225 -14
- package/dist/knowledge/spec.test.d.ts +2 -0
- package/dist/knowledge/spec.test.d.ts.map +1 -0
- package/dist/llm/exporters.d.ts +31 -32
- package/dist/llm/exporters.d.ts.map +1 -0
- package/dist/llm/exporters.js +1248 -529
- package/dist/llm/index.d.ts +13 -4
- package/dist/llm/index.d.ts.map +1 -0
- package/dist/llm/index.js +1714 -3
- package/dist/llm/prompts.d.ts +26 -24
- package/dist/llm/prompts.d.ts.map +1 -0
- package/dist/llm/prompts.js +1508 -212
- package/dist/llm/types.d.ts +180 -182
- package/dist/llm/types.d.ts.map +1 -0
- package/dist/llm/types.js +1 -0
- package/dist/markdown.d.ts +10 -15
- package/dist/markdown.d.ts.map +1 -0
- package/dist/markdown.js +776 -116
- package/dist/migrations.d.ts +49 -52
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +64 -28
- package/dist/migrations.test.d.ts +2 -0
- package/dist/migrations.test.d.ts.map +1 -0
- package/dist/model-registry.d.ts +8 -11
- package/dist/model-registry.d.ts.map +1 -0
- package/dist/model-registry.js +60 -29
- package/dist/model-registry.test.d.ts +2 -0
- package/dist/model-registry.test.d.ts.map +1 -0
- package/dist/node/app-config/app-config.capability.js +730 -0
- package/dist/node/app-config/app-config.contracts.js +927 -0
- package/dist/node/app-config/app-config.feature.js +255 -0
- package/dist/node/app-config/branding.js +0 -0
- package/dist/node/app-config/docs/app-config.docblock.js +383 -0
- package/dist/node/app-config/events.js +386 -0
- package/dist/node/app-config/index.js +3113 -0
- package/dist/node/app-config/lifecycle-contracts.js +1084 -0
- package/dist/node/app-config/lifecycle.js +0 -0
- package/dist/node/app-config/runtime.js +734 -0
- package/dist/node/app-config/spec.js +229 -0
- package/dist/node/app-config/validation.js +650 -0
- package/dist/node/capabilities/capabilities.js +217 -0
- package/dist/node/capabilities/context.js +101 -0
- package/dist/node/capabilities/docs/capabilities.docblock.js +353 -0
- package/dist/node/capabilities/guards.js +177 -0
- package/dist/node/capabilities/index.js +739 -0
- package/dist/node/capabilities/meeting-recorder.js +154 -0
- package/dist/node/capabilities/openbanking.js +166 -0
- package/dist/node/capabilities/validation.js +185 -0
- package/dist/node/client/index.js +1379 -0
- package/dist/node/client/react/drivers/rn-reusables.js +38 -0
- package/dist/node/client/react/drivers/shadcn.js +38 -0
- package/dist/node/client/react/feature-render.js +833 -0
- package/dist/node/client/react/form-render.js +681 -0
- package/dist/node/client/react/index.js +1376 -0
- package/dist/node/contract-registry/index.js +129 -0
- package/dist/node/contract-registry/schemas.js +129 -0
- package/dist/node/contract-registry/types.js +0 -0
- package/dist/node/data-views/data-views.js +232 -0
- package/dist/node/data-views/docs/data-views.docblock.js +164 -0
- package/dist/node/data-views/index.js +232 -0
- package/dist/node/data-views/query-generator.js +89 -0
- package/dist/node/data-views/registry.js +226 -0
- package/dist/node/data-views/report/contractVerificationTable.js +240 -0
- package/dist/node/data-views/runtime.js +108 -0
- package/dist/node/data-views/spec.js +38 -0
- package/dist/node/data-views/types.js +0 -0
- package/dist/node/docs/accessibility_wcag_compliance_specs.docblock.js +513 -0
- package/dist/node/docs/capabilities/documentationSystem.capability.js +784 -0
- package/dist/node/docs/capabilities/index.js +784 -0
- package/dist/node/docs/commands/docsGenerate.command.js +1016 -0
- package/dist/node/docs/commands/docsPublish.command.js +995 -0
- package/dist/node/docs/commands/index.js +1120 -0
- package/dist/node/docs/constants.js +78 -0
- package/dist/node/docs/contracts.js +2383 -0
- package/dist/node/docs/ensure-docblocks.js +264 -0
- package/dist/node/docs/events/docsGenerated.event.js +533 -0
- package/dist/node/docs/events/docsPublished.event.js +534 -0
- package/dist/node/docs/events/index.js +567 -0
- package/dist/node/docs/forms/docsSearch.form.js +676 -0
- package/dist/node/docs/forms/index.js +676 -0
- package/dist/node/docs/index.js +5491 -0
- package/dist/node/docs/meta.docs.js +176 -0
- package/dist/node/docs/presentations/docsLayout.presentation.js +1090 -0
- package/dist/node/docs/presentations/docsReferencePage.presentation.js +1090 -0
- package/dist/node/docs/presentations/index.js +1118 -0
- package/dist/node/docs/presentations.js +97 -0
- package/dist/node/docs/queries/contractReference.query.js +966 -0
- package/dist/node/docs/queries/docsIndex.query.js +966 -0
- package/dist/node/docs/queries/index.js +1041 -0
- package/dist/node/docs/registry.js +153 -0
- package/dist/node/docs/tech/auth/better-auth-nextjs.docblock.js +221 -0
- package/dist/node/docs/tech/cli.docblock.js +291 -0
- package/dist/node/docs/tech/contracts/README.docblock.js +164 -0
- package/dist/node/docs/tech/contracts/migrations.docblock.js +164 -0
- package/dist/node/docs/tech/contracts/openapi-export.docblock.js +201 -0
- package/dist/node/docs/tech/contracts/openapi-import.docblock.js +207 -0
- package/dist/node/docs/tech/contracts/ops-to-presentation-linking.docblock.js +225 -0
- package/dist/node/docs/tech/contracts/overlays.docblock.js +231 -0
- package/dist/node/docs/tech/contracts/tests.docblock.js +164 -0
- package/dist/node/docs/tech/contracts/themes.docblock.js +257 -0
- package/dist/node/docs/tech/contracts/vertical-pocket-family-office.docblock.js +269 -0
- package/dist/node/docs/tech/docs-system.docblock.js +264 -0
- package/dist/node/docs/tech/lifecycle-stage-system.docblock.js +376 -0
- package/dist/node/docs/tech/llm/llm-integration.docblock.js +482 -0
- package/dist/node/docs/tech/mcp-endpoints.docblock.js +185 -0
- package/dist/node/docs/tech/presentation-runtime.docblock.js +221 -0
- package/dist/node/docs/tech/report-verification-table.docblock.js +191 -0
- package/dist/node/docs/tech/schema/README.docblock.js +164 -0
- package/dist/node/docs/tech/studio/learning-events.docblock.js +190 -0
- package/dist/node/docs/tech/studio/learning-journeys.docblock.js +227 -0
- package/dist/node/docs/tech/studio/platform-admin-panel.docblock.js +226 -0
- package/dist/node/docs/tech/studio/project-access-teams.docblock.js +200 -0
- package/dist/node/docs/tech/studio/project-routing.docblock.js +209 -0
- package/dist/node/docs/tech/studio/sandbox-unlogged.docblock.js +183 -0
- package/dist/node/docs/tech/studio/team-invitations.docblock.js +228 -0
- package/dist/node/docs/tech/studio/workspace-ops.docblock.js +189 -0
- package/dist/node/docs/tech/studio/workspaces.docblock.js +204 -0
- package/dist/node/docs/tech/telemetry-ingest.docblock.js +305 -0
- package/dist/node/docs/tech/vscode-extension.docblock.js +241 -0
- package/dist/node/docs/tech-contracts.docs.js +239 -0
- package/dist/node/docs/types.js +0 -0
- package/dist/node/docs/views/contractReference.dataView.js +1047 -0
- package/dist/node/docs/views/docsIndex.dataView.js +1041 -0
- package/dist/node/docs/views/exampleCatalog.dataView.js +1025 -0
- package/dist/node/docs/views/index.js +1240 -0
- package/dist/node/events.js +228 -0
- package/dist/node/examples/docs/examples.docblock.js +307 -0
- package/dist/node/examples/index.js +604 -0
- package/dist/node/examples/registry.js +286 -0
- package/dist/node/examples/schema.js +166 -0
- package/dist/node/examples/types.js +77 -0
- package/dist/node/examples/validation.js +287 -0
- package/dist/node/experiments/docs/experiments.docblock.js +291 -0
- package/dist/node/experiments/evaluator.js +155 -0
- package/dist/node/experiments/spec-resolver.js +0 -0
- package/dist/node/experiments/spec.js +227 -0
- package/dist/node/features/index.js +275 -0
- package/dist/node/features/install.js +95 -0
- package/dist/node/features/registry.js +192 -0
- package/dist/node/features/types.js +0 -0
- package/dist/node/features/validation.js +48 -0
- package/dist/node/forms/docs/forms.docblock.js +164 -0
- package/dist/node/forms/forms.js +332 -0
- package/dist/node/forms/index.js +332 -0
- package/dist/node/index.js +18236 -0
- package/dist/node/install.js +60 -0
- package/dist/node/integrations/binding.js +0 -0
- package/dist/node/integrations/connection.js +0 -0
- package/dist/node/integrations/docs/integrations.docblock.js +255 -0
- package/dist/node/integrations/health.js +103 -0
- package/dist/node/integrations/index.js +3809 -0
- package/dist/node/integrations/integrations.capability.js +726 -0
- package/dist/node/integrations/integrations.feature.js +301 -0
- package/dist/node/integrations/meeting-recorder/contracts/index.js +1231 -0
- package/dist/node/integrations/meeting-recorder/contracts/meetings.js +866 -0
- package/dist/node/integrations/meeting-recorder/contracts/transcripts.js +933 -0
- package/dist/node/integrations/meeting-recorder/contracts/webhooks.js +819 -0
- package/dist/node/integrations/meeting-recorder/meeting-recorder.capability.js +726 -0
- package/dist/node/integrations/meeting-recorder/meeting-recorder.feature.js +301 -0
- package/dist/node/integrations/meeting-recorder/models.js +152 -0
- package/dist/node/integrations/meeting-recorder/telemetry.js +84 -0
- package/dist/node/integrations/openbanking/contracts/accounts.js +974 -0
- package/dist/node/integrations/openbanking/contracts/balances.js +938 -0
- package/dist/node/integrations/openbanking/contracts/index.js +1399 -0
- package/dist/node/integrations/openbanking/contracts/transactions.js +944 -0
- package/dist/node/integrations/openbanking/guards.js +72 -0
- package/dist/node/integrations/openbanking/models.js +140 -0
- package/dist/node/integrations/openbanking/openbanking.capability.js +726 -0
- package/dist/node/integrations/openbanking/openbanking.feature.js +303 -0
- package/dist/node/integrations/openbanking/telemetry.js +81 -0
- package/dist/node/integrations/operations.js +943 -0
- package/dist/node/integrations/providers/analytics-reader.js +0 -0
- package/dist/node/integrations/providers/analytics-writer.js +0 -0
- package/dist/node/integrations/providers/analytics.js +0 -0
- package/dist/node/integrations/providers/calendar.js +0 -0
- package/dist/node/integrations/providers/database.js +0 -0
- package/dist/node/integrations/providers/elevenlabs.js +331 -0
- package/dist/node/integrations/providers/email.js +0 -0
- package/dist/node/integrations/providers/embedding.js +0 -0
- package/dist/node/integrations/providers/fal.js +357 -0
- package/dist/node/integrations/providers/fathom.js +371 -0
- package/dist/node/integrations/providers/fireflies.js +351 -0
- package/dist/node/integrations/providers/gcs-storage.js +342 -0
- package/dist/node/integrations/providers/gmail.js +354 -0
- package/dist/node/integrations/providers/google-calendar.js +337 -0
- package/dist/node/integrations/providers/gradium.js +355 -0
- package/dist/node/integrations/providers/granola.js +352 -0
- package/dist/node/integrations/providers/index.js +2142 -0
- package/dist/node/integrations/providers/jira.js +353 -0
- package/dist/node/integrations/providers/linear.js +352 -0
- package/dist/node/integrations/providers/llm.js +0 -0
- package/dist/node/integrations/providers/meeting-recorder.js +0 -0
- package/dist/node/integrations/providers/mistral.js +339 -0
- package/dist/node/integrations/providers/notion.js +358 -0
- package/dist/node/integrations/providers/openbanking.js +0 -0
- package/dist/node/integrations/providers/payments.js +0 -0
- package/dist/node/integrations/providers/posthog.js +349 -0
- package/dist/node/integrations/providers/postmark.js +343 -0
- package/dist/node/integrations/providers/powens.js +369 -0
- package/dist/node/integrations/providers/project-management.js +0 -0
- package/dist/node/integrations/providers/qdrant.js +346 -0
- package/dist/node/integrations/providers/registry.js +2100 -0
- package/dist/node/integrations/providers/sms.js +0 -0
- package/dist/node/integrations/providers/storage.js +0 -0
- package/dist/node/integrations/providers/stripe.js +350 -0
- package/dist/node/integrations/providers/supabase-postgres.js +332 -0
- package/dist/node/integrations/providers/supabase-vector.js +352 -0
- package/dist/node/integrations/providers/tldv.js +351 -0
- package/dist/node/integrations/providers/twilio-sms.js +336 -0
- package/dist/node/integrations/providers/vector-store.js +0 -0
- package/dist/node/integrations/providers/voice.js +0 -0
- package/dist/node/integrations/runtime.js +239 -0
- package/dist/node/integrations/secrets/aws-secret-manager.js +376 -0
- package/dist/node/integrations/secrets/env-secret-provider.js +189 -0
- package/dist/node/integrations/secrets/gcp-secret-manager.js +377 -0
- package/dist/node/integrations/secrets/index.js +1159 -0
- package/dist/node/integrations/secrets/manager.js +213 -0
- package/dist/node/integrations/secrets/provider.js +104 -0
- package/dist/node/integrations/secrets/scaleway-secret-manager.js +405 -0
- package/dist/node/integrations/secrets-types.js +0 -0
- package/dist/node/integrations/spec.js +232 -0
- package/dist/node/jobs/define-job.js +41 -0
- package/dist/node/jobs/gcp-cloud-tasks.js +103 -0
- package/dist/node/jobs/gcp-pubsub.js +91 -0
- package/dist/node/jobs/handlers/gmail-sync-handler.js +40 -0
- package/dist/node/jobs/handlers/index.js +83 -0
- package/dist/node/jobs/handlers/ping-handler.js +47 -0
- package/dist/node/jobs/handlers/storage-document-handler.js +47 -0
- package/dist/node/jobs/index.js +64 -0
- package/dist/node/jobs/memory-queue.js +129 -0
- package/dist/node/jobs/queue.js +55 -0
- package/dist/node/jobs/scaleway-sqs-queue.js +222 -0
- package/dist/node/jsonschema.js +73 -0
- package/dist/node/knowledge/binding.js +0 -0
- package/dist/node/knowledge/docs/knowledge.docblock.js +301 -0
- package/dist/node/knowledge/index.js +468 -0
- package/dist/node/knowledge/ingestion/document-processor.js +95 -0
- package/dist/node/knowledge/ingestion/embedding-service.js +57 -0
- package/dist/node/knowledge/ingestion/gmail-adapter.js +103 -0
- package/dist/node/knowledge/ingestion/index.js +252 -0
- package/dist/node/knowledge/ingestion/storage-adapter.js +62 -0
- package/dist/node/knowledge/ingestion/vector-indexer.js +63 -0
- package/dist/node/knowledge/knowledge.capability.js +726 -0
- package/dist/node/knowledge/knowledge.feature.js +301 -0
- package/dist/node/knowledge/operations.js +869 -0
- package/dist/node/knowledge/query/index.js +110 -0
- package/dist/node/knowledge/query/service.js +110 -0
- package/dist/node/knowledge/runtime.js +91 -0
- package/dist/node/knowledge/source.js +0 -0
- package/dist/node/knowledge/spaces/email-threads.js +102 -0
- package/dist/node/knowledge/spaces/financial-docs.js +102 -0
- package/dist/node/knowledge/spaces/financial-overview.js +102 -0
- package/dist/node/knowledge/spaces/index.js +273 -0
- package/dist/node/knowledge/spaces/product-canon.js +102 -0
- package/dist/node/knowledge/spaces/support-faq.js +103 -0
- package/dist/node/knowledge/spaces/uploaded-docs.js +102 -0
- package/dist/node/knowledge/spec.js +228 -0
- package/dist/node/llm/exporters.js +1261 -0
- package/dist/node/llm/index.js +1715 -0
- package/dist/node/llm/prompts.js +1706 -0
- package/dist/node/llm/types.js +0 -0
- package/dist/node/markdown.js +779 -0
- package/dist/node/migrations.js +67 -0
- package/dist/node/model-registry.js +64 -0
- package/dist/node/onboarding-base.js +810 -0
- package/dist/node/openapi.js +151 -0
- package/dist/node/operations/index.js +665 -0
- package/dist/node/operations/operation.js +51 -0
- package/dist/node/operations/registry.js +405 -0
- package/dist/node/operations/report/getContractVerificationStatus.js +170 -0
- package/dist/node/operations/report/index.js +305 -0
- package/dist/node/ownership.js +73 -0
- package/dist/node/policy/context.js +206 -0
- package/dist/node/policy/docs/policy.docblock.js +313 -0
- package/dist/node/policy/engine.js +325 -0
- package/dist/node/policy/guards.js +387 -0
- package/dist/node/policy/index.js +1313 -0
- package/dist/node/policy/opa-adapter.js +110 -0
- package/dist/node/policy/registry.js +221 -0
- package/dist/node/policy/spec.js +0 -0
- package/dist/node/policy/validation.js +391 -0
- package/dist/node/presentations/docs/presentations-conventions.docblock.js +171 -0
- package/dist/node/presentations/index.js +795 -0
- package/dist/node/presentations/presentations.js +38 -0
- package/dist/node/presentations/registry.js +221 -0
- package/dist/node/presentations/transform-engine.js +600 -0
- package/dist/node/product-intent/contract-patch-intent.js +68 -0
- package/dist/node/product-intent/contract-spec-patch.js +75 -0
- package/dist/node/product-intent/evidence.js +45 -0
- package/dist/node/product-intent/findings.js +81 -0
- package/dist/node/product-intent/impact-report.js +62 -0
- package/dist/node/product-intent/index.js +742 -0
- package/dist/node/product-intent/insights.js +63 -0
- package/dist/node/product-intent/opportunity-brief.js +106 -0
- package/dist/node/product-intent/problems.js +55 -0
- package/dist/node/product-intent/registry.js +242 -0
- package/dist/node/product-intent/runtime.js +320 -0
- package/dist/node/product-intent/spec.js +425 -0
- package/dist/node/product-intent/task-pack.js +69 -0
- package/dist/node/product-intent/tickets.js +57 -0
- package/dist/node/product-intent/types.js +378 -0
- package/dist/node/product-intent/ui-wireframe.js +73 -0
- package/dist/node/prompt.js +38 -0
- package/dist/node/promptRegistry.js +63 -0
- package/dist/node/regenerator/adapters.js +0 -0
- package/dist/node/regenerator/docs/regenerator.docblock.js +164 -0
- package/dist/node/regenerator/executor.js +157 -0
- package/dist/node/regenerator/index.js +342 -0
- package/dist/node/regenerator/service.js +183 -0
- package/dist/node/regenerator/sinks.js +64 -0
- package/dist/node/regenerator/types.js +0 -0
- package/dist/node/regenerator/utils.js +87 -0
- package/dist/node/registry-utils.js +163 -0
- package/dist/node/registry.js +215 -0
- package/dist/node/resources.js +83 -0
- package/dist/node/schema-to-markdown.js +278 -0
- package/dist/node/serialization/index.js +179 -0
- package/dist/node/serialization/serializers.js +180 -0
- package/dist/node/serialization/types.js +0 -0
- package/dist/node/server/contracts-adapter-hydration.js +71 -0
- package/dist/node/server/contracts-adapter-input.js +130 -0
- package/dist/node/server/graphql-pothos.js +338 -0
- package/dist/node/server/index.js +1469 -0
- package/dist/node/server/mcp/createMcpServer.js +994 -0
- package/dist/node/server/mcp/mcpTypes.js +0 -0
- package/dist/node/server/mcp/registerPresentations.js +877 -0
- package/dist/node/server/mcp/registerPrompts.js +109 -0
- package/dist/node/server/mcp/registerResources.js +75 -0
- package/dist/node/server/mcp/registerTools.js +86 -0
- package/dist/node/server/provider-mcp.js +994 -0
- package/dist/node/server/rest-elysia.js +209 -0
- package/dist/node/server/rest-express.js +224 -0
- package/dist/node/server/rest-generic.js +192 -0
- package/dist/node/server/rest-next-app.js +200 -0
- package/dist/node/server/rest-next-mcp.js +103 -0
- package/dist/node/server/rest-next-pages.js +211 -0
- package/dist/node/telemetry/anomaly.js +91 -0
- package/dist/node/telemetry/docs/telemetry.docblock.js +164 -0
- package/dist/node/telemetry/index.js +417 -0
- package/dist/node/telemetry/spec.js +261 -0
- package/dist/node/telemetry/tracker.js +129 -0
- package/dist/node/tests/index.js +231 -0
- package/dist/node/tests/runner.js +189 -0
- package/dist/node/tests/spec.js +74 -0
- package/dist/node/themes.js +225 -0
- package/dist/node/translations/catalog.js +0 -0
- package/dist/node/translations/index.js +533 -0
- package/dist/node/translations/registry.js +170 -0
- package/dist/node/translations/spec.js +36 -0
- package/dist/node/translations/tenant.js +0 -0
- package/dist/node/translations/validation.js +392 -0
- package/dist/node/types.js +0 -0
- package/dist/node/versioning/index.js +274 -0
- package/dist/node/versioning/refs.js +99 -0
- package/dist/node/versioning/types.js +55 -0
- package/dist/node/versioning/utils.js +184 -0
- package/dist/node/workflow/adapters/db-adapter.js +127 -0
- package/dist/node/workflow/adapters/file-adapter.js +38 -0
- package/dist/node/workflow/adapters/index.js +194 -0
- package/dist/node/workflow/adapters/memory-store.js +93 -0
- package/dist/node/workflow/context.js +247 -0
- package/dist/node/workflow/expression.js +157 -0
- package/dist/node/workflow/index.js +1546 -0
- package/dist/node/workflow/overview.docblock.js +164 -0
- package/dist/node/workflow/runner.js +532 -0
- package/dist/node/workflow/sla-monitor.js +84 -0
- package/dist/node/workflow/spec.js +221 -0
- package/dist/node/workflow/state.js +0 -0
- package/dist/node/workflow/validation.js +425 -0
- package/dist/node/workspace-config/contractsrc-schema.js +344 -0
- package/dist/node/workspace-config/contractsrc-types.js +0 -0
- package/dist/node/workspace-config/index.js +325 -0
- package/dist/node/workspace-config/workspace-config.docblock.js +188 -0
- package/dist/onboarding-base.d.ts +116 -122
- package/dist/onboarding-base.d.ts.map +1 -0
- package/dist/onboarding-base.js +807 -192
- package/dist/openapi.d.ts +30 -27
- package/dist/openapi.d.ts.map +1 -0
- package/dist/openapi.js +140 -71
- package/dist/operations/index.d.ts +4 -6
- package/dist/operations/index.d.ts.map +1 -0
- package/dist/operations/index.js +664 -6
- package/dist/operations/operation.d.ts +151 -151
- package/dist/operations/operation.d.ts.map +1 -0
- package/dist/operations/operation.js +49 -33
- package/dist/operations/registry.d.ts +53 -48
- package/dist/operations/registry.d.ts.map +1 -0
- package/dist/operations/registry.js +401 -172
- package/dist/operations/report/getContractVerificationStatus.d.ts +61 -67
- package/dist/operations/report/getContractVerificationStatus.d.ts.map +1 -0
- package/dist/operations/report/getContractVerificationStatus.js +166 -92
- package/dist/operations/report/getContractVerificationStatus.test.d.ts +2 -0
- package/dist/operations/report/getContractVerificationStatus.test.d.ts.map +1 -0
- package/dist/operations/report/index.d.ts +8 -10
- package/dist/operations/report/index.d.ts.map +1 -0
- package/dist/operations/report/index.js +301 -41
- package/dist/operations/report/index.test.d.ts +2 -0
- package/dist/operations/report/index.test.d.ts.map +1 -0
- package/dist/ownership.d.ts +154 -151
- package/dist/ownership.d.ts.map +1 -0
- package/dist/ownership.js +70 -60
- package/dist/ownership.test.d.ts +2 -0
- package/dist/ownership.test.d.ts.map +1 -0
- package/dist/policy/context.d.ts +154 -156
- package/dist/policy/context.d.ts.map +1 -0
- package/dist/policy/context.js +197 -218
- package/dist/policy/context.test.d.ts +2 -0
- package/dist/policy/context.test.d.ts.map +1 -0
- package/dist/policy/docs/policy.docblock.d.ts +3 -6
- package/dist/policy/docs/policy.docblock.d.ts.map +1 -0
- package/dist/policy/docs/policy.docblock.js +312 -20
- package/dist/policy/engine.d.ts +32 -35
- package/dist/policy/engine.d.ts.map +1 -0
- package/dist/policy/engine.js +298 -198
- package/dist/policy/engine.test.d.ts +2 -0
- package/dist/policy/engine.test.d.ts.map +1 -0
- package/dist/policy/guards.d.ts +47 -35
- package/dist/policy/guards.d.ts.map +1 -0
- package/dist/policy/guards.js +373 -240
- package/dist/policy/guards.test.d.ts +2 -0
- package/dist/policy/guards.test.d.ts.map +1 -0
- package/dist/policy/index.d.ts +10 -13
- package/dist/policy/index.d.ts.map +1 -0
- package/dist/policy/index.js +1313 -15
- package/dist/policy/opa-adapter.d.ts +37 -40
- package/dist/policy/opa-adapter.d.ts.map +1 -0
- package/dist/policy/opa-adapter.js +103 -64
- package/dist/policy/opa-adapter.test.d.ts +2 -0
- package/dist/policy/opa-adapter.test.d.ts.map +1 -0
- package/dist/policy/registry.d.ts +5 -8
- package/dist/policy/registry.d.ts.map +1 -0
- package/dist/policy/registry.js +219 -9
- package/dist/policy/spec.d.ts +84 -87
- package/dist/policy/spec.d.ts.map +1 -0
- package/dist/policy/spec.js +1 -0
- package/dist/policy/validation.d.ts +45 -27
- package/dist/policy/validation.d.ts.map +1 -0
- package/dist/policy/validation.js +369 -285
- package/dist/policy/validation.test.d.ts +2 -0
- package/dist/policy/validation.test.d.ts.map +1 -0
- package/dist/presentations/docs/presentations-conventions.docblock.d.ts +3 -6
- package/dist/presentations/docs/presentations-conventions.docblock.d.ts.map +1 -0
- package/dist/presentations/docs/presentations-conventions.docblock.js +169 -19
- package/dist/presentations/index.d.ts +4 -4
- package/dist/presentations/index.d.ts.map +1 -0
- package/dist/presentations/index.js +794 -4
- package/dist/presentations/presentations.d.ts +42 -45
- package/dist/presentations/presentations.d.ts.map +1 -0
- package/dist/presentations/presentations.js +36 -5
- package/dist/presentations/registry.d.ts +5 -8
- package/dist/presentations/registry.d.ts.map +1 -0
- package/dist/presentations/registry.js +219 -10
- package/dist/presentations/transform-engine.d.ts +43 -46
- package/dist/presentations/transform-engine.d.ts.map +1 -0
- package/dist/presentations/transform-engine.js +580 -262
- package/dist/presentations/transform-engine.test.d.ts +2 -0
- package/dist/presentations/transform-engine.test.d.ts.map +1 -0
- package/dist/product-intent/contract-patch-intent.d.ts +101 -0
- package/dist/product-intent/contract-patch-intent.d.ts.map +1 -0
- package/dist/product-intent/contract-patch-intent.js +68 -0
- package/dist/product-intent/contract-spec-patch.d.ts +87 -0
- package/dist/product-intent/contract-spec-patch.d.ts.map +1 -0
- package/dist/product-intent/contract-spec-patch.js +75 -0
- package/dist/product-intent/evidence.d.ts +15 -0
- package/dist/product-intent/evidence.d.ts.map +1 -0
- package/dist/product-intent/evidence.js +45 -0
- package/dist/product-intent/findings.d.ts +58 -0
- package/dist/product-intent/findings.d.ts.map +1 -0
- package/dist/product-intent/findings.js +81 -0
- package/dist/product-intent/impact-report.d.ts +58 -0
- package/dist/product-intent/impact-report.d.ts.map +1 -0
- package/dist/product-intent/impact-report.js +62 -0
- package/dist/product-intent/index.d.ts +14 -0
- package/dist/product-intent/index.d.ts.map +1 -0
- package/dist/product-intent/index.js +742 -0
- package/dist/product-intent/insights.d.ts +63 -0
- package/dist/product-intent/insights.d.ts.map +1 -0
- package/dist/product-intent/insights.js +63 -0
- package/dist/product-intent/opportunity-brief.d.ts +193 -0
- package/dist/product-intent/opportunity-brief.d.ts.map +1 -0
- package/dist/product-intent/opportunity-brief.js +106 -0
- package/dist/product-intent/problems.d.ts +60 -0
- package/dist/product-intent/problems.d.ts.map +1 -0
- package/dist/product-intent/problems.js +55 -0
- package/dist/product-intent/registry.d.ts +29 -0
- package/dist/product-intent/registry.d.ts.map +1 -0
- package/dist/product-intent/registry.js +242 -0
- package/dist/product-intent/registry.test.d.ts +2 -0
- package/dist/product-intent/registry.test.d.ts.map +1 -0
- package/dist/product-intent/runtime.d.ts +93 -0
- package/dist/product-intent/runtime.d.ts.map +1 -0
- package/dist/product-intent/runtime.js +320 -0
- package/dist/product-intent/runtime.test.d.ts +2 -0
- package/dist/product-intent/runtime.test.d.ts.map +1 -0
- package/dist/product-intent/spec.d.ts +665 -0
- package/dist/product-intent/spec.d.ts.map +1 -0
- package/dist/product-intent/spec.js +425 -0
- package/dist/product-intent/task-pack.d.ts +99 -0
- package/dist/product-intent/task-pack.d.ts.map +1 -0
- package/dist/product-intent/task-pack.js +69 -0
- package/dist/product-intent/tickets.d.ts +68 -0
- package/dist/product-intent/tickets.d.ts.map +1 -0
- package/dist/product-intent/tickets.js +57 -0
- package/dist/product-intent/types.d.ts +12 -0
- package/dist/product-intent/types.d.ts.map +1 -0
- package/dist/product-intent/types.js +378 -0
- package/dist/product-intent/ui-wireframe.d.ts +101 -0
- package/dist/product-intent/ui-wireframe.d.ts.map +1 -0
- package/dist/product-intent/ui-wireframe.js +73 -0
- package/dist/prompt.d.ts +37 -40
- package/dist/prompt.d.ts.map +1 -0
- package/dist/prompt.js +35 -7
- package/dist/prompt.test.d.ts +2 -0
- package/dist/prompt.test.d.ts.map +1 -0
- package/dist/promptRegistry.d.ts +11 -14
- package/dist/promptRegistry.d.ts.map +1 -0
- package/dist/promptRegistry.js +60 -28
- package/dist/promptRegistry.test.d.ts +2 -0
- package/dist/promptRegistry.test.d.ts.map +1 -0
- package/dist/regenerator/adapters.d.ts +12 -15
- package/dist/regenerator/adapters.d.ts.map +1 -0
- package/dist/regenerator/adapters.js +1 -0
- package/dist/regenerator/docs/regenerator.docblock.d.ts +3 -6
- package/dist/regenerator/docs/regenerator.docblock.d.ts.map +1 -0
- package/dist/regenerator/docs/regenerator.docblock.js +162 -19
- package/dist/regenerator/executor.d.ts +52 -55
- package/dist/regenerator/executor.d.ts.map +1 -0
- package/dist/regenerator/executor.js +154 -83
- package/dist/regenerator/executor.test.d.ts +2 -0
- package/dist/regenerator/executor.test.d.ts.map +1 -0
- package/dist/regenerator/index.d.ts +7 -7
- package/dist/regenerator/index.d.ts.map +1 -0
- package/dist/regenerator/index.js +341 -5
- package/dist/regenerator/service.d.ts +28 -31
- package/dist/regenerator/service.d.ts.map +1 -0
- package/dist/regenerator/service.js +181 -91
- package/dist/regenerator/service.test.d.ts +2 -0
- package/dist/regenerator/service.test.d.ts.map +1 -0
- package/dist/regenerator/sinks.d.ts +20 -22
- package/dist/regenerator/sinks.d.ts.map +1 -0
- package/dist/regenerator/sinks.js +62 -30
- package/dist/regenerator/sinks.test.d.ts +2 -0
- package/dist/regenerator/sinks.test.d.ts.map +1 -0
- package/dist/regenerator/types.d.ts +87 -90
- package/dist/regenerator/types.d.ts.map +1 -0
- package/dist/regenerator/types.js +1 -0
- package/dist/regenerator/utils.d.ts +6 -8
- package/dist/regenerator/utils.d.ts.map +1 -0
- package/dist/regenerator/utils.js +73 -37
- package/dist/registry-utils.d.ts +63 -63
- package/dist/registry-utils.d.ts.map +1 -0
- package/dist/registry-utils.js +144 -103
- package/dist/registry-utils.test.d.ts +2 -0
- package/dist/registry-utils.test.d.ts.map +1 -0
- package/dist/registry.d.ts +25 -29
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +212 -58
- package/dist/resources.d.ts +56 -59
- package/dist/resources.d.ts.map +1 -0
- package/dist/resources.js +76 -43
- package/dist/schema-to-markdown.d.ts +35 -32
- package/dist/schema-to-markdown.d.ts.map +1 -0
- package/dist/schema-to-markdown.js +251 -190
- package/dist/serialization/index.d.ts +11 -3
- package/dist/serialization/index.d.ts.map +1 -0
- package/dist/serialization/index.js +179 -3
- package/dist/serialization/serializers.d.ts +18 -22
- package/dist/serialization/serializers.d.ts.map +1 -0
- package/dist/serialization/serializers.js +164 -132
- package/dist/serialization/types.d.ts +82 -84
- package/dist/serialization/types.d.ts.map +1 -0
- package/dist/serialization/types.js +1 -0
- package/dist/server/contracts-adapter-hydration.d.ts +10 -13
- package/dist/server/contracts-adapter-hydration.d.ts.map +1 -0
- package/dist/server/contracts-adapter-hydration.js +67 -37
- package/dist/server/contracts-adapter-input.d.ts +5 -8
- package/dist/server/contracts-adapter-input.d.ts.map +1 -0
- package/dist/server/contracts-adapter-input.js +121 -74
- package/dist/server/graphql-pothos.d.ts +10 -14
- package/dist/server/graphql-pothos.d.ts.map +1 -0
- package/dist/server/graphql-pothos.js +334 -130
- package/dist/server/index.d.ts +8 -9
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +1469 -10
- package/dist/server/mcp/createMcpServer.d.ts +7 -11
- package/dist/server/mcp/createMcpServer.d.ts.map +1 -0
- package/dist/server/mcp/createMcpServer.js +993 -26
- package/dist/server/mcp/mcpTypes.d.ts +22 -26
- package/dist/server/mcp/mcpTypes.d.ts.map +1 -0
- package/dist/server/mcp/mcpTypes.js +1 -0
- package/dist/server/mcp/registerPresentations.d.ts +4 -7
- package/dist/server/mcp/registerPresentations.d.ts.map +1 -0
- package/dist/server/mcp/registerPresentations.js +873 -50
- package/dist/server/mcp/registerPrompts.d.ts +5 -8
- package/dist/server/mcp/registerPrompts.d.ts.map +1 -0
- package/dist/server/mcp/registerPrompts.js +103 -35
- package/dist/server/mcp/registerResources.d.ts +5 -8
- package/dist/server/mcp/registerResources.d.ts.map +1 -0
- package/dist/server/mcp/registerResources.js +70 -30
- package/dist/server/mcp/registerTools.d.ts +5 -8
- package/dist/server/mcp/registerTools.d.ts.map +1 -0
- package/dist/server/mcp/registerTools.js +83 -19
- package/dist/server/provider-mcp.d.ts +2 -2
- package/dist/server/provider-mcp.d.ts.map +1 -0
- package/dist/server/provider-mcp.js +993 -2
- package/dist/server/provider-mcp.test.d.ts +2 -0
- package/dist/server/provider-mcp.test.d.ts.map +1 -0
- package/dist/server/rest-elysia.d.ts +30 -33
- package/dist/server/rest-elysia.d.ts.map +1 -0
- package/dist/server/rest-elysia.js +206 -17
- package/dist/server/rest-express.d.ts +8 -12
- package/dist/server/rest-express.d.ts.map +1 -0
- package/dist/server/rest-express.js +221 -33
- package/dist/server/rest-generic.d.ts +22 -25
- package/dist/server/rest-generic.d.ts.map +1 -0
- package/dist/server/rest-generic.js +185 -117
- package/dist/server/rest-next-app.d.ts +5 -9
- package/dist/server/rest-next-app.d.ts.map +1 -0
- package/dist/server/rest-next-app.js +197 -35
- package/dist/server/rest-next-mcp.d.ts +7 -10
- package/dist/server/rest-next-mcp.d.ts.map +1 -0
- package/dist/server/rest-next-mcp.js +100 -42
- package/dist/server/rest-next-pages.d.ts +6 -9
- package/dist/server/rest-next-pages.d.ts.map +1 -0
- package/dist/server/rest-next-pages.js +208 -19
- package/dist/telemetry/anomaly.d.ts +21 -24
- package/dist/telemetry/anomaly.d.ts.map +1 -0
- package/dist/telemetry/anomaly.js +89 -46
- package/dist/telemetry/anomaly.test.d.ts +2 -0
- package/dist/telemetry/anomaly.test.d.ts.map +1 -0
- package/dist/telemetry/docs/telemetry.docblock.d.ts +3 -6
- package/dist/telemetry/docs/telemetry.docblock.d.ts.map +1 -0
- package/dist/telemetry/docs/telemetry.docblock.js +162 -19
- package/dist/telemetry/index.d.ts +4 -4
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +416 -4
- package/dist/telemetry/spec.d.ts +78 -81
- package/dist/telemetry/spec.d.ts.map +1 -0
- package/dist/telemetry/spec.js +257 -38
- package/dist/telemetry/spec.test.d.ts +2 -0
- package/dist/telemetry/spec.test.d.ts.map +1 -0
- package/dist/telemetry/tracker.d.ts +44 -47
- package/dist/telemetry/tracker.d.ts.map +1 -0
- package/dist/telemetry/tracker.js +126 -73
- package/dist/telemetry/tracker.test.d.ts +2 -0
- package/dist/telemetry/tracker.test.d.ts.map +1 -0
- package/dist/tests/index.d.ts +3 -3
- package/dist/tests/index.d.ts.map +1 -0
- package/dist/tests/index.js +230 -3
- package/dist/tests/runner.d.ts +34 -38
- package/dist/tests/runner.d.ts.map +1 -0
- package/dist/tests/runner.js +186 -147
- package/dist/tests/runner.test.d.ts +2 -0
- package/dist/tests/runner.test.d.ts.map +1 -0
- package/dist/tests/spec.d.ts +59 -63
- package/dist/tests/spec.d.ts.map +1 -0
- package/dist/tests/spec.js +68 -28
- package/dist/tests/spec.test.d.ts +2 -0
- package/dist/tests/spec.test.d.ts.map +1 -0
- package/dist/themes.d.ts +44 -47
- package/dist/themes.d.ts.map +1 -0
- package/dist/themes.js +222 -14
- package/dist/themes.test.d.ts +2 -0
- package/dist/themes.test.d.ts.map +1 -0
- package/dist/translations/catalog.d.ts +22 -24
- package/dist/translations/catalog.d.ts.map +1 -0
- package/dist/translations/catalog.js +1 -0
- package/dist/translations/index.d.ts +45 -6
- package/dist/translations/index.d.ts.map +1 -0
- package/dist/translations/index.js +532 -4
- package/dist/translations/registry.d.ts +167 -138
- package/dist/translations/registry.d.ts.map +1 -0
- package/dist/translations/registry.js +168 -221
- package/dist/translations/registry.test.d.ts +2 -0
- package/dist/translations/registry.test.d.ts.map +1 -0
- package/dist/translations/spec.d.ts +114 -86
- package/dist/translations/spec.d.ts.map +1 -0
- package/dist/translations/spec.js +35 -30
- package/dist/translations/spec.test.d.ts +2 -0
- package/dist/translations/spec.test.d.ts.map +1 -0
- package/dist/translations/tenant.d.ts +11 -14
- package/dist/translations/tenant.d.ts.map +1 -0
- package/dist/translations/tenant.js +1 -0
- package/dist/translations/validation.d.ts +58 -36
- package/dist/translations/validation.d.ts.map +1 -0
- package/dist/translations/validation.js +366 -302
- package/dist/translations/validation.test.d.ts +2 -0
- package/dist/translations/validation.test.d.ts.map +1 -0
- package/dist/types.d.ts +117 -122
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/dist/versioning/index.d.ts +10 -4
- package/dist/versioning/index.d.ts.map +1 -0
- package/dist/versioning/index.js +273 -4
- package/dist/versioning/refs.d.ts +22 -24
- package/dist/versioning/refs.d.ts.map +1 -0
- package/dist/versioning/refs.js +83 -145
- package/dist/versioning/refs.test.d.ts +5 -0
- package/dist/versioning/refs.test.d.ts.map +1 -0
- package/dist/versioning/types.d.ts +110 -106
- package/dist/versioning/types.d.ts.map +1 -0
- package/dist/versioning/types.js +49 -18
- package/dist/versioning/utils.d.ts +18 -19
- package/dist/versioning/utils.d.ts.map +1 -0
- package/dist/versioning/utils.js +158 -154
- package/dist/versioning/utils.test.d.ts +5 -0
- package/dist/versioning/utils.test.d.ts.map +1 -0
- package/dist/workflow/adapters/db-adapter.d.ts +39 -41
- package/dist/workflow/adapters/db-adapter.d.ts.map +1 -0
- package/dist/workflow/adapters/db-adapter.js +125 -81
- package/dist/workflow/adapters/file-adapter.d.ts +6 -9
- package/dist/workflow/adapters/file-adapter.d.ts.map +1 -0
- package/dist/workflow/adapters/file-adapter.js +36 -9
- package/dist/workflow/adapters/index.d.ts +4 -4
- package/dist/workflow/adapters/index.d.ts.map +1 -0
- package/dist/workflow/adapters/index.js +193 -4
- package/dist/workflow/adapters/memory-store.d.ts +9 -13
- package/dist/workflow/adapters/memory-store.d.ts.map +1 -0
- package/dist/workflow/adapters/memory-store.js +89 -54
- package/dist/workflow/context.d.ts +168 -141
- package/dist/workflow/context.d.ts.map +1 -0
- package/dist/workflow/context.js +237 -217
- package/dist/workflow/context.test.d.ts +2 -0
- package/dist/workflow/context.test.d.ts.map +1 -0
- package/dist/workflow/expression.d.ts +6 -8
- package/dist/workflow/expression.d.ts.map +1 -0
- package/dist/workflow/expression.js +143 -85
- package/dist/workflow/expression.test.d.ts +2 -0
- package/dist/workflow/expression.test.d.ts.map +1 -0
- package/dist/workflow/index.d.ts +11 -17
- package/dist/workflow/index.d.ts.map +1 -0
- package/dist/workflow/index.js +1546 -18
- package/dist/workflow/overview.docblock.d.ts +3 -6
- package/dist/workflow/overview.docblock.d.ts.map +1 -0
- package/dist/workflow/overview.docblock.js +162 -19
- package/dist/workflow/runner.d.ts +65 -70
- package/dist/workflow/runner.d.ts.map +1 -0
- package/dist/workflow/runner.js +519 -324
- package/dist/workflow/runner.test.d.ts +2 -0
- package/dist/workflow/runner.test.d.ts.map +1 -0
- package/dist/workflow/sla-monitor.d.ts +15 -18
- package/dist/workflow/sla-monitor.d.ts.map +1 -0
- package/dist/workflow/sla-monitor.js +82 -45
- package/dist/workflow/spec.d.ts +71 -75
- package/dist/workflow/spec.d.ts.map +1 -0
- package/dist/workflow/spec.js +219 -9
- package/dist/workflow/state.d.ts +28 -31
- package/dist/workflow/state.d.ts.map +1 -0
- package/dist/workflow/state.js +1 -0
- package/dist/workflow/validation.d.ts +35 -38
- package/dist/workflow/validation.d.ts.map +1 -0
- package/dist/workflow/validation.js +396 -340
- package/dist/workflow/validation.test.d.ts +2 -0
- package/dist/workflow/validation.test.d.ts.map +1 -0
- package/dist/workspace-config/contractsrc-schema.d.ts +44 -41
- package/dist/workspace-config/contractsrc-schema.d.ts.map +1 -0
- package/dist/workspace-config/contractsrc-schema.js +312 -390
- package/dist/workspace-config/contractsrc-schema.test.d.ts +2 -0
- package/dist/workspace-config/contractsrc-schema.test.d.ts.map +1 -0
- package/dist/workspace-config/contractsrc-types.d.ts +302 -304
- package/dist/workspace-config/contractsrc-types.d.ts.map +1 -0
- package/dist/workspace-config/contractsrc-types.js +1 -0
- package/dist/workspace-config/index.d.ts +6 -3
- package/dist/workspace-config/index.d.ts.map +1 -0
- package/dist/workspace-config/index.js +325 -3
- package/dist/workspace-config/workspace-config.docblock.d.ts +3 -6
- package/dist/workspace-config/workspace-config.docblock.d.ts.map +1 -0
- package/dist/workspace-config/workspace-config.docblock.js +163 -20
- package/package.json +2743 -587
- package/dist/_virtual/rolldown_runtime.js +0 -37
- package/dist/integrations/providers/impls/elevenlabs-voice.d.ts +0 -20
- package/dist/integrations/providers/impls/elevenlabs-voice.js +0 -95
- package/dist/integrations/providers/impls/gcs-storage.d.ts +0 -24
- package/dist/integrations/providers/impls/gcs-storage.js +0 -88
- package/dist/integrations/providers/impls/gmail-inbound.d.ts +0 -26
- package/dist/integrations/providers/impls/gmail-inbound.js +0 -200
- package/dist/integrations/providers/impls/gmail-outbound.d.ts +0 -18
- package/dist/integrations/providers/impls/gmail-outbound.js +0 -105
- package/dist/integrations/providers/impls/google-calendar.d.ts +0 -23
- package/dist/integrations/providers/impls/google-calendar.js +0 -154
- package/dist/integrations/providers/impls/index.d.ts +0 -15
- package/dist/integrations/providers/impls/index.js +0 -16
- package/dist/integrations/providers/impls/mistral-embedding.d.ts +0 -23
- package/dist/integrations/providers/impls/mistral-embedding.js +0 -41
- package/dist/integrations/providers/impls/mistral-llm.d.ts +0 -31
- package/dist/integrations/providers/impls/mistral-llm.js +0 -247
- package/dist/integrations/providers/impls/postmark-email.d.ts +0 -19
- package/dist/integrations/providers/impls/postmark-email.js +0 -55
- package/dist/integrations/providers/impls/powens-client.d.ts +0 -124
- package/dist/integrations/providers/impls/powens-client.js +0 -171
- package/dist/integrations/providers/impls/powens-openbanking.d.ts +0 -27
- package/dist/integrations/providers/impls/powens-openbanking.js +0 -218
- package/dist/integrations/providers/impls/provider-factory.d.ts +0 -26
- package/dist/integrations/providers/impls/provider-factory.js +0 -146
- package/dist/integrations/providers/impls/qdrant-vector.d.ts +0 -24
- package/dist/integrations/providers/impls/qdrant-vector.js +0 -69
- package/dist/integrations/providers/impls/stripe-payments.d.ts +0 -28
- package/dist/integrations/providers/impls/stripe-payments.js +0 -202
- package/dist/integrations/providers/impls/twilio-sms.d.ts +0 -20
- package/dist/integrations/providers/impls/twilio-sms.js +0 -58
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
//#region rolldown:runtime
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
7
|
-
var __exportAll = (all, symbols) => {
|
|
8
|
-
let target = {};
|
|
9
|
-
for (var name in all) {
|
|
10
|
-
__defProp(target, name, {
|
|
11
|
-
get: all[name],
|
|
12
|
-
enumerable: true
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
if (symbols) {
|
|
16
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
var __copyProps = (to, from, except, desc) => {
|
|
21
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
23
|
-
key = keys[i];
|
|
24
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
25
|
-
__defProp(to, key, {
|
|
26
|
-
get: ((k) => from[k]).bind(null, key),
|
|
27
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return to;
|
|
33
|
-
};
|
|
34
|
-
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
export { __esmMin, __exportAll, __toCommonJS };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Voice, VoiceProvider, VoiceSynthesisInput, VoiceSynthesisResult } from "../voice.js";
|
|
2
|
-
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
|
|
3
|
-
|
|
4
|
-
//#region src/integrations/providers/impls/elevenlabs-voice.d.ts
|
|
5
|
-
interface ElevenLabsVoiceProviderOptions {
|
|
6
|
-
apiKey: string;
|
|
7
|
-
defaultVoiceId?: string;
|
|
8
|
-
modelId?: string;
|
|
9
|
-
client?: ElevenLabsClient;
|
|
10
|
-
}
|
|
11
|
-
declare class ElevenLabsVoiceProvider implements VoiceProvider {
|
|
12
|
-
private readonly client;
|
|
13
|
-
private readonly defaultVoiceId?;
|
|
14
|
-
private readonly modelId?;
|
|
15
|
-
constructor(options: ElevenLabsVoiceProviderOptions);
|
|
16
|
-
listVoices(): Promise<Voice[]>;
|
|
17
|
-
synthesize(input: VoiceSynthesisInput): Promise<VoiceSynthesisResult>;
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
export { ElevenLabsVoiceProvider, ElevenLabsVoiceProviderOptions };
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
|
|
2
|
-
|
|
3
|
-
//#region src/integrations/providers/impls/elevenlabs-voice.ts
|
|
4
|
-
const FORMAT_MAP = {
|
|
5
|
-
mp3: "mp3_44100_128",
|
|
6
|
-
wav: "pcm_44100",
|
|
7
|
-
ogg: "mp3_44100_128",
|
|
8
|
-
pcm: "pcm_16000"
|
|
9
|
-
};
|
|
10
|
-
const SAMPLE_RATE = {
|
|
11
|
-
mp3_22050_32: 22050,
|
|
12
|
-
mp3_44100_32: 44100,
|
|
13
|
-
mp3_44100_64: 44100,
|
|
14
|
-
mp3_44100_96: 44100,
|
|
15
|
-
mp3_44100_128: 44100,
|
|
16
|
-
mp3_44100_192: 44100,
|
|
17
|
-
pcm_16000: 16e3,
|
|
18
|
-
pcm_22050: 22050,
|
|
19
|
-
pcm_24000: 24e3,
|
|
20
|
-
pcm_44100: 44100,
|
|
21
|
-
ulaw_8000: 8e3
|
|
22
|
-
};
|
|
23
|
-
var ElevenLabsVoiceProvider = class {
|
|
24
|
-
client;
|
|
25
|
-
defaultVoiceId;
|
|
26
|
-
modelId;
|
|
27
|
-
constructor(options) {
|
|
28
|
-
this.client = options.client ?? new ElevenLabsClient({ apiKey: options.apiKey });
|
|
29
|
-
this.defaultVoiceId = options.defaultVoiceId;
|
|
30
|
-
this.modelId = options.modelId;
|
|
31
|
-
}
|
|
32
|
-
async listVoices() {
|
|
33
|
-
return ((await this.client.voices.getAll()).voices ?? []).map((voice) => ({
|
|
34
|
-
id: voice.voiceId ?? "",
|
|
35
|
-
name: voice.name ?? voice.voiceId ?? "",
|
|
36
|
-
description: voice.description ?? void 0,
|
|
37
|
-
language: voice.labels?.language ?? void 0,
|
|
38
|
-
gender: normalizeGender(voice.labels?.gender),
|
|
39
|
-
previewUrl: voice.previewUrl ?? void 0,
|
|
40
|
-
metadata: {
|
|
41
|
-
category: voice.category ?? "",
|
|
42
|
-
...voice.labels
|
|
43
|
-
}
|
|
44
|
-
}));
|
|
45
|
-
}
|
|
46
|
-
async synthesize(input) {
|
|
47
|
-
const voiceId = input.voiceId ?? this.defaultVoiceId;
|
|
48
|
-
if (!voiceId) throw new Error("Voice ID is required for ElevenLabs synthesis.");
|
|
49
|
-
const formatKey = input.format ?? "mp3";
|
|
50
|
-
const outputFormat = FORMAT_MAP[formatKey] ?? FORMAT_MAP.mp3;
|
|
51
|
-
const sampleRate = input.sampleRateHz ?? SAMPLE_RATE[outputFormat] ?? SAMPLE_RATE.mp3_44100_128 ?? 44100;
|
|
52
|
-
const voiceSettings = input.stability != null || input.similarityBoost != null || input.style != null ? {
|
|
53
|
-
...input.stability != null ? { stability: input.stability } : {},
|
|
54
|
-
...input.similarityBoost != null ? { similarityBoost: input.similarityBoost } : {},
|
|
55
|
-
...input.style != null ? { style: input.style } : {}
|
|
56
|
-
} : void 0;
|
|
57
|
-
return {
|
|
58
|
-
audio: await readWebStream(await this.client.textToSpeech.convert(voiceId, {
|
|
59
|
-
text: input.text,
|
|
60
|
-
modelId: this.modelId,
|
|
61
|
-
outputFormat,
|
|
62
|
-
voiceSettings
|
|
63
|
-
})),
|
|
64
|
-
format: formatKey,
|
|
65
|
-
sampleRateHz: sampleRate,
|
|
66
|
-
durationSeconds: void 0,
|
|
67
|
-
url: void 0
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
function normalizeGender(value) {
|
|
72
|
-
if (!value) return void 0;
|
|
73
|
-
const normalized = value.toLowerCase();
|
|
74
|
-
if (normalized === "male" || normalized === "female" || normalized === "neutral") return normalized;
|
|
75
|
-
}
|
|
76
|
-
async function readWebStream(stream) {
|
|
77
|
-
const reader = stream.getReader();
|
|
78
|
-
const chunks = [];
|
|
79
|
-
while (true) {
|
|
80
|
-
const { done, value } = await reader.read();
|
|
81
|
-
if (done) break;
|
|
82
|
-
if (value) chunks.push(value);
|
|
83
|
-
}
|
|
84
|
-
const length = chunks.reduce((total, chunk) => total + chunk.length, 0);
|
|
85
|
-
const result = new Uint8Array(length);
|
|
86
|
-
let offset = 0;
|
|
87
|
-
for (const chunk of chunks) {
|
|
88
|
-
result.set(chunk, offset);
|
|
89
|
-
offset += chunk.length;
|
|
90
|
-
}
|
|
91
|
-
return result;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
//#endregion
|
|
95
|
-
export { ElevenLabsVoiceProvider };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { DeleteObjectInput, GetObjectResult, ListObjectsQuery, ListObjectsResult, ObjectStorageProvider, PutObjectInput, SignedUrlOptions, StorageObjectMetadata } from "../storage.js";
|
|
2
|
-
import { Storage, StorageOptions } from "@google-cloud/storage";
|
|
3
|
-
|
|
4
|
-
//#region src/integrations/providers/impls/gcs-storage.d.ts
|
|
5
|
-
interface GoogleCloudStorageProviderOptions {
|
|
6
|
-
bucket: string;
|
|
7
|
-
storage?: Storage;
|
|
8
|
-
clientOptions?: StorageOptions;
|
|
9
|
-
}
|
|
10
|
-
declare class GoogleCloudStorageProvider implements ObjectStorageProvider {
|
|
11
|
-
private readonly storage;
|
|
12
|
-
private readonly bucketName;
|
|
13
|
-
constructor(options: GoogleCloudStorageProviderOptions);
|
|
14
|
-
putObject(input: PutObjectInput): Promise<StorageObjectMetadata>;
|
|
15
|
-
getObject(input: DeleteObjectInput): Promise<GetObjectResult | null>;
|
|
16
|
-
deleteObject(input: DeleteObjectInput): Promise<void>;
|
|
17
|
-
generateSignedUrl(options: SignedUrlOptions): Promise<{
|
|
18
|
-
url: string;
|
|
19
|
-
expiresAt: Date;
|
|
20
|
-
}>;
|
|
21
|
-
listObjects(query: ListObjectsQuery): Promise<ListObjectsResult>;
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
export { GoogleCloudStorageProvider, GoogleCloudStorageProviderOptions };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { Storage } from "@google-cloud/storage";
|
|
2
|
-
|
|
3
|
-
//#region src/integrations/providers/impls/gcs-storage.ts
|
|
4
|
-
var GoogleCloudStorageProvider = class {
|
|
5
|
-
storage;
|
|
6
|
-
bucketName;
|
|
7
|
-
constructor(options) {
|
|
8
|
-
this.storage = options.storage ?? new Storage(options.clientOptions ?? void 0);
|
|
9
|
-
this.bucketName = options.bucket;
|
|
10
|
-
}
|
|
11
|
-
async putObject(input) {
|
|
12
|
-
const bucketName = input.bucket ?? this.bucketName;
|
|
13
|
-
const file = this.storage.bucket(bucketName).file(input.key);
|
|
14
|
-
const buffer = toBuffer(input.data);
|
|
15
|
-
await file.save(buffer, {
|
|
16
|
-
resumable: false,
|
|
17
|
-
contentType: input.contentType,
|
|
18
|
-
metadata: input.metadata
|
|
19
|
-
});
|
|
20
|
-
if (input.makePublic) await file.makePublic();
|
|
21
|
-
const [metadata] = await file.getMetadata();
|
|
22
|
-
return toMetadata(metadata);
|
|
23
|
-
}
|
|
24
|
-
async getObject(input) {
|
|
25
|
-
const bucketName = input.bucket ?? this.bucketName;
|
|
26
|
-
const file = this.storage.bucket(bucketName).file(input.key);
|
|
27
|
-
const [exists] = await file.exists();
|
|
28
|
-
if (!exists) return null;
|
|
29
|
-
const [contents] = await file.download();
|
|
30
|
-
const [metadata] = await file.getMetadata();
|
|
31
|
-
return {
|
|
32
|
-
...toMetadata(metadata),
|
|
33
|
-
data: new Uint8Array(contents)
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
async deleteObject(input) {
|
|
37
|
-
const bucketName = input.bucket ?? this.bucketName;
|
|
38
|
-
await this.storage.bucket(bucketName).file(input.key).delete({ ignoreNotFound: true });
|
|
39
|
-
}
|
|
40
|
-
async generateSignedUrl(options) {
|
|
41
|
-
const bucketName = options.bucket ?? this.bucketName;
|
|
42
|
-
const file = this.storage.bucket(bucketName).file(options.key);
|
|
43
|
-
const action = options.method === "PUT" ? "write" : "read";
|
|
44
|
-
const expires = Date.now() + options.expiresInSeconds * 1e3;
|
|
45
|
-
const [url] = await file.getSignedUrl({
|
|
46
|
-
action,
|
|
47
|
-
expires,
|
|
48
|
-
contentType: options.contentType
|
|
49
|
-
});
|
|
50
|
-
return {
|
|
51
|
-
url,
|
|
52
|
-
expiresAt: new Date(expires)
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
async listObjects(query) {
|
|
56
|
-
const bucketName = query.bucket ?? this.bucketName;
|
|
57
|
-
const [files, nextQuery, response] = await this.storage.bucket(bucketName).getFiles({
|
|
58
|
-
prefix: query.prefix,
|
|
59
|
-
maxResults: query.maxResults,
|
|
60
|
-
pageToken: query.pageToken
|
|
61
|
-
});
|
|
62
|
-
const nextTokenFromQuery = typeof nextQuery === "object" && nextQuery !== null && "pageToken" in nextQuery ? nextQuery.pageToken : void 0;
|
|
63
|
-
const nextTokenFromResponse = response && typeof response === "object" && "nextPageToken" in response ? response.nextPageToken : void 0;
|
|
64
|
-
return {
|
|
65
|
-
objects: files.map((file) => toMetadata(file.metadata)),
|
|
66
|
-
nextPageToken: nextTokenFromQuery ?? nextTokenFromResponse ?? void 0
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
function toBuffer(data) {
|
|
71
|
-
if (data instanceof Uint8Array) return Buffer.from(data);
|
|
72
|
-
return Buffer.from(data);
|
|
73
|
-
}
|
|
74
|
-
function toMetadata(metadata) {
|
|
75
|
-
return {
|
|
76
|
-
bucket: metadata.bucket ?? "",
|
|
77
|
-
key: metadata.name ?? "",
|
|
78
|
-
sizeBytes: metadata.size ? Number(metadata.size) : void 0,
|
|
79
|
-
contentType: metadata.contentType ?? void 0,
|
|
80
|
-
etag: metadata.etag ?? void 0,
|
|
81
|
-
checksum: metadata.md5Hash ?? void 0,
|
|
82
|
-
lastModified: metadata.updated ? new Date(metadata.updated) : void 0,
|
|
83
|
-
metadata: metadata.metadata
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
//#endregion
|
|
88
|
-
export { GoogleCloudStorageProvider };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { EmailInboundProvider, EmailMessage, EmailMessagesSinceQuery, EmailThread, EmailThreadListQuery } from "../email.js";
|
|
2
|
-
import { gmail_v1 } from "googleapis";
|
|
3
|
-
|
|
4
|
-
//#region src/integrations/providers/impls/gmail-inbound.d.ts
|
|
5
|
-
interface GmailInboundProviderOptions {
|
|
6
|
-
auth: gmail_v1.Options['auth'];
|
|
7
|
-
userId?: string;
|
|
8
|
-
gmail?: gmail_v1.Gmail;
|
|
9
|
-
includeSpamTrash?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare class GmailInboundProvider implements EmailInboundProvider {
|
|
12
|
-
private readonly gmail;
|
|
13
|
-
private readonly userId;
|
|
14
|
-
private readonly includeSpamTrash;
|
|
15
|
-
private readonly auth;
|
|
16
|
-
constructor(options: GmailInboundProviderOptions);
|
|
17
|
-
listThreads(query?: EmailThreadListQuery): Promise<EmailThread[]>;
|
|
18
|
-
getThread(threadId: string): Promise<EmailThread | null>;
|
|
19
|
-
listMessagesSince(query: EmailMessagesSinceQuery): Promise<{
|
|
20
|
-
messages: EmailMessage[];
|
|
21
|
-
nextPageToken: string | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
private transformMessage;
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { GmailInboundProvider, GmailInboundProviderOptions };
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { google } from "googleapis";
|
|
2
|
-
|
|
3
|
-
//#region src/integrations/providers/impls/gmail-inbound.ts
|
|
4
|
-
var GmailInboundProvider = class {
|
|
5
|
-
gmail;
|
|
6
|
-
userId;
|
|
7
|
-
includeSpamTrash;
|
|
8
|
-
auth;
|
|
9
|
-
constructor(options) {
|
|
10
|
-
this.auth = options.auth;
|
|
11
|
-
this.gmail = options.gmail ?? google.gmail({
|
|
12
|
-
version: "v1",
|
|
13
|
-
auth: options.auth
|
|
14
|
-
});
|
|
15
|
-
this.userId = options.userId ?? "me";
|
|
16
|
-
this.includeSpamTrash = options.includeSpamTrash ?? false;
|
|
17
|
-
}
|
|
18
|
-
async listThreads(query) {
|
|
19
|
-
const response = await this.gmail.users.threads.list({
|
|
20
|
-
userId: this.userId,
|
|
21
|
-
maxResults: query?.pageSize,
|
|
22
|
-
pageToken: query?.pageToken,
|
|
23
|
-
q: query?.query,
|
|
24
|
-
labelIds: query?.label ? [query.label] : void 0,
|
|
25
|
-
includeSpamTrash: this.includeSpamTrash,
|
|
26
|
-
auth: this.auth
|
|
27
|
-
});
|
|
28
|
-
return (await Promise.all((response.data.threads ?? []).map(async (thread) => {
|
|
29
|
-
if (!thread.id) return null;
|
|
30
|
-
return this.getThread(thread.id);
|
|
31
|
-
}))).filter((thread) => thread !== null);
|
|
32
|
-
}
|
|
33
|
-
async getThread(threadId) {
|
|
34
|
-
const thread = (await this.gmail.users.threads.get({
|
|
35
|
-
id: threadId,
|
|
36
|
-
userId: this.userId,
|
|
37
|
-
format: "full",
|
|
38
|
-
auth: this.auth
|
|
39
|
-
})).data;
|
|
40
|
-
if (!thread) return null;
|
|
41
|
-
const messages = thread.messages?.map((message) => this.transformMessage(message)) ?? [];
|
|
42
|
-
const participants = dedupeAddresses(messages.flatMap((message) => [
|
|
43
|
-
message.from,
|
|
44
|
-
...message.to,
|
|
45
|
-
...message.cc ?? []
|
|
46
|
-
]));
|
|
47
|
-
const firstMessage = messages[0];
|
|
48
|
-
const lastMessage = messages[messages.length - 1];
|
|
49
|
-
const updatedAt = lastMessage?.receivedAt ?? lastMessage?.sentAt ?? firstMessage?.receivedAt ?? firstMessage?.sentAt ?? /* @__PURE__ */ new Date();
|
|
50
|
-
const labels = Array.from(new Set(messages.flatMap((message) => {
|
|
51
|
-
const labelField = message.metadata?.labelIds;
|
|
52
|
-
if (!labelField) return [];
|
|
53
|
-
return labelField.split(",").map((label) => label.trim());
|
|
54
|
-
}).filter((label) => Boolean(label))));
|
|
55
|
-
return {
|
|
56
|
-
id: thread.id ?? threadId,
|
|
57
|
-
subject: messages[0]?.subject,
|
|
58
|
-
snippet: thread.snippet ?? "",
|
|
59
|
-
participants,
|
|
60
|
-
messages,
|
|
61
|
-
updatedAt,
|
|
62
|
-
labels,
|
|
63
|
-
metadata: thread.historyId ? { historyId: thread.historyId } : void 0
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
async listMessagesSince(query) {
|
|
67
|
-
const after = query.since ? Math.floor(query.since.getTime() / 1e3) : void 0;
|
|
68
|
-
const q = [];
|
|
69
|
-
if (after) q.push(`after:${after}`);
|
|
70
|
-
const response = await this.gmail.users.messages.list({
|
|
71
|
-
userId: this.userId,
|
|
72
|
-
maxResults: query.pageSize,
|
|
73
|
-
pageToken: query.pageToken,
|
|
74
|
-
labelIds: query.label ? [query.label] : void 0,
|
|
75
|
-
q: q.join(" "),
|
|
76
|
-
includeSpamTrash: this.includeSpamTrash,
|
|
77
|
-
auth: this.auth
|
|
78
|
-
});
|
|
79
|
-
return {
|
|
80
|
-
messages: (await Promise.all((response.data.messages ?? []).map(async (item) => {
|
|
81
|
-
if (!item.id) return null;
|
|
82
|
-
const full = await this.gmail.users.messages.get({
|
|
83
|
-
userId: this.userId,
|
|
84
|
-
id: item.id,
|
|
85
|
-
format: "full",
|
|
86
|
-
auth: this.auth
|
|
87
|
-
});
|
|
88
|
-
if (!full.data) return null;
|
|
89
|
-
return this.transformMessage(full.data);
|
|
90
|
-
}))).filter((message) => message !== null),
|
|
91
|
-
nextPageToken: response.data.nextPageToken ?? void 0
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
transformMessage(message) {
|
|
95
|
-
const headers = message.payload?.headers ?? [];
|
|
96
|
-
const subject = headerValue(headers, "Subject") ?? "";
|
|
97
|
-
const from = parseAddress(headerValue(headers, "From")) ?? inferFallbackAddress("from", message.id);
|
|
98
|
-
const to = parseAddressList(headerValue(headers, "To"));
|
|
99
|
-
const cc = parseAddressList(headerValue(headers, "Cc"));
|
|
100
|
-
const bcc = parseAddressList(headerValue(headers, "Bcc"));
|
|
101
|
-
const replyTo = parseAddress(headerValue(headers, "Reply-To"));
|
|
102
|
-
const { text, html, attachments } = extractContent(message.payload);
|
|
103
|
-
const timestamp = message.internalDate ? new Date(Number(message.internalDate)) : /* @__PURE__ */ new Date();
|
|
104
|
-
const metadata = {
|
|
105
|
-
...message.labelIds?.length ? { labelIds: message.labelIds.join(",") } : {},
|
|
106
|
-
...message.historyId ? { historyId: message.historyId } : {}
|
|
107
|
-
};
|
|
108
|
-
return {
|
|
109
|
-
id: message.id ?? "",
|
|
110
|
-
threadId: message.threadId ?? "",
|
|
111
|
-
subject,
|
|
112
|
-
from,
|
|
113
|
-
to,
|
|
114
|
-
cc,
|
|
115
|
-
bcc,
|
|
116
|
-
replyTo: replyTo ?? void 0,
|
|
117
|
-
sentAt: timestamp,
|
|
118
|
-
receivedAt: timestamp,
|
|
119
|
-
textBody: text ?? void 0,
|
|
120
|
-
htmlBody: html ?? void 0,
|
|
121
|
-
attachments,
|
|
122
|
-
headers: Object.fromEntries(headers.map((header) => [header.name ?? "", header.value ?? ""])),
|
|
123
|
-
metadata: Object.keys(metadata).length > 0 ? metadata : void 0
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
function headerValue(headers, name) {
|
|
128
|
-
const value = headers.find((candidate) => candidate.name?.toLowerCase() === name.toLowerCase())?.value;
|
|
129
|
-
return typeof value === "string" ? value : void 0;
|
|
130
|
-
}
|
|
131
|
-
function parseAddress(header) {
|
|
132
|
-
const addresses = parseAddressList(header);
|
|
133
|
-
if (addresses.length === 0) return null;
|
|
134
|
-
return addresses[0] ?? null;
|
|
135
|
-
}
|
|
136
|
-
function inferFallbackAddress(field, messageId) {
|
|
137
|
-
return { email: `${field}-${messageId ? messageId.replace(/[^\w]/g, "").slice(-8) || "unknown" : "unknown"}@mail.local` };
|
|
138
|
-
}
|
|
139
|
-
function parseAddressList(header) {
|
|
140
|
-
if (!header) return [];
|
|
141
|
-
return header.split(",").map((part) => part.trim()).filter(Boolean).map((value) => {
|
|
142
|
-
const match = value.match(/^(?:"?([^"]*)"?\s)?<?([^<>]+)>?$/);
|
|
143
|
-
if (!match) return { email: value };
|
|
144
|
-
const name = match[1]?.trim();
|
|
145
|
-
const email = match[2]?.trim();
|
|
146
|
-
if (!email) return { email: value };
|
|
147
|
-
return name ? {
|
|
148
|
-
email,
|
|
149
|
-
name
|
|
150
|
-
} : { email };
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
function dedupeAddresses(addresses) {
|
|
154
|
-
const map = /* @__PURE__ */ new Map();
|
|
155
|
-
for (const address of addresses) {
|
|
156
|
-
if (!address) continue;
|
|
157
|
-
map.set(address.email.toLowerCase(), address);
|
|
158
|
-
}
|
|
159
|
-
return Array.from(map.values());
|
|
160
|
-
}
|
|
161
|
-
function extractContent(payload) {
|
|
162
|
-
if (!payload) return { attachments: [] };
|
|
163
|
-
const attachments = [];
|
|
164
|
-
const visit = (part) => {
|
|
165
|
-
if (!part) return {};
|
|
166
|
-
if (part.filename && part.body?.attachmentId) attachments.push({
|
|
167
|
-
id: part.body.attachmentId,
|
|
168
|
-
filename: part.filename,
|
|
169
|
-
contentType: part.mimeType ?? "application/octet-stream",
|
|
170
|
-
sizeBytes: part.body.size ?? void 0
|
|
171
|
-
});
|
|
172
|
-
const mimeType = part.mimeType ?? "";
|
|
173
|
-
const data = part.body?.data;
|
|
174
|
-
if (mimeType === "text/plain" && data) return { text: decodeBase64Url(data) };
|
|
175
|
-
if (mimeType === "text/html" && data) return { html: decodeBase64Url(data) };
|
|
176
|
-
if (part.parts?.length) return part.parts.reduce((acc, nested) => {
|
|
177
|
-
const value = visit(nested);
|
|
178
|
-
return {
|
|
179
|
-
text: value.text ?? acc.text,
|
|
180
|
-
html: value.html ?? acc.html
|
|
181
|
-
};
|
|
182
|
-
}, {});
|
|
183
|
-
return {};
|
|
184
|
-
};
|
|
185
|
-
const { text, html } = visit(payload);
|
|
186
|
-
return {
|
|
187
|
-
text,
|
|
188
|
-
html,
|
|
189
|
-
attachments
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
function decodeBase64Url(data) {
|
|
193
|
-
const normalized = data.replace(/-/g, "+").replace(/_/g, "/");
|
|
194
|
-
const padding = normalized.length % 4;
|
|
195
|
-
const padded = padding === 0 ? normalized : normalized + "=".repeat(4 - padding);
|
|
196
|
-
return Buffer.from(padded, "base64").toString("utf-8");
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
//#endregion
|
|
200
|
-
export { GmailInboundProvider };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { EmailOutboundMessage, EmailOutboundProvider, EmailOutboundResult } from "../email.js";
|
|
2
|
-
import { gmail_v1 } from "googleapis";
|
|
3
|
-
|
|
4
|
-
//#region src/integrations/providers/impls/gmail-outbound.d.ts
|
|
5
|
-
interface GmailOutboundProviderOptions {
|
|
6
|
-
auth: gmail_v1.Options['auth'];
|
|
7
|
-
userId?: string;
|
|
8
|
-
gmail?: gmail_v1.Gmail;
|
|
9
|
-
}
|
|
10
|
-
declare class GmailOutboundProvider implements EmailOutboundProvider {
|
|
11
|
-
private readonly gmail;
|
|
12
|
-
private readonly userId;
|
|
13
|
-
private readonly auth;
|
|
14
|
-
constructor(options: GmailOutboundProviderOptions);
|
|
15
|
-
sendEmail(message: EmailOutboundMessage): Promise<EmailOutboundResult>;
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { GmailOutboundProvider, GmailOutboundProviderOptions };
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { google } from "googleapis";
|
|
2
|
-
|
|
3
|
-
//#region src/integrations/providers/impls/gmail-outbound.ts
|
|
4
|
-
var GmailOutboundProvider = class {
|
|
5
|
-
gmail;
|
|
6
|
-
userId;
|
|
7
|
-
auth;
|
|
8
|
-
constructor(options) {
|
|
9
|
-
this.auth = options.auth;
|
|
10
|
-
this.gmail = options.gmail ?? google.gmail({
|
|
11
|
-
version: "v1",
|
|
12
|
-
auth: options.auth
|
|
13
|
-
});
|
|
14
|
-
this.userId = options.userId ?? "me";
|
|
15
|
-
}
|
|
16
|
-
async sendEmail(message) {
|
|
17
|
-
const raw = encodeMessage(message);
|
|
18
|
-
const response = await this.gmail.users.messages.send({
|
|
19
|
-
userId: this.userId,
|
|
20
|
-
requestBody: { raw },
|
|
21
|
-
auth: this.auth
|
|
22
|
-
});
|
|
23
|
-
return {
|
|
24
|
-
id: response.data.id ?? "",
|
|
25
|
-
providerMessageId: response.data.id ?? void 0,
|
|
26
|
-
queuedAt: /* @__PURE__ */ new Date()
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
function encodeMessage(message) {
|
|
31
|
-
const headers = [
|
|
32
|
-
`From: ${formatAddress(message.from)}`,
|
|
33
|
-
`To: ${message.to.map(formatAddress).join(", ")}`,
|
|
34
|
-
`Subject: ${message.subject}`,
|
|
35
|
-
"MIME-Version: 1.0"
|
|
36
|
-
];
|
|
37
|
-
if (message.cc?.length) headers.push(`Cc: ${message.cc.map(formatAddress).join(", ")}`);
|
|
38
|
-
if (message.replyTo) headers.push(`Reply-To: ${formatAddress(message.replyTo)}`);
|
|
39
|
-
Object.entries(message.headers ?? {}).forEach(([key, value]) => {
|
|
40
|
-
headers.push(`${key}: ${value}`);
|
|
41
|
-
});
|
|
42
|
-
const attachments = message.attachments ?? [];
|
|
43
|
-
const hasHtml = Boolean(message.htmlBody);
|
|
44
|
-
const hasText = Boolean(message.textBody);
|
|
45
|
-
const boundaryMain = `mixed_${Date.now()}`;
|
|
46
|
-
const boundaryAlt = `alt_${Date.now()}`;
|
|
47
|
-
let body = "";
|
|
48
|
-
if (attachments.length > 0) {
|
|
49
|
-
headers.push(`Content-Type: multipart/mixed; boundary="${boundaryMain}"`);
|
|
50
|
-
body += `\r\n--${boundaryMain}\r\n`;
|
|
51
|
-
body += buildAlternativePart(hasText, hasHtml, boundaryAlt, message);
|
|
52
|
-
attachments.forEach((attachment) => {
|
|
53
|
-
body += buildAttachmentPart(boundaryMain, attachment);
|
|
54
|
-
});
|
|
55
|
-
body += `\r\n--${boundaryMain}--`;
|
|
56
|
-
} else if (hasText && hasHtml) {
|
|
57
|
-
headers.push(`Content-Type: multipart/alternative; boundary="${boundaryAlt}"`);
|
|
58
|
-
body += `\r\n--${boundaryAlt}\r\n`;
|
|
59
|
-
body += buildTextPart("text/plain; charset=\"utf-8\"", message.textBody ?? "");
|
|
60
|
-
body += `\r\n--${boundaryAlt}\r\n`;
|
|
61
|
-
body += buildTextPart("text/html; charset=\"utf-8\"", message.htmlBody ?? "");
|
|
62
|
-
body += `\r\n--${boundaryAlt}--`;
|
|
63
|
-
} else if (hasHtml) {
|
|
64
|
-
headers.push("Content-Type: text/html; charset=\"utf-8\"");
|
|
65
|
-
body += `\r\n\r\n${message.htmlBody}`;
|
|
66
|
-
} else {
|
|
67
|
-
headers.push("Content-Type: text/plain; charset=\"utf-8\"");
|
|
68
|
-
body += `\r\n\r\n${message.textBody ?? ""}`;
|
|
69
|
-
}
|
|
70
|
-
const mime = `${headers.join("\r\n")}${body}`;
|
|
71
|
-
return Buffer.from(mime).toString("base64").replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
72
|
-
}
|
|
73
|
-
function buildAlternativePart(hasText, hasHtml, boundary, message) {
|
|
74
|
-
let content = "";
|
|
75
|
-
content += `Content-Type: multipart/alternative; boundary="${boundary}"\r\n`;
|
|
76
|
-
content += "\r\n";
|
|
77
|
-
if (hasText) {
|
|
78
|
-
content += `--${boundary}\r\n`;
|
|
79
|
-
content += buildTextPart("text/plain; charset=\"utf-8\"", message.textBody ?? "");
|
|
80
|
-
}
|
|
81
|
-
if (hasHtml) {
|
|
82
|
-
content += `\r\n--${boundary}\r\n`;
|
|
83
|
-
content += buildTextPart("text/html; charset=\"utf-8\"", message.htmlBody ?? "");
|
|
84
|
-
}
|
|
85
|
-
content += `\r\n--${boundary}--`;
|
|
86
|
-
return content;
|
|
87
|
-
}
|
|
88
|
-
function buildTextPart(contentType, content) {
|
|
89
|
-
return `Content-Type: ${contentType}\r\nContent-Transfer-Encoding: 7bit\r
|
|
90
|
-
\r
|
|
91
|
-
` + content;
|
|
92
|
-
}
|
|
93
|
-
function buildAttachmentPart(boundary, attachment) {
|
|
94
|
-
const data = attachment.data ?? new Uint8Array();
|
|
95
|
-
const encoded = data.byteLength > 0 ? Buffer.from(data).toString("base64") : "";
|
|
96
|
-
return `\r\n--${boundary}\r\nContent-Type: ${attachment.contentType}; name="${attachment.filename}"\r\nContent-Transfer-Encoding: base64\r
|
|
97
|
-
Content-Disposition: attachment; filename="${attachment.filename}"\r\n\r\n` + encoded;
|
|
98
|
-
}
|
|
99
|
-
function formatAddress(address) {
|
|
100
|
-
if (address.name) return `"${address.name}" <${address.email}>`;
|
|
101
|
-
return address.email;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
//#endregion
|
|
105
|
-
export { GmailOutboundProvider };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { CalendarEvent, CalendarEventInput, CalendarEventUpdateInput, CalendarListEventsQuery, CalendarListEventsResult, CalendarProvider } from "../calendar.js";
|
|
2
|
-
import { calendar_v3 } from "googleapis";
|
|
3
|
-
|
|
4
|
-
//#region src/integrations/providers/impls/google-calendar.d.ts
|
|
5
|
-
interface GoogleCalendarProviderOptions {
|
|
6
|
-
auth: calendar_v3.Options['auth'];
|
|
7
|
-
calendar?: calendar_v3.Calendar;
|
|
8
|
-
calendarId?: string;
|
|
9
|
-
}
|
|
10
|
-
declare class GoogleCalendarProvider implements CalendarProvider {
|
|
11
|
-
private readonly calendar;
|
|
12
|
-
private readonly defaultCalendarId;
|
|
13
|
-
private readonly auth;
|
|
14
|
-
constructor(options: GoogleCalendarProviderOptions);
|
|
15
|
-
listEvents(query: CalendarListEventsQuery): Promise<CalendarListEventsResult>;
|
|
16
|
-
createEvent(input: CalendarEventInput): Promise<CalendarEvent>;
|
|
17
|
-
updateEvent(calendarId: string, eventId: string, input: CalendarEventUpdateInput): Promise<CalendarEvent>;
|
|
18
|
-
deleteEvent(calendarId: string, eventId: string): Promise<void>;
|
|
19
|
-
private fromGoogleEvent;
|
|
20
|
-
private toGoogleEvent;
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
export { GoogleCalendarProvider, GoogleCalendarProviderOptions };
|