@wildo-ai/saas-specifications 1.1.5 → 1.1.6

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 +8 -8
  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
@@ -1,4 +1,6 @@
1
1
  import { z } from "zod";
2
+ import { ApplicationSpecificationFamily } from "../_core/application-specification-family-identity.schemas.js";
3
+ import { PlaybookInstanceKeySchema, playbookInstanceId } from "./playbook-instance.application-creation.schemas.js";
2
4
  /**
3
5
  * THE DOSSIER's committed half: what the creator answered, question by question (#1454, Step 5).
4
6
  *
@@ -34,6 +36,12 @@ export const ApplicationCreatorInputAnswerSchema = z.strictObject({
34
36
  playbookRef: z.string().trim().min(1),
35
37
  /** The question's own `ref` inside that playbook's `method.elicitation.questions`. */
36
38
  questionRef: z.string().trim().min(1),
39
+ /**
40
+ * The playbook INSTANCE this answer belongs to (#1609); absent for the default instance. An instance
41
+ * reads its own answer first and falls back to the default instance's, so company-level answers are
42
+ * given once and a feature line answers only what differs for it.
43
+ */
44
+ instanceKey: PlaybookInstanceKeySchema.optional(),
37
45
  /** The answer, as the interview's validation admitted it. Never empty: an unanswered question has no entry. */
38
46
  value: z.string().trim().min(1),
39
47
  /** When this answer was given, ISO 8601. The instant a playbook's outputs are measured against. */
@@ -41,13 +49,112 @@ export const ApplicationCreatorInputAnswerSchema = z.strictObject({
41
49
  /** Who answered — a user ref of the workbench session that recorded it. Provenance, never authority. */
42
50
  answeredByRef: z.string().trim().min(1),
43
51
  });
52
+ /**
53
+ * One playbook INSTANCE the creator opened (#1609, carried from #1607): the non-derivable act the dossier
54
+ * records beside the line.
55
+ *
56
+ * Only what cannot be derived. Which playbooks the line runs is derived (`describeApplicationActiveSet`);
57
+ * when and by whom this was opened is the commit that recorded it (author, time, and the purpose and actor
58
+ * trailers). So an activation is its identity and its purpose, nothing else.
59
+ */
60
+ /**
61
+ * How an instance ENDED (#1608, #1609 R10). An instance is closed rather than deleted: what it contributed
62
+ * stays, with its provenance, and its record says it no longer runs.
63
+ */
64
+ export var ApplicationPlaybookInstanceClosureKind;
65
+ (function (ApplicationPlaybookInstanceClosureKind) {
66
+ /** Its work is done, e.g. the feature it was opened for is built. */
67
+ ApplicationPlaybookInstanceClosureKind["COMPLETED"] = "completed";
68
+ /**
69
+ * Stopped before it was done. Its contributions stay, marked with it; its waiting runs are cancelled and its
70
+ * interrupted progress is consumed, so nothing resumes it.
71
+ */
72
+ ApplicationPlaybookInstanceClosureKind["ABANDONED"] = "abandoned";
73
+ })(ApplicationPlaybookInstanceClosureKind || (ApplicationPlaybookInstanceClosureKind = {}));
74
+ export const ApplicationPlaybookInstanceClosureSchema = z.strictObject({
75
+ kind: z.enum(ApplicationPlaybookInstanceClosureKind),
76
+ /** Why, in the words of whoever closed it. When and by whom is the commit that recorded it. */
77
+ reason: z.string().trim().min(1).optional(),
78
+ });
79
+ export const ApplicationPlaybookActivationSchema = z.strictObject({
80
+ playbookRef: z.string().trim().min(1),
81
+ instanceKey: PlaybookInstanceKeySchema,
82
+ /** What this instance is for, in the creator's terms ("the enterprise segment", "the invoicing feature"). */
83
+ purpose: z.string().trim().min(1),
84
+ /** Present once the instance is closed: it no longer runs, and a secondary line no longer counts as open. */
85
+ closure: ApplicationPlaybookInstanceClosureSchema.optional(),
86
+ /**
87
+ * Families a SECONDARY LINE needs although the main line declares them not applicable (#1608): an internal
88
+ * tool adding a public website as a feature needs the website plan, and the market snapshot the plan's
89
+ * sections draw on. While the line is not abandoned they apply to the application, so the playbooks that
90
+ * produce them run again and their files are read. Sorted and unique; absent when the line needs nothing
91
+ * the main line excludes.
92
+ *
93
+ * The creator's decision, taken when the line is opened. The assistant may PROPOSE it from what the person
94
+ * asked for ("add a public website"), and the approval card names the families, so what is recorded is what
95
+ * the person approved; it is never inferred silently from the purpose, which would record a guess as a
96
+ * decision. Only an instance of a secondary line's entry carries it; the landing refuses it on any other
97
+ * instance.
98
+ */
99
+ neededFamilies: z.array(z.enum(ApplicationSpecificationFamily)).min(1).optional(),
100
+ /**
101
+ * The families a REFINEMENT line re-derives (#1608): what the creator asked to refine, e.g. the requirements
102
+ * or the experience plan. Required on a refinement line and refused on any other instance. Each is a family
103
+ * the application already holds and a producer of it re-derives from its own prior output, so the line
104
+ * refines what exists instead of re-authoring it. Sorted and unique.
105
+ *
106
+ * The creator's decision, like `neededFamilies`: the assistant may propose it from what the person asked,
107
+ * and the approval card names it, so what is recorded is what the person approved.
108
+ */
109
+ refinedFamilies: z.array(z.enum(ApplicationSpecificationFamily)).min(1).optional(),
110
+ });
44
111
  export const ApplicationCreatorInputsSchema = z.strictObject({
45
112
  schemaVersion: z.literal(1),
46
113
  answers: z.array(ApplicationCreatorInputAnswerSchema),
114
+ /**
115
+ * The playbook instances the creator opened, keyed by instance id (`<ref>@<key>`), in SORTED key order
116
+ * (#1609). Absent until the first one: a fresh application records no activation, and a run that lands
117
+ * never writes here.
118
+ *
119
+ * A keyed object rather than a list, one entry per block, kept sorted by {@link withPlaybookActivation}:
120
+ * two branches that each open an instance then touch different lines, so they merge without a textual
121
+ * conflict unless the two keys are adjacent in sort order, in which case the conflict is a one-line
122
+ * choice. A list appended at the tail would conflict on every concurrent addition.
123
+ */
124
+ activations: z.record(z.string(), ApplicationPlaybookActivationSchema).optional(),
47
125
  });
