@lssm/lib.contracts 0.0.0-canary-20251217052941 → 0.0.0-canary-20251217060433

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 (248) hide show
  1. package/dist/app-config/app-config.feature.d.ts +11 -0
  2. package/dist/app-config/branding.d.ts +55 -0
  3. package/dist/app-config/contracts.d.ts +244 -0
  4. package/dist/app-config/docs/app-config.docblock.d.ts +6 -0
  5. package/dist/app-config/events.d.ts +122 -0
  6. package/dist/app-config/index.d.ts +9 -0
  7. package/dist/app-config/lifecycle-contracts.d.ts +382 -0
  8. package/dist/app-config/lifecycle.d.ts +27 -0
  9. package/dist/app-config/runtime.d.ts +114 -0
  10. package/dist/app-config/spec.d.ts +175 -0
  11. package/dist/app-config/validation.d.ts +47 -0
  12. package/dist/capabilities/docs/capabilities.docblock.d.ts +6 -0
  13. package/dist/capabilities/openbanking.d.ts +9 -0
  14. package/dist/capabilities.d.ts +48 -0
  15. package/dist/client/index.d.ts +6 -0
  16. package/dist/client/react/drivers/rn-reusables.d.ts +22 -0
  17. package/dist/client/react/drivers/shadcn.d.ts +12 -0
  18. package/dist/client/react/feature-render.d.ts +19 -0
  19. package/dist/client/react/form-render.d.ts +91 -0
  20. package/dist/client/react/index.d.ts +5 -0
  21. package/dist/contract-registry/index.d.ts +3 -0
  22. package/dist/contract-registry/schemas.d.ts +124 -0
  23. package/dist/contract-registry/types.d.ts +46 -0
  24. package/dist/contracts-adapter-hydration.d.ts +15 -0
  25. package/dist/contracts-adapter-input.d.ts +10 -0
  26. package/dist/data-views/docs/data-views.docblock.d.ts +6 -0
  27. package/dist/data-views/query-generator.d.ts +39 -0
  28. package/dist/data-views/runtime.d.ts +26 -0
  29. package/dist/data-views.d.ts +131 -0
  30. package/dist/docs/PUBLISHING.docblock.d.ts +6 -0
  31. package/dist/docs/accessibility_wcag_compliance_specs.docblock.d.ts +6 -0
  32. package/dist/docs/index.d.ts +6 -0
  33. package/dist/docs/meta.docs.d.ts +6 -0
  34. package/dist/docs/presentations.d.ts +33 -0
  35. package/dist/docs/registry.d.ts +24 -0
  36. package/dist/docs/tech/PHASE_1_QUICKSTART.docblock.d.ts +6 -0
  37. package/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.d.ts +6 -0
  38. package/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.d.ts +6 -0
  39. package/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.d.ts +6 -0
  40. package/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.d.ts +6 -0
  41. package/dist/docs/tech/auth/better-auth-nextjs.docblock.d.ts +6 -0
  42. package/dist/docs/tech/contracts/README.docblock.d.ts +6 -0
  43. package/dist/docs/tech/contracts/create-subscription.docblock.d.ts +6 -0
  44. package/dist/docs/tech/contracts/graphql-typed-outputs.docblock.d.ts +6 -0
  45. package/dist/docs/tech/contracts/migrations.docblock.d.ts +6 -0
  46. package/dist/docs/tech/contracts/openapi-export.docblock.d.ts +6 -0
  47. package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.d.ts +6 -0
  48. package/dist/docs/tech/contracts/overlays.docblock.d.ts +6 -0
  49. package/dist/docs/tech/contracts/tests.docblock.d.ts +6 -0
  50. package/dist/docs/tech/contracts/themes.docblock.d.ts +6 -0
  51. package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.d.ts +6 -0
  52. package/dist/docs/tech/lifecycle-stage-system.docblock.d.ts +6 -0
  53. package/dist/docs/tech/llm/llm-integration.docblock.d.ts +7 -0
  54. package/dist/docs/tech/mcp-endpoints.docblock.d.ts +6 -0
  55. package/dist/docs/tech/presentation-runtime.docblock.d.ts +6 -0
  56. package/dist/docs/tech/schema/README.docblock.d.ts +6 -0
  57. package/dist/docs/tech/studio/learning-events.docblock.d.ts +6 -0
  58. package/dist/docs/tech/studio/learning-journeys.docblock.d.ts +6 -0
  59. package/dist/docs/tech/studio/platform-admin-panel.docblock.d.ts +6 -0
  60. package/dist/docs/tech/studio/project-access-teams.docblock.d.ts +6 -0
  61. package/dist/docs/tech/studio/project-routing.docblock.d.ts +6 -0
  62. package/dist/docs/tech/studio/sandbox-unlogged.docblock.d.ts +6 -0
  63. package/dist/docs/tech/studio/team-invitations.docblock.d.ts +6 -0
  64. package/dist/docs/tech/studio/workspace-ops.docblock.d.ts +6 -0
  65. package/dist/docs/tech/studio/workspaces.docblock.d.ts +6 -0
  66. package/dist/docs/tech/telemetry-ingest.docblock.d.ts +6 -0
  67. package/dist/docs/tech/templates/runtime.docblock.d.ts +6 -0
  68. package/dist/docs/tech/vscode-extension.docblock.d.ts +6 -0
  69. package/dist/docs/tech/workflows/overview.docblock.d.ts +6 -0
  70. package/dist/docs/tech-contracts.docs.d.ts +6 -0
  71. package/dist/docs/types.d.ts +41 -0
  72. package/dist/events.d.ts +47 -0
  73. package/dist/experiments/docs/experiments.docblock.d.ts +6 -0
  74. package/dist/experiments/evaluator.d.ts +37 -0
  75. package/dist/experiments/spec-resolver.d.ts +16 -0
  76. package/dist/experiments/spec.d.ts +89 -0
  77. package/dist/features.d.ts +96 -0
  78. package/dist/forms/docs/forms.docblock.d.ts +6 -0
  79. package/dist/forms.d.ts +258 -0
  80. package/dist/index.d.ts +127 -0
  81. package/dist/install.d.ts +76 -0
  82. package/dist/integrations/binding.d.ts +17 -0
  83. package/dist/integrations/connection.d.ts +51 -0
  84. package/dist/integrations/contracts.d.ts +435 -0
  85. package/dist/integrations/docs/integrations.docblock.d.ts +6 -0
  86. package/dist/integrations/health.d.ts +21 -0
  87. package/dist/integrations/index.d.ts +34 -0
  88. package/dist/integrations/openbanking/contracts/accounts.d.ts +287 -0
  89. package/dist/integrations/openbanking/contracts/balances.d.ts +163 -0
  90. package/dist/integrations/openbanking/contracts/index.d.ts +10 -0
  91. package/dist/integrations/openbanking/contracts/transactions.d.ts +211 -0
  92. package/dist/integrations/openbanking/guards.d.ts +12 -0
  93. package/dist/integrations/openbanking/models.d.ts +228 -0
  94. package/dist/integrations/openbanking/openbanking.feature.d.ts +11 -0
  95. package/dist/integrations/openbanking/telemetry.d.ts +15 -0
  96. package/dist/integrations/providers/calendar.d.ts +78 -0
  97. package/dist/integrations/providers/elevenlabs.d.ts +7 -0
  98. package/dist/integrations/providers/email.d.ts +86 -0
  99. package/dist/integrations/providers/embedding.d.ts +24 -0
  100. package/dist/integrations/providers/gcs-storage.d.ts +7 -0
  101. package/dist/integrations/providers/gmail.d.ts +7 -0
  102. package/dist/integrations/providers/google-calendar.d.ts +7 -0
  103. package/dist/integrations/providers/impls/elevenlabs-voice.d.ts +20 -0
  104. package/dist/integrations/providers/impls/gcs-storage.d.ts +24 -0
  105. package/dist/integrations/providers/impls/gmail-inbound.d.ts +26 -0
  106. package/dist/integrations/providers/impls/gmail-outbound.d.ts +18 -0
  107. package/dist/integrations/providers/impls/google-calendar.d.ts +23 -0
  108. package/dist/integrations/providers/impls/index.d.ts +15 -0
  109. package/dist/integrations/providers/impls/mistral-embedding.d.ts +23 -0
  110. package/dist/integrations/providers/impls/mistral-llm.d.ts +31 -0
  111. package/dist/integrations/providers/impls/postmark-email.d.ts +19 -0
  112. package/dist/integrations/providers/impls/powens-client.d.ts +124 -0
  113. package/dist/integrations/providers/impls/powens-openbanking.d.ts +27 -0
  114. package/dist/integrations/providers/impls/provider-factory.d.ts +26 -0
  115. package/dist/integrations/providers/impls/qdrant-vector.d.ts +24 -0
  116. package/dist/integrations/providers/impls/stripe-payments.d.ts +28 -0
  117. package/dist/integrations/providers/impls/twilio-sms.d.ts +20 -0
  118. package/dist/integrations/providers/index.d.ts +22 -0
  119. package/dist/integrations/providers/llm.d.ts +82 -0
  120. package/dist/integrations/providers/mistral.d.ts +7 -0
  121. package/dist/integrations/providers/openbanking.d.ts +128 -0
  122. package/dist/integrations/providers/payments.d.ts +109 -0
  123. package/dist/integrations/providers/postmark.d.ts +7 -0
  124. package/dist/integrations/providers/powens.d.ts +7 -0
  125. package/dist/integrations/providers/qdrant.d.ts +7 -0
  126. package/dist/integrations/providers/registry.d.ts +11 -0
  127. package/dist/integrations/providers/sms.d.ts +34 -0
  128. package/dist/integrations/providers/storage.d.ts +60 -0
  129. package/dist/integrations/providers/stripe.d.ts +7 -0
  130. package/dist/integrations/providers/twilio-sms.d.ts +7 -0
  131. package/dist/integrations/providers/vector-store.d.ts +43 -0
  132. package/dist/integrations/providers/voice.d.ts +34 -0
  133. package/dist/integrations/runtime.d.ts +99 -0
  134. package/dist/integrations/secrets/aws-secret-manager.d.ts +31 -0
  135. package/dist/integrations/secrets/env-secret-provider.d.ts +31 -0
  136. package/dist/integrations/secrets/gcp-secret-manager.d.ts +32 -0
  137. package/dist/integrations/secrets/gcp-secret-manager.js +1 -1
  138. package/dist/integrations/secrets/index.d.ts +7 -0
  139. package/dist/integrations/secrets/manager.d.ts +47 -0
  140. package/dist/integrations/secrets/provider.d.ts +52 -0
  141. package/dist/integrations/secrets/scaleway-secret-manager.d.ts +38 -0
  142. package/dist/integrations/spec.d.ts +79 -0
  143. package/dist/jobs/define-job.d.ts +18 -0
  144. package/dist/jobs/gcp-cloud-tasks.d.ts +41 -0
  145. package/dist/jobs/gcp-pubsub.d.ts +25 -0
  146. package/dist/jobs/handlers/gmail-sync-handler.d.ts +9 -0
  147. package/dist/jobs/handlers/index.d.ts +9 -0
  148. package/dist/jobs/handlers/ping-handler.d.ts +10 -0
  149. package/dist/jobs/handlers/storage-document-handler.d.ts +12 -0
  150. package/dist/jobs/index.d.ts +3 -0
  151. package/dist/jobs/memory-queue.d.ts +18 -0
  152. package/dist/jobs/queue.d.ts +131 -0
  153. package/dist/jobs/scaleway-sqs-queue.d.ts +30 -0
  154. package/dist/jsonschema.d.ts +27 -0
  155. package/dist/knowledge/binding.d.ts +25 -0
  156. package/dist/knowledge/contracts.d.ts +316 -0
  157. package/dist/knowledge/docs/knowledge.docblock.d.ts +6 -0
  158. package/dist/knowledge/index.d.ts +10 -0
  159. package/dist/knowledge/ingestion/document-processor.d.ts +24 -0
  160. package/dist/knowledge/ingestion/embedding-service.d.ts +12 -0
  161. package/dist/knowledge/ingestion/gmail-adapter.d.ts +18 -0
  162. package/dist/knowledge/ingestion/index.d.ts +6 -0
  163. package/dist/knowledge/ingestion/storage-adapter.d.ts +15 -0
  164. package/dist/knowledge/ingestion/vector-indexer.d.ts +18 -0
  165. package/dist/knowledge/query/index.d.ts +2 -0
  166. package/dist/knowledge/query/service.d.ts +29 -0
  167. package/dist/knowledge/runtime.d.ts +32 -0
  168. package/dist/knowledge/source.d.ts +32 -0
  169. package/dist/knowledge/spaces/email-threads.d.ts +7 -0
  170. package/dist/knowledge/spaces/financial-docs.d.ts +7 -0
  171. package/dist/knowledge/spaces/financial-overview.d.ts +7 -0
  172. package/dist/knowledge/spaces/index.d.ts +7 -0
  173. package/dist/knowledge/spaces/product-canon.d.ts +7 -0
  174. package/dist/knowledge/spaces/support-faq.d.ts +7 -0
  175. package/dist/knowledge/spaces/uploaded-docs.d.ts +7 -0
  176. package/dist/knowledge/spec.d.ts +52 -0
  177. package/dist/llm/exporters.d.ts +67 -0
  178. package/dist/llm/index.d.ts +4 -0
  179. package/dist/llm/prompts.d.ts +51 -0
  180. package/dist/llm/types.d.ts +213 -0
  181. package/dist/markdown.d.ts +21 -0
  182. package/dist/migrations.d.ts +52 -0
  183. package/dist/onboarding-base.d.ts +137 -0
  184. package/dist/openapi.d.ts +31 -0
  185. package/dist/openbanking/docs/openbanking.docblock.d.ts +6 -0
  186. package/dist/ownership.d.ts +75 -0
  187. package/dist/policy/docs/policy.docblock.d.ts +6 -0
  188. package/dist/policy/engine.d.ts +39 -0
  189. package/dist/policy/opa-adapter.d.ts +45 -0
  190. package/dist/policy/spec.d.ts +114 -0
  191. package/dist/presentations/docs/presentations-conventions.docblock.d.ts +6 -0
  192. package/dist/presentations.backcompat.d.ts +7 -0
  193. package/dist/presentations.d.ts +98 -0
  194. package/dist/presentations.v2.d.ts +114 -0
  195. package/dist/prompt.d.ts +60 -0
  196. package/dist/promptRegistry.d.ts +15 -0
  197. package/dist/regenerator/adapters.d.ts +19 -0
  198. package/dist/regenerator/docs/regenerator.docblock.d.ts +6 -0
  199. package/dist/regenerator/executor.d.ts +70 -0
  200. package/dist/regenerator/index.d.ts +7 -0
  201. package/dist/regenerator/service.d.ts +33 -0
  202. package/dist/regenerator/sinks.d.ts +26 -0
  203. package/dist/regenerator/types.d.ts +107 -0
  204. package/dist/regenerator/utils.d.ts +9 -0
  205. package/dist/registry.d.ts +73 -0
  206. package/dist/resources.d.ts +64 -0
  207. package/dist/schema-to-markdown.d.ts +54 -0
  208. package/dist/server/graphql-pothos.d.ts +27 -0
  209. package/dist/server/index.d.ts +9 -0
  210. package/dist/server/mcp/createMcpServer.d.ts +15 -0
  211. package/dist/server/mcp/mcpTypes.d.ts +29 -0
  212. package/dist/server/mcp/registerPresentations.d.ts +7 -0
  213. package/dist/server/mcp/registerPrompts.d.ts +8 -0
  214. package/dist/server/mcp/registerResources.d.ts +8 -0
  215. package/dist/server/mcp/registerTools.d.ts +8 -0
  216. package/dist/server/provider-mcp.d.ts +2 -0
  217. package/dist/server/rest-elysia.d.ts +40 -0
  218. package/dist/server/rest-express.d.ts +16 -0
  219. package/dist/server/rest-generic.d.ts +32 -0
  220. package/dist/server/rest-next-app.d.ts +35 -0
  221. package/dist/server/rest-next-mcp.d.ts +11 -0
  222. package/dist/server/rest-next-pages.d.ts +9 -0
  223. package/dist/spec.d.ts +195 -0
  224. package/dist/telemetry/anomaly.d.ts +27 -0
  225. package/dist/telemetry/docs/telemetry.docblock.d.ts +6 -0
  226. package/dist/telemetry/index.d.ts +4 -0
  227. package/dist/telemetry/spec.d.ts +98 -0
  228. package/dist/telemetry/tracker.d.ts +51 -0
  229. package/dist/tests/index.d.ts +3 -0
  230. package/dist/tests/runner.d.ts +43 -0
  231. package/dist/tests/spec.d.ts +89 -0
  232. package/dist/themes.d.ts +55 -0
  233. package/dist/translations/catalog.d.ts +28 -0
  234. package/dist/translations/tenant.d.ts +15 -0
  235. package/dist/types/all.d.ts +60 -0
  236. package/dist/types.d.ts +88 -0
  237. package/dist/workflow/adapters/db-adapter.d.ts +34 -0
  238. package/dist/workflow/adapters/file-adapter.d.ts +14 -0
  239. package/dist/workflow/adapters/index.d.ts +4 -0
  240. package/dist/workflow/adapters/memory-store.d.ts +18 -0
  241. package/dist/workflow/expression.d.ts +9 -0
  242. package/dist/workflow/index.d.ts +10 -0
  243. package/dist/workflow/runner.d.ts +74 -0
  244. package/dist/workflow/sla-monitor.d.ts +20 -0
  245. package/dist/workflow/spec.d.ts +99 -0
  246. package/dist/workflow/state.d.ts +35 -0
  247. package/dist/workflow/validation.d.ts +28 -0
  248. package/package.json +250 -250
