@wildo-ai/saas-specifications 1.1.10 → 1.1.12

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 (1329) hide show
  1. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +5 -4
  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 +5 -4
  4. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
  5. package/dist/esm/_catalogs/schema-org/index.js +1 -1
  6. package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts +5 -0
  7. package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts.map +1 -1
  8. package/dist/esm/_core/application-maturity/application-maturity-validation.js +13 -0
  9. package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -1
  10. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.d.ts.map +1 -1
  11. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js +5 -0
  12. package/dist/esm/_core/application-maturity/application-maturity.family-aspects.js.map +1 -1
  13. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts +34 -40
  14. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts.map +1 -1
  15. package/dist/esm/_core/application-maturity/application-maturity.schemas.js +26 -2
  16. package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -1
  17. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +20 -0
  18. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
  19. package/dist/esm/_core/application-specification-family-identity.schemas.js +20 -0
  20. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
  21. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts +1 -1
  22. package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts +4 -4
  23. package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts +4 -4
  24. package/dist/esm/_core/brand/brand-asset.schemas.d.ts +4 -4
  25. package/dist/esm/_core/brand/brand-audience.schemas.d.ts +2 -2
  26. package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts +2 -2
  27. package/dist/esm/_core/brand/brand-generation.schemas.d.ts +8 -4
  28. package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
  29. package/dist/esm/_core/brand/brand-generation.schemas.js +11 -1
  30. package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
  31. package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts +4 -4
  32. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts +25 -22
  33. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts.map +1 -1
  34. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js +6 -4
  35. package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js.map +1 -1
  36. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts +25 -1
  37. package/dist/esm/_core/brand/brand-name-screening-validation.d.ts.map +1 -1
  38. package/dist/esm/_core/brand/brand-name-screening-validation.js +77 -1
  39. package/dist/esm/_core/brand/brand-name-screening-validation.js.map +1 -1
  40. package/dist/esm/_core/brand/brand-name-screening-view.d.ts +34 -32
  41. package/dist/esm/_core/brand/brand-name-screening-view.d.ts.map +1 -1
  42. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts +67 -35
  43. package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts.map +1 -1
  44. package/dist/esm/_core/brand/brand-name-screening.schemas.js +65 -8
  45. package/dist/esm/_core/brand/brand-name-screening.schemas.js.map +1 -1
  46. package/dist/esm/_core/brand/brand-name.schemas.d.ts +2 -2
  47. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +14 -14
  48. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts +27 -9
  49. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
  50. package/dist/esm/_core/brand/brand-visual-tone.schemas.js +26 -8
  51. package/dist/esm/_core/brand/brand-visual-tone.schemas.js.map +1 -1
  52. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.d.ts +52 -0
  53. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.d.ts.map +1 -0
  54. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.js +325 -0
  55. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.js.map +1 -0
  56. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +225 -108
  57. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  58. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +39 -2
  59. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
  60. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +112 -8
  61. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  62. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +249 -12
  63. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  64. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +506 -344
  65. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  66. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +425 -13
  67. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  68. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  69. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +11 -4
  70. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  71. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts +2 -2
  72. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts +5 -21
  73. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
  74. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +16 -6
  75. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
  76. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +12 -5
  77. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
  78. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js +32 -9
  79. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
  80. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +30 -5
  81. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
  82. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.js +28 -2
  83. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.js.map +1 -1
  84. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +6 -5
  85. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
  86. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +19 -9
  87. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
  88. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +12 -33
  89. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
  90. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +4 -3
  91. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
  92. package/dist/esm/_core/chart-view-specification.schemas.d.ts +19 -3
  93. package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
  94. package/dist/esm/_core/chart-view-specification.schemas.js +7 -3
  95. package/dist/esm/_core/chart-view-specification.schemas.js.map +1 -1
  96. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts +265 -0
  97. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.d.ts.map +1 -0
  98. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js +371 -0
  99. package/dist/esm/_core/compliance-documents/ai-document-facts.schemas.js.map +1 -0
  100. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +0 -298
  101. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
  102. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts +1 -6
  103. package/dist/esm/_core/compliance-documents/compliance-document-candidate-set.schemas.d.ts.map +1 -1
  104. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +3 -619
  105. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  106. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +14 -2
  107. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  108. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +1 -1
  109. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +60 -7
  110. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  111. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +137 -12
  112. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  113. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts +0 -32
  114. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
  115. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +2 -2
  116. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
  117. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts +50 -12
  118. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -1
  119. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +166 -13
  120. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
  121. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +35 -148
  122. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  123. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +10 -1
  124. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  125. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +102 -10
  126. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -1
  127. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +128 -25
  128. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -1
  129. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +28 -0
  130. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -1
  131. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +36 -1
  132. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -1
  133. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts +2 -24
  134. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
  135. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js +18 -2
  136. package/dist/esm/_core/compliance-documents/required-document-set.schemas.js.map +1 -1
  137. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts +4 -0
  138. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts.map +1 -1
  139. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js +6 -0
  140. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js.map +1 -1
  141. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +21 -10
  142. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -1
  143. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +130 -14
  144. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -1
  145. package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.d.ts +26 -0
  146. package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.d.ts.map +1 -0
  147. package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.js +44 -0
  148. package/dist/esm/_core/compliance-posture/compliance-posture-generation.schemas.js.map +1 -0
  149. package/dist/esm/_core/compliance-posture/compliance-posture-validation.d.ts +34 -0
  150. package/dist/esm/_core/compliance-posture/compliance-posture-validation.d.ts.map +1 -0
  151. package/dist/esm/_core/compliance-posture/compliance-posture-validation.js +47 -0
  152. package/dist/esm/_core/compliance-posture/compliance-posture-validation.js.map +1 -0
  153. package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.d.ts +4 -0
  154. package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.d.ts.map +1 -0
  155. package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.js +19 -0
  156. package/dist/esm/_core/compliance-posture/compliance-posture.family-aspects.js.map +1 -0
  157. package/dist/esm/_core/compliance-posture/compliance-posture.schemas.d.ts +88 -0
  158. package/dist/esm/_core/compliance-posture/compliance-posture.schemas.d.ts.map +1 -0
  159. package/dist/esm/_core/compliance-posture/compliance-posture.schemas.js +78 -0
  160. package/dist/esm/_core/compliance-posture/compliance-posture.schemas.js.map +1 -0
  161. package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
  162. package/dist/esm/_core/composite-view-specification.schemas.js +2 -2
  163. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  164. package/dist/esm/_core/data-seed-specification.schemas.d.ts +2 -0
  165. package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
  166. package/dist/esm/_core/data-seed-specification.schemas.js +10 -1
  167. package/dist/esm/_core/data-seed-specification.schemas.js.map +1 -1
  168. package/dist/esm/_core/definition-specification-validators.d.ts +2 -3
  169. package/dist/esm/_core/definition-specification-validators.d.ts.map +1 -1
  170. package/dist/esm/_core/definition-specification-validators.js +2 -3
  171. package/dist/esm/_core/definition-specification-validators.js.map +1 -1
  172. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts +44 -19
  173. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
  174. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js +75 -2
  175. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js.map +1 -1
  176. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts +93 -1
  177. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
  178. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js +369 -2
  179. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
  180. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +412 -5
  181. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  182. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +429 -0
  183. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
  184. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +18 -1
  185. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  186. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +88 -2
  187. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  188. package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
  189. package/dist/esm/_core/execution-view-specification.schemas.js +2 -2
  190. package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
  191. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts +20 -9
  192. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.d.ts.map +1 -1
  193. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js +3 -0
  194. package/dist/esm/_core/experience-plan/experience-plan-generation.schemas.js.map +1 -1
  195. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts +25 -1
  196. package/dist/esm/_core/experience-plan/experience-plan-validation.d.ts.map +1 -1
  197. package/dist/esm/_core/experience-plan/experience-plan-validation.js +57 -0
  198. package/dist/esm/_core/experience-plan/experience-plan-validation.js.map +1 -1
  199. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.d.ts.map +1 -1
  200. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +23 -4
  201. package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -1
  202. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +96 -131
  203. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
  204. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +144 -1
  205. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
  206. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts +2 -2
  207. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +15 -8
  208. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  209. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +13 -6
  210. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  211. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
  212. package/dist/esm/_core/family-aspects.registry.js +4 -0
  213. package/dist/esm/_core/family-aspects.registry.js.map +1 -1
  214. package/dist/esm/_core/family-aspects.schemas.d.ts +12 -1
  215. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  216. package/dist/esm/_core/family-aspects.schemas.js +11 -0
  217. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  218. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +37 -53
  219. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts.map +1 -1
  220. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +59 -59
  221. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts +0 -14
  222. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  223. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +2 -2
  224. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  225. package/dist/esm/_core/feature-specification.schemas.d.ts.map +1 -1
  226. package/dist/esm/_core/feature-specification.schemas.js +5 -4
  227. package/dist/esm/_core/feature-specification.schemas.js.map +1 -1
  228. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
  229. package/dist/esm/_core/flows-actors-view-specification.schemas.js +2 -2
  230. package/dist/esm/_core/flows-actors-view-specification.schemas.js.map +1 -1
  231. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
  232. package/dist/esm/_core/full-custom-view-specification.schemas.js +2 -2
  233. package/dist/esm/_core/full-custom-view-specification.schemas.js.map +1 -1
  234. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +1 -3
  235. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
  236. package/dist/esm/_core/guidance-flow-specification.schemas.js +10 -12
  237. package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
  238. package/dist/esm/_core/index.d.ts +12 -0
  239. package/dist/esm/_core/index.d.ts.map +1 -1
  240. package/dist/esm/_core/index.js +12 -0
  241. package/dist/esm/_core/index.js.map +1 -1
  242. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +8 -4
  243. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  244. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  245. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +2 -1
  246. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  247. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +19 -51
  248. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  249. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +29 -10
  250. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  251. package/dist/esm/_core/market/feature-benefit.schemas.d.ts +5 -5
  252. package/dist/esm/_core/market/market-alternative.schemas.d.ts +3 -3
  253. package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts +2 -2
  254. package/dist/esm/_core/market/market-buying-journey.schemas.d.ts +4 -4
  255. package/dist/esm/_core/market/market-category.schemas.d.ts +2 -2
  256. package/dist/esm/_core/market/market-channel.schemas.d.ts +5 -5
  257. package/dist/esm/_core/market/market-gain.schemas.d.ts +3 -3
  258. package/dist/esm/_core/market/market-icp.schemas.d.ts +11 -11
  259. package/dist/esm/_core/market/market-job.schemas.d.ts +3 -3
  260. package/dist/esm/_core/market/market-message-template.schemas.d.ts +4 -4
  261. package/dist/esm/_core/market/market-objection.schemas.d.ts +3 -3
  262. package/dist/esm/_core/market/market-pain.schemas.d.ts +3 -3
  263. package/dist/esm/_core/market/market-persona.schemas.d.ts +4 -4
  264. package/dist/esm/_core/market/market-positioning.schemas.d.ts +2 -2
  265. package/dist/esm/_core/market/market-proof.schemas.d.ts +3 -3
  266. package/dist/esm/_core/market/market-references.schemas.d.ts +7 -0
  267. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  268. package/dist/esm/_core/market/market-references.schemas.js +13 -1
  269. package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
  270. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +80 -106
  271. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  272. package/dist/esm/_core/market/market-snapshot-generation.schemas.js +46 -17
  273. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  274. package/dist/esm/_core/market/market-snapshot.schemas.d.ts +59 -59
  275. package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts +3 -3
  276. package/dist/esm/_core/market/market-trigger.schemas.d.ts +3 -3
  277. package/dist/esm/_core/milestone-specification.schemas.d.ts.map +1 -1
  278. package/dist/esm/_core/milestone-specification.schemas.js +5 -4
  279. package/dist/esm/_core/milestone-specification.schemas.js.map +1 -1
  280. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +0 -2
  281. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
  282. package/dist/esm/_core/onboarding-view-specification.schemas.js +7 -8
  283. package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
  284. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts +32 -27
  285. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
  286. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +3 -3
  287. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
  288. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +12 -2
  289. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  290. package/dist/esm/_core/placement-plan/placement-plan-validation.js +42 -9
  291. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  292. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
  293. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +16 -4
  294. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -1
  295. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +84 -90
  296. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  297. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +90 -13
  298. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  299. package/dist/esm/_core/product-specification.schemas.d.ts.map +1 -1
  300. package/dist/esm/_core/product-specification.schemas.js +5 -4
  301. package/dist/esm/_core/product-specification.schemas.js.map +1 -1
  302. package/dist/esm/_core/required-features-specification.schemas.d.ts +1 -5
  303. package/dist/esm/_core/required-features-specification.schemas.d.ts.map +1 -1
  304. package/dist/esm/_core/required-features-specification.schemas.js +1 -5
  305. package/dist/esm/_core/required-features-specification.schemas.js.map +1 -1
  306. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +2 -2
  307. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +6 -6
  308. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js +4 -4
  309. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js.map +1 -1
  310. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts +2 -2
  311. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts +0 -4
  312. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  313. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +6 -15
  314. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  315. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js +2 -3
  316. package/dist/esm/_core/requirements/requirements-snapshot.schemas.js.map +1 -1
  317. package/dist/esm/_core/resource-specification.schemas.d.ts +76 -18
  318. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  319. package/dist/esm/_core/resource-specification.schemas.js +168 -60
  320. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  321. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts +2 -2
  322. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts +3 -18
  323. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
  324. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js +3 -17
  325. package/dist/esm/_core/roadmap/roadmap-phase.schemas.js.map +1 -1
  326. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts +2 -1
  327. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
  328. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +2 -1
  329. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
  330. package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts +3 -3
  331. package/dist/esm/_core/role-specification.schemas.d.ts.map +1 -1
  332. package/dist/esm/_core/role-specification.schemas.js +5 -4
  333. package/dist/esm/_core/role-specification.schemas.js.map +1 -1
  334. package/dist/esm/_core/service-method/service-method-derivation.d.ts +155 -0
  335. package/dist/esm/_core/service-method/service-method-derivation.d.ts.map +1 -0
  336. package/dist/esm/_core/service-method/service-method-derivation.js +415 -0
  337. package/dist/esm/_core/service-method/service-method-derivation.js.map +1 -0
  338. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts +87 -0
  339. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts.map +1 -0
  340. package/dist/esm/_core/service-method/service-method-generation.schemas.js +30 -0
  341. package/dist/esm/_core/service-method/service-method-generation.schemas.js.map +1 -0
  342. package/dist/esm/_core/service-method/service-method-validation.d.ts +45 -0
  343. package/dist/esm/_core/service-method/service-method-validation.d.ts.map +1 -0
  344. package/dist/esm/_core/service-method/service-method-validation.js +102 -0
  345. package/dist/esm/_core/service-method/service-method-validation.js.map +1 -0
  346. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts +3 -0
  347. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts.map +1 -0
  348. package/dist/esm/_core/service-method/service-method.family-aspects.js +59 -0
  349. package/dist/esm/_core/service-method/service-method.family-aspects.js.map +1 -0
  350. package/dist/esm/_core/service-method/service-method.schemas.d.ts +356 -0
  351. package/dist/esm/_core/service-method/service-method.schemas.d.ts.map +1 -0
  352. package/dist/esm/_core/service-method/service-method.schemas.js +416 -0
  353. package/dist/esm/_core/service-method/service-method.schemas.js.map +1 -0
  354. package/dist/esm/_core/sidebar-section-specification.schemas.d.ts.map +1 -1
  355. package/dist/esm/_core/sidebar-section-specification.schemas.js +2 -2
  356. package/dist/esm/_core/sidebar-section-specification.schemas.js.map +1 -1
  357. package/dist/esm/_core/specification-definition-faults.d.ts +160 -0
  358. package/dist/esm/_core/specification-definition-faults.d.ts.map +1 -0
  359. package/dist/esm/_core/specification-definition-faults.js +283 -0
  360. package/dist/esm/_core/specification-definition-faults.js.map +1 -0
  361. package/dist/esm/_core/specification-module-faults.d.ts +271 -0
  362. package/dist/esm/_core/specification-module-faults.d.ts.map +1 -0
  363. package/dist/esm/_core/specification-module-faults.js +655 -0
  364. package/dist/esm/_core/specification-module-faults.js.map +1 -0
  365. package/dist/esm/_core/translation-glossary.schemas.d.ts +79 -0
  366. package/dist/esm/_core/translation-glossary.schemas.d.ts.map +1 -0
  367. package/dist/esm/_core/translation-glossary.schemas.js +98 -0
  368. package/dist/esm/_core/translation-glossary.schemas.js.map +1 -0
  369. package/dist/esm/_core/utils/extract-field-specs.d.ts +25 -0
  370. package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
  371. package/dist/esm/_core/utils/extract-field-specs.js +6 -1
  372. package/dist/esm/_core/utils/extract-field-specs.js.map +1 -1
  373. package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts +2 -2
  374. package/dist/esm/_core/vision/vision-constraint.schemas.d.ts +6 -4
  375. package/dist/esm/_core/vision/vision-constraint.schemas.d.ts.map +1 -1
  376. package/dist/esm/_core/vision/vision-constraint.schemas.js +4 -2
  377. package/dist/esm/_core/vision/vision-constraint.schemas.js.map +1 -1
  378. package/dist/esm/_core/vision/vision-idea.schemas.d.ts +2 -2
  379. package/dist/esm/_core/vision/vision-mission.schemas.d.ts +2 -2
  380. package/dist/esm/_core/vision/vision-problem.schemas.d.ts +2 -2
  381. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts +15 -9
  382. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
  383. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js +30 -20
  384. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
  385. package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts +10 -10
  386. package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts +2 -2
  387. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts +31 -7
  388. package/dist/esm/_core/website-plan/website-plan-generation.schemas.d.ts.map +1 -1
  389. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js +34 -6
  390. package/dist/esm/_core/website-plan/website-plan-generation.schemas.js.map +1 -1
  391. package/dist/esm/_core/website-plan/website-plan-validation.d.ts +24 -4
  392. package/dist/esm/_core/website-plan/website-plan-validation.d.ts.map +1 -1
  393. package/dist/esm/_core/website-plan/website-plan-validation.js +84 -7
  394. package/dist/esm/_core/website-plan/website-plan-validation.js.map +1 -1
  395. package/dist/esm/_core/website-plan/website-plan.family-aspects.d.ts.map +1 -1
  396. package/dist/esm/_core/website-plan/website-plan.family-aspects.js +2 -1
  397. package/dist/esm/_core/website-plan/website-plan.family-aspects.js.map +1 -1
  398. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +424 -120
  399. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
  400. package/dist/esm/_core/website-plan/website-plan.schemas.js +687 -32
  401. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
  402. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts +90 -0
  403. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.d.ts.map +1 -0
  404. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js +104 -0
  405. package/dist/esm/application-creation/accepted-change-attribution.application-creation.schemas.js.map +1 -0
  406. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +110 -127
  407. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
  408. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +122 -16
  409. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
  410. package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.d.ts +22 -0
  411. package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.d.ts.map +1 -0
  412. package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.js +23 -0
  413. package/dist/esm/application-creation/application-declared-answer.application-creation.schemas.js.map +1 -0
  414. package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.d.ts +50 -0
  415. package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.d.ts.map +1 -0
  416. package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.js +33 -0
  417. package/dist/esm/application-creation/application-declared-answers.application-creation.schemas.js.map +1 -0
  418. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +57 -41
  419. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  420. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +22 -4
  421. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  422. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +3 -11
  423. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
  424. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +206 -10
  425. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -1
  426. package/dist/esm/application-creation/application-line.application-creation.schemas.js +226 -9
  427. package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -1
  428. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +4 -2
  429. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  430. package/dist/esm/application-creation/journey.application-creation.schemas.js +4 -2
  431. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  432. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +42 -41
  433. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  434. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +79 -23
  435. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  436. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +2 -2
  437. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  438. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +2 -0
  439. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  440. package/dist/esm/application-creation.exports.d.ts +13 -0
  441. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  442. package/dist/esm/application-creation.exports.js +15 -0
  443. package/dist/esm/application-creation.exports.js.map +1 -1
  444. package/dist/esm/assurance/application-document-publication.schemas.d.ts +0 -12
  445. package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
  446. package/dist/esm/assurance/application-document-release-set.schemas.d.ts +1 -9
  447. package/dist/esm/assurance/application-document-release-set.schemas.d.ts.map +1 -1
  448. package/dist/esm/assurance/application-risk-register.schemas.d.ts +10 -73
  449. package/dist/esm/assurance/application-risk-register.schemas.d.ts.map +1 -1
  450. package/dist/esm/assurance/application-risk-signals.derivations.d.ts +34 -0
  451. package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -1
  452. package/dist/esm/assurance/application-risk-signals.derivations.js +45 -1
  453. package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -1
  454. package/dist/esm/assurance/assurance-assessment-twins.d.ts +38 -0
  455. package/dist/esm/assurance/assurance-assessment-twins.d.ts.map +1 -0
  456. package/dist/esm/assurance/assurance-assessment-twins.js +36 -0
  457. package/dist/esm/assurance/assurance-assessment-twins.js.map +1 -0
  458. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +632 -19
  459. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  460. package/dist/esm/assurance/assurance-authority-basis.definitions.js +3000 -1063
  461. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  462. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +27 -22
  463. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  464. package/dist/esm/assurance/assurance-authority-basis.schemas.js +1 -0
  465. package/dist/esm/assurance/assurance-authority-basis.schemas.js.map +1 -1
  466. package/dist/esm/assurance/assurance-document-system.definitions.d.ts +2 -0
  467. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  468. package/dist/esm/assurance/assurance-document-system.definitions.js +168 -29
  469. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  470. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +34 -112
  471. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  472. package/dist/esm/assurance/assurance-document-system.schemas.js +13 -0
  473. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  474. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts +121 -114
  475. package/dist/esm/assurance/assurance-evidence-judgement.schemas.d.ts.map +1 -1
  476. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js +142 -7
  477. package/dist/esm/assurance/assurance-evidence-judgement.schemas.js.map +1 -1
  478. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  479. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +1746 -116
  480. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  481. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +0 -11
  482. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  483. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts +77 -0
  484. package/dist/esm/assurance/assurance-host-implementation-artifacts.d.ts.map +1 -0
  485. package/dist/esm/assurance/assurance-host-implementation-artifacts.js +51 -0
  486. package/dist/esm/assurance/assurance-host-implementation-artifacts.js.map +1 -0
  487. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +3 -2
  488. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  489. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +354 -5
  490. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  491. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts +12 -0
  492. package/dist/esm/assurance/assurance-open-compliance-answer-cell.d.ts.map +1 -0
  493. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js +19 -0
  494. package/dist/esm/assurance/assurance-open-compliance-answer-cell.js.map +1 -0
  495. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts +422 -0
  496. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts.map +1 -0
  497. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js +886 -0
  498. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js.map +1 -0
  499. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +61 -182
  500. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  501. package/dist/esm/assurance/assurance-program-generation.schemas.js +180 -22
  502. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  503. package/dist/esm/assurance/assurance-program-obligation-standing.d.ts +107 -0
  504. package/dist/esm/assurance/assurance-program-obligation-standing.d.ts.map +1 -0
  505. package/dist/esm/assurance/assurance-program-obligation-standing.js +153 -0
  506. package/dist/esm/assurance/assurance-program-obligation-standing.js.map +1 -0
  507. package/dist/esm/assurance/assurance-program.schemas.d.ts +373 -1165
  508. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  509. package/dist/esm/assurance/assurance-program.schemas.js +267 -18
  510. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  511. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +2 -1
  512. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  513. package/dist/esm/assurance/assurance-source-registry.definitions.js +277 -23
  514. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  515. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts +17 -0
  516. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts.map +1 -0
  517. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js +246 -0
  518. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js.map +1 -0
  519. package/dist/esm/assurance/assurance-sources.schemas.d.ts +84 -24
  520. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  521. package/dist/esm/assurance/assurance-sources.schemas.js +111 -1
  522. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  523. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  524. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +372 -17
  525. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  526. package/dist/esm/assurance/governed-document-audience.derivations.d.ts +83 -0
  527. package/dist/esm/assurance/governed-document-audience.derivations.d.ts.map +1 -0
  528. package/dist/esm/assurance/governed-document-audience.derivations.js +97 -0
  529. package/dist/esm/assurance/governed-document-audience.derivations.js.map +1 -0
  530. package/dist/esm/assurance/governed-document-release.d.ts +15 -1
  531. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
  532. package/dist/esm/assurance/governed-document-release.js +10 -4
  533. package/dist/esm/assurance/governed-document-release.js.map +1 -1
  534. package/dist/esm/assurance.exports.d.ts +5 -0
  535. package/dist/esm/assurance.exports.d.ts.map +1 -1
  536. package/dist/esm/assurance.exports.js +5 -0
  537. package/dist/esm/assurance.exports.js.map +1 -1
  538. package/dist/esm/companion-exports.d.ts +39 -3
  539. package/dist/esm/companion-exports.d.ts.map +1 -1
  540. package/dist/esm/companion-exports.js +61 -0
  541. package/dist/esm/companion-exports.js.map +1 -1
  542. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +16 -16
  543. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  544. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +37 -11
  545. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  546. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts +3 -3
  547. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  548. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +10 -13
  549. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  550. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +19 -19
  551. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  552. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +64 -12
  553. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  554. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts +4 -4
  555. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +4 -4
  556. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  557. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +7 -6
  558. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  559. package/dist/esm/engine/applications/resources/applications.resource.specification.js +7 -7
  560. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  561. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +20 -12
  562. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  563. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +51 -14
  564. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  565. package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.d.ts +26 -0
  566. package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.d.ts.map +1 -0
  567. package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.js +112 -0
  568. package/dist/esm/engine/auth/resources/application-provider-credentials.resource.specification.js.map +1 -0
  569. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +4 -4
  570. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -1
  571. package/dist/esm/engine/auth/resources/index.d.ts +0 -2
  572. package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
  573. package/dist/esm/engine/auth/resources/index.js +0 -2
  574. package/dist/esm/engine/auth/resources/index.js.map +1 -1
  575. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +13 -12
  576. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  577. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +15 -4
  578. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  579. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +16 -16
  580. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  581. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +44 -17
  582. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  583. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +20 -20
  584. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  585. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +48 -9
  586. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  587. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +25 -21
  588. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  589. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +44 -12
  590. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  591. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +20 -14
  592. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  593. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +73 -20
  594. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  595. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts +22 -22
  596. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  597. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +15 -14
  598. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  599. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +9 -8
  600. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +20 -16
  602. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  603. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +40 -40
  604. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  605. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +135 -16
  606. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  607. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +108 -108
  608. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  609. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +80 -20
  610. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  611. package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.d.ts +17 -0
  612. package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.d.ts.map +1 -0
  613. package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.js +85 -0
  614. package/dist/esm/engine/auth/resources/sso-domain-reservations.resource.specification.js.map +1 -0
  615. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +21 -19
  616. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  617. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +14 -10
  618. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  619. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +14 -12
  620. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  621. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +4 -2
  622. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  623. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +20 -20
  624. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +1 -1
  625. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  626. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +22 -20
  627. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  628. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +9 -8
  629. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  630. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts +8 -8
  631. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  632. package/dist/esm/engine/billing/resources/prices.resource.specification.js +11 -10
  633. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  634. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +16 -16
  635. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  636. package/dist/esm/engine/billing/resources/products.resource.specification.js +11 -10
  637. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  638. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts +11 -11
  639. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  640. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +31 -29
  641. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  642. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts +22 -21
  643. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  644. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +7 -6
  645. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  646. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +48 -48
  647. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  648. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +112 -26
  649. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  650. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +30 -26
  651. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  652. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +5 -2
  653. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  654. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +37 -25
  655. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
  656. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +50 -12
  657. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
  658. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts +78 -0
  659. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.d.ts.map +1 -0
  660. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js +213 -0
  661. package/dist/esm/engine/compliance/resources/approval-seals.resource.specification.js.map +1 -0
  662. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +33 -23
  663. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  664. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +61 -21
  665. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  666. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.d.ts +39 -0
  667. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.d.ts.map +1 -0
  668. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.js +533 -0
  669. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.js.map +1 -0
  670. package/dist/esm/engine/compliance/resources/index.d.ts +2 -0
  671. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  672. package/dist/esm/engine/compliance/resources/index.js +2 -0
  673. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  674. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +21 -16
  675. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -1
  676. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +17 -6
  677. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -1
  678. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts +37 -0
  679. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.d.ts.map +1 -0
  680. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js +161 -0
  681. package/dist/esm/engine/compliance/resources/published-verification-keys.resource.specification.js.map +1 -0
  682. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts +13 -11
  683. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts.map +1 -1
  684. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +9 -1
  685. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -1
  686. package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.d.ts +27 -0
  687. package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -0
  688. package/dist/esm/engine/{auth → compliance}/resources/siem-delivery-dlq.resource.specification.js +24 -19
  689. package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.js.map +1 -0
  690. package/dist/esm/engine/compliance/resources/siem-delivery-outbox.resource.specification.d.ts.map +1 -0
  691. package/dist/esm/engine/{auth → compliance}/resources/siem-delivery-outbox.resource.specification.js +1 -1
  692. package/dist/esm/engine/compliance/resources/siem-delivery-outbox.resource.specification.js.map +1 -0
  693. package/dist/esm/engine/{auth → compliance}/resources/siem-export-config.resource.specification.d.ts +18 -18
  694. package/dist/esm/engine/compliance/resources/siem-export-config.resource.specification.d.ts.map +1 -0
  695. package/dist/esm/engine/{auth → compliance}/resources/siem-export-config.resource.specification.js +2 -2
  696. package/dist/esm/engine/compliance/resources/siem-export-config.resource.specification.js.map +1 -0
  697. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.d.ts +45 -0
  698. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.d.ts.map +1 -0
  699. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.js +224 -0
  700. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.js.map +1 -0
  701. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts +1 -1
  702. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.d.ts.map +1 -1
  703. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js +3 -2
  704. package/dist/esm/engine/compliance/resources/user-governed-document-acceptances.resource.specification.js.map +1 -1
  705. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  706. package/dist/esm/engine/engine-resource-specifications.registry.js +82 -20
  707. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  708. package/dist/esm/engine/engine-resource-sub-domain.d.ts +7 -3
  709. package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -1
  710. package/dist/esm/engine/engine-resource-sub-domain.js +8 -4
  711. package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -1
  712. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  713. package/dist/esm/engine/errors/error-messages.specification.js +359 -5
  714. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  715. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts +10 -4
  716. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
  717. package/dist/esm/engine/features/core-limits.feature.specifications.js +100 -5
  718. package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
  719. package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
  720. package/dist/esm/engine/features/custom-branding.feature.specification.js +7 -3
  721. package/dist/esm/engine/features/custom-branding.feature.specification.js.map +1 -1
  722. package/dist/esm/engine/features/index.d.ts +4 -2
  723. package/dist/esm/engine/features/index.d.ts.map +1 -1
  724. package/dist/esm/engine/features/index.js +6 -4
  725. package/dist/esm/engine/features/index.js.map +1 -1
  726. package/dist/esm/engine/features/m2m-webhook-delivery.feature.specification.js +1 -1
  727. package/dist/esm/engine/features/m2m-webhook-delivery.feature.specification.js.map +1 -1
  728. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts +7 -7
  729. package/dist/esm/engine/features/resources/application-features.resource.specification.js +8 -8
  730. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  731. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts +7 -7
  732. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  733. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +37 -18
  734. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  735. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +7 -7
  736. package/dist/esm/engine/features/resources/user-features.resource.specification.js +4 -4
  737. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  738. package/dist/esm/engine/files/resources/files.resource.specification.d.ts +27 -24
  739. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  740. package/dist/esm/engine/files/resources/files.resource.specification.js +30 -8
  741. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  742. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts +30 -30
  743. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  744. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +32 -4
  745. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  746. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts +18 -18
  747. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +7 -7
  748. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  749. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts +30 -0
  750. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts.map +1 -0
  751. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js +181 -0
  752. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js.map +1 -0
  753. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts +3 -0
  754. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts.map +1 -0
  755. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js +110 -0
  756. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js.map +1 -0
  757. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts +3 -0
  758. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.d.ts.map +1 -0
  759. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js +286 -0
  760. package/dist/esm/engine/flows-actors/resources/agent-behavior-reports.resource.specification.js.map +1 -0
  761. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts +3 -0
  762. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.d.ts.map +1 -0
  763. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js +147 -0
  764. package/dist/esm/engine/flows-actors/resources/agent-operation-records.resource.specification.js.map +1 -0
  765. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -1
  766. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +71 -26
  767. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -1
  768. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts +3 -0
  769. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.d.ts.map +1 -0
  770. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js +97 -0
  771. package/dist/esm/engine/flows-actors/resources/application-agent-policies.resource.specification.js.map +1 -0
  772. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts +46 -0
  773. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.d.ts.map +1 -0
  774. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js +196 -0
  775. package/dist/esm/engine/flows-actors/resources/chat-conversations.resource.specification.js.map +1 -0
  776. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +229 -178
  777. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  778. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +126 -22
  779. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  780. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +60 -54
  781. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  782. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +23 -8
  783. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  784. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts +3 -0
  785. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.d.ts.map +1 -0
  786. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js +184 -0
  787. package/dist/esm/engine/flows-actors/resources/human-decision-notice-stays.resource.specification.js.map +1 -0
  788. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -1
  789. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +17 -5
  790. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -1
  791. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -1
  792. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +47 -7
  793. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -1
  794. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts +3 -0
  795. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.d.ts.map +1 -0
  796. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js +118 -0
  797. package/dist/esm/engine/flows-actors/resources/model-usage-ceiling-state.resource.specification.js.map +1 -0
  798. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts +3 -0
  799. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.d.ts.map +1 -0
  800. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js +240 -0
  801. package/dist/esm/engine/flows-actors/resources/operation-approval-requests.resource.specification.js.map +1 -0
  802. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts +3 -0
  803. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.d.ts.map +1 -0
  804. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js +151 -0
  805. package/dist/esm/engine/flows-actors/resources/organization-agent-policies.resource.specification.js.map +1 -0
  806. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts +23 -0
  807. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.d.ts.map +1 -0
  808. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js +124 -0
  809. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js.map +1 -0
  810. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts +3 -0
  811. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.d.ts.map +1 -0
  812. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js +114 -0
  813. package/dist/esm/engine/flows-actors/resources/person-token-ceiling-state.resource.specification.js.map +1 -0
  814. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
  815. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +45 -3
  816. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
  817. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
  818. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js +9 -3
  819. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.js.map +1 -1
  820. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts +4 -0
  821. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.d.ts.map +1 -0
  822. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js +78 -0
  823. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js.map +1 -0
  824. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
  825. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js +4 -4
  826. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.js.map +1 -1
  827. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +3 -3
  828. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
  829. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
  830. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js +4 -4
  831. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.js.map +1 -1
  832. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
  833. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js +3 -3
  834. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.js.map +1 -1
  835. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts +5 -0
  836. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.d.ts.map +1 -0
  837. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js +79 -0
  838. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-evaluation-export-settings.frontend-component.specification.js.map +1 -0
  839. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +2 -2
  840. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -1
  841. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts +5 -0
  842. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.d.ts.map +1 -0
  843. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js +79 -0
  844. package/dist/esm/engine/frontend-components/app/app-layout-autonomous-agents-settings.frontend-component.specification.js.map +1 -0
  845. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  846. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +7 -5
  847. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  848. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js +1 -1
  849. package/dist/esm/engine/frontend-components/app/app-layout-document-acceptance-gate.frontend-component.specification.js.map +1 -1
  850. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +3 -3
  851. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
  852. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts +5 -0
  853. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.d.ts.map +1 -0
  854. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js +79 -0
  855. package/dist/esm/engine/frontend-components/app/app-layout-model-cost-breakdown-settings.frontend-component.specification.js.map +1 -0
  856. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts +5 -0
  857. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.d.ts.map +1 -0
  858. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js +79 -0
  859. package/dist/esm/engine/frontend-components/app/app-layout-representative-activity-settings.frontend-component.specification.js.map +1 -0
  860. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js +3 -3
  861. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.js.map +1 -1
  862. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.d.ts.map +1 -1
  863. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js +3 -2
  864. package/dist/esm/engine/frontend-components/app/app-layout-surface-error-boundary.frontend-component.specification.js.map +1 -1
  865. package/dist/esm/engine/frontend-components/app/lifecycle-home-activation-progress.frontend-component.specification.js +1 -1
  866. package/dist/esm/engine/frontend-components/app/lifecycle-home-activation-progress.frontend-component.specification.js.map +1 -1
  867. package/dist/esm/engine/frontend-components/app/lifecycle-home-dashboard.frontend-component.specification.js +1 -1
  868. package/dist/esm/engine/frontend-components/app/lifecycle-home-dashboard.frontend-component.specification.js.map +1 -1
  869. package/dist/esm/engine/frontend-components/app/lifecycle-home-welcome-back.frontend-component.specification.js +1 -1
  870. package/dist/esm/engine/frontend-components/app/lifecycle-home-welcome-back.frontend-component.specification.js.map +1 -1
  871. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  872. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +2 -1
  873. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  874. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js +3 -3
  875. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.js.map +1 -1
  876. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
  877. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +3 -2
  878. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
  879. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts +4 -0
  880. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.d.ts.map +1 -0
  881. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js +22 -0
  882. package/dist/esm/engine/frontend-components/auth/public-layout-chat-identity-link.frontend-component.specification.js.map +1 -0
  883. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js +2 -2
  884. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.js.map +1 -1
  885. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js +1 -1
  886. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.js.map +1 -1
  887. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +1 -1
  888. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  889. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
  890. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js +7 -0
  891. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.js.map +1 -1
  892. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js +1 -1
  893. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.js.map +1 -1
  894. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  895. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  896. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +6 -6
  897. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
  898. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts +4 -0
  899. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.d.ts.map +1 -0
  900. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js +24 -0
  901. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-usage.frontend-component.specification.js.map +1 -0
  902. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js +6 -6
  903. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.js.map +1 -1
  904. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts +4 -0
  905. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.d.ts.map +1 -0
  906. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js +128 -0
  907. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-graph-viewer.frontend-component.specification.js.map +1 -0
  908. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js +1 -1
  909. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.js.map +1 -1
  910. package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.d.ts.map +1 -1
  911. package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.js +1 -0
  912. package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.js.map +1 -1
  913. package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.d.ts.map +1 -1
  914. package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.js +3 -0
  915. package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.js.map +1 -1
  916. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js +1 -1
  917. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.js.map +1 -1
  918. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.d.ts.map +1 -1
  919. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js +4 -1
  920. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.js.map +1 -1
  921. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.d.ts.map +1 -1
  922. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js +4 -1
  923. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.js.map +1 -1
  924. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.d.ts.map +1 -1
  925. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js +4 -1
  926. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.js.map +1 -1
  927. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.d.ts.map +1 -1
  928. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js +4 -1
  929. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.js.map +1 -1
  930. package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.d.ts.map +1 -1
  931. package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.js +3 -0
  932. package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.js.map +1 -1
  933. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.d.ts.map +1 -1
  934. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js +4 -1
  935. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.js.map +1 -1
  936. package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.d.ts.map +1 -1
  937. package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.js +3 -0
  938. package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.js.map +1 -1
  939. package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.d.ts.map +1 -1
  940. package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.js +1 -0
  941. package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.js.map +1 -1
  942. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js +4 -4
  943. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.js.map +1 -1
  944. package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.d.ts.map +1 -1
  945. package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.js +1 -0
  946. package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.js.map +1 -1
  947. package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.d.ts.map +1 -1
  948. package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.js +1 -0
  949. package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.js.map +1 -1
  950. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts +5 -0
  951. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.d.ts.map +1 -0
  952. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js +139 -0
  953. package/dist/esm/engine/frontend-components/form/controls/string/chips-input.frontend-component.specification.js.map +1 -0
  954. package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.d.ts.map +1 -1
  955. package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.js +3 -0
  956. package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.js.map +1 -1
  957. package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.d.ts.map +1 -1
  958. package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.js +3 -0
  959. package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.js.map +1 -1
  960. package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.d.ts.map +1 -1
  961. package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.js +3 -0
  962. package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.js.map +1 -1
  963. package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.d.ts.map +1 -1
  964. package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.js +3 -0
  965. package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.js.map +1 -1
  966. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +1 -1
  967. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
  968. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart.frontend-component.specification.js +1 -1
  969. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart.frontend-component.specification.js.map +1 -1
  970. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
  971. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js +5 -1
  972. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.js.map +1 -1
  973. package/dist/esm/engine/frontend-components/index.d.ts +6 -0
  974. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  975. package/dist/esm/engine/frontend-components/index.js +26 -0
  976. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  977. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js +1 -1
  978. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.js.map +1 -1
  979. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
  980. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js +3 -1
  981. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.js.map +1 -1
  982. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js +4 -4
  983. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.js.map +1 -1
  984. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.d.ts.map +1 -1
  985. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js +12 -0
  986. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js.map +1 -1
  987. package/dist/esm/engine/frontend-components/resources/resource-layout-filters.frontend-component.specification.js +1 -1
  988. package/dist/esm/engine/frontend-components/resources/resource-layout-filters.frontend-component.specification.js.map +1 -1
  989. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js +2 -2
  990. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.js.map +1 -1
  991. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.d.ts.map +1 -1
  992. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js +7 -3
  993. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.js.map +1 -1
  994. package/dist/esm/engine/frontend-components/resources/resource-layout-operations-items.frontend-component.specification.js +1 -1
  995. package/dist/esm/engine/frontend-components/resources/resource-layout-operations-items.frontend-component.specification.js.map +1 -1
  996. package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.d.ts.map +1 -1
  997. package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.js +1 -0
  998. package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.js.map +1 -1
  999. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts +4 -0
  1000. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.d.ts.map +1 -0
  1001. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js +27 -0
  1002. package/dist/esm/engine/frontend-components/resources/resource-layout-record-sharing.frontend-component.specification.js.map +1 -0
  1003. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
  1004. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js +5 -3
  1005. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.js.map +1 -1
  1006. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts +16 -14
  1007. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
  1008. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +4 -4
  1009. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  1010. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts +18 -16
  1011. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  1012. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +20 -18
  1013. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  1014. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts +24 -0
  1015. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.d.ts.map +1 -0
  1016. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js +136 -0
  1017. package/dist/esm/engine/infrastructure/resources/application-data-keys.resource.specification.js.map +1 -0
  1018. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  1019. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +6 -1
  1020. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  1021. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -1
  1022. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +10 -4
  1023. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -1
  1024. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -1
  1025. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +20 -2
  1026. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -1
  1027. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +6 -6
  1028. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -1
  1029. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +1 -1
  1030. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +5 -5
  1031. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
  1032. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts +10 -0
  1033. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.d.ts.map +1 -0
  1034. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js +118 -0
  1035. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-requested-keys.resource.specification.js.map +1 -0
  1036. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -1
  1037. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +54 -8
  1038. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -1
  1039. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  1040. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +9 -0
  1041. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  1042. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -1
  1043. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +33 -5
  1044. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -1
  1045. package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.d.ts +10 -0
  1046. package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.d.ts.map +1 -0
  1047. package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.js +155 -0
  1048. package/dist/esm/engine/infrastructure/resources/external-effect-reservations.resource.specification.js.map +1 -0
  1049. package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.d.ts +9 -0
  1050. package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.d.ts.map +1 -0
  1051. package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.js +155 -0
  1052. package/dist/esm/engine/infrastructure/resources/idempotent-request-outcomes.resource.specification.js.map +1 -0
  1053. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +37 -19
  1054. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  1055. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +14 -14
  1056. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
  1057. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  1058. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts +10 -0
  1059. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.d.ts.map +1 -0
  1060. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js +159 -0
  1061. package/dist/esm/engine/infrastructure/resources/post-commit-effect-outbox.resource.specification.js.map +1 -0
  1062. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts +15 -15
  1063. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.d.ts.map +1 -1
  1064. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +45 -16
  1065. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
  1066. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts +9 -0
  1067. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.d.ts.map +1 -0
  1068. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js +100 -0
  1069. package/dist/esm/engine/infrastructure/resources/transactional-commit-receipts.resource.specification.js.map +1 -0
  1070. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts +37 -0
  1071. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.d.ts.map +1 -0
  1072. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js +183 -0
  1073. package/dist/esm/engine/notifications/resources/chat-identity-links.resource.specification.js.map +1 -0
  1074. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +52 -50
  1075. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map +1 -1
  1076. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +18 -10
  1077. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -1
  1078. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +86 -53
  1079. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -1
  1080. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +78 -17
  1081. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -1
  1082. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +85 -83
  1083. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -1
  1084. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +59 -55
  1085. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -1
  1086. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +30 -26
  1087. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  1088. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +38 -20
  1089. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  1090. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +12 -14
  1091. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  1092. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +0 -2
  1093. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  1094. package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.d.ts +56 -0
  1095. package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.d.ts.map +1 -0
  1096. package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.js +277 -0
  1097. package/dist/esm/engine/notifications/resources/sms-provider-events.resource.specification.js.map +1 -0
  1098. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +20 -16
  1099. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  1100. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +13 -8
  1101. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  1102. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +1 -0
  1103. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -1
  1104. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +43 -2
  1105. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -1
  1106. package/dist/esm/engine/notifications/system-emails/index.d.ts +0 -1
  1107. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  1108. package/dist/esm/engine/notifications/system-emails/index.js +1 -3
  1109. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  1110. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts +1 -1
  1111. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
  1112. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js +25 -15
  1113. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.js.map +1 -1
  1114. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js +13 -13
  1115. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.js.map +1 -1
  1116. package/dist/esm/engine/organizations/resources/index.d.ts +1 -2
  1117. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  1118. package/dist/esm/engine/organizations/resources/index.js +1 -2
  1119. package/dist/esm/engine/organizations/resources/index.js.map +1 -1
  1120. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.d.ts +33 -0
  1121. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.d.ts.map +1 -0
  1122. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.js +195 -0
  1123. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.js.map +1 -0
  1124. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +19 -18
  1125. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  1126. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +129 -64
  1127. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  1128. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts +7 -7
  1129. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
  1130. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +5 -1
  1131. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  1132. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts +13 -13
  1133. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +12 -11
  1134. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  1135. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +10 -7
  1136. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  1137. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts +128 -0
  1138. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts.map +1 -0
  1139. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js +653 -0
  1140. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js.map +1 -0
  1141. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts +9 -9
  1142. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  1143. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +15 -17
  1144. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  1145. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts +14 -14
  1146. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  1147. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +5 -5
  1148. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  1149. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +18 -13
  1150. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  1151. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +111 -43
  1152. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  1153. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts +39 -0
  1154. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.d.ts.map +1 -0
  1155. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js +140 -0
  1156. package/dist/esm/engine/organizations/resources/professional-qualifications.resource.specification.js.map +1 -0
  1157. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -1
  1158. package/dist/esm/engine/providers/anthropic.provider.specification.js +18 -3
  1159. package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -1
  1160. package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -1
  1161. package/dist/esm/engine/providers/apple.provider.specification.js +6 -2
  1162. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  1163. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
  1164. package/dist/esm/engine/providers/github.provider.specification.js +18 -7
  1165. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  1166. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts +6 -0
  1167. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts.map +1 -0
  1168. package/dist/esm/engine/providers/google-drive.provider.specification.js +48 -0
  1169. package/dist/esm/engine/providers/google-drive.provider.specification.js.map +1 -0
  1170. package/dist/esm/engine/providers/google-places.provider.specification.d.ts.map +1 -1
  1171. package/dist/esm/engine/providers/google-places.provider.specification.js +5 -2
  1172. package/dist/esm/engine/providers/google-places.provider.specification.js.map +1 -1
  1173. package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -1
  1174. package/dist/esm/engine/providers/google.provider.specification.js +8 -2
  1175. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  1176. package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -1
  1177. package/dist/esm/engine/providers/grok.provider.specification.js +14 -3
  1178. package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -1
  1179. package/dist/esm/engine/providers/index.d.ts +2 -0
  1180. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  1181. package/dist/esm/engine/providers/index.js +5 -1
  1182. package/dist/esm/engine/providers/index.js.map +1 -1
  1183. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts +6 -0
  1184. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts.map +1 -0
  1185. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js +55 -0
  1186. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js.map +1 -0
  1187. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  1188. package/dist/esm/engine/providers/microsoft.provider.specification.js +26 -3
  1189. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  1190. package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -1
  1191. package/dist/esm/engine/providers/mistral.provider.specification.js +20 -5
  1192. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
  1193. package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -1
  1194. package/dist/esm/engine/providers/openai.provider.specification.js +30 -3
  1195. package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -1
  1196. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -1
  1197. package/dist/esm/engine/providers/perplexity.provider.specification.js +13 -2
  1198. package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -1
  1199. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts.map +1 -1
  1200. package/dist/esm/engine/providers/recaptcha.provider.specification.js +8 -3
  1201. package/dist/esm/engine/providers/recaptcha.provider.specification.js.map +1 -1
  1202. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  1203. package/dist/esm/engine/providers/resend.provider.specification.js +27 -10
  1204. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  1205. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  1206. package/dist/esm/engine/providers/stripe.provider.specification.js +19 -3
  1207. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  1208. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
  1209. package/dist/esm/engine/providers/twilio.provider.specification.js +21 -6
  1210. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
  1211. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js +1 -1
  1212. package/dist/esm/engine/roles/app-audit-evidence-reader.role.specification.js.map +1 -1
  1213. package/dist/esm/engine/roles/app-sms-provider-events.role.specification.d.ts +2 -0
  1214. package/dist/esm/engine/roles/app-sms-provider-events.role.specification.d.ts.map +1 -0
  1215. package/dist/esm/engine/roles/app-sms-provider-events.role.specification.js +21 -0
  1216. package/dist/esm/engine/roles/app-sms-provider-events.role.specification.js.map +1 -0
  1217. package/dist/esm/engine/roles/index.d.ts +8 -7
  1218. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  1219. package/dist/esm/engine/roles/index.js +13 -10
  1220. package/dist/esm/engine/roles/index.js.map +1 -1
  1221. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +1 -1
  1222. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -1
  1223. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +24 -24
  1224. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -1
  1225. package/dist/esm/engine/roles/org-representative.role.specification.d.ts +2 -0
  1226. package/dist/esm/engine/roles/org-representative.role.specification.d.ts.map +1 -0
  1227. package/dist/esm/engine/roles/org-representative.role.specification.js +22 -0
  1228. package/dist/esm/engine/roles/org-representative.role.specification.js.map +1 -0
  1229. package/dist/esm/engine/roles/org-signature-provider-events.role.specification.d.ts +2 -0
  1230. package/dist/esm/engine/roles/org-signature-provider-events.role.specification.d.ts.map +1 -0
  1231. package/dist/esm/engine/roles/org-signature-provider-events.role.specification.js +21 -0
  1232. package/dist/esm/engine/roles/org-signature-provider-events.role.specification.js.map +1 -0
  1233. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts +13 -12
  1234. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  1235. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -5
  1236. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  1237. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +12 -12
  1238. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
  1239. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +4 -3
  1240. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  1241. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js +3 -3
  1242. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js.map +1 -1
  1243. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts +15 -15
  1244. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +3 -3
  1245. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  1246. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts +17 -17
  1247. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  1248. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +13 -1
  1249. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  1250. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +2 -0
  1251. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  1252. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +4 -0
  1253. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  1254. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +25 -20
  1255. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  1256. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +8 -8
  1257. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  1258. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts +8 -8
  1259. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +3 -3
  1260. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  1261. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +25 -20
  1262. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  1263. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +7 -2
  1264. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  1265. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts +8 -8
  1266. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +2 -2
  1267. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  1268. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts +11 -9
  1269. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  1270. package/dist/esm/engine/users/resources/user-self.resource.specification.js +46 -7
  1271. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  1272. package/dist/esm/engine/users/resources/users-api-reference.examples.d.ts +3 -0
  1273. package/dist/esm/engine/users/resources/users-api-reference.examples.d.ts.map +1 -1
  1274. package/dist/esm/engine/users/resources/users-api-reference.examples.js +3 -0
  1275. package/dist/esm/engine/users/resources/users-api-reference.examples.js.map +1 -1
  1276. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +12 -10
  1277. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  1278. package/dist/esm/engine/users/resources/users.resource.specification.js +26 -15
  1279. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  1280. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts +63 -29
  1281. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.d.ts.map +1 -1
  1282. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js +75 -11
  1283. package/dist/esm/technical-documentation/application-documentation-chapters.schemas.js.map +1 -1
  1284. package/dist/esm/technical-documentation/application-documentation-plan-generation.schemas.d.ts +2 -2
  1285. package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts +2 -30
  1286. package/dist/esm/technical-documentation/application-documentation-plan.schemas.d.ts.map +1 -1
  1287. package/dist/esm/technical-documentation/application-documentation-plan.schemas.js +2 -2
  1288. package/dist/esm/technical-documentation/application-documentation-plan.schemas.js.map +1 -1
  1289. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  1290. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +51 -24
  1291. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  1292. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.d.ts +0 -31
  1293. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.d.ts.map +1 -1
  1294. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.d.ts +0 -11
  1295. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.d.ts.map +1 -1
  1296. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.d.ts +0 -20
  1297. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.d.ts.map +1 -1
  1298. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.d.ts +0 -3
  1299. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.d.ts.map +1 -1
  1300. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.d.ts +0 -24
  1301. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.d.ts.map +1 -1
  1302. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +0 -12
  1303. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
  1304. package/dist/tsconfig.build.tsbuildinfo +1 -1
  1305. package/package.json +11 -11
  1306. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts +0 -35
  1307. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +0 -1
  1308. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +0 -1
  1309. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.d.ts.map +0 -1
  1310. package/dist/esm/engine/auth/resources/siem-delivery-outbox.resource.specification.js.map +0 -1
  1311. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +0 -1
  1312. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +0 -1
  1313. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts +0 -6
  1314. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +0 -1
  1315. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js +0 -146
  1316. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.js.map +0 -1
  1317. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +0 -38
  1318. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +0 -1
  1319. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +0 -152
  1320. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +0 -1
  1321. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts +0 -106
  1322. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +0 -1
  1323. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +0 -417
  1324. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +0 -1
  1325. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +0 -2
  1326. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +0 -1
  1327. package/dist/esm/engine/roles/org-service-provider.role.specification.js +0 -22
  1328. package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +0 -1
  1329. /package/dist/esm/engine/{auth → compliance}/resources/siem-delivery-outbox.resource.specification.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"specification-module-faults.js","sourceRoot":"","sources":["../../../src/_core/specification-module-faults.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAEH;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,+BAsBX;AAtBD,WAAY,+BAA+B;IACzC;;;;;;;;;;;OAWG;IACH,gFAA6C,CAAA;IAC7C;;;;;;OAMG;IACH,sEAAmC,CAAA;AACrC,CAAC,EAtBW,+BAA+B,KAA/B,+BAA+B,QAsB1C;AA6CD,MAAM,sBAAsB,GAAwB,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AI,CAAC,IAAI,CAAC,EAAE,CAAC;IAC7J,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,KAAK,+BAA+B,CAAC,oBAAoB;QACpF,CAAC,CAAC,oLAAoL;QACtL,CAAC,CAAC,EAAE,CAAC;IACP,OAAO,0BAA0B,iBAAiB,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC,8CAA8C,IAAI,KAAK,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,EAAE,CAAC;AAC3M,CAAC;AAED,SAAS,iBAAiB,CAAC,UAAkB,EAAE,UAA8B;IAC3E,MAAM,MAAM,GAAG,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IAClF,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;AACrH,CAAC","sourcesContent":["/**\n * ONE specifications module that cannot be evaluated never takes the others down with it (#3258).\n *\n * ## What `specification-definition-faults.ts` left whole-package\n *\n * The definition-fault capture (#3210, #3211) turns a FACTORY's refusal into a marked, dropped specification. It\n * cannot reach a module whose body throws for any other reason: a `TypeError` at import (a symbol read from a sibling\n * package whose build is behind its source), an import of a file that does not exist, a syntax error, or a refusal\n * from one of the three factories that deliberately do not route through the capture. The specifications package is\n * one static import graph (`companion-exports.ts` imports every module), so that throw aborted the root, and every\n * reader of the package — the build-task list, `wildo creation why`, every playbook run — refused with it.\n *\n * ## The mechanism: a boundary per module, and a collector per evaluation\n *\n * A reader that must survive one bad module evaluates the package through a loader that gives each authored module\n * its own evaluation boundary (`@wildo-ai/platform-config-lib`'s `moduleEvaluationBoundary`: the module's transpiled\n * body runs inside a `try`, and a throw is handed to a handler instead of propagating to its importer). This file\n * supplies the handler, {@link createSpecificationModuleFaultCollector}:\n *\n * - the module's failure becomes a named {@link SpecificationModuleFault} (its file, the error, and how to READ it —\n * see {@link SpecificationModuleFaultReading});\n * - the module then contributes NOTHING: every export it owns becomes a stand-in naming the module, so an export\n * assigned before the throw is not served from a module the report calls broken;\n * - its importers carry on. A stand-in can be HELD but not USED: stored in a map or a field, or spread, it stays where\n * it landed; read, called or iterated into, it throws naming the module. So an importer that uses it fails in turn,\n * and is reported as a consequence of that module ({@link SpecificationModuleFault.causedBy}), and what merely holds\n * it is found by {@link separateUnavailableSpecifications} at any depth.\n *\n * ## Why a stand-in and not `undefined`\n *\n * `undefined` carries no origin, so it answered \"did the failed module contribute here?\" only by guessing: an optional\n * field left `undefined` read as a hole, and `...undefinedMap` left no trace at all (a resource module that failed\n * simply had no entries). The stand-in is the provenance: where it is found, that module contributed, and nowhere else.\n *\n * ## Unavailable is not absent\n *\n * A reader acts on absence: a family with no value is offered to its producing playbook, an application with no build\n * plan is told to decompose. So what a failed module withheld must never read as absent. A withheld slot stays in the\n * exports as a key that THROWS {@link SpecificationUnavailableError} when read ({@link guardUnavailableSpecifications}):\n * the read that threw before #3258, and failed closed, still does, now only for what the failed module owns, and a new\n * reader gets that without having to ask.\n *\n * Absence itself cannot always be trusted. A stand-in spread onto the surface leaves every other slot in doubt, so those\n * refuse like a withheld slot. Any other root fault leaves an absent slot reading absent, and marks it\n * ({@link unprovenAbsences}): what would produce it holds, and a read for any other purpose is unaffected.\n *\n * Unlike the definition-fault window, nothing here is process-wide: the handler is a closure the loader passes to ONE\n * evaluation, and the faults are that closure's list, so two overlapping evaluations cannot see each other's\n * findings.\n *\n * ## A module fault is not a refusal\n *\n * A `SpecificationDefinitionFault` says a factory judged the author's definition and refused it, which is why a\n * build task that wrote one is re-dispatched with the refusal in its brief. A module fault says only that code did\n * not run, and the commonest cause is not the author's: a workspace package read before its watcher re-emitted it\n * (the 2026-09-16 `Cannot read properties of undefined (reading 'ASSIGN_OWNER')` incident). So the two are separate\n * lists, and a module fault carries a {@link SpecificationModuleFaultReading} that keeps the stale-build case a\n * \"could not ask\" — never a verdict on the specification (#3210 re-review, L3's rule).\n *\n * No `node:` import is used: this package also reaches browser bundles.\n */\n\n/**\n * How a module failure should be READ — the one judgement a reader needs before acting on it.\n *\n * Derived from the error alone, so it is a reading rather than a diagnosis: the same `TypeError` is produced by a\n * sibling package whose build is behind and by an import the author misspelled, and nothing in the error tells them\n * apart. The member names say which reading must be ruled out first.\n */\nexport enum SpecificationModuleFaultReading {\n /**\n * A value the module needs is missing, or code outside the authored tree failed: a `TypeError` an `undefined` import\n * produces, any `TypeError`, `ReferenceError` or `SyntaxError` raised inside a sibling package, or a module outside\n * the authored tree that could not be found. Most often a workspace package read before its build re-emitted the\n * symbol, or a compiled file that is not there yet. Until the application's builds are current this is a LOAD\n * condition: a reader that judges the author's work treats it as \"could not ask\", never as the specification being\n * wrong (the rule `specification-definition-faults.ts` holds for a factory callback reading such a value).\n *\n * It cannot tell a missing import from a typo that reaches through one (`z.string().isPrimarykey is not a function`\n * may be either: a stale decorators build reads exactly so). A typo read this way costs the run a bounded number of retries, because a run that could only fail on\n * \"could not ask\" is the host's failure, and the host's forgiveness is bounded; it is not excused for ever.\n */\n POSSIBLY_STALE_BUILD = 'possibly-stale-build',\n /**\n * The module itself is wrong whatever the builds: it raised an error on purpose (a factory outside the\n * definition-fault capture refused its definition, an authored `throw`, wherever the throw sits), its source could\n * not be parsed, it names an identifier that is not declared (a `ReferenceError` raised in the authored tree, which is\n * read as source, so no build can be behind it), it misuses a valid value (assigns a constant), or it imports a file\n * of the authored tree that does not exist.\n */\n AUTHORING_ERROR = 'authoring-error',\n}\n\n/** One authored specifications module whose evaluation failed, as a named finding. */\nexport interface SpecificationModuleFault {\n /** The module's file, as the loader evaluated it (absolute). A reader shows it relative to its own root. */\n readonly modulePath: string;\n /** The error's constructor name (`TypeError`, `SyntaxError`, `Error`, …) — kept because the reading rests on it. */\n readonly errorName: string;\n /** The error's own message, verbatim. */\n readonly message: string;\n /** A consequence takes the reading of its causes: what it threw says nothing about the module itself. */\n readonly reading: SpecificationModuleFaultReading;\n /**\n * The first stack frame inside the authored tree — the line that threw, which is not always in {@link modulePath} (a\n * helper module's function called at load) — or `null` when the stack has none.\n */\n readonly authoredFrame: string | null;\n /**\n * The failed modules this one imports, directly or not: empty for a root cause. A module that imports a failed one\n * is judged by that module, whatever it threw itself, because what it threw may be what the missing value made it\n * throw. See {@link specificationModuleFaultsAreAVerdict}.\n */\n readonly causedBy: readonly string[];\n /** The slots this module's failure left unavailable, in words ({@link nameWithheldSpecifications}). */\n readonly withheldSpecifications: readonly string[];\n}\n\n/** What a module evaluation boundary hands its handler (the shape `@wildo-ai/platform-config-lib` passes). */\nexport interface SpecificationModuleEvaluationFailure {\n readonly filename: string;\n readonly error: unknown;\n /** The failed module's `exports` object — the handler replaces what the module had assigned. */\n readonly moduleExports: Record<string, unknown>;\n /** Every bounded module the failed module imports, directly or not. */\n readonly importedFilenames: readonly string[];\n}\n\n/** One evaluation's handler and the faults it collected. Create one per evaluation; never share one. */\nexport interface SpecificationModuleFaultCollector {\n /** Absorb a bounded module's failure: record it, replace the module's exports, and answer `true` (handled). */\n readonly absorb: (failure: SpecificationModuleEvaluationFailure) => boolean;\n /** The failures absorbed so far, in evaluation order. */\n readonly faults: readonly SpecificationModuleFault[];\n}\n\nconst MODULE_NOT_FOUND_CODES: ReadonlySet<string> = new Set(['MODULE_NOT_FOUND', 'ERR_MODULE_NOT_FOUND']);\n\nfunction describeError(error: unknown): string {\n if (error instanceof Error) return error.message;\n return typeof error === 'string' ? error : JSON.stringify(error);\n}\n\nfunction readErrorName(error: unknown): string {\n if (error instanceof Error) return error.name.length > 0 ? error.name : error.constructor.name;\n return typeof error;\n}\n\nfunction readStackLines(error: unknown): readonly string[] {\n const stack = error instanceof Error && typeof error.stack === 'string' ? error.stack : '';\n return stack.split('\\n').map((line) => line.trim());\n}\n\n/** A stack line's file, or `null` for a line that names none (`node:internal/…`, `<anonymous>`, the message). */\nfunction readFrameFile(line: string): string | null {\n const frame = line.startsWith('at ') ? line.replace(/^at\\s+(?:async\\s+)?/u, '') : line;\n if (frame === line) return null;\n const location = /\\(([^()]+)\\)$/u.exec(frame)?.[1] ?? frame;\n const file = location.replace(/^file:\\/\\//u, '').replace(/(?::\\d+){1,2}$/u, '');\n return file.startsWith('/') || /^[A-Za-z]:[\\\\/]/u.test(file) ? file : null;\n}\n\n/** The file whose code raised the error: the top stack frame that names one. */\nfunction readErrorOriginFile(error: unknown): string | null {\n for (const line of readStackLines(error)) {\n const file = readFrameFile(line);\n if (file !== null) return file;\n }\n return null;\n}\n\n/**\n * The authored frame of a stack, as {@link SpecificationModuleFault.authoredFrame} defines it: `path:line:col` and nothing\n * else (#3258). A module can set its error's `stack`, and this reaches a trusted section of a coding brief, so a function\n * name or any text beside the location stays out, and a line with whitespace past the root is not a frame.\n */\nfunction readAuthoredFrame(error: unknown, authoredRoot: string): string | null {\n for (const line of readStackLines(error)) {\n const file = line.startsWith('at ') ? readFrameFile(line) : null;\n if (file === null || !isInsideAuthoredTree(file, authoredRoot) || /\\s/u.test(file.slice(authoredRoot.length))) continue;\n const position = /:(\\d+):(\\d+)\\)?$/u.exec(line);\n if (position !== null) return `${file}:${position[1]}:${position[2]}`;\n }\n return null;\n}\n\nfunction isInsideAuthoredTree(file: string, authoredRoot: string): boolean {\n return file.startsWith(authoredRoot) && !/[\\\\/]node_modules[\\\\/]/u.test(file.slice(authoredRoot.length));\n}\n\n/**\n * The `TypeError`s that say a valid value was misused, which no missing import produces: assigning a constant, writing\n * to a frozen object, a circular structure, mixing a BigInt. Every other `TypeError` (a read, write, destructure, call,\n * `new`, spread, iteration or conversion of something that was not there) is what an `undefined` import looks like, as\n * V8 words it in many ways; a list of those shapes is a list of what could hide a stale build, so the short list is the\n * one kept, with {@link isLocalValueMisused} beside it.\n */\nconst OWN_CODE_TYPE_ERROR_PATTERN = /Assignment to constant variable|Cannot assign to read only property|object is not extensible|Cannot delete property|Cannot redefine property|Converting circular structure|Cannot mix BigInt/u;\n\n/** V8 names what it could not call, construct or iterate: `<that> is not a function`. */\nconst UNUSABLE_VALUE_PATTERN = /^(.+?) is not (?:a function|a constructor|iterable)/u;\n\n/**\n * What V8 printed reaches through an import when it starts at the loader's module binding: Babel compiles `import { x }\n * from './host'` to `_host.x`, printed `(0 , _host.x)` for a call. `undefined` and `null` are the missing value itself.\n */\nconst THROUGH_AN_IMPORT_PATTERN = /^(?:\\(0 ?, ?)?_[\\w$]*(?:\\.|\\)|$)|undefined|null/u;\n\n/**\n * Whether a `TypeError` names a value the module holds itself that is not what the code asked of it: `items.mapp is not\n * a function` on a local array is a typo, and no build can be behind it. It reads what V8 printed, so it cannot see through\n * a local alias of an import (`const { x } = shared; x()`), and that case reads as the module being wrong.\n */\nfunction isLocalValueMisused(message: string): boolean {\n const unusable = UNUSABLE_VALUE_PATTERN.exec(message)?.[1];\n return unusable !== undefined && !THROUGH_AN_IMPORT_PATTERN.test(unusable);\n}\n\n/** A not-found error's specifier and, when it names one, the module that asked for it. */\nfunction readModuleNotFound(message: string): { readonly specifier: string; readonly importer: string | null } | null {\n const specifier = /Cannot find (?:module|package) ['\"]([^'\"]+)['\"]/u.exec(message)?.[1];\n if (specifier === undefined) return null;\n const importer = /imported from (.+)$/mu.exec(message)?.[1] ?? /Require stack:\\s*\\n\\s*-\\s*(.+)$/mu.exec(message)?.[1] ?? null;\n return { specifier, importer: importer === null ? null : importer.trim().replace(/^file:\\/\\//u, '') };\n}\n\n/**\n * Whether a not-found error is the AUTHORED tree's: an authored module asked for a relative specifier, a\n * package-internal `~` alias, or a path inside the tree. Those are read as source, so no build can be behind them; a\n * missing one was never written, or is misspelled. A compiled file that asks (an unfinalized `dist` still naming\n * `~wildo-models`) is a build, whatever the specifier looks like.\n */\nfunction namesAuthoredModule(message: string, authoredRoot: string): boolean {\n const notFound = readModuleNotFound(message);\n if (notFound === null) return false;\n if (notFound.importer !== null && !isInsideAuthoredTree(notFound.importer, authoredRoot)) return false;\n const specifier = notFound.specifier.replace(/^file:\\/\\//u, '');\n return specifier.startsWith('.') || specifier.startsWith('~') || specifier.startsWith(authoredRoot);\n}\n\n/**\n * Read a module failure (see {@link SpecificationModuleFaultReading}) by where it came from, because the same words mean\n * different things in the authored tree and outside it. `authoredRoot` is the tree's absolute path, ending in a\n * separator: its directory name is the application's to choose.\n *\n * - An error the JavaScript engine raised outside the authored tree (`TypeError`, `ReferenceError`, `SyntaxError`) is a\n * sibling package that could not run, not this module: a half-written `dist`, a TDZ in a sibling. Node's `SyntaxError`\n * for a native import names no file in its stack at all, and authored source is never imported natively (a module that\n * does not parse fails in its own file, through the boundary), so a stack that does not reach the tree counts as outside.\n * A plain `Error` raised there is a factory refusing what it was given, which is the author's.\n * - Inside the tree, a `TypeError` is a missing value unless it says otherwise ({@link OWN_CODE_TYPE_ERROR_PATTERN},\n * {@link isLocalValueMisused}), and every other error is the module being wrong.\n */\nexport function readSpecificationModuleFailure(error: unknown, authoredRoot: string): SpecificationModuleFaultReading {\n const code = error !== null && typeof error === 'object' ? (error as { code?: unknown }).code : undefined;\n if (typeof code === 'string' && MODULE_NOT_FOUND_CODES.has(code)) {\n return namesAuthoredModule(describeError(error), authoredRoot) ? SpecificationModuleFaultReading.AUTHORING_ERROR : SpecificationModuleFaultReading.POSSIBLY_STALE_BUILD;\n }\n const originFile = readErrorOriginFile(error);\n const raisedInTheTree = originFile !== null && isInsideAuthoredTree(originFile, authoredRoot);\n if (!raisedInTheTree && (error instanceof TypeError || error instanceof ReferenceError || error instanceof SyntaxError)) {\n return SpecificationModuleFaultReading.POSSIBLY_STALE_BUILD;\n }\n if (error instanceof TypeError && !OWN_CODE_TYPE_ERROR_PATTERN.test(error.message) && !isLocalValueMisused(error.message)) {\n return SpecificationModuleFaultReading.POSSIBLY_STALE_BUILD;\n }\n return SpecificationModuleFaultReading.AUTHORING_ERROR;\n}\n\n/**\n * Whether a set of module faults can be read as a verdict on the authored specifications, decided by the ROOT causes\n * alone: a consequence says nothing of its own, whichever way it reads. An authoring error among them is a verdict\n * whatever a sibling's build is doing, since it stays wrong once the builds are current; with none, a possibly stale\n * build means \"could not ask\".\n */\nexport function specificationModuleFaultsAreAVerdict(faults: readonly SpecificationModuleFault[]): boolean {\n const roots = faults.filter((fault) => fault.causedBy.length === 0);\n return roots.some((fault) => fault.reading === SpecificationModuleFaultReading.AUTHORING_ERROR)\n || !roots.some((fault) => fault.reading === SpecificationModuleFaultReading.POSSIBLY_STALE_BUILD);\n}\n\n/** Thrown when code USES a value a failed module would have exported. A `TypeError`, so no factory reads it as a refusal. */\nexport class SpecificationModuleUnavailableError extends TypeError {\n public readonly modulePath: string;\n\n public constructor(modulePath: string) {\n super(`A value of specifications module \"${modulePath}\" was used, and that module could not be evaluated`);\n this.name = 'SpecificationModuleUnavailableError';\n this.modulePath = modulePath;\n }\n}\n\n/** The stand-in's origin. A `Symbol.for` key for the reason `specification-definition-faults.ts` gives. */\nconst UNAVAILABLE_SPECIFICATION_ORIGIN: symbol = Symbol.for('wildo.saas-specifications.unavailable-specification-origin');\n\n/**\n * Marks a stand-in's key wherever it ends up, a template included. A file holding it was built from a failed module, so\n * the specification writes refuse it (`writeSpecificationFileAtomically`).\n */\nexport const UNAVAILABLE_SPECIFICATION_MARKER = 'wildo:unavailable-specification:';\n\n/** What a stand-in spreads as: one entry under this key, holding itself, so a spread carries it into the target. */\nconst unavailableSpecificationKey = (modulePath: string): string => `\\u0000${UNAVAILABLE_SPECIFICATION_MARKER}${modulePath}\\u0000`;\n\n/** Every module named by a stand-in's key inside a text: the key itself, or a string that was built from it. */\nconst UNAVAILABLE_SPECIFICATION_KEY_PATTERN = new RegExp(`\\u0000${UNAVAILABLE_SPECIFICATION_MARKER}([^\\u0000]*)\\u0000`, 'gu');\n\n/**\n * What a failed module's export becomes (see the file header). A proxy over a bound function, so calling it and `new`\n * reach its traps, and it owns no `prototype`, the one non-configurable key that would break the `ownKeys` answer.\n *\n * `Object.keys` and a spread both ask `ownKeys`, and only a string key survives both, so that is what it answers; the\n * key's own name is found wherever it lands ({@link collectStandInOrigins}). `then` and `default` read `undefined`\n * because the loader's interop reads them from every value it passes through.\n */\nfunction createUnavailableSpecificationStandIn(modulePath: string): object {\n const heldKey = unavailableSpecificationKey(modulePath);\n const use = (): never => {\n throw new SpecificationModuleUnavailableError(modulePath);\n };\n const standIn: object = new Proxy((function unavailableSpecification(): void {}).bind(null), {\n get: (_target, key) => {\n if (key === UNAVAILABLE_SPECIFICATION_ORIGIN) return modulePath;\n if (key === heldKey) return standIn;\n if (key === Symbol.iterator) return function* yieldStandIn(): Generator<object> {\n yield standIn;\n };\n if (key === 'then' || key === 'default') return undefined;\n if (typeof key === 'symbol' && key !== Symbol.toPrimitive) return undefined;\n return use();\n },\n has: use,\n set: use,\n apply: use,\n construct: use,\n defineProperty: use,\n deleteProperty: use,\n ownKeys: () => [heldKey],\n getOwnPropertyDescriptor: (_target, key) => (key === heldKey ? { value: standIn, enumerable: true, configurable: true, writable: false } : undefined),\n });\n return standIn;\n}\n\n/**\n * Whether a module's namespace answers this name with its stand-in. jiti reads `__JITI_ERROR__`, `__esModule` and `then`\n * off every module it returns, so those stay the namespace's own.\n */\nfunction isAuthoredExportName(key: string | symbol): key is string {\n return typeof key === 'string' && key !== 'then' && !key.startsWith('__');\n}\n\n/**\n * What a failed module's namespace falls back to: every name reads the stand-in. A source that could not be transpiled\n * never ran, so it declared no export at all, and its importers would otherwise read a plain `undefined`.\n */\nfunction createUnavailableModuleNamespace(standIn: object): object {\n return new Proxy(Object.create(null) as object, {\n has: (_target, key) => isAuthoredExportName(key),\n get: (_target, key) => {\n if (key === '__esModule') return true;\n return isAuthoredExportName(key) ? standIn : undefined;\n },\n });\n}\n\n/**\n * The handler for ONE evaluation of a specifications package through a loader with module boundaries. See the file\n * header for what absorbing a failure does and why the collector is per evaluation.\n *\n * `authoredRoot` is the tree the boundary covers, as an absolute path ending in a separator.\n */\nexport function createSpecificationModuleFaultCollector(authoredRoot: string): SpecificationModuleFaultCollector {\n const faults: SpecificationModuleFault[] = [];\n return {\n faults,\n absorb: ({ filename, error, moduleExports, importedFilenames }) => {\n const imported = new Set(importedFilenames);\n if (error instanceof SpecificationModuleUnavailableError) imported.add(error.modulePath);\n const rootPaths = new Set(faults.filter((fault) => imported.has(fault.modulePath)).flatMap((fault) => (fault.causedBy.length > 0 ? fault.causedBy : [fault.modulePath])));\n const roots = faults.filter((fault) => rootPaths.has(fault.modulePath));\n faults.push({\n modulePath: filename,\n errorName: readErrorName(error),\n message: describeError(error),\n reading: roots.length === 0\n ? readSpecificationModuleFailure(error, authoredRoot)\n : roots.some((root) => root.reading === SpecificationModuleFaultReading.AUTHORING_ERROR)\n ? SpecificationModuleFaultReading.AUTHORING_ERROR\n : SpecificationModuleFaultReading.POSSIBLY_STALE_BUILD,\n authoredFrame: readAuthoredFrame(error, authoredRoot),\n causedBy: roots.map((root) => root.modulePath),\n withheldSpecifications: [],\n });\n /*\n * A module the report calls broken serves nothing, not whatever it managed to assign before the throw. Only the\n * module's OWN data exports are replaced: an accessor is a re-export of another module, which is that module's to\n * answer for, and `__esModule` is the loader's interop flag.\n */\n const standIn = createUnavailableSpecificationStandIn(filename);\n for (const name of Object.keys(moduleExports)) {\n if (name === '__esModule') continue;\n const descriptor = Object.getOwnPropertyDescriptor(moduleExports, name);\n if (descriptor !== undefined && 'value' in descriptor && descriptor.writable === true) moduleExports[name] = standIn;\n }\n Object.setPrototypeOf(moduleExports, createUnavailableModuleNamespace(standIn));\n return true;\n },\n };\n}\n\n/** How the entries of a companion-exports slot relate to each other: what one failed module costs that slot. */\nexport enum SpecificationsCompanionSlotShape {\n /** A map of independent entries, none of them a specification family: a failed module costs its own, and the others serve. */\n ENTRY_COLLECTION = 'entry-collection',\n /**\n * One document assembled from parts: a part missing makes the whole of it unavailable, not smaller. Every family slot\n * is one: a family is read as present or not, and a roster with a charter missing would read as a role nobody staffed.\n */\n SINGLE_SPECIFICATION = 'single-specification',\n}\n\n/** How much of a slot a failed module took. */\nexport enum SpecificationUnavailabilityExtent {\n /** The slot cannot be read at all. */\n WHOLE_SLOT = 'whole-slot',\n /** A collection: what it holds serves, and what it would have held from the failed module is unknown. */\n SOME_ENTRIES = 'some-entries',\n /**\n * The slot is absent, and a failed module's stand-in was spread onto the surface itself, so that module may be what would\n * have declared it. Reads like {@link SpecificationUnavailabilityExtent.WHOLE_SLOT}.\n */\n SPREAD_FROM_A_FAILED_MODULE = 'spread-from-a-failed-module',\n /**\n * The slot is absent while a module failed, and nothing connects the two: it still reads absent, because most absent\n * slots are simply absent and refusing them all would take down readers that have nothing to do with the fault. But\n * \"not there\" cannot be proved, so what acts on the absence asks {@link unprovenAbsences}: nothing is produced to fill it.\n */\n ABSENCE_UNPROVEN = 'absence-unproven',\n}\n\n/** One slot a failed module left unavailable. Plain data: it crosses from the worker with the exports. */\nexport interface UnavailableSpecificationSlot {\n readonly slot: string;\n readonly extent: SpecificationUnavailabilityExtent;\n /** The failed modules that held something here. */\n readonly modulePaths: readonly string[];\n}\n\nfunction isPlainRecord(value: unknown): value is Record<string, unknown> {\n if (value === null || typeof value !== 'object') return false;\n const prototype = Object.getPrototypeOf(value) as unknown;\n return prototype === Object.prototype || prototype === null;\n}\n\n/** The module a value stands in for, or `undefined` for an ordinary value. */\nfunction readStandInOrigin(value: object): string | undefined {\n const origin = (value as Record<symbol, unknown>)[UNAVAILABLE_SPECIFICATION_ORIGIN];\n return typeof origin === 'string' ? origin : undefined;\n}\n\nfunction readHeldKeyOrigins(text: string): readonly string[] {\n return [...text.matchAll(UNAVAILABLE_SPECIFICATION_KEY_PATTERN)].map((match) => match[1] as string);\n}\n\n/**\n * Every failed module a value holds something of, at any depth of its plain objects and arrays. A class instance is not\n * walked: nothing in the surface's data is one, and a live schema's internals are not the specification's. A held key\n * or a `string` carrying one, anywhere in it, is the stand-in too: `Object.keys(standIn)` is how it reaches a list of names,\n * and a template is how it reaches a longer string.\n */\nfunction collectStandInOrigins(value: unknown, origins: Set<string>, seen: WeakSet<object>): void {\n if (typeof value === 'string') {\n for (const origin of readHeldKeyOrigins(value)) origins.add(origin);\n return;\n }\n if (value === null || (typeof value !== 'object' && typeof value !== 'function')) return;\n const origin = readStandInOrigin(value);\n if (origin !== undefined) {\n origins.add(origin);\n return;\n }\n if (typeof value === 'function' || seen.has(value)) return;\n seen.add(value);\n if (Array.isArray(value)) {\n for (const entry of value) collectStandInOrigins(entry, origins, seen);\n return;\n }\n if (!isPlainRecord(value)) return;\n for (const [key, entry] of Object.entries(value)) {\n collectStandInOrigins(key, origins, seen);\n collectStandInOrigins(entry, origins, seen);\n }\n}\n\nfunction standInOriginsOf(value: unknown): ReadonlySet<string> {\n const origins = new Set<string>();\n collectStandInOrigins(value, origins, new WeakSet());\n return origins;\n}\n\n/** The root causes of a set of faults: what a slot is unavailable for when nothing in it names a module. */\nexport function rootSpecificationModulePaths(faults: readonly SpecificationModuleFault[]): readonly string[] {\n return faults.filter((fault) => fault.causedBy.length === 0).map((fault) => fault.modulePath);\n}\n\n/**\n * Split evaluated exports into what may be served and what a failed module left unavailable (see the file header).\n *\n * Per slot, keyed on whether a failed module actually contributed: a slot that holds no stand-in is served exactly as\n * evaluated, its optional `undefined` fields included. A slot that does is withheld, unless `slotShapes` declares it an\n * {@link SpecificationsCompanionSlotShape.ENTRY_COLLECTION}, which loses only the entries holding one. A declared key\n * left `undefined` beside a fault is withheld too: nothing proves it absent, and absence is what a reader acts on.\n * A key missing altogether is marked by what can be said of it (see the file header): `slotShapes` is total over the surface.\n *\n * A root cause that left no stand-in anywhere is the one case with no provenance: a source that does not parse declares\n * no export, so an `export *` of it re-exports nothing and an importer of that barrel reads a plain `undefined`. Spread\n * into a map, that leaves no trace. So every collection is then marked as possibly missing entries, and refuses to say a\n * key does not exist. The same `undefined` inside a document cannot be told from an optional field, and is served.\n *\n * `slotShapes` is the surface's own declaration (`SPECIFICATIONS_COMPANION_SLOT_SHAPES` of the `./companion` entrypoint),\n * passed in because this module is on the root barrel and that surface is not. Apply it only to an evaluation that\n * recorded module faults. The evaluated objects are never mutated.\n */\nexport function separateUnavailableSpecifications<T extends object>(\n exports: T,\n faults: readonly SpecificationModuleFault[],\n slotShapes: Readonly<Record<string, SpecificationsCompanionSlotShape>>,\n): { readonly exports: T; readonly unavailable: readonly UnavailableSpecificationSlot[] } {\n const source = exports as Record<string, unknown>;\n const served: Record<string, unknown> = { ...source };\n const unavailable: UnavailableSpecificationSlot[] = [];\n const withhold = (slot: string, modulePaths: readonly string[]): void => {\n delete served[slot];\n unavailable.push({ slot, extent: SpecificationUnavailabilityExtent.WHOLE_SLOT, modulePaths });\n };\n const spreadFrom = new Set(Object.keys(source).flatMap(readHeldKeyOrigins));\n for (const slot of Object.keys(source)) {\n if (readHeldKeyOrigins(slot).length > 0) {\n delete served[slot];\n continue;\n }\n const value = source[slot];\n if (value === undefined) {\n withhold(slot, rootSpecificationModulePaths(faults));\n continue;\n }\n const origins = standInOriginsOf(value);\n if (origins.size === 0) continue;\n if (!isCollectionSlot(slot, value, slotShapes)) {\n withhold(slot, [...origins]);\n continue;\n }\n // Spread keeps every own enumerable key, symbol-keyed definition-fault marks included.\n const kept: Record<string, unknown> = { ...value };\n for (const [key, entry] of Object.entries(value)) {\n if (readHeldKeyOrigins(key).length > 0 || standInOriginsOf(entry).size > 0) delete kept[key];\n }\n served[slot] = kept;\n unavailable.push({ slot, extent: SpecificationUnavailabilityExtent.SOME_ENTRIES, modulePaths: [...origins] });\n }\n const untraced = untracedRootModulePaths(faults, unavailable);\n if (untraced.length > 0) {\n for (const [slot, value] of Object.entries(source)) {\n if (isCollectionSlot(slot, value, slotShapes) && !unavailable.some((entry) => entry.slot === slot)) {\n unavailable.push({ slot, extent: SpecificationUnavailabilityExtent.SOME_ENTRIES, modulePaths: untraced });\n }\n }\n }\n const evaluated = (unavailable.length === 0 ? source : served) as T;\n const roots = rootSpecificationModulePaths(faults);\n for (const slot of Object.keys(slotShapes).filter((declared) => !(declared in source))) {\n if (spreadFrom.size > 0) unavailable.push({ slot, extent: SpecificationUnavailabilityExtent.SPREAD_FROM_A_FAILED_MODULE, modulePaths: [...spreadFrom] });\n else if (roots.length > 0) unavailable.push({ slot, extent: SpecificationUnavailabilityExtent.ABSENCE_UNPROVEN, modulePaths: roots });\n }\n return { exports: evaluated, unavailable };\n}\n\nfunction isCollectionSlot(slot: string, value: unknown, slotShapes: Readonly<Record<string, SpecificationsCompanionSlotShape>>): value is Record<string, unknown> {\n return slotShapes[slot] === SpecificationsCompanionSlotShape.ENTRY_COLLECTION && isPlainRecord(value);\n}\n\n/** The root causes neither they nor anything that follows from them left a trace of. */\nfunction untracedRootModulePaths(faults: readonly SpecificationModuleFault[], unavailable: readonly UnavailableSpecificationSlot[]): readonly string[] {\n const traced = new Set(unavailable.flatMap((entry) => entry.modulePaths));\n return rootSpecificationModulePaths(faults).filter((root) => !traced.has(root)\n && !faults.some((fault) => fault.causedBy.includes(root) && traced.has(fault.modulePath)));\n}\n\n/** Each module fault, naming the slots its module left unavailable, so every line that names the module says so. */\nexport function nameWithheldSpecifications(\n faults: readonly SpecificationModuleFault[],\n unavailable: readonly UnavailableSpecificationSlot[],\n): readonly SpecificationModuleFault[] {\n return faults.map((fault) => ({\n ...fault,\n withheldSpecifications: unavailable\n .filter((entry) => entry.modulePaths.includes(fault.modulePath))\n .flatMap((entry) => withheldSpecificationNames(entry)),\n })).map((fault) => ({ ...fault, withheldSpecifications: [...new Set(fault.withheldSpecifications)] }));\n}\n\n/** How a module fault names what it left unavailable. Slots merely absent beside it are not listed: there would be dozens. */\nfunction withheldSpecificationNames(entry: UnavailableSpecificationSlot): readonly string[] {\n if (entry.extent === SpecificationUnavailabilityExtent.WHOLE_SLOT) return [entry.slot];\n if (entry.extent === SpecificationUnavailabilityExtent.SOME_ENTRIES) return [`some of ${entry.slot}`];\n if (entry.extent === SpecificationUnavailabilityExtent.SPREAD_FROM_A_FAILED_MODULE) return ['every specification that reads absent'];\n return [];\n}\n\n/**\n * A read of a slot a failed module left unavailable: never \"no such specification\". Names the modules, so a reader that\n * holds has its reason, and one that does not fails with the cause.\n */\nexport class SpecificationUnavailableError extends Error {\n public readonly slot: string;\n public readonly modulePaths: readonly string[];\n\n public constructor(slot: string, modulePaths: readonly string[], relativeTo?: string) {\n const modules = modulePaths.map((modulePath) => `\"${shortenModulePath(modulePath, relativeTo)}\"`).join(', ');\n super(`Specification ${slot} is unavailable, not absent: specifications module ${modules} could not be evaluated. Fix the module and this reads again.`);\n this.name = 'SpecificationUnavailableError';\n this.slot = slot;\n this.modulePaths = modulePaths;\n }\n}\n\n/** What a guarded surface was made from, for the two doors that need the exports as they are ({@link unguardedSpecifications}). */\nconst GUARDED_SPECIFICATIONS: WeakMap<object, object> = new WeakMap();\n\n/** Why each slot of a guarded surface may read absent falsely ({@link unprovenAbsences}). */\nconst UNPROVEN_ABSENCES: WeakMap<object, ReadonlyMap<string, string>> = new WeakMap();\n\n/**\n * Exports whose unavailable slots cannot be read as absent (see the file header). A withheld slot keeps its key and\n * throws on read, so a spread of the surface fails too rather than dropping it. A collection that lost entries answers\n * what it holds, enumerates what it holds, and throws for any other key: it cannot say that key does not exist.\n *\n * With nothing unavailable the exports come back as they are.\n */\nexport function guardUnavailableSpecifications<T extends object>(\n exports: T,\n unavailable: readonly UnavailableSpecificationSlot[],\n relativeTo?: string,\n): T {\n if (unavailable.length === 0) return exports;\n const target: Record<string, unknown> = { ...(exports as Record<string, unknown>) };\n const withheld = new Map<string, UnavailableSpecificationSlot>();\n const unprovenAbsence = new Map<string, string>();\n for (const entry of unavailable) {\n if (entry.extent === SpecificationUnavailabilityExtent.ABSENCE_UNPROVEN) {\n const modules = entry.modulePaths.map((modulePath) => `\"${shortenModulePath(modulePath, relativeTo)}\"`).join(', ');\n unprovenAbsence.set(entry.slot, `Specification ${entry.slot} reads absent, which cannot be trusted while specifications module ${modules} could not be evaluated.`);\n continue;\n }\n if (entry.extent !== SpecificationUnavailabilityExtent.SOME_ENTRIES) {\n withheld.set(entry.slot, entry);\n target[entry.slot] = undefined;\n continue;\n }\n const collection = target[entry.slot];\n if (isPlainRecord(collection)) {\n target[entry.slot] = new Proxy(collection, {\n get: (holder, key, receiver) => {\n if (typeof key === 'string' && key !== 'then' && key !== 'toJSON' && !(key in holder)) {\n throw new SpecificationUnavailableError(`${entry.slot}.${key}`, entry.modulePaths, relativeTo);\n }\n return Reflect.get(holder, key, receiver) as unknown;\n },\n });\n }\n }\n const guarded = new Proxy(target, {\n get: (holder, key, receiver) => {\n const entry = typeof key === 'string' ? withheld.get(key) : undefined;\n if (entry !== undefined) throw new SpecificationUnavailableError(entry.slot, entry.modulePaths, relativeTo);\n return Reflect.get(holder, key, receiver) as unknown;\n },\n }) as T;\n GUARDED_SPECIFICATIONS.set(guarded, exports);\n UNPROVEN_ABSENCES.set(guarded, unprovenAbsence);\n return guarded;\n}\n\n/**\n * The slots of a guarded surface that read absent while a module failed, each with why that cannot be trusted. For a\n * reader that acts on an absence by producing the thing: it holds rather than guesses, since the failed module may be what\n * declares it. Empty for a surface no module fault touched. See {@link SpecificationUnavailabilityExtent.ABSENCE_UNPROVEN}.\n */\nexport function unprovenAbsences(exports: object): ReadonlyMap<string, string> {\n return UNPROVEN_ABSENCES.get(exports) ?? new Map();\n}\n\n/**\n * The exports behind a guard, or the same object when there is none. For the two doors that handle the surface as a\n * whole rather than read a slot of it: the projection that sends it across a process boundary, and nothing else that\n * means to read a specification.\n */\nexport function unguardedSpecifications<T extends object>(exports: T): T {\n return (GUARDED_SPECIFICATIONS.get(exports) as T | undefined) ?? exports;\n}\n\n/**\n * Whether a reader's slot is every entry it should be, for a reader that acts on what a collection does NOT hold: a\n * label plan that would retire the words of whatever it no longer sees. Throws {@link SpecificationUnavailableError}\n * when a failed module took some of it.\n */\nexport function assertSpecificationSlotComplete(\n slot: string,\n unavailable: readonly UnavailableSpecificationSlot[],\n relativeTo?: string,\n): void {\n const entry = unavailable.find((candidate) => candidate.slot === slot);\n if (entry !== undefined) throw new SpecificationUnavailableError(slot, entry.modulePaths, relativeTo);\n}\n\n/**\n * One line naming a module fault — the shape a feed entry, a check failure and a log line all print. `relativeTo`\n * shortens the module path for a reader that knows the application root.\n */\nexport function describeSpecificationModuleFault(fault: SpecificationModuleFault, relativeTo?: string): string {\n const site = fault.authoredFrame === null ? '' : ` (at ${fault.authoredFrame})`;\n const withheld = fault.withheldSpecifications.length === 0 ? '' : ` — unavailable until fixed: ${fault.withheldSpecifications.join(', ')}`;\n const causes = fault.causedBy.length === 0 ? '' : ` — follows from ${fault.causedBy.map((cause) => `\"${shortenModulePath(cause, relativeTo)}\"`).join(', ')}`;\n const reading = fault.reading === SpecificationModuleFaultReading.POSSIBLY_STALE_BUILD\n ? ' — a value it needs is missing, or a package it imports failed; if one was just changed, its build may be behind (check its watcher) before reading this as the module being wrong'\n : '';\n return `specifications module \"${shortenModulePath(fault.modulePath, relativeTo)}\" could not be evaluated and serves nothing${site}: ${fault.errorName}: ${fault.message}${withheld}${causes}${reading}`;\n}\n\nfunction shortenModulePath(modulePath: string, relativeTo: string | undefined): string {\n const prefix = relativeTo === undefined ? '' : relativeTo.replace(/[\\\\/]+$/u, '');\n return prefix.length > 0 && modulePath.startsWith(`${prefix}/`) ? modulePath.slice(prefix.length + 1) : modulePath;\n}\n"]}
