@wildo-ai/saas-specifications 1.1.2 → 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 (1007) 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 +4 -6
  21. package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
  22. package/dist/esm/_core/brand/brand-asset.schemas.js +4 -12
  23. package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
  24. package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts.map +1 -1
  25. package/dist/esm/_core/brand/brand-generation.schemas.d.ts +5 -3
  26. package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
  27. package/dist/esm/_core/brand/brand-generation.schemas.js +5 -2
  28. package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
  29. package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts.map +1 -1
  30. package/dist/esm/_core/brand/brand-name.schemas.d.ts.map +1 -1
  31. package/dist/esm/_core/brand/brand-snapshot-validation.d.ts.map +1 -1
  32. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +10 -3
  33. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
  34. package/dist/esm/_core/brand/brand-snapshot.schemas.js +10 -2
  35. package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
  36. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
  37. package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -1
  38. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  39. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +15 -5
  40. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
  41. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +40 -3
  42. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  43. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +85 -6
  44. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  45. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  46. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  47. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts.map +1 -1
  48. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
  49. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +10 -4
  50. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
  51. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +15 -0
  52. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
  53. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
  54. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
  55. package/dist/esm/_core/business-model-lite/business-model-references.schemas.d.ts.map +1 -1
  56. package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -1
  57. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
  58. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
  59. package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
  60. package/dist/esm/_core/compliance-documents/compliance-completeness-statement.schemas.d.ts.map +1 -1
  61. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +118 -0
  62. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
  63. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +65 -3
  64. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
  65. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +508 -7
  66. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  67. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +489 -19
  68. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  69. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -1
  70. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
  71. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -1
  72. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +2 -0
  73. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  74. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +2 -0
  75. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  76. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
  77. package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
  78. package/dist/esm/_core/cross-registry-assertions.d.ts.map +1 -1
  79. package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
  80. package/dist/esm/_core/definition-specification-validators.d.ts.map +1 -1
  81. package/dist/esm/_core/definition-specification.schemas.d.ts.map +1 -1
  82. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
  83. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
  84. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  85. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  86. package/dist/esm/_core/error-message-specification.schemas.d.ts.map +1 -1
  87. package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
  88. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts.map +1 -1
  89. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts +6 -7
  90. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  91. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js +6 -13
  92. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  93. package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts +0 -11
  94. package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
  95. package/dist/esm/_core/expert-personas/expert-persona-validation.js +0 -19
  96. package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
  97. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts +1 -2
  98. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
  99. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js +1 -2
  100. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
  101. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
  102. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  103. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  104. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +9 -9
  105. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts.map +1 -1
  106. package/dist/esm/_core/feature-drafts/capability-map-output-set-validation.d.ts.map +1 -1
  107. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
  108. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -1
  109. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -1
  110. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
  111. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js +17 -4
  112. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
  113. package/dist/esm/_core/feature-drafts/feature-specification-drafts-validation.d.ts.map +1 -1
  114. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  115. package/dist/esm/_core/feature-specification.schemas.d.ts.map +1 -1
  116. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
  117. package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
  118. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
  119. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
  120. package/dist/esm/_core/index.d.ts +1 -0
  121. package/dist/esm/_core/index.d.ts.map +1 -1
  122. package/dist/esm/_core/index.js +1 -0
  123. package/dist/esm/_core/index.js.map +1 -1
  124. package/dist/esm/_core/market/feature-benefit.schemas.d.ts.map +1 -1
  125. package/dist/esm/_core/market/inherit-from.d.ts.map +1 -1
  126. package/dist/esm/_core/market/is-benefit-available.d.ts.map +1 -1
  127. package/dist/esm/_core/market/market-alternative.schemas.d.ts.map +1 -1
  128. package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts.map +1 -1
  129. package/dist/esm/_core/market/market-buying-journey.schemas.d.ts.map +1 -1
  130. package/dist/esm/_core/market/market-category.schemas.d.ts.map +1 -1
  131. package/dist/esm/_core/market/market-channel.schemas.d.ts.map +1 -1
  132. package/dist/esm/_core/market/market-context-block.schemas.d.ts.map +1 -1
  133. package/dist/esm/_core/market/market-gain.schemas.d.ts.map +1 -1
  134. package/dist/esm/_core/market/market-generation.schemas.d.ts.map +1 -1
  135. package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
  136. package/dist/esm/_core/market/market-job.schemas.d.ts.map +1 -1
  137. package/dist/esm/_core/market/market-message-template.schemas.d.ts.map +1 -1
  138. package/dist/esm/_core/market/market-objection.schemas.d.ts.map +1 -1
  139. package/dist/esm/_core/market/market-pain.schemas.d.ts.map +1 -1
  140. package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
  141. package/dist/esm/_core/market/market-positioning.schemas.d.ts.map +1 -1
  142. package/dist/esm/_core/market/market-proof.schemas.d.ts.map +1 -1
  143. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  144. package/dist/esm/_core/market/market-scoring.d.ts.map +1 -1
  145. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +18 -18
  146. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  147. package/dist/esm/_core/market/market-snapshot-generation.schemas.js +5 -40
  148. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  149. package/dist/esm/_core/market/market-snapshot-validation.d.ts +15 -0
  150. package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
  151. package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
  152. package/dist/esm/_core/market/market-snapshot.schemas.d.ts.map +1 -1
  153. package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts.map +1 -1
  154. package/dist/esm/_core/market/market-trigger.schemas.d.ts.map +1 -1
  155. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
  156. package/dist/esm/_core/milestone-specification.schemas.d.ts.map +1 -1
  157. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
  158. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
  159. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js +11 -5
  160. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
  161. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +72 -9
  162. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  163. package/dist/esm/_core/placement-plan/placement-plan-validation.js +68 -20
  164. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  165. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
  166. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +12 -5
  167. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  168. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +12 -5
  169. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  170. package/dist/esm/_core/product-specification.schemas.d.ts.map +1 -1
  171. package/dist/esm/_core/provider-specification.schemas.d.ts +98 -0
  172. package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -0
  173. package/dist/esm/_core/provider-specification.schemas.js +124 -0
  174. package/dist/esm/_core/provider-specification.schemas.js.map +1 -0
  175. package/dist/esm/_core/required-features-specification.schemas.d.ts.map +1 -1
  176. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  177. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
  178. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts.map +1 -1
  179. package/dist/esm/_core/requirements/requirements-references.schemas.d.ts.map +1 -1
  180. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  181. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +13 -8
  182. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
  183. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts +15 -0
  184. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
  185. package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
  186. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  187. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
  188. package/dist/esm/_core/resource-specification-registry-alignment.d.ts.map +1 -1
  189. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  190. package/dist/esm/_core/resource-type-member-name.types.d.ts.map +1 -1
  191. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts.map +1 -1
  192. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
  193. package/dist/esm/_core/roadmap/roadmap-references.schemas.d.ts.map +1 -1
  194. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
  195. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js +7 -2
  196. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
  197. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts +15 -0
  198. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
  199. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
  200. package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts.map +1 -1
  201. package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -1
  202. package/dist/esm/_core/role-specification.schemas.d.ts.map +1 -1
  203. package/dist/esm/_core/sidebar-section-specification.schemas.d.ts.map +1 -1
  204. package/dist/esm/_core/system-email-template-specification.schemas.d.ts.map +1 -1
  205. package/dist/esm/_core/translation-slot-specification.schemas.d.ts.map +1 -1
  206. package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
  207. package/dist/esm/_core/utils/family-ref-stamping.d.ts +64 -0
  208. package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -0
  209. package/dist/esm/_core/utils/family-ref-stamping.js +73 -0
  210. package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -0
  211. package/dist/esm/_core/utils/retention-marker-field-specs.d.ts.map +1 -1
  212. package/dist/esm/_core/utils/validate-field-shapes.d.ts.map +1 -1
  213. package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts.map +1 -1
  214. package/dist/esm/_core/vision/vision-constraint.schemas.d.ts.map +1 -1
  215. package/dist/esm/_core/vision/vision-idea.schemas.d.ts.map +1 -1
  216. package/dist/esm/_core/vision/vision-mission.schemas.d.ts.map +1 -1
  217. package/dist/esm/_core/vision/vision-problem.schemas.d.ts.map +1 -1
  218. package/dist/esm/_core/vision/vision-references.schemas.d.ts.map +1 -1
  219. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
  220. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js +23 -9
  221. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
  222. package/dist/esm/_core/vision/vision-snapshot-validation.d.ts.map +1 -1
  223. package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts.map +1 -1
  224. package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts.map +1 -1
  225. package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -1
  226. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts +0 -4
  227. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +1 -1
  228. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts +7 -7
  229. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  230. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js +6 -7
  231. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  232. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts +3 -3
  233. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
  234. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js +3 -3
  235. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
  236. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts +2 -2
  237. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
  238. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js +2 -2
  239. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
  240. package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -1
  241. package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -1
  242. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts.map +1 -1
  243. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts +18 -6
  244. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  245. package/dist/esm/application-creation/journey.application-creation.schemas.js +18 -6
  246. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  247. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +16 -23
  248. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  249. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +65 -27
  250. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  251. package/dist/esm/application-creation/specification-content-validation-state.application-creation.schemas.d.ts.map +1 -1
  252. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  253. package/dist/esm/application-creation-playbook-runtime.exports.d.ts.map +1 -1
  254. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  255. package/dist/esm/assurance/application-document-publication.schemas.d.ts +20 -6
  256. package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
  257. package/dist/esm/assurance/application-document-publication.schemas.js +26 -10
  258. package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
  259. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +83 -49
  260. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  261. package/dist/esm/assurance/assurance-authority-basis.definitions.js +194 -60
  262. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  263. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +25 -0
  264. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  265. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +30 -0
  266. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
  267. package/dist/esm/assurance/assurance-document-blueprint-selection.js +40 -0
  268. package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
  269. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  270. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  271. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +49 -0
  272. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -0
  273. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +2832 -0
  274. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -0
  275. package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -1
  276. package/dist/esm/assurance/assurance-foundation.schemas.d.ts +43 -0
  277. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  278. package/dist/esm/assurance/assurance-foundation.schemas.js +56 -0
  279. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  280. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +44 -7
  281. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  282. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +64 -7
  283. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  284. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts +8 -1
  285. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  286. package/dist/esm/assurance/assurance-program-generation.schemas.js +10 -2
  287. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  288. package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -1
  289. package/dist/esm/assurance/assurance-program.schemas.d.ts +463 -11
  290. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  291. package/dist/esm/assurance/assurance-program.schemas.js +301 -5
  292. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  293. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  294. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  295. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts +35 -0
  296. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -0
  297. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +1028 -0
  298. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -0
  299. package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -1
  300. package/dist/esm/assurance.exports.d.ts.map +1 -1
  301. package/dist/esm/companion-exports.d.ts +7 -6
  302. package/dist/esm/companion-exports.d.ts.map +1 -1
  303. package/dist/esm/companion-exports.js.map +1 -1
  304. package/dist/esm/engine/_bootstrap.d.ts.map +1 -1
  305. package/dist/esm/engine/_bootstrap.js +3 -1
  306. package/dist/esm/engine/_bootstrap.js.map +1 -1
  307. package/dist/esm/engine/applications/index.d.ts.map +1 -1
  308. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  309. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js +13 -1
  310. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  311. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  312. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js +1 -1
  313. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  314. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts +2 -0
  315. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  316. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js +14 -2
  317. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  318. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
  319. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js +9 -9
  320. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  321. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  322. package/dist/esm/engine/applications/resources/applications.resource.specification.js +1 -1
  323. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  324. package/dist/esm/engine/applications/resources/index.d.ts.map +1 -1
  325. package/dist/esm/engine/auth/index.d.ts.map +1 -1
  326. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +47 -0
  327. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -0
  328. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +355 -0
  329. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -0
  330. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -1
  331. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js +3 -3
  332. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -1
  333. package/dist/esm/engine/auth/resources/index.d.ts +1 -0
  334. package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
  335. package/dist/esm/engine/auth/resources/index.js +1 -0
  336. package/dist/esm/engine/auth/resources/index.js.map +1 -1
  337. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  338. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js +1 -1
  339. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  340. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  341. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js +13 -1
  342. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  343. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts +2 -0
  344. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  345. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js +14 -2
  346. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  347. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts +32 -0
  348. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -0
  349. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js +308 -0
  350. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -0
  351. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  352. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js +4 -4
  353. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  354. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  355. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js +2 -2
  356. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  357. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  358. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js +6 -6
  359. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  360. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  361. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js +9 -9
  362. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  363. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  364. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js +2 -2
  365. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  366. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts +9 -25
  367. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  368. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +112 -10
  369. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  370. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +2 -6
  371. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  372. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts +32 -0
  373. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -0
  374. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js +297 -0
  375. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -0
  376. package/dist/esm/engine/billing/index.d.ts.map +1 -1
  377. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  378. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js +4 -3
  379. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  380. package/dist/esm/engine/billing/resources/billing-api-reference-examples.d.ts.map +1 -1
  381. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
  382. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js +2 -2
  383. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  384. package/dist/esm/engine/billing/resources/index.d.ts.map +1 -1
  385. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  386. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js +3 -3
  387. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  388. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  389. package/dist/esm/engine/billing/resources/prices.resource.specification.js +7 -7
  390. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  391. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  392. package/dist/esm/engine/billing/resources/products.resource.specification.js +7 -7
  393. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  394. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  395. package/dist/esm/engine/billing/resources/promotions.resource.specification.js +14 -12
  396. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  397. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  398. package/dist/esm/engine/billing/resources/referrals.resource.specification.js +7 -7
  399. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  400. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  401. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js +6 -3
  402. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  403. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts +7 -3
  404. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  405. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js +28 -11
  406. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  407. package/dist/esm/engine/compliance/index.d.ts.map +1 -1
  408. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +69 -0
  409. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -0
  410. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +316 -0
  411. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -0
  412. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  413. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js +8 -8
  414. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  415. package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
  416. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  417. package/dist/esm/engine/compliance/resources/index.js +1 -0
  418. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  419. package/dist/esm/engine/engine-resource-specifications.registry.d.ts +2 -2
  420. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  421. package/dist/esm/engine/engine-resource-specifications.registry.js +10 -2
  422. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  423. package/dist/esm/engine/engine-resource-sub-domain.d.ts +20 -0
  424. package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -1
  425. package/dist/esm/engine/engine-resource-sub-domain.js +66 -0
  426. package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -1
  427. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  428. package/dist/esm/engine/errors/error-messages.specification.js +33 -0
  429. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  430. package/dist/esm/engine/errors/index.d.ts.map +1 -1
  431. package/dist/esm/engine/features/_engine-feature-shared.d.ts.map +1 -1
  432. package/dist/esm/engine/features/advanced-analytics.feature.specification.d.ts.map +1 -1
  433. package/dist/esm/engine/features/audit-logs.feature.specification.d.ts.map +1 -1
  434. package/dist/esm/engine/features/audit-logs.feature.specification.js +4 -4
  435. package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
  436. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
  437. package/dist/esm/engine/features/core-limits.feature.specifications.js +7 -7
  438. package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
  439. package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
  440. package/dist/esm/engine/features/directory-provisioning.feature.specification.d.ts.map +1 -1
  441. package/dist/esm/engine/features/index.d.ts.map +1 -1
  442. package/dist/esm/engine/features/m2m-webhook-delivery.feature.specification.d.ts.map +1 -1
  443. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  444. package/dist/esm/engine/features/resources/application-features.resource.specification.js +3 -3
  445. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  446. package/dist/esm/engine/features/resources/index.d.ts.map +1 -1
  447. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  448. package/dist/esm/engine/features/resources/organization-features.resource.specification.js +3 -3
  449. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  450. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
  451. package/dist/esm/engine/features/resources/user-features.resource.specification.js +3 -3
  452. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  453. package/dist/esm/engine/features/security-event-export.feature.specification.d.ts.map +1 -1
  454. package/dist/esm/engine/features/single-sign-on.feature.specification.d.ts.map +1 -1
  455. package/dist/esm/engine/files/index.d.ts.map +1 -1
  456. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  457. package/dist/esm/engine/files/resources/files.resource.specification.js +11 -11
  458. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  459. package/dist/esm/engine/files/resources/index.d.ts.map +1 -1
  460. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  461. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js +11 -11
  462. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  463. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
  464. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js +4 -4
  465. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  466. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  467. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js +2 -2
  468. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  469. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  470. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
  471. package/dist/esm/engine/frontend-components/actions/action-button.frontend-component.specification.d.ts.map +1 -1
  472. package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.d.ts.map +1 -1
  473. package/dist/esm/engine/frontend-components/actions/button-group-text.frontend-component.specification.d.ts.map +1 -1
  474. package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.d.ts.map +1 -1
  475. package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.d.ts.map +1 -1
  476. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-artifact-list.frontend-component.specification.d.ts.map +1 -1
  477. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-artifact.frontend-component.specification.d.ts.map +1 -1
  478. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-code-block.frontend-component.specification.d.ts.map +1 -1
  479. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-image.frontend-component.specification.d.ts.map +1 -1
  480. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-web-preview.frontend-component.specification.d.ts.map +1 -1
  481. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation.frontend-component.specification.d.ts.map +1 -1
  482. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-message.frontend-component.specification.d.ts.map +1 -1
  483. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
  484. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-sources.frontend-component.specification.d.ts.map +1 -1
  485. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-suggestion.frontend-component.specification.d.ts.map +1 -1
  486. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-suggestions.frontend-component.specification.d.ts.map +1 -1
  487. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.d.ts.map +1 -1
  488. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.d.ts.map +1 -1
  489. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-decision-request.frontend-component.specification.d.ts.map +1 -1
  490. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-human-input-request.frontend-component.specification.d.ts.map +1 -1
  491. package/dist/esm/engine/frontend-components/ai-elements/execution/ai-confirmation.frontend-component.specification.d.ts.map +1 -1
  492. package/dist/esm/engine/frontend-components/ai-elements/execution/ai-queue.frontend-component.specification.d.ts.map +1 -1
  493. package/dist/esm/engine/frontend-components/ai-elements/execution/ai-task.frontend-component.specification.d.ts.map +1 -1
  494. package/dist/esm/engine/frontend-components/ai-elements/execution/ai-tool.frontend-component.specification.d.ts.map +1 -1
  495. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
  496. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-connection.frontend-component.specification.d.ts.map +1 -1
  497. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-controls.frontend-component.specification.d.ts.map +1 -1
  498. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-edge.frontend-component.specification.d.ts.map +1 -1
  499. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
  500. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-panel.frontend-component.specification.d.ts.map +1 -1
  501. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-toolbar.frontend-component.specification.d.ts.map +1 -1
  502. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-capabilities.frontend-component.specification.d.ts.map +1 -1
  503. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-card.frontend-component.specification.d.ts.map +1 -1
  504. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-list.frontend-component.specification.d.ts.map +1 -1
  505. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-prompt-spec.frontend-component.specification.d.ts.map +1 -1
  506. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-context.frontend-component.specification.d.ts.map +1 -1
  507. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-model-selector.frontend-component.specification.d.ts.map +1 -1
  508. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-open-in-chat.frontend-component.specification.d.ts.map +1 -1
  509. package/dist/esm/engine/frontend-components/ai-elements/shared/ai-loader.frontend-component.specification.d.ts.map +1 -1
  510. package/dist/esm/engine/frontend-components/ai-elements/shared/ai-shimmer.frontend-component.specification.d.ts.map +1 -1
  511. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.d.ts.map +1 -1
  512. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-checkpoint.frontend-component.specification.d.ts.map +1 -1
  513. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-inline-citation.frontend-component.specification.d.ts.map +1 -1
  514. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-plan.frontend-component.specification.d.ts.map +1 -1
  515. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-reasoning.frontend-component.specification.d.ts.map +1 -1
  516. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.d.ts.map +1 -1
  517. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts +5 -0
  518. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -0
  519. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +81 -0
  520. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -0
  521. package/dist/esm/engine/frontend-components/app/app-layout-error-boundary.frontend-component.specification.d.ts.map +1 -1
  522. package/dist/esm/engine/frontend-components/app/app-layout-home.frontend-component.specification.d.ts.map +1 -1
  523. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.d.ts.map +1 -1
  524. package/dist/esm/engine/frontend-components/app/app-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  525. package/dist/esm/engine/frontend-components/app/app-layout-router-error-boundary.frontend-component.specification.d.ts.map +1 -1
  526. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.d.ts.map +1 -1
  527. package/dist/esm/engine/frontend-components/app/app-layouts-test-component.frontend-component.specification.d.ts.map +1 -1
  528. package/dist/esm/engine/frontend-components/app/lifecycle-home-activation-progress.frontend-component.specification.d.ts.map +1 -1
  529. package/dist/esm/engine/frontend-components/app/lifecycle-home-dashboard.frontend-component.specification.d.ts.map +1 -1
  530. package/dist/esm/engine/frontend-components/app/lifecycle-home-welcome-back.frontend-component.specification.d.ts.map +1 -1
  531. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts +4 -0
  532. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -0
  533. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js +22 -0
  534. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -0
  535. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  536. package/dist/esm/engine/frontend-components/app/public-layout-static-content-container.frontend-component.specification.d.ts.map +1 -1
  537. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.d.ts.map +1 -1
  538. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
  539. package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.d.ts.map +1 -1
  540. package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.d.ts.map +1 -1
  541. package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.d.ts.map +1 -1
  542. package/dist/esm/engine/frontend-components/auth/public-layout-mfa-challenge.frontend-component.specification.d.ts.map +1 -1
  543. package/dist/esm/engine/frontend-components/auth/public-layout-oauth-consent.frontend-component.specification.d.ts.map +1 -1
  544. package/dist/esm/engine/frontend-components/auth/public-layout-oauth-logged-out.frontend-component.specification.d.ts.map +1 -1
  545. package/dist/esm/engine/frontend-components/auth/public-layout-oauth-logout-confirm.frontend-component.specification.d.ts.map +1 -1
  546. package/dist/esm/engine/frontend-components/auth/public-layout-one-off-session.frontend-component.specification.d.ts.map +1 -1
  547. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.d.ts.map +1 -1
  548. package/dist/esm/engine/frontend-components/auth/public-layout-user-confirm-email.frontend-component.specification.d.ts.map +1 -1
  549. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.d.ts.map +1 -1
  550. package/dist/esm/engine/frontend-components/auth/public-layout-user-password-lost.frontend-component.specification.d.ts.map +1 -1
  551. package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.d.ts.map +1 -1
  552. package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.d.ts.map +1 -1
  553. package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.d.ts.map +1 -1
  554. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.d.ts.map +1 -1
  555. package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.d.ts.map +1 -1
  556. package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.d.ts.map +1 -1
  557. package/dist/esm/engine/frontend-components/data-display/avatar.frontend-component.specification.d.ts.map +1 -1
  558. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
  559. package/dist/esm/engine/frontend-components/data-display/description-details.frontend-component.specification.d.ts.map +1 -1
  560. package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.d.ts.map +1 -1
  561. package/dist/esm/engine/frontend-components/data-display/description-term.frontend-component.specification.d.ts.map +1 -1
  562. package/dist/esm/engine/frontend-components/data-display/formatters/_display-field-spec.factory.d.ts.map +1 -1
  563. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-bigdecimal.frontend-component.specification.d.ts.map +1 -1
  564. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-boolean.frontend-component.specification.d.ts.map +1 -1
  565. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-code.frontend-component.specification.d.ts.map +1 -1
  566. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-date.frontend-component.specification.d.ts.map +1 -1
  567. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-datetime.frontend-component.specification.d.ts.map +1 -1
  568. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-duration.frontend-component.specification.d.ts.map +1 -1
  569. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-enum.frontend-component.specification.d.ts.map +1 -1
  570. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-audio.frontend-component.specification.d.ts.map +1 -1
  571. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.d.ts.map +1 -1
  572. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-gallery.frontend-component.specification.d.ts.map +1 -1
  573. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-image.frontend-component.specification.d.ts.map +1 -1
  574. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-video.frontend-component.specification.d.ts.map +1 -1
  575. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file.frontend-component.specification.d.ts.map +1 -1
  576. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-foreign-key.frontend-component.specification.d.ts.map +1 -1
  577. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-money.extra-props.d.ts.map +1 -1
  578. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-money.frontend-component.specification.d.ts.map +1 -1
  579. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.d.ts.map +1 -1
  580. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-phone.frontend-component.specification.d.ts.map +1 -1
  581. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-bigdecimal.frontend-component.specification.d.ts.map +1 -1
  582. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-date.frontend-component.specification.d.ts.map +1 -1
  583. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-datetime.frontend-component.specification.d.ts.map +1 -1
  584. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-money.frontend-component.specification.d.ts.map +1 -1
  585. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-number.frontend-component.specification.d.ts.map +1 -1
  586. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-time.frontend-component.specification.d.ts.map +1 -1
  587. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.d.ts.map +1 -1
  588. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-time.frontend-component.specification.d.ts.map +1 -1
  589. package/dist/esm/engine/frontend-components/data-display/notification-indicator.frontend-component.specification.d.ts.map +1 -1
  590. package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.d.ts.map +1 -1
  591. package/dist/esm/engine/frontend-components/feedback/danger-zone.frontend-component.specification.d.ts.map +1 -1
  592. package/dist/esm/engine/frontend-components/feedback/empty-state.frontend-component.specification.d.ts.map +1 -1
  593. package/dist/esm/engine/frontend-components/feedback/error-display.frontend-component.specification.d.ts.map +1 -1
  594. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.d.ts.map +1 -1
  595. package/dist/esm/engine/frontend-components/feedback/features/feature-lock-badge.frontend-component.specification.d.ts.map +1 -1
  596. package/dist/esm/engine/frontend-components/feedback/features/feature-unavailable-dialog.frontend-component.specification.d.ts.map +1 -1
  597. package/dist/esm/engine/frontend-components/feedback/features/feature-unavailable-prompt.frontend-component.specification.d.ts.map +1 -1
  598. package/dist/esm/engine/frontend-components/feedback/loading-overlay.frontend-component.specification.d.ts.map +1 -1
  599. package/dist/esm/engine/frontend-components/feedback/loading-spinner.frontend-component.specification.d.ts.map +1 -1
  600. package/dist/esm/engine/frontend-components/feedback/operations-confirm-critical.frontend-component.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/frontend-components/feedback/progress.frontend-component.specification.d.ts.map +1 -1
  602. package/dist/esm/engine/frontend-components/feedback/skeleton.frontend-component.specification.d.ts.map +1 -1
  603. package/dist/esm/engine/frontend-components/feedback/toast.frontend-component.specification.d.ts.map +1 -1
  604. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-actor.frontend-component.specification.d.ts.map +1 -1
  605. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-agent-config.frontend-component.specification.d.ts.map +1 -1
  606. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.d.ts.map +1 -1
  607. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  608. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  609. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-artifact-browser.frontend-component.specification.d.ts.map +1 -1
  610. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.d.ts.map +1 -1
  611. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-plan.frontend-component.specification.d.ts.map +1 -1
  612. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-stream.frontend-component.specification.d.ts.map +1 -1
  613. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-execution.frontend-component.specification.d.ts.map +1 -1
  614. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.d.ts.map +1 -1
  615. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.d.ts.map +1 -1
  616. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-task-detail.frontend-component.specification.d.ts.map +1 -1
  617. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-task-memory.frontend-component.specification.d.ts.map +1 -1
  618. package/dist/esm/engine/frontend-components/form/_framework-layout-form-field-spec.factory.d.ts.map +1 -1
  619. package/dist/esm/engine/frontend-components/form/_low-level-preset-wrapper-spec.factory.d.ts.map +1 -1
  620. package/dist/esm/engine/frontend-components/form/autosave-indicator.frontend-component.specification.d.ts.map +1 -1
  621. package/dist/esm/engine/frontend-components/form/chromes/field-content.frontend-component.specification.d.ts.map +1 -1
  622. package/dist/esm/engine/frontend-components/form/chromes/field-description.frontend-component.specification.d.ts.map +1 -1
  623. package/dist/esm/engine/frontend-components/form/chromes/field-error.frontend-component.specification.d.ts.map +1 -1
  624. package/dist/esm/engine/frontend-components/form/chromes/field-label.frontend-component.specification.d.ts.map +1 -1
  625. package/dist/esm/engine/frontend-components/form/chromes/field-separator.frontend-component.specification.d.ts.map +1 -1
  626. package/dist/esm/engine/frontend-components/form/chromes/field-title.frontend-component.specification.d.ts.map +1 -1
  627. package/dist/esm/engine/frontend-components/form/chromes/field.frontend-component.specification.d.ts.map +1 -1
  628. package/dist/esm/engine/frontend-components/form/chromes/form-control.frontend-component.specification.d.ts.map +1 -1
  629. package/dist/esm/engine/frontend-components/form/chromes/form-description.frontend-component.specification.d.ts.map +1 -1
  630. package/dist/esm/engine/frontend-components/form/chromes/form-field.frontend-component.specification.d.ts.map +1 -1
  631. package/dist/esm/engine/frontend-components/form/chromes/form-item.frontend-component.specification.d.ts.map +1 -1
  632. package/dist/esm/engine/frontend-components/form/chromes/form-label.frontend-component.specification.d.ts.map +1 -1
  633. package/dist/esm/engine/frontend-components/form/chromes/form-message.frontend-component.specification.d.ts.map +1 -1
  634. package/dist/esm/engine/frontend-components/form/chromes/form-root.frontend-component.specification.d.ts.map +1 -1
  635. package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.d.ts.map +1 -1
  636. package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.d.ts.map +1 -1
  637. package/dist/esm/engine/frontend-components/form/controls/boolean/checkbox.frontend-component.specification.d.ts.map +1 -1
  638. package/dist/esm/engine/frontend-components/form/controls/boolean/switch.frontend-component.specification.d.ts.map +1 -1
  639. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle-group-boolean.frontend-component.specification.d.ts.map +1 -1
  640. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.d.ts.map +1 -1
  641. package/dist/esm/engine/frontend-components/form/controls/date-time/calendar-day-button.frontend-component.specification.d.ts.map +1 -1
  642. package/dist/esm/engine/frontend-components/form/controls/date-time/calendar.frontend-component.specification.d.ts.map +1 -1
  643. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.d.ts.map +1 -1
  644. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.d.ts.map +1 -1
  645. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.d.ts.map +1 -1
  646. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.d.ts.map +1 -1
  647. package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.d.ts.map +1 -1
  648. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.d.ts.map +1 -1
  649. package/dist/esm/engine/frontend-components/form/controls/enum/radio-group.frontend-component.specification.d.ts.map +1 -1
  650. package/dist/esm/engine/frontend-components/form/controls/enum/radio-item.frontend-component.specification.d.ts.map +1 -1
  651. package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.d.ts.map +1 -1
  652. package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.d.ts.map +1 -1
  653. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.d.ts.map +1 -1
  654. package/dist/esm/engine/frontend-components/form/controls/file/file-upload.frontend-component.specification.d.ts.map +1 -1
  655. package/dist/esm/engine/frontend-components/form/controls/file/image-crop.frontend-component.specification.d.ts.map +1 -1
  656. package/dist/esm/engine/frontend-components/form/controls/input-group-addon.frontend-component.specification.d.ts.map +1 -1
  657. package/dist/esm/engine/frontend-components/form/controls/input-group-button.frontend-component.specification.d.ts.map +1 -1
  658. package/dist/esm/engine/frontend-components/form/controls/input-group-input.frontend-component.specification.d.ts.map +1 -1
  659. package/dist/esm/engine/frontend-components/form/controls/input-group-text.frontend-component.specification.d.ts.map +1 -1
  660. package/dist/esm/engine/frontend-components/form/controls/input-group-textarea.frontend-component.specification.d.ts.map +1 -1
  661. package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.d.ts.map +1 -1
  662. package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.d.ts.map +1 -1
  663. package/dist/esm/engine/frontend-components/form/controls/number/range-slider.frontend-component.specification.d.ts.map +1 -1
  664. package/dist/esm/engine/frontend-components/form/controls/number/slider.frontend-component.specification.d.ts.map +1 -1
  665. package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.d.ts.map +1 -1
  666. package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.d.ts.map +1 -1
  667. package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.d.ts.map +1 -1
  668. package/dist/esm/engine/frontend-components/form/controls/string/password-input.frontend-component.specification.d.ts.map +1 -1
  669. package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.d.ts.map +1 -1
  670. package/dist/esm/engine/frontend-components/form/fields/form-field-bigdecimal.frontend-component.specification.d.ts.map +1 -1
  671. package/dist/esm/engine/frontend-components/form/fields/form-field-boolean.frontend-component.specification.d.ts.map +1 -1
  672. package/dist/esm/engine/frontend-components/form/fields/form-field-code.frontend-component.specification.d.ts.map +1 -1
  673. package/dist/esm/engine/frontend-components/form/fields/form-field-date.frontend-component.specification.d.ts.map +1 -1
  674. package/dist/esm/engine/frontend-components/form/fields/form-field-datetime.frontend-component.specification.d.ts.map +1 -1
  675. package/dist/esm/engine/frontend-components/form/fields/form-field-duration.frontend-component.specification.d.ts.map +1 -1
  676. package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.d.ts.map +1 -1
  677. package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.d.ts.map +1 -1
  678. package/dist/esm/engine/frontend-components/form/fields/form-field-money.frontend-component.specification.d.ts.map +1 -1
  679. package/dist/esm/engine/frontend-components/form/fields/form-field-number.frontend-component.specification.d.ts.map +1 -1
  680. package/dist/esm/engine/frontend-components/form/fields/form-field-phone.frontend-component.specification.d.ts.map +1 -1
  681. package/dist/esm/engine/frontend-components/form/fields/form-field-range-bigdecimal.frontend-component.specification.d.ts.map +1 -1
  682. package/dist/esm/engine/frontend-components/form/fields/form-field-range-date.frontend-component.specification.d.ts.map +1 -1
  683. package/dist/esm/engine/frontend-components/form/fields/form-field-range-datetime.frontend-component.specification.d.ts.map +1 -1
  684. package/dist/esm/engine/frontend-components/form/fields/form-field-range-money.frontend-component.specification.d.ts.map +1 -1
  685. package/dist/esm/engine/frontend-components/form/fields/form-field-range-number.frontend-component.specification.d.ts.map +1 -1
  686. package/dist/esm/engine/frontend-components/form/fields/form-field-range-time.frontend-component.specification.d.ts.map +1 -1
  687. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.d.ts.map +1 -1
  688. package/dist/esm/engine/frontend-components/form/fields/form-field-time.frontend-component.specification.d.ts.map +1 -1
  689. package/dist/esm/engine/frontend-components/form/form-field-foreign-key.frontend-component.specification.d.ts.map +1 -1
  690. package/dist/esm/engine/frontend-components/guidance/guidance-announcement.frontend-component.specification.d.ts.map +1 -1
  691. package/dist/esm/engine/frontend-components/guidance/guidance-badge.frontend-component.specification.d.ts.map +1 -1
  692. package/dist/esm/engine/frontend-components/guidance/guidance-banner.frontend-component.specification.d.ts.map +1 -1
  693. package/dist/esm/engine/frontend-components/guidance/guidance-card.frontend-component.specification.d.ts.map +1 -1
  694. package/dist/esm/engine/frontend-components/guidance/guidance-checklist-item.frontend-component.specification.d.ts.map +1 -1
  695. package/dist/esm/engine/frontend-components/guidance/guidance-checklist.frontend-component.specification.d.ts.map +1 -1
  696. package/dist/esm/engine/frontend-components/guidance/guidance-modal.frontend-component.specification.d.ts.map +1 -1
  697. package/dist/esm/engine/frontend-components/guidance/guidance-onboarding-view.frontend-component.specification.d.ts.map +1 -1
  698. package/dist/esm/engine/frontend-components/guidance/guidance-survey.frontend-component.specification.d.ts.map +1 -1
  699. package/dist/esm/engine/frontend-components/guidance/guidance-tooltip.frontend-component.specification.d.ts.map +1 -1
  700. package/dist/esm/engine/frontend-components/guidance/guidance-tour.frontend-component.specification.d.ts.map +1 -1
  701. package/dist/esm/engine/frontend-components/high-level-views/chart-echarts.frontend-component.specification.d.ts.map +1 -1
  702. package/dist/esm/engine/frontend-components/high-level-views/chart-widget.frontend-component.specification.d.ts.map +1 -1
  703. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart.frontend-component.specification.d.ts.map +1 -1
  704. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-composite.frontend-component.specification.d.ts.map +1 -1
  705. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-execution.frontend-component.specification.d.ts.map +1 -1
  706. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
  707. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-full-custom.frontend-component.specification.d.ts.map +1 -1
  708. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-not-found.frontend-component.specification.d.ts.map +1 -1
  709. package/dist/esm/engine/frontend-components/index.d.ts +0 -2
  710. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  711. package/dist/esm/engine/frontend-components/index.js +4 -6
  712. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  713. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts.map +1 -1
  714. package/dist/esm/engine/frontend-components/layout/aspect-ratio.frontend-component.specification.d.ts.map +1 -1
  715. package/dist/esm/engine/frontend-components/layout/carousel.frontend-component.specification.d.ts.map +1 -1
  716. package/dist/esm/engine/frontend-components/layout/divider.frontend-component.specification.d.ts.map +1 -1
  717. package/dist/esm/engine/frontend-components/layout/resizable-panel-group.frontend-component.specification.d.ts.map +1 -1
  718. package/dist/esm/engine/frontend-components/layout/scroll-area.frontend-component.specification.d.ts.map +1 -1
  719. package/dist/esm/engine/frontend-components/layout/separator.frontend-component.specification.d.ts.map +1 -1
  720. package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-container.frontend-component.specification.d.ts.map +1 -1
  721. package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-group.frontend-component.specification.d.ts.map +1 -1
  722. package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-legend.frontend-component.specification.d.ts.map +1 -1
  723. package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section.frontend-component.specification.d.ts.map +1 -1
  724. package/dist/esm/engine/frontend-components/layout-internals/low-level-overlay-container.frontend-component.specification.d.ts.map +1 -1
  725. package/dist/esm/engine/frontend-components/navigation/app-level/activity-bar.frontend-component.specification.d.ts.map +1 -1
  726. package/dist/esm/engine/frontend-components/navigation/app-level/command-menu.frontend-component.specification.d.ts.map +1 -1
  727. package/dist/esm/engine/frontend-components/navigation/app-level/control-panel.frontend-component.specification.d.ts.map +1 -1
  728. package/dist/esm/engine/frontend-components/navigation/app-level/menubar.frontend-component.specification.d.ts.map +1 -1
  729. package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.d.ts.map +1 -1
  730. package/dist/esm/engine/frontend-components/navigation/app-level/notification-center.frontend-component.specification.d.ts.map +1 -1
  731. package/dist/esm/engine/frontend-components/navigation/app-level/quick-action-button.frontend-component.specification.d.ts.map +1 -1
  732. package/dist/esm/engine/frontend-components/navigation/app-level/quick-switcher.frontend-component.specification.d.ts.map +1 -1
  733. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.d.ts.map +1 -1
  734. package/dist/esm/engine/frontend-components/navigation/app-level/status-bar.frontend-component.specification.d.ts.map +1 -1
  735. package/dist/esm/engine/frontend-components/navigation/app-level/toolbar.frontend-component.specification.d.ts.map +1 -1
  736. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
  737. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.d.ts.map +1 -1
  738. package/dist/esm/engine/frontend-components/navigation/breadcrumb.frontend-component.specification.d.ts.map +1 -1
  739. package/dist/esm/engine/frontend-components/navigation/command.frontend-component.specification.d.ts.map +1 -1
  740. package/dist/esm/engine/frontend-components/navigation/menu-bar.frontend-component.specification.d.ts.map +1 -1
  741. package/dist/esm/engine/frontend-components/navigation/navbar.frontend-component.specification.d.ts.map +1 -1
  742. package/dist/esm/engine/frontend-components/navigation/sidebar.frontend-component.specification.d.ts.map +1 -1
  743. package/dist/esm/engine/frontend-components/overlays/containers/alert-dialog.frontend-component.specification.d.ts.map +1 -1
  744. package/dist/esm/engine/frontend-components/overlays/containers/alert.frontend-component.specification.d.ts.map +1 -1
  745. package/dist/esm/engine/frontend-components/overlays/containers/dialog.frontend-component.specification.d.ts.map +1 -1
  746. package/dist/esm/engine/frontend-components/overlays/containers/drawer.frontend-component.specification.d.ts.map +1 -1
  747. package/dist/esm/engine/frontend-components/overlays/containers/sheet.frontend-component.specification.d.ts.map +1 -1
  748. package/dist/esm/engine/frontend-components/overlays/floating/context-menu.frontend-component.specification.d.ts.map +1 -1
  749. package/dist/esm/engine/frontend-components/overlays/floating/dropdown-menu.frontend-component.specification.d.ts.map +1 -1
  750. package/dist/esm/engine/frontend-components/overlays/floating/hover-card.frontend-component.specification.d.ts.map +1 -1
  751. package/dist/esm/engine/frontend-components/overlays/floating/popover.frontend-component.specification.d.ts.map +1 -1
  752. package/dist/esm/engine/frontend-components/overlays/floating/tooltip.frontend-component.specification.d.ts.map +1 -1
  753. package/dist/esm/engine/frontend-components/progression/progression-achievement-badge.frontend-component.specification.d.ts.map +1 -1
  754. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts.map +1 -1
  755. package/dist/esm/engine/frontend-components/resources/_framework-layout-resource-layout-spec.factory.d.ts.map +1 -1
  756. package/dist/esm/engine/frontend-components/resources/resource-layout-action.frontend-component.specification.d.ts.map +1 -1
  757. package/dist/esm/engine/frontend-components/resources/resource-layout-breadcrumb.frontend-component.specification.d.ts.map +1 -1
  758. package/dist/esm/engine/frontend-components/resources/resource-layout-container-dialogs.frontend-component.specification.d.ts.map +1 -1
  759. package/dist/esm/engine/frontend-components/resources/resource-layout-container-nested.frontend-component.specification.d.ts.map +1 -1
  760. package/dist/esm/engine/frontend-components/resources/resource-layout-create.frontend-component.specification.d.ts.map +1 -1
  761. package/dist/esm/engine/frontend-components/resources/resource-layout-danger-zone.frontend-component.specification.d.ts.map +1 -1
  762. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.d.ts.map +1 -1
  763. package/dist/esm/engine/frontend-components/resources/resource-layout-filters.frontend-component.specification.d.ts.map +1 -1
  764. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.d.ts.map +1 -1
  765. package/dist/esm/engine/frontend-components/resources/resource-layout-list-table.frontend-component.preset-specification.d.ts.map +1 -1
  766. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.d.ts.map +1 -1
  767. package/dist/esm/engine/frontend-components/resources/resource-layout-operation-bulk.frontend-component.specification.d.ts.map +1 -1
  768. package/dist/esm/engine/frontend-components/resources/resource-layout-operations-items.frontend-component.specification.d.ts.map +1 -1
  769. package/dist/esm/engine/frontend-components/resources/resource-layout-pagination.frontend-component.specification.d.ts.map +1 -1
  770. package/dist/esm/engine/frontend-components/resources/resource-layout-read-expandable.frontend-component.preset-specification.d.ts.map +1 -1
  771. package/dist/esm/engine/frontend-components/resources/resource-layout-read-summary-table-row.frontend-component.preset-specification.d.ts.map +1 -1
  772. package/dist/esm/engine/frontend-components/resources/resource-layout-read-summary.frontend-component.specification.d.ts.map +1 -1
  773. package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.d.ts.map +1 -1
  774. package/dist/esm/engine/frontend-components/resources/resource-layout-search-table.frontend-component.preset-specification.d.ts.map +1 -1
  775. package/dist/esm/engine/frontend-components/resources/resource-layout-search.frontend-component.specification.d.ts.map +1 -1
  776. package/dist/esm/engine/frontend-components/resources/resource-layout-update.frontend-component.specification.d.ts.map +1 -1
  777. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.d.ts.map +1 -1
  778. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit-search.frontend-component.preset-specification.d.ts.map +1 -1
  779. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.d.ts.map +1 -1
  780. package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.d.ts.map +1 -1
  781. package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.d.ts.map +1 -1
  782. package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.d.ts.map +1 -1
  783. package/dist/esm/engine/frontend-components/sections/pagination.frontend-component.specification.d.ts.map +1 -1
  784. package/dist/esm/engine/frontend-components/sections/stacked-layout.frontend-component.specification.d.ts.map +1 -1
  785. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
  786. package/dist/esm/engine/frontend-components/sections/table.frontend-component.specification.d.ts.map +1 -1
  787. package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.d.ts.map +1 -1
  788. package/dist/esm/engine/frontend-components/typography/code.frontend-component.specification.d.ts.map +1 -1
  789. package/dist/esm/engine/frontend-components/typography/heading.frontend-component.specification.d.ts.map +1 -1
  790. package/dist/esm/engine/frontend-components/typography/label.frontend-component.specification.d.ts.map +1 -1
  791. package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.d.ts.map +1 -1
  792. package/dist/esm/engine/frontend-components/typography/strong.frontend-component.specification.d.ts.map +1 -1
  793. package/dist/esm/engine/frontend-components/typography/subheading.frontend-component.specification.d.ts.map +1 -1
  794. package/dist/esm/engine/frontend-components/typography/text-link.frontend-component.specification.d.ts.map +1 -1
  795. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
  796. package/dist/esm/engine/full-custom-views/index.d.ts.map +1 -1
  797. package/dist/esm/engine/guidance/index.d.ts.map +1 -1
  798. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
  799. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js +12 -12
  800. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  801. package/dist/esm/engine/guidance/resources/index.d.ts.map +1 -1
  802. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  803. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js +9 -9
  804. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  805. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts +8 -0
  806. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  807. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js +6 -6
  808. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  809. package/dist/esm/engine/index.d.ts +1 -0
  810. package/dist/esm/engine/index.d.ts.map +1 -1
  811. package/dist/esm/engine/index.js +1 -0
  812. package/dist/esm/engine/index.js.map +1 -1
  813. package/dist/esm/engine/infrastructure/index.d.ts.map +1 -1
  814. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  815. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js +17 -17
  816. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  817. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  818. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +7 -7
  819. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  820. package/dist/esm/engine/infrastructure/resources/index.d.ts.map +1 -1
  821. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  822. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js +8 -8
  823. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  824. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts +7 -2
  825. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
  826. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js +10 -5
  827. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  828. package/dist/esm/engine/notifications/index.d.ts.map +1 -1
  829. package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
  830. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  831. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +20 -15
  832. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  833. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  834. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js +11 -10
  835. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  836. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  837. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js +29 -6
  838. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  839. package/dist/esm/engine/notifications/system-emails/authentication.system-emails.specification.d.ts.map +1 -1
  840. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  841. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
  842. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.d.ts.map +1 -1
  843. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +1 -1
  844. package/dist/esm/engine/organizations/index.d.ts.map +1 -1
  845. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  846. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  847. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +9 -9
  848. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  849. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
  850. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js +3 -3
  851. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  852. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
  853. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js +4 -4
  854. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  855. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  856. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js +2 -2
  857. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  858. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  859. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js +1 -1
  860. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  861. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  862. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  863. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +7 -7
  864. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  865. package/dist/esm/engine/providers/_engine-provider-shared.d.ts +9 -0
  866. package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -0
  867. package/dist/esm/engine/providers/_engine-provider-shared.js +19 -0
  868. package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -0
  869. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts +7 -0
  870. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -0
  871. package/dist/esm/engine/providers/anthropic.provider.specification.js +42 -0
  872. package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -0
  873. package/dist/esm/engine/providers/apple.provider.specification.d.ts +7 -0
  874. package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -0
  875. package/dist/esm/engine/providers/apple.provider.specification.js +44 -0
  876. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -0
  877. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts +7 -0
  878. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -0
  879. package/dist/esm/engine/providers/email-preview.provider.specification.js +39 -0
  880. package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -0
  881. package/dist/esm/engine/providers/github.provider.specification.d.ts +7 -0
  882. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -0
  883. package/dist/esm/engine/providers/github.provider.specification.js +39 -0
  884. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -0
  885. package/dist/esm/engine/providers/google.provider.specification.d.ts +7 -0
  886. package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -0
  887. package/dist/esm/engine/providers/google.provider.specification.js +43 -0
  888. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -0
  889. package/dist/esm/engine/providers/grok.provider.specification.d.ts +7 -0
  890. package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -0
  891. package/dist/esm/engine/providers/grok.provider.specification.js +39 -0
  892. package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -0
  893. package/dist/esm/engine/providers/index.d.ts +23 -0
  894. package/dist/esm/engine/providers/index.d.ts.map +1 -0
  895. package/dist/esm/engine/providers/index.js +37 -0
  896. package/dist/esm/engine/providers/index.js.map +1 -0
  897. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts +7 -0
  898. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -0
  899. package/dist/esm/engine/providers/microsoft.provider.specification.js +39 -0
  900. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -0
  901. package/dist/esm/engine/providers/mistral.provider.specification.d.ts +7 -0
  902. package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -0
  903. package/dist/esm/engine/providers/mistral.provider.specification.js +42 -0
  904. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -0
  905. package/dist/esm/engine/providers/openai.provider.specification.d.ts +7 -0
  906. package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -0
  907. package/dist/esm/engine/providers/openai.provider.specification.js +52 -0
  908. package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -0
  909. package/dist/esm/engine/providers/opencode.provider.specification.d.ts +7 -0
  910. package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -0
  911. package/dist/esm/engine/providers/opencode.provider.specification.js +58 -0
  912. package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -0
  913. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts +7 -0
  914. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -0
  915. package/dist/esm/engine/providers/perplexity.provider.specification.js +39 -0
  916. package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -0
  917. package/dist/esm/engine/providers/resend.provider.specification.d.ts +7 -0
  918. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -0
  919. package/dist/esm/engine/providers/resend.provider.specification.js +42 -0
  920. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -0
  921. package/dist/esm/engine/providers/stripe.provider.specification.d.ts +7 -0
  922. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -0
  923. package/dist/esm/engine/providers/stripe.provider.specification.js +44 -0
  924. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -0
  925. package/dist/esm/engine/providers/twilio.provider.specification.d.ts +7 -0
  926. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -0
  927. package/dist/esm/engine/providers/twilio.provider.specification.js +42 -0
  928. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -0
  929. package/dist/esm/engine/roles/_engine-role-shared.d.ts.map +1 -1
  930. package/dist/esm/engine/roles/app-admin-billing-manager.role.specification.d.ts.map +1 -1
  931. package/dist/esm/engine/roles/app-admin-marketing-editor.role.specification.d.ts.map +1 -1
  932. package/dist/esm/engine/roles/app-admin-super-admin.role.specification.d.ts.map +1 -1
  933. package/dist/esm/engine/roles/app-admin-viewer.role.specification.d.ts.map +1 -1
  934. package/dist/esm/engine/roles/app-anonymous.role.specification.d.ts.map +1 -1
  935. package/dist/esm/engine/roles/app-public.role.specification.d.ts.map +1 -1
  936. package/dist/esm/engine/roles/app-user.role.specification.d.ts.map +1 -1
  937. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  938. package/dist/esm/engine/roles/org-admin.role.specification.d.ts.map +1 -1
  939. package/dist/esm/engine/roles/org-guest.role.specification.d.ts.map +1 -1
  940. package/dist/esm/engine/roles/org-manager.role.specification.d.ts.map +1 -1
  941. package/dist/esm/engine/roles/org-member.role.specification.d.ts.map +1 -1
  942. package/dist/esm/engine/roles/org-owner.role.specification.d.ts.map +1 -1
  943. package/dist/esm/engine/users/index.d.ts.map +1 -1
  944. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  945. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js +7 -7
  946. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  947. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
  948. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js +9 -9
  949. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  950. package/dist/esm/engine/users/resources/index.d.ts.map +1 -1
  951. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
  952. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
  953. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js +2 -2
  954. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  955. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  956. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js +8 -8
  957. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  958. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  959. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +4 -4
  960. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  961. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js +4 -4
  962. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  963. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
  964. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js +2 -2
  965. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  966. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +4 -4
  967. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  968. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +13 -11
  969. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  970. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
  971. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js +1 -1
  972. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  973. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  974. package/dist/esm/engine/users/resources/user-self.resource.specification.js +9 -9
  975. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  976. package/dist/esm/engine/users/resources/users-api-reference.examples.d.ts.map +1 -1
  977. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  978. package/dist/esm/engine/users/resources/users.resource.specification.js +93 -0
  979. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  980. package/dist/esm/index.d.ts.map +1 -1
  981. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  982. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js +95 -45
  983. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  984. package/dist/esm/technical-documentation/technical-documentation-api-reference-targets.schemas.d.ts.map +1 -1
  985. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.d.ts.map +1 -1
  986. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.d.ts.map +1 -1
  987. package/dist/esm/technical-documentation/technical-documentation-common.schemas.d.ts.map +1 -1
  988. package/dist/esm/technical-documentation/technical-documentation-environment-identity.schemas.d.ts.map +1 -1
  989. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.d.ts.map +1 -1
  990. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.d.ts.map +1 -1
  991. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.d.ts.map +1 -1
  992. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts +37 -1
  993. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
  994. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js +36 -0
  995. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
  996. package/dist/esm/technical-documentation.exports.d.ts.map +1 -1
  997. package/dist/tsconfig.build.tsbuildinfo +1 -1
  998. package/package.json +8 -8
  999. package/dist/assurance/external-framework-mapping.json +0 -980
  1000. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +0 -4
  1001. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +0 -1
  1002. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +0 -21
  1003. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +0 -1
  1004. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -4
  1005. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -1
  1006. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -21
  1007. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization-provider-credentials.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/organization-provider-credentials.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,oCAAoC,EACpC,iCAAiC,EACjC,oBAAoB,EACpB,iEAAiE,GAClE,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,qBAAqB,GAAG,wCAAwC,CAAC;AACvE,MAAM,yBAAyB,GAAG,gCAAgC,CAAC;AAEnE;;;;;;;GAOG;AACH,MAAM,yBAAyB,GAAG;IAChC,GAAG,EAAE,qBAAqB;IAC1B,cAAc,EAAE,yBAAyB;IACzC,WAAW,EAAE,OAAO;IACpB,UAAU,EAAE,iBAAiB;IAC7B,WAAW,EAAE,UAAU;IACvB,OAAO,EAAE,IAAI;IACb,eAAe,EAAE,iCAAiC,CAAC,KAAK;IACxD,eAAe,EAAE,0BAA0B;IAC3C,UAAU,EAAE,0BAA0B;IACtC,WAAW,EAAE,0BAA0B;IACvC,WAAW,EAAE,iCAAiC;IAC9C,WAAW,EAAE,8CAA8C;IAC3D,SAAS,EAAE,0BAA0B;IACrC,SAAS,EAAE,0BAA0B;CAC7B,CAAC;AAEX,MAAM,uBAAuB,GAAG;IAC9B,IAAI,EAAE,CAAC,yBAAyB,CAAC;IACjC,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE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E;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,kFAAkF,EAAE;aACrI;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,eAAe,EAAE,IAAI,EAAE,8BAA8B,EAAE,SAAS,EAAE,mBAAmB,EAAE;aACvH;SACF;KACF;IAED,mBAAmB,EAAE;QACnB,gYAAgY;QAChY,iWAAiW;QACjW,mHAAmH;QACnH,yYAAyY;QACzY,+PAA+P;KAChQ;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,CAAC","sourcesContent":["/**\n * Resource: `organizationProviderCredentials` — Wildo SaaS engine specification\n * (organization-scoped, backend-managed secret).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/security/connected-accounts/provider-credentials.shared.schemas.ts\n * → `OrganizationProviderCredentialSchema`\n * - Factory: engine/saas-models/src/security/connected-accounts/provider-credentials-organization.shared.resources-config.schemas.ts\n * → `orgProviderCredentialsResourceConfiguration_InitializationFactory`\n * - Custom operations: none\n * - UI presets: none yet — the admin surface is a later slice (#332). The API is complete without it.\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n OrganizationProviderCredentialSchema,\n ProviderCredentialValidationState,\n ResourcePrimaryScope,\n orgProviderCredentialsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst CREDENTIAL_EXAMPLE_ID = 'orgprovcred_01J7K2M4N6P8Q0R2S4T6V8W0XY';\nconst CREDENTIAL_EXAMPLE_ORG_ID = 'org_01J4M1Z2X3C4V5B6N7M8Q9R0ST';\n\n/**\n * The record as a client sees it — with the value MASKED.\n *\n * That mask is not decoration in an example: `secretValue` is `.isWriteOnlySecret()`, so the\n * framework redacts it at the client boundary on every read. Showing a plausible token here would\n * teach an integrator that a credential can be read back, which is the one thing this resource\n * guarantees it cannot.\n */\nconst CREDENTIAL_RECORD_EXAMPLE = {\n _id: CREDENTIAL_EXAMPLE_ID,\n organizationId: CREDENTIAL_EXAMPLE_ORG_ID,\n providerRef: 'slack',\n secretSlug: 'SLACK_BOT_TOKEN',\n secretValue: '••••••••',\n enabled: true,\n validationState: ProviderCredentialValidationState.VALID,\n lastValidatedAt: '2026-09-02T11:14:00.000Z',\n lastUsedAt: '2026-09-02T11:14:00.000Z',\n secretSetAt: '2026-08-30T09:00:00.000Z',\n setByUserId: 'user_01J4M1Z2X3C4V5B6N7M8Q9R0ST',\n description: 'Bot token for the #orders workspace channel.',\n createdAt: '2026-08-30T09:00:00.000Z',\n updatedAt: '2026-09-02T11:14:00.000Z',\n} as const;\n\nconst CREDENTIAL_PAGE_EXAMPLE = {\n data: [CREDENTIAL_RECORD_EXAMPLE],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n} as const;\n\nexport const organizationProviderCredentialsResourceSpecification = resourceSpecification(\n orgProviderCredentialsResourceConfiguration_InitializationFactory,\n OrganizationProviderCredentialSchema,\n ({ schemaShape }) => ({\n purpose:\n \"One organization's OWN credential toward a third-party provider — its Slack workspace token, its CRM API key, its SMTP password.\",\n businessRole:\n 'The record that lets one application serve many organizations while each acts as ITSELF toward a third party. Without it every tenant shares the deployment\\'s single environment secret and therefore acts as the same third-party principal.',\n lifecycleRole:\n 'Created by an organization administrator when the tenant connects a provider, rotated in place when the vendor credential changes, disabled to park an integration during an incident, and removed when the tenant disconnects the provider or the organization itself is purged.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'OrganizationProviderCredentialSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'orgProviderCredentialsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'ORG_PROVIDER_CREDENTIALS',\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 notes: [\n 'The stored value is SEALED, never the plaintext an administrator typed: an AES-256-GCM envelope whose key is derived from the application\\'s own `secrets.security.session.encryptionKey` with a subsystem-specific domain separator. The seal is applied by the CREATE/UPDATE custom implementation, and its associated data binds the envelope to (organizationId, providerRef, secretSlug) — so a ciphertext copied into another tenant\\'s row fails to open rather than silently working.',\n 'Every write door is ORG_ADMIN, and there is deliberately NO super-administrator variant. An operator who could list, rotate or spend a tenant\\'s credential could act as that tenant toward the vendor, and no later audit event makes that reversible. A tenant that has lost every administrator is repaired through `organizationMembers.grantOwnership` — restore an administrator, and the tenant repairs its own credentials.',\n 'Resolution order is the organization\\'s own credential, then the deployment\\'s env-projected SecretsContract, then a REFUSAL naming both places. A provider is never handed an empty credential.',\n 'A row appears in TWO ways, and only one of them is an HTTP write. A credential an administrator PASTES arrives through `CREATE` below. A credential a vendor MINTS arrives through the authorization exchange, where the administrator authorizes on the vendor\\'s consent screen and the application records the grant — nobody types the token. The second path is why this resource permits a system-tier create.',\n 'Set, rotate, use and delete are audited as `ORGANIZATION_PROVIDER_CREDENTIAL_*`, annotated `WILDO.IDENTITY.DELEGATED_AUTHORIZATION`. None of the four payload schemas has a field the value could occupy.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for one stored credential.',\n whyItMatters: 'The address for a rotation or a revocation, and the id every audit event carries.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The tenant that owns this credential.',\n whyItMatters:\n 'The isolation axis. It is injected by the framework from the request scope rather than read from the payload, it scopes every read, and it is bound into the encryption envelope — so a credential cannot be read, spent or moved outside the organization that set it.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n providerRef: schemaShape.providerRef.stringSpec({\n meaning: 'The provider this credential authenticates toward — `slack`, `stripe`, a generated provider package\\'s ref.',\n whyItMatters: 'Half of the credential\\'s identity within its tenant, and what an audit reader uses to see which third parties an organization has granted the application authority toward.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n secretSlug: schemaShape.secretSlug.stringSpec({\n meaning: \"The slug in the provider's `secretsContract` that this value satisfies — the same identifier the deployment's environment projection names.\",\n whyItMatters:\n 'It is what makes the two resolution places name the same thing. A provider declaring several secrets (an API key and a signing secret) gets one row per slug.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n secretValue: schemaShape.secretValue.stringSpec({\n meaning: 'The credential itself. Supplied in plaintext on write, stored SEALED, and never returned — a read renders a fixed mask.',\n whyItMatters:\n 'Echoing the mask back on an update means \"keep the stored secret\", which is how an administrator edits a description without retyping the credential. Sending a real value replaces it and is recorded as a rotation.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n enabled: schemaShape.enabled.booleanSpec({\n meaning: 'Whether this credential may be spent.',\n whyItMatters:\n 'Disabling parks an integration without destroying the credential — the reversible move during an incident. A disabled credential resolves as ABSENT, so the application falls back to the deployment environment exactly as it would for a tenant that never set one.',\n }),\n validationState: schemaShape.validationState.enumSpec({\n meaning: 'Whether the provider has accepted this credential on its last use.',\n whyItMatters:\n 'Separates \"never tried\" from \"tried and rejected\", which a boolean would merge into the same falsy answer. `INVALID` is the operator\\'s signal to rotate.',\n values: {\n [ProviderCredentialValidationState.UNVALIDATED]: {\n meaning: 'Stored, never exercised against the provider. Every credential starts here — storing one proves only that somebody typed it.',\n },\n [ProviderCredentialValidationState.VALID]: {\n meaning: 'The provider accepted it on its last use.',\n },\n [ProviderCredentialValidationState.INVALID]: {\n meaning: 'The provider rejected it on its last use; the integration is down until it is rotated.',\n },\n },\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ProviderCredentialValidationState',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n }),\n validationError: schemaShape.validationError.stringSpec({\n meaning: \"The provider's own message about why the last use failed.\",\n whyItMatters:\n 'Turns \"the integration stopped working\" into a vendor-attributed reason. Server-owned: it describes the credential\\'s status and is never derived from the credential.',\n }),\n lastValidatedAt: schemaShape.lastValidatedAt.dateSpec({\n meaning: 'When the provider last accepted or rejected this credential.',\n whyItMatters: 'How current the validation state is — a `VALID` from three months ago says less than one from this morning.',\n temporalRole: 'modified',\n }),\n lastUsedAt: schemaShape.lastUsedAt.dateSpec({\n meaning: 'When this credential was last resolved for an outbound call.',\n whyItMatters: 'Identifies credentials nothing spends any more — the ones safest to revoke and riskiest to leave live.',\n temporalRole: 'modified',\n }),\n setByUserId: schemaShape.setByUserId.stringSpec({\n meaning: 'The administrator who last supplied the value.',\n whyItMatters:\n 'The first question of any credential incident. Deliberately NOT a registered USERS relationship: that edge would place a live credential on the subject-export graph, and would let a departing administrator\\'s erasure destroy the tenant\\'s integration.',\n semanticRole: 'identifier',\n }),\n secretSetAt: schemaShape.secretSetAt.dateSpec({\n meaning: 'When the stored VALUE last changed.',\n whyItMatters: 'Distinct from `updatedAt`, which any field write moves. This is the one that answers \"was this rotated after the incident?\".',\n temporalRole: 'modified',\n }),\n description: schemaShape.description.stringSpec({\n meaning: 'An operator note — which workspace, which account, which environment this credential belongs to.',\n whyItMatters: 'A tenant may hold several credentials for one provider across slugs; the note is what tells them apart in a list.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the credential was first stored.',\n whyItMatters: 'When this tenant first granted the application authority toward this provider.',\n temporalRole: 'creation',\n }),\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When any field last changed.',\n whyItMatters: 'Ordering for the credential list.',\n temporalRole: 'modified',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: \"Inspect one of the organization's stored provider credentials.\",\n outcome: 'The administrator sees which provider and slug the credential covers, whether it is enabled, and whether the provider last accepted it — with the value masked.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The credential was found in the caller\\'s organization scope and returned with `secretValue` masked.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: \"No credential with that id is visible in the caller's organization scope. A credential belonging to a DIFFERENT organization is indistinguishable from one that does not exist — the tenant boundary never confirms the existence of another tenant's row.\" },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect the Slack bot-token credential',\n request: { orgProviderCredentialId: CREDENTIAL_EXAMPLE_ID },\n response: CREDENTIAL_RECORD_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.LIST]: {\n purpose: \"List the organization's provider credentials — which third parties this tenant has connected.\",\n outcome: 'The administrator sees every provider the organization has credentials for and the health of each.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: \"A (possibly empty) page of the caller's own organization's credentials, values masked.\" },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' },\n ],\n idempotent: true,\n examples: [{\n title: 'List the connected providers',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: CREDENTIAL_PAGE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.CREATE]: {\n purpose: 'Store the organization\\'s own credential for a provider, so the application acts as THIS tenant toward that third party.',\n outcome: \"Every subsequent outbound call this application makes to that provider on the organization's behalf uses the organization's own credential instead of the deployment's shared one.\",\n whenToUse: 'When a tenant connects a provider with a credential they obtained themselves — a Slack app installed in their workspace, an API key minted in their CRM account.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The credential was sealed and stored. The response masks the value; it is never readable again.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload fails validation, or `secretValue` is empty.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The organization already holds a credential for this provider and slug — rotate that one instead of creating a second.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Connect the tenant\\'s own Slack workspace',\n request: {\n providerRef: 'slack',\n secretSlug: 'SLACK_BOT_TOKEN',\n secretValue: 'xoxb-the-tenants-own-bot-token',\n description: 'Bot token for the #orders workspace channel.',\n },\n response: CREDENTIAL_RECORD_EXAMPLE,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [Op.UPDATE]: {\n purpose: 'Rotate the stored credential, or edit its description and enabled flag.',\n outcome: 'A new value replaces the old one immediately — there is no overlap window, because the vendor is the authority on which credential is live and only one of them is.',\n whenToUse: 'After rotating the credential at the vendor, or to park an integration by clearing `enabled`.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The credential was updated. A payload carrying a new `secretValue` re-seals it and is recorded as a rotation; one echoing the mask leaves the stored secret untouched.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The payload fails validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: \"No credential with that id is visible in the caller's organization scope.\" },\n ],\n idempotent: true,\n examples: [{\n title: 'Rotate the bot token after a vendor-side reissue',\n request: { orgProviderCredentialId: CREDENTIAL_EXAMPLE_ID, secretValue: 'xoxb-the-newly-issued-bot-token' },\n response: CREDENTIAL_RECORD_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.DELETE]: {\n purpose: 'Revoke the organization\\'s credential for a provider.',\n outcome:\n \"The application stops acting as this tenant toward that provider. Whether the integration keeps working depends on the deployment: if the operator has set the environment secret, calls fall back to the shared principal; if not, they are refused by name.\",\n whenToUse: 'When the tenant disconnects the provider, or when a credential is believed compromised and rotation is not enough.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The credential was removed. No body.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: \"No credential with that id is visible in the caller's organization scope, including one already removed.\" },\n ],\n idempotent: true,\n examples: [{\n title: 'Disconnect the Slack workspace',\n request: { orgProviderCredentialId: CREDENTIAL_EXAMPLE_ID },\n forStatus: HttpResponseStatusCode.NO_CONTENT_204,\n }],\n },\n [Op.UPDATE_MANY]: {\n purpose: 'Route-less retention plumbing.',\n outcome:\n 'Nothing is scrubbed in practice: this resource declares `RETAIN_ONLY`, a positive assertion that it holds no personal data of its own. The operation exists because the retention contract requires READ + LIST + UPDATE_MANY to resolve, and a declared-but-unresolvable operation fails when an erasure actually runs.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The matching records were processed. INTERNAL_CALL — it registers no HTTP route.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The filter fails validation.', errorCode: 'VALIDATION_FAILED' },\n ],\n },\n },\n\n businessConstraints: [\n 'The uniqueness grain is `(organizationId, providerRef, secretSlug)`, enforced by a compound unique index rather than a read-then-write. Two administrators saving a rotation in the same minute would otherwise leave two rows, and the resolver would pick between them arbitrarily — so half the tenant\\'s outbound calls would carry the retired credential with nothing to say which half.',\n 'A credential is resolved BEFORE the deployment environment and never after it. A tenant that has set its own credential must never fall back to the shared deployment secret: an unopenable or tampered credential is REFUSED rather than substituted, because silently acting as the wrong third-party principal is the defect this resource exists to remove.',\n 'A disabled credential resolves as absent, not as an error — disabling parks an integration, it does not break it.',\n 'Credentials do not outlive their tenant: the ORGANIZATIONS composition cascade removes them when an organization is purged, through both the retention-window batch door and the super-administrator immediate-purge door. `request_deletion` only MARKS the tenant, so credentials survive the retention window deliberately — otherwise `restore` would return a tenant with no working integrations.',\n 'A subject erasure never reaches this resource. `setByUserId` names an ACTOR rather than a data subject, and no USERS relationship is registered for it — which also keeps a live credential off the subject-export graph, where `exportSubject` is FORBIDDEN.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"platform-access-grants.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/platform-access-grants.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAQH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAE3B,qCAAqC,EAErC,yBAAyB,EACzB,+BAA+B,EAGhC,MAAM,uBAAuB,CAAC;AAmE/B,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;iCAkarD,CAAC"}
1
+ {"version":3,"file":"platform-access-grants.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/platform-access-grants.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAQH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAE3B,qCAAqC,EAErC,yBAAyB,EACzB,+BAA+B,EAGhC,MAAM,uBAAuB,CAAC;AAmE/B,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;iCAkarD,CAAC"}
@@ -168,13 +168,13 @@ export const platformAccessGrantsResourceSpecification = resourceSpecification(p
168
168
  [PlatformAccessGrantStatus.PENDING_APPROVAL]: { meaning: 'Awaiting a decision from an administrator of the target tenant — the Lockbox posture. The elevation does NOT work in this state.' },
169
169
  [PlatformAccessGrantStatus.ACTIVE]: { meaning: 'Usable now, and only while unexpired. The one status the admission predicate accepts.' },
170
170
  [PlatformAccessGrantStatus.DENIED]: { meaning: 'The tenant refused. Terminal — a fresh request must be raised rather than this one retried.' },
171
- [PlatformAccessGrantStatus.EXPIRED]: { meaning: 'The window elapsed. Terminal, and reached WITHOUT a writer: this label is bookkeeping for humans and reporting, never the control that stops the access.' },
171
+ [PlatformAccessGrantStatus.EXPIRED]: { meaning: 'The window elapsed. Terminal. Written by the nightly credential-expiry sweep, which lags by up to a day — the label is bookkeeping for humans and reporting, never the control that stops the access. Access stops the instant `expiresAt` passes, because the admission predicate compares against that field and not against this one.' },
172
172
  [PlatformAccessGrantStatus.REVOKED]: { meaning: 'Withdrawn before expiry, by either the tenant or the platform. Terminal.' },
173
173
  },
174
174
  }),
175
175
  expiresAt: schemaShape.expiresAt.dateSpec({
176
176
  meaning: 'When the elevation stops working.',
177
- whyItMatters: 'The actual control, and the reason this is a time-bound grant rather than a renamed standing privilege. Server-authored from the requested duration and clamped to a 4-hour ceiling, so a client cannot mint a long-lived elevation by asking for one. The admission predicate compares against it directly, which is why expiry needs no sweeper to take effect.',
177
+ whyItMatters: 'The actual control, and the reason this is a time-bound grant rather than a renamed standing privilege. Server-authored from the requested duration and clamped to a 4-hour ceiling, so a client cannot mint a long-lived elevation by asking for one. The admission predicate compares against it directly, which is why expiry needs no sweeper to take effect — the sweep that relabels `status` afterwards is a record, not a control.',
178
178
  temporalRole: 'expiration',
179
179
  importance: FieldSemanticImportance.PRIMARY,
180
180
  }),
@@ -211,7 +211,7 @@ export const platformAccessGrantsResourceSpecification = resourceSpecification(p
211
211
  temporalRole: 'creation',
212
212
  }),