@@ -0,0 +1,131 @@
1
+ import { OwnerShipMeta } from "./ownership.js";
2
+ import { ExperimentRef } from "./experiments/spec.js";
3
+ import { EventRef, OpRef, PresentationRef } from "./features.js";
4
+
5
+ //#region src/data-views.d.ts
6
+ type DataViewKind = 'list' | 'detail' | 'table' | 'grid';
7
+ interface DataViewMeta extends OwnerShipMeta {
8
+ /** Fully-qualified data view name (e.g., "sigil.spaces.admin_list"). */
9
+ name: string;
10
+ /** Version of this data view. Increment on breaking changes. */
11
+ version: number;
12
+ /** Canonical entity slug (e.g., "space", "resident"). */
13
+ entity: string;
14
+ }
15
+ interface DataViewSource {
16
+ /** Primary query used to fetch items for this view. */
17
+ primary: OpRef;
18
+ /** Optional operation used to fetch a single item (detail views). */
19
+ item?: OpRef;
20
+ /** Optional record mutation operations (used for inline editing or actions). */
21
+ mutations?: {
22
+ create?: OpRef;
23
+ update?: OpRef;
24
+ delete?: OpRef;
25
+ };
26
+ /** Events that should trigger refresh when emitted. */
27
+ refreshEvents?: EventRef[];
28
+ }
29
+ type DataViewFieldFormat = 'text' | 'number' | 'currency' | 'percentage' | 'date' | 'dateTime' | 'boolean' | 'badge';
30
+ interface DataViewField {
31
+ /** Unique identifier for the field within the view. */
32
+ key: string;
33
+ /** Human-friendly label for headers/tooltips. */
34
+ label: string;
35
+ /** Dot-path into the data item (e.g., "address.city"). */
36
+ dataPath: string;
37
+ /** Optional description surfaced in tooltips or docs. */
38
+ description?: string;
39
+ /** Optional formatting hint for renderers. */
40
+ format?: DataViewFieldFormat;
41
+ /** When true, the field can be used for sorting. */
42
+ sortable?: boolean;
43
+ /** When true, the field can be used for filtering. */
44
+ filterable?: boolean;
45
+ /** Optional width hint for table layouts. */
46
+ width?: 'auto' | 'xs' | 'sm' | 'md' | 'lg';
47
+ /** Optional presentation override (e.g., card component). */
48
+ presentation?: PresentationRef;
49
+ }
50
+ interface DataViewFilter {
51
+ key: string;
52
+ label: string;
53
+ field: string;
54
+ type: 'search' | 'enum' | 'number' | 'date' | 'boolean';
55
+ options?: {
56
+ value: string;
57
+ label: string;
58
+ }[];
59
+ }
60
+ interface DataViewAction {
61
+ key: string;
62
+ label: string;
63
+ kind: 'navigation' | 'operation';
64
+ /** Operation invoked when kind === 'operation'. */
65
+ operation?: OpRef;
66
+ /** Optional feature flag gating the action. */
67
+ requiresFlag?: string;
68
+ }
69
+ interface DataViewSections {
70
+ title?: string;
71
+ description?: string;
72
+ fields: string[];
73
+ }
74
+ interface DataViewBaseConfig {
75
+ kind: DataViewKind;
76
+ fields: DataViewField[];
77
+ primaryField?: string;
78
+ secondaryFields?: string[];
79
+ filters?: DataViewFilter[];
80
+ actions?: DataViewAction[];
81
+ }
82
+ interface DataViewListConfig extends DataViewBaseConfig {
83
+ kind: 'list';
84
+ layout?: 'card' | 'compact';
85
+ }
86
+ interface DataViewDetailConfig extends DataViewBaseConfig {
87
+ kind: 'detail';
88
+ sections?: DataViewSections[];
89
+ }
90
+ interface DataViewTableColumn {
91
+ field: string;
92
+ label?: string;
93
+ width?: 'auto' | 'xs' | 'sm' | 'md' | 'lg';
94
+ align?: 'left' | 'center' | 'right';
95
+ }
96
+ interface DataViewTableConfig extends DataViewBaseConfig {
97
+ kind: 'table';
98
+ columns?: DataViewTableColumn[];
99
+ rowSelectable?: boolean;
100
+ density?: 'comfortable' | 'compact';
101
+ }
102
+ interface DataViewGridConfig extends DataViewBaseConfig {
103
+ kind: 'grid';
104
+ columns?: number;
105
+ }
106
+ type DataViewConfig = DataViewListConfig | DataViewDetailConfig | DataViewTableConfig | DataViewGridConfig;
107
+ interface DataViewStates {
108
+ empty?: PresentationRef;
109
+ error?: PresentationRef;
110
+ loading?: PresentationRef;
111
+ }
112
+ interface DataViewSpec {
113
+ meta: DataViewMeta;
114
+ source: DataViewSource;
115
+ view: DataViewConfig;
116
+ states?: DataViewStates;
117
+ policy?: {
118
+ flags?: string[];
119
+ pii?: string[];
120
+ };
121
+ experiments?: ExperimentRef[];
122
+ }
123
+ declare class DataViewRegistry {
124
+ private readonly items;
125
+ register(spec: DataViewSpec): this;
126
+ list(): DataViewSpec[];
127
+ get(name: string, version?: number): DataViewSpec | undefined;
128
+ }
129
+ declare function dataViewKey(spec: DataViewSpec): string;
130
+ //#endregion
131
+ export { DataViewAction, DataViewBaseConfig, DataViewConfig, DataViewDetailConfig, DataViewField, DataViewFieldFormat, DataViewFilter, DataViewGridConfig, DataViewKind, DataViewListConfig, DataViewMeta, DataViewRegistry, DataViewSections, DataViewSource, DataViewSpec, DataViewStates, DataViewTableColumn, DataViewTableConfig, dataViewKey };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/PUBLISHING.docblock.d.ts
4
+ declare const PUBLISHING_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { PUBLISHING_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/accessibility_wcag_compliance_specs.docblock.d.ts
4
+ declare const accessibility_wcag_compliance_specs_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { accessibility_wcag_compliance_specs_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock, DocBlockLink, DocKind, DocVisibility } from "./types.js";
2
+ import { DocPresentationOptions, DocPresentationRoute, docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, mapDocRoutes } from "./presentations.js";
3
+ import { DocId, DocRegistry, defaultDocRegistry, docId, listRegisteredDocBlocks, registerDocBlocks } from "./registry.js";
4
+ import { techContractsDocs } from "./tech-contracts.docs.js";
5
+ import { metaDocs } from "./meta.docs.js";
6
+ export { DocBlock, DocBlockLink, DocId, DocKind, DocPresentationOptions, DocPresentationRoute, DocRegistry, DocVisibility, defaultDocRegistry, docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, docId, listRegisteredDocBlocks, mapDocRoutes, metaDocs, registerDocBlocks, techContractsDocs };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "./types.js";
2
+
3
+ //#region src/docs/meta.docs.d.ts
4
+ declare const metaDocs: DocBlock[];
5
+ //#endregion
6
+ export { metaDocs };
@@ -0,0 +1,33 @@
1
+ import { Stability } from "../ownership.js";
2
+ import { PresentationDescriptorV2, PresentationTarget } from "../presentations.v2.js";
3
+ import { PresentationSpec } from "../presentations.js";
4
+ import { DocBlock } from "./types.js";
5
+
6
+ //#region src/docs/presentations.d.ts
7
+ interface DocPresentationOptions {
8
+ /**
9
+ * Namespace for presentation meta.name (e.g., web-landing.docs.ops).
10
+ * Defaults to the DocBlock id.
11
+ */
12
+ namespace?: string;
13
+ /** Route prefix when no explicit route is provided on the block. Defaults to /docs. */
14
+ routePrefix?: string;
15
+ /** Default presentation targets. */
16
+ defaultTargets?: PresentationTarget[];
17
+ /** Default version when block.version is not set. */
18
+ defaultVersion?: number;
19
+ /** Default stability if not provided on the DocBlock. */
20
+ defaultStability?: Stability;
21
+ }
22
+ interface DocPresentationRoute {
23
+ route: string;
24
+ descriptor: PresentationDescriptorV2;
25
+ block: DocBlock;
26
+ }
27
+ declare function docBlockToPresentationV2(block: DocBlock, options?: DocPresentationOptions): PresentationDescriptorV2;
28
+ declare function docBlockToPresentationSpec(block: DocBlock, options?: DocPresentationOptions): PresentationSpec;
29
+ declare function docBlocksToPresentationRoutes(blocks: DocBlock[], options?: DocPresentationOptions): DocPresentationRoute[];
30
+ declare function docBlocksToPresentationSpecs(blocks: DocBlock[], options?: DocPresentationOptions): PresentationSpec[];
31
+ declare function mapDocRoutes(routes: DocPresentationRoute[]): [string, PresentationDescriptorV2][];
32
+ //#endregion
33
+ export { DocPresentationOptions, DocPresentationRoute, docBlockToPresentationSpec, docBlockToPresentationV2, docBlocksToPresentationRoutes, docBlocksToPresentationSpecs, mapDocRoutes };
@@ -0,0 +1,24 @@
1
+ import { PresentationDescriptorV2 } from "../presentations.v2.js";
2
+ import { PresentationSpec } from "../presentations.js";
3
+ import { DocBlock } from "./types.js";
4
+ import { DocPresentationOptions, DocPresentationRoute } from "./presentations.js";
5
+
6
+ //#region src/docs/registry.d.ts
7
+ type DocId = string & {
8
+ __docId: true;
9
+ };
10
+ declare class DocRegistry {
11
+ private readonly routes;
12
+ constructor(blocks?: DocBlock[], options?: DocPresentationOptions);
13
+ register(block: DocBlock, options?: DocPresentationOptions): this;
14
+ list(): DocPresentationRoute[];
15
+ get(id: string): DocPresentationRoute | undefined;
16
+ toRouteTuples(): [string, PresentationDescriptorV2][];
17
+ toPresentationSpecs(options?: DocPresentationOptions): PresentationSpec[];
18
+ }
19
+ declare const defaultDocRegistry: DocRegistry;
20
+ declare function registerDocBlocks(blocks: DocBlock[]): void;
21
+ declare function listRegisteredDocBlocks(): DocBlock[];
22
+ declare function docId(id: string): DocId;
23
+ //#endregion
24
+ export { DocId, DocRegistry, defaultDocRegistry, docId, listRegisteredDocBlocks, registerDocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/PHASE_1_QUICKSTART.docblock.d.ts
4
+ declare const tech_PHASE_1_QUICKSTART_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_PHASE_1_QUICKSTART_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.d.ts
4
+ declare const tech_PHASE_2_AI_NATIVE_OPERATIONS_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_PHASE_2_AI_NATIVE_OPERATIONS_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.d.ts
4
+ declare const tech_PHASE_3_AUTO_EVOLUTION_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_PHASE_3_AUTO_EVOLUTION_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.d.ts
4
+ declare const tech_PHASE_4_PERSONALIZATION_ENGINE_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_PHASE_4_PERSONALIZATION_ENGINE_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.d.ts
4
+ declare const tech_PHASE_5_ZERO_TOUCH_OPERATIONS_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_PHASE_5_ZERO_TOUCH_OPERATIONS_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/auth/better-auth-nextjs.docblock.d.ts
4
+ declare const tech_auth_better_auth_nextjs_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_auth_better_auth_nextjs_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/contracts/README.docblock.d.ts
4
+ declare const tech_contracts_README_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_contracts_README_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/contracts/create-subscription.docblock.d.ts
4
+ declare const tech_contracts_create_subscription_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_contracts_create_subscription_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/contracts/graphql-typed-outputs.docblock.d.ts
4
+ declare const tech_contracts_graphql_typed_outputs_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_contracts_graphql_typed_outputs_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/contracts/migrations.docblock.d.ts
4
+ declare const tech_contracts_migrations_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_contracts_migrations_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/contracts/openapi-export.docblock.d.ts
4
+ declare const tech_contracts_openapi_export_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_contracts_openapi_export_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/contracts/ops-to-presentation-linking.docblock.d.ts
4
+ declare const tech_contracts_ops_to_presentation_linking_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_contracts_ops_to_presentation_linking_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/contracts/overlays.docblock.d.ts
4
+ declare const tech_contracts_overlays_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_contracts_overlays_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/contracts/tests.docblock.d.ts
4
+ declare const tech_contracts_tests_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_contracts_tests_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/contracts/themes.docblock.d.ts
4
+ declare const tech_contracts_themes_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_contracts_themes_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/contracts/vertical-pocket-family-office.docblock.d.ts
4
+ declare const tech_contracts_vertical_pocket_family_office_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_contracts_vertical_pocket_family_office_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/lifecycle-stage-system.docblock.d.ts
4
+ declare const tech_lifecycle_stage_system_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_lifecycle_stage_system_DocBlocks };
@@ -0,0 +1,7 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/llm/llm-integration.docblock.d.ts
4
+
5
+ declare const tech_llm_integration_DocBlocks: DocBlock[];
6
+ //#endregion
7
+ export { tech_llm_integration_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/mcp-endpoints.docblock.d.ts
4
+ declare const tech_mcp_endpoints_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_mcp_endpoints_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/presentation-runtime.docblock.d.ts
4
+ declare const tech_presentation_runtime_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_presentation_runtime_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/schema/README.docblock.d.ts
4
+ declare const tech_schema_README_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_schema_README_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/studio/learning-events.docblock.d.ts
4
+ declare const tech_studio_learning_events_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_studio_learning_events_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/studio/learning-journeys.docblock.d.ts
4
+ declare const tech_studio_learning_journeys_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_studio_learning_journeys_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/studio/platform-admin-panel.docblock.d.ts
4
+ declare const tech_studio_platform_admin_panel_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_studio_platform_admin_panel_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/studio/project-access-teams.docblock.d.ts
4
+ declare const tech_studio_project_access_teams_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_studio_project_access_teams_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/studio/project-routing.docblock.d.ts
4
+ declare const tech_studio_project_routing_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_studio_project_routing_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/studio/sandbox-unlogged.docblock.d.ts
4
+ declare const tech_studio_sandbox_unlogged_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_studio_sandbox_unlogged_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/studio/team-invitations.docblock.d.ts
4
+ declare const tech_studio_team_invitations_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_studio_team_invitations_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/studio/workspace-ops.docblock.d.ts
4
+ declare const tech_studio_workspace_ops_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_studio_workspace_ops_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/studio/workspaces.docblock.d.ts
4
+ declare const tech_studio_workspaces_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_studio_workspaces_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/telemetry-ingest.docblock.d.ts
4
+ declare const tech_telemetry_ingest_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_telemetry_ingest_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/templates/runtime.docblock.d.ts
4
+ declare const tech_templates_runtime_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_templates_runtime_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/vscode-extension.docblock.d.ts
4
+ declare const tech_vscode_extension_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_vscode_extension_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/tech/workflows/overview.docblock.d.ts
4
+ declare const tech_workflows_overview_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_workflows_overview_DocBlocks };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "./types.js";
2
+
3
+ //#region src/docs/tech-contracts.docs.d.ts
4
+ declare const techContractsDocs: DocBlock[];
5
+ //#endregion
6
+ export { techContractsDocs };
@@ -0,0 +1,41 @@
1
+ import { Stability } from "../ownership.js";
2
+
3
+ //#region src/docs/types.d.ts
4
+ type DocVisibility = 'public' | 'internal' | 'mixed';
5
+ interface DocBlockLink {
6
+ label: string;
7
+ href: string;
8
+ }
9
+ type DocKind = 'goal' | 'how' | 'usage' | 'reference' | 'faq';
10
+ interface DocBlock {
11
+ /** Globally unique identifier (prefer dotted paths like docs.ops.runbook). */
12
+ id: string;
13
+ /** Short, human-readable title. */
14
+ title: string;
15
+ /** Markdown body (LLM- and human-readable). */
16
+ body: string;
17
+ /** Optional one-line summary used for meta.description. */
18
+ summary?: string;
19
+ /** Explicit route (e.g., /docs/ops/anomaly-detection). Falls back to id-derived route. */
20
+ route?: string;
21
+ /** Optional semantic grouping for filtering. */
22
+ kind?: DocKind;
23
+ /** Visibility gate. Defaults to public. */
24
+ visibility?: DocVisibility;
25
+ /** Optional version to allow evolutions without breaking links. Defaults to 1. */
26
+ version?: number;
27
+ /** Tags to aid discovery and filtering. */
28
+ tags?: string[];
29
+ /** Owning teams or individuals. */
30
+ owners?: string[];
31
+ /** Related contract/presentation identifiers. */
32
+ relatedSpecs?: string[];
33
+ /** External references or supporting links. */
34
+ links?: DocBlockLink[];
35
+ /** Domain or bounded context marker. */
36
+ domain?: string;
37
+ /** Stability marker to mirror presentation ownership semantics. */
38
+ stability?: Stability;
39
+ }
40
+ //#endregion
41
+ export { DocBlock, DocBlockLink, DocKind, DocVisibility };
@@ -0,0 +1,47 @@
1
+ import { OwnerShipMeta } from "./ownership.js";
2
+ import { DocId } from "./docs/registry.js";
3
+ import { AnySchemaModel } from "@lssm/lib.schema";
4
+
5
+ //#region src/events.d.ts
6
+
7
+ /**
8
+ * Typed event specification. Declare once, validate payloads at publish time,
9
+ * and guard emissions via the contracts runtime.
10
+ */
11
+ interface EventSpec<T extends AnySchemaModel> {
12
+ /** Fully-qualified event name, e.g. "sigil.magic_link.created". */
13
+ name: string;
14
+ /** Event payload version. Bump on any breaking payload change. */
15
+ version: number;
16
+ /** Short human-friendly summary. */
17
+ description?: string;
18
+ /** JSON-like paths to redact from logs/exports. */
19
+ pii?: string[];
20
+ /** Event payload schema from @lssm/lib.schema. */
21
+ payload: T;
22
+ /** Optional ownership metadata for governance and docs. */
23
+ ownership?: OwnerShipMeta;
24
+ /** Optional doc block id for this event. */
25
+ docId?: DocId;
26
+ }
27
+ /** Identity function to keep type inference when declaring events. */
28
+ declare function defineEvent<T extends AnySchemaModel>(e: EventSpec<T>): EventSpec<T>;
29
+ interface EventEnvelope<T> {
30
+ /** Unique identifier for the published event (UUID recommended). */
31
+ id: string;
32
+ /** ISO timestamp when the event occurred. */
33
+ occurredAt: string;
34
+ /** Optional trace identifier for correlating across services. */
35
+ traceId?: string;
36
+ /** Event name as published (should match spec.name). */
37
+ name: string;
38
+ /** Event version as published (should match spec.version). */
39
+ version: number;
40
+ /** Validated payload. */
41
+ payload: T;
42
+ }
43
+ type EventKey = `${string}.v${number}`;
44
+ /** Build a stable string key for an event name/version pair. */
45
+ declare const eventKey: (name: string, version: number) => EventKey;
46
+ //#endregion
47
+ export { EventEnvelope, EventKey, EventSpec, defineEvent, eventKey };
@@ -0,0 +1,6 @@
1
+ import { DocBlock } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/experiments/docs/experiments.docblock.d.ts
4
+ declare const tech_contracts_experiments_DocBlocks: DocBlock[];
5
+ //#endregion
6
+ export { tech_contracts_experiments_DocBlocks };
@@ -0,0 +1,37 @@
1
+ import { PolicyRef } from "../policy/spec.js";
2
+ import { ExperimentRegistry, ExperimentVariant } from "./spec.js";
3
+
4
+ //#region src/experiments/evaluator.d.ts
5
+ interface ExperimentContext {
6
+ experiment: string;
7
+ version?: number;
8
+ userId?: string | null;
9
+ organizationId?: string | null;
10
+ sessionId?: string | null;
11
+ attributes?: Record<string, unknown>;
12
+ flags?: string[];
13
+ }
14
+ interface ExperimentEvaluation {
15
+ variant: ExperimentVariant;
16
+ reason: 'control' | 'random' | 'sticky' | 'targeted';
17
+ }
18
+ interface ExperimentEvaluatorConfig {
19
+ registry: ExperimentRegistry;
20
+ policyChecker?: (policy: PolicyRef, context: ExperimentContext) => Promise<boolean> | boolean;
21
+ expressionEvaluator?: (expression: string, context: ExperimentContext) => boolean;
22
+ }
23
+ declare class ExperimentEvaluator {
24
+ private readonly registry;
25
+ private readonly policyChecker?;
26
+ private readonly expressionEvaluator?;
27
+ constructor(config: ExperimentEvaluatorConfig);
28
+ chooseVariant(context: ExperimentContext): Promise<ExperimentEvaluation | null>;
29
+ private pickByWeight;
30
+ private randomSeed;
31
+ private stickySeed;
32
+ private hashToUnitInterval;
33
+ private evaluateTargeting;
34
+ private matchesRule;
35
+ }
36
+ //#endregion
37
+ export { ExperimentContext, ExperimentEvaluation, ExperimentEvaluator, ExperimentEvaluatorConfig };