@wildo-ai/saas-models 1.0.1 → 1.1.1

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 (1282) hide show
  1. package/LICENSE +34 -0
  2. package/dist/esm/.builder.pid +9 -0
  3. package/dist/esm/__tests__/setup.d.ts.map +1 -1
  4. package/dist/esm/__tests__/setup.js +18 -3
  5. package/dist/esm/__tests__/setup.js.map +1 -1
  6. package/dist/esm/_inspect.d.ts +2 -0
  7. package/dist/esm/_inspect.d.ts.map +1 -0
  8. package/dist/esm/_inspect.js +3 -0
  9. package/dist/esm/_inspect.js.map +1 -0
  10. package/dist/esm/applications/application-metadata.shared.resources-config.schemas.d.ts +6 -6
  11. package/dist/esm/applications/application-metadata.shared.resources-config.schemas.d.ts.map +1 -1
  12. package/dist/esm/applications/application-metadata.shared.resources-config.schemas.js +5 -1
  13. package/dist/esm/applications/application-metadata.shared.resources-config.schemas.js.map +1 -1
  14. package/dist/esm/applications/application-subject.shared.schemas.d.ts +51 -0
  15. package/dist/esm/applications/application-subject.shared.schemas.d.ts.map +1 -0
  16. package/dist/esm/applications/application-subject.shared.schemas.js +56 -0
  17. package/dist/esm/applications/application-subject.shared.schemas.js.map +1 -0
  18. package/dist/esm/applications/application-versions.shared.resources-config.schemas.d.ts +9 -11
  19. package/dist/esm/applications/application-versions.shared.resources-config.schemas.d.ts.map +1 -1
  20. package/dist/esm/applications/application-versions.shared.resources-config.schemas.js +42 -74
  21. package/dist/esm/applications/application-versions.shared.resources-config.schemas.js.map +1 -1
  22. package/dist/esm/applications/applications-context.schemas.d.ts +228 -200
  23. package/dist/esm/applications/applications-context.schemas.d.ts.map +1 -1
  24. package/dist/esm/applications/applications-context.schemas.js +1 -1
  25. package/dist/esm/applications/applications-context.schemas.js.map +1 -1
  26. package/dist/esm/applications/applications.shared.resources-config.schemas.d.ts +4 -9
  27. package/dist/esm/applications/applications.shared.resources-config.schemas.d.ts.map +1 -1
  28. package/dist/esm/applications/applications.shared.resources-config.schemas.js +103 -87
  29. package/dist/esm/applications/applications.shared.resources-config.schemas.js.map +1 -1
  30. package/dist/esm/applications/applications.shared.schemas.d.ts +59 -5
  31. package/dist/esm/applications/applications.shared.schemas.d.ts.map +1 -1
  32. package/dist/esm/applications/applications.shared.schemas.js +80 -3
  33. package/dist/esm/applications/applications.shared.schemas.js.map +1 -1
  34. package/dist/esm/billing/billing-account.shared.resources-config.schemas.d.ts +4 -4
  35. package/dist/esm/billing/billing-account.shared.resources-config.schemas.d.ts.map +1 -1
  36. package/dist/esm/billing/billing-account.shared.resources-config.schemas.js +98 -25
  37. package/dist/esm/billing/billing-account.shared.resources-config.schemas.js.map +1 -1
  38. package/dist/esm/billing/billing-account.shared.schemas.d.ts +32 -8
  39. package/dist/esm/billing/billing-account.shared.schemas.d.ts.map +1 -1
  40. package/dist/esm/billing/billing-account.shared.schemas.js +67 -2
  41. package/dist/esm/billing/billing-account.shared.schemas.js.map +1 -1
  42. package/dist/esm/billing/billing-configuration.shared.schemas.d.ts +8 -8
  43. package/dist/esm/billing/billing-configuration.shared.schemas.d.ts.map +1 -1
  44. package/dist/esm/billing/billing-configuration.shared.schemas.js +2 -3
  45. package/dist/esm/billing/billing-configuration.shared.schemas.js.map +1 -1
  46. package/dist/esm/billing/billing-enums.shared.schemas.d.ts +75 -0
  47. package/dist/esm/billing/billing-enums.shared.schemas.d.ts.map +1 -1
  48. package/dist/esm/billing/billing-enums.shared.schemas.js +78 -1
  49. package/dist/esm/billing/billing-enums.shared.schemas.js.map +1 -1
  50. package/dist/esm/billing/billing-types.shared.schemas.d.ts +204 -42
  51. package/dist/esm/billing/billing-types.shared.schemas.d.ts.map +1 -1
  52. package/dist/esm/billing/billing-types.shared.schemas.js +76 -1
  53. package/dist/esm/billing/billing-types.shared.schemas.js.map +1 -1
  54. package/dist/esm/billing/credit-pool.shared.resources-config.schemas.d.ts +8 -6
  55. package/dist/esm/billing/credit-pool.shared.resources-config.schemas.d.ts.map +1 -1
  56. package/dist/esm/billing/credit-pool.shared.resources-config.schemas.js +48 -16
  57. package/dist/esm/billing/credit-pool.shared.resources-config.schemas.js.map +1 -1
  58. package/dist/esm/billing/credit-pool.shared.schemas.d.ts +9 -9
  59. package/dist/esm/billing/credit-pool.shared.schemas.d.ts.map +1 -1
  60. package/dist/esm/billing/credit-pool.shared.schemas.js +13 -6
  61. package/dist/esm/billing/credit-pool.shared.schemas.js.map +1 -1
  62. package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.d.ts +2 -2
  63. package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.d.ts.map +1 -1
  64. package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.js +26 -17
  65. package/dist/esm/billing/invoice-ref.shared.resources-config.schemas.js.map +1 -1
  66. package/dist/esm/billing/invoice-ref.shared.schemas.d.ts +10 -10
  67. package/dist/esm/billing/invoice-ref.shared.schemas.d.ts.map +1 -1
  68. package/dist/esm/billing/invoice-ref.shared.schemas.js +32 -7
  69. package/dist/esm/billing/invoice-ref.shared.schemas.js.map +1 -1
  70. package/dist/esm/billing/price.shared.resources-config.schemas.d.ts +7 -7
  71. package/dist/esm/billing/price.shared.resources-config.schemas.d.ts.map +1 -1
  72. package/dist/esm/billing/price.shared.resources-config.schemas.js +23 -5
  73. package/dist/esm/billing/price.shared.resources-config.schemas.js.map +1 -1
  74. package/dist/esm/billing/price.shared.schemas.d.ts +4 -4
  75. package/dist/esm/billing/price.shared.schemas.d.ts.map +1 -1
  76. package/dist/esm/billing/price.shared.schemas.js +1 -1
  77. package/dist/esm/billing/price.shared.schemas.js.map +1 -1
  78. package/dist/esm/billing/product-behavior-policy.shared.schemas.d.ts +9 -9
  79. package/dist/esm/billing/product-behavior-policy.shared.schemas.d.ts.map +1 -1
  80. package/dist/esm/billing/product-behavior-policy.shared.schemas.js +10 -2
  81. package/dist/esm/billing/product-behavior-policy.shared.schemas.js.map +1 -1
  82. package/dist/esm/billing/product-definition.shared.schemas.d.ts +27 -27
  83. package/dist/esm/billing/product-definition.shared.schemas.d.ts.map +1 -1
  84. package/dist/esm/billing/product-definition.shared.schemas.js +39 -9
  85. package/dist/esm/billing/product-definition.shared.schemas.js.map +1 -1
  86. package/dist/esm/billing/product.shared.resources-config.schemas.d.ts +22 -22
  87. package/dist/esm/billing/product.shared.resources-config.schemas.d.ts.map +1 -1
  88. package/dist/esm/billing/product.shared.resources-config.schemas.js +6 -6
  89. package/dist/esm/billing/product.shared.resources-config.schemas.js.map +1 -1
  90. package/dist/esm/billing/product.shared.schemas.d.ts +19 -19
  91. package/dist/esm/billing/product.shared.schemas.d.ts.map +1 -1
  92. package/dist/esm/billing/product.shared.schemas.js +1 -1
  93. package/dist/esm/billing/product.shared.schemas.js.map +1 -1
  94. package/dist/esm/billing/promotions.shared.resources-config.schemas.d.ts +7 -7
  95. package/dist/esm/billing/promotions.shared.resources-config.schemas.d.ts.map +1 -1
  96. package/dist/esm/billing/promotions.shared.resources-config.schemas.js +34 -6
  97. package/dist/esm/billing/promotions.shared.resources-config.schemas.js.map +1 -1
  98. package/dist/esm/billing/promotions.shared.schemas.d.ts +2 -2
  99. package/dist/esm/billing/promotions.shared.schemas.d.ts.map +1 -1
  100. package/dist/esm/billing/promotions.shared.schemas.js +1 -1
  101. package/dist/esm/billing/promotions.shared.schemas.js.map +1 -1
  102. package/dist/esm/billing/referral.shared.resources-config.schemas.d.ts +12 -12
  103. package/dist/esm/billing/referral.shared.resources-config.schemas.d.ts.map +1 -1
  104. package/dist/esm/billing/referral.shared.resources-config.schemas.js +5 -5
  105. package/dist/esm/billing/referral.shared.resources-config.schemas.js.map +1 -1
  106. package/dist/esm/billing/referral.shared.schemas.d.ts +7 -7
  107. package/dist/esm/billing/referral.shared.schemas.d.ts.map +1 -1
  108. package/dist/esm/billing/referral.shared.schemas.js +36 -8
  109. package/dist/esm/billing/referral.shared.schemas.js.map +1 -1
  110. package/dist/esm/billing/subscription.shared.resources-config.schemas.d.ts +6 -6
  111. package/dist/esm/billing/subscription.shared.resources-config.schemas.d.ts.map +1 -1
  112. package/dist/esm/billing/subscription.shared.resources-config.schemas.js +51 -24
  113. package/dist/esm/billing/subscription.shared.resources-config.schemas.js.map +1 -1
  114. package/dist/esm/billing/subscription.shared.schemas.d.ts +13 -13
  115. package/dist/esm/billing/subscription.shared.schemas.d.ts.map +1 -1
  116. package/dist/esm/billing/subscription.shared.schemas.js +37 -5
  117. package/dist/esm/billing/subscription.shared.schemas.js.map +1 -1
  118. package/dist/esm/billing/usage-record.shared.resources-config.schemas.d.ts +2 -2
  119. package/dist/esm/billing/usage-record.shared.resources-config.schemas.d.ts.map +1 -1
  120. package/dist/esm/billing/usage-record.shared.resources-config.schemas.js +23 -14
  121. package/dist/esm/billing/usage-record.shared.resources-config.schemas.js.map +1 -1
  122. package/dist/esm/billing/usage-record.shared.schemas.d.ts +15 -12
  123. package/dist/esm/billing/usage-record.shared.schemas.d.ts.map +1 -1
  124. package/dist/esm/billing/usage-record.shared.schemas.js +34 -7
  125. package/dist/esm/billing/usage-record.shared.schemas.js.map +1 -1
  126. package/dist/esm/charts/aggregation-query.shared.schemas.d.ts +36 -36
  127. package/dist/esm/charts/aggregation-query.shared.schemas.d.ts.map +1 -1
  128. package/dist/esm/charts/aggregation-query.shared.schemas.js +6 -6
  129. package/dist/esm/charts/aggregation-query.shared.schemas.js.map +1 -1
  130. package/dist/esm/charts/aggregation.shared.definitions.d.ts.map +1 -1
  131. package/dist/esm/charts/aggregation.shared.definitions.js +1 -1
  132. package/dist/esm/charts/aggregation.shared.definitions.js.map +1 -1
  133. package/dist/esm/charts/chart-definition-builder.shared.d.ts +5 -3
  134. package/dist/esm/charts/chart-definition-builder.shared.d.ts.map +1 -1
  135. package/dist/esm/charts/chart-definition-builder.shared.js +4 -2
  136. package/dist/esm/charts/chart-definition-builder.shared.js.map +1 -1
  137. package/dist/esm/{runtime/companion-artifact-placement.shared.definitions.d.ts → companion/artifact-placement.shared.definitions.d.ts} +2 -3
  138. package/dist/esm/companion/artifact-placement.shared.definitions.d.ts.map +1 -0
  139. package/dist/esm/{runtime/companion-artifact-placement.shared.definitions.js → companion/artifact-placement.shared.definitions.js} +1 -2
  140. package/dist/esm/companion/artifact-placement.shared.definitions.js.map +1 -0
  141. package/dist/esm/companion/provider-discovery.shared.schemas.d.ts +131 -0
  142. package/dist/esm/companion/provider-discovery.shared.schemas.d.ts.map +1 -0
  143. package/dist/esm/companion/provider-discovery.shared.schemas.js +122 -0
  144. package/dist/esm/companion/provider-discovery.shared.schemas.js.map +1 -0
  145. package/dist/esm/companion/shared-library-companion.shared.definitions.d.ts +6 -0
  146. package/dist/esm/companion/shared-library-companion.shared.definitions.d.ts.map +1 -0
  147. package/dist/esm/companion/shared-library-companion.shared.definitions.js +1 -0
  148. package/dist/esm/companion/shared-library-companion.shared.definitions.js.map +1 -0
  149. package/dist/esm/companion-exports.d.ts +4 -0
  150. package/dist/esm/companion-exports.d.ts.map +1 -0
  151. package/dist/esm/companion-exports.js +4 -0
  152. package/dist/esm/companion-exports.js.map +1 -0
  153. package/dist/esm/compliance/audit-trails/audit-actor.shared.schemas.d.ts +65 -0
  154. package/dist/esm/compliance/audit-trails/audit-actor.shared.schemas.d.ts.map +1 -0
  155. package/dist/esm/compliance/audit-trails/audit-actor.shared.schemas.js +68 -0
  156. package/dist/esm/compliance/audit-trails/audit-actor.shared.schemas.js.map +1 -0
  157. package/dist/esm/compliance/audit-trails/audit-log-sink.shared.schemas.d.ts +147 -0
  158. package/dist/esm/compliance/audit-trails/audit-log-sink.shared.schemas.d.ts.map +1 -0
  159. package/dist/esm/compliance/audit-trails/audit-log-sink.shared.schemas.js +20 -0
  160. package/dist/esm/compliance/audit-trails/audit-log-sink.shared.schemas.js.map +1 -0
  161. package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.d.ts +60 -16
  162. package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.d.ts.map +1 -1
  163. package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.js +77 -10
  164. package/dist/esm/compliance/audit-trails/audit-logs.shared.resources-config.schemas.js.map +1 -1
  165. package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.d.ts +58 -0
  166. package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.d.ts.map +1 -0
  167. package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.js +74 -0
  168. package/dist/esm/compliance/audit-trails/audit-trail-config.shared.schemas.js.map +1 -0
  169. package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.d.ts +1949 -115
  170. package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.d.ts.map +1 -1
  171. package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.js +2229 -11
  172. package/dist/esm/compliance/audit-trails/auditable-events.shared.schema.js.map +1 -1
  173. package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.d.ts +25 -10
  174. package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.d.ts.map +1 -1
  175. package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.js +226 -3
  176. package/dist/esm/compliance/audit-trails/security-audit-event-envelope.shared.schema.js.map +1 -1
  177. package/dist/esm/compliance/data-classification/data-classification.shared.schemas.d.ts +8 -0
  178. package/dist/esm/compliance/data-classification/data-classification.shared.schemas.d.ts.map +1 -0
  179. package/dist/esm/compliance/data-classification/data-classification.shared.schemas.js +9 -0
  180. package/dist/esm/compliance/data-classification/data-classification.shared.schemas.js.map +1 -0
  181. package/dist/esm/compliance/documents/governed-documents.shared.schemas.d.ts +524 -0
  182. package/dist/esm/compliance/documents/governed-documents.shared.schemas.d.ts.map +1 -0
  183. package/dist/esm/compliance/documents/governed-documents.shared.schemas.js +482 -0
  184. package/dist/esm/compliance/documents/governed-documents.shared.schemas.js.map +1 -0
  185. package/dist/esm/compliance/privacy/ai-use-posture.shared.schemas.d.ts +112 -0
  186. package/dist/esm/compliance/privacy/ai-use-posture.shared.schemas.d.ts.map +1 -0
  187. package/dist/esm/compliance/privacy/ai-use-posture.shared.schemas.js +120 -0
  188. package/dist/esm/compliance/privacy/ai-use-posture.shared.schemas.js.map +1 -0
  189. package/dist/esm/compliance/privacy/client-storage.shared.schemas.d.ts +134 -0
  190. package/dist/esm/compliance/privacy/client-storage.shared.schemas.d.ts.map +1 -0
  191. package/dist/esm/compliance/privacy/client-storage.shared.schemas.js +129 -0
  192. package/dist/esm/compliance/privacy/client-storage.shared.schemas.js.map +1 -0
  193. package/dist/esm/compliance/privacy/data-retention.shared.schemas.d.ts +1 -1
  194. package/dist/esm/compliance/privacy/data-retention.shared.schemas.d.ts.map +1 -1
  195. package/dist/esm/compliance/privacy/data-retention.shared.schemas.js +1 -1
  196. package/dist/esm/compliance/privacy/data-retention.shared.schemas.js.map +1 -1
  197. package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.d.ts +50 -0
  198. package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.d.ts.map +1 -0
  199. package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.js +98 -0
  200. package/dist/esm/compliance/privacy/impersonalization-scrub.shared.utils.js.map +1 -0
  201. package/dist/esm/compliance/privacy/impersonalization.shared.schemas.d.ts +181 -0
  202. package/dist/esm/compliance/privacy/impersonalization.shared.schemas.d.ts.map +1 -0
  203. package/dist/esm/compliance/privacy/impersonalization.shared.schemas.js +184 -0
  204. package/dist/esm/compliance/privacy/impersonalization.shared.schemas.js.map +1 -0
  205. package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.d.ts +230 -0
  206. package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.d.ts.map +1 -0
  207. package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.js +232 -0
  208. package/dist/esm/compliance/privacy/operator-compliance-identity.shared.schemas.js.map +1 -0
  209. package/dist/esm/compliance/privacy/personal-data-category.shared.schemas.d.ts +220 -0
  210. package/dist/esm/compliance/privacy/personal-data-category.shared.schemas.d.ts.map +1 -0
  211. package/dist/esm/compliance/privacy/personal-data-category.shared.schemas.js +252 -0
  212. package/dist/esm/compliance/privacy/personal-data-category.shared.schemas.js.map +1 -0
  213. package/dist/esm/compliance/privacy/personal-data-declaration.shared.utils.d.ts +75 -0
  214. package/dist/esm/compliance/privacy/personal-data-declaration.shared.utils.d.ts.map +1 -0
  215. package/dist/esm/compliance/privacy/personal-data-declaration.shared.utils.js +43 -0
  216. package/dist/esm/compliance/privacy/personal-data-declaration.shared.utils.js.map +1 -0
  217. package/dist/esm/compliance/privacy/privacy.shared.schemas.d.ts +56 -43
  218. package/dist/esm/compliance/privacy/privacy.shared.schemas.d.ts.map +1 -1
  219. package/dist/esm/compliance/privacy/privacy.shared.schemas.js +72 -18
  220. package/dist/esm/compliance/privacy/privacy.shared.schemas.js.map +1 -1
  221. package/dist/esm/compliance/privacy/redaction.shared.schemas.d.ts +21 -3
  222. package/dist/esm/compliance/privacy/redaction.shared.schemas.d.ts.map +1 -1
  223. package/dist/esm/compliance/privacy/redaction.shared.schemas.js +19 -1
  224. package/dist/esm/compliance/privacy/redaction.shared.schemas.js.map +1 -1
  225. package/dist/esm/compliance/privacy/retention-schedule.shared.schemas.d.ts +124 -0
  226. package/dist/esm/compliance/privacy/retention-schedule.shared.schemas.d.ts.map +1 -0
  227. package/dist/esm/compliance/privacy/retention-schedule.shared.schemas.js +107 -0
  228. package/dist/esm/compliance/privacy/retention-schedule.shared.schemas.js.map +1 -0
  229. package/dist/esm/compliance/privacy/sharing.shared.schemas.d.ts.map +1 -1
  230. package/dist/esm/compliance/privacy/sharing.shared.schemas.js +1 -1
  231. package/dist/esm/compliance/privacy/sharing.shared.schemas.js.map +1 -1
  232. package/dist/esm/compliance/privacy/subject-erasure.shared.schemas.d.ts +279 -0
  233. package/dist/esm/compliance/privacy/subject-erasure.shared.schemas.d.ts.map +1 -0
  234. package/dist/esm/compliance/privacy/subject-erasure.shared.schemas.js +238 -0
  235. package/dist/esm/compliance/privacy/subject-erasure.shared.schemas.js.map +1 -0
  236. package/dist/esm/compliance/privacy/subject-export-render.shared.utils.d.ts +74 -0
  237. package/dist/esm/compliance/privacy/subject-export-render.shared.utils.d.ts.map +1 -0
  238. package/dist/esm/compliance/privacy/subject-export-render.shared.utils.js +137 -0
  239. package/dist/esm/compliance/privacy/subject-export-render.shared.utils.js.map +1 -0
  240. package/dist/esm/compliance/privacy/subject-export.shared.schemas.d.ts +457 -0
  241. package/dist/esm/compliance/privacy/subject-export.shared.schemas.d.ts.map +1 -0
  242. package/dist/esm/compliance/privacy/subject-export.shared.schemas.js +549 -0
  243. package/dist/esm/compliance/privacy/subject-export.shared.schemas.js.map +1 -0
  244. package/dist/esm/config/analytics-value-moments.shared.schemas.d.ts +13 -13
  245. package/dist/esm/config/analytics-value-moments.shared.schemas.d.ts.map +1 -1
  246. package/dist/esm/config/analytics-value-moments.shared.schemas.js +1 -1
  247. package/dist/esm/config/analytics-value-moments.shared.schemas.js.map +1 -1
  248. package/dist/esm/config/app-configuration-shared.shared.schemas.d.ts +135 -125
  249. package/dist/esm/config/app-configuration-shared.shared.schemas.d.ts.map +1 -1
  250. package/dist/esm/config/app-configuration-shared.shared.schemas.js +74 -10
  251. package/dist/esm/config/app-configuration-shared.shared.schemas.js.map +1 -1
  252. package/dist/esm/config/app-frontend-type.shared.schemas.d.ts +94 -0
  253. package/dist/esm/config/app-frontend-type.shared.schemas.d.ts.map +1 -0
  254. package/dist/esm/config/app-frontend-type.shared.schemas.js +95 -0
  255. package/dist/esm/config/app-frontend-type.shared.schemas.js.map +1 -0
  256. package/dist/esm/config/auth-config-resolution.shared.utils.d.ts +35 -5
  257. package/dist/esm/config/auth-config-resolution.shared.utils.d.ts.map +1 -1
  258. package/dist/esm/config/auth-config-resolution.shared.utils.js +44 -2
  259. package/dist/esm/config/auth-config-resolution.shared.utils.js.map +1 -1
  260. package/dist/esm/config/brand-assets.shared.schemas.d.ts +89 -0
  261. package/dist/esm/config/brand-assets.shared.schemas.d.ts.map +1 -0
  262. package/dist/esm/config/brand-assets.shared.schemas.js +99 -0
  263. package/dist/esm/config/brand-assets.shared.schemas.js.map +1 -0
  264. package/dist/esm/config/configuration-validation.shared.schemas.d.ts +12 -1
  265. package/dist/esm/config/configuration-validation.shared.schemas.d.ts.map +1 -1
  266. package/dist/esm/config/configuration-validation.shared.schemas.js +12 -1
  267. package/dist/esm/config/configuration-validation.shared.schemas.js.map +1 -1
  268. package/dist/esm/config/entity-identity-config.shared.schemas.d.ts +170 -91
  269. package/dist/esm/config/entity-identity-config.shared.schemas.d.ts.map +1 -1
  270. package/dist/esm/config/entity-identity-config.shared.schemas.js +130 -19
  271. package/dist/esm/config/entity-identity-config.shared.schemas.js.map +1 -1
  272. package/dist/esm/config/frontend/chart-definition.shared.schemas.d.ts +167 -166
  273. package/dist/esm/config/frontend/chart-definition.shared.schemas.d.ts.map +1 -1
  274. package/dist/esm/config/frontend/chart-definition.shared.schemas.js +93 -9
  275. package/dist/esm/config/frontend/chart-definition.shared.schemas.js.map +1 -1
  276. package/dist/esm/config/frontend/chart-registration-alignment.shared.d.ts +69 -0
  277. package/dist/esm/config/frontend/chart-registration-alignment.shared.d.ts.map +1 -0
  278. package/dist/esm/config/frontend/chart-registration-alignment.shared.js +61 -0
  279. package/dist/esm/config/frontend/chart-registration-alignment.shared.js.map +1 -0
  280. package/dist/esm/config/frontend/navigation.shared.schemas.d.ts +110 -39
  281. package/dist/esm/config/frontend/navigation.shared.schemas.d.ts.map +1 -1
  282. package/dist/esm/config/frontend/navigation.shared.schemas.js +93 -9
  283. package/dist/esm/config/frontend/navigation.shared.schemas.js.map +1 -1
  284. package/dist/esm/config/frontend/onboarding.shared.schemas.d.ts +70 -134
  285. package/dist/esm/config/frontend/onboarding.shared.schemas.d.ts.map +1 -1
  286. package/dist/esm/config/frontend/onboarding.shared.schemas.js +27 -25
  287. package/dist/esm/config/frontend/onboarding.shared.schemas.js.map +1 -1
  288. package/dist/esm/config/postgresql.shared.schemas.d.ts.map +1 -1
  289. package/dist/esm/config/postgresql.shared.schemas.js +1 -1
  290. package/dist/esm/config/postgresql.shared.schemas.js.map +1 -1
  291. package/dist/esm/config/registration-acquisition-policy.shared.utils.d.ts +24 -0
  292. package/dist/esm/config/registration-acquisition-policy.shared.utils.d.ts.map +1 -0
  293. package/dist/esm/config/registration-acquisition-policy.shared.utils.js +62 -0
  294. package/dist/esm/config/registration-acquisition-policy.shared.utils.js.map +1 -0
  295. package/dist/esm/config-authoring.entry.d.ts +5 -0
  296. package/dist/esm/config-authoring.entry.d.ts.map +1 -0
  297. package/dist/esm/config-authoring.entry.js +7 -0
  298. package/dist/esm/config-authoring.entry.js.map +1 -0
  299. package/dist/esm/crdt/crdt-merge.shared.utils.d.ts +1 -1
  300. package/dist/esm/crdt/crdt-merge.shared.utils.d.ts.map +1 -1
  301. package/dist/esm/crdt/crdt-merge.shared.utils.js +1 -1
  302. package/dist/esm/crdt/crdt-merge.shared.utils.js.map +1 -1
  303. package/dist/esm/data-seeding/data-seeding-config.shared.schemas.d.ts +66 -0
  304. package/dist/esm/data-seeding/data-seeding-config.shared.schemas.d.ts.map +1 -0
  305. package/dist/esm/data-seeding/data-seeding-config.shared.schemas.js +118 -0
  306. package/dist/esm/data-seeding/data-seeding-config.shared.schemas.js.map +1 -0
  307. package/dist/esm/errors/errors.custom-message-ref.shared.definitions.d.ts +348 -1
  308. package/dist/esm/errors/errors.custom-message-ref.shared.definitions.d.ts.map +1 -1
  309. package/dist/esm/errors/errors.custom-message-ref.shared.definitions.js +357 -1
  310. package/dist/esm/errors/errors.custom-message-ref.shared.definitions.js.map +1 -1
  311. package/dist/esm/errors/errors.shared.definitions.d.ts +2 -2
  312. package/dist/esm/errors/errors.shared.definitions.d.ts.map +1 -1
  313. package/dist/esm/errors/errors.shared.definitions.js +12 -1
  314. package/dist/esm/errors/errors.shared.definitions.js.map +1 -1
  315. package/dist/esm/errors/errors.shared.schemas.d.ts +82 -36
  316. package/dist/esm/errors/errors.shared.schemas.d.ts.map +1 -1
  317. package/dist/esm/errors/errors.shared.schemas.js +100 -3
  318. package/dist/esm/errors/errors.shared.schemas.js.map +1 -1
  319. package/dist/esm/errors/errors.shared.utils.d.ts +1 -1
  320. package/dist/esm/errors/errors.shared.utils.d.ts.map +1 -1
  321. package/dist/esm/errors/errors.shared.utils.js +1 -1
  322. package/dist/esm/errors/errors.shared.utils.js.map +1 -1
  323. package/dist/esm/errors/resource-access-forbidden.shared.error.d.ts +16 -0
  324. package/dist/esm/errors/resource-access-forbidden.shared.error.d.ts.map +1 -0
  325. package/dist/esm/errors/resource-access-forbidden.shared.error.js +18 -0
  326. package/dist/esm/errors/resource-access-forbidden.shared.error.js.map +1 -0
  327. package/dist/esm/errors/zod-issue-formatting.shared.utils.d.ts +113 -0
  328. package/dist/esm/errors/zod-issue-formatting.shared.utils.d.ts.map +1 -0
  329. package/dist/esm/errors/zod-issue-formatting.shared.utils.js +102 -0
  330. package/dist/esm/errors/zod-issue-formatting.shared.utils.js.map +1 -0
  331. package/dist/esm/exports/tabular-csv.shared.utils.d.ts +42 -0
  332. package/dist/esm/exports/tabular-csv.shared.utils.d.ts.map +1 -0
  333. package/dist/esm/exports/tabular-csv.shared.utils.js +63 -0
  334. package/dist/esm/exports/tabular-csv.shared.utils.js.map +1 -0
  335. package/dist/esm/external-data/external-data-pipeline.shared.schemas.d.ts +347 -0
  336. package/dist/esm/external-data/external-data-pipeline.shared.schemas.d.ts.map +1 -0
  337. package/dist/esm/external-data/external-data-pipeline.shared.schemas.js +206 -0
  338. package/dist/esm/external-data/external-data-pipeline.shared.schemas.js.map +1 -0
  339. package/dist/esm/external-data.exports.d.ts +30 -0
  340. package/dist/esm/external-data.exports.d.ts.map +1 -0
  341. package/dist/esm/external-data.exports.js +30 -0
  342. package/dist/esm/external-data.exports.js.map +1 -0
  343. package/dist/esm/external-providers/compose-provider-registry.shared.d.ts +63 -0
  344. package/dist/esm/external-providers/compose-provider-registry.shared.d.ts.map +1 -0
  345. package/dist/esm/external-providers/compose-provider-registry.shared.js +102 -0
  346. package/dist/esm/external-providers/compose-provider-registry.shared.js.map +1 -0
  347. package/dist/esm/external-providers/engine-capabilities.shared.schemas.d.ts +164 -0
  348. package/dist/esm/external-providers/engine-capabilities.shared.schemas.d.ts.map +1 -0
  349. package/dist/esm/external-providers/engine-capabilities.shared.schemas.js +194 -0
  350. package/dist/esm/external-providers/engine-capabilities.shared.schemas.js.map +1 -0
  351. package/dist/esm/external-providers/engine-capability-resolution-mode.shared.d.ts +39 -0
  352. package/dist/esm/external-providers/engine-capability-resolution-mode.shared.d.ts.map +1 -0
  353. package/dist/esm/external-providers/engine-capability-resolution-mode.shared.js +85 -0
  354. package/dist/esm/external-providers/engine-capability-resolution-mode.shared.js.map +1 -0
  355. package/dist/esm/external-providers/external-providers.shared.schemas.d.ts +22 -22
  356. package/dist/esm/external-providers/external-providers.shared.schemas.d.ts.map +1 -1
  357. package/dist/esm/external-providers/external-providers.shared.schemas.js +5 -5
  358. package/dist/esm/external-providers/external-providers.shared.schemas.js.map +1 -1
  359. package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.d.ts +319 -0
  360. package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.d.ts.map +1 -0
  361. package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.js +17 -0
  362. package/dist/esm/external-providers/frontend-bootstrap.shared.schemas.js.map +1 -0
  363. package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.d.ts +35 -0
  364. package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.d.ts.map +1 -0
  365. package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.js +19 -0
  366. package/dist/esm/external-providers/frontend-provider-entry.shared.schemas.js.map +1 -0
  367. package/dist/esm/external-providers/provider-capability.shared.schemas.d.ts +135 -0
  368. package/dist/esm/external-providers/provider-capability.shared.schemas.d.ts.map +1 -0
  369. package/dist/esm/external-providers/provider-capability.shared.schemas.js +102 -0
  370. package/dist/esm/external-providers/provider-capability.shared.schemas.js.map +1 -0
  371. package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.d.ts +175 -0
  372. package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.d.ts.map +1 -0
  373. package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.js +211 -0
  374. package/dist/esm/external-providers/provider-compliance-profile.shared.schemas.js.map +1 -0
  375. package/dist/esm/external-providers/provider-metadata.shared.schemas.d.ts +37 -0
  376. package/dist/esm/external-providers/provider-metadata.shared.schemas.d.ts.map +1 -0
  377. package/dist/esm/external-providers/provider-metadata.shared.schemas.js +58 -0
  378. package/dist/esm/external-providers/provider-metadata.shared.schemas.js.map +1 -0
  379. package/dist/esm/external-providers/provider-protocol.shared.schemas.d.ts +65 -0
  380. package/dist/esm/external-providers/provider-protocol.shared.schemas.d.ts.map +1 -0
  381. package/dist/esm/external-providers/provider-protocol.shared.schemas.js +63 -0
  382. package/dist/esm/external-providers/provider-protocol.shared.schemas.js.map +1 -0
  383. package/dist/esm/external-providers/provider-usage-pricing.shared.schemas.d.ts +99 -0
  384. package/dist/esm/external-providers/provider-usage-pricing.shared.schemas.d.ts.map +1 -0
  385. package/dist/esm/external-providers/provider-usage-pricing.shared.schemas.js +137 -0
  386. package/dist/esm/external-providers/provider-usage-pricing.shared.schemas.js.map +1 -0
  387. package/dist/esm/features/application-features.shared.resources-config.schemas.d.ts +39 -0
  388. package/dist/esm/features/application-features.shared.resources-config.schemas.d.ts.map +1 -0
  389. package/dist/esm/features/application-features.shared.resources-config.schemas.js +147 -0
  390. package/dist/esm/features/application-features.shared.resources-config.schemas.js.map +1 -0
  391. package/dist/esm/features/core-feature-definitions.shared.d.ts +17 -2
  392. package/dist/esm/features/core-feature-definitions.shared.d.ts.map +1 -1
  393. package/dist/esm/features/core-feature-definitions.shared.js +91 -3
  394. package/dist/esm/features/core-feature-definitions.shared.js.map +1 -1
  395. package/dist/esm/features/feature-builders.shared.d.ts +13 -2
  396. package/dist/esm/features/feature-builders.shared.d.ts.map +1 -1
  397. package/dist/esm/features/feature-builders.shared.js +3 -1
  398. package/dist/esm/features/feature-builders.shared.js.map +1 -1
  399. package/dist/esm/features/feature-definition.shared.schemas.d.ts +70 -24
  400. package/dist/esm/features/feature-definition.shared.schemas.d.ts.map +1 -1
  401. package/dist/esm/features/feature-definition.shared.schemas.js +84 -1
  402. package/dist/esm/features/feature-definition.shared.schemas.js.map +1 -1
  403. package/dist/esm/features/feature-registry.shared.d.ts +8 -9
  404. package/dist/esm/features/feature-registry.shared.d.ts.map +1 -1
  405. package/dist/esm/features/feature-registry.shared.js +5 -8
  406. package/dist/esm/features/feature-registry.shared.js.map +1 -1
  407. package/dist/esm/features/feature-resolution.shared.schemas.d.ts +1 -1
  408. package/dist/esm/features/feature-resolution.shared.schemas.d.ts.map +1 -1
  409. package/dist/esm/features/feature-resolution.shared.schemas.js +1 -1
  410. package/dist/esm/features/feature-resolution.shared.schemas.js.map +1 -1
  411. package/dist/esm/features/scope-features.shared.schemas.d.ts +9 -10
  412. package/dist/esm/features/scope-features.shared.schemas.d.ts.map +1 -1
  413. package/dist/esm/features/scope-features.shared.schemas.js +20 -6
  414. package/dist/esm/features/scope-features.shared.schemas.js.map +1 -1
  415. package/dist/esm/features/user-features.shared.resources-config.schemas.d.ts +9 -9
  416. package/dist/esm/features/user-features.shared.resources-config.schemas.d.ts.map +1 -1
  417. package/dist/esm/features/user-features.shared.resources-config.schemas.js +35 -1
  418. package/dist/esm/features/user-features.shared.resources-config.schemas.js.map +1 -1
  419. package/dist/esm/files/files.shared.resources-config.schemas.d.ts +35 -9
  420. package/dist/esm/files/files.shared.resources-config.schemas.d.ts.map +1 -1
  421. package/dist/esm/files/files.shared.resources-config.schemas.js +27 -5
  422. package/dist/esm/files/files.shared.resources-config.schemas.js.map +1 -1
  423. package/dist/esm/files/files.shared.schemas.d.ts +71 -13
  424. package/dist/esm/files/files.shared.schemas.d.ts.map +1 -1
  425. package/dist/esm/files/files.shared.schemas.js +110 -35
  426. package/dist/esm/files/files.shared.schemas.js.map +1 -1
  427. package/dist/esm/files/files.shared.utils.d.ts +9 -5
  428. package/dist/esm/files/files.shared.utils.d.ts.map +1 -1
  429. package/dist/esm/files/files.shared.utils.js +10 -6
  430. package/dist/esm/files/files.shared.utils.js.map +1 -1
  431. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.d.ts +40 -0
  432. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.d.ts.map +1 -0
  433. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.js +204 -0
  434. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.js.map +1 -0
  435. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.d.ts +113 -0
  436. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.d.ts.map +1 -0
  437. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.js +153 -0
  438. package/dist/esm/flows-actors/a2a-push-delivery-log.shared.schemas.js.map +1 -0
  439. package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.d.ts +61 -0
  440. package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.d.ts.map +1 -0
  441. package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.js +143 -0
  442. package/dist/esm/flows-actors/a2a-token-budget-state.shared.resources-config.schemas.js.map +1 -0
  443. package/dist/esm/flows-actors/a2a-token-budget-state.shared.schemas.d.ts +77 -0
  444. package/dist/esm/flows-actors/a2a-token-budget-state.shared.schemas.d.ts.map +1 -0
  445. package/dist/esm/flows-actors/a2a-token-budget-state.shared.schemas.js +103 -0
  446. package/dist/esm/flows-actors/a2a-token-budget-state.shared.schemas.js.map +1 -0
  447. package/dist/esm/flows-actors/actors.shared.schemas.d.ts +339 -326
  448. package/dist/esm/flows-actors/actors.shared.schemas.d.ts.map +1 -1
  449. package/dist/esm/flows-actors/actors.shared.schemas.js +29 -6
  450. package/dist/esm/flows-actors/actors.shared.schemas.js.map +1 -1
  451. package/dist/esm/flows-actors/agent-traceability.shared.schemas.d.ts +237 -0
  452. package/dist/esm/flows-actors/agent-traceability.shared.schemas.d.ts.map +1 -0
  453. package/dist/esm/flows-actors/agent-traceability.shared.schemas.js +152 -0
  454. package/dist/esm/flows-actors/agent-traceability.shared.schemas.js.map +1 -0
  455. package/dist/esm/flows-actors/agents.shared.schemas.d.ts +180 -23
  456. package/dist/esm/flows-actors/agents.shared.schemas.d.ts.map +1 -1
  457. package/dist/esm/flows-actors/agents.shared.schemas.js +69 -2
  458. package/dist/esm/flows-actors/agents.shared.schemas.js.map +1 -1
  459. package/dist/esm/flows-actors/apps-blueprint/apps-blueprint-agent-personas.shared.enums.d.ts +19 -0
  460. package/dist/esm/flows-actors/apps-blueprint/apps-blueprint-agent-personas.shared.enums.d.ts.map +1 -0
  461. package/dist/esm/flows-actors/apps-blueprint/apps-blueprint-agent-personas.shared.enums.js +35 -0
  462. package/dist/esm/flows-actors/apps-blueprint/apps-blueprint-agent-personas.shared.enums.js.map +1 -0
  463. package/dist/esm/flows-actors/apps-blueprint/apps-blueprint.shared.schemas.d.ts +29 -45
  464. package/dist/esm/flows-actors/apps-blueprint/apps-blueprint.shared.schemas.d.ts.map +1 -1
  465. package/dist/esm/flows-actors/apps-blueprint/apps-blueprint.shared.schemas.js +2 -34
  466. package/dist/esm/flows-actors/apps-blueprint/apps-blueprint.shared.schemas.js.map +1 -1
  467. package/dist/esm/flows-actors/apps-blueprint/artifacts.apps-blueprint.shared.schemas.d.ts +2 -2
  468. package/dist/esm/flows-actors/apps-blueprint/artifacts.apps-blueprint.shared.schemas.d.ts.map +1 -1
  469. package/dist/esm/flows-actors/apps-blueprint/artifacts.apps-blueprint.shared.schemas.js +1 -1
  470. package/dist/esm/flows-actors/apps-blueprint/artifacts.apps-blueprint.shared.schemas.js.map +1 -1
  471. package/dist/esm/flows-actors/deliberation.shared.schemas.d.ts +642 -0
  472. package/dist/esm/flows-actors/deliberation.shared.schemas.d.ts.map +1 -0
  473. package/dist/esm/flows-actors/deliberation.shared.schemas.js +604 -0
  474. package/dist/esm/flows-actors/deliberation.shared.schemas.js.map +1 -0
  475. package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.d.ts +48 -0
  476. package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.d.ts.map +1 -0
  477. package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.js +179 -0
  478. package/dist/esm/flows-actors/flows-actors-execution.shared.resources-config.schemas.js.map +1 -0
  479. package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.d.ts +200 -0
  480. package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.d.ts.map +1 -0
  481. package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.js +337 -0
  482. package/dist/esm/flows-actors/flows-actors-execution.shared.schemas.js.map +1 -0
  483. package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.d.ts +59 -0
  484. package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.d.ts.map +1 -0
  485. package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.js +223 -0
  486. package/dist/esm/flows-actors/flows-actors-task.shared.resources-config.schemas.js.map +1 -0
  487. package/dist/esm/flows-actors/flows-actors-task.shared.schemas.d.ts +426 -0
  488. package/dist/esm/flows-actors/flows-actors-task.shared.schemas.d.ts.map +1 -0
  489. package/dist/esm/flows-actors/flows-actors-task.shared.schemas.js +317 -0
  490. package/dist/esm/flows-actors/flows-actors-task.shared.schemas.js.map +1 -0
  491. package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.d.ts +109 -58
  492. package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.d.ts.map +1 -1
  493. package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.js +48 -1
  494. package/dist/esm/flows-actors/flows-actors.commons.shared.schemas.js.map +1 -1
  495. package/dist/esm/flows-actors/flows-actors.configuration.shared.schemas.d.ts +62 -62
  496. package/dist/esm/flows-actors/flows-actors.configuration.shared.schemas.d.ts.map +1 -1
  497. package/dist/esm/flows-actors/flows-actors.configuration.shared.schemas.js +2 -2
  498. package/dist/esm/flows-actors/flows-actors.configuration.shared.schemas.js.map +1 -1
  499. package/dist/esm/flows-actors/flows-actors.frontend.shared.schemas.d.ts +112 -11
  500. package/dist/esm/flows-actors/flows-actors.frontend.shared.schemas.d.ts.map +1 -1
  501. package/dist/esm/flows-actors/flows-actors.frontend.shared.schemas.js +63 -1
  502. package/dist/esm/flows-actors/flows-actors.frontend.shared.schemas.js.map +1 -1
  503. package/dist/esm/flows-actors/flows-actors.io.shared.schemas.d.ts +60 -20
  504. package/dist/esm/flows-actors/flows-actors.io.shared.schemas.d.ts.map +1 -1
  505. package/dist/esm/flows-actors/flows-actors.io.shared.schemas.js +36 -3
  506. package/dist/esm/flows-actors/flows-actors.io.shared.schemas.js.map +1 -1
  507. package/dist/esm/flows-actors/flows-actors.system.shared.definitions.d.ts +35 -0
  508. package/dist/esm/flows-actors/flows-actors.system.shared.definitions.d.ts.map +1 -0
  509. package/dist/esm/flows-actors/flows-actors.system.shared.definitions.js +1 -0
  510. package/dist/esm/flows-actors/flows-actors.system.shared.definitions.js.map +1 -0
  511. package/dist/esm/flows-actors/flows-actors.system.shared.schemas.d.ts +88 -63
  512. package/dist/esm/flows-actors/flows-actors.system.shared.schemas.d.ts.map +1 -1
  513. package/dist/esm/flows-actors/flows-actors.system.shared.schemas.js +32 -5
  514. package/dist/esm/flows-actors/flows-actors.system.shared.schemas.js.map +1 -1
  515. package/dist/esm/flows-actors/flows.shared.schemas.d.ts +63 -49
  516. package/dist/esm/flows-actors/flows.shared.schemas.d.ts.map +1 -1
  517. package/dist/esm/flows-actors/flows.shared.schemas.js +1 -1
  518. package/dist/esm/flows-actors/flows.shared.schemas.js.map +1 -1
  519. package/dist/esm/flows-actors/meta-workflows/actions.meta-workflows.shared.schemas.d.ts +73 -0
  520. package/dist/esm/flows-actors/meta-workflows/actions.meta-workflows.shared.schemas.d.ts.map +1 -0
  521. package/dist/esm/flows-actors/meta-workflows/actions.meta-workflows.shared.schemas.js +149 -0
  522. package/dist/esm/flows-actors/meta-workflows/actions.meta-workflows.shared.schemas.js.map +1 -0
  523. package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.d.ts +20 -0
  524. package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.d.ts.map +1 -0
  525. package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.js +34 -0
  526. package/dist/esm/flows-actors/meta-workflows/budget-authority.meta-workflows.shared.schemas.js.map +1 -0
  527. package/dist/esm/flows-actors/meta-workflows/catalog.meta-workflows.shared.schemas.d.ts +125 -0
  528. package/dist/esm/flows-actors/meta-workflows/catalog.meta-workflows.shared.schemas.d.ts.map +1 -0
  529. package/dist/esm/flows-actors/meta-workflows/catalog.meta-workflows.shared.schemas.js +136 -0
  530. package/dist/esm/flows-actors/meta-workflows/catalog.meta-workflows.shared.schemas.js.map +1 -0
  531. package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.d.ts +180 -0
  532. package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.d.ts.map +1 -0
  533. package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.js +187 -0
  534. package/dist/esm/flows-actors/meta-workflows/context-selection.meta-workflows.shared.schemas.js.map +1 -0
  535. package/dist/esm/flows-actors/meta-workflows/continuity-identifiers.meta-workflows.shared.schemas.d.ts +28 -0
  536. package/dist/esm/flows-actors/meta-workflows/continuity-identifiers.meta-workflows.shared.schemas.d.ts.map +1 -0
  537. package/dist/esm/flows-actors/meta-workflows/continuity-identifiers.meta-workflows.shared.schemas.js +28 -0
  538. package/dist/esm/flows-actors/meta-workflows/continuity-identifiers.meta-workflows.shared.schemas.js.map +1 -0
  539. package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.d.ts +446 -0
  540. package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.d.ts.map +1 -0
  541. package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.js +678 -0
  542. package/dist/esm/flows-actors/meta-workflows/decisions.meta-workflows.shared.schemas.js.map +1 -0
  543. package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.d.ts +106 -0
  544. package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.d.ts.map +1 -0
  545. package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.js +243 -0
  546. package/dist/esm/flows-actors/meta-workflows/execution-binding-common.meta-workflows.shared.schemas.js.map +1 -0
  547. package/dist/esm/flows-actors/meta-workflows/execution-binding-vocabularies.meta-workflows.shared.schemas.d.ts +29 -0
  548. package/dist/esm/flows-actors/meta-workflows/execution-binding-vocabularies.meta-workflows.shared.schemas.d.ts.map +1 -0
  549. package/dist/esm/flows-actors/meta-workflows/execution-binding-vocabularies.meta-workflows.shared.schemas.js +58 -0
  550. package/dist/esm/flows-actors/meta-workflows/execution-binding-vocabularies.meta-workflows.shared.schemas.js.map +1 -0
  551. package/dist/esm/flows-actors/meta-workflows/portable-primitives.meta-workflows.shared.schemas.d.ts +61 -0
  552. package/dist/esm/flows-actors/meta-workflows/portable-primitives.meta-workflows.shared.schemas.d.ts.map +1 -0
  553. package/dist/esm/flows-actors/meta-workflows/portable-primitives.meta-workflows.shared.schemas.js +93 -0
  554. package/dist/esm/flows-actors/meta-workflows/portable-primitives.meta-workflows.shared.schemas.js.map +1 -0
  555. package/dist/esm/flows-actors/prompt-ir.shared.schemas.d.ts +5 -5
  556. package/dist/esm/flows-actors/prompt-ir.shared.schemas.d.ts.map +1 -1
  557. package/dist/esm/flows-actors/prompt-ir.shared.schemas.js +2 -2
  558. package/dist/esm/flows-actors/prompt-ir.shared.schemas.js.map +1 -1
  559. package/dist/esm/flows-actors/task-continuity-binding.actors.shared.schemas.d.ts +81 -0
  560. package/dist/esm/flows-actors/task-continuity-binding.actors.shared.schemas.d.ts.map +1 -0
  561. package/dist/esm/flows-actors/task-continuity-binding.actors.shared.schemas.js +82 -0
  562. package/dist/esm/flows-actors/task-continuity-binding.actors.shared.schemas.js.map +1 -0
  563. package/dist/esm/flows-actors/tasks.actors.shared.schemas.d.ts +257 -194
  564. package/dist/esm/flows-actors/tasks.actors.shared.schemas.d.ts.map +1 -1
  565. package/dist/esm/flows-actors/tasks.actors.shared.schemas.js +28 -2
  566. package/dist/esm/flows-actors/tasks.actors.shared.schemas.js.map +1 -1
  567. package/dist/esm/flows-actors/utils/flow-actors.context-builder.apps-context.shared.utils.d.ts.map +1 -1
  568. package/dist/esm/flows-actors/utils/flow-actors.context-builder.apps-context.shared.utils.js +1 -1
  569. package/dist/esm/flows-actors/utils/flow-actors.context-builder.apps-context.shared.utils.js.map +1 -1
  570. package/dist/esm/frontend-definitions/frontend-notification-custom-message-ref.definitions.d.ts.map +1 -1
  571. package/dist/esm/frontend-definitions/frontend-notification-custom-message-ref.definitions.js +1 -1
  572. package/dist/esm/frontend-definitions/frontend-notification-custom-message-ref.definitions.js.map +1 -1
  573. package/dist/esm/guidance/guidance-flow.shared.schemas.d.ts +51 -89
  574. package/dist/esm/guidance/guidance-flow.shared.schemas.d.ts.map +1 -1
  575. package/dist/esm/guidance/guidance-flow.shared.schemas.js +1 -1
  576. package/dist/esm/guidance/guidance-flow.shared.schemas.js.map +1 -1
  577. package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.d.ts +22 -19
  578. package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.d.ts.map +1 -1
  579. package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.js +61 -5
  580. package/dist/esm/guidance/guidance-state.shared.resources-config.schemas.js.map +1 -1
  581. package/dist/esm/guidance/guidance-state.shared.schemas.d.ts +46 -10
  582. package/dist/esm/guidance/guidance-state.shared.schemas.d.ts.map +1 -1
  583. package/dist/esm/guidance/guidance-state.shared.schemas.js +15 -4
  584. package/dist/esm/guidance/guidance-state.shared.schemas.js.map +1 -1
  585. package/dist/esm/guidance/guidance-state.shared.utils.d.ts +25 -0
  586. package/dist/esm/guidance/guidance-state.shared.utils.d.ts.map +1 -0
  587. package/dist/esm/guidance/guidance-state.shared.utils.js +72 -0
  588. package/dist/esm/guidance/guidance-state.shared.utils.js.map +1 -0
  589. package/dist/esm/guidance/lifecycle-config.shared.schemas.d.ts +11 -11
  590. package/dist/esm/guidance/lifecycle-config.shared.schemas.d.ts.map +1 -1
  591. package/dist/esm/guidance/lifecycle-config.shared.schemas.js +1 -1
  592. package/dist/esm/guidance/lifecycle-config.shared.schemas.js.map +1 -1
  593. package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.d.ts +28 -25
  594. package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.d.ts.map +1 -1
  595. package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.js +71 -7
  596. package/dist/esm/guidance/lifecycle-state.shared.resources-config.schemas.js.map +1 -1
  597. package/dist/esm/guidance/lifecycle-state.shared.schemas.d.ts +53 -14
  598. package/dist/esm/guidance/lifecycle-state.shared.schemas.d.ts.map +1 -1
  599. package/dist/esm/guidance/lifecycle-state.shared.schemas.js +26 -25
  600. package/dist/esm/guidance/lifecycle-state.shared.schemas.js.map +1 -1
  601. package/dist/esm/guidance/milestone-builders.shared.d.ts +2 -2
  602. package/dist/esm/guidance/milestone-builders.shared.d.ts.map +1 -1
  603. package/dist/esm/guidance/milestone-builders.shared.js +1 -1
  604. package/dist/esm/guidance/milestone-builders.shared.js.map +1 -1
  605. package/dist/esm/guidance/milestone-definition.shared.schemas.d.ts +2 -2
  606. package/dist/esm/guidance/milestone-definition.shared.schemas.d.ts.map +1 -1
  607. package/dist/esm/guidance/milestone-definition.shared.schemas.js +1 -1
  608. package/dist/esm/guidance/milestone-definition.shared.schemas.js.map +1 -1
  609. package/dist/esm/guidance/progression-state.shared.resources-config.schemas.d.ts +22 -19
  610. package/dist/esm/guidance/progression-state.shared.resources-config.schemas.d.ts.map +1 -1
  611. package/dist/esm/guidance/progression-state.shared.resources-config.schemas.js +72 -7
  612. package/dist/esm/guidance/progression-state.shared.resources-config.schemas.js.map +1 -1
  613. package/dist/esm/guidance/progression-state.shared.schemas.d.ts +40 -10
  614. package/dist/esm/guidance/progression-state.shared.schemas.d.ts.map +1 -1
  615. package/dist/esm/guidance/progression-state.shared.schemas.js +16 -6
  616. package/dist/esm/guidance/progression-state.shared.schemas.js.map +1 -1
  617. package/dist/esm/http-api-binding/http-api-binding-id.shared.utils.d.ts +69 -0
  618. package/dist/esm/http-api-binding/http-api-binding-id.shared.utils.d.ts.map +1 -0
  619. package/dist/esm/http-api-binding/http-api-binding-id.shared.utils.js +232 -0
  620. package/dist/esm/http-api-binding/http-api-binding-id.shared.utils.js.map +1 -0
  621. package/dist/esm/http-api-binding/http-api-binding.shared.schemas.d.ts +566 -0
  622. package/dist/esm/http-api-binding/http-api-binding.shared.schemas.d.ts.map +1 -0
  623. package/dist/esm/http-api-binding/http-api-binding.shared.schemas.js +513 -0
  624. package/dist/esm/http-api-binding/http-api-binding.shared.schemas.js.map +1 -0
  625. package/dist/esm/i18n/interpolate-label-params.shared.utils.d.ts +52 -0
  626. package/dist/esm/i18n/interpolate-label-params.shared.utils.d.ts.map +1 -0
  627. package/dist/esm/i18n/interpolate-label-params.shared.utils.js +63 -0
  628. package/dist/esm/i18n/interpolate-label-params.shared.utils.js.map +1 -0
  629. package/dist/esm/i18n/labelling.dto.shared.schemas.d.ts +3 -3
  630. package/dist/esm/i18n/labelling.dto.shared.schemas.d.ts.map +1 -1
  631. package/dist/esm/i18n/labelling.dto.shared.schemas.js +1 -1
  632. package/dist/esm/i18n/labelling.dto.shared.schemas.js.map +1 -1
  633. package/dist/esm/index.d.ts +277 -200
  634. package/dist/esm/index.d.ts.map +1 -1
  635. package/dist/esm/index.js +122 -15
  636. package/dist/esm/index.js.map +1 -1
  637. package/dist/esm/meta-workflows.exports.d.ts +51 -0
  638. package/dist/esm/meta-workflows.exports.d.ts.map +1 -0
  639. package/dist/esm/meta-workflows.exports.js +51 -0
  640. package/dist/esm/meta-workflows.exports.js.map +1 -0
  641. package/dist/esm/monitoring/monitoring.shared.schemas.d.ts +16 -16
  642. package/dist/esm/monitoring/monitoring.shared.schemas.d.ts.map +1 -1
  643. package/dist/esm/monitoring/monitoring.shared.schemas.js +1 -1
  644. package/dist/esm/monitoring/monitoring.shared.schemas.js.map +1 -1
  645. package/dist/esm/notifications/email/email-context.shared.schemas.d.ts +9 -9
  646. package/dist/esm/notifications/email/email-context.shared.schemas.d.ts.map +1 -1
  647. package/dist/esm/notifications/email/email-context.shared.schemas.js +8 -3
  648. package/dist/esm/notifications/email/email-context.shared.schemas.js.map +1 -1
  649. package/dist/esm/notifications/email/email-template-registry.shared.schemas.d.ts +33 -46
  650. package/dist/esm/notifications/email/email-template-registry.shared.schemas.d.ts.map +1 -1
  651. package/dist/esm/notifications/email/email-template-registry.shared.schemas.js +20 -140
  652. package/dist/esm/notifications/email/email-template-registry.shared.schemas.js.map +1 -1
  653. package/dist/esm/notifications/email/email-template.shared.enums.d.ts +145 -0
  654. package/dist/esm/notifications/email/email-template.shared.enums.d.ts.map +1 -0
  655. package/dist/esm/notifications/email/email-template.shared.enums.js +164 -0
  656. package/dist/esm/notifications/email/email-template.shared.enums.js.map +1 -0
  657. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.resources-config.schemas.d.ts +43 -0
  658. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.resources-config.schemas.d.ts.map +1 -0
  659. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.resources-config.schemas.js +231 -0
  660. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.resources-config.schemas.js.map +1 -0
  661. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.schemas.d.ts +159 -0
  662. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.schemas.d.ts.map +1 -0
  663. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.schemas.js +191 -0
  664. package/dist/esm/notifications/m2m/m2m-webhook-delivery-log.shared.schemas.js.map +1 -0
  665. package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.d.ts +62 -0
  666. package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.d.ts.map +1 -0
  667. package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.js +183 -0
  668. package/dist/esm/notifications/m2m/webhook-config.shared.resources-config.schemas.js.map +1 -0
  669. package/dist/esm/notifications/m2m/webhook-config.shared.schemas.d.ts +134 -0
  670. package/dist/esm/notifications/m2m/webhook-config.shared.schemas.d.ts.map +1 -0
  671. package/dist/esm/notifications/m2m/webhook-config.shared.schemas.js +159 -0
  672. package/dist/esm/notifications/m2m/webhook-config.shared.schemas.js.map +1 -0
  673. package/dist/esm/notifications/notification-badges.core.definitions.d.ts +10 -1
  674. package/dist/esm/notifications/notification-badges.core.definitions.d.ts.map +1 -1
  675. package/dist/esm/notifications/notification-badges.core.definitions.js +11 -13
  676. package/dist/esm/notifications/notification-badges.core.definitions.js.map +1 -1
  677. package/dist/esm/notifications/notification-badges.schemas.d.ts +147 -43
  678. package/dist/esm/notifications/notification-badges.schemas.d.ts.map +1 -1
  679. package/dist/esm/notifications/notification-badges.schemas.js +130 -23
  680. package/dist/esm/notifications/notification-badges.schemas.js.map +1 -1
  681. package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.d.ts +40 -15
  682. package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.d.ts.map +1 -1
  683. package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.js +149 -23
  684. package/dist/esm/notifications/notification-badges.shared.resources-config.schemas.js.map +1 -1
  685. package/dist/esm/notifications/notifications.shared.schemas.d.ts +352 -25
  686. package/dist/esm/notifications/notifications.shared.schemas.d.ts.map +1 -1
  687. package/dist/esm/notifications/notifications.shared.schemas.js +47 -2
  688. package/dist/esm/notifications/notifications.shared.schemas.js.map +1 -1
  689. package/dist/esm/organizations/organization-features.shared.resources-config.schemas.d.ts +21 -10
  690. package/dist/esm/organizations/organization-features.shared.resources-config.schemas.d.ts.map +1 -1
  691. package/dist/esm/organizations/organization-features.shared.resources-config.schemas.js +54 -47
  692. package/dist/esm/organizations/organization-features.shared.resources-config.schemas.js.map +1 -1
  693. package/dist/esm/organizations/organization-features.shared.schemas.d.ts +10 -2
  694. package/dist/esm/organizations/organization-features.shared.schemas.d.ts.map +1 -1
  695. package/dist/esm/organizations/organization-features.shared.schemas.js +10 -2
  696. package/dist/esm/organizations/organization-features.shared.schemas.js.map +1 -1
  697. package/dist/esm/organizations/organization-members.shared.resources-config.schemas.d.ts +31 -17
  698. package/dist/esm/organizations/organization-members.shared.resources-config.schemas.d.ts.map +1 -1
  699. package/dist/esm/organizations/organization-members.shared.resources-config.schemas.js +294 -54
  700. package/dist/esm/organizations/organization-members.shared.resources-config.schemas.js.map +1 -1
  701. package/dist/esm/organizations/organization-members.shared.schemas.d.ts +31 -41
  702. package/dist/esm/organizations/organization-members.shared.schemas.d.ts.map +1 -1
  703. package/dist/esm/organizations/organization-members.shared.schemas.js +181 -37
  704. package/dist/esm/organizations/organization-members.shared.schemas.js.map +1 -1
  705. package/dist/esm/organizations/organization-notifications.shared.resources-config.schemas.d.ts +8 -8
  706. package/dist/esm/organizations/organization-notifications.shared.resources-config.schemas.d.ts.map +1 -1
  707. package/dist/esm/organizations/organization-notifications.shared.resources-config.schemas.js +43 -2
  708. package/dist/esm/organizations/organization-notifications.shared.resources-config.schemas.js.map +1 -1
  709. package/dist/esm/organizations/organization-notifications.shared.schemas.d.ts +25 -4
  710. package/dist/esm/organizations/organization-notifications.shared.schemas.d.ts.map +1 -1
  711. package/dist/esm/organizations/organization-notifications.shared.schemas.js +35 -15
  712. package/dist/esm/organizations/organization-notifications.shared.schemas.js.map +1 -1
  713. package/dist/esm/organizations/organization-preferences.shared.resources-config.schemas.d.ts +7 -7
  714. package/dist/esm/organizations/organization-preferences.shared.resources-config.schemas.d.ts.map +1 -1
  715. package/dist/esm/organizations/organization-preferences.shared.resources-config.schemas.js +42 -3
  716. package/dist/esm/organizations/organization-preferences.shared.resources-config.schemas.js.map +1 -1
  717. package/dist/esm/organizations/organization-preferences.shared.schemas.d.ts +4 -4
  718. package/dist/esm/organizations/organization-preferences.shared.schemas.d.ts.map +1 -1
  719. package/dist/esm/organizations/organization-preferences.shared.schemas.js +17 -4
  720. package/dist/esm/organizations/organization-preferences.shared.schemas.js.map +1 -1
  721. package/dist/esm/organizations/organization-profile.shared.resources-config.schemas.d.ts +10 -10
  722. package/dist/esm/organizations/organization-profile.shared.resources-config.schemas.d.ts.map +1 -1
  723. package/dist/esm/organizations/organization-profile.shared.resources-config.schemas.js +32 -2
  724. package/dist/esm/organizations/organization-profile.shared.resources-config.schemas.js.map +1 -1
  725. package/dist/esm/organizations/organization-profile.shared.schemas.d.ts +6 -6
  726. package/dist/esm/organizations/organization-profile.shared.schemas.d.ts.map +1 -1
  727. package/dist/esm/organizations/organization-profile.shared.schemas.js +28 -2
  728. package/dist/esm/organizations/organization-profile.shared.schemas.js.map +1 -1
  729. package/dist/esm/organizations/organization-unit-inheritance.shared.d.ts +94 -0
  730. package/dist/esm/organizations/organization-unit-inheritance.shared.d.ts.map +1 -0
  731. package/dist/esm/organizations/organization-unit-inheritance.shared.js +96 -0
  732. package/dist/esm/organizations/organization-unit-inheritance.shared.js.map +1 -0
  733. package/dist/esm/organizations/organization-unit-members.shared.resources-config.schemas.d.ts +30 -0
  734. package/dist/esm/organizations/organization-unit-members.shared.resources-config.schemas.d.ts.map +1 -0
  735. package/dist/esm/organizations/organization-unit-members.shared.resources-config.schemas.js +97 -0
  736. package/dist/esm/organizations/organization-unit-members.shared.resources-config.schemas.js.map +1 -0
  737. package/dist/esm/organizations/organization-unit-members.shared.schemas.d.ts +56 -0
  738. package/dist/esm/organizations/organization-unit-members.shared.schemas.d.ts.map +1 -0
  739. package/dist/esm/organizations/organization-unit-members.shared.schemas.js +92 -0
  740. package/dist/esm/organizations/organization-unit-members.shared.schemas.js.map +1 -0
  741. package/dist/esm/organizations/organization-unit-narrowing-decision.shared.d.ts +130 -0
  742. package/dist/esm/organizations/organization-unit-narrowing-decision.shared.d.ts.map +1 -0
  743. package/dist/esm/organizations/organization-unit-narrowing-decision.shared.js +139 -0
  744. package/dist/esm/organizations/organization-unit-narrowing-decision.shared.js.map +1 -0
  745. package/dist/esm/organizations/organization-unit-narrowing.example.d.ts +27 -0
  746. package/dist/esm/organizations/organization-unit-narrowing.example.d.ts.map +1 -0
  747. package/dist/esm/organizations/organization-unit-narrowing.example.js +29 -0
  748. package/dist/esm/organizations/organization-unit-narrowing.example.js.map +1 -0
  749. package/dist/esm/organizations/organization-unit-narrowing.shared.d.ts +137 -0
  750. package/dist/esm/organizations/organization-unit-narrowing.shared.d.ts.map +1 -0
  751. package/dist/esm/organizations/organization-unit-narrowing.shared.js +133 -0
  752. package/dist/esm/organizations/organization-unit-narrowing.shared.js.map +1 -0
  753. package/dist/esm/organizations/organization-units.shared.path.d.ts +103 -0
  754. package/dist/esm/organizations/organization-units.shared.path.d.ts.map +1 -0
  755. package/dist/esm/organizations/organization-units.shared.path.js +120 -0
  756. package/dist/esm/organizations/organization-units.shared.path.js.map +1 -0
  757. package/dist/esm/organizations/organization-units.shared.resources-config.schemas.d.ts +8 -8
  758. package/dist/esm/organizations/organization-units.shared.resources-config.schemas.d.ts.map +1 -1
  759. package/dist/esm/organizations/organization-units.shared.resources-config.schemas.js +1 -1
  760. package/dist/esm/organizations/organization-units.shared.resources-config.schemas.js.map +1 -1
  761. package/dist/esm/organizations/organization-units.shared.schemas.d.ts +69 -8
  762. package/dist/esm/organizations/organization-units.shared.schemas.d.ts.map +1 -1
  763. package/dist/esm/organizations/organization-units.shared.schemas.js +89 -5
  764. package/dist/esm/organizations/organization-units.shared.schemas.js.map +1 -1
  765. package/dist/esm/organizations/organizations.shared.resources-config.schemas.d.ts +46 -11
  766. package/dist/esm/organizations/organizations.shared.resources-config.schemas.d.ts.map +1 -1
  767. package/dist/esm/organizations/organizations.shared.resources-config.schemas.js +505 -34
  768. package/dist/esm/organizations/organizations.shared.resources-config.schemas.js.map +1 -1
  769. package/dist/esm/organizations/organizations.shared.schemas.d.ts +95 -39
  770. package/dist/esm/organizations/organizations.shared.schemas.d.ts.map +1 -1
  771. package/dist/esm/organizations/organizations.shared.schemas.js +228 -6
  772. package/dist/esm/organizations/organizations.shared.schemas.js.map +1 -1
  773. package/dist/esm/organizations/tenant-teardown-config.shared.schemas.d.ts +36 -0
  774. package/dist/esm/organizations/tenant-teardown-config.shared.schemas.d.ts.map +1 -0
  775. package/dist/esm/organizations/tenant-teardown-config.shared.schemas.js +66 -0
  776. package/dist/esm/organizations/tenant-teardown-config.shared.schemas.js.map +1 -0
  777. package/dist/esm/provider-registration-runtime.exports.d.ts +4 -0
  778. package/dist/esm/provider-registration-runtime.exports.d.ts.map +1 -0
  779. package/dist/esm/provider-registration-runtime.exports.js +4 -0
  780. package/dist/esm/provider-registration-runtime.exports.js.map +1 -0
  781. package/dist/esm/public-runtime/index.d.ts +164 -0
  782. package/dist/esm/public-runtime/index.d.ts.map +1 -0
  783. package/dist/esm/public-runtime/index.js +164 -0
  784. package/dist/esm/public-runtime/index.js.map +1 -0
  785. package/dist/esm/queue/jobs.shared.resources-config.schemas.d.ts +4 -4
  786. package/dist/esm/queue/jobs.shared.resources-config.schemas.d.ts.map +1 -1
  787. package/dist/esm/queue/jobs.shared.resources-config.schemas.js +12 -1
  788. package/dist/esm/queue/jobs.shared.resources-config.schemas.js.map +1 -1
  789. package/dist/esm/queue/jobs.shared.schemas.d.ts +114 -42
  790. package/dist/esm/queue/jobs.shared.schemas.d.ts.map +1 -1
  791. package/dist/esm/queue/jobs.shared.schemas.js +114 -12
  792. package/dist/esm/queue/jobs.shared.schemas.js.map +1 -1
  793. package/dist/esm/queue/jobs.shared.utils.d.ts +3 -3
  794. package/dist/esm/queue/jobs.shared.utils.d.ts.map +1 -1
  795. package/dist/esm/queue/jobs.shared.utils.js +2 -2
  796. package/dist/esm/queue/jobs.shared.utils.js.map +1 -1
  797. package/dist/esm/queue/queues.shared.schemas.d.ts +17 -15
  798. package/dist/esm/queue/queues.shared.schemas.d.ts.map +1 -1
  799. package/dist/esm/queue/queues.shared.schemas.js +14 -5
  800. package/dist/esm/queue/queues.shared.schemas.js.map +1 -1
  801. package/dist/esm/queue/queues.shared.utils.d.ts +137 -6
  802. package/dist/esm/queue/queues.shared.utils.d.ts.map +1 -1
  803. package/dist/esm/queue/queues.shared.utils.js +161 -9
  804. package/dist/esm/queue/queues.shared.utils.js.map +1 -1
  805. package/dist/esm/queue/rabbitmq-queue-args.shared.d.ts.map +1 -1
  806. package/dist/esm/queue/rabbitmq-queue-args.shared.js +1 -1
  807. package/dist/esm/queue/rabbitmq-queue-args.shared.js.map +1 -1
  808. package/dist/esm/requests/header-keys.shared.d.ts +23 -1
  809. package/dist/esm/requests/header-keys.shared.d.ts.map +1 -1
  810. package/dist/esm/requests/header-keys.shared.js +45 -2
  811. package/dist/esm/requests/header-keys.shared.js.map +1 -1
  812. package/dist/esm/requests/http-requests.shared.d.ts +1 -0
  813. package/dist/esm/requests/http-requests.shared.d.ts.map +1 -1
  814. package/dist/esm/requests/http-requests.shared.js +2 -1
  815. package/dist/esm/requests/http-requests.shared.js.map +1 -1
  816. package/dist/esm/requests/manual-controllers-routes-urls.d.ts +189 -5
  817. package/dist/esm/requests/manual-controllers-routes-urls.d.ts.map +1 -1
  818. package/dist/esm/requests/manual-controllers-routes-urls.js +255 -6
  819. package/dist/esm/requests/manual-controllers-routes-urls.js.map +1 -1
  820. package/dist/esm/requests/rate-limits.shared.schemas.d.ts +75 -24
  821. package/dist/esm/requests/rate-limits.shared.schemas.d.ts.map +1 -1
  822. package/dist/esm/requests/rate-limits.shared.schemas.js +80 -18
  823. package/dist/esm/requests/rate-limits.shared.schemas.js.map +1 -1
  824. package/dist/esm/requests/websocket.shared.schemas.d.ts +248 -120
  825. package/dist/esm/requests/websocket.shared.schemas.d.ts.map +1 -1
  826. package/dist/esm/requests/websocket.shared.schemas.js +92 -2
  827. package/dist/esm/requests/websocket.shared.schemas.js.map +1 -1
  828. package/dist/esm/resources/child-operations.shared.schemas.d.ts +128 -23
  829. package/dist/esm/resources/child-operations.shared.schemas.d.ts.map +1 -1
  830. package/dist/esm/resources/child-operations.shared.schemas.js +147 -11
  831. package/dist/esm/resources/child-operations.shared.schemas.js.map +1 -1
  832. package/dist/esm/resources/context-policy.shared.schemas.d.ts +4 -4
  833. package/dist/esm/resources/context-policy.shared.schemas.d.ts.map +1 -1
  834. package/dist/esm/resources/context-policy.shared.schemas.js +1 -1
  835. package/dist/esm/resources/context-policy.shared.schemas.js.map +1 -1
  836. package/dist/esm/resources/relationship-display.shared.schemas.d.ts +31 -1352
  837. package/dist/esm/resources/relationship-display.shared.schemas.d.ts.map +1 -1
  838. package/dist/esm/resources/relationship-display.shared.schemas.js +13 -161
  839. package/dist/esm/resources/relationship-display.shared.schemas.js.map +1 -1
  840. package/dist/esm/resources/resources-config.shared.factory.d.ts +60 -5
  841. package/dist/esm/resources/resources-config.shared.factory.d.ts.map +1 -1
  842. package/dist/esm/resources/resources-config.shared.factory.js +1507 -87
  843. package/dist/esm/resources/resources-config.shared.factory.js.map +1 -1
  844. package/dist/esm/resources/resources-config.shared.schemas.d.ts +1638 -43
  845. package/dist/esm/resources/resources-config.shared.schemas.d.ts.map +1 -1
  846. package/dist/esm/resources/resources-config.shared.schemas.js +478 -13
  847. package/dist/esm/resources/resources-config.shared.schemas.js.map +1 -1
  848. package/dist/esm/resources/resources-registry.shared.core.definitions.d.ts +3 -3
  849. package/dist/esm/resources/resources-registry.shared.core.definitions.d.ts.map +1 -1
  850. package/dist/esm/resources/resources-registry.shared.core.definitions.js +782 -96
  851. package/dist/esm/resources/resources-registry.shared.core.definitions.js.map +1 -1
  852. package/dist/esm/resources/resources-relationships.shared.factory.d.ts +37 -7
  853. package/dist/esm/resources/resources-relationships.shared.factory.d.ts.map +1 -1
  854. package/dist/esm/resources/resources-relationships.shared.factory.js +76 -24
  855. package/dist/esm/resources/resources-relationships.shared.factory.js.map +1 -1
  856. package/dist/esm/resources/resources-serialization.shared.schemas.d.ts +19 -19
  857. package/dist/esm/resources/resources-serialization.shared.schemas.d.ts.map +1 -1
  858. package/dist/esm/resources/resources-serialization.shared.schemas.js +1 -1
  859. package/dist/esm/resources/resources-serialization.shared.schemas.js.map +1 -1
  860. package/dist/esm/resources/resources.shared.core.definitions.d.ts +84 -8
  861. package/dist/esm/resources/resources.shared.core.definitions.d.ts.map +1 -1
  862. package/dist/esm/resources/resources.shared.core.definitions.js +165 -19
  863. package/dist/esm/resources/resources.shared.core.definitions.js.map +1 -1
  864. package/dist/esm/resources/resources.shared.schemas.d.ts +582 -602
  865. package/dist/esm/resources/resources.shared.schemas.d.ts.map +1 -1
  866. package/dist/esm/resources/resources.shared.schemas.js +581 -5
  867. package/dist/esm/resources/resources.shared.schemas.js.map +1 -1
  868. package/dist/esm/resources/resources.shared.utils.d.ts +363 -15
  869. package/dist/esm/resources/resources.shared.utils.d.ts.map +1 -1
  870. package/dist/esm/resources/resources.shared.utils.js +569 -16
  871. package/dist/esm/resources/resources.shared.utils.js.map +1 -1
  872. package/dist/esm/resources/utils/collection-export.shared.utils.d.ts +65 -0
  873. package/dist/esm/resources/utils/collection-export.shared.utils.d.ts.map +1 -0
  874. package/dist/esm/resources/utils/collection-export.shared.utils.js +150 -0
  875. package/dist/esm/resources/utils/collection-export.shared.utils.js.map +1 -0
  876. package/dist/esm/resources/utils/composition-cascade-deletability.validation.d.ts +134 -0
  877. package/dist/esm/resources/utils/composition-cascade-deletability.validation.d.ts.map +1 -0
  878. package/dist/esm/resources/utils/composition-cascade-deletability.validation.js +167 -0
  879. package/dist/esm/resources/utils/composition-cascade-deletability.validation.js.map +1 -0
  880. package/dist/esm/resources/utils/composition-seedability.validation.d.ts +63 -0
  881. package/dist/esm/resources/utils/composition-seedability.validation.d.ts.map +1 -0
  882. package/dist/esm/resources/utils/composition-seedability.validation.js +75 -0
  883. package/dist/esm/resources/utils/composition-seedability.validation.js.map +1 -0
  884. package/dist/esm/resources/utils/context-addressed-composition-singleton.shared.utils.d.ts +10 -0
  885. package/dist/esm/resources/utils/context-addressed-composition-singleton.shared.utils.d.ts.map +1 -0
  886. package/dist/esm/resources/utils/context-addressed-composition-singleton.shared.utils.js +25 -0
  887. package/dist/esm/resources/utils/context-addressed-composition-singleton.shared.utils.js.map +1 -0
  888. package/dist/esm/resources/utils/duplicate-relationship-registration.validation.d.ts +111 -0
  889. package/dist/esm/resources/utils/duplicate-relationship-registration.validation.d.ts.map +1 -0
  890. package/dist/esm/resources/utils/duplicate-relationship-registration.validation.js +109 -0
  891. package/dist/esm/resources/utils/duplicate-relationship-registration.validation.js.map +1 -0
  892. package/dist/esm/resources/utils/persistence-adapter-discrimination.shared.utils.d.ts +52 -0
  893. package/dist/esm/resources/utils/persistence-adapter-discrimination.shared.utils.d.ts.map +1 -0
  894. package/dist/esm/resources/utils/persistence-adapter-discrimination.shared.utils.js +57 -0
  895. package/dist/esm/resources/utils/persistence-adapter-discrimination.shared.utils.js.map +1 -0
  896. package/dist/esm/resources/utils/repository-dto-builder.utils.d.ts.map +1 -1
  897. package/dist/esm/resources/utils/repository-dto-builder.utils.js +1 -1
  898. package/dist/esm/resources/utils/repository-dto-builder.utils.js.map +1 -1
  899. package/dist/esm/resources/utils/required-fk-fillability.validation.d.ts +108 -0
  900. package/dist/esm/resources/utils/required-fk-fillability.validation.d.ts.map +1 -0
  901. package/dist/esm/resources/utils/required-fk-fillability.validation.js +186 -0
  902. package/dist/esm/resources/utils/required-fk-fillability.validation.js.map +1 -0
  903. package/dist/esm/resources/utils/resource-operation-type-guards.utils.d.ts +107 -3
  904. package/dist/esm/resources/utils/resource-operation-type-guards.utils.d.ts.map +1 -1
  905. package/dist/esm/resources/utils/resource-operation-type-guards.utils.js +133 -2
  906. package/dist/esm/resources/utils/resource-operation-type-guards.utils.js.map +1 -1
  907. package/dist/esm/resources/utils/resource-polymorphism.factory.d.ts +39 -31
  908. package/dist/esm/resources/utils/resource-polymorphism.factory.d.ts.map +1 -1
  909. package/dist/esm/resources/utils/resource-polymorphism.factory.js +9 -9
  910. package/dist/esm/resources/utils/resource-polymorphism.factory.js.map +1 -1
  911. package/dist/esm/resources/utils/resource-polymorphism.relationships.d.ts +7 -7
  912. package/dist/esm/resources/utils/resource-polymorphism.relationships.d.ts.map +1 -1
  913. package/dist/esm/resources/utils/resource-polymorphism.relationships.js +1 -1
  914. package/dist/esm/resources/utils/resource-polymorphism.relationships.js.map +1 -1
  915. package/dist/esm/resources/utils/resource-polymorphism.schemas.d.ts +139 -5
  916. package/dist/esm/resources/utils/resource-polymorphism.schemas.d.ts.map +1 -1
  917. package/dist/esm/resources/utils/resource-polymorphism.schemas.js +301 -3
  918. package/dist/esm/resources/utils/resource-polymorphism.schemas.js.map +1 -1
  919. package/dist/esm/resources/utils/resource-polymorphism.utils.d.ts +1 -1
  920. package/dist/esm/resources/utils/resource-polymorphism.utils.d.ts.map +1 -1
  921. package/dist/esm/resources/utils/resource-polymorphism.utils.js +1 -1
  922. package/dist/esm/resources/utils/resource-polymorphism.utils.js.map +1 -1
  923. package/dist/esm/resources/utils/resource-subtree.utils.d.ts +1 -1
  924. package/dist/esm/resources/utils/resource-subtree.utils.d.ts.map +1 -1
  925. package/dist/esm/resources/utils/resource-subtree.utils.js +1 -1
  926. package/dist/esm/resources/utils/resource-subtree.utils.js.map +1 -1
  927. package/dist/esm/resources/utils/resources-config-context-needs.utils.d.ts +1 -1
  928. package/dist/esm/resources/utils/resources-config-context-needs.utils.d.ts.map +1 -1
  929. package/dist/esm/resources/utils/resources-config-context-needs.utils.js +1 -1
  930. package/dist/esm/resources/utils/resources-config-context-needs.utils.js.map +1 -1
  931. package/dist/esm/resources/utils/resources-config-naming.utils.d.ts.map +1 -1
  932. package/dist/esm/resources/utils/resources-config-naming.utils.js +1 -1
  933. package/dist/esm/resources/utils/resources-config-naming.utils.js.map +1 -1
  934. package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.d.ts +256 -39
  935. package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.d.ts.map +1 -1
  936. package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.js +898 -233
  937. package/dist/esm/resources/utils/resources-config-operations.dtos-builder.utils.js.map +1 -1
  938. package/dist/esm/resources/utils/resources-config-operations.path.utils.d.ts +16 -6
  939. package/dist/esm/resources/utils/resources-config-operations.path.utils.d.ts.map +1 -1
  940. package/dist/esm/resources/utils/resources-config-operations.path.utils.js +35 -10
  941. package/dist/esm/resources/utils/resources-config-operations.path.utils.js.map +1 -1
  942. package/dist/esm/resources/utils/resources-config-operations.urls-builder.utils.d.ts +120 -20
  943. package/dist/esm/resources/utils/resources-config-operations.urls-builder.utils.d.ts.map +1 -1
  944. package/dist/esm/resources/utils/resources-config-operations.urls-builder.utils.js +394 -81
  945. package/dist/esm/resources/utils/resources-config-operations.urls-builder.utils.js.map +1 -1
  946. package/dist/esm/resources/utils/resources-config-operations.utils.d.ts +2 -2
  947. package/dist/esm/resources/utils/resources-config-operations.utils.d.ts.map +1 -1
  948. package/dist/esm/resources/utils/resources-config-operations.utils.js +1 -1
  949. package/dist/esm/resources/utils/resources-config-operations.utils.js.map +1 -1
  950. package/dist/esm/resources/utils/resources-serialization.utils.d.ts +77 -2
  951. package/dist/esm/resources/utils/resources-serialization.utils.d.ts.map +1 -1
  952. package/dist/esm/resources/utils/resources-serialization.utils.js +80 -1
  953. package/dist/esm/resources/utils/resources-serialization.utils.js.map +1 -1
  954. package/dist/esm/resources/utils/resources-summary.utils.d.ts +1 -1
  955. package/dist/esm/resources/utils/resources-summary.utils.d.ts.map +1 -1
  956. package/dist/esm/resources/utils/resources-summary.utils.js +1 -1
  957. package/dist/esm/resources/utils/resources-summary.utils.js.map +1 -1
  958. package/dist/esm/resources/utils/schema-family-builder.utils.d.ts +21 -3
  959. package/dist/esm/resources/utils/schema-family-builder.utils.d.ts.map +1 -1
  960. package/dist/esm/resources/utils/schema-family-builder.utils.js +7 -1
  961. package/dist/esm/resources/utils/schema-family-builder.utils.js.map +1 -1
  962. package/dist/esm/resources/utils/schema-type-inference.utils.d.ts.map +1 -1
  963. package/dist/esm/resources/utils/schema-type-inference.utils.js +1 -1
  964. package/dist/esm/resources/utils/schema-type-inference.utils.js.map +1 -1
  965. package/dist/esm/resources/utils/schema-type-utils.d.ts +1 -1
  966. package/dist/esm/resources/utils/schema-type-utils.d.ts.map +1 -1
  967. package/dist/esm/resources/utils/schema-type-utils.js +1 -1
  968. package/dist/esm/resources/utils/schema-type-utils.js.map +1 -1
  969. package/dist/esm/resources/utils/schema-variant-resolver.utils.d.ts +1 -1
  970. package/dist/esm/resources/utils/schema-variant-resolver.utils.d.ts.map +1 -1
  971. package/dist/esm/resources/utils/schema-variant-resolver.utils.js +1 -1
  972. package/dist/esm/resources/utils/schema-variant-resolver.utils.js.map +1 -1
  973. package/dist/esm/resources/utils/shared-persistence-collection.utils.d.ts +203 -0
  974. package/dist/esm/resources/utils/shared-persistence-collection.utils.d.ts.map +1 -0
  975. package/dist/esm/resources/utils/shared-persistence-collection.utils.js +284 -0
  976. package/dist/esm/resources/utils/shared-persistence-collection.utils.js.map +1 -0
  977. package/dist/esm/resources/utils/templatable-file-fields.shared.utils.d.ts +25 -0
  978. package/dist/esm/resources/utils/templatable-file-fields.shared.utils.d.ts.map +1 -0
  979. package/dist/esm/resources/utils/templatable-file-fields.shared.utils.js +322 -0
  980. package/dist/esm/resources/utils/templatable-file-fields.shared.utils.js.map +1 -0
  981. package/dist/esm/runtime/domain-module.shared.definitions.d.ts +32 -10
  982. package/dist/esm/runtime/domain-module.shared.definitions.d.ts.map +1 -1
  983. package/dist/esm/runtime/domain-module.shared.definitions.js +3 -2
  984. package/dist/esm/runtime/domain-module.shared.definitions.js.map +1 -1
  985. package/dist/esm/runtime/execution-context.shared.schemas.d.ts +93 -9
  986. package/dist/esm/runtime/execution-context.shared.schemas.d.ts.map +1 -1
  987. package/dist/esm/runtime/execution-context.shared.schemas.js +122 -7
  988. package/dist/esm/runtime/execution-context.shared.schemas.js.map +1 -1
  989. package/dist/esm/runtime/runtime.shared.schemas.d.ts.map +1 -1
  990. package/dist/esm/runtime/runtime.shared.schemas.js +1 -1
  991. package/dist/esm/runtime/runtime.shared.schemas.js.map +1 -1
  992. package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.d.ts +14 -11
  993. package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.d.ts.map +1 -1
  994. package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.js +65 -2
  995. package/dist/esm/security/api-keys/api-keys-application.shared.resources-config.schemas.js.map +1 -1
  996. package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.d.ts +14 -11
  997. package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.d.ts.map +1 -1
  998. package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.js +162 -1
  999. package/dist/esm/security/api-keys/api-keys-organization.shared.resources-config.schemas.js.map +1 -1
  1000. package/dist/esm/security/api-keys/api-keys.shared.schemas.d.ts +79 -29
  1001. package/dist/esm/security/api-keys/api-keys.shared.schemas.d.ts.map +1 -1
  1002. package/dist/esm/security/api-keys/api-keys.shared.schemas.js +87 -6
  1003. package/dist/esm/security/api-keys/api-keys.shared.schemas.js.map +1 -1
  1004. package/dist/esm/security/authentications/anonymous-session/anonymous-session.shared.contract.d.ts +185 -0
  1005. package/dist/esm/security/authentications/anonymous-session/anonymous-session.shared.contract.d.ts.map +1 -0
  1006. package/dist/esm/security/authentications/anonymous-session/anonymous-session.shared.contract.js +198 -0
  1007. package/dist/esm/security/authentications/anonymous-session/anonymous-session.shared.contract.js.map +1 -0
  1008. package/dist/esm/security/authentications/authentication.shared.dto.schemas.d.ts +307 -149
  1009. package/dist/esm/security/authentications/authentication.shared.dto.schemas.d.ts.map +1 -1
  1010. package/dist/esm/security/authentications/authentication.shared.dto.schemas.js +177 -27
  1011. package/dist/esm/security/authentications/authentication.shared.dto.schemas.js.map +1 -1
  1012. package/dist/esm/security/authentications/authentication.shared.schemas.d.ts +64 -8
  1013. package/dist/esm/security/authentications/authentication.shared.schemas.d.ts.map +1 -1
  1014. package/dist/esm/security/authentications/authentication.shared.schemas.js +56 -9
  1015. package/dist/esm/security/authentications/authentication.shared.schemas.js.map +1 -1
  1016. package/dist/esm/security/authentications/authentication.shared.utils.d.ts +3 -3
  1017. package/dist/esm/security/authentications/authentication.shared.utils.d.ts.map +1 -1
  1018. package/dist/esm/security/authentications/authentication.shared.utils.js +1 -1
  1019. package/dist/esm/security/authentications/authentication.shared.utils.js.map +1 -1
  1020. package/dist/esm/security/authentications/consumable-token.shared.schemas.d.ts +103 -5
  1021. package/dist/esm/security/authentications/consumable-token.shared.schemas.d.ts.map +1 -1
  1022. package/dist/esm/security/authentications/consumable-token.shared.schemas.js +31 -1
  1023. package/dist/esm/security/authentications/consumable-token.shared.schemas.js.map +1 -1
  1024. package/dist/esm/security/authentications/cross-frontend-handoff.shared.dto.schemas.d.ts +278 -0
  1025. package/dist/esm/security/authentications/cross-frontend-handoff.shared.dto.schemas.d.ts.map +1 -0
  1026. package/dist/esm/security/authentications/cross-frontend-handoff.shared.dto.schemas.js +335 -0
  1027. package/dist/esm/security/authentications/cross-frontend-handoff.shared.dto.schemas.js.map +1 -0
  1028. package/dist/esm/security/authentications/password-reset.shared.dto.schemas.d.ts +6 -6
  1029. package/dist/esm/security/authentications/password-reset.shared.dto.schemas.d.ts.map +1 -1
  1030. package/dist/esm/security/authentications/password-reset.shared.dto.schemas.js +11 -4
  1031. package/dist/esm/security/authentications/password-reset.shared.dto.schemas.js.map +1 -1
  1032. package/dist/esm/security/authentications/registration.shared.dto.schemas.d.ts +51 -18
  1033. package/dist/esm/security/authentications/registration.shared.dto.schemas.d.ts.map +1 -1
  1034. package/dist/esm/security/authentications/registration.shared.dto.schemas.js +70 -13
  1035. package/dist/esm/security/authentications/registration.shared.dto.schemas.js.map +1 -1
  1036. package/dist/esm/security/authentications/same-origin-redirect-path.shared.d.ts +69 -0
  1037. package/dist/esm/security/authentications/same-origin-redirect-path.shared.d.ts.map +1 -0
  1038. package/dist/esm/security/authentications/same-origin-redirect-path.shared.js +93 -0
  1039. package/dist/esm/security/authentications/same-origin-redirect-path.shared.js.map +1 -0
  1040. package/dist/esm/security/authentications/scim/scim-organization-unit-mapping.shared.d.ts +91 -0
  1041. package/dist/esm/security/authentications/scim/scim-organization-unit-mapping.shared.d.ts.map +1 -0
  1042. package/dist/esm/security/authentications/scim/scim-organization-unit-mapping.shared.js +91 -0
  1043. package/dist/esm/security/authentications/scim/scim-organization-unit-mapping.shared.js.map +1 -0
  1044. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas.d.ts +2 -9
  1045. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas.d.ts.map +1 -1
  1046. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas.js +49 -33
  1047. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas.js.map +1 -1
  1048. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.d.ts +41 -14
  1049. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.d.ts.map +1 -1
  1050. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.js +158 -5
  1051. package/dist/esm/security/authentications/scim/scim-provisioning-config.shared.schemas.js.map +1 -1
  1052. package/dist/esm/security/authentications/scim/scim-tokens.shared.resources-config.schemas.d.ts +21 -9
  1053. package/dist/esm/security/authentications/scim/scim-tokens.shared.resources-config.schemas.d.ts.map +1 -1
  1054. package/dist/esm/security/authentications/scim/scim-tokens.shared.resources-config.schemas.js +92 -18
  1055. package/dist/esm/security/authentications/scim/scim-tokens.shared.resources-config.schemas.js.map +1 -1
  1056. package/dist/esm/security/authentications/scim/scim-tokens.shared.schemas.d.ts +11 -10
  1057. package/dist/esm/security/authentications/scim/scim-tokens.shared.schemas.d.ts.map +1 -1
  1058. package/dist/esm/security/authentications/scim/scim-tokens.shared.schemas.js +29 -7
  1059. package/dist/esm/security/authentications/scim/scim-tokens.shared.schemas.js.map +1 -1
  1060. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.resources-config.schemas.d.ts +12 -5
  1061. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.resources-config.schemas.d.ts.map +1 -1
  1062. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.resources-config.schemas.js +81 -5
  1063. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.resources-config.schemas.js.map +1 -1
  1064. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.schemas.d.ts +17 -5
  1065. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.schemas.d.ts.map +1 -1
  1066. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.schemas.js +29 -5
  1067. package/dist/esm/security/authentications/siem/siem-delivery-dlq.shared.schemas.js.map +1 -1
  1068. package/dist/esm/security/authentications/siem/siem-export-config.shared.resources-config.schemas.d.ts +2 -9
  1069. package/dist/esm/security/authentications/siem/siem-export-config.shared.resources-config.schemas.d.ts.map +1 -1
  1070. package/dist/esm/security/authentications/siem/siem-export-config.shared.resources-config.schemas.js +46 -33
  1071. package/dist/esm/security/authentications/siem/siem-export-config.shared.resources-config.schemas.js.map +1 -1
  1072. package/dist/esm/security/authentications/siem/siem-export-config.shared.schemas.d.ts +34 -9
  1073. package/dist/esm/security/authentications/siem/siem-export-config.shared.schemas.d.ts.map +1 -1
  1074. package/dist/esm/security/authentications/siem/siem-export-config.shared.schemas.js +47 -3
  1075. package/dist/esm/security/authentications/siem/siem-export-config.shared.schemas.js.map +1 -1
  1076. package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.d.ts +2 -17
  1077. package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.d.ts.map +1 -1
  1078. package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.js +55 -53
  1079. package/dist/esm/security/authentications/sso/sso-config.shared.resources-config.schemas.js.map +1 -1
  1080. package/dist/esm/security/authentications/sso/sso-config.shared.schemas.d.ts +37 -37
  1081. package/dist/esm/security/authentications/sso/sso-config.shared.schemas.d.ts.map +1 -1
  1082. package/dist/esm/security/authentications/sso/sso-config.shared.schemas.js +53 -13
  1083. package/dist/esm/security/authentications/sso/sso-config.shared.schemas.js.map +1 -1
  1084. package/dist/esm/security/authentications/sso/sso-connection.shared.resources-config.schemas.d.ts +79 -7
  1085. package/dist/esm/security/authentications/sso/sso-connection.shared.resources-config.schemas.d.ts.map +1 -1
  1086. package/dist/esm/security/authentications/sso/sso-connection.shared.resources-config.schemas.js +157 -14
  1087. package/dist/esm/security/authentications/sso/sso-connection.shared.resources-config.schemas.js.map +1 -1
  1088. package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.d.ts +113 -118
  1089. package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.d.ts.map +1 -1
  1090. package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.js +111 -49
  1091. package/dist/esm/security/authentications/sso/sso-connection.shared.schemas.js.map +1 -1
  1092. package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.d.ts +57 -0
  1093. package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.d.ts.map +1 -0
  1094. package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.js +58 -0
  1095. package/dist/esm/security/authorizations/administrative-continuity.shared.schemas.js.map +1 -0
  1096. package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.d.ts +35 -0
  1097. package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.d.ts.map +1 -0
  1098. package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.js +252 -0
  1099. package/dist/esm/security/authorizations/platform-access-grants.shared.resources-config.schemas.js.map +1 -0
  1100. package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.d.ts +171 -0
  1101. package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.d.ts.map +1 -0
  1102. package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.js +239 -0
  1103. package/dist/esm/security/authorizations/platform-access-grants.shared.schemas.js.map +1 -0
  1104. package/dist/esm/security/authorizations/roles.shared.defaults.d.ts +1 -1
  1105. package/dist/esm/security/authorizations/roles.shared.defaults.d.ts.map +1 -1
  1106. package/dist/esm/security/authorizations/roles.shared.defaults.js +6 -1
  1107. package/dist/esm/security/authorizations/roles.shared.defaults.js.map +1 -1
  1108. package/dist/esm/security/authorizations/roles.shared.schemas.d.ts +12 -3
  1109. package/dist/esm/security/authorizations/roles.shared.schemas.d.ts.map +1 -1
  1110. package/dist/esm/security/authorizations/roles.shared.schemas.js +15 -1
  1111. package/dist/esm/security/authorizations/roles.shared.schemas.js.map +1 -1
  1112. package/dist/esm/security/authorizations/roles.shared.utils.d.ts +133 -0
  1113. package/dist/esm/security/authorizations/roles.shared.utils.d.ts.map +1 -0
  1114. package/dist/esm/security/authorizations/roles.shared.utils.js +218 -0
  1115. package/dist/esm/security/authorizations/roles.shared.utils.js.map +1 -0
  1116. package/dist/esm/security/crypto-keys/crypto-keys.shared.schemas.d.ts.map +1 -1
  1117. package/dist/esm/security/crypto-keys/crypto-keys.shared.schemas.js +1 -1
  1118. package/dist/esm/security/crypto-keys/crypto-keys.shared.schemas.js.map +1 -1
  1119. package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.d.ts +47 -0
  1120. package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.d.ts.map +1 -0
  1121. package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.js +228 -0
  1122. package/dist/esm/security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.js.map +1 -0
  1123. package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.d.ts +46 -0
  1124. package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.d.ts.map +1 -0
  1125. package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.js +365 -0
  1126. package/dist/esm/security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.js.map +1 -0
  1127. package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.d.ts +192 -0
  1128. package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.d.ts.map +1 -0
  1129. package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.js +401 -0
  1130. package/dist/esm/security/oauth-clients/oauth-clients.shared.schemas.js.map +1 -0
  1131. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.d.ts +30 -0
  1132. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.d.ts.map +1 -0
  1133. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.js +83 -0
  1134. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.js.map +1 -0
  1135. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.d.ts +29 -0
  1136. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.d.ts.map +1 -0
  1137. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.js +53 -0
  1138. package/dist/esm/security/oauth-clients/oauth-consent-grants.shared.schemas.js.map +1 -0
  1139. package/dist/esm/security/oauth-clients/oauth-resource-server.shared.schemas.d.ts +117 -0
  1140. package/dist/esm/security/oauth-clients/oauth-resource-server.shared.schemas.d.ts.map +1 -0
  1141. package/dist/esm/security/oauth-clients/oauth-resource-server.shared.schemas.js +180 -0
  1142. package/dist/esm/security/oauth-clients/oauth-resource-server.shared.schemas.js.map +1 -0
  1143. package/dist/esm/testing/resource-config-builders.d.ts +4 -4
  1144. package/dist/esm/testing/resource-config-builders.d.ts.map +1 -1
  1145. package/dist/esm/testing/resource-config-builders.js +9 -2
  1146. package/dist/esm/testing/resource-config-builders.js.map +1 -1
  1147. package/dist/esm/testing.d.ts +1 -1
  1148. package/dist/esm/testing.d.ts.map +1 -1
  1149. package/dist/esm/testing.js +1 -1
  1150. package/dist/esm/testing.js.map +1 -1
  1151. package/dist/esm/users/anonymous-user-marketing-metadata.shared.schemas.d.ts +76 -0
  1152. package/dist/esm/users/anonymous-user-marketing-metadata.shared.schemas.d.ts.map +1 -0
  1153. package/dist/esm/users/anonymous-user-marketing-metadata.shared.schemas.js +72 -0
  1154. package/dist/esm/users/anonymous-user-marketing-metadata.shared.schemas.js.map +1 -0
  1155. package/dist/esm/users/anonymous-users.shared.resources-config.schemas.d.ts +28 -17
  1156. package/dist/esm/users/anonymous-users.shared.resources-config.schemas.d.ts.map +1 -1
  1157. package/dist/esm/users/anonymous-users.shared.resources-config.schemas.js +43 -4
  1158. package/dist/esm/users/anonymous-users.shared.resources-config.schemas.js.map +1 -1
  1159. package/dist/esm/users/anonymous-users.shared.schema.d.ts +19 -12
  1160. package/dist/esm/users/anonymous-users.shared.schema.d.ts.map +1 -1
  1161. package/dist/esm/users/anonymous-users.shared.schema.js +68 -4
  1162. package/dist/esm/users/anonymous-users.shared.schema.js.map +1 -1
  1163. package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.d.ts +52 -0
  1164. package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.d.ts.map +1 -0
  1165. package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.js +153 -0
  1166. package/dist/esm/users/inbound-contacts.shared.resources-config.schemas.js.map +1 -0
  1167. package/dist/esm/users/inbound-contacts.shared.schemas.d.ts +47 -17
  1168. package/dist/esm/users/inbound-contacts.shared.schemas.d.ts.map +1 -1
  1169. package/dist/esm/users/inbound-contacts.shared.schemas.js +123 -9
  1170. package/dist/esm/users/inbound-contacts.shared.schemas.js.map +1 -1
  1171. package/dist/esm/users/user-credentials.shared.resources-config.schemas.d.ts +12 -12
  1172. package/dist/esm/users/user-credentials.shared.resources-config.schemas.d.ts.map +1 -1
  1173. package/dist/esm/users/user-credentials.shared.resources-config.schemas.js +11 -1
  1174. package/dist/esm/users/user-credentials.shared.resources-config.schemas.js.map +1 -1
  1175. package/dist/esm/users/user-credentials.shared.schemas.d.ts +15 -10
  1176. package/dist/esm/users/user-credentials.shared.schemas.d.ts.map +1 -1
  1177. package/dist/esm/users/user-credentials.shared.schemas.js +53 -9
  1178. package/dist/esm/users/user-credentials.shared.schemas.js.map +1 -1
  1179. package/dist/esm/users/user-identity-links.shared.resources-config.schemas.d.ts +13 -11
  1180. package/dist/esm/users/user-identity-links.shared.resources-config.schemas.d.ts.map +1 -1
  1181. package/dist/esm/users/user-identity-links.shared.resources-config.schemas.js +24 -1
  1182. package/dist/esm/users/user-identity-links.shared.resources-config.schemas.js.map +1 -1
  1183. package/dist/esm/users/user-identity-links.shared.schemas.d.ts +22 -19
  1184. package/dist/esm/users/user-identity-links.shared.schemas.d.ts.map +1 -1
  1185. package/dist/esm/users/user-identity-links.shared.schemas.js +107 -23
  1186. package/dist/esm/users/user-identity-links.shared.schemas.js.map +1 -1
  1187. package/dist/esm/users/user-preferences-reset.shared.utils.d.ts +78 -0
  1188. package/dist/esm/users/user-preferences-reset.shared.utils.d.ts.map +1 -0
  1189. package/dist/esm/users/user-preferences-reset.shared.utils.js +98 -0
  1190. package/dist/esm/users/user-preferences-reset.shared.utils.js.map +1 -0
  1191. package/dist/esm/users/user-preferences.shared.resources-config.schemas.d.ts +31 -61
  1192. package/dist/esm/users/user-preferences.shared.resources-config.schemas.d.ts.map +1 -1
  1193. package/dist/esm/users/user-preferences.shared.resources-config.schemas.js +34 -203
  1194. package/dist/esm/users/user-preferences.shared.resources-config.schemas.js.map +1 -1
  1195. package/dist/esm/users/user-profiles.shared.resources-config.schemas.d.ts +13 -14
  1196. package/dist/esm/users/user-profiles.shared.resources-config.schemas.d.ts.map +1 -1
  1197. package/dist/esm/users/user-profiles.shared.resources-config.schemas.js +66 -31
  1198. package/dist/esm/users/user-profiles.shared.resources-config.schemas.js.map +1 -1
  1199. package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.d.ts +33 -60
  1200. package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.d.ts.map +1 -1
  1201. package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.js +49 -175
  1202. package/dist/esm/users/user-self-preferences.shared.resources-config.schemas.js.map +1 -1
  1203. package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.d.ts +13 -21
  1204. package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.d.ts.map +1 -1
  1205. package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.js +12 -119
  1206. package/dist/esm/users/user-self-profiles.shared.resources-config.schemas.js.map +1 -1
  1207. package/dist/esm/users/user-self.shared.resources-config.schemas.d.ts +12 -16
  1208. package/dist/esm/users/user-self.shared.resources-config.schemas.d.ts.map +1 -1
  1209. package/dist/esm/users/user-self.shared.resources-config.schemas.js +263 -115
  1210. package/dist/esm/users/user-self.shared.resources-config.schemas.js.map +1 -1
  1211. package/dist/esm/users/users.shared.resources-config.schemas.d.ts +13 -16
  1212. package/dist/esm/users/users.shared.resources-config.schemas.d.ts.map +1 -1
  1213. package/dist/esm/users/users.shared.resources-config.schemas.js +376 -141
  1214. package/dist/esm/users/users.shared.resources-config.schemas.js.map +1 -1
  1215. package/dist/esm/users/users.shared.schemas.d.ts +110 -108
  1216. package/dist/esm/users/users.shared.schemas.d.ts.map +1 -1
  1217. package/dist/esm/users/users.shared.schemas.js +215 -19
  1218. package/dist/esm/users/users.shared.schemas.js.map +1 -1
  1219. package/dist/tsconfig.build.tsbuildinfo +1 -1
  1220. package/package.json +54 -27
  1221. package/dist/esm/compliance/compliance-framework/compliance-frameworks.shared.schemas.d.ts +0 -37
  1222. package/dist/esm/compliance/compliance-framework/compliance-frameworks.shared.schemas.d.ts.map +0 -1
  1223. package/dist/esm/compliance/compliance-framework/compliance-frameworks.shared.schemas.js +0 -38
  1224. package/dist/esm/compliance/compliance-framework/compliance-frameworks.shared.schemas.js.map +0 -1
  1225. package/dist/esm/external-providers/feature-bindings-policy.shared.schemas.d.ts +0 -27
  1226. package/dist/esm/external-providers/feature-bindings-policy.shared.schemas.d.ts.map +0 -1
  1227. package/dist/esm/external-providers/feature-bindings-policy.shared.schemas.js +0 -35
  1228. package/dist/esm/external-providers/feature-bindings-policy.shared.schemas.js.map +0 -1
  1229. package/dist/esm/external-providers/feature-mapping.shared.schemas.d.ts +0 -80
  1230. package/dist/esm/external-providers/feature-mapping.shared.schemas.d.ts.map +0 -1
  1231. package/dist/esm/external-providers/feature-mapping.shared.schemas.js +0 -159
  1232. package/dist/esm/external-providers/feature-mapping.shared.schemas.js.map +0 -1
  1233. package/dist/esm/external-providers/wildo-features.shared.schemas.d.ts +0 -102
  1234. package/dist/esm/external-providers/wildo-features.shared.schemas.d.ts.map +0 -1
  1235. package/dist/esm/external-providers/wildo-features.shared.schemas.js +0 -124
  1236. package/dist/esm/external-providers/wildo-features.shared.schemas.js.map +0 -1
  1237. package/dist/esm/features/platform-capability-definitions.shared.d.ts +0 -50
  1238. package/dist/esm/features/platform-capability-definitions.shared.d.ts.map +0 -1
  1239. package/dist/esm/features/platform-capability-definitions.shared.js +0 -30
  1240. package/dist/esm/features/platform-capability-definitions.shared.js.map +0 -1
  1241. package/dist/esm/flows-actors/agents-context.shared.schemas.d.ts +0 -181
  1242. package/dist/esm/flows-actors/agents-context.shared.schemas.d.ts.map +0 -1
  1243. package/dist/esm/flows-actors/agents-context.shared.schemas.js +0 -116
  1244. package/dist/esm/flows-actors/agents-context.shared.schemas.js.map +0 -1
  1245. package/dist/esm/notifications/email/email-header-footer-template.shared.resources-config.schemas.d.ts +0 -39
  1246. package/dist/esm/notifications/email/email-header-footer-template.shared.resources-config.schemas.d.ts.map +0 -1
  1247. package/dist/esm/notifications/email/email-header-footer-template.shared.resources-config.schemas.js +0 -113
  1248. package/dist/esm/notifications/email/email-header-footer-template.shared.resources-config.schemas.js.map +0 -1
  1249. package/dist/esm/notifications/email/email-header-footer-template.shared.schemas.d.ts +0 -63
  1250. package/dist/esm/notifications/email/email-header-footer-template.shared.schemas.d.ts.map +0 -1
  1251. package/dist/esm/notifications/email/email-header-footer-template.shared.schemas.js +0 -110
  1252. package/dist/esm/notifications/email/email-header-footer-template.shared.schemas.js.map +0 -1
  1253. package/dist/esm/notifications/email/email-template.shared.resources-config.schemas.d.ts +0 -62
  1254. package/dist/esm/notifications/email/email-template.shared.resources-config.schemas.d.ts.map +0 -1
  1255. package/dist/esm/notifications/email/email-template.shared.resources-config.schemas.js +0 -112
  1256. package/dist/esm/notifications/email/email-template.shared.resources-config.schemas.js.map +0 -1
  1257. package/dist/esm/notifications/email/email-template.shared.schemas.d.ts +0 -162
  1258. package/dist/esm/notifications/email/email-template.shared.schemas.d.ts.map +0 -1
  1259. package/dist/esm/notifications/email/email-template.shared.schemas.js +0 -189
  1260. package/dist/esm/notifications/email/email-template.shared.schemas.js.map +0 -1
  1261. package/dist/esm/organizations/organization-member-invitations.shared.resources-config.schemas.d.ts +0 -37
  1262. package/dist/esm/organizations/organization-member-invitations.shared.resources-config.schemas.d.ts.map +0 -1
  1263. package/dist/esm/organizations/organization-member-invitations.shared.resources-config.schemas.js +0 -207
  1264. package/dist/esm/organizations/organization-member-invitations.shared.resources-config.schemas.js.map +0 -1
  1265. package/dist/esm/resources/testing/SchemaDecoratorTestUtils.d.ts +0 -91
  1266. package/dist/esm/resources/testing/SchemaDecoratorTestUtils.d.ts.map +0 -1
  1267. package/dist/esm/resources/testing/SchemaDecoratorTestUtils.js +0 -325
  1268. package/dist/esm/resources/testing/SchemaDecoratorTestUtils.js.map +0 -1
  1269. package/dist/esm/runtime/companion-artifact-placement.shared.definitions.d.ts.map +0 -1
  1270. package/dist/esm/runtime/companion-artifact-placement.shared.definitions.js.map +0 -1
  1271. package/dist/esm/security/authentications/policy/auth-policy.shared.resources-config.schemas.d.ts +0 -10
  1272. package/dist/esm/security/authentications/policy/auth-policy.shared.resources-config.schemas.d.ts.map +0 -1
  1273. package/dist/esm/security/authentications/policy/auth-policy.shared.resources-config.schemas.js +0 -52
  1274. package/dist/esm/security/authentications/policy/auth-policy.shared.resources-config.schemas.js.map +0 -1
  1275. package/dist/esm/security/authentications/policy/auth-policy.shared.schemas.d.ts +0 -52
  1276. package/dist/esm/security/authentications/policy/auth-policy.shared.schemas.d.ts.map +0 -1
  1277. package/dist/esm/security/authentications/policy/auth-policy.shared.schemas.js +0 -40
  1278. package/dist/esm/security/authentications/policy/auth-policy.shared.schemas.js.map +0 -1
  1279. package/dist/esm/testing/schema-decorator-utils.d.ts +0 -91
  1280. package/dist/esm/testing/schema-decorator-utils.d.ts.map +0 -1
  1281. package/dist/esm/testing/schema-decorator-utils.js +0 -325
  1282. package/dist/esm/testing/schema-decorator-utils.js.map +0 -1
