@wildo-ai/saas-specifications 1.1.2 → 1.1.3

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 (410) hide show
  1. package/dist/esm/_core/brand/brand-asset.schemas.d.ts +4 -6
  2. package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
  3. package/dist/esm/_core/brand/brand-asset.schemas.js +4 -12
  4. package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
  5. package/dist/esm/_core/brand/brand-generation.schemas.d.ts +5 -3
  6. package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
  7. package/dist/esm/_core/brand/brand-generation.schemas.js +5 -2
  8. package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
  9. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +10 -3
  10. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
  11. package/dist/esm/_core/brand/brand-snapshot.schemas.js +10 -2
  12. package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
  13. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  14. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +15 -5
  15. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
  16. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +40 -3
  17. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  18. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +85 -6
  19. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  20. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
  21. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +10 -4
  22. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
  23. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +15 -0
  24. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
  25. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
  26. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +10 -0
  27. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  28. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +17 -0
  29. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  30. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +6 -7
  31. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  32. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +6 -13
  33. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  34. package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts +0 -11
  35. package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
  36. package/dist/esm/_core/expert-personas/expert-persona-validation.js +0 -19
  37. package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
  38. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +1 -2
  39. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
  40. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +1 -2
  41. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
  42. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
  43. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js +17 -4
  44. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
  45. package/dist/esm/_core/index.d.ts +1 -0
  46. package/dist/esm/_core/index.d.ts.map +1 -1
  47. package/dist/esm/_core/index.js +1 -0
  48. package/dist/esm/_core/index.js.map +1 -1
  49. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  50. package/dist/esm/_core/market/market-snapshot-generation.schemas.js +5 -40
  51. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  52. package/dist/esm/_core/market/market-snapshot-validation.d.ts +15 -0
  53. package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
  54. package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
  55. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
  56. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +11 -5
  57. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
  58. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +66 -9
  59. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  60. package/dist/esm/_core/placement-plan/placement-plan-validation.js +62 -20
  61. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  62. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +4 -1
  63. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  64. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +4 -1
  65. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  66. package/dist/esm/_core/provider-specification.schemas.d.ts +82 -0
  67. package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -0
  68. package/dist/esm/_core/provider-specification.schemas.js +144 -0
  69. package/dist/esm/_core/provider-specification.schemas.js.map +1 -0
  70. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  71. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +13 -8
  72. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
  73. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +15 -0
  74. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
  75. package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
  76. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
  77. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +7 -2
  78. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
  79. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +15 -0
  80. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
  81. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
  82. package/dist/esm/_core/utils/family-ref-stamping.d.ts +64 -0
  83. package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -0
  84. package/dist/esm/_core/utils/family-ref-stamping.js +73 -0
  85. package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -0
  86. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
  87. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js +23 -9
  88. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
  89. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -4
  90. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +1 -1
  91. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +7 -7
  92. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  93. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +6 -7
  94. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  95. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +3 -3
  96. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +3 -3
  97. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
  98. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +2 -2
  99. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +2 -2
  100. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
  101. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +18 -6
  102. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  103. package/dist/esm/application-creation/journey.application-creation.schemas.js +18 -6
  104. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  105. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +8 -23
  106. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  107. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +57 -27
  108. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  109. package/dist/esm/assurance/application-document-publication.schemas.d.ts +20 -6
  110. package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
  111. package/dist/esm/assurance/application-document-publication.schemas.js +26 -10
  112. package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
  113. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +72 -49
  114. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  115. package/dist/esm/assurance/assurance-authority-basis.definitions.js +161 -60
  116. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  117. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +25 -0
  118. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  119. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +36 -0
  120. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -0
  121. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +859 -0
  122. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -0
  123. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +43 -0
  124. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  125. package/dist/esm/assurance/assurance-foundation.schemas.js +56 -0
  126. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  127. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +14 -7
  128. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  129. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +24 -7
  130. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  131. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +8 -1
  132. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  133. package/dist/esm/assurance/assurance-program-generation.schemas.js +10 -2
  134. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  135. package/dist/esm/assurance/assurance-program.schemas.d.ts +447 -11
  136. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  137. package/dist/esm/assurance/assurance-program.schemas.js +293 -5
  138. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  139. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts +35 -0
  140. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -0
  141. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +999 -0
  142. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -0
  143. package/dist/esm/companion-exports.d.ts +7 -6
  144. package/dist/esm/companion-exports.d.ts.map +1 -1
  145. package/dist/esm/companion-exports.js.map +1 -1
  146. package/dist/esm/engine/_bootstrap.js +3 -1
  147. package/dist/esm/engine/_bootstrap.js.map +1 -1
  148. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  149. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +13 -1
  150. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  151. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +1 -1
  152. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  153. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +2 -0
  154. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  155. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +14 -2
  156. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  157. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +9 -9
  158. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  159. package/dist/esm/engine/applications/resources/applications.resource.specification.js +1 -1
  160. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  161. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +3 -3
  162. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -1
  163. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +1 -1
  164. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  165. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  166. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +13 -1
  167. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  168. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +2 -0
  169. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  170. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +14 -2
  171. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  172. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +32 -0
  173. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -0
  174. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +308 -0
  175. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -0
  176. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +4 -4
  177. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  178. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +2 -2
  179. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  180. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +6 -6
  181. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  182. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +9 -9
  183. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  184. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +2 -2
  185. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  186. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +9 -25
  187. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  188. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +104 -10
  189. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  190. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -6
  191. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  192. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +32 -0
  193. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -0
  194. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +297 -0
  195. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -0
  196. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  197. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +4 -3
  198. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  199. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +2 -2
  200. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  201. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +3 -3
  202. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  203. package/dist/esm/engine/billing/resources/prices.resource.specification.js +7 -7
  204. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  205. package/dist/esm/engine/billing/resources/products.resource.specification.js +7 -7
  206. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  207. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  208. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +14 -12
  209. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  210. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +7 -7
  211. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  212. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  213. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +6 -3
  214. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  215. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +7 -3
  216. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  217. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +28 -11
  218. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  219. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +8 -8
  220. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  221. package/dist/esm/engine/engine-resource-specifications.registry.d.ts +2 -2
  222. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  223. package/dist/esm/engine/engine-resource-specifications.registry.js +6 -2
  224. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  225. package/dist/esm/engine/engine-resource-sub-domain.d.ts +20 -0
  226. package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -1
  227. package/dist/esm/engine/engine-resource-sub-domain.js +66 -0
  228. package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -1
  229. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  230. package/dist/esm/engine/errors/error-messages.specification.js +14 -0
  231. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  232. package/dist/esm/engine/features/audit-logs.feature.specification.js +4 -4
  233. package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
  234. package/dist/esm/engine/features/core-limits.feature.specifications.js +7 -7
  235. package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
  236. package/dist/esm/engine/features/resources/application-features.resource.specification.js +3 -3
  237. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  238. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +3 -3
  239. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  240. package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
  241. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  242. package/dist/esm/engine/files/resources/files.resource.specification.js +10 -10
  243. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  244. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +11 -11
  245. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  246. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +4 -4
  247. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  248. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +2 -2
  249. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  250. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts +5 -0
  251. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -0
  252. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +81 -0
  253. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -0
  254. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts +4 -0
  255. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -0
  256. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js +22 -0
  257. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -0
  258. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +0 -4
  259. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +0 -1
  260. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +0 -21
  261. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +0 -1
  262. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -4
  263. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -1
  264. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -21
  265. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -1
  266. package/dist/esm/engine/frontend-components/index.d.ts +0 -2
  267. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  268. package/dist/esm/engine/frontend-components/index.js +4 -6
  269. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  270. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +12 -12
  271. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  272. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +9 -9
  273. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  274. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +8 -0
  275. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  276. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +6 -6
  277. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  278. package/dist/esm/engine/index.d.ts +1 -0
  279. package/dist/esm/engine/index.d.ts.map +1 -1
  280. package/dist/esm/engine/index.js +1 -0
  281. package/dist/esm/engine/index.js.map +1 -1
  282. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +17 -17
  283. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  284. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +7 -7
  285. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  286. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +8 -8
  287. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  288. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +7 -2
  289. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
  290. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +10 -5
  291. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  292. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  293. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +20 -15
  294. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  295. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  296. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +11 -10
  297. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  298. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  299. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +29 -6
  300. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  301. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +9 -9
  302. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  303. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +3 -3
  304. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  305. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +4 -4
  306. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  307. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +2 -2
  308. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  309. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +1 -1
  310. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  311. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +7 -7
  312. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  313. package/dist/esm/engine/providers/_engine-provider-shared.d.ts +9 -0
  314. package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -0
  315. package/dist/esm/engine/providers/_engine-provider-shared.js +19 -0
  316. package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -0
  317. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts +7 -0
  318. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -0
  319. package/dist/esm/engine/providers/anthropic.provider.specification.js +33 -0
  320. package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -0
  321. package/dist/esm/engine/providers/apple.provider.specification.d.ts +7 -0
  322. package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -0
  323. package/dist/esm/engine/providers/apple.provider.specification.js +35 -0
  324. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -0
  325. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts +7 -0
  326. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -0
  327. package/dist/esm/engine/providers/email-preview.provider.specification.js +31 -0
  328. package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -0
  329. package/dist/esm/engine/providers/github.provider.specification.d.ts +7 -0
  330. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -0
  331. package/dist/esm/engine/providers/github.provider.specification.js +30 -0
  332. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -0
  333. package/dist/esm/engine/providers/google.provider.specification.d.ts +7 -0
  334. package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -0
  335. package/dist/esm/engine/providers/google.provider.specification.js +34 -0
  336. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -0
  337. package/dist/esm/engine/providers/grok.provider.specification.d.ts +7 -0
  338. package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -0
  339. package/dist/esm/engine/providers/grok.provider.specification.js +30 -0
  340. package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -0
  341. package/dist/esm/engine/providers/index.d.ts +23 -0
  342. package/dist/esm/engine/providers/index.d.ts.map +1 -0
  343. package/dist/esm/engine/providers/index.js +37 -0
  344. package/dist/esm/engine/providers/index.js.map +1 -0
  345. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts +7 -0
  346. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -0
  347. package/dist/esm/engine/providers/microsoft.provider.specification.js +30 -0
  348. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -0
  349. package/dist/esm/engine/providers/mistral.provider.specification.d.ts +7 -0
  350. package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -0
  351. package/dist/esm/engine/providers/mistral.provider.specification.js +33 -0
  352. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -0
  353. package/dist/esm/engine/providers/openai.provider.specification.d.ts +7 -0
  354. package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -0
  355. package/dist/esm/engine/providers/openai.provider.specification.js +43 -0
  356. package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -0
  357. package/dist/esm/engine/providers/opencode.provider.specification.d.ts +7 -0
  358. package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -0
  359. package/dist/esm/engine/providers/opencode.provider.specification.js +50 -0
  360. package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -0
  361. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts +7 -0
  362. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -0
  363. package/dist/esm/engine/providers/perplexity.provider.specification.js +30 -0
  364. package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -0
  365. package/dist/esm/engine/providers/resend.provider.specification.d.ts +7 -0
  366. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -0
  367. package/dist/esm/engine/providers/resend.provider.specification.js +33 -0
  368. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -0
  369. package/dist/esm/engine/providers/stripe.provider.specification.d.ts +7 -0
  370. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -0
  371. package/dist/esm/engine/providers/stripe.provider.specification.js +35 -0
  372. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -0
  373. package/dist/esm/engine/providers/twilio.provider.specification.d.ts +7 -0
  374. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -0
  375. package/dist/esm/engine/providers/twilio.provider.specification.js +33 -0
  376. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -0
  377. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -7
  378. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  379. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +9 -9
  380. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  381. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -2
  382. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  383. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +8 -8
  384. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  385. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +4 -4
  386. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +4 -4
  387. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  388. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +2 -2
  389. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  390. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -4
  391. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  392. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +13 -11
  393. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  394. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +1 -1
  395. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  396. package/dist/esm/engine/users/resources/user-self.resource.specification.js +8 -8
  397. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  398. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  399. package/dist/esm/engine/users/resources/users.resource.specification.js +93 -0
  400. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  401. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  402. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +95 -45
  403. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  404. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +37 -1
  405. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
  406. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +36 -0
  407. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
  408. package/dist/tsconfig.build.tsbuildinfo +1 -1
  409. package/package.json +8 -8
  410. package/dist/assurance/external-framework-mapping.json +0 -980
