@wildo-ai/saas-specifications 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (677) hide show
  1. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts +10 -8
  2. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
  3. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js +14 -13
  4. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.js.map +1 -1
  5. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts +3 -2
  6. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
  7. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js +4 -3
  8. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.js.map +1 -1
  9. package/dist/esm/_catalogs/schema-org/index.d.ts +31 -15
  10. package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
  11. package/dist/esm/_catalogs/schema-org/index.js +34 -13
  12. package/dist/esm/_catalogs/schema-org/index.js.map +1 -1
  13. package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts +2 -2
  14. package/dist/esm/_catalogs/schema-org/product.catalog-spec.js +4 -4
  15. package/dist/esm/_catalogs/schema-org/product.catalog-spec.js.map +1 -1
  16. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts +45 -0
  17. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.d.ts.map +1 -0
  18. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js +58 -0
  19. package/dist/esm/_catalogs/schema-org/software-application.catalog-spec.js.map +1 -0
  20. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +3 -2
  21. package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
  22. package/dist/esm/_core/application-specification-family-identity.schemas.js +3 -2
  23. package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
  24. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +18 -0
  25. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  26. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +39 -13
  27. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  28. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +43 -13
  29. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  30. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +90 -2
  31. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  32. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +70 -6
  33. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  34. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  35. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +26 -4
  36. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  37. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts +14 -0
  38. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
  39. package/dist/esm/_core/business-semantics.specifications.schemas.js.map +1 -1
  40. package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -1
  41. package/dist/esm/_core/capability-composition/capability-composition-validation.js +1 -0
  42. package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -1
  43. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +21 -2
  44. package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
  45. package/dist/esm/_core/capability-composition/capability-composition.schemas.js +20 -1
  46. package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
  47. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +11 -32
  48. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  49. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +70 -3
  50. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  51. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts +142 -17
  52. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  53. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +285 -30
  54. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  55. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +183 -18
  56. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  57. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +165 -18
  58. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  59. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts +139 -0
  60. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.d.ts.map +1 -0
  61. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js +172 -0
  62. package/dist/esm/_core/compliance-documents/recipient-disclosures.schemas.js.map +1 -0
  63. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts +306 -0
  64. package/dist/esm/_core/compliance-documents/recipient-population.schemas.d.ts.map +1 -0
  65. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js +502 -0
  66. package/dist/esm/_core/compliance-documents/recipient-population.schemas.js.map +1 -0
  67. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts +107 -0
  68. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.d.ts.map +1 -0
  69. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js +118 -0
  70. package/dist/esm/_core/compliance-documents/retention-enforcement-facts.schemas.js.map +1 -0
  71. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts +56 -0
  72. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.d.ts.map +1 -0
  73. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js +100 -0
  74. package/dist/esm/_core/compliance-documents/subject-data-recipients.schemas.js.map +1 -0
  75. package/dist/esm/_core/composite-view-specification.schemas.js +8 -1
  76. package/dist/esm/_core/composite-view-specification.schemas.js.map +1 -1
  77. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts +3 -2
  78. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  79. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js +3 -2
  80. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.js.map +1 -1
  81. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts +16 -3
  82. package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
  83. package/dist/esm/_core/experience-plan/experience-plan.schemas.js +70 -5
  84. package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
  85. package/dist/esm/_core/family-aspects.schemas.d.ts +10 -0
  86. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  87. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  88. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +2 -2
  89. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts +1 -0
  90. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
  91. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts +16 -0
  92. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  93. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js +8 -0
  94. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.js.map +1 -1
  95. package/dist/esm/_core/index.d.ts +3 -0
  96. package/dist/esm/_core/index.d.ts.map +1 -1
  97. package/dist/esm/_core/index.js +3 -0
  98. package/dist/esm/_core/index.js.map +1 -1
  99. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +5 -0
  100. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  101. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +3 -1
  102. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -1
  103. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  104. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +12 -2
  105. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  106. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +30 -2
  107. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  108. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +32 -2
  109. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  110. package/dist/esm/_core/market/feature-benefit.schemas.js +2 -2
  111. package/dist/esm/_core/market/feature-benefit.schemas.js.map +1 -1
  112. package/dist/esm/_core/market/market-alternative.schemas.js +2 -2
  113. package/dist/esm/_core/market/market-alternative.schemas.js.map +1 -1
  114. package/dist/esm/_core/market/market-buying-journey.schemas.js +2 -2
  115. package/dist/esm/_core/market/market-buying-journey.schemas.js.map +1 -1
  116. package/dist/esm/_core/market/market-category.schemas.js +2 -2
  117. package/dist/esm/_core/market/market-category.schemas.js.map +1 -1
  118. package/dist/esm/_core/market/market-channel.schemas.js +2 -2
  119. package/dist/esm/_core/market/market-channel.schemas.js.map +1 -1
  120. package/dist/esm/_core/market/market-gain.schemas.js +2 -2
  121. package/dist/esm/_core/market/market-gain.schemas.js.map +1 -1
  122. package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
  123. package/dist/esm/_core/market/market-icp.schemas.js +2 -2
  124. package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
  125. package/dist/esm/_core/market/market-job.schemas.js +2 -2
  126. package/dist/esm/_core/market/market-job.schemas.js.map +1 -1
  127. package/dist/esm/_core/market/market-message-template.schemas.js +2 -2
  128. package/dist/esm/_core/market/market-message-template.schemas.js.map +1 -1
  129. package/dist/esm/_core/market/market-objection.schemas.js +2 -2
  130. package/dist/esm/_core/market/market-objection.schemas.js.map +1 -1
  131. package/dist/esm/_core/market/market-pain.schemas.js +2 -2
  132. package/dist/esm/_core/market/market-pain.schemas.js.map +1 -1
  133. package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
  134. package/dist/esm/_core/market/market-persona.schemas.js +2 -2
  135. package/dist/esm/_core/market/market-persona.schemas.js.map +1 -1
  136. package/dist/esm/_core/market/market-positioning.schemas.js +2 -2
  137. package/dist/esm/_core/market/market-positioning.schemas.js.map +1 -1
  138. package/dist/esm/_core/market/market-proof.schemas.js +2 -2
  139. package/dist/esm/_core/market/market-proof.schemas.js.map +1 -1
  140. package/dist/esm/_core/market/market-references.schemas.d.ts +6 -0
  141. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  142. package/dist/esm/_core/market/market-references.schemas.js +6 -0
  143. package/dist/esm/_core/market/market-references.schemas.js.map +1 -1
  144. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +4 -4
  145. package/dist/esm/_core/market/market-tone-of-voice.schemas.js +2 -2
  146. package/dist/esm/_core/market/market-tone-of-voice.schemas.js.map +1 -1
  147. package/dist/esm/_core/market/market-trigger.schemas.js +2 -2
  148. package/dist/esm/_core/market/market-trigger.schemas.js.map +1 -1
  149. package/dist/esm/_core/market/market.family-aspects.js +1 -1
  150. package/dist/esm/_core/market/market.family-aspects.js.map +1 -1
  151. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  152. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +6 -1
  153. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  154. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +1 -0
  155. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  156. package/dist/esm/_core/requirements/functional-requirement.schemas.js +8 -0
  157. package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
  158. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +1 -0
  159. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  160. package/dist/esm/_core/resource-specification.schemas.d.ts +86 -28
  161. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  162. package/dist/esm/_core/resource-specification.schemas.js +110 -24
  163. package/dist/esm/_core/resource-specification.schemas.js.map +1 -1
  164. package/dist/esm/_core/utils/retention-clock-field-specs.d.ts +13 -0
  165. package/dist/esm/_core/utils/retention-clock-field-specs.d.ts.map +1 -0
  166. package/dist/esm/_core/utils/retention-clock-field-specs.js +26 -0
  167. package/dist/esm/_core/utils/retention-clock-field-specs.js.map +1 -0
  168. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts +31 -6
  169. package/dist/esm/_core/website-plan/website-plan.schemas.d.ts.map +1 -1
  170. package/dist/esm/_core/website-plan/website-plan.schemas.js +35 -6
  171. package/dist/esm/_core/website-plan/website-plan.schemas.js.map +1 -1
  172. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +142 -3
  173. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
  174. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +148 -14
  175. package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
  176. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +70 -10
  177. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  178. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +98 -11
  179. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  180. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts +215 -0
  181. package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -0
  182. package/dist/esm/application-creation/application-line.application-creation.schemas.js +253 -0
  183. package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -0
  184. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts +39 -0
  185. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.d.ts.map +1 -0
  186. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js +37 -0
  187. package/dist/esm/application-creation/application-specification-family-decisions.application-creation.schemas.js.map +1 -0
  188. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +5 -49
  189. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  190. package/dist/esm/application-creation/journey.application-creation.schemas.js +25 -60
  191. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  192. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts +28 -0
  193. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.d.ts.map +1 -0
  194. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js +32 -0
  195. package/dist/esm/application-creation/playbook-instance.application-creation.schemas.js.map +1 -0
  196. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +26 -6
  197. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  198. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +28 -1
  199. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  200. package/dist/esm/application-creation.exports.d.ts +7 -0
  201. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  202. package/dist/esm/application-creation.exports.js +7 -0
  203. package/dist/esm/application-creation.exports.js.map +1 -1
  204. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +1 -1
  205. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +1 -1
  206. package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +1 -1
  207. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +24 -1
  208. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  209. package/dist/esm/assurance/assurance-authority-basis.definitions.js +75 -5
  210. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  211. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +6 -0
  212. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  213. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +11 -0
  214. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
  215. package/dist/esm/assurance/assurance-document-blueprint-selection.js +22 -3
  216. package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
  217. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  218. package/dist/esm/assurance/assurance-document-system.definitions.js +39 -6
  219. package/dist/esm/assurance/assurance-document-system.definitions.js.map +1 -1
  220. package/dist/esm/assurance/assurance-document-system.schemas.d.ts +11 -0
  221. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  222. package/dist/esm/assurance/assurance-document-system.schemas.js +19 -0
  223. package/dist/esm/assurance/assurance-document-system.schemas.js.map +1 -1
  224. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  225. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +295 -31
  226. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  227. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +7 -0
  228. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  229. package/dist/esm/assurance/assurance-foundation.schemas.js +7 -0
  230. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  231. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  232. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +17 -0
  233. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  234. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +5 -1
  235. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  236. package/dist/esm/assurance/assurance-program-generation.schemas.js +6 -3
  237. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  238. package/dist/esm/assurance/assurance-program.family-aspects.js +1 -1
  239. package/dist/esm/assurance/assurance-program.family-aspects.js.map +1 -1
  240. package/dist/esm/assurance/assurance-program.schemas.d.ts +232 -3
  241. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  242. package/dist/esm/assurance/assurance-program.schemas.js +107 -14
  243. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  244. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  245. package/dist/esm/assurance/assurance-source-registry.definitions.js +77 -1
  246. package/dist/esm/assurance/assurance-source-registry.definitions.js.map +1 -1
  247. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  248. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +23 -1
  249. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  250. package/dist/esm/assurance/governed-document-release.d.ts +7 -0
  251. package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
  252. package/dist/esm/assurance/governed-document-release.js +11 -2
  253. package/dist/esm/assurance/governed-document-release.js.map +1 -1
  254. package/dist/esm/companion-exports.d.ts +6 -5
  255. package/dist/esm/companion-exports.d.ts.map +1 -1
  256. package/dist/esm/companion-exports.js.map +1 -1
  257. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts +1 -0
  258. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  259. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +35 -33
  260. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  261. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  262. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +6 -2
  263. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  264. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  265. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +13 -12
  266. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  267. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
  268. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +26 -2
  269. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  270. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  271. package/dist/esm/engine/applications/resources/applications.resource.specification.js +4 -4
  272. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  273. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  274. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +11 -9
  275. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  276. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +2 -2
  277. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  278. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts +1 -0
  279. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  280. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +45 -32
  281. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  282. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +1 -23
  283. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  284. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +185 -31
  285. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  286. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +2 -1
  287. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  288. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +29 -7
  289. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  290. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  291. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +7 -1
  292. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  293. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  294. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +9 -6
  295. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  296. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts +1 -0
  297. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  298. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +11 -7
  299. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  300. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  301. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +18 -16
  302. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  303. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  304. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +9 -11
  305. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  306. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  307. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +238 -219
  308. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  309. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +0 -24
  310. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  311. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js +76 -16
  312. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.js.map +1 -1
  313. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +2 -1
  314. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  315. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +28 -6
  316. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  317. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  318. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +29 -11
  319. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  320. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js +1 -1
  321. package/dist/esm/engine/billing/resources/billing-provider-event-settlements.resource.specification.js.map +1 -1
  322. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts +2 -0
  323. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
  324. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +13 -12
  325. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  326. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +5 -5
  327. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  328. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  329. package/dist/esm/engine/billing/resources/prices.resource.specification.js +12 -9
  330. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  331. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts +7 -4
  332. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  333. package/dist/esm/engine/billing/resources/products.resource.specification.js +36 -16
  334. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  335. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  336. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +13 -10
  337. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  338. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts +13 -8
  339. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  340. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +54 -20
  341. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  342. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts +30 -4
  343. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  344. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +85 -25
  345. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  346. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +2 -2
  347. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  348. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +15 -2
  349. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -1
  350. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +45 -10
  351. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -1
  352. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts +15 -2
  353. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  354. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +52 -12
  355. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  356. package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
  357. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  358. package/dist/esm/engine/compliance/resources/index.js +1 -0
  359. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  360. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts +39 -0
  361. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.d.ts.map +1 -0
  362. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js +325 -0
  363. package/dist/esm/engine/compliance/resources/legal-holds.resource.specification.js.map +1 -0
  364. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts +23 -0
  365. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.d.ts.map +1 -0
  366. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js +197 -0
  367. package/dist/esm/engine/compliance/resources/retention-enforcement-records.resource.specification.js.map +1 -0
  368. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  369. package/dist/esm/engine/engine-resource-specifications.registry.js +59 -0
  370. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  371. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  372. package/dist/esm/engine/errors/error-messages.specification.js +69 -0
  373. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  374. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts +5 -5
  375. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  376. package/dist/esm/engine/features/resources/application-features.resource.specification.js +9 -10
  377. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  378. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts +5 -5
  379. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +11 -11
  380. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  381. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts +5 -5
  382. package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
  383. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  384. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  385. package/dist/esm/engine/files/resources/files.resource.specification.js +7 -8
  386. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  387. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  388. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +16 -4
  389. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  390. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +1 -1
  391. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  392. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts +11 -0
  393. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.d.ts.map +1 -0
  394. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js +382 -0
  395. package/dist/esm/engine/flows-actors/resources/agent-work-decisions.resource.specification.js.map +1 -0
  396. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts +139 -1
  397. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  398. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +150 -4
  399. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  400. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  401. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +9 -1
  402. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  403. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts +3 -0
  404. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.d.ts.map +1 -0
  405. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js +162 -0
  406. package/dist/esm/engine/flows-actors/resources/model-call-attributions.resource.specification.js.map +1 -0
  407. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts +3 -0
  408. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.d.ts.map +1 -0
  409. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js +158 -0
  410. package/dist/esm/engine/flows-actors/resources/model-cost-period-aggregates.resource.specification.js.map +1 -0
  411. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts +2 -1
  412. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.d.ts.map +1 -1
  413. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js +16 -9
  414. package/dist/esm/engine/flows-actors/resources/provider-call-records.resource.specification.js.map +1 -1
  415. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js +1 -1
  416. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.js.map +1 -1
  417. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js +1 -1
  418. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.js.map +1 -1
  419. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts +5 -0
  420. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.d.ts.map +1 -0
  421. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js +79 -0
  422. package/dist/esm/engine/frontend-components/app/app-layout-agent-work-override-rate-settings.frontend-component.specification.js.map +1 -0
  423. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js +1 -1
  424. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.js.map +1 -1
  425. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.d.ts.map +1 -1
  426. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js +3 -1
  427. package/dist/esm/engine/frontend-components/app/app-layout-billing-settings.frontend-component.specification.js.map +1 -1
  428. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  429. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +5 -4
  430. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  431. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js +1 -1
  432. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.js.map +1 -1
  433. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js +1 -1
  434. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.js.map +1 -1
  435. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js +2 -2
  436. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.js.map +1 -1
  437. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js +1 -1
  438. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.js.map +1 -1
  439. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js +2 -2
  440. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.js.map +1 -1
  441. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  442. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  443. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js +1 -1
  444. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.js.map +1 -1
  445. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.d.ts.map +1 -1
  446. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js +1 -1
  447. package/dist/esm/engine/frontend-components/form/fields/form-field-address.frontend-component.specification.js.map +1 -1
  448. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js +2 -2
  449. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.js.map +1 -1
  450. package/dist/esm/engine/frontend-components/index.d.ts +1 -0
  451. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  452. package/dist/esm/engine/frontend-components/index.js +3 -0
  453. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  454. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js +1 -1
  455. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.js.map +1 -1
  456. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js +1 -1
  457. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.js.map +1 -1
  458. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js +1 -1
  459. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.js.map +1 -1
  460. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
  461. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js +9 -4
  462. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.js.map +1 -1
  463. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +4 -4
  464. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  465. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  466. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +34 -0
  467. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  468. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  469. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +26 -0
  470. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  471. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +2 -2
  472. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  473. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts +9 -0
  474. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.d.ts.map +1 -0
  475. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js +122 -0
  476. package/dist/esm/engine/infrastructure/resources/external-data-erasure-suppressions.resource.specification.js.map +1 -0
  477. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts +9 -0
  478. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.d.ts.map +1 -0
  479. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js +152 -0
  480. package/dist/esm/engine/infrastructure/resources/external-data-outbound-changes.resource.specification.js.map +1 -0
  481. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts +10 -0
  482. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.d.ts.map +1 -0
  483. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js +94 -0
  484. package/dist/esm/engine/infrastructure/resources/external-data-pending-references.resource.specification.js.map +1 -0
  485. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts +10 -0
  486. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.d.ts.map +1 -0
  487. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js +64 -0
  488. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership-keys.resource.specification.js.map +1 -0
  489. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts +4 -1
  490. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.d.ts.map +1 -1
  491. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js +20 -16
  492. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-membership.resource.specification.js.map +1 -1
  493. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts +9 -0
  494. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.d.ts.map +1 -0
  495. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js +200 -0
  496. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-run-records.resource.specification.js.map +1 -0
  497. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  498. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +19 -6
  499. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  500. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts +9 -0
  501. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.d.ts.map +1 -0
  502. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js +97 -0
  503. package/dist/esm/engine/infrastructure/resources/external-data-remote-versions.resource.specification.js.map +1 -0
  504. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +8 -0
  505. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  506. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +2 -2
  507. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  508. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +8 -8
  509. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +1 -1
  510. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  511. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js +4 -4
  512. package/dist/esm/engine/infrastructure/resources/system-of-record-partition-assignments.resource.specification.js.map +1 -1
  513. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts +9 -0
  514. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.d.ts.map +1 -0
  515. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js +153 -0
  516. package/dist/esm/engine/infrastructure/resources/system-of-record-write-admissions.resource.specification.js.map +1 -0
  517. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts +81 -0
  518. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.d.ts.map +1 -0
  519. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js +437 -0
  520. package/dist/esm/engine/notifications/resources/conversation-threads.resource.specification.js.map +1 -0
  521. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +112 -0
  522. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -0
  523. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +287 -0
  524. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -0
  525. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts +131 -0
  526. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -0
  527. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +594 -0
  528. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -0
  529. package/dist/esm/engine/notifications/resources/index.d.ts +1 -0
  530. package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
  531. package/dist/esm/engine/notifications/resources/index.js +1 -0
  532. package/dist/esm/engine/notifications/resources/index.js.map +1 -1
  533. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts +6 -3
  534. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  535. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +20 -5
  536. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  537. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  538. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +12 -2
  539. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  540. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts +6 -6
  541. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  542. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +8 -11
  543. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  544. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts +4 -0
  545. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.d.ts.map +1 -0
  546. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js +62 -0
  547. package/dist/esm/engine/notifications/system-emails/human-decision.system-emails.specification.js.map +1 -0
  548. package/dist/esm/engine/notifications/system-emails/index.d.ts +2 -1
  549. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  550. package/dist/esm/engine/notifications/system-emails/index.js +4 -2
  551. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  552. package/dist/esm/engine/organizations/resources/index.d.ts +2 -0
  553. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  554. package/dist/esm/engine/organizations/resources/index.js +2 -0
  555. package/dist/esm/engine/organizations/resources/index.js.map +1 -1
  556. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +3 -0
  557. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  558. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +40 -12
  559. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  560. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +2 -2
  561. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  562. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +2 -2
  563. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  564. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts +0 -1
  565. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  566. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +4 -6
  567. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  568. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  569. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +7 -3
  570. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  571. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  572. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +15 -8
  573. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  574. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +3 -1
  575. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  576. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +36 -21
  577. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  578. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts +38 -0
  579. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.d.ts.map +1 -0
  580. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js +152 -0
  581. package/dist/esm/engine/organizations/resources/service-provider-activity-feed.resource.specification.js.map +1 -0
  582. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts +106 -0
  583. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.d.ts.map +1 -0
  584. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js +417 -0
  585. package/dist/esm/engine/organizations/resources/service-provider-relationships.resource.specification.js.map +1 -0
  586. package/dist/esm/engine/providers/apple.provider.specification.js +1 -1
  587. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  588. package/dist/esm/engine/providers/github.provider.specification.js +1 -1
  589. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  590. package/dist/esm/engine/providers/google-places.provider.specification.d.ts +6 -0
  591. package/dist/esm/engine/providers/google-places.provider.specification.d.ts.map +1 -0
  592. package/dist/esm/engine/providers/google-places.provider.specification.js +44 -0
  593. package/dist/esm/engine/providers/google-places.provider.specification.js.map +1 -0
  594. package/dist/esm/engine/providers/google.provider.specification.js +1 -1
  595. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  596. package/dist/esm/engine/providers/index.d.ts +2 -0
  597. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  598. package/dist/esm/engine/providers/index.js +5 -1
  599. package/dist/esm/engine/providers/index.js.map +1 -1
  600. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/providers/microsoft.provider.specification.js +10 -6
  602. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  603. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts +6 -0
  604. package/dist/esm/engine/providers/recaptcha.provider.specification.d.ts.map +1 -0
  605. package/dist/esm/engine/providers/recaptcha.provider.specification.js +38 -0
  606. package/dist/esm/engine/providers/recaptcha.provider.specification.js.map +1 -0
  607. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  608. package/dist/esm/engine/providers/resend.provider.specification.js +3 -1
  609. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  610. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  611. package/dist/esm/engine/providers/stripe.provider.specification.js +3 -2
  612. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  613. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts +2 -0
  614. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.d.ts.map +1 -0
  615. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js +21 -0
  616. package/dist/esm/engine/roles/app-billing-provider-events.role.specification.js.map +1 -0
  617. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts +2 -0
  618. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.d.ts.map +1 -0
  619. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js +21 -0
  620. package/dist/esm/engine/roles/app-email-inbound-intake.role.specification.js.map +1 -0
  621. package/dist/esm/engine/roles/index.d.ts +13 -5
  622. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  623. package/dist/esm/engine/roles/index.js +19 -6
  624. package/dist/esm/engine/roles/index.js.map +1 -1
  625. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts +2 -0
  626. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.d.ts.map +1 -0
  627. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js +21 -0
  628. package/dist/esm/engine/roles/org-billing-provider-events.role.specification.js.map +1 -0
  629. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts +7 -0
  630. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.d.ts.map +1 -0
  631. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js +72 -0
  632. package/dist/esm/engine/roles/org-delegated-capabilities.role.specification.js.map +1 -0
  633. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts +2 -0
  634. package/dist/esm/engine/roles/org-service-provider.role.specification.d.ts.map +1 -0
  635. package/dist/esm/engine/roles/org-service-provider.role.specification.js +22 -0
  636. package/dist/esm/engine/roles/org-service-provider.role.specification.js.map +1 -0
  637. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +2 -2
  638. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  639. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +3 -3
  640. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  641. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts +1 -1
  642. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
  643. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js +3 -6
  644. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.js.map +1 -1
  645. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -2
  646. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  647. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +2 -2
  648. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  649. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +0 -4
  650. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  651. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +0 -3
  652. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  653. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +0 -3
  654. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  655. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +7 -7
  656. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  657. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +5 -5
  658. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  659. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +0 -3
  660. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  661. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +11 -18
  662. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  663. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +6 -6
  664. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  665. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  666. package/dist/esm/engine/users/resources/user-self.resource.specification.js +5 -1
  667. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  668. package/dist/esm/engine/users/resources/users.resource.specification.d.ts +8 -5
  669. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  670. package/dist/esm/engine/users/resources/users.resource.specification.js +49 -16
  671. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  672. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  673. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +29 -10
  674. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  675. package/dist/tsconfig.build.tsbuildinfo +1 -1
  676. package/package.json +8 -8
  677. package/dist/assurance/external-framework-mapping.json +0 -1228