@@ -16,15 +16,20 @@ import { userSelfPreferencesResourceConfiguration_InitializationFactory } from "
16
16
  import { applicationResourceConfiguration_InitializationFactory } from "../applications/applications.shared.resources-config.schemas.js";
17
17
  import { organizationResourceConfiguration_InitializationFactory } from "../organizations/organizations.shared.resources-config.schemas.js";
18
18
  import { organizationUnitResourceConfiguration_InitializationFactory } from "../organizations/organization-units.shared.resources-config.schemas.js";
19
+ import { organizationUnitMemberResourceConfiguration_InitializationFactory } from "../organizations/organization-unit-members.shared.resources-config.schemas.js";
19
20
  import { organizationProfileResourceConfiguration_InitializationFactory } from "../organizations/organization-profile.shared.resources-config.schemas.js";
20
21
  import { organizationPreferencesResourceConfiguration_InitializationFactory } from "../organizations/organization-preferences.shared.resources-config.schemas.js";
22
+ import { platformAccessGrantsResourceConfiguration_InitializationFactory } from '../security/authorizations/platform-access-grants.shared.resources-config.schemas.js';
21
23
  import { organizationNotificationsResourceConfiguration_InitializationFactory } from "../organizations/organization-notifications.shared.resources-config.schemas.js";
