@lssm/example.analytics-dashboard 0.0.0-canary-20251217062139 → 0.0.0-canary-20251217060834

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.
Files changed (138) hide show
  1. package/dist/dashboard/dashboard.contracts.d.ts +130 -130
  2. package/dist/dashboard/dashboard.contracts.js +5 -5
  3. package/dist/dashboard/dashboard.enum.d.ts +4 -4
  4. package/dist/dashboard/dashboard.enum.js +4 -5
  5. package/dist/dashboard/dashboard.schema.d.ts +79 -79
  6. package/dist/dashboard/dashboard.schema.js +42 -44
  7. package/dist/docs/analytics-dashboard.docblock.js +2 -3
  8. package/dist/events.d.ts +39 -39
  9. package/dist/events.js +24 -27
  10. package/dist/index.d.ts +1 -0
  11. package/dist/query/query.contracts.d.ts +1 -1
  12. package/dist/query/query.contracts.js +3 -3
  13. package/dist/query/query.enum.d.ts +2 -2
  14. package/dist/query/query.enum.js +2 -3
  15. package/dist/query/query.schema.d.ts +34 -34
  16. package/dist/query/query.schema.js +32 -34
  17. package/package.json +10 -10
  18. package/dist/libs/contracts/dist/capabilities/openbanking.js +0 -84
  19. package/dist/libs/contracts/dist/client/index.js +0 -5
  20. package/dist/libs/contracts/dist/client/react/feature-render.js +0 -2
  21. package/dist/libs/contracts/dist/client/react/form-render.js +0 -4
  22. package/dist/libs/contracts/dist/client/react/index.js +0 -4
  23. package/dist/libs/contracts/dist/contract-registry/index.js +0 -1
  24. package/dist/libs/contracts/dist/contract-registry/schemas.js +0 -57
  25. package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -91
  26. package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +0 -365
  27. package/dist/libs/contracts/dist/docs/index.js +0 -29
  28. package/dist/libs/contracts/dist/docs/presentations.js +0 -67
  29. package/dist/libs/contracts/dist/docs/registry.js +0 -42
  30. package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -398
  31. package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -83
  32. package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -155
  33. package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -101
  34. package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
  35. package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +0 -80
  36. package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +0 -57
  37. package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +0 -228
  38. package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +0 -357
  39. package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +0 -21
  40. package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +0 -16
  41. package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +0 -281
  42. package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +0 -22
  43. package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +0 -79
  44. package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +0 -84
  45. package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +0 -57
  46. package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +0 -22
  47. package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +0 -40
  48. package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +0 -86
  49. package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +0 -22
  50. package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +0 -62
  51. package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +0 -155
  52. package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +0 -20
  53. package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +0 -101
  54. package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +0 -20
  55. package/dist/libs/contracts/dist/events.js +0 -9
  56. package/dist/libs/contracts/dist/experiments/evaluator.js +0 -1
  57. package/dist/libs/contracts/dist/index.js +0 -71
  58. package/dist/libs/contracts/dist/install.js +0 -2
  59. package/dist/libs/contracts/dist/integrations/contracts.js +0 -371
  60. package/dist/libs/contracts/dist/integrations/index.js +0 -18
  61. package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +0 -225
  62. package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +0 -157
  63. package/dist/libs/contracts/dist/integrations/openbanking/contracts/index.js +0 -3
  64. package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +0 -208
  65. package/dist/libs/contracts/dist/integrations/openbanking/models.js +0 -240
  66. package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +0 -24
  67. package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +0 -52
  68. package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +0 -75
  69. package/dist/libs/contracts/dist/integrations/providers/gmail.js +0 -87
  70. package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +0 -66
  71. package/dist/libs/contracts/dist/integrations/providers/index.js +0 -11
  72. package/dist/libs/contracts/dist/integrations/providers/mistral.js +0 -68
  73. package/dist/libs/contracts/dist/integrations/providers/postmark.js +0 -68
  74. package/dist/libs/contracts/dist/integrations/providers/powens.js +0 -116
  75. package/dist/libs/contracts/dist/integrations/providers/qdrant.js +0 -73
  76. package/dist/libs/contracts/dist/integrations/providers/registry.js +0 -10
  77. package/dist/libs/contracts/dist/integrations/providers/stripe.js +0 -83
  78. package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +0 -61
  79. package/dist/libs/contracts/dist/jsonschema.js +0 -1
  80. package/dist/libs/contracts/dist/knowledge/contracts.js +0 -299
  81. package/dist/libs/contracts/dist/knowledge/index.js +0 -7
  82. package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +0 -34
  83. package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +0 -34
  84. package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +0 -38
  85. package/dist/libs/contracts/dist/knowledge/spaces/index.js +0 -6
  86. package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +0 -34
  87. package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +0 -37
  88. package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +0 -34
  89. package/dist/libs/contracts/dist/llm/exporters.js +0 -18
  90. package/dist/libs/contracts/dist/llm/index.js +0 -2
  91. package/dist/libs/contracts/dist/llm/prompts.js +0 -1
  92. package/dist/libs/contracts/dist/onboarding-base.js +0 -179
  93. package/dist/libs/contracts/dist/openapi.js +0 -1
  94. package/dist/libs/contracts/dist/ownership.js +0 -36
  95. package/dist/libs/contracts/dist/presentations.js +0 -1
  96. package/dist/libs/contracts/dist/presentations.v2.js +0 -7
  97. package/dist/libs/contracts/dist/prompt.js +0 -1
  98. package/dist/libs/contracts/dist/promptRegistry.js +0 -1
  99. package/dist/libs/contracts/dist/regenerator/index.js +0 -1
  100. package/dist/libs/contracts/dist/regenerator/service.js +0 -1
  101. package/dist/libs/contracts/dist/registry.js +0 -2
  102. package/dist/libs/contracts/dist/resources.js +0 -1
  103. package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
  104. package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -39
  105. package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -222
  106. package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -23
  107. package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
  108. package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
  109. package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
  110. package/dist/libs/contracts/dist/schema/dist/index.js +0 -6
  111. package/dist/libs/contracts/dist/server/graphql-pothos.js +0 -6
  112. package/dist/libs/contracts/dist/server/index.js +0 -8
  113. package/dist/libs/contracts/dist/server/mcp/createMcpServer.js +0 -4
  114. package/dist/libs/contracts/dist/server/mcp/registerPresentations.js +0 -2
  115. package/dist/libs/contracts/dist/server/mcp/registerPrompts.js +0 -1
  116. package/dist/libs/contracts/dist/server/mcp/registerResources.js +0 -2
  117. package/dist/libs/contracts/dist/server/mcp/registerTools.js +0 -1
  118. package/dist/libs/contracts/dist/server/provider-mcp.js +0 -1
  119. package/dist/libs/contracts/dist/server/rest-elysia.js +0 -1
  120. package/dist/libs/contracts/dist/server/rest-express.js +0 -1
  121. package/dist/libs/contracts/dist/server/rest-generic.js +0 -1
  122. package/dist/libs/contracts/dist/server/rest-next-app.js +0 -1
  123. package/dist/libs/contracts/dist/server/rest-next-pages.js +0 -1
  124. package/dist/libs/contracts/dist/spec.js +0 -25
  125. package/dist/libs/contracts/dist/telemetry/index.js +0 -1
  126. package/dist/libs/contracts/dist/telemetry/tracker.js +0 -1
  127. package/dist/libs/contracts/dist/tests/index.js +0 -1
  128. package/dist/libs/contracts/dist/tests/runner.js +0 -2
  129. package/dist/libs/contracts/dist/workflow/index.js +0 -1
  130. package/dist/libs/contracts/dist/workflow/runner.js +0 -1
  131. package/dist/libs/schema/dist/EnumType.js +0 -40
  132. package/dist/libs/schema/dist/FieldType.js +0 -39
  133. package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -222
  134. package/dist/libs/schema/dist/SchemaModel.js +0 -24
  135. package/dist/libs/schema/dist/entity/defineEntity.js +0 -1
  136. package/dist/libs/schema/dist/entity/index.js +0 -2
  137. package/dist/libs/schema/dist/entity/types.js +0 -1
  138. package/dist/libs/schema/dist/index.js +0 -6