@@ -0,0 +1,79 @@
1
+ import { z } from 'zod';
2
+ import '@wildo-ai/zod-decorators';
3
+ import { AvailableLanguage } from '@wildo-ai/presets-components-models';
4
+ /**
5
+ * An application's TRANSLATION GLOSSARY: the words a person chose, which the translate step must keep (#3105).
6
+ *
7
+ * ## Why it exists
8
+ *
9
+ * Translation is a model call, so a word nobody pinned is worded again on every run that re-translates its unit, and two
10
+ * units with the same English can come back with two different French words. Measured on Wonder Procurement: "ERP
11
+ * supplier key" was `Clé fournisseur ERP` in one unit and became `Référence fournisseur dans l’ERP` in another the day
12
+ * that unit was re-translated, with no English change. A hand edit of the generated `.fr.ts` file does not hold either:
13
+ * the translate step sees the file no longer matches its lock and translates the whole unit again.
14
+ *
15
+ * Translation management systems converge on two tools for this, and this declaration carries both:
16
+ *
17
+ * - a **term** (a term base): an English wording and its chosen translation per language, or "do not translate". It
18
+ * applies to every string the application translates. A string that IS the term gets the term's translation without a
19
+ * model call; a string that CONTAINS it is sent with the required translation named in the prompt, and an answer that
20
+ * drops it is refused and asked for again.
21
+ * - a **locked translation**: one key of one unit whose word in one language a person chose. The translate step writes it
22
+ * and never sends the key, until the English it was chosen for changes; then it reports the lock as stale and leaves
23
+ * the word alone, rather than re-translating behind the person's back.
24
+ *
25
+ * ## Why a committed, typed declaration
26
+ *
27
+ * It lives in the application's specifications package, exported as `translationGlossary` from its companion exports,
28
+ * never in a generated file: a run cannot overwrite it, git records who chose each word and when, and a reviewer reads
29
+ * the choice beside the reason. A hand edit of a generated label file stays what it was, a change the next run is entitled
30
+ * to replace; the way to keep a word is to declare it here.
31
+ */
32
+ /**
33
+ * @wildo_source:part:start saas.specifications.translation-glossary facet:layer:specification facet:family:i18n
34
+ *
35
+ * The application's translation glossary, exported by its specifications package as `translationGlossary`
36
+ * (`import { ApplicationTranslationGlossaryDeclaration } from '@wildo-ai/saas-specifications'`). Terms apply to every
37
+ * string `wildo generate translate` writes; a locked translation pins one key of one unit in one language. Matching is
38
+ * literal and ignores case: an inflected form is a different string and needs its own term.
39
+ */
40
+ /** One term of the glossary: an English (primary-language) wording and what it becomes in each language. */
41
+ export declare const TranslationGlossaryTermSchema: z.ZodObject<{
42
+ term: z.ZodString;
43
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof AvailableLanguage> & z.core.$partial, z.ZodString>>;
44
+ doNotTranslate: z.ZodOptional<z.ZodLiteral<true>>;
45
+ note: z.ZodOptional<z.ZodString>;
46
+ }, z.core.$strict>;
47
+ export type TranslationGlossaryTerm = z.infer<typeof TranslationGlossaryTermSchema>;
48
+ /** One key of one label unit whose word in one language a person chose. */
49
+ export declare const LockedTranslationSchema: z.ZodObject<{
50
+ unitId: z.ZodString;
51
+ key: z.ZodString;
52
+ locale: z.ZodEnum<typeof AvailableLanguage>;
53
+ source: z.ZodString;
54
+ value: z.ZodString;
55
+ reason: z.ZodString;
56
+ }, z.core.$strict>;
57
+ export type LockedTranslation = z.infer<typeof LockedTranslationSchema>;
58
+ /** The application's glossary: the terms every string honours, and the keys a person locked. */
59
+ export declare const ApplicationTranslationGlossarySchema: z.ZodObject<{
60
+ terms: z.ZodDefault<z.ZodArray<z.ZodObject<{
61
+ term: z.ZodString;
62
+ translations: z.ZodOptional<z.ZodRecord<z.ZodEnum<typeof AvailableLanguage> & z.core.$partial, z.ZodString>>;
63
+ doNotTranslate: z.ZodOptional<z.ZodLiteral<true>>;
64
+ note: z.ZodOptional<z.ZodString>;
65
+ }, z.core.$strict>>>;
66
+ lockedTranslations: z.ZodDefault<z.ZodArray<z.ZodObject<{
67
+ unitId: z.ZodString;
68
+ key: z.ZodString;
69
+ locale: z.ZodEnum<typeof AvailableLanguage>;
70
+ source: z.ZodString;
71
+ value: z.ZodString;
72
+ reason: z.ZodString;
73
+ }, z.core.$strict>>>;
74
+ }, z.core.$strict>;
75
+ export type ApplicationTranslationGlossary = z.infer<typeof ApplicationTranslationGlossarySchema>;
76
+ /** What an application authors: both lists may be omitted. */
77
+ export type ApplicationTranslationGlossaryDeclaration = z.input<typeof ApplicationTranslationGlossarySchema>;
78
+ /** @wildo_source:part:end saas.specifications.translation-glossary */
79
+ //# sourceMappingURL=translation-glossary.schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translation-glossary.schemas.d.ts","sourceRoot":"","sources":["../../../src/_core/translation-glossary.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;;;;;GAOG;AAEH,4GAA4G;AAC5G,eAAO,MAAM,6BAA6B;;;;;kBAgBtC,CAAC;AACL,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,2EAA2E;AAC3E,eAAO,MAAM,uBAAuB;;;;;;;kBAalC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,gGAAgG;AAChG,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;kBAmB7C,CAAC;AACL,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAClG,8DAA8D;AAC9D,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAC7G,sEAAsE"}
@@ -0,0 +1,98 @@
1
+ import { z } from 'zod';
2
+ // Side-effect import: this module calls `.systemEnum()` at load (#966).
3
+ import '@wildo-ai/zod-decorators';
4
+ import { AvailableLanguage } from '@wildo-ai/presets-components-models';
5
+ /**
6
+ * An application's TRANSLATION GLOSSARY: the words a person chose, which the translate step must keep (#3105).
7
+ *
8
+ * ## Why it exists
9
+ *
10
+ * Translation is a model call, so a word nobody pinned is worded again on every run that re-translates its unit, and two
11
+ * units with the same English can come back with two different French words. Measured on Wonder Procurement: "ERP
12
+ * supplier key" was `Clé fournisseur ERP` in one unit and became `Référence fournisseur dans l’ERP` in another the day
13
+ * that unit was re-translated, with no English change. A hand edit of the generated `.fr.ts` file does not hold either:
14
+ * the translate step sees the file no longer matches its lock and translates the whole unit again.
15
+ *
16
+ * Translation management systems converge on two tools for this, and this declaration carries both:
17
+ *
18
+ * - a **term** (a term base): an English wording and its chosen translation per language, or "do not translate". It
19
+ * applies to every string the application translates. A string that IS the term gets the term's translation without a
20
+ * model call; a string that CONTAINS it is sent with the required translation named in the prompt, and an answer that
21
+ * drops it is refused and asked for again.
22
+ * - a **locked translation**: one key of one unit whose word in one language a person chose. The translate step writes it
23
+ * and never sends the key, until the English it was chosen for changes; then it reports the lock as stale and leaves
24
+ * the word alone, rather than re-translating behind the person's back.
25
+ *
26
+ * ## Why a committed, typed declaration
27
+ *
28
+ * It lives in the application's specifications package, exported as `translationGlossary` from its companion exports,
29
+ * never in a generated file: a run cannot overwrite it, git records who chose each word and when, and a reviewer reads
30
+ * the choice beside the reason. A hand edit of a generated label file stays what it was, a change the next run is entitled
31
+ * to replace; the way to keep a word is to declare it here.
32
+ */
33
+ /**
34
+ * @wildo_source:part:start saas.specifications.translation-glossary facet:layer:specification facet:family:i18n
35
+ *
36
+ * The application's translation glossary, exported by its specifications package as `translationGlossary`
37
+ * (`import { ApplicationTranslationGlossaryDeclaration } from '@wildo-ai/saas-specifications'`). Terms apply to every
38
+ * string `wildo generate translate` writes; a locked translation pins one key of one unit in one language. Matching is
39
+ * literal and ignores case: an inflected form is a different string and needs its own term.
40
+ */
41
+ /** One term of the glossary: an English (primary-language) wording and what it becomes in each language. */
42
+ export const TranslationGlossaryTermSchema = z
43
+ .strictObject({
44
+ /**
45
+ * The wording in the application's PRIMARY language, as it appears in labels (`ERP supplier key`). Matched without
46
+ * regard to case and at word boundaries, so `ERP supplier key` also matches inside "Edit the ERP supplier key".
47
+ */
48
+ term: z.string().trim().min(1),
49
+ /** The chosen translation per target language. A language with no entry is translated freely. */
50
+ translations: z.partialRecord(z.enum(AvailableLanguage).systemEnum('AvailableLanguage'), z.string().trim().min(1)).optional(),
51
+ /** The term stays as written in every language: a product name, a brand, an acronym. Excludes `translations`. */
52
+ doNotTranslate: z.literal(true).optional(),
53
+ /** Why this wording: read by people, and given to the model beside the term. */
54
+ note: z.string().trim().min(1).optional(),
55
+ })
56
+ .refine((term) => (term.doNotTranslate === true) !== (term.translations !== undefined && Object.keys(term.translations).length > 0), {
57
+ message: 'A glossary term declares either translations (at least one language) or doNotTranslate: true, never both and never neither.',
58
+ });
59
+ /** One key of one label unit whose word in one language a person chose. */
60
+ export const LockedTranslationSchema = z.strictObject({
61
+ /** The label unit, as `wildo generate translate --units` names it (`resource:supplierDirectory`). */
62
+ unitId: z.string().trim().min(1),
63
+ /** The key's full dotted path, from the root of the label file (`resources.supplierDirectory.header.title`). A key that matches nothing is reported and does nothing. */
64
+ key: z.string().trim().min(1),
65
+ /** The language whose word is chosen. */
66
+ locale: z.enum(AvailableLanguage).systemEnum('AvailableLanguage'),
67
+ /** The primary-language words this translation was chosen for. When the key's words change, the lock is stale. */
68
+ source: z.string().min(1),
69
+ /** The chosen translation, written as is. */
70
+ value: z.string().min(1),
71
+ /** Why this word, and who chose it if that matters. */
72
+ reason: z.string().trim().min(1),
73
+ });
74
+ /** The application's glossary: the terms every string honours, and the keys a person locked. */
75
+ export const ApplicationTranslationGlossarySchema = z
76
+ .strictObject({
77
+ terms: z.array(TranslationGlossaryTermSchema).default([]),
78
+ lockedTranslations: z.array(LockedTranslationSchema).default([]),
79
+ })
80
+ .superRefine((glossary, context) => {
81
+ // Two entries for one term, or two locks on one word, would make the outcome depend on declaration order.
82
+ const terms = new Set();
83
+ glossary.terms.forEach((term, index) => {
84
+ const normalized = term.term.toLocaleLowerCase();
85
+ if (terms.has(normalized))
86
+ context.addIssue({ code: 'custom', path: ['terms', index, 'term'], message: `The term "${term.term}" is declared twice.` });
87
+ terms.add(normalized);
88
+ });
89
+ const locks = new Set();
90
+ glossary.lockedTranslations.forEach((lock, index) => {
91
+ const identity = `${lock.unitId}\u0000${lock.key}\u0000${lock.locale}`;
92
+ if (locks.has(identity))
93
+ context.addIssue({ code: 'custom', path: ['lockedTranslations', index], message: `The ${lock.locale} word of ${lock.unitId} ${lock.key} is locked twice.` });
94
+ locks.add(identity);
95
+ });
96
+ });
97
+ /** @wildo_source:part:end saas.specifications.translation-glossary */
98
+ //# sourceMappingURL=translation-glossary.schemas.js.map
@@ -0,0 +1 @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AU,CAAC;YAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,aAAa,IAAI,CAAC,IAAI,sBAAsB,EAAE,CAAC,CAAC;QACvJ,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;IACH,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU,CAAC;IAChC,QAAQ,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QAClD,MAAM,QAAQ,GAAG,GAAG,IAAI,CAAC,MAAM,SAAS,IAAI,CAAC,GAAG,SAAS,IAAI,CAAC,MAAM,EAAE,CAAC;QACvE,IAAI,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC;YAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,oBAAoB,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,IAAI,CAAC,MAAM,YAAY,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,GAAG,mBAAmB,EAAE,CAAC,CAAC;QACtL,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAIL,sEAAsE","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load (#966).\nimport '@wildo-ai/zod-decorators';\nimport { AvailableLanguage } from '@wildo-ai/presets-components-models';\n\n/**\n * An application's TRANSLATION GLOSSARY: the words a person chose, which the translate step must keep (#3105).\n *\n * ## Why it exists\n *\n * Translation is a model call, so a word nobody pinned is worded again on every run that re-translates its unit, and two\n * units with the same English can come back with two different French words. Measured on Wonder Procurement: \"ERP\n * supplier key\" was `Clé fournisseur ERP` in one unit and became `Référence fournisseur dans l’ERP` in another the day\n * that unit was re-translated, with no English change. A hand edit of the generated `.fr.ts` file does not hold either:\n * the translate step sees the file no longer matches its lock and translates the whole unit again.\n *\n * Translation management systems converge on two tools for this, and this declaration carries both:\n *\n * - a **term** (a term base): an English wording and its chosen translation per language, or \"do not translate\". It\n * applies to every string the application translates. A string that IS the term gets the term's translation without a\n * model call; a string that CONTAINS it is sent with the required translation named in the prompt, and an answer that\n * drops it is refused and asked for again.\n * - a **locked translation**: one key of one unit whose word in one language a person chose. The translate step writes it\n * and never sends the key, until the English it was chosen for changes; then it reports the lock as stale and leaves\n * the word alone, rather than re-translating behind the person's back.\n *\n * ## Why a committed, typed declaration\n *\n * It lives in the application's specifications package, exported as `translationGlossary` from its companion exports,\n * never in a generated file: a run cannot overwrite it, git records who chose each word and when, and a reviewer reads\n * the choice beside the reason. A hand edit of a generated label file stays what it was, a change the next run is entitled\n * to replace; the way to keep a word is to declare it here.\n */\n\n/**\n * @wildo_source:part:start saas.specifications.translation-glossary facet:layer:specification facet:family:i18n\n *\n * The application's translation glossary, exported by its specifications package as `translationGlossary`\n * (`import { ApplicationTranslationGlossaryDeclaration } from '@wildo-ai/saas-specifications'`). Terms apply to every\n * string `wildo generate translate` writes; a locked translation pins one key of one unit in one language. Matching is\n * literal and ignores case: an inflected form is a different string and needs its own term.\n */\n\n/** One term of the glossary: an English (primary-language) wording and what it becomes in each language. */\nexport const TranslationGlossaryTermSchema = z\n .strictObject({\n /**\n * The wording in the application's PRIMARY language, as it appears in labels (`ERP supplier key`). Matched without\n * regard to case and at word boundaries, so `ERP supplier key` also matches inside \"Edit the ERP supplier key\".\n */\n term: z.string().trim().min(1),\n /** The chosen translation per target language. A language with no entry is translated freely. */\n translations: z.partialRecord(z.enum(AvailableLanguage).systemEnum('AvailableLanguage'), z.string().trim().min(1)).optional(),\n /** The term stays as written in every language: a product name, a brand, an acronym. Excludes `translations`. */\n doNotTranslate: z.literal(true).optional(),\n /** Why this wording: read by people, and given to the model beside the term. */\n note: z.string().trim().min(1).optional(),\n })\n .refine((term) => (term.doNotTranslate === true) !== (term.translations !== undefined && Object.keys(term.translations).length > 0), {\n message: 'A glossary term declares either translations (at least one language) or doNotTranslate: true, never both and never neither.',\n });\nexport type TranslationGlossaryTerm = z.infer<typeof TranslationGlossaryTermSchema>;\n\n/** One key of one label unit whose word in one language a person chose. */\nexport const LockedTranslationSchema = z.strictObject({\n /** The label unit, as `wildo generate translate --units` names it (`resource:supplierDirectory`). */\n unitId: z.string().trim().min(1),\n /** The key's full dotted path, from the root of the label file (`resources.supplierDirectory.header.title`). A key that matches nothing is reported and does nothing. */\n key: z.string().trim().min(1),\n /** The language whose word is chosen. */\n locale: z.enum(AvailableLanguage).systemEnum('AvailableLanguage'),\n /** The primary-language words this translation was chosen for. When the key's words change, the lock is stale. */\n source: z.string().min(1),\n /** The chosen translation, written as is. */\n value: z.string().min(1),\n /** Why this word, and who chose it if that matters. */\n reason: z.string().trim().min(1),\n});\nexport type LockedTranslation = z.infer<typeof LockedTranslationSchema>;\n\n/** The application's glossary: the terms every string honours, and the keys a person locked. */\nexport const ApplicationTranslationGlossarySchema = z\n .strictObject({\n terms: z.array(TranslationGlossaryTermSchema).default([]),\n lockedTranslations: z.array(LockedTranslationSchema).default([]),\n })\n .superRefine((glossary, context) => {\n // Two entries for one term, or two locks on one word, would make the outcome depend on declaration order.\n const terms = new Set<string>();\n glossary.terms.forEach((term, index) => {\n const normalized = term.term.toLocaleLowerCase();\n if (terms.has(normalized)) context.addIssue({ code: 'custom', path: ['terms', index, 'term'], message: `The term \"${term.term}\" is declared twice.` });\n terms.add(normalized);\n });\n const locks = new Set<string>();\n glossary.lockedTranslations.forEach((lock, index) => {\n const identity = `${lock.unitId}\\u0000${lock.key}\\u0000${lock.locale}`;\n if (locks.has(identity)) context.addIssue({ code: 'custom', path: ['lockedTranslations', index], message: `The ${lock.locale} word of ${lock.unitId} ${lock.key} is locked twice.` });\n locks.add(identity);\n });\n });\nexport type ApplicationTranslationGlossary = z.infer<typeof ApplicationTranslationGlossarySchema>;\n/** What an application authors: both lists may be omitted. */\nexport type ApplicationTranslationGlossaryDeclaration = z.input<typeof ApplicationTranslationGlossarySchema>;\n/** @wildo_source:part:end saas.specifications.translation-glossary */\n"]}
@@ -132,6 +132,31 @@ export interface ExtractedFieldSpec {
132
132
  }>;
133
133
  };