22
24
  import { organizationFeaturesResourceConfiguration_InitializationFactory } from "../organizations/organization-features.shared.resources-config.schemas.js";
23
25
  import { userFeaturesResourceConfiguration_InitializationFactory } from "../features/user-features.shared.resources-config.schemas.js";
26
+ import { applicationFeaturesResourceConfiguration_InitializationFactory } from "../features/application-features.shared.resources-config.schemas.js";
24
27
  import { organizationMembersResourceConfiguration_InitializationFactory } from "../organizations/organization-members.shared.resources-config.schemas.js";
25
- import { organizationMemberInvitationsResourceConfiguration_InitializationFactory } from "../organizations/organization-member-invitations.shared.resources-config.schemas.js";
26
28
  import { orgApiKeysResourceConfiguration_InitializationFactory } from "../security/api-keys/api-keys-organization.shared.resources-config.schemas.js";
27
29
  import { appApiKeysResourceConfiguration_InitializationFactory } from "../security/api-keys/api-keys-application.shared.resources-config.schemas.js";
30
+ import { orgOAuthClientsResourceConfiguration_InitializationFactory } from "../security/oauth-clients/oauth-clients-organization.shared.resources-config.schemas.js";
31
+ import { appOAuthClientsResourceConfiguration_InitializationFactory } from "../security/oauth-clients/oauth-clients-application.shared.resources-config.schemas.js";
32
+ import { oauthConsentGrantsResourceConfiguration_InitializationFactory } from "../security/oauth-clients/oauth-consent-grants.shared.resources-config.schemas.js";
28
33
  import { billingAccountsPolymorphicFactories } from "../billing/billing-account.shared.resources-config.schemas.js";
