@wildo-ai/saas-specifications 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (857) hide show
  1. package/dist/esm/_catalogs/index.d.ts.map +1 -1
  2. package/dist/esm/_catalogs/schema-org/_catalog-spec.shared.schemas.d.ts.map +1 -1
  3. package/dist/esm/_catalogs/schema-org/aggregate-offer.catalog-spec.d.ts.map +1 -1
  4. package/dist/esm/_catalogs/schema-org/aggregate-rating.catalog-spec.d.ts.map +1 -1
  5. package/dist/esm/_catalogs/schema-org/article.catalog-spec.d.ts.map +1 -1
  6. package/dist/esm/_catalogs/schema-org/blog-posting.catalog-spec.d.ts.map +1 -1
  7. package/dist/esm/_catalogs/schema-org/breadcrumb-list.catalog-spec.d.ts.map +1 -1
  8. package/dist/esm/_catalogs/schema-org/faq-page.catalog-spec.d.ts.map +1 -1
  9. package/dist/esm/_catalogs/schema-org/index.d.ts.map +1 -1
  10. package/dist/esm/_catalogs/schema-org/offer.catalog-spec.d.ts.map +1 -1
  11. package/dist/esm/_catalogs/schema-org/organization.catalog-spec.d.ts.map +1 -1
  12. package/dist/esm/_catalogs/schema-org/product.catalog-spec.d.ts.map +1 -1
  13. package/dist/esm/_catalogs/schema-org/review.catalog-spec.d.ts.map +1 -1
  14. package/dist/esm/_catalogs/schema-org/website.catalog-spec.d.ts.map +1 -1
  15. package/dist/esm/_core/assertions/assertion-authored-metadata.schemas.d.ts.map +1 -1
  16. package/dist/esm/_core/assertions/assertion-behaviors.schemas.d.ts.map +1 -1
  17. package/dist/esm/_core/assertions/assertion-references.schemas.d.ts.map +1 -1
  18. package/dist/esm/_core/assertions/assertion-snapshot-validation.d.ts.map +1 -1
  19. package/dist/esm/_core/assertions/assertion-specification.schemas.d.ts.map +1 -1
  20. package/dist/esm/_core/brand/brand-asset.schemas.d.ts.map +1 -1
  21. package/dist/esm/_core/brand/brand-asset.schemas.js.map +1 -1
  22. package/dist/esm/_core/brand/brand-authored-metadata.schemas.d.ts.map +1 -1
  23. package/dist/esm/_core/brand/brand-generation.schemas.d.ts.map +1 -1
  24. package/dist/esm/_core/brand/brand-generation.schemas.js.map +1 -1
  25. package/dist/esm/_core/brand/brand-logo-direction.schemas.d.ts.map +1 -1
  26. package/dist/esm/_core/brand/brand-name.schemas.d.ts.map +1 -1
  27. package/dist/esm/_core/brand/brand-snapshot-validation.d.ts.map +1 -1
  28. package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
  29. package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
  30. package/dist/esm/_core/brand/brand-visual-tone.schemas.d.ts.map +1 -1
  31. package/dist/esm/_core/brand/brand.family-aspects.d.ts.map +1 -1
  32. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  33. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
  34. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
  35. package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
  36. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  37. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  38. package/dist/esm/_core/business-model-lite/business-model-authored-metadata.schemas.d.ts.map +1 -1
  39. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
  40. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
  41. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
  42. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
  43. package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
  44. package/dist/esm/_core/business-model-lite/business-model-references.schemas.d.ts.map +1 -1
  45. package/dist/esm/_core/business-model-lite/business-model.family-aspects.d.ts.map +1 -1
  46. package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
  47. package/dist/esm/_core/business-semantics.specifications.schemas.d.ts.map +1 -1
  48. package/dist/esm/_core/chart-view-specification.schemas.d.ts.map +1 -1
  49. package/dist/esm/_core/compliance-documents/compliance-completeness-statement.schemas.d.ts.map +1 -1
  50. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts +118 -0
  51. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.d.ts.map +1 -1
  52. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js +65 -3
  53. package/dist/esm/_core/compliance-documents/compliance-document-candidate-generation.schemas.js.map +1 -1
  54. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts +498 -7
  55. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.d.ts.map +1 -1
  56. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js +472 -19
  57. package/dist/esm/_core/compliance-documents/compliance-document-candidate.schemas.js.map +1 -1
  58. package/dist/esm/_core/compliance-documents/compliance-documents.family-aspects.d.ts.map +1 -1
  59. package/dist/esm/_core/compliance-documents/document-fact-specification-generation.schemas.d.ts.map +1 -1
  60. package/dist/esm/_core/compliance-documents/processor-register.family-aspects.d.ts.map +1 -1
  61. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +2 -0
  62. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  63. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +2 -0
  64. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  65. package/dist/esm/_core/compliance-documents/required-document-set.schemas.d.ts.map +1 -1
  66. package/dist/esm/_core/composite-view-specification.schemas.d.ts.map +1 -1
  67. package/dist/esm/_core/cross-registry-assertions.d.ts.map +1 -1
  68. package/dist/esm/_core/data-seed-specification.schemas.d.ts.map +1 -1
  69. package/dist/esm/_core/definition-specification-validators.d.ts.map +1 -1
  70. package/dist/esm/_core/definition-specification.schemas.d.ts.map +1 -1
  71. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
  72. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
  73. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  74. package/dist/esm/_core/domain-plan/domain-plan.family-aspects.d.ts.map +1 -1
  75. package/dist/esm/_core/error-message-specification.schemas.d.ts.map +1 -1
  76. package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
  77. package/dist/esm/_core/expert-personas/expert-persona-authored-metadata.schemas.d.ts.map +1 -1
  78. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.d.ts.map +1 -1
  79. package/dist/esm/_core/expert-personas/expert-persona-charter.schemas.js.map +1 -1
  80. package/dist/esm/_core/expert-personas/expert-persona-validation.d.ts.map +1 -1
  81. package/dist/esm/_core/expert-personas/expert-persona-validation.js.map +1 -1
  82. package/dist/esm/_core/expert-personas/expert-role-template.schemas.d.ts.map +1 -1
  83. package/dist/esm/_core/expert-personas/expert-role-template.schemas.js.map +1 -1
  84. package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
  85. package/dist/esm/_core/family-aspects.schemas.d.ts.map +1 -1
  86. package/dist/esm/_core/family-aspects.schemas.js.map +1 -1
  87. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts +9 -9
  88. package/dist/esm/_core/feature-drafts/capability-map-output-set-generation.schemas.d.ts.map +1 -1
  89. package/dist/esm/_core/feature-drafts/capability-map-output-set-validation.d.ts.map +1 -1
  90. package/dist/esm/_core/feature-drafts/capability-map-output-set.schemas.d.ts.map +1 -1
  91. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.d.ts.map +1 -1
  92. package/dist/esm/_core/feature-drafts/feature-drafts.family-aspects.js.map +1 -1
  93. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.d.ts.map +1 -1
  94. package/dist/esm/_core/feature-drafts/feature-specification-drafts-generation.schemas.js.map +1 -1
  95. package/dist/esm/_core/feature-drafts/feature-specification-drafts-validation.d.ts.map +1 -1
  96. package/dist/esm/_core/feature-drafts/feature-specification-drafts.schemas.d.ts.map +1 -1
  97. package/dist/esm/_core/feature-specification.schemas.d.ts.map +1 -1
  98. package/dist/esm/_core/flows-actors-view-specification.schemas.d.ts.map +1 -1
  99. package/dist/esm/_core/frontend-component-specification.schemas.d.ts.map +1 -1
  100. package/dist/esm/_core/full-custom-view-specification.schemas.d.ts.map +1 -1
  101. package/dist/esm/_core/guidance-flow-specification.schemas.d.ts.map +1 -1
  102. package/dist/esm/_core/index.d.ts.map +1 -1
  103. package/dist/esm/_core/index.js.map +1 -1
  104. package/dist/esm/_core/market/feature-benefit.schemas.d.ts.map +1 -1
  105. package/dist/esm/_core/market/inherit-from.d.ts.map +1 -1
  106. package/dist/esm/_core/market/is-benefit-available.d.ts.map +1 -1
  107. package/dist/esm/_core/market/market-alternative.schemas.d.ts.map +1 -1
  108. package/dist/esm/_core/market/market-authored-metadata.schemas.d.ts.map +1 -1
  109. package/dist/esm/_core/market/market-buying-journey.schemas.d.ts.map +1 -1
  110. package/dist/esm/_core/market/market-category.schemas.d.ts.map +1 -1
  111. package/dist/esm/_core/market/market-channel.schemas.d.ts.map +1 -1
  112. package/dist/esm/_core/market/market-context-block.schemas.d.ts.map +1 -1
  113. package/dist/esm/_core/market/market-gain.schemas.d.ts.map +1 -1
  114. package/dist/esm/_core/market/market-generation.schemas.d.ts.map +1 -1
  115. package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
  116. package/dist/esm/_core/market/market-job.schemas.d.ts.map +1 -1
  117. package/dist/esm/_core/market/market-message-template.schemas.d.ts.map +1 -1
  118. package/dist/esm/_core/market/market-objection.schemas.d.ts.map +1 -1
  119. package/dist/esm/_core/market/market-pain.schemas.d.ts.map +1 -1
  120. package/dist/esm/_core/market/market-persona.schemas.d.ts.map +1 -1
  121. package/dist/esm/_core/market/market-positioning.schemas.d.ts.map +1 -1
  122. package/dist/esm/_core/market/market-proof.schemas.d.ts.map +1 -1
  123. package/dist/esm/_core/market/market-references.schemas.d.ts.map +1 -1
  124. package/dist/esm/_core/market/market-scoring.d.ts.map +1 -1
  125. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +18 -18
  126. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  127. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  128. package/dist/esm/_core/market/market-snapshot-validation.d.ts.map +1 -1
  129. package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
  130. package/dist/esm/_core/market/market-snapshot.schemas.d.ts.map +1 -1
  131. package/dist/esm/_core/market/market-tone-of-voice.schemas.d.ts.map +1 -1
  132. package/dist/esm/_core/market/market-trigger.schemas.d.ts.map +1 -1
  133. package/dist/esm/_core/market/market.family-aspects.d.ts.map +1 -1
  134. package/dist/esm/_core/milestone-specification.schemas.d.ts.map +1 -1
  135. package/dist/esm/_core/onboarding-view-specification.schemas.d.ts.map +1 -1
  136. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.d.ts.map +1 -1
  137. package/dist/esm/_core/placement-plan/placement-plan-generation.schemas.js.map +1 -1
  138. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts +22 -16
  139. package/dist/esm/_core/placement-plan/placement-plan-validation.d.ts.map +1 -1
  140. package/dist/esm/_core/placement-plan/placement-plan-validation.js +17 -11
  141. package/dist/esm/_core/placement-plan/placement-plan-validation.js.map +1 -1
  142. package/dist/esm/_core/placement-plan/placement-plan.family-aspects.d.ts.map +1 -1
  143. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts +12 -8
  144. package/dist/esm/_core/placement-plan/placement-plan.schemas.d.ts.map +1 -1
  145. package/dist/esm/_core/placement-plan/placement-plan.schemas.js +12 -8
  146. package/dist/esm/_core/placement-plan/placement-plan.schemas.js.map +1 -1
  147. package/dist/esm/_core/product-specification.schemas.d.ts.map +1 -1
  148. package/dist/esm/_core/provider-specification.schemas.d.ts +16 -0
  149. package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -1
  150. package/dist/esm/_core/provider-specification.schemas.js +0 -20
  151. package/dist/esm/_core/provider-specification.schemas.js.map +1 -1
  152. package/dist/esm/_core/required-features-specification.schemas.d.ts.map +1 -1
  153. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  154. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
  155. package/dist/esm/_core/requirements/requirements-authored-metadata.schemas.d.ts.map +1 -1
  156. package/dist/esm/_core/requirements/requirements-references.schemas.d.ts.map +1 -1
  157. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  158. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
  159. package/dist/esm/_core/requirements/requirements-snapshot-validation.d.ts.map +1 -1
  160. package/dist/esm/_core/requirements/requirements-snapshot-validation.js.map +1 -1
  161. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  162. package/dist/esm/_core/requirements/requirements.family-aspects.d.ts.map +1 -1
  163. package/dist/esm/_core/resource-specification-registry-alignment.d.ts.map +1 -1
  164. package/dist/esm/_core/resource-specification.schemas.d.ts.map +1 -1
  165. package/dist/esm/_core/resource-type-member-name.types.d.ts.map +1 -1
  166. package/dist/esm/_core/roadmap/roadmap-authored-metadata.schemas.d.ts.map +1 -1
  167. package/dist/esm/_core/roadmap/roadmap-phase.schemas.d.ts.map +1 -1
  168. package/dist/esm/_core/roadmap/roadmap-references.schemas.d.ts.map +1 -1
  169. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.d.ts.map +1 -1
  170. package/dist/esm/_core/roadmap/roadmap-snapshot-generation.schemas.js.map +1 -1
  171. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.d.ts.map +1 -1
  172. package/dist/esm/_core/roadmap/roadmap-snapshot-validation.js.map +1 -1
  173. package/dist/esm/_core/roadmap/roadmap-snapshot.schemas.d.ts.map +1 -1
  174. package/dist/esm/_core/roadmap/roadmap.family-aspects.d.ts.map +1 -1
  175. package/dist/esm/_core/role-specification.schemas.d.ts.map +1 -1
  176. package/dist/esm/_core/sidebar-section-specification.schemas.d.ts.map +1 -1
  177. package/dist/esm/_core/system-email-template-specification.schemas.d.ts.map +1 -1
  178. package/dist/esm/_core/translation-slot-specification.schemas.d.ts.map +1 -1
  179. package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
  180. package/dist/esm/_core/utils/family-ref-stamping.d.ts.map +1 -1
  181. package/dist/esm/_core/utils/family-ref-stamping.js.map +1 -1
  182. package/dist/esm/_core/utils/retention-marker-field-specs.d.ts.map +1 -1
  183. package/dist/esm/_core/utils/validate-field-shapes.d.ts.map +1 -1
  184. package/dist/esm/_core/vision/vision-authored-metadata.schemas.d.ts.map +1 -1
  185. package/dist/esm/_core/vision/vision-constraint.schemas.d.ts.map +1 -1
  186. package/dist/esm/_core/vision/vision-idea.schemas.d.ts.map +1 -1
  187. package/dist/esm/_core/vision/vision-mission.schemas.d.ts.map +1 -1
  188. package/dist/esm/_core/vision/vision-problem.schemas.d.ts.map +1 -1
  189. package/dist/esm/_core/vision/vision-references.schemas.d.ts.map +1 -1
  190. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.d.ts.map +1 -1
  191. package/dist/esm/_core/vision/vision-snapshot-generation.schemas.js.map +1 -1
  192. package/dist/esm/_core/vision/vision-snapshot-validation.d.ts.map +1 -1
  193. package/dist/esm/_core/vision/vision-snapshot.schemas.d.ts.map +1 -1
  194. package/dist/esm/_core/vision/vision-success-criterion.schemas.d.ts.map +1 -1
  195. package/dist/esm/_core/vision/vision.family-aspects.d.ts.map +1 -1
  196. package/dist/esm/application-creation/application-coding-tasks.application-creation.schemas.d.ts.map +1 -1
  197. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.d.ts.map +1 -1
  198. package/dist/esm/application-creation/application-document-fact-specification.application-creation.schemas.js.map +1 -1
  199. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.d.ts.map +1 -1
  200. package/dist/esm/application-creation/application-document-release-policy-specification.application-creation.schemas.js.map +1 -1
  201. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.d.ts.map +1 -1
  202. package/dist/esm/application-creation/application-specification-family-identity.application-creation.schemas.js.map +1 -1
  203. package/dist/esm/application-creation/document-facts.family-aspects.d.ts.map +1 -1
  204. package/dist/esm/application-creation/document-release-policy.family-aspects.d.ts.map +1 -1
  205. package/dist/esm/application-creation/domain-plan-evaluation-identities.application-creation.definitions.d.ts.map +1 -1
  206. package/dist/esm/application-creation/journey.application-creation.schemas.d.ts.map +1 -1
  207. package/dist/esm/application-creation/journey.application-creation.schemas.js.map +1 -1
  208. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +8 -0
  209. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  210. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +8 -0
  211. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  212. package/dist/esm/application-creation/specification-content-validation-state.application-creation.schemas.d.ts.map +1 -1
  213. package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
  214. package/dist/esm/application-creation-playbook-runtime.exports.d.ts.map +1 -1
  215. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  216. package/dist/esm/assurance/application-document-publication.schemas.d.ts.map +1 -1
  217. package/dist/esm/assurance/application-document-publication.schemas.js.map +1 -1
  218. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +11 -0
  219. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts.map +1 -1
  220. package/dist/esm/assurance/assurance-authority-basis.definitions.js +37 -4
  221. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  222. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts +2 -2
  223. package/dist/esm/assurance/assurance-authority-basis.schemas.d.ts.map +1 -1
  224. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts +30 -0
  225. package/dist/esm/assurance/assurance-document-blueprint-selection.d.ts.map +1 -1
  226. package/dist/esm/assurance/assurance-document-blueprint-selection.js +40 -0
  227. package/dist/esm/assurance/assurance-document-blueprint-selection.js.map +1 -1
  228. package/dist/esm/assurance/assurance-document-system.definitions.d.ts.map +1 -1
  229. package/dist/esm/assurance/assurance-document-system.schemas.d.ts.map +1 -1
  230. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts +22 -9
  231. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  232. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +2002 -29
  233. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  234. package/dist/esm/assurance/assurance-external-framework-mapping.d.ts.map +1 -1
  235. package/dist/esm/assurance/assurance-foundation.schemas.d.ts.map +1 -1
  236. package/dist/esm/assurance/assurance-foundation.schemas.js.map +1 -1
  237. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts +30 -0
  238. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  239. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +40 -0
  240. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  241. package/dist/esm/assurance/assurance-program-generation.schemas.d.ts.map +1 -1
  242. package/dist/esm/assurance/assurance-program-generation.schemas.js.map +1 -1
  243. package/dist/esm/assurance/assurance-program.family-aspects.d.ts.map +1 -1
  244. package/dist/esm/assurance/assurance-program.schemas.d.ts +30 -14
  245. package/dist/esm/assurance/assurance-program.schemas.d.ts.map +1 -1
  246. package/dist/esm/assurance/assurance-program.schemas.js +14 -6
  247. package/dist/esm/assurance/assurance-program.schemas.js.map +1 -1
  248. package/dist/esm/assurance/assurance-source-registry.definitions.d.ts.map +1 -1
  249. package/dist/esm/assurance/assurance-sources.schemas.d.ts.map +1 -1
  250. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  251. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +29 -0
  252. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  253. package/dist/esm/assurance/document-publication.family-aspects.d.ts.map +1 -1
  254. package/dist/esm/assurance.exports.d.ts.map +1 -1
  255. package/dist/esm/companion-exports.d.ts.map +1 -1
  256. package/dist/esm/companion-exports.js.map +1 -1
  257. package/dist/esm/engine/_bootstrap.d.ts.map +1 -1
  258. package/dist/esm/engine/_bootstrap.js.map +1 -1
  259. package/dist/esm/engine/applications/index.d.ts.map +1 -1
  260. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.d.ts.map +1 -1
  261. package/dist/esm/engine/applications/resources/application-api-keys.resource.specification.js.map +1 -1
  262. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.d.ts.map +1 -1
  263. package/dist/esm/engine/applications/resources/application-metadata.resource.specification.js.map +1 -1
  264. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.d.ts.map +1 -1
  265. package/dist/esm/engine/applications/resources/application-oauth-clients.resource.specification.js.map +1 -1
  266. package/dist/esm/engine/applications/resources/application-versions.resource.specification.d.ts.map +1 -1
  267. package/dist/esm/engine/applications/resources/application-versions.resource.specification.js.map +1 -1
  268. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  269. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  270. package/dist/esm/engine/applications/resources/index.d.ts.map +1 -1
  271. package/dist/esm/engine/auth/index.d.ts.map +1 -1
  272. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts +47 -0
  273. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -0
  274. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +355 -0
  275. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -0
  276. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.d.ts.map +1 -1
  277. package/dist/esm/engine/auth/resources/consumable-tokens.resource.specification.js.map +1 -1
  278. package/dist/esm/engine/auth/resources/index.d.ts +1 -0
  279. package/dist/esm/engine/auth/resources/index.d.ts.map +1 -1
  280. package/dist/esm/engine/auth/resources/index.js +1 -0
  281. package/dist/esm/engine/auth/resources/index.js.map +1 -1
  282. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.d.ts.map +1 -1
  283. package/dist/esm/engine/auth/resources/oauth-consent-grants.resource.specification.js.map +1 -1
  284. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.d.ts.map +1 -1
  285. package/dist/esm/engine/auth/resources/organization-api-keys.resource.specification.js.map +1 -1
  286. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.d.ts.map +1 -1
  287. package/dist/esm/engine/auth/resources/organization-oauth-clients.resource.specification.js.map +1 -1
  288. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.d.ts.map +1 -1
  289. package/dist/esm/engine/auth/resources/organization-provider-credentials.resource.specification.js.map +1 -1
  290. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.d.ts.map +1 -1
  291. package/dist/esm/engine/auth/resources/platform-access-grants.resource.specification.js.map +1 -1
  292. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.d.ts.map +1 -1
  293. package/dist/esm/engine/auth/resources/scim-provisioning-config.resource.specification.js.map +1 -1
  294. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.d.ts.map +1 -1
  295. package/dist/esm/engine/auth/resources/scim-tokens.resource.specification.js.map +1 -1
  296. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  297. package/dist/esm/engine/auth/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  298. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.d.ts.map +1 -1
  299. package/dist/esm/engine/auth/resources/siem-export-config.resource.specification.js.map +1 -1
  300. package/dist/esm/engine/auth/resources/sso-config.resource.specification.d.ts.map +1 -1
  301. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js +9 -1
  302. package/dist/esm/engine/auth/resources/sso-config.resource.specification.js.map +1 -1
  303. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts +2 -0
  304. package/dist/esm/engine/auth/resources/sso-connections.resource.specification.d.ts.map +1 -1
  305. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.d.ts.map +1 -1
  306. package/dist/esm/engine/auth/resources/user-provider-credentials.resource.specification.js.map +1 -1
  307. package/dist/esm/engine/billing/index.d.ts.map +1 -1
  308. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.d.ts.map +1 -1
  309. package/dist/esm/engine/billing/resources/billing-accounts.resource.specification.js.map +1 -1
  310. package/dist/esm/engine/billing/resources/billing-api-reference-examples.d.ts.map +1 -1
  311. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.d.ts.map +1 -1
  312. package/dist/esm/engine/billing/resources/credit-pools.resource.specification.js.map +1 -1
  313. package/dist/esm/engine/billing/resources/index.d.ts.map +1 -1
  314. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.d.ts.map +1 -1
  315. package/dist/esm/engine/billing/resources/invoice-refs.resource.specification.js.map +1 -1
  316. package/dist/esm/engine/billing/resources/prices.resource.specification.d.ts.map +1 -1
  317. package/dist/esm/engine/billing/resources/prices.resource.specification.js.map +1 -1
  318. package/dist/esm/engine/billing/resources/products.resource.specification.d.ts.map +1 -1
  319. package/dist/esm/engine/billing/resources/products.resource.specification.js.map +1 -1
  320. package/dist/esm/engine/billing/resources/promotions.resource.specification.d.ts.map +1 -1
  321. package/dist/esm/engine/billing/resources/promotions.resource.specification.js.map +1 -1
  322. package/dist/esm/engine/billing/resources/referrals.resource.specification.d.ts.map +1 -1
  323. package/dist/esm/engine/billing/resources/referrals.resource.specification.js.map +1 -1
  324. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.d.ts.map +1 -1
  325. package/dist/esm/engine/billing/resources/subscriptions.resource.specification.js.map +1 -1
  326. package/dist/esm/engine/billing/resources/usage-records.resource.specification.d.ts.map +1 -1
  327. package/dist/esm/engine/billing/resources/usage-records.resource.specification.js.map +1 -1
  328. package/dist/esm/engine/compliance/index.d.ts.map +1 -1
  329. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts +69 -0
  330. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.d.ts.map +1 -0
  331. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js +316 -0
  332. package/dist/esm/engine/compliance/resources/application-audit-logs.resource.specification.js.map +1 -0
  333. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.d.ts.map +1 -1
  334. package/dist/esm/engine/compliance/resources/audit-logs.resource.specification.js.map +1 -1
  335. package/dist/esm/engine/compliance/resources/index.d.ts +1 -0
  336. package/dist/esm/engine/compliance/resources/index.d.ts.map +1 -1
  337. package/dist/esm/engine/compliance/resources/index.js +1 -0
  338. package/dist/esm/engine/compliance/resources/index.js.map +1 -1
  339. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  340. package/dist/esm/engine/engine-resource-specifications.registry.js +4 -0
  341. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  342. package/dist/esm/engine/engine-resource-sub-domain.d.ts.map +1 -1
  343. package/dist/esm/engine/engine-resource-sub-domain.js.map +1 -1
  344. package/dist/esm/engine/errors/error-messages.specification.d.ts.map +1 -1
  345. package/dist/esm/engine/errors/error-messages.specification.js +19 -0
  346. package/dist/esm/engine/errors/error-messages.specification.js.map +1 -1
  347. package/dist/esm/engine/errors/index.d.ts.map +1 -1
  348. package/dist/esm/engine/features/_engine-feature-shared.d.ts.map +1 -1
  349. package/dist/esm/engine/features/advanced-analytics.feature.specification.d.ts.map +1 -1
  350. package/dist/esm/engine/features/audit-logs.feature.specification.d.ts.map +1 -1
  351. package/dist/esm/engine/features/audit-logs.feature.specification.js.map +1 -1
  352. package/dist/esm/engine/features/core-limits.feature.specifications.d.ts.map +1 -1
  353. package/dist/esm/engine/features/core-limits.feature.specifications.js.map +1 -1
  354. package/dist/esm/engine/features/custom-branding.feature.specification.d.ts.map +1 -1
  355. package/dist/esm/engine/features/directory-provisioning.feature.specification.d.ts.map +1 -1
  356. package/dist/esm/engine/features/index.d.ts.map +1 -1
  357. package/dist/esm/engine/features/m2m-webhook-delivery.feature.specification.d.ts.map +1 -1
  358. package/dist/esm/engine/features/resources/application-features.resource.specification.d.ts.map +1 -1
  359. package/dist/esm/engine/features/resources/application-features.resource.specification.js.map +1 -1
  360. package/dist/esm/engine/features/resources/index.d.ts.map +1 -1
  361. package/dist/esm/engine/features/resources/organization-features.resource.specification.d.ts.map +1 -1
  362. package/dist/esm/engine/features/resources/organization-features.resource.specification.js.map +1 -1
  363. package/dist/esm/engine/features/resources/user-features.resource.specification.d.ts.map +1 -1
  364. package/dist/esm/engine/features/resources/user-features.resource.specification.js.map +1 -1
  365. package/dist/esm/engine/features/security-event-export.feature.specification.d.ts.map +1 -1
  366. package/dist/esm/engine/features/single-sign-on.feature.specification.d.ts.map +1 -1
  367. package/dist/esm/engine/files/index.d.ts.map +1 -1
  368. package/dist/esm/engine/files/resources/files.resource.specification.d.ts.map +1 -1
  369. package/dist/esm/engine/files/resources/files.resource.specification.js +1 -1
  370. package/dist/esm/engine/files/resources/files.resource.specification.js.map +1 -1
  371. package/dist/esm/engine/files/resources/index.d.ts.map +1 -1
  372. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.d.ts.map +1 -1
  373. package/dist/esm/engine/flows-actors/resources/a2a-push-delivery-log.resource.specification.js.map +1 -1
  374. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.d.ts.map +1 -1
  375. package/dist/esm/engine/flows-actors/resources/a2a-token-budget-state.resource.specification.js.map +1 -1
  376. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.d.ts.map +1 -1
  377. package/dist/esm/engine/flows-actors/resources/flow-actor-executions.resource.specification.js.map +1 -1
  378. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.d.ts.map +1 -1
  379. package/dist/esm/engine/frontend-components/actions/action-bar.frontend-component.specification.d.ts.map +1 -1
  380. package/dist/esm/engine/frontend-components/actions/action-button.frontend-component.specification.d.ts.map +1 -1
  381. package/dist/esm/engine/frontend-components/actions/button-group-separator.frontend-component.specification.d.ts.map +1 -1
  382. package/dist/esm/engine/frontend-components/actions/button-group-text.frontend-component.specification.d.ts.map +1 -1
  383. package/dist/esm/engine/frontend-components/actions/button-group.frontend-component.specification.d.ts.map +1 -1
  384. package/dist/esm/engine/frontend-components/actions/button.frontend-component.specification.d.ts.map +1 -1
  385. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-artifact-list.frontend-component.specification.d.ts.map +1 -1
  386. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-artifact.frontend-component.specification.d.ts.map +1 -1
  387. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-code-block.frontend-component.specification.d.ts.map +1 -1
  388. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-image.frontend-component.specification.d.ts.map +1 -1
  389. package/dist/esm/engine/frontend-components/ai-elements/artifacts/ai-web-preview.frontend-component.specification.d.ts.map +1 -1
  390. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation.frontend-component.specification.d.ts.map +1 -1
  391. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-message.frontend-component.specification.d.ts.map +1 -1
  392. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-prompt-input.frontend-component.specification.d.ts.map +1 -1
  393. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-sources.frontend-component.specification.d.ts.map +1 -1
  394. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-suggestion.frontend-component.specification.d.ts.map +1 -1
  395. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-suggestions.frontend-component.specification.d.ts.map +1 -1
  396. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-queue.frontend-component.specification.d.ts.map +1 -1
  397. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-approval-request.frontend-component.specification.d.ts.map +1 -1
  398. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-decision-request.frontend-component.specification.d.ts.map +1 -1
  399. package/dist/esm/engine/frontend-components/ai-elements/decision/ai-human-input-request.frontend-component.specification.d.ts.map +1 -1
  400. package/dist/esm/engine/frontend-components/ai-elements/execution/ai-confirmation.frontend-component.specification.d.ts.map +1 -1
  401. package/dist/esm/engine/frontend-components/ai-elements/execution/ai-queue.frontend-component.specification.d.ts.map +1 -1
  402. package/dist/esm/engine/frontend-components/ai-elements/execution/ai-task.frontend-component.specification.d.ts.map +1 -1
  403. package/dist/esm/engine/frontend-components/ai-elements/execution/ai-tool.frontend-component.specification.d.ts.map +1 -1
  404. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-canvas.frontend-component.specification.d.ts.map +1 -1
  405. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-connection.frontend-component.specification.d.ts.map +1 -1
  406. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-controls.frontend-component.specification.d.ts.map +1 -1
  407. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-edge.frontend-component.specification.d.ts.map +1 -1
  408. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-node.frontend-component.specification.d.ts.map +1 -1
  409. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-panel.frontend-component.specification.d.ts.map +1 -1
  410. package/dist/esm/engine/frontend-components/ai-elements/graph/ai-toolbar.frontend-component.specification.d.ts.map +1 -1
  411. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-capabilities.frontend-component.specification.d.ts.map +1 -1
  412. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-card.frontend-component.specification.d.ts.map +1 -1
  413. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-list.frontend-component.specification.d.ts.map +1 -1
  414. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-agent-prompt-spec.frontend-component.specification.d.ts.map +1 -1
  415. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-context.frontend-component.specification.d.ts.map +1 -1
  416. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-model-selector.frontend-component.specification.d.ts.map +1 -1
  417. package/dist/esm/engine/frontend-components/ai-elements/meta/ai-open-in-chat.frontend-component.specification.d.ts.map +1 -1
  418. package/dist/esm/engine/frontend-components/ai-elements/shared/ai-loader.frontend-component.specification.d.ts.map +1 -1
  419. package/dist/esm/engine/frontend-components/ai-elements/shared/ai-shimmer.frontend-component.specification.d.ts.map +1 -1
  420. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-chain-of-thought.frontend-component.specification.d.ts.map +1 -1
  421. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-checkpoint.frontend-component.specification.d.ts.map +1 -1
  422. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-inline-citation.frontend-component.specification.d.ts.map +1 -1
  423. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-plan.frontend-component.specification.d.ts.map +1 -1
  424. package/dist/esm/engine/frontend-components/ai-elements/trace/ai-reasoning.frontend-component.specification.d.ts.map +1 -1
  425. package/dist/esm/engine/frontend-components/app/app-layout-appearance-settings.frontend-component.specification.d.ts.map +1 -1
  426. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  427. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  428. package/dist/esm/engine/frontend-components/app/app-layout-error-boundary.frontend-component.specification.d.ts.map +1 -1
  429. package/dist/esm/engine/frontend-components/app/app-layout-home.frontend-component.specification.d.ts.map +1 -1
  430. package/dist/esm/engine/frontend-components/app/app-layout-invitations-settings.frontend-component.specification.d.ts.map +1 -1
  431. package/dist/esm/engine/frontend-components/app/app-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  432. package/dist/esm/engine/frontend-components/app/app-layout-router-error-boundary.frontend-component.specification.d.ts.map +1 -1
  433. package/dist/esm/engine/frontend-components/app/app-layout-settings-hub.frontend-component.specification.d.ts.map +1 -1
  434. package/dist/esm/engine/frontend-components/app/app-layouts-test-component.frontend-component.specification.d.ts.map +1 -1
  435. package/dist/esm/engine/frontend-components/app/lifecycle-home-activation-progress.frontend-component.specification.d.ts.map +1 -1
  436. package/dist/esm/engine/frontend-components/app/lifecycle-home-dashboard.frontend-component.specification.d.ts.map +1 -1
  437. package/dist/esm/engine/frontend-components/app/lifecycle-home-welcome-back.frontend-component.specification.d.ts.map +1 -1
  438. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.d.ts.map +1 -1
  439. package/dist/esm/engine/frontend-components/app/public-layout-file-upload-grant.frontend-component.specification.js.map +1 -1
  440. package/dist/esm/engine/frontend-components/app/public-layout-main-container.frontend-component.specification.d.ts.map +1 -1
  441. package/dist/esm/engine/frontend-components/app/public-layout-static-content-container.frontend-component.specification.d.ts.map +1 -1
  442. package/dist/esm/engine/frontend-components/app/public-layout-terms.frontend-component.specification.d.ts.map +1 -1
  443. package/dist/esm/engine/frontend-components/auth/admin-config/app-page-security-settings.frontend-component.specification.d.ts.map +1 -1
  444. package/dist/esm/engine/frontend-components/auth/public-layout-auth-callback.frontend-component.specification.d.ts.map +1 -1
  445. package/dist/esm/engine/frontend-components/auth/public-layout-enrollment-required.frontend-component.specification.d.ts.map +1 -1
  446. package/dist/esm/engine/frontend-components/auth/public-layout-magic-link-verify.frontend-component.specification.d.ts.map +1 -1
  447. package/dist/esm/engine/frontend-components/auth/public-layout-mfa-challenge.frontend-component.specification.d.ts.map +1 -1
  448. package/dist/esm/engine/frontend-components/auth/public-layout-oauth-consent.frontend-component.specification.d.ts.map +1 -1
  449. package/dist/esm/engine/frontend-components/auth/public-layout-oauth-logged-out.frontend-component.specification.d.ts.map +1 -1
  450. package/dist/esm/engine/frontend-components/auth/public-layout-oauth-logout-confirm.frontend-component.specification.d.ts.map +1 -1
  451. package/dist/esm/engine/frontend-components/auth/public-layout-one-off-session.frontend-component.specification.d.ts.map +1 -1
  452. package/dist/esm/engine/frontend-components/auth/public-layout-user-auth.frontend-component.specification.d.ts.map +1 -1
  453. package/dist/esm/engine/frontend-components/auth/public-layout-user-confirm-email.frontend-component.specification.d.ts.map +1 -1
  454. package/dist/esm/engine/frontend-components/auth/public-layout-user-invitation.frontend-component.specification.d.ts.map +1 -1
  455. package/dist/esm/engine/frontend-components/auth/public-layout-user-password-lost.frontend-component.specification.d.ts.map +1 -1
  456. package/dist/esm/engine/frontend-components/auth/public-layout-user-register.frontend-component.specification.d.ts.map +1 -1
  457. package/dist/esm/engine/frontend-components/billing/billing-invoice-history.frontend-component.specification.d.ts.map +1 -1
  458. package/dist/esm/engine/frontend-components/billing/billing-portal-link.frontend-component.specification.d.ts.map +1 -1
  459. package/dist/esm/engine/frontend-components/billing/billing-pricing-table.frontend-component.specification.d.ts.map +1 -1
  460. package/dist/esm/engine/frontend-components/billing/billing-subscription-status.frontend-component.specification.d.ts.map +1 -1
  461. package/dist/esm/engine/frontend-components/billing/billing-usage-dashboard.frontend-component.specification.d.ts.map +1 -1
  462. package/dist/esm/engine/frontend-components/data-display/avatar.frontend-component.specification.d.ts.map +1 -1
  463. package/dist/esm/engine/frontend-components/data-display/badge.frontend-component.specification.d.ts.map +1 -1
  464. package/dist/esm/engine/frontend-components/data-display/description-details.frontend-component.specification.d.ts.map +1 -1
  465. package/dist/esm/engine/frontend-components/data-display/description-list.frontend-component.specification.d.ts.map +1 -1
  466. package/dist/esm/engine/frontend-components/data-display/description-term.frontend-component.specification.d.ts.map +1 -1
  467. package/dist/esm/engine/frontend-components/data-display/formatters/_display-field-spec.factory.d.ts.map +1 -1
  468. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-bigdecimal.frontend-component.specification.d.ts.map +1 -1
  469. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-boolean.frontend-component.specification.d.ts.map +1 -1
  470. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-code.frontend-component.specification.d.ts.map +1 -1
  471. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-date.frontend-component.specification.d.ts.map +1 -1
  472. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-datetime.frontend-component.specification.d.ts.map +1 -1
  473. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-duration.frontend-component.specification.d.ts.map +1 -1
  474. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-enum.frontend-component.specification.d.ts.map +1 -1
  475. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-audio.frontend-component.specification.d.ts.map +1 -1
  476. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-document.frontend-component.specification.d.ts.map +1 -1
  477. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-gallery.frontend-component.specification.d.ts.map +1 -1
  478. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-image.frontend-component.specification.d.ts.map +1 -1
  479. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file-video.frontend-component.specification.d.ts.map +1 -1
  480. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file.frontend-component.specification.d.ts.map +1 -1
  481. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-foreign-key.frontend-component.specification.d.ts.map +1 -1
  482. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-money.extra-props.d.ts.map +1 -1
  483. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-money.frontend-component.specification.d.ts.map +1 -1
  484. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-number.frontend-component.specification.d.ts.map +1 -1
  485. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-phone.frontend-component.specification.d.ts.map +1 -1
  486. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-bigdecimal.frontend-component.specification.d.ts.map +1 -1
  487. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-date.frontend-component.specification.d.ts.map +1 -1
  488. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-datetime.frontend-component.specification.d.ts.map +1 -1
  489. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-money.frontend-component.specification.d.ts.map +1 -1
  490. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-number.frontend-component.specification.d.ts.map +1 -1
  491. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-range-time.frontend-component.specification.d.ts.map +1 -1
  492. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-string.frontend-component.specification.d.ts.map +1 -1
  493. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-time.frontend-component.specification.d.ts.map +1 -1
  494. package/dist/esm/engine/frontend-components/data-display/notification-indicator.frontend-component.specification.d.ts.map +1 -1
  495. package/dist/esm/engine/frontend-components/feedback/celebration-overlay.frontend-component.specification.d.ts.map +1 -1
  496. package/dist/esm/engine/frontend-components/feedback/danger-zone.frontend-component.specification.d.ts.map +1 -1
  497. package/dist/esm/engine/frontend-components/feedback/empty-state.frontend-component.specification.d.ts.map +1 -1
  498. package/dist/esm/engine/frontend-components/feedback/error-display.frontend-component.specification.d.ts.map +1 -1
  499. package/dist/esm/engine/frontend-components/feedback/features/feature-limit-indicator.frontend-component.specification.d.ts.map +1 -1
  500. package/dist/esm/engine/frontend-components/feedback/features/feature-lock-badge.frontend-component.specification.d.ts.map +1 -1
  501. package/dist/esm/engine/frontend-components/feedback/features/feature-unavailable-dialog.frontend-component.specification.d.ts.map +1 -1
  502. package/dist/esm/engine/frontend-components/feedback/features/feature-unavailable-prompt.frontend-component.specification.d.ts.map +1 -1
  503. package/dist/esm/engine/frontend-components/feedback/loading-overlay.frontend-component.specification.d.ts.map +1 -1
  504. package/dist/esm/engine/frontend-components/feedback/loading-spinner.frontend-component.specification.d.ts.map +1 -1
  505. package/dist/esm/engine/frontend-components/feedback/operations-confirm-critical.frontend-component.specification.d.ts.map +1 -1
  506. package/dist/esm/engine/frontend-components/feedback/progress.frontend-component.specification.d.ts.map +1 -1
  507. package/dist/esm/engine/frontend-components/feedback/skeleton.frontend-component.specification.d.ts.map +1 -1
  508. package/dist/esm/engine/frontend-components/feedback/toast.frontend-component.specification.d.ts.map +1 -1
  509. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-actor.frontend-component.specification.d.ts.map +1 -1
  510. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-agent-config.frontend-component.specification.d.ts.map +1 -1
  511. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.d.ts.map +1 -1
  512. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  513. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  514. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-artifact-browser.frontend-component.specification.d.ts.map +1 -1
  515. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-decision.frontend-component.specification.d.ts.map +1 -1
  516. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-plan.frontend-component.specification.d.ts.map +1 -1
  517. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-execution-stream.frontend-component.specification.d.ts.map +1 -1
  518. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-execution.frontend-component.specification.d.ts.map +1 -1
  519. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-flow-node.frontend-component.specification.d.ts.map +1 -1
  520. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-system-catalog.frontend-component.specification.d.ts.map +1 -1
  521. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-task-detail.frontend-component.specification.d.ts.map +1 -1
  522. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-task-memory.frontend-component.specification.d.ts.map +1 -1
  523. package/dist/esm/engine/frontend-components/form/_framework-layout-form-field-spec.factory.d.ts.map +1 -1
  524. package/dist/esm/engine/frontend-components/form/_low-level-preset-wrapper-spec.factory.d.ts.map +1 -1
  525. package/dist/esm/engine/frontend-components/form/autosave-indicator.frontend-component.specification.d.ts.map +1 -1
  526. package/dist/esm/engine/frontend-components/form/chromes/field-content.frontend-component.specification.d.ts.map +1 -1
  527. package/dist/esm/engine/frontend-components/form/chromes/field-description.frontend-component.specification.d.ts.map +1 -1
  528. package/dist/esm/engine/frontend-components/form/chromes/field-error.frontend-component.specification.d.ts.map +1 -1
  529. package/dist/esm/engine/frontend-components/form/chromes/field-label.frontend-component.specification.d.ts.map +1 -1
  530. package/dist/esm/engine/frontend-components/form/chromes/field-separator.frontend-component.specification.d.ts.map +1 -1
  531. package/dist/esm/engine/frontend-components/form/chromes/field-title.frontend-component.specification.d.ts.map +1 -1
  532. package/dist/esm/engine/frontend-components/form/chromes/field.frontend-component.specification.d.ts.map +1 -1
  533. package/dist/esm/engine/frontend-components/form/chromes/form-control.frontend-component.specification.d.ts.map +1 -1
  534. package/dist/esm/engine/frontend-components/form/chromes/form-description.frontend-component.specification.d.ts.map +1 -1
  535. package/dist/esm/engine/frontend-components/form/chromes/form-field.frontend-component.specification.d.ts.map +1 -1
  536. package/dist/esm/engine/frontend-components/form/chromes/form-item.frontend-component.specification.d.ts.map +1 -1
  537. package/dist/esm/engine/frontend-components/form/chromes/form-label.frontend-component.specification.d.ts.map +1 -1
  538. package/dist/esm/engine/frontend-components/form/chromes/form-message.frontend-component.specification.d.ts.map +1 -1
  539. package/dist/esm/engine/frontend-components/form/chromes/form-root.frontend-component.specification.d.ts.map +1 -1
  540. package/dist/esm/engine/frontend-components/form/combobox-multiple.frontend-component.specification.d.ts.map +1 -1
  541. package/dist/esm/engine/frontend-components/form/combobox.frontend-component.specification.d.ts.map +1 -1
  542. package/dist/esm/engine/frontend-components/form/controls/boolean/checkbox.frontend-component.specification.d.ts.map +1 -1
  543. package/dist/esm/engine/frontend-components/form/controls/boolean/switch.frontend-component.specification.d.ts.map +1 -1
  544. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle-group-boolean.frontend-component.specification.d.ts.map +1 -1
  545. package/dist/esm/engine/frontend-components/form/controls/boolean/toggle.frontend-component.specification.d.ts.map +1 -1
  546. package/dist/esm/engine/frontend-components/form/controls/date-time/calendar-day-button.frontend-component.specification.d.ts.map +1 -1
  547. package/dist/esm/engine/frontend-components/form/controls/date-time/calendar.frontend-component.specification.d.ts.map +1 -1
  548. package/dist/esm/engine/frontend-components/form/controls/date-time/date-range-picker.frontend-component.specification.d.ts.map +1 -1
  549. package/dist/esm/engine/frontend-components/form/controls/date-time/datepicker.frontend-component.specification.d.ts.map +1 -1
  550. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-picker.frontend-component.specification.d.ts.map +1 -1
  551. package/dist/esm/engine/frontend-components/form/controls/date-time/datetime-range-picker.frontend-component.specification.d.ts.map +1 -1
  552. package/dist/esm/engine/frontend-components/form/controls/date-time/time-picker.frontend-component.specification.d.ts.map +1 -1
  553. package/dist/esm/engine/frontend-components/form/controls/date-time/time-range-picker.frontend-component.specification.d.ts.map +1 -1
  554. package/dist/esm/engine/frontend-components/form/controls/enum/radio-group.frontend-component.specification.d.ts.map +1 -1
  555. package/dist/esm/engine/frontend-components/form/controls/enum/radio-item.frontend-component.specification.d.ts.map +1 -1
  556. package/dist/esm/engine/frontend-components/form/controls/enum/select-multiple.frontend-component.specification.d.ts.map +1 -1
  557. package/dist/esm/engine/frontend-components/form/controls/enum/select.frontend-component.specification.d.ts.map +1 -1
  558. package/dist/esm/engine/frontend-components/form/controls/enum/toggle-group.frontend-component.specification.d.ts.map +1 -1
  559. package/dist/esm/engine/frontend-components/form/controls/file/file-upload.frontend-component.specification.d.ts.map +1 -1
  560. package/dist/esm/engine/frontend-components/form/controls/file/image-crop.frontend-component.specification.d.ts.map +1 -1
  561. package/dist/esm/engine/frontend-components/form/controls/input-group-addon.frontend-component.specification.d.ts.map +1 -1
  562. package/dist/esm/engine/frontend-components/form/controls/input-group-button.frontend-component.specification.d.ts.map +1 -1
  563. package/dist/esm/engine/frontend-components/form/controls/input-group-input.frontend-component.specification.d.ts.map +1 -1
  564. package/dist/esm/engine/frontend-components/form/controls/input-group-text.frontend-component.specification.d.ts.map +1 -1
  565. package/dist/esm/engine/frontend-components/form/controls/input-group-textarea.frontend-component.specification.d.ts.map +1 -1
  566. package/dist/esm/engine/frontend-components/form/controls/input-group.frontend-component.specification.d.ts.map +1 -1
  567. package/dist/esm/engine/frontend-components/form/controls/input.frontend-component.specification.d.ts.map +1 -1
  568. package/dist/esm/engine/frontend-components/form/controls/number/range-slider.frontend-component.specification.d.ts.map +1 -1
  569. package/dist/esm/engine/frontend-components/form/controls/number/slider.frontend-component.specification.d.ts.map +1 -1
  570. package/dist/esm/engine/frontend-components/form/controls/string/color-input.frontend-component.specification.d.ts.map +1 -1
  571. package/dist/esm/engine/frontend-components/form/controls/string/input-otp.frontend-component.specification.d.ts.map +1 -1
  572. package/dist/esm/engine/frontend-components/form/controls/string/markdown-editor.frontend-component.specification.d.ts.map +1 -1
  573. package/dist/esm/engine/frontend-components/form/controls/string/password-input.frontend-component.specification.d.ts.map +1 -1
  574. package/dist/esm/engine/frontend-components/form/controls/string/textarea.frontend-component.specification.d.ts.map +1 -1
  575. package/dist/esm/engine/frontend-components/form/fields/form-field-bigdecimal.frontend-component.specification.d.ts.map +1 -1
  576. package/dist/esm/engine/frontend-components/form/fields/form-field-boolean.frontend-component.specification.d.ts.map +1 -1
  577. package/dist/esm/engine/frontend-components/form/fields/form-field-code.frontend-component.specification.d.ts.map +1 -1
  578. package/dist/esm/engine/frontend-components/form/fields/form-field-date.frontend-component.specification.d.ts.map +1 -1
  579. package/dist/esm/engine/frontend-components/form/fields/form-field-datetime.frontend-component.specification.d.ts.map +1 -1
  580. package/dist/esm/engine/frontend-components/form/fields/form-field-duration.frontend-component.specification.d.ts.map +1 -1
  581. package/dist/esm/engine/frontend-components/form/fields/form-field-enum.frontend-component.specification.d.ts.map +1 -1
  582. package/dist/esm/engine/frontend-components/form/fields/form-field-file.frontend-component.specification.d.ts.map +1 -1
  583. package/dist/esm/engine/frontend-components/form/fields/form-field-money.frontend-component.specification.d.ts.map +1 -1
  584. package/dist/esm/engine/frontend-components/form/fields/form-field-number.frontend-component.specification.d.ts.map +1 -1
  585. package/dist/esm/engine/frontend-components/form/fields/form-field-phone.frontend-component.specification.d.ts.map +1 -1
  586. package/dist/esm/engine/frontend-components/form/fields/form-field-range-bigdecimal.frontend-component.specification.d.ts.map +1 -1
  587. package/dist/esm/engine/frontend-components/form/fields/form-field-range-date.frontend-component.specification.d.ts.map +1 -1
  588. package/dist/esm/engine/frontend-components/form/fields/form-field-range-datetime.frontend-component.specification.d.ts.map +1 -1
  589. package/dist/esm/engine/frontend-components/form/fields/form-field-range-money.frontend-component.specification.d.ts.map +1 -1
  590. package/dist/esm/engine/frontend-components/form/fields/form-field-range-number.frontend-component.specification.d.ts.map +1 -1
  591. package/dist/esm/engine/frontend-components/form/fields/form-field-range-time.frontend-component.specification.d.ts.map +1 -1
  592. package/dist/esm/engine/frontend-components/form/fields/form-field-string.frontend-component.specification.d.ts.map +1 -1
  593. package/dist/esm/engine/frontend-components/form/fields/form-field-time.frontend-component.specification.d.ts.map +1 -1
  594. package/dist/esm/engine/frontend-components/form/form-field-foreign-key.frontend-component.specification.d.ts.map +1 -1
  595. package/dist/esm/engine/frontend-components/guidance/guidance-announcement.frontend-component.specification.d.ts.map +1 -1
  596. package/dist/esm/engine/frontend-components/guidance/guidance-badge.frontend-component.specification.d.ts.map +1 -1
  597. package/dist/esm/engine/frontend-components/guidance/guidance-banner.frontend-component.specification.d.ts.map +1 -1
  598. package/dist/esm/engine/frontend-components/guidance/guidance-card.frontend-component.specification.d.ts.map +1 -1
  599. package/dist/esm/engine/frontend-components/guidance/guidance-checklist-item.frontend-component.specification.d.ts.map +1 -1
  600. package/dist/esm/engine/frontend-components/guidance/guidance-checklist.frontend-component.specification.d.ts.map +1 -1
  601. package/dist/esm/engine/frontend-components/guidance/guidance-modal.frontend-component.specification.d.ts.map +1 -1
  602. package/dist/esm/engine/frontend-components/guidance/guidance-onboarding-view.frontend-component.specification.d.ts.map +1 -1
  603. package/dist/esm/engine/frontend-components/guidance/guidance-survey.frontend-component.specification.d.ts.map +1 -1
  604. package/dist/esm/engine/frontend-components/guidance/guidance-tooltip.frontend-component.specification.d.ts.map +1 -1
  605. package/dist/esm/engine/frontend-components/guidance/guidance-tour.frontend-component.specification.d.ts.map +1 -1
  606. package/dist/esm/engine/frontend-components/high-level-views/chart-echarts.frontend-component.specification.d.ts.map +1 -1
  607. package/dist/esm/engine/frontend-components/high-level-views/chart-widget.frontend-component.specification.d.ts.map +1 -1
  608. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart.frontend-component.specification.d.ts.map +1 -1
  609. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-composite.frontend-component.specification.d.ts.map +1 -1
  610. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-execution.frontend-component.specification.d.ts.map +1 -1
  611. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-flows-actors.frontend-component.specification.d.ts.map +1 -1
  612. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-full-custom.frontend-component.specification.d.ts.map +1 -1
  613. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-not-found.frontend-component.specification.d.ts.map +1 -1
  614. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  615. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  616. package/dist/esm/engine/frontend-components/internal/_tier2-virtual-slot-spec.factory.d.ts.map +1 -1
  617. package/dist/esm/engine/frontend-components/layout/aspect-ratio.frontend-component.specification.d.ts.map +1 -1
  618. package/dist/esm/engine/frontend-components/layout/carousel.frontend-component.specification.d.ts.map +1 -1
  619. package/dist/esm/engine/frontend-components/layout/divider.frontend-component.specification.d.ts.map +1 -1
  620. package/dist/esm/engine/frontend-components/layout/resizable-panel-group.frontend-component.specification.d.ts.map +1 -1
  621. package/dist/esm/engine/frontend-components/layout/scroll-area.frontend-component.specification.d.ts.map +1 -1
  622. package/dist/esm/engine/frontend-components/layout/separator.frontend-component.specification.d.ts.map +1 -1
  623. package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-container.frontend-component.specification.d.ts.map +1 -1
  624. package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-group.frontend-component.specification.d.ts.map +1 -1
  625. package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section-legend.frontend-component.specification.d.ts.map +1 -1
  626. package/dist/esm/engine/frontend-components/layout-internals/low-level-content-section.frontend-component.specification.d.ts.map +1 -1
  627. package/dist/esm/engine/frontend-components/layout-internals/low-level-overlay-container.frontend-component.specification.d.ts.map +1 -1
  628. package/dist/esm/engine/frontend-components/navigation/app-level/activity-bar.frontend-component.specification.d.ts.map +1 -1
  629. package/dist/esm/engine/frontend-components/navigation/app-level/command-menu.frontend-component.specification.d.ts.map +1 -1
  630. package/dist/esm/engine/frontend-components/navigation/app-level/control-panel.frontend-component.specification.d.ts.map +1 -1
  631. package/dist/esm/engine/frontend-components/navigation/app-level/menubar.frontend-component.specification.d.ts.map +1 -1
  632. package/dist/esm/engine/frontend-components/navigation/app-level/navigation-back.frontend-component.specification.d.ts.map +1 -1
  633. package/dist/esm/engine/frontend-components/navigation/app-level/notification-center.frontend-component.specification.d.ts.map +1 -1
  634. package/dist/esm/engine/frontend-components/navigation/app-level/quick-action-button.frontend-component.specification.d.ts.map +1 -1
  635. package/dist/esm/engine/frontend-components/navigation/app-level/quick-switcher.frontend-component.specification.d.ts.map +1 -1
  636. package/dist/esm/engine/frontend-components/navigation/app-level/sidebar.frontend-component.specification.d.ts.map +1 -1
  637. package/dist/esm/engine/frontend-components/navigation/app-level/status-bar.frontend-component.specification.d.ts.map +1 -1
  638. package/dist/esm/engine/frontend-components/navigation/app-level/toolbar.frontend-component.specification.d.ts.map +1 -1
  639. package/dist/esm/engine/frontend-components/navigation/app-level/user-dropdown.frontend-component.specification.d.ts.map +1 -1
  640. package/dist/esm/engine/frontend-components/navigation/app-level/utility-panel.frontend-component.specification.d.ts.map +1 -1
  641. package/dist/esm/engine/frontend-components/navigation/breadcrumb.frontend-component.specification.d.ts.map +1 -1
  642. package/dist/esm/engine/frontend-components/navigation/command.frontend-component.specification.d.ts.map +1 -1
  643. package/dist/esm/engine/frontend-components/navigation/menu-bar.frontend-component.specification.d.ts.map +1 -1
  644. package/dist/esm/engine/frontend-components/navigation/navbar.frontend-component.specification.d.ts.map +1 -1
  645. package/dist/esm/engine/frontend-components/navigation/sidebar.frontend-component.specification.d.ts.map +1 -1
  646. package/dist/esm/engine/frontend-components/overlays/containers/alert-dialog.frontend-component.specification.d.ts.map +1 -1
  647. package/dist/esm/engine/frontend-components/overlays/containers/alert.frontend-component.specification.d.ts.map +1 -1
  648. package/dist/esm/engine/frontend-components/overlays/containers/dialog.frontend-component.specification.d.ts.map +1 -1
  649. package/dist/esm/engine/frontend-components/overlays/containers/drawer.frontend-component.specification.d.ts.map +1 -1
  650. package/dist/esm/engine/frontend-components/overlays/containers/sheet.frontend-component.specification.d.ts.map +1 -1
  651. package/dist/esm/engine/frontend-components/overlays/floating/context-menu.frontend-component.specification.d.ts.map +1 -1
  652. package/dist/esm/engine/frontend-components/overlays/floating/dropdown-menu.frontend-component.specification.d.ts.map +1 -1
  653. package/dist/esm/engine/frontend-components/overlays/floating/hover-card.frontend-component.specification.d.ts.map +1 -1
  654. package/dist/esm/engine/frontend-components/overlays/floating/popover.frontend-component.specification.d.ts.map +1 -1
  655. package/dist/esm/engine/frontend-components/overlays/floating/tooltip.frontend-component.specification.d.ts.map +1 -1
  656. package/dist/esm/engine/frontend-components/progression/progression-achievement-badge.frontend-component.specification.d.ts.map +1 -1
  657. package/dist/esm/engine/frontend-components/progression/progression-milestone-tracker.frontend-component.specification.d.ts.map +1 -1
  658. package/dist/esm/engine/frontend-components/resources/_framework-layout-resource-layout-spec.factory.d.ts.map +1 -1
  659. package/dist/esm/engine/frontend-components/resources/resource-layout-action.frontend-component.specification.d.ts.map +1 -1
  660. package/dist/esm/engine/frontend-components/resources/resource-layout-breadcrumb.frontend-component.specification.d.ts.map +1 -1
  661. package/dist/esm/engine/frontend-components/resources/resource-layout-container-dialogs.frontend-component.specification.d.ts.map +1 -1
  662. package/dist/esm/engine/frontend-components/resources/resource-layout-container-nested.frontend-component.specification.d.ts.map +1 -1
  663. package/dist/esm/engine/frontend-components/resources/resource-layout-create.frontend-component.specification.d.ts.map +1 -1
  664. package/dist/esm/engine/frontend-components/resources/resource-layout-danger-zone.frontend-component.specification.d.ts.map +1 -1
  665. package/dist/esm/engine/frontend-components/resources/resource-layout-empty-state.frontend-component.specification.d.ts.map +1 -1
  666. package/dist/esm/engine/frontend-components/resources/resource-layout-filters.frontend-component.specification.d.ts.map +1 -1
  667. package/dist/esm/engine/frontend-components/resources/resource-layout-header.frontend-component.specification.d.ts.map +1 -1
  668. package/dist/esm/engine/frontend-components/resources/resource-layout-list-table.frontend-component.preset-specification.d.ts.map +1 -1
  669. package/dist/esm/engine/frontend-components/resources/resource-layout-list.frontend-component.specification.d.ts.map +1 -1
  670. package/dist/esm/engine/frontend-components/resources/resource-layout-operation-bulk.frontend-component.specification.d.ts.map +1 -1
  671. package/dist/esm/engine/frontend-components/resources/resource-layout-operations-items.frontend-component.specification.d.ts.map +1 -1
  672. package/dist/esm/engine/frontend-components/resources/resource-layout-pagination.frontend-component.specification.d.ts.map +1 -1
  673. package/dist/esm/engine/frontend-components/resources/resource-layout-read-expandable.frontend-component.preset-specification.d.ts.map +1 -1
  674. package/dist/esm/engine/frontend-components/resources/resource-layout-read-summary-table-row.frontend-component.preset-specification.d.ts.map +1 -1
  675. package/dist/esm/engine/frontend-components/resources/resource-layout-read-summary.frontend-component.specification.d.ts.map +1 -1
  676. package/dist/esm/engine/frontend-components/resources/resource-layout-read.frontend-component.specification.d.ts.map +1 -1
  677. package/dist/esm/engine/frontend-components/resources/resource-layout-search-table.frontend-component.preset-specification.d.ts.map +1 -1
  678. package/dist/esm/engine/frontend-components/resources/resource-layout-search.frontend-component.specification.d.ts.map +1 -1
  679. package/dist/esm/engine/frontend-components/resources/resource-layout-update.frontend-component.specification.d.ts.map +1 -1
  680. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-display.frontend-component.specification.d.ts.map +1 -1
  681. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit-search.frontend-component.preset-specification.d.ts.map +1 -1
  682. package/dist/esm/engine/frontend-components/resources/resources-fields-resource-reference-edit.frontend-component.specification.d.ts.map +1 -1
  683. package/dist/esm/engine/frontend-components/sections/accordion.frontend-component.specification.d.ts.map +1 -1
  684. package/dist/esm/engine/frontend-components/sections/card.frontend-component.specification.d.ts.map +1 -1
  685. package/dist/esm/engine/frontend-components/sections/collapsible.frontend-component.specification.d.ts.map +1 -1
  686. package/dist/esm/engine/frontend-components/sections/pagination.frontend-component.specification.d.ts.map +1 -1
  687. package/dist/esm/engine/frontend-components/sections/stacked-layout.frontend-component.specification.d.ts.map +1 -1
  688. package/dist/esm/engine/frontend-components/sections/stepper.frontend-component.specification.d.ts.map +1 -1
  689. package/dist/esm/engine/frontend-components/sections/table.frontend-component.specification.d.ts.map +1 -1
  690. package/dist/esm/engine/frontend-components/sections/tabs.frontend-component.specification.d.ts.map +1 -1
  691. package/dist/esm/engine/frontend-components/typography/code.frontend-component.specification.d.ts.map +1 -1
  692. package/dist/esm/engine/frontend-components/typography/heading.frontend-component.specification.d.ts.map +1 -1
  693. package/dist/esm/engine/frontend-components/typography/label.frontend-component.specification.d.ts.map +1 -1
  694. package/dist/esm/engine/frontend-components/typography/link.frontend-component.specification.d.ts.map +1 -1
  695. package/dist/esm/engine/frontend-components/typography/strong.frontend-component.specification.d.ts.map +1 -1
  696. package/dist/esm/engine/frontend-components/typography/subheading.frontend-component.specification.d.ts.map +1 -1
  697. package/dist/esm/engine/frontend-components/typography/text-link.frontend-component.specification.d.ts.map +1 -1
  698. package/dist/esm/engine/frontend-components/typography/text.frontend-component.specification.d.ts.map +1 -1
  699. package/dist/esm/engine/full-custom-views/index.d.ts.map +1 -1
  700. package/dist/esm/engine/guidance/index.d.ts.map +1 -1
  701. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.d.ts.map +1 -1
  702. package/dist/esm/engine/guidance/resources/guidance-state.resource.specification.js.map +1 -1
  703. package/dist/esm/engine/guidance/resources/index.d.ts.map +1 -1
  704. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.d.ts.map +1 -1
  705. package/dist/esm/engine/guidance/resources/lifecycle-state.resource.specification.js.map +1 -1
  706. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.d.ts.map +1 -1
  707. package/dist/esm/engine/guidance/resources/progression-state.resource.specification.js.map +1 -1
  708. package/dist/esm/engine/index.d.ts.map +1 -1
  709. package/dist/esm/engine/index.js.map +1 -1
  710. package/dist/esm/engine/infrastructure/index.d.ts.map +1 -1
  711. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.d.ts.map +1 -1
  712. package/dist/esm/engine/infrastructure/resources/data-seed-runs.resource.specification.js.map +1 -1
  713. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.d.ts.map +1 -1
  714. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  715. package/dist/esm/engine/infrastructure/resources/index.d.ts.map +1 -1
  716. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
  717. package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.js.map +1 -1
  718. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.d.ts.map +1 -1
  719. package/dist/esm/engine/infrastructure/resources/job-payload-storage.resource.specification.js.map +1 -1
  720. package/dist/esm/engine/notifications/index.d.ts.map +1 -1
  721. package/dist/esm/engine/notifications/resources/index.d.ts.map +1 -1
  722. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  723. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  724. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.d.ts.map +1 -1
  725. package/dist/esm/engine/notifications/resources/notification-badges.resource.specification.js.map +1 -1
  726. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.d.ts.map +1 -1
  727. package/dist/esm/engine/notifications/resources/webhook-config.resource.specification.js.map +1 -1
  728. package/dist/esm/engine/notifications/system-emails/authentication.system-emails.specification.d.ts.map +1 -1
  729. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  730. package/dist/esm/engine/notifications/system-emails/organization.system-emails.specification.d.ts.map +1 -1
  731. package/dist/esm/engine/notifications/system-emails/security.system-emails.specification.d.ts.map +1 -1
  732. package/dist/esm/engine/notifications/system-emails/subscription.system-emails.specification.d.ts.map +1 -1
  733. package/dist/esm/engine/organizations/index.d.ts.map +1 -1
  734. package/dist/esm/engine/organizations/resources/index.d.ts.map +1 -1
  735. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  736. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  737. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.d.ts.map +1 -1
  738. package/dist/esm/engine/organizations/resources/organization-notifications.resource.specification.js.map +1 -1
  739. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.d.ts.map +1 -1
  740. package/dist/esm/engine/organizations/resources/organization-preferences.resource.specification.js.map +1 -1
  741. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.d.ts.map +1 -1
  742. package/dist/esm/engine/organizations/resources/organization-profiles.resource.specification.js.map +1 -1
  743. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.d.ts.map +1 -1
  744. package/dist/esm/engine/organizations/resources/organization-unit-members.resource.specification.js.map +1 -1
  745. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.d.ts.map +1 -1
  746. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  747. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  748. package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -1
  749. package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -1
  750. package/dist/esm/engine/providers/anthropic.provider.specification.d.ts.map +1 -1
  751. package/dist/esm/engine/providers/anthropic.provider.specification.js +10 -1
  752. package/dist/esm/engine/providers/anthropic.provider.specification.js.map +1 -1
  753. package/dist/esm/engine/providers/apple.provider.specification.d.ts.map +1 -1
  754. package/dist/esm/engine/providers/apple.provider.specification.js +10 -1
  755. package/dist/esm/engine/providers/apple.provider.specification.js.map +1 -1
  756. package/dist/esm/engine/providers/email-preview.provider.specification.d.ts.map +1 -1
  757. package/dist/esm/engine/providers/email-preview.provider.specification.js +9 -1
  758. package/dist/esm/engine/providers/email-preview.provider.specification.js.map +1 -1
  759. package/dist/esm/engine/providers/github.provider.specification.d.ts.map +1 -1
  760. package/dist/esm/engine/providers/github.provider.specification.js +10 -1
  761. package/dist/esm/engine/providers/github.provider.specification.js.map +1 -1
  762. package/dist/esm/engine/providers/google.provider.specification.d.ts.map +1 -1
  763. package/dist/esm/engine/providers/google.provider.specification.js +10 -1
  764. package/dist/esm/engine/providers/google.provider.specification.js.map +1 -1
  765. package/dist/esm/engine/providers/grok.provider.specification.d.ts.map +1 -1
  766. package/dist/esm/engine/providers/grok.provider.specification.js +10 -1
  767. package/dist/esm/engine/providers/grok.provider.specification.js.map +1 -1
  768. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  769. package/dist/esm/engine/providers/index.js.map +1 -1
  770. package/dist/esm/engine/providers/microsoft.provider.specification.d.ts.map +1 -1
  771. package/dist/esm/engine/providers/microsoft.provider.specification.js +10 -1
  772. package/dist/esm/engine/providers/microsoft.provider.specification.js.map +1 -1
  773. package/dist/esm/engine/providers/mistral.provider.specification.d.ts.map +1 -1
  774. package/dist/esm/engine/providers/mistral.provider.specification.js +10 -1
  775. package/dist/esm/engine/providers/mistral.provider.specification.js.map +1 -1
  776. package/dist/esm/engine/providers/openai.provider.specification.d.ts.map +1 -1
  777. package/dist/esm/engine/providers/openai.provider.specification.js +10 -1
  778. package/dist/esm/engine/providers/openai.provider.specification.js.map +1 -1
  779. package/dist/esm/engine/providers/opencode.provider.specification.d.ts.map +1 -1
  780. package/dist/esm/engine/providers/opencode.provider.specification.js +9 -1
  781. package/dist/esm/engine/providers/opencode.provider.specification.js.map +1 -1
  782. package/dist/esm/engine/providers/perplexity.provider.specification.d.ts.map +1 -1
  783. package/dist/esm/engine/providers/perplexity.provider.specification.js +10 -1
  784. package/dist/esm/engine/providers/perplexity.provider.specification.js.map +1 -1
  785. package/dist/esm/engine/providers/resend.provider.specification.d.ts.map +1 -1
  786. package/dist/esm/engine/providers/resend.provider.specification.js +10 -1
  787. package/dist/esm/engine/providers/resend.provider.specification.js.map +1 -1
  788. package/dist/esm/engine/providers/stripe.provider.specification.d.ts.map +1 -1
  789. package/dist/esm/engine/providers/stripe.provider.specification.js +10 -1
  790. package/dist/esm/engine/providers/stripe.provider.specification.js.map +1 -1
  791. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
  792. package/dist/esm/engine/providers/twilio.provider.specification.js +10 -1
  793. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
  794. package/dist/esm/engine/roles/_engine-role-shared.d.ts.map +1 -1
  795. package/dist/esm/engine/roles/app-admin-billing-manager.role.specification.d.ts.map +1 -1
  796. package/dist/esm/engine/roles/app-admin-marketing-editor.role.specification.d.ts.map +1 -1
  797. package/dist/esm/engine/roles/app-admin-super-admin.role.specification.d.ts.map +1 -1
  798. package/dist/esm/engine/roles/app-admin-viewer.role.specification.d.ts.map +1 -1
  799. package/dist/esm/engine/roles/app-anonymous.role.specification.d.ts.map +1 -1
  800. package/dist/esm/engine/roles/app-public.role.specification.d.ts.map +1 -1
  801. package/dist/esm/engine/roles/app-user.role.specification.d.ts.map +1 -1
  802. package/dist/esm/engine/roles/index.d.ts.map +1 -1
  803. package/dist/esm/engine/roles/org-admin.role.specification.d.ts.map +1 -1
  804. package/dist/esm/engine/roles/org-guest.role.specification.d.ts.map +1 -1
  805. package/dist/esm/engine/roles/org-manager.role.specification.d.ts.map +1 -1
  806. package/dist/esm/engine/roles/org-member.role.specification.d.ts.map +1 -1
  807. package/dist/esm/engine/roles/org-owner.role.specification.d.ts.map +1 -1
  808. package/dist/esm/engine/users/index.d.ts.map +1 -1
  809. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.d.ts.map +1 -1
  810. package/dist/esm/engine/users/resources/anonymous-users.resource.specification.js.map +1 -1
  811. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts.map +1 -1
  812. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.js.map +1 -1
  813. package/dist/esm/engine/users/resources/index.d.ts.map +1 -1
  814. package/dist/esm/engine/users/resources/self-service-user-notifications.shared.d.ts.map +1 -1
  815. package/dist/esm/engine/users/resources/user-credentials.resource.specification.d.ts.map +1 -1
  816. package/dist/esm/engine/users/resources/user-credentials.resource.specification.js.map +1 -1
  817. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.d.ts.map +1 -1
  818. package/dist/esm/engine/users/resources/user-identity-links.resource.specification.js.map +1 -1
  819. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  820. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  821. package/dist/esm/engine/users/resources/user-preferences.resource.specification.js.map +1 -1
  822. package/dist/esm/engine/users/resources/user-profiles.resource.specification.d.ts.map +1 -1
  823. package/dist/esm/engine/users/resources/user-profiles.resource.specification.js.map +1 -1
  824. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  825. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  826. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.d.ts.map +1 -1
  827. package/dist/esm/engine/users/resources/user-self-profiles.resource.specification.js.map +1 -1
  828. package/dist/esm/engine/users/resources/user-self.resource.specification.d.ts.map +1 -1
  829. package/dist/esm/engine/users/resources/user-self.resource.specification.js +1 -1
  830. package/dist/esm/engine/users/resources/user-self.resource.specification.js.map +1 -1
  831. package/dist/esm/engine/users/resources/users-api-reference.examples.d.ts.map +1 -1
  832. package/dist/esm/engine/users/resources/users.resource.specification.d.ts.map +1 -1
  833. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  834. package/dist/esm/index.d.ts.map +1 -1
  835. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.d.ts.map +1 -1
  836. package/dist/esm/technical-documentation/engine-documentation-specification-catalog.companion.js.map +1 -1
  837. package/dist/esm/technical-documentation/technical-documentation-api-reference-targets.schemas.d.ts.map +1 -1
  838. package/dist/esm/technical-documentation/technical-documentation-assets.schemas.d.ts.map +1 -1
  839. package/dist/esm/technical-documentation/technical-documentation-capture.schemas.d.ts.map +1 -1
  840. package/dist/esm/technical-documentation/technical-documentation-common.schemas.d.ts.map +1 -1
  841. package/dist/esm/technical-documentation/technical-documentation-environment-identity.schemas.d.ts.map +1 -1
  842. package/dist/esm/technical-documentation/technical-documentation-evidence.schemas.d.ts.map +1 -1
  843. package/dist/esm/technical-documentation/technical-documentation-lifecycle.schemas.d.ts.map +1 -1
  844. package/dist/esm/technical-documentation/technical-documentation-publication.schemas.d.ts.map +1 -1
  845. package/dist/esm/technical-documentation/technical-documentation-units.schemas.d.ts.map +1 -1
  846. package/dist/esm/technical-documentation/technical-documentation-units.schemas.js.map +1 -1
  847. package/dist/esm/technical-documentation.exports.d.ts.map +1 -1
  848. package/dist/tsconfig.build.tsbuildinfo +1 -1
  849. package/package.json +8 -8
  850. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts +0 -0
  851. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.d.ts.map +0 -0
  852. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js +0 -0
  853. package/dist/esm/engine/frontend-components/billing/billing-plan-change-preview.frontend-component.specification.js.map +0 -0
  854. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts +0 -0
  855. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.d.ts.map +0 -0
  856. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js +0 -0
  857. package/dist/esm/engine/frontend-components/billing/billing-promotion-code-input.frontend-component.specification.js.map +0 -0
