@wildo-ai/saas-specifications 1.1.5 → 1.1.7

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 +2 -2
  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
@@ -104,6 +104,7 @@ function buildBase(rt, member) {
104
104
  ],
105
105
  errorScenarios: [
106
106
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to inspect SCIM provisioning settings.' },
107
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\'s expert reaches this operation only through a live grant of the `MANAGE_SSO_SCIM` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\'s next request.' },
107
108
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM provisioning config has been provisioned for this org/app scope yet.' },
108
109
  ],
109
110
  examples: [{
@@ -136,7 +137,7 @@ function buildBase(rt, member) {
136
137
  { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SCIM provisioning config record was provisioned for the scope with the supplied gating and mapping.' },
137
138
  ],
138
139
  errorScenarios: [
139
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The config payload fails schema validation, for example because a typed setting or role value is invalid. Attribute-mapping expressions are strings and must be behavior-tested separately.', errorCode: 'VALIDATION_FAILED' },
140
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The config payload fails schema validation, for example because a typed setting or role value is invalid. Attribute-mapping expressions are strings and must be behavior-tested separately.' },
140
141
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform/security admin; this is a HIGH-risk internal-only (INTERNAL_CALL) provisioning path.' },
141
142
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'A SCIM provisioning config already exists for this org/app scope — the resource is one-per-scope, so a second create collides.' },
142
143
  ],
@@ -169,8 +170,10 @@ function buildBase(rt, member) {
169
170
  { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM gating, mapping, and defaults were updated; subsequent sync runs follow the new mapping.' },
170
171
  ],
171
172
  errorScenarios: [
172
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The patched mapping or toggles fail schema validation.', errorCode: 'VALIDATION_FAILED' },
173
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The patched mapping or toggles fail schema validation.' },
173
174
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the HIGH-risk admin role required to change SCIM provisioning settings.' },
175
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\'s expert reaches this operation only through a live grant of the `MANAGE_SSO_SCIM` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\'s next request.' },
176
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The write would grant a role above the writer\'s own (`role_ceiling_exceeded`, #1631): the roles this setting gives to the accounts it creates may not exceed the roles of whoever configures it, counting only roles the write adds. This holds for an organization administrator (who cannot map a group to `ORG_OWNER`) as much as for a service firm\'s expert lent the capability.' },
174
177
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM provisioning config exists for this scope to update.' },
175
178
  ],
176
179
  idempotent: true,
@@ -194,11 +197,11 @@ function build(rt, member) {
194
197
  return resourceSpecificationFromFrontendConfiguration(mergeResourceFrontendConfigurations(resourceFrontendConfiguration(r(securityMainPresets, rt, 'securityMainPresets')), resourceFrontendConfiguration(r(securityAdminPresets, rt, 'securityAdminPresets'))), buildBase(rt, member), () => ({
195
198
  layout: {
196
199
  purpose: 'Sections `overview`, `mapping`, and `lifecycle` in `security` templates for the SCIM provisioning config editor and read views.',
197
- displayPurpose: 'Read vs edit: edit focuses on boolean gates and string maps; read surfaces the same in display layout components in the preset file.',
200
+ displayPurpose: 'Settings rows edited in place under the pane header, with no section headings and no descriptions: the four decisions in one card, then the attribute mapping, then the record timestamps. The list card shows the auto-create decision with its label.',
198
201
  sections: {
199
- overview: { purpose: 'High-level auto-create / deactivate / verify-email lifecycle toggles for the push. (Enablement itself lives on the org-type config, not here.)', whenToUse: 'Tuning what SCIM does to users once it is enabled for the org type.', textSlots: { title: { purpose: 'SCIM overview.' }, description: { purpose: 'Mention that whether SCIM is on is an org-type setting, and that tokens are managed in the sibling SCIM token resource — not in this form.' } } },
200
- mapping: { purpose: 'Attribute mapping and default role; ties IdP field paths to internal profile fields when defined.', whenToUse: 'IdP schema differences require mapping changes.', textSlots: { title: { purpose: 'Attribute mapping block.' }, description: { purpose: 'Explain that unmatched or malformed expressions can resolve to no value and therefore must be tested against the real IdP payload.' } } },
201
- lifecycle: { purpose: 'Create/update metadata timestamps for the config row; not user lifecycle, which is event-driven on SCIM traffic.', whenToUse: 'Support proving when the mapping last changed in incidents.', textSlots: { title: { purpose: 'Config lifecycle / timestamps.' }, description: { purpose: 'Distinguish from user lifecycle in domain language.' } } },
202
+ overview: { purpose: 'High-level auto-create / deactivate / verify-email lifecycle toggles for the push. (Enablement itself lives on the org-type config, not here.)', whenToUse: 'Tuning what SCIM does to users once it is enabled for the org type.', textSlots: { title: { purpose: 'SCIM overview (not rendered: the pane header names it).' } } },
203
+ mapping: { purpose: 'Attribute mapping and default role; ties IdP field paths to internal profile fields when defined.', whenToUse: 'IdP schema differences require mapping changes.', textSlots: { title: { purpose: 'Attribute mapping block (not rendered: it holds one field of the same name).' } } },
204
+ lifecycle: { purpose: 'Create/update metadata timestamps for the config row; not user lifecycle, which is event-driven on SCIM traffic.', whenToUse: 'Support proving when the mapping last changed in incidents.', textSlots: { title: { purpose: 'Config record timestamps — not user lifecycle (not rendered: the created/updated rows say what they are).' } } },
202
205
  },
203
206
  },
204
207
  views: {
@@ -1 +1 @@
1
- {"version":3,"file":"scim-provisioning-config.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/scim-provisioning-config.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,gCAAgC,EAChC,0CAA0C,GAC3C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAE/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAU3E,SAAS,CAAC,CAAC,MAAwC,EAAE,EAAS,EAAE,IAAY;IAC1E,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,CAAkB,CAAC;IACtC,IAAI,CAAC,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,YAAY,EAAE,QAAQ,IAAI,GAAG,CAAC,CAAC;IACvD,OAAO,CAAC,CAAC;AACX,CAAC;AACD,MAAM,KAAK,GAAwC;IACjD,CAAC,gBAAgB,CAAC,qCAAqC,CAAC,EAAE,oBAAoB,CAAC,aAAa;IAC5F,CAAC,gBAAgB,CAAC,oCAAoC,CAAC,EAAE,oBAAoB,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EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,oIAAoI,EAAE,EAAE,EAAE;gBACtZ,SAAS,EAAE,EAAE,OAAO,EAAE,kHAAkH,EAAE,SAAS,EAAE,6DAA6D,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,qDAAqD,EAAE,EAAE,EAAE;aAC3W;SACF;QACD,KAAK,EAAE;YACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,+IAA+I,EAAE,SAAS,EAAE,2DAA2D,EAAE;YAC/O,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,2JAA2J,EAAE,SAAS,EAAE,oHAAoH,EAAE;SACvT;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,uDAAuD,GAAG,KAAK,CAC1E,gBAAgB,CAAC,qCAAqC,EACtD,uCAAuC,CACxC,CAAC;AACF,MAAM,CAAC,MAAM,sDAAsD,GAAG,KAAK,CACzE,gBAAgB,CAAC,oCAAoC,EACrD,sCAAsC,CACvC,CAAC","sourcesContent":["import { securityAdminPresets, securityMainPresets } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n ScimProvisioningConfigBaseSchema,\n scimProvisioningConfigPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype RType = CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG | CoreResourceType.APPLICATION_SCIM_PROVISIONING_CONFIG;\ntype RMember = 'ORGANIZATION_SCIM_PROVISIONING_CONFIG' | 'APPLICATION_SCIM_PROVISIONING_CONFIG';\ntype Cfg = ReturnType<(typeof scimProvisioningConfigPolymorphicFactories)[CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG]>;\ntype Custom = undefined;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof ScimProvisioningConfigBaseSchema;\ntype F = ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nfunction r(source: Partial<Record<string, unknown>>, rt: RType, name: string): F {\n const u = source[rt] as F | undefined;\n if (!u) throw new Error(`Missing \"${rt}\" in ${name}.`);\n return u;\n}\nconst scope: Record<RType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SCIM_PROVISIONING_CONFIG]: ResourcePrimaryScope.APPLICATION,\n};\n\nconst SCIM_CONFIG_DOMAIN_EXAMPLE = 'identity.example.com';\n\n/**\n * Builds all public READ representations from one directory-provisioning policy\n * snapshot. The scope identifier and context relation differ between the two\n * polymorphic resources, while the SCIM endpoint and mapping semantics remain\n * framework-owned. No bearer token or other credential belongs in this config.\n */\nfunction createScimProvisioningConfigExamples(rt: RType) {\n const isOrganization = rt === CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG;\n const scopeId = isOrganization ? 'org_01JSCIMEXAMPLE' : 'app_01JSCIMEXAMPLE';\n const scopeIdentifier = isOrganization ? { organizationId: scopeId } : { applicationId: scopeId };\n const scopeContext = isOrganization ? { organization: { _id: scopeId } } : { application: { _id: scopeId } };\n const response = {\n _id: 'scimcfg_01JSCIMEXAMPLE',\n autoCreateUsers: true,\n autoVerifyEmail: true,\n autoDeactivateUsers: true,\n defaultRole: isOrganization ? 'organization-member' : 'application-user',\n attributeMapping: {\n email: 'emails[primary eq true].value',\n firstName: 'name.givenName',\n lastName: 'name.familyName',\n displayName: 'displayName',\n },\n organizationUnitMapping: [{\n directoryValue: 'Engineering',\n organizationUnitId: 'unit_01JSCIMENGINEERING',\n }],\n defaultUnitRole: 'member',\n scimEndpointUrl: '/api/v1/scim/v2',\n allowedDomains: [SCIM_CONFIG_DOMAIN_EXAMPLE],\n createdAt: '2026-08-20T08:00:00.000Z',\n updatedAt: '2026-08-20T08:15:00.000Z',\n ...scopeIdentifier,\n };\n\n return {\n response,\n contextResponse: { ...response, ...scopeContext },\n summaryResponse: {\n _id: response._id,\n autoCreateUsers: response.autoCreateUsers,\n },\n };\n}\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const examples = createScimProvisioningConfigExamples(rt);\n\n return resourceSpecification<Custom, Core, Main>(\n scimProvisioningConfigPolymorphicFactories[rt],\n ScimProvisioningConfigBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SCIM provisioning behavior for directory-managed users: default roles, attribute mappings, and automatic create and deactivate handling. This resource governs what happens after an authenticated SCIM request; organization-scoped SCIM bearer credentials authenticate the identity provider, while SSO sign-in and just-in-time provisioning are a separate channel.',\n businessRole: 'Controls how identity-provider directory data becomes application users and memberships, including the authorization defaults applied during provisioning.',\n lifecycleRole: 'Configure it while connecting the identity provider, then review it whenever directory attributes, role policy, or user-lifecycle policy changes.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ScimProvisioningConfigBaseSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactoryCollectionEntry: { collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'scimProvisioningConfigPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY }, identifierField: 'collectionKey', identifierValue: rt },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: member },\n operationVocabulary: {\n coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n },\n frontendConfigurationSourceEntries: [\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n ],\n },\n fields: {\n autoCreateUsers: schemaShape.autoCreateUsers.booleanSpec({ meaning: 'Whether SCIM `POST /Users` can create new users during directory synchronization. When false, creation requests for users who do not already exist are rejected.', importance: FieldSemanticImportance.PRIMARY }),\n autoVerifyEmail: schemaShape.autoVerifyEmail.booleanSpec({ meaning: 'Whether a trusted SCIM assertion marks a newly provisioned email as verified. When false, the new user remains in the application email-verification journey instead of becoming verified from the directory assertion.' }),\n autoDeactivateUsers: schemaShape.autoDeactivateUsers.booleanSpec({ meaning: 'Whether SCIM `DELETE /Users/{id}` and updates with `active: false` withdraw the addressed organization membership and dependent grants. Global account status and other organization memberships remain unchanged. When false, directory removals do not withdraw this membership.' }),\n defaultRole: schemaShape.defaultRole.stringSpec({ meaning: 'Fallback role for newly provisioned members when the IdP payload does not supply a stronger mapping.' }),\n attributeMapping: schemaShape.attributeMapping.objectSpec({ meaning: 'Path expressions that map the incoming SCIM document to email, name, and profile fields. Supports dotted paths, array indexes such as `emails[0].value`, and SCIM filters such as `emails[primary eq true].value`. A malformed or unmatched expression produces no value instead of a validation error, so test every custom mapping with a representative identity-provider payload.' }),\n organizationUnitMapping: schemaShape.organizationUnitMapping.arraySpec({\n meaning: 'Explicit mappings from the directory’s SCIM Enterprise User `department` value to organization-unit identifiers. Unmapped values are ignored and never create units. When this list is non-empty and `defaultUnitRole` is set, SCIM becomes authoritative for unit assignments: the mapped set replaces the member’s existing assignments, including assignments made manually. Every write route reconciles — creation, full replacement, PATCH and their Bulk equivalents alike. Units created by the directory’s own GROUPS are the one exception: this path never adds or removes assignments on those, because the group that created them is authoritative for their membership.',\n elementMeaning: 'One case-sensitive mapping from the trimmed directory department value to an existing organization-unit identifier.',\n }),\n defaultUnitRole: schemaShape.defaultUnitRole.stringSpec({ meaning: 'Role granted on every organization-unit assignment created through SCIM. It is separate from `defaultRole`, which controls organization-wide membership. Changing this setting changes the access granted to subsequently reconciled directory-managed users. It is also the organization’s opt-in to SCIM group provisioning: with no value here, every `/scim/v2/Groups` request — reads included — is refused with 403 naming this field, because an assignment cannot exist without a role. Unlike the `department` binding, group provisioning needs nothing else declared, so setting this alone lets the directory create organization units and grant this role in them.' }),\n scimEndpointUrl: schemaShape.scimEndpointUrl.stringSpec({ meaning: 'Read-only API-relative base path for the SCIM service, for example `/api/v1/scim/v2`. Combine it with the deployment’s API base URL when configuring the identity provider. Tenant selection comes from the SCIM bearer credential, not from the URL path.' }),\n allowedDomains: schemaShape.allowedDomains.arraySpec({\n meaning: 'Read-only email domains accepted by SCIM provisioning. The list reflects the scope’s currently verified SSO domains. An empty list means no verified-domain restriction is configured; an absent value means domain policy could not be determined.',\n elementMeaning: 'One DNS-verified email domain accepted by SCIM provisioning.',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the current SCIM provisioning behavior for this scope.',\n outcome: 'Administrators can review user-creation, deactivation, attribute-mapping, domain, and role policy before connecting or changing an identity provider.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM provisioning config for this scope was found and its gating/mapping is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to inspect SCIM provisioning settings.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM provisioning config has been provisioned for this org/app scope yet.' },\n ],\n examples: [{\n title: 'Read the complete SCIM provisioning policy',\n response: examples.response,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Read the SCIM policy with its owning scope context',\n response: examples.contextResponse,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Read the SCIM account-creation summary',\n response: examples.summaryResponse,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Provision the initial SCIM config document for a scope (INTERNAL_CALL create — no public HTTP route; seed / system-context lazy-create only; HIGH risk).',\n outcome: 'A new settings row; combined with `ScimTokens` for a working endpoint when enabled.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SCIM provisioning config record was provisioned for the scope with the supplied gating and mapping.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The config payload fails schema validation, for example because a typed setting or role value is invalid. Attribute-mapping expressions are strings and must be behavior-tested separately.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform/security admin; this is a HIGH-risk internal-only (INTERNAL_CALL) provisioning path.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A SCIM provisioning config already exists for this org/app scope — the resource is one-per-scope, so a second create collides.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Provision SCIM provisioning config for a scope',\n request: {\n autoCreateUsers: true,\n autoDeactivateUsers: true,\n defaultRole: 'member',\n attributeMapping: {\n email: 'emails[primary eq true].value',\n displayName: 'displayName',\n },\n },\n response: {\n _id: 'scimcfg_01HX2…',\n autoCreateUsers: true,\n defaultRole: 'member',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Change mapping, toggles, and defaults as the IdP app evolves (API_CALL update — the administrator’s edit door, gated on the same org-admin / app-super-admin roles as the read; HIGH risk). `AuthOrganizationConfigurationService.saveScimProvisioningConfig` resolves this SAME default through `getServiceOperationPathDefault` on the admin’s execution context, preserving admin audit attribution. It was INTERNAL_CALL and route-less, so the four decisions on this row — create users, verify their email, deactivate on deprovision, and the role they land with — were readable and unsettable.',\n outcome: 'Subsequent sync runs follow the new mapping; expect eventual consistency, not instant retroactive rewrite of all users in general.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM gating, mapping, and defaults were updated; subsequent sync runs follow the new mapping.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The patched mapping or toggles fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the HIGH-risk admin role required to change SCIM provisioning settings.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM provisioning config exists for this scope to update.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the SCIM provisioning config row when its owning org/app is deleted (composition `onParentDelete` cascade).',\n outcome: 'The one-per-scope config row is removed together with its parent — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM provisioning config record was deleted as part of the deletion cascade of its owning scope.' },\n ],\n // REPOSITORY_ONLY variant (org/app 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 businessConstraints: [\n 'Organization-scoped SCIM bearer credentials authenticate the identity provider. This resource governs what accepted SCIM events do to users and memberships.',\n ],\n }),\n { resourcePrimaryScope: scope[rt] },\n );\n}\n\nfunction build(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(r(securityMainPresets as Partial<Record<string, unknown>>, rt, 'securityMainPresets')),\n resourceFrontendConfiguration(r(securityAdminPresets as Partial<Record<string, unknown>>, rt, 'securityAdminPresets')),\n ),\n buildBase(rt, member),\n () => ({\n layout: {\n purpose: 'Sections `overview`, `mapping`, and `lifecycle` in `security` templates for the SCIM provisioning config editor and read views.',\n displayPurpose: 'Read vs edit: edit focuses on boolean gates and string maps; read surfaces the same in display layout components in the preset file.',\n sections: {\n overview: { purpose: 'High-level auto-create / deactivate / verify-email lifecycle toggles for the push. (Enablement itself lives on the org-type config, not here.)', whenToUse: 'Tuning what SCIM does to users once it is enabled for the org type.', textSlots: { title: { purpose: 'SCIM overview.' }, description: { purpose: 'Mention that whether SCIM is on is an org-type setting, and that tokens are managed in the sibling SCIM token resource — not in this form.' } } },\n mapping: { purpose: 'Attribute mapping and default role; ties IdP field paths to internal profile fields when defined.', whenToUse: 'IdP schema differences require mapping changes.', textSlots: { title: { purpose: 'Attribute mapping block.' }, description: { purpose: 'Explain that unmatched or malformed expressions can resolve to no value and therefore must be tested against the real IdP payload.' } } },\n lifecycle: { purpose: 'Create/update metadata timestamps for the config row; not user lifecycle, which is event-driven on SCIM traffic.', whenToUse: 'Support proving when the mapping last changed in incidents.', textSlots: { title: { purpose: 'Config lifecycle / timestamps.' }, description: { purpose: 'Distinguish from user lifecycle in domain language.' } } },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Addressable read for the security SCIM page in org (app scope may use empty `views` in main `variantOverrides`—factory op exists regardless).', whenToUse: 'Admins review SCIM gating and mapping in merged consoles.' },\n [Op.UPDATE]: { purpose: 'The administrator’s edit of the provisioning policy, declared `notAddressable` so it opens from the READ view rather than adding a rail entry of its own.', whenToUse: 'Changing auto-create / auto-verify / auto-deactivate or the default role from the User provisioning settings pane.' },\n },\n }),\n );\n}\n\nexport const organizationScimProvisioningConfigResourceSpecification = build(\n CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG,\n 'ORGANIZATION_SCIM_PROVISIONING_CONFIG',\n);\nexport const applicationScimProvisioningConfigResourceSpecification = build(\n CoreResourceType.APPLICATION_SCIM_PROVISIONING_CONFIG,\n 'APPLICATION_SCIM_PROVISIONING_CONFIG',\n);\n"]}
1
+ {"version":3,"file":"scim-provisioning-config.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/scim-provisioning-config.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,gCAAgC,EAChC,0CAA0C,GAC3C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAE/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAU3E,SAAS,CAAC,CAAC,MAAwC,EAAE,EAAS,EAAE,IAAY;IAC1E,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,CAAkB,CAAC;IACtC,IAAI,CAAC,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,YAAY,EAAE,QAAQ,IAAI,GAAG,CAAC,CAAC;IACvD,OAAO,CAAC,CAAC;AACX,CAAC;AACD,MAAM,KAAK,GAAwC;IACjD,CAAC,gBAAgB,CAAC,qCAAqC,CAAC,EAAE,oBAAoB,CAAC,aAAa;IAC5F,CAAC,gBAAgB,CAAC,oCAAoC,CAAC,EAAE,oBAAoB,CAAC,WAAW;CAC1F,CAAC;AAEF,MAAM,0BAA0B,GAAG,sBAAsB,CAAC;AAE1D;;;;;GA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S,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,8EAA8E,EAAE,EAAE,EAAE;gBAC1S,SAAS,EAAE,EAAE,OAAO,EAAE,kHAAkH,EAAE,SAAS,EAAE,6DAA6D,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,2GAA2G,EAAE,EAAE,EAAE;aACrW;SACF;QACD,KAAK,EAAE;YACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,+IAA+I,EAAE,SAAS,EAAE,2DAA2D,EAAE;YAC/O,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,2JAA2J,EAAE,SAAS,EAAE,oHAAoH,EAAE;SACvT;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,uDAAuD,GAAG,KAAK,CAC1E,gBAAgB,CAAC,qCAAqC,EACtD,uCAAuC,CACxC,CAAC;AACF,MAAM,CAAC,MAAM,sDAAsD,GAAG,KAAK,CACzE,gBAAgB,CAAC,oCAAoC,EACrD,sCAAsC,CACvC,CAAC","sourcesContent":["import { securityAdminPresets, securityMainPresets } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n ScimProvisioningConfigBaseSchema,\n scimProvisioningConfigPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype RType = CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG | CoreResourceType.APPLICATION_SCIM_PROVISIONING_CONFIG;\ntype RMember = 'ORGANIZATION_SCIM_PROVISIONING_CONFIG' | 'APPLICATION_SCIM_PROVISIONING_CONFIG';\ntype Cfg = ReturnType<(typeof scimProvisioningConfigPolymorphicFactories)[CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG]>;\ntype Custom = undefined;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof ScimProvisioningConfigBaseSchema;\ntype F = ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nfunction r(source: Partial<Record<string, unknown>>, rt: RType, name: string): F {\n const u = source[rt] as F | undefined;\n if (!u) throw new Error(`Missing \"${rt}\" in ${name}.`);\n return u;\n}\nconst scope: Record<RType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SCIM_PROVISIONING_CONFIG]: ResourcePrimaryScope.APPLICATION,\n};\n\nconst SCIM_CONFIG_DOMAIN_EXAMPLE = 'identity.example.com';\n\n/**\n * Builds all public READ representations from one directory-provisioning policy\n * snapshot. The scope identifier and context relation differ between the two\n * polymorphic resources, while the SCIM endpoint and mapping semantics remain\n * framework-owned. No bearer token or other credential belongs in this config.\n */\nfunction createScimProvisioningConfigExamples(rt: RType) {\n const isOrganization = rt === CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG;\n const scopeId = isOrganization ? 'org_01JSCIMEXAMPLE' : 'app_01JSCIMEXAMPLE';\n const scopeIdentifier = isOrganization ? { organizationId: scopeId } : { applicationId: scopeId };\n const scopeContext = isOrganization ? { organization: { _id: scopeId } } : { application: { _id: scopeId } };\n const response = {\n _id: 'scimcfg_01JSCIMEXAMPLE',\n autoCreateUsers: true,\n autoVerifyEmail: true,\n autoDeactivateUsers: true,\n defaultRole: isOrganization ? 'organization-member' : 'application-user',\n attributeMapping: {\n email: 'emails[primary eq true].value',\n firstName: 'name.givenName',\n lastName: 'name.familyName',\n displayName: 'displayName',\n },\n organizationUnitMapping: [{\n directoryValue: 'Engineering',\n organizationUnitId: 'unit_01JSCIMENGINEERING',\n }],\n defaultUnitRole: 'member',\n scimEndpointUrl: '/api/v1/scim/v2',\n allowedDomains: [SCIM_CONFIG_DOMAIN_EXAMPLE],\n createdAt: '2026-08-20T08:00:00.000Z',\n updatedAt: '2026-08-20T08:15:00.000Z',\n ...scopeIdentifier,\n };\n\n return {\n response,\n contextResponse: { ...response, ...scopeContext },\n summaryResponse: {\n _id: response._id,\n autoCreateUsers: response.autoCreateUsers,\n },\n };\n}\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const examples = createScimProvisioningConfigExamples(rt);\n\n return resourceSpecification<Custom, Core, Main>(\n scimProvisioningConfigPolymorphicFactories[rt],\n ScimProvisioningConfigBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SCIM provisioning behavior for directory-managed users: default roles, attribute mappings, and automatic create and deactivate handling. This resource governs what happens after an authenticated SCIM request; organization-scoped SCIM bearer credentials authenticate the identity provider, while SSO sign-in and just-in-time provisioning are a separate channel.',\n businessRole: 'Controls how identity-provider directory data becomes application users and memberships, including the authorization defaults applied during provisioning.',\n lifecycleRole: 'Configure it while connecting the identity provider, then review it whenever directory attributes, role policy, or user-lifecycle policy changes.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ScimProvisioningConfigBaseSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactoryCollectionEntry: { collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'scimProvisioningConfigPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY }, identifierField: 'collectionKey', identifierValue: rt },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: member },\n operationVocabulary: {\n coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n },\n frontendConfigurationSourceEntries: [\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n ],\n },\n fields: {\n autoCreateUsers: schemaShape.autoCreateUsers.booleanSpec({ meaning: 'Whether SCIM `POST /Users` can create new users during directory synchronization. When false, creation requests for users who do not already exist are rejected.', importance: FieldSemanticImportance.PRIMARY }),\n autoVerifyEmail: schemaShape.autoVerifyEmail.booleanSpec({ meaning: 'Whether a trusted SCIM assertion marks a newly provisioned email as verified. When false, the new user remains in the application email-verification journey instead of becoming verified from the directory assertion.' }),\n autoDeactivateUsers: schemaShape.autoDeactivateUsers.booleanSpec({ meaning: 'Whether SCIM `DELETE /Users/{id}` and updates with `active: false` withdraw the addressed organization membership and dependent grants. Global account status and other organization memberships remain unchanged. When false, directory removals do not withdraw this membership.' }),\n defaultRole: schemaShape.defaultRole.stringSpec({ meaning: 'Fallback role for newly provisioned members when the IdP payload does not supply a stronger mapping.' }),\n attributeMapping: schemaShape.attributeMapping.objectSpec({ meaning: 'Path expressions that map the incoming SCIM document to email, name, and profile fields. Supports dotted paths, array indexes such as `emails[0].value`, and SCIM filters such as `emails[primary eq true].value`. A malformed or unmatched expression produces no value instead of a validation error, so test every custom mapping with a representative identity-provider payload.' }),\n organizationUnitMapping: schemaShape.organizationUnitMapping.arraySpec({\n meaning: 'Explicit mappings from the directory’s SCIM Enterprise User `department` value to organization-unit identifiers. Unmapped values are ignored and never create units. When this list is non-empty and `defaultUnitRole` is set, SCIM becomes authoritative for unit assignments: the mapped set replaces the member’s existing assignments, including assignments made manually. Every write route reconciles — creation, full replacement, PATCH and their Bulk equivalents alike. Units created by the directory’s own GROUPS are the one exception: this path never adds or removes assignments on those, because the group that created them is authoritative for their membership.',\n elementMeaning: 'One case-sensitive mapping from the trimmed directory department value to an existing organization-unit identifier.',\n }),\n defaultUnitRole: schemaShape.defaultUnitRole.stringSpec({ meaning: 'Role granted on every organization-unit assignment created through SCIM. It is separate from `defaultRole`, which controls organization-wide membership. Changing this setting changes the access granted to subsequently reconciled directory-managed users. It is also the organization’s opt-in to SCIM group provisioning: with no value here, every `/scim/v2/Groups` request — reads included — is refused with 403 naming this field, because an assignment cannot exist without a role. Unlike the `department` binding, group provisioning needs nothing else declared, so setting this alone lets the directory create organization units and grant this role in them.' }),\n scimEndpointUrl: schemaShape.scimEndpointUrl.stringSpec({ meaning: 'Read-only API-relative base path for the SCIM service, for example `/api/v1/scim/v2`. Combine it with the deployment’s API base URL when configuring the identity provider. Tenant selection comes from the SCIM bearer credential, not from the URL path.' }),\n allowedDomains: schemaShape.allowedDomains.arraySpec({\n meaning: 'Read-only email domains accepted by SCIM provisioning. The list reflects the scope’s currently verified SSO domains. An empty list means no verified-domain restriction is configured; an absent value means domain policy could not be determined.',\n elementMeaning: 'One DNS-verified email domain accepted by SCIM provisioning.',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the current SCIM provisioning behavior for this scope.',\n outcome: 'Administrators can review user-creation, deactivation, attribute-mapping, domain, and role policy before connecting or changing an identity provider.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM provisioning config for this scope was found and its gating/mapping is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to inspect SCIM provisioning settings.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `MANAGE_SSO_SCIM` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM provisioning config has been provisioned for this org/app scope yet.' },\n ],\n examples: [{\n title: 'Read the complete SCIM provisioning policy',\n response: examples.response,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Read the SCIM policy with its owning scope context',\n response: examples.contextResponse,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Read the SCIM account-creation summary',\n response: examples.summaryResponse,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Provision the initial SCIM config document for a scope (INTERNAL_CALL create — no public HTTP route; seed / system-context lazy-create only; HIGH risk).',\n outcome: 'A new settings row; combined with `ScimTokens` for a working endpoint when enabled.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SCIM provisioning config record was provisioned for the scope with the supplied gating and mapping.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The config payload fails schema validation, for example because a typed setting or role value is invalid. Attribute-mapping expressions are strings and must be behavior-tested separately.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform/security admin; this is a HIGH-risk internal-only (INTERNAL_CALL) provisioning path.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A SCIM provisioning config already exists for this org/app scope — the resource is one-per-scope, so a second create collides.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Provision SCIM provisioning config for a scope',\n request: {\n autoCreateUsers: true,\n autoDeactivateUsers: true,\n defaultRole: 'member',\n attributeMapping: {\n email: 'emails[primary eq true].value',\n displayName: 'displayName',\n },\n },\n response: {\n _id: 'scimcfg_01HX2…',\n autoCreateUsers: true,\n defaultRole: 'member',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Change mapping, toggles, and defaults as the IdP app evolves (API_CALL update — the administrator’s edit door, gated on the same org-admin / app-super-admin roles as the read; HIGH risk). `AuthOrganizationConfigurationService.saveScimProvisioningConfig` resolves this SAME default through `getServiceOperationPathDefault` on the admin’s execution context, preserving admin audit attribution. It was INTERNAL_CALL and route-less, so the four decisions on this row — create users, verify their email, deactivate on deprovision, and the role they land with — were readable and unsettable.',\n outcome: 'Subsequent sync runs follow the new mapping; expect eventual consistency, not instant retroactive rewrite of all users in general.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM gating, mapping, and defaults were updated; subsequent sync runs follow the new mapping.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The patched mapping or toggles fail schema validation.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the HIGH-risk admin role required to change SCIM provisioning settings.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `MANAGE_SSO_SCIM` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The write would grant a role above the writer\\'s own (`role_ceiling_exceeded`, #1631): the roles this setting gives to the accounts it creates may not exceed the roles of whoever configures it, counting only roles the write adds. This holds for an organization administrator (who cannot map a group to `ORG_OWNER`) as much as for a service firm\\'s expert lent the capability.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM provisioning config exists for this scope to update.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the SCIM provisioning config row when its owning org/app is deleted (composition `onParentDelete` cascade).',\n outcome: 'The one-per-scope config row is removed together with its parent — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM provisioning config record was deleted as part of the deletion cascade of its owning scope.' },\n ],\n // REPOSITORY_ONLY variant (org/app 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 businessConstraints: [\n 'Organization-scoped SCIM bearer credentials authenticate the identity provider. This resource governs what accepted SCIM events do to users and memberships.',\n ],\n }),\n { resourcePrimaryScope: scope[rt] },\n );\n}\n\nfunction build(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(r(securityMainPresets as Partial<Record<string, unknown>>, rt, 'securityMainPresets')),\n resourceFrontendConfiguration(r(securityAdminPresets as Partial<Record<string, unknown>>, rt, 'securityAdminPresets')),\n ),\n buildBase(rt, member),\n () => ({\n layout: {\n purpose: 'Sections `overview`, `mapping`, and `lifecycle` in `security` templates for the SCIM provisioning config editor and read views.',\n displayPurpose: 'Settings rows edited in place under the pane header, with no section headings and no descriptions: the four decisions in one card, then the attribute mapping, then the record timestamps. The list card shows the auto-create decision with its label.',\n sections: {\n overview: { purpose: 'High-level auto-create / deactivate / verify-email lifecycle toggles for the push. (Enablement itself lives on the org-type config, not here.)', whenToUse: 'Tuning what SCIM does to users once it is enabled for the org type.', textSlots: { title: { purpose: 'SCIM overview (not rendered: the pane header names it).' } } },\n mapping: { purpose: 'Attribute mapping and default role; ties IdP field paths to internal profile fields when defined.', whenToUse: 'IdP schema differences require mapping changes.', textSlots: { title: { purpose: 'Attribute mapping block (not rendered: it holds one field of the same name).' } } },\n lifecycle: { purpose: 'Create/update metadata timestamps for the config row; not user lifecycle, which is event-driven on SCIM traffic.', whenToUse: 'Support proving when the mapping last changed in incidents.', textSlots: { title: { purpose: 'Config record timestamps — not user lifecycle (not rendered: the created/updated rows say what they are).' } } },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Addressable read for the security SCIM page in org (app scope may use empty `views` in main `variantOverrides`—factory op exists regardless).', whenToUse: 'Admins review SCIM gating and mapping in merged consoles.' },\n [Op.UPDATE]: { purpose: 'The administrator’s edit of the provisioning policy, declared `notAddressable` so it opens from the READ view rather than adding a rail entry of its own.', whenToUse: 'Changing auto-create / auto-verify / auto-deactivate or the default role from the User provisioning settings pane.' },\n },\n }),\n );\n}\n\nexport const organizationScimProvisioningConfigResourceSpecification = build(\n CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG,\n 'ORGANIZATION_SCIM_PROVISIONING_CONFIG',\n);\nexport const applicationScimProvisioningConfigResourceSpecification = build(\n CoreResourceType.APPLICATION_SCIM_PROVISIONING_CONFIG,\n 'APPLICATION_SCIM_PROVISIONING_CONFIG',\n);\n"]}
@@ -7,6 +7,7 @@ export declare const organizationScimTokensResourceSpecification: ResourceSpecif
7
7
  createdByUserId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodString>>;
8
8
  lastUsedAt: import("zod").ZodOptional<import("zod").ZodDate>;
9
9
  expiresAt: import("zod").ZodOptional<import("zod").ZodDate>;
10
+ lentUnderCapabilityGrantId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodString>>>>>;
10
11
  isActive: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodBoolean>>>;
11
12
  createdAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>;
12
13
  updatedAt: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodDate>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"scim-tokens.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/scim-tokens.resource.specification.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAG3B,qBAAqB,EAGtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AA8SrC,eAAO,MAAM,2CAA2C;;;;;;;;;;iCAA+E,CAAC"}
1
+ {"version":3,"file":"scim-tokens.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/scim-tokens.resource.specification.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAG3B,qBAAqB,EAGtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AAkTrC,eAAO,MAAM,2CAA2C;;;;;;;;;;;iCAA+E,CAAC"}
@@ -94,6 +94,7 @@ function buildBase(rt, member) {
94
94
  ],
95
95
  errorScenarios: [
96
96
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to view the SCIM token inventory for this scope.' },
97
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\'s expert reaches this operation only through a live grant of the `MANAGE_SSO_SCIM` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\'s next request.' },
97
98
  ],
98
99
  idempotent: true,
99
100
  examples: [
@@ -134,7 +135,7 @@ function buildBase(rt, member) {
134
135
  { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SCIM token record was created; the bare create returns the record id, not plaintext bearer material (see GENERATE_TOKEN for the secret handshake).' },
135
136
  ],
136
137
  errorScenarios: [
137
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The token payload fails schema validation (e.g. missing `displayName` or a malformed `expiresAt`).', errorCode: 'VALIDATION_FAILED' },
138
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The token payload fails schema validation (e.g. missing `displayName` or a malformed `expiresAt`).' },
138
139
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform/security admin; this is a HIGH-risk REPOSITORY_ONLY create.' },
139
140
  ],
140
141
  idempotent: false,
@@ -172,8 +173,9 @@ function buildBase(rt, member) {
172
173
  { code: HttpResponseStatusCode.CREATED_201, meaning: 'The credential was created; the response includes its metadata and the one-time plaintext `token`, which cannot be retrieved again.' },
173
174
  ],
174
175
  errorScenarios: [
175
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The generate payload fails schema validation (e.g. missing `displayName` or an invalid `expiresAt`).', errorCode: 'VALIDATION_FAILED' },
176
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The generate payload fails schema validation (e.g. missing `displayName` or an invalid `expiresAt`).' },
176
177
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to mint SCIM bearer credentials.' },
178
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\'s expert reaches this operation only through a live grant of the `MANAGE_SSO_SCIM` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\'s next request.' },
177
179
  ],
178
180
  idempotent: false,
179
181
  rateLimitNote: 'Bearer-token issuance is a credential-minting path and may be rate-limited per scope to slow credential sprawl.',
@@ -207,8 +209,9 @@ function buildBase(rt, member) {
207
209
  { code: HttpResponseStatusCode.OK_200, meaning: 'The token is invalidated; subsequent SCIM calls presenting it fail authentication, while the record is retained for audit.' },
208
210
  ],
209
211
  errorScenarios: [
210
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The request body contains any property; revocation accepts only an empty JSON object.', errorCode: 'VALIDATION_FAILED' },
212
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The request body contains any property; revocation accepts only an empty JSON object.' },
211
213
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to revoke SCIM credentials.' },
214
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\'s expert reaches this operation only through a live grant of the `MANAGE_SSO_SCIM` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\'s next request.' },
212
215
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },
213
216
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'The token is already revoked or inactive, so there is nothing to invalidate.' },
214
217
  ],
@@ -234,8 +237,9 @@ function buildBase(rt, member) {
234
237
  { code: HttpResponseStatusCode.OK_200, meaning: 'A new bearer secret is issued and returned once; it authenticates immediately and the prior material is invalidated at once.' },
235
238
  ],
236
239
  errorScenarios: [
237
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The request body contains any property; immediate-cutover rotation accepts only an empty JSON object.', errorCode: 'VALIDATION_FAILED' },
240
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The request body contains any property; immediate-cutover rotation accepts only an empty JSON object.' },
238
241
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to rotate SCIM credentials.' },
242
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\'s expert reaches this operation only through a live grant of the `MANAGE_SSO_SCIM` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\'s next request.' },
239
243
  { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },
240
244
  { code: HttpResponseStatusCode.CONFLICT_409, when: 'The token is revoked/expired and cannot be rotated, so issuing a new period is an illegal transition.' },
241
245
  ],
@@ -266,10 +270,10 @@ function build(rt, member) {
266
270
  label: { purpose: 'Preset `getFrontendResourceLabel` returns `displayName` — the primary list/title for a SCIM token card.' },
267
271
  layout: {
268
272
  purpose: 'Sections `overview` (name, active, creator) and `lifecycle` (last use, expiry, timestamps) in the SCIM token templates.',
269
- displayPurpose: 'Display layout mirrors list semantics: compact name + status in summary, full lifecycle in the detail read template.',
273
+ displayPurpose: 'The header names the token; settings rows below with no section descriptions and never-used / no-expiry rows hidden. A list row is the name and "Active" / "Inactive" as a word.',
270
274
  sections: {
271
- overview: { purpose: 'Identity and active flag for a SCIM token without exposing the secret or hash.', whenToUse: 'Any card or panel listing tokens.', textSlots: { title: { purpose: 'Token name.' }, description: { purpose: 'Tie the label to a single IdP or environment, not a user.' } } },
272
- lifecycle: { purpose: 'Last used, created, expiry, and support-oriented timestamps to drive rotation and cleanup.', whenToUse: 'Security review of stale tokens and expiring windows.', textSlots: { title: { purpose: 'Lifecycle and usage.' }, description: { purpose: 'Mention that “never used” may mean network path blocked, not a bug by itself.' } } },
275
+ overview: { purpose: 'Whether the token is active and who created it, without exposing the secret or hash; the name is the header.', whenToUse: 'Any card or panel listing tokens.', textSlots: { title: { purpose: 'Label the token\'s state and creator (not rendered: the header names the token).' } } },
276
+ lifecycle: { purpose: 'Last used, created, expiry, and support-oriented timestamps to drive rotation and cleanup.', whenToUse: 'Security review of stale tokens and expiring windows.', textSlots: { title: { purpose: 'Lifecycle and usage.' } } },
273
277
  },
274
278
  },
275
279
  views: {
@@ -1 +1 @@
1
- {"version":3,"file":"scim-tokens.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/scim-tokens.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,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E,OAAO,EAAE,8GAA8G,EAAE,SAAS,EAAE,sEAAsE,EAAE;YACpP,CAAC,qBAAqB,CAAC,YAAY,CAAC,EAAE,EAAE,OAAO,EAAE,+LAA+L,EAAE,SAAS,EAAE,8DAA8D,EAAE;SAC9T;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,2CAA2C,GAAG,KAAK,CAAC,gBAAgB,CAAC,wBAAwB,EAAE,0BAA0B,CAAC,CAAC","sourcesContent":["import { securityAdminPresets, securityMainPresets } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n ScimTokens_Operations,\n ScimTokenBaseSchema,\n scimTokensPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype RType = CoreResourceType.ORGANIZATION_SCIM_TOKENS;\ntype RMember = 'ORGANIZATION_SCIM_TOKENS';\ntype Cfg = ReturnType<(typeof scimTokensPolymorphicFactories)[CoreResourceType.ORGANIZATION_SCIM_TOKENS]>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof ScimTokenBaseSchema;\ntype F = ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nfunction r(source: Partial<Record<string, unknown>>, rt: RType, name: string): F {\n const u = source[rt] as F | undefined;\n if (!u) throw new Error(`Missing \"${rt}\" in ${name}.`);\n return u;\n}\nconst scope: Record<RType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SCIM_TOKENS]: ResourcePrimaryScope.ORGANIZATIONS,\n};\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const scopeId = 'organization_01HX2EXAMPLE';\n const tokenId = 'scim_token_org_01HX2EXAMPLE';\n const scopeOwnership = { organizationId: scopeId } as const;\n const scopeRelationship = { organization: { _id: scopeId } } as const;\n const pagination = { page: 1, limit: 20, total: 1, totalPages: 1 } as const;\n const tokenRecordExample = {\n _id: tokenId,\n displayName: 'Production identity provider',\n createdByUserId: 'user_security_admin_01HX2EXAMPLE',\n lastUsedAt: '2026-08-17T15:30:00.000Z',\n expiresAt: '2099-01-01T00:00:00.000Z',\n isActive: true,\n createdAt: '2026-08-01T10:00:00.000Z',\n updatedAt: '2026-08-17T15:30:00.000Z',\n ...scopeOwnership,\n } as const;\n const tokenSummaryExample = {\n _id: tokenRecordExample._id,\n displayName: tokenRecordExample.displayName,\n isActive: tokenRecordExample.isActive,\n } as const;\n const tokenPageExample = { data: [tokenRecordExample], pagination } as const;\n const tokenContextPageExample = {\n data: [{ data: [tokenRecordExample], pagination, ...scopeRelationship }],\n pagination,\n } as const;\n const tokenSummaryPageExample = { data: [tokenSummaryExample], pagination } as const;\n\n return resourceSpecification<Custom, Core, Main>(\n scimTokensPolymorphicFactories[rt],\n ScimTokenBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SCIM bearer credentials used by the organization’s identity provider to provision and deactivate users through the SCIM API.',\n businessRole: 'Long-lived or expiring credentials dedicated to directory synchronization, with issuance, inventory, revocation, and immediate-cutover rotation distinct from general platform API keys.',\n lifecycleRole: 'Generate a credential, monitor its use and expiry, then revoke or rotate it. Rotation cuts over immediately, so update the identity provider with the returned token before making another SCIM request.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ScimTokenBaseSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactoryCollectionEntry: { collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'scimTokensPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY }, identifierField: 'collectionKey', identifierValue: rt },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: member },\n operationVocabulary: {\n coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n customEnum: { packageName: '@wildo-ai/saas-models', exportName: 'ScimTokens_Operations', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n },\n frontendConfigurationSourceEntries: [\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n ],\n notes: [\n '`tokenHash` is backend-only: UI shows labels and last-use — never a recoverable token from READ in secure deployments.',\n ],\n },\n fields: {\n tokenHash: schemaShape.tokenHash.stringSpec({\n meaning: 'Persisted SHA-256 lookup hash returned as `tokenHash` only by GENERATE_TOKEN for creation correlation. ROTATE_TOKEN names its acknowledgement field `newTokenHash`; inventory never returns either hash. A hash is not a bearer credential.',\n }),\n displayName: schemaShape.displayName.stringSpec({ meaning: 'Admin-given name for the token in UI (what “Prod IdP” vs “Staging”).', importance: FieldSemanticImportance.PRIMARY }),\n isActive: schemaShape.isActive.booleanSpec({ meaning: 'Whether this token should still authenticate SCIM traffic when not expired or revoked in implementation.' }),\n createdByUserId: schemaShape.createdByUserId.stringSpec({ meaning: 'Administrator who minted the token record, retained for support and audit accountability.' }),\n lastUsedAt: schemaShape.lastUsedAt.dateSpec({ meaning: 'Last SCIM request that passed bearer, status, expiry, rate-limit, and feature checks before dispatch.' }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Optional end time after which the token must be rotated or a new one issued even if not revoked early.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Internal-call (service-transport, no HTTP surface) read in factory defaults; the SCIM bearer-auth middleware resolves an inbound token by `tokenHash` on every /scim/v2/* request via a system-context read, so READ opts into `systemAccessPolicy.read = ALLOWED`. Not a member fetch.',\n outcome: 'Detail templates show display name, active flag, and lifecycle without raw secret or hash.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM token record’s metadata (display name, active flag, lifecycle) is returned without the secret or hash.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the internal/admin role required to inspect SCIM token rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'List the organization’s SCIM credentials and their current status, expiry, and last-use metadata.',\n outcome: 'A paginated credential inventory suitable for security review and rotation planning.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of SCIM credentials, labeled by `displayName`.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to view the SCIM token inventory for this scope.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Browse organization SCIM tokens',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: tokenPageExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n variants: {\n context: {\n examples: [\n {\n title: 'Browse organization SCIM tokens with scope context',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: tokenContextPageExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'Browse compact organization SCIM token summaries',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: tokenSummaryPageExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Row creation path for a new token record (REPOSITORY_ONLY in factory, HIGH risk).',\n outcome: 'A new id; any plaintext handshake follows factory DTOs for the generate custom op, not this bare create in typical UX.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SCIM token record was created; the bare create returns the record id, not plaintext bearer material (see GENERATE_TOKEN for the secret handshake).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The token payload fails schema validation (e.g. missing `displayName` or a malformed `expiresAt`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform/security admin; this is a HIGH-risk REPOSITORY_ONLY create.' },\n ],\n idempotent: false,\n rateLimitNote: 'Creating SCIM credential rows is a credential-management path and may be rate-limited per scope.',\n },\n [Op.UPDATE]: {\n purpose: 'Internal-call (service-transport, no HTTP surface) metadata update; the SCIM bearer-auth middleware stamps `lastUsedAt` on the resolved token on every /scim/v2/* request via a system-context write. Operators rotate/revoke via the dedicated custom ops, not this bare update.',\n outcome: 'The token row’s `lastUsedAt` (and other non-secret metadata) is refreshed; the secret/hash are never mutated here.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM token record’s metadata was updated (e.g. `lastUsedAt`).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the internal/admin role required to mutate SCIM token rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: false,\n },\n [Op.DELETE]: {\n purpose: 'Remove a token document when a credential should disappear entirely; REPOSITORY_ONLY in factory, HIGH risk.',\n outcome: 'The IdP can no longer authenticate SCIM with that id when enforcement is live.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The SCIM token record was deleted; the IdP can no longer authenticate SCIM with it. No body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the HIGH-risk admin role required to purge SCIM token rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id (or it was already deleted).' },\n ],\n idempotent: true,\n },\n [ScimTokens_Operations.GENERATE_TOKEN]: {\n operationId: ScimTokens_Operations.GENERATE_TOKEN,\n purpose: 'Generate a new SCIM bearer credential for an identity-provider connection.',\n outcome: 'The plaintext token is returned exactly once together with its metadata. Store it securely and configure it in the identity provider before dismissing the response.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The credential was created; the response includes its metadata and the one-time plaintext `token`, which cannot be retrieved again.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The generate payload fails schema validation (e.g. missing `displayName` or an invalid `expiresAt`).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to mint SCIM bearer credentials.' },\n ],\n idempotent: false,\n rateLimitNote: 'Bearer-token issuance is a credential-minting path and may be rate-limited per scope to slow credential sprawl.',\n examples: [\n {\n title: 'Generate an organization SCIM bearer token',\n request: {\n displayName: tokenRecordExample.displayName,\n expiresAt: tokenRecordExample.expiresAt,\n },\n response: {\n _id: tokenRecordExample._id,\n displayName: tokenRecordExample.displayName,\n createdByUserId: tokenRecordExample.createdByUserId,\n expiresAt: tokenRecordExample.expiresAt,\n isActive: tokenRecordExample.isActive,\n createdAt: tokenRecordExample.createdAt,\n updatedAt: tokenRecordExample.updatedAt,\n tokenHash: '29a6c2c70d069455f9e439e3cf0eb3755e221cabd6cfa4403ae340b9a5c42db5',\n token: '5c6cc59416d664aaab4b3a79e977e8ac19de2cd0518753107080c6af310f72c2',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [ScimTokens_Operations.REVOKE_TOKEN]: {\n operationId: ScimTokens_Operations.REVOKE_TOKEN,\n purpose: 'Revoke an active SCIM token without deleting its administrative history.',\n outcome: 'SCIM requests using the revoked token fail authentication, while its metadata remains available for audit and incident review.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The token is invalidated; subsequent SCIM calls presenting it fail authentication, while the record is retained for audit.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The request body contains any property; revocation accepts only an empty JSON object.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to revoke SCIM credentials.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The token is already revoked or inactive, so there is nothing to invalidate.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Revoke a compromised SCIM token while retaining its audit history',\n request: {},\n response: {\n isActive: false,\n revokedAt: '2026-08-18T10:45:00.000Z',\n message: 'Token revoked',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [ScimTokens_Operations.ROTATE_TOKEN]: {\n operationId: ScimTokens_Operations.ROTATE_TOKEN,\n purpose: 'Replace the token’s bearer secret with immediate cutover. The request body must be an empty JSON object.',\n outcome: 'A new plaintext bearer is returned once and immediately authenticates; the prior material stops authenticating at once.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A new bearer secret is issued and returned once; it authenticates immediately and the prior material is invalidated at once.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The request body contains any property; immediate-cutover rotation accepts only an empty JSON object.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to rotate SCIM credentials.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The token is revoked/expired and cannot be rotated, so issuing a new period is an illegal transition.' },\n ],\n idempotent: false,\n rateLimitNote: 'Rotation issues fresh bearer material and may be rate-limited to prevent rapid churn of live SCIM credentials.',\n examples: [\n {\n title: 'Rotate a SCIM token with immediate cutover',\n request: {},\n response: {\n newToken: '2770f399e8eeb9dc16a8e4d44e39b1097ae02cd397814007c30b80d34a334f41',\n newTokenId: tokenRecordExample._id,\n newTokenHash: 'e2b223c12b1f3e249e5f4cc332654423822613579113218de8e6bdc491fa6e6f',\n message: 'Token rotated',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n businessConstraints: [\n 'Do not conflate with `ORG_API_KEYS` / `APPLICATION_API_KEYS` — these tokens are for SCIM HTTP endpoints, not general platform API use.',\n ],\n }),\n { resourcePrimaryScope: scope[rt] },\n );\n}\n\nfunction build(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(r(securityMainPresets as Partial<Record<string, unknown>>, rt, 'securityMainPresets')),\n resourceFrontendConfiguration(r(securityAdminPresets as Partial<Record<string, unknown>>, rt, 'securityAdminPresets')),\n ),\n buildBase(rt, member),\n () => ({\n label: { purpose: 'Preset `getFrontendResourceLabel` returns `displayName` — the primary list/title for a SCIM token card.' },\n layout: {\n purpose: 'Sections `overview` (name, active, creator) and `lifecycle` (last use, expiry, timestamps) in the SCIM token templates.',\n displayPurpose: 'Display layout mirrors list semantics: compact name + status in summary, full lifecycle in the detail read template.',\n sections: {\n overview: { purpose: 'Identity and active flag for a SCIM token without exposing the secret or hash.', whenToUse: 'Any card or panel listing tokens.', textSlots: { title: { purpose: 'Token name.' }, description: { purpose: 'Tie the label to a single IdP or environment, not a user.' } } },\n lifecycle: { purpose: 'Last used, created, expiry, and support-oriented timestamps to drive rotation and cleanup.', whenToUse: 'Security review of stale tokens and expiring windows.', textSlots: { title: { purpose: 'Lifecycle and usage.' }, description: { purpose: 'Mention that “never used” may mean network path blocked, not a bug by itself.' } } },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Addressable organization-token inventory and primary navigation in the tenant SCIM security UI.', whenToUse: 'Administrators see all SCIM credentials for the tenant in one table.' },\n [ScimTokens_Operations.GENERATE_TOKEN]: { purpose: 'Create-with-secret custom op; not addressable in the default `views` array, invoked as an action from an empty/CTA state.', whenToUse: 'Onboarding a new IdP or rotating after compromise without deleting history rows immediately.' },\n [ScimTokens_Operations.REVOKE_TOKEN]: { purpose: 'Revocation action; not addressable in the default `views` array from row kebab/inline when wired in product.', whenToUse: 'Kill a single compromised token with audit trail of revocation time.' },\n [ScimTokens_Operations.ROTATE_TOKEN]: { purpose: 'Immediate-cutover rotation that re-mints the secret in place from a strict-empty request with no grace window; not addressable in the default `views` array, triggered from a rotation modal.', whenToUse: 'Planned key rotation when the IdP can be updated atomically.' },\n },\n }),\n );\n}\n\nexport const organizationScimTokensResourceSpecification = build(CoreResourceType.ORGANIZATION_SCIM_TOKENS, 'ORGANIZATION_SCIM_TOKENS');\n"]}
1
+ {"version":3,"file":"scim-tokens.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/scim-tokens.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,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,EAAE,EAAE,OAAO,EAAE,8GAA8G,EAAE,SAAS,EAAE,sEAAsE,EAAE;YACpP,CAAC,qBAAqB,CAAC,YAAY,CAAC,EAAE,EAAE,OAAO,EAAE,+LAA+L,EAAE,SAAS,EAAE,8DAA8D,EAAE;SAC9T;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,2CAA2C,GAAG,KAAK,CAAC,gBAAgB,CAAC,wBAAwB,EAAE,0BAA0B,CAAC,CAAC","sourcesContent":["import { securityAdminPresets, securityMainPresets } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n ScimTokens_Operations,\n ScimTokenBaseSchema,\n scimTokensPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype RType = CoreResourceType.ORGANIZATION_SCIM_TOKENS;\ntype RMember = 'ORGANIZATION_SCIM_TOKENS';\ntype Cfg = ReturnType<(typeof scimTokensPolymorphicFactories)[CoreResourceType.ORGANIZATION_SCIM_TOKENS]>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof ScimTokenBaseSchema;\ntype F = ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nfunction r(source: Partial<Record<string, unknown>>, rt: RType, name: string): F {\n const u = source[rt] as F | undefined;\n if (!u) throw new Error(`Missing \"${rt}\" in ${name}.`);\n return u;\n}\nconst scope: Record<RType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SCIM_TOKENS]: ResourcePrimaryScope.ORGANIZATIONS,\n};\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const scopeId = 'organization_01HX2EXAMPLE';\n const tokenId = 'scim_token_org_01HX2EXAMPLE';\n const scopeOwnership = { organizationId: scopeId } as const;\n const scopeRelationship = { organization: { _id: scopeId } } as const;\n const pagination = { page: 1, limit: 20, total: 1, totalPages: 1 } as const;\n const tokenRecordExample = {\n _id: tokenId,\n displayName: 'Production identity provider',\n createdByUserId: 'user_security_admin_01HX2EXAMPLE',\n lastUsedAt: '2026-08-17T15:30:00.000Z',\n expiresAt: '2099-01-01T00:00:00.000Z',\n isActive: true,\n createdAt: '2026-08-01T10:00:00.000Z',\n updatedAt: '2026-08-17T15:30:00.000Z',\n ...scopeOwnership,\n } as const;\n const tokenSummaryExample = {\n _id: tokenRecordExample._id,\n displayName: tokenRecordExample.displayName,\n isActive: tokenRecordExample.isActive,\n } as const;\n const tokenPageExample = { data: [tokenRecordExample], pagination } as const;\n const tokenContextPageExample = {\n data: [{ data: [tokenRecordExample], pagination, ...scopeRelationship }],\n pagination,\n } as const;\n const tokenSummaryPageExample = { data: [tokenSummaryExample], pagination } as const;\n\n return resourceSpecification<Custom, Core, Main>(\n scimTokensPolymorphicFactories[rt],\n ScimTokenBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SCIM bearer credentials used by the organization’s identity provider to provision and deactivate users through the SCIM API.',\n businessRole: 'Long-lived or expiring credentials dedicated to directory synchronization, with issuance, inventory, revocation, and immediate-cutover rotation distinct from general platform API keys.',\n lifecycleRole: 'Generate a credential, monitor its use and expiry, then revoke or rotate it. Rotation cuts over immediately, so update the identity provider with the returned token before making another SCIM request.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ScimTokenBaseSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactoryCollectionEntry: { collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'scimTokensPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY }, identifierField: 'collectionKey', identifierValue: rt },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: member },\n operationVocabulary: {\n coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n customEnum: { packageName: '@wildo-ai/saas-models', exportName: 'ScimTokens_Operations', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n },\n frontendConfigurationSourceEntries: [\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n ],\n notes: [\n '`tokenHash` is backend-only: UI shows labels and last-use — never a recoverable token from READ in secure deployments.',\n ],\n },\n fields: {\n tokenHash: schemaShape.tokenHash.stringSpec({\n meaning: 'Persisted SHA-256 lookup hash returned as `tokenHash` only by GENERATE_TOKEN for creation correlation. ROTATE_TOKEN names its acknowledgement field `newTokenHash`; inventory never returns either hash. A hash is not a bearer credential.',\n }),\n displayName: schemaShape.displayName.stringSpec({ meaning: 'Admin-given name for the token in UI (what “Prod IdP” vs “Staging”).', importance: FieldSemanticImportance.PRIMARY }),\n isActive: schemaShape.isActive.booleanSpec({ meaning: 'Whether this token should still authenticate SCIM traffic when not expired or revoked in implementation.' }),\n createdByUserId: schemaShape.createdByUserId.stringSpec({ meaning: 'Administrator who minted the token record, retained for support and audit accountability.' }),\n lastUsedAt: schemaShape.lastUsedAt.dateSpec({ meaning: 'Last SCIM request that passed bearer, status, expiry, rate-limit, and feature checks before dispatch.' }),\n expiresAt: schemaShape.expiresAt.dateSpec({ meaning: 'Optional end time after which the token must be rotated or a new one issued even if not revoked early.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Internal-call (service-transport, no HTTP surface) read in factory defaults; the SCIM bearer-auth middleware resolves an inbound token by `tokenHash` on every /scim/v2/* request via a system-context read, so READ opts into `systemAccessPolicy.read = ALLOWED`. Not a member fetch.',\n outcome: 'Detail templates show display name, active flag, and lifecycle without raw secret or hash.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM token record’s metadata (display name, active flag, lifecycle) is returned without the secret or hash.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the internal/admin role required to inspect SCIM token rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: 'List the organization’s SCIM credentials and their current status, expiry, and last-use metadata.',\n outcome: 'A paginated credential inventory suitable for security review and rotation planning.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of SCIM credentials, labeled by `displayName`.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to view the SCIM token inventory for this scope.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `MANAGE_SSO_SCIM` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Browse organization SCIM tokens',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: tokenPageExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n variants: {\n context: {\n examples: [\n {\n title: 'Browse organization SCIM tokens with scope context',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: tokenContextPageExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'Browse compact organization SCIM token summaries',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: tokenSummaryPageExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Row creation path for a new token record (REPOSITORY_ONLY in factory, HIGH risk).',\n outcome: 'A new id; any plaintext handshake follows factory DTOs for the generate custom op, not this bare create in typical UX.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SCIM token record was created; the bare create returns the record id, not plaintext bearer material (see GENERATE_TOKEN for the secret handshake).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The token payload fails schema validation (e.g. missing `displayName` or a malformed `expiresAt`).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform/security admin; this is a HIGH-risk REPOSITORY_ONLY create.' },\n ],\n idempotent: false,\n rateLimitNote: 'Creating SCIM credential rows is a credential-management path and may be rate-limited per scope.',\n },\n [Op.UPDATE]: {\n purpose: 'Internal-call (service-transport, no HTTP surface) metadata update; the SCIM bearer-auth middleware stamps `lastUsedAt` on the resolved token on every /scim/v2/* request via a system-context write. Operators rotate/revoke via the dedicated custom ops, not this bare update.',\n outcome: 'The token row’s `lastUsedAt` (and other non-secret metadata) is refreshed; the secret/hash are never mutated here.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM token record’s metadata was updated (e.g. `lastUsedAt`).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the internal/admin role required to mutate SCIM token rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n ],\n idempotent: false,\n },\n [Op.DELETE]: {\n purpose: 'Remove a token document when a credential should disappear entirely; REPOSITORY_ONLY in factory, HIGH risk.',\n outcome: 'The IdP can no longer authenticate SCIM with that id when enforcement is live.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The SCIM token record was deleted; the IdP can no longer authenticate SCIM with it. No body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the HIGH-risk admin role required to purge SCIM token rows.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id (or it was already deleted).' },\n ],\n idempotent: true,\n },\n [ScimTokens_Operations.GENERATE_TOKEN]: {\n operationId: ScimTokens_Operations.GENERATE_TOKEN,\n purpose: 'Generate a new SCIM bearer credential for an identity-provider connection.',\n outcome: 'The plaintext token is returned exactly once together with its metadata. Store it securely and configure it in the identity provider before dismissing the response.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The credential was created; the response includes its metadata and the one-time plaintext `token`, which cannot be retrieved again.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The generate payload fails schema validation (e.g. missing `displayName` or an invalid `expiresAt`).' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to mint SCIM bearer credentials.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `MANAGE_SSO_SCIM` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n ],\n idempotent: false,\n rateLimitNote: 'Bearer-token issuance is a credential-minting path and may be rate-limited per scope to slow credential sprawl.',\n examples: [\n {\n title: 'Generate an organization SCIM bearer token',\n request: {\n displayName: tokenRecordExample.displayName,\n expiresAt: tokenRecordExample.expiresAt,\n },\n response: {\n _id: tokenRecordExample._id,\n displayName: tokenRecordExample.displayName,\n createdByUserId: tokenRecordExample.createdByUserId,\n expiresAt: tokenRecordExample.expiresAt,\n isActive: tokenRecordExample.isActive,\n createdAt: tokenRecordExample.createdAt,\n updatedAt: tokenRecordExample.updatedAt,\n tokenHash: '29a6c2c70d069455f9e439e3cf0eb3755e221cabd6cfa4403ae340b9a5c42db5',\n token: '5c6cc59416d664aaab4b3a79e977e8ac19de2cd0518753107080c6af310f72c2',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [ScimTokens_Operations.REVOKE_TOKEN]: {\n operationId: ScimTokens_Operations.REVOKE_TOKEN,\n purpose: 'Revoke an active SCIM token without deleting its administrative history.',\n outcome: 'SCIM requests using the revoked token fail authentication, while its metadata remains available for audit and incident review.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The token is invalidated; subsequent SCIM calls presenting it fail authentication, while the record is retained for audit.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The request body contains any property; revocation accepts only an empty JSON object.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to revoke SCIM credentials.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `MANAGE_SSO_SCIM` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The token is already revoked or inactive, so there is nothing to invalidate.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Revoke a compromised SCIM token while retaining its audit history',\n request: {},\n response: {\n isActive: false,\n revokedAt: '2026-08-18T10:45:00.000Z',\n message: 'Token revoked',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n [ScimTokens_Operations.ROTATE_TOKEN]: {\n operationId: ScimTokens_Operations.ROTATE_TOKEN,\n purpose: 'Replace the token’s bearer secret with immediate cutover. The request body must be an empty JSON object.',\n outcome: 'A new plaintext bearer is returned once and immediately authenticates; the prior material stops authenticating at once.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A new bearer secret is issued and returned once; it authenticates immediately and the prior material is invalidated at once.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The request body contains any property; immediate-cutover rotation accepts only an empty JSON object.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to rotate SCIM credentials.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A service firm\\'s expert reaches this operation only through a live grant of the `MANAGE_SSO_SCIM` capability the organization lent its relationship (#1631), and is refused without one. The grant confers only while ACTIVE and before its `endsAt`, and a revocation takes effect on the expert\\'s next request.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM token exists for the supplied id in the caller’s scope.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The token is revoked/expired and cannot be rotated, so issuing a new period is an illegal transition.' },\n ],\n idempotent: false,\n rateLimitNote: 'Rotation issues fresh bearer material and may be rate-limited to prevent rapid churn of live SCIM credentials.',\n examples: [\n {\n title: 'Rotate a SCIM token with immediate cutover',\n request: {},\n response: {\n newToken: '2770f399e8eeb9dc16a8e4d44e39b1097ae02cd397814007c30b80d34a334f41',\n newTokenId: tokenRecordExample._id,\n newTokenHash: 'e2b223c12b1f3e249e5f4cc332654423822613579113218de8e6bdc491fa6e6f',\n message: 'Token rotated',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n businessConstraints: [\n 'Do not conflate with `ORG_API_KEYS` / `APPLICATION_API_KEYS` — these tokens are for SCIM HTTP endpoints, not general platform API use.',\n ],\n }),\n { resourcePrimaryScope: scope[rt] },\n );\n}\n\nfunction build(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(r(securityMainPresets as Partial<Record<string, unknown>>, rt, 'securityMainPresets')),\n resourceFrontendConfiguration(r(securityAdminPresets as Partial<Record<string, unknown>>, rt, 'securityAdminPresets')),\n ),\n buildBase(rt, member),\n () => ({\n label: { purpose: 'Preset `getFrontendResourceLabel` returns `displayName` — the primary list/title for a SCIM token card.' },\n layout: {\n purpose: 'Sections `overview` (name, active, creator) and `lifecycle` (last use, expiry, timestamps) in the SCIM token templates.',\n displayPurpose: 'The header names the token; settings rows below with no section descriptions and never-used / no-expiry rows hidden. A list row is the name and \"Active\" / \"Inactive\" as a word.',\n sections: {\n overview: { purpose: 'Whether the token is active and who created it, without exposing the secret or hash; the name is the header.', whenToUse: 'Any card or panel listing tokens.', textSlots: { title: { purpose: 'Label the token\\'s state and creator (not rendered: the header names the token).' } } },\n lifecycle: { purpose: 'Last used, created, expiry, and support-oriented timestamps to drive rotation and cleanup.', whenToUse: 'Security review of stale tokens and expiring windows.', textSlots: { title: { purpose: 'Lifecycle and usage.' } } },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Addressable organization-token inventory and primary navigation in the tenant SCIM security UI.', whenToUse: 'Administrators see all SCIM credentials for the tenant in one table.' },\n [ScimTokens_Operations.GENERATE_TOKEN]: { purpose: 'Create-with-secret custom op; not addressable in the default `views` array, invoked as an action from an empty/CTA state.', whenToUse: 'Onboarding a new IdP or rotating after compromise without deleting history rows immediately.' },\n [ScimTokens_Operations.REVOKE_TOKEN]: { purpose: 'Revocation action; not addressable in the default `views` array from row kebab/inline when wired in product.', whenToUse: 'Kill a single compromised token with audit trail of revocation time.' },\n [ScimTokens_Operations.ROTATE_TOKEN]: { purpose: 'Immediate-cutover rotation that re-mints the secret in place from a strict-empty request with no grace window; not addressable in the default `views` array, triggered from a rotation modal.', whenToUse: 'Planned key rotation when the IdP can be updated atomically.' },\n },\n }),\n );\n}\n\nexport const organizationScimTokensResourceSpecification = build(CoreResourceType.ORGANIZATION_SCIM_TOKENS, 'ORGANIZATION_SCIM_TOKENS');\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"siem-delivery-dlq.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/siem-delivery-dlq.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAM3B,0BAA0B,EAI3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AAocrC,eAAO,MAAM,gDAAgD;;;;;;;;;;;;;;;iCAG5D,CAAC;AACF,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;iCAG3D,CAAC"}
1
+ {"version":3,"file":"siem-delivery-dlq.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/siem-delivery-dlq.resource.specification.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAM3B,0BAA0B,EAI3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AAscrC,eAAO,MAAM,gDAAgD;;;;;;;;;;;;;;;iCAG5D,CAAC;AACF,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;iCAG3D,CAAC"}
@@ -173,6 +173,18 @@ function buildBase(rt, member) {
173
173
  lastAttemptAt: schemaShape.lastAttemptAt.dateSpec({ meaning: 'Last delivery attempt from Wildo to the customer webhook.' }),
174
174
  nextRetryAt: schemaShape.nextRetryAt.dateSpec({ meaning: 'When the next automatic retry is scheduled, if any.' }),
175
175
  },
176
+ // `eventPayload` is `z.unknown()`, which carries no spec decorators, so its meaning is declared
177
+ // through the escape hatch rather than dropped.
178
+ additionalFieldSpecs: [
179
+ {
180
+ fieldName: 'eventPayload',
181
+ specDecorator: 'objectSpec',
182
+ params: {
183
+ meaning: 'The security audit event that could not be delivered, stored exactly as it was built. A retry re-sends this same event, with the same `eventId`.',
184
+ whyItMatters: 'Its structure depends on the event type, and it can name the people and systems involved in the event.',
185
+ },
186
+ },
187
+ ],
176
188
  operations: {
177
189
  [Op.READ]: {
178
190
  purpose: 'Repository read of a single DLQ row (internal and admin diagnostics, not a broad end-user read).',
@@ -238,7 +250,7 @@ function buildBase(rt, member) {
238
250
  { code: HttpResponseStatusCode.CREATED_201, meaning: 'A dead-letter record was appended for a failed SIEM delivery and is returned with its server-assigned id.' },
239
251
  ],
240
252
  errorScenarios: [
241
- { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The failure record fails schema validation (e.g. an unknown `status` or a missing `eventId`/`failureReason`).', errorCode: 'VALIDATION_FAILED' },
253
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The failure record fails schema validation (e.g. an unknown `status` or a missing `eventId`/`failureReason`).' },
242
254
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the internal delivery pipeline; this is a REPOSITORY_ONLY append path, not a self-serve create.' },
243
255
  ],
244
256
  idempotent: false,
@@ -389,31 +401,21 @@ function build(rt, member) {
389
401
  purpose: 'List rows and summaries are labeled from `failureReason` in the merged `security` preset — surface a concise operator-readable reason, not the entire payload.',
390
402
  },
391
403
  layout: {
392
- purpose: 'DLQ display in `security` uses section refs `overview` (context), `delivery` (attempt metadata), and `payload` (opaque snapshot).',
393
- displayPurpose: 'Template JSX for DLQ is defined alongside `layout.refs` in the preset to keep list rows compact; detail chrome expands the three blocks.',
404
+ purpose: 'A header that names the failed delivery by its `failureReason` and carries its status badge, then `delivery` (attempt metadata) and `payload` (opaque snapshot). There is no `overview` section: it held exactly the reason and the status, which the header already shows.',
405
+ displayPurpose: 'Settings rows on read with no section descriptions; `nextRetryAt` is hidden once the row is terminal; the payload card renders the data without a label. A list card is the failure reason and its status badge.',
394
406
  sections: {
395
- overview: {
396
- purpose: 'Status badge, `eventId`, and failure count so the operator orients to which stream failed before opening payload text.',
397
- whenToUse: 'All read layouts for a DLQ row in security consoles.',
398
- textSlots: {
399
- title: { purpose: 'Name the current DLQ item with status-first framing.' },
400
- description: { purpose: 'Mention that payload may contain PII; treat the screen as operator-only.' },
401
- },
402
- },
403
407
  delivery: {
404
- purpose: 'Attempt timestamps and next retry, plus a human-readable `failureReason` for triage.',
408
+ purpose: 'The event id, the failure count, the last attempt and the next retry — enough to judge whether automatic retries can still help.',
405
409
  whenToUse: 'Understanding whether automatic retries can still help vs exhausted state.',
406
410
  textSlots: {
407
411
  title: { purpose: 'Label the delivery and retry block.' },
408
- description: { purpose: 'Clarify that `nextRetryAt` can be empty when the row is terminal.' },
409
412
  },
410
413
  },
411
414
  payload: {
412
- purpose: 'The opaque `eventPayload` blob — rendering may truncate or redact; structure is not fixed across event types.',
413
- whenToUse: 'Deep debugging after overview/delivery are understood; export paths may also reference this data.',
415
+ purpose: 'The opaque `eventPayload` blob — rendering may truncate or redact; structure is not fixed across event types. The data carries no label: the card heading names it.',
416
+ whenToUse: 'Deep debugging after the delivery record is understood; export paths may also reference this data.',
414
417
  textSlots: {
415
418
  title: { purpose: 'Label the payload/technical view.' },
416
- description: { purpose: 'Avoid claiming a stable JSON contract — the schema stores `z.unknown()` for flexibility at write time.' },
417
419
  },
418
420
  },
419
421
  },