29
34
  import { billingAccountsPolymorphicDeclaration } from "../billing/billing-account.shared.schemas.js";
30
35
  import { productsResourceConfiguration_InitializationFactory } from "../billing/product.shared.resources-config.schemas.js";
@@ -40,19 +45,27 @@ import { creditPoolsPolymorphicFactories } from "../billing/credit-pool.shared.r
40
45
  import { creditPoolsPolymorphicDeclaration } from "../billing/credit-pool.shared.schemas.js";
41
46
  import { promotionsResourceConfiguration_InitializationFactory } from "../billing/promotions.shared.resources-config.schemas.js";
42
47
  import { referralsResourceConfiguration_InitializationFactory } from "../billing/referral.shared.resources-config.schemas.js";
43
- import { notificationBadgesResourceConfiguration_InitializationFactory } from "../notifications/notification-badges.shared.resources-config.schemas.js";
48
+ import { userNotificationBadgesResourceConfiguration_InitializationFactory, organizationNotificationBadgesResourceConfiguration_InitializationFactory, } from "../notifications/notification-badges.shared.resources-config.schemas.js";
44
49
  import { createResourcesRelationship } from "./resources-relationships.shared.factory.js";
45
50
  import { applicationVersionsResourceConfiguration_InitializationFactory } from "../applications/application-versions.shared.resources-config.schemas.js";