48
- /** The one key an answer is addressed by. `playbookRef` and `questionRef` are refs, never free text, so `#` cannot occur in either. */
49
- export function creatorInputAnswerKey(playbookRef, questionRef) {
50
- return `${playbookRef}#${questionRef}`;
126
+ /**
127
+ * The one key an answer is addressed by. `playbookRef` and `questionRef` are refs, never free text, so `#`
128
+ * cannot occur in either. The default instance keeps the key it always had (`<ref>#<question>`); an
129
+ * instance's answer is `<ref>@<key>#<question>` (#1609).
130
+ */
131
+ export function creatorInputAnswerKey(playbookRef, questionRef, instanceKey) {
132
+ return `${playbookInstanceId(playbookRef, instanceKey)}#${questionRef}`;
133
+ }
134
+ /** The dossier with one more activation, or one reworded, keyed by instance id and kept in sorted order. */
135
+ export function withPlaybookActivation(inputs, activation) {
136
+ const merged = { ...(inputs?.activations ?? {}), [playbookInstanceId(activation.playbookRef, activation.instanceKey)]: activation };
137
+ return {
138
+ schemaVersion: 1,
139
+ answers: inputs?.answers ?? [],
140
+ activations: Object.fromEntries(Object.entries(merged).sort(([left], [right]) => left.localeCompare(right))),
141
+ };
142
+ }
143
+ /** Whether this activation is still open: opened and not closed. */
144
+ export function isPlaybookInstanceOpen(activation) {
145
+ return activation !== undefined && activation.closure === undefined;
146
+ }
147
+ /**
148
+ * The dossier with one instance closed (#1608). Refused for an instance nobody opened, and for one already
149
+ * closed: closing is a decision taken once, and a second closure would overwrite the first one's reason.
150
+ */
151
+ export function withPlaybookInstanceClosure(inputs, instanceId, closure) {
152
+ const activation = inputs?.activations?.[instanceId];
153
+ if (activation === undefined)
154
+ throw new Error(`"${instanceId}" was never opened, so it cannot be closed.`);
155
+ if (activation.closure !== undefined)
156
+ throw new Error(`"${instanceId}" is already ${activation.closure.kind}.`);
157
+ return withPlaybookActivation(inputs, { ...activation, closure });
51
158
  }
52
159
  /**
53
160
  * The family validator — FINDINGS, each an error: a dossier holding two answers to one question
@@ -61,36 +168,63 @@ export function validateApplicationCreatorInputs(inputs) {
61
168
  const findings = [];
62
169
  const seen = new Set();
63
170
  for (const answer of inputs.answers) {
64
- const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef);
171
+ const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef, answer.instanceKey);
65
172
  if (seen.has(key))
66
- findings.push(`question "${answer.questionRef}" of "${answer.playbookRef}" is answered more than once`);
173
+ findings.push(`question "${answer.questionRef}" of "${playbookInstanceId(answer.playbookRef, answer.instanceKey)}" is answered more than once`);
67
174
  seen.add(key);
68
175
  }
176
+ // An activation is addressed by its own identity; a key that says another would be read as the wrong instance.
177
+ for (const [key, activation] of Object.entries(inputs.activations ?? {})) {
178
+ const expected = playbookInstanceId(activation.playbookRef, activation.instanceKey);
179
+ if (key !== expected)
180
+ findings.push(`activation "${key}" records the instance "${expected}"`);
181
+ }
182
+ // An answer to an instance nobody opened would be read by no run; keeping it unreported would hide a typo.
183
+ for (const answer of inputs.answers) {
184
+ if (answer.instanceKey === undefined)
185
+ continue;
186
+ const id = playbookInstanceId(answer.playbookRef, answer.instanceKey);
187
+ if (!inputs.activations || !(id in inputs.activations))
188
+ findings.push(`question "${answer.questionRef}" is answered for "${id}", an instance that was never opened`);
189
+ }
69
190
  return findings;
70
191
  }
71
192
  /**
72
193
  * The answers one playbook's interview reads, in the `{ questionRef, answer }` shape the run route
73
194
  * already accepts. A dossier with nothing for this playbook yields `[]`, which the run treats as
74
195
  * "not interviewed yet", never as a refusal.
196
+ *
197
+ * For an INSTANCE (#1609), its own answer wins per question and the default instance's fills the rest:
198
+ * what the company answered once is shared, and the instance answers only what differs for it.
75
199
  */
76
- export function readCreatorInputAnswersForPlaybook(inputs, playbookRef) {
77
- return (inputs?.answers ?? [])
78
- .filter((answer) => answer.playbookRef === playbookRef)
79
- .map((answer) => ({ questionRef: answer.questionRef, answer: answer.value }));
200
+ export function readCreatorInputAnswersForPlaybook(inputs, playbookRef, instanceKey) {
201
+ const byQuestion = new Map();
202
+ for (const answer of inputs?.answers ?? []) {
203
+ if (answer.playbookRef === playbookRef && answer.instanceKey === undefined)
204
+ byQuestion.set(answer.questionRef, answer.value);
205
+ }
206
+ if (instanceKey !== undefined) {
207
+ for (const answer of inputs?.answers ?? []) {
208
+ if (answer.playbookRef === playbookRef && answer.instanceKey === instanceKey)
209
+ byQuestion.set(answer.questionRef, answer.value);
210
+ }
211
+ }
212
+ return [...byQuestion].map(([questionRef, answer]) => ({ questionRef, answer }));
80
213
  }
81
214
  /**
82
215
  * The dossier after one more answer, or after one answer changed — REPLACE by key, keep the rest,
83
216
  * keep the file's order for the entries that were already there so a diff shows only the change.
84
217
  */
85
218
  export function withCreatorInputAnswer(inputs, answer) {
86
- const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef);
219
+ const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef, answer.instanceKey);
87
220
  const existing = inputs?.answers ?? [];
88
- const replaced = existing.some((candidate) => creatorInputAnswerKey(candidate.playbookRef, candidate.questionRef) === key);
221
+ const keyOf = (candidate) => creatorInputAnswerKey(candidate.playbookRef, candidate.questionRef, candidate.instanceKey);
222
+ const replaced = existing.some((candidate) => keyOf(candidate) === key);
89
223
  return {
90
224
  schemaVersion: 1,
91
- answers: replaced
92
- ? existing.map((candidate) => (creatorInputAnswerKey(candidate.playbookRef, candidate.questionRef) === key ? answer : candidate))
93
- : [...existing, answer],
225
+ answers: replaced ? existing.map((candidate) => (keyOf(candidate) === key ? answer : candidate)) : [...existing, answer],
226
+ // The activations are a separate record: an answer never adds, drops or reorders one.
227
+ ...(inputs?.activations ? { activations: inputs.activations } : {}),
94
228
  };
95
229
  }