134
134
  }
135
+ /**
136
+ * Resolve the FK target for a `foreignKeySpec(...)` field by matching the
137
+ * field name against `ResourceRelationship.foreignKeyField` on a
138
+ * relationship that lists the current resource on either `resourceType1`
139
+ * or `resourceType2`. The FK column lives on the current resource (the
140
+ * MANY / child side) and the target is the opposite endpoint (the
141
+ * parent), so the matcher accepts the relationship from either declared
142
+ * direction — the registry-author convention is mixed (some edges put
143
+ * the parent first, others put the child first) and forcing one
144
+ * orientation would silently miss FKs.
145
+ *
146
+ * Returns `undefined` (no derived slice) when no registry context is
147
+ * supplied — that signals "uninspected" rather than "unresolved", and
148
+ * keeps test fixtures / hand-built `additionalFieldSpecs` working
149
+ * unchanged. When a context IS supplied and the lookup fails, the helper
150
+ * emits a `foreignKeyTargetUnresolved` signal so the Phase 4
151
+ * completeness validator can attribute the error to the missing
152
+ * relationship rather than the renderer.
153
+ *
154
+ * Exported for a reader that holds field specs extracted WITHOUT a registry context and the registry
155
+ * separately (#3268): the dev companion receives a resource specification's field specs as data from a
156
+ * worker process, where its own resource registry is not, and resolves the targets against that registry
157
+ * with this same rule rather than a second copy of it.
158
+ */
159
+ export declare function deriveForeignKeyTarget(fieldName: string, registryContext: ExtractFieldSpecsRegistryContext | undefined): Pick<ExtractedFieldSpecDerived, 'foreignKeyTarget' | 'foreignKeyTargetUnresolved'> | undefined;
135
160
  /**
136
161
  * Extract all `{primitive}Spec` metadata from a Zod object schema.
137
162
  *
@@ -1 +1 @@
1
- {"version":3,"file":"extract-field-specs.d.ts","sourceRoot":"","sources":["../../../../src/_core/utils/extract-field-specs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,K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AAa,EAAE,SAAS,oBAAoB,EAAE,CAAC;CAChD;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,gCAAgC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,aAAa,EAAE,MAAM,CAAC;IACtB,iDAAiD;IACjD,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtD;;;;OAIG;IACH,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC;;;;OAIG;IACH,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC;QAC5B,WAAW,CAAC,EAAE,KAAK,CAAC;YAClB,kBAAkB,EAAE,MAAM,CAAC;YAC3B,kBAAkB,EAAE,MAAM,CAAC;SAC5B,CAAC,CAAC;KACJ,CAAC;CACH;AAqQD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,CAAC,CAAC,UAAU,EACpB,eAAe,CAAC,EAAE,gCAAgC,GACjD,kBAAkB,EAAE,CAMtB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,EACpC,MAAM,GAAE,kBAAkB,CAAC,QAAQ,CAAqB,EACxD,eAAe,CAAC,EAAE,gCAAgC,GACjD,kBAAkB,EAAE,CAEtB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,CAAC,CAAC,UAAU,EACpB,qBAAqB,CAAC,EAAE,iDAAiD,CAAC,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,EAC5F,eAAe,CAAC,EAAE,gCAAgC,GACjD,kBAAkB,EAAE,CAUtB"}
1
+ {"version":3,"file":"extract-field-specs.d.ts","sourceRoot":"","sources":["../../../../src/_core/utils/extract-field-specs.ts"],"names":[],"mappings":"AAAA,OAAO,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B,qBAAqB,CAAC,EAAE,iDAAiD,CAAC,GAAG,EAAE,CAAC,CAAC,UAAU,CAAC,EAC5F,eAAe,CAAC,EAAE,gCAAgC,GACjD,kBAAkB,EAAE,CAUtB"}
@@ -137,8 +137,13 @@ function deriveArrayElement(arraySchema) {
137
137
  * emits a `foreignKeyTargetUnresolved` signal so the Phase 4
138
138
  * completeness validator can attribute the error to the missing
139
139
  * relationship rather than the renderer.
140
+ *
141
+ * Exported for a reader that holds field specs extracted WITHOUT a registry context and the registry
142
+ * separately (#3268): the dev companion receives a resource specification's field specs as data from a
143
+ * worker process, where its own resource registry is not, and resolves the targets against that registry
144
+ * with this same rule rather than a second copy of it.
140
145
  */