46
51
  import { applicationMetadataResourceConfiguration_InitializationFactory } from "../applications/application-metadata.shared.resources-config.schemas.js";
47
52
  // Queue system resources
48
53
  import { jobExecution_ResourceConfiguration_InitializationFactory, jobPayloadStorage_ResourceConfiguration_InitializationFactory } from "../queue/jobs.shared.resources-config.schemas.js";
49
- // Email system resources
50
- import { emailTemplateResourceConfiguration_InitializationFactory } from "../notifications/email/email-template.shared.resources-config.schemas.js";
51
- import { emailHeaderFooterTemplateResourceConfiguration_InitializationFactory } from "../notifications/email/email-header-footer-template.shared.resources-config.schemas.js";
54
+ // Flows-Actors execution resource (persisted flow/actor system executions)
55
+ import { flowActorExecutionsPolymorphicFactories } from "../flows-actors/flows-actors-execution.shared.resources-config.schemas.js";
56
+ import { flowActorExecutionsPolymorphicDeclaration } from "../flows-actors/flows-actors-execution.shared.schemas.js";
57
+ import { flowActorTasksPolymorphicFactories } from "../flows-actors/flows-actors-task.shared.resources-config.schemas.js";
58
+ import { flowActorTasksPolymorphicDeclaration } from "../flows-actors/flows-actors-task.shared.schemas.js";
59
+ import { a2aTokenBudgetStatePolymorphicFactories } from "../flows-actors/a2a-token-budget-state.shared.resources-config.schemas.js";
60
+ import { a2aPushDeliveryLogPolymorphicFactories } from "../flows-actors/a2a-push-delivery-log.shared.resources-config.schemas.js";
61
+ import { a2aTokenBudgetStatePolymorphicDeclaration } from "../flows-actors/a2a-token-budget-state.shared.schemas.js";
62
+ import { a2aPushDeliveryLogPolymorphicDeclaration } from "../flows-actors/a2a-push-delivery-log.shared.schemas.js";
52
63
  // Authentication resources
53
64
  import { userIdentityLinksResourceConfiguration_InitializationFactory } from "../users/user-identity-links.shared.resources-config.schemas.js";
54
65
  // Anonymous session resources (W7.3a)
55
66
  import { anonymousUsersResourceConfiguration_InitializationFactory } from "../users/anonymous-users.shared.resources-config.schemas.js";
67
+ // Inbound contacts (Phase 0.5 — public marketing-site lead capture, Q-E=B path)
68
+ import { inboundContactsResourceConfiguration_InitializationFactory } from "../users/inbound-contacts.shared.resources-config.schemas.js";
56
69
  // Guidance State resources
57
70
  import { userGuidanceStateResourceConfiguration_InitializationFactory, organizationGuidanceStateResourceConfiguration_InitializationFactory } from "../guidance/guidance-state.shared.resources-config.schemas.js";
58
71
  // Auth polymorphic resource configs (SSO + SIEM + SCIM)
@@ -60,12 +73,14 @@ import { ssoConfigPolymorphicFactories } from "../security/authentications/sso/s
60
73
  import { ssoConfigPolymorphicDeclaration } from "../security/authentications/sso/sso-config.shared.schemas.js";
61
74
  import { ssoConnectionPolymorphicFactories } from "../security/authentications/sso/sso-connection.shared.resources-config.schemas.js";
62
75
  import { ssoConnectionPolymorphicDeclaration } from "../security/authentications/sso/sso-connection.shared.schemas.js";
63
- import { authPolicyPolymorphicFactories } from "../security/authentications/policy/auth-policy.shared.resources-config.schemas.js";
64
- import { authPolicyPolymorphicDeclaration } from "../security/authentications/policy/auth-policy.shared.schemas.js";
65
76
  import { siemExportConfigPolymorphicFactories } from "../security/authentications/siem/siem-export-config.shared.resources-config.schemas.js";
66
77
  import { siemExportConfigPolymorphicDeclaration } from "../security/authentications/siem/siem-export-config.shared.schemas.js";
67
78
  import { siemDeliveryDlqPolymorphicFactories } from "../security/authentications/siem/siem-delivery-dlq.shared.resources-config.schemas.js";
68
79
  import { siemDeliveryDlqPolymorphicDeclaration } from "../security/authentications/siem/siem-delivery-dlq.shared.schemas.js";
80
+ import { webhookConfigPolymorphicFactories } from "../notifications/m2m/webhook-config.shared.resources-config.schemas.js";
81
+ import { webhookConfigPolymorphicDeclaration } from "../notifications/m2m/webhook-config.shared.schemas.js";
82
+ import { m2mWebhookDeliveryLogPolymorphicFactories } from "../notifications/m2m/m2m-webhook-delivery-log.shared.resources-config.schemas.js";
83
+ import { m2mWebhookDeliveryLogPolymorphicDeclaration } from "../notifications/m2m/m2m-webhook-delivery-log.shared.schemas.js";
69
84
  import { scimTokensPolymorphicFactories } from "../security/authentications/scim/scim-tokens.shared.resources-config.schemas.js";
70
85
  import { scimTokensPolymorphicDeclaration } from "../security/authentications/scim/scim-tokens.shared.schemas.js";
71
86
  import { scimProvisioningConfigPolymorphicFactories } from "../security/authentications/scim/scim-provisioning-config.shared.resources-config.schemas.js";
