@lssm/lib.contracts 1.11.1 → 1.41.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.
Files changed (457) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/rolldown_runtime.js +1 -0
  3. package/dist/app-config/app-config.feature.js +1 -0
  4. package/dist/app-config/contracts.js +1 -1
  5. package/dist/app-config/docs/app-config.docblock.js +220 -0
  6. package/dist/app-config/events.js +1 -1
  7. package/dist/app-config/index.js +1 -1
  8. package/dist/app-config/lifecycle-contracts.js +1 -1
  9. package/dist/capabilities/docs/capabilities.docblock.js +1 -0
  10. package/dist/contract-registry/index.js +1 -0
  11. package/dist/contract-registry/schemas.js +1 -0
  12. package/dist/contract-registry/types.js +0 -0
  13. package/dist/data-views/docs/data-views.docblock.js +1 -0
  14. package/dist/docs/PUBLISHING.docblock.js +76 -0
  15. package/dist/docs/accessibility_wcag_compliance_specs.docblock.js +350 -0
  16. package/dist/docs/index.js +1 -0
  17. package/dist/docs/meta.docs.js +13 -0
  18. package/dist/docs/presentations.js +1 -0
  19. package/dist/docs/registry.js +1 -0
  20. package/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +383 -0
  21. package/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +68 -0
  22. package/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +140 -0
  23. package/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +86 -0
  24. package/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +1 -0
  25. package/dist/docs/tech/auth/better-auth-nextjs.docblock.js +58 -0
  26. package/dist/docs/tech/contracts/README.docblock.js +1 -0
  27. package/dist/docs/tech/contracts/create-subscription.docblock.js +1 -0
  28. package/dist/docs/tech/contracts/graphql-typed-outputs.docblock.js +180 -0
  29. package/dist/docs/tech/contracts/migrations.docblock.js +1 -0
  30. package/dist/docs/tech/contracts/openapi-export.docblock.js +38 -0
  31. package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.js +62 -0
  32. package/dist/docs/tech/contracts/overlays.docblock.js +68 -0
  33. package/dist/docs/tech/contracts/tests.docblock.js +132 -0
  34. package/dist/docs/tech/contracts/themes.docblock.js +1 -0
  35. package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.js +106 -0
  36. package/dist/docs/tech/lifecycle-stage-system.docblock.js +213 -0
  37. package/dist/docs/tech/llm/llm-integration.docblock.js +289 -0
  38. package/dist/docs/tech/mcp-endpoints.docblock.js +1 -0
  39. package/dist/docs/tech/presentation-runtime.docblock.js +1 -0
  40. package/dist/docs/tech/schema/README.docblock.js +262 -0
  41. package/dist/docs/tech/studio/learning-events.docblock.js +1 -0
  42. package/dist/docs/tech/studio/learning-journeys.docblock.js +57 -0
  43. package/dist/docs/tech/studio/platform-admin-panel.docblock.js +63 -0
  44. package/dist/docs/tech/studio/project-access-teams.docblock.js +36 -0
  45. package/dist/docs/tech/studio/project-routing.docblock.js +1 -0
  46. package/dist/docs/tech/studio/sandbox-unlogged.docblock.js +20 -0
  47. package/dist/docs/tech/studio/team-invitations.docblock.js +65 -0
  48. package/dist/docs/tech/studio/workspace-ops.docblock.js +1 -0
  49. package/dist/docs/tech/studio/workspaces.docblock.js +41 -0
  50. package/dist/docs/tech/telemetry-ingest.docblock.js +122 -0
  51. package/dist/docs/tech/templates/runtime.docblock.js +1 -0
  52. package/dist/docs/tech/vscode-extension.docblock.js +68 -0
  53. package/dist/docs/tech/workflows/overview.docblock.js +1 -0
  54. package/dist/docs/tech-contracts.docs.js +76 -0
  55. package/dist/docs/types.js +0 -0
  56. package/dist/events.js +1 -1
  57. package/dist/experiments/docs/experiments.docblock.js +128 -0
  58. package/dist/forms/docs/forms.docblock.js +1 -0
  59. package/dist/index.js +1 -1
  60. package/dist/install.js +1 -1
  61. package/dist/integrations/contracts.js +1 -1
  62. package/dist/integrations/docs/integrations.docblock.js +1 -0
  63. package/dist/integrations/index.js +1 -1
  64. package/dist/integrations/openbanking/contracts/accounts.js +1 -1
  65. package/dist/integrations/openbanking/contracts/balances.js +1 -1
  66. package/dist/integrations/openbanking/contracts/index.js +1 -1
  67. package/dist/integrations/openbanking/contracts/transactions.js +1 -1
  68. package/dist/integrations/openbanking/models.js +1 -1
  69. package/dist/integrations/openbanking/openbanking.feature.js +1 -0
  70. package/dist/integrations/providers/impls/index.js +1 -1
  71. package/dist/integrations/providers/impls/provider-factory.js +1 -1
  72. package/dist/integrations/providers/index.js +1 -1
  73. package/dist/integrations/providers/registry.js +1 -0
  74. package/dist/integrations/secrets/aws-secret-manager.js +1 -0
  75. package/dist/integrations/secrets/gcp-secret-manager.js +1 -1
  76. package/dist/integrations/secrets/index.js +1 -1
  77. package/dist/integrations/secrets/scaleway-secret-manager.js +1 -0
  78. package/dist/jobs/define-job.js +1 -0
  79. package/dist/jobs/gcp-cloud-tasks.js +1 -1
  80. package/dist/jobs/gcp-pubsub.js +1 -1
  81. package/dist/jobs/handlers/index.js +1 -1
  82. package/dist/jobs/handlers/ping-handler.js +1 -0
  83. package/dist/jobs/index.js +1 -1
  84. package/dist/jobs/memory-queue.js +1 -1
  85. package/dist/jobs/queue.js +1 -0
  86. package/dist/jobs/scaleway-sqs-queue.js +1 -0
  87. package/dist/knowledge/contracts.js +1 -1
  88. package/dist/knowledge/docs/knowledge.docblock.js +138 -0
  89. package/dist/llm/exporters.js +8 -0
  90. package/dist/llm/index.js +1 -0
  91. package/dist/llm/prompts.js +220 -0
  92. package/dist/llm/types.js +0 -0
  93. package/dist/node_modules/@pothos/plugin-complexity/esm/calculate-complexity.js +1 -0
  94. package/dist/node_modules/@pothos/plugin-complexity/esm/defaults.js +1 -0
  95. package/dist/node_modules/@pothos/plugin-complexity/esm/index.js +1 -0
  96. package/dist/node_modules/@pothos/plugin-complexity/esm/types.js +1 -0
  97. package/dist/node_modules/@pothos/plugin-complexity/esm/util.js +1 -0
  98. package/dist/node_modules/@pothos/plugin-complexity/esm/validator.js +1 -0
  99. package/dist/node_modules/@pothos/plugin-dataloader/esm/field-builder.js +1 -0
  100. package/dist/node_modules/@pothos/plugin-dataloader/esm/index.js +1 -0
  101. package/dist/node_modules/@pothos/plugin-dataloader/esm/refs/index.js +1 -0
  102. package/dist/node_modules/@pothos/plugin-dataloader/esm/refs/interface.js +1 -0
  103. package/dist/node_modules/@pothos/plugin-dataloader/esm/refs/node.js +1 -0
  104. package/dist/node_modules/@pothos/plugin-dataloader/esm/refs/object.js +1 -0
  105. package/dist/node_modules/@pothos/plugin-dataloader/esm/refs/union.js +1 -0
  106. package/dist/node_modules/@pothos/plugin-dataloader/esm/schema-builder.js +1 -0
  107. package/dist/node_modules/@pothos/plugin-dataloader/esm/util.js +1 -0
  108. package/dist/node_modules/@pothos/plugin-prisma/esm/connection-helpers.js +1 -0
  109. package/dist/node_modules/@pothos/plugin-prisma/esm/field-builder.js +1 -0
  110. package/dist/node_modules/@pothos/plugin-prisma/esm/index.js +1 -0
  111. package/dist/node_modules/@pothos/plugin-prisma/esm/interface-ref.js +1 -0
  112. package/dist/node_modules/@pothos/plugin-prisma/esm/model-loader.js +1 -0
  113. package/dist/node_modules/@pothos/plugin-prisma/esm/node-ref.js +1 -0
  114. package/dist/node_modules/@pothos/plugin-prisma/esm/object-ref.js +1 -0
  115. package/dist/node_modules/@pothos/plugin-prisma/esm/prisma-field-builder.js +1 -0
  116. package/dist/node_modules/@pothos/plugin-prisma/esm/schema-builder.js +1 -0
  117. package/dist/node_modules/@pothos/plugin-prisma/esm/types.js +0 -0
  118. package/dist/node_modules/@pothos/plugin-prisma/esm/util/cursors.js +1 -0
  119. package/dist/node_modules/@pothos/plugin-prisma/esm/util/datamodel.js +1 -0
  120. package/dist/node_modules/@pothos/plugin-prisma/esm/util/deep-equal.js +1 -0
  121. package/dist/node_modules/@pothos/plugin-prisma/esm/util/description.js +1 -0
  122. package/dist/node_modules/@pothos/plugin-prisma/esm/util/get-client.js +1 -0
  123. package/dist/node_modules/@pothos/plugin-prisma/esm/util/loader-map.js +1 -0
  124. package/dist/node_modules/@pothos/plugin-prisma/esm/util/map-query.js +1 -0
  125. package/dist/node_modules/@pothos/plugin-prisma/esm/util/relation-map.js +1 -0
  126. package/dist/node_modules/@pothos/plugin-prisma/esm/util/selections.js +1 -0
  127. package/dist/node_modules/@pothos/plugin-prisma/esm/util/usage.js +1 -0
  128. package/dist/node_modules/@pothos/plugin-tracing/esm/index.js +1 -0
  129. package/dist/node_modules/@pothos/plugin-tracing/esm/util.js +1 -0
  130. package/dist/node_modules/dataloader/index.js +7 -0
  131. package/dist/node_modules/graphql/error/GraphQLError.js +5 -0
  132. package/dist/node_modules/graphql/error/index.js +1 -0
  133. package/dist/node_modules/graphql/error/locatedError.js +1 -0
  134. package/dist/node_modules/graphql/error/syntaxError.js +1 -0
  135. package/dist/node_modules/graphql/execution/collectFields.js +1 -0
  136. package/dist/node_modules/graphql/execution/execute.js +1 -0
  137. package/dist/node_modules/graphql/execution/index.js +1 -0
  138. package/dist/node_modules/graphql/execution/mapAsyncIterator.js +1 -0
  139. package/dist/node_modules/graphql/execution/subscribe.js +1 -0
  140. package/dist/node_modules/graphql/execution/values.js +1 -0
  141. package/dist/node_modules/graphql/graphql.js +1 -0
  142. package/dist/node_modules/graphql/index.js +1 -0
  143. package/dist/node_modules/graphql/jsutils/Path.js +1 -0
  144. package/dist/node_modules/graphql/jsutils/devAssert.js +1 -0
  145. package/dist/node_modules/graphql/jsutils/didYouMean.js +1 -0
  146. package/dist/node_modules/graphql/jsutils/groupBy.js +1 -0
  147. package/dist/node_modules/graphql/jsutils/identityFunc.js +1 -0
  148. package/dist/node_modules/graphql/jsutils/inspect.js +1 -0
  149. package/dist/node_modules/graphql/jsutils/instanceOf.js +12 -0
  150. package/dist/node_modules/graphql/jsutils/invariant.js +1 -0
  151. package/dist/node_modules/graphql/jsutils/isAsyncIterable.js +1 -0
  152. package/dist/node_modules/graphql/jsutils/isIterableObject.js +1 -0
  153. package/dist/node_modules/graphql/jsutils/isObjectLike.js +1 -0
  154. package/dist/node_modules/graphql/jsutils/isPromise.js +1 -0
  155. package/dist/node_modules/graphql/jsutils/keyMap.js +1 -0
  156. package/dist/node_modules/graphql/jsutils/keyValMap.js +1 -0
  157. package/dist/node_modules/graphql/jsutils/mapValue.js +1 -0
  158. package/dist/node_modules/graphql/jsutils/memoize3.js +1 -0
  159. package/dist/node_modules/graphql/jsutils/naturalCompare.js +1 -0
  160. package/dist/node_modules/graphql/jsutils/printPathArray.js +1 -0
  161. package/dist/node_modules/graphql/jsutils/promiseForObject.js +1 -0
  162. package/dist/node_modules/graphql/jsutils/promiseReduce.js +1 -0
  163. package/dist/node_modules/graphql/jsutils/suggestionList.js +1 -0
  164. package/dist/node_modules/graphql/jsutils/toError.js +1 -0
  165. package/dist/node_modules/graphql/jsutils/toObjMap.js +1 -0
  166. package/dist/node_modules/graphql/language/ast.js +1 -0
  167. package/dist/node_modules/graphql/language/blockString.js +3 -0
  168. package/dist/node_modules/graphql/language/characterClasses.js +1 -0
  169. package/dist/node_modules/graphql/language/directiveLocation.js +1 -0
  170. package/dist/node_modules/graphql/language/index.js +1 -0
  171. package/dist/node_modules/graphql/language/kinds.js +1 -0
  172. package/dist/node_modules/graphql/language/lexer.js +3 -0
  173. package/dist/node_modules/graphql/language/location.js +1 -0
  174. package/dist/node_modules/graphql/language/parser.js +1 -0
  175. package/dist/node_modules/graphql/language/predicates.js +1 -0
  176. package/dist/node_modules/graphql/language/printLocation.js +2 -0
  177. package/dist/node_modules/graphql/language/printString.js +1 -0
  178. package/dist/node_modules/graphql/language/printer.js +34 -0
  179. package/dist/node_modules/graphql/language/schemaCoordinateLexer.js +1 -0
  180. package/dist/node_modules/graphql/language/source.js +1 -0
  181. package/dist/node_modules/graphql/language/tokenKind.js +1 -0
  182. package/dist/node_modules/graphql/language/visitor.js +1 -0
  183. package/dist/node_modules/graphql/type/assertName.js +1 -0
  184. package/dist/node_modules/graphql/type/definition.js +1 -0
  185. package/dist/node_modules/graphql/type/directives.js +1 -0
  186. package/dist/node_modules/graphql/type/index.js +1 -0
  187. package/dist/node_modules/graphql/type/introspection.js +3 -0
  188. package/dist/node_modules/graphql/type/scalars.js +1 -0
  189. package/dist/node_modules/graphql/type/schema.js +1 -0
  190. package/dist/node_modules/graphql/type/validate.js +3 -0
  191. package/dist/node_modules/graphql/utilities/TypeInfo.js +1 -0
  192. package/dist/node_modules/graphql/utilities/assertValidName.js +1 -0
  193. package/dist/node_modules/graphql/utilities/astFromValue.js +1 -0
  194. package/dist/node_modules/graphql/utilities/buildASTSchema.js +1 -0
  195. package/dist/node_modules/graphql/utilities/buildClientSchema.js +1 -0
  196. package/dist/node_modules/graphql/utilities/coerceInputValue.js +1 -0
  197. package/dist/node_modules/graphql/utilities/concatAST.js +1 -0
  198. package/dist/node_modules/graphql/utilities/extendSchema.js +1 -0
  199. package/dist/node_modules/graphql/utilities/findBreakingChanges.js +1 -0
  200. package/dist/node_modules/graphql/utilities/getIntrospectionQuery.js +107 -0
  201. package/dist/node_modules/graphql/utilities/getOperationAST.js +1 -0
  202. package/dist/node_modules/graphql/utilities/getOperationRootType.js +1 -0
  203. package/dist/node_modules/graphql/utilities/index.js +1 -0
  204. package/dist/node_modules/graphql/utilities/introspectionFromSchema.js +1 -0
  205. package/dist/node_modules/graphql/utilities/lexicographicSortSchema.js +1 -0
  206. package/dist/node_modules/graphql/utilities/printSchema.js +13 -0
  207. package/dist/node_modules/graphql/utilities/resolveSchemaCoordinate.js +1 -0
  208. package/dist/node_modules/graphql/utilities/separateOperations.js +1 -0
  209. package/dist/node_modules/graphql/utilities/sortValueNode.js +1 -0
  210. package/dist/node_modules/graphql/utilities/stripIgnoredCharacters.js +1 -0
  211. package/dist/node_modules/graphql/utilities/typeComparators.js +1 -0
  212. package/dist/node_modules/graphql/utilities/typeFromAST.js +1 -0
  213. package/dist/node_modules/graphql/utilities/valueFromAST.js +1 -0
  214. package/dist/node_modules/graphql/utilities/valueFromASTUntyped.js +1 -0
  215. package/dist/node_modules/graphql/validation/ValidationContext.js +1 -0
  216. package/dist/node_modules/graphql/validation/index.js +1 -0
  217. package/dist/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js +1 -0
  218. package/dist/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js +1 -0
  219. package/dist/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js +1 -0
  220. package/dist/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js +1 -0
  221. package/dist/node_modules/graphql/validation/rules/KnownDirectivesRule.js +1 -0
  222. package/dist/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js +1 -0
  223. package/dist/node_modules/graphql/validation/rules/KnownTypeNamesRule.js +1 -0
  224. package/dist/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js +1 -0
  225. package/dist/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js +1 -0
  226. package/dist/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js +1 -0
  227. package/dist/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js +1 -0
  228. package/dist/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js +1 -0
  229. package/dist/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js +1 -0
  230. package/dist/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js +1 -0
  231. package/dist/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js +1 -0
  232. package/dist/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js +1 -0
  233. package/dist/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js +1 -0
  234. package/dist/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js +1 -0
  235. package/dist/node_modules/graphql/validation/rules/ScalarLeafsRule.js +1 -0
  236. package/dist/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js +1 -0
  237. package/dist/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js +1 -0
  238. package/dist/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js +1 -0
  239. package/dist/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js +1 -0
  240. package/dist/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +1 -0
  241. package/dist/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js +1 -0
  242. package/dist/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js +1 -0
  243. package/dist/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js +1 -0
  244. package/dist/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js +1 -0
  245. package/dist/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js +1 -0
  246. package/dist/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js +1 -0
  247. package/dist/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js +1 -0
  248. package/dist/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js +1 -0
  249. package/dist/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js +1 -0
  250. package/dist/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js +1 -0
  251. package/dist/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js +1 -0
  252. package/dist/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.js +1 -0
  253. package/dist/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js +1 -0
  254. package/dist/node_modules/graphql/validation/specifiedRules.js +1 -0
  255. package/dist/node_modules/graphql/validation/validate.js +5 -0
  256. package/dist/node_modules/graphql/version.js +1 -0
  257. package/dist/onboarding-base.js +1 -1
  258. package/dist/openapi.js +1 -0
  259. package/dist/openbanking/docs/openbanking.docblock.js +109 -0
  260. package/dist/policy/docs/policy.docblock.js +1 -0
  261. package/dist/presentations/docs/presentations-conventions.docblock.js +8 -0
  262. package/dist/presentations.js +1 -1
  263. package/dist/presentations.v2.js +7 -1
  264. package/dist/prompt.js +1 -1
  265. package/dist/promptRegistry.js +1 -1
  266. package/dist/regenerator/docs/regenerator.docblock.js +184 -0
  267. package/dist/registry.js +1 -1
  268. package/dist/resources.js +1 -1
  269. package/dist/schema-to-markdown.js +10 -0
  270. package/dist/server/graphql-pothos.js +1 -1
  271. package/dist/server/index.js +1 -1
  272. package/dist/server/mcp/createMcpServer.js +1 -0
  273. package/dist/server/mcp/mcpTypes.js +0 -0
  274. package/dist/server/mcp/registerPresentations.js +1 -0
  275. package/dist/server/mcp/registerPrompts.js +3 -0
  276. package/dist/server/mcp/registerResources.js +1 -0
  277. package/dist/server/mcp/registerTools.js +1 -0
  278. package/dist/server/provider-mcp.js +1 -1
  279. package/dist/telemetry/docs/telemetry.docblock.js +139 -0
  280. package/package.json +353 -193
  281. package/dist/app-config/branding.d.ts +0 -55
  282. package/dist/app-config/contracts.d.ts +0 -244
  283. package/dist/app-config/events.d.ts +0 -122
  284. package/dist/app-config/index.d.ts +0 -8
  285. package/dist/app-config/lifecycle-contracts.d.ts +0 -382
  286. package/dist/app-config/lifecycle.d.ts +0 -27
  287. package/dist/app-config/runtime.d.ts +0 -114
  288. package/dist/app-config/spec.d.ts +0 -175
  289. package/dist/app-config/validation.d.ts +0 -47
  290. package/dist/capabilities/openbanking.d.ts +0 -9
  291. package/dist/capabilities.d.ts +0 -45
  292. package/dist/client/index.d.ts +0 -6
  293. package/dist/client/react/drivers/rn-reusables.d.ts +0 -22
  294. package/dist/client/react/drivers/shadcn.d.ts +0 -12
  295. package/dist/client/react/feature-render.d.ts +0 -20
  296. package/dist/client/react/form-render.d.ts +0 -91
  297. package/dist/client/react/index.d.ts +0 -5
  298. package/dist/contracts-adapter-hydration.d.ts +0 -15
  299. package/dist/contracts-adapter-input.d.ts +0 -10
  300. package/dist/data-views/query-generator.d.ts +0 -39
  301. package/dist/data-views/runtime.d.ts +0 -26
  302. package/dist/data-views.d.ts +0 -131
  303. package/dist/events.d.ts +0 -44
  304. package/dist/experiments/evaluator.d.ts +0 -37
  305. package/dist/experiments/spec-resolver.d.ts +0 -16
  306. package/dist/experiments/spec.d.ts +0 -89
  307. package/dist/features.d.ts +0 -87
  308. package/dist/forms.d.ts +0 -258
  309. package/dist/graphql-federation/dist/index.js +0 -1
  310. package/dist/index.d.ts +0 -130
  311. package/dist/install.d.ts +0 -76
  312. package/dist/integrations/binding.d.ts +0 -17
  313. package/dist/integrations/connection.d.ts +0 -51
  314. package/dist/integrations/contracts.d.ts +0 -435
  315. package/dist/integrations/health.d.ts +0 -21
  316. package/dist/integrations/index.d.ts +0 -53
  317. package/dist/integrations/openbanking/contracts/accounts.d.ts +0 -287
  318. package/dist/integrations/openbanking/contracts/balances.d.ts +0 -163
  319. package/dist/integrations/openbanking/contracts/index.d.ts +0 -9
  320. package/dist/integrations/openbanking/contracts/transactions.d.ts +0 -211
  321. package/dist/integrations/openbanking/guards.d.ts +0 -12
  322. package/dist/integrations/openbanking/models.d.ts +0 -228
  323. package/dist/integrations/openbanking/telemetry.d.ts +0 -15
  324. package/dist/integrations/providers/calendar.d.ts +0 -78
  325. package/dist/integrations/providers/elevenlabs.d.ts +0 -7
  326. package/dist/integrations/providers/email.d.ts +0 -86
  327. package/dist/integrations/providers/embedding.d.ts +0 -24
  328. package/dist/integrations/providers/gcs-storage.d.ts +0 -7
  329. package/dist/integrations/providers/gmail.d.ts +0 -7
  330. package/dist/integrations/providers/google-calendar.d.ts +0 -7
  331. package/dist/integrations/providers/impls/elevenlabs-voice.d.ts +0 -20
  332. package/dist/integrations/providers/impls/gcs-storage.d.ts +0 -24
  333. package/dist/integrations/providers/impls/gmail-inbound.d.ts +0 -26
  334. package/dist/integrations/providers/impls/gmail-outbound.d.ts +0 -18
  335. package/dist/integrations/providers/impls/google-calendar.d.ts +0 -23
  336. package/dist/integrations/providers/impls/index.d.ts +0 -15
  337. package/dist/integrations/providers/impls/mistral-embedding.d.ts +0 -23
  338. package/dist/integrations/providers/impls/mistral-llm.d.ts +0 -31
  339. package/dist/integrations/providers/impls/postmark-email.d.ts +0 -19
  340. package/dist/integrations/providers/impls/powens-client.d.ts +0 -124
  341. package/dist/integrations/providers/impls/powens-openbanking.d.ts +0 -27
  342. package/dist/integrations/providers/impls/provider-factory.d.ts +0 -26
  343. package/dist/integrations/providers/impls/qdrant-vector.d.ts +0 -24
  344. package/dist/integrations/providers/impls/stripe-payments.d.ts +0 -28
  345. package/dist/integrations/providers/impls/twilio-sms.d.ts +0 -20
  346. package/dist/integrations/providers/index.d.ts +0 -36
  347. package/dist/integrations/providers/llm.d.ts +0 -82
  348. package/dist/integrations/providers/mistral.d.ts +0 -7
  349. package/dist/integrations/providers/openbanking.d.ts +0 -128
  350. package/dist/integrations/providers/payments.d.ts +0 -109
  351. package/dist/integrations/providers/postmark.d.ts +0 -7
  352. package/dist/integrations/providers/powens.d.ts +0 -7
  353. package/dist/integrations/providers/qdrant.d.ts +0 -7
  354. package/dist/integrations/providers/sms.d.ts +0 -34
  355. package/dist/integrations/providers/storage.d.ts +0 -60
  356. package/dist/integrations/providers/stripe.d.ts +0 -7
  357. package/dist/integrations/providers/twilio-sms.d.ts +0 -7
  358. package/dist/integrations/providers/vector-store.d.ts +0 -43
  359. package/dist/integrations/providers/voice.d.ts +0 -34
  360. package/dist/integrations/runtime.d.ts +0 -99
  361. package/dist/integrations/secrets/env-secret-provider.d.ts +0 -31
  362. package/dist/integrations/secrets/gcp-secret-manager.d.ts +0 -32
  363. package/dist/integrations/secrets/index.d.ts +0 -5
  364. package/dist/integrations/secrets/manager.d.ts +0 -47
  365. package/dist/integrations/secrets/provider.d.ts +0 -52
  366. package/dist/integrations/spec.d.ts +0 -79
  367. package/dist/jobs/gcp-cloud-tasks.d.ts +0 -41
  368. package/dist/jobs/gcp-pubsub.d.ts +0 -25
  369. package/dist/jobs/handlers/gmail-sync-handler.d.ts +0 -9
  370. package/dist/jobs/handlers/index.d.ts +0 -3
  371. package/dist/jobs/handlers/storage-document-handler.d.ts +0 -12
  372. package/dist/jobs/index.d.ts +0 -7
  373. package/dist/jobs/memory-queue.d.ts +0 -18
  374. package/dist/jobs/queue.d.ts +0 -26
  375. package/dist/jsonschema.d.ts +0 -26
  376. package/dist/knowledge/binding.d.ts +0 -25
  377. package/dist/knowledge/contracts.d.ts +0 -316
  378. package/dist/knowledge/index.d.ts +0 -10
  379. package/dist/knowledge/ingestion/document-processor.d.ts +0 -24
  380. package/dist/knowledge/ingestion/embedding-service.d.ts +0 -12
  381. package/dist/knowledge/ingestion/gmail-adapter.d.ts +0 -18
  382. package/dist/knowledge/ingestion/index.d.ts +0 -6
  383. package/dist/knowledge/ingestion/storage-adapter.d.ts +0 -15
  384. package/dist/knowledge/ingestion/vector-indexer.d.ts +0 -18
  385. package/dist/knowledge/query/index.d.ts +0 -2
  386. package/dist/knowledge/query/service.d.ts +0 -29
  387. package/dist/knowledge/runtime.d.ts +0 -32
  388. package/dist/knowledge/source.d.ts +0 -32
  389. package/dist/knowledge/spaces/email-threads.d.ts +0 -7
  390. package/dist/knowledge/spaces/financial-docs.d.ts +0 -7
  391. package/dist/knowledge/spaces/financial-overview.d.ts +0 -7
  392. package/dist/knowledge/spaces/index.d.ts +0 -7
  393. package/dist/knowledge/spaces/product-canon.d.ts +0 -7
  394. package/dist/knowledge/spaces/support-faq.d.ts +0 -7
  395. package/dist/knowledge/spaces/uploaded-docs.d.ts +0 -7
  396. package/dist/knowledge/spec.d.ts +0 -52
  397. package/dist/markdown.d.ts +0 -21
  398. package/dist/migrations.d.ts +0 -52
  399. package/dist/onboarding-base.d.ts +0 -137
  400. package/dist/ownership.d.ts +0 -75
  401. package/dist/policy/engine.d.ts +0 -39
  402. package/dist/policy/opa-adapter.d.ts +0 -45
  403. package/dist/policy/spec.d.ts +0 -114
  404. package/dist/presentations.backcompat.d.ts +0 -7
  405. package/dist/presentations.d.ts +0 -96
  406. package/dist/presentations.v2.d.ts +0 -95
  407. package/dist/prompt.d.ts +0 -60
  408. package/dist/promptRegistry.d.ts +0 -15
  409. package/dist/regenerator/adapters.d.ts +0 -19
  410. package/dist/regenerator/executor.d.ts +0 -70
  411. package/dist/regenerator/index.d.ts +0 -7
  412. package/dist/regenerator/service.d.ts +0 -33
  413. package/dist/regenerator/sinks.d.ts +0 -26
  414. package/dist/regenerator/types.d.ts +0 -107
  415. package/dist/regenerator/utils.d.ts +0 -9
  416. package/dist/registry.d.ts +0 -72
  417. package/dist/resources.d.ts +0 -64
  418. package/dist/schema/dist/EnumType.js +0 -1
  419. package/dist/schema/dist/FieldType.js +0 -1
  420. package/dist/schema/dist/ScalarTypeEnum.js +0 -1
  421. package/dist/schema/dist/SchemaModel.js +0 -1
  422. package/dist/schema/dist/index.js +0 -1
  423. package/dist/server/graphql-pothos.d.ts +0 -31
  424. package/dist/server/graphql-schema-export.d.ts +0 -6
  425. package/dist/server/graphql-schema-export.js +0 -1
  426. package/dist/server/index.d.ts +0 -9
  427. package/dist/server/provider-mcp.d.ts +0 -51
  428. package/dist/server/rest-elysia.d.ts +0 -40
  429. package/dist/server/rest-express.d.ts +0 -16
  430. package/dist/server/rest-generic.d.ts +0 -32
  431. package/dist/server/rest-next-app.d.ts +0 -35
  432. package/dist/server/rest-next-mcp.d.ts +0 -11
  433. package/dist/server/rest-next-pages.d.ts +0 -9
  434. package/dist/spec.d.ts +0 -171
  435. package/dist/telemetry/anomaly.d.ts +0 -27
  436. package/dist/telemetry/index.d.ts +0 -4
  437. package/dist/telemetry/spec.d.ts +0 -98
  438. package/dist/telemetry/tracker.d.ts +0 -51
  439. package/dist/tests/index.d.ts +0 -3
  440. package/dist/tests/runner.d.ts +0 -43
  441. package/dist/tests/spec.d.ts +0 -89
  442. package/dist/themes.d.ts +0 -55
  443. package/dist/translations/catalog.d.ts +0 -28
  444. package/dist/translations/tenant.d.ts +0 -15
  445. package/dist/types/all.d.ts +0 -60
  446. package/dist/types.d.ts +0 -88
  447. package/dist/workflow/adapters/db-adapter.d.ts +0 -34
  448. package/dist/workflow/adapters/file-adapter.d.ts +0 -14
  449. package/dist/workflow/adapters/index.d.ts +0 -4
  450. package/dist/workflow/adapters/memory-store.d.ts +0 -18
  451. package/dist/workflow/expression.d.ts +0 -9
  452. package/dist/workflow/index.d.ts +0 -10
  453. package/dist/workflow/runner.d.ts +0 -74
  454. package/dist/workflow/sla-monitor.d.ts +0 -20
  455. package/dist/workflow/spec.d.ts +0 -99
  456. package/dist/workflow/state.d.ts +0 -35
  457. package/dist/workflow/validation.d.ts +0 -28