213
213
  updatedAt: schemaShape.updatedAt.dateSpec({
214
- meaning: 'When the row last changed — that is, when it was last decided upon.',
214
+ meaning: 'When the record last changed — that is, when it was last decided upon.',
215
215
  whyItMatters: 'On this resource an update is always a lifecycle decision, since there is no generic UPDATE door.',
216
216
  temporalRole: 'modified',
217
217
  }),
@@ -341,7 +341,7 @@ export const platformAccessGrantsResourceSpecification = resourceSpecification(p
341
341
  outcome: 'The row is hard-deleted. Reachable exclusively by the ORGANIZATIONS `onParentDelete` cascade during a tenant purge; its single variant is INTERNAL_CALL, so it has no HTTP route and no client — of either party — can invoke it.',
342
342
  whenToUse: 'Never directly. It exists so the composition cascade has a verb it can call: a child declaring `onParentDelete` while omitting DELETE fails the registry\'s composition-cascade-deletability guard, and at runtime would abort the parent tenant\'s deletion the moment a grant row existed.',
343
343
  responseStatuses: [
344
- { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The grant row was removed as part of its tenant\'s purge. Not observable over HTTP — the operation has no route.' },
344
+ { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The grant record was removed as part of its tenant\'s purge. Not observable over HTTP — the operation has no route.' },
345
345
  ],
346
346
  idempotent: true,
347
347
  },