96
230
  //# sourceMappingURL=application-creator-inputs.application-creation.schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"application-creator-inputs.application-creation.schemas.js","sourceRoot":"","sources":["../../../../src/application-creation/application-creator-inputs.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,MAAM,mCAA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AAC,GAAG,QAAQ,EAAE,MAAM,CAAC;KAC1B,CAAC;AACJ,CAAC","sourcesContent":["import { z } from \"zod\";\n\n/**\n * THE DOSSIER's committed half: what the creator answered, question by question (#1454, Step 5).\n *\n * ## What one entry is\n *\n * One answer to one question a playbook DECLARES in its `method.elicitation`. The keys are the\n * playbook's own `ref` and the question's own `ref`, so nothing here invents a vocabulary: a\n * question that no playbook asks cannot be answered, and a playbook run that needs an answer finds\n * it under the ref it declared. The value is kept exactly as the interview's validation admitted\n * it — a CONFIRM answer canonically (`yes` / `no`), a CHOICE answer as one of its declared options,\n * free text trimmed.\n *\n * ## Why ONE file for every playbook, rather than one file per playbook\n *\n * The design note proposed a file per source. The family machinery lands one file per family and\n * reads it through one companion-exports slot, so a per-playbook split would need a second layout\n * and a second reader for no gain in truth: `answeredAt` on every entry already carries the\n * instant a per-file git history would have carried, and it carries it per ANSWER, which is finer\n * than per file. Freshness of a playbook's outputs against its answers is derived from that instant\n * (Step 8), not from a file's commit.\n *\n * ## What it deliberately is not\n *\n * Not a form. A creator answers through the conversation or the dossier, one question at a time,\n * and each answer lands here as a working edit that a commit accepts\n * (`.claude/rules/one-source-of-truth.md`, rules 2 and 3). Not a product declaration either: a\n * question whose answer is a typed config key (the operating entity, the jurisdictions) is answered\n * here and WRITTEN into `wildo.saas.config.ts` by the run that reads it — the dossier is the\n * interview's memory, the config stays the declaration.\n */\nexport const ApplicationCreatorInputAnswerSchema = z.strictObject({\n /** The playbook that asks this question — its compiled `ref` (`top_down.vision-elicitation`). */\n playbookRef: z.string().trim().min(1),\n /** The question's own `ref` inside that playbook's `method.elicitation.questions`. */\n questionRef: z.string().trim().min(1),\n /** The answer, as the interview's validation admitted it. Never empty: an unanswered question has no entry. */\n value: z.string().trim().min(1),\n /** When this answer was given, ISO 8601. The instant a playbook's outputs are measured against. */\n answeredAt: z.iso.datetime(),\n /** Who answered — a user ref of the workbench session that recorded it. Provenance, never authority. */\n answeredByRef: z.string().trim().min(1),\n});\nexport type ApplicationCreatorInputAnswer = z.infer<typeof ApplicationCreatorInputAnswerSchema>;\n\nexport const ApplicationCreatorInputsSchema = z.strictObject({\n schemaVersion: z.literal(1),\n answers: z.array(ApplicationCreatorInputAnswerSchema),\n});\nexport type ApplicationCreatorInputs = z.infer<typeof ApplicationCreatorInputsSchema>;\n\n/** The one key an answer is addressed by. `playbookRef` and `questionRef` are refs, never free text, so `#` cannot occur in either. */\nexport function creatorInputAnswerKey(playbookRef: string, questionRef: string): string {\n return `${playbookRef}#${questionRef}`;\n}\n\n/**\n * The family validator — FINDINGS, each an error: a dossier holding two answers to one question\n * cannot be read, because a run would have to pick one and nothing says which.\n *\n * Whether an answer names a question its playbook actually asks is NOT checked here: the family\n * schema does not know the catalog, and an answer to a question a later catalog renamed is a\n * stale answer to report, never a corrupt file. The dossier projection reports those as orphaned.\n */\nexport function validateApplicationCreatorInputs(inputs: ApplicationCreatorInputs): readonly string[] {\n const findings: string[] = [];\n const seen = new Set<string>();\n for (const answer of inputs.answers) {\n const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef);\n if (seen.has(key)) findings.push(`question \"${answer.questionRef}\" of \"${answer.playbookRef}\" is answered more than once`);\n seen.add(key);\n }\n return findings;\n}\n\n/**\n * The answers one playbook's interview reads, in the `{ questionRef, answer }` shape the run route\n * already accepts. A dossier with nothing for this playbook yields `[]`, which the run treats as\n * \"not interviewed yet\", never as a refusal.\n */\nexport function readCreatorInputAnswersForPlaybook(\n inputs: ApplicationCreatorInputs | undefined,\n playbookRef: string,\n): readonly { readonly questionRef: string; readonly answer: string }[] {\n return (inputs?.answers ?? [])\n .filter((answer) => answer.playbookRef === playbookRef)\n .map((answer) => ({ questionRef: answer.questionRef, answer: answer.value }));\n}\n\n/**\n * The dossier after one more answer, or after one answer changed — REPLACE by key, keep the rest,\n * keep the file's order for the entries that were already there so a diff shows only the change.\n */\nexport function withCreatorInputAnswer(\n inputs: ApplicationCreatorInputs | undefined,\n answer: ApplicationCreatorInputAnswer,\n): ApplicationCreatorInputs {\n const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef);\n const existing = inputs?.answers ?? [];\n const replaced = existing.some((candidate) => creatorInputAnswerKey(candidate.playbookRef, candidate.questionRef) === key);\n return {\n schemaVersion: 1,\n answers: replaced\n ? existing.map((candidate) => (creatorInputAnswerKey(candidate.playbookRef, candidate.questionRef) === key ? answer : candidate))\n : [...existing, answer],\n };\n}\n"]}
