@wildo-ai/saas-specifications 1.1.5 → 1.1.7

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 (677) hide show
  1. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +10 -8
  2. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
  3. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +14 -13
  4. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
  5. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts +3 -2
  6. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
  7. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js +4 -3
  8. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js.map +1 -1
  9. package/dist/esm/_catalogs/schema-org/index.d.ts +31 -15
  10. package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
  11. package/dist/esm/_catalogs/schema-org/index.js +34 -13
  12. package/dist/esm/_catalogs/schema-org/index.js.map +1 -1
  13. package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts +2 -2
  14. package/dist/esm/_catalogs/schema-org/product.catalog-spec.js +4 -4
  15. package/dist/esm/_catalogs/schema-org/product.catalog-spec.js.map +1 -1
  16. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts +45 -0
  17. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts.map +1 -0
  18. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js +58 -0
  19. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js.map +1 -0
  20. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +3 -2
  21. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
  22. package/dist/esm/_core/application-specification-family-identity.schemas.js +3 -2
  23. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
  24. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +18 -0
  25. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  26. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +39 -13
  27. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  28. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +43 -13
  29. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  30. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +90 -2
  31. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  32. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +70 -6
  33. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  34. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  35. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +26 -4
  36. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  37. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +14 -0
  38. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
  39. package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
  40. package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -1
  41. package/dist/esm/_core/capability-composition/capability-composition-validation.js +1 -0
  42. package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -1
  43. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +21 -2
  44. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
  45. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +20 -1
  46. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
  47. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +11 -32
  48. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  49. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +70 -3
  50. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  51. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +142 -17
  52. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  53. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +285 -30
  54. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  55. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +183 -18
  56. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  57. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +165 -18
  58. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  59. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +139 -0
  60. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -0
  61. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +172 -0
  62. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -0
  63. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +306 -0
  64. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -0
  65. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +502 -0
  66. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -0
  67. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts +107 -0
  68. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts.map +1 -0
  69. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js +118 -0
  70. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js.map +1 -0
  71. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +56 -0
  72. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -0
  73. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +100 -0
  74. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -0
  75. package/dist/esm/_core/composite-view-specification.schemas.js +8 -1
  76. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  77. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -2
  78. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  79. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +3 -2
  80. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  81. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +16 -3
  82. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
  83. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +70 -5
  84. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
  85. package/dist/esm/_core/family-aspects.schemas.d.ts +10 -0
  86. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  87. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  88. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +2 -2
  89. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +1 -0
  90. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
  91. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts +16 -0
  92. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  93. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +8 -0
  94. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  95. package/dist/esm/_core/index.d.ts +3 -0
  96. package/dist/esm/_core/index.d.ts.map +1 -1
  97. package/dist/esm/_core/index.js +3 -0
  98. package/dist/esm/_core/index.js.map +1 -1
  99. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +5 -0
  100. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  101. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +3 -1
  102. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -1
  103. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  104. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +12 -2
  105. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  106. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +30 -2
  107. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  108. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +32 -2
  109. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  110. package/dist/esm/_core/market/feature-benefit.schemas.js +2 -2
  111. package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
  112. package/dist/esm/_core/market/market-alternative.schemas.js +2 -2
  113. package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
  114. package/dist/esm/_core/market/market-buying-journey.schemas.js +2 -2
  115. package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
  116. package/dist/esm/_core/market/market-category.schemas.js +2 -2
  117. package/dist/esm/_core/market/market-category.schemas.js.map +1 -1
  118. package/dist/esm/_core/market/market-channel.schemas.js +2 -2
  119. package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
  120. package/dist/esm/_core/market/market-gain.schemas.js +2 -2
  121. package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
  122. package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
  123. package/dist/esm/_core/market/market-icp.schemas.js +2 -2
  124. package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
  125. package/dist/esm/_core/market/market-job.schemas.js +2 -2
  126. package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
  127. package/dist/esm/_core/market/market-message-template.schemas.js +2 -2
  128. package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
  129. package/dist/esm/_core/market/market-objection.schemas.js +2 -2
  130. package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
  131. package/dist/esm/_core/market/market-pain.schemas.js +2 -2
  132. package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
  133. package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
  134. package/dist/esm/_core/market/market-persona.schemas.js +2 -2
  135. package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
  136. package/dist/esm/_core/market/market-positioning.schemas.js +2 -2
  137. package/dist/esm/_core/market/market-positioning.schemas.js.map +1 -1
  138. package/dist/esm/_core/market/market-proof.schemas.js +2 -2
  139. package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
  140. package/dist/esm/_core/market/market-references.schemas.d.ts +6 -0
  141. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  142. package/dist/esm/_core/market/market-references.schemas.js +6 -0
  143. package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
  144. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +4 -4
  145. package/dist/esm/_core/market/market-tone-of-voice.schemas.js +2 -2
  146. package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
  147. package/dist/esm/_core/market/market-trigger.schemas.js +2 -2
  148. package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
  149. package/dist/esm/_core/market/market.family-aspects.js +1 -1
  150. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  151. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  152. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +6 -1
  153. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  154. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +1 -0
  155. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  156. package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -0
  157. package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
  158. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +1 -0
  159. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  160. package/dist/esm/_core/resource-specification.schemas.d.ts +86 -28
  161. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  162. package/dist/esm/_core/resource-specification.schemas.js +110 -24
  163. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  164. package/dist/esm/_core/utils/retention-clock-field-specs.d.ts +13 -0
  165. package/dist/esm/_core/utils/retention-clock-field-specs.d.ts.map +1 -0
  166. package/dist/esm/_core/utils/retention-clock-field-specs.js +26 -0
  167. package/dist/esm/_core/utils/retention-clock-field-specs.js.map +1 -0
  168. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +31 -6
  169. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
  170. package/dist/esm/_core/website-plan/website-plan.schemas.js +35 -6
  171. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
  172. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +142 -3
  173. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
  174. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +148 -14
  175. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
  176. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +70 -10
  177. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  178. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +98 -11
  179. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  180. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +215 -0
  181. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -0
  182. package/dist/esm/application-creation/application-line.application-creation.schemas.js +253 -0
  183. package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -0
  184. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts +39 -0
  185. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts.map +1 -0
  186. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js +37 -0
  187. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js.map +1 -0
  188. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +5 -49
  189. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  190. package/dist/esm/application-creation/journey.application-creation.schemas.js +25 -60
  191. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  192. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts +28 -0
  193. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts.map +1 -0
  194. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js +32 -0
  195. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js.map +1 -0
  196. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +26 -6
  197. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  198. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +28 -1
  199. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  200. package/dist/esm/application-creation.exports.d.ts +7 -0
  201. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  202. package/dist/esm/application-creation.exports.js +7 -0
  203. package/dist/esm/application-creation.exports.js.map +1 -1
  204. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +1 -1
  205. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +1 -1
  206. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -1
  207. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +24 -1
  208. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  209. package/dist/esm/assurance/assurance-authority-basis.definitions.js +75 -5
  210. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  211. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +6 -0
  212. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  213. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +11 -0
  214. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
  215. package/dist/esm/assurance/assurance-document-blueprint-selection.js +22 -3
  216. package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
  217. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  218. package/dist/esm/assurance/assurance-document-system.definitions.js +39 -6
  219. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  220. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +11 -0
  221. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  222. package/dist/esm/assurance/assurance-document-system.schemas.js +19 -0
  223. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  224. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  225. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +295 -31
  226. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  227. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +7 -0
  228. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  229. package/dist/esm/assurance/assurance-foundation.schemas.js +7 -0
  230. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  231. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  232. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +17 -0
  233. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  234. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +5 -1
  235. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  236. package/dist/esm/assurance/assurance-program-generation.schemas.js +6 -3
  237. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  238. package/dist/esm/assurance/assurance-program.family-aspects.js +1 -1
  239. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
  240. package/dist/esm/assurance/assurance-program.schemas.d.ts +232 -3
  241. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  242. package/dist/esm/assurance/assurance-program.schemas.js +107 -14
  243. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  244. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  245. package/dist/esm/assurance/assurance-source-registry.definitions.js +77 -1
  246. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  247. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  248. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +23 -1
  249. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  250. package/dist/esm/assurance/governed-document-release.d.ts +7 -0
  251. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
  252. package/dist/esm/assurance/governed-document-release.js +11 -2
  253. package/dist/esm/assurance/governed-document-release.js.map +1 -1
  254. package/dist/esm/companion-exports.d.ts +6 -5
  255. package/dist/esm/companion-exports.d.ts.map +1 -1
  256. package/dist/esm/companion-exports.js.map +1 -1
  257. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -0
  258. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  259. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +35 -33
  260. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  261. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  262. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +6 -2
  263. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  264. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  265. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +13 -12
  266. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  267. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
  268. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +26 -2
  269. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  270. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  271. package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -4
  272. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  273. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  274. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +11 -9
  275. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  276. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +2 -2
  277. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  278. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -0
  279. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  280. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +45 -32
  281. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  282. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -23
  283. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  284. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +185 -31
  285. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  286. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +2 -1
  287. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  288. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +29 -7
  289. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  290. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  291. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +7 -1
  292. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  293. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  294. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +9 -6
  295. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  296. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
  297. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  298. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +11 -7
  299. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  300. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  301. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +18 -16
  302. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  303. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  304. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +9 -11
  305. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  306. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  307. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +238 -219
  308. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  309. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -24
  310. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  311. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +76 -16
  312. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  313. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +2 -1
  314. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  315. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +28 -6
  316. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  317. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  318. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +29 -11
  319. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  320. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +1 -1
  321. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -1
  322. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +2 -0
  323. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
  324. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +13 -12
  325. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  326. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -5
  327. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  328. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  329. package/dist/esm/engine/billing/resources/prices.resource.specification.js +12 -9
  330. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  331. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +7 -4
  332. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  333. package/dist/esm/engine/billing/resources/products.resource.specification.js +36 -16
  334. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  335. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  336. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +13 -10
  337. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  338. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts +13 -8
  339. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  340. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +54 -20
  341. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  342. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +30 -4
  343. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  344. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +85 -25
  345. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  346. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +2 -2
  347. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  348. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +15 -2
  349. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
  350. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +45 -10
  351. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
  352. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +15 -2
  353. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  354. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +52 -12
  355. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  356. package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
  357. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  358. package/dist/esm/engine/compliance/resources/index.js +1 -0
  359. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  360. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +39 -0
  361. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -0
  362. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +325 -0
  363. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -0
  364. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts +23 -0
  365. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts.map +1 -0
  366. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +197 -0
  367. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -0
  368. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  369. package/dist/esm/engine/engine-resource-specifications.registry.js +59 -0
  370. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  371. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  372. package/dist/esm/engine/errors/error-messages.specification.js +69 -0
  373. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  374. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts +5 -5
  375. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  376. package/dist/esm/engine/features/resources/application-features.resource.specification.js +9 -10
  377. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  378. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts +5 -5
  379. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +11 -11
  380. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  381. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +5 -5
  382. package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
  383. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  384. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  385. package/dist/esm/engine/files/resources/files.resource.specification.js +7 -8
  386. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  387. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  388. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +16 -4
  389. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  390. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +1 -1
  391. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  392. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts +11 -0
  393. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -0
  394. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +382 -0
  395. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -0
  396. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +139 -1
  397. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  398. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +150 -4
  399. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  400. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  401. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -1
  402. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  403. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts +3 -0
  404. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -0
  405. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +162 -0
  406. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -0
  407. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts +3 -0
  408. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -0
  409. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +158 -0
  410. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -0
  411. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +2 -1
  412. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
  413. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +16 -9
  414. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
  415. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +1 -1
  416. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
  417. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js +1 -1
  418. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js.map +1 -1
  419. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts +5 -0
  420. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts.map +1 -0
  421. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +79 -0
  422. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -0
  423. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js +1 -1
  424. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js.map +1 -1
  425. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -1
  426. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +3 -1
  427. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -1
  428. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  429. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +5 -4
  430. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  431. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +1 -1
  432. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
  433. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +1 -1
  434. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
  435. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +2 -2
  436. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  437. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js +1 -1
  438. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js.map +1 -1
  439. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js +2 -2
  440. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js.map +1 -1
  441. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  442. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  443. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +1 -1
  444. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
  445. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -1
  446. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +1 -1
  447. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -1
  448. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +2 -2
  449. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
  450. package/dist/esm/engine/frontend-components/index.d.ts +1 -0
  451. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  452. package/dist/esm/engine/frontend-components/index.js +3 -0
  453. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  454. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js +1 -1
  455. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js.map +1 -1
  456. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js +1 -1
  457. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js.map +1 -1
  458. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js +1 -1
  459. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js.map +1 -1
  460. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
  461. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js +9 -4
  462. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js.map +1 -1
  463. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +4 -4
  464. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  465. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  466. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +34 -0
  467. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  468. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  469. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +26 -0
  470. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  471. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +2 -2
  472. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  473. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts +9 -0
  474. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -0
  475. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +122 -0
  476. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -0
  477. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts +9 -0
  478. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -0
  479. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +152 -0
  480. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -0
  481. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts +10 -0
  482. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts.map +1 -0
  483. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js +94 -0
  484. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js.map +1 -0
  485. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts +10 -0
  486. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts.map +1 -0
  487. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +64 -0
  488. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -0
  489. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -1
  490. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -1
  491. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +20 -16
  492. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
  493. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts +9 -0
  494. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -0
  495. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +200 -0
  496. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -0
  497. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  498. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +19 -6
  499. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  500. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts +9 -0
  501. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -0
  502. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +97 -0
  503. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -0
  504. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +8 -0
  505. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  506. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +2 -2
  507. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  508. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +2 -2
  509. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
  510. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  511. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +4 -4
  512. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
  513. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts +9 -0
  514. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts.map +1 -0
  515. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js +153 -0
  516. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js.map +1 -0
  517. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +81 -0
  518. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map +1 -0
  519. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +437 -0
  520. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -0
  521. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +112 -0
  522. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -0
  523. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +287 -0
  524. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -0
  525. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +131 -0
  526. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -0
  527. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +594 -0
  528. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -0
  529. package/dist/esm/engine/notifications/resources/index.d.ts +1 -0
  530. package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
  531. package/dist/esm/engine/notifications/resources/index.js +1 -0
  532. package/dist/esm/engine/notifications/resources/index.js.map +1 -1
  533. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -3
  534. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  535. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +20 -5
  536. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  537. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  538. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +12 -2
  539. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  540. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +6 -6
  541. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  542. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +8 -11
  543. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  544. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +4 -0
  545. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -0
  546. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +62 -0
  547. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -0
  548. package/dist/esm/engine/notifications/system-emails/index.d.ts +2 -1
  549. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  550. package/dist/esm/engine/notifications/system-emails/index.js +4 -2
  551. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  552. package/dist/esm/engine/organizations/resources/index.d.ts +2 -0
  553. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  554. package/dist/esm/engine/organizations/resources/index.js +2 -0
  555. package/dist/esm/engine/organizations/resources/index.js.map +1 -1
  556. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +3 -0
  557. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  558. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +40 -12
  559. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  560. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +2 -2
  561. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  562. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +2 -2
  563. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  564. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +0 -1
  565. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  566. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -6
  567. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  568. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  569. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +7 -3
  570. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  571. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  572. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +15 -8
  573. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  574. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +3 -1
  575. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  576. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +36 -21
  577. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  578. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +38 -0
  579. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +1 -0
  580. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +152 -0
  581. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +1 -0
  582. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts +106 -0
  583. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +1 -0
  584. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +417 -0
  585. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +1 -0
  586. package/dist/esm/engine/providers/apple.provider.specification.js +1 -1
  587. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  588. package/dist/esm/engine/providers/github.provider.specification.js +1 -1
  589. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  590. package/dist/esm/engine/providers/google-places.provider.specification.d.ts +6 -0
  591. package/dist/esm/engine/providers/google-places.provider.specification.d.ts.map +1 -0
  592. package/dist/esm/engine/providers/google-places.provider.specification.js +44 -0
  593. package/dist/esm/engine/providers/google-places.provider.specification.js.map +1 -0
  594. package/dist/esm/engine/providers/google.provider.specification.js +1 -1
  595. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  596. package/dist/esm/engine/providers/index.d.ts +2 -0
  597. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  598. package/dist/esm/engine/providers/index.js +5 -1
  599. package/dist/esm/engine/providers/index.js.map +1 -1
  600. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/providers/microsoft.provider.specification.js +10 -6
  602. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  603. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts +6 -0
  604. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts.map +1 -0
  605. package/dist/esm/engine/providers/recaptcha.provider.specification.js +38 -0
  606. package/dist/esm/engine/providers/recaptcha.provider.specification.js.map +1 -0
  607. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  608. package/dist/esm/engine/providers/resend.provider.specification.js +3 -1
  609. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  610. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  611. package/dist/esm/engine/providers/stripe.provider.specification.js +3 -2
  612. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  613. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts +2 -0
  614. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts.map +1 -0
  615. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js +21 -0
  616. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js.map +1 -0
  617. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts +2 -0
  618. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts.map +1 -0
  619. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js +21 -0
  620. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js.map +1 -0
  621. package/dist/esm/engine/roles/index.d.ts +13 -5
  622. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  623. package/dist/esm/engine/roles/index.js +19 -6
  624. package/dist/esm/engine/roles/index.js.map +1 -1
  625. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts +2 -0
  626. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts.map +1 -0
  627. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js +21 -0
  628. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js.map +1 -0
  629. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +7 -0
  630. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -0
  631. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +72 -0
  632. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -0
  633. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +2 -0
  634. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +1 -0
  635. package/dist/esm/engine/roles/org-service-provider.role.specification.js +22 -0
  636. package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +1 -0
  637. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -2
  638. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  639. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
  640. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  641. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts +1 -1
  642. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
  643. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js +3 -6
  644. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js.map +1 -1
  645. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -2
  646. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  647. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +2 -2
  648. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  649. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +0 -4
  650. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  651. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +0 -3
  652. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  653. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +0 -3
  654. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  655. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +7 -7
  656. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  657. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +5 -5
  658. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  659. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +0 -3
  660. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  661. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +11 -18
  662. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  663. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +6 -6
  664. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  665. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  666. package/dist/esm/engine/users/resources/user-self.resource.specification.js +5 -1
  667. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  668. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +8 -5
  669. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  670. package/dist/esm/engine/users/resources/users.resource.specification.js +49 -16
  671. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  672. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  673. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +29 -10
  674. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  675. package/dist/tsconfig.build.tsbuildinfo +1 -1
  676. package/package.json +8 -8
  677. package/dist/assurance/external-framework-mapping.json +0 -1228
