@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
@@ -1 +1 @@
1
- {"version":3,"file":"user-profiles.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,8BAA8B,IAAI,oCAAoC,EAAE,MAAM,8BAA8B,CAAC;AACtH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,uDAAuD,IAAI,mBAAmB,GAC/E,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,sCAAsC,GACvC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,MAAM,8BAA8B,GAAG,oCAItC,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,sCAAsC,CAAC,CAAC,CAAC,CAAC;AAEvE,MAAM,oBAAoB,GAAG;IAC3B,GAAG,EAAE,yBAAyB;IAC9B,MAAM,EAAE,iBAAiB;IACzB,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,cAAc;IAC3B,MAAM,EAAE;QACN,MAAM,EAAE,wBAAwB;QAChC,SAAS,EAAE,0BAA0B;KACtC;IACD,GAAG,EAAE,mEAAmE;IACxE,WAAW,EAAE,eAAe;IAC5B,KAAK,EAAE,gBAAgB;IACvB,QAAQ,EAAE,CAAC;CACH,CAAC;AAEX,MAAM,4BAA4B,GAAG;IACnC,GAAG,oBAAoB;IACvB,IAAI,EAAE,EAAE,GAAG,EAAE,oBAAoB,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EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,SAAS,EAAE,CACzD,EACD,GAAG,EAAE,CAAC,CAAC;IACL,MAAM,EAAE;QACN,gEAAgE;QAChE,oEAAoE;QACpE,oEAAoE;QACpE,2EAA2E;QAC3E,qEAAqE;QACrE,OAAO,EAAE,qFAAqF;QAC9F,cAAc,EAAE,oEAAoE;QACpF,cAAc,EAAE,sCAAsC;QACtD,QAAQ,EAAE,EAAE;KACb;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;YACT,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,OAAO,EAAE,wHAAwH;oBACjI,SAAS,EAAE,iIAAiI;iBAC7I;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,OAAO,EAAE,uEAAuE;oBAChF,SAAS,EAAE,kDAAkD;iBAC9D;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,OAAO,EAAE,wDAAwD;oBACjE,SAAS,EAAE,6GAA6G;iBACzH;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,OAAO,EAAE,kDAAkD;oBAC3D,SAAS,EAAE,yEAAyE;iBACrF;aACF;SACF;QACD,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACX,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL,OAAO,EAAE,oEAAoE;oBAC7E,SAAS,EAAE,yFAAyF;iBACrG;aACF;SACF;KACF;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `userProfiles` — Wildo SaaS engine specification (mixed, admin-leaning).\n * Same `UserProfileSchema` as `userSelfProfiles` but `CoreResourceType.USER_PROFILES` with org/admin variants.\n */\n\nimport { userProfilesResourceUIBehavior as userProfilesResourceUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n UserProfileSchema,\n UserProfiles_Operations,\n userProfilesResourceConfiguration_InitializationFactory as userProfilesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\nimport {\n selfServiceFrontEndSuccessNotification,\n} from './self-service-user-notifications.shared';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof userProfilesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst userProfilesResourceUIBehavior = userProfilesResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n Custom,\n Core,\n Main\n>;\n\nconst toast = (s: string) => selfServiceFrontEndSuccessNotification(s);\n\nconst USER_PROFILE_EXAMPLE = {\n _id: 'user_profile_01JEXAMPLE',\n userId: 'user_01JEXAMPLE',\n firstName: 'Ada',\n lastName: 'Lovelace',\n displayName: 'Ada Lovelace',\n avatar: {\n fileId: 'file_avatar_01JEXAMPLE',\n updatedAt: '2026-08-20T10:30:00.000Z',\n },\n bio: 'Leads platform integration architecture and developer enablement.',\n phoneNumber: '+352621123456',\n title: 'Staff Engineer',\n _version: 7,\n} as const;\n\nconst USER_PROFILE_CONTEXT_EXAMPLE = {\n ...USER_PROFILE_EXAMPLE,\n user: { _id: USER_PROFILE_EXAMPLE.userId },\n} as const;\n\nconst USER_PROFILE_SUMMARY_EXAMPLE = {\n _id: USER_PROFILE_EXAMPLE._id,\n userId: USER_PROFILE_EXAMPLE.userId,\n firstName: USER_PROFILE_EXAMPLE.firstName,\n lastName: USER_PROFILE_EXAMPLE.lastName,\n displayName: USER_PROFILE_EXAMPLE.displayName,\n _version: USER_PROFILE_EXAMPLE._version,\n} as const;\n\nconst USER_PROFILE_PAGE = {\n data: [USER_PROFILE_EXAMPLE],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n} as const;\n\nexport const userProfilesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userProfilesResourceUIBehavior),\n resourceSpecification(\n userProfilesFactory,\n UserProfileSchema,\n ({ schemaShape }) => ({\n purpose: 'The addressed user’s profile and contact card: name, display name, avatar, biography, phone number, and professional title.',\n businessRole: 'Use the normal API for a user’s own profile and the application-administration API to inspect or maintain another user’s profile.',\n lifecycleRole: 'One profile is created for each user, changes as their public or contact information changes, and is removed with that user or by an authorized administrator.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserProfileSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userProfilesResourceConfiguration_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: 'USER_PROFILES',\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: 'UserProfiles_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'userProfilesResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Stable identifier of this profile document.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the `users` row this profile document describes — immutable after create; profiles are keyed one-per-user.',\n whyItMatters: 'Binds the profile to one user so self-service and authorized administration address the same record without crossing tenant boundaries.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n firstName: schemaShape.firstName.stringSpec({ meaning: 'The user’s given name.', importance: FieldSemanticImportance.PRIMARY }),\n lastName: schemaShape.lastName.stringSpec({ meaning: 'The user’s family name.', importance: FieldSemanticImportance.PRIMARY }),\n displayName: schemaShape.displayName.stringSpec({ meaning: 'Optional name shown instead of composing the given and family names.' }),\n avatar: schemaShape.avatar.fileSpec({ meaning: 'Uploaded square profile image, represented by its managed file reference. External image URLs are not accepted.' }),\n bio: schemaShape.bio.stringSpec({ meaning: 'Optional short biography shown on the user’s profile.' }),\n phoneNumber: schemaShape.phoneNumber.stringSpec({ meaning: 'Optional contact number in E.164 international format. Storing it does not by itself prove possession of the number.', semanticRole: 'identifier' }),\n title: schemaShape.title.stringSpec({ meaning: 'Optional professional title shown in people and profile surfaces.' }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read the profile belonging to the user identified in the route. The normal variant is self-scoped; the administration variant can address another user.',\n outcome: 'The user’s profile fields and current resource version are returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile document was found and returned with the field visibility of the active API variant.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks application profile-viewing authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Read your complete profile',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Read your profile with its user relationship',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Read your compact profile identity',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n admin: {\n examples: [{\n title: 'Inspect another user’s complete profile',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Search profiles by name. The administration variant additionally matches phone numbers and permits a larger page size.',\n outcome: 'A paginated page of matching profile records is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of profile rows matching the name search for the active API variant.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks access to search profiles through the selected normal or administration variant.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Find a profile by name',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n q: 'Ada',\n page: 1,\n limit: 20,\n sort: 'lastName:asc',\n },\n response: USER_PROFILE_PAGE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n admin: {\n examples: [{\n title: 'Find a profile by contact number as an administrator',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n q: '+352621123456',\n page: 1,\n limit: 100,\n sort: 'lastName:asc',\n },\n response: {\n ...USER_PROFILE_PAGE,\n pagination: { ...USER_PROFILE_PAGE.pagination, limit: 100 },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Create the addressed user’s profile. The normal variant creates the caller’s own profile; the administration variant provisions one for another existing user.',\n outcome: 'The new profile is returned with its server-assigned id and initial resource version.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A profile document was created for the subject user and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The profile payload fails schema validation (for example, a required name is missing or `phoneNumber` is malformed).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks profile-provisioning authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The referenced owning `userId` does not resolve to a known user.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A profile document already exists for the supplied `userId` (profiles are keyed one-per-user).' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Create your own profile',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n firstName: USER_PROFILE_EXAMPLE.firstName,\n lastName: USER_PROFILE_EXAMPLE.lastName,\n displayName: USER_PROFILE_EXAMPLE.displayName,\n bio: USER_PROFILE_EXAMPLE.bio,\n phoneNumber: USER_PROFILE_EXAMPLE.phoneNumber,\n title: USER_PROFILE_EXAMPLE.title,\n },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n variants: {\n admin: {\n examples: [{\n title: 'Provision a profile for an existing user',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n firstName: USER_PROFILE_EXAMPLE.firstName,\n lastName: USER_PROFILE_EXAMPLE.lastName,\n displayName: USER_PROFILE_EXAMPLE.displayName,\n title: USER_PROFILE_EXAMPLE.title,\n },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n },\n communications: { notification: toast('The profile owner receives an in-app confirmation after the profile is created.') },\n },\n [Op.UPDATE]: {\n purpose: 'Replace one or more editable profile fields. The normal variant edits the caller’s profile; the administration variant edits another user’s profile.',\n outcome: 'The updated profile and its incremented resource version are returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile document was patched and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks profile-editing authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Update your display name and biography',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n displayName: 'Ada L.',\n bio: 'Builds reliable application integrations and developer platforms.',\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n displayName: 'Ada L.',\n bio: 'Builds reliable application integrations and developer platforms.',\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n admin: {\n examples: [{\n title: 'Correct another user’s professional title',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n title: 'Principal Engineer',\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n title: 'Principal Engineer',\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n communications: { notification: toast('The profile owner receives an in-app confirmation after the profile is updated.') },\n },\n [Op.DELETE]: {\n purpose: 'Delete the addressed profile. The normal variant removes the caller’s own profile; the administration variant removes another user’s profile.',\n outcome: 'The profile is removed and subsequent reads return 404 until a new profile is created.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The profile document was deleted; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks profile-deletion authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id (or it was already deleted).' },\n ],\n idempotent: true,\n communications: { notification: toast('The profile owner receives an in-app confirmation after the profile is deleted.') },\n },\n [UserProfiles_Operations.UPDATE_AVATAR]: {\n operationId: UserProfiles_Operations.UPDATE_AVATAR,\n purpose: 'Replace the caller’s avatar with an uploaded, application-managed image file.',\n outcome: 'The managed file reference is stored and the refreshed profile is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The avatar file reference was updated and the refreshed profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The avatar is missing, is not a valid managed file reference, or violates the profile image constraints.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the profile subject and lacks authority to change this profile’s avatar.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Use an uploaded image as your avatar',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n avatar: {\n fileId: 'file_avatar_01JNEW',\n updatedAt: '2026-08-21T09:00:00.000Z',\n },\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n avatar: {\n fileId: 'file_avatar_01JNEW',\n updatedAt: '2026-08-21T09:00:00.000Z',\n },\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: { notification: toast('The profile owner receives an in-app confirmation after the avatar is updated.') },\n },\n [UserProfiles_Operations.REMOVE_AVATAR]: {\n operationId: UserProfiles_Operations.REMOVE_AVATAR,\n purpose: 'Reserved avatar-removal operation. It is not published as an application-consumer API capability while managed-file release is unimplemented.',\n outcome: 'Runtime requests fail closed; no profile or file reference is changed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.INTERNAL_SERVER_ERROR_500, meaning: 'The acknowledged implementation gap refuses the request instead of reporting a successful no-op.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the profile subject and lacks authority to clear this profile’s avatar.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n },\n [UserProfiles_Operations.UPDATE_CONTACT_INFO]: {\n operationId: UserProfiles_Operations.UPDATE_CONTACT_INFO,\n purpose: 'Replace the caller’s profile contact number with a valid E.164 international number.',\n outcome: 'The new number is stored and the refreshed profile is returned. Number verification remains a separate authentication flow.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The contact fields were updated and the refreshed profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The supplied phone number is not a valid E.164 value or the contact payload fails validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the profile subject and lacks authority to change this profile’s contact data.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Update your contact number',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n phoneNumber: '+352621654321',\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n phoneNumber: '+352621654321',\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: { notification: toast('The profile owner receives an in-app confirmation after the contact number is updated.') },\n },\n },\n\n businessConstraints: [\n 'Registry scope resolves through the `USERS` composition edge — the spec’s `resourcePrimaryScope` is `USER_SELF` to match the self-anchor, even though the product copy talks about “org directory”.',\n 'Core operations in the factory register both a default `APP_USER` API variant and an `admin` API variant; the identity `userProfilesResourceUIBehavior` UI preset only hosts the `admin` operation keys in `views`, so `frontend.views` documents `admin` only. End-user “my profile” UI is covered by `USER_SELF_PROFILES`, not a `default` view row on this resource type.',\n 'Custom operations (`update_avatar` … `update_contact_info`) are `APP_USER`-only in the factory (no `admin` variant). They appear in `base.operations` for API and DF-1; the admin UI preset does not add view hosts for them (see `identity.resource-presets.tsx`).',\n 'Phone-number possession is NOT proved on this resource. There is no `verify_phone` custom operation: the challenge/response against an issued code is fully implemented in the auth subsystem by `AuthPhoneVerificationBackendService` (`PHONE_VERIFICATION` consumable tokens — single-use, 10-minute expiry — a constant-time code comparison, audit events on both the success and failure paths, and the verified state persisted through `setVerifiedPhone`), with `AuthMethod.SMS_OTP` covering the same proof as a first-or-second auth factor. `USER_SELF_PROFILES` dropped its equivalent op for the same reason, and an admin-directory resource is the wrong place regardless — an SMS code proves possession by the phone’s owner, not by the admin submitting it. `update_contact_info` changes the number; it does not attest it.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n layout: {\n // Admin `USER_PROFILES` reuses the self-profile layout verbatim\n // (`layout: main[USER_SELF_PROFILES].layout`), which is now a flat,\n // sectionless field list. `sections` must stay empty to match — the\n // structural-slot validator compares this against the SHARED merged layout\n // refs, so a documented section here would crash-loop the companion.\n purpose: 'Reuse the flat self-profile layout for admin/end-user parity — no section grouping.',\n displayPurpose: 'Directory detail drawer (admin) or people search result expansion.',\n summaryPurpose: 'Name and title in compact list rows.',\n sections: {},\n },\n views: {\n [Op.READ]: {\n variants: {\n admin: {\n purpose: 'Admin and elevated directory read — the identity preset only surfaces the `admin` operation variant for USER_PROFILES.',\n whenToUse: 'User management console, directory admin, and support workflows using `USER_PROFILES` (not the self `USER_SELF_PROFILES` type).',\n },\n },\n },\n [Op.SEARCH]: {\n variants: {\n admin: {\n purpose: 'Admin search with expanded searchable fields from the runtime config.',\n whenToUse: 'Compliance lookup and back-office people search.',\n },\n },\n },\n [Op.CREATE]: {\n variants: {\n admin: {\n purpose: 'Admin-provisioned profile creation (imports, support).',\n whenToUse: 'When operators create profile rows on behalf of users — the merged preset only exposes the `admin` variant.',\n },\n },\n },\n [Op.UPDATE]: {\n variants: {\n admin: {\n purpose: 'Admin update path for a user’s profile document.',\n whenToUse: 'Support edits and data-fix flows under super-admin or equivalent roles.',\n },\n },\n },\n [Op.DELETE]: {\n variants: {\n admin: {\n purpose: 'Admin deletion of a profile for compliance or offboarding support.',\n whenToUse: 'DSR, abuse, or org teardown — the preset surfaces only the `admin` delete variant here.',\n },\n },\n },\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"user-profiles.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/users/resources/user-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,8BAA8B,IAAI,oCAAoC,EAAE,MAAM,8BAA8B,CAAC;AACtH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,uDAAuD,IAAI,mBAAmB,GAC/E,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,sCAAsC,GACvC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,MAAM,8BAA8B,GAAG,oCAItC,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,sCAAsC,CAAC,CAAC,CAAC,CAAC;AAEvE,MAAM,oBAAoB,GAAG;IAC3B,GAAG,EAAE,yBAAyB;IAC9B,MAAM,EAAE,iBAAiB;IACzB,SAAS,EAAE,KAAK;IAChB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,cAAc;IAC3B,MAAM,EAAE;QACN,MAAM,EAAE,wBA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AE,oEAAoE;oBAC7E,SAAS,EAAE,yFAAyF;iBACrG;aACF;SACF;KACF;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `userProfiles` — Wildo SaaS engine specification (mixed, admin-leaning).\n * Same `UserProfileSchema` as `userSelfProfiles` but `CoreResourceType.USER_PROFILES` with org/admin variants.\n */\n\nimport { userProfilesResourceUIBehavior as userProfilesResourceUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n UserProfileSchema,\n UserProfiles_Operations,\n userProfilesResourceConfiguration_InitializationFactory as userProfilesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\nimport {\n selfServiceFrontEndSuccessNotification,\n} from './self-service-user-notifications.shared';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof userProfilesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst userProfilesResourceUIBehavior = userProfilesResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n Custom,\n Core,\n Main\n>;\n\nconst toast = (s: string) => selfServiceFrontEndSuccessNotification(s);\n\nconst USER_PROFILE_EXAMPLE = {\n _id: 'user_profile_01JEXAMPLE',\n userId: 'user_01JEXAMPLE',\n firstName: 'Ada',\n lastName: 'Lovelace',\n displayName: 'Ada Lovelace',\n avatar: {\n fileId: 'file_avatar_01JEXAMPLE',\n updatedAt: '2026-08-20T10:30:00.000Z',\n },\n bio: 'Leads platform integration architecture and developer enablement.',\n phoneNumber: '+352621123456',\n title: 'Staff Engineer',\n _version: 7,\n} as const;\n\nconst USER_PROFILE_CONTEXT_EXAMPLE = {\n ...USER_PROFILE_EXAMPLE,\n user: { _id: USER_PROFILE_EXAMPLE.userId },\n} as const;\n\nconst USER_PROFILE_SUMMARY_EXAMPLE = {\n _id: USER_PROFILE_EXAMPLE._id,\n userId: USER_PROFILE_EXAMPLE.userId,\n firstName: USER_PROFILE_EXAMPLE.firstName,\n lastName: USER_PROFILE_EXAMPLE.lastName,\n displayName: USER_PROFILE_EXAMPLE.displayName,\n _version: USER_PROFILE_EXAMPLE._version,\n} as const;\n\nconst USER_PROFILE_PAGE = {\n data: [USER_PROFILE_EXAMPLE],\n pagination: { page: 1, limit: 20, total: 1, totalPages: 1 },\n} as const;\n\nexport const userProfilesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userProfilesResourceUIBehavior),\n resourceSpecification(\n userProfilesFactory,\n UserProfileSchema,\n ({ schemaShape }) => ({\n purpose: 'The addressed user’s profile and contact card: name, display name, avatar, biography, phone number, and professional title.',\n businessRole: 'Use the normal API for a user’s own profile and the application-administration API to inspect or maintain another user’s profile.',\n lifecycleRole: 'One profile is created for each user, changes as their public or contact information changes, and is removed with that user or by an authorized administrator.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserProfileSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userProfilesResourceConfiguration_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: 'USER_PROFILES',\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: 'UserProfiles_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'userProfilesResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({ meaning: 'Stable identifier of this profile document.', semanticRole: 'identifier', importance: FieldSemanticImportance.PRIMARY }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the `users` record this profile document describes — immutable after create; profiles are keyed one-per-user.',\n whyItMatters: 'Binds the profile to one user so self-service and authorized administration address the same record without crossing tenant boundaries.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n firstName: schemaShape.firstName.stringSpec({ meaning: 'The user’s given name.', importance: FieldSemanticImportance.PRIMARY }),\n lastName: schemaShape.lastName.stringSpec({ meaning: 'The user’s family name.', importance: FieldSemanticImportance.PRIMARY }),\n displayName: schemaShape.displayName.stringSpec({ meaning: 'Optional name shown instead of composing the given and family names.' }),\n avatar: schemaShape.avatar.fileSpec({ meaning: 'Uploaded square profile image, represented by its managed file reference. External image URLs are not accepted.' }),\n bio: schemaShape.bio.stringSpec({ meaning: 'Optional short biography shown on the user’s profile.' }),\n phoneNumber: schemaShape.phoneNumber.stringSpec({ meaning: 'Optional contact number in E.164 international format. Storing it does not by itself prove possession of the number.', semanticRole: 'identifier' }),\n title: schemaShape.title.stringSpec({ meaning: 'Optional professional title shown in people and profile surfaces.' }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read the profile belonging to the user identified in the route. The normal variant is self-scoped; the administration variant can address another user.',\n outcome: 'The user’s profile fields and current resource version are returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile document was found and returned with the field visibility of the active API variant.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks application profile-viewing authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Read your complete profile',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n context: {\n examples: [{\n title: 'Read your profile with its user relationship',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_CONTEXT_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n summary: {\n examples: [{\n title: 'Read your compact profile identity',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_SUMMARY_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n admin: {\n examples: [{\n title: 'Inspect another user’s complete profile',\n request: { userId: USER_PROFILE_EXAMPLE.userId },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.SEARCH]: {\n purpose: 'Search profiles by name. The administration variant additionally matches phone numbers and permits a larger page size.',\n outcome: 'A paginated page of matching profile records is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A (possibly empty) page of profile records matching the name search for the active API variant.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller lacks access to search profiles through the selected normal or administration variant.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Find a profile by name',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n q: 'Ada',\n page: 1,\n limit: 20,\n sort: 'lastName:asc',\n },\n response: USER_PROFILE_PAGE,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n admin: {\n examples: [{\n title: 'Find a profile by contact number as an administrator',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n q: '+352621123456',\n page: 1,\n limit: 100,\n sort: 'lastName:asc',\n },\n response: {\n ...USER_PROFILE_PAGE,\n pagination: { ...USER_PROFILE_PAGE.pagination, limit: 100 },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n },\n [Op.CREATE]: {\n purpose: 'Create the addressed user’s profile. The normal variant creates the caller’s own profile; the administration variant provisions one for another existing user.',\n outcome: 'The new profile is returned with its server-assigned id and initial resource version.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A profile document was created for the subject user and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The profile payload fails schema validation (for example, a required name is missing or `phoneNumber` is malformed).', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks profile-provisioning authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The referenced owning `userId` does not resolve to a known user.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A profile document already exists for the supplied `userId` (profiles are keyed one-per-user).' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Create your own profile',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n firstName: USER_PROFILE_EXAMPLE.firstName,\n lastName: USER_PROFILE_EXAMPLE.lastName,\n displayName: USER_PROFILE_EXAMPLE.displayName,\n bio: USER_PROFILE_EXAMPLE.bio,\n phoneNumber: USER_PROFILE_EXAMPLE.phoneNumber,\n title: USER_PROFILE_EXAMPLE.title,\n },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n variants: {\n admin: {\n examples: [{\n title: 'Provision a profile for an existing user',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n firstName: USER_PROFILE_EXAMPLE.firstName,\n lastName: USER_PROFILE_EXAMPLE.lastName,\n displayName: USER_PROFILE_EXAMPLE.displayName,\n title: USER_PROFILE_EXAMPLE.title,\n },\n response: USER_PROFILE_EXAMPLE,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n },\n communications: { notification: toast('The profile owner receives an in-app confirmation after the profile is created.') },\n },\n [Op.UPDATE]: {\n purpose: 'Replace one or more editable profile fields. The normal variant edits the caller’s profile; the administration variant edits another user’s profile.',\n outcome: 'The updated profile and its incremented resource version are returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile document was patched and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks profile-editing authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Update your display name and biography',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n displayName: 'Ada L.',\n bio: 'Builds reliable application integrations and developer platforms.',\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n displayName: 'Ada L.',\n bio: 'Builds reliable application integrations and developer platforms.',\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n variants: {\n admin: {\n examples: [{\n title: 'Correct another user’s professional title',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n title: 'Principal Engineer',\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n title: 'Principal Engineer',\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n communications: { notification: toast('The profile owner receives an in-app confirmation after the profile is updated.') },\n },\n [Op.DELETE]: {\n purpose: 'Delete the addressed profile. The normal variant removes the caller’s own profile; the administration variant removes another user’s profile.',\n outcome: 'The profile is removed and subsequent reads return 404 until a new profile is created.',\n responseStatuses: [\n { code: HttpResponseStatusCode.NO_CONTENT_204, meaning: 'The profile document was deleted; no body is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The normal caller addresses another user, or the administration caller lacks profile-deletion authority.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id (or it was already deleted).' },\n ],\n idempotent: true,\n communications: { notification: toast('The profile owner receives an in-app confirmation after the profile is deleted.') },\n },\n [UserProfiles_Operations.UPDATE_AVATAR]: {\n operationId: UserProfiles_Operations.UPDATE_AVATAR,\n purpose: 'Replace the caller’s avatar with an uploaded, application-managed image file.',\n outcome: 'The managed file reference is stored and the refreshed profile is returned.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The avatar file reference was updated and the refreshed profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The avatar is missing, is not a valid managed file reference, or violates the profile image constraints.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the profile subject and lacks authority to change this profile’s avatar.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Use an uploaded image as your avatar',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n avatar: {\n fileId: 'file_avatar_01JNEW',\n updatedAt: '2026-08-21T09:00:00.000Z',\n },\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n avatar: {\n fileId: 'file_avatar_01JNEW',\n updatedAt: '2026-08-21T09:00:00.000Z',\n },\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: { notification: toast('The profile owner receives an in-app confirmation after the avatar is updated.') },\n },\n [UserProfiles_Operations.REMOVE_AVATAR]: {\n operationId: UserProfiles_Operations.REMOVE_AVATAR,\n purpose: 'Reserved avatar-removal operation. It is not published as an application-consumer API capability while managed-file release is unimplemented.',\n outcome: 'Runtime requests fail closed; no profile or file reference is changed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.INTERNAL_SERVER_ERROR_500, meaning: 'The acknowledged implementation gap refuses the request instead of reporting a successful no-op.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the profile subject and lacks authority to clear this profile’s avatar.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n },\n [UserProfiles_Operations.UPDATE_CONTACT_INFO]: {\n operationId: UserProfiles_Operations.UPDATE_CONTACT_INFO,\n purpose: 'Replace the caller’s profile contact number with a valid E.164 international number.',\n outcome: 'The new number is stored and the refreshed profile is returned. Number verification remains a separate authentication flow.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The contact fields were updated and the refreshed profile is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The supplied phone number is not a valid E.164 value or the contact payload fails validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not the profile subject and lacks authority to change this profile’s contact data.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No profile document exists for the supplied id within the caller’s scope.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Update your contact number',\n request: {\n userId: USER_PROFILE_EXAMPLE.userId,\n phoneNumber: '+352621654321',\n },\n response: {\n ...USER_PROFILE_EXAMPLE,\n phoneNumber: '+352621654321',\n _version: 8,\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n communications: { notification: toast('The profile owner receives an in-app confirmation after the contact number is updated.') },\n },\n },\n\n businessConstraints: [\n 'Registry scope resolves through the `USERS` composition edge — the spec’s `resourcePrimaryScope` is `USER_SELF` to match the self-anchor, even though the product copy talks about “org directory”.',\n 'Core operations in the factory register both a default `APP_USER` API variant and an `admin` API variant; the identity `userProfilesResourceUIBehavior` UI preset only hosts the `admin` operation keys in `views`, so `frontend.views` documents `admin` only. End-user “my profile” UI is covered by `USER_SELF_PROFILES`, not a `default` view row on this resource type.',\n 'Custom operations (`update_avatar` … `update_contact_info`) are `APP_USER`-only in the factory (no `admin` variant). They appear in `base.operations` for API and DF-1; the admin UI preset does not add view hosts for them (see `identity.resource-presets.tsx`).',\n 'Phone-number possession is NOT proved on this resource. There is no `verify_phone` custom operation: the challenge/response against an issued code is fully implemented in the auth subsystem by `AuthPhoneVerificationBackendService` (`PHONE_VERIFICATION` consumable tokens — single-use, 10-minute expiry — a constant-time code comparison, audit events on both the success and failure paths, and the verified state persisted through `setVerifiedPhone`), with `AuthMethod.SMS_OTP` covering the same proof as a first-or-second auth factor. `USER_SELF_PROFILES` dropped its equivalent op for the same reason, and an admin-directory resource is the wrong place regardless — an SMS code proves possession by the phone’s owner, not by the admin submitting it. `update_contact_info` changes the number; it does not attest it.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n layout: {\n // Admin `USER_PROFILES` reuses the self-profile layout verbatim\n // (`layout: main[USER_SELF_PROFILES].layout`), which is now a flat,\n // sectionless field list. `sections` must stay empty to match — the\n // structural-slot validator compares this against the SHARED merged layout\n // refs, so a documented section here would crash-loop the companion.\n purpose: 'Reuse the flat self-profile layout for admin/end-user parity — no section grouping.',\n displayPurpose: 'Directory detail drawer (admin) or people search result expansion.',\n summaryPurpose: 'Name and title in compact list rows.',\n sections: {},\n },\n views: {\n [Op.READ]: {\n variants: {\n admin: {\n purpose: 'Admin and elevated directory read — the identity preset only surfaces the `admin` operation variant for USER_PROFILES.',\n whenToUse: 'User management console, directory admin, and support workflows using `USER_PROFILES` (not the self `USER_SELF_PROFILES` type).',\n },\n },\n },\n [Op.SEARCH]: {\n variants: {\n admin: {\n purpose: 'Admin search with expanded searchable fields from the runtime config.',\n whenToUse: 'Compliance lookup and back-office people search.',\n },\n },\n },\n [Op.CREATE]: {\n variants: {\n admin: {\n purpose: 'Admin-provisioned profile creation (imports, support).',\n whenToUse: 'When operators create profile rows on behalf of users — the merged preset only exposes the `admin` variant.',\n },\n },\n },\n [Op.UPDATE]: {\n variants: {\n admin: {\n purpose: 'Admin update path for a user’s profile document.',\n whenToUse: 'Support edits and data-fix flows under super-admin or equivalent roles.',\n },\n },\n },\n [Op.DELETE]: {\n variants: {\n admin: {\n purpose: 'Admin deletion of a profile for compliance or offboarding support.',\n whenToUse: 'DSR, abuse, or org teardown — the preset surfaces only the `admin` delete variant here.',\n },\n },\n },\n },\n }),\n);\n"]}
@@ -20,10 +20,10 @@ export declare const userSelfPreferencesResourceSpecification: import("../../../
20
20
  theme: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodEnum<typeof import("@wildo-ai/saas-models").UserTheme>>>;
21
21
  }, import("zod/v4/core").$strip>>>;
22
22
  regional: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodObject<{
23
- timezone: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodUnion<[import("zod").ZodEnum<typeof import("@wildo-ai/presets-components-models").CommonTimezone>, import("zod").ZodString]>>>;
24
- dateFormat: import("zod").ZodDefault<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/presets-components-models").DateFormat>>>;
25
- timeFormat: import("zod").ZodDefault<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/presets-components-models").TimeFormat>>>;
26
- locale: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/presets-components-models").AvailableLanguage>>>>;
23
+ timezone: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEnum<typeof import("@wildo-ai/presets-components-models").CommonTimezone>, import("zod").ZodString]>>>;
24
+ dateFormat: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/presets-components-models").DateFormat>>>;
25
+ timeFormat: import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/presets-components-models").TimeFormat>>>;
26
+ locale: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodOptional<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/presets-components-models").AvailableLanguage>>>>;
27
27
  }, import("zod/v4/core").$strip>>>>;
28
28
  languagePreferences: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("zod").ZodObject<{
29
29
  primaryLanguage: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodDefault<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("zod").ZodEnum<typeof import("@wildo-ai/presets-components-models").AvailableLanguage>>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"user-self-preferences.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-self-preferences.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI3B,8BAA8B,EAE/B,MAAM,uBAAuB,CAAC;AA8B/B,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA+QpD,CAAC"}
1
+ {"version":3,"file":"user-self-preferences.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/users/resources/user-self-preferences.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI3B,8BAA8B,EAE/B,MAAM,uBAAuB,CAAC;AA8B/B,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAiRpD,CAAC"}
@@ -69,7 +69,7 @@ export const userSelfPreferencesResourceSpecification = resourceSpecificationFro
69
69
  importance: FieldSemanticImportance.PRIMARY,
70
70
  }),
71
71
  userId: schemaShape.userId.foreignKeySpec({
72
- meaning: 'Foreign key to the `users` row that owns this self-preference document — immutable after create.',
72
+ meaning: 'Foreign key to the `users` record that owns this self-preference document — immutable after create.',
73
73
  whyItMatters: 'Scopes every self-serve read/write to the signed-in identity through the user-self access strategy, so a caller can only ever load or mutate their own preferences.',
74
74
  importance: FieldSemanticImportance.PRIMARY,
75
75
  }),
@@ -86,7 +86,7 @@ export const userSelfPreferencesResourceSpecification = resourceSpecificationFro
86
86
  importance: FieldSemanticImportance.PRIMARY,
87
87
  }),
88
88
  regional: schemaShape.regional.objectSpec({
89
- meaning: 'Timezone, locale, and date/time presentation formats.',
89
+ meaning: 'Timezone, locale, and date/time presentation formats — every field OPTIONAL, because an absent one is not a gap but an inheritance. Formatting resolves member, then the organization\u2019s own regional settings, then the framework floor, one field at a time, so a member who sets only a timezone still follows the tenant on date format. Omitting a field is therefore how a member says \u201cwhatever my organization uses\u201d, and sending a value is how they override it.',
90
90
  importance: FieldSemanticImportance.PRIMARY,
91
91
  }),
92
92
  languagePreferences: schemaShape.languagePreferences.objectSpec({
@@ -96,7 +96,9 @@ export const userSelfPreferencesResourceSpecification = resourceSpecificationFro
96
96
  },
97
97
  operations: {
98
98
  [Op.READ]: {
99
- purpose: 'Return the caller’s eagerly seeded preferences row for settings hydration. The `userId` path value must identify the authenticated caller; it is not an administrator-addressable user selector. ALSO exposed as an MCP tool (`operation.mcp.exposed`) to a USER-DELEGATED agent caller — a machine principal carries no `userId`, so this USER_SELF operation is never advertised to it; the read always resolves the consenting user’s own document.',
99
+ // Seeded with the user, so a first read never 404s. That is why the caller never has to
100
+ // create preferences, and it is the only part of the mechanism a reader needs.
101
+ purpose: 'Return the signed-in user’s own preferences, ready for a settings screen to bind to. The `userId` path value must identify the authenticated caller; it is not an administrator-addressable user selector. Also published as an MCP tool to an agent acting on the user’s behalf — never to a machine identity, which carries no user and is therefore never offered this operation; the read always resolves the consenting user’s own preferences.',
100
102
  outcome: 'Client forms can bind to every subsection in one fetch; an agent acting for the user can read their preferences (locale/timezone/theme/notifications) over MCP.',
101
103
  responseStatuses: [
102
104
  { code: HttpResponseStatusCode.OK_200, meaning: 'The signed-in user’s own preferences document is returned with every subsection.' },
@@ -142,8 +144,8 @@ export const userSelfPreferencesResourceSpecification = resourceSpecificationFro
142
144
  },
143
145
  },
144
146
  [Op.UPDATE]: {
145
- purpose: 'Patch any subset of preference sub-objects in one save. The `userId` path value must identify the authenticated caller. ALSO exposed as an MCP tool (`operation.mcp.exposed`) to a USER-DELEGATED agent caller (never to a machine principal — see READ); the write targets the consenting user’s own document.',
146
- outcome: 'Bulk “Save settings” buttons can send a merged DTO; an agent acting for the user can change their preferences over MCP.',
147
+ purpose: 'Change any subset of the preference groups in one save. The `userId` path value must identify the authenticated caller. Also published as an MCP tool to an agent acting on the user’s behalf, never to a machine identity — see the read operation; the write always targets the consenting user’s own preferences.',
148
+ outcome: 'A “Save settings” button can send every changed group at once; an agent acting for the user can change their preferences over MCP.',
147
149
  responseStatuses: [
148
150
  { code: HttpResponseStatusCode.OK_200, meaning: 'The supplied preference sub-objects were merged and the new state is returned.' },
149
151
  ],
@@ -207,12 +209,12 @@ export const userSelfPreferencesResourceSpecification = resourceSpecificationFro
207
209
  sms: false,
208
210
  inApp: true,
209
211
  },
210
- regional: {
211
- timezone: 'UTC',
212
- dateFormat: 'YYYY-MM-DD',
213
- timeFormat: '24h',
214
- locale: 'en',
215
- },
212
+ // Resetting the regional group clears it to EMPTY rather than writing four values,
213
+ // and that is what "default" means here: every regional field is optional, so an
214
+ // absent one is inherited from the organization's own regional record and only then
215
+ // from the framework floor. Writing `UTC`/`en` back would be the opposite — it would
216
+ // record a fresh explicit choice that the tenant can never override again.
217
+ regional: {},
216
218
  },
217
219
  forStatus: HttpResponseStatusCode.OK_200,
218
220
  },
@@ -1 +1 @@
1
- {"version":3,"file":"user-self-preferences.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-self-preferences.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,qCAAqC,IAAI,2CAA2C,EAAE,MAAM,8BAA8B,CAAC;AACpI,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,8BAA8B,EAC9B,8DAA8D,IAAI,0BAA0B,GAC7F,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAClG,OAAO,EACL,gCAAgC,EAChC,kCAAkC,EAClC,sCAAsC,EACtC,yCAAyC,GAC1C,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,MAAM,qCAAqC,GAAG,2CAI7C,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,sCAAsC,CAAC,CAAC,CAAC,CAAC;AAEvE,MAAM,CAAC,MAAM,wCAA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DAAwD;gBACjE,SAAS,EAAE,qDAAqD;gBAChE,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE;oBAC3D,WAAW,EAAE,EAAE,OAAO,EAAE,kEAAkE,EAAE;iBAC7F;aACF;YACD,OAAO,EAAE;gBACP,OAAO,EAAE,qEAAqE;gBAC9E,SAAS,EAAE,8CAA8C;gBACzD,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAE;oBAC9C,WAAW,EAAE,EAAE,OAAO,EAAE,mEAAmE,EAAE;iBAC9F;aACF;YACD,QAAQ,EAAE;gBACR,OAAO,EAAE,6DAA6D;gBACtE,SAAS,EAAE,sCAAsC;gBACjD,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,0BAA0B,EAAE;oBAC9C,WAAW,EAAE,EAAE,OAAO,EAAE,6EAA6E,EAAE;iBACxG;aACF;YACD,QAAQ,EAAE;gBACR,OAAO,EAAE,0DAA0D;gBACnE,SAAS,EAAE,4DAA4D;gBACvE,SAAS,EAAE;oBACT,KAAK,EAAE,EAAE,OAAO,EAAE,6BAA6B,EAAE;oBACjD,WAAW,EAAE,EAAE,OAAO,EAAE,mFAAmF,EAAE;iBAC9G;aACF;SACF;KACF;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,iDAAiD,EAAE,SAAS,EAAE,yBAAyB,EAAE;QAC/G,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAE,wCAAwC,EAAE;QAC1G,CAAC,8BAA8B,CAAC,iBAAiB,CAAC,EAAE,EAAE,OAAO,EAAE,0IAA0I,EAAE,SAAS,EAAE,8CAA8C,EAAE;KACvQ;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `userSelfPreferences` — Wildo SaaS engine specification (mixed).\n * Runtime: `user-self-preferences.shared.resources-config.schemas.ts`, schema `UserPreferencesSchema`.\n */\n\nimport { userSelfPreferencesResourceUIBehavior as userSelfPreferencesResourceUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n UserPreferenceGroup,\n UserPreferencesSchema,\n UserSelfPreferences_Operations,\n userSelfPreferencesResourceConfiguration_InitializationFactory as userSelfPreferencesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\nimport { selfServiceFrontEndSuccessNotification } from './self-service-user-notifications.shared';\nimport {\n USER_PREFERENCES_EXAMPLE_USER_ID,\n userPreferencesApiReferenceExample,\n userPreferencesApiReferencePathExample,\n userPreferencesApiReferenceSummaryExample,\n} from './user-preferences-api-reference.examples';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof userSelfPreferencesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst userSelfPreferencesResourceUIBehavior = userSelfPreferencesResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n Custom,\n Core,\n Main\n>;\n\nconst toast = (s: string) => selfServiceFrontEndSuccessNotification(s);\n\nexport const userSelfPreferencesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userSelfPreferencesResourceUIBehavior),\n resourceSpecification(\n userSelfPreferencesFactory,\n UserPreferencesSchema,\n ({ schemaShape }) => ({\n purpose: 'Persist the signed-in user’s notification, privacy, UI, regional, and language preferences as a single document.',\n businessRole: 'Self-scoped preference store — same shape as org-admin `USER_PREFERENCES` but only `APP_USER` may call it here.',\n lifecycleRole:\n 'Seeded with product defaults when the user account is created, then updated by the signed-in user through the generic update or selective reset operations.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserPreferencesSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userSelfPreferencesResourceConfiguration_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: 'USER_SELF_PREFERENCES',\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: 'UserSelfPreferences_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'userSelfPreferencesResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Primary key for the preferences document.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the `users` row that owns this self-preference document — immutable after create.',\n whyItMatters: 'Scopes every self-serve read/write to the signed-in identity through the user-self access strategy, so a caller can only ever load or mutate their own preferences.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n notifications: schemaShape.notifications.objectSpec({\n meaning: 'Channel toggles (email, push, SMS, in-app) for notification fan-out.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n privacy: schemaShape.privacy.objectSpec({\n meaning: 'User-level privacy flags and consent mirrors for product features.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n ui: schemaShape.ui.objectSpec({\n meaning: 'UI theme selection (light/dark/system) and related presentation defaults.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n regional: schemaShape.regional.objectSpec({\n meaning: 'Timezone, locale, and date/time presentation formats.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n languagePreferences: schemaShape.languagePreferences.objectSpec({\n meaning: 'Primary/fallback languages and auto-detect behavior for i18n.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Return the caller’s eagerly seeded preferences row for settings hydration. The `userId` path value must identify the authenticated caller; it is not an administrator-addressable user selector. ALSO exposed as an MCP tool (`operation.mcp.exposed`) to a USER-DELEGATED agent caller — a machine principal carries no `userId`, so this USER_SELF operation is never advertised to it; the read always resolves the consenting user’s own document.',\n outcome: 'Client forms can bind to every subsection in one fetch; an agent acting for the user can read their preferences (locale/timezone/theme/notifications) over MCP.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The signed-in user’s own preferences document is returned with every subsection.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `userId` path value does not identify the authenticated caller.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences row exists for the authenticated user because account provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Load my notification, privacy and regional choices',\n request: userPreferencesApiReferencePathExample,\n response: userPreferencesApiReferenceExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n variants: {\n context: {\n examples: [\n {\n title: 'Load my preferences with their owning user context',\n request: userPreferencesApiReferencePathExample,\n response: {\n ...userPreferencesApiReferenceExample,\n user: { _id: USER_PREFERENCES_EXAMPLE_USER_ID },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'Load the compact locale and appearance summary',\n request: userPreferencesApiReferencePathExample,\n response: userPreferencesApiReferenceSummaryExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.UPDATE]: {\n purpose: 'Patch any subset of preference sub-objects in one save. The `userId` path value must identify the authenticated caller. ALSO exposed as an MCP tool (`operation.mcp.exposed`) to a USER-DELEGATED agent caller (never to a machine principal — see READ); the write targets the consenting user’s own document.',\n outcome: 'Bulk “Save settings” buttons can send a merged DTO; an agent acting for the user can change their preferences over MCP.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The supplied preference sub-objects were merged and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `userId` path value does not identify the authenticated caller.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'One of the edited preference sub-objects fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences row exists for the authenticated user because account provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Use French formats in the Europe/Paris timezone',\n request: {\n userId: USER_PREFERENCES_EXAMPLE_USER_ID,\n regional: {\n timezone: 'Europe/Paris',\n dateFormat: 'DD/MM/YYYY',\n timeFormat: '24h',\n locale: 'fr',\n },\n languagePreferences: {\n primaryLanguage: 'fr',\n fallbackLanguages: ['en'],\n autoDetect: true,\n useOrganizationDefault: false,\n },\n },\n response: userPreferencesApiReferenceExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n communications: { notification: toast('FRONT_END_SUCCESS after generic UPDATE on self preferences.') },\n },\n [UserSelfPreferences_Operations.RESET_TO_DEFAULTS]: {\n operationId: UserSelfPreferences_Operations.RESET_TO_DEFAULTS,\n purpose: 'Return the named preference blocks to product defaults. The request carries `groups` — one or more members of the closed `UserPreferenceGroup` vocabulary, whose values are the persisted block names — and a \"reset everything\" is expressed by naming every block, not by a separate flag.',\n outcome: 'Each named block is replaced by its schema defaults; a block the request does not name is left exactly as it was. Resetting `privacy` changes only the two preference settings in that block. Governed notice, contract, and consent interactions are separate immutable release-bound records, are not members of this resource, and are never modified by a preferences reset.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The named preference blocks were reset to product defaults and the refreshed preferences are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `userId` path value does not identify the authenticated caller.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`groups` is absent or empty, or names a block outside the vocabulary. A request naming nothing is rejected rather than answered with an empty write.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences row exists for the authenticated user because account provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Restore notification and regional defaults without changing privacy or language',\n request: {\n userId: USER_PREFERENCES_EXAMPLE_USER_ID,\n groups: [UserPreferenceGroup.NOTIFICATIONS, UserPreferenceGroup.REGIONAL],\n },\n response: {\n ...userPreferencesApiReferenceExample,\n notifications: {\n email: true,\n push: true,\n sms: false,\n inApp: true,\n },\n regional: {\n timezone: 'UTC',\n dateFormat: 'YYYY-MM-DD',\n timeFormat: '24h',\n locale: 'en',\n },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n communications: { notification: toast('FRONT_END_SUCCESS after reset operation completes.') },\n },\n },\n businessConstraints: [\n 'A preferences row is created eagerly from schema defaults when the user account is created. There is no public self-service CREATE operation; a missing row is a provisioning failure, not a normal client lifecycle state.',\n 'The `userId` URL segment identifies the authenticated user-self scope. Supplying another user id never turns this API into an administrative preferences API.',\n 'UPDATE accepts selected preference blocks, but a supplied block is validated as that block’s complete object. Send all fields of each block you change.',\n 'RESET_TO_DEFAULTS is selective: only groups named in the request are replaced. It does not alter separate governed-document interaction records.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n layout: {\n purpose: 'Mirror the preset’s four settings sections: notifications, privacy, regional, and language. UI theme is intentionally NOT a section here — `ui.theme` is read-only in the summary projection and is edited via the dedicated Appearance Settings-Hub panel (`AppPage_AppearanceSettings`); the editable duplicate was removed from this page (mirrors the preset’s omission note). Do not re-add an `appearance` section unless the preset reintroduces the ref.',\n displayPurpose: 'End-user settings tabs; nested `ObjectScope` names in the preset must stay aligned with these section keys.',\n summaryPurpose: 'Condensed summary with theme + timezone + primary language.',\n sections: {\n notifications: {\n purpose: 'Channel-level opt-in matrix for email/push/SMS/in-app.',\n whenToUse: 'Notification center onboarding and digest controls.',\n textSlots: {\n title: { purpose: 'Label the notifications section card.' },\n description: { purpose: 'Explain binding to actual delivery channels in the worker layer.' },\n },\n },\n privacy: {\n purpose: 'Consent and data-processing toggles that affect compliance posture.',\n whenToUse: 'GDPR/CCPA style self-service privacy center.',\n textSlots: {\n title: { purpose: 'Label the privacy block.' },\n description: { purpose: 'Cross-link to org-level policies when the deployment requires it.' },\n },\n },\n regional: {\n purpose: 'Timezone and format preferences for scheduling and numbers.',\n whenToUse: 'First-day setup or travel scenarios.',\n textSlots: {\n title: { purpose: 'Label regional settings.' },\n description: { purpose: 'State that changes affect formatting, not historical stored instant fields.' },\n },\n },\n language: {\n purpose: 'Primary and fallback languages with auto-detect options.',\n whenToUse: 'Internationalized products and accessibility requirements.',\n textSlots: {\n title: { purpose: 'Label language preferences.' },\n description: { purpose: 'Note interaction with org default language when `useOrganizationDefault` is true.' },\n },\n },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Load self preferences for any settings surface.', whenToUse: 'Initial settings fetch.' },\n [Op.UPDATE]: { purpose: 'Save all tabs in one DTO.', whenToUse: '“Save” with multi-section dirty state.' },\n [UserSelfPreferences_Operations.RESET_TO_DEFAULTS]: { purpose: 'Danger-zone reset: the form is a multi-select over the preference blocks, and being CRITICAL it gates its submit behind type-to-confirm.', whenToUse: '“Restore defaults” CTA in advanced settings.' },\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"user-self-preferences.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/users/resources/user-self-preferences.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,qCAAqC,IAAI,2CAA2C,EAAE,MAAM,8BAA8B,CAAC;AACpI,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,8BAA8B,EAC9B,8DAA8D,IAAI,0BAA0B,GAC7F,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAClG,OAAO,EACL,gCAAgC,EAChC,kCAAkC,EAClC,sCAAsC,EACtC,yCAAyC,GAC1C,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,MAAM,qCAAqC,GAAG,2CAI7C,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,s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cesContent":["/**\n * Resource: `userSelfPreferences` — Wildo SaaS engine specification (mixed).\n * Runtime: `user-self-preferences.shared.resources-config.schemas.ts`, schema `UserPreferencesSchema`.\n */\n\nimport { userSelfPreferencesResourceUIBehavior as userSelfPreferencesResourceUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n UserPreferenceGroup,\n UserPreferencesSchema,\n UserSelfPreferences_Operations,\n userSelfPreferencesResourceConfiguration_InitializationFactory as userSelfPreferencesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\nimport { selfServiceFrontEndSuccessNotification } from './self-service-user-notifications.shared';\nimport {\n USER_PREFERENCES_EXAMPLE_USER_ID,\n userPreferencesApiReferenceExample,\n userPreferencesApiReferencePathExample,\n userPreferencesApiReferenceSummaryExample,\n} from './user-preferences-api-reference.examples';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof userSelfPreferencesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst userSelfPreferencesResourceUIBehavior = userSelfPreferencesResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n Custom,\n Core,\n Main\n>;\n\nconst toast = (s: string) => selfServiceFrontEndSuccessNotification(s);\n\nexport const userSelfPreferencesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userSelfPreferencesResourceUIBehavior),\n resourceSpecification(\n userSelfPreferencesFactory,\n UserPreferencesSchema,\n ({ schemaShape }) => ({\n purpose: 'Persist the signed-in user’s notification, privacy, UI, regional, and language preferences as a single document.',\n businessRole: 'Self-scoped preference store — same shape as org-admin `USER_PREFERENCES` but only `APP_USER` may call it here.',\n lifecycleRole:\n 'Seeded with product defaults when the user account is created, then updated by the signed-in user through the generic update or selective reset operations.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserPreferencesSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userSelfPreferencesResourceConfiguration_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: 'USER_SELF_PREFERENCES',\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: 'UserSelfPreferences_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'userSelfPreferencesResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Primary key for the preferences document.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the `users` record that owns this self-preference document — immutable after create.',\n whyItMatters: 'Scopes every self-serve read/write to the signed-in identity through the user-self access strategy, so a caller can only ever load or mutate their own preferences.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n notifications: schemaShape.notifications.objectSpec({\n meaning: 'Channel toggles (email, push, SMS, in-app) for notification fan-out.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n privacy: schemaShape.privacy.objectSpec({\n meaning: 'User-level privacy flags and consent mirrors for product features.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n ui: schemaShape.ui.objectSpec({\n meaning: 'UI theme selection (light/dark/system) and related presentation defaults.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n regional: schemaShape.regional.objectSpec({\n meaning: 'Timezone, locale, and date/time presentation formats — every field OPTIONAL, because an absent one is not a gap but an inheritance. Formatting resolves member, then the organization\\u2019s own regional settings, then the framework floor, one field at a time, so a member who sets only a timezone still follows the tenant on date format. Omitting a field is therefore how a member says \\u201cwhatever my organization uses\\u201d, and sending a value is how they override it.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n languagePreferences: schemaShape.languagePreferences.objectSpec({\n meaning: 'Primary/fallback languages and auto-detect behavior for i18n.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n },\n\n operations: {\n [Op.READ]: {\n // Seeded with the user, so a first read never 404s. That is why the caller never has to\n // create preferences, and it is the only part of the mechanism a reader needs.\n purpose: 'Return the signed-in user’s own preferences, ready for a settings screen to bind to. The `userId` path value must identify the authenticated caller; it is not an administrator-addressable user selector. Also published as an MCP tool to an agent acting on the user’s behalf — never to a machine identity, which carries no user and is therefore never offered this operation; the read always resolves the consenting user’s own preferences.',\n outcome: 'Client forms can bind to every subsection in one fetch; an agent acting for the user can read their preferences (locale/timezone/theme/notifications) over MCP.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The signed-in user’s own preferences document is returned with every subsection.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `userId` path value does not identify the authenticated caller.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences row exists for the authenticated user because account provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Load my notification, privacy and regional choices',\n request: userPreferencesApiReferencePathExample,\n response: userPreferencesApiReferenceExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n variants: {\n context: {\n examples: [\n {\n title: 'Load my preferences with their owning user context',\n request: userPreferencesApiReferencePathExample,\n response: {\n ...userPreferencesApiReferenceExample,\n user: { _id: USER_PREFERENCES_EXAMPLE_USER_ID },\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n summary: {\n examples: [\n {\n title: 'Load the compact locale and appearance summary',\n request: userPreferencesApiReferencePathExample,\n response: userPreferencesApiReferenceSummaryExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n },\n },\n },\n [Op.UPDATE]: {\n purpose: 'Change any subset of the preference groups in one save. The `userId` path value must identify the authenticated caller. Also published as an MCP tool to an agent acting on the user’s behalf, never to a machine identity — see the read operation; the write always targets the consenting user’s own preferences.',\n outcome: 'A “Save settings” button can send every changed group at once; an agent acting for the user can change their preferences over MCP.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The supplied preference sub-objects were merged and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `userId` path value does not identify the authenticated caller.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'One of the edited preference sub-objects fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences row exists for the authenticated user because account provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Use French formats in the Europe/Paris timezone',\n request: {\n userId: USER_PREFERENCES_EXAMPLE_USER_ID,\n regional: {\n timezone: 'Europe/Paris',\n dateFormat: 'DD/MM/YYYY',\n timeFormat: '24h',\n locale: 'fr',\n },\n languagePreferences: {\n primaryLanguage: 'fr',\n fallbackLanguages: ['en'],\n autoDetect: true,\n useOrganizationDefault: false,\n },\n },\n response: userPreferencesApiReferenceExample,\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n communications: { notification: toast('FRONT_END_SUCCESS after generic UPDATE on self preferences.') },\n },\n [UserSelfPreferences_Operations.RESET_TO_DEFAULTS]: {\n operationId: UserSelfPreferences_Operations.RESET_TO_DEFAULTS,\n purpose: 'Return the named preference blocks to product defaults. The request carries `groups` — one or more members of the closed `UserPreferenceGroup` vocabulary, whose values are the persisted block names — and a \"reset everything\" is expressed by naming every block, not by a separate flag.',\n outcome: 'Each named block is replaced by its schema defaults; a block the request does not name is left exactly as it was. Resetting `privacy` changes only the two preference settings in that block. Governed notice, contract, and consent interactions are separate immutable release-bound records, are not members of this resource, and are never modified by a preferences reset.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The named preference blocks were reset to product defaults and the refreshed preferences are returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The `userId` path value does not identify the authenticated caller.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: '`groups` is absent or empty, or names a block outside the vocabulary. A request naming nothing is rejected rather than answered with an empty write.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No preferences row exists for the authenticated user because account provisioning did not complete successfully.' },\n ],\n idempotent: true,\n examples: [\n {\n title: 'Restore notification and regional defaults without changing privacy or language',\n request: {\n userId: USER_PREFERENCES_EXAMPLE_USER_ID,\n groups: [UserPreferenceGroup.NOTIFICATIONS, UserPreferenceGroup.REGIONAL],\n },\n response: {\n ...userPreferencesApiReferenceExample,\n notifications: {\n email: true,\n push: true,\n sms: false,\n inApp: true,\n },\n // Resetting the regional group clears it to EMPTY rather than writing four values,\n // and that is what \"default\" means here: every regional field is optional, so an\n // absent one is inherited from the organization's own regional record and only then\n // from the framework floor. Writing `UTC`/`en` back would be the opposite — it would\n // record a fresh explicit choice that the tenant can never override again.\n regional: {},\n },\n forStatus: HttpResponseStatusCode.OK_200,\n },\n ],\n communications: { notification: toast('FRONT_END_SUCCESS after reset operation completes.') },\n },\n },\n businessConstraints: [\n 'A preferences row is created eagerly from schema defaults when the user account is created. There is no public self-service CREATE operation; a missing row is a provisioning failure, not a normal client lifecycle state.',\n 'The `userId` URL segment identifies the authenticated user-self scope. Supplying another user id never turns this API into an administrative preferences API.',\n 'UPDATE accepts selected preference blocks, but a supplied block is validated as that block’s complete object. Send all fields of each block you change.',\n 'RESET_TO_DEFAULTS is selective: only groups named in the request are replaced. It does not alter separate governed-document interaction records.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n layout: {\n purpose: 'Mirror the preset’s four settings sections: notifications, privacy, regional, and language. UI theme is intentionally NOT a section here — `ui.theme` is read-only in the summary projection and is edited via the dedicated Appearance Settings-Hub panel (`AppPage_AppearanceSettings`); the editable duplicate was removed from this page (mirrors the preset’s omission note). Do not re-add an `appearance` section unless the preset reintroduces the ref.',\n displayPurpose: 'End-user settings tabs; nested `ObjectScope` names in the preset must stay aligned with these section keys.',\n summaryPurpose: 'Condensed summary with theme + timezone + primary language.',\n sections: {\n notifications: {\n purpose: 'Channel-level opt-in matrix for email/push/SMS/in-app.',\n whenToUse: 'Notification center onboarding and digest controls.',\n textSlots: {\n title: { purpose: 'Label the notifications section card.' },\n description: { purpose: 'Explain binding to actual delivery channels in the worker layer.' },\n },\n },\n privacy: {\n purpose: 'Consent and data-processing toggles that affect compliance posture.',\n whenToUse: 'GDPR/CCPA style self-service privacy center.',\n textSlots: {\n title: { purpose: 'Label the privacy block.' },\n description: { purpose: 'Cross-link to org-level policies when the deployment requires it.' },\n },\n },\n regional: {\n purpose: 'Timezone and format preferences for scheduling and numbers.',\n whenToUse: 'First-day setup or travel scenarios.',\n textSlots: {\n title: { purpose: 'Label regional settings.' },\n description: { purpose: 'State that changes affect formatting, not historical stored instant fields.' },\n },\n },\n language: {\n purpose: 'Primary and fallback languages with auto-detect options.',\n whenToUse: 'Internationalized products and accessibility requirements.',\n textSlots: {\n title: { purpose: 'Label language preferences.' },\n description: { purpose: 'Note interaction with org default language when `useOrganizationDefault` is true.' },\n },\n },\n },\n },\n views: {\n [Op.READ]: { purpose: 'Load self preferences for any settings surface.', whenToUse: 'Initial settings fetch.' },\n [Op.UPDATE]: { purpose: 'Save all tabs in one DTO.', whenToUse: '“Save” with multi-section dirty state.' },\n [UserSelfPreferences_Operations.RESET_TO_DEFAULTS]: { purpose: 'Danger-zone reset: the form is a multi-select over the preference blocks, and being CRITICAL it gates its submit behind type-to-confirm.', whenToUse: '“Restore defaults” CTA in advanced settings.' },\n },\n }),\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"user-self-profiles.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-self-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI5B,MAAM,uBAAuB,CAAC;AAwB/B,eAAO,MAAM,qCAAqC;;;;;;;;;;iCAgLjD,CAAC"}
1
+ {"version":3,"file":"user-self-profiles.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/users/resources/user-self-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI5B,MAAM,uBAAuB,CAAC;AAwB/B,eAAO,MAAM,qCAAqC;;;;;;;;;;iCAgLjD,CAAC"}
@@ -61,7 +61,7 @@ export const userSelfProfilesResourceSpecification = resourceSpecificationFromFr
61
61
  importance: FieldSemanticImportance.PRIMARY,
62
62
  }),
63
63
  userId: schemaShape.userId.foreignKeySpec({
64
- meaning: 'Foreign key to the `users` row that owns this self profile document — immutable after create in self-service flows.',
64
+ meaning: 'Foreign key to the `users` record that owns this self profile document — immutable after create in self-service flows.',
65
65
  whyItMatters: 'Scopes profile reads/writes to the signed-in identity so a caller can only self-provision and edit their own profile card, never another user’s.',
66
66
  importance: FieldSemanticImportance.PRIMARY,
67
67
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"user-self-profiles.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-self-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kCAAkC,IAAI,wCAAwC,EAAE,MAAM,8BAA8B,CAAC;AAC9H,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EACpB,iBAAiB,EACjB,2DAA2D,IAAI,uBAAuB,GACvF,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,sCAAsC,GACvC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,MAAM,kCAAkC,GAAG,wCAI1C,CAAC;AAEF,MAAM,CAAC,MAAM,qCAAqC,GAAG,8CAA8C,CACjG,6BAA6B,CAAC,kCAAkC,CAAC,EACjE,qBAAqB,CACnB,uBAAuB,EACvB,iBAAiB,EACjB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,0HAA0H;IACn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AAgB,EAAE,IAAI,EAAE,qDAAqD,EAAE;gBAC9G,EAAE,IAAI,EAAE,sBAAsB,CAAC,eAAe,EAAE,IAAI,EAAE,mDAAmD,EAAE,SAAS,EAAE,mBAAmB,EAAE;gBAC3I,EAAE,IAAI,EAAE,sBAAsB,CAAC,aAAa,EAAE,IAAI,EAAE,sFAAsF,EAAE;aAC7I;YACD,UAAU,EAAE,IAAI;YAChB,cAAc,EAAE;gBACd,YAAY,EAAE,sCAAsC,CAAC,6DAA6D,CAAC;aACpH;SACF;KACF;IAED,mBAAmB,EAAE;QACnB,oKAAoK;KACrK;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,SAAS,EAAE,CACzD,EACD,GAAG,EAAE,CAAC,CAAC;IACL,MAAM,EAAE;QACN,6DAA6D;QAC7D,kEAAkE;QAClE,yEAAyE;QACzE,qEAAqE;QACrE,yEAAyE;QACzE,OAAO,EAAE,2EAA2E;QACpF,cAAc,EAAE,wEAAwE;QACxF,cAAc,EAAE,uDAAuD;QACvE,QAAQ,EAAE,EAAE;KACb;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,8CAA8C,EAAE,SAAS,EAAE,sBAAsB,EAAE;QACzG,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,kDAAkD,EAAE,SAAS,EAAE,wBAAwB,EAAE;QACjH,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,SAAS,EAAE,+CAA+C,EAAE;KACxH;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `userSelfProfiles` — Wildo SaaS engine specification (mixed).\n * Runtime: `user-self-profiles.shared.resources-config.schemas.ts`, schema `UserProfileSchema`.\n */\n\nimport { userSelfProfilesResourceUIBehavior as userSelfProfilesResourceUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n UserProfileSchema,\n userSelfProfilesResourceConfiguration_InitializationFactory as userSelfProfilesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\nimport {\n selfServiceFrontEndSuccessNotification,\n} from './self-service-user-notifications.shared';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof userSelfProfilesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst userSelfProfilesResourceUIBehavior = userSelfProfilesResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n Custom,\n Core,\n Main\n>;\n\nexport const userSelfProfilesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userSelfProfilesResourceUIBehavior),\n resourceSpecification(\n userSelfProfilesFactory,\n UserProfileSchema,\n ({ schemaShape }) => ({\n purpose: 'Persist the end user’s own profile card: name, avatar, bio, and contact details separate from org-admin `USER_PROFILES`.',\n businessRole: 'Self-scoped profile storage that still follows the same document shape as admin-managed profiles for merging in `UserContext`.',\n lifecycleRole: 'Created on first self-provision, updated through self-service operations, deleted with the user aggregate.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserProfileSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userSelfProfilesResourceConfiguration_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: 'USER_SELF_PROFILES',\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 frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'userSelfProfilesResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Primary key for the user’s profile document.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the `users` row that owns this self profile document — immutable after create in self-service flows.',\n whyItMatters: 'Scopes profile reads/writes to the signed-in identity so a caller can only self-provision and edit their own profile card, never another user’s.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n firstName: schemaShape.firstName.stringSpec({\n meaning: 'Legal or preferred given name shown across the product.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n lastName: schemaShape.lastName.stringSpec({\n meaning: 'Family name for sorting, directory, and exports.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n displayName: schemaShape.displayName.stringSpec({\n meaning: 'Optional friendly label overriding `firstName`+`lastName` in UI when set.',\n }),\n avatar: schemaShape.avatar.fileSpec({\n meaning: 'Profile avatar — a single uploaded square image (≤ 2 MB, ≤ 1024px) stored as the standard file reference and rendered as a square avatar. Upload-only via the `z_file()` image pipeline; no external-URL branch.',\n }),\n bio: schemaShape.bio.stringSpec({\n meaning: 'Long-form biography. Authored as markdown (source textarea on edit) and rendered as rich markdown on the read view. Hidden on display when empty.',\n }),\n phoneNumber: schemaShape.phoneNumber.stringSpec({\n meaning: 'E.164 phone used for contact and verification flows. Edited via the international phone input (country selector + national number); displayed in formatted international style.',\n semanticRole: 'identifier',\n }),\n title: schemaShape.title.stringSpec({\n meaning: 'Professional title or role label for org directory cards. Hidden on the read view when empty.',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Load the caller’s profile row for settings and people pickers.',\n outcome: 'Clients receive the structured profile used in avatars, mentions, and HR-style views.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The signed-in user’s own profile document is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The caller has not yet materialized a profile document (none exists until first CREATE).' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'First-time materialization of the self profile after signup when the row does not yet exist.',\n outcome: 'The user has a persisted profile document bound to their `userId`.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A profile document was materialized for the signed-in user and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The profile payload fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A profile document already exists for the signed-in user (profiles are one-per-user; use UPDATE instead).' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Materialize my own profile after signup',\n request: {\n firstName: 'Ada',\n lastName: 'Lovelace',\n displayName: 'Ada',\n },\n response: {\n _id: 'userprofile_01HX2…',\n userId: 'user_01HX2…',\n firstName: 'Ada',\n lastName: 'Lovelace',\n displayName: 'Ada',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n communications: {\n notification: selfServiceFrontEndSuccessNotification('Acknowledge first profile creation in FRONT_END_SUCCESS toast channel (runtime).'),\n },\n },\n [Op.UPDATE]: {\n purpose: 'Patch profile fields the user is allowed to edit directly.',\n outcome: 'Names, titles, and bio text update without an administrator.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile fields were patched and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The caller has no profile document to update yet (materialize it with CREATE first).' },\n ],\n idempotent: true,\n communications: {\n notification: selfServiceFrontEndSuccessNotification('Acknowledge a generic profile UPDATE via FRONT_END_SUCCESS.'),\n },\n },\n },\n\n businessConstraints: [\n 'The admin counterpart `USER_PROFILES` reuses the same `UserProfileSchema` but with APP_ADMIN roles — do not conflate RLS or audit semantics between the two types.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n layout: {\n // Flat, sectionless layout (2026-07): the preset dropped the\n // identity/contact/profile section grouping in favour of a single\n // settings-row field list. `sections` is therefore intentionally empty —\n // do NOT re-document identity/contact/profile here unless the preset\n // reintroduces the refs (the structural-slot validator fails otherwise).\n purpose: 'Single flat settings-row list for the self profile — no section grouping.',\n displayPurpose: 'End-user “Profile” settings; a flat label-left / value-right row list.',\n summaryPurpose: 'Compact name + title line for self-profile summaries.',\n sections: {},\n },\n views: {\n [Op.READ]: { purpose: 'Read self profile in settings or onboarding.', whenToUse: 'Default profile tab.' },\n [Op.CREATE]: { purpose: 'Initial profile create wizard / empty state CTA.', whenToUse: 'First-run experiences.' },\n [Op.UPDATE]: { purpose: 'Generic profile edit form host.', whenToUse: 'When multiple fields change in a single save.' },\n },\n }),\n);\n"]}
1
+ {"version":3,"file":"user-self-profiles.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/users/resources/user-self-profiles.resource.specification.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kCAAkC,IAAI,wCAAwC,EAAE,MAAM,8BAA8B,CAAC;AAC9H,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,IAAI,EAAE,EAC3B,oBAAoB,EACpB,iBAAiB,EACjB,2DAA2D,IAAI,uBAAuB,GACvF,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,qBAAqB,EACrB,8CAA8C,GAC/C,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,sCAAsC,GACvC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAO3E,MAAM,kCAAkC,GAAG,wCAI1C,CAAC;AAEF,MAAM,CAAC,MAAM,qCAAqC,GAAG,8CAA8C,CACjG,6BAA6B,CAAC,kCAAkC,CAAC,EACjE,qBAAqB,CACnB,uBAAuB,EACvB,iBAAiB,EACjB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,0HAA0H;IACnI,YAAY,EAAE,gIAAgI;IAC9I,aAAa,EAAE,4GAA4G;IAC3H,QAAQ,EAAE,aAAa,CAAC,QAAQ;IAChC,SAAS,EAAE,uBAAuB,CAAC,KAAK;IACxC,YAAY,EAAE;QACZ,UAAU,EAAE;YACV,WAAW,EAAE,uBAAuB;YACpC,UAAU,EAAE,mBAAmB;YAC/B,UAAU,EAAE,cAAc,CAAC,MAAM;YACjC,eAAe,EAAE,mBAAmB,CAAC,UAAU;SAChD;QACD,eAAe,EAAE;YACf,WAAW,EAAE,uBAAuB;YACpC,UAAU,EAA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B,oKAAoK;KACrK;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,SAAS,EAAE,CACzD,EACD,GAAG,EAAE,CAAC,CAAC;IACL,MAAM,EAAE;QACN,6DAA6D;QAC7D,kEAAkE;QAClE,yEAAyE;QACzE,qEAAqE;QACrE,yEAAyE;QACzE,OAAO,EAAE,2EAA2E;QACpF,cAAc,EAAE,wEAAwE;QACxF,cAAc,EAAE,uDAAuD;QACvE,QAAQ,EAAE,EAAE;KACb;IACD,KAAK,EAAE;QACL,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,8CAA8C,EAAE,SAAS,EAAE,sBAAsB,EAAE;QACzG,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,kDAAkD,EAAE,SAAS,EAAE,wBAAwB,EAAE;QACjH,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,SAAS,EAAE,+CAA+C,EAAE;KACxH;CACF,CAAC,CACH,CAAC","sourcesContent":["/**\n * Resource: `userSelfProfiles` — Wildo SaaS engine specification (mixed).\n * Runtime: `user-self-profiles.shared.resources-config.schemas.ts`, schema `UserProfileSchema`.\n */\n\nimport { userSelfProfilesResourceUIBehavior as userSelfProfilesResourceUIBehaviorSource } from '@wildo-ai/presets-components';\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport type { ResourceUIBehaviorConfig } from '@wildo-ai/saas-frontend-lib/companion';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n CoreResourceOperation as Op,\n ResourcePrimaryScope,\n UserProfileSchema,\n userSelfProfilesResourceConfiguration_InitializationFactory as userSelfProfilesFactory,\n} from '@wildo-ai/saas-models';\nimport {\n HttpResponseStatusCode,\n resourceFrontendConfiguration,\n resourceSpecification,\n resourceSpecificationFromFrontendConfiguration,\n} from '~wildo-specifications/_core';\n\nimport {\n selfServiceFrontEndSuccessNotification,\n} from './self-service-user-notifications.shared';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\ntype Cfg = ReturnType<typeof userSelfProfilesFactory>;\ntype Custom = NonNullable<Cfg['customOperation']>;\ntype Core = Cfg['coreOperations'][number];\ntype Main = Cfg['mainSchema'];\n\nconst userSelfProfilesResourceUIBehavior = userSelfProfilesResourceUIBehaviorSource as ResourceUIBehaviorConfig<\n Custom,\n Core,\n Main\n>;\n\nexport const userSelfProfilesResourceSpecification = resourceSpecificationFromFrontendConfiguration(\n resourceFrontendConfiguration(userSelfProfilesResourceUIBehavior),\n resourceSpecification(\n userSelfProfilesFactory,\n UserProfileSchema,\n ({ schemaShape }) => ({\n purpose: 'Persist the end user’s own profile card: name, avatar, bio, and contact details separate from org-admin `USER_PROFILES`.',\n businessRole: 'Self-scoped profile storage that still follows the same document shape as admin-managed profiles for merging in `UserContext`.',\n lifecycleRole: 'Created on first self-provision, updated through self-service operations, deleted with the user aggregate.',\n audience: LabelAudience.END_USER,\n subDomain: EngineResourceSubDomain.USERS,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'UserProfileSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'userSelfProfilesResourceConfiguration_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: 'USER_SELF_PROFILES',\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 frontendConfigurationSources: [\n {\n packageName: '@wildo-ai/presets-components',\n exportName: 'userSelfProfilesResourceUIBehavior',\n symbolKind: CodeSymbolKind.UI_BEHAVIOR,\n },\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Primary key for the user’s profile document.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n userId: schemaShape.userId.foreignKeySpec({\n meaning: 'Foreign key to the `users` record that owns this self profile document — immutable after create in self-service flows.',\n whyItMatters: 'Scopes profile reads/writes to the signed-in identity so a caller can only self-provision and edit their own profile card, never another user’s.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n firstName: schemaShape.firstName.stringSpec({\n meaning: 'Legal or preferred given name shown across the product.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n lastName: schemaShape.lastName.stringSpec({\n meaning: 'Family name for sorting, directory, and exports.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n displayName: schemaShape.displayName.stringSpec({\n meaning: 'Optional friendly label overriding `firstName`+`lastName` in UI when set.',\n }),\n avatar: schemaShape.avatar.fileSpec({\n meaning: 'Profile avatar — a single uploaded square image (≤ 2 MB, ≤ 1024px) stored as the standard file reference and rendered as a square avatar. Upload-only via the `z_file()` image pipeline; no external-URL branch.',\n }),\n bio: schemaShape.bio.stringSpec({\n meaning: 'Long-form biography. Authored as markdown (source textarea on edit) and rendered as rich markdown on the read view. Hidden on display when empty.',\n }),\n phoneNumber: schemaShape.phoneNumber.stringSpec({\n meaning: 'E.164 phone used for contact and verification flows. Edited via the international phone input (country selector + national number); displayed in formatted international style.',\n semanticRole: 'identifier',\n }),\n title: schemaShape.title.stringSpec({\n meaning: 'Professional title or role label for org directory cards. Hidden on the read view when empty.',\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Load the caller’s profile row for settings and people pickers.',\n outcome: 'Clients receive the structured profile used in avatars, mentions, and HR-style views.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The signed-in user’s own profile document is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The caller has not yet materialized a profile document (none exists until first CREATE).' },\n ],\n idempotent: true,\n },\n [Op.CREATE]: {\n purpose: 'First-time materialization of the self profile after signup when the row does not yet exist.',\n outcome: 'The user has a persisted profile document bound to their `userId`.',\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'A profile document was materialized for the signed-in user and is returned with its server-assigned id.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The profile payload fails schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'A profile document already exists for the signed-in user (profiles are one-per-user; use UPDATE instead).' },\n ],\n idempotent: false,\n examples: [\n {\n title: 'Materialize my own profile after signup',\n request: {\n firstName: 'Ada',\n lastName: 'Lovelace',\n displayName: 'Ada',\n },\n response: {\n _id: 'userprofile_01HX2…',\n userId: 'user_01HX2…',\n firstName: 'Ada',\n lastName: 'Lovelace',\n displayName: 'Ada',\n },\n forStatus: HttpResponseStatusCode.CREATED_201,\n },\n ],\n communications: {\n notification: selfServiceFrontEndSuccessNotification('Acknowledge first profile creation in FRONT_END_SUCCESS toast channel (runtime).'),\n },\n },\n [Op.UPDATE]: {\n purpose: 'Patch profile fields the user is allowed to edit directly.',\n outcome: 'Names, titles, and bio text update without an administrator.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The profile fields were patched and the new state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The edited profile fields fail schema validation.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'The caller has no profile document to update yet (materialize it with CREATE first).' },\n ],\n idempotent: true,\n communications: {\n notification: selfServiceFrontEndSuccessNotification('Acknowledge a generic profile UPDATE via FRONT_END_SUCCESS.'),\n },\n },\n },\n\n businessConstraints: [\n 'The admin counterpart `USER_PROFILES` reuses the same `UserProfileSchema` but with APP_ADMIN roles — do not conflate RLS or audit semantics between the two types.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.USER_SELF },\n ),\n () => ({\n layout: {\n // Flat, sectionless layout (2026-07): the preset dropped the\n // identity/contact/profile section grouping in favour of a single\n // settings-row field list. `sections` is therefore intentionally empty —\n // do NOT re-document identity/contact/profile here unless the preset\n // reintroduces the refs (the structural-slot validator fails otherwise).\n purpose: 'Single flat settings-row list for the self profile — no section grouping.',\n displayPurpose: 'End-user “Profile” settings; a flat label-left / value-right row list.',\n summaryPurpose: 'Compact name + title line for self-profile summaries.',\n sections: {},\n },\n views: {\n [Op.READ]: { purpose: 'Read self profile in settings or onboarding.', whenToUse: 'Default profile tab.' },\n [Op.CREATE]: { purpose: 'Initial profile create wizard / empty state CTA.', whenToUse: 'First-run experiences.' },\n [Op.UPDATE]: { purpose: 'Generic profile edit form host.', whenToUse: 'When multiple fields change in a single save.' },\n },\n }),\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"user-self.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/users/resources/user-self.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAUH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAG3B,mBAAmB,EACnB,UAAU,EAEX,MAAM,uBAAuB,CAAC;AA+B/B,eAAO,MAAM,6BAA6B;;;;;;;;;iCAoUzC,CAAC"}
1
+ {"version":3,"file":"user-self.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/users/resources/user-self.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAUH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAG3B,mBAAmB,EACnB,UAAU,EAEX,MAAM,uBAAuB,CAAC;AA+B/B,eAAO,MAAM,6BAA6B;;;;;;;;;iCAoUzC,CAAC"}
@@ -130,7 +130,7 @@ export const userSelfResourceSpecification = resourceSpecificationFromFrontendCo
130
130
  purpose: 'Return the caller’s own `User` row for account settings and context hydration.',
131
131
  outcome: 'The client can render identity, status, and high-level role posture without org-admin rights.',
132
132
  responseStatuses: [
133
- { code: HttpResponseStatusCode.OK_200, meaning: 'The signed-in user’s own identity row is returned.' },
133
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The signed-in user’s own identity record is returned.' },
134
134
  ],
135
135
  errorScenarios: [
136
136
  { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session, so there is no self identity to resolve.' },
@@ -158,7 +158,7 @@ export const userSelfResourceSpecification = resourceSpecificationFromFrontendCo
158
158
  response: {
159
159
  ...usersApiReferenceExample,
160
160
  userSelfProfile: { displayName: 'Alex Morgan' },
161
- userSelfPreference: { locale: 'en' },
161
+ userSelfPreferences: { locale: 'en' },
162
162
  organizationMembers: [{ _id: 'organization_member_01HX2EXAMPLE' }],
163
163
  },
164
164
  forStatus: HttpResponseStatusCode.OK_200,
@@ -205,9 +205,9 @@ export const userSelfResourceSpecification = resourceSpecificationFromFrontendCo
205
205
  [UserSelf_Operations.DEACTIVATE_ACCOUNT]: {
206
206
  operationId: UserSelf_Operations.DEACTIVATE_ACCOUNT,
207
207
  purpose: 'Temporarily disable access while retaining the identity record.',
208
- outcome: 'The account moves from ACTIVE to INACTIVE and access stops immediately. It remains inactive until the same user calls REACTIVATE_ACCOUNT; there is no scheduled automatic return. INACTIVE is voluntary and distinct from an administrator-imposed SUSPENDED state.',
208
+ outcome: 'The account moves from ACTIVE to INACTIVE and access stops immediately, and REVERSING IT REQUIRES AN ADMINISTRATOR. Deactivating signs the person out and sign-in admits only ACTIVE accounts, so the self-service reactivation verb — which needs a session — can no longer be reached; the route back is the administrative `users | reactivate_user`, which an administrator runs on request with a recorded reason. There is no scheduled automatic return. INACTIVE is voluntary and distinct from an administrator-imposed SUSPENDED state, and the two are lifted by different verbs.',
209
209
  responseStatuses: [
210
- { code: HttpResponseStatusCode.OK_200, meaning: 'The account is in the deactivated state and the updated identity row is returned.' },
210
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The account is in the deactivated state and the updated identity record is returned.' },
211
211
  ],
212
212
  errorScenarios: [
213
213
  { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },
@@ -241,10 +241,10 @@ export const userSelfResourceSpecification = resourceSpecificationFromFrontendCo
241
241
  },
242
242
  [UserSelf_Operations.REACTIVATE_ACCOUNT]: {
243
243
  operationId: UserSelf_Operations.REACTIVATE_ACCOUNT,
244
- purpose: 'Restore access after the signed-in user previously deactivated their own account.',
245
- outcome: 'The account returns from INACTIVE to ACTIVE immediately and normal access resumes under its current roles and authentication policy.',
244
+ purpose: 'Restore access from INACTIVE for a caller who still holds a session. UNREACHABLE after an ordinary self-deactivation, which signs the person out — see the outcome.',
245
+ outcome: 'The account returns from INACTIVE to ACTIVE immediately and normal access resumes under its current roles and authentication policy. NOTE the precondition, because it is the whole story: this verb needs an authenticated session and sign-in admits only ACTIVE accounts, so a person who deactivated their own account cannot reach it. In practice reinstatement is the administrative `users | reactivate_user`; this verb covers a caller whose session outlives the deactivation within the same request cycle, and is retained so the state machine has a self-service inverse rather than as the route a returning person takes.',
246
246
  responseStatuses: [
247
- { code: HttpResponseStatusCode.OK_200, meaning: 'The account returned to the active state and the updated identity row is returned.' },
247
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The account returned to the active state and the updated identity record is returned.' },
248
248
  ],
249
249
  errorScenarios: [
250
250
  { code: HttpResponseStatusCode.UNAUTHORIZED_401, when: 'The request carries no valid authenticated session.' },
@@ -317,8 +317,8 @@ export const userSelfResourceSpecification = resourceSpecificationFromFrontendCo
317
317
  // `USER_SELF_PREFERENCES` — the `UPDATE_PROFILE` / `UPDATE_PREFERENCES` shortcut verbs were
318
318
  // removed on 2026-08-01 (see `businessConstraints` below).
319
319
  // No self-delete view: `DELETE_ACCOUNT` was removed on 2026-08-01 (see the operations block).
320
- [UserSelf_Operations.DEACTIVATE_ACCOUNT]: { purpose: 'Pause access without full deletion.', whenToUse: '“Take a break” or parental controls patterns.' },
321
- [UserSelf_Operations.REACTIVATE_ACCOUNT]: { purpose: 'Return to active from inactive state.', whenToUse: 'Reactivation CTA when policy allows it.' },
320
+ [UserSelf_Operations.DEACTIVATE_ACCOUNT]: { purpose: 'Pause access without full deletion.', whenToUse: '“Take a break” patterns — but tell the person, where they confirm, that returning needs an administrator: deactivating signs them out and only ACTIVE accounts can sign in, so they cannot undo it themselves.' },
321
+ [UserSelf_Operations.REACTIVATE_ACCOUNT]: { purpose: 'Return to active from inactive state.', whenToUse: 'Do NOT surface this as the route back for a returning person — they cannot sign in to reach it. Support surfaces the administrative `users | reactivate_user` instead.' },
322
322
  },
323
323
  }));
324
324
  //# sourceMappingURL=user-self.resource.specification.js.map