@@ -0,0 +1,355 @@
1
+ /**
2
+ * Resource: `applicationAccessGrants` — Wildo SaaS engine specification (backend-only, application-scoped).
3
+ *
4
+ * Inputs:
5
+ * - Schema: engine/saas-models/src/security/authorizations/application-access-grants.shared.schemas.ts
6
+ * → `ApplicationAccessGrantSchema`
7
+ * - Factory: engine/saas-models/src/security/authorizations/application-access-grants.shared.resources-config.schemas.ts
8
+ * → `applicationAccessGrantsResourceConfiguration_InitializationFactory`
9
+ * - Custom operations: `ApplicationAccessGrants_Operations`
10
+ *
11
+ * ## Why this exists BESIDE `platformAccessGrants` rather than inside it
12
+ *
13
+ * The tenant grant governs an operator reaching into ONE named organization, and the organization
14
+ * approves. That is the industry ceiling (Microsoft Customer Lockbox, Google Access Approval) and it
15
+ * works. It cannot govern a read that names NO tenant — an enumeration of the whole user directory,
16
+ * or of the cross-tenant audit trail — because there is no single customer to ask and no tenant for
17
+ * the route to carry.
18
+ *
19
+ * Measured 2026-09-09: the NARROW act required a requested, justified, time-bound, tenant-approved
20
+ * grant, while the WIDEST read required an administrator role and nothing else, at a strictly LOWER
21
+ * role tier. This resource is the answer, and its one new idea is the TWO-PERSON RULE: the approval
22
+ * comes from a second platform administrator, never the requester.
23
+ *
24
+ * Why backend-only: there is NO entry for `[CoreResourceType.APPLICATION_ACCESS_GRANTS]` in any
25
+ * preset under engine/presets-components/src/config/resources/. The operator-facing queue is not
26
+ * built yet; today the resource is consumed by the authorizer's admission predicate and by the
27
+ * platform API.
28
+ *
29
+ * Why `APPLICATION` scope: the elevation belongs to the deployment, not to any tenant inside it. The
30
+ * scope is expressed once, in the registry relationship APPLICATION → APPLICATION_ACCESS_GRANTS
31
+ * carrying `isPrimaryScope: true`; the runtime config deliberately does not restate it.
32
+ */
33
+ import { LabelAudience } from '@wildo-ai/presets-components-models';
34
+ import { CodeDeclarationKind, CodeSymbolKind, FieldSemanticImportance, } from '@wildo-ai/zod-decorators';
35
+ import { ApplicationAccessGrantSchema, ApplicationAccessGrants_Operations, CoreResourceOperation as Op, PlatformAccessGrantStatus, ResourcePrimaryScope, applicationAccessGrantsResourceConfiguration_InitializationFactory, } from '@wildo-ai/saas-models';
36
+ import { HttpResponseStatusCode, resourceSpecification } from '../../../_core/index.js';
37
+ import { EngineResourceSubDomain } from '../../engine-resource-sub-domain.js';
38
+ const APPLICATION_ACCESS_PENDING_GRANT_ID = 'application_access_grant_01J5Q2A3B4C5D6E7F8G9H0J1KL';
39
+ const APPLICATION_ACCESS_ACTIVE_GRANT_ID = 'application_access_grant_01J5Q2C4D5E6F7G8H9J0K1L2MN';
40
+ const APPLICATION_ACCESS_OPERATOR_USER_ID = 'user_01J5Q2E5F6G7H8J9K0L1M2N3PQ';
41
+ const APPLICATION_ACCESS_SECOND_ADMIN_USER_ID = 'user_01J5Q2G6H7J8K9L0M1N2P3Q4RS';
42
+ const APPLICATION_ACCESS_EXAMPLE_APPLICATION_ID = 'app_01J5Q2J7K8L9M0N1P2Q3R4S5TU';
43
+ const applicationAccessPendingGrantExample = {
44
+ _id: APPLICATION_ACCESS_PENDING_GRANT_ID,
45
+ applicationId: APPLICATION_ACCESS_EXAMPLE_APPLICATION_ID,
46
+ operatorUserId: APPLICATION_ACCESS_OPERATOR_USER_ID,
47
+ justification: 'Incident INC-5107 spans several tenants; I need the cross-tenant audit view to find which are affected.',
48
+ status: PlatformAccessGrantStatus.PENDING_APPROVAL,
49
+ expiresAt: '2026-09-09T13:30:00.000Z',
50
+ createdAt: '2026-09-09T13:00:00.000Z',
51
+ updatedAt: '2026-09-09T13:00:00.000Z',
52
+ };
53
+ const applicationAccessActiveGrantExample = {
54
+ ...applicationAccessPendingGrantExample,
55
+ _id: APPLICATION_ACCESS_ACTIVE_GRANT_ID,
56
+ status: PlatformAccessGrantStatus.ACTIVE,
57
+ approvedByUserId: APPLICATION_ACCESS_SECOND_ADMIN_USER_ID,
58
+ approvedAt: '2026-09-09T13:04:00.000Z',
59
+ updatedAt: '2026-09-09T13:04:00.000Z',
60
+ };
61
+ export const applicationAccessGrantsResourceSpecification = resourceSpecification(applicationAccessGrantsResourceConfiguration_InitializationFactory, ApplicationAccessGrantSchema, ({ schemaShape }) => ({
62
+ purpose: 'Give a platform support team a justified, short-lived, second-signed way to perform the reads that span every tenant at once — the user directory and the cross-tenant audit trail — so that the widest access the system grants is not the one nobody had to ask for.',
63
+ businessRole: 'The deployment\'s application-wide access ledger. It answers who asked to see across every tenant, why, which SECOND administrator agreed, how long the window lasted, and how it ended.',
64
+ lifecycleRole: 'A platform administrator requests, stating a reason. The request is never usable on creation. A DIFFERENT platform administrator approves or denies it; the requester may withdraw or refuse their own request but can never approve it. Either can revoke an active window early, and expiry ends it automatically. Completed requests remain available as access-review history.',
65
+ audience: LabelAudience.ADMIN,
66
+ subDomain: EngineResourceSubDomain.AUTH,
67
+ codeHandling: {
68
+ mainSchema: {
69
+ packageName: '@wildo-ai/saas-models',
70
+ exportName: 'ApplicationAccessGrantSchema',
71
+ symbolKind: CodeSymbolKind.SCHEMA,
72
+ declarationKind: CodeDeclarationKind.ZOD_SCHEMA,
73
+ },
74
+ resourceFactory: {
75
+ packageName: '@wildo-ai/saas-models',
76
+ exportName: 'applicationAccessGrantsResourceConfiguration_InitializationFactory',
77
+ symbolKind: CodeSymbolKind.FACTORY,
78
+ declarationKind: CodeDeclarationKind.FUNCTION,
79
+ },
80
+ resourceType: {
81
+ enumDeclaration: {
82
+ packageName: '@wildo-ai/saas-models',
83
+ exportName: 'CoreResourceType',
84
+ symbolKind: CodeSymbolKind.ENUM,
85
+ declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
86
+ },
87
+ memberName: 'APPLICATION_ACCESS_GRANTS',
88
+ },
89
+ operationVocabulary: {
90
+ coreEnum: {
91
+ packageName: '@wildo-ai/saas-models',
92
+ exportName: 'CoreResourceOperation',
93
+ symbolKind: CodeSymbolKind.ENUM,
94
+ declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
95
+ },
96
+ customEnum: {
97
+ packageName: '@wildo-ai/saas-models',
98
+ exportName: 'ApplicationAccessGrants_Operations',
99
+ symbolKind: CodeSymbolKind.ENUM,
100
+ declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
101
+ },
102
+ },
103
+ notes: [
104
+ 'The `status` vocabulary is SHARED with `platformAccessGrants` (`PlatformAccessGrantStatus`) rather than duplicated. The states really are the same states, and two enums holding the same five members is how a sweep, an admission predicate and a UI come to disagree about what `active` means.',
105
+ 'There is no auto-approval and therefore no `autoApprovalReason` field. The tenant grant auto-approves when the tenant has not opted into approval or cannot approve — both statements about a NAMED tenant, and this row names none. A grant that could approve itself would make the two-person rule ceremonial.',
106
+ 'No public CREATE or UPDATE. `requestAccess` is the only writer of a new row, and `approve` / `deny` / `revoke` / `expire` are the only status transitions. A generic CREATE would let a caller author their own `status` and mint an ACTIVE application-wide elevation with no second signature at all.',
107
+ 'No DELETE at all — not even route-less. The tenant grant declares one solely so the ORGANIZATIONS composition cascade has a verb it can call; this resource is a REFERENCE child of the APPLICATION row, which is the deployment itself and is not purged, so there is no cascade and nothing to declare.',
108
+ 'The lifecycle audit event is shared too: `CoreAuditableEventType.PLATFORM_ACCESS_GRANT_LIFECYCLE`, carrying `grantScope: application_wide` and no `targetOrganizationId`. One event so a reviewer asking "what elevated access was granted, to whom, by whom?" gets one query rather than a union of two they have to remember.',
109
+ ],
110
+ },
111
+ fields: {
112
+ _id: schemaShape._id.stringSpec({
113
+ meaning: 'Identifier for one application-wide elevation request.',
114
+ whyItMatters: 'The address of every subsequent decision, and the value the audit trail carries as `authorizingGrantId` when a read is admitted under it — which is what joins an operator\'s reads to the two administrators who signed for them.',
115
+ semanticRole: 'identifier',
116
+ importance: FieldSemanticImportance.PRIMARY,
117
+ }),
118
+ applicationId: schemaShape.applicationId.foreignKeySpec({
119
+ meaning: 'The deployment this elevation is inside.',
120
+ whyItMatters: 'The scope anchor. Optional in the schema and MANDATORY in meaning — declared mandatory the resource does not load at all on a Mongo-persisted deployment, so addressing is carried by the relationship\'s `isPrimaryScope` + `REQUIRES_CONTEXT` instead, which is what the URL builder actually reads.',
121
+ importance: FieldSemanticImportance.CONTEXTUAL,
122
+ }),
123
+ operatorUserId: schemaShape.operatorUserId.foreignKeySpec({
124
+ meaning: 'The platform administrator who requested the elevation.',
125
+ whyItMatters: 'Server-authored from the session, never client-supplied, and it is the field the two-person rule measures against: `approve` refuses when the approver equals this value. An elevation whose subject the caller could choose would let one administrator mint application-wide access under another\'s name and then sign it themselves.',
126
+ importance: FieldSemanticImportance.PRIMARY,
127
+ }),
128
+ justification: schemaShape.justification.stringSpec({
129
+ meaning: 'Why the operator needs to see across every tenant, in their own words.',
130
+ whyItMatters: 'Required, and it carries more weight here than on the tenant grant: it is the ONLY thing the approving administrator has to decide on. A tenant grant\'s approver knows their own tenant and their own support case; this approver knows nothing but this sentence. A second signature on an unstated reason is a countersignature on nothing.',
131
+ importance: FieldSemanticImportance.PRIMARY,
132
+ }),
133
+ status: schemaShape.status.enumSpec({
134
+ meaning: 'Where this elevation is in its lifecycle.',
135
+ whyItMatters: 'Read together with `expiresAt`, never alone: the admission predicate accepts ACTIVE and then re-checks the window, so a grant whose window elapsed stops working whether or not anything has relabelled it. Every row starts PENDING_APPROVAL — there is no branch that reaches ACTIVE without a second administrator acting.',
136
+ importance: FieldSemanticImportance.PRIMARY,
137
+ enumDeclaration: {
138
+ packageName: '@wildo-ai/saas-models',
139
+ exportName: 'PlatformAccessGrantStatus',
140
+ symbolKind: CodeSymbolKind.ENUM,
141
+ declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
142
+ },
143
+ }),
144
+ expiresAt: schemaShape.expiresAt.dateSpec({
145
+ meaning: 'When the elevation stops working.',
146
+ whyItMatters: 'The control, not the label. Server-authored from the requested duration and clamped to ONE HOUR — a quarter of the tenant grant\'s ceiling, because this elevation reaches every customer at once and no customer can see or revoke it, so the clock is the only thing that ends it on its own.',
147
+ importance: FieldSemanticImportance.PRIMARY,
148
+ }),
149
+ approvedByUserId: schemaShape.approvedByUserId.foreignKeySpec({
150
+ meaning: 'The SECOND administrator who signed.',
151
+ whyItMatters: 'The whole feature, as a field. It is optional in the schema because it is unset while pending and stays unset on a denied or revoked grant — never because an ACTIVE grant might lack one. The only writer of ACTIVE is `approve`, and `approve` refuses when this would equal `operatorUserId`.',
152
+ importance: FieldSemanticImportance.PRIMARY,
153
+ }),
154
+ decisionReason: schemaShape.decisionReason.stringSpec({
155
+ meaning: 'The approver\'s reason for refusing, or the revoker\'s reason for withdrawing.',
156
+ whyItMatters: 'What a later reader needs to tell a refusal that was considered from one that was reflexive. Scrubbed on subject erasure, like the justification, because it is free text one administrator wrote about another\'s request.',
157
+ importance: FieldSemanticImportance.CONTEXTUAL,
158
+ }),
159
+ },
160
+ operations: {
161
+ [Op.READ]: {
162
+ purpose: 'Read one application-wide elevation request.',
163
+ outcome: 'The request\'s current state, including who asked, who signed and when the window closes.',
164
+ responseStatuses: [
165
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation request is returned.' },
166
+ ],
167
+ errorScenarios: [
168
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator. There is no tenant-side reader here — an application-wide elevation has no customer to show it to, which is exactly why its approval had to become a second signature.' },
169
+ { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },
170
+ ],
171
+ idempotent: true,
172
+ examples: [{
173
+ title: 'Read a pending request',
174
+ request: { applicationAccessGrantId: APPLICATION_ACCESS_PENDING_GRANT_ID },
175
+ response: applicationAccessPendingGrantExample,
176
+ forStatus: HttpResponseStatusCode.OK_200,
177
+ }],
178
+ },
179
+ [Op.LIST]: {
180
+ purpose: 'List elevation requests — the pending queue a second administrator works from, and the history a reviewer reads.',
181
+ outcome: 'A page of elevation requests.',
182
+ responseStatuses: [
183
+ { code: HttpResponseStatusCode.OK_200, meaning: 'A page of elevation requests is returned.' },
184
+ ],
185
+ errorScenarios: [
186
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },
187
+ ],
188
+ idempotent: true,
189
+ examples: [{
190
+ title: 'Work the pending queue',
191
+ request: { page: 1, limit: 20, sort: 'createdAt:desc' },
192
+ response: { data: [applicationAccessPendingGrantExample], total: 1, page: 1, limit: 20 },
193
+ forStatus: HttpResponseStatusCode.OK_200,
194
+ }],
195
+ },
196
+ [Op.COUNT]: {
197
+ purpose: 'Count elevation requests matching a filter.',
198
+ outcome: 'A number — how many requests are pending a signature, or how many were granted in a period.',
199
+ responseStatuses: [
200
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The count is returned.' },
201
+ ],
202
+ errorScenarios: [
203
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },
204
+ ],
205
+ idempotent: true,
206
+ examples: [{
207
+ title: 'How many requests are awaiting a second signature',
208
+ request: { status: PlatformAccessGrantStatus.PENDING_APPROVAL },
209
+ response: { count: 1 },
210
+ forStatus: HttpResponseStatusCode.OK_200,
211
+ }],
212
+ },
213
+ [ApplicationAccessGrants_Operations.REQUEST_ACCESS]: {
214
+ operationId: ApplicationAccessGrants_Operations.REQUEST_ACCESS,
215
+ purpose: 'Ask for a short, justified window in which the tenant-spanning reads become available.',
216
+ outcome: 'A request in `pending_approval`, usable by nobody until a DIFFERENT platform administrator approves it. The window is recorded at creation and starts running then, so a request nobody signs simply lapses.',
217
+ whenToUse: 'An operator needs a read that names no single tenant — the user directory, or the cross-tenant audit trail — for a support case or an incident that spans customers.',
218
+ importance: FieldSemanticImportance.PRIMARY,
219
+ responseStatuses: [
220
+ { code: HttpResponseStatusCode.CREATED_201, meaning: 'The elevation request was recorded and awaits a second administrator.' },
221
+ ],
222
+ errorScenarios: [
223
+ { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The justification is missing or empty. It is required because it is the only thing the approver has to decide on.', errorCode: 'VALIDATION_FAILED' },
224
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },
225
+ ],
226
+ idempotent: false,
227
+ examples: [{
228
+ title: 'Ask to see across tenants for a multi-customer incident',
229
+ request: {
230
+ justification: 'Incident INC-5107 spans several tenants; I need the cross-tenant audit view to find which are affected.',
231
+ requestedDurationMinutes: 30,
232
+ },
233
+ response: applicationAccessPendingGrantExample,
234
+ forStatus: HttpResponseStatusCode.CREATED_201,
235
+ }],
236
+ },
237
+ [ApplicationAccessGrants_Operations.APPROVE]: {
238
+ operationId: ApplicationAccessGrants_Operations.APPROVE,
239
+ purpose: 'Sign another administrator\'s request — the second signature.',
240
+ outcome: 'The request becomes `active` and names the approver. The tenant-spanning reads become available to the REQUESTER, and to nobody else, until the window closes.',
241
+ whenToUse: 'A platform administrator has read the requester\'s justification and agrees the application-wide reach is warranted.',
242
+ importance: FieldSemanticImportance.PRIMARY,
243
+ responseStatuses: [
244
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation is now active, and its updated state — including the approver — is returned.' },
245
+ ],
246
+ errorScenarios: [
247
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },
248
+ { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },
249
+ { code: HttpResponseStatusCode.CONFLICT_409, when: 'The caller IS the requester — a request cannot be approved by the person who raised it — or the request is no longer `pending_approval`.' },
250
+ ],
251
+ idempotent: false,
252
+ examples: [{
253
+ title: 'A second administrator signs',
254
+ request: {
255
+ applicationAccessGrantId: APPLICATION_ACCESS_PENDING_GRANT_ID,
256
+ decisionReason: 'Reviewed against INC-5107; scope and window are proportionate.',
257
+ },
258
+ response: applicationAccessActiveGrantExample,
259
+ forStatus: HttpResponseStatusCode.OK_200,
260
+ }],
261
+ },
262
+ [ApplicationAccessGrants_Operations.DENY]: {
263
+ operationId: ApplicationAccessGrants_Operations.DENY,
264
+ purpose: 'Refuse a pending request.',
265
+ outcome: 'The request becomes `denied` and cannot be retried; a later need requires a new request.',
266
+ whenToUse: 'A platform administrator judges the reach unwarranted — or the requester themselves thinks better of it.',
267
+ responseStatuses: [
268
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The request was denied, and its final state is returned.' },
269
+ ],
270
+ errorScenarios: [
271
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },
272
+ { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },
273
+ { code: HttpResponseStatusCode.CONFLICT_409, when: 'The request is no longer `pending_approval`.' },
274
+ ],
275
+ idempotent: false,
276
+ examples: [{
277
+ title: 'Withdraw your own request',
278
+ request: {
279
+ applicationAccessGrantId: APPLICATION_ACCESS_PENDING_GRANT_ID,
280
+ decisionReason: 'The affected tenants were identified from the incident channel; the wide read is no longer needed.',
281
+ },
282
+ response: {
283
+ ...applicationAccessPendingGrantExample,
284
+ status: PlatformAccessGrantStatus.DENIED,
285
+ decisionReason: 'The affected tenants were identified from the incident channel; the wide read is no longer needed.',
286
+ updatedAt: '2026-09-09T13:06:00.000Z',
287
+ },
288
+ forStatus: HttpResponseStatusCode.OK_200,
289
+ }],
290
+ },
291
+ [ApplicationAccessGrants_Operations.REVOKE]: {
292
+ operationId: ApplicationAccessGrants_Operations.REVOKE,
293
+ purpose: 'End a pending or active elevation early.',
294
+ outcome: 'The elevation becomes `revoked` and the tenant-spanning reads stop immediately instead of remaining available until the recorded expiry.',
295
+ whenToUse: 'The support work finished before the window did, or a reviewer decides the reach should end now.',
296
+ responseStatuses: [
297
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation was revoked, and its final state is returned.' },
298
+ ],
299
+ errorScenarios: [
300
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },
301
+ { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },
302
+ { code: HttpResponseStatusCode.CONFLICT_409, when: 'The elevation is already denied, revoked or expired. Only a `pending_approval` or `active` one can be revoked.' },
303
+ ],
304
+ idempotent: false,
305
+ examples: [{
306
+ title: 'Close the window as soon as the incident is scoped',
307
+ request: {
308
+ applicationAccessGrantId: APPLICATION_ACCESS_ACTIVE_GRANT_ID,
309
+ decisionReason: 'INC-5107 scoped to three tenants; per-tenant grants requested instead.',
310
+ },
311
+ response: {
312
+ ...applicationAccessActiveGrantExample,
313
+ status: PlatformAccessGrantStatus.REVOKED,
314
+ decisionReason: 'INC-5107 scoped to three tenants; per-tenant grants requested instead.',
315
+ updatedAt: '2026-09-09T13:18:00.000Z',
316
+ },
317
+ forStatus: HttpResponseStatusCode.OK_200,
318
+ }],
319
+ },
320
+ [ApplicationAccessGrants_Operations.EXPIRE]: {
321
+ operationId: ApplicationAccessGrants_Operations.EXPIRE,
322
+ purpose: 'Relabel an active elevation whose window has closed.',
323
+ outcome: 'The elevation reads `expired` rather than `active` in the queue and the history.',
324
+ whenToUse: 'Never by hand. The credential-expiry sweep dispatches it and nothing else does — there is no route and no affordance, because nobody needs a button that declares a date has passed.',
325
+ responseStatuses: [
326
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation was relabelled expired.' },
327
+ ],
328
+ errorScenarios: [
329
+ { code: HttpResponseStatusCode.CONFLICT_409, when: 'The elevation is not `active`. A denied or revoked one is terminal and must keep saying which — relabelling it would rewrite the decision history a reviewer reads.' },
330
+ ],
331
+ idempotent: false,
332
+ examples: [{
333
+ title: 'The sweep closes a lapsed window',
334
+ request: {},
335
+ response: {
336
+ ...applicationAccessActiveGrantExample,
337
+ status: PlatformAccessGrantStatus.EXPIRED,
338
+ updatedAt: '2026-09-09T13:31:00.000Z',
339
+ },
340
+ forStatus: HttpResponseStatusCode.OK_200,
341
+ }],
342
+ },
343
+ },
344
+ businessConstraints: [
345
+ 'THE control: `approve` refuses when the approver is the requester. Enforced TWICE, and neither half alone is the control — the operation\'s `enabledCondition` makes the affordance disappear so no console renders an Approve button on one\'s own request, and the custom implementation makes the transition impossible so a future variant authored without that condition cannot transition silently. The comparison itself lives in ONE exported predicate, which fails CLOSED when either identity is missing: an approval reaching the check with no decider has no second person behind it, and the naive inline form would admit exactly that case.',
346
+ 'Customer approval is the industry ceiling and is structurally unavailable here — there is no single customer to ask — so a second signature is the strongest control that exists for this act. That is why AUTO-APPROVAL was rejected even though it is the tenant grant\'s own default posture: that default is defensible only because a tenant can opt in above it, and there is no such party here.',
347
+ 'A gated read is one this deployment can ALREADY SEE as application-wide. The admission predicate composes the two authorities that decide what the audit trail records — the unconfined scope-root directory read and the declared cross-tenant read — and adds no third derivation, so the set of reads that need an elevation and the set that leave evidence are the same set by construction.',
348
+ 'The per-row tenant crossing is deliberately NOT gated on this grant. That door already works, approved by the customer it names; requiring an application-wide elevation there too would replace a customer-approvable control with a platform-internal one, which is a step DOWN the operator-access ladder.',
349
+ 'Both grant resources are EXEMPT from the admission wholesale — this one and `platformAccessGrants`. An operator would otherwise need an application-wide grant in order to ask for one, and the second administrator would need one in order to read the queue and sign. The exemption is safe for the reason the tenant resource\'s own bootstrap exemption is safe: these rows are the elevation ledger, they belong to no tenant, and reading them discloses no customer\'s data.',
350
+ 'Usability is EVALUATED, never read off `status`. A grant counts only when it is ACTIVE and `expiresAt` is still in the future, through the single predicate both grant resources share. The expiry sweep\'s relabelling is bookkeeping for humans; if admission read the label, a lagging sweep would be an authorization hole rather than a stale display.',
351
+ 'The window is SHORTER than a tenant elevation\'s — 30 minutes by default against 60, one hour maximum against four — and the ORDER is the design rather than the numbers. A tenant elevation reaches one customer who can see and revoke it; this one reaches every customer and none of them can.',
352
+ 'Terminal statuses are how an elevation ends. DENIED, EXPIRED and REVOKED are never edited back to life, and there is no delete verb of any kind: an elevation record either party could erase is not evidence.',
353
+ ],
354
+ }), { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION });
355
+ //# sourceMappingURL=application-access-grants.resource.specification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-access-grants.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/application-access-grants.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,4BAA4B,EAC5B,kCAAkC,EAClC,qBAAqB,IAAI,EAAE,EAC3B,yBAAyB,EACzB,oBAAoB,EACpB,kEAAkE,GACnE,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAE3E,MAAM,mCAAmC,GAAG,qDAAqD,CAAC;AAClG,MAAM,kCAAkC,GAAG,qDAAqD,CAAC;AACjG,MAAM,mCAAmC,GAAG,iCAAiC,CAAC;AAC9E,MAAM,uCAAuC,GAAG,iCAAiC,CAAC;AAClF,MAAM,yCAAyC,GAAG,gCAAgC,CAAC;AAEnF,MAAM,oCAAoC,GAAG;IAC3C,GAAG,EAAE,mCAAmC;IACxC,aAAa,EAAE,yCAAyC;IACxD,cAAc,EAAE,mCAAmC;IACnD,aAAa,EAAE,yGAAyG;IACxH,MAAM,EAAE,yBAAyB,CAAC,gBAAgB;IAClD,SAAS,EAAE,0BAA0B;IACrC,SAAS,EAAE,0BAA0B;IACrC,SAAS,EAAE,0BAA0B;CACtC,CAAC;AAEF,MAAM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EAAE,yBAAyB,CAAC,OAAO;wBACzC,SAAS,EAAE,0BAA0B;qBACtC;oBACD,SAAS,EAAE,sBAAsB,CAAC,MAAM;iBACzC,CAAC;SACH;KACF;IAED,mBAAmB,EAAE;QACnB,+nBAA+nB;QAC/nB,yYAAyY;QACzY,mYAAmY;QACnY,+SAA+S;QAC/S,sdAAsd;QACtd,6VAA6V;QAC7V,oSAAoS;QACpS,gNAAgN;KACjN;CACF,CAAC,EACF,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["/**\n * Resource: `applicationAccessGrants` — Wildo SaaS engine specification (backend-only, application-scoped).\n *\n * Inputs:\n * - Schema: engine/saas-models/src/security/authorizations/application-access-grants.shared.schemas.ts\n * → `ApplicationAccessGrantSchema`\n * - Factory: engine/saas-models/src/security/authorizations/application-access-grants.shared.resources-config.schemas.ts\n * → `applicationAccessGrantsResourceConfiguration_InitializationFactory`\n * - Custom operations: `ApplicationAccessGrants_Operations`\n *\n * ## Why this exists BESIDE `platformAccessGrants` rather than inside it\n *\n * The tenant grant governs an operator reaching into ONE named organization, and the organization\n * approves. That is the industry ceiling (Microsoft Customer Lockbox, Google Access Approval) and it\n * works. It cannot govern a read that names NO tenant — an enumeration of the whole user directory,\n * or of the cross-tenant audit trail — because there is no single customer to ask and no tenant for\n * the route to carry.\n *\n * Measured 2026-09-09: the NARROW act required a requested, justified, time-bound, tenant-approved\n * grant, while the WIDEST read required an administrator role and nothing else, at a strictly LOWER\n * role tier. This resource is the answer, and its one new idea is the TWO-PERSON RULE: the approval\n * comes from a second platform administrator, never the requester.\n *\n * Why backend-only: there is NO entry for `[CoreResourceType.APPLICATION_ACCESS_GRANTS]` in any\n * preset under engine/presets-components/src/config/resources/. The operator-facing queue is not\n * built yet; today the resource is consumed by the authorizer's admission predicate and by the\n * platform API.\n *\n * Why `APPLICATION` scope: the elevation belongs to the deployment, not to any tenant inside it. The\n * scope is expressed once, in the registry relationship APPLICATION → APPLICATION_ACCESS_GRANTS\n * carrying `isPrimaryScope: true`; the runtime config deliberately does not restate it.\n */\n\nimport { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n ApplicationAccessGrantSchema,\n ApplicationAccessGrants_Operations,\n CoreResourceOperation as Op,\n PlatformAccessGrantStatus,\n ResourcePrimaryScope,\n applicationAccessGrantsResourceConfiguration_InitializationFactory,\n} from '@wildo-ai/saas-models';\nimport { HttpResponseStatusCode, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\nconst APPLICATION_ACCESS_PENDING_GRANT_ID = 'application_access_grant_01J5Q2A3B4C5D6E7F8G9H0J1KL';\nconst APPLICATION_ACCESS_ACTIVE_GRANT_ID = 'application_access_grant_01J5Q2C4D5E6F7G8H9J0K1L2MN';\nconst APPLICATION_ACCESS_OPERATOR_USER_ID = 'user_01J5Q2E5F6G7H8J9K0L1M2N3PQ';\nconst APPLICATION_ACCESS_SECOND_ADMIN_USER_ID = 'user_01J5Q2G6H7J8K9L0M1N2P3Q4RS';\nconst APPLICATION_ACCESS_EXAMPLE_APPLICATION_ID = 'app_01J5Q2J7K8L9M0N1P2Q3R4S5TU';\n\nconst applicationAccessPendingGrantExample = {\n _id: APPLICATION_ACCESS_PENDING_GRANT_ID,\n applicationId: APPLICATION_ACCESS_EXAMPLE_APPLICATION_ID,\n operatorUserId: APPLICATION_ACCESS_OPERATOR_USER_ID,\n justification: 'Incident INC-5107 spans several tenants; I need the cross-tenant audit view to find which are affected.',\n status: PlatformAccessGrantStatus.PENDING_APPROVAL,\n expiresAt: '2026-09-09T13:30:00.000Z',\n createdAt: '2026-09-09T13:00:00.000Z',\n updatedAt: '2026-09-09T13:00:00.000Z',\n};\n\nconst applicationAccessActiveGrantExample = {\n ...applicationAccessPendingGrantExample,\n _id: APPLICATION_ACCESS_ACTIVE_GRANT_ID,\n status: PlatformAccessGrantStatus.ACTIVE,\n approvedByUserId: APPLICATION_ACCESS_SECOND_ADMIN_USER_ID,\n approvedAt: '2026-09-09T13:04:00.000Z',\n updatedAt: '2026-09-09T13:04:00.000Z',\n};\n\nexport const applicationAccessGrantsResourceSpecification = resourceSpecification(\n applicationAccessGrantsResourceConfiguration_InitializationFactory,\n ApplicationAccessGrantSchema,\n ({ schemaShape }) => ({\n purpose: 'Give a platform support team a justified, short-lived, second-signed way to perform the reads that span every tenant at once — the user directory and the cross-tenant audit trail — so that the widest access the system grants is not the one nobody had to ask for.',\n businessRole: 'The deployment\\'s application-wide access ledger. It answers who asked to see across every tenant, why, which SECOND administrator agreed, how long the window lasted, and how it ended.',\n lifecycleRole: 'A platform administrator requests, stating a reason. The request is never usable on creation. A DIFFERENT platform administrator approves or denies it; the requester may withdraw or refuse their own request but can never approve it. Either can revoke an active window early, and expiry ends it automatically. Completed requests remain available as access-review history.',\n audience: LabelAudience.ADMIN,\n subDomain: EngineResourceSubDomain.AUTH,\n\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApplicationAccessGrantSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'applicationAccessGrantsResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'APPLICATION_ACCESS_GRANTS',\n },\n operationVocabulary: {\n coreEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'CoreResourceOperation',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n customEnum: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ApplicationAccessGrants_Operations',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n },\n notes: [\n 'The `status` vocabulary is SHARED with `platformAccessGrants` (`PlatformAccessGrantStatus`) rather than duplicated. The states really are the same states, and two enums holding the same five members is how a sweep, an admission predicate and a UI come to disagree about what `active` means.',\n 'There is no auto-approval and therefore no `autoApprovalReason` field. The tenant grant auto-approves when the tenant has not opted into approval or cannot approve — both statements about a NAMED tenant, and this row names none. A grant that could approve itself would make the two-person rule ceremonial.',\n 'No public CREATE or UPDATE. `requestAccess` is the only writer of a new row, and `approve` / `deny` / `revoke` / `expire` are the only status transitions. A generic CREATE would let a caller author their own `status` and mint an ACTIVE application-wide elevation with no second signature at all.',\n 'No DELETE at all — not even route-less. The tenant grant declares one solely so the ORGANIZATIONS composition cascade has a verb it can call; this resource is a REFERENCE child of the APPLICATION row, which is the deployment itself and is not purged, so there is no cascade and nothing to declare.',\n 'The lifecycle audit event is shared too: `CoreAuditableEventType.PLATFORM_ACCESS_GRANT_LIFECYCLE`, carrying `grantScope: application_wide` and no `targetOrganizationId`. One event so a reviewer asking \"what elevated access was granted, to whom, by whom?\" gets one query rather than a union of two they have to remember.',\n ],\n },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Identifier for one application-wide elevation request.',\n whyItMatters: 'The address of every subsequent decision, and the value the audit trail carries as `authorizingGrantId` when a read is admitted under it — which is what joins an operator\\'s reads to the two administrators who signed for them.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n applicationId: schemaShape.applicationId.foreignKeySpec({\n meaning: 'The deployment this elevation is inside.',\n whyItMatters: 'The scope anchor. Optional in the schema and MANDATORY in meaning — declared mandatory the resource does not load at all on a Mongo-persisted deployment, so addressing is carried by the relationship\\'s `isPrimaryScope` + `REQUIRES_CONTEXT` instead, which is what the URL builder actually reads.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n operatorUserId: schemaShape.operatorUserId.foreignKeySpec({\n meaning: 'The platform administrator who requested the elevation.',\n whyItMatters: 'Server-authored from the session, never client-supplied, and it is the field the two-person rule measures against: `approve` refuses when the approver equals this value. An elevation whose subject the caller could choose would let one administrator mint application-wide access under another\\'s name and then sign it themselves.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n justification: schemaShape.justification.stringSpec({\n meaning: 'Why the operator needs to see across every tenant, in their own words.',\n whyItMatters: 'Required, and it carries more weight here than on the tenant grant: it is the ONLY thing the approving administrator has to decide on. A tenant grant\\'s approver knows their own tenant and their own support case; this approver knows nothing but this sentence. A second signature on an unstated reason is a countersignature on nothing.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n status: schemaShape.status.enumSpec({\n meaning: 'Where this elevation is in its lifecycle.',\n whyItMatters: 'Read together with `expiresAt`, never alone: the admission predicate accepts ACTIVE and then re-checks the window, so a grant whose window elapsed stops working whether or not anything has relabelled it. Every row starts PENDING_APPROVAL — there is no branch that reaches ACTIVE without a second administrator acting.',\n importance: FieldSemanticImportance.PRIMARY,\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'PlatformAccessGrantStatus',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n }),\n expiresAt: schemaShape.expiresAt.dateSpec({\n meaning: 'When the elevation stops working.',\n whyItMatters: 'The control, not the label. Server-authored from the requested duration and clamped to ONE HOUR — a quarter of the tenant grant\\'s ceiling, because this elevation reaches every customer at once and no customer can see or revoke it, so the clock is the only thing that ends it on its own.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n approvedByUserId: schemaShape.approvedByUserId.foreignKeySpec({\n meaning: 'The SECOND administrator who signed.',\n whyItMatters: 'The whole feature, as a field. It is optional in the schema because it is unset while pending and stays unset on a denied or revoked grant — never because an ACTIVE grant might lack one. The only writer of ACTIVE is `approve`, and `approve` refuses when this would equal `operatorUserId`.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n decisionReason: schemaShape.decisionReason.stringSpec({\n meaning: 'The approver\\'s reason for refusing, or the revoker\\'s reason for withdrawing.',\n whyItMatters: 'What a later reader needs to tell a refusal that was considered from one that was reflexive. Scrubbed on subject erasure, like the justification, because it is free text one administrator wrote about another\\'s request.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n },\n\n operations: {\n [Op.READ]: {\n purpose: 'Read one application-wide elevation request.',\n outcome: 'The request\\'s current state, including who asked, who signed and when the window closes.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation request is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator. There is no tenant-side reader here — an application-wide elevation has no customer to show it to, which is exactly why its approval had to become a second signature.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Read a pending request',\n request: { applicationAccessGrantId: APPLICATION_ACCESS_PENDING_GRANT_ID },\n response: applicationAccessPendingGrantExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.LIST]: {\n purpose: 'List elevation requests — the pending queue a second administrator works from, and the history a reviewer reads.',\n outcome: 'A page of elevation requests.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'A page of elevation requests is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: true,\n examples: [{\n title: 'Work the pending queue',\n request: { page: 1, limit: 20, sort: 'createdAt:desc' },\n response: { data: [applicationAccessPendingGrantExample], total: 1, page: 1, limit: 20 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [Op.COUNT]: {\n purpose: 'Count elevation requests matching a filter.',\n outcome: 'A number — how many requests are pending a signature, or how many were granted in a period.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The count is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: true,\n examples: [{\n title: 'How many requests are awaiting a second signature',\n request: { status: PlatformAccessGrantStatus.PENDING_APPROVAL },\n response: { count: 1 },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [ApplicationAccessGrants_Operations.REQUEST_ACCESS]: {\n operationId: ApplicationAccessGrants_Operations.REQUEST_ACCESS,\n purpose: 'Ask for a short, justified window in which the tenant-spanning reads become available.',\n outcome: 'A request in `pending_approval`, usable by nobody until a DIFFERENT platform administrator approves it. The window is recorded at creation and starts running then, so a request nobody signs simply lapses.',\n whenToUse: 'An operator needs a read that names no single tenant — the user directory, or the cross-tenant audit trail — for a support case or an incident that spans customers.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.CREATED_201, meaning: 'The elevation request was recorded and awaits a second administrator.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.BAD_REQUEST_400, when: 'The justification is missing or empty. It is required because it is the only thing the approver has to decide on.', errorCode: 'VALIDATION_FAILED' },\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Ask to see across tenants for a multi-customer incident',\n request: {\n justification: 'Incident INC-5107 spans several tenants; I need the cross-tenant audit view to find which are affected.',\n requestedDurationMinutes: 30,\n },\n response: applicationAccessPendingGrantExample,\n forStatus: HttpResponseStatusCode.CREATED_201,\n }],\n },\n [ApplicationAccessGrants_Operations.APPROVE]: {\n operationId: ApplicationAccessGrants_Operations.APPROVE,\n purpose: 'Sign another administrator\\'s request — the second signature.',\n outcome: 'The request becomes `active` and names the approver. The tenant-spanning reads become available to the REQUESTER, and to nobody else, until the window closes.',\n whenToUse: 'A platform administrator has read the requester\\'s justification and agrees the application-wide reach is warranted.',\n importance: FieldSemanticImportance.PRIMARY,\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation is now active, and its updated state — including the approver — is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The caller IS the requester — a request cannot be approved by the person who raised it — or the request is no longer `pending_approval`.' },\n ],\n idempotent: false,\n examples: [{\n title: 'A second administrator signs',\n request: {\n applicationAccessGrantId: APPLICATION_ACCESS_PENDING_GRANT_ID,\n decisionReason: 'Reviewed against INC-5107; scope and window are proportionate.',\n },\n response: applicationAccessActiveGrantExample,\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [ApplicationAccessGrants_Operations.DENY]: {\n operationId: ApplicationAccessGrants_Operations.DENY,\n purpose: 'Refuse a pending request.',\n outcome: 'The request becomes `denied` and cannot be retried; a later need requires a new request.',\n whenToUse: 'A platform administrator judges the reach unwarranted — or the requester themselves thinks better of it.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The request was denied, and its final state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The request is no longer `pending_approval`.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Withdraw your own request',\n request: {\n applicationAccessGrantId: APPLICATION_ACCESS_PENDING_GRANT_ID,\n decisionReason: 'The affected tenants were identified from the incident channel; the wide read is no longer needed.',\n },\n response: {\n ...applicationAccessPendingGrantExample,\n status: PlatformAccessGrantStatus.DENIED,\n decisionReason: 'The affected tenants were identified from the incident channel; the wide read is no longer needed.',\n updatedAt: '2026-09-09T13:06:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [ApplicationAccessGrants_Operations.REVOKE]: {\n operationId: ApplicationAccessGrants_Operations.REVOKE,\n purpose: 'End a pending or active elevation early.',\n outcome: 'The elevation becomes `revoked` and the tenant-spanning reads stop immediately instead of remaining available until the recorded expiry.',\n whenToUse: 'The support work finished before the window did, or a reviewer decides the reach should end now.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation was revoked, and its final state is returned.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not a platform super-administrator.' },\n { code: HttpResponseStatusCode.NOT_FOUND_404, when: 'No elevation request with the supplied id exists.' },\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The elevation is already denied, revoked or expired. Only a `pending_approval` or `active` one can be revoked.' },\n ],\n idempotent: false,\n examples: [{\n title: 'Close the window as soon as the incident is scoped',\n request: {\n applicationAccessGrantId: APPLICATION_ACCESS_ACTIVE_GRANT_ID,\n decisionReason: 'INC-5107 scoped to three tenants; per-tenant grants requested instead.',\n },\n response: {\n ...applicationAccessActiveGrantExample,\n status: PlatformAccessGrantStatus.REVOKED,\n decisionReason: 'INC-5107 scoped to three tenants; per-tenant grants requested instead.',\n updatedAt: '2026-09-09T13:18:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n [ApplicationAccessGrants_Operations.EXPIRE]: {\n operationId: ApplicationAccessGrants_Operations.EXPIRE,\n purpose: 'Relabel an active elevation whose window has closed.',\n outcome: 'The elevation reads `expired` rather than `active` in the queue and the history.',\n whenToUse: 'Never by hand. The credential-expiry sweep dispatches it and nothing else does — there is no route and no affordance, because nobody needs a button that declares a date has passed.',\n responseStatuses: [\n { code: HttpResponseStatusCode.OK_200, meaning: 'The elevation was relabelled expired.' },\n ],\n errorScenarios: [\n { code: HttpResponseStatusCode.CONFLICT_409, when: 'The elevation is not `active`. A denied or revoked one is terminal and must keep saying which — relabelling it would rewrite the decision history a reviewer reads.' },\n ],\n idempotent: false,\n examples: [{\n title: 'The sweep closes a lapsed window',\n request: {},\n response: {\n ...applicationAccessActiveGrantExample,\n status: PlatformAccessGrantStatus.EXPIRED,\n updatedAt: '2026-09-09T13:31:00.000Z',\n },\n forStatus: HttpResponseStatusCode.OK_200,\n }],\n },\n },\n\n businessConstraints: [\n 'THE control: `approve` refuses when the approver is the requester. Enforced TWICE, and neither half alone is the control — the operation\\'s `enabledCondition` makes the affordance disappear so no console renders an Approve button on one\\'s own request, and the custom implementation makes the transition impossible so a future variant authored without that condition cannot transition silently. The comparison itself lives in ONE exported predicate, which fails CLOSED when either identity is missing: an approval reaching the check with no decider has no second person behind it, and the naive inline form would admit exactly that case.',\n 'Customer approval is the industry ceiling and is structurally unavailable here — there is no single customer to ask — so a second signature is the strongest control that exists for this act. That is why AUTO-APPROVAL was rejected even though it is the tenant grant\\'s own default posture: that default is defensible only because a tenant can opt in above it, and there is no such party here.',\n 'A gated read is one this deployment can ALREADY SEE as application-wide. The admission predicate composes the two authorities that decide what the audit trail records — the unconfined scope-root directory read and the declared cross-tenant read — and adds no third derivation, so the set of reads that need an elevation and the set that leave evidence are the same set by construction.',\n 'The per-row tenant crossing is deliberately NOT gated on this grant. That door already works, approved by the customer it names; requiring an application-wide elevation there too would replace a customer-approvable control with a platform-internal one, which is a step DOWN the operator-access ladder.',\n 'Both grant resources are EXEMPT from the admission wholesale — this one and `platformAccessGrants`. An operator would otherwise need an application-wide grant in order to ask for one, and the second administrator would need one in order to read the queue and sign. The exemption is safe for the reason the tenant resource\\'s own bootstrap exemption is safe: these rows are the elevation ledger, they belong to no tenant, and reading them discloses no customer\\'s data.',\n 'Usability is EVALUATED, never read off `status`. A grant counts only when it is ACTIVE and `expiresAt` is still in the future, through the single predicate both grant resources share. The expiry sweep\\'s relabelling is bookkeeping for humans; if admission read the label, a lagging sweep would be an authorization hole rather than a stale display.',\n 'The window is SHORTER than a tenant elevation\\'s — 30 minutes by default against 60, one hour maximum against four — and the ORDER is the design rather than the numbers. A tenant elevation reaches one customer who can see and revoke it; this one reaches every customer and none of them can.',\n 'Terminal statuses are how an elevation ends. DENIED, EXPIRED and REVOKED are never edited back to life, and there is no delete verb of any kind: an elevation record either party could erase is not evidence.',\n ],\n }),\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"consumable-tokens.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/consumable-tokens.resource.specification.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,8BAA8B,EAAyB,MAAM,6BAA6B,CAAC;AAGzG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,qCAAqC,EAAE,8BA4KnD,CAAC"}
1
+ {"version":3,"file":"consumable-tokens.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/consumable-tokens.resource.specification.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,8BAA8B,EAAyB,MAAM,6BAA6B,CAAC;AAGzG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,qCAAqC,EAAE,8BA4KnD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"consumable-tokens.resource.specification.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/consumable-tokens.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,yBAAyB,EACzB,4DAA4D,IAAI,uBAAuB,GACxF,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,+BAA+B,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC9F,OAAO,EAAuC,qBAAqB,EAAE,MAAM,6BAA6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B,EAAE,WAAW,CAAC,oBAAoB,CAAC,WAAW,CAAC;YACjE,OAAO,EAAE,mGAAmG;YAC5G,YAAY,EAAE,6NAA6N;YAC3O,UAAU,EAAE,uBAAuB,CAAC,OAAO;SAC5C,CAAC;QAEF,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC;YACxC,OAAO,EAAE,2EAA2E;YACpF,YAAY,EAAE,kIAAkI;YAChJ,UAAU,EAAE,uBAAuB,CAAC,UAAU;SAC/C,CAAC;QAEF,SAAS,EAAE,WAAW,CAAC,SAAS,CAAC,QAAQ,CAAC;YACxC,OAAO,EAAE,4BAA4B;YACrC,YAAY,EAAE,kIAAkI;YAChJ,UAAU,EAAE,uBAAuB,CAAC,UAAU;SAC/C,CAAC;QAEF,SAAS,EAAE,WAAW,CAAC,SAAS,CAAC,QAAQ,CAAC;YACxC,OAAO,EAAE,+BAA+B;YACxC,YAAY,EAAE,8CAA8C;YAC5D,UAAU,EAAE,uBAAuB,CAAC,UAAU;SAC/C,CAAC;KACH;CACF,CAAC;AACF;;;;;;GAMG;AACH,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["import { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n ConsumableTokenSchemaBase,\n consumableTokens_ResourceConfiguration_InitializationFactory as consumableTokensFactory,\n} from '@wildo-ai/saas-backend-lib/consumable-token-models';\nimport { ConsumableToken_ConsumptionMode, ResourcePrimaryScope } from '@wildo-ai/saas-models';\nimport { type AnyResourceSpecificationConfig, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\n/**\n * Framework-owned specification for `consumableTokens` — the one bearer secret the engine mints on a\n * user's behalf, and, until this file existed, the ONLY registered engine resource with no\n * specification at all.\n *\n * ## Why it was the last one, and how that surfaced\n *\n * `backend-resource-registry.exports.ts` had already written the prediction down: *\"`CONSUMABLE_TOKENS`\n * has the identical shape [to `dataSeedRuns`] and was orphan-free only because nobody had authored its\n * spec yet.\"* What made the omission visible rather than merely known was the domain-model graph\n * grouping the engine by `subDomain` — 84 of 85 resources fell into a named box and this one landed in\n * a box called `unclassified`, which is exactly what that box exists to make impossible to miss.\n *\n * ## Audience is DEVELOPER, and that is a decision\n *\n * A token row is never rendered to the person it authenticates: they receive a link or a code, and the\n * row behind it is read by an operator diagnosing why a reset link was refused. `END_USER` would make\n * the label generator write consumer copy for a table whose only reader is debugging an auth flow.\n *\n * ## What this spec does NOT say\n *\n * Nothing here describes how a token is minted, exchanged or revoked — that is\n * `ConsumableTokenBackendService`'s contract, and this resource's own CRUD surface is not how any flow\n * uses it. The field prose below explains what a persisted row MEANS, which is the question an operator\n * reading one actually has.\n *\n * WHY THE EXPLICIT TYPE ANNOTATION: the same reason `data-seed-runs.resource.specification.ts` records\n * at length. This resource's schema and factory come from `@wildo-ai/saas-backend-lib`, not\n * `@wildo-ai/saas-models`, so the inferred type is nameable only through a non-portable nested path and\n * declaration emit rejects it with TS2742. `AnyResourceSpecificationConfig` loses nothing at the only\n * consumption point — `engineResourceSpecificationsByType` is `Record<string, AnyResourceSpecificationConfig>`,\n * so the precise instantiation was already erased there.\n */\nexport const consumableTokensResourceSpecification: AnyResourceSpecificationConfig = resourceSpecification(\n consumableTokensFactory,\n /*\n * The BASE, not the discriminated union. `ConsumableTokenSchema` is the union over the three\n * consumption modes, and a union has no `shape` for the callback to hand back — which is also why\n * the resource configuration itself is built from the base. `maxUses` therefore has no field spec\n * here: it exists only on the BOUNDED_REUSE variant, and its meaning is carried by the\n * `consumptionMode` enum spec that decides whether it is present at all.\n */\n ConsumableTokenSchemaBase,\n ({ schemaShape }) => ({\n purpose: 'Hold one bearer secret the engine issued on a principal’s behalf — a password-reset link, an email verification, an invitation acceptance, an OTP — together with the conditions under which presenting it is still allowed to do anything.',\n businessRole: 'The engine’s single answer to \"is this link or code still good, who does it act for, and what may it authorize once?\" — so every flow that mints a secret shares one expiry, revocation and consumption contract instead of inventing its own.',\n lifecycleRole: 'Minted with an expiry and a consumption mode, then ends exactly once: consumed (single-use), exhausted (bounded reuse), revoked, or expired. A settled row is kept as evidence rather than deleted, so an operator can tell \"never issued\" from \"issued and already used\".',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-backend-lib',\n exportName: 'ConsumableTokenSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-backend-lib',\n exportName: 'consumableTokens_ResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-backend-lib',\n exportName: 'BackendResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'CONSUMABLE_TOKENS',\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 },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Stable identifier of one issued token record.',\n whyItMatters: 'It is what an operator addresses when revoking a specific issuance, and what a delivery record refers back to.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n token: schemaShape.token.stringSpec({\n meaning: 'The secret itself — the value carried in the link or entered by the person.',\n whyItMatters: 'This field IS the credential, which is why it is declared as personal data of the credentials category and why the row is globally unique on it. Anything that can read this column can act as the principal the row names.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n tokenType: schemaShape.tokenType.stringSpec({\n meaning: 'Which flow issued this token — password reset, email verification, invitation, OTP, a file upload grant, and so on.',\n whyItMatters: 'It is the discriminator every consuming flow filters on, so a token minted for one purpose can never be redeemed by another.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n consumptionMode: schemaShape.consumptionMode.enumSpec({\n meaning: 'How many times presenting this token is allowed to succeed.',\n whyItMatters: 'It decides when the row settles, and it is the discriminator of the schema family: only BOUNDED_REUSE carries a maximum, so reading a use count without reading this first says nothing.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ConsumableToken_ConsumptionMode',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [ConsumableToken_ConsumptionMode.SINGLE_USE]: { meaning: 'One successful presentation settles the token. The shape of a reset link or an invitation.' },\n [ConsumableToken_ConsumptionMode.BOUNDED_REUSE]: { meaning: 'Succeeds up to a declared maximum, then settles. The shape of an OTP a person may mistype.' },\n [ConsumableToken_ConsumptionMode.EPHEMERAL_STATE]: { meaning: 'Carries state across a redirect rather than authorizing an action; it expires rather than being consumed.' },\n },\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n userId: schemaShape.userId.stringSpec({\n meaning: 'The user this token acts on behalf of, when it acts for one.',\n whyItMatters: 'Optional because some flows mint before an identity exists — a phone verification keyed on the number, an invitation keyed on the membership.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n organizationId: schemaShape.organizationId.stringSpec({\n meaning: 'The tenant the token was issued within, when it was issued within one.',\n whyItMatters: 'It is what keeps a token minted in one tenant from being redeemed against another.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n relatedId: schemaShape.relatedId.stringSpec({\n meaning: 'Whatever the issuing flow keys on: a membership id, a user id, or a phone number.',\n whyItMatters: 'Deliberately NOT a foreign key — the value set has no single target resource and its members are not all ids. Reading it as a reference is how phone-keyed tokens were made to fail on one database adapter and not the other.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n resourceIdentifier: schemaShape.resourceIdentifier.stringSpec({\n meaning: 'Names what `relatedId` points at, when what it points at is a resource record.',\n whyItMatters: 'Without it a correlator holding an id says which id but not of what.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n expiresAt: schemaShape.expiresAt.dateSpec({\n meaning: 'The moment after which presenting this token can no longer succeed.',\n whyItMatters: 'Every flow sets its own window, and this is the only field that ends a token nobody ever presents — so it is the first thing to read when a link \"stopped working\" with no consumption recorded.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n isConsumed: schemaShape.isConsumed.booleanSpec({\n meaning: 'Whether this token has settled and can no longer succeed.',\n whyItMatters: 'It is the difference between a link that was never used and one that already did its work — the distinction an operator is almost always trying to make.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n usesCount: schemaShape.usesCount.numberSpec({\n meaning: 'How many times this token has been successfully presented.',\n whyItMatters: 'Only meaningful against the consumption mode: under BOUNDED_REUSE it is read against the declared maximum, and under the other two a value above zero means the token is already settled.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n revokedAt: schemaShape.revokedAt.dateSpec({\n meaning: 'When this token was withdrawn before it was used or expired.',\n whyItMatters: 'A revoked token and an expired one both refuse, and only this field says which happened — which is the difference between \"someone cancelled it\" and \"it timed out\".',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n activeGenerationKey: schemaShape.activeGenerationKey.stringSpec({\n meaning: 'A sparse unique slot held by the currently live issuance of a replace-existing token.',\n whyItMatters: 'It makes two concurrent \"resend\" attempts contend at the database boundary instead of minting two simultaneously valid links; consuming or revoking releases the slot.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n createsOneOffSession: schemaShape.createsOneOffSession.booleanSpec({\n meaning: 'Whether redeeming this token establishes a short session rather than only authorizing one action.',\n whyItMatters: 'It is the token’s most powerful property and is deliberately unwritable through the resource CREATE and UPDATE pipelines — only the minting service sets it, which is what keeps the session-lifetime ceiling unbypassable.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n metadata: schemaShape.metadata.objectSpec({\n meaning: 'Free-form payload the issuing flow needs back when the token is redeemed.',\n whyItMatters: 'It is flow-defined and unvalidated by this resource, so its contents mean whatever the flow named in `tokenType` says they mean.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the token was issued.',\n whyItMatters: 'Read against `expiresAt` it gives the window the issuing flow chose, which is how an unexpectedly short-lived link is diagnosed.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the record last changed.',\n whyItMatters: 'For a settled token this is when it settled.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n },\n }),\n /*\n * APPLICATION, from the relationship that declares it: `APPLICATION → CONSUMABLE_TOKENS` carries\n * `isPrimaryScope: true`, while the `ORGANIZATIONS` relationship beside it is OPTIONAL and\n * STANDALONE — a token may be issued inside a tenant and may equally be issued before one exists\n * (a signup verification, a phone check). Declaring the tenant as the scope would make the second\n * shape unrepresentable.\n */\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
1
+ {"version":3,"file":"consumable-tokens.resource.specification.js","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/consumable-tokens.resource.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,GACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,yBAAyB,EACzB,4DAA4D,IAAI,uBAAuB,GACxF,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,+BAA+B,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC9F,OAAO,EAAuC,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzG,OAAO,EAAE,uBAAuB,EA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AW,CAAC;YACjE,OAAO,EAAE,mGAAmG;YAC5G,YAAY,EAAE,6NAA6N;YAC3O,UAAU,EAAE,uBAAuB,CAAC,OAAO;SAC5C,CAAC;QAEF,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC;YACxC,OAAO,EAAE,2EAA2E;YACpF,YAAY,EAAE,kIAAkI;YAChJ,UAAU,EAAE,uBAAuB,CAAC,UAAU;SAC/C,CAAC;QAEF,SAAS,EAAE,WAAW,CAAC,SAAS,CAAC,QAAQ,CAAC;YACxC,OAAO,EAAE,4BAA4B;YACrC,YAAY,EAAE,kIAAkI;YAChJ,UAAU,EAAE,uBAAuB,CAAC,UAAU;SAC/C,CAAC;QAEF,SAAS,EAAE,WAAW,CAAC,SAAS,CAAC,QAAQ,CAAC;YACxC,OAAO,EAAE,+BAA+B;YACxC,YAAY,EAAE,8CAA8C;YAC5D,UAAU,EAAE,uBAAuB,CAAC,UAAU;SAC/C,CAAC;KACH;CACF,CAAC;AACF;;;;;;GAMG;AACH,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAC3D,CAAC","sourcesContent":["import { LabelAudience } from '@wildo-ai/presets-components-models';\nimport {\n CodeDeclarationKind,\n CodeSymbolKind,\n FieldSemanticImportance,\n} from '@wildo-ai/zod-decorators';\nimport {\n ConsumableTokenSchemaBase,\n consumableTokens_ResourceConfiguration_InitializationFactory as consumableTokensFactory,\n} from '@wildo-ai/saas-backend-lib/consumable-token-models';\nimport { ConsumableToken_ConsumptionMode, ResourcePrimaryScope } from '@wildo-ai/saas-models';\nimport { type AnyResourceSpecificationConfig, resourceSpecification } from '~wildo-specifications/_core';\nimport { EngineResourceSubDomain } from '../../engine-resource-sub-domain';\n\n/**\n * Framework-owned specification for `consumableTokens` — the one bearer secret the engine mints on a\n * user's behalf, and, until this file existed, the ONLY registered engine resource with no\n * specification at all.\n *\n * ## Why it was the last one, and how that surfaced\n *\n * `backend-resource-registry.exports.ts` had already written the prediction down: *\"`CONSUMABLE_TOKENS`\n * has the identical shape [to `dataSeedRuns`] and was orphan-free only because nobody had authored its\n * spec yet.\"* What made the omission visible rather than merely known was the domain-model graph\n * grouping the engine by `subDomain` — 84 of 85 resources fell into a named box and this one landed in\n * a box called `unclassified`, which is exactly what that box exists to make impossible to miss.\n *\n * ## Audience is DEVELOPER, and that is a decision\n *\n * A token row is never rendered to the person it authenticates: they receive a link or a code, and the\n * row behind it is read by an operator diagnosing why a reset link was refused. `END_USER` would make\n * the label generator write consumer copy for a table whose only reader is debugging an auth flow.\n *\n * ## What this spec does NOT say\n *\n * Nothing here describes how a token is minted, exchanged or revoked — that is\n * `ConsumableTokenBackendService`'s contract, and this resource's own CRUD surface is not how any flow\n * uses it. The field prose below explains what a persisted row MEANS, which is the question an operator\n * reading one actually has.\n *\n * WHY THE EXPLICIT TYPE ANNOTATION: the same reason `data-seed-runs.resource.specification.ts` records\n * at length. This resource's schema and factory come from `@wildo-ai/saas-backend-lib`, not\n * `@wildo-ai/saas-models`, so the inferred type is nameable only through a non-portable nested path and\n * declaration emit rejects it with TS2742. `AnyResourceSpecificationConfig` loses nothing at the only\n * consumption point — `engineResourceSpecificationsByType` is `Record<string, AnyResourceSpecificationConfig>`,\n * so the precise instantiation was already erased there.\n */\nexport const consumableTokensResourceSpecification: AnyResourceSpecificationConfig = resourceSpecification(\n consumableTokensFactory,\n /*\n * The BASE, not the discriminated union. `ConsumableTokenSchema` is the union over the three\n * consumption modes, and a union has no `shape` for the callback to hand back — which is also why\n * the resource configuration itself is built from the base. `maxUses` therefore has no field spec\n * here: it exists only on the BOUNDED_REUSE variant, and its meaning is carried by the\n * `consumptionMode` enum spec that decides whether it is present at all.\n */\n ConsumableTokenSchemaBase,\n ({ schemaShape }) => ({\n purpose: 'Hold one bearer secret the engine issued on a principal’s behalf — a password-reset link, an email verification, an invitation acceptance, an OTP — together with the conditions under which presenting it is still allowed to do anything.',\n businessRole: 'The engine’s single answer to \"is this link or code still good, who does it act for, and what may it authorize once?\" — so every flow that mints a secret shares one expiry, revocation and consumption contract instead of inventing its own.',\n lifecycleRole: 'Minted with an expiry and a consumption mode, then ends exactly once: consumed (single-use), exhausted (bounded reuse), revoked, or expired. A settled row is kept as evidence rather than deleted, so an operator can tell \"never issued\" from \"issued and already used\".',\n audience: LabelAudience.DEVELOPER,\n subDomain: EngineResourceSubDomain.AUTH,\n codeHandling: {\n mainSchema: {\n packageName: '@wildo-ai/saas-backend-lib',\n exportName: 'ConsumableTokenSchema',\n symbolKind: CodeSymbolKind.SCHEMA,\n declarationKind: CodeDeclarationKind.ZOD_SCHEMA,\n },\n resourceFactory: {\n packageName: '@wildo-ai/saas-backend-lib',\n exportName: 'consumableTokens_ResourceConfiguration_InitializationFactory',\n symbolKind: CodeSymbolKind.FACTORY,\n declarationKind: CodeDeclarationKind.FUNCTION,\n },\n resourceType: {\n enumDeclaration: {\n packageName: '@wildo-ai/saas-backend-lib',\n exportName: 'BackendResourceType',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n memberName: 'CONSUMABLE_TOKENS',\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 },\n\n fields: {\n _id: schemaShape._id.stringSpec({\n meaning: 'Stable identifier of one issued token record.',\n whyItMatters: 'It is what an operator addresses when revoking a specific issuance, and what a delivery record refers back to.',\n semanticRole: 'identifier',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n token: schemaShape.token.stringSpec({\n meaning: 'The secret itself — the value carried in the link or entered by the person.',\n whyItMatters: 'This field IS the credential, which is why it is declared as personal data of the credentials category and why the row is globally unique on it. Anything that can read this column can act as the principal the row names.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n tokenType: schemaShape.tokenType.stringSpec({\n meaning: 'Which flow issued this token — password reset, email verification, invitation, OTP, a file upload grant, and so on.',\n whyItMatters: 'It is the discriminator every consuming flow filters on, so a token minted for one purpose can never be redeemed by another.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n consumptionMode: schemaShape.consumptionMode.enumSpec({\n meaning: 'How many times presenting this token is allowed to succeed.',\n whyItMatters: 'It decides when the row settles, and it is the discriminator of the schema family: only BOUNDED_REUSE carries a maximum, so reading a use count without reading this first says nothing.',\n enumDeclaration: {\n packageName: '@wildo-ai/saas-models',\n exportName: 'ConsumableToken_ConsumptionMode',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n },\n values: {\n [ConsumableToken_ConsumptionMode.SINGLE_USE]: { meaning: 'One successful presentation settles the token. The shape of a reset link or an invitation.' },\n [ConsumableToken_ConsumptionMode.BOUNDED_REUSE]: { meaning: 'Succeeds up to a declared maximum, then settles. The shape of an OTP a person may mistype.' },\n [ConsumableToken_ConsumptionMode.EPHEMERAL_STATE]: { meaning: 'Carries state across a redirect rather than authorizing an action; it expires rather than being consumed.' },\n },\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n userId: schemaShape.userId.stringSpec({\n meaning: 'The user this token acts on behalf of, when it acts for one.',\n whyItMatters: 'Optional because some flows mint before an identity exists — a phone verification keyed on the number, an invitation keyed on the membership.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n organizationId: schemaShape.organizationId.stringSpec({\n meaning: 'The tenant the token was issued within, when it was issued within one.',\n whyItMatters: 'It is what keeps a token minted in one tenant from being redeemed against another.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n relatedId: schemaShape.relatedId.stringSpec({\n meaning: 'Whatever the issuing flow keys on: a membership id, a user id, or a phone number.',\n whyItMatters: 'Deliberately NOT a foreign key — the value set has no single target resource and its members are not all ids. Reading it as a reference is how phone-keyed tokens were made to fail on one database adapter and not the other.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n resourceIdentifier: schemaShape.resourceIdentifier.stringSpec({\n meaning: 'Names what `relatedId` points at, when what it points at is a resource record.',\n whyItMatters: 'Without it a correlator holding an id says which id but not of what.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n expiresAt: schemaShape.expiresAt.dateSpec({\n meaning: 'The moment after which presenting this token can no longer succeed.',\n whyItMatters: 'Every flow sets its own window, and this is the only field that ends a token nobody ever presents — so it is the first thing to read when a link \"stopped working\" with no consumption recorded.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n isConsumed: schemaShape.isConsumed.booleanSpec({\n meaning: 'Whether this token has settled and can no longer succeed.',\n whyItMatters: 'It is the difference between a link that was never used and one that already did its work — the distinction an operator is almost always trying to make.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n usesCount: schemaShape.usesCount.numberSpec({\n meaning: 'How many times this token has been successfully presented.',\n whyItMatters: 'Only meaningful against the consumption mode: under BOUNDED_REUSE it is read against the declared maximum, and under the other two a value above zero means the token is already settled.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n revokedAt: schemaShape.revokedAt.dateSpec({\n meaning: 'When this token was withdrawn before it was used or expired.',\n whyItMatters: 'A revoked token and an expired one both refuse, and only this field says which happened — which is the difference between \"someone cancelled it\" and \"it timed out\".',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n activeGenerationKey: schemaShape.activeGenerationKey.stringSpec({\n meaning: 'A sparse unique slot held by the currently live issuance of a replace-existing token.',\n whyItMatters: 'It makes two concurrent \"resend\" attempts contend at the database boundary instead of minting two simultaneously valid links; consuming or revoking releases the slot.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n createsOneOffSession: schemaShape.createsOneOffSession.booleanSpec({\n meaning: 'Whether redeeming this token establishes a short session rather than only authorizing one action.',\n whyItMatters: 'It is the token’s most powerful property and is deliberately unwritable through the resource CREATE and UPDATE pipelines — only the minting service sets it, which is what keeps the session-lifetime ceiling unbypassable.',\n importance: FieldSemanticImportance.PRIMARY,\n }),\n\n metadata: schemaShape.metadata.objectSpec({\n meaning: 'Free-form payload the issuing flow needs back when the token is redeemed.',\n whyItMatters: 'It is flow-defined and unvalidated by this resource, so its contents mean whatever the flow named in `tokenType` says they mean.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n createdAt: schemaShape.createdAt.dateSpec({\n meaning: 'When the token was issued.',\n whyItMatters: 'Read against `expiresAt` it gives the window the issuing flow chose, which is how an unexpectedly short-lived link is diagnosed.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n\n updatedAt: schemaShape.updatedAt.dateSpec({\n meaning: 'When the record last changed.',\n whyItMatters: 'For a settled token this is when it settled.',\n importance: FieldSemanticImportance.CONTEXTUAL,\n }),\n },\n }),\n /*\n * APPLICATION, from the relationship that declares it: `APPLICATION → CONSUMABLE_TOKENS` carries\n * `isPrimaryScope: true`, while the `ORGANIZATIONS` relationship beside it is OPTIONAL and\n * STANDALONE — a token may be issued inside a tenant and may equally be issued before one exists\n * (a signup verification, a phone check). Declaring the tenant as the scope would make the second\n * shape unrepresentable.\n */\n { resourcePrimaryScope: ResourcePrimaryScope.APPLICATION },\n);\n"]}
@@ -1,6 +1,7 @@
1
1
  export * from './oauth-consent-grants.resource.specification';
2
2
  export * from './organization-api-keys.resource.specification';
3
3
  export * from './organization-oauth-clients.resource.specification';
4
+ export * from './application-access-grants.resource.specification';
4
5
  export * from './platform-access-grants.resource.specification';
5
6
  export * from './scim-provisioning-config.resource.specification';
6
7
  export * from './scim-tokens.resource.specification';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qDAAqD,CAAC;AACpE,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qDAAqD,CAAC;AACpE,cAAc,oDAAoD,CAAC;AACnE,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * from './oauth-consent-grants.resource.specification.js';
2
2
  export * from './organization-api-keys.resource.specification.js';
3
3
  export * from './organization-oauth-clients.resource.specification.js';
4
+ export * from './application-access-grants.resource.specification.js';
4
5
  export * from './platform-access-grants.resource.specification.js';
5
6
  export * from './scim-provisioning-config.resource.specification.js';
6
7
  export * from './scim-tokens.resource.specification.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qDAAqD,CAAC;AACpE,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC","sourcesContent":["export * from './oauth-consent-grants.resource.specification';\nexport * from './organization-api-keys.resource.specification';\nexport * from './organization-oauth-clients.resource.specification';\nexport * from './platform-access-grants.resource.specification';\nexport * from './scim-provisioning-config.resource.specification';\nexport * from './scim-tokens.resource.specification';\nexport * from './siem-delivery-dlq.resource.specification';\nexport * from './siem-export-config.resource.specification';\nexport * from './sso-config.resource.specification';\nexport * from './sso-connections.resource.specification';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qDAAqD,CAAC;AACpE,cAAc,oDAAoD,CAAC;AACnE,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC","sourcesContent":["export * from './oauth-consent-grants.resource.specification';\nexport * from './organization-api-keys.resource.specification';\nexport * from './organization-oauth-clients.resource.specification';\nexport * from './application-access-grants.resource.specification';\nexport * from './platform-access-grants.resource.specification';\nexport * from './scim-provisioning-config.resource.specification';\nexport * from './scim-tokens.resource.specification';\nexport * from './siem-delivery-dlq.resource.specification';\nexport * from './siem-export-config.resource.specification';\nexport * from './sso-config.resource.specification';\nexport * from './sso-connections.resource.specification';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"oauth-consent-grants.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/auth/resources/oauth-consent-grants.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAQH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI5B,MAAM,uBAAuB,CAAC;AA4D/B,eAAO,MAAM,uCAAuC;;;;;;;;;kCAoOnD,CAAC"}
1
+ {"version":3,"file":"oauth-consent-grants.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/auth/resources/oauth-consent-grants.resource.specification.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAQH,OAAO,EACL,qBAAqB,IAAI,EAAE,EAI5B,MAAM,uBAAuB,CAAC;AA4D/B,eAAO,MAAM,uCAAuC;;;;;;;;;kCAoOnD,CAAC"}