@@ -23,8 +23,25 @@ export declare enum TechnicalDocumentationReaderAudience {
23
23
  ORGANIZATION_ADMINISTRATOR = "ORGANIZATION_ADMINISTRATOR",
24
24
  ORGANIZATION_INTEGRATION_DEVELOPER = "ORGANIZATION_INTEGRATION_DEVELOPER"
25
25
  }
26
+ /**
27
+ * How far a piece of PROVENANCE may travel — the classification of the SOURCE a unit was derived
28
+ * from, not of the unit itself (that is {@link TechnicalDocumentationAccessClass}).
29
+ *
30
+ * A unit whose provenance carries anything but `PUBLIC` is suppressed from the public portal, and
31
+ * the public-bundle validator refuses one that slipped through. Both halves existed before
32
+ * `RESTRICTED` did: the vocabulary had a single member, so no unit could carry a restricted source
33
+ * and the suppression path had no producer at all (#474).
34
+ */
26
35
  export declare enum TechnicalDocumentationSourceClassification {
27
- PUBLIC = "PUBLIC"
36
+ /** Derived from something the framework already publishes; safe to attribute in a public portal. */
37
+ PUBLIC = "PUBLIC",
38
+ /**
39
+ * Derived from a source the public portal must not attribute or expose — an internal design note,
40
+ * a private specification, an operational record. The unit is suppressed rather than redacted:
41
+ * provenance is not a field that can be trimmed and leave the unit honest, because a reader who
42
+ * cannot see where a statement came from cannot check it.
43
+ */
44
+ RESTRICTED = "RESTRICTED"
28
45
  }