@@ -1 +1 @@
1
- {"version":3,"file":"application-oauth-clients.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/application-oauth-clients.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iDAAiD,IAAI,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AACpI,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,0BAA0B,EAC1B,WAAW,EACX,cAAc,EACd,qBAAqB,IAAI,EAAE,EAC3B,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,iBAAiB,EACjB,4BAA4B,EAC5B,oBAAoB,EACpB,0DAA0D,IAAI,sBAAsB,GACrF,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,8CAA8C,EAAE,MAAM,6BAA6B,CAAC;AAC3K,OAAO,EAAE,u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plicationAdminResourceUIBehavior as appOAuthClientsUIBehaviorSource } 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 AppOAuthClients_Operations,\n ApiKeyScope,\n CORE_APP_ROLES,\n CoreResourceOperation as Op,\n OAuthGrantType,\n OAuthClientApplicationSchema,\n OAuthClientRegistrationOrigin,\n OAuthClientStatus,\n OAuthTokenEndpointAuthMethod,\n ResourcePrimaryScope,\n appOAuthClientsResourceConfiguration_InitializationFactory as appOAuthClientsFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE = {\n _id: 'oauth_client_app_01HX2EXAMPLE',\n name: 'Tenant provisioning service',\n description: 'Confidential application client used by the tenant provisioning worker.',\n scope: ApiKeyScope.APPLICATION,\n roles: [CORE_APP_ROLES.APP_ADMIN_VIEWER],\n allowedScopes: [],\n allowedGrants: [OAuthGrantType.CLIENT_CREDENTIALS],\n redirectUris: [],\n postLogoutRedirectUris: [],\n requiresConsent: false,\n tokenEndpointAuthMethod: OAuthTokenEndpointAuthMethod.CLIENT_SECRET_BASIC,\n status: OAuthClientStatus.ACTIVE,\n expiresAt: '2099-06-15T00:00:00.000Z',\n createdAt: '2026-08-02T09:30:00.000Z',\n updatedAt: '2026-08-17T15:05:00.000Z',\n secretPrefix: 'oc_app_1',\n registrationOrigin: OAuthClientRegistrationOrigin.OPERATOR,\n applicationId: 'application_01HX2EXAMPLE',\n} as const;\n\nconst APPLICATION_OAUTH_CLIENT_SUMMARY_EXAMPLE = {\n _id: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE._id,\n name: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.name,\n tokenEndpointAuthMethod: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.tokenEndpointAuthMethod,\n status: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.status,\n expiresAt: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.expiresAt,\n createdAt: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.createdAt,\n secretPrefix: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.secretPrefix,\n registrationOrigin: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.registrationOrigin,\n applicationId: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.applicationId,\n} as const;\n\nconst APPLICATION_OAUTH_CLIENT_PAGE_EXAMPLE = {\n data: [APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n} as const;\n\nconst APPLICATION_OAUTH_CLIENT_SUMMARY_PAGE_EXAMPLE = {\n data: [APPLICATION_OAUTH_CLIENT_SUMMARY_EXAMPLE],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n} as const;\n\n/**\n * Framework-owned base specification for the application-scoped\n * `applicationOAuthClients` resource.\n *\n * This resource is a FAITHFUL MIRROR of the api-keys resource\n * (`application-api-keys.resource.specification.ts`) with a FOCUSED operation\n * set — core READ/LIST/SEARCH/CREATE plus a REPOSITORY_ONLY DELETE\n * (onParentDelete cascade), custom ROTATE/REGENERATE, the operator pair\n * DEACTIVATE/REACTIVATE (#1028) and the sweep-driven EXPIRE. EXTEND_EXPIRY and\n * USAGE_STATS from the api-keys spec are not ported: a client's validity is\n * fixed at registration and no usage accounting is recorded for clients.\n *\n * It SHIPS a UI behavior preset since 2026-09-17 (`appOAuthClientsApplicationAdminResourceUIBehavior`),\n * so the frontend narration below is real rather than absent. Until then this paragraph said the\n * resource shipped none and was authored \"like `jobExecutions`\" from the factory alone — which was a\n * description of a gap, never a decision that the credential an operator must rotate should be\n * unreachable. `jobExecutions` remains the genuine case: its every operation is `REPOSITORY_ONLY`,\n * so it has no route to put a screen in front of.\n *\n * `resourcePrimaryScope: APPLICATION` — an application OAuth client is\n * application-wide data owned by the `applicationId` FK; the scope is enforced by\n * the spec ↔ registry alignment guard against the `isPrimaryScope: true`\n * relationship row for `OAUTH_CLIENTS_APPLICATION`.\n */\ntype Cfg = ReturnType<typeof appOAuthClientsFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst appOAuthClientsUIBehavior = appOAuthClientsUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nexport const applicationOAuthClientsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(appOAuthClientsUIBehavior),\n resourceSpecification(\n appOAuthClientsFactory,\n OAuthClientApplicationSchema,\n ({ schemaShape }) => ({\n purpose: 'Application-scoped registered OAuth clients: client-credentials secrets for obtaining tokens and calling backend APIs in app-level automation and integration contexts.',\n businessRole: 'App-admin machine-to-machine OAuth credential. Under client-credentials it authenticates the SAME application machine principal (`APPLICATION_MACHINE`) that an application API key does — a distinct credential type, not a distinct principal — distinct from end-user sessions and from organization OAuth clients.',\n lifecycleRole: 'Created, rotated, regenerated, and retired by application administrators; ordinary application members cannot manage these credentials. The current token paths do not populate `lastUsedAt`, so usage must be established from audit and workload evidence.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.APPLICATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OAuthClientApplicationSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'appOAuthClientsResourceConfiguration_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: 'OAUTH_CLIENTS_APPLICATION',\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: 'AppOAuthClients_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'No UI behavior preset exists for this resource — authored backend-only (no frontend overlay), mirroring the `jobExecutions` shape rather than the api-keys mixed shape.',\n 'Runtime declares userNotifications with channel EMAIL on CREATE/ROTATE/REGENERATE/DEACTIVATE/REACTIVATE; DF-1 communications blocks are omitted from this pass to stay a structural mirror of the api-keys spec, which likewise documents no communications blocks.',\n ],\n },\n fields: {\n name: schemaShape.name.stringSpec({\n meaning: 'Label for the OAuth client in app-admin UI.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n description: schemaShape.description.stringSpec({\n meaning: 'Operator-authored explanation of the application-level integration that owns this credential.',\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Whether the app client is allowed to obtain tokens and authenticate.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OAuthClientStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OAuthClientStatus.ACTIVE]: { meaning: 'Client may mint tokens within policy and expiry.' },\n [OAuthClientStatus.INACTIVE]: { meaning: 'Revoked or disabled; token exchanges should fail.' },\n [OAuthClientStatus.EXPIRED]: { meaning: 'Past its validity window; treat as invalid.' },\n },\n }),\n secretPrefix: schemaShape.secretPrefix.stringSpec({\n meaning: 'Short prefix for support correlation (not the full secret).',\n }),\n roles: schemaShape.roles.arraySpec({\n meaning: 'Roles embedded on the client; every token minted for 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 client). 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 allowedScopes: schemaShape.allowedScopes.arraySpec({\n meaning:\n 'Identity scopes this client may request in an authorization-code flow. These scopes select identity claims; authorization remains roles-only. Empty for a client-credentials-only machine client.',\n elementMeaning: 'One OAuth/OIDC identity scope allowed for this client, such as `openid`, `profile`, or `email`.',\n }),\n allowedGrants: schemaShape.allowedGrants.arraySpec({\n meaning: 'OAuth grant types this client is allowed to use. A token request using any other grant is refused.',\n elementMeaning: 'One permitted OAuth grant type.',\n elementType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OAuthGrantType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n }),\n requiresConsent: schemaShape.requiresConsent.booleanSpec({\n meaning:\n 'Whether an authorization-code request must obtain explicit user consent before a code is issued. Machine-only client-credentials clients leave this false.',\n }),\n applicationId: schemaShape.applicationId.stringSpec({ meaning: 'Immutable owning application for this client record.' }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Optional hard stop for validity.' }),\n lastUsedAt: schemaShape.lastUsedAt.dateSpec({\n meaning: 'Reserved timestamp for a recorded successful use. The current OAuth token paths do not populate it; an absent or old value is not evidence that the client is unused.',\n }),\n previousSecretPrefix: schemaShape.previousSecretPrefix.stringSpec({\n meaning: 'Public prefix of the previous secret retained during a rotation or regeneration overlap window.',\n }),\n previousSecretInvalidationDate: schemaShape.previousSecretInvalidationDate.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 redirectUris: schemaShape.redirectUris.arraySpec({\n meaning:\n 'Exact-match allowlist of post-authorization redirect targets for the authorization_code flow. A request redirect_uri must equal one entry by exact string (no wildcards/substrings), and each entry is itself constrained to a safe absolute URL — https for any host/port, or http only for a loopback host — with no fragment or embedded credentials, so a registered entry can never become an open-redirect or stored-XSS navigation target. Empty for pure client_credentials clients.',\n elementMeaning: 'One registered redirect URI: an https URL (any host/port) or an http loopback URL (localhost / 127.0.0.1 / ::1).',\n }),\n postLogoutRedirectUris: schemaShape.postLogoutRedirectUris.arraySpec({\n meaning:\n 'Exact-match allowlist of POST-LOGOUT redirect targets for OIDC RP-Initiated Logout. When a relying party ends the user session at /oauth/end-session with a post_logout_redirect_uri, that value must equal one entry by exact string (no wildcards/substrings) or the OP refuses to redirect back and lands the user on its own logged-out page. Each entry is constrained to a safe absolute URL — https for any host/port, or http only for a loopback host — with no fragment or embedded credentials, the same anti-open-redirect gate as redirectUris. Empty for clients that never drive an interactive logout.',\n elementMeaning: 'One registered post-logout redirect URI: an https URL (any host/port) or an http loopback URL (localhost / 127.0.0.1 / ::1).',\n }),\n registrationOrigin: schemaShape.registrationOrigin.enumSpec({\n meaning:\n 'WHO registered this client, which is a different question from which scope owns the record. Every client created through the admin APIs is OPERATOR — a principal with standing in this application vouched for it. DYNAMIC means an anonymous caller self-registered it at the RFC 7591 `/oauth/register` endpoint and proved nothing beyond reaching the server. The authorize path reads this field to decide TRUST: a DYNAMIC client is treated as belonging to no tenant, so it can never inherit the first-party posture its APPLICATION-scoped record would otherwise imply, always faces the interactive consent screen, and is capped at identity scopes. Server-managed and immutable — a caller able to set it could file itself as vouched-for.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OAuthClientRegistrationOrigin',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OAuthClientRegistrationOrigin.OPERATOR]: { meaning: 'Created by a principal with standing in this application (an administrator, a platform operator, or a seed). The default for authenticated administrative registration.' },\n [OAuthClientRegistrationOrigin.DYNAMIC]: { meaning: 'Self-registered anonymously through RFC 7591 dynamic client registration; unaffiliated, consent-always, identity scopes only.' },\n },\n }),\n tokenEndpointAuthMethod: schemaShape.tokenEndpointAuthMethod.enumSpec({\n meaning: 'How the client authenticates at the token endpoint: `none` for a public client (PKCE only, no client secret), or `client_secret_basic` / `client_secret_post` for a confidential client that presents its client_secret to redeem an authorization code or revoke a token. Defaults to `none`; a server-side client that can safely hold a secret opts into one of the secret-bearing methods.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OAuthTokenEndpointAuthMethod',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OAuthTokenEndpointAuthMethod.NONE]: { meaning: 'Public client: no secret at the token endpoint; authorization_code relies on PKCE S256 + exact redirect_uri.' },\n [OAuthTokenEndpointAuthMethod.CLIENT_SECRET_BASIC]: { meaning: 'Confidential client presenting its secret via HTTP Basic auth.' },\n [OAuthTokenEndpointAuthMethod.CLIENT_SECRET_POST]: { meaning: 'Confidential client presenting its secret in the request body.' },\n },\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Inspect a single app client without exposing the hashed secret in responses.',\n outcome: 'The client 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 client 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 client exists for the supplied id in the caller’s application scope.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Inspect a confidential application integration client',\n response: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n variants: {\n context: {\n examples: [\n {\n title: 'Inspect the client through the context representation',\n response: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'Inspect the client summary used in selectors',\n response: APPLICATION_OAUTH_CLIENT_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'List clients in app scope for admin users.',\n outcome: 'Rows in the app-admin OAuth-clients surface and related entry points.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of app clients in the caller’s application scope.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; client inventory is `APP_ADMIN_SUPER_ADMIN`-only.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Browse application OAuth clients',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: APPLICATION_OAUTH_CLIENT_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n variants: {\n context: {\n examples: [\n {\n title: 'Browse clients through the context representation',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: APPLICATION_OAUTH_CLIENT_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'Browse compact client summaries',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: APPLICATION_OAUTH_CLIENT_SUMMARY_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Find application OAuth clients by the documented administrative filters and sort order.',\n outcome: 'A paginated set of clients matching the supplied filters.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of app clients 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 {\n title: 'Find active expiring application integrations',\n request: {\n status: OAuthClientStatus.ACTIVE,\n hasExpiration: true,\n page: 1,\n limit: 20,\n sort: 'lastUsedAt:desc',\n },\n response: APPLICATION_OAUTH_CLIENT_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [Op.CREATE]: {\n purpose: 'Register a new application OAuth client and issue its first client secret.',\n outcome: 'The client is registered, application administrators are notified, and the plaintext secret is returned exactly once. Later reads expose only its prefix.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The client was registered; the response carries the one-time plaintext secret alongside the persisted metadata.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The client 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; registering clients is a high-risk `APP_ADMIN_SUPER_ADMIN`-only operation.' },\n ],\n idempotent: false,\n rateLimitNote: 'Client registration is high-risk credential issuance and is rate-limited per application to slow credential-spraying and accidental bulk creation.',\n examples: [\n {\n title: 'Register a confidential application machine client',\n request: {\n name: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.name,\n description: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.description,\n roles: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.roles,\n allowedScopes: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.allowedScopes,\n allowedGrants: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.allowedGrants,\n redirectUris: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.redirectUris,\n requiresConsent: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.requiresConsent,\n tokenEndpointAuthMethod: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.tokenEndpointAuthMethod,\n status: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.status,\n expiresAt: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.expiresAt,\n },\n response: {\n ...APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE,\n hashedSecret: 'cf9879a8df9068394d6281461312360432572ad96951f86eed4ab515a9f5222d',\n plainSecret: 'oc_app_example-secret-returned-once',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the application OAuth-client row when its owning application is deleted (composition `onParentDelete` cascade).',\n outcome: 'Every OAuth client 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 OAuth-client record 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 /**\n * INTERNAL_CALL, so this entry documents SEMANTICS and deliberately carries no HTTP\n * response statuses, error scenarios or examples: there is no route to call and no response\n * a consumer receives. Authoring a `200 OK` example here would document a door that does not\n * exist, which is worse than the silence.\n */\n [AppOAuthClients_Operations.EXPIRE]: {\n operationId: AppOAuthClients_Operations.EXPIRE,\n purpose: 'Record that a registered client’s validity window has elapsed, so a listing shows it as expired rather than active.',\n outcome: 'Status becomes expired. Nothing about access changes — the client already stopped authenticating the instant its expiry passed.',\n whenToUse: 'Never called directly. The nightly credential-expiry sweep dispatches it; an administrator who wants access to end sooner deactivates the client, and one who wants it gone deletes it.',\n },\n\n /**\n * The operator's suspension door (#1028). Its contract says what it stops: new access. An\n * already-minted client-credentials token is not re-checked against the client until it\n * expires, so the outcome below does not promise instant revocation.\n */\n [AppOAuthClients_Operations.DEACTIVATE]: {\n operationId: AppOAuthClients_Operations.DEACTIVATE,\n purpose: 'Suspend an active client in place, for incident or policy control, without issuing new secret material.',\n outcome: 'Status becomes inactive. The client can no longer authenticate with its secret or obtain new tokens; a token it already holds keeps working until that token expires.',\n whenToUse: 'Pause a client you suspect is compromised or no longer needed while you investigate, instead of rotating — rotation hands you a new secret to distribute, suspension does not.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The client 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 application client exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The client 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: 'Suspend a application client during an investigation',\n request: {},\n response: { ...APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE, status: OAuthClientStatus.INACTIVE },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n\n [AppOAuthClients_Operations.REACTIVATE]: {\n operationId: AppOAuthClients_Operations.REACTIVATE,\n purpose: 'Lift a suspension so the client authenticates again with the secret it already holds.',\n outcome: 'Status returns to active. Nothing about the secret changes.',\n whenToUse: 'When a client was suspended temporarily rather than deleted. An expired client cannot be brought back this way — register a new one.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The client 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 application client exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The client 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: 'Reinstate a application client after the investigation cleared it',\n request: {},\n response: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n\n [AppOAuthClients_Operations.ROTATE]: {\n operationId: AppOAuthClients_Operations.ROTATE,\n purpose: 'Reissue a client with invalidation of the old material at a specified boundary.',\n outcome: 'The new plaintext secret is returned exactly once. The previous secret remains valid until the requested invalidation time so integrations can migrate without downtime.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The client 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 secret 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 client exists for the supplied id in the caller’s application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The client 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 client to prevent rapid re-rotation that would churn the credential cutover window.',\n examples: [\n {\n title: 'Rotate a client with a scheduled migration window',\n request: {\n oldSecretInvalidationDate: '2099-06-16T00:00:00.000Z',\n },\n response: {\n ...APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE,\n secretPrefix: 'oc_app_2',\n previousSecretPrefix: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.secretPrefix,\n previousSecretInvalidationDate: '2099-06-16T00:00:00.000Z',\n plainSecret: 'oc_app_rotated-secret-returned-once',\n oldClientId: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE._id,\n oldSecretInvalidationDate: '2099-06-16T00:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [AppOAuthClients_Operations.REGENERATE]: {\n operationId: AppOAuthClients_Operations.REGENERATE,\n purpose: 'Generate a new secret without the full rotate lifecycle semantics.',\n outcome: 'The new plaintext secret is returned exactly once, administrators are notified, and the previous secret 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 client 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 client exists for the supplied id in the caller’s application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The client 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 client for the same credential-hygiene reasons as rotation.',\n examples: [\n {\n title: 'Regenerate with an open migration overlap',\n request: {},\n response: {\n ...APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE,\n secretPrefix: 'oc_app_3',\n previousSecretPrefix: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.secretPrefix,\n plainSecret: 'oc_app_regenerated-secret-returned-once',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\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 `previousSecretInvalidationDate`; regenerate: until the next rotation); the client-credentials exchange accepts the current OR the not-yet-invalidated previous secret.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n label: {\n purpose: 'The client\\'s own `name` — the word an operator gave it, which is the only handle that survives a secret rotation.',\n },\n layout: {\n purpose: 'Four sections: `overview` (which client this is and whether it is usable), `access` (what it may ask for), `redirects` (where the authorization-code leg may return), `lifecycle` (validity and last use). Deliberately one more than the api-keys sibling — redirect URIs exist only for the interactive leg and are the one field whose exact value decides whether a sign-in round trip lands, so burying them inside `access` would hide the thing most often mistyped.',\n displayPurpose: 'Read and edit share the section vocabulary; the edit layout omits `overview.status` and the whole `lifecycle` block because status moves through DEACTIVATE / REACTIVATE / EXPIRE and never through a form.',\n sections: {\n overview: {\n purpose: 'Name, description, status and the non-secret `secretPrefix` that identifies WHICH credential a log line names.',\n whenToUse: 'Recognising a client in a list, and confirming it is the one an incident refers to.',\n textSlots: {\n title: { purpose: 'Name the client in the operator\\'s own words.' },\n description: { purpose: 'State that the full secret is shown only at create, rotate and regenerate, and is never retrievable afterwards.' },\n },\n },\n access: {\n purpose: 'Granted grant types, scopes, roles, token-endpoint authentication method and whether consent is required.',\n whenToUse: 'Deciding what this credential can actually do before approving or narrowing it.',\n textSlots: {\n title: { purpose: 'Label the authority block.' },\n description: { purpose: 'Make clear these bound what the client may ASK for; the token service still decides what it receives.' },\n },\n },\n redirects: {\n purpose: 'Redirect and post-logout redirect URIs for the authorization-code leg.',\n whenToUse: 'Registering or repairing an interactive integration.',\n textSlots: {\n title: { purpose: 'Label the redirect block.' },\n description: { purpose: 'Warn that these are matched exactly, so a trailing slash or scheme difference is a failed sign-in rather than a warning.' },\n },\n },\n lifecycle: {\n purpose: 'Expiry, last use and creation instants.',\n whenToUse: 'Judging whether a client is still in service before retiring it.',\n textSlots: {\n title: { purpose: 'Label the validity block.' },\n description: { purpose: 'Note that `lastUsedAt` is not populated by the current token paths, so an empty value is not evidence of disuse.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'The operator\\'s client inventory, reached from Settings → Administration → OAuth clients. Embedded rather than routed: it is a settings surface, not a destination of its own.', whenToUse: 'Auditing which machine credentials exist and which are still active.' },\n [Op.READ]: { purpose: 'One client in full, drilled into from a row.', whenToUse: 'Before rotating, deactivating or changing what a client may request.' },\n [Op.CREATE]: { purpose: 'Registration, and the only moment besides rotate/regenerate at which a plaintext secret exists.', whenToUse: 'Onboarding a new machine integration.' },\n [AppOAuthClients_Operations.ROTATE]: { purpose: 'New secret, prior one authenticating until `previousSecretInvalidationDate`.', whenToUse: 'Planned rotation where the consumer needs a changeover window.' },\n [AppOAuthClients_Operations.REGENERATE]: { purpose: 'New secret without invalidating the previous one until the next rotation.', whenToUse: 'Issuing a second live secret during a migration.' },\n [AppOAuthClients_Operations.DEACTIVATE]: { purpose: 'ACTIVE → INACTIVE. The operator\\'s way to stop a client immediately.', whenToUse: 'Suspected compromise, or retiring an integration ahead of its expiry.' },\n [AppOAuthClients_Operations.REACTIVATE]: { purpose: 'INACTIVE → ACTIVE. Does NOT revive an EXPIRED client, which is why EXPIRED renders as a distinct state rather than a variant of INACTIVE.', whenToUse: 'Lifting a suspension that turned out to be unnecessary.' },\n [AppOAuthClients_Operations.EXPIRE]: { purpose: 'ACTIVE → EXPIRED, dispatched by the sweep once `expiresAt` passes. Headless — it has no interface at all, because no person invokes it.', whenToUse: 'Never by hand; an operator ending a client early uses DEACTIVATE.' },\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"application-oauth-clients.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/application-oauth-clients.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iDAAiD,IAAI,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AACpI,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,0BAA0B,EAC1B,WAAW,EACX,cAAc,EACd,qBAAqB,IAAI,EAAE,EAC3B,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,iBAAiB,EACjB,4BAA4B,EAC5B,oBAAoB,EACpB,0DAA0D,IAAI,sBAAsB,EACpF,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,8CAA8C,EAAE,MAAM,6BAA6B,CAAC;AAC3K,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,uCAAuC,GAAG;IAC9C,GAAG,EAAE,+BAA+B;IACpC,IAAI,EAAE,6BAA6B;IACnC,WAAW,EAAE,yEAAyE;IACtF,KAAK,EAAE,WAAW,CAAC,WAAW;IAC9B,KAAK,EAAE,CAAC,cAAc,CAAC,gBAAgB,CAAC;IACxC,aAAa,EAAE,EAAE;IACjB,aAAa,EAAE,CAAC,cAAc,CAAC,kBAAkB,CAAC;IAClD,YAAY,EAAE,EAAE;IAChB,sBAAsB,EAAE,EAAE;IAC1B,eAAe,EAAE,KAAK;IACtB,uBAAuB,EAAE,4BAA4B,CAAC,mBAAmB;IACzE,MAAM,EA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AAE,8CAA8C,EAAE,SAAS,EAAE,sEAAsE,EAAE;QACzJ,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,iGAAiG,EAAE,SAAS,EAAE,uCAAuC,EAAE;QAC/K,CAAC,0BAA0B,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,8EAA8E,EAAE,SAAS,EAAE,gEAAgE,EAAE;QAC7M,CAAC,0BAA0B,CAAC,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,2EAA2E,EAAE,SAAS,EAAE,kDAAkD,EAAE;QAChM,CAAC,0BAA0B,CAAC,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,sEAAsE,EAAE,SAAS,EAAE,uEAAuE,EAAE;QAChN,CAAC,0BAA0B,CAAC,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,2IAA2I,EAAE,SAAS,EAAE,yDAAyD,EAAE;QACvQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,yIAAyI,EAAE,SAAS,EAAE,mEAAmE,EAAE;KAC5Q;CACF,CAAC,CACH,CAAC","sourcesContent":["import { appOAuthClientsApplicationAdminResourceUIBehavior as appOAuthClientsUIBehaviorSource } 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 AppOAuthClients_Operations,\n ApiKeyScope,\n CORE_APP_ROLES,\n CoreResourceOperation as Op,\n OAuthGrantType,\n OAuthClientApplicationSchema,\n OAuthClientRegistrationOrigin,\n OAuthClientStatus,\n OAuthTokenEndpointAuthMethod,\n ResourcePrimaryScope,\n appOAuthClientsResourceConfiguration_InitializationFactory as appOAuthClientsFactory,\n ErrorCustomMessageReference,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE = {\n _id: 'oauth_client_app_01HX2EXAMPLE',\n name: 'Tenant provisioning service',\n description: 'Confidential application client used by the tenant provisioning worker.',\n scope: ApiKeyScope.APPLICATION,\n roles: [CORE_APP_ROLES.APP_ADMIN_VIEWER],\n allowedScopes: [],\n allowedGrants: [OAuthGrantType.CLIENT_CREDENTIALS],\n redirectUris: [],\n postLogoutRedirectUris: [],\n requiresConsent: false,\n tokenEndpointAuthMethod: OAuthTokenEndpointAuthMethod.CLIENT_SECRET_BASIC,\n status: OAuthClientStatus.ACTIVE,\n expiresAt: '2099-06-15T00:00:00.000Z',\n createdAt: '2026-08-02T09:30:00.000Z',\n updatedAt: '2026-08-17T15:05:00.000Z',\n secretPrefix: 'oc_app_1',\n registrationOrigin: OAuthClientRegistrationOrigin.OPERATOR,\n applicationId: 'application_01HX2EXAMPLE',\n} as const;\n\nconst APPLICATION_OAUTH_CLIENT_SUMMARY_EXAMPLE = {\n _id: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE._id,\n name: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.name,\n tokenEndpointAuthMethod: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.tokenEndpointAuthMethod,\n status: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.status,\n expiresAt: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.expiresAt,\n createdAt: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.createdAt,\n secretPrefix: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.secretPrefix,\n registrationOrigin: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.registrationOrigin,\n applicationId: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.applicationId,\n} as const;\n\nconst APPLICATION_OAUTH_CLIENT_PAGE_EXAMPLE = {\n data: [APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n} as const;\n\nconst APPLICATION_OAUTH_CLIENT_SUMMARY_PAGE_EXAMPLE = {\n data: [APPLICATION_OAUTH_CLIENT_SUMMARY_EXAMPLE],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n} as const;\n\n/**\n * Framework-owned base specification for the application-scoped\n * `applicationOAuthClients` resource.\n *\n * This resource is a FAITHFUL MIRROR of the api-keys resource\n * (`application-api-keys.resource.specification.ts`) with a FOCUSED operation\n * set — core READ/LIST/SEARCH/CREATE plus a REPOSITORY_ONLY DELETE\n * (onParentDelete cascade), custom ROTATE/REGENERATE, the operator pair\n * DEACTIVATE/REACTIVATE (#1028) and the sweep-driven EXPIRE. EXTEND_EXPIRY and\n * USAGE_STATS from the api-keys spec are not ported: a client's validity is\n * fixed at registration and no usage accounting is recorded for clients.\n *\n * It SHIPS a UI behavior preset since 2026-09-17 (`appOAuthClientsApplicationAdminResourceUIBehavior`),\n * so the frontend narration below is real rather than absent. Until then this paragraph said the\n * resource shipped none and was authored \"like `jobExecutions`\" from the factory alone — which was a\n * description of a gap, never a decision that the credential an operator must rotate should be\n * unreachable. `jobExecutions` remains the genuine case: its every operation is `REPOSITORY_ONLY`,\n * so it has no route to put a screen in front of.\n *\n * `resourcePrimaryScope: APPLICATION` — an application OAuth client is\n * application-wide data owned by the `applicationId` FK; the scope is enforced by\n * the spec ↔ registry alignment guard against the `isPrimaryScope: true`\n * relationship row for `OAUTH_CLIENTS_APPLICATION`.\n */\ntype Cfg = ReturnType<typeof appOAuthClientsFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst appOAuthClientsUIBehavior = appOAuthClientsUIBehaviorSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nexport const applicationOAuthClientsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(appOAuthClientsUIBehavior),\n resourceSpecification(\n appOAuthClientsFactory,\n OAuthClientApplicationSchema,\n ({ schemaShape }) => ({\n purpose: 'Application-scoped registered OAuth clients: client-credentials secrets for obtaining tokens and calling backend APIs in app-level automation and integration contexts.',\n businessRole: 'App-admin machine-to-machine OAuth credential. Under client-credentials it authenticates the SAME application machine principal (`APPLICATION_MACHINE`) that an application API key does — a distinct credential type, not a distinct principal — distinct from end-user sessions and from organization OAuth clients.',\n lifecycleRole: 'Created, rotated, regenerated, and retired by application administrators; ordinary application members cannot manage these credentials. `lastUsedAt` records when the client was last accepted, which is the signal for finding stale or leaked clients.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.APPLICATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OAuthClientApplicationSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'appOAuthClientsResourceConfiguration_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: 'OAUTH_CLIENTS_APPLICATION',\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: 'AppOAuthClients_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'Frontend narration comes from the `appOAuthClientsApplicationAdminResourceUIBehavior` preset (Settings → Administration → OAuth clients), overlaid below.',\n 'Runtime declares userNotifications with channel EMAIL on CREATE/ROTATE/REGENERATE/DEACTIVATE/REACTIVATE; DF-1 communications blocks are omitted from this pass to stay a structural mirror of the api-keys spec, which likewise documents no communications blocks.',\n ],\n },\n fields: {\n name: schemaShape.name.stringSpec({\n meaning: 'Label for the OAuth client in app-admin UI.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n description: schemaShape.description.stringSpec({\n meaning: 'Operator-authored explanation of the application-level integration that owns this credential.',\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Whether the app client is allowed to obtain tokens and authenticate.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OAuthClientStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OAuthClientStatus.ACTIVE]: { meaning: 'Client may mint tokens within policy and expiry.' },\n [OAuthClientStatus.INACTIVE]: { meaning: 'Revoked or disabled; token exchanges should fail.' },\n [OAuthClientStatus.EXPIRED]: { meaning: 'Past its validity window; treat as invalid.' },\n },\n }),\n secretPrefix: schemaShape.secretPrefix.stringSpec({\n meaning: 'Short prefix for support correlation (not the full secret).',\n }),\n roles: schemaShape.roles.arraySpec({\n meaning: 'Roles embedded on the client; every token minted for 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 client). 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 allowedScopes: schemaShape.allowedScopes.arraySpec({\n meaning:\n 'Identity scopes this client may request in an authorization-code flow. These scopes select identity claims; authorization remains roles-only. Empty for a client-credentials-only machine client.',\n elementMeaning: 'One OAuth/OIDC identity scope allowed for this client, such as `openid`, `profile`, or `email`.',\n }),\n allowedGrants: schemaShape.allowedGrants.arraySpec({\n meaning: 'OAuth grant types this client is allowed to use. A token request using any other grant is refused.',\n elementMeaning: 'One permitted OAuth grant type.',\n elementType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OAuthGrantType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n }),\n requiresConsent: schemaShape.requiresConsent.booleanSpec({\n meaning:\n 'Whether an authorization-code request must obtain explicit user consent before a code is issued. Machine-only client-credentials clients leave this false.',\n }),\n applicationId: schemaShape.applicationId.stringSpec({ meaning: 'Immutable owning application for this client record.' }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Optional hard stop for validity.' }),\n lastUsedAt: schemaShape.lastUsedAt.dateSpec({\n meaning: 'When the client was last accepted, to the minute: at the token endpoint (any grant), with its secret presented directly on a request, or through one of its access tokens. Written at most once a minute and without moving `updatedAt`. Absent means it has never been accepted since it was created.',\n }),\n previousSecretPrefix: schemaShape.previousSecretPrefix.stringSpec({\n meaning: 'Public prefix of the previous secret retained during a rotation or regeneration overlap window.',\n }),\n previousSecretInvalidationDate: schemaShape.previousSecretInvalidationDate.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 registrationAccessTokenPrefix: schemaShape.registrationAccessTokenPrefix.stringSpec({\n meaning: 'The first 8 characters of the registration access token a dynamically registered client uses to manage its own registration, so the token can be identified without revealing it. Absent on every client that was not registered dynamically.',\n }),\n redirectUris: schemaShape.redirectUris.arraySpec({\n meaning:\n 'Exact-match allowlist of post-authorization redirect targets for the authorization_code flow. A request redirect_uri must equal one entry by exact string (no wildcards/substrings), and each entry is itself constrained to a safe absolute URL — https for any host/port, or http only for a loopback host — with no fragment or embedded credentials, so a registered entry can never become an open-redirect or stored-XSS navigation target. Empty for pure client_credentials clients.',\n elementMeaning: 'One registered redirect URI: an https URL (any host/port) or an http loopback URL (localhost / 127.0.0.1 / ::1).',\n }),\n postLogoutRedirectUris: schemaShape.postLogoutRedirectUris.arraySpec({\n meaning:\n 'Exact-match allowlist of POST-LOGOUT redirect targets for OIDC RP-Initiated Logout. When a relying party ends the user session at /oauth/end-session with a post_logout_redirect_uri, that value must equal one entry by exact string (no wildcards/substrings) or the OP refuses to redirect back and lands the user on its own logged-out page. Each entry is constrained to a safe absolute URL — https for any host/port, or http only for a loopback host — with no fragment or embedded credentials, the same anti-open-redirect gate as redirectUris. Empty for clients that never drive an interactive logout.',\n elementMeaning: 'One registered post-logout redirect URI: an https URL (any host/port) or an http loopback URL (localhost / 127.0.0.1 / ::1).',\n }),\n registrationOrigin: schemaShape.registrationOrigin.enumSpec({\n meaning:\n 'WHO registered this client, which is a different question from which scope owns the record. Every client created through the admin APIs is OPERATOR — a principal with standing in this application vouched for it. DYNAMIC means an anonymous caller self-registered it at the RFC 7591 `/oauth/register` endpoint and proved nothing beyond reaching the server. The authorize path reads this field to decide TRUST: a DYNAMIC client is treated as belonging to no tenant, so it can never inherit the first-party posture its APPLICATION-scoped record would otherwise imply, always faces the interactive consent screen, and is capped at identity scopes. Server-managed and immutable — a caller able to set it could file itself as vouched-for.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OAuthClientRegistrationOrigin',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OAuthClientRegistrationOrigin.OPERATOR]: { meaning: 'Created by a principal with standing in this application (an administrator, a platform operator, or a seed). The default for authenticated administrative registration.' },\n [OAuthClientRegistrationOrigin.DYNAMIC]: { meaning: 'Self-registered anonymously through RFC 7591 dynamic client registration; unaffiliated, consent-always, identity scopes only.' },\n },\n }),\n tokenEndpointAuthMethod: schemaShape.tokenEndpointAuthMethod.enumSpec({\n meaning: 'How the client authenticates at the token endpoint: `none` for a public client (PKCE only, no client secret), or `client_secret_basic` / `client_secret_post` for a confidential client that presents its client_secret to redeem an authorization code or revoke a token. Defaults to `none`; a server-side client that can safely hold a secret opts into one of the secret-bearing methods.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OAuthTokenEndpointAuthMethod',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [OAuthTokenEndpointAuthMethod.NONE]: { meaning: 'Public client: no secret at the token endpoint; authorization_code relies on PKCE S256 + exact redirect_uri.' },\n [OAuthTokenEndpointAuthMethod.CLIENT_SECRET_BASIC]: { meaning: 'Confidential client presenting its secret via HTTP Basic auth.' },\n [OAuthTokenEndpointAuthMethod.CLIENT_SECRET_POST]: { meaning: 'Confidential client presenting its secret in the request body.' },\n },\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Inspect a single app client without exposing the hashed secret in responses.',\n outcome: 'The client 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 client 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 client exists for the supplied id in the caller’s application scope.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Inspect a confidential application integration client',\n response: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n variants: {\n context: {\n examples: [\n {\n title: 'Inspect the client through the context representation',\n response: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'Inspect the client summary used in selectors',\n response: APPLICATION_OAUTH_CLIENT_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'List clients in app scope for admin users.',\n outcome: 'Rows in the app-admin OAuth-clients surface and related entry points.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of app clients in the caller’s application scope.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; client inventory is `APP_ADMIN_SUPER_ADMIN`-only.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Browse application OAuth clients',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: APPLICATION_OAUTH_CLIENT_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n variants: {\n context: {\n examples: [\n {\n title: 'Browse clients through the context representation',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: APPLICATION_OAUTH_CLIENT_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'Browse compact client summaries',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: APPLICATION_OAUTH_CLIENT_SUMMARY_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Find application OAuth clients by the documented administrative filters and sort order.',\n outcome: 'A paginated set of clients matching the supplied filters.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of app clients 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 {\n title: 'Find active expiring application integrations',\n request: {\n status: OAuthClientStatus.ACTIVE,\n hasExpiration: true,\n page: 1,\n limit: 20,\n sort: 'lastUsedAt:desc',\n },\n response: APPLICATION_OAUTH_CLIENT_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [Op.CREATE]: {\n purpose: 'Register a new application OAuth client and issue its first client secret.',\n outcome: 'The client is registered, application administrators are notified, and the plaintext secret is returned exactly once. Later reads expose only its prefix.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The client was registered; the response carries the one-time plaintext secret alongside the persisted metadata.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The client name, roles, or expiry payload fails schema validation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an app super-admin; registering clients is a high-risk `APP_ADMIN_SUPER_ADMIN`-only operation.' },\n ],\n idempotent: false,\n rateLimitNote: 'Client registration is high-risk credential issuance and is rate-limited per application to slow credential-spraying and accidental bulk creation.',\n examples: [\n {\n title: 'Register a confidential application machine client',\n request: {\n name: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.name,\n description: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.description,\n roles: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.roles,\n allowedScopes: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.allowedScopes,\n allowedGrants: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.allowedGrants,\n redirectUris: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.redirectUris,\n requiresConsent: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.requiresConsent,\n tokenEndpointAuthMethod: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.tokenEndpointAuthMethod,\n status: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.status,\n expiresAt: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.expiresAt,\n },\n response: {\n ...APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE,\n hashedSecret: 'cf9879a8df9068394d6281461312360432572ad96951f86eed4ab515a9f5222d',\n plainSecret: 'oc_app_example-secret-returned-once',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the application OAuth-client row when its owning application is deleted (composition `onParentDelete` cascade).',\n outcome: 'Every OAuth client 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 OAuth-client record 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 /**\n * INTERNAL_CALL, so this entry documents SEMANTICS and deliberately carries no HTTP\n * response statuses, error scenarios or examples: there is no route to call and no response\n * a consumer receives. Authoring a `200 OK` example here would document a door that does not\n * exist, which is worse than the silence.\n */\n [AppOAuthClients_Operations.EXPIRE]: {\n operationId: AppOAuthClients_Operations.EXPIRE,\n purpose: 'Record that a registered client’s validity window has elapsed, so a listing shows it as expired rather than active.',\n outcome: 'Status becomes expired. Nothing about access changes — the client already stopped authenticating the instant its expiry passed.',\n whenToUse: 'Never called directly. The nightly credential-expiry sweep dispatches it; an administrator who wants access to end sooner deactivates the client, and one who wants it gone deletes it.',\n },\n\n /**\n * The operator's suspension door (#1028). Its contract says what it stops: new access. An\n * already-minted client-credentials token is not re-checked against the client until it\n * expires, so the outcome below does not promise instant revocation.\n */\n [AppOAuthClients_Operations.DEACTIVATE]: {\n operationId: AppOAuthClients_Operations.DEACTIVATE,\n purpose: 'Suspend an active client in place, for incident or policy control, without issuing new secret material.',\n outcome: 'Status becomes inactive. The client can no longer authenticate with its secret or obtain new tokens; a token it already holds keeps working until that token expires.',\n whenToUse: 'Pause a client you suspect is compromised or no longer needed while you investigate, instead of rotating — rotation hands you a new secret to distribute, suspension does not.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The client 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 application client exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The client 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: 'Suspend a application client during an investigation',\n request: {},\n response: { ...APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE, status: OAuthClientStatus.INACTIVE },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n\n [AppOAuthClients_Operations.REACTIVATE]: {\n operationId: AppOAuthClients_Operations.REACTIVATE,\n purpose: 'Lift a suspension so the client authenticates again with the secret it already holds.',\n outcome: 'Status returns to active. Nothing about the secret changes.',\n whenToUse: 'When a client was suspended temporarily rather than deleted. An expired client cannot be brought back this way — register a new one.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The client 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 application client exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The client 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: 'Reinstate a application client after the investigation cleared it',\n request: {},\n response: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n\n [AppOAuthClients_Operations.ROTATE]: {\n operationId: AppOAuthClients_Operations.ROTATE,\n purpose: 'Reissue a client with invalidation of the old material at a specified boundary.',\n outcome: 'The new plaintext secret is returned exactly once. The previous secret remains valid until the requested invalidation time so integrations can migrate without downtime.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The client 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.' },\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 secret becomes unusable, so holding a live session is deliberately not sufficient — obtain a token from the re-authentication route and retry with it.', customMessageReference: ErrorCustomMessageReference.STEP_UP_REQUIRED },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No app client exists for the supplied id in the caller’s application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The client 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 client to prevent rapid re-rotation that would churn the credential cutover window.',\n examples: [\n {\n title: 'Rotate a client with a scheduled migration window',\n request: {\n oldSecretInvalidationDate: '2099-06-16T00:00:00.000Z',\n },\n response: {\n ...APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE,\n secretPrefix: 'oc_app_2',\n previousSecretPrefix: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.secretPrefix,\n previousSecretInvalidationDate: '2099-06-16T00:00:00.000Z',\n plainSecret: 'oc_app_rotated-secret-returned-once',\n oldClientId: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE._id,\n oldSecretInvalidationDate: '2099-06-16T00:00:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [AppOAuthClients_Operations.REGENERATE]: {\n operationId: AppOAuthClients_Operations.REGENERATE,\n purpose: 'Generate a new secret without the full rotate lifecycle semantics.',\n outcome: 'The new plaintext secret is returned exactly once, administrators are notified, and the previous secret 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 client 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 client exists for the supplied id in the caller’s application scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The client 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 client for the same credential-hygiene reasons as rotation.',\n examples: [\n {\n title: 'Regenerate with an open migration overlap',\n request: {},\n response: {\n ...APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE,\n secretPrefix: 'oc_app_3',\n previousSecretPrefix: APPLICATION_OAUTH_CLIENT_RECORD_EXAMPLE.secretPrefix,\n plainSecret: 'oc_app_regenerated-secret-returned-once',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\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 `previousSecretInvalidationDate`; regenerate: until the next rotation); the client-credentials exchange accepts the current OR the not-yet-invalidated previous secret.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n label: {\n purpose: 'The client\\'s own `name` — the word an operator gave it, which is the only handle that survives a secret rotation.',\n },\n layout: {\n purpose: 'Four sections: `overview` (which client this is and whether it is usable), `access` (what it may ask for), `redirects` (where the authorization-code leg may return), `lifecycle` (validity and last use). Deliberately one more than the api-keys sibling — redirect URIs exist only for the interactive leg and are the one field whose exact value decides whether a sign-in round trip lands, so burying them inside `access` would hide the thing most often mistyped.',\n displayPurpose: 'The header carries the client name and its status badge, so neither is a row. `overview` is an untitled card of the secret prefix and the description (hidden when empty); `access`, `redirects` and `lifecycle` are titled cards, and no read section shows a description. Empty rows that say nothing hide: the post-logout redirects, the expiry, the last use. Read and edit share the section vocabulary; the edit layout omits `overview.status` and the whole `lifecycle` block because status moves through DEACTIVATE / REACTIVATE / EXPIRE and never through a form. The form focuses the name and keeps one description, on `redirects`.',\n summaryPurpose: 'A card titled with the client name, then its status badge, its secret prefix, and its expiry labelled (a bare date could be any of the client\\'s dates).',\n sections: {\n overview: {\n purpose: 'Name, description, status and the non-secret `secretPrefix` that identifies WHICH credential a log line names.',\n whenToUse: 'Recognising a client in a list, and confirming it is the one an incident refers to.',\n textSlots: {\n title: { purpose: 'Name the client-identity block. Not rendered: the page header already names the client.' },\n },\n },\n access: {\n purpose: 'Granted grant types, scopes, roles, token-endpoint authentication method and whether consent is required.',\n whenToUse: 'Deciding what this credential can actually do before approving or narrowing it.',\n textSlots: {\n title: { purpose: 'Label the authority block.' },\n },\n },\n redirects: {\n purpose: 'Redirect and post-logout redirect URIs for the authorization-code leg.',\n whenToUse: 'Registering or repairing an interactive integration.',\n textSlots: {\n title: { purpose: 'Label the redirect block.' },\n description: { purpose: 'Warn that these are matched exactly, so a trailing slash or scheme difference is a failed sign-in rather than a warning.' },\n },\n },\n lifecycle: {\n purpose: 'Expiry, last use and creation instants.',\n whenToUse: 'Judging whether a client is still in service before retiring it.',\n textSlots: {\n title: { purpose: 'Label the validity block.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'The operator\\'s client inventory, reached from Settings → Administration → OAuth clients. Embedded rather than routed: it is a settings surface, not a destination of its own.', whenToUse: 'Auditing which machine credentials exist and which are still active.' },\n [Op.READ]: { purpose: 'One client in full, drilled into from a row.', whenToUse: 'Before rotating, deactivating or changing what a client may request.' },\n [Op.CREATE]: { purpose: 'Registration, and the only moment besides rotate/regenerate at which a plaintext secret exists.', whenToUse: 'Onboarding a new machine integration.' },\n [AppOAuthClients_Operations.ROTATE]: { purpose: 'New secret, prior one authenticating until `previousSecretInvalidationDate`.', whenToUse: 'Planned rotation where the consumer needs a changeover window.' },\n [AppOAuthClients_Operations.REGENERATE]: { purpose: 'New secret without invalidating the previous one until the next rotation.', whenToUse: 'Issuing a second live secret during a migration.' },\n [AppOAuthClients_Operations.DEACTIVATE]: { purpose: 'ACTIVE → INACTIVE. The operator\\'s way to stop a client immediately.', whenToUse: 'Suspected compromise, or retiring an integration ahead of its expiry.' },\n [AppOAuthClients_Operations.REACTIVATE]: { purpose: 'INACTIVE → ACTIVE. Does NOT revive an EXPIRED client, which is why EXPIRED renders as a distinct state rather than a variant of INACTIVE.', whenToUse: 'Lifting a suspension that turned out to be unnecessary.' },\n [AppOAuthClients_Operations.EXPIRE]: { purpose: 'ACTIVE → EXPIRED, dispatched by the sweep once `expiresAt` passes. Headless — it has no interface at all, because no person invokes it.', whenToUse: 'Never by hand; an operator ending a client early uses DEACTIVATE.' },\n },\n }),\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"application-versions.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/application-versions.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,qBAAqB,IAAI,EAAE,EAG5B,MAAM,uBAAuB,CAAC;AAgB/B,eAAO,MAAM,wCAAwC;;;;;;iCAmKpD,CAAC"}
1
+ {"version":3,"file":"application-versions.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/application-versions.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EAEL,qBAAqB,IAAI,EAAE,EAG5B,MAAM,uBAAuB,CAAC;AAgB/B,eAAO,MAAM,wCAAwC;;;;;;iCA2LpD,CAAC"}
@@ -70,7 +70,7 @@ export const applicationVersionsResourceSpecification = resourceSpecificationFro
70
70
  { code: HttpResponseStatusCode.CREATED_201, meaning: 'The release record was recorded for the owning application and is returned with its id.' },
71
71
  ],
72
72
  errorScenarios: [
73
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The version string or release fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },
73
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The version string or release fields fail schema validation.' },
74
74
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin for the owning application; recording releases is org-admin gated.' },
75
75
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The owning application referenced by this release does not exist in the caller’s scope.' },
76
76
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'A release row with the same version string already exists for this application.' },
@@ -127,7 +127,7 @@ export const applicationVersionsResourceSpecification = resourceSpecificationFro
127
127
  { code: HttpResponseStatusCode.OK_200, meaning: 'The release record was patched and the updated record is returned.' },
128
128
  ],
