@wildo-ai/saas-specifications 1.1.3 → 1.1.4

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 (857) hide show
  1. package/dist/esm/_catalogs/index.d.ts.map +1 -1
  2. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
  3. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
  4. package/dist/esm/_catalogs/schema-org/aggregate-rating.catalog-spec.d.ts.map +1 -1
  5. package/dist/esm/_catalogs/schema-org/article.catalog-spec.d.ts.map +1 -1
  6. package/dist/esm/_catalogs/schema-org/blog-posting.catalog-spec.d.ts.map +1 -1
  7. package/dist/esm/_catalogs/schema-org/breadcrumb-list.catalog-spec.d.ts.map +1 -1
  8. package/dist/esm/_catalogs/schema-org/faq-page.catalog-spec.d.ts.map +1 -1
  9. package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
  10. package/dist/esm/_catalogs/schema-org/offer.catalog-spec.d.ts.map +1 -1
  11. package/dist/esm/_catalogs/schema-org/organization.catalog-spec.d.ts.map +1 -1
  12. package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts.map +1 -1
  13. package/dist/esm/_catalogs/schema-org/review.catalog-spec.d.ts.map +1 -1
  14. package/dist/esm/_catalogs/schema-org/website.catalog-spec.d.ts.map +1 -1
  15. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts.map +1 -1
  16. package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts.map +1 -1
  17. package/dist/esm/_core/assertions/assertion-references.schemas.d.ts.map +1 -1
  18. package/dist/esm/_core/assertions/assertion-snapshot-validation.d.ts.map +1 -1
  19. package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts.map +1 -1
  20. package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
  21. package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
  22. package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts.map +1 -1
  23. package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
  24. package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
  25. package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts.map +1 -1
  26. package/dist/esm/_core/brand/brand-name.schemas.d.ts.map +1 -1
  27. package/dist/esm/_core/brand/brand-snapshot-validation.d.ts.map +1 -1
  28. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
  29. package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
  30. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
  31. package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -1
  32. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  33. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
  34. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  35. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  36. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  37. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  38. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts.map +1 -1
  39. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
  40. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
  41. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
  42. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
  43. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
  44. package/dist/esm/_core/business-model-lite/business-model-references.schemas.d.ts.map +1 -1
  45. package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -1
  46. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
  47. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
  48. package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
  49. package/dist/esm/_core/compliance-documents/compliance-completeness-statement.schemas.d.ts.map +1 -1
  50. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +118 -0
  51. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
  52. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +65 -3
  53. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
  54. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +498 -7
  55. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  56. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +472 -19
  57. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  58. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -1
  59. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
  60. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -1
  61. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +2 -0
  62. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  63. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +2 -0
  64. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  65. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
  66. package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
  67. package/dist/esm/_core/cross-registry-assertions.d.ts.map +1 -1
  68. package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
  69. package/dist/esm/_core/definition-specification-validators.d.ts.map +1 -1
  70. package/dist/esm/_core/definition-specification.schemas.d.ts.map +1 -1
  71. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
  72. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
  73. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  74. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  75. package/dist/esm/_core/error-message-specification.schemas.d.ts.map +1 -1
  76. package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
  77. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts.map +1 -1
  78. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  79. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  80. package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
  81. package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
  82. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
  83. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
  84. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
  85. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  86. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  87. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +9 -9
  88. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts.map +1 -1
  89. package/dist/esm/_core/feature-drafts/capability-map-output-set-validation.d.ts.map +1 -1
  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-drafts.family-aspects.d.ts.map +1 -1
  92. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -1
  93. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
  94. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
  95. package/dist/esm/_core/feature-drafts/feature-specification-drafts-validation.d.ts.map +1 -1
  96. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  97. package/dist/esm/_core/feature-specification.schemas.d.ts.map +1 -1
  98. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
  99. package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
  100. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
  101. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
  102. package/dist/esm/_core/index.d.ts.map +1 -1
  103. package/dist/esm/_core/index.js.map +1 -1
  104. package/dist/esm/_core/market/feature-benefit.schemas.d.ts.map +1 -1
  105. package/dist/esm/_core/market/inherit-from.d.ts.map +1 -1
  106. package/dist/esm/_core/market/is-benefit-available.d.ts.map +1 -1
  107. package/dist/esm/_core/market/market-alternative.schemas.d.ts.map +1 -1
  108. package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts.map +1 -1
  109. package/dist/esm/_core/market/market-buying-journey.schemas.d.ts.map +1 -1
  110. package/dist/esm/_core/market/market-category.schemas.d.ts.map +1 -1
  111. package/dist/esm/_core/market/market-channel.schemas.d.ts.map +1 -1
  112. package/dist/esm/_core/market/market-context-block.schemas.d.ts.map +1 -1
  113. package/dist/esm/_core/market/market-gain.schemas.d.ts.map +1 -1
  114. package/dist/esm/_core/market/market-generation.schemas.d.ts.map +1 -1
  115. package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
  116. package/dist/esm/_core/market/market-job.schemas.d.ts.map +1 -1
  117. package/dist/esm/_core/market/market-message-template.schemas.d.ts.map +1 -1
  118. package/dist/esm/_core/market/market-objection.schemas.d.ts.map +1 -1
  119. package/dist/esm/_core/market/market-pain.schemas.d.ts.map +1 -1
  120. package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
  121. package/dist/esm/_core/market/market-positioning.schemas.d.ts.map +1 -1
  122. package/dist/esm/_core/market/market-proof.schemas.d.ts.map +1 -1
  123. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  124. package/dist/esm/_core/market/market-scoring.d.ts.map +1 -1
  125. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +18 -18
  126. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  127. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  128. package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
  129. package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
  130. package/dist/esm/_core/market/market-snapshot.schemas.d.ts.map +1 -1
  131. package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts.map +1 -1
  132. package/dist/esm/_core/market/market-trigger.schemas.d.ts.map +1 -1
  133. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
  134. package/dist/esm/_core/milestone-specification.schemas.d.ts.map +1 -1
  135. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
  136. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
  137. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
  138. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +22 -16
  139. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  140. package/dist/esm/_core/placement-plan/placement-plan-validation.js +17 -11
  141. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  142. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
  143. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +12 -8
  144. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  145. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +12 -8
  146. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  147. package/dist/esm/_core/product-specification.schemas.d.ts.map +1 -1
  148. package/dist/esm/_core/provider-specification.schemas.d.ts +16 -0
  149. package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -1
  150. package/dist/esm/_core/provider-specification.schemas.js +0 -20
  151. package/dist/esm/_core/provider-specification.schemas.js.map +1 -1
  152. package/dist/esm/_core/required-features-specification.schemas.d.ts.map +1 -1
  153. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  154. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
  155. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts.map +1 -1
  156. package/dist/esm/_core/requirements/requirements-references.schemas.d.ts.map +1 -1
  157. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  158. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
  159. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
  160. package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
  161. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  162. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
  163. package/dist/esm/_core/resource-specification-registry-alignment.d.ts.map +1 -1
  164. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  165. package/dist/esm/_core/resource-type-member-name.types.d.ts.map +1 -1
  166. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts.map +1 -1
  167. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
  168. package/dist/esm/_core/roadmap/roadmap-references.schemas.d.ts.map +1 -1
  169. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
  170. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
  171. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
  172. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
  173. package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts.map +1 -1
  174. package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -1
  175. package/dist/esm/_core/role-specification.schemas.d.ts.map +1 -1
  176. package/dist/esm/_core/sidebar-section-specification.schemas.d.ts.map +1 -1
  177. package/dist/esm/_core/system-email-template-specification.schemas.d.ts.map +1 -1
  178. package/dist/esm/_core/translation-slot-specification.schemas.d.ts.map +1 -1
  179. package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
  180. package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -1
  181. package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -1
  182. package/dist/esm/_core/utils/retention-marker-field-specs.d.ts.map +1 -1
  183. package/dist/esm/_core/utils/validate-field-shapes.d.ts.map +1 -1
  184. package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts.map +1 -1
  185. package/dist/esm/_core/vision/vision-constraint.schemas.d.ts.map +1 -1
  186. package/dist/esm/_core/vision/vision-idea.schemas.d.ts.map +1 -1
  187. package/dist/esm/_core/vision/vision-mission.schemas.d.ts.map +1 -1
  188. package/dist/esm/_core/vision/vision-problem.schemas.d.ts.map +1 -1
  189. package/dist/esm/_core/vision/vision-references.schemas.d.ts.map +1 -1
  190. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
  191. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
  192. package/dist/esm/_core/vision/vision-snapshot-validation.d.ts.map +1 -1
  193. package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts.map +1 -1
  194. package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts.map +1 -1
  195. package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -1
  196. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +1 -1
  197. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  198. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  199. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
  200. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
  201. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
  202. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
  203. package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -1
  204. package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -1
  205. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts.map +1 -1
  206. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  207. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  208. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +8 -0
  209. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  210. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +8 -0
  211. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  212. package/dist/esm/application-creation/specification-content-validation-state.application-creation.schemas.d.ts.map +1 -1
  213. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  214. package/dist/esm/application-creation-playbook-runtime.exports.d.ts.map +1 -1
  215. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  216. package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
  217. package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
  218. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +11 -0
  219. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  220. package/dist/esm/assurance/assurance-authority-basis.definitions.js +37 -4
  221. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  222. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +2 -2
  223. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  224. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +30 -0
  225. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
  226. package/dist/esm/assurance/assurance-document-blueprint-selection.js +40 -0
  227. package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
  228. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  229. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  230. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +22 -9
  231. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  232. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +2002 -29
  233. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  234. package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -1
  235. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  236. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  237. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +30 -0
  238. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  239. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +40 -0
  240. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  241. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  242. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  243. package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -1
  244. package/dist/esm/assurance/assurance-program.schemas.d.ts +30 -14
  245. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  246. package/dist/esm/assurance/assurance-program.schemas.js +14 -6
  247. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  248. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  249. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  250. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  251. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +29 -0
  252. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  253. package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -1
  254. package/dist/esm/assurance.exports.d.ts.map +1 -1
  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/_bootstrap.d.ts.map +1 -1
  258. package/dist/esm/engine/_bootstrap.js.map +1 -1
  259. package/dist/esm/engine/applications/index.d.ts.map +1 -1
  260. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  261. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  262. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  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.map +1 -1
  266. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
  267. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  268. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  269. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  270. package/dist/esm/engine/applications/resources/index.d.ts.map +1 -1
  271. package/dist/esm/engine/auth/index.d.ts.map +1 -1
  272. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +47 -0
  273. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -0
  274. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +355 -0
  275. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -0
  276. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -1
  277. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -1
  278. package/dist/esm/engine/auth/resources/index.d.ts +1 -0
  279. package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
  280. package/dist/esm/engine/auth/resources/index.js +1 -0
  281. package/dist/esm/engine/auth/resources/index.js.map +1 -1
  282. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  283. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  284. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  285. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  286. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  287. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  288. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  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.map +1 -1
  292. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  293. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  294. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  295. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  296. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  297. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  298. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  299. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  300. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  301. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +9 -1
  302. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  303. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +2 -0
  304. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  305. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  306. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  307. package/dist/esm/engine/billing/index.d.ts.map +1 -1
  308. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  309. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  310. package/dist/esm/engine/billing/resources/billing-api-reference-examples.d.ts.map +1 -1
  311. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
  312. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  313. package/dist/esm/engine/billing/resources/index.d.ts.map +1 -1
  314. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  315. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  316. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  317. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  318. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  319. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  320. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  321. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  322. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  323. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  324. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  325. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  326. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  327. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  328. package/dist/esm/engine/compliance/index.d.ts.map +1 -1
  329. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +69 -0
  330. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -0
  331. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +316 -0
  332. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -0
  333. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  334. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  335. package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
  336. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  337. package/dist/esm/engine/compliance/resources/index.js +1 -0
  338. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  339. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  340. package/dist/esm/engine/engine-resource-specifications.registry.js +4 -0
  341. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  342. package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -1
  343. package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -1
  344. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  345. package/dist/esm/engine/errors/error-messages.specification.js +19 -0
  346. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  347. package/dist/esm/engine/errors/index.d.ts.map +1 -1
  348. package/dist/esm/engine/features/_engine-feature-shared.d.ts.map +1 -1
  349. package/dist/esm/engine/features/advanced-analytics.feature.specification.d.ts.map +1 -1
  350. package/dist/esm/engine/features/audit-logs.feature.specification.d.ts.map +1 -1
  351. package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
  352. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
  353. package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
  354. package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
  355. package/dist/esm/engine/features/directory-provisioning.feature.specification.d.ts.map +1 -1
  356. package/dist/esm/engine/features/index.d.ts.map +1 -1
  357. package/dist/esm/engine/features/m2m-webhook-delivery.feature.specification.d.ts.map +1 -1
  358. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  359. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  360. package/dist/esm/engine/features/resources/index.d.ts.map +1 -1
  361. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  362. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  363. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
  364. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  365. package/dist/esm/engine/features/security-event-export.feature.specification.d.ts.map +1 -1
  366. package/dist/esm/engine/features/single-sign-on.feature.specification.d.ts.map +1 -1
  367. package/dist/esm/engine/files/index.d.ts.map +1 -1
  368. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  369. package/dist/esm/engine/files/resources/files.resource.specification.js +1 -1
  370. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  371. package/dist/esm/engine/files/resources/index.d.ts.map +1 -1
  372. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  373. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  374. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
  375. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  376. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  377. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  378. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  379. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
  380. package/dist/esm/engine/frontend-components/actions/action-button.frontend-component.specification.d.ts.map +1 -1
  381. package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.d.ts.map +1 -1
  382. package/dist/esm/engine/frontend-components/actions/button-group-text.frontend-component.specification.d.ts.map +1 -1
  383. package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.d.ts.map +1 -1
  384. package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.d.ts.map +1 -1
  385. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-artifact-list.frontend-component.specification.d.ts.map +1 -1
  386. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-artifact.frontend-component.specification.d.ts.map +1 -1
  387. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-code-block.frontend-component.specification.d.ts.map +1 -1
  388. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-image.frontend-component.specification.d.ts.map +1 -1
  389. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-web-preview.frontend-component.specification.d.ts.map +1 -1
  390. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation.frontend-component.specification.d.ts.map +1 -1
  391. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-message.frontend-component.specification.d.ts.map +1 -1
  392. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
  393. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-sources.frontend-component.specification.d.ts.map +1 -1
  394. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-suggestion.frontend-component.specification.d.ts.map +1 -1
  395. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-suggestions.frontend-component.specification.d.ts.map +1 -1
  396. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.d.ts.map +1 -1
  397. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.d.ts.map +1 -1
  398. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-decision-request.frontend-component.specification.d.ts.map +1 -1
  399. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-human-input-request.frontend-component.specification.d.ts.map +1 -1
  400. package/dist/esm/engine/frontend-components/ai-elements/execution/ai-confirmation.frontend-component.specification.d.ts.map +1 -1
  401. package/dist/esm/engine/frontend-components/ai-elements/execution/ai-queue.frontend-component.specification.d.ts.map +1 -1
  402. package/dist/esm/engine/frontend-components/ai-elements/execution/ai-task.frontend-component.specification.d.ts.map +1 -1
  403. package/dist/esm/engine/frontend-components/ai-elements/execution/ai-tool.frontend-component.specification.d.ts.map +1 -1
  404. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
  405. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-connection.frontend-component.specification.d.ts.map +1 -1
  406. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-controls.frontend-component.specification.d.ts.map +1 -1
  407. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-edge.frontend-component.specification.d.ts.map +1 -1
  408. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
  409. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-panel.frontend-component.specification.d.ts.map +1 -1
  410. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-toolbar.frontend-component.specification.d.ts.map +1 -1
  411. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-capabilities.frontend-component.specification.d.ts.map +1 -1
  412. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-card.frontend-component.specification.d.ts.map +1 -1
  413. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-list.frontend-component.specification.d.ts.map +1 -1
  414. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-prompt-spec.frontend-component.specification.d.ts.map +1 -1
  415. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-context.frontend-component.specification.d.ts.map +1 -1
  416. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-model-selector.frontend-component.specification.d.ts.map +1 -1
  417. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-open-in-chat.frontend-component.specification.d.ts.map +1 -1
  418. package/dist/esm/engine/frontend-components/ai-elements/shared/ai-loader.frontend-component.specification.d.ts.map +1 -1
  419. package/dist/esm/engine/frontend-components/ai-elements/shared/ai-shimmer.frontend-component.specification.d.ts.map +1 -1
  420. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.d.ts.map +1 -1
  421. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-checkpoint.frontend-component.specification.d.ts.map +1 -1
  422. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-inline-citation.frontend-component.specification.d.ts.map +1 -1
  423. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-plan.frontend-component.specification.d.ts.map +1 -1
  424. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-reasoning.frontend-component.specification.d.ts.map +1 -1
  425. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.d.ts.map +1 -1
  426. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  427. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  428. package/dist/esm/engine/frontend-components/app/app-layout-error-boundary.frontend-component.specification.d.ts.map +1 -1
  429. package/dist/esm/engine/frontend-components/app/app-layout-home.frontend-component.specification.d.ts.map +1 -1
  430. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.d.ts.map +1 -1
  431. package/dist/esm/engine/frontend-components/app/app-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  432. package/dist/esm/engine/frontend-components/app/app-layout-router-error-boundary.frontend-component.specification.d.ts.map +1 -1
  433. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.d.ts.map +1 -1
  434. package/dist/esm/engine/frontend-components/app/app-layouts-test-component.frontend-component.specification.d.ts.map +1 -1
  435. package/dist/esm/engine/frontend-components/app/lifecycle-home-activation-progress.frontend-component.specification.d.ts.map +1 -1
  436. package/dist/esm/engine/frontend-components/app/lifecycle-home-dashboard.frontend-component.specification.d.ts.map +1 -1
  437. package/dist/esm/engine/frontend-components/app/lifecycle-home-welcome-back.frontend-component.specification.d.ts.map +1 -1
  438. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -1
  439. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -1
  440. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  441. package/dist/esm/engine/frontend-components/app/public-layout-static-content-container.frontend-component.specification.d.ts.map +1 -1
  442. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.d.ts.map +1 -1
  443. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
  444. package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.d.ts.map +1 -1
  445. package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.d.ts.map +1 -1
  446. package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.d.ts.map +1 -1
  447. package/dist/esm/engine/frontend-components/auth/public-layout-mfa-challenge.frontend-component.specification.d.ts.map +1 -1
  448. package/dist/esm/engine/frontend-components/auth/public-layout-oauth-consent.frontend-component.specification.d.ts.map +1 -1
  449. package/dist/esm/engine/frontend-components/auth/public-layout-oauth-logged-out.frontend-component.specification.d.ts.map +1 -1
  450. package/dist/esm/engine/frontend-components/auth/public-layout-oauth-logout-confirm.frontend-component.specification.d.ts.map +1 -1
  451. package/dist/esm/engine/frontend-components/auth/public-layout-one-off-session.frontend-component.specification.d.ts.map +1 -1
  452. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.d.ts.map +1 -1
  453. package/dist/esm/engine/frontend-components/auth/public-layout-user-confirm-email.frontend-component.specification.d.ts.map +1 -1
  454. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.d.ts.map +1 -1
  455. package/dist/esm/engine/frontend-components/auth/public-layout-user-password-lost.frontend-component.specification.d.ts.map +1 -1
  456. package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.d.ts.map +1 -1
  457. package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.d.ts.map +1 -1
  458. package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.d.ts.map +1 -1
  459. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.d.ts.map +1 -1
  460. package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.d.ts.map +1 -1
  461. package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.d.ts.map +1 -1
  462. package/dist/esm/engine/frontend-components/data-display/avatar.frontend-component.specification.d.ts.map +1 -1
  463. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
  464. package/dist/esm/engine/frontend-components/data-display/description-details.frontend-component.specification.d.ts.map +1 -1
  465. package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.d.ts.map +1 -1
  466. package/dist/esm/engine/frontend-components/data-display/description-term.frontend-component.specification.d.ts.map +1 -1
  467. package/dist/esm/engine/frontend-components/data-display/formatters/_display-field-spec.factory.d.ts.map +1 -1
  468. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-bigdecimal.frontend-component.specification.d.ts.map +1 -1
  469. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-boolean.frontend-component.specification.d.ts.map +1 -1
  470. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-code.frontend-component.specification.d.ts.map +1 -1
  471. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-date.frontend-component.specification.d.ts.map +1 -1
  472. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-datetime.frontend-component.specification.d.ts.map +1 -1
  473. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-duration.frontend-component.specification.d.ts.map +1 -1
  474. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-enum.frontend-component.specification.d.ts.map +1 -1
  475. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-audio.frontend-component.specification.d.ts.map +1 -1
  476. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.d.ts.map +1 -1
  477. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-gallery.frontend-component.specification.d.ts.map +1 -1
  478. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-image.frontend-component.specification.d.ts.map +1 -1
  479. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-video.frontend-component.specification.d.ts.map +1 -1
  480. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file.frontend-component.specification.d.ts.map +1 -1
  481. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-foreign-key.frontend-component.specification.d.ts.map +1 -1
  482. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-money.extra-props.d.ts.map +1 -1
  483. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-money.frontend-component.specification.d.ts.map +1 -1
  484. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.d.ts.map +1 -1
  485. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-phone.frontend-component.specification.d.ts.map +1 -1
  486. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-bigdecimal.frontend-component.specification.d.ts.map +1 -1
  487. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-date.frontend-component.specification.d.ts.map +1 -1
  488. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-datetime.frontend-component.specification.d.ts.map +1 -1
  489. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-money.frontend-component.specification.d.ts.map +1 -1
  490. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-number.frontend-component.specification.d.ts.map +1 -1
  491. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-time.frontend-component.specification.d.ts.map +1 -1
  492. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.d.ts.map +1 -1
  493. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-time.frontend-component.specification.d.ts.map +1 -1
  494. package/dist/esm/engine/frontend-components/data-display/notification-indicator.frontend-component.specification.d.ts.map +1 -1
  495. package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.d.ts.map +1 -1
  496. package/dist/esm/engine/frontend-components/feedback/danger-zone.frontend-component.specification.d.ts.map +1 -1
  497. package/dist/esm/engine/frontend-components/feedback/empty-state.frontend-component.specification.d.ts.map +1 -1
  498. package/dist/esm/engine/frontend-components/feedback/error-display.frontend-component.specification.d.ts.map +1 -1
  499. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.d.ts.map +1 -1
  500. package/dist/esm/engine/frontend-components/feedback/features/feature-lock-badge.frontend-component.specification.d.ts.map +1 -1
  501. package/dist/esm/engine/frontend-components/feedback/features/feature-unavailable-dialog.frontend-component.specification.d.ts.map +1 -1
  502. package/dist/esm/engine/frontend-components/feedback/features/feature-unavailable-prompt.frontend-component.specification.d.ts.map +1 -1
  503. package/dist/esm/engine/frontend-components/feedback/loading-overlay.frontend-component.specification.d.ts.map +1 -1
  504. package/dist/esm/engine/frontend-components/feedback/loading-spinner.frontend-component.specification.d.ts.map +1 -1
  505. package/dist/esm/engine/frontend-components/feedback/operations-confirm-critical.frontend-component.specification.d.ts.map +1 -1
  506. package/dist/esm/engine/frontend-components/feedback/progress.frontend-component.specification.d.ts.map +1 -1
  507. package/dist/esm/engine/frontend-components/feedback/skeleton.frontend-component.specification.d.ts.map +1 -1
  508. package/dist/esm/engine/frontend-components/feedback/toast.frontend-component.specification.d.ts.map +1 -1
  509. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-actor.frontend-component.specification.d.ts.map +1 -1
  510. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-agent-config.frontend-component.specification.d.ts.map +1 -1
  511. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.d.ts.map +1 -1
  512. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  513. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  514. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-artifact-browser.frontend-component.specification.d.ts.map +1 -1
  515. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.d.ts.map +1 -1
  516. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-plan.frontend-component.specification.d.ts.map +1 -1
  517. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-stream.frontend-component.specification.d.ts.map +1 -1
  518. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-execution.frontend-component.specification.d.ts.map +1 -1
  519. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.d.ts.map +1 -1
  520. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.d.ts.map +1 -1
  521. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-task-detail.frontend-component.specification.d.ts.map +1 -1
  522. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-task-memory.frontend-component.specification.d.ts.map +1 -1
  523. package/dist/esm/engine/frontend-components/form/_framework-layout-form-field-spec.factory.d.ts.map +1 -1
  524. package/dist/esm/engine/frontend-components/form/_low-level-preset-wrapper-spec.factory.d.ts.map +1 -1
  525. package/dist/esm/engine/frontend-components/form/autosave-indicator.frontend-component.specification.d.ts.map +1 -1
  526. package/dist/esm/engine/frontend-components/form/chromes/field-content.frontend-component.specification.d.ts.map +1 -1
  527. package/dist/esm/engine/frontend-components/form/chromes/field-description.frontend-component.specification.d.ts.map +1 -1
  528. package/dist/esm/engine/frontend-components/form/chromes/field-error.frontend-component.specification.d.ts.map +1 -1
  529. package/dist/esm/engine/frontend-components/form/chromes/field-label.frontend-component.specification.d.ts.map +1 -1
  530. package/dist/esm/engine/frontend-components/form/chromes/field-separator.frontend-component.specification.d.ts.map +1 -1
  531. package/dist/esm/engine/frontend-components/form/chromes/field-title.frontend-component.specification.d.ts.map +1 -1
  532. package/dist/esm/engine/frontend-components/form/chromes/field.frontend-component.specification.d.ts.map +1 -1
  533. package/dist/esm/engine/frontend-components/form/chromes/form-control.frontend-component.specification.d.ts.map +1 -1
  534. package/dist/esm/engine/frontend-components/form/chromes/form-description.frontend-component.specification.d.ts.map +1 -1
  535. package/dist/esm/engine/frontend-components/form/chromes/form-field.frontend-component.specification.d.ts.map +1 -1
  536. package/dist/esm/engine/frontend-components/form/chromes/form-item.frontend-component.specification.d.ts.map +1 -1
  537. package/dist/esm/engine/frontend-components/form/chromes/form-label.frontend-component.specification.d.ts.map +1 -1
  538. package/dist/esm/engine/frontend-components/form/chromes/form-message.frontend-component.specification.d.ts.map +1 -1
  539. package/dist/esm/engine/frontend-components/form/chromes/form-root.frontend-component.specification.d.ts.map +1 -1
  540. package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.d.ts.map +1 -1
  541. package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.d.ts.map +1 -1
  542. package/dist/esm/engine/frontend-components/form/controls/boolean/checkbox.frontend-component.specification.d.ts.map +1 -1
  543. package/dist/esm/engine/frontend-components/form/controls/boolean/switch.frontend-component.specification.d.ts.map +1 -1
  544. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle-group-boolean.frontend-component.specification.d.ts.map +1 -1
  545. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.d.ts.map +1 -1
  546. package/dist/esm/engine/frontend-components/form/controls/date-time/calendar-day-button.frontend-component.specification.d.ts.map +1 -1
  547. package/dist/esm/engine/frontend-components/form/controls/date-time/calendar.frontend-component.specification.d.ts.map +1 -1
  548. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.d.ts.map +1 -1
  549. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.d.ts.map +1 -1
  550. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.d.ts.map +1 -1
  551. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.d.ts.map +1 -1
  552. package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.d.ts.map +1 -1
  553. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.d.ts.map +1 -1
  554. package/dist/esm/engine/frontend-components/form/controls/enum/radio-group.frontend-component.specification.d.ts.map +1 -1
  555. package/dist/esm/engine/frontend-components/form/controls/enum/radio-item.frontend-component.specification.d.ts.map +1 -1
  556. package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.d.ts.map +1 -1
  557. package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.d.ts.map +1 -1
  558. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.d.ts.map +1 -1
  559. package/dist/esm/engine/frontend-components/form/controls/file/file-upload.frontend-component.specification.d.ts.map +1 -1
  560. package/dist/esm/engine/frontend-components/form/controls/file/image-crop.frontend-component.specification.d.ts.map +1 -1
  561. package/dist/esm/engine/frontend-components/form/controls/input-group-addon.frontend-component.specification.d.ts.map +1 -1
  562. package/dist/esm/engine/frontend-components/form/controls/input-group-button.frontend-component.specification.d.ts.map +1 -1
  563. package/dist/esm/engine/frontend-components/form/controls/input-group-input.frontend-component.specification.d.ts.map +1 -1
  564. package/dist/esm/engine/frontend-components/form/controls/input-group-text.frontend-component.specification.d.ts.map +1 -1
  565. package/dist/esm/engine/frontend-components/form/controls/input-group-textarea.frontend-component.specification.d.ts.map +1 -1
  566. package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.d.ts.map +1 -1
  567. package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.d.ts.map +1 -1
  568. package/dist/esm/engine/frontend-components/form/controls/number/range-slider.frontend-component.specification.d.ts.map +1 -1
  569. package/dist/esm/engine/frontend-components/form/controls/number/slider.frontend-component.specification.d.ts.map +1 -1
  570. package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.d.ts.map +1 -1
  571. package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.d.ts.map +1 -1
  572. package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.d.ts.map +1 -1
  573. package/dist/esm/engine/frontend-components/form/controls/string/password-input.frontend-component.specification.d.ts.map +1 -1
  574. package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.d.ts.map +1 -1
  575. package/dist/esm/engine/frontend-components/form/fields/form-field-bigdecimal.frontend-component.specification.d.ts.map +1 -1
  576. package/dist/esm/engine/frontend-components/form/fields/form-field-boolean.frontend-component.specification.d.ts.map +1 -1
  577. package/dist/esm/engine/frontend-components/form/fields/form-field-code.frontend-component.specification.d.ts.map +1 -1
  578. package/dist/esm/engine/frontend-components/form/fields/form-field-date.frontend-component.specification.d.ts.map +1 -1
  579. package/dist/esm/engine/frontend-components/form/fields/form-field-datetime.frontend-component.specification.d.ts.map +1 -1
  580. package/dist/esm/engine/frontend-components/form/fields/form-field-duration.frontend-component.specification.d.ts.map +1 -1
  581. package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.d.ts.map +1 -1
  582. package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.d.ts.map +1 -1
  583. package/dist/esm/engine/frontend-components/form/fields/form-field-money.frontend-component.specification.d.ts.map +1 -1
  584. package/dist/esm/engine/frontend-components/form/fields/form-field-number.frontend-component.specification.d.ts.map +1 -1
  585. package/dist/esm/engine/frontend-components/form/fields/form-field-phone.frontend-component.specification.d.ts.map +1 -1
  586. package/dist/esm/engine/frontend-components/form/fields/form-field-range-bigdecimal.frontend-component.specification.d.ts.map +1 -1
  587. package/dist/esm/engine/frontend-components/form/fields/form-field-range-date.frontend-component.specification.d.ts.map +1 -1
  588. package/dist/esm/engine/frontend-components/form/fields/form-field-range-datetime.frontend-component.specification.d.ts.map +1 -1
  589. package/dist/esm/engine/frontend-components/form/fields/form-field-range-money.frontend-component.specification.d.ts.map +1 -1
  590. package/dist/esm/engine/frontend-components/form/fields/form-field-range-number.frontend-component.specification.d.ts.map +1 -1
  591. package/dist/esm/engine/frontend-components/form/fields/form-field-range-time.frontend-component.specification.d.ts.map +1 -1
  592. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.d.ts.map +1 -1
  593. package/dist/esm/engine/frontend-components/form/fields/form-field-time.frontend-component.specification.d.ts.map +1 -1
  594. package/dist/esm/engine/frontend-components/form/form-field-foreign-key.frontend-component.specification.d.ts.map +1 -1
  595. package/dist/esm/engine/frontend-components/guidance/guidance-announcement.frontend-component.specification.d.ts.map +1 -1
  596. package/dist/esm/engine/frontend-components/guidance/guidance-badge.frontend-component.specification.d.ts.map +1 -1
  597. package/dist/esm/engine/frontend-components/guidance/guidance-banner.frontend-component.specification.d.ts.map +1 -1
  598. package/dist/esm/engine/frontend-components/guidance/guidance-card.frontend-component.specification.d.ts.map +1 -1
  599. package/dist/esm/engine/frontend-components/guidance/guidance-checklist-item.frontend-component.specification.d.ts.map +1 -1
  600. package/dist/esm/engine/frontend-components/guidance/guidance-checklist.frontend-component.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/frontend-components/guidance/guidance-modal.frontend-component.specification.d.ts.map +1 -1
  602. package/dist/esm/engine/frontend-components/guidance/guidance-onboarding-view.frontend-component.specification.d.ts.map +1 -1
  603. package/dist/esm/engine/frontend-components/guidance/guidance-survey.frontend-component.specification.d.ts.map +1 -1
  604. package/dist/esm/engine/frontend-components/guidance/guidance-tooltip.frontend-component.specification.d.ts.map +1 -1
  605. package/dist/esm/engine/frontend-components/guidance/guidance-tour.frontend-component.specification.d.ts.map +1 -1
  606. package/dist/esm/engine/frontend-components/high-level-views/chart-echarts.frontend-component.specification.d.ts.map +1 -1
  607. package/dist/esm/engine/frontend-components/high-level-views/chart-widget.frontend-component.specification.d.ts.map +1 -1
  608. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart.frontend-component.specification.d.ts.map +1 -1
  609. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-composite.frontend-component.specification.d.ts.map +1 -1
  610. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-execution.frontend-component.specification.d.ts.map +1 -1
  611. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
  612. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-full-custom.frontend-component.specification.d.ts.map +1 -1
  613. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-not-found.frontend-component.specification.d.ts.map +1 -1
  614. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  615. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  616. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts.map +1 -1
  617. package/dist/esm/engine/frontend-components/layout/aspect-ratio.frontend-component.specification.d.ts.map +1 -1
  618. package/dist/esm/engine/frontend-components/layout/carousel.frontend-component.specification.d.ts.map +1 -1
  619. package/dist/esm/engine/frontend-components/layout/divider.frontend-component.specification.d.ts.map +1 -1
  620. package/dist/esm/engine/frontend-components/layout/resizable-panel-group.frontend-component.specification.d.ts.map +1 -1
  621. package/dist/esm/engine/frontend-components/layout/scroll-area.frontend-component.specification.d.ts.map +1 -1
  622. package/dist/esm/engine/frontend-components/layout/separator.frontend-component.specification.d.ts.map +1 -1
  623. package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-container.frontend-component.specification.d.ts.map +1 -1
  624. package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-group.frontend-component.specification.d.ts.map +1 -1
  625. package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-legend.frontend-component.specification.d.ts.map +1 -1
  626. package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section.frontend-component.specification.d.ts.map +1 -1
  627. package/dist/esm/engine/frontend-components/layout-internals/low-level-overlay-container.frontend-component.specification.d.ts.map +1 -1
  628. package/dist/esm/engine/frontend-components/navigation/app-level/activity-bar.frontend-component.specification.d.ts.map +1 -1
  629. package/dist/esm/engine/frontend-components/navigation/app-level/command-menu.frontend-component.specification.d.ts.map +1 -1
  630. package/dist/esm/engine/frontend-components/navigation/app-level/control-panel.frontend-component.specification.d.ts.map +1 -1
  631. package/dist/esm/engine/frontend-components/navigation/app-level/menubar.frontend-component.specification.d.ts.map +1 -1
  632. package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.d.ts.map +1 -1
  633. package/dist/esm/engine/frontend-components/navigation/app-level/notification-center.frontend-component.specification.d.ts.map +1 -1
  634. package/dist/esm/engine/frontend-components/navigation/app-level/quick-action-button.frontend-component.specification.d.ts.map +1 -1
  635. package/dist/esm/engine/frontend-components/navigation/app-level/quick-switcher.frontend-component.specification.d.ts.map +1 -1
  636. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.d.ts.map +1 -1
  637. package/dist/esm/engine/frontend-components/navigation/app-level/status-bar.frontend-component.specification.d.ts.map +1 -1
  638. package/dist/esm/engine/frontend-components/navigation/app-level/toolbar.frontend-component.specification.d.ts.map +1 -1
  639. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
  640. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.d.ts.map +1 -1
  641. package/dist/esm/engine/frontend-components/navigation/breadcrumb.frontend-component.specification.d.ts.map +1 -1
  642. package/dist/esm/engine/frontend-components/navigation/command.frontend-component.specification.d.ts.map +1 -1
  643. package/dist/esm/engine/frontend-components/navigation/menu-bar.frontend-component.specification.d.ts.map +1 -1
  644. package/dist/esm/engine/frontend-components/navigation/navbar.frontend-component.specification.d.ts.map +1 -1
  645. package/dist/esm/engine/frontend-components/navigation/sidebar.frontend-component.specification.d.ts.map +1 -1
  646. package/dist/esm/engine/frontend-components/overlays/containers/alert-dialog.frontend-component.specification.d.ts.map +1 -1
  647. package/dist/esm/engine/frontend-components/overlays/containers/alert.frontend-component.specification.d.ts.map +1 -1
  648. package/dist/esm/engine/frontend-components/overlays/containers/dialog.frontend-component.specification.d.ts.map +1 -1
  649. package/dist/esm/engine/frontend-components/overlays/containers/drawer.frontend-component.specification.d.ts.map +1 -1
  650. package/dist/esm/engine/frontend-components/overlays/containers/sheet.frontend-component.specification.d.ts.map +1 -1
  651. package/dist/esm/engine/frontend-components/overlays/floating/context-menu.frontend-component.specification.d.ts.map +1 -1
  652. package/dist/esm/engine/frontend-components/overlays/floating/dropdown-menu.frontend-component.specification.d.ts.map +1 -1
  653. package/dist/esm/engine/frontend-components/overlays/floating/hover-card.frontend-component.specification.d.ts.map +1 -1
  654. package/dist/esm/engine/frontend-components/overlays/floating/popover.frontend-component.specification.d.ts.map +1 -1
  655. package/dist/esm/engine/frontend-components/overlays/floating/tooltip.frontend-component.specification.d.ts.map +1 -1
  656. package/dist/esm/engine/frontend-components/progression/progression-achievement-badge.frontend-component.specification.d.ts.map +1 -1
  657. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts.map +1 -1
  658. package/dist/esm/engine/frontend-components/resources/_framework-layout-resource-layout-spec.factory.d.ts.map +1 -1
  659. package/dist/esm/engine/frontend-components/resources/resource-layout-action.frontend-component.specification.d.ts.map +1 -1
  660. package/dist/esm/engine/frontend-components/resources/resource-layout-breadcrumb.frontend-component.specification.d.ts.map +1 -1
  661. package/dist/esm/engine/frontend-components/resources/resource-layout-container-dialogs.frontend-component.specification.d.ts.map +1 -1
  662. package/dist/esm/engine/frontend-components/resources/resource-layout-container-nested.frontend-component.specification.d.ts.map +1 -1
  663. package/dist/esm/engine/frontend-components/resources/resource-layout-create.frontend-component.specification.d.ts.map +1 -1
  664. package/dist/esm/engine/frontend-components/resources/resource-layout-danger-zone.frontend-component.specification.d.ts.map +1 -1
  665. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.d.ts.map +1 -1
  666. package/dist/esm/engine/frontend-components/resources/resource-layout-filters.frontend-component.specification.d.ts.map +1 -1
  667. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.d.ts.map +1 -1
  668. package/dist/esm/engine/frontend-components/resources/resource-layout-list-table.frontend-component.preset-specification.d.ts.map +1 -1
  669. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.d.ts.map +1 -1
  670. package/dist/esm/engine/frontend-components/resources/resource-layout-operation-bulk.frontend-component.specification.d.ts.map +1 -1
  671. package/dist/esm/engine/frontend-components/resources/resource-layout-operations-items.frontend-component.specification.d.ts.map +1 -1
  672. package/dist/esm/engine/frontend-components/resources/resource-layout-pagination.frontend-component.specification.d.ts.map +1 -1
  673. package/dist/esm/engine/frontend-components/resources/resource-layout-read-expandable.frontend-component.preset-specification.d.ts.map +1 -1
  674. package/dist/esm/engine/frontend-components/resources/resource-layout-read-summary-table-row.frontend-component.preset-specification.d.ts.map +1 -1
  675. package/dist/esm/engine/frontend-components/resources/resource-layout-read-summary.frontend-component.specification.d.ts.map +1 -1
  676. package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.d.ts.map +1 -1
  677. package/dist/esm/engine/frontend-components/resources/resource-layout-search-table.frontend-component.preset-specification.d.ts.map +1 -1
  678. package/dist/esm/engine/frontend-components/resources/resource-layout-search.frontend-component.specification.d.ts.map +1 -1
  679. package/dist/esm/engine/frontend-components/resources/resource-layout-update.frontend-component.specification.d.ts.map +1 -1
  680. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.d.ts.map +1 -1
  681. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit-search.frontend-component.preset-specification.d.ts.map +1 -1
  682. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.d.ts.map +1 -1
  683. package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.d.ts.map +1 -1
  684. package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.d.ts.map +1 -1
  685. package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.d.ts.map +1 -1
  686. package/dist/esm/engine/frontend-components/sections/pagination.frontend-component.specification.d.ts.map +1 -1
  687. package/dist/esm/engine/frontend-components/sections/stacked-layout.frontend-component.specification.d.ts.map +1 -1
  688. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
  689. package/dist/esm/engine/frontend-components/sections/table.frontend-component.specification.d.ts.map +1 -1
  690. package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.d.ts.map +1 -1
  691. package/dist/esm/engine/frontend-components/typography/code.frontend-component.specification.d.ts.map +1 -1
  692. package/dist/esm/engine/frontend-components/typography/heading.frontend-component.specification.d.ts.map +1 -1
  693. package/dist/esm/engine/frontend-components/typography/label.frontend-component.specification.d.ts.map +1 -1
  694. package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.d.ts.map +1 -1
  695. package/dist/esm/engine/frontend-components/typography/strong.frontend-component.specification.d.ts.map +1 -1
  696. package/dist/esm/engine/frontend-components/typography/subheading.frontend-component.specification.d.ts.map +1 -1
  697. package/dist/esm/engine/frontend-components/typography/text-link.frontend-component.specification.d.ts.map +1 -1
  698. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
  699. package/dist/esm/engine/full-custom-views/index.d.ts.map +1 -1
  700. package/dist/esm/engine/guidance/index.d.ts.map +1 -1
  701. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
  702. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  703. package/dist/esm/engine/guidance/resources/index.d.ts.map +1 -1
  704. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  705. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  706. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  707. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  708. package/dist/esm/engine/index.d.ts.map +1 -1
  709. package/dist/esm/engine/index.js.map +1 -1
  710. package/dist/esm/engine/infrastructure/index.d.ts.map +1 -1
  711. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  712. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  713. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  714. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  715. package/dist/esm/engine/infrastructure/resources/index.d.ts.map +1 -1
  716. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  717. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  718. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
  719. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  720. package/dist/esm/engine/notifications/index.d.ts.map +1 -1
  721. package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
  722. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  723. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  724. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  725. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  726. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  727. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  728. package/dist/esm/engine/notifications/system-emails/authentication.system-emails.specification.d.ts.map +1 -1
  729. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  730. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
  731. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.d.ts.map +1 -1
  732. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +1 -1
  733. package/dist/esm/engine/organizations/index.d.ts.map +1 -1
  734. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  735. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  736. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  737. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
  738. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  739. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
  740. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  741. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  742. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  743. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  744. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  745. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  746. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  747. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  748. package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -1
  749. package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -1
  750. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -1
  751. package/dist/esm/engine/providers/anthropic.provider.specification.js +10 -1
  752. package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -1
  753. package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -1
  754. package/dist/esm/engine/providers/apple.provider.specification.js +10 -1
  755. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  756. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -1
  757. package/dist/esm/engine/providers/email-preview.provider.specification.js +9 -1
  758. package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -1
  759. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
  760. package/dist/esm/engine/providers/github.provider.specification.js +10 -1
  761. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  762. package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -1
  763. package/dist/esm/engine/providers/google.provider.specification.js +10 -1
  764. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  765. package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -1
  766. package/dist/esm/engine/providers/grok.provider.specification.js +10 -1
  767. package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -1
  768. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  769. package/dist/esm/engine/providers/index.js.map +1 -1
  770. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  771. package/dist/esm/engine/providers/microsoft.provider.specification.js +10 -1
  772. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  773. package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -1
  774. package/dist/esm/engine/providers/mistral.provider.specification.js +10 -1
  775. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
  776. package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -1
  777. package/dist/esm/engine/providers/openai.provider.specification.js +10 -1
  778. package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -1
  779. package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -1
  780. package/dist/esm/engine/providers/opencode.provider.specification.js +9 -1
  781. package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -1
  782. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -1
  783. package/dist/esm/engine/providers/perplexity.provider.specification.js +10 -1
  784. package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -1
  785. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  786. package/dist/esm/engine/providers/resend.provider.specification.js +10 -1
  787. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  788. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  789. package/dist/esm/engine/providers/stripe.provider.specification.js +10 -1
  790. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  791. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
  792. package/dist/esm/engine/providers/twilio.provider.specification.js +10 -1
  793. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
  794. package/dist/esm/engine/roles/_engine-role-shared.d.ts.map +1 -1
  795. package/dist/esm/engine/roles/app-admin-billing-manager.role.specification.d.ts.map +1 -1
  796. package/dist/esm/engine/roles/app-admin-marketing-editor.role.specification.d.ts.map +1 -1
  797. package/dist/esm/engine/roles/app-admin-super-admin.role.specification.d.ts.map +1 -1
  798. package/dist/esm/engine/roles/app-admin-viewer.role.specification.d.ts.map +1 -1
  799. package/dist/esm/engine/roles/app-anonymous.role.specification.d.ts.map +1 -1
  800. package/dist/esm/engine/roles/app-public.role.specification.d.ts.map +1 -1
  801. package/dist/esm/engine/roles/app-user.role.specification.d.ts.map +1 -1
  802. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  803. package/dist/esm/engine/roles/org-admin.role.specification.d.ts.map +1 -1
  804. package/dist/esm/engine/roles/org-guest.role.specification.d.ts.map +1 -1
  805. package/dist/esm/engine/roles/org-manager.role.specification.d.ts.map +1 -1
  806. package/dist/esm/engine/roles/org-member.role.specification.d.ts.map +1 -1
  807. package/dist/esm/engine/roles/org-owner.role.specification.d.ts.map +1 -1
  808. package/dist/esm/engine/users/index.d.ts.map +1 -1
  809. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  810. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  811. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
  812. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  813. package/dist/esm/engine/users/resources/index.d.ts.map +1 -1
  814. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
  815. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
  816. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  817. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  818. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  819. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  820. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  821. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  822. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
  823. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  824. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  825. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  826. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
  827. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  828. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  829. package/dist/esm/engine/users/resources/user-self.resource.specification.js +1 -1
  830. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  831. package/dist/esm/engine/users/resources/users-api-reference.examples.d.ts.map +1 -1
  832. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  833. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  834. package/dist/esm/index.d.ts.map +1 -1
  835. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  836. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  837. package/dist/esm/technical-documentation/technical-documentation-api-reference-targets.schemas.d.ts.map +1 -1
  838. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.d.ts.map +1 -1
  839. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.d.ts.map +1 -1
  840. package/dist/esm/technical-documentation/technical-documentation-common.schemas.d.ts.map +1 -1
  841. package/dist/esm/technical-documentation/technical-documentation-environment-identity.schemas.d.ts.map +1 -1
  842. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.d.ts.map +1 -1
  843. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.d.ts.map +1 -1
  844. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.d.ts.map +1 -1
  845. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
  846. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
  847. package/dist/esm/technical-documentation.exports.d.ts.map +1 -1
  848. package/dist/tsconfig.build.tsbuildinfo +1 -1
  849. package/package.json +8 -8
  850. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +0 -0
  851. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +0 -0
  852. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +0 -0
  853. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +0 -0
  854. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -0
  855. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -0
  856. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -0
  857. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -0