1
+ {"version":3,"file":"application-creator-inputs.application-creation.schemas.js","sourceRoot":"","sources":["../../../../src/application-creation/application-creator-inputs.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,8BAA8B,EAAE,MAAM,4DAA4D,CAAC;AAC5G,OAAO,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AAEjH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,YAAY,CAAC;IAChE,iGAAiG;IACjG,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrC,sFAAsF;IACtF,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrC;;;;OAIG;IACH,WAAW,EAAE,yBAAyB,CAAC,QAAQ,EAAE;IACjD,+GAA+G;IAC/G,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,mGAAmG;IACnG,UAAU,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;IAC5B,wGAAwG;IACxG,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxC,CAAC,CAAC;AAGH;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C,CAAC,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;AACnF,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CACpC,MAA4C,EAC5C,MAAqC;IAErC,MAAM,GAAG,GAAG,qBAAqB,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;IAC9F,MAAM,QAAQ,GAAG,MAAM,EAAE,OAAO,IAAI,EAAE,CAAC;IACvC,MAAM,KAAK,GAAG,CAAC,SAAwC,EAAE,EAAE,CAAC,qBAAqB,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACvJ,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC;IACxE,OAAO;QACL,aAAa,EAAE,CAAC;QAChB,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,QAAQ,EAAE,MAAM,CAAC;QACxH,sFAAsF;QACtF,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACpE,CAAC;AACJ,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { ApplicationSpecificationFamily } from \"../_core/application-specification-family-identity.schemas\";\nimport { PlaybookInstanceKeySchema, playbookInstanceId } from \"./playbook-instance.application-creation.schemas\";\n\n/**\n * THE DOSSIER's committed half: what the creator answered, question by question (#1454, Step 5).\n *\n * ## What one entry is\n *\n * One answer to one question a playbook DECLARES in its `method.elicitation`. The keys are the\n * playbook's own `ref` and the question's own `ref`, so nothing here invents a vocabulary: a\n * question that no playbook asks cannot be answered, and a playbook run that needs an answer finds\n * it under the ref it declared. The value is kept exactly as the interview's validation admitted\n * it — a CONFIRM answer canonically (`yes` / `no`), a CHOICE answer as one of its declared options,\n * free text trimmed.\n *\n * ## Why ONE file for every playbook, rather than one file per playbook\n *\n * The design note proposed a file per source. The family machinery lands one file per family and\n * reads it through one companion-exports slot, so a per-playbook split would need a second layout\n * and a second reader for no gain in truth: `answeredAt` on every entry already carries the\n * instant a per-file git history would have carried, and it carries it per ANSWER, which is finer\n * than per file. Freshness of a playbook's outputs against its answers is derived from that instant\n * (Step 8), not from a file's commit.\n *\n * ## What it deliberately is not\n *\n * Not a form. A creator answers through the conversation or the dossier, one question at a time,\n * and each answer lands here as a working edit that a commit accepts\n * (`.claude/rules/one-source-of-truth.md`, rules 2 and 3). Not a product declaration either: a\n * question whose answer is a typed config key (the operating entity, the jurisdictions) is answered\n * here and WRITTEN into `wildo.saas.config.ts` by the run that reads it — the dossier is the\n * interview's memory, the config stays the declaration.\n */\nexport const ApplicationCreatorInputAnswerSchema = z.strictObject({\n /** The playbook that asks this question — its compiled `ref` (`top_down.vision-elicitation`). */\n playbookRef: z.string().trim().min(1),\n /** The question's own `ref` inside that playbook's `method.elicitation.questions`. */\n questionRef: z.string().trim().min(1),\n /**\n * The playbook INSTANCE this answer belongs to (#1609); absent for the default instance. An instance\n * reads its own answer first and falls back to the default instance's, so company-level answers are\n * given once and a feature line answers only what differs for it.\n */\n instanceKey: PlaybookInstanceKeySchema.optional(),\n /** The answer, as the interview's validation admitted it. Never empty: an unanswered question has no entry. */\n value: z.string().trim().min(1),\n /** When this answer was given, ISO 8601. The instant a playbook's outputs are measured against. */\n answeredAt: z.iso.datetime(),\n /** Who answered — a user ref of the workbench session that recorded it. Provenance, never authority. */\n answeredByRef: z.string().trim().min(1),\n});\nexport type ApplicationCreatorInputAnswer = z.infer<typeof ApplicationCreatorInputAnswerSchema>;\n\n/**\n * One playbook INSTANCE the creator opened (#1609, carried from #1607): the non-derivable act the dossier\n * records beside the line.\n *\n * Only what cannot be derived. Which playbooks the line runs is derived (`describeApplicationActiveSet`);\n * when and by whom this was opened is the commit that recorded it (author, time, and the purpose and actor\n * trailers). So an activation is its identity and its purpose, nothing else.\n */\n/**\n * How an instance ENDED (#1608, #1609 R10). An instance is closed rather than deleted: what it contributed\n * stays, with its provenance, and its record says it no longer runs.\n */\nexport enum ApplicationPlaybookInstanceClosureKind {\n /** Its work is done, e.g. the feature it was opened for is built. */\n COMPLETED = \"completed\",\n /**\n * Stopped before it was done. Its contributions stay, marked with it; its waiting runs are cancelled and its\n * interrupted progress is consumed, so nothing resumes it.\n */\n ABANDONED = \"abandoned\",\n}\n\nexport const ApplicationPlaybookInstanceClosureSchema = z.strictObject({\n kind: z.enum(ApplicationPlaybookInstanceClosureKind),\n /** Why, in the words of whoever closed it. When and by whom is the commit that recorded it. */\n reason: z.string().trim().min(1).optional(),\n});\nexport type ApplicationPlaybookInstanceClosure = z.infer<typeof ApplicationPlaybookInstanceClosureSchema>;\n\nexport const ApplicationPlaybookActivationSchema = z.strictObject({\n playbookRef: z.string().trim().min(1),\n instanceKey: PlaybookInstanceKeySchema,\n /** What this instance is for, in the creator's terms (\"the enterprise segment\", \"the invoicing feature\"). */\n purpose: z.string().trim().min(1),\n /** Present once the instance is closed: it no longer runs, and a secondary line no longer counts as open. */\n closure: ApplicationPlaybookInstanceClosureSchema.optional(),\n /**\n * Families a SECONDARY LINE needs although the main line declares them not applicable (#1608): an internal\n * tool adding a public website as a feature needs the website plan, and the market snapshot the plan's\n * sections draw on. While the line is not abandoned they apply to the application, so the playbooks that\n * produce them run again and their files are read. Sorted and unique; absent when the line needs nothing\n * the main line excludes.\n *\n * The creator's decision, taken when the line is opened. The assistant may PROPOSE it from what the person\n * asked for (\"add a public website\"), and the approval card names the families, so what is recorded is what\n * the person approved; it is never inferred silently from the purpose, which would record a guess as a\n * decision. Only an instance of a secondary line's entry carries it; the landing refuses it on any other\n * instance.\n */\n neededFamilies: z.array(z.enum(ApplicationSpecificationFamily)).min(1).optional(),\n /**\n * The families a REFINEMENT line re-derives (#1608): what the creator asked to refine, e.g. the requirements\n * or the experience plan. Required on a refinement line and refused on any other instance. Each is a family\n * the application already holds and a producer of it re-derives from its own prior output, so the line\n * refines what exists instead of re-authoring it. Sorted and unique.\n *\n * The creator's decision, like `neededFamilies`: the assistant may propose it from what the person asked,\n * and the approval card names it, so what is recorded is what the person approved.\n */\n refinedFamilies: z.array(z.enum(ApplicationSpecificationFamily)).min(1).optional(),\n});\nexport type ApplicationPlaybookActivation = z.infer<typeof ApplicationPlaybookActivationSchema>;\n\nexport const ApplicationCreatorInputsSchema = z.strictObject({\n schemaVersion: z.literal(1),\n answers: z.array(ApplicationCreatorInputAnswerSchema),\n /**\n * The playbook instances the creator opened, keyed by instance id (`<ref>@<key>`), in SORTED key order\n * (#1609). Absent until the first one: a fresh application records no activation, and a run that lands\n * never writes here.\n *\n * A keyed object rather than a list, one entry per block, kept sorted by {@link withPlaybookActivation}:\n * two branches that each open an instance then touch different lines, so they merge without a textual\n * conflict unless the two keys are adjacent in sort order, in which case the conflict is a one-line\n * choice. A list appended at the tail would conflict on every concurrent addition.\n */\n activations: z.record(z.string(), ApplicationPlaybookActivationSchema).optional(),\n});\nexport type ApplicationCreatorInputs = z.infer<typeof ApplicationCreatorInputsSchema>;\n\n/**\n * The one key an answer is addressed by. `playbookRef` and `questionRef` are refs, never free text, so `#`\n * cannot occur in either. The default instance keeps the key it always had (`<ref>#<question>`); an\n * instance's answer is `<ref>@<key>#<question>` (#1609).\n */\nexport function creatorInputAnswerKey(playbookRef: string, questionRef: string, instanceKey?: string): string {\n return `${playbookInstanceId(playbookRef, instanceKey)}#${questionRef}`;\n}\n\n/** The dossier with one more activation, or one reworded, keyed by instance id and kept in sorted order. */\nexport function withPlaybookActivation(\n inputs: ApplicationCreatorInputs | undefined,\n activation: ApplicationPlaybookActivation,\n): ApplicationCreatorInputs {\n const merged = { ...(inputs?.activations ?? {}), [playbookInstanceId(activation.playbookRef, activation.instanceKey)]: activation };\n return {\n schemaVersion: 1,\n answers: inputs?.answers ?? [],\n activations: Object.fromEntries(Object.entries(merged).sort(([left], [right]) => left.localeCompare(right))),\n };\n}\n\n/** Whether this activation is still open: opened and not closed. */\nexport function isPlaybookInstanceOpen(activation: ApplicationPlaybookActivation | undefined): boolean {\n return activation !== undefined && activation.closure === undefined;\n}\n\n/**\n * The dossier with one instance closed (#1608). Refused for an instance nobody opened, and for one already\n * closed: closing is a decision taken once, and a second closure would overwrite the first one's reason.\n */\nexport function withPlaybookInstanceClosure(\n inputs: ApplicationCreatorInputs | undefined,\n instanceId: string,\n closure: ApplicationPlaybookInstanceClosure,\n): ApplicationCreatorInputs {\n const activation = inputs?.activations?.[instanceId];\n if (activation === undefined) throw new Error(`\"${instanceId}\" was never opened, so it cannot be closed.`);\n if (activation.closure !== undefined) throw new Error(`\"${instanceId}\" is already ${activation.closure.kind}.`);\n return withPlaybookActivation(inputs, { ...activation, closure });\n}\n\n/**\n * The family validator — FINDINGS, each an error: a dossier holding two answers to one question\n * cannot be read, because a run would have to pick one and nothing says which.\n *\n * Whether an answer names a question its playbook actually asks is NOT checked here: the family\n * schema does not know the catalog, and an answer to a question a later catalog renamed is a\n * stale answer to report, never a corrupt file. The dossier projection reports those as orphaned.\n */\nexport function validateApplicationCreatorInputs(inputs: ApplicationCreatorInputs): readonly string[] {\n const findings: string[] = [];\n const seen = new Set<string>();\n for (const answer of inputs.answers) {\n const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef, answer.instanceKey);\n if (seen.has(key)) findings.push(`question \"${answer.questionRef}\" of \"${playbookInstanceId(answer.playbookRef, answer.instanceKey)}\" is answered more than once`);\n seen.add(key);\n }\n // An activation is addressed by its own identity; a key that says another would be read as the wrong instance.\n for (const [key, activation] of Object.entries(inputs.activations ?? {})) {\n const expected = playbookInstanceId(activation.playbookRef, activation.instanceKey);\n if (key !== expected) findings.push(`activation \"${key}\" records the instance \"${expected}\"`);\n }\n // An answer to an instance nobody opened would be read by no run; keeping it unreported would hide a typo.\n for (const answer of inputs.answers) {\n if (answer.instanceKey === undefined) continue;\n const id = playbookInstanceId(answer.playbookRef, answer.instanceKey);\n if (!inputs.activations || !(id in inputs.activations)) findings.push(`question \"${answer.questionRef}\" is answered for \"${id}\", an instance that was never opened`);\n }\n return findings;\n}\n\n/**\n * The answers one playbook's interview reads, in the `{ questionRef, answer }` shape the run route\n * already accepts. A dossier with nothing for this playbook yields `[]`, which the run treats as\n * \"not interviewed yet\", never as a refusal.\n *\n * For an INSTANCE (#1609), its own answer wins per question and the default instance's fills the rest:\n * what the company answered once is shared, and the instance answers only what differs for it.\n */\nexport function readCreatorInputAnswersForPlaybook(\n inputs: ApplicationCreatorInputs | undefined,\n playbookRef: string,\n instanceKey?: string,\n): readonly { readonly questionRef: string; readonly answer: string }[] {\n const byQuestion = new Map<string, string>();\n for (const answer of inputs?.answers ?? []) {\n if (answer.playbookRef === playbookRef && answer.instanceKey === undefined) byQuestion.set(answer.questionRef, answer.value);\n }\n if (instanceKey !== undefined) {\n for (const answer of inputs?.answers ?? []) {\n if (answer.playbookRef === playbookRef && answer.instanceKey === instanceKey) byQuestion.set(answer.questionRef, answer.value);\n }\n }\n return [...byQuestion].map(([questionRef, answer]) => ({ questionRef, answer }));\n}\n\n/**\n * The dossier after one more answer, or after one answer changed — REPLACE by key, keep the rest,\n * keep the file's order for the entries that were already there so a diff shows only the change.\n */\nexport function withCreatorInputAnswer(\n inputs: ApplicationCreatorInputs | undefined,\n answer: ApplicationCreatorInputAnswer,\n): ApplicationCreatorInputs {\n const key = creatorInputAnswerKey(answer.playbookRef, answer.questionRef, answer.instanceKey);\n const existing = inputs?.answers ?? [];\n const keyOf = (candidate: ApplicationCreatorInputAnswer) => creatorInputAnswerKey(candidate.playbookRef, candidate.questionRef, candidate.instanceKey);\n const replaced = existing.some((candidate) => keyOf(candidate) === key);\n return {\n schemaVersion: 1,\n answers: replaced ? existing.map((candidate) => (keyOf(candidate) === key ? answer : candidate)) : [...existing, answer],\n // The activations are a separate record: an answer never adds, drops or reorders one.\n ...(inputs?.activations ? { activations: inputs.activations } : {}),\n };\n}\n"]}
@@ -52,6 +52,11 @@ export declare const ApplicationDocumentFactDeclarationAuthoritySchema: z.ZodDis
52
52
  reviewerQualificationRefs: z.ZodArray<z.ZodString>;