@@ -1,101 +0,0 @@
1
- import { a } from "../registry.js";
2
-
3
- //#region ../../libs/contracts/dist/docs/tech/vscode-extension.docblock.js
4
- const t = [{
5
- id: `docs.tech.vscode.extension`,
6
- title: `ContractSpec VS Code Extension`,
7
- summary: `VS Code extension for spec-first development with validation, scaffolding, and MCP integration.`,
8
- kind: `reference`,
9
- visibility: `public`,
10
- route: `/docs/tech/vscode/extension`,
11
- tags: [
12
- `vscode`,
13
- `extension`,
14
- `tooling`,
15
- `dx`
16
- ],
17
- body: `# ContractSpec VS Code Extension
18
-
19
- The ContractSpec VS Code extension provides spec-first development tooling directly in your editor.
20
-
21
- ## Features
22
-
23
- - **Real-time Validation**: Get instant feedback on spec errors and warnings as you save files
24
- - **Build/Scaffold**: Generate handler and component skeletons from specs (no AI required)
25
- - **Spec Explorer**: List and navigate all specs in your workspace
26
- - **Dependency Analysis**: Visualize spec dependencies and detect cycles
27
- - **MCP Integration**: Search ContractSpec documentation via Model Context Protocol
28
- - **Snippets**: Code snippets for common ContractSpec patterns
29
-
30
- ## Commands
31
-
32
- | Command | Description |
33
- |---------|-------------|
34
- | \`ContractSpec: Validate Current Spec\` | Validate the currently open spec file |
35
- | \`ContractSpec: Validate All Specs\` | Validate all spec files in the workspace |
36
- | \`ContractSpec: Build/Scaffold\` | Generate handler/component from the current spec |
37
- | \`ContractSpec: List All Specs\` | Show all specs in the workspace |
38
- | \`ContractSpec: Analyze Dependencies\` | Analyze and visualize spec dependencies |
39
- | \`ContractSpec: Search Docs (MCP)\` | Search documentation via MCP |
40
-
41
- ## Configuration
42
-
43
- | Setting | Description | Default |
44
- |---------|-------------|---------|
45
- | \`contractspec.api.baseUrl\` | Base URL for ContractSpec API (enables MCP + remote telemetry) | \`""\` |
46
- | \`contractspec.telemetry.posthogHost\` | PostHog host URL for direct telemetry | \`"https://eu.posthog.com"\` |
47
- | \`contractspec.telemetry.posthogProjectKey\` | PostHog project key for direct telemetry | \`""\` |
48
- | \`contractspec.validation.onSave\` | Run validation on save | \`true\` |
49
- | \`contractspec.validation.onOpen\` | Run validation on open | \`true\` |
50
-
51
- ## Architecture
52
-
53
- The extension uses:
54
- - \`@lssm/module.contractspec-workspace\` for pure analysis + templates
55
- - \`@lssm/bundle.contractspec-workspace\` for workspace services + adapters
56
-
57
- This allows the extension to work without requiring the CLI to be installed.
58
-
59
- ## Telemetry
60
-
61
- The extension uses a hybrid telemetry approach:
62
- 1. If \`contractspec.api.baseUrl\` is configured → send to API \`/api/telemetry/ingest\`
63
- 2. Otherwise → send directly to PostHog (if project key configured)
64
-
65
- Telemetry respects VS Code's telemetry settings. No file paths, source code, or PII is collected.
66
- `
67
- }, {
68
- id: `docs.tech.vscode.snippets`,
69
- title: `ContractSpec Snippets`,
70
- summary: `Code snippets for common ContractSpec patterns in VS Code.`,
71
- kind: `reference`,
72
- visibility: `public`,
73
- route: `/docs/tech/vscode/snippets`,
74
- tags: [
75
- `vscode`,
76
- `snippets`,
77
- `dx`
78
- ],
79
- body: `# ContractSpec Snippets
80
-
81
- The VS Code extension includes snippets for common ContractSpec patterns.
82
-
83
- ## Available Snippets
84
-
85
- | Prefix | Description |
86
- |--------|-------------|
87
- | \`contractspec-command\` | Create a new command (write operation) |
88
- | \`contractspec-query\` | Create a new query (read-only operation) |
89
- | \`contractspec-event\` | Create a new event |
90
- | \`contractspec-docblock\` | Create a new DocBlock |
91
- | \`contractspec-telemetry\` | Create a new TelemetrySpec |
92
- | \`contractspec-presentation\` | Create a new Presentation |
93
-
94
- ## Usage
95
-
96
- Type the prefix in a TypeScript file and press Tab to expand the snippet. Tab through the placeholders to fill in your values.
97
- `
98
- }];
99
- a(t);
100
-
101
- //#endregion
@@ -1,20 +0,0 @@
1
- import { a } from "../../registry.js";
2
-
3
- //#region ../../libs/contracts/dist/docs/tech/workflows/overview.docblock.js
4
- const t = [{
5
- id: `docs.tech.workflows.overview`,
6
- title: `WorkflowSpec Overview`,
7
- summary: "WorkflowSpec provides a declarative, versioned format for long-running flows that mix automation and human review. Specs stay inside `@lssm/lib.contracts` (`src/workflow/spec.ts`) so the same definition powers runtime execution, documentation, and future generation.",
8
- kind: `reference`,
9
- visibility: `public`,
10
- route: `/docs/tech/workflows/overview`,
11
- tags: [
12
- `tech`,
13
- `workflows`,
14
- `overview`
15
- ],
16
- body: "# WorkflowSpec Overview\n\n## Purpose\n\nWorkflowSpec provides a declarative, versioned format for long-running flows that mix automation and human review. Specs stay inside `@lssm/lib.contracts` (`src/workflow/spec.ts`) so the same definition powers runtime execution, documentation, and future generation.\n\n## Core Types\n\n- `WorkflowMeta`: ownership metadata (`title`, `domain`, `owners`, `tags`, `stability`) plus `name` and `version`.\n- `WorkflowDefinition`:\n - `entryStepId?`: optional explicit entry point (defaults to first step).\n - `steps[]`: ordered list of `Step` descriptors.\n - `transitions[]`: directed edges between steps with optional expressions.\n - `sla?`: aggregated timing hints for the overall flow or per-step budgets.\n - `compensation?`: fallback operations executed when a workflow is rolled back or fails.\n- `Step`:\n - `type`: `human`, `automation`, or `decision`.\n - `action`: references either a `ContractSpec` (`operation`) or `FormSpec` (`form`).\n - Optional `guard`, `timeoutMs`, and retry policy (`maxAttempts`, `backoff`, `delayMs`, `maxDelayMs?`).\n - `requiredIntegrations?`: integration slot ids that must be bound before the step may execute.\n - `requiredCapabilities?`: `CapabilityRef[]` that must be enabled in the resolved app config.\n- `Transition`: `from` → `to` with optional `condition` string (simple data expressions).\n\n## Registry & Validation\n\n- `WorkflowRegistry` (`src/workflow/spec.ts`) stores specs by key `<name>.v<version>` and exposes `register`, `list`, and `get`.\n- `validateWorkflowSpec()` (`src/workflow/validation.ts`) checks:\n - Duplicate step IDs.\n - Unknown `from`/`to` transitions.\n - Empty guards/conditions.\n - Reachability from the entry step.\n - Cycles in the graph.\n - Operation/Form references against provided registries.\n- `assertWorkflowSpecValid()` wraps validation and throws `WorkflowValidationError` when errors remain.\n\n## Runtime\n\n- `WorkflowRunner` (`src/workflow/runner.ts`) executes workflows and coordinates steps.\n - `start(name, version?, initialData?)` returns a `workflowId`.\n - `executeStep(workflowId, input?)` runs the current step (automation or human).\n - `getState(workflowId)` retrieves the latest state snapshot.\n - `cancel(workflowId)` marks the workflow as cancelled.\n - `preFlightCheck(name, version?, resolvedConfig?)` evaluates integration/capability requirements before the workflow starts.\n - Throws `WorkflowPreFlightError` if required integration slots are unbound or required capabilities are disabled.\n- `StateStore` (`src/workflow/state.ts`) abstracts persistence. V1 ships with:\n - `InMemoryStateStore` (`src/workflow/adapters/memory-store.ts`) for tests/dev.\n - Placeholder factories for file/database adapters (`adapters/file-adapter.ts`, `adapters/db-adapter.ts`).\n- Guard evaluation: expression guards run through `evaluateExpression()` (`src/workflow/expression.ts`); custom policy guards can be provided via `guardEvaluator`.\n- Events: the runner emits `workflow.started`, `workflow.step_completed`, `workflow.step_failed`, and `workflow.cancelled` through the optional `eventEmitter`.\n- React bindings (`@lssm/lib.presentation-runtime-react`):\n - `useWorkflow` hook (polls state, exposes `executeStep`, `cancel`, `refresh`).\n - `WorkflowStepper` progress indicator using design-system Stepper.\n - `WorkflowStepRenderer` helper to render human/automation/decision steps with sensible fallbacks.\n\n## Authoring Checklist\n\n1. Reuse existing operations/forms; create new specs when missing.\n2. Prefer explicit `entryStepId` for clarity (especially with decision branches).\n3. Give automation steps an `operation` and human steps a `form` (warnings surface otherwise).\n4. Use short, meaningful step IDs (`submit`, `review`, `finalize`) to simplify analytics.\n5. Keep guard expressions deterministic; complex policy logic should move to PolicySpec (Phase 2).\n\n## Testing\n\n- Add unit tests for new workflows via `assertWorkflowSpecValid`.\n- Use the new Vitest suites (`validation.test.ts`, `expression.test.ts`, `runner.test.ts`) as examples.\n- CLI support will arrive in Phase 1 PR 3 (`contractspec create --type workflow`).\n\n## Tooling\n\n- `contractspec create --type workflow` scaffolds a WorkflowSpec with interactive prompts.\n- `contractspec build <spec.workflow.ts>` generates a runner scaffold (`.runner.ts`) wired to `WorkflowRunner` and the in-memory store.\n- `contractspec validate` understands `.workflow.ts` files and checks core structure (meta, steps, transitions).\n\n## Next Steps (Non-MVP)\n\n- Persistence adapters (database/file) for workflow state (Phase 2).\n- React bindings (`useWorkflow`, `WorkflowStepper`) and presentation-runtime integration (PR 3).\n- Policy engine integration (`guard.type === 'policy'` validated against PolicySpec).\n- Telemetry hooks for step execution metrics.\n\n"
17
- }];
18
- a(t);
19
-
20
- //#endregion
@@ -1,9 +0,0 @@
1
- import "./schema/dist/index.js";
2
-
3
- //#region ../../libs/contracts/dist/events.js
4
- function e(e$1) {
5
- return e$1;
6
- }
7
-
8
- //#endregion
9
- export { e };
@@ -1 +0,0 @@
1
- import "node:crypto";
@@ -1,71 +0,0 @@
1
- import "./schema/dist/SchemaModel.js";
2
- import "./schema/dist/index.js";
3
- import { e } from "./events.js";
4
- import "./presentations.v2.js";
5
- import "./client/react/feature-render.js";
6
- import "./client/react/form-render.js";
7
- import "./client/index.js";
8
- import "./jsonschema.js";
9
- import "./server/graphql-pothos.js";
10
- import "./presentations.js";
11
- import "./server/mcp/createMcpServer.js";
12
- import "./server/rest-generic.js";
13
- import "./server/rest-elysia.js";
14
- import "./server/rest-express.js";
15
- import "./server/rest-next-app.js";
16
- import "./server/rest-next-pages.js";
17
- import "./server/index.js";
18
- import { n, t as t$1 } from "./spec.js";
19
- import { a, i, o } from "./docs/presentations.js";
20
- import { a as a$1, i as i$1, n as n$1 } from "./docs/registry.js";
21
- import "./registry.js";
22
- import { e as e$1, r, t as t$2 } from "./ownership.js";
23
- import { i as i$2, n as n$2, r as r$1 } from "./contract-registry/schemas.js";
24
- import "./contract-registry/index.js";
25
- import "./install.js";
26
- import "./openapi.js";
27
- import "./prompt.js";
28
- import "./promptRegistry.js";
29
- import "./resources.js";
30
- import { d, l, m, o as o$1, p, s } from "./onboarding-base.js";
31
- import "./capabilities/openbanking.js";
32
- import "./telemetry/tracker.js";
33
- import "./telemetry/index.js";
34
- import "./tests/runner.js";
35
- import "./tests/index.js";
36
- import "./experiments/evaluator.js";
37
- import "./integrations/providers/stripe.js";
38
- import "./integrations/providers/postmark.js";
39
- import "./integrations/providers/qdrant.js";
40
- import "./integrations/providers/mistral.js";
41
- import "./integrations/providers/elevenlabs.js";
42
- import "./integrations/providers/gmail.js";
43
- import "./integrations/providers/google-calendar.js";
44
- import "./integrations/providers/twilio-sms.js";
45
- import "./integrations/providers/gcs-storage.js";
46
- import "./integrations/providers/powens.js";
47
- import "./integrations/providers/registry.js";
48
- import { i as i$3, n as n$3, r as r$2 } from "./integrations/openbanking/models.js";
49
- import { t as t$3 } from "./integrations/openbanking/telemetry.js";
50
- import { d as d$1, f, p as p$1 } from "./integrations/openbanking/contracts/accounts.js";
51
- import { d as d$2, u } from "./integrations/openbanking/contracts/transactions.js";
52
- import { d as d$3, u as u$1 } from "./integrations/openbanking/contracts/balances.js";
53
- import "./integrations/openbanking/contracts/index.js";
54
- import "./integrations/index.js";
55
- import "./knowledge/spaces/product-canon.js";
56
- import "./knowledge/spaces/support-faq.js";
57
- import "./knowledge/spaces/email-threads.js";
58
- import "./knowledge/spaces/uploaded-docs.js";
59
- import "./knowledge/spaces/financial-docs.js";
60
- import "./knowledge/spaces/financial-overview.js";
61
- import "./knowledge/index.js";
62
- import { _, g, h, m as m$1, p as p$2 } from "./integrations/contracts.js";
63
- import { _ as _$1, g as g$1, h as h$1, m as m$2, v } from "./knowledge/contracts.js";
64
- import "./regenerator/service.js";
65
- import "./regenerator/index.js";
66
- import "./workflow/runner.js";
67
- import "./workflow/index.js";
68
- import "./docs/index.js";
69
- import "./llm/exporters.js";
70
- import "./llm/prompts.js";
71
- import "./llm/index.js";
@@ -1,2 +0,0 @@
1
- import "./registry.js";
2
- import "zod";
@@ -1,371 +0,0 @@
1
- import { t } from "../schema/dist/SchemaModel.js";
2
- import { l } from "../schema/dist/ScalarTypeEnum.js";
3
- import "../schema/dist/index.js";
4
- import { n, t as t$1 } from "../spec.js";
5
-
6
- //#region ../../libs/contracts/dist/integrations/contracts.js
7
- const i = new t({
8
- name: `IntegrationConnectionRecord`,
9
- fields: {
10
- id: {
11
- type: l.ID(),
12
- isOptional: !1
13
- },
14
- tenantId: {
15
- type: l.ID(),
16
- isOptional: !1
17
- },
18
- integrationKey: {
19
- type: l.NonEmptyString(),
20
- isOptional: !1
21
- },
22
- integrationVersion: {
23
- type: l.Int_unsecure(),
24
- isOptional: !1
25
- },
26
- label: {
27
- type: l.String_unsecure(),
28
- isOptional: !1
29
- },
30
- ownershipMode: {
31
- type: l.String_unsecure(),
32
- isOptional: !1
33
- },
34
- externalAccountId: {
35
- type: l.String_unsecure(),
36
- isOptional: !0
37
- },
38
- secretProvider: {
39
- type: l.String_unsecure(),
40
- isOptional: !1
41
- },
42
- secretRef: {
43
- type: l.String_unsecure(),
44
- isOptional: !1
45
- },
46
- status: {
47
- type: l.String_unsecure(),
48
- isOptional: !1
49
- },
50
- environment: {
51
- type: l.String_unsecure(),
52
- isOptional: !0
53
- },
54
- healthStatus: {
55
- type: l.String_unsecure(),
56
- isOptional: !0
57
- },
58
- healthCheckedAt: {
59
- type: l.DateTime(),
60
- isOptional: !0
61
- },
62
- healthLatencyMs: {
63
- type: l.Float_unsecure(),
64
- isOptional: !0
65
- },
66
- healthErrorCode: {
67
- type: l.String_unsecure(),
68
- isOptional: !0
69
- },
70
- healthErrorMessage: {
71
- type: l.String_unsecure(),
72
- isOptional: !0
73
- },
74
- usageRequestCount: {
75
- type: l.Int_unsecure(),
76
- isOptional: !0
77
- },
78
- usageSuccessCount: {
79
- type: l.Int_unsecure(),
80
- isOptional: !0
81
- },
82
- usageErrorCount: {
83
- type: l.Int_unsecure(),
84
- isOptional: !0
85
- },
86
- usageLastUsedAt: {
87
- type: l.DateTime(),
88
- isOptional: !0
89
- },
90
- usageLastErrorAt: {
91
- type: l.DateTime(),
92
- isOptional: !0
93
- },
94
- usageLastErrorCode: {
95
- type: l.String_unsecure(),
96
- isOptional: !0
97
- },
98
- createdAt: {
99
- type: l.DateTime(),
100
- isOptional: !0
101
- },
102
- updatedAt: {
103
- type: l.DateTime(),
104
- isOptional: !0
105
- }
106
- }
107
- }), a = new t({
108
- name: `CreateIntegrationConnectionInput`,
109
- fields: {
110
- tenantId: {
111
- type: l.ID(),
112
- isOptional: !1
113
- },
114
- integrationKey: {
115
- type: l.NonEmptyString(),
116
- isOptional: !1
117
- },
118
- integrationVersion: {
119
- type: l.Int_unsecure(),
120
- isOptional: !1
121
- },
122
- label: {
123
- type: l.String_unsecure(),
124
- isOptional: !1
125
- },
126
- ownershipMode: {
127
- type: l.String_unsecure(),
128
- isOptional: !1
129
- },
130
- externalAccountId: {
131
- type: l.String_unsecure(),
132
- isOptional: !0
133
- },
134
- secretProvider: {
135
- type: l.String_unsecure(),
136
- isOptional: !1
137
- },
138
- secretRef: {
139
- type: l.String_unsecure(),
140
- isOptional: !1
141
- },
142
- environment: {
143
- type: l.String_unsecure(),
144
- isOptional: !0
145
- },
146
- config: {
147
- type: l.JSONObject(),
148
- isOptional: !1
149
- }
150
- }
151
- }), o = new t({
152
- name: `UpdateIntegrationConnectionInput`,
153
- fields: {
154
- connectionId: {
155
- type: l.ID(),
156
- isOptional: !1
157
- },
158
- label: {
159
- type: l.String_unsecure(),
160
- isOptional: !0
161
- },
162
- status: {
163
- type: l.String_unsecure(),
164
- isOptional: !0
165
- },
166
- ownershipMode: {
167
- type: l.String_unsecure(),
168
- isOptional: !0
169
- },
170
- externalAccountId: {
171
- type: l.String_unsecure(),
172
- isOptional: !0
173
- },
174
- secretProvider: {
175
- type: l.String_unsecure(),
176
- isOptional: !0
177
- },
178
- secretRef: {
179
- type: l.String_unsecure(),
180
- isOptional: !0
181
- },
182
- config: {
183
- type: l.JSONObject(),
184
- isOptional: !0
185
- }
186
- }
187
- }), s = new t({
188
- name: `DeleteIntegrationConnectionInput`,
189
- fields: { connectionId: {
190
- type: l.ID(),
191
- isOptional: !1
192
- } }
193
- }), c = new t({
194
- name: `ListIntegrationConnectionsInput`,
195
- fields: {
196
- tenantId: {
197
- type: l.ID(),
198
- isOptional: !1
199
- },
200
- category: {
201
- type: l.String_unsecure(),
202
- isOptional: !0
203
- },
204
- status: {
205
- type: l.String_unsecure(),
206
- isOptional: !0
207
- }
208
- }
209
- }), l$1 = new t({
210
- name: `ListIntegrationConnectionsOutput`,
211
- fields: { connections: {
212
- type: i,
213
- isOptional: !1,
214
- isArray: !0
215
- } }
216
- }), u = new t({
217
- name: `TestIntegrationConnectionInput`,
218
- fields: { connectionId: {
219
- type: l.ID(),
220
- isOptional: !1
221
- } }
222
- }), d = new t({
223
- name: `TestIntegrationConnectionOutput`,
224
- fields: {
225
- success: {
226
- type: l.Boolean(),
227
- isOptional: !1
228
- },
229
- status: {
230
- type: l.String_unsecure(),
231
- isOptional: !0
232
- },
233
- latencyMs: {
234
- type: l.Float_unsecure(),
235
- isOptional: !0
236
- },
237
- error: {
238
- type: l.String_unsecure(),
239
- isOptional: !0
240
- },
241
- errorCode: {
242
- type: l.String_unsecure(),
243
- isOptional: !0
244
- }
245
- }
246
- }), f = new t({
247
- name: `DeleteIntegrationConnectionOutput`,
248
- fields: { success: {
249
- type: l.Boolean(),
250
- isOptional: !1
251
- } }
252
- }), p = t$1({
253
- meta: {
254
- name: `integrations.connection.create`,
255
- version: 1,
256
- description: `Create a new integration connection for a tenant.`,
257
- goal: `Provision a tenant-scoped connection to an external provider.`,
258
- context: `Used by Ops or the App Studio to configure external integrations such as Stripe or Qdrant.`,
259
- owners: [`platform.integrations`],
260
- tags: [`integration`, `connections`],
261
- stability: `experimental`
262
- },
263
- io: {
264
- input: a,
265
- output: i
266
- },
267
- policy: {
268
- auth: `admin`,
269
- policies: [{
270
- name: `platform.integration.manage`,
271
- version: 1
272
- }]
273
- }
274
- }), m = t$1({
275
- meta: {
276
- name: `integrations.connection.update`,
277
- version: 1,
278
- description: `Update metadata or credentials for an integration connection.`,
279
- goal: `Allow secure rotation of credentials and metadata adjustments.`,
280
- context: `Supports rotating API keys, toggling status, or updating labels for tenant integrations.`,
281
- owners: [`platform.integrations`],
282
- tags: [`integration`, `connections`],
283
- stability: `experimental`
284
- },
285
- io: {
286
- input: o,
287
- output: i
288
- },
289
- policy: {
290
- auth: `admin`,
291
- policies: [{
292
- name: `platform.integration.manage`,
293
- version: 1
294
- }]
295
- }
296
- }), h = t$1({
297
- meta: {
298
- name: `integrations.connection.delete`,
299
- version: 1,
300
- description: `Delete an integration connection for a tenant.`,
301
- goal: `Safely remove credentials and disable connector usage.`,
302
- context: `Ensures connections are de-provisioned when no longer needed or breached.`,
303
- owners: [`platform.integrations`],
304
- tags: [`integration`, `connections`],
305
- stability: `experimental`
306
- },
307
- io: {
308
- input: s,
309
- output: f
310
- },
311
- policy: {
312
- auth: `admin`,
313
- policies: [{
314
- name: `platform.integration.manage`,
315
- version: 1
316
- }]
317
- }
318
- }), g = n({
319
- meta: {
320
- name: `integrations.connection.list`,
321
- version: 1,
322
- description: `List integration connections for a tenant.`,
323
- goal: `Provide visibility into configured integrations and their status.`,
324
- context: `Used by the App Studio and Ops flows to show bindings and health.`,
325
- owners: [`platform.integrations`],
326
- tags: [`integration`, `connections`],
327
- stability: `experimental`
328
- },
329
- io: {
330
- input: c,
331
- output: l$1
332
- },
333
- policy: {
334
- auth: `admin`,
335
- policies: [{
336
- name: `platform.integration.read`,
337
- version: 1
338
- }]
339
- }
340
- }), _ = t$1({
341
- meta: {
342
- name: `integrations.connection.test`,
343
- version: 1,
344
- description: `Run a health check against a configured integration connection.`,
345
- goal: `Validate credentials and connectivity for external providers.`,
346
- context: `Triggered manually or by background monitors to confirm provider availability.`,
347
- owners: [`platform.integrations`],
348
- tags: [`integration`, `connections`],
349
- stability: `experimental`
350
- },
351
- io: {
352
- input: u,
353
- output: d
354
- },
355
- policy: {
356
- auth: `admin`,
357
- policies: [{
358
- name: `platform.integration.manage`,
359
- version: 1
360
- }]
361
- }
362
- }), v = {
363
- CreateIntegrationConnection: p,
364
- UpdateIntegrationConnection: m,
365
- DeleteIntegrationConnection: h,
366
- ListIntegrationConnections: g,
367
- TestIntegrationConnection: _
368
- };
369
-
370
- //#endregion
371
- export { _, g, h, m, p };
@@ -1,18 +0,0 @@
1
- import "./providers/stripe.js";
2
- import "./providers/postmark.js";
3
- import "./providers/qdrant.js";
4
- import "./providers/mistral.js";
5
- import "./providers/elevenlabs.js";
6
- import "./providers/gmail.js";
7
- import "./providers/google-calendar.js";
8
- import "./providers/twilio-sms.js";
9
- import "./providers/gcs-storage.js";
10
- import "./providers/powens.js";
11
- import "./providers/registry.js";
12
- import { i, n, r } from "./openbanking/models.js";
13
- import { t } from "./openbanking/telemetry.js";
14
- import { d, f, p } from "./openbanking/contracts/accounts.js";
15
- import { d as d$1, u } from "./openbanking/contracts/transactions.js";
16
- import { d as d$2, u as u$1 } from "./openbanking/contracts/balances.js";
17
- import "./openbanking/contracts/index.js";
18
- import "./providers/index.js";