29
46
  export declare enum TechnicalDocumentationChannel {
30
47
  PUBLIC_PORTAL = "PUBLIC_PORTAL"
@@ -48,12 +65,31 @@ export declare enum TechnicalDocumentationPublicationDecision {
48
65
  REDACT = "REDACT",
49
66
  SUPPRESS = "SUPPRESS"
50
67
  }
68
+ /**
69
+ * Why the publication policy decided what it did about one unit. This is the decision RECORD an
70
+ * operator reads, so two different decisions must never share a reason — see `RESTRICTED_SOURCE`
71
+ * and `RESTRICTED_ASSET_REDACTED` below, which did until 2026-09-08 (#474).
72
+ */
51
73
  export declare enum TechnicalDocumentationPublicationReason {
52
74
  ACCESS_CLASS_MISMATCH = "ACCESS_CLASS_MISMATCH",
53
75
  APPLICABILITY_NOT_PROVEN = "APPLICABILITY_NOT_PROVEN",
54
76
  EDITORIAL_NOT_APPROVED = "EDITORIAL_NOT_APPROVED",
55
77
  INCLUDED_BY_POLICY = "INCLUDED_BY_POLICY",
78
+ /**
79
+ * The WHOLE unit was suppressed: its provenance names a non-`PUBLIC` source, so nothing about it
80
+ * may be published.
81
+ */
56
82
  RESTRICTED_SOURCE = "RESTRICTED_SOURCE",
83
+ /**
84
+ * The unit was PUBLISHED with one or more asset requests dropped, because their access class is
85
+ * not `PUBLIC`. The reader gets the unit; they do not get those assets.
86
+ *
87
+ * Distinct from `RESTRICTED_SOURCE` deliberately. Both used to emit `RESTRICTED_SOURCE`, so a
88
+ * decision record could not distinguish "this unit was withheld" from "this unit shipped with
89
+ * fewer pictures" — opposite outcomes for a reader, and the first is the one an operator needs
90
+ * to find.
91
+ */
92
+ RESTRICTED_ASSET_REDACTED = "RESTRICTED_ASSET_REDACTED",
57
93
  SUPERSEDED = "SUPERSEDED"
58
94
  }
59
95
  export declare const TechnicalDocumentationSectionV1Schema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"technical-documentation-units.schemas.d.ts","sourceRoot":"","sources":["../../../../src/technical-documentation/technical-documentation-units.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,EACL,+CAA+C,EAC/C,iDAAiD,EAClD,MAAM,4CAA4C,CAAC;AAEpD,oBAAY,8BAA8B;IACxC,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,eAAe,oBAAoB;CACpC;AAED,oBAAY,qCAAqC;IAC/C,qFAAqF;IACrF,gCAAgC,qCAAqC;IACrE,sBAAs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AC;AACL,MAAM,MAAM,gDAAgD,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sDAAsD,CAAC,CAAC;AAEtI,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAxB7C;;;;;WAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA4DD,CAAC;AACL,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,4BAA4B,GAAG,4BAA4B,CAgBpH"}
1
+ {"version":3,"file":"technical-documentation-units.schemas.d.ts","sourceRoot":"","sources":["../../../../src/technical-documentation/technical-documentation-units.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,EACL,+CAA+C,EAC/C,iDAAiD,EAClD,MAAM,4CAA4C,CAAC;AAEpD,oBAAY,8BAA8B;IACxC,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,eAAe,oBAAoB;CACpC;AAED,oBAAY,qCAAqC;IAC/C,qFAAqF;IACrF,gCAAgC,qCAAqC;IACrE,sBAAsB,2BAA2B;CAClD;AAED,6FAA6F;AAC7F,oBAAY,oCAAoC;IAC9C,4BAA4B,iCAAiC;IAC7D,0BAA0B,+BAA+B;IACzD,8BAA8B,mCAAmC;IACjE,0BAA0B,+BAA+B;IACzD,kCAAkC,uCAAuC;CAC1E;AAED;;;;;;;;GAQG;AACH,oBAAY,0CAA0C;IACpD,oGAAoG;IACpG,MAAM,WAAW;IACjB;;;;;OAKG;IACH,UAAU,eAAe;CAC1B;AAED,oBAAY,6BAA6B;IACvC,aAAa,kBAAkB;CAChC;AAED,oBAAY,iCAAiC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;;;;;;;;;;;;;kBA4DD,CAAC;AACL,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,4BAA4B,GAAG,4BAA4B,CAgBpH"}
@@ -30,9 +30,26 @@ export var TechnicalDocumentationReaderAudience;
30
30
  TechnicalDocumentationReaderAudience["ORGANIZATION_ADMINISTRATOR"] = "ORGANIZATION_ADMINISTRATOR";
31
31
  TechnicalDocumentationReaderAudience["ORGANIZATION_INTEGRATION_DEVELOPER"] = "ORGANIZATION_INTEGRATION_DEVELOPER";
32
32
  })(TechnicalDocumentationReaderAudience || (TechnicalDocumentationReaderAudience = {}));
33
+ /**
34
+ * How far a piece of PROVENANCE may travel — the classification of the SOURCE a unit was derived
35
+ * from, not of the unit itself (that is {@link TechnicalDocumentationAccessClass}).
36
+ *
37
+ * A unit whose provenance carries anything but `PUBLIC` is suppressed from the public portal, and
38
+ * the public-bundle validator refuses one that slipped through. Both halves existed before
39
+ * `RESTRICTED` did: the vocabulary had a single member, so no unit could carry a restricted source
40
+ * and the suppression path had no producer at all (#474).
41
+ */
33
42
  export var TechnicalDocumentationSourceClassification;
34
43
  (function (TechnicalDocumentationSourceClassification) {
44
+ /** Derived from something the framework already publishes; safe to attribute in a public portal. */
35
45
  TechnicalDocumentationSourceClassification["PUBLIC"] = "PUBLIC";
46
+ /**
47
+ * Derived from a source the public portal must not attribute or expose — an internal design note,
48
+ * a private specification, an operational record. The unit is suppressed rather than redacted:
49
+ * provenance is not a field that can be trimmed and leave the unit honest, because a reader who
50
+ * cannot see where a statement came from cannot check it.
51
+ */
52
+ TechnicalDocumentationSourceClassification["RESTRICTED"] = "RESTRICTED";
36
53
  })(TechnicalDocumentationSourceClassification || (TechnicalDocumentationSourceClassification = {}));
37
54
  export var TechnicalDocumentationChannel;