@@ -1 +1 @@
1
- {"version":3,"file":"platform-access-grants.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/platform-access-grants.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,0BAA0B,EAC1B,qCAAqC,EACrC,yBAAyB,EACz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J,gBAAgB,EAAE;gBAChB,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,0EAA0E,EAAE;aAC7H;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,8GAA8G,EAAE;gBACpK,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,2DAA2D,EAAE;gBACjH,EAAE,IAAI,EAAE,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,kHAAkH,EAAE;aACxK;YACD,UAAU,EAAE,KAAK;YACjB,QAAQ,EAAE,CAAC;oBACT,KAAK,EAAE,8CAA8C;oBACrD,OAAO,EAAE;wBACP,cAAc,EAAE,uCAAuC;wBACvD,qBAAqB,EAAE,+BAA+B;wBACtD,cAAc,EAAE,oCAAoC;qBACrD;oBACD,QAAQ,EAAE;wBACR,GAAG,gCAAgC;wBACnC,MAAM,EAAE,yBAAyB,CAAC,OAAO;wBACzC,cAAc,EAAE,oCAAoC;wBACpD,SAAS,EAAE,0BAA0B;qBACtC;oBACD,SAAS,EAAE,sBAAsB,CAAC,MAAM;iBACzC,CAAC;SACH;KACF;IAED,mBAAmB,EAAE;QACnB,8VAA8V;QAC9V,4cAA4c;QAC5c,mXAAmX;QACnX,yQAAyQ;QACzQ,sLAAsL;QACtL,2kBAA2kB;QAC3kB,kTAAkT;KACnT;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,CAAC","sourcesContent":["/**\n * Resource: `platformAccessGrants` — Wildo SaaS engine specification (backend-only, organization-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/security/authorizations/platform-access-grants.shared.schemas.ts\n * → `PlatformAccessGrantSchema`\n * - Factory: engine/saas-models/src/security/authorizations/platform-access-grants.shared.resources-config.schemas.ts\n * → `platformAccessGrantsResourceConfiguration_InitializationFactory`\n * - Custom operations: `PlatformAccessGrants_Operations` (co-located with the VOCABULARY, in the\n * schemas module rather than the resources-config module — the authorization layer needs\n * `REQUEST_ACCESS` by name, and importing it from the config would drag resource-configuration\n * evaluation into the authorizer's module graph). Both modules are re-exported from the package\n * root, so this spec imports every symbol from `@wildo-ai/saas-models` and is unaffected either way.\n *\n * Why backend-only: there is NO entry for `[CoreResourceType.PLATFORM_ACCESS_GRANTS]` in any preset\n * under engine/presets-components/src/config/resources/. The tenant-facing approval surface is not\n * built yet; today the resource is consumed by the authorizer's admission predicate and by the\n * platform/tenant API.\n *\n * Why `ORGANIZATIONS` scope: the grant belongs to the tenant being reached INTO, not to the operator\n * who asked. That is what lets the tenant read, approve and revoke elevations raised against it — a\n * consent record the consenting party cannot see would defeat the purpose of modelling consent. The\n * scope is expressed once, in the registry relationship ORGANIZATIONS → PLATFORM_ACCESS_GRANTS\n * carrying `isPrimaryScope: true`; the runtime config deliberately does not restate it.\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreUserNotificationTarget,\n PlatformAccessGrantAutoApprovalReason,\n PlatformAccessGrantSchema,\n PlatformAccessGrantStatus,\n PlatformAccessGrants_Operations,\n ResourcePrimaryScope,\n platformAccessGrantsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst TENANT_CONSENT_AUDIENCE = 'Administrators of the TARGET tenant — the party whose data is about to be reached into, and the only party who can refuse.';\nconst TENANT_CONSENT_TONE = 'Direct and factual, and never reassuring by omission: name the operator, the reason they gave, and the window they asked for, so the recipient can decide rather than merely be informed.';\n\nconst PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID = 'org_01J4P8F1M2N3Q4R5S6T7V8W9XY';\nconst PLATFORM_ACCESS_PENDING_GRANT_ID = 'platform_access_grant_01J4P8K2N3Q4R5S6T7V8W9X0YZ';\nconst PLATFORM_ACCESS_ACTIVE_GRANT_ID = 'platform_access_grant_01J4P8M3Q4R5S6T7V8W9X0Y1ZA';\nconst PLATFORM_ACCESS_OPERATOR_USER_ID = 'user_01J4P8P4R5S6T7V8W9X0Y1Z2AB';\nconst PLATFORM_ACCESS_APPROVER_USER_ID = 'user_01J4P8R5S6T7V8W9X0Y1Z2A3BC';\n\nconst platformAccessPendingGrantExample = {\n _id: PLATFORM_ACCESS_PENDING_GRANT_ID,\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n operatorUserId: PLATFORM_ACCESS_OPERATOR_USER_ID,\n justification: 'Investigate failed SCIM provisioning for support case INC-4821.',\n status: PlatformAccessGrantStatus.PENDING_APPROVAL,\n expiresAt: '2026-08-20T14:00:00.000Z',\n createdAt: '2026-08-20T12:00:00.000Z',\n updatedAt: '2026-08-20T12:00:00.000Z',\n};\n\nconst platformAccessActiveGrantExample = {\n ...platformAccessPendingGrantExample,\n _id: PLATFORM_ACCESS_ACTIVE_GRANT_ID,\n status: PlatformAccessGrantStatus.ACTIVE,\n approvedByUserId: PLATFORM_ACCESS_APPROVER_USER_ID,\n approvedAt: '2026-08-20T12:08:00.000Z',\n updatedAt: '2026-08-20T12:08:00.000Z',\n};\n\nconst platformAccessPendingGrantSummaryExample = {\n _id: platformAccessPendingGrantExample._id,\n organizationId: platformAccessPendingGrantExample.organizationId,\n operatorUserId: platformAccessPendingGrantExample.operatorUserId,\n justification: platformAccessPendingGrantExample.justification,\n status: platformAccessPendingGrantExample.status,\n expiresAt: platformAccessPendingGrantExample.expiresAt,\n};\n\nconst platformAccessActiveGrantSummaryExample = {\n ...platformAccessPendingGrantSummaryExample,\n _id: platformAccessActiveGrantExample._id,\n status: platformAccessActiveGrantExample.status,\n};\n\nconst PLATFORM_ACCESS_PAGE_REQUEST = {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n page: 1,\n limit: 20,\n sort: 'createdAt:desc',\n};\n\nfunction platformAccessGrantPage<T>(data: readonly T[]) {\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\nexport const platformAccessGrantsResourceSpecification = resourceSpecification(\n platformAccessGrantsResourceConfiguration_InitializationFactory,\n PlatformAccessGrantSchema,\n ({ schemaShape }) => ({\n purpose: 'Give an application support team a justified, time-limited way to request access to an organization while keeping that organization informed and in control of the decision.',\n businessRole: 'The organization\\'s support-access ledger. It answers who requested access, why they requested it, how long the window lasts, whether an administrator approved it and when access ended.',\n lifecycleRole: 'An authorized support operator creates a request. It waits for an organization administrator when approval is required, or becomes active immediately with an explicit automatic-approval reason. An administrator can approve or deny a pending request; either side can revoke pending or active access; expiry ends access automatically. Completed requests remain available as access-review history.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.AUTH,\n\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'PlatformAccessGrantSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'platformAccessGrantsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'PLATFORM_ACCESS_GRANTS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'PlatformAccessGrants_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'No public CREATE or UPDATE. `requestAccess` is the only writer of a new row, and `approve` / `deny` / `revoke` are the only status transitions. A generic UPDATE would be a second, ungated path to those transitions; a generic CREATE would let a caller author `status`, `expiresAt` and `operatorUserId`, which are precisely the fields whose SERVER authorship is the control.',\n 'DELETE exists but has NO client door — its single variant is INTERNAL_CALL, mirroring `organizations.delete`\\'s own default. It is present only so the ORGANIZATIONS composition cascade (`onParentDelete`) has a verb it can call; a cascade declared but unable to run fails the registry\\'s composition-cascade-deletability guard, and would otherwise leave grant rows behind after their tenant was purged.',\n 'The runtime declares exactly ONE `userNotifications[]` entry, on `requestAccess` (target=ORGANIZATION_USERS, channel=EMAIL). There are no `m2mNotifications` anywhere in this family, so no `communications.m2m` block appears on any operation (DF-1 strict parity).',\n 'The grant LIFECYCLE audit events (requested / approved / denied / revoked) are not emitted yet — see `.claude/plans/platform-access-grants-jit-elevation.md` R7. The crossing itself is already audited by `CoreAuditableEventType.CROSS_TENANT_ADMINISTRATIVE_ACCESS`, emitted from the authorizer rather than from this resource.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for one elevation request.',\n whyItMatters: 'The address of every subsequent decision — approve, deny and revoke all target this row, and the audit trail names it.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The TARGET tenant — the organization being reached into, never the operator\\'s own.',\n whyItMatters: 'The scope anchor. It makes the grant an organization-scoped row, which is what lets the tenant see, approve and revoke elevations raised against it, and it is the tenant the admission predicate matches a crossing against.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n operatorUserId: schemaShape.operatorUserId.foreignKeySpec({\n meaning: 'The platform operator who requested the elevation.',\n whyItMatters: 'Server-authored from the session, never client-supplied — an elevation whose subject the caller could choose would let one operator mint access for another. Together with `organizationId` it forms the pair the admission predicate matches: this operator, into this tenant.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n justification: schemaShape.justification.stringSpec({\n meaning: 'Why the operator needs access, in their own words.',\n whyItMatters: 'Required everywhere in the flow and deliberately never optional. An elevation record without a reason answers \"who\" and \"when\" but not \"why\", which is the only question a reviewer or a customer actually asks; NIST SP 800-53 AC-2(7) wants privileged assignment MONITORED, and an unexplained monitored assignment is a log line rather than a control.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Where this elevation is in its lifecycle.',\n whyItMatters: 'Read together with `expiresAt`, never alone: the admission predicate accepts ACTIVE and then re-checks the window, so a grant whose window elapsed stops working whether or not anything has relabelled it.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'PlatformAccessGrantStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [PlatformAccessGrantStatus.PENDING_APPROVAL]: { meaning: 'Awaiting a decision from an administrator of the target tenant — the Lockbox posture. The elevation does NOT work in this state.' },\n [PlatformAccessGrantStatus.ACTIVE]: { meaning: 'Usable now, and only while unexpired. The one status the admission predicate accepts.' },\n [PlatformAccessGrantStatus.DENIED]: { meaning: 'The tenant refused. Terminal — a fresh request must be raised rather than this one retried.' },\n [PlatformAccessGrantStatus.EXPIRED]: { meaning: 'The window elapsed. Terminal, and reached WITHOUT a writer: this label is bookkeeping for humans and reporting, never the control that stops the access.' },\n [PlatformAccessGrantStatus.REVOKED]: { meaning: 'Withdrawn before expiry, by either the tenant or the platform. Terminal.' },\n },\n }),\n expiresAt: schemaShape.expiresAt.dateSpec({\n meaning: 'When the elevation stops working.',\n whyItMatters: 'The actual control, and the reason this is a time-bound grant rather than a renamed standing privilege. Server-authored from the requested duration and clamped to a 4-hour ceiling, so a client cannot mint a long-lived elevation by asking for one. The admission predicate compares against it directly, which is why expiry needs no sweeper to take effect.',\n temporalRole: 'expiration',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n approvedByUserId: schemaShape.approvedByUserId.foreignKeySpec({\n meaning: 'The tenant administrator who approved, when a human in the tenant did.',\n whyItMatters: 'Absent on an auto-approved grant, which is what makes its presence meaningful: it distinguishes \"someone here agreed\" from \"nobody needed to\". Written only by `approve` — `deny` and `revoke` deliberately leave it alone, because writing a refusal into the approver field would corrupt the one field an audit reads.',\n }),\n approvedAt: schemaShape.approvedAt.dateSpec({\n meaning: 'When the tenant administrator approved.',\n whyItMatters: 'Fixes the consent moment relative to the access that followed — a reviewer needs to see that approval preceded use, not merely that both happened.',\n temporalRole: 'occurred',\n }),\n autoApprovalReason: schemaShape.autoApprovalReason.enumSpec({\n meaning: 'Why this grant became ACTIVE with no tenant administrator acting.',\n whyItMatters: 'Present exactly when nobody in the tenant consented, so its ABSENCE on an ACTIVE grant is itself evidence that a human approved. That distinction is what a customer audit asks for, and precisely what a single `approved: true` boolean would erase.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'PlatformAccessGrantAutoApprovalReason',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [PlatformAccessGrantAutoApprovalReason.TENANT_APPROVAL_NOT_REQUIRED]: { meaning: 'The tenant has not opted into approval — the default posture, matching Lockbox being opt-in so a tenant that never staffed an approver can still receive support.' },\n [PlatformAccessGrantAutoApprovalReason.TENANT_CANNOT_APPROVE]: { meaning: 'The tenant has NO administratively usable owner, so no principal exists who could approve. Recorded at high severity: this is the one path where operator access proceeds against a tenant that never consented and never could.' },\n },\n }),\n decisionReason: schemaShape.decisionReason.stringSpec({\n meaning: 'The tenant\\'s reason for refusing, or the revoker\\'s reason for withdrawing.',\n whyItMatters: 'Optional, unlike `justification`: a refusal owes no explanation, whereas a request does. When supplied it is the tenant\\'s side of the record.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the elevation was requested.',\n whyItMatters: 'The start of the window a reviewer reconstructs, and the ordering key for a tenant listing its elevation history.',\n temporalRole: 'creation',\n }),\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the row last changed — that is, when it was last decided upon.',\n whyItMatters: 'On this resource an update is always a lifecycle decision, since there is no generic UPDATE door.',\n temporalRole: 'modified',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Inspect one temporary support-access request for your organization.',\n outcome: 'The response identifies who requested access, their justification, the requested window and the current decision state.',\n whenToUse: 'An organization administrator is reviewing a pending request or reconstructing an earlier support-access decision.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The support-access request was found and returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-administrator authority required to review support access.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with the supplied id is visible in the caller\\'s organization. Missing and other organizations\\' requests are indistinguishable.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect a pending support-access request',\n request: {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n platformAccessGrantId: PLATFORM_ACCESS_PENDING_GRANT_ID,\n },\n response: platformAccessPendingGrantExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Inspect a request with its organization context',\n request: {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n platformAccessGrantId: PLATFORM_ACCESS_PENDING_GRANT_ID,\n },\n response: {\n ...platformAccessPendingGrantExample,\n organization: { _id: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Inspect the compact request summary',\n request: {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n platformAccessGrantId: PLATFORM_ACCESS_PENDING_GRANT_ID,\n },\n response: platformAccessPendingGrantSummaryExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'List temporary support-access requests for your organization.',\n outcome: 'The response provides the organization\\'s support-access history and the current state of each request.',\n whenToUse: 'An access-review screen, approval queue or audit preparation workflow needs the organization\\'s request inventory.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of the organization\\'s support-access requests.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-administrator authority required to review support access.' },\n ],\n idempotent: true,\n examples: [{\n title: 'List pending and active support-access requests',\n request: PLATFORM_ACCESS_PAGE_REQUEST,\n response: platformAccessGrantPage([\n platformAccessPendingGrantExample,\n platformAccessActiveGrantExample,\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'List requests with organization context',\n request: PLATFORM_ACCESS_PAGE_REQUEST,\n response: platformAccessGrantPage([\n {\n ...platformAccessPendingGrantExample,\n organization: { _id: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID },\n },\n {\n ...platformAccessActiveGrantExample,\n organization: { _id: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID },\n },\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'List compact support-access summaries',\n request: PLATFORM_ACCESS_PAGE_REQUEST,\n response: platformAccessGrantPage([\n platformAccessPendingGrantSummaryExample,\n platformAccessActiveGrantSummaryExample,\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.COUNT]: {\n purpose: 'Count temporary support-access requests for your organization.',\n outcome: 'The response returns the matching request total without transferring the request records.',\n whenToUse: 'Dashboards and access reviews that need a current tally rather than request details.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The number of support-access requests matching the caller\\'s organization and filters.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-administrator authority required to review support access.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Count support-access requests',\n request: { organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID },\n response: { count: 2 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.DELETE]: {\n purpose: 'PURGE ONLY — remove grant rows when their tenant is destroyed. There is deliberately no client door.',\n outcome: 'The row is hard-deleted. Reachable exclusively by the ORGANIZATIONS `onParentDelete` cascade during a tenant purge; its single variant is INTERNAL_CALL, so it has no HTTP route and no client — of either party — can invoke it.',\n whenToUse: 'Never directly. It exists so the composition cascade has a verb it can call: a child declaring `onParentDelete` while omitting DELETE fails the registry\\'s composition-cascade-deletability guard, and at runtime would abort the parent tenant\\'s deletion the moment a grant row existed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The grant row was removed as part of its tenant\\'s purge. Not observable over HTTP — the operation has no route.' },\n ],\n idempotent: true,\n },\n [PlatformAccessGrants_Operations.REQUEST_ACCESS]: {\n operationId: PlatformAccessGrants_Operations.REQUEST_ACCESS,\n purpose: 'Request time-boxed support access to one organization.',\n outcome: 'A request is recorded with the authenticated support operator as requester and a maximum four-hour window. Its status is `pending_approval` when the organization requires approval, otherwise `active` with an explicit automatic-approval reason. The organization is notified by email.',\n whenToUse: 'An authorized application support operator needs temporary access for support, incident response or administrative recovery.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The support-access request was recorded. Its `status` tells the operator whether access is active or awaiting an organization administrator\\'s decision.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The request body omits a non-empty `justification` or supplies a non-positive `requestedDurationMinutes`. The target organization is the required URL path parameter, not a duplicated body field. Durations above four hours are accepted but capped at four hours.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the application super-administrator authority required to request support access.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied `organizationId`.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Request two hours of support access',\n request: {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n justification: platformAccessPendingGrantExample.justification,\n requestedDurationMinutes: 120,\n },\n response: platformAccessPendingGrantExample,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n communications: {\n email: {\n purpose: 'Tell the target tenant that a platform operator has asked to reach into their organization — before it happens, not after.',\n tone: TENANT_CONSENT_TONE,\n useWhen: 'An operator requests an elevation against this tenant, whether or not the tenant has opted into approval.',\n avoidWhen: 'Never suppressed. Under the approval posture this message IS the request, so withholding it would give a tenant a decision it never hears about; under the default posture it is the only notice the tenant gets that access was taken.',\n textSlots: {\n subject: {\n purpose: 'State in the subject line that a platform operator has requested access to this organization, and whether a decision is being asked for.',\n },\n },\n eventData: {\n purpose: 'Carry the operator\\'s identity, the justification they supplied verbatim, the window they were granted, and whether the tenant must approve before the access becomes usable.',\n },\n deliveries: [\n {\n audience: TENANT_CONSENT_AUDIENCE,\n targetRef: CoreUserNotificationTarget.ORGANIZATION_USERS,\n },\n ],\n notes: [\n 'Mirrors the single `userNotifications[]` entry declared on the runtime `requestAccess` operation (target=ORGANIZATION_USERS, channel=EMAIL). It is the only communication this resource emits — `approve`, `deny` and `revoke` declare none.',\n ],\n },\n },\n },\n [PlatformAccessGrants_Operations.APPROVE]: {\n operationId: PlatformAccessGrants_Operations.APPROVE,\n purpose: 'Approve a pending support-access request.',\n outcome: 'The request becomes `active`; the response records the approving administrator and decision time. Access remains usable only until it expires or is revoked.',\n whenToUse: 'An administrator of the requested organization has reviewed the requester, justification and time window and agrees to grant access.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The support-access request is now active, and its updated state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization the request targets. A support operator cannot approve their own request.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with the supplied id is visible in the caller\\'s organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The request is no longer `pending_approval`; an approved, denied, revoked or expired request cannot be approved again.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Approve a reviewed support request',\n request: {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n platformAccessGrantId: PLATFORM_ACCESS_PENDING_GRANT_ID,\n decisionReason: 'Approved for support case INC-4821.',\n },\n response: platformAccessActiveGrantExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [PlatformAccessGrants_Operations.DENY]: {\n operationId: PlatformAccessGrants_Operations.DENY,\n purpose: 'Deny a pending support-access request.',\n outcome: 'The request becomes `denied` and cannot be retried. Any later support need requires a new request.',\n whenToUse: 'An administrator of the requested organization has reviewed the request and declines access.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The support-access request was denied, and its final state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization the request targets. A support operator cannot decide their own request.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with the supplied id is visible in the caller\\'s organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The request is no longer `pending_approval`; it was already approved, denied, revoked or has expired.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Deny a support request',\n request: {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n platformAccessGrantId: PLATFORM_ACCESS_PENDING_GRANT_ID,\n decisionReason: 'The requested investigation is no longer required.',\n },\n response: {\n ...platformAccessPendingGrantExample,\n status: PlatformAccessGrantStatus.DENIED,\n decisionReason: 'The requested investigation is no longer required.',\n updatedAt: '2026-08-20T12:06:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [PlatformAccessGrants_Operations.REVOKE]: {\n operationId: PlatformAccessGrants_Operations.REVOKE,\n purpose: 'End pending or active support access early.',\n outcome: 'The request becomes `revoked` and access stops immediately instead of remaining available until the recorded expiry.',\n whenToUse: 'An organization withdraws access it approved, or an application support operator closes access as soon as the support work is complete.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The support-access request was revoked, and its final state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an administrator of the requested organization nor an application super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with the supplied id is visible to the caller.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The request is already denied, revoked or expired. Only a `pending_approval` or `active` request can be revoked.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Close support access after the investigation',\n request: {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n platformAccessGrantId: PLATFORM_ACCESS_ACTIVE_GRANT_ID,\n decisionReason: 'Support case INC-4821 is resolved.',\n },\n response: {\n ...platformAccessActiveGrantExample,\n status: PlatformAccessGrantStatus.REVOKED,\n decisionReason: 'Support case INC-4821 is resolved.',\n updatedAt: '2026-08-20T12:42:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n\n businessConstraints: [\n 'A grant is required IN ADDITION to the operation variant\\'s `admitsCrossTenantPlatformAdministration` declaration, never instead of it. The declaration says \"this verb MAY cross\"; the grant says \"this operator MAY cross into THIS tenant, until THIS time, for THIS reason\". Neither is sufficient alone, and the roles gate runs independently of both.',\n '`requestAccess` is EXEMPT from the grant requirement it bootstraps. Gating it would be circular — an operator would need an elevation in order to ask for one — and the mechanism could never start. The exemption is safe because requesting is not accessing: the verb writes one row in the target tenant and touches nothing else, so the blast radius of an abused request is a notification, an audit row naming the operator, and a decision the tenant can refuse.',\n 'Usability is EVALUATED, never read off `status`. A grant counts only when it is ACTIVE and its `expiresAt` is still in the future, checked through the single shared predicate. A background transition to EXPIRED is bookkeeping for humans; if usability were read from the label alone, an outage in whatever performs that transition would silently restore standing access.',\n 'The 4-hour ceiling is enforced server-side by CLAMPING, not by refusing. A caller asking for longer simply gets the ceiling — being told \"ask again with a smaller number\" mid-incident is friction with no security benefit, since the ceiling is what actually binds.',\n 'Tenant approval is opt-in PER TENANT, matching Lockbox rather than a deployment-wide posture, so a tenant that has not staffed an approver is not thereby unable to receive support.',\n 'A tenant with no administratively usable owner cannot be required to approve its own repair — that is circular, and the administrative-continuity floors exist precisely because a tenant can reach that state. It is resolved by MEASUREMENT rather than exception: the grant is auto-approved with `TENANT_CANNOT_APPROVE`, evaluated with the SAME predicate the owner floor uses to refuse writes, so the two subsystems can never disagree about whether a tenant can administer itself. An operator cannot manufacture the condition either — stranding a tenant is exactly what the floors refuse.',\n 'Terminal statuses are how a grant ends. DENIED, EXPIRED and REVOKED are never edited back to life, and the row is never erased by either party: an elevation record either side could delete is not evidence. The only removal path is the tenant purge cascade, which destroys the tenant the record was about.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n"]}
1
+ {"version":3,"file":"platform-access-grants.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/platform-access-grants.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,0BAA0B,EAC1B,qCAAqC,EACrC,yBAAyB,EACzB,yBAAyB,EACzB,+BAA+B,EAC/B,oBAAoB,EACpB,+DAA+D,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,MAAM,EAAE,OAAO,EAAE,0EAA0E,EAAE;aAC7H;YACD,cAAc,EAAE;gBACd,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,8GAA8G,EAAE;gBACpK,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,2DAA2D,EAAE;gBACjH,EAAE,IAAI,EAAE,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,kHAAkH,EAAE;aACxK;YACD,UAAU,EAAE,KAAK;YACjB,QAAQ,EAAE,CAAC;oBACT,KAAK,EAAE,8CAA8C;oBACrD,OAAO,EAAE;wBACP,cAAc,EAAE,uCAAuC;wBACvD,qBAAqB,EAAE,+BAA+B;wBACtD,cAAc,EAAE,oCAAoC;qBACrD;oBACD,QAAQ,EAAE;wBACR,GAAG,gCAAgC;wBACnC,MAAM,EAAE,yBAAyB,CAAC,OAAO;wBACzC,cAAc,EAAE,oCAAoC;wBACpD,SAAS,EAAE,0BAA0B;qBACtC;oBACD,SAAS,EAAE,sBAAsB,CAAC,MAAM;iBACzC,CAAC;SACH;KACF;IAED,mBAAmB,EAAE;QACnB,8VAA8V;QAC9V,4cAA4c;QAC5c,mXAAmX;QACnX,yQAAyQ;QACzQ,sLAAsL;QACtL,2kBAA2kB;QAC3kB,kTAAkT;KACnT;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,aAAa,EAAE,CAC7D,CAAC","sourcesContent":["/**\n * Resource: `platformAccessGrants` — Wildo SaaS engine specification (backend-only, organization-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/security/authorizations/platform-access-grants.shared.schemas.ts\n * → `PlatformAccessGrantSchema`\n * - Factory: engine/saas-models/src/security/authorizations/platform-access-grants.shared.resources-config.schemas.ts\n * → `platformAccessGrantsResourceConfiguration_InitializationFactory`\n * - Custom operations: `PlatformAccessGrants_Operations` (co-located with the VOCABULARY, in the\n * schemas module rather than the resources-config module — the authorization layer needs\n * `REQUEST_ACCESS` by name, and importing it from the config would drag resource-configuration\n * evaluation into the authorizer's module graph). Both modules are re-exported from the package\n * root, so this spec imports every symbol from `@wildo-ai/saas-models` and is unaffected either way.\n *\n * Why backend-only: there is NO entry for `[CoreResourceType.PLATFORM_ACCESS_GRANTS]` in any preset\n * under engine/presets-components/src/config/resources/. The tenant-facing approval surface is not\n * built yet; today the resource is consumed by the authorizer's admission predicate and by the\n * platform/tenant API.\n *\n * Why `ORGANIZATIONS` scope: the grant belongs to the tenant being reached INTO, not to the operator\n * who asked. That is what lets the tenant read, approve and revoke elevations raised against it — a\n * consent record the consenting party cannot see would defeat the purpose of modelling consent. The\n * scope is expressed once, in the registry relationship ORGANIZATIONS → PLATFORM_ACCESS_GRANTS\n * carrying `isPrimaryScope: true`; the runtime config deliberately does not restate it.\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreUserNotificationTarget,\n PlatformAccessGrantAutoApprovalReason,\n PlatformAccessGrantSchema,\n PlatformAccessGrantStatus,\n PlatformAccessGrants_Operations,\n ResourcePrimaryScope,\n platformAccessGrantsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst TENANT_CONSENT_AUDIENCE = 'Administrators of the TARGET tenant — the party whose data is about to be reached into, and the only party who can refuse.';\nconst TENANT_CONSENT_TONE = 'Direct and factual, and never reassuring by omission: name the operator, the reason they gave, and the window they asked for, so the recipient can decide rather than merely be informed.';\n\nconst PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID = 'org_01J4P8F1M2N3Q4R5S6T7V8W9XY';\nconst PLATFORM_ACCESS_PENDING_GRANT_ID = 'platform_access_grant_01J4P8K2N3Q4R5S6T7V8W9X0YZ';\nconst PLATFORM_ACCESS_ACTIVE_GRANT_ID = 'platform_access_grant_01J4P8M3Q4R5S6T7V8W9X0Y1ZA';\nconst PLATFORM_ACCESS_OPERATOR_USER_ID = 'user_01J4P8P4R5S6T7V8W9X0Y1Z2AB';\nconst PLATFORM_ACCESS_APPROVER_USER_ID = 'user_01J4P8R5S6T7V8W9X0Y1Z2A3BC';\n\nconst platformAccessPendingGrantExample = {\n _id: PLATFORM_ACCESS_PENDING_GRANT_ID,\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n operatorUserId: PLATFORM_ACCESS_OPERATOR_USER_ID,\n justification: 'Investigate failed SCIM provisioning for support case INC-4821.',\n status: PlatformAccessGrantStatus.PENDING_APPROVAL,\n expiresAt: '2026-08-20T14:00:00.000Z',\n createdAt: '2026-08-20T12:00:00.000Z',\n updatedAt: '2026-08-20T12:00:00.000Z',\n};\n\nconst platformAccessActiveGrantExample = {\n ...platformAccessPendingGrantExample,\n _id: PLATFORM_ACCESS_ACTIVE_GRANT_ID,\n status: PlatformAccessGrantStatus.ACTIVE,\n approvedByUserId: PLATFORM_ACCESS_APPROVER_USER_ID,\n approvedAt: '2026-08-20T12:08:00.000Z',\n updatedAt: '2026-08-20T12:08:00.000Z',\n};\n\nconst platformAccessPendingGrantSummaryExample = {\n _id: platformAccessPendingGrantExample._id,\n organizationId: platformAccessPendingGrantExample.organizationId,\n operatorUserId: platformAccessPendingGrantExample.operatorUserId,\n justification: platformAccessPendingGrantExample.justification,\n status: platformAccessPendingGrantExample.status,\n expiresAt: platformAccessPendingGrantExample.expiresAt,\n};\n\nconst platformAccessActiveGrantSummaryExample = {\n ...platformAccessPendingGrantSummaryExample,\n _id: platformAccessActiveGrantExample._id,\n status: platformAccessActiveGrantExample.status,\n};\n\nconst PLATFORM_ACCESS_PAGE_REQUEST = {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n page: 1,\n limit: 20,\n sort: 'createdAt:desc',\n};\n\nfunction platformAccessGrantPage<T>(data: readonly T[]) {\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\nexport const platformAccessGrantsResourceSpecification = resourceSpecification(\n platformAccessGrantsResourceConfiguration_InitializationFactory,\n PlatformAccessGrantSchema,\n ({ schemaShape }) => ({\n purpose: 'Give an application support team a justified, time-limited way to request access to an organization while keeping that organization informed and in control of the decision.',\n businessRole: 'The organization\\'s support-access ledger. It answers who requested access, why they requested it, how long the window lasts, whether an administrator approved it and when access ended.',\n lifecycleRole: 'An authorized support operator creates a request. It waits for an organization administrator when approval is required, or becomes active immediately with an explicit automatic-approval reason. An administrator can approve or deny a pending request; either side can revoke pending or active access; expiry ends access automatically. Completed requests remain available as access-review history.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.AUTH,\n\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'PlatformAccessGrantSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'platformAccessGrantsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'PLATFORM_ACCESS_GRANTS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'PlatformAccessGrants_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'No public CREATE or UPDATE. `requestAccess` is the only writer of a new row, and `approve` / `deny` / `revoke` are the only status transitions. A generic UPDATE would be a second, ungated path to those transitions; a generic CREATE would let a caller author `status`, `expiresAt` and `operatorUserId`, which are precisely the fields whose SERVER authorship is the control.',\n 'DELETE exists but has NO client door — its single variant is INTERNAL_CALL, mirroring `organizations.delete`\\'s own default. It is present only so the ORGANIZATIONS composition cascade (`onParentDelete`) has a verb it can call; a cascade declared but unable to run fails the registry\\'s composition-cascade-deletability guard, and would otherwise leave grant rows behind after their tenant was purged.',\n 'The runtime declares exactly ONE `userNotifications[]` entry, on `requestAccess` (target=ORGANIZATION_USERS, channel=EMAIL). There are no `m2mNotifications` anywhere in this family, so no `communications.m2m` block appears on any operation (DF-1 strict parity).',\n 'The grant LIFECYCLE audit events (requested / approved / denied / revoked) are not emitted yet — see `.claude/plans/platform-access-grants-jit-elevation.md` R7. The crossing itself is already audited by `CoreAuditableEventType.CROSS_TENANT_ADMINISTRATIVE_ACCESS`, emitted from the authorizer rather than from this resource.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for one elevation request.',\n whyItMatters: 'The address of every subsequent decision — approve, deny and revoke all target this row, and the audit trail names it.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n organizationId: schemaShape.organizationId.foreignKeySpec({\n meaning: 'The TARGET tenant — the organization being reached into, never the operator\\'s own.',\n whyItMatters: 'The scope anchor. It makes the grant an organization-scoped row, which is what lets the tenant see, approve and revoke elevations raised against it, and it is the tenant the admission predicate matches a crossing against.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n operatorUserId: schemaShape.operatorUserId.foreignKeySpec({\n meaning: 'The platform operator who requested the elevation.',\n whyItMatters: 'Server-authored from the session, never client-supplied — an elevation whose subject the caller could choose would let one operator mint access for another. Together with `organizationId` it forms the pair the admission predicate matches: this operator, into this tenant.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n justification: schemaShape.justification.stringSpec({\n meaning: 'Why the operator needs access, in their own words.',\n whyItMatters: 'Required everywhere in the flow and deliberately never optional. An elevation record without a reason answers \"who\" and \"when\" but not \"why\", which is the only question a reviewer or a customer actually asks; NIST SP 800-53 AC-2(7) wants privileged assignment MONITORED, and an unexplained monitored assignment is a log line rather than a control.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Where this elevation is in its lifecycle.',\n whyItMatters: 'Read together with `expiresAt`, never alone: the admission predicate accepts ACTIVE and then re-checks the window, so a grant whose window elapsed stops working whether or not anything has relabelled it.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'PlatformAccessGrantStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [PlatformAccessGrantStatus.PENDING_APPROVAL]: { meaning: 'Awaiting a decision from an administrator of the target tenant — the Lockbox posture. The elevation does NOT work in this state.' },\n [PlatformAccessGrantStatus.ACTIVE]: { meaning: 'Usable now, and only while unexpired. The one status the admission predicate accepts.' },\n [PlatformAccessGrantStatus.DENIED]: { meaning: 'The tenant refused. Terminal — a fresh request must be raised rather than this one retried.' },\n [PlatformAccessGrantStatus.EXPIRED]: { meaning: 'The window elapsed. Terminal. Written by the nightly credential-expiry sweep, which lags by up to a day — the label is bookkeeping for humans and reporting, never the control that stops the access. Access stops the instant `expiresAt` passes, because the admission predicate compares against that field and not against this one.' },\n [PlatformAccessGrantStatus.REVOKED]: { meaning: 'Withdrawn before expiry, by either the tenant or the platform. Terminal.' },\n },\n }),\n expiresAt: schemaShape.expiresAt.dateSpec({\n meaning: 'When the elevation stops working.',\n whyItMatters: 'The actual control, and the reason this is a time-bound grant rather than a renamed standing privilege. Server-authored from the requested duration and clamped to a 4-hour ceiling, so a client cannot mint a long-lived elevation by asking for one. The admission predicate compares against it directly, which is why expiry needs no sweeper to take effect — the sweep that relabels `status` afterwards is a record, not a control.',\n temporalRole: 'expiration',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n approvedByUserId: schemaShape.approvedByUserId.foreignKeySpec({\n meaning: 'The tenant administrator who approved, when a human in the tenant did.',\n whyItMatters: 'Absent on an auto-approved grant, which is what makes its presence meaningful: it distinguishes \"someone here agreed\" from \"nobody needed to\". Written only by `approve` — `deny` and `revoke` deliberately leave it alone, because writing a refusal into the approver field would corrupt the one field an audit reads.',\n }),\n approvedAt: schemaShape.approvedAt.dateSpec({\n meaning: 'When the tenant administrator approved.',\n whyItMatters: 'Fixes the consent moment relative to the access that followed — a reviewer needs to see that approval preceded use, not merely that both happened.',\n temporalRole: 'occurred',\n }),\n autoApprovalReason: schemaShape.autoApprovalReason.enumSpec({\n meaning: 'Why this grant became ACTIVE with no tenant administrator acting.',\n whyItMatters: 'Present exactly when nobody in the tenant consented, so its ABSENCE on an ACTIVE grant is itself evidence that a human approved. That distinction is what a customer audit asks for, and precisely what a single `approved: true` boolean would erase.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'PlatformAccessGrantAutoApprovalReason',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [PlatformAccessGrantAutoApprovalReason.TENANT_APPROVAL_NOT_REQUIRED]: { meaning: 'The tenant has not opted into approval — the default posture, matching Lockbox being opt-in so a tenant that never staffed an approver can still receive support.' },\n [PlatformAccessGrantAutoApprovalReason.TENANT_CANNOT_APPROVE]: { meaning: 'The tenant has NO administratively usable owner, so no principal exists who could approve. Recorded at high severity: this is the one path where operator access proceeds against a tenant that never consented and never could.' },\n },\n }),\n decisionReason: schemaShape.decisionReason.stringSpec({\n meaning: 'The tenant\\'s reason for refusing, or the revoker\\'s reason for withdrawing.',\n whyItMatters: 'Optional, unlike `justification`: a refusal owes no explanation, whereas a request does. When supplied it is the tenant\\'s side of the record.',\n }),\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the elevation was requested.',\n whyItMatters: 'The start of the window a reviewer reconstructs, and the ordering key for a tenant listing its elevation history.',\n temporalRole: 'creation',\n }),\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the record last changed — that is, when it was last decided upon.',\n whyItMatters: 'On this resource an update is always a lifecycle decision, since there is no generic UPDATE door.',\n temporalRole: 'modified',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Inspect one temporary support-access request for your organization.',\n outcome: 'The response identifies who requested access, their justification, the requested window and the current decision state.',\n whenToUse: 'An organization administrator is reviewing a pending request or reconstructing an earlier support-access decision.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The support-access request was found and returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-administrator authority required to review support access.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with the supplied id is visible in the caller\\'s organization. Missing and other organizations\\' requests are indistinguishable.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Inspect a pending support-access request',\n request: {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n platformAccessGrantId: PLATFORM_ACCESS_PENDING_GRANT_ID,\n },\n response: platformAccessPendingGrantExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Inspect a request with its organization context',\n request: {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n platformAccessGrantId: PLATFORM_ACCESS_PENDING_GRANT_ID,\n },\n response: {\n ...platformAccessPendingGrantExample,\n organization: { _id: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Inspect the compact request summary',\n request: {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n platformAccessGrantId: PLATFORM_ACCESS_PENDING_GRANT_ID,\n },\n response: platformAccessPendingGrantSummaryExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.LIST]: {\n purpose: 'List temporary support-access requests for your organization.',\n outcome: 'The response provides the organization\\'s support-access history and the current state of each request.',\n whenToUse: 'An access-review screen, approval queue or audit preparation workflow needs the organization\\'s request inventory.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A possibly empty page of the organization\\'s support-access requests.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-administrator authority required to review support access.' },\n ],\n idempotent: true,\n examples: [{\n title: 'List pending and active support-access requests',\n request: PLATFORM_ACCESS_PAGE_REQUEST,\n response: platformAccessGrantPage([\n platformAccessPendingGrantExample,\n platformAccessActiveGrantExample,\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'List requests with organization context',\n request: PLATFORM_ACCESS_PAGE_REQUEST,\n response: platformAccessGrantPage([\n {\n ...platformAccessPendingGrantExample,\n organization: { _id: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID },\n },\n {\n ...platformAccessActiveGrantExample,\n organization: { _id: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID },\n },\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'List compact support-access summaries',\n request: PLATFORM_ACCESS_PAGE_REQUEST,\n response: platformAccessGrantPage([\n platformAccessPendingGrantSummaryExample,\n platformAccessActiveGrantSummaryExample,\n ]),\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.COUNT]: {\n purpose: 'Count temporary support-access requests for your organization.',\n outcome: 'The response returns the matching request total without transferring the request records.',\n whenToUse: 'Dashboards and access reviews that need a current tally rather than request details.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The number of support-access requests matching the caller\\'s organization and filters.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the organization-administrator authority required to review support access.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Count support-access requests',\n request: { organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID },\n response: { count: 2 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.DELETE]: {\n purpose: 'PURGE ONLY — remove grant rows when their tenant is destroyed. There is deliberately no client door.',\n outcome: 'The row is hard-deleted. Reachable exclusively by the ORGANIZATIONS `onParentDelete` cascade during a tenant purge; its single variant is INTERNAL_CALL, so it has no HTTP route and no client — of either party — can invoke it.',\n whenToUse: 'Never directly. It exists so the composition cascade has a verb it can call: a child declaring `onParentDelete` while omitting DELETE fails the registry\\'s composition-cascade-deletability guard, and at runtime would abort the parent tenant\\'s deletion the moment a grant row existed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The grant record was removed as part of its tenant\\'s purge. Not observable over HTTP — the operation has no route.' },\n ],\n idempotent: true,\n },\n [PlatformAccessGrants_Operations.REQUEST_ACCESS]: {\n operationId: PlatformAccessGrants_Operations.REQUEST_ACCESS,\n purpose: 'Request time-boxed support access to one organization.',\n outcome: 'A request is recorded with the authenticated support operator as requester and a maximum four-hour window. Its status is `pending_approval` when the organization requires approval, otherwise `active` with an explicit automatic-approval reason. The organization is notified by email.',\n whenToUse: 'An authorized application support operator needs temporary access for support, incident response or administrative recovery.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The support-access request was recorded. Its `status` tells the operator whether access is active or awaiting an organization administrator\\'s decision.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The request body omits a non-empty `justification` or supplies a non-positive `requestedDurationMinutes`. The target organization is the required URL path parameter, not a duplicated body field. Durations above four hours are accepted but capped at four hours.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller does not hold the application super-administrator authority required to request support access.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No organization exists for the supplied `organizationId`.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Request two hours of support access',\n request: {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n justification: platformAccessPendingGrantExample.justification,\n requestedDurationMinutes: 120,\n },\n response: platformAccessPendingGrantExample,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n communications: {\n email: {\n purpose: 'Tell the target tenant that a platform operator has asked to reach into their organization — before it happens, not after.',\n tone: TENANT_CONSENT_TONE,\n useWhen: 'An operator requests an elevation against this tenant, whether or not the tenant has opted into approval.',\n avoidWhen: 'Never suppressed. Under the approval posture this message IS the request, so withholding it would give a tenant a decision it never hears about; under the default posture it is the only notice the tenant gets that access was taken.',\n textSlots: {\n subject: {\n purpose: 'State in the subject line that a platform operator has requested access to this organization, and whether a decision is being asked for.',\n },\n },\n eventData: {\n purpose: 'Carry the operator\\'s identity, the justification they supplied verbatim, the window they were granted, and whether the tenant must approve before the access becomes usable.',\n },\n deliveries: [\n {\n audience: TENANT_CONSENT_AUDIENCE,\n targetRef: CoreUserNotificationTarget.ORGANIZATION_USERS,\n },\n ],\n notes: [\n 'Mirrors the single `userNotifications[]` entry declared on the runtime `requestAccess` operation (target=ORGANIZATION_USERS, channel=EMAIL). It is the only communication this resource emits — `approve`, `deny` and `revoke` declare none.',\n ],\n },\n },\n },\n [PlatformAccessGrants_Operations.APPROVE]: {\n operationId: PlatformAccessGrants_Operations.APPROVE,\n purpose: 'Approve a pending support-access request.',\n outcome: 'The request becomes `active`; the response records the approving administrator and decision time. Access remains usable only until it expires or is revoked.',\n whenToUse: 'An administrator of the requested organization has reviewed the requester, justification and time window and agrees to grant access.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The support-access request is now active, and its updated state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization the request targets. A support operator cannot approve their own request.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with the supplied id is visible in the caller\\'s organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The request is no longer `pending_approval`; an approved, denied, revoked or expired request cannot be approved again.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Approve a reviewed support request',\n request: {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n platformAccessGrantId: PLATFORM_ACCESS_PENDING_GRANT_ID,\n decisionReason: 'Approved for support case INC-4821.',\n },\n response: platformAccessActiveGrantExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [PlatformAccessGrants_Operations.DENY]: {\n operationId: PlatformAccessGrants_Operations.DENY,\n purpose: 'Deny a pending support-access request.',\n outcome: 'The request becomes `denied` and cannot be retried. Any later support need requires a new request.',\n whenToUse: 'An administrator of the requested organization has reviewed the request and declines access.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The support-access request was denied, and its final state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of the organization the request targets. A support operator cannot decide their own request.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with the supplied id is visible in the caller\\'s organization.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The request is no longer `pending_approval`; it was already approved, denied, revoked or has expired.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Deny a support request',\n request: {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n platformAccessGrantId: PLATFORM_ACCESS_PENDING_GRANT_ID,\n decisionReason: 'The requested investigation is no longer required.',\n },\n response: {\n ...platformAccessPendingGrantExample,\n status: PlatformAccessGrantStatus.DENIED,\n decisionReason: 'The requested investigation is no longer required.',\n updatedAt: '2026-08-20T12:06:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [PlatformAccessGrants_Operations.REVOKE]: {\n operationId: PlatformAccessGrants_Operations.REVOKE,\n purpose: 'End pending or active support access early.',\n outcome: 'The request becomes `revoked` and access stops immediately instead of remaining available until the recorded expiry.',\n whenToUse: 'An organization withdraws access it approved, or an application support operator closes access as soon as the support work is complete.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The support-access request was revoked, and its final state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is neither an administrator of the requested organization nor an application super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No request with the supplied id is visible to the caller.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The request is already denied, revoked or expired. Only a `pending_approval` or `active` request can be revoked.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Close support access after the investigation',\n request: {\n organizationId: PLATFORM_ACCESS_EXAMPLE_ORGANIZATION_ID,\n platformAccessGrantId: PLATFORM_ACCESS_ACTIVE_GRANT_ID,\n decisionReason: 'Support case INC-4821 is resolved.',\n },\n response: {\n ...platformAccessActiveGrantExample,\n status: PlatformAccessGrantStatus.REVOKED,\n decisionReason: 'Support case INC-4821 is resolved.',\n updatedAt: '2026-08-20T12:42:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n\n businessConstraints: [\n 'A grant is required IN ADDITION to the operation variant\\'s `admitsCrossTenantPlatformAdministration` declaration, never instead of it. The declaration says \"this verb MAY cross\"; the grant says \"this operator MAY cross into THIS tenant, until THIS time, for THIS reason\". Neither is sufficient alone, and the roles gate runs independently of both.',\n '`requestAccess` is EXEMPT from the grant requirement it bootstraps. Gating it would be circular — an operator would need an elevation in order to ask for one — and the mechanism could never start. The exemption is safe because requesting is not accessing: the verb writes one row in the target tenant and touches nothing else, so the blast radius of an abused request is a notification, an audit row naming the operator, and a decision the tenant can refuse.',\n 'Usability is EVALUATED, never read off `status`. A grant counts only when it is ACTIVE and its `expiresAt` is still in the future, checked through the single shared predicate. A background transition to EXPIRED is bookkeeping for humans; if usability were read from the label alone, an outage in whatever performs that transition would silently restore standing access.',\n 'The 4-hour ceiling is enforced server-side by CLAMPING, not by refusing. A caller asking for longer simply gets the ceiling — being told \"ask again with a smaller number\" mid-incident is friction with no security benefit, since the ceiling is what actually binds.',\n 'Tenant approval is opt-in PER TENANT, matching Lockbox rather than a deployment-wide posture, so a tenant that has not staffed an approver is not thereby unable to receive support.',\n 'A tenant with no administratively usable owner cannot be required to approve its own repair — that is circular, and the administrative-continuity floors exist precisely because a tenant can reach that state. It is resolved by MEASUREMENT rather than exception: the grant is auto-approved with `TENANT_CANNOT_APPROVE`, evaluated with the SAME predicate the owner floor uses to refuse writes, so the two subsystems can never disagree about whether a tenant can administer itself. An operator cannot manufacture the condition either — stranding a tenant is exactly what the floors refuse.',\n 'Terminal statuses are how a grant ends. DENIED, EXPIRED and REVOKED are never edited back to life, and the row is never erased by either party: an elevation record either side could delete is not evidence. The only removal path is the tenant purge cascade, which destroys the tenant the record was about.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.ORGANIZATIONS },\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"scim-provisioning-config.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/scim-provisioning-config.resource.specification.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAK5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AAuOrC,eAAO,MAAM,uDAAuD;;;;;;;;;;;;;;;;;;;;;iCAGnE,CAAC;AACF,eAAO,MAAM,sDAAsD;;;;;;;;;;;;;;;;;;;;;iCAGlE,CAAC"}
1
+ {"version":3,"file":"scim-provisioning-config.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/scim-provisioning-config.resource.specification.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAK5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AAuOrC,eAAO,MAAM,uDAAuD;;;;;;;;;;;;;;;;;;;;;iCAGnE,CAAC;AACF,eAAO,MAAM,sDAAsD;;;;;;;;;;;;;;;;;;;;;iCAGlE,CAAC"}
@@ -133,7 +133,7 @@ function buildBase(rt, member) {
133
133
  purpose: 'Provision the initial SCIM config document for a scope (INTERNAL_CALL create — no public HTTP route; seed / system-context lazy-create only; HIGH risk).',
134
134
  outcome: 'A new settings row; combined with `ScimTokens` for a working endpoint when enabled.',
135
135
  responseStatuses: [
136
- { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SCIM provisioning config row was provisioned for the scope with the supplied gating and mapping.' },
136
+ { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SCIM provisioning config record was provisioned for the scope with the supplied gating and mapping.' },
137
137
  ],
138
138
  errorScenarios: [
139
139
  { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The config payload fails schema validation, for example because a typed setting or role value is invalid. Attribute-mapping expressions are strings and must be behavior-tested separately.', errorCode: 'VALIDATION_FAILED' },
@@ -179,7 +179,7 @@ function buildBase(rt, member) {
179
179
  purpose: 'Repository-only teardown of the SCIM provisioning config row when its owning org/app is deleted (composition `onParentDelete` cascade).',
180
180
  outcome: 'The one-per-scope config row is removed together with its parent — the composition part does not outlive its whole.',
181
181
  responseStatuses: [
182
- { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM provisioning config row was deleted as part of the deletion cascade of its owning scope.' },
182
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM provisioning config record was deleted as part of the deletion cascade of its owning scope.' },
183
183
  ],
184
184
  // 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.
185
185
  idempotent: true,
@@ -1 +1 @@
1
- {"version":3,"file":"scim-provisioning-config.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/scim-provisioning-config.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,gCAAgC,EAChC,0CAA0C,GAC3C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAE/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAU3E,SAAS,CAAC,CAAC,MAAwC,EAAE,EAAS,EAAE,IAAY;IAC1E,MAAM,CAAC,GAAG,MAAM,CAAC,EAAE,CAAkB,CAAC;IACtC,IAAI,CAAC,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,YAAY,EAAE,QAAQ,IAAI,GAAG,CAAC,CAAC;IACvD,OAAO,CAAC,CAAC;AACX,CAAC;AACD,MAAM,KAAK,GAAwC;IACjD,CAAC,gBAAgB,CAAC,qCAAqC,CAAC,EAAE,oBAAoB,CAAC,aAAa;IAC5F,CAAC,gBAAgB,CAAC,oCAAoC,CAAC,EAAE,oBAAoB,CAAC,WAAW;CAC1F,CAAC;AAEF,MAAM,0BAA0B,GAAG,sBAAsB,CAAC;AAE1D;;;;;GAKG;AACH,SAAS,oCAAoC,CAAC,EAAS;IACrD,MAAM,cAAc,GA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E,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,qDAAqD,EAAE,EAAE,EAAE;aAC3W;SACF;QACD,KAAK,EAAE;YACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,+IAA+I,EAAE,SAAS,EAAE,2DAA2D,EAAE;SAChP;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,uDAAuD,GAAG,KAAK,CAC1E,gBAAgB,CAAC,qCAAqC,EACtD,uCAAuC,CACxC,CAAC;AACF,MAAM,CAAC,MAAM,sDAAsD,GAAG,KAAK,CACzE,gBAAgB,CAAC,oCAAoC,EACrD,sCAAsC,CACvC,CAAC","sourcesContent":["import { securityAdminPresets, securityMainPresets } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n ScimProvisioningConfigBaseSchema,\n scimProvisioningConfigPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype RType = CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG | CoreResourceType.APPLICATION_SCIM_PROVISIONING_CONFIG;\ntype RMember = 'ORGANIZATION_SCIM_PROVISIONING_CONFIG' | 'APPLICATION_SCIM_PROVISIONING_CONFIG';\ntype Cfg = ReturnType<(typeof scimProvisioningConfigPolymorphicFactories)[CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG]>;\ntype Custom = undefined;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof ScimProvisioningConfigBaseSchema;\ntype F = ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nfunction r(source: Partial<Record<string, unknown>>, rt: RType, name: string): F {\n const u = source[rt] as F | undefined;\n if (!u) throw new Error(`Missing \"${rt}\" in ${name}.`);\n return u;\n}\nconst scope: Record<RType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SCIM_PROVISIONING_CONFIG]: ResourcePrimaryScope.APPLICATION,\n};\n\nconst SCIM_CONFIG_DOMAIN_EXAMPLE = 'identity.example.com';\n\n/**\n * Builds all public READ representations from one directory-provisioning policy\n * snapshot. The scope identifier and context relation differ between the two\n * polymorphic resources, while the SCIM endpoint and mapping semantics remain\n * framework-owned. No bearer token or other credential belongs in this config.\n */\nfunction createScimProvisioningConfigExamples(rt: RType) {\n const isOrganization = rt === CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG;\n const scopeId = isOrganization ? 'org_01JSCIMEXAMPLE' : 'app_01JSCIMEXAMPLE';\n const scopeIdentifier = isOrganization ? { organizationId: scopeId } : { applicationId: scopeId };\n const scopeContext = isOrganization ? { organization: { _id: scopeId } } : { application: { _id: scopeId } };\n const response = {\n _id: 'scimcfg_01JSCIMEXAMPLE',\n autoCreateUsers: true,\n autoVerifyEmail: true,\n autoDeactivateUsers: true,\n defaultRole: isOrganization ? 'organization-member' : 'application-user',\n attributeMapping: {\n email: 'emails[primary eq true].value',\n firstName: 'name.givenName',\n lastName: 'name.familyName',\n displayName: 'displayName',\n },\n organizationUnitMapping: [{\n directoryValue: 'Engineering',\n organizationUnitId: 'unit_01JSCIMENGINEERING',\n }],\n defaultUnitRole: 'member',\n scimEndpointUrl: '/api/v1/scim/v2',\n allowedDomains: [SCIM_CONFIG_DOMAIN_EXAMPLE],\n createdAt: '2026-08-20T08:00:00.000Z',\n updatedAt: '2026-08-20T08:15:00.000Z',\n ...scopeIdentifier,\n };\n\n return {\n response,\n contextResponse: { ...response, ...scopeContext },\n summaryResponse: {\n _id: response._id,\n autoCreateUsers: response.autoCreateUsers,\n },\n };\n}\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const examples = createScimProvisioningConfigExamples(rt);\n\n return resourceSpecification<Custom, Core, Main>(\n scimProvisioningConfigPolymorphicFactories[rt],\n ScimProvisioningConfigBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SCIM provisioning behavior for directory-managed users: default roles, attribute mappings, and automatic create and deactivate handling. This resource governs what happens after an authenticated SCIM request; organization-scoped SCIM bearer credentials authenticate the identity provider, while SSO sign-in and just-in-time provisioning are a separate channel.',\n businessRole: 'Controls how identity-provider directory data becomes application users and memberships, including the authorization defaults applied during provisioning.',\n lifecycleRole: 'Configure it while connecting the identity provider, then review it whenever directory attributes, role policy, or user-lifecycle policy changes.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ScimProvisioningConfigBaseSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactoryCollectionEntry: { collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'scimProvisioningConfigPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY }, identifierField: 'collectionKey', identifierValue: rt },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: member },\n operationVocabulary: {\n coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n },\n frontendConfigurationSourceEntries: [\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n ],\n },\n fields: {\n autoCreateUsers: schemaShape.autoCreateUsers.booleanSpec({ meaning: 'Whether SCIM `POST /Users` can create new users during directory synchronization. When false, creation requests for users who do not already exist are rejected.', importance: FieldSemanticImportance.PRIMARY }),\n autoVerifyEmail: schemaShape.autoVerifyEmail.booleanSpec({ meaning: 'Whether a trusted SCIM assertion marks a newly provisioned email as verified. When false, the new user remains in the application email-verification journey instead of becoming verified from the directory assertion.' }),\n autoDeactivateUsers: schemaShape.autoDeactivateUsers.booleanSpec({ meaning: 'Whether SCIM `DELETE /Users/{id}` and updates with `active: false` deactivate the user and their membership. When false, directory removals leave the application account active.' }),\n defaultRole: schemaShape.defaultRole.stringSpec({ meaning: 'Fallback role for newly provisioned members when the IdP payload does not supply a stronger mapping.' }),\n attributeMapping: schemaShape.attributeMapping.objectSpec({ meaning: 'Path expressions that map the incoming SCIM document to email, name, and profile fields. Supports dotted paths, array indexes such as `emails[0].value`, and SCIM filters such as `emails[primary eq true].value`. A malformed or unmatched expression produces no value instead of a validation error, so test every custom mapping with a representative identity-provider payload.' }),\n organizationUnitMapping: schemaShape.organizationUnitMapping.arraySpec({\n meaning: 'Explicit mappings from the directory’s SCIM Enterprise User `department` value to organization-unit identifiers. Unmapped values are ignored and never create units. When this list is non-empty and `defaultUnitRole` is set, supported user creation and full-replacement requests make SCIM authoritative for unit assignments: the mapped set replaces existing assignments, including assignments made manually. SCIM PATCH and Bulk requests do not currently reconcile organization units.',\n elementMeaning: 'One case-sensitive mapping from the trimmed directory department value to an existing organization-unit identifier.',\n }),\n defaultUnitRole: schemaShape.defaultUnitRole.stringSpec({ meaning: 'Role granted on every organization-unit assignment created through SCIM. It is separate from `defaultRole`, which controls organization-wide membership. Changing this setting changes the access granted to subsequently reconciled directory-managed users.' }),\n scimEndpointUrl: schemaShape.scimEndpointUrl.stringSpec({ meaning: 'Read-only API-relative base path for the SCIM service, for example `/api/v1/scim/v2`. Combine it with the deployment’s API base URL when configuring the identity provider. Tenant selection comes from the SCIM bearer credential, not from the URL path.' }),\n allowedDomains: schemaShape.allowedDomains.arraySpec({\n meaning: 'Read-only email domains accepted by SCIM provisioning. The list reflects the scope’s currently verified SSO domains. An empty list means no verified-domain restriction is configured; an absent value means domain policy could not be determined.',\n elementMeaning: 'One DNS-verified email domain accepted by SCIM provisioning.',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the current SCIM provisioning behavior for this scope.',\n outcome: 'Administrators can review user-creation, deactivation, attribute-mapping, domain, and role policy before connecting or changing an identity provider.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM provisioning config for this scope was found and its gating/mapping is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to inspect SCIM provisioning settings.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM provisioning config has been provisioned for this org/app scope yet.' },\n ],\n examples: [{\n title: 'Read the complete SCIM provisioning policy',\n response: examples.response,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Read the SCIM policy with its owning scope context',\n response: examples.contextResponse,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Read the SCIM account-creation summary',\n response: examples.summaryResponse,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Provision the initial SCIM config document for a scope (INTERNAL_CALL create — no public HTTP route; seed / system-context lazy-create only; HIGH risk).',\n outcome: 'A new settings row; combined with `ScimTokens` for a working endpoint when enabled.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SCIM provisioning config row was provisioned for the scope with the supplied gating and mapping.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The config payload fails schema validation, for example because a typed setting or role value is invalid. Attribute-mapping expressions are strings and must be behavior-tested separately.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform/security admin; this is a HIGH-risk internal-only (INTERNAL_CALL) provisioning path.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A SCIM provisioning config already exists for this org/app scope — the resource is one-per-scope, so a second create collides.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Provision SCIM provisioning config for a scope',\n request: {\n autoCreateUsers: true,\n autoDeactivateUsers: true,\n defaultRole: 'member',\n attributeMapping: {\n email: 'emails[primary eq true].value',\n displayName: 'displayName',\n },\n },\n response: {\n _id: 'scimcfg_01HX2…',\n autoCreateUsers: true,\n defaultRole: 'member',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Change mapping, toggles, and defaults as the IdP app evolves (INTERNAL_CALL update — no public HTTP route; reached through `AuthOrganizationConfigurationService.saveScimProvisioningConfig` on the admin’s execution context, preserving admin audit attribution; HIGH risk).',\n outcome: 'Subsequent sync runs follow the new mapping; expect eventual consistency, not instant retroactive rewrite of all users in general.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM gating, mapping, and defaults were updated; subsequent sync runs follow the new mapping.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The patched mapping or toggles fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the HIGH-risk admin role required to change SCIM provisioning settings.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM provisioning config exists for this scope to update.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the SCIM provisioning config row when its owning org/app is deleted (composition `onParentDelete` cascade).',\n outcome: 'The one-per-scope config row is removed together with its parent — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM provisioning config row was deleted as part of the deletion cascade of its owning scope.' },\n ],\n // REPOSITORY_ONLY variant (org/app admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Organization-scoped SCIM bearer credentials authenticate the identity provider. This resource governs what accepted SCIM events do to users and memberships.',\n ],\n }),\n { resourcePrimaryScope: scope[rt] },\n );\n}\n\nfunction build(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(r(securityMainPresets as Partial<Record<string, unknown>>, rt, 'securityMainPresets')),\n resourceFrontendConfiguration(r(securityAdminPresets as Partial<Record<string, unknown>>, rt, 'securityAdminPresets')),\n ),\n buildBase(rt, member),\n () => ({\n layout: {\n purpose: 'Sections `overview`, `mapping`, and `lifecycle` in `security` templates for the SCIM provisioning config editor and read views.',\n displayPurpose: 'Read vs edit: edit focuses on boolean gates and string maps; read surfaces the same in display layout components in the preset file.',\n sections: {\n overview: { purpose: 'High-level auto-create / deactivate / verify-email lifecycle toggles for the push. (Enablement itself lives on the org-type config, not here.)', whenToUse: 'Tuning what SCIM does to users once it is enabled for the org type.', textSlots: { title: { purpose: 'SCIM overview.' }, description: { purpose: 'Mention that whether SCIM is on is an org-type setting, and that tokens are managed in the sibling SCIM token resource — not in this form.' } } },\n mapping: { purpose: 'Attribute mapping and default role; ties IdP field paths to internal profile fields when defined.', whenToUse: 'IdP schema differences require mapping changes.', textSlots: { title: { purpose: 'Attribute mapping block.' }, description: { purpose: 'Explain that unmatched or malformed expressions can resolve to no value and therefore must be tested against the real IdP payload.' } } },\n lifecycle: { purpose: 'Create/update metadata timestamps for the config row; not user lifecycle, which is event-driven on SCIM traffic.', whenToUse: 'Support proving when the mapping last changed in incidents.', textSlots: { title: { purpose: 'Config lifecycle / timestamps.' }, description: { purpose: 'Distinguish from user lifecycle in domain language.' } } },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Addressable read for the security SCIM page in org (app scope may use empty `views` in main `variantOverrides`—factory op exists regardless).', whenToUse: 'Admins review SCIM gating and mapping in merged consoles.' },\n },\n }),\n );\n}\n\nexport const organizationScimProvisioningConfigResourceSpecification = build(\n CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG,\n 'ORGANIZATION_SCIM_PROVISIONING_CONFIG',\n);\nexport const applicationScimProvisioningConfigResourceSpecification = build(\n CoreResourceType.APPLICATION_SCIM_PROVISIONING_CONFIG,\n 'APPLICATION_SCIM_PROVISIONING_CONFIG',\n);\n"]}
1
+ {"version":3,"file":"scim-provisioning-config.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/scim-provisioning-config.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxG,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,gCAAgC,EAChC,0CAA0C,GAC3C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAE/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,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I;YAC1I,cAAc,EAAE,sIAAsI;YACtJ,QAAQ,EAAE;gBACR,QAAQ,EAAE,EAAE,OAAO,EAAE,gJAAgJ,EAAE,SAAS,EAAE,qEAAqE,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,4IAA4I,EAAE,EAAE,EAAE;gBACtd,OAAO,EAAE,EAAE,OAAO,EAAE,mGAAmG,EAAE,SAAS,EAAE,iDAAiD,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,oIAAoI,EAAE,EAAE,EAAE;gBACtZ,SAAS,EAAE,EAAE,OAAO,EAAE,kHAAkH,EAAE,SAAS,EAAE,6DAA6D,EAAE,SAAS,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,qDAAqD,EAAE,EAAE,EAAE;aAC3W;SACF;QACD,KAAK,EAAE;YACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,+IAA+I,EAAE,SAAS,EAAE,2DAA2D,EAAE;SAChP;KACF,CAAC,CACH,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,uDAAuD,GAAG,KAAK,CAC1E,gBAAgB,CAAC,qCAAqC,EACtD,uCAAuC,CACxC,CAAC;AACF,MAAM,CAAC,MAAM,sDAAsD,GAAG,KAAK,CACzE,gBAAgB,CAAC,oCAAoC,EACrD,sCAAsC,CACvC,CAAC","sourcesContent":["import { securityAdminPresets, securityMainPresets } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance } from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n CoreResourceType,\n ResourcePrimaryScope,\n ScimProvisioningConfigBaseSchema,\n scimProvisioningConfigPolymorphicFactories,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n mergeResourceFrontendConfigurations,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n type ResourceSpecificationConfig,\n} from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype RType = CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG | CoreResourceType.APPLICATION_SCIM_PROVISIONING_CONFIG;\ntype RMember = 'ORGANIZATION_SCIM_PROVISIONING_CONFIG' | 'APPLICATION_SCIM_PROVISIONING_CONFIG';\ntype Cfg = ReturnType<(typeof scimProvisioningConfigPolymorphicFactories)[CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG]>;\ntype Custom = undefined;\ntype Core = Cfg['coreOperations'][number];\ntype Main = typeof ScimProvisioningConfigBaseSchema;\ntype F = ResourceUIBehaviorConfig<Custom, Core, Main>;\n\nfunction r(source: Partial<Record<string, unknown>>, rt: RType, name: string): F {\n const u = source[rt] as F | undefined;\n if (!u) throw new Error(`Missing \"${rt}\" in ${name}.`);\n return u;\n}\nconst scope: Record<RType, ResourcePrimaryScope> = {\n [CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG]: ResourcePrimaryScope.ORGANIZATIONS,\n [CoreResourceType.APPLICATION_SCIM_PROVISIONING_CONFIG]: ResourcePrimaryScope.APPLICATION,\n};\n\nconst SCIM_CONFIG_DOMAIN_EXAMPLE = 'identity.example.com';\n\n/**\n * Builds all public READ representations from one directory-provisioning policy\n * snapshot. The scope identifier and context relation differ between the two\n * polymorphic resources, while the SCIM endpoint and mapping semantics remain\n * framework-owned. No bearer token or other credential belongs in this config.\n */\nfunction createScimProvisioningConfigExamples(rt: RType) {\n const isOrganization = rt === CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG;\n const scopeId = isOrganization ? 'org_01JSCIMEXAMPLE' : 'app_01JSCIMEXAMPLE';\n const scopeIdentifier = isOrganization ? { organizationId: scopeId } : { applicationId: scopeId };\n const scopeContext = isOrganization ? { organization: { _id: scopeId } } : { application: { _id: scopeId } };\n const response = {\n _id: 'scimcfg_01JSCIMEXAMPLE',\n autoCreateUsers: true,\n autoVerifyEmail: true,\n autoDeactivateUsers: true,\n defaultRole: isOrganization ? 'organization-member' : 'application-user',\n attributeMapping: {\n email: 'emails[primary eq true].value',\n firstName: 'name.givenName',\n lastName: 'name.familyName',\n displayName: 'displayName',\n },\n organizationUnitMapping: [{\n directoryValue: 'Engineering',\n organizationUnitId: 'unit_01JSCIMENGINEERING',\n }],\n defaultUnitRole: 'member',\n scimEndpointUrl: '/api/v1/scim/v2',\n allowedDomains: [SCIM_CONFIG_DOMAIN_EXAMPLE],\n createdAt: '2026-08-20T08:00:00.000Z',\n updatedAt: '2026-08-20T08:15:00.000Z',\n ...scopeIdentifier,\n };\n\n return {\n response,\n contextResponse: { ...response, ...scopeContext },\n summaryResponse: {\n _id: response._id,\n autoCreateUsers: response.autoCreateUsers,\n },\n };\n}\n\nfunction buildBase(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n const examples = createScimProvisioningConfigExamples(rt);\n\n return resourceSpecification<Custom, Core, Main>(\n scimProvisioningConfigPolymorphicFactories[rt],\n ScimProvisioningConfigBaseSchema,\n ({ schemaShape }) => ({\n purpose: 'SCIM provisioning behavior for directory-managed users: default roles, attribute mappings, and automatic create and deactivate handling. This resource governs what happens after an authenticated SCIM request; organization-scoped SCIM bearer credentials authenticate the identity provider, while SSO sign-in and just-in-time provisioning are a separate channel.',\n businessRole: 'Controls how identity-provider directory data becomes application users and memberships, including the authorization defaults applied during provisioning.',\n lifecycleRole: 'Configure it while connecting the identity provider, then review it whenever directory attributes, role policy, or user-lifecycle policy changes.',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: { packageName: '@wildo-ai/saas-models', exportName: 'ScimProvisioningConfigBaseSchema', symbolKind: CodeSymbolKind.SCHEMA, declarationKind: CodeDeclarationKind.ZOD_SCHEMA },\n resourceFactoryCollectionEntry: { collectionSymbol: { packageName: '@wildo-ai/saas-models', exportName: 'scimProvisioningConfigPolymorphicFactories', symbolKind: CodeSymbolKind.FACTORY }, identifierField: 'collectionKey', identifierValue: rt },\n resourceType: { enumDeclaration: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceType', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM }, memberName: member },\n operationVocabulary: {\n coreEnum: { packageName: '@wildo-ai/saas-models', exportName: 'CoreResourceOperation', symbolKind: CodeSymbolKind.ENUM, declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM },\n },\n frontendConfigurationSourceEntries: [\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityMainPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n { collectionSymbol: { packageName: '@wildo-ai/presets-components', exportName: 'securityAdminPresets', symbolKind: CodeSymbolKind.UI_BEHAVIOR }, identifierField: 'collectionKey', identifierValue: rt },\n ],\n },\n fields: {\n autoCreateUsers: schemaShape.autoCreateUsers.booleanSpec({ meaning: 'Whether SCIM `POST /Users` can create new users during directory synchronization. When false, creation requests for users who do not already exist are rejected.', importance: FieldSemanticImportance.PRIMARY }),\n autoVerifyEmail: schemaShape.autoVerifyEmail.booleanSpec({ meaning: 'Whether a trusted SCIM assertion marks a newly provisioned email as verified. When false, the new user remains in the application email-verification journey instead of becoming verified from the directory assertion.' }),\n autoDeactivateUsers: schemaShape.autoDeactivateUsers.booleanSpec({ meaning: 'Whether SCIM `DELETE /Users/{id}` and updates with `active: false` deactivate the user and their membership. When false, directory removals leave the application account active.' }),\n defaultRole: schemaShape.defaultRole.stringSpec({ meaning: 'Fallback role for newly provisioned members when the IdP payload does not supply a stronger mapping.' }),\n attributeMapping: schemaShape.attributeMapping.objectSpec({ meaning: 'Path expressions that map the incoming SCIM document to email, name, and profile fields. Supports dotted paths, array indexes such as `emails[0].value`, and SCIM filters such as `emails[primary eq true].value`. A malformed or unmatched expression produces no value instead of a validation error, so test every custom mapping with a representative identity-provider payload.' }),\n organizationUnitMapping: schemaShape.organizationUnitMapping.arraySpec({\n meaning: 'Explicit mappings from the directory’s SCIM Enterprise User `department` value to organization-unit identifiers. Unmapped values are ignored and never create units. When this list is non-empty and `defaultUnitRole` is set, supported user creation and full-replacement requests make SCIM authoritative for unit assignments: the mapped set replaces existing assignments, including assignments made manually. SCIM PATCH and Bulk requests do not currently reconcile organization units.',\n elementMeaning: 'One case-sensitive mapping from the trimmed directory department value to an existing organization-unit identifier.',\n }),\n defaultUnitRole: schemaShape.defaultUnitRole.stringSpec({ meaning: 'Role granted on every organization-unit assignment created through SCIM. It is separate from `defaultRole`, which controls organization-wide membership. Changing this setting changes the access granted to subsequently reconciled directory-managed users.' }),\n scimEndpointUrl: schemaShape.scimEndpointUrl.stringSpec({ meaning: 'Read-only API-relative base path for the SCIM service, for example `/api/v1/scim/v2`. Combine it with the deployment’s API base URL when configuring the identity provider. Tenant selection comes from the SCIM bearer credential, not from the URL path.' }),\n allowedDomains: schemaShape.allowedDomains.arraySpec({\n meaning: 'Read-only email domains accepted by SCIM provisioning. The list reflects the scope’s currently verified SSO domains. An empty list means no verified-domain restriction is configured; an absent value means domain policy could not be determined.',\n elementMeaning: 'One DNS-verified email domain accepted by SCIM provisioning.',\n }),\n },\n operations: {\n [Op.READ]: {\n purpose: 'Read the current SCIM provisioning behavior for this scope.',\n outcome: 'Administrators can review user-creation, deactivation, attribute-mapping, domain, and role policy before connecting or changing an identity provider.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM provisioning config for this scope was found and its gating/mapping is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the admin role required to inspect SCIM provisioning settings.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM provisioning config has been provisioned for this org/app scope yet.' },\n ],\n examples: [{\n title: 'Read the complete SCIM provisioning policy',\n response: examples.response,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Read the SCIM policy with its owning scope context',\n response: examples.contextResponse,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Read the SCIM account-creation summary',\n response: examples.summaryResponse,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'Provision the initial SCIM config document for a scope (INTERNAL_CALL create — no public HTTP route; seed / system-context lazy-create only; HIGH risk).',\n outcome: 'A new settings row; combined with `ScimTokens` for a working endpoint when enabled.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SCIM provisioning config record was provisioned for the scope with the supplied gating and mapping.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The config payload fails schema validation, for example because a typed setting or role value is invalid. Attribute-mapping expressions are strings and must be behavior-tested separately.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform/security admin; this is a HIGH-risk internal-only (INTERNAL_CALL) provisioning path.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A SCIM provisioning config already exists for this org/app scope — the resource is one-per-scope, so a second create collides.' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Provision SCIM provisioning config for a scope',\n request: {\n autoCreateUsers: true,\n autoDeactivateUsers: true,\n defaultRole: 'member',\n attributeMapping: {\n email: 'emails[primary eq true].value',\n displayName: 'displayName',\n },\n },\n response: {\n _id: 'scimcfg_01HX2…',\n autoCreateUsers: true,\n defaultRole: 'member',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n },\n [Op.UPDATE]: {\n purpose: 'Change mapping, toggles, and defaults as the IdP app evolves (INTERNAL_CALL update — no public HTTP route; reached through `AuthOrganizationConfigurationService.saveScimProvisioningConfig` on the admin’s execution context, preserving admin audit attribution; HIGH risk).',\n outcome: 'Subsequent sync runs follow the new mapping; expect eventual consistency, not instant retroactive rewrite of all users in general.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM gating, mapping, and defaults were updated; subsequent sync runs follow the new mapping.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The patched mapping or toggles fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the HIGH-risk admin role required to change SCIM provisioning settings.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No SCIM provisioning config exists for this scope to update.' },\n ],\n idempotent: true,\n },\n [Op.DELETE]: {\n purpose: 'Repository-only teardown of the SCIM provisioning config row when its owning org/app is deleted (composition `onParentDelete` cascade).',\n outcome: 'The one-per-scope config row is removed together with its parent — the composition part does not outlive its whole.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM provisioning config record was deleted as part of the deletion cascade of its owning scope.' },\n ],\n // REPOSITORY_ONLY variant (org/app admin) — invoked by the onParentDelete cascade, not a public HTTP endpoint, so no client-facing 400/403/404 are documented.\n idempotent: true,\n },\n },\n businessConstraints: [\n 'Organization-scoped SCIM bearer credentials authenticate the identity provider. This resource governs what accepted SCIM events do to users and memberships.',\n ],\n }),\n { resourcePrimaryScope: scope[rt] },\n );\n}\n\nfunction build(rt: RType, member: RMember): ResourceSpecificationConfig<Custom, Core, Main> {\n return resourceSpecificationFromFrontendConfiguration(\n mergeResourceFrontendConfigurations(\n resourceFrontendConfiguration(r(securityMainPresets as Partial<Record<string, unknown>>, rt, 'securityMainPresets')),\n resourceFrontendConfiguration(r(securityAdminPresets as Partial<Record<string, unknown>>, rt, 'securityAdminPresets')),\n ),\n buildBase(rt, member),\n () => ({\n layout: {\n purpose: 'Sections `overview`, `mapping`, and `lifecycle` in `security` templates for the SCIM provisioning config editor and read views.',\n displayPurpose: 'Read vs edit: edit focuses on boolean gates and string maps; read surfaces the same in display layout components in the preset file.',\n sections: {\n overview: { purpose: 'High-level auto-create / deactivate / verify-email lifecycle toggles for the push. (Enablement itself lives on the org-type config, not here.)', whenToUse: 'Tuning what SCIM does to users once it is enabled for the org type.', textSlots: { title: { purpose: 'SCIM overview.' }, description: { purpose: 'Mention that whether SCIM is on is an org-type setting, and that tokens are managed in the sibling SCIM token resource — not in this form.' } } },\n mapping: { purpose: 'Attribute mapping and default role; ties IdP field paths to internal profile fields when defined.', whenToUse: 'IdP schema differences require mapping changes.', textSlots: { title: { purpose: 'Attribute mapping block.' }, description: { purpose: 'Explain that unmatched or malformed expressions can resolve to no value and therefore must be tested against the real IdP payload.' } } },\n lifecycle: { purpose: 'Create/update metadata timestamps for the config row; not user lifecycle, which is event-driven on SCIM traffic.', whenToUse: 'Support proving when the mapping last changed in incidents.', textSlots: { title: { purpose: 'Config lifecycle / timestamps.' }, description: { purpose: 'Distinguish from user lifecycle in domain language.' } } },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Addressable read for the security SCIM page in org (app scope may use empty `views` in main `variantOverrides`—factory op exists regardless).', whenToUse: 'Admins review SCIM gating and mapping in merged consoles.' },\n },\n }),\n );\n}\n\nexport const organizationScimProvisioningConfigResourceSpecification = build(\n CoreResourceType.ORGANIZATION_SCIM_PROVISIONING_CONFIG,\n 'ORGANIZATION_SCIM_PROVISIONING_CONFIG',\n);\nexport const applicationScimProvisioningConfigResourceSpecification = build(\n CoreResourceType.APPLICATION_SCIM_PROVISIONING_CONFIG,\n 'APPLICATION_SCIM_PROVISIONING_CONFIG',\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"scim-tokens.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/scim-tokens.resource.specification.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAG3B,qBAAqB,EAGtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AA8SrC,eAAO,MAAM,2CAA2C;;;;;;;;;;iCAA+E,CAAC"}
1
+ {"version":3,"file":"scim-tokens.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/scim-tokens.resource.specification.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,qBAAqB,IAAI,EAAE,EAG3B,qBAAqB,EAGtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAML,KAAK,2BAA2B,EACjC,MAAM,6BAA6B,CAAC;AA8SrC,eAAO,MAAM,2CAA2C;;;;;;;;;;iCAA+E,CAAC"}
@@ -69,7 +69,7 @@ function buildBase(rt, member) {
69
69
  }),
70
70
  displayName: schemaShape.displayName.stringSpec({ meaning: 'Admin-given name for the token in UI (what “Prod IdP” vs “Staging”).', importance: FieldSemanticImportance.PRIMARY }),
71
71
  isActive: schemaShape.isActive.booleanSpec({ meaning: 'Whether this token should still authenticate SCIM traffic when not expired or revoked in implementation.' }),
72
- createdByUserId: schemaShape.createdByUserId.stringSpec({ meaning: 'Administrator who minted the token row, retained for support and audit accountability.' }),
72
+ createdByUserId: schemaShape.createdByUserId.stringSpec({ meaning: 'Administrator who minted the token record, retained for support and audit accountability.' }),
73
73
  lastUsedAt: schemaShape.lastUsedAt.dateSpec({ meaning: 'Last SCIM request that passed bearer, status, expiry, rate-limit, and feature checks before dispatch.' }),
74
74
  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.' }),
75
75
  },
@@ -78,7 +78,7 @@ function buildBase(rt, member) {
78
78
  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.',
79
79
  outcome: 'Detail templates show display name, active flag, and lifecycle without raw secret or hash.',
80
80
  responseStatuses: [
81
- { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM token row’s metadata (display name, active flag, lifecycle) is returned without the secret or hash.' },
81
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM token record’s metadata (display name, active flag, lifecycle) is returned without the secret or hash.' },
82
82
  ],
83
83
  errorScenarios: [
84
84
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the internal/admin role required to inspect SCIM token rows.' },
@@ -131,7 +131,7 @@ function buildBase(rt, member) {
131
131
  purpose: 'Row creation path for a new token record (REPOSITORY_ONLY in factory, HIGH risk).',
132
132
  outcome: 'A new id; any plaintext handshake follows factory DTOs for the generate custom op, not this bare create in typical UX.',
133
133
  responseStatuses: [
134
- { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SCIM token row was created; the bare create returns the row id, not plaintext bearer material (see GENERATE_TOKEN for the secret handshake).' },
134
+ { code: HttpResponseStatusCode.CREATED_201, meaning: 'A SCIM token record was created; the bare create returns the record id, not plaintext bearer material (see GENERATE_TOKEN for the secret handshake).' },
135
135
  ],
136
136
  errorScenarios: [
137
137
  { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The token payload fails schema validation (e.g. missing `displayName` or a malformed `expiresAt`).', errorCode: 'VALIDATION_FAILED' },
@@ -144,7 +144,7 @@ function buildBase(rt, member) {
144
144
  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.',
145
145
  outcome: 'The token row’s `lastUsedAt` (and other non-secret metadata) is refreshed; the secret/hash are never mutated here.',
146
146
  responseStatuses: [
147
- { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM token row’s metadata was updated (e.g. `lastUsedAt`).' },
147
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The SCIM token record’s metadata was updated (e.g. `lastUsedAt`).' },
148
148
  ],
149
149
  errorScenarios: [
150
150
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the internal/admin role required to mutate SCIM token rows.' },
@@ -156,7 +156,7 @@ function buildBase(rt, member) {
156
156
  purpose: 'Remove a token document when a credential should disappear entirely; REPOSITORY_ONLY in factory, HIGH risk.',
157
157
  outcome: 'The IdP can no longer authenticate SCIM with that id when enforcement is live.',
158
158
  responseStatuses: [
159
- { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The SCIM token row was deleted; the IdP can no longer authenticate SCIM with it. No body is returned.' },
159
+ { 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.' },
160
160
  ],
161
161
  errorScenarios: [
162
162
  { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks the HIGH-risk admin role required to purge SCIM token rows.' },
@@ -204,7 +204,7 @@ function buildBase(rt, member) {
204
204
  purpose: 'Revoke an active SCIM token without deleting its administrative history.',
205
205
  outcome: 'SCIM requests using the revoked token fail authentication, while its metadata remains available for audit and incident review.',
206
206
  responseStatuses: [
207
- { code: HttpResponseStatusCode.OK_200, meaning: 'The token is invalidated; subsequent SCIM calls presenting it fail authentication, while the row is retained for audit.' },
207
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The token is invalidated; subsequent SCIM calls presenting it fail authentication, while the record is retained for audit.' },
208
208
  ],
209
209
  errorScenarios: [
210
210
  { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The request body contains any property; revocation accepts only an empty JSON object.', errorCode: 'VALIDATION_FAILED' },