@@ -94,7 +109,52 @@ export const coreSharedResourceRelationship = [
94
109
  createResourcesRelationship(CoreResourceType.USERS, CoreResourceType.USER_PROFILES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
95
110
  isPrimaryScope: true,
96
111
  nature: RelationshipNature.COMPOSITION,
97
- childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
112
+ // onParentDelete: cascade the profile row when the user is deleted.
113
+ // onParentCreate: eagerly seed the profile on user creation (Tier-2
114
+ // input-derived). Unlike USER_PREFERENCES (pure defaults), a profile's
115
+ // firstName/lastName do NOT live on the USERS row — they originate in the
116
+ // registration form / SSO-JIT / SCIM profile, OUTSIDE the USERS-create
117
+ // payload. Each provisioning path threads them via the
118
+ // `compositionSeedRequestInput` options channel on its `create(USERS, …)`,
119
+ // and this override forwards them into the profile seed. When the names are
120
+ // absent (the org-admin INVITE create — the invitee names the profile later
121
+ // at acceptance), the override returns `undefined` to DECLINE the seed, so no
122
+ // nameless/duplicate row is created; the invitation-acceptance flow owns that
123
+ // single write. USERS is the resource created at every provisioning entry
124
+ // point, so THIS USERS→USER_PROFILES edge fires — not the read-only USER_SELF
125
+ // variant.
126
+ childOperations: {
127
+ lifecycle: {
128
+ onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 },
129
+ onParentCreate: {
130
+ enabled: true,
131
+ initialData: {
132
+ override: (ctx) => {
133
+ const requestInput = ctx.requestInput;
134
+ const firstName = requestInput?.firstName;
135
+ const lastName = requestInput?.lastName;
136
+ // A profile REQUIRES a non-empty first+last (UserProfileSchema
137
+ // min(1)). DECLINE (undefined) when either is absent OR empty — the
138
+ // org-admin INVITE create (no name; the invitee names the profile at
139
+ // acceptance) or an IdP that supplied no given/family name — so no
140
+ // invalid or nameless row is ever seeded (a clean skip, not a
141
+ // swallowed validation failure).
142
+ if (typeof firstName !== 'string' || firstName.length === 0 ||
143
+ typeof lastName !== 'string' || lastName.length === 0) {
144
+ return undefined;
145
+ }
146
+ // Prefer an IdP-supplied displayName; otherwise derive one so every
147
+ // seeded profile carries a non-empty label.
148
+ const suppliedDisplayName = requestInput?.displayName;
149
+ const displayName = typeof suppliedDisplayName === 'string' && suppliedDisplayName.length > 0
150
+ ? suppliedDisplayName
151
+ : `${firstName} ${lastName}`;
152
+ return { firstName, lastName, displayName };
153
+ },
154
+ },
155
+ },
156
+ },
157
+ },
98
158
  foreignKeyField: 'userId',
99
159
  // 1:1 profile: full on READ, summary otherwise
100
160
  contextPolicy: {
@@ -107,7 +167,12 @@ export const coreSharedResourceRelationship = [
107
167
  createResourcesRelationship(CoreResourceType.USERS, CoreResourceType.USER_PREFERENCES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
108
168
  isPrimaryScope: true,
109
169
  nature: RelationshipNature.COMPOSITION,
110
- childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
170
+ // onParentDelete: cascade the preferences row when the user is deleted.
171
+ // onParentCreate: eagerly seed a default preferences row on user creation
172
+ // (Tier-1 pure-defaults — the child's Zod defaults fill it; USER_SELF reads
173
+ // the same collection). USERS is the resource created at registration, so
174
+ // THIS USERS→USER_PREFERENCES edge fires — not the USER_SELF variant.
175
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 }, onParentCreate: { enabled: true } } },
111
176
  foreignKeyField: 'userId',
112
177
  // 1:1 preferences: full on READ, summary otherwise
113
178
  contextPolicy: {
@@ -117,9 +182,13 @@ export const coreSharedResourceRelationship = [
117
182
  }
118
183
  }
119
184
  }),
120
- // Link Users to UserCredentials (standalone access, internal-only operations)
185
+ // Link Users to UserCredentials (standalone access, internal-only operations).
186
+ // STANDALONE keeps credentials off the URL surface; `isPrimaryScope: true` anchors
187
+ // the resource's `resourcePrimaryScope` enum to USER_SELF (ownership graph is
188
+ // orthogonal to URL routing — see `resources-relationships.shared.factory.ts` Guard 1).
121
189
  createResourcesRelationship(CoreResourceType.USERS, CoreResourceType.USER_CREDENTIALS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
122
190
  accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
191
+ isPrimaryScope: true,
123
192
  nature: RelationshipNature.COMPOSITION,
124
193
  childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
125
194
  foreignKeyField: 'userId',
@@ -128,16 +197,30 @@ export const coreSharedResourceRelationship = [
128
197
  }),
129
198
  // Link Users to UserIdentityLinks (1:N — user can have multiple OAuth2/SSO provider connections)
130
199
  // Standalone access (internal-only operations), cascade delete on user removal.
131
- // Unique compound index: userId + providerRef + connectionType (enforced at DB level)
132
- // Secondary index: providerRef + providerUserId (fast lookup during JIT provisioning)
200
+ // The schema's businessKeySet enforces one external identity binding per exact
201
+ // social/enterprise tenant connection. Individual DB indexes support callback lookup.
202
+ // STANDALONE keeps identity links off the URL surface; `isPrimaryScope: true` anchors
203
+ // the resource's `resourcePrimaryScope` enum to USER_SELF.
133
204
  createResourcesRelationship(CoreResourceType.USERS, CoreResourceType.USER_IDENTITY_LINKS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
134
205
  accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
206
+ isPrimaryScope: true,
135
207
  nature: RelationshipNature.COMPOSITION,
136
208
  childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
137
209
  foreignKeyField: 'userId',
138
210
  // SECURITY: Identity links contain raw IdP profiles — never fetch via context
139
211
  contextPolicy: { enabled: false }
140
212
  }),
213
+ // OIDC persistent consent grants — USER_SELF-scoped ("remember this app"). COMPOSITION so a user's
214
+ // grants cascade-delete with the user; `isPrimaryScope: true` anchors resourcePrimaryScope to
215
+ // USER_SELF (the owner-only READ/LIST/DELETE filter). Consent state is never context-fetched.
216
+ createResourcesRelationship(CoreResourceType.USERS, CoreResourceType.OAUTH_CONSENT_GRANTS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
217
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
218
+ isPrimaryScope: true,
219
+ nature: RelationshipNature.COMPOSITION,
220
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
221
+ foreignKeyField: 'userId',
222
+ contextPolicy: { enabled: false }
223
+ }),
141
224
  // User Self 1:1 relationships - separated for access control
142
225
  createResourcesRelationship(CoreResourceType.USER_SELF, CoreResourceType.USER_SELF_PROFILES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
143
226
  isPrimaryScope: true,
@@ -167,8 +250,22 @@ export const coreSharedResourceRelationship = [
167
250
  }),
168
251
  // User Self → Organization Members (for context fetching organizationMembers)
169
252
  // 1:MANY - user can have multiple organization memberships
253
+ //
254
+ // STANDALONE: this relationship exists ONLY to let the backend context-fetch
255
+ // the caller's own membership on READ (see `contextPolicy` below). It must NOT
256
+ // mint a URL route. Without an explicit `accessScopeStrategy`, the factory
257
+ // defaults a MANDATORY parent to `REQUIRES_CONTEXT`, which forced a mandatory
258
+ // `/user-user-self/{userId}/...` segment into EVERY generated organization-members
259
+ // route — so the clean `/organizations/{orgId}/organization-members/...` route
260
+ // was never emitted, and a people-picker searching org members got the
261
+ // over-nested user-self route (returning only the caller's own membership).
262
+ // `accessScopeStrategy` (URL routing) and `contextPolicy` (context fetching)
263
+ // are orthogonal axes; STANDALONE keeps this off the URL surface while the
264
+ // context fetch is preserved — exactly mirroring the USER_CREDENTIALS /
265
+ // USER_IDENTITY_LINKS siblings above and the ORGANIZATIONS primary anchor below.
170
266
  createResourcesRelationship(CoreResourceType.USER_SELF, CoreResourceType.ORGANIZATION_MEMBERS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
171
- isPrimaryScope: false, // Not primary scope - ORGANIZATION_MEMBERS has ORGANIZATIONS as primary
267
+ isPrimaryScope: false, // Not primary scope - ORGANIZATION_MEMBERS has ORGANIZATIONS as primary (declared via the STANDALONE rel below)
268
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
172
269
  nature: RelationshipNature.REFERENCE,
173
270
  foreignKeyField: 'userId',
174
271
  // For context: fetch full on READ, disabled otherwise (performance)
@@ -180,6 +277,62 @@ export const coreSharedResourceRelationship = [
180
277
  }
181
278
  }
182
279
  }),
280
+ // ORGANIZATIONS scope anchor for ORGANIZATION_MEMBERS (STANDALONE primary).
281
+ //
282
+ // The M:N expansion of `ORGANIZATIONS ↔ USERS via ORGANIZATION_MEMBERS`
283
+ // synthesizes two OPTIONAL_CONTEXT non-primary peer→junction edges so the
284
+ // junction is routable under both `/organizations/:id/...` and
285
+ // `/users/:id/...`. That URL behavior is intentional and stays untouched.
286
+ //
287
+ // This separate STANDALONE primary rel exists purely to anchor the
288
+ // resource's `resourcePrimaryScope` enum to ORGANIZATIONS (matching the
289
+ // long-standing comment on the USER_SELF rel above). STANDALONE keeps it
290
+ // off the URL surface (the M:N expansion already handles routing); the
291
+ // primary-scope flag declares the structural ownership.
292
+ //
293
+ // ⚠️ This is the edge that carries the teardown cascade — NOT the `USER_SELF` rel above and
294
+ // NOT the synthesized M:N peer edges. Picking the wrong one of the three is the easy mistake
295
+ // here: only this one is the ORGANIZATIONS-side primary anchor, so only this one is traversed
296
+ // when a tenant is destroyed.
297
+ //
298
+ // Until 2026-08-01 it declared NO `childOperations` at all, so membership rows ORPHANED on
299
+ // tenant deletion while every other org child cascaded. The orphan row was the visible
300
+ // symptom; the real defect was that nothing reconciled `user.userTypes`, a GLOBAL grant that
301
+ // could outlive the tenant justifying it.
302
+ //
303
+ // Under the WS-A teardown split this cascade fires at PURGE, never at the soft-delete mark.
304
+ // That ordering is the design, not an implementation detail: the rows are exactly what a
305
+ // restore re-derives organization-scoped authority from during the retention window, so
306
+ // removing them at mark time would make the window unrecoverable. The authority half is
307
+ // handled at the mark instead, by recomputing it from `Organization.status` — see
308
+ // `isAuthorityConferringOrganizationStatus` and the `request_deletion` operation.
309
+ //
310
+ // ⚠️ `nature` moved REFERENCE → COMPOSITION in the same change, and it had to. The framework
311
+ // refuses a lifecycle on a REFERENCE edge outright — "REFERENCE relationships cannot project to
312
+ // nested CRUD/read embedding or dependent lifecycle" — because only COMPOSITION resolves to
313
+ // `lifecycleModelMode: DEPENDENT`, and DEPENDENT is what "the parent owns this row's lifetime"
314
+ // means. Declaring the cascade while leaving the nature alone would not have been a smaller
315
+ // change; it would not have built.
316
+ //
317
+ // COMPOSITION is also the honest reading, not a concession to the guard. A membership is
318
+ // meaningless without its organization: it cannot be re-homed, it has no independent identity,
319
+ // and this very edge already declares ORGANIZATIONS its primary scope. The sibling junction
320
+ // ORGANIZATION_UNIT_MEMBERS reached the same conclusion on its own ORGANIZATIONS edge above —
321
+ // COMPOSITION, `isPrimaryScope`, cascade — so the two junctions now describe their tenant
322
+ // relationship identically instead of disagreeing for historical reasons.
323
+ //
324
+ // The USER_SELF → ORGANIZATION_MEMBERS edge above stays REFERENCE and is NOT affected. That
325
+ // asymmetry is correct and load-bearing: a membership dies with its ORGANIZATION but must
326
+ // survive its USER's erasure (an erasure keeps the subject row, and `USERS` classifies that
327
+ // edge NOT_OWNED). Changing the user-side edge too would silently make a subject erasure start
328
+ // deleting membership rows.
329
+ createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.ORGANIZATION_MEMBERS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
330
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
331
+ isPrimaryScope: true,
332
+ nature: RelationshipNature.COMPOSITION,
333
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
334
+ contextPolicy: { enabled: false }
335
+ }),
183
336
  // Organization member join table relationships - explicit for URL generation
184
337
  // Note: Removed USERS → ORGANIZATION_MEMBERS to simplify user URL generation
185
338
  // Users should primarily be accessed standalone or via application context
@@ -210,10 +363,77 @@ export const coreSharedResourceRelationship = [
210
363
  accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.OPTIONAL_CONTEXT,
211
364
  contextPolicy: { enabled: false },
212
365
  }),
213
- createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.ORGANIZATION_PROFILES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
366
+ // ── Organization unit membership (junction) ──────────────────────────────
367
+ // Replaced `OrganizationMember.organizationUnitsMembership` (D-B5). Three edges, each earning
368
+ // its place:
369
+ //
370
+ // 1. ORGANIZATIONS → … is the PRIMARY SCOPE anchor: the row carries `organizationId`, so
371
+ // tenant scoping and the contextual filter resolve without a join, and a tenant teardown
372
+ // removes assignments with everything else it owns.
373
+ // 2. ORGANIZATION_MEMBERS → … is the SEMANTIC parent. A unit assignment presupposes
374
+ // membership, so losing the membership is exactly when the assignment stops meaning
375
+ // anything — hence the cascade. This is the edge that stops assignments outliving the
376
+ // membership that justified them.
377
+ // 3. ORGANIZATION_UNITS → … is what the unit DELETE dependents guard was missing. While unit
378
+ // assignment lived in an embedded array it was not a registered relationship and not
379
+ // portably queryable, so "assigned members" had to be EXCLUDED from that guard (it would
380
+ // have failed open on PostgreSQL). As a real edge it becomes a guardable dependent.
381
+ createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.ORGANIZATION_UNIT_MEMBERS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
214
382
  isPrimaryScope: true,
215
383
  nature: RelationshipNature.COMPOSITION,
216
384
  childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
385
+ // High cardinality: a tenant can hold one row per (member × unit).
386
+ contextPolicy: {
387
+ operationOverrides: {
388
+ [CoreResourceOperation.LIST]: { enabled: false },
389
+ [CoreResourceOperation.SEARCH]: { enabled: false },
390
+ }
391
+ }
392
+ }),
393
+ // OPTIONAL_CONTEXT, not the REQUIRES_CONTEXT default — otherwise the junction is unlistable.
394
+ //
395
+ // `generateParentCombinations` puts every REQUIRES_CONTEXT parent into EVERY url combination. With
396
+ // both this edge and the ORGANIZATION_UNITS edge below defaulting to REQUIRES_CONTEXT, the only
397
+ // route generated was the fully-nested
398
+ // `…/organization-members/{m}/organization-units/{u}/organization-unit-members` — so LIST could
399
+ // only ever be called with BOTH sides already known, returning at most the single row the caller
400
+ // had just identified. "Which units is this member in?" had NO http surface at all, even though
401
+ // it is a real, exercised query: SCIM runs exactly it service-side
402
+ // (`list(ORGANIZATION_UNIT_MEMBERS, ec, { organizationMemberId })`).
403
+ //
404
+ // OPTIONAL_CONTEXT makes the parent addressable-but-not-mandatory, so the builder emits the
405
+ // member-scoped route ALONGSIDE the full one. Permitted here because this edge is not the primary
406
+ // scope (the factory rejects OPTIONAL_CONTEXT only for `isPrimaryScope`). The ORGANIZATIONS edge
407
+ // above stays primary-scope and keeps its LIST/SEARCH context override, so this does NOT open an
408
+ // unbounded org-wide listing of every (member × unit) pair — each new route is still narrowed by
409
+ // one side of the junction.
410
+ createResourcesRelationship(CoreResourceType.ORGANIZATION_MEMBERS, CoreResourceType.ORGANIZATION_UNIT_MEMBERS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
411
+ nature: RelationshipNature.COMPOSITION,
412
+ foreignKeyField: 'organizationMemberId',
413
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.OPTIONAL_CONTEXT,
414
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
415
+ contextPolicy: { enabled: false },
416
+ }),
417
+ // No cascade on this edge ON PURPOSE — it mirrors the unit tree's own delete policy. A unit
418
+ // DELETE is refused while dependents remain (the operator decides where an orphaned assignment
419
+ // belongs) rather than silently dropping people's roles behind a single-node delete. Tearing
420
+ // down the whole ORGANIZATION still removes these rows via edge 1 above.
421
+ // OPTIONAL_CONTEXT for the same reason as the ORGANIZATION_MEMBERS edge above — this is the
422
+ // mirrored half. Together the two now yield the unit-scoped route as well, so "who is in this
423
+ // unit?" is answerable, and both partial routes exist beside the fully-nested one rather than
424
+ // instead of it.
425
+ createResourcesRelationship(CoreResourceType.ORGANIZATION_UNITS, CoreResourceType.ORGANIZATION_UNIT_MEMBERS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
426
+ nature: RelationshipNature.COMPOSITION,
427
+ foreignKeyField: 'organizationUnitId',
428
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.OPTIONAL_CONTEXT,
429
+ contextPolicy: { enabled: false },
430
+ }),
431
+ createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.ORGANIZATION_PROFILES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
432
+ isPrimaryScope: true,
433
+ nature: RelationshipNature.COMPOSITION,
434
+ // onParentCreate: eager-seed a default org profile row on org creation
435
+ // (branding now defaulted → seedable). Fixes the latent missing-row gap.
436
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 }, onParentCreate: { enabled: true } } },
217
437
  foreignKeyField: 'organizationId',
218
438
  // 1:1 profile: full on READ
219
439
  contextPolicy: {
@@ -223,11 +443,67 @@ export const coreSharedResourceRelationship = [
223
443
  }
224
444
  }
225
445
  }),
226
- createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.ORGANIZATION_PREFERENCES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
446
+ createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.PLATFORM_ACCESS_GRANTS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
447
+ // The grant belongs to the tenant being reached INTO, which is what makes the tenant able
448
+ // to see, approve and revoke it. A consent record the consenting party cannot read would
449
+ // defeat the purpose of modelling consent at all.
227
450
  isPrimaryScope: true,
228
451
  nature: RelationshipNature.COMPOSITION,
452
+ // Purged with the tenant, and deliberately NOT seeded on create: a grant exists only
453
+ // because an operator asked for one.
229
454
  childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
230
455
  foreignKeyField: 'organizationId',
456
+ }),
457
+ // ── The two PEOPLE a grant names ─────────────────────────────────────
458
+ //
459
+ // `operatorUserId` (who asked) and `approvedByUserId` (who agreed) are both `.isForeignKey()` on
460
+ // `PlatformAccessGrantSchema`, so the registry must be able to resolve each to a resource type —
461
+ // the frontend registry validates this fail-closed at boot and refuses to initialise otherwise.
462
+ //
463
+ // REFERENCE, deliberately NOT composition, and the contrast with the ORGANIZATIONS edge directly
464
+ // above is the whole point. The tenant OWNS the grant: it is the tenant's consent record, so it
465
+ // is purged with the tenant. The two users are merely NAMED BY it. Making a user its owner would
466
+ // resolve `lifecycleModelMode` to DEPENDENT, and that is the same value
467
+ // `classifySubjectErasureDisposition` reads — a user erasure would then own the row's fate, and
468
+ // the one thing an access-audit record must survive is the erasure of the person it monitors.
469
+ // As REFERENCE the erasure classifies it NOT_OWNED and leaves it intact, which is the intent.
470
+ //
471
+ // `onParentDelete.enabled: false` states that survival explicitly rather than leaving it to the
472
+ // nature's default — the question "does this die with the user?" is exactly what a reader of a
473
+ // privileged-access ledger comes here to ask.
474
+ //
475
+ // STANDALONE + `contextPolicy: { enabled: false }`: a grant is addressed under its tenant
476
+ // (`/organizations/:organizationId/platform-access-grants`), never under a user, and the operator
477
+ // is by construction NOT a member of the target tenant — so fetching them into the row's context
478
+ // would be a cross-tenant read on every list.
479
+ createResourcesRelationship(CoreResourceType.USERS, CoreResourceType.PLATFORM_ACCESS_GRANTS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
480
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
481
+ nature: RelationshipNature.REFERENCE,
482
+ foreignKeyField: 'operatorUserId',
483
+ // Server-authored from the session on every grant, so the pointer is always present.
484
+ parentResourceRequirement: ResourceParentResourceRequirement.MANDATORY,
485
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } },
486
+ contextPolicy: { enabled: false },
487
+ }),
488
+ createResourcesRelationship(CoreResourceType.USERS, CoreResourceType.PLATFORM_ACCESS_GRANTS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
489
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
490
+ nature: RelationshipNature.REFERENCE,
491
+ foreignKeyField: 'approvedByUserId',
492
+ // OPTIONAL because the field is `.optional()`: unset until a tenant administrator
493
+ // approves, and permanently unset on an auto-approved, denied or revoked grant. MANDATORY
494
+ // would assert an approver every grant must have, which is precisely the distinction
495
+ // `autoApprovalReason` exists to preserve.
496
+ parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,
497
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } },
498
+ contextPolicy: { enabled: false },
499
+ }),
500
+ createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.ORGANIZATION_PREFERENCES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
501
+ isPrimaryScope: true,
502
+ nature: RelationshipNature.COMPOSITION,
503
+ // onParentCreate: eager-seed a default org preferences row on org creation
504
+ // (all fields defaulted → seedable). Fixes the latent missing-row gap.
505
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 }, onParentCreate: { enabled: true } } },
506
+ foreignKeyField: 'organizationId',
231
507
  // 1:1 preferences: full on READ
232
508
  contextPolicy: {
233
509
  objectMode: ContextPolicy_ObjectMode.SUMMARY,
@@ -239,35 +515,54 @@ export const coreSharedResourceRelationship = [
239
515
  createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.ORGANIZATION_NOTIFICATIONS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
240
516
  isPrimaryScope: true,
241
517
  nature: RelationshipNature.COMPOSITION,
242
- childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
518
+ // onParentCreate: eager-seed a default org notifications row on org creation
519
+ // (emailNotifications now defaulted → seedable). Fixes the latent
520
+ // missing-row gap so downstream email fan-out has a routing table.
521
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 }, onParentCreate: { enabled: true } } },
243
522
  foreignKeyField: 'organizationId',
244
523
  // Notifications are ephemeral - disable context
245
524
  contextPolicy: { enabled: false }
246
525
  }),
247
- createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.ORGANIZATION_FEATURES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
526
+ createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.ORGANIZATION_FEATURES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
248
527
  isPrimaryScope: true,
249
528
  nature: RelationshipNature.COMPOSITION,
529
+ // Deliberately NO onParentCreate: the scope-features ledger is a cache-resolved
530
+ // OVERRIDE store, not per-entity state, so eager-seeding it is pure write
531
+ // amplification. FeatureResolutionBackendService self-heals from defaults when the
532
+ // row is absent (`if (!scopeDoc) return base`), the 1:1 context-embed omits an
533
+ // absent child, and the admin-write / billing-sync paths upsert the row lazily the
534
+ // moment it first holds meaning; an eager empty row (`features:[]`, `limits:{}`,
535
+ // empty `manualOverrides`) is a resolution no-op. COMPOSITION here means dies-with
536
+ // (onParentDelete), NOT created-with — the two are orthogonal (DDD). See
537
+ // .claude/plans/composition-oncreate-lifecycle.md (FEATURES wave, 2026-07-11).
250
538
  childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
539
+ foreignKeyField: 'organizationId',
251
540
  // Features: summary by default
252
541
  contextPolicy: {
253
542
  objectMode: ContextPolicy_ObjectMode.SUMMARY,
254
543
  }
255
544
  }),
256
- createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.ORGANIZATION_MEMBER_INVITATIONS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
257
- isPrimaryScope: true,
258
- nature: RelationshipNature.COMPOSITION,
259
- childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
260
- // High cardinality: disable on LIST/SEARCH for performance
261
- contextPolicy: {
262
- operationOverrides: {
263
- [CoreResourceOperation.LIST]: { enabled: false },
264
- [CoreResourceOperation.SEARCH]: { enabled: false },
265
- }
266
- }
267
- }),
268
545
  createResourcesRelationship(CoreResourceType.APPLICATION, CoreResourceType.APPLICATION_METADATA, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
269
546
  isPrimaryScope: true,
270
547
  nature: RelationshipNature.COMPOSITION,
548
+ // Deliberately NO onParentCreate — the metadata row is created by the
549
+ // framework-owned Level-A seed `engine-applications:application-metadata`
550
+ // (`applicationMetadataSeedDefinitions`, opted into by the app's backend module),
551
+ // NOT by composition.
552
+ //
553
+ // This edge DID declare `onParentCreate`, on the hypothesis that the APPLICATION
554
+ // create path might route through `handler.create` → `executePostOperationLogic`.
555
+ // It does not, and never did: the apps-manager provisions the APPLICATION row at
556
+ // the REPOSITORY tier while bootstrapping the application database
557
+ // (`wildo-application-lifecycle.apps-manager.platform.service.ts` →
558
+ // `seedAppApplication` → `upsertEntity(repository, …)`), so the post-create hook is
559
+ // never reached. Measured 2026-08-09: one `applications` row and ZERO
560
+ // `applicationMetadata` rows in every database of the dev stack.
561
+ //
562
+ // A declared lifecycle edge that cannot fire is worse than no edge — it reads as
563
+ // covered in the registry, in the spec, and in every review, which is exactly how
564
+ // this went unnoticed. Removed rather than commented as pending. (The sibling
565
+ // APPLICATION_FEATURES edge records the same blocker.)
271
566
  childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
272
567
  foreignKeyField: 'appId',
273
568
  // 1:1 metadata: full on READ
@@ -291,6 +586,24 @@ export const coreSharedResourceRelationship = [
291
586
  }
292
587
  }
293
588
  }),