38
55
  (function (TechnicalDocumentationChannel) {
@@ -61,13 +78,32 @@ export var TechnicalDocumentationPublicationDecision;
61
78
  TechnicalDocumentationPublicationDecision["REDACT"] = "REDACT";
62
79
  TechnicalDocumentationPublicationDecision["SUPPRESS"] = "SUPPRESS";
63
80
  })(TechnicalDocumentationPublicationDecision || (TechnicalDocumentationPublicationDecision = {}));
81
+ /**
82
+ * Why the publication policy decided what it did about one unit. This is the decision RECORD an
83
+ * operator reads, so two different decisions must never share a reason — see `RESTRICTED_SOURCE`
84
+ * and `RESTRICTED_ASSET_REDACTED` below, which did until 2026-09-08 (#474).
85
+ */
64
86
  export var TechnicalDocumentationPublicationReason;
65
87
  (function (TechnicalDocumentationPublicationReason) {
66
88
  TechnicalDocumentationPublicationReason["ACCESS_CLASS_MISMATCH"] = "ACCESS_CLASS_MISMATCH";
67
89
  TechnicalDocumentationPublicationReason["APPLICABILITY_NOT_PROVEN"] = "APPLICABILITY_NOT_PROVEN";
68
90
  TechnicalDocumentationPublicationReason["EDITORIAL_NOT_APPROVED"] = "EDITORIAL_NOT_APPROVED";
69
91
  TechnicalDocumentationPublicationReason["INCLUDED_BY_POLICY"] = "INCLUDED_BY_POLICY";
92
+ /**
93
+ * The WHOLE unit was suppressed: its provenance names a non-`PUBLIC` source, so nothing about it
94
+ * may be published.
95
+ */
70
96
  TechnicalDocumentationPublicationReason["RESTRICTED_SOURCE"] = "RESTRICTED_SOURCE";
97
+ /**
98
+ * The unit was PUBLISHED with one or more asset requests dropped, because their access class is
99
+ * not `PUBLIC`. The reader gets the unit; they do not get those assets.
100
+ *
101
+ * Distinct from `RESTRICTED_SOURCE` deliberately. Both used to emit `RESTRICTED_SOURCE`, so a
102
+ * decision record could not distinguish "this unit was withheld" from "this unit shipped with
103
+ * fewer pictures" — opposite outcomes for a reader, and the first is the one an operator needs
104
+ * to find.
105
+ */
106
+ TechnicalDocumentationPublicationReason["RESTRICTED_ASSET_REDACTED"] = "RESTRICTED_ASSET_REDACTED";
71
107
  TechnicalDocumentationPublicationReason["SUPERSEDED"] = "SUPERSEDED";
72
108
  })(TechnicalDocumentationPublicationReason || (TechnicalDocumentationPublicationReason = {}));
73
109
  const PortableMarkdownSchema = z
