@wildo-ai/saas-specifications 1.1.0 → 1.1.2

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 (423) hide show
  1. package/dist/assurance/external-framework-mapping.json +980 -0
  2. package/dist/esm/_core/brand/brand.family-aspects.d.ts +3 -0
  3. package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -0
  4. package/dist/esm/_core/brand/brand.family-aspects.js +51 -0
  5. package/dist/esm/_core/brand/brand.family-aspects.js.map +1 -0
  6. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts +3 -0
  7. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -0
  8. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +28 -0
  9. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -0
  10. package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts +3 -0
  11. package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -0
  12. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js +21 -0
  13. package/dist/esm/_core/business-model-lite/business-model.family-aspects.js.map +1 -0
  14. package/dist/esm/_core/chart-view-specification.schemas.d.ts +11 -0
  15. package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
  16. package/dist/esm/_core/chart-view-specification.schemas.js.map +1 -1
  17. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +85 -0
  18. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
  19. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +41 -0
  20. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
  21. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +168 -2
  22. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  23. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +98 -9
  24. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  25. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts +12 -0
  26. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -0
  27. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js +47 -0
  28. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.js.map +1 -0
  29. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
  30. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js +8 -3
  31. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.js.map +1 -1
  32. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts +21 -0
  33. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -0
  34. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js +40 -0
  35. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.js.map +1 -0
  36. package/dist/esm/_core/composite-view-specification.schemas.d.ts +11 -0
  37. package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
  38. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  39. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -0
  40. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -0
  41. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +32 -0
  42. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -0
  43. package/dist/esm/_core/execution-view-specification.schemas.d.ts +11 -0
  44. package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
  45. package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
  46. package/dist/esm/_core/family-aspects.registry.d.ts +18 -0
  47. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -0
  48. package/dist/esm/_core/family-aspects.registry.js +60 -0
  49. package/dist/esm/_core/family-aspects.registry.js.map +1 -0
  50. package/dist/esm/_core/family-aspects.schemas.d.ts +122 -0
  51. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -0
  52. package/dist/esm/_core/family-aspects.schemas.js +15 -0
  53. package/dist/esm/_core/family-aspects.schemas.js.map +1 -0
  54. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +11 -11
  55. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts +3 -0
  56. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -0
  57. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js +25 -0
  58. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -0
  59. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts +11 -0
  60. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
  61. package/dist/esm/_core/flows-actors-view-specification.schemas.js.map +1 -1
  62. package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
  63. package/dist/esm/_core/frontend-component-specification.schemas.js +19 -1
  64. package/dist/esm/_core/frontend-component-specification.schemas.js.map +1 -1
  65. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts +11 -0
  66. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
  67. package/dist/esm/_core/full-custom-view-specification.schemas.js.map +1 -1
  68. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts +11 -0
  69. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
  70. package/dist/esm/_core/guidance-flow-specification.schemas.js +14 -0
  71. package/dist/esm/_core/guidance-flow-specification.schemas.js.map +1 -1
  72. package/dist/esm/_core/index.d.ts +2 -0
  73. package/dist/esm/_core/index.d.ts.map +1 -1
  74. package/dist/esm/_core/index.js +2 -0
  75. package/dist/esm/_core/index.js.map +1 -1
  76. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +22 -22
  77. package/dist/esm/_core/market/market.family-aspects.d.ts +9 -0
  78. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -0
  79. package/dist/esm/_core/market/market.family-aspects.js +227 -0
  80. package/dist/esm/_core/market/market.family-aspects.js.map +1 -0
  81. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts +11 -0
  82. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
  83. package/dist/esm/_core/onboarding-view-specification.schemas.js +14 -0
  84. package/dist/esm/_core/onboarding-view-specification.schemas.js.map +1 -1
  85. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts +3 -0
  86. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -0
  87. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js +31 -0
  88. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.js.map +1 -0
  89. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts +9 -0
  90. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -0
  91. package/dist/esm/_core/requirements/requirements.family-aspects.js +40 -0
  92. package/dist/esm/_core/requirements/requirements.family-aspects.js.map +1 -0
  93. package/dist/esm/_core/resource-specification.schemas.d.ts +22 -0
  94. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  95. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  96. package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts +3 -0
  97. package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -0
  98. package/dist/esm/_core/roadmap/roadmap.family-aspects.js +26 -0
  99. package/dist/esm/_core/roadmap/roadmap.family-aspects.js.map +1 -0
  100. package/dist/esm/_core/vision/vision.family-aspects.d.ts +11 -0
  101. package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -0
  102. package/dist/esm/_core/vision/vision.family-aspects.js +63 -0
  103. package/dist/esm/_core/vision/vision.family-aspects.js.map +1 -0
  104. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +188 -33
  105. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  106. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +158 -57
  107. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  108. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +38 -4
  109. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
  110. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +37 -3
  111. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
  112. package/dist/esm/application-creation/document-facts.family-aspects.d.ts +12 -0
  113. package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -0
  114. package/dist/esm/application-creation/document-facts.family-aspects.js +37 -0
  115. package/dist/esm/application-creation/document-facts.family-aspects.js.map +1 -0
  116. package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts +3 -0
  117. package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -0
  118. package/dist/esm/application-creation/document-release-policy.family-aspects.js +23 -0
  119. package/dist/esm/application-creation/document-release-policy.family-aspects.js.map +1 -0
  120. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +93 -62
  121. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  122. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +114 -59
  123. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  124. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +2 -0
  125. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  126. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +2 -0
  127. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
  128. package/dist/esm/application-creation.exports.d.ts +11 -0
  129. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  130. package/dist/esm/application-creation.exports.js +11 -0
  131. package/dist/esm/application-creation.exports.js.map +1 -1
  132. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +976 -2
  133. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  134. package/dist/esm/assurance/assurance-authority-basis.definitions.js +2026 -61
  135. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  136. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +1 -0
  137. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  138. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  139. package/dist/esm/assurance/assurance-document-system.definitions.js +18 -3
  140. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  141. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +32 -2
  142. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  143. package/dist/esm/assurance/assurance-document-system.schemas.js +32 -2
  144. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  145. package/dist/esm/assurance/assurance-external-framework-mapping.d.ts +90 -0
  146. package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -0
  147. package/dist/esm/assurance/assurance-external-framework-mapping.js +134 -0
  148. package/dist/esm/assurance/assurance-external-framework-mapping.js.map +1 -0
  149. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +71 -1
  150. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  151. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +545 -5
  152. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  153. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +141 -0
  154. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -0
  155. package/dist/esm/assurance/assurance-program-generation.schemas.js +377 -0
  156. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -0
  157. package/dist/esm/assurance/assurance-program.family-aspects.d.ts +13 -0
  158. package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -0
  159. package/dist/esm/assurance/assurance-program.family-aspects.js +16 -0
  160. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -0
  161. package/dist/esm/assurance/assurance-program.schemas.d.ts +30 -6
  162. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  163. package/dist/esm/assurance/assurance-program.schemas.js +29 -6
  164. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  165. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts +1 -0
  166. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  167. package/dist/esm/assurance/assurance-source-registry.definitions.js +12 -0
  168. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  169. package/dist/esm/assurance/assurance-sources.schemas.d.ts +76 -0
  170. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  171. package/dist/esm/assurance/assurance-sources.schemas.js +59 -0
  172. package/dist/esm/assurance/assurance-sources.schemas.js.map +1 -1
  173. package/dist/esm/assurance/document-publication.family-aspects.d.ts +29 -0
  174. package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -0
  175. package/dist/esm/assurance/document-publication.family-aspects.js +48 -0
  176. package/dist/esm/assurance/document-publication.family-aspects.js.map +1 -0
  177. package/dist/esm/assurance.exports.d.ts +2 -0
  178. package/dist/esm/assurance.exports.d.ts.map +1 -1
  179. package/dist/esm/assurance.exports.js +2 -0
  180. package/dist/esm/assurance.exports.js.map +1 -1
  181. package/dist/esm/companion-exports.d.ts +19 -2
  182. package/dist/esm/companion-exports.d.ts.map +1 -1
  183. package/dist/esm/companion-exports.js.map +1 -1
  184. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  185. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +2 -0
  186. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  187. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  188. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +3 -1
  189. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  190. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  191. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +3 -1
  192. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  193. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
  194. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +3 -1
  195. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  196. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  197. package/dist/esm/engine/applications/resources/applications.resource.specification.js +3 -1
  198. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  199. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts +36 -0
  200. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -0
  201. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +193 -0
  202. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -0
  203. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts +1 -1
  204. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  205. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +2 -0
  206. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  207. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  208. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +2 -0
  209. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  210. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  211. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +3 -1
  212. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  213. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts +1 -1
  214. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  215. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +2 -0
  216. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  217. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  218. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +2 -0
  219. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  220. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  221. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +2 -0
  222. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  223. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  224. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +2 -0
  225. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  226. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  227. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +6 -4
  228. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  229. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  230. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +2 -0
  231. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  232. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  233. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +2 -0
  234. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  235. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts +2 -2
  236. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  237. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +2 -0
  238. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  239. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +8 -8
  240. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
  241. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +2 -0
  242. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  243. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts +2 -2
  244. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  245. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +2 -0
  246. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  247. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  248. package/dist/esm/engine/billing/resources/prices.resource.specification.js +3 -1
  249. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  250. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  251. package/dist/esm/engine/billing/resources/products.resource.specification.js +3 -1
  252. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  253. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  254. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +2 -0
  255. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  256. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  257. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +3 -1
  258. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  259. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +6 -6
  260. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  261. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +2 -0
  262. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  263. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +6 -6
  264. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  265. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +2 -0
  266. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  267. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  268. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +2 -0
  269. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  270. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  271. package/dist/esm/engine/engine-resource-specifications.registry.js +5 -0
  272. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  273. package/dist/esm/engine/engine-resource-sub-domain.d.ts +63 -0
  274. package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -0
  275. package/dist/esm/engine/engine-resource-sub-domain.js +87 -0
  276. package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -0
  277. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  278. package/dist/esm/engine/errors/error-messages.specification.js +30 -1
  279. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  280. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  281. package/dist/esm/engine/features/resources/application-features.resource.specification.js +2 -0
  282. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  283. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  284. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +2 -0
  285. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  286. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +1 -1
  287. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
  288. package/dist/esm/engine/features/resources/user-features.resource.specification.js +2 -0
  289. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  290. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  291. package/dist/esm/engine/files/resources/files.resource.specification.js +2 -0
  292. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  293. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts +3 -3
  294. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  295. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +12 -0
  296. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  297. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts +3 -3
  298. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
  299. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +2 -0
  300. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  301. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +3 -3
  302. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  303. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +2 -0
  304. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  305. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts +3 -3
  306. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  307. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +3 -1
  308. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  309. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  310. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js +8 -3
  311. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.js.map +1 -1
  312. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts +1 -1
  313. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
  314. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +3 -0
  315. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  316. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts +1 -1
  317. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  318. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +3 -0
  319. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  320. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +1 -1
  321. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  322. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +3 -0
  323. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  324. package/dist/esm/engine/index.d.ts +1 -0
  325. package/dist/esm/engine/index.d.ts.map +1 -1
  326. package/dist/esm/engine/index.js +1 -0
  327. package/dist/esm/engine/index.js.map +1 -1
  328. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  329. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +2 -0
  330. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  331. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  332. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +2 -0
  333. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  334. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  335. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +2 -0
  336. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  337. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
  338. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +2 -0
  339. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  340. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  341. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +2 -0
  342. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  343. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts +1 -1
  344. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  345. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +3 -0
  346. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  347. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  348. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +2 -0
  349. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  350. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +1 -1
  351. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  352. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +2 -0
  353. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  354. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
  355. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +2 -0
  356. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  357. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
  358. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +2 -0
  359. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  360. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  361. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +2 -0
  362. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  363. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  364. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +2 -0
  365. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  366. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  367. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +2 -0
  368. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  369. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  370. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +2 -0
  371. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  372. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  373. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -0
  374. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  375. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +1 -1
  376. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
  377. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +2 -0
  378. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  379. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts +1 -1
  380. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
  381. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -0
  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.d.ts +1 -1
  384. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  385. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +2 -0
  386. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  387. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +1 -1
  388. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  389. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +2 -0
  390. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  391. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts +1 -1
  392. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
  393. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +2 -0
  394. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  395. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +1 -1
  396. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  397. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +2 -0
  398. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  399. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts +1 -1
  400. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
  401. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +2 -0
  402. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  403. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  404. package/dist/esm/engine/users/resources/user-self.resource.specification.js +3 -1
  405. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  406. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  407. package/dist/esm/engine/users/resources/users.resource.specification.js +2 -0
  408. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  409. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts +5 -0
  410. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  411. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +385 -9
  412. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  413. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +1 -1
  414. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
  415. package/dist/tsconfig.build.tsbuildinfo +1 -0
  416. package/package.json +8 -8
  417. package/dist/esm/.builder.pid +0 -9
  418. package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts +0 -0
  419. package/dist/esm/_core/business-coverage/coverage-findings-validation.d.ts.map +0 -0
  420. package/dist/esm/_core/business-coverage/coverage-findings-validation.js.map +0 -0
  421. package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts +0 -0
  422. package/dist/esm/_core/business-coverage/coverage-findings.schemas.d.ts.map +0 -0
  423. package/dist/esm/_core/business-coverage/coverage-findings.schemas.js.map +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-publication.family-aspects.js","sourceRoot":"","sources":["../../../../src/assurance/document-publication.family-aspects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+CAA+C,EAAE,MAAM,gGAAgG,CAAC;AAEjK,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,yCAAyC,EAAE,MAAM,4CAA4C,CAAC;AAEvG;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,MAAM,CAAC,MAAM,mCAAmC,GAA6B;IAC3E,SAAS,EAAE,+CAA+C,CAAC,8CAA8C;IACzG,OAAO,EAAE;QACP;YACE,GAAG,EAAE,8BAA8B;YACnC,YAAY,EAAE,UAAU;YACxB,IAAI,EAAE,gBAAgB,CAAC,UAAU;YACjC,UAAU,EAAE,yCAAyC;YACrD,wFAAwF;YACxF,mDAAmD;YACnD,aAAa,EAAE,QAAQ;YACvB,KAAK,EAAE,EAAE;YACT,gBAAgB,EAAE;gBAChB,gBAAgB,EAAE,8BAA8B;aACjD;SACF;KACF;CACF,CAAC","sourcesContent":["import { ApplicationSpecificationFamilySemanticSchemaRef } from '../application-creation/application-specification-family-identity.application-creation.schemas';\nimport type { FamilyAspectsDeclaration } from '../_core/family-aspects.schemas';\nimport { FamilyAspectKind } from '../_core/family-aspects.schemas';\nimport { AssuranceDocumentPublicationVariantSchema } from './application-document-publication.schemas';\n\n/**\n * entrypoint-closure-waiver: MEASURED SAFE by the root-only probe the rule prescribes, not argued.\n *\n * `application-document-publication.schemas` is published only by the `assurance` subpath, and this\n * file sits in the ROOT's closure (root → `application-creation.exports` → `_core/family-aspects.registry`\n * → here). Rule 7 reports that shape because a root-exported contract referencing a NOMINAL type from\n * a subpath-only module cannot be named by a consumer that imports only the root.\n *\n * The probe: a consumer resolving ONLY `@wildo-ai/saas-specifications`, deriving from\n * `FAMILY_ASPECTS_REGISTRY` and `getFamilyAspectByKey(...)`, compiled with `declaration: true`. It\n * emitted, with no error:\n *\n * registry: readonly import(\"@wildo-ai/saas-specifications\").FamilyAspectsDeclaration[]\n * oneAspect: import(\"@wildo-ai/saas-specifications\").FamilyAspectDeclaration | undefined\n * itsKind: import(\"@wildo-ai/saas-specifications\").FamilyAspectKind | undefined\n * itsSchema: import(\"zod\").ZodType<...> | undefined\n *\n * Every name resolves through a PUBLIC specifier — including `FamilyAspectKind`, which is a nominal\n * enum and therefore the one that would have failed. No `../../node_modules/...` path, no TS2742 /\n * TS2883.\n *\n * The reason it holds: the only symbol taken from the subpath-only module is a Zod SCHEMA, which is\n * structural and inlines; and `FamilyAspectsDeclaration` types `itemSchema` as `z.ZodTypeAny`, so no\n * inferred type ever has to name the variant schema's own module. Adding a NOMINAL export from that\n * module to this declaration would invalidate the waiver — re-run the probe if you do.\n */\n\nexport const DOCUMENT_PUBLICATION_FAMILY_ASPECTS: FamilyAspectsDeclaration = {\n schemaRef: ApplicationSpecificationFamilySemanticSchemaRef.APPLICATION_DOCUMENT_PUBLICATION_SPECIFICATION,\n aspects: [\n {\n key: 'document-publication.variant',\n snapshotPath: 'variants',\n kind: FamilyAspectKind.COLLECTION,\n itemSchema: AssuranceDocumentPublicationVariantSchema,\n // Keyed by locale × jurisdictions — no single-field business key exists; identity falls\n // back to the indexed form the contract documents.\n headlineField: 'locale',\n edges: [],\n nonEdgeRefFields: {\n jurisdictionRefs: 'jurisdiction vocabulary keys',\n },\n },\n ],\n};\n"]}
@@ -25,7 +25,9 @@ export * from "./assurance/assurance-document-system.schemas";
25
25
  export * from "./assurance/assurance-document-system.definitions";
26
26
  export * from "./assurance/assurance-document-blueprint-selection";
27
27
  export * from "./assurance/assurance-program.schemas";
28
+ export * from "./assurance/assurance-program-generation.schemas";
28
29
  export * from "./assurance/assurance-authority-basis.schemas";
29
30
  export * from "./assurance/assurance-authority-basis.definitions";
31
+ export * from "./assurance/assurance-external-framework-mapping";
30
32
  export * from "./assurance/application-document-publication.schemas";
31
33
  //# sourceMappingURL=assurance.exports.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"assurance.exports.d.ts","sourceRoot":"","sources":["../../../src/assurance.exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mDAAmD,CAAC;AAClE,cAAc,qDAAqD,CAAC;AACpE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,uCAAuC,CAAC;AACtD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,sDAAsD,CAAC"}
1
+ {"version":3,"file":"assurance.exports.d.ts","sourceRoot":"","sources":["../../../src/assurance.exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mDAAmD,CAAC;AAClE,cAAc,qDAAqD,CAAC;AACpE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC"}
@@ -25,7 +25,9 @@ export * from "./assurance/assurance-document-system.schemas.js";
25
25
  export * from "./assurance/assurance-document-system.definitions.js";
26
26
  export * from "./assurance/assurance-document-blueprint-selection.js";
27
27
  export * from "./assurance/assurance-program.schemas.js";
28
+ export * from "./assurance/assurance-program-generation.schemas.js";
28
29
  export * from "./assurance/assurance-authority-basis.schemas.js";
29
30
  export * from "./assurance/assurance-authority-basis.definitions.js";
31
+ export * from "./assurance/assurance-external-framework-mapping.js";
30
32
  export * from "./assurance/application-document-publication.schemas.js";
31
33
  //# sourceMappingURL=assurance.exports.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"assurance.exports.js","sourceRoot":"","sources":["../../../src/assurance.exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mDAAmD,CAAC;AAClE,cAAc,qDAAqD,CAAC;AACpE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,uCAAuC,CAAC;AACtD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,sDAAsD,CAAC","sourcesContent":["/**\n * entrypoint-closure-waiver: MEASURED SAFE 2026-08-13, and NOT for the usual \"structural types\n * only\" reason — the types crossing here are nominal `enum`s.\n *\n * This barrel is reachable from the package ROOT because `index.ts` re-exports\n * `application-creation.exports`, and five `application-creation/**` schemas import from here\n * (`AssuranceDocumentFactAuthorityKind` feeds the root-exported\n * `ApplicationDocumentFactDeclarationAuthoritySchema`). Measurement: a root-only consumer importing\n * ONLY `@wildo-ai/saas-specifications`, deriving from those schemas and compiling with\n * `declaration: true`, is clean under both source-condition and dist resolution. The emitted `.d.ts`\n * names `import(\"@wildo-ai/saas-specifications/assurance\").AssuranceDocumentFactAuthorityKind` — a\n * portable public specifier, not a `node_modules/.../dist/esm/...` path.\n *\n * BEFORE \"tidying\" the intra-package `../assurance.exports` imports in `application-creation/**`\n * into direct source imports — which `package-public-entrypoints.md` does ask for — RE-RUN that\n * probe. Those six importers are what puts this barrel in the consumer's program, and it is not\n * established that the enum stays nameable without it. A correct-looking cleanup could reintroduce\n * the exact TS2742/TS2883 class this waiver records as absent.\n */\nexport * from \"./assurance/assurance-foundation.schemas\";\nexport * from \"./assurance/assurance-sources.schemas\";\nexport * from \"./assurance/assurance-source-registry.definitions\";\nexport * from \"./assurance/assurance-objective-catalog.definitions\";\nexport * from \"./assurance/assurance-document-system.schemas\";\nexport * from \"./assurance/assurance-document-system.definitions\";\nexport * from \"./assurance/assurance-document-blueprint-selection\";\nexport * from \"./assurance/assurance-program.schemas\";\nexport * from \"./assurance/assurance-authority-basis.schemas\";\nexport * from \"./assurance/assurance-authority-basis.definitions\";\nexport * from \"./assurance/application-document-publication.schemas\";\n"]}
1
+ {"version":3,"file":"assurance.exports.js","sourceRoot":"","sources":["../../../src/assurance.exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mDAAmD,CAAC;AAClE,cAAc,qDAAqD,CAAC;AACpE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,uCAAuC,CAAC;AACtD,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,mDAAmD,CAAC;AAClE,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC","sourcesContent":["/**\n * entrypoint-closure-waiver: MEASURED SAFE 2026-08-13, and NOT for the usual \"structural types\n * only\" reason — the types crossing here are nominal `enum`s.\n *\n * This barrel is reachable from the package ROOT because `index.ts` re-exports\n * `application-creation.exports`, and five `application-creation/**` schemas import from here\n * (`AssuranceDocumentFactAuthorityKind` feeds the root-exported\n * `ApplicationDocumentFactDeclarationAuthoritySchema`). Measurement: a root-only consumer importing\n * ONLY `@wildo-ai/saas-specifications`, deriving from those schemas and compiling with\n * `declaration: true`, is clean under both source-condition and dist resolution. The emitted `.d.ts`\n * names `import(\"@wildo-ai/saas-specifications/assurance\").AssuranceDocumentFactAuthorityKind` — a\n * portable public specifier, not a `node_modules/.../dist/esm/...` path.\n *\n * BEFORE \"tidying\" the intra-package `../assurance.exports` imports in `application-creation/**`\n * into direct source imports — which `package-public-entrypoints.md` does ask for — RE-RUN that\n * probe. Those six importers are what puts this barrel in the consumer's program, and it is not\n * established that the enum stays nameable without it. A correct-looking cleanup could reintroduce\n * the exact TS2742/TS2883 class this waiver records as absent.\n */\nexport * from \"./assurance/assurance-foundation.schemas\";\nexport * from \"./assurance/assurance-sources.schemas\";\nexport * from \"./assurance/assurance-source-registry.definitions\";\nexport * from \"./assurance/assurance-objective-catalog.definitions\";\nexport * from \"./assurance/assurance-document-system.schemas\";\nexport * from \"./assurance/assurance-document-system.definitions\";\nexport * from \"./assurance/assurance-document-blueprint-selection\";\nexport * from \"./assurance/assurance-program.schemas\";\nexport * from \"./assurance/assurance-program-generation.schemas\";\nexport * from \"./assurance/assurance-authority-basis.schemas\";\nexport * from \"./assurance/assurance-authority-basis.definitions\";\nexport * from \"./assurance/assurance-external-framework-mapping\";\nexport * from \"./assurance/application-document-publication.schemas\";\n"]}
@@ -26,7 +26,7 @@ import type { SystemEmailTemplateSpecification } from './_core/system-email-temp
26
26
  import type { VisionSnapshot } from './_core/vision/vision-snapshot.schemas';
27
27
  import type { SchemaOrgCatalogEntryBase } from './_catalogs/schema-org';
28
28
  import type { ApplicationDocumentPublicationSpecification } from './assurance/application-document-publication.schemas';
29
- import type { ApplicationDocumentFactSpecification } from './application-creation/application-document-fact-specification.application-creation.schemas';
29
+ import type { ApplicationAuthoredDocumentFactSpecification, ApplicationDocumentFactSpecification } from './application-creation/application-document-fact-specification.application-creation.schemas';
30
30
  import type { ApplicationProcessorRegister } from './_core/compliance-documents/processor-register.schemas';
31
31
  import type { ApplicationDocumentReleasePolicySpecification } from './application-creation/application-document-release-policy-specification.application-creation.schemas';
32
32
  import type { AssuranceProgramSpecification } from './assurance/assurance-program.schemas';
@@ -36,7 +36,7 @@ export * from './technical-documentation/engine-documentation-specification-cata
36
36
  *
37
37
  * Typed companion export surface: registries of resource specs, definitions, and view specs the dev companion materializes.
38
38
  */
39
- export interface SpecificationsCompanionExports<TResourceSpecifications = ResourceSpecification, TBusinessSemanticsSnapshot = BusinessSemanticsSnapshot, TFeatureSpecifications = FeatureSpecification, TMilestoneSpecifications = MilestoneSpecification, TProductSpecifications = ProductSpecification, TRoleSpecifications = RoleSpecification, TFrontendComponentSpecifications = FrontendComponentSpecification, TCompositeViewSpecifications = CompositeViewSpecification, TFullCustomViewSpecifications = FullCustomViewSpecification, TFlowsActorsViewSpecifications = FlowsActorsViewSpecification, TChartViewSpecifications = ChartViewSpecification, TExecutionViewSpecifications = ExecutionViewSpecification, TSystemEmailTemplateSpecifications = SystemEmailTemplateSpecification, TOnboardingViewSpecifications = OnboardingViewSpecification, TGuidanceFlowSpecifications = GuidanceFlowSpecification, TDataSeedSpecifications = DataSeedSpecification, TMarketSnapshot = MarketSnapshot, TCatalogSpecifications = CatalogSpecifications, TSidebarSectionSpecifications = SidebarSectionSpecification, TAssertionSpecifications = AssertionSpecificationSnapshot, TVisionSnapshot = VisionSnapshot, TRequirementsSnapshot = RequirementsSnapshot, TRoadmapSnapshot = RoadmapSnapshot, TBuildPlanTaskGraph = BuildPlanTaskGraph, TPlacementPlan = PlacementPlan, TDomainPlanOutputSet = DomainPlanOutputSet, TBusinessModelLiteSnapshot = BusinessModelLiteSnapshot, TBrandSnapshot = BrandSnapshot, TExpertPersonaCharters = ExpertPersonaCharter[], TFeatureSpecificationDrafts = FeatureSpecificationDrafts, TComplianceSpecification = AssuranceProgramSpecification, TDocumentPublicationSpecification = ApplicationDocumentPublicationSpecification, TDocumentFactSpecification = ApplicationDocumentFactSpecification, TDocumentReleasePolicySpecification = ApplicationDocumentReleasePolicySpecification, TProcessorRegister = ApplicationProcessorRegister> {
39
+ export interface SpecificationsCompanionExports<TResourceSpecifications = ResourceSpecification, TBusinessSemanticsSnapshot = BusinessSemanticsSnapshot, TFeatureSpecifications = FeatureSpecification, TMilestoneSpecifications = MilestoneSpecification, TProductSpecifications = ProductSpecification, TRoleSpecifications = RoleSpecification, TFrontendComponentSpecifications = FrontendComponentSpecification, TCompositeViewSpecifications = CompositeViewSpecification, TFullCustomViewSpecifications = FullCustomViewSpecification, TFlowsActorsViewSpecifications = FlowsActorsViewSpecification, TChartViewSpecifications = ChartViewSpecification, TExecutionViewSpecifications = ExecutionViewSpecification, TSystemEmailTemplateSpecifications = SystemEmailTemplateSpecification, TOnboardingViewSpecifications = OnboardingViewSpecification, TGuidanceFlowSpecifications = GuidanceFlowSpecification, TDataSeedSpecifications = DataSeedSpecification, TMarketSnapshot = MarketSnapshot, TCatalogSpecifications = CatalogSpecifications, TSidebarSectionSpecifications = SidebarSectionSpecification, TAssertionSpecifications = AssertionSpecificationSnapshot, TVisionSnapshot = VisionSnapshot, TRequirementsSnapshot = RequirementsSnapshot, TRoadmapSnapshot = RoadmapSnapshot, TBuildPlanTaskGraph = BuildPlanTaskGraph, TPlacementPlan = PlacementPlan, TDomainPlanOutputSet = DomainPlanOutputSet, TBusinessModelLiteSnapshot = BusinessModelLiteSnapshot, TBrandSnapshot = BrandSnapshot, TExpertPersonaCharters = ExpertPersonaCharter[], TFeatureSpecificationDrafts = FeatureSpecificationDrafts, TComplianceSpecification = AssuranceProgramSpecification, TDocumentPublicationSpecification = ApplicationDocumentPublicationSpecification, TDocumentFactSpecification = ApplicationDocumentFactSpecification, TDocumentReleasePolicySpecification = ApplicationDocumentReleasePolicySpecification, TProcessorRegister = ApplicationProcessorRegister, TAuthoredDocumentFactSpecification = ApplicationAuthoredDocumentFactSpecification> {
40
40
  resourceSpecifications: TResourceSpecifications;
41
41
  applicationBusinessSemanticsSnapshot?: TBusinessSemanticsSnapshot;
42
42
  /**
@@ -413,6 +413,23 @@ export interface SpecificationsCompanionExports<TResourceSpecifications = Resour
413
413
  * Omitting it is honest: unresolved document facts remain visible gaps.
414
414
  */
415
415
  documentFactSpecification?: TDocumentFactSpecification;
416
+ /**
417
+ * Accepted application governed-document facts **only a human may establish** — a creator decision
418
+ * or a qualified review (`document-facts-authored`).
419
+ *
420
+ * The same shape as the slot above, and a separate family on purpose. `refinement.document-facts`
421
+ * rewrites the derived file whole, so a human decision sharing that file is destroyed on the next
422
+ * run with nothing to notice: there is no compare-and-swap here, deliberately
423
+ * (`.claude/rules/one-source-of-truth.md` Rule 0). Two families put the two writers out of each
424
+ * other's reach.
425
+ *
426
+ * No producer may write this family — it has no generation contract, and that absence is the design
427
+ * rather than an omission.
428
+ *
429
+ * A reader wanting "the application's facts" needs BOTH slots. `collectComplianceDocumentFactAvailability`
430
+ * is variadic for exactly that reason.
431
+ */
432
+ authoredDocumentFactSpecification?: TAuthoredDocumentFactSpecification;
416
433
  /**
417
434
  * WHO else processes this application's personal data — legal identity, processing region and the
418
435
  * processor's own subprocessors (issue #88).
@@ -1 +1 @@
1
- {"version":3,"file":"companion-exports.d.ts","sourceRoot":"","sources":["../../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;;;;;;;;;;;OAmBG;IACH,8BAA8B,CAAC,EAAE,0BAA0B,CAAC;IAC5D;;;;;;;;;;;;OAYG;IACH,kBAAkB,CAAC,EAAE,cAAc,CAAC;IACpC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,qBAAqB,CAAC,EAAE,sBAAsB,CAAC;IAC/C;;;;;;;;;;;;;OAaG;IACH,0BAA0B,CAAC,EAAE,2BAA2B,CAAC;IACzD;;;;;;;;;;;;OAYG;IACH,uBAAuB,CAAC,EAAE,wBAAwB,CAAC;IACnD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,gCAAgC,CAAC,EAAE,iCAAiC,CAAC;IACrE;;;;;;OAMG;IACH,kCAAkC,CAAC,EAAE,mCAAmC,CAAC;IACzE;;;;;;;;;;;;OAYG;IACH,yBAAyB,CAAC,EAAE,0BAA0B,CAAC;IACvD;;;;;;;;;;;;;;;OAeG;IACH,iCAAiC,CAAC,EAAE,kCAAkC,CAAC;IACvE;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;CAexC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,yBAAyB,EAAE,CAAC;CAClD;AACD,4EAA4E"}
@@ -1 +1 @@
1
- {"version":3,"file":"companion-exports.js","sourceRoot":"","sources":["../../../src/companion-exports.ts"],"names":[],"mappings":"AAsCA,cAAc,gFAAgF,CAAC;AA0gB/F,4EAA4E","sourcesContent":["import type { AssertionSpecificationSnapshot } from './_core/assertions/assertion-specification.schemas';\nimport type { BrandSnapshot } from './_core/brand/brand-snapshot.schemas';\nimport type { BuildPlanTaskGraph } from './_core/build-plan/build-plan-task-graph.schemas';\nimport type { PlacementPlan } from './_core/placement-plan/placement-plan.schemas';\nimport type { DomainPlanOutputSet } from './_core/domain-plan/domain-plan-output-set.schemas';\nimport type { ExpertPersonaCharter } from './_core/expert-personas/expert-persona-charter.schemas';\nimport type { BusinessModelLiteSnapshot } from './_core/business-model-lite/business-model-lite-snapshot.schemas';\nimport type { BusinessSemanticsSnapshot } from './_core/business-semantics.specifications.schemas';\nimport type { ChartViewSpecification } from './_core/chart-view-specification.schemas';\nimport type { CompositeViewSpecification } from './_core/composite-view-specification.schemas';\nimport type { DataSeedSpecification } from './_core/data-seed-specification.schemas';\nimport type {\n FeatureSpecification,\n MilestoneSpecification,\n ProductSpecification,\n RoleSpecification,\n} from './_core/definition-specification.schemas';\nimport type { ExecutionViewSpecification } from './_core/execution-view-specification.schemas';\nimport type { FlowsActorsViewSpecification } from './_core/flows-actors-view-specification.schemas';\nimport type { FrontendComponentSpecification } from './_core/frontend-component-specification.schemas';\nimport type { FeatureSpecificationDrafts } from './_core/feature-drafts/feature-specification-drafts.schemas';\nimport type { FullCustomViewSpecification } from './_core/full-custom-view-specification.schemas';\nimport type { GuidanceFlowSpecification } from './_core/guidance-flow-specification.schemas';\nimport type { MarketSnapshot } from './_core/market/market-snapshot.schemas';\nimport type { OnboardingViewSpecification } from './_core/onboarding-view-specification.schemas';\nimport type { RequirementsSnapshot } from './_core/requirements/requirements-snapshot.schemas';\nimport type { ResourceSpecification } from './_core/resource-specification.schemas';\nimport type { RoadmapSnapshot } from './_core/roadmap/roadmap-snapshot.schemas';\nimport type { SidebarSectionSpecification } from './_core/sidebar-section-specification.schemas';\nimport type { SystemEmailTemplateSpecification } from './_core/system-email-template-specification.schemas';\nimport type { VisionSnapshot } from './_core/vision/vision-snapshot.schemas';\nimport type { SchemaOrgCatalogEntryBase } from './_catalogs/schema-org';\nimport type { ApplicationDocumentPublicationSpecification } from './assurance/application-document-publication.schemas';\nimport type { ApplicationDocumentFactSpecification } from './application-creation/application-document-fact-specification.application-creation.schemas';\nimport type { ApplicationProcessorRegister } from './_core/compliance-documents/processor-register.schemas';\nimport type { ApplicationDocumentReleasePolicySpecification } from './application-creation/application-document-release-policy-specification.application-creation.schemas';\nimport type { AssuranceProgramSpecification } from './assurance/assurance-program.schemas';\n\nexport * from './technical-documentation/engine-documentation-specification-catalog.companion';\n\n/**\n * @wildo_source:part:start saas.specifications.companion-exports.contract facet:layer:specification facet:family:companion\n *\n * Typed companion export surface: registries of resource specs, definitions, and view specs the dev companion materializes.\n */\nexport interface SpecificationsCompanionExports<\n TResourceSpecifications = ResourceSpecification,\n TBusinessSemanticsSnapshot = BusinessSemanticsSnapshot,\n TFeatureSpecifications = FeatureSpecification,\n TMilestoneSpecifications = MilestoneSpecification,\n TProductSpecifications = ProductSpecification,\n TRoleSpecifications = RoleSpecification,\n TFrontendComponentSpecifications = FrontendComponentSpecification,\n TCompositeViewSpecifications = CompositeViewSpecification,\n TFullCustomViewSpecifications = FullCustomViewSpecification,\n TFlowsActorsViewSpecifications = FlowsActorsViewSpecification,\n TChartViewSpecifications = ChartViewSpecification,\n TExecutionViewSpecifications = ExecutionViewSpecification,\n TSystemEmailTemplateSpecifications = SystemEmailTemplateSpecification,\n TOnboardingViewSpecifications = OnboardingViewSpecification,\n TGuidanceFlowSpecifications = GuidanceFlowSpecification,\n TDataSeedSpecifications = DataSeedSpecification,\n TMarketSnapshot = MarketSnapshot,\n TCatalogSpecifications = CatalogSpecifications,\n // Appended LAST (not inserted mid-list): consumers pass these generics\n // positionally (see the app companion-exports), so a new param must go at the\n // end to avoid shifting existing ones onto the wrong types.\n TSidebarSectionSpecifications = SidebarSectionSpecification,\n TAssertionSpecifications = AssertionSpecificationSnapshot,\n // ── app-creation meta-workflows C-4 definition families (U1–U4) — RESERVED SLOTS ──\n // Four sibling `_core` families each register ONE companion-exports slot here,\n // appended STRICTLY LAST in this FIXED order. Each session appends its generic\n // param (below) AND its interface field (further down) AFTER the previous\n // family's — NEVER re-order, NEVER insert mid-list. Consumers pass generics\n // positionally, so re-ordering silently shifts every later app onto the wrong\n // type. The reservation order (do not change):\n // All four reserved families are now registered (U1–U4 done); the\n // reserved-slots block below is fully filled and no further reservation\n // follows. The final order (do not change):\n // 1. vision (U1 — registered below)\n // 2. requirements (U2 — registered below)\n // 3. roadmap (U3 — registered below)\n // 4. business-model-lite (U4 — registered below, LAST)\n TVisionSnapshot = VisionSnapshot,\n TRequirementsSnapshot = RequirementsSnapshot,\n TRoadmapSnapshot = RoadmapSnapshot,\n TBuildPlanTaskGraph = BuildPlanTaskGraph,\n TPlacementPlan = PlacementPlan,\n TDomainPlanOutputSet = DomainPlanOutputSet,\n TBusinessModelLiteSnapshot = BusinessModelLiteSnapshot,\n // Appended STRICTLY LAST (positional generics — never insert mid-list):\n // the brand visual-identity definition family (`brand-brief`).\n TBrandSnapshot = BrandSnapshot,\n // Appended STRICTLY LAST: the expert-personas family (derived worker-persona\n // charters — plural array, unlike the singleton snapshot families above).\n TExpertPersonaCharters = ExpertPersonaCharter[],\n // Appended STRICTLY LAST: accepted spec-first feature intent. This is\n // deliberately distinct from `featureSpecifications`, whose entries already\n // decorate runtime FeatureDefinitions and therefore represent a later stage.\n TFeatureSpecificationDrafts = FeatureSpecificationDrafts,\n // Appended STRICTLY LAST: accepted application compliance policy. The slot\n // remains optional so applications that do not opt into `compliance-program`\n // preserve their existing projection and family-head behavior.\n TComplianceSpecification = AssuranceProgramSpecification,\n // Appended STRICTLY LAST: the application's accepted public-document\n // publication variants (`document-publication` family). Separate from\n // `complianceSpecification` on purpose — see the field's JSDoc.\n TDocumentPublicationSpecification = ApplicationDocumentPublicationSpecification,\n // Appended STRICTLY LAST: accepted document facts that cannot be inferred\n // from other semantic families. Raw decisions only; runtime grants,\n // approvals and releases never enter companion exports.\n TDocumentFactSpecification = ApplicationDocumentFactSpecification,\n // Appended STRICTLY LAST: release-process selection is a separate accepted\n // decision, never an implicit default of routing or document necessity.\n TDocumentReleasePolicySpecification = ApplicationDocumentReleasePolicySpecification,\n // Appended STRICTLY LAST: WHO else processes personal data, under what legal\n // identity and where (issue #88). Optional, and the optionality is the design:\n // a partial register is useful and its holes are REPORTED per provider against\n // the application's configured set, rather than blocking anything.\n TProcessorRegister = ApplicationProcessorRegister,\n> {\n resourceSpecifications: TResourceSpecifications;\n applicationBusinessSemanticsSnapshot?: TBusinessSemanticsSnapshot;\n /**\n * Feature overlays exposed to the dev companion.\n *\n * **Required** (promoted 2026-04-22, carryforward #5 of the\n * `non-view-specification-coverage` plan). The engine ships 7 explicit\n * `CoreFeature` overlays plus an `EngineCapability`-derived programmatic\n * module via `engineFeatureSpecifications`, so apps always have\n * something to expose. Apps with no app-level feature overlays should\n * pass `engineFeatureSpecifications` directly; apps with overlays\n * should merge their own bi-scoped map on top using the same\n * `buildFeatureSpecificationMap(...)` factory used by Wonder Todos.\n */\n featureSpecifications: TFeatureSpecifications;\n /**\n * Milestone overlays exposed to the dev companion.\n *\n * **Required** (promoted 2026-04-22, carryforward #5). Engine ships\n * zero milestone overlays today (apps own the catalog), but the\n * required discipline forces apps to either pass an explicit\n * `buildMilestoneSpecificationMap()` (empty or otherwise) or wire a\n * real overlay registry — eliminating the silent \"I forgot to wire\n * this surface\" failure mode the optional shape allowed.\n */\n milestoneSpecifications: TMilestoneSpecifications;\n /**\n * Product overlays exposed to the dev companion.\n *\n * **Required** (promoted 2026-04-22, carryforward #5). Same rationale\n * as `milestoneSpecifications` — engine ships zero today, but the\n * required shape eliminates the silent-omission failure mode.\n */\n productSpecifications: TProductSpecifications;\n /**\n * Role overlays exposed to the dev companion.\n *\n * **Required** (promoted 2026-04-22, carryforward #5). Engine ships\n * 12 explicit core-role overlays via `engineRoleSpecifications` (one\n * per `CORE_APP_ROLES.*` member), so apps always have something to\n * expose. Apps with no app-level roles should pass\n * `engineRoleSpecifications` directly.\n */\n roleSpecifications: TRoleSpecifications;\n frontendComponentSpecifications?: TFrontendComponentSpecifications;\n compositeViewSpecifications?: TCompositeViewSpecifications;\n fullCustomViewSpecifications?: TFullCustomViewSpecifications;\n flowsActorsViewSpecifications?: TFlowsActorsViewSpecifications;\n chartViewSpecifications?: TChartViewSpecifications;\n executionViewSpecifications?: TExecutionViewSpecifications;\n /**\n * Sidebar-section overlays exposed to the dev companion. Optional: sidebar\n * sections are structural app-shell config with no prose of their own; an app\n * that wants grounded sidebar labels authors a\n * `buildSidebarSectionSpecificationMap(...)` here, otherwise the family falls\n * back to keys-only generation.\n */\n sidebarSectionSpecifications?: TSidebarSectionSpecifications;\n /**\n * System-email template overlays exposed to the dev companion.\n *\n * **Required** because the engine ships 12 templates out of the box\n * (`engineSystemEmailTemplateSpecifications`); apps therefore always have\n * something to expose, and forgetting to wire this surface would silently\n * lose the entire system-email companion family. Apps with no app-level\n * templates should pass `engineSystemEmailTemplateSpecifications` directly.\n */\n systemEmailTemplateSpecifications: TSystemEmailTemplateSpecifications;\n /**\n * Onboarding-view overlays exposed to the dev companion.\n *\n * **Required** (promoted 2026-04-22, carryforward #5). Engine ships\n * zero onboarding views by default, but the required shape eliminates\n * the silent-omission failure mode. Apps with no app-level onboarding\n * views should pass an empty `buildOnboardingViewSpecificationMap()`\n * rather than omitting the field.\n */\n onboardingViewSpecifications: TOnboardingViewSpecifications;\n /**\n * Guidance-flow overlays exposed to the dev companion.\n *\n * **Required** (promoted 2026-04-22, carryforward #5). Same discipline\n * as `onboardingViewSpecifications` — engine ships zero by default,\n * but the required shape eliminates the silent-omission failure mode.\n * Apps with no app-level guidance flows should pass an empty\n * `buildGuidanceFlowSpecificationMap()` rather than omitting the field.\n */\n guidanceFlowSpecifications: TGuidanceFlowSpecifications;\n /**\n * Data-seeding overlays exposed to the dev companion.\n *\n * **Optional** in Phase 1 because the engine ships zero seeds yet — the\n * `DataSeedRegistry` and the dispatcher land in Phase 2. Authoring a seed\n * spec without the runtime declaration is allowed (the spec slice is\n * useful as design documentation on its own); authoring a runtime seed\n * without a spec is also allowed (no companion grounding, dispatcher\n * still runs it). Once Phase 2 ships engine seeds this field will be\n * promoted to required, mirroring `systemEmailTemplateSpecifications`.\n *\n * Apps with no app-level seeds should pass an empty\n * `buildDataSeedSpecificationMap()` rather than omitting the field once\n * Phase 2 lands.\n */\n dataSeedSpecifications?: TDataSeedSpecifications;\n /**\n * Application market specification — the English-authored marketing /\n * positioning truth (category, ICPs, personas, jobs/pains/gains, tones\n * of voice, benefits, positionings, message templates). Optional today\n * because not every example app authors a market snapshot yet; once it\n * graduates to required, app bootstraps should run\n * `validateMarketSnapshot` on the value before wiring it here.\n *\n * Authored entirely in English. Geographic targeting (the only\n * \"localization\" the slice models) lives inside\n * `MarketICP.profile.geographies`.\n */\n marketSpecification?: TMarketSnapshot;\n /**\n * Catalog specifications — declarations of EXTERNAL vocabularies the\n * framework reasons about (Schema.org JSON-LD today; future:\n * OpenAPI, RSS, JSON-Feed). Distinct from overlay specs above —\n * overlay specs decorate registry entries (resources, features,\n * views); catalog specs OWN the contract for an external\n * vocabulary's per-entity shape (required / optional / deprecated\n * field declarations).\n *\n * **Composition**: apps spread the engine catalog (e.g.\n * `ENGINE_SCHEMA_ORG_CATALOG`) and append app-side extensions /\n * overrides. The companion's catalog reconciliation runs against\n * this merged surface — emission sites in `@wildo-ai/saas-website`\n * sections (via `getStructuredData()`) are checked against the\n * merged `schemaOrg` catalog, with warnings on missing required\n * fields, deprecated-field usage, and (when wired) missing\n * recommended optionals. Catalog overrides (app entry redefining\n * an engine entry's `@type`) emit a `catalog-override` boot\n * warning.\n *\n * **Optional** in v1 because not every app emits structured data\n * yet. Apps wiring an engine catalog explicitly opt into\n * companion reconciliation by populating the matching slot.\n */\n catalogSpecifications?: TCatalogSpecifications;\n /**\n * Assertion surface — the authored layer of the dynamic Assertion\n * Surface (app-creation meta-workflows, master plan S1): statements\n * about the platform served via the companion `assertions-list` /\n * `assertions-resolve` / `assertions-reconcile` behaviors, with\n * status computed by reconcile rather than hand-maintained.\n *\n * **Optional** — the launch posture of every new family: not every\n * example app authors assertions yet, and the family must not break\n * existing companion exports on arrival. Once it graduates to\n * required, app bootstraps should run\n * `validateAssertionSpecificationSnapshot` on the value before\n * wiring it here (the behavior resolver validates on entry either\n * way, market-style).\n *\n * Lane discipline: entries carrying\n * `lane: AssertionLane.FRAMEWORK_DEV` are framework-development\n * knowledge (end-state platform bets authored in the dogfood app\n * during the framework-parallel era) and must NEVER compile into\n * shipped app knowledge — consumers filter on `lane` deliberately.\n */\n assertionSpecifications?: TAssertionSpecifications;\n // ── app-creation meta-workflows C-4 definition families (U1–U4) — FIELDS ──\n // One field per family, in the SAME fixed order as the generic params\n // above. All four are now registered (U1–U4 done); no reservation remains:\n // 1. visionSpecification (U1 — below)\n // 2. requirementsSpecification (U2 — below)\n // 3. roadmapSpecification (U3 — below)\n // 4. businessModelLiteSpecification (U4 — below, LAST)\n /**\n * Application **vision** specification — the foundational-intent truth\n * (idea, problem statement, mission, success criteria, constraints incl.\n * compliance) the app-creation top-down catalog reads/writes (C-4\n * definition families). A single aggregate per app (market-snapshot\n * style), validated by `validateVisionSnapshot`.\n *\n * **Optional** — the launch posture of every new family (market /\n * assertions parity): not every example app authors a vision snapshot\n * yet, and the family must not break existing companion exports on\n * arrival. Once it graduates to required, app bootstraps should run\n * `validateVisionSnapshot` on the value before wiring it here.\n */\n visionSpecification?: TVisionSnapshot;\n /**\n * Application **requirements** specification — the requirements-layer\n * truth (functional requirements + non-functional requirements, each\n * optionally cross-referencing market ICPs / jobs) the app-creation\n * top-down capability-map catalog reads/writes (C-4 definition\n * families). A single aggregate per app (market-snapshot style),\n * validated by `validateRequirementsSnapshot`.\n *\n * **Optional** — the launch posture of every new family (vision /\n * market / assertions parity): not every example app authors a\n * requirements snapshot yet, and the family must not break existing\n * companion exports on arrival. Once it graduates to required, app\n * bootstraps should run `validateRequirementsSnapshot` on the value\n * before wiring it here.\n */\n requirementsSpecification?: TRequirementsSnapshot;\n /**\n * Application **roadmap** specification — the delivery-roadmap truth (a\n * product's delivery plan as an ordered collection of releases/phases,\n * each optionally cross-referencing the requirements /\n * vision-success-criteria it delivers) the app-creation top-down\n * scope/roadmap catalog reads/writes (C-4 definition families). A single\n * aggregate per app (market-snapshot style), validated by\n * `validateRoadmapSnapshot`. Distinct from `milestoneSpecifications` (a\n * dated registry-overlay surface) — a roadmap phase is a planning\n * artifact, not a runtime milestone.\n *\n * **Optional** — the launch posture of every new family (vision /\n * requirements / market / assertions parity): not every example app\n * authors a roadmap snapshot yet, and the family must not break existing\n * companion exports on arrival. Once it graduates to required, app\n * bootstraps should run `validateRoadmapSnapshot` on the value before\n * wiring it here.\n */\n roadmapSpecification?: TRoadmapSnapshot;\n /**\n * Application **build-plan** specification — the ORDERED typed task graph\n * (`BuildPlanTaskGraph`, `_core/build-plan/`) that turns the accepted domain\n * plan into buildable units; produced by the build-decompose playbook and\n * consumed one READY task at a time by build-dispatch. Optional until an\n * application reaches the bottom-up phase; app bootstraps should run\n * `validateBuildPlanTaskGraph` on the value before wiring it here.\n */\n buildPlanSpecification?: TBuildPlanTaskGraph;\n /**\n * Application **placement** specification — WHERE every settings destination,\n * resource operation and app view sits in the shell, and WHY (`PlacementPlan`,\n * `_core/placement-plan/`).\n *\n * Produced by the `bottom_up.placement-plan` playbook as an expert-panel\n * DELIBERATION rather than a creator elicitation: the creator does not choose\n * placement, so each decision carries a `rationale` that answers \"why is this\n * here?\" without re-running the panel. Consumed by build-decompose, which\n * turns it into the coding tasks that author `settings-hub.config.ts` and\n * `app-shell.config.ts`.\n *\n * Optional until an application reaches the bottom-up phase; app bootstraps\n * should run `validatePlacementPlan` on the value before wiring it here.\n */\n placementPlanSpecification?: TPlacementPlan;\n /**\n * Application **domain-plan** specification — the atomic module decomposition\n * PLUS relationship drafts (`DomainPlanOutputSet`, `_core/domain-plan/`);\n * produced by the domain-plan playbook, decomposed by build-decompose.\n * Optional until an application reaches the bottom-up phase.\n */\n domainPlanSpecification?: TDomainPlanOutputSet;\n /**\n * Application **business-model-lite** specification — the lightweight\n * business-model truth (a coarse product-level revenue model + a pricing-\n * plan sketch, each plan optionally cross-referencing the market ICPs it\n * targets and the requirements it includes) the app-creation top-down\n * catalog reads/writes (C-4 definition families). A single aggregate per\n * app (market-snapshot style), validated by\n * `validateBusinessModelLiteSnapshot`. A PLANNING artifact — deliberately\n * NOT the live billing / Stripe product-catalog runtime (it models\n * pricing INTENT, never chargeable state). The `-lite` is the\n * scaffold-depth qualifier of the Phase-J1 increment; the artifact-family\n * id is `business-model`.\n *\n * **Optional** — the launch posture of every new family (vision /\n * requirements / roadmap / market / assertions parity): not every example\n * app authors a business-model snapshot yet, and the family must not break\n * existing companion exports on arrival. Once it graduates to required,\n * app bootstraps should run `validateBusinessModelLiteSnapshot` on the\n * value before wiring it here.\n */\n businessModelLiteSpecification?: TBusinessModelLiteSnapshot;\n /**\n * Application **brand** specification — the visual-identity brief (brand\n * name + logo direction + visual tone; `resolvedAssets` populated by the\n * companion logo step) the app-creation top-down `brand-identity` playbook\n * reads/writes. A single aggregate per app (vision-snapshot style),\n * validated by `validateBrandSnapshot`. Read by the companion\n * `brand-render-prompt` behavior to assemble the logo generation prompt;\n * the artifact-family id is `brand-brief`.\n *\n * **Optional** — the launch posture of every new family: not every example\n * app authors a brand snapshot yet, and the family must not break existing\n * companion exports on arrival.\n */\n brandSpecification?: TBrandSnapshot;\n /**\n * Application **expert-persona charters** — the DERIVED worker-persona\n * instances (`ExpertPersonaCharter[]`) of the framework's\n * `EXPERT_ROLE_TEMPLATES` (art-director, copy-chief, …), committed under\n * `specifications/src/personas/` by the companion's derive→accept flow\n * (and hand-editable thereafter; a human edit is recorded in `authored`).\n *\n * Consumed by the companion's `expert-persona-charters` introspection\n * behavior: the deliberation system builds each expert's agent from the\n * committed charter at startup, and the accept step reads the set for its\n * human-edit overwrite guard + `validateExpertPersonaCharters` run.\n *\n * PLURAL by design (unlike the singleton snapshot families above): an app\n * has one charter per role, several roles. Distinct from the market\n * family's `personas` (BUYER personas — who the app sells to); these are\n * WORKER personas (who does the creative work).\n *\n * **Optional** — the launch posture of every new family: not every example\n * app has derived charters yet, and the family must not break existing\n * companion exports on arrival. Apps with charters should export the\n * generated `appExpertPersonaCharters` aggregate from\n * `specifications/src/personas/`.\n */\n expertPersonaCharters?: TExpertPersonaCharters;\n /**\n * Accepted **feature drafts** produced by the top-down capability-map.\n *\n * Drafts carry product intent only: purpose, business role, lifecycle and\n * availability guidance. They deliberately exclude runtime-definition\n * provenance and executable scope. Phase-gate and domain-planning evidence\n * consume this member; `featureSpecifications` remains the separate\n * runtime-backed overlay surface used after capabilities are implemented.\n *\n * **Optional** at the aggregate contract boundary because applications that\n * have not entered the app-creation workflow may not have accepted drafts.\n * A treatment selecting the `feature-drafts` family fails closed when the\n * member is absent.\n */\n featureDraftsSpecification?: TFeatureSpecificationDrafts;\n /**\n * Accepted application **compliance program** policy.\n *\n * This is the configured application's reusable source/scope/objective,\n * implementation-choice, responsibility, gap/exception and documentation\n * truth. It deliberately excludes live organizations, assignees, reviewer\n * identities, evidence bytes and operating-effectiveness claims.\n *\n * **Optional** at launch. If the application declares the\n * `compliance-program` family, the semantic family authority requires this\n * member and validates it fail closed. Applications without that family must\n * not synthesize this value or receive positive compliance-program claims.\n */\n complianceSpecification?: TComplianceSpecification;\n /**\n * Accepted application **public-document publication variants**.\n *\n * The exact locale × jurisdiction combinations in which this application\n * publishes public governed documents. It is the ONLY source a governed\n * document candidate may take its locale and jurisdictions from: the\n * candidate host seals these bytes into a publication-variant authority\n * bound to the `document-publication` family's retained head, and refuses\n * any combination that is not an exact member.\n *\n * Distinct from `complianceSpecification` by design. The assurance program\n * decides which documents are required and who approves them; this slot\n * decides where and in which language they are published. Folding the two\n * would let a document requirement widen its own publication routing.\n *\n * **Optional** at the aggregate contract boundary. An application that\n * declares no `document-publication` family publishes no public governed\n * document, and candidate creation fails closed rather than defaulting to a\n * locale or jurisdiction nobody accepted.\n */\n documentPublicationSpecification?: TDocumentPublicationSpecification;\n /**\n * Accepted application selection of the human release lane for each exact\n * governed-document requirement. Optional at the aggregate boundary: an\n * application with no policy can still generate a working draft, but every\n * exposure attempt fails closed rather than assuming operator attestation or\n * qualified review.\n */\n documentReleasePolicySpecification?: TDocumentReleasePolicySpecification;\n /**\n * Accepted application **governed-document facts**.\n *\n * This optional slot carries raw application, creator-decision and\n * qualified-review fact declarations from the dedicated `document-facts`\n * specification family. The application-creation host validates the exact\n * accepted family head and seals derived contribution digests and validation\n * receipts; application code never authors those host identities.\n *\n * Reviewer authority grants, review decisions, candidates and immutable\n * releases are runtime/private custody and are forbidden from this slot.\n * Omitting it is honest: unresolved document facts remain visible gaps.\n */\n documentFactSpecification?: TDocumentFactSpecification;\n /**\n * WHO else processes this application's personal data — legal identity, processing region and the\n * processor's own subprocessors (issue #88).\n *\n * A configured provider already establishes THAT a third party is involved and what function it\n * performs. None of that is what a privacy notice's recipient statement needs, and an\n * international-transfer statement cannot be made at all without a region.\n *\n * Optional, and its holes are reported rather than blocking: the companion compares this register\n * against the application's CONFIGURED providers and names each one that is undeclared, so a partial\n * register is useful and an empty one still produces an actionable document. An absent entry means\n * nobody has established that processor's identity — never that the provider is unused.\n */\n processorRegister?: TProcessorRegister;\n /**\n * Accepted application-declared semantic causality between whole\n * specification-family states. This is not the registry's physical\n * dependency graph and not Actor/Flow execution order. The runtime resolves\n * these declarations only through the exact CURRENT accepted projection,\n * then may derive a rebuildable impact index; this export itself does not\n * authorize a journal write, review queue or application mutation.\n *\n * Optional because semantic impact is an advanced application-creation\n * capability. An application that declares the dedicated\n * `semantic-dependencies` family must provide this field; a resolver refuses\n * a missing or malformed value rather than infer dependencies from imports\n * or registry edges.\n */\n}\n\n/**\n * Aggregate of every catalog vocabulary an app can wire on the\n * `catalogSpecifications` companion-exports slot.\n *\n * Each vocabulary is a flat array of validated entries (engine\n * + app entries merged at wiring time). The companion harness keys\n * each vocabulary by its discriminator (`@type` for Schema.org;\n * future vocabularies can use `operationId`, `kind`, etc.); app\n * entries silently override engine entries on collision and the\n * harness emits a `catalog-override` warning for each override at\n * boot.\n *\n * **Why an aggregate type and not per-slot fields**: every future\n * vocabulary lands as a sibling field on this single type rather\n * than as a new top-level companion-exports field. This keeps the\n * `SpecificationsCompanionExports` shape stable as the catalog\n * surface grows.\n */\nexport interface CatalogSpecifications {\n /**\n * Schema.org JSON-LD vocabulary catalog. Compose with\n * `ENGINE_SCHEMA_ORG_CATALOG` (engine-shipped standard entries)\n * spread, then append app-side extensions / overrides.\n */\n schemaOrg?: readonly SchemaOrgCatalogEntryBase[];\n}\n/** @wildo_source:part:end saas.specifications.companion-exports.contract */\n"]}
1
+ {"version":3,"file":"companion-exports.js","sourceRoot":"","sources":["../../../src/companion-exports.ts"],"names":[],"mappings":"AAyCA,cAAc,gFAAgF,CAAC;AA8hB/F,4EAA4E","sourcesContent":["import type { AssertionSpecificationSnapshot } from './_core/assertions/assertion-specification.schemas';\nimport type { BrandSnapshot } from './_core/brand/brand-snapshot.schemas';\nimport type { BuildPlanTaskGraph } from './_core/build-plan/build-plan-task-graph.schemas';\nimport type { PlacementPlan } from './_core/placement-plan/placement-plan.schemas';\nimport type { DomainPlanOutputSet } from './_core/domain-plan/domain-plan-output-set.schemas';\nimport type { ExpertPersonaCharter } from './_core/expert-personas/expert-persona-charter.schemas';\nimport type { BusinessModelLiteSnapshot } from './_core/business-model-lite/business-model-lite-snapshot.schemas';\nimport type { BusinessSemanticsSnapshot } from './_core/business-semantics.specifications.schemas';\nimport type { ChartViewSpecification } from './_core/chart-view-specification.schemas';\nimport type { CompositeViewSpecification } from './_core/composite-view-specification.schemas';\nimport type { DataSeedSpecification } from './_core/data-seed-specification.schemas';\nimport type {\n FeatureSpecification,\n MilestoneSpecification,\n ProductSpecification,\n RoleSpecification,\n} from './_core/definition-specification.schemas';\nimport type { ExecutionViewSpecification } from './_core/execution-view-specification.schemas';\nimport type { FlowsActorsViewSpecification } from './_core/flows-actors-view-specification.schemas';\nimport type { FrontendComponentSpecification } from './_core/frontend-component-specification.schemas';\nimport type { FeatureSpecificationDrafts } from './_core/feature-drafts/feature-specification-drafts.schemas';\nimport type { FullCustomViewSpecification } from './_core/full-custom-view-specification.schemas';\nimport type { GuidanceFlowSpecification } from './_core/guidance-flow-specification.schemas';\nimport type { MarketSnapshot } from './_core/market/market-snapshot.schemas';\nimport type { OnboardingViewSpecification } from './_core/onboarding-view-specification.schemas';\nimport type { RequirementsSnapshot } from './_core/requirements/requirements-snapshot.schemas';\nimport type { ResourceSpecification } from './_core/resource-specification.schemas';\nimport type { RoadmapSnapshot } from './_core/roadmap/roadmap-snapshot.schemas';\nimport type { SidebarSectionSpecification } from './_core/sidebar-section-specification.schemas';\nimport type { SystemEmailTemplateSpecification } from './_core/system-email-template-specification.schemas';\nimport type { VisionSnapshot } from './_core/vision/vision-snapshot.schemas';\nimport type { SchemaOrgCatalogEntryBase } from './_catalogs/schema-org';\nimport type { ApplicationDocumentPublicationSpecification } from './assurance/application-document-publication.schemas';\nimport type {\n ApplicationAuthoredDocumentFactSpecification,\n ApplicationDocumentFactSpecification,\n} from './application-creation/application-document-fact-specification.application-creation.schemas';\nimport type { ApplicationProcessorRegister } from './_core/compliance-documents/processor-register.schemas';\nimport type { ApplicationDocumentReleasePolicySpecification } from './application-creation/application-document-release-policy-specification.application-creation.schemas';\nimport type { AssuranceProgramSpecification } from './assurance/assurance-program.schemas';\n\nexport * from './technical-documentation/engine-documentation-specification-catalog.companion';\n\n/**\n * @wildo_source:part:start saas.specifications.companion-exports.contract facet:layer:specification facet:family:companion\n *\n * Typed companion export surface: registries of resource specs, definitions, and view specs the dev companion materializes.\n */\nexport interface SpecificationsCompanionExports<\n TResourceSpecifications = ResourceSpecification,\n TBusinessSemanticsSnapshot = BusinessSemanticsSnapshot,\n TFeatureSpecifications = FeatureSpecification,\n TMilestoneSpecifications = MilestoneSpecification,\n TProductSpecifications = ProductSpecification,\n TRoleSpecifications = RoleSpecification,\n TFrontendComponentSpecifications = FrontendComponentSpecification,\n TCompositeViewSpecifications = CompositeViewSpecification,\n TFullCustomViewSpecifications = FullCustomViewSpecification,\n TFlowsActorsViewSpecifications = FlowsActorsViewSpecification,\n TChartViewSpecifications = ChartViewSpecification,\n TExecutionViewSpecifications = ExecutionViewSpecification,\n TSystemEmailTemplateSpecifications = SystemEmailTemplateSpecification,\n TOnboardingViewSpecifications = OnboardingViewSpecification,\n TGuidanceFlowSpecifications = GuidanceFlowSpecification,\n TDataSeedSpecifications = DataSeedSpecification,\n TMarketSnapshot = MarketSnapshot,\n TCatalogSpecifications = CatalogSpecifications,\n // Appended LAST (not inserted mid-list): consumers pass these generics\n // positionally (see the app companion-exports), so a new param must go at the\n // end to avoid shifting existing ones onto the wrong types.\n TSidebarSectionSpecifications = SidebarSectionSpecification,\n TAssertionSpecifications = AssertionSpecificationSnapshot,\n // ── app-creation meta-workflows C-4 definition families (U1–U4) — RESERVED SLOTS ──\n // Four sibling `_core` families each register ONE companion-exports slot here,\n // appended STRICTLY LAST in this FIXED order. Each session appends its generic\n // param (below) AND its interface field (further down) AFTER the previous\n // family's — NEVER re-order, NEVER insert mid-list. Consumers pass generics\n // positionally, so re-ordering silently shifts every later app onto the wrong\n // type. The reservation order (do not change):\n // All four reserved families are now registered (U1–U4 done); the\n // reserved-slots block below is fully filled and no further reservation\n // follows. The final order (do not change):\n // 1. vision (U1 — registered below)\n // 2. requirements (U2 — registered below)\n // 3. roadmap (U3 — registered below)\n // 4. business-model-lite (U4 — registered below, LAST)\n TVisionSnapshot = VisionSnapshot,\n TRequirementsSnapshot = RequirementsSnapshot,\n TRoadmapSnapshot = RoadmapSnapshot,\n TBuildPlanTaskGraph = BuildPlanTaskGraph,\n TPlacementPlan = PlacementPlan,\n TDomainPlanOutputSet = DomainPlanOutputSet,\n TBusinessModelLiteSnapshot = BusinessModelLiteSnapshot,\n // Appended STRICTLY LAST (positional generics — never insert mid-list):\n // the brand visual-identity definition family (`brand-brief`).\n TBrandSnapshot = BrandSnapshot,\n // Appended STRICTLY LAST: the expert-personas family (derived worker-persona\n // charters — plural array, unlike the singleton snapshot families above).\n TExpertPersonaCharters = ExpertPersonaCharter[],\n // Appended STRICTLY LAST: accepted spec-first feature intent. This is\n // deliberately distinct from `featureSpecifications`, whose entries already\n // decorate runtime FeatureDefinitions and therefore represent a later stage.\n TFeatureSpecificationDrafts = FeatureSpecificationDrafts,\n // Appended STRICTLY LAST: accepted application compliance policy. The slot\n // remains optional so applications that do not opt into `compliance-program`\n // preserve their existing projection and family-head behavior.\n TComplianceSpecification = AssuranceProgramSpecification,\n // Appended STRICTLY LAST: the application's accepted public-document\n // publication variants (`document-publication` family). Separate from\n // `complianceSpecification` on purpose — see the field's JSDoc.\n TDocumentPublicationSpecification = ApplicationDocumentPublicationSpecification,\n // Appended STRICTLY LAST: accepted document facts that cannot be inferred\n // from other semantic families. Raw decisions only; runtime grants,\n // approvals and releases never enter companion exports.\n TDocumentFactSpecification = ApplicationDocumentFactSpecification,\n // Appended STRICTLY LAST: release-process selection is a separate accepted\n // decision, never an implicit default of routing or document necessity.\n TDocumentReleasePolicySpecification = ApplicationDocumentReleasePolicySpecification,\n // Appended STRICTLY LAST: WHO else processes personal data, under what legal\n // identity and where (issue #88). Optional, and the optionality is the design:\n // a partial register is useful and its holes are REPORTED per provider against\n // the application's configured set, rather than blocking anything.\n TProcessorRegister = ApplicationProcessorRegister,\n // Appended STRICTLY LAST: the human half of the document facts, in its own\n // family, because the derived one is REGENERATED whole (#192).\n TAuthoredDocumentFactSpecification = ApplicationAuthoredDocumentFactSpecification,\n> {\n resourceSpecifications: TResourceSpecifications;\n applicationBusinessSemanticsSnapshot?: TBusinessSemanticsSnapshot;\n /**\n * Feature overlays exposed to the dev companion.\n *\n * **Required** (promoted 2026-04-22, carryforward #5 of the\n * `non-view-specification-coverage` plan). The engine ships 7 explicit\n * `CoreFeature` overlays plus an `EngineCapability`-derived programmatic\n * module via `engineFeatureSpecifications`, so apps always have\n * something to expose. Apps with no app-level feature overlays should\n * pass `engineFeatureSpecifications` directly; apps with overlays\n * should merge their own bi-scoped map on top using the same\n * `buildFeatureSpecificationMap(...)` factory used by Wonder Todos.\n */\n featureSpecifications: TFeatureSpecifications;\n /**\n * Milestone overlays exposed to the dev companion.\n *\n * **Required** (promoted 2026-04-22, carryforward #5). Engine ships\n * zero milestone overlays today (apps own the catalog), but the\n * required discipline forces apps to either pass an explicit\n * `buildMilestoneSpecificationMap()` (empty or otherwise) or wire a\n * real overlay registry — eliminating the silent \"I forgot to wire\n * this surface\" failure mode the optional shape allowed.\n */\n milestoneSpecifications: TMilestoneSpecifications;\n /**\n * Product overlays exposed to the dev companion.\n *\n * **Required** (promoted 2026-04-22, carryforward #5). Same rationale\n * as `milestoneSpecifications` — engine ships zero today, but the\n * required shape eliminates the silent-omission failure mode.\n */\n productSpecifications: TProductSpecifications;\n /**\n * Role overlays exposed to the dev companion.\n *\n * **Required** (promoted 2026-04-22, carryforward #5). Engine ships\n * 12 explicit core-role overlays via `engineRoleSpecifications` (one\n * per `CORE_APP_ROLES.*` member), so apps always have something to\n * expose. Apps with no app-level roles should pass\n * `engineRoleSpecifications` directly.\n */\n roleSpecifications: TRoleSpecifications;\n frontendComponentSpecifications?: TFrontendComponentSpecifications;\n compositeViewSpecifications?: TCompositeViewSpecifications;\n fullCustomViewSpecifications?: TFullCustomViewSpecifications;\n flowsActorsViewSpecifications?: TFlowsActorsViewSpecifications;\n chartViewSpecifications?: TChartViewSpecifications;\n executionViewSpecifications?: TExecutionViewSpecifications;\n /**\n * Sidebar-section overlays exposed to the dev companion. Optional: sidebar\n * sections are structural app-shell config with no prose of their own; an app\n * that wants grounded sidebar labels authors a\n * `buildSidebarSectionSpecificationMap(...)` here, otherwise the family falls\n * back to keys-only generation.\n */\n sidebarSectionSpecifications?: TSidebarSectionSpecifications;\n /**\n * System-email template overlays exposed to the dev companion.\n *\n * **Required** because the engine ships 12 templates out of the box\n * (`engineSystemEmailTemplateSpecifications`); apps therefore always have\n * something to expose, and forgetting to wire this surface would silently\n * lose the entire system-email companion family. Apps with no app-level\n * templates should pass `engineSystemEmailTemplateSpecifications` directly.\n */\n systemEmailTemplateSpecifications: TSystemEmailTemplateSpecifications;\n /**\n * Onboarding-view overlays exposed to the dev companion.\n *\n * **Required** (promoted 2026-04-22, carryforward #5). Engine ships\n * zero onboarding views by default, but the required shape eliminates\n * the silent-omission failure mode. Apps with no app-level onboarding\n * views should pass an empty `buildOnboardingViewSpecificationMap()`\n * rather than omitting the field.\n */\n onboardingViewSpecifications: TOnboardingViewSpecifications;\n /**\n * Guidance-flow overlays exposed to the dev companion.\n *\n * **Required** (promoted 2026-04-22, carryforward #5). Same discipline\n * as `onboardingViewSpecifications` — engine ships zero by default,\n * but the required shape eliminates the silent-omission failure mode.\n * Apps with no app-level guidance flows should pass an empty\n * `buildGuidanceFlowSpecificationMap()` rather than omitting the field.\n */\n guidanceFlowSpecifications: TGuidanceFlowSpecifications;\n /**\n * Data-seeding overlays exposed to the dev companion.\n *\n * **Optional** in Phase 1 because the engine ships zero seeds yet — the\n * `DataSeedRegistry` and the dispatcher land in Phase 2. Authoring a seed\n * spec without the runtime declaration is allowed (the spec slice is\n * useful as design documentation on its own); authoring a runtime seed\n * without a spec is also allowed (no companion grounding, dispatcher\n * still runs it). Once Phase 2 ships engine seeds this field will be\n * promoted to required, mirroring `systemEmailTemplateSpecifications`.\n *\n * Apps with no app-level seeds should pass an empty\n * `buildDataSeedSpecificationMap()` rather than omitting the field once\n * Phase 2 lands.\n */\n dataSeedSpecifications?: TDataSeedSpecifications;\n /**\n * Application market specification — the English-authored marketing /\n * positioning truth (category, ICPs, personas, jobs/pains/gains, tones\n * of voice, benefits, positionings, message templates). Optional today\n * because not every example app authors a market snapshot yet; once it\n * graduates to required, app bootstraps should run\n * `validateMarketSnapshot` on the value before wiring it here.\n *\n * Authored entirely in English. Geographic targeting (the only\n * \"localization\" the slice models) lives inside\n * `MarketICP.profile.geographies`.\n */\n marketSpecification?: TMarketSnapshot;\n /**\n * Catalog specifications — declarations of EXTERNAL vocabularies the\n * framework reasons about (Schema.org JSON-LD today; future:\n * OpenAPI, RSS, JSON-Feed). Distinct from overlay specs above —\n * overlay specs decorate registry entries (resources, features,\n * views); catalog specs OWN the contract for an external\n * vocabulary's per-entity shape (required / optional / deprecated\n * field declarations).\n *\n * **Composition**: apps spread the engine catalog (e.g.\n * `ENGINE_SCHEMA_ORG_CATALOG`) and append app-side extensions /\n * overrides. The companion's catalog reconciliation runs against\n * this merged surface — emission sites in `@wildo-ai/saas-website`\n * sections (via `getStructuredData()`) are checked against the\n * merged `schemaOrg` catalog, with warnings on missing required\n * fields, deprecated-field usage, and (when wired) missing\n * recommended optionals. Catalog overrides (app entry redefining\n * an engine entry's `@type`) emit a `catalog-override` boot\n * warning.\n *\n * **Optional** in v1 because not every app emits structured data\n * yet. Apps wiring an engine catalog explicitly opt into\n * companion reconciliation by populating the matching slot.\n */\n catalogSpecifications?: TCatalogSpecifications;\n /**\n * Assertion surface — the authored layer of the dynamic Assertion\n * Surface (app-creation meta-workflows, master plan S1): statements\n * about the platform served via the companion `assertions-list` /\n * `assertions-resolve` / `assertions-reconcile` behaviors, with\n * status computed by reconcile rather than hand-maintained.\n *\n * **Optional** — the launch posture of every new family: not every\n * example app authors assertions yet, and the family must not break\n * existing companion exports on arrival. Once it graduates to\n * required, app bootstraps should run\n * `validateAssertionSpecificationSnapshot` on the value before\n * wiring it here (the behavior resolver validates on entry either\n * way, market-style).\n *\n * Lane discipline: entries carrying\n * `lane: AssertionLane.FRAMEWORK_DEV` are framework-development\n * knowledge (end-state platform bets authored in the dogfood app\n * during the framework-parallel era) and must NEVER compile into\n * shipped app knowledge — consumers filter on `lane` deliberately.\n */\n assertionSpecifications?: TAssertionSpecifications;\n // ── app-creation meta-workflows C-4 definition families (U1–U4) — FIELDS ──\n // One field per family, in the SAME fixed order as the generic params\n // above. All four are now registered (U1–U4 done); no reservation remains:\n // 1. visionSpecification (U1 — below)\n // 2. requirementsSpecification (U2 — below)\n // 3. roadmapSpecification (U3 — below)\n // 4. businessModelLiteSpecification (U4 — below, LAST)\n /**\n * Application **vision** specification — the foundational-intent truth\n * (idea, problem statement, mission, success criteria, constraints incl.\n * compliance) the app-creation top-down catalog reads/writes (C-4\n * definition families). A single aggregate per app (market-snapshot\n * style), validated by `validateVisionSnapshot`.\n *\n * **Optional** — the launch posture of every new family (market /\n * assertions parity): not every example app authors a vision snapshot\n * yet, and the family must not break existing companion exports on\n * arrival. Once it graduates to required, app bootstraps should run\n * `validateVisionSnapshot` on the value before wiring it here.\n */\n visionSpecification?: TVisionSnapshot;\n /**\n * Application **requirements** specification — the requirements-layer\n * truth (functional requirements + non-functional requirements, each\n * optionally cross-referencing market ICPs / jobs) the app-creation\n * top-down capability-map catalog reads/writes (C-4 definition\n * families). A single aggregate per app (market-snapshot style),\n * validated by `validateRequirementsSnapshot`.\n *\n * **Optional** — the launch posture of every new family (vision /\n * market / assertions parity): not every example app authors a\n * requirements snapshot yet, and the family must not break existing\n * companion exports on arrival. Once it graduates to required, app\n * bootstraps should run `validateRequirementsSnapshot` on the value\n * before wiring it here.\n */\n requirementsSpecification?: TRequirementsSnapshot;\n /**\n * Application **roadmap** specification — the delivery-roadmap truth (a\n * product's delivery plan as an ordered collection of releases/phases,\n * each optionally cross-referencing the requirements /\n * vision-success-criteria it delivers) the app-creation top-down\n * scope/roadmap catalog reads/writes (C-4 definition families). A single\n * aggregate per app (market-snapshot style), validated by\n * `validateRoadmapSnapshot`. Distinct from `milestoneSpecifications` (a\n * dated registry-overlay surface) — a roadmap phase is a planning\n * artifact, not a runtime milestone.\n *\n * **Optional** — the launch posture of every new family (vision /\n * requirements / market / assertions parity): not every example app\n * authors a roadmap snapshot yet, and the family must not break existing\n * companion exports on arrival. Once it graduates to required, app\n * bootstraps should run `validateRoadmapSnapshot` on the value before\n * wiring it here.\n */\n roadmapSpecification?: TRoadmapSnapshot;\n /**\n * Application **build-plan** specification — the ORDERED typed task graph\n * (`BuildPlanTaskGraph`, `_core/build-plan/`) that turns the accepted domain\n * plan into buildable units; produced by the build-decompose playbook and\n * consumed one READY task at a time by build-dispatch. Optional until an\n * application reaches the bottom-up phase; app bootstraps should run\n * `validateBuildPlanTaskGraph` on the value before wiring it here.\n */\n buildPlanSpecification?: TBuildPlanTaskGraph;\n /**\n * Application **placement** specification — WHERE every settings destination,\n * resource operation and app view sits in the shell, and WHY (`PlacementPlan`,\n * `_core/placement-plan/`).\n *\n * Produced by the `bottom_up.placement-plan` playbook as an expert-panel\n * DELIBERATION rather than a creator elicitation: the creator does not choose\n * placement, so each decision carries a `rationale` that answers \"why is this\n * here?\" without re-running the panel. Consumed by build-decompose, which\n * turns it into the coding tasks that author `settings-hub.config.ts` and\n * `app-shell.config.ts`.\n *\n * Optional until an application reaches the bottom-up phase; app bootstraps\n * should run `validatePlacementPlan` on the value before wiring it here.\n */\n placementPlanSpecification?: TPlacementPlan;\n /**\n * Application **domain-plan** specification — the atomic module decomposition\n * PLUS relationship drafts (`DomainPlanOutputSet`, `_core/domain-plan/`);\n * produced by the domain-plan playbook, decomposed by build-decompose.\n * Optional until an application reaches the bottom-up phase.\n */\n domainPlanSpecification?: TDomainPlanOutputSet;\n /**\n * Application **business-model-lite** specification — the lightweight\n * business-model truth (a coarse product-level revenue model + a pricing-\n * plan sketch, each plan optionally cross-referencing the market ICPs it\n * targets and the requirements it includes) the app-creation top-down\n * catalog reads/writes (C-4 definition families). A single aggregate per\n * app (market-snapshot style), validated by\n * `validateBusinessModelLiteSnapshot`. A PLANNING artifact — deliberately\n * NOT the live billing / Stripe product-catalog runtime (it models\n * pricing INTENT, never chargeable state). The `-lite` is the\n * scaffold-depth qualifier of the Phase-J1 increment; the artifact-family\n * id is `business-model`.\n *\n * **Optional** — the launch posture of every new family (vision /\n * requirements / roadmap / market / assertions parity): not every example\n * app authors a business-model snapshot yet, and the family must not break\n * existing companion exports on arrival. Once it graduates to required,\n * app bootstraps should run `validateBusinessModelLiteSnapshot` on the\n * value before wiring it here.\n */\n businessModelLiteSpecification?: TBusinessModelLiteSnapshot;\n /**\n * Application **brand** specification — the visual-identity brief (brand\n * name + logo direction + visual tone; `resolvedAssets` populated by the\n * companion logo step) the app-creation top-down `brand-identity` playbook\n * reads/writes. A single aggregate per app (vision-snapshot style),\n * validated by `validateBrandSnapshot`. Read by the companion\n * `brand-render-prompt` behavior to assemble the logo generation prompt;\n * the artifact-family id is `brand-brief`.\n *\n * **Optional** — the launch posture of every new family: not every example\n * app authors a brand snapshot yet, and the family must not break existing\n * companion exports on arrival.\n */\n brandSpecification?: TBrandSnapshot;\n /**\n * Application **expert-persona charters** — the DERIVED worker-persona\n * instances (`ExpertPersonaCharter[]`) of the framework's\n * `EXPERT_ROLE_TEMPLATES` (art-director, copy-chief, …), committed under\n * `specifications/src/personas/` by the companion's derive→accept flow\n * (and hand-editable thereafter; a human edit is recorded in `authored`).\n *\n * Consumed by the companion's `expert-persona-charters` introspection\n * behavior: the deliberation system builds each expert's agent from the\n * committed charter at startup, and the accept step reads the set for its\n * human-edit overwrite guard + `validateExpertPersonaCharters` run.\n *\n * PLURAL by design (unlike the singleton snapshot families above): an app\n * has one charter per role, several roles. Distinct from the market\n * family's `personas` (BUYER personas — who the app sells to); these are\n * WORKER personas (who does the creative work).\n *\n * **Optional** — the launch posture of every new family: not every example\n * app has derived charters yet, and the family must not break existing\n * companion exports on arrival. Apps with charters should export the\n * generated `appExpertPersonaCharters` aggregate from\n * `specifications/src/personas/`.\n */\n expertPersonaCharters?: TExpertPersonaCharters;\n /**\n * Accepted **feature drafts** produced by the top-down capability-map.\n *\n * Drafts carry product intent only: purpose, business role, lifecycle and\n * availability guidance. They deliberately exclude runtime-definition\n * provenance and executable scope. Phase-gate and domain-planning evidence\n * consume this member; `featureSpecifications` remains the separate\n * runtime-backed overlay surface used after capabilities are implemented.\n *\n * **Optional** at the aggregate contract boundary because applications that\n * have not entered the app-creation workflow may not have accepted drafts.\n * A treatment selecting the `feature-drafts` family fails closed when the\n * member is absent.\n */\n featureDraftsSpecification?: TFeatureSpecificationDrafts;\n /**\n * Accepted application **compliance program** policy.\n *\n * This is the configured application's reusable source/scope/objective,\n * implementation-choice, responsibility, gap/exception and documentation\n * truth. It deliberately excludes live organizations, assignees, reviewer\n * identities, evidence bytes and operating-effectiveness claims.\n *\n * **Optional** at launch. If the application declares the\n * `compliance-program` family, the semantic family authority requires this\n * member and validates it fail closed. Applications without that family must\n * not synthesize this value or receive positive compliance-program claims.\n */\n complianceSpecification?: TComplianceSpecification;\n /**\n * Accepted application **public-document publication variants**.\n *\n * The exact locale × jurisdiction combinations in which this application\n * publishes public governed documents. It is the ONLY source a governed\n * document candidate may take its locale and jurisdictions from: the\n * candidate host seals these bytes into a publication-variant authority\n * bound to the `document-publication` family's retained head, and refuses\n * any combination that is not an exact member.\n *\n * Distinct from `complianceSpecification` by design. The assurance program\n * decides which documents are required and who approves them; this slot\n * decides where and in which language they are published. Folding the two\n * would let a document requirement widen its own publication routing.\n *\n * **Optional** at the aggregate contract boundary. An application that\n * declares no `document-publication` family publishes no public governed\n * document, and candidate creation fails closed rather than defaulting to a\n * locale or jurisdiction nobody accepted.\n */\n documentPublicationSpecification?: TDocumentPublicationSpecification;\n /**\n * Accepted application selection of the human release lane for each exact\n * governed-document requirement. Optional at the aggregate boundary: an\n * application with no policy can still generate a working draft, but every\n * exposure attempt fails closed rather than assuming operator attestation or\n * qualified review.\n */\n documentReleasePolicySpecification?: TDocumentReleasePolicySpecification;\n /**\n * Accepted application **governed-document facts**.\n *\n * This optional slot carries raw application, creator-decision and\n * qualified-review fact declarations from the dedicated `document-facts`\n * specification family. The application-creation host validates the exact\n * accepted family head and seals derived contribution digests and validation\n * receipts; application code never authors those host identities.\n *\n * Reviewer authority grants, review decisions, candidates and immutable\n * releases are runtime/private custody and are forbidden from this slot.\n * Omitting it is honest: unresolved document facts remain visible gaps.\n */\n documentFactSpecification?: TDocumentFactSpecification;\n /**\n * Accepted application governed-document facts **only a human may establish** — a creator decision\n * or a qualified review (`document-facts-authored`).\n *\n * The same shape as the slot above, and a separate family on purpose. `refinement.document-facts`\n * rewrites the derived file whole, so a human decision sharing that file is destroyed on the next\n * run with nothing to notice: there is no compare-and-swap here, deliberately\n * (`.claude/rules/one-source-of-truth.md` Rule 0). Two families put the two writers out of each\n * other's reach.\n *\n * No producer may write this family — it has no generation contract, and that absence is the design\n * rather than an omission.\n *\n * A reader wanting \"the application's facts\" needs BOTH slots. `collectComplianceDocumentFactAvailability`\n * is variadic for exactly that reason.\n */\n authoredDocumentFactSpecification?: TAuthoredDocumentFactSpecification;\n /**\n * WHO else processes this application's personal data — legal identity, processing region and the\n * processor's own subprocessors (issue #88).\n *\n * A configured provider already establishes THAT a third party is involved and what function it\n * performs. None of that is what a privacy notice's recipient statement needs, and an\n * international-transfer statement cannot be made at all without a region.\n *\n * Optional, and its holes are reported rather than blocking: the companion compares this register\n * against the application's CONFIGURED providers and names each one that is undeclared, so a partial\n * register is useful and an empty one still produces an actionable document. An absent entry means\n * nobody has established that processor's identity — never that the provider is unused.\n */\n processorRegister?: TProcessorRegister;\n /**\n * Accepted application-declared semantic causality between whole\n * specification-family states. This is not the registry's physical\n * dependency graph and not Actor/Flow execution order. The runtime resolves\n * these declarations only through the exact CURRENT accepted projection,\n * then may derive a rebuildable impact index; this export itself does not\n * authorize a journal write, review queue or application mutation.\n *\n * Optional because semantic impact is an advanced application-creation\n * capability. An application that declares the dedicated\n * `semantic-dependencies` family must provide this field; a resolver refuses\n * a missing or malformed value rather than infer dependencies from imports\n * or registry edges.\n */\n}\n\n/**\n * Aggregate of every catalog vocabulary an app can wire on the\n * `catalogSpecifications` companion-exports slot.\n *\n * Each vocabulary is a flat array of validated entries (engine\n * + app entries merged at wiring time). The companion harness keys\n * each vocabulary by its discriminator (`@type` for Schema.org;\n * future vocabularies can use `operationId`, `kind`, etc.); app\n * entries silently override engine entries on collision and the\n * harness emits a `catalog-override` warning for each override at\n * boot.\n *\n * **Why an aggregate type and not per-slot fields**: every future\n * vocabulary lands as a sibling field on this single type rather\n * than as a new top-level companion-exports field. This keeps the\n * `SpecificationsCompanionExports` shape stable as the catalog\n * surface grows.\n */\nexport interface CatalogSpecifications {\n /**\n * Schema.org JSON-LD vocabulary catalog. Compose with\n * `ENGINE_SCHEMA_ORG_CATALOG` (engine-shipped standard entries)\n * spread, then append app-side extensions / overrides.\n */\n schemaOrg?: readonly SchemaOrgCatalogEntryBase[];\n}\n/** @wildo_source:part:end saas.specifications.companion-exports.contract */\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"application-api-keys.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/application-api-keys.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,qBAAqB,IAAI,EAAE,EAG5B,MAAM,uBAAuB,CAAC;AAmC/B;;;GAGG;AACH,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;iCAoZnD,CAAC"}
1
+ {"version":3,"file":"application-api-keys.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/application-api-keys.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,qBAAqB,IAAI,EAAE,EAG5B,MAAM,uBAAuB,CAAC;AAoC/B;;;GAGG;AACH,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;iCAqZnD,CAAC"}
@@ -3,6 +3,7 @@ import { LabelAudience } from '@wildo-ai/presets-components-models';
3
3
  import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
4
4
  import { ApiKeyApplicationSchema, ApiKeyScope, ApiKeyStatus, AppApiKeys_Operations, CORE_APP_ROLES, CoreResourceOperation as Op, ResourcePrimaryScope, appApiKeysResourceConfiguration_InitializationFactory as appApiKeysFactory, } from '@wildo-ai/saas-models';
5
5
  import { HttpResponseStatusCode, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
6
+ import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
6
7
  const appApiKeysUIBehavior = appApiKeysUIBehaviorSource;
7
8
  const APPLICATION_API_KEY_RECORD_EXAMPLE = {
8
9
  _id: 'appkey_01JEXAMPLE',
@@ -31,6 +32,7 @@ export const applicationApiKeysResourceSpecification = resourceSpecificationFrom
31
32
  businessRole: 'App-admin credential distinct from end-user sessions and from organization keys.',
32
33
  lifecycleRole: 'Created, rotated and deactivated by application administrators; ordinary application members cannot manage these credentials. Per-key request analytics are not currently recorded.',
33
34
  audience: LabelAudience.DEVELOPER,
35
+ subDomain: EngineResourceSubDomain.APPLICATIONS,
34
36
  codeHandling: {
35
37
  mainSchema: {
36
38
  packageName: '@wildo-ai/saas-models',
@@ -1 +1 @@
1
- {"version":3,"file":"application-api-keys.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/application-api-keys.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4CAA4C,IAAI,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1H,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,uBAAuB,EACvB,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EACpB,qDAAqD,IAAI,iBAAiB,GAC3E,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AAOrC,MAAM,oBAAoB,GAAG,0BAA0E,CAAC;AAExG,MAAM,kCAAkC,GAAG;IACzC,GAAG,EAAE,mBAAmB;IACxB,IAAI,EAAE,8BAA8B;IACpC,WAAW,EAAE,sEAAsE;IACnF,KAAK,EAAE,WAAW,CAAC,WAAW;IAC9B,KAAK,EAAE,CAAC,cAAc,CAAC,gBAAgB,CAAC;IACxC,MAAM,EAAE,YAAY,CAAC,MAAM;IAC3B,SAAS,EAAE,0BAA0B;IACrC,UAAU,EAAE,0BAA0B;IACtC,SAAS,EAAE,0BAA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A6J,EAAE,SAAS,EAAE,4CAA4C,EAAE;QAC9O,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,0EAA0E,EAAE,SAAS,EAAE,sEAAsE,EAAE;QACrL,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,kGAAkG,EAAE,SAAS,EAAE,+DAA+D,EAAE;QACxM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,sEAAsE,EAAE,SAAS,EAAE,8CAA8C,EAAE;QAC3J,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,qEAAqE,EAAE,SAAS,EAAE,gFAAgF,EAAE;QAC/M,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,sFAAsF,EAAE,SAAS,EAAE,+EAA+E,EAAE;QACnO,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,+EAA+E,EAAE,SAAS,EAAE,6DAA6D,EAAE;QAC1M,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,8CAA8C,EAAE,SAAS,EAAE,4DAA4D,EAAE;QACxK,CAAC,qBAAqB,CAAC,aAAa,CAAC,EAAE,EAAE,OAAO,EAAE,mDAAmD,EAAE,SAAS,EAAE,kDAAkD,EAAE;QACtK,CAAC,qBAAqB,CAAC,WAAW,CAAC,EAAE,EAAE,OAAO,EAAE,kFAAkF,EAAE,SAAS,EAAE,uCAAuC,EAAE;KACzL;CACF,CAAC,CACH,CAAC","sourcesContent":["import { appApiKeysApplicationAdminResourceUIBehavior as appApiKeysUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n ApiKeyApplicationSchema,\n ApiKeyScope,\n ApiKeyStatus,\n AppApiKeys_Operations,\n CORE_APP_ROLES,\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n appApiKeysResourceConfiguration_InitializationFactory as appApiKeysFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\ntype Cfg = ReturnType<typeof appApiKeysFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst appApiKeysUIBehavior = appApiKeysUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nconst APPLICATION_API_KEY_RECORD_EXAMPLE = {\n _id: 'appkey_01JEXAMPLE',\n name: 'Customer provisioning worker',\n description: 'Application-level credential for the tenant provisioning automation.',\n scope: ApiKeyScope.APPLICATION,\n roles: [CORE_APP_ROLES.APP_ADMIN_VIEWER],\n status: ApiKeyStatus.ACTIVE,\n expiresAt: '2099-06-15T00:00:00.000Z',\n lastUsedAt: '2026-08-18T09:48:00.000Z',\n createdAt: '2026-07-01T08:00:00.000Z',\n updatedAt: '2026-08-18T09:48:00.000Z',\n applicationId: 'app_01JEXAMPLE',\n keyPrefix: 'sk_app_a',\n} as const;\n\nconst APPLICATION_API_KEY_PAGE_EXAMPLE = {\n data: [APPLICATION_API_KEY_RECORD_EXAMPLE],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n} as const;\n\n/**\n * Application API keys: UI is authored under `buildApplicationAdminPresets` in\n * `application.resource-presets.tsx` (tab under app admin) — not in `security` presets.\n */\nexport const applicationApiKeysResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(appApiKeysUIBehavior),\n resourceSpecification(\n appApiKeysFactory,\n ApiKeyApplicationSchema,\n ({ schemaShape }) => ({\n purpose: 'Application-scoped API keys: secrets for calling backend APIs in app-level automation and integration contexts.',\n businessRole: 'App-admin credential distinct from end-user sessions and from organization keys.',\n lifecycleRole: 'Created, rotated and deactivated by application administrators; ordinary application members cannot manage these credentials. Per-key request analytics are not currently recorded.',\n audience: LabelAudience.DEVELOPER,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApiKeyApplicationSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'appApiKeysResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'APPLICATION_API_KEYS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AppApiKeys_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'appApiKeysApplicationAdminResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n name: schemaShape.name.stringSpec({\n meaning: 'Label for the key in app-admin UI.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Whether the app key is allowed to authenticate.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApiKeyStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [ApiKeyStatus.ACTIVE]: { meaning: 'Key may be used within policy and expiry.' },\n [ApiKeyStatus.INACTIVE]: { meaning: 'Revoked or disabled; authentications should fail.' },\n [ApiKeyStatus.EXPIRED]: { meaning: 'Past its validity window; treat as invalid.' },\n },\n }),\n keyPrefix: schemaShape.keyPrefix.stringSpec({\n meaning: 'Short prefix for support correlation (not the full secret).',\n }),\n roles: schemaShape.roles.arraySpec({\n meaning: 'Roles embedded on the key; every request authenticated with it inherits exactly these roles, bounding what the integration can do (least-privilege for automation).',\n elementMeaning: 'One role identifier — a core app/org role token or an app-defined custom role string.',\n // Element is a union of `CORE_APP_ROLES` + `CORE_ORG_ROLES` + a free\n // custom-role string; the shape validator requires ONE enum vocabulary\n // to advertise, so we name the app-scope enum (the primary vocabulary\n // for an application key). Org tokens and custom strings remain valid\n // per `elementMeaning`.\n elementType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CORE_APP_ROLES',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n }),\n applicationId: schemaShape.applicationId.stringSpec({ meaning: 'Immutable owning application for this key record.' }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Optional hard stop for validity.' }),\n previousKeyInvalidationDate: schemaShape.previousKeyInvalidationDate.dateSpec({\n meaning: 'After a rotation, when the PRIOR secret stops authenticating; during this grace window both secrets work so integrations can migrate without downtime (absent/null after a regenerate = prior secret valid until the next rotation).',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Inspect a single app key without exposing the hashed secret in responses.',\n outcome: 'The key metadata is returned to an application super administrator; secret material is never returned by this operation.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key metadata (never the hashed secret) was found and returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; every public variant of this resource is `APP_ADMIN_SUPER_ADMIN`-only.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No app key exists for the supplied id in the caller’s application scope.' },\n ],\n idempotent: true,\n examples: [{ title: 'Inspect an application automation key', response: APPLICATION_API_KEY_RECORD_EXAMPLE, forStatus: HttpResponseStatusCode.OK_200 }],\n variants: {\n context: { examples: [] },\n summary: { examples: [] },\n },\n },\n [Op.LIST]: {\n purpose: 'List keys in app scope for admin users.',\n outcome: 'Rows in the app-admin key tab and related entry points.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of app keys in the caller’s application scope.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; key inventory is `APP_ADMIN_SUPER_ADMIN`-only.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Browse application automation keys',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: APPLICATION_API_KEY_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: { examples: [] },\n summary: { examples: [] },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Find application API keys by the documented administrative filters and sort order.',\n outcome: 'Narrowing large key sets with admin-only filter fields.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of app keys matching the admin filter/sort criteria.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; the admin search variant is `APP_ADMIN_SUPER_ADMIN`-only.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Find active expiring provisioning keys',\n request: { q: 'provisioning', status: ApiKeyStatus.ACTIVE, hasExpiration: true, page: 1, limit: 20, sort: 'lastUsedAt:desc' },\n response: APPLICATION_API_KEY_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Create a new application API key for an integration or automation client.',\n outcome: 'The key is created, application administrators are notified, and its plaintext value is returned exactly once. Later reads expose only its prefix.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The key was minted; the response carries the one-time plaintext secret alongside the persisted metadata.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The key name, roles, or expiry payload fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; minting keys is a high-risk `APP_ADMIN_SUPER_ADMIN`-only operation.' },\n ],\n idempotent: false,\n rateLimitNote: 'Key minting is high-risk credential issuance and is rate-limited per application to slow credential-spraying and accidental bulk creation.',\n examples: [\n {\n title: 'Mint an application API key',\n request: {\n name: 'Customer provisioning worker',\n description: 'Application-level credential for the tenant provisioning automation.',\n roles: [CORE_APP_ROLES.APP_ADMIN_VIEWER],\n status: ApiKeyStatus.ACTIVE,\n expiresAt: '2099-06-15T00:00:00.000Z',\n },\n response: {\n ...APPLICATION_API_KEY_RECORD_EXAMPLE,\n hashedKey: '5200d0cc738d17e85e00689b77528b1194623ef0f6793739a8a477fe66c59ca1',\n plainKey: 'sk_app_a_example-secret-returned-once',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the application API-key row when its owning application is deleted (composition `onParentDelete` cascade).',\n outcome: 'Every API key under the application is removed together with the application — the composition parts do not outlive their whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The application API-key row was deleted as part of the owning application’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (APP_ADMIN_SUPER_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n [AppApiKeys_Operations.ROTATE]: {\n operationId: AppApiKeys_Operations.ROTATE,\n purpose: 'Reissue a key with invalidation of the old material at a specified boundary.',\n outcome: 'The new plaintext key is returned exactly once. The previous key remains valid until the requested invalidation time so integrations can migrate without downtime.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key was rotated; the response carries the new one-time plaintext and the old-material cutover fields.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The rotation boundary/cutover payload fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; rotation is a high-risk `APP_ADMIN_SUPER_ADMIN`-only operation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation declares `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Rotation hands back the replacement in plaintext and establishes when the previous key becomes unusable, so holding a live session is deliberately not sufficient — obtain a token from the re-authentication route and retry with it.', errorCode: 'STEP_UP_REQUIRED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No app key exists for the supplied id in the caller’s application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is in a state where rotation is not allowed (e.g. it is already inactive or expired).' },\n ],\n idempotent: false,\n rateLimitNote: 'Rotation issues fresh secret material and is rate-limited per key to prevent rapid re-rotation that would churn the credential cutover window.',\n examples: [\n {\n title: 'Rotate a key with a cutover window',\n request: {\n oldKeyInvalidationDate: '2099-01-02T00:00:00.000Z',\n },\n response: {\n ...APPLICATION_API_KEY_RECORD_EXAMPLE,\n keyPrefix: 'sk_app_b',\n previousKeyPrefix: APPLICATION_API_KEY_RECORD_EXAMPLE.keyPrefix,\n previousKeyInvalidationDate: '2099-01-02T00:00:00.000Z',\n plainKey: 'sk_app_b_example-secret-returned-once',\n oldKeyId: APPLICATION_API_KEY_RECORD_EXAMPLE._id,\n oldKeyInvalidationDate: '2099-01-02T00:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [AppApiKeys_Operations.REGENERATE]: {\n operationId: AppApiKeys_Operations.REGENERATE,\n purpose: 'Generate a new secret without the full rotate lifecycle semantics.',\n outcome: 'The new plaintext key is returned exactly once, administrators are notified, and the previous key remains valid until a later rotation completes the cutover.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A fresh secret was generated for the existing key record; the response carries the new one-time plaintext.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; regeneration is `APP_ADMIN_SUPER_ADMIN`-only.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No app key exists for the supplied id in the caller’s application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is in a state where regenerating the secret is not allowed (e.g. it is inactive or expired).' },\n ],\n idempotent: false,\n rateLimitNote: 'Secret regeneration is rate-limited per key for the same credential-hygiene reasons as rotation.',\n examples: [{\n title: 'Regenerate with an open migration overlap',\n request: {},\n response: {\n ...APPLICATION_API_KEY_RECORD_EXAMPLE,\n keyPrefix: 'sk_app_c',\n previousKeyPrefix: APPLICATION_API_KEY_RECORD_EXAMPLE.keyPrefix,\n plainKey: 'sk_app_c_example-secret-returned-once',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [AppApiKeys_Operations.DEACTIVATE]: {\n operationId: AppApiKeys_Operations.DEACTIVATE,\n purpose: 'Disable an active key in place for policy or incident control.',\n outcome: 'Key becomes inactive; may notify administrators.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key is inactive and the updated record is returned. This operation accepts an empty JSON object.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; deactivation is `APP_ADMIN_SUPER_ADMIN`-only.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No app key exists for the supplied id in the caller’s application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is already inactive or expired, so deactivation is not a legal transition.' },\n ],\n // NOT idempotent: the ACTIVE precondition flips on the first call, so a repeat is the\n // 409 above rather than a second 200.\n idempotent: false,\n examples: [{\n title: 'Deactivate a compromised application key',\n request: {},\n response: { ...APPLICATION_API_KEY_RECORD_EXAMPLE, status: ApiKeyStatus.INACTIVE },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [AppApiKeys_Operations.REACTIVATE]: {\n operationId: AppApiKeys_Operations.REACTIVATE,\n purpose: 'Re-enable a key that is currently inactive.',\n outcome: 'Key returns to active for permitted flows.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key is active again and the updated record is returned. This operation accepts an empty JSON object.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; reactivation is `APP_ADMIN_SUPER_ADMIN`-only.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No app key exists for the supplied id in the caller’s application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is expired or already active, so reactivation is not a legal transition.' },\n ],\n // NOT idempotent: the INACTIVE precondition flips on the first call, so a repeat is the\n // 409 above rather than a second 200.\n idempotent: false,\n examples: [{\n title: 'Reactivate a remediated application key',\n request: {},\n response: APPLICATION_API_KEY_RECORD_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [AppApiKeys_Operations.EXTEND_EXPIRY]: {\n operationId: AppApiKeys_Operations.EXTEND_EXPIRY,\n purpose: 'Postpone expiry for a key that already has an expiration date.',\n outcome: 'New expiry instant stored on the row.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key’s `expiresAt` was moved to the requested later instant and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The new expiry instant is missing or fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; extending expiry is `APP_ADMIN_SUPER_ADMIN`-only.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No app key exists for the supplied id in the caller’s application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key has no `expiresAt` value, so there is no existing expiry to extend.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Extend a key before its scheduled expiry',\n request: { newExpiresAt: '2099-12-31T00:00:00.000Z' },\n response: { ...APPLICATION_API_KEY_RECORD_EXAMPLE, expiresAt: '2099-12-31T00:00:00.000Z' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [AppApiKeys_Operations.USAGE_STATS]: {\n operationId: AppApiKeys_Operations.USAGE_STATS,\n purpose: 'Return the current application API-key usage-statistics response contract.',\n outcome: 'The current runtime has no per-key usage data source and returns an explicit all-zero placeholder; it must not be interpreted as proof that the key was unused.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A schema-valid all-zero placeholder is returned until per-key usage tracking is implemented.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; usage analytics are `APP_ADMIN_SUPER_ADMIN`-only.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No app key exists for the supplied id in the caller’s application scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Current all-zero placeholder',\n response: {\n keyId: APPLICATION_API_KEY_RECORD_EXAMPLE._id,\n totalRequests: 0,\n requestsLastHour: 0,\n requestsLastDay: 0,\n requestsLastWeek: 0,\n errorRate: 0,\n rateLimitHits: 0,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'All public HTTP operation variants in the factory are restricted to `APP_ADMIN_SUPER_ADMIN`; do not model member-level access in companion flows.',\n 'Plaintext is only on create/rotate/regenerate responses; avoid implying clients can re-download full secrets from READ.',\n 'ROTATE/REGENERATE keep the prior secret authenticating during a grace window (rotate: until `previousKeyInvalidationDate`; regenerate: until the next rotation); bearer-token auth accepts the current OR the not-yet-invalidated previous secret.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n label: {\n purpose: 'Use the `name` field as the primary list/detail label, consistent with the app-admin UI behavior.',\n },\n layout: {\n purpose: 'Overview, access, and lifecycle groupings in `application` admin presets (same section ids as org keys for cognitive parity).',\n displayPurpose: 'Read and edit share `overview` / `access` / `lifecycle` section refs; create omits a full `lifecycle` block in the edit form per preset code.',\n sections: {\n overview: {\n purpose: 'Name, scope, status, and key prefix in one scan.',\n whenToUse: 'List summaries, read-only, and the create form’s top card.',\n textSlots: {\n title: { purpose: 'Label the key identity and status area.' },\n description: { purpose: 'Reiterate that only a prefix, not a secret, is ever shown in routine views.' },\n },\n },\n access: {\n purpose: 'Roles and description of what this app key is for.',\n whenToUse: 'Explaining and editing integration scope in app admin.',\n textSlots: {\n title: { purpose: 'Label the access block.' },\n description: { purpose: 'Tie the key’s roles to least-privilege expectations for the integration user.' },\n },\n },\n lifecycle: {\n purpose: 'Expiry, last use, and creation timestamps in read and summary templates.',\n whenToUse: 'Read-only in display/summary; create flow focuses on `overview` + `access` per preset implementation.',\n textSlots: {\n title: { purpose: 'Label the lifecycle and usage strip in read mode.' },\n description: { purpose: 'Clarify that rotation history is not a substitute for a secret vault.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Primary navigation within app admin when keys are a tab/section; non-addressable in the preset’s view wiring but still the inventory surface for operators.', whenToUse: 'App super-admin app detail → API keys tab.' },\n [Op.READ]: { purpose: 'Read shell for a single app key; non-addressable in default preset list.', whenToUse: 'Drill-in from the key list in app admin UIs when routes expose READ.' },\n [Op.CREATE]: { purpose: 'Create a new app key; plaintext appears only in the create response on success per factory DTOs.', whenToUse: 'First-time integration and additional automation credentials.' },\n [Op.SEARCH]: { purpose: 'Admin search with filter fields defined in the factory for app keys.', whenToUse: 'Finding a key in apps with many credentials.' },\n [AppApiKeys_Operations.ROTATE]: { purpose: 'Rotation workflow; not addressable in default preset `views` array.', whenToUse: 'Security and incident rotation from a key detail or action surface when wired.' },\n [AppApiKeys_Operations.REGENERATE]: { purpose: 'Lighter reissue of secret material; non-addressable in default preset `views` array.', whenToUse: 'When overlap between old and new is acceptable; email notifications may fire.' },\n [AppApiKeys_Operations.DEACTIVATE]: { purpose: 'Disable an active key in place; status-gated in the factory enablement check.', whenToUse: 'Stop traffic for a compromised or obsolete integration key.' },\n [AppApiKeys_Operations.REACTIVATE]: { purpose: 'Undo deactivation for policy-approved reuse.', whenToUse: 'When a key was turned off temporarily rather than deleted.' },\n [AppApiKeys_Operations.EXTEND_EXPIRY]: { purpose: 'Push expiry for keys that have an expiration set.', whenToUse: 'Before automated expiry to avoid service outage.' },\n [AppApiKeys_Operations.USAGE_STATS]: { purpose: 'Usage analytics view for a key; not addressable in default preset `views` array.', whenToUse: 'Admin troubleshooting and SLO review.' },\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"application-api-keys.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/application-api-keys.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4CAA4C,IAAI,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1H,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,uBAAuB,EACvB,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EACpB,qDAAqD,IAAI,iBAAiB,GAC3E,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,MAAM,oBAAoB,GAAG,0BAA0E,CAAC;AAExG,MAAM,kCAAkC,GAAG;IACzC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O,EAAE,kFAAkF,EAAE,SAAS,EAAE,uCAAuC,EAAE;KACzL;CACF,CAAC,CACH,CAAC","sourcesContent":["import { appApiKeysApplicationAdminResourceUIBehavior as appApiKeysUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n ApiKeyApplicationSchema,\n ApiKeyScope,\n ApiKeyStatus,\n AppApiKeys_Operations,\n CORE_APP_ROLES,\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n appApiKeysResourceConfiguration_InitializationFactory as appApiKeysFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof appApiKeysFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst appApiKeysUIBehavior = appApiKeysUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nconst APPLICATION_API_KEY_RECORD_EXAMPLE = {\n _id: 'appkey_01JEXAMPLE',\n name: 'Customer provisioning worker',\n description: 'Application-level credential for the tenant provisioning automation.',\n scope: ApiKeyScope.APPLICATION,\n roles: [CORE_APP_ROLES.APP_ADMIN_VIEWER],\n status: ApiKeyStatus.ACTIVE,\n expiresAt: '2099-06-15T00:00:00.000Z',\n lastUsedAt: '2026-08-18T09:48:00.000Z',\n createdAt: '2026-07-01T08:00:00.000Z',\n updatedAt: '2026-08-18T09:48:00.000Z',\n applicationId: 'app_01JEXAMPLE',\n keyPrefix: 'sk_app_a',\n} as const;\n\nconst APPLICATION_API_KEY_PAGE_EXAMPLE = {\n data: [APPLICATION_API_KEY_RECORD_EXAMPLE],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n} as const;\n\n/**\n * Application API keys: UI is authored under `buildApplicationAdminPresets` in\n * `application.resource-presets.tsx` (tab under app admin) — not in `security` presets.\n */\nexport const applicationApiKeysResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(appApiKeysUIBehavior),\n resourceSpecification(\n appApiKeysFactory,\n ApiKeyApplicationSchema,\n ({ schemaShape }) => ({\n purpose: 'Application-scoped API keys: secrets for calling backend APIs in app-level automation and integration contexts.',\n businessRole: 'App-admin credential distinct from end-user sessions and from organization keys.',\n lifecycleRole: 'Created, rotated and deactivated by application administrators; ordinary application members cannot manage these credentials. Per-key request analytics are not currently recorded.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.APPLICATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApiKeyApplicationSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'appApiKeysResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'APPLICATION_API_KEYS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'AppApiKeys_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'appApiKeysApplicationAdminResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n name: schemaShape.name.stringSpec({\n meaning: 'Label for the key in app-admin UI.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Whether the app key is allowed to authenticate.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApiKeyStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [ApiKeyStatus.ACTIVE]: { meaning: 'Key may be used within policy and expiry.' },\n [ApiKeyStatus.INACTIVE]: { meaning: 'Revoked or disabled; authentications should fail.' },\n [ApiKeyStatus.EXPIRED]: { meaning: 'Past its validity window; treat as invalid.' },\n },\n }),\n keyPrefix: schemaShape.keyPrefix.stringSpec({\n meaning: 'Short prefix for support correlation (not the full secret).',\n }),\n roles: schemaShape.roles.arraySpec({\n meaning: 'Roles embedded on the key; every request authenticated with it inherits exactly these roles, bounding what the integration can do (least-privilege for automation).',\n elementMeaning: 'One role identifier — a core app/org role token or an app-defined custom role string.',\n // Element is a union of `CORE_APP_ROLES` + `CORE_ORG_ROLES` + a free\n // custom-role string; the shape validator requires ONE enum vocabulary\n // to advertise, so we name the app-scope enum (the primary vocabulary\n // for an application key). Org tokens and custom strings remain valid\n // per `elementMeaning`.\n elementType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CORE_APP_ROLES',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n }),\n applicationId: schemaShape.applicationId.stringSpec({ meaning: 'Immutable owning application for this key record.' }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Optional hard stop for validity.' }),\n previousKeyInvalidationDate: schemaShape.previousKeyInvalidationDate.dateSpec({\n meaning: 'After a rotation, when the PRIOR secret stops authenticating; during this grace window both secrets work so integrations can migrate without downtime (absent/null after a regenerate = prior secret valid until the next rotation).',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Inspect a single app key without exposing the hashed secret in responses.',\n outcome: 'The key metadata is returned to an application super administrator; secret material is never returned by this operation.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key metadata (never the hashed secret) was found and returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; every public variant of this resource is `APP_ADMIN_SUPER_ADMIN`-only.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No app key exists for the supplied id in the caller’s application scope.' },\n ],\n idempotent: true,\n examples: [{ title: 'Inspect an application automation key', response: APPLICATION_API_KEY_RECORD_EXAMPLE, forStatus: HttpResponseStatusCode.OK_200 }],\n variants: {\n context: { examples: [] },\n summary: { examples: [] },\n },\n },\n [Op.LIST]: {\n purpose: 'List keys in app scope for admin users.',\n outcome: 'Rows in the app-admin key tab and related entry points.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of app keys in the caller’s application scope.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; key inventory is `APP_ADMIN_SUPER_ADMIN`-only.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Browse application automation keys',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: APPLICATION_API_KEY_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: { examples: [] },\n summary: { examples: [] },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Find application API keys by the documented administrative filters and sort order.',\n outcome: 'Narrowing large key sets with admin-only filter fields.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of app keys matching the admin filter/sort criteria.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; the admin search variant is `APP_ADMIN_SUPER_ADMIN`-only.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Find active expiring provisioning keys',\n request: { q: 'provisioning', status: ApiKeyStatus.ACTIVE, hasExpiration: true, page: 1, limit: 20, sort: 'lastUsedAt:desc' },\n response: APPLICATION_API_KEY_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Create a new application API key for an integration or automation client.',\n outcome: 'The key is created, application administrators are notified, and its plaintext value is returned exactly once. Later reads expose only its prefix.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The key was minted; the response carries the one-time plaintext secret alongside the persisted metadata.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The key name, roles, or expiry payload fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; minting keys is a high-risk `APP_ADMIN_SUPER_ADMIN`-only operation.' },\n ],\n idempotent: false,\n rateLimitNote: 'Key minting is high-risk credential issuance and is rate-limited per application to slow credential-spraying and accidental bulk creation.',\n examples: [\n {\n title: 'Mint an application API key',\n request: {\n name: 'Customer provisioning worker',\n description: 'Application-level credential for the tenant provisioning automation.',\n roles: [CORE_APP_ROLES.APP_ADMIN_VIEWER],\n status: ApiKeyStatus.ACTIVE,\n expiresAt: '2099-06-15T00:00:00.000Z',\n },\n response: {\n ...APPLICATION_API_KEY_RECORD_EXAMPLE,\n hashedKey: '5200d0cc738d17e85e00689b77528b1194623ef0f6793739a8a477fe66c59ca1',\n plainKey: 'sk_app_a_example-secret-returned-once',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the application API-key row when its owning application is deleted (composition `onParentDelete` cascade).',\n outcome: 'Every API key under the application is removed together with the application — the composition parts do not outlive their whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The application API-key row was deleted as part of the owning application’s deletion cascade.' },\n ],\n // REPOSITORY_ONLY variant (APP_ADMIN_SUPER_ADMIN) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n [AppApiKeys_Operations.ROTATE]: {\n operationId: AppApiKeys_Operations.ROTATE,\n purpose: 'Reissue a key with invalidation of the old material at a specified boundary.',\n outcome: 'The new plaintext key is returned exactly once. The previous key remains valid until the requested invalidation time so integrations can migrate without downtime.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key was rotated; the response carries the new one-time plaintext and the old-material cutover fields.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The rotation boundary/cutover payload fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; rotation is a high-risk `APP_ADMIN_SUPER_ADMIN`-only operation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The operation declares `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Rotation hands back the replacement in plaintext and establishes when the previous key becomes unusable, so holding a live session is deliberately not sufficient — obtain a token from the re-authentication route and retry with it.', errorCode: 'STEP_UP_REQUIRED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No app key exists for the supplied id in the caller’s application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is in a state where rotation is not allowed (e.g. it is already inactive or expired).' },\n ],\n idempotent: false,\n rateLimitNote: 'Rotation issues fresh secret material and is rate-limited per key to prevent rapid re-rotation that would churn the credential cutover window.',\n examples: [\n {\n title: 'Rotate a key with a cutover window',\n request: {\n oldKeyInvalidationDate: '2099-01-02T00:00:00.000Z',\n },\n response: {\n ...APPLICATION_API_KEY_RECORD_EXAMPLE,\n keyPrefix: 'sk_app_b',\n previousKeyPrefix: APPLICATION_API_KEY_RECORD_EXAMPLE.keyPrefix,\n previousKeyInvalidationDate: '2099-01-02T00:00:00.000Z',\n plainKey: 'sk_app_b_example-secret-returned-once',\n oldKeyId: APPLICATION_API_KEY_RECORD_EXAMPLE._id,\n oldKeyInvalidationDate: '2099-01-02T00:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [AppApiKeys_Operations.REGENERATE]: {\n operationId: AppApiKeys_Operations.REGENERATE,\n purpose: 'Generate a new secret without the full rotate lifecycle semantics.',\n outcome: 'The new plaintext key is returned exactly once, administrators are notified, and the previous key remains valid until a later rotation completes the cutover.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A fresh secret was generated for the existing key record; the response carries the new one-time plaintext.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; regeneration is `APP_ADMIN_SUPER_ADMIN`-only.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No app key exists for the supplied id in the caller’s application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is in a state where regenerating the secret is not allowed (e.g. it is inactive or expired).' },\n ],\n idempotent: false,\n rateLimitNote: 'Secret regeneration is rate-limited per key for the same credential-hygiene reasons as rotation.',\n examples: [{\n title: 'Regenerate with an open migration overlap',\n request: {},\n response: {\n ...APPLICATION_API_KEY_RECORD_EXAMPLE,\n keyPrefix: 'sk_app_c',\n previousKeyPrefix: APPLICATION_API_KEY_RECORD_EXAMPLE.keyPrefix,\n plainKey: 'sk_app_c_example-secret-returned-once',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [AppApiKeys_Operations.DEACTIVATE]: {\n operationId: AppApiKeys_Operations.DEACTIVATE,\n purpose: 'Disable an active key in place for policy or incident control.',\n outcome: 'Key becomes inactive; may notify administrators.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key is inactive and the updated record is returned. This operation accepts an empty JSON object.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; deactivation is `APP_ADMIN_SUPER_ADMIN`-only.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No app key exists for the supplied id in the caller’s application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is already inactive or expired, so deactivation is not a legal transition.' },\n ],\n // NOT idempotent: the ACTIVE precondition flips on the first call, so a repeat is the\n // 409 above rather than a second 200.\n idempotent: false,\n examples: [{\n title: 'Deactivate a compromised application key',\n request: {},\n response: { ...APPLICATION_API_KEY_RECORD_EXAMPLE, status: ApiKeyStatus.INACTIVE },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [AppApiKeys_Operations.REACTIVATE]: {\n operationId: AppApiKeys_Operations.REACTIVATE,\n purpose: 'Re-enable a key that is currently inactive.',\n outcome: 'Key returns to active for permitted flows.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key is active again and the updated record is returned. This operation accepts an empty JSON object.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; reactivation is `APP_ADMIN_SUPER_ADMIN`-only.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No app key exists for the supplied id in the caller’s application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key is expired or already active, so reactivation is not a legal transition.' },\n ],\n // NOT idempotent: the INACTIVE precondition flips on the first call, so a repeat is the\n // 409 above rather than a second 200.\n idempotent: false,\n examples: [{\n title: 'Reactivate a remediated application key',\n request: {},\n response: APPLICATION_API_KEY_RECORD_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [AppApiKeys_Operations.EXTEND_EXPIRY]: {\n operationId: AppApiKeys_Operations.EXTEND_EXPIRY,\n purpose: 'Postpone expiry for a key that already has an expiration date.',\n outcome: 'New expiry instant stored on the row.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The key’s `expiresAt` was moved to the requested later instant and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The new expiry instant is missing or fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; extending expiry is `APP_ADMIN_SUPER_ADMIN`-only.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No app key exists for the supplied id in the caller’s application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The key has no `expiresAt` value, so there is no existing expiry to extend.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Extend a key before its scheduled expiry',\n request: { newExpiresAt: '2099-12-31T00:00:00.000Z' },\n response: { ...APPLICATION_API_KEY_RECORD_EXAMPLE, expiresAt: '2099-12-31T00:00:00.000Z' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [AppApiKeys_Operations.USAGE_STATS]: {\n operationId: AppApiKeys_Operations.USAGE_STATS,\n purpose: 'Return the current application API-key usage-statistics response contract.',\n outcome: 'The current runtime has no per-key usage data source and returns an explicit all-zero placeholder; it must not be interpreted as proof that the key was unused.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A schema-valid all-zero placeholder is returned until per-key usage tracking is implemented.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; usage analytics are `APP_ADMIN_SUPER_ADMIN`-only.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No app key exists for the supplied id in the caller’s application scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Current all-zero placeholder',\n response: {\n keyId: APPLICATION_API_KEY_RECORD_EXAMPLE._id,\n totalRequests: 0,\n requestsLastHour: 0,\n requestsLastDay: 0,\n requestsLastWeek: 0,\n errorRate: 0,\n rateLimitHits: 0,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'All public HTTP operation variants in the factory are restricted to `APP_ADMIN_SUPER_ADMIN`; do not model member-level access in companion flows.',\n 'Plaintext is only on create/rotate/regenerate responses; avoid implying clients can re-download full secrets from READ.',\n 'ROTATE/REGENERATE keep the prior secret authenticating during a grace window (rotate: until `previousKeyInvalidationDate`; regenerate: until the next rotation); bearer-token auth accepts the current OR the not-yet-invalidated previous secret.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n label: {\n purpose: 'Use the `name` field as the primary list/detail label, consistent with the app-admin UI behavior.',\n },\n layout: {\n purpose: 'Overview, access, and lifecycle groupings in `application` admin presets (same section ids as org keys for cognitive parity).',\n displayPurpose: 'Read and edit share `overview` / `access` / `lifecycle` section refs; create omits a full `lifecycle` block in the edit form per preset code.',\n sections: {\n overview: {\n purpose: 'Name, scope, status, and key prefix in one scan.',\n whenToUse: 'List summaries, read-only, and the create form’s top card.',\n textSlots: {\n title: { purpose: 'Label the key identity and status area.' },\n description: { purpose: 'Reiterate that only a prefix, not a secret, is ever shown in routine views.' },\n },\n },\n access: {\n purpose: 'Roles and description of what this app key is for.',\n whenToUse: 'Explaining and editing integration scope in app admin.',\n textSlots: {\n title: { purpose: 'Label the access block.' },\n description: { purpose: 'Tie the key’s roles to least-privilege expectations for the integration user.' },\n },\n },\n lifecycle: {\n purpose: 'Expiry, last use, and creation timestamps in read and summary templates.',\n whenToUse: 'Read-only in display/summary; create flow focuses on `overview` + `access` per preset implementation.',\n textSlots: {\n title: { purpose: 'Label the lifecycle and usage strip in read mode.' },\n description: { purpose: 'Clarify that rotation history is not a substitute for a secret vault.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Primary navigation within app admin when keys are a tab/section; non-addressable in the preset’s view wiring but still the inventory surface for operators.', whenToUse: 'App super-admin app detail → API keys tab.' },\n [Op.READ]: { purpose: 'Read shell for a single app key; non-addressable in default preset list.', whenToUse: 'Drill-in from the key list in app admin UIs when routes expose READ.' },\n [Op.CREATE]: { purpose: 'Create a new app key; plaintext appears only in the create response on success per factory DTOs.', whenToUse: 'First-time integration and additional automation credentials.' },\n [Op.SEARCH]: { purpose: 'Admin search with filter fields defined in the factory for app keys.', whenToUse: 'Finding a key in apps with many credentials.' },\n [AppApiKeys_Operations.ROTATE]: { purpose: 'Rotation workflow; not addressable in default preset `views` array.', whenToUse: 'Security and incident rotation from a key detail or action surface when wired.' },\n [AppApiKeys_Operations.REGENERATE]: { purpose: 'Lighter reissue of secret material; non-addressable in default preset `views` array.', whenToUse: 'When overlap between old and new is acceptable; email notifications may fire.' },\n [AppApiKeys_Operations.DEACTIVATE]: { purpose: 'Disable an active key in place; status-gated in the factory enablement check.', whenToUse: 'Stop traffic for a compromised or obsolete integration key.' },\n [AppApiKeys_Operations.REACTIVATE]: { purpose: 'Undo deactivation for policy-approved reuse.', whenToUse: 'When a key was turned off temporarily rather than deleted.' },\n [AppApiKeys_Operations.EXTEND_EXPIRY]: { purpose: 'Push expiry for keys that have an expiration set.', whenToUse: 'Before automated expiry to avoid service outage.' },\n [AppApiKeys_Operations.USAGE_STATS]: { purpose: 'Usage analytics view for a key; not addressable in default preset `views` array.', whenToUse: 'Admin troubleshooting and SLO review.' },\n },\n }),\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"application-metadata.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/application-metadata.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,qBAAqB,IAAI,EAAE,EAG5B,MAAM,uBAAuB,CAAC;AAc/B,eAAO,MAAM,wCAAwC;;;;iCA8IpD,CAAC"}
1
+ {"version":3,"file":"application-metadata.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/application-metadata.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,qBAAqB,IAAI,EAAE,EAG5B,MAAM,uBAAuB,CAAC;AAe/B,eAAO,MAAM,wCAAwC;;;;iCA+IpD,CAAC"}
@@ -3,12 +3,14 @@ import { LabelAudience } from '@wildo-ai/presets-components-models';
3
3
  import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
4
4
  import { ApplicationMetadataSchema, CoreResourceOperation as Op, ResourcePrimaryScope, applicationMetadataResourceConfiguration_InitializationFactory as applicationMetadataFactory, } from '@wildo-ai/saas-models';
5
5
  import { HttpResponseStatusCode, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
6
+ import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
6
7
  const applicationMetadataUI = applicationMetadataSource;
7
8
  export const applicationMetadataResourceSpecification = resourceSpecificationFromFrontendConfiguration(resourceFrontendConfiguration(applicationMetadataUI), resourceSpecification(applicationMetadataFactory, ApplicationMetadataSchema, ({ schemaShape }) => ({
8
- purpose: 'Human prose describing the application purpose, marketing fit, and internal notes (distinct from the lean `ApplicationSchema` row).',
9
+ purpose: 'The descriptive text about the application itself: what it is for, who it serves and how it is positioned, kept separately from the application\'s identity record.',
9
10
  businessRole: 'Feeds about pages, app-store-like listings, and support tooling with narrative context.',
10
11
  lifecycleRole: 'Co-updated with branding and GTM; long-form `description` can change more often than slugs.',
11
12
  audience: LabelAudience.DEVELOPER,
13
+ subDomain: EngineResourceSubDomain.APPLICATIONS,
12
14
  codeHandling: {
13
15
  mainSchema: {
14
16
  packageName: '@wildo-ai/saas-models',