53
53
  independenceDisclosure: z.ZodString;
54
54
  decidedAt: z.ZodISODateTime;
55
+ }, z.core.$strict>, z.ZodObject<{
56
+ authorityRef: z.ZodString;
57
+ authorityVersion: z.ZodNumber;
58
+ factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE>>;
59
+ observedAt: z.ZodISODateTime;
55
60
  }, z.core.$strict>], "factAuthorityKind">;
56
61
  export type ApplicationDocumentFactDeclarationAuthority = z.infer<typeof ApplicationDocumentFactDeclarationAuthoritySchema>;
57
62
  /**
@@ -67,7 +72,10 @@ export type ApplicationDocumentFactDeclarationAuthority = z.infer<typeof Applica
67
72
  /**
68
73
  * A DERIVED declaration — `document-facts`, the family a producer writes.
69
74
  *
70
- * Its authority union has exactly one member, and that is the point of the split (#192): the
75
+ * Its authority is `APPLICATION_SPECIFICATION`, plus `RUNTIME_EVIDENCE` for the one purpose the refinement
76
+ * admits it: a fact the runtime computes from records, laid over the file in the read view and never stored
77
+ * (#1636). A PRODUCER therefore still has exactly one authority it can land, and that is the point of the
78
+ * split (#192): the
71
79
  * `refinement.document-facts` producer regenerates this whole file, so a human decision left in it is
72
80
  * silently overwritten on the next run. Narrowing the TYPE is what makes "a generator may never write a
73
81
  * `CREATOR_DECISION`" structural instead of a rule somebody has to remember — the generation contract
@@ -89,11 +97,16 @@ export declare const ApplicationDerivedDocumentFactDeclarationSchema: z.ZodDiscr
89
97
  }, z.core.$strict>;
90
98
  sensitivityRef: z.ZodString;
91
99
  validUntil: z.ZodOptional<z.ZodISODateTime>;
92
- authority: z.ZodObject<{
100
+ authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
93
101
  authorityRef: z.ZodString;
94
102
  authorityVersion: z.ZodNumber;
95
103
  factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION>>;
96
- }, z.core.$strict>;
104
+ }, z.core.$strict>, z.ZodObject<{
105
+ authorityRef: z.ZodString;
106
+ authorityVersion: z.ZodNumber;
107
+ factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE>>;
108
+ observedAt: z.ZodISODateTime;
109
+ }, z.core.$strict>], "factAuthorityKind">;
97
110
  resolutionKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN>>;
98
111
  value: z.ZodJSONSchema;
99
112
  }, z.core.$strict>, z.ZodObject<{
@@ -111,11 +124,16 @@ export declare const ApplicationDerivedDocumentFactDeclarationSchema: z.ZodDiscr
111
124
  }, z.core.$strict>;
112
125
  sensitivityRef: z.ZodString;
113
126
  validUntil: z.ZodOptional<z.ZodISODateTime>;
114
- authority: z.ZodObject<{
127
+ authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
115
128
  authorityRef: z.ZodString;
116
129
  authorityVersion: z.ZodNumber;
117
130
  factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION>>;
118
- }, z.core.$strict>;
131
+ }, z.core.$strict>, z.ZodObject<{
132
+ authorityRef: z.ZodString;
133
+ authorityVersion: z.ZodNumber;
134
+ factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE>>;
135
+ observedAt: z.ZodISODateTime;
136
+ }, z.core.$strict>], "factAuthorityKind">;
119
137
  resolutionKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE>>;
120
138
  reason: z.ZodString;
121
139
  }, z.core.$strict>], "resolutionKind">;
@@ -262,11 +280,16 @@ export declare const ApplicationDocumentFactSpecificationSchema: z.ZodObject<{
262
280
  }, z.core.$strict>;
263
281
  sensitivityRef: z.ZodString;
264
282
  validUntil: z.ZodOptional<z.ZodISODateTime>;
265
- authority: z.ZodObject<{
283
+ authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
266
284
  authorityRef: z.ZodString;
267
285
  authorityVersion: z.ZodNumber;
268
286
  factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION>>;
269
- }, z.core.$strict>;
287
+ }, z.core.$strict>, z.ZodObject<{
288
+ authorityRef: z.ZodString;
289
+ authorityVersion: z.ZodNumber;
290
+ factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE>>;
291
+ observedAt: z.ZodISODateTime;
292
+ }, z.core.$strict>], "factAuthorityKind">;
270
293
  resolutionKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN>>;
271
294
  value: z.ZodJSONSchema;
272
295
  }, z.core.$strict>, z.ZodObject<{
@@ -284,11 +307,16 @@ export declare const ApplicationDocumentFactSpecificationSchema: z.ZodObject<{
284
307
  }, z.core.$strict>;
285
308
  sensitivityRef: z.ZodString;
286
309
  validUntil: z.ZodOptional<z.ZodISODateTime>;
287
- authority: z.ZodObject<{
310
+ authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
288
311
  authorityRef: z.ZodString;
289
312
  authorityVersion: z.ZodNumber;
290
313
  factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION>>;
291
- }, z.core.$strict>;
314
+ }, z.core.$strict>, z.ZodObject<{
315
+ authorityRef: z.ZodString;
316
+ authorityVersion: z.ZodNumber;
317
+ factAuthorityKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE>>;
318
+ observedAt: z.ZodISODateTime;
319
+ }, z.core.$strict>], "factAuthorityKind">;
292
320
  resolutionKind: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodLiteral<ApplicationAssuranceDocumentFactContributionResolutionKind.NOT_APPLICABLE>>;
293
321
  reason: z.ZodString;
294
322
  }, z.core.$strict>], "resolutionKind">>;
@@ -437,6 +465,14 @@ export declare function resolveBlueprintAssignedFactAuthorityKinds(factRef: stri
437
465
  * `rights-and-complaint-route` once the verification procedure had `subjectRequestIdentityVerification`. When a member's inputs are absent, its
438
466
  * computation answers NOTHING: the fact stays absent and every clause resting on it is marked as owed,
439
467
  * which is the honest state of "nobody has declared this".
468
+ *
469
+ * ## The runtime member
470
+ *
471
+ * One member is computed from what the application DID rather than from what it declares:
472
+ * `retention-enforcement` reads the retention-enforcement records the sweep writes (#1636), and so carries
473
+ * `RUNTIME_EVIDENCE` authority rather than `APPLICATION_SPECIFICATION` — see
474
+ * {@link COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS}. Its whole answer is still a FUNCTION, of records and
475
+ * declarations together, which is what membership requires; nobody decides it.
440
476
  */