141
- function deriveForeignKeyTarget(fieldName, registryContext) {
146
+ export function deriveForeignKeyTarget(fieldName, registryContext) {
142
147
  if (!registryContext) {
143
148
  return undefined;
144
149
  }
@@ -1 +1 @@
1
- {"version":3,"file":"extract-field-specs.js","sourceRoot":"","sources":["../../../../src/_core/utils/extract-field-specs.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,eAAe,EACf,WAAW,EACX,YAAY,EACZ,YAAY,GAIb,MAAM,0BAA0B,CAAC;AAElC;;;GAGG;AACH,MAAM,mBAAmB,GAAG;IAC1B,YAAY,CAAC,WAAW;IACxB,YAAY,CAAC,WAAW;IACxB,YAAY,CAAC,YAAY;IACzB,YAAY,CAAC,SAAS;IACtB,YAAY,CAAC,aAAa;IAC1B,YAAY,CAAC,SAAS;IACtB,YAAY,CAAC,SAAS;IACtB,YAAY,CAAC,UAAU;IACvB,YAAY,CAAC,SAAS;IACtB,YAAY,CAAC,SAAS;IACtB,YAAY,CAAC,aAAa;IAC1B,YAAY,CAAC,UAAU;IACvB,YAAY,CAAC,eAA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;;;GAcG;AACH,MAAM,UAAU,yBAAyB,CACvC,MAAoB,EACpB,qBAA4F,EAC5F,eAAkD;IAElD,MAAM,cAAc,GAAG,iBAAiB,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAClE,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC3B,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,OAAO;QACL,GAAG,cAAc;QACjB,GAAG,0BAA0B,CAAC,MAAM,EAAE,qBAAqB,EAAE,EAAE,EAAE,eAAe,CAAC;KAClF,CAAC;AACJ,CAAC","sourcesContent":["import type { z } from 'zod';\nimport type {\n ResourceConfiguration_InheritanceSchemaDefinition,\n ResourceRelationship,\n} from '@wildo-ai/saas-models';\nimport {\n CodePrimitiveKind,\n CollectionElementKind,\n getArrayItemSchema,\n getCustomFieldMetadata,\n getZodDef,\n getZodObjectShape,\n getZodType,\n isCodeSchema,\n isDurationSchema,\n isFileSchema,\n isMoneySchema,\n isPhoneSchema,\n isAddressSchema,\n isZodObject,\n unwrapSchema,\n ZodDecorator,\n type CodeEnumMemberRef,\n type CustomFieldMetadata,\n type FieldSpecBaseParams,\n} from '@wildo-ai/zod-decorators';\n\n/**\n * All `{primitive}Spec` decorator keys in `ZodDecorator`.\n * Used to scan `customFieldMetadata` for any spec entry.\n */\nconst SPEC_DECORATOR_KEYS = [\n ZodDecorator.STRING_SPEC,\n ZodDecorator.NUMBER_SPEC,\n ZodDecorator.BOOLEAN_SPEC,\n ZodDecorator.DATE_SPEC,\n ZodDecorator.DATETIME_SPEC,\n ZodDecorator.TIME_SPEC,\n ZodDecorator.ENUM_SPEC,\n ZodDecorator.MONEY_SPEC,\n ZodDecorator.CODE_SPEC,\n ZodDecorator.FILE_SPEC,\n ZodDecorator.DURATION_SPEC,\n ZodDecorator.PHONE_SPEC,\n ZodDecorator.BIGDECIMAL_SPEC,\n ZodDecorator.FOREIGN_KEY_SPEC,\n ZodDecorator.ARRAY_SPEC,\n ZodDecorator.OBJECT_SPEC,\n] as const;\n\n/**\n * Per-branch derived shape for a UNION element. Each entry mirrors the\n * scalar derivation we apply to non-union elements so downstream renderers\n * can describe a `users.appRoles = z.array(z.union([z.enum(...), z.string()]))`\n * shape without flattening the branches into an opaque `UNION` blob.\n */\nexport interface DerivedArrayElementBranch {\n /** Structural family of this branch (`PRIMITIVE` / `ENUM` / `OBJECT` / etc.). */\n kind: CollectionElementKind;\n /** Primitive kind when `kind === PRIMITIVE`. */\n primitiveType?: CodePrimitiveKind;\n}\n\n/**\n * Derived structural shape for an array element — derived purely from the\n * Zod element schema. The framework owns this surface; authors only declare\n * intent (`elementMeaning`, `enumDeclaration`, `notes`) on `arraySpec(...)`.\n */\nexport interface DerivedArrayElement {\n /** Structural family of each array element. */\n kind: CollectionElementKind;\n /** Primitive kind when `kind === PRIMITIVE`. */\n primitiveType?: CodePrimitiveKind;\n /**\n * Per-branch derivation when `kind === UNION` — preserves the structural\n * truth of unions instead of forcing authors to lie about a \"dominant\"\n * branch (B-3 decision: model UNION as a discrete kind with branches).\n */\n unionBranches?: DerivedArrayElementBranch[];\n}\n\n/**\n * Derived target of a `foreignKeySpec(...)` field — sourced from the\n * relationship registry by matching `foreignKeyField === <fieldName>` on\n * a relationship that lists the current resource on EITHER side. The FK\n * column lives on the MANY side (the child) and the target is the\n * opposite side (the parent), regardless of whether the registry author\n * declared the relationship as `(parent, child)` or `(child, parent)`.\n *\n * Populated in Phase 2B when the caller supplies an\n * `ExtractFieldSpecsRegistryContext`. When the caller does NOT supply one\n * (test fixtures, hand-built `additionalFieldSpecs`, non-resource\n * extractor entry points), this slice stays `undefined` — the\n * Phase 4 completeness validator is the single seam that requires it.\n */\nexport interface DerivedForeignKeyTarget {\n /** Resource type the FK points at (registry-derived). */\n resourceType: string;\n /** Optional code-symbol reference to the FK target's resource-type member. */\n ref?: CodeEnumMemberRef;\n}\n\n/**\n * Fail-closed signal for `foreignKeySpec` fields whose target could not\n * be resolved from the relationship registry. The Phase 4 completeness\n * validator consumes this to attribute the missing-relationship error to\n * the registry edge, not the renderer; renderers also surface the gap so\n * downstream prompts stay honest about the missing target instead of\n * silently dropping the FK line.\n *\n * Only emitted when the caller supplied an\n * `ExtractFieldSpecsRegistryContext` AND the lookup failed. When no\n * context is supplied the extractor cannot tell whether the FK is\n * unresolved or simply uninspected, so it stays `undefined`.\n */\nexport interface DerivedForeignKeyTargetUnresolved {\n /** Resource the FK lives on, as supplied by the caller. */\n fromResourceType: string;\n /** The FK field name that failed to resolve. */\n fieldName: string;\n /** Human-readable reason — used as-is in fail-closed error messages. */\n reason: string;\n}\n\n/**\n * Derived metadata that the framework extracts from the Zod schema (and,\n * in Phase 2B, the relationship registry). Authors no longer hand-author\n * structural fields the framework can derive — this object is the\n * single source of structural truth on an extracted spec.\n */\nexport interface ExtractedFieldSpecDerived {\n /** Present when the field is an `arraySpec`. */\n arrayElement?: DerivedArrayElement;\n /** Present when the field is a `foreignKeySpec` and the registry resolves the target (Phase 2B). */\n foreignKeyTarget?: DerivedForeignKeyTarget;\n /** Present when the field is a `foreignKeySpec` and the registry has no matching edge (Phase 2B). */\n foreignKeyTargetUnresolved?: DerivedForeignKeyTargetUnresolved;\n}\n\n/**\n * Caller-supplied context that lets the extractor derive registry-backed\n * facts. Currently scoped to FK target resolution; future registry-aware\n * derivations (e.g. cardinality inference for collection-shaped fields)\n * will read from the same context.\n *\n * Both fields are required for FK derivation to fire — passing\n * `relationships` without `currentResourceType` would let the matcher\n * silently resolve to a different resource's edge and is therefore\n * disallowed by the type itself.\n */\nexport interface ExtractFieldSpecsRegistryContext {\n /** Resource type that owns the schema being walked. */\n currentResourceType: string;\n /** Relationships that may concern the current resource. */\n relationships: readonly ResourceRelationship[];\n}\n\n/**\n * Extracted field specification entry — the JSON-safe representation\n * of a `{primitive}Spec()` decorator found on a schema field.\n */\nexport interface ExtractedFieldSpec {\n /** Field name in the schema. */\n fieldName: string;\n /** Which spec decorator was found (e.g., 'enumSpec', 'stringSpec'). */\n specDecorator: string;\n /** The full params object from the decorator. */\n params: FieldSpecBaseParams & Record<string, unknown>;\n /**\n * Framework-derived structural metadata. Optional because hand-authored\n * `additionalFieldSpecs` entries (companion-side overlays) and tests that\n * call the extractor without context will not carry derived data.\n */\n derived?: ExtractedFieldSpecDerived;\n /**\n * Where this field came from in the resource schema chain.\n * `main` is the root `mainSchema`; `inherited` is a variant-only or overridden\n * field coming from `inheritenceSchemaDefinition`.\n */\n origin?: {\n scope: 'main' | 'inherited';\n variantPath?: Array<{\n discriminatorField: string;\n discriminatorValue: string;\n }>;\n };\n}\n\n/**\n * Finds the first `{primitive}Spec` entry on a field's `customFieldMetadata`.\n * Returns `null` if no spec decorator is present.\n */\nfunction findSpecEntry(metadata: CustomFieldMetadata): { decorator: string; params: FieldSpecBaseParams & Record<string, unknown> } | null {\n for (const key of SPEC_DECORATOR_KEYS) {\n const value = metadata[key];\n if (value) {\n return { decorator: key, params: value as FieldSpecBaseParams & Record<string, unknown> };\n }\n }\n return null;\n}\n\n/**\n * Map a Zod type string (e.g. `'string'`, `'enum'`, `'object'`) plus the\n * decorator-bearing primitive helpers (money/code/file/...) onto our public\n * `CollectionElementKind` + `CodePrimitiveKind` axes. Centralised so that\n * scalar derivation and per-branch UNION derivation stay aligned — diverging\n * the two would mean a `users.appRoles` UNION branch could disagree with a\n * sibling field that uses the same primitive at the top level.\n */\nfunction classifyZodSchema(schema: z.ZodTypeAny): {\n kind: CollectionElementKind;\n primitiveType?: CodePrimitiveKind;\n} {\n const unwrapped = unwrapSchema(schema);\n\n // Decorator-bearing primitive families (money/code/file/duration/phone/address) —\n // detect BEFORE generic Zod-type fallback because they often wrap a number\n // or string at the Zod layer but should surface as their semantic primitive.\n if (isMoneySchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.MONEY };\n if (isCodeSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.CODE };\n if (isFileSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.FILE };\n if (isDurationSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.DURATION };\n if (isPhoneSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.PHONE };\n if (isAddressSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.ADDRESS };\n\n const zodType = getZodType(unwrapped);\n switch (zodType) {\n case 'string':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.STRING };\n case 'number':\n case 'int':\n case 'bigint':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.NUMBER };\n case 'boolean':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.BOOLEAN };\n case 'date':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.DATE };\n case 'enum':\n return { kind: CollectionElementKind.ENUM };\n case 'object':\n return { kind: CollectionElementKind.OBJECT };\n case 'array':\n // Nested arrays are unusual at the element level; mark as UNKNOWN so\n // authors notice and either flatten the schema or extend the kinds.\n return { kind: CollectionElementKind.UNKNOWN };\n case 'union':\n return { kind: CollectionElementKind.UNION };\n case 'literal':\n // A bare `z.literal(...)` collapses to a primitive — pick STRING since\n // literal arrays in this codebase have always been string discriminants.\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.STRING };\n default:\n return { kind: CollectionElementKind.UNKNOWN };\n }\n}\n\n/**\n * Walk a Zod array's element schema and produce the derived structural shape\n * the renderer needs. UNION elements are expanded into per-branch derivations\n * (B-3) so downstream consumers can describe a heterogeneous element type\n * without lying about a single dominant kind.\n */\nfunction deriveArrayElement(arraySchema: z.ZodTypeAny): DerivedArrayElement | undefined {\n const elementSchema = getArrayItemSchema(arraySchema);\n if (!elementSchema) {\n return undefined;\n }\n const classification = classifyZodSchema(elementSchema);\n\n if (classification.kind === CollectionElementKind.UNION) {\n const unwrapped = unwrapSchema(elementSchema);\n const def = getZodDef(unwrapped);\n const options = Array.isArray(def?.options) ? (def.options as z.ZodTypeAny[]) : [];\n const branches: DerivedArrayElementBranch[] = options.map((branch) => {\n const branchClassification = classifyZodSchema(branch);\n return {\n kind: branchClassification.kind,\n primitiveType: branchClassification.primitiveType,\n };\n });\n return {\n kind: CollectionElementKind.UNION,\n unionBranches: branches.length > 0 ? branches : undefined,\n };\n }\n\n return classification;\n}\n\n/**\n * Resolve the FK target for a `foreignKeySpec(...)` field by matching the\n * field name against `ResourceRelationship.foreignKeyField` on a\n * relationship that lists the current resource on either `resourceType1`\n * or `resourceType2`. The FK column lives on the current resource (the\n * MANY / child side) and the target is the opposite endpoint (the\n * parent), so the matcher accepts the relationship from either declared\n * direction — the registry-author convention is mixed (some edges put\n * the parent first, others put the child first) and forcing one\n * orientation would silently miss FKs.\n *\n * Returns `undefined` (no derived slice) when no registry context is\n * supplied — that signals \"uninspected\" rather than \"unresolved\", and\n * keeps test fixtures / hand-built `additionalFieldSpecs` working\n * unchanged. When a context IS supplied and the lookup fails, the helper\n * emits a `foreignKeyTargetUnresolved` signal so the Phase 4\n * completeness validator can attribute the error to the missing\n * relationship rather than the renderer.\n */\nfunction deriveForeignKeyTarget(\n fieldName: string,\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): Pick<ExtractedFieldSpecDerived, 'foreignKeyTarget' | 'foreignKeyTargetUnresolved'> | undefined {\n if (!registryContext) {\n return undefined;\n }\n const { currentResourceType, relationships } = registryContext;\n const matched = relationships.find(\n (rel) =>\n rel.foreignKeyField === fieldName &&\n (rel.resourceType1 === currentResourceType || rel.resourceType2 === currentResourceType),\n );\n if (matched) {\n const targetResourceType = matched.resourceType1 === currentResourceType\n ? matched.resourceType2\n : matched.resourceType1;\n return {\n foreignKeyTarget: {\n resourceType: targetResourceType,\n },\n };\n }\n return {\n foreignKeyTargetUnresolved: {\n fromResourceType: currentResourceType,\n fieldName,\n reason: `no relationship declares foreignKeyField \"${fieldName}\" with \"${currentResourceType}\" on either side`,\n },\n };\n}\n\n/**\n * Build the `derived` slice for a single decorator hit. `arraySpec` carries\n * pure-Zod structural derivation (kind / primitive / union branches);\n * `foreignKeySpec` carries registry-backed target resolution when the\n * caller threads an `ExtractFieldSpecsRegistryContext`. Returns `undefined`\n * so callers that spread the field spec do not carry an empty\n * `derived: {}`.\n */\nfunction deriveForField(\n decorator: string,\n fieldName: string,\n fieldSchema: z.ZodTypeAny,\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): ExtractedFieldSpecDerived | undefined {\n if (decorator === ZodDecorator.ARRAY_SPEC) {\n const arrayElement = deriveArrayElement(fieldSchema);\n return arrayElement ? { arrayElement } : undefined;\n }\n if (decorator === ZodDecorator.FOREIGN_KEY_SPEC) {\n return deriveForeignKeyTarget(fieldName, registryContext);\n }\n return undefined;\n}\n\nfunction extractFieldSpecsFromShape(\n shape: Record<string, z.ZodTypeAny>,\n origin: ExtractedFieldSpec['origin'],\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): ExtractedFieldSpec[] {\n const results: ExtractedFieldSpec[] = [];\n\n for (const [fieldName, fieldSchema] of Object.entries(shape)) {\n const metadata = getCustomFieldMetadata(fieldSchema as z.ZodTypeAny);\n const specEntry = findSpecEntry(metadata);\n if (specEntry) {\n const derived = deriveForField(\n specEntry.decorator,\n fieldName,\n fieldSchema as z.ZodTypeAny,\n registryContext,\n );\n results.push({\n fieldName,\n specDecorator: specEntry.decorator,\n params: specEntry.params,\n ...(derived ? { derived } : {}),\n origin,\n });\n }\n }\n\n return results;\n}\n\nfunction extractInheritedFieldSpecs(\n parentSchema: z.ZodTypeAny,\n inheritanceDefinition: ResourceConfiguration_InheritanceSchemaDefinition<any, z.ZodTypeAny>,\n variantPath: NonNullable<NonNullable<ExtractedFieldSpec['origin']>['variantPath']>,\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): ExtractedFieldSpec[] {\n const parentShape = getZodObjectShape(parentSchema) as Record<string, z.ZodTypeAny>;\n const results: ExtractedFieldSpec[] = [];\n\n for (const inheritedItem of inheritanceDefinition.inheritedSchemas) {\n const inheritedShape = getZodObjectShape(inheritedItem.schema) as Record<string, z.ZodTypeAny>;\n const nextVariantPath = [\n ...variantPath,\n {\n discriminatorField: inheritanceDefinition.discriminatorField,\n discriminatorValue: inheritedItem.discriminatorFieldValue,\n },\n ];\n\n const variantDeltaShape: Record<string, z.ZodTypeAny> = {};\n for (const [fieldName, fieldSchema] of Object.entries(inheritedShape)) {\n if (!(fieldName in parentShape) || parentShape[fieldName] !== fieldSchema) {\n variantDeltaShape[fieldName] = fieldSchema;\n }\n }\n\n results.push(\n ...extractFieldSpecsFromShape(\n variantDeltaShape,\n {\n scope: 'inherited',\n variantPath: nextVariantPath,\n },\n registryContext,\n ),\n );\n\n if (inheritedItem.inheritenceSchemaDefinition) {\n results.push(\n ...extractInheritedFieldSpecs(\n inheritedItem.schema,\n inheritedItem.inheritenceSchemaDefinition as ResourceConfiguration_InheritanceSchemaDefinition<any, z.ZodTypeAny>,\n nextVariantPath,\n registryContext,\n ),\n );\n }\n }\n\n return results;\n}\n\n/**\n * Extract all `{primitive}Spec` metadata from a Zod object schema.\n *\n * Walks the top-level shape of the schema and collects any field that has\n * a `{primitive}Spec` decorator attached. Returns a flat array of\n * `ExtractedFieldSpec` entries, ready for serialization.\n *\n * Only inspects top-level fields (not nested object fields). Nested\n * objects with their own spec decorators would need recursive extraction\n * if required in the future.\n *\n * @param schema - A Zod object schema (typically a resource's `mainSchema`)\n * @param registryContext - Optional registry context that turns on\n * FK target derivation for `foreignKeySpec` fields. When omitted,\n * `derived.foreignKeyTarget` stays `undefined` for FK fields and the\n * Phase 4 completeness validator is responsible for surfacing missing\n * relationships independently.\n * @returns Array of extracted field specs, empty if no specs are found\n */\nexport function extractFieldSpecs(\n schema: z.ZodTypeAny,\n registryContext?: ExtractFieldSpecsRegistryContext,\n): ExtractedFieldSpec[] {\n if (!isZodObject(schema)) {\n throw new Error('extractFieldSpecs() requires a Zod object schema.');\n }\n const shape = getZodObjectShape(schema) as Record<string, z.ZodTypeAny>;\n return extractFieldSpecsFromShape(shape, { scope: 'main' }, registryContext);\n}\n\n/**\n * Extract `{primitive}Spec` metadata from a map of already-resolved field\n * schemas, such as `ResourceSpecificationConfig.fields`.\n *\n * This is the safest companion-side path when the specifications package\n * already owns the decorated field schema instances.\n *\n * @param registryContext - Optional registry context that turns on\n * FK target derivation for `foreignKeySpec` fields. The companion\n * resource-specifications path passes the resource's relationship\n * slice + `currentResourceType`; standalone test fixtures omit it.\n */\nexport function extractFieldSpecsFromFieldMap(\n fields: Record<string, z.ZodTypeAny>,\n origin: ExtractedFieldSpec['origin'] = { scope: 'main' },\n registryContext?: ExtractFieldSpecsRegistryContext,\n): ExtractedFieldSpec[] {\n return extractFieldSpecsFromShape(fields, origin, registryContext);\n}\n\n/**\n * Extract `{primitive}Spec` metadata from a full resource schema surface,\n * including variant-only / overridden fields declared through\n * `inheritenceSchemaDefinition`.\n *\n * The returned entries remain flat and JSON-safe, but inherited fields carry an\n * `origin.variantPath` so downstream consumers can see which discriminator path\n * introduced the field.\n *\n * @param registryContext - Optional registry context that turns on\n * FK target derivation for `foreignKeySpec` fields. The companion\n * resource-specifications handler passes\n * `{ currentResourceType, relationships: sharedRegistry.resourceRelationships }`;\n * tests and non-resource extractor entry points may omit it.\n */\nexport function extractResourceFieldSpecs(\n schema: z.ZodTypeAny,\n inheritanceDefinition?: ResourceConfiguration_InheritanceSchemaDefinition<any, z.ZodTypeAny>,\n registryContext?: ExtractFieldSpecsRegistryContext,\n): ExtractedFieldSpec[] {\n const mainFieldSpecs = extractFieldSpecs(schema, registryContext);\n if (!inheritanceDefinition) {\n return mainFieldSpecs;\n }\n\n return [\n ...mainFieldSpecs,\n ...extractInheritedFieldSpecs(schema, inheritanceDefinition, [], registryContext),\n ];\n}\n"]}
1
+ {"version":3,"file":"extract-field-specs.js","sourceRoot":"","sources":["../../../../src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ACJ,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,iBAAiB,CAC/B,MAAoB,EACpB,eAAkD;IAElD,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACvE,CAAC;IACD,MAAM,KAAK,GAAG,iBAAiB,CAAC,MAAM,CAAiC,CAAC;IACxE,OAAO,0BAA0B,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,eAAe,CAAC,CAAC;AAC/E,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,6BAA6B,CAC3C,MAAoC,EACpC,SAAuC,EAAE,KAAK,EAAE,MAAM,EAAE,EACxD,eAAkD;IAElD,OAAO,0BAA0B,CAAC,MAAM,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;AACrE,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,yBAAyB,CACvC,MAAoB,EACpB,qBAA4F,EAC5F,eAAkD;IAElD,MAAM,cAAc,GAAG,iBAAiB,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAClE,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC3B,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,OAAO;QACL,GAAG,cAAc;QACjB,GAAG,0BAA0B,CAAC,MAAM,EAAE,qBAAqB,EAAE,EAAE,EAAE,eAAe,CAAC;KAClF,CAAC;AACJ,CAAC","sourcesContent":["import type { z } from 'zod';\nimport type {\n ResourceConfiguration_InheritanceSchemaDefinition,\n ResourceRelationship,\n} from '@wildo-ai/saas-models';\nimport {\n CodePrimitiveKind,\n CollectionElementKind,\n getArrayItemSchema,\n getCustomFieldMetadata,\n getZodDef,\n getZodObjectShape,\n getZodType,\n isCodeSchema,\n isDurationSchema,\n isFileSchema,\n isMoneySchema,\n isPhoneSchema,\n isAddressSchema,\n isZodObject,\n unwrapSchema,\n ZodDecorator,\n type CodeEnumMemberRef,\n type CustomFieldMetadata,\n type FieldSpecBaseParams,\n} from '@wildo-ai/zod-decorators';\n\n/**\n * All `{primitive}Spec` decorator keys in `ZodDecorator`.\n * Used to scan `customFieldMetadata` for any spec entry.\n */\nconst SPEC_DECORATOR_KEYS = [\n ZodDecorator.STRING_SPEC,\n ZodDecorator.NUMBER_SPEC,\n ZodDecorator.BOOLEAN_SPEC,\n ZodDecorator.DATE_SPEC,\n ZodDecorator.DATETIME_SPEC,\n ZodDecorator.TIME_SPEC,\n ZodDecorator.ENUM_SPEC,\n ZodDecorator.MONEY_SPEC,\n ZodDecorator.CODE_SPEC,\n ZodDecorator.FILE_SPEC,\n ZodDecorator.DURATION_SPEC,\n ZodDecorator.PHONE_SPEC,\n ZodDecorator.BIGDECIMAL_SPEC,\n ZodDecorator.FOREIGN_KEY_SPEC,\n ZodDecorator.ARRAY_SPEC,\n ZodDecorator.OBJECT_SPEC,\n] as const;\n\n/**\n * Per-branch derived shape for a UNION element. Each entry mirrors the\n * scalar derivation we apply to non-union elements so downstream renderers\n * can describe a `users.appRoles = z.array(z.union([z.enum(...), z.string()]))`\n * shape without flattening the branches into an opaque `UNION` blob.\n */\nexport interface DerivedArrayElementBranch {\n /** Structural family of this branch (`PRIMITIVE` / `ENUM` / `OBJECT` / etc.). */\n kind: CollectionElementKind;\n /** Primitive kind when `kind === PRIMITIVE`. */\n primitiveType?: CodePrimitiveKind;\n}\n\n/**\n * Derived structural shape for an array element — derived purely from the\n * Zod element schema. The framework owns this surface; authors only declare\n * intent (`elementMeaning`, `enumDeclaration`, `notes`) on `arraySpec(...)`.\n */\nexport interface DerivedArrayElement {\n /** Structural family of each array element. */\n kind: CollectionElementKind;\n /** Primitive kind when `kind === PRIMITIVE`. */\n primitiveType?: CodePrimitiveKind;\n /**\n * Per-branch derivation when `kind === UNION` — preserves the structural\n * truth of unions instead of forcing authors to lie about a \"dominant\"\n * branch (B-3 decision: model UNION as a discrete kind with branches).\n */\n unionBranches?: DerivedArrayElementBranch[];\n}\n\n/**\n * Derived target of a `foreignKeySpec(...)` field — sourced from the\n * relationship registry by matching `foreignKeyField === <fieldName>` on\n * a relationship that lists the current resource on EITHER side. The FK\n * column lives on the MANY side (the child) and the target is the\n * opposite side (the parent), regardless of whether the registry author\n * declared the relationship as `(parent, child)` or `(child, parent)`.\n *\n * Populated in Phase 2B when the caller supplies an\n * `ExtractFieldSpecsRegistryContext`. When the caller does NOT supply one\n * (test fixtures, hand-built `additionalFieldSpecs`, non-resource\n * extractor entry points), this slice stays `undefined` — the\n * Phase 4 completeness validator is the single seam that requires it.\n */\nexport interface DerivedForeignKeyTarget {\n /** Resource type the FK points at (registry-derived). */\n resourceType: string;\n /** Optional code-symbol reference to the FK target's resource-type member. */\n ref?: CodeEnumMemberRef;\n}\n\n/**\n * Fail-closed signal for `foreignKeySpec` fields whose target could not\n * be resolved from the relationship registry. The Phase 4 completeness\n * validator consumes this to attribute the missing-relationship error to\n * the registry edge, not the renderer; renderers also surface the gap so\n * downstream prompts stay honest about the missing target instead of\n * silently dropping the FK line.\n *\n * Only emitted when the caller supplied an\n * `ExtractFieldSpecsRegistryContext` AND the lookup failed. When no\n * context is supplied the extractor cannot tell whether the FK is\n * unresolved or simply uninspected, so it stays `undefined`.\n */\nexport interface DerivedForeignKeyTargetUnresolved {\n /** Resource the FK lives on, as supplied by the caller. */\n fromResourceType: string;\n /** The FK field name that failed to resolve. */\n fieldName: string;\n /** Human-readable reason — used as-is in fail-closed error messages. */\n reason: string;\n}\n\n/**\n * Derived metadata that the framework extracts from the Zod schema (and,\n * in Phase 2B, the relationship registry). Authors no longer hand-author\n * structural fields the framework can derive — this object is the\n * single source of structural truth on an extracted spec.\n */\nexport interface ExtractedFieldSpecDerived {\n /** Present when the field is an `arraySpec`. */\n arrayElement?: DerivedArrayElement;\n /** Present when the field is a `foreignKeySpec` and the registry resolves the target (Phase 2B). */\n foreignKeyTarget?: DerivedForeignKeyTarget;\n /** Present when the field is a `foreignKeySpec` and the registry has no matching edge (Phase 2B). */\n foreignKeyTargetUnresolved?: DerivedForeignKeyTargetUnresolved;\n}\n\n/**\n * Caller-supplied context that lets the extractor derive registry-backed\n * facts. Currently scoped to FK target resolution; future registry-aware\n * derivations (e.g. cardinality inference for collection-shaped fields)\n * will read from the same context.\n *\n * Both fields are required for FK derivation to fire — passing\n * `relationships` without `currentResourceType` would let the matcher\n * silently resolve to a different resource's edge and is therefore\n * disallowed by the type itself.\n */\nexport interface ExtractFieldSpecsRegistryContext {\n /** Resource type that owns the schema being walked. */\n currentResourceType: string;\n /** Relationships that may concern the current resource. */\n relationships: readonly ResourceRelationship[];\n}\n\n/**\n * Extracted field specification entry — the JSON-safe representation\n * of a `{primitive}Spec()` decorator found on a schema field.\n */\nexport interface ExtractedFieldSpec {\n /** Field name in the schema. */\n fieldName: string;\n /** Which spec decorator was found (e.g., 'enumSpec', 'stringSpec'). */\n specDecorator: string;\n /** The full params object from the decorator. */\n params: FieldSpecBaseParams & Record<string, unknown>;\n /**\n * Framework-derived structural metadata. Optional because hand-authored\n * `additionalFieldSpecs` entries (companion-side overlays) and tests that\n * call the extractor without context will not carry derived data.\n */\n derived?: ExtractedFieldSpecDerived;\n /**\n * Where this field came from in the resource schema chain.\n * `main` is the root `mainSchema`; `inherited` is a variant-only or overridden\n * field coming from `inheritenceSchemaDefinition`.\n */\n origin?: {\n scope: 'main' | 'inherited';\n variantPath?: Array<{\n discriminatorField: string;\n discriminatorValue: string;\n }>;\n };\n}\n\n/**\n * Finds the first `{primitive}Spec` entry on a field's `customFieldMetadata`.\n * Returns `null` if no spec decorator is present.\n */\nfunction findSpecEntry(metadata: CustomFieldMetadata): { decorator: string; params: FieldSpecBaseParams & Record<string, unknown> } | null {\n for (const key of SPEC_DECORATOR_KEYS) {\n const value = metadata[key];\n if (value) {\n return { decorator: key, params: value as FieldSpecBaseParams & Record<string, unknown> };\n }\n }\n return null;\n}\n\n/**\n * Map a Zod type string (e.g. `'string'`, `'enum'`, `'object'`) plus the\n * decorator-bearing primitive helpers (money/code/file/...) onto our public\n * `CollectionElementKind` + `CodePrimitiveKind` axes. Centralised so that\n * scalar derivation and per-branch UNION derivation stay aligned — diverging\n * the two would mean a `users.appRoles` UNION branch could disagree with a\n * sibling field that uses the same primitive at the top level.\n */\nfunction classifyZodSchema(schema: z.ZodTypeAny): {\n kind: CollectionElementKind;\n primitiveType?: CodePrimitiveKind;\n} {\n const unwrapped = unwrapSchema(schema);\n\n // Decorator-bearing primitive families (money/code/file/duration/phone/address) —\n // detect BEFORE generic Zod-type fallback because they often wrap a number\n // or string at the Zod layer but should surface as their semantic primitive.\n if (isMoneySchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.MONEY };\n if (isCodeSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.CODE };\n if (isFileSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.FILE };\n if (isDurationSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.DURATION };\n if (isPhoneSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.PHONE };\n if (isAddressSchema(unwrapped)) return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.ADDRESS };\n\n const zodType = getZodType(unwrapped);\n switch (zodType) {\n case 'string':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.STRING };\n case 'number':\n case 'int':\n case 'bigint':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.NUMBER };\n case 'boolean':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.BOOLEAN };\n case 'date':\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.DATE };\n case 'enum':\n return { kind: CollectionElementKind.ENUM };\n case 'object':\n return { kind: CollectionElementKind.OBJECT };\n case 'array':\n // Nested arrays are unusual at the element level; mark as UNKNOWN so\n // authors notice and either flatten the schema or extend the kinds.\n return { kind: CollectionElementKind.UNKNOWN };\n case 'union':\n return { kind: CollectionElementKind.UNION };\n case 'literal':\n // A bare `z.literal(...)` collapses to a primitive — pick STRING since\n // literal arrays in this codebase have always been string discriminants.\n return { kind: CollectionElementKind.PRIMITIVE, primitiveType: CodePrimitiveKind.STRING };\n default:\n return { kind: CollectionElementKind.UNKNOWN };\n }\n}\n\n/**\n * Walk a Zod array's element schema and produce the derived structural shape\n * the renderer needs. UNION elements are expanded into per-branch derivations\n * (B-3) so downstream consumers can describe a heterogeneous element type\n * without lying about a single dominant kind.\n */\nfunction deriveArrayElement(arraySchema: z.ZodTypeAny): DerivedArrayElement | undefined {\n const elementSchema = getArrayItemSchema(arraySchema);\n if (!elementSchema) {\n return undefined;\n }\n const classification = classifyZodSchema(elementSchema);\n\n if (classification.kind === CollectionElementKind.UNION) {\n const unwrapped = unwrapSchema(elementSchema);\n const def = getZodDef(unwrapped);\n const options = Array.isArray(def?.options) ? (def.options as z.ZodTypeAny[]) : [];\n const branches: DerivedArrayElementBranch[] = options.map((branch) => {\n const branchClassification = classifyZodSchema(branch);\n return {\n kind: branchClassification.kind,\n primitiveType: branchClassification.primitiveType,\n };\n });\n return {\n kind: CollectionElementKind.UNION,\n unionBranches: branches.length > 0 ? branches : undefined,\n };\n }\n\n return classification;\n}\n\n/**\n * Resolve the FK target for a `foreignKeySpec(...)` field by matching the\n * field name against `ResourceRelationship.foreignKeyField` on a\n * relationship that lists the current resource on either `resourceType1`\n * or `resourceType2`. The FK column lives on the current resource (the\n * MANY / child side) and the target is the opposite endpoint (the\n * parent), so the matcher accepts the relationship from either declared\n * direction — the registry-author convention is mixed (some edges put\n * the parent first, others put the child first) and forcing one\n * orientation would silently miss FKs.\n *\n * Returns `undefined` (no derived slice) when no registry context is\n * supplied — that signals \"uninspected\" rather than \"unresolved\", and\n * keeps test fixtures / hand-built `additionalFieldSpecs` working\n * unchanged. When a context IS supplied and the lookup fails, the helper\n * emits a `foreignKeyTargetUnresolved` signal so the Phase 4\n * completeness validator can attribute the error to the missing\n * relationship rather than the renderer.\n *\n * Exported for a reader that holds field specs extracted WITHOUT a registry context and the registry\n * separately (#3268): the dev companion receives a resource specification's field specs as data from a\n * worker process, where its own resource registry is not, and resolves the targets against that registry\n * with this same rule rather than a second copy of it.\n */\nexport function deriveForeignKeyTarget(\n fieldName: string,\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): Pick<ExtractedFieldSpecDerived, 'foreignKeyTarget' | 'foreignKeyTargetUnresolved'> | undefined {\n if (!registryContext) {\n return undefined;\n }\n const { currentResourceType, relationships } = registryContext;\n const matched = relationships.find(\n (rel) =>\n rel.foreignKeyField === fieldName &&\n (rel.resourceType1 === currentResourceType || rel.resourceType2 === currentResourceType),\n );\n if (matched) {\n const targetResourceType = matched.resourceType1 === currentResourceType\n ? matched.resourceType2\n : matched.resourceType1;\n return {\n foreignKeyTarget: {\n resourceType: targetResourceType,\n },\n };\n }\n return {\n foreignKeyTargetUnresolved: {\n fromResourceType: currentResourceType,\n fieldName,\n reason: `no relationship declares foreignKeyField \"${fieldName}\" with \"${currentResourceType}\" on either side`,\n },\n };\n}\n\n/**\n * Build the `derived` slice for a single decorator hit. `arraySpec` carries\n * pure-Zod structural derivation (kind / primitive / union branches);\n * `foreignKeySpec` carries registry-backed target resolution when the\n * caller threads an `ExtractFieldSpecsRegistryContext`. Returns `undefined`\n * so callers that spread the field spec do not carry an empty\n * `derived: {}`.\n */\nfunction deriveForField(\n decorator: string,\n fieldName: string,\n fieldSchema: z.ZodTypeAny,\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): ExtractedFieldSpecDerived | undefined {\n if (decorator === ZodDecorator.ARRAY_SPEC) {\n const arrayElement = deriveArrayElement(fieldSchema);\n return arrayElement ? { arrayElement } : undefined;\n }\n if (decorator === ZodDecorator.FOREIGN_KEY_SPEC) {\n return deriveForeignKeyTarget(fieldName, registryContext);\n }\n return undefined;\n}\n\nfunction extractFieldSpecsFromShape(\n shape: Record<string, z.ZodTypeAny>,\n origin: ExtractedFieldSpec['origin'],\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): ExtractedFieldSpec[] {\n const results: ExtractedFieldSpec[] = [];\n\n for (const [fieldName, fieldSchema] of Object.entries(shape)) {\n const metadata = getCustomFieldMetadata(fieldSchema as z.ZodTypeAny);\n const specEntry = findSpecEntry(metadata);\n if (specEntry) {\n const derived = deriveForField(\n specEntry.decorator,\n fieldName,\n fieldSchema as z.ZodTypeAny,\n registryContext,\n );\n results.push({\n fieldName,\n specDecorator: specEntry.decorator,\n params: specEntry.params,\n ...(derived ? { derived } : {}),\n origin,\n });\n }\n }\n\n return results;\n}\n\nfunction extractInheritedFieldSpecs(\n parentSchema: z.ZodTypeAny,\n inheritanceDefinition: ResourceConfiguration_InheritanceSchemaDefinition<any, z.ZodTypeAny>,\n variantPath: NonNullable<NonNullable<ExtractedFieldSpec['origin']>['variantPath']>,\n registryContext: ExtractFieldSpecsRegistryContext | undefined,\n): ExtractedFieldSpec[] {\n const parentShape = getZodObjectShape(parentSchema) as Record<string, z.ZodTypeAny>;\n const results: ExtractedFieldSpec[] = [];\n\n for (const inheritedItem of inheritanceDefinition.inheritedSchemas) {\n const inheritedShape = getZodObjectShape(inheritedItem.schema) as Record<string, z.ZodTypeAny>;\n const nextVariantPath = [\n ...variantPath,\n {\n discriminatorField: inheritanceDefinition.discriminatorField,\n discriminatorValue: inheritedItem.discriminatorFieldValue,\n },\n ];\n\n const variantDeltaShape: Record<string, z.ZodTypeAny> = {};\n for (const [fieldName, fieldSchema] of Object.entries(inheritedShape)) {\n if (!(fieldName in parentShape) || parentShape[fieldName] !== fieldSchema) {\n variantDeltaShape[fieldName] = fieldSchema;\n }\n }\n\n results.push(\n ...extractFieldSpecsFromShape(\n variantDeltaShape,\n {\n scope: 'inherited',\n variantPath: nextVariantPath,\n },\n registryContext,\n ),\n );\n\n if (inheritedItem.inheritenceSchemaDefinition) {\n results.push(\n ...extractInheritedFieldSpecs(\n inheritedItem.schema,\n inheritedItem.inheritenceSchemaDefinition as ResourceConfiguration_InheritanceSchemaDefinition<any, z.ZodTypeAny>,\n nextVariantPath,\n registryContext,\n ),\n );\n }\n }\n\n return results;\n}\n\n/**\n * Extract all `{primitive}Spec` metadata from a Zod object schema.\n *\n * Walks the top-level shape of the schema and collects any field that has\n * a `{primitive}Spec` decorator attached. Returns a flat array of\n * `ExtractedFieldSpec` entries, ready for serialization.\n *\n * Only inspects top-level fields (not nested object fields). Nested\n * objects with their own spec decorators would need recursive extraction\n * if required in the future.\n *\n * @param schema - A Zod object schema (typically a resource's `mainSchema`)\n * @param registryContext - Optional registry context that turns on\n * FK target derivation for `foreignKeySpec` fields. When omitted,\n * `derived.foreignKeyTarget` stays `undefined` for FK fields and the\n * Phase 4 completeness validator is responsible for surfacing missing\n * relationships independently.\n * @returns Array of extracted field specs, empty if no specs are found\n */\nexport function extractFieldSpecs(\n schema: z.ZodTypeAny,\n registryContext?: ExtractFieldSpecsRegistryContext,\n): ExtractedFieldSpec[] {\n if (!isZodObject(schema)) {\n throw new Error('extractFieldSpecs() requires a Zod object schema.');\n }\n const shape = getZodObjectShape(schema) as Record<string, z.ZodTypeAny>;\n return extractFieldSpecsFromShape(shape, { scope: 'main' }, registryContext);\n}\n\n/**\n * Extract `{primitive}Spec` metadata from a map of already-resolved field\n * schemas, such as `ResourceSpecificationConfig.fields`.\n *\n * This is the safest companion-side path when the specifications package\n * already owns the decorated field schema instances.\n *\n * @param registryContext - Optional registry context that turns on\n * FK target derivation for `foreignKeySpec` fields. The companion\n * resource-specifications path passes the resource's relationship\n * slice + `currentResourceType`; standalone test fixtures omit it.\n */\nexport function extractFieldSpecsFromFieldMap(\n fields: Record<string, z.ZodTypeAny>,\n origin: ExtractedFieldSpec['origin'] = { scope: 'main' },\n registryContext?: ExtractFieldSpecsRegistryContext,\n): ExtractedFieldSpec[] {\n return extractFieldSpecsFromShape(fields, origin, registryContext);\n}\n\n/**\n * Extract `{primitive}Spec` metadata from a full resource schema surface,\n * including variant-only / overridden fields declared through\n * `inheritenceSchemaDefinition`.\n *\n * The returned entries remain flat and JSON-safe, but inherited fields carry an\n * `origin.variantPath` so downstream consumers can see which discriminator path\n * introduced the field.\n *\n * @param registryContext - Optional registry context that turns on\n * FK target derivation for `foreignKeySpec` fields. The companion\n * resource-specifications handler passes\n * `{ currentResourceType, relationships: sharedRegistry.resourceRelationships }`;\n * tests and non-resource extractor entry points may omit it.\n */\nexport function extractResourceFieldSpecs(\n schema: z.ZodTypeAny,\n inheritanceDefinition?: ResourceConfiguration_InheritanceSchemaDefinition<any, z.ZodTypeAny>,\n registryContext?: ExtractFieldSpecsRegistryContext,\n): ExtractedFieldSpec[] {\n const mainFieldSpecs = extractFieldSpecs(schema, registryContext);\n if (!inheritanceDefinition) {\n return mainFieldSpecs;\n }\n\n return [\n ...mainFieldSpecs,\n ...extractInheritedFieldSpecs(schema, inheritanceDefinition, [], registryContext),\n ];\n}\n"]}
@@ -39,8 +39,8 @@ import { AuthoredConfidence, ReviewCadence } from '../market/market-authored-met
39
39
  */
40
40
  export declare const VisionAuthoredMetadataSchema: z.ZodObject<{
41
41
  lastAuthoredAt: z.ZodISODateTime;
42
- confidence: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof AuthoredConfidence>>;
43
- reviewCadence: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof ReviewCadence>>>;
42
+ confidence: z.ZodEnum<typeof AuthoredConfidence>;
43
+ reviewCadence: z.ZodOptional<z.ZodEnum<typeof ReviewCadence>>;
44
44
  reviewer: z.ZodOptional<z.ZodString>;
45
45
  notes: z.ZodOptional<z.ZodString>;
46
46
  }, z.core.$strip>;
@@ -9,8 +9,10 @@ import { z } from 'zod';
9
9
  *
10
10
  * `kind` classifies the constraint so downstream surfaces can route it
11
11
  * — most importantly, `COMPLIANCE` constraints (data-residency,
12
- * privacy/health-data law, assurance commitments, sector rules) are the seam the top-down
13
- * compliance-posture playbook (U10) reads. At scaffold depth a
12
+ * privacy/health-data law, assurance commitments, sector rules) are the
13
+ * creator's own compliance seam, which the top-down compliance-posture
14
+ * playbook (U10) reads; the regimes it researches land in the separate
15
+ * `compliance-posture` family (#3362), never back here. At scaffold depth a
14
16
  * compliance constraint is a `kind: COMPLIANCE` entry with a prose
15
17
  * `statement` ("Must be GDPR-compliant for EU customer personal data")
16
18
  * — the DEEP per-regime obligation model (control catalogs, data-flow
@@ -47,8 +49,8 @@ export declare const VisionConstraintConfigSchema: z.ZodObject<{
47
49
  rationale: z.ZodOptional<z.ZodString>;
48
50
  authored: z.ZodOptional<z.ZodObject<{
49
51
  lastAuthoredAt: z.ZodISODateTime;
50
- confidence: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("..").AuthoredConfidence>>;
51
- reviewCadence: z.ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodEnum<typeof import("@wildo-ai/saas-models").ReviewCadence>>>;
52
+ confidence: z.ZodEnum<typeof import("..").AuthoredConfidence>;
53
+ reviewCadence: z.ZodOptional<z.ZodEnum<typeof import("@wildo-ai/saas-models").ReviewCadence>>;
52
54
  reviewer: z.ZodOptional<z.ZodString>;
53
55
  notes: z.ZodOptional<z.ZodString>;
54
56
  }, z.core.$strip>>;
@@ -1 +1 @@
1
- {"version":3,"file":"vision-constraint.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/vision/vision-constraint.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;GAKG;AACH,oBAAY,oBAAoB;IAC9B,0EAA0E;IAC1E,SAAS,cAAc;IACvB,6EAA6E;IAC7E,QAAQ,aAAa;IACrB;;;OAGG;IACH,UAAU,eAAe;IACzB,6DAA6D;IAC7D,QAAQ,aAAa;IACrB,uEAAuE;IACvE,QAAQ,aAAa;IACrB,uDAAuD;IACvD,KAAK,UAAU;CAChB;AAED,eAAO,MAAM,4BAA4B;;;;;;;;;;;;iBAWvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,sDAAsD"}
1
+ {"version":3,"file":"vision-constraint.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/vision/vision-constraint.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;GAKG;AACH,oBAAY,oBAAoB;IAC9B,0EAA0E;IAC1E,SAAS,cAAc;IACvB,6EAA6E;IAC7E,QAAQ,aAAa;IACrB;;;OAGG;IACH,UAAU,eAAe;IACzB,6DAA6D;IAC7D,QAAQ,aAAa;IACrB,uEAAuE;IACvE,QAAQ,aAAa;IACrB,uDAAuD;IACvD,KAAK,UAAU;CAChB;AAED,eAAO,MAAM,4BAA4B;;;;;;;;;;;;iBAWvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,sDAAsD"}