@@ -0,0 +1,215 @@
1
+ import { ApplicationSpecificationFamily } from "../_core/application-specification-family-identity.schemas";
2
+ import { type ApplicationCreatorInputs } from "./application-creator-inputs.application-creation.schemas";
3
+ /**
4
+ * The kind of application being created: its MAIN LINE (epic #1602, #1603).
5
+ *
6
+ * App creation is not a B2B SaaS pipeline. It serves several lines of application, and not every
7
+ * playbook applies to every line: an internal tool has no marketing website and needs no market
8
+ * analysis. The line an application is created on decides which playbooks it may run, and which
9
+ * specification families do not apply to it at all.
10
+ *
11
+ * An application has exactly ONE main line at a time (Paul, 2026-09-25). The CREATOR chooses it,
12
+ * as a typed answer in the first playbook's interview ({@link APPLICATION_LINE_QUESTION}), and it is
13
+ * changeable deliberately by answering again. The model never proposes it: a line inferred from a
14
+ * vision would be a guess recorded as a decision.
15
+ *
16
+ * Secondary lines, opened in the middle of an application's life for a feature or a refinement,
17
+ * are a different concept with their own record (#1608); they never change this value.
18
+ *
19
+ * Members are added with the line they name, and only then. AI-native service companies come later
20
+ * (#1593), with the families and playbooks that line adds.
21
+ */
22
+ export declare enum ApplicationLine {
23
+ /**
24
+ * A commercial software product sold to other businesses: a market it competes in, a business model,
25
+ * a brand, usually a public website and documentation. The line every application was created on
26
+ * before lines existed, and its definition reproduces that catalog exactly.
27
+ */
28
+ B2B_SAAS = "b2b_saas",
29
+ /**
30
+ * Software a company builds for its own people (#1605): an operating team, not a market. No market
31
+ * analysis, business model, brand or public website applies; its users belong to the company that
32
+ * owns the application, which is typically signed in through its own identity provider and often
33
+ * reads its data from systems of record the company already runs.
34
+ */
35
+ INTERNAL_TOOL = "internal_tool"
36
+ }
37
+ /**
38
+ * What one line admits, declared rather than listed.
39
+ *
40
+ * A line is the tree under its ROOT composite (every playbook its `method.choreography.admits` reach,
41
+ * transitively), minus what it EXCLUDES. Declaring a root instead of enumerating playbooks is what keeps
42
+ * a line correct when the catalog grows: a playbook added to a lane joins every line that admits the
43
+ * lane, rather than joining none until someone remembers each line's list.
44
+ *
45
+ * Excluding a composite excludes the part of the tree reached only through it.
46
+ */
47
+ export interface ApplicationLineDefinition {
48
+ readonly line: ApplicationLine;
49
+ /** The composite whose tree this line runs. */
50
+ readonly rootPlaybookRef: string;
51
+ /** Playbooks (leaf or composite) this line never runs, even though its root reaches them. */
52
+ readonly excludedPlaybookRefs: readonly string[];
53
+ /**
54
+ * Specification families that do not apply to an application on this line, e.g. the market snapshot
55
+ * of an internal tool. Declared here because it is a fact about the line; read by eligibility once a
56
+ * family can be not applicable (#1604).
57
+ */
58
+ readonly notApplicableFamilies: readonly ApplicationSpecificationFamily[];
59
+ /**
60
+ * Whether an application on this line is OWNED by one organization, whose members are its users
61
+ * (#1605): an internal tool belongs to the company that built it. The foundation declares the
62
+ * application's organization type `ownsApplication` before its first initialization when true.
63
+ */
64
+ readonly ownedByOneOrganization: boolean;
65
+ }
66
+ /**
67
+ * Every line's definition, keyed by the vocabulary, so a member added to {@link ApplicationLine}
68
+ * without a definition does not compile.
69
+ *
70
+ * Kept here, beside the vocabulary, rather than as a compiled framework-knowledge artifact kind:
71
+ * a definition is a few declarations that reference playbook refs, the `Record` gives totality for
72
+ * free, and a new artifact kind would need its own generator, loader, allow-list entry and audit
73
+ * rules for data no application ever ships. The catalog references are checked by the runtime's
74
+ * line-scope tests against the real catalog.
75
+ */
76
+ export declare const APPLICATION_LINE_DEFINITIONS: Readonly<Record<ApplicationLine, ApplicationLineDefinition>>;
77
+ /**
78
+ * Where the creator's choice of line is asked and recorded: one CHOICE question of the ENTRY
79
+ * playbook, whose options are the {@link ApplicationLine} values.
80
+ *
81
+ * The entry playbook belongs to no line, so an application with no line yet can still run it; it is
82
+ * the playbook in which the line gets declared.
83
+ */
84
+ export declare const APPLICATION_LINE_QUESTION: {
85
+ readonly playbookRef: string;
86
+ readonly questionRef: string;
87
+ };
88
+ /** Whether an application has declared its main line, and what the dossier says if it cannot be read as one. */
89
+ export declare enum ApplicationLineDeclarationState {
90
+ /** The dossier answers the line question with an {@link ApplicationLine} value. */
91
+ DECLARED = "declared",
92
+ /** The line question has no answer yet: the application has not been told what it is. */
93
+ UNDECLARED = "undeclared",
94
+ /**
95
+ * The dossier answers the line question with a value that is not a line, e.g. one a later release
96
+ * removed. Kept apart from UNDECLARED because the remedy differs: the creator answered, and the answer
97
+ * no longer means anything.
98
+ */
99
+ UNRECOGNIZED = "unrecognized"
100
+ }
101
+ /**
102
+ * Why a playbook is, or is not, in the application's ACTIVE SET (#1607): the playbooks its line lets it run.
103
+ *
104
+ * DERIVED on every read from the line and the catalog, never stored: growth inside a line is eligibility
105
+ * over the line's tree, and a record of it would be bookkeeping (`one-source-of-truth.md`). Whether an
106
+ * active playbook may run RIGHT NOW is a separate answer, the eligibility board's; this one says whether
107
+ * the application runs it at all, and why not.
108
+ */
109
+ export declare enum PlaybookActivationStatus {
110
+ /** In the tree of the application's line: it runs whenever its preconditions hold. */
111
+ ACTIVE = "active",
112
+ /** The line does not run it: excluded by name, or not reached from the line's root. */
113
+ OUTSIDE_LINE = "outside_line",
114
+ /** Everything it produces is a family the line declares not applicable, so there is nothing for it to do. */
115
+ NOT_APPLICABLE = "not_applicable",
116
+ /** No line is declared yet: only the entry playbook, and the composites that reach it, run until then. */
117
+ AWAITING_LINE = "awaiting_line"
118
+ }
119
+ export type ApplicationLineDeclaration = {
120
+ readonly state: ApplicationLineDeclarationState.DECLARED;
121
+ readonly line: ApplicationLine;
122
+ } | {
123
+ readonly state: ApplicationLineDeclarationState.UNDECLARED;
124
+ } | {
125
+ readonly state: ApplicationLineDeclarationState.UNRECOGNIZED;
126
+ readonly value: string;
127
+ };
128
+ /** Read the application's main line from its dossier. Pure; the dossier is the only place the line lives. */
129
+ export declare function resolveApplicationLineDeclaration(inputs: ApplicationCreatorInputs | undefined): ApplicationLineDeclaration;
130
+ /**
131
+ * The specification families that do not apply to this application, read from its dossier (#1604).
132
+ * Empty while no line is declared: nothing can be said not to apply before the kind of application is
133
+ * known. One resolution for every reader that sees only the application's exports, such as the expert
134
+ * charter derivation, so none of them re-derives the line.
135
+ */
136
+ export declare function resolveNotApplicableFamilies(inputs: ApplicationCreatorInputs | undefined, definitions?: Readonly<Record<string, ApplicationLineDefinition>>): ReadonlySet<string>;
137
+ /**
138
+ * A SECONDARY LINE: work opened beside the main line in the middle of an application's life (#1608), such as
139
+ * developing one feature or refining what exists. The main line decides what KIND of application it is; a
140
+ * secondary line never changes that. It changes the application's content: a feature line adds elements of
141
+ * its own, and a refinement line re-derives families the application already holds.
142
+ *
143
+ * A secondary line is an opened INSTANCE of its kind's entry composite (#1609): its instance key names the
144
+ * line, and the activation's purpose says what it is for. Its kind is derived from the entry playbook, so it
145
+ * has no record of its own beside the activation, which is committed the moment it is opened.
146
+ *
147
+ * Members are added with the line they name, and only then (the same rule as {@link ApplicationLine}).
148
+ */
149
+ export declare enum ApplicationSecondaryLine {
150
+ /**
151
+ * Develop one feature through the product model: the feature lands as elements of the requirements and
152
+ * the feature drafts, contributed by this line, and the domain plan and build decomposition re-derive
153
+ * from them before the feature is built. The alternative, appending a build task, stays the shortcut for
154
+ * a small code change.
155
+ */
156
+ FEATURE_DEVELOPMENT = "feature_development",
157
+ /**
158
+ * Refine one or more families the application already holds, in place (#1608): the requirements, the
159
+ * experience plan, the value proposition. The main line re-derives a family only when it is missing or
160
+ * stale, so without this line nothing re-derives a landed family on purpose. The line re-runs each named
161
+ * family's producer on its own prior output, guided by the line's purpose, then refreshes what that made
162
+ * stale and builds it. It adds no elements of its own: every child runs as the application.
163
+ */
164
+ REFINEMENT = "refinement"
165
+ }
166
+ /** What one kind of secondary line runs, and what it may add to. */
167
+ export interface ApplicationSecondaryLineDefinition {
168
+ readonly line: ApplicationSecondaryLine;
169
+ /** The composite an instance of which IS a line of this kind. It belongs to no main line's tree. */
170
+ readonly entryPlaybookRef: string;
171
+ /**
172
+ * The families this line adds ELEMENTS to, each element stamped with the line. It never replaces a family
173
+ * the main line holds: a whole-file landing from a line would overwrite the main line's content.
174
+ */
175
+ readonly contributesToFamilies: readonly ApplicationSpecificationFamily[];
176
+ /**
177
+ * Whether an instance of this line NAMES the families it re-derives (`refinedFamilies` on its activation):
178
+ * required when true, refused when false. What the line is FOR is then a typed fact, not only a sentence.
179
+ */
180
+ readonly namesRefinedFamilies: boolean;
181
+ }
182
+ /** Every kind's definition; a member added to {@link ApplicationSecondaryLine} without one does not compile. */
183
+ export declare const APPLICATION_SECONDARY_LINE_DEFINITIONS: Readonly<Record<ApplicationSecondaryLine, ApplicationSecondaryLineDefinition>>;
184
+ /** One secondary line the application has opened, read from its dossier. */
185
+ export interface OpenApplicationSecondaryLine {
186
+ readonly line: ApplicationSecondaryLine;
187
+ /** The line's name: the instance key of its entry composite. */
188
+ readonly instanceKey: string;
189
+ /** `<entry ref>@<key>`: how runs, rows and answers address this line. */
190
+ readonly instanceId: string;
191
+ readonly purpose: string;
192
+ /** Families the line needs although the main line declares them not applicable; empty when none. */
193
+ readonly neededFamilies: readonly ApplicationSpecificationFamily[];
194
+ /** The families a refinement line re-derives; empty for a line that names none. */
195
+ readonly refinedFamilies: readonly ApplicationSpecificationFamily[];
196
+ }
197
+ /**
198
+ * The secondary lines the application has opened (#1608), derived from the dossier's activations: every
199
+ * opened instance of a secondary-line entry composite. Sorted by instance id, like the activations.
200
+ */
201
+ export declare function resolveOpenSecondaryLines(inputs: ApplicationCreatorInputs | undefined): readonly OpenApplicationSecondaryLine[];
202
+ /** Whether a playbook is the entry of a secondary line, i.e. whether an instance of it IS a line. */
203
+ export declare function isSecondaryLineEntryPlaybook(playbookRef: string): boolean;
204
+ /** The secondary-line definition whose entry composite this playbook is, or `undefined`. */
205
+ export declare function secondaryLineDefinitionOfEntry(playbookRef: string): ApplicationSecondaryLineDefinition | undefined;
206
+ /**
207
+ * The families the application's secondary lines need although its main line declares them not applicable
208
+ * (#1608): the union over every line that is not ABANDONED.
209
+ *
210
+ * A COMPLETED line still counts: what it built is part of the product now, and a public website a finished
211
+ * feature added still needs its plan. An ABANDONED line's need lapses with it, and a file it landed is then
212
+ * reported as ignored, never deleted (#1604). An open line counts, of course.
213
+ */
214
+ export declare function resolveSecondaryLineNeededFamilies(inputs: ApplicationCreatorInputs | undefined): ReadonlySet<ApplicationSpecificationFamily>;
215
+ //# sourceMappingURL=application-line.application-creation.schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-line.application-creation.schemas.d.ts","sourceRoot":"","sources":["../../../../src/application-creation/application-line.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,4DAA4D,CAAC;AAC5G,OAAO,EAAyF,KAAK,wBAAwB,EAAE,MAAM,2DAA2D,CAAC;AAGjM;;;;;;;;;;;;;;;;;;GAkBG;AACH,oBAAY,eAAe;IACzB;;;;OAIG;IACH,QAAQ,aAAa;IACrB;;;;;OAKG;IACH,aAAa,kBAAkB;CAChC;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,+CAA+C;IAC/C,QAAQ,CAAC,eAAe,EAAE,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B,EAAE,CAiB/H;AAED,qGAAqG;AACrG,wBAAgB,4BAA4B,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAEzE;AAED,4FAA4F;AAC5F,wBAAgB,8BAA8B,CAAC,WAAW,EAAE,MAAM,GAAG,kCAAkC,GAAG,SAAS,CAElH;AAED;;;;;;;GAOG;AACH,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,wBAAwB,GAAG,SAAS,GAAG,WAAW,CAAC,8BAA8B,CAAC,CAQ5I"}
@@ -0,0 +1,253 @@
1
+ import { ApplicationSpecificationFamily } from "../_core/application-specification-family-identity.schemas.js";
2
+ import { ApplicationPlaybookInstanceClosureKind, creatorInputAnswerKey, isPlaybookInstanceOpen } from "./application-creator-inputs.application-creation.schemas.js";
3
+ import { playbookInstanceId } from "./playbook-instance.application-creation.schemas.js";
4
+ /**
5
+ * The kind of application being created: its MAIN LINE (epic #1602, #1603).
6
+ *
7
+ * App creation is not a B2B SaaS pipeline. It serves several lines of application, and not every
8
+ * playbook applies to every line: an internal tool has no marketing website and needs no market
9
+ * analysis. The line an application is created on decides which playbooks it may run, and which
10
+ * specification families do not apply to it at all.
11
+ *
12
+ * An application has exactly ONE main line at a time (Paul, 2026-09-25). The CREATOR chooses it,
13
+ * as a typed answer in the first playbook's interview ({@link APPLICATION_LINE_QUESTION}), and it is
14
+ * changeable deliberately by answering again. The model never proposes it: a line inferred from a
15
+ * vision would be a guess recorded as a decision.
16
+ *
17
+ * Secondary lines, opened in the middle of an application's life for a feature or a refinement,
18
+ * are a different concept with their own record (#1608); they never change this value.
19
+ *
20
+ * Members are added with the line they name, and only then. AI-native service companies come later
21
+ * (#1593), with the families and playbooks that line adds.
22
+ */
23
+ export var ApplicationLine;
24
+ (function (ApplicationLine) {
25
+ /**
26
+ * A commercial software product sold to other businesses: a market it competes in, a business model,
27
+ * a brand, usually a public website and documentation. The line every application was created on
28
+ * before lines existed, and its definition reproduces that catalog exactly.
29
+ */
30
+ ApplicationLine["B2B_SAAS"] = "b2b_saas";
31
+ /**
32
+ * Software a company builds for its own people (#1605): an operating team, not a market. No market
33
+ * analysis, business model, brand or public website applies; its users belong to the company that
34
+ * owns the application, which is typically signed in through its own identity provider and often
35
+ * reads its data from systems of record the company already runs.
36
+ */
37
+ ApplicationLine["INTERNAL_TOOL"] = "internal_tool";
38
+ })(ApplicationLine || (ApplicationLine = {}));
39
+ /**
40
+ * Every line's definition, keyed by the vocabulary, so a member added to {@link ApplicationLine}
41
+ * without a definition does not compile.
42
+ *
43
+ * Kept here, beside the vocabulary, rather than as a compiled framework-knowledge artifact kind:
44
+ * a definition is a few declarations that reference playbook refs, the `Record` gives totality for
45
+ * free, and a new artifact kind would need its own generator, loader, allow-list entry and audit
46
+ * rules for data no application ever ships. The catalog references are checked by the runtime's
47
+ * line-scope tests against the real catalog.
48
+ */
49
+ export const APPLICATION_LINE_DEFINITIONS = {
50
+ [ApplicationLine.B2B_SAAS]: {
51
+ line: ApplicationLine.B2B_SAAS,
52
+ rootPlaybookRef: "cross_cutting.application-creation",
53
+ /*
54
+ * The drafts-only variant of capability-map exists for lines with no market (#1604). This line has a
55
+ * market, so it runs capability-map, which drafts the features AND wires each benefit to them.
56
+ */
57
+ excludedPlaybookRefs: ["top_down.feature-drafts"],
58
+ notApplicableFamilies: [],
59
+ // Sold to other businesses: each customer is its own tenant, and no single organization owns the product.
60
+ ownedByOneOrganization: false,
61
+ },
62
+ [ApplicationLine.INTERNAL_TOOL]: {
63
+ line: ApplicationLine.INTERNAL_TOOL,
64
+ rootPlaybookRef: "cross_cutting.application-creation",
65
+ /*
66
+ * Only what the not-applicable families cannot decide. Capability-map produces the market AND the feature
67
+ * drafts, so it is named; this line drafts its features with top_down.feature-drafts instead. The market
68
+ * lane, the business model, the brand, the value proposition and the website plan leave the line by
69
+ * themselves: everything their trees produce is declared not applicable below. (The market lane was named
70
+ * here until #1608, when the walk learned to read a composite's whole tree; derived, it comes back when a
71
+ * secondary line needs the market snapshot, and a name would have kept it out.)
72
+ */
73
+ excludedPlaybookRefs: ["top_down.capability-map"],
74
+ notApplicableFamilies: [
75
+ ApplicationSpecificationFamily.MARKET_SNAPSHOT,
76
+ ApplicationSpecificationFamily.BUSINESS_MODEL,
77
+ ApplicationSpecificationFamily.BRAND_BRIEF,
78
+ ApplicationSpecificationFamily.WEBSITE_PLAN,
79
+ ],
80
+ ownedByOneOrganization: true,
81
+ },
82
+ };
83
+ /**
84
+ * Where the creator's choice of line is asked and recorded: one CHOICE question of the ENTRY
85
+ * playbook, whose options are the {@link ApplicationLine} values.
86
+ *
87
+ * The entry playbook belongs to no line, so an application with no line yet can still run it; it is
88
+ * the playbook in which the line gets declared.
89
+ */
90
+ export const APPLICATION_LINE_QUESTION = {
91
+ playbookRef: "top_down.vision-elicitation",
92
+ questionRef: "application-line",
93
+ };
94
+ /** Whether an application has declared its main line, and what the dossier says if it cannot be read as one. */
95
+ export var ApplicationLineDeclarationState;
96
+ (function (ApplicationLineDeclarationState) {
97
+ /** The dossier answers the line question with an {@link ApplicationLine} value. */
98
+ ApplicationLineDeclarationState["DECLARED"] = "declared";
99
+ /** The line question has no answer yet: the application has not been told what it is. */
100
+ ApplicationLineDeclarationState["UNDECLARED"] = "undeclared";
101
+ /**
102
+ * The dossier answers the line question with a value that is not a line, e.g. one a later release
103
+ * removed. Kept apart from UNDECLARED because the remedy differs: the creator answered, and the answer
104
+ * no longer means anything.
105
+ */
106
+ ApplicationLineDeclarationState["UNRECOGNIZED"] = "unrecognized";
107
+ })(ApplicationLineDeclarationState || (ApplicationLineDeclarationState = {}));
108
+ /**
109
+ * Why a playbook is, or is not, in the application's ACTIVE SET (#1607): the playbooks its line lets it run.
110
+ *
111
+ * DERIVED on every read from the line and the catalog, never stored: growth inside a line is eligibility
112
+ * over the line's tree, and a record of it would be bookkeeping (`one-source-of-truth.md`). Whether an
113
+ * active playbook may run RIGHT NOW is a separate answer, the eligibility board's; this one says whether
114
+ * the application runs it at all, and why not.
115
+ */
116
+ export var PlaybookActivationStatus;
117
+ (function (PlaybookActivationStatus) {
118
+ /** In the tree of the application's line: it runs whenever its preconditions hold. */
119
+ PlaybookActivationStatus["ACTIVE"] = "active";
120
+ /** The line does not run it: excluded by name, or not reached from the line's root. */
121
+ PlaybookActivationStatus["OUTSIDE_LINE"] = "outside_line";
122
+ /** Everything it produces is a family the line declares not applicable, so there is nothing for it to do. */
123
+ PlaybookActivationStatus["NOT_APPLICABLE"] = "not_applicable";
124
+ /** No line is declared yet: only the entry playbook, and the composites that reach it, run until then. */
125
+ PlaybookActivationStatus["AWAITING_LINE"] = "awaiting_line";
126
+ })(PlaybookActivationStatus || (PlaybookActivationStatus = {}));
127
+ const APPLICATION_LINE_VALUES = new Set(Object.values(ApplicationLine));
128
+ /** Read the application's main line from its dossier. Pure; the dossier is the only place the line lives. */
129
+ export function resolveApplicationLineDeclaration(inputs) {
130
+ const key = creatorInputAnswerKey(APPLICATION_LINE_QUESTION.playbookRef, APPLICATION_LINE_QUESTION.questionRef);
131
+ // The line is the DEFAULT instance's answer (#1609): an instance of the entry playbook never re-declares it.
132
+ const answer = (inputs?.answers ?? []).find((candidate) => creatorInputAnswerKey(candidate.playbookRef, candidate.questionRef, candidate.instanceKey) === key);
133
+ if (answer === undefined)
134
+ return { state: ApplicationLineDeclarationState.UNDECLARED };
135
+ return APPLICATION_LINE_VALUES.has(answer.value)
136
+ ? { state: ApplicationLineDeclarationState.DECLARED, line: answer.value }
137
+ : { state: ApplicationLineDeclarationState.UNRECOGNIZED, value: answer.value };
138
+ }
139
+ /**
140
+ * The specification families that do not apply to this application, read from its dossier (#1604).
141
+ * Empty while no line is declared: nothing can be said not to apply before the kind of application is
142
+ * known. One resolution for every reader that sees only the application's exports, such as the expert
143
+ * charter derivation, so none of them re-derives the line.
144
+ */
145
+ export function resolveNotApplicableFamilies(inputs, definitions = APPLICATION_LINE_DEFINITIONS) {
146
+ const declaration = resolveApplicationLineDeclaration(inputs);
147
+ if (declaration.state !== ApplicationLineDeclarationState.DECLARED)
148
+ return new Set();
149
+ /*
150
+ * Over the UNION of the lines (#1608): a family the main line declares not applicable applies again while
151
+ * a secondary line needs it. The one computation of applicability: the run scope reads this function too.
152
+ */
153
+ const needed = resolveSecondaryLineNeededFamilies(inputs);
154
+ return new Set(definitions[declaration.line].notApplicableFamilies.filter((family) => !needed.has(family)));
155
+ }
156
+ /**
157
+ * A SECONDARY LINE: work opened beside the main line in the middle of an application's life (#1608), such as
158
+ * developing one feature or refining what exists. The main line decides what KIND of application it is; a
159
+ * secondary line never changes that. It changes the application's content: a feature line adds elements of
160
+ * its own, and a refinement line re-derives families the application already holds.
161
+ *
162
+ * A secondary line is an opened INSTANCE of its kind's entry composite (#1609): its instance key names the
163
+ * line, and the activation's purpose says what it is for. Its kind is derived from the entry playbook, so it
164
+ * has no record of its own beside the activation, which is committed the moment it is opened.
165
+ *
166
+ * Members are added with the line they name, and only then (the same rule as {@link ApplicationLine}).
167
+ */
168
+ export var ApplicationSecondaryLine;
169
+ (function (ApplicationSecondaryLine) {
170
+ /**
171
+ * Develop one feature through the product model: the feature lands as elements of the requirements and
172
+ * the feature drafts, contributed by this line, and the domain plan and build decomposition re-derive
173
+ * from them before the feature is built. The alternative, appending a build task, stays the shortcut for
174
+ * a small code change.
175
+ */
176
+ ApplicationSecondaryLine["FEATURE_DEVELOPMENT"] = "feature_development";
177
+ /**
178
+ * Refine one or more families the application already holds, in place (#1608): the requirements, the
179
+ * experience plan, the value proposition. The main line re-derives a family only when it is missing or
180
+ * stale, so without this line nothing re-derives a landed family on purpose. The line re-runs each named
181
+ * family's producer on its own prior output, guided by the line's purpose, then refreshes what that made
182
+ * stale and builds it. It adds no elements of its own: every child runs as the application.
183
+ */
184
+ ApplicationSecondaryLine["REFINEMENT"] = "refinement";
185
+ })(ApplicationSecondaryLine || (ApplicationSecondaryLine = {}));
186
+ /** Every kind's definition; a member added to {@link ApplicationSecondaryLine} without one does not compile. */
187
+ export const APPLICATION_SECONDARY_LINE_DEFINITIONS = {
188
+ [ApplicationSecondaryLine.FEATURE_DEVELOPMENT]: {
189
+ line: ApplicationSecondaryLine.FEATURE_DEVELOPMENT,
190
+ entryPlaybookRef: "cross_cutting.feature-development",
191
+ contributesToFamilies: [ApplicationSpecificationFamily.REQUIREMENTS, ApplicationSpecificationFamily.FEATURE_DRAFTS],
192
+ namesRefinedFamilies: false,
193
+ },
194
+ [ApplicationSecondaryLine.REFINEMENT]: {
195
+ line: ApplicationSecondaryLine.REFINEMENT,
196
+ entryPlaybookRef: "cross_cutting.refinement",
197
+ // It adds no elements: each family it touches is re-derived whole, as the application.
198
+ contributesToFamilies: [],
199
+ namesRefinedFamilies: true,
200
+ },
201
+ };
202
+ /**
203
+ * The secondary lines the application has opened (#1608), derived from the dossier's activations: every
204
+ * opened instance of a secondary-line entry composite. Sorted by instance id, like the activations.
205
+ */
206
+ export function resolveOpenSecondaryLines(inputs) {
207
+ const lineByEntry = new Map(Object.values(APPLICATION_SECONDARY_LINE_DEFINITIONS).map((definition) => [definition.entryPlaybookRef, definition.line]));
208
+ const open = [];
209
+ for (const activation of Object.values(inputs?.activations ?? {})) {
210
+ const line = lineByEntry.get(activation.playbookRef);
211
+ // A closed line is no longer open; what it contributed stays, marked with it.
212
+ if (line === undefined || !isPlaybookInstanceOpen(activation))
213
+ continue;
214
+ open.push({
215
+ line,
216
+ instanceKey: activation.instanceKey,
217
+ instanceId: playbookInstanceId(activation.playbookRef, activation.instanceKey),
218
+ purpose: activation.purpose,
219
+ neededFamilies: activation.neededFamilies ?? [],
220
+ refinedFamilies: activation.refinedFamilies ?? [],
221
+ });
222
+ }
223
+ return open.sort((left, right) => left.instanceId.localeCompare(right.instanceId));
224
+ }
225
+ /** Whether a playbook is the entry of a secondary line, i.e. whether an instance of it IS a line. */
226
+ export function isSecondaryLineEntryPlaybook(playbookRef) {
227
+ return secondaryLineDefinitionOfEntry(playbookRef) !== undefined;
228
+ }
229
+ /** The secondary-line definition whose entry composite this playbook is, or `undefined`. */
230
+ export function secondaryLineDefinitionOfEntry(playbookRef) {
231
+ return Object.values(APPLICATION_SECONDARY_LINE_DEFINITIONS).find((definition) => definition.entryPlaybookRef === playbookRef);
232
+ }
233
+ /**
234
+ * The families the application's secondary lines need although its main line declares them not applicable
235
+ * (#1608): the union over every line that is not ABANDONED.
236
+ *
237
+ * A COMPLETED line still counts: what it built is part of the product now, and a public website a finished
238
+ * feature added still needs its plan. An ABANDONED line's need lapses with it, and a file it landed is then
239
+ * reported as ignored, never deleted (#1604). An open line counts, of course.
240
+ */
241
+ export function resolveSecondaryLineNeededFamilies(inputs) {
242
+ const needed = new Set();
243
+ for (const activation of Object.values(inputs?.activations ?? {})) {
244
+ if (!isSecondaryLineEntryPlaybook(activation.playbookRef))
245
+ continue;
246
+ if (activation.closure?.kind === ApplicationPlaybookInstanceClosureKind.ABANDONED)
247
+ continue;
248
+ for (const family of activation.neededFamilies ?? [])
249
+ needed.add(family);
250
+ }
251
+ return needed;
252
+ }
253
+ //# sourceMappingURL=application-line.application-creation.schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-line.application-creation.schemas.js","sourceRoot":"","sources":["../../../../src/application-creation/application-line.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,4DAA4D,CAAC;AAC5G,OAAO,EAAE,sCAAsC,EAAE,qBAAqB,EAAE,sBAAsB,EAAiC,MAAM,2DAA2D,CAAC;AACjM,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AAEtF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAN,IAAY,eAcX;AAdD,WAAY,eAAe;IACzB;;;;OAIG;IACH,wCAAqB,CAAA;IACrB;;;;;OAKG;IACH,kDAA+B,CAAA;AACjC,CAAC,EAdW,eAAe,KAAf,eAAe,QAc1B;AAgCD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAiE;IACxG,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE;QAC1B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AAE,SAAS;QAC5F,KAAK,MAAM,MAAM,IAAI,UAAU,CAAC,cAAc,IAAI,EAAE;YAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3E,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import { ApplicationSpecificationFamily } from \"../_core/application-specification-family-identity.schemas\";\nimport { ApplicationPlaybookInstanceClosureKind, creatorInputAnswerKey, isPlaybookInstanceOpen, type ApplicationCreatorInputs } from \"./application-creator-inputs.application-creation.schemas\";\nimport { playbookInstanceId } from \"./playbook-instance.application-creation.schemas\";\n\n/**\n * The kind of application being created: its MAIN LINE (epic #1602, #1603).\n *\n * App creation is not a B2B SaaS pipeline. It serves several lines of application, and not every\n * playbook applies to every line: an internal tool has no marketing website and needs no market\n * analysis. The line an application is created on decides which playbooks it may run, and which\n * specification families do not apply to it at all.\n *\n * An application has exactly ONE main line at a time (Paul, 2026-09-25). The CREATOR chooses it,\n * as a typed answer in the first playbook's interview ({@link APPLICATION_LINE_QUESTION}), and it is\n * changeable deliberately by answering again. The model never proposes it: a line inferred from a\n * vision would be a guess recorded as a decision.\n *\n * Secondary lines, opened in the middle of an application's life for a feature or a refinement,\n * are a different concept with their own record (#1608); they never change this value.\n *\n * Members are added with the line they name, and only then. AI-native service companies come later\n * (#1593), with the families and playbooks that line adds.\n */\nexport enum ApplicationLine {\n /**\n * A commercial software product sold to other businesses: a market it competes in, a business model,\n * a brand, usually a public website and documentation. The line every application was created on\n * before lines existed, and its definition reproduces that catalog exactly.\n */\n B2B_SAAS = \"b2b_saas\",\n /**\n * Software a company builds for its own people (#1605): an operating team, not a market. No market\n * analysis, business model, brand or public website applies; its users belong to the company that\n * owns the application, which is typically signed in through its own identity provider and often\n * reads its data from systems of record the company already runs.\n */\n INTERNAL_TOOL = \"internal_tool\",\n}\n\n/**\n * What one line admits, declared rather than listed.\n *\n * A line is the tree under its ROOT composite (every playbook its `method.choreography.admits` reach,\n * transitively), minus what it EXCLUDES. Declaring a root instead of enumerating playbooks is what keeps\n * a line correct when the catalog grows: a playbook added to a lane joins every line that admits the\n * lane, rather than joining none until someone remembers each line's list.\n *\n * Excluding a composite excludes the part of the tree reached only through it.\n */\nexport interface ApplicationLineDefinition {\n readonly line: ApplicationLine;\n /** The composite whose tree this line runs. */\n readonly rootPlaybookRef: string;\n /** Playbooks (leaf or composite) this line never runs, even though its root reaches them. */\n readonly excludedPlaybookRefs: readonly string[];\n /**\n * Specification families that do not apply to an application on this line, e.g. the market snapshot\n * of an internal tool. Declared here because it is a fact about the line; read by eligibility once a\n * family can be not applicable (#1604).\n */\n readonly notApplicableFamilies: readonly ApplicationSpecificationFamily[];\n /**\n * Whether an application on this line is OWNED by one organization, whose members are its users\n * (#1605): an internal tool belongs to the company that built it. The foundation declares the\n * application's organization type `ownsApplication` before its first initialization when true.\n */\n readonly ownedByOneOrganization: boolean;\n}\n\n/**\n * Every line's definition, keyed by the vocabulary, so a member added to {@link ApplicationLine}\n * without a definition does not compile.\n *\n * Kept here, beside the vocabulary, rather than as a compiled framework-knowledge artifact kind:\n * a definition is a few declarations that reference playbook refs, the `Record` gives totality for\n * free, and a new artifact kind would need its own generator, loader, allow-list entry and audit\n * rules for data no application ever ships. The catalog references are checked by the runtime's\n * line-scope tests against the real catalog.\n */\nexport const APPLICATION_LINE_DEFINITIONS: Readonly<Record<ApplicationLine, ApplicationLineDefinition>> = {\n [ApplicationLine.B2B_SAAS]: {\n line: ApplicationLine.B2B_SAAS,\n rootPlaybookRef: \"cross_cutting.application-creation\",\n /*\n * The drafts-only variant of capability-map exists for lines with no market (#1604). This line has a\n * market, so it runs capability-map, which drafts the features AND wires each benefit to them.\n */\n excludedPlaybookRefs: [\"top_down.feature-drafts\"],\n notApplicableFamilies: [],\n // Sold to other businesses: each customer is its own tenant, and no single organization owns the product.\n ownedByOneOrganization: false,\n },\n [ApplicationLine.INTERNAL_TOOL]: {\n line: ApplicationLine.INTERNAL_TOOL,\n rootPlaybookRef: \"cross_cutting.application-creation\",\n /*\n * Only what the not-applicable families cannot decide. Capability-map produces the market AND the feature\n * drafts, so it is named; this line drafts its features with top_down.feature-drafts instead. The market\n * lane, the business model, the brand, the value proposition and the website plan leave the line by\n * themselves: everything their trees produce is declared not applicable below. (The market lane was named\n * here until #1608, when the walk learned to read a composite's whole tree; derived, it comes back when a\n * secondary line needs the market snapshot, and a name would have kept it out.)\n */\n excludedPlaybookRefs: [\"top_down.capability-map\"],\n notApplicableFamilies: [\n ApplicationSpecificationFamily.MARKET_SNAPSHOT,\n ApplicationSpecificationFamily.BUSINESS_MODEL,\n ApplicationSpecificationFamily.BRAND_BRIEF,\n ApplicationSpecificationFamily.WEBSITE_PLAN,\n ],\n ownedByOneOrganization: true,\n },\n};\n\n/**\n * Where the creator's choice of line is asked and recorded: one CHOICE question of the ENTRY\n * playbook, whose options are the {@link ApplicationLine} values.\n *\n * The entry playbook belongs to no line, so an application with no line yet can still run it; it is\n * the playbook in which the line gets declared.\n */\nexport const APPLICATION_LINE_QUESTION: { readonly playbookRef: string; readonly questionRef: string } = {\n playbookRef: \"top_down.vision-elicitation\",\n questionRef: \"application-line\",\n};\n\n/** Whether an application has declared its main line, and what the dossier says if it cannot be read as one. */\nexport enum ApplicationLineDeclarationState {\n /** The dossier answers the line question with an {@link ApplicationLine} value. */\n DECLARED = \"declared\",\n /** The line question has no answer yet: the application has not been told what it is. */\n UNDECLARED = \"undeclared\",\n /**\n * The dossier answers the line question with a value that is not a line, e.g. one a later release\n * removed. Kept apart from UNDECLARED because the remedy differs: the creator answered, and the answer\n * no longer means anything.\n */\n UNRECOGNIZED = \"unrecognized\",\n}\n\n/**\n * Why a playbook is, or is not, in the application's ACTIVE SET (#1607): the playbooks its line lets it run.\n *\n * DERIVED on every read from the line and the catalog, never stored: growth inside a line is eligibility\n * over the line's tree, and a record of it would be bookkeeping (`one-source-of-truth.md`). Whether an\n * active playbook may run RIGHT NOW is a separate answer, the eligibility board's; this one says whether\n * the application runs it at all, and why not.\n */\nexport enum PlaybookActivationStatus {\n /** In the tree of the application's line: it runs whenever its preconditions hold. */\n ACTIVE = \"active\",\n /** The line does not run it: excluded by name, or not reached from the line's root. */\n OUTSIDE_LINE = \"outside_line\",\n /** Everything it produces is a family the line declares not applicable, so there is nothing for it to do. */\n NOT_APPLICABLE = \"not_applicable\",\n /** No line is declared yet: only the entry playbook, and the composites that reach it, run until then. */\n AWAITING_LINE = \"awaiting_line\",\n}\n\nexport type ApplicationLineDeclaration =\n | { readonly state: ApplicationLineDeclarationState.DECLARED; readonly line: ApplicationLine }\n | { readonly state: ApplicationLineDeclarationState.UNDECLARED }\n | { readonly state: ApplicationLineDeclarationState.UNRECOGNIZED; readonly value: string };\n\nconst APPLICATION_LINE_VALUES: ReadonlySet<string> = new Set(Object.values(ApplicationLine));\n\n/** Read the application's main line from its dossier. Pure; the dossier is the only place the line lives. */\nexport function resolveApplicationLineDeclaration(inputs: ApplicationCreatorInputs | undefined): ApplicationLineDeclaration {\n const key = creatorInputAnswerKey(APPLICATION_LINE_QUESTION.playbookRef, APPLICATION_LINE_QUESTION.questionRef);\n // The line is the DEFAULT instance's answer (#1609): an instance of the entry playbook never re-declares it.\n const answer = (inputs?.answers ?? []).find((candidate) => creatorInputAnswerKey(candidate.playbookRef, candidate.questionRef, candidate.instanceKey) === key);\n if (answer === undefined) return { state: ApplicationLineDeclarationState.UNDECLARED };\n return APPLICATION_LINE_VALUES.has(answer.value)\n ? { state: ApplicationLineDeclarationState.DECLARED, line: answer.value as ApplicationLine }\n : { state: ApplicationLineDeclarationState.UNRECOGNIZED, value: answer.value };\n}\n\n/**\n * The specification families that do not apply to this application, read from its dossier (#1604).\n * Empty while no line is declared: nothing can be said not to apply before the kind of application is\n * known. One resolution for every reader that sees only the application's exports, such as the expert\n * charter derivation, so none of them re-derives the line.\n */\nexport function resolveNotApplicableFamilies(\n inputs: ApplicationCreatorInputs | undefined,\n definitions: Readonly<Record<string, ApplicationLineDefinition>> = APPLICATION_LINE_DEFINITIONS,\n): ReadonlySet<string> {\n const declaration = resolveApplicationLineDeclaration(inputs);\n if (declaration.state !== ApplicationLineDeclarationState.DECLARED) return new Set<string>();\n /*\n * Over the UNION of the lines (#1608): a family the main line declares not applicable applies again while\n * a secondary line needs it. The one computation of applicability: the run scope reads this function too.\n */\n const needed = resolveSecondaryLineNeededFamilies(inputs);\n return new Set<string>(definitions[declaration.line]!.notApplicableFamilies.filter((family) => !needed.has(family)));\n}\n\n/**\n * A SECONDARY LINE: work opened beside the main line in the middle of an application's life (#1608), such as\n * developing one feature or refining what exists. The main line decides what KIND of application it is; a\n * secondary line never changes that. It changes the application's content: a feature line adds elements of\n * its own, and a refinement line re-derives families the application already holds.\n *\n * A secondary line is an opened INSTANCE of its kind's entry composite (#1609): its instance key names the\n * line, and the activation's purpose says what it is for. Its kind is derived from the entry playbook, so it\n * has no record of its own beside the activation, which is committed the moment it is opened.\n *\n * Members are added with the line they name, and only then (the same rule as {@link ApplicationLine}).\n */\nexport enum ApplicationSecondaryLine {\n /**\n * Develop one feature through the product model: the feature lands as elements of the requirements and\n * the feature drafts, contributed by this line, and the domain plan and build decomposition re-derive\n * from them before the feature is built. The alternative, appending a build task, stays the shortcut for\n * a small code change.\n */\n FEATURE_DEVELOPMENT = \"feature_development\",\n /**\n * Refine one or more families the application already holds, in place (#1608): the requirements, the\n * experience plan, the value proposition. The main line re-derives a family only when it is missing or\n * stale, so without this line nothing re-derives a landed family on purpose. The line re-runs each named\n * family's producer on its own prior output, guided by the line's purpose, then refreshes what that made\n * stale and builds it. It adds no elements of its own: every child runs as the application.\n */\n REFINEMENT = \"refinement\",\n}\n\n/** What one kind of secondary line runs, and what it may add to. */\nexport interface ApplicationSecondaryLineDefinition {\n readonly line: ApplicationSecondaryLine;\n /** The composite an instance of which IS a line of this kind. It belongs to no main line's tree. */\n readonly entryPlaybookRef: string;\n /**\n * The families this line adds ELEMENTS to, each element stamped with the line. It never replaces a family\n * the main line holds: a whole-file landing from a line would overwrite the main line's content.\n */\n readonly contributesToFamilies: readonly ApplicationSpecificationFamily[];\n /**\n * Whether an instance of this line NAMES the families it re-derives (`refinedFamilies` on its activation):\n * required when true, refused when false. What the line is FOR is then a typed fact, not only a sentence.\n */\n readonly namesRefinedFamilies: boolean;\n}\n\n/** Every kind's definition; a member added to {@link ApplicationSecondaryLine} without one does not compile. */\nexport const APPLICATION_SECONDARY_LINE_DEFINITIONS: Readonly<Record<ApplicationSecondaryLine, ApplicationSecondaryLineDefinition>> = {\n [ApplicationSecondaryLine.FEATURE_DEVELOPMENT]: {\n line: ApplicationSecondaryLine.FEATURE_DEVELOPMENT,\n entryPlaybookRef: \"cross_cutting.feature-development\",\n contributesToFamilies: [ApplicationSpecificationFamily.REQUIREMENTS, ApplicationSpecificationFamily.FEATURE_DRAFTS],\n namesRefinedFamilies: false,\n },\n [ApplicationSecondaryLine.REFINEMENT]: {\n line: ApplicationSecondaryLine.REFINEMENT,\n entryPlaybookRef: \"cross_cutting.refinement\",\n // It adds no elements: each family it touches is re-derived whole, as the application.\n contributesToFamilies: [],\n namesRefinedFamilies: true,\n },\n};\n\n/** One secondary line the application has opened, read from its dossier. */\nexport interface OpenApplicationSecondaryLine {\n readonly line: ApplicationSecondaryLine;\n /** The line's name: the instance key of its entry composite. */\n readonly instanceKey: string;\n /** `<entry ref>@<key>`: how runs, rows and answers address this line. */\n readonly instanceId: string;\n readonly purpose: string;\n /** Families the line needs although the main line declares them not applicable; empty when none. */\n readonly neededFamilies: readonly ApplicationSpecificationFamily[];\n /** The families a refinement line re-derives; empty for a line that names none. */\n readonly refinedFamilies: readonly ApplicationSpecificationFamily[];\n}\n\n/**\n * The secondary lines the application has opened (#1608), derived from the dossier's activations: every\n * opened instance of a secondary-line entry composite. Sorted by instance id, like the activations.\n */\nexport function resolveOpenSecondaryLines(inputs: ApplicationCreatorInputs | undefined): readonly OpenApplicationSecondaryLine[] {\n const lineByEntry = new Map(Object.values(APPLICATION_SECONDARY_LINE_DEFINITIONS).map((definition) => [definition.entryPlaybookRef, definition.line]));\n const open: OpenApplicationSecondaryLine[] = [];\n for (const activation of Object.values(inputs?.activations ?? {})) {\n const line = lineByEntry.get(activation.playbookRef);\n // A closed line is no longer open; what it contributed stays, marked with it.\n if (line === undefined || !isPlaybookInstanceOpen(activation)) continue;\n open.push({\n line,\n instanceKey: activation.instanceKey,\n instanceId: playbookInstanceId(activation.playbookRef, activation.instanceKey),\n purpose: activation.purpose,\n neededFamilies: activation.neededFamilies ?? [],\n refinedFamilies: activation.refinedFamilies ?? [],\n });\n }\n return open.sort((left, right) => left.instanceId.localeCompare(right.instanceId));\n}\n\n/** Whether a playbook is the entry of a secondary line, i.e. whether an instance of it IS a line. */\nexport function isSecondaryLineEntryPlaybook(playbookRef: string): boolean {\n return secondaryLineDefinitionOfEntry(playbookRef) !== undefined;\n}\n\n/** The secondary-line definition whose entry composite this playbook is, or `undefined`. */\nexport function secondaryLineDefinitionOfEntry(playbookRef: string): ApplicationSecondaryLineDefinition | undefined {\n return Object.values(APPLICATION_SECONDARY_LINE_DEFINITIONS).find((definition) => definition.entryPlaybookRef === playbookRef);\n}\n\n/**\n * The families the application's secondary lines need although its main line declares them not applicable\n * (#1608): the union over every line that is not ABANDONED.\n *\n * A COMPLETED line still counts: what it built is part of the product now, and a public website a finished\n * feature added still needs its plan. An ABANDONED line's need lapses with it, and a file it landed is then\n * reported as ignored, never deleted (#1604). An open line counts, of course.\n */\nexport function resolveSecondaryLineNeededFamilies(inputs: ApplicationCreatorInputs | undefined): ReadonlySet<ApplicationSpecificationFamily> {\n const needed = new Set<ApplicationSpecificationFamily>();\n for (const activation of Object.values(inputs?.activations ?? {})) {\n if (!isSecondaryLineEntryPlaybook(activation.playbookRef)) continue;\n if (activation.closure?.kind === ApplicationPlaybookInstanceClosureKind.ABANDONED) continue;\n for (const family of activation.neededFamilies ?? []) needed.add(family);\n }\n return needed;\n}\n"]}
@@ -0,0 +1,39 @@
1
+ import { ApplicationSpecificationFamily } from "../_core/application-specification-family-identity.schemas";
2
+ /**
3
+ * What one landed family DECIDED, read so a playbook can be activated by it (#1606).
4
+ *
5
+ * `member` is one value of the decision's vocabulary. `basis` and `detail` are the family's own account of
6
+ * why, carried so an unmet gate says what would flip it ("declined: no brand brief has landed") rather
7
+ * than only that it is unmet.
8
+ */
9
+ export interface ApplicationSpecificationFamilyDecisionReading {
10
+ readonly member: string;
11
+ readonly basis?: string;
12
+ readonly detail?: string;
13
+ }
14
+ /**
15
+ * One decision a family declares: its closed vocabulary, and how to read the decision out of a landed value.
16
+ *
17
+ * `read` answers `undefined` when the value does not carry the decision (malformed, or a version without
18
+ * it), which a gate reads as "not decided", never as a member.
19
+ */
20
+ export interface ApplicationSpecificationFamilyDecision {
21
+ readonly vocabulary: readonly string[];
22
+ readonly read: (value: unknown) => ApplicationSpecificationFamilyDecisionReading | undefined;
23
+ }
24
+ /**
25
+ * Every decision a family declares, keyed by family and then by DECISION REF.
26
+ *
27
+ * Only decisions keyed by a FRAMEWORK vocabulary are declarable. A playbook is application-agnostic, so a
28
+ * decision keyed by something one application authored (a placement plan's decision slug) could never be
29
+ * named by one. The capability composition qualifies: its decisions are keyed by `CompositionScenarioRef`,
30
+ * and the entry here is TOTAL over that enum, so a scenario added tomorrow is declarable the same day.
31
+ *
32
+ * The playbook contract (`MetaWorkflowPlaybookSchema`) checks every `artifact_decides` precondition against
33
+ * this table, so a misspelt decision or value fails generation by name instead of making a playbook
34
+ * ineligible forever — the way `TOPIC_COMPLETE` once failed with nothing reporting it.
35
+ */
36
+ export declare const APPLICATION_SPECIFICATION_FAMILY_DECISIONS: Readonly<Partial<Record<ApplicationSpecificationFamily, Readonly<Record<string, ApplicationSpecificationFamilyDecision>>>>>;
37
+ /** The declared decision, or `undefined` when the family declares no decision under that ref. */
38
+ export declare function getApplicationSpecificationFamilyDecision(family: string, decisionRef: string): ApplicationSpecificationFamilyDecision | undefined;
39
+ //# sourceMappingURL=application-specification-family-decisions.application-creation.schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-specification-family-decisions.application-creation.schemas.d.ts","sourceRoot":"","sources":["../../../../src/application-creation/application-specification-family-decisions.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,4DAA4D,CAAC;AAO5G;;;;;;GAMG;AACH,MAAM,WAAW,6CAA6C;IAC5D,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;GAKG;AACH,MAAM,WAAW,sCAAsC;IACrD,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,6CAA6C,GAAG,SAAS,CAAC;CAC9F;AAcD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,0CAA0C,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,8BAA8B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,sCAAsC,CAAC,CAAC,CAAC,CAAC,CAOlL,CAAC;AAEF,iGAAiG;AACjG,wBAAgB,yCAAyC,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,sCAAsC,GAAG,SAAS,CAEjJ"}
@@ -0,0 +1,37 @@
1
+ import { ApplicationSpecificationFamily } from "../_core/application-specification-family-identity.schemas.js";
2
+ import { CapabilityCompositionSchema, CompositionDisposition, CompositionScenarioRef, } from "../_core/capability-composition/capability-composition.schemas.js";
3
+ /**
4
+ * One capability-composition scenario's disposition, read from a landed composition.
5
+ */
6
+ function readCompositionScenarioDecision(scenarioRef) {
7
+ return (value) => {
8
+ const parsed = CapabilityCompositionSchema.safeParse(value);
9
+ if (!parsed.success)
10
+ return undefined;
11
+ const decision = parsed.data.scenarioDecisions.find((entry) => entry.scenarioRef === scenarioRef);
12
+ return decision === undefined ? undefined : { member: decision.disposition, basis: decision.basis, detail: decision.detail };
13
+ };
14
+ }
15
+ /**
16
+ * Every decision a family declares, keyed by family and then by DECISION REF.
17
+ *
18
+ * Only decisions keyed by a FRAMEWORK vocabulary are declarable. A playbook is application-agnostic, so a
19
+ * decision keyed by something one application authored (a placement plan's decision slug) could never be
20
+ * named by one. The capability composition qualifies: its decisions are keyed by `CompositionScenarioRef`,
21
+ * and the entry here is TOTAL over that enum, so a scenario added tomorrow is declarable the same day.
22
+ *
23
+ * The playbook contract (`MetaWorkflowPlaybookSchema`) checks every `artifact_decides` precondition against
24
+ * this table, so a misspelt decision or value fails generation by name instead of making a playbook
25
+ * ineligible forever — the way `TOPIC_COMPLETE` once failed with nothing reporting it.
26
+ */
27
+ export const APPLICATION_SPECIFICATION_FAMILY_DECISIONS = {
28
+ [ApplicationSpecificationFamily.CAPABILITY_COMPOSITION]: Object.fromEntries(Object.values(CompositionScenarioRef).map((scenarioRef) => [
29
+ scenarioRef,
30
+ { vocabulary: Object.values(CompositionDisposition), read: readCompositionScenarioDecision(scenarioRef) },
31
+ ])),
32
+ };
33
+ /** The declared decision, or `undefined` when the family declares no decision under that ref. */
34
+ export function getApplicationSpecificationFamilyDecision(family, decisionRef) {
35
+ return APPLICATION_SPECIFICATION_FAMILY_DECISIONS[family]?.[decisionRef];
36
+ }
37
+ //# sourceMappingURL=application-specification-family-decisions.application-creation.schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-specification-family-decisions.application-creation.schemas.js","sourceRoot":"","sources":["../../../../src/application-creation/application-specification-family-decisions.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,4DAA4D,CAAC;AAC5G,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,gEAAgE,CAAC;AA0BxE;;GAEG;AACH,SAAS,+BAA+B,CAAC,WAAmC;IAC1E,OAAO,CAAC,KAAc,EAA6D,EAAE;QACnF,MAAM,MAAM,GAAG,2BAA2B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC5D,IAAI,CAAC,MAAM,CAAC,OAAO;YAAE,OAAO,SAAS,CAAC;QACtC,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,KAAK,WAAW,CAAC,CAAC;QAClG,OAAO,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,WAAW,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;IAC/H,CAAC,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,0CAA0C,GAAgI;IACrL,CAAC,8BAA8B,CAAC,sBAAsB,CAAC,EAAE,MAAM,CAAC,WAAW,CACzE,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;QACzD,WAAW;QACX,EAAE,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE,IAAI,EAAE,+BAA+B,CAAC,WAAW,CAAC,EAAE;KAC1G,CAAC,CACH;CACF,CAAC;AAEF,iGAAiG;AACjG,MAAM,UAAU,yCAAyC,CAAC,MAAc,EAAE,WAAmB;IAC3F,OAAQ,0CAAyI,CAAC,MAAM,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC;AAC3K,CAAC","sourcesContent":["import { ApplicationSpecificationFamily } from \"../_core/application-specification-family-identity.schemas\";\nimport {\n CapabilityCompositionSchema,\n CompositionDisposition,\n CompositionScenarioRef,\n} from \"../_core/capability-composition/capability-composition.schemas\";\n\n/**\n * What one landed family DECIDED, read so a playbook can be activated by it (#1606).\n *\n * `member` is one value of the decision's vocabulary. `basis` and `detail` are the family's own account of\n * why, carried so an unmet gate says what would flip it (\"declined: no brand brief has landed\") rather\n * than only that it is unmet.\n */\nexport interface ApplicationSpecificationFamilyDecisionReading {\n readonly member: string;\n readonly basis?: string;\n readonly detail?: string;\n}\n\n/**\n * One decision a family declares: its closed vocabulary, and how to read the decision out of a landed value.\n *\n * `read` answers `undefined` when the value does not carry the decision (malformed, or a version without\n * it), which a gate reads as \"not decided\", never as a member.\n */\nexport interface ApplicationSpecificationFamilyDecision {\n readonly vocabulary: readonly string[];\n readonly read: (value: unknown) => ApplicationSpecificationFamilyDecisionReading | undefined;\n}\n\n/**\n * One capability-composition scenario's disposition, read from a landed composition.\n */\nfunction readCompositionScenarioDecision(scenarioRef: CompositionScenarioRef) {\n return (value: unknown): ApplicationSpecificationFamilyDecisionReading | undefined => {\n const parsed = CapabilityCompositionSchema.safeParse(value);\n if (!parsed.success) return undefined;\n const decision = parsed.data.scenarioDecisions.find((entry) => entry.scenarioRef === scenarioRef);\n return decision === undefined ? undefined : { member: decision.disposition, basis: decision.basis, detail: decision.detail };\n };\n}\n\n/**\n * Every decision a family declares, keyed by family and then by DECISION REF.\n *\n * Only decisions keyed by a FRAMEWORK vocabulary are declarable. A playbook is application-agnostic, so a\n * decision keyed by something one application authored (a placement plan's decision slug) could never be\n * named by one. The capability composition qualifies: its decisions are keyed by `CompositionScenarioRef`,\n * and the entry here is TOTAL over that enum, so a scenario added tomorrow is declarable the same day.\n *\n * The playbook contract (`MetaWorkflowPlaybookSchema`) checks every `artifact_decides` precondition against\n * this table, so a misspelt decision or value fails generation by name instead of making a playbook\n * ineligible forever — the way `TOPIC_COMPLETE` once failed with nothing reporting it.\n */\nexport const APPLICATION_SPECIFICATION_FAMILY_DECISIONS: Readonly<Partial<Record<ApplicationSpecificationFamily, Readonly<Record<string, ApplicationSpecificationFamilyDecision>>>>> = {\n [ApplicationSpecificationFamily.CAPABILITY_COMPOSITION]: Object.fromEntries(\n Object.values(CompositionScenarioRef).map((scenarioRef) => [\n scenarioRef,\n { vocabulary: Object.values(CompositionDisposition), read: readCompositionScenarioDecision(scenarioRef) },\n ]),\n ),\n};\n\n/** The declared decision, or `undefined` when the family declares no decision under that ref. */\nexport function getApplicationSpecificationFamilyDecision(family: string, decisionRef: string): ApplicationSpecificationFamilyDecision | undefined {\n return (APPLICATION_SPECIFICATION_FAMILY_DECISIONS as Readonly<Record<string, Readonly<Record<string, ApplicationSpecificationFamilyDecision>>>>)[family]?.[decisionRef];\n}\n"]}