589
+ createResourcesRelationship(CoreResourceType.APPLICATION, CoreResourceType.APPLICATION_FEATURES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
590
+ isPrimaryScope: true,
591
+ nature: RelationshipNature.COMPOSITION,
592
+ // Deliberately NO onParentCreate — same cache-resolved-ledger rationale as the
593
+ // ORGANIZATION_FEATURES edge above. TWO extra APP-only blockers even if that
594
+ // changed: (1) APPLICATION rows are provisioned via the platform CLI / apps-manager
595
+ // bootstrap, not the engine handler.create → executePostOperationLogic, so the seed
596
+ // hook never fires on real app provisioning; (2) this edge's foreignKeyField 'appId'
597
+ // is NOT the APPLICATION primary-scope identifier ('applicationId'), so it is absent
598
+ // from CONTEXT_AUTO_POPULATED_FIELD_IDENTIFIERS — createAsSystem's name-based
599
+ // preserve-list would strip it and seed an orphan row (the boot seedability guard
600
+ // does not catch this: it probes DTO defaults, not FK persistence).
601
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
602
+ foreignKeyField: 'appId',
603
+ contextPolicy: {
604
+ objectMode: ContextPolicy_ObjectMode.SUMMARY,
605
+ }
606
+ }),
294
607
  // API Keys relationships
295
608
  createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.ORG_API_KEYS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
296
609
  isPrimaryScope: true,
@@ -306,16 +619,43 @@ export const coreSharedResourceRelationship = [
306
619
  // SECURITY: API keys should never be fetched via context
307
620
  contextPolicy: { enabled: false }
308
621
  }),
309
- // Audit Logs - System resource
622
+ // OAuth Clients relationships (mirror API Keys — registered client-credentials front)
623
+ createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.OAUTH_CLIENTS_ORGANIZATION, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
624
+ isPrimaryScope: true,
625
+ nature: RelationshipNature.COMPOSITION,
626
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
627
+ // SECURITY: OAuth client secrets should never be fetched via context
628
+ contextPolicy: { enabled: false }
629
+ }),
630
+ createResourcesRelationship(CoreResourceType.APPLICATION, CoreResourceType.OAUTH_CLIENTS_APPLICATION, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
631
+ isPrimaryScope: true,
632
+ nature: RelationshipNature.COMPOSITION,
633
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
634
+ // SECURITY: OAuth client secrets should never be fetched via context
635
+ contextPolicy: { enabled: false }
636
+ }),
637
+ // Audit Logs - System resource.
638
+ // APPLICATION remains the resource's canonical primary-scope classification,
639
+ // but an individual audit row does not necessarily describe an application
640
+ // tenant: organization-scoped, user-only, and system events legitimately omit
641
+ // applicationId. Keep the FK optional so relationship persistence matches the
642
+ // forensic event schema instead of silently making every row application-bound.
310
643
  createResourcesRelationship(CoreResourceType.APPLICATION, CoreResourceType.AUDIT_LOGS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
644
+ isPrimaryScope: true,
645
+ foreignKeyField: 'applicationId',
646
+ parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,
311
647
  accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
312
648
  nature: RelationshipNature.REFERENCE,
313
649
  contextPolicy: { enabled: false }
314
650
  }),
315
- // Step 19D: Changed from STANDALONE to REQUIRES_CONTEXT for org-scoped Audit Log Viewer
651
+ // Step 19D: Changed from STANDALONE to REQUIRES_CONTEXT for org-scoped Audit Log Viewer.
652
+ // parentResourceRequirement=OPTIONAL because AuditableEvent_BaseSchema.organizationId is
653
+ // optional — audit logs can be application-level events with no org context. accessScopeStrategy
654
+ // must be explicit (REQUIRES_CONTEXT) because Guard 1 prohibits isPrimaryScope+OPTIONAL_CONTEXT.
316
655
  createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.AUDIT_LOGS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
317
- isPrimaryScope: true,
318
656
  foreignKeyField: 'organizationId',
657
+ parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,
658
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.REQUIRES_CONTEXT,
319
659
  nature: RelationshipNature.REFERENCE,
320
660
  childOperations: {
321
661
  lifecycle: { onParentDelete: { enabled: false } },
@@ -327,29 +667,33 @@ export const coreSharedResourceRelationship = [
327
667
  },
328
668
  },
329
669
  }),
670
+ // parentResourceRequirement=OPTIONAL because AuditableEvent_BaseSchema.userId is optional —
671
+ // audit logs can be application-level events with no associated user (e.g. system events).
330
672
  createResourcesRelationship(CoreResourceType.USERS, CoreResourceType.AUDIT_LOGS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
673
+ parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,
331
674
  accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
332
675
  nature: RelationshipNature.REFERENCE,
333
676
  contextPolicy: { enabled: false }
334
677
  }),
335
- // Notification Badges - System resource, accessed internally via NotificationBadgeBackendService
336
- // Badges are scoped to different parent resources (users, organizations, application)
337
- createResourcesRelationship(CoreResourceType.USERS, CoreResourceType.NOTIFICATION_BADGES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
338
- accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
339
- nature: RelationshipNature.COMPOSITION,
340
- childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
341
- // Notifications: ephemeral, accessed via dedicated service
342
- contextPolicy: { enabled: false }
343
- }),
344
- createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.NOTIFICATION_BADGES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
345
- accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
678
+ // ── Notification Badges (Dual-Scope Polymorphic) ─────────────────────
679
+ // Each scope owns its own resource type and its own MongoDB collection.
680
+ // Accessed internally via `NotificationBadgeBackendService`, which dispatches
681
+ // to the right repository based on the request's scope. The APPLICATION
682
+ // variant was dropped (no canonical badges declared at app scope; broadcast
683
+ // remains an option in `NotificationBadgeBackendService.emitBadgeUpdate`).
684
+ //
685
+ // Refactor: `.cursor/plans/notification-badges-polymorphism-refactor.md`
686
+ createResourcesRelationship(CoreResourceType.USERS, CoreResourceType.USER_NOTIFICATION_BADGES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
687
+ isPrimaryScope: true,
688
+ foreignKeyField: 'userId',
346
689
  nature: RelationshipNature.COMPOSITION,
347
690
  childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
348
691
  // Notifications: ephemeral, accessed via dedicated service
349
692
  contextPolicy: { enabled: false }
350
693
  }),
351
- createResourcesRelationship(CoreResourceType.APPLICATION, CoreResourceType.NOTIFICATION_BADGES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
352
- accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
694
+ createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.ORGANIZATION_NOTIFICATION_BADGES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
695
+ isPrimaryScope: true,
696
+ foreignKeyField: 'organizationId',
353
697
  nature: RelationshipNature.COMPOSITION,
354
698
  childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
355
699
  // Notifications: ephemeral, accessed via dedicated service
@@ -357,107 +701,270 @@ export const coreSharedResourceRelationship = [
357
701
  }),
358
702
  // Queue System Resources - Internal infrastructure for job tracking and payload storage
359
703
  // NOTE: These are INTERNAL resources, not exposed via API URLs.
360
- // isPrimaryScope is NOT set (would conflict with STANDALONE strategy).
361
704
  // Access is exclusively via repository services with INTERNAL variants.
705
+ // The STANDALONE strategy keeps them out of URL routing; `isPrimaryScope: true`
706
+ // anchors the scope enum to APPLICATION (ownership graph is orthogonal to
707
+ // URL routing — see `resources-relationships.shared.factory.ts` Guard 1).
362
708
  createResourcesRelationship(CoreResourceType.APPLICATION, CoreResourceType.JOB_EXECUTIONS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
363
709
  accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
710
+ isPrimaryScope: true,
364
711
  nature: RelationshipNature.REFERENCE,
365
712
  // Internal resource: never fetch via context, accessed via dedicated services
366
713
  contextPolicy: { enabled: false }
367
714
  }),
368
715
  createResourcesRelationship(CoreResourceType.APPLICATION, CoreResourceType.JOB_PAYLOAD_STORAGE, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
369
716
  accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
717
+ isPrimaryScope: true,
370
718
  nature: RelationshipNature.REFERENCE,
371
719
  // Internal resource: never fetch via context, accessed via dedicated services
372
720
  contextPolicy: { enabled: false }
373
721
  }),
374
- // ─── Email Template Relationships ───────────────────────────────
375
- // EMAIL_TEMPLATES are APPLICATION-scoped (standalone, managed via lifecycle-api)
376
- // Note: Standalone resources cannot have isPrimaryScope=true (they are accessed independently)
377
- createResourcesRelationship(CoreResourceType.APPLICATION, CoreResourceType.EMAIL_TEMPLATES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
378
- // isPrimaryScope removed: STANDALONE access strategy means no parent scope in URL
722
+ // ── Job Execution Cross-Scope FK Edges ───────────────────────────────
723
+ //
724
+ // JobExecution carries the originating execution context (`organizationId`,
725
+ // `userId`) plus optional payload-storage references. These fields are
726
+ // genuine FKs into existing resources — they exist so internal queue
727
+ // services can filter / join. STANDALONE access keeps these edges off the
728
+ // URL surface (the resource is APPLICATION-primary; admin queries it via
729
+ // the JobExecution UI, not nested under /organizations/:id/job-executions).
730
+ //
731
+ // `parentResourceRequirement: OPTIONAL` matches the schema (`.optional()`
732
+ // on all four fields). `isPrimaryScope: false` because APPLICATION is the
733
+ // primary scope anchor (declared above).
734
+ createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.JOB_EXECUTIONS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
735
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
736
+ nature: RelationshipNature.REFERENCE,
737
+ foreignKeyField: 'organizationId',
738
+ parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,
739
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } },
740
+ contextPolicy: { enabled: false }
741
+ }),
742
+ createResourcesRelationship(CoreResourceType.USERS, CoreResourceType.JOB_EXECUTIONS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
379
743
  accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
380
744
  nature: RelationshipNature.REFERENCE,
381
- // Email templates: never fetch via context, accessed via dedicated services
745
+ foreignKeyField: 'userId',
746
+ parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,
747
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } },
382
748
  contextPolicy: { enabled: false }
383
749
  }),
384
- // EMAIL_HEADER_FOOTER_TEMPLATES → APPLICATION
385
- // Note: Standalone resources cannot have isPrimaryScope=true (they are accessed independently)
386
- createResourcesRelationship(CoreResourceType.APPLICATION, CoreResourceType.EMAIL_HEADER_FOOTER_TEMPLATES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
387
- // isPrimaryScope removed: STANDALONE access strategy means no parent scope in URL
750
+ createResourcesRelationship(CoreResourceType.JOB_PAYLOAD_STORAGE, CoreResourceType.JOB_EXECUTIONS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
388
751
  accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
389
752
  nature: RelationshipNature.REFERENCE,
390
- // Header/footer templates: never fetch via context, accessed via dedicated services
753
+ foreignKeyField: 'inputPayloadStorageId',
754
+ parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,
755
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } },
391
756
  contextPolicy: { enabled: false }
392
757
  }),
393
- // EMAIL_HEADER_FOOTER_TEMPLATES can optionally be nested under ORGANIZATIONS (for overrides)
394
- createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.EMAIL_HEADER_FOOTER_TEMPLATES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
395
- isPrimaryScope: false, // Not primary - org override path
758
+ createResourcesRelationship(CoreResourceType.JOB_PAYLOAD_STORAGE, CoreResourceType.JOB_EXECUTIONS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
396
759
  accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
397
760
  nature: RelationshipNature.REFERENCE,
398
- // Org-scoped header/footer: accessed via dedicated services
761
+ foreignKeyField: 'outputPayloadStorageId',
762
+ parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,
763
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } },
399
764
  contextPolicy: { enabled: false }
400
765
  }),
766
+ // Flows-Actors Execution Resources (POLYMORPHIC) — persisted flow/actor system
767
+ // executions. Owner = the injected scope FK per variant (USER_SELF / ORGANIZATIONS /
768
+ // APPLICATION primary scope): the default API READ/LIST return only the caller's own
769
+ // executions (per-scope chat history). COMPOSITION + onParentDelete cascade removes a
770
+ // scope's executions when the owning user/org/app is deleted (via the default DELETE
771
+ // op at the repository tier). Not context-fetched (accessed via the conversational
772
+ // runtime), so contextPolicy is disabled.
773
+ // USERS → userFlowActorExecutions
774
+ // ORGANIZATIONS → organizationFlowActorExecutions
775
+ // APPLICATION → applicationFlowActorExecutions
776
+ ...createPolymorphicScopeRelationships(flowActorExecutionsPolymorphicDeclaration, {
777
+ nature: RelationshipNature.COMPOSITION,
778
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
779
+ contextPolicy: { enabled: false },
780
+ }),
781
+ // Flows-Actors Task Resources (POLYMORPHIC) — the WORK plane behind the A2A `Task`
782
+ // object, owned by the same three scopes as executions so a task always belongs to
783
+ // the principal that drove the turn. COMPOSITION + onParentDelete cascade removes a
784
+ // scope's tasks when the owning user/org/app is deleted.
785
+ // USERS → userFlowActorTasks
786
+ // ORGANIZATIONS → organizationFlowActorTasks
787
+ // APPLICATION → applicationFlowActorTasks
788
+ //
789
+ // `childCardinality` is left at its MANY default, which is CORRECT here (unlike the
790
+ // A2ATokenBudgetState sibling below, a singleton that must pin ONE): tasks are
791
+ // multi-row per scope, so the cascade discovers them via LIST — and this resource
792
+ // DECLARES a LIST op, so `validateCompositionCascadeDeletability` is satisfied.
793
+ //
794
+ // NOTE the deliberate absence of an execution→task relationship: `flowActorExecutionId`
795
+ // is a SOFT indexed link, not a declared FK, because a task must be able to outlive the
796
+ // conversation that produced it. See the base schema for the full rationale.
797
+ ...createPolymorphicScopeRelationships(flowActorTasksPolymorphicDeclaration, {
798
+ nature: RelationshipNature.COMPOSITION,
799
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
800
+ contextPolicy: { enabled: false },
801
+ }),
802
+ // Scope → A2ATokenBudgetState (isPrimaryScope: true, 3 variants; SINGLETON per tenant).
803
+ // USERS → userA2aTokenBudgetState, ORGANIZATIONS → organizationA2aTokenBudgetState,
804
+ // APPLICATION → applicationA2aTokenBudgetState.
805
+ // COMPOSITION so a deleted tenant's budget row is cascade-cleaned (IMMEDIATE, depth 1).
806
+ //
807
+ // `childCardinality: ONE` is load-bearing, not decoration: this child is a SINGLETON (the
808
+ // injected owner FK is its unique business key — exactly one row per tenant), and the helper
809
+ // DEFAULTS to MANY. Beyond being semantically wrong, MANY makes the cascade look for a LIST
810
+ // discovery op while a 1:1 child is discovered via READ — and this resource declares no LIST.
811
+ // That mismatch does NOT silently orphan rows: `validateCompositionCascadeDeletability` collects
812
+ // it and the caller fails CLOSED at boot. (It did exactly that while this resource was being
813
+ // built — the cardinality was the true cause, not the ops' variant types.)
814
+ ...createPolymorphicScopeRelationships(a2aTokenBudgetStatePolymorphicDeclaration, {
815
+ nature: RelationshipNature.COMPOSITION,
816
+ childCardinality: ResourceRelationshipCardinality.ONE,
817
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
818
+ contextPolicy: { enabled: false },
819
+ }),
820
+ // Scope → A2APushDeliveryLog (isPrimaryScope: true, 3 variants; MANY rows per tenant).
821
+ // USERS → userA2aPushDeliveryLog, ORGANIZATIONS → organizationA2aPushDeliveryLog,
822
+ // APPLICATION → applicationA2aPushDeliveryLog.
823
+ //
824
+ // Default cardinality (MANY) — unlike the budget singleton above, there is one row per
825
+ // (task transition × registered webhook), and the resource declares LIST, so the cascade's
826
+ // discovery op resolves.
827
+ //
828
+ // COMPOSITION with IMMEDIATE cascade: these rows are evidence ABOUT a tenant's deliveries and
829
+ // have no meaning once the tenant is gone. Deliberately NOT retained the way billing rows are —
830
+ // a delivery log carries no financial or statutory obligation, and keeping it would leave
831
+ // webhook URLs (a tenant's own infrastructure addresses) alive after erasure, which is the
832
+ // opposite of what a subject-erasure path is for.
833
+ ...createPolymorphicScopeRelationships(a2aPushDeliveryLogPolymorphicDeclaration, {
834
+ nature: RelationshipNature.COMPOSITION,
835
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
836
+ contextPolicy: { enabled: false },
837
+ }),
401
838
  // ── Billing Relationships (Polymorphic) ─────────────────────────────
402
839
  // Scope → BillingAccounts (isPrimaryScope: true, 2 variants)
403
840
  // ORGANIZATIONS → organizationBillingAccounts
404
841
  // USERS → userBillingAccounts
842
+ //
843
+ // ⚠️ RETAINED TOO (coherence follow-up to the billing-retention decision, Paul — 2026-07-29).
844
+ // The account was NOT part of the original 16 edges — it has a core DELETE op, so the
845
+ // cascade-deletability guard never flagged it — but leaving it enabled made the retention
846
+ // decision incoherent: hard-deleting a scope killed the account while its retained invoices /
847
+ // subscriptions / usage records / credit pools survived pointing at a dead row.
848
+ //
849
+ // Why the dangling reference was not survivable, concretely (traced 2026-07-29):
850
+ // • `providerCustomerId` is `.isBackendOnly()` and lives ONLY here. The retained children carry
851
+ // their own provider ids (`providerInvoiceId`, `providerSubscriptionId`) but NOT the provider
852
+ // CUSTOMER id — so deleting the account destroys the only local key that maps a retained
853
+ // invoice back to the customer it was billed to. A financial record you cannot reconcile
854
+ // against the provider defeats the purpose of retaining it. Nothing provider-side is cleaned
855
+ // up on delete either (no customer deletion, no subscription cancellation), so this was a
856
+ // purely LOCAL mapping being thrown away while the provider-side record lived on.
857
+ // • The usage-flush sweep (`UsageMeteringBackendService.flushScopeToProvider`) selects on
858
+ // `reportedToProvider: false`, groups by this FK, and skips its "mark as reported" write when
859
+ // the customer id cannot be resolved. Retained usage rows whose account was deleted are
860
+ // therefore re-selected by EVERY subsequent sweep and can never drain — a permanent,
861
+ // monotonically growing error backlog. (Latent today: no cron calls `flushToProvider` yet.)
862
+ // • `onSubscriptionChanged` (feature sync, fired by the subscription post-operation hook) and
863
+ // the webhook router's `emitBillingEvent` both dereference this FK off a retained child; both
864
+ // are null-guarded, so they degrade to a warn + silent no-op rather than crashing.
865
+ // • Relationship context population (`contextPolicy: {}` on the child edges below) fetches this
866
+ // account as SUMMARY on every child READ/LIST; it is fault-tolerant, so the miss becomes a
867
+ // per-request warn forever rather than an error.
868
+ // No chart or aggregation reads billing, and no billing schema uses `forwardedLabel`, so those
869
+ // surfaces were unaffected either way.
870
+ //
871
+ // The account row now carries a dangling scope FK of its own after a scope delete — but that is
872
+ // exactly the danglingness the 2026-07-29 decision already accepted for its four child families,
873
+ // not a new kind of inconsistency. As with those children, the nature stays COMPOSITION (the
874
+ // account genuinely belongs to its scope); only the dies-with-parent behaviour is declined.
875
+ //
876
+ // With this cascade disabled, a DIRECT hard delete of the account became the only remaining path
877
+ // into the forbidden half-state described below. That path is now closed at runtime: the billing
878
+ // account's DELETE carries a fail-closed dependents guard that refuses with 409
879
+ // `BILLING_ACCOUNT_HAS_DEPENDENTS` while any retained child still references the account
880
+ // (`assertNoBillingAccountDependents`, wired as a DELETE prefix custom implementation). Keep that
881
+ // guard's family list in lock-step with the retained edges declared here.
405
882
  ...createPolymorphicScopeRelationships(billingAccountsPolymorphicDeclaration, {
406
883
  nature: RelationshipNature.COMPOSITION,
407
- childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
884
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } }, // RETAIN (compliance decision 2026-07-29) — see the note above.
408
885
  }),
409
886
  // Scope → Subscriptions (isPrimaryScope: true, 2 variants)
410
887
  // ORGANIZATIONS → organizationSubscriptions
411
888
  // USERS → userSubscriptions
412
889
  ...createPolymorphicScopeRelationships(billingSubscriptionsPolymorphicDeclaration, {
413
890
  nature: RelationshipNature.COMPOSITION,
414
- childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
891
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } }, // RETAIN (compliance decision 2026-07-29) — see the billing-retention note above.
415
892
  }),
416
893
  // BillingAccounts → Subscriptions (variant-matched, 1:N)
417
894
  // organizationBillingAccounts → organizationSubscriptions
418
895
  // userBillingAccounts → userSubscriptions
419
896
  ...createPolymorphicRelationships(billingAccountsPolymorphicDeclaration, billingSubscriptionsPolymorphicDeclaration, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
420
897
  nature: RelationshipNature.COMPOSITION,
421
- childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
898
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } }, // RETAIN (compliance decision 2026-07-29) — see the billing-retention note above.
422
899
  contextPolicy: {},
423
900
  }),
424
901
  // ── Polymorphic Billing Children ─────────────────────────────────────
902
+ //
903
+ // ⚠️ BILLING RETENTION (compliance decision, Paul — 2026-07-29): subscriptions / invoiceRefs /
904
+ // usageRecords / creditPools are RETAINED, never cascade-deleted. The financial audit trail must
905
+ // survive the deletion of the scope or the billing account that produced it (tax / SOX retention),
906
+ // so every `onParentDelete` below is DISABLED — 16 edges in total (4 families × 2 parents × 2 scope
907
+ // variants). These are the entries formerly tracked as `KNOWN_CASCADE_DELETABILITY_GAPS`.
908
+ //
909
+ // Why NOT `retentionPolicy` + `IMPERSONALIZE_AND_RETAIN`: that machinery also HIDES and FREEZES the
910
+ // row (reachable only through the audited see-through path), and these invoices must stay visible
911
+ // for ordinary accounting. It is also the wrong tool semantically — a billing row holds no personal
912
+ // data of its own (no name, email or address; the person is a foreign key), so there is nothing on
913
+ // it to scrub. The PII lives on the linked USER, which is where impersonalization belongs: erasing
914
+ // a subject scrubs the user row and keeps it, so these financial rows keep resolving to an
915
+ // anonymized subject.
916
+ //
917
+ // A COMPOSITION without `onParentDelete` is an explicitly supported combination — it leaves the
918
+ // children behind by design choice (see `validateCompositionCascadeDeletability`). The nature stays
919
+ // COMPOSITION because these rows genuinely belong to their scope; only the dies-with-parent
920
+ // behaviour is declined.
921
+ //
922
+ // The `Scope → BillingAccounts` edge above was RETAINED on the same day as a coherence follow-up
923
+ // (18 disabled billing cascades in total). Without it these 16 edges kept rows whose owning account
924
+ // had been deleted — see the rationale block at that declaration. Do not re-enable either half in
925
+ // isolation: retaining the children while deleting the account strands the provider-customer
926
+ // mapping, and deleting the children while retaining the account discards the audit trail.
425
927
  // Invoice Refs — scope relationships (2 variants)
426
928
  ...createPolymorphicScopeRelationships(invoiceRefsPolymorphicDeclaration, {
427
929
  nature: RelationshipNature.COMPOSITION,
428
- childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
930
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } }, // RETAIN (compliance decision 2026-07-29) — see the billing-retention note above.
429
931
  }),
430
932
  // BillingAccounts → InvoiceRefs (variant-matched, 1:N)
431
933
  ...createPolymorphicRelationships(billingAccountsPolymorphicDeclaration, invoiceRefsPolymorphicDeclaration, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
432
934
  nature: RelationshipNature.COMPOSITION,
433
- childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
935
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } }, // RETAIN (compliance decision 2026-07-29) — see the billing-retention note above.
434
936
  contextPolicy: {},
435
937
  }),
436
- // Usage Records — scope relationships (3 variants)
938
+ // Usage Records — scope relationships (2 variants: ORG, USER)
437
939
  ...createPolymorphicScopeRelationships(usageRecordsPolymorphicDeclaration, {
438
940
  nature: RelationshipNature.COMPOSITION,
439
- childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
941
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } }, // RETAIN (compliance decision 2026-07-29) — see the billing-retention note above.
440
942
  }),
441
943
  // BillingAccounts → UsageRecords (variant-matched, 1:N)
442
944
  ...createPolymorphicRelationships(billingAccountsPolymorphicDeclaration, usageRecordsPolymorphicDeclaration, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
443
945
  nature: RelationshipNature.COMPOSITION,
444
- childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
946
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } }, // RETAIN (compliance decision 2026-07-29) — see the billing-retention note above.
445
947
  contextPolicy: { enabled: false },
446
948
  }),