129
129
  errorScenarios: [
130
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited release fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },
130
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited release fields fail schema validation.' },
131
131
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin for the owning application; editing releases is org-admin gated.' },
132
132
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No release row exists for the supplied id in the caller’s scope.' },
133
133
  ],
@@ -151,6 +151,30 @@ export const applicationVersionsResourceSpecification = resourceSpecificationFro
151
151
  'This resource RECORDS releases; it does not control them. `PROMOTE` / `ROLLBACK` / `DEPRECATE` were declared here and removed on 2026-08-01 — all three were routed but wrote nothing, and the state they implied cannot live on this row: the framework is mono-env (each deployment has its own infrastructure and database), so "which build is live in environment X" is not a fact this application\'s database can hold, and deploying a built image is owned by the CLI self-host lane rather than by a resource verb.',
152
152
  ],
153
153
  }), { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION }), () => ({
154
+ label: {
155
+ purpose: 'The version string: a release is known by it everywhere else, so it is the page title and no row repeats it.',
156
+ },
157
+ layout: {
158
+ purpose: 'A release reads as its date and its notes; the version is the page title.',
159
+ displayPurpose: 'An untitled card holding the release date, then the notes under their own heading, unlabelled and full width. No read section shows a description. The form is one flat list — version (focused), release date, notes as a paragraph — with no headings.',
160
+ summaryPurpose: 'One line: the version and the release date, bare.',
161
+ sections: {
162
+ overview: {
163
+ purpose: 'The release date. The version is the page title.',
164
+ whenToUse: 'The first block of a single release\'s read page.',
165
+ textSlots: {
166
+ title: { purpose: 'Name the release-facts block. Not rendered on the read page, where the header already names the release.' },
167
+ },
168
+ },
169
+ releaseNotes: {
170
+ purpose: 'The release notes, as written.',
171
+ whenToUse: 'Reading what changed in a release.',
172
+ textSlots: {
173
+ title: { purpose: 'Head the release notes; the notes themselves carry no label beneath it.' },
174
+ },
175
+ },
176
+ },
177
+ },
154
178
  views: {
155
179
  [Op.CREATE]: { purpose: 'Register a new row after CI publishes artifacts.', whenToUse: 'Release automation and manual hotfix entry.' },
156
180
  [Op.READ]: { purpose: 'Detail drawer in admin for one release line.', whenToUse: 'Comparing notes during migration planning.' },
@@ -1 +1 @@
1
- {"version":3,"file":"application-versions.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/application-versions.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0C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E,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,EACD,GAAG,EAAE,CAAC,CAAC;IACL,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,kDAAkD,EAAE,SAAS,EAAE,6CAA6C,EAAE;QACtI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,8CAA8C,EAAE,SAAS,EAAE,4CAA4C,EAAE;QAC/H,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,oCAAoC,EAAE,SAAS,EAAE,qCAAqC,EAAE;QAC9G,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,kEAAkE,EAAE,SAAS,EAAE,4CAA4C,EAAE;QACrJ,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,2EAA2E,EAAE,SAAS,EAAE,oDAAoD,EAAE;QACtK,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,sDAAsD,EAAE,SAAS,EAAE,qDAAqD,EAAE;KACnJ;CACF,CAAC,CACH,CAAC","sourcesContent":["import { applicationVersionsAdminResourceUIBehavior as applicationVersionsSource } 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 ApplicationVersionSchema,\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n applicationVersionsResourceConfiguration_InitializationFactory as applicationVersionsFactory,\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 applicationVersionsFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst applicationVersionsUI = applicationVersionsSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nexport const applicationVersionsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(applicationVersionsUI),\n resourceSpecification(\n applicationVersionsFactory,\n ApplicationVersionSchema,\n ({ schemaShape }) => ({\n purpose: 'The application\\'s published releases: one record per version, with its release notes and publication date. A published version is not edited afterwards.',\n businessRole: 'Serves as the application’s changelog of record — what shipped, when, and with which notes — for support, audit, and migration planning.',\n lifecycleRole: 'Grows an append-mostly history over time through core CRUD; it records releases and does not control them. Deployment (which build runs where) is owned by the CLI self-host lane, and the framework is mono-env, so no promotion/rollback/deprecation state lives on the version row.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.APPLICATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApplicationVersionSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'applicationVersionsResourceConfiguration_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_VERSIONS',\n },\n // No `customEnum`: this resource has no custom operations. The former\n // `ApplicationVersion_Operations` enum was removed on 2026-08-01 along with its three\n // release-management verbs (see `businessConstraints`).\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'applicationVersionsAdminResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n applicationId: schemaShape.applicationId.foreignKeySpec({\n meaning: 'The owning `applications` record this release belongs to; immutable after create.',\n whyItMatters: 'Scopes the version history to a single application so roll-forward/rollback and changelog surfaces only ever mix builds of the same app.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n version: schemaShape.version.stringSpec({ meaning: 'Semver (or product-specific) string for this build.', importance: FieldSemanticImportance.PRIMARY }),\n releaseDate: schemaShape.releaseDate.dateSpec({ meaning: 'Publish timestamp for the cut.' }),\n releaseNotes: schemaShape.releaseNotes.stringSpec({ meaning: 'Changelog and migration notes for operators and support.' }),\n },\n operations: {\n [Op.CREATE]: {\n purpose: 'Record a new build row when a pipeline produces artifacts.',\n outcome: 'Appears in history tables and can be selected for traffic.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The release record was recorded for the owning application and is returned with its id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The version string or release fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin for the owning application; recording releases is org-admin gated.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The owning application referenced by this release does not exist in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A release row with the same version string already exists for this application.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Record a new release',\n request: {\n version: '2.4.0',\n releaseDate: '2026-06-15T09:00:00.000Z',\n releaseNotes: 'Adds bulk task completion and fixes the assignee filter.',\n },\n response: {\n version: '2.4.0',\n releaseDate: '2026-06-15T09:00:00.000Z',\n releaseNotes: 'Adds bulk task completion and fixes the assignee filter.',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.READ]: {\n purpose: 'Detail view for a single release, including long notes.',\n outcome: 'Support and SRE can verify exactly what shipped.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The release record was found and its full detail (including notes) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No release row exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Paginated history for the owning application.',\n outcome: 'Ordered timeline for “what’s live” decisions.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of release records for the owning application.' },\n ],\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Search or filter the release log.',\n outcome: 'A narrowed result set for tenants that deploy frequently.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of release records matching the version/notes query.' },\n ],\n idempotent: true,\n },\n [Op.UPDATE]: {\n purpose: 'Patch release notes or metadata where mutability is allowed by policy.',\n outcome: 'Correct typos in notes without re-running the build.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The release record was patched and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited release fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin for the owning application; editing releases is org-admin gated.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No release row exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Remove errant or superseded records when legal policy allows hard delete.',\n outcome: 'Row absent from public history; audit events may still exist outside this resource.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The release record was deleted; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin for the owning application; deleting releases is org-admin gated.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No release row exists for the supplied id (or it was already deleted).' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Only the admin `application` preset materializes the versions relationship tab; end-user `APPLICATION` main preset keeps versions hidden in merged maps.',\n 'This resource RECORDS releases; it does not control them. `PROMOTE` / `ROLLBACK` / `DEPRECATE` were declared here and removed on 2026-08-01 — all three were routed but wrote nothing, and the state they implied cannot live on this row: the framework is mono-env (each deployment has its own infrastructure and database), so \"which build is live in environment X\" is not a fact this application\\'s database can hold, and deploying a built image is owned by the CLI self-host lane rather than by a resource verb.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n views: {\n [Op.CREATE]: { purpose: 'Register a new row after CI publishes artifacts.', whenToUse: 'Release automation and manual hotfix entry.' },\n [Op.READ]: { purpose: 'Detail drawer in admin for one release line.', whenToUse: 'Comparing notes during migration planning.' },\n [Op.LIST]: { purpose: 'History tab in admin apps surface.', whenToUse: 'Default release browser experience.' },\n [Op.SEARCH]: { purpose: 'Search the release log when search is enabled in factory config.', whenToUse: 'Large app histories in enterprise tenants.' },\n [Op.UPDATE]: { purpose: 'Note edits for clarifications or legal redactions in displayed changelog.', whenToUse: 'When marketing updates copy without changing bits.' },\n [Op.DELETE]: { purpose: 'Remove mistaken rows in exceptional migration flows.', whenToUse: 'Test builds accidentally captured as prod releases.' },\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"application-versions.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/application-versions.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0CAA0C,IAAI,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACvH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0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mDAAmD;QACnE,QAAQ,EAAE;YACR,QAAQ,EAAE;gBACR,OAAO,EAAE,kDAAkD;gBAC3D,SAAS,EAAE,mDAAmD;gBAC9D,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,0GAA0G,EAAE;iBAC/H;aACF;YACD,YAAY,EAAE;gBACZ,OAAO,EAAE,gCAAgC;gBACzC,SAAS,EAAE,oCAAoC;gBAC/C,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,yEAAyE,EAAE;iBAC9F;aACF;SACF;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,kDAAkD,EAAE,SAAS,EAAE,6CAA6C,EAAE;QACtI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,8CAA8C,EAAE,SAAS,EAAE,4CAA4C,EAAE;QAC/H,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,oCAAoC,EAAE,SAAS,EAAE,qCAAqC,EAAE;QAC9G,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,kEAAkE,EAAE,SAAS,EAAE,4CAA4C,EAAE;QACrJ,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,2EAA2E,EAAE,SAAS,EAAE,oDAAoD,EAAE;QACtK,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,sDAAsD,EAAE,SAAS,EAAE,qDAAqD,EAAE;KACnJ;CACF,CAAC,CACH,CAAC","sourcesContent":["import { applicationVersionsAdminResourceUIBehavior as applicationVersionsSource } 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 ApplicationVersionSchema,\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n applicationVersionsResourceConfiguration_InitializationFactory as applicationVersionsFactory,\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 applicationVersionsFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst applicationVersionsUI = applicationVersionsSource as ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nexport const applicationVersionsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(applicationVersionsUI),\n resourceSpecification(\n applicationVersionsFactory,\n ApplicationVersionSchema,\n ({ schemaShape }) => ({\n purpose: 'The application\\'s published releases: one record per version, with its release notes and publication date. A published version is not edited afterwards.',\n businessRole: 'Serves as the application’s changelog of record — what shipped, when, and with which notes — for support, audit, and migration planning.',\n lifecycleRole: 'Grows an append-mostly history over time through core CRUD; it records releases and does not control them. Deployment (which build runs where) is owned by the CLI self-host lane, and the framework is mono-env, so no promotion/rollback/deprecation state lives on the version row.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.APPLICATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApplicationVersionSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'applicationVersionsResourceConfiguration_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_VERSIONS',\n },\n // No `customEnum`: this resource has no custom operations. The former\n // `ApplicationVersion_Operations` enum was removed on 2026-08-01 along with its three\n // release-management verbs (see `businessConstraints`).\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'applicationVersionsAdminResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n applicationId: schemaShape.applicationId.foreignKeySpec({\n meaning: 'The owning `applications` record this release belongs to; immutable after create.',\n whyItMatters: 'Scopes the version history to a single application so roll-forward/rollback and changelog surfaces only ever mix builds of the same app.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n version: schemaShape.version.stringSpec({ meaning: 'Semver (or product-specific) string for this build.', importance: FieldSemanticImportance.PRIMARY }),\n releaseDate: schemaShape.releaseDate.dateSpec({ meaning: 'Publish timestamp for the cut.' }),\n releaseNotes: schemaShape.releaseNotes.stringSpec({ meaning: 'Changelog and migration notes for operators and support.' }),\n },\n operations: {\n [Op.CREATE]: {\n purpose: 'Record a new build row when a pipeline produces artifacts.',\n outcome: 'Appears in history tables and can be selected for traffic.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The release record was recorded for the owning application and is returned with its id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The version string or release fields fail schema validation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin for the owning application; recording releases is org-admin gated.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The owning application referenced by this release does not exist in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A release row with the same version string already exists for this application.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Record a new release',\n request: {\n version: '2.4.0',\n releaseDate: '2026-06-15T09:00:00.000Z',\n releaseNotes: 'Adds bulk task completion and fixes the assignee filter.',\n },\n response: {\n version: '2.4.0',\n releaseDate: '2026-06-15T09:00:00.000Z',\n releaseNotes: 'Adds bulk task completion and fixes the assignee filter.',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.READ]: {\n purpose: 'Detail view for a single release, including long notes.',\n outcome: 'Support and SRE can verify exactly what shipped.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The release record was found and its full detail (including notes) is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No release row exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Paginated history for the owning application.',\n outcome: 'Ordered timeline for “what’s live” decisions.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of release records for the owning application.' },\n ],\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Search or filter the release log.',\n outcome: 'A narrowed result set for tenants that deploy frequently.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of release records matching the version/notes query.' },\n ],\n idempotent: true,\n },\n [Op.UPDATE]: {\n purpose: 'Patch release notes or metadata where mutability is allowed by policy.',\n outcome: 'Correct typos in notes without re-running the build.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The release record was patched and the updated record is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited release fields fail schema validation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin for the owning application; editing releases is org-admin gated.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No release row exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Remove errant or superseded records when legal policy allows hard delete.',\n outcome: 'Row absent from public history; audit events may still exist outside this resource.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The release record was deleted; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin for the owning application; deleting releases is org-admin gated.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No release row exists for the supplied id (or it was already deleted).' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Only the admin `application` preset materializes the versions relationship tab; end-user `APPLICATION` main preset keeps versions hidden in merged maps.',\n 'This resource RECORDS releases; it does not control them. `PROMOTE` / `ROLLBACK` / `DEPRECATE` were declared here and removed on 2026-08-01 — all three were routed but wrote nothing, and the state they implied cannot live on this row: the framework is mono-env (each deployment has its own infrastructure and database), so \"which build is live in environment X\" is not a fact this application\\'s database can hold, and deploying a built image is owned by the CLI self-host lane rather than by a resource verb.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n label: {\n purpose: 'The version string: a release is known by it everywhere else, so it is the page title and no row repeats it.',\n },\n layout: {\n purpose: 'A release reads as its date and its notes; the version is the page title.',\n displayPurpose: 'An untitled card holding the release date, then the notes under their own heading, unlabelled and full width. No read section shows a description. The form is one flat list — version (focused), release date, notes as a paragraph — with no headings.',\n summaryPurpose: 'One line: the version and the release date, bare.',\n sections: {\n overview: {\n purpose: 'The release date. The version is the page title.',\n whenToUse: 'The first block of a single release\\'s read page.',\n textSlots: {\n title: { purpose: 'Name the release-facts block. Not rendered on the read page, where the header already names the release.' },\n },\n },\n releaseNotes: {\n purpose: 'The release notes, as written.',\n whenToUse: 'Reading what changed in a release.',\n textSlots: {\n title: { purpose: 'Head the release notes; the notes themselves carry no label beneath it.' },\n },\n },\n },\n },\n views: {\n [Op.CREATE]: { purpose: 'Register a new row after CI publishes artifacts.', whenToUse: 'Release automation and manual hotfix entry.' },\n [Op.READ]: { purpose: 'Detail drawer in admin for one release line.', whenToUse: 'Comparing notes during migration planning.' },\n [Op.LIST]: { purpose: 'History tab in admin apps surface.', whenToUse: 'Default release browser experience.' },\n [Op.SEARCH]: { purpose: 'Search the release log when search is enabled in factory config.', whenToUse: 'Large app histories in enterprise tenants.' },\n [Op.UPDATE]: { purpose: 'Note edits for clarifications or legal redactions in displayed changelog.', whenToUse: 'When marketing updates copy without changing bits.' },\n [Op.DELETE]: { purpose: 'Remove mistaken rows in exceptional migration flows.', whenToUse: 'Test builds accidentally captured as prod releases.' },\n },\n }),\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"applications.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/applications.resource.specification.ts"],"names":[],"mappings":"AAWA,OAAO,EAEL,qBAAqB,IAAI,EAAE,EAG5B,MAAM,uBAAuB,CAAC;AAmB/B,eAAO,MAAM,iCAAiC;;;;;;;iCAwL7C,CAAC"}
1
+ {"version":3,"file":"applications.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/applications.resource.specification.ts"],"names":[],"mappings":"AAWA,OAAO,EAEL,qBAAqB,IAAI,EAAE,EAI5B,MAAM,uBAAuB,CAAC;AAmB/B,eAAO,MAAM,iCAAiC;;;;;;;iCAwL7C,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { applicationAdminApplicationResourceUIBehavior as applicationsAdminSource, applicationMainApplicationResourceUIBehavior as applicationsMainSource, } from '@wildo-ai/presets-components';
2
2
  import { LabelAudience } from '@wildo-ai/presets-components-models';
3
3
  import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
4
- import { ApplicationSchema, CoreResourceOperation as Op, ResourcePrimaryScope, applicationResourceConfiguration_InitializationFactory as applicationsFactory, } from '@wildo-ai/saas-models';
4
+ import { ApplicationSchema, CoreResourceOperation as Op, ResourcePrimaryScope, applicationResourceConfiguration_InitializationFactory as applicationsFactory, ErrorCustomMessageReference, } from '@wildo-ai/saas-models';
5
5
  import { HttpResponseStatusCode, mergeResourceFrontendConfigurations, resourceFrontendConfiguration, resourceSpecification, resourceSpecificationFromFrontendConfiguration, } from '../../../_core/index.js';
6
6
  import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
7
7
  // `undefined` custom-operation parameter: `APPLICATION` declares no custom operations (see the
@@ -106,7 +106,7 @@ export const applicationsResourceSpecification = resourceSpecificationFromFronte
106
106
  { code: HttpResponseStatusCode.CREATED_201, meaning: 'The application was provisioned under the org and is returned with its server-assigned id and slug.' },
107
107
  ],
108
108
  errorScenarios: [
109
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The display name or slug payload fails schema validation.', errorCode: 'VALIDATION_FAILED' },
109
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The display name or slug payload fails schema validation.' },
110
110
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an org admin (for their own org) nor a platform super-admin (for any org); app provisioning is admin gated.' },
111
111
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'The requested `appSlug` is already taken — slugs are immutable routing keys and must be unique.' },
112
112
  ],
@@ -134,7 +134,7 @@ export const applicationsResourceSpecification = resourceSpecificationFromFronte
134
134
  { code: HttpResponseStatusCode.OK_200, meaning: 'The mutable application fields were updated and the new state is returned.' },
135
135
  ],
136
136
  errorScenarios: [
137
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited fields fail schema validation (e.g. attempting to mutate the immutable slug).', errorCode: 'VALIDATION_FAILED' },
137
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited fields fail schema validation (e.g. attempting to mutate the immutable slug).' },
138
138
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin (or platform super-admin) for this application; edits are admin gated.' },
139
139
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No application exists for the supplied id in the caller’s scope.' },
140
140
  ],
@@ -148,7 +148,7 @@ export const applicationsResourceSpecification = resourceSpecificationFromFronte
148
148
  ],
149
149
  errorScenarios: [
150
150
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin (or platform super-admin) for this application; this is a critical-risk admin-gated operation.' },
151
- { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'Both variants declare `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Obtain one from the re-authentication route and retry with it — an application is a top-level scope, so its deletion destroys everything scoped beneath it and a live session alone is deliberately not sufficient.', errorCode: 'STEP_UP_REQUIRED' },
151
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'Both variants declare `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Obtain one from the re-authentication route and retry with it — an application is a top-level scope, so its deletion destroys everything scoped beneath it and a live session alone is deliberately not sufficient.', customMessageReference: ErrorCustomMessageReference.STEP_UP_REQUIRED },
152
152
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No application exists for the supplied id (or it was already deleted).' },
153
153
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'Product policy blocks the delete because the application has dependents that cannot be cascaded automatically (e.g. it is still active or has bound infrastructure).' },
154
154
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"applications.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/applications.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6CAA6C,IAAI,uBAAuB,EACxE,4CAA4C,IAAI,sBAAsB,GACvE,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,iBAAiB,EACjB,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EACpB,sDAAsD,IAAI,mBAAmB,GAC9E,MAAM,uBAAuB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AC,CAAC;IACL,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,QAAQ,EAAE;gBACR,OAAO,EAAE;oBACP,OAAO,EAAE,6EAA6E;oBACtF,SAAS,EAAE,uEAAuE;iBACnF;gBACD,KAAK,EAAE;oBACL,OAAO,EAAE,sEAAsE;oBAC/E,SAAS,EAAE,2FAA2F;iBACvG;aACF;SACF;QACD,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,kFAAkF,EAAE,SAAS,EAAE,0CAA0C,EAAE;QACjK,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,6DAA6D,EAAE,SAAS,EAAE,uDAAuD,EAAE;QAC3J,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,yFAAyF,EAAE,SAAS,EAAE,kDAAkD,EAAE;QAClL,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,kEAAkE,EAAE,SAAS,EAAE,wDAAwD,EAAE;QACjK,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,sEAAsE,EAAE,SAAS,EAAE,yCAAyC,EAAE;KACvJ;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n applicationAdminApplicationResourceUIBehavior as applicationsAdminSource,\n applicationMainApplicationResourceUIBehavior as applicationsMainSource,\n} 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 ApplicationSchema,\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n applicationResourceConfiguration_InitializationFactory as applicationsFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof applicationsFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\n// `undefined` custom-operation parameter: `APPLICATION` declares no custom operations (see the\n// operationVocabulary note below). Same shape as `application-metadata.resource.specification.ts`.\nconst applicationsMainUI = applicationsMainSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\nconst applicationsAdminUI = applicationsAdminSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\n\nexport const applicationsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(applicationsMainUI),\n resourceFrontendConfiguration(applicationsAdminUI),\n ),\n resourceSpecification(\n applicationsFactory,\n ApplicationSchema,\n ({ schemaShape }) => ({\n purpose: 'The application\\'s own identity record: its slug, display name and how it is registered with the platform that hosts it.',\n businessRole: 'Anchor for all app-scoped entitlements, versions, and infrastructure configuration in the control plane.',\n lifecycleRole: 'Provisioned through platform bootstrap, managed by admins, and suspended or re-activated under governance. Its tenancy is fixed at creation — an application cannot be re-parented to another organization.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.APPLICATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApplicationSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'applicationResourceConfiguration_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',\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 // No `customEnum`: `APPLICATION` declares no custom operations. TRANSFER, ACTIVATE and\n // SUSPEND were all removed on 2026-08-01 (see businessConstraints), emptying the\n // `Application_Operations` enum, which was deleted with them.\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'applicationMainApplicationResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'applicationAdminApplicationResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n appDisplayName: schemaShape.appDisplayName.stringSpec({\n meaning: 'Operator-facing name shown in org and platform consoles.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n appSlug: schemaShape.appSlug.stringSpec({\n meaning: 'Immutable routing key and DNS-safe identifier for the app install.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n lastVersion: schemaShape.lastVersion.stringSpec({ meaning: 'Most recent published semver for this application. Read-only on the API (excluded from create and update); it is written by platform provisioning, not by application traffic, and is absent until provisioning sets it.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Members read a lightweight about row; app admins read the full row; platform admins use `admin` variants.',\n outcome: 'Clients hydrate shell chrome and about surfaces.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The application was found and the projection the variant asks for is returned — the short “about” view or the full record.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No application exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Paginated apps in org or platform directory views.',\n outcome: 'Rows for org multi-app and platform overviews.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of applications visible to the caller (org-scoped by default, all apps via the `admin` variant).' },\n ],\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Filter apps by display name, slug, or health metadata where indexed.',\n outcome: 'Matches for back-office and org admin tools.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of applications matching the display-name/slug query in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Provision a new app under an org or for a customer in platform mode.',\n outcome: 'New `APPLICATION` and downstream bootstrap hooks.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The application was provisioned under the org and is returned with its server-assigned id and slug.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The display name or slug payload fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an org admin (for their own org) nor a platform super-admin (for any org); app provisioning is admin gated.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The requested `appSlug` is already taken — slugs are immutable routing keys and must be unique.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Provision a new application',\n request: {\n appDisplayName: 'Wonder Todos',\n appSlug: 'wonder-todos',\n },\n response: {\n appDisplayName: 'Wonder Todos',\n appSlug: 'wonder-todos',\n lastVersion: null,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Change display name or mutable metadata; slug remains immutable in normal flows.',\n outcome: 'Updated copy and routing for dependent services.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The mutable application fields were updated and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited fields fail schema validation (e.g. attempting to mutate the immutable slug).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin (or platform super-admin) for this application; edits are admin gated.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No application exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Remove an application record and cascade per registry (high risk).',\n outcome: 'Tombstone/soft delete varies by product policy.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The application (and its composed children) were removed per the registry cascade; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin (or platform super-admin) for this application; this is a critical-risk admin-gated operation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'Both variants declare `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Obtain one from the re-authentication route and retry with it — an application is a top-level scope, so its deletion destroys everything scoped beneath it and a live session alone is deliberately not sufficient.', errorCode: 'STEP_UP_REQUIRED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No application exists for the supplied id (or it was already deleted).' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Product policy blocks the delete because the application has dependents that cannot be cascaded automatically (e.g. it is still active or has bound infrastructure).' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: [\n '`APPLICATION` is the self-anchor for `APPLICATION` primary scope; align the declared `resourcePrimaryScope` with the registry for companion prompts.',\n 'Cross-organization application transfer is intentionally NOT a framework capability. A `TRANSFER` operation was declared here in two variants and removed on 2026-08-01: it was routed but wrote nothing, and the move it named is incoherent in this model. `APPLICATION` is the self-anchored top-level scope — the application IS the tenant container and organizations are a sibling scope inside its tenancy — so there is no owning-organization field to re-point and no `ORGANIZATIONS → APPLICATION` relationship in the registry. This mirrors the framework’s refusal of cross-organization MEMBER transfer as a tenant-boundary crossing it does not sanction.',\n 'Application status lifecycle is intentionally NOT a framework capability. `ACTIVATE` and `SUSPEND` were declared here as super-admin verbs (each with a generated bulk variant) and removed on 2026-08-01: they were routed but wrote nothing, because this resource carries no lifecycle state to write. `APPLICATION` is an identity row (`appSlug`, `appDisplayName`, `lastVersion`, `platformAppId`); an application’s real operational state lives one tier up, at `PLATFORM_APPLICATIONS` / `Wildo_Application_Config`, managed by the platform apps-manager. Halting an application is a platform-tier action, not a field flip on the application’s own registry entry — and by ground 3 above, the suspending super-admin’s session lives inside the container being suspended. Re-declaring these verbs requires the per-organization application-ownership model first, not an `ApplicationStatus` field bolted on to satisfy two buttons.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n views: {\n [Op.READ]: {\n variants: {\n default: {\n purpose: 'Read-only \"about this app\" shell entry for end users in merged main preset.',\n whenToUse: 'In-app about drawer when org members cannot manage versions directly.',\n },\n admin: {\n purpose: 'App-admin and platform read for full fields and child relationships.',\n whenToUse: 'Admin area host surfaces (`application` preset wires metadata/versions as tabs in admin).',\n },\n },\n },\n [Op.LIST]: { purpose: 'Directory listing in admin and platform UIs (admin variants only in merged map).', whenToUse: 'Multi-app org view and support consoles.' },\n [Op.SEARCH]: { purpose: 'Search in admin and platform UIs for application discovery.', whenToUse: 'When many apps exist in one org or in global catalog.' },\n [Op.CREATE]: { purpose: 'App creation in admin and platform (merged preset adds `admin` variant addressability).', whenToUse: 'Onboarding a new app id under customer contract.' },\n [Op.UPDATE]: { purpose: 'Administrator edits the mutable fields on the `APPLICATION` row.', whenToUse: 'Rebranding, slug freeze exceptions, and support edits.' },\n [Op.DELETE]: { purpose: 'Destructive removal when policy allows a hard delete in admin flows.', whenToUse: 'Pilots, migrations, and contract exits.' },\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"applications.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/applications/resources/applications.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6CAA6C,IAAI,uBAAuB,EACxE,4CAA4C,IAAI,sBAAsB,GACvE,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBA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EAAE;QACnB,sJAAsJ;QACtJ,6oBAA6oB;QAC7oB,u5BAAu5B;KACx5B;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,EACD,GAAG,EAAE,CAAC,CAAC;IACL,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,QAAQ,EAAE;gBACR,OAAO,EAAE;oBACP,OAAO,EAAE,6EAA6E;oBACtF,SAAS,EAAE,uEAAuE;iBACnF;gBACD,KAAK,EAAE;oBACL,OAAO,EAAE,sEAAsE;oBAC/E,SAAS,EAAE,2FAA2F;iBACvG;aACF;SACF;QACD,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,kFAAkF,EAAE,SAAS,EAAE,0CAA0C,EAAE;QACjK,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,6DAA6D,EAAE,SAAS,EAAE,uDAAuD,EAAE;QAC3J,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,yFAAyF,EAAE,SAAS,EAAE,kDAAkD,EAAE;QAClL,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,kEAAkE,EAAE,SAAS,EAAE,wDAAwD,EAAE;QACjK,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,sEAAsE,EAAE,SAAS,EAAE,yCAAyC,EAAE;KACvJ;CACF,CAAC,CACH,CAAC","sourcesContent":["import {\n applicationAdminApplicationResourceUIBehavior as applicationsAdminSource,\n applicationMainApplicationResourceUIBehavior as applicationsMainSource,\n} 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 ApplicationSchema,\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n applicationResourceConfiguration_InitializationFactory as applicationsFactory,\n ErrorCustomMessageReference,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof applicationsFactory>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\n// `undefined` custom-operation parameter: `APPLICATION` declares no custom operations (see the\n// operationVocabulary note below). Same shape as `application-metadata.resource.specification.ts`.\nconst applicationsMainUI = applicationsMainSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\nconst applicationsAdminUI = applicationsAdminSource as ResourceUIBehaviorConfig<undefined, Core, Main>;\n\nexport const applicationsResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(applicationsMainUI),\n resourceFrontendConfiguration(applicationsAdminUI),\n ),\n resourceSpecification(\n applicationsFactory,\n ApplicationSchema,\n ({ schemaShape }) => ({\n purpose: 'The application\\'s own identity record: its slug, display name and how it is registered with the platform that hosts it.',\n businessRole: 'Anchor for all app-scoped entitlements, versions, and infrastructure configuration in the control plane.',\n lifecycleRole: 'Provisioned through platform bootstrap, managed by admins, and suspended or re-activated under governance. Its tenancy is fixed at creation — an application cannot be re-parented to another organization.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.APPLICATIONS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApplicationSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'applicationResourceConfiguration_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',\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 // No `customEnum`: `APPLICATION` declares no custom operations. TRANSFER, ACTIVATE and\n // SUSPEND were all removed on 2026-08-01 (see businessConstraints), emptying the\n // `Application_Operations` enum, which was deleted with them.\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'applicationMainApplicationResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'applicationAdminApplicationResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n fields: {\n appDisplayName: schemaShape.appDisplayName.stringSpec({\n meaning: 'Operator-facing name shown in org and platform consoles.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n appSlug: schemaShape.appSlug.stringSpec({\n meaning: 'Immutable routing key and DNS-safe identifier for the app install.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n lastVersion: schemaShape.lastVersion.stringSpec({ meaning: 'Most recent published semver for this application. Read-only on the API (excluded from create and update); it is written by platform provisioning, not by application traffic, and is absent until provisioning sets it.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Members read a lightweight about row; app admins read the full row; platform admins use `admin` variants.',\n outcome: 'Clients hydrate shell chrome and about surfaces.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The application was found and the projection the variant asks for is returned — the short “about” view or the full record.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No application exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'Paginated apps in org or platform directory views.',\n outcome: 'Rows for org multi-app and platform overviews.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of applications visible to the caller (org-scoped by default, all apps via the `admin` variant).' },\n ],\n idempotent: true,\n },\n [Op.SEARCH]: {\n purpose: 'Filter apps by display name, slug, or health metadata where indexed.',\n outcome: 'Matches for back-office and org admin tools.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of applications matching the display-name/slug query in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Provision a new app under an org or for a customer in platform mode.',\n outcome: 'New `APPLICATION` and downstream bootstrap hooks.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The application was provisioned under the org and is returned with its server-assigned id and slug.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The display name or slug payload fails schema validation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an org admin (for their own org) nor a platform super-admin (for any org); app provisioning is admin gated.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The requested `appSlug` is already taken — slugs are immutable routing keys and must be unique.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Provision a new application',\n request: {\n appDisplayName: 'Wonder Todos',\n appSlug: 'wonder-todos',\n },\n response: {\n appDisplayName: 'Wonder Todos',\n appSlug: 'wonder-todos',\n lastVersion: null,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Change display name or mutable metadata; slug remains immutable in normal flows.',\n outcome: 'Updated copy and routing for dependent services.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The mutable application fields were updated and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited fields fail schema validation (e.g. attempting to mutate the immutable slug).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin (or platform super-admin) for this application; edits are admin gated.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No application exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Remove an application record and cascade per registry (high risk).',\n outcome: 'Tombstone/soft delete varies by product policy.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The application (and its composed children) were removed per the registry cascade; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an org admin (or platform super-admin) for this application; this is a critical-risk admin-gated operation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'Both variants declare `requiresStepUpAuthentication`, and the request carried no valid single-use re-authentication token. Obtain one from the re-authentication route and retry with it — an application is a top-level scope, so its deletion destroys everything scoped beneath it and a live session alone is deliberately not sufficient.', customMessageReference: ErrorCustomMessageReference.STEP_UP_REQUIRED },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No application exists for the supplied id (or it was already deleted).' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'Product policy blocks the delete because the application has dependents that cannot be cascaded automatically (e.g. it is still active or has bound infrastructure).' },\n ],\n idempotent: true,\n },\n },\n businessConstraints: [\n '`APPLICATION` is the self-anchor for `APPLICATION` primary scope; align the declared `resourcePrimaryScope` with the registry for companion prompts.',\n 'Cross-organization application transfer is intentionally NOT a framework capability. A `TRANSFER` operation was declared here in two variants and removed on 2026-08-01: it was routed but wrote nothing, and the move it named is incoherent in this model. `APPLICATION` is the self-anchored top-level scope — the application IS the tenant container and organizations are a sibling scope inside its tenancy — so there is no owning-organization field to re-point and no `ORGANIZATIONS → APPLICATION` relationship in the registry. This mirrors the framework’s refusal of cross-organization MEMBER transfer as a tenant-boundary crossing it does not sanction.',\n 'Application status lifecycle is intentionally NOT a framework capability. `ACTIVATE` and `SUSPEND` were declared here as super-admin verbs (each with a generated bulk variant) and removed on 2026-08-01: they were routed but wrote nothing, because this resource carries no lifecycle state to write. `APPLICATION` is an identity row (`appSlug`, `appDisplayName`, `lastVersion`, `platformAppId`); an application’s real operational state lives one tier up, at `PLATFORM_APPLICATIONS` / `Wildo_Application_Config`, managed by the platform apps-manager. Halting an application is a platform-tier action, not a field flip on the application’s own registry entry — and by ground 3 above, the suspending super-admin’s session lives inside the container being suspended. Re-declaring these verbs requires the per-organization application-ownership model first, not an `ApplicationStatus` field bolted on to satisfy two buttons.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n ),\n () => ({\n views: {\n [Op.READ]: {\n variants: {\n default: {\n purpose: 'Read-only \"about this app\" shell entry for end users in merged main preset.',\n whenToUse: 'In-app about drawer when org members cannot manage versions directly.',\n },\n admin: {\n purpose: 'App-admin and platform read for full fields and child relationships.',\n whenToUse: 'Admin area host surfaces (`application` preset wires metadata/versions as tabs in admin).',\n },\n },\n },\n [Op.LIST]: { purpose: 'Directory listing in admin and platform UIs (admin variants only in merged map).', whenToUse: 'Multi-app org view and support consoles.' },\n [Op.SEARCH]: { purpose: 'Search in admin and platform UIs for application discovery.', whenToUse: 'When many apps exist in one org or in global catalog.' },\n [Op.CREATE]: { purpose: 'App creation in admin and platform (merged preset adds `admin` variant addressability).', whenToUse: 'Onboarding a new app id under customer contract.' },\n [Op.UPDATE]: { purpose: 'Administrator edits the mutable fields on the `APPLICATION` row.', whenToUse: 'Rebranding, slug freeze exceptions, and support edits.' },\n [Op.DELETE]: { purpose: 'Destructive removal when policy allows a hard delete in admin flows.', whenToUse: 'Pilots, migrations, and contract exits.' },\n },\n }),\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"application-access-grants.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/application-access-grants.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAUH,OAAO,EAEL,kCAAkC,EAClC,qBAAqB,IAAI,EAAE,EAC3B,yBAAyB,EAG1B,MAAM,uBAAuB,CAAC;AAqC/B;;;;;GAKG;AACH,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;iCAmWxD,CAAC"}
1
+ {"version":3,"file":"application-access-grants.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/application-access-grants.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAUH,OAAO,EAEL,kCAAkC,EAClC,qBAAqB,IAAI,EAAE,EAC3B,yBAAyB,EAG1B,MAAM,uBAAuB,CAAC;AAqC/B;;;;;GAKG;AACH,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;iCAqWxD,CAAC"}