@@ -1,95 +0,0 @@
1
- import { OwnerShipMeta } from "./ownership.js";
2
- import { AnySchemaModel } from "@lssm/lib.schema";
3
- import { BlockConfig } from "@blocknote/core";
4
-
5
- //#region src/presentations.v2.d.ts
6
- /** Supported render targets for the transform engine and descriptors. */
7
- type PresentationTarget = 'react' | 'markdown' | 'application/json' | 'application/xml';
8
- interface PresentationV2Meta extends Partial<OwnerShipMeta> {
9
- /** Fully-qualified presentation name (e.g., "sigil.auth.webauth_tabs_v2"). */
10
- name: string;
11
- /** Version of this descriptor. Increment on breaking changes. */
12
- version: number;
13
- /** Human-readable description for docs/a11y. Required by validators. */
14
- description?: string;
15
- }
16
- /** React component presentation source. */
17
- interface PresentationSourceComponentReact {
18
- /** Source marker for React component presentations. */
19
- type: 'component';
20
- /** Framework for the component source (currently only 'react'). */
21
- framework: 'react';
22
- /** Component key resolved by host `componentMap`. */
23
- componentKey: string;
24
- /** Optional props schema to validate against. */
25
- props?: AnySchemaModel;
26
- }
27
- /** BlockNoteJS document presentation source. */
28
- interface PresentationSourceBlocknotejs {
29
- /** Source marker for BlockNoteJS document presentations. */
30
- type: 'blocknotejs';
31
- /** BlockNoteJS JSON document. */
32
- docJson: unknown;
33
- /** Optional BlockNote config to guide rendering. */
34
- blockConfig?: BlockConfig;
35
- }
36
- type PresentationSource = PresentationSourceComponentReact | PresentationSourceBlocknotejs;
37
- /**
38
- * Normalized presentation descriptor decoupled from framework/adapters.
39
- * Renderers and validators are provided via TransformEngine.
40
- */
41
- interface PresentationDescriptorV2 {
42
- meta: PresentationV2Meta;
43
- policy?: {
44
- flags?: string[];
45
- pii?: string[];
46
- };
47
- source: PresentationSource;
48
- targets: PresentationTarget[];
49
- }
50
- interface RenderContext {
51
- /** Optional locale hint (i18n). */
52
- locale?: string;
53
- /** Enabled feature flags to drive conditional rendering. */
54
- featureFlags?: string[];
55
- /** Redaction hook for custom PII handling. */
56
- redact?: (path: string, value: unknown) => unknown;
57
- }
58
- interface PresentationRenderer<TOut> {
59
- target: PresentationTarget;
60
- render: (desc: PresentationDescriptorV2, ctx?: RenderContext) => Promise<TOut>;
61
- }
62
- interface PresentationValidator {
63
- validate: (desc: PresentationDescriptorV2, target: PresentationTarget, ctx?: RenderContext) => Promise<void> | void;
64
- }
65
- /**
66
- * Pluggable transform engine that renders descriptors to various targets
67
- * and runs validators (e.g., basic metadata checks, PII redaction policies).
68
- */
69
- declare class TransformEngine {
70
- private renderers;
71
- private validators;
72
- register<TOut>(renderer: PresentationRenderer<TOut>): this;
73
- addValidator(v: PresentationValidator): this;
74
- render<TOut = unknown>(target: PresentationTarget, desc: PresentationDescriptorV2, ctx?: RenderContext): Promise<TOut>;
75
- }
76
- /** Create a TransformEngine instance with default markdown/json/xml renderers. */
77
- declare function createDefaultTransformEngine(): TransformEngine;
78
- /** Serializable render descriptor for React hosts. */
79
- type ReactRenderDescriptor = {
80
- kind: 'react_component';
81
- componentKey: string;
82
- props?: Record<string, unknown>;
83
- } | {
84
- kind: 'blocknotejs';
85
- docJson: unknown;
86
- blockConfig?: BlockConfig;
87
- };
88
- /** Register a default React target renderer that returns a serializable descriptor. */
89
- declare function registerDefaultReactRenderer(engine: TransformEngine): TransformEngine;
90
- /**
91
- * Add basic validators (e.g., meta.description presence) to the engine.
92
- */
93
- declare function registerBasicValidation(engine: TransformEngine): TransformEngine;
94
- //#endregion
95
- export { PresentationDescriptorV2, PresentationRenderer, PresentationSource, PresentationSourceBlocknotejs, PresentationSourceComponentReact, PresentationTarget, PresentationV2Meta, PresentationValidator, ReactRenderDescriptor, RenderContext, TransformEngine, createDefaultTransformEngine, registerBasicValidation, registerDefaultReactRenderer };
package/dist/prompt.d.ts DELETED
@@ -1,60 +0,0 @@
1
- import { z } from "zod";
2
-
3
- //#region src/prompt.d.ts
4
- type PromptStability = 'experimental' | 'beta' | 'stable' | 'deprecated';
5
- /** Parameter definition for a prompt argument. */
6
- interface PromptArg {
7
- name: string;
8
- description?: string;
9
- required?: boolean;
10
- schema: z.ZodType;
11
- completeWith?: string;
12
- }
13
- /**
14
- * Rendered content part for a prompt. Clients (MCP) can fetch referenced resources.
15
- */
16
- type PromptContentPart = {
17
- type: 'text';
18
- text: string;
19
- } | {
20
- type: 'resource';
21
- uri: string;
22
- title?: string;
23
- };
24
- /** Prompt metadata for discoverability and governance. */
25
- interface PromptMeta {
26
- name: string;
27
- version: number;
28
- title: string;
29
- description: string;
30
- tags?: string[];
31
- stability?: PromptStability;
32
- owners?: string[];
33
- }
34
- /** Policy constraints for prompts (flags, PII paths, rate limits). */
35
- interface PromptPolicy {
36
- flags?: string[];
37
- pii?: string[];
38
- rateLimit?: {
39
- rpm: number;
40
- key: 'user' | 'org' | 'global';
41
- };
42
- }
43
- /** Full prompt specification including args schema and render function. */
44
- interface PromptSpec<I extends z.ZodType> {
45
- meta: PromptMeta;
46
- args: PromptArg[];
47
- input: I;
48
- policy?: PromptPolicy;
49
- /** Render MCP-friendly content parts. DO NOT perform side effects here. */
50
- render: (args: z.infer<I>, ctx: {
51
- userId?: string | null;
52
- orgId?: string | null;
53
- locale?: string;
54
- link: (template: string, vars: Record<string, string | number>) => string;
55
- }) => Promise<PromptContentPart[]>;
56
- }
57
- /** Identity helper that preserves generic inference when declaring prompts. */
58
- declare function definePrompt<I extends z.ZodType>(spec: PromptSpec<I>): PromptSpec<I>;
59
- //#endregion
60
- export { PromptArg, PromptContentPart, PromptMeta, PromptPolicy, PromptSpec, PromptStability, definePrompt };
@@ -1,15 +0,0 @@
1
- import { PromptSpec } from "./prompt.js";
2
- import { z } from "zod";
3
-
4
- //#region src/promptRegistry.d.ts
5
- declare class PromptRegistry {
6
- private prompts;
7
- /** Register a prompt. Throws on duplicate name+version. */
8
- register<I extends z.ZodType>(p: PromptSpec<I>): this;
9
- /** List all registered prompts. */
10
- list(): PromptSpec<any>[];
11
- /** Get prompt by name; when version omitted, returns highest version. */
12
- get(name: string, version?: number): PromptSpec<any> | undefined;
13
- }
14
- //#endregion
15
- export { PromptRegistry };
@@ -1,19 +0,0 @@
1
- import { BehaviorSignal, ErrorSignal, RegenerationContext, TelemetrySignal } from "./types.js";
2
-
3
- //#region src/regenerator/adapters.d.ts
4
- interface TelemetrySignalProvider {
5
- pollTelemetry(context: RegenerationContext, since: Date, until: Date): Promise<TelemetrySignal[]>;
6
- }
7
- interface ErrorSignalProvider {
8
- pollErrors(context: RegenerationContext, since: Date, until: Date): Promise<ErrorSignal[]>;
9
- }
10
- interface BehaviorSignalProvider {
11
- pollBehavior(context: RegenerationContext, since: Date, until: Date): Promise<BehaviorSignal[]>;
12
- }
13
- interface SignalAdapters {
14
- telemetry?: TelemetrySignalProvider;
15
- errors?: ErrorSignalProvider;
16
- behavior?: BehaviorSignalProvider;
17
- }
18
- //#endregion
19
- export { BehaviorSignalProvider, ErrorSignalProvider, SignalAdapters, TelemetrySignalProvider };
@@ -1,70 +0,0 @@
1
- import { ProposalAction, RegenerationContext, SpecChangeProposal } from "./types.js";
2
-
3
- //#region src/regenerator/executor.d.ts
4
- type ExecutionStatus = 'success' | 'skipped' | 'failed';
5
- interface ActionExecutionResult {
6
- index: number;
7
- action: ProposalAction;
8
- status: ExecutionStatus;
9
- startedAt: Date;
10
- finishedAt: Date;
11
- reason?: string;
12
- error?: Error;
13
- output?: unknown;
14
- }
15
- interface ProposalExecutionResult {
16
- proposalId: string;
17
- contextId: string;
18
- startedAt: Date;
19
- finishedAt: Date;
20
- status: 'success' | 'partial' | 'failed';
21
- actions: ActionExecutionResult[];
22
- }
23
- type UpdateBlueprintAction = Extract<ProposalAction, {
24
- kind: 'update_blueprint';
25
- }>;
26
- type UpdateTenantConfigAction = Extract<ProposalAction, {
27
- kind: 'update_tenant_config';
28
- }>;
29
- type RunTestsAction = Extract<ProposalAction, {
30
- kind: 'run_tests';
31
- }>;
32
- type RunMigrationsAction = Extract<ProposalAction, {
33
- kind: 'run_migrations';
34
- }>;
35
- type TriggerRegenerationAction = Extract<ProposalAction, {
36
- kind: 'trigger_regeneration';
37
- }>;
38
- interface BlueprintUpdater {
39
- applyBlueprintUpdate(context: RegenerationContext, proposal: SpecChangeProposal, action: UpdateBlueprintAction): Promise<unknown>;
40
- }
41
- interface TenantConfigUpdater {
42
- applyTenantConfigUpdate(context: RegenerationContext, proposal: SpecChangeProposal, action: UpdateTenantConfigAction): Promise<unknown>;
43
- }
44
- interface TestExecutor {
45
- runTests(context: RegenerationContext, proposal: SpecChangeProposal, action: RunTestsAction): Promise<unknown>;
46
- }
47
- interface MigrationExecutor {
48
- runMigrations(context: RegenerationContext, proposal: SpecChangeProposal, action: RunMigrationsAction): Promise<unknown>;
49
- }
50
- interface RegenerationTrigger {
51
- triggerRegeneration(context: RegenerationContext, proposal: SpecChangeProposal, action: TriggerRegenerationAction): Promise<unknown>;
52
- }
53
- interface ProposalExecutorOptions {
54
- dryRun?: boolean;
55
- }
56
- interface ProposalExecutorDeps {
57
- blueprintUpdater?: BlueprintUpdater;
58
- tenantConfigUpdater?: TenantConfigUpdater;
59
- testExecutor?: TestExecutor;
60
- migrationExecutor?: MigrationExecutor;
61
- regenerationTrigger?: RegenerationTrigger;
62
- }
63
- declare class ProposalExecutor {
64
- private readonly deps;
65
- constructor(deps?: ProposalExecutorDeps);
66
- execute(context: RegenerationContext, proposal: SpecChangeProposal, options?: ProposalExecutorOptions): Promise<ProposalExecutionResult>;
67
- private executeAction;
68
- }
69
- //#endregion
70
- export { ActionExecutionResult, BlueprintUpdater, ExecutionStatus, MigrationExecutor, ProposalExecutionResult, ProposalExecutor, ProposalExecutorDeps, ProposalExecutorOptions, RegenerationTrigger, RunMigrationsAction, RunTestsAction, TenantConfigUpdater, TestExecutor, TriggerRegenerationAction, UpdateBlueprintAction, UpdateTenantConfigAction };
@@ -1,7 +0,0 @@
1
- import { BehaviorSignal, BehaviorSignalEnvelope, ErrorSignal, ErrorSignalEnvelope, ProposalAction, ProposalBlocker, ProposalConfidence, ProposalSink, ProposalTarget, RegenerationContext, RegenerationRule, RegeneratorSignal, SpecChangeProposal, TelemetrySignal, TelemetrySignalEnvelope } from "./types.js";
2
- import { BehaviorSignalProvider, ErrorSignalProvider, SignalAdapters, TelemetrySignalProvider } from "./adapters.js";
3
- import { RegeneratorOptions, RegeneratorService } from "./service.js";
4
- import { ActionExecutionResult, BlueprintUpdater, ExecutionStatus, MigrationExecutor, ProposalExecutionResult, ProposalExecutor, ProposalExecutorDeps, ProposalExecutorOptions, RegenerationTrigger, RunMigrationsAction, RunTestsAction, TenantConfigUpdater, TestExecutor, TriggerRegenerationAction, UpdateBlueprintAction, UpdateTenantConfigAction } from "./executor.js";
5
- import { behaviorToEnvelope, errorToEnvelope, telemetryToEnvelope } from "./utils.js";
6
- import { ExecutorProposalSink, ExecutorResultPayload, ExecutorSinkLogger, ExecutorSinkOptions } from "./sinks.js";
7
- export { ActionExecutionResult, BehaviorSignal, BehaviorSignalEnvelope, BehaviorSignalProvider, BlueprintUpdater, ErrorSignal, ErrorSignalEnvelope, ErrorSignalProvider, ExecutionStatus, ExecutorProposalSink, ExecutorResultPayload, ExecutorSinkLogger, ExecutorSinkOptions, MigrationExecutor, ProposalAction, ProposalBlocker, ProposalConfidence, ProposalExecutionResult, ProposalExecutor, ProposalExecutorDeps, ProposalExecutorOptions, ProposalSink, ProposalTarget, RegenerationContext, RegenerationRule, RegenerationTrigger, RegeneratorOptions, RegeneratorService, RegeneratorSignal, RunMigrationsAction, RunTestsAction, SignalAdapters, SpecChangeProposal, TelemetrySignal, TelemetrySignalEnvelope, TelemetrySignalProvider, TenantConfigUpdater, TestExecutor, TriggerRegenerationAction, UpdateBlueprintAction, UpdateTenantConfigAction, behaviorToEnvelope, errorToEnvelope, telemetryToEnvelope };
@@ -1,33 +0,0 @@
1
- import { ProposalSink, RegenerationContext, RegenerationRule } from "./types.js";
2
- import { SignalAdapters } from "./adapters.js";
3
-
4
- //#region src/regenerator/service.d.ts
5
- interface RegeneratorOptions {
6
- contexts: RegenerationContext[];
7
- adapters: SignalAdapters;
8
- rules: RegenerationRule[];
9
- sink: ProposalSink;
10
- pollIntervalMs?: number;
11
- batchDurationMs?: number;
12
- clock?: () => Date;
13
- }
14
- declare class RegeneratorService {
15
- private readonly options;
16
- private readonly contexts;
17
- private readonly lastPoll;
18
- private timer?;
19
- private running;
20
- private readonly pollInterval;
21
- private readonly batchDuration;
22
- private readonly clock;
23
- constructor(options: RegeneratorOptions);
24
- start(): void;
25
- stop(): void;
26
- runOnce(): Promise<void>;
27
- private tick;
28
- private evaluateContext;
29
- private collectSignals;
30
- private flushProposals;
31
- }
32
- //#endregion
33
- export { RegeneratorOptions, RegeneratorService };
@@ -1,26 +0,0 @@
1
- import { ProposalSink, RegenerationContext, SpecChangeProposal } from "./types.js";
2
- import { ProposalExecutionResult, ProposalExecutor } from "./executor.js";
3
-
4
- //#region src/regenerator/sinks.d.ts
5
- interface ExecutorResultPayload {
6
- context: RegenerationContext;
7
- proposal: SpecChangeProposal;
8
- result: ProposalExecutionResult;
9
- }
10
- interface ExecutorSinkLogger {
11
- info?: (message: string, meta?: Record<string, unknown>) => void;
12
- error?: (message: string, error: Error, meta?: Record<string, unknown>) => void;
13
- }
14
- interface ExecutorSinkOptions {
15
- dryRun?: boolean;
16
- onResult?: (payload: ExecutorResultPayload) => void | Promise<void>;
17
- logger?: ExecutorSinkLogger;
18
- }
19
- declare class ExecutorProposalSink implements ProposalSink {
20
- private readonly executor;
21
- private readonly options;
22
- constructor(executor: ProposalExecutor, options?: ExecutorSinkOptions);
23
- submit(context: RegenerationContext, proposal: SpecChangeProposal): Promise<void>;
24
- }
25
- //#endregion
26
- export { ExecutorProposalSink, ExecutorResultPayload, ExecutorSinkLogger, ExecutorSinkOptions };
@@ -1,107 +0,0 @@
1
- import { TelemetrySpec } from "../telemetry/spec.js";
2
- import { AppBlueprintSpec, TenantAppConfig } from "../app-config/spec.js";
3
- import { ResolvedAppConfig } from "../app-config/runtime.js";
4
-
5
- //#region src/regenerator/types.d.ts
6
- type RegeneratorSignal = TelemetrySignalEnvelope | ErrorSignalEnvelope | BehaviorSignalEnvelope;
7
- interface TelemetrySignalEnvelope {
8
- type: 'telemetry';
9
- contextId: string;
10
- signal: TelemetrySignal;
11
- }
12
- interface TelemetrySignal {
13
- eventName: string;
14
- eventVersion: number;
15
- count: number;
16
- windowStart: Date;
17
- windowEnd: Date;
18
- anomalyScore?: number;
19
- classification?: 'normal' | 'warning' | 'critical';
20
- metadata?: Record<string, unknown>;
21
- telemetrySpec?: TelemetrySpec;
22
- }
23
- interface ErrorSignalEnvelope {
24
- type: 'error';
25
- contextId: string;
26
- signal: ErrorSignal;
27
- }
28
- interface ErrorSignal {
29
- id: string;
30
- classification: 'runtime' | 'policy' | 'workflow' | 'unknown';
31
- message: string;
32
- occurredAt: Date;
33
- count: number;
34
- metadata?: Record<string, unknown>;
35
- }
36
- interface BehaviorSignalEnvelope {
37
- type: 'behavior';
38
- contextId: string;
39
- signal: BehaviorSignal;
40
- }
41
- interface BehaviorSignal {
42
- feature: string;
43
- metric: 'usage' | 'conversion' | 'latency' | 'custom';
44
- value: number;
45
- baseline?: number;
46
- windowStart: Date;
47
- windowEnd: Date;
48
- metadata?: Record<string, unknown>;
49
- }
50
- interface SpecChangeProposal {
51
- id: string;
52
- title: string;
53
- summary: string;
54
- confidence: ProposalConfidence;
55
- rationale: string[];
56
- target: ProposalTarget;
57
- diff?: string;
58
- actions: ProposalAction[];
59
- blockers?: ProposalBlocker[];
60
- createdAt: Date;
61
- signalIds: string[];
62
- }
63
- type ProposalConfidence = 'low' | 'medium' | 'high';
64
- interface ProposalTarget {
65
- specType: 'workflow' | 'capability' | 'policy' | 'dataView' | 'telemetry' | 'experiment' | 'theme' | 'unknown';
66
- reference: {
67
- name: string;
68
- version?: number;
69
- };
70
- tenantScoped?: boolean;
71
- }
72
- type ProposalAction = {
73
- kind: 'update_blueprint';
74
- summary: string;
75
- } | {
76
- kind: 'update_tenant_config';
77
- summary: string;
78
- } | {
79
- kind: 'run_tests';
80
- tests: string[];
81
- } | {
82
- kind: 'run_migrations';
83
- migrations: string[];
84
- } | {
85
- kind: 'trigger_regeneration';
86
- summary?: string;
87
- };
88
- interface ProposalBlocker {
89
- description: string;
90
- kind: 'missing_context' | 'insufficient_data' | 'user_feedback' | 'manual_review';
91
- }
92
- interface RegenerationContext {
93
- id: string;
94
- blueprint: AppBlueprintSpec;
95
- tenantConfig: TenantAppConfig;
96
- resolved: ResolvedAppConfig;
97
- }
98
- interface RegenerationRule {
99
- readonly id: string;
100
- readonly description: string;
101
- evaluate(context: RegenerationContext, signals: RegeneratorSignal[]): Promise<SpecChangeProposal[]>;
102
- }
103
- interface ProposalSink {
104
- submit(context: RegenerationContext, proposal: SpecChangeProposal): Promise<void>;
105
- }
106
- //#endregion
107
- export { BehaviorSignal, BehaviorSignalEnvelope, ErrorSignal, ErrorSignalEnvelope, ProposalAction, ProposalBlocker, ProposalConfidence, ProposalSink, ProposalTarget, RegenerationContext, RegenerationRule, RegeneratorSignal, SpecChangeProposal, TelemetrySignal, TelemetrySignalEnvelope };
@@ -1,9 +0,0 @@
1
- import { BehaviorSignal, BehaviorSignalEnvelope, ErrorSignal, ErrorSignalEnvelope, TelemetrySignal, TelemetrySignalEnvelope } from "./types.js";
2
-
3
- //#region src/regenerator/utils.d.ts
4
- type Clock = () => Date;
5
- declare function telemetryToEnvelope(contextId: string, signal: TelemetrySignal, clock: Clock): TelemetrySignalEnvelope;
6
- declare function errorToEnvelope(contextId: string, signal: ErrorSignal, clock: Clock): ErrorSignalEnvelope;
7
- declare function behaviorToEnvelope(contextId: string, signal: BehaviorSignal, clock: Clock): BehaviorSignalEnvelope;
8
- //#endregion
9
- export { behaviorToEnvelope, errorToEnvelope, telemetryToEnvelope };
@@ -1,72 +0,0 @@
1
- import { ResourceRefDescriptor } from "./resources.js";
2
- import { ContractSpec } from "./spec.js";
3
- import { HandlerCtx } from "./types.js";
4
- import { HandlerFor } from "./install.js";
5
- import { AnySchemaModel } from "@lssm/lib.schema";
6
-
7
- //#region src/registry.d.ts
8
-
9
- type OperationKey = `${string}.v${number}`;
10
- declare function opKey(name: string, version: number): OperationKey;
11
- type AnySpec = ContractSpec<AnySchemaModel, AnySchemaModel | ResourceRefDescriptor<boolean>>;
12
- type AnyHandler = (args: any, ctx: HandlerCtx) => Promise<unknown>;
13
- /**
14
- * In-memory registry for ContractSpecs and their bound handlers.
15
- * Provides validation, policy enforcement, and guarded event emission at execute time.
16
- */
17
- declare class SpecRegistry {
18
- private specs;
19
- private handlers;
20
- /**
21
- * Registers a ContractSpec definition.
22
- *
23
- * @param spec - The contract specification to register.
24
- * @returns The registry instance for chaining.
25
- * @throws If a spec with the same name and version is already registered.
26
- */
27
- register<I extends AnySchemaModel, O extends AnySchemaModel | ResourceRefDescriptor<boolean>>(spec: ContractSpec<I, O>): this;
28
- /**
29
- * Binds a runtime handler implementation to a previously registered spec.
30
- *
31
- * @param spec - The spec to bind to.
32
- * @param handler - The async function implementing the business logic.
33
- * @returns The registry instance for chaining.
34
- * @throws If the spec is not found or a handler is already bound.
35
- */
36
- bind<I extends AnySchemaModel, O extends AnySchemaModel | ResourceRefDescriptor<boolean>>(spec: ContractSpec<I, O>, handler: HandlerFor<ContractSpec<I, O>>): this;
37
- /**
38
- * Retrieves a registered spec by name and version.
39
- * If version is omitted, returns the highest version found.
40
- *
41
- * @param name - Operation name.
42
- * @param version - (Optional) Specific version.
43
- */
44
- getSpec(name: string, version?: number): AnySpec | undefined;
45
- /**
46
- * Retrieves the bound handler for a spec.
47
- */
48
- getHandler(name: string, version?: number): AnyHandler | undefined;
49
- /** Iterate all registered specs. */
50
- listSpecs(): AnySpec[];
51
- /** Iterate all bound operations (spec+handler). */
52
- listBound(): {
53
- spec: AnySpec;
54
- handler: AnyHandler;
55
- }[];
56
- /**
57
- * Execute an operation by name/version with full runtime protections:
58
- * 1. Validates input against Zod schema.
59
- * 2. Enforces policy (Auth, RBAC, Rate Limits) via PDP.
60
- * 3. Guards event emission to ensure only declared events are sent.
61
- * 4. Validates output against Zod schema (if applicable).
62
- * 5. Tracks telemetry (success/failure).
63
- *
64
- * @param name - Operation name.
65
- * @param version - Operation version (optional, defaults to latest).
66
- * @param rawInput - The raw input payload (e.g. from JSON body).
67
- * @param ctx - The runtime context (actor, tenant, etc.).
68
- */
69
- execute(name: string, version: number | undefined, rawInput: unknown, ctx: HandlerCtx): Promise<unknown>;
70
- }
71
- //#endregion
72
- export { OperationKey, SpecRegistry, opKey };
@@ -1,64 +0,0 @@
1
- import { Tag } from "./ownership.js";
2
- import { z } from "zod";
3
-
4
- //#region src/resources.d.ts
5
- interface ResourceMeta {
6
- /** URI scheme, e.g. "content://doc/{id}" or "marketplace://offers/{city}/{tag}" */
7
- uriTemplate: string;
8
- /** Human title for discovery */
9
- title: string;
10
- /** Short description */
11
- description?: string;
12
- /** MIME type for resource body */
13
- mimeType: string;
14
- /** Tags for filtering/grouping */
15
- tags?: Tag[];
16
- }
17
- interface ResourceTemplateSpec<I extends z.ZodType> {
18
- meta: ResourceMeta;
19
- /** Arguments to materialize the URI (zod validates input) */
20
- input: I;
21
- /**
22
- * Resolve returns the resource body and a resolved URI.
23
- * It MUST be read-only (no side effects).
24
- */
25
- resolve: (args: z.infer<I>, ctx: {
26
- userId?: string | null;
27
- orgId?: string | null;
28
- locale?: string;
29
- }) => Promise<{
30
- uri: string;
31
- mimeType?: string;
32
- data: Uint8Array | string;
33
- }>;
34
- }
35
- declare function defineResourceTemplate<I extends z.ZodType>(spec: ResourceTemplateSpec<I>): ResourceTemplateSpec<I>;
36
- declare class ResourceRegistry {
37
- private templates;
38
- register<I extends z.ZodType>(tmpl: ResourceTemplateSpec<I>): this;
39
- listTemplates(): ResourceTemplateSpec<any>[];
40
- /** Try to match a concrete URI to a template by naive pattern substitution */
41
- match(uri: string): {
42
- tmpl: ResourceTemplateSpec<any>;
43
- params: Record<string, string>;
44
- } | undefined;
45
- }
46
- interface ResourceRefDescriptor<Many extends boolean> {
47
- kind: 'resource_ref';
48
- /** URI template, e.g. 'strit://spot/{id}' */
49
- uriTemplate: string;
50
- /** Variable name inside result payload to substitute into template; defaults to 'id' */
51
- varName?: string;
52
- /** Optional GraphQL type name to use when exposing over GraphQL (e.g., 'Spot') */
53
- graphQLType: string;
54
- /** Cardinality: when present and true, the handler returns an array of resources */
55
- many: Many;
56
- }
57
- declare function resourceRef<Many extends boolean>(uriTemplate: string, opts: {
58
- varName?: string;
59
- graphQLType: string;
60
- many: Many;
61
- }): ResourceRefDescriptor<Many>;
62
- declare function isResourceRef(x: unknown): x is ResourceRefDescriptor<boolean>;
63
- //#endregion
64
- export { ResourceMeta, ResourceRefDescriptor, ResourceRegistry, ResourceTemplateSpec, defineResourceTemplate, isResourceRef, resourceRef };
@@ -1 +0,0 @@
1
- import{z as e}from"zod";import"graphql";
@@ -1 +0,0 @@
1
- import{z as e}from"zod";import{GraphQLScalarType as t}from"graphql";var n=class extends t{zodSchema;jsonSchemaDef;constructor(e){super(e),this.zodSchema=e.zod,this.jsonSchemaDef=e.jsonSchema}getZod(){return this.zodSchema}getPothos(){return this}getJson(){return typeof this.jsonSchemaDef==`function`?this.jsonSchemaDef():this.jsonSchemaDef}getJsonSchemaDef(){return this.jsonSchemaDef}getJsonSchema(){let e=t=>{let n=typeof t==`function`?t():t;if(Array.isArray(n))return n.map(t=>e(t));if(n&&typeof n==`object`){let t={};for(let[r,i]of Object.entries(n))t[r]=e(i);return t}return n};return e(this.getJson())}};export{n};
@@ -1 +0,0 @@
1
- import{n as e}from"./FieldType.js";import{z as t}from"zod";import{Kind as n}from"graphql";const r=/^[A-Za-z]{2}(?:-[A-Za-z0-9]{2,8})*$/,i=/^(?:UTC|[A-Za-z_]+\/[A-Za-z_]+)$/,a=/^[+]?\d[\d\s().-]{3,}$/,o=/^[A-Z]{3}$/,s=/^[A-Z]{2}$/,c=-180,l={String_unsecure:()=>new e({name:`String_unsecure`,description:`Unvalidated string scalar`,zod:t.string(),parseValue:e=>t.string().parse(e),serialize:e=>String(e),parseLiteral:e=>{if(e.kind!==n.STRING)throw TypeError(`Invalid literal`);return e.value},jsonSchema:{type:`string`}}),Int_unsecure:()=>new e({name:`Int_unsecure`,description:`Unvalidated integer scalar`,zod:t.number().int(),parseValue:e=>{let n=typeof e==`number`?e:Number(e);return t.number().int().parse(n)},serialize:e=>Math.trunc(typeof e==`number`?e:Number(e)),parseLiteral:e=>{if(e.kind!==n.INT)throw TypeError(`Invalid literal`);return Number(e.value)},jsonSchema:{type:`integer`}}),Float_unsecure:()=>new e({name:`Float_unsecure`,description:`Unvalidated float scalar`,zod:t.number(),parseValue:e=>{let n=typeof e==`number`?e:Number(e);return t.number().parse(n)},serialize:e=>Number(e),parseLiteral:e=>{if(e.kind!==n.FLOAT&&e.kind!==n.INT)throw TypeError(`Invalid literal`);return Number(e.value)},jsonSchema:{type:`number`}}),Boolean:()=>new e({name:`Boolean`,description:`Unvalidated boolean scalar`,zod:t.boolean(),parseValue:e=>t.coerce.boolean().parse(e),serialize:e=>!!e,parseLiteral:e=>{if(e.kind!==n.BOOLEAN)throw TypeError(`Invalid literal`);return e.value},jsonSchema:{type:`boolean`}}),ID:()=>new e({name:`ID`,description:`Unvalidated id scalar`,zod:t.string(),parseValue:e=>t.string().parse(e),serialize:e=>String(e),parseLiteral:e=>{if(e.kind!==n.STRING)throw TypeError(`Invalid literal`);return e.value},jsonSchema:{type:`string`}}),JSON:()=>new e({name:`JSON`,zod:t.any(),parseValue:e=>e,serialize:e=>e,jsonSchema:{}}),JSONObject:()=>new e({name:`JSONObject`,zod:t.record(t.string(),t.any()),parseValue:e=>t.record(t.string(),t.any()).parse(e),serialize:e=>e??{},jsonSchema:{type:`object`}}),Date:()=>new e({name:`Date`,zod:t.date(),parseValue:e=>e instanceof Date?e:new Date(String(e)),serialize:e=>e instanceof Date?e.toISOString().split(`T`)[0]:String(e),jsonSchema:{type:`string`,format:`date`}}),DateTime:()=>new e({name:`DateTime`,zod:t.date(),parseValue:e=>e instanceof Date?e:new Date(String(e)),serialize:e=>e instanceof Date?e.toISOString():String(e),jsonSchema:{type:`string`,format:`date-time`}}),Time:()=>new e({name:`Time`,zod:t.string().regex(/^\d{2}:\d{2}(:\d{2})?$/),parseValue:e=>t.string().regex(/^\d{2}:\d{2}(:\d{2})?$/).parse(e),serialize:e=>String(e),jsonSchema:{type:`string`,pattern:`^\\d{2}:\\d{2}(:\\d{2})?$`}}),EmailAddress:()=>new e({name:`EmailAddress`,zod:t.string().email(),parseValue:e=>t.string().email().parse(e),serialize:e=>String(e),jsonSchema:{type:`string`,format:`email`}}),URL:()=>new e({name:`URL`,zod:t.string().url(),parseValue:e=>t.string().url().parse(e),serialize:e=>String(e),jsonSchema:{type:`string`,format:`uri`}}),PhoneNumber:()=>new e({name:`PhoneNumber`,zod:t.string().regex(a),parseValue:e=>t.string().regex(a).parse(e),serialize:e=>String(e),jsonSchema:{type:`string`,pattern:a.source}}),NonEmptyString:()=>new e({name:`NonEmptyString`,zod:t.string().min(1),parseValue:e=>t.string().min(1).parse(e),serialize:e=>String(e),jsonSchema:{type:`string`,minLength:1}}),Locale:()=>new e({name:`Locale`,zod:t.string().regex(r),parseValue:e=>t.string().regex(r).parse(e),serialize:e=>String(e),jsonSchema:{type:`string`,pattern:r.source}}),TimeZone:()=>new e({name:`TimeZone`,zod:t.string().regex(i),parseValue:e=>t.string().regex(i).parse(e),serialize:e=>String(e),jsonSchema:{type:`string`,pattern:i.source}}),Latitude:()=>new e({name:`Latitude`,zod:t.number().min(-90).max(90),parseValue:e=>t.coerce.number().min(-90).max(90).parse(e),serialize:e=>Number(e),jsonSchema:{type:`number`,minimum:-90,maximum:90}}),Longitude:()=>new e({name:`Longitude`,zod:t.number().min(c).max(180),parseValue:e=>t.coerce.number().min(c).max(180).parse(e),serialize:e=>Number(e),jsonSchema:{type:`number`,minimum:c,maximum:180}}),Currency:()=>new e({name:`Currency`,zod:t.string().regex(o),parseValue:e=>t.string().regex(o).parse(e),serialize:e=>String(e),jsonSchema:{type:`string`,pattern:o.source}}),CountryCode:()=>new e({name:`CountryCode`,zod:t.string().regex(s),parseValue:e=>t.string().regex(s).parse(e),serialize:e=>String(e),jsonSchema:{type:`string`,pattern:s.source}})};export{l};
@@ -1 +0,0 @@
1
- import"./EnumType.js";import"./FieldType.js";import{z as e}from"zod";var t=class{constructor(e){this.config=e}getZod(){let t=Object.entries(this.config.fields).reduce((t,[n,r])=>{let i=r.type.getZod(),a=r.isArray?e.array(i):i;return t[n]=r.isOptional?a.optional():a,t},{});return e.object(t)}getPothosInput(){return this.config.name}};export{t};
@@ -1 +0,0 @@
1
- import"./EnumType.js";import{n as e}from"./FieldType.js";import{l as t}from"./ScalarTypeEnum.js";import{t as n}from"./SchemaModel.js";
@@ -1,31 +0,0 @@
1
- import { ResourceRegistry } from "../resources.js";
2
- import { SpecRegistry } from "../registry.js";
3
- import "@pothos/plugin-prisma";
4
- import "@pothos/plugin-complexity";
5
- import "@pothos/plugin-relay";
6
- import "@pothos/plugin-dataloader";
7
- import "@pothos/plugin-tracing";
8
- import { SchemaTypes } from "@pothos/core";
9
-
10
- //#region src/server/graphql-pothos.d.ts
11
-
12
- /**
13
- * Registers all ContractSpecs from a SpecRegistry onto a Pothos SchemaBuilder.
14
- *
15
- * This adapter:
16
- * 1. Discovers output types from specs and registers them as Pothos object types.
17
- * 2. Maps `ContractSpec` inputs to Pothos input types.
18
- * 3. Mounts `query` specs as `Query` fields and `command` specs as `Mutation` fields.
19
- * 4. Wraps the resolver to:
20
- * - Enforce auth policies (basic check).
21
- * - Build a `HandlerCtx`.
22
- * - Execute via `SpecRegistry`.
23
- * - Hydrate resource references if applicable.
24
- *
25
- * @param builder - The Pothos SchemaBuilder instance.
26
- * @param reg - The SpecRegistry containing operations.
27
- * @param resources - (Optional) ResourceRegistry for hydrating resource references.
28
- */
29
- declare function registerContractsOnBuilder<T extends SchemaTypes>(builder: PothosSchemaTypes.SchemaBuilder<T>, reg: SpecRegistry, resources?: ResourceRegistry): void;
30
- //#endregion
31
- export { registerContractsOnBuilder };
@@ -1,6 +0,0 @@
1
- import { GraphQLSchema } from "graphql";
2
-
3
- //#region src/server/graphql-schema-export.d.ts
4
- declare const exportContractsToGraphQLSchema: (schema: GraphQLSchema, outputPathDir: string) => Promise<void>;
5
- //#endregion
6
- export { exportContractsToGraphQLSchema };
@@ -1 +0,0 @@
1
- "use server";import{t as e}from"../graphql-federation/dist/index.js";import{GraphQLSchema as t,printSchema as n}from"graphql";const r=async(t,r)=>{let i=await import(`fs`),a=await import(`path`),o=n(t),s=e(t),c=a.join(r,`../schema.graphql`),l=a.join(r,`../schema.subgraph.graphql`);i.writeFileSync(c,o),console.log(`Schema exported to ${c}`),i.writeFileSync(l,s),console.log(`Subgraph exported to ${l}`)};export{r as exportContractsToGraphQLSchema};