@@ -1 +1 @@
1
- {"version":3,"file":"technical-documentation-units.schemas.js","sourceRoot":"","sources":["../../../../src/technical-documentation/technical-documentation-units.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE5H,OAAO,EAAE,0CAA0C,EAAE,MAAM,0CAA0C,CAAC;AACtG,OAAO,EAAE,gDAAgD,EAAE,MAAM,yDAAyD,CAAC;AAC3H,OAAO,EACL,sCAAsC,EACtC,8CAA8C,GAC/C,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,+CAA+C,EAC/C,iDAAiD,GAClD,MAAM,4CAA4C,CAAC;AAEpD,MAAM,CAAN,IAAY,8BASX;AATD,WAAY,8BAA8B;IACxC,mDAAiB,CAAA;IACjB,qDAAmB,CAAA;IACnB,mDAAiB,CAAA;IACjB,6DAA2B,CAAA;IAC3B,2DAAyB,CAAA;IACzB,yDAAuB,CAAA;IACvB,qDAAmB,CAAA;IACnB,qEAAmC,CAAA;AACrC,CAAC,EATW,8BAA8B,KAA9B,8BAA8B,QASzC;AAED,MAAM,CAAN,IAAY,qCAIX;AAJD,WAAY,qCAAqC;IAC/C,qFAAqF;IACrF,8GAAqE,CAAA;IACrE,0FAAiD,CAAA;AACnD,CAAC,EAJW,qCAAqC,KAArC,qCAAqC,QAIhD;AAED,6FAA6F;AAC7F,MAAM,CAAN,IAAY,oCAMX;AAND,WAAY,oCAAoC;IAC9C,qGAA6D,CAAA;IAC7D,iGAAyD,CAAA;IACzD,yGAAiE,CAAA;IACjE,iGAAyD,CAAA;IACzD,iHAAyE,CAAA;AAC3E,CAAC,EANW,oCAAoC,KAApC,oCAAoC,QAM/C;AAED,MAAM,CAAN,IAAY,0CAEX;AAFD,WAAY,0CAA0C;IACpD,+DA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AK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;KACtG,CAAC;IACF,OAAO,kCAAkC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;AAClE,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema } from \"@wildo-ai/saas-models/meta-workflows\";\n\nimport { TechnicalDocumentationAssetRequestV1Schema } from \"./technical-documentation-assets.schemas\";\nimport { TechnicalDocumentationApiReferenceTargetV1Schema } from \"./technical-documentation-api-reference-targets.schemas\";\nimport {\n canonicalizeTechnicalDocumentationRows,\n technicalDocumentationValuesAreUniqueAndSorted,\n} from \"./technical-documentation-common.schemas\";\nimport {\n TechnicalDocumentationApplicabilityEvidenceAxis,\n TechnicalDocumentationApplicabilityEvidenceStatus,\n} from \"./technical-documentation-evidence.schemas\";\n\nexport enum TechnicalDocumentationUnitKind {\n CHANGE = \"CHANGE\",\n CONCEPT = \"CONCEPT\",\n HOW_TO = \"HOW_TO\",\n ORIENTATION = \"ORIENTATION\",\n QUICKSTART = \"QUICKSTART\",\n REFERENCE = \"REFERENCE\",\n RUNBOOK = \"RUNBOOK\",\n TROUBLESHOOTING = \"TROUBLESHOOTING\",\n}\n\nexport enum TechnicalDocumentationSourceOwnership {\n /** A resolved application configuration projected by the application's companion. */\n APPLICATION_COMPANION_PROJECTION = \"APPLICATION_COMPANION_PROJECTION\",\n ENGINE_GENERIC_CONTENT = \"ENGINE_GENERIC_CONTENT\",\n}\n\n/** Readers of the generated application's documentation, never Wildo application authors. */\nexport enum TechnicalDocumentationReaderAudience {\n APPLICATION_OPERATIONS_STAFF = \"APPLICATION_OPERATIONS_STAFF\",\n CONSUMING_INTERNAL_SERVICE = \"CONSUMING_INTERNAL_SERVICE\",\n EXTERNAL_INTEGRATION_DEVELOPER = \"EXTERNAL_INTEGRATION_DEVELOPER\",\n ORGANIZATION_ADMINISTRATOR = \"ORGANIZATION_ADMINISTRATOR\",\n ORGANIZATION_INTEGRATION_DEVELOPER = \"ORGANIZATION_INTEGRATION_DEVELOPER\",\n}\n\nexport enum TechnicalDocumentationSourceClassification {\n PUBLIC = \"PUBLIC\",\n}\n\nexport enum TechnicalDocumentationChannel {\n PUBLIC_PORTAL = \"PUBLIC_PORTAL\",\n}\n\nexport enum TechnicalDocumentationAccessClass {\n PUBLIC = \"PUBLIC\",\n}\n\nexport enum TechnicalDocumentationEditorialStatus {\n APPROVED = \"APPROVED\",\n DRAFT = \"DRAFT\",\n REVIEW_REQUIRED = \"REVIEW_REQUIRED\",\n}\n\nexport enum TechnicalDocumentationLinkKind {\n API_REFERENCE = \"API_REFERENCE\",\n EXTERNAL = \"EXTERNAL\",\n SOURCE = \"SOURCE\",\n UNIT = \"UNIT\",\n}\n\nexport enum TechnicalDocumentationPublicationDecision {\n INCLUDE = \"INCLUDE\",\n REDACT = \"REDACT\",\n SUPPRESS = \"SUPPRESS\",\n}\n\nexport enum TechnicalDocumentationPublicationReason {\n ACCESS_CLASS_MISMATCH = \"ACCESS_CLASS_MISMATCH\",\n APPLICABILITY_NOT_PROVEN = \"APPLICABILITY_NOT_PROVEN\",\n EDITORIAL_NOT_APPROVED = \"EDITORIAL_NOT_APPROVED\",\n INCLUDED_BY_POLICY = \"INCLUDED_BY_POLICY\",\n RESTRICTED_SOURCE = \"RESTRICTED_SOURCE\",\n SUPERSEDED = \"SUPERSEDED\",\n}\n\n\nconst PortableMarkdownSchema = z\n .string()\n .trim()\n .min(1)\n .superRefine((markdown, context) => {\n if (/^\\s*(?:import|export)\\s/m.test(markdown) || /<\\/?[A-Z][A-Za-z0-9.]*(?:\\s|>|\\/)/.test(markdown)) {\n context.addIssue({ code: \"custom\", message: \"portable Markdown cannot contain executable MDX imports, exports or components\" });\n }\n if (/<\\/?(?:script|iframe|object|embed|style)\\b|\\bon[a-z]+\\s*=|javascript:/i.test(markdown)) {\n context.addIssue({ code: \"custom\", message: \"portable Markdown cannot contain active HTML or script URLs\" });\n }\n });\n\nconst TechnicalDocumentationExternalUrlSchema = z.url().regex(/^https?:\\/\\//, { message: \"external documentation links must use HTTP or HTTPS\" });\n\nexport const TechnicalDocumentationSectionV1Schema = z.strictObject({\n sectionRef: MetaWorkflow_NamespacedRefSchema,\n heading: z.string().trim().min(1),\n bodyMarkdown: PortableMarkdownSchema,\n});\nexport type TechnicalDocumentationSectionV1 = z.infer<typeof TechnicalDocumentationSectionV1Schema>;\n\nexport const TechnicalDocumentationLinkV1Schema = z\n .strictObject({\n linkRef: MetaWorkflow_NamespacedRefSchema,\n kind: z.enum(TechnicalDocumentationLinkKind),\n label: z.string().trim().min(1),\n targetUnitRef: MetaWorkflow_NamespacedRefSchema.nullable(),\n targetRef: MetaWorkflow_NamespacedRefSchema.nullable(),\n externalUrl: TechnicalDocumentationExternalUrlSchema.nullable(),\n apiReferenceTarget: TechnicalDocumentationApiReferenceTargetV1Schema.nullable(),\n })\n .superRefine((link, context) => {\n const populatedTargets = [link.targetUnitRef, link.targetRef, link.externalUrl, link.apiReferenceTarget].filter((value) => value !== null).length;\n if (populatedTargets !== 1) {\n context.addIssue({ code: \"custom\", message: \"a typed link must define exactly one matching target\", path: [\"kind\"] });\n return;\n }\n if (link.kind === TechnicalDocumentationLinkKind.UNIT && link.targetUnitRef === null) {\n context.addIssue({ code: \"custom\", message: \"UNIT links require targetUnitRef\", path: [\"targetUnitRef\"] });\n }\n if (link.kind === TechnicalDocumentationLinkKind.SOURCE && link.targetRef === null) {\n context.addIssue({ code: \"custom\", message: \"SOURCE links require targetRef\", path: [\"targetRef\"] });\n }\n if (link.kind === TechnicalDocumentationLinkKind.EXTERNAL && link.externalUrl === null) {\n context.addIssue({ code: \"custom\", message: \"EXTERNAL links require externalUrl\", path: [\"externalUrl\"] });\n }\n if (link.kind === TechnicalDocumentationLinkKind.API_REFERENCE && link.apiReferenceTarget === null) {\n context.addIssue({ code: \"custom\", message: \"API_REFERENCE links require apiReferenceTarget\", path: [\"apiReferenceTarget\"] });\n }\n });\nexport type TechnicalDocumentationLinkV1 = z.infer<typeof TechnicalDocumentationLinkV1Schema>;\n\nexport const TechnicalDocumentationSourceProvenanceV1Schema = z.strictObject({\n sourceRef: MetaWorkflow_NamespacedRefSchema,\n ownership: z.enum(TechnicalDocumentationSourceOwnership),\n classification: z.enum(TechnicalDocumentationSourceClassification),\n /**\n * The version of the source this unit was derived from. Two units citing one `sourceRef` at\n * different versions disagree about their input and are refused at bundle assembly; two citing\n * the same version agree. That is the whole question the retired `sourceSemanticDigest` answered,\n * and this form survives a merge.\n */\n sourceVersion: MetaWorkflow_PositiveVersionSchema,\n sourceAnchorRef: MetaWorkflow_NamespacedRefSchema.nullable(),\n});\nexport type TechnicalDocumentationSourceProvenanceV1 = z.infer<typeof TechnicalDocumentationSourceProvenanceV1Schema>;\n\nexport const TechnicalDocumentationApplicabilityRequirementV1Schema = z\n .strictObject({\n axis: z.enum(TechnicalDocumentationApplicabilityEvidenceAxis),\n subjectRef: MetaWorkflow_NamespacedRefSchema,\n acceptableStatuses: z.array(z.enum(TechnicalDocumentationApplicabilityEvidenceStatus)).min(1),\n })\n .superRefine((requirement, context) => {\n if (!technicalDocumentationValuesAreUniqueAndSorted(requirement.acceptableStatuses)) {\n context.addIssue({ code: \"custom\", message: \"acceptableStatuses must be unique and sorted\", path: [\"acceptableStatuses\"] });\n }\n });\nexport type TechnicalDocumentationApplicabilityRequirementV1 = z.infer<typeof TechnicalDocumentationApplicabilityRequirementV1Schema>;\n\nexport const TechnicalDocumentationUnitV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n unitRef: MetaWorkflow_NamespacedRefSchema,\n unitVersion: MetaWorkflow_PositiveVersionSchema,\n kind: z.enum(TechnicalDocumentationUnitKind),\n readerAudiences: z.array(z.enum(TechnicalDocumentationReaderAudience)).min(1),\n title: z.string().trim().min(1),\n summary: z.string().trim().min(1),\n sections: z.array(TechnicalDocumentationSectionV1Schema).min(1),\n links: z.array(TechnicalDocumentationLinkV1Schema),\n provenance: z.array(TechnicalDocumentationSourceProvenanceV1Schema).min(1),\n applicabilityRequirements: z.array(TechnicalDocumentationApplicabilityRequirementV1Schema),\n accessClass: z.enum(TechnicalDocumentationAccessClass),\n editorialStatus: z.enum(TechnicalDocumentationEditorialStatus),\n assetRequests: z.array(TechnicalDocumentationAssetRequestV1Schema),\n })\n .superRefine((unit, context) => {\n const sectionRefs = unit.sections.map((section) => section.sectionRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(unit.readerAudiences)) {\n context.addIssue({ code: \"custom\", message: \"readerAudiences must be unique and sorted\", path: [\"readerAudiences\"] });\n }\n if (new Set(sectionRefs).size !== sectionRefs.length) {\n context.addIssue({ code: \"custom\", message: \"section refs must be unique while retaining authored order\", path: [\"sections\"] });\n }\n const linkRefs = unit.links.map((link) => link.linkRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(linkRefs)) {\n context.addIssue({ code: \"custom\", message: \"links must be unique and sorted by linkRef\", path: [\"links\"] });\n }\n const sourceRefs = unit.provenance.map((source) => source.sourceRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(sourceRefs)) {\n context.addIssue({ code: \"custom\", message: \"provenance must be unique and sorted by sourceRef\", path: [\"provenance\"] });\n }\n const requirementKeys = unit.applicabilityRequirements.map((requirement) => `${requirement.axis}\\0${requirement.subjectRef}`);\n if (!technicalDocumentationValuesAreUniqueAndSorted(requirementKeys)) {\n context.addIssue({ code: \"custom\", message: \"applicability requirements must be unique and sorted\", path: [\"applicabilityRequirements\"] });\n }\n const assetRefs = unit.assetRequests.map((asset) => asset.assetRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(assetRefs)) {\n context.addIssue({ code: \"custom\", message: \"asset requests must be unique and sorted by assetRef\", path: [\"assetRequests\"] });\n }\n });\nexport type TechnicalDocumentationUnitV1 = z.infer<typeof TechnicalDocumentationUnitV1Schema>;\n\nexport function createTechnicalDocumentationUnitV1(input: TechnicalDocumentationUnitV1): TechnicalDocumentationUnitV1 {\n const canonicalInput: TechnicalDocumentationUnitV1 = {\n ...input,\n readerAudiences: [...new Set(input.readerAudiences)].sort(),\n links: canonicalizeTechnicalDocumentationRows(input.links, (link) => link.linkRef),\n provenance: canonicalizeTechnicalDocumentationRows(input.provenance, (source) => source.sourceRef),\n applicabilityRequirements: canonicalizeTechnicalDocumentationRows(\n input.applicabilityRequirements.map((requirement) => ({\n ...requirement,\n acceptableStatuses: [...new Set(requirement.acceptableStatuses)].sort(),\n })),\n (requirement) => `${requirement.axis}\\0${requirement.subjectRef}`,\n ),\n assetRequests: canonicalizeTechnicalDocumentationRows(input.assetRequests, (asset) => asset.assetRef),\n };\n return TechnicalDocumentationUnitV1Schema.parse(canonicalInput);\n}\n"]}
1
+ {"version":3,"file":"technical-documentation-units.schemas.js","sourceRoot":"","sources":["../../../../src/technical-documentation/technical-documentation-units.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE5H,OAAO,EAAE,0CAA0C,EAAE,MAAM,0CAA0C,CAAC;AACtG,OAAO,EAAE,gDAAgD,EAAE,MAAM,yDAAyD,CAAC;AAC3H,OAAO,EACL,sCAAsC,EACtC,8CAA8C,GAC/C,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,+CAA+C,EAC/C,iDAAiD,GAClD,MAAM,4CAA4C,CAAC;AAEpD,MAAM,CAAN,IAAY,8BASX;AATD,WAAY,8BAA8B;IACxC,mDAAiB,CAAA;IACjB,qDAAmB,CAAA;IACnB,mDAAiB,CAAA;IACjB,6DAA2B,CAAA;IAC3B,2DAAyB,CAAA;IACzB,yDAAuB,CAAA;IACvB,qDAAmB,CAAA;IACnB,qEAAmC,CAAA;AACrC,CAAC,EATW,8BAA8B,KAA9B,8BAA8B,QASzC;AAED,MAAM,CAAN,IAAY,qCAIX;AAJD,WAAY,qCAAqC;IAC/C,qFAAqF;IACrF,8G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E,sCAAsC,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC;QAClG,yBAAyB,EAAE,sCAAsC,CAC/D,KAAK,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;YACpD,GAAG,WAAW;YACd,kBAAkB,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,EAAE;SACxE,CAAC,CAAC,EACH,CAAC,WAAW,EAAE,EAAE,CAAC,GAAG,WAAW,CAAC,IAAI,KAAK,WAAW,CAAC,UAAU,EAAE,CAClE;QACD,aAAa,EAAE,sCAAsC,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;KACtG,CAAC;IACF,OAAO,kCAAkC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;AAClE,CAAC","sourcesContent":["import { z } from \"zod\";\n\nimport { MetaWorkflow_NamespacedRefSchema, MetaWorkflow_PositiveVersionSchema } from \"@wildo-ai/saas-models/meta-workflows\";\n\nimport { TechnicalDocumentationAssetRequestV1Schema } from \"./technical-documentation-assets.schemas\";\nimport { TechnicalDocumentationApiReferenceTargetV1Schema } from \"./technical-documentation-api-reference-targets.schemas\";\nimport {\n canonicalizeTechnicalDocumentationRows,\n technicalDocumentationValuesAreUniqueAndSorted,\n} from \"./technical-documentation-common.schemas\";\nimport {\n TechnicalDocumentationApplicabilityEvidenceAxis,\n TechnicalDocumentationApplicabilityEvidenceStatus,\n} from \"./technical-documentation-evidence.schemas\";\n\nexport enum TechnicalDocumentationUnitKind {\n CHANGE = \"CHANGE\",\n CONCEPT = \"CONCEPT\",\n HOW_TO = \"HOW_TO\",\n ORIENTATION = \"ORIENTATION\",\n QUICKSTART = \"QUICKSTART\",\n REFERENCE = \"REFERENCE\",\n RUNBOOK = \"RUNBOOK\",\n TROUBLESHOOTING = \"TROUBLESHOOTING\",\n}\n\nexport enum TechnicalDocumentationSourceOwnership {\n /** A resolved application configuration projected by the application's companion. */\n APPLICATION_COMPANION_PROJECTION = \"APPLICATION_COMPANION_PROJECTION\",\n ENGINE_GENERIC_CONTENT = \"ENGINE_GENERIC_CONTENT\",\n}\n\n/** Readers of the generated application's documentation, never Wildo application authors. */\nexport enum TechnicalDocumentationReaderAudience {\n APPLICATION_OPERATIONS_STAFF = \"APPLICATION_OPERATIONS_STAFF\",\n CONSUMING_INTERNAL_SERVICE = \"CONSUMING_INTERNAL_SERVICE\",\n EXTERNAL_INTEGRATION_DEVELOPER = \"EXTERNAL_INTEGRATION_DEVELOPER\",\n ORGANIZATION_ADMINISTRATOR = \"ORGANIZATION_ADMINISTRATOR\",\n ORGANIZATION_INTEGRATION_DEVELOPER = \"ORGANIZATION_INTEGRATION_DEVELOPER\",\n}\n\n/**\n * How far a piece of PROVENANCE may travel — the classification of the SOURCE a unit was derived\n * from, not of the unit itself (that is {@link TechnicalDocumentationAccessClass}).\n *\n * A unit whose provenance carries anything but `PUBLIC` is suppressed from the public portal, and\n * the public-bundle validator refuses one that slipped through. Both halves existed before\n * `RESTRICTED` did: the vocabulary had a single member, so no unit could carry a restricted source\n * and the suppression path had no producer at all (#474).\n */\nexport enum TechnicalDocumentationSourceClassification {\n /** Derived from something the framework already publishes; safe to attribute in a public portal. */\n PUBLIC = \"PUBLIC\",\n /**\n * Derived from a source the public portal must not attribute or expose — an internal design note,\n * a private specification, an operational record. The unit is suppressed rather than redacted:\n * provenance is not a field that can be trimmed and leave the unit honest, because a reader who\n * cannot see where a statement came from cannot check it.\n */\n RESTRICTED = \"RESTRICTED\",\n}\n\nexport enum TechnicalDocumentationChannel {\n PUBLIC_PORTAL = \"PUBLIC_PORTAL\",\n}\n\nexport enum TechnicalDocumentationAccessClass {\n PUBLIC = \"PUBLIC\",\n}\n\nexport enum TechnicalDocumentationEditorialStatus {\n APPROVED = \"APPROVED\",\n DRAFT = \"DRAFT\",\n REVIEW_REQUIRED = \"REVIEW_REQUIRED\",\n}\n\nexport enum TechnicalDocumentationLinkKind {\n API_REFERENCE = \"API_REFERENCE\",\n EXTERNAL = \"EXTERNAL\",\n SOURCE = \"SOURCE\",\n UNIT = \"UNIT\",\n}\n\nexport enum TechnicalDocumentationPublicationDecision {\n INCLUDE = \"INCLUDE\",\n REDACT = \"REDACT\",\n SUPPRESS = \"SUPPRESS\",\n}\n\n/**\n * Why the publication policy decided what it did about one unit. This is the decision RECORD an\n * operator reads, so two different decisions must never share a reason — see `RESTRICTED_SOURCE`\n * and `RESTRICTED_ASSET_REDACTED` below, which did until 2026-09-08 (#474).\n */\nexport enum TechnicalDocumentationPublicationReason {\n ACCESS_CLASS_MISMATCH = \"ACCESS_CLASS_MISMATCH\",\n APPLICABILITY_NOT_PROVEN = \"APPLICABILITY_NOT_PROVEN\",\n EDITORIAL_NOT_APPROVED = \"EDITORIAL_NOT_APPROVED\",\n INCLUDED_BY_POLICY = \"INCLUDED_BY_POLICY\",\n /**\n * The WHOLE unit was suppressed: its provenance names a non-`PUBLIC` source, so nothing about it\n * may be published.\n */\n RESTRICTED_SOURCE = \"RESTRICTED_SOURCE\",\n /**\n * The unit was PUBLISHED with one or more asset requests dropped, because their access class is\n * not `PUBLIC`. The reader gets the unit; they do not get those assets.\n *\n * Distinct from `RESTRICTED_SOURCE` deliberately. Both used to emit `RESTRICTED_SOURCE`, so a\n * decision record could not distinguish \"this unit was withheld\" from \"this unit shipped with\n * fewer pictures\" — opposite outcomes for a reader, and the first is the one an operator needs\n * to find.\n */\n RESTRICTED_ASSET_REDACTED = \"RESTRICTED_ASSET_REDACTED\",\n SUPERSEDED = \"SUPERSEDED\",\n}\n\n\nconst PortableMarkdownSchema = z\n .string()\n .trim()\n .min(1)\n .superRefine((markdown, context) => {\n if (/^\\s*(?:import|export)\\s/m.test(markdown) || /<\\/?[A-Z][A-Za-z0-9.]*(?:\\s|>|\\/)/.test(markdown)) {\n context.addIssue({ code: \"custom\", message: \"portable Markdown cannot contain executable MDX imports, exports or components\" });\n }\n if (/<\\/?(?:script|iframe|object|embed|style)\\b|\\bon[a-z]+\\s*=|javascript:/i.test(markdown)) {\n context.addIssue({ code: \"custom\", message: \"portable Markdown cannot contain active HTML or script URLs\" });\n }\n });\n\nconst TechnicalDocumentationExternalUrlSchema = z.url().regex(/^https?:\\/\\//, { message: \"external documentation links must use HTTP or HTTPS\" });\n\nexport const TechnicalDocumentationSectionV1Schema = z.strictObject({\n sectionRef: MetaWorkflow_NamespacedRefSchema,\n heading: z.string().trim().min(1),\n bodyMarkdown: PortableMarkdownSchema,\n});\nexport type TechnicalDocumentationSectionV1 = z.infer<typeof TechnicalDocumentationSectionV1Schema>;\n\nexport const TechnicalDocumentationLinkV1Schema = z\n .strictObject({\n linkRef: MetaWorkflow_NamespacedRefSchema,\n kind: z.enum(TechnicalDocumentationLinkKind),\n label: z.string().trim().min(1),\n targetUnitRef: MetaWorkflow_NamespacedRefSchema.nullable(),\n targetRef: MetaWorkflow_NamespacedRefSchema.nullable(),\n externalUrl: TechnicalDocumentationExternalUrlSchema.nullable(),\n apiReferenceTarget: TechnicalDocumentationApiReferenceTargetV1Schema.nullable(),\n })\n .superRefine((link, context) => {\n const populatedTargets = [link.targetUnitRef, link.targetRef, link.externalUrl, link.apiReferenceTarget].filter((value) => value !== null).length;\n if (populatedTargets !== 1) {\n context.addIssue({ code: \"custom\", message: \"a typed link must define exactly one matching target\", path: [\"kind\"] });\n return;\n }\n if (link.kind === TechnicalDocumentationLinkKind.UNIT && link.targetUnitRef === null) {\n context.addIssue({ code: \"custom\", message: \"UNIT links require targetUnitRef\", path: [\"targetUnitRef\"] });\n }\n if (link.kind === TechnicalDocumentationLinkKind.SOURCE && link.targetRef === null) {\n context.addIssue({ code: \"custom\", message: \"SOURCE links require targetRef\", path: [\"targetRef\"] });\n }\n if (link.kind === TechnicalDocumentationLinkKind.EXTERNAL && link.externalUrl === null) {\n context.addIssue({ code: \"custom\", message: \"EXTERNAL links require externalUrl\", path: [\"externalUrl\"] });\n }\n if (link.kind === TechnicalDocumentationLinkKind.API_REFERENCE && link.apiReferenceTarget === null) {\n context.addIssue({ code: \"custom\", message: \"API_REFERENCE links require apiReferenceTarget\", path: [\"apiReferenceTarget\"] });\n }\n });\nexport type TechnicalDocumentationLinkV1 = z.infer<typeof TechnicalDocumentationLinkV1Schema>;\n\nexport const TechnicalDocumentationSourceProvenanceV1Schema = z.strictObject({\n sourceRef: MetaWorkflow_NamespacedRefSchema,\n ownership: z.enum(TechnicalDocumentationSourceOwnership),\n classification: z.enum(TechnicalDocumentationSourceClassification),\n /**\n * The version of the source this unit was derived from. Two units citing one `sourceRef` at\n * different versions disagree about their input and are refused at bundle assembly; two citing\n * the same version agree. That is the whole question the retired `sourceSemanticDigest` answered,\n * and this form survives a merge.\n */\n sourceVersion: MetaWorkflow_PositiveVersionSchema,\n sourceAnchorRef: MetaWorkflow_NamespacedRefSchema.nullable(),\n});\nexport type TechnicalDocumentationSourceProvenanceV1 = z.infer<typeof TechnicalDocumentationSourceProvenanceV1Schema>;\n\nexport const TechnicalDocumentationApplicabilityRequirementV1Schema = z\n .strictObject({\n axis: z.enum(TechnicalDocumentationApplicabilityEvidenceAxis),\n subjectRef: MetaWorkflow_NamespacedRefSchema,\n acceptableStatuses: z.array(z.enum(TechnicalDocumentationApplicabilityEvidenceStatus)).min(1),\n })\n .superRefine((requirement, context) => {\n if (!technicalDocumentationValuesAreUniqueAndSorted(requirement.acceptableStatuses)) {\n context.addIssue({ code: \"custom\", message: \"acceptableStatuses must be unique and sorted\", path: [\"acceptableStatuses\"] });\n }\n });\nexport type TechnicalDocumentationApplicabilityRequirementV1 = z.infer<typeof TechnicalDocumentationApplicabilityRequirementV1Schema>;\n\nexport const TechnicalDocumentationUnitV1Schema = z\n .strictObject({\n schemaVersion: z.literal(1),\n unitRef: MetaWorkflow_NamespacedRefSchema,\n unitVersion: MetaWorkflow_PositiveVersionSchema,\n kind: z.enum(TechnicalDocumentationUnitKind),\n readerAudiences: z.array(z.enum(TechnicalDocumentationReaderAudience)).min(1),\n title: z.string().trim().min(1),\n summary: z.string().trim().min(1),\n sections: z.array(TechnicalDocumentationSectionV1Schema).min(1),\n links: z.array(TechnicalDocumentationLinkV1Schema),\n provenance: z.array(TechnicalDocumentationSourceProvenanceV1Schema).min(1),\n applicabilityRequirements: z.array(TechnicalDocumentationApplicabilityRequirementV1Schema),\n accessClass: z.enum(TechnicalDocumentationAccessClass),\n editorialStatus: z.enum(TechnicalDocumentationEditorialStatus),\n assetRequests: z.array(TechnicalDocumentationAssetRequestV1Schema),\n })\n .superRefine((unit, context) => {\n const sectionRefs = unit.sections.map((section) => section.sectionRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(unit.readerAudiences)) {\n context.addIssue({ code: \"custom\", message: \"readerAudiences must be unique and sorted\", path: [\"readerAudiences\"] });\n }\n if (new Set(sectionRefs).size !== sectionRefs.length) {\n context.addIssue({ code: \"custom\", message: \"section refs must be unique while retaining authored order\", path: [\"sections\"] });\n }\n const linkRefs = unit.links.map((link) => link.linkRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(linkRefs)) {\n context.addIssue({ code: \"custom\", message: \"links must be unique and sorted by linkRef\", path: [\"links\"] });\n }\n const sourceRefs = unit.provenance.map((source) => source.sourceRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(sourceRefs)) {\n context.addIssue({ code: \"custom\", message: \"provenance must be unique and sorted by sourceRef\", path: [\"provenance\"] });\n }\n const requirementKeys = unit.applicabilityRequirements.map((requirement) => `${requirement.axis}\\0${requirement.subjectRef}`);\n if (!technicalDocumentationValuesAreUniqueAndSorted(requirementKeys)) {\n context.addIssue({ code: \"custom\", message: \"applicability requirements must be unique and sorted\", path: [\"applicabilityRequirements\"] });\n }\n const assetRefs = unit.assetRequests.map((asset) => asset.assetRef);\n if (!technicalDocumentationValuesAreUniqueAndSorted(assetRefs)) {\n context.addIssue({ code: \"custom\", message: \"asset requests must be unique and sorted by assetRef\", path: [\"assetRequests\"] });\n }\n });\nexport type TechnicalDocumentationUnitV1 = z.infer<typeof TechnicalDocumentationUnitV1Schema>;\n\nexport function createTechnicalDocumentationUnitV1(input: TechnicalDocumentationUnitV1): TechnicalDocumentationUnitV1 {\n const canonicalInput: TechnicalDocumentationUnitV1 = {\n ...input,\n readerAudiences: [...new Set(input.readerAudiences)].sort(),\n links: canonicalizeTechnicalDocumentationRows(input.links, (link) => link.linkRef),\n provenance: canonicalizeTechnicalDocumentationRows(input.provenance, (source) => source.sourceRef),\n applicabilityRequirements: canonicalizeTechnicalDocumentationRows(\n input.applicabilityRequirements.map((requirement) => ({\n ...requirement,\n acceptableStatuses: [...new Set(requirement.acceptableStatuses)].sort(),\n })),\n (requirement) => `${requirement.axis}\\0${requirement.subjectRef}`,\n ),\n assetRequests: canonicalizeTechnicalDocumentationRows(input.assetRequests, (asset) => asset.assetRef),\n };\n return TechnicalDocumentationUnitV1Schema.parse(canonicalInput);\n}\n"]}