447
- // Credit Pools — scope relationships (3 variants)
949
+ // Credit Pools — scope relationships (2 variants: ORG, USER)
448
950
  ...createPolymorphicScopeRelationships(creditPoolsPolymorphicDeclaration, {
449
951
  nature: RelationshipNature.COMPOSITION,
450
- childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
952
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } }, // RETAIN (compliance decision 2026-07-29) — see the billing-retention note above.
451
953
  }),
452
954
  // BillingAccounts → CreditPools (variant-matched, 1:N)
453
955
  ...createPolymorphicRelationships(billingAccountsPolymorphicDeclaration, creditPoolsPolymorphicDeclaration, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
454
956
  nature: RelationshipNature.COMPOSITION,
455
- childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
957
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } }, // RETAIN (compliance decision 2026-07-29) — see the billing-retention note above.
456
958
  contextPolicy: {},
457
959
  }),
458
960
  // Referrals keep shared FK field names (`referrerBillingAccountId`, `referredBillingAccountId`)
459
- // instead of polymorphic per-variant field expansion, so their billing-account links must
460
- // be declared explicitly for registry FK resolution and nested relationship semantics.
961
+ // instead of polymorphic per-variant field expansion. Each is declared a per-record
962
+ // DISCRIMINATED polymorphic FK on `ReferralSchema` (`polymorphicVariants:
963
+ // BILLING_SCOPE_DISCRIMINATED_FK_VARIANTS` + `polymorphicDiscriminatorField:
964
+ // 'referrer|referredScopeType'`). These sibling relationships enumerate the candidate
965
+ // billing-account branches per FK; the concrete branch is resolved PER RECORD via the
966
+ // scope discriminator (Resources_SharedUtils.resolveDiscriminatedPolymorphicForeignKeyTarget),
967
+ // and the registry FK→type map keeps only a non-authoritative representative for these fields.
461
968
  createResourcesRelationship(CoreResourceType.USER_BILLING_ACCOUNTS, CoreResourceType.REFERRALS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
462
969
  accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
463
970
  nature: RelationshipNature.REFERENCE,
@@ -493,18 +1000,94 @@ export const coreSharedResourceRelationship = [
493
1000
  childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
494
1001
  contextPolicy: {},
495
1002
  }),
496
- // ── Guidance State Relationships (Tri-Scope) ─────────────────────────
1003
+ // ── Catalog & Internal Scope Anchors (STANDALONE primary) ────────────
1004
+ //
1005
+ // Catalog-tier resources (products, prices, promotions) and shared lookup
1006
+ // tables (referrals, files, userFeatures) need a primary-scope anchor so
1007
+ // that `createResourceConfiguration_Initialization` can derive their
1008
+ // `resourcePrimaryScope` enum without falling back to a silent default.
1009
+ //
1010
+ // STANDALONE keeps these rels off the URL surface (catalog/lookup access
1011
+ // goes through dedicated services, not parent-scoped routes) while
1012
+ // `isPrimaryScope: true` declares the structural ownership: catalog
1013
+ // entities are APPLICATION-tier; user-facing lookups are USER_SELF-tier.
1014
+ //
1015
+ // See `resources-relationships.shared.factory.ts` Guard 1 for the full
1016
+ // rationale on why STANDALONE + isPrimaryScope is the canonical pattern
1017
+ // for resources that are scope-anchored but not URL-routed.
1018
+ createResourcesRelationship(CoreResourceType.APPLICATION, CoreResourceType.PRODUCTS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
1019
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
1020
+ isPrimaryScope: true,
1021
+ nature: RelationshipNature.REFERENCE,
1022
+ contextPolicy: { enabled: false },
1023
+ }),
1024
+ createResourcesRelationship(CoreResourceType.APPLICATION, CoreResourceType.PRICES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
1025
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
1026
+ isPrimaryScope: true,
1027
+ nature: RelationshipNature.REFERENCE,
1028
+ contextPolicy: { enabled: false },
1029
+ }),
1030
+ createResourcesRelationship(CoreResourceType.APPLICATION, CoreResourceType.PROMOTIONS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
1031
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
1032
+ isPrimaryScope: true,
1033
+ nature: RelationshipNature.REFERENCE,
1034
+ contextPolicy: { enabled: false },
1035
+ }),
1036
+ createResourcesRelationship(CoreResourceType.USERS, CoreResourceType.USER_FEATURES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
1037
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
1038
+ isPrimaryScope: true,
1039
+ nature: RelationshipNature.COMPOSITION,
1040
+ foreignKeyField: 'userId',
1041
+ // onParentDelete cascade: USER_FEATURES is a composition part — it dies with its
1042
+ // user. This edge was the lone scope-features sibling MISSING childOperations
1043
+ // (ORGANIZATION_FEATURES / APPLICATION_FEATURES both declared the cascade) →
1044
+ // orphan-on-user-delete risk; now aligned. Deliberately NO onParentCreate: the
1045
+ // scope-features ledger is cache-resolved (see the ORGANIZATION_FEATURES note).
1046
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
1047
+ contextPolicy: { enabled: false },
1048
+ }),
1049
+ createResourcesRelationship(CoreResourceType.APPLICATION, CoreResourceType.FILES, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
1050
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
1051
+ isPrimaryScope: true,
1052
+ nature: RelationshipNature.REFERENCE,
1053
+ // applicationId is always propagated to every file record from the execution context
1054
+ // at creation time, regardless of the file's primaryScope (APPLICATION / ORGANIZATIONS /
1055
+ // USER_SELF). It is the top-level tenant isolation field, not the scope discriminator.
1056
+ contextPolicy: { enabled: false },
1057
+ }),
1058
+ // Referrals scope anchor — TEMPORARY SHIM — Phase 4.5 Step 2.5 Layer 3c TODO.
1059
+ //
1060
+ // Referrals naturally inherit polymorphism from `*_billingAccounts` (which
1061
+ // are USER_SELF/ORG-polymorphic). The principled long-term design is to
1062
+ // split `referrals` into the same polymorphic variant pair so each variant
1063
+ // carries its own scope via the parent billing-account chain. Until that
1064
+ // follow-up PR lands, the ORGANIZATIONS edge below carries a STANDALONE
1065
+ // primary anchor so the resource has a defined `resourcePrimaryScope` and
1066
+ // the registry-layer factory's no-fallback throw stays satisfied.
1067
+ // Tracked in `.cursor/plans/m2m-webhook-organization-delivery-phase4-5-hardening.md`
1068
+ // (Phase 4.5 Step 2.5 Layer 3c).
1069
+ createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.REFERRALS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
1070
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
1071
+ isPrimaryScope: true,
1072
+ nature: RelationshipNature.REFERENCE,
1073
+ contextPolicy: { enabled: false },
1074
+ }),
1075
+ // ── Guidance State Relationships (Dual-Scope) ────────────────────────
497
1076
  // Each scope entity has 1:1 guidance state — system resource, standalone access
498
1077
  createResourcesRelationship(CoreResourceType.USERS, CoreResourceType.USER_GUIDANCE_STATE, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
499
1078
  isPrimaryScope: true,
500
1079
  foreignKeyField: 'userId',
501
1080
  nature: RelationshipNature.COMPOSITION,
1081
+ // onParentCreate: eager-seed the guidance-state row on user creation (removes the lazy read-create race; evaluator read-then-creates so no dup).
1082
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 }, onParentCreate: { enabled: true } } },
502
1083
  contextPolicy: { enabled: false }
503
1084
  }),
504
1085
  createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.ORGANIZATION_GUIDANCE_STATE, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
505
1086
  isPrimaryScope: true,
506
1087
  foreignKeyField: 'organizationId',
507
1088
  nature: RelationshipNature.COMPOSITION,
1089
+ // onParentCreate: eager-seed the guidance-state row on org creation.
1090
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 }, onParentCreate: { enabled: true } } },
508
1091
  contextPolicy: { enabled: false }
509
1092
  }),
510
1093
  // ── Progression State Relationships (Dual-Scope) ─────────────────────────
@@ -513,12 +1096,16 @@ export const coreSharedResourceRelationship = [
513
1096
  isPrimaryScope: true,
514
1097
  foreignKeyField: 'userId',
515
1098
  nature: RelationshipNature.COMPOSITION,
1099
+ // onParentCreate: eager-seed the progression-state row on user creation.
1100
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 }, onParentCreate: { enabled: true } } },
516
1101
  contextPolicy: { enabled: false }
517
1102
  }),
518
1103
  createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.ORGANIZATION_PROGRESSION_STATE, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
519
1104
  isPrimaryScope: true,
520
1105
  foreignKeyField: 'organizationId',
521
1106
  nature: RelationshipNature.COMPOSITION,
1107
+ // onParentCreate: eager-seed the progression-state row on org creation.
1108
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 }, onParentCreate: { enabled: true } } },
522
1109
  contextPolicy: { enabled: false }
523
1110
  }),
524
1111
  // ── Lifecycle State Relationships (Dual-Scope) ─────────────────────────
@@ -527,14 +1114,86 @@ export const coreSharedResourceRelationship = [
527
1114
  isPrimaryScope: true,
528
1115
  foreignKeyField: 'userId',
529
1116
  nature: RelationshipNature.COMPOSITION,
1117
+ // onParentCreate: eager-seed the lifecycle-state row on user creation — the
1118
+ // genuine latent gap (no READ self-heal); the evaluator read-then-creates so no dup.
1119
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 }, onParentCreate: { enabled: true } } },
530
1120
  contextPolicy: { enabled: false }
531
1121
  }),
532
1122
  createResourcesRelationship(CoreResourceType.ORGANIZATIONS, CoreResourceType.ORGANIZATION_LIFECYCLE_STATE, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.ONE, {
533
1123
  isPrimaryScope: true,
534
1124
  foreignKeyField: 'organizationId',
535
1125
  nature: RelationshipNature.COMPOSITION,
1126
+ // onParentCreate: eager-seed the lifecycle-state row on org creation (latent gap).
1127
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 }, onParentCreate: { enabled: true } } },
536
1128
  contextPolicy: { enabled: false }
537
1129
  }),
1130
+ // ── Inbound Contacts (Phase 0.5, Q-E=B) ──────────────────────────────
1131
+ //
1132
+ // APPLICATION-scope lead-capture resource. Two FK edges to USER-shaped
1133
+ // parents are declared MANUALLY (no `isAnonymizable: true`, so the
1134
+ // factory does NOT inject anything for this resource):
1135
+ //
1136
+ // 1. ANONYMOUS_USERS → INBOUND_CONTACTS via `anonymousUserId`
1137
+ // Filled by the controller pre-flight seam from the active anonymous
1138
+ // session. Cleared to `null` by the manual transposition hook in
1139
+ // `AnonymousSessionBackendService` once the user converts.
1140
+ //
1141
+ // 2. USERS → INBOUND_CONTACTS via `userId`
1142
+ // Filled by the manual transposition hook when the lead converts.
1143
+ // Distinct from the schema's `relatedUserId` (sales/support manual
1144
+ // linkage) — see InboundContactSchema JSDoc.
1145
+ //
1146
+ // `relatedUserId` is intentionally NOT modeled as a separate
1147
+ // ResourceRelationship row: it is a sparse, manually-populated free
1148
+ // FK with no auto-context / cascade / URL-routing semantics. Modeling
1149
+ // it would add a second USERS → INBOUND_CONTACTS edge that the URL
1150
+ // builder would have to disambiguate via FK at every nested route, for
1151
+ // zero product gain (sales reps will use the standalone admin URL with
1152
+ // a filter, not a nested /users/:id/inbound-contacts path).
1153
+ //
1154
+ // Both edges use STANDALONE access scope: the resource is admin-listed
1155
+ // from APPLICATION scope, never nested under anonymous-users or users.
1156
+ // parentResourceRequirement=OPTIONAL because anonymousUserId is nullable (cleared to null on conversion).
1157
+ createResourcesRelationship(CoreResourceType.ANONYMOUS_USERS, CoreResourceType.INBOUND_CONTACTS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
1158
+ parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,
1159
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
1160
+ nature: RelationshipNature.REFERENCE,
1161
+ foreignKeyField: 'anonymousUserId',
1162
+ // Lead survives anonymous-session cleanup (transposition rewrites
1163
+ // anonymousUserId → null when the lead converts; expired sessions
1164
+ // never owned the lead's lifecycle).
1165
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } },
1166
+ contextPolicy: { enabled: false },
1167
+ }),
1168
+ createResourcesRelationship(CoreResourceType.USERS, CoreResourceType.INBOUND_CONTACTS,
1169
+ // ONE → MANY: userId is nullable on the schema (anonymous/unlinked leads have no user).
1170
+ // parentResourceRequirement=OPTIONAL to align with the nullable FK —
1171
+ // MANDATORY (default) would cause a ZodToMongoose required-mismatch crash.
1172
+ ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
1173
+ parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,
1174
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
1175
+ nature: RelationshipNature.REFERENCE,
1176
+ foreignKeyField: 'userId',
1177
+ // Lead history is org-owned, not user-owned — survives user
1178
+ // deletion (compliance / audit signal). DELETE on a user does
1179
+ // not cascade to leads they happened to convert from.
1180
+ childOperations: { lifecycle: { onParentDelete: { enabled: false } } },
1181
+ contextPolicy: { enabled: false },
1182
+ }),
1183
+ // INBOUND_CONTACTS scope anchor (STANDALONE primary).
1184
+ //
1185
+ // Phase 4.5 Step 2.5 Layer 3a: declares APPLICATION as the structural
1186
+ // owner of inbound-contacts. The two USER-shaped FK edges above
1187
+ // (ANONYMOUS_USERS / USERS) carry conversion linkage but do NOT define
1188
+ // ownership — leads survive parent deletion and are admin-listed from
1189
+ // APPLICATION scope. STANDALONE keeps this rel inert for URL routing
1190
+ // (no nested /applications/:id/inbound-contacts path).
1191
+ createResourcesRelationship(CoreResourceType.APPLICATION, CoreResourceType.INBOUND_CONTACTS, ResourceRelationshipCardinality.ONE, ResourceRelationshipCardinality.MANY, {
1192
+ accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,
1193
+ isPrimaryScope: true,
1194
+ nature: RelationshipNature.REFERENCE,
1195
+ contextPolicy: { enabled: false },
1196
+ }),
538
1197
  // ── Auth Relationships (Polymorphic — Singletons: 1:1, Collections: 1:N) ──
539
1198
  // SSO Config — singleton (ONE per scope)
540
1199
  ...createPolymorphicScopeRelationships(ssoConfigPolymorphicDeclaration, {
@@ -559,18 +1218,6 @@ export const coreSharedResourceRelationship = [
559
1218
  },
560
1219
  },
561
1220
  }),
562
- // Auth Policy — singleton (ONE per scope)
563
- ...createPolymorphicScopeRelationships(authPolicyPolymorphicDeclaration, {
564
- childCardinality: ResourceRelationshipCardinality.ONE,
565
- nature: RelationshipNature.COMPOSITION,
566
- childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
567
- contextPolicy: {
568
- objectMode: ContextPolicy_ObjectMode.SUMMARY,
569
- operationOverrides: {
570
- [CoreResourceOperation.READ]: { objectMode: ContextPolicy_ObjectMode.FULL },
571
- },
572
- },
573
- }),
574
1221
  // SIEM Export Config — singleton (ONE per scope)
575
1222
  ...createPolymorphicScopeRelationships(siemExportConfigPolymorphicDeclaration, {
576
1223
  childCardinality: ResourceRelationshipCardinality.ONE,
@@ -617,6 +1264,31 @@ export const coreSharedResourceRelationship = [
617
1264
  },
618
1265
  },
619
1266
  }),
1267
+ // M2M Webhook Config — singleton (ONE per scope), mirrors SIEM Export Config wiring.
1268
+ ...createPolymorphicScopeRelationships(webhookConfigPolymorphicDeclaration, {
1269
+ childCardinality: ResourceRelationshipCardinality.ONE,
1270
+ nature: RelationshipNature.COMPOSITION,
1271
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
1272
+ contextPolicy: {
1273
+ objectMode: ContextPolicy_ObjectMode.SUMMARY,
1274
+ operationOverrides: {
1275
+ [CoreResourceOperation.READ]: { objectMode: ContextPolicy_ObjectMode.FULL },
1276
+ },
1277
+ },
1278
+ }),
1279
+ // M2M Webhook Delivery Log — collection (MANY per scope). LIST/SEARCH stay
1280
+ // off the context surface (high-volume noise — admin queries them via the
1281
+ // dedicated UI, not via implicit context inclusion). Mirrors SIEM DLQ wiring.
1282
+ ...createPolymorphicScopeRelationships(m2mWebhookDeliveryLogPolymorphicDeclaration, {
1283
+ nature: RelationshipNature.COMPOSITION,
1284
+ childOperations: { lifecycle: { onParentDelete: { enabled: true, mode: ChildLifecycleMode.IMMEDIATE, maxDepth: 1 } } },
1285
+ contextPolicy: {
1286
+ operationOverrides: {
1287
+ [CoreResourceOperation.LIST]: { enabled: false },
1288
+ [CoreResourceOperation.SEARCH]: { enabled: false },
1289
+ },
1290
+ },
1291
+ }),
620
1292
  ];
621
1293
  export const coreShared_ResourcesConfigurations_FactoryMap = {
622
1294
  [CoreResourceType.ORGANIZATIONS]: organizationResourceConfiguration_InitializationFactory,
@@ -629,20 +1301,25 @@ export const coreShared_ResourcesConfigurations_FactoryMap = {
629
1301
  [CoreResourceType.USER_SELF_PREFERENCES]: userSelfPreferencesResourceConfiguration_InitializationFactory,
630
1302
  // Organization-related resources
631
1303
  [CoreResourceType.ORGANIZATION_UNITS]: organizationUnitResourceConfiguration_InitializationFactory,
1304
+ [CoreResourceType.ORGANIZATION_UNIT_MEMBERS]: organizationUnitMemberResourceConfiguration_InitializationFactory,
632
1305
  [CoreResourceType.ORGANIZATION_PROFILES]: organizationProfileResourceConfiguration_InitializationFactory,
633
1306
  [CoreResourceType.ORGANIZATION_PREFERENCES]: organizationPreferencesResourceConfiguration_InitializationFactory,
1307
+ [CoreResourceType.PLATFORM_ACCESS_GRANTS]: platformAccessGrantsResourceConfiguration_InitializationFactory,
634
1308
  [CoreResourceType.ORGANIZATION_NOTIFICATIONS]: organizationNotificationsResourceConfiguration_InitializationFactory,
635
1309
  [CoreResourceType.ORGANIZATION_FEATURES]: organizationFeaturesResourceConfiguration_InitializationFactory,
636
1310
  [CoreResourceType.USER_FEATURES]: userFeaturesResourceConfiguration_InitializationFactory,
637
1311
  [CoreResourceType.ORGANIZATION_MEMBERS]: organizationMembersResourceConfiguration_InitializationFactory,
638
- [CoreResourceType.ORGANIZATION_MEMBER_INVITATIONS]: organizationMemberInvitationsResourceConfiguration_InitializationFactory,
639
1312
  // Application resources
640
1313
  [CoreResourceType.APPLICATION]: applicationResourceConfiguration_InitializationFactory,
641
1314
  [CoreResourceType.APPLICATION_METADATA]: applicationMetadataResourceConfiguration_InitializationFactory,
642
1315
  [CoreResourceType.APPLICATION_VERSIONS]: applicationVersionsResourceConfiguration_InitializationFactory,
1316
+ [CoreResourceType.APPLICATION_FEATURES]: applicationFeaturesResourceConfiguration_InitializationFactory,
643
1317
  // API Keys
644
1318
  [CoreResourceType.ORG_API_KEYS]: orgApiKeysResourceConfiguration_InitializationFactory,
645
1319
  [CoreResourceType.APPLICATION_API_KEYS]: appApiKeysResourceConfiguration_InitializationFactory,
1320
+ // OAuth Clients (registered client-credentials front — mirrors API Keys)
1321
+ [CoreResourceType.OAUTH_CLIENTS_ORGANIZATION]: orgOAuthClientsResourceConfiguration_InitializationFactory,
1322
+ [CoreResourceType.OAUTH_CLIENTS_APPLICATION]: appOAuthClientsResourceConfiguration_InitializationFactory,
646
1323
  // Billing resources — polymorphic variants (3 each for accounts & subscriptions)
647
1324
  ...billingAccountsPolymorphicFactories,
648
1325
  ...billingSubscriptionsPolymorphicFactories,
@@ -656,20 +1333,27 @@ export const coreShared_ResourcesConfigurations_FactoryMap = {
656
1333
  [CoreResourceType.REFERRALS]: referralsResourceConfiguration_InitializationFactory,
657
1334
  // Audit and Compliance
658
1335
  [CoreResourceType.AUDIT_LOGS]: auditLogsResourceConfiguration_InitializationFactory,
659
- // Notification Resources
660
- [CoreResourceType.NOTIFICATION_BADGES]: notificationBadgesResourceConfiguration_InitializationFactory,
1336
+ // Notification Badges — polymorphic dual-scope (USER + ORG)
1337
+ [CoreResourceType.USER_NOTIFICATION_BADGES]: userNotificationBadgesResourceConfiguration_InitializationFactory,
1338
+ [CoreResourceType.ORGANIZATION_NOTIFICATION_BADGES]: organizationNotificationBadgesResourceConfiguration_InitializationFactory,
661
1339
  // File Management Resources
662
1340
  [CoreResourceType.FILES]: filesResourceConfiguration_InitializationFactory,
663
1341
  // Queue System Resources (internal infrastructure)
664
1342
  [CoreResourceType.JOB_EXECUTIONS]: jobExecution_ResourceConfiguration_InitializationFactory,
665
1343
  [CoreResourceType.JOB_PAYLOAD_STORAGE]: jobPayloadStorage_ResourceConfiguration_InitializationFactory,
666
- // Email Resources
667
- [CoreResourceType.EMAIL_TEMPLATES]: emailTemplateResourceConfiguration_InitializationFactory,
668
- [CoreResourceType.EMAIL_HEADER_FOOTER_TEMPLATES]: emailHeaderFooterTemplateResourceConfiguration_InitializationFactory,
1344
+ // Flows-Actors Execution Resource (persisted flow/actor system executions)
1345
+ ...flowActorExecutionsPolymorphicFactories,
1346
+ // Flows-Actors Task Resource (the WORK plane behind the A2A `Task` object)
1347
+ ...flowActorTasksPolymorphicFactories,
1348
+ ...a2aTokenBudgetStatePolymorphicFactories,
1349
+ ...a2aPushDeliveryLogPolymorphicFactories,
669
1350
  // Authentication Resources
670
1351
  [CoreResourceType.USER_IDENTITY_LINKS]: userIdentityLinksResourceConfiguration_InitializationFactory,
1352
+ [CoreResourceType.OAUTH_CONSENT_GRANTS]: oauthConsentGrantsResourceConfiguration_InitializationFactory,
671
1353
  // Anonymous Session Resources (W7.3a)
672
1354
  [CoreResourceType.ANONYMOUS_USERS]: anonymousUsersResourceConfiguration_InitializationFactory,
1355
+ // Inbound Contacts (Phase 0.5 — public marketing-site lead capture, Q-E=B)
1356
+ [CoreResourceType.INBOUND_CONTACTS]: inboundContactsResourceConfiguration_InitializationFactory,
673
1357
  // Guidance State Resources
674
1358
  [CoreResourceType.USER_GUIDANCE_STATE]: userGuidanceStateResourceConfiguration_InitializationFactory,
675
1359
  [CoreResourceType.ORGANIZATION_GUIDANCE_STATE]: organizationGuidanceStateResourceConfiguration_InitializationFactory,
@@ -679,13 +1363,15 @@ export const coreShared_ResourcesConfigurations_FactoryMap = {
679
1363
  // Lifecycle State Resources
680
1364
  [CoreResourceType.USER_LIFECYCLE_STATE]: userLifecycleStateResourceConfiguration_InitializationFactory,
681
1365
  [CoreResourceType.ORGANIZATION_LIFECYCLE_STATE]: organizationLifecycleStateResourceConfiguration_InitializationFactory,
682
- // Auth Resources — polymorphic variants (SSO + SIEM + SCIM, 7 × 2 = 14 entries)
1366
+ // Auth Resources — polymorphic variants (SSO + SIEM + SCIM, 6 × 2 = 12 entries)
683
1367
  ...ssoConfigPolymorphicFactories,
684
1368
  ...ssoConnectionPolymorphicFactories,
685
- ...authPolicyPolymorphicFactories,
686
1369
  ...siemExportConfigPolymorphicFactories,
687
1370
  ...siemDeliveryDlqPolymorphicFactories,
688
1371
  ...scimTokensPolymorphicFactories,
689
1372
  ...scimProvisioningConfigPolymorphicFactories,
1373
+ // M2M Outbound Webhook Resources — polymorphic dual-scope (2 × 2 = 4 entries)
1374
+ ...webhookConfigPolymorphicFactories,
1375
+ ...m2mWebhookDeliveryLogPolymorphicFactories,
690
1376
  };
691
- //# sourceMappingURL=resources-registry.shared.core.definitions.js.map
1377
+ //# sourceMappingURL=resources-registry.shared.core.definitions.js.map