441
477
  export declare enum ComputedDocumentFact {
442
478
  /** From `operatorComplianceIdentity`: the legal entity, its privacy contact route, and its role per population of data. */
@@ -469,8 +505,32 @@ export declare enum ComputedDocumentFact {
469
505
  * `privacyContact` (the channel), `subjectRequestIdentityVerification` (the one procedure the operator
470
506
  * decides) and `roleAllocations` (who answers each population's requests) (#454).
471
507
  */
472
- RIGHTS_AND_COMPLAINT_ROUTE = "rights-and-complaint-route"
508
+ RIGHTS_AND_COMPLAINT_ROUTE = "rights-and-complaint-route",
509
+ /**
510
+ * From the retention-enforcement records the retention-class sweep writes, read against `dataRetention` and
511
+ * each resource's `retentionBinding`: per declared class, whether the period was ENFORCED, is only DECLARED,
512
+ * or is FAILING (#1636). The first `RUNTIME_EVIDENCE` fact — a notice says a period is enforced only when
513
+ * the product has shown it. Absent when the records could not be read, which is not "nothing enforced".
514
+ */
515
+ RETENTION_ENFORCEMENT = "retention-enforcement",
516
+ /**
517
+ * From the resources bound to, or piped from, a declared system of record (#1745): per flow, the instance and its
518
+ * vendor, the local resource, the `.dataCategories()` of the fields that come from it, the purposes the binding links
519
+ * and whether the rows are kept until erased. The SOURCE a notice owes for data not collected from the person (GDPR
520
+ * Art. 14(2)(f)), with the purpose and basis for obtaining it (Art. 14(1)(c)). The PROXIMATE source only: whether
521
+ * the data originated from a publicly accessible source is not declared anywhere, so it is not stated. Distinct from
522
+ * `data-categories-and-sources`, a stored fact covering every collection source: a computed fact replaces any stored
523
+ * fact under its own reference, so sharing one would discard what that fact states about every other source.
524
+ */
525
+ SYSTEM_OF_RECORD_SOURCES = "system-of-record-sources"
473
526
  }
527
+ /**
528
+ * The authority each computed fact carries — ONE table, so the overlay stamps it and the schema admits it
529
+ * from the same source. `RUNTIME_EVIDENCE` only where the value is computed from records (invariant: a fact
530
+ * is never labelled with a tier its computation did not earn; `.claude/rules/compliance-is-derived-from-the-product.md`
531
+ * rule 7).
532
+ */
533
+ export declare const COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS: Readonly<Record<ComputedDocumentFact, AssuranceDocumentFactAuthorityKind>>;
474
534
  /** The computed fact a ref names, or `undefined` when the fact is declared rather than computed. */
475
535
  export declare function computedDocumentFactOf(factRef: string): ComputedDocumentFact | undefined;
476
536
  export declare enum ApplicationDocumentFactSpecificationIssueSeverity {
@@ -1 +1 @@
1
- {"version":3,"file":"application-document-fact-specification.application-creation.schemas.d.ts","sourceRoot":"","sources":["../../../../src/application-creation/application-document-fact-specification.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAA6C,MAAM,uBAAuB,CAAC;AACzH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CAAC;AAElC,OAAO,EACL,kCAAkC,EAInC,MAAM,sBAAsB,CAAC;AAyE9B;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,0DAA0D;IACpE,iEAAiE;IACjE,KAAK,UAAU;IACf,gGAAgG;IAChG,cAAc,mBAAmB;CAClC;AAwCD;;;;;;;;GAQG;AACH,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;yCAI5D,CAAC;AACH,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iDAAiD,CAAC,CAAC;AAkG5H;;;;;;;;;GASG;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAaiC,CAAC;AAC9F,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+CAA+C,CAAC,CAAC;AAExH;;;;;;GAMG;AACH,eAAO,MAAM,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAagC,CAAC;AAC9F,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gDAAgD,CAAC,CAAC;AAE1H;;;;;;;;;;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U;CAChB;AAED,8DAA8D;AAC9D,oBAAY,6CAA6C;IACvD,8EAA8E;IAC9E,mCAAmC,wCAAwC;IAC3E;;;;OAIG;IACH,oCAAoC,yCAAyC;IAC7E;;;;OAIG;IACH,yBAAyB,8BAA8B;CACxD;AAED,MAAM,WAAW,yCAAyC;IACxD,QAAQ,CAAC,IAAI,EAAE,6CAA6C,CAAC;IAC7D,QAAQ,CAAC,QAAQ,EAAE,iDAAiD,CAAC;IACrE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,4CAA4C,CAAC,aAAa,EAAE,qCAAqC,GAAG;IAClH,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,yCAAyC,EAAE,CAAC;CACrD,CAgEA"}
1
+ {"version":3,"file":"application-document-fact-specification.application-creation.schemas.d.ts","sourceRoot":"","sources":["../../../../src/application-creation/application-document-fact-specification.application-creation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAA6C,MAAM,uBAAuB,CAAC;AACzH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CAAC;AAElC,OAAO,EACL,kCAAkC,EAInC,MAAM,sBAAsB,CAAC;AA6E9B;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,0DAA0D;IACpE,iEAAiE;IACjE,KAAK,UAAU;IACf,gGAAgG;IAChG,cAAc,mBAAmB;CAClC;AAuDD;;;;;;;;GAQG;AACH,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;yCAK5D,CAAC;AACH,MAAM,MAAM,2CAA2C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iDAAiD,CAAC,CAAC;AAsH5H;;;;;;;;;GASG;AAEH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,+CAA+C;;;;;;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