@@ -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,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,8BAA8B,GAC/B,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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AE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,2DAA2D,EAAE,EAAE,EAAE;gBAChS,SAAS,EAAE,EAAE,OAAO,EAAE,4FAA4F,EAAE,SAAS,EAAE,uDAAuD,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,+EAA+E,EAAE,EAAE,EAAE;aAC/V;SACF;QACD,KAAK,EAAE;YACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,iGAAiG,EAAE,SAAS,EAAE,sEAAsE,EAAE;YAC5M,CAAC,qBAAqB,CAAC,cAAc,CAAC,EAAE,EAAE,OAAO,EAAE,2HAA2H,EAAE,SAAS,EAAE,8FAA8F,EAAE;YAC3R,CAAC,qBAAqB,CAAC,YAAY,CAAC,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 ],\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,EACrB,mBAAmB,EACnB,8BAA8B,GAC/B,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,wBAAwB,CAAC,EAAE,oBAAoB,CAAC,aAAa;CAChF,CAAC;AAEF,SAAS,SAAS,CAAC,EAAS,EAAE,MAAe;IAC3C,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A2D,EAAE,EAAE,EAAE;gBAChS,SAAS,EAAE,EAAE,OAAO,EAAE,4FAA4F,EAAE,SAAS,EAAE,uDAAuD,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,+EAA+E,EAAE,EAAE,EAAE;aAC/V;SACF;QACD,KAAK,EAAE;YACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,iGAAiG,EAAE,SAAS,EAAE,sEAAsE,EAAE;YAC5M,CAAC,qBAAqB,CAAC,cAAc,CAAC,EAAE,EAAE,OAAO,EAAE,2HAA2H,EAAE,SAAS,EAAE,8FAA8F,EAAE;YAC3R,CAAC,qBAAqB,CAAC,YAAY,CAAC,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 ],\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 +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;AAocrC,eAAO,MAAM,gDAAgD;;;;;;;;;;;;;;;iCAG5D,CAAC;AACF,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;iCAG3D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"siem-delivery-dlq.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/siem-delivery-dlq.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,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAA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AS,CAAC,EAAE,EAAE,OAAO,EAAE,2LAA2L,EAAE,SAAS,EAAE,oDAAoD,EAAE;YACjT,CAAC,0BAA0B,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,EAAE,+LAA+L,EAAE,SAAS,EAAE,yFAAyF,EAAE;SAC3V;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,gDAAgD,GAAG,KAAK,CACnE,gBAAgB,CAAC,8BAA8B,EAC/C,gCAAgC,CACjC,CAAC;AACF,MAAM,CAAC,MAAM,+CAA+C,GAAG,KAAK,CAClE,gBAAgB,CAAC,6BAA6B,EAC9C,+BAA+B,CAChC,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 {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ErrorCustomMessageReference,\n ErrorSeverity,\n ErrorType,\n ResourcePrimaryScope,\n SiemDeliveryDlq_Operations,\n SiemDeliveryDlqBaseSchema,\n SiemDeliveryDlqStatus,\n siemDeliveryDlqPolymorphicFactories,\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_SIEM_DELIVERY_DLQ | CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ;\ntype RMember = 'ORGANIZATION_SIEM_DELIVERY_DLQ' | 'APPLICATION_SIEM_DELIVERY_DLQ';\n\ntype Cfg = ReturnType<(typeof siemDeliveryDlqPolymorphicFactories)[CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ]>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof SiemDeliveryDlqBaseSchema;\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}\n\nconst scope: Record<RType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ]: ResourcePrimaryScope.APPLICATION,\n};\n\nfunction siemDeliveryDlqPage(data: readonly unknown[]) {\n return {\n data,\n pagination: {\n page: 1,\n limit: 20,\n total: data.length,\n totalPages: data.length === 0 ? 0 : 1,\n },\n };\n}\n\nfunction createSiemDeliveryDlqReferenceExamples(resourceType: RType) {\n const isApplication = resourceType === CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ;\n const scopeId = isApplication ? 'application_01HX2EXAMPLE' : 'organization_01HX2EXAMPLE';\n const scopeField = isApplication ? 'applicationId' : 'organizationId';\n const relationshipField = isApplication ? 'application' : 'organization';\n const scopeIdentity = { [scopeField]: scopeId };\n const pendingEntry = {\n _id: 'siemdlq_pending_01HX2EXAMPLE',\n eventId: 'audit_evt_login_failed_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authentication.login.failed',\n occurredAt: '2026-08-18T13:34:58.000Z',\n actor: { type: 'user', id: 'user_01HX2EXAMPLE' },\n outcome: 'failure',\n correlationId: 'corr_01HX2EXAMPLE',\n },\n failureReason: 'The SIEM endpoint timed out after 10 seconds.',\n failureCount: 2,\n lastAttemptAt: '2026-08-18T13:35:10.000Z',\n nextRetryAt: '2026-08-18T13:40:10.000Z',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n createdAt: '2026-08-18T13:30:00.000Z',\n updatedAt: '2026-08-18T13:35:10.000Z',\n ...scopeIdentity,\n };\n const exhaustedEntry = {\n _id: 'siemdlq_exhausted_01HX2EXAMPLE',\n eventId: 'audit_evt_access_denied_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authorization.access.denied',\n occurredAt: '2026-08-18T12:05:00.000Z',\n actor: { type: 'service', id: 'integration_01HX2EXAMPLE' },\n outcome: 'denied',\n correlationId: 'corr_02HX2EXAMPLE',\n },\n failureReason: 'The SIEM endpoint returned HTTP 503 for every configured retry.',\n failureCount: 4,\n lastAttemptAt: '2026-08-18T12:20:00.000Z',\n status: SiemDeliveryDlqStatus.EXHAUSTED,\n createdAt: '2026-08-18T12:05:02.000Z',\n updatedAt: '2026-08-18T12:20:00.000Z',\n ...scopeIdentity,\n };\n const deliveredEntry = {\n _id: 'siemdlq_delivered_01HX2EXAMPLE',\n eventId: 'audit_evt_role_changed_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authorization.role.changed',\n occurredAt: '2026-08-18T11:15:00.000Z',\n actor: { type: 'user', id: 'admin_01HX2EXAMPLE' },\n outcome: 'success',\n correlationId: 'corr_03HX2EXAMPLE',\n },\n failureReason: 'The first delivery failed, but a later attempt succeeded.',\n failureCount: 1,\n lastAttemptAt: '2026-08-18T11:20:00.000Z',\n status: SiemDeliveryDlqStatus.DELIVERED,\n createdAt: '2026-08-18T11:15:02.000Z',\n updatedAt: '2026-08-18T11:20:00.000Z',\n ...scopeIdentity,\n };\n const listRequest = {\n ...scopeIdentity,\n createdAt: {\n startDate: '2026-08-18T00:00:00.000Z',\n endDate: '2026-08-18T23:59:59.999Z',\n },\n page: 1,\n limit: 20,\n sort: 'createdAt:desc',\n };\n const visibleEntries = isApplication ? [] : [pendingEntry, exhaustedEntry, deliveredEntry];\n const contextEntries = visibleEntries.map((entry) => ({\n ...entry,\n [relationshipField]: { _id: scopeId },\n }));\n const summaryEntries = visibleEntries.map((entry) => ({\n _id: entry._id,\n failureReason: entry.failureReason,\n status: entry.status,\n createdAt: entry.createdAt,\n }));\n\n return {\n isApplication,\n scopeIdentity,\n pendingEntry,\n listRequest,\n listPage: siemDeliveryDlqPage(visibleEntries),\n contextPage: siemDeliveryDlqPage(contextEntries),\n summaryPage: siemDeliveryDlqPage(summaryEntries),\n };\n}\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const reference = createSiemDeliveryDlqReferenceExamples(rt);\n return resourceSpecification<Custom, Core, Main>(\n siemDeliveryDlqPolymorphicFactories[rt],\n SiemDeliveryDlqBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SIEM delivery dead-letter entry: one record per failed (or re-queued) webhook delivery attempt, retaining payload for retry, inspection, and purge.',\n businessRole: 'Operator-facing queue for data that could not be pushed to a customer’s SIEM endpoint in time, with a clear failure reason and retry state.',\n lifecycleRole: 'Progresses from pending retry to exhausted or eventually delivered; custom ops requeue or clear entries in bulk.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SiemDeliveryDlqBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'siemDeliveryDlqPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY },\n identifierField: 'collectionKey',\n identifierValue: rt,\n },\n resourceType: {\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n memberName: member,\n },\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: 'SiemDeliveryDlq_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 '`eventPayload` is `z.unknown()` in the schema — the companion may describe it generically; this spec file omits a typed field spec until a dedicated `unknown`/`json` *Spec is standardized.',\n ],\n },\n fields: {\n status: schemaShape.status.enumSpec({\n meaning: 'DLQ lifecycle: awaiting retry, exhausted, or already delivered to SIEM on a later attempt.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'SiemDeliveryDlqStatus', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.CONST_OBJECT },\n values: {\n [SiemDeliveryDlqStatus.PENDING_RETRY]: { meaning: 'May be retried automatically or by an operator while policy allows.' },\n [SiemDeliveryDlqStatus.EXHAUSTED]: { meaning: 'Retries are exhausted; manual inspection and purge or policy-driven cleanup apply.' },\n [SiemDeliveryDlqStatus.DELIVERED]: { meaning: 'A later attempt succeeded; record may be retained for an audit window.' },\n },\n }),\n failureReason: schemaShape.failureReason.stringSpec({\n meaning: 'Default list label in presets: human- or system-authored reason for the last failure path.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n eventId: schemaShape.eventId.stringSpec({ meaning: 'Correlation id to the source audit/transport event behind this failed delivery.' }),\n failureCount: schemaShape.failureCount.numberSpec({ meaning: 'How many times delivery failed for this chain.' }),\n lastAttemptAt: schemaShape.lastAttemptAt.dateSpec({ meaning: 'Last delivery attempt from Wildo to the customer webhook.' }),\n nextRetryAt: schemaShape.nextRetryAt.dateSpec({ meaning: 'When the next automatic retry is scheduled, if any.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Repository read of a single DLQ row (internal and admin diagnostics, not a broad end-user read).',\n outcome: 'Inspect error metadata and the opaque payload for support.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The DLQ record was found and its failure metadata plus opaque payload snapshot are returned for diagnostics.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/admin role required to inspect a dead-letter row (the payload may contain customer PII).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied id in the caller’s scope (already purged or re-delivered and removed).' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: reference.isApplication\n ? 'List application-scoped SIEM delivery failures. This framework version has no application-scoped SIEM event producer, so the queue is expected to remain empty.'\n : 'List organization SIEM delivery failures for an incident window, filtered by retry status and ordered for investigation.',\n outcome: reference.isApplication\n ? 'A paginated empty queue confirms that no application-scoped SIEM delivery stream is active.'\n : 'Administrators receive the failed event envelope, failure reason, attempt history and current retry state for each delivery.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of dead-letter records for the scope, ordered for the queue browser.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/admin role that gates the SIEM dead-letter queue for this scope.' },\n ],\n idempotent: true,\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM queue is empty'\n : 'Investigate current SIEM delivery states',\n request: reference.listRequest,\n response: reference.listPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM context queue is empty'\n : 'Investigate SIEM failures with organization context',\n request: reference.listRequest,\n response: reference.contextPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM summary queue is empty'\n : 'Review compact SIEM failure summaries',\n request: reference.listRequest,\n response: reference.summaryPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Internal append of DLQ rows on delivery failure (REPOSITORY_ONLY in the factory).',\n outcome: 'A new retryable or terminal document.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A dead-letter record was appended for a failed SIEM delivery and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { 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' },\n { 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.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Append a dead-letter row for a failed SIEM delivery',\n request: {\n eventId: 'evt_01HX2…',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n failureReason: 'Connection timed out posting to the customer webhook.',\n failureCount: 1,\n },\n response: {\n _id: 'siemdlq_01HX2…',\n eventId: 'evt_01HX2…',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n failureReason: 'Connection timed out posting to the customer webhook.',\n failureCount: 1,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Remove one row after a successful re-delivery or explicit row-level purge; REPOSITORY_ONLY in the factory for safety.',\n outcome: 'Entry removed from the DLQ collection; separate audit may still cover the original event stream.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The dead-letter record was removed from the queue; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to drop a dead-letter row.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied id (already removed by a prior purge or re-delivery).' },\n ],\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Bulk twin of `DELETE` — the repository write path behind `PURGE_ALL` (whole-scope clear) and the delete-on-requeue tail of `RETRY_SINGLE`/`RETRY_ALL`: one round trip drops every matched row.',\n outcome: 'Purge and retry-cleanup scale with a single bulk delete instead of N per-row deletes; DLQ rows are inert (no worker owns them, no retry sweep touches them) so any status is safe to drop.',\n whenToUse: 'Repository-only — never a public HTTP surface. Operators clear or drain via the `PURGE_ALL` / `RETRY_*` custom operations, which own request validation and the summary response.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The matched records were bulk-deleted; the invoking custom operation reports the count in its own summary response.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts the repository-only bulk delete directly; UI/API flows must use `PURGE_ALL` / `RETRY_*`.' },\n ],\n idempotent: true,\n },\n [SiemDeliveryDlq_Operations.RETRY_SINGLE]: {\n operationId: SiemDeliveryDlq_Operations.RETRY_SINGLE,\n purpose: reference.isApplication\n ? 'Request a retry for one application-scoped queue entry by `entryId`; this version normally has no such entries because the application SIEM producer is unavailable.'\n : 'Request a new delivery attempt for one organization queue entry identified by `entryId` in the request body.',\n outcome: 'The response acknowledges the selected queue entry. If the new delivery also fails, its failure is visible in the queue again.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The targeted dead-letter entry was re-queued for delivery; a `{ message, entryId }` acknowledgement is returned (not the DLQ record).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to replay SIEM deliveries.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied `entryId` in the caller’s scope — it was already cleared or successfully re-delivered.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The entry is already `DELIVERED` (a later attempt succeeded), so there is nothing to retry. `PENDING_RETRY` and `EXHAUSTED` entries are both retryable.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The scope has no SIEM webhook URL configured, so there is no destination to re-deliver to; configure SIEM export before retrying.' },\n ],\n idempotent: false,\n examples: reference.isApplication\n ? [{\n title: 'Retry an unavailable application-scoped queue entry',\n request: { ...reference.scopeIdentity, entryId: 'siemdlq_missing_01HX2EXAMPLE' },\n response: {\n error: {\n type: ErrorType.NOT_FOUND,\n severity: ErrorSeverity.LOW,\n message: 'Requested resource not found',\n customMessage: 'The SIEM delivery queue entry could not be found.',\n customMessageReference: ErrorCustomMessageReference.NOT_FOUND,\n timestamp: '2026-08-18T13:45:00.000Z',\n },\n },\n forStatus: HttpResponseStatusCode.NOT_FOUND_404,\n }]\n : [{\n title: 'Retry one failed organization SIEM delivery',\n request: { ...reference.scopeIdentity, entryId: reference.pendingEntry._id },\n response: {\n message: 'SIEM DLQ entry re-queued for delivery.',\n entryId: reference.pendingEntry._id,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [SiemDeliveryDlq_Operations.RETRY_ALL]: {\n operationId: SiemDeliveryDlq_Operations.RETRY_ALL,\n purpose: 'Retry every pending or exhausted SIEM delivery entry in the current scope.',\n outcome: 'The response reports how many entries were accepted for another attempt and how many could not be retried.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'Eligible dead-letter entries in the scope were re-queued and removed; a `{ retriedCount, skippedCount, message }` summary is returned (not the records). When SIEM export has no webhook URL configured, all entries are reported as skipped.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to trigger a scope-wide SIEM replay.' },\n ],\n idempotent: false,\n rateLimitNote: 'Bulk replay fans out one outbound delivery attempt per eligible row (no artificial batch cap — the DLQ is a bounded failure queue); the SIEM delivery worker’s own per-scope circuit breaker and retry/backoff protect the customer endpoint.',\n examples: [{\n title: reference.isApplication\n ? 'Retry the empty application SIEM queue'\n : 'Retry all eligible organization SIEM deliveries',\n request: reference.scopeIdentity,\n response: reference.isApplication\n ? { retriedCount: 0, skippedCount: 0, message: 'The SIEM dead-letter queue is empty for this scope.' }\n : { retriedCount: 2, skippedCount: 1, message: 'Re-queued 2 of 3 SIEM dead-letter entries for this organization; skipped 1.' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [SiemDeliveryDlq_Operations.PURGE_ALL]: {\n operationId: SiemDeliveryDlq_Operations.PURGE_ALL,\n purpose: 'Permanently remove every SIEM delivery-failure entry in the current scope.',\n outcome: 'The queue is cleared and the response reports how many entries were irreversibly removed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'Every dead-letter record in the scope was permanently removed; a count of purged records is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the CRITICAL-risk operator role required for an irreversible scope-wide purge.' },\n ],\n idempotent: false,\n examples: [{\n title: reference.isApplication\n ? 'Purge the empty application SIEM queue'\n : 'Purge all organization SIEM delivery failures',\n request: reference.scopeIdentity,\n response: reference.isApplication\n ? { purgedCount: 0, message: 'Purged 0 SIEM dead-letter entries for this application.' }\n : { purgedCount: 3, message: 'Purged 3 SIEM dead-letter entries for this organization.' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'Purge and bulk retry are governed by the factory’s risk tiers: companion should never describe them as low-impact maintenance.',\n ...(reference.isApplication\n ? ['Application-scoped SIEM delivery is reserved in this framework version: no application event producer populates this queue, so retry and purge normally operate on an empty collection.']\n : []),\n ],\n }),\n { resourcePrimaryScope: scope[rt] },\n );\n}\n\nfunction build(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const b = buildBase(rt, member);\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 b,\n () => ({\n label: {\n purpose: 'List rows and summaries are labeled from `failureReason` in the merged `security` preset — surface a concise operator-readable reason, not the entire payload.',\n },\n layout: {\n purpose: 'DLQ display in `security` uses section refs `overview` (context), `delivery` (attempt metadata), and `payload` (opaque snapshot).',\n displayPurpose: 'Template JSX for DLQ is defined alongside `layout.refs` in the preset to keep list rows compact; detail chrome expands the three blocks.',\n sections: {\n overview: {\n purpose: 'Status badge, `eventId`, and failure count so the operator orients to which stream failed before opening payload text.',\n whenToUse: 'All read layouts for a DLQ row in security consoles.',\n textSlots: {\n title: { purpose: 'Name the current DLQ item with status-first framing.' },\n description: { purpose: 'Mention that payload may contain PII; treat the screen as operator-only.' },\n },\n },\n delivery: {\n purpose: 'Attempt timestamps and next retry, plus a human-readable `failureReason` for triage.',\n whenToUse: 'Understanding whether automatic retries can still help vs exhausted state.',\n textSlots: {\n title: { purpose: 'Label the delivery and retry block.' },\n description: { purpose: 'Clarify that `nextRetryAt` can be empty when the row is terminal.' },\n },\n },\n payload: {\n purpose: 'The opaque `eventPayload` blob — rendering may truncate or redact; structure is not fixed across event types.',\n whenToUse: 'Deep debugging after overview/delivery are understood; export paths may also reference this data.',\n textSlots: {\n title: { purpose: 'Label the payload/technical view.' },\n description: { purpose: 'Avoid claiming a stable JSON contract — the schema stores `z.unknown()` for flexibility at write time.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Primary addressable queue surface in merged presets for org and app security operators — dashboard-style: `status` quick-filter tab strip (All / Pending retry / Exhausted / Delivered) + `createdAt` day-bucket grouping via `collectionDisplayConfig` (backend-validated: `status` + `createdAt` are the LIST op\\'s declared `filterFields`).', whenToUse: 'SIEM health and retry workflows under security settings; the Failed tab is the triage entry point.' },\n [SiemDeliveryDlq_Operations.RETRY_SINGLE]: { purpose: 'Single-row retry surfaced as a per-row action (not URL-addressable); executes in place on the clicked row, whose id is injected into the request body `entryId`.', whenToUse: 'Replaying one known-bad event after a customer fixes their endpoint.' },\n [SiemDeliveryDlq_Operations.RETRY_ALL]: { purpose: 'Whole-scope requeue (borrows the collection verb `UPDATE_MANY` for an id-less collection route); surfaced once in the list collection-action bar, confirms (HIGH) then executes in place.', whenToUse: 'Outage recovery after a shared infrastructure fix.' },\n [SiemDeliveryDlq_Operations.PURGE_ALL]: { purpose: 'Whole-scope clear (borrows the collection verb `DELETE_MANY` for an id-less collection route); surfaced in the list collection-action bar, type-to-confirm (CRITICAL) then executes in place.', whenToUse: 'Compliance or disk-pressure teardown when retention policy allows purging the DLQ only.' },\n },\n }),\n );\n}\n\nexport const organizationSiemDeliveryDlqResourceSpecification = build(\n CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ,\n 'ORGANIZATION_SIEM_DELIVERY_DLQ',\n);\nexport const applicationSiemDeliveryDlqResourceSpecification = build(\n CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ,\n 'APPLICATION_SIEM_DELIVERY_DLQ',\n);\n"]}
1
+ {"version":3,"file":"siem-delivery-dlq.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/siem-delivery-dlq.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,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,2BAA2B,EAC3B,aAAa,EACb,SAAS,EACT,oBAAoB,EACpB,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,EACrB,mCAAmC,GACpC,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,E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jC,CAAC;AACF,MAAM,CAAC,MAAM,+CAA+C,GAAG,KAAK,CAClE,gBAAgB,CAAC,6BAA6B,EAC9C,+BAA+B,CAChC,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 {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ErrorCustomMessageReference,\n ErrorSeverity,\n ErrorType,\n ResourcePrimaryScope,\n SiemDeliveryDlq_Operations,\n SiemDeliveryDlqBaseSchema,\n SiemDeliveryDlqStatus,\n siemDeliveryDlqPolymorphicFactories,\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_SIEM_DELIVERY_DLQ | CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ;\ntype RMember = 'ORGANIZATION_SIEM_DELIVERY_DLQ' | 'APPLICATION_SIEM_DELIVERY_DLQ';\n\ntype Cfg = ReturnType<(typeof siemDeliveryDlqPolymorphicFactories)[CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ]>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof SiemDeliveryDlqBaseSchema;\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}\n\nconst scope: Record<RType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ]: ResourcePrimaryScope.APPLICATION,\n};\n\nfunction siemDeliveryDlqPage(data: readonly unknown[]) {\n return {\n data,\n pagination: {\n page: 1,\n limit: 20,\n total: data.length,\n totalPages: data.length === 0 ? 0 : 1,\n },\n };\n}\n\nfunction createSiemDeliveryDlqReferenceExamples(resourceType: RType) {\n const isApplication = resourceType === CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ;\n const scopeId = isApplication ? 'application_01HX2EXAMPLE' : 'organization_01HX2EXAMPLE';\n const scopeField = isApplication ? 'applicationId' : 'organizationId';\n const relationshipField = isApplication ? 'application' : 'organization';\n const scopeIdentity = { [scopeField]: scopeId };\n const pendingEntry = {\n _id: 'siemdlq_pending_01HX2EXAMPLE',\n eventId: 'audit_evt_login_failed_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authentication.login.failed',\n occurredAt: '2026-08-18T13:34:58.000Z',\n actor: { type: 'user', id: 'user_01HX2EXAMPLE' },\n outcome: 'failure',\n correlationId: 'corr_01HX2EXAMPLE',\n },\n failureReason: 'The SIEM endpoint timed out after 10 seconds.',\n failureCount: 2,\n lastAttemptAt: '2026-08-18T13:35:10.000Z',\n nextRetryAt: '2026-08-18T13:40:10.000Z',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n createdAt: '2026-08-18T13:30:00.000Z',\n updatedAt: '2026-08-18T13:35:10.000Z',\n ...scopeIdentity,\n };\n const exhaustedEntry = {\n _id: 'siemdlq_exhausted_01HX2EXAMPLE',\n eventId: 'audit_evt_access_denied_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authorization.access.denied',\n occurredAt: '2026-08-18T12:05:00.000Z',\n actor: { type: 'service', id: 'integration_01HX2EXAMPLE' },\n outcome: 'denied',\n correlationId: 'corr_02HX2EXAMPLE',\n },\n failureReason: 'The SIEM endpoint returned HTTP 503 for every configured retry.',\n failureCount: 4,\n lastAttemptAt: '2026-08-18T12:20:00.000Z',\n status: SiemDeliveryDlqStatus.EXHAUSTED,\n createdAt: '2026-08-18T12:05:02.000Z',\n updatedAt: '2026-08-18T12:20:00.000Z',\n ...scopeIdentity,\n };\n const deliveredEntry = {\n _id: 'siemdlq_delivered_01HX2EXAMPLE',\n eventId: 'audit_evt_role_changed_01HX2EXAMPLE',\n eventPayload: {\n eventType: 'authorization.role.changed',\n occurredAt: '2026-08-18T11:15:00.000Z',\n actor: { type: 'user', id: 'admin_01HX2EXAMPLE' },\n outcome: 'success',\n correlationId: 'corr_03HX2EXAMPLE',\n },\n failureReason: 'The first delivery failed, but a later attempt succeeded.',\n failureCount: 1,\n lastAttemptAt: '2026-08-18T11:20:00.000Z',\n status: SiemDeliveryDlqStatus.DELIVERED,\n createdAt: '2026-08-18T11:15:02.000Z',\n updatedAt: '2026-08-18T11:20:00.000Z',\n ...scopeIdentity,\n };\n const listRequest = {\n ...scopeIdentity,\n createdAt: {\n startDate: '2026-08-18T00:00:00.000Z',\n endDate: '2026-08-18T23:59:59.999Z',\n },\n page: 1,\n limit: 20,\n sort: 'createdAt:desc',\n };\n const visibleEntries = isApplication ? [] : [pendingEntry, exhaustedEntry, deliveredEntry];\n const contextEntries = visibleEntries.map((entry) => ({\n ...entry,\n [relationshipField]: { _id: scopeId },\n }));\n const summaryEntries = visibleEntries.map((entry) => ({\n _id: entry._id,\n failureReason: entry.failureReason,\n status: entry.status,\n createdAt: entry.createdAt,\n }));\n\n return {\n isApplication,\n scopeIdentity,\n pendingEntry,\n listRequest,\n listPage: siemDeliveryDlqPage(visibleEntries),\n contextPage: siemDeliveryDlqPage(contextEntries),\n summaryPage: siemDeliveryDlqPage(summaryEntries),\n };\n}\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const reference = createSiemDeliveryDlqReferenceExamples(rt);\n return resourceSpecification<Custom, Core, Main>(\n siemDeliveryDlqPolymorphicFactories[rt],\n SiemDeliveryDlqBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SIEM delivery dead-letter entry: one record per failed (or re-queued) webhook delivery attempt, retaining payload for retry, inspection, and purge.',\n businessRole: 'Operator-facing queue for data that could not be pushed to a customer’s SIEM endpoint in time, with a clear failure reason and retry state.',\n lifecycleRole: 'Progresses from pending retry to exhausted or eventually delivered; custom ops requeue or clear entries in bulk.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SiemDeliveryDlqBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'siemDeliveryDlqPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY },\n identifierField: 'collectionKey',\n identifierValue: rt,\n },\n resourceType: {\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n memberName: member,\n },\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: 'SiemDeliveryDlq_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 '`eventPayload` is `z.unknown()` in the schema — the companion may describe it generically; this spec file omits a typed field spec until a dedicated `unknown`/`json` *Spec is standardized.',\n ],\n },\n fields: {\n status: schemaShape.status.enumSpec({\n meaning: 'DLQ lifecycle: awaiting retry, exhausted, or already delivered to SIEM on a later attempt.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'SiemDeliveryDlqStatus', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.CONST_OBJECT },\n values: {\n [SiemDeliveryDlqStatus.PENDING_RETRY]: { meaning: 'May be retried automatically or by an operator while policy allows.' },\n [SiemDeliveryDlqStatus.EXHAUSTED]: { meaning: 'Retries are exhausted; manual inspection and purge or policy-driven cleanup apply.' },\n [SiemDeliveryDlqStatus.DELIVERED]: { meaning: 'A later attempt succeeded; record may be retained for an audit window.' },\n },\n }),\n failureReason: schemaShape.failureReason.stringSpec({\n meaning: 'Default list label in presets: human- or system-authored reason for the last failure path.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n eventId: schemaShape.eventId.stringSpec({ meaning: 'Correlation id to the source audit/transport event behind this failed delivery.' }),\n failureCount: schemaShape.failureCount.numberSpec({ meaning: 'How many times delivery failed for this chain.' }),\n lastAttemptAt: schemaShape.lastAttemptAt.dateSpec({ meaning: 'Last delivery attempt from Wildo to the customer webhook.' }),\n nextRetryAt: schemaShape.nextRetryAt.dateSpec({ meaning: 'When the next automatic retry is scheduled, if any.' }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Repository read of a single DLQ row (internal and admin diagnostics, not a broad end-user read).',\n outcome: 'Inspect error metadata and the opaque payload for support.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The DLQ record was found and its failure metadata plus opaque payload snapshot are returned for diagnostics.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/admin role required to inspect a dead-letter row (the payload may contain customer PII).' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied id in the caller’s scope (already purged or re-delivered and removed).' },\n ],\n idempotent: true,\n },\n [Op.LIST]: {\n purpose: reference.isApplication\n ? 'List application-scoped SIEM delivery failures. This framework version has no application-scoped SIEM event producer, so the queue is expected to remain empty.'\n : 'List organization SIEM delivery failures for an incident window, filtered by retry status and ordered for investigation.',\n outcome: reference.isApplication\n ? 'A paginated empty queue confirms that no application-scoped SIEM delivery stream is active.'\n : 'Administrators receive the failed event envelope, failure reason, attempt history and current retry state for each delivery.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of dead-letter records for the scope, ordered for the queue browser.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator/admin role that gates the SIEM dead-letter queue for this scope.' },\n ],\n idempotent: true,\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM queue is empty'\n : 'Investigate current SIEM delivery states',\n request: reference.listRequest,\n response: reference.listPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM context queue is empty'\n : 'Investigate SIEM failures with organization context',\n request: reference.listRequest,\n response: reference.contextPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: reference.isApplication\n ? 'Confirm the application SIEM summary queue is empty'\n : 'Review compact SIEM failure summaries',\n request: reference.listRequest,\n response: reference.summaryPage,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Internal append of DLQ rows on delivery failure (REPOSITORY_ONLY in the factory).',\n outcome: 'A new retryable or terminal document.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A dead-letter record was appended for a failed SIEM delivery and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { 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' },\n { 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.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Append a dead-letter row for a failed SIEM delivery',\n request: {\n eventId: 'evt_01HX2…',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n failureReason: 'Connection timed out posting to the customer webhook.',\n failureCount: 1,\n },\n response: {\n _id: 'siemdlq_01HX2…',\n eventId: 'evt_01HX2…',\n status: SiemDeliveryDlqStatus.PENDING_RETRY,\n failureReason: 'Connection timed out posting to the customer webhook.',\n failureCount: 1,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.DELETE]: {\n purpose: 'Remove one row after a successful re-delivery or explicit row-level purge; REPOSITORY_ONLY in the factory for safety.',\n outcome: 'Entry removed from the DLQ collection; separate audit may still cover the original event stream.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The dead-letter record was removed from the queue; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to drop a dead-letter row.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied id (already removed by a prior purge or re-delivery).' },\n ],\n idempotent: true,\n },\n [Op.DELETE_MANY]: {\n purpose: 'Bulk twin of `DELETE` — the repository write path behind `PURGE_ALL` (whole-scope clear) and the delete-on-requeue tail of `RETRY_SINGLE`/`RETRY_ALL`: one round trip drops every matched row.',\n outcome: 'Purge and retry-cleanup scale with a single bulk delete instead of N per-row deletes; DLQ rows are inert (no worker owns them, no retry sweep touches them) so any status is safe to drop.',\n whenToUse: 'Repository-only — never a public HTTP surface. Operators clear or drain via the `PURGE_ALL` / `RETRY_*` custom operations, which own request validation and the summary response.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The matched records were bulk-deleted; the invoking custom operation reports the count in its own summary response.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'A non-system caller attempts the repository-only bulk delete directly; UI/API flows must use `PURGE_ALL` / `RETRY_*`.' },\n ],\n idempotent: true,\n },\n [SiemDeliveryDlq_Operations.RETRY_SINGLE]: {\n operationId: SiemDeliveryDlq_Operations.RETRY_SINGLE,\n purpose: reference.isApplication\n ? 'Request a retry for one application-scoped queue entry by `entryId`; this version normally has no such entries because the application SIEM producer is unavailable.'\n : 'Request a new delivery attempt for one organization queue entry identified by `entryId` in the request body.',\n outcome: 'The response acknowledges the selected queue entry. If the new delivery also fails, its failure is visible in the queue again.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The targeted dead-letter entry was re-queued for delivery; a `{ message, entryId }` acknowledgement is returned (not the DLQ record).' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to replay SIEM deliveries.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No DLQ row exists for the supplied `entryId` in the caller’s scope — it was already cleared or successfully re-delivered.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The entry is already `DELIVERED` (a later attempt succeeded), so there is nothing to retry. `PENDING_RETRY` and `EXHAUSTED` entries are both retryable.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The scope has no SIEM webhook URL configured, so there is no destination to re-deliver to; configure SIEM export before retrying.' },\n ],\n idempotent: false,\n examples: reference.isApplication\n ? [{\n title: 'Retry an unavailable application-scoped queue entry',\n request: { ...reference.scopeIdentity, entryId: 'siemdlq_missing_01HX2EXAMPLE' },\n response: {\n error: {\n type: ErrorType.NOT_FOUND,\n severity: ErrorSeverity.LOW,\n message: 'Requested resource not found',\n customMessage: 'The SIEM delivery queue entry could not be found.',\n customMessageReference: ErrorCustomMessageReference.NOT_FOUND,\n timestamp: '2026-08-18T13:45:00.000Z',\n },\n },\n forStatus: HttpResponseStatusCode.NOT_FOUND_404,\n }]\n : [{\n title: 'Retry one failed organization SIEM delivery',\n request: { ...reference.scopeIdentity, entryId: reference.pendingEntry._id },\n response: {\n message: 'SIEM DLQ entry re-queued for delivery.',\n entryId: reference.pendingEntry._id,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [SiemDeliveryDlq_Operations.RETRY_ALL]: {\n operationId: SiemDeliveryDlq_Operations.RETRY_ALL,\n purpose: 'Retry every pending or exhausted SIEM delivery entry in the current scope.',\n outcome: 'The response reports how many entries were accepted for another attempt and how many could not be retried.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'Eligible dead-letter entries in the scope were re-queued and removed; a `{ retriedCount, skippedCount, message }` summary is returned (not the records). When SIEM export has no webhook URL configured, all entries are reported as skipped.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the operator role required to trigger a scope-wide SIEM replay.' },\n ],\n idempotent: false,\n rateLimitNote: 'Bulk replay fans out one outbound delivery attempt per eligible row (no artificial batch cap — the DLQ is a bounded failure queue); the SIEM delivery worker’s own per-scope circuit breaker and retry/backoff protect the customer endpoint.',\n examples: [{\n title: reference.isApplication\n ? 'Retry the empty application SIEM queue'\n : 'Retry all eligible organization SIEM deliveries',\n request: reference.scopeIdentity,\n response: reference.isApplication\n ? { retriedCount: 0, skippedCount: 0, message: 'The SIEM dead-letter queue is empty for this scope.' }\n : { retriedCount: 2, skippedCount: 1, message: 'Re-queued 2 of 3 SIEM dead-letter entries for this organization; skipped 1.' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [SiemDeliveryDlq_Operations.PURGE_ALL]: {\n operationId: SiemDeliveryDlq_Operations.PURGE_ALL,\n purpose: 'Permanently remove every SIEM delivery-failure entry in the current scope.',\n outcome: 'The queue is cleared and the response reports how many entries were irreversibly removed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'Every dead-letter record in the scope was permanently removed; a count of purged records is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the CRITICAL-risk operator role required for an irreversible scope-wide purge.' },\n ],\n idempotent: false,\n examples: [{\n title: reference.isApplication\n ? 'Purge the empty application SIEM queue'\n : 'Purge all organization SIEM delivery failures',\n request: reference.scopeIdentity,\n response: reference.isApplication\n ? { purgedCount: 0, message: 'Purged 0 SIEM dead-letter entries for this application.' }\n : { purgedCount: 3, message: 'Purged 3 SIEM dead-letter entries for this organization.' },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n businessConstraints: [\n 'Purge and bulk retry are governed by the factory’s risk tiers: companion should never describe them as low-impact maintenance.',\n ...(reference.isApplication\n ? ['Application-scoped SIEM delivery is reserved in this framework version: no application event producer populates this queue, so retry and purge normally operate on an empty collection.']\n : []),\n ],\n }),\n { resourcePrimaryScope: scope[rt] },\n );\n}\n\nfunction build(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const b = buildBase(rt, member);\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 b,\n () => ({\n label: {\n purpose: 'List rows and summaries are labeled from `failureReason` in the merged `security` preset — surface a concise operator-readable reason, not the entire payload.',\n },\n layout: {\n purpose: 'DLQ display in `security` uses section refs `overview` (context), `delivery` (attempt metadata), and `payload` (opaque snapshot).',\n displayPurpose: 'Template JSX for DLQ is defined alongside `layout.refs` in the preset to keep list rows compact; detail chrome expands the three blocks.',\n sections: {\n overview: {\n purpose: 'Status badge, `eventId`, and failure count so the operator orients to which stream failed before opening payload text.',\n whenToUse: 'All read layouts for a DLQ row in security consoles.',\n textSlots: {\n title: { purpose: 'Name the current DLQ item with status-first framing.' },\n description: { purpose: 'Mention that payload may contain PII; treat the screen as operator-only.' },\n },\n },\n delivery: {\n purpose: 'Attempt timestamps and next retry, plus a human-readable `failureReason` for triage.',\n whenToUse: 'Understanding whether automatic retries can still help vs exhausted state.',\n textSlots: {\n title: { purpose: 'Label the delivery and retry block.' },\n description: { purpose: 'Clarify that `nextRetryAt` can be empty when the row is terminal.' },\n },\n },\n payload: {\n purpose: 'The opaque `eventPayload` blob — rendering may truncate or redact; structure is not fixed across event types.',\n whenToUse: 'Deep debugging after overview/delivery are understood; export paths may also reference this data.',\n textSlots: {\n title: { purpose: 'Label the payload/technical view.' },\n description: { purpose: 'Avoid claiming a stable JSON contract — the schema stores `z.unknown()` for flexibility at write time.' },\n },\n },\n },\n },\n views: {\n [Op.LIST]: { purpose: 'Primary addressable queue surface in merged presets for org and app security operators — dashboard-style: `status` quick-filter tab strip (All / Pending retry / Exhausted / Delivered) + `createdAt` day-bucket grouping via `collectionDisplayConfig` (backend-validated: `status` + `createdAt` are the LIST op\\'s declared `filterFields`).', whenToUse: 'SIEM health and retry workflows under security settings; the Failed tab is the triage entry point.' },\n [SiemDeliveryDlq_Operations.RETRY_SINGLE]: { purpose: 'Single-row retry surfaced as a per-row action (not URL-addressable); executes in place on the clicked row, whose id is injected into the request body `entryId`.', whenToUse: 'Replaying one known-bad event after a customer fixes their endpoint.' },\n [SiemDeliveryDlq_Operations.RETRY_ALL]: { purpose: 'Whole-scope requeue (borrows the collection verb `UPDATE_MANY` for an id-less collection route); surfaced once in the list collection-action bar, confirms (HIGH) then executes in place.', whenToUse: 'Outage recovery after a shared infrastructure fix.' },\n [SiemDeliveryDlq_Operations.PURGE_ALL]: { purpose: 'Whole-scope clear (borrows the collection verb `DELETE_MANY` for an id-less collection route); surfaced in the list collection-action bar, type-to-confirm (CRITICAL) then executes in place.', whenToUse: 'Compliance or disk-pressure teardown when retention policy allows purging the DLQ only.' },\n },\n }),\n );\n}\n\nexport const organizationSiemDeliveryDlqResourceSpecification = build(\n CoreResourceType.ORGANIZATION_SIEM_DELIVERY_DLQ,\n 'ORGANIZATION_SIEM_DELIVERY_DLQ',\n);\nexport const applicationSiemDeliveryDlqResourceSpecification = build(\n CoreResourceType.APPLICATION_SIEM_DELIVERY_DLQ,\n 'APPLICATION_SIEM_DELIVERY_DLQ',\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"siem-export-config.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/siem-export-config.resource.specification.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAU5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AA4YrC,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAG7D,CAAC;AACF,eAAO,MAAM,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAG5D,CAAC"}
1
+ {"version":3,"file":"siem-export-config.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/siem-export-config.resource.specification.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAU5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AA4YrC,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAG7D,CAAC;AACF,eAAO,MAAM,gDAAgD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAG5D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"siem-export-config.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/siem-export-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,EAAE,6CAA6C,EAAE;wBACjE,WAAW,EAAE,EAAE,OAAO,EAAE,gEAAgE,EAAE;qBAC3F;iBACF;gBACD,MAAM,EAAE;oBACN,OAAO,EAAE,gHAAgH;oBACzH,SAAS,EAAE,gEAAgE;oBAC3E,SAAS,EAAE;wBACT,KAAK,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE;wBACvD,WAAW,EAAE,EAAE,OAAO,EAAE,iGAAiG,EAAE;qBAC5H;iBACF;gBACD,QAAQ,EAAE;oBACR,OAAO,EAAE,4IAA4I;oBACrJ,SAAS,EAAE,0FAA0F;oBACrG,SAAS,EAAE;wBACT,KAAK,EAAE,EAAE,OAAO,EAAE,wCAAwC,EAAE;wBAC5D,WAAW,EAAE,EAAE,OAAO,EAAE,4FAA4F,EAAE;qBACvH;iBACF;aACF;SACF;QACD,KAAK,EAAE;YACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,0HAA0H,EAAE,SAAS,EAAE,gEAAgE,EAAE;SAChO;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,iDAAiD,GAAG,mBAAmB,CAClF,gBAAgB,CAAC,+BAA+B,EAChD,iCAAiC,CAClC,CAAC;AACF,MAAM,CAAC,MAAM,gDAAgD,GAAG,mBAAmB,CACjF,gBAAgB,CAAC,8BAA8B,EAC/C,gCAAgC,CACjC,CAAC","sourcesContent":["import {\n securityAdminPresets,\n securityMainPresets,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n SIEMEventCategory,\n SIEMEventFormat,\n SIEMFilterSeverity,\n SIEMAuthMethod,\n SiemExportConfigBaseSchema,\n WildoHeaderKeys,\n siemExportConfigPolymorphicFactories,\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 SiemResourceType =\n | CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG\n | CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG;\ntype SiemResourceTypeMemberName = 'ORGANIZATION_SIEM_EXPORT_CONFIG' | 'APPLICATION_SIEM_EXPORT_CONFIG';\n\ntype SiemConfig = ReturnType<(typeof siemExportConfigPolymorphicFactories)[CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG]>;\ntype SiemCustom = SiemConfig['customOperation'];\ntype SiemCore = SiemConfig['coreOperations'][number];\ntype SiemSchema = typeof SiemExportConfigBaseSchema;\ntype SiemFrontend = ResourceUIBehaviorConfig<SiemCustom, SiemCore, SiemSchema>;\n\nfunction resolveSiemExportUI(\n source: Partial<Record<string, unknown>>,\n resourceType: SiemResourceType,\n sourceName: string,\n): SiemFrontend {\n const ui = source[resourceType] as SiemFrontend | undefined;\n if (!ui) {\n throw new Error(`Missing \"${resourceType}\" UI behavior in ${sourceName}.`);\n }\n return ui;\n}\n\nconst siemExportResourcePrimaryScope: Record<SiemResourceType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG]: ResourcePrimaryScope.APPLICATION,\n};\n\nconst SIEM_EXPORT_DELIVERY_EXAMPLE = {\n batchSize: 20,\n batchWindowSeconds: 10,\n retryAttempts: 3,\n retryBackoffSeconds: 30,\n timeoutSeconds: 10,\n} as const;\n\nfunction createSiemExportReferenceExamples(resourceType: SiemResourceType) {\n const isApplication = resourceType === CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG;\n const scopeId = isApplication ? 'application_01HX2EXAMPLE' : 'organization_01HX2EXAMPLE';\n const scopeField = isApplication ? 'applicationId' : 'organizationId';\n const relationshipField = isApplication ? 'application' : 'organization';\n const scopeIdentity = { [scopeField]: scopeId };\n const record = {\n _id: isApplication ? 'app_siemcfg_01HX2EXAMPLE' : 'org_siemcfg_01HX2EXAMPLE',\n enabled: !isApplication,\n webhookUrl: isApplication ? '' : 'https://siem.example.com/v1/events',\n authMethod: isApplication ? SIEMAuthMethod.NONE : SIEMAuthMethod.BEARER_TOKEN,\n ...(!isApplication ? { authCredential: '••••••••' } : {}),\n authHeaderName: WildoHeaderKeys.API_KEY,\n eventFormat: SIEMEventFormat.OCSF,\n eventFilter: {\n categories: [\n SIEMEventCategory.AUTHENTICATION,\n SIEMEventCategory.AUTHORIZATION,\n SIEMEventCategory.USER_LIFECYCLE,\n ],\n severityMinimum: SIEMFilterSeverity.WARNING,\n specificEventTypes: ['authentication.login.failed', 'authorization.access.denied'],\n },\n delivery: SIEM_EXPORT_DELIVERY_EXAMPLE,\n customHeaders: { 'x-customer-tenant': isApplication ? 'wonder-todos' : 'northwind' },\n includeRawEventData: true,\n includeDeviceContext: true,\n createdAt: '2026-08-01T09:00:00.000Z',\n updatedAt: '2026-08-18T13:40:00.000Z',\n ...scopeIdentity,\n };\n\n return {\n isApplication,\n scopeIdentity,\n record,\n contextRecord: {\n ...record,\n [relationshipField]: { _id: scopeId },\n },\n summaryRecord: {\n _id: record._id,\n enabled: record.enabled,\n },\n };\n}\n\nfunction buildSiemExportBase(\n resourceType: SiemResourceType,\n memberName: SiemResourceTypeMemberName,\n): ResourceSpecificationConfig<SiemCustom, SiemCore, SiemSchema> {\n const reference = createSiemExportReferenceExamples(resourceType);\n return resourceSpecification<SiemCustom, SiemCore, SiemSchema>(\n siemExportConfigPolymorphicFactories[resourceType],\n SiemExportConfigBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SIEM export configuration: where audit/security events are delivered, how they are signed or authenticated, and how they are batched to an HTTPS webhook endpoint.',\n businessRole: 'The outbound integration point that turns internal audit events into a customer SIEM or log pipeline.',\n lifecycleRole: 'Seeded per scope, enabled or disabled through the administration configuration flow, and edited for destinations, credentials, filtering, and delivery policy.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SiemExportConfigBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'siemExportConfigPolymorphicFactories',\n symbolKind: CodeSymbolKind.FACTORY,\n },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName,\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSourceEntries: [\n {\n collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n {\n collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n ],\n notes: [\n 'Application variant in main presets may override `views` to empty; merged admin may still provide addressable `READ` for super-admin flows — the spec’s frontend section reflects operations that exist in the factory regardless.',\n ],\n },\n fields: {\n enabled: schemaShape.enabled.booleanSpec({\n meaning: 'When true, the pipeline may emit configured events; when false, deliveries should be suppressed without deleting configuration.',\n }),\n webhookUrl: schemaShape.webhookUrl.stringSpec({ meaning: 'Destination HTTPS URL for JSON/CEF/LEEF payload posts.', importance: FieldSemanticImportance.PRIMARY }),\n authMethod: schemaShape.authMethod.enumSpec({\n meaning: 'How the outbound webhook authenticates to the customer endpoint.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SIEMAuthMethod',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.CONST_OBJECT,\n },\n values: {\n [SIEMAuthMethod.NONE]: { meaning: 'No client authentication (rare; usually dev-only).' },\n [SIEMAuthMethod.BEARER_TOKEN]: { meaning: 'Bearer token in the Authorization header. You supply the token when you save the configuration; reading it back returns `••••••••` rather than the value.' },\n [SIEMAuthMethod.API_KEY_HEADER]: { meaning: 'API key in a header you name. When you do not name one, the default is `x-api-key`.' },\n [SIEMAuthMethod.HMAC_SHA256]: { meaning: 'The payload is signed with a shared secret your receiver verifies. You supply the secret when you save the configuration; reading it back returns `••••••••` rather than the value.' },\n },\n }),\n authCredential: schemaShape.authCredential.stringSpec({\n meaning: 'Write-only credential used by the selected outbound authentication method. Reads return only the masked marker `••••••••`; sending that marker back preserves the existing secret, while sending another value replaces it.',\n }),\n authHeaderName: schemaShape.authHeaderName.stringSpec({\n meaning: 'Header name used only by `api_key_header`. The configured credential is sent as that header’s complete value; prefixes such as `Splunk ` or `ApiKey ` must therefore be included in the stored value when the receiver requires them.',\n }),\n eventFormat: schemaShape.eventFormat.enumSpec({\n meaning: 'Payload wire format the receiver expects (structured JSON, CEF, LEEF, or OCSF). '\n + 'The two text formats are delivered as `text/plain`; the two JSON formats as `application/json`.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SIEMEventFormat',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.CONST_OBJECT,\n },\n values: {\n [SIEMEventFormat.JSON_STRUCTURED]: { meaning: 'Product-native JSON schema for structured log ingest. Carries every envelope field.' },\n [SIEMEventFormat.CEF]: {\n meaning: 'Common Event Format for legacy SIEM connectors. Reaches 20 of the 27 envelope fields — CEF publishes only six general-purpose '\n + '`csN` slots, and a minted custom extension is unreportable in ArcSight ESM, so the remainder are deliberately omitted rather than force-fitted.',\n },\n [SIEMEventFormat.LEEF]: {\n meaning: 'LEEF v2 for IBM QRadar. Reaches all 27 envelope fields, because a LEEF custom key stays searchable in QRadar where a CEF custom extension does not.',\n },\n [SIEMEventFormat.OCSF]: {\n meaning: 'Open Cybersecurity Schema Framework — the JSON-native security schema, delivered as `application/json`. A PEER of the text formats rather than '\n + 'a replacement: an audit event maps onto an OCSF CLASS natively (Authentication, User Management, API Activity, Entity Management) instead of being '\n + 'force-fit into a custom slot. The class is selected from the event category, and `type_uid` is derived, never authored.',\n },\n },\n }),\n eventFilter: schemaShape.eventFilter.objectSpec({\n meaning: 'Filter block: selected high-level event categories, minimum SIEM severity, and an optional exact allowlist of event-type identifiers. `specificEventTypes` uses exact string equality, not substring or wildcard matching.',\n }),\n delivery: schemaShape.delivery.objectSpec({\n meaning: 'Retry and timeout policy for each outbound event. `retryAttempts`, `retryBackoffSeconds` and `timeoutSeconds` are enforced. `batchSize` and `batchWindowSeconds` are accepted and stored but the current worker still posts one event per request; do not size a receiver on the assumption that batching occurs.',\n }),\n customHeaders: schemaShape.customHeaders.codeSpec({\n meaning: 'Additional static HTTP headers included with every delivery. The selected authentication method is applied afterward and overrides a custom header with the same name.',\n }),\n includeRawEventData: schemaShape.includeRawEventData.booleanSpec({\n meaning: 'Reserved configuration flag. It is currently accepted and stored but is not read by the event-envelope or delivery path; changing it does not remove `eventData` from emitted events.',\n }),\n includeDeviceContext: schemaShape.includeDeviceContext.booleanSpec({\n meaning: 'Reserved configuration flag. It is currently accepted and stored but is not read by the event-envelope or delivery path; changing it does not remove available IP address or user-agent context.',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: reference.isApplication\n ? 'Inspect the application-scoped SIEM export configuration and its current activation state.'\n : 'Inspect the organization SIEM export destination, authentication, filtering and delivery policy.',\n outcome: reference.isApplication\n ? 'Application administrators can see the reserved configuration record. This framework version does not produce application-scoped SIEM events, so enabling this record does not start delivery.'\n : 'Organization administrators can verify the active destination and policy without receiving the stored credential value.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: reference.isApplication\n ? 'The reserved application-scoped configuration was returned. No application-scoped event producer is available in this framework version.'\n : 'The organization SIEM export configuration was returned, with any stored credential represented only by the redacted placeholder.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to read the SIEM export configuration.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SIEM export configuration has been provisioned for this scope yet.' },\n ],\n idempotent: true,\n examples: [{\n title: reference.isApplication\n ? 'Inspect the inactive application SIEM configuration'\n : 'Inspect the organization SIEM export configuration',\n request: reference.scopeIdentity,\n response: reference.record,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: reference.isApplication\n ? 'Inspect the application configuration with scope context'\n : 'Inspect the organization configuration with scope context',\n request: reference.scopeIdentity,\n response: reference.contextRecord,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: reference.isApplication\n ? 'Inspect the application SIEM activation summary'\n : 'Inspect the organization SIEM activation summary',\n request: reference.scopeIdentity,\n response: reference.summaryRecord,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Create the per-scope SIEM config row; internal-only (INTERNAL_CALL) variant in the factory — no public HTTP create route. Materialised by the framework default-seed (repository tier) or, when that was bypassed, a system-context lazy-create.',\n outcome: 'The scope gains a new SIEM export document.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SIEM export configuration record was created for the scope and returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The configuration fails schema validation (e.g. a non-HTTPS `webhookUrl`, an unknown `eventFormat`, or an `authMethod` missing its required credential).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a security-admin/platform operator; this is an internal-only (INTERNAL_CALL) bootstrap path, not a self-serve create.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A SIEM export configuration already exists for this scope — the resource is one-per-scope, so a second create collides.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Provision a SIEM export configuration for a scope',\n request: {\n enabled: true,\n webhookUrl: 'https://siem.example.com/ingest',\n authMethod: SIEMAuthMethod.BEARER_TOKEN,\n eventFormat: SIEMEventFormat.JSON_STRUCTURED,\n },\n response: {\n _id: 'siemcfg_01HX2…',\n enabled: true,\n webhookUrl: 'https://siem.example.com/ingest',\n authMethod: SIEMAuthMethod.BEARER_TOKEN,\n eventFormat: SIEMEventFormat.JSON_STRUCTURED,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Update webhook, format, event filter, or delivery block after validation (INTERNAL_CALL update — no public HTTP route; reached through `AuthOrganizationConfigurationService.saveSiemExportConfig` on the admin’s execution context, preserving admin audit attribution).',\n outcome: 'Downstream services pick up changes for subsequent deliveries.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SIEM export configuration was updated and the new settings (secrets redacted) are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited destination, format, filter, or delivery block fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to change SIEM export settings.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SIEM export configuration exists for this scope to update.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the SIEM export 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 SIEM export 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 'Credentials are write-only: `authCredential` and any HMAC secret are supplied when the configuration is saved and are never returned by a read, which answers `••••••••` instead. There is no list or search over these rows, so a credential cannot be recovered from the configuration once it is stored.',\n 'Event payload shapes are a separate concern from this row: `eventFilter` and `eventFormat` do not re-specify the full audit log schema, only the export fan-out contract.',\n ...(reference.isApplication\n ? ['Application-scoped SIEM export is reserved in this framework version: no application event producer feeds this configuration or its delivery queue. Consumers must not treat `enabled: true` as evidence that application-scoped events are being exported.']\n : []),\n ],\n }),\n { resourcePrimaryScope: siemExportResourcePrimaryScope[resourceType] },\n );\n}\n\nfunction buildSiemExportSpec(\n resourceType: SiemResourceType,\n memberName: SiemResourceTypeMemberName,\n): ResourceSpecificationConfig<SiemCustom, SiemCore, SiemSchema> {\n const base = buildSiemExportBase(resourceType, memberName);\n const main = resolveSiemExportUI(securityMainPresets as Partial<Record<string, unknown>>, resourceType, 'securityMainPresets');\n const admin = resolveSiemExportUI(securityAdminPresets as Partial<Record<string, unknown>>, resourceType, 'securityAdminPresets');\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(main), resourceFrontendConfiguration(admin)),\n base,\n () => ({\n layout: {\n purpose: 'Field-edit layout in `security` uses section refs `status`, `destination`, `authentication`, `format`, and `advanced` (collapsible) with a settings-row edit chrome for most controls.',\n displayPurpose: 'Read template mirrors the same section ordering for a consistent admin walkthrough of SIEM settings.',\n sections: {\n status: {\n purpose: 'On/off and health posture for the SIEM integration.',\n whenToUse: 'First decision point: enable or pause exports without losing configuration.',\n textSlots: {\n title: { purpose: 'Name the “SIEM is active / paused” card.' },\n description: { purpose: 'Clarify that disabled mode stops new deliveries; existing DLQ may still be visible elsewhere.' },\n },\n },\n destination: {\n purpose: 'The HTTPS endpoint receiving exported events.',\n whenToUse: 'Initial setup and any rotation of the customer-side ingress URL.',\n textSlots: {\n title: { purpose: 'Label the webhook / destination block.' },\n description: { purpose: 'Mention that TLS and DNS must be valid from Wildo’s egress perspective.' },\n },\n },\n authentication: {\n purpose: 'Auth method, credential (stored server-side), and header naming for key-based methods.',\n whenToUse: 'When `authMethod` is not `NONE` or when the customer hardens their webhook.',\n textSlots: {\n title: { purpose: 'Label the authentication and secrets block.' },\n description: { purpose: 'Never echo raw secrets; reference rotation procedures instead.' },\n },\n },\n format: {\n purpose: 'Wire format and the event filter: categories, minimum severity, and allow-listed event type strings when used.',\n whenToUse: 'Tightening what is exported to match SIEM capacity and policy.',\n textSlots: {\n title: { purpose: 'Label the format and filter area.' },\n description: { purpose: 'Tie the filter to `eventType` strings produced by the audit pipeline, not arbitrary JSON paths.' },\n },\n },\n advanced: {\n purpose: 'Delivery tuning (batch size/window, retries, timeouts) and transport extras such as `customHeaders` and optional raw/device context flags.',\n whenToUse: 'After basic connectivity is proven and operators tune throughput and observability cost.',\n textSlots: {\n title: { purpose: 'Label the advanced and tuning section.' },\n description: { purpose: 'Clarify that bad tuning can delay or drop events; document incident procedures separately.' },\n },\n },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read-oriented settings and status host in merged presets (addressable in main org/app SIEM UIs; admin merge may differ).', whenToUse: 'Navigating the SIEM configuration screen in security settings.' },\n },\n }),\n );\n}\n\nexport const organizationSiemExportConfigResourceSpecification = buildSiemExportSpec(\n CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG,\n 'ORGANIZATION_SIEM_EXPORT_CONFIG',\n);\nexport const applicationSiemExportConfigResourceSpecification = buildSiemExportSpec(\n CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG,\n 'APPLICATION_SIEM_EXPORT_CONFIG',\n);\n"]}
1
+ {"version":3,"file":"siem-export-config.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/siem-export-config.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,0BAA0B,EAC1B,eAAe,EACf,oCAAoC,GACrC,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;AAa3E,SAAS,mBAAmB,CAC1B,MAAwC,EACxC,YAA8B,EAC9B,UAAkB;IAElB,MAAM,EAAE,GAAG,MAAM,CAAC,YAAY,CAA6B,CAAC;IAC5D,IAAI,CAAC,EAAE,EAAE,CAAC;QACR,MAAM,IAAI,KAAK,CAAC,YAAY,YAAY,oBAAoB,UAAU,GAAG,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,8BAA8B,GAAmD;IACrF,CAAC,gBAAgB,CAAC,+BAA+B,CAAC,EAAE,oBAAoB,CAAC,aAAa;IACtF,CAAC,gBAAgB,CAAC,8BAA8B,CAAC,EAAE,oBAAoB,CAAC,WAAW;CACpF,CAAC;AAEF,MAAM,4BAA4B,GAAG;IACnC,SAAS,EAAE,EAAE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AO,EAAE,yEAAyE,EAAE;qBACpG;iBACF;gBACD,cAAc,EAAE;oBACd,OAAO,EAAE,wFAAwF;oBACjG,SAAS,EAAE,6EAA6E;oBACxF,SAAS,EAAE;wBACT,KAAK,EAAE,EAAE,OAAO,EAAE,6CAA6C,EAAE;wBACjE,WAAW,EAAE,EAAE,OAAO,EAAE,gEAAgE,EAAE;qBAC3F;iBACF;gBACD,MAAM,EAAE;oBACN,OAAO,EAAE,gHAAgH;oBACzH,SAAS,EAAE,gEAAgE;oBAC3E,SAAS,EAAE;wBACT,KAAK,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE;wBACvD,WAAW,EAAE,EAAE,OAAO,EAAE,iGAAiG,EAAE;qBAC5H;iBACF;gBACD,QAAQ,EAAE;oBACR,OAAO,EAAE,4IAA4I;oBACrJ,SAAS,EAAE,0FAA0F;oBACrG,SAAS,EAAE;wBACT,KAAK,EAAE,EAAE,OAAO,EAAE,wCAAwC,EAAE;wBAC5D,WAAW,EAAE,EAAE,OAAO,EAAE,4FAA4F,EAAE;qBACvH;iBACF;aACF;SACF;QACD,KAAK,EAAE;YACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,0HAA0H,EAAE,SAAS,EAAE,gEAAgE,EAAE;SAChO;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,iDAAiD,GAAG,mBAAmB,CAClF,gBAAgB,CAAC,+BAA+B,EAChD,iCAAiC,CAClC,CAAC;AACF,MAAM,CAAC,MAAM,gDAAgD,GAAG,mBAAmB,CACjF,gBAAgB,CAAC,8BAA8B,EAC/C,gCAAgC,CACjC,CAAC","sourcesContent":["import {\n securityAdminPresets,\n securityMainPresets,\n} from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n SIEMEventCategory,\n SIEMEventFormat,\n SIEMFilterSeverity,\n SIEMAuthMethod,\n SiemExportConfigBaseSchema,\n WildoHeaderKeys,\n siemExportConfigPolymorphicFactories,\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 SiemResourceType =\n | CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG\n | CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG;\ntype SiemResourceTypeMemberName = 'ORGANIZATION_SIEM_EXPORT_CONFIG' | 'APPLICATION_SIEM_EXPORT_CONFIG';\n\ntype SiemConfig = ReturnType<(typeof siemExportConfigPolymorphicFactories)[CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG]>;\ntype SiemCustom = SiemConfig['customOperation'];\ntype SiemCore = SiemConfig['coreOperations'][number];\ntype SiemSchema = typeof SiemExportConfigBaseSchema;\ntype SiemFrontend = ResourceUIBehaviorConfig<SiemCustom, SiemCore, SiemSchema>;\n\nfunction resolveSiemExportUI(\n source: Partial<Record<string, unknown>>,\n resourceType: SiemResourceType,\n sourceName: string,\n): SiemFrontend {\n const ui = source[resourceType] as SiemFrontend | undefined;\n if (!ui) {\n throw new Error(`Missing \"${resourceType}\" UI behavior in ${sourceName}.`);\n }\n return ui;\n}\n\nconst siemExportResourcePrimaryScope: Record<SiemResourceType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG]: ResourcePrimaryScope.APPLICATION,\n};\n\nconst SIEM_EXPORT_DELIVERY_EXAMPLE = {\n batchSize: 20,\n batchWindowSeconds: 10,\n retryAttempts: 3,\n retryBackoffSeconds: 30,\n timeoutSeconds: 10,\n} as const;\n\nfunction createSiemExportReferenceExamples(resourceType: SiemResourceType) {\n const isApplication = resourceType === CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG;\n const scopeId = isApplication ? 'application_01HX2EXAMPLE' : 'organization_01HX2EXAMPLE';\n const scopeField = isApplication ? 'applicationId' : 'organizationId';\n const relationshipField = isApplication ? 'application' : 'organization';\n const scopeIdentity = { [scopeField]: scopeId };\n const record = {\n _id: isApplication ? 'app_siemcfg_01HX2EXAMPLE' : 'org_siemcfg_01HX2EXAMPLE',\n enabled: !isApplication,\n webhookUrl: isApplication ? '' : 'https://siem.example.com/v1/events',\n authMethod: isApplication ? SIEMAuthMethod.NONE : SIEMAuthMethod.BEARER_TOKEN,\n ...(!isApplication ? { authCredential: '••••••••' } : {}),\n authHeaderName: WildoHeaderKeys.API_KEY,\n eventFormat: SIEMEventFormat.OCSF,\n eventFilter: {\n categories: [\n SIEMEventCategory.AUTHENTICATION,\n SIEMEventCategory.AUTHORIZATION,\n SIEMEventCategory.USER_LIFECYCLE,\n ],\n severityMinimum: SIEMFilterSeverity.WARNING,\n specificEventTypes: ['authentication.login.failed', 'authorization.access.denied'],\n },\n delivery: SIEM_EXPORT_DELIVERY_EXAMPLE,\n customHeaders: { 'x-customer-tenant': isApplication ? 'wonder-todos' : 'northwind' },\n includeRawEventData: true,\n includeDeviceContext: true,\n createdAt: '2026-08-01T09:00:00.000Z',\n updatedAt: '2026-08-18T13:40:00.000Z',\n ...scopeIdentity,\n };\n\n return {\n isApplication,\n scopeIdentity,\n record,\n contextRecord: {\n ...record,\n [relationshipField]: { _id: scopeId },\n },\n summaryRecord: {\n _id: record._id,\n enabled: record.enabled,\n },\n };\n}\n\nfunction buildSiemExportBase(\n resourceType: SiemResourceType,\n memberName: SiemResourceTypeMemberName,\n): ResourceSpecificationConfig<SiemCustom, SiemCore, SiemSchema> {\n const reference = createSiemExportReferenceExamples(resourceType);\n return resourceSpecification<SiemCustom, SiemCore, SiemSchema>(\n siemExportConfigPolymorphicFactories[resourceType],\n SiemExportConfigBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SIEM export configuration: where audit/security events are delivered, how they are signed or authenticated, and how they are batched to an HTTPS webhook endpoint.',\n businessRole: 'The outbound integration point that turns internal audit events into a customer SIEM or log pipeline.',\n lifecycleRole: 'Seeded per scope, enabled or disabled through the administration configuration flow, and edited for destinations, credentials, filtering, and delivery policy.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SiemExportConfigBaseSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactoryCollectionEntry: {\n collectionSymbol: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'siemExportConfigPolymorphicFactories',\n symbolKind: CodeSymbolKind.FACTORY,\n },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName,\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSourceEntries: [\n {\n collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n {\n collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR },\n identifierField: 'collectionKey',\n identifierValue: resourceType,\n },\n ],\n notes: [\n 'Application variant in main presets may override `views` to empty; merged admin may still provide addressable `READ` for super-admin flows — the spec’s frontend section reflects operations that exist in the factory regardless.',\n ],\n },\n fields: {\n enabled: schemaShape.enabled.booleanSpec({\n meaning: 'When true, the pipeline may emit configured events; when false, deliveries should be suppressed without deleting configuration.',\n }),\n webhookUrl: schemaShape.webhookUrl.stringSpec({ meaning: 'Destination HTTPS URL for JSON/CEF/LEEF payload posts.', importance: FieldSemanticImportance.PRIMARY }),\n authMethod: schemaShape.authMethod.enumSpec({\n meaning: 'How the outbound webhook authenticates to the customer endpoint.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SIEMAuthMethod',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.CONST_OBJECT,\n },\n values: {\n [SIEMAuthMethod.NONE]: { meaning: 'No client authentication (rare; usually dev-only).' },\n [SIEMAuthMethod.BEARER_TOKEN]: { meaning: 'Bearer token in the Authorization header. You supply the token when you save the configuration; reading it back returns `••••••••` rather than the value.' },\n [SIEMAuthMethod.API_KEY_HEADER]: { meaning: 'API key in a header you name. When you do not name one, the default is `x-api-key`.' },\n [SIEMAuthMethod.HMAC_SHA256]: { meaning: 'The payload is signed with a shared secret your receiver verifies. You supply the secret when you save the configuration; reading it back returns `••••••••` rather than the value.' },\n },\n }),\n authCredential: schemaShape.authCredential.stringSpec({\n meaning: 'Write-only credential used by the selected outbound authentication method. Reads return only the masked marker `••••••••`; sending that marker back preserves the existing secret, while sending another value replaces it.',\n }),\n authHeaderName: schemaShape.authHeaderName.stringSpec({\n meaning: 'Header name used only by `api_key_header`. The configured credential is sent as that header’s complete value; prefixes such as `Splunk ` or `ApiKey ` must therefore be included in the stored value when the receiver requires them.',\n }),\n eventFormat: schemaShape.eventFormat.enumSpec({\n meaning: 'Payload wire format the receiver expects (structured JSON, CEF, LEEF, or OCSF). '\n + 'The two text formats are delivered as `text/plain`; the two JSON formats as `application/json`.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SIEMEventFormat',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.CONST_OBJECT,\n },\n values: {\n [SIEMEventFormat.JSON_STRUCTURED]: { meaning: 'Product-native JSON schema for structured log ingest. Carries every envelope field.' },\n [SIEMEventFormat.CEF]: {\n meaning: 'Common Event Format for legacy SIEM connectors. Reaches 20 of the 27 envelope fields — CEF publishes only six general-purpose '\n + '`csN` slots, and a minted custom extension is unreportable in ArcSight ESM, so the remainder are deliberately omitted rather than force-fitted.',\n },\n [SIEMEventFormat.LEEF]: {\n meaning: 'LEEF v2 for IBM QRadar. Reaches all 27 envelope fields, because a LEEF custom key stays searchable in QRadar where a CEF custom extension does not.',\n },\n [SIEMEventFormat.OCSF]: {\n meaning: 'Open Cybersecurity Schema Framework — the JSON-native security schema, delivered as `application/json`. A PEER of the text formats rather than '\n + 'a replacement: an audit event maps onto an OCSF CLASS natively (Authentication, User Management, API Activity, Entity Management) instead of being '\n + 'force-fit into a custom slot. The class is selected from the event category, and `type_uid` is derived, never authored.',\n },\n },\n }),\n eventFilter: schemaShape.eventFilter.objectSpec({\n meaning: 'Filter block: selected high-level event categories, minimum SIEM severity, and an optional exact allowlist of event-type identifiers. `specificEventTypes` uses exact string equality, not substring or wildcard matching.',\n }),\n delivery: schemaShape.delivery.objectSpec({\n meaning: 'Retry and timeout policy for each outbound event. `retryAttempts`, `retryBackoffSeconds` and `timeoutSeconds` are enforced. `batchSize` and `batchWindowSeconds` are accepted and stored but the current worker still posts one event per request; do not size a receiver on the assumption that batching occurs.',\n }),\n customHeaders: schemaShape.customHeaders.codeSpec({\n meaning: 'Additional static HTTP headers included with every delivery. The selected authentication method is applied afterward and overrides a custom header with the same name.',\n }),\n includeRawEventData: schemaShape.includeRawEventData.booleanSpec({\n meaning: 'Reserved configuration flag. It is currently accepted and stored but is not read by the event-envelope or delivery path; changing it does not remove `eventData` from emitted events.',\n }),\n includeDeviceContext: schemaShape.includeDeviceContext.booleanSpec({\n meaning: 'Reserved configuration flag. It is currently accepted and stored but is not read by the event-envelope or delivery path; changing it does not remove available IP address or user-agent context.',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: reference.isApplication\n ? 'Inspect the application-scoped SIEM export configuration and its current activation state.'\n : 'Inspect the organization SIEM export destination, authentication, filtering and delivery policy.',\n outcome: reference.isApplication\n ? 'Application administrators can see the reserved configuration record. This framework version does not produce application-scoped SIEM events, so enabling this record does not start delivery.'\n : 'Organization administrators can verify the active destination and policy without receiving the stored credential value.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: reference.isApplication\n ? 'The reserved application-scoped configuration was returned. No application-scoped event producer is available in this framework version.'\n : 'The organization SIEM export configuration was returned, with any stored credential represented only by the redacted placeholder.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to read the SIEM export configuration.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SIEM export configuration has been provisioned for this scope yet.' },\n ],\n idempotent: true,\n examples: [{\n title: reference.isApplication\n ? 'Inspect the inactive application SIEM configuration'\n : 'Inspect the organization SIEM export configuration',\n request: reference.scopeIdentity,\n response: reference.record,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: reference.isApplication\n ? 'Inspect the application configuration with scope context'\n : 'Inspect the organization configuration with scope context',\n request: reference.scopeIdentity,\n response: reference.contextRecord,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: reference.isApplication\n ? 'Inspect the application SIEM activation summary'\n : 'Inspect the organization SIEM activation summary',\n request: reference.scopeIdentity,\n response: reference.summaryRecord,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Create the per-scope SIEM config row; internal-only (INTERNAL_CALL) variant in the factory — no public HTTP create route. Materialised by the framework default-seed (repository tier) or, when that was bypassed, a system-context lazy-create.',\n outcome: 'The scope gains a new SIEM export document.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SIEM export configuration record was created for the scope and returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The configuration fails schema validation (e.g. a non-HTTPS `webhookUrl`, an unknown `eventFormat`, or an `authMethod` missing its required credential).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a security-admin/platform operator; this is an internal-only (INTERNAL_CALL) bootstrap path, not a self-serve create.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A SIEM export configuration already exists for this scope — the resource is one-per-scope, so a second create collides.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Provision a SIEM export configuration for a scope',\n request: {\n enabled: true,\n webhookUrl: 'https://siem.example.com/ingest',\n authMethod: SIEMAuthMethod.BEARER_TOKEN,\n eventFormat: SIEMEventFormat.JSON_STRUCTURED,\n },\n response: {\n _id: 'siemcfg_01HX2…',\n enabled: true,\n webhookUrl: 'https://siem.example.com/ingest',\n authMethod: SIEMAuthMethod.BEARER_TOKEN,\n eventFormat: SIEMEventFormat.JSON_STRUCTURED,\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Update webhook, format, event filter, or delivery block after validation (INTERNAL_CALL update — no public HTTP route; reached through `AuthOrganizationConfigurationService.saveSiemExportConfig` on the admin’s execution context, preserving admin audit attribution).',\n outcome: 'Downstream services pick up changes for subsequent deliveries.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SIEM export configuration was updated and the new settings (secrets redacted) are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited destination, format, filter, or delivery block fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the security-admin role required to change SIEM export settings.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SIEM export configuration exists for this scope to update.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the SIEM export 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 SIEM export 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 'Credentials are write-only: `authCredential` and any HMAC secret are supplied when the configuration is saved and are never returned by a read, which answers `••••••••` instead. There is no list or search over these rows, so a credential cannot be recovered from the configuration once it is stored.',\n 'Event payload shapes are a separate concern from this row: `eventFilter` and `eventFormat` do not re-specify the full audit log schema, only the export fan-out contract.',\n ...(reference.isApplication\n ? ['Application-scoped SIEM export is reserved in this framework version: no application event producer feeds this configuration or its delivery queue. Consumers must not treat `enabled: true` as evidence that application-scoped events are being exported.']\n : []),\n ],\n }),\n { resourcePrimaryScope: siemExportResourcePrimaryScope[resourceType] },\n );\n}\n\nfunction buildSiemExportSpec(\n resourceType: SiemResourceType,\n memberName: SiemResourceTypeMemberName,\n): ResourceSpecificationConfig<SiemCustom, SiemCore, SiemSchema> {\n const base = buildSiemExportBase(resourceType, memberName);\n const main = resolveSiemExportUI(securityMainPresets as Partial<Record<string, unknown>>, resourceType, 'securityMainPresets');\n const admin = resolveSiemExportUI(securityAdminPresets as Partial<Record<string, unknown>>, resourceType, 'securityAdminPresets');\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(resourceFrontendConfiguration(main), resourceFrontendConfiguration(admin)),\n base,\n () => ({\n layout: {\n purpose: 'Field-edit layout in `security` uses section refs `status`, `destination`, `authentication`, `format`, and `advanced` (collapsible) with a settings-row edit chrome for most controls.',\n displayPurpose: 'Read template mirrors the same section ordering for a consistent admin walkthrough of SIEM settings.',\n sections: {\n status: {\n purpose: 'On/off and health posture for the SIEM integration.',\n whenToUse: 'First decision point: enable or pause exports without losing configuration.',\n textSlots: {\n title: { purpose: 'Name the “SIEM is active / paused” card.' },\n description: { purpose: 'Clarify that disabled mode stops new deliveries; existing DLQ may still be visible elsewhere.' },\n },\n },\n destination: {\n purpose: 'The HTTPS endpoint receiving exported events.',\n whenToUse: 'Initial setup and any rotation of the customer-side ingress URL.',\n textSlots: {\n title: { purpose: 'Label the webhook / destination block.' },\n description: { purpose: 'Mention that TLS and DNS must be valid from Wildo’s egress perspective.' },\n },\n },\n authentication: {\n purpose: 'Auth method, credential (stored server-side), and header naming for key-based methods.',\n whenToUse: 'When `authMethod` is not `NONE` or when the customer hardens their webhook.',\n textSlots: {\n title: { purpose: 'Label the authentication and secrets block.' },\n description: { purpose: 'Never echo raw secrets; reference rotation procedures instead.' },\n },\n },\n format: {\n purpose: 'Wire format and the event filter: categories, minimum severity, and allow-listed event type strings when used.',\n whenToUse: 'Tightening what is exported to match SIEM capacity and policy.',\n textSlots: {\n title: { purpose: 'Label the format and filter area.' },\n description: { purpose: 'Tie the filter to `eventType` strings produced by the audit pipeline, not arbitrary JSON paths.' },\n },\n },\n advanced: {\n purpose: 'Delivery tuning (batch size/window, retries, timeouts) and transport extras such as `customHeaders` and optional raw/device context flags.',\n whenToUse: 'After basic connectivity is proven and operators tune throughput and observability cost.',\n textSlots: {\n title: { purpose: 'Label the advanced and tuning section.' },\n description: { purpose: 'Clarify that bad tuning can delay or drop events; document incident procedures separately.' },\n },\n },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Read-oriented settings and status host in merged presets (addressable in main org/app SIEM UIs; admin merge may differ).', whenToUse: 'Navigating the SIEM configuration screen in security settings.' },\n },\n }),\n );\n}\n\nexport const organizationSiemExportConfigResourceSpecification = buildSiemExportSpec(\n CoreResourceType.ORGANIZATION_SIEM_EXPORT_CONFIG,\n 'ORGANIZATION_SIEM_EXPORT_CONFIG',\n);\nexport const applicationSiemExportConfigResourceSpecification = buildSiemExportSpec(\n CoreResourceType.APPLICATION_SIEM_EXPORT_CONFIG,\n 'APPLICATION_SIEM_EXPORT_CONFIG',\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"sso-config.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/sso-config.resource.specification.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI3B,oBAAoB,EAGrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AAkWrC,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAA6E,CAAC;AACrI,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAA2E,CAAC"}
1
+ {"version":3,"file":"sso-config.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/sso-config.resource.specification.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI3B,oBAAoB,EAGrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AA0WrC,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAA6E,CAAC;AACrI,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAA2E,CAAC"}
@@ -280,7 +280,15 @@ function buildBase(rt, member) {
280
280
  errorScenarios: [
281
281
  { code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`domain` is missing or malformed.', errorCode: 'VALIDATION_FAILED' },
282
282
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the org/app admin role that owns domain configuration for this scope.' },
283
- { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'This scope holds no claim on that domain, so there is nothing to revoke.', errorCode: 'SSO_DOMAIN_NOT_CLAIMED' },
283
+ /**
284
+ * 409, not 404 — corrected 2026-09-10 when the refusal was driven over HTTP for the
285
+ * first time. The sibling `verifyDomain` above documents the SAME `errorCode` at 409
286
+ * for the same condition, and only the CONFLICT form can actually carry that code to a
287
+ * client: `sanitizeErrorForClient` allow-lists a refusal's context for VALIDATION /
288
+ * CONFLICT / RATE_LIMIT and strips it whole otherwise, so the 404 form answered a bare
289
+ * `not_found` and this `errorCode` described something no caller could observe.
290
+ */
291
+ { code: HttpResponseStatusCode.CONFLICT_409, when: 'This scope holds no claim on that domain, so there is nothing to revoke.', errorCode: 'SSO_DOMAIN_NOT_CLAIMED' },
284
292
  ],
285
293
  idempotent: false,
286
294
  examples: [